{"version":3,"file":"ButtonLink.BuUGDXJt.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_BL9pqxmF","ControlType","withDefaults","languageControl","useLang","useLinkProps","textPair","tr","init_BidBidTheme","Root","ButtonLink","lang","props","lp","justify","CSS","ViewMoreNewsButton","controls","init_ButtonLink"],"sources":["https:/framerusercontent.com/modules/XIOEzOFrATfdJLQFYJtj/Vu69v9emxVGZBbfkt745/ButtonLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{Root,useLang,tr,languageControl,useLinkProps,textPair,withDefaults}from\"https://framerusercontent.com/modules/ac9f13wiItglPkAXsAzE/J3eA00sDAiPANMjy9BEN/BidBidTheme.js\";const CSS=`\n.bb.button-link{display:flex;justify-content:var(--bl-align,center);width:100%}\n.bb.button-link .btn.full{width:100%}\n`;/**\n * BidBid pill button (primary / secondary / accent) with an English + Arabic label.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 400\n */export default function ButtonLink(props){const lang=useLang(props.language);const lp=useLinkProps();const justify=props.align===\"start\"?\"flex-start\":props.align===\"end\"?\"flex-end\":\"center\";return /*#__PURE__*/_jsx(Root,{scope:\"ButtonLink\",lang:lang,css:CSS,className:\"button-link\",style:{...props.style,[\"--bl-align\"]:justify},children:/*#__PURE__*/_jsx(\"a\",{className:\"btn \"+props.variant+(props.fullWidth?\" full\":\"\"),...lp(props.href),children:tr(props,\"label\",lang)})});}const controls={language:languageControl,...textPair(\"label\",\"Label\",\"View All Auctions →\"),href:{type:ControlType.String,title:\"Link\",defaultValue:\"/live-auctions\",placeholder:\"/about or https://…\"},variant:{type:ControlType.Enum,title:\"Style\",options:[\"primary\",\"secondary\",\"accent\"],optionTitles:[\"Primary\",\"Secondary\",\"Accent\"],defaultValue:\"primary\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"start\",\"center\",\"end\"],optionTitles:[\"Start\",\"Center\",\"End\"],defaultValue:\"center\",displaySegmentedControl:true},fullWidth:{type:ControlType.Boolean,title:\"Full width\",defaultValue:false}};addPropertyControls(ButtonLink,controls);/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 400\n */export function ViewMoreNewsButton(props){return /*#__PURE__*/_jsx(ButtonLink,{...props});}addPropertyControls(ViewMoreNewsButton,withDefaults(controls,{label:\"View More News & Updates →\",href:\"/newsletter\"}));\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ButtonLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"400\"}},\"ViewMoreNewsButton\":{\"type\":\"reactComponent\",\"name\":\"ViewMoreNewsButton\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,8PASG,SAAwBc,EAAW,EAAM,CAAC,IAAMC,EAAKP,EAAQQ,EAAM,QAAQ,EAAQC,EAAGR,EAAa,EAAQS,EAAQF,EAAM,QAAQ,QAAQ,aAAaA,EAAM,QAAQ,MAAM,WAAW,SAAS,MAAoB,gBAAKH,EAAK,CAAC,MAAM,aAAkB,OAAK,IAAIM,EAAI,UAAU,cAAc,MAAM,CAAC,GAAGH,EAAM,MAAO,aAAcE,CAAO,EAAE,SAAsB,gBAAK,IAAI,CAAC,UAAU,OAAOF,EAAM,SAASA,EAAM,UAAU,QAAQ,IAAI,GAAGC,EAAGD,EAAM,IAAI,EAAE,SAASL,EAAGK,EAAM,QAAQD,CAAI,CAAC,CAAC,CAAC,CAAC,CAAE,CAI1d,SAAgBK,EAAmB,E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