{"version":3,"file":"index.mjs","sources":[""],"sourcesContent":["import type { Context } from \"react\";\r\nimport { createContext, createRef } from \"react\";\r\nimport { mapDefaults } from \"../config\";\r\nimport type {\r\n  TCluster, TMapContext, TPanelData, TPoint,\r\n} from \"../config/types\";\r\n\r\nexport const MapContext: Context<TMapContext> = createContext({\r\n  getCN: (el: string, mod = {}, utilClasses = []) => \"\",\r\n  instanceRef: createRef(),\r\n  containerRef: createRef(),\r\n  balloonRef: createRef(),\r\n  maxActivePoints: mapDefaults.maxActivePoints,\r\n  modules: mapDefaults.modules,\r\n  zoom: mapDefaults.zoom,\r\n  options: mapDefaults.options,\r\n  api: mapDefaults.api,\r\n  currentClusters: [],\r\n  clusters: [],\r\n  panelData: null,\r\n  stateActions: {\r\n    setIsDisabled: (isDisabled: boolean) => {},\r\n    setClusters: (clusters: TCluster[]) => {},\r\n    setPanelData: (data: TPanelData) => {},\r\n    setPointState: (idPoint: TPoint[\"id\"], state: unknown) => {},\r\n  },\r\n});\r\n"],"names":["MapContext","createContext","getCN","el","mod","utilClasses","instanceRef","createRef","containerRef","balloonRef","maxActivePoints","mapDefaults","modules","zoom","options","api","currentClusters","clusters","panelData","stateActions","setIsDisabled","isDisabled","setClusters","setPanelData","data","setPointState","idPoint","state"],"mappings":"wFAOO,MAAMA,WAAmCC,cAAc,CAC5DC,MAAO,CAACC,GAAYC,IAAM,CAAA,EAAIC,YAAc,KAAO,GACnDC,YAAaC,YACbC,aAAcD,YACdE,WAAYF,YACZG,gBAAiBC,YAAYD,gBAC7BE,QAASD,YAAYC,QACrBC,KAAMF,YAAYE,KAClBC,QAASH,YAAYG,QACrBC,IAAKJ,YAAYI,IACjBC,gBAAiB,GACjBC,SAAU,GACVC,UAAW,KACXC,aAAc,CACZC,cAAgBC,eAChBC,YAAcL,aACdM,aAAeC,SACfC,cAAe,CAACC,QAAuBC"}