{"ast":null,"code":"import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { Rectangle as LeafletRectangle } from 'leaflet';\nexport const Rectangle = createPathComponent(function createRectangle(_ref, ctx) {\n  let {\n    bounds,\n    ...options\n  } = _ref;\n  const rectangle = new LeafletRectangle(bounds, options);\n  return createElementObject(rectangle, extendContext(ctx, {\n    overlayContainer: rectangle\n  }));\n}, function updateRectangle(layer, props, prevProps) {\n  if (props.bounds !== prevProps.bounds) {\n    layer.setBounds(props.bounds);\n  }\n});","map":{"version":3,"names":["createElementObject","createPathComponent","extendContext","Rectangle","LeafletRectangle","createRectangle","_ref","ctx","bounds","options","rectangle","overlayContainer","updateRectangle","layer","props","prevProps","setBounds"],"sources":["C:/Users/user/Desktop/projet dashboard/dashboard1/node_modules/react-leaflet/lib/Rectangle.js"],"sourcesContent":["import { createElementObject, createPathComponent, extendContext } from '@react-leaflet/core';\nimport { Rectangle as LeafletRectangle } from 'leaflet';\nexport const Rectangle = createPathComponent(function createRectangle({ bounds , ...options }, ctx) {\n    const rectangle = new LeafletRectangle(bounds, options);\n    return createElementObject(rectangle, extendContext(ctx, {\n        overlayContainer: rectangle\n    }));\n}, function updateRectangle(layer, props, prevProps) {\n    if (props.bounds !== prevProps.bounds) {\n        layer.setBounds(props.bounds);\n    }\n});\n"],"mappings":"AAAA,SAASA,mBAAmB,EAAEC,mBAAmB,EAAEC,aAAa,QAAQ,qBAAqB;AAC7F,SAASC,SAAS,IAAIC,gBAAgB,QAAQ,SAAS;AACvD,OAAO,MAAMD,SAAS,GAAGF,mBAAmB,CAAC,SAASI,eAAeA,CAAAC,IAAA,EAA0BC,GAAG,EAAE;EAAA,IAA9B;IAAEC,MAAM;IAAG,GAAGC;EAAQ,CAAC,GAAAH,IAAA;EACzF,MAAMI,SAAS,GAAG,IAAIN,gBAAgB,CAACI,MAAM,EAAEC,OAAO,CAAC;EACvD,OAAOT,mBAAmB,CAACU,SAAS,EAAER,aAAa,CAACK,GAAG,EAAE;IACrDI,gBAAgB,EAAED;EACtB,CAAC,CAAC,CAAC;AACP,CAAC,EAAE,SAASE,eAAeA,CAACC,KAAK,EAAEC,KAAK,EAAEC,SAAS,EAAE;EACjD,IAAID,KAAK,CAACN,MAAM,KAAKO,SAAS,CAACP,MAAM,EAAE;IACnCK,KAAK,CAACG,SAAS,CAACF,KAAK,CAACN,MAAM,CAAC;EACjC;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}