import{g as a}from"./useEventListener-C0195JsF.js";import{n as l}from"./once-CGKw_kwj.js";function i(n){try{let e=window[n],r="__storage_test__",t="test";if(!e)return!1;e.setItem(r,t);let o=e.getItem(r);return e.removeItem(r),o===t}catch{return!1}}function s(){try{return"download"in document.createElement("a")}catch{return!1}}function d(){let n=window.parent!==window,e={isEmbedded:n,hasLocalStorage:i("localStorage"),hasSessionStorage:i("sessionStorage"),hasClipboard:navigator.clipboard!==void 0,hasDownloads:s(),hasFullscreen:document.fullscreenEnabled!==void 0&&document.fullscreenEnabled,hasMediaDevices:navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getUserMedia=="function"};return n&&(a.log("[iframe] Running in embedded context"),e.hasLocalStorage||a.warn("[iframe] localStorage unavailable - using fallback storage"),e.hasClipboard||a.warn("[iframe] Clipboard API unavailable"),e.hasDownloads||a.warn("[iframe] Download capability may be restricted"),e.hasFullscreen||a.warn("[iframe] Fullscreen API unavailable"),e.hasMediaDevices||a.warn("[iframe] Media devices API unavailable")),e}const c=l(()=>d());export{c as t};
