import{i as e}from"./button-kCMf1ZBL.js";import{C as t,M as n}from"./vendor-tanstack-DmFvmRiZ.js";import{Nt as r,_t as i}from"./index-oRZw5GW3.js";function a(e){return new URL(e.match(/^https?:\/\//i)?e:`https://${e}`).toString()}function o(e){if(e?.domains){for(let t of e.domains)if(t.domain)return a(t.domain)}return e?.fqdn?a(e.fqdn):null}function s(){let{clusterId:a,instanceId:s}=t({strict:!1}),c=r(),{data:l}=n(i(a));return a&&e.checkForFabricConnect(a)||s&&e.checkForFabricConnect(s)||l&&!s?o(l):c.defaults.baseURL?c.defaults.baseURL.replace(/:9925\/?/,``):null}export{s as t};
//# sourceMappingURL=useEntityRestURL-14jWKu9J.js.map