{"version":3,"file":"UdpMap.mjs","names":["React","UdpMap","Map","UdpMapProps","enableToolbar","mapTitle","data","isGeoJsonFormat","geoJsonMappingConfig","enableZoom","mapZoom","mapCenter","mapHeight","crs","mapProjection","mapDataProjection","getFilteredMapData","getFeatureStyles","getSelectedFeatureStyles","filterPanel","filterPanelCallback","enableTileSelection","tileLayersOptions","defaultTileOptionName","layerOptions","initialSelectedLayers","handleSelectLayersCallback","bulkSelectedFeaturesActionPanel","handleSetSelectedFeaturesOnBulkSelect","handleSetSelectedFeatureOnSelect","filterLayersByRole","layerKeys","layerKeySeparator","user","layerRoles","handleRefresh","refreshButtonTooltip","readOnlyMap","enableAdd","handleAddNewFeatures","addMultipleFeatures","enableSplitFeature","handleSplitFeature","enableViewFeature","handleViewFeature","enableDeleteFeature","handleDeleteFeature","enableEditFeature","handleEditFeature","handleGetZoomExtent","cardConfig","popoverPrimaryActions","id","name","iconName","onClick","popoverMoreIconButtonActions","getMessagePopover","getMessageIconPopover","hideMessageIconPopover","readOnlyLayers","minZoom","maxZoom","FC","props","$","_c","t0"],"sources":["../../../src/UI/maps/UdpMap.tsx"],"sourcesContent":["import React from 'react';\nimport { UdpMap as Map } from '@univerus/udp-react-stencil-component-library';\n\nexport interface UdpMapProps {\n  /* Enables the toolbar */\n  enableToolbar?: boolean;\n\n  /* Title appearing on map */\n  mapTitle?: string;\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  /* Callback to return layers that are selected */\n  handleSelectLayersCallback: 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  /* Callback method to refresh map */\n  handleRefresh?: any;\n\n  /* Custom tooltip message on refresh button */\n  refreshButtonTooltip?: string;\n\n  /* Map is read-only (setting true removes the add, edit, delete functionality) */\n  readOnlyMap: boolean;\n\n  /* Enables adding a new feature by drawing on the map */\n  enableAdd: boolean;\n\n  /* When adding features on the map by drawing, this callback method returns the newly added features */\n  handleAddNewFeatures: any;\n\n  /* When adding features by drawing, add multiple features */\n  addMultipleFeatures: boolean;\n\n  /* Enables splitting line strings on the map */\n  enableSplitFeature: boolean;\n\n  /* Callback function to return split feature */\n  handleSplitFeature: any;\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  /* Callback method to handle deleting a selected feature */\n  handleDeleteFeature?: any;\n\n  /* Enables editing a selected feature */\n  enableEditFeature: boolean;\n\n  /* Callback method to handle editing a selected feature */\n  handleEditFeature?: any;\n\n  /* Callback method to return map zoom and extent when the resolution changes */\n  handleGetZoomExtent?: any;\n\n  /* Configuration object for customizing the popover card's appearance or behavior */\n  cardConfig?: any;\n\n  /* Array of primary action configurations for the popover (e.g., buttons) */\n  popoverPrimaryActions?: { id?: string; name: string; iconName: string; onClick: (data: any) => void }[];\n\n  /* Array of additional actions for the popover's \"more\" icon button (e.g., menu items) */\n  popoverMoreIconButtonActions?: { id?: string; name: string; iconName: string; onClick: (data: any) => void }[];\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  /* List of layers that are read only */\n  readOnlyLayers?: string[];\n\n  minZoom?: number;\n  maxZoom?: number\n}\n\nexport const UdpMap: React.FC<UdpMapProps> = (props: UdpMapProps) => {\n  return <Map {...props} />;\n};\n"],"mappings":";;;;AAuKA,MAAaC,YAAgC+D,UAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;AAAA,KAAAF,EAAA,OAAAD,OAAA;AACpCG,OAAA,sBAAA,cAAC,QAAQH,MAAS;AAAAC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;OAAAA,MAAAF,EAAA;AAAA,QAAlBE"}