import{c as U,r as s,k as oe,m as ln,j as r,L as R,n as _,g as O,P as M,e as Ye,h as S,i as K,D as Xe,o as un,p as dn,q as fn,f as Re,a as A,X as vn,b as Qe,d as Ze,s as hn,t as Oe,v as mn,w as gn,B as pn}from"./index-6aWWvyNc.js";/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xn=U("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bn=U("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wn=U("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yn=U("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nn=U("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const q=U("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);var Cn=ln[" useId ".trim().toString()]||(()=>{}),En=0;function Y(e){const[t,n]=s.useState(Cn());return oe(()=>{e||n(o=>o??String(En++))},[e]),e||(t?`radix-${t}`:"")}const le=(e,t)=>{typeof window<"u"&&window.gtag&&window.gtag("event","phone_click",{event_category:"engagement",event_label:`${e} - ${t}`,agent_name:e,phone_number:t})},ur=(e,t)=>{typeof window<"u"&&window.gtag&&window.gtag("event","sms_click",{event_category:"engagement",event_label:`${e} - ${t}`,agent_name:e,phone_number:t})},dr=()=>r.jsx("footer",{className:"bg-black border-t-4 border-brand-red text-white py-16",children:r.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-7xl",children:[r.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-5 gap-8 lg:gap-12 mb-12",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-white font-black text-lg mb-6 uppercase tracking-tight",children:"Contact Us"}),r.jsxs("div",{className:"space-y-4 text-white/90",children:[r.jsxs("a",{href:"tel:2566012041",onClick:()=>le("Richard","256-601-2041"),className:"flex items-center gap-2 hover:text-white transition-colors",children:[r.jsx(q,{className:"h-4 w-4 text-brand-red"}),r.jsx("span",{children:"Richard: 256-601-2041"})]}),r.jsxs("a",{href:"tel:2566302824",onClick:()=>le("Connie","256-630-2824"),className:"flex items-center gap-2 hover:text-white transition-colors",children:[r.jsx(q,{className:"h-4 w-4 text-brand-red"}),r.jsx("span",{children:"Connie: 256-630-2824"})]}),r.jsxs("a",{href:"tel:2564400822",onClick:()=>le("Toni","256-440-0822"),className:"flex items-center gap-2 hover:text-white transition-colors",children:[r.jsx(q,{className:"h-4 w-4 text-brand-red"}),r.jsx("span",{children:"Toni: 256-440-0822"})]}),r.jsxs("a",{href:"https://www.google.com/maps/search/?api=1&query=2700+Jordan+Rd+SW,+Fort+Payne,+AL+35967",target:"_blank",rel:"noopener noreferrer",className:"flex items-start gap-2 hover:text-white transition-colors pt-2",children:[r.jsx(yn,{className:"h-4 w-4 text-brand-red flex-shrink-0 mt-0.5"}),r.jsxs("span",{children:["2700 Jordan Rd SW",r.jsx("br",{}),"Fort Payne, AL 35967"]})]}),r.jsxs("div",{className:"flex items-start gap-2 pt-2",children:[r.jsx(bn,{className:"h-4 w-4 text-brand-red flex-shrink-0 mt-0.5"}),r.jsxs("div",{children:[r.jsx("span",{className:"block font-semibold text-white",children:"Open 24/7"}),r.jsx("span",{className:"text-white/70 text-sm",children:"Every Day, Including Holidays"})]})]})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-white font-black text-lg mb-6 uppercase tracking-tight",children:"Quick Links"}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(R,{to:"/",className:"block text-white/90 hover:text-white transition-colors",children:"Home"}),r.jsx(R,{to:"/about",className:"block text-white/90 hover:text-white transition-colors",children:"About"}),r.jsx(R,{to:"/contact",className:"block text-white/90 hover:text-white transition-colors",children:"Contact"}),r.jsx(R,{to:"/faq",className:"block text-white/90 hover:text-white transition-colors",children:"FAQ"}),r.jsx(R,{to:"/bail-bonds-guide",className:"block text-white/90 hover:text-white transition-colors",children:"Bail Guide"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-white font-black text-lg mb-6 uppercase tracking-tight",children:"Legal"}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(R,{to:"/privacy-policy",className:"block text-white/90 hover:text-white transition-colors",children:"Privacy Policy"}),r.jsx(R,{to:"/terms-of-service",className:"block text-white/90 hover:text-white transition-colors",children:"Terms of Service"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-white font-black text-lg mb-6 uppercase tracking-tight",children:"Cities We Serve"}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(R,{to:"/fort-payne",className:"block text-white/90 hover:text-white transition-colors",children:"Fort Payne"}),r.jsx(R,{to:"/rainsville",className:"block text-white/90 hover:text-white transition-colors",children:"Rainsville"}),r.jsx(R,{to:"/henagar",className:"block text-white/90 hover:text-white transition-colors",children:"Henagar"}),r.jsx(R,{to:"/fyffe",className:"block text-white/90 hover:text-white transition-colors",children:"Fyffe"}),r.jsx(R,{to:"/valley-head",className:"block text-white/90 hover:text-white transition-colors",children:"Valley Head"}),r.jsx(R,{to:"/pisgah",className:"block text-white/90 hover:text-white transition-colors",children:"Pisgah"}),r.jsx(R,{to:"/centre",className:"block text-white/90 hover:text-white transition-colors",children:"Centre"})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-white font-black text-lg mb-6 uppercase tracking-tight",children:"About Us"}),r.jsxs("div",{className:"space-y-3 text-white/90",children:[r.jsx("p",{children:"Licensed Alabama Bail Bond Agents"}),r.jsx("p",{children:"Family-Owned Since 2019"}),r.jsx("p",{children:"Available 24/7/365"})]}),r.jsxs("div",{className:"mt-6",children:[r.jsx("h4",{className:"text-white font-bold text-sm mb-3 uppercase tracking-tight",children:"Follow Us"}),r.jsx("div",{className:"flex gap-3",children:r.jsx("a",{href:"https://www.facebook.com/connies.bailbonding/",target:"_blank",rel:"noopener noreferrer",className:"bg-brand-red hover:bg-red-700 p-2 rounded-full transition-colors","aria-label":"Follow us on Facebook",children:r.jsx(wn,{className:"h-5 w-5 text-white"})})})]})]})]}),r.jsxs("div",{className:"border-t border-white/20 pt-8 text-center text-sm space-y-3",children:[r.jsx("p",{className:"text-white/70 italic",children:"This website does not constitute legal advice. Bail bond approval is subject to court discretion."}),r.jsx("p",{className:"font-bold text-white",children:"© 2025 Connie's Bail Bonding, LLC. All rights reserved."})]})]})});var ue="focusScope.autoFocusOnMount",de="focusScope.autoFocusOnUnmount",Le={bubbles:!1,cancelable:!0},Rn="FocusScope",Je=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[c,d]=s.useState(null),x=_(a),f=_(i),v=s.useRef(null),w=O(t,u=>d(u)),y=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(o){let u=function(m){if(y.paused||!c)return;const p=m.target;c.contains(p)?v.current=p:L(v.current,{select:!0})},h=function(m){if(y.paused||!c)return;const p=m.relatedTarget;p!==null&&(c.contains(p)||L(v.current,{select:!0}))},b=function(m){if(document.activeElement===document.body)for(const g of m)g.removedNodes.length>0&&L(c)};document.addEventListener("focusin",u),document.addEventListener("focusout",h);const C=new MutationObserver(b);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",h),C.disconnect()}}},[o,c,y.paused]),s.useEffect(()=>{if(c){Be.add(y);const u=document.activeElement;if(!c.contains(u)){const b=new CustomEvent(ue,Le);c.addEventListener(ue,x),c.dispatchEvent(b),b.defaultPrevented||(jn(Pn(et(c)),{select:!0}),document.activeElement===u&&L(c))}return()=>{c.removeEventListener(ue,x),setTimeout(()=>{const b=new CustomEvent(de,Le);c.addEventListener(de,f),c.dispatchEvent(b),b.defaultPrevented||L(u??document.body,{select:!0}),c.removeEventListener(de,f),Be.remove(y)},0)}}},[c,x,f,y]);const N=s.useCallback(u=>{if(!n&&!o||y.paused)return;const h=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,b=document.activeElement;if(h&&b){const C=u.currentTarget,[m,p]=kn(C);m&&p?!u.shiftKey&&b===p?(u.preventDefault(),n&&L(m,{select:!0})):u.shiftKey&&b===m&&(u.preventDefault(),n&&L(p,{select:!0})):b===C&&u.preventDefault()}},[n,o,y.paused]);return r.jsx(M.div,{tabIndex:-1,...l,ref:w,onKeyDown:N})});Je.displayName=Rn;function jn(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(L(o,{select:t}),document.activeElement!==n)return}function kn(e){const t=et(e),n=Fe(t,e),o=Fe(t.reverse(),e);return[n,o]}function et(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fe(e,t){for(const n of e)if(!Sn(n,{upTo:t}))return n}function Sn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mn(e){return e instanceof HTMLInputElement&&"select"in e}function L(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mn(e)&&t&&e.select()}}var Be=Tn();function Tn(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ke(e,t),e.unshift(t)},remove(t){var n;e=Ke(e,t),(n=e[0])==null||n.resume()}}}function Ke(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Pn(e){return e.filter(t=>t.tagName!=="A")}var fe=0;function An(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??We()),document.body.insertAdjacentElement("beforeend",e[1]??We()),fe++,()=>{fe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fe--}},[])}function We(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var D=function(){return D=Object.assign||function(t){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},D.apply(this,arguments)};function tt(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function In(e,t,n){if(n||arguments.length===2)for(var o=0,a=t.length,i;o<a;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var ee="right-scroll-bar-position",te="width-before-scroll-bar",Dn="with-scroll-bars-hidden",_n="--removed-body-scroll-bar-size";function ve(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function On(e,t){var n=s.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=t,n.facade}var Ln=typeof window<"u"?s.useLayoutEffect:s.useEffect,Ve=new WeakMap;function Fn(e,t){var n=On(null,function(o){return e.forEach(function(a){return ve(a,o)})});return Ln(function(){var o=Ve.get(n);if(o){var a=new Set(o),i=new Set(e),l=n.current;a.forEach(function(c){i.has(c)||ve(c,null)}),i.forEach(function(c){a.has(c)||ve(c,l)})}Ve.set(n,e)},[e]),n}function Bn(e){return e}function Kn(e,t){t===void 0&&(t=Bn);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,o);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(i){for(o=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){o=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(i),l=n}var d=function(){var f=l;l=[],f.forEach(i)},x=function(){return Promise.resolve().then(d)};x(),n={push:function(f){l.push(f),x()},filter:function(f){return l=l.filter(f),n}}}};return a}function Wn(e){e===void 0&&(e={});var t=Kn(null);return t.options=D({async:!0,ssr:!1},e),t}var nt=function(e){var t=e.sideCar,n=tt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return s.createElement(o,D({},n))};nt.isSideCarExport=!0;function Vn(e,t){return e.useMedium(t),nt}var ot=Wn(),he=function(){},ie=s.forwardRef(function(e,t){var n=s.useRef(null),o=s.useState({onScrollCapture:he,onWheelCapture:he,onTouchMoveCapture:he}),a=o[0],i=o[1],l=e.forwardProps,c=e.children,d=e.className,x=e.removeScrollBar,f=e.enabled,v=e.shards,w=e.sideCar,y=e.noRelative,N=e.noIsolation,u=e.inert,h=e.allowPinchZoom,b=e.as,C=b===void 0?"div":b,m=e.gapMode,p=tt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),g=w,j=Fn([n,t]),k=D(D({},p),a);return s.createElement(s.Fragment,null,f&&s.createElement(g,{sideCar:ot,removeScrollBar:x,shards:v,noRelative:y,noIsolation:N,inert:u,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:m}),l?s.cloneElement(s.Children.only(c),D(D({},k),{ref:j})):s.createElement(C,D({},k,{className:d,ref:j}),c))});ie.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ie.classNames={fullWidth:te,zeroRight:ee};var $n=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$n();return t&&e.setAttribute("nonce",t),e}function Gn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hn(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Un=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zn())&&(Gn(t,n),Hn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qn=function(){var e=Un();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rt=function(){var e=qn(),t=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return t},Yn={left:0,top:0,right:0,gap:0},me=function(e){return parseInt(e||"",10)||0},Xn=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[me(n),me(o),me(a)]},Qn=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Yn;var t=Xn(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Zn=rt(),G="data-scroll-locked",Jn=function(e,t,n,o){var a=e.left,i=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Dn,` {
overflow: hidden `).concat(o,`;
padding-right: `).concat(c,"px ").concat(o,`;
}
body[`).concat(G,`] {
overflow: hidden `).concat(o,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
padding-left: `.concat(a,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(l,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(c,"px ").concat(o,`;
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),`
}
.`).concat(ee,` {
right: `).concat(c,"px ").concat(o,`;
}
.`).concat(te,` {
margin-right: `).concat(c,"px ").concat(o,`;
}
.`).concat(ee," .").concat(ee,` {
right: 0 `).concat(o,`;
}
.`).concat(te," .").concat(te,` {
margin-right: 0 `).concat(o,`;
}
body[`).concat(G,`] {
`).concat(_n,": ").concat(c,`px;
}
`)},$e=function(){var e=parseInt(document.body.getAttribute(G)||"0",10);return isFinite(e)?e:0},eo=function(){s.useEffect(function(){return document.body.setAttribute(G,($e()+1).toString()),function(){var e=$e()-1;e<=0?document.body.removeAttribute(G):document.body.setAttribute(G,e.toString())}},[])},to=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;eo();var i=s.useMemo(function(){return Qn(a)},[a]);return s.createElement(Zn,{styles:Jn(i,!t,a,n?"":"!important")})},xe=!1;if(typeof window<"u")try{var X=Object.defineProperty({},"passive",{get:function(){return xe=!0,!0}});window.addEventListener("test",X,X),window.removeEventListener("test",X,X)}catch{xe=!1}var V=xe?{passive:!1}:!1,no=function(e){return e.tagName==="TEXTAREA"},at=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!no(e)&&n[t]==="visible")},oo=function(e){return at(e,"overflowY")},ro=function(e){return at(e,"overflowX")},ze=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=it(e,o);if(a){var i=st(e,o),l=i[1],c=i[2];if(l>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},ao=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},io=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},it=function(e,t){return e==="v"?oo(t):ro(t)},st=function(e,t){return e==="v"?ao(t):io(t)},so=function(e,t){return e==="h"&&t==="rtl"?-1:1},co=function(e,t,n,o,a){var i=so(e,window.getComputedStyle(t).direction),l=i*o,c=n.target,d=t.contains(c),x=!1,f=l>0,v=0,w=0;do{if(!c)break;var y=st(e,c),N=y[0],u=y[1],h=y[2],b=u-h-i*N;(N||b)&&it(e,c)&&(v+=b,w+=N);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(f&&(Math.abs(v)<1||!a)||!f&&(Math.abs(w)<1||!a))&&(x=!0),x},Q=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ge=function(e){return[e.deltaX,e.deltaY]},He=function(e){return e&&"current"in e?e.current:e},lo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uo=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},fo=0,$=[];function vo(e){var t=s.useRef([]),n=s.useRef([0,0]),o=s.useRef(),a=s.useState(fo++)[0],i=s.useState(rt)[0],l=s.useRef(e);s.useEffect(function(){l.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var u=In([e.lockRef.current],(e.shards||[]).map(He),!0).filter(Boolean);return u.forEach(function(h){return h.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),u.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(u,h){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!l.current.allowPinchZoom;var b=Q(u),C=n.current,m="deltaX"in u?u.deltaX:C[0]-b[0],p="deltaY"in u?u.deltaY:C[1]-b[1],g,j=u.target,k=Math.abs(m)>Math.abs(p)?"h":"v";if("touches"in u&&k==="h"&&j.type==="range")return!1;var T=ze(k,j);if(!T)return!0;if(T?g=k:(g=k==="v"?"h":"v",T=ze(k,j)),!T)return!1;if(!o.current&&"changedTouches"in u&&(m||p)&&(o.current=g),!g)return!0;var E=o.current||g;return co(E,h,u,E==="h"?m:p,!0)},[]),d=s.useCallback(function(u){var h=u;if(!(!$.length||$[$.length-1]!==i)){var b="deltaY"in h?Ge(h):Q(h),C=t.current.filter(function(g){return g.name===h.type&&(g.target===h.target||h.target===g.shadowParent)&&lo(g.delta,b)})[0];if(C&&C.should){h.cancelable&&h.preventDefault();return}if(!C){var m=(l.current.shards||[]).map(He).filter(Boolean).filter(function(g){return g.contains(h.target)}),p=m.length>0?c(h,m[0]):!l.current.noIsolation;p&&h.cancelable&&h.preventDefault()}}},[]),x=s.useCallback(function(u,h,b,C){var m={name:u,delta:h,target:b,should:C,shadowParent:ho(b)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(p){return p!==m})},1)},[]),f=s.useCallback(function(u){n.current=Q(u),o.current=void 0},[]),v=s.useCallback(function(u){x(u.type,Ge(u),u.target,c(u,e.lockRef.current))},[]),w=s.useCallback(function(u){x(u.type,Q(u),u.target,c(u,e.lockRef.current))},[]);s.useEffect(function(){return $.push(i),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:w}),document.addEventListener("wheel",d,V),document.addEventListener("touchmove",d,V),document.addEventListener("touchstart",f,V),function(){$=$.filter(function(u){return u!==i}),document.removeEventListener("wheel",d,V),document.removeEventListener("touchmove",d,V),document.removeEventListener("touchstart",f,V)}},[]);var y=e.removeScrollBar,N=e.inert;return s.createElement(s.Fragment,null,N?s.createElement(i,{styles:uo(a)}):null,y?s.createElement(to,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ho(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mo=Vn(ot,vo);var ct=s.forwardRef(function(e,t){return s.createElement(ie,D({},e,{ref:t,sideCar:mo}))});ct.classNames=ie.classNames;var go=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,Z=new WeakMap,J={},ge=0,lt=function(e){return e&&(e.host||lt(e.parentNode))},po=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=lt(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xo=function(e,t,n,o){var a=po(t,Array.isArray(e)?e:[e]);J[n]||(J[n]=new WeakMap);var i=J[n],l=[],c=new Set,d=new Set(a),x=function(v){!v||c.has(v)||(c.add(v),x(v.parentNode))};a.forEach(x);var f=function(v){!v||d.has(v)||Array.prototype.forEach.call(v.children,function(w){if(c.has(w))f(w);else try{var y=w.getAttribute(o),N=y!==null&&y!=="false",u=(z.get(w)||0)+1,h=(i.get(w)||0)+1;z.set(w,u),i.set(w,h),l.push(w),u===1&&N&&Z.set(w,!0),h===1&&w.setAttribute(n,"true"),N||w.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",w,b)}})};return f(t),c.clear(),ge++,function(){l.forEach(function(v){var w=z.get(v)-1,y=i.get(v)-1;z.set(v,w),i.set(v,y),w||(Z.has(v)||v.removeAttribute(o),Z.delete(v)),y||v.removeAttribute(n)}),ge--,ge||(z=new WeakMap,z=new WeakMap,Z=new WeakMap,J={})}},bo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=go(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),xo(o,a,n,"aria-hidden")):function(){return null}},se="Dialog",[ut,fr]=Ye(se),[wo,I]=ut(se),dt=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,c=s.useRef(null),d=s.useRef(null),[x,f]=Re({prop:o,defaultProp:a??!1,onChange:i,caller:se});return r.jsx(wo,{scope:t,triggerRef:c,contentRef:d,contentId:Y(),titleId:Y(),descriptionId:Y(),open:x,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(v=>!v),[f]),modal:l,children:n})};dt.displayName=se;var ft="DialogTrigger",vt=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,a=I(ft,n),i=O(t,a.triggerRef);return r.jsx(M.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Se(a.open),...o,ref:i,onClick:S(e.onClick,a.onOpenToggle)})});vt.displayName=ft;var je="DialogPortal",[yo,ht]=ut(je,{forceMount:void 0}),mt=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=I(je,t);return r.jsx(yo,{scope:t,forceMount:n,children:s.Children.map(o,l=>r.jsx(K,{present:n||i.open,children:r.jsx(dn,{asChild:!0,container:a,children:l})}))})};mt.displayName=je;var re="DialogOverlay",gt=s.forwardRef((e,t)=>{const n=ht(re,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,i=I(re,e.__scopeDialog);return i.modal?r.jsx(K,{present:o||i.open,children:r.jsx(Co,{...a,ref:t})}):null});gt.displayName=re;var No=fn("DialogOverlay.RemoveScroll"),Co=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,a=I(re,n);return r.jsx(ct,{as:No,allowPinchZoom:!0,shards:[a.contentRef],children:r.jsx(M.div,{"data-state":Se(a.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),B="DialogContent",pt=s.forwardRef((e,t)=>{const n=ht(B,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,i=I(B,e.__scopeDialog);return r.jsx(K,{present:o||i.open,children:i.modal?r.jsx(Eo,{...a,ref:t}):r.jsx(Ro,{...a,ref:t})})});pt.displayName=B;var Eo=s.forwardRef((e,t)=>{const n=I(B,e.__scopeDialog),o=s.useRef(null),a=O(t,n.contentRef,o);return s.useEffect(()=>{const i=o.current;if(i)return bo(i)},[]),r.jsx(xt,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:S(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:S(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&i.preventDefault()}),onFocusOutside:S(e.onFocusOutside,i=>i.preventDefault())})}),Ro=s.forwardRef((e,t)=>{const n=I(B,e.__scopeDialog),o=s.useRef(!1),a=s.useRef(!1);return r.jsx(xt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(o.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:i=>{var d,x;(d=e.onInteractOutside)==null||d.call(e,i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;((x=n.triggerRef.current)==null?void 0:x.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),xt=s.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=e,c=I(B,n),d=s.useRef(null),x=O(t,d);return An(),r.jsxs(r.Fragment,{children:[r.jsx(Je,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:r.jsx(Xe,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Se(c.open),...l,ref:x,onDismiss:()=>c.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(jo,{titleId:c.titleId}),r.jsx(So,{contentRef:d,descriptionId:c.descriptionId})]})]})}),ke="DialogTitle",bt=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,a=I(ke,n);return r.jsx(M.h2,{id:a.titleId,...o,ref:t})});bt.displayName=ke;var wt="DialogDescription",yt=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,a=I(wt,n);return r.jsx(M.p,{id:a.descriptionId,...o,ref:t})});yt.displayName=wt;var Nt="DialogClose",Ct=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,a=I(Nt,n);return r.jsx(M.button,{type:"button",...o,ref:t,onClick:S(e.onClick,()=>a.onOpenChange(!1))})});Ct.displayName=Nt;function Se(e){return e?"open":"closed"}var Et="DialogTitleWarning",[vr,Rt]=un(Et,{contentName:B,titleName:ke,docsSlug:"dialog"}),jo=({titleId:e})=>{const t=Rt(Et),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ko="DialogDescriptionWarning",So=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rt(ko).contentName}}.`;return s.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Mo=dt,To=vt,Po=mt,jt=gt,kt=pt,St=bt,Mt=yt,Ao=Ct;const Io=Mo,Do=To,_o=Po,Tt=s.forwardRef(({className:e,...t},n)=>r.jsx(jt,{className:A("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Tt.displayName=jt.displayName;const Oo=Qe("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Pt=s.forwardRef(({side:e="right",className:t,children:n,...o},a)=>r.jsxs(_o,{children:[r.jsx(Tt,{}),r.jsxs(kt,{ref:a,className:A(Oo({side:e}),t),...o,children:[n,r.jsxs(Ao,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(vn,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Pt.displayName=kt.displayName;const Lo=s.forwardRef(({className:e,...t},n)=>r.jsx(St,{ref:n,className:A("text-lg font-semibold text-foreground",e),...t}));Lo.displayName=St.displayName;const Fo=s.forwardRef(({className:e,...t},n)=>r.jsx(Mt,{ref:n,className:A("text-sm text-muted-foreground",e),...t}));Fo.displayName=Mt.displayName;var Bo=s.createContext(void 0);function Ko(e){const t=s.useContext(Bo);return e||t||"ltr"}function Wo(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var W="NavigationMenu",[Me,At,Vo]=Ze(W),[be,$o,zo]=Ze(W),[Te,hr]=Ye(W,[Vo,zo]),[Go,P]=Te(W),[Ho,Uo]=Te(W),It=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:a,defaultValue:i,delayDuration:l=200,skipDelayDuration:c=300,orientation:d="horizontal",dir:x,...f}=e,[v,w]=s.useState(null),y=O(t,E=>w(E)),N=Ko(x),u=s.useRef(0),h=s.useRef(0),b=s.useRef(0),[C,m]=s.useState(!0),[p,g]=Re({prop:o,onChange:E=>{const F=E!=="",ce=c>0;F?(window.clearTimeout(b.current),ce&&m(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>m(!0),c)),a==null||a(E)},defaultProp:i??"",caller:W}),j=s.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>g(""),150)},[g]),k=s.useCallback(E=>{window.clearTimeout(h.current),g(E)},[g]),T=s.useCallback(E=>{p===E?window.clearTimeout(h.current):u.current=window.setTimeout(()=>{window.clearTimeout(h.current),g(E)},l)},[p,g,l]);return s.useEffect(()=>()=>{window.clearTimeout(u.current),window.clearTimeout(h.current),window.clearTimeout(b.current)},[]),r.jsx(Dt,{scope:n,isRootMenu:!0,value:p,dir:N,orientation:d,rootNavigationMenu:v,onTriggerEnter:E=>{window.clearTimeout(u.current),C?T(E):k(E)},onTriggerLeave:()=>{window.clearTimeout(u.current),j()},onContentEnter:()=>window.clearTimeout(h.current),onContentLeave:j,onItemSelect:E=>{g(F=>F===E?"":E)},onItemDismiss:()=>g(""),children:r.jsx(M.nav,{"aria-label":"Main","data-orientation":d,dir:N,...f,ref:y})})});It.displayName=W;var we="NavigationMenuSub",qo=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:a,defaultValue:i,orientation:l="horizontal",...c}=e,d=P(we,n),[x,f]=Re({prop:o,onChange:a,defaultProp:i??"",caller:we});return r.jsx(Dt,{scope:n,isRootMenu:!1,value:x,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:v=>f(v),onItemSelect:v=>f(v),onItemDismiss:()=>f(""),children:r.jsx(M.div,{"data-orientation":l,...c,ref:t})})});qo.displayName=we;var Dt=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:a,orientation:i,children:l,value:c,onItemSelect:d,onItemDismiss:x,onTriggerEnter:f,onTriggerLeave:v,onContentEnter:w,onContentLeave:y}=e,[N,u]=s.useState(null),[h,b]=s.useState(new Map),[C,m]=s.useState(null);return r.jsx(Go,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:c,previousValue:Wo(c),baseId:Y(),dir:a,orientation:i,viewport:N,onViewportChange:u,indicatorTrack:C,onIndicatorTrackChange:m,onTriggerEnter:_(f),onTriggerLeave:_(v),onContentEnter:_(w),onContentLeave:_(y),onItemSelect:_(d),onItemDismiss:_(x),onViewportContentChange:s.useCallback((p,g)=>{b(j=>(j.set(p,g),new Map(j)))},[]),onViewportContentRemove:s.useCallback(p=>{b(g=>g.has(p)?(g.delete(p),new Map(g)):g)},[]),children:r.jsx(Me.Provider,{scope:t,children:r.jsx(Ho,{scope:t,items:h,children:l})})})},_t="NavigationMenuList",Ot=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=P(_t,n),i=r.jsx(M.ul,{"data-orientation":a.orientation,...o,ref:t});return r.jsx(M.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:r.jsx(Me.Slot,{scope:n,children:a.isRootMenu?r.jsx(Ht,{asChild:!0,children:i}):i})})});Ot.displayName=_t;var Lt="NavigationMenuItem",[Yo,Ft]=Te(Lt),Bt=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,...a}=e,i=Y(),l=o||i||"LEGACY_REACT_AUTO_VALUE",c=s.useRef(null),d=s.useRef(null),x=s.useRef(null),f=s.useRef(()=>{}),v=s.useRef(!1),w=s.useCallback((N="start")=>{if(c.current){f.current();const u=Ne(c.current);u.length&&Ie(N==="start"?u:u.reverse())}},[]),y=s.useCallback(()=>{if(c.current){const N=Ne(c.current);N.length&&(f.current=nr(N))}},[]);return r.jsx(Yo,{scope:n,value:l,triggerRef:d,contentRef:c,focusProxyRef:x,wasEscapeCloseRef:v,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:y,onContentFocusOutside:y,children:r.jsx(M.li,{...a,ref:t})})});Bt.displayName=Lt;var ye="NavigationMenuTrigger",Kt=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:o,...a}=e,i=P(ye,e.__scopeNavigationMenu),l=Ft(ye,e.__scopeNavigationMenu),c=s.useRef(null),d=O(c,l.triggerRef,t),x=qt(i.baseId,l.value),f=Yt(i.baseId,l.value),v=s.useRef(!1),w=s.useRef(!1),y=l.value===i.value;return r.jsxs(r.Fragment,{children:[r.jsx(Me.ItemSlot,{scope:n,value:l.value,children:r.jsx(Ut,{asChild:!0,children:r.jsx(M.button,{id:x,disabled:o,"data-disabled":o?"":void 0,"data-state":De(y),"aria-expanded":y,"aria-controls":f,...a,ref:d,onPointerEnter:S(e.onPointerEnter,()=>{w.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:S(e.onPointerMove,ae(()=>{o||w.current||l.wasEscapeCloseRef.current||v.current||(i.onTriggerEnter(l.value),v.current=!0)})),onPointerLeave:S(e.onPointerLeave,ae(()=>{o||(i.onTriggerLeave(),v.current=!1)})),onClick:S(e.onClick,()=>{i.onItemSelect(l.value),w.current=y}),onKeyDown:S(e.onKeyDown,N=>{const h={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];y&&N.key===h&&(l.onEntryKeyDown(),N.preventDefault())})})})}),y&&r.jsxs(r.Fragment,{children:[r.jsx(hn,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:N=>{const u=l.contentRef.current,h=N.relatedTarget,b=h===c.current,C=u==null?void 0:u.contains(h);(b||!C)&&l.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&r.jsx("span",{"aria-owns":f})]})]})});Kt.displayName=ye;var Xo="NavigationMenuLink",Ue="navigationMenu.linkSelect",Wt=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:o,onSelect:a,...i}=e;return r.jsx(Ut,{asChild:!0,children:r.jsx(M.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...i,ref:t,onClick:S(e.onClick,l=>{const c=l.target,d=new CustomEvent(Ue,{bubbles:!0,cancelable:!0});if(c.addEventListener(Ue,x=>a==null?void 0:a(x),{once:!0}),Oe(c,d),!d.defaultPrevented&&!l.metaKey){const x=new CustomEvent(ne,{bubbles:!0,cancelable:!0});Oe(c,x)}},{checkForDefaultPrevented:!1})})})});Wt.displayName=Xo;var Pe="NavigationMenuIndicator",Vt=s.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=P(Pe,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?mn.createPortal(r.jsx(K,{present:n||i,children:r.jsx(Qo,{...o,ref:t})}),a.indicatorTrack):null});Vt.displayName=Pe;var Qo=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=P(Pe,n),i=At(n),[l,c]=s.useState(null),[d,x]=s.useState(null),f=a.orientation==="horizontal",v=!!a.value;s.useEffect(()=>{var u;const N=(u=i().find(h=>h.value===a.value))==null?void 0:u.ref.current;N&&c(N)},[i,a.value]);const w=()=>{l&&x({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return Ce(l,w),Ce(a.indicatorTrack,w),d?r.jsx(M.div,{"aria-hidden":!0,"data-state":v?"visible":"hidden","data-orientation":a.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...o.style}}):null}),H="NavigationMenuContent",$t=s.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=P(H,e.__scopeNavigationMenu),i=Ft(H,e.__scopeNavigationMenu),l=O(i.contentRef,t),c=i.value===a.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...o};return a.viewport?r.jsx(Zo,{forceMount:n,...d,ref:l}):r.jsx(K,{present:n||c,children:r.jsx(zt,{"data-state":De(c),...d,ref:l,onPointerEnter:S(e.onPointerEnter,a.onContentEnter),onPointerLeave:S(e.onPointerLeave,ae(a.onContentLeave)),style:{pointerEvents:!c&&a.isRootMenu?"none":void 0,...d.style}})})});$t.displayName=H;var Zo=s.forwardRef((e,t)=>{const n=P(H,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:a}=n;return oe(()=>{o(e.value,{ref:t,...e})},[e,t,o]),oe(()=>()=>a(e.value),[e.value,a]),null}),ne="navigationMenu.rootContentDismiss",zt=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,triggerRef:a,focusProxyRef:i,wasEscapeCloseRef:l,onRootContentClose:c,onContentFocusOutside:d,...x}=e,f=P(H,n),v=s.useRef(null),w=O(v,t),y=qt(f.baseId,o),N=Yt(f.baseId,o),u=At(n),h=s.useRef(null),{onItemDismiss:b}=f;s.useEffect(()=>{const m=v.current;if(f.isRootMenu&&m){const p=()=>{var g;b(),c(),m.contains(document.activeElement)&&((g=a.current)==null||g.focus())};return m.addEventListener(ne,p),()=>m.removeEventListener(ne,p)}},[f.isRootMenu,e.value,a,b,c]);const C=s.useMemo(()=>{const p=u().map(F=>F.value);f.dir==="rtl"&&p.reverse();const g=p.indexOf(f.value),j=p.indexOf(f.previousValue),k=o===f.value,T=j===p.indexOf(o);if(!k&&!T)return h.current;const E=(()=>{if(g!==j){if(k&&j!==-1)return g>j?"from-end":"from-start";if(T&&g!==-1)return g>j?"to-start":"to-end"}return null})();return h.current=E,E},[f.previousValue,f.value,f.dir,u,o]);return r.jsx(Ht,{asChild:!0,children:r.jsx(Xe,{id:N,"aria-labelledby":y,"data-motion":C,"data-orientation":f.orientation,...x,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var p;const m=new Event(ne,{bubbles:!0,cancelable:!0});(p=v.current)==null||p.dispatchEvent(m)},onFocusOutside:S(e.onFocusOutside,m=>{var g;d();const p=m.target;(g=f.rootNavigationMenu)!=null&&g.contains(p)&&m.preventDefault()}),onPointerDownOutside:S(e.onPointerDownOutside,m=>{var k;const p=m.target,g=u().some(T=>{var E;return(E=T.ref.current)==null?void 0:E.contains(p)}),j=f.isRootMenu&&((k=f.viewport)==null?void 0:k.contains(p));(g||j||!f.isRootMenu)&&m.preventDefault()}),onKeyDown:S(e.onKeyDown,m=>{var j;const p=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!p){const k=Ne(m.currentTarget),T=document.activeElement,E=k.findIndex(cn=>cn===T),ce=m.shiftKey?k.slice(0,E).reverse():k.slice(E+1,k.length);Ie(ce)?m.preventDefault():(j=i.current)==null||j.focus()}}),onEscapeKeyDown:S(e.onEscapeKeyDown,m=>{l.current=!0})})})}),Ae="NavigationMenuViewport",Gt=s.forwardRef((e,t)=>{const{forceMount:n,...o}=e,i=!!P(Ae,e.__scopeNavigationMenu).value;return r.jsx(K,{present:n||i,children:r.jsx(Jo,{...o,ref:t})})});Gt.displayName=Ae;var Jo=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:o,...a}=e,i=P(Ae,n),l=O(t,i.onViewportChange),c=Uo(H,e.__scopeNavigationMenu),[d,x]=s.useState(null),[f,v]=s.useState(null),w=d?(d==null?void 0:d.width)+"px":void 0,y=d?(d==null?void 0:d.height)+"px":void 0,N=!!i.value,u=N?i.value:i.previousValue;return Ce(f,()=>{f&&x({width:f.offsetWidth,height:f.offsetHeight})}),r.jsx(M.div,{"data-state":De(N),"data-orientation":i.orientation,...a,ref:l,style:{pointerEvents:!N&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":y,...a.style},onPointerEnter:S(e.onPointerEnter,i.onContentEnter),onPointerLeave:S(e.onPointerLeave,ae(i.onContentLeave)),children:Array.from(c.items).map(([b,{ref:C,forceMount:m,...p}])=>{const g=u===b;return r.jsx(K,{present:m||g,children:r.jsx(zt,{...p,ref:gn(C,j=>{g&&j&&v(j)})})},b)})})}),er="FocusGroup",Ht=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=P(er,n);return r.jsx(be.Provider,{scope:n,children:r.jsx(be.Slot,{scope:n,children:r.jsx(M.div,{dir:a.dir,...o,ref:t})})})}),qe=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],tr="FocusGroupItem",Ut=s.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=$o(n),i=P(tr,n);return r.jsx(be.ItemSlot,{scope:n,children:r.jsx(M.button,{...o,ref:t,onKeyDown:S(e.onKeyDown,l=>{if(["Home","End",...qe].includes(l.key)){let d=a().map(v=>v.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(l.key)&&d.reverse(),qe.includes(l.key)){const v=d.indexOf(l.currentTarget);d=d.slice(v+1)}setTimeout(()=>Ie(d)),l.preventDefault()}})})})});function Ne(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ie(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function nr(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Ce(e,t){const n=_(t);oe(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}function De(e){return e?"open":"closed"}function qt(e,t){return`${e}-trigger-${t}`}function Yt(e,t){return`${e}-content-${t}`}function ae(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Xt=It,Qt=Ot,or=Bt,Zt=Kt,rr=Wt,Jt=Vt,en=$t,tn=Gt;const nn=s.forwardRef(({className:e,children:t,...n},o)=>r.jsxs(Xt,{ref:o,className:A("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,r.jsx(sn,{})]}));nn.displayName=Xt.displayName;const on=s.forwardRef(({className:e,...t},n)=>r.jsx(Qt,{ref:n,className:A("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));on.displayName=Qt.displayName;const ar=or,ir=Qe("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),rn=s.forwardRef(({className:e,children:t,...n},o)=>r.jsxs(Zt,{ref:o,className:A(ir(),"group",e),...n,children:[t," ",r.jsx(xn,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));rn.displayName=Zt.displayName;const an=s.forwardRef(({className:e,...t},n)=>r.jsx(en,{ref:n,className:A("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));an.displayName=en.displayName;const sr=rr,sn=s.forwardRef(({className:e,...t},n)=>r.jsx("div",{className:A("absolute left-0 top-full flex justify-center"),children:r.jsx(tn,{className:A("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));sn.displayName=tn.displayName;const cr=s.forwardRef(({className:e,...t},n)=>r.jsx(Jt,{ref:n,className:A("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:r.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));cr.displayName=Jt.displayName;const _e="https://www.connies-bailbonds.com",mr=`${_e}/#organization`,gr=`${_e}/#service`,pr=e=>`${_e}/${e}#place`,Ee=[{name:"Fort Payne",slug:"fort-payne",state:"Alabama",stateAbbrev:"AL",zipCodes:["35967","35968"],county:"DeKalb",geo:{lat:"34.4443",lng:"-85.7197"},population:"14000",neighborhoods:["Pine Ridge","Fisher Crossroads","Adamsburg","Dogtown","Douglas","Terrapin Hills"],jailName:"DeKalb County Detention Center",jailPhone:"(256) 845-3801"},{name:"Rainsville",slug:"rainsville",state:"Alabama",stateAbbrev:"AL",zipCodes:["35986"],county:"DeKalb",geo:{lat:"34.4942",lng:"-85.8486"},population:"5000",neighborhoods:["Caney Creek","Eastside","Grand Estates","Kc Subdivision","Kilgore","Lakeview Terrace","Shiloh","Rainbow Subdivision","The Pines","Peaceful Acres","Edgewood","S. Estates"]},{name:"Henagar",slug:"henagar",state:"Alabama",stateAbbrev:"AL",zipCodes:["35978"],county:"DeKalb",geo:{lat:"34.6356",lng:"-85.7694"},population:"2500",neighborhoods:["Andrew Lee","Bellview","Biddle","Brookfield","Brown Town","Central","Cherokee","Woodview"]},{name:"Fyffe",slug:"fyffe",state:"Alabama",stateAbbrev:"AL",zipCodes:["35971"],county:"DeKalb",geo:{lat:"34.4470",lng:"-85.9036"},population:"1000",neighborhoods:["Gibson Crossroads","Moores Crossroads","Luttrell","Guest","Ten Broeck","McKestes","Lydia","Chigger Hill","South Hill","Lakeview"]},{name:"Pisgah",slug:"pisgah",state:"Alabama",stateAbbrev:"AL",zipCodes:["35765"],county:"DeKalb",geo:{lat:"34.6881",lng:"-85.8342"},population:"700",neighborhoods:["Gorhams Bluff","Oak Grove","Rosalie","Metcalf","County Road","Sand Mountain","Brow","Central"]},{name:"Valley Head",slug:"valley-head",state:"Alabama",stateAbbrev:"AL",zipCodes:["35989"],county:"DeKalb",geo:{lat:"34.5692",lng:"-85.6197"},population:"550",neighborhoods:["Oakdale","Co Rd 728","Holder Loop","Lil Mole Run","Winston Place","Sequoyah","Manitou","Lookout","Sand Mountain","DeSoto","Canyon","Brow"]},{name:"Centre",slug:"centre",state:"Alabama",stateAbbrev:"AL",zipCodes:["35960"],county:"Cherokee",geo:{lat:"34.1626",lng:"-85.6788"},population:"3600",neighborhoods:["Brooks Estates","Turkey Town","Big Nose Creek Subdivision","Spring Garden","Brookstone","Mirror Lake"],jailName:"Cherokee County Detention Center",jailPhone:"(256) 927-3565"}],xr=e=>Ee.find(t=>t.slug===e),pe={richard:{name:"Richard",number:"256-601-2041"},connie:{name:"Connie",number:"256-630-2824"},toni:{name:"Toni",number:"256-440-0822"}},br=()=>{const[e,t]=s.useState(!1);return r.jsxs("header",{className:"sticky top-0 z-50 w-full bg-black border-b-2 border-brand-red shadow-lg",children:[r.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:z-50 focus:px-4 focus:py-2 focus:bg-brand-red focus:text-white focus:font-bold focus:rounded",children:"Skip to main content"}),r.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-7xl",children:r.jsxs("div",{className:"flex h-20 items-center justify-between",children:[r.jsx(R,{to:"/",className:"flex items-center",children:r.jsx("h1",{className:"text-2xl md:text-3xl font-black text-white uppercase tracking-tight hover:text-brand-red transition-colors sm:whitespace-nowrap",children:"CONNIE'S BAIL BONDING"})}),r.jsxs("nav",{className:"hidden md:flex items-center gap-6","aria-label":"Main navigation",children:[r.jsx(R,{to:"/",className:"text-sm font-bold text-white tracking-wide hover:text-brand-red transition-colors","aria-label":"Go to homepage",children:"Home"}),r.jsx(R,{to:"/about",className:"text-sm font-bold text-white tracking-wide hover:text-brand-red transition-colors","aria-label":"Learn about Connie's Bail Bonding",children:"About"}),r.jsx(R,{to:"/contact",className:"text-sm font-bold text-white tracking-wide hover:text-brand-red transition-colors","aria-label":"Contact us",children:"Contact"}),r.jsx(R,{to:"/faq",className:"text-sm font-bold text-white tracking-wide hover:text-brand-red transition-colors","aria-label":"Frequently asked questions",children:"FAQ"}),r.jsx(R,{to:"/bail-bonds-guide",className:"text-sm font-bold text-white tracking-wide hover:text-brand-red transition-colors","aria-label":"Read our bail bonds guide",children:"Bail Guide"}),r.jsx(nn,{children:r.jsx(on,{children:r.jsxs(ar,{children:[r.jsx(rn,{className:"text-sm font-bold text-white tracking-wide hover:text-brand-red bg-transparent",children:"Cities"}),r.jsx(an,{children:r.jsx("div",{className:"grid w-[300px] gap-1 p-2 bg-black border-brand-red border-2",children:Ee.map(n=>r.jsx(sr,{asChild:!0,children:r.jsx(R,{to:`/${n.slug}`,className:"block rounded p-3 text-white hover:bg-brand-red hover:text-white transition-colors font-medium focus:outline-none focus:ring-2 focus:ring-brand-red focus:ring-offset-2 focus:ring-offset-black",children:n.name})},n.slug))})})]})})}),r.jsxs("a",{href:`tel:${pe.richard.number.replace(/[^0-9]/g,"")}`,className:"flex items-center gap-2 px-6 py-3 bg-brand-red text-white font-black uppercase text-xs tracking-wider hover:bg-red-600 transition-all hover:scale-105 shadow-lg",children:[r.jsx(q,{className:"w-4 h-4"}),"24/7 Emergency"]})]}),r.jsxs(Io,{open:e,onOpenChange:t,children:[r.jsx(Do,{asChild:!0,className:"md:hidden",children:r.jsxs(pn,{variant:"ghost",size:"icon",className:"text-white hover:text-brand-red hover:bg-white/10","aria-label":"Open mobile menu",children:[r.jsx(Nn,{className:"h-6 w-6"}),r.jsx("span",{className:"sr-only",children:"Menu"})]})}),r.jsx(Pt,{side:"right",className:"w-[300px] bg-black border-l-2 border-brand-red",children:r.jsxs("nav",{className:"flex flex-col gap-4 mt-8",children:[r.jsx(R,{to:"/",className:"text-lg font-bold text-white hover:text-brand-red transition-colors",onClick:()=>t(!1),children:"Home"}),r.jsx(R,{to:"/about",className:"text-lg font-bold text-white hover:text-brand-red transition-colors",onClick:()=>t(!1),children:"About"}),r.jsx(R,{to:"/contact",className:"text-lg font-bold text-white hover:text-brand-red transition-colors",onClick:()=>t(!1),children:"Contact"}),r.jsx(R,{to:"/faq",className:"text-lg font-bold text-white hover:text-brand-red transition-colors",onClick:()=>t(!1),children:"FAQ"}),r.jsx(R,{to:"/bail-bonds-guide",className:"text-lg font-bold text-white hover:text-brand-red transition-colors",onClick:()=>t(!1),children:"Bail Guide"}),r.jsxs("div",{className:"border-t border-white/20 pt-4 mt-2",children:[r.jsx("p",{className:"text-sm font-bold text-white/70 mb-3 uppercase",children:"Cities We Serve"}),r.jsx("div",{className:"flex flex-col gap-2",children:Ee.map(n=>r.jsx(R,{to:`/${n.slug}`,className:"text-base text-white hover:text-brand-red transition-colors pl-2 font-medium",onClick:()=>t(!1),children:n.name},n.slug))})]}),r.jsx("div",{className:"border-t border-white/20 pt-4 mt-2",children:r.jsxs("a",{href:`tel:${pe.richard.number.replace(/[^0-9]/g,"")}`,className:"flex items-center gap-2 text-lg font-bold text-brand-red",children:[r.jsx(q,{className:"w-5 h-5"}),pe.richard.number]})})]})})]})]})})]})};export{bn as C,dr as F,yn as M,br as N,mr as O,q as P,_e as S,ur as a,xn as b,Y as c,Ee as d,pr as e,gr as f,xr as g,pe as p,le as t,Ko as u};