@vtx/ol-map 1.0.142 → 1.0.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/lib/_util/EventEmitter.js +0 -78
- package/lib/_util/EventEmitter.js.map +0 -1
- package/lib/_util/StyleCache.js +0 -46
- package/lib/_util/StyleCache.js.map +0 -1
- package/lib/_util/encryptParams.js +0 -60
- package/lib/_util/encryptParams.js.map +0 -1
- package/lib/_util/filterSpecialCharacters.js +0 -90
- package/lib/_util/filterSpecialCharacters.js.map +0 -1
- package/lib/_util/getComponentProps.js +0 -14
- package/lib/_util/getComponentProps.js.map +0 -1
- package/lib/_util/getCookie.js +0 -24
- package/lib/_util/getCookie.js.map +0 -1
- package/lib/_util/getDefaultMapInfo.js +0 -50
- package/lib/_util/getDefaultMapInfo.js.map +0 -1
- package/lib/_util/getSystemInfo.js +0 -26
- package/lib/_util/getSystemInfo.js.map +0 -1
- package/lib/_util/getToken.js +0 -27
- package/lib/_util/getToken.js.map +0 -1
- package/lib/_util/getUrlParam.js +0 -15
- package/lib/_util/getUrlParam.js.map +0 -1
- package/lib/_util/http.js +0 -176
- package/lib/_util/http.js.map +0 -1
- package/lib/_util/isFunction.js +0 -10
- package/lib/_util/isFunction.js.map +0 -1
- package/lib/_util/isObject.js +0 -10
- package/lib/_util/isObject.js.map +0 -1
- package/lib/_util/layer.js +0 -152
- package/lib/_util/layer.js.map +0 -1
- package/lib/_util/mapTool.js +0 -188
- package/lib/_util/mapTool.js.map +0 -1
- package/lib/_util/projzh/datum/bd-09.js +0 -44
- package/lib/_util/projzh/datum/bd-09.js.map +0 -1
- package/lib/_util/projzh/datum/gcj-02.js +0 -72
- package/lib/_util/projzh/datum/gcj-02.js.map +0 -1
- package/lib/_util/projzh/datum/index.js +0 -14
- package/lib/_util/projzh/datum/index.js.map +0 -1
- package/lib/_util/projzh/index.js +0 -40
- package/lib/_util/projzh/index.js.map +0 -1
- package/lib/_util/projzh/projection/baidu-mercator.js +0 -74
- package/lib/_util/projzh/projection/baidu-mercator.js.map +0 -1
- package/lib/_util/projzh/projection/index.js +0 -14
- package/lib/_util/projzh/projection/index.js.map +0 -1
- package/lib/_util/projzh/projection/spherical-mercator.js +0 -25
- package/lib/_util/projzh/projection/spherical-mercator.js.map +0 -1
- package/lib/_util/projzh/util.js +0 -27
- package/lib/_util/projzh/util.js.map +0 -1
- package/lib/_util/search.js +0 -129
- package/lib/_util/search.js.map +0 -1
- package/lib/_util/setCookie.js +0 -15
- package/lib/_util/setCookie.js.map +0 -1
- package/lib/_util/stringToFun.js +0 -25
- package/lib/_util/stringToFun.js.map +0 -1
- package/lib/_util/transform.js +0 -169
- package/lib/_util/transform.js.map +0 -1
- package/lib/_util/useColSize.js +0 -28
- package/lib/_util/useColSize.js.map +0 -1
- package/lib/_util/useInterval.js +0 -19
- package/lib/_util/useInterval.js.map +0 -1
- package/lib/_util/useSet.js +0 -44
- package/lib/_util/useSet.js.map +0 -1
- package/lib/analysis-layer/index.js +0 -449
- package/lib/analysis-layer/index.js.map +0 -1
- package/lib/analysis-layer/style/css.js +0 -2
- package/lib/analysis-layer/style/css.js.map +0 -1
- package/lib/analysis-layer/style/index.js +0 -2
- package/lib/analysis-layer/style/index.js.map +0 -1
- package/lib/assets/arrow.png +0 -0
- package/lib/assets/base-img-1.png +0 -0
- package/lib/assets/base-img-2.png +0 -0
- package/lib/assets/base-img-3.png +0 -0
- package/lib/assets/base-img-4.png +0 -0
- package/lib/assets/base-img-5.png +0 -0
- package/lib/assets/base-img-6.png +0 -0
- package/lib/assets/base-img.png +0 -0
- package/lib/assets/bz.png +0 -0
- package/lib/assets/img.png +0 -0
- package/lib/assets/kz.png +0 -0
- package/lib/assets/ll.png +0 -0
- package/lib/assets/location.png +0 -0
- package/lib/assets/noLocation.png +0 -0
- package/lib/assets/people.png +0 -0
- package/lib/assets/qd.png +0 -0
- package/lib/assets/sw.png +0 -0
- package/lib/assets/yl.png +0 -0
- package/lib/assets/zd.png +0 -0
- package/lib/buffer-draw/BufferDraw.js +0 -398
- package/lib/buffer-draw/BufferDraw.js.map +0 -1
- package/lib/buffer-draw/index.js +0 -57
- package/lib/buffer-draw/index.js.map +0 -1
- package/lib/buffer-draw/style/css.js +0 -2
- package/lib/buffer-draw/style/css.js.map +0 -1
- package/lib/buffer-draw/style/index.js +0 -2
- package/lib/buffer-draw/style/index.js.map +0 -1
- package/lib/circle/Circle.js +0 -51
- package/lib/circle/Circle.js.map +0 -1
- package/lib/circle/index.js +0 -65
- package/lib/circle/index.js.map +0 -1
- package/lib/circle/style/css.js +0 -2
- package/lib/circle/style/css.js.map +0 -1
- package/lib/circle/style/index.js +0 -2
- package/lib/circle/style/index.js.map +0 -1
- package/lib/config.js +0 -12
- package/lib/config.js.map +0 -1
- package/lib/convertCamelToCSS.js +0 -23
- package/lib/convertCamelToCSS.js.map +0 -1
- package/lib/dom/Dom.js +0 -39
- package/lib/dom/Dom.js.map +0 -1
- package/lib/dom/index.js +0 -62
- package/lib/dom/index.js.map +0 -1
- package/lib/dom/style/css.js +0 -2
- package/lib/dom/style/css.js.map +0 -1
- package/lib/dom/style/index.js +0 -2
- package/lib/dom/style/index.js.map +0 -1
- package/lib/events/index.js +0 -25
- package/lib/events/index.js.map +0 -1
- package/lib/feature-draw/FeatureDraw.js +0 -230
- package/lib/feature-draw/FeatureDraw.js.map +0 -1
- package/lib/feature-draw/index.js +0 -73
- package/lib/feature-draw/index.js.map +0 -1
- package/lib/feature-draw/style/css.js +0 -2
- package/lib/feature-draw/style/css.js.map +0 -1
- package/lib/feature-draw/style/index.js +0 -2
- package/lib/feature-draw/style/index.js.map +0 -1
- package/lib/feature-layer/FeatureLayer.js +0 -1039
- package/lib/feature-layer/FeatureLayer.js.map +0 -1
- package/lib/feature-layer/MyCluster.js +0 -150
- package/lib/feature-layer/MyCluster.js.map +0 -1
- package/lib/feature-layer/createFeatureCollection.js +0 -167
- package/lib/feature-layer/createFeatureCollection.js.map +0 -1
- package/lib/feature-layer/index.js +0 -155
- package/lib/feature-layer/index.js.map +0 -1
- package/lib/feature-layer/style/css.js +0 -4
- package/lib/feature-layer/style/css.js.map +0 -1
- package/lib/feature-layer/style/index.css +0 -0
- package/lib/feature-layer/style/index.js +0 -4
- package/lib/feature-layer/style/index.js.map +0 -1
- package/lib/feature-layer/style/index.less +0 -0
- package/lib/flow-line-layer/FlowLineLayer.js +0 -197
- package/lib/flow-line-layer/FlowLineLayer.js.map +0 -1
- package/lib/flow-line-layer/index.js +0 -127
- package/lib/flow-line-layer/index.js.map +0 -1
- package/lib/flow-line-layer/style/css.js +0 -4
- package/lib/flow-line-layer/style/css.js.map +0 -1
- package/lib/flow-line-layer/style/index.css +0 -0
- package/lib/flow-line-layer/style/index.js +0 -4
- package/lib/flow-line-layer/style/index.js.map +0 -1
- package/lib/flow-line-layer/style/index.less +0 -0
- package/lib/fly-line-layer/FlyLineLayer.js +0 -217
- package/lib/fly-line-layer/FlyLineLayer.js.map +0 -1
- package/lib/fly-line-layer/index.js +0 -109
- package/lib/fly-line-layer/index.js.map +0 -1
- package/lib/fly-line-layer/style/css.js +0 -4
- package/lib/fly-line-layer/style/css.js.map +0 -1
- package/lib/fly-line-layer/style/index.css +0 -0
- package/lib/fly-line-layer/style/index.js +0 -4
- package/lib/fly-line-layer/style/index.js.map +0 -1
- package/lib/fly-line-layer/style/index.less +0 -0
- package/lib/group-layer/GroupLayer.js +0 -131
- package/lib/group-layer/GroupLayer.js.map +0 -1
- package/lib/group-layer/index.js +0 -74
- package/lib/group-layer/index.js.map +0 -1
- package/lib/group-layer/style/css.js +0 -4
- package/lib/group-layer/style/css.js.map +0 -1
- package/lib/group-layer/style/index.css +0 -0
- package/lib/group-layer/style/index.js +0 -4
- package/lib/group-layer/style/index.js.map +0 -1
- package/lib/group-layer/style/index.less +0 -0
- package/lib/heatmap-layer/HeatmapLayer.js +0 -191
- package/lib/heatmap-layer/HeatmapLayer.js.map +0 -1
- package/lib/heatmap-layer/index.js +0 -94
- package/lib/heatmap-layer/index.js.map +0 -1
- package/lib/heatmap-layer/style/css.js +0 -4
- package/lib/heatmap-layer/style/css.js.map +0 -1
- package/lib/heatmap-layer/style/index.css +0 -0
- package/lib/heatmap-layer/style/index.js +0 -4
- package/lib/heatmap-layer/style/index.js.map +0 -1
- package/lib/heatmap-layer/style/index.less +0 -0
- package/lib/high-layer/HighLayer.js +0 -199
- package/lib/high-layer/HighLayer.js.map +0 -1
- package/lib/high-layer/index.js +0 -45
- package/lib/high-layer/index.js.map +0 -1
- package/lib/high-layer/style/css.js +0 -2
- package/lib/high-layer/style/css.js.map +0 -1
- package/lib/high-layer/style/index.js +0 -2
- package/lib/high-layer/style/index.js.map +0 -1
- package/lib/image-layer/ImageLayer.js +0 -330
- package/lib/image-layer/ImageLayer.js.map +0 -1
- package/lib/image-layer/ImageTileLayer.js +0 -332
- package/lib/image-layer/ImageTileLayer.js.map +0 -1
- package/lib/image-layer/index.js +0 -101
- package/lib/image-layer/index.js.map +0 -1
- package/lib/image-layer/style/css.js +0 -4
- package/lib/image-layer/style/css.js.map +0 -1
- package/lib/image-layer/style/index.css +0 -0
- package/lib/image-layer/style/index.js +0 -4
- package/lib/image-layer/style/index.js.map +0 -1
- package/lib/image-layer/style/index.less +0 -0
- package/lib/index.js +0 -201
- package/lib/index.js.map +0 -1
- package/lib/legend/index.js +0 -221
- package/lib/legend/index.js.map +0 -1
- package/lib/legend/style/css.js +0 -8
- package/lib/legend/style/css.js.map +0 -1
- package/lib/legend/style/index.css +0 -74
- package/lib/legend/style/index.js +0 -8
- package/lib/legend/style/index.js.map +0 -1
- package/lib/legend/style/index.less +0 -73
- package/lib/map/Analysis.js +0 -148
- package/lib/map/Analysis.js.map +0 -1
- package/lib/map/Layers.js +0 -336
- package/lib/map/Layers.js.map +0 -1
- package/lib/map/Popup.js +0 -371
- package/lib/map/Popup.js.map +0 -1
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js +0 -163
- package/lib/map/getBaseLayers/imagery/amap/AmapImageryProvider.js.map +0 -1
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js +0 -84
- package/lib/map/getBaseLayers/imagery/baidu/BaiduImageryProvider.js.map +0 -1
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js +0 -65
- package/lib/map/getBaseLayers/imagery/geoq/GeoQImageryProvider.js.map +0 -1
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js +0 -84
- package/lib/map/getBaseLayers/imagery/tdt/TdtImageryProvider.js.map +0 -1
- package/lib/map/getBaseLayers/index.js +0 -46
- package/lib/map/getBaseLayers/index.js.map +0 -1
- package/lib/map/index.js +0 -822
- package/lib/map/index.js.map +0 -1
- package/lib/map/style/css.js +0 -5
- package/lib/map/style/css.js.map +0 -1
- package/lib/map/style/index.css +0 -171
- package/lib/map/style/index.js +0 -5
- package/lib/map/style/index.js.map +0 -1
- package/lib/map/style/index.less +0 -152
- package/lib/map-icon/svg/index.js +0 -81
- package/lib/map-icon/svg/index.js.map +0 -1
- package/lib/map-icon/svg/tuceng.svg.js +0 -2
- package/lib/map-icon/svg/tuceng.svg.js.map +0 -1
- package/lib/marker/Marker.js +0 -105
- package/lib/marker/Marker.js.map +0 -1
- package/lib/marker/index.js +0 -62
- package/lib/marker/index.js.map +0 -1
- package/lib/marker/style/css.js +0 -2
- package/lib/marker/style/css.js.map +0 -1
- package/lib/marker/style/index.js +0 -2
- package/lib/marker/style/index.js.map +0 -1
- package/lib/path-line-layer/PathLineLayer.js +0 -45
- package/lib/path-line-layer/PathLineLayer.js.map +0 -1
- package/lib/path-line-layer/getPathLineStyles.js +0 -71
- package/lib/path-line-layer/getPathLineStyles.js.map +0 -1
- package/lib/path-line-layer/index.js +0 -152
- package/lib/path-line-layer/index.js.map +0 -1
- package/lib/path-line-layer/style/css.js +0 -4
- package/lib/path-line-layer/style/css.js.map +0 -1
- package/lib/path-line-layer/style/index.css +0 -0
- package/lib/path-line-layer/style/index.js +0 -4
- package/lib/path-line-layer/style/index.js.map +0 -1
- package/lib/path-line-layer/style/index.less +0 -0
- package/lib/path-play-back/PathPlayBack.js +0 -668
- package/lib/path-play-back/PathPlayBack.js.map +0 -1
- package/lib/path-play-back/index.js +0 -75
- package/lib/path-play-back/index.js.map +0 -1
- package/lib/path-play-back/style/css.js +0 -2
- package/lib/path-play-back/style/css.js.map +0 -1
- package/lib/path-play-back/style/index.js +0 -2
- package/lib/path-play-back/style/index.js.map +0 -1
- package/lib/poi-search/Location.js +0 -63
- package/lib/poi-search/Location.js.map +0 -1
- package/lib/poi-search/PoiList.js +0 -116
- package/lib/poi-search/PoiList.js.map +0 -1
- package/lib/poi-search/Search.js +0 -208
- package/lib/poi-search/Search.js.map +0 -1
- package/lib/poi-search/index.js +0 -173
- package/lib/poi-search/index.js.map +0 -1
- package/lib/poi-search/style/css.js +0 -8
- package/lib/poi-search/style/css.js.map +0 -1
- package/lib/poi-search/style/index.css +0 -96
- package/lib/poi-search/style/index.js +0 -8
- package/lib/poi-search/style/index.js.map +0 -1
- package/lib/poi-search/style/index.less +0 -97
- package/lib/point/Point.js +0 -57
- package/lib/point/Point.js.map +0 -1
- package/lib/point/index.js +0 -62
- package/lib/point/index.js.map +0 -1
- package/lib/point/style/css.js +0 -2
- package/lib/point/style/css.js.map +0 -1
- package/lib/point/style/index.js +0 -2
- package/lib/point/style/index.js.map +0 -1
- package/lib/polygon/Polygon.js +0 -51
- package/lib/polygon/Polygon.js.map +0 -1
- package/lib/polygon/index.js +0 -62
- package/lib/polygon/index.js.map +0 -1
- package/lib/polygon/style/css.js +0 -2
- package/lib/polygon/style/css.js.map +0 -1
- package/lib/polygon/style/index.js +0 -2
- package/lib/polygon/style/index.js.map +0 -1
- package/lib/polyline/Polyline.js +0 -51
- package/lib/polyline/Polyline.js.map +0 -1
- package/lib/polyline/index.js +0 -62
- package/lib/polyline/index.js.map +0 -1
- package/lib/polyline/style/css.js +0 -2
- package/lib/polyline/style/css.js.map +0 -1
- package/lib/polyline/style/index.js +0 -2
- package/lib/polyline/style/index.js.map +0 -1
- package/lib/popup/index.js +0 -203
- package/lib/popup/index.js.map +0 -1
- package/lib/popup/style/css.js +0 -4
- package/lib/popup/style/css.js.map +0 -1
- package/lib/popup/style/index.css +0 -131
- package/lib/popup/style/index.js +0 -4
- package/lib/popup/style/index.js.map +0 -1
- package/lib/popup/style/index.less +0 -129
- package/lib/provider/index.js +0 -12
- package/lib/provider/index.js.map +0 -1
- package/lib/provider/style/css.js +0 -2
- package/lib/provider/style/css.js.map +0 -1
- package/lib/provider/style/index.js +0 -2
- package/lib/provider/style/index.js.map +0 -1
- package/lib/renderer/Fill.js +0 -37
- package/lib/renderer/Fill.js.map +0 -1
- package/lib/renderer/Stroke.js +0 -39
- package/lib/renderer/Stroke.js.map +0 -1
- package/lib/renderer/index.js +0 -138
- package/lib/renderer/index.js.map +0 -1
- package/lib/renderer/style/css.js +0 -4
- package/lib/renderer/style/css.js.map +0 -1
- package/lib/renderer/style/index.css +0 -0
- package/lib/renderer/style/index.js +0 -4
- package/lib/renderer/style/index.js.map +0 -1
- package/lib/renderer/style/index.less +0 -0
- package/lib/renderer/transformRgb.js +0 -33
- package/lib/renderer/transformRgb.js.map +0 -1
- package/lib/search-map/VtxModal.js +0 -202
- package/lib/search-map/VtxModal.js.map +0 -1
- package/lib/search-map/index.js +0 -417
- package/lib/search-map/index.js.map +0 -1
- package/lib/search-map/style/css.js +0 -6
- package/lib/search-map/style/css.js.map +0 -1
- package/lib/search-map/style/index.css +0 -73
- package/lib/search-map/style/index.js +0 -6
- package/lib/search-map/style/index.js.map +0 -1
- package/lib/search-map/style/index.less +0 -83
- package/lib/search-map/style/modal.css +0 -54
- package/lib/search-map/style/modal.less +0 -58
- package/lib/style/index.css +0 -0
- package/lib/style/index.less +0 -2
- package/lib/style/themes/compact.css +0 -0
- package/lib/style/themes/compact.less +0 -1
- package/lib/style/themes/dark.css +0 -0
- package/lib/style/themes/dark.less +0 -9
- package/lib/style/themes/default.css +0 -0
- package/lib/style/themes/default.less +0 -7
- package/lib/style/themes/index.css +0 -0
- package/lib/style/themes/index.less +0 -1
- package/lib/style/themes/variable.css +0 -0
- package/lib/style/themes/variable.less +0 -5
- package/lib/tile-layer/TileLayer.js +0 -85
- package/lib/tile-layer/TileLayer.js.map +0 -1
- package/lib/tile-layer/index.js +0 -53
- package/lib/tile-layer/index.js.map +0 -1
- package/lib/tile-layer/style/css.js +0 -4
- package/lib/tile-layer/style/css.js.map +0 -1
- package/lib/tile-layer/style/index.css +0 -0
- package/lib/tile-layer/style/index.js +0 -4
- package/lib/tile-layer/style/index.js.map +0 -1
- package/lib/tile-layer/style/index.less +0 -0
- package/lib/tools/Layer/LayerService.js +0 -182
- package/lib/tools/Layer/LayerService.js.map +0 -1
- package/lib/tools/Layer/LayersCheckService.js +0 -188
- package/lib/tools/Layer/LayersCheckService.js.map +0 -1
- package/lib/tools/Layer/index.css +0 -50
- package/lib/tools/Layer/index.js +0 -226
- package/lib/tools/Layer/index.js.map +0 -1
- package/lib/tools/Layer/index.less +0 -43
- package/lib/tools/Search/index.js +0 -296
- package/lib/tools/Search/index.js.map +0 -1
- package/lib/tools/Toolbox/BoxSelect/index.js +0 -19
- package/lib/tools/Toolbox/BoxSelect/index.js.map +0 -1
- package/lib/tools/Toolbox/CircleSelect/index.js +0 -19
- package/lib/tools/Toolbox/CircleSelect/index.js.map +0 -1
- package/lib/tools/Toolbox/EagleEye/index.js +0 -56
- package/lib/tools/Toolbox/EagleEye/index.js.map +0 -1
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js +0 -150
- package/lib/tools/Toolbox/MapBookmark/Bookmark.js.map +0 -1
- package/lib/tools/Toolbox/MapBookmark/index.css +0 -18
- package/lib/tools/Toolbox/MapBookmark/index.js +0 -429
- package/lib/tools/Toolbox/MapBookmark/index.js.map +0 -1
- package/lib/tools/Toolbox/MapBookmark/index.less +0 -20
- package/lib/tools/Toolbox/MapDownload/index.js +0 -16
- package/lib/tools/Toolbox/MapDownload/index.js.map +0 -1
- package/lib/tools/Toolbox/MapPrint/index.css +0 -4
- package/lib/tools/Toolbox/MapPrint/index.js +0 -233
- package/lib/tools/Toolbox/MapPrint/index.js.map +0 -1
- package/lib/tools/Toolbox/MapPrint/index.less +0 -4
- package/lib/tools/Toolbox/Measure/Area/index.js +0 -16
- package/lib/tools/Toolbox/Measure/Area/index.js.map +0 -1
- package/lib/tools/Toolbox/Measure/Distance/index.js +0 -16
- package/lib/tools/Toolbox/Measure/Distance/index.js.map +0 -1
- package/lib/tools/Toolbox/Measure/Measure.js +0 -227
- package/lib/tools/Toolbox/Measure/Measure.js.map +0 -1
- package/lib/tools/Toolbox/Measure/index.js +0 -76
- package/lib/tools/Toolbox/Measure/index.js.map +0 -1
- package/lib/tools/Toolbox/PolygonSelect/index.js +0 -19
- package/lib/tools/Toolbox/PolygonSelect/index.js.map +0 -1
- package/lib/tools/Toolbox/ScaleLine/index.js +0 -58
- package/lib/tools/Toolbox/ScaleLine/index.js.map +0 -1
- package/lib/tools/Toolbox/SelectTools/index.css +0 -103
- package/lib/tools/Toolbox/SelectTools/index.js +0 -777
- package/lib/tools/Toolbox/SelectTools/index.js.map +0 -1
- package/lib/tools/Toolbox/SelectTools/index.less +0 -87
- package/lib/tools/Toolbox/SpaceQuery/index.css +0 -19
- package/lib/tools/Toolbox/SpaceQuery/index.js +0 -593
- package/lib/tools/Toolbox/SpaceQuery/index.js.map +0 -1
- package/lib/tools/Toolbox/SpaceQuery/index.less +0 -16
- package/lib/tools/Toolbox/ZoomInput/index.css +0 -6
- package/lib/tools/Toolbox/ZoomInput/index.js +0 -49
- package/lib/tools/Toolbox/ZoomInput/index.js.map +0 -1
- package/lib/tools/Toolbox/ZoomInput/index.less +0 -6
- package/lib/tools/Toolbox/index.css +0 -0
- package/lib/tools/Toolbox/index.js +0 -170
- package/lib/tools/Toolbox/index.js.map +0 -1
- package/lib/tools/Toolbox/index.less +0 -2
- package/lib/tools/Utils/CreateOverlay.js +0 -46
- package/lib/tools/Utils/CreateOverlay.js.map +0 -1
- package/lib/tools/Utils/Draw.js +0 -127
- package/lib/tools/Utils/Draw.js.map +0 -1
- package/lib/tools/Utils/HighLayer.js +0 -211
- package/lib/tools/Utils/HighLayer.js.map +0 -1
- package/lib/tools/Utils/measure.js +0 -246
- package/lib/tools/Utils/measure.js.map +0 -1
- package/lib/tools/Utils/utils.js +0 -263
- package/lib/tools/Utils/utils.js.map +0 -1
- package/lib/tools/View/index.css +0 -35
- package/lib/tools/View/index.js +0 -165
- package/lib/tools/View/index.js.map +0 -1
- package/lib/tools/View/index.less +0 -28
- package/lib/tools/analysis-tool/index.js +0 -112
- package/lib/tools/analysis-tool/index.js.map +0 -1
- package/lib/tools/base-map-switch/index.js +0 -149
- package/lib/tools/base-map-switch/index.js.map +0 -1
- package/lib/tools/components/Chart/index.js +0 -818
- package/lib/tools/components/Chart/index.js.map +0 -1
- package/lib/tools/components/Icon/index.js +0 -31
- package/lib/tools/components/Icon/index.js.map +0 -1
- package/lib/tools/components/Info/index.css +0 -39
- package/lib/tools/components/Info/index.js +0 -34
- package/lib/tools/components/Info/index.js.map +0 -1
- package/lib/tools/components/Info/index.less +0 -26
- package/lib/tools/components/ItemWrap/index.css +0 -43
- package/lib/tools/components/ItemWrap/index.js +0 -47
- package/lib/tools/components/ItemWrap/index.js.map +0 -1
- package/lib/tools/components/ItemWrap/index.less +0 -41
- package/lib/tools/components/Modal/index.css +0 -42
- package/lib/tools/components/Modal/index.js +0 -45
- package/lib/tools/components/Modal/index.js.map +0 -1
- package/lib/tools/components/Modal/index.less +0 -33
- package/lib/tools/components/MyTabs/index.js +0 -22
- package/lib/tools/components/MyTabs/index.js.map +0 -1
- package/lib/tools/components/RequiredLabel/index.css +0 -5
- package/lib/tools/components/RequiredLabel/index.js +0 -32
- package/lib/tools/components/RequiredLabel/index.js.map +0 -1
- package/lib/tools/components/RequiredLabel/index.less +0 -5
- package/lib/tools/components/Select/index.js +0 -32
- package/lib/tools/components/Select/index.js.map +0 -1
- package/lib/tools/components/Table/assets/tableIcon.png +0 -0
- package/lib/tools/components/Table/index.css +0 -10
- package/lib/tools/components/Table/index.js +0 -90
- package/lib/tools/components/Table/index.js.map +0 -1
- package/lib/tools/components/Table/index.less +0 -13
- package/lib/tools/components/ToolItem/index.css +0 -30
- package/lib/tools/components/ToolItem/index.js +0 -28
- package/lib/tools/components/ToolItem/index.js.map +0 -1
- package/lib/tools/components/ToolItem/index.less +0 -27
- package/lib/tools/components/ToolsSelect/index.css +0 -15
- package/lib/tools/components/ToolsSelect/index.js +0 -44
- package/lib/tools/components/ToolsSelect/index.js.map +0 -1
- package/lib/tools/components/ToolsSelect/index.less +0 -10
- package/lib/tools/full-screen/index.js +0 -46
- package/lib/tools/full-screen/index.js.map +0 -1
- package/lib/tools/index.js +0 -151
- package/lib/tools/index.js.map +0 -1
- package/lib/tools/layer-control/index.js +0 -170
- package/lib/tools/layer-control/index.js.map +0 -1
- package/lib/tools/refresh/index.js +0 -40
- package/lib/tools/refresh/index.js.map +0 -1
- package/lib/tools/style/css.js +0 -22
- package/lib/tools/style/css.js.map +0 -1
- package/lib/tools/style/index.css +0 -136
- package/lib/tools/style/index.js +0 -22
- package/lib/tools/style/index.js.map +0 -1
- package/lib/tools/style/index.less +0 -154
- package/lib/tools-item/index.js +0 -66
- package/lib/tools-item/index.js.map +0 -1
- package/lib/use-props/index.js +0 -14
- package/lib/use-props/index.js.map +0 -1
- package/lib/use-props/style/css.js +0 -2
- package/lib/use-props/style/css.js.map +0 -1
- package/lib/use-props/style/index.js +0 -2
- package/lib/use-props/style/index.js.map +0 -1
- package/lib/wms-layer/WmsLayer.js +0 -313
- package/lib/wms-layer/WmsLayer.js.map +0 -1
- package/lib/wms-layer/index.js +0 -98
- package/lib/wms-layer/index.js.map +0 -1
- package/lib/wms-layer/style/css.js +0 -4
- package/lib/wms-layer/style/css.js.map +0 -1
- package/lib/wms-layer/style/index.css +0 -0
- package/lib/wms-layer/style/index.js +0 -4
- package/lib/wms-layer/style/index.js.map +0 -1
- package/lib/wms-layer/style/index.less +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtx/ol-map",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.144",
|
|
4
4
|
"description": "React components for Vortex",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"moment": "^2.29.1",
|
|
66
66
|
"ol": "6.15.1",
|
|
67
67
|
"print-js": "^1.6.0",
|
|
68
|
-
"prop-types": "^15.8.1"
|
|
68
|
+
"prop-types": "^15.8.1",
|
|
69
|
+
"qs": "^6.14.0"
|
|
69
70
|
},
|
|
70
71
|
"peerDependencies": {
|
|
71
72
|
"react": ">=16.12.0",
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
10
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
// 发布订阅模式
|
|
14
|
-
var EventEmitter = /*#__PURE__*/function () {
|
|
15
|
-
function EventEmitter() {
|
|
16
|
-
_classCallCheck(this, EventEmitter);
|
|
17
|
-
// 事件对象,存放订阅的名字和事件 如:{'click': [handle, handle2]}
|
|
18
|
-
this.events = {};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// 订阅事件方法
|
|
22
|
-
return _createClass(EventEmitter, [{
|
|
23
|
-
key: "on",
|
|
24
|
-
value: function on(eventName, callback) {
|
|
25
|
-
this.events[eventName] = this.events[eventName] || [];
|
|
26
|
-
this.events[eventName].push(callback);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// 触发事件方法
|
|
30
|
-
}, {
|
|
31
|
-
key: "emit",
|
|
32
|
-
value: function emit(eventName) {
|
|
33
|
-
var _this = this;
|
|
34
|
-
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
35
|
-
rest[_key - 1] = arguments[_key];
|
|
36
|
-
}
|
|
37
|
-
if (this.events[eventName]) {
|
|
38
|
-
this.events[eventName].forEach(function (f) {
|
|
39
|
-
return f.apply(_this, rest);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// 移除订阅事件
|
|
45
|
-
}, {
|
|
46
|
-
key: "un",
|
|
47
|
-
value: function un(eventName, callback) {
|
|
48
|
-
if (this.events[eventName]) {
|
|
49
|
-
this.events[eventName] = this.events[eventName].filter(function (f) {
|
|
50
|
-
return f !== callback;
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// 只执行一次订阅的事件
|
|
56
|
-
}, {
|
|
57
|
-
key: "once",
|
|
58
|
-
value: function once(eventName, callback) {
|
|
59
|
-
var _this2 = this;
|
|
60
|
-
//创建临时方法
|
|
61
|
-
var _fn = function fn() {
|
|
62
|
-
for (var _len2 = arguments.length, rest = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
63
|
-
rest[_key2] = arguments[_key2];
|
|
64
|
-
}
|
|
65
|
-
// 执行原有的callback
|
|
66
|
-
callback.apply(_this2, rest);
|
|
67
|
-
|
|
68
|
-
// 执行移除事件,删除临时方法
|
|
69
|
-
_this2.un(eventName, _fn);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// 执行订阅事件,绑定临时方法
|
|
73
|
-
this.on(eventName, _fn);
|
|
74
|
-
}
|
|
75
|
-
}]);
|
|
76
|
-
}();
|
|
77
|
-
var _default = exports["default"] = EventEmitter;
|
|
78
|
-
//# sourceMappingURL=EventEmitter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventEmitter.js","names":["EventEmitter","_classCallCheck","events","_createClass","key","value","on","eventName","callback","push","emit","_this","_len","arguments","length","rest","Array","_key","forEach","f","apply","un","filter","once","_this2","fn","_len2","_key2","_default","exports"],"sources":["_util/EventEmitter.js"],"sourcesContent":["// 发布订阅模式\r\nclass EventEmitter {\r\n constructor() {\r\n // 事件对象,存放订阅的名字和事件 如:{'click': [handle, handle2]}\r\n this.events = {};\r\n }\r\n\r\n // 订阅事件方法\r\n on(eventName, callback) {\r\n this.events[eventName] = this.events[eventName] || [];\r\n this.events[eventName].push(callback);\r\n }\r\n\r\n // 触发事件方法\r\n emit(eventName, ...rest) {\r\n if (this.events[eventName]) {\r\n this.events[eventName].forEach(f => f.apply(this, rest));\r\n }\r\n }\r\n\r\n // 移除订阅事件\r\n un(eventName, callback) {\r\n if (this.events[eventName]) {\r\n this.events[eventName] = this.events[eventName].filter(f => f !== callback);\r\n }\r\n }\r\n\r\n // 只执行一次订阅的事件\r\n once(eventName, callback) {\r\n //创建临时方法\r\n const fn = (...rest) => {\r\n // 执行原有的callback\r\n callback.apply(this, rest);\r\n\r\n // 执行移除事件,删除临时方法\r\n this.un(eventName, fn);\r\n };\r\n\r\n // 执行订阅事件,绑定临时方法\r\n this.on(eventName, fn);\r\n }\r\n}\r\n\r\nexport default EventEmitter;\r\n"],"mappings":";;;;;;;;;;;;AAAA;AAAA,IACMA,YAAY;EACd,SAAAA,aAAA,EAAc;IAAAC,eAAA,OAAAD,YAAA;IACV;IACA,IAAI,CAACE,MAAM,GAAG,CAAC,CAAC;EACpB;;EAEA;EAAA,OAAAC,YAAA,CAAAH,YAAA;IAAAI,GAAA;IAAAC,KAAA,EACA,SAAAC,EAAEA,CAACC,SAAS,EAAEC,QAAQ,EAAE;MACpB,IAAI,CAACN,MAAM,CAACK,SAAS,CAAC,GAAG,IAAI,CAACL,MAAM,CAACK,SAAS,CAAC,IAAI,EAAE;MACrD,IAAI,CAACL,MAAM,CAACK,SAAS,CAAC,CAACE,IAAI,CAACD,QAAQ,CAAC;IACzC;;IAEA;EAAA;IAAAJ,GAAA;IAAAC,KAAA,EACA,SAAAK,IAAIA,CAACH,SAAS,EAAW;MAAA,IAAAI,KAAA;MAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAANC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;QAAJF,IAAI,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;MAAA;MACnB,IAAI,IAAI,CAACf,MAAM,CAACK,SAAS,CAAC,EAAE;QACxB,IAAI,CAACL,MAAM,CAACK,SAAS,CAAC,CAACW,OAAO,CAAC,UAAAC,CAAC;UAAA,OAAIA,CAAC,CAACC,KAAK,CAACT,KAAI,EAAEI,IAAI,CAAC;QAAA,EAAC;MAC5D;IACJ;;IAEA;EAAA;IAAAX,GAAA;IAAAC,KAAA,EACA,SAAAgB,EAAEA,CAACd,SAAS,EAAEC,QAAQ,EAAE;MACpB,IAAI,IAAI,CAACN,MAAM,CAACK,SAAS,CAAC,EAAE;QACxB,IAAI,CAACL,MAAM,CAACK,SAAS,CAAC,GAAG,IAAI,CAACL,MAAM,CAACK,SAAS,CAAC,CAACe,MAAM,CAAC,UAAAH,CAAC;UAAA,OAAIA,CAAC,KAAKX,QAAQ;QAAA,EAAC;MAC/E;IACJ;;IAEA;EAAA;IAAAJ,GAAA;IAAAC,KAAA,EACA,SAAAkB,IAAIA,CAAChB,SAAS,EAAEC,QAAQ,EAAE;MAAA,IAAAgB,MAAA;MACtB;MACA,IAAMC,GAAE,GAAG,SAALA,EAAEA,CAAA,EAAgB;QAAA,SAAAC,KAAA,GAAAb,SAAA,CAAAC,MAAA,EAATC,IAAI,OAAAC,KAAA,CAAAU,KAAA,GAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;UAAJZ,IAAI,CAAAY,KAAA,IAAAd,SAAA,CAAAc,KAAA;QAAA;QACf;QACAnB,QAAQ,CAACY,KAAK,CAACI,MAAI,EAAET,IAAI,CAAC;;QAE1B;QACAS,MAAI,CAACH,EAAE,CAACd,SAAS,EAAEkB,GAAE,CAAC;MAC1B,CAAC;;MAED;MACA,IAAI,CAACnB,EAAE,CAACC,SAAS,EAAEkB,GAAE,CAAC;IAC1B;EAAC;AAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,cAGU7B,YAAY","ignoreList":[]}
|
package/lib/_util/StyleCache.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
10
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
var StyleCache = /*#__PURE__*/function () {
|
|
14
|
-
function StyleCache() {
|
|
15
|
-
_classCallCheck(this, StyleCache);
|
|
16
|
-
this.cache = new Map();
|
|
17
|
-
}
|
|
18
|
-
return _createClass(StyleCache, [{
|
|
19
|
-
key: "get",
|
|
20
|
-
value: function get(key) {
|
|
21
|
-
return this.cache.get(key);
|
|
22
|
-
}
|
|
23
|
-
}, {
|
|
24
|
-
key: "set",
|
|
25
|
-
value: function set(key, value) {
|
|
26
|
-
this.cache.set(key, value);
|
|
27
|
-
}
|
|
28
|
-
}, {
|
|
29
|
-
key: "has",
|
|
30
|
-
value: function has(key) {
|
|
31
|
-
return this.cache.has(key);
|
|
32
|
-
}
|
|
33
|
-
}, {
|
|
34
|
-
key: "delete",
|
|
35
|
-
value: function _delete(key) {
|
|
36
|
-
this.cache["delete"](key);
|
|
37
|
-
}
|
|
38
|
-
}, {
|
|
39
|
-
key: "clear",
|
|
40
|
-
value: function clear() {
|
|
41
|
-
this.cache.clear();
|
|
42
|
-
}
|
|
43
|
-
}]);
|
|
44
|
-
}();
|
|
45
|
-
var _default = exports["default"] = StyleCache;
|
|
46
|
-
//# sourceMappingURL=StyleCache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyleCache.js","names":["StyleCache","_classCallCheck","cache","Map","_createClass","key","value","get","set","has","delete","clear","_default","exports"],"sources":["_util/StyleCache.js"],"sourcesContent":["\r\nclass StyleCache {\r\n constructor() {\r\n this.cache = new Map();\r\n }\r\n\r\n get(key) {\r\n return this.cache.get(key);\r\n }\r\n\r\n set(key, value) {\r\n this.cache.set(key, value)\r\n }\r\n\r\n has(key) {\r\n return this.cache.has(key)\r\n }\r\n\r\n delete(key) {\r\n this.cache.delete(key)\r\n }\r\n\r\n clear() {\r\n this.cache.clear()\r\n }\r\n}\r\n\r\nexport default StyleCache;\r\n"],"mappings":";;;;;;;;;;;;IACMA,UAAU;EACZ,SAAAA,WAAA,EAAc;IAAAC,eAAA,OAAAD,UAAA;IACV,IAAI,CAACE,KAAK,GAAG,IAAIC,GAAG,CAAC,CAAC;EAC1B;EAAC,OAAAC,YAAA,CAAAJ,UAAA;IAAAK,GAAA;IAAAC,KAAA,EAED,SAAAC,GAAGA,CAACF,GAAG,EAAE;MACL,OAAO,IAAI,CAACH,KAAK,CAACK,GAAG,CAACF,GAAG,CAAC;IAC9B;EAAC;IAAAA,GAAA;IAAAC,KAAA,EAED,SAAAE,GAAGA,CAACH,GAAG,EAAEC,KAAK,EAAE;MACZ,IAAI,CAACJ,KAAK,CAACM,GAAG,CAACH,GAAG,EAAEC,KAAK,CAAC;IAC9B;EAAC;IAAAD,GAAA;IAAAC,KAAA,EAED,SAAAG,GAAGA,CAACJ,GAAG,EAAE;MACL,OAAO,IAAI,CAACH,KAAK,CAACO,GAAG,CAACJ,GAAG,CAAC;IAC9B;EAAC;IAAAA,GAAA;IAAAC,KAAA,EAED,SAAAI,OAAMA,CAACL,GAAG,EAAE;MACR,IAAI,CAACH,KAAK,UAAO,CAACG,GAAG,CAAC;IAC1B;EAAC;IAAAA,GAAA;IAAAC,KAAA,EAED,SAAAK,KAAKA,CAAA,EAAG;MACJ,IAAI,CAACT,KAAK,CAACS,KAAK,CAAC,CAAC;IACtB;EAAC;AAAA;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAGUb,UAAU","ignoreList":[]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.keyHex = exports.ivHex = exports.encryptParamsByUrl = exports.encrypt = exports["default"] = void 0;
|
|
7
|
-
var _cryptoJs = _interopRequireDefault(require("crypto-js"));
|
|
8
|
-
var _getUrlParam = _interopRequireDefault(require("./getUrlParam"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
-
// 这里是密钥
|
|
12
|
-
var keyHex = exports.keyHex = 'NT9FWl3ze1GJNqpo';
|
|
13
|
-
var ivHex = exports.ivHex = 'vL7iWTTV7RngvKkn';
|
|
14
|
-
|
|
15
|
-
// 解密 data:要加密解密的数据,AES_KEY:密钥,IV:偏移量
|
|
16
|
-
var encrypt = exports.encrypt = function encrypt(data, options) {
|
|
17
|
-
var _ref = options && _typeof(options) === 'object' ? options : {},
|
|
18
|
-
AES_KEY = _ref.key,
|
|
19
|
-
IV = _ref.iv,
|
|
20
|
-
mode = _ref.mode;
|
|
21
|
-
var key = _cryptoJs["default"].enc.Utf8.parse(AES_KEY || keyHex);
|
|
22
|
-
var iv = _cryptoJs["default"].enc.Utf8.parse(IV || ivHex);
|
|
23
|
-
return _cryptoJs["default"].AES.encrypt(data, key, {
|
|
24
|
-
iv: iv,
|
|
25
|
-
mode: _cryptoJs["default"].mode[mode || 'CBC'],
|
|
26
|
-
padding: _cryptoJs["default"].pad.Pkcs7
|
|
27
|
-
}).toString();
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* 加密参数
|
|
32
|
-
* @param params
|
|
33
|
-
* @param options
|
|
34
|
-
* @returns {*}
|
|
35
|
-
*/
|
|
36
|
-
var encryptParams = function encryptParams(params, options) {
|
|
37
|
-
var _params;
|
|
38
|
-
if ((_params = params) !== null && _params !== void 0 && _params.cql_filter) {
|
|
39
|
-
params = JSON.parse(JSON.stringify(params));
|
|
40
|
-
params.CQL_FILTER_ENCRYPT = encrypt(encodeURIComponent(params.cql_filter), options);
|
|
41
|
-
delete params.cql_filter;
|
|
42
|
-
}
|
|
43
|
-
return params;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 根据url判断是否加密
|
|
48
|
-
* @param params
|
|
49
|
-
* @param options
|
|
50
|
-
* @returns {*}
|
|
51
|
-
*/
|
|
52
|
-
var encryptParamsByUrl = exports.encryptParamsByUrl = function encryptParamsByUrl(params, options) {
|
|
53
|
-
var encryptParam = (0, _getUrlParam["default"])('encrypt');
|
|
54
|
-
if (encryptParam === 'true') {
|
|
55
|
-
return encryptParams(params, options);
|
|
56
|
-
}
|
|
57
|
-
return params;
|
|
58
|
-
};
|
|
59
|
-
var _default = exports["default"] = encryptParams;
|
|
60
|
-
//# sourceMappingURL=encryptParams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"encryptParams.js","names":["_cryptoJs","_interopRequireDefault","require","_getUrlParam","e","__esModule","_typeof","o","Symbol","iterator","constructor","prototype","keyHex","exports","ivHex","encrypt","data","options","_ref","AES_KEY","key","IV","iv","mode","CryptoJS","enc","Utf8","parse","AES","padding","pad","Pkcs7","toString","encryptParams","params","_params","cql_filter","JSON","stringify","CQL_FILTER_ENCRYPT","encodeURIComponent","encryptParamsByUrl","encryptParam","getUrlParam","_default"],"sources":["_util/encryptParams.js"],"sourcesContent":["import CryptoJS from 'crypto-js';\r\nimport getUrlParam from './getUrlParam';\r\n\r\n// 这里是密钥\r\nexport const keyHex = 'NT9FWl3ze1GJNqpo';\r\nexport const ivHex = 'vL7iWTTV7RngvKkn';\r\n\r\n// 解密 data:要加密解密的数据,AES_KEY:密钥,IV:偏移量\r\nexport const encrypt = (data, options) => {\r\n let {key: AES_KEY, iv: IV, mode} = (options && typeof options === 'object') ? options : {};\r\n const key = CryptoJS.enc.Utf8.parse(AES_KEY || keyHex);\r\n const iv = CryptoJS.enc.Utf8.parse(IV || ivHex);\r\n\r\n return CryptoJS.AES.encrypt(data, key, {\r\n iv,\r\n mode: CryptoJS.mode[mode ||'CBC'],\r\n padding: CryptoJS.pad.Pkcs7\r\n }).toString()\r\n}\r\n\r\n/**\r\n * 加密参数\r\n * @param params\r\n * @param options\r\n * @returns {*}\r\n */\r\nconst encryptParams = (params, options) => {\r\n if (params?.cql_filter) {\r\n params = JSON.parse(JSON.stringify(params));\r\n params.CQL_FILTER_ENCRYPT = encrypt(encodeURIComponent(params.cql_filter), options);\r\n\r\n delete params.cql_filter\r\n }\r\n\r\n return params\r\n}\r\n\r\n/**\r\n * 根据url判断是否加密\r\n * @param params\r\n * @param options\r\n * @returns {*}\r\n */\r\nexport const encryptParamsByUrl = (params, options) => {\r\n const encryptParam = getUrlParam('encrypt');\r\n\r\n if (encryptParam === 'true') {\r\n return encryptParams(params, options);\r\n }\r\n\r\n return params\r\n}\r\n\r\nexport default encryptParams;\r\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAwC,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAExC;AACO,IAAMK,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG,kBAAkB;AACjC,IAAME,KAAK,GAAAD,OAAA,CAAAC,KAAA,GAAG,kBAAkB;;AAEvC;AACO,IAAMC,OAAO,GAAAF,OAAA,CAAAE,OAAA,GAAG,SAAVA,OAAOA,CAAIC,IAAI,EAAEC,OAAO,EAAK;EACtC,IAAAC,IAAA,GAAoCD,OAAO,IAAIX,OAAA,CAAOW,OAAO,MAAK,QAAQ,GAAIA,OAAO,GAAG,CAAC,CAAC;IAAhFE,OAAO,GAAAD,IAAA,CAAZE,GAAG;IAAeC,EAAE,GAAAH,IAAA,CAANI,EAAE;IAAMC,IAAI,GAAAL,IAAA,CAAJK,IAAI;EAC/B,IAAMH,GAAG,GAAGI,oBAAQ,CAACC,GAAG,CAACC,IAAI,CAACC,KAAK,CAACR,OAAO,IAAIP,MAAM,CAAC;EACtD,IAAMU,EAAE,GAAGE,oBAAQ,CAACC,GAAG,CAACC,IAAI,CAACC,KAAK,CAACN,EAAE,IAAIP,KAAK,CAAC;EAE/C,OAAOU,oBAAQ,CAACI,GAAG,CAACb,OAAO,CAACC,IAAI,EAAEI,GAAG,EAAE;IACnCE,EAAE,EAAFA,EAAE;IACFC,IAAI,EAAEC,oBAAQ,CAACD,IAAI,CAACA,IAAI,IAAG,KAAK,CAAC;IACjCM,OAAO,EAAEL,oBAAQ,CAACM,GAAG,CAACC;EAC1B,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;AACjB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAAM,EAAEjB,OAAO,EAAK;EAAA,IAAAkB,OAAA;EACvC,KAAAA,OAAA,GAAID,MAAM,cAAAC,OAAA,eAANA,OAAA,CAAQC,UAAU,EAAE;IACpBF,MAAM,GAAGG,IAAI,CAACV,KAAK,CAACU,IAAI,CAACC,SAAS,CAACJ,MAAM,CAAC,CAAC;IAC3CA,MAAM,CAACK,kBAAkB,GAAGxB,OAAO,CAACyB,kBAAkB,CAACN,MAAM,CAACE,UAAU,CAAC,EAAEnB,OAAO,CAAC;IAEnF,OAAOiB,MAAM,CAACE,UAAU;EAC5B;EAEA,OAAOF,MAAM;AACjB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAMO,kBAAkB,GAAA5B,OAAA,CAAA4B,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIP,MAAM,EAAEjB,OAAO,EAAK;EACnD,IAAMyB,YAAY,GAAG,IAAAC,uBAAW,EAAC,SAAS,CAAC;EAE3C,IAAID,YAAY,KAAK,MAAM,EAAE;IACzB,OAAOT,aAAa,CAACC,MAAM,EAAEjB,OAAO,CAAC;EACzC;EAEA,OAAOiB,MAAM;AACjB,CAAC;AAAA,IAAAU,QAAA,GAAA/B,OAAA,cAEcoB,aAAa","ignoreList":[]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = filterSpecialCharacters;
|
|
7
|
-
var _lodash = _interopRequireDefault(require("lodash.difference"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
10
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
13
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
14
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
-
function isNotEmpty(value) {
|
|
16
|
-
return Array.isArray(value) && value.length > 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 过滤特殊字符
|
|
21
|
-
* @param {String} value 值
|
|
22
|
-
* @param {Object} option
|
|
23
|
-
* @param {Array} [option.include] 新增
|
|
24
|
-
* @param {Array} [option.exclude] 排除
|
|
25
|
-
*/
|
|
26
|
-
function filterSpecialCharacters(value) {
|
|
27
|
-
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
28
|
-
_ref$include = _ref.include,
|
|
29
|
-
include = _ref$include === void 0 ? [] : _ref$include,
|
|
30
|
-
_ref$exclude = _ref.exclude,
|
|
31
|
-
exclude = _ref$exclude === void 0 ? [] : _ref$exclude;
|
|
32
|
-
// 特殊符号,- _ 排除
|
|
33
|
-
var specialCharacter = [
|
|
34
|
-
// 小括号
|
|
35
|
-
'(', ')', '(', ')',
|
|
36
|
-
// 中括号
|
|
37
|
-
'\\[', '\\]', '[', ']',
|
|
38
|
-
// 大括号
|
|
39
|
-
'{', '}', '{', '}',
|
|
40
|
-
// 方头括号
|
|
41
|
-
'【', '】',
|
|
42
|
-
// 尖括号
|
|
43
|
-
'<', '>',
|
|
44
|
-
// 书名号
|
|
45
|
-
'《', '》',
|
|
46
|
-
// 斜杠
|
|
47
|
-
'/',
|
|
48
|
-
// 反斜杠
|
|
49
|
-
'\\\\',
|
|
50
|
-
// 逗号
|
|
51
|
-
',', ',',
|
|
52
|
-
// 句号
|
|
53
|
-
'.', '。',
|
|
54
|
-
// 冒号
|
|
55
|
-
':', ':',
|
|
56
|
-
// 分号
|
|
57
|
-
';', ';',
|
|
58
|
-
// 顿号
|
|
59
|
-
'、',
|
|
60
|
-
// 破折号
|
|
61
|
-
'——',
|
|
62
|
-
// 感叹号
|
|
63
|
-
'!', '!',
|
|
64
|
-
// 问号
|
|
65
|
-
'?', '?',
|
|
66
|
-
// 加减等于
|
|
67
|
-
'+', '=',
|
|
68
|
-
// 单引号
|
|
69
|
-
"'", '‘', '’',
|
|
70
|
-
// 双引号
|
|
71
|
-
'"', '“', '”',
|
|
72
|
-
// 金钱
|
|
73
|
-
'$', '¥',
|
|
74
|
-
// 百分号
|
|
75
|
-
'%', '%',
|
|
76
|
-
// 其它
|
|
77
|
-
'@', '#', '`', '~', '*', '^', '……', '|', '&'];
|
|
78
|
-
|
|
79
|
-
// 新增
|
|
80
|
-
if (isNotEmpty(include)) {
|
|
81
|
-
specialCharacter = Array.from(new Set([].concat(_toConsumableArray(specialCharacter), _toConsumableArray(include))));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 移除
|
|
85
|
-
if (isNotEmpty(exclude)) {
|
|
86
|
-
specialCharacter = (0, _lodash["default"])(specialCharacter, exclude);
|
|
87
|
-
}
|
|
88
|
-
return value.replace(new RegExp("[".concat(specialCharacter.join(''), "]"), 'g'), '');
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=filterSpecialCharacters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterSpecialCharacters.js","names":["_lodash","_interopRequireDefault","require","e","__esModule","_toConsumableArray","r","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","a","_arrayLikeToArray","t","toString","call","slice","constructor","name","Array","from","test","Symbol","iterator","isArray","length","n","isNotEmpty","value","filterSpecialCharacters","_ref","arguments","undefined","_ref$include","include","_ref$exclude","exclude","specialCharacter","Set","concat","difference","replace","RegExp","join"],"sources":["_util/filterSpecialCharacters.js"],"sourcesContent":["import difference from 'lodash.difference';\r\n\r\nfunction isNotEmpty(value) {\r\n return Array.isArray(value) && value.length > 0;\r\n}\r\n\r\n/**\r\n * 过滤特殊字符\r\n * @param {String} value 值\r\n * @param {Object} option\r\n * @param {Array} [option.include] 新增\r\n * @param {Array} [option.exclude] 排除\r\n */\r\nexport default function filterSpecialCharacters(value, { include = [], exclude = [] } = {}) {\r\n // 特殊符号,- _ 排除\r\n let specialCharacter = [\r\n // 小括号\r\n '(',\r\n ')',\r\n '(',\r\n ')',\r\n // 中括号\r\n '\\\\[',\r\n '\\\\]',\r\n '[',\r\n ']',\r\n // 大括号\r\n '{',\r\n '}',\r\n '{',\r\n '}',\r\n // 方头括号\r\n '【',\r\n '】',\r\n // 尖括号\r\n '<',\r\n '>',\r\n // 书名号\r\n '《',\r\n '》',\r\n // 斜杠\r\n '/',\r\n // 反斜杠\r\n '\\\\\\\\',\r\n // 逗号\r\n ',',\r\n ',',\r\n // 句号\r\n '.',\r\n '。',\r\n // 冒号\r\n ':',\r\n ':',\r\n // 分号\r\n ';',\r\n ';',\r\n // 顿号\r\n '、',\r\n // 破折号\r\n '——',\r\n // 感叹号\r\n '!',\r\n '!',\r\n // 问号\r\n '?',\r\n '?',\r\n // 加减等于\r\n '+',\r\n '=',\r\n // 单引号\r\n \"'\",\r\n '‘',\r\n '’',\r\n // 双引号\r\n '\"',\r\n '“',\r\n '”',\r\n // 金钱\r\n '$',\r\n '¥',\r\n // 百分号\r\n '%',\r\n '%',\r\n // 其它\r\n '@',\r\n '#',\r\n '`',\r\n '~',\r\n '*',\r\n '^',\r\n '……',\r\n '|',\r\n '&',\r\n ];\r\n\r\n // 新增\r\n if (isNotEmpty(include)) {\r\n specialCharacter = Array.from(new Set([...specialCharacter, ...include]));\r\n }\r\n\r\n // 移除\r\n if (isNotEmpty(exclude)) {\r\n specialCharacter = difference(specialCharacter, exclude);\r\n }\r\n\r\n return value.replace(new RegExp(`[${specialCharacter.join('')}]`, 'g'), '');\r\n}\r\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,mBAAAC,CAAA,WAAAC,kBAAA,CAAAD,CAAA,KAAAE,gBAAA,CAAAF,CAAA,KAAAG,2BAAA,CAAAH,CAAA,KAAAI,kBAAA;AAAA,SAAAA,mBAAA,cAAAC,SAAA;AAAA,SAAAF,4BAAAH,CAAA,EAAAM,CAAA,QAAAN,CAAA,2BAAAA,CAAA,SAAAO,iBAAA,CAAAP,CAAA,EAAAM,CAAA,OAAAE,CAAA,MAAAC,QAAA,CAAAC,IAAA,CAAAV,CAAA,EAAAW,KAAA,6BAAAH,CAAA,IAAAR,CAAA,CAAAY,WAAA,KAAAJ,CAAA,GAAAR,CAAA,CAAAY,WAAA,CAAAC,IAAA,aAAAL,CAAA,cAAAA,CAAA,GAAAM,KAAA,CAAAC,IAAA,CAAAf,CAAA,oBAAAQ,CAAA,+CAAAQ,IAAA,CAAAR,CAAA,IAAAD,iBAAA,CAAAP,CAAA,EAAAM,CAAA;AAAA,SAAAJ,iBAAAF,CAAA,8BAAAiB,MAAA,YAAAjB,CAAA,CAAAiB,MAAA,CAAAC,QAAA,aAAAlB,CAAA,uBAAAc,KAAA,CAAAC,IAAA,CAAAf,CAAA;AAAA,SAAAC,mBAAAD,CAAA,QAAAc,KAAA,CAAAK,OAAA,CAAAnB,CAAA,UAAAO,iBAAA,CAAAP,CAAA;AAAA,SAAAO,kBAAAP,CAAA,EAAAM,CAAA,aAAAA,CAAA,IAAAA,CAAA,GAAAN,CAAA,CAAAoB,MAAA,MAAAd,CAAA,GAAAN,CAAA,CAAAoB,MAAA,YAAAvB,CAAA,MAAAwB,CAAA,GAAAP,KAAA,CAAAR,CAAA,GAAAT,CAAA,GAAAS,CAAA,EAAAT,CAAA,IAAAwB,CAAA,CAAAxB,CAAA,IAAAG,CAAA,CAAAH,CAAA,UAAAwB,CAAA;AAE3C,SAASC,UAAUA,CAACC,KAAK,EAAE;EACvB,OAAOT,KAAK,CAACK,OAAO,CAACI,KAAK,CAAC,IAAIA,KAAK,CAACH,MAAM,GAAG,CAAC;AACnD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASI,uBAAuBA,CAACD,KAAK,EAAuC;EAAA,IAAAE,IAAA,GAAAC,SAAA,CAAAN,MAAA,QAAAM,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAJ,CAAC,CAAC;IAAAE,YAAA,GAAAH,IAAA,CAAjCI,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,EAAE,GAAAA,YAAA;IAAAE,YAAA,GAAAL,IAAA,CAAEM,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,EAAE,GAAAA,YAAA;EAC/E;EACA,IAAIE,gBAAgB,GAAG;EACnB;EACA,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,KAAK,EACL,KAAK,EACL,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG;EACH;EACA,MAAM;EACN;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG;EACH;EACA,IAAI;EACJ;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG;EACH;EACA,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,GAAG,CACN;;EAED;EACA,IAAIV,UAAU,CAACO,OAAO,CAAC,EAAE;IACrBG,gBAAgB,GAAGlB,KAAK,CAACC,IAAI,CAAC,IAAIkB,GAAG,IAAAC,MAAA,CAAAnC,kBAAA,CAAKiC,gBAAgB,GAAAjC,kBAAA,CAAK8B,OAAO,EAAC,CAAC,CAAC;EAC7E;;EAEA;EACA,IAAIP,UAAU,CAACS,OAAO,CAAC,EAAE;IACrBC,gBAAgB,GAAG,IAAAG,kBAAU,EAACH,gBAAgB,EAAED,OAAO,CAAC;EAC5D;EAEA,OAAOR,KAAK,CAACa,OAAO,CAAC,IAAIC,MAAM,KAAAH,MAAA,CAAKF,gBAAgB,CAACM,IAAI,CAAC,EAAE,CAAC,QAAK,GAAG,CAAC,EAAE,EAAE,CAAC;AAC/E","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = getComponentProps;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
-
function getComponentProps(prop) {
|
|
9
|
-
if (prop && _typeof(prop) === 'object') {
|
|
10
|
-
return prop;
|
|
11
|
-
}
|
|
12
|
-
return {};
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=getComponentProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getComponentProps.js","names":["getComponentProps","prop","_typeof"],"sources":["_util/getComponentProps.js"],"sourcesContent":["export default function getComponentProps(prop) {\r\n if (prop && typeof prop === 'object') {\r\n return prop;\r\n }\r\n return {};\r\n}\r\n"],"mappings":";;;;;;;AAAe,SAASA,iBAAiBA,CAACC,IAAI,EAAE;EAC5C,IAAIA,IAAI,IAAIC,OAAA,CAAOD,IAAI,MAAK,QAAQ,EAAE;IAClC,OAAOA,IAAI;EACf;EACA,OAAO,CAAC,CAAC;AACb","ignoreList":[]}
|
package/lib/_util/getCookie.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* @name cookie取值
|
|
9
|
-
* @param c_name 要取得的字段名
|
|
10
|
-
* @returns {string} 返回字段对应的值, 若字段不存在则返回空
|
|
11
|
-
*/
|
|
12
|
-
var _default = exports["default"] = function _default(c_name) {
|
|
13
|
-
if (document.cookie.length > 0) {
|
|
14
|
-
var c_start = document.cookie.indexOf("".concat(c_name, "="));
|
|
15
|
-
if (c_start !== -1) {
|
|
16
|
-
c_start = c_start + c_name.length + 1;
|
|
17
|
-
var c_end = document.cookie.indexOf(';', c_start);
|
|
18
|
-
if (c_end == -1) c_end = document.cookie.length;
|
|
19
|
-
return unescape(document.cookie.substring(c_start, c_end));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return '';
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=getCookie.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCookie.js","names":["_default","exports","c_name","document","cookie","length","c_start","indexOf","concat","c_end","unescape","substring"],"sources":["_util/getCookie.js"],"sourcesContent":["/**\r\n * @name cookie取值\r\n * @param c_name 要取得的字段名\r\n * @returns {string} 返回字段对应的值, 若字段不存在则返回空\r\n */\r\nexport default c_name => {\r\n if (document.cookie.length > 0) {\r\n let c_start = document.cookie.indexOf(`${c_name}=`);\r\n if (c_start !== -1) {\r\n c_start = c_start + c_name.length + 1;\r\n let c_end = document.cookie.indexOf(';', c_start);\r\n if (c_end == -1) c_end = document.cookie.length;\r\n return unescape(document.cookie.substring(c_start, c_end));\r\n }\r\n }\r\n return '';\r\n};\r\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAJA,IAAAA,QAAA,GAAAC,OAAA,cAKe,SAAAD,SAAAE,MAAM,EAAI;EACrB,IAAIC,QAAQ,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,EAAE;IAC5B,IAAIC,OAAO,GAAGH,QAAQ,CAACC,MAAM,CAACG,OAAO,IAAAC,MAAA,CAAIN,MAAM,MAAG,CAAC;IACnD,IAAII,OAAO,KAAK,CAAC,CAAC,EAAE;MAChBA,OAAO,GAAGA,OAAO,GAAGJ,MAAM,CAACG,MAAM,GAAG,CAAC;MACrC,IAAII,KAAK,GAAGN,QAAQ,CAACC,MAAM,CAACG,OAAO,CAAC,GAAG,EAAED,OAAO,CAAC;MACjD,IAAIG,KAAK,IAAI,CAAC,CAAC,EAAEA,KAAK,GAAGN,QAAQ,CAACC,MAAM,CAACC,MAAM;MAC/C,OAAOK,QAAQ,CAACP,QAAQ,CAACC,MAAM,CAACO,SAAS,CAACL,OAAO,EAAEG,KAAK,CAAC,CAAC;IAC9D;EACJ;EACA,OAAO,EAAE;AACb,CAAC","ignoreList":[]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
var _default = exports["default"] = function _default() {
|
|
14
|
-
var val = {};
|
|
15
|
-
var systemInfo = window.sessionStorage.getItem('systemInfo');
|
|
16
|
-
if (systemInfo) {
|
|
17
|
-
var _systemInfo2;
|
|
18
|
-
systemInfo = systemInfo && JSON.parse(systemInfo) || {};
|
|
19
|
-
var _systemInfo = systemInfo,
|
|
20
|
-
longitude = _systemInfo.longitude,
|
|
21
|
-
latitude = _systemInfo.latitude;
|
|
22
|
-
val.longitude = longitude;
|
|
23
|
-
val.latitude = latitude;
|
|
24
|
-
val.mapType = 'wgs84';
|
|
25
|
-
if ((_systemInfo2 = systemInfo) !== null && _systemInfo2 !== void 0 && _systemInfo2.mapDefJson) {
|
|
26
|
-
var mapDefJson = JSON.parse(systemInfo.mapDefJson);
|
|
27
|
-
var defaultMap = mapDefJson.find(function (v) {
|
|
28
|
-
return v.defaultMap;
|
|
29
|
-
}) || {};
|
|
30
|
-
val = _objectSpread(_objectSpread(_objectSpread({}, val), defaultMap), {}, {
|
|
31
|
-
mapType: defaultMap.coordinate || 'wgs84'
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// 获取其他配置
|
|
37
|
-
var menuConfig = window.sessionStorage.getItem('menuConfig');
|
|
38
|
-
if (menuConfig) {
|
|
39
|
-
menuConfig = JSON.parse(menuConfig);
|
|
40
|
-
if (menuConfig) {
|
|
41
|
-
var _menuConfig = menuConfig,
|
|
42
|
-
baseMapStyle = _menuConfig.baseMapStyle;
|
|
43
|
-
if (baseMapStyle) {
|
|
44
|
-
val.baseMapStyle = baseMapStyle;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return val;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=getDefaultMapInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultMapInfo.js","names":["_default","val","systemInfo","window","sessionStorage","getItem","_systemInfo2","JSON","parse","_systemInfo","longitude","latitude","mapType","mapDefJson","defaultMap","find","v","_objectSpread","coordinate","menuConfig","_menuConfig","baseMapStyle"],"sources":["_util/getDefaultMapInfo.js"],"sourcesContent":["export default () => {\r\n let val = {};\r\n\r\n let systemInfo = window.sessionStorage.getItem('systemInfo');\r\n if (systemInfo) {\r\n systemInfo = (systemInfo && JSON.parse(systemInfo)) || {};\r\n\r\n const {longitude, latitude} = systemInfo;\r\n val.longitude = longitude;\r\n val.latitude = latitude;\r\n val.mapType = 'wgs84';\r\n\r\n if (systemInfo?.mapDefJson) {\r\n let mapDefJson = JSON.parse(systemInfo.mapDefJson);\r\n let defaultMap = mapDefJson.find(v => v.defaultMap) || {};\r\n val = {\r\n ...val,\r\n ...defaultMap,\r\n mapType: defaultMap.coordinate || 'wgs84',\r\n };\r\n }\r\n }\r\n\r\n // 获取其他配置\r\n let menuConfig = window.sessionStorage.getItem('menuConfig');\r\n if (menuConfig) {\r\n menuConfig = JSON.parse(menuConfig);\r\n if (menuConfig) {\r\n const {baseMapStyle} = menuConfig;\r\n if (baseMapStyle) {\r\n val.baseMapStyle = baseMapStyle;\r\n }\r\n }\r\n }\r\n\r\n return val;\r\n};\r\n"],"mappings":";;;;;;;;;;;;oCAAe,SAAAA,SAAA,EAAM;EACjB,IAAIC,GAAG,GAAG,CAAC,CAAC;EAEZ,IAAIC,UAAU,GAAGC,MAAM,CAACC,cAAc,CAACC,OAAO,CAAC,YAAY,CAAC;EAC5D,IAAIH,UAAU,EAAE;IAAA,IAAAI,YAAA;IACZJ,UAAU,GAAIA,UAAU,IAAIK,IAAI,CAACC,KAAK,CAACN,UAAU,CAAC,IAAK,CAAC,CAAC;IAEzD,IAAAO,WAAA,GAA8BP,UAAU;MAAjCQ,SAAS,GAAAD,WAAA,CAATC,SAAS;MAAEC,QAAQ,GAAAF,WAAA,CAARE,QAAQ;IAC1BV,GAAG,CAACS,SAAS,GAAGA,SAAS;IACzBT,GAAG,CAACU,QAAQ,GAAGA,QAAQ;IACvBV,GAAG,CAACW,OAAO,GAAG,OAAO;IAErB,KAAAN,YAAA,GAAIJ,UAAU,cAAAI,YAAA,eAAVA,YAAA,CAAYO,UAAU,EAAE;MACxB,IAAIA,UAAU,GAAGN,IAAI,CAACC,KAAK,CAACN,UAAU,CAACW,UAAU,CAAC;MAClD,IAAIC,UAAU,GAAGD,UAAU,CAACE,IAAI,CAAC,UAAAC,CAAC;QAAA,OAAIA,CAAC,CAACF,UAAU;MAAA,EAAC,IAAI,CAAC,CAAC;MACzDb,GAAG,GAAAgB,aAAA,CAAAA,aAAA,CAAAA,aAAA,KACIhB,GAAG,GACHa,UAAU;QACbF,OAAO,EAAEE,UAAU,CAACI,UAAU,IAAI;MAAO,EAC5C;IACL;EACJ;;EAEA;EACA,IAAIC,UAAU,GAAGhB,MAAM,CAACC,cAAc,CAACC,OAAO,CAAC,YAAY,CAAC;EAC5D,IAAIc,UAAU,EAAE;IACZA,UAAU,GAAGZ,IAAI,CAACC,KAAK,CAACW,UAAU,CAAC;IACnC,IAAIA,UAAU,EAAE;MACZ,IAAAC,WAAA,GAAuBD,UAAU;QAA1BE,YAAY,GAAAD,WAAA,CAAZC,YAAY;MACnB,IAAIA,YAAY,EAAE;QACdpB,GAAG,CAACoB,YAAY,GAAGA,YAAY;MACnC;IACJ;EACJ;EAEA,OAAOpB,GAAG;AACd,CAAC","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
var _default = exports["default"] = function _default(key) {
|
|
14
|
-
var systemInfo = localStorage.getItem('systemInfo');
|
|
15
|
-
var system = {};
|
|
16
|
-
if (systemInfo && systemInfo !== '[object Object]') {
|
|
17
|
-
system = JSON.parse(decodeURIComponent(decodeURIComponent(systemInfo)));
|
|
18
|
-
system = _objectSpread(_objectSpread({}, system), {}, {
|
|
19
|
-
access_token: system.token
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
if (key) {
|
|
23
|
-
return system[key];
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=getSystemInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSystemInfo.js","names":["_default","key","systemInfo","localStorage","getItem","system","JSON","parse","decodeURIComponent","_objectSpread","access_token","token"],"sources":["_util/getSystemInfo.js"],"sourcesContent":["export default key => {\r\n const systemInfo = localStorage.getItem('systemInfo');\r\n let system = {};\r\n if (systemInfo && systemInfo !== '[object Object]') {\r\n system = JSON.parse(decodeURIComponent(decodeURIComponent(systemInfo)));\r\n system = {\r\n ...system,\r\n access_token: system.token,\r\n };\r\n }\r\n if (key) {\r\n return system[key];\r\n }\r\n};\r\n"],"mappings":";;;;;;;;;;;;oCAAe,SAAAA,SAAAC,GAAG,EAAI;EAClB,IAAMC,UAAU,GAAGC,YAAY,CAACC,OAAO,CAAC,YAAY,CAAC;EACrD,IAAIC,MAAM,GAAG,CAAC,CAAC;EACf,IAAIH,UAAU,IAAIA,UAAU,KAAK,iBAAiB,EAAE;IAChDG,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACC,kBAAkB,CAACA,kBAAkB,CAACN,UAAU,CAAC,CAAC,CAAC;IACvEG,MAAM,GAAAI,aAAA,CAAAA,aAAA,KACCJ,MAAM;MACTK,YAAY,EAAEL,MAAM,CAACM;IAAK,EAC7B;EACL;EACA,IAAIV,GAAG,EAAE;IACL,OAAOI,MAAM,CAACJ,GAAG,CAAC;EACtB;AACJ,CAAC","ignoreList":[]}
|
package/lib/_util/getToken.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.imageLoadFunction = exports["default"] = void 0;
|
|
7
|
-
var _utils = require("@vtx/utils");
|
|
8
|
-
var getToken = function getToken() {
|
|
9
|
-
return (0, _utils.getVtxToken)('token');
|
|
10
|
-
};
|
|
11
|
-
var imageLoadFunction = exports.imageLoadFunction = function imageLoadFunction(image, src) {
|
|
12
|
-
var xhr = new XMLHttpRequest();
|
|
13
|
-
xhr.responseType = 'blob';
|
|
14
|
-
xhr.open('GET', src);
|
|
15
|
-
xhr.setRequestHeader('Authorization', "Bearer ".concat(getToken()));
|
|
16
|
-
xhr.onload = function () {
|
|
17
|
-
var url = URL.createObjectURL(xhr.response);
|
|
18
|
-
var img = image.getImage();
|
|
19
|
-
img.addEventListener('load', function () {
|
|
20
|
-
URL.revokeObjectURL(url);
|
|
21
|
-
});
|
|
22
|
-
img.src = url;
|
|
23
|
-
};
|
|
24
|
-
xhr.send();
|
|
25
|
-
};
|
|
26
|
-
var _default = exports["default"] = getToken;
|
|
27
|
-
//# sourceMappingURL=getToken.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getToken.js","names":["_utils","require","getToken","getVtxToken","imageLoadFunction","exports","image","src","xhr","XMLHttpRequest","responseType","open","setRequestHeader","concat","onload","url","URL","createObjectURL","response","img","getImage","addEventListener","revokeObjectURL","send","_default"],"sources":["_util/getToken.js"],"sourcesContent":["import { getVtxToken } from '@vtx/utils';\r\n\r\nconst getToken = () => {\r\n return getVtxToken('token');\r\n};\r\n\r\nexport const imageLoadFunction = (image, src) => {\r\n const xhr = new XMLHttpRequest();\r\n xhr.responseType = 'blob';\r\n xhr.open('GET', src);\r\n xhr.setRequestHeader('Authorization', `Bearer ${getToken()}`);\r\n xhr.onload = function() {\r\n const url = URL.createObjectURL(xhr.response);\r\n const img = image.getImage();\r\n img.addEventListener('load', function() {\r\n URL.revokeObjectURL(url);\r\n });\r\n img.src = url;\r\n };\r\n xhr.send();\r\n}\r\n\r\nexport default getToken;\r\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAAS;EACnB,OAAO,IAAAC,kBAAW,EAAC,OAAO,CAAC;AAC/B,CAAC;AAEM,IAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIE,KAAK,EAAEC,GAAG,EAAK;EAC7C,IAAMC,GAAG,GAAG,IAAIC,cAAc,CAAC,CAAC;EAChCD,GAAG,CAACE,YAAY,GAAG,MAAM;EACzBF,GAAG,CAACG,IAAI,CAAC,KAAK,EAAEJ,GAAG,CAAC;EACpBC,GAAG,CAACI,gBAAgB,CAAC,eAAe,YAAAC,MAAA,CAAYX,QAAQ,CAAC,CAAC,CAAE,CAAC;EAC7DM,GAAG,CAACM,MAAM,GAAG,YAAW;IACpB,IAAMC,GAAG,GAAGC,GAAG,CAACC,eAAe,CAACT,GAAG,CAACU,QAAQ,CAAC;IAC7C,IAAMC,GAAG,GAAGb,KAAK,CAACc,QAAQ,CAAC,CAAC;IAC5BD,GAAG,CAACE,gBAAgB,CAAC,MAAM,EAAE,YAAW;MACpCL,GAAG,CAACM,eAAe,CAACP,GAAG,CAAC;IAC5B,CAAC,CAAC;IACFI,GAAG,CAACZ,GAAG,GAAGQ,GAAG;EACjB,CAAC;EACDP,GAAG,CAACe,IAAI,CAAC,CAAC;AACd,CAAC;AAAA,IAAAC,QAAA,GAAAnB,OAAA,cAEcH,QAAQ","ignoreList":[]}
|
package/lib/_util/getUrlParam.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _querystring = _interopRequireDefault(require("querystring"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
var getUrlParam = function getUrlParam(key) {
|
|
10
|
-
var href = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.href;
|
|
11
|
-
var params = _querystring["default"].parse(href.split('?')[1]);
|
|
12
|
-
return key ? params[key] : params;
|
|
13
|
-
};
|
|
14
|
-
var _default = exports["default"] = getUrlParam;
|
|
15
|
-
//# sourceMappingURL=getUrlParam.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getUrlParam.js","names":["_querystring","_interopRequireDefault","require","e","__esModule","getUrlParam","key","href","arguments","length","undefined","window","location","params","qs","parse","split","_default","exports"],"sources":["_util/getUrlParam.js"],"sourcesContent":["import qs from 'querystring';\r\n\r\nconst getUrlParam = (key, href = window.location.href) => {\r\n const params = qs.parse(href.split('?')[1]);\r\n return key ? params[key] : params;\r\n};\r\n\r\nexport default getUrlParam;\r\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAE7B,IAAME,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAG,EAAkC;EAAA,IAAhCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,MAAM,CAACC,QAAQ,CAACL,IAAI;EACjD,IAAMM,MAAM,GAAGC,uBAAE,CAACC,KAAK,CAACR,IAAI,CAACS,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;EAC3C,OAAOV,GAAG,GAAGO,MAAM,CAACP,GAAG,CAAC,GAAGO,MAAM;AACrC,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEab,WAAW","ignoreList":[]}
|