{"version":3,"file":"ModelToggle.CH0PyXgc.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/Vfp4aeyCsetppieh2V3G/YXnjXsJcBjzKYhjmi29T/ModelToggle.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const FB=\"'Figtree', sans-serif\";export default function ModelToggle({borderRadius,activeBorderRadius,background}){const[model,setModel]=useState(\"pro\");useEffect(()=>{const saved=typeof window!==\"undefined\"?window.__calota_model??\"pro\":\"pro\";setModel(saved);},[]);function select(m){setModel(m);if(typeof window!==\"undefined\"){window.__calota_model=m;window.dispatchEvent(new Event(\"calota_update\"));}}const options=[{id:\"pro\",label:\"Nano Banana Pro\"},{id:\"2\",label:\"Nano Banana 2\"}];return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",borderRadius:borderRadius??10,background:background??\"rgba(255,255,255,0.06)\",display:\"flex\",padding:4,gap:4,boxSizing:\"border-box\"},children:options.map(({id,label})=>{const active=model===id;return /*#__PURE__*/_jsx(\"div\",{onClick:()=>select(id),style:{flex:1,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",borderRadius:activeBorderRadius??7,background:active?\"rgba(255,255,255,0.1)\":\"transparent\",cursor:\"pointer\",transition:\"background 0.15s\"},children:/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:FB,fontSize:13,fontWeight:active?600:400,color:active?\"#fff\":\"rgba(255,255,255,0.4)\",transition:\"color 0.15s\"},children:label})},id);})});}addPropertyControls(ModelToggle,{borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:10},activeBorderRadius:{type:ControlType.Number,title:\"Active Radius\",defaultValue:7},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(255,255,255,0.06)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ModelToggle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\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