{"version":3,"file":"Timeline.DsbZPOXs.mjs","names":["p","useId"],"sources":["https:/framerusercontent.com/modules/Vfj12wXs2Qg1YOYsshRD/cq4lkLij466DIUGtuVpQ/Timeline.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useId}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Timeline(props){const{entries,fontFamily,headingDesktop,bodyDesktop,tabletScale,phoneScale,headingColor,headingWeight,headingLineHeight,bodyColor,bodyWeight,accentColor,lineColor,dotSize,lineWidth,markerWidth,contentGap,headingBodyGap,rowSpacing,dotNudge,style}=props;// Auto-derived breakpoint sizes from the desktop value.\nconst t=tabletScale/100;const p=phoneScale/100;const headingTablet=Math.round(headingDesktop*t);const headingPhone=Math.round(headingDesktop*p);const bodyTablet=Math.round(bodyDesktop*t);const bodyPhone=Math.round(bodyDesktop*p);// Unique scoped class so each instance gets its own stepped sizes.\nconst cls=\"tl-\"+useId().replace(/:/g,\"\");// Desktop 1200+, Tablet 810 to 1199, Phone 809 and below.\nconst css=`\n.${cls}{--tlh:${headingDesktop}px;--tlb:${bodyDesktop}px;}\n@media (max-width:1199px){.${cls}{--tlh:${headingTablet}px;--tlb:${bodyTablet}px;}}\n@media (max-width:809px){.${cls}{--tlh:${headingPhone}px;--tlb:${bodyPhone}px;}}\n`;// Dot centre reads the same stepped heading size, so it stays centred\n// at every breakpoint.\nconst dotCenter=`calc(var(--tlh) * ${headingLineHeight} / 2 + (${dotNudge} * 1px))`;return /*#__PURE__*/_jsxs(\"div\",{className:cls,style:{width:\"100%\",...style,fontFamily,display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),entries.map((entry,i)=>{const isFirst=i===0;const isLast=i===entries.length-1;return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"stretch\",gap:contentGap},children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:markerWidth,flexShrink:0},children:[!isFirst&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",transform:\"translateX(-50%)\",top:0,height:dotCenter,width:lineWidth,backgroundColor:lineColor}}),!isLast&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",transform:\"translateX(-50%)\",top:dotCenter,bottom:0,width:lineWidth,backgroundColor:lineColor}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:\"50%\",top:dotCenter,transform:\"translate(-50%, -50%)\",width:dotSize,height:dotSize,borderRadius:\"50%\",backgroundColor:accentColor}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1,minWidth:0,paddingBottom:isLast?0:rowSpacing,display:\"flex\",flexDirection:\"column\",gap:headingBodyGap},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"var(--tlh)\",lineHeight:headingLineHeight,color:headingColor,fontWeight:headingWeight,textTransform:\"uppercase\",letterSpacing:\"0.01em\"},children:entry.heading}),entry.body?/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"var(--tlb)\",lineHeight:1.3,color:bodyColor,fontWeight:bodyWeight,whiteSpace:\"pre-line\"},children:entry.body}):null,entry.showLink?/*#__PURE__*/_jsxs(\"a\",{href:entry.linkUrl||\"#\",style:{fontSize:\"var(--tlb)\",lineHeight:1.3,color:accentColor,fontWeight:bodyWeight,textDecoration:\"none\",display:\"inline-flex\",alignItems:\"center\",gap:6,width:\"fit-content\"},children:[entry.linkLabel,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"→\"})]}):null]})]},i);})]});}addPropertyControls(Timeline,{entries:{type:ControlType.Array,title:\"Entries\",control:{type:ControlType.Object,controls:{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Heading\"},body:{type:ControlType.String,title:\"Body\",displayTextArea:true,defaultValue:\"\"},showLink:{type:ControlType.Boolean,title:\"Link\",defaultValue:false},linkLabel:{type:ControlType.String,title:\"Link label\",defaultValue:\"Register here\",hidden:e=>!e.showLink},linkUrl:{type:ControlType.Link,title:\"Link URL\",hidden:e=>!e.showLink}}},defaultValue:[{heading:\"Apply\",body:\"Applications open 12 June - 5 July\",showLink:false,linkLabel:\"Register here\"},{heading:\"Information session\",body:\"26 June (online)\",showLink:true,linkLabel:\"Register here\"},{heading:\"Welcome workshop\",body:\"17 July (online)\",showLink:false,linkLabel:\"Register here\"},{heading:\"Pitch bootcamp\",body:\"23 - 24 July (in-person, Melbourne)\",showLink:false,linkLabel:\"Register here\"},{heading:\"Venture bootcamp and semi-final\",body:\"11 - 13 August (in-person, Melbourne)\",showLink:false,linkLabel:\"Register here\"},{heading:\"Origin Australia demo day\",body:\"2 September (in-person, Melbourne)\",showLink:false,linkLabel:\"Register here\"},{heading:\"Immersion trip to Japan\",body:\"5 - 9 October (winner only)\",showLink:false,linkLabel:\"Register here\"}]},fontFamily:{type:ControlType.String,title:\"Font\",defaultValue:\"Noto Sans JP\"},headingDesktop:{type:ControlType.Number,title:\"Heading desktop\",defaultValue:20,min:8,max:80,unit:\"px\"},bodyDesktop:{type:ControlType.Number,title:\"Body desktop\",defaultValue:22,min:8,max:80,unit:\"px\"},tabletScale:{type:ControlType.Number,title:\"Tablet scale\",defaultValue:80,min:30,max:100,unit:\"%\"},phoneScale:{type:ControlType.Number,title:\"Phone scale\",defaultValue:64,min:30,max:100,unit:\"%\"},headingWeight:{type:ControlType.Enum,title:\"Heading weight\",options:[\"400\",\"500\",\"600\",\"700\"],optionTitles:[\"Regular\",\"Medium\",\"Semibold\",\"Bold\"],defaultValue:\"600\"},headingColor:{type:ControlType.Color,title:\"Heading color\",defaultValue:\"rgb(123, 130, 142)\"},headingLineHeight:{type:ControlType.Number,title:\"Heading line\",defaultValue:1.2,min:1,max:2,step:.05},bodyWeight:{type:ControlType.Enum,title:\"Body weight\",options:[\"400\",\"500\",\"600\",\"700\"],optionTitles:[\"Regular\",\"Medium\",\"Semibold\",\"Bold\"],defaultValue:\"500\"},bodyColor:{type:ControlType.Color,title:\"Body color\",defaultValue:\"rgb(255, 255, 255)\"},accentColor:{type:ControlType.Color,title:\"Dot and link\",defaultValue:\"rgb(2, 102, 255)\"},lineColor:{type:ControlType.Color,title:\"Line\",defaultValue:\"rgb(53, 56, 65)\"},dotSize:{type:ControlType.Number,title:\"Dot size\",defaultValue:10,min:4,max:24,unit:\"px\"},lineWidth:{type:ControlType.Number,title:\"Line width\",defaultValue:2,min:1,max:8,unit:\"px\"},markerWidth:{type:ControlType.Number,title:\"Marker width\",defaultValue:20,min:8,max:60,unit:\"px\"},contentGap:{type:ControlType.Number,title:\"Marker gap\",defaultValue:16,min:0,max:60,unit:\"px\"},headingBodyGap:{type:ControlType.Number,title:\"Heading to body gap\",defaultValue:12,min:0,max:40,unit:\"px\"},rowSpacing:{type:ControlType.Number,title:\"Entry spacing\",defaultValue:36,min:0,max:120,unit:\"px\"},dotNudge:{type:ControlType.Number,title:\"Dot nudge\",defaultValue:-1,min:-10,max:10,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Timeline\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Timeline.map"],"mappings":"iLAGG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,UAAQ,aAAW,iBAAe,cAAY,cAAY,aAAW,eAAa,gBAAc,oBAAkB,YAAU,aAAW,cAAY,YAAU,UAAQ,YAAU,cAAY,aAAW,iBAAe,aAAW,WAAS,SAAO,EAC3R,EAAE,EAAY,IAAUA,EAAE,EAAW,IAAU,EAAc,KAAK,MAAM,EAAe,CAAC,EAAQ,EAAa,KAAK,MAAM,EAAeA,CAAC,EAAQ,EAAW,KAAK,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