@tantainnovative/ndpr-toolkit 3.4.0 → 3.5.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.
Files changed (188) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +80 -38
  3. package/dist/adapters.d.mts +34 -25
  4. package/dist/adapters.d.ts +34 -25
  5. package/dist/breach.d.mts +803 -44
  6. package/dist/breach.d.ts +803 -44
  7. package/dist/breach.js +2 -1
  8. package/dist/breach.mjs +2 -1
  9. package/dist/{chunk-2WH4DLV5.js → chunk-3EGQWLJ6.js} +3 -3
  10. package/dist/chunk-B4Z5MBUC.mjs +2 -0
  11. package/dist/{chunk-LSCMXAPY.mjs → chunk-CKGJK4D7.mjs} +3 -3
  12. package/dist/{chunk-XSEZDQLB.js → chunk-CKJAECGV.js} +2 -2
  13. package/dist/{chunk-AHSMDPG5.js → chunk-CPK5D5FY.js} +2 -2
  14. package/dist/{chunk-DCJK5OZT.mjs → chunk-CWHBCQGT.mjs} +2 -2
  15. package/dist/{chunk-KSERBMXW.mjs → chunk-F5TXUA4O.mjs} +3 -3
  16. package/dist/{chunk-BN77GP4W.mjs → chunk-GN5C32JB.mjs} +2 -2
  17. package/dist/{chunk-ZLSWOFAY.mjs → chunk-GRLIPT5V.mjs} +2 -2
  18. package/dist/{chunk-DUY6F3GT.mjs → chunk-H3EYBSVP.mjs} +3 -3
  19. package/dist/{chunk-MG73MOZC.mjs → chunk-I557S566.mjs} +2 -2
  20. package/dist/{chunk-QVULSG6J.mjs → chunk-ID2NYIVE.mjs} +3 -3
  21. package/dist/chunk-J5WCPZLW.js +2 -0
  22. package/dist/{chunk-4R42ZNO7.mjs → chunk-JFFOPHU3.mjs} +57 -57
  23. package/dist/{chunk-P2YV6DR3.js → chunk-LIM64IV2.js} +3 -3
  24. package/dist/chunk-LU7PKE7Y.mjs +2 -0
  25. package/dist/{chunk-HQSU7LGM.js → chunk-LWXZMKC2.js} +4 -4
  26. package/dist/{chunk-XMBSJJ5U.js → chunk-ORFC66EA.js} +3 -3
  27. package/dist/{chunk-VTITKWGX.mjs → chunk-QSVVAZVT.mjs} +2 -2
  28. package/dist/chunk-SCWNM4PC.mjs +2 -0
  29. package/dist/{chunk-EHAZIKDX.js → chunk-SKKOMFXH.js} +2 -2
  30. package/dist/{chunk-WH6ZMUOS.mjs → chunk-TUNQUVHU.mjs} +2 -2
  31. package/dist/chunk-TV4U6AIS.js +2 -0
  32. package/dist/{chunk-ZYLDLGFL.js → chunk-VIQUXWJC.js} +2 -2
  33. package/dist/{chunk-SUEGUY35.js → chunk-XIM7KMD6.js} +2 -2
  34. package/dist/{chunk-P6QAFBCV.js → chunk-XNSZ7KUH.js} +2 -2
  35. package/dist/{chunk-RNTNHVKZ.js → chunk-YPKUHSK4.js} +2 -2
  36. package/dist/{chunk-UFPSUO52.js → chunk-Z73T6MWY.js} +57 -57
  37. package/dist/consent.d.mts +648 -84
  38. package/dist/consent.d.ts +648 -84
  39. package/dist/consent.js +2 -1
  40. package/dist/consent.mjs +2 -1
  41. package/dist/core.d.mts +2049 -23
  42. package/dist/core.d.ts +2049 -23
  43. package/dist/core.js +1 -1
  44. package/dist/core.mjs +1 -1
  45. package/dist/cross-border.d.mts +470 -99
  46. package/dist/cross-border.d.ts +470 -99
  47. package/dist/cross-border.js +1 -0
  48. package/dist/cross-border.mjs +1 -0
  49. package/dist/dpia.d.mts +591 -37
  50. package/dist/dpia.d.ts +591 -37
  51. package/dist/dpia.js +1 -0
  52. package/dist/dpia.mjs +1 -0
  53. package/dist/dsr.d.mts +654 -37
  54. package/dist/dsr.d.ts +654 -37
  55. package/dist/dsr.js +2 -1
  56. package/dist/dsr.mjs +2 -1
  57. package/dist/hooks.d.mts +2174 -30
  58. package/dist/hooks.d.ts +2174 -30
  59. package/dist/hooks.js +2 -1
  60. package/dist/hooks.mjs +2 -1
  61. package/dist/index.d.mts +4428 -43
  62. package/dist/index.d.ts +4428 -43
  63. package/dist/index.js +2 -1
  64. package/dist/index.mjs +2 -1
  65. package/dist/lawful-basis.d.mts +368 -32
  66. package/dist/lawful-basis.d.ts +368 -32
  67. package/dist/lawful-basis.js +1 -0
  68. package/dist/lawful-basis.mjs +1 -0
  69. package/dist/policy.d.mts +1178 -83
  70. package/dist/policy.d.ts +1178 -83
  71. package/dist/policy.js +2 -1
  72. package/dist/policy.mjs +2 -1
  73. package/dist/presets.d.mts +1020 -114
  74. package/dist/presets.d.ts +1020 -114
  75. package/dist/presets.js +2 -1
  76. package/dist/presets.mjs +2 -1
  77. package/dist/ropa.d.mts +396 -31
  78. package/dist/ropa.d.ts +396 -31
  79. package/dist/ropa.js +2 -1
  80. package/dist/ropa.mjs +2 -1
  81. package/dist/server.d.mts +2133 -24
  82. package/dist/server.d.ts +2133 -24
  83. package/dist/server.js +1 -1
  84. package/dist/server.mjs +1 -1
  85. package/dist/unstyled.d.mts +523 -55
  86. package/dist/unstyled.d.ts +523 -55
  87. package/dist/unstyled.js +2 -1
  88. package/dist/unstyled.mjs +2 -1
  89. package/package.json +3 -3
  90. package/dist/BreachReportForm-DpRrBoxU.d.ts +0 -158
  91. package/dist/BreachReportForm-yJ2Zl6gz.d.mts +0 -158
  92. package/dist/ConsentBanner-F5ayys5K.d.mts +0 -156
  93. package/dist/ConsentBanner-VqIPophc.d.ts +0 -156
  94. package/dist/ConsentManager-C7I3PDe8.d.mts +0 -105
  95. package/dist/ConsentManager-CQ2IZtUU.d.ts +0 -105
  96. package/dist/CrossBorderTransferManager-D5Lc0e46.d.ts +0 -90
  97. package/dist/CrossBorderTransferManager-DkZhv9vD.d.mts +0 -90
  98. package/dist/DPIAQuestionnaire-VXBoWFMC.d.ts +0 -123
  99. package/dist/DPIAQuestionnaire-jkt1Veb6.d.mts +0 -123
  100. package/dist/DSRRequestForm-D8rPTNmU.d.ts +0 -146
  101. package/dist/DSRRequestForm-DRouEr9j.d.mts +0 -146
  102. package/dist/DSRTracker-Bl__d4df.d.ts +0 -163
  103. package/dist/DSRTracker-CSVDfgQQ.d.mts +0 -163
  104. package/dist/LawfulBasisTracker-CBqOxX1D.d.mts +0 -85
  105. package/dist/LawfulBasisTracker-Cg30NbDA.d.ts +0 -85
  106. package/dist/NDPRDashboard-CLJpEg0X.d.mts +0 -44
  107. package/dist/NDPRDashboard-DDWNd2Ah.d.ts +0 -44
  108. package/dist/NDPRProvider-DYFb8xEl.d.ts +0 -68
  109. package/dist/NDPRProvider-U3QNu6MA.d.mts +0 -68
  110. package/dist/PolicyExporter-Bgi6nz82.d.mts +0 -291
  111. package/dist/PolicyExporter-BnvuFncj.d.ts +0 -291
  112. package/dist/ROPAManager-BS4eB8Hw.d.mts +0 -79
  113. package/dist/ROPAManager-qxTrXLkD.d.ts +0 -79
  114. package/dist/RegulatoryReportGenerator-BUYgzTTT.d.ts +0 -282
  115. package/dist/RegulatoryReportGenerator-DwcHcEFp.d.mts +0 -282
  116. package/dist/StepIndicator-CgrlokSV.d.ts +0 -171
  117. package/dist/StepIndicator-W8S_QjgO.d.mts +0 -171
  118. package/dist/breach-B_-6lDqS.d.mts +0 -17
  119. package/dist/breach-CzXqSsaY.d.ts +0 -17
  120. package/dist/breach-Eu9byel8.d.mts +0 -185
  121. package/dist/breach-Eu9byel8.d.ts +0 -185
  122. package/dist/chunk-5X32J5IA.mjs +0 -2
  123. package/dist/chunk-7D2OIPHH.mjs +0 -2
  124. package/dist/chunk-JKKRPS4P.js +0 -2
  125. package/dist/chunk-NCOZB2WU.mjs +0 -2
  126. package/dist/chunk-RGNP45VR.js +0 -2
  127. package/dist/compliance-score-racQe_E_.d.mts +0 -115
  128. package/dist/compliance-score-racQe_E_.d.ts +0 -115
  129. package/dist/consent-CmVzqZUk.d.mts +0 -99
  130. package/dist/consent-CmVzqZUk.d.ts +0 -99
  131. package/dist/consent-audit-BdByjYlM.d.mts +0 -65
  132. package/dist/consent-audit-DhbfMR0n.d.ts +0 -65
  133. package/dist/cross-border-BBi9rZyO.d.mts +0 -54
  134. package/dist/cross-border-Dy-U9Hu6.d.ts +0 -54
  135. package/dist/cross-border-UyT00llA.d.mts +0 -141
  136. package/dist/cross-border-UyT00llA.d.ts +0 -141
  137. package/dist/docx-BxKascXN.d.ts +0 -64
  138. package/dist/docx-CV7Vsry_.d.mts +0 -64
  139. package/dist/dpia-D82hUrJe.d.ts +0 -15
  140. package/dist/dpia-DQDFw2_l.d.mts +0 -15
  141. package/dist/dpia-c9GiiOq0.d.mts +0 -137
  142. package/dist/dpia-c9GiiOq0.d.ts +0 -137
  143. package/dist/dsr-CIx5sd7e.d.ts +0 -14
  144. package/dist/dsr-XZ_HqTlA.d.mts +0 -14
  145. package/dist/dsr-yKbqX531.d.mts +0 -128
  146. package/dist/dsr-yKbqX531.d.ts +0 -128
  147. package/dist/lawful-basis-BEyI0kGg.d.ts +0 -57
  148. package/dist/lawful-basis-C2eGaoHM.d.mts +0 -57
  149. package/dist/lawful-basis-Cv1VmDLn.d.mts +0 -112
  150. package/dist/lawful-basis-Cv1VmDLn.d.ts +0 -112
  151. package/dist/locale-CxJx2tzn.d.mts +0 -25
  152. package/dist/locale-DSkrtf-c.d.ts +0 -25
  153. package/dist/policy-engine-CCUCud2T.d.ts +0 -154
  154. package/dist/policy-engine-fYSqEqSW.d.mts +0 -154
  155. package/dist/policy-sections-BYx6fEFk.d.ts +0 -56
  156. package/dist/policy-sections-Dm97Nq8m.d.mts +0 -56
  157. package/dist/policy-templates-DhLwq4R-.d.ts +0 -43
  158. package/dist/policy-templates-DwYl2329.d.mts +0 -43
  159. package/dist/privacy-Ca6te9Ir.d.mts +0 -138
  160. package/dist/privacy-Ca6te9Ir.d.ts +0 -138
  161. package/dist/ropa-BDTM06tr.d.ts +0 -152
  162. package/dist/ropa-CFHuT7jE.d.mts +0 -152
  163. package/dist/ropa-CyynscU6.d.ts +0 -51
  164. package/dist/ropa-NIgxd8uP.d.mts +0 -51
  165. package/dist/sanitize-CxxwKxAx.d.mts +0 -94
  166. package/dist/sanitize-CxxwKxAx.d.ts +0 -94
  167. package/dist/styling-BMDGQDgS.d.mts +0 -64
  168. package/dist/styling-BaoQtV06.d.ts +0 -64
  169. package/dist/types-DK2CoKOC.d.mts +0 -10
  170. package/dist/types-DK2CoKOC.d.ts +0 -10
  171. package/dist/useAdaptivePolicyWizard-BnjW4OR4.d.mts +0 -52
  172. package/dist/useAdaptivePolicyWizard-sb3m4-Zk.d.ts +0 -52
  173. package/dist/useBreach-CPr86Yan.d.mts +0 -115
  174. package/dist/useBreach-DkVXvtJK.d.ts +0 -115
  175. package/dist/useConsent-DCNkIJHR.d.mts +0 -75
  176. package/dist/useConsent-dOcELSfX.d.ts +0 -75
  177. package/dist/useCrossBorderTransfer-DixjLjN1.d.mts +0 -78
  178. package/dist/useCrossBorderTransfer-DvSq06lv.d.ts +0 -78
  179. package/dist/useDPIA-B6180UQn.d.mts +0 -109
  180. package/dist/useDPIA-CTqbNbww.d.ts +0 -109
  181. package/dist/useDSR-WvHk8_iu.d.mts +0 -85
  182. package/dist/useDSR-wH4H6hSM.d.ts +0 -85
  183. package/dist/useDefaultPrivacyPolicy-Cs2WQSYQ.d.mts +0 -162
  184. package/dist/useDefaultPrivacyPolicy-DkOqMg2e.d.ts +0 -162
  185. package/dist/useLawfulBasis-CKJ-kw84.d.mts +0 -79
  186. package/dist/useLawfulBasis-DFTmu1ca.d.ts +0 -79
  187. package/dist/useROPA-BSSU1rfx.d.ts +0 -76
  188. package/dist/useROPA-C2hjaBTz.d.mts +0 -76
@@ -1,11 +1,6 @@
1
- 'use strict';var chunkMQFZHA2D_js=require('./chunk-MQFZHA2D.js');function x(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function k(o){return o.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}function I(o){let l=o.split(`
2
- `),s=[],e=false;for(let r of l){let n=r.trimEnd();n.startsWith("- ")||n.startsWith("\u2022 ")?(e||(s.push("<ul>"),e=true),s.push(` <li>${x(n.replace(/^[-•]\s*/,""))}</li>`)):(e&&(s.push("</ul>"),e=false),n.trim()===""||s.push(`<p>${x(n)}</p>`));}return e&&s.push("</ul>"),s.join(`
3
- `)}var A=`
4
- /* \u2500\u2500 Reset & Base \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
5
- *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
6
-
7
- /* \u2500\u2500 Design tokens \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
8
- :root {
1
+ 'use strict';var chunkMQFZHA2D_js=require('./chunk-MQFZHA2D.js');function x(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function O(o,c){var r,i;if(!o)return "";let s={},e=(r=c.organizationInfo)!=null?r:{};typeof e.name=="string"&&e.name&&(s.orgName=e.name);for(let[t,l]of Object.entries(e))typeof l=="string"&&l&&!(t in s)&&(s[t]=l);for(let[t,l]of Object.entries((i=c.variableValues)!=null?i:{}))typeof l=="string"&&l&&(s[t]=l);return o.replace(/\{\{\s*([^}\s]+)\s*\}\}/g,(t,l)=>{let a=String(l).trim();return Object.prototype.hasOwnProperty.call(s,a)?s[a]:t})}function F(o){return o.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}function A(o){let c=o.split(`
2
+ `),s=[],e=false;for(let r of c){let i=r.trimEnd();i.startsWith("- ")||i.startsWith("\u2022 ")?(e||(s.push("<ul>"),e=true),s.push(` <li>${x(i.replace(/^[-•]\s*/,""))}</li>`)):(e&&(s.push("</ul>"),e=false),i.trim()===""||s.push(`<p>${x(i)}</p>`));}return e&&s.push("</ul>"),s.join(`
3
+ `)}var H=`
9
4
  --color-bg: #ffffff;
10
5
  --color-surface: #f9fafb;
11
6
  --color-border: #e5e7eb;
@@ -15,29 +10,34 @@
15
10
  --color-accent-light: #dcfce7;
16
11
  --color-heading: #064e3b;
17
12
  --color-link: #15803d;
18
- --color-link-hover: #166534;
13
+ --color-link-hover: #166534;`,L=`
14
+ --color-bg: #0f172a;
15
+ --color-surface: #1e293b;
16
+ --color-border: #334155;
17
+ --color-text: #f1f5f9;
18
+ --color-text-muted: #94a3b8;
19
+ --color-accent: #22c55e;
20
+ --color-accent-light: #14532d;
21
+ --color-heading: #86efac;
22
+ --color-link: #4ade80;
23
+ --color-link-hover: #86efac;`;function W(o){let c=o==="auto"?" color-scheme: light dark;":o==="dark"?" color-scheme: dark;":" color-scheme: light;",s=o==="dark"?L:H,e=o==="auto"?`
24
+
25
+ @media (prefers-color-scheme: dark) {
26
+ :root {${L}
27
+ }
28
+ }`:"";return `
29
+ :root {
30
+ ${c}${s}
19
31
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
20
32
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
21
33
  --radius: 8px;
22
34
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
23
35
  --max-width: 860px;
24
- }
25
-
26
- @media (prefers-color-scheme: dark) {
27
- :root {
28
- --color-bg: #0f172a;
29
- --color-surface: #1e293b;
30
- --color-border: #334155;
31
- --color-text: #f1f5f9;
32
- --color-text-muted: #94a3b8;
33
- --color-accent: #22c55e;
34
- --color-accent-light: #14532d;
35
- --color-heading: #86efac;
36
- --color-link: #4ade80;
37
- --color-link-hover: #86efac;
38
- }
39
- }
36
+ }${e}`}var B=`
37
+ /* \u2500\u2500 Reset & Base \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
38
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
40
39
 
40
+ /* \u2500\u2500 Design tokens \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */`,R=`
41
41
  /* \u2500\u2500 Layout \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
42
42
  html { font-size: 16px; scroll-behavior: smooth; }
43
43
 
@@ -243,76 +243,76 @@
243
243
 
244
244
  a { color: inherit; text-decoration: none; }
245
245
  }
246
- `.trim();function O(o,l){var $;let s=(l==null?void 0:l.includeStyles)!==false,e=($=l==null?void 0:l.customCSS)!=null?$:"",r=o.sections.filter(a=>a.included),n=x(o.organizationInfo.name||"Organisation"),t=x(o.title||"Privacy Policy"),d=x(o.version||"1.0"),i=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):new Date().toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}),p=o.lastUpdated?new Date(o.lastUpdated).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):i,y=o.organizationInfo.website?`<a href="${x(o.organizationInfo.website)}" target="_blank" rel="noopener">${x(o.organizationInfo.website)}</a>`:"",h=o.organizationInfo.privacyEmail?`<a href="mailto:${x(o.organizationInfo.privacyEmail)}">${x(o.organizationInfo.privacyEmail)}</a>`:"",z=`
246
+ `;function G(o){return `${B}${W(o)}${R}`.trim()}function _(o,c){var d,g;let s=(c==null?void 0:c.includeStyles)!==false,e=(d=c==null?void 0:c.customCSS)!=null?d:"",r=(g=c==null?void 0:c.theme)!=null?g:"light",i=o.sections.filter(n=>n.included),t=x(o.organizationInfo.name||"Organisation"),l=x(o.title||"Privacy Policy"),a=x(o.version||"1.0"),m=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):new Date().toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}),y=o.lastUpdated?new Date(o.lastUpdated).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):m,u=o.organizationInfo.website?`<a href="${x(o.organizationInfo.website)}" target="_blank" rel="noopener">${x(o.organizationInfo.website)}</a>`:"",b=o.organizationInfo.privacyEmail?`<a href="mailto:${x(o.organizationInfo.privacyEmail)}">${x(o.organizationInfo.privacyEmail)}</a>`:"",$=`
247
247
  <nav class="policy-toc" aria-label="Table of Contents">
248
248
  <h2>Table of Contents</h2>
249
249
  <ol>
250
- ${r.map((a,f)=>` <li><a href="#${k(a.title)}">${x(a.title)}</a></li>`).join(`
250
+ ${i.map((n,v)=>` <li><a href="#${F(n.title)}">${x(n.title)}</a></li>`).join(`
251
251
  `)}
252
252
  </ol>
253
- </nav>`,P=r.map((a,f)=>{let c=k(a.title),w=a.template||a.defaultContent||"",m=I(w);return ` <section class="policy-section" id="${c}" aria-labelledby="section-heading-${c}">
254
- <h2 id="section-heading-${c}">
255
- <span class="section-number" aria-hidden="true">${f+1}</span>
256
- ${x(a.title)}
253
+ </nav>`,w=i.map((n,v)=>{let p=F(n.title),f=n.template||n.defaultContent||"",h=O(f,{variableValues:o.variableValues,organizationInfo:o.organizationInfo}),z=A(h);return ` <section class="policy-section" id="${p}" aria-labelledby="section-heading-${p}">
254
+ <h2 id="section-heading-${p}">
255
+ <span class="section-number" aria-hidden="true">${v+1}</span>
256
+ ${x(n.title)}
257
257
  </h2>
258
- ${m}
258
+ ${z}
259
259
  </section>`}).join(`
260
260
 
261
- `),u=e?e.replace(/<\/style>/gi,""):"",D=s?`<style>
262
- ${A}
263
- ${u?`
261
+ `),P=e?e.replace(/<\/style>/gi,""):"",D=s?`<style>
262
+ ${G(r)}
263
+ ${P?`
264
264
  /* \u2500\u2500 Custom styles \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
265
- ${u}`:""}
266
- </style>`:u?`<style>${u}</style>`:"";return `<!DOCTYPE html>
265
+ ${P}`:""}
266
+ </style>`:P?`<style>${P}</style>`:"";return `<!DOCTYPE html>
267
267
  <html lang="en">
268
268
  <head>
269
269
  <meta charset="UTF-8" />
270
270
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
271
- <meta name="description" content="Privacy Policy for ${n}" />
271
+ <meta name="description" content="Privacy Policy for ${t}" />
272
272
  <meta name="generator" content="NDPA Toolkit" />
273
- <title>${t} \u2014 ${n}</title>
273
+ <title>${l} \u2014 ${t}</title>
274
274
  ${D}
275
275
  </head>
276
276
  <body>
277
277
  <div class="policy-wrapper">
278
278
 
279
279
  <header class="policy-header">
280
- <h1>${t}</h1>
280
+ <h1>${l}</h1>
281
281
  <div class="policy-meta">
282
- <span><strong>Organisation:</strong> ${n}</span>
283
- <span><strong>Effective:</strong> ${i}</span>
284
- <span><strong>Version:</strong> ${d}</span>
285
- ${p!==i?`<span><strong>Last updated:</strong> ${p}</span>`:""}
282
+ <span><strong>Organisation:</strong> ${t}</span>
283
+ <span><strong>Effective:</strong> ${m}</span>
284
+ <span><strong>Version:</strong> ${a}</span>
285
+ ${y!==m?`<span><strong>Last updated:</strong> ${y}</span>`:""}
286
286
  </div>
287
287
  <div>
288
288
  <span class="compliance-badge" role="img" aria-label="NDPA compliant">&#10003; NDPA 2023 Compliant</span>
289
289
  </div>
290
290
  </header>
291
291
 
292
- ${z}
292
+ ${$}
293
293
 
294
294
  <article class="policy-body" aria-label="Policy content">
295
295
 
296
- ${P}
296
+ ${w}
297
297
 
298
298
  </article>
299
299
 
300
300
  <footer class="policy-footer" role="contentinfo">
301
- <div>${n}${y?` &mdash; ${y}`:""}</div>
302
- ${h?`<div>Privacy contact: ${h}</div>`:""}
303
- <div>Effective ${i} &bull; Version ${d}</div>
301
+ <div>${t}${u?` &mdash; ${u}`:""}</div>
302
+ ${b?`<div>Privacy contact: ${b}</div>`:""}
303
+ <div>Effective ${m} &bull; Version ${a}</div>
304
304
  <div>Generated by <strong>NDPA Toolkit</strong> &mdash; Nigeria Data Protection Act 2023</div>
305
305
  </footer>
306
306
 
307
307
  </div>
308
308
  </body>
309
- </html>`}function H(o){return o.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}function W(o){let l=o.sections.filter(d=>d.included),s=o.title||"Privacy Policy",e=o.organizationInfo.name||"Organisation",r=o.version||"1.0",n=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):new Date().toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}),t=[];return t.push(`# ${s}`),t.push(""),t.push(`_Effective: ${n} | Version: ${r} | ${e}_`),t.push(""),o.organizationInfo.website&&t.push(`**Website:** ${o.organizationInfo.website} `),o.organizationInfo.privacyEmail&&t.push(`**Privacy contact:** ${o.organizationInfo.privacyEmail} `),(o.organizationInfo.website||o.organizationInfo.privacyEmail)&&t.push(""),t.push("> This privacy policy is compliant with the **Nigeria Data Protection Act (NDPA) 2023**."),t.push(""),t.push("---"),t.push(""),l.length>0&&(t.push("## Table of Contents"),t.push(""),l.forEach((d,i)=>{let p=H(`${i+1} ${d.title}`);t.push(`${i+1}. [${d.title}](#${p})`);}),t.push(""),t.push("---"),t.push("")),l.forEach((d,i)=>{t.push(`## ${i+1}. ${d.title}`),t.push("");let p=(d.template||d.defaultContent||"").trim();if(p){let y=p.split(`
310
- `);for(let h of y){let v=h.trimEnd();v.startsWith("-")||v.startsWith("\u2022")||v===""?t.push(v.replace(/^•/,"-")):t.push(v);}}t.push(""),t.push("---"),t.push("");}),t.push(`_Generated by **NDPA Toolkit** \u2014 ${e} \u2022 Version ${r}_`),t.push(""),t.join(`
311
- `)}function B(o,l){return chunkMQFZHA2D_js.d(this,null,function*(){var $;let s;try{let a=yield import('jspdf');s=($=a.jsPDF)!=null?$:a.default;}catch(a){throw new Error(`[ndpr-toolkit] PDF export requires the "jspdf" package. Install it with:
309
+ </html>`}function j(o){return o.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}function V(o){let c=o.sections.filter(l=>l.included),s=o.title||"Privacy Policy",e=o.organizationInfo.name||"Organisation",r=o.version||"1.0",i=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):new Date().toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}),t=[];return t.push(`# ${s}`),t.push(""),t.push(`_Effective: ${i} | Version: ${r} | ${e}_`),t.push(""),o.organizationInfo.website&&t.push(`**Website:** ${o.organizationInfo.website} `),o.organizationInfo.privacyEmail&&t.push(`**Privacy contact:** ${o.organizationInfo.privacyEmail} `),(o.organizationInfo.website||o.organizationInfo.privacyEmail)&&t.push(""),t.push("> This privacy policy is compliant with the **Nigeria Data Protection Act (NDPA) 2023**."),t.push(""),t.push("---"),t.push(""),c.length>0&&(t.push("## Table of Contents"),t.push(""),c.forEach((l,a)=>{let m=j(`${a+1} ${l.title}`);t.push(`${a+1}. [${l.title}](#${m})`);}),t.push(""),t.push("---"),t.push("")),c.forEach((l,a)=>{t.push(`## ${a+1}. ${l.title}`),t.push("");let m=(l.template||l.defaultContent||"").trim();if(m){let y=m.split(`
310
+ `);for(let u of y){let b=u.trimEnd();b.startsWith("-")||b.startsWith("\u2022")||b===""?t.push(b.replace(/^•/,"-")):t.push(b);}}t.push(""),t.push("---"),t.push("");}),t.push(`_Generated by **NDPA Toolkit** \u2014 ${e} \u2022 Version ${r}_`),t.push(""),t.join(`
311
+ `)}function M(o,c){return chunkMQFZHA2D_js.d(this,null,function*(){var D;let s;try{let d=yield import('jspdf');s=(D=d.jsPDF)!=null?D:d.default;}catch(d){throw new Error(`[ndpr-toolkit] PDF export requires the "jspdf" package. Install it with:
312
312
  pnpm add jspdf
313
- See: https://ndprtoolkit.com.ng/docs/guides/styling-customization`)}let e=new s({unit:"mm",format:"a4"}),r=e.internal.pageSize.getWidth(),n=e.internal.pageSize.getHeight(),t=20,d=r-t*2,i=t,p=o.organizationInfo.name||"",y=o.title||"Privacy Policy",h=o.version||"1.0",v=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString():new Date().toLocaleDateString(),z=()=>{e.setFontSize(8),e.setFont("helvetica","italic"),e.setTextColor(150,150,150),e.text(p?`${p} \u2014 ${y}`:y,t,12),e.setDrawColor(220,220,220),e.setLineWidth(.3),e.line(t,14,r-t,14),e.setTextColor(0,0,0);},P=a=>{i+a>n-t-10&&(e.addPage(),i=t+8,z());};if((l==null?void 0:l.includeCoverPage)!==false){e.setFillColor(22,163,74),e.rect(0,0,r,12,"F"),e.setFontSize(28),e.setFont("helvetica","bold"),e.setTextColor(22,163,74);let a=e.splitTextToSize(y,d-10),f=72;a.forEach(w=>{e.text(w,r/2,f,{align:"center"}),f+=11;}),e.setDrawColor(22,163,74),e.setLineWidth(.6);let c=f+6;if(e.line(r/2-30,c,r/2+30,c),e.setFontSize(14),e.setFont("helvetica","normal"),e.setTextColor(40,40,40),e.text(p,r/2,c+14,{align:"center"}),e.setFontSize(10),e.setTextColor(100,100,100),e.text(`Effective Date: ${v}`,r/2,c+26,{align:"center"}),e.text(`Version ${h}`,r/2,c+34,{align:"center"}),(l==null?void 0:l.includeComplianceBadge)!==false){let w=c+52,m="Compliant with the Nigeria Data Protection Act (NDPA) 2023";e.setFontSize(8.5),e.setFont("helvetica","bold"),e.setTextColor(255,255,255);let g=e.getTextWidth(m),b=7,T=3.5,S=(r-g-b*2)/2;e.setFillColor(22,163,74),e.roundedRect(S,w-T-1,g+b*2,7+T,2,2,"F"),e.text(m,r/2,w+1.5,{align:"center"}),e.setTextColor(0,0,0);}e.setFillColor(22,163,74),e.rect(0,n-12,r,12,"F"),e.addPage(),i=t+8,z();}let u=o.sections.filter(a=>a.included);(l==null?void 0:l.includeTOC)!==false&&(e.setFontSize(18),e.setFont("helvetica","bold"),e.setTextColor(22,163,74),e.text("Table of Contents",t,i+4),e.setDrawColor(22,163,74),e.setLineWidth(.5),e.line(t,i+8,t+80,i+8),i+=18,e.setFontSize(10.5),e.setFont("helvetica","normal"),e.setTextColor(40,40,40),u.forEach((a,f)=>{P(7);let c=`${f+1}. ${a.title}`;e.text(c,t+4,i),i+=6.5;}),e.addPage(),i=t+8,z()),u.forEach((a,f)=>{P(18),e.setFillColor(22,163,74),e.circle(t+3.5,i-1.5,3.8,"F"),e.setFontSize(8),e.setFont("helvetica","bold"),e.setTextColor(255,255,255),e.text(String(f+1),t+3.5,i-.5,{align:"center"}),e.setFontSize(13),e.setFont("helvetica","bold"),e.setTextColor(22,163,74),e.text(a.title,t+11,i),i+=3,e.setDrawColor(200,200,200),e.setLineWidth(.25),e.line(t+11,i,r-t,i),i+=6;let c=(a.template||a.defaultContent||"").trim();if(c){let w=c.split(`
314
- `);e.setFontSize(9.5),e.setFont("helvetica","normal"),e.setTextColor(50,50,50),w.forEach(m=>{let g=m.trimEnd();if(g===""){i+=3;return}let b=g.startsWith("-")||g.startsWith("\u2022"),T=b?t+8:t+4,S=b?g.replace(/^[-•]\s*/,""):g,C=d-(b?12:8);e.splitTextToSize(S,C).forEach((E,L)=>{P(5),b&&L===0&&(e.setFillColor(22,163,74),e.circle(t+4,i-1,.9,"F")),e.text(E,T,i),i+=5;});});}i+=10;});let D=e.getNumberOfPages();for(let a=1;a<=D;a++)e.setPage(a),e.setFontSize(7.5),e.setFont("helvetica","normal"),e.setTextColor(160,160,160),e.setDrawColor(220,220,220),e.setLineWidth(.3),e.line(t,n-12,r-t,n-12),e.text(p?`${p} \u2014 Privacy Policy`:"Privacy Policy",t,n-8),e.text(`Page ${a} of ${D}`,r-t,n-8,{align:"right"}),e.setTextColor(0,0,0);return e.setProperties({title:y,author:p,subject:"Privacy Policy \u2014 NDPA 2023 Compliant",keywords:"privacy policy, NDPA, Nigeria, data protection"}),e.output("blob")})}function G(o,l){return chunkMQFZHA2D_js.d(this,null,function*(){let s;try{s=yield import('docx');}catch(m){throw new Error(`[ndpr-toolkit] Word export requires the "docx" package. Install it with:
313
+ See: https://ndprtoolkit.com.ng/docs/guides/styling-customization`)}let e=new s({unit:"mm",format:"a4"}),r=e.internal.pageSize.getWidth(),i=e.internal.pageSize.getHeight(),t=20,l=r-t*2,a=t,m=o.organizationInfo.name||"",y=o.title||"Privacy Policy",u=o.version||"1.0",b=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString():new Date().toLocaleDateString(),T=()=>{e.setFontSize(8),e.setFont("helvetica","italic"),e.setTextColor(150,150,150),e.text(m?`${m} \u2014 ${y}`:y,t,12),e.setDrawColor(220,220,220),e.setLineWidth(.3),e.line(t,14,r-t,14),e.setTextColor(0,0,0);},$=d=>{a+d>i-t-10&&(e.addPage(),a=t+8,T());};if((c==null?void 0:c.includeCoverPage)!==false){e.setFillColor(22,163,74),e.rect(0,0,r,12,"F"),e.setFontSize(28),e.setFont("helvetica","bold"),e.setTextColor(22,163,74);let d=e.splitTextToSize(y,l-10),g=72;d.forEach(v=>{e.text(v,r/2,g,{align:"center"}),g+=11;}),e.setDrawColor(22,163,74),e.setLineWidth(.6);let n=g+6;if(e.line(r/2-30,n,r/2+30,n),e.setFontSize(14),e.setFont("helvetica","normal"),e.setTextColor(40,40,40),e.text(m,r/2,n+14,{align:"center"}),e.setFontSize(10),e.setTextColor(100,100,100),e.text(`Effective Date: ${b}`,r/2,n+26,{align:"center"}),e.text(`Version ${u}`,r/2,n+34,{align:"center"}),(c==null?void 0:c.includeComplianceBadge)!==false){let v=n+52,p="Compliant with the Nigeria Data Protection Act (NDPA) 2023";e.setFontSize(8.5),e.setFont("helvetica","bold"),e.setTextColor(255,255,255);let f=e.getTextWidth(p),h=7,z=3.5,S=(r-f-h*2)/2;e.setFillColor(22,163,74),e.roundedRect(S,v-z-1,f+h*2,7+z,2,2,"F"),e.text(p,r/2,v+1.5,{align:"center"}),e.setTextColor(0,0,0);}e.setFillColor(22,163,74),e.rect(0,i-12,r,12,"F"),e.addPage(),a=t+8,T();}let w=o.sections.filter(d=>d.included);(c==null?void 0:c.includeTOC)!==false&&(e.setFontSize(18),e.setFont("helvetica","bold"),e.setTextColor(22,163,74),e.text("Table of Contents",t,a+4),e.setDrawColor(22,163,74),e.setLineWidth(.5),e.line(t,a+8,t+80,a+8),a+=18,e.setFontSize(10.5),e.setFont("helvetica","normal"),e.setTextColor(40,40,40),w.forEach((d,g)=>{$(7);let n=`${g+1}. ${d.title}`;e.text(n,t+4,a),a+=6.5;}),e.addPage(),a=t+8,T()),w.forEach((d,g)=>{$(18),e.setFillColor(22,163,74),e.circle(t+3.5,a-1.5,3.8,"F"),e.setFontSize(8),e.setFont("helvetica","bold"),e.setTextColor(255,255,255),e.text(String(g+1),t+3.5,a-.5,{align:"center"}),e.setFontSize(13),e.setFont("helvetica","bold"),e.setTextColor(22,163,74),e.text(d.title,t+11,a),a+=3,e.setDrawColor(200,200,200),e.setLineWidth(.25),e.line(t+11,a,r-t,a),a+=6;let n=(d.template||d.defaultContent||"").trim();if(n){let v=n.split(`
314
+ `);e.setFontSize(9.5),e.setFont("helvetica","normal"),e.setTextColor(50,50,50),v.forEach(p=>{let f=p.trimEnd();if(f===""){a+=3;return}let h=f.startsWith("-")||f.startsWith("\u2022"),z=h?t+8:t+4,S=h?f.replace(/^[-•]\s*/,""):f,C=l-(h?12:8);e.splitTextToSize(S,C).forEach((E,I)=>{$(5),h&&I===0&&(e.setFillColor(22,163,74),e.circle(t+4,a-1,.9,"F")),e.text(E,z,a),a+=5;});});}a+=10;});let P=e.getNumberOfPages();for(let d=1;d<=P;d++)e.setPage(d),e.setFontSize(7.5),e.setFont("helvetica","normal"),e.setTextColor(160,160,160),e.setDrawColor(220,220,220),e.setLineWidth(.3),e.line(t,i-12,r-t,i-12),e.text(m?`${m} \u2014 Privacy Policy`:"Privacy Policy",t,i-8),e.text(`Page ${d} of ${P}`,r-t,i-8,{align:"right"}),e.setTextColor(0,0,0);return e.setProperties({title:y,author:m,subject:"Privacy Policy \u2014 NDPA 2023 Compliant",keywords:"privacy policy, NDPA, Nigeria, data protection"}),e.output("blob")})}function X(o,c){return chunkMQFZHA2D_js.d(this,null,function*(){let s;try{s=yield import('docx');}catch(p){throw new Error(`[ndpr-toolkit] Word export requires the "docx" package. Install it with:
315
315
  pnpm add docx
316
- See: https://ndprtoolkit.com.ng/docs/guides/styling-customization`)}let{Document:e,Paragraph:r,TextRun:n,HeadingLevel:t,Packer:d,Header:i,Footer:p,PageNumber:y,AlignmentType:h,BorderStyle:v,ShadingType:z,TableOfContents:P}=s,u=o.organizationInfo.name||"",D=o.title||"Privacy Policy",$=o.version||"1.0",a=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):new Date().toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}),f=o.sections.filter(m=>m.included),c=[];if(c.push(new r({children:[new n({text:D,bold:true,size:52,color:"064e3b"})],heading:t.TITLE,spacing:{after:160},alignment:h.CENTER})),c.push(new r({children:[new n({text:`${u}${u?" \u2022 ":""}Version ${$} \u2022 Effective ${a}`,size:20,color:"6b7280",italics:true})],spacing:{after:120},alignment:h.CENTER})),c.push(new r({children:[new n({text:"Compliant with the Nigeria Data Protection Act (NDPA) 2023",size:18,color:"16a34a",bold:true})],spacing:{after:400},alignment:h.CENTER})),c.push(new r({children:[],spacing:{after:200},border:{bottom:{color:"16a34a",style:v.SINGLE,size:6,space:1}}})),(l==null?void 0:l.includeTOC)!==false){if(c.push(new r({children:[new n({text:"Table of Contents",bold:true,size:28,color:"064e3b"})],heading:t.HEADING_1,spacing:{before:400,after:200}})),typeof P=="function")try{c.push(new P("Table of Contents",{hyperlink:!0,headingStyleRange:"1-1"}));}catch(m){f.forEach((g,b)=>{c.push(new r({children:[new n({text:`${b+1}. ${g.title}`,size:22,color:"15803d"})],spacing:{after:80}}));});}else f.forEach((m,g)=>{c.push(new r({children:[new n({text:`${g+1}. ${m.title}`,size:22,color:"15803d"})],spacing:{after:80}}));});c.push(new r({children:[],pageBreakBefore:true}));}f.forEach((m,g)=>{c.push(new r({children:[new n({text:`${g+1}. ${m.title}`,bold:true,size:28,color:"064e3b"})],heading:t.HEADING_1,spacing:{before:400,after:200},border:{bottom:{color:"dcfce7",style:v.SINGLE,size:4,space:1}}}));let b=(m.template||m.defaultContent||"").trim();b&&b.split(`
317
- `).forEach(S=>{let C=S.trimEnd();if(C===""){c.push(new r({children:[],spacing:{after:60}}));return}let F=C.startsWith("- ")||C.startsWith("\u2022 "),E=F?C.replace(/^[-•]\s*/,""):C;F?c.push(new r({children:[new n({text:E,size:22})],spacing:{after:80},bullet:{level:0}})):c.push(new r({children:[new n({text:E,size:22})],spacing:{after:100}}));});}),c.push(new r({children:[new n({text:`Generated by NDPA Toolkit \u2014 ${u}${u?" \u2014 ":""}Privacy Policy v${$}`,size:16,color:"9ca3af",italics:true})],spacing:{before:600},alignment:h.CENTER}));let w=new e({title:D,description:"Privacy Policy \u2014 NDPA 2023 Compliant",styles:{paragraphStyles:[{id:"Normal",name:"Normal",run:{font:"Calibri",size:22}}]},sections:[{headers:{default:new i({children:[new r({children:[new n({text:u||"Privacy Policy",size:16,color:"9ca3af"})],alignment:h.RIGHT})]})},footers:{default:new p({children:[new r({children:[new n({text:"Page ",size:16,color:"9ca3af"}),new n({children:[y.CURRENT],size:16,color:"9ca3af"}),new n({text:" of ",size:16,color:"9ca3af"}),new n({children:[y.TOTAL_PAGES],size:16,color:"9ca3af"})],alignment:h.CENTER})]})},children:c}]});return d.toBlob(w)})}exports.a=O;exports.b=W;exports.c=B;exports.d=G;//# sourceMappingURL=chunk-UFPSUO52.js.map
318
- //# sourceMappingURL=chunk-UFPSUO52.js.map
316
+ See: https://ndprtoolkit.com.ng/docs/guides/styling-customization`)}let{Document:e,Paragraph:r,TextRun:i,HeadingLevel:t,Packer:l,Header:a,Footer:m,PageNumber:y,AlignmentType:u,BorderStyle:b,ShadingType:T,TableOfContents:$}=s,w=o.organizationInfo.name||"",P=o.title||"Privacy Policy",D=o.version||"1.0",d=o.effectiveDate?new Date(o.effectiveDate).toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}):new Date().toLocaleDateString("en-NG",{day:"numeric",month:"long",year:"numeric"}),g=o.sections.filter(p=>p.included),n=[];if(n.push(new r({children:[new i({text:P,bold:true,size:52,color:"064e3b"})],heading:t.TITLE,spacing:{after:160},alignment:u.CENTER})),n.push(new r({children:[new i({text:`${w}${w?" \u2022 ":""}Version ${D} \u2022 Effective ${d}`,size:20,color:"6b7280",italics:true})],spacing:{after:120},alignment:u.CENTER})),n.push(new r({children:[new i({text:"Compliant with the Nigeria Data Protection Act (NDPA) 2023",size:18,color:"16a34a",bold:true})],spacing:{after:400},alignment:u.CENTER})),n.push(new r({children:[],spacing:{after:200},border:{bottom:{color:"16a34a",style:b.SINGLE,size:6,space:1}}})),(c==null?void 0:c.includeTOC)!==false){if(n.push(new r({children:[new i({text:"Table of Contents",bold:true,size:28,color:"064e3b"})],heading:t.HEADING_1,spacing:{before:400,after:200}})),typeof $=="function")try{n.push(new $("Table of Contents",{hyperlink:!0,headingStyleRange:"1-1"}));}catch(p){g.forEach((f,h)=>{n.push(new r({children:[new i({text:`${h+1}. ${f.title}`,size:22,color:"15803d"})],spacing:{after:80}}));});}else g.forEach((p,f)=>{n.push(new r({children:[new i({text:`${f+1}. ${p.title}`,size:22,color:"15803d"})],spacing:{after:80}}));});n.push(new r({children:[],pageBreakBefore:true}));}g.forEach((p,f)=>{n.push(new r({children:[new i({text:`${f+1}. ${p.title}`,bold:true,size:28,color:"064e3b"})],heading:t.HEADING_1,spacing:{before:400,after:200},border:{bottom:{color:"dcfce7",style:b.SINGLE,size:4,space:1}}}));let h=(p.template||p.defaultContent||"").trim();h&&h.split(`
317
+ `).forEach(S=>{let C=S.trimEnd();if(C===""){n.push(new r({children:[],spacing:{after:60}}));return}let N=C.startsWith("- ")||C.startsWith("\u2022 "),E=N?C.replace(/^[-•]\s*/,""):C;N?n.push(new r({children:[new i({text:E,size:22})],spacing:{after:80},bullet:{level:0}})):n.push(new r({children:[new i({text:E,size:22})],spacing:{after:100}}));});}),n.push(new r({children:[new i({text:`Generated by NDPA Toolkit \u2014 ${w}${w?" \u2014 ":""}Privacy Policy v${D}`,size:16,color:"9ca3af",italics:true})],spacing:{before:600},alignment:u.CENTER}));let v=new e({title:P,description:"Privacy Policy \u2014 NDPA 2023 Compliant",styles:{paragraphStyles:[{id:"Normal",name:"Normal",run:{font:"Calibri",size:22}}]},sections:[{headers:{default:new a({children:[new r({children:[new i({text:w||"Privacy Policy",size:16,color:"9ca3af"})],alignment:u.RIGHT})]})},footers:{default:new m({children:[new r({children:[new i({text:"Page ",size:16,color:"9ca3af"}),new i({children:[y.CURRENT],size:16,color:"9ca3af"}),new i({text:" of ",size:16,color:"9ca3af"}),new i({children:[y.TOTAL_PAGES],size:16,color:"9ca3af"})],alignment:u.CENTER})]})},children:n}]});return l.toBlob(v)})}exports.a=_;exports.b=V;exports.c=M;exports.d=X;//# sourceMappingURL=chunk-Z73T6MWY.js.map
318
+ //# sourceMappingURL=chunk-Z73T6MWY.js.map