{"version":3,"file":"EnquireLink.BPfLZJto.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_DKWANagr","ControlType","EnquireLink","props","clean","title","href","contactPath","textColor","labelFont","label","init_EnquireLink"],"sources":["https:/framerusercontent.com/modules/Z7mGAJei3lor1Mw0G9ea/1xUnZAvT1ifi2WFvppsC/EnquireLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Enquire Link\n *\n * Button for a work page. Links to the enquiry form on the contact page with\n * the work's title carried across, so the visitor does not have to type it.\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 42\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function EnquireLink(props){const{title=\"\",label=\"Interested in this work?\",contactPath=\"/contact\",background=\"#1A1A1C\",textColor=\"#FFFFFF\",labelFont}=props;const clean=typeof title===\"string\"?title.trim():\"\";const href=clean?`${contactPath}?work=${encodeURIComponent(clean)}#enquire`:`${contactPath}#enquire`;return /*#__PURE__*/_jsx(\"a\",{href:href,style:{...props.style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",width:\"max-content\",maxWidth:\"100%\",height:\"auto\",padding:\"11px 18px\",boxSizing:\"border-box\",background,color:textColor,textDecoration:\"none\",borderRadius:2,...labelFont},children:label});}addPropertyControls(EnquireLink,{title:{type:ControlType.String,title:\"Work title\",defaultValue:\"\"},label:{type:ControlType.String,title:\"Button text\",defaultValue:\"Interested in this work?\"},contactPath:{type:ControlType.String,title:\"Contact path\",defaultValue:\"/contact\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#1A1A1C\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\"},labelFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.3em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EnquireLink\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"200\",\"framerIntrinsicHeight\":\"42\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EnquireLink.map"],"mappings":"A,4JAWG,SAAwBM,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,GAAG,QAAM,2BAA2B,cAAY,WAAW,aAAW,UAAU,YAAU,UAAU,aAAWC,EAAYC,EAAM,OAAOC,GAAQ,SAASA,EAAM,KAAK,EAAE,GAASC,EAAKF,EAAM,GAAGG,EAAY,QAAQ,mBAAmBH,CAAK,EAAE,UAAU,GAAGG,EAAY,UAAU,MAAoB,gBAAK,IAAI,CAAM,OAAK,MAAM,CAAC,GAAGJ,EAAM,MAAM,SAAS,WAAW,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,MAAM,cAAc,SAAS,OAAO,OAAO,OAAO,QAAQ,YAAY,UAAU,aAAa,aAAW,MAAMK,EAAU,eAAe,OAAO,aAAa,EAAE,GAAGC,CAAS,EAAE,SAASC,CAAK,CAAC,CAAE,C,sCAACX,EAAoBG,EAAY,CAAC,MAAM,CAAC,KAAKD,EAAY,OAAO,MAAM,aAAa,aAAa,EAAE,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,aAAa,0BAA0B,EAAE,YAAY,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,aAAa,UAAU,EAAE,WAAW,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,OAAO,aAAa,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,MAAM,OAAO,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,OAAO,QAAQ,UAAU,cAAc,MAAM,WAAW,OAAO,CAAC,CAAC,CAAC,C"}