@graffico/legal 0.3.10 → 0.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -6,11 +6,15 @@ import { ReactNode, InputHTMLAttributes, CSSProperties } from 'react';
6
6
  * `text-[11px]`) per evitare di diventare LCP candidate quando il viewport è
7
7
  * piccolo; su desktop torna alle dimensioni piene. Non chiudibile via X:
8
8
  * dismissal passiva non equivale a consenso (EDPB GL 03/2022 §3.1).
9
+ * Il testo cita solo le finalità a consenso in uso (`getTrackingPurposes`).
9
10
  */
10
11
  declare const ConsentBanner: () => react_jsx_runtime.JSX.Element;
11
12
 
12
13
  /**
13
14
  * Modale per regolare in dettaglio le preferenze per categoria di tracker.
15
+ * Dialog modale: il focus entra all'apertura e resta dentro col Tab, Esc
16
+ * chiude senza salvare (come la X), alla chiusura il focus torna a chi l'ha
17
+ * aperta.
14
18
  */
15
19
  declare const PreferenceModal: () => react_jsx_runtime.JSX.Element | null;
16
20
 
@@ -29,7 +33,10 @@ declare const TRANSLATIONS: {
29
33
  bannerTitle: string;
30
34
  bannerDescription: string;
31
35
  bannerDescriptionMeasurement: string;
36
+ bannerDescriptionMarketing: string;
37
+ bannerDescriptionMeasurementAndMarketing: string;
32
38
  bannerDescriptionEnd: string;
39
+ bannerDescriptionTechnicalOnly: string;
33
40
  cookiePolicyLink: string;
34
41
  decline: string;
35
42
  customize: string;
@@ -165,6 +172,9 @@ declare const TRANSLATIONS: {
165
172
  introDescription2: string;
166
173
  usageTrackingTitle: string;
167
174
  usageTrackingDescription: string;
175
+ usageTrackingDescriptionTechnicalOnly: string;
176
+ usageTrackingDescriptionMarketing: string;
177
+ usageTrackingDescriptionMeasurementAndMarketing: string;
168
178
  managePreferencesTitle: string;
169
179
  managePreferencesDescription1: string;
170
180
  managePreferencesDescription2: string;
@@ -218,7 +228,10 @@ declare const TRANSLATIONS: {
218
228
  bannerTitle: string;
219
229
  bannerDescription: string;
220
230
  bannerDescriptionMeasurement: string;
231
+ bannerDescriptionMarketing: string;
232
+ bannerDescriptionMeasurementAndMarketing: string;
221
233
  bannerDescriptionEnd: string;
234
+ bannerDescriptionTechnicalOnly: string;
222
235
  cookiePolicyLink: string;
223
236
  decline: string;
224
237
  customize: string;
@@ -354,6 +367,9 @@ declare const TRANSLATIONS: {
354
367
  introDescription2: string;
355
368
  usageTrackingTitle: string;
356
369
  usageTrackingDescription: string;
370
+ usageTrackingDescriptionTechnicalOnly: string;
371
+ usageTrackingDescriptionMarketing: string;
372
+ usageTrackingDescriptionMeasurementAndMarketing: string;
357
373
  managePreferencesTitle: string;
358
374
  managePreferencesDescription1: string;
359
375
  managePreferencesDescription2: string;
@@ -425,13 +441,30 @@ interface CookieDeclaration {
425
441
  duration: string;
426
442
  type: CookieType;
427
443
  }
444
+ /**
445
+ * Categoria di consenso gestita dal CMP.
446
+ */
447
+ type ConsentCategory = "necessary" | "statistical" | "marketing";
448
+ /**
449
+ * Sottoinsieme di categorie che possono "gating" lo script di un tracker.
450
+ * Esclude `necessary` perché i tracker tecnici non sono mai opt-in.
451
+ */
452
+ type TrackableCategory = Exclude<ConsentCategory, "necessary">;
428
453
  /**
429
454
  * Tracker o servizio terzo dichiarato in cookie/privacy policy.
430
455
  */
431
456
  interface LegalService {
432
457
  id: string;
433
458
  name: string;
459
+ /** Modalità di raccolta dei dati (non la categoria di consenso). */
434
460
  category: "automatic" | "provided" | "marketing";
461
+ /**
462
+ * Categoria di consenso del banner che abilita il servizio: decide quali
463
+ * finalità citano banner e cookie policy. `necessary` = non serve consenso
464
+ * da banner (tecnico, o dati forniti tramite form). Se assente viene dedotta
465
+ * da `cookies[].type` e `lawfulBasis`.
466
+ */
467
+ consentCategory?: ConsentCategory;
435
468
  logo?: string;
436
469
  purposes: string[];
437
470
  dataCollected: string[];
@@ -574,15 +607,6 @@ interface ServiceGridProps {
574
607
  */
575
608
  declare const ServiceGrid: ({ config: configProp, language: langProp, }?: ServiceGridProps) => react_jsx_runtime.JSX.Element | null;
576
609
 
577
- /**
578
- * Categoria di consenso gestita dal CMP.
579
- */
580
- type ConsentCategory = "necessary" | "statistical" | "marketing";
581
- /**
582
- * Sottoinsieme di categorie che possono "gating" lo script di un tracker.
583
- * Esclude `necessary` perché i tracker tecnici non sono mai opt-in.
584
- */
585
- type TrackableCategory = Exclude<ConsentCategory, "necessary">;
586
610
  /**
587
611
  * Lingua corrente normalizzata, reattiva ai cambi via bridge i18n.
588
612
  */
@@ -660,6 +684,11 @@ interface ClientState {
660
684
  hydrated: boolean;
661
685
  /** Versione delle policy attiva. Stampata nel consenso al save. */
662
686
  activePolicyVersion?: string;
687
+ /**
688
+ * Categorie richieste dai tracker `*Legal` e dai `ConsentGate` montati: il
689
+ * banner le cita anche se il servizio manca da `services[]`.
690
+ */
691
+ requestedCategories: readonly TrackableCategory[];
663
692
  }
664
693
  /**
665
694
  * Durata di validità del consenso in millisecondi.
@@ -876,6 +905,34 @@ declare function useHotjarEvent(category?: TrackableCategory): (eventName: strin
876
905
  */
877
906
  declare function useHotjarIdentify(category?: TrackableCategory): (userId: string | null, attributes?: Record<string, unknown>) => void;
878
907
 
908
+ type LintrkFn = ((action: string, options: {
909
+ conversion_id: number;
910
+ }) => void) & {
911
+ q?: unknown[][];
912
+ };
913
+ declare global {
914
+ interface Window {
915
+ _linkedin_partner_id?: string;
916
+ _linkedin_data_partner_ids?: string[];
917
+ lintrk?: LintrkFn;
918
+ }
919
+ }
920
+ interface LinkedInInsightLegalProps {
921
+ /** Partner ID LinkedIn Insight. */
922
+ partnerId: string;
923
+ /** Categoria di consenso richiesta. Default `marketing`. */
924
+ category?: TrackableCategory;
925
+ }
926
+ /**
927
+ * Carica il tag LinkedIn Insight solo dopo il consenso `marketing` (o custom).
928
+ * Su revoca rimuove lo script e cancella i cookie per ripristinare la conformità GDPR.
929
+ */
930
+ declare function LinkedInInsightLegal({ partnerId, category, }: LinkedInInsightLegalProps): null;
931
+ /**
932
+ * Hook per inviare eventi custom LinkedIn (conversioni). No-op senza consenso.
933
+ */
934
+ declare function useLinkedInInsightEvent(): (conversionId: number) => void;
935
+
879
936
  interface EmailJSLegalProps {
880
937
  /** ID servizio EmailJS (es. `service_xxx`). */
881
938
  serviceId: string;
@@ -965,4 +1022,4 @@ declare const resolveService: (ref: string | LegalService) => LegalService;
965
1022
 
966
1023
  declare const DEFAULT_PRIMARY_COLOR = "#2c5282";
967
1024
 
968
- export { CONSENT_TTL_MS, type CompanyConfig, ConsentBanner, type ConsentCategory, ConsentCheckbox, ConsentGate, ConsentModeBoot, type ConsentSource, type ConsentState, DEFAULT_PRIMARY_COLOR, type DpoInfo, EmailJSLegal, FloatingConsentToggle, GTMLegal, GoogleAdsLegal, GoogleAnalyticsLegal, HotjarLegal, type Language, LegalConfigProvider, type LegalService, MetaPixelLegal, PreferenceCard, PreferenceModal, type Processor, type RetentionMap, SERVICE_PRESETS, ServiceGrid, type ServiceReference, type TogglePosition, type TrackableCategory, type TranslationKey, type Translator, acceptAll, declineAll, getSnapshot as getConsentSnapshot, hydrateFromStorage, resetConsent, resolveService, savePreferences, setLanguage, setModalOpen, subscribe as subscribeConsent, useAdsConversion, useConsent, useConsentCategory, useEmailJS, useGAEvent, useHotjarEvent, useHotjarIdentify, useIsHydrated, useLegalConfig, useLegalConfigOptional, useLegalLanguage, useMetaEvent, useModalOpen, useShowBanner, useT };
1025
+ export { CONSENT_TTL_MS, type CompanyConfig, ConsentBanner, type ConsentCategory, ConsentCheckbox, ConsentGate, ConsentModeBoot, type ConsentSource, type ConsentState, DEFAULT_PRIMARY_COLOR, type DpoInfo, EmailJSLegal, FloatingConsentToggle, GTMLegal, GoogleAdsLegal, GoogleAnalyticsLegal, HotjarLegal, type Language, LegalConfigProvider, type LegalService, LinkedInInsightLegal, MetaPixelLegal, PreferenceCard, PreferenceModal, type Processor, type RetentionMap, SERVICE_PRESETS, ServiceGrid, type ServiceReference, type TogglePosition, type TrackableCategory, type TranslationKey, type Translator, acceptAll, declineAll, getSnapshot as getConsentSnapshot, hydrateFromStorage, resetConsent, resolveService, savePreferences, setLanguage, setModalOpen, subscribe as subscribeConsent, useAdsConversion, useConsent, useConsentCategory, useEmailJS, useGAEvent, useHotjarEvent, useHotjarIdentify, useIsHydrated, useLegalConfig, useLegalConfigOptional, useLegalLanguage, useLinkedInInsightEvent, useMetaEvent, useModalOpen, useShowBanner, useT };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import{createContext as ct,useContext as xe,useEffect as we,useMemo as dt}from"react";var H={it:{legal:"Legal",lastUpdated:"Ultima modifica",email:"Email",vat:"P.IVA",generatedBy:"Generato professionalmente da",bannerTitle:"Informativa sui Cookie",bannerDescription:"Noi e terze parti selezionate utilizziamo cookie o tecnologie simili per finalit\xE0 tecniche e, con il tuo consenso, anche per le finalit\xE0 di ",bannerDescriptionMeasurement:"misurazione",bannerDescriptionEnd:" come specificato nella ",cookiePolicyLink:"cookie policy",decline:"Rifiuta",customize:"Personalizza",accept:"Accetta",close:"Chiudi",preferencesTitle:"Preferenze Privacy",preferencesSubtitle:"Personalizza come trattiamo i tuoi dati",preferencesDescription:'Questo pannello ti permette di esprimere alcune preferenze relative al trattamento delle tue informazioni personali. Puoi rivedere e modificare le tue scelte in qualsiasi momento. Per rifiutare il tuo consenso alle attivit\xE0 di trattamento descritte di seguito, disattiva i singoli comandi o utilizza il pulsante "Rifiuta tutto".',necessaryTitle:"Strettamente necessari",necessaryDescription:"Questi strumenti sono richiesti per le funzionalit\xE0 base del sito e non possono essere disattivati.",measurementTitle:"Misurazione",measurementDescription:"Ci permettono di misurare il traffico e analizzare il tuo comportamento per migliorare il servizio.",marketingTitle:"Marketing e Profilazione",marketingDescription:"Utilizzati per inviarti comunicazioni commerciali personalizzate in base ai tuoi interessi.",consentId:"IDC (Consent ID)",consentDate:"Data Consenso",consentPolicyVersion:"Versione policy",consentSource:"Origine",legalProofDescription:"Questi identificativi fungono da prova legale del tuo consenso secondo le linee guida GDPR. Puoi richiederne la cancellazione in qualsiasi momento.",consentCheckboxLabel:"Acconsento al trattamento dei miei dati personali per la gestione della richiesta come descritto nella",privacyPolicyLink:"privacy policy",declineAll:"Rifiuta tutto",saveAndContinue:"Salva e continua",acceptAll:"Accetta tutto",monitorTitle:"Monitoraggio e Stats",supportTitle:"Supporto e Feedback",privacyPreferences:"Preferenze Privacy",privacyPolicyTitle:"Privacy Policy di",privacyWelcome:"Benvenuto nella privacy policy di",privacyIntro:"Questa policy ti aiuter\xE0 a comprendere quali dati raccogliamo, perch\xE9 li raccogliamo e quali sono i tuoi diritti in merito.",ownerTitle:"Titolare del Trattamento dei Dati",dataSummaryTitle:"Riepilogo dei Dati",automaticDataTitle:"Dati raccolti automaticamente",automaticDataDescription:"Raccogliamo automaticamente i tuoi dati, ad esempio quando visiti ",automaticDataIncludes:". Include: indirizzo IP, Dati di utilizzo, Strumenti di Tracciamento, numero di Utenti, statistiche delle sessioni, identificativi del dispositivo (user-agent, lingua, fuso orario).",providedDataTitle:"Dati forniti dall'Utente",providedDataDescription:"Raccogliamo i dati che ci fornisci, ad esempio quando compili un modulo di contatto. Include: nome, email.",treatmentDetailsTitle:"Dettagli sul trattamento dei Dati Personali",treatmentDetailsDescription:"Di seguito sono riportati i dettagli sulle modalit\xE0 di raccolta dei dati e i servizi di terze parti che utilizziamo.",modeAndPlaceTitle:"Modalit\xE0 e luogo del trattamento",modeDescription:"Il Titolare adotta le opportune misure di sicurezza volte ad impedire l'accesso, la divulgazione, la modifica o la distruzione non autorizzate dei Dati Personali. Il trattamento viene effettuato mediante strumenti informatici e/o telematici, con modalit\xE0 organizzative e con logiche strettamente correlate alle finalit\xE0 indicate.",placeDescription:"I Dati sono trattati presso le sedi operative del Titolare ed in ogni altro luogo in cui le parti coinvolte nel trattamento siano localizzate. Se non diversamente indicato, i Dati Personali sono trattati e conservati per il tempo richiesto dalla finalit\xE0 per la quale sono stati raccolti.",rightsTitle:"I tuoi Diritti (GDPR)",right1:"Revocare il consenso in ogni momento",right2:"Opporsi al trattamento dei propri Dati",right3:"Accedere ai propri Dati",right4:"Verificare e chiedere la rettificazione",right5:"Ottenere la limitazione del trattamento",right6:"Ottenere la cancellazione o rimozione",right7:"Ricevere i propri Dati o farli trasferire ad altro titolare",right8:"Proporre reclamo all'Autorit\xE0 di controllo (Garante)",howToExerciseRights:"Come esercitare i diritti",exerciseRightsDescription:"Le richieste vanno indirizzate ai recapiti del Titolare indicati in questo documento. La richiesta \xE8 gratuita e risponderemo nel pi\xF9 breve tempo possibile.",supervisoryAuthorityTitle:"Autorit\xE0 di controllo",supervisoryAuthorityIntro:"Ai sensi degli artt. 13.2.d e 77 GDPR, l'interessato ha diritto di proporre reclamo all'autorit\xE0 di controllo competente qualora ritenga che il trattamento dei propri dati personali violi la normativa vigente.",supervisoryAuthorityName:"Garante per la Protezione dei Dati Personali",supervisoryAuthorityAddress:"Piazza Venezia 11, 00187 Roma (Italia)",supervisoryAuthorityEmail:"protocollo@gpdp.it",supervisoryAuthorityWebsite:"https://www.garanteprivacy.it",supervisoryAuthorityLabelAddress:"Sede",supervisoryAuthorityLabelEmail:"PEC / Email",supervisoryAuthorityLabelWebsite:"Sito web",definitionsTitle:"Definizioni e riferimenti legali",personalDataTitle:"Dati Personali",personalDataDescription:"Qualunque informazione che, direttamente o indirettamente, renda identificata o identificabile una persona fisica.",usageDataTitle:"Dati di Utilizzo",usageDataDescription:"Informazioni raccolte automaticamente attraverso questa Applicazione (es. indirizzi IP, orario della richiesta, browser utilizzato).",ownerDefinitionTitle:"Titolare del Trattamento",ownerDefinitionDescription:"La persona fisica o giuridica che determina le finalit\xE0 e i mezzi del trattamento di dati personali.",cookieDefinitionTitle:"Cookie",cookieDefinitionDescription:"Piccole porzioni di dati conservate all'interno del browser dell'Utente.",processorsTitle:"Destinatari e responsabili esterni",processorsIntro:"I Dati Personali possono essere comunicati ai responsabili del trattamento elencati di seguito. Ciascun responsabile \xE8 stato selezionato per affidabilit\xE0 e adeguatezza delle garanzie tecniche e organizzative.",processorPurpose:"Finalit\xE0",processorCountry:"Sede",processorTransferBasis:"Base giuridica trasferimento",processorPrivacyPolicy:"Privacy policy",unitedStates:"Stati Uniti",ireland:"Irlanda",malta:"Malta",france:"Francia",italy:"Italia",siteHostingAndCdn:"Hosting e CDN del sito.",contactFormTransmission:"Trasmissione form contatti",contactFormTransmissionSmtp:"Trasmissione form contatti tramite SMTP",analyticsAdsTagFonts:"Analytics 4, Ads, Tag Manager, Fonts",metaPixelConversionApi:"Meta Pixel, Conversion API",sessionRecordingHeatmap:"Session recording, heatmap",fraudPrevention:"Prevenzione frodi",paymentSession:"Sessione di pagamento",transfersTitle:"Trasferimenti di Dati Personali fuori dall'Unione Europea",transfersDescription:"Alcuni dei responsabili esterni hanno sede al di fuori dello Spazio Economico Europeo. I trasferimenti avvengono sulla base di decisioni di adeguatezza (es. EU-US Data Privacy Framework) o di Clausole Contrattuali Tipo (SCC 2021/914) adottate dalla Commissione Europea, integrate da misure supplementari ove necessarie. L'Utente pu\xF2 richiedere copia delle garanzie scrivendo al Titolare.",retentionTitle:"Conservazione dei Dati",retentionIntro:"I Dati Personali sono conservati per il tempo strettamente necessario alle finalit\xE0 per cui sono stati raccolti.",retentionContactForms:"Form di contatto",retentionAnalytics:"Dati analitici",retentionMarketing:"Dati di marketing",retentionUntilCancellation:"Fino a richiesta di cancellazione",dpoTitle:"Responsabile della Protezione dei Dati (DPO)",dpoIntro:"L'Utente pu\xF2 contattare il DPO per qualsiasi questione relativa al trattamento dei propri Dati Personali e all'esercizio dei diritti GDPR.",dpoPhone:"Telefono",policyVersionLabel:"Versione",lawfulBasisTitle:"Basi giuridiche del trattamento",lawfulBasisIntro:"Ciascuna finalit\xE0 di trattamento poggia su una specifica base giuridica ex art. 6 GDPR. Di seguito la mappatura dichiarata dal Titolare.",lawfulBasisContract:"Esecuzione di un contratto o misure precontrattuali (art. 6.1.b GDPR)",lawfulBasisConsent:"Consenso espresso dell'interessato (art. 6.1.a GDPR)",lawfulBasisLegitInterest:"Legittimo interesse del Titolare (art. 6.1.f GDPR) \u2014 es. sicurezza del sito, prevenzione frodi, statistiche aggregate",lawfulBasisLegalObligation:"Adempimento di un obbligo di legge (art. 6.1.c GDPR)",lawfulBasisVitalInterests:"Tutela degli interessi vitali dell'interessato (art. 6.1.d GDPR)",lawfulBasisPublicTask:"Esecuzione di un compito di interesse pubblico (art. 6.1.e GDPR)",lawfulBasisNotDeclared:"Base giuridica non dichiarata per questo servizio",profilingTitle:"Processi decisionali automatizzati e profilazione",profilingDeclaredYes:"Il Titolare effettua trattamenti che includono processi decisionali automatizzati e/o profilazione ai sensi dell'art. 22 GDPR. L'interessato ha diritto a ottenere intervento umano, esprimere la propria opinione e contestare la decisione. Per dettagli su logica, importanza e conseguenze previste, contattare il Titolare ai recapiti indicati.",profilingDeclaredNo:"Il Titolare non effettua processi decisionali automatizzati n\xE9 profilazione che producano effetti giuridici sull'interessato o che incidano significativamente sulla sua persona, ai sensi dell'art. 22 GDPR. Eventuali strumenti di analisi (es. Google Analytics, Meta Pixel) sono utilizzati per misurazione aggregata e non per decisioni automatizzate individuali.",cookieTableTitle:"Elenco dettagliato dei Cookie e degli identificatori",cookieTableIntro:"Di seguito i cookie e gli identificatori utilizzati da ciascun servizio, con finalit\xE0, durata e categoria. La lista \xE8 esaustiva per i servizi attivi sull'Applicazione al momento della pubblicazione di questa policy.",cookieTableName:"Nome",cookieTableProvider:"Fornitore",cookieTablePurpose:"Finalit\xE0",cookieTableDuration:"Durata",cookieTableType:"Tipologia",cookieTypeTechnical:"Tecnico",cookieTypeStatistical:"Statistico",cookieTypeMarketing:"Marketing",cookieTypeProfiling:"Profilazione",cookieTableNoneDeclared:"Per questo servizio non sono dichiarati cookie nominali (pu\xF2 utilizzare identificatori dinamici o LocalStorage).",marketingConsentLabel:"Acconsento a ricevere comunicazioni commerciali e di marketing (newsletter, offerte) ex art. 6.1.a GDPR. Posso revocare il consenso in qualunque momento scrivendo a",cookiePolicyTitle:"Cookie Policy di",cookieWelcome:"Benvenuto nella cookie policy di",cookieIntro:"Questa policy ti aiuter\xE0 a comprendere quali cookie e tecnologie di tracciamento utilizziamo, come li utilizziamo e quali sono i tuoi diritti in merito.",introduction:"Introduzione",introDescription1:"Questo documento contiene informazioni in merito alle tecnologie che consentono a questa Applicazione di raggiungere gli scopi descritti di seguito. Tali tecnologie permettono al Titolare di raccogliere e salvare informazioni (per esempio tramite l'utilizzo di Cookie) o di utilizzare risorse (per esempio eseguendo uno script).",introDescription2:"Per semplicit\xE0, in questo documento tali tecnologie sono sinteticamente definite \u201CStrumenti di Tracciamento\u201D. Alcune delle finalit\xE0 per le quali vengono impiegati potrebbero richiedere il consenso dell'Utente.",usageTrackingTitle:"Utilizzo degli Strumenti di Tracciamento",usageTrackingDescription:"Questa Applicazione utilizza Strumenti di Tracciamento per svolere attivit\xE0 che sono strettamente necessarie a garantire il funzionamento e per misurare il traffico tramite analisi.",managePreferencesTitle:"Come gestire le preferenze",managePreferencesDescription1:"Qualora l'utilizzo dei Tracker sia basato sul consenso, l'Utente pu\xF2 fornire o revocare tale consenso impostando o aggiornando le proprie preferenze tramite il relativo pannello delle scelte in materia di privacy disponibile su questa Applicazione.",managePreferencesDescription2:"Gli Utenti possono inoltre utilizzare le impostazioni del proprio browser per vedere quali Cookie sono stati installati, bloccarli o cancellarli. Tuttavia, le impostazioni del browser non consentono un controllo granulare del consenso per categoria.",preferenceCenterTitle:"Centro Preferenze",preferenceCenterDescription:"Puoi gestire i tuoi consensi in modo granulare o resettare completamente le tue impostazioni per visualizzare nuovamente il banner iniziale.",managePreferencesButton:"Gestisci preferenze",resetBannerButton:"Resetta e riapri banner",fullPrivacyPolicyLink:"Privacy Policy Completa",browserInfo:"Info Browser",browserSettingsTitle:"Impostazioni Browser",browserSettingsDescription:"I cookie possono essere gestiti anche tramite le impostazioni del tuo browser (Chrome, Safari, Firefox, ecc.) per un controllo totale sulla privacy e sulla conservazione dei dati.",trackingToolTitle:"Strumento di Tracciamento",trackingToolDescription:"Qualsiasi tecnologia \u2014 es. Cookie, identificativi univoci, web beacons \u2014 che consenta di tracciare gli Utenti, raccogliendo o salvando informazioni sul dispositivo.",dataSubjectTitle:"Interessato",dataSubjectDescription:"La persona fisica cui si riferiscono i Dati Personali.",purposes:"Finalit\xE0",dataCollected:"Dati raccolti",statistics:"Statistica",optimization:"Ottimizzazione",marketing:"Marketing",targeting:"Targeting",behaviorAnalysis:"Analisi del comportamento",sessionScreencast:"Screencast sessione",usageData:"Dati di utilizzo",trackingTools:"Strumenti di Tracciamento",tagManagement:"Gestione dei tag",userDatabaseManagement:"Gestione database Utenti",sendingMessages:"Invio messaggi",name:"Nome",surname:"Cognome",paymentManagement:"Gestione dei pagamenti",variousDataAsSpecified:"Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio",externalContent:"Visualizzazione di contenuti da piattaforme esterne",geographicPosition:"Posizione geografica",contactUser:"Contattare l'utente",requestManagement:"Gestione richieste",variousData:"Dati vari",contentDisplay:"Visualizzazione dei contenuti",variousDataTypes:"Varie tipologie di Dati",contactForm:"Modulo di contatto",youtubeWidget:"Widget Video YouTube",googleMapsWidget:"Widget Google Maps",noActiveService:"Nessun servizio attivo"},en:{legal:"Legal",lastUpdated:"Last modified",email:"Email",vat:"VAT",generatedBy:"Professionally generated by",bannerTitle:"Cookie Policy",bannerDescription:"We and selected third parties use cookies or similar technologies for technical purposes and, with your consent, also for the purposes of ",bannerDescriptionMeasurement:"measurement",bannerDescriptionEnd:" as specified in the ",cookiePolicyLink:"cookie policy",decline:"Refuse",customize:"Customize",accept:"Accept",close:"Close",preferencesTitle:"Privacy Preferences",preferencesSubtitle:"Customize how we process your data",preferencesDescription:'This panel allows you to express certain preferences regarding the processing of your personal information. You can review and modify your choices at any time. To refuse your consent to the processing activities described below, disable the individual controls or use the "Refuse all" button.',necessaryTitle:"Strictly necessary",necessaryDescription:"These tools are required for the basic functionality of the site and cannot be disabled.",measurementTitle:"Measurement",measurementDescription:"They allow us to measure traffic and analyze your behavior to improve the service.",marketingTitle:"Marketing and Profiling",marketingDescription:"Used to send you personalized marketing communications based on your interests.",consentId:"Consent ID",consentDate:"Consent Date",consentPolicyVersion:"Policy version",consentSource:"Source",legalProofDescription:"These identifiers serve as legal proof of your consent according to GDPR guidelines. You can request their deletion at any time.",consentCheckboxLabel:"I consent to the processing of my personal data for handling this request as described in the",privacyPolicyLink:"privacy policy",declineAll:"Refuse all",saveAndContinue:"Save and continue",acceptAll:"Accept all",monitorTitle:"Monitoring and Stats",supportTitle:"Support and Feedback",privacyPreferences:"Privacy Preferences",privacyPolicyTitle:"Privacy Policy of",privacyWelcome:"Welcome to the privacy policy of",privacyIntro:"This policy will help you understand what data we collect, why we collect it and what your rights are in this regard.",ownerTitle:"Data Controller",dataSummaryTitle:"Data Summary",automaticDataTitle:"Automatically collected data",automaticDataDescription:"We automatically collect your data, for example when you visit ",automaticDataIncludes:". Includes: IP address, Usage data, Tracking Tools, number of Users, session statistics, device identifiers (user-agent, language, timezone).",providedDataTitle:"Data provided by the User",providedDataDescription:"We collect the data you provide us, for example when you fill out a contact form. Includes: name, email.",treatmentDetailsTitle:"Details on the processing of Personal Data",treatmentDetailsDescription:"Below are details on how data is collected and the third-party services we use.",modeAndPlaceTitle:"Method and place of processing",modeDescription:"The Controller takes appropriate security measures to prevent unauthorized access, disclosure, modification or destruction of Personal Data. Processing is carried out using computers and/or IT enabled tools, with organizational methods and logic strictly related to the purposes indicated.",placeDescription:"The Data is processed at the Controller's operating offices and in any other places where the parties involved in the processing are located. Unless otherwise stated, Personal Data is processed and stored for the time required by the purpose for which it was collected.",rightsTitle:"Your Rights (GDPR)",right1:"Withdraw consent at any time",right2:"Object to the processing of your Data",right3:"Access your Data",right4:"Verify and seek rectification",right5:"Obtain restriction of processing",right6:"Obtain erasure or removal",right7:"Receive your Data or have it transferred to another controller",right8:"Lodge a complaint with the Supervisory Authority (Italian Garante)",howToExerciseRights:"How to exercise rights",exerciseRightsDescription:"Requests should be addressed to the Controller's contact details indicated in this document. The request is free of charge and we will respond as soon as possible.",supervisoryAuthorityTitle:"Supervisory Authority",supervisoryAuthorityIntro:"Pursuant to art. 13.2.d and 77 GDPR, the data subject has the right to lodge a complaint with the competent supervisory authority where they consider that the processing of their personal data infringes applicable law.",supervisoryAuthorityName:"Italian Data Protection Authority (Garante per la Protezione dei Dati Personali)",supervisoryAuthorityAddress:"Piazza Venezia 11, 00187 Rome (Italy)",supervisoryAuthorityEmail:"protocollo@gpdp.it",supervisoryAuthorityWebsite:"https://www.garanteprivacy.it",supervisoryAuthorityLabelAddress:"Address",supervisoryAuthorityLabelEmail:"PEC / Email",supervisoryAuthorityLabelWebsite:"Website",definitionsTitle:"Definitions and legal references",personalDataTitle:"Personal Data",personalDataDescription:"Any information that, directly or indirectly, makes a natural person identified or identifiable.",usageDataTitle:"Usage Data",usageDataDescription:"Information collected automatically through this Application (e.g. IP addresses, time of request, browser used).",ownerDefinitionTitle:"Data Controller",ownerDefinitionDescription:"The natural or legal person who determines the purposes and means of the processing of personal data.",cookieDefinitionTitle:"Cookie",cookieDefinitionDescription:"Small portions of data stored within the User's browser.",processorsTitle:"Recipients and external data processors",processorsIntro:"Personal Data may be shared with the data processors listed below. Each processor has been selected for reliability and adequacy of technical and organizational safeguards.",processorPurpose:"Purpose",processorCountry:"Location",processorTransferBasis:"Transfer legal basis",processorPrivacyPolicy:"Privacy policy",unitedStates:"United States",ireland:"Ireland",malta:"Malta",france:"France",italy:"Italy",siteHostingAndCdn:"Site hosting and CDN.",contactFormTransmission:"Contact form transmission",contactFormTransmissionSmtp:"Contact form transmission via SMTP",analyticsAdsTagFonts:"Analytics 4, Ads, Tag Manager, Fonts",metaPixelConversionApi:"Meta Pixel, Conversion API",sessionRecordingHeatmap:"Session recording, heatmap",fraudPrevention:"Fraud prevention",paymentSession:"Payment session",transfersTitle:"Transfers of Personal Data outside the European Union",transfersDescription:"Some external processors are based outside the European Economic Area. Transfers occur under adequacy decisions (e.g. EU-US Data Privacy Framework) or Standard Contractual Clauses (SCC 2021/914) adopted by the European Commission, supplemented by additional measures where needed. The User can request a copy of the safeguards by contacting the Controller.",retentionTitle:"Data Retention",retentionIntro:"Personal Data is kept only for the time strictly necessary to the purposes for which it was collected.",retentionContactForms:"Contact forms",retentionAnalytics:"Analytics data",retentionMarketing:"Marketing data",retentionUntilCancellation:"Until deletion request",dpoTitle:"Data Protection Officer (DPO)",dpoIntro:"The User can contact the DPO for any matter related to the processing of their Personal Data and the exercise of GDPR rights.",dpoPhone:"Phone",policyVersionLabel:"Version",lawfulBasisTitle:"Lawful bases of processing",lawfulBasisIntro:"Each processing purpose relies on a specific lawful basis pursuant to art. 6 GDPR. Below is the mapping declared by the Controller.",lawfulBasisContract:"Performance of a contract or pre-contractual measures (art. 6.1.b GDPR)",lawfulBasisConsent:"Explicit consent of the data subject (art. 6.1.a GDPR)",lawfulBasisLegitInterest:"Legitimate interest of the Controller (art. 6.1.f GDPR) \u2014 e.g. site security, fraud prevention, aggregated statistics",lawfulBasisLegalObligation:"Compliance with a legal obligation (art. 6.1.c GDPR)",lawfulBasisVitalInterests:"Protection of vital interests of the data subject (art. 6.1.d GDPR)",lawfulBasisPublicTask:"Performance of a task carried out in the public interest (art. 6.1.e GDPR)",lawfulBasisNotDeclared:"Lawful basis not declared for this service",profilingTitle:"Automated decision-making and profiling",profilingDeclaredYes:"The Controller carries out processing that includes automated decision-making and/or profiling pursuant to art. 22 GDPR. The data subject has the right to obtain human intervention, express their opinion and contest the decision. For details on logic, significance and envisaged consequences, contact the Controller at the addresses indicated.",profilingDeclaredNo:"The Controller does not carry out automated decision-making or profiling that produces legal effects on the data subject or significantly affects them, pursuant to art. 22 GDPR. Any analytics tools (e.g. Google Analytics, Meta Pixel) are used for aggregated measurement and not for individual automated decisions.",cookieTableTitle:"Detailed list of Cookies and identifiers",cookieTableIntro:"Below are the cookies and identifiers used by each service, with purpose, duration and category. The list is exhaustive for the services active on the Application at the time of publication of this policy.",cookieTableName:"Name",cookieTableProvider:"Provider",cookieTablePurpose:"Purpose",cookieTableDuration:"Duration",cookieTableType:"Type",cookieTypeTechnical:"Technical",cookieTypeStatistical:"Statistical",cookieTypeMarketing:"Marketing",cookieTypeProfiling:"Profiling",cookieTableNoneDeclared:"No nominal cookies declared for this service (it may use dynamic identifiers or LocalStorage).",marketingConsentLabel:"I consent to receive commercial and marketing communications (newsletter, offers) pursuant to art. 6.1.a GDPR. I may withdraw consent at any time by writing to",cookiePolicyTitle:"Cookie Policy of",cookieWelcome:"Welcome to the cookie policy of",cookieIntro:"This policy will help you understand which cookies and tracking technologies we use, how we use them and what your rights are in this regard.",introduction:"Introduction",introDescription1:"This document contains information regarding the technologies that enable this Application to achieve the purposes described below. Such technologies allow the Controller to collect and store information (for example through the use of Cookies) or to use resources (for example by running a script).",introDescription2:"For simplicity, in this document these technologies are synthetically defined as \u201CTracking Tools\u201D. Some of the purposes for which they are used may require the User's consent.",usageTrackingTitle:"Use of Tracking Tools",usageTrackingDescription:"This Application uses Tracking Tools to carry out activities that are strictly necessary to ensure operation and to measure traffic through analysis.",managePreferencesTitle:"How to manage preferences",managePreferencesDescription1:"If the use of Trackers is based on consent, the User can give or withdraw such consent by setting or updating their preferences through the relevant privacy choice panel available on this Application.",managePreferencesDescription2:"Users can also use their browser settings to see which Cookies have been installed, block or delete them. However, browser settings do not allow granular control of consent by category.",preferenceCenterTitle:"Preference Center",preferenceCenterDescription:"You can manage your consents granularly or reset your settings completely to view the initial banner again.",managePreferencesButton:"Manage preferences",resetBannerButton:"Reset and reopen banner",fullPrivacyPolicyLink:"Full Privacy Policy",browserInfo:"Browser Info",browserSettingsTitle:"Browser Settings",browserSettingsDescription:"Cookies can also be managed through your browser settings (Chrome, Safari, Firefox, etc.) for total control over privacy and data storage.",trackingToolTitle:"Tracking Tool",trackingToolDescription:"Any technology \u2014 e.g. Cookies, unique identifiers, web beacons \u2014 that allows users to be tracked, collecting or saving information on the device.",dataSubjectTitle:"Data Subject",dataSubjectDescription:"The natural person to whom the Personal Data refers.",purposes:"Purposes",dataCollected:"Data collected",statistics:"Statistics",optimization:"Optimization",marketing:"Marketing",targeting:"Targeting",behaviorAnalysis:"Behavior analysis",sessionScreencast:"Session screencast",usageData:"Usage data",trackingTools:"Tracking Tools",tagManagement:"Tag management",userDatabaseManagement:"User database management",sendingMessages:"Sending messages",name:"Name",surname:"Last Name",paymentManagement:"Payment management",variousDataAsSpecified:"Various types of Data as specified in the privacy policy of the service",externalContent:"Displaying content from external platforms",geographicPosition:"Geographic position",contactUser:"Contacting the user",requestManagement:"Request management",variousData:"Various data",contentDisplay:"Content display",variousDataTypes:"Various types of Data",contactForm:"Contact Form",youtubeWidget:"YouTube Video Widget",googleMapsWidget:"Google Maps Widget",noActiveService:"No active service"}};var it={it:"it-IT",en:"en-US"},fe=new Map;function $(e){return e&&e.toLowerCase().startsWith("en")?"en":"it"}function I(e){let t=fe.get(e);if(t)return t;let o=H[e]??H.it,i=H.it,a=r=>o[r]??i[r];return fe.set(e,a),a}var ye=e=>it[e];function he(){if(typeof crypto<"u"){if(typeof crypto.randomUUID=="function")try{return crypto.randomUUID()}catch{}if(typeof crypto.getRandomValues=="function"){let t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let o=Array.from(t,i=>i.toString(16).padStart(2,"0"));return`${o.slice(0,4).join("")}-${o.slice(4,6).join("")}-${o.slice(6,8).join("")}-${o.slice(8,10).join("")}-${o.slice(10,16).join("")}`}}let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0");return`${e()}-${e().slice(0,4)}-4${e().slice(0,3)}-${e().slice(0,4)}-${e()}${e().slice(0,4)}`}var J="graffico-legal-consent",ve=1e3*60*60*24*180,j={necessary:!0,statistical:!1,marketing:!1},be=Object.freeze({language:"it",consent:j,showBanner:!1,isModalOpen:!1,hydrated:!1}),S=be,ee=new Set;function at(){for(let e of ee)e()}function L(e){let t=!1;for(let o in e)if(S[o]!==e[o]){t=!0;break}t&&(S={...S,...e},at())}function D(e){return ee.add(e),()=>{ee.delete(e)}}var P=()=>S,F=()=>be;function te(e){L({language:$(e)})}function nt(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.necessary!="boolean"||typeof t.statistical!="boolean"||typeof t.marketing!="boolean")return null;let o={necessary:!0,statistical:t.statistical,marketing:t.marketing};return typeof t.consentId=="string"&&t.consentId.length>0&&t.consentId.length<100&&(o.consentId=t.consentId),typeof t.timestamp=="string"&&t.timestamp.length<50&&(o.timestamp=t.timestamp),typeof t.expiresAt=="number"&&Number.isFinite(t.expiresAt)&&(o.expiresAt=t.expiresAt),typeof t.policyVersion=="string"&&t.policyVersion.length<100&&(o.policyVersion=t.policyVersion),(t.source==="banner"||t.source==="modal"||t.source==="gpc-auto"||t.source==="api")&&(o.source=t.source),o}function rt(){if(typeof navigator>"u")return!1;let e=navigator;return e.globalPrivacyControl===!0||typeof e.doNotTrack=="string"&&e.doNotTrack==="1"}function st(e){return typeof e.expiresAt=="number"&&Date.now()>e.expiresAt}function lt(e,t){return t?e.policyVersion!==t:!1}function oe(e={}){if(S.hydrated||typeof window>"u")return;let t;try{let s=window.localStorage.getItem(J);if(s){let g=JSON.parse(s);t=nt(g)??void 0}}catch{}let o=t&&st(t),i=t&&lt(t,e.policyVersion),a=t&&!o&&!i?t:void 0;if(!a&&(o||i))try{window.localStorage.removeItem(J)}catch{}let r={language:e.language??S.language,activePolicyVersion:e.policyVersion,hydrated:!0};if(a){L({...r,consent:a,showBanner:!1});return}if(rt()){L(r),K(j,"gpc-auto");return}L({...r,consent:j,showBanner:!0})}function K(e,t){let o=S.consent.consentId||he(),i={...e,necessary:!0,consentId:o,timestamp:new Date().toISOString(),expiresAt:Date.now()+ve,policyVersion:S.activePolicyVersion,source:t};try{window.localStorage.setItem(J,JSON.stringify(i))}catch{}return L({consent:i,showBanner:!1,isModalOpen:!1}),i}function ie(e,t="modal"){return K(e,t)}function V(e="banner"){return K({necessary:!0,statistical:!0,marketing:!0},e)}function O(e="banner"){return K(j,e)}function ae(){try{window.localStorage.removeItem(J)}catch{}L({consent:j,showBanner:!0,isModalOpen:!1})}function C(e){L({isModalOpen:e})}import{jsx as pt}from"react/jsx-runtime";var ne=ct(null);function ut({config:e,children:t}){let o=dt(()=>({config:e}),[e]);return we(()=>{oe({policyVersion:e.policyVersion})},[]),we(()=>{te($(e.language))},[e.language]),pt(ne.Provider,{value:o,children:t})}function N(){let e=xe(ne);if(!e)throw new Error("useLegalConfig deve essere usato dentro <LegalProvider>");return e.config}function E(){return xe(ne)?.config??null}import{useSyncExternalStore as R}from"react";var _=()=>R(D,()=>P().language,()=>F().language),M=()=>R(D,()=>P().consent,()=>F().consent),p=e=>R(D,()=>{let t=P();return t.hydrated?t.consent[e]:void 0},()=>{}),gt=()=>R(D,()=>P().hydrated,()=>!1),U=()=>R(D,()=>P().showBanner,()=>F().showBanner),re=()=>R(D,()=>P().isModalOpen,()=>F().isModalOpen);function T(){return I(_())}var ke="#2c5282",w=e=>e.primaryColor??ke,Ce=e=>e.domain||e.name;var mt={s:1e3,m:6e4,h:36e5,d:864e5,w:6048e5,M:2592e6,y:31536e6},ft={s:"s",sec:"s",m:"M",min:"m",h:"h",hr:"h",d:"d",day:"d",days:"d",w:"w",week:"w",weeks:"w",M:"M",month:"M",months:"M",y:"y",year:"y",years:"y"},yt=/^(\d+)\s*(min|sec|hr|days?|weeks?|months?|years?|[smhdwMy])$/;function ht(e){if(typeof e!="string")return null;let t=e.trim().match(yt);if(!t)return null;let o=Number(t[1]);if(!Number.isFinite(o)||o<0)return null;let i=ft[t[2]];return i?o*mt[i]:null}function Te(e,t=new Date){let o=ht(e);return o===null?null:new Date(t.getTime()+o)}function Se(e,t){if(e)try{e(t)}catch{}}function De(e,t){if(!(typeof window>"u"))try{fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0,credentials:"same-origin"}).catch(()=>{})}catch{}}import{useEffect as vt,useState as bt}from"react";import{jsx as l,jsxs as f}from"react/jsx-runtime";var Y=()=>{let e=N(),t=M(),o=re(),i=_(),a=T(),[r,s]=bt(t),g=w(e);if(vt(()=>{s(t)},[t,o]),!o)return null;let y=d=>{d!=="necessary"&&s(h=>({...h,[d]:!h[d]}))};return l("div",{className:"fixed inset-0 z-10000 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm animate-in fade-in duration-300",children:f("div",{className:"w-full max-w-2xl max-h-[90vh] bg-white/95 text-gray-900 border-gray-100 rounded-3xl shadow-2xl overflow-hidden flex flex-col animate-in zoom-in-95 duration-300",children:[f("div",{className:"p-6 md:p-8 border-b border-gray-100 flex items-center justify-between",children:[f("div",{children:[l("h2",{className:"text-2xl font-black tracking-tight text-gray-900",children:a("preferencesTitle")}),l("p",{className:"text-sm text-gray-500 font-medium",children:a("preferencesSubtitle")})]}),l("button",{onClick:()=>C(!1),"aria-label":a("close"),className:"p-2 text-gray-400 hover:text-gray-900 transition-colors",children:l("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),f("div",{className:"flex-1 overflow-y-auto p-6 md:p-8",children:[l("p",{className:"text-sm text-gray-600 leading-relaxed",children:a("preferencesDescription")}),l("div",{className:"space-y-4",children:f("div",{className:"flex flex-col gap-4",children:[f("div",{className:"p-4 bg-gray-50 rounded-2xl border border-gray-100 flex items-center justify-between",children:[f("div",{className:"max-w-[80%]",children:[l("h3",{className:"font-bold text-gray-900",children:a("necessaryTitle")}),l("p",{className:"text-xs text-gray-500 mt-0.5",children:a("necessaryDescription")})]}),f("div",{className:"relative inline-flex items-center cursor-not-allowed opacity-50",children:[l("div",{className:"w-11 h-6 rounded-full",style:{backgroundColor:g}}),l("div",{className:"absolute left-6 w-4 h-4 bg-white rounded-full"})]})]}),l(Pe,{title:a("measurementTitle"),description:a("measurementDescription"),active:r.statistical,primaryColor:g,onClick:()=>y("statistical")}),l(Pe,{title:a("marketingTitle"),description:a("marketingDescription"),active:r.marketing,primaryColor:g,onClick:()=>y("marketing")})]})}),t.consentId&&f("div",{className:"pt-8 mt-4 border-t border-gray-100",children:[l("div",{className:"bg-gray-50/50 p-4 rounded-2xl border border-dashed border-gray-200",children:f("div",{className:"flex flex-col gap-2",children:[f("div",{className:"flex items-center justify-between",children:[l("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:a("consentId")}),l("span",{className:"text-[10px] font-mono text-gray-500 bg-white px-2 py-0.5 rounded border border-gray-100",children:t.consentId})]}),f("div",{className:"flex items-center justify-between",children:[l("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:a("consentDate")}),l("span",{className:"text-[10px] font-bold text-gray-500",children:t.timestamp?new Date(t.timestamp).toLocaleString(ye(i)):"-"})]})]})}),l("p",{className:"text-[9px] text-gray-400 mt-3 leading-relaxed",children:a("legalProofDescription")})]})]}),f("div",{className:"p-6 bg-gray-50 border-t border-gray-100 flex flex-col sm:flex-row gap-3",children:[l("button",{onClick:()=>O("modal"),className:"flex-1 px-6 py-3 border border-gray-300 text-gray-700 font-bold rounded-xl hover:bg-white transition-all text-sm uppercase tracking-wider",children:a("declineAll")}),l("button",{onClick:()=>ie(r,"modal"),className:"flex-1 px-6 py-3 bg-gray-900 text-white font-bold rounded-xl hover:bg-black transition-all text-sm uppercase tracking-wider",children:a("saveAndContinue")}),l("button",{onClick:()=>V("modal"),className:"flex-1 px-6 py-3 text-white font-bold rounded-xl hover:opacity-90 transition-all text-sm uppercase tracking-wider",style:{backgroundColor:g},children:a("acceptAll")})]})]})})};function Pe({title:e,description:t,active:o,primaryColor:i,onClick:a}){return f("div",{className:"p-4 bg-white rounded-2xl border border-gray-100 flex items-center justify-between transition-colors cursor-pointer group/item",onClick:a,children:[f("div",{className:"max-w-[80%]",children:[l("h3",{className:"font-bold text-gray-900",children:e}),l("p",{className:"text-xs text-gray-500 mt-0.5",children:t})]}),l("div",{className:"relative inline-flex items-center h-6 rounded-full w-11 transition-colors duration-200",style:{backgroundColor:o?i:"#e5e7eb"},children:l("span",{className:`inline-block w-4 h-4 transform bg-white rounded-full transition-transform duration-200 ${o?"translate-x-6":"translate-x-1"}`})})]})}import{jsx as se,jsxs as xt}from"react/jsx-runtime";var wt={"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","top-right":"top-6 right-6","top-left":"top-6 left-6"},le=()=>{let e=N(),t=U(),o=T();if(t)return null;let i=e.togglePosition??"bottom-right";return xt("button",{onClick:()=>C(!0),className:`fixed ${wt[i]} z-8000 w-12 h-12 bg-white rounded-xl shadow-xl border border-gray-100 flex items-center justify-center hover:scale-110 active:scale-95 transition-all group`,style:{color:w(e)},"aria-label":o("privacyPreferences"),children:[se("svg",{className:"w-6 h-6 group-hover:rotate-12 transition-transform",fill:"currentColor",viewBox:"0 0 24 24",children:se("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}),se("span",{className:"absolute right-full mr-3 px-2 py-1 bg-black text-white text-[10px] rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none",children:o("privacyPreferences")})]})};import{Fragment as ze,jsx as v,jsxs as A}from"react/jsx-runtime";var kt=()=>{let e=N(),t=U(),o=T();if(!t)return A(ze,{children:[v(le,{}),v(Y,{})]});let i=e.theme!=="light",a=w(e);return A(ze,{children:[v("div",{role:"dialog","aria-modal":"false","aria-labelledby":"graffico-legal-banner-title",className:"fixed bottom-0 left-0 right-0 p-3 md:p-8 z-9000 flex justify-center animate-in slide-in-from-bottom-full duration-500",children:A("div",{className:`w-full max-w-5xl rounded-3xl md:rounded-4xl shadow-[0_20px_50px_rgba(0,0,0,0.3)] backdrop-blur-xl border p-4 md:p-8 flex flex-col md:flex-row items-center gap-4 md:gap-6 relative overflow-hidden ${i?"bg-black/95 text-white border-white/10":"bg-white/95 text-gray-900 border-gray-100"}`,children:[v("div",{className:"absolute -bottom-24 -right-24 w-64 h-64 blur-[100px] opacity-20 transition-colors pointer-events-none",style:{backgroundColor:a}}),A("div",{className:"grow space-y-2 md:space-y-3 text-center md:text-left relative z-10",children:[v("h2",{id:"graffico-legal-banner-title",className:"text-base md:text-xl font-black tracking-tight",children:o("bannerTitle")}),A("p",{className:`text-[11px] md:text-sm leading-relaxed max-w-3xl font-medium ${i?"text-gray-400":"text-gray-500"}`,children:[o("bannerDescription"),v("span",{className:i?"text-white":"text-gray-900",children:o("bannerDescriptionMeasurement")}),o("bannerDescriptionEnd"),v("a",{href:"/cookie-policy",className:"underline hover:opacity-80 transition-opacity font-bold",style:{color:i?"inherit":a},children:o("cookiePolicyLink")})]})]}),A("div",{className:"flex flex-col items-center gap-4 w-full md:w-auto relative z-10",children:[A("div",{className:"flex flex-row items-center gap-2 md:gap-3 w-full md:w-auto",children:[v("button",{onClick:()=>O("banner"),className:`cursor-pointer flex-1 md:flex-initial px-4 md:px-8 py-2.5 md:py-3 font-black rounded-xl md:rounded-2xl transition-all text-[10px] md:text-[11px] uppercase tracking-widest whitespace-nowrap md:shadow-lg ${i?"bg-white text-gray-900 hover:bg-gray-100":"bg-gray-900 text-white hover:bg-black"}`,children:o("decline")}),v("button",{onClick:()=>V("banner"),className:"cursor-pointer flex-1 md:flex-initial px-4 md:px-8 py-2.5 md:py-3 text-white font-black rounded-xl md:rounded-2xl transition-all text-[10px] md:text-[11px] uppercase tracking-widest whitespace-nowrap md:shadow-lg",style:{backgroundColor:a},children:o("accept")})]}),v("button",{onClick:()=>C(!0),className:`cursor-pointer text-[9px] md:text-[10px] font-bold uppercase tracking-widest underline-offset-4 hover:underline transition-opacity ${i?"text-gray-400 hover:text-white":"text-gray-500 hover:text-gray-900"}`,children:o("customize")})]})]})}),v(Y,{})]})};import{useMemo as Tt,useState as St}from"react";var Le={"google-analytics":{id:"google-analytics",name:"Google Analytics 4",category:"automatic",purposes:["Statistica","Ottimizzazione"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_ga",provider:"google-analytics.com",purpose:"Identificatore univoco utente per statistiche di sessione",duration:"2 anni",type:"statistical"},{name:"_ga_<container-id>",provider:"google-analytics.com",purpose:"Stato di sessione GA4",duration:"2 anni",type:"statistical"},{name:"_gid",provider:"google-analytics.com",purpose:"Identificatore utente giornaliero",duration:"24 ore",type:"statistical"}]},"facebook-pixel":{id:"facebook-pixel",name:"Meta Pixel",category:"automatic",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_fbp",provider:"facebook.com",purpose:"Identificatore browser per attribuzione campagne",duration:"90 giorni",type:"marketing"},{name:"fr",provider:"facebook.com",purpose:"Pubblicit\xE0 mirata e misurazione",duration:"90 giorni",type:"marketing"},{name:"_fbc",provider:"facebook.com",purpose:"Click-ID per attribuzione di campagna",duration:"90 giorni",type:"marketing"}]},"google-ads":{id:"google-ads",name:"Google Ads",category:"marketing",purposes:["Marketing","Targeting","Misurazione conversioni"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"IDE",provider:"doubleclick.net",purpose:"Profilazione e remarketing Google Ads",duration:"13 mesi",type:"marketing"},{name:"_gcl_au",provider:"google.com",purpose:"Misurazione conversioni cross-site",duration:"90 giorni",type:"marketing"},{name:"NID",provider:"google.com",purpose:"Memorizza preferenze utente per annunci",duration:"6 mesi",type:"marketing"}]},"linkedin-insight":{id:"linkedin-insight",name:"LinkedIn Insight Tag",category:"automatic",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"li_sugr",provider:"linkedin.com",purpose:"Inferenza identit\xE0 per attribuzione campagne",duration:"90 giorni",type:"marketing"},{name:"lidc",provider:"linkedin.com",purpose:"Routing data center",duration:"24 ore",type:"technical"}]},"tiktok-pixel":{id:"tiktok-pixel",name:"TikTok Pixel",category:"automatic",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_ttp",provider:"tiktok.com",purpose:"Identificatore univoco utente TikTok Pixel",duration:"13 mesi",type:"marketing"}]},"microsoft-clarity":{id:"microsoft-clarity",name:"Microsoft Clarity",category:"automatic",purposes:["Statistica","Analisi del comportamento"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento","Screencast sessione"],lawfulBasis:"consent",cookies:[{name:"_clck",provider:"clarity.ms",purpose:"ID utente persistente Clarity",duration:"1 anno",type:"statistical"},{name:"_clsk",provider:"clarity.ms",purpose:"Sessione di registrazione Clarity",duration:"24 ore",type:"statistical"}]},hotjar:{id:"hotjar",name:"Hotjar",category:"automatic",purposes:["Statistica","Analisi del comportamento"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_hjSessionUser_<id>",provider:"hotjar.com",purpose:"Identificatore utente persistente",duration:"1 anno",type:"statistical"},{name:"_hjSession_<id>",provider:"hotjar.com",purpose:"Sessione di registrazione",duration:"30 minuti",type:"statistical"}]},"google-tag-manager":{id:"google-tag-manager",name:"Google Tag Manager",category:"automatic",purposes:["Gestione dei tag"],dataCollected:["Dati di utilizzo"],lawfulBasis:"legitimate-interest"},mailchimp:{id:"mailchimp",name:"Mailchimp",category:"provided",purposes:["Gestione database Utenti","Invio messaggi"],dataCollected:["Email","Nome","Cognome","Dati di utilizzo"],lawfulBasis:"consent"},newsletter:{id:"newsletter",name:"Newsletter",category:"provided",purposes:["Gestione database Utenti","Invio messaggi"],dataCollected:["Email","Nome","Cognome"],lawfulBasis:"consent"},stripe:{id:"stripe",name:"Stripe",category:"automatic",purposes:["Gestione dei pagamenti"],dataCollected:["Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio"],lawfulBasis:"contract",cookies:[{name:"__stripe_mid",provider:"stripe.com",purpose:"Prevenzione frodi",duration:"1 anno",type:"technical"},{name:"__stripe_sid",provider:"stripe.com",purpose:"Sessione di pagamento",duration:"30 minuti",type:"technical"}]},paypal:{id:"paypal",name:"PayPal",category:"automatic",purposes:["Gestione dei pagamenti"],dataCollected:["Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio"],lawfulBasis:"contract"},youtube:{id:"youtube",name:"YouTube Video Widget",category:"automatic",purposes:["Visualizzazione di contenuti da piattaforme esterne"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"VISITOR_INFO1_LIVE",provider:"youtube.com",purpose:"Stima banda utente per pre-buffering",duration:"6 mesi",type:"statistical"},{name:"YSC",provider:"youtube.com",purpose:"Sessione video corrente",duration:"Sessione",type:"statistical"}]},"google-maps":{id:"google-maps",name:"Google Maps Widget",category:"automatic",purposes:["Visualizzazione di contenuti da piattaforme esterne"],dataCollected:["Dati di utilizzo","Posizione geografica","Strumenti di Tracciamento"],lawfulBasis:"consent"},"contact-form":{id:"contact-form",name:"Modulo di contatto",category:"provided",purposes:["Contattare l'utente","Gestione richieste"],dataCollected:["Email","Nome","Cognome","Dati vari"],lawfulBasis:"contract"},"google-fonts":{id:"google-fonts",name:"Google Fonts",category:"automatic",purposes:["Visualizzazione dei contenuti"],dataCollected:["Dati di utilizzo","Varie tipologie di Dati"],lawfulBasis:"legitimate-interest"}},ce=e=>typeof e=="string"?Le[e]||{id:e,name:e,category:"automatic",purposes:[],dataCollected:[]}:e,Ct={Statistica:"statistics",Ottimizzazione:"optimization",Marketing:"marketing",Targeting:"targeting","Analisi del comportamento":"behaviorAnalysis","Screencast sessione":"sessionScreencast","Dati di utilizzo":"usageData","Strumenti di Tracciamento":"trackingTools","Gestione dei tag":"tagManagement","Gestione database Utenti":"userDatabaseManagement","Invio messaggi":"sendingMessages",Nome:"name",Cognome:"surname",Email:"email","Gestione dei pagamenti":"paymentManagement","Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio":"variousDataAsSpecified","Visualizzazione di contenuti da piattaforme esterne":"externalContent","Posizione geografica":"geographicPosition","Contattare l'utente":"contactUser","Gestione richieste":"requestManagement","Dati vari":"variousData","Visualizzazione dei contenuti":"contentDisplay","Varie tipologie di Dati":"variousDataTypes","Modulo di Contatto":"contactForm","Modulo di contatto":"contactForm","Widget Video YouTube":"youtubeWidget","Widget Google Maps":"googleMapsWidget","Stati Uniti":"unitedStates",Irlanda:"ireland",Malta:"malta",Francia:"france",Italia:"italy","Hosting e CDN del sito.":"siteHostingAndCdn","Trasmissione form contatti":"contactFormTransmission","Trasmissione form contatti tramite SMTP":"contactFormTransmissionSmtp","Analytics 4, Ads, Tag Manager, Fonts":"analyticsAdsTagFonts","Meta Pixel, Conversion API":"metaPixelConversionApi","Session recording, heatmap":"sessionRecordingHeatmap","Prevenzione frodi":"fraudPrevention","Sessione di pagamento":"paymentSession",Statistics:"statistics",Optimization:"optimization","Behavior analysis":"behaviorAnalysis","Session screencast":"sessionScreencast","Usage data":"usageData","Tracking Tools":"trackingTools","Tag management":"tagManagement","User database management":"userDatabaseManagement","Sending messages":"sendingMessages",Name:"name","Last Name":"surname",Surname:"surname","Payment management":"paymentManagement","Various types of Data as specified in the privacy policy of the service":"variousDataAsSpecified","Displaying content from external platforms":"externalContent","Geographic position":"geographicPosition","Contacting the user":"contactUser","Request management":"requestManagement","Various data":"variousData","Content display":"contentDisplay","Various types of Data":"variousDataTypes","Contact Form":"contactForm","YouTube Video Widget":"youtubeWidget","Google Maps Widget":"googleMapsWidget","United States":"unitedStates",Ireland:"ireland",France:"france",Italy:"italy","Site hosting and CDN.":"siteHostingAndCdn","Contact form transmission":"contactFormTransmission","Contact form transmission via SMTP":"contactFormTransmissionSmtp","Fraud prevention":"fraudPrevention","Payment session":"paymentSession"},Ne=(e,t)=>{let o=e.trim().replace(/\s+/g," "),i=Ct[o];return i?t(i):e};import{Fragment as Rt,jsx as n,jsxs as c}from"react/jsx-runtime";var de=4,Ie=({id:e})=>{switch(e){case"google-analytics":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:[n("path",{d:"M12 2L4.5 20.29L5.21 21L12 18L18.79 21L19.5 20.29L12 2Z",fill:"currentColor",fillOpacity:"0.2"}),n("path",{d:"M12 18V2M12 18L5.21 21L4.5 20.29L12 2M12 18L18.79 21L19.5 20.29L12 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});case"facebook-pixel":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:n("path",{d:"M18 2H15C12.7909 2 11 3.79086 11 6V9H8V13H11V22H15V13H18L19 9H15V6C15 5.44772 15.4477 5 16 5H18V2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"google-fonts":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:n("path",{d:"M4 7V4H20V7M5 20H19M12 4V20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"linkedin-insight":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),n("rect",{x:"2",y:"9",width:"4",height:"12"}),n("circle",{cx:"4",cy:"4",r:"2"})]});case"tiktok-pixel":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n("path",{d:"M9 12a4 4 0 1 0 4 4V4a5 5 0 0 0 5 5"})});case"microsoft-clarity":case"hotjar":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),n("circle",{cx:"12",cy:"12",r:"3"})]});case"google-tag-manager":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n("path",{d:"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"})});case"mailchimp":case"newsletter":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"m22 2-7 20-4-9-9-4Z"}),n("path",{d:"M22 2 11 13"})]});case"stripe":case"paypal":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),n("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]});case"youtube":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"}),n("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"})]});case"google-maps":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),n("circle",{cx:"12",cy:"10",r:"3"})]});case"contact-form":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:n("path",{d:"M3 8L10.89 13.26C11.56 13.71 12.44 13.71 13.11 13.26L21 8M5 19H19C20.1 19 21 18.1 21 17V7C21 5.9 20.1 5 19 5H5C3.9 5 3 5.9 3 7V17C3 18.1 3.9 19 5 19Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});default:return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:[n("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2"}),n("path",{d:"M12 8V16M8 12H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}},Dt=({config:e,language:t}={})=>{let o=E(),i=_(),a=e??o,r=t??i,s=I(r),g=a?w(a):"#2c5282",{automaticServices:y,providedServices:d}=Tt(()=>{if(!a)return{automaticServices:[],providedServices:[]};let h=m=>Ne(m,s),k=(a.services??[]).map(m=>{let u=ce(m);return{...u,name:h(u.name),purposes:u.purposes.map(h),dataCollected:u.dataCollected.map(h)}});return{automaticServices:k.filter(m=>m.category==="automatic"),providedServices:k.filter(m=>m.category==="provided")}},[a,r,s]);return a?c("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-1",children:[n(Me,{variant:"compact",title:s("automaticDataTitle"),subtitle:s("monitorTitle"),description:c(Rt,{children:[s("automaticDataDescription"),n("span",{className:"text-gray-900 font-black",children:Ce(a)})," ",s("automaticDataIncludes")]}),emptyLabel:s("noActiveService"),primaryColor:g,services:y,icon:n(Mt,{}),emptyIcon:n(It,{})}),n(Me,{variant:"expanded",title:s("providedDataTitle"),subtitle:s("supportTitle"),description:s("providedDataDescription"),emptyLabel:s("noActiveService"),primaryColor:g,services:d,icon:n(At,{}),emptyIcon:n(Et,{})})]}):null};function Me({variant:e,title:t,subtitle:o,description:i,emptyLabel:a,primaryColor:r,services:s,icon:g,emptyIcon:y}){let[d,h]=St(0),k=Math.ceil(s.length/de),m=s.slice(d*de,(d+1)*de);return c("div",{className:"bg-white p-8 rounded-[2.5rem] border border-gray-100 shadow-sm flex flex-col transition-all hover:shadow-xl group/card min-h-[750px]",children:[c("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8",children:[c("div",{className:"flex items-center gap-4",children:[n("div",{className:"p-3 rounded-2xl shrink-0",style:{backgroundColor:`${r}1a`,color:r},children:g}),c("div",{children:[n("h3",{className:"text-xl sm:text-2xl font-black text-gray-900 tracking-tight leading-tight",children:t}),n("p",{className:"text-[10px] text-gray-400 font-black uppercase tracking-widest mt-0.5",children:o})]})]}),k>1&&n(Pt,{page:d,totalPages:k,onChange:h})]}),n("p",{className:"text-gray-500 mb-8 text-sm leading-relaxed font-medium",children:i}),n("div",{className:"space-y-4 grow",children:m.length>0?n("div",{className:"grid grid-cols-1 gap-4 animate-in fade-in slide-in-from-bottom-2 duration-300",children:m.map(u=>e==="compact"?n(zt,{service:u,primaryColor:r},u.id):n(Lt,{service:u,primaryColor:r},u.id))}):n(Nt,{icon:y,label:a})})]})}function Pt({page:e,totalPages:t,onChange:o}){return c("div",{className:"flex items-center gap-2 bg-gray-50/50 p-1.5 rounded-2xl border border-gray-100 self-end sm:self-center",children:[n(Ae,{disabled:e===0,onClick:()=>o(e-1),d:"M15 19l-7-7 7-7"}),c("span",{className:"text-[10px] font-black font-mono text-gray-500 w-10 text-center",children:[e+1," / ",t]}),n(Ae,{disabled:e>=t-1,onClick:()=>o(e+1),d:"M9 5l7 7-7 7"})]})}function Ae({disabled:e,onClick:t,d:o}){return n("button",{disabled:e,onClick:t,className:`p-2 rounded-xl transition-all ${e?"opacity-20 cursor-not-allowed":"bg-white hover:bg-gray-100 active:scale-95 text-gray-900 shadow-sm"}`,children:n("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:o})})})}function Ee({tags:e}){return n("div",{className:"flex flex-wrap gap-2",children:e.map(t=>n("span",{className:"px-3 py-1 bg-white text-gray-600 text-[11px] font-bold rounded-xl border border-gray-100 shadow-sm",children:t},t))})}function zt({service:e,primaryColor:t}){return c("div",{className:"flex items-center gap-4 bg-gray-50/50 p-5 rounded-3xl border border-gray-100 hover:bg-white transition-all group",children:[n("div",{className:"w-12 h-12 rounded-2xl flex items-center justify-center shrink-0 shadow-sm border border-gray-100 transition-all group-hover:scale-110 bg-white",style:{color:t},children:n(Ie,{id:e.id})}),c("div",{children:[n("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name}),n("div",{className:"mt-2",children:n(Ee,{tags:e.dataCollected})})]})]})}function Lt({service:e,primaryColor:t}){return c("div",{className:"p-6 bg-gray-50/50 rounded-3xl border border-gray-100 hover:bg-white transition-all group",children:[c("div",{className:"flex items-center justify-between mb-4",children:[c("div",{className:"flex items-center gap-3",children:[n("div",{className:"text-gray-400 group-hover:scale-110 transition-transform",style:{color:t},children:n(Ie,{id:e.id})}),n("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name})]}),n("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:t}})]}),n(Ee,{tags:e.dataCollected})]})}function Nt({icon:e,label:t}){return c("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[n("div",{className:"w-12 h-12 rounded-full bg-gray-50 flex items-center justify-center mb-3",children:e}),n("p",{className:"text-xs text-gray-400 font-bold uppercase tracking-widest",children:t})]})}var Mt=()=>c("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04"}),n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})]}),At=()=>n("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),It=()=>n("svg",{className:"w-6 h-6 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),Et=()=>n("svg",{className:"w-6 h-6 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})});import{Fragment as ue,jsx as pe}from"react/jsx-runtime";function _t({category:e,children:t,fallback:o=null,renderWhileHydrating:i=!1}){let a=p(e);return a===void 0?pe(ue,{children:i?t:o}):a?pe(ue,{children:t}):pe(ue,{children:o})}import{jsx as z,jsxs as B}from"react/jsx-runtime";function Bt({language:e,primaryColor:t}){let o=I(e);return B("div",{className:"p-12 rounded-[3.5rem] text-white space-y-8 shadow-2xl relative overflow-hidden",style:{backgroundColor:t,boxShadow:`0 20px 50px ${t}33`},children:[B("div",{className:"relative z-10",children:[z("h3",{className:"text-3xl font-black",children:o("preferenceCenterTitle")}),z("p",{className:"text-white/80 font-medium mt-3 max-w-xl",children:o("preferenceCenterDescription")}),B("div",{className:"pt-10 flex flex-wrap gap-4",children:[z("button",{onClick:()=>C(!0),className:"px-8 py-4 bg-white text-gray-900 font-black rounded-2xl hover:scale-105 transition-all text-sm uppercase tracking-widest shadow-xl",style:{color:t},children:o("managePreferencesButton")}),z("button",{onClick:ae,className:"px-8 py-4 bg-white/10 hover:bg-white/20 text-white font-black rounded-2xl transition-all text-sm uppercase tracking-widest border border-white/10",children:o("resetBannerButton")})]}),B("div",{className:"pt-12 flex flex-wrap gap-8 text-[10px] font-black uppercase tracking-widest",children:[z("a",{href:"/privacy-policy",className:"text-white/70 hover:text-white transition-colors underline decoration-2 underline-offset-4",children:o("fullPrivacyPolicyLink")}),B("span",{className:"cursor-help text-white/70 hover:text-white transition-colors relative group",children:[o("browserInfo"),B("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-4 w-72 p-5 bg-white text-gray-900 text-[12px] font-medium leading-relaxed rounded-2xl opacity-0 group-hover:opacity-100 transition-all pointer-events-none shadow-[0_20px_50px_rgba(0,0,0,0.3)] z-50 normal-case tracking-normal border border-gray-100 scale-95 group-hover:scale-100 origin-bottom",children:[z("p",{className:"font-black text-[10px] uppercase tracking-widest mb-2",style:{color:t},children:o("browserSettingsTitle")}),o("browserSettingsDescription"),z("div",{className:"absolute top-full left-1/2 -translate-x-1/2 border-8 border-transparent border-t-white"})]})]})]})]}),z("div",{className:"absolute -bottom-24 -right-24 w-80 h-80 bg-white/10 rounded-full blur-3xl"})]})}import{useEffect as Gt}from"react";import{jsx as Ft}from"react/jsx-runtime";var jt=`
2
+ import{createContext as Ct,useContext as Le,useEffect as ze,useMemo as xt}from"react";var Z={it:{legal:"Legal",lastUpdated:"Ultima modifica",email:"Email",vat:"P.IVA",generatedBy:"Generato professionalmente da",bannerTitle:"Informativa sui Cookie",bannerDescription:"Noi e terze parti selezionate utilizziamo cookie o tecnologie simili per finalit\xE0 tecniche e, con il tuo consenso, anche per le finalit\xE0 di ",bannerDescriptionMeasurement:"misurazione",bannerDescriptionMarketing:"marketing e profilazione",bannerDescriptionMeasurementAndMarketing:"misurazione, marketing e profilazione",bannerDescriptionEnd:" come specificato nella ",bannerDescriptionTechnicalOnly:"Noi e terze parti selezionate utilizziamo cookie o tecnologie simili esclusivamente per finalit\xE0 tecniche, come specificato nella ",cookiePolicyLink:"cookie policy",decline:"Rifiuta",customize:"Personalizza",accept:"Accetta",close:"Chiudi",preferencesTitle:"Preferenze Privacy",preferencesSubtitle:"Personalizza come trattiamo i tuoi dati",preferencesDescription:'Questo pannello ti permette di esprimere alcune preferenze relative al trattamento delle tue informazioni personali. Puoi rivedere e modificare le tue scelte in qualsiasi momento. Per rifiutare il tuo consenso alle attivit\xE0 di trattamento descritte di seguito, disattiva i singoli comandi o utilizza il pulsante "Rifiuta tutto".',necessaryTitle:"Strettamente necessari",necessaryDescription:"Questi strumenti sono richiesti per le funzionalit\xE0 base del sito e non possono essere disattivati.",measurementTitle:"Misurazione",measurementDescription:"Ci permettono di misurare il traffico e analizzare il tuo comportamento per migliorare il servizio.",marketingTitle:"Marketing e Profilazione",marketingDescription:"Utilizzati per inviarti comunicazioni commerciali personalizzate in base ai tuoi interessi.",consentId:"IDC (Consent ID)",consentDate:"Data Consenso",consentPolicyVersion:"Versione policy",consentSource:"Origine",legalProofDescription:"Questi identificativi fungono da prova legale del tuo consenso secondo le linee guida GDPR. Puoi richiederne la cancellazione in qualsiasi momento.",consentCheckboxLabel:"Acconsento al trattamento dei miei dati personali per la gestione della richiesta come descritto nella",privacyPolicyLink:"privacy policy",declineAll:"Rifiuta tutto",saveAndContinue:"Salva e continua",acceptAll:"Accetta tutto",monitorTitle:"Monitoraggio e Stats",supportTitle:"Supporto e Feedback",privacyPreferences:"Preferenze Privacy",privacyPolicyTitle:"Privacy Policy di",privacyWelcome:"Benvenuto nella privacy policy di",privacyIntro:"Questa policy ti aiuter\xE0 a comprendere quali dati raccogliamo, perch\xE9 li raccogliamo e quali sono i tuoi diritti in merito.",ownerTitle:"Titolare del Trattamento dei Dati",dataSummaryTitle:"Riepilogo dei Dati",automaticDataTitle:"Dati raccolti automaticamente",automaticDataDescription:"Raccogliamo automaticamente i tuoi dati, ad esempio quando visiti ",automaticDataIncludes:". Include: indirizzo IP, Dati di utilizzo, Strumenti di Tracciamento, numero di Utenti, statistiche delle sessioni, identificativi del dispositivo (user-agent, lingua, fuso orario).",providedDataTitle:"Dati forniti dall'Utente",providedDataDescription:"Raccogliamo i dati che ci fornisci, ad esempio quando compili un modulo di contatto. Include: nome, email.",treatmentDetailsTitle:"Dettagli sul trattamento dei Dati Personali",treatmentDetailsDescription:"Di seguito sono riportati i dettagli sulle modalit\xE0 di raccolta dei dati e i servizi di terze parti che utilizziamo.",modeAndPlaceTitle:"Modalit\xE0 e luogo del trattamento",modeDescription:"Il Titolare adotta le opportune misure di sicurezza volte ad impedire l'accesso, la divulgazione, la modifica o la distruzione non autorizzate dei Dati Personali. Il trattamento viene effettuato mediante strumenti informatici e/o telematici, con modalit\xE0 organizzative e con logiche strettamente correlate alle finalit\xE0 indicate.",placeDescription:"I Dati sono trattati presso le sedi operative del Titolare ed in ogni altro luogo in cui le parti coinvolte nel trattamento siano localizzate. Se non diversamente indicato, i Dati Personali sono trattati e conservati per il tempo richiesto dalla finalit\xE0 per la quale sono stati raccolti.",rightsTitle:"I tuoi Diritti (GDPR)",right1:"Revocare il consenso in ogni momento",right2:"Opporsi al trattamento dei propri Dati",right3:"Accedere ai propri Dati",right4:"Verificare e chiedere la rettificazione",right5:"Ottenere la limitazione del trattamento",right6:"Ottenere la cancellazione o rimozione",right7:"Ricevere i propri Dati o farli trasferire ad altro titolare",right8:"Proporre reclamo all'Autorit\xE0 di controllo (Garante)",howToExerciseRights:"Come esercitare i diritti",exerciseRightsDescription:"Le richieste vanno indirizzate ai recapiti del Titolare indicati in questo documento. La richiesta \xE8 gratuita e risponderemo nel pi\xF9 breve tempo possibile.",supervisoryAuthorityTitle:"Autorit\xE0 di controllo",supervisoryAuthorityIntro:"Ai sensi degli artt. 13.2.d e 77 GDPR, l'interessato ha diritto di proporre reclamo all'autorit\xE0 di controllo competente qualora ritenga che il trattamento dei propri dati personali violi la normativa vigente.",supervisoryAuthorityName:"Garante per la Protezione dei Dati Personali",supervisoryAuthorityAddress:"Piazza Venezia 11, 00187 Roma (Italia)",supervisoryAuthorityEmail:"protocollo@gpdp.it",supervisoryAuthorityWebsite:"https://www.garanteprivacy.it",supervisoryAuthorityLabelAddress:"Sede",supervisoryAuthorityLabelEmail:"PEC / Email",supervisoryAuthorityLabelWebsite:"Sito web",definitionsTitle:"Definizioni e riferimenti legali",personalDataTitle:"Dati Personali",personalDataDescription:"Qualunque informazione che, direttamente o indirettamente, renda identificata o identificabile una persona fisica.",usageDataTitle:"Dati di Utilizzo",usageDataDescription:"Informazioni raccolte automaticamente attraverso questa Applicazione (es. indirizzi IP, orario della richiesta, browser utilizzato).",ownerDefinitionTitle:"Titolare del Trattamento",ownerDefinitionDescription:"La persona fisica o giuridica che determina le finalit\xE0 e i mezzi del trattamento di dati personali.",cookieDefinitionTitle:"Cookie",cookieDefinitionDescription:"Piccole porzioni di dati conservate all'interno del browser dell'Utente.",processorsTitle:"Destinatari e responsabili esterni",processorsIntro:"I Dati Personali possono essere comunicati ai responsabili del trattamento elencati di seguito. Ciascun responsabile \xE8 stato selezionato per affidabilit\xE0 e adeguatezza delle garanzie tecniche e organizzative.",processorPurpose:"Finalit\xE0",processorCountry:"Sede",processorTransferBasis:"Base giuridica trasferimento",processorPrivacyPolicy:"Privacy policy",unitedStates:"Stati Uniti",ireland:"Irlanda",malta:"Malta",france:"Francia",italy:"Italia",siteHostingAndCdn:"Hosting e CDN del sito.",contactFormTransmission:"Trasmissione form contatti",contactFormTransmissionSmtp:"Trasmissione form contatti tramite SMTP",analyticsAdsTagFonts:"Analytics 4, Ads, Tag Manager, Fonts",metaPixelConversionApi:"Meta Pixel, Conversion API",sessionRecordingHeatmap:"Session recording, heatmap",fraudPrevention:"Prevenzione frodi",paymentSession:"Sessione di pagamento",transfersTitle:"Trasferimenti di Dati Personali fuori dall'Unione Europea",transfersDescription:"Alcuni dei responsabili esterni hanno sede al di fuori dello Spazio Economico Europeo. I trasferimenti avvengono sulla base di decisioni di adeguatezza (es. EU-US Data Privacy Framework) o di Clausole Contrattuali Tipo (SCC 2021/914) adottate dalla Commissione Europea, integrate da misure supplementari ove necessarie. L'Utente pu\xF2 richiedere copia delle garanzie scrivendo al Titolare.",retentionTitle:"Conservazione dei Dati",retentionIntro:"I Dati Personali sono conservati per il tempo strettamente necessario alle finalit\xE0 per cui sono stati raccolti.",retentionContactForms:"Form di contatto",retentionAnalytics:"Dati analitici",retentionMarketing:"Dati di marketing",retentionUntilCancellation:"Fino a richiesta di cancellazione",dpoTitle:"Responsabile della Protezione dei Dati (DPO)",dpoIntro:"L'Utente pu\xF2 contattare il DPO per qualsiasi questione relativa al trattamento dei propri Dati Personali e all'esercizio dei diritti GDPR.",dpoPhone:"Telefono",policyVersionLabel:"Versione",lawfulBasisTitle:"Basi giuridiche del trattamento",lawfulBasisIntro:"Ciascuna finalit\xE0 di trattamento poggia su una specifica base giuridica ex art. 6 GDPR. Di seguito la mappatura dichiarata dal Titolare.",lawfulBasisContract:"Esecuzione di un contratto o misure precontrattuali (art. 6.1.b GDPR)",lawfulBasisConsent:"Consenso espresso dell'interessato (art. 6.1.a GDPR)",lawfulBasisLegitInterest:"Legittimo interesse del Titolare (art. 6.1.f GDPR) \u2014 es. sicurezza del sito, prevenzione frodi, statistiche aggregate",lawfulBasisLegalObligation:"Adempimento di un obbligo di legge (art. 6.1.c GDPR)",lawfulBasisVitalInterests:"Tutela degli interessi vitali dell'interessato (art. 6.1.d GDPR)",lawfulBasisPublicTask:"Esecuzione di un compito di interesse pubblico (art. 6.1.e GDPR)",lawfulBasisNotDeclared:"Base giuridica non dichiarata per questo servizio",profilingTitle:"Processi decisionali automatizzati e profilazione",profilingDeclaredYes:"Il Titolare effettua trattamenti che includono processi decisionali automatizzati e/o profilazione ai sensi dell'art. 22 GDPR. L'interessato ha diritto a ottenere intervento umano, esprimere la propria opinione e contestare la decisione. Per dettagli su logica, importanza e conseguenze previste, contattare il Titolare ai recapiti indicati.",profilingDeclaredNo:"Il Titolare non effettua processi decisionali automatizzati n\xE9 profilazione che producano effetti giuridici sull'interessato o che incidano significativamente sulla sua persona, ai sensi dell'art. 22 GDPR. Eventuali strumenti di analisi (es. Google Analytics, Meta Pixel) sono utilizzati per misurazione aggregata e non per decisioni automatizzate individuali.",cookieTableTitle:"Elenco dettagliato dei Cookie e degli identificatori",cookieTableIntro:"Di seguito i cookie e gli identificatori utilizzati da ciascun servizio, con finalit\xE0, durata e categoria. La lista \xE8 esaustiva per i servizi attivi sull'Applicazione al momento della pubblicazione di questa policy.",cookieTableName:"Nome",cookieTableProvider:"Fornitore",cookieTablePurpose:"Finalit\xE0",cookieTableDuration:"Durata",cookieTableType:"Tipologia",cookieTypeTechnical:"Tecnico",cookieTypeStatistical:"Statistico",cookieTypeMarketing:"Marketing",cookieTypeProfiling:"Profilazione",cookieTableNoneDeclared:"Per questo servizio non sono dichiarati cookie nominali (pu\xF2 utilizzare identificatori dinamici o LocalStorage).",marketingConsentLabel:"Acconsento a ricevere comunicazioni commerciali e di marketing (newsletter, offerte) ex art. 6.1.a GDPR. Posso revocare il consenso in qualunque momento scrivendo a",cookiePolicyTitle:"Cookie Policy di",cookieWelcome:"Benvenuto nella cookie policy di",cookieIntro:"Questa policy ti aiuter\xE0 a comprendere quali cookie e tecnologie di tracciamento utilizziamo, come li utilizziamo e quali sono i tuoi diritti in merito.",introduction:"Introduzione",introDescription1:"Questo documento contiene informazioni in merito alle tecnologie che consentono a questa Applicazione di raggiungere gli scopi descritti di seguito. Tali tecnologie permettono al Titolare di raccogliere e salvare informazioni (per esempio tramite l'utilizzo di Cookie) o di utilizzare risorse (per esempio eseguendo uno script).",introDescription2:"Per semplicit\xE0, in questo documento tali tecnologie sono sinteticamente definite \u201CStrumenti di Tracciamento\u201D. Alcune delle finalit\xE0 per le quali vengono impiegati potrebbero richiedere il consenso dell'Utente.",usageTrackingTitle:"Utilizzo degli Strumenti di Tracciamento",usageTrackingDescription:"Questa Applicazione utilizza Strumenti di Tracciamento per svolgere attivit\xE0 che sono strettamente necessarie a garantire il funzionamento e per misurare il traffico tramite analisi.",usageTrackingDescriptionTechnicalOnly:"Questa Applicazione utilizza Strumenti di Tracciamento esclusivamente per svolgere attivit\xE0 strettamente necessarie a garantirne il funzionamento.",usageTrackingDescriptionMarketing:"Questa Applicazione utilizza Strumenti di Tracciamento per svolgere attivit\xE0 che sono strettamente necessarie a garantire il funzionamento e per finalit\xE0 di marketing e profilazione.",usageTrackingDescriptionMeasurementAndMarketing:"Questa Applicazione utilizza Strumenti di Tracciamento per svolgere attivit\xE0 che sono strettamente necessarie a garantire il funzionamento, per misurare il traffico tramite analisi e per finalit\xE0 di marketing e profilazione.",managePreferencesTitle:"Come gestire le preferenze",managePreferencesDescription1:"Qualora l'utilizzo dei Tracker sia basato sul consenso, l'Utente pu\xF2 fornire o revocare tale consenso impostando o aggiornando le proprie preferenze tramite il relativo pannello delle scelte in materia di privacy disponibile su questa Applicazione.",managePreferencesDescription2:"Gli Utenti possono inoltre utilizzare le impostazioni del proprio browser per vedere quali Cookie sono stati installati, bloccarli o cancellarli. Tuttavia, le impostazioni del browser non consentono un controllo granulare del consenso per categoria.",preferenceCenterTitle:"Centro Preferenze",preferenceCenterDescription:"Puoi gestire i tuoi consensi in modo granulare o resettare completamente le tue impostazioni per visualizzare nuovamente il banner iniziale.",managePreferencesButton:"Gestisci preferenze",resetBannerButton:"Resetta e riapri banner",fullPrivacyPolicyLink:"Privacy Policy Completa",browserInfo:"Info Browser",browserSettingsTitle:"Impostazioni Browser",browserSettingsDescription:"I cookie possono essere gestiti anche tramite le impostazioni del tuo browser (Chrome, Safari, Firefox, ecc.) per un controllo totale sulla privacy e sulla conservazione dei dati.",trackingToolTitle:"Strumento di Tracciamento",trackingToolDescription:"Qualsiasi tecnologia \u2014 es. Cookie, identificativi univoci, web beacons \u2014 che consenta di tracciare gli Utenti, raccogliendo o salvando informazioni sul dispositivo.",dataSubjectTitle:"Interessato",dataSubjectDescription:"La persona fisica cui si riferiscono i Dati Personali.",purposes:"Finalit\xE0",dataCollected:"Dati raccolti",statistics:"Statistica",optimization:"Ottimizzazione",marketing:"Marketing",targeting:"Targeting",behaviorAnalysis:"Analisi del comportamento",sessionScreencast:"Screencast sessione",usageData:"Dati di utilizzo",trackingTools:"Strumenti di Tracciamento",tagManagement:"Gestione dei tag",userDatabaseManagement:"Gestione database Utenti",sendingMessages:"Invio messaggi",name:"Nome",surname:"Cognome",paymentManagement:"Gestione dei pagamenti",variousDataAsSpecified:"Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio",externalContent:"Visualizzazione di contenuti da piattaforme esterne",geographicPosition:"Posizione geografica",contactUser:"Contattare l'utente",requestManagement:"Gestione richieste",variousData:"Dati vari",contentDisplay:"Visualizzazione dei contenuti",variousDataTypes:"Varie tipologie di Dati",contactForm:"Modulo di contatto",youtubeWidget:"Widget Video YouTube",googleMapsWidget:"Widget Google Maps",noActiveService:"Nessun servizio attivo"},en:{legal:"Legal",lastUpdated:"Last modified",email:"Email",vat:"VAT",generatedBy:"Professionally generated by",bannerTitle:"Cookie Policy",bannerDescription:"We and selected third parties use cookies or similar technologies for technical purposes and, with your consent, also for the purposes of ",bannerDescriptionMeasurement:"measurement",bannerDescriptionMarketing:"marketing and profiling",bannerDescriptionMeasurementAndMarketing:"measurement, marketing and profiling",bannerDescriptionEnd:" as specified in the ",bannerDescriptionTechnicalOnly:"We and selected third parties use cookies or similar technologies for technical purposes only, as specified in the ",cookiePolicyLink:"cookie policy",decline:"Refuse",customize:"Customize",accept:"Accept",close:"Close",preferencesTitle:"Privacy Preferences",preferencesSubtitle:"Customize how we process your data",preferencesDescription:'This panel allows you to express certain preferences regarding the processing of your personal information. You can review and modify your choices at any time. To refuse your consent to the processing activities described below, disable the individual controls or use the "Refuse all" button.',necessaryTitle:"Strictly necessary",necessaryDescription:"These tools are required for the basic functionality of the site and cannot be disabled.",measurementTitle:"Measurement",measurementDescription:"They allow us to measure traffic and analyze your behavior to improve the service.",marketingTitle:"Marketing and Profiling",marketingDescription:"Used to send you personalized marketing communications based on your interests.",consentId:"Consent ID",consentDate:"Consent Date",consentPolicyVersion:"Policy version",consentSource:"Source",legalProofDescription:"These identifiers serve as legal proof of your consent according to GDPR guidelines. You can request their deletion at any time.",consentCheckboxLabel:"I consent to the processing of my personal data for handling this request as described in the",privacyPolicyLink:"privacy policy",declineAll:"Refuse all",saveAndContinue:"Save and continue",acceptAll:"Accept all",monitorTitle:"Monitoring and Stats",supportTitle:"Support and Feedback",privacyPreferences:"Privacy Preferences",privacyPolicyTitle:"Privacy Policy of",privacyWelcome:"Welcome to the privacy policy of",privacyIntro:"This policy will help you understand what data we collect, why we collect it and what your rights are in this regard.",ownerTitle:"Data Controller",dataSummaryTitle:"Data Summary",automaticDataTitle:"Automatically collected data",automaticDataDescription:"We automatically collect your data, for example when you visit ",automaticDataIncludes:". Includes: IP address, Usage data, Tracking Tools, number of Users, session statistics, device identifiers (user-agent, language, timezone).",providedDataTitle:"Data provided by the User",providedDataDescription:"We collect the data you provide us, for example when you fill out a contact form. Includes: name, email.",treatmentDetailsTitle:"Details on the processing of Personal Data",treatmentDetailsDescription:"Below are details on how data is collected and the third-party services we use.",modeAndPlaceTitle:"Method and place of processing",modeDescription:"The Controller takes appropriate security measures to prevent unauthorized access, disclosure, modification or destruction of Personal Data. Processing is carried out using computers and/or IT enabled tools, with organizational methods and logic strictly related to the purposes indicated.",placeDescription:"The Data is processed at the Controller's operating offices and in any other places where the parties involved in the processing are located. Unless otherwise stated, Personal Data is processed and stored for the time required by the purpose for which it was collected.",rightsTitle:"Your Rights (GDPR)",right1:"Withdraw consent at any time",right2:"Object to the processing of your Data",right3:"Access your Data",right4:"Verify and seek rectification",right5:"Obtain restriction of processing",right6:"Obtain erasure or removal",right7:"Receive your Data or have it transferred to another controller",right8:"Lodge a complaint with the Supervisory Authority (Italian Garante)",howToExerciseRights:"How to exercise rights",exerciseRightsDescription:"Requests should be addressed to the Controller's contact details indicated in this document. The request is free of charge and we will respond as soon as possible.",supervisoryAuthorityTitle:"Supervisory Authority",supervisoryAuthorityIntro:"Pursuant to art. 13.2.d and 77 GDPR, the data subject has the right to lodge a complaint with the competent supervisory authority where they consider that the processing of their personal data infringes applicable law.",supervisoryAuthorityName:"Italian Data Protection Authority (Garante per la Protezione dei Dati Personali)",supervisoryAuthorityAddress:"Piazza Venezia 11, 00187 Rome (Italy)",supervisoryAuthorityEmail:"protocollo@gpdp.it",supervisoryAuthorityWebsite:"https://www.garanteprivacy.it",supervisoryAuthorityLabelAddress:"Address",supervisoryAuthorityLabelEmail:"PEC / Email",supervisoryAuthorityLabelWebsite:"Website",definitionsTitle:"Definitions and legal references",personalDataTitle:"Personal Data",personalDataDescription:"Any information that, directly or indirectly, makes a natural person identified or identifiable.",usageDataTitle:"Usage Data",usageDataDescription:"Information collected automatically through this Application (e.g. IP addresses, time of request, browser used).",ownerDefinitionTitle:"Data Controller",ownerDefinitionDescription:"The natural or legal person who determines the purposes and means of the processing of personal data.",cookieDefinitionTitle:"Cookie",cookieDefinitionDescription:"Small portions of data stored within the User's browser.",processorsTitle:"Recipients and external data processors",processorsIntro:"Personal Data may be shared with the data processors listed below. Each processor has been selected for reliability and adequacy of technical and organizational safeguards.",processorPurpose:"Purpose",processorCountry:"Location",processorTransferBasis:"Transfer legal basis",processorPrivacyPolicy:"Privacy policy",unitedStates:"United States",ireland:"Ireland",malta:"Malta",france:"France",italy:"Italy",siteHostingAndCdn:"Site hosting and CDN.",contactFormTransmission:"Contact form transmission",contactFormTransmissionSmtp:"Contact form transmission via SMTP",analyticsAdsTagFonts:"Analytics 4, Ads, Tag Manager, Fonts",metaPixelConversionApi:"Meta Pixel, Conversion API",sessionRecordingHeatmap:"Session recording, heatmap",fraudPrevention:"Fraud prevention",paymentSession:"Payment session",transfersTitle:"Transfers of Personal Data outside the European Union",transfersDescription:"Some external processors are based outside the European Economic Area. Transfers occur under adequacy decisions (e.g. EU-US Data Privacy Framework) or Standard Contractual Clauses (SCC 2021/914) adopted by the European Commission, supplemented by additional measures where needed. The User can request a copy of the safeguards by contacting the Controller.",retentionTitle:"Data Retention",retentionIntro:"Personal Data is kept only for the time strictly necessary to the purposes for which it was collected.",retentionContactForms:"Contact forms",retentionAnalytics:"Analytics data",retentionMarketing:"Marketing data",retentionUntilCancellation:"Until deletion request",dpoTitle:"Data Protection Officer (DPO)",dpoIntro:"The User can contact the DPO for any matter related to the processing of their Personal Data and the exercise of GDPR rights.",dpoPhone:"Phone",policyVersionLabel:"Version",lawfulBasisTitle:"Lawful bases of processing",lawfulBasisIntro:"Each processing purpose relies on a specific lawful basis pursuant to art. 6 GDPR. Below is the mapping declared by the Controller.",lawfulBasisContract:"Performance of a contract or pre-contractual measures (art. 6.1.b GDPR)",lawfulBasisConsent:"Explicit consent of the data subject (art. 6.1.a GDPR)",lawfulBasisLegitInterest:"Legitimate interest of the Controller (art. 6.1.f GDPR) \u2014 e.g. site security, fraud prevention, aggregated statistics",lawfulBasisLegalObligation:"Compliance with a legal obligation (art. 6.1.c GDPR)",lawfulBasisVitalInterests:"Protection of vital interests of the data subject (art. 6.1.d GDPR)",lawfulBasisPublicTask:"Performance of a task carried out in the public interest (art. 6.1.e GDPR)",lawfulBasisNotDeclared:"Lawful basis not declared for this service",profilingTitle:"Automated decision-making and profiling",profilingDeclaredYes:"The Controller carries out processing that includes automated decision-making and/or profiling pursuant to art. 22 GDPR. The data subject has the right to obtain human intervention, express their opinion and contest the decision. For details on logic, significance and envisaged consequences, contact the Controller at the addresses indicated.",profilingDeclaredNo:"The Controller does not carry out automated decision-making or profiling that produces legal effects on the data subject or significantly affects them, pursuant to art. 22 GDPR. Any analytics tools (e.g. Google Analytics, Meta Pixel) are used for aggregated measurement and not for individual automated decisions.",cookieTableTitle:"Detailed list of Cookies and identifiers",cookieTableIntro:"Below are the cookies and identifiers used by each service, with purpose, duration and category. The list is exhaustive for the services active on the Application at the time of publication of this policy.",cookieTableName:"Name",cookieTableProvider:"Provider",cookieTablePurpose:"Purpose",cookieTableDuration:"Duration",cookieTableType:"Type",cookieTypeTechnical:"Technical",cookieTypeStatistical:"Statistical",cookieTypeMarketing:"Marketing",cookieTypeProfiling:"Profiling",cookieTableNoneDeclared:"No nominal cookies declared for this service (it may use dynamic identifiers or LocalStorage).",marketingConsentLabel:"I consent to receive commercial and marketing communications (newsletter, offers) pursuant to art. 6.1.a GDPR. I may withdraw consent at any time by writing to",cookiePolicyTitle:"Cookie Policy of",cookieWelcome:"Welcome to the cookie policy of",cookieIntro:"This policy will help you understand which cookies and tracking technologies we use, how we use them and what your rights are in this regard.",introduction:"Introduction",introDescription1:"This document contains information regarding the technologies that enable this Application to achieve the purposes described below. Such technologies allow the Controller to collect and store information (for example through the use of Cookies) or to use resources (for example by running a script).",introDescription2:"For simplicity, in this document these technologies are synthetically defined as \u201CTracking Tools\u201D. Some of the purposes for which they are used may require the User's consent.",usageTrackingTitle:"Use of Tracking Tools",usageTrackingDescription:"This Application uses Tracking Tools to carry out activities that are strictly necessary to ensure operation and to measure traffic through analysis.",usageTrackingDescriptionTechnicalOnly:"This Application uses Tracking Tools only to carry out activities that are strictly necessary to ensure its operation.",usageTrackingDescriptionMarketing:"This Application uses Tracking Tools to carry out activities that are strictly necessary to ensure operation and for marketing and profiling purposes.",usageTrackingDescriptionMeasurementAndMarketing:"This Application uses Tracking Tools to carry out activities that are strictly necessary to ensure operation, to measure traffic through analysis and for marketing and profiling purposes.",managePreferencesTitle:"How to manage preferences",managePreferencesDescription1:"If the use of Trackers is based on consent, the User can give or withdraw such consent by setting or updating their preferences through the relevant privacy choice panel available on this Application.",managePreferencesDescription2:"Users can also use their browser settings to see which Cookies have been installed, block or delete them. However, browser settings do not allow granular control of consent by category.",preferenceCenterTitle:"Preference Center",preferenceCenterDescription:"You can manage your consents granularly or reset your settings completely to view the initial banner again.",managePreferencesButton:"Manage preferences",resetBannerButton:"Reset and reopen banner",fullPrivacyPolicyLink:"Full Privacy Policy",browserInfo:"Browser Info",browserSettingsTitle:"Browser Settings",browserSettingsDescription:"Cookies can also be managed through your browser settings (Chrome, Safari, Firefox, etc.) for total control over privacy and data storage.",trackingToolTitle:"Tracking Tool",trackingToolDescription:"Any technology \u2014 e.g. Cookies, unique identifiers, web beacons \u2014 that allows users to be tracked, collecting or saving information on the device.",dataSubjectTitle:"Data Subject",dataSubjectDescription:"The natural person to whom the Personal Data refers.",purposes:"Purposes",dataCollected:"Data collected",statistics:"Statistics",optimization:"Optimization",marketing:"Marketing",targeting:"Targeting",behaviorAnalysis:"Behavior analysis",sessionScreencast:"Session screencast",usageData:"Usage data",trackingTools:"Tracking Tools",tagManagement:"Tag management",userDatabaseManagement:"User database management",sendingMessages:"Sending messages",name:"Name",surname:"Last Name",paymentManagement:"Payment management",variousDataAsSpecified:"Various types of Data as specified in the privacy policy of the service",externalContent:"Displaying content from external platforms",geographicPosition:"Geographic position",contactUser:"Contacting the user",requestManagement:"Request management",variousData:"Various data",contentDisplay:"Content display",variousDataTypes:"Various types of Data",contactForm:"Contact Form",youtubeWidget:"YouTube Video Widget",googleMapsWidget:"Google Maps Widget",noActiveService:"No active service"}};var yt={it:"it-IT",en:"en-US"},Ce=new Map;function X(e){return e&&e.toLowerCase().startsWith("en")?"en":"it"}function R(e){let t=Ce.get(e);if(t)return t;let i=Z[e]??Z.it,o=Z.it,n=r=>i[r]??o[r];return Ce.set(e,n),n}var xe=e=>yt[e];function Te(){if(typeof crypto<"u"){if(typeof crypto.randomUUID=="function")try{return crypto.randomUUID()}catch{}if(typeof crypto.getRandomValues=="function"){let t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let i=Array.from(t,o=>o.toString(16).padStart(2,"0"));return`${i.slice(0,4).join("")}-${i.slice(4,6).join("")}-${i.slice(6,8).join("")}-${i.slice(8,10).join("")}-${i.slice(10,16).join("")}`}}let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0");return`${e()}-${e().slice(0,4)}-4${e().slice(0,3)}-${e().slice(0,4)}-${e()}${e().slice(0,4)}`}var ee="graffico-legal-consent",Se=1e3*60*60*24*180,V={necessary:!0,statistical:!1,marketing:!1},De=Object.freeze({language:"it",consent:V,showBanner:!1,isModalOpen:!1,hydrated:!1,requestedCategories:[]}),x=De,re=new Set;function ht(){for(let e of re)e()}function L(e){let t=!1;for(let i in e)if(x[i]!==e[i]){t=!0;break}t&&(x={...x,...e},ht())}function D(e){return re.add(e),()=>{re.delete(e)}}var P=()=>x,G=()=>De;function se(e){L({language:X(e)})}function vt(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.necessary!="boolean"||typeof t.statistical!="boolean"||typeof t.marketing!="boolean")return null;let i={necessary:!0,statistical:t.statistical,marketing:t.marketing};return typeof t.consentId=="string"&&t.consentId.length>0&&t.consentId.length<100&&(i.consentId=t.consentId),typeof t.timestamp=="string"&&t.timestamp.length<50&&(i.timestamp=t.timestamp),typeof t.expiresAt=="number"&&Number.isFinite(t.expiresAt)&&(i.expiresAt=t.expiresAt),typeof t.policyVersion=="string"&&t.policyVersion.length<100&&(i.policyVersion=t.policyVersion),(t.source==="banner"||t.source==="modal"||t.source==="gpc-auto"||t.source==="api")&&(i.source=t.source),i}function bt(){if(typeof navigator>"u")return!1;let e=navigator;return e.globalPrivacyControl===!0||typeof e.doNotTrack=="string"&&e.doNotTrack==="1"}function kt(e){return typeof e.expiresAt=="number"&&Date.now()>e.expiresAt}function wt(e,t){return t?e.policyVersion!==t:!1}function le(e={}){if(x.hydrated||typeof window>"u")return;let t;try{let s=window.localStorage.getItem(ee);if(s){let g=JSON.parse(s);t=vt(g)??void 0}}catch{}let i=t&&kt(t),o=t&&wt(t,e.policyVersion),n=t&&!i&&!o?t:void 0;if(!n&&(i||o))try{window.localStorage.removeItem(ee)}catch{}let r={language:e.language??x.language,activePolicyVersion:e.policyVersion,hydrated:!0};if(n){L({...r,consent:n,showBanner:!1});return}if(bt()){L(r),te(V,"gpc-auto");return}L({...r,consent:V,showBanner:!0})}function te(e,t){let i=x.consent.consentId||Te(),o={...e,necessary:!0,consentId:i,timestamp:new Date().toISOString(),expiresAt:Date.now()+Se,policyVersion:x.activePolicyVersion,source:t};try{window.localStorage.setItem(ee,JSON.stringify(o))}catch{}return L({consent:o,showBanner:!1,isModalOpen:!1}),o}function ce(e,t="modal"){return te(e,t)}function W(e="banner"){return te({necessary:!0,statistical:!0,marketing:!0},e)}function H(e="banner"){return te(V,e)}function de(){try{window.localStorage.removeItem(ee)}catch{}L({consent:V,showBanner:!0,isModalOpen:!1})}function T(e){L({isModalOpen:e})}function Pe(e){x.requestedCategories.includes(e)||L({requestedCategories:[...x.requestedCategories,e]})}import{jsx as St}from"react/jsx-runtime";var ue=Ct(null);function Tt({config:e,children:t}){let i=xt(()=>({config:e}),[e]);return ze(()=>{le({policyVersion:e.policyVersion})},[]),ze(()=>{se(X(e.language))},[e.language]),St(ue.Provider,{value:i,children:t})}function I(){let e=Le(ue);if(!e)throw new Error("useLegalConfig deve essere usato dentro <LegalProvider>");return e.config}function B(){return Le(ue)?.config??null}import{useEffect as Dt,useSyncExternalStore as N}from"react";var F=()=>N(D,()=>P().language,()=>G().language),E=()=>N(D,()=>P().consent,()=>G().consent),v=e=>N(D,()=>{let t=P();return t.hydrated?t.consent[e]:void 0},()=>{});function y(e){return Dt(()=>{e!=="necessary"&&Pe(e)},[e]),v(e)}var Me=()=>N(D,()=>P().requestedCategories,()=>G().requestedCategories),Pt=()=>N(D,()=>P().hydrated,()=>!1),$=()=>N(D,()=>P().showBanner,()=>G().showBanner),pe=()=>N(D,()=>P().isModalOpen,()=>G().isModalOpen);function z(){return R(F())}var Ae="#2c5282",S=e=>e.primaryColor??Ae,Ie=e=>e.domain||e.name;var zt={s:1e3,m:6e4,h:36e5,d:864e5,w:6048e5,M:2592e6,y:31536e6},Lt={s:"s",sec:"s",m:"M",min:"m",h:"h",hr:"h",d:"d",day:"d",days:"d",w:"w",week:"w",weeks:"w",M:"M",month:"M",months:"M",y:"y",year:"y",years:"y"},Mt=/^(\d+)\s*(min|sec|hr|days?|weeks?|months?|years?|[smhdwMy])$/;function At(e){if(typeof e!="string")return null;let t=e.trim().match(Mt);if(!t)return null;let i=Number(t[1]);if(!Number.isFinite(i)||i<0)return null;let o=Lt[t[2]];return o?i*zt[o]:null}function Ne(e,t=new Date){let i=At(e);return i===null?null:new Date(t.getTime()+i)}function Ee(e,t){if(e)try{e(t)}catch{}}function _e(e,t){if(!(typeof window>"u"))try{fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0,credentials:"same-origin"}).catch(()=>{})}catch{}}var ie={"google-analytics":{id:"google-analytics",name:"Google Analytics 4",category:"automatic",consentCategory:"statistical",purposes:["Statistica","Ottimizzazione"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_ga",provider:"google-analytics.com",purpose:"Identificatore univoco utente per statistiche di sessione",duration:"2 anni",type:"statistical"},{name:"_ga_<container-id>",provider:"google-analytics.com",purpose:"Stato di sessione GA4",duration:"2 anni",type:"statistical"},{name:"_gid",provider:"google-analytics.com",purpose:"Identificatore utente giornaliero",duration:"24 ore",type:"statistical"}]},"facebook-pixel":{id:"facebook-pixel",name:"Meta Pixel",category:"automatic",consentCategory:"marketing",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_fbp",provider:"facebook.com",purpose:"Identificatore browser per attribuzione campagne",duration:"90 giorni",type:"marketing"},{name:"fr",provider:"facebook.com",purpose:"Pubblicit\xE0 mirata e misurazione",duration:"90 giorni",type:"marketing"},{name:"_fbc",provider:"facebook.com",purpose:"Click-ID per attribuzione di campagna",duration:"90 giorni",type:"marketing"}]},"google-ads":{id:"google-ads",name:"Google Ads",category:"marketing",consentCategory:"marketing",purposes:["Marketing","Targeting","Misurazione conversioni"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"IDE",provider:"doubleclick.net",purpose:"Profilazione e remarketing Google Ads",duration:"13 mesi",type:"marketing"},{name:"_gcl_au",provider:"google.com",purpose:"Misurazione conversioni cross-site",duration:"90 giorni",type:"marketing"},{name:"NID",provider:"google.com",purpose:"Memorizza preferenze utente per annunci",duration:"6 mesi",type:"marketing"}]},"linkedin-insight":{id:"linkedin-insight",name:"LinkedIn Insight Tag",category:"automatic",consentCategory:"marketing",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"li_sugr",provider:"linkedin.com",purpose:"Inferenza identit\xE0 per attribuzione campagne",duration:"90 giorni",type:"marketing"},{name:"lidc",provider:"linkedin.com",purpose:"Routing data center",duration:"24 ore",type:"technical"}]},"tiktok-pixel":{id:"tiktok-pixel",name:"TikTok Pixel",category:"automatic",consentCategory:"marketing",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_ttp",provider:"tiktok.com",purpose:"Identificatore univoco utente TikTok Pixel",duration:"13 mesi",type:"marketing"}]},"microsoft-clarity":{id:"microsoft-clarity",name:"Microsoft Clarity",category:"automatic",consentCategory:"statistical",purposes:["Statistica","Analisi del comportamento"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento","Screencast sessione"],lawfulBasis:"consent",cookies:[{name:"_clck",provider:"clarity.ms",purpose:"ID utente persistente Clarity",duration:"1 anno",type:"statistical"},{name:"_clsk",provider:"clarity.ms",purpose:"Sessione di registrazione Clarity",duration:"24 ore",type:"statistical"}]},hotjar:{id:"hotjar",name:"Hotjar",category:"automatic",consentCategory:"statistical",purposes:["Statistica","Analisi del comportamento"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"_hjSessionUser_<id>",provider:"hotjar.com",purpose:"Identificatore utente persistente",duration:"1 anno",type:"statistical"},{name:"_hjSession_<id>",provider:"hotjar.com",purpose:"Sessione di registrazione",duration:"30 minuti",type:"statistical"}]},"google-tag-manager":{id:"google-tag-manager",name:"Google Tag Manager",category:"automatic",consentCategory:"marketing",purposes:["Gestione dei tag"],dataCollected:["Dati di utilizzo"],lawfulBasis:"legitimate-interest"},mailchimp:{id:"mailchimp",name:"Mailchimp",category:"provided",consentCategory:"necessary",purposes:["Gestione database Utenti","Invio messaggi"],dataCollected:["Email","Nome","Cognome","Dati di utilizzo"],lawfulBasis:"consent"},newsletter:{id:"newsletter",name:"Newsletter",category:"provided",consentCategory:"necessary",purposes:["Gestione database Utenti","Invio messaggi"],dataCollected:["Email","Nome","Cognome"],lawfulBasis:"consent"},stripe:{id:"stripe",name:"Stripe",category:"automatic",consentCategory:"necessary",purposes:["Gestione dei pagamenti"],dataCollected:["Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio"],lawfulBasis:"contract",cookies:[{name:"__stripe_mid",provider:"stripe.com",purpose:"Prevenzione frodi",duration:"1 anno",type:"technical"},{name:"__stripe_sid",provider:"stripe.com",purpose:"Sessione di pagamento",duration:"30 minuti",type:"technical"}]},paypal:{id:"paypal",name:"PayPal",category:"automatic",consentCategory:"necessary",purposes:["Gestione dei pagamenti"],dataCollected:["Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio"],lawfulBasis:"contract"},youtube:{id:"youtube",name:"YouTube Video Widget",category:"automatic",consentCategory:"marketing",purposes:["Visualizzazione di contenuti da piattaforme esterne"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"],lawfulBasis:"consent",cookies:[{name:"VISITOR_INFO1_LIVE",provider:"youtube.com",purpose:"Stima banda utente per pre-buffering",duration:"6 mesi",type:"statistical"},{name:"YSC",provider:"youtube.com",purpose:"Sessione video corrente",duration:"Sessione",type:"statistical"}]},"google-maps":{id:"google-maps",name:"Google Maps Widget",category:"automatic",consentCategory:"marketing",purposes:["Visualizzazione di contenuti da piattaforme esterne"],dataCollected:["Dati di utilizzo","Posizione geografica","Strumenti di Tracciamento"],lawfulBasis:"consent"},"contact-form":{id:"contact-form",name:"Modulo di contatto",category:"provided",consentCategory:"necessary",purposes:["Contattare l'utente","Gestione richieste"],dataCollected:["Email","Nome","Cognome","Dati vari"],lawfulBasis:"contract"},"google-fonts":{id:"google-fonts",name:"Google Fonts",category:"automatic",consentCategory:"necessary",purposes:["Visualizzazione dei contenuti"],dataCollected:["Dati di utilizzo","Varie tipologie di Dati"],lawfulBasis:"legitimate-interest"}},K=e=>typeof e=="string"?ie[e]||{id:e,name:e,category:"automatic",purposes:[],dataCollected:[]}:e,It={Statistica:"statistics",Ottimizzazione:"optimization",Marketing:"marketing",Targeting:"targeting","Analisi del comportamento":"behaviorAnalysis","Screencast sessione":"sessionScreencast","Dati di utilizzo":"usageData","Strumenti di Tracciamento":"trackingTools","Gestione dei tag":"tagManagement","Gestione database Utenti":"userDatabaseManagement","Invio messaggi":"sendingMessages",Nome:"name",Cognome:"surname",Email:"email","Gestione dei pagamenti":"paymentManagement","Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio":"variousDataAsSpecified","Visualizzazione di contenuti da piattaforme esterne":"externalContent","Posizione geografica":"geographicPosition","Contattare l'utente":"contactUser","Gestione richieste":"requestManagement","Dati vari":"variousData","Visualizzazione dei contenuti":"contentDisplay","Varie tipologie di Dati":"variousDataTypes","Modulo di Contatto":"contactForm","Modulo di contatto":"contactForm","Widget Video YouTube":"youtubeWidget","Widget Google Maps":"googleMapsWidget","Stati Uniti":"unitedStates",Irlanda:"ireland",Malta:"malta",Francia:"france",Italia:"italy","Hosting e CDN del sito.":"siteHostingAndCdn","Trasmissione form contatti":"contactFormTransmission","Trasmissione form contatti tramite SMTP":"contactFormTransmissionSmtp","Analytics 4, Ads, Tag Manager, Fonts":"analyticsAdsTagFonts","Meta Pixel, Conversion API":"metaPixelConversionApi","Session recording, heatmap":"sessionRecordingHeatmap","Prevenzione frodi":"fraudPrevention","Sessione di pagamento":"paymentSession",Statistics:"statistics",Optimization:"optimization","Behavior analysis":"behaviorAnalysis","Session screencast":"sessionScreencast","Usage data":"usageData","Tracking Tools":"trackingTools","Tag management":"tagManagement","User database management":"userDatabaseManagement","Sending messages":"sendingMessages",Name:"name","Last Name":"surname",Surname:"surname","Payment management":"paymentManagement","Various types of Data as specified in the privacy policy of the service":"variousDataAsSpecified","Displaying content from external platforms":"externalContent","Geographic position":"geographicPosition","Contacting the user":"contactUser","Request management":"requestManagement","Various data":"variousData","Content display":"contentDisplay","Various types of Data":"variousDataTypes","Contact Form":"contactForm","YouTube Video Widget":"youtubeWidget","Google Maps Widget":"googleMapsWidget","United States":"unitedStates",Ireland:"ireland",France:"france",Italy:"italy","Site hosting and CDN.":"siteHostingAndCdn","Contact form transmission":"contactFormTransmission","Contact form transmission via SMTP":"contactFormTransmissionSmtp","Fraud prevention":"fraudPrevention","Payment session":"paymentSession"},Re=(e,t)=>{let i=e.trim().replace(/\s+/g," "),o=It[i];return o?t(o):e};function Nt(e){if(typeof e=="string"&&!ie[e])return;let t=K(e);if(t.consentCategory)return t.consentCategory;if(t.category==="marketing")return"marketing";let i=(t.cookies??[]).map(o=>o.type);if(i.includes("marketing")||i.includes("profiling"))return"marketing";if(i.includes("statistical"))return"statistical";if(t.category==="provided"||i.length>0||t.lawfulBasis&&t.lawfulBasis!=="consent")return"necessary"}function Ge(e=[],t=[]){let i=new Set(t);for(let s of e)i.add(Nt(s));let n=e.length===0||i.has(void 0)||i.has("statistical"),r=i.has("marketing");return n&&r?"measurementAndMarketing":r?"marketing":n?"measurement":"technical"}var Be={measurement:"bannerDescriptionMeasurement",marketing:"bannerDescriptionMarketing",measurementAndMarketing:"bannerDescriptionMeasurementAndMarketing"};import{useEffect as Fe,useId as J,useRef as Et,useState as _t}from"react";import{jsx as l,jsxs as m}from"react/jsx-runtime";var Rt='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function Gt(e,t){let i=Array.from(t.querySelectorAll(Rt));if(i.length===0)return;let o=i[0],n=i[i.length-1],r=document.activeElement,s=r!==t&&t.contains(r);e.shiftKey&&(!s||r===o)?(e.preventDefault(),n.focus()):!e.shiftKey&&(!s||r===n)&&(e.preventDefault(),o.focus())}function Bt(e){(e instanceof HTMLElement&&e.isConnected?e:document.querySelector("[data-graffico-legal-toggle]"))?.focus()}var oe=()=>{let e=I(),t=E(),i=pe(),o=F(),n=z(),[r,s]=_t(t),g=Et(null),h=J(),p=J(),b=J(),f=S(e);if(Fe(()=>{s(t)},[t,i]),Fe(()=>{if(!i)return;let c=document.activeElement;g.current?.focus();let _=ae=>{let we=g.current;we&&(ae.key==="Escape"?T(!1):ae.key==="Tab"&&Gt(ae,we))};return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_),Bt(c)}},[i]),!i)return null;let u=c=>{c!=="necessary"&&s(_=>({..._,[c]:!_[c]}))};return l("div",{ref:g,role:"dialog","aria-modal":"true","aria-labelledby":h,tabIndex:-1,className:"fixed inset-0 z-10000 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm animate-in fade-in duration-300 outline-none",children:m("div",{className:"w-full max-w-2xl max-h-[90vh] bg-white/95 text-gray-900 border-gray-100 rounded-3xl shadow-2xl overflow-hidden flex flex-col animate-in zoom-in-95 duration-300",children:[m("div",{className:"p-6 md:p-8 border-b border-gray-100 flex items-center justify-between",children:[m("div",{children:[l("h2",{id:h,className:"text-2xl font-black tracking-tight text-gray-900",children:n("preferencesTitle")}),l("p",{className:"text-sm text-gray-500 font-medium",children:n("preferencesSubtitle")})]}),l("button",{onClick:()=>T(!1),"aria-label":n("close"),className:"p-2 text-gray-400 hover:text-gray-900 transition-colors",children:l("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),m("div",{className:"flex-1 overflow-y-auto p-6 md:p-8",children:[l("p",{className:"text-sm text-gray-600 leading-relaxed",children:n("preferencesDescription")}),l("div",{className:"space-y-4",children:m("div",{className:"flex flex-col gap-4",children:[m("div",{className:"p-4 bg-gray-50 rounded-2xl border border-gray-100 flex items-center justify-between",children:[m("div",{className:"max-w-[80%]",children:[l("h3",{id:p,className:"font-bold text-gray-900",children:n("necessaryTitle")}),l("p",{id:b,className:"text-xs text-gray-500 mt-0.5",children:n("necessaryDescription")})]}),m("button",{type:"button",role:"switch","aria-checked":"true","aria-disabled":"true","aria-labelledby":p,"aria-describedby":b,className:"relative inline-flex items-center cursor-not-allowed opacity-50",children:[l("span",{className:"w-11 h-6 rounded-full",style:{backgroundColor:f}}),l("span",{className:"absolute left-6 w-4 h-4 bg-white rounded-full"})]})]}),l(je,{title:n("measurementTitle"),description:n("measurementDescription"),active:r.statistical,primaryColor:f,onClick:()=>u("statistical")}),l(je,{title:n("marketingTitle"),description:n("marketingDescription"),active:r.marketing,primaryColor:f,onClick:()=>u("marketing")})]})}),t.consentId&&m("div",{className:"pt-8 mt-4 border-t border-gray-100",children:[l("div",{className:"bg-gray-50/50 p-4 rounded-2xl border border-dashed border-gray-200",children:m("div",{className:"flex flex-col gap-2",children:[m("div",{className:"flex items-center justify-between",children:[l("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:n("consentId")}),l("span",{className:"text-[10px] font-mono text-gray-500 bg-white px-2 py-0.5 rounded border border-gray-100",children:t.consentId})]}),m("div",{className:"flex items-center justify-between",children:[l("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:n("consentDate")}),l("span",{className:"text-[10px] font-bold text-gray-500",children:t.timestamp?new Date(t.timestamp).toLocaleString(xe(o)):"-"})]})]})}),l("p",{className:"text-[9px] text-gray-400 mt-3 leading-relaxed",children:n("legalProofDescription")})]})]}),m("div",{className:"p-6 bg-gray-50 border-t border-gray-100 flex flex-col sm:flex-row gap-3",children:[l("button",{onClick:()=>H("modal"),className:"flex-1 px-6 py-3 border border-gray-300 text-gray-700 font-bold rounded-xl hover:bg-white transition-all text-sm uppercase tracking-wider",children:n("declineAll")}),l("button",{onClick:()=>ce(r,"modal"),className:"flex-1 px-6 py-3 bg-gray-900 text-white font-bold rounded-xl hover:bg-black transition-all text-sm uppercase tracking-wider",children:n("saveAndContinue")}),l("button",{onClick:()=>W("modal"),className:"flex-1 px-6 py-3 text-white font-bold rounded-xl hover:opacity-90 transition-all text-sm uppercase tracking-wider",style:{backgroundColor:f},children:n("acceptAll")})]})]})})};function je({title:e,description:t,active:i,primaryColor:o,onClick:n}){let r=J(),s=J();return m("div",{className:"p-4 bg-white rounded-2xl border border-gray-100 flex items-center justify-between transition-colors cursor-pointer group/item",onClick:n,children:[m("div",{className:"max-w-[80%]",children:[l("h3",{id:r,className:"font-bold text-gray-900",children:e}),l("p",{id:s,className:"text-xs text-gray-500 mt-0.5",children:t})]}),l("button",{type:"button",role:"switch","aria-checked":i,"aria-labelledby":r,"aria-describedby":s,className:"relative inline-flex items-center h-6 rounded-full w-11 transition-colors duration-200 cursor-pointer",style:{backgroundColor:i?o:"#e5e7eb"},children:l("span",{className:`inline-block w-4 h-4 transform bg-white rounded-full transition-transform duration-200 ${i?"translate-x-6":"translate-x-1"}`})})]})}import{jsx as ge,jsxs as jt}from"react/jsx-runtime";var Ft={"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","top-right":"top-6 right-6","top-left":"top-6 left-6"},me=()=>{let e=I(),t=$(),i=z();if(t)return null;let o=e.togglePosition??"bottom-right";return jt("button",{onClick:()=>T(!0),"data-graffico-legal-toggle":"",className:`fixed ${Ft[o]} z-8000 w-12 h-12 bg-white rounded-xl shadow-xl border border-gray-100 flex items-center justify-center hover:scale-110 active:scale-95 transition-all group`,style:{color:S(e)},"aria-label":i("privacyPreferences"),children:[ge("svg",{className:"w-6 h-6 group-hover:rotate-12 transition-transform",fill:"currentColor",viewBox:"0 0 24 24",children:ge("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}),ge("span",{className:"absolute right-full mr-3 px-2 py-1 bg-black text-white text-[10px] rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none",children:i("privacyPreferences")})]})};import{Fragment as fe,jsx as w,jsxs as M}from"react/jsx-runtime";var qt=()=>{let e=I(),t=$(),i=Me(),o=z();if(!t)return M(fe,{children:[w(me,{}),w(oe,{})]});let n=e.theme!=="light",r=S(e),s=Ge(e.services,i);return M(fe,{children:[w("div",{role:"dialog","aria-modal":"false","aria-labelledby":"graffico-legal-banner-title",className:"fixed bottom-0 left-0 right-0 p-3 md:p-8 z-9000 flex justify-center animate-in slide-in-from-bottom-full duration-500",children:M("div",{className:`w-full max-w-5xl rounded-3xl md:rounded-4xl shadow-[0_20px_50px_rgba(0,0,0,0.3)] backdrop-blur-xl border p-4 md:p-8 flex flex-col md:flex-row items-center gap-4 md:gap-6 relative overflow-hidden ${n?"bg-black/95 text-white border-white/10":"bg-white/95 text-gray-900 border-gray-100"}`,children:[w("div",{className:"absolute -bottom-24 -right-24 w-64 h-64 blur-[100px] opacity-20 transition-colors pointer-events-none",style:{backgroundColor:r}}),M("div",{className:"grow space-y-2 md:space-y-3 text-center md:text-left relative z-10",children:[w("h2",{id:"graffico-legal-banner-title",className:"text-base md:text-xl font-black tracking-tight",children:o("bannerTitle")}),M("p",{className:`text-[11px] md:text-sm leading-relaxed max-w-3xl font-medium ${n?"text-gray-400":"text-gray-500"}`,children:[s==="technical"?o("bannerDescriptionTechnicalOnly"):M(fe,{children:[o("bannerDescription"),w("span",{className:n?"text-white":"text-gray-900",children:o(Be[s])}),o("bannerDescriptionEnd")]}),w("a",{href:"/cookie-policy",className:"underline hover:opacity-80 transition-opacity font-bold",style:{color:n?"inherit":r},children:o("cookiePolicyLink")})]})]}),M("div",{className:"flex flex-col items-center gap-4 w-full md:w-auto relative z-10",children:[M("div",{className:"flex flex-row items-center gap-2 md:gap-3 w-full md:w-auto",children:[w("button",{onClick:()=>H("banner"),className:`cursor-pointer flex-1 md:flex-initial px-4 md:px-8 py-2.5 md:py-3 font-black rounded-xl md:rounded-2xl transition-all text-[10px] md:text-[11px] uppercase tracking-widest whitespace-nowrap md:shadow-lg ${n?"bg-white text-gray-900 hover:bg-gray-100":"bg-gray-900 text-white hover:bg-black"}`,children:o("decline")}),w("button",{onClick:()=>W("banner"),className:"cursor-pointer flex-1 md:flex-initial px-4 md:px-8 py-2.5 md:py-3 text-white font-black rounded-xl md:rounded-2xl transition-all text-[10px] md:text-[11px] uppercase tracking-widest whitespace-nowrap md:shadow-lg",style:{backgroundColor:r},children:o("accept")})]}),w("button",{onClick:()=>T(!0),className:`cursor-pointer text-[9px] md:text-[10px] font-bold uppercase tracking-widest underline-offset-4 hover:underline transition-opacity ${n?"text-gray-400 hover:text-white":"text-gray-500 hover:text-gray-900"}`,children:o("customize")})]})]})}),w(oe,{})]})};import{useMemo as Ot,useState as Ut}from"react";import{Fragment as Xt,jsx as a,jsxs as d}from"react/jsx-runtime";var ye=4,Ue=({id:e})=>{switch(e){case"google-analytics":return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:[a("path",{d:"M12 2L4.5 20.29L5.21 21L12 18L18.79 21L19.5 20.29L12 2Z",fill:"currentColor",fillOpacity:"0.2"}),a("path",{d:"M12 18V2M12 18L5.21 21L4.5 20.29L12 2M12 18L18.79 21L19.5 20.29L12 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});case"facebook-pixel":return a("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:a("path",{d:"M18 2H15C12.7909 2 11 3.79086 11 6V9H8V13H11V22H15V13H18L19 9H15V6C15 5.44772 15.4477 5 16 5H18V2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"google-fonts":return a("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:a("path",{d:"M4 7V4H20V7M5 20H19M12 4V20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"linkedin-insight":return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),a("rect",{x:"2",y:"9",width:"4",height:"12"}),a("circle",{cx:"4",cy:"4",r:"2"})]});case"tiktok-pixel":return a("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:a("path",{d:"M9 12a4 4 0 1 0 4 4V4a5 5 0 0 0 5 5"})});case"microsoft-clarity":case"hotjar":return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),a("circle",{cx:"12",cy:"12",r:"3"})]});case"google-tag-manager":return a("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:a("path",{d:"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"})});case"mailchimp":case"newsletter":return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a("path",{d:"m22 2-7 20-4-9-9-4Z"}),a("path",{d:"M22 2 11 13"})]});case"stripe":case"paypal":return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),a("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]});case"youtube":return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"}),a("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"})]});case"google-maps":return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),a("circle",{cx:"12",cy:"10",r:"3"})]});case"contact-form":return a("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:a("path",{d:"M3 8L10.89 13.26C11.56 13.71 12.44 13.71 13.11 13.26L21 8M5 19H19C20.1 19 21 18.1 21 17V7C21 5.9 20.1 5 19 5H5C3.9 5 3 5.9 3 7V17C3 18.1 3.9 19 5 19Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});default:return d("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:[a("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2"}),a("path",{d:"M12 8V16M8 12H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}},Vt=({config:e,language:t}={})=>{let i=B(),o=F(),n=e??i,r=t??o,s=R(r),g=n?S(n):"#2c5282",{automaticServices:h,providedServices:p}=Ot(()=>{if(!n)return{automaticServices:[],providedServices:[]};let b=u=>Re(u,s),f=(n.services??[]).map(u=>{let c=K(u);return{...c,name:b(c.name),purposes:c.purposes.map(b),dataCollected:c.dataCollected.map(b)}});return{automaticServices:f.filter(u=>u.category==="automatic"||u.category==="marketing"),providedServices:f.filter(u=>u.category==="provided")}},[n,r,s]);return n?d("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-1",children:[a(qe,{variant:"compact",title:s("automaticDataTitle"),subtitle:s("monitorTitle"),description:d(Xt,{children:[s("automaticDataDescription"),a("span",{className:"text-gray-900 font-black",children:Ie(n)})," ",s("automaticDataIncludes")]}),emptyLabel:s("noActiveService"),primaryColor:g,services:h,icon:a(Jt,{}),emptyIcon:a(Qt,{})}),a(qe,{variant:"expanded",title:s("providedDataTitle"),subtitle:s("supportTitle"),description:s("providedDataDescription"),emptyLabel:s("noActiveService"),primaryColor:g,services:p,icon:a(Yt,{}),emptyIcon:a(Zt,{})})]}):null};function qe({variant:e,title:t,subtitle:i,description:o,emptyLabel:n,primaryColor:r,services:s,icon:g,emptyIcon:h}){let[p,b]=Ut(0),f=Math.ceil(s.length/ye),u=s.slice(p*ye,(p+1)*ye);return d("div",{className:"bg-white p-8 rounded-[2.5rem] border border-gray-100 shadow-sm flex flex-col transition-all hover:shadow-xl group/card min-h-[750px]",children:[d("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8",children:[d("div",{className:"flex items-center gap-4",children:[a("div",{className:"p-3 rounded-2xl shrink-0",style:{backgroundColor:`${r}1a`,color:r},children:g}),d("div",{children:[a("h3",{className:"text-xl sm:text-2xl font-black text-gray-900 tracking-tight leading-tight",children:t}),a("p",{className:"text-[10px] text-gray-400 font-black uppercase tracking-widest mt-0.5",children:i})]})]}),f>1&&a(Wt,{page:p,totalPages:f,onChange:b})]}),a("p",{className:"text-gray-500 mb-8 text-sm leading-relaxed font-medium",children:o}),a("div",{className:"space-y-4 grow",children:u.length>0?a("div",{className:"grid grid-cols-1 gap-4 animate-in fade-in slide-in-from-bottom-2 duration-300",children:u.map(c=>e==="compact"?a(Ht,{service:c,primaryColor:r},c.id):a($t,{service:c,primaryColor:r},c.id))}):a(Kt,{icon:h,label:n})})]})}function Wt({page:e,totalPages:t,onChange:i}){return d("div",{className:"flex items-center gap-2 bg-gray-50/50 p-1.5 rounded-2xl border border-gray-100 self-end sm:self-center",children:[a(Oe,{disabled:e===0,onClick:()=>i(e-1),d:"M15 19l-7-7 7-7"}),d("span",{className:"text-[10px] font-black font-mono text-gray-500 w-10 text-center",children:[e+1," / ",t]}),a(Oe,{disabled:e>=t-1,onClick:()=>i(e+1),d:"M9 5l7 7-7 7"})]})}function Oe({disabled:e,onClick:t,d:i}){return a("button",{disabled:e,onClick:t,className:`p-2 rounded-xl transition-all ${e?"opacity-20 cursor-not-allowed":"bg-white hover:bg-gray-100 active:scale-95 text-gray-900 shadow-sm"}`,children:a("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:i})})})}function Ve({tags:e}){return a("div",{className:"flex flex-wrap gap-2",children:e.map(t=>a("span",{className:"px-3 py-1 bg-white text-gray-600 text-[11px] font-bold rounded-xl border border-gray-100 shadow-sm",children:t},t))})}function Ht({service:e,primaryColor:t}){return d("div",{className:"flex items-center gap-4 bg-gray-50/50 p-5 rounded-3xl border border-gray-100 hover:bg-white transition-all group",children:[a("div",{className:"w-12 h-12 rounded-2xl flex items-center justify-center shrink-0 shadow-sm border border-gray-100 transition-all group-hover:scale-110 bg-white",style:{color:t},children:a(Ue,{id:e.id})}),d("div",{children:[a("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name}),a("div",{className:"mt-2",children:a(Ve,{tags:e.dataCollected})})]})]})}function $t({service:e,primaryColor:t}){return d("div",{className:"p-6 bg-gray-50/50 rounded-3xl border border-gray-100 hover:bg-white transition-all group",children:[d("div",{className:"flex items-center justify-between mb-4",children:[d("div",{className:"flex items-center gap-3",children:[a("div",{className:"text-gray-400 group-hover:scale-110 transition-transform",style:{color:t},children:a(Ue,{id:e.id})}),a("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name})]}),a("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:t}})]}),a(Ve,{tags:e.dataCollected})]})}function Kt({icon:e,label:t}){return d("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[a("div",{className:"w-12 h-12 rounded-full bg-gray-50 flex items-center justify-center mb-3",children:e}),a("p",{className:"text-xs text-gray-400 font-bold uppercase tracking-widest",children:t})]})}var Jt=()=>d("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04"}),a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})]}),Yt=()=>a("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),Qt=()=>a("svg",{className:"w-6 h-6 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),Zt=()=>a("svg",{className:"w-6 h-6 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})});import{Fragment as he,jsx as ve}from"react/jsx-runtime";function ei({category:e,children:t,fallback:i=null,renderWhileHydrating:o=!1}){let n=y(e);return n===void 0?ve(he,{children:o?t:i}):n?ve(he,{children:t}):ve(he,{children:i})}import{jsx as A,jsxs as j}from"react/jsx-runtime";function ti({language:e,primaryColor:t}){let i=R(e);return j("div",{className:"p-12 rounded-[3.5rem] text-white space-y-8 shadow-2xl relative overflow-hidden",style:{backgroundColor:t,boxShadow:`0 20px 50px ${t}33`},children:[j("div",{className:"relative z-10",children:[A("h3",{className:"text-3xl font-black",children:i("preferenceCenterTitle")}),A("p",{className:"text-white/80 font-medium mt-3 max-w-xl",children:i("preferenceCenterDescription")}),j("div",{className:"pt-10 flex flex-wrap gap-4",children:[A("button",{onClick:()=>T(!0),className:"px-8 py-4 bg-white text-gray-900 font-black rounded-2xl hover:scale-105 transition-all text-sm uppercase tracking-widest shadow-xl",style:{color:t},children:i("managePreferencesButton")}),A("button",{onClick:de,className:"px-8 py-4 bg-white/10 hover:bg-white/20 text-white font-black rounded-2xl transition-all text-sm uppercase tracking-widest border border-white/10",children:i("resetBannerButton")})]}),j("div",{className:"pt-12 flex flex-wrap gap-8 text-[10px] font-black uppercase tracking-widest",children:[A("a",{href:"/privacy-policy",className:"text-white/70 hover:text-white transition-colors underline decoration-2 underline-offset-4",children:i("fullPrivacyPolicyLink")}),j("span",{className:"cursor-help text-white/70 hover:text-white transition-colors relative group",children:[i("browserInfo"),j("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-4 w-72 p-5 bg-white text-gray-900 text-[12px] font-medium leading-relaxed rounded-2xl opacity-0 group-hover:opacity-100 transition-all pointer-events-none shadow-[0_20px_50px_rgba(0,0,0,0.3)] z-50 normal-case tracking-normal border border-gray-100 scale-95 group-hover:scale-100 origin-bottom",children:[A("p",{className:"font-black text-[10px] uppercase tracking-widest mb-2",style:{color:t},children:i("browserSettingsTitle")}),i("browserSettingsDescription"),A("div",{className:"absolute top-full left-1/2 -translate-x-1/2 border-8 border-transparent border-t-white"})]})]})]})]}),A("div",{className:"absolute -bottom-24 -right-24 w-80 h-80 bg-white/10 rounded-full blur-3xl"})]})}import{useEffect as ii}from"react";import{jsx as ni}from"react/jsx-runtime";var oi=`
3
3
  (function(){
4
4
  if (window.__gLegalConsentBooted) return;
5
5
  window.__gLegalConsentBooted = true;
@@ -20,4 +20,4 @@ import{createContext as ct,useContext as xe,useEffect as we,useMemo as dt}from"r
20
20
  window.gtag('set', 'ads_data_redaction', true);
21
21
  window.gtag('set', 'url_passthrough', true);
22
22
  })();
23
- `;function Re({regions:e}={}){let{statistical:t,marketing:o}=M();return Gt(()=>{if(typeof window>"u"||typeof window.gtag!="function")return;let i={analytics_storage:t?"granted":"denied",ad_storage:o?"granted":"denied",ad_user_data:o?"granted":"denied",ad_personalization:o?"granted":"denied",personalization_storage:o?"granted":"denied"};e&&e.length>0?window.gtag("consent","update",{...i,region:e}):window.gtag("consent","update",i)},[t,o,e]),Ft("script",{dangerouslySetInnerHTML:{__html:jt}})}import{useCallback as Vt,useEffect as Ot}from"react";function x(e,t){if(typeof document>"u"||document.getElementById(t))return;let o=document.createElement("script");o.id=t,o.async=!0,o.src=e,o.dataset.grafficoLegal="1",document.head.appendChild(o)}function Q(){typeof window>"u"||(window.dataLayer=window.dataLayer||[],typeof window.gtag!="function"&&(window.gtag=function(){window.dataLayer.push(arguments)}))}function Z(e){if(typeof document>"u")return;let t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}function G(e,t){typeof window>"u"||(window[`ga-disable-${e}`]=t)}function X(e){if(typeof document>"u"||typeof window>"u")return;let t=window.location.hostname,o=t.split(".").slice(-2).join("."),i="expires=Thu, 01 Jan 1970 00:00:00 GMT";for(let a of e)document.cookie=`${a}=; ${i}; path=/`,document.cookie=`${a}=; ${i}; path=/; domain=${t}`,document.cookie=`${a}=; ${i}; path=/; domain=.${o}`}var _e=e=>`graffico-legal-ga-${e}`;function Ut(e){return["_ga","_gid",`_ga_${e.replace(/^G-/,"")}`,`_gat_${e}`,"_gcl_au"]}function Be({gaId:e,category:t="statistical",anonymizeIp:o=!0,sendPageViews:i=!0,debug:a=!1}){let r=p(t);return Ot(()=>{if(!(typeof window>"u")){if(r){G(e,!1),Q(),x(`https://www.googletagmanager.com/gtag/js?id=${e}`,_e(e)),window.gtag("js",new Date),window.gtag("config",e,{anonymize_ip:o,send_page_view:i,debug_mode:a});return}r===!1&&(G(e,!0),Z(_e(e)),X(Ut(e)))}},[r,e,o,i,a]),null}function Ge(){let e=p("statistical");return Vt((t,o)=>{e&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event",t,o))},[e])}import{useCallback as qt,useEffect as Wt}from"react";var Ht=["_gcl_au","_gcl_aw","_gcl_dc"],je=e=>`graffico-legal-ads-${e}`,Fe={};function Ve({conversionId:e,conversions:t,category:o="marketing"}){let i=p(o);return Fe=t??{},Wt(()=>{if(!(typeof window>"u")){if(i){G(e,!1),Q(),x(`https://www.googletagmanager.com/gtag/js?id=${e}`,je(e)),window.gtag("js",new Date),window.gtag("config",e);return}i===!1&&(G(e,!0),Z(je(e)),X(Ht))}},[i,e]),null}function Oe(e){let t=p("marketing");return qt(o=>{if(!t)return;let i=Fe[e];i&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event","conversion",{send_to:i.sendTo,value:i.value,currency:i.currency,...o}))},[t,e])}import{useCallback as $t,useEffect as Jt}from"react";var ge=null;function Kt(e,t){let o=window;if(o.fbq){o.fbq("consent","grant");return}let i=function(...a){i.callMethod?i.callMethod.apply(i,a):i.queue.push(a)};i.queue=[],i.push=i,i.loaded=!0,i.version="2.0",o.fbq=i,o._fbq||(o._fbq=i),x("https://connect.facebook.net/en_US/fbevents.js",`graffico-legal-meta-${e}`),i("init",e),t&&i("track","PageView")}function Ue({pixelId:e,category:t="marketing",autoPageView:o=!0,events:i}){let a=p(t);return ge=i??null,Jt(()=>{a?Kt(e,o):a===!1&&typeof window.fbq=="function"&&window.fbq("consent","revoke")},[a,e,o]),null}function qe(e){let t=p("marketing");return $t(o=>{if(t){if(ge&&!ge.includes(e)){typeof console<"u"&&console.warn(`[graffico-legal] Meta event "${e}" non in whitelist`);return}typeof window>"u"||typeof window.fbq!="function"||window.fbq("track",e,o)}},[t,e])}import{useEffect as Yt}from"react";function We({containerId:e,category:t="marketing",dataLayerName:o="dataLayer"}){let i=p(t);return Yt(()=>{if(!i)return;let a=window;a[o]=a[o]||[],a[o].push({"gtm.start":Date.now(),event:"gtm.js"});let r=o!=="dataLayer"?`&l=${o}`:"";x(`https://www.googletagmanager.com/gtm.js?id=${e}${r}`,`graffico-legal-gtm-${e}`)},[i,e,o]),null}import{useCallback as He,useEffect as Qt}from"react";function $e({siteId:e,snippetVersion:t=6,category:o="statistical"}){let i=p(o);return Qt(()=>{if(!i||typeof window>"u"||window.hj)return;let a=[],r=function(...s){a.push(s)};r.q=a,window.hj=r,window._hjSettings={hjid:e,hjsv:t},x(`https://static.hotjar.com/c/hotjar-${e}.js?sv=${t}`,`graffico-legal-hotjar-${e}`)},[i,e,t]),null}function Je(e="statistical"){let t=p(e);return He(o=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("event",o))},[t])}function Ke(e="statistical"){let t=p(e);return He((o,i)=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("identify",o,i))},[t])}import{useCallback as Qe,useEffect as Zt,useRef as Ze,useState as Xt}from"react";function Ye(e){if(!e||typeof e!="string")return;let t=e.trim();if(t.length===0)return;if(t.startsWith("/")||t.startsWith("#")||t.startsWith("?"))return t;let o=t.toLowerCase();if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("mailto:")||o.startsWith("tel:"))return t}import{jsx as Xe,jsxs as et}from"react/jsx-runtime";var b={requireExplicitConsent:!0};function tt({serviceId:e,templateId:t,publicKey:o,requireExplicitConsent:i=!0}){return b.serviceId=e,b.templateId=t,b.publicKey=o,b.requireExplicitConsent=i,null}var q={consentId:"_consentId",consentTimestamp:"_consentTimestamp",policyVersion:"_policyVersion",submittedAt:"_submittedAt",retentionUntil:"_retentionUntil"};function W(e,t,o){let i=e.querySelector(`input[type="hidden"][name="${CSS.escape(t)}"]`);i||(i=document.createElement("input"),i.type="hidden",i.name=t,e.appendChild(i)),i.value=o}function me({label:e,privacyHref:t="/privacy-policy",privacyLabel:o,className:i,style:a,...r}){let s=T(),g=E(),y=g?w(g):void 0,d=Ye(t)??"/privacy-policy";return et("label",{className:i??"flex items-start gap-3 text-sm text-gray-600 leading-relaxed cursor-pointer select-none",style:a,children:[Xe("input",{type:"checkbox",name:"_legalConsent",className:"mt-1 h-4 w-4 rounded border-gray-300 cursor-pointer",style:y?{accentColor:y}:void 0,required:!0,...r}),et("span",{children:[e??s("consentCheckboxLabel")," ",Xe("a",{href:d,className:"underline underline-offset-2 hover:opacity-80",style:y?{color:y}:void 0,children:o??s("privacyPolicyLink")})]})]})}function ot(e={}){let t=M(),o=E(),[i,a]=Xt("idle"),r=Ze(e.onSent),s=Ze(e.submissionLogEndpoint);Zt(()=>{r.current=e.onSent,s.current=e.submissionLogEndpoint});let g=Qe(async d=>{if(!b.serviceId||!b.templateId||!b.publicKey)return{ok:!1,error:"CONFIG_MISSING"};if(b.requireExplicitConsent){let u=d.querySelector('input[name="_legalConsent"]');if(!u||!u.checked)return{ok:!1,error:"CONSENT_MISSING"}}let h=new Date,k=Te(o?.retention?.contactForms,h);W(d,q.consentId,t.consentId??""),W(d,q.consentTimestamp,t.timestamp??""),W(d,q.policyVersion,t.policyVersion??""),W(d,q.submittedAt,h.toISOString()),W(d,q.retentionUntil,k?k.toISOString():"");let m={consentId:t.consentId,consentTimestamp:t.timestamp,policyVersion:t.policyVersion,retentionUntil:k?.toISOString(),submittedAt:h.toISOString()};a("loading");try{let u=await import("@emailjs/browser").catch(()=>null);return u?(await(u.sendForm??u.default.sendForm)(b.serviceId,b.templateId,d,b.publicKey),a("success"),Se(r.current,m),s.current&&De(s.current,m),{ok:!0,meta:m}):(a("error"),{ok:!1,error:"MODULE_MISSING",meta:m})}catch(u){return a("error"),{ok:!1,error:"SEND_FAILED",detail:u,meta:m}}},[t,o]),y=Qe(()=>a("idle"),[]);return{send:g,status:i,reset:y,ConsentCheckbox:me}}export{ve as CONSENT_TTL_MS,kt as ConsentBanner,me as ConsentCheckbox,_t as ConsentGate,Re as ConsentModeBoot,ke as DEFAULT_PRIMARY_COLOR,tt as EmailJSLegal,le as FloatingConsentToggle,We as GTMLegal,Ve as GoogleAdsLegal,Be as GoogleAnalyticsLegal,$e as HotjarLegal,ut as LegalConfigProvider,Ue as MetaPixelLegal,Bt as PreferenceCard,Y as PreferenceModal,Le as SERVICE_PRESETS,Dt as ServiceGrid,V as acceptAll,O as declineAll,P as getConsentSnapshot,oe as hydrateFromStorage,ae as resetConsent,ce as resolveService,ie as savePreferences,te as setLanguage,C as setModalOpen,D as subscribeConsent,Oe as useAdsConversion,M as useConsent,p as useConsentCategory,ot as useEmailJS,Ge as useGAEvent,Je as useHotjarEvent,Ke as useHotjarIdentify,gt as useIsHydrated,N as useLegalConfig,E as useLegalConfigOptional,_ as useLegalLanguage,qe as useMetaEvent,re as useModalOpen,U as useShowBanner,T as useT};
23
+ `;function We({regions:e}={}){let{statistical:t,marketing:i}=E();return ii(()=>{if(typeof window>"u"||typeof window.gtag!="function")return;let o={analytics_storage:t?"granted":"denied",ad_storage:i?"granted":"denied",ad_user_data:i?"granted":"denied",ad_personalization:i?"granted":"denied",personalization_storage:i?"granted":"denied"};e&&e.length>0?window.gtag("consent","update",{...o,region:e}):window.gtag("consent","update",o)},[t,i,e]),ni("script",{dangerouslySetInnerHTML:{__html:oi}})}import{useCallback as ai,useEffect as ri}from"react";function k(e,t){if(typeof document>"u"||document.getElementById(t))return;let i=document.createElement("script");i.id=t,i.async=!0,i.src=e,i.dataset.grafficoLegal="1",document.head.appendChild(i)}function ne(){typeof window>"u"||(window.dataLayer=window.dataLayer||[],typeof window.gtag!="function"&&(window.gtag=function(){window.dataLayer.push(arguments)}))}function q(e){if(typeof document>"u")return;let t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}function O(e,t){typeof window>"u"||(window[`ga-disable-${e}`]=t)}function U(e){if(typeof document>"u"||typeof window>"u")return;let t=window.location.hostname,i=t.split(".").slice(-2).join("."),o="expires=Thu, 01 Jan 1970 00:00:00 GMT";for(let n of e)document.cookie=`${n}=; ${o}; path=/`,document.cookie=`${n}=; ${o}; path=/; domain=${t}`,document.cookie=`${n}=; ${o}; path=/; domain=.${i}`}var He=e=>`graffico-legal-ga-${e}`;function si(e){return["_ga","_gid",`_ga_${e.replace(/^G-/,"")}`,`_gat_${e}`,"_gcl_au"]}function $e({gaId:e,category:t="statistical",anonymizeIp:i=!0,sendPageViews:o=!0,debug:n=!1}){let r=y(t);return ri(()=>{if(!(typeof window>"u")){if(r){O(e,!1),ne(),k(`https://www.googletagmanager.com/gtag/js?id=${e}`,He(e)),window.gtag("js",new Date),window.gtag("config",e,{anonymize_ip:i,send_page_view:o,debug_mode:n});return}r===!1&&(O(e,!0),q(He(e)),U(si(e)))}},[r,e,i,o,n]),null}function Ke(){let e=v("statistical");return ai((t,i)=>{e&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event",t,i))},[e])}import{useCallback as li,useEffect as ci}from"react";var di=["_gcl_au","_gcl_aw","_gcl_dc"],Je=e=>`graffico-legal-ads-${e}`,Ye={};function Qe({conversionId:e,conversions:t,category:i="marketing"}){let o=y(i);return Ye=t??{},ci(()=>{if(!(typeof window>"u")){if(o){O(e,!1),ne(),k(`https://www.googletagmanager.com/gtag/js?id=${e}`,Je(e)),window.gtag("js",new Date),window.gtag("config",e);return}o===!1&&(O(e,!0),q(Je(e)),U(di))}},[o,e]),null}function Ze(e){let t=v("marketing");return li(i=>{if(!t)return;let o=Ye[e];o&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event","conversion",{send_to:o.sendTo,value:o.value,currency:o.currency,...i}))},[t,e])}import{useCallback as ui,useEffect as pi}from"react";var be=null;function gi(e,t){let i=window;if(i.fbq){i.fbq("consent","grant");return}let o=function(...n){o.callMethod?o.callMethod.apply(o,n):o.queue.push(n)};o.queue=[],o.push=o,o.loaded=!0,o.version="2.0",i.fbq=o,i._fbq||(i._fbq=o),k("https://connect.facebook.net/en_US/fbevents.js",`graffico-legal-meta-${e}`),o("init",e),t&&o("track","PageView")}function Xe({pixelId:e,category:t="marketing",autoPageView:i=!0,events:o}){let n=y(t);return be=o??null,pi(()=>{n?gi(e,i):n===!1&&typeof window.fbq=="function"&&window.fbq("consent","revoke")},[n,e,i]),null}function et(e){let t=v("marketing");return ui(i=>{if(t){if(be&&!be.includes(e)){typeof console<"u"&&console.warn(`[graffico-legal] Meta event "${e}" non in whitelist`);return}typeof window>"u"||typeof window.fbq!="function"||window.fbq("track",e,i)}},[t,e])}import{useEffect as mi}from"react";function tt({containerId:e,category:t="marketing",dataLayerName:i="dataLayer"}){let o=y(t);return mi(()=>{if(!o)return;let n=window;n[i]=n[i]||[],n[i].push({"gtm.start":Date.now(),event:"gtm.js"});let r=i!=="dataLayer"?`&l=${i}`:"";k(`https://www.googletagmanager.com/gtm.js?id=${e}${r}`,`graffico-legal-gtm-${e}`)},[o,e,i]),null}import{useCallback as it,useEffect as fi}from"react";function ot({siteId:e,snippetVersion:t=6,category:i="statistical"}){let o=y(i);return fi(()=>{if(!o||typeof window>"u"||window.hj)return;let n=[],r=function(...s){n.push(s)};r.q=n,window.hj=r,window._hjSettings={hjid:e,hjsv:t},k(`https://static.hotjar.com/c/hotjar-${e}.js?sv=${t}`,`graffico-legal-hotjar-${e}`)},[o,e,t]),null}function nt(e="statistical"){let t=v(e);return it(i=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("event",i))},[t])}function at(e="statistical"){let t=v(e);return it((i,o)=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("identify",i,o))},[t])}import{useCallback as yi,useEffect as hi}from"react";var rt=e=>`graffico-legal-linkedin-${e}`;function vi(){return["UserMatchHistory","AnalyticsSyncHistory","li_sugr","lidc","bcookie","bscookie"]}function st({partnerId:e,category:t="marketing"}){let i=y(t);return hi(()=>{if(!(typeof window>"u")){if(i){let o=window;if(o._linkedin_partner_id=e,o._linkedin_data_partner_ids=o._linkedin_data_partner_ids||[],o._linkedin_data_partner_ids.includes(e)||o._linkedin_data_partner_ids.push(e),typeof o.lintrk!="function"){let n=[],r=function(s,g){n.push([s,g])};r.q=n,o.lintrk=r}k("https://snap.licdn.com/li.lms-analytics/insight.min.js",rt(e));return}i===!1&&(q(rt(e)),U(vi()))}},[i,e]),null}function lt(){let e=v("marketing");return yi(t=>{e&&(typeof window>"u"||typeof window.lintrk!="function"||window.lintrk("track",{conversion_id:t}))},[e])}import{useCallback as dt,useEffect as bi,useRef as ut,useState as ki}from"react";function ct(e){if(!e||typeof e!="string")return;let t=e.trim();if(t.length===0)return;if(t.startsWith("/")||t.startsWith("#")||t.startsWith("?"))return t;let i=t.toLowerCase();if(i.startsWith("http://")||i.startsWith("https://")||i.startsWith("mailto:")||i.startsWith("tel:"))return t}import{jsx as pt,jsxs as gt}from"react/jsx-runtime";var C={requireExplicitConsent:!0};function mt({serviceId:e,templateId:t,publicKey:i,requireExplicitConsent:o=!0}){return C.serviceId=e,C.templateId=t,C.publicKey=i,C.requireExplicitConsent=o,null}var Y={consentId:"_consentId",consentTimestamp:"_consentTimestamp",policyVersion:"_policyVersion",submittedAt:"_submittedAt",retentionUntil:"_retentionUntil"};function Q(e,t,i){let o=e.querySelector(`input[type="hidden"][name="${CSS.escape(t)}"]`);o||(o=document.createElement("input"),o.type="hidden",o.name=t,e.appendChild(o)),o.value=i}function ke({label:e,privacyHref:t="/privacy-policy",privacyLabel:i,className:o,style:n,...r}){let s=z(),g=B(),h=g?S(g):void 0,p=ct(t)??"/privacy-policy";return gt("label",{className:o??"flex items-start gap-3 text-sm text-gray-600 leading-relaxed cursor-pointer select-none",style:n,children:[pt("input",{type:"checkbox",name:"_legalConsent",className:"mt-1 h-4 w-4 rounded border-gray-300 cursor-pointer",style:h?{accentColor:h}:void 0,required:!0,...r}),gt("span",{children:[e??s("consentCheckboxLabel")," ",pt("a",{href:p,className:"underline underline-offset-2 hover:opacity-80",style:h?{color:h}:void 0,children:i??s("privacyPolicyLink")})]})]})}function ft(e={}){let t=E(),i=B(),[o,n]=ki("idle"),r=ut(e.onSent),s=ut(e.submissionLogEndpoint);bi(()=>{r.current=e.onSent,s.current=e.submissionLogEndpoint});let g=dt(async p=>{if(!C.serviceId||!C.templateId||!C.publicKey)return{ok:!1,error:"CONFIG_MISSING"};if(C.requireExplicitConsent){let c=p.querySelector('input[name="_legalConsent"]');if(!c||!c.checked)return{ok:!1,error:"CONSENT_MISSING"}}let b=new Date,f=Ne(i?.retention?.contactForms,b);Q(p,Y.consentId,t.consentId??""),Q(p,Y.consentTimestamp,t.timestamp??""),Q(p,Y.policyVersion,t.policyVersion??""),Q(p,Y.submittedAt,b.toISOString()),Q(p,Y.retentionUntil,f?f.toISOString():"");let u={consentId:t.consentId,consentTimestamp:t.timestamp,policyVersion:t.policyVersion,retentionUntil:f?.toISOString(),submittedAt:b.toISOString()};n("loading");try{let c=await import("@emailjs/browser").catch(()=>null);return c?(await(c.sendForm??c.default.sendForm)(C.serviceId,C.templateId,p,C.publicKey),n("success"),Ee(r.current,u),s.current&&_e(s.current,u),{ok:!0,meta:u}):(n("error"),{ok:!1,error:"MODULE_MISSING",meta:u})}catch(c){return n("error"),{ok:!1,error:"SEND_FAILED",detail:c,meta:u}}},[t,i]),h=dt(()=>n("idle"),[]);return{send:g,status:o,reset:h,ConsentCheckbox:ke}}export{Se as CONSENT_TTL_MS,qt as ConsentBanner,ke as ConsentCheckbox,ei as ConsentGate,We as ConsentModeBoot,Ae as DEFAULT_PRIMARY_COLOR,mt as EmailJSLegal,me as FloatingConsentToggle,tt as GTMLegal,Qe as GoogleAdsLegal,$e as GoogleAnalyticsLegal,ot as HotjarLegal,Tt as LegalConfigProvider,st as LinkedInInsightLegal,Xe as MetaPixelLegal,ti as PreferenceCard,oe as PreferenceModal,ie as SERVICE_PRESETS,Vt as ServiceGrid,W as acceptAll,H as declineAll,P as getConsentSnapshot,le as hydrateFromStorage,de as resetConsent,K as resolveService,ce as savePreferences,se as setLanguage,T as setModalOpen,D as subscribeConsent,Ze as useAdsConversion,E as useConsent,v as useConsentCategory,ft as useEmailJS,Ke as useGAEvent,nt as useHotjarEvent,at as useHotjarIdentify,Pt as useIsHydrated,I as useLegalConfig,B as useLegalConfigOptional,F as useLegalLanguage,lt as useLinkedInInsightEvent,et as useMetaEvent,pe as useModalOpen,$ as useShowBanner,z as useT};