@tantainnovative/ndpr-toolkit 2.1.2 → 2.4.0
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/README.md +73 -2
- package/dist/{breach-6z0r-KuE.d.mts → breach-B_-6lDqS.d.mts} +1 -1
- package/dist/{breach-BFfnvtRk.d.ts → breach-CzXqSsaY.d.ts} +1 -1
- package/dist/{breach-BtFbDOmV.d.mts → breach-Eu9byel8.d.mts} +1 -1
- package/dist/{breach-BtFbDOmV.d.ts → breach-Eu9byel8.d.ts} +1 -1
- package/dist/breach-ouXoVTWs.d.ts +438 -0
- package/dist/breach-yRiyyc4n.d.mts +438 -0
- package/dist/breach.d.mts +5 -275
- package/dist/breach.d.ts +5 -275
- package/dist/breach.js +1 -1
- package/dist/breach.mjs +1 -1
- package/dist/chunk-2XFAV267.mjs +2 -0
- package/dist/chunk-32UIWTGD.js +72 -0
- package/dist/chunk-4JUDKBA2.mjs +7 -0
- package/dist/chunk-4VVARDN2.mjs +2 -0
- package/dist/chunk-5RSOLEEP.js +63 -0
- package/dist/chunk-AYKLAEOU.mjs +2 -0
- package/dist/chunk-BGHQTZAC.js +94 -0
- package/dist/chunk-BZTTQS4A.mjs +7 -0
- package/dist/chunk-CAB7O3GR.mjs +63 -0
- package/dist/chunk-CL53OI3I.js +7 -0
- package/dist/chunk-E64TU6IU.js +2 -0
- package/dist/chunk-EKVTLHBQ.js +2 -0
- package/dist/chunk-ELKEZEV5.mjs +2 -0
- package/dist/chunk-EPF7J2FK.js +3 -0
- package/dist/chunk-ER7X6E36.js +2 -0
- package/dist/chunk-FXTZDKDC.mjs +3 -0
- package/dist/chunk-IBEKLDBY.mjs +2 -0
- package/dist/chunk-ILCNDOBU.js +2 -0
- package/dist/chunk-K3GMTMQ6.js +2 -0
- package/dist/chunk-MJGOLP5M.js +2 -0
- package/dist/chunk-NW4A3JW6.mjs +2 -0
- package/dist/chunk-P3PULLYP.mjs +2 -0
- package/dist/chunk-SKJCQKFL.mjs +94 -0
- package/dist/chunk-TCJCE6WN.js +2 -0
- package/dist/chunk-UZ5EZOA7.js +2 -0
- package/dist/chunk-WSHSHIIM.mjs +2 -0
- package/dist/chunk-XMYUYQH7.mjs +72 -0
- package/dist/chunk-ZNTMZ6NM.js +7 -0
- package/dist/consent-audit-BdByjYlM.d.mts +65 -0
- package/dist/consent-audit-DhbfMR0n.d.ts +65 -0
- package/dist/consent.d.mts +120 -7
- package/dist/consent.d.ts +120 -7
- package/dist/consent.js +1 -1
- package/dist/consent.mjs +1 -1
- package/dist/core.d.mts +62 -12
- package/dist/core.d.ts +62 -12
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{cross-border-BrIy1ieh.d.ts → cross-border-BMcqLvjC.d.mts} +1 -1
- package/dist/{cross-border-BrIy1ieh.d.mts → cross-border-BMcqLvjC.d.ts} +1 -1
- package/dist/cross-border-entry-BrWVPly6.d.ts +91 -0
- package/dist/cross-border-entry-cCTvpwnT.d.mts +91 -0
- package/dist/cross-border.d.mts +4 -58
- package/dist/cross-border.d.ts +4 -58
- package/dist/cross-border.js +1 -1
- package/dist/cross-border.mjs +1 -1
- package/dist/{dpia-vWfE_9bO.d.mts → dpia-5OQVA1R_.d.mts} +1 -1
- package/dist/{dpia-vWfE_9bO.d.ts → dpia-5OQVA1R_.d.ts} +1 -1
- package/dist/{dpia-fdtTd2DI.d.ts → dpia-B0Pok5us.d.ts} +1 -1
- package/dist/{dpia-B9ZZJG5a.d.mts → dpia-CUfOmzvX.d.mts} +1 -1
- package/dist/dpia.d.mts +119 -5
- package/dist/dpia.d.ts +119 -5
- package/dist/dpia.js +1 -1
- package/dist/dpia.mjs +1 -1
- package/dist/dsr-190YpijW.d.ts +307 -0
- package/dist/dsr-BTT-Xd7H.d.mts +307 -0
- package/dist/{dsr-pQzQ3H1O.d.mts → dsr-Cm9lzWG7.d.mts} +1 -1
- package/dist/{dsr-pQzQ3H1O.d.ts → dsr-Cm9lzWG7.d.ts} +1 -1
- package/dist/{dsr-whPkiI0_.d.mts → dsr-D_eTNc4S.d.mts} +1 -1
- package/dist/{dsr-jq5NUEdz.d.ts → dsr-pNtVb1BK.d.ts} +1 -1
- package/dist/dsr.d.mts +5 -192
- package/dist/dsr.d.ts +5 -192
- package/dist/dsr.js +1 -1
- package/dist/dsr.mjs +1 -1
- package/dist/hooks.d.mts +14 -14
- package/dist/hooks.d.ts +14 -14
- package/dist/hooks.js +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/index.d.mts +28 -27
- package/dist/index.d.ts +28 -27
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{lawful-basis-v04AhbK2.d.ts → lawful-basis-BEyI0kGg.d.ts} +2 -2
- package/dist/{lawful-basis-D-oXFizg.d.mts → lawful-basis-C2eGaoHM.d.mts} +2 -2
- package/dist/{lawful-basis-CWtvDG1x.d.mts → lawful-basis-Cv1VmDLn.d.mts} +1 -1
- package/dist/{lawful-basis-CWtvDG1x.d.ts → lawful-basis-Cv1VmDLn.d.ts} +1 -1
- package/dist/lawful-basis-entry-15qjKcNO.d.ts +87 -0
- package/dist/lawful-basis-entry-CxZrofwG.d.mts +87 -0
- package/dist/lawful-basis.d.mts +5 -55
- package/dist/lawful-basis.d.ts +5 -55
- package/dist/lawful-basis.js +1 -1
- package/dist/lawful-basis.mjs +1 -1
- package/dist/policy-D2_jh5-T.d.ts +293 -0
- package/dist/policy-E0fXZkda.d.mts +293 -0
- package/dist/policy-templates-CIKcV0i1.d.ts +36 -0
- package/dist/policy-templates-DMsPwOSZ.d.mts +36 -0
- package/dist/policy.d.mts +5 -195
- package/dist/policy.d.ts +5 -195
- package/dist/policy.js +1 -1
- package/dist/policy.mjs +1 -1
- package/dist/{ropa-Rb4dsFSz.d.mts → ropa-DP7pPPql.d.mts} +2 -2
- package/dist/{ropa-BebGfqKQ.d.ts → ropa-Li6UlL5H.d.ts} +2 -2
- package/dist/ropa-entry-B0D7X1GV.d.ts +80 -0
- package/dist/ropa-entry-DiOThOc2.d.mts +80 -0
- package/dist/ropa.d.mts +5 -45
- package/dist/ropa.d.ts +5 -45
- package/dist/ropa.js +1 -1
- package/dist/ropa.mjs +1 -1
- package/dist/styles.css +40 -28
- package/dist/styles.d.ts +1 -0
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.mjs +1 -1
- package/dist/{useBreach-WrZzJilM.d.mts → useBreach-BBSoIcZO.d.mts} +1 -1
- package/dist/{useBreach-vrh_XMpI.d.ts → useBreach-lFLbSyAN.d.ts} +1 -1
- package/dist/{useCrossBorderTransfer-TVnY8_UX.d.mts → useCrossBorderTransfer-BZVFCXfr.d.mts} +1 -1
- package/dist/{useCrossBorderTransfer-D4FQYfFt.d.ts → useCrossBorderTransfer-DmtACeqW.d.ts} +1 -1
- package/dist/{useDPIA-DFDHBLSa.d.ts → useDPIA-DBsg2yZx.d.ts} +1 -1
- package/dist/{useDPIA-FqPofFaV.d.mts → useDPIA-Da7-Q_yW.d.mts} +1 -1
- package/dist/{useDSR-DAqqOBXb.d.ts → useDSR-CYI7WCXr.d.ts} +1 -1
- package/dist/{useDSR-OXM5Q9rf.d.mts → useDSR-YYZ6FYFs.d.mts} +1 -1
- package/dist/{usePrivacyPolicy-CfySfBLS.d.ts → useDefaultPrivacyPolicy-B7kTHbZh.d.ts} +39 -2
- package/dist/{usePrivacyPolicy-Dit2sFuV.d.mts → useDefaultPrivacyPolicy-CUluF_ic.d.mts} +39 -2
- package/dist/{useLawfulBasis-RILM_xsx.d.ts → useLawfulBasis-CCWF9waR.d.ts} +2 -2
- package/dist/{useLawfulBasis-DNQ8YszQ.d.mts → useLawfulBasis-CpWuHtyh.d.mts} +2 -2
- package/dist/{useROPA-Bcs6cRdi.d.ts → useROPA-BhJ3kvHp.d.ts} +1 -1
- package/dist/{useROPA-nmcSiUYv.d.mts → useROPA-DLFdjkxP.d.mts} +1 -1
- package/package.json +30 -21
- package/dist/chunk-2XHD22J7.mjs +0 -7
- package/dist/chunk-4DKT6IB6.js +0 -94
- package/dist/chunk-6JFTAYXV.mjs +0 -2
- package/dist/chunk-6JVYYLS7.js +0 -2
- package/dist/chunk-6SGG6WPA.mjs +0 -2
- package/dist/chunk-AQEGDEQM.js +0 -7
- package/dist/chunk-C2IJWCZQ.mjs +0 -2
- package/dist/chunk-DB3JH4DS.mjs +0 -2
- package/dist/chunk-FFW7RUAG.mjs +0 -94
- package/dist/chunk-FK3CSFLJ.js +0 -2
- package/dist/chunk-IWUUVRLJ.js +0 -2
- package/dist/chunk-JUN6YPLL.mjs +0 -72
- package/dist/chunk-L3FKTBGV.js +0 -72
- package/dist/chunk-PM7CMTMB.js +0 -4
- package/dist/chunk-RB26MIRI.js +0 -2
- package/dist/chunk-RHWW5FDP.js +0 -16
- package/dist/chunk-SLNMKGQ2.mjs +0 -2
- package/dist/chunk-UUWVBENC.js +0 -2
- package/dist/chunk-UYP64PV7.mjs +0 -4
- package/dist/chunk-XMKA6GVK.mjs +0 -16
- package/dist/consent-DCc5zjXI.d.mts +0 -24
- package/dist/consent-DLWb5ota.d.ts +0 -24
- package/dist/privacy-9FcJceMr.d.mts +0 -15
- package/dist/privacy-BXz7O2ej.d.ts +0 -15
package/dist/chunk-FFW7RUAG.mjs
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-UYP64PV7.mjs';import {d,b,a}from'./chunk-WWT2ZSNU.mjs';import t,{useState,useEffect}from'react';var ae=({sections:g,variables:E,onGenerate:v,title:T="NDPA Privacy Policy Generator",description:D="Generate an NDPA-compliant privacy policy for your organization.",className:q="",buttonClassName:k="",generateButtonText:V="Generate Policy",showPreview:$=true,allowEditing:A=true})=>{let[w,O]=useState(g),[N,S]=useState(E),[x,y]=useState("sections"),[f,W]=useState(""),[P,h]=useState(""),[j,H]=useState(false),[u,U]=useState({});useEffect(()=>{O(g);},[g]),useEffect(()=>{S(E);},[E]);let n=a$1=>{O(d=>d.map(s=>s.id===a$1?b(a({},s),{included:!s.included}):s));},l=(a$1,d)=>{S(s=>s.map(m=>m.id===a$1?b(a({},m),{value:d}):m)),u[a$1]&&U(s=>{let m=a({},s);return delete m[a$1],m});},c=()=>{let a={},d=true;return N.forEach(s=>{s.required&&!s.value&&(a[s.id]=`${s.name} is required`,d=false);}),U(a),d},p=()=>{if(!c()){y("variables");return}let a=w.filter(m=>m.included),d=Object.fromEntries(N.map(m=>[m.name,m.value])),s="";a.forEach(m=>{s+=`## ${m.title}
|
|
2
|
-
|
|
3
|
-
`,s+=a$1(m.template,d),s+=`
|
|
4
|
-
|
|
5
|
-
`;}),W(s),h(s),H(true),y("preview");},L=()=>{v({sections:w,variables:N,content:A?P:f});},M=()=>t.createElement("div",{className:"space-y-4"},t.createElement("h3",{className:"text-lg font-medium mb-4"},"Select Policy Sections"),w.map(a=>t.createElement("div",{key:a.id,className:"border border-gray-200 dark:border-gray-700 rounded-md p-4"},t.createElement("div",{className:"flex items-start"},t.createElement("div",{className:"flex items-center h-5"},t.createElement("input",{id:`section-${a.id}`,type:"checkbox",checked:a.included,onChange:()=>n(a.id),disabled:a.required,className:"w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"})),t.createElement("div",{className:"ml-3 text-sm"},t.createElement("label",{htmlFor:`section-${a.id}`,className:"font-medium text-gray-900 dark:text-white"},a.title," ",a.required&&t.createElement("span",{className:"text-red-500"},"*")),a.description&&t.createElement("p",{className:"text-gray-500 dark:text-gray-400 mt-1"},a.description))))),t.createElement("div",{className:"mt-6"},t.createElement("button",{onClick:()=>y("variables"),className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${k}`},"Next: Fill Variables"))),B=()=>{let a={};return N.forEach(d=>{let s=d.id.split(".")[0];a[s]||(a[s]=[]),a[s].push(d);}),t.createElement("div",null,t.createElement("h3",{className:"text-lg font-medium mb-4"},"Fill Policy Variables"),t.createElement("div",{className:"space-y-6"},Object.entries(a).map(([d,s])=>{let m=w.find(e=>e.id===d);return m&&!m.included?null:t.createElement("div",{key:d,className:"border border-gray-200 dark:border-gray-700 rounded-md p-4"},t.createElement("h4",{className:"font-medium text-lg mb-3"},m?m.title:"General Information"),t.createElement("div",{className:"space-y-4"},s.map(e=>t.createElement("div",{key:e.id},t.createElement("label",{htmlFor:`var-${e.id}`,className:"block text-sm font-medium mb-1"},e.name," ",e.required&&t.createElement("span",{className:"text-red-500"},"*")),e.description&&t.createElement("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-2"},e.description),e.inputType==="textarea"?t.createElement("textarea",{id:`var-${e.id}`,value:e.value,onChange:i=>l(e.id,i.target.value),rows:4,className:`w-full px-3 py-2 border ${u[e.id]?"border-red-500 focus:ring-red-500":"border-gray-300 dark:border-gray-600 focus:ring-blue-500"} rounded-md focus:outline-none focus:ring-2`,required:e.required}):e.inputType==="select"&&e.options?t.createElement("select",{id:`var-${e.id}`,value:e.value,onChange:i=>l(e.id,i.target.value),className:`w-full px-3 py-2 border ${u[e.id]?"border-red-500 focus:ring-red-500":"border-gray-300 dark:border-gray-600 focus:ring-blue-500"} rounded-md focus:outline-none focus:ring-2`,required:e.required},t.createElement("option",{value:""},"Select an option"),e.options.map(i=>t.createElement("option",{key:i,value:i},i))):t.createElement("input",{id:`var-${e.id}`,type:e.inputType,value:e.value,onChange:i=>l(e.id,i.target.value),className:`w-full px-3 py-2 border ${u[e.id]?"border-red-500 focus:ring-red-500":"border-gray-300 dark:border-gray-600 focus:ring-blue-500"} rounded-md focus:outline-none focus:ring-2`,required:e.required}),u[e.id]&&t.createElement("p",{className:"mt-1 text-sm text-red-600 dark:text-red-500"},u[e.id])))))})),t.createElement("div",{className:"mt-6 flex space-x-4"},t.createElement("button",{onClick:()=>y("sections"),className:`px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600 ${k}`},"Back to Sections"),t.createElement("button",{onClick:p,className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${k}`},V)))},Y=()=>t.createElement("div",null,t.createElement("h3",{className:"text-lg font-medium mb-4"},"Preview Generated Policy"),A?t.createElement("div",{className:"mb-4"},t.createElement("label",{htmlFor:"policy-content",className:"block text-sm font-medium mb-1"},"Edit Policy Content"),t.createElement("textarea",{id:"policy-content",value:P,onChange:a=>h(a.target.value),rows:20,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-sm"})):t.createElement("div",{className:"bg-gray-50 dark:bg-gray-700 p-4 rounded-md mb-4"},t.createElement("div",{className:"prose dark:prose-invert max-w-none"},f.split(`
|
|
6
|
-
`).map((a,d)=>a.startsWith("## ")?t.createElement("h2",{key:d,className:"text-xl font-bold mt-6 mb-3"},a.substring(3)):a.startsWith("### ")?t.createElement("h3",{key:d,className:"text-lg font-bold mt-4 mb-2"},a.substring(4)):a===""?t.createElement("br",{key:d}):t.createElement("p",{key:d,className:"mb-2"},a)))),t.createElement("div",{className:"mt-6 flex space-x-4"},t.createElement("button",{onClick:()=>y("variables"),className:`px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600 ${k}`},"Back to Variables"),t.createElement("button",{onClick:L,className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 ${k}`},"Save Policy"))),z=()=>{switch(x){case "sections":return M();case "variables":return B();case "preview":return Y();default:return M()}};return t.createElement("div",{className:`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${q}`},t.createElement("h2",{className:"text-xl font-bold mb-2"},T),t.createElement("p",{className:"mb-6 text-gray-600 dark:text-gray-300"},D),t.createElement("div",{className:"mb-8"},t.createElement("ol",{className:"flex items-center w-full"},t.createElement("li",{className:`flex w-full items-center ${x==="sections"?"text-blue-600 dark:text-blue-500":"text-gray-500 dark:text-gray-400"} after:content-[''] after:w-full after:h-1 after:border-b after:border-gray-200 after:border-1 after:hidden sm:after:inline-block after:mx-6 xl:after:mx-10`},t.createElement("span",{className:`flex items-center justify-center w-8 h-8 ${x==="sections"?"bg-blue-100 dark:bg-blue-800":"bg-gray-100 dark:bg-gray-700"} rounded-full shrink-0`},"1"),t.createElement("span",{className:"hidden sm:inline-flex sm:ml-2"},"Sections")),t.createElement("li",{className:`flex w-full items-center ${x==="variables"?"text-blue-600 dark:text-blue-500":"text-gray-500 dark:text-gray-400"} after:content-[''] after:w-full after:h-1 after:border-b after:border-gray-200 after:border-1 after:hidden sm:after:inline-block after:mx-6 xl:after:mx-10`},t.createElement("span",{className:`flex items-center justify-center w-8 h-8 ${x==="variables"?"bg-blue-100 dark:bg-blue-800":"bg-gray-100 dark:bg-gray-700"} rounded-full shrink-0`},"2"),t.createElement("span",{className:"hidden sm:inline-flex sm:ml-2"},"Variables")),t.createElement("li",{className:`flex items-center ${x==="preview"?"text-blue-600 dark:text-blue-500":"text-gray-500 dark:text-gray-400"}`},t.createElement("span",{className:`flex items-center justify-center w-8 h-8 ${x==="preview"?"bg-blue-100 dark:bg-blue-800":"bg-gray-100 dark:bg-gray-700"} rounded-full shrink-0`},"3"),t.createElement("span",{className:"hidden sm:inline-flex sm:ml-2"},"Preview")))),t.createElement("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-md"},t.createElement("h3",{className:"text-sm font-bold text-blue-800 dark:text-blue-200 mb-2"},"NDPA Compliance Notice"),t.createElement("p",{className:"text-blue-700 dark:text-blue-300 text-sm"},"This tool helps you generate a privacy policy that aligns with the Nigeria Data Protection Act (NDPA) 2023. While we strive to ensure compliance, we recommend having the final policy reviewed by a legal professional familiar with NDPA requirements.")),z())};var ne=({content:g,sections:E,variables:v,onExport:T,onEdit:D,title:q="Privacy Policy Preview",description:k="Preview your NDPA-compliant privacy policy before exporting.",className:V="",buttonClassName:$="",showExportOptions:A=true,showEditButton:w=true,showTableOfContents:O=true,showMetadata:N=true,organizationName:S,lastUpdated:x=new Date})=>{let[y,f]=useState("preview"),P=(()=>{let n=g.split(`
|
|
7
|
-
`),l=[];return n.forEach(c=>{if(c.startsWith("## ")){let p=c.substring(3).trim(),L=p.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:L,title:p,level:2});}else if(c.startsWith("### ")){let p=c.substring(4).trim(),L=p.toLowerCase().replace(/[^a-z0-9]+/g,"-");l.push({id:L,title:p,level:3});}}),l})(),h=n=>{if(T)T(n);else if(n==="markdown"){let l=document.createElement("a"),c=new Blob([g],{type:"text/markdown"});l.href=URL.createObjectURL(c),l.download=`privacy-policy-${new Date().toISOString().split("T")[0]}.md`,document.body.appendChild(l),l.click(),document.body.removeChild(l);}},j=()=>!O||P.length===0?null:t.createElement("div",{className:"mb-6 p-4 bg-gray-50 dark:bg-gray-700 rounded-md"},t.createElement("h3",{className:"text-lg font-medium mb-3"},"Table of Contents"),t.createElement("ul",{className:"space-y-1"},P.map((n,l)=>t.createElement("li",{key:l,style:{marginLeft:`${(n.level-2)*1.5}rem`}},t.createElement("a",{href:`#${n.id}`,className:"text-blue-600 dark:text-blue-400 hover:underline"},n.title))))),H=()=>N?t.createElement("div",{className:"mb-6"},t.createElement("h1",{className:"text-2xl font-bold mb-2"},S?`${S} Privacy Policy`:"Privacy Policy"),t.createElement("p",{className:"text-sm text-gray-500 dark:text-gray-400"},"Last Updated: ",x.toLocaleDateString())):null,u=()=>t.createElement("div",{className:"prose dark:prose-invert max-w-none"},g.split(`
|
|
8
|
-
`).map((n,l)=>{if(n.startsWith("## ")){let c=n.substring(3).trim(),p=c.toLowerCase().replace(/[^a-z0-9]+/g,"-");return t.createElement("h2",{id:p,key:l,className:"text-xl font-bold mt-6 mb-3"},c)}else if(n.startsWith("### ")){let c=n.substring(4).trim(),p=c.toLowerCase().replace(/[^a-z0-9]+/g,"-");return t.createElement("h3",{id:p,key:l,className:"text-lg font-bold mt-4 mb-2"},c)}else return n===""?t.createElement("br",{key:l}):t.createElement("p",{key:l,className:"mb-2"},n)})),U=()=>A?t.createElement("div",{className:"mt-6"},t.createElement("h3",{className:"text-lg font-medium mb-3"},"Export Options"),t.createElement("div",{className:"flex flex-wrap gap-3"},t.createElement("button",{onClick:()=>h("pdf"),className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${$}`},"Export as PDF"),t.createElement("button",{onClick:()=>h("docx"),className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${$}`},"Export as DOCX"),t.createElement("button",{onClick:()=>h("html"),className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${$}`},"Export as HTML"),t.createElement("button",{onClick:()=>h("markdown"),className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${$}`},"Export as Markdown"))):null;return t.createElement("div",{className:`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${V}`},t.createElement("div",{className:"flex justify-between items-start mb-6"},t.createElement("div",null,t.createElement("h2",{className:"text-xl font-bold mb-2"},q),t.createElement("p",{className:"text-gray-600 dark:text-gray-300"},k)),w&&D&&t.createElement("button",{onClick:D,className:`px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600 ${$}`},"Edit Policy")),t.createElement("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-md"},t.createElement("h3",{className:"text-sm font-bold text-blue-800 dark:text-blue-200 mb-2"},"NDPA Compliance Notice"),t.createElement("p",{className:"text-blue-700 dark:text-blue-300 text-sm"},"This privacy policy has been generated to align with the Nigeria Data Protection Act (NDPA) 2023. We recommend having the final policy reviewed by a legal professional familiar with NDPA requirements before publishing it on your website or sharing it with your users.")),t.createElement("div",{className:"mb-6 border-b border-gray-200 dark:border-gray-700"},t.createElement("ul",{className:"flex flex-wrap -mb-px"},t.createElement("li",{className:"mr-2"},t.createElement("button",{onClick:()=>f("preview"),className:`inline-block p-4 ${y==="preview"?"text-blue-600 border-b-2 border-blue-600 dark:text-blue-500 dark:border-blue-500":"text-gray-500 hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"}`},"Preview")),t.createElement("li",{className:"mr-2"},t.createElement("button",{onClick:()=>f("markdown"),className:`inline-block p-4 ${y==="markdown"?"text-blue-600 border-b-2 border-blue-600 dark:text-blue-500 dark:border-blue-500":"text-gray-500 hover:text-gray-600 hover:border-gray-300 dark:text-gray-400 dark:hover:text-gray-300"}`},"Markdown")))),t.createElement("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-md"},y==="preview"?t.createElement("div",null,H(),j(),t.createElement("div",{className:"bg-gray-50 dark:bg-gray-700 p-6 rounded-md"},u())):t.createElement("div",null,t.createElement("pre",{className:"bg-gray-50 dark:bg-gray-700 p-4 rounded-md overflow-auto whitespace-pre-wrap font-mono text-sm text-gray-800 dark:text-gray-200"},g))),U())};var ce=({content:g,title:E="Privacy Policy",organizationName:v,lastUpdated:T=new Date,onExportComplete:D,componentTitle:q="Export Privacy Policy",description:k="Export your NDPA-compliant privacy policy in various formats.",className:V="",buttonClassName:$="",showExportHistory:A=true,includeComplianceNotice:w=true,includeLogo:O=false,logoUrl:N,customStyles:S})=>{let[x,y]=useState([]),[f,W]=useState("pdf"),[P,h]=useState(false),[j,H]=useState(null),[u,U]=useState(""),[n,l]=useState(""),[c,p]=useState(""),[L,M]=useState(false),B=e=>{let i=new Date().toISOString().split("T")[0];return `${v?v.toLowerCase().replace(/[^a-z0-9]+/g,"-"):"privacy-policy"}-privacy-policy-${i}.${e.toLowerCase()}`},Y=e=>u?u.endsWith(`.${e.toLowerCase()}`)?u:`${u}.${e.toLowerCase()}`:B(e),z=()=>{let e=v?`${v} ${E}`:E,i=T.toLocaleDateString(),b=`<!DOCTYPE html>
|
|
9
|
-
<html lang="en">
|
|
10
|
-
<head>
|
|
11
|
-
<meta charset="UTF-8">
|
|
12
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
13
|
-
<title>${e}</title>
|
|
14
|
-
<style>
|
|
15
|
-
body {
|
|
16
|
-
font-family: Arial, sans-serif;
|
|
17
|
-
line-height: 1.6;
|
|
18
|
-
color: #333;
|
|
19
|
-
max-width: 800px;
|
|
20
|
-
margin: 0 auto;
|
|
21
|
-
padding: 20px;
|
|
22
|
-
}
|
|
23
|
-
h1 {
|
|
24
|
-
font-size: 24px;
|
|
25
|
-
margin-bottom: 10px;
|
|
26
|
-
}
|
|
27
|
-
h2 {
|
|
28
|
-
font-size: 20px;
|
|
29
|
-
margin-top: 30px;
|
|
30
|
-
margin-bottom: 10px;
|
|
31
|
-
border-bottom: 1px solid #eee;
|
|
32
|
-
padding-bottom: 5px;
|
|
33
|
-
}
|
|
34
|
-
h3 {
|
|
35
|
-
font-size: 18px;
|
|
36
|
-
margin-top: 20px;
|
|
37
|
-
margin-bottom: 10px;
|
|
38
|
-
}
|
|
39
|
-
p {
|
|
40
|
-
margin-bottom: 15px;
|
|
41
|
-
}
|
|
42
|
-
.header {
|
|
43
|
-
text-align: center;
|
|
44
|
-
margin-bottom: 30px;
|
|
45
|
-
}
|
|
46
|
-
.footer {
|
|
47
|
-
margin-top: 50px;
|
|
48
|
-
text-align: center;
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
color: #666;
|
|
51
|
-
border-top: 1px solid #eee;
|
|
52
|
-
padding-top: 20px;
|
|
53
|
-
}
|
|
54
|
-
.logo {
|
|
55
|
-
max-width: 200px;
|
|
56
|
-
margin-bottom: 20px;
|
|
57
|
-
}
|
|
58
|
-
.last-updated {
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
color: #666;
|
|
61
|
-
margin-bottom: 30px;
|
|
62
|
-
}
|
|
63
|
-
.compliance-notice {
|
|
64
|
-
background-color: #f8f9fa;
|
|
65
|
-
border: 1px solid #e9ecef;
|
|
66
|
-
padding: 15px;
|
|
67
|
-
margin-bottom: 30px;
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
}
|
|
70
|
-
${S||""}
|
|
71
|
-
</style>
|
|
72
|
-
</head>
|
|
73
|
-
<body>
|
|
74
|
-
<div class="header">
|
|
75
|
-
${O&&N?`<img src="${N}" alt="${v||"Company"} Logo" class="logo">`:""}
|
|
76
|
-
${n?`<div class="custom-header">${n}</div>`:""}
|
|
77
|
-
<h1>${e}</h1>
|
|
78
|
-
<div class="last-updated">Last Updated: ${i}</div>
|
|
79
|
-
</div>`;w&&(b+=`
|
|
80
|
-
<div class="compliance-notice">
|
|
81
|
-
<strong>NDPA Compliance Notice:</strong> This privacy policy has been created to comply with the Nigeria Data Protection Act (NDPA) 2023.
|
|
82
|
-
It outlines how we collect, use, disclose, and protect your personal information in accordance with NDPA requirements.
|
|
83
|
-
</div>`);let I=g.replace(/^## (.*?)$/gm,"<h2>$1</h2>").replace(/^### (.*?)$/gm,"<h3>$1</h3>").replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br>");return b+=`
|
|
84
|
-
<div class="content">
|
|
85
|
-
<p>${I}</p>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<div class="footer">
|
|
89
|
-
${c?`<div class="custom-footer">${c}</div>`:""}
|
|
90
|
-
<p>© ${new Date().getFullYear()} ${v||"Company"}. All rights reserved.</p>
|
|
91
|
-
</div>
|
|
92
|
-
</body>
|
|
93
|
-
</html>`,b},a=()=>d(null,null,function*(){h(true),H(null);try{let e=f.toLowerCase(),i="",b;switch(e){case "pdf":let _=z();b=new Blob([_],{type:"text/html"}),i=URL.createObjectURL(b);break;case "docx":b=new Blob([g],{type:"text/plain"}),i=URL.createObjectURL(b);break;case "html":let ee=z();b=new Blob([ee],{type:"text/html"}),i=URL.createObjectURL(b);break;case "markdown":default:b=new Blob([g],{type:"text/markdown"}),i=URL.createObjectURL(b);break}let I=Y(e),G=document.createElement("a");G.href=i,G.download=I,document.body.appendChild(G),G.click(),document.body.removeChild(G);let R={id:`export_${Date.now()}`,format:e,timestamp:Date.now(),url:i,filename:I};y(_=>[R,..._]),D&&D(e,i);}catch(e){console.error("Export error:",e),H("An error occurred during export. Please try again.");}finally{h(false);}}),d$1=()=>t.createElement("div",{className:"mb-6"},t.createElement("label",{htmlFor:"export-format",className:"block text-sm font-medium mb-1"},"Export Format"),t.createElement("select",{id:"export-format",value:f,onChange:i=>W(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"},[{value:"pdf",label:"PDF Document (.pdf)"},{value:"docx",label:"Word Document (.docx)"},{value:"html",label:"Web Page (.html)"},{value:"markdown",label:"Markdown (.md)"}].map(i=>t.createElement("option",{key:i.value,value:i.value},i.label)))),s=()=>L?t.createElement("div",{className:"mb-6 space-y-4 border border-gray-200 dark:border-gray-700 rounded-md p-4"},t.createElement("div",{className:"flex justify-between items-center"},t.createElement("h3",{className:"text-md font-medium"},"Advanced Export Options"),t.createElement("button",{type:"button",onClick:()=>M(false),className:"text-blue-600 dark:text-blue-400 text-sm"},"Hide Advanced Options")),t.createElement("div",null,t.createElement("label",{htmlFor:"custom-filename",className:"block text-sm font-medium mb-1"},"Custom Filename"),t.createElement("input",{type:"text",id:"custom-filename",value:u,onChange:e=>U(e.target.value),placeholder:B(f),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"}),t.createElement("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Leave blank to use the default filename format.")),t.createElement("div",null,t.createElement("label",{htmlFor:"custom-header",className:"block text-sm font-medium mb-1"},"Custom Header HTML (for HTML/PDF exports)"),t.createElement("textarea",{id:"custom-header",value:n,onChange:e=>l(e.target.value),rows:3,placeholder:"<div>Custom header content</div>",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})),t.createElement("div",null,t.createElement("label",{htmlFor:"custom-footer",className:"block text-sm font-medium mb-1"},"Custom Footer HTML (for HTML/PDF exports)"),t.createElement("textarea",{id:"custom-footer",value:c,onChange:e=>p(e.target.value),rows:3,placeholder:"<div>Custom footer content</div>",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})),t.createElement("div",{className:"flex items-start"},t.createElement("div",{className:"flex items-center h-5"},t.createElement("input",{id:"include-compliance-notice",type:"checkbox",checked:w,onChange:e=>M(e.target.checked),className:"w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"})),t.createElement("div",{className:"ml-3 text-sm"},t.createElement("label",{htmlFor:"include-compliance-notice",className:"font-medium text-gray-900 dark:text-white"},"Include NDPA Compliance Notice"),t.createElement("p",{className:"text-gray-500 dark:text-gray-400"},"Adds a notice explaining that this policy complies with NDPA requirements.")))):t.createElement("button",{type:"button",onClick:()=>M(true),className:"text-blue-600 dark:text-blue-400 text-sm mb-6"},"Show Advanced Options"),m=()=>!A||x.length===0?null:t.createElement("div",{className:"mt-6"},t.createElement("h3",{className:"text-lg font-medium mb-3"},"Export History"),t.createElement("div",{className:"bg-gray-50 dark:bg-gray-700 rounded-md overflow-hidden"},t.createElement("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-gray-600"},t.createElement("thead",{className:"bg-gray-100 dark:bg-gray-800"},t.createElement("tr",null,t.createElement("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider"},"Date"),t.createElement("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider"},"Format"),t.createElement("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider"},"Filename"),t.createElement("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider"},"Actions"))),t.createElement("tbody",{className:"bg-white dark:bg-gray-700 divide-y divide-gray-200 dark:divide-gray-600"},x.map(e=>t.createElement("tr",{key:e.id},t.createElement("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300"},new Date(e.timestamp).toLocaleString()),t.createElement("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300"},e.format.toUpperCase()),t.createElement("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-300"},e.filename),t.createElement("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium"},t.createElement("a",{href:e.url,download:e.filename,className:"text-blue-600 dark:text-blue-400 hover:text-blue-900 dark:hover:text-blue-300 mr-4"},"Download"))))))));return t.createElement("div",{className:`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${V}`},t.createElement("h2",{className:"text-xl font-bold mb-2"},q),t.createElement("p",{className:"mb-6 text-gray-600 dark:text-gray-300"},k),d$1(),s(),t.createElement("div",{className:"mb-6"},t.createElement("button",{onClick:a,disabled:P,className:`px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 ${$} ${P?"opacity-70 cursor-not-allowed":""}`},P?"Exporting...":`Export as ${f.toUpperCase()}`),j&&t.createElement("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500"},j)),t.createElement("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-md"},t.createElement("h3",{className:"text-sm font-bold text-blue-800 dark:text-blue-200 mb-2"},"Export Tips"),t.createElement("ul",{className:"text-blue-700 dark:text-blue-300 text-sm list-disc list-inside space-y-1"},t.createElement("li",null,"PDF format is recommended for printing or sharing with stakeholders."),t.createElement("li",null,"HTML format is ideal for publishing on your website."),t.createElement("li",null,"DOCX format allows for further editing in Microsoft Word or similar applications."),t.createElement("li",null,"Markdown format is useful for version control systems or technical documentation."))),m())};export{ae as a,ne as b,ce as c};//# sourceMappingURL=chunk-FFW7RUAG.mjs.map
|
|
94
|
-
//# sourceMappingURL=chunk-FFW7RUAG.mjs.map
|
package/dist/chunk-FK3CSFLJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkMQFZHA2D_js=require('./chunk-MQFZHA2D.js'),n=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var n__default=/*#__PURE__*/_interopDefault(n);var F=({options:g,onSave:m,title:b="We Value Your Privacy",description:S="We use cookies and similar technologies to provide our services and enhance your experience.",acceptAllButtonText:k="Accept All",rejectAllButtonText:C="Reject All",customizeButtonText:y="Customize",saveButtonText:l="Save Preferences",position:d="bottom",version:h="1.0",show:u,storageKey:x="ndpr_consent",className:N="",buttonClassName:p="",primaryButtonClassName:w="",secondaryButtonClassName:o=""})=>{let[t,c]=n.useState(false),[f,v]=n.useState(false),[$,O]=n.useState({});n.useEffect(()=>{let s={};if(g.forEach(i=>{s[i.id]=i.defaultValue||false;}),O(s),u===void 0){let i=localStorage.getItem(x);c(!i);}else c(u);},[g,u,x]);let e=()=>{let s={};g.forEach(i=>{s[i.id]=true;}),P(s);},a=()=>{let s={};g.forEach(i=>{s[i.id]=i.required||false;}),P(s);},D=(s,i)=>{O(V=>chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},V),{[s]:i}));},M=()=>{P($);},P=s=>{let i={consents:s,timestamp:Date.now(),version:h,method:f?"customize":"banner",hasInteracted:true};localStorage.setItem(x,JSON.stringify(i)),m(i),c(false),v(false);};return t?n__default.default.createElement("div",{className:`fixed z-50 bg-white dark:bg-gray-800 shadow-lg p-4 border border-gray-200 dark:border-gray-700 ${d==="top"?"top-0 left-0 right-0":d==="center"?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 max-w-lg":"bottom-0 left-0 right-0"} ${N}`,role:"dialog","aria-labelledby":"consent-banner-title"},n__default.default.createElement("div",{className:"max-w-6xl mx-auto"},n__default.default.createElement("h2",{id:"consent-banner-title",className:"text-lg font-bold mb-2"},b),n__default.default.createElement("p",{className:"mb-4"},S),f?n__default.default.createElement("div",{className:"mb-4"},n__default.default.createElement("div",{className:"space-y-3"},g.map(s=>n__default.default.createElement("div",{key:s.id,className:"flex items-start"},n__default.default.createElement("div",{className:"flex items-center h-5"},n__default.default.createElement("input",{id:`consent-${s.id}`,type:"checkbox",checked:$[s.id]||false,onChange:i=>D(s.id,i.target.checked),disabled:s.required,className:"h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"})),n__default.default.createElement("div",{className:"ml-3 text-sm"},n__default.default.createElement("label",{htmlFor:`consent-${s.id}`,className:"font-medium"},s.label," ",s.required&&n__default.default.createElement("span",{className:"text-red-500"},"*")),n__default.default.createElement("p",{className:"text-gray-500 dark:text-gray-400"},s.description))))),n__default.default.createElement("div",{className:"mt-4 flex flex-wrap gap-2"},n__default.default.createElement("button",{onClick:M,className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${p} ${w}`},l),n__default.default.createElement("button",{onClick:()=>v(false),className:`px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600 ${p} ${o}`},"Back"))):n__default.default.createElement("div",{className:"flex flex-wrap gap-2"},n__default.default.createElement("button",{onClick:e,className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${p} ${w}`},k),n__default.default.createElement("button",{onClick:a,className:`px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600 ${p} ${o}`},C),n__default.default.createElement("button",{onClick:()=>v(true),className:`px-4 py-2 bg-transparent text-gray-800 dark:text-white hover:underline ${p}`},y)),n__default.default.createElement("div",{className:"mt-2 text-xs text-gray-500 dark:text-gray-400"},'By clicking "Accept All", you agree to the use of ALL cookies. Visit our Cookie Policy to learn more.'))):null};var G=({options:g,settings:m,onSave:b,title:S="Manage Your Privacy Settings",description:k="Update your consent preferences at any time. Required cookies cannot be disabled as they are necessary for the website to function.",saveButtonText:C="Save Preferences",resetButtonText:y="Reset to Defaults",version:l="1.0",className:d="",buttonClassName:h="",primaryButtonClassName:u="",secondaryButtonClassName:x="",showSuccessMessage:N=true,successMessage:p="Your preferences have been saved.",successMessageDuration:w=3e3})=>{let[o,t]=n.useState({}),[c,f]=n.useState(false);n.useEffect(()=>{if(m&&m.consents)t(m.consents);else {let e={};g.forEach(a=>{e[a.id]=a.defaultValue||false;}),t(e);}},[g,m]);let v=(e,a)=>{t(D=>chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},D),{[e]:a}));},$=()=>{let e={consents:o,timestamp:Date.now(),version:l,method:"manager",hasInteracted:true};b(e),N&&(f(true),setTimeout(()=>{f(false);},w));},O=()=>{let e={};g.forEach(a=>{e[a.id]=a.defaultValue||false;}),t(e);};return n__default.default.createElement("div",{className:`bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 ${d}`},n__default.default.createElement("h2",{className:"text-xl font-bold mb-2"},S),n__default.default.createElement("p",{className:"mb-6 text-gray-600 dark:text-gray-300"},k),n__default.default.createElement("div",{className:"space-y-6"},g.map(e=>n__default.default.createElement("div",{key:e.id,className:"border-b border-gray-200 dark:border-gray-700 pb-4 last:border-0"},n__default.default.createElement("div",{className:"flex items-start justify-between"},n__default.default.createElement("div",null,n__default.default.createElement("h3",{className:"font-medium text-gray-900 dark:text-white"},e.label),n__default.default.createElement("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-1"},e.description)),n__default.default.createElement("div",{className:"ml-4 flex-shrink-0"},n__default.default.createElement("label",{className:"relative inline-flex items-center cursor-pointer"},n__default.default.createElement("input",{type:"checkbox",className:"sr-only peer",checked:o[e.id]||false,onChange:a=>v(e.id,a.target.checked),disabled:e.required}),n__default.default.createElement("div",{className:`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600 ${e.required?"opacity-60":""}`}),n__default.default.createElement("span",{className:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},o[e.id]?"Enabled":"Disabled",e.required&&n__default.default.createElement("span",{className:"text-xs text-red-500 ml-1"},"(Required)")))))))),c&&n__default.default.createElement("div",{className:"mt-4 p-3 bg-green-50 dark:bg-green-900/20 text-green-800 dark:text-green-200 rounded-md"},p),n__default.default.createElement("div",{className:"mt-6 flex flex-wrap gap-3"},n__default.default.createElement("button",{onClick:$,className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${h} ${u}`},C),n__default.default.createElement("button",{onClick:O,className:`px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600 ${h} ${x}`},y)),n__default.default.createElement("div",{className:"mt-4 text-xs text-gray-500 dark:text-gray-400"},n__default.default.createElement("p",null,"Last updated: ",m?new Date(m.timestamp).toLocaleString():"Never"),n__default.default.createElement("p",null,"Version: ",l)))};var X=({settings:g,storageOptions:m={},onLoad:b,onSave:S,autoSave:k=true,autoLoad:C=true,children:y})=>{let{storageKey:l="ndpr_consent",storageType:d="localStorage",cookieOptions:h={}}=m,[u,x]=n.useState(false);n.useEffect(()=>{C&&!u&&N();},[C,u]),n.useEffect(()=>{k&&u&&p(g);},[g,k,u]);let N=()=>{let o=null;try{if(d==="localStorage"&&typeof window!="undefined"){let t=localStorage.getItem(l);t&&(o=JSON.parse(t));}else if(d==="sessionStorage"&&typeof window!="undefined"){let t=sessionStorage.getItem(l);t&&(o=JSON.parse(t));}else if(d==="cookie"&&typeof document!="undefined"){let c=document.cookie.split(";").find(f=>f.trim().startsWith(`${l}=`));if(c){let f=c.split("=")[1];o=JSON.parse(decodeURIComponent(f));}}x(!0),b&&b(o);}catch(t){console.error("Error loading consent settings:",t),x(true),b&&b(null);}return o},p=o=>{try{let t=JSON.stringify(o);if(d==="localStorage"&&typeof window!="undefined")localStorage.setItem(l,t);else if(d==="sessionStorage"&&typeof window!="undefined")sessionStorage.setItem(l,t);else if(d==="cookie"&&typeof document!="undefined"){let{domain:c,path:f="/",expires:v=365,secure:$=!0,sameSite:O="Lax"}=h,e=new Date;e.setDate(e.getDate()+v);let a=`${l}=${encodeURIComponent(t)}; path=${f}; expires=${e.toUTCString()}`;c&&(a+=`; domain=${c}`),$&&(a+="; secure"),a+=`; samesite=${O}`,document.cookie=a;}return S&&S(o),!0}catch(t){return console.error("Error saving consent settings:",t),false}},w=()=>{try{if(d==="localStorage"&&typeof window!="undefined")localStorage.removeItem(l);else if(d==="sessionStorage"&&typeof window!="undefined")sessionStorage.removeItem(l);else if(d==="cookie"&&typeof document!="undefined"){let{domain:o,path:t="/"}=h,c=`${l}=; path=${t}; expires=Thu, 01 Jan 1970 00:00:00 GMT`;o&&(c+=`; domain=${o}`),document.cookie=c;}return !0}catch(o){return console.error("Error clearing consent settings:",o),false}};return typeof y=="function"?n__default.default.createElement(n__default.default.Fragment,null,y({loadSettings:N,saveSettings:p,clearSettings:w,loaded:u})):n__default.default.createElement(n__default.default.Fragment,null,y)};exports.a=F;exports.b=G;exports.c=X;//# sourceMappingURL=chunk-FK3CSFLJ.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-FK3CSFLJ.js.map
|
package/dist/chunk-IWUUVRLJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkPM7CMTMB_js=require('./chunk-PM7CMTMB.js'),chunkMQFZHA2D_js=require('./chunk-MQFZHA2D.js'),react=require('react');function U({templates:m,initialPolicy:g,storageKey:d="ndpr_privacy_policy",useLocalStorage:f=true,onGenerate:v}){let[r,u]=react.useState(g||null),[a,y]=react.useState(null),[c,P]=react.useState({name:"",website:"",privacyEmail:"",address:"",privacyPhone:"",dpoName:"",dpoEmail:"",industry:""});react.useEffect(()=>{if(f&&typeof window!="undefined"&&!g)try{let i=localStorage.getItem(d);if(i){let{policy:n,template:e,organizationInfo:t}=JSON.parse(i);if(n&&u(n),e){let s=m.find(E=>E.id===e.id);s&&y(s);}t&&P(t);}}catch(i){console.error("Error loading privacy policy data:",i);}},[d,f,g,m]),react.useEffect(()=>{if(f&&typeof window!="undefined")try{localStorage.setItem(d,JSON.stringify({policy:r,template:a,organizationInfo:c}));}catch(i){console.error("Error saving privacy policy data:",i);}},[r,a,c,d,f]);let I=i=>{let n=m.find(s=>s.id===i);if(!n)return false;y(n);n.sections.map(s=>chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},s),{customContent:void 0}));return Object.keys(n.variables).forEach(s=>{n.variables[s].defaultValue||"";}),true},h=i=>{P(n=>chunkMQFZHA2D_js.a(chunkMQFZHA2D_js.a({},n),i));},V=(i,n)=>{a&&(r?u(e=>e&&chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{sections:e.sections.map(t=>t.id===i?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},t),{included:n}):t)})):y(e=>e&&chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{sections:e.sections.map(t=>t.id===i?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},t),{included:n}):t)})));},w=(i,n)=>{a&&(r?u(e=>e&&chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{sections:e.sections.map(t=>t.id===i?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},t),{customContent:n}):t)})):y(e=>e&&chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{sections:e.sections.map(t=>t.id===i?chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},t),{customContent:n}):t)})));},O=(i,n)=>{r&&u(e=>e&&chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{variableValues:chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e.variableValues),{[i]:n})}));},z=()=>"policy_"+Date.now()+"_"+Math.random().toString(36).substr(2,9);return {policy:r,selectedTemplate:a,organizationInfo:c,selectTemplate:I,updateOrganizationInfo:h,toggleSection:V,updateSectionContent:w,updateVariableValue:O,generatePolicy:()=>{if(!a)throw new Error("No template selected");let i=Date.now(),n={id:(r==null?void 0:r.id)||z(),title:`Privacy Policy for ${c.name}`,templateId:a.id,organizationInfo:c,sections:a.sections.map(e=>{var t;return chunkMQFZHA2D_js.b(chunkMQFZHA2D_js.a({},e),{customContent:(t=r==null?void 0:r.sections.find(s=>s.id===e.id))==null?void 0:t.customContent})}),variableValues:(r==null?void 0:r.variableValues)||{},effectiveDate:i,lastUpdated:i,version:"1.0"};return u(n),v&&v(n),n},getPolicyText:()=>{if(!r)return {fullText:"",sectionTexts:{},missingVariables:[]};let i=chunkPM7CMTMB_js.a(r.sections,r.organizationInfo);return typeof i=="string"?{fullText:i,sectionTexts:{full:i},missingVariables:[]}:i},resetPolicy:()=>{u(null),y(null),P({name:"",website:"",privacyEmail:"",address:"",privacyPhone:"",dpoName:"",dpoEmail:"",industry:""}),f&&typeof window!="undefined"&&localStorage.removeItem(d);},isValid:()=>{let i=[];if(a||i.push("No template selected"),c.name||i.push("Organization name is required"),c.website||i.push("Organization website is required"),c.privacyEmail||i.push("Privacy contact email is required"),a){let n=a.sections.filter(t=>t.required),e=(r==null?void 0:r.sections.filter(t=>t.included))||[];n.forEach(t=>{e.some(s=>s.id===t.id)||i.push(`Required section "${t.title}" must be included`);});}return a&&r&&Object.entries(a.variables).forEach(([n,e])=>{e.required&&!r.variableValues[n]&&i.push(`Required variable "${e.name}" must have a value`);}),{valid:i.length===0,errors:i}}}}exports.a=U;//# sourceMappingURL=chunk-IWUUVRLJ.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-IWUUVRLJ.js.map
|
package/dist/chunk-JUN6YPLL.mjs
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-RGYK4VAY.mjs';import {a as a$1,b}from'./chunk-WWT2ZSNU.mjs';import e,{useState,useEffect}from'react';var Ce=({categories:l,onSubmit:u,title:v="Report a Data Breach",formDescription:Q="Use this form to report a suspected or confirmed data breach. All fields marked with * are required.",submitButtonText:X="Submit Report",className:_="",buttonClassName:R="",showConfirmation:ee=true,confirmationMessage:J="Your breach report has been submitted successfully. The data protection team has been notified.",allowAttachments:te=true,maxAttachments:S=5,maxFileSize:V=5*1024*1024,allowedFileTypes:F=[".pdf",".jpg",".jpeg",".png",".doc",".docx",".xls",".xlsx",".txt"]})=>{let[b$1,T]=useState(""),[w,q]=useState(""),[C,E]=useState(""),[D,U]=useState(""),[P,M]=useState(""),[j,se]=useState(""),[G,K]=useState(""),[Z,x]=useState(""),[g,f]=useState(""),[c,h]=useState([]),[re,L]=useState(""),[Y,d]=useState([]),[N,ae]=useState(""),[ie,a]=useState("ongoing"),[n,o]=useState(""),[p,I]=useState([]),[$,de]=useState(false),[m,A]=useState({}),pe=i=>{let y=i.target.value;L(y);let O=y.split(",").map(W=>W.trim()).filter(Boolean);h(O);},le=i=>{d(y=>y.includes(i)?y.filter(O=>O!==i):[...y,i]);},ue=i=>{var ge;let y=i.target.files;if(!y)return;let O=[],W={};if(p.length+y.length>S){W.attachments=`Maximum of ${S} files allowed`,A(H=>a$1(a$1({},H),W));return}for(let H=0;H<y.length;H++){let me=y[H];if(me.size>V){W.attachments=`File ${me.name} exceeds the maximum size of ${V/(1024*1024)}MB`;continue}let be="."+((ge=me.name.split(".").pop())==null?void 0:ge.toLowerCase());if(!F.includes(be)){W.attachments=`File type ${be} is not allowed`;continue}O.push(me);}Object.keys(W).length>0?A(H=>a$1(a$1({},H),W)):(I(H=>[...H,...O]),A(H=>b(a$1({},H),{attachments:""})));},ce=i=>{I(y=>y.filter((O,W)=>W!==i));},ve=()=>{let i={};return b$1.trim()||(i.breachTitle="Breach title is required"),w.trim()||(i.description="Description is required"),C||(i.category="Category is required"),D||(i.discoveredAt="Discovery date is required"),j.trim()||(i.reporterName="Reporter name is required"),G.trim()?/\S+@\S+\.\S+/.test(G)||(i.reporterEmail="Reporter email is invalid"):i.reporterEmail="Reporter email is required",Z.trim()||(i.reporterDepartment="Reporter department is required"),c.length===0&&(i.affectedSystems="At least one affected system is required"),Y.length===0&&(i.dataTypes="At least one data type is required"),N&&isNaN(Number(N))&&(i.estimatedAffectedSubjects="Estimated affected subjects must be a number"),A(i),Object.keys(i).length===0},xe=i=>{if(i.preventDefault(),!ve())return;let y={title:b$1,description:w,category:C,discoveredAt:new Date(D).getTime(),occurredAt:P?new Date(P).getTime():void 0,reportedAt:Date.now(),reporter:{name:j,email:G,department:Z,phone:g||void 0},affectedSystems:c,dataTypes:Y,estimatedAffectedSubjects:N?Number(N):void 0,status:ie,initialActions:n||void 0,attachments:p.map(O=>({name:O.name,type:O.type,size:O.size,file:O}))};u(y),ee&&de(true);};if($)return e.createElement("div",{className:`p-4 bg-green-50 dark:bg-green-900/20 rounded-md ${_}`},e.createElement("h2",{className:"text-lg font-bold text-green-800 dark:text-green-200 mb-2"},"Report Submitted"),e.createElement("p",{className:"text-green-700 dark:text-green-300"},J),e.createElement("div",{className:"mt-4 p-4 bg-yellow-50 dark:bg-yellow-900/20 rounded-md"},e.createElement("h3",{className:"text-sm font-bold text-yellow-800 dark:text-yellow-200 mb-2"},"Important: Next Steps"),e.createElement("p",{className:"text-yellow-700 dark:text-yellow-300 text-sm"},"Under the NDPA (Section 40), data breaches that pose a risk to the rights and freedoms of data subjects must be reported to the NDPC within 72 hours of discovery. The data protection team will assess this breach and determine if notification is required.")),e.createElement("button",{onClick:()=>de(false),className:`mt-4 px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 ${R}`},"Report Another Breach"));let ye=[{id:"personal",label:"Personal Information (names, addresses)"},{id:"contact",label:"Contact Information (email, phone)"},{id:"financial",label:"Financial Information (bank details, payment info)"},{id:"health",label:"Health Information"},{id:"identification",label:"Identification Documents (ID cards, passports)"},{id:"login",label:"Login Credentials"},{id:"biometric",label:"Biometric Data"},{id:"children",label:"Children's Data"},{id:"location",label:"Location Data"},{id:"communications",label:"Communications Content"}];return e.createElement("div",{className:`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${_}`},e.createElement("h2",{className:"text-xl font-bold mb-2"},v),e.createElement("p",{className:"mb-6 text-gray-600 dark:text-gray-300"},Q),e.createElement("form",{onSubmit:xe},e.createElement("div",{className:"space-y-6"},e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Breach Information"),e.createElement("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2"},e.createElement("div",null,e.createElement("label",{htmlFor:"breachTitle",className:"block text-sm font-medium mb-1"},"Breach Title/Summary ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("input",{type:"text",id:"breachTitle",value:b$1,onChange:i=>T(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}),m.breachTitle&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.breachTitle)),e.createElement("div",null,e.createElement("label",{htmlFor:"category",className:"block text-sm font-medium mb-1"},"Breach Category ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("select",{id:"category",value:C,onChange:i=>E(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true},e.createElement("option",{value:""},"Select a category"),l.map(i=>e.createElement("option",{key:i.id,value:i.id},i.name))),m.category&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.category)),e.createElement("div",{className:"md:col-span-2"},e.createElement("label",{htmlFor:"description",className:"block text-sm font-medium mb-1"},"Detailed Description ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("textarea",{id:"description",value:w,onChange:i=>q(i.target.value),rows:4,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}),m.description&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.description)),e.createElement("div",null,e.createElement("label",{htmlFor:"discoveredAt",className:"block text-sm font-medium mb-1"},"Date Discovered ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("input",{type:"datetime-local",id:"discoveredAt",value:D,onChange:i=>U(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}),m.discoveredAt&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.discoveredAt)),e.createElement("div",null,e.createElement("label",{htmlFor:"occurredAt",className:"block text-sm font-medium mb-1"},"Date Occurred (if known)"),e.createElement("input",{type:"datetime-local",id:"occurredAt",value:P,onChange:i=>M(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})))),e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Reporter Information"),e.createElement("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2"},e.createElement("div",null,e.createElement("label",{htmlFor:"reporterName",className:"block text-sm font-medium mb-1"},"Your Name ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("input",{type:"text",id:"reporterName",value:j,onChange:i=>se(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}),m.reporterName&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.reporterName)),e.createElement("div",null,e.createElement("label",{htmlFor:"reporterEmail",className:"block text-sm font-medium mb-1"},"Your Email ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("input",{type:"email",id:"reporterEmail",value:G,onChange:i=>K(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}),m.reporterEmail&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.reporterEmail)),e.createElement("div",null,e.createElement("label",{htmlFor:"reporterDepartment",className:"block text-sm font-medium mb-1"},"Your Department ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("input",{type:"text",id:"reporterDepartment",value:Z,onChange:i=>x(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}),m.reporterDepartment&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.reporterDepartment)),e.createElement("div",null,e.createElement("label",{htmlFor:"reporterPhone",className:"block text-sm font-medium mb-1"},"Your Phone Number (Optional)"),e.createElement("input",{type:"tel",id:"reporterPhone",value:g,onChange:i=>f(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})))),e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Impact Information"),e.createElement("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2"},e.createElement("div",null,e.createElement("label",{htmlFor:"affectedSystems",className:"block text-sm font-medium mb-1"},"Affected Systems/Applications ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("input",{type:"text",id:"affectedSystems",value:re,onChange:pe,placeholder:"e.g. CRM, Email Server, Website (comma separated)",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}),m.affectedSystems&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.affectedSystems)),e.createElement("div",null,e.createElement("label",{htmlFor:"estimatedAffectedSubjects",className:"block text-sm font-medium mb-1"},"Estimated Number of Affected Data Subjects"),e.createElement("input",{type:"text",id:"estimatedAffectedSubjects",value:N,onChange:i=>ae(i.target.value),placeholder:"e.g. 100",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"}),m.estimatedAffectedSubjects&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.estimatedAffectedSubjects)),e.createElement("div",{className:"md:col-span-2"},e.createElement("label",{className:"block text-sm font-medium mb-1"},"Types of Data Involved ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2"},ye.map(i=>e.createElement("div",{key:i.id,className:"flex items-center"},e.createElement("input",{type:"checkbox",id:`dataType_${i.id}`,checked:Y.includes(i.id),onChange:()=>le(i.id),className:"h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"}),e.createElement("label",{htmlFor:`dataType_${i.id}`,className:"ml-2 text-sm text-gray-700 dark:text-gray-300"},i.label)))),m.dataTypes&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.dataTypes)),e.createElement("div",null,e.createElement("label",{htmlFor:"status",className:"block text-sm font-medium mb-1"},"Current Status ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("select",{id:"status",value:ie,onChange:i=>a(i.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true},e.createElement("option",{value:"ongoing"},"Ongoing (breach is still active)"),e.createElement("option",{value:"contained"},"Contained (breach is stopped but not resolved)"),e.createElement("option",{value:"resolved"},"Resolved (breach is fully addressed)"))),e.createElement("div",{className:"md:col-span-2"},e.createElement("label",{htmlFor:"initialActions",className:"block text-sm font-medium mb-1"},"Initial Actions Taken"),e.createElement("textarea",{id:"initialActions",value:n,onChange:i=>o(i.target.value),placeholder:"Describe any immediate actions that have been taken to address the breach",rows:3,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})))),te&&e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Attachments"),e.createElement("div",{className:"mb-4"},e.createElement("label",{className:"block text-sm font-medium mb-1"},"Upload Supporting Files (Optional)"),e.createElement("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-2"},"Max ",S," files, ",V/(1024*1024),"MB each. Allowed types: ",F.join(", ")),e.createElement("input",{type:"file",onChange:ue,multiple:true,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",accept:F.join(",")}),m.attachments&&e.createElement("p",{className:"mt-1 text-sm text-red-500"},m.attachments)),p.length>0&&e.createElement("div",{className:"mb-4"},e.createElement("h4",{className:"text-sm font-medium mb-2"},"Attached Files:"),e.createElement("ul",{className:"space-y-2"},p.map((i,y)=>e.createElement("li",{key:y,className:"flex items-center justify-between p-2 bg-gray-50 dark:bg-gray-700 rounded"},e.createElement("div",{className:"flex items-center"},e.createElement("svg",{className:"w-4 h-4 text-gray-500 dark:text-gray-400 mr-2",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M8 4a3 3 0 00-3 3v4a5 5 0 0010 0V7a1 1 0 112 0v4a7 7 0 11-14 0V7a5 5 0 0110 0v4a3 3 0 11-6 0V7a1 1 0 012 0v4a1 1 0 102 0V7a3 3 0 00-3-3z",clipRule:"evenodd"})),e.createElement("span",{className:"text-sm text-gray-700 dark:text-gray-300"},i.name),e.createElement("span",{className:"ml-2 text-xs text-gray-500 dark:text-gray-400"},"(",(i.size/1024).toFixed(1)," KB)")),e.createElement("button",{type:"button",onClick:()=>ce(y),className:"text-red-500 hover:text-red-700"},e.createElement("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})))))))),e.createElement("div",{className:"mt-6 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-md"},e.createElement("h3",{className:"text-sm font-bold text-blue-800 dark:text-blue-200 mb-2"},"NDPA Breach Notification Requirements"),e.createElement("p",{className:"text-blue-700 dark:text-blue-300 text-sm"},"Under the Nigeria Data Protection Act (NDPA), Section 40, data breaches that pose a risk to the rights and freedoms of data subjects must be reported to the NDPC within 72 hours of discovery. The data protection team will assess this breach and determine if notification is required.")),e.createElement("div",{className:"mt-6"},e.createElement("button",{type:"submit",className:`px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 ${R}`},X)))))};var Te=({breachData:l,initialAssessment:u={},onComplete:v,title:Q="Breach Risk Assessment",description:X="Assess the risk level of this data breach to determine notification requirements.",submitButtonText:_="Complete Assessment",className:R="",buttonClassName:ee="",showBreachSummary:J=true,showNotificationRequirements:te=true})=>{let[S,V]=useState(u.confidentialityImpact||3),[F,b]=useState(u.integrityImpact||3),[T,w]=useState(u.availabilityImpact||3),[q,C]=useState(u.harmLikelihood||3),[E,D]=useState(u.harmSeverity||3),[U,P]=useState(u.risksToRightsAndFreedoms!==void 0?u.risksToRightsAndFreedoms:false),[M,j]=useState(u.highRisksToRightsAndFreedoms!==void 0?u.highRisksToRightsAndFreedoms:false),[se,G]=useState(u.justification||""),[K,Z]=useState(0),[x,g]=useState("low"),[f,c]=useState(false),[h,re]=useState(0),[L,Y]=useState(0),[d,N]=useState(false);useEffect(()=>{let m=S*.2+F*.1+T*.1+q*.3+E*.3;Z(Number(m.toFixed(1)));let A;m<2?A="low":m<3?A="medium":m<4?A="high":A="critical",g(A),c(U||A==="high"||A==="critical");let le=l.discoveredAt+4320*60*1e3;re(le);let ue=Date.now(),ce=(le-ue)/(3600*1e3);Y(Number(ce.toFixed(1)));},[S,F,T,q,E,U,l.discoveredAt]);let ae=o=>new Date(o).toLocaleString(),ie=o=>{o.preventDefault();let p={id:u.id||`assessment_${Date.now()}`,breachId:l.id,assessedAt:Date.now(),assessor:u.assessor||{name:"Assessment User",role:"Data Protection Officer",email:"dpo@example.com"},confidentialityImpact:S,integrityImpact:F,availabilityImpact:T,harmLikelihood:q,harmSeverity:E,overallRiskScore:K,riskLevel:x,risksToRightsAndFreedoms:U,highRisksToRightsAndFreedoms:M,justification:se};v(p),N(true);},a=o=>{switch(o){case 1:return "Minimal";case 2:return "Low";case 3:return "Moderate";case 4:return "High";case 5:return "Severe";default:return "Unknown"}},n=o=>e.createElement("span",{className:`px-2 py-1 rounded text-xs font-medium ${{low:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",medium:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",high:"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200",critical:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}[o]}`},o.charAt(0).toUpperCase()+o.slice(1));return e.createElement("div",{className:`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${R}`},e.createElement("h2",{className:"text-xl font-bold mb-2"},Q),e.createElement("p",{className:"mb-6 text-gray-600 dark:text-gray-300"},X),J&&e.createElement("div",{className:"mb-6 p-4 bg-gray-50 dark:bg-gray-700 rounded-md"},e.createElement("h3",{className:"text-lg font-medium mb-2"},"Breach Summary"),e.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2"},e.createElement("div",null,e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Title:")," ",l.title),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Discovered:")," ",ae(l.discoveredAt)),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Status:")," ",l.status.charAt(0).toUpperCase()+l.status.slice(1))),e.createElement("div",null,e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Data Types:")," ",l.dataTypes.join(", ")),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Affected Systems:")," ",l.affectedSystems.join(", ")),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Affected Subjects:")," ",l.estimatedAffectedSubjects||"Unknown")))),d?e.createElement("div",null,e.createElement("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-md"},e.createElement("h3",{className:"text-lg font-medium mb-3"},"Assessment Results"),e.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4"},e.createElement("div",null,e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Overall Risk Level:")," ",n(x)),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Risk Score:")," ",K," / 5"),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Assessed On:")," ",ae(Date.now()))),e.createElement("div",null,e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Risks to Rights and Freedoms:")," ",U?"Yes":"No"),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"High Risks to Rights and Freedoms:")," ",M?"Yes":"No"))),e.createElement("div",{className:"mt-3"},e.createElement("p",{className:"text-sm mb-1"},e.createElement("span",{className:"font-medium"},"Justification:")),e.createElement("p",{className:"text-sm bg-white dark:bg-gray-800 p-2 rounded"},se))),te&&e.createElement("div",{className:`mb-6 p-4 rounded-md ${f?L>24?"bg-yellow-50 dark:bg-yellow-900/20":"bg-red-50 dark:bg-red-900/20":"bg-green-50 dark:bg-green-900/20"}`},e.createElement("h3",{className:"text-lg font-medium mb-3"},"Notification Requirements"),f?e.createElement("div",null,e.createElement("p",{className:`text-sm font-bold mb-2 ${L>24?"text-yellow-800 dark:text-yellow-200":"text-red-800 dark:text-red-200"}`},"NDPC Notification Required"),e.createElement("p",{className:"text-sm mb-2"},"Under the NDPA (Section 40), this breach must be reported to the NDPC within 72 hours of discovery."),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Notification Deadline:")," ",ae(h)),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Time Remaining:")," ",e.createElement("span",{className:L<24?"text-red-600 dark:text-red-400 font-bold":""},L>0?`${L} hours`:"Deadline passed")),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Data Subject Notification:")," ",M?"Required (NDPA Section 40(4))":"Not required unless directed by NDPC")):e.createElement("div",null,e.createElement("p",{className:"text-sm font-bold mb-2 text-green-800 dark:text-green-200"},"NDPC Notification Not Required"),e.createElement("p",{className:"text-sm mb-2"},"Based on this assessment, this breach does not need to be reported to the NDPC."),e.createElement("p",{className:"text-sm mb-2"},"However, the breach should still be documented internally for compliance purposes.")),e.createElement("div",{className:"mt-3 text-sm"},e.createElement("p",{className:"font-medium"},"Next Steps:"),e.createElement("ul",{className:"list-disc pl-5 mt-1"},f?e.createElement(e.Fragment,null,e.createElement("li",null,"Prepare a notification report for the NDPC"),e.createElement("li",null,"Document all aspects of the breach and your response"),M&&e.createElement("li",null,"Prepare communications for affected data subjects"),e.createElement("li",null,"Implement measures to mitigate the impact of the breach")):e.createElement(e.Fragment,null,e.createElement("li",null,"Document the breach and this assessment in your internal records"),e.createElement("li",null,"Implement measures to prevent similar breaches in the future"),e.createElement("li",null,"Review and update security measures as needed"))))),e.createElement("button",{onClick:()=>N(false),className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${ee}`},"Edit Assessment")):e.createElement("form",{onSubmit:ie},e.createElement("div",{className:"space-y-6"},e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Impact Assessment"),e.createElement("div",{className:"mb-4"},e.createElement("label",{htmlFor:"confidentialityImpact",className:"block text-sm font-medium mb-1"},"Confidentiality Impact (1-5)",e.createElement("span",{className:"ml-2 text-sm text-gray-500 dark:text-gray-400"},"How much has the confidentiality of data been compromised?")),e.createElement("div",{className:"flex items-center"},e.createElement("input",{type:"range",id:"confidentialityImpact",min:"1",max:"5",step:"1",value:S,onChange:o=>V(parseInt(o.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),e.createElement("span",{className:"ml-3 w-24 text-sm"},a(S)," (",S,")"))),e.createElement("div",{className:"mb-4"},e.createElement("label",{htmlFor:"integrityImpact",className:"block text-sm font-medium mb-1"},"Integrity Impact (1-5)",e.createElement("span",{className:"ml-2 text-sm text-gray-500 dark:text-gray-400"},"How much has the integrity of data been compromised?")),e.createElement("div",{className:"flex items-center"},e.createElement("input",{type:"range",id:"integrityImpact",min:"1",max:"5",step:"1",value:F,onChange:o=>b(parseInt(o.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),e.createElement("span",{className:"ml-3 w-24 text-sm"},a(F)," (",F,")"))),e.createElement("div",{className:"mb-4"},e.createElement("label",{htmlFor:"availabilityImpact",className:"block text-sm font-medium mb-1"},"Availability Impact (1-5)",e.createElement("span",{className:"ml-2 text-sm text-gray-500 dark:text-gray-400"},"How much has the availability of data or systems been compromised?")),e.createElement("div",{className:"flex items-center"},e.createElement("input",{type:"range",id:"availabilityImpact",min:"1",max:"5",step:"1",value:T,onChange:o=>w(parseInt(o.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),e.createElement("span",{className:"ml-3 w-24 text-sm"},a(T)," (",T,")")))),e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Risk to Data Subjects"),e.createElement("div",{className:"mb-4"},e.createElement("label",{htmlFor:"harmLikelihood",className:"block text-sm font-medium mb-1"},"Likelihood of Harm (1-5)",e.createElement("span",{className:"ml-2 text-sm text-gray-500 dark:text-gray-400"},"How likely is it that data subjects will experience harm?")),e.createElement("div",{className:"flex items-center"},e.createElement("input",{type:"range",id:"harmLikelihood",min:"1",max:"5",step:"1",value:q,onChange:o=>C(parseInt(o.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),e.createElement("span",{className:"ml-3 w-24 text-sm"},a(q)," (",q,")"))),e.createElement("div",{className:"mb-4"},e.createElement("label",{htmlFor:"harmSeverity",className:"block text-sm font-medium mb-1"},"Severity of Harm (1-5)",e.createElement("span",{className:"ml-2 text-sm text-gray-500 dark:text-gray-400"},"How severe would the harm be to affected data subjects?")),e.createElement("div",{className:"flex items-center"},e.createElement("input",{type:"range",id:"harmSeverity",min:"1",max:"5",step:"1",value:E,onChange:o=>D(parseInt(o.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),e.createElement("span",{className:"ml-3 w-24 text-sm"},a(E)," (",E,")"))),e.createElement("div",{className:"mb-4"},e.createElement("div",{className:"flex items-center mb-2"},e.createElement("input",{type:"checkbox",id:"risksToRightsAndFreedoms",checked:U,onChange:o=>P(o.target.checked),className:"h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"}),e.createElement("label",{htmlFor:"risksToRightsAndFreedoms",className:"ml-2 text-sm font-medium"},"This breach poses a risk to the rights and freedoms of data subjects")),e.createElement("p",{className:"text-xs text-gray-500 dark:text-gray-400 ml-6"},"Under the NDPA (Section 40), breaches that pose a risk to rights and freedoms must be reported to the NDPC within 72 hours.")),e.createElement("div",{className:"mb-4"},e.createElement("div",{className:"flex items-center mb-2"},e.createElement("input",{type:"checkbox",id:"highRisksToRightsAndFreedoms",checked:M,onChange:o=>j(o.target.checked),className:"h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"}),e.createElement("label",{htmlFor:"highRisksToRightsAndFreedoms",className:"ml-2 text-sm font-medium"},"This breach poses a high risk to the rights and freedoms of data subjects")),e.createElement("p",{className:"text-xs text-gray-500 dark:text-gray-400 ml-6"},"Under the NDPA (Section 40(4)), breaches that pose a high risk to rights and freedoms also require notification to affected data subjects without undue delay."))),e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Overall Assessment"),e.createElement("div",{className:"mb-4 p-4 bg-gray-50 dark:bg-gray-700 rounded-md"},e.createElement("div",{className:"flex items-center justify-between mb-2"},e.createElement("span",{className:"font-medium"},"Overall Risk Score:"),e.createElement("span",null,K," / 5")),e.createElement("div",{className:"flex items-center justify-between"},e.createElement("span",{className:"font-medium"},"Risk Level:"),n(x))),e.createElement("div",{className:"mb-4"},e.createElement("label",{htmlFor:"justification",className:"block text-sm font-medium mb-1"},"Justification for Assessment ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("textarea",{id:"justification",value:se,onChange:o=>G(o.target.value),rows:4,placeholder:"Explain the reasoning behind your assessment, including any factors that influenced your decision.",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true}))),e.createElement("div",{className:"mt-6 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-md"},e.createElement("h3",{className:"text-sm font-bold text-blue-800 dark:text-blue-200 mb-2"},"NDPA Breach Notification Requirements"),e.createElement("p",{className:"text-blue-700 dark:text-blue-300 text-sm"},"Under the Nigeria Data Protection Act (NDPA), Section 40, data breaches that pose a risk to the rights and freedoms of data subjects must be reported to the NDPC within 72 hours of discovery. This assessment will determine if notification is required for this breach.")),e.createElement("div",{className:"mt-6"},e.createElement("button",{type:"submit",className:`px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 ${ee}`},_)))))};var je=({breachReports:l,riskAssessments:u,regulatoryNotifications:v,onSelectBreach:Q,onRequestAssessment:X,onRequestNotification:_,title:R="Breach Notification Manager",description:ee="Manage data breach notifications and track compliance with NDPA requirements.",className:J="",buttonClassName:te="",showBreachDetails:S=true,showNotificationTimeline:V=true,showDeadlineAlerts:F=true})=>{var ie;let[b,T]=useState(null),[w,q]=useState(l),[C,E]=useState("all"),[D,U]=useState(""),[P,M]=useState("discoveredAt"),[j,se]=useState("desc");useEffect(()=>{let a=[...l];if(C!=="all"&&(a=a.filter(n=>n.status===C)),D){let n=D.toLowerCase();a=a.filter(o=>o.title.toLowerCase().includes(n)||o.description.toLowerCase().includes(n)||o.affectedSystems.some(p=>p.toLowerCase().includes(n))||o.dataTypes.some(p=>p.toLowerCase().includes(n)));}a.sort((n,o)=>{let p=0;switch(P){case "title":p=n.title.localeCompare(o.title);break;case "discoveredAt":p=n.discoveredAt-o.discoveredAt;break;case "status":p=n.status.localeCompare(o.status);break;case "riskLevel":let I=u.find(A=>A.breachId===n.id),$=u.find(A=>A.breachId===o.id),de=(I==null?void 0:I.riskLevel)||"unknown",m=($==null?void 0:$.riskLevel)||"unknown";p=de.localeCompare(m);break;default:p=n.discoveredAt-o.discoveredAt;}return j==="asc"?p:-p}),q(a);},[l,C,D,P,j,u]),useEffect(()=>{w.length>0&&!b&&T(w[0].id);},[w,b]);let G=a=>{T(a),Q&&Q(a);},K=()=>{b&&X&&X(b);},Z=()=>{b&&_&&_(b);},x=a=>new Date(a).toLocaleString(),g=b?l.find(a=>a.id===b):null,f=b?u.find(a=>a.breachId===b):null,c=b?v.find(a=>a.breachId===b):null,h=g?re(g,f):null;function re(a$1,n){let o=a(a$1,n||void 0),p=a$1.discoveredAt+o.timeframeHours*60*60*1e3;return {ndpcNotificationRequired:o.notificationRequired,ndpcNotificationDeadline:p,dataSubjectNotificationRequired:(n==null?void 0:n.highRisksToRightsAndFreedoms)||false,justification:o.justification}}function L(a){let n=Date.now(),o=(a-n)/(3600*1e3);return Number(o.toFixed(1))}let Y=a=>a?e.createElement("span",{className:`px-2 py-1 rounded text-xs font-medium ${{low:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",medium:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",high:"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200",critical:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"}[a]}`},a.charAt(0).toUpperCase()+a.slice(1)):null,d=a=>e.createElement("span",{className:`px-2 py-1 rounded text-xs font-medium ${{ongoing:"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",contained:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",resolved:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"}[a]||"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200"}`},a.charAt(0).toUpperCase()+a.slice(1)),N=()=>{if(!g||!h)return null;if(!h.ndpcNotificationRequired)return e.createElement("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-green-800 dark:text-green-200 font-medium"},"Notification Not Required"),e.createElement("p",{className:"text-xs text-green-700 dark:text-green-300 mt-1"},"Based on the risk assessment, NDPC notification is not required for this breach."));if(c)return e.createElement("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-green-800 dark:text-green-200 font-medium"},"Notification Sent"),e.createElement("p",{className:"text-xs text-green-700 dark:text-green-300 mt-1"},"Notification was sent to the NDPC on ",x(c.sentAt),"."));let a=L(h.ndpcNotificationDeadline);return a<=0?e.createElement("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-red-800 dark:text-red-200 font-medium"},"Notification Deadline Passed"),e.createElement("p",{className:"text-xs text-red-700 dark:text-red-300 mt-1"},"The 72-hour deadline for NDPC notification has passed. Notification should be sent immediately.")):a<=24?e.createElement("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-red-800 dark:text-red-200 font-medium"},"Urgent: Notification Due Soon"),e.createElement("p",{className:"text-xs text-red-700 dark:text-red-300 mt-1"},"Only ",a," hours remaining until the NDPC notification deadline.")):e.createElement("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 font-medium"},"Notification Required"),e.createElement("p",{className:"text-xs text-yellow-700 dark:text-yellow-300 mt-1"},"NDPC notification is required by ",x(h.ndpcNotificationDeadline)," (",a," hours remaining)."))},ae=()=>{if(!g)return null;let a=[{title:"Breach Discovered",date:g.discoveredAt,completed:true,description:`Breach was discovered on ${x(g.discoveredAt)}.`},{title:"Risk Assessment",date:f==null?void 0:f.assessedAt,completed:!!f,description:f?`Risk assessment completed on ${x(f.assessedAt)}.`:"Risk assessment has not been completed yet."}];return h!=null&&h.ndpcNotificationRequired&&a.push({title:"NDPC Notification",date:c==null?void 0:c.sentAt,completed:!!c,description:c?`Notification sent to the NDPC on ${x(c.sentAt)}.`:`Notification must be sent to the NDPC by ${x(h.ndpcNotificationDeadline)}.`}),h!=null&&h.dataSubjectNotificationRequired&&a.push({title:"Data Subject Notification",date:void 0,completed:false,description:"Notification to affected data subjects is required but has not been sent yet."}),e.createElement("div",{className:"mt-6"},e.createElement("h3",{className:"text-lg font-medium mb-4"},"Notification Timeline"),e.createElement("ol",{className:"relative border-l border-gray-200 dark:border-gray-700"},a.map((n,o)=>e.createElement("li",{key:o,className:"mb-6 ml-4"},e.createElement("div",{className:`absolute w-3 h-3 rounded-full mt-1.5 -left-1.5 border ${n.completed?"bg-green-500 border-green-500 dark:border-green-500":"bg-gray-200 border-gray-200 dark:bg-gray-700 dark:border-gray-700"}`}),e.createElement("time",{className:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},n.date?x(n.date):"Pending"),e.createElement("h4",{className:"text-sm font-semibold text-gray-900 dark:text-white"},n.title),e.createElement("p",{className:"text-xs text-gray-500 dark:text-gray-400"},n.description)))))};return e.createElement("div",{className:`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${J}`},e.createElement("h2",{className:"text-xl font-bold mb-2"},R),e.createElement("p",{className:"mb-6 text-gray-600 dark:text-gray-300"},ee),e.createElement("div",{className:"mb-6 grid grid-cols-1 md:grid-cols-3 gap-4"},e.createElement("div",null,e.createElement("label",{htmlFor:"statusFilter",className:"block text-sm font-medium mb-1"},"Status Filter"),e.createElement("select",{id:"statusFilter",value:C,onChange:a=>E(a.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"},e.createElement("option",{value:"all"},"All Statuses"),e.createElement("option",{value:"ongoing"},"Ongoing"),e.createElement("option",{value:"contained"},"Contained"),e.createElement("option",{value:"resolved"},"Resolved"))),e.createElement("div",null,e.createElement("label",{htmlFor:"sortBy",className:"block text-sm font-medium mb-1"},"Sort By"),e.createElement("select",{id:"sortBy",value:P,onChange:a=>M(a.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"},e.createElement("option",{value:"discoveredAt"},"Discovery Date"),e.createElement("option",{value:"title"},"Title"),e.createElement("option",{value:"status"},"Status"),e.createElement("option",{value:"riskLevel"},"Risk Level"))),e.createElement("div",null,e.createElement("label",{htmlFor:"searchTerm",className:"block text-sm font-medium mb-1"},"Search"),e.createElement("input",{type:"text",id:"searchTerm",value:D,onChange:a=>U(a.target.value),placeholder:"Search breaches...",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"}))),e.createElement("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6"},e.createElement("div",{className:"md:col-span-1"},e.createElement("h3",{className:"text-lg font-medium mb-3"},"Breach Reports"),w.length===0?e.createElement("p",{className:"text-gray-500 dark:text-gray-400 text-sm"},"No breach reports found."):e.createElement("div",{className:"space-y-2 max-h-96 overflow-y-auto pr-2"},w.map(a=>{let n=u.find($=>$.breachId===a.id),o=v.find($=>$.breachId===a.id),p=re(a,n),I=null;if(p!=null&&p.ndpcNotificationRequired)if(o)I=e.createElement("span",{className:"text-xs text-green-600 dark:text-green-400"},"Notified");else {let $=L(p.ndpcNotificationDeadline);$<=0?I=e.createElement("span",{className:"text-xs text-red-600 dark:text-red-400 font-bold"},"Overdue"):$<=24?I=e.createElement("span",{className:"text-xs text-red-600 dark:text-red-400"},"Urgent"):I=e.createElement("span",{className:"text-xs text-yellow-600 dark:text-yellow-400"},"Required");}else I=e.createElement("span",{className:"text-xs text-green-600 dark:text-green-400"},"Not Required");return e.createElement("div",{key:a.id,className:`p-3 rounded-md cursor-pointer ${b===a.id?"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800":"bg-gray-50 dark:bg-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600"}`,onClick:()=>G(a.id)},e.createElement("div",{className:"flex justify-between items-start mb-1"},e.createElement("h4",{className:"font-medium text-sm"},a.title),d(a.status)),e.createElement("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-1"},"Discovered: ",new Date(a.discoveredAt).toLocaleDateString()),e.createElement("div",{className:"flex justify-between items-center mt-2"},e.createElement("div",null,n&&Y(n.riskLevel)),e.createElement("div",null,I)))}))),e.createElement("div",{className:"md:col-span-2"},g?e.createElement("div",null,e.createElement("div",{className:"flex justify-between items-start mb-4"},e.createElement("h3",{className:"text-lg font-medium"},g.title),d(g.status)),F&&e.createElement("div",{className:"mb-4"},N()),S&&e.createElement("div",{className:"mb-6"},e.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"},e.createElement("div",null,e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Discovered:")," ",x(g.discoveredAt)),g.occurredAt&&e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Occurred:")," ",x(g.occurredAt)),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Reporter:")," ",g.reporter.name)),e.createElement("div",null,e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Affected Systems:")," ",g.affectedSystems.join(", ")),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Data Types:")," ",g.dataTypes.join(", ")),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Affected Subjects:")," ",g.estimatedAffectedSubjects||"Unknown"))),e.createElement("div",{className:"mb-4"},e.createElement("p",{className:"text-sm font-medium"},"Description:"),e.createElement("p",{className:"text-sm text-gray-600 dark:text-gray-300 bg-gray-50 dark:bg-gray-700 p-2 rounded-md mt-1"},g.description)),g.initialActions&&e.createElement("div",null,e.createElement("p",{className:"text-sm font-medium"},"Initial Actions Taken:"),e.createElement("p",{className:"text-sm text-gray-600 dark:text-gray-300 bg-gray-50 dark:bg-gray-700 p-2 rounded-md mt-1"},g.initialActions))),e.createElement("div",{className:"mb-6"},e.createElement("h3",{className:"text-lg font-medium mb-3"},"Risk Assessment"),f?e.createElement("div",{className:"bg-gray-50 dark:bg-gray-700 p-3 rounded-md"},e.createElement("div",{className:"flex justify-between items-center mb-2"},e.createElement("p",{className:"text-sm font-medium"},"Risk Level:"),Y(f.riskLevel)),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Risk Score:")," ",f.overallRiskScore," / 5"),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Risks to Rights and Freedoms:")," ",f.risksToRightsAndFreedoms?"Yes":"No"),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"High Risks to Rights and Freedoms:")," ",f.highRisksToRightsAndFreedoms?"Yes":"No"),e.createElement("p",{className:"text-sm mb-1"},e.createElement("span",{className:"font-medium"},"Justification:")),e.createElement("p",{className:"text-xs text-gray-600 dark:text-gray-300 bg-white dark:bg-gray-800 p-2 rounded-md"},f.justification)):e.createElement("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-yellow-800 dark:text-yellow-200"},"Risk assessment has not been conducted yet."),e.createElement("button",{onClick:K,className:`mt-2 px-3 py-1 text-xs bg-yellow-600 text-white rounded hover:bg-yellow-700 ${te}`},"Conduct Risk Assessment"))),e.createElement("div",{className:"mb-6"},e.createElement("h3",{className:"text-lg font-medium mb-3"},"Notification Status"),c?e.createElement("div",{className:"bg-gray-50 dark:bg-gray-700 p-3 rounded-md"},e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Notification Sent:")," ",x(c.sentAt)),e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Method:")," ",c.method.charAt(0).toUpperCase()+c.method.slice(1)),c.referenceNumber&&e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"Reference Number:")," ",c.referenceNumber),(c.ndpcContact||c.nitdaContact)&&e.createElement("p",{className:"text-sm mb-2"},e.createElement("span",{className:"font-medium"},"NDPC Contact:")," ",(ie=c.ndpcContact||c.nitdaContact)==null?void 0:ie.name)):e.createElement("div",null,h!=null&&h.ndpcNotificationRequired?e.createElement("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-yellow-800 dark:text-yellow-200"},"NDPC notification is required but has not been sent yet."),e.createElement("button",{onClick:Z,className:`mt-2 px-3 py-1 text-xs bg-yellow-600 text-white rounded hover:bg-yellow-700 ${te}`},"Generate Notification")):e.createElement("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-md"},e.createElement("p",{className:"text-sm text-green-800 dark:text-green-200"},"NDPC notification is not required for this breach.")))),V&&ae()):e.createElement("div",{className:"flex items-center justify-center h-64 bg-gray-50 dark:bg-gray-700 rounded-md"},e.createElement("p",{className:"text-gray-500 dark:text-gray-400"},"Select a breach to view details")))))};var Ee=({breachData:l,assessmentData:u,organizationInfo:v,onGenerate:Q,title:X="Generate NDPC Notification Report",description:_="Generate a report for submission to the NDPC in compliance with the NDPA breach notification requirements.",generateButtonText:R="Generate Report",className:ee="",buttonClassName:J="",showPreview:te=true,allowEditing:S=true,allowDownload:V=true,downloadFormat:F="pdf"})=>{let[b,T]=useState(""),[w,q]=useState(""),[C,E]=useState(""),[D,U]=useState(""),[P,M]=useState("email"),[j,se]=useState(""),[G,K]=useState(""),[Z,x]=useState(false),[g,f]=useState(false);useEffect(()=>{if(!Z){let d=h();T(d),x(true);}},[l,u,v]);let c=d=>new Date(d).toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"}),h=()=>`
|
|
2
|
-
NDPC DATA BREACH NOTIFICATION
|
|
3
|
-
|
|
4
|
-
Date: ${new Date().toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})}
|
|
5
|
-
|
|
6
|
-
Reference: NDPA Section 40 - Breach Notification
|
|
7
|
-
|
|
8
|
-
ORGANIZATION DETAILS
|
|
9
|
-
-------------------
|
|
10
|
-
Organization Name: ${v.name}
|
|
11
|
-
${v.registrationNumber?`Registration Number: ${v.registrationNumber}`:""}
|
|
12
|
-
Address: ${v.address}
|
|
13
|
-
${v.website?`Website: ${v.website}`:""}
|
|
14
|
-
|
|
15
|
-
DATA PROTECTION OFFICER
|
|
16
|
-
----------------------
|
|
17
|
-
Name: ${v.dpoName}
|
|
18
|
-
Email: ${v.dpoEmail}
|
|
19
|
-
${v.dpoPhone?`Phone: ${v.dpoPhone}`:""}
|
|
20
|
-
|
|
21
|
-
BREACH DETAILS
|
|
22
|
-
-------------
|
|
23
|
-
Breach Title: ${l.title}
|
|
24
|
-
Date Discovered: ${c(l.discoveredAt)}
|
|
25
|
-
${l.occurredAt?`Date Occurred: ${c(l.occurredAt)}`:"Date Occurred: Unknown"}
|
|
26
|
-
Status: ${l.status.charAt(0).toUpperCase()+l.status.slice(1)}
|
|
27
|
-
|
|
28
|
-
Description of the Breach:
|
|
29
|
-
${l.description}
|
|
30
|
-
|
|
31
|
-
Affected Systems/Applications:
|
|
32
|
-
${l.affectedSystems.join(", ")}
|
|
33
|
-
|
|
34
|
-
Types of Personal Data Involved:
|
|
35
|
-
${l.dataTypes.join(", ")}
|
|
36
|
-
|
|
37
|
-
Estimated Number of Data Subjects Affected:
|
|
38
|
-
${l.estimatedAffectedSubjects||"Unknown"}
|
|
39
|
-
|
|
40
|
-
RISK ASSESSMENT
|
|
41
|
-
--------------
|
|
42
|
-
${u?`
|
|
43
|
-
Overall Risk Level: ${u.riskLevel.charAt(0).toUpperCase()+u.riskLevel.slice(1)}
|
|
44
|
-
Risk to Rights and Freedoms of Data Subjects: ${u.risksToRightsAndFreedoms?"Yes":"No"}
|
|
45
|
-
High Risk to Rights and Freedoms of Data Subjects: ${u.highRisksToRightsAndFreedoms?"Yes":"No"}
|
|
46
|
-
|
|
47
|
-
Justification for Risk Assessment:
|
|
48
|
-
${u.justification}
|
|
49
|
-
`:"Risk assessment has not been conducted yet."}
|
|
50
|
-
|
|
51
|
-
MEASURES TAKEN
|
|
52
|
-
-------------
|
|
53
|
-
Measures taken or proposed to address the breach:
|
|
54
|
-
${l.initialActions||"To be determined"}
|
|
55
|
-
|
|
56
|
-
Measures taken or proposed to mitigate possible adverse effects:
|
|
57
|
-
[Please specify measures taken to mitigate adverse effects]
|
|
58
|
-
|
|
59
|
-
NOTIFICATION TO DATA SUBJECTS (NDPA Section 40(4))
|
|
60
|
-
----------------------------
|
|
61
|
-
Have data subjects been notified: [Yes/No]
|
|
62
|
-
If yes, date of notification: [Date]
|
|
63
|
-
If no, planned date of notification: [Date]
|
|
64
|
-
Reason for delay (if applicable): [Reason]
|
|
65
|
-
|
|
66
|
-
ADDITIONAL INFORMATION
|
|
67
|
-
---------------------
|
|
68
|
-
[Any additional information relevant to the breach]
|
|
69
|
-
|
|
70
|
-
This notification is made in compliance with the Nigeria Data Protection Act (NDPA), Section 40.
|
|
71
|
-
`,re=d=>{d.preventDefault();let N={id:`notification_${Date.now()}`,breachId:l.id,sentAt:Date.now(),method:P,referenceNumber:j||void 0,ndpcContact:w?{name:w,email:C,phone:D||void 0}:void 0,content:b,attachments:[]};Q(N),f(true);},L=()=>{let d=document.createElement("a"),N=new Blob([b],{type:"text/plain"});d.href=URL.createObjectURL(N),d.download=`NDPC_Breach_Notification_${new Date().toISOString().split("T")[0]}.txt`,document.body.appendChild(d),d.click(),document.body.removeChild(d);},Y=()=>[{value:"email",label:"Email"},{value:"portal",label:"NDPC Portal"},{value:"letter",label:"Formal Letter"},{value:"other",label:"Other"}].map(N=>e.createElement("option",{key:N.value,value:N.value},N.label));return e.createElement("div",{className:`bg-white dark:bg-gray-800 p-6 rounded-lg shadow-md ${ee}`},e.createElement("h2",{className:"text-xl font-bold mb-2"},X),e.createElement("p",{className:"mb-6 text-gray-600 dark:text-gray-300"},_),g?e.createElement("div",null,e.createElement("div",{className:"mb-6 p-4 bg-green-50 dark:bg-green-900/20 rounded-md"},e.createElement("h3",{className:"text-lg font-bold text-green-800 dark:text-green-200 mb-2"},"Report Generated Successfully"),e.createElement("p",{className:"text-green-700 dark:text-green-300"},"Your NDPC notification report has been generated and is ready for submission. Please review the report carefully before submitting it to the NDPC.")),e.createElement("div",{className:"mb-6"},e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Submission Details"),e.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"},e.createElement("div",null,e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Method:")," ",P.charAt(0).toUpperCase()+P.slice(1)),w&&e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Contact Name:")," ",w),C&&e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Contact Email:")," ",C),D&&e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Contact Phone:")," ",D)),e.createElement("div",null,e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Date Generated:")," ",c(Date.now())),e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Breach ID:")," ",l.id),j&&e.createElement("p",{className:"text-sm"},e.createElement("span",{className:"font-medium"},"Reference Number:")," ",j)))),te&&e.createElement("div",{className:"mb-6"},e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Report Preview"),e.createElement("div",{className:"bg-gray-50 dark:bg-gray-700 p-4 rounded-md"},e.createElement("pre",{className:"whitespace-pre-wrap text-sm font-mono text-gray-800 dark:text-gray-200"},b))),e.createElement("div",{className:"flex flex-wrap gap-3"},V&&e.createElement("button",{onClick:L,className:`px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 ${J}`},"Download Report (",F.toUpperCase(),")"),e.createElement("button",{onClick:()=>f(false),className:`px-4 py-2 bg-gray-200 text-gray-800 dark:bg-gray-700 dark:text-white rounded hover:bg-gray-300 dark:hover:bg-gray-600 ${J}`},"Edit Report"))):e.createElement("form",{onSubmit:re},e.createElement("div",{className:"space-y-6"},e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Notification Method"),e.createElement("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2"},e.createElement("div",null,e.createElement("label",{htmlFor:"method",className:"block text-sm font-medium mb-1"},"Method of Submission ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("select",{id:"method",value:P,onChange:d=>M(d.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",required:true},Y())),e.createElement("div",null,e.createElement("label",{htmlFor:"referenceNumber",className:"block text-sm font-medium mb-1"},"Reference Number (if available)"),e.createElement("input",{type:"text",id:"referenceNumber",value:j,onChange:d=>se(d.target.value),placeholder:"e.g. NDPC/BR/2024/001",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})))),e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"NDPC Contact (if known)"),e.createElement("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3"},e.createElement("div",null,e.createElement("label",{htmlFor:"contactName",className:"block text-sm font-medium mb-1"},"Contact Name"),e.createElement("input",{type:"text",id:"contactName",value:w,onChange:d=>q(d.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})),e.createElement("div",null,e.createElement("label",{htmlFor:"contactEmail",className:"block text-sm font-medium mb-1"},"Contact Email"),e.createElement("input",{type:"email",id:"contactEmail",value:C,onChange:d=>E(d.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})),e.createElement("div",null,e.createElement("label",{htmlFor:"contactPhone",className:"block text-sm font-medium mb-1"},"Contact Phone"),e.createElement("input",{type:"tel",id:"contactPhone",value:D,onChange:d=>U(d.target.value),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"})))),e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Additional Information"),e.createElement("div",null,e.createElement("label",{htmlFor:"additionalInfo",className:"block text-sm font-medium mb-1"},"Additional Information to Include"),e.createElement("textarea",{id:"additionalInfo",value:G,onChange:d=>K(d.target.value),rows:3,placeholder:"Any additional information you want to include in the report",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"}))),S&&e.createElement("div",null,e.createElement("h3",{className:"text-lg font-semibold mb-3"},"Report Content"),e.createElement("div",null,e.createElement("label",{htmlFor:"reportContent",className:"block text-sm font-medium mb-1"},"Edit Report Content ",e.createElement("span",{className:"text-red-500"},"*")),e.createElement("textarea",{id:"reportContent",value:b,onChange:d=>T(d.target.value),rows:20,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 font-mono text-sm",required:true}))),e.createElement("div",{className:"mt-6 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-md"},e.createElement("h3",{className:"text-sm font-bold text-blue-800 dark:text-blue-200 mb-2"},"NDPA Breach Notification Requirements"),e.createElement("p",{className:"text-blue-700 dark:text-blue-300 text-sm"},"Under the Nigeria Data Protection Act (NDPA), Section 40, data breaches that pose a risk to the rights and freedoms of data subjects must be reported to the NDPC within 72 hours of discovery. This report will help you comply with this requirement.")),e.createElement("div",{className:"mt-6"},e.createElement("button",{type:"submit",className:`px-6 py-3 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 ${J}`},R)))))};export{Ce as a,Te as b,je as c,Ee as d};//# sourceMappingURL=chunk-JUN6YPLL.mjs.map
|
|
72
|
-
//# sourceMappingURL=chunk-JUN6YPLL.mjs.map
|