export function getMap(id) {
    return document.querySelector((id) ? `gl-map#${id}` : 'gl-map');
}
export function getThumbnail(item) {
    if (item.image)
        return (h("ion-thumbnail", { slot: "start" },
            h("img", { src: item.image })));
}
export function toArray(value, sep = ',') {
    if (!value)
        return [];
    if (Array.isArray(value))
        return value;
    return value.split(sep);
}
export const getAbsoluteUrl = (function () {
    let a;
    return function (url) {
        if (!a)
            a = document.createElement('a');
        a.href = url;
        return a.href;
    };
})();
