import{j as e}from"./ui-vendor-CJlQk0Tq.js";import{r as t}from"./react-vendor-f6QdChhz.js";import{K as a,B as r,ec as s,d as l,P as o,aE as i,ei as n,en as c}from"./index-CUIxi1yy.js";const m=({variant:t,size:n,showQuoteButton:c,showCallButton:m,showTextButton:d,activeModal:x,onQuoteClick:u,onCallClick:h,onTextClick:p})=>{const f="lg"===n?"px-6 py-3 text-lg":"sm"===n?"px-3 py-2 text-sm":"px-4 py-2",v=!1,w=()=>{if(!c)return null;const l={onClick:u,className:"stacked"===t?a("bg-gradient-to-r from-primary-dark via-primary to-primary-light hover:from-primary-dark hover:via-primary-dark hover:to-primary text-white flex items-center justify-center gap-2 shadow-md transition-all duration-300",f):"bg-gradient-to-r from-primary-dark via-primary to-primary-light hover:from-primary-dark hover:via-primary-dark hover:to-primary text-white flex items-center gap-2 shadow-md transition-all duration-300"};return e.jsxs(r,{...l,size:"stacked"===t?void 0:n,children:[e.jsx(s,{className:"h-4 w-4"}),"Get Expert Advice"]})},g=(s,l,o,i)=>{const c=x===s,m={onClick:i,className:a("bg-gradient-to-r from-wood-dark via-wood-medium to-wood-light hover:from-wood-dark hover:via-wood-dark hover:to-wood-medium text-white flex items-center gap-2 shadow-md transition-all duration-300","stacked"===t?a("flex-1 justify-center",f):"",c&&"bg-primary/10 border-primary/30")};return e.jsxs(r,{...m,size:"stacked"===t?void 0:n,children:[l,o]})},j=()=>e.jsxs("div",{className:"inline-flex items-center px-4 py-2 bg-primary/10 text-primary rounded-full text-sm font-medium",children:[e.jsx(l,{className:"h-4 w-4 mr-1"}),"Serving PA • NJ • DE • MD"]});return"stacked"===t?e.jsxs("div",{className:"flex flex-col gap-3 items-center",children:[v,w(),e.jsxs("div",{className:"flex gap-2 w-full",children:[m&&g("call",e.jsx(o,{className:"h-4 w-4"}),"Call (610) 857-3420",h),d&&g("text",e.jsx(i,{className:"h-4 w-4"}),"Text Us",p)]}),j()]}):e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[v,e.jsxs("div",{className:"flex flex-wrap gap-3 justify-center",children:[w(),m&&g("call",e.jsx(o,{className:"h-4 w-4"}),"Call (610) 857-3420",h),d&&g("text",e.jsx(i,{className:"h-4 w-4"}),"Text Us",p)]}),j()]})},d=({variant:r="default",onQuoteClick:s,className:l,size:o="default",showQuoteButton:i=!0,showCallButton:d=!1,showTextButton:x=!1,mobileLarge:u=!1})=>{let h;try{const e=n();h=e.openQuickQuote}catch(v){h=void 0}const[p,f]=t.useState(null);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:a((()=>{const e="stacked"===r?"flex flex-col gap-3 w-full max-w-sm":"centered"===r?"flex flex-col sm:flex-row gap-3 items-center justify-center":"flex flex-wrap gap-3";return u?`${e} mobile-large-buttons`:e})(),l),children:e.jsx(m,{variant:r,size:u?"lg":o,showQuoteButton:i,showCallButton:d,showTextButton:x,activeModal:p,onQuoteClick:()=>{f(null),s?s():h()},onCallClick:()=>{f("call"===p?null:"call")},onTextClick:()=>{f("text"===p?null:"text")}})}),e.jsx(c,{open:null!==p,onOpenChange:()=>{f(null)},initialContactMethod:p||"call"})]})};export{m as C,d as a};