@graffico/legal 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, InputHTMLAttributes, CSSProperties } from 'react';
3
3
 
4
4
  /**
5
- * Banner di consenso GDPR mostrato finché l'utente non sceglie le preferenze.
5
+ * Banner di consenso GDPR. Visibile alla prima visita finché l'utente non
6
+ * sceglie esplicitamente Accetta/Rifiuta/Personalizza.
6
7
  */
7
8
  declare const ConsentBanner: () => react_jsx_runtime.JSX.Element | null;
8
9
 
@@ -106,6 +107,31 @@ declare const TRANSLATIONS: {
106
107
  dpoIntro: string;
107
108
  dpoPhone: string;
108
109
  policyVersionLabel: string;
110
+ lawfulBasisTitle: string;
111
+ lawfulBasisIntro: string;
112
+ lawfulBasisContract: string;
113
+ lawfulBasisConsent: string;
114
+ lawfulBasisLegitInterest: string;
115
+ lawfulBasisLegalObligation: string;
116
+ lawfulBasisVitalInterests: string;
117
+ lawfulBasisPublicTask: string;
118
+ lawfulBasisNotDeclared: string;
119
+ profilingTitle: string;
120
+ profilingDeclaredYes: string;
121
+ profilingDeclaredNo: string;
122
+ cookieTableTitle: string;
123
+ cookieTableIntro: string;
124
+ cookieTableName: string;
125
+ cookieTableProvider: string;
126
+ cookieTablePurpose: string;
127
+ cookieTableDuration: string;
128
+ cookieTableType: string;
129
+ cookieTypeTechnical: string;
130
+ cookieTypeStatistical: string;
131
+ cookieTypeMarketing: string;
132
+ cookieTypeProfiling: string;
133
+ cookieTableNoneDeclared: string;
134
+ marketingConsentLabel: string;
109
135
  cookiePolicyTitle: string;
110
136
  cookieWelcome: string;
111
137
  cookieIntro: string;
@@ -247,6 +273,31 @@ declare const TRANSLATIONS: {
247
273
  dpoIntro: string;
248
274
  dpoPhone: string;
249
275
  policyVersionLabel: string;
276
+ lawfulBasisTitle: string;
277
+ lawfulBasisIntro: string;
278
+ lawfulBasisContract: string;
279
+ lawfulBasisConsent: string;
280
+ lawfulBasisLegitInterest: string;
281
+ lawfulBasisLegalObligation: string;
282
+ lawfulBasisVitalInterests: string;
283
+ lawfulBasisPublicTask: string;
284
+ lawfulBasisNotDeclared: string;
285
+ profilingTitle: string;
286
+ profilingDeclaredYes: string;
287
+ profilingDeclaredNo: string;
288
+ cookieTableTitle: string;
289
+ cookieTableIntro: string;
290
+ cookieTableName: string;
291
+ cookieTableProvider: string;
292
+ cookieTablePurpose: string;
293
+ cookieTableDuration: string;
294
+ cookieTableType: string;
295
+ cookieTypeTechnical: string;
296
+ cookieTypeStatistical: string;
297
+ cookieTypeMarketing: string;
298
+ cookieTypeProfiling: string;
299
+ cookieTableNoneDeclared: string;
300
+ marketingConsentLabel: string;
250
301
  cookiePolicyTitle: string;
251
302
  cookieWelcome: string;
252
303
  cookieIntro: string;
@@ -301,6 +352,31 @@ declare const TRANSLATIONS: {
301
352
  };
302
353
  };
303
354
 
355
+ /**
356
+ * Base giuridica del trattamento ex art. 6 GDPR.
357
+ * - `contract`: art. 6.1.b (esecuzione contratto / misure precontrattuali)
358
+ * - `consent`: art. 6.1.a (consenso espresso)
359
+ * - `legitimate-interest`: art. 6.1.f (legittimo interesse del titolare)
360
+ * - `legal-obligation`: art. 6.1.c (obbligo di legge)
361
+ * - `vital-interests`: art. 6.1.d (interessi vitali)
362
+ * - `public-task`: art. 6.1.e (compito di interesse pubblico)
363
+ */
364
+ type LawfulBasis = "contract" | "consent" | "legitimate-interest" | "legal-obligation" | "vital-interests" | "public-task";
365
+ /**
366
+ * Tipo di tracker per la tabella cookie policy (Garante 10/06/2021 §3).
367
+ */
368
+ type CookieType = "technical" | "statistical" | "marketing" | "profiling";
369
+ /**
370
+ * Singolo cookie/identificatore dichiarato nella tabella cookie policy.
371
+ * Render colonne: nome, fornitore, finalità, durata, tipo.
372
+ */
373
+ interface CookieDeclaration {
374
+ name: string;
375
+ provider: string;
376
+ purpose: string;
377
+ duration: string;
378
+ type: CookieType;
379
+ }
304
380
  /**
305
381
  * Tracker o servizio terzo dichiarato in cookie/privacy policy.
306
382
  */
@@ -311,6 +387,8 @@ interface LegalService {
311
387
  logo?: string;
312
388
  purposes: string[];
313
389
  dataCollected: string[];
390
+ lawfulBasis?: LawfulBasis;
391
+ cookies?: CookieDeclaration[];
314
392
  }
315
393
  /**
316
394
  * Riferimento a un servizio: id di un preset oppure servizio inline.
@@ -384,6 +462,12 @@ interface CompanyConfig {
384
462
  * Dati di contatto del DPO, se nominato (art. 37 GDPR).
385
463
  */
386
464
  dpo?: DpoInfo;
465
+ /**
466
+ * Dichiarazione esplicita su processi decisionali automatizzati / profilazione
467
+ * (art. 22 GDPR). Se `false`, viene resa una dichiarazione negativa esplicita.
468
+ * Default: `false`.
469
+ */
470
+ automatedDecisionMaking?: boolean;
387
471
  }
388
472
  /**
389
473
  * Origine della scelta di consenso salvata. Utile per audit.
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 U={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\u2019accesso, 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",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\u2019utilizzo 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\u2019Utente.",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\u2019utilizzo dei Tracker sia basato sul consenso, l\u2019Utente 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",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 W(e){return e&&e.toLowerCase().startsWith("en")?"en":"it"}function A(e){let t=ue.get(e);if(t)return t;let o=U[e]??U.it,i=U.it,a=r=>o[r]??i[r];return ue.set(e,a),a}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 F="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 L=()=>T,_=()=>fe;function K(e){P({language:W(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(F);if(s){let d=JSON.parse(s);t=Je(d)??void 0}}catch{}let o=t&&Ke(t),i=t&&Qe(t,e.policyVersion),a=t&&!o&&!i?t:void 0;if(!a&&(o||i))try{window.localStorage.removeItem(F)}catch{}let r={language:e.language??T.language,activePolicyVersion:e.policyVersion,hydrated:!0};if(a){P({...r,consent:a,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(F,JSON.stringify(i))}catch{}return P({consent:i,showBanner:!1,isModalOpen:!1}),i}function Z(e,t="modal"){return H(e,t)}function V(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(F)}catch{}P({consent:G,showBanner:!0,isModalOpen:!1})}function w(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(W(e.language))},[e.language]),tt(ee.Provider,{value:o,children:t})}function N(){let e=he(ee);if(!e)throw new Error("useLegalConfig deve essere usato dentro <LegalProvider>");return e.config}function B(){return he(ee)?.config??null}import{useSyncExternalStore as E}from"react";var j=()=>E(D,()=>L().language,()=>_().language),M=()=>E(D,()=>L().consent,()=>_().consent),u=e=>E(D,()=>{let t=L();return t.hydrated?t.consent[e]:void 0},()=>{}),ot=()=>E(D,()=>L().hydrated,()=>!1),O=()=>E(D,()=>L().showBanner,()=>_().showBanner),te=()=>E(D,()=>L().isModalOpen,()=>_().isModalOpen);function S(){return A(j())}var ve="#2c5282",x=e=>e.primaryColor??ve,be=e=>e.domain||e.name;import{useEffect as it,useState as nt}from"react";import{jsx as l,jsxs as p}from"react/jsx-runtime";var $=()=>{let e=N(),t=M(),o=te(),i=j(),a=S(),[r,s]=nt(t),d=x(e);if(it(()=>{s(t)},[t,o]),!o)return null;let g=m=>{m!=="necessary"&&s(h=>({...h,[m]:!h[m]}))};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:a("preferencesTitle")}),l("p",{className:"text-sm text-gray-500 font-medium",children:a("preferencesSubtitle")})]}),l("button",{onClick:()=>w(!1),"aria-label":a("close"),className:"p-2 text-gray-400 hover:text-gray-900 transition-colors",children:l("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),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:a("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:a("necessaryTitle")}),l("p",{className:"text-xs text-gray-500 mt-0.5",children:a("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:d}}),l("div",{className:"absolute left-6 w-4 h-4 bg-white rounded-full"})]})]}),l(we,{title:a("measurementTitle"),description:a("measurementDescription"),active:r.statistical,primaryColor:d,onClick:()=>g("statistical")}),l(we,{title:a("marketingTitle"),description:a("marketingDescription"),active:r.marketing,primaryColor:d,onClick:()=>g("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:a("consentId")}),l("span",{className:"text-[10px] font-mono text-gray-500 bg-white px-2 py-0.5 rounded border border-gray-100",children:t.consentId})]}),p("div",{className:"flex items-center justify-between",children:[l("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:a("consentDate")}),l("span",{className:"text-[10px] font-bold text-gray-500",children:t.timestamp?new Date(t.timestamp).toLocaleString(pe(i)):"-"})]})]})}),l("p",{className:"text-[9px] text-gray-400 mt-3 leading-relaxed",children:a("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:a("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:a("saveAndContinue")}),l("button",{onClick:()=>V("modal"),className:"flex-1 px-6 py-3 text-white font-bold rounded-xl hover:opacity-90 transition-all text-sm uppercase tracking-wider",style:{backgroundColor:d},children:a("acceptAll")})]})]})})};function we({title:e,description:t,active:o,primaryColor:i,onClick:a}){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:a,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 at={"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=N(),t=O(),o=S();if(t)return null;let i=e.togglePosition??"bottom-right";return rt("button",{onClick:()=>w(!0),className:`fixed ${at[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:x(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{useEffect as st,useState as lt}from"react";import{Fragment as xe,jsx as f,jsxs as I}from"react/jsx-runtime";var ct=()=>{let[e,t]=lt(!1),o=N(),i=O(),a=S();if(st(()=>{let d=!1,g=["pointerdown","keydown","scroll","touchstart","wheel"],m=()=>{d||(d=!0,h(),t(!0))},h=()=>{g.forEach(k=>window.removeEventListener(k,m))};return g.forEach(k=>window.addEventListener(k,m,{once:!0,passive:!0})),h},[]),!e)return null;if(!i)return I(xe,{children:[f(ie,{}),f($,{})]});let r=o.theme!=="light",s=x(o);return I(xe,{children:[f("div",{className:"fixed bottom-0 left-0 right-0 p-4 md:p-8 z-9000 flex justify-center animate-in slide-in-from-bottom-full duration-500",children:I("div",{className:`w-full max-w-5xl rounded-4xl shadow-[0_20px_50px_rgba(0,0,0,0.3)] backdrop-blur-xl border p-6 md:p-8 flex flex-col md:flex-row items-center gap-6 relative overflow-hidden ${r?"bg-black/95 text-white border-white/10":"bg-white/95 text-gray-900 border-gray-100"}`,children:[f("div",{className:"absolute -bottom-24 -right-24 w-64 h-64 blur-[100px] opacity-20 transition-colors pointer-events-none",style:{backgroundColor:s}}),I("div",{className:"grow space-y-3 text-center md:text-left relative z-10",children:[f("h2",{className:"text-xl font-black tracking-tight",children:a("bannerTitle")}),I("p",{className:`text-sm leading-relaxed max-w-3xl font-medium ${r?"text-gray-400":"text-gray-500"}`,children:[a("bannerDescription"),f("span",{className:r?"text-white":"text-gray-900",children:a("bannerDescriptionMeasurement")}),a("bannerDescriptionEnd"),f("a",{href:"/cookie-policy",className:"underline hover:opacity-80 transition-opacity font-bold",style:{color:r?"inherit":s},children:a("cookiePolicyLink")})]})]}),I("div",{className:"flex flex-col items-center gap-2 w-full md:w-auto relative z-10",children:[I("div",{className:"flex flex-col sm:flex-row items-center gap-3 w-full md:w-auto",children:[f("button",{onClick:()=>q("banner"),className:`w-full sm:w-auto px-8 py-3 font-black rounded-2xl transition-all text-[11px] uppercase tracking-widest whitespace-nowrap shadow-lg ${r?"bg-white text-gray-900 hover:bg-gray-100":"bg-gray-900 text-white hover:bg-black"}`,children:a("decline")}),f("button",{onClick:()=>V("banner"),className:"w-full sm:w-auto px-8 py-3 text-white font-black rounded-2xl transition-all text-[11px] uppercase tracking-widest whitespace-nowrap shadow-lg",style:{backgroundColor:s},children:a("accept")})]}),f("button",{onClick:()=>w(!0),className:`text-[10px] font-bold uppercase tracking-widest underline-offset-4 hover:underline transition-opacity ${r?"text-gray-400 hover:text-white":"text-gray-500 hover:text-gray-900"}`,children:a("customize")})]}),f("button",{onClick:()=>w(!0),"aria-label":a("close"),className:`absolute top-6 right-6 p-2 transition-colors ${r?"text-white":"text-gray-600"}`,children:f("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),f($,{})]})};import{useMemo as dt,useState as ut}from"react";var Ce={"google-analytics":{id:"google-analytics",name:"Google Analytics 4",category:"automatic",purposes:["Statistica","Ottimizzazione"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"]},"facebook-pixel":{id:"facebook-pixel",name:"Meta Pixel",category:"automatic",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"]},"linkedin-insight":{id:"linkedin-insight",name:"LinkedIn Insight Tag",category:"automatic",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"]},"tiktok-pixel":{id:"tiktok-pixel",name:"TikTok Pixel",category:"automatic",purposes:["Marketing","Targeting","Statistica"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"]},"microsoft-clarity":{id:"microsoft-clarity",name:"Microsoft Clarity",category:"automatic",purposes:["Statistica","Analisi del comportamento"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento","Screencast sessione"]},hotjar:{id:"hotjar",name:"Hotjar",category:"automatic",purposes:["Statistica","Analisi del comportamento"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"]},"google-tag-manager":{id:"google-tag-manager",name:"Google Tag Manager",category:"automatic",purposes:["Gestione dei tag"],dataCollected:["Dati di utilizzo"]},mailchimp:{id:"mailchimp",name:"Mailchimp",category:"provided",purposes:["Gestione database Utenti","Invio messaggi"],dataCollected:["Email","Nome","Cognome","Dati di utilizzo"]},newsletter:{id:"newsletter",name:"Newsletter",category:"provided",purposes:["Gestione database Utenti","Invio messaggi"],dataCollected:["Email","Nome","Cognome"]},stripe:{id:"stripe",name:"Stripe",category:"automatic",purposes:["Gestione dei pagamenti"],dataCollected:["Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio"]},paypal:{id:"paypal",name:"PayPal",category:"automatic",purposes:["Gestione dei pagamenti"],dataCollected:["Varie tipologie di Dati secondo quanto specificato dalla privacy policy del servizio"]},youtube:{id:"youtube",name:"YouTube Video Widget",category:"automatic",purposes:["Visualizzazione di contenuti da piattaforme esterne"],dataCollected:["Dati di utilizzo","Strumenti di Tracciamento"]},"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"]},"contact-form":{id:"contact-form",name:"Modulo di Contatto",category:"provided",purposes:["Contattare l'utente","Gestione richieste"],dataCollected:["Email","Nome","Cognome","Dati vari"]},"google-fonts":{id:"google-fonts",name:"Google Fonts",category:"automatic",purposes:["Visualizzazione dei contenuti"],dataCollected:["Dati di utilizzo","Varie tipologie di Dati"]}},ne=e=>typeof e=="string"?Ce[e]||{id:e,name:e,category:"automatic",purposes:[],dataCollected:[]}:e;import{Fragment as Ct,jsx as n,jsxs as c}from"react/jsx-runtime";var ae=4,Te=({id:e})=>{switch(e){case"google-analytics":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:[n("path",{d:"M12 2L4.5 20.29L5.21 21L12 18L18.79 21L19.5 20.29L12 2Z",fill:"currentColor",fillOpacity:"0.2"}),n("path",{d:"M12 18V2M12 18L5.21 21L4.5 20.29L12 2M12 18L18.79 21L19.5 20.29L12 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});case"facebook-pixel":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:n("path",{d:"M18 2H15C12.7909 2 11 3.79086 11 6V9H8V13H11V22H15V13H18L19 9H15V6C15 5.44772 15.4477 5 16 5H18V2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"google-fonts":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:n("path",{d:"M4 7V4H20V7M5 20H19M12 4V20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"linkedin-insight":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),n("rect",{x:"2",y:"9",width:"4",height:"12"}),n("circle",{cx:"4",cy:"4",r:"2"})]});case"tiktok-pixel":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n("path",{d:"M9 12a4 4 0 1 0 4 4V4a5 5 0 0 0 5 5"})});case"microsoft-clarity":case"hotjar":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"}),n("circle",{cx:"12",cy:"12",r:"3"})]});case"google-tag-manager":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n("path",{d:"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"})});case"mailchimp":case"newsletter":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"m22 2-7 20-4-9-9-4Z"}),n("path",{d:"M22 2 11 13"})]});case"stripe":case"paypal":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),n("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]});case"youtube":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"}),n("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"})]});case"google-maps":return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),n("circle",{cx:"12",cy:"10",r:"3"})]});case"contact-form":return n("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:n("path",{d:"M3 8L10.89 13.26C11.56 13.71 12.44 13.71 13.11 13.26L21 8M5 19H19C20.1 19 21 18.1 21 17V7C21 5.9 20.1 5 19 5H5C3.9 5 3 5.9 3 7V17C3 18.1 3.9 19 5 19Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});default:return c("svg",{className:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",children:[n("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2"}),n("path",{d:"M12 8V16M8 12H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}},pt={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"},gt=({config:e,language:t}={})=>{let o=B(),i=j(),a=e??o,r=t??i,s=A(r),d=a?x(a):"#2c5282",{automaticServices:g,providedServices:m}=dt(()=>{if(!a)return{automaticServices:[],providedServices:[]};let h=v=>{let y=pt[v];return y?s(y):v},k=(a.services??[]).map(v=>{let y=ne(v);return{...y,name:h(y.name),purposes:y.purposes.map(h),dataCollected:y.dataCollected.map(h)}});return{automaticServices:k.filter(v=>v.category==="automatic"),providedServices:k.filter(v=>v.category==="provided")}},[a,r,s]);return a?c("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 p-1",children:[n(ke,{variant:"compact",title:s("automaticDataTitle"),subtitle:s("monitorTitle"),description:c(Ct,{children:[s("automaticDataDescription"),n("span",{className:"text-gray-900 font-black",children:be(a)})," ",s("automaticDataIncludes")]}),emptyLabel:s("noActiveService"),primaryColor:d,services:g,icon:n(vt,{}),emptyIcon:n(wt,{})}),n(ke,{variant:"expanded",title:s("providedDataTitle"),subtitle:s("supportTitle"),description:s("providedDataDescription"),emptyLabel:s("noActiveService"),primaryColor:d,services:m,icon:n(bt,{}),emptyIcon:n(xt,{})})]}):null};function ke({variant:e,title:t,subtitle:o,description:i,emptyLabel:a,primaryColor:r,services:s,icon:d,emptyIcon:g}){let[m,h]=ut(0),k=Math.ceil(s.length/ae),v=s.slice(m*ae,(m+1)*ae);return c("div",{className:"bg-white p-8 rounded-[2.5rem] border border-gray-100 shadow-sm flex flex-col transition-all hover:shadow-xl group/card min-h-[750px]",children:[c("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 mb-8",children:[c("div",{className:"flex items-center gap-4",children:[n("div",{className:"p-3 rounded-2xl shrink-0",style:{backgroundColor:`${r}1a`,color:r},children:d}),c("div",{children:[n("h3",{className:"text-xl sm:text-2xl font-black text-gray-900 tracking-tight leading-tight",children:t}),n("p",{className:"text-[10px] text-gray-400 font-black uppercase tracking-widest mt-0.5",children:o})]})]}),k>1&&n(mt,{page:m,totalPages:k,onChange:h})]}),n("p",{className:"text-gray-500 mb-8 text-sm leading-relaxed font-medium",children:i}),n("div",{className:"space-y-4 grow",children:v.length>0?n("div",{className:"grid grid-cols-1 gap-4 animate-in fade-in slide-in-from-bottom-2 duration-300",children:v.map(y=>e==="compact"?n(ft,{service:y,primaryColor:r},y.id):n(yt,{service:y,primaryColor:r},y.id))}):n(ht,{icon:g,label:a})})]})}function mt({page:e,totalPages:t,onChange:o}){return c("div",{className:"flex items-center gap-2 bg-gray-50/50 p-1.5 rounded-2xl border border-gray-100 self-end sm:self-center",children:[n(Se,{disabled:e===0,onClick:()=>o(e-1),d:"M15 19l-7-7 7-7"}),c("span",{className:"text-[10px] font-black font-mono text-gray-500 w-10 text-center",children:[e+1," / ",t]}),n(Se,{disabled:e>=t-1,onClick:()=>o(e+1),d:"M9 5l7 7-7 7"})]})}function Se({disabled:e,onClick:t,d:o}){return n("button",{disabled:e,onClick:t,className:`p-2 rounded-xl transition-all ${e?"opacity-20 cursor-not-allowed":"bg-white hover:bg-gray-100 active:scale-95 text-gray-900 shadow-sm"}`,children:n("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:o})})})}function De({tags:e}){return n("div",{className:"flex flex-wrap gap-2",children:e.map(t=>n("span",{className:"px-3 py-1 bg-white text-gray-600 text-[11px] font-bold rounded-xl border border-gray-100 shadow-sm",children:t},t))})}function ft({service:e,primaryColor:t}){return c("div",{className:"flex items-center gap-4 bg-gray-50/50 p-5 rounded-3xl border border-gray-100 hover:bg-white transition-all group",children:[n("div",{className:"w-12 h-12 rounded-2xl flex items-center justify-center shrink-0 shadow-sm border border-gray-100 transition-all group-hover:scale-110 bg-white",style:{color:t},children:n(Te,{id:e.id})}),c("div",{children:[n("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name}),n("div",{className:"mt-2",children:n(De,{tags:e.dataCollected})})]})]})}function yt({service:e,primaryColor:t}){return c("div",{className:"p-6 bg-gray-50/50 rounded-3xl border border-gray-100 hover:bg-white transition-all group",children:[c("div",{className:"flex items-center justify-between mb-4",children:[c("div",{className:"flex items-center gap-3",children:[n("div",{className:"text-gray-400 group-hover:scale-110 transition-transform",style:{color:t},children:n(Te,{id:e.id})}),n("h4",{className:"text-base font-black text-gray-900 leading-none",children:e.name})]}),n("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:t}})]}),n(De,{tags:e.dataCollected})]})}function ht({icon:e,label:t}){return c("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[n("div",{className:"w-12 h-12 rounded-full bg-gray-50 flex items-center justify-center mb-3",children:e}),n("p",{className:"text-xs text-gray-400 font-bold uppercase tracking-widest",children:t})]})}var vt=()=>c("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04"}),n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})]}),bt=()=>n("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),wt=()=>n("svg",{className:"w-6 h-6 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),xt=()=>n("svg",{className:"w-6 h-6 text-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})});import{Fragment as re,jsx as se}from"react/jsx-runtime";function kt({category:e,children:t,fallback:o=null,renderWhileHydrating:i=!1}){let a=u(e);return a===void 0?se(re,{children:i?t:o}):a?se(re,{children:t}):se(re,{children:o})}import{jsx as z,jsxs as R}from"react/jsx-runtime";function St({language:e,primaryColor:t}){let o=A(e);return R("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:[R("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")}),R("div",{className:"pt-10 flex flex-wrap gap-4",children:[z("button",{onClick:()=>w(!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")})]}),R("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")}),R("span",{className:"cursor-help text-white/70 hover:text-white transition-colors relative group",children:[o("browserInfo"),R("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 Tt}from"react";import{jsx as Lt}from"react/jsx-runtime";var Dt=`
2
+ import{createContext as Xe,useContext as ve,useEffect as he,useMemo as et}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 $e={it:"it-IT",en:"en-US"},pe=new Map;function U(e){return e&&e.toLowerCase().startsWith("en")?"en":"it"}function I(e){let t=pe.get(e);if(t)return t;let o=F[e]??F.it,i=F.it,n=r=>o[r]??i[r];return pe.set(e,n),n}var ge=e=>$e[e];function me(){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",fe=1e3*60*60*24*180,G={necessary:!0,statistical:!1,marketing:!1},ye=Object.freeze({language:"it",consent:G,showBanner:!1,isModalOpen:!1,hydrated:!1}),T=ye,Y=new Set;function Je(){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},Je())}function D(e){return Y.add(e),()=>{Y.delete(e)}}var S=()=>T,_=()=>ye;function K(e){P({language:U(e)})}function Ye(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 Ke(){if(typeof navigator>"u")return!1;let e=navigator;return e.globalPrivacyControl===!0||typeof e.doNotTrack=="string"&&e.doNotTrack==="1"}function Qe(e){return typeof e.expiresAt=="number"&&Date.now()>e.expiresAt}function Ze(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=Ye(u)??void 0}}catch{}let o=t&&Qe(t),i=t&&Ze(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(Ke()){P(r),H(G,"gpc-auto");return}P({...r,consent:G,showBanner:!0})}function H(e,t){let o=T.consent.consentId||me(),i={...e,necessary:!0,consentId:o,timestamp:new Date().toISOString(),expiresAt:Date.now()+fe,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 ot}from"react/jsx-runtime";var ee=Xe(null);function tt({config:e,children:t}){let o=et(()=>({config:e}),[e]);return he(()=>{Q({policyVersion:e.policyVersion})},[]),he(()=>{K(U(e.language))},[e.language]),ot(ee.Provider,{value:o,children:t})}function L(){let e=ve(ee);if(!e)throw new Error("useLegalConfig deve essere usato dentro <LegalProvider>");return e.config}function V(){return ve(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},()=>{}),te=()=>A(D,()=>S().hydrated,()=>!1),O=()=>A(D,()=>S().showBanner,()=>_().showBanner),oe=()=>A(D,()=>S().isModalOpen,()=>_().isModalOpen);function k(){return I(E())}var be="#2c5282",b=e=>e.primaryColor??be,we=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=oe(),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(xe,{title:n("measurementTitle"),description:n("measurementDescription"),active:r.statistical,primaryColor:u,onClick:()=>m("statistical")}),l(xe,{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(ge(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 xe({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 ie,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"},ae=()=>{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:[ie("svg",{className:"w-6 h-6 group-hover:rotate-12 transition-transform",fill:"currentColor",viewBox:"0 0 24 24",children:ie("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"})}),ie("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 ke,jsx as h,jsxs as M}from"react/jsx-runtime";var st=()=>{let e=L(),t=te(),o=O(),i=k();if(!t)return null;if(!o)return M(ke,{children:[h(ae,{}),h($,{})]});let n=e.theme!=="light",r=b(e);return M(ke,{children:[h("div",{role:"dialog","aria-modal":"false","aria-labelledby":"graffico-legal-banner-title",className:"fixed bottom-0 left-0 right-0 p-4 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-4xl shadow-[0_20px_50px_rgba(0,0,0,0.3)] backdrop-blur-xl border p-6 md:p-8 flex flex-col md:flex-row items-center gap-6 relative overflow-hidden ${n?"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:r}}),M("div",{className:"grow space-y-3 text-center md:text-left relative z-10",children:[h("h2",{id:"graffico-legal-banner-title",className:"text-xl font-black tracking-tight",children:i("bannerTitle")}),M("p",{className:`text-sm leading-relaxed max-w-3xl font-medium ${n?"text-gray-400":"text-gray-500"}`,children:[i("bannerDescription"),h("span",{className:n?"text-white":"text-gray-900",children:i("bannerDescriptionMeasurement")}),i("bannerDescriptionEnd"),h("a",{href:"/cookie-policy",className:"underline hover:opacity-80 transition-opacity font-bold",style:{color:n?"inherit":r},children:i("cookiePolicyLink")})]})]}),M("div",{className:"flex flex-col items-center gap-2 w-full md:w-auto relative z-10",children:[M("div",{className:"flex flex-col sm:flex-row items-center gap-3 w-full md:w-auto",children:[h("button",{onClick:()=>q("banner"),className:`w-full sm:w-auto px-8 py-3 font-black rounded-2xl transition-all text-[11px] uppercase tracking-widest whitespace-nowrap shadow-lg ${n?"bg-white text-gray-900 hover:bg-gray-100":"bg-gray-900 text-white hover:bg-black"}`,children:i("decline")}),h("button",{onClick:()=>j("banner"),className:"w-full sm:w-auto px-8 py-3 text-white font-black rounded-2xl transition-all text-[11px] uppercase tracking-widest whitespace-nowrap shadow-lg",style:{backgroundColor:r},children:i("accept")})]}),h("button",{onClick:()=>x(!0),className:`text-[10px] font-bold uppercase tracking-widest underline-offset-4 hover:underline transition-opacity ${n?"text-gray-400 hover:text-white":"text-gray-500 hover:text-gray-900"}`,children:i("customize")})]})]})}),h($,{})]})};import{useMemo as lt,useState as ct}from"react";var Ce={"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"}},ne=e=>typeof e=="string"?Ce[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 re=4,Se=({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=ne(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(Te,{variant:"compact",title:s("automaticDataTitle"),subtitle:s("monitorTitle"),description:c(wt,{children:[s("automaticDataDescription"),a("span",{className:"text-gray-900 font-black",children:we(n)})," ",s("automaticDataIncludes")]}),emptyLabel:s("noActiveService"),primaryColor:u,services:m,icon:a(yt,{}),emptyIcon:a(vt,{})}),a(Te,{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 Te({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/re),y=s.slice(f*re,(f+1)*re);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(De,{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(De,{disabled:e>=t-1,onClick:()=>o(e+1),d:"M9 5l7 7-7 7"})]})}function De({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 ze({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(Se,{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(ze,{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(Se,{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(ze,{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 se,jsx as le}from"react/jsx-runtime";function xt({category:e,children:t,fallback:o=null,renderWhileHydrating:i=!1}){let n=d(e);return n===void 0?le(se,{children:i?t:o}):n?le(se,{children:t}):le(se,{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;
@@ -20,4 +20,4 @@ import{createContext as Ze,useContext as he,useEffect as ye,useMemo as Xe}from"r
20
20
  window.gtag('set', 'ads_data_redaction', true);
21
21
  window.gtag('set', 'url_passthrough', true);
22
22
  })();
23
- `;function Le({regions:e}={}){let{statistical:t,marketing:o}=M();return Tt(()=>{if(typeof window>"u"||typeof window.gtag!="function")return;let i={analytics_storage:t?"granted":"denied",ad_storage:o?"granted":"denied",ad_user_data:o?"granted":"denied",ad_personalization:o?"granted":"denied",personalization_storage:o?"granted":"denied"};e&&e.length>0?window.gtag("consent","update",{...i,region:e}):window.gtag("consent","update",i)},[t,o,e]),Lt("script",{dangerouslySetInnerHTML:{__html:Dt}})}import{useCallback as zt,useEffect as Pt}from"react";function C(e,t){if(typeof document>"u"||document.getElementById(t))return;let o=document.createElement("script");o.id=t,o.async=!0,o.src=e,o.dataset.grafficoLegal="1",document.head.appendChild(o)}function J(){typeof window>"u"||(window.dataLayer=window.dataLayer||[],typeof window.gtag!="function"&&(window.gtag=function(){window.dataLayer.push(arguments)}))}function ze({gaId:e,category:t="statistical",anonymizeIp:o=!0,sendPageViews:i=!0,debug:a=!1}){let r=u(t);return Pt(()=>{r&&(typeof window>"u"||(J(),C(`https://www.googletagmanager.com/gtag/js?id=${e}`,`graffico-legal-ga-${e}`),window.gtag("js",new Date),window.gtag("config",e,{anonymize_ip:o,send_page_view:i,debug_mode:a})))},[r,e,o,i,a]),null}function Pe(){let e=u("statistical");return zt((t,o)=>{e&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event",t,o))},[e])}import{useCallback as Nt,useEffect as Mt}from"react";var Ne={};function Me({conversionId:e,conversions:t,category:o="marketing"}){let i=u(o);return Ne=t??{},Mt(()=>{i&&(typeof window>"u"||(J(),C(`https://www.googletagmanager.com/gtag/js?id=${e}`,`graffico-legal-ads-${e}`),window.gtag("js",new Date),window.gtag("config",e)))},[i,e]),null}function Ie(e){let t=u("marketing");return Nt(o=>{if(!t)return;let i=Ne[e];i&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event","conversion",{send_to:i.sendTo,value:i.value,currency:i.currency,...o}))},[t,e])}import{useCallback as It,useEffect as At}from"react";var le=null;function Et(e,t){let o=window;if(o.fbq){o.fbq("consent","grant");return}let i=function(...a){i.callMethod?i.callMethod.apply(i,a):i.queue.push(a)};i.queue=[],i.push=i,i.loaded=!0,i.version="2.0",o.fbq=i,o._fbq||(o._fbq=i),C("https://connect.facebook.net/en_US/fbevents.js",`graffico-legal-meta-${e}`),i("init",e),t&&i("track","PageView")}function Ae({pixelId:e,category:t="marketing",autoPageView:o=!0,events:i}){let a=u(t);return le=i??null,At(()=>{a?Et(e,o):a===!1&&typeof window.fbq=="function"&&window.fbq("consent","revoke")},[a,e,o]),null}function Ee(e){let t=u("marketing");return It(o=>{if(t){if(le&&!le.includes(e)){typeof console<"u"&&console.warn(`[graffico-legal] Meta event "${e}" non in whitelist`);return}typeof window>"u"||typeof window.fbq!="function"||window.fbq("track",e,o)}},[t,e])}import{useEffect as jt}from"react";function je({containerId:e,category:t="marketing",dataLayerName:o="dataLayer"}){let i=u(t);return jt(()=>{if(!i)return;let a=window;a[o]=a[o]||[],a[o].push({"gtm.start":Date.now(),event:"gtm.js"});let r=o!=="dataLayer"?`&l=${o}`:"";C(`https://www.googletagmanager.com/gtm.js?id=${e}${r}`,`graffico-legal-gtm-${e}`)},[i,e,o]),null}import{useCallback as Re,useEffect as Rt}from"react";function Ge({siteId:e,snippetVersion:t=6,category:o="statistical"}){let i=u(o);return Rt(()=>{if(!i||typeof window>"u"||window.hj)return;let a=[],r=function(...s){a.push(s)};r.q=a,window.hj=r,window._hjSettings={hjid:e,hjsv:t},C(`https://static.hotjar.com/c/hotjar-${e}.js?sv=${t}`,`graffico-legal-hotjar-${e}`)},[i,e,t]),null}function _e(e="statistical"){let t=u(e);return Re(o=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("event",o))},[t])}function Ve(e="statistical"){let t=u(e);return Re((o,i)=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("identify",o,i))},[t])}import{useCallback as Be,useState as Gt}from"react";function qe(e){if(!e||typeof e!="string")return;let t=e.trim();if(t.length===0)return;if(t.startsWith("/")||t.startsWith("#")||t.startsWith("?"))return t;let o=t.toLowerCase();if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("mailto:")||o.startsWith("tel:"))return t}import{jsx as Oe,jsxs as Ue}from"react/jsx-runtime";var b={requireExplicitConsent:!0};function We({serviceId:e,templateId:t,publicKey:o,requireExplicitConsent:i=!0}){return b.serviceId=e,b.templateId=t,b.publicKey=o,b.requireExplicitConsent=i,null}function ce(e,t,o){let i=e.querySelector(`input[type="hidden"][name="${CSS.escape(t)}"]`);i||(i=document.createElement("input"),i.type="hidden",i.name=t,e.appendChild(i)),i.value=o}function de({label:e,privacyHref:t="/privacy-policy",privacyLabel:o,className:i,style:a,...r}){let s=S(),d=B(),g=d?x(d):void 0,m=qe(t)??"/privacy-policy";return Ue("label",{className:i??"flex items-start gap-3 text-sm text-gray-600 leading-relaxed cursor-pointer select-none",style:a,children:[Oe("input",{type:"checkbox",name:"_legalConsent",className:"mt-1 h-4 w-4 rounded border-gray-300 cursor-pointer",style:g?{accentColor:g}:void 0,required:!0,...r}),Ue("span",{children:[e??s("consentCheckboxLabel")," ",Oe("a",{href:m,className:"underline underline-offset-2 hover:opacity-80",style:g?{color:g}:void 0,children:o??s("privacyPolicyLink")})]})]})}function Fe(){let e=M(),[t,o]=Gt("idle"),i=Be(async r=>{if(!b.serviceId||!b.templateId||!b.publicKey)return{ok:!1,error:"CONFIG_MISSING"};if(b.requireExplicitConsent){let s=r.querySelector('input[name="_legalConsent"]');if(!s||!s.checked)return{ok:!1,error:"CONSENT_MISSING"}}ce(r,"_consentId",e.consentId??""),ce(r,"_consentTimestamp",e.timestamp??""),ce(r,"_policyVersion",e.policyVersion??""),o("loading");try{let s=await import("@emailjs/browser").catch(()=>null);return s?(await(s.sendForm??s.default.sendForm)(b.serviceId,b.templateId,r,b.publicKey),o("success"),{ok:!0}):(o("error"),{ok:!1,error:"MODULE_MISSING"})}catch(s){return o("error"),{ok:!1,error:"SEND_FAILED",detail:s}}},[e]),a=Be(()=>o("idle"),[]);return{send:i,status:t,reset:a,ConsentCheckbox:de}}export{me as CONSENT_TTL_MS,ct as ConsentBanner,de as ConsentCheckbox,kt as ConsentGate,Le as ConsentModeBoot,ve as DEFAULT_PRIMARY_COLOR,We as EmailJSLegal,ie as FloatingConsentToggle,je as GTMLegal,Me as GoogleAdsLegal,ze as GoogleAnalyticsLegal,Ge as HotjarLegal,et as LegalConfigProvider,Ae as MetaPixelLegal,St as PreferenceCard,$ as PreferenceModal,Ce as SERVICE_PRESETS,gt as ServiceGrid,V as acceptAll,q as declineAll,L as getConsentSnapshot,Q as hydrateFromStorage,X as resetConsent,ne as resolveService,Z as savePreferences,K as setLanguage,w as setModalOpen,D as subscribeConsent,Ie as useAdsConversion,M as useConsent,u as useConsentCategory,Fe as useEmailJS,Pe as useGAEvent,_e as useHotjarEvent,Ve as useHotjarIdentify,ot as useIsHydrated,N as useLegalConfig,B as useLegalConfigOptional,j as useLegalLanguage,Ee as useMetaEvent,te as useModalOpen,O as useShowBanner,S as useT};
23
+ `;function Pe({regions:e}={}){let{statistical:t,marketing:o}=N();return Ct(()=>{if(typeof window>"u"||typeof window.gtag!="function")return;let i={analytics_storage:t?"granted":"denied",ad_storage:o?"granted":"denied",ad_user_data:o?"granted":"denied",ad_personalization:o?"granted":"denied",personalization_storage:o?"granted":"denied"};e&&e.length>0?window.gtag("consent","update",{...i,region:e}):window.gtag("consent","update",i)},[t,o,e]),Dt("script",{dangerouslySetInnerHTML:{__html:Tt}})}import{useCallback as St,useEffect as zt}from"react";function w(e,t){if(typeof document>"u"||document.getElementById(t))return;let o=document.createElement("script");o.id=t,o.async=!0,o.src=e,o.dataset.grafficoLegal="1",document.head.appendChild(o)}function J(){typeof window>"u"||(window.dataLayer=window.dataLayer||[],typeof window.gtag!="function"&&(window.gtag=function(){window.dataLayer.push(arguments)}))}function Le({gaId:e,category:t="statistical",anonymizeIp:o=!0,sendPageViews:i=!0,debug:n=!1}){let r=d(t);return zt(()=>{r&&(typeof window>"u"||(J(),w(`https://www.googletagmanager.com/gtag/js?id=${e}`,`graffico-legal-ga-${e}`),window.gtag("js",new Date),window.gtag("config",e,{anonymize_ip:o,send_page_view:i,debug_mode:n})))},[r,e,o,i,n]),null}function Ne(){let e=d("statistical");return St((t,o)=>{e&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event",t,o))},[e])}import{useCallback as Pt,useEffect as Lt}from"react";var Me={};function Ie({conversionId:e,conversions:t,category:o="marketing"}){let i=d(o);return Me=t??{},Lt(()=>{i&&(typeof window>"u"||(J(),w(`https://www.googletagmanager.com/gtag/js?id=${e}`,`graffico-legal-ads-${e}`),window.gtag("js",new Date),window.gtag("config",e)))},[i,e]),null}function Ae(e){let t=d("marketing");return Pt(o=>{if(!t)return;let i=Me[e];i&&(typeof window>"u"||typeof window.gtag!="function"||window.gtag("event","conversion",{send_to:i.sendTo,value:i.value,currency:i.currency,...o}))},[t,e])}import{useCallback as Nt,useEffect as Mt}from"react";var ce=null;function It(e,t){let o=window;if(o.fbq){o.fbq("consent","grant");return}let i=function(...n){i.callMethod?i.callMethod.apply(i,n):i.queue.push(n)};i.queue=[],i.push=i,i.loaded=!0,i.version="2.0",o.fbq=i,o._fbq||(o._fbq=i),w("https://connect.facebook.net/en_US/fbevents.js",`graffico-legal-meta-${e}`),i("init",e),t&&i("track","PageView")}function Ee({pixelId:e,category:t="marketing",autoPageView:o=!0,events:i}){let n=d(t);return ce=i??null,Mt(()=>{n?It(e,o):n===!1&&typeof window.fbq=="function"&&window.fbq("consent","revoke")},[n,e,o]),null}function Be(e){let t=d("marketing");return Nt(o=>{if(t){if(ce&&!ce.includes(e)){typeof console<"u"&&console.warn(`[graffico-legal] Meta event "${e}" non in whitelist`);return}typeof window>"u"||typeof window.fbq!="function"||window.fbq("track",e,o)}},[t,e])}import{useEffect as At}from"react";function Re({containerId:e,category:t="marketing",dataLayerName:o="dataLayer"}){let i=d(t);return At(()=>{if(!i)return;let n=window;n[o]=n[o]||[],n[o].push({"gtm.start":Date.now(),event:"gtm.js"});let r=o!=="dataLayer"?`&l=${o}`:"";w(`https://www.googletagmanager.com/gtm.js?id=${e}${r}`,`graffico-legal-gtm-${e}`)},[i,e,o]),null}import{useCallback as Ge,useEffect as Et}from"react";function _e({siteId:e,snippetVersion:t=6,category:o="statistical"}){let i=d(o);return Et(()=>{if(!i||typeof window>"u"||window.hj)return;let n=[],r=function(...s){n.push(s)};r.q=n,window.hj=r,window._hjSettings={hjid:e,hjsv:t},w(`https://static.hotjar.com/c/hotjar-${e}.js?sv=${t}`,`graffico-legal-hotjar-${e}`)},[i,e,t]),null}function je(e="statistical"){let t=d(e);return Ge(o=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("event",o))},[t])}function qe(e="statistical"){let t=d(e);return Ge((o,i)=>{t&&(typeof window>"u"||typeof window.hj!="function"||window.hj("identify",o,i))},[t])}import{useCallback as Oe,useState as Bt}from"react";function Ve(e){if(!e||typeof e!="string")return;let t=e.trim();if(t.length===0)return;if(t.startsWith("/")||t.startsWith("#")||t.startsWith("?"))return t;let o=t.toLowerCase();if(o.startsWith("http://")||o.startsWith("https://")||o.startsWith("mailto:")||o.startsWith("tel:"))return t}import{jsx as Fe,jsxs as Ue}from"react/jsx-runtime";var v={requireExplicitConsent:!0};function We({serviceId:e,templateId:t,publicKey:o,requireExplicitConsent:i=!0}){return v.serviceId=e,v.templateId=t,v.publicKey=o,v.requireExplicitConsent=i,null}function de(e,t,o){let i=e.querySelector(`input[type="hidden"][name="${CSS.escape(t)}"]`);i||(i=document.createElement("input"),i.type="hidden",i.name=t,e.appendChild(i)),i.value=o}function ue({label:e,privacyHref:t="/privacy-policy",privacyLabel:o,className:i,style:n,...r}){let s=k(),u=V(),m=u?b(u):void 0,f=Ve(t)??"/privacy-policy";return Ue("label",{className:i??"flex items-start gap-3 text-sm text-gray-600 leading-relaxed cursor-pointer select-none",style:n,children:[Fe("input",{type:"checkbox",name:"_legalConsent",className:"mt-1 h-4 w-4 rounded border-gray-300 cursor-pointer",style:m?{accentColor:m}:void 0,required:!0,...r}),Ue("span",{children:[e??s("consentCheckboxLabel")," ",Fe("a",{href:f,className:"underline underline-offset-2 hover:opacity-80",style:m?{color:m}:void 0,children:o??s("privacyPolicyLink")})]})]})}function He(){let e=N(),[t,o]=Bt("idle"),i=Oe(async r=>{if(!v.serviceId||!v.templateId||!v.publicKey)return{ok:!1,error:"CONFIG_MISSING"};if(v.requireExplicitConsent){let s=r.querySelector('input[name="_legalConsent"]');if(!s||!s.checked)return{ok:!1,error:"CONSENT_MISSING"}}de(r,"_consentId",e.consentId??""),de(r,"_consentTimestamp",e.timestamp??""),de(r,"_policyVersion",e.policyVersion??""),o("loading");try{let s=await import("@emailjs/browser").catch(()=>null);return s?(await(s.sendForm??s.default.sendForm)(v.serviceId,v.templateId,r,v.publicKey),o("success"),{ok:!0}):(o("error"),{ok:!1,error:"MODULE_MISSING"})}catch(s){return o("error"),{ok:!1,error:"SEND_FAILED",detail:s}}},[e]),n=Oe(()=>o("idle"),[]);return{send:i,status:t,reset:n,ConsentCheckbox:ue}}export{fe as CONSENT_TTL_MS,st as ConsentBanner,ue as ConsentCheckbox,xt as ConsentGate,Pe as ConsentModeBoot,be as DEFAULT_PRIMARY_COLOR,We as EmailJSLegal,ae as FloatingConsentToggle,Re as GTMLegal,Ie as GoogleAdsLegal,Le as GoogleAnalyticsLegal,_e as HotjarLegal,tt as LegalConfigProvider,Ee as MetaPixelLegal,kt as PreferenceCard,$ as PreferenceModal,Ce as SERVICE_PRESETS,ut as ServiceGrid,j as acceptAll,q as declineAll,S as getConsentSnapshot,Q as hydrateFromStorage,X as resetConsent,ne as resolveService,Z as savePreferences,K as setLanguage,x as setModalOpen,D as subscribeConsent,Ae as useAdsConversion,N as useConsent,d as useConsentCategory,He as useEmailJS,Ne as useGAEvent,je as useHotjarEvent,qe as useHotjarIdentify,te as useIsHydrated,L as useLegalConfig,V as useLegalConfigOptional,E as useLegalLanguage,Be as useMetaEvent,oe as useModalOpen,O as useShowBanner,k as useT};
package/dist/next.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var m=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var y=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},C=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of f(t))!d.call(e,s)&&s!==r&&m(e,s,{get:()=>t[s],enumerable:!(o=u(t,s))||o.enumerable});return e};var w=e=>C(m({},"__esModule",{value:!0}),e);var R={};y(R,{buildCspFromConfig:()=>p,buildLegalHeaders:()=>a,emitNetlifyHeaders:()=>h,mergeCsp:()=>i,serializeCsp:()=>n,withLegal:()=>g});module.exports=w(R);var k={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","blob:","https:"],"font-src":["'self'","data:"],"connect-src":["'self'"],"frame-src":["'self'"],"frame-ancestors":["'self'"],"base-uri":["'self'"],"form-action":["'self'"],"object-src":["'none'"],"upgrade-insecure-requests":[]},v={"google-analytics":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google-analytics.com","https://analytics.google.com","https://region1.google-analytics.com","https://stats.g.doubleclick.net"],"img-src":["https://www.google-analytics.com"]},"google-ads":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"img-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"frame-src":["https://td.doubleclick.net"]},"google-tag-manager":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.googletagmanager.com"]},"facebook-pixel":{"script-src":["https://connect.facebook.net"],"connect-src":["https://*.facebook.com","https://*.facebook.net"],"img-src":["https://www.facebook.com"]},"google-fonts":{"style-src":["https://fonts.googleapis.com"],"font-src":["https://fonts.gstatic.com"]},"contact-form":{"connect-src":["https://api.emailjs.com"]},youtube:{"frame-src":["https://www.youtube.com","https://www.youtube-nocookie.com"],"img-src":["https://i.ytimg.com"]},"google-maps":{"script-src":["https://maps.googleapis.com"],"frame-src":["https://www.google.com"],"img-src":["https://maps.googleapis.com","https://maps.gstatic.com"]},hotjar:{"script-src":["https://static.hotjar.com","https://script.hotjar.com"],"connect-src":["https://*.hotjar.com","https://*.hotjar.io","wss://*.hotjar.com"],"img-src":["https://static.hotjar.com"],"font-src":["https://script.hotjar.com"],"frame-src":["https://vars.hotjar.com"]},"microsoft-clarity":{"script-src":["https://www.clarity.ms"],"connect-src":["https://*.clarity.ms"]},"tiktok-pixel":{"script-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"connect-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"img-src":["https://analytics.tiktok.com"]},"linkedin-insight":{"script-src":["https://snap.licdn.com"],"connect-src":["https://px.ads.linkedin.com","https://snap.licdn.com"],"img-src":["https://px.ads.linkedin.com","https://*.linkedin.com"]},mailchimp:{"script-src":["https://chimpstatic.com","https://*.list-manage.com"],"connect-src":["https://*.list-manage.com"],"img-src":["https://*.list-manage.com"],"form-action":["https://*.list-manage.com"]},stripe:{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}};function b(e){let t=e.name.toLowerCase();return t.includes("contentful")?{"connect-src":["https://graphql.contentful.com","https://cdn.contentful.com","https://preview.contentful.com"],"img-src":["https://images.ctfassets.net"]}:t.includes("netlify")?{"img-src":["https://*.netlifyusercontent.com"]}:t.includes("vercel")?{"img-src":["https://*.vercel-storage.com"]}:t.includes("stripe")?{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}:{}}function i(...e){let t={};for(let r of e)if(r)for(let[o,s]of Object.entries(r)){if(!s)continue;let c=new Set([...t[o]??[],...s]);t[o]=Array.from(c)}return t}function x(e){return/[;,\r\n]/.test(e)?null:e.trim()}function n(e){return Object.entries(e).filter(([,t])=>t!==void 0).map(([t,r])=>{if(!r||r.length===0)return`${t}`;let o=r.map(x).filter(s=>s!==null&&s.length>0);return o.length>0?`${t} ${o.join(" ")}`:`${t}`}).join("; ")}function p(e,t){let r=(e.services??[]).map(s=>typeof s=="string"?s:s.id).map(s=>v[s]).filter(Boolean),o=(e.processors??[]).map(b);return i(k,...r,...o,t)}var j={camera:[],microphone:[],geolocation:[],payment:[],"interest-cohort":[],"browsing-topics":[]};function D(e){return Object.entries(e).map(([t,r])=>r.length===0?`${t}=()`:`${t}=(${r.map(o=>`"${o}"`).join(" ")})`).join(", ")}function a(e,t={}){let r=p(e,t.extraCsp),o=t.cspReportOnly?{...r,"upgrade-insecure-requests":void 0}:r,s=t.cspReportUri?i(o,{"report-uri":[t.cspReportUri]}):o,c=[];return c.push({key:t.cspReportOnly?"Content-Security-Policy-Report-Only":"Content-Security-Policy",value:n(s)}),t.skipHsts||c.push({key:"Strict-Transport-Security",value:"max-age=63072000; includeSubDomains; preload"}),c.push({key:"X-Frame-Options",value:"SAMEORIGIN"}),c.push({key:"X-Content-Type-Options",value:"nosniff"}),c.push({key:"Referrer-Policy",value:"strict-origin-when-cross-origin"}),c.push({key:"Permissions-Policy",value:D({...j,...t.permissionsPolicy??{}})}),c.push({key:"Cross-Origin-Opener-Policy",value:"same-origin"}),c}function g(e,t,r={}){let o=r.source??"/:path*",s=a(t,r),c=e.headers;return{...e,async headers(){return[...c?await c():[],{source:o,headers:s}]}}}function h(e,t={}){let r=a(e,t),o=" ",s=[];s.push("[[headers]]"),s.push(`${o}for = "${t.source??"/*"}"`),s.push(`${o}[headers.values]`);for(let c of r){let l=c.value.replace(/"/g,'\\"');s.push(`${o}${o}${c.key} = "${l}"`)}return s.join(`
1
+ "use strict";var l=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var y=(s,t)=>{for(var e in t)l(s,e,{get:t[e],enumerable:!0})},C=(s,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of f(t))!d.call(s,r)&&r!==e&&l(s,r,{get:()=>t[r],enumerable:!(o=u(t,r))||o.enumerable});return s};var w=s=>C(l({},"__esModule",{value:!0}),s);var R={};y(R,{buildCspFromConfig:()=>p,buildLegalHeaders:()=>a,emitNetlifyHeaders:()=>h,mergeCsp:()=>i,serializeCsp:()=>n,withLegal:()=>g});module.exports=w(R);var k={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","blob:","https:"],"font-src":["'self'","data:"],"connect-src":["'self'"],"frame-src":["'self'"],"frame-ancestors":["'self'"],"base-uri":["'self'"],"form-action":["'self'"],"object-src":["'none'"],"upgrade-insecure-requests":[]},v={"google-analytics":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google-analytics.com","https://analytics.google.com","https://region1.google-analytics.com","https://stats.g.doubleclick.net"],"img-src":["https://www.google-analytics.com"]},"google-ads":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"img-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"frame-src":["https://td.doubleclick.net"]},"google-tag-manager":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.googletagmanager.com"]},"facebook-pixel":{"script-src":["https://connect.facebook.net"],"connect-src":["https://*.facebook.com","https://*.facebook.net"],"img-src":["https://www.facebook.com"]},"google-fonts":{"style-src":["https://fonts.googleapis.com"],"font-src":["https://fonts.gstatic.com"]},"contact-form":{"connect-src":["https://api.emailjs.com"]},youtube:{"frame-src":["https://www.youtube.com","https://www.youtube-nocookie.com"],"img-src":["https://i.ytimg.com"]},"google-maps":{"script-src":["https://maps.googleapis.com"],"frame-src":["https://www.google.com"],"img-src":["https://maps.googleapis.com","https://maps.gstatic.com"]},hotjar:{"script-src":["https://static.hotjar.com","https://script.hotjar.com"],"connect-src":["https://*.hotjar.com","https://*.hotjar.io","wss://*.hotjar.com"],"img-src":["https://static.hotjar.com"],"font-src":["https://script.hotjar.com"],"frame-src":["https://vars.hotjar.com"]},"microsoft-clarity":{"script-src":["https://www.clarity.ms"],"connect-src":["https://*.clarity.ms"]},"tiktok-pixel":{"script-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"connect-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"img-src":["https://analytics.tiktok.com"]},"linkedin-insight":{"script-src":["https://snap.licdn.com"],"connect-src":["https://px.ads.linkedin.com","https://snap.licdn.com"],"img-src":["https://px.ads.linkedin.com","https://*.linkedin.com"]},mailchimp:{"script-src":["https://chimpstatic.com","https://*.list-manage.com"],"connect-src":["https://*.list-manage.com"],"img-src":["https://*.list-manage.com"],"form-action":["https://*.list-manage.com"]},stripe:{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}};function b(s){let t=s.name.toLowerCase();return t.includes("contentful")?{"connect-src":["https://graphql.contentful.com","https://cdn.contentful.com","https://preview.contentful.com"],"img-src":["https://images.ctfassets.net"]}:t.includes("netlify")?{"img-src":["https://*.netlifyusercontent.com"]}:t.includes("vercel")?{"img-src":["https://*.vercel-storage.com"]}:t.includes("stripe")?{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}:{}}function i(...s){let t={};for(let e of s)if(e)for(let[o,r]of Object.entries(e)){if(!r)continue;let c=new Set([...t[o]??[],...r]);t[o]=Array.from(c)}return t}function x(s){return/[;,\r\n]/.test(s)?null:s.trim()}function n(s){return Object.entries(s).filter(([,t])=>t!==void 0).map(([t,e])=>{if(!e||e.length===0)return`${t}`;let o=e.map(x).filter(r=>r!==null&&r.length>0);return o.length>0?`${t} ${o.join(" ")}`:`${t}`}).join("; ")}function p(s,t){let e=(s.services??[]).map(r=>typeof r=="string"?r:r.id).map(r=>v[r]).filter(Boolean),o=(s.processors??[]).map(b);return i(k,...e,...o,t)}var j={camera:[],microphone:[],geolocation:[],payment:[],"interest-cohort":[],"browsing-topics":[]};function D(s){return Object.entries(s).map(([t,e])=>e.length===0?`${t}=()`:`${t}=(${e.map(o=>`"${o}"`).join(" ")})`).join(", ")}function a(s,t={}){let e=[];if(!t.cspViaMiddleware){let o=p(s,t.extraCsp),r=t.cspReportOnly?{...o,"upgrade-insecure-requests":void 0}:o,c=t.cspReportUri?i(r,{"report-uri":[t.cspReportUri]}):r;e.push({key:t.cspReportOnly?"Content-Security-Policy-Report-Only":"Content-Security-Policy",value:n(c)})}return t.skipHsts||e.push({key:"Strict-Transport-Security",value:"max-age=63072000; includeSubDomains; preload"}),e.push({key:"X-Frame-Options",value:"SAMEORIGIN"}),e.push({key:"X-Content-Type-Options",value:"nosniff"}),e.push({key:"Referrer-Policy",value:"strict-origin-when-cross-origin"}),e.push({key:"Permissions-Policy",value:D({...j,...t.permissionsPolicy??{}})}),e.push({key:"Cross-Origin-Opener-Policy",value:"same-origin"}),e}function g(s,t,e={}){let o=e.source??"/:path*",r=a(t,e),c=s.headers;return{...s,async headers(){return[...c?await c():[],{source:o,headers:r}]}}}function h(s,t={}){let e=a(s,t),o=" ",r=[];r.push("[[headers]]"),r.push(`${o}for = "${t.source??"/*"}"`),r.push(`${o}[headers.values]`);for(let c of e){let m=c.value.replace(/"/g,'\\"');r.push(`${o}${o}${c.key} = "${m}"`)}return r.join(`
2
2
  `)}0&&(module.exports={buildCspFromConfig,buildLegalHeaders,emitNetlifyHeaders,mergeCsp,serializeCsp,withLegal});
package/dist/next.d.cts CHANGED
@@ -1,3 +1,28 @@
1
+ /**
2
+ * Base giuridica del trattamento ex art. 6 GDPR.
3
+ * - `contract`: art. 6.1.b (esecuzione contratto / misure precontrattuali)
4
+ * - `consent`: art. 6.1.a (consenso espresso)
5
+ * - `legitimate-interest`: art. 6.1.f (legittimo interesse del titolare)
6
+ * - `legal-obligation`: art. 6.1.c (obbligo di legge)
7
+ * - `vital-interests`: art. 6.1.d (interessi vitali)
8
+ * - `public-task`: art. 6.1.e (compito di interesse pubblico)
9
+ */
10
+ type LawfulBasis = "contract" | "consent" | "legitimate-interest" | "legal-obligation" | "vital-interests" | "public-task";
11
+ /**
12
+ * Tipo di tracker per la tabella cookie policy (Garante 10/06/2021 §3).
13
+ */
14
+ type CookieType = "technical" | "statistical" | "marketing" | "profiling";
15
+ /**
16
+ * Singolo cookie/identificatore dichiarato nella tabella cookie policy.
17
+ * Render colonne: nome, fornitore, finalità, durata, tipo.
18
+ */
19
+ interface CookieDeclaration {
20
+ name: string;
21
+ provider: string;
22
+ purpose: string;
23
+ duration: string;
24
+ type: CookieType;
25
+ }
1
26
  /**
2
27
  * Tracker o servizio terzo dichiarato in cookie/privacy policy.
3
28
  */
@@ -8,6 +33,8 @@ interface LegalService {
8
33
  logo?: string;
9
34
  purposes: string[];
10
35
  dataCollected: string[];
36
+ lawfulBasis?: LawfulBasis;
37
+ cookies?: CookieDeclaration[];
11
38
  }
12
39
  /**
13
40
  * Riferimento a un servizio: id di un preset oppure servizio inline.
@@ -81,6 +108,12 @@ interface CompanyConfig {
81
108
  * Dati di contatto del DPO, se nominato (art. 37 GDPR).
82
109
  */
83
110
  dpo?: DpoInfo;
111
+ /**
112
+ * Dichiarazione esplicita su processi decisionali automatizzati / profilazione
113
+ * (art. 22 GDPR). Se `false`, viene resa una dichiarazione negativa esplicita.
114
+ * Default: `false`.
115
+ */
116
+ automatedDecisionMaking?: boolean;
84
117
  }
85
118
 
86
119
  type CspDirective = "default-src" | "script-src" | "style-src" | "img-src" | "font-src" | "connect-src" | "frame-src" | "frame-ancestors" | "base-uri" | "form-action" | "media-src" | "object-src" | "worker-src" | "upgrade-insecure-requests" | "report-uri" | "report-to";
@@ -132,6 +165,13 @@ interface LegalNextOptions {
132
165
  * un array, vengono prodotti più blocchi `[[headers]]`.
133
166
  */
134
167
  source?: string;
168
+ /**
169
+ * Quando `true`, `withLegal` NON emette `Content-Security-Policy` perché si
170
+ * presume sia gestita da middleware per-request via `createLegalMiddleware`
171
+ * (CSP con nonce). Gli altri header (HSTS, X-Frame-Options, ecc.) restano
172
+ * emessi staticamente per garantire copertura su asset cacheati.
173
+ */
174
+ cspViaMiddleware?: boolean;
135
175
  }
136
176
  /**
137
177
  * Costruisce l'array di header da applicare. Esposto per riuso lato Netlify
package/dist/next.d.ts CHANGED
@@ -1,3 +1,28 @@
1
+ /**
2
+ * Base giuridica del trattamento ex art. 6 GDPR.
3
+ * - `contract`: art. 6.1.b (esecuzione contratto / misure precontrattuali)
4
+ * - `consent`: art. 6.1.a (consenso espresso)
5
+ * - `legitimate-interest`: art. 6.1.f (legittimo interesse del titolare)
6
+ * - `legal-obligation`: art. 6.1.c (obbligo di legge)
7
+ * - `vital-interests`: art. 6.1.d (interessi vitali)
8
+ * - `public-task`: art. 6.1.e (compito di interesse pubblico)
9
+ */
10
+ type LawfulBasis = "contract" | "consent" | "legitimate-interest" | "legal-obligation" | "vital-interests" | "public-task";
11
+ /**
12
+ * Tipo di tracker per la tabella cookie policy (Garante 10/06/2021 §3).
13
+ */
14
+ type CookieType = "technical" | "statistical" | "marketing" | "profiling";
15
+ /**
16
+ * Singolo cookie/identificatore dichiarato nella tabella cookie policy.
17
+ * Render colonne: nome, fornitore, finalità, durata, tipo.
18
+ */
19
+ interface CookieDeclaration {
20
+ name: string;
21
+ provider: string;
22
+ purpose: string;
23
+ duration: string;
24
+ type: CookieType;
25
+ }
1
26
  /**
2
27
  * Tracker o servizio terzo dichiarato in cookie/privacy policy.
3
28
  */
@@ -8,6 +33,8 @@ interface LegalService {
8
33
  logo?: string;
9
34
  purposes: string[];
10
35
  dataCollected: string[];
36
+ lawfulBasis?: LawfulBasis;
37
+ cookies?: CookieDeclaration[];
11
38
  }
12
39
  /**
13
40
  * Riferimento a un servizio: id di un preset oppure servizio inline.
@@ -81,6 +108,12 @@ interface CompanyConfig {
81
108
  * Dati di contatto del DPO, se nominato (art. 37 GDPR).
82
109
  */
83
110
  dpo?: DpoInfo;
111
+ /**
112
+ * Dichiarazione esplicita su processi decisionali automatizzati / profilazione
113
+ * (art. 22 GDPR). Se `false`, viene resa una dichiarazione negativa esplicita.
114
+ * Default: `false`.
115
+ */
116
+ automatedDecisionMaking?: boolean;
84
117
  }
85
118
 
86
119
  type CspDirective = "default-src" | "script-src" | "style-src" | "img-src" | "font-src" | "connect-src" | "frame-src" | "frame-ancestors" | "base-uri" | "form-action" | "media-src" | "object-src" | "worker-src" | "upgrade-insecure-requests" | "report-uri" | "report-to";
@@ -132,6 +165,13 @@ interface LegalNextOptions {
132
165
  * un array, vengono prodotti più blocchi `[[headers]]`.
133
166
  */
134
167
  source?: string;
168
+ /**
169
+ * Quando `true`, `withLegal` NON emette `Content-Security-Policy` perché si
170
+ * presume sia gestita da middleware per-request via `createLegalMiddleware`
171
+ * (CSP con nonce). Gli altri header (HSTS, X-Frame-Options, ecc.) restano
172
+ * emessi staticamente per garantire copertura su asset cacheati.
173
+ */
174
+ cspViaMiddleware?: boolean;
135
175
  }
136
176
  /**
137
177
  * Costruisce l'array di header da applicare. Esposto per riuso lato Netlify
package/dist/next.js CHANGED
@@ -1,2 +1,2 @@
1
- var l={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","blob:","https:"],"font-src":["'self'","data:"],"connect-src":["'self'"],"frame-src":["'self'"],"frame-ancestors":["'self'"],"base-uri":["'self'"],"form-action":["'self'"],"object-src":["'none'"],"upgrade-insecure-requests":[]},g={"google-analytics":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google-analytics.com","https://analytics.google.com","https://region1.google-analytics.com","https://stats.g.doubleclick.net"],"img-src":["https://www.google-analytics.com"]},"google-ads":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"img-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"frame-src":["https://td.doubleclick.net"]},"google-tag-manager":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.googletagmanager.com"]},"facebook-pixel":{"script-src":["https://connect.facebook.net"],"connect-src":["https://*.facebook.com","https://*.facebook.net"],"img-src":["https://www.facebook.com"]},"google-fonts":{"style-src":["https://fonts.googleapis.com"],"font-src":["https://fonts.gstatic.com"]},"contact-form":{"connect-src":["https://api.emailjs.com"]},youtube:{"frame-src":["https://www.youtube.com","https://www.youtube-nocookie.com"],"img-src":["https://i.ytimg.com"]},"google-maps":{"script-src":["https://maps.googleapis.com"],"frame-src":["https://www.google.com"],"img-src":["https://maps.googleapis.com","https://maps.gstatic.com"]},hotjar:{"script-src":["https://static.hotjar.com","https://script.hotjar.com"],"connect-src":["https://*.hotjar.com","https://*.hotjar.io","wss://*.hotjar.com"],"img-src":["https://static.hotjar.com"],"font-src":["https://script.hotjar.com"],"frame-src":["https://vars.hotjar.com"]},"microsoft-clarity":{"script-src":["https://www.clarity.ms"],"connect-src":["https://*.clarity.ms"]},"tiktok-pixel":{"script-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"connect-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"img-src":["https://analytics.tiktok.com"]},"linkedin-insight":{"script-src":["https://snap.licdn.com"],"connect-src":["https://px.ads.linkedin.com","https://snap.licdn.com"],"img-src":["https://px.ads.linkedin.com","https://*.linkedin.com"]},mailchimp:{"script-src":["https://chimpstatic.com","https://*.list-manage.com"],"connect-src":["https://*.list-manage.com"],"img-src":["https://*.list-manage.com"],"form-action":["https://*.list-manage.com"]},stripe:{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}};function h(s){let t=s.name.toLowerCase();return t.includes("contentful")?{"connect-src":["https://graphql.contentful.com","https://cdn.contentful.com","https://preview.contentful.com"],"img-src":["https://images.ctfassets.net"]}:t.includes("netlify")?{"img-src":["https://*.netlifyusercontent.com"]}:t.includes("vercel")?{"img-src":["https://*.vercel-storage.com"]}:t.includes("stripe")?{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}:{}}function i(...s){let t={};for(let r of s)if(r)for(let[o,e]of Object.entries(r)){if(!e)continue;let c=new Set([...t[o]??[],...e]);t[o]=Array.from(c)}return t}function u(s){return/[;,\r\n]/.test(s)?null:s.trim()}function n(s){return Object.entries(s).filter(([,t])=>t!==void 0).map(([t,r])=>{if(!r||r.length===0)return`${t}`;let o=r.map(u).filter(e=>e!==null&&e.length>0);return o.length>0?`${t} ${o.join(" ")}`:`${t}`}).join("; ")}function p(s,t){let r=(s.services??[]).map(e=>typeof e=="string"?e:e.id).map(e=>g[e]).filter(Boolean),o=(s.processors??[]).map(h);return i(l,...r,...o,t)}var f={camera:[],microphone:[],geolocation:[],payment:[],"interest-cohort":[],"browsing-topics":[]};function d(s){return Object.entries(s).map(([t,r])=>r.length===0?`${t}=()`:`${t}=(${r.map(o=>`"${o}"`).join(" ")})`).join(", ")}function a(s,t={}){let r=p(s,t.extraCsp),o=t.cspReportOnly?{...r,"upgrade-insecure-requests":void 0}:r,e=t.cspReportUri?i(o,{"report-uri":[t.cspReportUri]}):o,c=[];return c.push({key:t.cspReportOnly?"Content-Security-Policy-Report-Only":"Content-Security-Policy",value:n(e)}),t.skipHsts||c.push({key:"Strict-Transport-Security",value:"max-age=63072000; includeSubDomains; preload"}),c.push({key:"X-Frame-Options",value:"SAMEORIGIN"}),c.push({key:"X-Content-Type-Options",value:"nosniff"}),c.push({key:"Referrer-Policy",value:"strict-origin-when-cross-origin"}),c.push({key:"Permissions-Policy",value:d({...f,...t.permissionsPolicy??{}})}),c.push({key:"Cross-Origin-Opener-Policy",value:"same-origin"}),c}function y(s,t,r={}){let o=r.source??"/:path*",e=a(t,r),c=s.headers;return{...s,async headers(){return[...c?await c():[],{source:o,headers:e}]}}}function C(s,t={}){let r=a(s,t),o=" ",e=[];e.push("[[headers]]"),e.push(`${o}for = "${t.source??"/*"}"`),e.push(`${o}[headers.values]`);for(let c of r){let m=c.value.replace(/"/g,'\\"');e.push(`${o}${o}${c.key} = "${m}"`)}return e.join(`
1
+ var m={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","blob:","https:"],"font-src":["'self'","data:"],"connect-src":["'self'"],"frame-src":["'self'"],"frame-ancestors":["'self'"],"base-uri":["'self'"],"form-action":["'self'"],"object-src":["'none'"],"upgrade-insecure-requests":[]},g={"google-analytics":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google-analytics.com","https://analytics.google.com","https://region1.google-analytics.com","https://stats.g.doubleclick.net"],"img-src":["https://www.google-analytics.com"]},"google-ads":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"img-src":["https://www.google.com","https://googleads.g.doubleclick.net"],"frame-src":["https://td.doubleclick.net"]},"google-tag-manager":{"script-src":["https://www.googletagmanager.com"],"connect-src":["https://www.googletagmanager.com"]},"facebook-pixel":{"script-src":["https://connect.facebook.net"],"connect-src":["https://*.facebook.com","https://*.facebook.net"],"img-src":["https://www.facebook.com"]},"google-fonts":{"style-src":["https://fonts.googleapis.com"],"font-src":["https://fonts.gstatic.com"]},"contact-form":{"connect-src":["https://api.emailjs.com"]},youtube:{"frame-src":["https://www.youtube.com","https://www.youtube-nocookie.com"],"img-src":["https://i.ytimg.com"]},"google-maps":{"script-src":["https://maps.googleapis.com"],"frame-src":["https://www.google.com"],"img-src":["https://maps.googleapis.com","https://maps.gstatic.com"]},hotjar:{"script-src":["https://static.hotjar.com","https://script.hotjar.com"],"connect-src":["https://*.hotjar.com","https://*.hotjar.io","wss://*.hotjar.com"],"img-src":["https://static.hotjar.com"],"font-src":["https://script.hotjar.com"],"frame-src":["https://vars.hotjar.com"]},"microsoft-clarity":{"script-src":["https://www.clarity.ms"],"connect-src":["https://*.clarity.ms"]},"tiktok-pixel":{"script-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"connect-src":["https://analytics.tiktok.com","https://*.tiktok.com"],"img-src":["https://analytics.tiktok.com"]},"linkedin-insight":{"script-src":["https://snap.licdn.com"],"connect-src":["https://px.ads.linkedin.com","https://snap.licdn.com"],"img-src":["https://px.ads.linkedin.com","https://*.linkedin.com"]},mailchimp:{"script-src":["https://chimpstatic.com","https://*.list-manage.com"],"connect-src":["https://*.list-manage.com"],"img-src":["https://*.list-manage.com"],"form-action":["https://*.list-manage.com"]},stripe:{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}};function h(r){let t=r.name.toLowerCase();return t.includes("contentful")?{"connect-src":["https://graphql.contentful.com","https://cdn.contentful.com","https://preview.contentful.com"],"img-src":["https://images.ctfassets.net"]}:t.includes("netlify")?{"img-src":["https://*.netlifyusercontent.com"]}:t.includes("vercel")?{"img-src":["https://*.vercel-storage.com"]}:t.includes("stripe")?{"script-src":["https://js.stripe.com"],"frame-src":["https://js.stripe.com","https://hooks.stripe.com"],"connect-src":["https://api.stripe.com"]}:{}}function i(...r){let t={};for(let e of r)if(e)for(let[o,s]of Object.entries(e)){if(!s)continue;let c=new Set([...t[o]??[],...s]);t[o]=Array.from(c)}return t}function u(r){return/[;,\r\n]/.test(r)?null:r.trim()}function n(r){return Object.entries(r).filter(([,t])=>t!==void 0).map(([t,e])=>{if(!e||e.length===0)return`${t}`;let o=e.map(u).filter(s=>s!==null&&s.length>0);return o.length>0?`${t} ${o.join(" ")}`:`${t}`}).join("; ")}function p(r,t){let e=(r.services??[]).map(s=>typeof s=="string"?s:s.id).map(s=>g[s]).filter(Boolean),o=(r.processors??[]).map(h);return i(m,...e,...o,t)}var f={camera:[],microphone:[],geolocation:[],payment:[],"interest-cohort":[],"browsing-topics":[]};function d(r){return Object.entries(r).map(([t,e])=>e.length===0?`${t}=()`:`${t}=(${e.map(o=>`"${o}"`).join(" ")})`).join(", ")}function a(r,t={}){let e=[];if(!t.cspViaMiddleware){let o=p(r,t.extraCsp),s=t.cspReportOnly?{...o,"upgrade-insecure-requests":void 0}:o,c=t.cspReportUri?i(s,{"report-uri":[t.cspReportUri]}):s;e.push({key:t.cspReportOnly?"Content-Security-Policy-Report-Only":"Content-Security-Policy",value:n(c)})}return t.skipHsts||e.push({key:"Strict-Transport-Security",value:"max-age=63072000; includeSubDomains; preload"}),e.push({key:"X-Frame-Options",value:"SAMEORIGIN"}),e.push({key:"X-Content-Type-Options",value:"nosniff"}),e.push({key:"Referrer-Policy",value:"strict-origin-when-cross-origin"}),e.push({key:"Permissions-Policy",value:d({...f,...t.permissionsPolicy??{}})}),e.push({key:"Cross-Origin-Opener-Policy",value:"same-origin"}),e}function y(r,t,e={}){let o=e.source??"/:path*",s=a(t,e),c=r.headers;return{...r,async headers(){return[...c?await c():[],{source:o,headers:s}]}}}function C(r,t={}){let e=a(r,t),o=" ",s=[];s.push("[[headers]]"),s.push(`${o}for = "${t.source??"/*"}"`),s.push(`${o}[headers.values]`);for(let c of e){let l=c.value.replace(/"/g,'\\"');s.push(`${o}${o}${c.key} = "${l}"`)}return s.join(`
2
2
  `)}export{p as buildCspFromConfig,a as buildLegalHeaders,C as emitNetlifyHeaders,i as mergeCsp,n as serializeCsp,y as withLegal};
package/dist/server.d.ts CHANGED
@@ -1,6 +1,31 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ /**
5
+ * Base giuridica del trattamento ex art. 6 GDPR.
6
+ * - `contract`: art. 6.1.b (esecuzione contratto / misure precontrattuali)
7
+ * - `consent`: art. 6.1.a (consenso espresso)
8
+ * - `legitimate-interest`: art. 6.1.f (legittimo interesse del titolare)
9
+ * - `legal-obligation`: art. 6.1.c (obbligo di legge)
10
+ * - `vital-interests`: art. 6.1.d (interessi vitali)
11
+ * - `public-task`: art. 6.1.e (compito di interesse pubblico)
12
+ */
13
+ type LawfulBasis = "contract" | "consent" | "legitimate-interest" | "legal-obligation" | "vital-interests" | "public-task";
14
+ /**
15
+ * Tipo di tracker per la tabella cookie policy (Garante 10/06/2021 §3).
16
+ */
17
+ type CookieType = "technical" | "statistical" | "marketing" | "profiling";
18
+ /**
19
+ * Singolo cookie/identificatore dichiarato nella tabella cookie policy.
20
+ * Render colonne: nome, fornitore, finalità, durata, tipo.
21
+ */
22
+ interface CookieDeclaration {
23
+ name: string;
24
+ provider: string;
25
+ purpose: string;
26
+ duration: string;
27
+ type: CookieType;
28
+ }
4
29
  /**
5
30
  * Tracker o servizio terzo dichiarato in cookie/privacy policy.
6
31
  */
@@ -11,6 +36,8 @@ interface LegalService {
11
36
  logo?: string;
12
37
  purposes: string[];
13
38
  dataCollected: string[];
39
+ lawfulBasis?: LawfulBasis;
40
+ cookies?: CookieDeclaration[];
14
41
  }
15
42
  /**
16
43
  * Riferimento a un servizio: id di un preset oppure servizio inline.
@@ -84,6 +111,12 @@ interface CompanyConfig {
84
111
  * Dati di contatto del DPO, se nominato (art. 37 GDPR).
85
112
  */
86
113
  dpo?: DpoInfo;
114
+ /**
115
+ * Dichiarazione esplicita su processi decisionali automatizzati / profilazione
116
+ * (art. 22 GDPR). Se `false`, viene resa una dichiarazione negativa esplicita.
117
+ * Default: `false`.
118
+ */
119
+ automatedDecisionMaking?: boolean;
87
120
  }
88
121
  /**
89
122
  * Origine della scelta di consenso salvata. Utile per audit.
package/dist/server.js CHANGED
@@ -1 +1 @@
1
- import{LegalConfigProvider as U,ConsentBanner as q}from"@graffico/legal";import{jsx as F,jsxs as W}from"react/jsx-runtime";function M({children:t,config:i}){return W(U,{config:i,children:[t,F(q,{})]})}var y={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\u2019accesso, 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",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\u2019utilizzo 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\u2019Utente.",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\u2019utilizzo dei Tracker sia basato sul consenso, l\u2019Utente 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",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 B={it:"it-IT",en:"en-US"},P=new Map;function u(t){return t&&t.toLowerCase().startsWith("en")?"en":"it"}function V(t){let i=P.get(t);if(i)return i;let e=y[t]??y.it,o=y.it,s=p=>e[p]??o[p];return P.set(t,s),s}var h=t=>V(u(t)),O=t=>B[t];function k(t,i){return new Date(t).toLocaleDateString(O(i),{day:"numeric",month:"long",year:"numeric"})}var E="#2c5282",v=t=>t.primaryColor??E,C=t=>t.domain||t.name,T=t=>Array.isArray(t)?t:[t];import{ServiceGrid as H}from"@graffico/legal";import{jsx as z,jsxs as G}from"react/jsx-runtime";function x({primaryColor:t,t:i}){return z("footer",{className:"mt-40 pt-12 border-t border-gray-100 text-center",children:G("p",{className:"text-xs text-gray-400 font-bold uppercase tracking-widest",children:[i("generatedBy")," ",z("a",{href:"https://graffico.it/",target:"_blank",rel:"noopener noreferrer",className:"transition-colors underline decoration-2 underline-offset-4",style:{color:t},children:"GRAFFICO.IT"})," ","\u2022 \xA9 ",new Date().getFullYear()]})})}import{jsx as f,jsxs as g}from"react/jsx-runtime";function D({title:t,intro:i,config:e,language:o,primaryColor:s,t:p}){return g("header",{className:"mb-20",children:[g("div",{className:"flex items-center gap-3 mb-6",children:[f("span",{className:"px-3 py-1 text-white text-[10px] font-black uppercase tracking-widest rounded-full",style:{backgroundColor:s},children:p("legal")}),f("div",{className:"h-0.5 w-12 bg-gray-100"})]}),g("h1",{className:"text-4xl md:text-6xl font-black tracking-tight mb-8",children:[t," ",f("br",{}),f("span",{className:"underline decoration-[8px] underline-offset-8",style:{textDecorationColor:`${s}1a`,color:s},children:C(e)})]}),f("p",{className:"text-xl text-gray-500 leading-relaxed max-w-2xl font-medium",children:i}),g("div",{className:"flex flex-wrap gap-x-6 gap-y-2 text-xs text-gray-400 font-bold uppercase tracking-widest mt-8",children:[g("span",{children:[p("lastUpdated"),":"," ",e.lastUpdated??k(new Date,o)]}),e.policyVersion&&g("span",{children:[p("policyVersionLabel"),": ",e.policyVersion]})]})]})}function w(t){if(!t||typeof t!="string")return;let i=t.trim();if(i.length===0)return;if(i.startsWith("/")||i.startsWith("#")||i.startsWith("?"))return i;let e=i.toLowerCase();if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:"))return i}import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({config:t,primaryColor:i,t:e}){let o=t.processors??[];return o.length===0?null:c("section",{className:"space-y-8",children:[r("h2",{className:"text-3xl font-black tracking-tight",children:e("processorsTitle")}),r("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:e("processorsIntro")}),r("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:o.map((s,p)=>{let m=w(s.privacyUrl);return c("div",{className:"p-6 bg-gray-50 rounded-3xl border border-gray-100 space-y-3",children:[r("h3",{className:"text-lg font-black border-l-2 pl-3",style:{borderColor:i},children:s.name}),c("dl",{className:"space-y-2 text-sm",children:[c("div",{className:"flex gap-2",children:[r("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorPurpose")}),r("dd",{className:"text-gray-600 font-medium",children:s.purpose})]}),c("div",{className:"flex gap-2",children:[r("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorCountry")}),r("dd",{className:"text-gray-600 font-medium",children:s.country})]}),s.transferBasis&&c("div",{className:"flex gap-2",children:[r("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorTransferBasis")}),r("dd",{className:"text-gray-600 font-medium",children:s.transferBasis})]}),m&&c("div",{className:"flex gap-2",children:[r("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorPrivacyPolicy")}),r("dd",{children:r("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 font-bold",style:{color:i},children:m})})]})]})]},`${s.name}-${p}`)})})]})}function S({config:t,t:i}){return(t.processors??[]).some(o=>o.transferBasis)?c("section",{className:"space-y-8",children:[r("h2",{className:"text-3xl font-black tracking-tight",children:i("transfersTitle")}),r("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:i("transfersDescription")})]}):null}function I({config:t,primaryColor:i,t:e}){let o=t.retention;if(!o)return null;let s={contactForms:e("retentionContactForms"),analytics:e("retentionAnalytics"),marketing:e("retentionMarketing")},p=Object.entries(o).filter(([,m])=>typeof m=="string"&&m.length>0);return p.length===0?null:c("section",{className:"space-y-8",children:[r("h2",{className:"text-3xl font-black tracking-tight",children:e("retentionTitle")}),r("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:e("retentionIntro")}),r("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:p.map(([m,R])=>c("div",{className:"p-6 bg-gray-50 rounded-3xl border border-gray-100",children:[r("p",{className:"text-[10px] font-black uppercase tracking-widest text-gray-400",children:s[m]??m}),r("p",{className:"text-2xl font-black mt-2",style:{color:i},children:R})]},m))})]})}function A({config:t,primaryColor:i,t:e}){return t.dpo?c("section",{className:"space-y-8",children:[r("h2",{className:"text-3xl font-black tracking-tight",children:e("dpoTitle")}),r("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:e("dpoIntro")}),c("div",{className:"bg-gray-50 p-8 rounded-3xl border border-gray-100",children:[r("p",{className:"text-xl font-black",children:t.dpo.name}),c("p",{className:"mt-3 font-bold flex items-center gap-2",children:[c("span",{className:"text-gray-400 font-black uppercase text-[10px] tracking-widest",children:[e("email"),":"]}),r("span",{className:"underline decoration-2 underline-offset-4",style:{color:i},children:t.dpo.email})]}),t.dpo.phone&&c("p",{className:"mt-2 font-bold flex items-center gap-2",children:[c("span",{className:"text-gray-400 font-black uppercase text-[10px] tracking-widest",children:[e("dpoPhone"),":"]}),r("span",{className:"text-gray-700",children:t.dpo.phone})]})]})]}):null}import{Fragment as Y,jsx as a,jsxs as n}from"react/jsx-runtime";function Q({config:t}){let i=u(t.language),e=h(t.language),o=v(t);return a("div",{className:"bg-white min-h-screen text-gray-900 font-sans",style:{"--selection-bg":`${o}1a`,"--selection-text":o,"--primary-color":o},children:n("div",{className:"max-w-5xl mx-auto px-6 py-20 md:py-32",children:[a(D,{title:e("privacyPolicyTitle"),intro:n(Y,{children:[e("privacyWelcome")," ",t.domain||t.name,"."," ",e("privacyIntro")]}),config:t,language:i,primaryColor:o,t:e}),n("div",{className:"space-y-32",children:[n("section",{className:"space-y-8",children:[a("h2",{className:"text-sm font-black uppercase tracking-[0.2em] text-gray-400",children:e("ownerTitle")}),n("div",{className:"bg-gray-50 p-10 rounded-4xl border border-gray-100",children:[a("p",{className:"text-xl font-black text-gray-900",children:t.owners}),n("div",{className:"mt-4 space-y-2 text-gray-600 leading-relaxed font-medium",children:[T(t.addresses).map((s,p)=>a("p",{children:s},p)),t.vatNumbers&&n("p",{className:"mt-2 text-sm",children:[e("vat"),": ",T(t.vatNumbers).join(", ")]}),n("p",{className:"pt-6 font-bold flex items-center gap-2",children:[n("span",{className:"text-gray-400 font-black uppercase text-[10px] tracking-widest",children:[e("email"),":"]}),a("span",{className:"underline decoration-2 underline-offset-4",style:{color:o},children:t.email})]})]})]})]}),n("section",{className:"space-y-12",children:[a("h2",{className:"text-3xl font-black tracking-tight",children:e("dataSummaryTitle")}),n("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[n("div",{className:"p-8 bg-gray-50 rounded-3xl border border-gray-100",children:[a("h3",{className:"font-black text-gray-900 mb-4",children:e("automaticDataTitle")}),n("p",{className:"text-sm text-gray-500 leading-relaxed",children:[e("automaticDataDescription"),t.name,e("automaticDataIncludes")]})]}),n("div",{className:"p-8 bg-gray-50 rounded-3xl border border-gray-100",children:[a("h3",{className:"font-black text-gray-900 mb-4",children:e("providedDataTitle")}),a("p",{className:"text-sm text-gray-500 leading-relaxed",children:e("providedDataDescription")})]})]})]}),n("section",{className:"space-y-12",children:[a("h2",{className:"text-3xl font-black tracking-tight",children:e("treatmentDetailsTitle")}),a("p",{className:"text-gray-600 leading-relaxed text-lg max-w-3xl font-medium",children:e("treatmentDetailsDescription")}),a(H,{config:t,language:i})]}),a(N,{config:t,primaryColor:o,t:e}),a(S,{config:t,t:e}),a(I,{config:t,primaryColor:o,t:e}),a(A,{config:t,primaryColor:o,t:e}),n("section",{className:"space-y-8",children:[a("h2",{className:"text-3xl font-black tracking-tight",children:e("modeAndPlaceTitle")}),n("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-6",children:[a("p",{children:e("modeDescription")}),a("p",{children:e("placeDescription")})]})]}),n("section",{className:"space-y-12 bg-gray-950 text-white p-12 rounded-[3.5rem] shadow-2xl",children:[a("h2",{className:"text-3xl font-black tracking-tight",children:e("rightsTitle")}),n("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 text-gray-400 text-sm leading-relaxed font-medium",children:[n("ul",{className:"list-disc list-inside space-y-3",children:[a("li",{children:e("right1")}),a("li",{children:e("right2")}),a("li",{children:e("right3")}),a("li",{children:e("right4")})]}),n("ul",{className:"list-disc list-inside space-y-3",children:[a("li",{children:e("right5")}),a("li",{children:e("right6")}),a("li",{children:e("right7")}),a("li",{children:e("right8")})]})]}),n("div",{className:"pt-8 border-t border-white/5 mt-8",children:[a("p",{className:"text-xs text-gray-500 font-bold uppercase tracking-[0.2em]",children:e("howToExerciseRights")}),a("p",{className:"text-sm text-gray-300 mt-2 italic",children:e("exerciseRightsDescription")})]})]}),n("section",{className:"space-y-12",children:[a("h2",{className:"text-3xl font-black tracking-tight",children:e("definitionsTitle")}),n("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-12",children:[a(b,{title:e("personalDataTitle"),description:e("personalDataDescription"),primaryColor:o}),a(b,{title:e("usageDataTitle"),description:e("usageDataDescription"),primaryColor:o}),a(b,{title:e("ownerDefinitionTitle"),description:e("ownerDefinitionDescription"),primaryColor:o}),a(b,{title:e("cookieDefinitionTitle"),description:e("cookieDefinitionDescription"),primaryColor:o})]})]})]}),a(x,{primaryColor:o,t:e})]})})}function b({title:t,description:i,primaryColor:e}){return n("div",{className:"space-y-3",children:[a("h4",{className:"font-black text-gray-900 border-l-2 pl-4",style:{borderColor:e},children:t}),a("p",{className:"text-sm text-gray-500 leading-relaxed font-medium",children:i})]})}import{PreferenceCard as $,ServiceGrid as j}from"@graffico/legal";import{Fragment as J,jsx as l,jsxs as d}from"react/jsx-runtime";function _({config:t}){let i=u(t.language),e=h(t.language),o=v(t);return l("div",{className:"bg-white min-h-screen text-gray-900 font-sans",style:{"--selection-bg":`${o}1a`,"--selection-text":o},children:d("div",{className:"max-w-5xl mx-auto px-6 py-20 md:py-32",children:[l(D,{title:e("cookiePolicyTitle"),intro:d(J,{children:[e("cookieWelcome")," ",t.domain||t.name,"."," ",e("cookieIntro")]}),config:t,language:i,primaryColor:o,t:e}),d("div",{className:"space-y-32",children:[d("section",{className:"bg-gray-50 p-10 rounded-4xl border border-gray-100 space-y-6",children:[l("h2",{className:"text-2xl font-black text-gray-900",children:e("introduction")}),d("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-4",children:[l("p",{children:e("introDescription1")}),l("p",{children:e("introDescription2")})]})]}),d("section",{className:"space-y-16",children:[d("div",{className:"max-w-3xl",children:[l("h2",{className:"text-3xl font-black tracking-tight mb-6",children:e("usageTrackingTitle")}),l("p",{className:"font-black text-lg leading-relaxed",style:{color:o},children:e("usageTrackingDescription")})]}),l(j,{config:t,language:i})]}),d("section",{className:"space-y-12",children:[l("h2",{className:"text-3xl font-black tracking-tight",children:e("managePreferencesTitle")}),d("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-6",children:[l("p",{children:e("managePreferencesDescription1")}),l("p",{children:e("managePreferencesDescription2")})]}),l($,{language:i,primaryColor:o})]}),d("section",{className:"space-y-12 border-t border-gray-100 pt-32",children:[l("h2",{className:"text-3xl font-black tracking-tight",children:e("definitionsTitle")}),d("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-12",children:[l(L,{title:e("trackingToolTitle"),description:e("trackingToolDescription"),primaryColor:o}),l(L,{title:e("dataSubjectTitle"),description:e("dataSubjectDescription"),primaryColor:o})]})]})]}),l(x,{primaryColor:o,t:e})]})})}function L({title:t,description:i,primaryColor:e}){return d("div",{className:"space-y-3",children:[l("h4",{className:"font-black text-gray-900 border-l-2 pl-4",style:{borderColor:e},children:t}),l("p",{className:"text-sm text-gray-500 leading-relaxed font-medium",children:i})]})}export{_ as CookiePolicy,M as LegalProvider,Q as PrivacyPolicy};
1
+ import{LegalConfigProvider as F,ConsentBanner as W}from"@graffico/legal";import{jsx as Y,jsxs as j}from"react/jsx-runtime";function O({children:i,config:t}){return j(F,{config:t,children:[i,Y(W,{})]})}var T={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 H={it:"it-IT",en:"en-US"},S=new Map;function h(i){return i&&i.toLowerCase().startsWith("en")?"en":"it"}function Q(i){let t=S.get(i);if(t)return t;let e=T[i]??T.it,a=T.it,r=p=>e[p]??a[p];return S.set(i,r),r}var x=i=>Q(h(i)),$=i=>H[i];function I(i,t){return new Date(i).toLocaleDateString($(t),{day:"numeric",month:"long",year:"numeric"})}var K="#2c5282",k=i=>i.primaryColor??K,L=i=>i.domain||i.name,N=i=>Array.isArray(i)?i:[i];import{ServiceGrid as ee}from"@graffico/legal";import{jsx as B,jsxs as J}from"react/jsx-runtime";function D({primaryColor:i,t}){return B("footer",{className:"mt-40 pt-12 border-t border-gray-100 text-center",children:J("p",{className:"text-xs text-gray-400 font-bold uppercase tracking-widest",children:[t("generatedBy")," ",B("a",{href:"https://graffico.it/",target:"_blank",rel:"noopener noreferrer",className:"transition-colors underline decoration-2 underline-offset-4",style:{color:i},children:"GRAFFICO.IT"})," ","\u2022 \xA9 ",new Date().getFullYear()]})})}import{jsx as v,jsxs as f}from"react/jsx-runtime";function P({title:i,intro:t,config:e,language:a,primaryColor:r,t:p}){return f("header",{className:"mb-20",children:[f("div",{className:"flex items-center gap-3 mb-6",children:[v("span",{className:"px-3 py-1 text-white text-[10px] font-black uppercase tracking-widest rounded-full",style:{backgroundColor:r},children:p("legal")}),v("div",{className:"h-0.5 w-12 bg-gray-100"})]}),f("h1",{className:"text-4xl md:text-6xl font-black tracking-tight mb-8",children:[i," ",v("br",{}),v("span",{className:"underline decoration-[8px] underline-offset-8",style:{textDecorationColor:`${r}1a`,color:r},children:L(e)})]}),v("p",{className:"text-xl text-gray-500 leading-relaxed max-w-2xl font-medium",children:t}),f("div",{className:"flex flex-wrap gap-x-6 gap-y-2 text-xs text-gray-400 font-bold uppercase tracking-widest mt-8",children:[f("span",{children:[p("lastUpdated"),":"," ",e.lastUpdated??I(new Date,a)]}),e.policyVersion&&f("span",{children:[p("policyVersionLabel"),": ",e.policyVersion]})]})]})}function R(i){if(!i||typeof i!="string")return;let t=i.trim();if(t.length===0)return;if(t.startsWith("/")||t.startsWith("#")||t.startsWith("?"))return t;let e=t.toLowerCase();if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:"))return t}import{jsx as n,jsxs as m}from"react/jsx-runtime";function A({config:i,primaryColor:t,t:e}){let a=i.processors??[];return a.length===0?null:m("section",{className:"space-y-8",children:[n("h2",{className:"text-3xl font-black tracking-tight",children:e("processorsTitle")}),n("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:e("processorsIntro")}),n("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:a.map((r,p)=>{let l=R(r.privacyUrl);return m("div",{className:"p-6 bg-gray-50 rounded-3xl border border-gray-100 space-y-3",children:[n("h3",{className:"text-lg font-black border-l-2 pl-3",style:{borderColor:t},children:r.name}),m("dl",{className:"space-y-2 text-sm",children:[m("div",{className:"flex gap-2",children:[n("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorPurpose")}),n("dd",{className:"text-gray-600 font-medium",children:r.purpose})]}),m("div",{className:"flex gap-2",children:[n("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorCountry")}),n("dd",{className:"text-gray-600 font-medium",children:r.country})]}),r.transferBasis&&m("div",{className:"flex gap-2",children:[n("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorTransferBasis")}),n("dd",{className:"text-gray-600 font-medium",children:r.transferBasis})]}),l&&m("div",{className:"flex gap-2",children:[n("dt",{className:"font-black uppercase tracking-widest text-[10px] text-gray-400 min-w-[120px] pt-0.5",children:e("processorPrivacyPolicy")}),n("dd",{children:n("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 font-bold",style:{color:t},children:l})})]})]})]},`${r.name}-${p}`)})})]})}function M({config:i,t}){return(i.processors??[]).some(a=>a.transferBasis)?m("section",{className:"space-y-8",children:[n("h2",{className:"text-3xl font-black tracking-tight",children:t("transfersTitle")}),n("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:t("transfersDescription")})]}):null}function G({config:i,primaryColor:t,t:e}){let a=i.retention;if(!a)return null;let r={contactForms:e("retentionContactForms"),analytics:e("retentionAnalytics"),marketing:e("retentionMarketing")},p=Object.entries(a).filter(([,l])=>typeof l=="string"&&l.length>0);return p.length===0?null:m("section",{className:"space-y-8",children:[n("h2",{className:"text-3xl font-black tracking-tight",children:e("retentionTitle")}),n("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:e("retentionIntro")}),n("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:p.map(([l,w])=>m("div",{className:"p-6 bg-gray-50 rounded-3xl border border-gray-100",children:[n("p",{className:"text-[10px] font-black uppercase tracking-widest text-gray-400",children:r[l]??l}),n("p",{className:"text-2xl font-black mt-2",style:{color:t},children:w})]},l))})]})}function U({config:i,primaryColor:t,t:e}){return i.dpo?m("section",{className:"space-y-8",children:[n("h2",{className:"text-3xl font-black tracking-tight",children:e("dpoTitle")}),n("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:e("dpoIntro")}),m("div",{className:"bg-gray-50 p-8 rounded-3xl border border-gray-100",children:[n("p",{className:"text-xl font-black",children:i.dpo.name}),m("p",{className:"mt-3 font-bold flex items-center gap-2",children:[m("span",{className:"text-gray-400 font-black uppercase text-[10px] tracking-widest",children:[e("email"),":"]}),n("span",{className:"underline decoration-2 underline-offset-4",style:{color:t},children:i.dpo.email})]}),i.dpo.phone&&m("p",{className:"mt-2 font-bold flex items-center gap-2",children:[m("span",{className:"text-gray-400 font-black uppercase text-[10px] tracking-widest",children:[e("dpoPhone"),":"]}),n("span",{className:"text-gray-700",children:i.dpo.phone})]})]})]}):null}var X={"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"}},z=i=>typeof i=="string"?X[i]||{id:i,name:i,category:"automatic",purposes:[],dataCollected:[]}:i;import{jsx as g,jsxs as b}from"react/jsx-runtime";var Z={contract:"lawfulBasisContract",consent:"lawfulBasisConsent","legitimate-interest":"lawfulBasisLegitInterest","legal-obligation":"lawfulBasisLegalObligation","vital-interests":"lawfulBasisVitalInterests","public-task":"lawfulBasisPublicTask"};function q({config:i,primaryColor:t,t:e}){let a=(i.services??[]).map(r=>z(r));return a.length===0?null:b("section",{className:"space-y-8",children:[g("h2",{className:"text-3xl font-black tracking-tight",children:e("lawfulBasisTitle")}),g("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:e("lawfulBasisIntro")}),g("div",{className:"overflow-x-auto rounded-3xl border border-gray-100",children:b("table",{className:"w-full text-left text-sm",children:[g("thead",{className:"bg-gray-50 text-[10px] font-black uppercase tracking-widest text-gray-400",children:b("tr",{children:[g("th",{className:"px-6 py-4 w-1/3",children:e("treatmentDetailsTitle")}),g("th",{className:"px-6 py-4",children:e("lawfulBasisTitle")})]})}),g("tbody",{className:"divide-y divide-gray-100",children:a.map(r=>{let p=r.lawfulBasis?Z[r.lawfulBasis]:null,l=e(p||"lawfulBasisNotDeclared");return b("tr",{className:"bg-white",children:[g("td",{className:"px-6 py-4 align-top",children:g("span",{className:"font-black border-l-2 pl-3",style:{borderColor:t},children:r.name})}),g("td",{className:"px-6 py-4 text-gray-600 font-medium",children:l})]},r.id)})})]})})]})}function E({config:i,t}){let e=i.automatedDecisionMaking===!0;return b("section",{className:"space-y-8",children:[g("h2",{className:"text-3xl font-black tracking-tight",children:t("profilingTitle")}),g("p",{className:"text-gray-600 leading-relaxed max-w-3xl font-medium",children:t(e?"profilingDeclaredYes":"profilingDeclaredNo")})]})}import{Fragment as te,jsx as o,jsxs as s}from"react/jsx-runtime";function ie({config:i}){let t=h(i.language),e=x(i.language),a=k(i);return o("div",{className:"bg-white min-h-screen text-gray-900 font-sans",style:{"--selection-bg":`${a}1a`,"--selection-text":a,"--primary-color":a},children:s("div",{className:"max-w-5xl mx-auto px-6 py-20 md:py-32",children:[o(P,{title:e("privacyPolicyTitle"),intro:s(te,{children:[e("privacyWelcome")," ",i.domain||i.name,"."," ",e("privacyIntro")]}),config:i,language:t,primaryColor:a,t:e}),s("div",{className:"space-y-32",children:[s("section",{className:"space-y-8",children:[o("h2",{className:"text-sm font-black uppercase tracking-[0.2em] text-gray-400",children:e("ownerTitle")}),s("div",{className:"bg-gray-50 p-10 rounded-4xl border border-gray-100",children:[o("p",{className:"text-xl font-black text-gray-900",children:i.owners}),s("div",{className:"mt-4 space-y-2 text-gray-600 leading-relaxed font-medium",children:[N(i.addresses).map((r,p)=>o("p",{children:r},p)),i.vatNumbers&&s("p",{className:"mt-2 text-sm",children:[e("vat"),": ",N(i.vatNumbers).join(", ")]}),s("p",{className:"pt-6 font-bold flex items-center gap-2",children:[s("span",{className:"text-gray-400 font-black uppercase text-[10px] tracking-widest",children:[e("email"),":"]}),o("span",{className:"underline decoration-2 underline-offset-4",style:{color:a},children:i.email})]})]})]})]}),s("section",{className:"space-y-12",children:[o("h2",{className:"text-3xl font-black tracking-tight",children:e("dataSummaryTitle")}),s("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[s("div",{className:"p-8 bg-gray-50 rounded-3xl border border-gray-100",children:[o("h3",{className:"font-black text-gray-900 mb-4",children:e("automaticDataTitle")}),s("p",{className:"text-sm text-gray-500 leading-relaxed",children:[e("automaticDataDescription"),i.name,e("automaticDataIncludes")]})]}),s("div",{className:"p-8 bg-gray-50 rounded-3xl border border-gray-100",children:[o("h3",{className:"font-black text-gray-900 mb-4",children:e("providedDataTitle")}),o("p",{className:"text-sm text-gray-500 leading-relaxed",children:e("providedDataDescription")})]})]})]}),s("section",{className:"space-y-12",children:[o("h2",{className:"text-3xl font-black tracking-tight",children:e("treatmentDetailsTitle")}),o("p",{className:"text-gray-600 leading-relaxed text-lg max-w-3xl font-medium",children:e("treatmentDetailsDescription")}),o(ee,{config:i,language:t})]}),o(q,{config:i,primaryColor:a,t:e}),o(A,{config:i,primaryColor:a,t:e}),o(M,{config:i,t:e}),o(G,{config:i,primaryColor:a,t:e}),o(E,{config:i,t:e}),o(U,{config:i,primaryColor:a,t:e}),s("section",{className:"space-y-8",children:[o("h2",{className:"text-3xl font-black tracking-tight",children:e("modeAndPlaceTitle")}),s("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-6",children:[o("p",{children:e("modeDescription")}),o("p",{children:e("placeDescription")})]})]}),s("section",{className:"space-y-12 bg-gray-950 text-white p-12 rounded-[3.5rem] shadow-2xl",children:[o("h2",{className:"text-3xl font-black tracking-tight",children:e("rightsTitle")}),s("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 text-gray-400 text-sm leading-relaxed font-medium",children:[s("ul",{className:"list-disc list-inside space-y-3",children:[o("li",{children:e("right1")}),o("li",{children:e("right2")}),o("li",{children:e("right3")}),o("li",{children:e("right4")})]}),s("ul",{className:"list-disc list-inside space-y-3",children:[o("li",{children:e("right5")}),o("li",{children:e("right6")}),o("li",{children:e("right7")}),o("li",{children:e("right8")})]})]}),s("div",{className:"pt-8 border-t border-white/5 mt-8",children:[o("p",{className:"text-xs text-gray-500 font-bold uppercase tracking-[0.2em]",children:e("howToExerciseRights")}),o("p",{className:"text-sm text-gray-300 mt-2 italic",children:e("exerciseRightsDescription")})]})]}),s("section",{className:"space-y-12",children:[o("h2",{className:"text-3xl font-black tracking-tight",children:e("definitionsTitle")}),s("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-12",children:[o(C,{title:e("personalDataTitle"),description:e("personalDataDescription"),primaryColor:a}),o(C,{title:e("usageDataTitle"),description:e("usageDataDescription"),primaryColor:a}),o(C,{title:e("ownerDefinitionTitle"),description:e("ownerDefinitionDescription"),primaryColor:a}),o(C,{title:e("cookieDefinitionTitle"),description:e("cookieDefinitionDescription"),primaryColor:a})]})]})]}),o(D,{primaryColor:a,t:e})]})})}function C({title:i,description:t,primaryColor:e}){return s("div",{className:"space-y-3",children:[o("h4",{className:"font-black text-gray-900 border-l-2 pl-4",style:{borderColor:e},children:i}),o("p",{className:"text-sm text-gray-500 leading-relaxed font-medium",children:t})]})}import{PreferenceCard as re,ServiceGrid as ne}from"@graffico/legal";import{jsx as c,jsxs as y}from"react/jsx-runtime";var ae={technical:"cookieTypeTechnical",statistical:"cookieTypeStatistical",marketing:"cookieTypeMarketing",profiling:"cookieTypeProfiling"},oe={technical:"#22c55e",statistical:"#3b82f6",marketing:"#f59e0b",profiling:"#ef4444"};function V({config:i,primaryColor:t,t:e}){let a=(i.services??[]).map(r=>z(r));return a.length===0?null:y("section",{className:"space-y-12",children:[y("div",{className:"max-w-3xl",children:[c("h2",{className:"text-3xl font-black tracking-tight mb-6",children:e("cookieTableTitle")}),c("p",{className:"text-gray-600 leading-relaxed font-medium",children:e("cookieTableIntro")})]}),c("div",{className:"space-y-8",children:a.map(r=>{let p=r.cookies??[];return y("div",{className:"rounded-3xl border border-gray-100 overflow-hidden",children:[c("div",{className:"px-6 py-4 bg-gray-50 flex items-center justify-between",children:c("h3",{className:"text-lg font-black border-l-2 pl-3",style:{borderColor:t},children:r.name})}),p.length===0?c("p",{className:"px-6 py-6 text-sm text-gray-500 font-medium italic",children:e("cookieTableNoneDeclared")}):c("div",{className:"overflow-x-auto",children:y("table",{className:"w-full text-left text-sm",children:[c("thead",{className:"bg-white text-[10px] font-black uppercase tracking-widest text-gray-400",children:y("tr",{children:[c("th",{className:"px-6 py-3",children:e("cookieTableName")}),c("th",{className:"px-6 py-3",children:e("cookieTableProvider")}),c("th",{className:"px-6 py-3",children:e("cookieTablePurpose")}),c("th",{className:"px-6 py-3",children:e("cookieTableDuration")}),c("th",{className:"px-6 py-3",children:e("cookieTableType")})]})}),c("tbody",{className:"divide-y divide-gray-100",children:p.map((l,w)=>y("tr",{className:"bg-white",children:[c("td",{className:"px-6 py-4 align-top font-mono text-xs text-gray-900 font-bold",children:l.name}),c("td",{className:"px-6 py-4 align-top text-gray-600 font-medium",children:l.provider}),c("td",{className:"px-6 py-4 align-top text-gray-600 font-medium",children:l.purpose}),c("td",{className:"px-6 py-4 align-top text-gray-600 font-medium whitespace-nowrap",children:l.duration}),c("td",{className:"px-6 py-4 align-top",children:c("span",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest text-white",style:{backgroundColor:oe[l.type]},children:e(ae[l.type])})})]},`${l.name}-${w}`))})]})})]},r.id)})})]})}import{Fragment as le,jsx as d,jsxs as u}from"react/jsx-runtime";function se({config:i}){let t=h(i.language),e=x(i.language),a=k(i);return d("div",{className:"bg-white min-h-screen text-gray-900 font-sans",style:{"--selection-bg":`${a}1a`,"--selection-text":a},children:u("div",{className:"max-w-5xl mx-auto px-6 py-20 md:py-32",children:[d(P,{title:e("cookiePolicyTitle"),intro:u(le,{children:[e("cookieWelcome")," ",i.domain||i.name,"."," ",e("cookieIntro")]}),config:i,language:t,primaryColor:a,t:e}),u("div",{className:"space-y-32",children:[u("section",{className:"bg-gray-50 p-10 rounded-4xl border border-gray-100 space-y-6",children:[d("h2",{className:"text-2xl font-black text-gray-900",children:e("introduction")}),u("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-4",children:[d("p",{children:e("introDescription1")}),d("p",{children:e("introDescription2")})]})]}),u("section",{className:"space-y-16",children:[u("div",{className:"max-w-3xl",children:[d("h2",{className:"text-3xl font-black tracking-tight mb-6",children:e("usageTrackingTitle")}),d("p",{className:"font-black text-lg leading-relaxed",style:{color:a},children:e("usageTrackingDescription")})]}),d(ne,{config:i,language:t})]}),d(V,{config:i,primaryColor:a,t:e}),u("section",{className:"space-y-12",children:[d("h2",{className:"text-3xl font-black tracking-tight",children:e("managePreferencesTitle")}),u("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-6",children:[d("p",{children:e("managePreferencesDescription1")}),d("p",{children:e("managePreferencesDescription2")})]}),d(re,{language:t,primaryColor:a})]}),u("section",{className:"space-y-12 border-t border-gray-100 pt-32",children:[d("h2",{className:"text-3xl font-black tracking-tight",children:e("definitionsTitle")}),u("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-12",children:[d(_,{title:e("trackingToolTitle"),description:e("trackingToolDescription"),primaryColor:a}),d(_,{title:e("dataSubjectTitle"),description:e("dataSubjectDescription"),primaryColor:a})]})]})]}),d(D,{primaryColor:a,t:e})]})})}function _({title:i,description:t,primaryColor:e}){return u("div",{className:"space-y-3",children:[d("h4",{className:"font-black text-gray-900 border-l-2 pl-4",style:{borderColor:e},children:i}),d("p",{className:"text-sm text-gray-500 leading-relaxed font-medium",children:t})]})}export{se as CookiePolicy,O as LegalProvider,ie as PrivacyPolicy};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graffico/legal",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "GDPR compliance solution for React/Next.js",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {