{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/PBDdgzx7WMRNYqIfLR5a/xrTKq5kWVdvmEQUOijg8/AppointmentWidget.js"],
  "sourcesContent": ["// Booking widget overlay with modern, animated, humorous design for 2025 trends\n// Asks: 1) Are you new or returning? 2) Where do you want to be seen? Then shows Nimblr widget embed based on answers.\n// Brand colors and modern overlay, pop-up style, clean, animated, and pleasant.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useMemo,useCallback,startTransition}from\"react\";import{addPropertyControls,ControlType,RenderTarget,useIsStaticRenderer}from\"framer\";const widgetLinks={\"new-downtownLA\":\"https://book.nimblr.co/dtlainpersonnew\",\"new-westHollywood\":\"https://book.nimblr.co/wehoinpersonnew\",\"new-virtual\":\"https://book.nimblr.co/videonew\",\"existing-downtownLA\":\"https://book.nimblr.co/dtlainpersonexist\",\"existing-westHollywood\":\"https://book.nimblr.co/wehoinpersonexist\",\"existing-virtual\":\"https://book.nimblr.co/videoexist\"};const humorLines=[\"Let's get you on the calendar!\",\"Don't worry, we don't bite.\",\"Your future self will thank you.\",\"Almost there, superstar!\",\"We promise, no waiting room magazines.\"];function getRandomHumor(){return humorLines[Math.floor(Math.random()*humorLines.length)];}/**\n * AppointmentWidget\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function AppointmentWidget(props){const{brandColor=\"#ef476f\",accentColor=\"#fff\",textColor=\"#43486e\",overlayOpacity=.92,borderRadius=24,font,style}=props;const[step,setStep]=useState(0);const[isNew,setIsNew]=useState(null);const[location,setLocation]=useState(null);const[humor,setHumor]=useState(getRandomHumor());const isStatic=useIsStaticRenderer();const showWidget=step===2&&isNew&&location;const widgetKey=useMemo(()=>{if(!isNew||!location)return null;return`${isNew}-${location}`;},[isNew,location]);const handleNewReturning=useCallback(val=>{startTransition(()=>{setIsNew(val);setStep(1);setHumor(getRandomHumor());});},[]);const handleLocation=useCallback(val=>{startTransition(()=>{setLocation(val);setStep(2);setHumor(getRandomHumor());});},[]);const handleRestart=useCallback(()=>{startTransition(()=>{setStep(0);setIsNew(null);setLocation(null);setHumor(getRandomHumor());});},[]);if(RenderTarget.current()===RenderTarget.thumbnail)return null;// Responsive breakpoints\nconst isMobile=typeof window!==\"undefined\"&&window.matchMedia(\"(max-width: 600px)\").matches;// Overlay style\nconst overlayStyle={position:\"relative\",width:\"100%\",height:\"100%\",minWidth:isMobile?0:420,minHeight:isMobile?0:600,background:\"#fff\",borderRadius:isMobile?0:borderRadius,boxShadow:\"none\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"flex-start\",padding:0,gap:0,...style};// Animated card style\nconst cardStyle={background:accentColor,borderRadius:isMobile?0:borderRadius-4,boxShadow:isMobile?\"none\":\"0 4px 24px 0 rgba(67,72,110,0.08)\",padding:isMobile?20:48,width:\"100%\",maxWidth:isMobile?\"100%\":520,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:isMobile?18:28,transition:\"all 0.5s cubic-bezier(.7,.2,.2,1)\",border:\"none\",marginTop:step===0||step===1?isMobile?8:24:0};// Button style\nconst btnStyle={background:brandColor,color:\"#fff\",border:\"none\",borderRadius:isMobile?8:borderRadius/2,padding:isMobile?\"12px 16px\":\"14px 32px\",fontSize:isMobile?16:18,fontWeight:600,cursor:\"pointer\",margin:0,boxShadow:isMobile?\"none\":\"0 2px 8px 0 rgba(67,72,110,0.08)\",transition:\"background 0.2s, transform 0.2s\",outline:\"none\",...font};// Secondary button\nconst secBtnStyle={...btnStyle,background:accentColor,color:brandColor,border:`1.5px solid ${brandColor}`,fontWeight:500,boxShadow:\"none\"};// Option button\nconst optionBtn=(label,onClick,key)=>/*#__PURE__*/_jsx(\"button\",{style:btnStyle,onClick:()=>onClick(key),onMouseEnter:e=>{e.currentTarget.style.background=textColor;e.currentTarget.style.color=\"#fff\";},onMouseLeave:e=>{e.currentTarget.style.background=brandColor;e.currentTarget.style.color=\"#fff\";},\"aria-label\":label,children:label},key);// Option button for locations\nconst locationBtn=(label,key)=>/*#__PURE__*/_jsx(\"button\",{style:btnStyle,onClick:()=>handleLocation(key),onMouseEnter:e=>{e.currentTarget.style.background=textColor;e.currentTarget.style.color=\"#fff\";},onMouseLeave:e=>{e.currentTarget.style.background=brandColor;e.currentTarget.style.color=\"#fff\";},\"aria-label\":label,children:label},key);// Animated humor line\nconst humorLine=/*#__PURE__*/_jsx(\"div\",{style:{color:brandColor,fontWeight:700,fontSize:isMobile?15:18,marginBottom:isMobile?10:18,textAlign:\"center\",letterSpacing:\"-0.01em\"},children:humor});// Step 0: New or Returning\nif(step===0){return /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:cardStyle,children:[humorLine,/*#__PURE__*/_jsx(\"div\",{style:{fontSize:isMobile?18:24,fontWeight:700,color:textColor,marginBottom:isMobile?16:24,textAlign:\"center\"},children:\"Are you a new or returning patient?\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:18,width:\"100%\",justifyContent:\"center\"},children:[optionBtn(\"New\",handleNewReturning,\"new\"),optionBtn(\"Returning\",handleNewReturning,\"existing\")]})]})});}// Step 1: Location\nif(step===1){return /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:cardStyle,children:[humorLine,/*#__PURE__*/_jsx(\"div\",{style:{fontSize:isMobile?18:24,fontWeight:700,color:textColor,marginBottom:isMobile?16:24,textAlign:\"center\"},children:\"Where do you want to be seen?\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:16,width:\"100%\",alignItems:\"center\"},children:[locationBtn(\"West Hollywood\",\"westHollywood\"),locationBtn(\"Downtown LA\",\"downtownLA\"),locationBtn(\"Virtually\",\"virtual\")]}),/*#__PURE__*/_jsx(\"button\",{style:secBtnStyle,onClick:handleRestart,\"aria-label\":\"Back\",children:\"Back\"})]})});}// Step 2: Show widget\nif(showWidget&&widgetLinks[widgetKey]){return /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:cardStyle,children:[humorLine,/*#__PURE__*/_jsx(\"div\",{style:{fontSize:isMobile?16:22,fontWeight:600,color:textColor,marginBottom:isMobile?16:24,textAlign:\"center\"},children:\"Book your appointment below\"}),/*#__PURE__*/_jsx(\"iframe\",{src:widgetLinks[widgetKey],title:\"Booking Widget\",style:{width:\"100%\",height:isMobile?\"60vh\":\"60vh\",minHeight:isMobile?380:420,border:\"none\",borderRadius:isMobile?8:borderRadius/2,background:\"#fff\",boxShadow:isMobile?\"none\":\"0 2px 12px 0 rgba(0,0,0,0.08)\"},allow:\"camera; microphone; clipboard-write\"}),/*#__PURE__*/_jsx(\"button\",{style:secBtnStyle,onClick:handleRestart,\"aria-label\":\"Start Over\",children:\"Start Over\"})]})});}// Fallback\nreturn /*#__PURE__*/_jsx(\"div\",{style:overlayStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:cardStyle,children:[\"Something went wrong. \",/*#__PURE__*/_jsx(\"button\",{style:secBtnStyle,onClick:handleRestart,children:\"Restart\"})]})});}addPropertyControls(AppointmentWidget,{brandColor:{type:ControlType.Color,title:\"Brand Pink\",defaultValue:\"#ef476f\"},accentColor:{type:ControlType.Color,title:\"Card Background\",defaultValue:\"#fff\"},textColor:{type:ControlType.Color,title:\"Text/Overlay\",defaultValue:\"#43486e\"},overlayOpacity:{type:ControlType.Number,title:\"Overlay Opacity\",defaultValue:.92,min:.7,max:1,step:.01},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:24,min:8,max:48,step:1},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AppointmentWidget\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppointmentWidget.map"],
  "mappings": "+LAAAA,IAG8M,IAAMC,EAAY,CAAC,iBAAiB,yCAAyC,oBAAoB,yCAAyC,cAAc,kCAAkC,sBAAsB,2CAA2C,yBAAyB,2CAA2C,mBAAmB,mCAAmC,EAAQC,EAAW,CAAC,iCAAiC,8BAA8B,mCAAmC,2BAA2B,wCAAwC,EAAE,SAASC,GAAgB,CAAC,OAAOD,EAAW,KAAK,MAAM,KAAK,OAAO,EAAEA,EAAW,MAAM,CAAC,CAAE,CAKr0B,SAARE,EAAmCC,EAAM,CAAC,GAAK,CAAC,WAAAC,EAAW,UAAU,YAAAC,EAAY,OAAO,UAAAC,EAAU,UAAU,eAAAC,EAAe,IAAI,aAAAC,EAAa,GAAG,KAAAC,EAAK,MAAAC,CAAK,EAAEP,EAAW,CAACQ,EAAKC,CAAO,EAAEC,EAAS,CAAC,EAAO,CAACC,EAAMC,CAAQ,EAAEF,EAAS,IAAI,EAAO,CAACG,EAASC,CAAW,EAAEJ,EAAS,IAAI,EAAO,CAACK,EAAMC,CAAQ,EAAEN,EAASZ,EAAe,CAAC,EAAQmB,EAASC,EAAoB,EAAQC,EAAWX,IAAO,GAAGG,GAAOE,EAAeO,EAAUC,EAAQ,IAAQ,CAACV,GAAO,CAACE,EAAgB,KAAW,GAAGF,CAAK,IAAIE,CAAQ,GAAK,CAACF,EAAME,CAAQ,CAAC,EAAQS,EAAmBC,EAAYC,GAAK,CAACC,EAAgB,IAAI,CAACb,EAASY,CAAG,EAAEf,EAAQ,CAAC,EAAEO,EAASlB,EAAe,CAAC,CAAE,CAAC,CAAE,EAAE,CAAC,CAAC,EAAQ4B,EAAeH,EAAYC,GAAK,CAACC,EAAgB,IAAI,CAACX,EAAYU,CAAG,EA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AAK,SAAS,CAAC,MAAML,EAAY,QAAQN,EAAc,aAAa,aAAa,SAAS,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACjwBW,EAAK,MAAM,CAAC,MAAMR,EAAa,SAAsBY,EAAM,MAAM,CAAC,MAAMX,EAAU,SAAS,CAAC,yBAAsCO,EAAK,SAAS,CAAC,MAAML,EAAY,QAAQN,EAAc,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAACgB,EAAoB5C,EAAkB,CAAC,WAAW,CAAC,KAAK6C,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,YAAY,CAAC,KAAKA,EAAY,MAAM,MAAM,kBAAkB,aAAa,MAAM,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,eAAe,aAAa,SAAS,EAAE,eAAe,CAAC,KAAKA,EAAY,OAAO,MAAM,kBAAkB,aAAa,IAAI,IAAI,GAAG,IAAI,EAAE,KAAK,GAAG,EAAE,aAAa,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,GAAG,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,KAAK,CAAC,KAAKA,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,WAAW,cAAc,UAAU,WAAW,OAAO,CAAC,CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "widgetLinks", "humorLines", "getRandomHumor", "AppointmentWidget", "props", "brandColor", "accentColor", "textColor", "overlayOpacity", "borderRadius", "font", "style", "step", "setStep", "ye", "isNew", "setIsNew", "location", "setLocation", "humor", "setHumor", "isStatic", "useIsStaticRenderer", "showWidget", "widgetKey", "se", "handleNewReturning", "te", "val", "Z", "handleLocation", "handleRestart", "RenderTarget", "isMobile", "overlayStyle", "cardStyle", "btnStyle", "secBtnStyle", "optionBtn", "label", "onClick", "key", "p", "e", "locationBtn", "humorLine", "u", "addPropertyControls", "ControlType"]
}
