{"version":3,"file":"leaflet.groupedlayercontrol.min.js","sources":["../src/leaflet.groupedlayercontrol.js"],"names":["L","Control","GroupedLayers","extend","options","collapsed","position","autoZIndex","exclusiveGroups","groupCheckboxes","initialize","baseLayers","groupedOverlays","i","j","Util","setOptions","this","_layers","_lastZIndex","_handlingClick","_groupList","_domGroups","_addLayer","onAdd","map","_initLayout","_update","on","_onLayerChange","_container","onRemove","off","addBaseLayer","layer","name","addOverlay","group","removeLayer","id","stamp","_layer","_getLayer","indexOf","length","className","container","DomUtil","create","setAttribute","Browser","touch","DomEvent","stopPropagation","disableClickPropagation","form","_form","android","_expand","_collapse","link","_layersLink","href","title","stop","_map","_baseLayersList","_separator","_overlaysList","appendChild","overlay","push","groupId","_indexOf","exclusive","setZIndex","innerHTML","obj","baseLayersPresent","overlaysPresent","_addItem","style","display","e","type","fire","_createRadioElement","checked","radioHtml","radioFragment","document","createElement","firstChild","input","groupRadioName","label","hasLayer","defaultChecked","layerId","groupID","_onInputClick","groupContainer","groupLabel","groupInput","legend","_onGroupInputClick","groupName","this_legend","inputs","getElementsByTagName","inputsLen","addLayer","addClass","acceptableHeight","_size","y","offsetTop","clientHeight","height","replace","arr","control","groupedLayers"],"mappings":";;;AAIAA,EAAEC,QAAQC,cAAgBF,EAAEC,QAAQE,QAElCC,SACEC,WAAW,EACXC,SAAU,WACVC,YAAY,EACZC,mBACAC,iBAAiB,GAGnBC,WAAY,SAAUC,EAAYC,EAAiBR,GACjD,GAAIS,GAAGC,CACPd,GAAEe,KAAKC,WAAWC,KAAMb,GAExBa,KAAKC,WACLD,KAAKE,YAAc,EACnBF,KAAKG,gBAAiB,EACtBH,KAAKI,cACLJ,KAAKK,aAEL,KAAKT,IAAKF,GACRM,KAAKM,UAAUZ,EAAWE,GAAIA,EAGhC,KAAKA,IAAKD,GACR,IAAKE,IAAKF,GAAgBC,GACxBI,KAAKM,UAAUX,EAAgBC,GAAGC,GAAIA,EAAGD,GAAG,IAKlDW,MAAO,SAAUC,GAQf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