@broberg/legal 0.5.0 → 0.7.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 CHANGED
@@ -91,8 +91,11 @@ Fill the slots with your facts: in JS/TS, `resolveTemplate(template, FACTS)` fro
91
91
  another language, render each `facts` block like this: `hosting` is a table (What | Where);
92
92
  `dataCategories` is a list; `subprocessors` is a table (Vendor | Used for | Where | Transfer);
93
93
  `conversationAnalysis` is one sentence saying whether your product is covered by the section on
94
- conversation analysis. A missing English translation falls back to Danish; `stale: true` means the
95
- English text is older than the Danish one, so show the Danish one or a notice.
94
+ conversation analysis. Since 0.6.0 all five documents exist in English (`locale: "en"`), block for
95
+ block the same as the Danish — same ids, same order — so a link or a diff addresses the same paragraph
96
+ in both languages. `stale: true` means the English text is older than the Danish one, so show the
97
+ Danish one or a notice. The Danish version prevails if the two differ (stated in the documents
98
+ themselves). `parityProblems(sources)` is the check that keeps every translation in step.
96
99
 
97
100
  ### 4. Cache: keep your own copy, and only fetch a new edition when there is one (HTTP route)
98
101
 
@@ -200,3 +203,28 @@ README §4 trap fixed. Additive; the texts are unchanged.
200
203
  gone too: legal.broberg.ai is an API.
201
204
 
202
205
  Plan: `docs/features/F110-legal-documents.md`, `docs/features/F110.14-legal-is-an-api.md`.
206
+
207
+ ## Pseudonymisation — `@broberg/legal/pseudonymise` (0.7.0, F110.8)
208
+
209
+ Run every conversation through this BEFORE it enters a 6-month analysis copy. Techniques and
210
+ standards: `docs/legal/pseudonymisation-standards.md`. Pseudonymised data is still personal data.
211
+
212
+ ```ts
213
+ import { createConversation, toAnalysisRecord, deleteExpired } from "@broberg/legal/pseudonymise";
214
+
215
+ const key = process.env.ANALYSIS_PSEUDONYM_KEY!; // one domain, vault-held, never next to the copy
216
+ const convo = createConversation({ key, knownNames: [sender.name, ...parties] /*, findNames */ });
217
+ const rec = await toAnalysisRecord({ id, subjectId: user.id, text, collectedAt: new Date() }, convo, key);
218
+ // rec.subject = keyed pseudonym · rec.text = names → [PERSON-n], CPR → [CPR], e-mail/phone/IP → keyed markers,
219
+ // health sentences → [HELBRED FJERNET] · rec.keepUntil ≤ 6 months · rec.notExamined = what was NOT checked
220
+ await deleteExpired(store, new Date()); // your store: listExpired(now) + delete(ids)
221
+ ```
222
+
223
+ - **Same person, same pseudonym** under one key; another key → unrelated pseudonyms (rotation unlinks).
224
+ - **Names:** the ones you pass in `knownNames` are replaced consistently through one conversation
225
+ (full name, first name alone, genitive «Mettes»). Names you did not pass are NOT found unless you
226
+ give `findNames` (e.g. an EU model through `@broberg/ai-sdk`) — and until then `notExamined`
227
+ carries `"names-not-known"`. Measured: 16/16 on the Danish known-name corpus in the tests.
228
+ - **Health (art. 9):** sentences matching a Danish health vocabulary are removed unless
229
+ `health: "consented"` (explicit consent). It is a keyword step: `"health-beyond-keywords"` says so.
230
+ - Addresses and indirect identifiers are not examined (`notExamined`).
package/dist/index.cjs CHANGED
@@ -208,6 +208,33 @@ function resolveBlock(b, locale, product) {
208
208
  if (b.type === "facts") return FACT_TEMPLATES[locale][b.fact](product, b.id);
209
209
  return [b];
210
210
  }
211
+ function shape(src) {
212
+ return src.sections.flatMap((sec) => [
213
+ `section ${sec.id}`,
214
+ ...sec.blocks.map(
215
+ (b) => b.type === "facts" ? `${b.id} facts:${b.fact}` : b.type === "list" ? `${b.id} list:${b.items.length} items` : b.type === "table" ? `${b.id} table:${b.head.length}x${b.rows.length}` : `${b.id} ${b.type}`
216
+ )
217
+ ]);
218
+ }
219
+ function parityProblems(sources) {
220
+ const problems = [];
221
+ for (const t of sources) {
222
+ if (t.locale === MASTER_LOCALE) continue;
223
+ const m = sources.find((s) => s.doc === t.doc && s.locale === MASTER_LOCALE);
224
+ if (!m) {
225
+ problems.push(`${t.doc}.${t.locale}: no ${MASTER_LOCALE} master`);
226
+ continue;
227
+ }
228
+ const want = shape(m), got = shape(t);
229
+ for (let i = 0; i < Math.max(want.length, got.length); i++) {
230
+ if (want[i] !== got[i]) {
231
+ problems.push(`${t.doc}.${t.locale}: at position ${i} the master has \xAB${want[i] ?? "(end)"}\xBB, the translation \xAB${got[i] ?? "(end)"}\xBB`);
232
+ break;
233
+ }
234
+ }
235
+ }
236
+ return problems;
237
+ }
211
238
  function createLibrary(sources, products) {
212
239
  const byKey = new Map(sources.map((s) => [`${s.doc}:${s.locale}`, s]));
213
240
  const byProduct = new Map(products.map((p) => [p.id, p]));
@@ -702,8 +729,482 @@ var SUPPORT_DA = {
702
729
  ]
703
730
  };
704
731
 
732
+ // src/content/terms.en.ts
733
+ var TERMS_EN = {
734
+ doc: "terms",
735
+ locale: "en",
736
+ title: "Terms of use",
737
+ version: "2026-11-02",
738
+ effectiveFrom: "2026-11-02",
739
+ material: true,
740
+ draft: false,
741
+ translationOf: { version: "2026-11-02", sourceHash: "87b108cb2fad683f4586e3ad7e09560c049c6a8d929a328de7b2b8a4461643f7" },
742
+ sections: [
743
+ {
744
+ id: "hvem",
745
+ heading: "Who provides the service",
746
+ blocks: [
747
+ { id: "hvem.p1", type: "p", text: "The service is provided by WEB HOUSE ApS, Riberhusvej 9, 9492 Blokhus, Denmark, CVR 21221198 (broberg.ai). Questions about these terms: legal@broberg.ai." }
748
+ ]
749
+ },
750
+ {
751
+ id: "accept",
752
+ heading: "Accepting the terms",
753
+ blocks: [
754
+ { id: "accept.p1", type: "p", text: "By creating an account or using the service, you accept these terms." },
755
+ { id: "accept.p2", type: "p", text: "When you sign up, we ask you to actively confirm that you accept the terms \u2014 the box is not ticked in advance. We record which version of the terms you accepted, and when." },
756
+ { id: "accept.p3", type: "p", text: "Our privacy policy is not part of what you accept. It explains how we process your information, and on which legal basis." }
757
+ ]
758
+ },
759
+ {
760
+ id: "brug",
761
+ heading: "Use the service responsibly",
762
+ blocks: [
763
+ { id: "brug.p1", type: "p", text: "You may only put content into the service that you have the right to use, and you may not use the service for unlawful, infringing or harmful content. We may close an account that is misused." }
764
+ ]
765
+ },
766
+ {
767
+ id: "indhold",
768
+ heading: "Your content",
769
+ blocks: [
770
+ { id: "indhold.p1", type: "p", text: "You own the content you put into the service. We use it to provide the service to you and to the people you share with, and as described in the privacy policy." }
771
+ ]
772
+ },
773
+ {
774
+ id: "ai",
775
+ heading: "AI in the service",
776
+ blocks: [
777
+ { id: "ai.p1", type: "p", text: "Answers and suggestions from AI may be wrong. The AI suggests \u2014 you decide. Do not use AI answers as the only basis for important decisions." }
778
+ ]
779
+ },
780
+ {
781
+ id: "ansvar",
782
+ heading: "Liability",
783
+ blocks: [
784
+ { id: "ansvar.p1", type: "p", text: "We provide the service with care, but cannot guarantee that it is always available or free of errors. We are not liable for indirect loss. This limitation of liability does not apply where mandatory law provides otherwise." }
785
+ ]
786
+ },
787
+ {
788
+ id: "aendringer",
789
+ heading: "Changes to the terms",
790
+ blocks: [
791
+ { id: "aendringer.p1", type: "p", text: "If we make material changes, we ask you to accept the terms again. We announce minor changes in the service, and continued use after the announcement means that you accept them. The date and version at the top show the version in force." }
792
+ ]
793
+ },
794
+ {
795
+ id: "lov",
796
+ heading: "Governing law and language",
797
+ blocks: [
798
+ { id: "lov.p1", type: "p", text: "These terms are governed by Danish law, and disputes are settled by the Danish courts. If the Danish version and a translated version differ, the Danish version prevails." }
799
+ ]
800
+ }
801
+ ]
802
+ };
803
+
804
+ // src/content/privacy.en.ts
805
+ var PRIVACY_EN = {
806
+ doc: "privacy",
807
+ locale: "en",
808
+ title: "Privacy policy",
809
+ version: "2026-11-02",
810
+ effectiveFrom: "2026-11-02",
811
+ material: false,
812
+ draft: false,
813
+ translationOf: { version: "2026-11-02", sourceHash: "28f73420bd8c7fa77d22b17063746e4b71c03e4395be78fdb69100bc6282c4fe" },
814
+ sections: [
815
+ {
816
+ id: "dataansvarlig",
817
+ heading: "Controller",
818
+ blocks: [
819
+ { id: "dataansvarlig.p1", type: "p", text: "WEB HOUSE ApS, Riberhusvej 9, 9492 Blokhus, Denmark, CVR 21221198. Contact: legal@broberg.ai." },
820
+ { id: "dataansvarlig.p2", type: "p", text: "This policy explains which information we store, why, and for how long. It is information for you \u2014 it is not something you have to accept." }
821
+ ]
822
+ },
823
+ {
824
+ id: "oplysninger",
825
+ heading: "Which information we process",
826
+ blocks: [{ id: "oplysninger.facts", type: "facts", fact: "dataCategories" }]
827
+ },
828
+ {
829
+ id: "formaal",
830
+ heading: "Why we process it",
831
+ blocks: [
832
+ {
833
+ id: "formaal.table",
834
+ type: "table",
835
+ head: ["Purpose", "Legal basis"],
836
+ rows: [
837
+ ["To provide the service to you", "Performance of a contract (GDPR art. 6(1)(b))"],
838
+ ["To answer enquiries and keep the service secure", "Legitimate interest (art. 6(1)(f))"],
839
+ ["Analysis to improve our products (see below)", "Legitimate interest (art. 6(1)(f)) after a documented balancing of interests"],
840
+ ["Bookkeeping", "Legal obligation (art. 6(1)(c))"],
841
+ ["Analysis of your own content, if you have said yes", "Explicit consent (art. 6(1)(a) and art. 9(2)(a))"]
842
+ ]
843
+ }
844
+ ]
845
+ },
846
+ {
847
+ id: "analyse",
848
+ heading: "Analysis of conversations to improve our products",
849
+ blocks: [
850
+ { id: "analyse.p1", type: "p", text: "We analyse how our products are used \u2014 including conversations with our AI assistants \u2014 to fix errors, make the products easier to use, improve the quality of the automatic answers and be able to review the products afterwards." },
851
+ {
852
+ id: "analyse.list",
853
+ type: "list",
854
+ items: [
855
+ "Usage: which screens and steps are used, where people get stuck, errors and time spent.",
856
+ "Structure: what an enquiry is about (e.g. \xABasked about an exercise programme\xBB) \u2014 the content itself is removed.",
857
+ "Anonymous figures: statistics that are only shown for groups of at least 10 people, so that no one can be singled out.",
858
+ "Full content: your own descriptions and records \u2014 only if you have explicitly said yes, and you can always withdraw it."
859
+ ]
860
+ },
861
+ { id: "analyse.p2", type: "p", text: "Before the analysis, the information is pseudonymised: name, e-mail, phone and other direct identifiers are replaced with codes, CPR numbers are removed, and names in free text are replaced. Pseudonymised information is still personal data, and all your rights apply." },
862
+ { id: "analyse.p3", type: "p", text: "Health information is only included in the analysis if you have given explicit consent. Otherwise it is removed before the analysis takes place." },
863
+ { id: "analyse.p4", type: "p", text: "We do not use the analysis for marketing profiles or targeted advertising, we do not sell data, and we do not use your information to train external AI models." },
864
+ { id: "analyse.facts", type: "facts", fact: "conversationAnalysis" }
865
+ ]
866
+ },
867
+ {
868
+ id: "opbevaring",
869
+ heading: "How long we keep the information",
870
+ blocks: [
871
+ {
872
+ id: "opbevaring.table",
873
+ type: "table",
874
+ head: ["Information", "How long"],
875
+ rows: [
876
+ ["Your account and your content", "For as long as you have the account"],
877
+ ["The pseudonymised copy for analysis", "At most 6 months"],
878
+ ["Anonymous statistics", "Without a time limit \u2014 they cannot be traced back to you"],
879
+ ["Information we must keep for bookkeeping", "5 years, as the Danish Bookkeeping Act requires"]
880
+ ]
881
+ },
882
+ { id: "opbevaring.p1", type: "p", text: "If you ask us to delete your information, it is done within 90 days, and from backups within a further 90 days." }
883
+ ]
884
+ },
885
+ {
886
+ id: "hvor",
887
+ heading: "Where your information is stored",
888
+ blocks: [{ id: "hvor.facts", type: "facts", fact: "hosting" }]
889
+ },
890
+ {
891
+ id: "deling",
892
+ heading: "Who we share information with",
893
+ blocks: [
894
+ { id: "deling.p1", type: "p", text: "We never sell data. We use these processors, which may only process the information on our instructions:" },
895
+ { id: "deling.facts", type: "facts", fact: "subprocessors" },
896
+ { id: "deling.p2", type: "p", text: "Transfers outside the EU only take place with a valid transfer mechanism, e.g. the European Commission's standard contractual clauses or the EU-US Data Privacy Framework." }
897
+ ]
898
+ },
899
+ {
900
+ id: "rettigheder",
901
+ heading: "Your rights",
902
+ blocks: [
903
+ { id: "rettigheder.p1", type: "p", text: "You have the right of access, rectification, erasure, restriction of processing and data portability." },
904
+ { id: "rettigheder.p2", type: "p", text: "You have the right to object to processing based on legitimate interest, including the analysis to improve our products (GDPR art. 21). Write to legal@broberg.ai." },
905
+ { id: "rettigheder.p3", type: "p", text: "If you have given consent, you can always withdraw it \u2014 as easily as you gave it." },
906
+ { id: "rettigheder.p4", type: "p", text: "You can complain to the Danish Data Protection Agency (Datatilsynet, datatilsynet.dk)." }
907
+ ]
908
+ },
909
+ {
910
+ id: "cookies",
911
+ heading: "Cookies",
912
+ blocks: [
913
+ { id: "cookies.p1", type: "p", text: "We set no cookies for tracking or advertising. Your choice in the cookie box is stored in one necessary cookie, broberg-consent, for up to 12 months. If you log in, a technical cookie is set that only keeps you logged in." }
914
+ ]
915
+ },
916
+ {
917
+ id: "aendringer",
918
+ heading: "Changes",
919
+ blocks: [
920
+ { id: "aendringer.p1", type: "p", text: "If we change the policy, the date and version at the top are updated. The Danish version prevails if it differs from a translation." }
921
+ ]
922
+ }
923
+ ]
924
+ };
925
+
926
+ // src/content/trust.en.ts
927
+ var TRUST_EN = {
928
+ doc: "trust",
929
+ locale: "en",
930
+ title: "Trust and security",
931
+ version: "2026-11-02",
932
+ effectiveFrom: "2026-11-02",
933
+ material: false,
934
+ draft: false,
935
+ translationOf: { version: "2026-11-02", sourceHash: "5f8763449ddd0b969a35c5b2a2e3af2165d2514935fbcbaaaba67100e03a54e4" },
936
+ sections: [
937
+ {
938
+ id: "kort",
939
+ heading: "In short",
940
+ blocks: [
941
+ { id: "kort.p1", type: "p", text: "This page explains where your data is stored, which vendors process data for us, and how we protect it. We only say that something is in place when it is true today." }
942
+ ]
943
+ },
944
+ {
945
+ id: "hvor",
946
+ heading: "Where your data is stored",
947
+ blocks: [{ id: "hvor.facts", type: "facts", fact: "hosting" }]
948
+ },
949
+ {
950
+ id: "sikkerhed",
951
+ heading: "Security",
952
+ blocks: [
953
+ {
954
+ id: "sikkerhed.table",
955
+ type: "table",
956
+ head: ["Control", "What it means"],
957
+ rows: [
958
+ ["Encryption", "All traffic is encrypted (HTTPS/TLS), and data is encrypted where it is stored."],
959
+ ["Login", "Single sign-on with passkeys and two-factor authentication."],
960
+ ["Security incidents", "If we process data for you, you hear from us within 24 hours. The Danish Data Protection Agency is notified within 72 hours when we are the controller."],
961
+ ["Backups", "Daily backups, kept for 30 days."],
962
+ ["Access", "Only named employees have access to raw data, and access is logged."]
963
+ ]
964
+ }
965
+ ]
966
+ },
967
+ {
968
+ id: "leverandoerer",
969
+ heading: "Vendors that process data for us",
970
+ blocks: [
971
+ { id: "leverandoerer.facts", type: "facts", fact: "subprocessors" },
972
+ { id: "leverandoerer.p1", type: "p", text: "New vendors are added to the list when we start using them. Customers with a data processing agreement are notified at least 14 days in advance." }
973
+ ]
974
+ },
975
+ {
976
+ id: "kontakt",
977
+ heading: "Found a security problem?",
978
+ blocks: [
979
+ { id: "kontakt.p1", type: "p", text: "Write to security@broberg.ai. We reply within one working day." }
980
+ ]
981
+ }
982
+ ]
983
+ };
984
+
985
+ // src/content/dpa.en.ts
986
+ var DPA_EN = {
987
+ doc: "dpa",
988
+ locale: "en",
989
+ title: "Data processing agreement",
990
+ version: "2026-11-02",
991
+ effectiveFrom: "2026-11-02",
992
+ material: true,
993
+ draft: false,
994
+ translationOf: { version: "2026-11-02", sourceHash: "f010df51a1606121d196f2eb7db5937763bf7d75417ce2cc4c7da48769a1b66c" },
995
+ sections: [
996
+ {
997
+ id: "parter",
998
+ heading: "Parties",
999
+ blocks: [
1000
+ { id: "parter.p1", type: "p", text: "The controller: {customer.name}, CVR {customer.cvr}, {customer.address}." },
1001
+ { id: "parter.p2", type: "p", text: "The processor: {provider.name}, CVR {provider.cvr}, {provider.address}." },
1002
+ { id: "parter.p3", type: "p", text: "This agreement was entered into on {contract.date} and belongs to the agreement \xAB{contract.title}\xBB." }
1003
+ ]
1004
+ },
1005
+ {
1006
+ id: "formaal",
1007
+ heading: "\xA7 1 Background and purpose",
1008
+ blocks: [
1009
+ { id: "formaal.p1", type: "p", text: "The processor processes personal data on behalf of the controller in order to deliver the services the parties have agreed. This agreement ensures that the processing complies with the General Data Protection Regulation (GDPR) and the Danish Data Protection Act." }
1010
+ ]
1011
+ },
1012
+ {
1013
+ id: "instruks",
1014
+ heading: "\xA7 2 Processing on instructions",
1015
+ blocks: [
1016
+ { id: "instruks.p1", type: "p", text: "The processor only processes personal data on documented instructions from the controller, unless otherwise required by EU or Danish law. If, in the processor's opinion, an instruction infringes the rules, the controller is informed immediately." }
1017
+ ]
1018
+ },
1019
+ {
1020
+ id: "fortrolighed",
1021
+ heading: "\xA7 3 Confidentiality",
1022
+ blocks: [
1023
+ { id: "fortrolighed.p1", type: "p", text: "Only persons who need it to deliver the service are given access to the personal data, and they are bound by confidentiality." }
1024
+ ]
1025
+ },
1026
+ {
1027
+ id: "sikkerhed",
1028
+ heading: "\xA7 4 Security of processing",
1029
+ blocks: [
1030
+ { id: "sikkerhed.p1", type: "p", text: "The processor takes appropriate technical and organisational measures under GDPR art. 32, including encryption in transit and at rest, access control, logging of access, backups and a plan for security incidents." }
1031
+ ]
1032
+ },
1033
+ {
1034
+ id: "underdatabehandlere",
1035
+ heading: "\xA7 5 Sub-processors",
1036
+ blocks: [
1037
+ { id: "underdatabehandlere.p1", type: "p", text: "The controller gives general authorisation to the sub-processors listed below. The processor gives at least 14 days' notice of changes, and the controller may object. Sub-processors are bound by the same obligations as in this agreement." },
1038
+ { id: "underdatabehandlere.facts", type: "facts", fact: "subprocessors" }
1039
+ ]
1040
+ },
1041
+ {
1042
+ id: "tredjelande",
1043
+ heading: "\xA7 6 Transfers to third countries",
1044
+ blocks: [
1045
+ { id: "tredjelande.p1", type: "p", text: "Transfers to countries outside the EU/EEA only take place with a valid transfer mechanism under GDPR chapter V." }
1046
+ ]
1047
+ },
1048
+ {
1049
+ id: "bistand",
1050
+ heading: "\xA7 7 Assistance to the controller",
1051
+ blocks: [
1052
+ { id: "bistand.p1", type: "p", text: "The processor assists the controller in fulfilling the rights of data subjects and with security, impact assessments and prior consultations, to the extent relevant to the service." }
1053
+ ]
1054
+ },
1055
+ {
1056
+ id: "brud",
1057
+ heading: "\xA7 8 Personal data breaches",
1058
+ blocks: [
1059
+ { id: "brud.p1", type: "p", text: "The processor notifies the controller without undue delay and no later than 24 hours after becoming aware of a breach, with the information the controller needs to report it." }
1060
+ ]
1061
+ },
1062
+ {
1063
+ id: "produktanalyse",
1064
+ heading: "\xA7 9 Analysis to improve the processor's products",
1065
+ blocks: [
1066
+ { id: "produktanalyse.p1", type: "p", text: "The processor may use the information in pseudonymised form to analyse and improve its products: use of the products, the structure of enquiries and anonymous statistics for groups of at least 10 people. The pseudonymised analysis copy is kept for at most 6 months. For this purpose the processor is an independent controller." },
1067
+ { id: "produktanalyse.p2", type: "p", text: "Health information and other special categories are only included if the data subject has given explicit consent." },
1068
+ { id: "produktanalyse.p3", type: "p", text: "The controller may object to this analysis in writing at any time. The objection applies from receipt. Exceptions to this are only agreed in a separate contract." },
1069
+ { id: "produktanalyse.p4", type: "p", text: "The controller informs its own users about the analysis in its privacy policy. The paragraph below can be used unchanged:" },
1070
+ { id: "produktanalyse.note", type: "note", text: "\xABOur vendor, {provider.name}, analyses pseudonymised information about the use of the solution in order to improve its products. Names and other direct identifiers are removed or replaced first, health information is only included with your explicit consent, and the analysis copy is kept for at most 6 months. You can object by contacting us.\xBB" }
1071
+ ]
1072
+ },
1073
+ {
1074
+ id: "ophoer",
1075
+ heading: "\xA7 10 Deletion and return",
1076
+ blocks: [
1077
+ { id: "ophoer.p1", type: "p", text: "When the agreement ends, the processor deletes or returns all personal data, at the controller's choice, unless the law requires it to be kept. Backups are deleted within 90 days." }
1078
+ ]
1079
+ },
1080
+ {
1081
+ id: "revision",
1082
+ heading: "\xA7 11 Audit and inspection",
1083
+ blocks: [
1084
+ { id: "revision.p1", type: "p", text: "The processor makes available the information necessary to demonstrate compliance with this agreement, and allows audits after reasonable notice." }
1085
+ ]
1086
+ },
1087
+ {
1088
+ id: "varighed",
1089
+ heading: "\xA7 12 Entry into force, duration and governing law",
1090
+ blocks: [
1091
+ { id: "varighed.p1", type: "p", text: "This agreement applies for as long as the processor processes personal data for the controller. It is governed by Danish law, and disputes are settled by the Danish courts. The Danish version prevails if it differs from a translation." }
1092
+ ]
1093
+ }
1094
+ ]
1095
+ };
1096
+
1097
+ // src/content/support.en.ts
1098
+ var SUPPORT_EN = {
1099
+ doc: "support",
1100
+ locale: "en",
1101
+ title: "Support agreement",
1102
+ version: "2026-11-02",
1103
+ effectiveFrom: "2026-11-02",
1104
+ material: true,
1105
+ draft: false,
1106
+ translationOf: { version: "2026-11-02", sourceHash: "26adb8f1722904362334dc711fd7414456fb3613383cb370f8f3831bb3168a68" },
1107
+ sections: [
1108
+ {
1109
+ id: "parter",
1110
+ heading: "Parties",
1111
+ blocks: [
1112
+ { id: "parter.p1", type: "p", text: "The customer: {customer.name}, CVR {customer.cvr}, {customer.address}." },
1113
+ { id: "parter.p2", type: "p", text: "The supplier: {provider.name}, CVR {provider.cvr}, {provider.address}." },
1114
+ { id: "parter.p3", type: "p", text: "This agreement applies from {contract.startDate} and belongs to the agreement \xAB{contract.title}\xBB." }
1115
+ ]
1116
+ },
1117
+ {
1118
+ id: "formaal",
1119
+ heading: "\xA7 1 Purpose",
1120
+ blocks: [
1121
+ { id: "formaal.p1", type: "p", text: "This agreement sets out which support the supplier provides for the solutions the customer has bought, and how quickly the supplier responds." }
1122
+ ]
1123
+ },
1124
+ {
1125
+ id: "omfang",
1126
+ heading: "\xA7 2 What the support covers",
1127
+ blocks: [
1128
+ {
1129
+ id: "omfang.list",
1130
+ type: "list",
1131
+ items: [
1132
+ "Fixing errors in the delivered solutions.",
1133
+ "Operation, monitoring and security updates.",
1134
+ "Questions about using the solutions."
1135
+ ]
1136
+ },
1137
+ { id: "omfang.p1", type: "p", text: "New development and changes that are not error fixes are not covered and are agreed separately." }
1138
+ ]
1139
+ },
1140
+ {
1141
+ id: "responstid",
1142
+ heading: "\xA7 3 Response times",
1143
+ blocks: [
1144
+ {
1145
+ id: "responstid.table",
1146
+ type: "table",
1147
+ head: ["Severity", "Example", "Response within"],
1148
+ rows: [
1149
+ ["Critical", "The solution is down or data is at risk", "2 hours on working days"],
1150
+ ["High", "An important function does not work", "1 working day"],
1151
+ ["Normal", "Other errors and questions", "3 working days"]
1152
+ ]
1153
+ },
1154
+ { id: "responstid.note", type: "note", text: "Different response times can be agreed in the agreement's appendix. The appendix takes precedence over the table." }
1155
+ ]
1156
+ },
1157
+ {
1158
+ id: "pris",
1159
+ heading: "\xA7 4 Price and payment",
1160
+ blocks: [
1161
+ { id: "pris.p1", type: "p", text: "The price of the support and the hourly rate for work outside the support are set out in the agreement's price appendix." }
1162
+ ]
1163
+ },
1164
+ {
1165
+ id: "varighed",
1166
+ heading: "\xA7 5 Duration and termination",
1167
+ blocks: [
1168
+ { id: "varighed.p1", type: "p", text: "The agreement runs until it is terminated. Either party may terminate the agreement with 3 months' notice to the end of a month, unless the agreement's appendix states otherwise." }
1169
+ ]
1170
+ },
1171
+ {
1172
+ id: "ansvar",
1173
+ heading: "\xA7 6 Liability",
1174
+ blocks: [
1175
+ { id: "ansvar.p1", type: "p", text: "The supplier is not liable for indirect loss, including operating loss and loss of profit. The supplier's total liability is limited to the amount the customer has paid for the support in the last 12 months." }
1176
+ ]
1177
+ },
1178
+ {
1179
+ id: "data",
1180
+ heading: "\xA7 7 Personal data",
1181
+ blocks: [
1182
+ { id: "data.p1", type: "p", text: "If the supplier processes personal data for the customer, the parties' data processing agreement applies." }
1183
+ ]
1184
+ },
1185
+ {
1186
+ id: "lov",
1187
+ heading: "\xA7 8 Governing law and disputes",
1188
+ blocks: [
1189
+ { id: "lov.p1", type: "p", text: "This agreement is governed by Danish law. Disputes are sought resolved by negotiation and are otherwise settled by the Danish courts. The Danish version prevails if it differs from a translation." }
1190
+ ]
1191
+ }
1192
+ ]
1193
+ };
1194
+
705
1195
  // src/content/index.ts
706
- var SOURCES = [TERMS_DA, PRIVACY_DA, TRUST_DA, DPA_DA, SUPPORT_DA];
1196
+ var SOURCES = [
1197
+ TERMS_DA,
1198
+ PRIVACY_DA,
1199
+ TRUST_DA,
1200
+ DPA_DA,
1201
+ SUPPORT_DA,
1202
+ TERMS_EN,
1203
+ PRIVACY_EN,
1204
+ TRUST_EN,
1205
+ DPA_EN,
1206
+ SUPPORT_EN
1207
+ ];
707
1208
 
708
1209
  // src/render.ts
709
1210
  var esc = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
@@ -895,6 +1396,7 @@ exports.getDocument = getDocument;
895
1396
  exports.getTemplate = getTemplate;
896
1397
  exports.listDocuments = listDocuments;
897
1398
  exports.needsReaccept = needsReaccept;
1399
+ exports.parityProblems = parityProblems;
898
1400
  exports.placeholdersIn = placeholdersIn;
899
1401
  exports.recordAcceptance = recordAcceptance;
900
1402
  exports.recordConsent = recordConsent;