You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.3 KiB

2 years ago
{"ast":null,"code":"import { useAttribution } from './attribution.js';\nimport { useLeafletContext } from './context.js';\nimport { useEventHandlers } from './events.js';\nimport { withPane } from './pane.js';\nexport function createDivOverlayHook(useElement, useLifecycle) {\n return function useDivOverlay(props, setOpen) {\n const context = useLeafletContext();\n const elementRef = useElement(withPane(props, context), context);\n useAttribution(context.map, props.attribution);\n useEventHandlers(elementRef.current, props.eventHandlers);\n useLifecycle(elementRef.current, context, props, setOpen);\n return elementRef;\n };\n}","map":{"version":3,"names":["useAttribution","useLeafletContext","useEventHandlers","withPane","createDivOverlayHook","useElement","useLifecycle","useDivOverlay","props","setOpen","context","elementRef","map","attribution","current","eventHandlers"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/@react-leaflet/core/lib/div-overlay.js"],"sourcesContent":["import { useAttribution } from './attribution.js';\nimport { useLeafletContext } from './context.js';\nimport { useEventHandlers } from './events.js';\nimport { withPane } from './pane.js';\nexport function createDivOverlayHook(useElement, useLifecycle) {\n return function useDivOverlay(props, setOpen) {\n const context = useLeafletContext();\n const elementRef = useElement(withPane(props, context), context);\n useAttribution(context.map, props.attribution);\n useEventHandlers(elementRef.current, props.eventHandlers);\n useLifecycle(elementRef.current, context, props, setOpen);\n return elementRef;\n };\n}\n"],"mappings":"AAAA,SAASA,cAAT,QAA+B,kBAA/B;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,gBAAT,QAAiC,aAAjC;AACA,SAASC,QAAT,QAAyB,WAAzB;AACA,OAAO,SAASC,oBAAT,CAA8BC,UAA9B,EAA0CC,YAA1C,EAAwD;EAC3D,OAAO,SAASC,aAAT,CAAuBC,KAAvB,EAA8BC,OAA9B,EAAuC;IAC1C,MAAMC,OAAO,GAAGT,iBAAiB,EAAjC;IACA,MAAMU,UAAU,GAAGN,UAAU,CAACF,QAAQ,CAACK,KAAD,EAAQE,OAAR,CAAT,EAA2BA,OAA3B,CAA7B;IACAV,cAAc,CAACU,OAAO,CAACE,GAAT,EAAcJ,KAAK,CAACK,WAApB,CAAd;IACAX,gBAAgB,CAACS,UAAU,CAACG,OAAZ,EAAqBN,KAAK,CAACO,aAA3B,CAAhB;IACAT,YAAY,CAACK,UAAU,CAACG,OAAZ,EAAqBJ,OAArB,EAA8BF,KAA9B,EAAqCC,OAArC,CAAZ;IACA,OAAOE,UAAP;EACH,CAPD;AAQH"},"metadata":{},"sourceType":"module"}