{
  "version": 3,
  "sources": ["ssg:https://asset.29cm.co.kr/contents/framer/hooks/useCreateIsomorphicAppSchemeLink.js", "ssg:https://asset.29cm.co.kr/contents/framer/utils/getAnchorTarget.js"],
  "sourcesContent": ["import { useDeviceInfo } from \"./useDeviceInfo.js\";\nconst useCreateIsomorphicAppSchemeLink = (url) => {\n  const {\n    isWebview\n  } = useDeviceInfo();\n  return isWebview && url ? `app29cm://web/${url}` : url;\n};\nexport {\n  useCreateIsomorphicAppSchemeLink\n};\n", "import { isServer } from \"./context.js\";\nconst getAnchorTarget = (url) => {\n  if (isServer()) {\n    return \"_self\";\n  }\n  return normalizeURL(url) === normalizeURL(window.location.href) ? \"_self\" : \"_blank\";\n};\nconst normalizeURL = (url) => {\n  const hasOrigin = !url.startsWith(\"/\");\n  try {\n    const {\n      origin,\n      pathname\n    } = new URL(hasOrigin ? url : `${window.location.origin}${url}`);\n    return `${origin}${pathname}`;\n  } catch (error) {\n    return \"\";\n  }\n};\nexport {\n  getAnchorTarget\n};\n"],
  "mappings": "yFACA,IAAMA,EAAoCC,GAAQ,CAChD,GAAM,CACJ,UAAAC,CACF,EAAIC,EAAc,EAClB,OAAOD,GAAaD,EAAM,iBAAiBA,CAAG,GAAKA,CACrD,ECLA,IAAMG,EAAmBC,GACnBC,EAAS,GAGNC,EAAaF,CAAG,IAAME,EAAaC,EAAO,SAAS,IAAI,EAFrD,QAEmE,SAExED,EAAgBF,GAAQ,CAC5B,IAAMI,EAAY,CAACJ,EAAI,WAAW,GAAG,EACrC,GAAI,CACF,GAAM,CACJ,OAAAK,EACA,SAAAC,CACF,EAAI,IAAI,IAAIF,EAAYJ,EAAM,GAAGG,EAAO,SAAS,MAAM,GAAGH,CAAG,EAAE,EAC/D,MAAO,GAAGK,CAAM,GAAGC,CAAQ,EAC7B,MAAgB,CACd,MAAO,EACT,CACF",
  "names": ["useCreateIsomorphicAppSchemeLink", "url", "isWebview", "useDeviceInfo", "getAnchorTarget", "url", "isServer", "normalizeURL", "window", "hasOrigin", "origin", "pathname"]
}
