{"version":3,"file":"SpotifyPlaylistMount.C6A0-Ebr.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/p5q3CIoUO7LbVsxnHkQX/01cR1BoCl8RyEy1loiTC/SpotifyPlaylistMount.js"],"sourcesContent":["// User request: Create a Framer code override file SpotifyPlaylistMount.tsx exporting named override mountSocoPlaylist that replaces host frame children with a responsive Spotify playlist iframe, preserves host sizing/radius, removes placeholder borders/padding, uses width 100% and height 420px desktop / 352px narrow, and keeps a dark transparent/black background.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,startTransition,useEffect,useState}from\"react\";export function mountSocoPlaylist(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[isNarrow,setIsNarrow]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const updateViewport=()=>{startTransition(()=>setIsNarrow(window.innerWidth<=767));};updateViewport();window.addEventListener(\"resize\",updateViewport);return()=>window.removeEventListener(\"resize\",updateViewport);},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,position:\"relative\",padding:0,border:\"none\",overflow:\"hidden\",background:\"rgba(0, 0, 0, 0.85)\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:\"https://open.spotify.com/embed/playlist/352PNbOrLu0cXIxCuA39BC?utm_source=generator&theme=0\",title:\"SoCo Spotify Playlist\",loading:\"lazy\",allow:\"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture\",style:{width:\"100%\",height:isNarrow?\"352px\":\"420px\",border:\"none\",display:\"block\",background:\"transparent\"}})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"mountSocoPlaylist\":{\"type\":\"reactHoc\",\"name\":\"mountSocoPlaylist\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SpotifyPlaylistMount.map"],"mappings":"gJAC4G,SAAgB,EAAkB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAkR,OAAhR,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAmB,CAAC,MAAoB,EAAY,EAAO,YAAY,GAAG,CAAC,CAAE,EAAoE,OAAlE,EAAe,EAAE,EAAO,iBAAiB,SAAS,CAAc,MAAY,EAAO,oBAAoB,SAAS,CAAc,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,QAAQ,EAAE,OAAO,OAAO,SAAS,SAAS,WAAW,qBAAqB,EAAE,SAAsB,EAAK,SAAS,CAAC,IAAI,8FAA8F,MAAM,wBAAwB,QAAQ,OAAO,MAAM,6EAA6E,MAAM,CAAC,MAAM,OAAO,OAAO,EAAS,QAAQ,QAAQ,OAAO,OAAO,QAAQ,QAAQ,WAAW,aAAa,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,qBAA7/B,IAAiE"}