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 lines
5.3 KiB
1 lines
5.3 KiB
{"ast":null,"code":"import { createContainerComponent, createDivOverlayComponent, createLeafComponent } from './component.js';\nimport { createControlHook } from './control.js';\nimport { createElementHook, createElementObject } from './element.js';\nimport { createLayerHook } from './layer.js';\nimport { createDivOverlayHook } from './div-overlay.js';\nimport { createPathHook } from './path.js';\nexport function createControlComponent(createInstance) {\n function createElement(props, context) {\n return createElementObject(createInstance(props), context);\n }\n\n const useElement = createElementHook(createElement);\n const useControl = createControlHook(useElement);\n return createLeafComponent(useControl);\n}\nexport function createLayerComponent(createElement, updateElement) {\n const useElement = createElementHook(createElement, updateElement);\n const useLayer = createLayerHook(useElement);\n return createContainerComponent(useLayer);\n}\nexport function createOverlayComponent(createElement, useLifecycle) {\n const useElement = createElementHook(createElement);\n const useOverlay = createDivOverlayHook(useElement, useLifecycle);\n return createDivOverlayComponent(useOverlay);\n}\nexport function createPathComponent(createElement, updateElement) {\n const useElement = createElementHook(createElement, updateElement);\n const usePath = createPathHook(useElement);\n return createContainerComponent(usePath);\n}\nexport function createTileLayerComponent(createElement, updateElement) {\n const useElement = createElementHook(createElement, updateElement);\n const useLayer = createLayerHook(useElement);\n return createLeafComponent(useLayer);\n}","map":{"version":3,"names":["createContainerComponent","createDivOverlayComponent","createLeafComponent","createControlHook","createElementHook","createElementObject","createLayerHook","createDivOverlayHook","createPathHook","createControlComponent","createInstance","createElement","props","context","useElement","useControl","createLayerComponent","updateElement","useLayer","createOverlayComponent","useLifecycle","useOverlay","createPathComponent","usePath","createTileLayerComponent"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/@react-leaflet/core/lib/generic.js"],"sourcesContent":["import { createContainerComponent, createDivOverlayComponent, createLeafComponent } from './component.js';\nimport { createControlHook } from './control.js';\nimport { createElementHook, createElementObject } from './element.js';\nimport { createLayerHook } from './layer.js';\nimport { createDivOverlayHook } from './div-overlay.js';\nimport { createPathHook } from './path.js';\nexport function createControlComponent(createInstance) {\n function createElement(props, context) {\n return createElementObject(createInstance(props), context);\n }\n const useElement = createElementHook(createElement);\n const useControl = createControlHook(useElement);\n return createLeafComponent(useControl);\n}\nexport function createLayerComponent(createElement, updateElement) {\n const useElement = createElementHook(createElement, updateElement);\n const useLayer = createLayerHook(useElement);\n return createContainerComponent(useLayer);\n}\nexport function createOverlayComponent(createElement, useLifecycle) {\n const useElement = createElementHook(createElement);\n const useOverlay = createDivOverlayHook(useElement, useLifecycle);\n return createDivOverlayComponent(useOverlay);\n}\nexport function createPathComponent(createElement, updateElement) {\n const useElement = createElementHook(createElement, updateElement);\n const usePath = createPathHook(useElement);\n return createContainerComponent(usePath);\n}\nexport function createTileLayerComponent(createElement, updateElement) {\n const useElement = createElementHook(createElement, updateElement);\n const useLayer = createLayerHook(useElement);\n return createLeafComponent(useLayer);\n}\n"],"mappings":"AAAA,SAASA,wBAAT,EAAmCC,yBAAnC,EAA8DC,mBAA9D,QAAyF,gBAAzF;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,iBAAT,EAA4BC,mBAA5B,QAAuD,cAAvD;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,oBAAT,QAAqC,kBAArC;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,OAAO,SAASC,sBAAT,CAAgCC,cAAhC,EAAgD;EACnD,SAASC,aAAT,CAAuBC,KAAvB,EAA8BC,OAA9B,EAAuC;IACnC,OAAOR,mBAAmB,CAACK,cAAc,CAACE,KAAD,CAAf,EAAwBC,OAAxB,CAA1B;EACH;;EACD,MAAMC,UAAU,GAAGV,iBAAiB,CAACO,aAAD,CAApC;EACA,MAAMI,UAAU,GAAGZ,iBAAiB,CAACW,UAAD,CAApC;EACA,OAAOZ,mBAAmB,CAACa,UAAD,CAA1B;AACH;AACD,OAAO,SAASC,oBAAT,CAA8BL,aAA9B,EAA6CM,aAA7C,EAA4D;EAC/D,MAAMH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