@dartcom/ui-kit 10.3.1 → 10.3.3

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/dist/index.cjs CHANGED
@@ -39414,273 +39414,6 @@ exports.TangramSourceNames = void 0;
39414
39414
  TangramSourceNames["MSK"] = "msk";
39415
39415
  })(exports.TangramSourceNames || (exports.TangramSourceNames = {}));
39416
39416
 
39417
- /* eslint-disable no-console */
39418
- class LoggerService {
39419
- constructor() { }
39420
- log({ message, context, meta, }) {
39421
- console.log(context, message, meta);
39422
- }
39423
- warn({ message, context, meta, }) {
39424
- console.warn(context, message, meta);
39425
- }
39426
- error({ message, context, meta, }) {
39427
- console.error(context, message, meta);
39428
- }
39429
- }
39430
- const loggerService = new LoggerService();
39431
-
39432
- const tile_size = 256;
39433
- const sourceUrl = {
39434
- [exports.TangramSourceNames.TILE]: `${"$VITE_API_HOST/api"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
39435
- [exports.TangramSourceNames.NATURE_TILE]: `${"$VITE_API_HOST/api"}/tiles/get_nature_tile/{z}/{x}/{y}.mvt`,
39436
- [exports.TangramSourceNames.MSK]: `${"$VITE_API_HOST/api"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
39437
- };
39438
-
39439
- var data = { global:{ links:{ getIsConstruction:"function (feature) {\n const { construction } = feature;\n\n return construction;\n}\n",
39440
- getIsFunctionalClass:"function (feature) {\n const { functional_class, access_id } = feature;\n\n return functional_class === 5 && access_id === 32;\n}\n",
39441
- getIsLowMobility:"function (feature) {\n const { functional_class, low_mobility } = feature;\n\n return functional_class === 5 && low_mobility === 1;\n}\n" } },
39442
- cameras:{ camera1:{ type:"perspective",
39443
- vanishing_point:[ 0,
39444
- -500 ] } },
39445
- textures:{ arrow:{ url:"https://dalganmap.ru/api-image/images/arrow-20.png",
39446
- sprites:{ base:[ 0,
39447
- 0,
39448
- 20,
39449
- 20 ] } },
39450
- "traffic-signal":{ url:"https://dalganmap.ru/api-image/images/conditions/traffic-signal.png",
39451
- filtering:"mipmap",
39452
- sprites:{ base:[ 0,
39453
- 0,
39454
- 20,
39455
- 20 ] } },
39456
- pedestrian_crossing:{ url:"https://dalganmap.ru/api-image/images/conditions/pedestrian_crossing.png",
39457
- filtering:"mipmap",
39458
- sprites:{ base:[ 0,
39459
- 0,
39460
- 20,
39461
- 20 ] } },
39462
- physical:{ url:"https://dalganmap.ru/api-image/images/conditions/physical.png",
39463
- filtering:"mipmap",
39464
- sprites:{ base:[ 0,
39465
- 0,
39466
- 20,
39467
- 20 ] } },
39468
- gate:{ url:"https://dalganmap.ru/api-image/images/conditions/gate.png",
39469
- filtering:"mipmap",
39470
- sprites:{ base:[ 0,
39471
- 0,
39472
- 20,
39473
- 20 ] } },
39474
- POI_3578:{ url:"https://dalganmap.ru/api-image/images/POI/3578.png",
39475
- filtering:"mipmap",
39476
- sprites:{ base:[ 0,
39477
- 0,
39478
- 20,
39479
- 20 ] } },
39480
- POI_5813:{ url:"https://dalganmap.ru/api-image/images/POI/5813.png",
39481
- filtering:"mipmap",
39482
- sprites:{ base:[ 0,
39483
- 0,
39484
- 20,
39485
- 20 ] } },
39486
- POI_5541:{ url:"https://dalganmap.ru/api-image/images/POI/5541.png",
39487
- filtering:"mipmap",
39488
- sprites:{ base:[ 0,
39489
- 0,
39490
- 20,
39491
- 20 ] } },
39492
- POI_5540:{ url:"https://dalganmap.ru/api-image/images/POI/5540.png",
39493
- filtering:"mipmap",
39494
- sprites:{ base:[ 0,
39495
- 0,
39496
- 20,
39497
- 20 ] } },
39498
- "POI_9530(Mail)":{ url:"https://dalganmap.ru/api-image/images/POI/mail.png",
39499
- filtering:"mipmap",
39500
- sprites:{ base:[ 0,
39501
- 0,
39502
- 20,
39503
- 20 ] } },
39504
- "POI_9530(Delivery)":{ url:"https://dalganmap.ru/api-image/images/POI/delivery.png",
39505
- filtering:"mipmap",
39506
- sprites:{ base:[ 0,
39507
- 0,
39508
- 20,
39509
- 20 ] } },
39510
- POI_5400:{ url:"https://dalganmap.ru/api-image/images/POI/5400.png",
39511
- filtering:"mipmap",
39512
- sprites:{ base:[ 0,
39513
- 0,
39514
- 20,
39515
- 20 ] } },
39516
- POI_6000:{ url:"https://dalganmap.ru/api-image/images/POI/6000.png",
39517
- filtering:"mipmap",
39518
- sprites:{ base:[ 0,
39519
- 0,
39520
- 20,
39521
- 20 ] } },
39522
- POI_9565:{ url:"https://dalganmap.ru/api-image/images/POI/9565.png",
39523
- filtering:"mipmap",
39524
- sprites:{ base:[ 0,
39525
- 0,
39526
- 20,
39527
- 20 ] } },
39528
- POI_9583:{ url:"https://dalganmap.ru/api-image/images/POI/9583.png",
39529
- filtering:"mipmap",
39530
- sprites:{ base:[ 0,
39531
- 0,
39532
- 20,
39533
- 20 ] } },
39534
- POI_8060:{ url:"https://dalganmap.ru/api-image/images/POI/8060.png",
39535
- filtering:"mipmap",
39536
- sprites:{ base:[ 0,
39537
- 0,
39538
- 20,
39539
- 20 ] } },
39540
- POI_5511:{ url:"https://dalganmap.ru/api-image/images/POI/5511.png",
39541
- filtering:"mipmap",
39542
- sprites:{ base:[ 0,
39543
- 0,
39544
- 20,
39545
- 20 ] } },
39546
- POI_5512:{ url:"https://dalganmap.ru/api-image/images/POI/5512.png",
39547
- filtering:"mipmap",
39548
- sprites:{ base:[ 0,
39549
- 0,
39550
- 20,
39551
- 20 ] } },
39552
- POI_5800:{ url:"https://dalganmap.ru/api-image/images/POI/5800.png",
39553
- filtering:"mipmap",
39554
- sprites:{ base:[ 0,
39555
- 0,
39556
- 20,
39557
- 20 ] } },
39558
- POI_5999:{ url:"https://dalganmap.ru/api-image/images/POI/5999.png",
39559
- filtering:"mipmap",
39560
- sprites:{ base:[ 0,
39561
- 0,
39562
- 20,
39563
- 20 ] } },
39564
- POI_7011:{ url:"https://dalganmap.ru/api-image/images/POI/7011.png",
39565
- filtering:"mipmap",
39566
- sprites:{ base:[ 0,
39567
- 0,
39568
- 20,
39569
- 20 ] } },
39570
- POI_7389:{ url:"https://dalganmap.ru/api-image/images/POI/7389.png",
39571
- filtering:"mipmap",
39572
- sprites:{ base:[ 0,
39573
- 0,
39574
- 20,
39575
- 20 ] } },
39576
- POI_7832:{ url:"https://dalganmap.ru/api-image/images/POI/7832.png",
39577
- filtering:"mipmap",
39578
- sprites:{ base:[ 0,
39579
- 0,
39580
- 20,
39581
- 20 ] } },
39582
- POI_7929:{ url:"https://dalganmap.ru/api-image/images/POI/7929.png",
39583
- filtering:"mipmap",
39584
- sprites:{ base:[ 0,
39585
- 0,
39586
- 20,
39587
- 20 ] } },
39588
- POI_7990:{ url:"https://dalganmap.ru/api-image/images/POI/7990.png",
39589
- filtering:"mipmap",
39590
- sprites:{ base:[ 0,
39591
- 0,
39592
- 20,
39593
- 20 ] } },
39594
- POI_7999:{ url:"https://dalganmap.ru/api-image/images/POI/7999.png",
39595
- filtering:"mipmap",
39596
- sprites:{ base:[ 0,
39597
- 0,
39598
- 20,
39599
- 20 ] } },
39600
- POI_8410:{ url:"https://dalganmap.ru/api-image/images/POI/8410.png",
39601
- filtering:"mipmap",
39602
- sprites:{ base:[ 0,
39603
- 0,
39604
- 20,
39605
- 20 ] } },
39606
- POI_9517:{ url:"https://dalganmap.ru/api-image/images/POI/9517.png",
39607
- filtering:"mipmap",
39608
- sprites:{ base:[ 0,
39609
- 0,
39610
- 20,
39611
- 20 ] } },
39612
- POI_9718:{ url:"https://dalganmap.ru/api-image/images/POI/9718.png",
39613
- filtering:"mipmap",
39614
- sprites:{ base:[ 0,
39615
- 0,
39616
- 20,
39617
- 20 ] } },
39618
- "POI_9992(mosque)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_mosque.png",
39619
- filtering:"mipmap",
39620
- sprites:{ base:[ 0,
39621
- 0,
39622
- 20,
39623
- 20 ] } },
39624
- "POI_9992(church)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_church.png",
39625
- filtering:"mipmap",
39626
- sprites:{ base:[ 0,
39627
- 0,
39628
- 20,
39629
- 20 ] } },
39630
- "POI_9992(temple)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_temple.png",
39631
- filtering:"mipmap",
39632
- sprites:{ base:[ 0,
39633
- 0,
39634
- 20,
39635
- 20 ] } },
39636
- "POI_9992(davidStar)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_davidStar.png",
39637
- filtering:"mipmap",
39638
- sprites:{ base:[ 0,
39639
- 0,
39640
- 20,
39641
- 20 ] } },
39642
- "POI_9992(mortar)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_mortar.png",
39643
- filtering:"mipmap",
39644
- sprites:{ base:[ 0,
39645
- 0,
39646
- 20,
39647
- 20 ] } },
39648
- "POI_4100(metro)":{ url:"https://dalganmap.ru/api-image/images/POI/4100_metro.png",
39649
- filtering:"mipmap",
39650
- sprites:{ base:[ 0,
39651
- 0,
39652
- 20,
39653
- 20 ] } },
39654
- "POI_4100(diameter)":{ url:"https://dalganmap.ru/api-image/images/POI/4100_diameter.png",
39655
- filtering:"mipmap",
39656
- sprites:{ base:[ 0,
39657
- 0,
39658
- 41,
39659
- 15 ] } },
39660
- POI_4013:{ url:"https://dalganmap.ru/api-image/images/POI/4013.png",
39661
- filtering:"mipmap",
39662
- sprites:{ base:[ 0,
39663
- 0,
39664
- 20,
39665
- 20 ] } } },
39666
- layers:null,
39667
- styles:{ buildings:{ base:"polygons",
39668
- shaders:{ blocks:{ color:"color.rgb;\n" } } } },
39669
- lights:{ light1:{ type:"directional",
39670
- direction:[ 0.1,
39671
- 0.5,
39672
- -1 ],
39673
- diffuse:0.7,
39674
- ambient:0.5 } },
39675
- sources:null };
39676
- data.global;
39677
- data.cameras;
39678
- data.textures;
39679
- data.layers;
39680
- data.styles;
39681
- data.lights;
39682
- data.sources;
39683
-
39684
39417
  const getBuildingLayers = (source) => {
39685
39418
  const layers = [];
39686
39419
  const data = {
@@ -43627,270 +43360,11 @@ const getLayerModalsNames = (layer) => {
43627
43360
  return layerModalsNames;
43628
43361
  };
43629
43362
 
43630
- const useGetLeafletLayer = ({ eventHandlers, defaultLayers, }) => {
43631
- const [layer, setLayer] = React__namespace.useState(null);
43632
- const [config, setConfig] = React__namespace.useState(null);
43633
- const [isReady, setIsReady] = React__namespace.useState(false);
43634
- const scene = React__namespace.useMemo(() => {
43635
- if (layer === null)
43636
- return null;
43637
- const { scene } = layer;
43638
- return scene;
43639
- }, [layer]);
43640
- const getLeafletLayer = React__namespace.useCallback(() => {
43641
- Promise.resolve().then(function () { return tangram_min; }).then(() => {
43642
- if (window.Tangram) {
43643
- const leafletLayer = window.Tangram.leafletLayer({
43644
- scene: data,
43645
- modifyScrollWheel: false,
43646
- modifyZoomBehavior: false,
43647
- });
43648
- const { scene } = leafletLayer;
43649
- scene.subscribe({
43650
- load: ({ config }) => {
43651
- setConfig(config);
43652
- setIsReady(true);
43653
- },
43654
- });
43655
- leafletLayer.on('load', ({ sourceTarget }) => {
43656
- const mapInstance = sourceTarget._map;
43657
- leafletLayer.setSelectionEvents({
43658
- click: ({ feature, leaflet_event }) => {
43659
- if (feature) {
43660
- const { source_layer, properties } = feature;
43661
- eventHandlers?.[source_layer]?.click?.({
43662
- leaflet_event,
43663
- properties,
43664
- });
43665
- }
43666
- },
43667
- hover: ({ feature, leaflet_event }) => {
43668
- const mapContainer = mapInstance.getContainer();
43669
- if (feature) {
43670
- const { source_layer, properties } = feature;
43671
- mapContainer.style.cursor = 'pointer';
43672
- eventHandlers?.[source_layer]?.hover?.({
43673
- leaflet_event,
43674
- properties,
43675
- });
43676
- }
43677
- else {
43678
- mapContainer.style.cursor = 'default';
43679
- }
43680
- },
43681
- });
43682
- });
43683
- setLayer(leafletLayer);
43684
- }
43685
- });
43686
- }, [eventHandlers]);
43687
- const checkConfig = React__namespace.useCallback((callback) => {
43688
- if (config) {
43689
- callback(config);
43690
- }
43691
- else {
43692
- loggerService.warn({
43693
- message: 'Config не инициализирована',
43694
- });
43695
- }
43696
- }, [config]);
43697
- const checkScene = React__namespace.useCallback((callback) => {
43698
- checkConfig((config) => {
43699
- if (scene) {
43700
- callback({
43701
- config,
43702
- scene,
43703
- });
43704
- }
43705
- else {
43706
- loggerService.warn({
43707
- message: 'Scene не инициализирована',
43708
- });
43709
- }
43710
- });
43711
- }, [checkConfig, scene]);
43712
- const addSource = React__namespace.useCallback((sourceName) => {
43713
- checkScene(({ config, scene }) => {
43714
- const url = sourceUrl[sourceName];
43715
- config.sources[sourceName] = {
43716
- tile_size,
43717
- url,
43718
- type: 'MVT',
43719
- };
43720
- scene.updateConfig({ rebuild: true });
43721
- });
43722
- }, [checkScene]);
43723
- const deleteSource = React__namespace.useCallback((sourceName) => {
43724
- checkScene(({ config, scene }) => {
43725
- delete config.sources[sourceName];
43726
- scene.updateConfig({ rebuild: true });
43727
- });
43728
- }, [checkScene]);
43729
- const getSource = React__namespace.useCallback((sourceName) => {
43730
- let source = null;
43731
- checkConfig((config) => {
43732
- source = structuredClone(config.sources[sourceName]);
43733
- });
43734
- return source;
43735
- }, [checkConfig]);
43736
- const updateSource = React__namespace.useCallback((sourceName, newUrl) => {
43737
- checkScene(({ config, scene }) => {
43738
- config.sources[sourceName].url = newUrl;
43739
- scene.updateConfig({ rebuild: true });
43740
- });
43741
- }, [checkScene]);
43742
- const reloadSource = React__namespace.useCallback((sourceName) => {
43743
- deleteSource(sourceName);
43744
- addSource(sourceName);
43745
- }, [deleteSource, addSource]);
43746
- const addLayer = React__namespace.useCallback((layer) => {
43747
- checkScene(({ config, scene }) => {
43748
- const order = getLayers().length + 1;
43749
- const validLayer = getValidLayer({
43750
- layer,
43751
- order,
43752
- eventHandlers,
43753
- });
43754
- const layerName = getLayerName(validLayer);
43755
- const { sublayers, draw, textures } = validLayer;
43756
- if (draw) {
43757
- const { styles } = draw;
43758
- if (styles) {
43759
- validLayer.draw = {
43760
- ...structuredClone(validLayer.draw),
43761
- ...structuredClone(styles),
43762
- };
43763
- }
43764
- }
43765
- config.layers[layerName] = {
43766
- ...structuredClone(validLayer),
43767
- ...structuredClone(sublayers),
43768
- };
43769
- config.textures = {
43770
- ...structuredClone(config.textures),
43771
- ...structuredClone(textures),
43772
- };
43773
- scene.updateConfig({ rebuild: true });
43774
- });
43775
- }, [checkScene]);
43776
- const removeLayer = React__namespace.useCallback((layer) => {
43777
- const layerName = getLayerName(layer);
43778
- checkScene(({ config, scene }) => {
43779
- delete config.layers[layerName];
43780
- scene.updateConfig({ rebuild: true });
43781
- });
43782
- }, [checkScene]);
43783
- const addStyle = React__namespace.useCallback(({ name, style }) => {
43784
- checkScene(({ config, scene }) => {
43785
- config.styles[name] = structuredClone(style);
43786
- scene.updateConfig({ rebuild: true });
43787
- });
43788
- }, [checkScene]);
43789
- const getLayerVisibility = React__namespace.useCallback((layer) => {
43790
- let layerVisibility = true;
43791
- const layerName = getLayerName(layer);
43792
- checkConfig((config) => {
43793
- const { visible = true } = config.layers[layerName];
43794
- layerVisibility = visible;
43795
- });
43796
- return layerVisibility;
43797
- }, [getLayerName, checkConfig]);
43798
- const toggleLayerVisibility = React__namespace.useCallback(({ layer, visible }) => {
43799
- const layerName = getLayerName(layer);
43800
- checkScene(({ config, scene }) => {
43801
- config.layers[layerName].visible = visible;
43802
- scene.updateConfig({ rebuild: true });
43803
- });
43804
- }, [checkScene]);
43805
- const getLayers = React__namespace.useCallback(() => {
43806
- const layers = [];
43807
- checkConfig((config) => {
43808
- layers.push(...Object.keys(config.layers));
43809
- });
43810
- return layers;
43811
- }, [checkConfig]);
43812
- const removeLayers = React__namespace.useCallback(() => {
43813
- checkConfig((config) => {
43814
- const { layers } = config;
43815
- Object.values(layers).forEach(removeLayer);
43816
- });
43817
- }, [checkConfig, removeLayer]);
43818
- const getSources = React__namespace.useCallback(() => {
43819
- const sources = [];
43820
- checkConfig((config) => {
43821
- sources.push(...Object.keys(config.sources));
43822
- });
43823
- return sources;
43824
- }, [config]);
43825
- React__namespace.useEffect(() => {
43826
- if (GlobalConfig.instance.isValidApiKey) {
43827
- getLeafletLayer();
43828
- }
43829
- return () => {
43830
- setLayer(null);
43831
- setConfig(null);
43832
- };
43833
- }, [GlobalConfig.instance.isValidApiKey]);
43834
- React__namespace.useEffect(() => {
43835
- addStyle({
43836
- name: 'zebra_crossing',
43837
- style: {
43838
- base: 'polygons',
43839
- lighting: false,
43840
- shaders: {
43841
- attributes: {
43842
- a_angle: {
43843
- type: 'float',
43844
- default: 0.0,
43845
- },
43846
- },
43847
- uniforms: {
43848
- u_stripe_width: 1,
43849
- },
43850
- blocks: {
43851
- filter: `
43852
- vec3 pos = worldPosition().xyz;
43853
-
43854
- float ang = radians(a_angle);
43855
-
43856
- vec2 dir = vec2(sin(ang), cos(ang));
43857
-
43858
- float positionAlongLine = dot(pos.xy, dir);
43859
-
43860
- float stripe = step(1.0, mod(positionAlongLine / u_stripe_width, 2.0));
43861
-
43862
- color.rgb = mix(vec3(1.0, 1.0, 1.0), vec3(1.0, 0.8, 0.0), stripe);
43863
-
43864
- color.a = 1.0;
43865
- `,
43866
- },
43867
- },
43868
- },
43869
- });
43870
- Object.values(exports.TangramSourceNames).forEach(addSource);
43871
- }, [addStyle, addSource]);
43872
- React__namespace.useEffect(() => {
43873
- if (defaultLayers && isReady) {
43874
- defaultLayers.map(addLayer);
43875
- }
43876
- }, [defaultLayers, addLayer, isReady]);
43877
- return {
43878
- layer,
43879
- scene,
43880
- config,
43881
- addSource,
43882
- getSource,
43883
- updateSource,
43884
- reloadSource,
43885
- addLayer,
43886
- removeLayer,
43887
- addStyle,
43888
- getLayerVisibility,
43889
- toggleLayerVisibility,
43890
- getSources,
43891
- getLayers,
43892
- removeLayers,
43893
- };
43363
+ const tile_size = 256;
43364
+ const sourceUrl = {
43365
+ [exports.TangramSourceNames.TILE]: `${"$VITE_API_HOST/api"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
43366
+ [exports.TangramSourceNames.NATURE_TILE]: `${"$VITE_API_HOST/api"}/tiles/get_nature_tile/{z}/{x}/{y}.mvt`,
43367
+ [exports.TangramSourceNames.MSK]: `${"$VITE_API_HOST/api"}/tiles/get_tile/{z}/{x}/{y}.mvt`,
43894
43368
  };
43895
43369
 
43896
43370
  function extendContext(source, extra) {
@@ -44063,6 +43537,251 @@ LayersControl.Overlay = createControlledLayer(function addOverlay(layersControl,
44063
43537
  layersControl.addOverlay(layer, name);
44064
43538
  });
44065
43539
 
43540
+ var data = { global:{ links:{ getIsConstruction:"function (feature) {\n const { construction } = feature;\n\n return construction;\n}\n",
43541
+ getIsFunctionalClass:"function (feature) {\n const { functional_class, access_id } = feature;\n\n return functional_class === 5 && access_id === 32;\n}\n",
43542
+ getIsLowMobility:"function (feature) {\n const { functional_class, low_mobility } = feature;\n\n return functional_class === 5 && low_mobility === 1;\n}\n" } },
43543
+ cameras:{ camera1:{ type:"perspective",
43544
+ vanishing_point:[ 0,
43545
+ -500 ] } },
43546
+ textures:{ arrow:{ url:"https://dalganmap.ru/api-image/images/arrow-20.png",
43547
+ sprites:{ base:[ 0,
43548
+ 0,
43549
+ 20,
43550
+ 20 ] } },
43551
+ "traffic-signal":{ url:"https://dalganmap.ru/api-image/images/conditions/traffic-signal.png",
43552
+ filtering:"mipmap",
43553
+ sprites:{ base:[ 0,
43554
+ 0,
43555
+ 20,
43556
+ 20 ] } },
43557
+ pedestrian_crossing:{ url:"https://dalganmap.ru/api-image/images/conditions/pedestrian_crossing.png",
43558
+ filtering:"mipmap",
43559
+ sprites:{ base:[ 0,
43560
+ 0,
43561
+ 20,
43562
+ 20 ] } },
43563
+ physical:{ url:"https://dalganmap.ru/api-image/images/conditions/physical.png",
43564
+ filtering:"mipmap",
43565
+ sprites:{ base:[ 0,
43566
+ 0,
43567
+ 20,
43568
+ 20 ] } },
43569
+ gate:{ url:"https://dalganmap.ru/api-image/images/conditions/gate.png",
43570
+ filtering:"mipmap",
43571
+ sprites:{ base:[ 0,
43572
+ 0,
43573
+ 20,
43574
+ 20 ] } },
43575
+ POI_3578:{ url:"https://dalganmap.ru/api-image/images/POI/3578.png",
43576
+ filtering:"mipmap",
43577
+ sprites:{ base:[ 0,
43578
+ 0,
43579
+ 20,
43580
+ 20 ] } },
43581
+ POI_5813:{ url:"https://dalganmap.ru/api-image/images/POI/5813.png",
43582
+ filtering:"mipmap",
43583
+ sprites:{ base:[ 0,
43584
+ 0,
43585
+ 20,
43586
+ 20 ] } },
43587
+ POI_5541:{ url:"https://dalganmap.ru/api-image/images/POI/5541.png",
43588
+ filtering:"mipmap",
43589
+ sprites:{ base:[ 0,
43590
+ 0,
43591
+ 20,
43592
+ 20 ] } },
43593
+ POI_5540:{ url:"https://dalganmap.ru/api-image/images/POI/5540.png",
43594
+ filtering:"mipmap",
43595
+ sprites:{ base:[ 0,
43596
+ 0,
43597
+ 20,
43598
+ 20 ] } },
43599
+ "POI_9530(Mail)":{ url:"https://dalganmap.ru/api-image/images/POI/mail.png",
43600
+ filtering:"mipmap",
43601
+ sprites:{ base:[ 0,
43602
+ 0,
43603
+ 20,
43604
+ 20 ] } },
43605
+ "POI_9530(Delivery)":{ url:"https://dalganmap.ru/api-image/images/POI/delivery.png",
43606
+ filtering:"mipmap",
43607
+ sprites:{ base:[ 0,
43608
+ 0,
43609
+ 20,
43610
+ 20 ] } },
43611
+ POI_5400:{ url:"https://dalganmap.ru/api-image/images/POI/5400.png",
43612
+ filtering:"mipmap",
43613
+ sprites:{ base:[ 0,
43614
+ 0,
43615
+ 20,
43616
+ 20 ] } },
43617
+ POI_6000:{ url:"https://dalganmap.ru/api-image/images/POI/6000.png",
43618
+ filtering:"mipmap",
43619
+ sprites:{ base:[ 0,
43620
+ 0,
43621
+ 20,
43622
+ 20 ] } },
43623
+ POI_9565:{ url:"https://dalganmap.ru/api-image/images/POI/9565.png",
43624
+ filtering:"mipmap",
43625
+ sprites:{ base:[ 0,
43626
+ 0,
43627
+ 20,
43628
+ 20 ] } },
43629
+ POI_9583:{ url:"https://dalganmap.ru/api-image/images/POI/9583.png",
43630
+ filtering:"mipmap",
43631
+ sprites:{ base:[ 0,
43632
+ 0,
43633
+ 20,
43634
+ 20 ] } },
43635
+ POI_8060:{ url:"https://dalganmap.ru/api-image/images/POI/8060.png",
43636
+ filtering:"mipmap",
43637
+ sprites:{ base:[ 0,
43638
+ 0,
43639
+ 20,
43640
+ 20 ] } },
43641
+ POI_5511:{ url:"https://dalganmap.ru/api-image/images/POI/5511.png",
43642
+ filtering:"mipmap",
43643
+ sprites:{ base:[ 0,
43644
+ 0,
43645
+ 20,
43646
+ 20 ] } },
43647
+ POI_5512:{ url:"https://dalganmap.ru/api-image/images/POI/5512.png",
43648
+ filtering:"mipmap",
43649
+ sprites:{ base:[ 0,
43650
+ 0,
43651
+ 20,
43652
+ 20 ] } },
43653
+ POI_5800:{ url:"https://dalganmap.ru/api-image/images/POI/5800.png",
43654
+ filtering:"mipmap",
43655
+ sprites:{ base:[ 0,
43656
+ 0,
43657
+ 20,
43658
+ 20 ] } },
43659
+ POI_5999:{ url:"https://dalganmap.ru/api-image/images/POI/5999.png",
43660
+ filtering:"mipmap",
43661
+ sprites:{ base:[ 0,
43662
+ 0,
43663
+ 20,
43664
+ 20 ] } },
43665
+ POI_7011:{ url:"https://dalganmap.ru/api-image/images/POI/7011.png",
43666
+ filtering:"mipmap",
43667
+ sprites:{ base:[ 0,
43668
+ 0,
43669
+ 20,
43670
+ 20 ] } },
43671
+ POI_7389:{ url:"https://dalganmap.ru/api-image/images/POI/7389.png",
43672
+ filtering:"mipmap",
43673
+ sprites:{ base:[ 0,
43674
+ 0,
43675
+ 20,
43676
+ 20 ] } },
43677
+ POI_7832:{ url:"https://dalganmap.ru/api-image/images/POI/7832.png",
43678
+ filtering:"mipmap",
43679
+ sprites:{ base:[ 0,
43680
+ 0,
43681
+ 20,
43682
+ 20 ] } },
43683
+ POI_7929:{ url:"https://dalganmap.ru/api-image/images/POI/7929.png",
43684
+ filtering:"mipmap",
43685
+ sprites:{ base:[ 0,
43686
+ 0,
43687
+ 20,
43688
+ 20 ] } },
43689
+ POI_7990:{ url:"https://dalganmap.ru/api-image/images/POI/7990.png",
43690
+ filtering:"mipmap",
43691
+ sprites:{ base:[ 0,
43692
+ 0,
43693
+ 20,
43694
+ 20 ] } },
43695
+ POI_7999:{ url:"https://dalganmap.ru/api-image/images/POI/7999.png",
43696
+ filtering:"mipmap",
43697
+ sprites:{ base:[ 0,
43698
+ 0,
43699
+ 20,
43700
+ 20 ] } },
43701
+ POI_8410:{ url:"https://dalganmap.ru/api-image/images/POI/8410.png",
43702
+ filtering:"mipmap",
43703
+ sprites:{ base:[ 0,
43704
+ 0,
43705
+ 20,
43706
+ 20 ] } },
43707
+ POI_9517:{ url:"https://dalganmap.ru/api-image/images/POI/9517.png",
43708
+ filtering:"mipmap",
43709
+ sprites:{ base:[ 0,
43710
+ 0,
43711
+ 20,
43712
+ 20 ] } },
43713
+ POI_9718:{ url:"https://dalganmap.ru/api-image/images/POI/9718.png",
43714
+ filtering:"mipmap",
43715
+ sprites:{ base:[ 0,
43716
+ 0,
43717
+ 20,
43718
+ 20 ] } },
43719
+ "POI_9992(mosque)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_mosque.png",
43720
+ filtering:"mipmap",
43721
+ sprites:{ base:[ 0,
43722
+ 0,
43723
+ 20,
43724
+ 20 ] } },
43725
+ "POI_9992(church)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_church.png",
43726
+ filtering:"mipmap",
43727
+ sprites:{ base:[ 0,
43728
+ 0,
43729
+ 20,
43730
+ 20 ] } },
43731
+ "POI_9992(temple)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_temple.png",
43732
+ filtering:"mipmap",
43733
+ sprites:{ base:[ 0,
43734
+ 0,
43735
+ 20,
43736
+ 20 ] } },
43737
+ "POI_9992(davidStar)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_davidStar.png",
43738
+ filtering:"mipmap",
43739
+ sprites:{ base:[ 0,
43740
+ 0,
43741
+ 20,
43742
+ 20 ] } },
43743
+ "POI_9992(mortar)":{ url:"https://dalganmap.ru/api-image/images/POI/9992_mortar.png",
43744
+ filtering:"mipmap",
43745
+ sprites:{ base:[ 0,
43746
+ 0,
43747
+ 20,
43748
+ 20 ] } },
43749
+ "POI_4100(metro)":{ url:"https://dalganmap.ru/api-image/images/POI/4100_metro.png",
43750
+ filtering:"mipmap",
43751
+ sprites:{ base:[ 0,
43752
+ 0,
43753
+ 20,
43754
+ 20 ] } },
43755
+ "POI_4100(diameter)":{ url:"https://dalganmap.ru/api-image/images/POI/4100_diameter.png",
43756
+ filtering:"mipmap",
43757
+ sprites:{ base:[ 0,
43758
+ 0,
43759
+ 41,
43760
+ 15 ] } },
43761
+ POI_4013:{ url:"https://dalganmap.ru/api-image/images/POI/4013.png",
43762
+ filtering:"mipmap",
43763
+ sprites:{ base:[ 0,
43764
+ 0,
43765
+ 20,
43766
+ 20 ] } } },
43767
+ layers:null,
43768
+ styles:{ buildings:{ base:"polygons",
43769
+ shaders:{ blocks:{ color:"color.rgb;\n" } } } },
43770
+ lights:{ light1:{ type:"directional",
43771
+ direction:[ 0.1,
43772
+ 0.5,
43773
+ -1 ],
43774
+ diffuse:0.7,
43775
+ ambient:0.5 } },
43776
+ sources:null };
43777
+ data.global;
43778
+ data.cameras;
43779
+ data.textures;
43780
+ data.layers;
43781
+ data.styles;
43782
+ data.lights;
43783
+ data.sources;
43784
+
44066
43785
  class TangramLayer {
44067
43786
  props;
44068
43787
  constructor(props) {
@@ -46964,6 +46683,21 @@ const AuthPage = ({ onSuccess, onError }) => {
46964
46683
  }, children: [jsxRuntime.jsx(material.Typography, { variant: "h4", children: "\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F" }), jsxRuntime.jsx(CustomInput, { ...register('username'), label: "\u041B\u043E\u0433\u0438\u043D", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043B\u043E\u0433\u0438\u043D" }), jsxRuntime.jsx(CustomInput, { ...register('password'), label: "\u041F\u0430\u0440\u043E\u043B\u044C", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C", type: "password" }), jsxRuntime.jsx(Button, { type: "submit", disabled: !isValid, children: "\u0412\u043E\u0439\u0442\u0438" })] }) }));
46965
46684
  };
46966
46685
 
46686
+ /* eslint-disable no-console */
46687
+ class LoggerService {
46688
+ constructor() { }
46689
+ log({ message, context, meta, }) {
46690
+ console.log(context, message, meta);
46691
+ }
46692
+ warn({ message, context, meta, }) {
46693
+ console.warn(context, message, meta);
46694
+ }
46695
+ error({ message, context, meta, }) {
46696
+ console.error(context, message, meta);
46697
+ }
46698
+ }
46699
+ const loggerService = new LoggerService();
46700
+
46967
46701
  // define() gets called for each chunk generated by the first Rollup pass.
46968
46702
  // The order the chunks are called in is controlled by the imports in bundle.js:
46969
46703
  //
@@ -48158,7 +47892,6 @@ exports.trafficSignalConfig = trafficSignalConfig;
48158
47892
  exports.trafficSigns = trafficSigns;
48159
47893
  exports.trafficSignsDop = trafficSignsDop;
48160
47894
  exports.useFormContext = useFormContext;
48161
- exports.useGetLeafletLayer = useGetLeafletLayer;
48162
47895
  exports.useGetUser = useGetUser;
48163
47896
  exports.useLazyGetUser = useLazyGetUser;
48164
47897
  exports.useShowErrorSnackbar = useShowErrorSnackbar;