@performant-software/geospatial 3.0.6-beta.12 → 3.0.6-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/index.cjs15.js +1 -1
  2. package/dist/index.cjs19.js +1 -1
  3. package/dist/index.cjs21.js +1 -1
  4. package/dist/index.cjs22.js +1 -1
  5. package/dist/index.cjs5.js +1 -1
  6. package/dist/index.cjs5.js.map +1 -1
  7. package/dist/index.cjs63.js +1 -1
  8. package/dist/index.cjs64.js +1 -1
  9. package/dist/index.cjs65.js +1 -1
  10. package/dist/index.cjs65.js.map +1 -1
  11. package/dist/index.cjs66.js +1 -1
  12. package/dist/index.cjs66.js.map +1 -1
  13. package/dist/index.cjs67.js +1 -1
  14. package/dist/index.cjs67.js.map +1 -1
  15. package/dist/index.cjs77.js +1 -1
  16. package/dist/index.cjs77.js.map +1 -1
  17. package/dist/index.cjs78.js +1 -1
  18. package/dist/index.cjs78.js.map +1 -1
  19. package/dist/index.cjs79.js +1 -1
  20. package/dist/index.cjs79.js.map +1 -1
  21. package/dist/index.cjs80.js +1 -1
  22. package/dist/index.cjs80.js.map +1 -1
  23. package/dist/index.cjs81.js +1 -1
  24. package/dist/index.cjs81.js.map +1 -1
  25. package/dist/index.es15.js +3 -3
  26. package/dist/index.es19.js +1 -1
  27. package/dist/index.es21.js +2 -2
  28. package/dist/index.es22.js +2 -2
  29. package/dist/index.es5.js +6 -7
  30. package/dist/index.es5.js.map +1 -1
  31. package/dist/index.es63.js +1 -1
  32. package/dist/index.es64.js +1 -1
  33. package/dist/index.es65.js +2 -107
  34. package/dist/index.es65.js.map +1 -1
  35. package/dist/index.es66.js +107 -10
  36. package/dist/index.es66.js.map +1 -1
  37. package/dist/index.es67.js +10 -2
  38. package/dist/index.es67.js.map +1 -1
  39. package/dist/index.es77.js +28 -2
  40. package/dist/index.es77.js.map +1 -1
  41. package/dist/index.es78.js +51 -2
  42. package/dist/index.es78.js.map +1 -1
  43. package/dist/index.es79.js +62 -25
  44. package/dist/index.es79.js.map +1 -1
  45. package/dist/index.es80.js +2 -51
  46. package/dist/index.es80.js.map +1 -1
  47. package/dist/index.es81.js +2 -65
  48. package/dist/index.es81.js.map +1 -1
  49. package/dist/style.css +1 -1
  50. package/package.json +1 -1
  51. package/src/components/LayerMenu.js +1 -2
  52. package/types/components/LayerMenu.js.flow +1 -2
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs65.js");require("./index.cjs66.js");function c(t){return a.GenIcon({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z"},child:[]}]})(t)}exports.BsStack=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs66.js");require("./index.cjs67.js");function c(t){return a.GenIcon({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z"},child:[]}]})(t)}exports.BsStack=c;
2
2
  //# sourceMappingURL=index.cjs21.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs65.js");require("./index.cjs66.js");function r(e){return t.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}exports.IoCheckmarkOutline=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs66.js");require("./index.cjs67.js");function r(e){return t.GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}exports.IoCheckmarkOutline=r;
2
2
  //# sourceMappingURL=index.cjs22.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs17.js"),s=require("react"),p=require("./index.cjs21.js"),E=require("./index.cjs22.js"),u=require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");const R=require("./index.cjs7.js");require("./index.cjs51.js");const g=30,q=i=>{const[x,h]=s.useState(0),[a,o]=s.useState(),[j,d]=s.useState(!1),l=s.useRef(),f=s.useCallback(e=>i.names&&i.names.length>e&&i.names[e],[i.names]),n=s.useCallback(e=>u.includes(a,e),[a]),c=s.useMemo(()=>s.Children.toArray(i.children),[i.children]),b=s.useMemo(()=>u.filter(c,(e,r)=>n(r)),[c,n]),m=s.useCallback(e=>{let r;n(e)?r=u.without(a,e):r=[...a,e],o(r)},[n,a]);return s.useEffect(()=>{o(u.times(c.length,e=>e))},[]),s.useEffect(()=>{const{current:e}=l;if(e&&e._canvas){const{offsetHeight:r=0}=l.current._canvas;h(r)}},[l.current]),u.isEmpty(c)?null:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs(R,{mapRef:l,position:i.position,children:[t.jsxRuntimeExports.jsx("button",{"aria-label":"Toggle Menu",className:i.className||"mapbox-gl-draw_ctrl-draw-btn layer-button",onClick:()=>d(e=>!e),type:"button",children:t.jsxRuntimeExports.jsx(p.BsStack,{size:"1.25em"})}),j&&t.jsxRuntimeExports.jsx("div",{className:"layer-menu",style:{maxHeight:`calc(${x}px - ${g}px)`},children:t.jsxRuntimeExports.jsx("div",{className:"menu",children:u.map(c,(e,r)=>t.jsxRuntimeExports.jsxs("div",{"aria-selected":n(r),className:"option",onClick:()=>m(r),onKeyDown:()=>m(r),role:"option",tabIndex:r,children:[t.jsxRuntimeExports.jsx("div",{className:"checkmark-container",children:n(r)&&t.jsxRuntimeExports.jsx(E.IoCheckmarkOutline,{size:"1em"})}),f(r)]},r))})})]}),b]})};q.defaultProps={position:"top-left"};module.exports=q;
1
+ "use strict";const t=require("./index.cjs17.js"),s=require("react"),p=require("./index.cjs21.js"),E=require("./index.cjs22.js"),u=require("./index.cjs23.js");require("./index.cjs24.js");require("./index.cjs25.js");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs28.js");require("./index.cjs29.js");require("./index.cjs30.js");require("./index.cjs31.js");require("./index.cjs32.js");require("./index.cjs33.js");require("./index.cjs34.js");require("./index.cjs35.js");require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");const R=require("./index.cjs7.js");require("./index.cjs51.js");const g=30,q=i=>{const[x,h]=s.useState(0),[a,o]=s.useState(),[j,d]=s.useState(!1),l=s.useRef(),f=s.useCallback(e=>i.names&&i.names.length>e&&i.names[e],[i.names]),n=s.useCallback(e=>u.includes(a,e),[a]),c=s.useMemo(()=>s.Children.toArray(i.children),[i.children]),b=s.useMemo(()=>u.filter(c,(e,r)=>n(r)),[c,n]),m=s.useCallback(e=>{let r;n(e)?r=u.without(a,e):r=[...a,e],o(r)},[n,a]);return s.useEffect(()=>{o(u.times(c.length,e=>e))},[]),s.useEffect(()=>{const{current:e}=l;if(e&&e._canvas){const{offsetHeight:r=0}=l.current._canvas;h(r)}},[l.current]),u.isEmpty(c)?null:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsxs(R,{mapRef:l,position:i.position,children:[t.jsxRuntimeExports.jsx("button",{"aria-label":"Toggle Menu",className:i.className||"mapbox-gl-draw_ctrl-draw-btn layer-button",onClick:()=>d(e=>!e),type:"button",children:t.jsxRuntimeExports.jsx(p.BsStack,{size:"1.25em"})}),j&&t.jsxRuntimeExports.jsx("div",{className:"layer-menu",style:{maxHeight:`calc(${x}px - ${g}px)`},children:t.jsxRuntimeExports.jsx("div",{className:"menu",children:u.map(c,(e,r)=>t.jsxRuntimeExports.jsxs("div",{"aria-selected":n(r),className:"option",role:"option",onClick:()=>m(r),onKeyDown:()=>m(r),tabIndex:r,children:[t.jsxRuntimeExports.jsx("div",{className:"checkmark-container",children:n(r)&&t.jsxRuntimeExports.jsx(E.IoCheckmarkOutline,{size:"1em"})}),f(r)]}))})})]}),b]})};q.defaultProps={position:"top-left"};module.exports=q;
2
2
  //# sourceMappingURL=index.cjs5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n key={index}\n onClick={() => toggleVisibility(index)}\n onKeyDown={() => toggleVisibility(index)}\n role='option'\n tabIndex={index}\n >\n <div\n className='checkmark-container'\n >\n { isVisible(index) && (\n <IoCheckmarkOutline\n size='1em'\n />\n )}\n </div>\n { getLayerName(index) }\n </div>\n ))}\n </div>\n </div>\n )}\n </MapControl>\n { visibleChildren }\n </>\n );\n};\n\nLayerMenu.defaultProps = {\n position: 'top-left'\n};\n\nexport default LayerMenu;\n"],"names":["MENU_PADDING","LayerMenu","props","canvasHeight","setCanvasHeight","useState","visible","setVisible","menuOpen","setMenuOpen","mapRef","useRef","getLayerName","useCallback","index","isVisible","_","children","useMemo","Children","visibleChildren","child","toggleVisibility","value","useEffect","instance","offsetHeight","jsxs","Fragment","MapControl","jsx","prevMenuOpen","BsStack","IoCheckmarkOutline"],"mappings":"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AKLU,EAAA,kBAAA,KAAAC,6BAAA,CAAA,SAAA,CAAAD,EAAA,kBAAA,KAACE,EAAA,CACC,OAAAnB,EACA,SAAUR,EAAM,SAEhB,SAAA,CAAA4B,EAAA,kBAAA,IAAC,SAAA,CACC,aAAW,cACX,UAAW5B,EAAM,WAAa,4CAC9B,QAAS,IAAMO,EAAasB,GAAiB,CAACA,CAAY,EAC1D,KAAK,SAEL,SAAAD,EAAA,kBAAA,IAACE,EAAA,QAAA,CACC,KAAK,QAAA,CACP,CAAA,CACF,EACExB,GACAsB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,aACV,MAAO,CACL,UAAW,QAAQ3B,CAAY,QAAQH,CAAY,KACrD,EAEA,SAAA8B,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,OAER,SAAEd,EAAA,IAAIC,EAAU,CAACI,EAAOP,IACxBa,EAAA,kBAAA,KAAC,MAAA,CACC,gBAAeZ,EAAUD,CAAK,EAC9B,UAAU,SAEV,QAAS,IAAMQ,EAAiBR,CAAK,EACrC,UAAW,IAAMQ,EAAiBR,CAAK,EACvC,KAAK,SACL,SAAUA,EAEV,SAAA,CAAAgB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,sBAER,SAAAf,EAAUD,CAAK,GACfgB,EAAA,kBAAA,IAACG,EAAA,mBAAA,CACC,KAAK,KAAA,CACP,CAAA,CAEJ,EACErB,EAAaE,CAAK,CAAA,CAAA,EAffA,CAAA,CAiBR,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CAEJ,EACEM,CACJ,CAAA,CAAA,CAEJ,EAEAnB,EAAU,aAAe,CACvB,SAAU,UACZ"}
1
+ {"version":3,"file":"index.cjs5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n role='option'\n onClick={() => toggleVisibility(index)}\n onKeyDown={() => toggleVisibility(index)}\n tabIndex={index}\n >\n <div\n className='checkmark-container'\n >\n { isVisible(index) && (\n <IoCheckmarkOutline\n size='1em'\n />\n )}\n </div>\n { getLayerName(index) }\n </div>\n ))}\n </div>\n </div>\n )}\n </MapControl>\n { visibleChildren }\n </>\n );\n};\n\nLayerMenu.defaultProps = {\n position: 'top-left'\n};\n\nexport default LayerMenu;\n"],"names":["MENU_PADDING","LayerMenu","props","canvasHeight","setCanvasHeight","useState","visible","setVisible","menuOpen","setMenuOpen","mapRef","useRef","getLayerName","useCallback","index","isVisible","_","children","useMemo","Children","visibleChildren","child","toggleVisibility","value","useEffect","instance","offsetHeight","jsxs","Fragment","MapControl","jsx","prevMenuOpen","BsStack","IoCheckmarkOutline"],"mappings":"i9BAuBA,MAAMA,EAAe,GAEfC,EAAaC,GAAiB,CAClC,KAAM,CAACC,EAAcC,CAAe,EAAIC,WAAS,CAAC,EAC5C,CAACC,EAASC,CAAU,EAAIF,EAAS,SAAA,EACjC,CAACG,EAAUC,CAAW,EAAIJ,WAAS,EAAK,EAExCK,EAASC,EAAAA,SAOTC,EAAeC,EAAAA,YAAaC,GAChCZ,EAAM,OAASA,EAAM,MAAM,OAASY,GAASZ,EAAM,MAAMY,CAAK,EAC7D,CAACZ,EAAM,KAAK,CAAC,EAOVa,EAAYF,EAAAA,YAAaC,GAAUE,EAAE,SAASV,EAASQ,CAAK,EAAG,CAACR,CAAO,CAAC,EAOxEW,EAAWC,EAAAA,QAAQ,IAAMC,EAAAA,SAAS,QAAQjB,EAAM,QAAQ,EAAG,CAACA,EAAM,QAAQ,CAA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CAACI,EAAOP,IACxBa,EAAA,kBAAA,KAAC,MAAA,CACC,gBAAeZ,EAAUD,CAAK,EAC9B,UAAU,SACV,KAAK,SACL,QAAS,IAAMQ,EAAiBR,CAAK,EACrC,UAAW,IAAMQ,EAAiBR,CAAK,EACvC,SAAUA,EAEV,SAAA,CAAAgB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAU,sBAER,SAAAf,EAAUD,CAAK,GACfgB,EAAA,kBAAA,IAACG,EAAA,mBAAA,CACC,KAAK,KAAA,CACP,CAAA,CAEJ,EACErB,EAAaE,CAAK,CAAA,CAAA,CAAA,CAEvB,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CAEJ,EACEM,CACJ,CAAA,CAAA,CAEJ,EAEAnB,EAAU,aAAe,CACvB,SAAU,UACZ"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs77.js"),R=require("react");var p;function a(){if(p)return t.__exports;p=1;/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs80.js"),R=require("react");var p;function a(){if(p)return t.__exports;p=1;/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs78.js"),tr=require("react");var he;function ar(){if(he)return R.__exports;he=1;/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs81.js"),tr=require("react");var he;function ar(){if(he)return R.__exports;he=1;/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("./index.cjs66.js");var O=["attr","size","title"];function v(e,t){if(e==null)return{};var r=p(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e,t,r){return t=P(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=d(e,"string");return typeof t=="symbol"?t:String(t)}function d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>l.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function h(e){return t=>l.createElement(g,c({attr:u({},e.attr)},t),b(e.child))}function g(e){var t=r=>{var{attr:n,size:i,title:o}=e,y=v(e,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),l.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,y,{className:a,style:u(u({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return s.IconContext!==void 0?l.createElement(s.IconContext.Consumer,null,r=>t(r)):t(s.DefaultContext)}exports.GenIcon=h;exports.IconBase=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
2
2
  //# sourceMappingURL=index.cjs65.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs65.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"uIAAA,IAAIA,EAAY,CAAC,OAAQ,OAAQ,OAAO,EACxC,SAASC,EAAyBC,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,GAAI,IAAIE,EAASC,EAA8BH,EAAQC,CAAQ,EAAOG,EAAK,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIC,EAAmB,OAAO,sBAAsBL,CAAM,EAAG,IAAK,EAAI,EAAG,EAAIK,EAAiB,OAAQ,IAAOD,EAAMC,EAAiB,CAAC,EAAO,EAAAJ,EAAS,QAAQG,CAAG,GAAK,IAAkB,OAAO,UAAU,qBAAqB,KAAKJ,EAAQI,CAAG,IAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,EAAI,CAAG,OAAOF,CAAS,CAC5e,SAASC,EAA8BH,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,CAAE,EAAE,IAAIE,EAAS,CAAE,EAAMI,EAAa,OAAO,KAAKN,CAAM,EAAOI,EAAKG,EAAG,IAAKA,EAAI,EAAGA,EAAID,EAAW,OAAQC,IAAOH,EAAME,EAAWC,CAAC,EAAO,EAAAN,EAAS,QAAQG,CAAG,GAAK,KAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,GAAK,OAAOF,CAAS,CACnT,SAASM,GAAW,CAAE,OAAAA,EAAW,OAAO,OAAS,OAAO,OAAO,KAAM,EAAG,SAAUN,EAAQ,CAAE,QAAS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M,eACN,YAAa,GACd,EAAEyB,EAAK,KAAMC,EAAMG,EAAU,CAC5B,UAAWE,EACX,MAAO1B,EAAcA,EAAc,CACjC,MAAOiB,EAAM,OAASG,EAAK,KAC5B,EAAEA,EAAK,KAAK,EAAGH,EAAM,KAAK,EAC3B,OAAQQ,EACR,MAAOA,EACP,MAAO,4BACb,CAAK,EAAGF,GAAsBT,EAAM,cAAc,QAAS,KAAMS,CAAK,EAAGN,EAAM,QAAQ,CACvF,EACE,OAAOU,EAAW,cAAK,OAAyBb,EAAM,cAAca,EAAW,YAAC,SAAU,KAAMP,GAAQD,EAAKC,CAAI,CAAC,EAAID,EAAKS,EAAc,cAAA,CAC3I","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs65.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("./index.cjs67.js");var O=["attr","size","title"];function v(e,t){if(e==null)return{};var r=p(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(n){j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(e,t,r){return t=P(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){var t=d(e,"string");return typeof t=="symbol"?t:String(t)}function d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b(e){return e&&e.map((t,r)=>l.createElement(t.tag,u({key:r},t.attr),b(t.child)))}function h(e){return t=>l.createElement(g,c({attr:u({},e.attr)},t),b(e.child))}function g(e){var t=r=>{var{attr:n,size:i,title:o}=e,y=v(e,O),f=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),l.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,y,{className:a,style:u(u({color:e.color||r.color},r.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return s.IconContext!==void 0?l.createElement(s.IconContext.Consumer,null,r=>t(r)):t(s.DefaultContext)}exports.GenIcon=h;exports.IconBase=g;
2
2
  //# sourceMappingURL=index.cjs66.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs66.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs66.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":"uIAAA,IAAIA,EAAY,CAAC,OAAQ,OAAQ,OAAO,EACxC,SAASC,EAAyBC,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,GAAI,IAAIE,EAASC,EAA8BH,EAAQC,CAAQ,EAAOG,EAAK,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIC,EAAmB,OAAO,sBAAsBL,CAAM,EAAG,IAAK,EAAI,EAAG,EAAIK,EAAiB,OAAQ,IAAOD,EAAMC,EAAiB,CAAC,EAAO,EAAAJ,EAAS,QAAQG,CAAG,GAAK,IAAkB,OAAO,UAAU,qBAAqB,KAAKJ,EAAQI,CAAG,IAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,EAAI,CAAG,OAAOF,CAAS,CAC5e,SAASC,EAA8BH,EAAQC,EAAU,CAAE,GAAID,GAAU,KAAM,MAAO,CAAE,EAAE,IAAIE,EAAS,CAAE,EAAMI,EAAa,OAAO,KAAKN,CAAM,EAAOI,EAAKG,EAAG,IAAKA,EAAI,EAAGA,EAAID,EAAW,OAAQC,IAAOH,EAAME,EAAWC,CAAC,EAAO,EAAAN,EAAS,QAAQG,CAAG,GAAK,KAAaF,EAAOE,CAAG,EAAIJ,EAAOI,CAAG,GAAK,OAAOF,CAAS,CACnT,SAASM,GAAW,CAAE,OAAAA,EAAW,OAAO,OAAS,OAAO,OAAO,KAAM,EAAG,SAAUN,EAAQ,CAAE,QAASK,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CAAE,IAAIP,EAAS,UAAUO,CAAC,EAAG,QAASH,KAA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AAc,CACjC,MAAOiB,EAAM,OAASG,EAAK,KAC5B,EAAEA,EAAK,KAAK,EAAGH,EAAM,KAAK,EAC3B,OAAQQ,EACR,MAAOA,EACP,MAAO,4BACb,CAAK,EAAGF,GAAsBT,EAAM,cAAc,QAAS,KAAMS,CAAK,EAAGN,EAAM,QAAQ,CACvF,EACE,OAAOU,EAAW,cAAK,OAAyBb,EAAM,cAAca,EAAW,YAAC,SAAU,KAAMP,GAAQD,EAAKC,CAAI,CAAC,EAAID,EAAKS,EAAc,cAAA,CAC3I","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var t={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=e.createContext&&e.createContext(t);exports.DefaultContext=t;exports.IconContext=n;
2
2
  //# sourceMappingURL=index.cjs67.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs67.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs67.js","sources":["../../../node_modules/react-icons/lib/iconContext.mjs"],"sourcesContent":["import React from \"react\";\nexport var DefaultContext = {\n color: undefined,\n size: undefined,\n className: undefined,\n style: undefined,\n attr: undefined\n};\nexport var IconContext = React.createContext && /*#__PURE__*/React.createContext(DefaultContext);"],"names":["DefaultContext","IconContext","React"],"mappings":"yGACU,IAACA,EAAiB,CAC1B,MAAO,OACP,KAAM,OACN,UAAW,OACX,MAAO,OACP,KAAM,MACR,EACWC,EAAcC,EAAM,eAA8BA,EAAM,cAAcF,CAAc","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs206.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
2
2
  //# sourceMappingURL=index.cjs77.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs77.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs77.js","sources":["../../../node_modules/mapbox-gl/index.js"],"sourcesContent":["exports.printMsg = function() {\r\n console.log(\"This is a message from the demo package\");\r\n }"],"names":["printMsg","mapboxGl"],"mappings":"ueAAA,IAAAA,EAAAC,EAAAA,UAAA,SAAmB,UAAW,CAC1B,QAAQ,IAAI,yCAAyC,CACvD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";const u=require("react"),m=require("./index.cjs68.js"),L=require("./index.cjs190.js"),s=require("./index.cjs189.js");function q(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)s.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
2
2
  //# sourceMappingURL=index.cjs78.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs78.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs78.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/layer.js"],"sourcesContent":["import { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\n/* eslint-disable complexity, max-statements */\nfunction updateLayer(map, id, props, prevProps) {\n assert(props.id === prevProps.id, 'layer id changed');\n assert(props.type === prevProps.type, 'layer type changed');\n if (props.type === 'custom' || prevProps.type === 'custom') {\n return;\n }\n const { layout = {}, paint = {}, filter, minzoom, maxzoom, beforeId } = props;\n if (beforeId !== prevProps.beforeId) {\n map.moveLayer(id, beforeId);\n }\n if (layout !== prevProps.layout) {\n const prevLayout = prevProps.layout || {};\n for (const key in layout) {\n if (!deepEqual(layout[key], prevLayout[key])) {\n map.setLayoutProperty(id, key, layout[key]);\n }\n }\n for (const key in prevLayout) {\n if (!layout.hasOwnProperty(key)) {\n map.setLayoutProperty(id, key, undefined);\n }\n }\n }\n if (paint !== prevProps.paint) {\n const prevPaint = prevProps.paint || {};\n for (const key in paint) {\n if (!deepEqual(paint[key], prevPaint[key])) {\n map.setPaintProperty(id, key, paint[key]);\n }\n }\n for (const key in prevPaint) {\n if (!paint.hasOwnProperty(key)) {\n map.setPaintProperty(id, key, undefined);\n }\n }\n }\n if (!deepEqual(filter, prevProps.filter)) {\n map.setFilter(id, filter);\n }\n if (minzoom !== prevProps.minzoom || maxzoom !== prevProps.maxzoom) {\n map.setLayerZoomRange(id, minzoom, maxzoom);\n }\n}\nfunction createLayer(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded && (!('source' in props) || map.getSource(props.source))) {\n const options = { ...props, id };\n delete options.beforeId;\n // @ts-ignore\n map.addLayer(options, props.beforeId);\n }\n}\n/* eslint-enable complexity, max-statements */\nlet layerCounter = 0;\nfunction Layer(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-layer-${layerCounter++}`, []);\n useEffect(() => {\n if (map) {\n const forceUpdate = () => setStyleLoaded(version => version + 1);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getLayer(id)) {\n map.removeLayer(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n const layer = map && map.style && map.getLayer(id);\n if (layer) {\n try {\n updateLayer(map, id, props, propsRef.current);\n }\n catch (error) {\n console.warn(error); // eslint-disable-line\n }\n }\n else {\n createLayer(map, id, props);\n }\n // Store last rendered props\n propsRef.current = props;\n return null;\n}\nexport default Layer;\n//# sourceMappingURL=layer.js.map"],"names":["updateLayer","map","id","props","prevProps","assert","layout","paint","filter","minzoom","maxzoom","beforeId","prevLayout","key","deepEqual","prevPaint","createLayer","options","layerCounter","Layer","useContext","MapContext","propsRef","useRef","setStyleLoaded","useState","useMemo","useEffect","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UAAY,EAAE,WAAYE,IAAUF,EAAI,UAAUE,EAAM,MAAM,GAAI,CACzF,MAAMc,EAAU,CAAE,GAAGd,EAAO,GAAAD,CAAG,EAC/B,OAAOe,EAAQ,SAEXhB,EAAA,SAASgB,EAASd,EAAM,QAAQ,CACxC,CACJ,CAEA,IAAIe,EAAe,EACnB,SAASC,EAAMhB,EAAO,CAClB,MAAMF,EAAMmB,EAAAA,WAAWC,EAAAA,UAAU,EAAE,IAAI,OAAO,EACxCC,EAAWC,SAAOpB,CAAK,EACvB,EAAGqB,CAAc,EAAIC,WAAS,CAAC,EAC/BvB,EAAKwB,EAAAA,QAAQ,IAAMvB,EAAM,IAAM,aAAae,GAAc,GAAI,CAAA,CAAE,EAkBtE,GAjBAS,EAAAA,UAAU,IAAM,CACZ,GAAI1B,EAAK,CACL,MAAM2B,EAAc,IAAMJ,EAAeK,GAAWA,EAAU,CAAC,EAC3D5B,OAAAA,EAAA,GAAG,YAAa2B,CAAW,EACnBA,IACL,IAAM,CACL3B,EAAA,IAAI,YAAa2B,CAAW,EAE5B3B,EAAI,OAASA,EAAI,MAAM,SAAWA,EAAI,SAASC,CAAE,GACjDD,EAAI,YAAYC,CAAE,CACtB,CAER,CACO,EACR,CAACD,CAAG,CAAC,EAEMA,GAAOA,EAAI,OAASA,EAAI,SAASC,CAAE,EAEzC,GAAA,CACAF,EAAYC,EAAKC,EAAIC,EAAOmB,EAAS,OAAO,QAEzCQ,EAAO,CACV,QAAQ,KAAKA,CAAK,CACtB,MAGYd,EAAAf,EAAKC,EAAIC,CAAK,EAG9B,OAAAmB,EAAS,QAAUnB,EACZ,IACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs206.js");function u(o,i){for(var n=0;n<i.length;n++){const e=i[n];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in o)){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a=r.__exports.printMsg=function(){console.log("This is a message from the demo package")};const c=u({__proto__:null,default:r.__exports,printMsg:a},[r.__exports]);exports.default=r.__exports;exports.index=c;exports.printMsg=a;
1
+ "use strict";const l=require("react"),f=require("./index.cjs68.js"),d=require("./index.cjs190.js"),y=require("./index.cjs189.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
2
2
  //# sourceMappingURL=index.cjs79.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs79.js","sources":["../../../node_modules/mapbox-gl/index.js"],"sourcesContent":["exports.printMsg = function() {\r\n console.log(\"This is a message from the demo package\");\r\n }"],"names":["printMsg","mapboxGl"],"mappings":"ueAAA,IAAAA,EAAAC,EAAAA,UAAA,SAAmB,UAAW,CAC1B,QAAQ,IAAI,yCAAyC,CACvD","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs79.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/source.js"],"sourcesContent":["import * as React from 'react';\nimport { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { cloneElement } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\nlet sourceCounter = 0;\nfunction createSource(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded) {\n const options = { ...props };\n delete options.id;\n delete options.children;\n // @ts-ignore\n map.addSource(id, options);\n return map.getSource(id);\n }\n return null;\n}\n/* eslint-disable complexity */\nfunction updateSource(source, props, prevProps) {\n assert(props.id === prevProps.id, 'source id changed');\n assert(props.type === prevProps.type, 'source type changed');\n let changedKey = '';\n let changedKeyCount = 0;\n for (const key in props) {\n if (key !== 'children' && key !== 'id' && !deepEqual(prevProps[key], props[key])) {\n changedKey = key;\n changedKeyCount++;\n }\n }\n if (!changedKeyCount) {\n return;\n }\n const type = props.type;\n if (type === 'geojson') {\n source.setData(props.data);\n }\n else if (type === 'image') {\n source.updateImage({\n url: props.url,\n coordinates: props.coordinates\n });\n }\n else if ('setCoordinates' in source && changedKeyCount === 1 && changedKey === 'coordinates') {\n source.setCoordinates(props.coordinates);\n }\n else if ('setUrl' in source) {\n // Added in 1.12.0:\n // vectorTileSource.setTiles\n // vectorTileSource.setUrl\n switch (changedKey) {\n case 'url':\n source.setUrl(props.url);\n break;\n case 'tiles':\n source.setTiles(props.tiles);\n break;\n default:\n }\n }\n else {\n // eslint-disable-next-line\n console.warn(`Unable to update <Source> prop: ${changedKey}`);\n }\n}\n/* eslint-enable complexity */\nfunction Source(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-source-${sourceCounter++}`, []);\n useEffect(() => {\n if (map) {\n /* global setTimeout */\n const forceUpdate = () => setTimeout(() => setStyleLoaded(version => version + 1), 0);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n var _a;\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getSource(id)) {\n // Parent effects are destroyed before child ones, see\n // https://github.com/facebook/react/issues/16728\n // Source can only be removed after all child layers are removed\n const allLayers = (_a = map.getStyle()) === null || _a === void 0 ? void 0 : _a.layers;\n if (allLayers) {\n for (const layer of allLayers) {\n // @ts-ignore (2339) source does not exist on all layer types\n if (layer.source === id) {\n map.removeLayer(layer.id);\n }\n }\n }\n map.removeSource(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n let source = map && map.style && map.getSource(id);\n if (source) {\n updateSource(source, props, propsRef.current);\n }\n else {\n source = createSource(map, id, props);\n }\n propsRef.current = props;\n return ((source &&\n React.Children.map(props.children, child => child &&\n cloneElement(child, {\n source: id\n }))) ||\n null);\n}\nexport default Source;\n//# sourceMappingURL=source.js.map"],"names":["sourceCounter","createSource","map","id","props","options","updateSource","source","prevProps","assert","changedKey","changedKeyCount","key","deepEqual","type","Source","useContext","MapContext","propsRef","useRef","setStyleLoaded","useState","useMemo","useEffect","forceUpdate","version","_a","allLayers","layer","React","child","cloneElement"],"mappings":"4ZAMA,IAAIA,EAAgB,EACpB,SAASC,EAAaC,EAAKC,EAAIC,EAAO,CAElC,GAAIF,EAAI,OAASA,EAAI,MAAM,QA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AAW,IAAMJ,EAA0BK,GAAAA,EAAU,CAAC,EAAG,CAAC,EAChFvB,OAAAA,EAAA,GAAG,YAAasB,CAAW,EACnBA,IACL,IAAM,CACL,IAAAE,EAGA,GAFAxB,EAAA,IAAI,YAAasB,CAAW,EAE5BtB,EAAI,OAASA,EAAI,MAAM,SAAWA,EAAI,UAAUC,CAAE,EAAG,CAI/C,MAAAwB,GAAaD,EAAKxB,EAAI,SAAA,KAAgB,MAAQwB,IAAO,OAAS,OAASA,EAAG,OAChF,GAAIC,EACA,UAAWC,KAASD,EAEZC,EAAM,SAAWzB,GACbD,EAAA,YAAY0B,EAAM,EAAE,EAIpC1B,EAAI,aAAaC,CAAE,CACvB,CAAA,CAER,CACO,EACR,CAACD,CAAG,CAAC,EAER,IAAIK,EAASL,GAAOA,EAAI,OAASA,EAAI,UAAUC,CAAE,EACjD,OAAII,EACaD,EAAAC,EAAQH,EAAOc,EAAS,OAAO,EAGnCX,EAAAN,EAAaC,EAAKC,EAAIC,CAAK,EAExCc,EAAS,QAAUd,EACVG,GACLsB,EAAM,SAAS,IAAIzB,EAAM,SAAU0B,GAASA,GACxCC,EAAAA,aAAaD,EAAO,CAChB,OAAQ3B,CAAA,CACX,CAAC,GACN,IACR","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("react"),m=require("./index.cjs68.js"),L=require("./index.cjs190.js"),s=require("./index.cjs189.js");function q(t,e,a,o){if(L(a.id===o.id,"layer id changed"),L(a.type===o.type,"layer type changed"),a.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:y,minzoom:f,maxzoom:l,beforeId:d}=a;if(d!==o.beforeId&&t.moveLayer(e,d),r!==o.layout){const c=o.layout||{};for(const n in r)s.deepEqual(r[n],c[n])||t.setLayoutProperty(e,n,r[n]);for(const n in c)r.hasOwnProperty(n)||t.setLayoutProperty(e,n,void 0)}if(i!==o.paint){const c=o.paint||{};for(const n in i)s.deepEqual(i[n],c[n])||t.setPaintProperty(e,n,i[n]);for(const n in c)i.hasOwnProperty(n)||t.setPaintProperty(e,n,void 0)}s.deepEqual(y,o.filter)||t.setFilter(e,y),(f!==o.minzoom||l!==o.maxzoom)&&t.setLayerZoomRange(e,f,l)}function g(t,e,a){if(t.style&&t.style._loaded&&(!("source"in a)||t.getSource(a.source))){const o={...a,id:e};delete o.beforeId,t.addLayer(o,a.beforeId)}}let x=0;function h(t){const e=u.useContext(m.MapContext).map.getMap(),a=u.useRef(t),[,o]=u.useState(0),r=u.useMemo(()=>t.id||`jsx-layer-${x++}`,[]);if(u.useEffect(()=>{if(e){const y=()=>o(f=>f+1);return e.on("styledata",y),y(),()=>{e.off("styledata",y),e.style&&e.style._loaded&&e.getLayer(r)&&e.removeLayer(r)}}},[e]),e&&e.style&&e.getLayer(r))try{q(e,r,t,a.current)}catch(y){console.warn(y)}else g(e,r,t);return a.current=t,null}module.exports=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index.cjs80.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs80.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/layer.js"],"sourcesContent":["import { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\n/* eslint-disable complexity, max-statements */\nfunction updateLayer(map, id, props, prevProps) {\n assert(props.id === prevProps.id, 'layer id changed');\n assert(props.type === prevProps.type, 'layer type changed');\n if (props.type === 'custom' || prevProps.type === 'custom') {\n return;\n }\n const { layout = {}, paint = {}, filter, minzoom, maxzoom, beforeId } = props;\n if (beforeId !== prevProps.beforeId) {\n map.moveLayer(id, beforeId);\n }\n if (layout !== prevProps.layout) {\n const prevLayout = prevProps.layout || {};\n for (const key in layout) {\n if (!deepEqual(layout[key], prevLayout[key])) {\n map.setLayoutProperty(id, key, layout[key]);\n }\n }\n for (const key in prevLayout) {\n if (!layout.hasOwnProperty(key)) {\n map.setLayoutProperty(id, key, undefined);\n }\n }\n }\n if (paint !== prevProps.paint) {\n const prevPaint = prevProps.paint || {};\n for (const key in paint) {\n if (!deepEqual(paint[key], prevPaint[key])) {\n map.setPaintProperty(id, key, paint[key]);\n }\n }\n for (const key in prevPaint) {\n if (!paint.hasOwnProperty(key)) {\n map.setPaintProperty(id, key, undefined);\n }\n }\n }\n if (!deepEqual(filter, prevProps.filter)) {\n map.setFilter(id, filter);\n }\n if (minzoom !== prevProps.minzoom || maxzoom !== prevProps.maxzoom) {\n map.setLayerZoomRange(id, minzoom, maxzoom);\n }\n}\nfunction createLayer(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded && (!('source' in props) || map.getSource(props.source))) {\n const options = { ...props, id };\n delete options.beforeId;\n // @ts-ignore\n map.addLayer(options, props.beforeId);\n }\n}\n/* eslint-enable complexity, max-statements */\nlet layerCounter = 0;\nfunction Layer(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-layer-${layerCounter++}`, []);\n useEffect(() => {\n if (map) {\n const forceUpdate = () => setStyleLoaded(version => version + 1);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getLayer(id)) {\n map.removeLayer(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n const layer = map && map.style && map.getLayer(id);\n if (layer) {\n try {\n updateLayer(map, id, props, propsRef.current);\n }\n catch (error) {\n console.warn(error); // eslint-disable-line\n }\n }\n else {\n createLayer(map, id, props);\n }\n // Store last rendered props\n propsRef.current = props;\n return null;\n}\nexport default Layer;\n//# sourceMappingURL=layer.js.map"],"names":["updateLayer","map","id","props","prevProps","assert","layout","paint","filter","minzoom","maxzoom","beforeId","prevLayout","key","deepEqual","prevPaint","createLayer","options","layerCounter","Layer","useContext","MapContext","propsRef","useR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AIF,EAAI,OAASA,EAAI,MAAM,UAAY,EAAE,WAAYE,IAAUF,EAAI,UAAUE,EAAM,MAAM,GAAI,CACzF,MAAMc,EAAU,CAAE,GAAGd,EAAO,GAAAD,CAAG,EAC/B,OAAOe,EAAQ,SAEXhB,EAAA,SAASgB,EAASd,EAAM,QAAQ,CACxC,CACJ,CAEA,IAAIe,EAAe,EACnB,SAASC,EAAMhB,EAAO,CAClB,MAAMF,EAAMmB,EAAAA,WAAWC,EAAAA,UAAU,EAAE,IAAI,OAAO,EACxCC,EAAWC,SAAOpB,CAAK,EACvB,EAAGqB,CAAc,EAAIC,WAAS,CAAC,EAC/BvB,EAAKwB,EAAAA,QAAQ,IAAMvB,EAAM,IAAM,aAAae,GAAc,GAAI,CAAA,CAAE,EAkBtE,GAjBAS,EAAAA,UAAU,IAAM,CACZ,GAAI1B,EAAK,CACL,MAAM2B,EAAc,IAAMJ,EAAeK,GAAWA,EAAU,CAAC,EAC3D5B,OAAAA,EAAA,GAAG,YAAa2B,CAAW,EACnBA,IACL,IAAM,CACL3B,EAAA,IAAI,YAAa2B,CAAW,EAE5B3B,EAAI,OAASA,EAAI,MAAM,SAAWA,EAAI,SAASC,CAAE,GACjDD,EAAI,YAAYC,CAAE,CACtB,CAER,CACO,EACR,CAACD,CAAG,CAAC,EAEMA,GAAOA,EAAI,OAASA,EAAI,SAASC,CAAE,EAEzC,GAAA,CACAF,EAAYC,EAAKC,EAAIC,EAAOmB,EAAS,OAAO,QAEzCQ,EAAO,CACV,QAAQ,KAAKA,CAAK,CACtB,MAGYd,EAAAf,EAAKC,EAAIC,CAAK,EAG9B,OAAAmB,EAAS,QAAUnB,EACZ,IACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs80.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("react"),f=require("./index.cjs68.js"),d=require("./index.cjs190.js"),y=require("./index.cjs189.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const S=g(l);let m=0;function b(t,e,n){if(t.style&&t.style._loaded){const o={...n};return delete o.id,delete o.children,t.addSource(e,o),t.getSource(e)}return null}function h(t,e,n){d(e.id===n.id,"source id changed"),d(e.type===n.type,"source type changed");let o="",c=0;for(const r in e)r!=="children"&&r!=="id"&&!y.deepEqual(n[r],e[r])&&(o=r,c++);if(!c)return;const a=e.type;if(a==="geojson")t.setData(e.data);else if(a==="image")t.updateImage({url:e.url,coordinates:e.coordinates});else if("setCoordinates"in t&&c===1&&o==="coordinates")t.setCoordinates(e.coordinates);else if("setUrl"in t)switch(o){case"url":t.setUrl(e.url);break;case"tiles":t.setTiles(e.tiles);break}else console.warn(`Unable to update <Source> prop: ${o}`)}function C(t){const e=l.useContext(f.MapContext).map.getMap(),n=l.useRef(t),[,o]=l.useState(0),c=l.useMemo(()=>t.id||`jsx-source-${m++}`,[]);l.useEffect(()=>{if(e){const r=()=>setTimeout(()=>o(i=>i+1),0);return e.on("styledata",r),r(),()=>{var i;if(e.off("styledata",r),e.style&&e.style._loaded&&e.getSource(c)){const u=(i=e.getStyle())===null||i===void 0?void 0:i.layers;if(u)for(const s of u)s.source===c&&e.removeLayer(s.id);e.removeSource(c)}}}},[e]);let a=e&&e.style&&e.getSource(c);return a?h(a,t,n.current):a=b(e,c,t),n.current=t,a&&S.Children.map(t.children,r=>r&&l.cloneElement(r,{source:c}))||null}module.exports=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
2
  //# sourceMappingURL=index.cjs81.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs81.js","sources":["../../../node_modules/react-map-gl/dist/esm/components/source.js"],"sourcesContent":["import * as React from 'react';\nimport { useContext, useEffect, useMemo, useState, useRef } from 'react';\nimport { cloneElement } from 'react';\nimport { MapContext } from './map';\nimport assert from '../utils/assert';\nimport { deepEqual } from '../utils/deep-equal';\nlet sourceCounter = 0;\nfunction createSource(map, id, props) {\n // @ts-ignore\n if (map.style && map.style._loaded) {\n const options = { ...props };\n delete options.id;\n delete options.children;\n // @ts-ignore\n map.addSource(id, options);\n return map.getSource(id);\n }\n return null;\n}\n/* eslint-disable complexity */\nfunction updateSource(source, props, prevProps) {\n assert(props.id === prevProps.id, 'source id changed');\n assert(props.type === prevProps.type, 'source type changed');\n let changedKey = '';\n let changedKeyCount = 0;\n for (const key in props) {\n if (key !== 'children' && key !== 'id' && !deepEqual(prevProps[key], props[key])) {\n changedKey = key;\n changedKeyCount++;\n }\n }\n if (!changedKeyCount) {\n return;\n }\n const type = props.type;\n if (type === 'geojson') {\n source.setData(props.data);\n }\n else if (type === 'image') {\n source.updateImage({\n url: props.url,\n coordinates: props.coordinates\n });\n }\n else if ('setCoordinates' in source && changedKeyCount === 1 && changedKey === 'coordinates') {\n source.setCoordinates(props.coordinates);\n }\n else if ('setUrl' in source) {\n // Added in 1.12.0:\n // vectorTileSource.setTiles\n // vectorTileSource.setUrl\n switch (changedKey) {\n case 'url':\n source.setUrl(props.url);\n break;\n case 'tiles':\n source.setTiles(props.tiles);\n break;\n default:\n }\n }\n else {\n // eslint-disable-next-line\n console.warn(`Unable to update <Source> prop: ${changedKey}`);\n }\n}\n/* eslint-enable complexity */\nfunction Source(props) {\n const map = useContext(MapContext).map.getMap();\n const propsRef = useRef(props);\n const [, setStyleLoaded] = useState(0);\n const id = useMemo(() => props.id || `jsx-source-${sourceCounter++}`, []);\n useEffect(() => {\n if (map) {\n /* global setTimeout */\n const forceUpdate = () => setTimeout(() => setStyleLoaded(version => version + 1), 0);\n map.on('styledata', forceUpdate);\n forceUpdate();\n return () => {\n var _a;\n map.off('styledata', forceUpdate);\n // @ts-ignore\n if (map.style && map.style._loaded && map.getSource(id)) {\n // Parent effects are destroyed before child ones, see\n // https://github.com/facebook/react/issues/16728\n // Source can only be removed after all child layers are removed\n const allLayers = (_a = map.getStyle()) === null || _a === void 0 ? void 0 : _a.layers;\n if (allLayers) {\n for (const layer of allLayers) {\n // @ts-ignore (2339) source does not exist on all layer types\n if (layer.source === id) {\n map.removeLayer(layer.id);\n }\n }\n }\n map.removeSource(id);\n }\n };\n }\n return undefined;\n }, [map]);\n // @ts-ignore\n let source = map && map.style && map.getSource(id);\n if (source) {\n updateSource(source, props, propsRef.current);\n }\n else {\n source = createSource(map, id, props);\n }\n propsRef.current = props;\n return ((source &&\n React.Children.map(props.children, child => child &&\n cloneElement(child, {\n source: id\n }))) ||\n null);\n}\nexport default Source;\n//# sourceMappingURL=source.js.map"],"names":["sourceCounter","createSource","map","id","props","options","updateSource","source","prevProps","assert","changedKey","changedKeyCount","key","deepEqual","type","Source","useContext","MapContext","propsRef","useRef","setStyleLoaded","useState","useMemo","useEffect","forceUpdate","version","_a","allLayers","layer","React","child","cloneElement"],"mappings":"4ZAMA,IAAIA,EAAgB,EACpB,SAASC,EAAaC,EAAKC,EAAIC,EAAO,CAElC,GAAIF,EAAI,OAASA,EAAI,MAAM,QAAS,CAC1B,MAAAG,EAAU,CAAE,GAAGD,GACrB,cAAOC,EAAQ,GACf,OAAOA,EAAQ,SAEXH,EAAA,UAAUC,EAAIE,CAAO,EAClBH,EAAI,UAAUC,CAAE,CAC3B,CACO,OAAA,IACX,CAEA,SAASG,EAAaC,EAAQH,EAAOI,EAAW,CAC5CC,EAAOL,EAAM,KAAOI,EAAU,GAAI,mBAAmB,EACrDC,EAAOL,EAAM,OAASI,EAAU,KAAM,qBAAqB,EAC3D,IAAIE,EAAa,GACbC,EAAkB,EACtB,UAAWC,KAAOR,EACVQ,IAAQ,YAAcA,IAAQ,MAAQ,CAACC,EAAAA,UAAUL,EAAUI,CAAG,EAAGR,EAAMQ,CAAG,CAAC,IAC9DF,EAAAE,EACbD,KAGR,GAAI,CAACA,EACD,OAEJ,MAAMG,EAAO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AI,UAAUC,CAAE,EACjD,OAAII,EACaD,EAAAC,EAAQH,EAAOc,EAAS,OAAO,EAGnCX,EAAAN,EAAaC,EAAKC,EAAIC,CAAK,EAExCc,EAAS,QAAUd,EACVG,GACLsB,EAAM,SAAS,IAAIzB,EAAM,SAAU0B,GAASA,GACxCC,EAAAA,aAAaD,EAAO,CAChB,OAAQ3B,CAAA,CACX,CAAC,GACN,IACR","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs81.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -7,13 +7,13 @@ import "./index.es72.js";
7
7
  import "./index.es73.js";
8
8
  import m from "./index.es74.js";
9
9
  import "./index.es75.js";
10
- import a from "./index.es80.js";
11
- import n from "./index.es81.js";
10
+ import a from "./index.es78.js";
11
+ import n from "./index.es79.js";
12
12
  import { useMap as e } from "./index.es76.js";
13
13
  function C() {
14
14
  return e();
15
15
  }
16
- const f = import("./index.es79.js").then((o) => o.i), N = i.forwardRef(function(r, t) {
16
+ const f = import("./index.es77.js").then((o) => o.i), N = i.forwardRef(function(r, t) {
17
17
  return p(r, t, f);
18
18
  }), R = m, S = a, b = n;
19
19
  export {
@@ -1,5 +1,5 @@
1
1
  import { commonjsGlobal as nd, getDefaultExportFromCjs as od } from "./index.es60.js";
2
- import { __module as lu } from "./index.es67.js";
2
+ import { __module as lu } from "./index.es65.js";
3
3
  function ld(an, vl) {
4
4
  for (var Ur = 0; Ur < vl.length; Ur++) {
5
5
  const cr = vl[Ur];
@@ -1,5 +1,5 @@
1
- import { GenIcon as a } from "./index.es65.js";
2
- import "./index.es66.js";
1
+ import { GenIcon as a } from "./index.es66.js";
2
+ import "./index.es67.js";
3
3
  function c(t) {
4
4
  return a({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z" }, child: [] }, { tag: "path", attr: { d: "m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z" }, child: [] }] })(t);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { GenIcon as o } from "./index.es65.js";
2
- import "./index.es66.js";
1
+ import { GenIcon as o } from "./index.es66.js";
2
+ import "./index.es67.js";
3
3
  function e(t) {
4
4
  return o({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M416 128 192 384l-96-96" }, child: [] }] })(t);
5
5
  }
package/dist/index.es5.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as i } from "./index.es17.js";
2
- import { useState as l, useRef as N, useCallback as c, useMemo as h, Children as k, useEffect as f } from "react";
3
- import { BsStack as x } from "./index.es21.js";
2
+ import { useState as l, useRef as x, useCallback as c, useMemo as h, Children as N, useEffect as f } from "react";
3
+ import { BsStack as k } from "./index.es21.js";
4
4
  import { IoCheckmarkOutline as C } from "./index.es22.js";
5
5
  import s from "./index.es23.js";
6
6
  import "./index.es24.js";
@@ -33,7 +33,7 @@ import "./index.es50.js";
33
33
  import M from "./index.es7.js";
34
34
  import "./index.es51.js";
35
35
  const _ = 30, w = (o) => {
36
- const [d, b] = l(0), [m, p] = l(), [g, j] = l(!1), a = N(), v = c((t) => o.names && o.names.length > t && o.names[t], [o.names]), r = c((t) => s.includes(m, t), [m]), n = h(() => k.toArray(o.children), [o.children]), y = h(() => s.filter(n, (t, e) => r(e)), [n, r]), u = c((t) => {
36
+ const [d, b] = l(0), [m, p] = l(), [g, j] = l(!1), a = x(), v = c((t) => o.names && o.names.length > t && o.names[t], [o.names]), r = c((t) => s.includes(m, t), [m]), n = h(() => N.toArray(o.children), [o.children]), y = h(() => s.filter(n, (t, e) => r(e)), [n, r]), u = c((t) => {
37
37
  let e;
38
38
  r(t) ? e = s.without(m, t) : e = [...m, t], p(e);
39
39
  }, [r, m]);
@@ -60,7 +60,7 @@ const _ = 30, w = (o) => {
60
60
  onClick: () => j((t) => !t),
61
61
  type: "button",
62
62
  children: /* @__PURE__ */ i.jsx(
63
- x,
63
+ k,
64
64
  {
65
65
  size: "1.25em"
66
66
  }
@@ -83,9 +83,9 @@ const _ = 30, w = (o) => {
83
83
  {
84
84
  "aria-selected": r(e),
85
85
  className: "option",
86
+ role: "option",
86
87
  onClick: () => u(e),
87
88
  onKeyDown: () => u(e),
88
- role: "option",
89
89
  tabIndex: e,
90
90
  children: [
91
91
  /* @__PURE__ */ i.jsx(
@@ -102,8 +102,7 @@ const _ = 30, w = (o) => {
102
102
  ),
103
103
  v(e)
104
104
  ]
105
- },
106
- e
105
+ }
107
106
  ))
108
107
  }
109
108
  )
@@ -1 +1 @@
1
- {"version":3,"file":"index.es5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n key={index}\n onClick={() => toggleVisibility(index)}\n onKeyDown={() => toggleVisibility(index)}\n role='option'\n tabIndex={index}\n >\n <div\n className='checkmark-container'\n >\n { isVisible(index) && (\n <IoCheckmarkOutline\n size='1em'\n />\n )}\n </div>\n { getLayerName(index) }\n </div>\n ))}\n </div>\n </div>\n )}\n </MapControl>\n { visibleChildren }\n </>\n );\n};\n\nLayerMenu.defaultProps = {\n position: 'top-left'\n};\n\nexport default LayerMenu;\n"],"names":["MENU_PADDING","LayerMenu","props","canvasHeight","setCanvasHeight","useState","visible","setVisible","menuOpen","setMenuOpen","mapRef","useRef","getLayerName","useCallback","index","isVisible","_","children","useMemo","Children","visibleChildren","child","toggleVisibility","value","useEffect","instance","offsetHeight","jsxs","Fragment","MapControl","jsx","prevMenuOpen","BsStack","IoCheckmarkOutline"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,IAAe,IAEfC,IAAY,CAACC,MAAiB;AAClC,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC,GAC5C,CAACC,GAASC,CAAU,IAAIF,EAAS,GACjC,CAACG,GAAUC,CAAW,IAAIJ,EAAS,EAAK,GAExCK,IAASC,KAOTC,IAAeC,EAAY,CAACC,MAChCZ,EAAM,SAASA,EAAM,MAAM,SAASY,KAASZ,EAAM,MAAMY,CAAK,GAC7D,CAACZ,EAAM,KAAK,CAAC,GAOVa,IAAYF,EAAY,CAACC,MAAUE,EAAE,SAASV,GAASQ,CAAK,GAAG,CAACR,CAAO,CAAC,GAOxEW,IAAWC,EAAQ,MAAMC,EAAS,QAAQjB,EAAM,QAAQ,GAAG,CAACA,EAAM,QAAQ,CAAC,GAK3EkB,IAAkBF,EAAQ,MAAMF,EAAE,OAAOC,GAAU,CAACI,GAAOP,MAAUC,EAAUD,CAAK,CAAC,GAAG,CAACG,GAAUF,CAAS,CAAC,GAO7GO,IAAmBT,EAAY,CAACC,MAAU;AAC1C,QAAAS;AAEA,IAAAR,EAAUD,CAAK,IACTS,IAAAP,EAAE,QAAQV,GAASQ,CAAK,IAExBS,IAAA,CAAC,GAAGjB,GAASQ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,EAAA;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,iBAAeZ,EAAUD,CAAK;AAAA,sBAC9B,WAAU;AAAA,sBAEV,SAAS,MAAMQ,EAAiBR,CAAK;AAAA,sBACrC,WAAW,MAAMQ,EAAiBR,CAAK;AAAA,sBACvC,MAAK;AAAA,sBACL,UAAUA;AAAA,sBAEV,UAAA;AAAA,wBAAAgB,gBAAAA,EAAA;AAAA,0BAAC;AAAA,0BAAA;AAAA,4BACC,WAAU;AAAA,4BAER,UAAAf,EAAUD,CAAK,KACfgB,gBAAAA,EAAA;AAAA,8BAACG;AAAA,8BAAA;AAAA,gCACC,MAAK;AAAA,8BAAA;AAAA,4BACP;AAAA,0BAAA;AAAA,wBAEJ;AAAA,wBACErB,EAAaE,CAAK;AAAA,sBAAA;AAAA,oBAAA;AAAA,oBAffA;AAAA,kBAAA,CAiBR;AAAA,gBAAA;AAAA,cACH;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAEJ;AAAA,IACEM;AAAA,EACJ,EAAA,CAAA;AAEJ;AAEAnB,EAAU,eAAe;AAAA,EACvB,UAAU;AACZ;"}
1
+ {"version":3,"file":"index.es5.js","sources":["../src/components/LayerMenu.js"],"sourcesContent":["// @flow\n\nimport React, {\n Children,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState\n} from 'react';\nimport { BsStack } from 'react-icons/bs';\nimport { IoCheckmarkOutline } from 'react-icons/io5';\nimport _ from 'underscore';\nimport MapControl from './MapControl';\nimport './LayerMenu.css';\n\ntype Props = {\n children: Node,\n className?: string,\n names: Array<string>,\n position: 'top-left' | 'bottom-left' | 'top-right' | 'bottom-right'\n};\n\nconst MENU_PADDING = 30;\n\nconst LayerMenu = (props: Props) => {\n const [canvasHeight, setCanvasHeight] = useState(0);\n const [visible, setVisible] = useState();\n const [menuOpen, setMenuOpen] = useState(false);\n\n const mapRef = useRef();\n\n /**\n * Returns the name of the layer at the passed index.\n *\n * @type {unknown}\n */\n const getLayerName = useCallback((index) => (\n props.names && props.names.length > index && props.names[index]\n ), [props.names]);\n\n /**\n * Returns true if the child element at the passed index is visible.\n *\n * @type {function(*): *}\n */\n const isVisible = useCallback((index) => _.includes(visible, index), [visible]);\n\n /**\n * Returns a memoized array of the child elements.\n *\n * @type {Array<$NonMaybeType<unknown>>}\n */\n const children = useMemo(() => Children.toArray(props.children), [props.children]);\n\n /**\n * Returns a memoized array of visible child elements.\n */\n const visibleChildren = useMemo(() => _.filter(children, (child, index) => isVisible(index)), [children, isVisible]);\n\n /**\n * Toggles the visibility for the child element at the passed index.\n *\n * @type {(function(*): void)|*}\n */\n const toggleVisibility = useCallback((index) => {\n let value;\n\n if (isVisible(index)) {\n value = _.without(visible, index);\n } else {\n value = [...visible, index];\n }\n\n setVisible(value);\n }, [isVisible, visible]);\n\n /**\n * Sets all of the child elements to be visible when the component mounts.\n */\n useEffect(() => {\n setVisible(_.times(children.length, (index) => index));\n }, []);\n\n /**\n * Sets the map canvas height.\n */\n useEffect(() => {\n const { current: instance } = mapRef;\n\n if (instance && instance._canvas) {\n const { offsetHeight = 0 } = mapRef.current._canvas;\n setCanvasHeight(offsetHeight);\n }\n }, [mapRef.current]);\n\n if (_.isEmpty(children)) {\n return null;\n }\n\n return (\n <>\n <MapControl\n mapRef={mapRef}\n position={props.position}\n >\n <button\n aria-label='Toggle Menu'\n className={props.className || 'mapbox-gl-draw_ctrl-draw-btn layer-button'}\n onClick={() => setMenuOpen((prevMenuOpen) => !prevMenuOpen)}\n type='button'\n >\n <BsStack\n size='1.25em'\n />\n </button>\n { menuOpen && (\n <div\n className='layer-menu'\n style={{\n maxHeight: `calc(${canvasHeight}px - ${MENU_PADDING}px)`\n }}\n >\n <div\n className='menu'\n >\n { _.map(children, (child, index) => (\n <div\n aria-selected={isVisible(index)}\n className='option'\n role='option'\n onClick={() => toggleVisibility(index)}\n onKeyDown={() => toggleVisibility(index)}\n tabIndex={index}\n >\n <div\n className='checkmark-container'\n >\n { isVisible(index) && (\n <IoCheckmarkOutline\n size='1em'\n />\n )}\n </div>\n { getLayerName(index) }\n </div>\n ))}\n </div>\n </div>\n )}\n </MapControl>\n { visibleChildren }\n </>\n );\n};\n\nLayerMenu.defaultProps = {\n position: 'top-left'\n};\n\nexport default LayerMenu;\n"],"names":["MENU_PADDING","LayerMenu","props","canvasHeight","setCanvasHeight","useState","visible","setVisible","menuOpen","setMenuOpen","mapRef","useRef","getLayerName","useCallback","index","isVisible","_","children","useMemo","Children","visibleChildren","child","toggleVisibility","value","useEffect","instance","offsetHeight","jsxs","Fragment","MapControl","jsx","prevMenuOpen","BsStack","IoCheckmarkOutline"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,IAAe,IAEfC,IAAY,CAACC,MAAiB;AAClC,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAS,CAAC,GAC5C,CAACC,GAASC,CAAU,IAAIF,EAAS,GACjC,CAACG,GAAUC,CAAW,IAAIJ,EAAS,EAAK,GAExCK,IAASC,KAOTC,IAAeC,EAAY,CAACC,MAChCZ,EAAM,SAASA,EAAM,MAAM,SAASY,KAASZ,EAAM,MAAMY,CAAK,GAC7D,CAACZ,EAAM,KAAK,CAAC,GAOVa,IAAYF,EAAY,CAACC,MAAUE,EAAE,SAASV,GAASQ,CAAK,GAAG,CAACR,CAAO,CAAC,GAOxEW,IAAWC,EAAQ,MAAMC,EAAS,QAAQjB,EAAM,QAAQ,GAAG,CAACA,EAAM,QAAQ,CAAC,GAK3EkB,IAAkBF,EAAQ,MAAMF,EAAE,OAAOC,GAAU,CAACI,GAAOP,MAAUC,EAAUD,CAAK,CAAC,GAAG,CAACG,GAAUF,CAAS,CAAC,GAO7GO,IAAmBT,EAAY,CAACC,MAAU;AAC1C,QAAAS;AAEA,IAAAR,EAAUD,CAAK,IACTS,IAAAP,EAAE,QAAQV,GAASQ,CAAK,IAExBS,IAAA,CAAC,GAAGjB,GAASQ,CAAK,GAG5BP,EAA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;AAAA,oBAAA;AAAA,sBACC,iBAAeZ,EAAUD,CAAK;AAAA,sBAC9B,WAAU;AAAA,sBACV,MAAK;AAAA,sBACL,SAAS,MAAMQ,EAAiBR,CAAK;AAAA,sBACrC,WAAW,MAAMQ,EAAiBR,CAAK;AAAA,sBACvC,UAAUA;AAAA,sBAEV,UAAA;AAAA,wBAAAgB,gBAAAA,EAAA;AAAA,0BAAC;AAAA,0BAAA;AAAA,4BACC,WAAU;AAAA,4BAER,UAAAf,EAAUD,CAAK,KACfgB,gBAAAA,EAAA;AAAA,8BAACG;AAAA,8BAAA;AAAA,gCACC,MAAK;AAAA,8BAAA;AAAA,4BACP;AAAA,0BAAA;AAAA,wBAEJ;AAAA,wBACErB,EAAaE,CAAK;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBAAA,CAEvB;AAAA,gBAAA;AAAA,cACH;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAEJ;AAAA,IACEM;AAAA,EACJ,EAAA,CAAA;AAEJ;AAEAnB,EAAU,eAAe;AAAA,EACvB,UAAU;AACZ;"}
@@ -1,4 +1,4 @@
1
- import { __exports as t } from "./index.es77.js";
1
+ import { __exports as t } from "./index.es80.js";
2
2
  import R from "react";
3
3
  var p;
4
4
  function v() {
@@ -1,4 +1,4 @@
1
- import { __exports as y } from "./index.es78.js";
1
+ import { __exports as y } from "./index.es81.js";
2
2
  import te from "react";
3
3
  var hr;
4
4
  function oe() {
@@ -1,110 +1,5 @@
1
- import l from "react";
2
- import { IconContext as s, DefaultContext as y } from "./index.es66.js";
3
- var O = ["attr", "size", "title"];
4
- function v(e, t) {
5
- if (e == null)
6
- return {};
7
- var r = p(e, t), n, i;
8
- if (Object.getOwnPropertySymbols) {
9
- var o = Object.getOwnPropertySymbols(e);
10
- for (i = 0; i < o.length; i++)
11
- n = o[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
12
- }
13
- return r;
14
- }
15
- function p(e, t) {
16
- if (e == null)
17
- return {};
18
- var r = {}, n = Object.keys(e), i, o;
19
- for (o = 0; o < n.length; o++)
20
- i = n[o], !(t.indexOf(i) >= 0) && (r[i] = e[i]);
21
- return r;
22
- }
23
- function c() {
24
- return c = Object.assign ? Object.assign.bind() : function(e) {
25
- for (var t = 1; t < arguments.length; t++) {
26
- var r = arguments[t];
27
- for (var n in r)
28
- Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
29
- }
30
- return e;
31
- }, c.apply(this, arguments);
32
- }
33
- function m(e, t) {
34
- var r = Object.keys(e);
35
- if (Object.getOwnPropertySymbols) {
36
- var n = Object.getOwnPropertySymbols(e);
37
- t && (n = n.filter(function(i) {
38
- return Object.getOwnPropertyDescriptor(e, i).enumerable;
39
- })), r.push.apply(r, n);
40
- }
41
- return r;
42
- }
43
- function u(e) {
44
- for (var t = 1; t < arguments.length; t++) {
45
- var r = arguments[t] != null ? arguments[t] : {};
46
- t % 2 ? m(Object(r), !0).forEach(function(n) {
47
- j(e, n, r[n]);
48
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : m(Object(r)).forEach(function(n) {
49
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
50
- });
51
- }
52
- return e;
53
- }
54
- function j(e, t, r) {
55
- return t = P(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
56
- }
57
- function P(e) {
58
- var t = h(e, "string");
59
- return typeof t == "symbol" ? t : String(t);
60
- }
61
- function h(e, t) {
62
- if (typeof e != "object" || e === null)
63
- return e;
64
- var r = e[Symbol.toPrimitive];
65
- if (r !== void 0) {
66
- var n = r.call(e, t || "default");
67
- if (typeof n != "object")
68
- return n;
69
- throw new TypeError("@@toPrimitive must return a primitive value.");
70
- }
71
- return (t === "string" ? String : Number)(e);
72
- }
73
- function b(e) {
74
- return e && e.map((t, r) => /* @__PURE__ */ l.createElement(t.tag, u({
75
- key: r
76
- }, t.attr), b(t.child)));
77
- }
78
- function _(e) {
79
- return (t) => /* @__PURE__ */ l.createElement(d, c({
80
- attr: u({}, e.attr)
81
- }, t), b(e.child));
82
- }
83
- function d(e) {
84
- var t = (r) => {
85
- var {
86
- attr: n,
87
- size: i,
88
- title: o
89
- } = e, g = v(e, O), f = i || r.size || "1em", a;
90
- return r.className && (a = r.className), e.className && (a = (a ? a + " " : "") + e.className), /* @__PURE__ */ l.createElement("svg", c({
91
- stroke: "currentColor",
92
- fill: "currentColor",
93
- strokeWidth: "0"
94
- }, r.attr, n, g, {
95
- className: a,
96
- style: u(u({
97
- color: e.color || r.color
98
- }, r.style), e.style),
99
- height: f,
100
- width: f,
101
- xmlns: "http://www.w3.org/2000/svg"
102
- }), o && /* @__PURE__ */ l.createElement("title", null, o), e.children);
103
- };
104
- return s !== void 0 ? /* @__PURE__ */ l.createElement(s.Consumer, null, (r) => t(r)) : t(y);
105
- }
1
+ var e = { exports: {} };
106
2
  export {
107
- _ as GenIcon,
108
- d as IconBase
3
+ e as __module
109
4
  };
110
5
  //# sourceMappingURL=index.es65.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es65.js","sources":["../../../node_modules/react-icons/lib/iconBase.mjs"],"sourcesContent":["var _excluded = [\"attr\", \"size\", \"title\"];\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from \"react\";\nimport { IconContext, DefaultContext } from \"./iconContext.mjs\";\nfunction Tree2Element(tree) {\n return tree && tree.map((node, i) => /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: i\n }, node.attr), Tree2Element(node.child)));\n}\nexport function GenIcon(data) {\n // eslint-disable-next-line react/display-name\n return props => /*#__PURE__*/React.createElement(IconBase, _extends({\n attr: _objectSpread({}, data.attr)\n }, props), Tree2Element(data.child));\n}\nexport function IconBase(props) {\n var elem = conf => {\n var {\n attr,\n size,\n title\n } = props,\n svgProps = _objectWithoutProperties(props, _excluded);\n var computedSize = size || conf.size || \"1em\";\n var className;\n if (conf.className) className = conf.className;\n if (props.className) className = (className ? className + \" \" : \"\") + props.className;\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n stroke: \"currentColor\",\n fill: \"currentColor\",\n strokeWidth: \"0\"\n }, conf.attr, attr, svgProps, {\n className: className,\n style: _objectSpread(_objectSpread({\n color: props.color || conf.color\n }, conf.style), props.style),\n height: computedSize,\n width: computedSize,\n xmlns: \"http://www.w3.org/2000/svg\"\n }), title && /*#__PURE__*/React.createElement(\"title\", null, title), props.children);\n };\n return IconContext !== undefined ? /*#__PURE__*/React.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);\n}"],"names":["_excluded","_objectWithoutProperties","source","excluded","target","_objectWithoutPropertiesLoose","key","sourceSymbolKeys","sourceKeys","i","_extends","ownKeys","r","t","o","_objectSpread","_defineProperty","obj","value","_toPropertyKey","arg","_toPrimitive","input","hint","prim","res","Tree2Element","tree","node","React","GenIcon","data","props","IconBase","elem","conf","attr","size","title","svgProps","computedSize","className","IconContext","DefaultContext"],"mappings":";;AAAA,IAAIA,IAAY,CAAC,QAAQ,QAAQ,OAAO;AACxC,SAASC,EAAyBC,GAAQC,GAAU;AAAE,MAAID,KAAU;AAAM,WAAO;AAAI,MAAIE,IAASC,EAA8BH,GAAQC,CAAQ,GAAOG,GAAK;AAAG,MAAI,OAAO,uBAAuB;AAAE,QAAIC,IAAmB,OAAO,sBAAsBL,CAAM;AAAG,SAAK,IAAI,GAAG,IAAIK,EAAiB,QAAQ;AAAkC,MAA3BD,IAAMC,EAAiB,CAAC,GAAO,EAAAJ,EAAS,QAAQG,CAAG,KAAK,MAAkB,OAAO,UAAU,qBAAqB,KAAKJ,GAAQI,CAAG,MAAaF,EAAOE,CAAG,IAAIJ,EAAOI,CAAG;AAAA,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