{"version":3,"file":"AdSlot.DMj4bMd7.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ug74nLhF3L5sdI9bMX6v/nYyUKqoL5lUxTIQ0ldYV/AdSlot.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const SCRIPT_ID=\"adsbygoogle-js\";/**\n * Google AdSense ad unit. Until the publisher ID and slot are filled in (or on the canvas)\n * it shows a neutral placeholder of the same size, so the layout never jumps.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AdSlot(props){const{client,slot,format,layoutKey,label}=props;const isStatic=useIsStaticRenderer();const ins=useRef(null);const pushed=useRef(false);const ready=!isStatic&&/^ca-pub-\\d+$/.test(client.trim())&&/^\\d+$/.test(slot.trim());useEffect(()=>{if(!ready||typeof window===\"undefined\")return;if(!document.getElementById(SCRIPT_ID)){const s=document.createElement(\"script\");s.id=SCRIPT_ID;s.async=true;s.crossOrigin=\"anonymous\";s.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${client.trim()}`;document.head.appendChild(s);}if(pushed.current||!ins.current||ins.current.getAttribute(\"data-adsbygoogle-status\"))return;pushed.current=true;try{(window.adsbygoogle=window.adsbygoogle||[]).push({});}catch{// the ad simply stays empty, the reserved space keeps the layout stable\n}},[ready,client,slot]);const box={...props.style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\"};return /*#__PURE__*/_jsxs(\"aside\",{\"aria-label\":label,style:box,children:[/*#__PURE__*/_jsx(\"span\",{style:{font:\"600 10px/1 'Public Sans', system-ui, sans-serif\",letterSpacing:\"0.12em\",textTransform:\"uppercase\",color:\"#8a8a8a\",padding:\"0 0 6px\"},children:label}),ready?/*#__PURE__*/_jsx(\"ins\",{ref:ins,className:\"adsbygoogle\",style:{display:\"block\",flex:1,width:\"100%\"},\"data-ad-client\":client.trim(),\"data-ad-slot\":slot.trim(),\"data-ad-format\":format===\"fluid\"?\"fluid\":format,\"data-ad-layout-key\":format===\"fluid\"&&layoutKey?layoutKey:undefined,\"data-full-width-responsive\":\"true\"}):/*#__PURE__*/_jsx(\"div\",{style:{flex:1,borderRadius:6,background:\"repeating-linear-gradient(135deg, #F5F3EE 0 10px, #EFECE5 10px 20px)\",border:\"1px solid #E3E0D8\"}})]});}addPropertyControls(AdSlot,{client:{type:ControlType.String,title:\"Publisher ID\",defaultValue:\"\",placeholder:\"ca-pub-0000000000000000\"},slot:{type:ControlType.String,title:\"Ad slot\",defaultValue:\"\",placeholder:\"1234567890\"},format:{type:ControlType.Enum,title:\"Format\",defaultValue:\"auto\",options:[\"auto\",\"rectangle\",\"horizontal\",\"vertical\",\"fluid\"],optionTitles:[\"Auto\",\"Rectangle\",\"Horizontal\",\"Vertical\",\"In-feed\"]},layoutKey:{type:ControlType.String,title:\"Layout key\",defaultValue:\"\",hidden:p=>p.format!==\"fluid\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Reklama\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AdSlot\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AdSlot.map"],"mappings":"8MAMG,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,SAAO,OAAK,SAAO,YAAU,SAAO,EAAY,EAAS,EAAoB,EAAQ,EAAIA,EAAO,IAAI,EAAQ,EAAOA,EAAO,EAAK,EAAQ,EAAM,CAAC,GAAU,eAAe,KAAK,EAAO,KAAK,CAAC,GAAG,QAAQ,KAAK,EAAK,KAAK,CAAC,EACpF,OADsF,MAAc,CAAI,MA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