{"version":3,"file":"domain.mjs","names":[],"sources":["../../src/utils/domain.ts"],"sourcesContent":["export function getDomainFromUrl(url: string): string {\n  if (!url.startsWith('http://') && !url.startsWith('https://')) {\n    throw new Error('URL must start with \"https://\"')\n  }\n\n  const regex = /[#/?]/\n  const domain = url.split('://')[1].split(regex)[0].split(':')[0]\n  return domain\n}\n"],"mappings":";;;AAAA,SAAgB,iBAAiB,KAAqB;AACpD,KAAI,CAAC,IAAI,WAAW,UAAU,IAAI,CAAC,IAAI,WAAW,WAAW,CAC3D,OAAM,IAAI,MAAM,mCAAiC;AAKnD,QADe,IAAI,MAAM,MAAM,CAAC,GAAG,MADrB,QACiC,CAAC,GAAG,MAAM,IAAI,CAAC"}