{
  "version": 3,
  "sources": ["../../../src/utils/window/getIsInIframe.ts"],
  "sourcesContent": ["import { getWindowParentOrigin } from './getWindowParentOrigin';\nimport { isWindowAvailable } from './isWindowAvailable';\n\nexport const getIsInIframe = (): boolean => {\n  try {\n    if (!isWindowAvailable()) {\n      return false;\n    }\n\n    const parentOrigin = getWindowParentOrigin();\n\n    if (!parentOrigin) {\n      return false;\n    }\n\n    // Check if window.self is different from window.top\n    // This is a standard way to detect if we're in an iframe\n    return window.self !== window.top;\n  } catch (_error) {\n    // If we get a security error when trying to access window.top,\n    // it means we're in a cross-origin iframe\n    return true;\n  }\n};\n"],
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAsC,mCACtCC,EAAkC,+BAE3B,MAAMH,EAAgB,IAAe,CAC1C,GAAI,CAOF,MANI,IAAC,qBAAkB,GAMnB,IAFiB,yBAAsB,EAGlC,GAKF,OAAO,OAAS,OAAO,GAChC,MAAiB,CAGf,MAAO,EACT,CACF",
  "names": ["getIsInIframe_exports", "__export", "getIsInIframe", "__toCommonJS", "import_getWindowParentOrigin", "import_isWindowAvailable"]
}
