{"version":3,"file":"AutoSelectType.DeT5Y8y9.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xptICtf0tUFdWeCMibSz/AjIfQgKt292LlkE1pTS3/AutoSelectType.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{RenderTarget}from\"framer\";export default function AutoSelectType(props){useEffect(()=>{// Dieser Code wird nur auf der echten Seite ausgeführt, nicht im Editor\nif(RenderTarget.current()===RenderTarget.canvas)return;const applySelectValue=()=>{const selectElement=document.querySelector('select[name=\"Typ\"]');if(!selectElement)return false;const urlParams=new URLSearchParams(window.location.search);const typeParam=urlParams.get(\"type\");const validOptions=Array.from(selectElement.options).map(opt=>opt.value);const targetValue=typeParam&&validOptions.includes(typeParam)?typeParam:\"allgemein\";selectElement.value=targetValue;selectElement.dispatchEvent(new Event(\"change\",{bubbles:true}));return true;};if(!applySelectValue()){const interval=setInterval(()=>{if(applySelectValue()){clearInterval(interval);}},100);setTimeout(()=>clearInterval(interval),3e3);}},[]);// Zeige einen Platzhalter im Framer Editor (Canvas)\nif(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",padding:\"12px\",backgroundColor:\"rgba(0, 153, 255, 0.1)\",border:\"1px dashed #0099ff\",borderRadius:\"6px\",color:\"#0099ff\",fontSize:\"12px\",fontWeight:\"bold\",textAlign:\"center\"},children:\"⚙️ Auto-Select Script (unsichtbar live)\"});}// Auf der Live-Seite unsichtbar\nreturn null;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AutoSelectType\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AutoSelectType.map"],"mappings":"4KAAyG,SAAwB,EAAe,EAAM,CAGtJ,OAHuJ,MAAc,CACrK,GAAG,EAAa,SAAS,GAAG,EAAa,OAAO,OAAO,IAAM,MAAqB,CAAC,IAAM,EAAc,SAAS,cAAc,qBAAqB,CAAC,GAAG,CAAC,EAAc,MAAO,GAAkE,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAA2B,IAAI,OAAO,CAAO,EAAa,MAAM,KAAK,EAAc,QAAQ,CAAC,IAAI,GAAK,EAAI,MAAM,CAAqL,MAAhG,GAAc,MAAhF,GAAW,EAAa,SAAS,EAAU,CAAC,EAAU,YAA4C,EAAc,cAAc,IAAI,MAAM,SAAS,CAAC,QAAQ,GAAK,CAAC,CAAC,CAAQ,IAAO,GAAG,CAAC,GAAkB,CAAC,CAAC,IAAM,EAAS,gBAAgB,CAAI,GAAkB,EAAE,cAAc,EAAS,EAAI,IAAI,CAAC,eAAe,cAAc,EAAS,CAAC,IAAI,GAAI,EAAE,CAAC,CAC9rB,EAAa,SAAS,GAAG,EAAa,OAA4B,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,QAAQ,OAAO,gBAAgB,yBAAyB,OAAO,qBAAqB,aAAa,MAAM,MAAM,UAAU,SAAS,OAAO,WAAW,OAAO,UAAU,SAAS,CAAC,SAAS,0CAA0C,CAAC,CAC/T,0BAHoC,IAA6B,IAAiC"}