@graffico/legal 0.3.4 → 0.3.5

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.
Files changed (3) hide show
  1. package/README.md +24 -0
  2. package/dist/index.js +1 -1
  3. package/package.json +78 -78
package/README.md CHANGED
@@ -48,6 +48,30 @@ export default function RootLayout({ children }) {
48
48
 
49
49
  `<LegalProvider>` monta automaticamente banner + modale + floating toggle.
50
50
 
51
+ ### Tailwind / globals.css
52
+
53
+ La libreria usa Tailwind utility classes inline (niente CSS bundle). Devi dire al JIT di Tailwind di scansionare i file della libreria, altrimenti banner e modale appariranno senza stili.
54
+
55
+ **Tailwind v4** — aggiungi una direttiva `@source` in `src/app/globals.css` (o equivalente):
56
+
57
+ ```css
58
+ @import "tailwindcss";
59
+ @source "../../node_modules/@graffico/legal/dist/**/*.{js,cjs}";
60
+ ```
61
+
62
+ > Il path `../../` parte da `src/app/`. Se il tuo `globals.css` sta altrove, regola la profondità relativa. In monorepo con workspace, il dist è raggiungibile via `node_modules` simlink.
63
+
64
+ **Tailwind v3** — aggiungi al `tailwind.config.js`:
65
+
66
+ ```js
67
+ module.exports = {
68
+ content: [
69
+ "./src/**/*.{js,ts,jsx,tsx}",
70
+ "./node_modules/@graffico/legal/dist/**/*.{js,cjs}",
71
+ ],
72
+ };
73
+ ```
74
+
51
75
  ---
52
76
 
53
77
  ## 2. Tracker — drop-in con consenso integrato
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import{createContext as Ze,useContext as he,useEffect as ye,useMemo as Xe}from"react";var F={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: Dati di utilizzo, Strumenti di Tracciamento, numero di Utenti, statistiche delle sessioni.",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",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.",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",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",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: Usage data, Tracking Tools, number of Users, session statistics.",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",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.",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",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",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 He={it:"it-IT",en:"en-US"},ue=new Map;function U(e){return e&&e.toLowerCase().startsWith("en")?"en":"it"}function I(e){let t=ue.get(e);if(t)return t;let o=F[e]??F.it,i=F.it,n=r=>o[r]??i[r];return ue.set(e,n),n}var pe=e=>He[e];function ge(){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 W="graffico-legal-consent",me=1e3*60*60*24*180,G={necessary:!0,statistical:!1,marketing:!1},fe=Object.freeze({language:"it",consent:G,showBanner:!1,isModalOpen:!1,hydrated:!1}),T=fe,Y=new Set;function $e(){for(let e of Y)e()}function P(e){let t=!1;for(let o in e)if(T[o]!==e[o]){t=!0;break}t&&(T={...T,...e},$e())}function D(e){return Y.add(e),()=>{Y.delete(e)}}var S=()=>T,_=()=>fe;function K(e){P({language:U(e)})}function Je(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 Ye(){if(typeof navigator>"u")return!1;let e=navigator;return e.globalPrivacyControl===!0||typeof e.doNotTrack=="string"&&e.doNotTrack==="1"}function Ke(e){return typeof e.expiresAt=="number"&&Date.now()>e.expiresAt}function Qe(e,t){return t?e.policyVersion!==t:!1}function Q(e={}){if(T.hydrated||typeof window>"u")return;let t;try{let s=window.localStorage.getItem(W);if(s){let u=JSON.parse(s);t=Je(u)??void 0}}catch{}let o=t&&Ke(t),i=t&&Qe(t,e.policyVersion),n=t&&!o&&!i?t:void 0;if(!n&&(o||i))try{window.localStorage.removeItem(W)}catch{}let r={language:e.language??T.language,activePolicyVersion:e.policyVersion,hydrated:!0};if(n){P({...r,consent:n,showBanner:!1});return}if(Ye()){P(r),H(G,"gpc-auto");return}P({...r,consent:G,showBanner:!0})}function H(e,t){let o=T.consent.consentId||ge(),i={...e,necessary:!0,consentId:o,timestamp:new Date().toISOString(),expiresAt:Date.now()+me,policyVersion:T.activePolicyVersion,source:t};try{window.localStorage.setItem(W,JSON.stringify(i))}catch{}return P({consent:i,showBanner:!1,isModalOpen:!1}),i}function Z(e,t="modal"){return H(e,t)}function j(e="banner"){return H({necessary:!0,statistical:!0,marketing:!0},e)}function q(e="banner"){return H(G,e)}function X(){try{window.localStorage.removeItem(W)}catch{}P({consent:G,showBanner:!0,isModalOpen:!1})}function x(e){P({isModalOpen:e})}import{jsx as tt}from"react/jsx-runtime";var ee=Ze(null);function et({config:e,children:t}){let o=Xe(()=>({config:e}),[e]);return ye(()=>{Q({policyVersion:e.policyVersion})},[]),ye(()=>{K(U(e.language))},[e.language]),tt(ee.Provider,{value:o,children:t})}function L(){let e=he(ee);if(!e)throw new Error("useLegalConfig deve essere usato dentro <LegalProvider>");return e.config}function V(){return he(ee)?.config??null}import{useSyncExternalStore as A}from"react";var E=()=>A(D,()=>S().language,()=>_().language),N=()=>A(D,()=>S().consent,()=>_().consent),d=e=>A(D,()=>{let t=S();return t.hydrated?t.consent[e]:void 0},()=>{}),ot=()=>A(D,()=>S().hydrated,()=>!1),O=()=>A(D,()=>S().showBanner,()=>_().showBanner),te=()=>A(D,()=>S().isModalOpen,()=>_().isModalOpen);function k(){return I(E())}var ve="#2c5282",b=e=>e.primaryColor??ve,be=e=>e.domain||e.name;import{useEffect as it,useState as at}from"react";import{jsx as l,jsxs as p}from"react/jsx-runtime";var $=()=>{let e=L(),t=N(),o=te(),i=E(),n=k(),[r,s]=at(t),u=b(e);if(it(()=>{s(t)},[t,o]),!o)return null;let m=f=>{f!=="necessary"&&s(C=>({...C,[f]:!C[f]}))};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:p("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:[p("div",{className:"p-6 md:p-8 border-b border-gray-100 flex items-center justify-between",children:[p("div",{children:[l("h2",{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:()=>x(!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"})})})]}),p("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:p("div",{className:"flex flex-col gap-4",children:[p("div",{className:"p-4 bg-gray-50 rounded-2xl border border-gray-100 flex items-center justify-between",children:[p("div",{className:"max-w-[80%]",children:[l("h3",{className:"font-bold text-gray-900",children:n("necessaryTitle")}),l("p",{className:"text-xs text-gray-500 mt-0.5",children:n("necessaryDescription")})]}),p("div",{className:"relative inline-flex items-center cursor-not-allowed opacity-50",children:[l("div",{className:"w-11 h-6 rounded-full",style:{backgroundColor:u}}),l("div",{className:"absolute left-6 w-4 h-4 bg-white rounded-full"})]})]}),l(we,{title:n("measurementTitle"),description:n("measurementDescription"),active:r.statistical,primaryColor:u,onClick:()=>m("statistical")}),l(we,{title:n("marketingTitle"),description:n("marketingDescription"),active:r.marketing,primaryColor:u,onClick:()=>m("marketing")})]})}),t.consentId&&p("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:p("div",{className:"flex flex-col gap-2",children:[p("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})]}),p("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(pe(i)):"-"})]})]})}),l("p",{className:"text-[9px] text-gray-400 mt-3 leading-relaxed",children:n("legalProofDescription")})]})]}),p("div",{className:"p-6 bg-gray-50 border-t border-gray-100 flex flex-col sm:flex-row gap-3",children:[l("button",{onClick:()=>q("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:()=>Z(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:()=>j("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:u},children:n("acceptAll")})]})]})})};function we({title:e,description:t,active:o,primaryColor:i,onClick:n}){return p("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:[p("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 oe,jsxs as rt}from"react/jsx-runtime";var nt={"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","top-right":"top-6 right-6","top-left":"top-6 left-6"},ie=()=>{let e=L(),t=O(),o=k();if(t)return null;let i=e.togglePosition??"bottom-right";return rt("button",{onClick:()=>x(!0),className:`fixed ${nt[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:b(e)},"aria-label":o("privacyPreferences"),children:[oe("svg",{className:"w-6 h-6 group-hover:rotate-12 transition-transform",fill:"currentColor",viewBox:"0 0 24 24",children:oe("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"})}),oe("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 xe,jsx as h,jsxs as M}from"react/jsx-runtime";var st=()=>{let e=L(),t=O(),o=k();if(!t)return M(xe,{children:[h(ie,{}),h($,{})]});let i=e.theme!=="light",n=b(e);return M(xe,{children:[h("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 ${i?"bg-black/95 text-white border-white/10":"bg-white/95 text-gray-900 border-gray-100"}`,children:[h("div",{className:"absolute -bottom-24 -right-24 w-64 h-64 blur-[100px] opacity-20 transition-colors pointer-events-none",style:{backgroundColor:n}}),M("div",{className:"grow space-y-2 md:space-y-3 text-center md:text-left relative z-10",children:[h("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 ${i?"text-gray-400":"text-gray-500"}`,children:[o("bannerDescription"),h("span",{className:i?"text-white":"text-gray-900",children:o("bannerDescriptionMeasurement")}),o("bannerDescriptionEnd"),h("a",{href:"/cookie-policy",className:"underline hover:opacity-80 transition-opacity font-bold",style:{color:i?"inherit":n},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:[h("button",{onClick:()=>q("banner"),className:`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")}),h("button",{onClick:()=>j("banner"),className:"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:n},children:o("accept")})]}),h("button",{onClick:()=>x(!0),className:`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")})]})]})}),h($,{})]})};import{useMemo as lt,useState as ct}from"react";var ke={"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"}},ae=e=>typeof e=="string"?ke[e]||{id:e,name:e,category:"automatic",purposes:[],dataCollected:[]}:e;import{Fragment as wt,jsx as a,jsxs as c}from"react/jsx-runtime";var ne=4,De=({id:e})=>{switch(e){case"google-analytics":return c("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 c("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 c("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 c("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 c("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 c("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 c("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 c("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"})]})}},dt={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","YouTube Video Widget":"youtubeWidget","Google Maps Widget":"googleMapsWidget"},ut=({config:e,language:t}={})=>{let o=V(),i=E(),n=e??o,r=t??i,s=I(r),u=n?b(n):"#2c5282",{automaticServices:m,providedServices:f}=lt(()=>{if(!n)return{automaticServices:[],providedServices:[]};let C=y=>{let g=dt[y];return g?s(g):y},R=(n.services??[]).map(y=>{let g=ae(y);return{...g,name:C(g.name),purposes:g.purposes.map(C),dataCollected:g.dataCollected.map(C)}});return{automaticServices:R.filter(y=>y.category==="automatic"),providedServices:R.filter(y=>y.category==="provided")}},[n,r,s]);return n?c("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-1",children:[a(Ce,{variant:"compact",title:s("automaticDataTitle"),subtitle:s("monitorTitle"),description:c(wt,{children:[s("automaticDataDescription"),a("span",{className:"text-gray-900 font-black",children:be(n)})," ",s("automaticDataIncludes")]}),emptyLabel:s("noActiveService"),primaryColor:u,services:m,icon:a(yt,{}),emptyIcon:a(vt,{})}),a(Ce,{variant:"expanded",title:s("providedDataTitle"),subtitle:s("supportTitle"),description:s("providedDataDescription"),emptyLabel:s("noActiveService"),primaryColor:u,services:f,icon:a(ht,{}),emptyIcon:a(bt,{})})]}):null};function Ce({variant:e,title:t,subtitle:o,description:i,emptyLabel:n,primaryColor:r,services:s,icon:u,emptyIcon:m}){let[f,C]=ct(0),R=Math.ceil(s.length/ne),y=s.slice(f*ne,(f+1)*ne);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:[a("div",{className:"p-3 rounded-2xl shrink-0",style:{backgroundColor:`${r}1a`,color:r},children:u}),c("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:o})]})]}),R>1&&a(pt,{page:f,totalPages:R,onChange:C})]}),a("p",{className:"text-gray-500 mb-8 text-sm leading-relaxed font-medium",children:i}),a("div",{className:"space-y-4 grow",children:y.length>0?a("div",{className:"grid grid-cols-1 gap-4 animate-in fade-in slide-in-from-bottom-2 duration-300",children:y.map(g=>e==="compact"?a(gt,{service:g,primaryColor:r},g.id):a(mt,{service:g,primaryColor:r},g.id))}):a(ft,{icon:m,label:n})})]})}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:[a(Te,{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]}),a(Te,{disabled:e>=t-1,onClick:()=>o(e+1),d:"M9 5l7 7-7 7"})]})}function Te({disabled:e,onClick:t,d:o}){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:o})})})}function Se({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 gt({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:[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(De,{id:e.id})}),c("div",{children:[a("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name}),a("div",{className:"mt-2",children:a(Se,{tags:e.dataCollected})})]})]})}function mt({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:[a("div",{className:"text-gray-400 group-hover:scale-110 transition-transform",style:{color:t},children:a(De,{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(Se,{tags:e.dataCollected})]})}function ft({icon:e,label:t}){return c("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 yt=()=>c("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"})]}),ht=()=>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"})}),vt=()=>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"})}),bt=()=>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 re,jsx as se}from"react/jsx-runtime";function xt({category:e,children:t,fallback:o=null,renderWhileHydrating:i=!1}){let n=d(e);return n===void 0?se(re,{children:i?t:o}):n?se(re,{children:t}):se(re,{children:o})}import{jsx as z,jsxs as B}from"react/jsx-runtime";function kt({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:()=>x(!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:X,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 Ct}from"react";import{jsx as Dt}from"react/jsx-runtime";var Tt=`
2
+ import{createContext as Ze,useContext as he,useEffect as ye,useMemo as Xe}from"react";var F={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: Dati di utilizzo, Strumenti di Tracciamento, numero di Utenti, statistiche delle sessioni.",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",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.",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",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",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: Usage data, Tracking Tools, number of Users, session statistics.",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",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.",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",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",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 He={it:"it-IT",en:"en-US"},ue=new Map;function U(e){return e&&e.toLowerCase().startsWith("en")?"en":"it"}function I(e){let t=ue.get(e);if(t)return t;let o=F[e]??F.it,i=F.it,n=r=>o[r]??i[r];return ue.set(e,n),n}var pe=e=>He[e];function ge(){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 W="graffico-legal-consent",me=1e3*60*60*24*180,G={necessary:!0,statistical:!1,marketing:!1},fe=Object.freeze({language:"it",consent:G,showBanner:!1,isModalOpen:!1,hydrated:!1}),T=fe,Y=new Set;function $e(){for(let e of Y)e()}function P(e){let t=!1;for(let o in e)if(T[o]!==e[o]){t=!0;break}t&&(T={...T,...e},$e())}function D(e){return Y.add(e),()=>{Y.delete(e)}}var S=()=>T,_=()=>fe;function K(e){P({language:U(e)})}function Je(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 Ye(){if(typeof navigator>"u")return!1;let e=navigator;return e.globalPrivacyControl===!0||typeof e.doNotTrack=="string"&&e.doNotTrack==="1"}function Ke(e){return typeof e.expiresAt=="number"&&Date.now()>e.expiresAt}function Qe(e,t){return t?e.policyVersion!==t:!1}function Q(e={}){if(T.hydrated||typeof window>"u")return;let t;try{let s=window.localStorage.getItem(W);if(s){let u=JSON.parse(s);t=Je(u)??void 0}}catch{}let o=t&&Ke(t),i=t&&Qe(t,e.policyVersion),n=t&&!o&&!i?t:void 0;if(!n&&(o||i))try{window.localStorage.removeItem(W)}catch{}let r={language:e.language??T.language,activePolicyVersion:e.policyVersion,hydrated:!0};if(n){P({...r,consent:n,showBanner:!1});return}if(Ye()){P(r),H(G,"gpc-auto");return}P({...r,consent:G,showBanner:!0})}function H(e,t){let o=T.consent.consentId||ge(),i={...e,necessary:!0,consentId:o,timestamp:new Date().toISOString(),expiresAt:Date.now()+me,policyVersion:T.activePolicyVersion,source:t};try{window.localStorage.setItem(W,JSON.stringify(i))}catch{}return P({consent:i,showBanner:!1,isModalOpen:!1}),i}function Z(e,t="modal"){return H(e,t)}function j(e="banner"){return H({necessary:!0,statistical:!0,marketing:!0},e)}function q(e="banner"){return H(G,e)}function X(){try{window.localStorage.removeItem(W)}catch{}P({consent:G,showBanner:!0,isModalOpen:!1})}function x(e){P({isModalOpen:e})}import{jsx as tt}from"react/jsx-runtime";var ee=Ze(null);function et({config:e,children:t}){let o=Xe(()=>({config:e}),[e]);return ye(()=>{Q({policyVersion:e.policyVersion})},[]),ye(()=>{K(U(e.language))},[e.language]),tt(ee.Provider,{value:o,children:t})}function L(){let e=he(ee);if(!e)throw new Error("useLegalConfig deve essere usato dentro <LegalProvider>");return e.config}function V(){return he(ee)?.config??null}import{useSyncExternalStore as A}from"react";var E=()=>A(D,()=>S().language,()=>_().language),N=()=>A(D,()=>S().consent,()=>_().consent),d=e=>A(D,()=>{let t=S();return t.hydrated?t.consent[e]:void 0},()=>{}),ot=()=>A(D,()=>S().hydrated,()=>!1),O=()=>A(D,()=>S().showBanner,()=>_().showBanner),te=()=>A(D,()=>S().isModalOpen,()=>_().isModalOpen);function k(){return I(E())}var ve="#2c5282",b=e=>e.primaryColor??ve,be=e=>e.domain||e.name;import{useEffect as it,useState as at}from"react";import{jsx as l,jsxs as p}from"react/jsx-runtime";var $=()=>{let e=L(),t=N(),o=te(),i=E(),n=k(),[r,s]=at(t),u=b(e);if(it(()=>{s(t)},[t,o]),!o)return null;let m=f=>{f!=="necessary"&&s(C=>({...C,[f]:!C[f]}))};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:p("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:[p("div",{className:"p-6 md:p-8 border-b border-gray-100 flex items-center justify-between",children:[p("div",{children:[l("h2",{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:()=>x(!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"})})})]}),p("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:p("div",{className:"flex flex-col gap-4",children:[p("div",{className:"p-4 bg-gray-50 rounded-2xl border border-gray-100 flex items-center justify-between",children:[p("div",{className:"max-w-[80%]",children:[l("h3",{className:"font-bold text-gray-900",children:n("necessaryTitle")}),l("p",{className:"text-xs text-gray-500 mt-0.5",children:n("necessaryDescription")})]}),p("div",{className:"relative inline-flex items-center cursor-not-allowed opacity-50",children:[l("div",{className:"w-11 h-6 rounded-full",style:{backgroundColor:u}}),l("div",{className:"absolute left-6 w-4 h-4 bg-white rounded-full"})]})]}),l(we,{title:n("measurementTitle"),description:n("measurementDescription"),active:r.statistical,primaryColor:u,onClick:()=>m("statistical")}),l(we,{title:n("marketingTitle"),description:n("marketingDescription"),active:r.marketing,primaryColor:u,onClick:()=>m("marketing")})]})}),t.consentId&&p("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:p("div",{className:"flex flex-col gap-2",children:[p("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})]}),p("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(pe(i)):"-"})]})]})}),l("p",{className:"text-[9px] text-gray-400 mt-3 leading-relaxed",children:n("legalProofDescription")})]})]}),p("div",{className:"p-6 bg-gray-50 border-t border-gray-100 flex flex-col sm:flex-row gap-3",children:[l("button",{onClick:()=>q("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:()=>Z(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:()=>j("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:u},children:n("acceptAll")})]})]})})};function we({title:e,description:t,active:o,primaryColor:i,onClick:n}){return p("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:[p("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 oe,jsxs as rt}from"react/jsx-runtime";var nt={"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","top-right":"top-6 right-6","top-left":"top-6 left-6"},ie=()=>{let e=L(),t=O(),o=k();if(t)return null;let i=e.togglePosition??"bottom-right";return rt("button",{onClick:()=>x(!0),className:`fixed ${nt[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:b(e)},"aria-label":o("privacyPreferences"),children:[oe("svg",{className:"w-6 h-6 group-hover:rotate-12 transition-transform",fill:"currentColor",viewBox:"0 0 24 24",children:oe("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"})}),oe("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 xe,jsx as h,jsxs as M}from"react/jsx-runtime";var st=()=>{let e=L(),t=O(),o=k();if(!t)return M(xe,{children:[h(ie,{}),h($,{})]});let i=e.theme!=="light",n=b(e);return M(xe,{children:[h("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 ${i?"bg-black/95 text-white border-white/10":"bg-white/95 text-gray-900 border-gray-100"}`,children:[h("div",{className:"absolute -bottom-24 -right-24 w-64 h-64 blur-[100px] opacity-20 transition-colors pointer-events-none",style:{backgroundColor:n}}),M("div",{className:"grow space-y-2 md:space-y-3 text-center md:text-left relative z-10",children:[h("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 ${i?"text-gray-400":"text-gray-500"}`,children:[o("bannerDescription"),h("span",{className:i?"text-white":"text-gray-900",children:o("bannerDescriptionMeasurement")}),o("bannerDescriptionEnd"),h("a",{href:"/cookie-policy",className:"underline hover:opacity-80 transition-opacity font-bold",style:{color:i?"inherit":n},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:[h("button",{onClick:()=>q("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")}),h("button",{onClick:()=>j("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:n},children:o("accept")})]}),h("button",{onClick:()=>x(!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")})]})]})}),h($,{})]})};import{useMemo as lt,useState as ct}from"react";var ke={"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"}},ae=e=>typeof e=="string"?ke[e]||{id:e,name:e,category:"automatic",purposes:[],dataCollected:[]}:e;import{Fragment as wt,jsx as a,jsxs as c}from"react/jsx-runtime";var ne=4,De=({id:e})=>{switch(e){case"google-analytics":return c("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 c("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 c("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 c("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 c("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 c("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 c("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 c("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"})]})}},dt={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","YouTube Video Widget":"youtubeWidget","Google Maps Widget":"googleMapsWidget"},ut=({config:e,language:t}={})=>{let o=V(),i=E(),n=e??o,r=t??i,s=I(r),u=n?b(n):"#2c5282",{automaticServices:m,providedServices:f}=lt(()=>{if(!n)return{automaticServices:[],providedServices:[]};let C=y=>{let g=dt[y];return g?s(g):y},R=(n.services??[]).map(y=>{let g=ae(y);return{...g,name:C(g.name),purposes:g.purposes.map(C),dataCollected:g.dataCollected.map(C)}});return{automaticServices:R.filter(y=>y.category==="automatic"),providedServices:R.filter(y=>y.category==="provided")}},[n,r,s]);return n?c("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-1",children:[a(Ce,{variant:"compact",title:s("automaticDataTitle"),subtitle:s("monitorTitle"),description:c(wt,{children:[s("automaticDataDescription"),a("span",{className:"text-gray-900 font-black",children:be(n)})," ",s("automaticDataIncludes")]}),emptyLabel:s("noActiveService"),primaryColor:u,services:m,icon:a(yt,{}),emptyIcon:a(vt,{})}),a(Ce,{variant:"expanded",title:s("providedDataTitle"),subtitle:s("supportTitle"),description:s("providedDataDescription"),emptyLabel:s("noActiveService"),primaryColor:u,services:f,icon:a(ht,{}),emptyIcon:a(bt,{})})]}):null};function Ce({variant:e,title:t,subtitle:o,description:i,emptyLabel:n,primaryColor:r,services:s,icon:u,emptyIcon:m}){let[f,C]=ct(0),R=Math.ceil(s.length/ne),y=s.slice(f*ne,(f+1)*ne);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:[a("div",{className:"p-3 rounded-2xl shrink-0",style:{backgroundColor:`${r}1a`,color:r},children:u}),c("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:o})]})]}),R>1&&a(pt,{page:f,totalPages:R,onChange:C})]}),a("p",{className:"text-gray-500 mb-8 text-sm leading-relaxed font-medium",children:i}),a("div",{className:"space-y-4 grow",children:y.length>0?a("div",{className:"grid grid-cols-1 gap-4 animate-in fade-in slide-in-from-bottom-2 duration-300",children:y.map(g=>e==="compact"?a(gt,{service:g,primaryColor:r},g.id):a(mt,{service:g,primaryColor:r},g.id))}):a(ft,{icon:m,label:n})})]})}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:[a(Te,{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]}),a(Te,{disabled:e>=t-1,onClick:()=>o(e+1),d:"M9 5l7 7-7 7"})]})}function Te({disabled:e,onClick:t,d:o}){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:o})})})}function Se({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 gt({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:[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(De,{id:e.id})}),c("div",{children:[a("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name}),a("div",{className:"mt-2",children:a(Se,{tags:e.dataCollected})})]})]})}function mt({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:[a("div",{className:"text-gray-400 group-hover:scale-110 transition-transform",style:{color:t},children:a(De,{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(Se,{tags:e.dataCollected})]})}function ft({icon:e,label:t}){return c("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 yt=()=>c("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"})]}),ht=()=>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"})}),vt=()=>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"})}),bt=()=>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 re,jsx as se}from"react/jsx-runtime";function xt({category:e,children:t,fallback:o=null,renderWhileHydrating:i=!1}){let n=d(e);return n===void 0?se(re,{children:i?t:o}):n?se(re,{children:t}):se(re,{children:o})}import{jsx as z,jsxs as B}from"react/jsx-runtime";function kt({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:()=>x(!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:X,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 Ct}from"react";import{jsx as Dt}from"react/jsx-runtime";var Tt=`
3
3
  (function(){
4
4
  if (window.__gLegalConsentBooted) return;
5
5
  window.__gLegalConsentBooted = true;
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "@graffico/legal",
3
- "version": "0.3.4",
4
- "description": "GDPR compliance solution for React/Next.js",
5
- "license": "SEE LICENSE IN LICENSE",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/graffico-studio/graffico-legal.git"
9
- },
10
- "type": "module",
11
- "module": "./dist/index.js",
12
- "types": "./dist/index.d.ts",
13
- "exports": {
14
- ".": {
15
- "types": "./dist/index.d.ts",
16
- "import": "./dist/index.js"
17
- },
18
- "./server": {
19
- "types": "./dist/server.d.ts",
20
- "import": "./dist/server.js"
21
- },
22
- "./policies": {
23
- "types": "./dist/server.d.ts",
24
- "import": "./dist/server.js"
25
- },
26
- "./next": {
27
- "types": "./dist/next.d.ts",
28
- "import": "./dist/next.js",
29
- "require": "./dist/next.cjs"
30
- },
31
- "./style.css": "./dist/index.css"
32
- },
33
- "files": [
34
- "dist",
35
- "README.md",
36
- "LICENSE"
37
- ],
38
- "publishConfig": {
39
- "access": "public"
40
- },
41
- "sideEffects": false,
42
- "keywords": [
43
- "gdpr",
44
- "consent",
45
- "cookie",
46
- "privacy",
47
- "react",
48
- "nextjs",
49
- "rsc",
50
- "server-components"
51
- ],
52
- "scripts": {
53
- "build": "tsup",
54
- "dev": "tsup --watch",
55
- "lint": "tsc --noEmit",
56
- "release": "pnpm build && npm publish"
57
- },
58
- "peerDependencies": {
59
- "@emailjs/browser": ">=4",
60
- "react": ">=18",
61
- "react-dom": ">=18"
62
- },
63
- "peerDependenciesMeta": {
64
- "@emailjs/browser": {
65
- "optional": true
66
- }
67
- },
68
- "devDependencies": {
69
- "@emailjs/browser": "^4.4.1",
70
- "@types/react": "^19",
71
- "@types/react-dom": "^19",
72
- "esbuild-plugin-preserve-directives": "^0.0.11",
73
- "react": "^19",
74
- "react-dom": "^19",
75
- "tsup": "^8.3.5",
76
- "typescript": "^5.7.2"
77
- }
78
- }
1
+ {
2
+ "name": "@graffico/legal",
3
+ "version": "0.3.5",
4
+ "description": "GDPR compliance solution for React/Next.js",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/graffico-studio/graffico-legal.git"
9
+ },
10
+ "type": "module",
11
+ "module": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js"
17
+ },
18
+ "./server": {
19
+ "types": "./dist/server.d.ts",
20
+ "import": "./dist/server.js"
21
+ },
22
+ "./policies": {
23
+ "types": "./dist/server.d.ts",
24
+ "import": "./dist/server.js"
25
+ },
26
+ "./next": {
27
+ "types": "./dist/next.d.ts",
28
+ "import": "./dist/next.js",
29
+ "require": "./dist/next.cjs"
30
+ },
31
+ "./style.css": "./dist/index.css"
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "README.md",
36
+ "LICENSE"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "sideEffects": false,
42
+ "keywords": [
43
+ "gdpr",
44
+ "consent",
45
+ "cookie",
46
+ "privacy",
47
+ "react",
48
+ "nextjs",
49
+ "rsc",
50
+ "server-components"
51
+ ],
52
+ "scripts": {
53
+ "build": "tsup",
54
+ "dev": "tsup --watch",
55
+ "lint": "tsc --noEmit",
56
+ "release": "pnpm build && npm publish"
57
+ },
58
+ "peerDependencies": {
59
+ "@emailjs/browser": ">=4",
60
+ "react": ">=18",
61
+ "react-dom": ">=18"
62
+ },
63
+ "peerDependenciesMeta": {
64
+ "@emailjs/browser": {
65
+ "optional": true
66
+ }
67
+ },
68
+ "devDependencies": {
69
+ "@emailjs/browser": "^4.4.1",
70
+ "@types/react": "^19",
71
+ "@types/react-dom": "^19",
72
+ "esbuild-plugin-preserve-directives": "^0.0.11",
73
+ "react": "^19",
74
+ "react-dom": "^19",
75
+ "tsup": "^8.3.5",
76
+ "typescript": "^5.7.2"
77
+ }
78
+ }