@graffico/legal 0.2.7 → 0.3.1

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/next.js ADDED
@@ -0,0 +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 f(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(f).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 u={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.cspReportUri?i(r,{"report-uri":[t.cspReportUri]}):r,e=[];return e.push({key:t.cspReportOnly?"Content-Security-Policy-Report-Only":"Content-Security-Policy",value:n(o)}),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({...u,...t.permissionsPolicy??{}})}),e.push({key:"Cross-Origin-Opener-Policy",value:"same-origin"}),e}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(`
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
@@ -20,6 +20,35 @@ type ServiceReference = string | LegalService;
20
20
  * Posizione del toggle floating per riaprire le preferenze.
21
21
  */
22
22
  type TogglePosition = "bottom-right" | "bottom-left" | "top-right" | "top-left";
23
+ /**
24
+ * Responsabile esterno / destinatario dei dati personali da dichiarare in policy
25
+ * ex art. 13.1.e GDPR.
26
+ */
27
+ interface Processor {
28
+ name: string;
29
+ purpose: string;
30
+ country: string;
31
+ /** Base giuridica del trasferimento extra-UE (es. "DPF", "SCC 2021/914"). */
32
+ transferBasis?: string;
33
+ privacyUrl?: string;
34
+ }
35
+ /**
36
+ * Mappa retention per categoria/finalità. Valori liberi (es. "90d", "14m", "2y").
37
+ */
38
+ interface RetentionMap {
39
+ contactForms?: string;
40
+ analytics?: string;
41
+ marketing?: string;
42
+ [key: string]: string | undefined;
43
+ }
44
+ /**
45
+ * Recapiti del DPO, renderizzati in policy solo se presenti.
46
+ */
47
+ interface DpoInfo {
48
+ name: string;
49
+ email: string;
50
+ phone?: string;
51
+ }
23
52
  /**
24
53
  * Configurazione del titolare e branding mostrati nelle policy.
25
54
  */
@@ -36,9 +65,32 @@ interface CompanyConfig {
36
65
  theme?: "light" | "dark";
37
66
  primaryColor?: string;
38
67
  language?: "it" | "en";
68
+ /**
69
+ * Versione dichiarata delle policy. Variare questa stringa invalida i
70
+ * consensi precedenti e ripropone il banner (art. 7.1 GDPR — consenso
71
+ * "informato" rispetto alla nuova finalità).
72
+ */
73
+ policyVersion?: string;
74
+ /**
75
+ * Destinatari/responsabili esterni dichiarati nella privacy policy.
76
+ * Render automatico nella sezione "Trasferimenti e destinatari".
77
+ */
78
+ processors?: Processor[];
79
+ /**
80
+ * Retention per categoria di dato. Render automatico in policy.
81
+ */
82
+ retention?: RetentionMap;
83
+ /**
84
+ * Dati di contatto del DPO, se nominato (art. 37 GDPR).
85
+ */
86
+ dpo?: DpoInfo;
39
87
  }
40
88
  /**
41
- * Stato di consenso persistito per categoria, con prova legale (id + timestamp).
89
+ * Origine della scelta di consenso salvata. Utile per audit.
90
+ */
91
+ type ConsentSource = "banner" | "modal" | "gpc-auto" | "api";
92
+ /**
93
+ * Stato di consenso persistito per categoria, con prova legale e TTL.
42
94
  */
43
95
  interface ConsentState {
44
96
  necessary: boolean;
@@ -46,6 +98,12 @@ interface ConsentState {
46
98
  marketing: boolean;
47
99
  consentId?: string;
48
100
  timestamp?: string;
101
+ /** Epoch ms oltre cui il consenso scade e va riproposto (Garante: max 6 mesi). */
102
+ expiresAt?: number;
103
+ /** Versione delle policy al momento del consenso. */
104
+ policyVersion?: string;
105
+ /** Da quale interazione è stata espressa la scelta. */
106
+ source?: ConsentSource;
49
107
  }
50
108
  /**
51
109
  * Codice lingua supportato dalla libreria.
package/dist/server.js CHANGED
@@ -1 +1 @@
1
- import{LegalConfigProvider as k,ConsentBanner as C}from"@graffico/legal";import{jsx as N,jsxs as S}from"react/jsx-runtime";function w({children:i,config:r}){return S(k,{config:r,children:[i,N(C,{})]})}var m={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",legalProofDescription:"Questi identificativi fungono da prova legale del tuo consenso secondo le linee guida GDPR. Puoi richiederne la cancellazione in qualsiasi momento.",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.",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",legalProofDescription:"These identifiers serve as legal proof of your consent according to GDPR guidelines. You can request their deletion at any time.",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.",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 A={it:"it-IT",en:"en-US"},T=new Map;function p(i){return i&&i.toLowerCase().startsWith("en")?"en":"it"}function I(i){let r=T.get(i);if(r)return r;let e=m[i]??m.it,o=m.it,l=c=>e[c]??o[c];return T.set(i,l),l}var g=i=>I(p(i)),L=i=>A[i];function b(i,r){return new Date(i).toLocaleDateString(L(r),{day:"numeric",month:"long",year:"numeric"})}var R="#2c5282",u=i=>i.primaryColor??R,x=i=>i.domain||i.name,v=i=>Array.isArray(i)?i:[i];import{ServiceGrid as M}from"@graffico/legal";import{jsx as P,jsxs as U}from"react/jsx-runtime";function f({primaryColor:i,t:r}){return P("footer",{className:"mt-40 pt-12 border-t border-gray-100 text-center",children:U("p",{className:"text-xs text-gray-400 font-bold uppercase tracking-widest",children:[r("generatedBy")," ",P("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 d,jsxs as y}from"react/jsx-runtime";function h({title:i,intro:r,config:e,language:o,primaryColor:l,t:c}){return y("header",{className:"mb-20",children:[y("div",{className:"flex items-center gap-3 mb-6",children:[d("span",{className:"px-3 py-1 text-white text-[10px] font-black uppercase tracking-widest rounded-full",style:{backgroundColor:l},children:c("legal")}),d("div",{className:"h-0.5 w-12 bg-gray-100"})]}),y("h1",{className:"text-4xl md:text-6xl font-black tracking-tight mb-8",children:[i," ",d("br",{}),d("span",{className:"underline decoration-[8px] underline-offset-8",style:{textDecorationColor:`${l}1a`,color:l},children:x(e)})]}),d("p",{className:"text-xl text-gray-500 leading-relaxed max-w-2xl font-medium",children:r}),y("p",{className:"text-xs text-gray-400 font-bold uppercase tracking-widest mt-8",children:[c("lastUpdated"),":"," ",e.lastUpdated??b(new Date,o)]})]})}import{Fragment as W,jsx as t,jsxs as a}from"react/jsx-runtime";function q({config:i}){let r=p(i.language),e=g(i.language),o=u(i);return t("div",{className:"bg-white min-h-screen text-gray-900 font-sans",style:{"--selection-bg":`${o}1a`,"--selection-text":o,"--primary-color":o},children:a("div",{className:"max-w-5xl mx-auto px-6 py-20 md:py-32",children:[t(h,{title:e("privacyPolicyTitle"),intro:a(W,{children:[e("privacyWelcome")," ",i.domain||i.name,"."," ",e("privacyIntro")]}),config:i,language:r,primaryColor:o,t:e}),a("div",{className:"space-y-32",children:[a("section",{className:"space-y-8",children:[t("h2",{className:"text-sm font-black uppercase tracking-[0.2em] text-gray-400",children:e("ownerTitle")}),a("div",{className:"bg-gray-50 p-10 rounded-4xl border border-gray-100",children:[t("p",{className:"text-xl font-black text-gray-900",children:i.owners}),a("div",{className:"mt-4 space-y-2 text-gray-600 leading-relaxed font-medium",children:[v(i.addresses).map((l,c)=>t("p",{children:l},c)),i.vatNumbers&&a("p",{className:"mt-2 text-sm",children:[e("vat"),": ",v(i.vatNumbers).join(", ")]}),a("p",{className:"pt-6 font-bold flex items-center gap-2",children:[a("span",{className:"text-gray-400 font-black uppercase text-[10px] tracking-widest",children:[e("email"),":"]}),t("span",{className:"underline decoration-2 underline-offset-4",style:{color:o},children:i.email})]})]})]})]}),a("section",{className:"space-y-12",children:[t("h2",{className:"text-3xl font-black tracking-tight",children:e("dataSummaryTitle")}),a("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[a("div",{className:"p-8 bg-gray-50 rounded-3xl border border-gray-100",children:[t("h3",{className:"font-black text-gray-900 mb-4",children:e("automaticDataTitle")}),a("p",{className:"text-sm text-gray-500 leading-relaxed",children:[e("automaticDataDescription"),i.name,e("automaticDataIncludes")]})]}),a("div",{className:"p-8 bg-gray-50 rounded-3xl border border-gray-100",children:[t("h3",{className:"font-black text-gray-900 mb-4",children:e("providedDataTitle")}),t("p",{className:"text-sm text-gray-500 leading-relaxed",children:e("providedDataDescription")})]})]})]}),a("section",{className:"space-y-12",children:[t("h2",{className:"text-3xl font-black tracking-tight",children:e("treatmentDetailsTitle")}),t("p",{className:"text-gray-600 leading-relaxed text-lg max-w-3xl font-medium",children:e("treatmentDetailsDescription")}),t(M,{config:i,language:r})]}),a("section",{className:"space-y-8",children:[t("h2",{className:"text-3xl font-black tracking-tight",children:e("modeAndPlaceTitle")}),a("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-6",children:[t("p",{children:e("modeDescription")}),t("p",{children:e("placeDescription")})]})]}),a("section",{className:"space-y-12 bg-gray-950 text-white p-12 rounded-[3.5rem] shadow-2xl",children:[t("h2",{className:"text-3xl font-black tracking-tight",children:e("rightsTitle")}),a("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 text-gray-400 text-sm leading-relaxed font-medium",children:[a("ul",{className:"list-disc list-inside space-y-3",children:[t("li",{children:e("right1")}),t("li",{children:e("right2")}),t("li",{children:e("right3")}),t("li",{children:e("right4")})]}),a("ul",{className:"list-disc list-inside space-y-3",children:[t("li",{children:e("right5")}),t("li",{children:e("right6")}),t("li",{children:e("right7")}),t("li",{children:e("right8")})]})]}),a("div",{className:"pt-8 border-t border-white/5 mt-8",children:[t("p",{className:"text-xs text-gray-500 font-bold uppercase tracking-[0.2em]",children:e("howToExerciseRights")}),t("p",{className:"text-sm text-gray-300 mt-2 italic",children:e("exerciseRightsDescription")})]})]}),a("section",{className:"space-y-12",children:[t("h2",{className:"text-3xl font-black tracking-tight",children:e("definitionsTitle")}),a("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-12",children:[t(D,{title:e("personalDataTitle"),description:e("personalDataDescription"),primaryColor:o}),t(D,{title:e("usageDataTitle"),description:e("usageDataDescription"),primaryColor:o}),t(D,{title:e("ownerDefinitionTitle"),description:e("ownerDefinitionDescription"),primaryColor:o}),t(D,{title:e("cookieDefinitionTitle"),description:e("cookieDefinitionDescription"),primaryColor:o})]})]})]}),t(f,{primaryColor:o,t:e})]})})}function D({title:i,description:r,primaryColor:e}){return a("div",{className:"space-y-3",children:[t("h4",{className:"font-black text-gray-900 border-l-2 pl-4",style:{borderColor:e},children:i}),t("p",{className:"text-sm text-gray-500 leading-relaxed font-medium",children:r})]})}import{PreferenceCard as F,ServiceGrid as B}from"@graffico/legal";import{Fragment as O,jsx as n,jsxs as s}from"react/jsx-runtime";function G({config:i}){let r=p(i.language),e=g(i.language),o=u(i);return n("div",{className:"bg-white min-h-screen text-gray-900 font-sans",style:{"--selection-bg":`${o}1a`,"--selection-text":o},children:s("div",{className:"max-w-5xl mx-auto px-6 py-20 md:py-32",children:[n(h,{title:e("cookiePolicyTitle"),intro:s(O,{children:[e("cookieWelcome")," ",i.domain||i.name,"."," ",e("cookieIntro")]}),config:i,language:r,primaryColor:o,t:e}),s("div",{className:"space-y-32",children:[s("section",{className:"bg-gray-50 p-10 rounded-4xl border border-gray-100 space-y-6",children:[n("h2",{className:"text-2xl font-black text-gray-900",children:e("introduction")}),s("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-4",children:[n("p",{children:e("introDescription1")}),n("p",{children:e("introDescription2")})]})]}),s("section",{className:"space-y-16",children:[s("div",{className:"max-w-3xl",children:[n("h2",{className:"text-3xl font-black tracking-tight mb-6",children:e("usageTrackingTitle")}),n("p",{className:"font-black text-lg leading-relaxed",style:{color:o},children:e("usageTrackingDescription")})]}),n(B,{config:i,language:r})]}),s("section",{className:"space-y-12",children:[n("h2",{className:"text-3xl font-black tracking-tight",children:e("managePreferencesTitle")}),s("div",{className:"prose prose-gray max-w-none text-gray-600 font-medium leading-relaxed space-y-6",children:[n("p",{children:e("managePreferencesDescription1")}),n("p",{children:e("managePreferencesDescription2")})]}),n(F,{language:r,primaryColor:o})]}),s("section",{className:"space-y-12 border-t border-gray-100 pt-32",children:[n("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:[n(z,{title:e("trackingToolTitle"),description:e("trackingToolDescription"),primaryColor:o}),n(z,{title:e("dataSubjectTitle"),description:e("dataSubjectDescription"),primaryColor:o})]})]})]}),n(f,{primaryColor:o,t:e})]})})}function z({title:i,description:r,primaryColor:e}){return s("div",{className:"space-y-3",children:[n("h4",{className:"font-black text-gray-900 border-l-2 pl-4",style:{borderColor:e},children:i}),n("p",{className:"text-sm text-gray-500 leading-relaxed font-medium",children:r})]})}export{G as CookiePolicy,w as LegalProvider,q as PrivacyPolicy};
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};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graffico/legal",
3
- "version": "0.2.7",
4
- "description": "Premium GDPR compliance solution for React/Next.js",
3
+ "version": "0.3.1",
4
+ "description": "GDPR compliance solution for React/Next.js",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
7
7
  "type": "git",
@@ -23,6 +23,11 @@
23
23
  "types": "./dist/server.d.ts",
24
24
  "import": "./dist/server.js"
25
25
  },
26
+ "./next": {
27
+ "types": "./dist/next.d.ts",
28
+ "import": "./dist/next.js",
29
+ "require": "./dist/next.cjs"
30
+ },
26
31
  "./style.css": "./dist/index.css"
27
32
  },
28
33
  "files": [
@@ -51,10 +56,17 @@
51
56
  "release": "pnpm build && npm publish"
52
57
  },
53
58
  "peerDependencies": {
59
+ "@emailjs/browser": ">=4",
54
60
  "react": ">=18",
55
61
  "react-dom": ">=18"
56
62
  },
63
+ "peerDependenciesMeta": {
64
+ "@emailjs/browser": {
65
+ "optional": true
66
+ }
67
+ },
57
68
  "devDependencies": {
69
+ "@emailjs/browser": "^4.4.1",
58
70
  "@types/react": "^19",
59
71
  "@types/react-dom": "^19",
60
72
  "esbuild-plugin-preserve-directives": "^0.0.11",