{"version":3,"file":"LinkButton.DPbxc3HT.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_BWFVvmND","LinkButton","props","textLink","style","align","newTab","FONT","small","textColor","label","button","fill","borderColor","ROLL_CSS","init_LinkButton","ControlType"],"sources":["https:/framerusercontent.com/modules/YsBqIG8c0Qk53HlwlVai/6ntYXS14q23oaKeoAdb7/LinkButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const FONT=`\"BDO Grotesk\", \"BDO Grotesk Placeholder\", sans-serif`;// Same hover as the site's Button component and DemoCTA: the label rolls up\n// and a copy rolls in from below (0.24s).\nconst ROLL_CSS=`\n.link-btn { overflow: hidden; transition: background-color 0.2s ease; }\n.link-btn-roll { position: relative; display: block; height: 20px; line-height: 20px; overflow: hidden; }\n.link-btn-out, .link-btn-in { display: block; transition: transform 0.24s cubic-bezier(0.12, 0.23, 0.5, 1), opacity 0.24s cubic-bezier(0.12, 0.23, 0.5, 1); }\n.link-btn-in { position: absolute; left: 0; right: 0; top: 0; text-align: center; transform: translateY(41px) scale(1.1); opacity: 0.6; }\n.link-btn:hover .link-btn-out, .link-btn:focus-visible .link-btn-out { transform: translateY(-40px) scale(0.8); transition-timing-function: cubic-bezier(0.57, 0.09, 0.27, 0.83); }\n.link-btn:hover .link-btn-in, .link-btn:focus-visible .link-btn-in { transform: translateY(0) scale(1); opacity: 1; transition-timing-function: cubic-bezier(0.57, 0.09, 0.27, 0.83); }\n@media (prefers-reduced-motion: reduce) { .link-btn-out, .link-btn-in { transition: none; } }\n@media (max-width: 400px) { .link-btn { padding: 0 14px !important; font-size: 14px !important; max-width: 100%; } }\n`;/**\n * A plain link button for the programs, Indigenous Education and request\n * pages. Filled or outline, any link (query strings like ?source=cobuild are\n * kept as written), or a plain text link. Unlike DemoCTA, it adds nothing to the link.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function LinkButton(props){const{label,href,newTab,fill,textColor,borderColor,small,textLink,align,style}=props;if(textLink){// Inline text link: bold, underlined, no box.\nreturn /*#__PURE__*/_jsx(\"div\",{style:{...style,display:\"flex\",justifyContent:align},children:/*#__PURE__*/_jsx(\"a\",{href:href,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener\":undefined,style:{fontFamily:FONT,fontSize:small?14:16,fontWeight:600,lineHeight:\"1.4em\",color:textColor,textDecoration:\"underline\",textUnderlineOffset:4,textDecorationThickness:1.5,whiteSpace:\"nowrap\",cursor:\"pointer\"},children:label})});}const outline=!fill||fill===\"transparent\"||fill===\"rgba(0, 0, 0, 0)\";const button={fontFamily:FONT,fontSize:small?14:15,fontWeight:500,lineHeight:\"1.2em\",background:outline?\"transparent\":fill,color:textColor,border:borderColor?`1.5px solid ${borderColor}`:\"none\",borderRadius:9,padding:small?\"0 16px\":\"0 22px\",height:small?40:48,display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",whiteSpace:\"nowrap\",textDecoration:\"none\",cursor:\"pointer\",flexShrink:0,boxSizing:\"border-box\"};return /*#__PURE__*/_jsxs(\"div\",{style:{...style,display:\"flex\",justifyContent:align},children:[/*#__PURE__*/_jsx(\"style\",{children:ROLL_CSS}),/*#__PURE__*/_jsx(\"a\",{href:href,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener\":undefined,style:button,className:\"link-btn\",children:/*#__PURE__*/_jsxs(\"span\",{className:\"link-btn-roll\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"link-btn-out\",children:label}),/*#__PURE__*/_jsx(\"span\",{className:\"link-btn-in\",\"aria-hidden\":\"true\",children:label})]})})]});}LinkButton.defaultProps={label:\"Request info →\",href:\"/request-info\",newTab:false,fill:\"#03343A\",textColor:\"#FEFAF3\",borderColor:\"\",small:false,textLink:false,align:\"flex-start\"};addPropertyControls(LinkButton,{label:{type:ControlType.String,title:\"Label\"},href:{type:ControlType.String,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New tab\"},fill:{type:ControlType.Color,title:\"Fill\",optional:true},textColor:{type:ControlType.Color,title:\"Text\"},borderColor:{type:ControlType.Color,title:\"Border\",optional:true},small:{type:ControlType.Boolean,title:\"Small\"},textLink:{type:ControlType.Boolean,title:\"Text link\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"flex-start\",\"center\",\"flex-end\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LinkButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkButton.map"],"mappings":"A,8JAkBG,SAAwBM,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,SAAO,OAAK,YAAU,cAAY,QAAM,WAAS,QAAM,SAAOC,EAAM,GAAGC,EACrI,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,QAAQ,OAAO,eAAeC,CAAK,EAAE,SAAsB,gBAAK,IAAI,CAAM,OAAK,OAAOC,EAAO,SAAS,IAAA,GAAU,IAAIA,EAAO,WAAW,IAAA,GAAU,MAAM,CAAC,WAAWC,EAAK,SAASC,EAAM,GAAG,GAAG,WAAW,IAAI,WAAW,QAAQ,MAAMC,EAAU,eAAe,YAAY,oBAAoB,EAAE,wBAAwB,IAAI,WAAW,SAAS,OAAO,SAAS,EAAE,SAASC,CAAK,CAAC,CAAC,CAAC,EAAwE,IAAMC,EAAO,CAAC,WAAWJ,EAAK,SAASC,EAAM,GAAG,GAAG,WAAW,IAAI,WAAW,QAAQ,WAA5I,CAACI,GAAMA,IAAO,eAAeA,IAAO,mBAA2H,cAAcA,EAAK,MAAMH,EAAU,OAAOI,EAAY,eAAeA,IAAc,OAAO,aAAa,EAAE,QAAQL,EAAM,SAAS,SAA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