{"version":3,"file":"IronBeastQuoteCartSystem.CegTkLsT.mjs","names":["React.useCallback"],"sources":["https:/framerusercontent.com/modules/j2QajmIbO29XdPvAToUB/BV3VvNR96Q8HgVqYxzvv/IronBeastQuoteCartSystem.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const REQUEST_QUOTE_PATH=\"/request-a-quote\";export function IronBeastAddToCartOverride(Component){return /*#__PURE__*/React.forwardRef((props,ref)=>{const onClick=React.useCallback(event=>{if(typeof props.onClick===\"function\")props.onClick(event);},[props]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:onClick});});}/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function IronBeastQuoteCartSystem(props){const{backgroundColor,borderColor,textColor,triggerMode,triggerLabel}=props;const goToQuote=React.useCallback(()=>{if(typeof window!==\"undefined\"){window.location.assign(REQUEST_QUOTE_PATH);}},[]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"max-content\",height:\"max-content\",fontFamily:'Inter, \"Avenir Next\", \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',color:textColor},children:/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"aria-label\":\"Request a quote\",onClick:goToQuote,style:{display:\"inline-flex\",alignItems:\"center\",gap:triggerMode===\"iconLabel\"?8:0,height:36,padding:triggerMode===\"iconLabel\"?\"0 12px\":\"0 10px\",borderRadius:999,border:`1px solid ${borderColor}`,background:backgroundColor,color:textColor,cursor:\"pointer\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{display:\"inline-flex\",alignItems:\"center\"},children:/*#__PURE__*/_jsx(\"span\",{style:{width:8,height:8,borderRadius:999,background:textColor,opacity:.9,display:\"inline-block\"}})}),triggerMode===\"iconLabel\"?/*#__PURE__*/_jsx(\"span\",{style:{fontSize:13},children:triggerLabel}):null]})});}addPropertyControls(IronBeastQuoteCartSystem,{accentColor:{type:ControlType.Color,defaultValue:\"#F2C300\"},backgroundColor:{type:ControlType.Color,defaultValue:\"#111111\"},panelColor:{type:ControlType.Color,defaultValue:\"#1A1A1A\"},borderColor:{type:ControlType.Color,defaultValue:\"#3A3A3A\"},textColor:{type:ControlType.Color,defaultValue:\"#FFFFFF\"},mutedTextColor:{type:ControlType.Color,defaultValue:\"#A9A9A9\"},submitEmail:{type:ControlType.String,defaultValue:\"\",placeholder:\"quotes@ironbeastattachments.com\"},triggerMode:{type:ControlType.Enum,options:[\"icon\",\"iconLabel\"],optionTitles:[\"Icon\",\"Icon + Label\"],defaultValue:\"icon\",displaySegmentedControl:true},triggerLabel:{type:ControlType.String,defaultValue:\"Request Quote\",hidden:props=>props.triggerMode!==\"iconLabel\"},initialTestItem:{type:ControlType.Boolean,defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"IronBeastAddToCartOverride\":{\"type\":\"reactHoc\",\"name\":\"IronBeastAddToCartOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"IronBeastQuoteCartSystem\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IronBeastQuoteCartSystem.map"],"mappings":"iMAAqL,SAAgB,EAA2B,EAAU,CAAC,OAAoB,GAAkB,EAAM,IAAM,CAAC,IAAM,EAAQA,EAAkB,GAAO,CAAI,OAAO,EAAM,SAAU,YAAW,EAAM,QAAQ,CAAK,CAAE,EAAE,CAAC,CAAK,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAc,SAAO,CAAC,CAAE,CAAC,CAAE,CAGld,SAAwB,EAAyB,EAAM,CAAC,GAAK,CAAC,kBAA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