{"version":3,"file":"UdpMapComponent.mjs","names":["React","MapComponent","Map","UdpMapComponentProps","map","handleSetMapComponent","data","isGeoJsonFormat","geoJsonMappingConfig","enableZoom","mapZoom","mapCenter","mapHeight","crs","mapProjection","mapDataProjection","getFilteredMapData","getFeatureStyles","getSelectedFeatureStyles","filterPanel","filterPanelCallback","enableTileSelection","tileLayersOptions","defaultTileOptionName","layerOptions","initialSelectedLayers","bulkSelectedFeaturesActionPanel","handleSetSelectedFeaturesOnBulkSelect","handleSetSelectedFeatureOnSelect","filterLayersByRole","layerKeys","layerKeySeparator","user","layerRoles","filteredLayerOptionsByRole","handleSetFilteredLayerOptionsByRole","readOnlyMap","enableViewFeature","handleViewFeature","enableDeleteFeature","handleDeleteFeature","enableEditFeature","handleEditFeature","bulkSelectionActive","splitActive","enableDragBox","selectFeatureInteraction","handleSetSelectedFeatureProperties","selectedFeatureCoordinates","selectedFeatureProperties","enableAddNewFeature","handleGetZoomExtent","selectedFeatureIdExternal","readOnlyLayers","additionalOnclosePopover","event","popoverPrimaryActions","popoverMoreIconButtonActions","getMessagePopover","getMessageIconPopover","hideMessageIconPopover","popoverCardConfig","selectedLayers","handleSelectLayers","value","handleSetSelectedLayers","getVectorLayerSources","minZoom","maxZoom","UdpMapComponent","FC","props","$","_c","t0"],"sources":["../../../src/UI/maps/UdpMapComponent.tsx"],"sourcesContent":["import React from 'react';\nimport { MapComponent as Map } from '@univerus/udp-react-stencil-component-library';\n\nexport interface UdpMapComponentProps {\n  /* Map instance */\n  map: any;\n\n  /* Method to set map component when using the toolbar */\n  handleSetMapComponent?: any;\n\n  /* Feature data (in either Geo-JSON format or not). Geo-JSON format: [{ type: string, id: string, geometry: { type: 'Point' | 'LineString' | 'Polygon', coordinates: Coordinate }, properties: any }] */\n  data?: any[];\n\n  /* Boolean stating if the data is in Geo-JSON format */\n  isGeoJsonFormat?: boolean;\n\n  /* Method - If data is not in Geo-JSON format, returns data in Geo-JSON format */\n  geoJsonMappingConfig?: any;\n\n  /* Allows zoom */\n  enableZoom?: boolean;\n\n  /* Default map zoom */\n  mapZoom?: number;\n\n  /* Default map center */\n  mapCenter?: any;\n\n  /* Map height */\n  mapHeight?: string;\n\n  /* Coordinate reference system used */\n  crs?: any;\n\n  /* Map feature projection used */\n  mapProjection?: string;\n\n  /* Map data projection used */\n  mapDataProjection?: string;\n\n  /* Method - Custom filter for map features */\n  getFilteredMapData?: any;\n\n  /* Method - Returns custom styles for features */\n  getFeatureStyles?: any;\n\n  /* Method - Returns custom styles for selected features */\n  getSelectedFeatureStyles?: any;\n\n  /* Custom filter panel */\n  filterPanel?: string;\n\n  /* Method - Callback to filter features from custom filter panel */\n  filterPanelCallback?: any;\n\n  /* Allows selecting tile layer */\n  enableTileSelection?: boolean;\n\n  /* List of tile layers visible on the map */\n  tileLayersOptions?: any[];\n\n  /* Default tile layer name */\n  defaultTileOptionName?: string;\n\n  /* List of options for vector layers */\n  layerOptions?: any[];\n\n  /* Vector layers selected in the layer filter on initial map load */\n  initialSelectedLayers?: any[];\n\n  /* Custom action panel for selected features */\n  bulkSelectedFeaturesActionPanel?: string;\n\n  /* Method - Retrieves selected features when bulk selected */\n  handleSetSelectedFeaturesOnBulkSelect: any;\n\n  /* Method - Retrieves selected feature when individually selected */\n  handleSetSelectedFeatureOnSelect: any;\n\n  /* Enables filtering layers by role */\n  filterLayersByRole: boolean;\n\n  /* Layer keys to get the current feature layer when adding layers with features to the map */\n  layerKeys?: string[];\n\n  /* Layer key separator to get the current feature layer when adding layers with features to the map */\n  layerKeySeparator?: string;\n\n  /* Authenticated user from Unity - used to filter layers by role */\n  user?: any;\n\n  /* Layers assigned to roles */\n  layerRoles?: any;\n\n  /* Filtered layer options by role */\n  filteredLayerOptionsByRole: any[];\n\n  /* Method to set filtered layer options by role */\n  handleSetFilteredLayerOptionsByRole?: any;\n\n  /* Map is read-only (setting true removes the add, edit, delete functionality) */\n  readOnlyMap: boolean;\n\n  /* Enables viewing a selected feature */\n  enableViewFeature: boolean;\n\n  /* Method to enable viewing a selected feature */\n  handleViewFeature: any;\n\n  /* Enables deleting a selected feature */\n  enableDeleteFeature: boolean;\n\n  /* Method to handle deleting a selected feature */\n  handleDeleteFeature?: any;\n\n  /* Enables editing a selected feature */\n  enableEditFeature: boolean;\n\n  /* Method to handle editing a selected feature */\n  handleEditFeature?: any;\n\n  /* State - if bulk selection is active */\n  bulkSelectionActive: boolean;\n\n  /* State - if bulk split is active */\n  splitActive: boolean;\n\n  /* State - if drag box is active */\n  enableDragBox: boolean;\n\n  /* Select feature interaction */\n  selectFeatureInteraction: any;\n\n  /* Method to set the selected feature property values */\n  handleSetSelectedFeatureProperties: any;\n\n  /* Coordinates of selected features */\n  selectedFeatureCoordinates: any[];\n\n  /* Properties of selected features */\n  selectedFeatureProperties: any;\n\n  /* Key value pairs of selected features */\n  // selectedFeatureObjectKeyValuePairs: any[];\n\n  /* Enables button to add a new feature */\n  enableAddNewFeature: boolean;\n\n  /* Callback method to return map zoom and extent when the resolution changes */\n  handleGetZoomExtent?: any;\n\n   /* Selected feature Id from external source */\n  selectedFeatureIdExternal?: string | number;\n\n  /* List of layers that are read only */\n  readOnlyLayers?: string[];\n\n  /* Additional on close popover event */\n  additionalOnclosePopover?: (event: any) => void;\n\n  /* Array of primary action configurations for the popover (e.g., buttons) */\n  popoverPrimaryActions: any[];\n\n  /* Array of additional actions for the popover's \"more\" icon button (e.g., menu items) */\n  popoverMoreIconButtonActions: any[];\n\n  /* Function to get the message text to display in the popover, based on feature data */\n  getMessagePopover: (data: any) => string;\n\n  /* Function to get the icon to display in the popover, based on feature data */\n  getMessageIconPopover: (data: any) => any;\n\n  /* Boolean to control whether the message icon in the popover should be hidden */\n  hideMessageIconPopover: boolean;\n\n  /* Configuration object for customizing the popover card's appearance or behavior */\n  popoverCardConfig: any;\n\n  /* Array of currently selected layers on the map */\n  selectedLayers: any[];\n\n  /* Handler for when layers are selected (e.g., from a UI control) */\n  handleSelectLayers: (value: any) => void;\n\n  /* Handler to set the selected layers programmatically */\n  handleSetSelectedLayers: (value: any) => void;\n\n  /* Function or object to retrieve vector layer sources for the map */\n  getVectorLayerSources: any;\n\n  minZoom?: number;\n  maxZoom?: number\n}\n\nexport const UdpMapComponent: React.FC<UdpMapComponentProps> = (props: UdpMapComponentProps) => {\n  return <Map {...props} />;\n};\n"],"mappings":";;;;AAkMA,MAAaqE,mBAAkDE,UAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;AAAA,KAAAF,EAAA,OAAAD,OAAA;AACtDG,OAAA,sBAAA,cAAC,cAAQH,MAAS;AAAAC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;OAAAA,MAAAF,EAAA;AAAA,QAAlBE"}