1import{a as d,j as r}from"./query-Ban24u4e.js";import{S as x}from"./radix-ui-BiySu13K.js";import{c as y,a as _}from"./index-BKZp9WWV.js";const C=_("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius-button)] text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-[var(--radius-button)] px-3",lg:"h-11 rounded-[var(--radius-button)] px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),b=d.forwardRef(({className:f,variant:o,size:w,asChild:a=!1,...m},g)=>{const t=a?x:"button";return r.jsx(t,{className:y(C({variant:o,size:w,className:f})),ref:g,...m})});b.displayName="Button";const v="c2_analytics_consent",E=365,h="airo-banner-reset";function S(){if(typeof window>"u"||window.__SCC_INIT__)return;window.__SCC_INIT__=!0,window._signalsDataLayer=window._signalsDataLayer||[];const f="oq6pt2k7ox";window._trfd=window._trfd||[],window._trfd.push({ap:"airo-app-builder",websiteId:f});const o=location.hostname,w=o==="localhost"||o.includes("dev-airoapp")?"https://img1.dev-wsimg.com/signals/js/clients/scc-c2/scc-c2.js":o.includes("test-airoapp")?"https://img1.test-wsimg.com/signals/js/clients/scc-c2/scc-c2.min.js":"https://img1.wsimg.com/signals/js/clients/scc-c2/scc-c2.min.js",a=document.createElement("script");a.src=w,a.async=!0,document.head.appendChild(a);
1const m=(t,n,l,e)=>{window._signalsDataLayer.push({schema:"add_event",version:"v1",data:{eid:t,type:n,event_label:l,custom_properties:{...e}}})},g=t=>t.closest("header")?"header":t.closest("footer")?"footer":t.closest("nav")?"nav":t.closest("main")?"main":"page";document.addEventListener("click",t=>{var u,p,s;if(!window._allowCT)return;const n=(u=t.target)==null?void 0:u.closest('a, button, [role="button"]');if(!n)return;const l=((s=(p=n.textContent)==null?void 0:p.trim())==null?void 0:s.substring(0,100))||"",e=n.href||"",c=n.tagName.toLowerCase()==="a"?"link":"button";let i;if(e)try{i=new URL(e,location.origin).origin!==location.origin}catch{}m("airo.website.click","click",l||c,{element_type:c,element_text:l,element_id:n.id||void 0,section:g(n),page_title:document.title,href:e||void 0,is_external:e?i:void 0})},!0)}function j(){const[f,o]=d.useState(!1),[w,a]=d.useState(!1),m=typeof window<"u"&&window.parent!==window,[g,t]=d.useState(()=>{if(!m)return!1;try{return sessionStorage.getItem(h)!=="true"}catch(e){return console.warn("CookieBanner: sessionStorage unavailable, banner state will not persist across remounts:",e instanceof Error?e.message:String(e)),!0}});d.useEffect(function(){if(typeof window>"u")return;S();const c=localStorage.getItem(v);if(!c){o(!0),a(!0);return}try{const i=JSON.parse(c);(Date.now()-i.timestamp)/(1e3*60*60*24)>E?(localStorage.removeItem(v),o(!0)):window._allowCT=i.analytics}catch{localStorage.removeItem(v),o(!0)}a(!0)},[]);function n(e){localStorage.setItem(v,JSON.stringify({analytics:e,timestamp:Date.now()})),window._allowCT=e,window.dispatchEvent(new CustomEvent("cookie-consent-changed",{detail:{consented:e}})),o(!1)}function l(){typeof window>"u"||(localStorage.removeItem(v),window._allowCT=!1,window.dispatchEvent(new CustomEvent("cookie-consent-changed",{detail:{consented:!1}})),o(!0))}return d.useEffect(function(){if(!(typeof window>"u"))return window.revokeAnalyticsConsent=l,()=>{delete window.revokeAnalyticsConsent}},[]),d.useEffect(function(){if(typeof window>"u"||window.parent===window)return;function c(i){var u,p;if(i.source===window.parent){if(((u=i.data)==null?void 0:u.type)==="INITIAL_BUILD_COMPLETE"){n(!0),t(!0);try{sessionStorage.removeItem(h)}catch(s){console.warn("CookieBanner: sessionStorage unavailable, could not clear reset flag:",s instanceof Error?s.message:String(s))}}if(((p=i.data)==null?void 0:p.type)==="RESET_INITIAL_BUILD_HIDE"){t(!1);try{sessionStorage.setItem(h,"true")}catch(s){console.warn("CookieBanner: sessionStorage unavailable, reset flag will not persist:",s instanceof Error?s.message:String(s))}}}}return window.addEventListener("message",c),()=>window.removeEventListener("message",c)},[]),g||!w||!f?null:r.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-white border-t border-gray-200 shadow-lg",role:"alertdialog","aria-live":"polite","aria-label":"Cookie consent banner","aria-describedby":"cookie-banner-description","data-airo-non-editable":!0,children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8",children:r.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("h3",{className:"text-sm font-semibold text-gray-900 mb-1",children:"Cookie Consent"}),r.jsx("p",{id:"cookie-banner-description",className:"text-sm text-gray-600",children:"We serve cookies. We use tools, such as cookies, to enable essential services and functionality on our site and to collect data on how visitors interact with our site, products and services. By clicking Accept, you agree to our use of these tools for advertising, analytics and support."})]}),r.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[r.jsx(b,{size:"sm",variant:"outline",onClick:()=>n(!1),className:"whitespace-nowrap border-gray-700 text-gray-900 hover:bg-gray-100",children:"Decline"}),r.jsx(b,{size:"sm",onClick:()=>n(!0),className:"whitespace-nowrap",autoFocus:!0,children:"Accept"})]})]})})})}export{j as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.