{#if layout.layers.some((l) => l.presets?.length > 0)} {/if} state.guistate.themeIsOpened.setData(false)}>
{#if $currentGPSLocation !== undefined || $geopermission === "prompt"} {:else if $geopermission === "requested"} {:else if $geopermission === "denied"} {:else} {/if}
state.guistate.themeIsOpened.setData(false)} on:searchIsValid={(event) => { searchEnabled = event.detail }} perLayer={state.perLayer} {selectedElement} {triggerSearch} />
{#if $currentGPSLocation === undefined && $geopermission === "requested" && GeoLocationState.isSafari()} {/if}