{"version":3,"sources":["../Map.tsx","components/zadost/KontaktniInformace/ZakaznikForm.tsx","../SearchAutocomplete.tsx","components/admin/ZadostDetail/ZadostDetailForm.tsx","../Validation.ts","../constants.ts","../constants.tsx","../IResult.ts","../App.tsx","../actions.ts","../IVyjadreniPrilohaStavEnum.ts","../ZadaniDetailMap.tsx","../AppStore.tsx","../ConfigurationHOC.tsx","../Layout.tsx","../headerMenu.tsx","components/header/login/LoginButton.tsx","components/header/podalogo.png","../Home.tsx","../NovaZadost.tsx","components/zadost/KontaktniInformace/KontaktniInformace.tsx","../actions.tsx","../ZadostStavEnum.tsx","../AutocompleteStyles.tsx","../Rekapitulace.tsx","../Potvrzeni.tsx","../ApiAuthorizationRoutes.tsx","../Login.tsx","../Logout.tsx","../telemetry-provider.tsx","../TelemetryService.tsx","../admin.tsx","../RuianInterfaceTypeEnum.ts","components/admin/ZadostDetail/ZadaniDetailForm.tsx","../IGeoJsonFeatureCollection.tsx","Types/GeoJSON/IGeometry.tsx","../earthMath.ts","components/admin/TextEditor.tsx","../reducer.tsx","../reducer.ts","../RuianApi.ts","../ZadostApi.ts","../UserApi.ts","../VyjadreniApi.ts","../ZadaniApi.ts","components/admin/ZadostiList/ZadostListForm.tsx","components/admin/ZadostiList/ZadostListFilterForm.tsx","components/admin/ZadostiList/ZadostiMapForm.tsx","components/admin/ZadostiList/ZadostList.tsx","components/zadost/ZajmovaUzemi/SearchPanel.tsx","components/zadost/ZajmovaUzemi/InfoPanelZadaniObjekty.tsx","components/zadost/ZajmovaUzemi/ZajmovehoUzemiPage.tsx","components/admin/VyjadreniDetail/VyjadreniAddFileForm.tsx","components/admin/VyjadreniDetail/VyjadreniDetailFileList.tsx","components/admin/VyjadreniDetail/VyjadreniDetailForm.tsx","registerServiceWorker.js","index.js","components/zadost/UpresneniZadosti/UpresneniZadostiForm.tsx","components/zadost/UpresneniZadosti/UpresneniZadosti.tsx","../IZakaznikFormaEnum.ts","../ApiAuthorizationConstants.ts","../GeoJsonTypeEnum.tsx","../AuthorizeService.ts","../IVyjadreniPrilohaTypEnum.ts"],"names":["this","map","Map","prototype","ZakaznikForm","props","disabled","handleChanged","zakaznik","validation","textStyle","subComponentStyles","label","root","width","id","checked","forma","IZakaznikFormaEnum","prvnickaOsoba","onText","offText","onChange","event","handleChangedNameValue","fyzickaOsoba","styles","underlined","required","value","ic","name","errorMessage","isValid","validationError","dic","firma","kontakt","ulice","mesto","psc","stat","email","telefon","stavZadosti","0","10","20","30","100","ZadostDetailForm","React","selectedKey","setSelectedKey","zadost","setZadost","getDetail","a","zadostApi","getZadost","data","messageId","investor","zadatel","tokens","childrenGap","toString","stav","ev","option","key","console","log","flexContainer","display","options","text","result","redux_logger_1","reducer_1","headerMenu_1","registerIcons","icons","xmlns","viewBox","fill","stroke","className","cx","cy","r","stroke-width","transform","x","y","height","rx","ry","d","theme","getTheme","mergeStyleSets","buttonArea","verticalAlign","textAlign","callout","Width","header","paddingBottom","title","fonts","xLarge","margin","fontWeight","FontWeights","semilight","inner","padding","actions","position","marginTop","whiteSpace","subtext","small","link","medium","color","palette","neutralPrimary","LoginButton","_subscription","state","IsCallOutVisible","authService","subscribe","populateState","unsubscribe","isAuthenticated","getUser","user","getAccessToken","token","setUser","surname","family_name","givenName","given_name","role","profilePath","ApplicationPaths","Profile","logoutPath","LogOut","authenticatedView","registerPath","Register","loginPath","Login","anonymouseMenu","givenname","stackItemStyles","alignItems","background","DefaultPalette","white","maxWidth","justifyContent","stackItemStyles1","minWidth","paddingLeft","style","float","onClick","setState","iconProps","iconName","lineHeight","flexDirection","ariaLabelledBy","ariaDescribedBy","gapSpace","target","onDismiss","setInitialFocus","horizontalAlign","push","border","textContainer","horizontal","marginBottom","paddingRight","Item","align","backgroundColor","fontSize","large","paddingTop","mergeStyles","StoreToLoginButtonState","auth","dispatchToLoginButtonToProps","dispatch","url","SetUser","connect","module","exports","i","KontaktniInformace","handleZadatelChangeBind","handleZadatelChangeChange","bind","handleZadavatelChangedNameValueBind","handleZadavatelChangedNameValue","handleInvestorChangeBind","handleInvestorChange","handleInvestorChangedNameValueBind","handleInvestorChangedNameValue","investorSame","zadatelValidation","regexp","rebex","EmailRegExp","validated","NumbersOnlyRegExp","investorValidation","setDefaultInvestorValues","setDefaultZadavatelValues","lastValue","zadavatelVal","validateLasValues","investorVal","prevprops","prevstate","zValidation","iValidation","zadavelValidation","checkAllRules","validate","updateKontakt","themePrimary","e","newValue","saveData","ZadostStavEnum","react_1","Rekapitulace","createElement","PotvrzeniZadostni","componentDidMount","onRef","Admin","RuianInterfaceTypeEnum","initializeFileTypeIcons","undefined","duvodZadostiOptions","ucelStavbyOptions","columns","fieldName","isResizable","isIconOnly","ZadaniDetailForm","upresneniZadosti","setUpresneniZadosti","zadaniFiles","setZadaniFiles","getData","zadostId","zadaniApi","getUpresneniZadani","upresneni","getFiles","files","isSuccess","item","ext","nazev","substr","lastIndexOf","downloadFile","getFile","window","URL","createObjectURL","blob","document","href","setAttribute","fileName","click","body","appendChild","remove","titleId","useId","useBoolean","isModalOpen","showModal","setTrue","hideModal","setFalse","contentStyles","container","flexFlow","xLargePlus","flex","borderTop","semibold","overflowY","selectors","p","readOnly","nazevStavby","duvodKey","duvod","find","getDuvod","duvodZadosti","doplnujiciInfo","ucelKey","ucel","getUcel","ucelStavby","items","setKey","onRenderItemColumn","index","column","fieldContent","getFileTypeIconProps","extension","toLowerCase","size","imageFileType","layoutMode","DetailsListLayoutMode","justified","selectionMode","SelectionMode","none","selectionPreservedOnEmptyClick","dgn","podminkyPripojeni","postou","indexOf","titleAriaId","isOpen","isBlocking","containerClassName","wmsUrl","zadaniId","IGeometry_1","Geometry","type","coordinates","location","GeoJsonTypeEnum","Point","longitude","latitude","locations","LineString","geometry","Microsoft","Maps","Pushpin","getLocation","Polyline","getLocations","Polygon","metadata","defaultProperties","metadataResult","Location","g","setOptions","GetPoint","point","Array","isArray","GetPolyline","polyline","GetPolygon","polygone","MultiPoint","length","MultiPolygon","MultiLineString","first","twicearea","f","TextEditor","editorRef","apiKey","onInit","evt","editor","current","initialValue","init","menubar","plugins","toolbar","content_style","primary","saveText","getContent","save","close","sent","_columns","ZadostListForm","Selection","onSelectionChanged","s","selectionState","getSelection","onSelectZadost","Stack","Label","zadosti","DetailsList","single","Link","date","parts","split","formatDate","selection","ariaLabelForSelectionColumn","ariaLabelForSelectAllCheckbox","checkButtonAriaLabel","ZadostListFilterForm","filter","setFilter","Checkbox","nevyrizene","TextField","Dropdown","placeholder","PrimaryButton","onFilterChanged","ZadostiMapForm","layer","getX","getY","primitive","credentials","mapTypeId","MapTypeId","aerial","config","mercator","TileSource","uriConstructor","minZoom","maxZoom","Layer","layers","insert","mapLayer","TileLayer","renderZadosti","Events","addHandler","mapclick","prevProps","clear","pins","pin","setPrimitives","minHeight","ZadostList","setZadosti","viewType","setViewType","getZadostList","useEffect","Separator","ChoiceGroup","mapZoom","SearchPanel","wrap","onSearch","adresaSearch","onItemSelectedCallback","adresaSeleted","onClear","adresaCleared","katastrSearch","katastrSeleted","katastrCleared","parcelaSearch","filtrInfo","parcelaFiltrInfo","parcelaCleared","onClearFilter","parcelaClearFilter","parcelaSeleted","grow","IconButton","showHelp","Delete","InfoPanelZadaniObjekty","_selection","_onItemInvoked","alert","discriminator","_getSelectionDetails","setSelected","kod","active","Parcela","addbuttonDisable","Text","getDruhCislovaniKodText","druhCislovaniKod","kmenoveCislo","pododdeleniCisla","katastralniUzemi","DefaultButton","addToItems","Polygone","polygon","JSON","stringify","Panel","headerText","selectionPanelIsOpen","closePanel","closeButtonAriaLabel","renderParcelaJSX","renderPolygonJSX","ActionButton","ariaLabel","selectedItems","removeSelected","MarqueeSelection","getKey","_getKey","onItemInvoked","CheckList","Section","ZajmoveUzemiPage","hostStyles","mapState","mapStates","view","toggleTeachingBubbleVisible","mapCenter","elevation","oblasti","loadConfiguration","parcely","polygones","hideTeachingBubble","polygony","o","hranice","definicniBod","exteriorRing","fillColor","strokeColor","strokeThickness","strokeDashArray","area","SpatialMath","AreaUnits","SquareMeters","makeId","toFixed","prevState","ruianApi","getParcelByLocation","parcel","parcela","getAddressSugestion","getKatastrSugestion","katastrKod","katastr","getParcelSugestion","coordinate","zoom","getStreetDetail","definicniCara","zoomMap","adresa","Adresa","description","getKatastrDetail","tag","getParcelaDetail","_this","Katastr","step","info","examplePrimaryButtonProps","children","hideTeachingBubbleNextStep","TypMapaPrimaryButtonProps","exampleSecondaryButtonProps","VyhledaniKatastraniUzemiPrimaryButtonProps","onSearchAddress","onSearchKatastr","onSearchParcela","clearAddresa","clearKatasr","clearParcela","addressSelected","katastrSelected","parcelaSelected","center","configuration","findParcelByLocation","findParcelById","chageMapState","setMapZoom","setActivePolygone","newActive","left","top","icon","newPolygon","selected","isActiveRemoved","keyFilter","includes","back","TeachingBubble","primaryButtonProps","secondaryButtonProps","footerContent","headline","characters","charactersLength","charAt","Math","floor","random","saveUzemi","StoreToZajmoveUzemiState","StoreToZajmoveUzemiDispatchToProps","VyjadreniAddFileForm","setId","setNazev","popis","setPopis","typ","setTyp","file","setFile","setFileName","ComboBox","parseInt","multiline","getElementById","onSave","onClose","VyjadreniDetailFileList","setItems","isEditOpen","setIsEditOpen","selectedFile","setSelectedFile","error","setError","vyjadreniApi","vyjadreniId","vyjadreni","deteleFile","confirm","deleteFile","message","download","insertFile","addFile","updateFile","saveFile","MessageBar","messageBarType","MessageBarType","isMultiline","dismissButtonAriaLabel","readonly","vyjadresniId","IVyjadreniPrilohaStavEnum","Rucne","IVyjadreniPrilohaTypEnum","TrasyNahledProjekt","isHeaderVisible","EmailPriloha","OblastZajmu","TrasyNahled","Vyjadreni","editFile","enterModalSelectionOnTouch","Modal","VyjadreniStavOptions","VyjadreniDetailForm","setVyjadreni","setOblasti","getOblasti","getVyjadreni","v","pritomnostSite","pritomnostProjektSite","Toggle","defaultChecked","zapracovanaSEK","oblast","isNumber","sitePoda","siteVSB","saveVyjadreni","openTextEditor","Boolean","hostname","match","rootElement","getElementsByTagName","getAttribute","history","createBrowserHistory","store","configureStore","script","async","defer","bingmapsCallback","loadModule","ReactDOM","render","src","loadScript","UpresneniZadostiForm","prilohySelected","setPrilohySelected","uploadProgress","setUploadProgress","uploadFileName","setUploadFileName","uploading","newaFiles","uploadFiles","progress","filename","fieldChanged","multiple","ProgressIndicator","percentComplete","allowDisabledFocus","deleteFiles","fileItems","Icon","fontStyle","UpresneniZadosti","fieldChangedBind","validatition","Valid","valid","prilohy","updateUpresneniZadani"],"mappings":"q7BAEA,IASY,EATR,EAAJ,KAOA,SAEA,SAAY,GACR,mBACA,+BAFJ,CAAY,4BAAS,KAiCrB,IAAI,EAAiB,OAAO,UAE5B,cAKI,WAAY,GAAZ,MACI,OAAAA,KAAM,IAAM,K,OACZ,EAAK,MAAQ,CAAE,iBAAa,G,EAuUpC,OA9UyB,OAUrB,yCACI,EAAY,OAAO,UAQnB,GANA,KAAK,IAAM,IAAI,EAAU,KAAK,IADH,QACqB,CAC5C,YAAa,mEACb,UAAW,EAAU,KAAK,UAAU,OACpC,KAAM,KAAK,MAAM,QACjB,OAAQ,IAAI,EAAU,KAAK,SAAS,KAAK,MAAM,OAAO,SAAU,KAAK,MAAM,OAAO,aAElF,KAAK,IAAK,CACV,IAAM,EACN,CACI,SAAU,IAAI,EAAU,KAAK,WAAW,CACpC,eAAgB,qDAChB,QAAS,GACT,QAAS,MAGZ,EAAU,IAAI,EAAU,KAAK,UAAU,GAC5C,EAAU,KAAK,OAAO,WAAW,KAAK,IAAK,QAAS,KAAK,SAAS,KAAK,OAWvE,EAAU,KAAK,OAAO,WAAW,KAAK,IAAK,YAAa,SAAmB,GACvE,IACI,GAAI,KAAK,MAAM,WAAa,EAAU,WAAY,CAC9C,IAAK,EAAO,IAAI,EAAU,KAAK,MAAM,EAAE,OAAQ,EAAE,QAC5C,EAAK,EAAE,OAAO,mBAAmB,GAEjC,EAAkC,GAMvC,GALI,KAAK,MAAM,aAAe,KAAK,MAAM,YAAa,OAAS,IAC3D,EAAQ,CAAC,IAAI,EAAU,KAAK,SAAS,KAA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,EAAS,6BAA8B,EACvC,EAAS,UAAY,IAAI,uBAAqB,CAC1C,OAAQ,oBAGZ,KAAK,YAAc,IAAI,cAAY,GAEnC,KAAK,YAAY,OAAO,kBAAiB,gD,yDACjC,KAAK,YACL,GAAM,KAAK,YAAY,cADvB,M,OACA,SACA,KAAK,YAAY,M,iDAK7B,sBAAW,aAAQ,C,IAAnB,WAAwB,OAAO,G,gCACnC,EAtOA,GAAa,qBAwOb,IAAO,EAAa,IAAI,EAExB,UAAe,G,iFChQf,SAAY,GACR,6BACA2U,IAAA,6BACA,iCACAA,EAAyBA,EAAzB,2CACAA,EAAyBA,EAAzB,+BALJ,CAAY,wDAAwB,O","file":"static/js/main.797a9d01.chunk.js","sourcesContent":["\"use strict\";\r\n/// \r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar RuianInterfaceTypeEnum_1 = require(\"../../../Types/Ruian/RuianInterfaceTypeEnum\");\r\nvar mapStates;\r\n(function (mapStates) {\r\n mapStates[mapStates[\"view\"] = 0] = \"view\";\r\n mapStates[mapStates[\"newPolygon\"] = 1] = \"newPolygon\";\r\n})(mapStates = exports.mapStates || (exports.mapStates = {}));\r\nvar Microsoft = window.Microsoft;\r\nvar Map = /** @class */ (function (_super) {\r\n __extends(Map, _super);\r\n function Map(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.state = { drawPolygon: undefined };\r\n return _this;\r\n }\r\n Map.prototype.componentDidMount = function () {\r\n Microsoft = window.Microsoft;\r\n var mapReference = '#mapa';\r\n this.map = new Microsoft.Maps.Map(mapReference, {\r\n credentials: \"AuwVkZ9Hc2pmQ3iTCOwpcDZlY6DQI0I5MxEuPpZE68p--J-MxWGib3C_9YX7JXi2\",\r\n mapTypeId: Microsoft.Maps.MapTypeId.aerial,\r\n zoom: this.props.mapZoom,\r\n center: new Microsoft.Maps.Location(this.props.center.latitude, this.props.center.longitude)\r\n });\r\n if (this.map) {\r\n var config = {\r\n mercator: new Microsoft.Maps.TileSource({\r\n uriConstructor: \"/api/wms/GetImageQuadKey?quadKey={quadkey}&wmsId=1\",\r\n minZoom: 13,\r\n maxZoom: 22,\r\n })\r\n };\r\n var mapLayer = new Microsoft.Maps.TileLayer(config);\r\n Microsoft.Maps.Events.addHandler(this.map, 'click', this.mapclick.bind(this));\r\n //Microsoft.Maps.Events.addHandler(this.map, 'rightclick', function (this: Map, e: any) {\r\n // var point = new Microsoft.Maps.Point(e.getX(), e.getY());\r\n // var loc = e.target.tryPixelToLocation(point);\r\n // const coor: ICoordinate = { latitude: loc.latitude, longitude: loc.longitude, elevation: 0 }\r\n // if (this.state.activePolygon && this.props.mapState === mapStates.newPolygon) {\r\n // this.setState({ activePolygon: [...this.state.activePolygon, coor] });\r\n // }\r\n //}.bind(this));\r\n Microsoft.Maps.Events.addHandler(this.map, 'mousemove', function (e) {\r\n try {\r\n if (this.props.mapState === mapStates.newPolygon) {\r\n var point = new Microsoft.Maps.Point(e.getX(), e.getY());\r\n var loc = e.target.tryPixelToLocation(point);\r\n var coord = [];\r\n if (this.state.drawPolygon && this.state.drawPolygon.length > 0) {\r\n coord = [new Microsoft.Maps.Location(this.state.drawPolygon[this.state.drawPolygon.length - 1].latitude, this.state.drawPolygon[this.state.drawPolygon.length - 1].longitude),\r\n loc,\r\n ];\r\n }\r\n if (coord.length === 2) {\r\n try {\r\n if (this.tmpline) {\r\n this.tmpline.setLocations(coord);\r\n }\r\n else {\r\n this.tmpline = new Microsoft.Maps.Polyline(coord, {\r\n strokeColor: 'red',\r\n strokeThickness: 2,\r\n strokeDashArray: [1, 2]\r\n });\r\n if (this.tmpline)\r\n this.map && this.map.entities.push(this.tmpline);\r\n }\r\n }\r\n catch (message) {\r\n console.error(\"2\");\r\n console.warn(message);\r\n }\r\n }\r\n }\r\n }\r\n catch (exception) {\r\n console.log(exception);\r\n }\r\n }.bind(this));\r\n Microsoft.Maps.Events.addHandler(this.map, 'viewchangeend', function (e) {\r\n if (this.map) {\r\n this.props.setMapZoom(this.map.getZoom());\r\n }\r\n }.bind(this));\r\n this.map.layers.insert(mapLayer);\r\n }\r\n };\r\n Map.prototype.componentDidUpdate = function (prevProps) {\r\n var _a, _b;\r\n if (this.props.mapZoom !== prevProps.mapZoom) {\r\n console.log(\"New zoom:\" + this.props.mapZoom);\r\n (_a = this.map) === null || _a === void 0 ? void 0 : _a.setView({\r\n zoom: this.props.mapZoom\r\n });\r\n }\r\n if (this.props.center !== prevProps.center) {\r\n (_b = this.map) === null || _b === void 0 ? void 0 : _b.setView({\r\n center: new Microsoft.Maps.Location(this.props.center.latitude, this.props.center.longitude)\r\n });\r\n }\r\n if (this.map) {\r\n this.map.entities.clear();\r\n this.tmpline = undefined;\r\n this.renderPainting();\r\n this.renderItems();\r\n this.renderActive();\r\n }\r\n if (this.props.mapState !== prevProps.mapState) {\r\n if (this.props.mapState === mapStates.newPolygon) {\r\n this.setState({ drawPolygon: [] });\r\n }\r\n else {\r\n this.setState({ drawPolygon: undefined });\r\n }\r\n }\r\n };\r\n Map.prototype.Clip = function (n, minValue, maxValue) {\r\n return Math.min(Math.max(n, minValue), maxValue);\r\n };\r\n Map.prototype.LatLongToPixelXY = function (latitude, longitude, levelOfDetail) {\r\n var x = (longitude + 180) / 360;\r\n var sinLatitude = Math.sin(latitude * Math.PI / 180);\r\n var y = 0.5 - Math.log((1 + sinLatitude) / (1 - sinLatitude)) / (4 * Math.PI);\r\n var mapSize = 256 << levelOfDetail;\r\n console.log(\"map size: \" + mapSize);\r\n var pixelX = this.Clip(x * mapSize + 0.5, 0, mapSize - 1);\r\n var pixelY = this.Clip(y * mapSize + 0.5, 0, mapSize - 1);\r\n console.log(\"pixelX: \" + pixelX);\r\n console.log(\"pixelY: \" + pixelY);\r\n return { pixelX: pixelX, pixelY: pixelY };\r\n };\r\n Map.prototype.mapclick = function (e) {\r\n var _this = this;\r\n var point = new Microsoft.Maps.Point(e.getX(), e.getY());\r\n var loc = e.target.tryPixelToLocation(point);\r\n console.log(loc);\r\n var coor = { latitude: loc.latitude, longitude: loc.longitude, elevation: 0 };\r\n if (this.map) {\r\n if (this.props.mapState === mapStates.newPolygon) {\r\n var konec = false;\r\n if (this.state.drawPolygon) {\r\n var firstPoint = (this.state.drawPolygon.length === 0 ? coor : this.state.drawPolygon[0]);\r\n var r1 = this.LatLongToPixelXY(firstPoint.latitude, firstPoint.longitude, this.map.getZoom());\r\n var r2 = this.LatLongToPixelXY(coor.latitude, coor.longitude, this.map.getZoom());\r\n if (this.state.drawPolygon.length > 1 && Math.abs(r1.pixelX - r2.pixelX) < 10 && Math.abs(r1.pixelY - r2.pixelY) < 10) {\r\n konec = true;\r\n }\r\n if (!konec) {\r\n this.setState({ drawPolygon: __spreadArrays(this.state.drawPolygon, [coor]) });\r\n }\r\n else {\r\n this.setState({ drawPolygon: __spreadArrays(this.state.drawPolygon, [coor, this.state.drawPolygon[0]]) }, function () {\r\n _this.tmpline = undefined;\r\n _this.props.chageMapState(mapStates.view);\r\n _this.props.setActivePolygone(_this.state.drawPolygon);\r\n });\r\n }\r\n }\r\n }\r\n else {\r\n if (this.map && this.map.getZoom() > 16) {\r\n this.props.findParcelByLocation(coor);\r\n }\r\n }\r\n }\r\n };\r\n Map.prototype.addPolygon = function (location, color) {\r\n if (this.map && location && location.length > 2) {\r\n var exteriorRing = location.map(function (item, index) {\r\n return new Microsoft.Maps.Location(item.latitude, item.longitude);\r\n });\r\n //Create a polygon\r\n var polygon = new Microsoft.Maps.Polygon(exteriorRing, {\r\n fillColor: color.fill,\r\n strokeColor: color.color,\r\n strokeThickness: 2,\r\n strokeDashArray: [1, 2],\r\n });\r\n this.map.entities.push(polygon);\r\n }\r\n };\r\n Map.prototype.addPolyline = function (line, color) {\r\n if (this.map && line && line.length > 1) {\r\n var exteriorRing = line.map(function (item, index) {\r\n return new Microsoft.Maps.Location(item.latitude, item.longitude);\r\n });\r\n //Create a polygon\r\n var polygon = new Microsoft.Maps.Polyline(exteriorRing, {\r\n strokeColor: color.color,\r\n strokeThickness: 1,\r\n });\r\n //Add the polygon to map\r\n this.map.entities.push(polygon);\r\n }\r\n };\r\n Map.prototype.renderPainting = function () {\r\n if (this.map && this.state.drawPolygon) {\r\n if (this.props.mapState == mapStates.newPolygon) {\r\n this.addPolyline(this.state.drawPolygon, { color: \"red\", fill: \"transparent\" });\r\n }\r\n }\r\n };\r\n Map.prototype.renderActive = function () {\r\n var active = this.props.active;\r\n if (active) {\r\n this.renderItem(active, active);\r\n }\r\n };\r\n Map.prototype.renderAddress = function (item, color) {\r\n if (this.map && item) {\r\n var location_1 = new Microsoft.Maps.Location(item.point.latitude, item.point.longitude);\r\n var pin = new Microsoft.Maps.Pushpin(location_1, {\r\n title: item.title,\r\n color: color.color\r\n });\r\n this.map.entities.push(pin);\r\n //if (this.props.adresa.definicniCara) {\r\n // for (var i = 0; i < this.props.adresa.definicniCara.length; i++)\r\n // this.addPolyline(this.props.adresa.definicniCara[i]);\r\n //}\r\n }\r\n };\r\n Map.prototype.renderKatastr = function (item, color) {\r\n if (this.map != undefined && item) {\r\n var location_2 = new Microsoft.Maps.Location(item.point.latitude, item.point.longitude);\r\n var pin = new Microsoft.Maps.Pushpin(location_2, {\r\n title: \"katastr: \" + item.title,\r\n subTitle: 'obec: ' + item.subTitle\r\n });\r\n this.map.entities.push(pin);\r\n if (item.polygon != undefined) {\r\n this.addPolygon(item.polygon, color);\r\n }\r\n }\r\n };\r\n Map.prototype.renderParcel = function (item, color) {\r\n if (this.map != undefined && item) {\r\n var location_3 = new Microsoft.Maps.Location(item.point.latitude, item.point.longitude);\r\n var pin = new Microsoft.Maps.Pushpin(location_3, {\r\n icon: 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',\r\n title: 'parcela: ' + item.title,\r\n subTitle: item.subTitle,\r\n color: color.color\r\n });\r\n pin.metadata = __assign({}, item);\r\n this.map.entities.push(pin);\r\n if (item.polygon) {\r\n this.addPolygon(item.polygon, color);\r\n }\r\n }\r\n };\r\n Map.prototype.renderPoligon = function (item, color) {\r\n if (this.map != undefined && item) {\r\n if (item.polygon) {\r\n this.addPolygon(item.polygon, color);\r\n }\r\n }\r\n };\r\n Map.prototype.renderItems = function () {\r\n var items = this.props.items;\r\n if (items) {\r\n for (var i = 0; i < items.length; i++) {\r\n if (!this.props.active || (this.props.active && this.props.active.key != items[i].key))\r\n this.renderItem(items[i], this.props.active);\r\n }\r\n }\r\n };\r\n Map.prototype.renderItem = function (item, active) {\r\n var colors = (active && item.key === active.key) ?\r\n {\r\n color: \"rgb(255, 0, 0, 0.7)\",\r\n fill: \"rgb(255, 0, 0, 0.3)\"\r\n }\r\n :\r\n {\r\n color: \"rgb(0, 0, 0, 0.7)\",\r\n fill: \"rgb(0, 255, 0, 0.3)\"\r\n };\r\n switch (item.discriminator) {\r\n case RuianInterfaceTypeEnum_1.RuianInterfaceTypeEnum.Adresa:\r\n this.renderAddress(item, colors);\r\n break;\r\n case RuianInterfaceTypeEnum_1.RuianInterfaceTypeEnum.Katastr:\r\n this.renderKatastr(item, colors);\r\n break;\r\n case RuianInterfaceTypeEnum_1.RuianInterfaceTypeEnum.Parcela:\r\n this.renderParcel(item, colors);\r\n break;\r\n case RuianInterfaceTypeEnum_1.RuianInterfaceTypeEnum.Ulice:\r\n this.renderAddress(item, colors);\r\n break;\r\n case RuianInterfaceTypeEnum_1.RuianInterfaceTypeEnum.Polygone:\r\n this.renderPoligon(item, colors);\r\n break;\r\n }\r\n };\r\n Map.prototype.getDruhCislovaniKodText = function (kod) {\r\n switch (kod) {\r\n case 1: return \"stavení parcela\";\r\n case 2: return \"pozemková parcela\";\r\n default: return \"neznámý typ\";\r\n }\r\n };\r\n Map.prototype.render = function () {\r\n return React.createElement(\"div\", { style: { minHeight: \"600px;\" }, id: 'mapa', className: 'react-bingmaps' }, \" \");\r\n };\r\n return Map;\r\n}(React.Component));\r\nexports.Map = Map;\r\n//# sourceMappingURL=Map.js.map","import * as React from 'react'\r\nimport { IZakaznikDto } from '../../../Types/Zadost/IZakaznik'\r\nimport { Stack, TextField, Toggle, Check } from '@fluentui/react'\r\nimport { KeyValuePair } from '../../Validation';\r\nimport { IZakaznikFormaEnum } from '../../../Types/Zadost/IZakaznikFormaEnum';\r\ninterface IZakaznikPanelProps\r\n{\r\n id:string\r\n zakaznik: IZakaznikDto;\r\n validation: KeyValuePair;\r\n disabled: boolean;\r\n handleChanged?: (event: React.FormEvent) => void\r\n handleChangedNameValue?: (key: string, value: any) => void\r\n}\r\n\r\n\r\nexport const ZakaznikForm: React.FC = (props) => {\r\n\r\n const { disabled, handleChanged, zakaznik, validation } = props;\r\n const textStyle = { subComponentStyles: { label: { root: { width: \"185px\" } } } };\r\n return (\r\n \r\n {\r\n props.handleChangedNameValue && props.handleChangedNameValue(\"forma\", (checked ? IZakaznikFormaEnum.prvnickaOsoba : IZakaznikFormaEnum.fyzickaOsoba))\r\n }}\r\n />\r\n {(zakaznik.forma === IZakaznikFormaEnum.prvnickaOsoba ?\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n :null)}\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n}\r\n","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar AutocompleteStyles_1 = require(\"./AutocompleteStyles\");\r\nvar react_2 = require(\"@fluentui/react\");\r\nvar KeyCodes = {\r\n tab: 9,\r\n enter: 13,\r\n left: 37,\r\n up: 38,\r\n right: 39,\r\n down: 40,\r\n};\r\nvar SearchAutocomplete = /** @class */ (function (_super) {\r\n __extends(SearchAutocomplete, _super);\r\n function SearchAutocomplete(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this._menuButtonElement = React.createRef();\r\n _this.handleClick = function (item) {\r\n _this.setState({ searchText: item.displayValue }, function () {\r\n if (_this.props.onItemSelectedCallback) {\r\n _this.props.onItemSelectedCallback(item);\r\n }\r\n });\r\n _this.hideSuggestionCallOut();\r\n };\r\n _this.renderSearch = function () {\r\n return (React.createElement(\"div\", { ref: _this._menuButtonElement, style: AutocompleteStyles_1.AutocompleteStyles(), onKeyDown: _this.onKeyDown },\r\n React.createElement(react_1.SearchBox, { styles: _this.props.styles, value: _this.state.searchText, id: _this.props.id, placeholder: _this.props.placeholder, onSearch: function (newValue) { return _this.onSearch(newValue); }, onChange: _this.change.bind(_this), onKeyDown: _this.onKeyDown.bind(_this), onClear: _this.props.onClear }),\r\n _this.props.filtrInfo && _this.props.filtrInfo != \"\" ? React.createElement(react_1.MessageBar, { onDismiss: _this.props.onClearFilter, dismissButtonAriaLabel: \"Close\", messageBarType: react_1.MessageBarType.info }, _this.props.filtrInfo) : null,\r\n _this.renderSuggestions()));\r\n };\r\n _this.renderSuggestions = function () {\r\n return ((_this.state.items.length > 0 && _this.state.isSuggestionDisabled ?\r\n React.createElement(react_1.Callout, { id: _this.props.id + 'SuggestionContainer', ariaLabelledBy: 'callout-suggestions', gapSpace: 2, coverTarget: false, alignTargetEdge: true, onDismiss: function (ev) { return _this.hideSuggestionCallOut(); }, setInitialFocus: false, hidden: !_this.state.isSuggestionDisabled, calloutMaxHeight: 400, style: AutocompleteStyles_1.CalloutStyle(), target: _this._menuButtonElement.current, directionalHint: 5, isBeakVisible: false }, _this.renderSuggestionList())\r\n : null));\r\n };\r\n _this.renderSuggestionList = function () {\r\n return (React.createElement(react_2.FocusZone, { direction: react_2.FocusZoneDirection.vertical },\r\n React.createElement(react_1.List, { id: _this.props.id + \"SearchList\", tabIndex: 0, items: _this.state.items, onRenderCell: (_this.props.onRenderCell ? _this.props.onRenderCell : _this._onRenderCell) })));\r\n };\r\n _this._onRenderCell = function (item) {\r\n if (item.key !== -1) {\r\n return (React.createElement(\"div\", { id: _this.randomId + item.key, key: item.key, \"data-is-focusable\": true, tabIndex: item.key == 0 ? 0 : -1, onKeyDown: function (ev) { return _this.handleListItemKeyDown(ev, item); } },\r\n React.createElement(\"div\", { id: 'link' + item.key, style: AutocompleteStyles_1.SuggestionListStyle(), onClick: function () { return _this.handleClick(item); } },\r\n item.displayValue,\r\n \" \",\r\n React.createElement(\"br\", null),\r\n React.createElement(\"span\", { style: { fontSize: \"10px\" } },\r\n \" \",\r\n item.type + \" \" + item.description))));\r\n }\r\n else {\r\n return (React.createElement(\"div\", { key: item.key, \"data-is-focusable\": true }, item.displayValue));\r\n }\r\n };\r\n _this.handleListItemKeyDown = function (ev, item) {\r\n var keyCode = ev.which;\r\n switch (keyCode) {\r\n case KeyCodes.enter:\r\n _this.handleClick(item);\r\n break;\r\n }\r\n };\r\n _this.onKeyDown = function (ev) {\r\n var keyCode = ev.which;\r\n switch (keyCode) {\r\n case KeyCodes.down:\r\n ev.preventDefault();\r\n var el = window.document.querySelector(\"#\" + _this.randomId + \"0\");\r\n if (el) {\r\n el.focus();\r\n }\r\n break;\r\n }\r\n return true;\r\n };\r\n _this.state = {\r\n items: [],\r\n isSuggestionDisabled: false,\r\n searchText: '',\r\n };\r\n _this.randomId = _this.makeid(6);\r\n return _this;\r\n }\r\n SearchAutocomplete.prototype.makeid = function (length) {\r\n var result = '';\r\n var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\r\n var charactersLength = characters.length;\r\n for (var i = 0; i < length; i++) {\r\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\r\n }\r\n return result;\r\n };\r\n SearchAutocomplete.prototype.getComponentName = function () {\r\n return 'SearchSuggestions';\r\n };\r\n SearchAutocomplete.prototype.componentDidMount = function () {\r\n };\r\n SearchAutocomplete.prototype.search = function (value) {\r\n this.setState({ items: [] });\r\n };\r\n SearchAutocomplete.prototype.render = function () {\r\n return (this.renderSearch());\r\n };\r\n SearchAutocomplete.prototype.change = function (e, newSearchText) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var _this = this;\r\n return __generator(this, function (_a) {\r\n if (newSearchText != undefined) {\r\n this.setState({ searchText: newSearchText }, function () {\r\n if (_this.props.onSearch) {\r\n _this.props.onSearch(newSearchText).then(function (value) {\r\n _this.setState({ items: value }, function () { _this.showSuggestionCallOut(); });\r\n }).catch(function (error) { console.log(error); return []; });\r\n }\r\n });\r\n }\r\n return [2 /*return*/];\r\n });\r\n });\r\n };\r\n SearchAutocomplete.prototype.onSearch = function (enteredEntityValue) {\r\n if (this.props.searchCallback) {\r\n this.props.searchCallback(enteredEntityValue.trim());\r\n }\r\n if (this.state.items.length == 1) {\r\n this.handleClick(this.state.items[0]);\r\n }\r\n else {\r\n this.showSuggestionCallOut();\r\n }\r\n };\r\n SearchAutocomplete.prototype.showSuggestionCallOut = function () {\r\n this.setState({ isSuggestionDisabled: true });\r\n };\r\n SearchAutocomplete.prototype.hideSuggestionCallOut = function () {\r\n this.setState({ isSuggestionDisabled: false });\r\n };\r\n return SearchAutocomplete;\r\n}(React.Component));\r\nexports.default = SearchAutocomplete;\r\n//# sourceMappingURL=SearchAutocomplete.js.map","import * as React from 'react'\r\nimport { Stack, Label, ChoiceGroup, IChoiceGroupOption, TextField } from '@fluentui/react';\r\nimport { ZakaznikForm } from '../../zadost/KontaktniInformace/ZakaznikForm';\r\nimport { KeyValuePair } from '../../Validation';\r\nimport { IZakaznikDto } from '../../../Types/Zadost/IZakaznik';\r\nimport { IZakaznikFormaEnum } from '../../../Types/Zadost/IZakaznikFormaEnum';\r\nimport { IZadostApi } from '../../../Services/IZadostApi';\r\nimport { IZadostListItem } from '../../../Types/Admin/ZadostListItem';\r\nimport { IApiError } from '../../../Types/IApiError';\r\nimport { IZadost } from '../../../Types/Zadost/IZadost';\r\n\r\ninterface IZadostDetailFormProps {\r\n zadost: IZadostListItem;\r\n zadostApi: IZadostApi;\r\n}\r\n\r\nconst validation: KeyValuePair = {};\r\n\r\ntype StavZadosti = {\r\n [key: number]: string\r\n}\r\n\r\nexport const stavZadosti: StavZadosti = {\r\n 0: \"Před dokončením uživatelem\",\r\n 10: \"Založená žádost\",\r\n 20: \"Vygenerováno potvrzení\",\r\n 30: \"Vyjádření zpracováno\",\r\n 100: \"Vyjádření dokončeno\",\r\n}\r\n\r\nexport const ZadostDetailForm: React.FC = (props) => {\r\n const [selectedKey, setSelectedKey] = React.useState('zadatel');\r\n const [zadost, setZadost] = React.useState ()\r\n\r\n const getDetail = async (id: number) => {\r\n const data = await props.zadostApi.getZadost(\"\", props.zadost.id) \r\n if (!(data as IApiError).messageId) {\r\n\r\n const zadost = data as IZadost;\r\n if (zadost) {\r\n zadost.investor.forma = (zadost.investor.ic && zadost.investor.ic != '') ? IZakaznikFormaEnum.prvnickaOsoba : IZakaznikFormaEnum.fyzickaOsoba;\r\n zadost.zadatel.forma = (zadost.zadatel.ic && zadost.zadatel.ic != '') ? IZakaznikFormaEnum.prvnickaOsoba : IZakaznikFormaEnum.fyzickaOsoba;\r\n }\r\n\r\n setZadost(data as IZadost);\r\n }\r\n else {\r\n\r\n }\r\n }\r\n\r\n React.useEffect(() => {\r\n if (props.zadost) {\r\n getDetail(props.zadost.id); \r\n }\r\n }, [props.zadost]);\r\n\r\n const ChoiceGroupChanged = (ev?: React.FormEvent, option?: IChoiceGroupOption) => {\r\n if (option) {\r\n setSelectedKey(option.key);\r\n }\r\n console.log(option);\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n {zadost ? : null}\r\n );\r\n}","\"use strict\";\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.rebex = {\r\n EmailRegExp: new RegExp(/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/),\r\n NumbersOnlyRegExp: new RegExp(\"^\\\\d+$\")\r\n};\r\n/**\r\n * Validace pravidla proti zadané hodnotě\r\n * @param value\r\n * @param rule\r\n */\r\nfunction validate(value, rule) {\r\n if (!rule) {\r\n return rule;\r\n }\r\n var result = false;\r\n if (rule.required && value && value !== \"\") {\r\n result = true;\r\n }\r\n if (result && rule.regexp) {\r\n if (!rule.regexp.test(value)) {\r\n result = false;\r\n }\r\n else\r\n result = true;\r\n }\r\n return __assign(__assign({}, rule), { isValid: result, lastValue: value, validated: true });\r\n}\r\nexports.validate = validate;\r\n/**\r\n * Zkontroluje výsledek všech pravidel, pokud je jedno false pak výsledek funkce je false\r\n * @param rules pravidla která se kontrolují\r\n */\r\nfunction checkAllRules(rules) {\r\n var result = true;\r\n for (var key in rules) {\r\n if (rules[key] && (!rules[key].isValid || !rules[key].validated)) {\r\n console.log(key);\r\n result = false;\r\n break;\r\n }\r\n }\r\n return result;\r\n}\r\nexports.checkAllRules = checkAllRules;\r\nfunction validateLasValues(rules) {\r\n var ruleCopy = __assign({}, rules);\r\n for (var key in ruleCopy) {\r\n if (ruleCopy[key] && (!ruleCopy[key].isValid || !ruleCopy[key].validated)) {\r\n ruleCopy[key] = validate(ruleCopy[key].lastValue ? ruleCopy[key].lastValue : \"\", ruleCopy[key]);\r\n }\r\n }\r\n return ruleCopy;\r\n}\r\nexports.validateLasValues = validateLasValues;\r\n//# sourceMappingURL=Validation.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.SET_CONFIGURATION = 'SET_CONFIGURATION';\r\n//# sourceMappingURL=constants.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.SET_ZADOST = 'SET_ZADOST';\r\nexports.SET_WORKING = 'SET_WORKING';\r\nexports.SET_ZADOST_KROK = 'SET_ZADOST_KROK';\r\nexports.SET_ZADOST_KONTAKT = 'SET_ZADOST_KONTAKT';\r\nexports.SET_ZADOST_UPRESNENI = 'SET_ZADOST_UPRESNENI';\r\nexports.ADD_UZEMI = 'ADD_UZEMI';\r\n//# sourceMappingURL=constants.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar Result = /** @class */ (function () {\r\n function Result() {\r\n }\r\n Result.ok = function (data) {\r\n return {\r\n data: data,\r\n message: \"\",\r\n idMessage: 0,\r\n isSuccess: true,\r\n isFailed: false\r\n };\r\n };\r\n Result.Fail = function (idMessage, message, data) {\r\n if (data === void 0) { data = null; }\r\n return {\r\n data: data,\r\n message: message,\r\n idMessage: idMessage,\r\n isSuccess: false,\r\n isFailed: true\r\n };\r\n };\r\n return Result;\r\n}());\r\nexports.Result = Result;\r\n//# sourceMappingURL=IResult.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_router_dom_1 = require(\"react-router-dom\");\r\nvar Layout_1 = require(\"./components/Layout\");\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar Home_1 = require(\"./components/Home\");\r\nvar NovaZadost_1 = require(\"./components/zadost/NovaZadost\");\r\nvar ApiAuthorizationConstants_1 = require(\"./components/api-authorization/ApiAuthorizationConstants\");\r\nvar ApiAuthorizationRoutes_1 = require(\"./components/api-authorization/ApiAuthorizationRoutes\");\r\nvar telemetry_provider_1 = require(\"./telemetry-provider\");\r\nvar admin_1 = require(\"./components/admin/admin\");\r\nreact_1.initializeIcons();\r\nvar Microsoft = null;\r\nvar App = /** @class */ (function (_super) {\r\n __extends(App, _super);\r\n function App(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.state = { mapsLoaded: false };\r\n return _this;\r\n }\r\n App.prototype.loadScript = function (url) {\r\n var script = document.createElement(\"script\");\r\n script.type = \"text/javascript\";\r\n script.async = true;\r\n script.defer = true;\r\n window.bingmapsCallback = function (e) {\r\n // alert(\"onload\");\r\n Microsoft = window.Microsoft;\r\n Microsoft.Maps.loadModule(\"Microsoft.Maps.Clustering\");\r\n Microsoft.Maps.loadModule('Microsoft.Maps.GeoJson');\r\n Microsoft.Maps.loadModule(\"Microsoft.Maps.SpatialMath\", function () {\r\n this.setState({ mapsLoaded: true });\r\n }.bind(this));\r\n }.bind(this);\r\n script.src = url;\r\n document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n };\r\n App.prototype.componentDidMount = function () {\r\n if (!window.Microsoft) {\r\n this.loadScript(\"https://www.bing.com/api/maps/mapcontrol?callback=bingmapsCallback\");\r\n }\r\n };\r\n App.prototype.render = function () {\r\n var _this = this;\r\n return (React.createElement(telemetry_provider_1.default, { after: function () { } },\r\n React.createElement(Layout_1.Layout, null,\r\n React.createElement(react_router_dom_1.Route, { exact: true, path: '/', component: Home_1.default }),\r\n React.createElement(react_router_dom_1.Route, { path: '/NovaZadost/:krok', render: function (props) { return React.createElement(NovaZadost_1.default, { userApi: _this.props.userApi, zadaniApi: _this.props.zadaniApi, zadostApi: _this.props.zadostApi, ruianApi: _this.props.ruianApi }); } }),\r\n React.createElement(react_router_dom_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.ApiAuthorizationPrefix, component: ApiAuthorizationRoutes_1.default }),\r\n React.createElement(react_router_dom_1.Route, { path: '/admin', render: function (props) { return React.createElement(admin_1.default, { vyjadreniApi: _this.props.vyjadreniApi, zadaniApi: _this.props.zadaniApi, zadostApi: _this.props.zadostApi }); } }))));\r\n };\r\n return App;\r\n}(React.Component));\r\nexports.default = App;\r\n//# sourceMappingURL=App.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar constants = require(\"./constants\");\r\nfunction SetConfiguration(data) {\r\n return {\r\n type: constants.SET_CONFIGURATION,\r\n configuration: data\r\n };\r\n}\r\nexports.SetConfiguration = SetConfiguration;\r\n//# sourceMappingURL=actions.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar IVyjadreniPrilohaStavEnum;\r\n(function (IVyjadreniPrilohaStavEnum) {\r\n IVyjadreniPrilohaStavEnum[IVyjadreniPrilohaStavEnum[\"Automaticky\"] = 0] = \"Automaticky\";\r\n IVyjadreniPrilohaStavEnum[IVyjadreniPrilohaStavEnum[\"Rucne\"] = 10] = \"Rucne\";\r\n})(IVyjadreniPrilohaStavEnum = exports.IVyjadreniPrilohaStavEnum || (exports.IVyjadreniPrilohaStavEnum = {}));\r\n//# sourceMappingURL=IVyjadreniPrilohaStavEnum.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar IGeoJsonFeatureCollection_1 = require(\"../../../Types/GeoJSON/IGeoJsonFeatureCollection\");\r\nvar earthMath_1 = require(\"../../../helpers/earthMath\");\r\nvar axios_1 = require(\"axios\");\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar Microsoft = window.Microsoft;\r\nvar ZadaniDetailMapForm = /** @class */ (function (_super) {\r\n __extends(ZadaniDetailMapForm, _super);\r\n function ZadaniDetailMapForm(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.updateDimensions = function () {\r\n _this.setState({ width: window.innerWidth, height: window.innerHeight });\r\n };\r\n _this.state = { width: window.innerWidth, height: window.innerHeight, finished: true, planned: true, polygones: [] };\r\n return _this;\r\n }\r\n ZadaniDetailMapForm.prototype.getFiberData = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var bound, zoom, Northwest, Southeast, result, o, data, e_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!this.map) return [3 /*break*/, 4];\r\n bound = this.map.getBounds();\r\n zoom = this.map.getZoom();\r\n Northwest = bound.getNorthwest();\r\n Southeast = bound.getSoutheast();\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(\"/api/FiberProxy?left=\" + Northwest.longitude + \"&top=\" + Northwest.latitude + \"&right=\" + Southeast.longitude + \"&bottom=\" + Southeast.latitude + \"&zoom=0&finished=\" + this.state.finished + \"&planned=\" + this.state.planned)];\r\n case 2:\r\n result = _a.sent();\r\n if (result.data) {\r\n o = IGeoJsonFeatureCollection_1.GeoJsonFeatureCollection.GeoJsonToBingGeometry(result.data.data);\r\n data = o ? o : [];\r\n this.map.entities.setPrimitives(data.concat(this.state.polygones));\r\n }\r\n return [3 /*break*/, 4];\r\n case 3:\r\n e_1 = _a.sent();\r\n console.error(e_1);\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniDetailMapForm.prototype.componentDidUpdate = function (prevProps, prevState) {\r\n if (this.state.finished != prevState.finished || this.state.planned != prevState.planned) {\r\n this.getFiberData();\r\n }\r\n };\r\n ZadaniDetailMapForm.prototype.componentDidMount = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var result, data, o, mapReference, config, mapLayer, c, location_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n Microsoft = window.Microsoft;\r\n window.addEventListener('resize', this.updateDimensions);\r\n return [4 /*yield*/, this.props.zadaniApi.getZadaniShapes(this.props.zadaniId)];\r\n case 1:\r\n result = _a.sent();\r\n data = [];\r\n if (result.isSuccess && result.data) {\r\n o = IGeoJsonFeatureCollection_1.GeoJsonFeatureCollection.GeoJsonToBingGeometry(result.data);\r\n data = o ? o : [];\r\n console.log(result);\r\n }\r\n mapReference = '#zadanimapa';\r\n this.map = new Microsoft.Maps.Map(mapReference, {\r\n credentials: \"AuwVkZ9Hc2pmQ3iTCOwpcDZlY6DQI0I5MxEuPpZE68p--J-MxWGib3C_9YX7JXi2\",\r\n mapTypeId: Microsoft.Maps.MapTypeId.aerial,\r\n });\r\n if (this.map) {\r\n Microsoft.Maps.Events.addThrottledHandler(this.map, 'viewchangeend', function (e) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n return __generator(this, function (_a) {\r\n this.getFiberData();\r\n return [2 /*return*/];\r\n });\r\n });\r\n }.bind(this), 1000);\r\n config = {\r\n mercator: new Microsoft.Maps.TileSource({\r\n uriConstructor: this.props.wmsUrl + \"/wms/GetImageQuadKey?quadKey={quadkey}&wmsId=1\",\r\n minZoom: 13,\r\n maxZoom: 22,\r\n })\r\n };\r\n mapLayer = new Microsoft.Maps.TileLayer(config);\r\n this.map.layers.insert(mapLayer);\r\n this.setState({ polygones: data });\r\n this.map.entities.setPrimitives(data);\r\n if (data.length > 0) {\r\n c = data[0].getLocations().map(function (item) { return { latitude: item.latitude, longitude: item.longitude }; });\r\n location_1 = earthMath_1.earth.get_polygon_centroid(c);\r\n this.map.setView({\r\n center: new Microsoft.Maps.Location(location_1.latitude, location_1.longitude), zoom: 15\r\n });\r\n }\r\n this.layer = new Microsoft.Maps.Layer();\r\n if (this.layer)\r\n this.map.layers.insert(this.layer);\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniDetailMapForm.prototype.componentWillUnmount = function () {\r\n window.removeEventListener('resize', this.updateDimensions);\r\n };\r\n ZadaniDetailMapForm.prototype.onFinishChanged = function (ev, isChecked) {\r\n this.setState({ finished: isChecked ? isChecked : false });\r\n };\r\n ZadaniDetailMapForm.prototype.onPlannedChanged = function (ev, isChecked) {\r\n this.setState({ planned: isChecked ? isChecked : false });\r\n };\r\n ZadaniDetailMapForm.prototype.render = function () {\r\n return React.createElement(react_1.Stack, null,\r\n React.createElement(react_1.Stack, { horizontal: true, tokens: { childrenGap: 10, padding: 10 } },\r\n React.createElement(react_1.Checkbox, { label: \"Zobrazit dokon\\u010Den\\u00E9 trasy\", checked: this.state.finished, onChange: this.onFinishChanged.bind(this) }),\r\n React.createElement(react_1.Checkbox, { label: \"Zobrazit pl\\u00E1novan\\u00E9 trasy\", checked: this.state.planned, onChange: this.onPlannedChanged.bind(this) })),\r\n React.createElement(\"div\", { style: {\r\n position: 'relative',\r\n minWidth: this.state.width * 0.9,\r\n minHeight: this.state.height * 0.9,\r\n height: this.state.height * 0.9\r\n } },\r\n React.createElement(\"div\", { style: { minHeight: this.state.height * 0.9, minWidth: this.state.width * 0.9 }, id: 'zadanimapa', className: 'react-bingmaps' }, \" \")));\r\n };\r\n return ZadaniDetailMapForm;\r\n}(React.Component));\r\nexports.default = ZadaniDetailMapForm;\r\n//# sourceMappingURL=ZadaniDetailMap.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar redux_1 = require(\"redux\");\r\nvar redux_thunk_1 = require(\"redux-thunk\");\r\nvar connected_react_router_1 = require(\"connected-react-router\");\r\nvar redux_logger_1 = require(\"redux-logger\");\r\nvar reducer_1 = require(\"./zadost/reducer\");\r\nvar reducer_2 = require(\"./Configuration/reducer\");\r\nvar reducer_3 = require(\"./Auth/reducer\");\r\nfunction configureStore(history) {\r\n var rootReducer = redux_1.combineReducers({\r\n zadost: reducer_1.ZadostReducer,\r\n configuration: reducer_2.ConfigurationReducer,\r\n auth: reducer_3.AuthReducer,\r\n router: connected_react_router_1.connectRouter(history)\r\n });\r\n var loggerMiddleware = redux_logger_1.createLogger();\r\n var middleWareEnhancer = redux_1.applyMiddleware(redux_thunk_1.default, connected_react_router_1.routerMiddleware(history), loggerMiddleware);\r\n var store = redux_1.createStore(rootReducer, middleWareEnhancer);\r\n return store;\r\n}\r\nexports.configureStore = configureStore;\r\n//# sourceMappingURL=AppStore.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_1 = require(\"react\");\r\nvar axios_1 = require(\"axios\");\r\nvar actions_1 = require(\"../store/Configuration/actions\");\r\nvar react_redux_1 = require(\"react-redux\");\r\nvar RuianApi_1 = require(\"./RuianApi\");\r\nvar ZadostApi_1 = require(\"./ZadostApi\");\r\nvar UserApi_1 = require(\"./UserApi\");\r\nvar VyjadreniApi_1 = require(\"./VyjadreniApi\");\r\nvar ZadaniApi_1 = require(\"./ZadaniApi\");\r\nexports.axiosConfig = function (token, errorHandler) {\r\n console.log(\"axiosConfig\");\r\n axios_1.default.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';\r\n if (token && token != \"\") {\r\n axios_1.default.defaults.headers.common['Authorization'] = \"Bearer \" + token;\r\n }\r\n axios_1.default.defaults.withCredentials = true;\r\n axios_1.default.interceptors.response.use(function (response) {\r\n console.log(response.status);\r\n return Promise.resolve(response);\r\n }, function (error) {\r\n if (errorHandler) {\r\n errorHandler(error);\r\n }\r\n return Promise.reject(error);\r\n });\r\n};\r\n//export default (axiosConfig);\r\nvar ConfigurationHoc = /** @class */ (function (_super) {\r\n __extends(ConfigurationHoc, _super);\r\n function ConfigurationHoc(props) {\r\n var _this_1 = _super.call(this, props) || this;\r\n _this_1.ruianApi = new RuianApi_1.RuianApi(\"\");\r\n _this_1.zadostApi = new ZadostApi_1.ZadostApi();\r\n _this_1.zadaniApi = new ZadaniApi_1.ZadaniApi();\r\n _this_1.userApi = new UserApi_1.UserApi();\r\n _this_1.vyjadreniApi = new VyjadreniApi_1.VyjadreniApi();\r\n return _this_1;\r\n }\r\n ConfigurationHoc.prototype.initApi = function (config) {\r\n this.ruianApi.setUrl(config.ruianUrl);\r\n };\r\n ConfigurationHoc.prototype.componentDidMount = function () {\r\n var token = (this.props.isAuthenticated && this.props.user && this.props.user.token ? this.props.user.token : \"\");\r\n exports.axiosConfig(token);\r\n this.getConfig();\r\n };\r\n ConfigurationHoc.prototype.componentDidUpdate = function (prevProps) {\r\n if (this.props.isAuthenticated != prevProps.isAuthenticated) {\r\n this.getConfig();\r\n var token = (this.props.isAuthenticated && this.props.user && this.props.user.token ? this.props.user.token : \"\");\r\n exports.axiosConfig(token);\r\n }\r\n };\r\n ConfigurationHoc.prototype.getConfig = function () {\r\n var _this_1 = this;\r\n var _this = this;\r\n console.log(\"Loading configuration\");\r\n ;\r\n axios_1.default.get(\"/api/Configuration\")\r\n .then(function (res) { return __awaiter(_this_1, void 0, void 0, function () {\r\n return __generator(this, function (_a) {\r\n _this.initApi(res.data);\r\n _this.props.setConfiguration(res.data);\r\n return [2 /*return*/];\r\n });\r\n }); }).catch(function (error) {\r\n console.log(error);\r\n });\r\n };\r\n ConfigurationHoc.prototype.render = function () {\r\n var _this_1 = this;\r\n var children = this.props.children;\r\n var newChildren = React.Children.map(children, function (child) {\r\n // checking isValidElement is the safe way and avoids a typescript error too\r\n if (React.isValidElement(child)) {\r\n return React.cloneElement(child, {\r\n ruianApi: _this_1.ruianApi,\r\n zadostApi: _this_1.zadostApi,\r\n zadaniApi: _this_1.zadaniApi,\r\n userApi: _this_1.userApi,\r\n vyjadreniApi: _this_1.vyjadreniApi\r\n });\r\n }\r\n return child;\r\n });\r\n return (React.createElement(react_1.Fragment, null, newChildren));\r\n };\r\n return ConfigurationHoc;\r\n}(React.Component));\r\nvar storeToProps = function (state) { return ({\r\n isAuthenticated: state.auth.isAuthenticated,\r\n user: state.auth.user\r\n}); };\r\nvar dispatchToProps = function (dispatch) {\r\n return {\r\n setConfiguration: function (config) { return dispatch(actions_1.SetConfiguration(config)); }\r\n };\r\n};\r\nexports.default = react_redux_1.connect(storeToProps, dispatchToProps)(ConfigurationHoc);\r\n//# sourceMappingURL=ConfigurationHOC.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nrequire(\"./layout.css\");\r\nvar React = require(\"react\");\r\nvar headerMenu_1 = require(\"../components/header/headerMenu\");\r\nexports.Layout = function (props) {\r\n return React.createElement(\"div\", { className: \"App\" },\r\n React.createElement(headerMenu_1.default, null),\r\n React.createElement(\"div\", { className: \"body\" },\r\n React.createElement(\"div\", { className: \"content\" }, props.children)));\r\n};\r\n//# sourceMappingURL=Layout.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar LoginButton_1 = require(\"./login/LoginButton\");\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar connected_react_router_1 = require(\"connected-react-router\");\r\nvar react_redux_1 = require(\"react-redux\");\r\nvar headerStyle = {\r\n height: \"60px\",\r\n lineHeight: \"60px\",\r\n verticalAlign: \"middle\",\r\n borderBottom: '1px solid rgba(219, 219, 219, 1)',\r\n borderBottomWidth: \"1px\",\r\n borderBottomColor: \"gray\",\r\n};\r\nexports.HeaderMenu = function (props) {\r\n return (React.createElement(react_1.Stack, { style: headerStyle, horizontal: true },\r\n React.createElement(\"img\", { height: \"55px\", style: { verticalAlign: \"middle\", display: \"block-inline\" }, src: require('./podalogo.png'), alt: \"Logo\" }),\r\n React.createElement(react_1.Stack, { grow: true, verticalAlign: \"center\", horizontalAlign: \"end\" }, props.isAuthenticated ?\r\n React.createElement(react_1.ActionButton, { styles: {\r\n flexContainer: {\r\n flexDirection: 'row-reverse'\r\n },\r\n root: { height: 40 }\r\n }, iconProps: { iconName: \"AdminALogoInverse32\", styles: { root: { fontSize: 32, width: 40, height: 40, lineHeight: 40 } } }, onClick: function () { return props.push(\"/admin\"); } }, \"Spr\\u00E1va zadan\\u00FDch \\u017E\\u00E1dosti\")\r\n : null),\r\n React.createElement(LoginButton_1.default, null),\r\n props.children));\r\n};\r\nexports.StoreToLoginButtonState = function (state) {\r\n var _a, _b;\r\n return ({\r\n user: (_a = state.auth) === null || _a === void 0 ? void 0 : _a.user,\r\n isAuthenticated: (_b = state.auth) === null || _b === void 0 ? void 0 : _b.isAuthenticated\r\n });\r\n};\r\nexports.dispatchToLoginButtonToProps = function (dispatch) {\r\n return {\r\n push: function (url) { return dispatch(connected_react_router_1.push(url)); },\r\n };\r\n};\r\nexports.default = react_redux_1.connect(exports.StoreToLoginButtonState, exports.dispatchToLoginButtonToProps)(exports.HeaderMenu);\r\n//# sourceMappingURL=headerMenu.js.map","import * as React from 'react';\r\nimport { connect } from \"react-redux\";\r\nimport {Text, Link, ActionButton, IIconProps, getTheme, CommandBarButton, Stack, ITheme, registerIcons, FontIcon, mergeStyles, CommandButton, Callout, mergeStyleSets, FontWeights, IStackItemStyles, DefaultPalette, Button, DefaultButton, Label, FontSizes} from \"@fluentui/react\";\r\nimport authService from '../../api-authorization/AuthorizeService';\r\nimport { ApplicationPaths } from '../../api-authorization/ApiAuthorizationConstants';\r\n \r\nimport { IAppStore } from '../../../store/AppStore';\r\nimport { ThunkDispatch } from 'redux-thunk';\r\nimport { AnyAction } from 'redux';\r\nimport { push } from 'connected-react-router';\r\n \r\n \r\nimport register from '../../../registerServiceWorker';\r\nimport Axios from 'axios';\r\nimport { useBoolean } from '@uifabric/react-hooks';\r\nimport { IUser } from '../../../Types/IUser';\r\nimport { SetUser } from '../../../store/Auth/actions';\r\n\r\nexport interface ILogoutButtonState {\r\n IsCallOutVisible: boolean; \r\n}\r\n\r\nexport interface ILogoutButtonProps {\r\n user?: IUser,\r\n push: (url: string) => void;\r\n setUser: (user: IUser) => void;\r\n isAuthenticated: boolean;\r\n}\r\n\r\n\r\nregisterIcons({\r\n icons: {\r\n 'logout': (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ),\r\n 'login': (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n \r\n }\r\n});\r\n\r\nconst loginIcon: IIconProps = { iconName: 'login' };\r\nconst loggedinIcon: IIconProps = { iconName: 'Contact' };\r\n\r\nconst theme = getTheme();\r\n\r\nconst styles = mergeStyleSets({\r\n buttonArea: {\r\n verticalAlign: 'top',\r\n display: 'inline-block',\r\n textAlign: 'center', \r\n },\r\n callout: {\r\n Width: 320 \r\n },\r\n header: {\r\n paddingBottom:12\r\n },\r\n title: [\r\n theme.fonts.xLarge,\r\n {\r\n margin: 0,\r\n fontWeight: FontWeights.semilight,\r\n },\r\n ],\r\n inner: {\r\n height: '100%',\r\n padding: '0 24px 20px',\r\n },\r\n actions: {\r\n position: 'relative',\r\n marginTop: 20,\r\n width: '100%',\r\n whiteSpace: 'nowrap',\r\n },\r\n subtext: [\r\n theme.fonts.small,\r\n {\r\n margin: 0,\r\n fontWeight: FontWeights.semilight,\r\n },\r\n ],\r\n link: [\r\n theme.fonts.medium,\r\n {\r\n color: theme.palette.neutralPrimary,\r\n },\r\n ],\r\n});\r\n\r\nclass LoginButton extends React.Component\r\n{\r\n private _subscription: number = -1;\r\n private theme: ITheme;\r\n\r\n\r\n constructor(props: ILogoutButtonProps) {\r\n super(props);\r\n this.theme = getTheme();\r\n this.state = { \r\n IsCallOutVisible:false\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n this.theme = getTheme();\r\n this._subscription = authService.subscribe(() => this.populateState());\r\n this.populateState();\r\n }\r\n\r\n componentWillUnmount() {\r\n authService.unsubscribe(this._subscription);\r\n }\r\n\r\n async populateState() {\r\n\r\n const isAuthenticated = await authService.isAuthenticated();\r\n const user = await authService.getUser()\r\n const token = await authService.getAccessToken();\r\n console.log(\"populateState\");\r\n console.log(user);\r\n this.props.setUser({ \r\n surname: user && user.family_name,\r\n givenName: user && user.given_name,\r\n email: user?.name,\r\n token: token,\r\n role: user && user.role\r\n })\r\n }\r\n\r\n render() {\r\n if (this.props.isAuthenticated && this.props.user) {\r\n const profilePath = `${ApplicationPaths.Profile}`;\r\n const logoutPath = `${ApplicationPaths.LogOut}`;\r\n return this.authenticatedView(this.props.user.givenName, this.props.user.surname, this.props.user.email, profilePath, logoutPath);\r\n }\r\n else {\r\n const registerPath = `${ApplicationPaths.Register}`;\r\n const loginPath = `${ApplicationPaths.Login}`;\r\n return this.anonymouseMenu(registerPath, loginPath);\r\n }\r\n }\r\n\r\n private authenticatedView(givenname: string | null | undefined, surname: string | null | undefined, email: string | undefined | null, profilePath: string, logoutPath: string): React.ReactNode {\r\n \r\n const stackItemStyles: IStackItemStyles = {\r\n root: {\r\n alignItems: 'center',\r\n background: DefaultPalette.neutralPrimary,\r\n color: DefaultPalette.white, \r\n maxWidth:88,\r\n justifyContent: 'center',\r\n },\r\n };\r\n const stackItemStyles1: IStackItemStyles = {\r\n root: {\r\n alignItems: 'center',\r\n background: DefaultPalette.white,\r\n color: DefaultPalette.white,\r\n minWidth:182,\r\n justifyContent: 'center',\r\n paddingLeft:10\r\n },\r\n }; \r\n\r\n const theme = getTheme();\r\n\r\n return (
\r\n
\r\n { this.setState({ IsCallOutVisible: true }) }}\r\n iconProps={{ iconName: \"logout\", styles: { root: { width: 34, height: 34, lineHeight: 34 } } }}\r\n styles={{\r\n flexContainer: {\r\n flexDirection: 'row-reverse'\r\n },\r\n root: { height: 40 }\r\n }}>\r\n {givenname}\r\n \r\n
\r\n {this.state.IsCallOutVisible ?\r\n { this.setState({ IsCallOutVisible:false }) }}\r\n setInitialFocus>\r\n \r\n { this.props.push(logoutPath) }} styles={{ root: { border: 0 }, label: { fontWeight: 400 }, textContainer: { fontWeight: 400 } }} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n this.props.push(profilePath)}>Změnit nastavení profilu\r\n \r\n \r\n \r\n \r\n : null}\r\n
)\r\n }\r\n\r\n private anonymouseMenu(registerPath: string, loginPath: string): React.ReactNode {\r\n const iconClass = mergeStyles({\r\n fontSize: 40,\r\n height: 40,\r\n width: 40,\r\n padding:10,\r\n margin: '0',\r\n });\r\n return (\r\n
\r\n this.props.push(loginPath)}\r\n iconProps={{ iconName: \"login\", styles: { root: { width: 40, height: 40, lineHeight: 40 } } }}\r\n styles={{\r\n flexContainer: {\r\n flexDirection: 'row-reverse'\r\n },\r\n root: { height: 40 }\r\n }}>\r\n Přihlášení\r\n \r\n
\r\n );\r\n }\r\n\r\n private _register() {\r\n this.props.push(ApplicationPaths.Register);\r\n }\r\n\r\n _profile() {\r\n this.props.push(ApplicationPaths.Profile);\r\n }\r\n\r\n\r\n}\r\n\r\nexport const StoreToLoginButtonState = (state: IAppStore) => (\r\n {\r\n user: state.auth?.user,\r\n isAuthenticated: state.auth?.isAuthenticated\r\n});\r\n\r\nexport const dispatchToLoginButtonToProps = (dispatch: ThunkDispatch) => {\r\n return {\r\n push: (url: string) => dispatch(push(url)),\r\n setUser: (user: IUser) => dispatch(SetUser(user))\r\n };\r\n};\r\n\r\nexport default connect(StoreToLoginButtonState, dispatchToLoginButtonToProps)(LoginButton)\r\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAAA9CAYAAAD4Z2joA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cY0mN5YLlg/Z8y1ynHRo3shOq+ufy5RD9oa8wFg50eQbI4SPqYtAnFiQqy6dHL+Vco6RGhpknZBpIdJWVpRdrztlKGGTuTgh3bYk0NCQchE+5OcHYKiweds75PuHwnfnbVO/KtTfCYLQ8XcNz+XHKVjwRp0uxvGqA4aiIQMcimS6/gX9GkxzeWBJqbdlrbSu7+zHLlpfwq0g3qRzyhvhM/6bsY3dDXWV7KRbA/6Eealp6+GNWipVeO1paLD9mYUb2tUNdEVihJBDuTPjuOSsZ5mDCxDavufm1p8ajel0XWd0cuGoKtFpZ3cYHo8+cSKQKE9ukp6aW+d0/iiR6nTUZv28i2VIY+vakgtl8tkLGrQhCheogYShLBTivUjlDRuP/uar0Ljwedg3oYRXbGFBqhcuQC37S4m9LVlVLye2Nbdffp/blEAmlGb7huCSUtRp7RG9eoEJzH7xZcpTSY8tLIBnfO9ehtesqm6VpJIw7Olg0RAt/ItuEpPR5jW7rpnA0SKo8bMIgDD11iW3lHb5IYcSEDPNbbIg6KpDfX7RhqnnH6FiOfeZweJcva6ChhDFuKz5THIxzOce0AfyQ7LZ8d12Hy1ER/Wzt0vqXoeGxLask/TetHKmuujaCytm5bgi06Ti9xRs6lj8hlHGXZxMnIUFaczKn6YSoYiDJifjdUd+vb8OlYUMd8IT3S2dOdCihLx5BH/KWqcyjSHSAY82tYYMc8Ij2e9k9FWkR6dkq76oeaGzTA5O9wj/14DA39H47/BLntj3VsAAAAAElFTkSuQmCC\"","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar connected_react_router_1 = require(\"connected-react-router\");\r\nvar react_redux_1 = require(\"react-redux\");\r\nvar ApiAuthorizationConstants_1 = require(\"./api-authorization/ApiAuthorizationConstants\");\r\nvar AuthorizeService_1 = require(\"./api-authorization/AuthorizeService\");\r\nvar theme = react_1.getTheme();\r\nvar Home = /** @class */ (function (_super) {\r\n __extends(Home, _super);\r\n function Home(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this._subscription = -1;\r\n _this.state = { isAuthenticated: false, userName: null };\r\n return _this;\r\n }\r\n Home.prototype.componentDidMount = function () {\r\n var _this = this;\r\n this._subscription = AuthorizeService_1.default.subscribe(function () { return _this.populateState(); });\r\n this.populateState();\r\n };\r\n Home.prototype.componentWillUnmount = function () {\r\n AuthorizeService_1.default.unsubscribe(this._subscription);\r\n };\r\n Home.prototype.render = function () {\r\n return (React.createElement(\"div\", { style: { width: \"100%\" } },\r\n React.createElement(\"h1\", { style: { fontSize: theme.fonts.xxLarge.fontSize, color: theme.palette.neutralPrimary, textAlign: \"center\" } }, \" \\u017D\\u00E1dost o vyj\\u00E1d\\u0159en\\u00ED k existenci TI \"),\r\n React.createElement(react_1.Text, null,\r\n \"Slu\\u017Eba \\u201EVyj\\u00E1d\\u0159en\\u00ED o existenci a poloze s\\u00EDt\\u011B technick\\u00E9 infrastruktury (TI)\\u201C je ur\\u010Dena k pod\\u00E1n\\u00ED \\u017E\\u00E1dosti o vyd\\u00E1n\\u00ED vyj\\u00E1d\\u0159en\\u00ED provozovatele s\\u00EDt\\u011B pro \\u017Eadatele prost\\u0159ednictv\\u00EDm internetu. Platnost vydan\\u00E9ho vyj\\u00E1d\\u0159en\\u00ED je 1 rok, nelze ji prodlou\\u017Eit a po uplynut\\u00ED platnosti je nutno podat \\u017E\\u00E1dost novou. \\u017Dadatel obdr\\u017E\\u00ED nejpozd\\u011Bji do 30 dn\\u016F od p\\u0159ijet\\u00ED \\u017E\\u00E1dosti elektronick\\u00E9 vyj\\u00E1d\\u0159en\\u00ED obsahuj\\u00EDc\\u00ED informaci o existenci s\\u00EDt\\u011B v zadan\\u00E9 z\\u00E1jmov\\u00E9 oblasti.\",\r\n React.createElement(\"br\", null),\r\n React.createElement(\"br\", null),\r\n \"V \\u017E\\u00E1dosti je nutn\\u00E9 vyplnit v n\\u011Bkolika kroc\\u00EDch identifika\\u010Dn\\u00ED a kontaktn\\u00ED \\u00FAdaje \\u017Eadatele a stavebn\\u00EDka, druh a \\u00FA\\u010Del stavby, \\u00FA\\u010Del po\\u017Eadovan\\u00E9ho vyj\\u00E1d\\u0159en\\u00ED a zp\\u016Fsob doru\\u010Den\\u00ED vyj\\u00E1d\\u0159en\\u00ED \\u017Eadateli. Vyj\\u00E1d\\u0159en\\u00ED poskytovan\\u00E1 po\\u0161tou jsou zpoplatn\\u011Bna.\"),\r\n React.createElement(react_1.Stack, { horizontal: true, horizontalAlign: \"center\", tokens: { childrenGap: 30 }, styles: { root: { marginTop: \"35px\" } } },\r\n React.createElement(react_1.Button, { text: \"Nov\\u00E1 \\u017E\\u00E1dost\", onClick: this.novaZadost.bind(this) }),\r\n (!this.state.isAuthenticated) ?\r\n React.createElement(react_1.Button, { text: \"P\\u0159ihl\\u00E1sit\", onClick: this.login.bind(this) })\r\n : null)));\r\n };\r\n Home.prototype.novaZadost = function () {\r\n window.localStorage.removeItem(\"zadost\");\r\n this.props.push('/novaZadost/kontakt');\r\n };\r\n Home.prototype.login = function () {\r\n this.props.push(ApiAuthorizationConstants_1.ApplicationPaths.Login);\r\n };\r\n Home.prototype.populateState = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var isAuthenticated, user;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, AuthorizeService_1.default.isAuthenticated()];\r\n case 1:\r\n isAuthenticated = _a.sent();\r\n return [4 /*yield*/, AuthorizeService_1.default.getUser()];\r\n case 2:\r\n user = _a.sent();\r\n this.setState({\r\n isAuthenticated: isAuthenticated,\r\n userName: user && user.name\r\n });\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n return Home;\r\n}(React.Component));\r\nexports.StoreToHomeState = function (state) { return ({}); };\r\nexports.StoreToHomeToProps = function (dispatch) {\r\n return {\r\n push: function (url) { return dispatch(connected_react_router_1.push(url)); }\r\n };\r\n};\r\nexports.default = react_redux_1.connect(exports.StoreToHomeState, exports.StoreToHomeToProps)(Home);\r\n//IHomeProps, IHomeState, RouteComponentProps < any >> (StoreToHomeState, StoreToHomeToProps)(Counter)\r\n//# sourceMappingURL=Home.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar react_1 = require(\"react\");\r\nvar react_2 = require(\"@fluentui/react\");\r\nvar React = require(\"react\");\r\nvar KontaktniInformace_1 = require(\"./KontaktniInformace/KontaktniInformace\");\r\nvar react_redux_1 = require(\"react-redux\");\r\nvar actions_1 = require(\"../../store/zadost/actions\");\r\nvar ZadostStavEnum_1 = require(\"../../Types/Zadost/ZadostStavEnum\");\r\nvar UpresneniZadosti_1 = require(\"./UpresneniZadosti/UpresneniZadosti\");\r\nvar ZajmovehoUzemiPage_1 = require(\"./ZajmovaUzemi/ZajmovehoUzemiPage\");\r\nvar Rekapitulace_1 = require(\"./Rekapitulace\");\r\nvar Potvrzeni_1 = require(\"./Potvrzeni\");\r\nvar connected_react_router_1 = require(\"connected-react-router\");\r\nvar react_router_dom_1 = require(\"react-router-dom\");\r\nvar IZakaznikFormaEnum_1 = require(\"../../Types/Zadost/IZakaznikFormaEnum\");\r\nvar theme = react_2.getTheme();\r\nvar NovaZadost = /** @class */ (function (_super) {\r\n __extends(NovaZadost, _super);\r\n function NovaZadost(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.state = {\r\n parcely: [],\r\n polygones: [],\r\n uploading: false,\r\n allowNextButton: false,\r\n krok: 1,\r\n zadost: {\r\n zadostGuid: \"\",\r\n vyjadreniId: 0,\r\n //datum: Date.now().toString(),\r\n id: 0,\r\n stav: ZadostStavEnum_1.ZadostStavEnum.Nove,\r\n zadavatelInvestor: true,\r\n investor: {\r\n forma: IZakaznikFormaEnum_1.IZakaznikFormaEnum.nezadano, ic: \"\", dic: \"\", email: \"\", firma: \"\", kontakt: \"\", mesto: \"\", psc: \"\", stat: \"\", telefon: \"\", ulice: \"\"\r\n },\r\n zadatel: { forma: IZakaznikFormaEnum_1.IZakaznikFormaEnum.nezadano, dic: \"\", ic: \"\", email: \"\", firma: \"\", kontakt: \"\", mesto: \"\", psc: \"\", stat: \"\", telefon: \"\", ulice: \"\" },\r\n },\r\n upresneniZadani: {\r\n id: 0,\r\n dgn: false,\r\n duvodZadosti: \"\",\r\n nazevStavby: \"\",\r\n podminkyPripojeni: false,\r\n ucelStavby: \"\",\r\n zadostId: 0,\r\n doplnujiciInfo: \"\",\r\n postou: false\r\n },\r\n prilohy: []\r\n };\r\n return _this;\r\n }\r\n NovaZadost.prototype.componentDidMount = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var pathKrok, saveData, data, r, _a;\r\n var _this = this;\r\n return __generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n console.log(this.props.location.pathname);\r\n pathKrok = this.urlKrok(this.props.location.pathname);\r\n console.log(pathKrok);\r\n if (this.state.krok != pathKrok) {\r\n this.setState({\r\n krok: pathKrok\r\n });\r\n }\r\n saveData = window.localStorage.getItem(\"zadost\");\r\n if (saveData) {\r\n data = JSON.parse(saveData);\r\n if (data && data.zadost) {\r\n this.setState({\r\n zadost: data.zadost,\r\n upresneniZadani: data.upresneniZadani ? data.upresneniZadani : this.state.upresneniZadani,\r\n prilohy: data.prilohy ? data.prilohy : [],\r\n parcely: data.parcely ? data.parcely : [],\r\n polygones: data.polygones ? data.polygones : []\r\n }, function () { console.log(\"from local storage\"); console.log(_this.state); });\r\n }\r\n }\r\n _b.label = 1;\r\n case 1:\r\n _b.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, this.props.userApi.getUserDetail()];\r\n case 2:\r\n r = _b.sent();\r\n if (r) {\r\n this.setState({\r\n zadost: __assign(__assign({}, this.state.zadost), { investor: __assign(__assign({}, this.state.zadost.investor), { forma: (r.ic && r.ic != '') ? IZakaznikFormaEnum_1.IZakaznikFormaEnum.prvnickaOsoba : IZakaznikFormaEnum_1.IZakaznikFormaEnum.fyzickaOsoba, ic: r.ic, dic: r.dic, email: r.email, firma: r.firma, kontakt: r.kontakt, mesto: r.mesto, psc: r.psc, stat: r.stat, telefon: r.telefon, ulice: r.ulice }), zadatel: __assign(__assign({}, this.state.zadost.investor), { forma: (r.ic && r.ic != '') ? IZakaznikFormaEnum_1.IZakaznikFormaEnum.prvnickaOsoba : IZakaznikFormaEnum_1.IZakaznikFormaEnum.fyzickaOsoba, ic: r.ic, dic: r.dic, email: r.email, firma: r.firma, kontakt: r.kontakt, mesto: r.mesto, psc: r.psc, stat: r.stat, telefon: r.telefon, ulice: r.ulice }) })\r\n }, function () { return console.log(_this.state); });\r\n }\r\n return [3 /*break*/, 4];\r\n case 3:\r\n _a = _b.sent();\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n NovaZadost.prototype.componentDidUpdate = function (prevProps, prevState) {\r\n if (prevState.krok != this.state.krok) {\r\n this.props.push(this.krokUrl(this.state.krok));\r\n }\r\n if (prevProps.location.key != this.props.location.key) {\r\n console.log(\"Změna url, kontrola čísla kroku\");\r\n var pathKrok = this.urlKrok(this.props.location.pathname);\r\n if (pathKrok === 2 && this.state.zadost.id === 0) {\r\n this.setState({ krok: 1 });\r\n }\r\n if (pathKrok === 3) {\r\n if (this.state.zadost.id === 0) {\r\n this.setState({ krok: 1 });\r\n }\r\n if (this.state.upresneniZadani.id === 0) {\r\n this.setState({ krok: 2 });\r\n }\r\n }\r\n if (pathKrok === 4) {\r\n if (this.state.zadost.id === 0) {\r\n this.setState({ krok: 1 });\r\n }\r\n if (this.state.upresneniZadani.id === 0) {\r\n this.setState({ krok: 2 });\r\n }\r\n if (this.state.parcely.length === 0 && this.state.polygones.length === 0) {\r\n console.log(this.state.parcely);\r\n console.log(this.state.polygones);\r\n this.setState({ krok: 3 });\r\n }\r\n }\r\n if (this.state.krok != pathKrok) {\r\n this.setState({\r\n krok: pathKrok\r\n });\r\n }\r\n }\r\n window.localStorage.setItem(\"zadost\", JSON.stringify({\r\n zadost: this.state.zadost,\r\n upresneniZadani: this.state.upresneniZadani,\r\n prilohy: this.state.prilohy,\r\n parcely: this.state.parcely,\r\n polygones: this.state.polygones,\r\n timestamp: Date.now()\r\n }));\r\n };\r\n NovaZadost.prototype.krokUrl = function (krok) {\r\n switch (krok) {\r\n case 1: return \"/novaZadost/kontakt\";\r\n case 2: return \"/novaZadost/upresneni\";\r\n case 3: return \"/novaZadost/zajmoveUzemi\";\r\n case 4: return \"/novaZadost/rekapitulace\";\r\n case 5: return \"/novaZadost/potvrzeni\";\r\n default: return \"\";\r\n }\r\n };\r\n NovaZadost.prototype.urlKrok = function (url) {\r\n switch (url) {\r\n case \"/novaZadost/kontakt\": return 1;\r\n case \"/novaZadost/upresneni\": return 2;\r\n case \"/novaZadost/zajmoveUzemi\": return 3;\r\n case \"/novaZadost/rekapitulace\": return 4;\r\n case \"/novaZadost/potvrzeni\": return 5;\r\n default: return -1;\r\n }\r\n };\r\n NovaZadost.prototype.updateKontakt = function (zadatel, investor, zadavatelInvestor) {\r\n var _this = this;\r\n this.setState({\r\n zadost: __assign(__assign({}, this.state.zadost), { zadatel: zadatel, investor: investor, zadavatelInvestor: zadavatelInvestor }),\r\n }, function () { return __awaiter(_this, void 0, void 0, function () {\r\n var zadost, z;\r\n var _this = this;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n console.log(\"kontakt updated\");\r\n console.log(this.state.zadost);\r\n return [4 /*yield*/, this.props.zadostApi.saveZadost(this.state.zadost)];\r\n case 1:\r\n zadost = _a.sent();\r\n if (zadost.zadatel) {\r\n z = zadost;\r\n this.setState({\r\n zadost: z,\r\n upresneniZadani: __assign(__assign({}, this.state.upresneniZadani), { zadostId: z.id }),\r\n krok: 2\r\n }, function () { return console.log(_this.state); });\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n }); });\r\n };\r\n NovaZadost.prototype.deleteFiles = function (files) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var prilolyList, i, result;\r\n var _this = this;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n prilolyList = __spreadArrays(this.state.prilohy);\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, , 6, 7]);\r\n this.setState({ uploading: true });\r\n i = 0;\r\n _a.label = 2;\r\n case 2:\r\n if (!(i < files.length)) return [3 /*break*/, 5];\r\n return [4 /*yield*/, this.props.zadaniApi.removePriloha(this.state.zadost.id, this.state.upresneniZadani.id, this.state.zadost.zadostGuid, files[i].id)];\r\n case 3:\r\n result = _a.sent();\r\n console.log(result);\r\n console.log(typeof result);\r\n if (typeof result === \"boolean\" && result) {\r\n prilolyList = prilolyList.filter(function (f) { return f.id !== files[i].id; });\r\n }\r\n _a.label = 4;\r\n case 4:\r\n i++;\r\n return [3 /*break*/, 2];\r\n case 5: return [3 /*break*/, 7];\r\n case 6:\r\n this.setState({ uploading: false, prilohy: prilolyList }, function () { return console.log(_this.state.prilohy); });\r\n return [7 /*endfinally*/];\r\n case 7: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n NovaZadost.prototype.uploadFiles = function (files, callback) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var prilolyList, i, priloha, _a;\r\n var _this = this;\r\n return __generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n if (!(this.state.upresneniZadani.id === 0)) return [3 /*break*/, 2];\r\n return [4 /*yield*/, this.updateUpresneniZadani(this.state.upresneniZadani)];\r\n case 1:\r\n _b.sent();\r\n _b.label = 2;\r\n case 2:\r\n prilolyList = __spreadArrays(this.state.prilohy);\r\n _b.label = 3;\r\n case 3:\r\n _b.trys.push([3, 8, 9, 10]);\r\n this.setState({ uploading: true });\r\n i = 0;\r\n _b.label = 4;\r\n case 4:\r\n if (!(i < files.length)) return [3 /*break*/, 7];\r\n console.log(this.state);\r\n return [4 /*yield*/, this.props.zadaniApi.uploadPriloha(this.state.zadost.id, this.state.zadost.zadostGuid, this.state.upresneniZadani.id, files[i], callback)];\r\n case 5:\r\n priloha = _b.sent();\r\n console.log(priloha);\r\n if (priloha) {\r\n priloha.ext = priloha.nazev.substr(priloha.nazev.lastIndexOf('.') + 1);\r\n prilolyList.push(priloha);\r\n }\r\n _b.label = 6;\r\n case 6:\r\n i++;\r\n return [3 /*break*/, 4];\r\n case 7: return [3 /*break*/, 10];\r\n case 8:\r\n _a = _b.sent();\r\n return [3 /*break*/, 10];\r\n case 9:\r\n this.setState({ uploading: false, prilohy: prilolyList }, function () { return console.log(_this.state.prilohy); });\r\n return [7 /*endfinally*/];\r\n case 10: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n NovaZadost.prototype.updateUpresneniZadani = function (data) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var upresneniZadostni;\r\n var _this = this;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n data.guid = this.state.zadost.zadostGuid;\r\n return [4 /*yield*/, this.props.zadaniApi.saveUpresneniZadani(data)];\r\n case 1:\r\n upresneniZadostni = _a.sent();\r\n if (upresneniZadostni.zadostId) {\r\n this.setState({\r\n upresneniZadani: upresneniZadostni\r\n }, function () { return console.log(_this.state.upresneniZadani); });\r\n return [2 /*return*/, true];\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n NovaZadost.prototype.updateUpresneniZadaniAndNext = function (data) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n console.log(\"updateUpresneniZadaniAndNext\");\r\n console.log(data);\r\n return [4 /*yield*/, this.updateUpresneniZadani(data)];\r\n case 1:\r\n if (_a.sent()) {\r\n this.setState({ krok: 3 });\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n NovaZadost.prototype.saveUzemi = function (parcely, polygones) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var rPolygone, rParcely;\r\n var _this = this;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n console.log(\"saveUzemi\");\r\n console.log(parcely);\r\n rPolygone = [];\r\n rParcely = [];\r\n if (!polygones) return [3 /*break*/, 2];\r\n return [4 /*yield*/, this.props.zadaniApi.savePolygone(this.state.zadost.id, this.state.upresneniZadani.id, this.state.zadost.zadostGuid, polygones)];\r\n case 1:\r\n rPolygone = (_a.sent());\r\n _a.label = 2;\r\n case 2:\r\n if (!parcely) return [3 /*break*/, 4];\r\n return [4 /*yield*/, this.props.zadaniApi.saveParcels(this.state.zadost.id, this.state.upresneniZadani.id, this.state.zadost.zadostGuid, parcely)];\r\n case 3:\r\n rParcely = (_a.sent());\r\n _a.label = 4;\r\n case 4:\r\n this.setState({ polygones: rPolygone, parcely: rParcely }, function () { return _this.setState({ krok: 4 }); });\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n NovaZadost.prototype.render = function () {\r\n var _this = this;\r\n return (React.createElement(react_2.Stack, { styles: { root: { paddingTop: 25, width: \"100%\" } } },\r\n React.createElement(react_2.Label, { style: { fontSize: theme.fonts.xLargePlus.fontSize }, styles: { root: { color: theme.palette.neutralPrimary } } },\r\n \"Nov\\u00E1 \\u017E\\u00E1dost o vyj\\u00E1d\\u0159en\\u00ED. Krok \",\r\n this.state.krok,\r\n \"/5 \",\r\n this.getKrokNazev(this.state.krok)),\r\n React.createElement(react_router_dom_1.Route, { path: \"/novaZadost/kontakt\", render: function (props) {\r\n return (React.createElement(KontaktniInformace_1.default, __assign({}, props, { investorSame: _this.state.zadost.zadavatelInvestor, isValid: _this.isValid.bind(_this), zadatel: _this.state.zadost.zadatel, investor: _this.state.zadost.investor, updateKontakt: _this.updateKontakt.bind(_this) })));\r\n } }),\r\n React.createElement(react_router_dom_1.Route, { path: \"/novaZadost/upresneni\", render: function (props) {\r\n return (React.createElement(UpresneniZadosti_1.UpresneniZadosti, __assign({ back: function () {\r\n _this.setState({ krok: 1 });\r\n }, uploading: _this.state.uploading, prilohy: _this.state.prilohy, upresneniZadosti: _this.state.upresneniZadani, deleteFiles: _this.deleteFiles.bind(_this), uploadFiles: _this.uploadFiles.bind(_this), updateUpresneniZadani: _this.updateUpresneniZadaniAndNext.bind(_this) }, props)));\r\n } }),\r\n React.createElement(react_router_dom_1.Route, { path: \"/novaZadost/zajmoveUzemi\", render: function (props) {\r\n return (React.createElement(ZajmovehoUzemiPage_1.default, { back: function () {\r\n _this.setState({ krok: 2 });\r\n }, ruianApi: _this.props.ruianApi, key: \"ZajmovehoUzemiPage\", polygones: _this.state.polygones, parcely: _this.state.parcely, saveUzemi: _this.saveUzemi.bind(_this) }));\r\n } }),\r\n React.createElement(react_router_dom_1.Route, { path: \"/novaZadost/rekapitulace\", render: function (props) {\r\n return (React.createElement(Rekapitulace_1.default, { back: function () {\r\n _this.setState({ krok: 3 });\r\n }, zadost: _this.state.zadost, parcely: _this.state.parcely, polygony: _this.state.polygones, prilohy: _this.state.prilohy, upresneniZadosti: _this.state.upresneniZadani, dokoncitZadost: _this.dokoncitZadost.bind(_this) }));\r\n } }),\r\n React.createElement(react_router_dom_1.Route, { path: \"/novaZadost/potvrzeni\", render: function () {\r\n return (React.createElement(Potvrzeni_1.PotvrzeniZadostni, { user: _this.props.user, isAuthenticated: _this.props.isAuthenticated, zadost: _this.state.zadost, onRef: function (ref) { return (_this.childPanel = ref); } }));\r\n } })));\r\n };\r\n NovaZadost.prototype.dokoncitZadost = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var result;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.props.zadostApi.zadaniSetZadano(this.state.zadost.zadostGuid, this.state.zadost.id)];\r\n case 1:\r\n result = _a.sent();\r\n if (result) {\r\n this.setState({ krok: 5 });\r\n }\r\n else {\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n NovaZadost.prototype.isValid = function (value) {\r\n this.setState({ allowNextButton: value });\r\n };\r\n NovaZadost.prototype.getKrokNazev = function (krok) {\r\n switch (krok) {\r\n case 1: return \"Kontaktní informace\";\r\n case 2: return \"Upřesnění žádosti\";\r\n case 3: return \"Určení zájmových oblastí\";\r\n case 4: return \"Rekapitulace\";\r\n case 5: return \"Potvrzení přijetí\";\r\n default: return \"\";\r\n }\r\n };\r\n return NovaZadost;\r\n}(react_1.Component));\r\nexports.StoreToNovaZadostState = function (state) { return ({\r\n zadost: state.zadost.zadost,\r\n krok: state.zadost.krok,\r\n configuration: state.configuration.config,\r\n location: state.router.location,\r\n isAuthenticated: state.auth.isAuthenticated,\r\n user: state.auth.user\r\n}); };\r\nexports.StoreToNovaZadostDispatchToProps = function (dispatch) {\r\n return {\r\n setZadost: function (zadost) { return dispatch(actions_1.SetZadost(zadost)); },\r\n setZadostKrok: function (krok) { return dispatch(actions_1.SetZadostKrok(krok)); },\r\n setZadostKontakt: function (zadatel, investor, zadavatelInvestor) { return dispatch(actions_1.SetZadostKontakt(zadatel, investor, zadavatelInvestor)); },\r\n push: function (url) { return dispatch(connected_react_router_1.push(url)); },\r\n goBack: function () { return dispatch(connected_react_router_1.goBack()); }\r\n };\r\n};\r\nexports.default = react_redux_1.connect(exports.StoreToNovaZadostState, exports.StoreToNovaZadostDispatchToProps)(NovaZadost);\r\n//# sourceMappingURL=NovaZadost.js.map","import * as React from 'react'\r\nimport {ZakaznikForm} from './ZakaznikForm'\r\nimport { Text, Label, Separator, Stack, Checkbox, ITheme, getTheme, TextField, DefaultButton, PrimaryButton } from '@fluentui/react';\r\nimport { IZakaznikDto } from '../../../Types/Zadost/IZakaznik';\r\nimport { KeyValuePair, rebex, validate, checkAllRules, validateLasValues } from '../../Validation';\r\nimport { IZakaznikFormaEnum } from '../../../Types/Zadost/IZakaznikFormaEnum';\r\n\r\n\r\ninterface IKontaktniInformaceProps { \r\n zadatel: IZakaznikDto\r\n investor: IZakaznikDto\r\n isValid: (value: boolean) => void,\r\n onRef: (ref: any) => void,\r\n updateKontakt: (zadatel: IZakaznikDto, investor: IZakaznikDto, zadavatelInvestor: boolean) => void\r\n}\r\n\r\ninterface IKontaktniInformaceState {\r\n isValid: boolean;\r\n zadatel: IZakaznikDto\r\n zadatelValidation: KeyValuePair\r\n investorSame: boolean\r\n investor: IZakaznikDto\r\n investorValidation: KeyValuePair\r\n}\r\n\r\n\r\nexport class KontaktniInformace extends React.Component\r\n{\r\n private theme: ITheme;\r\n\r\n constructor(props: IKontaktniInformaceProps) {\r\n super(props);\r\n this.theme = getTheme();\r\n this.state = {\r\n isValid: false,\r\n investorSame: true,\r\n zadatel: { ...props.zadatel },\r\n investor: { ...props.investor },\r\n zadatelValidation: {\r\n \"email\": {\r\n regexp: rebex.EmailRegExp,\r\n required: true,\r\n validationError: \"Zadejte prosím platnou e-mail adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"kontakt\": {\r\n required: true,\r\n validationError: \"Prosím zadajte kontaktní osobu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"telefon\": {\r\n required: true,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Telefonní číslo musí obsahovat pouze číslice\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"ulice\": {\r\n required: true,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"mesto\": {\r\n required: true,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"psc\": {\r\n required: true,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Musíte zadat platné psc\",\r\n isValid: true,\r\n validated: false\r\n }\r\n },\r\n investorValidation: {\r\n \"email\": {\r\n regexp: rebex.EmailRegExp,\r\n required: true,\r\n validationError: \"Zadejte prosím platnou e-mail adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"kontakt\": {\r\n required: true,\r\n validationError: \"Prosím zadajte kontaktní osobu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"telefon\": {\r\n required: true,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Telefonní číslo musí obsahovat pouze číslice\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"ulice\": {\r\n required: true,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"mesto\": {\r\n required: true,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"psc\": {\r\n required: true,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Musíte zadat platné psc\",\r\n isValid: true,\r\n validated: false\r\n }\r\n }\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n this.theme = getTheme();\r\n this.setDefaultInvestorValues(this.props.investor);\r\n this.setDefaultZadavatelValues(this.props.zadatel);\r\n }\r\n\r\n setDefaultZadavatelValues(zadatel: IZakaznikDto) {\r\n this.setState({\r\n zadatel: { ...zadatel },\r\n zadatelValidation: {\r\n \"email\": {\r\n regexp: rebex.EmailRegExp,\r\n lastValue: zadatel.email,\r\n required: true,\r\n validationError: \"Zadejte prosím platnou e-mail adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"kontakt\": {\r\n required: true,\r\n lastValue: zadatel.kontakt,\r\n validationError: \"Prosím zadajte kontaktní osobu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"telefon\": {\r\n required: true,\r\n lastValue: zadatel.telefon,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Telefonní číslo musí obsahovat pouze číslice\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"ulice\": {\r\n required: true,\r\n lastValue: zadatel.ulice,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"mesto\": {\r\n required: true,\r\n lastValue: zadatel.mesto,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"psc\": {\r\n required: true,\r\n lastValue: zadatel.psc,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Musíte zadat platné psc\",\r\n isValid: true,\r\n validated: false\r\n }\r\n }\r\n }, () => {\r\n if (zadatel.email != \"\") {\r\n const zadavatelVal = validateLasValues(this.state.zadatelValidation);\r\n this.setState({\r\n zadatelValidation: zadavatelVal,\r\n })\r\n }\r\n }\r\n ) \r\n }\r\n\r\n setDefaultInvestorValues( investor: IZakaznikDto) {\r\n this.setState({\r\n \r\n investor: { ...investor }, \r\n investorValidation: {\r\n \"email\": {\r\n regexp: rebex.EmailRegExp,\r\n lastValue: investor.email,\r\n required: true,\r\n validationError: \"Zadejte prosím platnou e-mail adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"kontakt\": {\r\n required: true,\r\n lastValue: investor.kontakt,\r\n validationError: \"Prosím zadajte kontaktní osobu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"telefon\": {\r\n required: true,\r\n lastValue: investor.telefon,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Telefonní číslo musí obsahovat pouze číslice\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"ulice\": {\r\n required: true,\r\n lastValue: investor.ulice,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"mesto\": {\r\n required: true,\r\n lastValue: investor.mesto,\r\n validationError: \"Musíte zadat adresu\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"psc\": {\r\n required: true,\r\n lastValue: investor.psc,\r\n regexp: rebex.NumbersOnlyRegExp,\r\n validationError: \"Musíte zadat platné psc\",\r\n isValid: true,\r\n validated: false\r\n }\r\n },\r\n }, () => {\r\n if (investor.email != \"\") {\r\n \r\n const investorVal = validateLasValues(this.state.investorValidation);\r\n this.setState({\r\n investorValidation: investorVal,\r\n })\r\n }\r\n }\r\n )\r\n }\r\n\r\n\r\n\r\n componentDidUpdate(prevprops: IKontaktniInformaceProps, prevstate: IKontaktniInformaceState) {\r\n if (this.props.investor != prevprops.investor) {\r\n this.setDefaultInvestorValues(this.props.investor); \r\n }\r\n\r\n if (this.props.zadatel != prevprops.zadatel) {\r\n this.setState({ zadatel: { ...this.props.zadatel } })\r\n this.setDefaultZadavatelValues(this.props.zadatel); \r\n }\r\n\r\n if (this.state.zadatel.forma !== prevstate.zadatel.forma) {\r\n console.log(\"Zadani Changed\");\r\n const zValidation = { ...this.state.zadatelValidation }\r\n if (this.state.zadatel.forma === IZakaznikFormaEnum.prvnickaOsoba) { \r\n zValidation[\"firma\"] = {\r\n required: true,\r\n isValid: true,\r\n validated: false\r\n\r\n }\r\n zValidation[\"ic\"] = {\r\n required: true,\r\n isValid: true,\r\n validated: false\r\n }\r\n zValidation[\"dic\"] = {\r\n required: true,\r\n isValid: true,\r\n validated: false\r\n }\r\n }\r\n else {\r\n delete zValidation['firma'];\r\n delete zValidation['ic'];\r\n delete zValidation['dic'];\r\n }\r\n this.setState({ zadatelValidation: zValidation });\r\n }\r\n if (this.state.investor.forma !== prevstate.investor.forma) {\r\n const iValidation = { ...this.state.investorValidation }\r\n if (this.state.investor.forma === IZakaznikFormaEnum.prvnickaOsoba) {\r\n\r\n iValidation[\"firma\"] = {\r\n required: true, \r\n isValid: true,\r\n validated: false\r\n }\r\n iValidation[\"ic\"] = {\r\n required: true, \r\n isValid: true,\r\n validated: false\r\n }\r\n iValidation[\"dic\"] = {\r\n required: true,\r\n isValid: true,\r\n validated: false\r\n }\r\n }\r\n else {\r\n delete iValidation['firma'];\r\n delete iValidation['ic'];\r\n delete iValidation['dic'];\r\n } \r\n this.setState({ investorValidation: iValidation });\r\n }\r\n\r\n let zadavelValidation = checkAllRules(this.state.zadatelValidation);\r\n let investorValidation = this.state.investorSame;\r\n\r\n if (investorValidation && this.state.zadatelValidation != prevstate.zadatelValidation) { \r\n this.setState({ isValid: zadavelValidation && investorValidation });\r\n }\r\n if (!this.state.investorSame && this.state.investorValidation != prevstate.investorValidation) {\r\n investorValidation = checkAllRules(this.state.investorValidation);\r\n this.setState({ isValid: zadavelValidation && investorValidation });\r\n }\r\n }\r\n\r\n handleZadatelChangeBind = this.handleZadatelChangeChange.bind(this);\r\n handleZadatelChangeChange(event: any) { \r\n const { name, value } = event.target;\r\n this.setState({\r\n zadatel: { ...this.state.zadatel, [name]: value },\r\n zadatelValidation: { ...this.state.zadatelValidation, [name]: validate(value, this.state.zadatelValidation[name]) },\r\n investor: (this.state.investorSame ? { ...this.state.zadatel, [name]: value } : this.state.investor),\r\n investorValidation: (this.state.investorSame ? {\r\n ...this.state.investorValidation, [name]: validate(value, this.state.investorValidation[name]),\r\n } : this.state.investorValidation) \r\n });\r\n }\r\n\r\n handleZadavatelChangedNameValueBind = this.handleZadavatelChangedNameValue.bind(this);\r\n handleZadavatelChangedNameValue(name: string, value: any)\r\n {\r\n this.setState({\r\n zadatel: { ...this.state.zadatel, [name]: value },\r\n zadatelValidation: {\r\n ...this.state.zadatelValidation, [name]: validate(value, this.state.zadatelValidation[name]),\r\n },\r\n investor: (this.state.investorSame ? { ...this.state.zadatel, [name]: value } : this.state.investor),\r\n investorValidation: (this.state.investorSame ? {\r\n ...this.state.investorValidation, [name]: validate(value, this.state.investorValidation[name]),\r\n } : this.state.investorValidation),\r\n }, () => console.log(this.state));\r\n }\r\n\r\n handleInvestorChangeBind = this.handleInvestorChange.bind(this);\r\n handleInvestorChange(event: any) {\r\n const { name, value } = event.target;\r\n this.setState({\r\n investor: { ...this.state.investor, [name]: value },\r\n investorValidation: { ...this.state.investorValidation, [name]: validate(value, this.state.investorValidation[name]) }\r\n });\r\n }\r\n\r\n handleInvestorChangedNameValueBind = this.handleInvestorChangedNameValue.bind(this);\r\n handleInvestorChangedNameValue(name: string, value: any) {\r\n this.setState({\r\n investor: { ...this.state.investor, [name]: value },\r\n investorValidation: { ...this.state.investorValidation, [name]: validate(value, this.state.investorValidation[name]) }\r\n });\r\n }\r\n\r\n saveData() {\r\n this.props.updateKontakt(this.state.zadatel, this.state.investor, this.state.investorSame); \r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n Po vyplnění kontaktních údajů je možno provést registraci žadatele zadáním přihlašovacího jména a hesla pro pozdější nebo opakované přihlášení. U registrovaného uživatele budou kontaktní údaje po přihlášení vyplněny automaticky.\r\n \r\n \r\n \r\n \r\n \r\n {\r\n this.setState({\r\n investorSame: (newValue ? newValue : false),\r\n investor:this.state.zadatel\r\n })\r\n }}\r\n styles={{ root: { paddingTop: \"25px\", fontSize: this.theme.fonts.large.fontSize }, text: { fontWeight: \"600\", fontSize: this.theme.fonts.large.fontSize, color: this.theme.palette.themePrimary } }} label=\"Stavebník / Investor\" />\r\n \r\n\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\n\r\n//export const StoreToKontaktniInformaceState = (state: IAppStore) => ({\r\n\r\n//});\r\n\r\n//export const StoreToKontaktniInformaceDispatchToProps = (dispatch: ThunkDispatch) => {\r\n// return {\r\n// setZadostKontakt: (zadatel: IZakaznikDto, investor: IZakaznikDto, zadavatelInvestor: boolean) => dispatch(SetZadostKontakt(zadatel, investor, zadavatelInvestor)),\r\n// };\r\n//};\r\n\r\nexport default KontaktniInformace;\r\n\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar constants = require(\"./constants\");\r\nfunction setWorking(working) {\r\n return {\r\n type: constants.SET_WORKING,\r\n working: working\r\n };\r\n}\r\nexports.setWorking = setWorking;\r\nfunction SetZadost(data) {\r\n return {\r\n type: constants.SET_ZADOST,\r\n zadost: data\r\n };\r\n}\r\nexports.SetZadost = SetZadost;\r\nfunction SetZadostKrok(krok) {\r\n return {\r\n type: constants.SET_ZADOST_KROK,\r\n krok: krok\r\n };\r\n}\r\nexports.SetZadostKrok = SetZadostKrok;\r\nfunction SetZadostKontakt(zadatel, investor, zadavatelInvestor) {\r\n return {\r\n type: constants.SET_ZADOST_KONTAKT,\r\n zadatel: zadatel,\r\n investor: investor,\r\n zadavatelInvestor: zadavatelInvestor\r\n };\r\n}\r\nexports.SetZadostKontakt = SetZadostKontakt;\r\nfunction addUzemi(parcely, Polygone) {\r\n return {\r\n type: constants.ADD_UZEMI,\r\n parcely: parcely,\r\n polygon: Polygone\r\n };\r\n}\r\nexports.addUzemi = addUzemi;\r\n//export const login = (username: string, password: string): ThunkAction, IAppStore, {}, AnyAction> => {\r\n// // Invoke API\r\n// return async (dispatch: ThunkDispatch<{}, {}, AnyAction>,\r\n// getState: () => IAppStore) => {\r\n// dispatch(setWorking(true));\r\n// const api = new ZadostApi();\r\n// api.saveZadost()\r\n// dispatch(setWorking(false));\r\n// }\r\n//}\r\n//# sourceMappingURL=actions.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar ZadostStavEnum;\r\n(function (ZadostStavEnum) {\r\n ZadostStavEnum[ZadostStavEnum[\"Nove\"] = 0] = \"Nove\";\r\n ZadostStavEnum[ZadostStavEnum[\"Zadano\"] = 10] = \"Zadano\";\r\n ZadostStavEnum[ZadostStavEnum[\"Zpravov\\u00E1ni\"] = 20] = \"Zpravov\\u00E1ni\";\r\n ZadostStavEnum[ZadostStavEnum[\"Zpracovano\"] = 100] = \"Zpracovano\";\r\n})(ZadostStavEnum = exports.ZadostStavEnum || (exports.ZadostStavEnum = {}));\r\n//# sourceMappingURL=ZadostStavEnum.js.map","\"use strict\";\r\n//import { DefaultColors } from '../../styles/colors';\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar react_1 = require(\"@fluentui/react\");\r\nexports.CalloutStyle = function () {\r\n return { width: '296px' };\r\n};\r\nexports.AutocompleteStyles = function () {\r\n return ({\r\n marginTop: '00px', marginBottom: '00px', width: '300px', display: 'inline-block'\r\n });\r\n};\r\nexports.SuggestionListStyle = function () {\r\n return ({ padding: '4px 16px', fontSize: '14px', cursor: 'default' });\r\n};\r\nvar theme = react_1.getTheme();\r\nvar palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts;\r\nexports.SuggestionListItemStyle = {\r\n itemCell: [\r\n react_1.getFocusStyle(theme, { inset: -1 }),\r\n {\r\n minHeight: 20,\r\n padding: 5,\r\n boxSizing: 'border-box',\r\n borderBottom: \"1px solid \" + semanticColors.bodyDivider,\r\n display: 'flex',\r\n selectors: {\r\n '&:hover': { background: palette.neutralLight },\r\n '&:focus': { background: palette.neutralLight },\r\n }\r\n },\r\n ],\r\n};\r\n//# sourceMappingURL=AutocompleteStyles.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar React = require(\"react\");\r\nvar axios_1 = require(\"axios\");\r\nvar react_redux_1 = require(\"react-redux\");\r\nvar Rekapitulace = /** @class */ (function (_super) {\r\n __extends(Rekapitulace, _super);\r\n function Rekapitulace(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.duvodZadost = {\r\n B: 'Informace o existenci a poloze vedení',\r\n C: \"Územní souhlas, územní rozhodnutí\",\r\n D: \"Stavební povolení nebo sloučené územní a stavební řízení\",\r\n E: \"Ohlášení stavby\",\r\n G: \"Změna užívání stavby\",\r\n H: \"Havárie\",\r\n J: \"Jiné (s textovým polem pro manuální vypsání účelu)\",\r\n };\r\n _this.ucelStavbyOptions = {\r\n B: 'Bytové domy',\r\n C: \"Rodinné domy, garáže\",\r\n D: \"Administrativní budovy\",\r\n E: \"Inženýrské sítě\",\r\n G: \"Průmyslové zony\",\r\n H: \"Drobná stavební činnost\",\r\n I: \"Pozemní komunikace\",\r\n J: \"Výsadba zeleně\",\r\n J1: \"Zepmní práce, teréní úpravy\",\r\n J2: \"Oplocení\"\r\n };\r\n _this.theme = react_1.getTheme();\r\n _this.state = { image: \"\" };\r\n return _this;\r\n }\r\n Rekapitulace.prototype.componentDidMount = function () {\r\n this.theme = react_1.getTheme();\r\n this.getPicture();\r\n };\r\n Rekapitulace.prototype.componentDidUpdate = function (prevProps, prevState) {\r\n if (prevProps.parcely !== this.props.parcely || prevProps.polygony !== this.props.polygony) {\r\n this.getPicture();\r\n }\r\n };\r\n Rekapitulace.prototype.componentWillUnmount = function () {\r\n };\r\n Rekapitulace.prototype.saveData = function (callback) {\r\n callback();\r\n };\r\n Rekapitulace.prototype.getGeoJsonPoint = function () {\r\n var data = {\r\n type: \"Feature\",\r\n geometry: {\r\n type: \"Point\",\r\n coordinates: [\r\n 16.2628328,\r\n 49.7160008\r\n ]\r\n },\r\n properties: {\r\n color: \"FDDFCC\",\r\n radius: 15.0\r\n }\r\n };\r\n };\r\n Rekapitulace.prototype.getGeoJsonLine = function () {\r\n var data = {\r\n type: \"Feature\",\r\n geometry: {\r\n type: \"LineString\",\r\n coordinates: [\r\n [\r\n 16.2628328,\r\n 49.7160008\r\n ],\r\n [\r\n 16.2639917,\r\n 49.7157408\r\n ],\r\n [\r\n 16.2647372,\r\n 49.7148842\r\n ],\r\n [\r\n 16.2628328,\r\n 49.7160008\r\n ]\r\n ]\r\n },\r\n properties: {}\r\n };\r\n };\r\n Rekapitulace.prototype.getGeoJsonPolygon = function (polygone) {\r\n console.log(\"getGeoJsonPolygon\");\r\n console.log(polygone);\r\n var data = {\r\n type: \"Feature\",\r\n geometry: {\r\n type: \"Polygon\",\r\n coordinates: [[]]\r\n },\r\n properties: { color: \"000000\", fill: \"cd7a19\", opacity: 70 }\r\n };\r\n for (var i = 0; i < polygone.length; i++) {\r\n var d = [polygone[i].longitude, polygone[i].latitude];\r\n data.geometry.coordinates[0].push(d);\r\n }\r\n return data;\r\n };\r\n Rekapitulace.prototype.getGeoJsonFeatureCollection = function () {\r\n console.log(\"getGeoJsonFeatureCollection\");\r\n var data = {\r\n type: \"FeatureCollection\",\r\n features: new Array()\r\n };\r\n if (this.props.polygony) {\r\n for (var i = 0; i < this.props.polygony.length; i++) {\r\n data.features.push(this.getGeoJsonPolygon(this.props.polygony[i].hranice));\r\n }\r\n }\r\n if (this.props.parcely) {\r\n for (var i = 0; i < this.props.parcely.length; i++) {\r\n data.features.push(this.getGeoJsonPolygon(this.props.parcely[i].hranice));\r\n }\r\n }\r\n return data;\r\n };\r\n Rekapitulace.prototype.getPicture = function () {\r\n var _this = this;\r\n var url = \"/api/wms/ComposeImageLocation\";\r\n var data = {\r\n wmsIds: [2, 1],\r\n left: 16.2628328,\r\n top: 49.7160008,\r\n right: 16.2647372,\r\n bottom: 49.7148842,\r\n levelOfDetail: 0,\r\n geometry: {}\r\n };\r\n data.geometry = this.getGeoJsonFeatureCollection();\r\n var _this = this;\r\n axios_1.default.post(url, data, { responseType: 'arraybuffer' })\r\n .then(function (res) { return __awaiter(_this, void 0, void 0, function () {\r\n var buffer;\r\n return __generator(this, function (_a) {\r\n buffer = Buffer.from(res.data, 'binary').toString('base64');\r\n _this.setState({\r\n image: \"data:image/png;base64,\" + buffer\r\n });\r\n return [2 /*return*/];\r\n });\r\n }); })\r\n .catch(function (error) {\r\n });\r\n };\r\n Rekapitulace.prototype.renderPriloby = function () {\r\n if (this.props.prilohy && this.props.prilohy.length > 0) {\r\n var prilohy = this.props.prilohy.map(function (item) {\r\n return (React.createElement(\"div\", null, item.nazev));\r\n });\r\n return prilohy;\r\n }\r\n else {\r\n return (React.createElement(react_1.Label, { style: { fontStyle: \"bold\", fontSize: this.theme.fonts.mediumPlus.fontSize } }, \"nebyli zad\\u00E1ny \\u017E\\u00E1dn\\u00E9 p\\u0159ilohy \"));\r\n }\r\n };\r\n Rekapitulace.prototype.renderParcely = function () {\r\n var parcely = this.props.parcely.map(function (item) {\r\n return (React.createElement(react_1.Stack, { horizontal: true, tokens: { childrenGap: 10 }, horizontalAlign: \"start\", verticalAlign: \"center\" },\r\n React.createElement(react_1.Label, null, \"Katasr\\u00E1ln\\u00ED \\u00FAzem\\u00ED:\"),\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n item.katastralniUzemi),\r\n React.createElement(react_1.Label, null, (item.druhCislovaniKod === 1 ? \"stavební parcela: \" : \"pozemková parcela: \")),\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n item.kmenoveCislo + (item.pododdeleniCisla != 0 ? \"/\" + item.pododdeleniCisla : \"\"),\r\n \" \")));\r\n });\r\n return parcely;\r\n };\r\n Rekapitulace.prototype.render = function () {\r\n var _this = this;\r\n console.log(\"parcely\" + this.props.parcely.length);\r\n var d = this.props.upresneniZadosti.duvodZadosti;\r\n var duvodZadosti = d;\r\n var ucelStavby = this.props.upresneniZadosti.ucelStavby;\r\n return (React.createElement(react_1.Stack, { styles: { root: { paddingTop: 25 } } },\r\n React.createElement(react_1.Stack, { horizontal: true },\r\n React.createElement(\"table\", { style: { width: \"50%\", borderSpacing: 0, padding: 0, minWidth: 400 } },\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { colSpan: 2 },\r\n React.createElement(react_1.Label, { style: { fontSize: this.theme.fonts.large.fontSize }, styles: { root: { color: this.theme.palette.themePrimary } } }, \"\\u017Dadatel\"))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { style: { width: 180 } },\r\n React.createElement(react_1.Label, null, \" Firma/organizace\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n this.props.zadost.zadatel.firma))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"I\\u010D\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n this.props.zadost.zadatel.ic))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"DI\\u010C\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n this.props.zadost.zadatel.dic))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"Kontaktn\\u00ED osoba \")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.zadatel.kontakt))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"Adresa (ulice \\u010D.o. / \\u010D.p.)\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n this.props.zadost.zadatel.ulice))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"M\\u011Bsto / obec\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.zadatel.mesto))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"PS\\u010C\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.zadatel.psc))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"St\\u00E1t\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.zadatel.stat))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"E-mail\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.zadatel.email))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"Telefonn\\u00ED \\u010D\\u00EDslo\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.zadatel.telefon)))),\r\n React.createElement(\"table\", { style: { width: \"50%\", borderSpacing: 0, padding: 0, minWidth: 400 } },\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { colSpan: 2 },\r\n React.createElement(react_1.Label, { style: { fontSize: this.theme.fonts.large.fontSize }, styles: { root: { color: this.theme.palette.themePrimary } } }, \"Stavebn\\u00EDk / Investor\"))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { style: { width: 180 } },\r\n React.createElement(react_1.Label, null, \" Firma/organizace \")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.firma))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"I\\u010D\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n this.props.zadost.investor.ic))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"DI\\u010C\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null,\r\n \" \",\r\n this.props.zadost.investor.dic))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"Kontaktn\\u00ED osoba\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.kontakt))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \" Adresa (ulice \\u010D.o. / \\u010D.p.)\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.ulice))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \" M\\u011Bsto / obec\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.mesto))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \" PS\\u010C\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.psc))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \" St\\u00E1t\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.stat))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"E-mail\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.email))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"Telefonn\\u00ED \\u010D\\u00EDslo\")),\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Text, null, this.props.zadost.investor.telefon))))),\r\n React.createElement(react_1.Separator, null),\r\n React.createElement(react_1.Stack, null,\r\n React.createElement(\"table\", { style: { borderSpacing: 0, padding: 0, minWidth: 400 } },\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { colSpan: 2 },\r\n React.createElement(react_1.Label, { style: { fontSize: this.theme.fonts.large.fontSize }, styles: { root: { color: this.theme.palette.themePrimary } } }, \"Up\\u0159esn\\u011Bn\\u00ED \\u017E\\u00E1dosti\"))),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { style: { width: 180 } },\r\n React.createElement(react_1.Label, null, \"N\\u00E1zev stavby\")),\r\n React.createElement(\"td\", null, this.props.upresneniZadosti.nazevStavby)),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"D\\u016Fvod \\u017E\\u00E1dosti vyj\\u00E1d\\u0159en\\u00ED\")),\r\n React.createElement(\"td\", null, this.duvodZadost[duvodZadosti])),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \"Dopl\\u0148uj\\u00EDc\\u00ED informace\")),\r\n React.createElement(\"td\", null, this.props.upresneniZadosti.doplnujiciInfo)),\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", null,\r\n React.createElement(react_1.Label, null, \" \\u00DA\\u010Del Stavby\")),\r\n React.createElement(\"td\", null, this.ucelStavbyOptions[ucelStavby])),\r\n (this.props.upresneniZadosti.dgn ?\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { colSpan: 2 },\r\n React.createElement(react_1.Label, null, \"M\\u00E1m z\\u00E1jem o datov\\u00FD soubor trasy SEK ve vyzna\\u010Den\\u00E9m Z\\u00E1jmov\\u00E9m \\u00FAzem\\u00ED ve form\\u00E1tu *.dgn \")))\r\n : null),\r\n (this.props.upresneniZadosti.podminkyPripojeni ?\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { colSpan: 2 },\r\n React.createElement(react_1.Label, null, \"\\u017D\\u00E1d\\u00E1m o stanoven\\u00ED podm\\u00EDnek p\\u0159ipojen\\u00ED na SEK ve vlastnictv\\u00ED PODA a.s. \")))\r\n : null),\r\n (this.props.upresneniZadosti.postou ?\r\n React.createElement(\"tr\", null,\r\n React.createElement(\"td\", { colSpan: 2 },\r\n React.createElement(react_1.Label, { styles: { root: { color: 'red' } } }, \"\\u017D\\u00E1d\\u00E1m o zasl\\u00E1n\\u00ED vyj\\u00E1d\\u0159en\\u00ED po\\u0161tou. Bude \\u00FA\\u010Dtov\\u00E1n poplatek dle platn\\u00E9ho cen\\u00EDku PODA a.s..\")))\r\n : null))),\r\n React.createElement(react_1.Separator, null),\r\n React.createElement(react_1.Stack, null,\r\n React.createElement(react_1.Label, { style: { fontSize: this.theme.fonts.large.fontSize }, styles: { root: { color: this.theme.palette.themePrimary } } }, \"Seznam p\\u0159\\u00EDloh\"),\r\n this.renderPriloby()),\r\n React.createElement(react_1.Separator, null),\r\n React.createElement(react_1.Stack, null,\r\n React.createElement(react_1.Label, { style: { fontSize: this.theme.fonts.large.fontSize }, styles: { root: { color: this.theme.palette.themePrimary } } }, \"Z\\u00E1jmov\\u00E9 \\u00FAzem\\u00ED\"),\r\n React.createElement(\"img\", { style: { maxWidth: 1024 }, src: this.state.image })),\r\n this.props.parcely && this.props.parcely.length > 0 ?\r\n (React.createElement(react_1.Stack, null,\r\n React.createElement(react_1.Label, { style: { fontSize: this.theme.fonts.large.fontSize }, styles: { root: { color: this.theme.palette.themePrimary } } }, \"Seznam parcel\"),\r\n this.renderParcely()))\r\n : null,\r\n React.createElement(react_1.Stack, { horizontal: true, horizontalAlign: \"center\", tokens: { childrenGap: 10 }, styles: { root: { paddingTop: 25, paddingBottom: 25 } } },\r\n React.createElement(react_1.DefaultButton, { text: \"Zp\\u011Bt\", onClick: function () { _this.props.back(); } }),\r\n React.createElement(react_1.PrimaryButton, { text: \"Dokon\\u010Dit \\u017E\\u00E1dost\", onClick: function () { return _this.props.dokoncitZadost(); } }))));\r\n };\r\n return Rekapitulace;\r\n}(React.Component));\r\nexports.Rekapitulace = Rekapitulace;\r\nexports.StoreToZajmoveUzemiState = function (state) { return ({\r\n configuration: state.configuration.config\r\n}); };\r\nexports.StoreToZajmoveUzemiDispatchToProps = function (dispatch) {\r\n return {};\r\n};\r\nexports.default = react_redux_1.connect(exports.StoreToZajmoveUzemiState, exports.StoreToZajmoveUzemiDispatchToProps)(Rekapitulace);\r\n//# sourceMappingURL=Rekapitulace.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar React = require(\"react\");\r\nvar PotvrzeniZadostni = /** @class */ (function (_super) {\r\n __extends(PotvrzeniZadostni, _super);\r\n function PotvrzeniZadostni() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n PotvrzeniZadostni.prototype.componentDidMount = function () {\r\n this.props.onRef(this);\r\n };\r\n PotvrzeniZadostni.prototype.componentWillUnmount = function () {\r\n this.props.onRef(undefined);\r\n };\r\n PotvrzeniZadostni.prototype.saveData = function (callback) {\r\n callback();\r\n };\r\n PotvrzeniZadostni.prototype.render = function () {\r\n return (React.createElement(react_1.Stack, { styles: { root: { paddingTop: 25 } } },\r\n React.createElement(\"h3\", { style: { fontFamily: \"\\\"Segoe UI\\\", \\\"Segoe UI Web(West European)\\\", \\\"Segoe UI\\\", -apple-system, BlinkMacSystemFont, Roboto, \\\"Helvetica Neue\\\", sans-serif\" } },\r\n \" Va\\u0161e \\u017E\\u00E1dost byla \\u00FAsp\\u011B\\u0161n\\u011B odesl\\u00E1na pod \\u010D\\u00EDslem \",\r\n this.props.zadost.id,\r\n \". Na v\\u00E1mi zadanout emailovou adresu byl odesl\\u00E1m potvrzovac\\u00ED email.\"),\r\n React.createElement(\"br\", null),\r\n React.createElement(\"br\", null),\r\n !this.props.isAuthenticated ?\r\n React.createElement(\"div\", null,\r\n \" TIP: Pokud jednodu\\u0161\\u0161\\u00ED zad\\u00E1v\\u00E1n\\u00ED dal\\u0161\\u00EDch \\u017E\\u00E1dost\\u00ED se m\\u016F\\u017Eete zaregistrovat. Registrovan\\u00ED u\\u017Eivatel\\u00E9 maj\\u00ED tak\\u00E9 p\\u0159\\u00EDstup k historii zadan\\u00FDch \\u017E\\u00E1dost\\u00ED.\",\r\n React.createElement(react_1.Stack, { verticalAlign: \"center\", horizontalAlign: \"center\" },\r\n React.createElement(\"br\", null),\r\n React.createElement(react_1.PrimaryButton, { text: \"Zaregistovat se\", styles: { root: { width: 250 } }, onClick: this.registrace.bind(this) })))\r\n : null));\r\n };\r\n PotvrzeniZadostni.prototype.registrace = function () {\r\n var kontakt = this.props.zadost.zadatel.kontakt.split(\" \");\r\n var firstname = \"\";\r\n var surname = \"\";\r\n if (kontakt.length > 0) {\r\n firstname = kontakt[0];\r\n }\r\n if (kontakt.length > 1) {\r\n surname = kontakt[1];\r\n }\r\n var url = \"ic=\" + this.props.zadost.zadatel.ic + \"\\n&dic=\" + this.props.zadost.zadatel.dic + \"\\n&email=\" + this.props.zadost.zadatel.email + \"\\n&mesto=\" + this.props.zadost.zadatel.mesto + \"\\n&psc=\" + this.props.zadost.zadatel.psc + \"\\n&stat=\" + this.props.zadost.zadatel.stat + \"\\n&telefon=\" + this.props.zadost.zadatel.telefon + \"\\n&ulice=\" + this.props.zadost.zadatel.ulice + \"\\n&givenName=\" + firstname + \"\\n&surname=\" + surname + \"\\n&id=\" + this.props.zadost.id + \"\\n&guid=\" + this.props.zadost.zadostGuid;\r\n window.document.location.href = \"/Identity/Account/Register?\" + url;\r\n };\r\n return PotvrzeniZadostni;\r\n}(React.Component));\r\nexports.PotvrzeniZadostni = PotvrzeniZadostni;\r\nexports.StoreToPotvrzeniState = function (state) { return ({\r\n user: state.auth.user,\r\n isAuthenticated: state.auth.isAuthenticated\r\n}); };\r\nexports.StoreToHomeToProps = function (dispatch) {\r\n return {};\r\n};\r\n//# sourceMappingURL=Potvrzeni.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_router_1 = require(\"react-router\");\r\nvar Login_1 = require(\"./Login\");\r\nvar Logout_1 = require(\"./Logout\");\r\nvar ApiAuthorizationConstants_1 = require(\"./ApiAuthorizationConstants\");\r\nvar react_1 = require(\"react\");\r\nvar ApiAuthorizationRoutes = /** @class */ (function (_super) {\r\n __extends(ApiAuthorizationRoutes, _super);\r\n function ApiAuthorizationRoutes() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n ApiAuthorizationRoutes.prototype.render = function () {\r\n return (React.createElement(react_1.Fragment, null,\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.Login, render: function () { return loginAction(ApiAuthorizationConstants_1.LoginActions.Login); } }),\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.LoginFailed, render: function () { return loginAction(ApiAuthorizationConstants_1.LoginActions.LoginFailed); } }),\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.LoginCallback, render: function () { return loginAction(ApiAuthorizationConstants_1.LoginActions.LoginCallback); } }),\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.Profile, render: function () { return loginAction(ApiAuthorizationConstants_1.LoginActions.Profile); } }),\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.Register, render: function () { return loginAction(ApiAuthorizationConstants_1.LoginActions.Register); } }),\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.LogOut, render: function () { return logoutAction(ApiAuthorizationConstants_1.LogoutActions.Logout); } }),\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.LogOutCallback, render: function () { return logoutAction(ApiAuthorizationConstants_1.LogoutActions.LogoutCallback); } }),\r\n React.createElement(react_router_1.Route, { path: ApiAuthorizationConstants_1.ApplicationPaths.LoggedOut, render: function () { return logoutAction(ApiAuthorizationConstants_1.LogoutActions.LoggedOut); } })));\r\n };\r\n return ApiAuthorizationRoutes;\r\n}(React.Component));\r\nexports.default = ApiAuthorizationRoutes;\r\nfunction loginAction(name) {\r\n return (React.createElement(Login_1.default, { action: name }));\r\n}\r\nfunction logoutAction(name) {\r\n return (React.createElement(Logout_1.default, { action: name }));\r\n}\r\n//# sourceMappingURL=ApiAuthorizationRoutes.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_1 = require(\"react\");\r\nvar AuthorizeService_1 = require(\"./AuthorizeService\");\r\nvar AuthorizeService_2 = require(\"./AuthorizeService\");\r\nvar ApiAuthorizationConstants_1 = require(\"./ApiAuthorizationConstants\");\r\nvar connected_react_router_1 = require(\"connected-react-router\");\r\nvar react_redux_1 = require(\"react-redux\");\r\nvar react_2 = require(\"@fluentui/react\");\r\n// The main responsibility of this component is to handle the user's login process.\r\n// This is the starting point for the login process. Any component that needs to authenticate\r\n// a user can simply perform a redirect to this component with a returnUrl query parameter and\r\n// let the component perform the login and return back to the return url.\r\nvar Login = /** @class */ (function (_super) {\r\n __extends(Login, _super);\r\n function Login(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.state = {\r\n message: \"\"\r\n };\r\n return _this;\r\n }\r\n Login.prototype.componentDidMount = function () {\r\n var action = this.props.action;\r\n switch (action) {\r\n case ApiAuthorizationConstants_1.LoginActions.Login:\r\n this.login(this.getReturnUrl());\r\n break;\r\n case ApiAuthorizationConstants_1.LoginActions.LoginCallback:\r\n this.processLoginCallback();\r\n break;\r\n case ApiAuthorizationConstants_1.LoginActions.LoginFailed:\r\n var params = new URLSearchParams(window.location.search);\r\n var error = params.get(ApiAuthorizationConstants_1.QueryParameterNames.Message);\r\n this.setState({ message: error });\r\n break;\r\n case ApiAuthorizationConstants_1.LoginActions.Profile:\r\n this.redirectToProfile();\r\n break;\r\n case ApiAuthorizationConstants_1.LoginActions.Register:\r\n this.redirectToRegister();\r\n break;\r\n default:\r\n throw new Error(\"Invalid action '\" + action + \"'\");\r\n }\r\n };\r\n Login.prototype.render = function () {\r\n var action = this.props.action;\r\n var message = this.state.message;\r\n var theme = react_2.getTheme();\r\n var stackStyle = {\r\n root: {\r\n paddingTop: 20\r\n }\r\n };\r\n var labelStyleError = {\r\n root: {\r\n fontSize: theme.fonts.xLarge.fontSize, color: theme.semanticColors.errorIcon\r\n }\r\n };\r\n var labelStyleInfo = {\r\n root: {\r\n fontSize: theme.fonts.xLarge.fontSize, color: theme.semanticColors.infoIcon\r\n }\r\n };\r\n if (!!message) {\r\n return React.createElement(\"div\", null, message);\r\n }\r\n else {\r\n switch (action) {\r\n case ApiAuthorizationConstants_1.LoginActions.Login:\r\n return (React.createElement(react_2.Stack, { styles: stackStyle, horizontalAlign: \"center\" },\r\n React.createElement(react_2.Label, { styles: labelStyleInfo }, \"Zpracov\\u00E1v\\u00E1m p\\u0159ihl\\u00E1\\u0161en\\u00ED\"),\r\n React.createElement(react_2.ProgressIndicator, { styles: { root: { width: '50%', minWidth: 400, height: 10 } } })));\r\n case ApiAuthorizationConstants_1.LoginActions.LoginCallback:\r\n return (React.createElement(react_2.Stack, { styles: stackStyle, horizontalAlign: \"center\" },\r\n React.createElement(react_2.Label, { styles: labelStyleInfo }, \"Dokon\\u010Duji p\\u0159ihl\\u00E1\\u0161en\\u00ED\"),\r\n React.createElement(react_2.ProgressIndicator, { styles: { root: { width: '50%', minWidth: 400, height: 10 } } })));\r\n case ApiAuthorizationConstants_1.LoginActions.Profile:\r\n case ApiAuthorizationConstants_1.LoginActions.Register:\r\n return (React.createElement(\"div\", null));\r\n default:\r\n console.log(\"Invalid action '\" + action + \"'\");\r\n return (React.createElement(react_2.Stack, { styles: stackStyle, horizontalAlign: \"center\" },\r\n React.createElement(react_2.Label, { styles: labelStyleInfo }, \"Nastala chyba p\\u0159i p\\u0159ihl\\u00E1\\u0161en\\u00ED\")));\r\n }\r\n }\r\n };\r\n Login.prototype.login = function (returnUrl) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var state, result, _a;\r\n return __generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n state = { returnUrl: returnUrl };\r\n return [4 /*yield*/, AuthorizeService_1.default.signIn(state)];\r\n case 1:\r\n result = _b.sent();\r\n _a = result.status;\r\n switch (_a) {\r\n case AuthorizeService_2.AuthenticationResultStatus.Redirect: return [3 /*break*/, 2];\r\n case AuthorizeService_2.AuthenticationResultStatus.Success: return [3 /*break*/, 3];\r\n case AuthorizeService_2.AuthenticationResultStatus.Fail: return [3 /*break*/, 5];\r\n }\r\n return [3 /*break*/, 6];\r\n case 2: return [3 /*break*/, 7];\r\n case 3: return [4 /*yield*/, this.navigateToReturnUrl(returnUrl)];\r\n case 4:\r\n _b.sent();\r\n return [3 /*break*/, 7];\r\n case 5:\r\n this.setState({ message: result.message });\r\n return [3 /*break*/, 7];\r\n case 6: throw new Error(\"Invalid status result \" + result.status + \".\");\r\n case 7: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Login.prototype.processLoginCallback = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, _a;\r\n return __generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n url = window.location.href;\r\n return [4 /*yield*/, AuthorizeService_1.default.completeSignIn(url)];\r\n case 1:\r\n result = _b.sent();\r\n _a = result.status;\r\n switch (_a) {\r\n case AuthorizeService_2.AuthenticationResultStatus.Redirect: return [3 /*break*/, 2];\r\n case AuthorizeService_2.AuthenticationResultStatus.Success: return [3 /*break*/, 3];\r\n case AuthorizeService_2.AuthenticationResultStatus.Fail: return [3 /*break*/, 5];\r\n }\r\n return [3 /*break*/, 6];\r\n case 2: \r\n // There should not be any redirects as the only time completeSignIn finishes\r\n // is when we are doing a redirect sign in flow.\r\n throw new Error('Should not redirect.');\r\n case 3: return [4 /*yield*/, this.navigateToReturnUrl(this.getReturnUrl(result.state))];\r\n case 4:\r\n _b.sent();\r\n return [3 /*break*/, 7];\r\n case 5:\r\n this.setState({ message: result.message });\r\n return [3 /*break*/, 7];\r\n case 6: throw new Error(\"Invalid authentication result status '\" + result.status + \"'.\");\r\n case 7: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Login.prototype.getReturnUrl = function (state) {\r\n var params = new URLSearchParams(window.location.search);\r\n var fromQuery = params.get(ApiAuthorizationConstants_1.QueryParameterNames.ReturnUrl);\r\n if (fromQuery && !fromQuery.startsWith(window.location.origin + \"/\")) {\r\n // This is an extra check to prevent open redirects.\r\n throw new Error(\"Invalid return url. The return url needs to have the same origin as the current page.\");\r\n }\r\n return (state && state.returnUrl) || fromQuery || \"/\";\r\n };\r\n Login.prototype.redirectToRegister = function () {\r\n this.redirectToApiAuthorizationPath(ApiAuthorizationConstants_1.ApplicationPaths.IdentityRegisterPath + \"?\" + ApiAuthorizationConstants_1.QueryParameterNames.ReturnUrl + \"=\" + encodeURI(ApiAuthorizationConstants_1.ApplicationPaths.Login));\r\n };\r\n Login.prototype.redirectToProfile = function () {\r\n this.redirectToApiAuthorizationPath(ApiAuthorizationConstants_1.ApplicationPaths.IdentityManagePath);\r\n };\r\n Login.prototype.redirectToApiAuthorizationPath = function (apiAuthorizationPath) {\r\n var redirectUrl = \"\" + window.location.origin + apiAuthorizationPath;\r\n // It's important that we do a replace here so that when the user hits the back arrow on the\r\n // browser he gets sent back to where it was on the app instead of to an endpoint on this\r\n // component.\r\n window.location.replace(redirectUrl);\r\n //this.props.push(redirectUrl)\r\n };\r\n Login.prototype.navigateToReturnUrl = function (returnUrl) {\r\n // It's important that we do a replace here so that we remove the callback uri with the\r\n // fragment containing the tokens from the browser history.\r\n //window.location.replace(returnUrl);\r\n this.props.push(returnUrl);\r\n };\r\n return Login;\r\n}(react_1.Component));\r\nexports.StoreToLoginState = function (state) { return ({}); };\r\nexports.StoreToLoginToProps = function (dispatch) {\r\n return {\r\n push: function (url) { return dispatch(connected_react_router_1.push(url)); }\r\n };\r\n};\r\nexports.default = react_redux_1.connect(exports.StoreToLoginState, exports.StoreToLoginToProps)(Login);\r\n//# sourceMappingURL=Login.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_1 = require(\"react\");\r\nvar AuthorizeService_1 = require(\"./AuthorizeService\");\r\nvar AuthorizeService_2 = require(\"./AuthorizeService\");\r\nvar ApiAuthorizationConstants_1 = require(\"./ApiAuthorizationConstants\");\r\nvar react_2 = require(\"@fluentui/react\");\r\nvar connected_react_router_1 = require(\"connected-react-router\");\r\nvar react_redux_1 = require(\"react-redux\");\r\n// The main responsibility of this component is to handle the user's logout process.\r\n// This is the starting point for the logout process, which is usually initiated when a\r\n// user clicks on the logout button on the LoginMenu component.\r\nvar Logout = /** @class */ (function (_super) {\r\n __extends(Logout, _super);\r\n function Logout(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.state = {\r\n isReady: false,\r\n authenticated: false\r\n };\r\n return _this;\r\n }\r\n Logout.prototype.componentDidMount = function () {\r\n var action = this.props.action;\r\n switch (action) {\r\n case ApiAuthorizationConstants_1.LogoutActions.Logout:\r\n this.logout(this.getReturnUrl());\r\n //if (!!window.history.state.state.local) {\r\n // this.logout(this.getReturnUrl());\r\n //} else {\r\n // // This prevents regular links to /authentication/logout from triggering a logout\r\n // this.setState({ isReady: true, message: \"The logout was not initiated from within the page.\" });\r\n //}\r\n break;\r\n case ApiAuthorizationConstants_1.LogoutActions.LogoutCallback:\r\n this.processLogoutCallback();\r\n break;\r\n case ApiAuthorizationConstants_1.LogoutActions.LoggedOut:\r\n this.setState({ isReady: true, message: \"Byli jste úspěšně odhlášeni!\" });\r\n break;\r\n default:\r\n throw new Error(\"Invalid action '\" + action + \"'\");\r\n }\r\n this.populateAuthenticationState();\r\n };\r\n Logout.prototype.render = function () {\r\n var _this = this;\r\n var theme = react_2.getTheme();\r\n var stackStyle = {\r\n root: {\r\n paddingTop: 20\r\n }\r\n };\r\n var labelStyleSuccess = {\r\n root: {\r\n fontSize: theme.fonts.xLarge.fontSize, color: theme.semanticColors.successIcon\r\n }\r\n };\r\n var labelStyleInfo = {\r\n root: {\r\n fontSize: theme.fonts.xLarge.fontSize, color: theme.semanticColors.infoIcon\r\n }\r\n };\r\n var _a = this.state, isReady = _a.isReady, message = _a.message;\r\n if (!isReady) {\r\n return React.createElement(\"div\", null);\r\n }\r\n var action = this.props.action;\r\n switch (action) {\r\n case ApiAuthorizationConstants_1.LogoutActions.Logout:\r\n return (React.createElement(react_2.Stack, { styles: stackStyle, horizontalAlign: \"center\" },\r\n React.createElement(react_2.Label, { styles: labelStyleInfo }, \"Zpracov\\u00E1v\\u00E1m odhl\\u00E1\\u0161en\\u00ED\"),\r\n React.createElement(react_2.ProgressIndicator, { styles: { root: { width: '50%', minWidth: 400, height: 10 } } })));\r\n case ApiAuthorizationConstants_1.LogoutActions.LogoutCallback:\r\n return (React.createElement(react_2.Stack, { styles: stackStyle, horizontalAlign: \"center\" },\r\n React.createElement(react_2.Label, { styles: labelStyleInfo }, \"Dokon\\u010Duji odhl\\u00E1\\u0161en\\u00ED\"),\r\n React.createElement(react_2.ProgressIndicator, { styles: { root: { width: '50%', minWidth: 400, height: 10 } } })));\r\n case ApiAuthorizationConstants_1.LogoutActions.LoggedOut:\r\n return (React.createElement(react_2.Stack, { styles: stackStyle, horizontalAlign: \"center\" },\r\n React.createElement(react_2.Label, { styles: labelStyleSuccess }, message),\r\n React.createElement(react_2.Link, { onClick: function () { _this.props.push(\"/\"); } }, \"M\\u016F\\u017Eete pokra\\u010Dovat jako nep\\u0159ihl\\u00E1\\u0161en\\u00FD u\\u017Eivatel.\")));\r\n default:\r\n throw new Error(\"Invalid action '\" + action + \"'\");\r\n }\r\n };\r\n Logout.prototype.logout = function (returnUrl) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var state, isauthenticated, result, _a;\r\n return __generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n state = { returnUrl: returnUrl };\r\n return [4 /*yield*/, AuthorizeService_1.default.isAuthenticated()];\r\n case 1:\r\n isauthenticated = _b.sent();\r\n if (!isauthenticated) return [3 /*break*/, 9];\r\n return [4 /*yield*/, AuthorizeService_1.default.signOut(state)];\r\n case 2:\r\n result = _b.sent();\r\n _a = result.status;\r\n switch (_a) {\r\n case AuthorizeService_2.AuthenticationResultStatus.Redirect: return [3 /*break*/, 3];\r\n case AuthorizeService_2.AuthenticationResultStatus.Success: return [3 /*break*/, 4];\r\n case AuthorizeService_2.AuthenticationResultStatus.Fail: return [3 /*break*/, 6];\r\n }\r\n return [3 /*break*/, 7];\r\n case 3: return [3 /*break*/, 8];\r\n case 4: return [4 /*yield*/, this.navigateToReturnUrl(returnUrl)];\r\n case 5:\r\n _b.sent();\r\n return [3 /*break*/, 8];\r\n case 6:\r\n this.setState({ message: result.message });\r\n return [3 /*break*/, 8];\r\n case 7: throw new Error(\"Invalid authentication result status.\");\r\n case 8: return [3 /*break*/, 10];\r\n case 9:\r\n this.setState({ message: \"You successfully logged out!\" });\r\n _b.label = 10;\r\n case 10: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Logout.prototype.processLogoutCallback = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, _a;\r\n return __generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n url = window.location.href;\r\n return [4 /*yield*/, AuthorizeService_1.default.completeSignOut(url)];\r\n case 1:\r\n result = _b.sent();\r\n _a = result.status;\r\n switch (_a) {\r\n case AuthorizeService_2.AuthenticationResultStatus.Redirect: return [3 /*break*/, 2];\r\n case AuthorizeService_2.AuthenticationResultStatus.Success: return [3 /*break*/, 3];\r\n case AuthorizeService_2.AuthenticationResultStatus.Fail: return [3 /*break*/, 5];\r\n }\r\n return [3 /*break*/, 6];\r\n case 2: \r\n // There should not be any redirects as the only time completeAuthentication finishes\r\n // is when we are doing a redirect sign in flow.\r\n throw new Error('Should not redirect.');\r\n case 3: return [4 /*yield*/, this.navigateToReturnUrl(this.getReturnUrl(result.state))];\r\n case 4:\r\n _b.sent();\r\n return [3 /*break*/, 7];\r\n case 5:\r\n this.setState({ message: result.message });\r\n return [3 /*break*/, 7];\r\n case 6: throw new Error(\"Invalid authentication result status.\");\r\n case 7: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Logout.prototype.populateAuthenticationState = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var authenticated;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, AuthorizeService_1.default.isAuthenticated()];\r\n case 1:\r\n authenticated = _a.sent();\r\n this.setState({ isReady: true, authenticated: authenticated });\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Logout.prototype.getReturnUrl = function (state) {\r\n var params = new URLSearchParams(window.location.search);\r\n var fromQuery = params.get(ApiAuthorizationConstants_1.QueryParameterNames.ReturnUrl);\r\n if (fromQuery && !fromQuery.startsWith(window.location.origin + \"/\")) {\r\n // This is an extra check to prevent open redirects.\r\n throw new Error(\"Invalid return url. The return url needs to have the same origin as the current page.\");\r\n }\r\n return (state && state.returnUrl) ||\r\n fromQuery ||\r\n \"\" + ApiAuthorizationConstants_1.ApplicationPaths.LoggedOut;\r\n };\r\n Logout.prototype.navigateToReturnUrl = function (returnUrl) {\r\n //return window.location.replace(returnUrl);\r\n this.props.push(returnUrl);\r\n };\r\n return Logout;\r\n}(react_1.Component));\r\nexports.StoreToLogoutState = function (state) { return ({}); };\r\nexports.StoreToLogoutToProps = function (dispatch) {\r\n return {\r\n push: function (url) { return dispatch(connected_react_router_1.push(url)); }\r\n };\r\n};\r\nexports.default = react_redux_1.connect(exports.StoreToLogoutState, exports.StoreToLogoutToProps)(Logout);\r\n//# sourceMappingURL=Logout.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar React = require(\"react\");\r\nvar react_1 = require(\"react\");\r\nvar axios_1 = require(\"axios\");\r\nvar applicationinsights_react_js_1 = require(\"@microsoft/applicationinsights-react-js\");\r\nvar TelemetryService_1 = require(\"./TelemetryService\");\r\nvar react_router_dom_1 = require(\"react-router-dom\");\r\n/**\r\n * This Component provides telemetry with Azure App Insights\r\n *\r\n * NOTE: the package '@microsoft/applicationinsights-react-js' has a HOC withAITracking that requires this to be a Class Component rather than a Functional Component\r\n */\r\nvar TelemetryProvider = /** @class */ (function (_super) {\r\n __extends(TelemetryProvider, _super);\r\n function TelemetryProvider() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.state = {\r\n initialized: false\r\n };\r\n return _this;\r\n }\r\n TelemetryProvider.prototype.componentDidMount = function () {\r\n var _this = this;\r\n var history = this.props.history;\r\n var initialized = this.state.initialized;\r\n axios_1.default.get(\"/api/Configuration\")\r\n .then(function (res) { return __awaiter(_this, void 0, void 0, function () {\r\n var AppInsightsInstrumentationKey;\r\n var _a;\r\n return __generator(this, function (_b) {\r\n AppInsightsInstrumentationKey = res.data.applicationInsights;\r\n if (!Boolean(initialized) && Boolean(AppInsightsInstrumentationKey) && Boolean(history)) {\r\n console.log(res.data);\r\n TelemetryService_1.ai.initialize(AppInsightsInstrumentationKey, history);\r\n this.setState({ initialized: true });\r\n }\r\n (_a = this.props) === null || _a === void 0 ? void 0 : _a.after();\r\n return [2 /*return*/];\r\n });\r\n }); }).catch(function (error) {\r\n console.log(error);\r\n });\r\n };\r\n TelemetryProvider.prototype.render = function () {\r\n var children = this.props.children;\r\n return (React.createElement(react_1.Fragment, null, children));\r\n };\r\n return TelemetryProvider;\r\n}(react_1.Component));\r\nexports.default = react_router_dom_1.withRouter(applicationinsights_react_js_1.withAITracking(TelemetryService_1.ai.reactPlugin, TelemetryProvider));\r\n//# sourceMappingURL=telemetry-provider.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar applicationinsights_web_1 = require(\"@microsoft/applicationinsights-web\");\r\nvar applicationinsights_react_js_1 = require(\"@microsoft/applicationinsights-react-js\");\r\nvar reactPlugin;\r\nvar appInsights;\r\n/**\r\n * Create the App Insights Telemetry Service\r\n * @return {{reactPlugin: ReactPlugin, appInsights: Object, initialize: Function}} - Object\r\n */\r\nvar createTelemetryService = function () {\r\n /**\r\n \r\n * Initialize the Application Insights class\r\n \r\n * @param {string} instrumentationKey - Application Insights Instrumentation Key\r\n \r\n * @param {Object} browserHistory - client's browser history, supplied by the withRouter HOC\r\n \r\n * @return {void}\r\n \r\n */\r\n reactPlugin = new applicationinsights_react_js_1.ReactPlugin();\r\n var initialize = function (instrumentationKey, browserHistory) {\r\n var _a;\r\n if (!browserHistory) {\r\n throw new Error('Could not initialize Telemetry Service');\r\n }\r\n //if (!instrumentationKey) {\r\n // throw new Error('Instrumentation key not provided in ./src/telemetry-provider.jsx')\r\n //}\r\n appInsights = new applicationinsights_web_1.ApplicationInsights({\r\n config: {\r\n instrumentationKey: instrumentationKey,\r\n maxBatchInterval: 0,\r\n disableFetchTracking: false,\r\n extensions: [reactPlugin],\r\n extensionConfig: (_a = {},\r\n _a[reactPlugin.identifier] = {\r\n history: browserHistory\r\n },\r\n _a)\r\n }\r\n });\r\n appInsights.loadAppInsights();\r\n window.onerror = function (message, source, lineno, colno, error) {\r\n var e = {\r\n error: {\r\n message: message.toString(),\r\n name: \"window.onerror\"\r\n },\r\n exception: error\r\n };\r\n appInsights.trackException(e);\r\n };\r\n window.addEventListener('unhandledrejection', function (event) {\r\n appInsights.trackException({ exception: new Error(event.promise + event.reason) });\r\n console.error('Unhandled rejection (promise: ', event.promise, ', reason: ', event.reason, ').');\r\n });\r\n window.addEventListener(\"rejectionhandled\", function (event) {\r\n appInsights.trackException({ exception: new Error(event.promise + event.reason) });\r\n console.error(\"Promise rejected; reason: \" + event.reason);\r\n }, false);\r\n };\r\n return { reactPlugin: reactPlugin, appInsights: appInsights, initialize: initialize };\r\n};\r\nexports.ai = createTelemetryService();\r\nexports.getProperties = function (functionName, name, message, lineNumber) {\r\n return {\r\n function: functionName,\r\n name: name,\r\n message: message,\r\n lineNumber: lineNumber\r\n };\r\n};\r\nexports.trackException = function (e, properties) {\r\n if (appInsights && appInsights.trackException) {\r\n var exceptionTelemetry = {\r\n error: {\r\n name: e.name,\r\n message: e.message,\r\n stack: e.stack\r\n },\r\n properties: properties,\r\n exception: e\r\n };\r\n console.log(e);\r\n appInsights.trackException(exceptionTelemetry);\r\n }\r\n};\r\nexports.getAppInsights = function () { return appInsights; };\r\nexports.getReactPlugin = function () { return reactPlugin; };\r\n//# sourceMappingURL=TelemetryService.js.map","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar ZadostList_1 = require(\"./ZadostiList/ZadostList\");\r\nvar React = require(\"react\");\r\nvar react_1 = require(\"@fluentui/react\");\r\nvar ZadostDetailForm_1 = require(\"./ZadostDetail/ZadostDetailForm\");\r\nvar VyjadreniDetailForm_1 = require(\"./VyjadreniDetail/VyjadreniDetailForm\");\r\nvar ZadaniDetailForm_1 = require(\"./ZadostDetail/ZadaniDetailForm\");\r\nvar TextEditor_1 = require(\"./TextEditor\");\r\nvar react_redux_1 = require(\"react-redux\");\r\nvar Admin = /** @class */ (function (_super) {\r\n __extends(Admin, _super);\r\n function Admin(props) {\r\n var _this = _super.call(this, props) || this;\r\n _this.state = { panelOpen: false, textEditorOpen: false, text: \"pokusný text\", vyjadreniId: 0 };\r\n return _this;\r\n }\r\n Admin.prototype.onSelectZadost = function (zadost) {\r\n this.setState({ zadost: zadost, panelOpen: zadost ? true : false });\r\n };\r\n Admin.prototype.dismissPanel = function (ev) {\r\n if (!this.state.textEditorOpen) {\r\n ev === null || ev === void 0 ? void 0 : ev.preventDefault();\r\n this.setState({ panelOpen: false });\r\n }\r\n };\r\n Admin.prototype.dismissTextEditor = function () {\r\n this.setState({ textEditorOpen: false });\r\n };\r\n Admin.prototype.openTextEditor = function (id) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var result;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.props.vyjadreniApi.getVyjadreniText(id)];\r\n case 1:\r\n result = _a.sent();\r\n if (result.isSuccess && result.data) {\r\n this.setState({ textEditorOpen: true, text: result.data, vyjadreniId: id });\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Admin.prototype.saveText = function (text) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var result;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n this.setState({ text: text });\r\n return [4 /*yield*/, this.props.vyjadreniApi.saveVyjadreniText(this.state.vyjadreniId, text)];\r\n case 1:\r\n result = _a.sent();\r\n console.log(result);\r\n this.dismissTextEditor();\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Admin.prototype.render = function () {\r\n return (React.createElement(React.Fragment, null,\r\n this.state.zadost ?\r\n React.createElement(react_1.Panel, { headerText: \"Detail \\u017E\\u00E1dosti\", isLightDismiss: true, isOpen: this.state.panelOpen, type: react_1.PanelType.medium, onDismiss: this.dismissPanel.bind(this), closeButtonAriaLabel: \"Zav\\u0159\\u00EDt\" },\r\n React.createElement(react_1.Pivot, null,\r\n React.createElement(react_1.PivotItem, { headerText: \"\\u017D\\u00E1dost\" },\r\n React.createElement(ZadostDetailForm_1.ZadostDetailForm, { zadost: this.state.zadost, zadostApi: this.props.zadostApi })),\r\n React.createElement(react_1.PivotItem, { headerText: \"Zad\\u00E1n\\u00ED\" },\r\n React.createElement(ZadaniDetailForm_1.ZadaniDetailForm, { user: this.props.user, zadaniApi: this.props.zadaniApi, zadost: this.state.zadost })),\r\n React.createElement(react_1.PivotItem, { headerText: \"Vyj\\u00E1d\\u0159en\\u00ED\" },\r\n React.createElement(VyjadreniDetailForm_1.VyjadreniDetailForm, { user: this.props.user, zadost: this.state.zadost, vyjadreniApi: this.props.vyjadreniApi, openTextEditor: this.openTextEditor.bind(this) })))) : null,\r\n React.createElement(ZadostList_1.ZadostList, { zadostApi: this.props.zadostApi, onSelectZadost: this.onSelectZadost.bind(this) }),\r\n React.createElement(react_1.Modal, { isOpen: this.state.textEditorOpen, onDismiss: this.dismissTextEditor.bind(this) },\r\n React.createElement(TextEditor_1.TextEditor, { text: this.state.text, close: this.dismissTextEditor.bind(this), saveText: this.saveText.bind(this) }))));\r\n };\r\n return Admin;\r\n}(React.Component));\r\nexports.Admin = Admin;\r\nexports.StoreToAdminState = function (state) { return ({\r\n user: state.auth.user\r\n}); };\r\nexports.StoreToAdminToProps = function (dispatch) {\r\n};\r\nexports.default = react_redux_1.connect(exports.StoreToAdminState, exports.StoreToAdminToProps)(Admin);\r\n//# sourceMappingURL=admin.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar RuianInterfaceTypeEnum;\r\n(function (RuianInterfaceTypeEnum) {\r\n RuianInterfaceTypeEnum[\"Adresa\"] = \"Adresa\";\r\n RuianInterfaceTypeEnum[\"Katastr\"] = \"Katastr\";\r\n RuianInterfaceTypeEnum[\"Parcela\"] = \"Parcela\";\r\n RuianInterfaceTypeEnum[\"Ulice\"] = \"Ulice\";\r\n RuianInterfaceTypeEnum[\"Polygone\"] = \"Polygone\";\r\n})(RuianInterfaceTypeEnum = exports.RuianInterfaceTypeEnum || (exports.RuianInterfaceTypeEnum = {}));\r\n//# sourceMappingURL=RuianInterfaceTypeEnum.js.map","import * as React from 'react';\r\nimport { Stack, TextField, IComboBoxOption, Separator, DetailsList, Toggle, DetailsListLayoutMode, IColumn, Icon, IconButton, SelectionMode, PrimaryButton, Modal, FontWeights, mergeStyleSets, getTheme } from '@fluentui/react';\r\nimport { UpresneniZadostiForm } from '../../zadost/UpresneniZadosti/UpresneniZadostiForm';\r\nimport { getFileTypeIconProps, initializeFileTypeIcons } from '@uifabric/file-type-icons';\r\n\r\nimport { IPriloha } from '../../../Types/Zadost/IPriloha';\r\nimport { IUpresneniZadani } from '../../../Types/Zadost/IUpresneniZadani';\r\nimport { IZadaniApi } from '../../../Services/IZadaniApi';\r\nimport { IZadostListItem } from '../../../Types/Admin/ZadostListItem';\r\nimport { IApiError } from '../../../Types/IApiError';\r\nimport { useId, useBoolean } from '@uifabric/react-hooks';\r\nimport ZadaniDetailMapForm from './ZadaniDetailMap';\r\nimport { IUser } from '../../../Types/IUser';\r\n\r\n\r\ninitializeFileTypeIcons(undefined);\r\n\r\n\r\ninterface IZadaniDetailFormProps {\r\n zadaniApi: IZadaniApi;\r\n zadost: IZadostListItem;\r\n user: IUser | undefined;\r\n}\r\n\r\nconst duvodZadostiOptions: IComboBoxOption[] = [\r\n { key: 'B', text: 'Informace o existenci a poloze vedení' },\r\n { key: 'C', text: 'Územní souhlas, územní rozhodnutí' },\r\n { key: 'D', text: 'Stavební povolení nebo sloučené územní a stavební řízení' },\r\n { key: 'E', text: 'Ohlášení stavby' },\r\n { key: 'G', text: 'Změna užívání stavby' },\r\n { key: 'H', text: 'Havárie' },\r\n { key: 'J', text: 'Jiné (s textovým polem pro manuální vypsání účelu)' },\r\n];\r\n\r\nconst ucelStavbyOptions: IComboBoxOption[] = [\r\n { key: 'B', text: 'Bytové domy' },\r\n { key: 'C', text: 'Rodinné domy, garáže' },\r\n { key: 'D', text: 'Administrativní budovy' },\r\n { key: 'E', text: 'Inženýrské sítě' },\r\n { key: 'G', text: 'Průmyslové zony' },\r\n { key: 'H', text: 'Drobná stavební činnost' },\r\n { key: 'I', text: 'Pozemní komunikace' },\r\n { key: 'J', text: 'Výsadba zeleně' },\r\n { key: 'J1', text: 'Zepmní práce, teréní úpravy' },\r\n { key: 'J2', text: 'Oplocení' }\r\n];\r\n\r\nconst columns = [\r\n { key: 'column0', name: '', fieldName: 'ext', minWidth: 50, maxWidth: 50, isResizable: true },\r\n { key: 'column1', name: 'Název', fieldName: 'nazev', minWidth: 100, isResizable: true }, \r\n {\r\n key: 'downloadButton',\r\n name: 'downloadButton',\r\n minWidth: 16,\r\n maxWidth: 16,\r\n isIconOnly: true\r\n }\r\n];\r\n\r\nexport const ZadaniDetailForm: React.FC = (props) => {\r\n const [upresneniZadosti, setUpresneniZadosti] = React.useState()\r\n const [zadaniFiles, setZadaniFiles] = React.useState([]) \r\n const getData = async (zadostId: number) => {\r\n const upresneni = await props.zadaniApi.getUpresneniZadani(zadostId, \"\");\r\n if (!(upresneni as IApiError).messageId) {\r\n setUpresneniZadosti(upresneni as IUpresneniZadani);\r\n const files = await props.zadaniApi.getFiles(zadostId, \"\");\r\n if (files.isSuccess && files.data) {\r\n setZadaniFiles(files.data.map((item: IPriloha) => {\r\n item.ext = item.nazev.substr(item.nazev.lastIndexOf('.') + 1);\r\n return item;\r\n }));\r\n }\r\n }\r\n else {\r\n\r\n }\r\n }\r\n\r\n const getDuvod = (duvodKey: string): string => {\r\n const duvod = duvodZadostiOptions.find(item => item.key === duvodKey);\r\n return (duvod ? duvod.text : \"\")\r\n }\r\n\r\n const getUcel = (ucelKey: string): string => {\r\n const ucel = ucelStavbyOptions.find(item => item.key === ucelKey);\r\n return (ucel ? ucel.text : \"\")\r\n }\r\n\r\n\r\n\r\n const downloadFile = async (item?: IPriloha) => {\r\n if (item) {\r\n const result = await props.zadaniApi.getFile(props.zadost.id,item.id,\"\");\r\n if (result.isSuccess) {\r\n const url = window.URL.createObjectURL(result.data.blob);\r\n const link = document.createElement('a');\r\n link.href = url; \r\n link.setAttribute(\"download\", result.data.fileName);\r\n link.click();\r\n document.body.appendChild(link);\r\n link.remove();\r\n /* setError(undefined)*/\r\n }\r\n else {\r\n /*setError(result.message);*/\r\n }\r\n }\r\n }\r\n\r\n const _renderItemColumn = (item?: any, index?: number, column?: IColumn) => {\r\n if (column && index != undefined && item) {\r\n const fieldContent = item[column.fieldName as keyof IPriloha] as string;\r\n\r\n switch (column.key) {\r\n case 'column0':\r\n return \r\n case 'downloadButton':\r\n return downloadFile(item)}>;\r\n default:\r\n return {fieldContent};\r\n }\r\n }\r\n else {\r\n return null\r\n }\r\n }\r\n\r\n React.useEffect(() => {\r\n getData(props.zadost.id);\r\n }, [props.zadost]);\r\n\r\n const titleId = useId('title');\r\n const [isModalOpen, { setTrue: showModal, setFalse: hideModal }] = useBoolean(false);\r\n const theme = getTheme();\r\n const contentStyles = mergeStyleSets({\r\n container: {\r\n display: 'flex',\r\n flexFlow: 'column nowrap',\r\n alignItems: 'stretch',\r\n },\r\n header: [ \r\n theme.fonts.xLargePlus,\r\n {\r\n flex: '1 1 auto',\r\n borderTop: `4px solid ${theme.palette.themePrimary}`,\r\n color: theme.palette.neutralPrimary,\r\n display: 'flex',\r\n alignItems: 'center',\r\n fontWeight: FontWeights.semibold,\r\n padding: '12px 12px 14px 24px',\r\n },\r\n ],\r\n body: {\r\n flex: '4 4 auto',\r\n padding: '0 24px 24px 24px',\r\n overflowY: 'hidden',\r\n selectors: {\r\n p: { margin: '14px 0' },\r\n 'p:first-child': { marginTop: 0 },\r\n 'p:last-child': { marginBottom: 0 },\r\n },\r\n },\r\n });\r\n\r\n \r\n\r\n return (\r\n {upresneniZadosti ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n Přílohy\r\n\r\n \r\n \r\n \r\n\r\n \r\n
\r\n \r\n
\r\n {(props.user && props.user.role && props.user.role.indexOf(\"admin_write\") != -1) ? : null}\r\n
\r\n : null}\r\n {(props.user && props.user.role && props.user.role.indexOf(\"admin_write\") != -1) ?\r\n \r\n {isModalOpen ?\r\n : null\r\n }\r\n \r\n : null}\r\n\r\n
)\r\n}","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar GeoJsonTypeEnum_1 = require(\"./GeoJsonTypeEnum\");\r\nvar IGeometry_1 = require(\"./IGeometry\");\r\nvar GeoJsonFeatureCollection = /** @class */ (function () {\r\n function GeoJsonFeatureCollection(featureCollection) {\r\n this.type = GeoJsonTypeEnum_1.GeoJsonTypeEnum.FeatureCollection;\r\n this.features = featureCollection ? featureCollection.features : [];\r\n }\r\n GeoJsonFeatureCollection.FeatureCollectionFromFeatures = function (features) {\r\n var res = new GeoJsonFeatureCollection();\r\n res.features = features;\r\n return res;\r\n };\r\n GeoJsonFeatureCollection.GeoJsonToBingGeometry = function (featureCollection, defaulProperties) {\r\n var result = [];\r\n var feature = new GeoJsonFeatureCollection(featureCollection);\r\n for (var i = 0; i < feature.features.length; i++) {\r\n var geometry = IGeometry_1.Geometry.GeoJsonToBingGeometry(feature.features[i].geometry, feature.features[i].properties, defaulProperties);\r\n if (geometry) {\r\n if (Array.isArray(geometry)) {\r\n result.push.apply(result, geometry);\r\n }\r\n else {\r\n result.push(geometry);\r\n }\r\n }\r\n }\r\n return result;\r\n };\r\n return GeoJsonFeatureCollection;\r\n}());\r\nexports.GeoJsonFeatureCollection = GeoJsonFeatureCollection;\r\n//# sourceMappingURL=IGeoJsonFeatureCollection.js.map","/* global Microsoft*/\r\n\r\nimport { ICoordinate } from \"../ICoordinate\";\r\nimport { GeoJsonTypeEnum } from \"./GeoJsonTypeEnum\";\r\nimport { GeometryCoordinate } from \"./IGeoJsonCoordinate\";\r\nimport { IGeoJsonFeatureCollectionProperties } from \"./IGeoJsonFeatureCollection\";\r\nimport { IGeoJsonProperties } from \"./IGeoJsonProperties\";\r\n\r\nexport interface IGeometry {\r\n type: GeoJsonTypeEnum;\r\n coordinates: GeometryCoordinate[] | GeometryCoordinate;\r\n}\r\n\r\nexport class Geometry implements IGeometry {\r\n type: GeoJsonTypeEnum;\r\n coordinates: GeometryCoordinate[] | GeometryCoordinate;\r\n\r\n\r\n public static GetGeoJsonPoint(location: ICoordinate): IGeometry {\r\n const result: IGeometry = {\r\n type: GeoJsonTypeEnum.Point,\r\n coordinates: [location.longitude, location.latitude]\r\n }\r\n return result;\r\n }\r\n\r\n public static GetGeoJsonLine(locations: ICoordinate[]): IGeometry {\r\n const result: IGeometry = {\r\n type: GeoJsonTypeEnum.LineString,\r\n coordinates: locations.map((item) => [item.longitude, item.latitude])\r\n }\r\n return result;\r\n }\r\n\r\n\r\n public static BingGeometryToGeoJson(geometry: Microsoft.Maps.IPrimitive): Geometry | undefined {\r\n if (geometry instanceof Microsoft.Maps.Pushpin) {\r\n const location = geometry.getLocation();\r\n const g = new Geometry(GeoJsonTypeEnum.Point, [location.longitude, location.latitude])\r\n return g;\r\n }\r\n if (geometry instanceof Microsoft.Maps.Polyline) {\r\n const locations = geometry.getLocations();\r\n const g = new Geometry(GeoJsonTypeEnum.LineString, locations.map(item => [item.longitude, item.latitude]))\r\n return g;\r\n }\r\n if (geometry instanceof Microsoft.Maps.Polygon) {\r\n const locations = geometry.getLocations();\r\n const g = new Geometry(GeoJsonTypeEnum.Polygon, locations.map(item => [item.longitude, item.latitude]))\r\n return g;\r\n }\r\n return undefined;\r\n }\r\n\r\n private static GetPoint(coordinates: number[], metadata?: IGeoJsonProperties, defaultProperties?: IGeoJsonProperties): Microsoft.Maps.IPrimitive {\r\n\r\n let metadataResult: IGeoJsonProperties = {};\r\n\r\n if (defaultProperties) {\r\n metadataResult = { ...defaultProperties }\r\n }\r\n\r\n if (metadata) {\r\n metadataResult = { ...metadataResult, ...metadata}\r\n }\r\n\r\n const location = new Microsoft.Maps.Location(coordinates[1], coordinates[0]);\r\n const g = new Microsoft.Maps.Pushpin(location);\r\n const options:any = {};\r\n if (metadataResult[\"color\"]) {\r\n options.color = metadataResult[\"color\"];\r\n }\r\n if (metadataResult[\"icon\"]) {\r\n options.color = metadataResult[\"icon\"];\r\n }\r\n if (metadataResult[\"anchor\"]) {\r\n options.color = metadataResult[\"anchor\"];\r\n }\r\n if (metadataResult[\"color\"]) {\r\n options.color = metadataResult[\"color\"];\r\n }\r\n if (metadataResult[\"subTitle\"]) {\r\n options.color = metadataResult[\"subTitle\"];\r\n }\r\n if (metadataResult[\"title\"]) {\r\n options.color = metadataResult[\"title\"];\r\n }\r\n if (metadataResult[\"text\"]) {\r\n options.color = metadataResult[\"text\"];\r\n }\r\n if (metadataResult[\"textOffset\"]) {\r\n options.color = metadataResult[\"textOffset\"];\r\n }\r\n g.setOptions(options);\r\n return (g as any as Microsoft.Maps.IPrimitive);\r\n }\r\n\r\n private static GetPolyline(coordinates: number[][], metadata?: IGeoJsonProperties, defaultProperties?: IGeoJsonProperties): Microsoft.Maps.IPrimitive {\r\n\r\n let metadataResult: IGeoJsonProperties = {};\r\n\r\n if (defaultProperties) {\r\n metadataResult = { ...defaultProperties }\r\n }\r\n\r\n if (metadata) {\r\n metadataResult = { ...metadataResult, ...metadata }\r\n }\r\n\r\n const locations = coordinates.map(item => new Microsoft.Maps.Location(item[1], item[0]));\r\n const g = new Microsoft.Maps.Polyline(locations);\r\n \r\n const options: any = {};\r\n\r\n if (metadataResult[\"cursor\"]) {\r\n options.color = metadataResult[\"cursor\"];\r\n }\r\n if (metadataResult[\"strokeColor\"]) {\r\n options.color = metadataResult[\"strokeColor\"];\r\n }\r\n if (metadataResult[\"strokeDashArray\"]) {\r\n options.color = metadataResult[\"strokeDashArray\"];\r\n }\r\n if (metadataResult[\"strokeThickness\"]) {\r\n options.color = metadataResult[\"strokeThickness\"];\r\n }\r\n g.setOptions(options);\r\n\r\n return g as any as Microsoft.Maps.IPrimitive;\r\n }\r\n\r\n private static GetPolygon(coordinates: number[][], metadata?: IGeoJsonProperties, defaultProperties?: IGeoJsonProperties): Microsoft.Maps.IPrimitive {\r\n let metadataResult: IGeoJsonProperties = {};\r\n\r\n if (defaultProperties) {\r\n metadataResult = { ...defaultProperties }\r\n }\r\n\r\n if (metadata) {\r\n metadataResult = { ...metadataResult, ...metadata }\r\n }\r\n\r\n const locations = coordinates.map(item => new Microsoft.Maps.Location(item[1], item[0]));\r\n const g = new Microsoft.Maps.Polygon(locations);\r\n const options: any = {};\r\n if (metadataResult[\"cursor\"]) {\r\n options.color = metadataResult[\"cursor\"];\r\n }\r\n if (metadataResult[\"fillColor\"]) {\r\n options.color = metadataResult[\"fillColor\"];\r\n }\r\n if (metadataResult[\"strokeColor\"]) {\r\n options.color = metadataResult[\"strokeColor\"];\r\n }\r\n if (metadataResult[\"strokeDashArray\"]) {\r\n options.color = metadataResult[\"strokeDashArray\"];\r\n }\r\n if (metadataResult[\"strokeThickness\"]) {\r\n options.color = metadataResult[\"strokeThickness\"];\r\n }\r\n g.setOptions(options);\r\n\r\n return (g as any as Microsoft.Maps.IPrimitive);\r\n }\r\n\r\n public static GeoJsonToBingGeometry(geometry: Geometry, metadata: any,defaultProperties?: IGeoJsonFeatureCollectionProperties): Microsoft.Maps.IPrimitive | Microsoft.Maps.IPrimitive[] | undefined {\r\n if (geometry.type === GeoJsonTypeEnum.Point) {\r\n const g = Geometry.GetPoint(geometry.coordinates as number[], metadata, (defaultProperties ? defaultProperties.point : {}));\r\n return (g as Microsoft.Maps.IPrimitive);\r\n }\r\n\r\n if (geometry.type === GeoJsonTypeEnum.LineString) {\r\n if (Array.isArray(geometry.coordinates)) {\r\n\r\n\r\n const coordinates = geometry.coordinates as number[][];\r\n const g = Geometry.GetPolyline(coordinates, metadata, (defaultProperties ? defaultProperties.polyline : {}));\r\n return g;\r\n }\r\n }\r\n\r\n if (geometry.type === GeoJsonTypeEnum.Polygon) {\r\n if (Array.isArray(geometry.coordinates)) {\r\n const coordinates = geometry.coordinates as number[][][];\r\n const g = Geometry.GetPolygon(coordinates[0], metadata, (defaultProperties ? defaultProperties.polygone : {}));\r\n return g;\r\n }\r\n }\r\n\r\n if (geometry.type === GeoJsonTypeEnum.MultiPoint) {\r\n const result: Microsoft.Maps.IPrimitive[] = [];\r\n const coordinates = geometry.coordinates as number[][];\r\n for (let i = 0; i < coordinates.length; i++) {\r\n const g = Geometry.GetPoint(coordinates[i], metadata, (defaultProperties ? defaultProperties.point : {}));\r\n result.push(g);\r\n }\r\n return result;\r\n }\r\n\r\n if (geometry.type === GeoJsonTypeEnum.MultiPolygon) {\r\n const result: Microsoft.Maps.IPrimitive[] = [];\r\n const coordinates = geometry.coordinates as number[][][];\r\n for (let i = 0; i < coordinates.length; i++) {\r\n const g = Geometry.GetPolygon(coordinates[i], metadata, (defaultProperties ? defaultProperties.polygone : {}));\r\n result.push(g);\r\n }\r\n return result;\r\n }\r\n\r\n if (geometry.type === GeoJsonTypeEnum.MultiLineString) {\r\n const result: Microsoft.Maps.IPrimitive[] = [];\r\n const coordinates = geometry.coordinates as number[][][];\r\n for (let i = 0; i < coordinates.length; i++) {\r\n const g = Geometry.GetPolyline(coordinates[i], metadata, (defaultProperties ? defaultProperties.polyline : {}));\r\n result.push(g);\r\n }\r\n return result;\r\n }\r\n return undefined;\r\n }\r\n\r\n constructor(type: GeoJsonTypeEnum, coordinates: GeometryCoordinate[] | GeometryCoordinate) {\r\n this.type = type;\r\n this.coordinates = coordinates;\r\n }\r\n\r\n}\r\n\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.earth = {\r\n get_polygon_centroid: function (pts) {\r\n var first = pts[0], last = pts[pts.length - 1];\r\n if (first.longitude != last.longitude || first.latitude != last.latitude)\r\n pts.push(first);\r\n var twicearea = 0, x = 0, y = 0, nPts = pts.length, p1, p2, f;\r\n for (var i = 0, j = nPts - 1; i < nPts; j = i++) {\r\n p1 = pts[i];\r\n p2 = pts[j];\r\n f = (p1.latitude - first.latitude) * (p2.longitude - first.longitude) - (p2.latitude - first.latitude) * (p1.longitude - first.longitude);\r\n twicearea += f;\r\n x += (p1.longitude + p2.longitude - 2 * first.longitude) * f;\r\n y += (p1.latitude + p2.latitude - 2 * first.latitude) * f;\r\n }\r\n f = twicearea * 3;\r\n return { longitude: x / f + first.longitude, latitude: y / f + first.latitude, elevation: 0 };\r\n }\r\n};\r\n//# sourceMappingURL=earthMath.js.map","import * as React from 'react';\r\nimport { Editor } from '@tinymce/tinymce-react';\r\nimport { PrimaryButton, Stack, DefaultButton } from '@fluentui/react';\r\nimport { MutableRefObject } from 'react';\r\n\r\ninterface ITextEditorProps {\r\n text: string;\r\n saveText: (text: string) => void;\r\n close: () => void;\r\n}\r\n\r\nexport const TextEditor: React.FC = (props) => {\r\n const editorRef = React.useRef(null);\r\n\r\n const save = () => {\r\n if (editorRef && editorRef.current) {\r\n const editor = editorRef.current as any;\r\n props.saveText(editor.getContent());\r\n }\r\n };\r\n\r\n React.useEffect(() => {\r\n \r\n });\r\n\r\n\r\n return (<> {\r\n if (editorRef != null) {\r\n editorRef.current = editor;\r\n }\r\n }\r\n }\r\n initialValue={props.text}\r\n init={{\r\n height: 600,\r\n menubar: false,\r\n plugins: [\r\n 'advlist autolink lists link image charmap print preview anchor',\r\n 'searchreplace visualblocks code fullscreen',\r\n 'insertdatetime media table paste code help wordcount'\r\n ],\r\n toolbar: 'undo redo | formatselect | ' +\r\n 'bold italic backcolor forecolor | alignleft aligncenter ' +\r\n 'alignright alignjustify | bullist numlist outdent indent | ' +\r\n 'removeformat | help',\r\n content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'\r\n }}\r\n />\r\n \r\n save()}>Uložit\r\n Zavřít\r\n \r\n \r\n );\r\n}","\"use strict\";\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar constants = require(\"./constants\");\r\nvar initZadostState = {\r\n zadost: undefined,\r\n krok: 1,\r\n working: false\r\n};\r\nexports.ZadostReducer = function (state, action) {\r\n if (state === void 0) { state = initZadostState; }\r\n switch (action.type) {\r\n case constants.SET_ZADOST_KROK:\r\n return __assign(__assign({}, state), { krok: action.krok });\r\n default:\r\n return state;\r\n }\r\n};\r\n//# sourceMappingURL=reducer.js.map","\"use strict\";\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar constants = require(\"./constants\");\r\nvar initUserState = {\r\n isAuthenticated: false\r\n};\r\nexports.AuthReducer = function (state, action) {\r\n if (state === void 0) { state = initUserState; }\r\n var _a;\r\n switch (action.type) {\r\n case constants.SET_USER:\r\n return __assign(__assign({}, state), { user: action.user, isAuthenticated: (((_a = action.user) === null || _a === void 0 ? void 0 : _a.token) ? true : false) });\r\n default:\r\n return state;\r\n }\r\n};\r\n//# sourceMappingURL=reducer.js.map","\"use strict\";\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar axios_1 = require(\"axios\");\r\n//const ruialUrl = \"https://dream2.poda.cz/\";\r\nvar RuianApi = /** @class */ (function () {\r\n function RuianApi(ruianUrl) {\r\n this._ruianUrl = ruianUrl;\r\n }\r\n RuianApi.prototype.setUrl = function (url) {\r\n this._ruianUrl = url;\r\n };\r\n RuianApi.prototype.getAddressSugestion = function (text) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(text.length > 2)) return [3 /*break*/, 4];\r\n text = encodeURIComponent(text.replace(\"/\", \" \"));\r\n url = \"/api/Ruian/SeachAddress/\" + text;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data.data.map(function (item, index) {\r\n var val = {\r\n bestView: \"\",\r\n type: item.type,\r\n displayValue: item.name,\r\n key: index,\r\n description: item.description,\r\n location: item.location,\r\n searchValue: \"\",\r\n tag: item\r\n };\r\n return val;\r\n });\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_1 = _a.sent();\r\n return [2 /*return*/, []];\r\n case 4: return [2 /*return*/, []];\r\n }\r\n });\r\n });\r\n };\r\n RuianApi.prototype.getKatastrSugestion = function (text) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_2;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(text.length > 2)) return [3 /*break*/, 4];\r\n url = \"/api/Ruian/SeachKatastr\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, { text: text })];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data.data.map(function (item, index) {\r\n var val = {\r\n bestView: \"\",\r\n type: \"Obec\",\r\n displayValue: item.nazev,\r\n key: index,\r\n description: item.obec,\r\n searchValue: \"\",\r\n location: \"\",\r\n tag: item\r\n };\r\n return val;\r\n });\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_2 = _a.sent();\r\n return [2 /*return*/, []];\r\n case 4: return [2 /*return*/, []];\r\n }\r\n });\r\n });\r\n };\r\n RuianApi.prototype.getKatastrDetail = function (kod) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, message_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/Ruian/KatastrDetail/\" + kod;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n response = _a.sent();\r\n return [2 /*return*/, response.data.data];\r\n case 3:\r\n message_1 = _a.sent();\r\n console.log(message_1);\r\n return [2 /*return*/, undefined];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n RuianApi.prototype.getParcelSugestion = function (katastrKod, text) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_3;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(text.length > 0)) return [3 /*break*/, 4];\r\n url = \"/api/Ruian/SeachParcels?katastrKod=\" + katastrKod;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, { text: text })];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data.data.map(function (item, index) {\r\n var val = {\r\n bestView: \"\",\r\n type: \"Katastr\",\r\n displayValue: item.kmenoveCislo + (item.pododdeleniCisla != 0 ? \"/\" + item.pododdeleniCisla : \"\"),\r\n key: index,\r\n description: item.katastralniUzemi + \" \",\r\n searchValue: \"\",\r\n location: \"\",\r\n tag: item\r\n };\r\n return val;\r\n });\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_3 = _a.sent();\r\n return [2 /*return*/, []];\r\n case 4: return [2 /*return*/, []];\r\n }\r\n });\r\n });\r\n };\r\n RuianApi.prototype.getParcelaDetail = function (id) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, message_2;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/Ruian/ParcelaDetail/\" + id;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n response = _a.sent();\r\n return [2 /*return*/, response.data.data];\r\n case 3:\r\n message_2 = _a.sent();\r\n console.log(message_2);\r\n return [2 /*return*/, undefined];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n RuianApi.prototype.getParcelByLocation = function (location) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, data, message_3;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/Ruian/GetParcelByLoation?latitude=\" + location.latitude + \"&longitude=\" + location.longitude;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n response = _a.sent();\r\n data = response.data.data;\r\n return [2 /*return*/, data];\r\n case 3:\r\n message_3 = _a.sent();\r\n console.log(message_3);\r\n return [2 /*return*/, undefined];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n RuianApi.prototype.getStreetDetail = function (id) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, street, message_4;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/Ruian/StreetDetail/\" + id;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n response = _a.sent();\r\n street = response.data.data;\r\n return [2 /*return*/, street];\r\n case 3:\r\n message_4 = _a.sent();\r\n console.log(message_4);\r\n return [2 /*return*/, undefined];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n return RuianApi;\r\n}());\r\nexports.RuianApi = RuianApi;\r\n//# sourceMappingURL=RuianApi.js.map","\"use strict\";\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar axios_1 = require(\"axios\");\r\nvar ZadostApi = /** @class */ (function () {\r\n function ZadostApi() {\r\n }\r\n ZadostApi.prototype.saveZadost = function (zadost) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadost/Save\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, zadost)];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data;\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_1 = _a.sent();\r\n if (exception_1.response.data) {\r\n return [2 /*return*/, exception_1.data];\r\n }\r\n throw exception_1;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadostApi.prototype.getZadost = function (guid, id) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_2;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadost/Details/\" + id + \"?guid=\" + guid;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data;\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_2 = _a.sent();\r\n if (exception_2.response.data) {\r\n return [2 /*return*/, exception_2.response.data];\r\n }\r\n throw exception_2;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadostApi.prototype.zadaniSetZadano = function (guid, id) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_3;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadost/ZadaniSetZadano?id=\" + id + \"&guid=\" + guid;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url)];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data;\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_3 = _a.sent();\r\n if (exception_3.response.data) {\r\n return [2 /*return*/, false];\r\n }\r\n throw exception_3;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadostApi.prototype.getZadostList = function (filter) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_4;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadost/filter\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, filter)];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data;\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_4 = _a.sent();\r\n if (exception_4.response.data) {\r\n return [2 /*return*/, exception_4.data];\r\n }\r\n throw exception_4;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n return ZadostApi;\r\n}());\r\nexports.ZadostApi = ZadostApi;\r\n//# sourceMappingURL=ZadostApi.js.map","\"use strict\";\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar axios_1 = require(\"axios\");\r\nvar UserApi = /** @class */ (function () {\r\n function UserApi() {\r\n }\r\n UserApi.prototype.getUserDetail = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/user/GetUserInfo\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data;\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_1 = _a.sent();\r\n throw exception_1;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n return UserApi;\r\n}());\r\nexports.UserApi = UserApi;\r\n//# sourceMappingURL=UserApi.js.map","\"use strict\";\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar axios_1 = require(\"axios\");\r\nvar IResult_1 = require(\"../Types/IResult\");\r\nvar VyjadreniApi = /** @class */ (function () {\r\n function VyjadreniApi() {\r\n }\r\n VyjadreniApi.prototype.saveVyjadreni = function (vyjadreni) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/vyjadreni/saveVyjadreni\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, vyjadreni)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_1 = _a.sent();\r\n console.log(exception_1.response.data);\r\n if (exception_1 && exception_1.response.data) {\r\n return [2 /*return*/, exception_1.response.data];\r\n }\r\n else {\r\n throw exception_1;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.getOblasti = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_2;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/vyjadreni/GetOblasti\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_2 = _a.sent();\r\n console.log(exception_2.response.data);\r\n if (exception_2 && exception_2.response.data) {\r\n return [2 /*return*/, exception_2.response.data];\r\n }\r\n else {\r\n throw exception_2;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.getVyjadreni = function (vyjadreniId, guid) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_3;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/vyjadreni/Detail/\" + vyjadreniId;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_3 = _a.sent();\r\n console.log(exception_3.response.data);\r\n if (exception_3 && exception_3.response.data) {\r\n return [2 /*return*/, exception_3.response.data];\r\n }\r\n else {\r\n throw exception_3;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.getVyjadreniText = function (id) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_4;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/vyjadreni/GetVyjadreniText/\" + id;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_4 = _a.sent();\r\n console.log(exception_4.response.data);\r\n if (exception_4 && exception_4.response.data) {\r\n return [2 /*return*/, exception_4.response.data];\r\n }\r\n else {\r\n throw exception_4;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.saveVyjadreniText = function (id, text) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_5;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/vyjadreni/SaveVyjadreniText/\" + id;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, { text: text })];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_5 = _a.sent();\r\n console.log(exception_5.response.data);\r\n if (exception_5 && exception_5.response.data) {\r\n return [2 /*return*/, exception_5.response.data];\r\n }\r\n else {\r\n throw exception_5;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.getFiles = function (vyjadreniId) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_6;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/vyjadreni/GetFiles/\" + vyjadreniId;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_6 = _a.sent();\r\n if (exception_6 && exception_6.response.data) {\r\n return [2 /*return*/, exception_6.response.data];\r\n }\r\n else {\r\n throw exception_6;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.addFile = function (vyjadreniId, nazev, popis, typ, file, callback) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var data, config, result, exception_7;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n data = new FormData();\r\n data.append('vyjadreniId', vyjadreniId.toString());\r\n data.append('nazev', nazev);\r\n data.append('popis', popis);\r\n data.append('typ', typ.toString());\r\n data.append('file', file);\r\n config = {\r\n onUploadProgress: function (progess) {\r\n var percentCompleted = Math.round((progess.loaded * 100) / progess.total);\r\n callback && callback(percentCompleted, file.name);\r\n }\r\n };\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(\"/api/vyjadreni/AddFile/\" + vyjadreniId, data, config)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_7 = _a.sent();\r\n if (exception_7 && exception_7.response.data) {\r\n return [2 /*return*/, exception_7.response.data];\r\n }\r\n else {\r\n throw exception_7;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.updateFile = function (vyjadreniId, fileId, nazev, popis, typ) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var result, exception_8;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, , 3]);\r\n return [4 /*yield*/, axios_1.default.post(\"/api/vyjadreni/UpdateFile/\" + vyjadreniId, {\r\n fileId: fileId,\r\n nazev: nazev,\r\n popis: popis,\r\n typ: typ\r\n })];\r\n case 1:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 2:\r\n exception_8 = _a.sent();\r\n if (exception_8 && exception_8.response.data) {\r\n return [2 /*return*/, exception_8.response.data];\r\n }\r\n else {\r\n throw exception_8;\r\n }\r\n return [3 /*break*/, 3];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.deleteFile = function (vyjadreniId, fileId) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var result, exception_9;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, , 3]);\r\n return [4 /*yield*/, axios_1.default.delete(\"/api/vyjadreni/DeleteFile/\" + vyjadreniId + \"?fileId=\" + fileId)];\r\n case 1:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 2:\r\n exception_9 = _a.sent();\r\n if (exception_9 && exception_9.response && exception_9.response.data) {\r\n return [2 /*return*/, exception_9.response.data];\r\n }\r\n else {\r\n throw exception_9;\r\n }\r\n return [3 /*break*/, 3];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n VyjadreniApi.prototype.getFile = function (vyjadreniId, fileId) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, contentHeaderArray, fileName, filenameString, contentType, blob, exception_10;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/vyjadreni/GetFile/\" + vyjadreniId + \"?fileId=\" + fileId;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.request({ url: url, method: 'GET', responseType: 'blob' })];\r\n case 2:\r\n result = _a.sent();\r\n contentHeaderArray = result.headers['content-disposition'].split(';');\r\n fileName = \"\";\r\n filenameString = contentHeaderArray.find(function (item) { return item.trim().startsWith('filename='); });\r\n if (filenameString) {\r\n fileName = filenameString.split('filename=')[1];\r\n }\r\n contentType = result.headers['content-type'];\r\n blob = new Blob([result.data], { type: contentType });\r\n return [2 /*return*/, IResult_1.Result.ok({ blob: blob, contentType: contentType, fileName: fileName })];\r\n case 3:\r\n exception_10 = _a.sent();\r\n if (exception_10 && exception_10.response && exception_10.response.data) {\r\n return [2 /*return*/, exception_10.response.data];\r\n }\r\n else {\r\n throw exception_10;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n return VyjadreniApi;\r\n}());\r\nexports.VyjadreniApi = VyjadreniApi;\r\n//# sourceMappingURL=VyjadreniApi.js.map","\"use strict\";\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar axios_1 = require(\"axios\");\r\nvar IResult_1 = require(\"../Types/IResult\");\r\nvar ZadaniApi = /** @class */ (function () {\r\n function ZadaniApi() {\r\n }\r\n ZadaniApi.prototype.saveUpresneniZadani = function (zadani) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, response, result, exception_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadani/Save\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, zadani)];\r\n case 2:\r\n response = _a.sent();\r\n result = response.data;\r\n return [2 /*return*/, result];\r\n case 3:\r\n exception_1 = _a.sent();\r\n if (exception_1.data) {\r\n return [2 /*return*/, exception_1.data];\r\n }\r\n throw exception_1;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.uploadPriloha = function (zadostId, guid, zadaniId, file, callback) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var data, config, result, exception_2;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n data = new FormData();\r\n data.append('zadostId', zadostId.toString());\r\n data.append('zadostGuid', guid);\r\n data.append('zadaniId', zadaniId.toString());\r\n data.append('file', file);\r\n config = {\r\n onUploadProgress: function (progess) {\r\n var percentCompleted = Math.round((progess.loaded * 100) / progess.total);\r\n callback && callback(percentCompleted, file.name);\r\n }\r\n };\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post('/api/zadani/UploadPriloha', data, config)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_2 = _a.sent();\r\n throw exception_2;\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.removePriloha = function (zadostId, zadaniId, zadostGuid, prilohaId) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, exception_3;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadani/DetelePriloha\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, {\r\n zadostId: zadostId,\r\n zadaniId: zadaniId,\r\n zadostGuid: zadostGuid,\r\n prilohaId: prilohaId\r\n })];\r\n case 2:\r\n _a.sent();\r\n return [2 /*return*/, true];\r\n case 3:\r\n exception_3 = _a.sent();\r\n console.log(exception_3.response.data);\r\n if (exception_3.data) {\r\n return [2 /*return*/, exception_3.data];\r\n }\r\n else {\r\n throw exception_3;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.savePolygone = function (zadostId, zadaniId, zadostGuid, polygones) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_4;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadani/SavePolygone\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, {\r\n zadostId: zadostId,\r\n zadaniId: zadaniId,\r\n zadostGuid: zadostGuid,\r\n polygones: polygones\r\n })];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_4 = _a.sent();\r\n console.log(exception_4.response.data);\r\n if (exception_4.data) {\r\n return [2 /*return*/, exception_4.data];\r\n }\r\n else {\r\n throw exception_4;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.saveParcels = function (zadostId, zadaniId, zadostGuid, parcely) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_5;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadani/SaveParcely\";\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.post(url, {\r\n zadostId: zadostId,\r\n zadaniId: zadaniId,\r\n zadostGuid: zadostGuid,\r\n parcely: parcely\r\n })];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_5 = _a.sent();\r\n console.log(exception_5.response.data);\r\n if (exception_5.data) {\r\n return [2 /*return*/, exception_5.data];\r\n }\r\n else {\r\n throw exception_5;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.getUpresneniZadani = function (zadostId, guid) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_6;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadani/Detail/\" + zadostId + \"?guid=\" + guid;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_6 = _a.sent();\r\n console.log(exception_6.response.data);\r\n if (exception_6 && exception_6.response.data) {\r\n return [2 /*return*/, exception_6.response.data];\r\n }\r\n else {\r\n throw exception_6;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.getFiles = function (zadostId, zadostGuid) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var result, exception_7;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, , 3]);\r\n return [4 /*yield*/, axios_1.default.get(\"/api/Zadani/GetZadaniPrilohy/\" + zadostId + \"?guid=\" + zadostGuid)];\r\n case 1:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 2:\r\n exception_7 = _a.sent();\r\n if (exception_7 && exception_7.response && exception_7.response.data) {\r\n return [2 /*return*/, exception_7.response.data];\r\n }\r\n else {\r\n throw exception_7;\r\n }\r\n return [3 /*break*/, 3];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.getFile = function (zadostId, fileId, zadostGuid) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, contentHeaderArray, fileName, filenameString, contentType, blob, exception_8;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, , 3]);\r\n url = \"/api/Zadani/GetZadaniPriloha/\" + zadostId + \"?guid=\" + zadostGuid + \"&fileId=\" + fileId;\r\n return [4 /*yield*/, axios_1.default.request({ url: url, method: 'GET', responseType: 'blob' })];\r\n case 1:\r\n result = _a.sent();\r\n contentHeaderArray = result.headers['content-disposition'].split(';');\r\n fileName = \"\";\r\n filenameString = contentHeaderArray.find(function (item) { return item.trim().startsWith('filename='); });\r\n if (filenameString) {\r\n fileName = filenameString.split('filename=')[1];\r\n }\r\n contentType = result.headers['content-type'];\r\n blob = new Blob([result.data], { type: contentType });\r\n return [2 /*return*/, IResult_1.Result.ok({ blob: blob, contentType: contentType, fileName: fileName })];\r\n case 2:\r\n exception_8 = _a.sent();\r\n if (exception_8 && exception_8.response && exception_8.response.data) {\r\n return [2 /*return*/, exception_8.response.data];\r\n }\r\n else {\r\n throw exception_8;\r\n }\r\n return [3 /*break*/, 3];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ZadaniApi.prototype.getZadaniShapes = function (zadostId) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var url, result, exception_9;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n url = \"/api/zadani/GetZadaniShapes/\" + zadostId;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios_1.default.get(url)];\r\n case 2:\r\n result = _a.sent();\r\n return [2 /*return*/, result.data];\r\n case 3:\r\n exception_9 = _a.sent();\r\n console.log(exception_9.response.data);\r\n if (exception_9 && exception_9.response.data) {\r\n return [2 /*return*/, IResult_1.Result.Fail(-1, exception_9.response.data)];\r\n }\r\n else {\r\n throw exception_9;\r\n }\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n return ZadaniApi;\r\n}());\r\nexports.ZadaniApi = ZadaniApi;\r\n//# sourceMappingURL=ZadaniApi.js.map","import { Stack, Label, DetailsListLayoutMode, MarqueeSelection, DetailsList, Selection, SelectionDirection, SelectionMode, IColumn, Link } from \"@fluentui/react\"\r\nimport * as React from \"react\";\r\nimport { IZadostListItem } from '../../../Types/Admin/ZadostListItem'\r\nimport { ZadostStavEnum } from \"../../../Types/Zadost/ZadostStavEnum\";\r\nimport { stavZadosti } from '../ZadostDetail/ZadostDetailForm';\r\n\r\n\r\n\r\n\r\ninterface IZadostListFormProps {\r\n onSelectZadost: (zadost?: IZadostListItem) => void;\r\n zadosti?: IZadostListItem[]\r\n}\r\n\r\nconst _columns = [\r\n { key: 'id', name: 'Id', fieldName: 'id', minWidth: 60, maxWidth: 60, isResizable: true },\r\n { key: 'datum', name: 'Datum', fieldName: 'datum', minWidth: 60, maxWidth: 60, isResizable: true },\r\n { key: 'firma', name: 'Firma', fieldName: 'firma', minWidth: 60, maxWidth: 300, isResizable: true },\r\n { key: 'kontakt', name: 'Kontakt', fieldName: 'kontakt', minWidth: 60, maxWidth: 300, isResizable: true },\r\n { key: 'stavId', name: 'Stav', fieldName: 'stavId', minWidth: 100, maxWidth: 200, isResizable: true },\r\n { key: 'vyjadreniId', name: 'Vyjadření', fieldName: 'vyjadreniId', minWidth: 100, maxWidth: 200, isResizable: true },\r\n];\r\n\r\nexport const ZadostListForm: React.FC = (props) => {\r\n \r\n const [selectionState] = React.useState(new Selection({\r\n onSelectionChanged: () => {\r\n const s = selectionState.getSelection();\r\n if (s && s.length === 1) {\r\n props.onSelectZadost(s[0] as IZadostListItem);\r\n }\r\n else {\r\n props.onSelectZadost(undefined); \r\n }\r\n }\r\n }));\r\n\r\n const formatDate = (date: string) => {\r\n var parts = date.split(\"-\")\r\n var datum = parts[2].split(\"T\")[0] + \".\" + parts[1] + \".\" + parts[0];\r\n return datum;\r\n }\r\n\r\n const renderItemColumn = (item: IZadostListItem, index?: number, column?: IColumn) => {\r\n if (index != undefined && column != undefined) {\r\n const fieldContent = item[column.fieldName as keyof IZadostListItem];\r\n switch (column.key) { \r\n case 'vyjadreniId':\r\n return {fieldContent};\r\n case 'stavId':\r\n return {stavZadosti[fieldContent as number]};\r\n case 'datum':\r\n return {formatDate(fieldContent as string)}\r\n default:\r\n return {fieldContent};\r\n }\r\n }\r\n else {\r\n return (
)\r\n }\r\n }\r\n\r\n\r\n\r\n return ( \r\n \r\n {props.zadosti?\r\n \r\n \r\n : null}\r\n );\r\n}","import { Stack, Checkbox, ComboBox, IComboBoxStyles, IComboBoxOption, IComboBox, PrimaryButton, TextField, Dropdown, IDropdownOption } from \"@fluentui/react\"\r\nimport { IZadostFilter } from \"../../../Types/Admin/IZadostFilter\";\r\nimport * as React from \"react\";\r\n\r\ninterface IZadostListFilterFormProps {\r\n onFilterChanged: (filtr: IZadostFilter) => void;\r\n filter: IZadostFilter;\r\n}\r\nconst duvodZadostiOptions: IComboBoxOption[] = [\r\n { key: '', text: 'Nerozhoduje' },\r\n { key: 'B', text: 'Informace o existenci a poloze vedení' },\r\n { key: 'C', text: 'Územní souhlas, územní rozhodnutí' },\r\n { key: 'D', text: 'Stavební povolení nebo sloučené územní a stavební řízení' },\r\n { key: 'E', text: 'Ohlášení stavby' },\r\n { key: 'G', text: 'Změna užívání stavby' },\r\n { key: 'H', text: 'Havárie' },\r\n { key: 'J', text: 'Jiné (s textovým polem pro manuální vypsání účelu)' },\r\n];\r\n\r\nconst ucelStavbyOptions: IComboBoxOption[] = [\r\n { key: '', text: 'Nerozhoduje' },\r\n { key: 'B', text: 'Bytové domy' },\r\n { key: 'C', text: 'Rodinné domy, garáže' },\r\n { key: 'D', text: 'Administrativní budovy' },\r\n { key: 'E', text: 'Inženýrské sítě' },\r\n { key: 'G', text: 'Průmyslové zony' },\r\n { key: 'H', text: 'Drobná stavební činnost' },\r\n { key: 'I', text: 'Pozemní komunikace' },\r\n { key: 'J', text: 'Výsadba zeleně' },\r\n { key: 'J1', text: 'Zepmní práce, teréní úpravy' },\r\n { key: 'J2', text: 'Oplocení' }\r\n];\r\n\r\nexport const ZadostListFilterForm: React.FC = (props) => {\r\n\r\n const [filter, setFilter] = React.useState(props.filter);\r\n \r\n const onChange = (ev?: React.FormEvent, checked?: boolean) => {\r\n \r\n setFilter({ ...filter, nevyrizene: checked ? true : false });\r\n };\r\n\r\n const textChanged = (event: React.FormEvent, newValue?: string) => {\r\n setFilter({ ...filter, text: newValue });\r\n }\r\n const duvodZadostiOnChage = (event: React.FormEvent, item: IDropdownOption | undefined): void => {\r\n \r\n setFilter({ ...filter, duvodZadosti: item ? item.key.toString() : \"\" });\r\n }\r\n const UcelStavbyOnChaged = (event: React.FormEvent, item: IDropdownOption | undefined): void => { \r\n setFilter({ ...filter, ucelStavby: item ? item.key.toString() : \"\" });\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n\r\n { props.onFilterChanged(filter) }}>Vyhledej\r\n );\r\n}","import * as React from 'react'\r\nimport { IZadost } from '../../../Types/Zadost/IZadost';\r\nimport { IZadostListItem } from '../../../Types/Admin/ZadostListItem';\r\nimport { Zadost } from '../../../Types/Zadost/Zadost';\r\n\r\nvar Microsoft: any = window.Microsoft;\r\n\r\ninterface IZadostiMapFormProps {\r\n onSelectZadost: (zadost?: IZadostListItem) => void;\r\n zadosti?: IZadostListItem[],\r\n mapZoom: number,\r\n wmsUrl: string,\r\n}\r\ninterface IZadostiMapFormState {\r\n}\r\n\r\nexport class ZadostiMapForm extends React.Component\r\n{\r\n private map: Microsoft.Maps.Map | undefined;\r\n private layer: Microsoft.Maps.Layer | undefined; \r\n\r\n constructor(props: IZadostiMapFormProps) {\r\n super(props);\r\n \r\n }\r\n\r\n mapclick(e: any) {\r\n var point = new Microsoft.Maps.Point(e.getX(), e.getY());\r\n if (e.primitive.metadata.zadost) {\r\n \r\n this.props.onSelectZadost(e.primitive.metadata.zadost);\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n Microsoft = window.Microsoft;\r\n var mapReference: string = '#mapa';\r\n this.map = new Microsoft.Maps.Map(mapReference, {\r\n credentials: \"AuwVkZ9Hc2pmQ3iTCOwpcDZlY6DQI0I5MxEuPpZE68p--J-MxWGib3C_9YX7JXi2\",\r\n mapTypeId: Microsoft.Maps.MapTypeId.aerial, \r\n });\r\n if (this.map) { \r\n const config =\r\n {\r\n mercator: new Microsoft.Maps.TileSource({\r\n uriConstructor: `${this.props.wmsUrl}/wms/GetImageQuadKey?quadKey={quadkey}&wmsId=1`,\r\n minZoom: 13,\r\n maxZoom: 22,\r\n })\r\n };\r\n this.layer = new Microsoft.Maps.Layer();\r\n if (this.layer) {\r\n this.map.layers.insert(this.layer);\r\n }\r\n\r\n var mapLayer = new Microsoft.Maps.TileLayer(config);\r\n this.map.layers.insert(mapLayer);\r\n if (this.props.zadosti) {\r\n this.renderZadosti(this.props.zadosti);\r\n }\r\n Microsoft.Maps.Events.addHandler(this.layer, 'click', this.mapclick.bind(this));\r\n }\r\n }\r\n\r\n componentDidUpdate(prevProps: IZadostiMapFormProps) {\r\n if (this.props.zadosti && this.props.zadosti != prevProps.zadosti) {\r\n this.renderZadosti(this.props.zadosti)\r\n }\r\n }\r\n\r\n private renderZadosti(zadosti: IZadostListItem[]) {\r\n if (this.layer) {\r\n this.layer.clear();\r\n const pins: Microsoft.Maps.Pushpin[] = [];\r\n\r\n for (let i = 0; i < zadosti.length; i++) {\r\n var pin = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(zadosti[i].location.latitude, zadosti[i].location.longitude), {\r\n color: '#106ebe'\r\n });\r\n pin.metadata = { zadost: zadosti[i] }\r\n pins.push(pin);\r\n }\r\n this.layer.setPrimitives(pins);\r\n }\r\n }\r\n\r\n\r\n render() {\r\n return
\r\n
\r\n
\r\n }\r\n\r\n}","import { Stack, Separator, ChoiceGroup, IChoiceGroupOption } from \"@fluentui/react\"\r\nimport * as React from \"react\";\r\nimport { ZadostListForm } from \"./ZadostListForm\";\r\nimport { ZadostListFilterForm } from \"./ZadostListFilterForm\";\r\nimport { useEffect } from \"react\";\r\nimport { IZadostListItem } from \"../../../Types/Admin/ZadostListItem\";\r\nimport { IZadostApi } from \"../../../Services/IZadostApi\";\r\nimport { IZadostFilter } from \"../../../Types/Admin/IZadostFilter\";\r\nimport { IApiError } from \"../../../Types/IApiError\";\r\nimport { ZadostiMapForm } from './ZadostiMapForm';\r\n\r\ninterface IZadostListProps {\r\n onSelectZadost: (zadost?: IZadostListItem) => void;\r\n zadostApi: IZadostApi;\r\n}\r\n\r\nexport const ZadostList: React.FC = (props) => {\r\n\r\n const [filter, setFilter] = React.useState({ nevyrizene: true, duvodZadosti: \"\", ucelStavby:\"\",text:\"\" });\r\n const [zadosti,setZadosti] = React.useState ();\r\n const [viewType, setViewType] = React.useState(\"list\");\r\n const getData = async () => {\r\n var zadosti = await props.zadostApi.getZadostList(filter);\r\n console.log(zadosti);\r\n if (!(zadosti as IApiError).messageId) {\r\n setZadosti(zadosti as IZadostListItem[]);\r\n }\r\n else {\r\n /*ERROR*/ \r\n console.log(zadosti);\r\n }\r\n }\r\n useEffect(() => {\r\n document.title = `Správa žádostí`;\r\n getData();\r\n }, [filter]);\r\n\r\n const filterChaged = (filter: IZadostFilter) => {\r\n setFilter({ ...filter });\r\n }\r\n const viewChanged = (ev?: React.FormEvent, option?: IChoiceGroupOption) => {\r\n if (option) {\r\n setViewType(option.key);\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n {(viewType === \"list\" ?\r\n \r\n :\r\n )}\r\n\r\n );\r\n}","import * as React from 'react';\r\nimport { Stack, IconButton } from '@fluentui/react';\r\nimport SearchAutocomplete from '../../basic/SearchAutocomplete';\r\nimport { ISuggestionItem } from '../../basic/AutocompleteTypes';\r\n\r\ninterface ISearchPanelProps {\r\n adresaSearch: (text: string) => Promise,\r\n katastrSearch: (text: string) => Promise,\r\n parcelaSearch: (text: string) => Promise,\r\n\r\n adresaSeleted: (item: ISuggestionItem) => void\r\n katastrSeleted: (item: ISuggestionItem) => void\r\n parcelaSeleted: (item: ISuggestionItem) => void\r\n\r\n adresaCleared: () => void\r\n katastrCleared: () => void\r\n parcelaCleared: () => void\r\n\r\n parcelaClearFilter: () => void\r\n parcelaFiltrInfo: string\r\n\r\n showHelp: () => void;\r\n\r\n}\r\n\r\nexport const SearchPanel: React.FC = (props) => {\r\n\r\n return (\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n ","import * as React from 'react';\r\nimport { IIconProps,IColumn, Selection, Panel, MarqueeSelection, DetailsList, ActionButton, Separator, Text, Label, Stack, DefaultButton, DetailsListLayoutMode } from '@fluentui/react';\r\nimport { IZadaniObjekt } from '../../../Types/IZadaniObjekt';\r\nimport { RuianInterfaceTypeEnum } from '../../../Types/Ruian/RuianInterfaceTypeEnum';\r\nimport { IParcela } from '../../../Types/Ruian/IParcela';\r\n\r\ninterface InfoPanelZadaniObjektyProps {\r\n items?: IZadaniObjekt[];\r\n active?: IZadaniObjekt;\r\n selectionPanelIsOpen: boolean;\r\n selectedItems?: IZadaniObjekt[];\r\n\r\n addToItems:(item?: IZadaniObjekt)=> void;\r\n setSelected: (item?: IZadaniObjekt[]) => void;\r\n removeSelected: (items?: IZadaniObjekt[]) => void;\r\n closePanel: () => void;\r\n\r\n}\r\n\r\ninterface InfoPanelZadaniObjektyState {\r\n\r\n}\r\n\r\nconst Delete: IIconProps = { iconName: 'Delete' };\r\n\r\n\r\nexport class InfoPanelZadaniObjekty extends React.Component\r\n{\r\n private _selection: Selection;\r\n private _columns: IColumn[];\r\n\r\n constructor(props: InfoPanelZadaniObjektyProps) {\r\n super(props);\r\n\r\n\r\n this._selection = new Selection({\r\n onSelectionChanged: () => this._getSelectionDetails(),\r\n });\r\n\r\n this._columns = [\r\n { key: 'column1', name: 'Typ', fieldName: 'discriminator', minWidth: 100, maxWidth: 200, isResizable: true },\r\n { key: 'column2', name: 'Popis', fieldName: 'title', minWidth: 100, maxWidth: 200, isResizable: true },\r\n ];\r\n }\r\n\r\n private _getSelectionDetails() {\r\n const selection = this._selection.getSelection() as IZadaniObjekt[];\r\n this.props.setSelected(selection);\r\n console.log(selection);\r\n }\r\n\r\n getDruhCislovaniKodText(kod: number): string {\r\n switch (kod) {\r\n case 1: return \"stavení parcela\"\r\n case 2: return \"pozemková parcela\"\r\n default: return \"neznámý typ\"\r\n }\r\n }\r\n\r\n\r\n renderParcelaJSX(): JSX.Element | null {\r\n if (this.props.active && this.props.active.discriminator === RuianInterfaceTypeEnum.Parcela) {\r\n const data = this.props.active.data as IParcela;\r\n\r\n //Kontrola za už je objekt přidaný nebo ne\r\n var addbuttonDisable = false; \r\n if (this.props.items) {\r\n for (var i = 0; i < this.props.items.length; i++) {\r\n if (this.props.items[i].discriminator === RuianInterfaceTypeEnum.Parcela) {\r\n if (this.props.items[i] && this.props.items[i].key == this.props.active.key) {\r\n addbuttonDisable = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return (\r\n \r\n {this.getDruhCislovaniKodText(data.druhCislovaniKod) + \" \" + data.kmenoveCislo + (data.pododdeleniCisla ? \"/\" + data.pododdeleniCisla.toString() : \"\")} \r\n {data.katastralniUzemi} \r\n \r\n {\r\n this.props.addToItems(this.props.active); \r\n }}\r\n />\r\n \r\n )\r\n }\r\n else\r\n return null;\r\n }\r\n\r\n renderPolygonJSX(): JSX.Element | null {\r\n if (this.props.active && this.props.active.discriminator === RuianInterfaceTypeEnum.Polygone) {\r\n const data = this.props.active.polygon;\r\n\r\n var addbuttonDisable = false;\r\n if (this.props.items) {\r\n for (var i = 0; i < this.props.items.length; i++) {\r\n if (JSON.stringify(this.props.items[i].key) == this.props.active.key) {\r\n addbuttonDisable = true;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return (\r\n \r\n {this.props.active.title} \r\n \r\n {\r\n this.props.addToItems(this.props.active);\r\n }}\r\n />\r\n \r\n )\r\n }\r\n else\r\n return null;\r\n }\r\n\r\n private _onItemInvoked = (item: IZadaniObjekt): void => {\r\n alert(`Item invoked: ${item.discriminator}`);\r\n };\r\n\r\n private _getKey(item: any, index?: number): string {\r\n return item.key;\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n
\r\n {this.renderParcelaJSX()}\r\n {this.renderPolygonJSX()}\r\n
\r\n \r\n

Parcely / polygony pro vyjádření

\r\n\r\n 0)} checked={false}\r\n onClick={() => {\r\n if (this.props.selectedItems) {\r\n this.props.removeSelected(this.props.selectedItems);\r\n }\r\n }} />\r\n \r\n \r\n \r\n\r\n\r\n \r\n );\r\n }\r\n}","import { FunctionComponent } from \"react\";\r\nimport { Text,Selection, Stack, Panel, Separator, TextField, ComboBox, SearchBox, KeyCodes, MarqueeSelection, DetailsList, DetailsListLayoutMode, IColumn, ICssInput, IconButton, IIconProps, TooltipHost, ITooltipHostStyles, Label, Button, DefaultButton, ActionButton, TeachingBubble, IButtonProps, PrimaryButton } from \"@fluentui/react\";\r\nimport * as React from \"react\";\r\n\r\nimport { IParcela } from \"../../../Types/Ruian/IParcela\";\r\nimport { IAdresa } from \"../../../Types/Ruian/IAdresa\";\r\nimport { IKatastr } from \"../../../Types/Ruian/IKatastr\";\r\n\r\nimport { IAppStore } from \"../../../store/AppStore\";\r\n\r\nimport { ISuggestionItem } from '../../basic/AutocompleteTypes'\r\nimport { ICoordinate } from \"../../../Types/ICoordinate\";\r\n\r\nimport { connect } from \"react-redux\";\r\nimport { ThunkDispatch } from \"redux-thunk\";\r\nimport { AnyAction } from \"redux\";\r\nimport { addUzemi } from \"../../../store/zadost/actions\";\r\nimport { SearchPanel } from \"./SearchPanel\";\r\nimport { IRuianApi } from \"../../../Services/IRuianApi\";\r\nimport { Map, mapStates } from \"./Map\";\r\nimport { IConfiguration } from \"../../../Types/IConfiguration\";\r\nimport { IZadaniObjekt } from '../../../Types/IZadaniObjekt';\r\nimport { RuianInterfaceTypeEnum } from \"../../../Types/Ruian/RuianInterfaceTypeEnum\";\r\nimport { InfoPanelZadaniObjekty } from \"./InfoPanelZadaniObjekty\";\r\nimport { IPolygone } from \"../../../Types/IPolygone\";\r\n\r\n\r\nexport interface IZajmoveUzemiProps {\r\n back: () => void;\r\n configuration: IConfiguration,\r\n parcely: IParcela[];\r\n polygones: IPolygone[];\r\n saveUzemi: (parcely: IParcela[], polygone: IPolygone[]) => void;\r\n ruianApi: IRuianApi\r\n}\r\n\r\n\r\nexport interface IZajmoveUzemiState {\r\n adresa?: IAdresa;\r\n katastr?: IKatastr;\r\n\r\n /**\r\n * Režim mapy\r\n * */\r\n mapState: mapStates;\r\n\r\n /**\r\n * Aktuálně zadávaný objekt. \r\n * Vyhledaná adresa, parcela, katastrální úřad\r\n * */\r\n active?: IZadaniObjekt;\r\n\r\n /**\r\n * Příznak zda je otevřený panel s seznamem zadaných ojektů\r\n * \r\n * */\r\n selectionPanelIsOpen: boolean;\r\n\r\n /*\r\n * Všechny objekty zadané ve zadání žádosti vyjádření\r\n * */\r\n items: IZadaniObjekt[];\r\n\r\n /*\r\n * Vybrané objekty v listboxu\r\n * */\r\n selectedItems?: IZadaniObjekt[];\r\n\r\n mapZoom: number;\r\n mapCenter: ICoordinate;\r\n\r\n toggleTeachingBubbleVisible: number;\r\n isValid: boolean;\r\n}\r\n\r\nvar Microsoft: any = window.Microsoft;\r\nconst CheckList: IIconProps = { iconName: 'CheckList' };\r\nconst Section: IIconProps = { iconName: 'Section' };\r\n\r\nclass ZajmoveUzemiPage extends React.Component\r\n{\r\n\r\n hostStyles: Partial = { root: { display: 'inline-block' } };\r\n\r\n constructor(props: IZajmoveUzemiProps) {\r\n super(props);\r\n this.state = {\r\n isValid: false,\r\n selectionPanelIsOpen: false,\r\n items: [],\r\n mapState: mapStates.view,\r\n mapZoom: 15,\r\n toggleTeachingBubbleVisible: 0,\r\n mapCenter: { latitude: 49.71474327508265, longitude: 16.265422710391093,elevation:0}\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n Microsoft = window.Microsoft;\r\n console.log(\"componentDidMount\");\r\n const oblasti = this.loadConfiguration(this.props.parcely, this.props.polygones);\r\n this.setState({\r\n items: oblasti,\r\n selectionPanelIsOpen: oblasti.length > 0\r\n }, () => {\r\n if (this.state.items.length > 0)\r\n this.hideTeachingBubble();\r\n }); \r\n }\r\n\r\n private loadConfiguration(parcely: IParcela[], polygony: IPolygone[]) {\r\n console.log(\"loadConfiguration parcely:\" + parcely.length)\r\n console.log(\"loadConfiguration polygony:\" + polygony.length)\r\n\r\n const oblasti: IZadaniObjekt[] = [];\r\n if (parcely) {\r\n for (var i = 0; i < parcely.length; i++) {\r\n const data = parcely[i];\r\n const o: IZadaniObjekt = {\r\n key: data.id.toString(),\r\n discriminator: RuianInterfaceTypeEnum.Parcela,\r\n title: data.kmenoveCislo.toString() + (data.pododdeleniCisla ? \"/\" + data.pododdeleniCisla.toString() : \"\"),\r\n polygon: data.hranice,\r\n point: data.definicniBod,\r\n data: data\r\n };\r\n oblasti.push(o);\r\n }\r\n }\r\n if (polygony) {\r\n console.log(\"set state ZajmoveUzemiPage polygones:\" + this.props.polygones.length)\r\n for (var i = 0; i < polygony.length; i++) {\r\n const data = polygony[i];\r\n var exteriorRing = data.hranice.map((item: ICoordinate, index: number) => {\r\n const location = new Microsoft.Maps.Location(item.latitude, item.longitude);\r\n return location;\r\n });\r\n var p = new Microsoft.Maps.Polygon(exteriorRing, {\r\n fillColor: 'transparent',\r\n strokeColor: 'red',\r\n strokeThickness: 2,\r\n strokeDashArray: [1, 2],\r\n });\r\n const area = Microsoft.Maps.SpatialMath.Geometry.area(p, Microsoft.Maps.SpatialMath.AreaUnits.SquareMeters) as number;\r\n const o: IZadaniObjekt = {\r\n key: this.makeId(),\r\n discriminator: RuianInterfaceTypeEnum.Polygone,\r\n title: \"Polygon \" + (area).toFixed() + \" m2\",\r\n polygon: data.hranice,\r\n point: data.hranice[0],\r\n };\r\n oblasti.push(o);\r\n }\r\n }\r\n return oblasti;\r\n }\r\n\r\n componentDidUpdate(prevProps: IZajmoveUzemiProps, prevState: IZajmoveUzemiState) {\r\n if (this.props.parcely != prevProps.parcely || this.props.polygones != prevProps.polygones) { \r\n const oblasti = this.loadConfiguration(this.props.parcely, this.props.polygones);\r\n this.setState({\r\n items: oblasti,\r\n selectionPanelIsOpen: oblasti.length > 0\r\n }, () => {\r\n if (this.state.items.length > 0)\r\n this.hideTeachingBubble(); \r\n });\r\n }\r\n if (this.state.items != prevState.items) {\r\n this.setState({ isValid: this.state.items.length > 0 })\r\n }\r\n }\r\n\r\n componentWillUnmount() { \r\n }\r\n\r\n\r\n getDruhCislovaniKodText(kod: number): string {\r\n switch (kod) {\r\n case 1: return \"stavení parcela\"\r\n case 2: return \"pozemková parcela\"\r\n default: return \"neznámý typ\"\r\n }\r\n }\r\n\r\n /**\r\n * Vyhledá parcel podle souřadnic\r\n * @param location \r\n */\r\n async findParcelById(location: ICoordinate) {\r\n const parcel = await this.props.ruianApi.getParcelByLocation(location);\r\n if (parcel) {\r\n const parcela: IZadaniObjekt = {\r\n key: parcel.id.toString(),\r\n title: parcel.kmenoveCislo.toString() + (parcel.pododdeleniCisla ? \"/\" + parcel.pododdeleniCisla.toString() : \"\"),\r\n polygon: parcel.hranice,\r\n data: parcel,\r\n point: parcel.definicniBod,\r\n discriminator: RuianInterfaceTypeEnum.Parcela\r\n }\r\n this.setState({ active: parcela, selectionPanelIsOpen: true })\r\n }\r\n }\r\n\r\n async onSearchAddress(text: string): Promise {\r\n return await this.props.ruianApi.getAddressSugestion(text);\r\n }\r\n\r\n async onSearchKatastr(text: string): Promise {\r\n return await this.props.ruianApi.getKatastrSugestion(text);\r\n }\r\n\r\n async onSearchParcela(text: string): Promise {\r\n const katastrKod = (this.state.katastr ? this.state.katastr.kod : 0);\r\n return await this.props.ruianApi.getParcelSugestion(katastrKod,text);\r\n }\r\n\r\n /**\r\n * Nastaví zoom a střed mapy\r\n * @param coordinate\r\n * @param zoom\r\n */\r\n zoomMap(coordinate?: ICoordinate, zoom?: number)\r\n {\r\n if (coordinate)\r\n this.setState({ mapCenter: coordinate });\r\n if (zoom) {\r\n this.setState({ mapZoom: zoom });\r\n }\r\n }\r\n\r\n async GetUliceDetail(id: string) {\r\n console.log(\"ulice detail:\"+id);\r\n const ulice = await this.props.ruianApi.getStreetDetail(id);\r\n if (ulice) {\r\n if (ulice.definicniCara && ulice.definicniCara.length > 0) {\r\n this.zoomMap(ulice.definicniCara[0][0], 17);\r\n\r\n this.setState({\r\n adresa: {\r\n discriminator: RuianInterfaceTypeEnum.Adresa,\r\n id: ulice.id,\r\n name: ulice.name,\r\n type:\"Ulice\",\r\n kod: ulice.kod,\r\n description: \"\",\r\n location: ulice.definicniCara[0][0],\r\n definicniCara: ulice.definicniCara\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n async GetObecDetail(id: string) {\r\n\r\n } \r\n\r\n async katastrSelected(item: ISuggestionItem) {\r\n const katastr = await this.props.ruianApi.getKatastrDetail(item.tag.kod);\r\n this.setState({ katastr });\r\n if (katastr && katastr.definicniBod) {\r\n this.zoomMap(katastr.definicniBod, 12);\r\n }\r\n }\r\n\r\n async parcelaSelected(item: ISuggestionItem) {\r\n const parcel = await this.props.ruianApi.getParcelaDetail(item.tag.id)\r\n if (parcel) {\r\n const parcela: IZadaniObjekt = {\r\n key: parcel.id.toString(),\r\n title: parcel.kmenoveCislo.toString() + (parcel.pododdeleniCisla ? \"/\" + parcel.pododdeleniCisla.toString() : \"\"),\r\n polygon: parcel.hranice,\r\n data: parcel,\r\n point: parcel.definicniBod,\r\n discriminator: RuianInterfaceTypeEnum.Parcela\r\n }\r\n this.setState({ active: parcela, selectionPanelIsOpen: true },\r\n () => this.zoomMap(parcela.point, 18)\r\n );\r\n \r\n }\r\n }\r\n\r\n async addressSelected(item: ISuggestionItem) {\r\n const adresa: IAdresa = item.tag as IAdresa;\r\n const _this = this;\r\n _this.setState({ adresa: adresa }, () => { _this.zoomMap(adresa.location, 18); });\r\n }\r\n \r\n\r\n clearKatasr() {\r\n this.state.active &&\r\n this.state.active.discriminator === RuianInterfaceTypeEnum.Katastr &&\r\n this.setState({ active: undefined })\r\n }\r\n\r\n clearParcela() {\r\n this.state.active &&\r\n this.state.active.discriminator === RuianInterfaceTypeEnum.Parcela &&\r\n this.setState({ active: undefined })\r\n }\r\n\r\n clearAddresa() {\r\n this.state.active &&\r\n this.state.active.discriminator === RuianInterfaceTypeEnum.Adresa &&\r\n this.setState({ active: undefined })\r\n }\r\n\r\n hideTeachingBubble() {\r\n this.setState({ toggleTeachingBubbleVisible: -1 });\r\n }\r\n\r\n hideTeachingBubbleNextStep(step: number) {\r\n this.setState({ toggleTeachingBubbleVisible: step });\r\n }\r\n\r\n render() {\r\n\r\n var info = \"\";\r\n if (this.state.katastr) {\r\n info = \"katastr: \" + this.state.katastr?.nazev\r\n }\r\n const examplePrimaryButtonProps: IButtonProps = {\r\n children: 'Další typ',\r\n onClick: () => {\r\n this.hideTeachingBubbleNextStep(1);\r\n this.setState({ mapZoom: 17 })\r\n }\r\n };\r\n const TypMapaPrimaryButtonProps: IButtonProps = {\r\n children: 'Další typ',\r\n onClick: () => {\r\n this.hideTeachingBubbleNextStep(2); this.setState({ mapZoom: 17 })\r\n }\r\n };\r\n\r\n const exampleSecondaryButtonProps: IButtonProps = {\r\n children: 'Rozumím',\r\n onClick: this.hideTeachingBubble.bind(this),\r\n }\r\n\r\n \r\n\r\n const VyhledaniKatastraniUzemiPrimaryButtonProps: IButtonProps = {\r\n children: 'Další typ',\r\n onClick: () => {\r\n this.hideTeachingBubbleNextStep(3);\r\n }\r\n };\r\n\r\n\r\n\r\n return (\r\n \r\n { }}\r\n\r\n parcelaFiltrInfo={info}\r\n showHelp={() => this.setState({ toggleTeachingBubbleVisible:0 })}\r\n />\r\n \r\n
\r\n this.setState({ mapState: state })}\r\n setMapZoom={(zoom: number) => { this.setState({ mapZoom: zoom }) }}\r\n setActivePolygone={(polygone?: ICoordinate[]) => {\r\n if (polygone) {\r\n const newActive: IZadaniObjekt = {\r\n discriminator: RuianInterfaceTypeEnum.Polygone,\r\n key: this.makeId(),\r\n point: (polygone.length > 0 ? polygone[0] : { elevation: 0, latitude: 0, longitude: 0 }),\r\n title: \"\",\r\n polygon: polygone,\r\n }\r\n this.setState({ active: newActive, selectionPanelIsOpen: true })\r\n }\r\n }\r\n }\r\n />\r\n
\r\n {\r\n if (this.state.mapState === mapStates.view) {\r\n this.setState({ mapState: mapStates.newPolygon, active: undefined })\r\n }\r\n else { \r\n this.setState({ mapState: mapStates.view})\r\n }\r\n }} />\r\n { this.setState({ selectionPanelIsOpen: true }) }}\r\n\r\n />\r\n
\r\n
\r\n\r\n {\r\n this.setState({\r\n selectedItems: selected, active: (selected && selected.length == 1 ? { ...selected[0] } : undefined)\r\n });\r\n }}\r\n closePanel={() => { this.setState({ selectionPanelIsOpen: false }) }}\r\n addToItems={(item?: IZadaniObjekt) => {\r\n if (item) {\r\n this.setState({ items: [...this.state.items, { ...item }], active: undefined });\r\n }\r\n }}\r\n removeSelected={(items?: IZadaniObjekt[]) => {\r\n if (items) {\r\n const isActiveRemoved = items.map(item => { if (this.state.active && item.key === this.state.active.key) return item.key; });\r\n let keyFilter =items.map(item => { return item.key; });\r\n this.setState({\r\n items: this.state.items.filter((item) => !keyFilter.includes(item.key)),\r\n active: (isActiveRemoved.length > 0) ? undefined : this.state.active\r\n });\r\n }\r\n }}\r\n />\r\n \r\n this.props.back()} />\r\n \r\n \r\n\r\n {this.state.toggleTeachingBubbleVisible===0 &&\r\n (\r\n \r\n Pomocí tohoto nástroje můžete nakreslit polygon. Kreslení polygonu ukočíte kliknutí na počáteční bod.\r\n Polygon následně přidejte do zájmových oblastí tl. \"Přidat do výběru\" v pravo na panelu\r\n )\r\n }\r\n\r\n {this.state.toggleTeachingBubbleVisible === 1 &&\r\n (\r\n \r\n Po přiblížení mapy se zobrazí katastrální mapa. Klinkutím vyberte parcelu a přidejte do zájmových oblastí tl. \"Přidat do výběru\" v pravo na panelu\r\n \r\n )\r\n }\r\n\r\n {this.state.toggleTeachingBubbleVisible === 2 &&\r\n (\r\n \r\n Vyhledávat můžete podle adresy, katastrálního území a čísla parcely. Po vybrání výsledku se mapa přesune na vybrané souřadnice. \r\n )\r\n }\r\n\r\n {this.state.toggleTeachingBubbleVisible === 3 &&\r\n (\r\n \r\n Klinkutím na tuto ikonu zobrazíte panel s přehledem již zadaných míst. \r\n )\r\n }\r\n
\r\n );\r\n }\r\n\r\n makeId() {\r\n var result = '';\r\n var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\r\n var charactersLength = characters.length;\r\n for (var i = 0; i < 6; i++) {\r\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\r\n }\r\n return result;\r\n }\r\n\r\n saveData() {\r\n var data = [...this.state.items];\r\n var polygones: IPolygone[] = []\r\n var parcely: IParcela[] = []\r\n\r\n for (var i = 0; i < data.length; i++) {\r\n \r\n if (data[i].discriminator === RuianInterfaceTypeEnum.Parcela) {\r\n if (data[i].data) {\r\n parcely.push(data[i].data as IParcela);\r\n }\r\n }\r\n if (data[i].discriminator == RuianInterfaceTypeEnum.Polygone) {\r\n console.log(data[i]);\r\n if (data[i].polygon)\r\n {\r\n polygones.push({\r\n hranice: [...data[i].polygon as ICoordinate[]]\r\n });\r\n }\r\n }\r\n }\r\n this.props.saveUzemi(parcely, polygones);\r\n }\r\n\r\n}\r\n\r\n\r\nexport const StoreToZajmoveUzemiState = (state: IAppStore) => ({\r\n configuration: state.configuration.config\r\n});\r\n\r\nexport const StoreToZajmoveUzemiDispatchToProps = (dispatch: ThunkDispatch) => {\r\n return {\r\n };\r\n};\r\n\r\n\r\nexport default connect(StoreToZajmoveUzemiState, StoreToZajmoveUzemiDispatchToProps)(ZajmoveUzemiPage);\r\n\r\n\r\n\r\n\r\n\r\n","import * as React from \"react\";\r\nimport { Stack, TextField, ComboBox, IComboBoxOption, PrimaryButton, IconButton, ActionButton, IComboBox, DefaultButton } from \"@fluentui/react\"\r\nimport { IVyjadreniFile } from \"../../../Types/Admin/IVyjadreniFile\";\r\nimport { IVyjadreniPrilohaTypEnum } from \"../../../Types/Admin/IVyjadreniPrilohaTypEnum\";\r\nimport { isNumber } from \"util\";\r\n\r\ninterface IVyjadreniAddFileFormProps {\r\n file?: IVyjadreniFile,\r\n onSave: (id:number,nazev: string, popis: string, typ: IVyjadreniPrilohaTypEnum, file?: File) => void;\r\n onClose: () => void;\r\n}\r\n\r\nconst options: IComboBoxOption[] = [\r\n { key: \"0\", text: \"Vyjádření (PDF)\" },\r\n { key: \"1\", text: \"Mapa oblasti zájmu (obrázek jpg)\" },\r\n { key: \"2\", text: \"Mapa tras (obrázek jpg)\" },\r\n { key: \"3\", text: \"Mapa plánovaných tras (obrázek jpg)\" },\r\n { key: \"4\", text: \"Příloha emailu (jakýkoli soubor)\" }\r\n];\r\n\r\nexport const VyjadreniAddFileForm: React.FC = (props) => {\r\n const [id, setId] = React.useState(0);\r\n const [nazev, setNazev] = React.useState(\"\")\r\n const [popis, setPopis] = React.useState(\"\")\r\n const [typ, setTyp] = React.useState(0)\r\n const [file, setFile] = React.useState();\r\n const [fileName, setFileName] = React.useState(\"\");\r\n\r\n React.useEffect(() => {\r\n if (props.file) {\r\n setId(props.file.id);\r\n setNazev(props.file.nazev);\r\n setPopis(props.file.popis);\r\n setTyp(props.file.typ);\r\n }\r\n }, [props.file]);\r\n\r\n\r\n const onChange = async (event: React.ChangeEvent) => {\r\n if (event && event.target && event.target.files) {\r\n if (event.target.files.length === 1) {\r\n setFile(event.target.files[0]);\r\n setFileName(event.target.files[0].name);\r\n }\r\n }\r\n }\r\n\r\n const fileButtonClick = () => {\r\n if (document) {\r\n document.getElementById('hiddenFileInput')?.click();\r\n }\r\n }\r\n\r\n const fileTypeChanged = (event: React.FormEvent, option?: IComboBoxOption, index?: number, value?: string) => {\r\n\r\n if (option && option.key)\r\n setTyp(parseInt(option.key as string));\r\n }\r\n\r\n return (\r\n \r\n , newValue?: string) => setNazev(newValue ? newValue:\"\")} />\r\n , newValue?: string) => setPopis(newValue ? newValue : \"\")}/>\r\n \r\n \r\n {(id == 0 ?\r\n \r\n \r\n \r\n : null)}\r\n\r\n \r\n props.onSave(id,nazev,popis,typ,file)}>Uložit\r\n Zavřít\r\n \r\n )\r\n}","import * as React from \"react\";\r\nimport { IColumn, MarqueeSelection, DetailsList, SelectionMode, DetailsListLayoutMode, Stack, IconButton, Dialog, DialogType, DialogContent, DialogFooter, PrimaryButton, DefaultButton, TextField, Modal, getTheme, mergeStyleSets, FontWeights, Link, MessageBar, MessageBarType } from \"@fluentui/react\"\r\nimport { IVyjadreniFile } from \"../../../Types/Admin/IVyjadreniFile\";\r\nimport { IVyjadreniApi } from \"../../../Services/IVyjadreniApi\";\r\nimport { VyjadreniAddFileForm } from './VyjadreniAddFileForm'\r\nimport { IVyjadreni } from \"../../../Types/Admin/IVyjadreni\";\r\nimport { IVyjadreniPrilohaTypEnum } from \"../../../Types/Admin/IVyjadreniPrilohaTypEnum\";\r\nimport { IVyjadreniPrilohaStavEnum } from \"../../../Types/Admin/IVyjadreniPrilohaStavEnum\";\r\n\r\ninterface IVyjadreniDetailFileListProps {\r\n vyjadreniId: number;\r\n vyjadreniApi: IVyjadreniApi;\r\n readonly: boolean;\r\n}\r\n\r\nconst columns: IColumn[] = [\r\n {\r\n key: \"nazev\",\r\n name: \"Název\",\r\n fieldName: \"nazev\",\r\n minWidth: 200,\r\n },\r\n {\r\n key: \"typ\",\r\n name: \"Typ\",\r\n fieldName: \"typ\",\r\n minWidth: 150,\r\n },\r\n {\r\n key: 'editButton',\r\n name:'editButton',\r\n minWidth: 16,\r\n maxWidth: 16,\r\n isIconOnly:true\r\n }, \r\n {\r\n key: 'deleteButton',\r\n name: 'deleteButton',\r\n minWidth: 16,\r\n maxWidth: 16,\r\n isIconOnly: true\r\n },\r\n {\r\n key: 'downloadButton',\r\n name: 'downloadButton',\r\n minWidth: 16,\r\n maxWidth: 16,\r\n isIconOnly: true\r\n }\r\n\r\n];\r\n\r\nconst theme = getTheme();\r\nconst contentStyles = mergeStyleSets({\r\n container: {\r\n display: 'flex',\r\n flexFlow: 'column nowrap',\r\n alignItems: 'stretch',\r\n },\r\n header: [ \r\n theme.fonts.xLargePlus,\r\n {\r\n flex: '1 1 auto',\r\n borderTop: `4px solid ${theme.palette.themePrimary}`,\r\n color: theme.palette.neutralPrimary,\r\n display: 'flex',\r\n alignItems: 'center',\r\n fontWeight: FontWeights.semibold,\r\n padding: '12px 12px 14px 24px',\r\n },\r\n ],\r\n body: {\r\n flex: '4 4 auto',\r\n padding: '0 24px 24px 24px',\r\n overflowY: 'hidden',\r\n minWidth:400,\r\n selectors: {\r\n p:{ margin: '14px 0' },\r\n 'p:first-child': { marginTop: 0 },\r\n 'p:last-child': { marginBottom: 0 },\r\n },\r\n },\r\n});\r\n\r\n//this._selection = new Selection({\r\n// onSelectionChanged: () => {\r\n// this.setState({\r\n// selectionDetails: this._getSelectionDetails(),\r\n// });\r\n// },\r\n//});\r\n\r\nexport const VyjadreniDetailFileList: React.FC = (props) => {\r\n const [items, setItems] = React.useState([]);\r\n const [isEditOpen, setIsEditOpen] = React.useState(false);\r\n const [selectedFile, setSelectedFile] = React.useState();\r\n const [error, setError] = React.useState();\r\n\r\n const getData = async()=>\r\n {\r\n const vyjadreni = await props.vyjadreniApi.getFiles(props.vyjadreniId);\r\n if (vyjadreni.isSuccess && vyjadreni.data) {\r\n setItems(vyjadreni.data);\r\n }\r\n else {\r\n\r\n }\r\n }\r\n\r\n React.useEffect(() => {\r\n getData();\r\n }, [props.vyjadreniId]);\r\n\r\n\r\n const editFile = (item?: IVyjadreniFile) => {\r\n if (item) {\r\n setSelectedFile(item as IVyjadreniFile);\r\n setIsEditOpen(true);\r\n }\r\n };\r\n\r\n const deteleFile = async (item?: IVyjadreniFile) => {\r\n if (item) {\r\n const r = window.confirm(\"Opravdu chcete odstravit vybraný soubor?\");\r\n if (r) {\r\n const result = await props.vyjadreniApi.deleteFile(props.vyjadreniId, item.id);\r\n if (result.isSuccess) {\r\n await getData();\r\n setError(undefined)\r\n }\r\n else {\r\n setError(result.message);\r\n }\r\n }\r\n }\r\n }\r\n\r\n const downloadFile = async (item?: IVyjadreniFile) => {\r\n if (item) {\r\n const result = await props.vyjadreniApi.getFile(props.vyjadreniId, item.id);\r\n if (result.isSuccess) {\r\n const url = window.URL.createObjectURL(result.data.blob);\r\n const link = document.createElement('a');\r\n link.href = url;\r\n link.target = \"_blank\"\r\n link.download = result.data.fileName;\r\n link.click();\r\n link.remove();\r\n setError(undefined)\r\n }\r\n else {\r\n setError(result.message);\r\n }\r\n }\r\n }\r\n\r\n const _getKey = (item: any, index?: number): string =>{\r\n return item.key;\r\n }\r\n\r\n const _renderItemColumn = (item?: IVyjadreniFile, index?: number, column?: IColumn) =>{\r\n if (column && item) {\r\n const fieldContent = item[column.fieldName as keyof IVyjadreniFile] as string;\r\n \r\n switch (column.key) {\r\n case 'typ':\r\n switch (fieldContent as any as IVyjadreniPrilohaTypEnum) {\r\n case IVyjadreniPrilohaTypEnum.EmailPriloha: return \"Příloha emailu\"\r\n case IVyjadreniPrilohaTypEnum.OblastZajmu: return \"Mapa oblasti zájmu\"\r\n case IVyjadreniPrilohaTypEnum.TrasyNahled: return \"Mapa tras\"\r\n case IVyjadreniPrilohaTypEnum.TrasyNahledProjekt: return \"Mapa plánovaných tras\"\r\n case IVyjadreniPrilohaTypEnum.Vyjadreni: return \"Vyjaření\"\r\n default: return \"\"\r\n }\r\n case 'editButton':\r\n return (item.typ != IVyjadreniPrilohaTypEnum.Vyjadreni && item.typ != IVyjadreniPrilohaTypEnum.OblastZajmu ? editFile(item)}> : null)\r\n case 'downloadButton':\r\n return downloadFile(item)}>;\r\n case 'deleteButton':\r\n return (item.typ != IVyjadreniPrilohaTypEnum.Vyjadreni && item.typ != IVyjadreniPrilohaTypEnum.OblastZajmu ? deteleFile(item)}> : null)\r\n\r\n default:\r\n return {fieldContent};\r\n }\r\n }\r\n }\r\n\r\n const insertFile = async (vyjadreniId: number, nazev: string, popis: string, typ: IVyjadreniPrilohaTypEnum, file: File) => {\r\n const result = await props.vyjadreniApi.addFile(vyjadreniId, nazev, popis, typ, file);\r\n if (result.isSuccess) {\r\n await getData();\r\n setIsEditOpen(false);\r\n setError(undefined);\r\n }\r\n else {\r\n setIsEditOpen(false);\r\n setError(result.message);\r\n }\r\n }\r\n\r\n const updateFile = async (vyjadreniId:number,id: number, nazev: string, popis: string, typ: IVyjadreniPrilohaTypEnum) => {\r\n const result = await props.vyjadreniApi.updateFile(vyjadreniId, id, nazev, popis, typ)\r\n if (result.isSuccess) {\r\n await getData();\r\n setIsEditOpen(false);\r\n setError(undefined)\r\n }\r\n else {\r\n setIsEditOpen(false);\r\n setError(result.message);\r\n }\r\n }\r\n\r\n const saveFile = async (id: number, nazev: string, popis: string, typ: IVyjadreniPrilohaTypEnum, file?: File) => {\r\n if (id === 0 && file) {\r\n await insertFile(props.vyjadreniId, nazev, popis, typ, file); \r\n }\r\n else {\r\n await updateFile(props.vyjadreniId, id, nazev, popis, typ);\r\n }\r\n }\r\n\r\n const newFile = () => {\r\n const file: IVyjadreniFile = {\r\n vyjadresniId: props.vyjadreniId,\r\n id: 0,\r\n nazev: \"\",\r\n popis: \"\",\r\n stav: IVyjadreniPrilohaStavEnum.Rucne,\r\n typ: IVyjadreniPrilohaTypEnum.TrasyNahledProjekt\r\n }\r\n setSelectedFile(file);\r\n setIsEditOpen(true);\r\n }\r\n\r\n\r\n return (\r\n\r\n \r\n {(error ? setError(undefined)}\r\n dismissButtonAriaLabel=\"Close\">\r\n {error}\r\n : null)}\r\n {!props.readonly ? : null}\r\n\r\n \r\n \r\n setIsEditOpen(false) }\r\n isOpen={isEditOpen}\r\n containerClassName={contentStyles.container} >\r\n
ÚPRAVA SOUBORU
\r\n
\r\n \r\n {\r\n setIsEditOpen(false)\r\n }} />\r\n \r\n
\r\n \r\n
)\r\n}","import * as React from 'react'\r\nimport { Stack, TextField, Toggle, ComboBox, Checkbox, Link, PrimaryButton, Modal, IComboBoxOption, CheckBase, IComboBox } from '@fluentui/react';\r\nimport { useId, useBoolean } from '@fluentui/react-hooks';\r\nimport { TextEditor } from '../TextEditor';\r\nimport { IVyjadreniApi } from '../../../Services/IVyjadreniApi';\r\nimport { IZadostListItem } from '../../../Types/Admin/ZadostListItem';\r\nimport { IVyjadreni } from '../../../Types/Admin/IVyjadreni';\r\nimport { IApiError } from '../../../Types/IApiError';\r\nimport { IVyjadreniOblast } from '../../../Types/Admin/IVyjadreniOblast';\r\nimport { VyjadreniDetailFileList } from './VyjadreniDetailFileList';\r\nimport { isNumber } from 'util';\r\nimport { IUser } from '../../../Types/IUser';\r\n\r\ninterface IVyjadreniDetailFormProps {\r\n openTextEditor: (id: number) => void;\r\n vyjadreniApi: IVyjadreniApi;\r\n zadost: IZadostListItem;\r\n user: IUser | undefined\r\n}\r\n\r\nconst VyjadreniStavOptions: IComboBoxOption[] = [\r\n {\r\n key: 0, text: \"Nezpracovano\",\r\n },\r\n {\r\n key: 10, text: \"Data pripravena (optické trasy)\",\r\n },\r\n {\r\n key: 20, text: \"Náhled připraven\",\r\n },\r\n {\r\n key: 30, text: \"Kontrola\",\r\n },\r\n {\r\n key: 40, text: \"Kontrola provedena\",\r\n },\r\n {\r\n key: 50, text: \"Připraveno k odeslání\",\r\n },\r\n {\r\n key: 100, text: \"Dokončeno\",\r\n },\r\n]\r\n\r\nexport const VyjadreniDetailForm: React.FC = (props) => {\r\n\r\n const [vyjadreni, setVyjadreni] = React.useState()\r\n const [oblasti, setOblasti] = React.useState()\r\n\r\n const getData = async (id: number) => {\r\n const o = await props.vyjadreniApi.getOblasti();\r\n if (!(o as IApiError).messageId) {\r\n const options: IComboBoxOption[] = (o as IVyjadreniOblast[]).map(item => {\r\n return {\r\n key: item.id,\r\n text: item.nazev\r\n }\r\n })\r\n setOblasti(options);\r\n }\r\n\r\n const v = await props.vyjadreniApi.getVyjadreni(id, \"\");\r\n if (!(v as IApiError).messageId) {\r\n setVyjadreni(v as IVyjadreni);\r\n }\r\n \r\n }\r\n\r\n React.useEffect(() => {\r\n getData(props.zadost.vyjadreniId);\r\n console.log(props.user);\r\n }, [props.zadost]);\r\n\r\n const ExistujiciSiteChecked = (ev?: React.FormEvent, checked?: boolean) => {\r\n if (vyjadreni) {\r\n setVyjadreni({ ...vyjadreni, pritomnostSite: checked ? checked : false });\r\n }\r\n }\r\n\r\n const ProjektSiteChecked = (ev?: React.FormEvent, checked?: boolean) => {\r\n if (vyjadreni) {\r\n setVyjadreni({ ...vyjadreni, pritomnostProjektSite: checked ? checked : false });\r\n }\r\n }\r\n\r\n const ZapracovaneSEKChecked = (event: React.MouseEvent, checked?: boolean) => {\r\n if (vyjadreni) {\r\n setVyjadreni({ ...vyjadreni, zapracovanaSEK: checked ? checked : false });\r\n }\r\n }\r\n\r\n const OblastChanged = (event: React.FormEvent, option?: IComboBoxOption, index?: number, value?: string) => {\r\n if (option && vyjadreni && isNumber(option.key))\r\n {\r\n setVyjadreni({ ...vyjadreni, oblast: { ...vyjadreni.oblast, id: option.key, nazev: option.text } });\r\n }\r\n }\r\n\r\n const StavChanged=(event: React.FormEvent, option?: IComboBoxOption, index?: number, value?: string) => {\r\n if (option && vyjadreni && isNumber(option.key)) {\r\n setVyjadreni({ ...vyjadreni, stav: option.key });\r\n }\r\n }\r\n\r\n const PodaSiteChanged = (ev?: React.FormEvent, checked?: boolean) => {\r\n if (vyjadreni) {\r\n setVyjadreni({ ...vyjadreni, sitePoda: checked ? checked : false });\r\n }\r\n }\r\n\r\n const PodaVSBChanged = (ev?: React.FormEvent, checked?: boolean) => {\r\n if (vyjadreni) {\r\n setVyjadreni({ ...vyjadreni, siteVSB: checked ? checked : false });\r\n }\r\n }\r\n\r\n const readonly=(): boolean=>\r\n {\r\n if (props.user && props.user.role) {\r\n return props.user.role.indexOf(\"admin_write\") === -1\r\n }\r\n else {\r\n return true;\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {vyjadreni ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {!readonly() ? { props.vyjadreniApi.saveVyjadreni(vyjadreni) }} text=\"Ulož změny v nastavení\" /> : null}\r\n
\r\n \r\n
\r\n {!readonly() ? { props.openTextEditor(vyjadreni.id) }} text=\"Uprav text vyjádření\" /> : null}\r\n
\r\n : null}\r\n );\r\n}","// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport default function register () {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Lets check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl);\r\n } else {\r\n // Is not local host. Just register service worker\r\n registerValidSW(swUrl);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW (swUrl) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker (swUrl) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister () {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport { ConnectedRouter } from 'connected-react-router';\r\nimport { BrowserRouter, Routes } from 'react-router-dom';\r\nimport App from './App';\r\nimport registerServiceWorker from './registerServiceWorker';\r\nimport { configureStore } from './store/AppStore'\r\nimport { createBrowserHistory } from 'history';\r\nimport ConfigurationHoc from './Services/ConfigurationHOC';\r\n\r\n\r\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\r\nconst rootElement = document.getElementById('root');\r\n\r\nconst history = createBrowserHistory();\r\n\r\n// Get the application-wide store instance, prepopulating with state from the server where available.\r\nconst store = configureStore(history);\r\n\r\nfunction loadScript(url) {\r\n var script = document.createElement(\"script\");\r\n script.type = \"text/javascript\";\r\n script.async = true;\r\n script.defer = true;\r\n window.bingmapsCallback = function () {\r\n // alert(\"onload\");\r\n const Microsoft = window.Microsoft;\r\n Microsoft.Maps.loadModule(\"Microsoft.Maps.Clustering\");\r\n Microsoft.Maps.loadModule('Microsoft.Maps.GeoJson');\r\n Microsoft.Maps.loadModule(\"Microsoft.Maps.SpatialMath\");\r\n\r\n ReactDOM.render(\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n ,\r\n rootElement);\r\n\r\n };\r\n script.src = url;\r\n document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n}\r\n\r\nloadScript(\"https://www.bing.com/api/maps/mapcontrol?callback=bingmapsCallback\");\r\n//registerServiceWorker();\r\n\r\n","import * as React from 'react';\r\nimport { Selection, Text,Stack, TextField, Dropdown, Separator, ActionButton, MarqueeSelection, DetailsList, DetailsListLayoutMode, ComboBox, Checkbox, IComboBoxOption, IColumn, Icon, IDropdownOption, Toggle, ProgressIndicator } from '@fluentui/react';\r\nimport { getFileTypeIconProps, initializeFileTypeIcons } from '@uifabric/file-type-icons';\r\nimport { IPriloha } from '../../../Types/Zadost/IPriloha';\r\nimport { IUpresneniZadani } from '../../../Types/Zadost/IUpresneniZadani';\r\nimport { KeyValuePair } from '../../Validation';\r\n\r\ninitializeFileTypeIcons(undefined);\r\n\r\n\r\ninterface UpresneniZadostniFormProps {\r\n fileItems: IPriloha[];\r\n upresneni: IUpresneniZadani;\r\n uploading: boolean;\r\n validation: KeyValuePair;\r\n uploadFiles: (file: File[], callback: (progress: number, filename: string) => void) => void;\r\n deleteFiles: (files: IPriloha[]) => void;\r\n fieldChanged: (name: string, value: string | boolean) => void;\r\n disabled: boolean;\r\n\r\n}\r\n\r\nconst duvodZadostiOptions: IComboBoxOption[] = [\r\n { key: 'B', text: 'Informace o existenci a poloze vedení' },\r\n { key: 'C', text: 'Územní souhlas, územní rozhodnutí' },\r\n { key: 'D', text: 'Stavební povolení nebo sloučené územní a stavební řízení' },\r\n { key: 'E', text: 'Ohlášení stavby' },\r\n { key: 'G', text: 'Změna užívání stavby' },\r\n { key: 'H', text: 'Havárie' },\r\n { key: 'J', text: 'Jiné (s textovým polem pro manuální vypsání účelu)' },\r\n];\r\n\r\nconst ucelStavbyOptions: IComboBoxOption[] = [\r\n { key: 'B', text: 'Bytové domy' },\r\n { key: 'C', text: 'Rodinné domy, garáže' },\r\n { key: 'D', text: 'Administrativní budovy' },\r\n { key: 'E', text: 'Inženýrské sítě' },\r\n { key: 'G', text: 'Průmyslové zóny' },\r\n { key: 'H', text: 'Drobná stavební činnost' },\r\n { key: 'I', text: 'Pozemní komunikace' },\r\n { key: 'J', text: 'Výsadba zeleně' },\r\n { key: 'J1', text: 'Zemní práce, terenní' },\r\n { key: 'J2', text: 'Oplocení' }\r\n];\r\n\r\n\r\nconst columns = [\r\n { key: 'column0', name: '', fieldName: 'ext', minWidth: 50, maxWidth: 50, isResizable: true },\r\n { key: 'column1', name: 'Název', fieldName: 'nazev', minWidth: 100, isResizable: true },\r\n { key: 'column2', name: 'Velikost', fieldName: 'size', minWidth: 100, maxWidth: 150, isResizable: true },\r\n];\r\n\r\nexport const UpresneniZadostiForm: React.FC = (props) => {\r\n const [prilohySelected, setPrilohySelected] = React.useState([]);\r\n const [uploadProgress, setUploadProgress] = React.useState(0);\r\n const [uploadFileName, setUploadFileName] = React.useState(\"\");\r\n \r\n\r\n React.useEffect(() => {\r\n if (!props.uploading) {\r\n setUploadProgress(0);\r\n setUploadFileName(\"\");\r\n }\r\n }, [props.uploading]);\r\n\r\n const _renderItemColumn = (item?: IPriloha, index?: number, column?: IColumn) => {\r\n if (column && index != undefined && item) {\r\n const fieldContent = item[column.fieldName as keyof IPriloha] as string;\r\n\r\n switch (column.key) {\r\n case 'column0':\r\n return \r\n default:\r\n return {fieldContent};\r\n }\r\n }\r\n else {\r\n return null\r\n }\r\n }\r\n\r\n const _selection: Selection = new Selection({\r\n onSelectionChanged: () => setPrilohySelected(_selection.getSelection() as IPriloha[])\r\n });\r\n\r\n const fileButtonClick = () => {\r\n if (document) {\r\n document.getElementById('hiddenFileInput')?.click();\r\n }\r\n }\r\n\r\n const onChange = async (event: React.ChangeEvent) => {\r\n if (event && event.target && event.target.files) {\r\n const files = event.target.files;\r\n const newaFiles: File[] = []\r\n for (var i = 0; i < event.target.files.length; i++) {\r\n newaFiles.push(event.target.files[i]);\r\n }\r\n props.uploadFiles(newaFiles, (progress: number, filename: string) => {\r\n setUploadFileName(filename);\r\n setUploadProgress(progress)\r\n });\r\n }\r\n }\r\n\r\n const duvodZadostiOnChage = (event: React.FormEvent, item: IDropdownOption | undefined): void => {\r\n props.fieldChanged(\"duvodZadosti\", item ? item.key.toString() : \"\")\r\n }\r\n const UcelStavbyOnChaged = (event: React.FormEvent, item: IDropdownOption | undefined): void => {\r\n props.fieldChanged(\"ucelStavby\", item? item.key.toString():\"\")\r\n }\r\n console.log(props.validation);\r\n\r\n return (\r\n \r\n props.fieldChanged(\"nazevStavby\", value ? value : \"\")} />\r\n \r\n props.fieldChanged(\"doplnujiciInfo\", value ? value : \"\")} />\r\n\r\n \r\n\r\n \r\n\r\n Přílohy\r\n \r\n Můžete vložit tyto přílohy žádosti:\r\n
    \r\n
  • Koordinační situaci stavby se zakreslenou polohou Sítě elektronických komunikací (dále jen SEK) společnosti PODA a.s. (formát PDF, JPG) Pokud nemáte polohu SEK společnosti PODA a.s. zakreslenu, zadejte prosím jako Důvod Vyjádření \"Informace o poloze sítě\". Obdržíte Situační výkres s polohou SEK společnosti PODA
  • \r\n
  • Technickou zprávu, případně jiné dokumenty související s požadovanými podklady (formát DOC, DOCX).
  • \r\n
  • Nevložení potřebných podkladů, vložení podkladů v jiném než povoleném formátu a/nebo vložení neúplných, nečitelných či poškozených souborů zakládá společnosti PODA a.s. právo vyzvat žadatele k doplnění žádosti.
  • \r\n
\r\n
\r\n {(props.uploading ?\r\n \r\n : null)\r\n }\r\n\r\n \r\n \r\n Přidej soubor\r\n \r\n { props.deleteFiles(prilohySelected) }}>\r\n Odeber vybrané\r\n \r\n \r\n \r\n \r\n \r\n {\r\n props.fieldChanged(\"dgn\", checked ? checked:false)\r\n }}/>\r\n\r\n {\r\n props.fieldChanged(\"podminkyPripojeni\", checked ? checked : false)\r\n }}\r\n />\r\n
\r\n {\r\n props.fieldChanged(\"postou\", checked ? checked : false)\r\n }}\r\n />\r\n {props.upresneni.postou ?\r\n Zaslání bude účtováno dle platného ceníku\r\n : null}\r\n
\r\n
\r\n );\r\n}","import * as React from 'react'\r\nimport { UpresneniZadostiForm } from './UpresneniZadostiForm'\r\nimport { IPriloha } from '../../../Types/Zadost/IPriloha';\r\nimport { IUpresneniZadani } from '../../../Types/Zadost/IUpresneniZadani';\r\nimport { Stack, PrimaryButton, DefaultButton } from '@fluentui/react';\r\nimport { KeyValuePair, rebex, validate, checkAllRules, validateLasValues } from '../../Validation';\r\n\r\n\r\ninterface IUpresneniZadostniProps {\r\n upresneniZadosti: IUpresneniZadani,\r\n prilohy: IPriloha[]\r\n uploading: boolean;\r\n deleteFiles: (files: IPriloha[]) => void;\r\n uploadFiles: (file: File[], callback: (progress: number, fileName:string) => void) => void;\r\n\r\n updateUpresneniZadani: (data: IUpresneniZadani) => void;\r\n back: () => void;\r\n}\r\n\r\ninterface IUpresneniZadostniState { \r\n upresneniZadosti: IUpresneniZadani;\r\n validatition: KeyValuePair;\r\n isValid: boolean;\r\n}\r\n\r\nexport class UpresneniZadosti extends React.Component\r\n{\r\n constructor(props: IUpresneniZadostniProps) {\r\n super(props);\r\n this.state = {\r\n upresneniZadosti: {\r\n id: 0,\r\n zadostId: 0,\r\n nazevStavby: \"\",\r\n ucelStavby: \"\",\r\n dgn: false,\r\n podminkyPripojeni: false,\r\n duvodZadosti: \"\",\r\n doplnujiciInfo: \"\",\r\n postou:false\r\n },\r\n validatition: {\r\n \"duvodZadosti\": {\r\n required: true,\r\n lastValue: this.props.upresneniZadosti.duvodZadosti,\r\n validationError: \"Musíte vybrat důvod žádosti\",\r\n isValid: true,\r\n validated: false\r\n },\r\n \"ucelStavby\": {\r\n required: true,\r\n lastValue: this.props.upresneniZadosti.duvodZadosti,\r\n validationError: \"Musíte vybrat účel stavby\",\r\n isValid: true,\r\n validated: false\r\n }\r\n\r\n },\r\n isValid: false\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n this.setState({\r\n upresneniZadosti: { ...this.props.upresneniZadosti }\r\n });\r\n if (this.props.upresneniZadosti.duvodZadosti != \"\") {\r\n this.setState({\r\n validatition: {\r\n \"duvodZadosti\": {\r\n required: true,\r\n lastValue: this.props.upresneniZadosti.duvodZadosti,\r\n validationError: \"Musíte vybrat důvod žádosti\",\r\n isValid: true,\r\n validated: false\r\n }\r\n }\r\n }, () => {\r\n const Valid = validateLasValues(this.state.validatition);\r\n this.setState({\r\n validatition: Valid\r\n })\r\n });\r\n }\r\n }\r\n\r\n componentDidUpdate(prevProps: IUpresneniZadostniProps, prevState: IUpresneniZadostniState) {\r\n if (prevProps.upresneniZadosti != this.props.upresneniZadosti) {\r\n this.setState({ upresneniZadosti: { ...this.state.upresneniZadosti, id: this.props.upresneniZadosti.id} });\r\n }\r\n\r\n if (this.state.validatition != prevState.validatition) {\r\n let valid = checkAllRules(this.state.validatition);\r\n console.log(\"UpresneniZadosti: componentDidUpdate validatition changed:\" + valid)\r\n this.setState({ isValid: valid});\r\n }\r\n\r\n\r\n }\r\n\r\n fieldChangedBind = this.fieldChanged.bind(this);\r\n fieldChanged(name: string, value: string | boolean) {\r\n this.setState({\r\n upresneniZadosti: {\r\n ...this.state.upresneniZadosti, [name]: value\r\n },\r\n validatition: { ...this.state.validatition, [name]: validate(value.toString(), this.state.validatition[name]) }\r\n\r\n }, () => console.log(this.state.upresneniZadosti));\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n \r\n this.props.back()} />\r\n { \r\n this.props.updateUpresneniZadani(this.state.upresneniZadosti)\r\n }\r\n } />\r\n \r\n \r\n )\r\n }\r\n \r\n}","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar IZakaznikFormaEnum;\r\n(function (IZakaznikFormaEnum) {\r\n IZakaznikFormaEnum[IZakaznikFormaEnum[\"nezadano\"] = 0] = \"nezadano\";\r\n IZakaznikFormaEnum[IZakaznikFormaEnum[\"fyzickaOsoba\"] = 1] = \"fyzickaOsoba\";\r\n IZakaznikFormaEnum[IZakaznikFormaEnum[\"prvnickaOsoba\"] = 2] = \"prvnickaOsoba\";\r\n})(IZakaznikFormaEnum = exports.IZakaznikFormaEnum || (exports.IZakaznikFormaEnum = {}));\r\n//# sourceMappingURL=IZakaznikFormaEnum.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.ApplicationName = 'vyjadreni.poda.cz';\r\nexports.QueryParameterNames = {\r\n ReturnUrl: 'returnUrl',\r\n Message: 'message'\r\n};\r\nexports.LogoutActions = {\r\n LogoutCallback: 'logout-callback',\r\n Logout: 'logout',\r\n LoggedOut: 'logged-out'\r\n};\r\nexports.LoginActions = {\r\n Login: 'login',\r\n LoginCallback: 'login-callback',\r\n LoginFailed: 'login-failed',\r\n Profile: 'profile',\r\n Register: 'register'\r\n};\r\nvar prefix = '/authentication';\r\nexports.ApplicationPaths = {\r\n DefaultLoginRedirectPath: '/',\r\n ApiAuthorizationClientConfigurationUrl: \"/_configuration/\" + exports.ApplicationName,\r\n ApiAuthorizationPrefix: prefix,\r\n Login: prefix + \"/\" + exports.LoginActions.Login,\r\n LoginFailed: prefix + \"/\" + exports.LoginActions.LoginFailed,\r\n LoginCallback: prefix + \"/\" + exports.LoginActions.LoginCallback,\r\n Register: prefix + \"/\" + exports.LoginActions.Register,\r\n Profile: prefix + \"/\" + exports.LoginActions.Profile,\r\n LogOut: prefix + \"/\" + exports.LogoutActions.Logout,\r\n LoggedOut: prefix + \"/\" + exports.LogoutActions.LoggedOut,\r\n LogOutCallback: prefix + \"/\" + exports.LogoutActions.LogoutCallback,\r\n IdentityRegisterPath: '/Identity/Account/Register',\r\n IdentityManagePath: '/Identity/Account/Manage'\r\n};\r\n//# sourceMappingURL=ApiAuthorizationConstants.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar GeoJsonTypeEnum;\r\n(function (GeoJsonTypeEnum) {\r\n GeoJsonTypeEnum[\"FeatureCollection\"] = \"FeatureCollection\";\r\n GeoJsonTypeEnum[\"Feature\"] = \"Feature\";\r\n GeoJsonTypeEnum[\"Point\"] = \"Point\";\r\n GeoJsonTypeEnum[\"MultiPoint\"] = \"MultiPoint\";\r\n GeoJsonTypeEnum[\"LineString\"] = \"LineString\";\r\n GeoJsonTypeEnum[\"Polygon\"] = \"Polygon\";\r\n GeoJsonTypeEnum[\"MultiLineString\"] = \"MultiLineString\";\r\n GeoJsonTypeEnum[\"MultiPolygon\"] = \"MultiPolygon\";\r\n})(GeoJsonTypeEnum = exports.GeoJsonTypeEnum || (exports.GeoJsonTypeEnum = {}));\r\n//# sourceMappingURL=GeoJsonTypeEnum.js.map","\"use strict\";\r\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nvar __generator = (this && this.__generator) || function (thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n 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;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar oidc_client_1 = require(\"oidc-client\");\r\nvar ApiAuthorizationConstants_1 = require(\"./ApiAuthorizationConstants\");\r\nexports.AuthenticationResultStatus = {\r\n Redirect: 'redirect',\r\n Success: 'success',\r\n Fail: 'fail'\r\n};\r\nvar AuthorizeServiceResult = /** @class */ (function () {\r\n function AuthorizeServiceResult() {\r\n }\r\n return AuthorizeServiceResult;\r\n}());\r\nexports.AuthorizeServiceResult = AuthorizeServiceResult;\r\nvar AuthorizeService = /** @class */ (function () {\r\n function AuthorizeService() {\r\n this._nextSubscriptionId = 0;\r\n this._isAuthenticated = false;\r\n this._callbacks = [];\r\n // By default pop ups are disabled because they don't work properly on Edge.\r\n // If you want to enable pop up authentication simply set this flag to false.\r\n this._popUpDisabled = true;\r\n this.userManager = null;\r\n this._user = null;\r\n }\r\n AuthorizeService.prototype.isAuthenticated = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var user;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.getUser()];\r\n case 1:\r\n user = _a.sent();\r\n return [2 /*return*/, !!user];\r\n }\r\n });\r\n });\r\n };\r\n AuthorizeService.prototype.getUser = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var user;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (this._user && this._user.profile) {\r\n return [2 /*return*/, this._user.profile];\r\n }\r\n return [4 /*yield*/, this.ensureUserManagerInitialized()];\r\n case 1:\r\n _a.sent();\r\n if (!this.userManager) return [3 /*break*/, 3];\r\n return [4 /*yield*/, this.userManager.getUser()];\r\n case 2:\r\n user = _a.sent();\r\n return [2 /*return*/, user && user.profile];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AuthorizeService.prototype.getAccessToken = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var user;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.ensureUserManagerInitialized()];\r\n case 1:\r\n _a.sent();\r\n if (!this.userManager) return [3 /*break*/, 3];\r\n return [4 /*yield*/, this.userManager.getUser()];\r\n case 2:\r\n user = _a.sent();\r\n return [2 /*return*/, user && user.access_token];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n // We try to authenticate the user in three different ways:\r\n // 1) We try to see if we can authenticate the user silently. This happens\r\n // when the user is already logged in on the IdP and is done using a hidden iframe\r\n // on the client.\r\n // 2) We try to authenticate the user using a PopUp Window. This might fail if there is a\r\n // Pop-Up blocker or the user has disabled PopUps.\r\n // 3) If the two methods above fail, we redirect the browser to the IdP to perform a traditional\r\n // redirect flow.\r\n AuthorizeService.prototype.signIn = function (state) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var silentUser, silentError_1, popUpUser, popUpError_1, redirectError_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.ensureUserManagerInitialized()];\r\n case 1:\r\n _a.sent();\r\n _a.label = 2;\r\n case 2:\r\n _a.trys.push([2, 5, , 16]);\r\n if (!this.userManager) return [3 /*break*/, 4];\r\n return [4 /*yield*/, this.userManager.signinSilent(this.createArguments())];\r\n case 3:\r\n silentUser = _a.sent();\r\n this.updateState(silentUser);\r\n _a.label = 4;\r\n case 4: return [2 /*return*/, this.success(state)];\r\n case 5:\r\n silentError_1 = _a.sent();\r\n // User might not be authenticated, fallback to popup authentication\r\n console.log(\"Silent authentication error: \", silentError_1);\r\n _a.label = 6;\r\n case 6:\r\n _a.trys.push([6, 9, , 15]);\r\n if (this._popUpDisabled) {\r\n throw new Error('Popup disabled. Change \\'AuthorizeService.js:AuthorizeService._popupDisabled\\' to false to enable it.');\r\n }\r\n if (!this.userManager) return [3 /*break*/, 8];\r\n return [4 /*yield*/, this.userManager.signinPopup(this.createArguments())];\r\n case 7:\r\n popUpUser = _a.sent();\r\n this.updateState(popUpUser);\r\n _a.label = 8;\r\n case 8: return [2 /*return*/, this.success(state)];\r\n case 9:\r\n popUpError_1 = _a.sent();\r\n if (popUpError_1.message === \"Popup window closed\") {\r\n // The user explicitly cancelled the login action by closing an opened popup.\r\n return [2 /*return*/, this.error(\"The user closed the window.\")];\r\n }\r\n else if (!this._popUpDisabled) {\r\n console.log(\"Popup authentication error: \", popUpError_1);\r\n }\r\n _a.label = 10;\r\n case 10:\r\n _a.trys.push([10, 13, , 14]);\r\n if (!this.userManager) return [3 /*break*/, 12];\r\n return [4 /*yield*/, this.userManager.signinRedirect(this.createArguments(state))];\r\n case 11:\r\n _a.sent();\r\n _a.label = 12;\r\n case 12: return [2 /*return*/, this.redirect()];\r\n case 13:\r\n redirectError_1 = _a.sent();\r\n console.log(\"Redirect authentication error: \", redirectError_1);\r\n return [2 /*return*/, this.error(redirectError_1)];\r\n case 14: return [3 /*break*/, 15];\r\n case 15: return [3 /*break*/, 16];\r\n case 16: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AuthorizeService.prototype.completeSignIn = function (url) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var user, error_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 4, , 5]);\r\n return [4 /*yield*/, this.ensureUserManagerInitialized()];\r\n case 1:\r\n _a.sent();\r\n if (!this.userManager) return [3 /*break*/, 3];\r\n return [4 /*yield*/, this.userManager.signinCallback(url)];\r\n case 2:\r\n user = _a.sent();\r\n this.updateState(user);\r\n return [2 /*return*/, this.success(user && user.state)];\r\n case 3: return [2 /*return*/, this.success(null)];\r\n case 4:\r\n error_1 = _a.sent();\r\n console.log('There was an error signing in: ', error_1);\r\n return [2 /*return*/, this.error('There was an error signing in.')];\r\n case 5: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n // We try to sign out the user in two different ways:\r\n // 1) We try to do a sign-out using a PopUp Window. This might fail if there is a\r\n // Pop-Up blocker or the user has disabled PopUps.\r\n // 2) If the method above fails, we redirect the browser to the IdP to perform a traditional\r\n // post logout redirect flow.\r\n AuthorizeService.prototype.signOut = function (state) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var popupSignOutError_1, redirectSignOutError_1;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.ensureUserManagerInitialized()];\r\n case 1:\r\n _a.sent();\r\n _a.label = 2;\r\n case 2:\r\n _a.trys.push([2, 5, , 11]);\r\n if (this._popUpDisabled) {\r\n throw new Error('Popup disabled. Change \\'AuthorizeService.js:AuthorizeService._popupDisabled\\' to false to enable it.');\r\n }\r\n if (!this.userManager) return [3 /*break*/, 4];\r\n return [4 /*yield*/, this.userManager.signoutPopup(this.createArguments())];\r\n case 3:\r\n _a.sent();\r\n this.updateState(null);\r\n _a.label = 4;\r\n case 4: return [2 /*return*/, this.success(state)];\r\n case 5:\r\n popupSignOutError_1 = _a.sent();\r\n console.log(\"Popup signout error: \", popupSignOutError_1);\r\n _a.label = 6;\r\n case 6:\r\n _a.trys.push([6, 9, , 10]);\r\n if (!this.userManager) return [3 /*break*/, 8];\r\n return [4 /*yield*/, this.userManager.signoutRedirect(this.createArguments(state))];\r\n case 7:\r\n _a.sent();\r\n _a.label = 8;\r\n case 8: return [2 /*return*/, this.redirect()];\r\n case 9:\r\n redirectSignOutError_1 = _a.sent();\r\n console.log(\"Redirect signout error: \", redirectSignOutError_1);\r\n return [2 /*return*/, this.error(redirectSignOutError_1)];\r\n case 10: return [3 /*break*/, 11];\r\n case 11: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AuthorizeService.prototype.completeSignOut = function (url) {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var response, error_2;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, this.ensureUserManagerInitialized()];\r\n case 1:\r\n _a.sent();\r\n _a.label = 2;\r\n case 2:\r\n _a.trys.push([2, 5, , 6]);\r\n if (!this.userManager) return [3 /*break*/, 4];\r\n return [4 /*yield*/, this.userManager.signoutCallback(url)];\r\n case 3:\r\n response = _a.sent();\r\n this.updateState(null);\r\n return [2 /*return*/, this.success(response && response.state)];\r\n case 4: return [2 /*return*/, this.success(null)];\r\n case 5:\r\n error_2 = _a.sent();\r\n console.log(\"There was an error trying to log out '\" + error_2 + \"'.\");\r\n return [2 /*return*/, this.error(error_2)];\r\n case 6: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AuthorizeService.prototype.updateState = function (user) {\r\n this._user = (user ? user : null);\r\n this._isAuthenticated = !!this._user;\r\n this.notifySubscribers();\r\n };\r\n AuthorizeService.prototype.subscribe = function (callback) {\r\n this._callbacks.push({ callback: callback, subscription: this._nextSubscriptionId++ });\r\n return this._nextSubscriptionId - 1;\r\n };\r\n AuthorizeService.prototype.unsubscribe = function (subscriptionId) {\r\n var subscriptionIndex = this._callbacks\r\n .map(function (element, index) { return element.subscription === subscriptionId ? { found: true, index: index } : { found: false }; })\r\n .filter(function (element) { return element.found === true; });\r\n if (subscriptionIndex.length !== 1) {\r\n throw new Error(\"Found an invalid number of subscriptions \" + subscriptionIndex.length);\r\n }\r\n if (subscriptionIndex && subscriptionIndex[0].index) {\r\n this._callbacks.splice(subscriptionIndex[0].index, 1);\r\n }\r\n };\r\n AuthorizeService.prototype.notifySubscribers = function () {\r\n for (var i = 0; i < this._callbacks.length; i++) {\r\n var callback = this._callbacks[i].callback;\r\n callback();\r\n }\r\n };\r\n AuthorizeService.prototype.createArguments = function (state) {\r\n return { useReplaceToNavigate: true, data: state, };\r\n };\r\n AuthorizeService.prototype.error = function (message) {\r\n return { status: exports.AuthenticationResultStatus.Fail, message: message };\r\n };\r\n AuthorizeService.prototype.success = function (state) {\r\n return { status: exports.AuthenticationResultStatus.Success, state: state };\r\n };\r\n AuthorizeService.prototype.redirect = function () {\r\n return { status: exports.AuthenticationResultStatus.Redirect };\r\n };\r\n AuthorizeService.prototype.ensureUserManagerInitialized = function () {\r\n return __awaiter(this, void 0, void 0, function () {\r\n var response, settings;\r\n var _this = this;\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (this.userManager !== null) {\r\n return [2 /*return*/];\r\n }\r\n return [4 /*yield*/, fetch(ApiAuthorizationConstants_1.ApplicationPaths.ApiAuthorizationClientConfigurationUrl)];\r\n case 1:\r\n response = _a.sent();\r\n if (!response.ok) {\r\n throw new Error(\"Could not load settings for '\" + ApiAuthorizationConstants_1.ApplicationName + \"'\");\r\n }\r\n return [4 /*yield*/, response.json()];\r\n case 2:\r\n settings = _a.sent();\r\n settings.automaticSilentRenew = true;\r\n settings.includeIdTokenInSilentRenew = true;\r\n settings.userStore = new oidc_client_1.WebStorageStateStore({\r\n prefix: ApiAuthorizationConstants_1.ApplicationName\r\n });\r\n this.userManager = new oidc_client_1.UserManager(settings);\r\n this.userManager.events.addUserSignedOut(function () { return __awaiter(_this, void 0, void 0, function () {\r\n return __generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!this.userManager) return [3 /*break*/, 2];\r\n return [4 /*yield*/, this.userManager.removeUser()];\r\n case 1:\r\n _a.sent();\r\n this.updateState(null);\r\n _a.label = 2;\r\n case 2: return [2 /*return*/];\r\n }\r\n });\r\n }); });\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Object.defineProperty(AuthorizeService, \"instance\", {\r\n get: function () { return authService; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return AuthorizeService;\r\n}());\r\nexports.AuthorizeService = AuthorizeService;\r\nvar authService = new AuthorizeService();\r\nexports.default = authService;\r\n//# sourceMappingURL=AuthorizeService.js.map","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar IVyjadreniPrilohaTypEnum;\r\n(function (IVyjadreniPrilohaTypEnum) {\r\n IVyjadreniPrilohaTypEnum[IVyjadreniPrilohaTypEnum[\"Vyjadreni\"] = 0] = \"Vyjadreni\";\r\n IVyjadreniPrilohaTypEnum[IVyjadreniPrilohaTypEnum[\"OblastZajmu\"] = 1] = \"OblastZajmu\";\r\n IVyjadreniPrilohaTypEnum[IVyjadreniPrilohaTypEnum[\"TrasyNahled\"] = 2] = \"TrasyNahled\";\r\n IVyjadreniPrilohaTypEnum[IVyjadreniPrilohaTypEnum[\"TrasyNahledProjekt\"] = 3] = \"TrasyNahledProjekt\";\r\n IVyjadreniPrilohaTypEnum[IVyjadreniPrilohaTypEnum[\"EmailPriloha\"] = 4] = \"EmailPriloha\";\r\n})(IVyjadreniPrilohaTypEnum = exports.IVyjadreniPrilohaTypEnum || (exports.IVyjadreniPrilohaTypEnum = {}));\r\n//# sourceMappingURL=IVyjadreniPrilohaTypEnum.js.map"],"sourceRoot":""}