1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1873],{260:(e,t,a)=>{a.d(t,{d:()=>i});var r=a(65542),s=a(86790),o=a(66277),n=a(36960);let i=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.bL,{className:(0,n.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...s,ref:t,children:(0,r.jsx)(o.zi,{className:(0,n.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});i.displayName=o.bL.displayName},13392:(e,t,a)=>{a.d(t,{Sf:()=>s,Sg:()=>d,_k:()=>o,l5:()=>r,tb:()=>n}),Object.freeze(["control","challenger"]),Object.freeze(["mobile","desktop","unknown"]),Object.freeze([...Object.freeze(["exposure","cta_click"]),"registration"]),Object.freeze(["da-DK","de-DE","en-US","es-ES","fr-FR","it-IT","nl-NL","pl-PL","ro-RO"]);let r="home_hero_v1",s="buy_page_hero_v1",o="smm_home_hero_v1",n="smm_buy_page_hero_v1";function i(e){return Object.freeze({state:"draft",controlAllocation:.5,challengerAllocation:.5,challengerImplemented:!1,requiredSamplePerVariant:null,challengerRequiredLocalizedKeys:Object.freeze([]),...e})}let c=i({key:r,label:"Homepage hero",cookieName:o,deploymentFlag:"HOME_HERO_EXPERIMENT_ENABLED",htmlAttribute:"data-home-hero-variant",ctaSelector:"[data-home-hero-cta]",bootstrapId:"smm-home-hero-v1-bootstrap",state:"active",challengerImplemented:!0,requiredSamplePerVariant:5e3}),l=new Map(Object.freeze([c,i({key:s,label:"Buy-page hero",cookieName:n,deploymentFlag:"BUY_PAGE_HERO_EXPERIMENT_ENABLED",htmlAttribute:"data-buy-page-hero-variant",ctaSelector:"[data-buy-page-hero-cta]",bootstrapId:"smm-buy-page-hero-v1-bootstrap",requiredSamplePerVariant:5e3})]).map(e=>[e.key,e]));function d(e){return l.get(e)||null}Object.freeze([["pages","home","hero","heading"],["pages","home","hero","subHeading"],["pages","home","register"],["pages","home","sidebar","automateSocial","heading"],["pages","home","sidebar","automateSocial","subHeading"],["pages","home","sidebar","placeOrder","heading"],["pages","home","sidebar","placeOrder","subHeading"],["pages","home","sidebar","placeOrder","linkText"],["pages","home","sidebar","placeOrder","popout1"],["pages","home","sidebar","placeOrder","popout2"],["pages","home","sidebar","placeOrder","button"],["pages","home","sidebar","placeOrder","itemLeft1","name"],["pages","home","sidebar","placeOrder","itemLeft1","de
1scription"],["pages","home","sidebar","placeOrder","itemLeft2","name"],["pages","home","sidebar","placeOrder","itemLeft2","description"],["pages","home","sidebar","chooseSocial"],["pages","home","sidebar","yourOrder","heading"],["pages","home","sidebar","yourOrder","subHeading"],["pages","home","sidebar","yourOrder","button"],["pages","home","sidebar","yourOrder","itemRight1","name"],["pages","home","sidebar","yourOrder","itemRight1","description"],["pages","home","sidebar","yourOrder","itemRight2","name"],["pages","home","sidebar","yourOrder","itemRight2","description"],["pages","home","sidebar","yourOrder","itemRight3","name"],["pages","home","sidebar","yourOrder","itemRight3","description"],["generic","heroTrust","rating"],["generic","heroTrust","customerCount"],["generic","heroTrust","ordersDelivered"]])},34924:(e,t,a)=>{a.d(t,{Cf:()=>m,Es:()=>g,L3:()=>y,c7:()=>p,lG:()=>c,rr:()=>h,zM:()=>l});var r=a(65542),s=a(86790),o=a(27319),n=a(57598),i=a(36960);let c=o.bL,l=o.l9,d=o.ZL;o.bm;let u=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-[10020] 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",a),...s})});u.displayName=o.hJ.displayName;let m=s.forwardRef((e,t)=>{let{className:a,children:s,closeLabel:c="Close",...l}=e;return(0,r.jsxs)(d,{children:[(0,r.jsx)(u,{}),(0,r.jsxs)(o.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-[10020] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...l,children:[s,(0,r.jsxs)(o.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(n.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:c})]})]})]})});m.displayName=o.UC.displayName;let p=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};p.displayName="DialogHeader";let g=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};g.displayName="DialogFooter";let y=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",a),...s})});y.displayName=o.hE.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(o.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...s})});h.displayName=o.VY.displayName},36960:(e,t,a)=>{a.d(t,{GJ:()=>c,cn:()=>o,up:()=>i,vv:()=>n});var r=a(29174),s=a(98791);function o(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}let n=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),i=(e,t)=>{let a=(t||"USD").toUpperCase();try{return new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format(e)}catch{return`${a} ${e.toFixed(2)}`}},c=e=>{let t=Math.abs(e),a=2;a=t<.01?5:t<.1?4:t<1?3:2;let r=e.toFixed(a),[s,o]=r.split(".");if(!o)return`$${r}`;let n=o.replace(/0+$/,"");return n.length<2&&(n=n.padEnd(2,"0")),`$${s}.${n}`}},41873:(e,t,a)=>{a.d(t,{ConsentProvider:()=>j,S:()=>S});var r=a(65542),s=a(86790),o=a(88530),n=a(4199),i=a(1016),c=a(64990),l=a(26616),d=a(34924),u=a(260);let m=JSON.parse('[{"id":"smm-consent","provider":"SMM-World","category":"necessary","purposeKey":"consentPreference","domains":["*"],"routes":["*"],"origins":[],"storage":[{"name":"smm_cookie_consent","type":"cookie","durationKey":"sixMonths"}
1]},{"id":"smm-authentication","provider":"SMM-World","category":"necessary","purposeKey":"authentication","domains":["*"],"routes":["/login","/register","/user/*","/api/*"],"origins":[],"storage":[{"name":"session_cookie","type":"cookie","durationKey":"fourteenDays"}]},{"id":"smm-checkout-handoff","provider":"SMM-World","category":"necessary","purposeKey":"checkoutHandoff","domains":["*"],"routes":["/[buyPage]","/login","/register","/user/newOrder","/user/checkout"],"origins":[],"storage":[{"name":"preselect","type":"cookie","durationKey":"session"},{"name":"lastViewedProduct","type":"cookie","durationKey":"sevenDays"},{"name":"pendingCoupon","type":"cookie","durationKey":"twoHours"}]},{"id":"smm-interface-state","provider":"SMM-World","category":"necessary","purposeKey":"interfaceState","domains":["*"],"routes":["*"],"origins":[],"storage":[{"name":"liveFeedDismissedAt","type":"localStorage","durationKey":"sevenDays"},{"name":"couponBannerDismissed:*","pattern":true,"type":"sessionStorage","durationKey":"session"},{"name":"verifyBannerDismissed","type":"sessionStorage","durationKey":"session"}]},{"id":"smm-oauth-security","provider":"SMM-World","category":"necessary","purposeKey":"oauthSecurity","domains":["*"],"routes":["/login","/register"],"origins":["https://accounts.google.com"],"storage":[{"name":"oauth_csrf_token","type":"sessionStorage","durationKey":"session"}]},{"id":"smm-analytics-deduplication","provider":"SMM-World","category":"analytics","purposeKey":"analyticsDeduplication","domains":["*"],"routes":["/user/checkout"],"origins":[],"storage":[{"name":"ga_purchase_invoice_*","pattern":true,"type":"sessionStorage","durationKey":"session"}]},{"id":"smm-home-hero-experiment","provider":"SMM-World","category":"analytics","purposeKey":"heroExperiments","domains":["*"],"routes":["/"],"origins":[],"storage":[{"name":"smm_home_hero_v1","type":"cookie","durationKey":"thirtyDays"}]},{"id":"smm-buy-page-hero-experiment","provider":"SMM-World","category":"analytics","purposeKey":"heroExperiments","domains":["*"],"routes":["/[buyPage]"],"origins":[],"storage":[{"name":"smm_buy_page_hero_v1","type":"cookie","durationKey":"thirtyDays"}]},{"id":"google-recaptcha","provider":"Google","category":"necessary","purposeKey":"securityChallenge","domains":["*"],"routes":["/contact","/login","/register","/user/checkout"],"origins":["https://www.google.com/recaptcha","https://www.gstatic.com/recaptcha"],"storage":[{"name":"rc::a","type":"localStorage","durationKey":"persistent"},{"name":"rc::c","type":"sessionStorage","durationKey":"session"}]},{"id":"google-analytics","provider":"Google","category":"analytics","purposeKey":"siteAnalytics","domains":["*"],"routes":["*"],"origins":["https://www.googletagmanager.com","https://www.google-analytics.com"],"storage":[{"name":"_ga","type":"cookie","durationKey":"fourHundredDays"},{"name":"_ga_*","pattern":true,"type":"cookie","durationKey":"fourHundredDays"}]},{"id":"meta-attribution","provider":"Meta","category":"advertising","purposeKey":"advertisingAttribution","domains":["*"],"routes":["*"],"origins":["https://connect.facebook.net","https://www.facebook.com/tr"],"storage":[{"name":"meta_attribution","type":"cookie","durationKey":"thirtyDays"},{"name":"_fbp","type":"cookie","durationKey":"ninetyDays"},{"name":"_fbc","type":"cookie","durationKey":"ninetyDays"},{"name":"meta_browser_events","type":"sessionStorage","durationKey":"session"}]},{"id":"google-advertising","provider":"Google","category":"advertising","purposeKey":"googleAdvertising","domains":["*"],"routes":["*"],"origins":["https://www.googletagmanager.com","https://www.google-analytics.com","https://www.googleadservices.com","https://googleads.g.doubleclick.net"],"storage":[{"name":"_gcl_*","pattern":true,"type":"cookie","durationKey":"ninetyDays"}]},{"id":"youtube","provider":"YouTube / Google","category":"externalMedia","purposeKey":"youtubeMedia","domains":["*"],"routes":["/about-us","/blog/*","/[buyPage]","/user/*"],"origins":["https://www.youtube-nocookie.com"],"storage":[{"name":"VISITOR_PRIVACY_METADATA","type":"cookie","durationKey":"sixMonths"},{"name":"__Secure-YNID","type":"cookie","durationKey":"sixMonths"},{"name":"__Secure-ROLLOUT_TOKEN","type":"cookie","durationKey":"sixMonths"},{"name":"__Secure-YEC","type":"cookie","durationKey":"expired"},{"name":"YSC","type":"cookie","durationKey":"session"},{"name":"VISITOR_INFO1_LIVE","type":"cookie","durationKey":"sixMonths"},{"name":"ytidb::LAST_RESULT_ENTRY_KEY","type":"localStorage","durationKey":"persistent"}]},{"id":"card-payment-authentication","provider":"Cardinity / card issuer","category":"necessary","purposeKey":"paymentAuthentication","domains":["*"],"routes":["/user/checkout","/user/credits"],"origins":[],"storage":[{"name":"3-D Secure authentication frame","type":"thirdPartyFrame","durationKey":"transaction"}]}]'),p=new Set(["necessary","analytics","advertising","externalMedia"]);!function(e){if(!Array.isArray(e)||0===e.length)throw Error("Consent registry must contain at least one service");let t=new Set;for(let a of e){if(!a.id||t.has(a.id))throw Error(`Consent registry has an invali
1d or duplicate id: ${a.id}`);if(t.add(a.id),!p.has(a.category))throw Error(`Consent registry has an invalid category: ${a.category}`);if(!a.purposeKey||!Array.isArray(a.storage))throw Error(`Consent registry service ${a.id} is incomplete`)}}(m);let g=Object.freeze({analytics:!1,advertising:!1,externalMedia:!1});var y=a(13392);let h=(0,s.createContext)(null);function b(){return document.cookie.split(";").reduce((e,t)=>{let a=t.indexOf("=");if(a<1)return e;let r=t.slice(0,a).trim(),s=t.slice(a+1).trim();try{e[r]=decodeURIComponent(s)}catch{e[r]=s}return e},{})}function f(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),a=t.padEnd(t.length+(4-t.length%4)%4,"="),r=window.atob(a);return Uint8Array.from(r,e=>e.charCodeAt(0))}async function x(e,t){if(!e||!t||!window.crypto?.subtle)return null;try{let a=e.split(".");if(2!==a.length||!/^[A-Za-z0-9_-]+$/.test(a[0])||!/^[A-Za-z0-9_-]{86}$/.test(a[1]))return null;let r=await window.crypto.subtle.importKey("jwk",t,{name:"ECDSA",namedCurve:"P-256"},!1,["verify"]);if(!await window.crypto.subtle.verify({name:"ECDSA",hash:"SHA-256"},r,f(a[1]),new TextEncoder().encode(a[0])))return null;let s=JSON.parse(new TextDecoder().decode(f(a[0]))),o=s?.choices,n=Math.floor(Date.now()/1e3),i=o&&"object"==typeof o?Object.keys(o):[];if(s?.version!==4||String(s?.hostname||"").toLowerCase()!==window.location.hostname.toLowerCase()||!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(s?.receiptId||"")||!Number.isInteger(s?.expiresAt)||!Number.isInteger(s?.issuedAt)||s.issuedAt>n+300||s.expiresAt<=n||s.expiresAt-s.issuedAt>15552e3||3!==i.length||i.some(e=>!["analytics","advertising","externalMedia"].includes(e))||"boolean"!=typeof o?.analytics||"boolean"!=typeof o?.advertising||"boolean"!=typeof o?.externalMedia)return null;return{analytics:o.analytics,advertising:o.advertising,externalMedia:o.externalMedia}}catch{return null}}function v(e){let t=`${encodeURIComponent(e)}=; Max-Age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; SameSite=Lax`;document.cookie=t,document.cookie=`${t}; domain=${window.location.hostname}`;let a=window.location.hostname.split(".");a.length>2&&(document.cookie=`${t}; domain=.${a.slice(-2).join(".")}`)}function w(e){Object.keys(b()).forEach(t=>{e.some(e=>"string"==typeof e?t===e:e.test(t))&&v(t)})}function k(e,t,a,r){let s=b()[a];e&&fetch("/api/experiments/hero",{method:"DELETE",credentials:"same-origin",keepalive:!0,headers:{"Content-Type":"application/json"},body:JSON.stringify({experiment:t,assignment:s})}).catch(()=>{}),v(a),window.__smmHeroExperiments?.[t]&&(window.__smmHeroExperiments[t].valid=!1),document.documentElement.setAttribute(r,"control")}function _(e){k(e,y.l5,y._k,"data-home-hero-variant"),k(e,y.Sf,y.tb,"data-buy-page-hero-variant")}let N={necessary:{icon:o.A,accent:"bg-emerald-50 text-emerald-700"},analytics:{icon:n.A,accent:"bg-sky-50 text-sky-700"},advertising:{icon:i.A,accent:"bg-amber-50 text-amber-700"},externalMedia:{icon:c.A,accent:"bg-rose-50 text-rose-700"}};function j(e){let{children:t,locale:a,translation:o,mode:n="internal",verificationKey:i=null}=e,c=["da-DK","de-DE","en-US","es-ES","fr-FR","it-IT","nl-NL","pl-PL","ro-RO"].includes(a)?a:"en-US",[p,y]=(0,s.useState)({...g}),[f,k]=(0,s.useState)({...g}),[j,S]=(0,s.useState)(!1),[E,C]=(0,s.useState)(!1),[O,K]=(0,s.useState)(!1),[M,A]=(0,s.useState)(!1),[L,D]=(0,s.useState)(null);(0,s.useEffect)(()=>{let e=!1,t=()=>{(async()=>{let t=b(),a="cookieyes"===n?function(e){var t;let a=(t=e)?String(t).split(",").reduce((e,t)=>{let a=t.indexOf(":");return a<1||(e[t.slice(0,a).trim().toLowerCase()]=t.slice(a+1).trim()),e},{}):null;if(!a)return null;let r=e=>["yes","true"].includes(String(a[e]||"").toLowerCase());return{analytics:r("analytics"),advertising:r("advertisement"),externalMedia:r("functional")||r("advertisement")}}(t["cookieyes-consent"]):await x(t.smm_cookie_consent,i);e||(y(a||{...g}),k(a||{...g}),C(!!a),S(!0))})()};return("internal"===n&&Object.keys(b()).filter(e=>/^(cookieyes|cky-)/i.test(e)||"cookie_consent_is_true"===e).forEach(v),t(),"cookieyes"===n)?(document.addEventListener("cookieyes_consent_update",t),document.addEventListener("cookieyes_banner_load",t),window.addEventListener("focus",t),()=>{e=!0,document.removeEventListener("cookieyes_consent_update",t),document.removeEventListener("cookieyes_banner_load",t),window.removeEventListener("focus",t)}):()=>{e=!0}},[n,i]),(0,s.useEffect)(()=>{j&&!p.analytics&&_(E)},[p.analytics,E,j]);let R=(0,s.useCallback)(()=>
1{if("cookieyes"===n){window.CkyConsent?.openSettings?window.CkyConsent.openSettings():document.querySelector(".cky-btn-revisit-wrapper")?.click();return}D(null),k(p),K(!0)},[p,n]),T=(0,s.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"save_preferences",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"settings";if("internal"!==n)return!1;A(!0),D(null);try{if(!(await fetch("/api/consent",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({choices:e,locale:c,action:t,source:a})})).ok)throw Error("Consent save failed");if(y(e),k(e),C(!0),K(!1),window.dispatchEvent(new CustomEvent("smm:consent-change",{detail:{choices:e,previousChoices:p}})),e.analytics||(w(["_ga",/^_ga_/]),_(!0)),!e.advertising){w(["_fbp","_fbc","meta_attribution",/^_gcl_/]);try{window.sessionStorage.removeItem("meta_browser_events")}catch{}window.fbq?.("consent","revoke"),fetch("/api/marketing/attribution",{method:"DELETE",credentials:"same-origin",keepalive:!0}).catch(()=>{})}return(p.analytics&&!e.analytics||p.advertising&&!e.advertising||p.externalMedia&&!e.externalMedia)&&window.setTimeout(()=>window.location.reload(),80),!0}catch{return D(a),!1}finally{A(!1)}},[p,n,c]),I=(0,s.useCallback)(e=>T({...p,[e]:!0},"externalMedia"===e?"external_media_gate":"save_preferences","externalMedia"===e?"external_media":"settings"),[p,T]),$=(0,s.useMemo)(()=>({choices:p,hasDecision:E,ready:j,isSaving:M,locale:c,translation:o,openSettings:R,saveChoices:T,allowCategory:I}),[I,p,E,M,R,j,c,T,o]);return(0,r.jsxs)(h.Provider,{value:$,children:[t,"internal"===n&&j&&!E&&(0,r.jsxs)("section",{"aria-labelledby":"cookie-consent-title",className:"fixed inset-x-3 bottom-3 z-[10000] mx-auto max-w-6xl overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-[0_24px_80px_rgba(15,23,42,0.22)] sm:inset-x-6 sm:bottom-6",children:[(0,r.jsx)("div",{className:"h-1 bg-gradient-to-r from-brand-dark via-brand-accent to-cyan-300"}),(0,r.jsxs)("div",{className:"grid gap-5 p-5 md:grid-cols-[minmax(0,1fr)_auto] md:items-end md:p-6",children:[(0,r.jsxs)("div",{className:"max-w-3xl",children:[(0,r.jsxs)("div",{className:"mb-2 flex items-center gap-2 text-xs font-bold uppercase tracking-[0.14em] text-blue-700",children:[(0,r.jsx)(l.A,{"aria-hidden":"true",className:"h-4 w-4"}),o.banner.eyebrow]}),(0,r.jsx)("h2",{id:"cookie-consent-title",className:"text-xl font-bold tracking-tight text-slate-950 sm:text-2xl",children:o.banner.title}),(0,r.jsx)("p",{className:"mt-2 max-w-2xl text-sm leading-6 text-slate-600",children:o.banner.description})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-3 md:w-[31rem]",children:[(0,r.jsx)("button",{type:"button",disabled:M,onClick:()=>void T({analytics:!0,advertising:!0,externalMedia:!0},"accept_all","banner"),className:"min-h-11 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-sm font-semibold text-slate-900 transition hover:border-slate-500 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-accent focus-visible:ring-offset-2 disabled:opacity-60",children:o.banner.acceptAll}),(0,r.jsx)("button",{type:"button",disabled:M,onClick:()=>void T({...g},"reject_optional","banner"),className:"min-h-11 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-sm font-semibold text-slate-900 transition hover:border-slate-500 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-accent focus-visible:ring-offset-2 disabled:opacity-60",children:o.banner.rejectOptional}),(0,r.jsx)("button",{type:"button",disabled:M,onClick:R,className:"min-h-11 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-sm font-semibold text-slate-900 transition hover:border-slate-500 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-accent focus-visible:ring-offset-2 disabled:opacity-60",children:o.banner.customize})]})]}),"banner"===L&&(0,r.jsx)("p",{role:"alert",className:"border-t border-red-100 bg-red-50 px-5 py-3 text-sm text-red-800 md:px-6",children:o.preferences.saveError})]}),"internal"===n&&(0,r.jsx)(d.lG,{open:O,onOpenChange:K,children:(0,r.jsxs)(d.Cf,{closeLabel:o.preferences.close,className:"max-h-[min(90vh,52rem)] w-[calc(100%-1.5rem)] max-w-2xl overflow-x-hidden overflow-y-auto rounded-2xl border-slate-200 p-0 [&>button]:flex [&>button]:h-11 [&>button]:w-11 [&>button]:items-center [&>button]:justify-center",children:[(0,r.jsxs)(d.c7,{className:"border-b border-slate-100 bg-slate-50/80 px-6 pb-5 pt-6 text-left",children:[(0,r.jsx)("div",{className:"mb-1 flex h-10 w-10 items-center justify-center rounded-xl bg-blue-100 text-blue-800",children:(0,r.jsx)(l.A,{"aria-hidden":"true",className:"h-5 w-5"})}),(0,r.jsx)(d.L3,{className:"text-xl text-slate-950",children:o.preferences.title}),(0,r.jsx)(d.rr,{className:"max-w-xl leading-6 text-slate-600",children:o.preferences.description})]}),(0,r.jsx)("div",{className:"space-y-3 px-5 py-5 sm:px-6",children:["necessary","analytics","advertising","externalMedia"].map(e=>{let t=N[e],a=t.icon,s="necessary"===e,n=m.filter(t=>t.category===e).flatMap(e=>e.storage.map(e=>e.name));return(0,r.jsx)("div",{className:"rounded-xl border border-slate-200 bg-white p-4",children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("span",{className:`mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg ${t.accent}`,children:(0,r.jsx)(a,{"aria-hidden":"true",className:"h-4.5 w-4.5"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,r.jsx)("h3",{className:"font-semibold text-slate-950",children:o.categories[e].name}),s?(0,r.jsx)("span",{className:"shrink-0 rounded-full bg-emerald-50 px-2.5 py-1 text-xs font-semibold text-emerald-700",children:o.preferences.alwaysActive}):(0,r.jsx)("label",{htmlFor:`consent-${e}`,className:"flex h-11 w-11 shrink-0 cursor-pointer items-center justify-end",children:(0,r.jsx)(u.d,{id:`consent-${e}`,checked:f[e],onCheckedChange:t=>k(a=>({...a,[e]:t})),"aria-label":o.categories[e].name,className:"data-[state=checked]:bg-brand-accent"})})]}),(0,r.jsx)("p",{className:"mt-1 text-sm leading-5 text-slate-600",children:o.categories[e].description}),n.length>0&&(0,r.jsx)("p",{className:"mt-2 break-words text-xs leading-5 text-slate-400",children:n.join(" \xb7 ")})]})]})},e)})}),(0,r.jsxs)("div",{className:"sticky bottom-0 border-t border-slate-200 bg-white px-5 py-4 sm:px-6",children:["settings"===L&&(0,r.jsx)("p",{role:"alert",className:"mb-3 text-sm leading-5 text-red-700",children:o.preferences.saveError}),(0,r.jsx)("button",{type:"button",disabled:M,onClick:()=>void T(f,"save_preferences","settings"),className:"min-h-11 w-full rounded-xl bg-brand-dark px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-slate-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-accent focus-visible:ring-offset-2 disabled:cursor-wait disabled:opacity-60",children:M?o.preferences.saving:o.preferences.save})]})]})})]})}function S(){let e=(0,s.useContext)(h);if(!e)throw Error("useConsent must be used within ConsentProvider");return e}}}]);
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.