{"version":3,"file":"Compare_Switch.B_FlR-E9.mjs","names":["useState","c","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","motion","init_framer_motion_DhsWWWsN","init_framer_D6uXRwWs","ControlType","addPropertyControls","CompareSwitch","props","mode","setMode","startOn","touched","setTouched","items","us","them","isUs","style","sans","track","themLabel","usLabel","k","label","ink","columns","i","paper","themText","accent","onAccent","c$1","mono","themDetail","row","init_Compare_Switch"],"sources":["https:/framerusercontent.com/modules/cIulvxrLhfVojR76lQEw/FKBV7HC2ePJmhrpRBo9w/Compare_Switch.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";const sans='\"Geist\", \"Inter\", sans-serif';const mono='\"Geist Mono\", ui-monospace, monospace';/**\n * Compare Switch — flip between \"them\" and \"us\". Edit both lists\n * in the properties panel (same number of rows works best).\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CompareSwitch(props){const{themLabel,usLabel,them,us,columns,accent,onAccent,ink,paper,track,themText,themDetail,startOn,style}=props;const[mode,setMode]=useState(startOn===\"Typical\"?\"them\":\"us\");const[touched,setTouched]=useState(false);const items=(mode===\"us\"?us:them)||[];const isUs=mode===\"us\";return /*#__PURE__*/_jsxs(\"div\",{style:{...style,fontFamily:sans,containerType:\"inline-size\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .cs-wrap{display:flex;flex-direction:column;align-items:center;width:100%}\n                .cs-track{margin-bottom:50px;max-width:100%;box-sizing:border-box}\n                .cs-btn{font:500 15px ${sans};padding:12px 26px;white-space:nowrap}\n                @container (max-width:700px){.cs-btn{font-size:14px;padding:10px 18px}.cs-track{margin-bottom:36px}}\n                @container (max-width:480px){.cs-btn{font-size:12.5px;padding:8px 13px}.cs-track{margin-bottom:28px;padding:4px!important}}\n                @container (max-width:340px){.cs-btn{font-size:12px;padding:7px 10px}}\n                @supports not (container-type:inline-size){@media (max-width:560px){.cs-btn{font-size:12.5px;padding:8px 13px}.cs-track{margin-bottom:28px}}}\n            `}),/*#__PURE__*/_jsxs(\"div\",{className:\"cs-wrap\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"cs-track\",style:{display:\"inline-flex\",background:track,borderRadius:999,padding:5,position:\"relative\"},children:[[\"them\",themLabel],[\"us\",usLabel]].map(([k,label])=>/*#__PURE__*/_jsxs(\"button\",{className:\"cs-btn\",onClick:()=>{setTouched(true);setMode(k);},style:{position:\"relative\",border:0,background:\"none\",borderRadius:999,cursor:\"pointer\",color:mode===k?\"#fff\":\"#4A4F56\",transition:\"color .3s\"},children:[mode===k&&/*#__PURE__*/_jsx(motion.span,{layoutId:\"upside-knob\",transition:{duration:.45,ease:[.6,0,.2,1]},style:{position:\"absolute\",inset:0,borderRadius:999,background:ink}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\"},children:label})]},k))}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:`repeat(auto-fit, minmax(min(100%, ${Math.max(160,1100/columns-14)}px), 1fr))`,gap:14,width:\"100%\"},children:items.map((c,i)=>/*#__PURE__*/_jsxs(motion.div,{initial:touched?{opacity:0,y:14}:false,animate:{opacity:1,y:0},transition:{delay:i*.05,duration:.45},style:{textAlign:\"left\",borderRadius:22,padding:\"26px 22px\",minHeight:210,display:\"flex\",flexDirection:\"column\",justifyContent:\"space-between\",background:isUs?ink:paper,color:isUs?\"#fff\":themText,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{width:36,height:36,borderRadius:\"50%\",display:\"grid\",placeItems:\"center\",fontSize:16,background:isUs?accent:\"#D6D7D2\",color:isUs?onAccent:\"#E0303F\"},children:isUs?\"✓\":\"✕\"}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:19,fontWeight:500,letterSpacing:\"-.02em\",lineHeight:1.2},children:c.title}),/*#__PURE__*/_jsx(\"small\",{style:{fontFamily:mono,fontSize:11,color:isUs?\"#A7ADB4\":themDetail,display:\"block\",marginTop:8},children:c.detail})]})]},mode+i))})]})]});}CompareSwitch.defaultProps={themLabel:\"Typical agency\",usLabel:\"Working with Pixel Smash\",startOn:\"Upside\",columns:5,accent:\"#00C7D4\",onAccent:\"#111214\",ink:\"#111214\",paper:\"#E9EAE6\",track:\"#E0E1DD\",themText:\"#3A3E44\",themDetail:\"#5C6168\",them:[{title:\"Messages passed along\",detail:\"An account manager in between\"},{title:\"One channel, alone\",detail:\"Blind to your site and offer\"},{title:\"Same ads for months\",detail:\"Stale creative, rising costs\"},{title:\"Clicks and impressions\",detail:\"Reports, not revenue\"},{title:\"12‑month lock‑in\",detail:\"Paid whether it works or not\"}],us:[{title:\"No account managers\",detail:\"You talk to who runs your ads\"},{title:\"Ads + landing page\",detail:\"We fix where the click lands\"},{title:\"Weekly creative testing\",detail:\"Ads tested and rotated weekly\"},{title:\"Revenue reporting\",detail:\"Spend vs. return, every Monday\"},{title:\"Month‑to‑month\",detail:\"We keep you with results\"}],width:1200};const row={type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\"},detail:{type:ControlType.String,title:\"Detail\"}}};addPropertyControls(CompareSwitch,{themLabel:{type:ControlType.String,title:\"Them Label\"},usLabel:{type:ControlType.String,title:\"Us Label\"},startOn:{type:ControlType.Enum,title:\"Start On\",options:[\"Upside\",\"Typical\"]},them:{type:ControlType.Array,title:\"Them\",control:row},us:{type:ControlType.Array,title:\"Us\",control:row},columns:{type:ControlType.Number,title:\"Columns\",min:1,max:6,step:1},accent:{type:ControlType.Color,title:\"Accent\"},onAccent:{type:ControlType.Color,title:\"On Accent\"},ink:{type:ControlType.Color,title:\"Ink\"},paper:{type:ControlType.Color,title:\"Paper\"},track:{type:ControlType.Color,title:\"Track\"},themText:{type:ControlType.Color,title:\"Them Text\"},themDetail:{type:ControlType.Color,title:\"Them Detail\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CompareSwitch\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Compare_Switch.map"],"mappings":"A,kOAMG,SAAwBa,EAAc,EAAM,CAAC,GAAK,CAAC,YAAU,UAAQ,OAAK,KAAG,UAAQ,SAAO,WAAS,MAAI,QAAM,QAAM,WAAS,aAAW,UAAQ,SAAOC,EAAW,CAACC,EAAKC,GAAShB,EAASiB,IAAU,UAAU,OAAO,IAAI,EAAO,CAACC,EAAQC,GAAYnB,EAAS,EAAK,EAAQoB,GAAOL,IAAO,KAAKM,EAAGC,IAAO,CAAC,EAAQC,EAAKR,IAAO,KAAK,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,GAAGS,EAAM,WAAWC,EAAK,cAAc,cAAc,UAAU,YAAY,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAAS;;;wCAGjcA,EAAK;;;;;aAKhC,CAAC,EAAe,gBAAM,MAAM,CAAC,UAAU,UAAU,SAAS,CAAc,gBAAK,MAAM,CAAC,UAAU,WAAW,MAAM,CAAC,QAAQ,cAAc,WAAWC,EAAM,aAAa,IAAI,QAAQ,EAAE,SAAS,UAAU,EAAE,SAAS,CAAC,CAAC,OAAOC,CAAS,EAAE,CAAC,KAAKC,CAAO,CAAC,CAAC,CAAC,KAAK,CAACC,EAAEC,KAAsB,gBAAM,SAAS,CAAC,UAAU,SAAS,YAAY,CAACX,EAAW,EAAI,EAAEH,EAAQa,CAAC,CAAE,EAAE,MAAM,CAAC,SAAS,WAAW,OAAO,EAAE,WAAW,OAAO,aAAa,IAAI,OAAO,UAAU,MAAMd,IAAOc,EAAE,OAAO,UAAU,WAAW,WAAW,EAAE,SAAS,CAACd,IAAOc,GA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