{"version":3,"file":"AddToCalendar.DKe1dogs.mjs","names":["useState","useRef","useMemo","useCallback","startTransition","__esmMin","window","te","ne","init_ssg_sandbox_shims","_e","pe","p","init_jsx_runtime","ce","init_npm_react_18_3_1","de","init_framer_DKWANagr","ControlType","useIsStaticRenderer","addPropertyControls","isValidDate","value","parseNaiveDateInTimeZone","fallback","match","year","month","day","hour","minute","second","targetMs","formatter","getAsUtcMsForZone","parts","date","map","part","guessMs","i","delta","parseEventDates","parsedStart","startDate","timeZone","parsedEnd","endDate","toGoogleDateTimeUTC","toUTCIsoDateTime","escapeICS","text","sanitizeFilename","name","buildICS","dtStamp","dtStart","params","dtEnd","AddToCalendar","props","isStatic","open","setOpen","shouldRender","setShouldRender","isButtonHovered","setIsButtonHovered","hoveredItem","setHoveredItem","wrapperRef","triggerRef","parsedDates","timeout","onPointerDown","target","event","onKeyDown","closeMenu","downloadICSFile","ics","blob","blobUrl","a","title","description","location","openCalendar","start","end","option","dates","url","startedAt","didBackground","fallbackTimeout","onVisibilityChange","cleanup","onBlur","outlookUrl","isStillVisible","menuItems","minWidth","prev","buttonPaddingVertical","buttonPaddingHorizontal","buttonHoverFill","buttonFill","textColor","borderColor","radius","buttonText","dropdownFill","shadowColor","dropdownPadding","item","dropdownHoverFill","dropdownTextColor","itemPaddingVertical","itemPaddingHorizontal","init_AddToCalendar"],"sources":["https:/framerusercontent.com/modules/66rlASN4r1qIcJUNDENw/N2SNZAAPeF5uRMcMRm4c/AddToCalendar.js"],"sourcesContent":["// Create a new Framer code component named \"AddToCalendar\" for a Norwegian event website:\n// A trigger button opens a dropdown menu to add an event to different calendar providers,\n// with safe date parsing, SSR-safe behavior, accessibility support, and tunable style controls.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useCallback,useEffect,useMemo,useRef,useState,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";function isValidDate(value){return!Number.isNaN(value.getTime());}function parseNaiveDateInTimeZone(value,timeZone){const fallback=new Date(value);const match=value.match(/^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2})(?::(\\d{2}))?$/);if(!match)return fallback;try{const year=Number(match[1]);const month=Number(match[2]);const day=Number(match[3]);const hour=Number(match[4]);const minute=Number(match[5]);const second=Number(match[6]||\"0\");const targetMs=Date.UTC(year,month-1,day,hour,minute,second);const formatter=new Intl.DateTimeFormat(\"en-US\",{timeZone,hour12:false,year:\"numeric\",month:\"2-digit\",day:\"2-digit\",hour:\"2-digit\",minute:\"2-digit\",second:\"2-digit\",timeZoneName:\"shortOffset\"});const getAsUtcMsForZone=date=>{const parts=formatter.formatToParts(date);const map={};for(const part of parts){if(part.type!==\"literal\"){map[part.type]=part.value;}}return Date.UTC(Number(map.year),Number(map.month)-1,Number(map.day),Number(map.hour),Number(map.minute),Number(map.second));};let guessMs=targetMs;for(let i=0;i<2;i++){const zonedAsUtcMs=getAsUtcMsForZone(new Date(guessMs));const delta=targetMs-zonedAsUtcMs;guessMs+=delta;if(delta===0)break;}return new Date(guessMs);}catch{return fallback;}}function parseEventDates(startDate,endDate,timeZone){const parsedStart=parseNaiveDateInTimeZone(startDate,timeZone);if(!isValidDate(parsedStart))return{start:null,end:null};const parsedEnd=parseNaiveDateInTimeZone(endDate,timeZone);if(isValidDate(parsedEnd)&&parsedEnd.getTime()>parsedStart.getTime()){return{start:parsedStart,end:parsedEnd};}return{start:parsedStart,end:new Date(parsedStart.getTime()+60*60*1e3)};}function toGoogleDateTimeUTC(date){const year=date.getUTCFullYear();const month=String(date.getUTCMonth()+1).padStart(2,\"0\");const day=String(date.getUTCDate()).padStart(2,\"0\");const hours=String(date.getUTCHours()).padStart(2,\"0\");const minutes=String(date.getUTCMinutes()).padStart(2,\"0\");const seconds=String(date.getUTCSeconds()).padStart(2,\"0\");return`${year}${month}${day}T${hours}${minutes}${seconds}Z`;}function toUTCIsoDateTime(date){return date.toISOString().replace(/\\.\\d{3}Z$/,\"Z\");}function escapeICS(text){return text.replace(/\\\\/g,\"\\\\\\\\\").replace(/\\r\\n/g,\"\\\\n\").replace(/\\r/g,\"\\\\n\").replace(/\\n/g,\"\\\\n\").replace(/,/g,\"\\\\,\").replace(/;/g,\"\\\\;\");}function sanitizeFilename(name){const base=name.trim().toLowerCase()||\"event\";return base.replace(/[^a-z0-9æøå\\s-]/gi,\"\").replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\");}function buildICS(params){const dtStamp=toGoogleDateTimeUTC(new Date);const dtStart=toGoogleDateTimeUTC(params.start);const dtEnd=toGoogleDateTimeUTC(params.end);const uid=`${Date.now()}-${Math.random().toString(36).slice(2)}@addtocalendar`;const lines=[\"BEGIN:VCALENDAR\",\"VERSION:2.0\",\"PRODID:-//AddToCalendar//NO\",\"BEGIN:VEVENT\",`UID:${uid}`,`DTSTAMP:${dtStamp}`,`DTSTART:${dtStart}`,`DTEND:${dtEnd}`,`SUMMARY:${escapeICS(params.title)}`,`DESCRIPTION:${escapeICS(params.description)}`,`LOCATION:${escapeICS(params.location)}`,\"END:VEVENT\",\"END:VCALENDAR\"];return lines.join(\"\\r\\n\");}/**\n * @framerSupportedLayoutWidth \"auto\"\n * @framerSupportedLayoutHeight \"auto\"\n */export default function AddToCalendar(props){const{title,description,location,startDate,endDate,timeZone,buttonText,fontFamily,fontSize,textColor,buttonFill,buttonHoverFill,borderColor,radius,dropdownFill,dropdownTextColor,dropdownHoverFill,shadowColor,minWidth,buttonPaddingVertical,buttonPaddingHorizontal,itemPaddingVertical,itemPaddingHorizontal,dropdownPadding}=props;const isStatic=useIsStaticRenderer();const[open,setOpen]=useState(false);const[shouldRender,setShouldRender]=useState(false);const[isButtonHovered,setIsButtonHovered]=useState(false);const[hoveredItem,setHoveredItem]=useState(null);const wrapperRef=useRef(null);const triggerRef=useRef(null);const parsedDates=useMemo(()=>parseEventDates(startDate,endDate,timeZone),[startDate,endDate,timeZone]);useEffect(()=>{if(open){startTransition(()=>setShouldRender(true));return;}if(typeof window===\"undefined\"){startTransition(()=>setShouldRender(false));return;}const timeout=window.setTimeout(()=>{startTransition(()=>setShouldRender(false));},180);return()=>window.clearTimeout(timeout);},[open]);useEffect(()=>{if(!open)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const onPointerDown=event=>{const target=event.target;if(wrapperRef.current&&target&&!wrapperRef.current.contains(target)){startTransition(()=>setOpen(false));}};const onKeyDown=event=>{if(event.key===\"Escape\"){startTransition(()=>setOpen(false));window.setTimeout(()=>{triggerRef.current?.focus();},0);}};document.addEventListener(\"pointerdown\",onPointerDown);document.addEventListener(\"keydown\",onKeyDown);return()=>{document.removeEventListener(\"pointerdown\",onPointerDown);document.removeEventListener(\"keydown\",onKeyDown);};},[open]);const closeMenu=useCallback(()=>{startTransition(()=>setOpen(false));},[]);const downloadICSFile=useCallback((start,end)=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;const ics=buildICS({title,description,location,start,end});const blob=new Blob([ics],{type:\"text/calendar;charset=utf-8\"});const blobUrl=URL.createObjectURL(blob);const a=document.createElement(\"a\");a.href=blobUrl;a.download=`${sanitizeFilename(title)}.ics`;document.body.appendChild(a);a.click();document.body.removeChild(a);window.setTimeout(()=>URL.revokeObjectURL(blobUrl),0);},[title,description,location]);const openCalendar=useCallback(option=>{const{start,end}=parsedDates;if(!start||!end){closeMenu();return;}if(typeof window===\"undefined\"||typeof document===\"undefined\"){closeMenu();return;}if(option===\"google\"){const base=\"https://calendar.google.com/calendar/render?action=TEMPLATE\";const dates=`${toGoogleDateTimeUTC(start)}/${toGoogleDateTimeUTC(end)}`;const url=`${base}&text=${encodeURIComponent(title)}&dates=${encodeURIComponent(dates)}&details=${encodeURIComponent(description)}&location=${encodeURIComponent(location)}`;window.open(url,\"_blank\",\"noopener,noreferrer\");closeMenu();return;}if(option===\"outlookApp\"){const startedAt=Date.now();let didBackground=false;let fallbackTimeout;const onVisibilityChange=()=>{if(document.visibilityState===\"hidden\"){didBackground=true;cleanup();}};const onBlur=()=>{didBackground=true;};document.addEventListener(\"visibilitychange\",onVisibilityChange);window.addEventListener(\"blur\",onBlur);const cleanup=()=>{if(fallbackTimeout!==undefined){window.clearTimeout(fallbackTimeout);fallbackTimeout=undefined;}document.removeEventListener(\"visibilitychange\",onVisibilityChange);window.removeEventListener(\"blur\",onBlur);};const outlookUrl=`ms-outlook://events/new?title=${encodeURIComponent(title)}`+`&start=${encodeURIComponent(toUTCIsoDateTime(start))}`+`&end=${encodeURIComponent(toUTCIsoDateTime(end))}`+`&location=${encodeURIComponent(location)}`+`&body=${encodeURIComponent(description)}`;window.location.href=outlookUrl;fallbackTimeout=window.setTimeout(()=>{const isStillVisible=document.visibilityState===\"visible\";const elapsed=Date.now()-startedAt;if(elapsed>=1100&&isStillVisible&&!didBackground){downloadICSFile(start,end);}cleanup();},1200);closeMenu();return;}downloadICSFile(start,end);closeMenu();},[parsedDates,title,description,location,closeMenu,downloadICSFile]);const menuItems=useMemo(()=>[{key:\"google\",label:\"Google Calendar\"},{key:\"apple\",label:\"Apple Calendar\"},{key:\"outlookApp\",label:\"Outlook App\"},{key:\"icalDesktop\",label:\"iCal / Outlook Desktop\"}],[]);return /*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,style:{position:\"relative\",display:\"inline-block\",minWidth:`${Math.max(120,minWidth)}px`,fontFamily},children:[/*#__PURE__*/_jsxs(\"button\",{ref:triggerRef,type:\"button\",\"aria-haspopup\":\"menu\",\"aria-expanded\":open,onClick:()=>startTransition(()=>setOpen(prev=>!prev)),onMouseEnter:()=>startTransition(()=>setIsButtonHovered(true)),onMouseLeave:()=>startTransition(()=>setIsButtonHovered(false)),style:{position:\"relative\",width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:10,padding:`${buttonPaddingVertical}px ${buttonPaddingHorizontal}px`,background:isButtonHovered?buttonHoverFill:buttonFill,color:textColor,border:`1px solid ${borderColor}`,borderRadius:radius,fontFamily,fontSize,fontWeight:500,lineHeight:1.2,cursor:\"pointer\",outline:\"none\",transition:\"background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease\"},children:[/*#__PURE__*/_jsxs(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:10,minWidth:0},children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"5\",width:\"18\",height:\"16\",rx:\"3\",stroke:\"currentColor\",strokeWidth:\"1.75\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 3V7M16 3V7M3 10.5H21\",stroke:\"currentColor\",strokeWidth:\"1.75\",strokeLinecap:\"round\"})]}),/*#__PURE__*/_jsx(\"span\",{style:{whiteSpace:\"nowrap\"},children:buttonText})]}),/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",style:{transform:open?\"rotate(180deg)\":\"rotate(0deg)\",transition:\"transform 180ms ease\",flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 9L12 15L18 9\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]}),shouldRender&&/*#__PURE__*/_jsx(\"div\",{role:\"menu\",\"aria-label\":\"Add to calendar options\",style:{position:\"absolute\",top:\"calc(100% + 8px)\",left:0,minWidth:`max(100%, ${Math.max(120,minWidth)}px)`,maxWidth:\"min(92vw, 420px)\",zIndex:9999,borderRadius:12,border:`1px solid ${borderColor}`,background:dropdownFill,boxShadow:`0 12px 32px ${shadowColor}`,padding:dropdownPadding,opacity:open?1:0,transform:open?\"translateY(0px)\":\"translateY(-6px)\",transition:\"opacity 180ms ease, transform 180ms ease\",pointerEvents:open?\"auto\":\"none\"},children:menuItems.map(item=>/*#__PURE__*/_jsx(\"button\",{type:\"button\",role:\"menuitem\",tabIndex:0,onMouseEnter:()=>startTransition(()=>setHoveredItem(item.key)),onMouseLeave:()=>startTransition(()=>setHoveredItem(null)),onClick:()=>openCalendar(item.key),style:{width:\"100%\",textAlign:\"left\",border:\"none\",background:hoveredItem===item.key?dropdownHoverFill:\"transparent\",color:dropdownTextColor,borderRadius:8,padding:`${itemPaddingVertical}px ${itemPaddingHorizontal}px`,cursor:\"pointer\",fontFamily,fontSize,fontWeight:500,lineHeight:1.2,outline:\"none\"},children:item.label},item.key))}),!isStatic&&/*#__PURE__*/_jsx(\"style\",{children:`\n                    button:focus-visible {\n                        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45);\n                    }\n                `})]});}addPropertyControls(AddToCalendar,{title:{type:ControlType.String,defaultValue:\"Ride with Abra\"},description:{type:ControlType.String,defaultValue:\"Social Ride med Jonas Abrahamsen\",displayTextArea:true},location:{type:ControlType.String,defaultValue:\"Ullev\\xe5l Stadion, Oslo\"},startDate:{type:ControlType.String,defaultValue:\"2026-08-25T17:30:00\"},endDate:{type:ControlType.String,defaultValue:\"2026-08-25T19:30:00\"},timeZone:{type:ControlType.String,defaultValue:\"Europe/Oslo\"},buttonText:{type:ControlType.String,defaultValue:\"Legg til i kalender\"},fontFamily:{type:ControlType.String,defaultValue:\"Switzer, Inter, sans-serif\"},fontSize:{type:ControlType.Number,defaultValue:15,min:12,max:24,step:1,unit:\"px\"},textColor:{type:ControlType.Color,defaultValue:\"#111111\"},buttonFill:{type:ControlType.Color,defaultValue:\"#FFFFFF\"},buttonHoverFill:{type:ControlType.Color,defaultValue:\"#F8F8F8\"},borderColor:{type:ControlType.Color,defaultValue:\"rgba(0,0,0,0.12)\"},radius:{type:ControlType.Number,defaultValue:10,min:0,max:30,step:1,unit:\"px\"},buttonPaddingVertical:{type:ControlType.Number,defaultValue:12,min:0,max:48,step:1,unit:\"px\"},buttonPaddingHorizontal:{type:ControlType.Number,defaultValue:18,min:0,max:64,step:1,unit:\"px\"},dropdownFill:{type:ControlType.Color,defaultValue:\"#FFFFFF\"},dropdownTextColor:{type:ControlType.Color,defaultValue:\"#111111\"},dropdownHoverFill:{type:ControlType.Color,defaultValue:\"rgba(0,0,0,0.05)\"},itemPaddingVertical:{type:ControlType.Number,defaultValue:10,min:0,max:40,step:1,unit:\"px\"},itemPaddingHorizontal:{type:ControlType.Number,defaultValue:14,min:0,max:48,step:1,unit:\"px\"},dropdownPadding:{type:ControlType.Number,defaultValue:6,min:0,max:32,step:1,unit:\"px\"},shadowColor:{type:ControlType.Color,defaultValue:\"rgba(0,0,0,0.12)\"},minWidth:{type:ControlType.Number,defaultValue:220,min:120,max:600,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AddToCalendar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"\\\"auto\\\"\",\"framerSupportedLayoutHeight\":\"\\\"auto\\\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddToCalendar.map"],"mappings":"A,0OAGkN,SAASqB,EAAY,EAAM,CAAC,MAAM,CAAC,OAAO,MAAMC,EAAM,QAAQ,CAAC,CAAE,CAAC,SAASC,EAAyB,EAAM,EAAS,CAAC,IAAMC,EAAS,IAAI,KAAKF,CAAK,EAAQG,EAAMH,EAAM,MAAM,wDAAwD,EAAE,GAAG,CAACG,EAAM,OAAOD,EAAS,GAAG,CAAC,IAAME,EAAK,OAAOD,EAAM,EAAE,EAAQE,EAAM,OAAOF,EAAM,EAAE,EAAQG,EAAI,OAAOH,EAAM,EAAE,EAAQI,EAAK,OAAOJ,EAAM,EAAE,EAAQK,EAAO,OAAOL,EAAM,EAAE,EAAQM,EAAO,OAAON,EAAM,IAAI,GAAG,EAAQO,EAAS,KAAK,IAAIN,EAAKC,EAAM,EAAEC,EAAIC,EAAKC,EAAOC,CAAM,EAAQE,EAAU,IAAI,KAAK,eAAe,QAAQ,CAAC,WAAS,OAAO,GAAM,KAAK,UAAU,MAAM,UAAU,IAAI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