{"version":3,"file":"SettV2Scheduler.DqlkMsfh.mjs","names":["p","useRef","useState","__esmMin","_e","de","init_jsx_runtime","c","p","init_npm_react_18_3_1","ce","addPropertyControls","init_framer_DKWANagr","ControlType","or","Lines","V","V2Style","init_SettV2Kit","useReveal","SettV2Scheduler","p$1","props","paper","head","root","narrow","setNarrow","el","ro","num","v","d","frameH","points","s","CSS","t","i","URL","init_SettV2Scheduler"],"sources":["https:/framerusercontent.com/modules/S53UcHPSZ9bepUDFEnRb/1oqyZLyrpue9MeKzhMCX/SettV2Scheduler.js"],"sourcesContent":["// Sett V2 Scheduler — the Pipedrive meeting scheduler in a card, with a short heading\n// beside it: visitors pick a day and time for an online call themselves. The scheduler\n// scrolls inside its own frame, so the frame has a fixed height (taller on phones,\n// where Pipedrive lists the days under each other).\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{V2Style,Lines,useReveal,V,or}from\"https://framerusercontent.com/modules/1WAgoW0gDfZ2FtWVW3WI/NX7gH3dROkhyatJ4EOPI/SettV2Kit.js\";const URL=\"https://mihtra.pipedrive.com/scheduler/drZMw8hb/maak-online-kennis-met-sett\";const CSS=`\n.v2s{ padding:130px 0 120px; scroll-margin-top:80px; }\n/* the scheduler gets the room: from about 720px wide Pipedrive shows a compact week row instead of a long list */\n.v2s-grid{ display:grid; grid-template-columns:minmax(0, .62fr) minmax(0, 1.38fr); gap:48px; align-items:start; }\n.v2s-copy{ position:sticky; top:120px; }\n.v2s-copy .v2-h2{ max-width:12ch; margin:18px 0 22px; font-size:clamp(40px, 4.6cqi, 76px); }\n.v2s-points{ margin-top:28px; display:flex; flex-direction:column; gap:12px; }\n.v2s-points li{ display:flex; gap:12px; align-items:flex-start; font-size:17px; line-height:1.45; }\n.v2s-points li::before{ content:\"\"; flex:none; width:10px; height:10px; margin-top:7px; border-radius:99px; background:${V.lime}; box-shadow:0 0 12px rgba(141,255,102,.6); }\n.paper .v2s-points li::before{ background:${V.purple}; box-shadow:none; }\n.v2s-card{ max-width:800px; width:100%; justify-self:end; padding:10px; border-radius:28px; background:#FFFFFF; box-shadow:0 30px 80px rgba(0,0,0,.28); }\n.paper .v2s-card{ box-shadow:0 20px 60px rgba(11,14,26,.10), inset 0 0 0 1px rgba(11,14,26,.06); }\n.v2s-card iframe{ display:block; width:100%; border:0; border-radius:20px; background:#F5F6F8; }\n@container (max-width: 900px){\n  .v2s{ padding:96px 0 90px; }\n  .v2s-grid{ grid-template-columns:1fr; gap:32px; }\n  .v2s-copy{ position:relative; top:auto; }\n  .v2s-card{ justify-self:stretch; max-width:none; }\n}\n@container (max-width: 640px){\n  .v2s-card{ padding:6px; border-radius:22px; }\n  .v2s-card iframe{ border-radius:17px; }\n}\n`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1440\n */export default function SettV2Scheduler(props){const p=props;const paper=p.theme===\"paper\";const head=useRef(null);useReveal(head);// the frame's height, set on the iframe itself: taller when the section is phone-narrow.\n// (Not named \"height\": Framer hands its own layout height to a prop by that name.)\nconst root=useRef(null);const[narrow,setNarrow]=useState(false);useEffect(()=>{const el=root.current;if(!el||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(()=>setNarrow(el.clientWidth<=640));ro.observe(el);return()=>ro.disconnect();},[]);const num=(v,d)=>typeof v===\"number\"&&v>=300?v:d;const frameH=narrow?num(p.frameHeightPhone,860):num(p.frameHeight,700);const points=(p.points??\"Een online call van 30 minuten\\nJij kiest de dag en het tijdstip\\nVrijblijvend kennismaken met Sett\").split(\"\\n\").map(s=>s.trim()).filter(Boolean);return /*#__PURE__*/_jsxs(\"section\",{ref:root,id:or(p.anchor,\"afspraak\"),className:\"v2 v2s\"+(paper?\" paper\":\"\"),style:p.style,children:[/*#__PURE__*/_jsx(V2Style,{}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsxs(\"div\",{className:\"v2-wrap v2s-grid\",children:[/*#__PURE__*/_jsxs(\"div\",{ref:head,className:\"v2s-copy\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"v2-mono v2-fade\",style:{color:paper?V.purpleInk:V.lime},children:or(p.eyebrow,\"Plan een afspraak\")}),/*#__PURE__*/_jsx(\"h2\",{className:\"v2-h2\",children:/*#__PURE__*/_jsx(Lines,{text:or(p.heading,\"Maak online|kennis.\")})}),/*#__PURE__*/_jsx(\"p\",{className:\"v2-lead v2-fade\",children:or(p.body,\"Kies een moment dat jou uitkomt voor een korte videocall met Sett. We kijken samen naar jouw situatie en beantwoorden je vragen.\")}),points.length>0&&/*#__PURE__*/_jsx(\"ul\",{className:\"v2s-points v2-fade\",children:points.map((t,i)=>/*#__PURE__*/_jsx(\"li\",{children:t},i))})]}),/*#__PURE__*/_jsx(\"div\",{className:\"v2s-card\",children:/*#__PURE__*/_jsx(\"iframe\",{src:or(p.url,URL),title:\"Plan een online kennismaking met Sett\",loading:\"lazy\",allowFullScreen:true,height:frameH,style:{height:frameH}})})]})]});}SettV2Scheduler.displayName=\"Sett V2 \\xb7 Afspraakplanner\";addPropertyControls(SettV2Scheduler,{url:{type:ControlType.Link,title:\"Planner\",description:\"De link van de Pipedrive-afspraakplanner (src van de iframe).\",defaultValue:URL},eyebrow:{type:ControlType.String,title:\"Label\",defaultValue:\"Plan een afspraak\"},heading:{type:ControlType.String,title:\"Kop\",displayTextArea:true,description:\"| breekt de regel.\",defaultValue:\"Maak online|kennis.\"},body:{type:ControlType.String,title:\"Tekst\",displayTextArea:true,defaultValue:\"Kies een moment dat jou uitkomt voor een korte videocall met Sett. We kijken samen naar jouw situatie en beantwoorden je vragen.\"},points:{type:ControlType.String,title:\"Punten\",displayTextArea:true,description:\"E\\xe9n per regel. Leeg: geen punten.\",defaultValue:\"Een online call van 30 minuten\\nJij kiest de dag en het tijdstip\\nVrijblijvend kennismaken met Sett\"},theme:{type:ControlType.Enum,title:\"Thema\",options:[\"dark\",\"paper\"],optionTitles:[\"Donker\",\"Papier\"],defaultValue:\"paper\"},frameHeight:{type:ControlType.Number,title:\"Hoogte\",min:480,max:1400,step:20,unit:\"px\",defaultValue:700},frameHeightPhone:{type:ControlType.Number,title:\"Hoogte mobiel\",min:480,max:1600,step:20,unit:\"px\",defaultValue:860},anchor:{type:ControlType.String,title:\"Anker\",defaultValue:\"afspraak\",description:\"Link ernaartoe met #afspraak.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SettV2Scheduler\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1440\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,+QA+BG,SAAwBoB,EAAgB,EAAM,CAAC,IAAMpB,EAAEsB,EAAYC,EAAMvB,EAAE,QAAQ,QAAcwB,EAAKvB,EAAO,IAAI,EAAEkB,EAAUK,CAAI,EAEpI,IAAMC,EAAKxB,EAAO,IAAI,EAAO,CAACyB,EAAOC,GAAWzB,EAAS,EAAK,EAAEQ,MAAc,CAAC,IAAMkB,EAAGH,EAAK,QAAQ,GAAG,CAACG,GAAI,OAAO,eAAiB,IAAY,OAAO,IAAMC,EAAG,IAAI,mBAAmBF,EAAUC,EAAG,aAAa,GAAG,CAAC,EAAiB,OAAfC,EAAG,QAAQD,CAAE,MAAYC,EAAG,WAAW,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMC,GAAK,EAAE,IAAI,OAAOC,GAAI,UAAUA,GAAG,IAAIA,EAAEC,EAAQC,EAAOP,EAAOI,EAAI9B,EAAE,iBAAiB,GAAG,EAAE8B,EAAI9B,EAAE,YAAY,GAAG,EAAQkC,GAAQlC,EAAE,QAAQ;;mCAAA,CAAuG,MAAM;CAAI,CAAC,CAAC,IAAI,GAAGmC,EAAE,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