{"ast":null,"code":"import { createContext, useContext } from 'react';\nexport const CONTEXT_VERSION = 1;\nexport function createLeafletContext(map) {\n return Object.freeze({\n __version: CONTEXT_VERSION,\n map\n });\n}\nexport function extendContext(source, extra) {\n return Object.freeze({ ...source,\n ...extra\n });\n}\nexport const LeafletContext = createContext(null);\nexport const LeafletProvider = LeafletContext.Provider;\nexport function useLeafletContext() {\n const context = useContext(LeafletContext);\n\n if (context == null) {\n throw new Error('No context provided: useLeafletContext() can only be used in a descendant of ');\n }\n\n return context;\n}","map":{"version":3,"names":["createContext","useContext","CONTEXT_VERSION","createLeafletContext","map","Object","freeze","__version","extendContext","source","extra","LeafletContext","LeafletProvider","Provider","useLeafletContext","context","Error"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/@react-leaflet/core/lib/context.js"],"sourcesContent":["import { createContext, useContext } from 'react';\nexport const CONTEXT_VERSION = 1;\nexport function createLeafletContext(map) {\n return Object.freeze({\n __version: CONTEXT_VERSION,\n map\n });\n}\nexport function extendContext(source, extra) {\n return Object.freeze({\n ...source,\n ...extra\n });\n}\nexport const LeafletContext = createContext(null);\nexport const LeafletProvider = LeafletContext.Provider;\nexport function useLeafletContext() {\n const context = useContext(LeafletContext);\n if (context == null) {\n throw new Error('No context provided: useLeafletContext() can only be used in a descendant of ');\n }\n return context;\n}\n"],"mappings":"AAAA,SAASA,aAAT,EAAwBC,UAAxB,QAA0C,OAA1C;AACA,OAAO,MAAMC,eAAe,GAAG,CAAxB;AACP,OAAO,SAASC,oBAAT,CAA8BC,GAA9B,EAAmC;EACtC,OAAOC,MAAM,CAACC,MAAP,CAAc;IACjBC,SAAS,EAAEL,eADM;IAEjBE;EAFiB,CAAd,CAAP;AAIH;AACD,OAAO,SAASI,aAAT,CAAuBC,MAAvB,EAA+BC,KAA/B,EAAsC;EACzC,OAAOL,MAAM,CAACC,MAAP,CAAc,EACjB,GAAGG,MADc;IAEjB,GAAGC;EAFc,CAAd,CAAP;AAIH;AACD,OAAO,MAAMC,cAAc,GAAGX,aAAa,CAAC,IAAD,CAApC;AACP,OAAO,MAAMY,eAAe,GAAGD,cAAc,CAACE,QAAvC;AACP,OAAO,SAASC,iBAAT,GAA6B;EAChC,MAAMC,OAAO,GAAGd,UAAU,CAACU,cAAD,CAA1B;;EACA,IAAII,OAAO,IAAI,IAAf,EAAqB;IACjB,MAAM,IAAIC,KAAJ,CAAU,6FAAV,CAAN;EACH;;EACD,OAAOD,OAAP;AACH"},"metadata":{},"sourceType":"module"}