{"version":3,"file":"useNavigatePage.Bgn13Dud.mjs","names":[],"sources":["https:/asset.29cm.co.kr/contents/framer/hooks/useNavigatePage.js"],"sourcesContent":["import { isWebview } from \"../utils/device.js\";\nimport { useCreateAppSchemeLink } from \"./useCreateAppSchemeLink.js\";\nimport { getAnchorTarget } from \"../utils/getAnchorTarget.js\";\nconst useNavigatePage = (url, options = {}) => {\n  const {\n    createAppSchemeLink\n  } = useCreateAppSchemeLink();\n  return () => {\n    if (isWebview()) {\n      document.location.href = createAppSchemeLink(url, options.webview);\n    } else {\n      window.open(url, getAnchorTarget(url));\n    }\n  };\n};\nexport {\n  useNavigatePage\n};\n"],"mappings":"kXAA+C,IACsB,IACP,CACxD,GAAmB,EAAK,EAAU,EAAE,GAAK,CAC7C,GAAM,CACJ,uBACE,GAAwB,CAC5B,UAAa,CACP,GAAW,CACb,SAAS,SAAS,KAAO,EAAoB,EAAK,EAAQ,QAAQ,CAElE,EAAO,KAAK,EAAK,EAAgB,EAAI,CAAC"}