@redacto.io/consent-sdk-react 9.1.0 → 9.2.0-beta.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/.turbo/turbo-build.log +10 -14
- package/CHANGELOG.md +6 -0
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/dist/privacy-center.js +860 -851
- package/dist/privacy-center.mjs +810 -801
- package/package.json +1 -1
- package/src/RedactoNoticeConsent/RedactoNoticeConsent.tsx +2 -4
- package/src/RedactoNoticeConsent/api/types.ts +1 -0
- package/src/RedactoPrivacyCenter/PrivacyCenterCaseDetailsPage.tsx +3 -1
- package/src/RedactoPrivacyCenter/components/CaseDetails/DocumentRequestCard.tsx +19 -13
- package/src/RedactoPrivacyCenter/components/CaseDetails/FinalizedTooltipWrapper.tsx +25 -0
- package/src/RedactoPrivacyCenter/components/CaseDetails/MessageComposer.tsx +39 -30
- package/src/RedactoPrivacyCenter/components/CaseDetails/MessageItem.tsx +2 -0
- package/src/RedactoPrivacyCenter/components/CaseDetails/MessagesTab.tsx +10 -3
- package/src/RedactoPrivacyCenter/components/CaseDetails/utils.ts +21 -6
- package/src/RedactoPrivacyCenter/components/DataRequest/PurposeSelectionSection.tsx +12 -0
- package/src/RedactoPrivacyCenter/components/Form.tsx +15 -129
- package/src/RedactoPrivacyCenter/lib/constants.ts +12 -0
- package/src/RedactoPrivacyCenter/lib/types.ts +10 -0
- package/src/RedactoPrivacyCenter/locales/as/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/bho/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/bn/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/brx/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/doi/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/en/translation.json +2 -0
- package/src/RedactoPrivacyCenter/locales/gom/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/gu/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/hi/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/kn/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/ks/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/mai/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/ml/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/mni-Mtei/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/mr/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/ne/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/or/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/pa/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/sa/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/sat/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/sd/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/ta/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/te/translation.json +1 -0
- package/src/RedactoPrivacyCenter/locales/ur/translation.json +1 -0
- package/src/RedactoPrivacyCenter/ui/PCTooltip.tsx +3 -1
package/dist/privacy-center.js
CHANGED
|
@@ -160,6 +160,7 @@ var translation_default = {
|
|
|
160
160
|
enterCorrectValue: "Enter the correct value for each selected field",
|
|
161
161
|
whatDataToAccess: "What data would you like to access?",
|
|
162
162
|
whatDataToDelete: "What data should we delete?",
|
|
163
|
+
revocationNotDeletionNote: "Revoking consent does not delete data the organization already holds. You can still request access to or erasure of this data, including for purposes whose consent you have withdrawn.",
|
|
163
164
|
objectingProcessingActivities: "What processing activities are you objecting to?",
|
|
164
165
|
whatDataToModify: "What data should we modify?",
|
|
165
166
|
enterSixDigitOtp: "Please enter a 6-digit OTP.",
|
|
@@ -307,6 +308,7 @@ var translation_default = {
|
|
|
307
308
|
submitted: "Submitted",
|
|
308
309
|
responseDue: "Response due",
|
|
309
310
|
secureMessagesNotice: "Your messages are securely sent to the privacy team only.",
|
|
311
|
+
caseFinalizedMessagesTooltip: "This case is finalized \u2014 messages can no longer be sent.",
|
|
310
312
|
noMessagesYet: "No messages yet",
|
|
311
313
|
writeMessagePlaceholder: "Write a message to the privacy team...",
|
|
312
314
|
attachFile: "Attach file",
|
|
@@ -601,6 +603,7 @@ var translation_default2 = {
|
|
|
601
603
|
submitted: "\u09A6\u09BE\u0996\u09BF\u09B2 \u0995\u09F0\u09BE \u09B9\u09C8\u099B\u09C7",
|
|
602
604
|
responseDue: "\u09AA\u09CD\u09F0\u09A4\u09BF\u0995\u09CD\u09F0\u09BF\u09AF\u09BC\u09BE \u09AC\u09BE\u0995\u09C0",
|
|
603
605
|
secureMessagesNotice: "\u0986\u09AA\u09CB\u09A8\u09BE\u09F0 \u09AC\u09BE\u09F0\u09CD\u09A4\u09BE\u09B8\u09AE\u09C2\u09B9 \u0995\u09C7\u09F1\u09B2 \u0997\u09CB\u09AA\u09A8\u09C0\u09AF\u09BC\u09A4\u09BE \u09A6\u09B2\u0995 \u09B8\u09C1\u09F0\u0995\u09CD\u09B7\u09BF\u09A4\u09AD\u09BE\u09F1\u09C7 \u09AA\u09CD\u09F0\u09C7\u09F0\u09A3 \u0995\u09F0\u09BE \u09B9\u09AF\u09BC\u0964",
|
|
606
|
+
caseFinalizedMessagesTooltip: "\u098F\u0987 \u0997\u09CB\u099A\u09F0\u099F\u09CB \u099A\u09C2\u09A1\u09BC\u09BE\u09A8\u09CD\u09A4 \u0995\u09F0\u09BE \u09B9\u09C8\u099B\u09C7 \u2014 \u098F\u09A4\u09BF\u09AF\u09BC\u09BE \u09AC\u09BE\u09F0\u09CD\u09A4\u09BE \u09AA\u09A0\u09BE\u09AC \u09A8\u09CB\u09F1\u09BE\u09F0\u09BF\u0964",
|
|
604
607
|
noMessagesYet: "\u098F\u09A4\u09BF\u09AF\u09BC\u09BE\u09B2\u09C8\u0995\u09C7 \u0995\u09CB\u09A8\u09CB \u09AC\u09BE\u09F0\u09CD\u09A4\u09BE \u09A8\u09BE\u0987",
|
|
605
608
|
writeMessagePlaceholder: "\u0997\u09CB\u09AA\u09A8\u09C0\u09AF\u09BC\u09A4\u09BE \u09A6\u09B2\u0995 \u09AC\u09BE\u09F0\u09CD\u09A4\u09BE \u09B2\u09BF\u0996\u0995...",
|
|
606
609
|
attachFile: "\u09AB\u09BE\u0987\u09B2 \u09B8\u0982\u09B2\u0997\u09CD\u09A8 \u0995\u09F0\u0995",
|
|
@@ -894,6 +897,7 @@ var translation_default3 = {
|
|
|
894
897
|
submitted: "\u099C\u09AE\u09BE \u09A6\u09C7\u0993\u09AF\u09BC\u09BE \u09B9\u09AF\u09BC\u09C7\u099B\u09C7",
|
|
895
898
|
responseDue: "\u09AA\u09CD\u09B0\u09A4\u09BF\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09BE \u09AC\u09BE\u0995\u09BF",
|
|
896
899
|
secureMessagesNotice: "\u0986\u09AA\u09A8\u09BE\u09B0 \u09AC\u09BE\u09B0\u09CD\u09A4\u09BE\u0997\u09C1\u09B2\u09BF \u09B6\u09C1\u09A7\u09C1\u09AE\u09BE\u09A4\u09CD\u09B0 \u0997\u09CB\u09AA\u09A8\u09C0\u09AF\u09BC\u09A4\u09BE \u09A6\u09B2\u09C7\u09B0 \u0995\u09BE\u099B\u09C7 \u09A8\u09BF\u09B0\u09BE\u09AA\u09A6\u09C7 \u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09B9\u09AF\u09BC\u0964",
|
|
900
|
+
caseFinalizedMessagesTooltip: "\u098F\u0987 \u0995\u09C7\u09B8\u099F\u09BF \u099A\u09C2\u09A1\u09BC\u09BE\u09A8\u09CD\u09A4 \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7\u099B\u09C7 \u2014 \u09AC\u09BE\u09B0\u09CD\u09A4\u09BE \u0986\u09B0 \u09AA\u09BE\u09A0\u09BE\u09A8\u09CB \u09AF\u09BE\u09AC\u09C7 \u09A8\u09BE\u0964",
|
|
897
901
|
noMessagesYet: "\u098F\u0996\u09A8\u09CB \u0995\u09CB\u09A8\u09CB \u09AC\u09BE\u09B0\u09CD\u09A4\u09BE \u09A8\u09C7\u0987",
|
|
898
902
|
writeMessagePlaceholder: "\u0997\u09CB\u09AA\u09A8\u09C0\u09AF\u09BC\u09A4\u09BE \u09A6\u09B2\u0995\u09C7 \u098F\u0995\u099F\u09BF \u09AC\u09BE\u09B0\u09CD\u09A4\u09BE \u09B2\u09BF\u0996\u09C1\u09A8...",
|
|
899
903
|
attachFile: "\u09AB\u09BE\u0987\u09B2 \u09B8\u0982\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C1\u09A8",
|
|
@@ -1187,6 +1191,7 @@ var translation_default4 = {
|
|
|
1187
1191
|
submitted: "\u091C\u092E\u093E \u092D\u0907\u0932",
|
|
1188
1192
|
responseDue: "\u091C\u0935\u093E\u092C \u092C\u093E\u0915\u0940 \u092C\u093E",
|
|
1189
1193
|
secureMessagesNotice: "\u0930\u0909\u0906 \u0938\u0902\u0926\u0947\u0936 \u092C\u0938 \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0915\u0947 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0924\u0930\u0940\u0915\u093E \u0938\u0947 \u092D\u0947\u091C\u0932 \u091C\u093E\u0932\u093E\u0964",
|
|
1194
|
+
caseFinalizedMessagesTooltip: "\u0908 \u0915\u0947\u0938 \u0905\u0902\u0924\u093F\u092E \u0939\u094B \u0917\u0907\u0932 \u092C\u093E \u2014 \u0905\u092C \u0938\u0902\u0926\u0947\u0938 \u0928\u093E \u092D\u0947\u091C\u0932 \u091C\u093E \u0938\u0915\u0947\u0964",
|
|
1190
1195
|
noMessagesYet: "\u0905\u092C\u0939\u0940\u0902 \u0924\u0915 \u0915\u0935\u0928\u094B \u0938\u0902\u0926\u0947\u0936 \u0928\u0907\u0916\u0947",
|
|
1191
1196
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0915\u0947 \u0938\u0902\u0926\u0947\u0936 \u0932\u093F\u0916\u0940\u0902...",
|
|
1192
1197
|
attachFile: "\u092B\u093E\u0907\u0932 \u091C\u094B\u0921\u093C\u0940\u0902",
|
|
@@ -1480,6 +1485,7 @@ var translation_default5 = {
|
|
|
1480
1485
|
submitted: "\u0926\u093E\u0916\u093F\u0932 \u091C\u093E\u0926\u094B\u0902",
|
|
1481
1486
|
responseDue: "\u092B\u093F\u0928\u0928\u093E\u092F \u092C\u093E\u0915\u0940",
|
|
1482
1487
|
secureMessagesNotice: "\u0928\u094B\u0902\u0925\u093E\u0902\u0928\u093F \u0916\u094C\u0930\u093E\u0902\u092B\u094B\u0930 \u0938\u093F\u0917\u093E\u0902 \u0917\u094B\u092A\u0928\u0940\u092F\u0925\u093E \u0939\u093E\u0928\u091C\u093E\u0916\u094C \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u092C\u093E\u092F\u0926\u093F\u091C\u094B\u0902 \u0926\u0948\u0925\u093E\u092F\u0926\u094B\u0902\u0964",
|
|
1488
|
+
caseFinalizedMessagesTooltip: "\u092C\u0947 \u0915\u0947\u0938\u0906 \u091C\u094B\u092C\u0928\u093E\u092F \u091C\u093E\u092F\u094B \u2014 \u0926\u093E\u0928\u0948 \u0916\u094C\u0930\u093E\u0902\u0916\u094C \u0926\u0948\u0925\u093E\u092F \u0939\u0941\u0928\u094B \u0939\u093E\u092F\u093E\u0964",
|
|
1483
1489
|
noMessagesYet: "\u0926\u093E\u0928\u094B \u0938\u092E \u0915\u094B\u0928\u094B \u0916\u094C\u0930\u093E\u0902 \u0917\u0948\u092F\u093E",
|
|
1484
1490
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0925\u093E \u0939\u093E\u0928\u091C\u093E\u0916\u094C \u0916\u094C\u0930\u093E\u0902 \u0932\u093F\u0930...",
|
|
1485
1491
|
attachFile: "\u092B\u093E\u0907\u0932 \u0932\u093E\u092B\u093E\u092C",
|
|
@@ -1773,6 +1779,7 @@ var translation_default6 = {
|
|
|
1773
1779
|
submitted: "\u091C\u092E\u093E \u0915\u0940\u0924\u093E \u0917\u0947\u0906",
|
|
1774
1780
|
responseDue: "\u091C\u0935\u093E\u092C \u092C\u093E\u0915\u0940",
|
|
1775
1781
|
secureMessagesNotice: "\u0924\u0941\u0902\u0926\u0947 \u0938\u0902\u0926\u0947\u0936 \u0938\u093F\u0930\u094D\u092B \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0917\u0940 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0924\u0930\u0940\u0915\u0947 \u0915\u0928\u094D\u0928\u0948 \u092D\u0947\u091C\u0947 \u091C\u0902\u0926\u0947 \u0928\u0964",
|
|
1782
|
+
caseFinalizedMessagesTooltip: "\u0910 \u092E\u093E\u092E\u0932\u093E \u0905\u0902\u0924\u093F\u092E \u0939\u094B\u0908 \u0917\u0947\u0906 \u0910 \u2014 \u0939\u0941\u0923 \u0938\u0902\u0926\u0947\u0936 \u0928\u0947\u0908\u0902 \u092D\u0947\u091C\u0947 \u091C\u093E\u0908 \u0938\u0915\u0926\u0947\u0964",
|
|
1776
1783
|
noMessagesYet: "\u0905\u091C\u0947\u0902 \u0924\u0915 \u0915\u094B\u0908 \u0938\u0902\u0926\u0947\u0936 \u0928\u0947\u0908\u0902",
|
|
1777
1784
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0917\u0940 \u0938\u0902\u0926\u0947\u0936 \u0932\u093F\u0916\u094B...",
|
|
1778
1785
|
attachFile: "\u092B\u093C\u093E\u0907\u0932 \u091C\u094B\u0921\u093C\u094B",
|
|
@@ -2066,6 +2073,7 @@ var translation_default7 = {
|
|
|
2066
2073
|
submitted: "\u0938\u093E\u0926\u0930 \u0915\u0947\u0932\u0947\u0902",
|
|
2067
2074
|
responseDue: "\u092A\u094D\u0930\u0924\u093F\u0938\u093E\u0926 \u092C\u093E\u0915\u0940",
|
|
2068
2075
|
secureMessagesNotice: "\u0924\u0941\u092E\u091A\u0947 \u0938\u0902\u0926\u0947\u0936 \u092B\u0915\u0924 \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u092A\u0902\u0917\u0921\u093E\u0915 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0930\u093F\u0924\u0940\u0928 \u0927\u093E\u0921\u091F\u093E\u0924.",
|
|
2076
|
+
caseFinalizedMessagesTooltip: "\u0939\u0947\u0902 \u092A\u094D\u0930\u0915\u0930\u0923 \u0905\u0902\u0924\u093F\u092E \u091C\u093E\u0932\u093E\u0902 \u2014 \u0906\u0924\u093E\u0902 \u0938\u0902\u0926\u0947\u0936 \u0927\u093E\u0921\u0941\u0902\u0915 \u092E\u0947\u0933\u091A\u0947 \u0928\u093E.",
|
|
2069
2077
|
noMessagesYet: "\u0905\u091C\u0942\u0928 \u0915\u0938\u0932\u0947\u091A \u0938\u0902\u0926\u0947\u0936 \u0928\u093E\u0924",
|
|
2070
2078
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u092A\u0902\u0917\u0921\u093E\u0915 \u0938\u0902\u0926\u0947\u0936 \u092C\u0930\u092F\u093E\u0924...",
|
|
2071
2079
|
attachFile: "\u092B\u093E\u092F\u0932 \u091C\u094B\u0921\u093E\u0924",
|
|
@@ -2359,6 +2367,7 @@ var translation_default8 = {
|
|
|
2359
2367
|
submitted: "\u0AB8\u0AAC\u0AAE\u0ABF\u0A9F \u0AA5\u0AAF\u0AC7\u0AB2",
|
|
2360
2368
|
responseDue: "\u0AAA\u0ACD\u0AB0\u0AA4\u0ABF\u0AB8\u0ABE\u0AA6 \u0AAC\u0ABE\u0A95\u0AC0",
|
|
2361
2369
|
secureMessagesNotice: "\u0AA4\u0AAE\u0ABE\u0AB0\u0ABE \u0AB8\u0A82\u0AA6\u0AC7\u0AB6\u0ABE\u0A93 \u0AAB\u0A95\u0ACD\u0AA4 \u0A97\u0ACB\u0AAA\u0AA8\u0AC0\u0AAF\u0AA4\u0ABE \u0A9F\u0AC0\u0AAE\u0AA8\u0AC7 \u0A9C \u0AB8\u0AC1\u0AB0\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 \u0AB0\u0AC0\u0AA4\u0AC7 \u0AAE\u0ACB\u0A95\u0AB2\u0AB5\u0ABE\u0AAE\u0ABE\u0A82 \u0A86\u0AB5\u0AC7 \u0A9B\u0AC7.",
|
|
2370
|
+
caseFinalizedMessagesTooltip: "\u0A86 \u0A95\u0AC7\u0AB8 \u0A85\u0A82\u0AA4\u0ABF\u0AAE \u0AA5\u0A88 \u0A97\u0AAF\u0ACB \u0A9B\u0AC7 \u2014 \u0AB9\u0AB5\u0AC7 \u0AB8\u0A82\u0AA6\u0AC7\u0AB6\u0ABE \u0AAE\u0ACB\u0A95\u0AB2\u0AC0 \u0AB6\u0A95\u0ABE\u0AB6\u0AC7 \u0AA8\u0AB9\u0AC0\u0A82.",
|
|
2362
2371
|
noMessagesYet: "\u0AB9\u0A9C\u0AC1 \u0AB8\u0AC1\u0AA7\u0AC0 \u0A95\u0ACB\u0A88 \u0AB8\u0A82\u0AA6\u0AC7\u0AB6\u0ABE\u0A93 \u0AA8\u0AA5\u0AC0",
|
|
2363
2372
|
writeMessagePlaceholder: "\u0A97\u0ACB\u0AAA\u0AA8\u0AC0\u0AAF\u0AA4\u0ABE \u0A9F\u0AC0\u0AAE\u0AA8\u0AC7 \u0AB8\u0A82\u0AA6\u0AC7\u0AB6 \u0AB2\u0A96\u0ACB...",
|
|
2364
2373
|
attachFile: "\u0AAB\u0ABE\u0A87\u0AB2 \u0A9C\u0ACB\u0AA1\u0ACB",
|
|
@@ -2655,6 +2664,7 @@ var translation_default9 = {
|
|
|
2655
2664
|
submitted: "\u091C\u092E\u093E \u0915\u093F\u092F\u093E \u0917\u092F\u093E",
|
|
2656
2665
|
responseDue: "\u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u0926\u0947\u092F",
|
|
2657
2666
|
secureMessagesNotice: "\u0906\u092A\u0915\u0947 \u0938\u0902\u0926\u0947\u0936 \u0915\u0947\u0935\u0932 \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0915\u094B \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 \u092D\u0947\u091C\u0947 \u091C\u093E\u0924\u0947 \u0939\u0948\u0902\u0964",
|
|
2667
|
+
caseFinalizedMessagesTooltip: "\u092F\u0939 \u0915\u0947\u0938 \u0905\u0902\u0924\u093F\u092E \u0930\u0942\u092A \u0926\u093F\u092F\u093E \u091C\u093E \u091A\u0941\u0915\u093E \u0939\u0948 \u2014 \u0905\u092C \u0938\u0902\u0926\u0947\u0936 \u0928\u0939\u0940\u0902 \u092D\u0947\u091C\u0947 \u091C\u093E \u0938\u0915\u0924\u0947\u0964",
|
|
2658
2668
|
noMessagesYet: "\u0905\u092D\u0940 \u0924\u0915 \u0915\u094B\u0908 \u0938\u0902\u0926\u0947\u0936 \u0928\u0939\u0940\u0902",
|
|
2659
2669
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0915\u094B \u0938\u0902\u0926\u0947\u0936 \u0932\u093F\u0916\u0947\u0902...",
|
|
2660
2670
|
attachFile: "\u092B\u093C\u093E\u0907\u0932 \u0938\u0902\u0932\u0917\u094D\u0928 \u0915\u0930\u0947\u0902",
|
|
@@ -2948,6 +2958,7 @@ var translation_default10 = {
|
|
|
2948
2958
|
submitted: "\u0CB8\u0CB2\u0CCD\u0CB2\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6",
|
|
2949
2959
|
responseDue: "\u0CAA\u0CCD\u0CB0\u0CA4\u0CBF\u0C95\u0CCD\u0CB0\u0CBF\u0CAF\u0CC6 \u0CAC\u0CBE\u0C95\u0CBF",
|
|
2950
2960
|
secureMessagesNotice: "\u0CA8\u0CBF\u0CAE\u0CCD\u0CAE \u0CB8\u0C82\u0CA6\u0CC7\u0CB6\u0C97\u0CB3\u0CA8\u0CCD\u0CA8\u0CC1 \u0C97\u0CCC\u0CAA\u0CCD\u0CAF\u0CA4\u0CBE \u0CA4\u0C82\u0CA1\u0C95\u0CCD\u0C95\u0CC6 \u0CAE\u0CBE\u0CA4\u0CCD\u0CB0 \u0CB8\u0CC1\u0CB0\u0C95\u0CCD\u0CB7\u0CBF\u0CA4\u0CB5\u0CBE\u0C97\u0CBF \u0C95\u0CB3\u0CC1\u0CB9\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CC1\u0CA4\u0CCD\u0CA4\u0CA6\u0CC6.",
|
|
2961
|
+
caseFinalizedMessagesTooltip: "\u0C88 \u0CAA\u0CCD\u0CB0\u0C95\u0CB0\u0CA3 \u0C85\u0C82\u0CA4\u0CBF\u0CAE\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CA6\u0CC6 \u2014 \u0C87\u0CA8\u0CCD\u0CA8\u0CC1 \u0CB8\u0C82\u0CA6\u0CC7\u0CB6\u0C97\u0CB3\u0CA8\u0CCD\u0CA8\u0CC1 \u0C95\u0CB3\u0CC1\u0CB9\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CC1\u0CB5\u0CC1\u0CA6\u0CBF\u0CB2\u0CCD\u0CB2.",
|
|
2951
2962
|
noMessagesYet: "\u0C87\u0CA8\u0CCD\u0CA8\u0CC2 \u0CAF\u0CBE\u0CB5\u0CC1\u0CA6\u0CC7 \u0CB8\u0C82\u0CA6\u0CC7\u0CB6\u0C97\u0CB3\u0CBF\u0CB2\u0CCD\u0CB2",
|
|
2952
2963
|
writeMessagePlaceholder: "\u0C97\u0CCC\u0CAA\u0CCD\u0CAF\u0CA4\u0CBE \u0CA4\u0C82\u0CA1\u0C95\u0CCD\u0C95\u0CC6 \u0CB8\u0C82\u0CA6\u0CC7\u0CB6 \u0CAC\u0CB0\u0CC6\u0CAF\u0CBF\u0CB0\u0CBF...",
|
|
2953
2964
|
attachFile: "\u0CAB\u0CC8\u0CB2\u0CCD \u0CB2\u0C97\u0CA4\u0CCD\u0CA4\u0CBF\u0CB8\u0CBF",
|
|
@@ -3241,6 +3252,7 @@ var translation_default11 = {
|
|
|
3241
3252
|
submitted: "\u062C\u0645\u0639 \u06A9\u0631\u065B\u0627\u0648\u0655\u0646\u06C1\u0655 \u0622\u0648",
|
|
3242
3253
|
responseDue: "\u062C\u0648\u0627\u0628 \u0648\u0627\u062C\u0628",
|
|
3243
3254
|
secureMessagesNotice: "\u062A\u064F\u06C1\u0646\u065B\u062F \u067E\u06CC\u063A\u0627\u0645\u0627\u062A \u0635\u0631\u0641 \u0631\u0627\u0632\u062F\u0627\u0631\u06CC \u0679\u06CC\u0645 \u06A9\u0655\u0646 \u0645\u062D\u0641\u0648\u0638 \u0637\u0631\u06CC\u0642\u0655 \u0633\u0655\u062A\u0655 \u0628\u06BE\u06CC\u062C\u0646\u0655 \u06CC\u0650\u0648\u0627\u0646 \u0686\u06BE\u0650\u06D4",
|
|
3255
|
+
caseFinalizedMessagesTooltip: "\u06CC\u06C1 \u06A9\u06CC\u0633 \u0645\u06A9\u0645\u0644 \u06AF\u0698\u06BE \u2014 \u06C1\u0646\u06C1\u0655 \u067E\u06CC\u063A\u0627\u0645 \u0646\u06C1\u0655 \u06C1\u06CC\u06A9\u0646 \u06CC\u064E\u0698\u06BE\u0646\u06C1\u0655\u06D4",
|
|
3244
3256
|
noMessagesYet: "\u0627\u0628\u0655 \u062A\u0627\u0645 \u06A9\u0627\u0646\u065B\u06C1\u06C1\u0650 \u067E\u06CC\u063A\u0627\u0645 \u0646\u0655 \u0622\u0648",
|
|
3245
3257
|
writeMessagePlaceholder: "\u0631\u0627\u0632\u062F\u0627\u0631\u06CC \u0679\u06CC\u0645 \u06A9\u0655\u0646 \u067E\u06CC\u063A\u0627\u0645 \u0644\u0650\u06A9\u06BE\u0650\u0648...",
|
|
3246
3258
|
attachFile: "\u0641\u0627\u0626\u0644 \u062C\u0648\u0657\u0691\u0650\u0648",
|
|
@@ -3534,6 +3546,7 @@ var translation_default12 = {
|
|
|
3534
3546
|
submitted: "\u091C\u092E\u093E \u092D\u0947\u0932",
|
|
3535
3547
|
responseDue: "\u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u092C\u093E\u0915\u0940",
|
|
3536
3548
|
secureMessagesNotice: "\u0905\u0939\u093E\u0901\u0915 \u0938\u0902\u0926\u0947\u0936 \u0915\u0947\u0935\u0932 \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0915\u0947\u0901 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0930\u0942\u092A \u0938\u0901 \u092A\u0920\u093E\u0913\u0932 \u091C\u093E\u0907\u0924 \u0905\u091B\u093F\u0964",
|
|
3549
|
+
caseFinalizedMessagesTooltip: "\u0908 \u092E\u093E\u092E\u0932\u093E \u0905\u0902\u0924\u093F\u092E \u092D\u093D \u091A\u0941\u0915\u0932 \u0905\u091B\u093F \u2014 \u0906\u092C \u0938\u0902\u0926\u0947\u0936 \u092A\u0920\u093E\u0913\u0932 \u0928\u0939\u093F \u091C\u093E \u0938\u0915\u0948\u0924 \u0905\u091B\u093F\u0964",
|
|
3537
3550
|
noMessagesYet: "\u0905\u0916\u0928 \u0924\u0915 \u0915\u094B\u0928\u094B \u0938\u0902\u0926\u0947\u0936 \u0928\u0939\u093F",
|
|
3538
3551
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u0940\u092E \u0915\u0947\u0901 \u0938\u0902\u0926\u0947\u0936 \u0932\u093F\u0916\u0942...",
|
|
3539
3552
|
attachFile: "\u092B\u093E\u0907\u0932 \u0938\u0902\u0932\u0917\u094D\u0928 \u0915\u0930\u0942",
|
|
@@ -3827,6 +3840,7 @@ var translation_default13 = {
|
|
|
3827
3840
|
submitted: "\u0D38\u0D2E\u0D7C\u0D2A\u0D4D\u0D2A\u0D3F\u0D1A\u0D4D\u0D1A\u0D41",
|
|
3828
3841
|
responseDue: "\u0D2A\u0D4D\u0D30\u0D24\u0D3F\u0D15\u0D30\u0D23\u0D02 \u0D2C\u0D3E\u0D15\u0D4D\u0D15\u0D3F",
|
|
3829
3842
|
secureMessagesNotice: "\u0D28\u0D3F\u0D19\u0D4D\u0D19\u0D33\u0D41\u0D1F\u0D46 \u0D38\u0D28\u0D4D\u0D26\u0D47\u0D36\u0D19\u0D4D\u0D19\u0D7E \u0D38\u0D4D\u0D35\u0D15\u0D3E\u0D30\u0D4D\u0D2F\u0D24\u0D3E \u0D1F\u0D40\u0D2E\u0D3F\u0D28\u0D4D \u0D2E\u0D3E\u0D24\u0D4D\u0D30\u0D02 \u0D38\u0D41\u0D30\u0D15\u0D4D\u0D37\u0D3F\u0D24\u0D2E\u0D3E\u0D2F\u0D3F \u0D05\u0D2F\u0D2F\u0D4D\u0D15\u0D4D\u0D15\u0D41\u0D28\u0D4D\u0D28\u0D41.",
|
|
3843
|
+
caseFinalizedMessagesTooltip: "\u0D08 \u0D15\u0D47\u0D38\u0D4D \u0D05\u0D28\u0D4D\u0D24\u0D3F\u0D2E\u0D2E\u0D3E\u0D15\u0D4D\u0D15\u0D3F\u0D2F\u0D3F\u0D30\u0D3F\u0D15\u0D4D\u0D15\u0D41\u0D28\u0D4D\u0D28\u0D41 \u2014 \u0D07\u0D28\u0D3F \u0D38\u0D28\u0D4D\u0D26\u0D47\u0D36\u0D19\u0D4D\u0D19\u0D7E \u0D05\u0D2F\u0D15\u0D4D\u0D15\u0D3E\u0D7B \u0D15\u0D34\u0D3F\u0D2F\u0D3F\u0D32\u0D4D\u0D32.",
|
|
3830
3844
|
noMessagesYet: "\u0D07\u0D24\u0D41\u0D35\u0D30\u0D46 \u0D38\u0D28\u0D4D\u0D26\u0D47\u0D36\u0D19\u0D4D\u0D19\u0D33\u0D3F\u0D32\u0D4D\u0D32",
|
|
3831
3845
|
writeMessagePlaceholder: "\u0D38\u0D4D\u0D35\u0D15\u0D3E\u0D30\u0D4D\u0D2F\u0D24\u0D3E \u0D1F\u0D40\u0D2E\u0D3F\u0D28\u0D4D \u0D12\u0D30\u0D41 \u0D38\u0D28\u0D4D\u0D26\u0D47\u0D36\u0D02 \u0D0E\u0D34\u0D41\u0D24\u0D41\u0D15...",
|
|
3832
3846
|
attachFile: "\u0D2B\u0D2F\u0D7D \u0D05\u0D31\u0D4D\u0D31\u0D3E\u0D1A\u0D4D\u0D1A\u0D4D \u0D1A\u0D46\u0D2F\u0D4D\u0D2F\u0D41\u0D15",
|
|
@@ -4120,6 +4134,7 @@ var translation_default14 = {
|
|
|
4120
4134
|
submitted: "\uABCA\uABE5\uABD4\uABE6",
|
|
4121
4135
|
responseDue: "\uABC4\uABE5\uABCE\uABC8\uABE8\uABDD \uABC2\uABE6\uABDE\uABC4",
|
|
4122
4136
|
secureMessagesNotice: "\uABC5\uABCD\uABE5\uABDB\uABC0\uABE4 \uABC4\uABE5\uABCE\uABC1\uABE4\uABE1 \uABC4\uABED\uABD4\uABE5\uABCF\uABDA\uABE6\uABC1\uABE4 \uABC7\uABE4\uABC3\uABD7 \uABC8\uABDB\uABC7 \uABC1\uABE6\uABDB\uABCC\uABE8\uABD4 \uABD1\uABE3\uABCF\uABC5 \uABCA\uABE5\uABD4\uABE4\uABEB",
|
|
4137
|
+
caseFinalizedMessagesTooltip: "\uABC3\uABC1\uABE4 \uABC0\uABE6\uABC1 \uABC2\uABE3\uABCF\uABC1\uABE4\uABDF\uABC2\uABE6 \u2014 \uABD1\uABC7\uABE9\uABD0\uABDD\uABD7 \uABC4\uABE5\uABCE \uABCA\uABE5\uABD2\uABD7\uABD5 \uABCC\uABE5\uABD4\uABE3\uABCF\uABEB",
|
|
4123
4138
|
noMessagesYet: "\uABCD\uABE5\uABCF\uABD4\uABE4\uABD5 \uABC3\uABC7\uABC3\uABD7 \uABC4\uABE5\uABCE \uABC2\uABE9\uABC7\uABE6",
|
|
4124
4139
|
writeMessagePlaceholder: "\uABC4\uABED\uABD4\uABE5\uABCF\uABDA\uABE6\uABC1\uABE4 \uABC7\uABE4\uABC3\uABD7 \uABC4\uABE5\uABCE \uABCF\uABD4\uABE8...",
|
|
4125
4140
|
attachFile: "\uABD0\uABE5\uABCF\uABDC \uABC6\uABE4\uABE1\uABC1\uABE4\uABDF\uABC5\uABD5",
|
|
@@ -4413,6 +4428,7 @@ var translation_default15 = {
|
|
|
4413
4428
|
submitted: "\u0938\u093E\u0926\u0930 \u0915\u0947\u0932\u0947",
|
|
4414
4429
|
responseDue: "\u092A\u094D\u0930\u0924\u093F\u0938\u093E\u0926 \u0926\u0947\u092F",
|
|
4415
4430
|
secureMessagesNotice: "\u0924\u0941\u092E\u091A\u0947 \u0938\u0902\u0926\u0947\u0936 \u092B\u0915\u094D\u0924 \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u0938\u0902\u0918\u093E\u0932\u093E \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924\u092A\u0923\u0947 \u092A\u093E\u0920\u0935\u0932\u0947 \u091C\u093E\u0924\u093E\u0924.",
|
|
4431
|
+
caseFinalizedMessagesTooltip: "\u0939\u0947 \u092A\u094D\u0930\u0915\u0930\u0923 \u0905\u0902\u0924\u093F\u092E \u091D\u093E\u0932\u0947 \u0906\u0939\u0947 \u2014 \u0906\u0924\u093E \u0938\u0902\u0926\u0947\u0936 \u092A\u093E\u0920\u0935\u0924\u093E \u092F\u0947\u0923\u093E\u0930 \u0928\u093E\u0939\u0940\u0924.",
|
|
4416
4432
|
noMessagesYet: "\u0905\u0926\u094D\u092F\u093E\u092A \u0915\u094B\u0923\u0924\u0947\u0939\u0940 \u0938\u0902\u0926\u0947\u0936 \u0928\u093E\u0939\u0940\u0924",
|
|
4417
4433
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u0938\u0902\u0918\u093E\u0932\u093E \u0938\u0902\u0926\u0947\u0936 \u0932\u093F\u0939\u093E...",
|
|
4418
4434
|
attachFile: "\u092B\u093E\u0907\u0932 \u091C\u094B\u0921\u093E",
|
|
@@ -4706,6 +4722,7 @@ var translation_default16 = {
|
|
|
4706
4722
|
submitted: "\u092A\u0947\u0936 \u0917\u0930\u093F\u090F\u0915\u094B",
|
|
4707
4723
|
responseDue: "\u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u092C\u093E\u0901\u0915\u0940",
|
|
4708
4724
|
secureMessagesNotice: "\u0924\u092A\u093E\u0908\u0902\u0915\u093E \u0938\u0928\u094D\u0926\u0947\u0936\u0939\u0930\u0942 \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u094B\u0932\u0940\u0932\u093E\u0908 \u092E\u093E\u0924\u094D\u0930 \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924 \u0930\u0942\u092A\u092E\u093E \u092A\u0920\u093E\u0907\u0928\u094D\u091B\u0928\u094D\u0964",
|
|
4725
|
+
caseFinalizedMessagesTooltip: "\u092F\u094B \u0915\u0947\u0938 \u0905\u0928\u094D\u0924\u093F\u092E \u092D\u0907\u0938\u0915\u0947\u0915\u094B \u091B \u2014 \u0905\u092C \u0938\u0928\u094D\u0926\u0947\u0936\u0939\u0930\u0942 \u092A\u0920\u093E\u0909\u0928 \u0938\u0915\u093F\u0901\u0926\u0948\u0928\u0964",
|
|
4709
4726
|
noMessagesYet: "\u0905\u0939\u093F\u0932\u0947\u0938\u092E\u094D\u092E \u0915\u0941\u0928\u0948 \u0938\u0928\u094D\u0926\u0947\u0936 \u091B\u0948\u0928",
|
|
4710
4727
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E \u091F\u094B\u0932\u0940\u0932\u093E\u0908 \u0938\u0928\u094D\u0926\u0947\u0936 \u0932\u0947\u0916\u094D\u0928\u0941\u0939\u094B\u0938\u094D...",
|
|
4711
4728
|
attachFile: "\u092B\u093E\u0907\u0932 \u0938\u0902\u0932\u0917\u094D\u0928 \u0917\u0930\u094D\u0928\u0941\u0939\u094B\u0938\u094D",
|
|
@@ -4999,6 +5016,7 @@ var translation_default17 = {
|
|
|
4999
5016
|
submitted: "\u0B26\u0B3E\u0B16\u0B32 \u0B39\u0B4B\u0B07\u0B1B\u0B3F",
|
|
5000
5017
|
responseDue: "\u0B2A\u0B4D\u0B30\u0B24\u0B3F\u0B15\u0B4D\u0B30\u0B3F\u0B5F\u0B3E \u0B2C\u0B3E\u0B15\u0B3F",
|
|
5001
5018
|
secureMessagesNotice: "\u0B06\u0B2A\u0B23\u0B19\u0B4D\u0B15 \u0B38\u0B28\u0B4D\u0B26\u0B47\u0B36 \u0B15\u0B47\u0B2C\u0B33 \u0B17\u0B4B\u0B2A\u0B28\u0B40\u0B5F\u0B24\u0B3E \u0B26\u0B33\u0B15\u0B41 \u0B38\u0B41\u0B30\u0B15\u0B4D\u0B37\u0B3F\u0B24 \u0B2D\u0B3E\u0B2C\u0B47 \u0B2A\u0B20\u0B3E\u0B2F\u0B3E\u0B0F\u0964",
|
|
5019
|
+
caseFinalizedMessagesTooltip: "\u0B0F\u0B39\u0B3F \u0B2E\u0B3E\u0B2E\u0B32\u0B3E \u0B1A\u0B42\u0B21\u0B3C\u0B3E\u0B28\u0B4D\u0B24 \u0B39\u0B4B\u0B07\u0B1B\u0B3F \u2014 \u0B2C\u0B3E\u0B30\u0B4D\u0B24\u0B4D\u0B24\u0B3E \u0B06\u0B09 \u0B2A\u0B20\u0B3E\u0B2F\u0B3E\u0B07 \u0B2A\u0B3E\u0B30\u0B3F\u0B2C \u0B28\u0B3E\u0B39\u0B3F\u0B01\u0964",
|
|
5002
5020
|
noMessagesYet: "\u0B0F\u0B2A\u0B30\u0B4D\u0B2F\u0B4D\u0B5F\u0B28\u0B4D\u0B24 \u0B15\u0B4C\u0B23\u0B38\u0B3F \u0B38\u0B28\u0B4D\u0B26\u0B47\u0B36 \u0B28\u0B3E\u0B39\u0B3F\u0B01",
|
|
5003
5021
|
writeMessagePlaceholder: "\u0B17\u0B4B\u0B2A\u0B28\u0B40\u0B5F\u0B24\u0B3E \u0B26\u0B33\u0B15\u0B41 \u0B38\u0B28\u0B4D\u0B26\u0B47\u0B36 \u0B32\u0B47\u0B16\u0B28\u0B4D\u0B24\u0B41...",
|
|
5004
5022
|
attachFile: "\u0B2B\u0B3E\u0B07\u0B32\u0B4D \u0B38\u0B02\u0B32\u0B17\u0B4D\u0B28 \u0B15\u0B30\u0B28\u0B4D\u0B24\u0B41",
|
|
@@ -5292,6 +5310,7 @@ var translation_default18 = {
|
|
|
5292
5310
|
submitted: "\u0A1C\u0A2E\u0A4D\u0A39\u0A3E\u0A02 \u0A15\u0A40\u0A24\u0A3E",
|
|
5293
5311
|
responseDue: "\u0A1C\u0A35\u0A3E\u0A2C \u0A2C\u0A15\u0A3E\u0A07\u0A06",
|
|
5294
5312
|
secureMessagesNotice: "\u0A24\u0A41\u0A39\u0A3E\u0A21\u0A47 \u0A38\u0A41\u0A28\u0A47\u0A39\u0A47 \u0A38\u0A3F\u0A30\u0A2B\u0A3C \u0A17\u0A4B\u0A2A\u0A28\u0A40\u0A2F\u0A24\u0A3E \u0A1F\u0A40\u0A2E \u0A28\u0A42\u0A70 \u0A38\u0A41\u0A30\u0A71\u0A16\u0A3F\u0A05\u0A24 \u0A22\u0A70\u0A17 \u0A28\u0A3E\u0A32 \u0A2D\u0A47\u0A1C\u0A47 \u0A1C\u0A3E\u0A02\u0A26\u0A47 \u0A39\u0A28\u0964",
|
|
5313
|
+
caseFinalizedMessagesTooltip: "\u0A07\u0A39 \u0A15\u0A47\u0A38 \u0A05\u0A70\u0A24\u0A3F\u0A2E \u0A30\u0A42\u0A2A \u0A26\u0A3F\u0A71\u0A24\u0A3E \u0A1C\u0A3E \u0A1A\u0A41\u0A71\u0A15\u0A3E \u0A39\u0A48 \u2014 \u0A39\u0A41\u0A23 \u0A38\u0A41\u0A28\u0A47\u0A39\u0A47 \u0A28\u0A39\u0A40\u0A02 \u0A2D\u0A47\u0A1C\u0A47 \u0A1C\u0A3E \u0A38\u0A15\u0A26\u0A47\u0964",
|
|
5295
5314
|
noMessagesYet: "\u0A05\u0A1C\u0A47 \u0A15\u0A4B\u0A08 \u0A38\u0A41\u0A28\u0A47\u0A39\u0A47 \u0A28\u0A39\u0A40\u0A02",
|
|
5296
5315
|
writeMessagePlaceholder: "\u0A17\u0A4B\u0A2A\u0A28\u0A40\u0A2F\u0A24\u0A3E \u0A1F\u0A40\u0A2E \u0A28\u0A42\u0A70 \u0A38\u0A41\u0A28\u0A47\u0A39\u0A3E \u0A32\u0A3F\u0A16\u0A4B...",
|
|
5297
5316
|
attachFile: "\u0A2B\u0A3C\u0A3E\u0A08\u0A32 \u0A28\u0A71\u0A25\u0A40 \u0A15\u0A30\u0A4B",
|
|
@@ -5585,6 +5604,7 @@ var translation_default19 = {
|
|
|
5585
5604
|
submitted: "\u092A\u094D\u0930\u0938\u094D\u0924\u0941\u0924\u092E\u094D",
|
|
5586
5605
|
responseDue: "\u092A\u094D\u0930\u0924\u094D\u092F\u0941\u0924\u094D\u0924\u0930\u092E\u094D \u0936\u0947\u0937\u092E\u094D",
|
|
5587
5606
|
secureMessagesNotice: "\u092D\u0935\u0924\u0903 \u0938\u0928\u094D\u0926\u0947\u0936\u093E\u0903 \u0915\u0947\u0935\u0932\u0902 \u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E-\u0926\u0932\u093E\u092F \u0938\u0941\u0930\u0915\u094D\u0937\u093F\u0924\u0930\u0942\u092A\u0947\u0923 \u092A\u094D\u0930\u0947\u0937\u093F\u0924\u093E\u0903 \u092D\u0935\u0928\u094D\u0924\u093F\u0964",
|
|
5607
|
+
caseFinalizedMessagesTooltip: "\u090F\u0937\u0903 \u0935\u093F\u0937\u092F\u0903 \u0905\u0928\u094D\u0924\u093F\u092E\u0903 \u0915\u0943\u0924\u0903 \u2014 \u0938\u0928\u094D\u0926\u0947\u0936\u093E\u0903 \u0905\u0927\u0941\u0928\u093E \u0928 \u092A\u094D\u0930\u0947\u0937\u092F\u093F\u0924\u0941\u0902 \u0936\u0915\u094D\u092F\u0928\u094D\u0924\u0947\u0964",
|
|
5588
5608
|
noMessagesYet: "\u0905\u0926\u094D\u092F\u093E\u0935\u0927\u093F \u0938\u0928\u094D\u0926\u0947\u0936\u093E\u0903 \u0928 \u0938\u0928\u094D\u0924\u093F",
|
|
5589
5609
|
writeMessagePlaceholder: "\u0917\u094B\u092A\u0928\u0940\u092F\u0924\u093E-\u0926\u0932\u093E\u092F \u0938\u0928\u094D\u0926\u0947\u0936\u0902 \u0932\u093F\u0916\u0924\u0941...",
|
|
5590
5610
|
attachFile: "\u0938\u091E\u094D\u091A\u093F\u0915\u093E\u0902 \u0938\u0902\u0932\u0917\u094D\u0928\u092F\u0924\u0941",
|
|
@@ -5878,6 +5898,7 @@ var translation_default20 = {
|
|
|
5878
5898
|
submitted: "\u1C61\u1C5A\u1C62\u1C5F \u1C66\u1C69\u1C6D \u1C5F\u1C60\u1C5F\u1C6B\u1C5F",
|
|
5879
5899
|
responseDue: "\u1C61\u1C5F\u1C63\u1C5F\u1C75 \u1C75\u1C5F\u1C60\u1C64",
|
|
5880
5900
|
secureMessagesNotice: "\u1C5F\u1C62\u1C5F\u1C5C \u1C60\u1C77\u1C5A\u1C75\u1C5A\u1C68 \u1C60\u1C77\u1C5F\u1C5E\u1C64 \u1C5C\u1C73\u1C6F\u1C5A\u1C71\u1C64\u1C6D\u1C5A\u1C5B\u1C5F \u1C74\u1C64\u1C62 \u1C5B\u1C6E \u1C65\u1C69\u1C68\u1C5A\u1C60\u1C77\u1C64\u1C5B \u1C66\u1C5A\u1C68 \u1C5B\u1C6E \u1C60\u1C69\u1C5E \u1C5F\u1C60\u1C5F\u1C6B\u1C5F\u1C7E",
|
|
5901
|
+
caseFinalizedMessagesTooltip: "\u1C71\u1C5A\u1C63\u1C5F \u1C60\u1C6E\u1C65 \u1C62\u1C69\u1C6A\u1C5F\u1C6B \u1C68\u1C6E \u1C62\u1C6E\u1C71\u1C5F\u1C5C\u1C7C\u1C5F \u2014 \u1C71\u1C64\u1C5B\u1C5A\u1C5C \u1C60\u1C77\u1C5A\u1C75\u1C5A\u1C68 \u1C75\u1C77\u1C6E\u1C61 \u1C75\u1C5F\u1C5D \u1C66\u1C69\u1C6D\u1C69\u1C5C\u1C7C\u1C5F\u1C7E",
|
|
5881
5902
|
noMessagesYet: "\u1C71\u1C64\u1C5B \u1C5B\u1C5F\u1C60 \u1C61\u1C5F\u1C66\u1C5F\u1C78 \u1C60\u1C77\u1C5A\u1C75\u1C5A\u1C68 \u1C75\u1C5F\u1C5D",
|
|
5882
5903
|
writeMessagePlaceholder: "\u1C5C\u1C73\u1C6F\u1C5A\u1C71\u1C64\u1C6D\u1C5A\u1C5B\u1C5F \u1C74\u1C64\u1C62 \u1C5B\u1C6E \u1C60\u1C77\u1C5A\u1C75\u1C5A\u1C68 \u1C5A\u1C5E...",
|
|
5883
5904
|
attachFile: "\u1C6F\u1C77\u1C5F\u1C6D\u1C64\u1C5E \u1C5E\u1C5F\u1C5C\u1C5F\u1C63",
|
|
@@ -6171,6 +6192,7 @@ var translation_default21 = {
|
|
|
6171
6192
|
submitted: "\u062C\u0645\u0639 \u06AA\u0631\u0627\u064A\u0648 \u0648\u064A\u0648",
|
|
6172
6193
|
responseDue: "\u062C\u0648\u0627\u0628 \u0648\u0627\u062C\u0628",
|
|
6173
6194
|
secureMessagesNotice: "\u062A\u0648\u0647\u0627\u0646 \u062C\u0627 \u067E\u064A\u063A\u0627\u0645 \u0635\u0631\u0641 \u0631\u0627\u0632\u062F\u0627\u0631\u064A \u067D\u064A\u0645 \u06A9\u064A \u0645\u062D\u0641\u0648\u0638 \u0637\u0631\u064A\u0642\u064A \u0633\u0627\u0646 \u0645\u0648\u06AA\u0644\u064A\u0627 \u0648\u064A\u0646\u062F\u0627 \u0622\u0647\u0646.",
|
|
6195
|
+
caseFinalizedMessagesTooltip: "\u0647\u064A \u06AA\u064A\u0633 \u0645\u06AA\u0645\u0644 \u067F\u064A \u0686\u06AA\u0648 \u0622\u0647\u064A \u2014 \u0647\u0627\u06BB\u064A \u067E\u064A\u063A\u0627\u0645 \u0646\u067F\u0627 \u0645\u0648\u06AA\u0644\u064A \u0633\u06AF\u0647\u062C\u0646.",
|
|
6174
6196
|
noMessagesYet: "\u0627\u0683\u0627 \u062A\u0627\u0626\u064A\u0646 \u06AA\u0648 \u067E\u064A\u063A\u0627\u0645 \u0646\u0627\u0647\u064A",
|
|
6175
6197
|
writeMessagePlaceholder: "\u0631\u0627\u0632\u062F\u0627\u0631\u064A \u067D\u064A\u0645 \u06A9\u064A \u067E\u064A\u063A\u0627\u0645 \u0644\u06A9\u0648...",
|
|
6176
6198
|
attachFile: "\u0641\u0627\u0626\u064A\u0644 \u06B3\u0646\u068D\u064A\u0648",
|
|
@@ -6464,6 +6486,7 @@ var translation_default22 = {
|
|
|
6464
6486
|
submitted: "\u0B9A\u0BAE\u0BB0\u0BCD\u0BAA\u0BCD\u0BAA\u0BBF\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1",
|
|
6465
6487
|
responseDue: "\u0BAA\u0BA4\u0BBF\u0BB2\u0BCD \u0BA8\u0BBF\u0BB2\u0BC1\u0BB5\u0BC8",
|
|
6466
6488
|
secureMessagesNotice: "\u0B89\u0B99\u0BCD\u0B95\u0BB3\u0BCD \u0B9A\u0BC6\u0BAF\u0BCD\u0BA4\u0BBF\u0B95\u0BB3\u0BCD \u0BA4\u0BA9\u0BBF\u0BAF\u0BC1\u0BB0\u0BBF\u0BAE\u0BC8 \u0B95\u0BC1\u0BB4\u0BC1\u0BB5\u0BBF\u0BB1\u0BCD\u0B95\u0BC1 \u0BAE\u0B9F\u0BCD\u0B9F\u0BC1\u0BAE\u0BC7 \u0BAA\u0BBE\u0BA4\u0BC1\u0B95\u0BBE\u0BAA\u0BCD\u0BAA\u0BBE\u0B95 \u0B85\u0BA9\u0BC1\u0BAA\u0BCD\u0BAA\u0BAA\u0BCD\u0BAA\u0B9F\u0BC1\u0B95\u0BBF\u0BA9\u0BCD\u0BB1\u0BA9.",
|
|
6489
|
+
caseFinalizedMessagesTooltip: "\u0B87\u0BA8\u0BCD\u0BA4 \u0BB5\u0BB4\u0B95\u0BCD\u0B95\u0BC1 \u0B87\u0BB1\u0BC1\u0BA4\u0BBF \u0B9A\u0BC6\u0BAF\u0BCD\u0BAF\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BC1\u0BB3\u0BCD\u0BB3\u0BA4\u0BC1 \u2014 \u0B9A\u0BC6\u0BAF\u0BCD\u0BA4\u0BBF\u0B95\u0BB3\u0BC8 \u0B87\u0BA9\u0BBF \u0B85\u0BA9\u0BC1\u0BAA\u0BCD\u0BAA \u0BAE\u0BC1\u0B9F\u0BBF\u0BAF\u0BBE\u0BA4\u0BC1.",
|
|
6467
6490
|
noMessagesYet: "\u0B87\u0BA9\u0BCD\u0BA9\u0BC1\u0BAE\u0BCD \u0B9A\u0BC6\u0BAF\u0BCD\u0BA4\u0BBF\u0B95\u0BB3\u0BCD \u0B87\u0BB2\u0BCD\u0BB2\u0BC8",
|
|
6468
6491
|
writeMessagePlaceholder: "\u0BA4\u0BA9\u0BBF\u0BAF\u0BC1\u0BB0\u0BBF\u0BAE\u0BC8 \u0B95\u0BC1\u0BB4\u0BC1\u0BB5\u0BBF\u0BB1\u0BCD\u0B95\u0BC1 \u0B9A\u0BC6\u0BAF\u0BCD\u0BA4\u0BBF \u0B8E\u0BB4\u0BC1\u0BA4\u0BC1\u0B99\u0BCD\u0B95\u0BB3\u0BCD...",
|
|
6469
6492
|
attachFile: "\u0B95\u0BCB\u0BAA\u0BCD\u0BAA\u0BC1 \u0B87\u0BA3\u0BC8\u0B95\u0BCD\u0B95\u0BB5\u0BC1\u0BAE\u0BCD",
|
|
@@ -6757,6 +6780,7 @@ var translation_default23 = {
|
|
|
6757
6780
|
submitted: "\u0C38\u0C2E\u0C30\u0C4D\u0C2A\u0C3F\u0C02\u0C1A\u0C2C\u0C21\u0C3F\u0C02\u0C26\u0C3F",
|
|
6758
6781
|
responseDue: "\u0C2A\u0C4D\u0C30\u0C24\u0C3F\u0C38\u0C4D\u0C2A\u0C02\u0C26\u0C28 \u0C17\u0C21\u0C41\u0C35\u0C41",
|
|
6759
6782
|
secureMessagesNotice: "\u0C2E\u0C40 \u0C38\u0C02\u0C26\u0C47\u0C36\u0C3E\u0C32\u0C41 \u0C17\u0C4B\u0C2A\u0C4D\u0C2F\u0C24\u0C3E \u0C2C\u0C43\u0C02\u0C26\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C2E\u0C3E\u0C24\u0C4D\u0C30\u0C2E\u0C47 \u0C38\u0C41\u0C30\u0C15\u0C4D\u0C37\u0C3F\u0C24\u0C02\u0C17\u0C3E \u0C2A\u0C02\u0C2A\u0C2C\u0C21\u0C24\u0C3E\u0C2F\u0C3F.",
|
|
6783
|
+
caseFinalizedMessagesTooltip: "\u0C08 \u0C15\u0C47\u0C38\u0C41 \u0C16\u0C30\u0C3E\u0C30\u0C41 \u0C1A\u0C47\u0C2F\u0C2C\u0C21\u0C3F\u0C02\u0C26\u0C3F \u2014 \u0C07\u0C15\u0C2A\u0C48 \u0C38\u0C02\u0C26\u0C47\u0C36\u0C3E\u0C32\u0C41 \u0C2A\u0C02\u0C2A\u0C32\u0C47\u0C30\u0C41.",
|
|
6760
6784
|
noMessagesYet: "\u0C07\u0C02\u0C15\u0C3E \u0C38\u0C02\u0C26\u0C47\u0C36\u0C3E\u0C32\u0C41 \u0C32\u0C47\u0C35\u0C41",
|
|
6761
6785
|
writeMessagePlaceholder: "\u0C17\u0C4B\u0C2A\u0C4D\u0C2F\u0C24\u0C3E \u0C2C\u0C43\u0C02\u0C26\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C38\u0C02\u0C26\u0C47\u0C36\u0C02 \u0C30\u0C3E\u0C2F\u0C02\u0C21\u0C3F...",
|
|
6762
6786
|
attachFile: "\u0C2B\u0C48\u0C32\u0C4D \u0C1C\u0C4B\u0C21\u0C3F\u0C02\u0C1A\u0C02\u0C21\u0C3F",
|
|
@@ -7050,6 +7074,7 @@ var translation_default24 = {
|
|
|
7050
7074
|
submitted: "\u062C\u0645\u0639 \u06A9\u0631\u0627\u06CC\u0627 \u06AF\u06CC\u0627",
|
|
7051
7075
|
responseDue: "\u062C\u0648\u0627\u0628 \u0648\u0627\u062C\u0628",
|
|
7052
7076
|
secureMessagesNotice: "\u0622\u067E \u06A9\u06D2 \u067E\u06CC\u063A\u0627\u0645\u0627\u062A \u0635\u0631\u0641 \u067E\u0631\u0627\u0626\u06CC\u0648\u06CC\u0633\u06CC \u0679\u06CC\u0645 \u06A9\u0648 \u0645\u062D\u0641\u0648\u0638 \u0637\u0631\u06CC\u0642\u06D2 \u0633\u06D2 \u0628\u06BE\u06CC\u062C\u06D2 \u062C\u0627\u062A\u06D2 \u06C1\u06CC\u06BA\u06D4",
|
|
7077
|
+
caseFinalizedMessagesTooltip: "\u06CC\u06C1 \u06A9\u06CC\u0633 \u0645\u06A9\u0645\u0644 \u06C1\u0648 \u0686\u06A9\u0627 \u06C1\u06D2 \u2014 \u0627\u0628 \u067E\u06CC\u063A\u0627\u0645\u0627\u062A \u0646\u06C1\u06CC\u06BA \u0628\u06BE\u06CC\u062C\u06D2 \u062C\u0627 \u0633\u06A9\u062A\u06D2\u06D4",
|
|
7053
7078
|
noMessagesYet: "\u0627\u0628\u06BE\u06CC \u062A\u06A9 \u06A9\u0648\u0626\u06CC \u067E\u06CC\u063A\u0627\u0645 \u0646\u06C1\u06CC\u06BA",
|
|
7054
7079
|
writeMessagePlaceholder: "\u067E\u0631\u0627\u0626\u06CC\u0648\u06CC\u0633\u06CC \u0679\u06CC\u0645 \u06A9\u0648 \u067E\u06CC\u063A\u0627\u0645 \u0644\u06A9\u06BE\u06CC\u06BA...",
|
|
7055
7080
|
attachFile: "\u0641\u0627\u0626\u0644 \u0645\u0646\u0633\u0644\u06A9 \u06A9\u0631\u06CC\u06BA",
|
|
@@ -10693,7 +10718,8 @@ function PCTooltip({
|
|
|
10693
10718
|
placement = "top",
|
|
10694
10719
|
className = "",
|
|
10695
10720
|
style = {},
|
|
10696
|
-
color = "default"
|
|
10721
|
+
color = "default",
|
|
10722
|
+
triggerStyle
|
|
10697
10723
|
}) {
|
|
10698
10724
|
const [isVisible, setIsVisible] = (0, import_react9.useState)(false);
|
|
10699
10725
|
const [position, setPosition] = (0, import_react9.useState)({ top: 0, left: 0 });
|
|
@@ -10767,7 +10793,7 @@ function PCTooltip({
|
|
|
10767
10793
|
ref: triggerRef,
|
|
10768
10794
|
onMouseEnter: () => setIsVisible(true),
|
|
10769
10795
|
onMouseLeave: () => setIsVisible(false),
|
|
10770
|
-
style: { display: "inline-block", width: "100%" },
|
|
10796
|
+
style: { display: "inline-block", width: "100%", ...triggerStyle },
|
|
10771
10797
|
children
|
|
10772
10798
|
}
|
|
10773
10799
|
),
|
|
@@ -11547,7 +11573,6 @@ var GRIEVANCE_TAB_IDS = {
|
|
|
11547
11573
|
COMPLETED: "completed",
|
|
11548
11574
|
REJECTED: "rejected"
|
|
11549
11575
|
};
|
|
11550
|
-
var MAX_DISPLAYED_PURPOSE_NAMES_IN_ERASURE_MODAL = 3;
|
|
11551
11576
|
|
|
11552
11577
|
// src/RedactoPrivacyCenter/components/SideMenuBarPC/constants.tsx
|
|
11553
11578
|
var import_lucide_react4 = require("lucide-react");
|
|
@@ -11684,6 +11709,13 @@ var STATUS_COLORS = {
|
|
|
11684
11709
|
infoDark: "#1d4ed8",
|
|
11685
11710
|
infoBanner: { color: "#1d4ed8", bg: "#eff6ff", border: "#bfdbfe" }
|
|
11686
11711
|
};
|
|
11712
|
+
var TERMINAL_CASE_STATUSES = ["completed", "rejected", "declined", "expired"];
|
|
11713
|
+
var CASE_FINALIZED_TOOLTIP_KEY = "caseFinalizedMessagesTooltip";
|
|
11714
|
+
var CASE_FINALIZED_TOOLTIP_FALLBACK = "This case is finalized \u2014 messages can no longer be sent.";
|
|
11715
|
+
var useCaseFinalizedTooltip = () => {
|
|
11716
|
+
const { t } = (0, import_react_i18next3.useTranslation)();
|
|
11717
|
+
return t(CASE_FINALIZED_TOOLTIP_KEY, CASE_FINALIZED_TOOLTIP_FALLBACK);
|
|
11718
|
+
};
|
|
11687
11719
|
var UPLOAD_ACTIVE_STATUSES = ["pending", "replacement_requested"];
|
|
11688
11720
|
var DOCUMENT_REQUEST_STATUS_LABEL = {
|
|
11689
11721
|
pending: { labelKey: "docStatusPending", color: STATUS_COLORS.warning.color },
|
|
@@ -17535,6 +17567,15 @@ function PurposeSelectionSection({
|
|
|
17535
17567
|
fontSize: pcStyles.textXs.fontSize,
|
|
17536
17568
|
color: getVar18("--pc-text-secondary")
|
|
17537
17569
|
}, children: requestType === "ACCESS" /* ACCESS */ ? t("whatDataToAccess") : t("whatDataToDelete") }),
|
|
17570
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { style: {
|
|
17571
|
+
marginTop: "0.25rem",
|
|
17572
|
+
marginBottom: "0.5rem",
|
|
17573
|
+
paddingLeft: getVar18("--pc-spacing-sm"),
|
|
17574
|
+
borderLeft: `2px solid ${getVar18("--pc-primary")}`,
|
|
17575
|
+
fontSize: pcStyles.textXs.fontSize,
|
|
17576
|
+
color: getVar18("--pc-text-secondary"),
|
|
17577
|
+
lineHeight: 1.4
|
|
17578
|
+
}, children: t("revocationNotDeletionNote") || "Revoking consent does not delete data the organization already holds. You can still request access to or erasure of this data, including for purposes whose consent you have withdrawn." }),
|
|
17538
17579
|
!isErasure && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
17539
17580
|
PCCheckbox,
|
|
17540
17581
|
{
|
|
@@ -18034,8 +18075,6 @@ function Form({
|
|
|
18034
18075
|
const [isLoading, setIsLoading] = (0, import_react38.useState)(false);
|
|
18035
18076
|
const [isTranslating, setIsTranslating] = (0, import_react38.useState)(false);
|
|
18036
18077
|
const [isRequestDetailsExpanded, setIsRequestDetailsExpanded] = (0, import_react38.useState)(true);
|
|
18037
|
-
const [isErasureConsentModalOpen, setIsErasureConsentModalOpen] = (0, import_react38.useState)(false);
|
|
18038
|
-
const [revokeConsentOnFulfilment, setRevokeConsentOnFulfilment] = (0, import_react38.useState)(false);
|
|
18039
18078
|
const resetFileInput = () => {
|
|
18040
18079
|
if (fileInputRef.current) {
|
|
18041
18080
|
fileInputRef.current.value = "";
|
|
@@ -18055,7 +18094,7 @@ function Form({
|
|
|
18055
18094
|
const uniqueElements = /* @__PURE__ */ new Map();
|
|
18056
18095
|
extractedPurposes.forEach((purpose) => {
|
|
18057
18096
|
const validDataElements = Array.isArray(purpose.data_elements) ? purpose.data_elements.filter(
|
|
18058
|
-
(element) => element !== null && element !== void 0 && element.uuid
|
|
18097
|
+
(element) => element !== null && element !== void 0 && element.uuid
|
|
18059
18098
|
) : [];
|
|
18060
18099
|
validDataElements.forEach((element) => {
|
|
18061
18100
|
if (element.uuid && !uniqueElements.has(element.uuid)) {
|
|
@@ -18070,7 +18109,7 @@ function Form({
|
|
|
18070
18109
|
Array.from(uniqueElements.values())
|
|
18071
18110
|
);
|
|
18072
18111
|
const processedPurposes = extractedPurposes.map((p) => {
|
|
18073
|
-
const validDataElements = Array.isArray(p.data_elements) ? p.data_elements.filter((de) => de !== null && de !== void 0 && de.
|
|
18112
|
+
const validDataElements = Array.isArray(p.data_elements) ? p.data_elements.filter((de) => de !== null && de !== void 0 && de.uuid).map((de) => ({
|
|
18074
18113
|
...de,
|
|
18075
18114
|
selected: false
|
|
18076
18115
|
})) : [];
|
|
@@ -18162,7 +18201,7 @@ function Form({
|
|
|
18162
18201
|
if ((data == null ? void 0 : data.purposes) && Array.isArray(data.purposes)) {
|
|
18163
18202
|
const extractedPurposes = data.purposes.map((p) => p == null ? void 0 : p.purpose).filter((p) => p !== null && p !== void 0);
|
|
18164
18203
|
const processedPurposes = extractedPurposes.map((p) => {
|
|
18165
|
-
const validDataElements = Array.isArray(p.data_elements) ? p.data_elements.filter((de) => de !== null && de !== void 0 && de.
|
|
18204
|
+
const validDataElements = Array.isArray(p.data_elements) ? p.data_elements.filter((de) => de !== null && de !== void 0 && de.uuid).map((de) => ({
|
|
18166
18205
|
...de,
|
|
18167
18206
|
selected: false
|
|
18168
18207
|
})) : [];
|
|
@@ -18300,36 +18339,12 @@ function Form({
|
|
|
18300
18339
|
}
|
|
18301
18340
|
return translatedName;
|
|
18302
18341
|
}, [data]);
|
|
18303
|
-
const selectedErasurePurposeList = (0, import_react38.useMemo)(
|
|
18304
|
-
() => erasurePurposes.filter((p) => p.selected || p.data_elements.some((de) => de.selected)).map((p) => p.name).filter(Boolean),
|
|
18305
|
-
[erasurePurposes]
|
|
18306
|
-
);
|
|
18307
|
-
const selectedErasurePurposeNames = (0, import_react38.useMemo)(() => {
|
|
18308
|
-
if (selectedErasurePurposeList.length === 0 || selectedErasurePurposeList.length > MAX_DISPLAYED_PURPOSE_NAMES_IN_ERASURE_MODAL) {
|
|
18309
|
-
return t("revokeConsentModalYourPurposes");
|
|
18310
|
-
}
|
|
18311
|
-
return selectedErasurePurposeList.join(", ");
|
|
18312
|
-
}, [selectedErasurePurposeList, t]);
|
|
18313
18342
|
const handleSubmitClick = () => {
|
|
18314
18343
|
if (!isFormValid) {
|
|
18315
18344
|
return;
|
|
18316
18345
|
}
|
|
18317
|
-
;
|
|
18318
|
-
if (requestType === "erasure" /* ERASURE */) {
|
|
18319
|
-
setIsErasureConsentModalOpen(true);
|
|
18320
|
-
return;
|
|
18321
|
-
}
|
|
18322
|
-
setRevokeConsentOnFulfilment(false);
|
|
18323
18346
|
void handleSubmit(false);
|
|
18324
18347
|
};
|
|
18325
|
-
const handleErasureModalChoice = (revoke) => {
|
|
18326
|
-
setRevokeConsentOnFulfilment(revoke);
|
|
18327
|
-
setIsErasureConsentModalOpen(false);
|
|
18328
|
-
void handleSubmit(revoke);
|
|
18329
|
-
};
|
|
18330
|
-
const handleErasureModalClose = () => {
|
|
18331
|
-
setIsErasureConsentModalOpen(false);
|
|
18332
|
-
};
|
|
18333
18348
|
const handleSubmit = async (revokeConsent = false) => {
|
|
18334
18349
|
var _a2;
|
|
18335
18350
|
if (!isFormValid) {
|
|
@@ -18623,647 +18638,592 @@ function Form({
|
|
|
18623
18638
|
setIsVerifyingContact(false);
|
|
18624
18639
|
}
|
|
18625
18640
|
};
|
|
18626
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.
|
|
18627
|
-
|
|
18628
|
-
|
|
18641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: isSubmitted && !isPopup ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18642
|
+
RequestSubmit,
|
|
18643
|
+
{
|
|
18644
|
+
caseId: caseId || "",
|
|
18645
|
+
contact: formData == null ? void 0 : formData.contact,
|
|
18646
|
+
onCreateRequest
|
|
18647
|
+
}
|
|
18648
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { children: [
|
|
18649
|
+
!isPopup && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { style: {
|
|
18650
|
+
marginTop: 0,
|
|
18651
|
+
marginBottom: getVar20("--pc-spacing-sm"),
|
|
18652
|
+
lineHeight: 1.5,
|
|
18653
|
+
fontSize: pcStyles.textSm.fontSize,
|
|
18654
|
+
color: getVar20("--pc-text-secondary")
|
|
18655
|
+
}, children: t("description") }),
|
|
18656
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18657
|
+
"div",
|
|
18629
18658
|
{
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
|
|
18639
|
-
|
|
18640
|
-
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18659
|
+
style: {
|
|
18660
|
+
backgroundColor: getVar20("--pc-bg-primary"),
|
|
18661
|
+
...isPopup ? {
|
|
18662
|
+
marginTop: 0,
|
|
18663
|
+
marginBottom: 0,
|
|
18664
|
+
borderRadius: pcStyles.borderRadiusXl
|
|
18665
|
+
} : {
|
|
18666
|
+
marginTop: pcStyles.mtSm.marginTop,
|
|
18667
|
+
marginBottom: pcStyles.mbSm.marginBottom,
|
|
18668
|
+
borderRadius: pcStyles.borderRadiusXl,
|
|
18669
|
+
border: `1px solid ${getVar20("--pc-border-color")}`,
|
|
18670
|
+
boxShadow: getVar20("--pc-shadow-sm")
|
|
18671
|
+
}
|
|
18672
|
+
},
|
|
18673
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(FormBlockWrapper, { inputClassName: "mx-auto", children: [
|
|
18674
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
18675
|
+
"div",
|
|
18676
|
+
{
|
|
18677
|
+
style: {
|
|
18678
|
+
...pcStyles.flex,
|
|
18679
|
+
...pcStyles.itemsCenter,
|
|
18680
|
+
...pcStyles.justifyBetween,
|
|
18681
|
+
backgroundColor: `var(--pc-bg-secondary)`,
|
|
18682
|
+
padding: getVar20("--pc-spacing-md"),
|
|
18683
|
+
width: "100%",
|
|
18684
|
+
overflow: "visible",
|
|
18685
|
+
...isPopup ? {
|
|
18686
|
+
position: "sticky",
|
|
18687
|
+
top: 0,
|
|
18688
|
+
zIndex: 20,
|
|
18689
|
+
borderBottom: `1px solid var(--pc-border-color)`
|
|
18690
|
+
} : {
|
|
18691
|
+
position: "relative",
|
|
18692
|
+
borderRadius: `${getVar20("--pc-border-radius-lg")} ${getVar20("--pc-border-radius-lg")} 0 0`
|
|
18693
|
+
}
|
|
18694
|
+
},
|
|
18695
|
+
className: "pc-padding-responsive",
|
|
18696
|
+
children: [
|
|
18697
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { style: {
|
|
18698
|
+
fontSize: pcStyles.textSm.fontSize,
|
|
18699
|
+
fontWeight: pcStyles.fontWeightSemibold.fontWeight,
|
|
18700
|
+
color: `var(--pc-text-primary)`,
|
|
18701
|
+
margin: 0,
|
|
18702
|
+
whiteSpace: "nowrap",
|
|
18703
|
+
flexShrink: 0,
|
|
18704
|
+
flexGrow: 0
|
|
18705
|
+
}, className: "pc-text-responsive", children: t("raiseDataRequest") }),
|
|
18706
|
+
isPopup && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18707
|
+
PCButton,
|
|
18708
|
+
{
|
|
18709
|
+
variant: "text",
|
|
18710
|
+
onClick: onClose,
|
|
18711
|
+
style: { padding: 0, flexShrink: 0, marginLeft: "auto" },
|
|
18712
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_fi.FiX, { size: 20 })
|
|
18713
|
+
}
|
|
18714
|
+
)
|
|
18715
|
+
]
|
|
18659
18716
|
}
|
|
18660
|
-
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
{
|
|
18665
|
-
|
|
18717
|
+
),
|
|
18718
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
18719
|
+
"div",
|
|
18720
|
+
{
|
|
18721
|
+
style: {
|
|
18722
|
+
...pcStyles.flex,
|
|
18723
|
+
...pcStyles.flexCol,
|
|
18724
|
+
gap: getVar20("--pc-spacing-lg"),
|
|
18725
|
+
padding: getVar20("--pc-spacing-lg")
|
|
18726
|
+
},
|
|
18727
|
+
className: "pc-padding-responsive pc-spacing-responsive",
|
|
18728
|
+
children: [
|
|
18729
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { style: {
|
|
18666
18730
|
...pcStyles.flex,
|
|
18667
|
-
...pcStyles.itemsCenter,
|
|
18668
|
-
...pcStyles.justifyBetween,
|
|
18669
|
-
backgroundColor: `var(--pc-bg-secondary)`,
|
|
18670
|
-
padding: getVar20("--pc-spacing-md"),
|
|
18671
18731
|
width: "100%",
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
zIndex: 20,
|
|
18677
|
-
borderBottom: `1px solid var(--pc-border-color)`
|
|
18678
|
-
} : {
|
|
18679
|
-
position: "relative",
|
|
18680
|
-
borderRadius: `${getVar20("--pc-border-radius-lg")} ${getVar20("--pc-border-radius-lg")} 0 0`
|
|
18681
|
-
}
|
|
18682
|
-
},
|
|
18683
|
-
className: "pc-padding-responsive",
|
|
18684
|
-
children: [
|
|
18685
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { style: {
|
|
18686
|
-
fontSize: pcStyles.textSm.fontSize,
|
|
18687
|
-
fontWeight: pcStyles.fontWeightSemibold.fontWeight,
|
|
18688
|
-
color: `var(--pc-text-primary)`,
|
|
18689
|
-
margin: 0,
|
|
18690
|
-
whiteSpace: "nowrap",
|
|
18691
|
-
flexShrink: 0,
|
|
18692
|
-
flexGrow: 0
|
|
18693
|
-
}, className: "pc-text-responsive", children: t("raiseDataRequest") }),
|
|
18694
|
-
isPopup && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18695
|
-
PCButton,
|
|
18696
|
-
{
|
|
18697
|
-
variant: "text",
|
|
18698
|
-
onClick: onClose,
|
|
18699
|
-
style: { padding: 0, flexShrink: 0, marginLeft: "auto" },
|
|
18700
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_fi.FiX, { size: 20 })
|
|
18701
|
-
}
|
|
18702
|
-
)
|
|
18703
|
-
]
|
|
18704
|
-
}
|
|
18705
|
-
),
|
|
18706
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
18707
|
-
"div",
|
|
18708
|
-
{
|
|
18709
|
-
style: {
|
|
18710
|
-
...pcStyles.flex,
|
|
18711
|
-
...pcStyles.flexCol,
|
|
18712
|
-
gap: getVar20("--pc-spacing-lg"),
|
|
18713
|
-
padding: getVar20("--pc-spacing-lg")
|
|
18714
|
-
},
|
|
18715
|
-
className: "pc-padding-responsive pc-spacing-responsive",
|
|
18716
|
-
children: [
|
|
18717
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { style: {
|
|
18718
|
-
...pcStyles.flex,
|
|
18719
|
-
width: "100%",
|
|
18720
|
-
...pcStyles.itemsEnd,
|
|
18721
|
-
gap: getVar20("--pc-spacing-sm"),
|
|
18722
|
-
flexWrap: "wrap"
|
|
18723
|
-
}, children: [
|
|
18724
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18725
|
-
PCInput,
|
|
18726
|
-
{
|
|
18727
|
-
style: { flex: 1, minWidth: "200px" },
|
|
18728
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { children: [
|
|
18729
|
-
t("contact"),
|
|
18730
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: { color: getVar20("--pc-error") }, children: "*" })
|
|
18731
|
-
] }),
|
|
18732
|
-
placeholder: t("contactPlaceholder"),
|
|
18733
|
-
value: formData.contact,
|
|
18734
|
-
readOnly: !isPopup,
|
|
18735
|
-
onChange: (e) => {
|
|
18736
|
-
if (!isPopup) {
|
|
18737
|
-
return;
|
|
18738
|
-
}
|
|
18739
|
-
;
|
|
18740
|
-
setFormData({
|
|
18741
|
-
...formData,
|
|
18742
|
-
contact: e.target.value
|
|
18743
|
-
});
|
|
18744
|
-
setIsPopupFormEnabled(false);
|
|
18745
|
-
}
|
|
18746
|
-
}
|
|
18747
|
-
),
|
|
18748
|
-
isPopup && !isPopupFormEnabled && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: { ...pcStyles.flex, ...pcStyles.justifyEnd }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18749
|
-
PCButton,
|
|
18750
|
-
{
|
|
18751
|
-
size: "sm",
|
|
18752
|
-
onClick: handleVerifyContact,
|
|
18753
|
-
style: { height: "2.25rem", flexShrink: 0 },
|
|
18754
|
-
disabled: !formData.contact || isVerifyingContact,
|
|
18755
|
-
children: isVerifyingContact ? t("verifying") : t("verify")
|
|
18756
|
-
}
|
|
18757
|
-
) })
|
|
18758
|
-
] }),
|
|
18732
|
+
...pcStyles.itemsEnd,
|
|
18733
|
+
gap: getVar20("--pc-spacing-sm"),
|
|
18734
|
+
flexWrap: "wrap"
|
|
18735
|
+
}, children: [
|
|
18759
18736
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18760
|
-
|
|
18737
|
+
PCInput,
|
|
18761
18738
|
{
|
|
18739
|
+
style: { flex: 1, minWidth: "200px" },
|
|
18762
18740
|
label: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { children: [
|
|
18763
|
-
t("
|
|
18741
|
+
t("contact"),
|
|
18764
18742
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: { color: getVar20("--pc-error") }, children: "*" })
|
|
18765
18743
|
] }),
|
|
18766
|
-
|
|
18767
|
-
|
|
18768
|
-
|
|
18769
|
-
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
label: requestTypeLabels[type]
|
|
18773
|
-
})).find((opt) => opt.value === requestType) || null,
|
|
18774
|
-
onChange: (value) => {
|
|
18775
|
-
if (value) {
|
|
18776
|
-
setRequestType(value.value);
|
|
18777
|
-
setTimePeriod("");
|
|
18778
|
-
setIsRequestDetailsExpanded(true);
|
|
18744
|
+
placeholder: t("contactPlaceholder"),
|
|
18745
|
+
value: formData.contact,
|
|
18746
|
+
readOnly: !isPopup,
|
|
18747
|
+
onChange: (e) => {
|
|
18748
|
+
if (!isPopup) {
|
|
18749
|
+
return;
|
|
18779
18750
|
}
|
|
18780
|
-
|
|
18781
|
-
|
|
18782
|
-
|
|
18751
|
+
;
|
|
18752
|
+
setFormData({
|
|
18753
|
+
...formData,
|
|
18754
|
+
contact: e.target.value
|
|
18755
|
+
});
|
|
18756
|
+
setIsPopupFormEnabled(false);
|
|
18757
|
+
}
|
|
18783
18758
|
}
|
|
18784
18759
|
),
|
|
18785
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.
|
|
18786
|
-
|
|
18760
|
+
isPopup && !isPopupFormEnabled && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: { ...pcStyles.flex, ...pcStyles.justifyEnd }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18761
|
+
PCButton,
|
|
18787
18762
|
{
|
|
18788
|
-
|
|
18789
|
-
|
|
18790
|
-
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
backgroundColor: getVar20("--pc-bg-secondary"),
|
|
18794
|
-
overflow: "hidden",
|
|
18795
|
-
...isPopup && !isPopupFormEnabled ? {
|
|
18796
|
-
pointerEvents: "none",
|
|
18797
|
-
opacity: 0.6
|
|
18798
|
-
} : {}
|
|
18799
|
-
},
|
|
18800
|
-
children: [
|
|
18801
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { style: {
|
|
18802
|
-
...pcStyles.flex,
|
|
18803
|
-
...pcStyles.itemsCenter,
|
|
18804
|
-
...pcStyles.justifyBetween,
|
|
18805
|
-
padding: getVar20("--pc-spacing-md"),
|
|
18806
|
-
borderBottom: isRequestDetailsExpanded ? `1px solid ${getVar20("--pc-border-color")}` : "none"
|
|
18807
|
-
}, children: [
|
|
18808
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("p", { style: {
|
|
18809
|
-
fontWeight: pcStyles.fontWeightSemibold.fontWeight,
|
|
18810
|
-
color: `var(--pc-text-primary)`,
|
|
18811
|
-
fontSize: pcStyles.textSm.fontSize,
|
|
18812
|
-
margin: 0
|
|
18813
|
-
}, children: [
|
|
18814
|
-
t("requestDetails"),
|
|
18815
|
-
" ",
|
|
18816
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: { color: getVar20("--pc-error") }, children: "*" })
|
|
18817
|
-
] }),
|
|
18818
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18819
|
-
PCButton,
|
|
18820
|
-
{
|
|
18821
|
-
variant: "text",
|
|
18822
|
-
size: "sm",
|
|
18823
|
-
style: { height: "auto", padding: 0, color: "var(--pc-text-secondary)", flexShrink: 0 },
|
|
18824
|
-
onClick: () => setIsRequestDetailsExpanded(
|
|
18825
|
-
!isRequestDetailsExpanded
|
|
18826
|
-
),
|
|
18827
|
-
children: isRequestDetailsExpanded ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_fi.FiChevronUp, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_fi.FiChevronDown, { size: 20 })
|
|
18828
|
-
}
|
|
18829
|
-
)
|
|
18830
|
-
] }),
|
|
18831
|
-
isRequestDetailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: {
|
|
18832
|
-
padding: getVar20("--pc-spacing-md")
|
|
18833
|
-
}, children: requestType === "ACCESS" /* ACCESS */ || requestType === "erasure" /* ERASURE */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18834
|
-
PurposeSelectionSection,
|
|
18835
|
-
{
|
|
18836
|
-
purposes: requestType === "ACCESS" /* ACCESS */ ? accessPurposes : erasurePurposes,
|
|
18837
|
-
setPurposes: requestType === "ACCESS" /* ACCESS */ ? setAccessPurposes : setErasurePurposes,
|
|
18838
|
-
requestType,
|
|
18839
|
-
isTranslating
|
|
18840
|
-
}
|
|
18841
|
-
) : requestType === "CORRECTION" /* CORRECTION */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18842
|
-
CorrectionDataSection,
|
|
18843
|
-
{
|
|
18844
|
-
dataElements: uniqueDataElements,
|
|
18845
|
-
selected: selectedCorrectionElements,
|
|
18846
|
-
setSelected: setSelectedCorrectionElements,
|
|
18847
|
-
correctionValues,
|
|
18848
|
-
setCorrectionValues,
|
|
18849
|
-
isTranslating
|
|
18850
|
-
}
|
|
18851
|
-
) : requestType === "grievance" /* GRIEVANCE */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18852
|
-
GrievanceDataSection,
|
|
18853
|
-
{
|
|
18854
|
-
grievanceOptions,
|
|
18855
|
-
selectedGrievances,
|
|
18856
|
-
setSelectedGrievances,
|
|
18857
|
-
isTranslating
|
|
18858
|
-
}
|
|
18859
|
-
) : requestType === "nomination" /* NOMINATION */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18860
|
-
NominationDataSection,
|
|
18861
|
-
{
|
|
18862
|
-
nominationData,
|
|
18863
|
-
setNominationData,
|
|
18864
|
-
isTranslating
|
|
18865
|
-
}
|
|
18866
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18867
|
-
"div",
|
|
18868
|
-
{
|
|
18869
|
-
style: {
|
|
18870
|
-
color: getVar20("--pc-text-secondary"),
|
|
18871
|
-
...isPopup ? {
|
|
18872
|
-
padding: getVar20("--pc-spacing-md")
|
|
18873
|
-
} : {
|
|
18874
|
-
...pcStyles.flex,
|
|
18875
|
-
height: "8rem",
|
|
18876
|
-
...pcStyles.itemsCenter,
|
|
18877
|
-
...pcStyles.justifyCenter,
|
|
18878
|
-
padding: getVar20("--pc-spacing-lg")
|
|
18879
|
-
},
|
|
18880
|
-
textAlign: "center"
|
|
18881
|
-
},
|
|
18882
|
-
children: t("selectRequestType")
|
|
18883
|
-
}
|
|
18884
|
-
) })
|
|
18885
|
-
]
|
|
18763
|
+
size: "sm",
|
|
18764
|
+
onClick: handleVerifyContact,
|
|
18765
|
+
style: { height: "2.25rem", flexShrink: 0 },
|
|
18766
|
+
disabled: !formData.contact || isVerifyingContact,
|
|
18767
|
+
children: isVerifyingContact ? t("verifying") : t("verify")
|
|
18886
18768
|
}
|
|
18887
|
-
)
|
|
18888
|
-
|
|
18889
|
-
|
|
18890
|
-
|
|
18891
|
-
|
|
18769
|
+
) })
|
|
18770
|
+
] }),
|
|
18771
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18772
|
+
PCSelect,
|
|
18773
|
+
{
|
|
18774
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { children: [
|
|
18775
|
+
t("requestType"),
|
|
18776
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: { color: getVar20("--pc-error") }, children: "*" })
|
|
18777
|
+
] }),
|
|
18778
|
+
options: Object.values(RequestTypeEnum).map((type) => ({
|
|
18779
|
+
value: type,
|
|
18780
|
+
label: requestTypeLabels[type]
|
|
18781
|
+
})),
|
|
18782
|
+
value: Object.values(RequestTypeEnum).map((type) => ({
|
|
18783
|
+
value: type,
|
|
18784
|
+
label: requestTypeLabels[type]
|
|
18785
|
+
})).find((opt) => opt.value === requestType) || null,
|
|
18786
|
+
onChange: (value) => {
|
|
18787
|
+
if (value) {
|
|
18788
|
+
setRequestType(value.value);
|
|
18789
|
+
setTimePeriod("");
|
|
18790
|
+
setIsRequestDetailsExpanded(true);
|
|
18791
|
+
}
|
|
18792
|
+
},
|
|
18793
|
+
placeholder: t("selectRequestType"),
|
|
18794
|
+
disabled: isPopup && !isPopupFormEnabled
|
|
18795
|
+
}
|
|
18796
|
+
),
|
|
18797
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
18798
|
+
"div",
|
|
18799
|
+
{
|
|
18800
|
+
style: {
|
|
18801
|
+
...pcStyles.flex,
|
|
18802
|
+
...pcStyles.flexCol,
|
|
18803
|
+
borderRadius: pcStyles.borderRadiusLg,
|
|
18804
|
+
border: `1px solid ${getVar20("--pc-border-color")}`,
|
|
18805
|
+
backgroundColor: getVar20("--pc-bg-secondary"),
|
|
18806
|
+
overflow: "hidden",
|
|
18807
|
+
...isPopup && !isPopupFormEnabled ? {
|
|
18808
|
+
pointerEvents: "none",
|
|
18809
|
+
opacity: 0.6
|
|
18810
|
+
} : {}
|
|
18811
|
+
},
|
|
18812
|
+
children: [
|
|
18813
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { style: {
|
|
18892
18814
|
...pcStyles.flex,
|
|
18893
|
-
...pcStyles.
|
|
18894
|
-
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
},
|
|
18900
|
-
children: [
|
|
18901
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { style: {
|
|
18815
|
+
...pcStyles.itemsCenter,
|
|
18816
|
+
...pcStyles.justifyBetween,
|
|
18817
|
+
padding: getVar20("--pc-spacing-md"),
|
|
18818
|
+
borderBottom: isRequestDetailsExpanded ? `1px solid ${getVar20("--pc-border-color")}` : "none"
|
|
18819
|
+
}, children: [
|
|
18820
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("p", { style: {
|
|
18902
18821
|
fontWeight: pcStyles.fontWeightSemibold.fontWeight,
|
|
18903
18822
|
color: `var(--pc-text-primary)`,
|
|
18904
18823
|
fontSize: pcStyles.textSm.fontSize,
|
|
18905
18824
|
margin: 0
|
|
18906
|
-
}, children:
|
|
18825
|
+
}, children: [
|
|
18826
|
+
t("requestDetails"),
|
|
18827
|
+
" ",
|
|
18828
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: { color: getVar20("--pc-error") }, children: "*" })
|
|
18829
|
+
] }),
|
|
18907
18830
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18908
|
-
|
|
18831
|
+
PCButton,
|
|
18909
18832
|
{
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18833
|
+
variant: "text",
|
|
18834
|
+
size: "sm",
|
|
18835
|
+
style: { height: "auto", padding: 0, color: "var(--pc-text-secondary)", flexShrink: 0 },
|
|
18836
|
+
onClick: () => setIsRequestDetailsExpanded(
|
|
18837
|
+
!isRequestDetailsExpanded
|
|
18838
|
+
),
|
|
18839
|
+
children: isRequestDetailsExpanded ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_fi.FiChevronUp, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_fi.FiChevronDown, { size: 20 })
|
|
18915
18840
|
}
|
|
18916
|
-
)
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18841
|
+
)
|
|
18842
|
+
] }),
|
|
18843
|
+
isRequestDetailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: {
|
|
18844
|
+
padding: getVar20("--pc-spacing-md")
|
|
18845
|
+
}, children: requestType === "ACCESS" /* ACCESS */ || requestType === "erasure" /* ERASURE */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18846
|
+
PurposeSelectionSection,
|
|
18847
|
+
{
|
|
18848
|
+
purposes: requestType === "ACCESS" /* ACCESS */ ? accessPurposes : erasurePurposes,
|
|
18849
|
+
setPurposes: requestType === "ACCESS" /* ACCESS */ ? setAccessPurposes : setErasurePurposes,
|
|
18850
|
+
requestType,
|
|
18851
|
+
isTranslating
|
|
18852
|
+
}
|
|
18853
|
+
) : requestType === "CORRECTION" /* CORRECTION */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18854
|
+
CorrectionDataSection,
|
|
18855
|
+
{
|
|
18856
|
+
dataElements: uniqueDataElements,
|
|
18857
|
+
selected: selectedCorrectionElements,
|
|
18858
|
+
setSelected: setSelectedCorrectionElements,
|
|
18859
|
+
correctionValues,
|
|
18860
|
+
setCorrectionValues,
|
|
18861
|
+
isTranslating
|
|
18862
|
+
}
|
|
18863
|
+
) : requestType === "grievance" /* GRIEVANCE */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18864
|
+
GrievanceDataSection,
|
|
18865
|
+
{
|
|
18866
|
+
grievanceOptions,
|
|
18867
|
+
selectedGrievances,
|
|
18868
|
+
setSelectedGrievances,
|
|
18869
|
+
isTranslating
|
|
18870
|
+
}
|
|
18871
|
+
) : requestType === "nomination" /* NOMINATION */ ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18872
|
+
NominationDataSection,
|
|
18873
|
+
{
|
|
18874
|
+
nominationData,
|
|
18875
|
+
setNominationData,
|
|
18876
|
+
isTranslating
|
|
18877
|
+
}
|
|
18878
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18879
|
+
"div",
|
|
18880
|
+
{
|
|
18881
|
+
style: {
|
|
18882
|
+
color: getVar20("--pc-text-secondary"),
|
|
18883
|
+
...isPopup ? {
|
|
18884
|
+
padding: getVar20("--pc-spacing-md")
|
|
18885
|
+
} : {
|
|
18921
18886
|
...pcStyles.flex,
|
|
18922
|
-
|
|
18923
|
-
...pcStyles.
|
|
18924
|
-
|
|
18925
|
-
|
|
18926
|
-
backgroundColor: `var(--pc-bg-secondary)`,
|
|
18927
|
-
padding: getVar20("--pc-spacing-md"),
|
|
18928
|
-
minHeight: "100px",
|
|
18929
|
-
...isPopup ? {
|
|
18930
|
-
gap: "0.5rem",
|
|
18931
|
-
...pcStyles.overflowYAuto
|
|
18932
|
-
} : {
|
|
18933
|
-
gap: getVar20("--pc-spacing-sm")
|
|
18934
|
-
}
|
|
18887
|
+
height: "8rem",
|
|
18888
|
+
...pcStyles.itemsCenter,
|
|
18889
|
+
...pcStyles.justifyCenter,
|
|
18890
|
+
padding: getVar20("--pc-spacing-lg")
|
|
18935
18891
|
},
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
|
|
18954
|
-
|
|
18955
|
-
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18962
|
-
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18970
|
-
|
|
18971
|
-
|
|
18972
|
-
|
|
18973
|
-
|
|
18974
|
-
|
|
18975
|
-
|
|
18976
|
-
|
|
18977
|
-
|
|
18978
|
-
|
|
18979
|
-
|
|
18980
|
-
|
|
18981
|
-
|
|
18982
|
-
|
|
18983
|
-
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19009
|
-
|
|
18892
|
+
textAlign: "center"
|
|
18893
|
+
},
|
|
18894
|
+
children: t("selectRequestType")
|
|
18895
|
+
}
|
|
18896
|
+
) })
|
|
18897
|
+
]
|
|
18898
|
+
}
|
|
18899
|
+
),
|
|
18900
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
18901
|
+
"div",
|
|
18902
|
+
{
|
|
18903
|
+
style: {
|
|
18904
|
+
...pcStyles.flex,
|
|
18905
|
+
...pcStyles.flexCol,
|
|
18906
|
+
gap: getVar20("--pc-spacing-sm"),
|
|
18907
|
+
...isPopup && !isPopupFormEnabled ? {
|
|
18908
|
+
pointerEvents: "none",
|
|
18909
|
+
opacity: 0.6
|
|
18910
|
+
} : {}
|
|
18911
|
+
},
|
|
18912
|
+
children: [
|
|
18913
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { style: {
|
|
18914
|
+
fontWeight: pcStyles.fontWeightSemibold.fontWeight,
|
|
18915
|
+
color: `var(--pc-text-primary)`,
|
|
18916
|
+
fontSize: pcStyles.textSm.fontSize,
|
|
18917
|
+
margin: 0
|
|
18918
|
+
}, children: t("supportingDocumentation") }),
|
|
18919
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18920
|
+
"input",
|
|
18921
|
+
{
|
|
18922
|
+
ref: fileInputRef,
|
|
18923
|
+
id: "privacy-file-upload",
|
|
18924
|
+
type: "file",
|
|
18925
|
+
onChange: (e) => handleFileChange(e),
|
|
18926
|
+
style: { display: "none" }
|
|
18927
|
+
}
|
|
18928
|
+
),
|
|
18929
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
18930
|
+
"div",
|
|
18931
|
+
{
|
|
18932
|
+
style: {
|
|
18933
|
+
...pcStyles.flex,
|
|
18934
|
+
flexWrap: "wrap",
|
|
18935
|
+
...pcStyles.itemsStart,
|
|
18936
|
+
borderRadius: pcStyles.borderRadiusMd,
|
|
18937
|
+
border: `1px solid var(--pc-border-color)`,
|
|
18938
|
+
backgroundColor: `var(--pc-bg-secondary)`,
|
|
18939
|
+
padding: getVar20("--pc-spacing-md"),
|
|
18940
|
+
minHeight: "100px",
|
|
18941
|
+
...isPopup ? {
|
|
18942
|
+
gap: "0.5rem",
|
|
18943
|
+
...pcStyles.overflowYAuto
|
|
18944
|
+
} : {
|
|
18945
|
+
gap: getVar20("--pc-spacing-sm")
|
|
18946
|
+
}
|
|
18947
|
+
},
|
|
18948
|
+
children: [
|
|
18949
|
+
isDocument && uploadedDocuments.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18950
|
+
"div",
|
|
18951
|
+
{
|
|
18952
|
+
style: {
|
|
18953
|
+
...pcStyles.flex,
|
|
18954
|
+
...pcStyles.gapSm,
|
|
18955
|
+
...isPopup ? { flexWrap: "wrap" } : {},
|
|
18956
|
+
width: "100%"
|
|
18957
|
+
},
|
|
18958
|
+
children: uploadedDocuments.map((doc) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
18959
|
+
"div",
|
|
18960
|
+
{
|
|
18961
|
+
style: {
|
|
18962
|
+
position: "relative",
|
|
18963
|
+
...pcStyles.flex,
|
|
18964
|
+
...pcStyles.itemsCenter,
|
|
18965
|
+
...pcStyles.gapXs,
|
|
18966
|
+
borderRadius: pcStyles.borderRadiusMd,
|
|
18967
|
+
border: `1px solid var(--pc-border-color)`,
|
|
18968
|
+
backgroundColor: `var(--pc-bg-primary)`,
|
|
18969
|
+
padding: getVar20("--pc-spacing-sm")
|
|
19010
18970
|
},
|
|
19011
|
-
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
18971
|
+
children: [
|
|
18972
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18973
|
+
"img",
|
|
18974
|
+
{
|
|
18975
|
+
src: fileAttach_default,
|
|
18976
|
+
alt: "fileAttach",
|
|
18977
|
+
width: 24,
|
|
18978
|
+
height: 24
|
|
18979
|
+
}
|
|
18980
|
+
),
|
|
18981
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
18982
|
+
"p",
|
|
18983
|
+
{
|
|
18984
|
+
style: {
|
|
18985
|
+
fontWeight: pcStyles.fontWeightMedium.fontWeight,
|
|
18986
|
+
color: `var(--pc-text-primary)`,
|
|
18987
|
+
...isPopup ? {
|
|
18988
|
+
maxWidth: "100px",
|
|
18989
|
+
overflow: "hidden",
|
|
18990
|
+
textOverflow: "ellipsis",
|
|
18991
|
+
whiteSpace: "nowrap",
|
|
18992
|
+
fontSize: pcStyles.textXs.fontSize
|
|
18993
|
+
} : {
|
|
18994
|
+
fontSize: pcStyles.textSm.fontSize
|
|
18995
|
+
}
|
|
18996
|
+
},
|
|
18997
|
+
children: doc.name
|
|
18998
|
+
}
|
|
18999
|
+
),
|
|
19000
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19001
|
+
"div",
|
|
19002
|
+
{
|
|
19003
|
+
style: {
|
|
19004
|
+
position: "absolute",
|
|
19005
|
+
right: "-0.25rem",
|
|
19006
|
+
top: "-0.5rem",
|
|
19007
|
+
cursor: "pointer"
|
|
19008
|
+
},
|
|
19009
|
+
onClick: (e) => {
|
|
19010
|
+
e.stopPropagation();
|
|
19011
|
+
handleRemoveDocument(doc.uuid);
|
|
19012
|
+
},
|
|
19013
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: {
|
|
19014
|
+
borderRadius: "50%",
|
|
19015
|
+
border: `1px solid var(--pc-border-color)`,
|
|
19016
|
+
backgroundColor: `var(--pc-bg-secondary)`,
|
|
19017
|
+
padding: "0.125rem"
|
|
19018
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_ai.AiOutlineClose, { size: 12, style: { color: "var(--pc-error)" } }) })
|
|
19019
|
+
}
|
|
19020
|
+
)
|
|
19021
|
+
]
|
|
19057
19022
|
},
|
|
19058
|
-
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
|
|
19023
|
+
doc.uuid
|
|
19024
|
+
))
|
|
19025
|
+
}
|
|
19026
|
+
),
|
|
19027
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { style: {
|
|
19028
|
+
width: uploadedDocuments.length > 0 ? "auto" : "100%",
|
|
19029
|
+
...pcStyles.flex,
|
|
19030
|
+
...pcStyles.itemsCenter,
|
|
19031
|
+
...pcStyles.justifyCenter,
|
|
19032
|
+
minHeight: uploadedDocuments.length > 0 ? "auto" : "100px"
|
|
19033
|
+
}, children: isDocumentUploading ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { style: {
|
|
19034
|
+
padding: uploadedDocuments.length > 0 ? getVar20("--pc-spacing-sm") : getVar20("--pc-spacing-lg"),
|
|
19035
|
+
borderRadius: pcStyles.borderRadiusMd,
|
|
19036
|
+
border: uploadedDocuments.length > 0 ? `1px solid var(--pc-border-color)` : "none",
|
|
19037
|
+
backgroundColor: `var(--pc-bg-primary)`,
|
|
19038
|
+
fontWeight: pcStyles.fontWeightSemibold.fontWeight,
|
|
19039
|
+
color: `var(--pc-text-primary)`,
|
|
19040
|
+
...pcStyles.flex,
|
|
19041
|
+
...pcStyles.itemsCenter,
|
|
19042
|
+
...pcStyles.justifyCenter,
|
|
19043
|
+
gap: uploadedDocuments.length > 0 ? getVar20("--pc-spacing-sm") : getVar20("--pc-spacing-md"),
|
|
19044
|
+
width: "auto"
|
|
19045
|
+
}, children: [
|
|
19046
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PCLoader, { variant: "spinner", size: "sm" }),
|
|
19047
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: t("uploading") })
|
|
19048
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19049
|
+
"div",
|
|
19050
|
+
{
|
|
19051
|
+
style: {
|
|
19052
|
+
...pcStyles.flex,
|
|
19053
|
+
width: uploadedDocuments.length > 0 ? "auto" : "100%",
|
|
19054
|
+
cursor: "pointer",
|
|
19055
|
+
...pcStyles.itemsCenter,
|
|
19056
|
+
...pcStyles.justifyCenter,
|
|
19057
|
+
gap: uploadedDocuments.length > 0 ? getVar20("--pc-spacing-sm") : getVar20("--pc-spacing-md"),
|
|
19058
|
+
borderRadius: pcStyles.borderRadiusMd,
|
|
19059
|
+
padding: uploadedDocuments.length > 0 ? getVar20("--pc-spacing-sm") : getVar20("--pc-spacing-lg"),
|
|
19060
|
+
border: uploadedDocuments.length > 0 ? `1px solid var(--pc-border-color)` : "none",
|
|
19061
|
+
backgroundColor: uploadedDocuments.length > 0 ? `var(--pc-bg-primary)` : "transparent",
|
|
19062
|
+
transition: "all 0.2s ease"
|
|
19063
|
+
},
|
|
19064
|
+
onMouseEnter: (e) => {
|
|
19065
|
+
e.currentTarget.style.backgroundColor = uploadedDocuments.length > 0 ? `var(--pc-bg-hover)` : `var(--pc-bg-hover)`;
|
|
19066
|
+
if (uploadedDocuments.length > 0) {
|
|
19067
|
+
e.currentTarget.style.borderColor = `var(--pc-primary)`;
|
|
19068
|
+
}
|
|
19069
|
+
},
|
|
19070
|
+
onMouseLeave: (e) => {
|
|
19071
|
+
e.currentTarget.style.backgroundColor = uploadedDocuments.length > 0 ? `var(--pc-bg-primary)` : "transparent";
|
|
19072
|
+
if (uploadedDocuments.length > 0) {
|
|
19073
|
+
e.currentTarget.style.borderColor = `var(--pc-border-color)`;
|
|
19074
|
+
}
|
|
19075
|
+
},
|
|
19076
|
+
role: "button",
|
|
19077
|
+
tabIndex: 0,
|
|
19078
|
+
"aria-label": t("uploadFile"),
|
|
19079
|
+
onClick: () => {
|
|
19080
|
+
var _a2;
|
|
19081
|
+
return (_a2 = document.getElementById("privacy-file-upload")) == null ? void 0 : _a2.click();
|
|
19082
|
+
},
|
|
19083
|
+
onKeyDown: (e) => {
|
|
19084
|
+
var _a2;
|
|
19085
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
19086
|
+
e.preventDefault();
|
|
19087
|
+
(_a2 = document.getElementById("privacy-file-upload")) == null ? void 0 : _a2.click();
|
|
19088
|
+
}
|
|
19089
|
+
},
|
|
19090
|
+
children: uploadedDocuments.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
19091
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19092
|
+
"img",
|
|
19093
|
+
{
|
|
19094
|
+
src: uploadFileIcon_default,
|
|
19095
|
+
width: 44,
|
|
19096
|
+
height: 44,
|
|
19097
|
+
alt: "upload"
|
|
19062
19098
|
}
|
|
19063
|
-
},
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19068
|
-
|
|
19069
|
-
|
|
19070
|
-
|
|
19071
|
-
|
|
19072
|
-
|
|
19073
|
-
|
|
19074
|
-
e.preventDefault();
|
|
19075
|
-
(_a2 = document.getElementById("privacy-file-upload")) == null ? void 0 : _a2.click();
|
|
19099
|
+
) }),
|
|
19100
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: {
|
|
19101
|
+
color: "var(--pc-text-secondary)",
|
|
19102
|
+
fontSize: pcStyles.textSm.fontSize
|
|
19103
|
+
}, children: t("uploadFile") })
|
|
19104
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { style: { ...pcStyles.flex, ...pcStyles.itemsCenter, ...pcStyles.justifyCenter, ...pcStyles.gapSm }, children: [
|
|
19105
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19106
|
+
import_pi4.PiUploadBold,
|
|
19107
|
+
{
|
|
19108
|
+
size: isPopup ? 20 : 16,
|
|
19109
|
+
style: { color: "var(--pc-text-secondary)" }
|
|
19076
19110
|
}
|
|
19077
|
-
|
|
19078
|
-
|
|
19079
|
-
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
}
|
|
19087
|
-
) }),
|
|
19088
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: {
|
|
19089
|
-
color: "var(--pc-text-secondary)",
|
|
19090
|
-
fontSize: pcStyles.textSm.fontSize
|
|
19091
|
-
}, children: t("uploadFile") })
|
|
19092
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { style: { ...pcStyles.flex, ...pcStyles.itemsCenter, ...pcStyles.justifyCenter, ...pcStyles.gapSm }, children: [
|
|
19093
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19094
|
-
import_pi4.PiUploadBold,
|
|
19095
|
-
{
|
|
19096
|
-
size: isPopup ? 20 : 16,
|
|
19097
|
-
style: { color: "var(--pc-text-secondary)" }
|
|
19098
|
-
}
|
|
19099
|
-
),
|
|
19100
|
-
!isPopup && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { style: {
|
|
19101
|
-
fontWeight: pcStyles.fontWeightMedium.fontWeight,
|
|
19102
|
-
color: `var(--pc-text-primary)`
|
|
19103
|
-
}, children: t("uploadFileButton") })
|
|
19104
|
-
] })
|
|
19105
|
-
}
|
|
19106
|
-
) })
|
|
19107
|
-
]
|
|
19108
|
-
}
|
|
19109
|
-
)
|
|
19110
|
-
]
|
|
19111
|
-
}
|
|
19112
|
-
),
|
|
19113
|
-
requestType === "ACCESS" /* ACCESS */ && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19114
|
-
PCSelect,
|
|
19115
|
-
{
|
|
19116
|
-
label: t("timePeriod"),
|
|
19117
|
-
options: timePeriodOptions,
|
|
19118
|
-
value: timePeriodOptions.find(
|
|
19119
|
-
(opt) => opt.value === timePeriod
|
|
19120
|
-
) || null,
|
|
19121
|
-
onChange: (value) => {
|
|
19122
|
-
if (value) {
|
|
19123
|
-
setTimePeriod(value.value);
|
|
19111
|
+
),
|
|
19112
|
+
!isPopup && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { style: {
|
|
19113
|
+
fontWeight: pcStyles.fontWeightMedium.fontWeight,
|
|
19114
|
+
color: `var(--pc-text-primary)`
|
|
19115
|
+
}, children: t("uploadFileButton") })
|
|
19116
|
+
] })
|
|
19117
|
+
}
|
|
19118
|
+
) })
|
|
19119
|
+
]
|
|
19124
19120
|
}
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19130
|
-
|
|
19131
|
-
|
|
19132
|
-
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
|
|
19136
|
-
|
|
19137
|
-
|
|
19138
|
-
|
|
19139
|
-
|
|
19140
|
-
|
|
19141
|
-
}
|
|
19142
|
-
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19149
|
-
|
|
19150
|
-
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19157
|
-
|
|
19158
|
-
|
|
19159
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19162
|
-
|
|
19163
|
-
|
|
19164
|
-
|
|
19165
|
-
|
|
19166
|
-
|
|
19167
|
-
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
|
|
19121
|
+
)
|
|
19122
|
+
]
|
|
19123
|
+
}
|
|
19124
|
+
),
|
|
19125
|
+
requestType === "ACCESS" /* ACCESS */ && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19126
|
+
PCSelect,
|
|
19127
|
+
{
|
|
19128
|
+
label: t("timePeriod"),
|
|
19129
|
+
options: timePeriodOptions,
|
|
19130
|
+
value: timePeriodOptions.find(
|
|
19131
|
+
(opt) => opt.value === timePeriod
|
|
19132
|
+
) || null,
|
|
19133
|
+
onChange: (value) => {
|
|
19134
|
+
if (value) {
|
|
19135
|
+
setTimePeriod(value.value);
|
|
19136
|
+
}
|
|
19137
|
+
},
|
|
19138
|
+
disabled: isPopup && !isPopupFormEnabled
|
|
19139
|
+
}
|
|
19140
|
+
),
|
|
19141
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19142
|
+
PCTextarea,
|
|
19143
|
+
{
|
|
19144
|
+
label: t("additionalNote"),
|
|
19145
|
+
placeholder: t("reasonOptional"),
|
|
19146
|
+
value: formData.additionalNote,
|
|
19147
|
+
onChange: (e) => setFormData({
|
|
19148
|
+
...formData,
|
|
19149
|
+
additionalNote: e.target.value
|
|
19150
|
+
}),
|
|
19151
|
+
style: isPopup ? { minHeight: "60px" } : {},
|
|
19152
|
+
disabled: isPopup && !isPopupFormEnabled
|
|
19153
|
+
}
|
|
19154
|
+
),
|
|
19155
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19156
|
+
PCCheckbox,
|
|
19157
|
+
{
|
|
19158
|
+
size: "sm",
|
|
19159
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { children: [
|
|
19160
|
+
t("confirmCheckBox"),
|
|
19161
|
+
" ",
|
|
19162
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { style: { color: getVar20("--pc-error") }, children: "*" })
|
|
19163
|
+
] }),
|
|
19164
|
+
checked: formData.confirmCheckBox,
|
|
19165
|
+
onChange: (e) => setFormData({
|
|
19166
|
+
...formData,
|
|
19167
|
+
confirmCheckBox: e.target.checked
|
|
19168
|
+
}),
|
|
19169
|
+
disabled: isPopup && !isPopupFormEnabled
|
|
19170
|
+
}
|
|
19171
|
+
),
|
|
19172
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
19173
|
+
"div",
|
|
19174
|
+
{
|
|
19175
|
+
style: {
|
|
19176
|
+
...pcStyles.flex,
|
|
19177
|
+
...pcStyles.flexRow,
|
|
19178
|
+
...pcStyles.justifyEnd,
|
|
19179
|
+
gap: getVar20("--pc-spacing-sm"),
|
|
19180
|
+
...isPopup ? {
|
|
19181
|
+
position: "sticky",
|
|
19182
|
+
bottom: 0,
|
|
19183
|
+
left: 0,
|
|
19184
|
+
right: 0,
|
|
19185
|
+
zIndex: 20,
|
|
19186
|
+
borderTop: `1px solid ${getVar20("--pc-border-color")}`,
|
|
19187
|
+
backgroundColor: getVar20("--pc-bg-primary"),
|
|
19188
|
+
padding: "0.75rem",
|
|
19189
|
+
marginLeft: "-0.75rem",
|
|
19190
|
+
marginRight: "-0.75rem"
|
|
19191
|
+
} : {
|
|
19192
|
+
marginTop: pcStyles.mtMd.marginTop
|
|
19193
|
+
}
|
|
19194
|
+
},
|
|
19195
|
+
className: "pc-flex-responsive pc-spacing-responsive",
|
|
19196
|
+
children: [
|
|
19197
|
+
isPopup && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(PCButton, { variant: "secondary", onClick: onClose, style: { flexShrink: 0 }, children: (_b = t("cancel")) != null ? _b : "Cancel" }),
|
|
19198
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19199
|
+
PCButton,
|
|
19200
|
+
{
|
|
19201
|
+
variant: "primary",
|
|
19202
|
+
onClick: handleSubmitClick,
|
|
19203
|
+
disabled: !isFormValid || isLoading,
|
|
19204
|
+
isLoading,
|
|
19205
|
+
style: {
|
|
19206
|
+
...pcStyles.flex,
|
|
19207
|
+
...pcStyles.itemsCenter,
|
|
19208
|
+
...pcStyles.justifyCenter,
|
|
19209
|
+
minWidth: "120px",
|
|
19210
|
+
flexShrink: 0,
|
|
19211
|
+
opacity: !isFormValid || isLoading ? 0.5 : 1,
|
|
19212
|
+
cursor: !isFormValid || isLoading ? "not-allowed" : isLoading ? "wait" : "pointer"
|
|
19213
|
+
},
|
|
19214
|
+
children: t("submit")
|
|
19181
19215
|
}
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
PCButton,
|
|
19188
|
-
{
|
|
19189
|
-
variant: "primary",
|
|
19190
|
-
onClick: handleSubmitClick,
|
|
19191
|
-
disabled: !isFormValid || isLoading,
|
|
19192
|
-
isLoading,
|
|
19193
|
-
style: {
|
|
19194
|
-
...pcStyles.flex,
|
|
19195
|
-
...pcStyles.itemsCenter,
|
|
19196
|
-
...pcStyles.justifyCenter,
|
|
19197
|
-
minWidth: "120px",
|
|
19198
|
-
flexShrink: 0,
|
|
19199
|
-
opacity: !isFormValid || isLoading ? 0.5 : 1,
|
|
19200
|
-
cursor: !isFormValid || isLoading ? "not-allowed" : isLoading ? "wait" : "pointer"
|
|
19201
|
-
},
|
|
19202
|
-
children: t("submit")
|
|
19203
|
-
}
|
|
19204
|
-
)
|
|
19205
|
-
]
|
|
19206
|
-
}
|
|
19207
|
-
)
|
|
19208
|
-
]
|
|
19209
|
-
}
|
|
19210
|
-
)
|
|
19211
|
-
] })
|
|
19212
|
-
}
|
|
19213
|
-
)
|
|
19214
|
-
] }) }),
|
|
19215
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19216
|
-
PCModal,
|
|
19217
|
-
{
|
|
19218
|
-
isOpen: isErasureConsentModalOpen,
|
|
19219
|
-
onClose: handleErasureModalClose,
|
|
19220
|
-
size: "md",
|
|
19221
|
-
showCloseButton: false,
|
|
19222
|
-
footer: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "pc-erasure-modal-footer", children: [
|
|
19223
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19224
|
-
PCButton,
|
|
19225
|
-
{
|
|
19226
|
-
variant: "secondary",
|
|
19227
|
-
onClick: () => handleErasureModalChoice(false),
|
|
19228
|
-
disabled: isLoading,
|
|
19229
|
-
children: t("revokeConsentNo")
|
|
19230
|
-
}
|
|
19231
|
-
),
|
|
19232
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
19233
|
-
PCButton,
|
|
19234
|
-
{
|
|
19235
|
-
variant: "primary",
|
|
19236
|
-
onClick: () => handleErasureModalChoice(true),
|
|
19237
|
-
disabled: isLoading,
|
|
19238
|
-
isLoading,
|
|
19239
|
-
children: t("revokeConsentYes")
|
|
19216
|
+
)
|
|
19217
|
+
]
|
|
19218
|
+
}
|
|
19219
|
+
)
|
|
19220
|
+
]
|
|
19240
19221
|
}
|
|
19241
19222
|
)
|
|
19242
|
-
] }),
|
|
19243
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "pc-erasure-modal-content", children: [
|
|
19244
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "pc-erasure-modal-header", children: [
|
|
19245
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "pc-erasure-modal-icon", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_fi.FiAlertCircle, { size: 24 }) }),
|
|
19246
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "pc-erasure-modal-title", children: t("revokeConsentModalTitle") }),
|
|
19247
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "pc-erasure-modal-question", children: t("revokeConsentModalQuestion") })
|
|
19248
|
-
] }),
|
|
19249
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "pc-erasure-modal-purposes", children: [
|
|
19250
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "pc-erasure-modal-purposes-label", children: t("revokeConsentModalPurposesLabel") }),
|
|
19251
|
-
selectedErasurePurposeList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
19252
|
-
selectedErasurePurposeList.slice(0, MAX_DISPLAYED_PURPOSE_NAMES_IN_ERASURE_MODAL).map((name) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "pc-erasure-modal-purpose-item", children: name }, name)),
|
|
19253
|
-
selectedErasurePurposeList.length > MAX_DISPLAYED_PURPOSE_NAMES_IN_ERASURE_MODAL && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "pc-erasure-modal-purposes-placeholder", children: t("revokeConsentModalAndMore", {
|
|
19254
|
-
count: selectedErasurePurposeList.length - MAX_DISPLAYED_PURPOSE_NAMES_IN_ERASURE_MODAL
|
|
19255
|
-
}) })
|
|
19256
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "pc-erasure-modal-purposes-placeholder", children: t("revokeConsentModalYourPurposes") })
|
|
19257
|
-
] }),
|
|
19258
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "pc-erasure-modal-warning", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("p", { className: "pc-erasure-modal-warning-text", children: [
|
|
19259
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "pc-erasure-modal-warning-label", children: t("revokeConsentModalIfYesLabel") }),
|
|
19260
|
-
" ",
|
|
19261
|
-
t("revokeConsentModalIfYesBody")
|
|
19262
|
-
] }) })
|
|
19263
19223
|
] })
|
|
19264
19224
|
}
|
|
19265
19225
|
)
|
|
19266
|
-
] });
|
|
19226
|
+
] }) }) });
|
|
19267
19227
|
}
|
|
19268
19228
|
|
|
19269
19229
|
// src/RedactoPrivacyCenter/components/CaseHistory.tsx
|
|
@@ -20739,12 +20699,26 @@ var import_react_i18next43 = require("react-i18next");
|
|
|
20739
20699
|
var import_io511 = require("react-icons/io5");
|
|
20740
20700
|
|
|
20741
20701
|
// src/RedactoPrivacyCenter/components/CaseDetails/utils.ts
|
|
20702
|
+
var isTerminalCaseStatus = (status) => {
|
|
20703
|
+
if (!status) {
|
|
20704
|
+
return false;
|
|
20705
|
+
}
|
|
20706
|
+
return TERMINAL_CASE_STATUSES.includes(status.toLowerCase());
|
|
20707
|
+
};
|
|
20742
20708
|
var getCaseStatusVariant2 = (status) => {
|
|
20743
|
-
const
|
|
20744
|
-
if (
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
if (
|
|
20709
|
+
const normalized = status.toLowerCase().replace(/_/g, "");
|
|
20710
|
+
if (normalized === "completed") {
|
|
20711
|
+
return "success";
|
|
20712
|
+
}
|
|
20713
|
+
if (normalized === "rejected" || normalized === "declined") {
|
|
20714
|
+
return "error";
|
|
20715
|
+
}
|
|
20716
|
+
if (normalized === "processing" || normalized === "inprogress" || normalized === "expired") {
|
|
20717
|
+
return "warning";
|
|
20718
|
+
}
|
|
20719
|
+
if (normalized === "initiated") {
|
|
20720
|
+
return "info";
|
|
20721
|
+
}
|
|
20748
20722
|
return "secondary";
|
|
20749
20723
|
};
|
|
20750
20724
|
var formatCaseStatus2 = (s) => s.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
@@ -20792,18 +20766,45 @@ var import_io58 = require("react-icons/io5");
|
|
|
20792
20766
|
// src/RedactoPrivacyCenter/components/CaseDetails/DocumentRequestCard.tsx
|
|
20793
20767
|
var import_react_i18next37 = require("react-i18next");
|
|
20794
20768
|
var import_io56 = require("react-icons/io5");
|
|
20769
|
+
|
|
20770
|
+
// src/RedactoPrivacyCenter/components/CaseDetails/FinalizedTooltipWrapper.tsx
|
|
20795
20771
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
20772
|
+
var AUTO_WIDTH_TRIGGER_STYLE = { width: "auto" };
|
|
20773
|
+
var FinalizedTooltipWrapper = ({
|
|
20774
|
+
enabled,
|
|
20775
|
+
autoWidth = false,
|
|
20776
|
+
children
|
|
20777
|
+
}) => {
|
|
20778
|
+
const tooltip = useCaseFinalizedTooltip();
|
|
20779
|
+
if (!enabled) {
|
|
20780
|
+
return children;
|
|
20781
|
+
}
|
|
20782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
20783
|
+
PCTooltip,
|
|
20784
|
+
{
|
|
20785
|
+
content: tooltip,
|
|
20786
|
+
triggerStyle: autoWidth ? AUTO_WIDTH_TRIGGER_STYLE : void 0,
|
|
20787
|
+
children
|
|
20788
|
+
}
|
|
20789
|
+
);
|
|
20790
|
+
};
|
|
20791
|
+
|
|
20792
|
+
// src/RedactoPrivacyCenter/components/CaseDetails/DocumentRequestCard.tsx
|
|
20793
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
20796
20794
|
var DocumentRequestCard = ({
|
|
20797
20795
|
message,
|
|
20798
20796
|
onUpload,
|
|
20799
|
-
isSubmitting
|
|
20797
|
+
isSubmitting,
|
|
20798
|
+
isCaseFinalized
|
|
20800
20799
|
}) => {
|
|
20801
20800
|
const { t } = (0, import_react_i18next37.useTranslation)();
|
|
20802
20801
|
const meta = message.document_request_metadata;
|
|
20803
|
-
if (!meta)
|
|
20802
|
+
if (!meta) {
|
|
20803
|
+
return null;
|
|
20804
|
+
}
|
|
20804
20805
|
const canUpload = UPLOAD_ACTIVE_STATUSES.includes(meta.document_request_status);
|
|
20805
20806
|
const statusInfo = DOCUMENT_REQUEST_STATUS_LABEL[meta.document_request_status];
|
|
20806
|
-
return /* @__PURE__ */ (0,
|
|
20807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
20807
20808
|
"div",
|
|
20808
20809
|
{
|
|
20809
20810
|
className: "pc-doc-request-card",
|
|
@@ -20812,13 +20813,13 @@ var DocumentRequestCard = ({
|
|
|
20812
20813
|
backgroundColor: STATUS_COLORS.info.bg
|
|
20813
20814
|
},
|
|
20814
20815
|
children: [
|
|
20815
|
-
/* @__PURE__ */ (0,
|
|
20816
|
-
/* @__PURE__ */ (0,
|
|
20817
|
-
/* @__PURE__ */ (0,
|
|
20818
|
-
/* @__PURE__ */ (0,
|
|
20819
|
-
meta.accepted_document && /* @__PURE__ */ (0,
|
|
20816
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "pc-doc-request-header", children: [
|
|
20817
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_io56.IoAttach, { size: 16, className: "pc-doc-request-icon", style: { color: STATUS_COLORS.info.color } }),
|
|
20818
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
|
|
20819
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "pc-doc-request-title", style: { color: STATUS_COLORS.infoDark }, children: t("documentRequestedLabel", { title: meta.title }) }),
|
|
20820
|
+
meta.accepted_document && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "pc-doc-request-accepted", style: { color: STATUS_COLORS.info.color }, children: t("acceptedLabel", { accepted: meta.accepted_document }) })
|
|
20820
20821
|
] }),
|
|
20821
|
-
/* @__PURE__ */ (0,
|
|
20822
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
20822
20823
|
"span",
|
|
20823
20824
|
{
|
|
20824
20825
|
className: "pc-doc-request-status",
|
|
@@ -20827,21 +20828,21 @@ var DocumentRequestCard = ({
|
|
|
20827
20828
|
}
|
|
20828
20829
|
)
|
|
20829
20830
|
] }),
|
|
20830
|
-
canUpload && /* @__PURE__ */ (0,
|
|
20831
|
+
canUpload && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(FinalizedTooltipWrapper, { enabled: isCaseFinalized, autoWidth: true, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
20831
20832
|
PCButton,
|
|
20832
20833
|
{
|
|
20833
20834
|
variant: "outline",
|
|
20834
20835
|
size: "sm",
|
|
20835
|
-
disabled: isSubmitting,
|
|
20836
|
-
onClick: () => onUpload(message.uuid),
|
|
20836
|
+
disabled: isSubmitting || isCaseFinalized,
|
|
20837
|
+
onClick: isCaseFinalized ? void 0 : () => onUpload(message.uuid),
|
|
20837
20838
|
className: "pc-doc-request-upload-btn",
|
|
20838
20839
|
children: [
|
|
20839
|
-
isSubmitting ? /* @__PURE__ */ (0,
|
|
20840
|
+
isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(PCLoader, { variant: "spinner", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_io56.IoAttach, { size: 14 }),
|
|
20840
20841
|
t("uploadAndSubmit")
|
|
20841
20842
|
]
|
|
20842
20843
|
}
|
|
20843
|
-
),
|
|
20844
|
-
meta.document_request_status === "rejected" && meta.rejection_reason && /* @__PURE__ */ (0,
|
|
20844
|
+
) }),
|
|
20845
|
+
meta.document_request_status === "rejected" && meta.rejection_reason && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
20845
20846
|
"div",
|
|
20846
20847
|
{
|
|
20847
20848
|
className: "pc-doc-request-rejection",
|
|
@@ -20855,7 +20856,7 @@ var DocumentRequestCard = ({
|
|
|
20855
20856
|
};
|
|
20856
20857
|
|
|
20857
20858
|
// src/RedactoPrivacyCenter/components/CaseDetails/StatusEvent.tsx
|
|
20858
|
-
var
|
|
20859
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
20859
20860
|
var StatusEvent = ({
|
|
20860
20861
|
icon,
|
|
20861
20862
|
color,
|
|
@@ -20865,40 +20866,40 @@ var StatusEvent = ({
|
|
|
20865
20866
|
subText,
|
|
20866
20867
|
timestamp
|
|
20867
20868
|
}) => {
|
|
20868
|
-
return /* @__PURE__ */ (0,
|
|
20869
|
-
/* @__PURE__ */ (0,
|
|
20869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "pc-status-event", children: [
|
|
20870
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
20870
20871
|
"div",
|
|
20871
20872
|
{
|
|
20872
20873
|
className: "pc-status-event-pill",
|
|
20873
20874
|
style: { backgroundColor: bgColor, border: `1px solid ${borderColor}`, color },
|
|
20874
20875
|
children: [
|
|
20875
20876
|
icon,
|
|
20876
|
-
/* @__PURE__ */ (0,
|
|
20877
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: text })
|
|
20877
20878
|
]
|
|
20878
20879
|
}
|
|
20879
20880
|
),
|
|
20880
|
-
subText && /* @__PURE__ */ (0,
|
|
20881
|
-
/* @__PURE__ */ (0,
|
|
20881
|
+
subText && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "pc-status-event-sub", style: { color }, children: subText }),
|
|
20882
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "pc-status-event-time", children: timestamp })
|
|
20882
20883
|
] });
|
|
20883
20884
|
};
|
|
20884
20885
|
|
|
20885
20886
|
// src/RedactoPrivacyCenter/components/CaseDetails/AttachmentCard.tsx
|
|
20886
20887
|
var import_react_i18next38 = require("react-i18next");
|
|
20887
20888
|
var import_io57 = require("react-icons/io5");
|
|
20888
|
-
var
|
|
20889
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
20889
20890
|
var AttachmentCard = ({ doc }) => {
|
|
20890
20891
|
const { t } = (0, import_react_i18next38.useTranslation)();
|
|
20891
20892
|
const downloadUrl = getDownloadUrl(doc.file_url);
|
|
20892
20893
|
const fileName = doc.file_name || t("document");
|
|
20893
|
-
const content = /* @__PURE__ */ (0,
|
|
20894
|
-
/* @__PURE__ */ (0,
|
|
20895
|
-
/* @__PURE__ */ (0,
|
|
20896
|
-
/* @__PURE__ */ (0,
|
|
20897
|
-
/* @__PURE__ */ (0,
|
|
20894
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
|
|
20895
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_io57.IoDocumentText, { size: 20, className: "pc-attachment-icon" }),
|
|
20896
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "pc-attachment-info", children: [
|
|
20897
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "pc-attachment-name", children: fileName }),
|
|
20898
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "pc-attachment-size", children: doc.file_size ? formatFileSize(doc.file_size) : "" })
|
|
20898
20899
|
] })
|
|
20899
20900
|
] });
|
|
20900
20901
|
if (downloadUrl) {
|
|
20901
|
-
return /* @__PURE__ */ (0,
|
|
20902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
20902
20903
|
"a",
|
|
20903
20904
|
{
|
|
20904
20905
|
href: downloadUrl,
|
|
@@ -20910,11 +20911,11 @@ var AttachmentCard = ({ doc }) => {
|
|
|
20910
20911
|
}
|
|
20911
20912
|
);
|
|
20912
20913
|
}
|
|
20913
|
-
return /* @__PURE__ */ (0,
|
|
20914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "pc-attachment-card", children: content });
|
|
20914
20915
|
};
|
|
20915
20916
|
|
|
20916
20917
|
// src/RedactoPrivacyCenter/components/CaseDetails/ChatBubble.tsx
|
|
20917
|
-
var
|
|
20918
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
20918
20919
|
var ChatBubble = ({
|
|
20919
20920
|
message,
|
|
20920
20921
|
isPrincipal,
|
|
@@ -20922,23 +20923,24 @@ var ChatBubble = ({
|
|
|
20922
20923
|
timestamp
|
|
20923
20924
|
}) => {
|
|
20924
20925
|
const direction = isPrincipal ? "sent" : "received";
|
|
20925
|
-
return /* @__PURE__ */ (0,
|
|
20926
|
-
/* @__PURE__ */ (0,
|
|
20926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: `pc-chat-bubble-wrap pc-chat-bubble-wrap--${direction}`, children: [
|
|
20927
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "pc-chat-sender", children: [
|
|
20927
20928
|
senderLabel,
|
|
20928
20929
|
" \xB7 ",
|
|
20929
20930
|
timestamp
|
|
20930
20931
|
] }),
|
|
20931
|
-
message.body && /* @__PURE__ */ (0,
|
|
20932
|
-
message.documents.map((doc) => /* @__PURE__ */ (0,
|
|
20932
|
+
message.body && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: `pc-chat-bubble pc-chat-bubble--${direction}`, children: message.body }),
|
|
20933
|
+
message.documents.map((doc) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(AttachmentCard, { doc }, doc.uuid))
|
|
20933
20934
|
] });
|
|
20934
20935
|
};
|
|
20935
20936
|
|
|
20936
20937
|
// src/RedactoPrivacyCenter/components/CaseDetails/MessageItem.tsx
|
|
20937
|
-
var
|
|
20938
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
20938
20939
|
var MessageItem = ({
|
|
20939
20940
|
message,
|
|
20940
20941
|
onUploadForRequest,
|
|
20941
|
-
isSubmittingForRequest
|
|
20942
|
+
isSubmittingForRequest,
|
|
20943
|
+
isCaseFinalized
|
|
20942
20944
|
}) => {
|
|
20943
20945
|
var _a;
|
|
20944
20946
|
const { t } = (0, import_react_i18next39.useTranslation)();
|
|
@@ -20947,29 +20949,30 @@ var MessageItem = ({
|
|
|
20947
20949
|
const senderLabel = isPrincipal ? t("senderYou") : message.triggered_by_email || t("senderPrivacyTeam");
|
|
20948
20950
|
switch (message.message_type) {
|
|
20949
20951
|
case "document_requested":
|
|
20950
|
-
return /* @__PURE__ */ (0,
|
|
20951
|
-
message.body && /* @__PURE__ */ (0,
|
|
20952
|
-
/* @__PURE__ */ (0,
|
|
20952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
|
|
20953
|
+
message.body && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "pc-chat-bubble-wrap pc-chat-bubble-wrap--received", children: [
|
|
20954
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "pc-chat-sender", children: [
|
|
20953
20955
|
senderLabel,
|
|
20954
20956
|
" \xB7 ",
|
|
20955
20957
|
timestamp
|
|
20956
20958
|
] }),
|
|
20957
|
-
/* @__PURE__ */ (0,
|
|
20959
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "pc-chat-bubble pc-chat-bubble--received", children: message.body })
|
|
20958
20960
|
] }),
|
|
20959
|
-
/* @__PURE__ */ (0,
|
|
20961
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
20960
20962
|
DocumentRequestCard,
|
|
20961
20963
|
{
|
|
20962
20964
|
message,
|
|
20963
20965
|
onUpload: onUploadForRequest,
|
|
20964
|
-
isSubmitting: isSubmittingForRequest
|
|
20966
|
+
isSubmitting: isSubmittingForRequest,
|
|
20967
|
+
isCaseFinalized
|
|
20965
20968
|
}
|
|
20966
20969
|
)
|
|
20967
20970
|
] });
|
|
20968
20971
|
case "document_approved":
|
|
20969
|
-
return /* @__PURE__ */ (0,
|
|
20972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
20970
20973
|
StatusEvent,
|
|
20971
20974
|
{
|
|
20972
|
-
icon: /* @__PURE__ */ (0,
|
|
20975
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_io58.IoCheckmarkCircle, { size: 18 }),
|
|
20973
20976
|
color: STATUS_COLORS.success.color,
|
|
20974
20977
|
bgColor: STATUS_COLORS.success.bg,
|
|
20975
20978
|
borderColor: STATUS_COLORS.success.border,
|
|
@@ -20978,10 +20981,10 @@ var MessageItem = ({
|
|
|
20978
20981
|
}
|
|
20979
20982
|
);
|
|
20980
20983
|
case "document_rejected":
|
|
20981
|
-
return /* @__PURE__ */ (0,
|
|
20984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
20982
20985
|
StatusEvent,
|
|
20983
20986
|
{
|
|
20984
|
-
icon: /* @__PURE__ */ (0,
|
|
20987
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_io58.IoCloseCircle, { size: 18 }),
|
|
20985
20988
|
color: STATUS_COLORS.error.color,
|
|
20986
20989
|
bgColor: STATUS_COLORS.error.bg,
|
|
20987
20990
|
borderColor: STATUS_COLORS.error.border,
|
|
@@ -20991,10 +20994,10 @@ var MessageItem = ({
|
|
|
20991
20994
|
}
|
|
20992
20995
|
);
|
|
20993
20996
|
case "document_replacement_requested":
|
|
20994
|
-
return /* @__PURE__ */ (0,
|
|
20997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
20995
20998
|
StatusEvent,
|
|
20996
20999
|
{
|
|
20997
|
-
icon: /* @__PURE__ */ (0,
|
|
21000
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_io58.IoAlertCircle, { size: 18 }),
|
|
20998
21001
|
color: STATUS_COLORS.warning.color,
|
|
20999
21002
|
bgColor: STATUS_COLORS.warning.bg,
|
|
21000
21003
|
borderColor: STATUS_COLORS.warning.border,
|
|
@@ -21007,7 +21010,7 @@ var MessageItem = ({
|
|
|
21007
21010
|
case "document_replaced":
|
|
21008
21011
|
case "message_sent":
|
|
21009
21012
|
default:
|
|
21010
|
-
return /* @__PURE__ */ (0,
|
|
21013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
21011
21014
|
ChatBubble,
|
|
21012
21015
|
{
|
|
21013
21016
|
message,
|
|
@@ -21022,7 +21025,7 @@ var MessageItem = ({
|
|
|
21022
21025
|
// src/RedactoPrivacyCenter/components/CaseDetails/MessageComposer.tsx
|
|
21023
21026
|
var import_react_i18next40 = require("react-i18next");
|
|
21024
21027
|
var import_io59 = require("react-icons/io5");
|
|
21025
|
-
var
|
|
21028
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
21026
21029
|
var MessageComposer = ({
|
|
21027
21030
|
messageText,
|
|
21028
21031
|
onMessageTextChange,
|
|
@@ -21031,7 +21034,8 @@ var MessageComposer = ({
|
|
|
21031
21034
|
onAttachClick,
|
|
21032
21035
|
onSend,
|
|
21033
21036
|
isSending,
|
|
21034
|
-
isUploading
|
|
21037
|
+
isUploading,
|
|
21038
|
+
isCaseFinalized
|
|
21035
21039
|
}) => {
|
|
21036
21040
|
const { t } = (0, import_react_i18next40.useTranslation)();
|
|
21037
21041
|
const handleKeyDown = (e) => {
|
|
@@ -21040,12 +21044,12 @@ var MessageComposer = ({
|
|
|
21040
21044
|
onSend();
|
|
21041
21045
|
}
|
|
21042
21046
|
};
|
|
21043
|
-
return /* @__PURE__ */ (0,
|
|
21044
|
-
pendingUpload && /* @__PURE__ */ (0,
|
|
21045
|
-
/* @__PURE__ */ (0,
|
|
21046
|
-
/* @__PURE__ */ (0,
|
|
21047
|
-
/* @__PURE__ */ (0,
|
|
21048
|
-
/* @__PURE__ */ (0,
|
|
21047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "pc-composer", children: [
|
|
21048
|
+
pendingUpload && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "pc-composer-pending-row", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "pc-composer-pending-pill", children: [
|
|
21049
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_io59.IoDocumentText, { size: 14 }),
|
|
21050
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: pendingUpload.file_name }),
|
|
21051
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "pc-composer-pending-size", children: formatFileSize(pendingUpload.file_size) }),
|
|
21052
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
21049
21053
|
"button",
|
|
21050
21054
|
{
|
|
21051
21055
|
type: "button",
|
|
@@ -21056,7 +21060,7 @@ var MessageComposer = ({
|
|
|
21056
21060
|
}
|
|
21057
21061
|
)
|
|
21058
21062
|
] }) }),
|
|
21059
|
-
/* @__PURE__ */ (0,
|
|
21063
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "pc-composer-textarea-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(FinalizedTooltipWrapper, { enabled: isCaseFinalized, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
21060
21064
|
"textarea",
|
|
21061
21065
|
{
|
|
21062
21066
|
value: messageText,
|
|
@@ -21064,40 +21068,41 @@ var MessageComposer = ({
|
|
|
21064
21068
|
onKeyDown: handleKeyDown,
|
|
21065
21069
|
placeholder: t("writeMessagePlaceholder"),
|
|
21066
21070
|
rows: 3,
|
|
21067
|
-
className: "pc-composer-textarea"
|
|
21071
|
+
className: "pc-composer-textarea",
|
|
21072
|
+
disabled: isCaseFinalized
|
|
21068
21073
|
}
|
|
21069
|
-
) }),
|
|
21070
|
-
/* @__PURE__ */ (0,
|
|
21071
|
-
/* @__PURE__ */ (0,
|
|
21074
|
+
) }) }),
|
|
21075
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "pc-composer-actions", children: [
|
|
21076
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(FinalizedTooltipWrapper, { enabled: isCaseFinalized, autoWidth: true, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
21072
21077
|
PCButton,
|
|
21073
21078
|
{
|
|
21074
21079
|
variant: "outline",
|
|
21075
21080
|
size: "sm",
|
|
21076
|
-
disabled: isUploading || isSending,
|
|
21081
|
+
disabled: isUploading || isSending || isCaseFinalized,
|
|
21077
21082
|
onClick: onAttachClick,
|
|
21078
21083
|
className: "pc-composer-btn",
|
|
21079
21084
|
children: [
|
|
21080
|
-
isUploading ? /* @__PURE__ */ (0,
|
|
21085
|
+
isUploading ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PCLoader, { variant: "spinner", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_io59.IoAttach, { size: 16 }),
|
|
21081
21086
|
t("attachFile")
|
|
21082
21087
|
]
|
|
21083
21088
|
}
|
|
21084
|
-
),
|
|
21085
|
-
/* @__PURE__ */ (0,
|
|
21089
|
+
) }),
|
|
21090
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(FinalizedTooltipWrapper, { enabled: isCaseFinalized, autoWidth: true, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
21086
21091
|
PCButton,
|
|
21087
21092
|
{
|
|
21088
21093
|
size: "sm",
|
|
21089
|
-
disabled: !messageText.trim() && !pendingUpload || isSending || isUploading,
|
|
21094
|
+
disabled: !messageText.trim() && !pendingUpload || isSending || isUploading || isCaseFinalized,
|
|
21090
21095
|
onClick: onSend,
|
|
21091
21096
|
className: "pc-composer-btn",
|
|
21092
21097
|
children: [
|
|
21093
|
-
isSending ? /* @__PURE__ */ (0,
|
|
21098
|
+
isSending ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PCLoader, { variant: "spinner", size: "sm" }) : null,
|
|
21094
21099
|
t("send"),
|
|
21095
|
-
/* @__PURE__ */ (0,
|
|
21100
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_io59.IoSend, { size: 14 })
|
|
21096
21101
|
]
|
|
21097
21102
|
}
|
|
21098
|
-
)
|
|
21103
|
+
) })
|
|
21099
21104
|
] }),
|
|
21100
|
-
/* @__PURE__ */ (0,
|
|
21105
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "pc-composer-footer", children: t("messagesSecureFooter") })
|
|
21101
21106
|
] });
|
|
21102
21107
|
};
|
|
21103
21108
|
|
|
@@ -21227,10 +21232,12 @@ function useFileUpload(uploadMutation, submitMutation, refetch, scrollToBottom)
|
|
|
21227
21232
|
}
|
|
21228
21233
|
|
|
21229
21234
|
// src/RedactoPrivacyCenter/components/CaseDetails/MessagesTab.tsx
|
|
21230
|
-
var
|
|
21231
|
-
var MessagesTab = ({ caseUuid }) => {
|
|
21235
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
21236
|
+
var MessagesTab = ({ caseUuid, caseStatus }) => {
|
|
21232
21237
|
var _a;
|
|
21238
|
+
const isCaseFinalized = isTerminalCaseStatus(caseStatus);
|
|
21233
21239
|
const { t } = (0, import_react_i18next41.useTranslation)();
|
|
21240
|
+
const caseFinalizedTooltip = useCaseFinalizedTooltip();
|
|
21234
21241
|
const { organization } = useOrganization();
|
|
21235
21242
|
const { accessToken, refreshToken, onError, updateTokens } = useAuth();
|
|
21236
21243
|
const authContext = (0, import_react48.useMemo)(
|
|
@@ -21278,10 +21285,10 @@ var MessagesTab = ({ caseUuid }) => {
|
|
|
21278
21285
|
}, [messageText, pendingUpload, sendMutation, uploadMutation, refetch, setPendingUpload, scrollToBottom]);
|
|
21279
21286
|
const isSending = sendMutation.isPending;
|
|
21280
21287
|
const isUploading = uploadMutation.isPending;
|
|
21281
|
-
return /* @__PURE__ */ (0,
|
|
21282
|
-
/* @__PURE__ */ (0,
|
|
21283
|
-
/* @__PURE__ */ (0,
|
|
21284
|
-
/* @__PURE__ */ (0,
|
|
21288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "pc-messages-container", children: [
|
|
21289
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("input", { ref: attachInputRef, type: "file", className: "pc-hidden", onChange: handleAttachFile }),
|
|
21290
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("input", { ref: submitInputRef, type: "file", className: "pc-hidden", onChange: handleSubmitInputChange }),
|
|
21291
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
21285
21292
|
"div",
|
|
21286
21293
|
{
|
|
21287
21294
|
className: "pc-messages-notice",
|
|
@@ -21291,9 +21298,9 @@ var MessagesTab = ({ caseUuid }) => {
|
|
|
21291
21298
|
color: STATUS_COLORS.infoBanner.color
|
|
21292
21299
|
},
|
|
21293
21300
|
children: [
|
|
21294
|
-
/* @__PURE__ */ (0,
|
|
21295
|
-
/* @__PURE__ */ (0,
|
|
21296
|
-
/* @__PURE__ */ (0,
|
|
21301
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: "\u{1F512}" }),
|
|
21302
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "pc-messages-notice-text", children: isCaseFinalized ? caseFinalizedTooltip : t("secureMessagesNotice") }),
|
|
21303
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
21297
21304
|
"button",
|
|
21298
21305
|
{
|
|
21299
21306
|
type: "button",
|
|
@@ -21303,7 +21310,7 @@ var MessagesTab = ({ caseUuid }) => {
|
|
|
21303
21310
|
title: t("refreshMessages", "Refresh messages"),
|
|
21304
21311
|
className: "pc-messages-refresh-btn",
|
|
21305
21312
|
style: { color: STATUS_COLORS.infoBanner.color },
|
|
21306
|
-
children: /* @__PURE__ */ (0,
|
|
21313
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
21307
21314
|
import_io510.IoRefresh,
|
|
21308
21315
|
{
|
|
21309
21316
|
size: 16,
|
|
@@ -21315,32 +21322,33 @@ var MessagesTab = ({ caseUuid }) => {
|
|
|
21315
21322
|
]
|
|
21316
21323
|
}
|
|
21317
21324
|
),
|
|
21318
|
-
/* @__PURE__ */ (0,
|
|
21325
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
21319
21326
|
"div",
|
|
21320
21327
|
{
|
|
21321
21328
|
ref: scrollContainerRef,
|
|
21322
21329
|
onScroll: handleScroll,
|
|
21323
21330
|
className: "pc-messages-list",
|
|
21324
21331
|
children: [
|
|
21325
|
-
isLoading && /* @__PURE__ */ (0,
|
|
21326
|
-
isError && /* @__PURE__ */ (0,
|
|
21327
|
-
!isLoading && !isError && messages.length === 0 && /* @__PURE__ */ (0,
|
|
21328
|
-
/* @__PURE__ */ (0,
|
|
21329
|
-
/* @__PURE__ */ (0,
|
|
21332
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "pc-messages-center", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(PCLoader, { variant: "spinner", size: "md" }) }),
|
|
21333
|
+
isError && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "pc-messages-center-text", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(PCText, { size: "sm", color: "secondary", children: t("errorLoadingMessages") }) }),
|
|
21334
|
+
!isLoading && !isError && messages.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "pc-messages-empty", children: [
|
|
21335
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_io510.IoDocumentText, { size: 40, className: "pc-messages-empty-icon" }),
|
|
21336
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(PCText, { size: "sm", color: "secondary", children: t("noMessagesYet") })
|
|
21330
21337
|
] }),
|
|
21331
|
-
messages.map((msg) => /* @__PURE__ */ (0,
|
|
21338
|
+
messages.map((msg) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
21332
21339
|
MessageItem,
|
|
21333
21340
|
{
|
|
21334
21341
|
message: msg,
|
|
21335
21342
|
onUploadForRequest: triggerUploadForRequest,
|
|
21336
|
-
isSubmittingForRequest: submittingForRequest === msg.uuid
|
|
21343
|
+
isSubmittingForRequest: submittingForRequest === msg.uuid,
|
|
21344
|
+
isCaseFinalized
|
|
21337
21345
|
},
|
|
21338
21346
|
msg.uuid
|
|
21339
21347
|
))
|
|
21340
21348
|
]
|
|
21341
21349
|
}
|
|
21342
21350
|
),
|
|
21343
|
-
/* @__PURE__ */ (0,
|
|
21351
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
21344
21352
|
MessageComposer,
|
|
21345
21353
|
{
|
|
21346
21354
|
messageText,
|
|
@@ -21353,7 +21361,8 @@ var MessagesTab = ({ caseUuid }) => {
|
|
|
21353
21361
|
},
|
|
21354
21362
|
onSend: handleSend,
|
|
21355
21363
|
isSending,
|
|
21356
|
-
isUploading
|
|
21364
|
+
isUploading,
|
|
21365
|
+
isCaseFinalized
|
|
21357
21366
|
}
|
|
21358
21367
|
)
|
|
21359
21368
|
] });
|
|
@@ -21361,78 +21370,78 @@ var MessagesTab = ({ caseUuid }) => {
|
|
|
21361
21370
|
|
|
21362
21371
|
// src/RedactoPrivacyCenter/components/CaseDetails/RequestDetailsTab.tsx
|
|
21363
21372
|
var import_react_i18next42 = require("react-i18next");
|
|
21364
|
-
var
|
|
21373
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
21365
21374
|
var RequestDetailsTab = ({
|
|
21366
21375
|
selectedCase,
|
|
21367
21376
|
request_details,
|
|
21368
21377
|
requestTypeLabel
|
|
21369
21378
|
}) => {
|
|
21370
21379
|
const { t } = (0, import_react_i18next42.useTranslation)();
|
|
21371
|
-
return /* @__PURE__ */ (0,
|
|
21372
|
-
/* @__PURE__ */ (0,
|
|
21373
|
-
/* @__PURE__ */ (0,
|
|
21374
|
-
/* @__PURE__ */ (0,
|
|
21375
|
-
/* @__PURE__ */ (0,
|
|
21380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "pc-request-details", children: [
|
|
21381
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pc-request-summary-card", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "pc-case-details-grid pc-request-summary-grid", children: [
|
|
21382
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21383
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "xs", weight: "medium", color: "secondary", className: "pc-request-field-label", children: t("requestType") }),
|
|
21384
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "semibold", className: "pc-request-field-value--capitalize", children: requestTypeLabel })
|
|
21376
21385
|
] }),
|
|
21377
|
-
/* @__PURE__ */ (0,
|
|
21378
|
-
/* @__PURE__ */ (0,
|
|
21379
|
-
/* @__PURE__ */ (0,
|
|
21386
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21387
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "xs", weight: "medium", color: "secondary", className: "pc-request-field-label", children: t("status") }),
|
|
21388
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCBadge, { variant: getCaseStatusVariant2(selectedCase.status), size: "sm", className: "pc-status-badge", children: selectedCase.status_display || formatCaseStatus2(selectedCase.status) })
|
|
21380
21389
|
] }),
|
|
21381
|
-
/* @__PURE__ */ (0,
|
|
21382
|
-
/* @__PURE__ */ (0,
|
|
21383
|
-
/* @__PURE__ */ (0,
|
|
21390
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21391
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "xs", weight: "medium", color: "secondary", className: "pc-request-field-label", children: t("createdAt") }),
|
|
21392
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "medium", className: "pc-request-field-value", children: formatDate(selectedCase.created_at) })
|
|
21384
21393
|
] }),
|
|
21385
|
-
selectedCase.completed_at && /* @__PURE__ */ (0,
|
|
21386
|
-
/* @__PURE__ */ (0,
|
|
21387
|
-
/* @__PURE__ */ (0,
|
|
21394
|
+
selectedCase.completed_at && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21395
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "xs", weight: "medium", color: "secondary", className: "pc-request-field-label", children: t("completedAt") }),
|
|
21396
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "medium", className: "pc-request-field-value", children: formatDate(selectedCase.completed_at) })
|
|
21388
21397
|
] })
|
|
21389
21398
|
] }) }),
|
|
21390
|
-
(selectedCase.description_display || selectedCase.description) && /* @__PURE__ */ (0,
|
|
21391
|
-
/* @__PURE__ */ (0,
|
|
21392
|
-
/* @__PURE__ */ (0,
|
|
21399
|
+
(selectedCase.description_display || selectedCase.description) && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "pc-request-description", children: [
|
|
21400
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "semibold", className: "pc-request-description-title", children: t("descriptionLabel") }),
|
|
21401
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", color: "secondary", className: "pc-request-description-text", children: selectedCase.description_display || selectedCase.description })
|
|
21393
21402
|
] }),
|
|
21394
|
-
request_details && /* @__PURE__ */ (0,
|
|
21395
|
-
/* @__PURE__ */ (0,
|
|
21396
|
-
request_details.purposes && request_details.purposes.length > 0 && /* @__PURE__ */ (0,
|
|
21397
|
-
/* @__PURE__ */ (0,
|
|
21398
|
-
/* @__PURE__ */ (0,
|
|
21403
|
+
request_details && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "pc-request-specifics", children: [
|
|
21404
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pc-request-section-divider", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "pc-request-section-title", children: t("requestSpecifics") }) }),
|
|
21405
|
+
request_details.purposes && request_details.purposes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21406
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "semibold", className: "pc-request-section-heading", children: t("purposesInvolved") }),
|
|
21407
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("ul", { className: "pc-request-purpose-list", children: request_details.purposes.map((p) => {
|
|
21399
21408
|
var _a, _b, _c, _d;
|
|
21400
|
-
return /* @__PURE__ */ (0,
|
|
21401
|
-
/* @__PURE__ */ (0,
|
|
21402
|
-
((_c = p.purpose) == null ? void 0 : _c.description) && /* @__PURE__ */ (0,
|
|
21403
|
-
((_d = p.purpose) == null ? void 0 : _d.data_elements) && p.purpose.data_elements.some((de) => de.selected) && /* @__PURE__ */ (0,
|
|
21409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("li", { className: "pc-request-purpose-item", children: [
|
|
21410
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pc-request-purpose-name", children: (_b = p.purpose) == null ? void 0 : _b.name }),
|
|
21411
|
+
((_c = p.purpose) == null ? void 0 : _c.description) && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pc-request-purpose-desc", children: p.purpose.description }),
|
|
21412
|
+
((_d = p.purpose) == null ? void 0 : _d.data_elements) && p.purpose.data_elements.some((de) => de.selected) && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pc-request-data-elements", children: p.purpose.data_elements.filter((de) => de.selected).map((de) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCBadge, { variant: "secondary", size: "sm", className: "pc-status-badge", children: de.name }, de.uuid)) })
|
|
21404
21413
|
] }, (_a = p.purpose) == null ? void 0 : _a.uuid);
|
|
21405
21414
|
}) })
|
|
21406
21415
|
] }),
|
|
21407
|
-
request_details.correction_data && request_details.correction_data.length > 0 && /* @__PURE__ */ (0,
|
|
21408
|
-
/* @__PURE__ */ (0,
|
|
21409
|
-
/* @__PURE__ */ (0,
|
|
21410
|
-
/* @__PURE__ */ (0,
|
|
21411
|
-
/* @__PURE__ */ (0,
|
|
21412
|
-
/* @__PURE__ */ (0,
|
|
21413
|
-
/* @__PURE__ */ (0,
|
|
21414
|
-
/* @__PURE__ */ (0,
|
|
21416
|
+
request_details.correction_data && request_details.correction_data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21417
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "semibold", className: "pc-request-section-heading", children: t("dataToCorrect") }),
|
|
21418
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pcOverflowXAuto", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pc-request-table-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(PCTable, { className: "pc-request-table", children: [
|
|
21419
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCTable.Header, { className: "pc-request-table-header", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCTable.Row, { children: [t("field"), t("currentValue"), t("newValue")].map((h) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCTable.Head, { className: "pc-request-table-head", children: h }, h)) }) }),
|
|
21420
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCTable.Body, { children: request_details.correction_data.map((item) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(PCTable.Row, { className: "pc-request-table-row", children: [
|
|
21421
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCTable.Cell, { className: "pc-request-table-cell pc-request-table-cell--name", children: item.name }),
|
|
21422
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCTable.Cell, { className: "pc-request-table-cell pc-request-table-cell--value", children: item.curr_value || "-" }),
|
|
21423
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCTable.Cell, { className: "pc-request-table-cell pc-request-table-cell--value", children: item.new_value || "-" })
|
|
21415
21424
|
] }, item.name)) })
|
|
21416
21425
|
] }) }) })
|
|
21417
21426
|
] }),
|
|
21418
|
-
request_details.nomination_data && /* @__PURE__ */ (0,
|
|
21419
|
-
/* @__PURE__ */ (0,
|
|
21420
|
-
/* @__PURE__ */ (0,
|
|
21421
|
-
/* @__PURE__ */ (0,
|
|
21422
|
-
/* @__PURE__ */ (0,
|
|
21423
|
-
/* @__PURE__ */ (0,
|
|
21427
|
+
request_details.nomination_data && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21428
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "semibold", className: "pc-request-section-heading", children: t("nomination") }),
|
|
21429
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "pc-request-nomination-card", children: [
|
|
21430
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "pc-request-nomination-field", children: [
|
|
21431
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "xs", weight: "medium", color: "secondary", children: t("nomineeEmail") }),
|
|
21432
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "medium", className: "pc-request-field-value", children: request_details.nomination_data.nominee_email || "-" })
|
|
21424
21433
|
] }),
|
|
21425
|
-
/* @__PURE__ */ (0,
|
|
21426
|
-
/* @__PURE__ */ (0,
|
|
21427
|
-
/* @__PURE__ */ (0,
|
|
21434
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "pc-request-nomination-field", children: [
|
|
21435
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "xs", weight: "medium", color: "secondary", children: t("nomineeMobile") }),
|
|
21436
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "medium", className: "pc-request-field-value", children: request_details.nomination_data.nominee_mobile || "-" })
|
|
21428
21437
|
] })
|
|
21429
21438
|
] })
|
|
21430
21439
|
] }),
|
|
21431
|
-
request_details.grievance_types && request_details.grievance_types.length > 0 && /* @__PURE__ */ (0,
|
|
21432
|
-
/* @__PURE__ */ (0,
|
|
21433
|
-
/* @__PURE__ */ (0,
|
|
21440
|
+
request_details.grievance_types && request_details.grievance_types.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
|
|
21441
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCText, { size: "sm", weight: "semibold", className: "pc-request-section-heading", children: t("grievanceTypes") }),
|
|
21442
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pc-request-grievance-wrap", children: request_details.grievance_types.map((g) => {
|
|
21434
21443
|
var _a;
|
|
21435
|
-
return /* @__PURE__ */ (0,
|
|
21444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(PCBadge, { variant: "secondary", size: "sm", className: "pc-status-badge", children: (_a = g.grievance) == null ? void 0 : _a.replace("_", " ") }, g.grievance);
|
|
21436
21445
|
}) })
|
|
21437
21446
|
] })
|
|
21438
21447
|
] })
|
|
@@ -21440,7 +21449,7 @@ var RequestDetailsTab = ({
|
|
|
21440
21449
|
};
|
|
21441
21450
|
|
|
21442
21451
|
// src/RedactoPrivacyCenter/PrivacyCenterCaseDetailsPage.tsx
|
|
21443
|
-
var
|
|
21452
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
21444
21453
|
var PrivacyCenterCaseDetailsPage = () => {
|
|
21445
21454
|
var _a, _b;
|
|
21446
21455
|
const { t } = (0, import_react_i18next43.useTranslation)();
|
|
@@ -21490,7 +21499,7 @@ var PrivacyCenterCaseDetailsPage = () => {
|
|
|
21490
21499
|
}
|
|
21491
21500
|
}, [selectedCase, targetUuid, isLoading, navigateTo]);
|
|
21492
21501
|
if (!selectedCase) {
|
|
21493
|
-
return isLoading ? /* @__PURE__ */ (0,
|
|
21502
|
+
return isLoading ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "200px" }, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(PCLoader, { size: "lg" }) }) : null;
|
|
21494
21503
|
}
|
|
21495
21504
|
const { request_details } = selectedCase;
|
|
21496
21505
|
const requestTypeLabel = selectedCase.request_type_display || selectedCase.request_type.replace("_", " ");
|
|
@@ -21499,8 +21508,8 @@ var PrivacyCenterCaseDetailsPage = () => {
|
|
|
21499
21508
|
{ id: "request-details", label: t("requestDetails") },
|
|
21500
21509
|
{ id: "messages", label: t("messages") }
|
|
21501
21510
|
];
|
|
21502
|
-
return /* @__PURE__ */ (0,
|
|
21503
|
-
/* @__PURE__ */ (0,
|
|
21511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "pc-case-page", children: [
|
|
21512
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "pc-case-back", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
21504
21513
|
PCButton,
|
|
21505
21514
|
{
|
|
21506
21515
|
variant: "text",
|
|
@@ -21508,33 +21517,33 @@ var PrivacyCenterCaseDetailsPage = () => {
|
|
|
21508
21517
|
onClick: () => navigateTo("form"),
|
|
21509
21518
|
className: "pc-case-back-btn",
|
|
21510
21519
|
children: [
|
|
21511
|
-
/* @__PURE__ */ (0,
|
|
21520
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_io511.IoArrowBack, { size: 16, className: "pc-case-back-icon" }),
|
|
21512
21521
|
t("backToHome")
|
|
21513
21522
|
]
|
|
21514
21523
|
}
|
|
21515
21524
|
) }),
|
|
21516
|
-
/* @__PURE__ */ (0,
|
|
21517
|
-
/* @__PURE__ */ (0,
|
|
21518
|
-
/* @__PURE__ */ (0,
|
|
21519
|
-
/* @__PURE__ */ (0,
|
|
21520
|
-
/* @__PURE__ */ (0,
|
|
21521
|
-
/* @__PURE__ */ (0,
|
|
21525
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "pc-case-header", children: [
|
|
21526
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "pc-case-header-id", children: selectedCase.case_id }),
|
|
21527
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: "\xB7" }),
|
|
21528
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: requestTypeLabel }),
|
|
21529
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: "\xB7" }),
|
|
21530
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { children: [
|
|
21522
21531
|
t("submitted"),
|
|
21523
21532
|
" ",
|
|
21524
21533
|
formatDate(selectedCase.created_at)
|
|
21525
21534
|
] }),
|
|
21526
|
-
selectedCase.due_date && /* @__PURE__ */ (0,
|
|
21527
|
-
/* @__PURE__ */ (0,
|
|
21528
|
-
/* @__PURE__ */ (0,
|
|
21535
|
+
selectedCase.due_date && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
21536
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: "\xB7" }),
|
|
21537
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: isDueDateOverdue ? "pc-case-header-overdue" : void 0, children: [
|
|
21529
21538
|
t("responseDue"),
|
|
21530
21539
|
" ",
|
|
21531
21540
|
formatDate(selectedCase.due_date)
|
|
21532
21541
|
] })
|
|
21533
21542
|
] }),
|
|
21534
|
-
/* @__PURE__ */ (0,
|
|
21535
|
-
/* @__PURE__ */ (0,
|
|
21543
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: "\xB7" }),
|
|
21544
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(PCBadge, { variant: getCaseStatusVariant2(selectedCase.status), size: "sm", className: "pc-status-badge", children: selectedCase.status_display || formatCaseStatus2(selectedCase.status) })
|
|
21536
21545
|
] }),
|
|
21537
|
-
/* @__PURE__ */ (0,
|
|
21546
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "pc-case-tabs", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
21538
21547
|
"button",
|
|
21539
21548
|
{
|
|
21540
21549
|
onClick: () => setActiveTab(tab.id),
|
|
@@ -21543,9 +21552,9 @@ var PrivacyCenterCaseDetailsPage = () => {
|
|
|
21543
21552
|
},
|
|
21544
21553
|
tab.id
|
|
21545
21554
|
)) }),
|
|
21546
|
-
/* @__PURE__ */ (0,
|
|
21547
|
-
activeTab === "messages" && /* @__PURE__ */ (0,
|
|
21548
|
-
activeTab === "request-details" && /* @__PURE__ */ (0,
|
|
21555
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "pc-case-tab-content", children: [
|
|
21556
|
+
activeTab === "messages" && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(MessagesTab, { caseUuid: selectedCase.uuid, caseStatus: selectedCase.status }),
|
|
21557
|
+
activeTab === "request-details" && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(RequestDetailsTab, { selectedCase, request_details, requestTypeLabel })
|
|
21549
21558
|
] })
|
|
21550
21559
|
] });
|
|
21551
21560
|
};
|
|
@@ -21556,11 +21565,11 @@ var import_io512 = require("react-icons/io5");
|
|
|
21556
21565
|
var import_react_i18next46 = require("react-i18next");
|
|
21557
21566
|
|
|
21558
21567
|
// src/RedactoPrivacyCenter/components/NotificationHub/StatCard.tsx
|
|
21559
|
-
var
|
|
21568
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
21560
21569
|
var StatCard = ({ value, label }) => {
|
|
21561
|
-
return /* @__PURE__ */ (0,
|
|
21562
|
-
/* @__PURE__ */ (0,
|
|
21563
|
-
/* @__PURE__ */ (0,
|
|
21570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "pc-notification-stat-card", children: [
|
|
21571
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "pc-notification-stat-value", children: value }),
|
|
21572
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "pc-notification-stat-label", children: label })
|
|
21564
21573
|
] });
|
|
21565
21574
|
};
|
|
21566
21575
|
|
|
@@ -21569,11 +21578,11 @@ var import_react_i18next45 = require("react-i18next");
|
|
|
21569
21578
|
|
|
21570
21579
|
// src/RedactoPrivacyCenter/components/NotificationHub/NotificationRow.tsx
|
|
21571
21580
|
var import_react_i18next44 = require("react-i18next");
|
|
21572
|
-
var
|
|
21581
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
21573
21582
|
var NotificationRow = ({ notification, onClick, onCTAClick }) => {
|
|
21574
21583
|
const { t } = (0, import_react_i18next44.useTranslation)();
|
|
21575
21584
|
const statusLabel = notification.status_label_display || notification.status_label;
|
|
21576
|
-
return /* @__PURE__ */ (0,
|
|
21585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
21577
21586
|
"div",
|
|
21578
21587
|
{
|
|
21579
21588
|
onClick,
|
|
@@ -21591,15 +21600,15 @@ var NotificationRow = ({ notification, onClick, onCTAClick }) => {
|
|
|
21591
21600
|
className: "pc-notification-row",
|
|
21592
21601
|
"data-read": notification.is_read ? "true" : "false",
|
|
21593
21602
|
children: [
|
|
21594
|
-
/* @__PURE__ */ (0,
|
|
21595
|
-
/* @__PURE__ */ (0,
|
|
21596
|
-
/* @__PURE__ */ (0,
|
|
21597
|
-
/* @__PURE__ */ (0,
|
|
21598
|
-
!notification.is_read && /* @__PURE__ */ (0,
|
|
21599
|
-
statusLabel && /* @__PURE__ */ (0,
|
|
21603
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(NotificationIcon, { notificationType: notification.notification_type, size: "lg" }),
|
|
21604
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "pc-notification-row-content", children: [
|
|
21605
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "pc-notification-row-title-line", children: [
|
|
21606
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "pc-notification-row-title", children: notification.title }),
|
|
21607
|
+
!notification.is_read && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "pc-notification-unread-dot-lg" }),
|
|
21608
|
+
statusLabel && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "pc-notification-status-badge", children: statusLabel })
|
|
21600
21609
|
] }),
|
|
21601
|
-
/* @__PURE__ */ (0,
|
|
21602
|
-
notification.ctas && notification.ctas.length > 0 && /* @__PURE__ */ (0,
|
|
21610
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "pc-notification-row-description", children: notification.description }),
|
|
21611
|
+
notification.ctas && notification.ctas.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "pc-notification-row-ctas", children: notification.ctas.map((cta) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
21603
21612
|
NotificationCTAButton,
|
|
21604
21613
|
{
|
|
21605
21614
|
cta,
|
|
@@ -21612,14 +21621,14 @@ var NotificationRow = ({ notification, onClick, onCTAClick }) => {
|
|
|
21612
21621
|
`${cta.action_type}-${cta.label}`
|
|
21613
21622
|
)) })
|
|
21614
21623
|
] }),
|
|
21615
|
-
/* @__PURE__ */ (0,
|
|
21624
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "pc-notification-row-time", children: formatTimeAgo(notification.created_at, t) })
|
|
21616
21625
|
]
|
|
21617
21626
|
}
|
|
21618
21627
|
);
|
|
21619
21628
|
};
|
|
21620
21629
|
|
|
21621
21630
|
// src/RedactoPrivacyCenter/components/NotificationHub/NotificationListPanel.tsx
|
|
21622
|
-
var
|
|
21631
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
21623
21632
|
var NotificationListPanel = ({
|
|
21624
21633
|
notifications,
|
|
21625
21634
|
totalCount,
|
|
@@ -21637,22 +21646,22 @@ var NotificationListPanel = ({
|
|
|
21637
21646
|
const { t } = (0, import_react_i18next45.useTranslation)();
|
|
21638
21647
|
const tabs = useNotificationFilterTabs();
|
|
21639
21648
|
const hasMore = skip + NOTIFICATION_PAGE_SIZE < totalCount;
|
|
21640
|
-
return /* @__PURE__ */ (0,
|
|
21641
|
-
/* @__PURE__ */ (0,
|
|
21642
|
-
/* @__PURE__ */ (0,
|
|
21649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "pc-notification-panel", children: [
|
|
21650
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "pc-notification-panel-header", children: [
|
|
21651
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("h2", { className: "pc-notification-panel-title", children: [
|
|
21643
21652
|
t("notifications"),
|
|
21644
|
-
/* @__PURE__ */ (0,
|
|
21653
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("span", { className: "pc-notification-panel-count", children: [
|
|
21645
21654
|
"(",
|
|
21646
21655
|
totalCount,
|
|
21647
21656
|
")"
|
|
21648
21657
|
] })
|
|
21649
21658
|
] }),
|
|
21650
|
-
/* @__PURE__ */ (0,
|
|
21651
|
-
/* @__PURE__ */ (0,
|
|
21652
|
-
/* @__PURE__ */ (0,
|
|
21659
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "pc-notification-header-actions", children: [
|
|
21660
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(NotificationRefreshButton, { isRefreshing: isRefreshing2, onRefresh, iconSize: 18 }),
|
|
21661
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("button", { type: "button", onClick: onMarkAllRead, className: "pc-notification-link-btn", children: t("markAllAsRead") })
|
|
21653
21662
|
] })
|
|
21654
21663
|
] }),
|
|
21655
|
-
/* @__PURE__ */ (0,
|
|
21664
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "pc-notification-filter-tabs", children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
21656
21665
|
"button",
|
|
21657
21666
|
{
|
|
21658
21667
|
type: "button",
|
|
@@ -21664,7 +21673,7 @@ var NotificationListPanel = ({
|
|
|
21664
21673
|
},
|
|
21665
21674
|
tab.key
|
|
21666
21675
|
)) }),
|
|
21667
|
-
/* @__PURE__ */ (0,
|
|
21676
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { children: isLoading && !isRefreshing2 ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "pc-notification-empty-state", children: t("loadingNotifications") }) : notifications.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "pc-notification-empty-state", children: t("noNotificationsInCategory") }) : notifications.map((notification) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
21668
21677
|
NotificationRow,
|
|
21669
21678
|
{
|
|
21670
21679
|
notification,
|
|
@@ -21673,8 +21682,8 @@ var NotificationListPanel = ({
|
|
|
21673
21682
|
},
|
|
21674
21683
|
notification.uuid
|
|
21675
21684
|
)) }),
|
|
21676
|
-
totalCount > NOTIFICATION_PAGE_SIZE && /* @__PURE__ */ (0,
|
|
21677
|
-
/* @__PURE__ */ (0,
|
|
21685
|
+
totalCount > NOTIFICATION_PAGE_SIZE && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "pc-notification-pagination", children: [
|
|
21686
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
21678
21687
|
"button",
|
|
21679
21688
|
{
|
|
21680
21689
|
type: "button",
|
|
@@ -21684,8 +21693,8 @@ var NotificationListPanel = ({
|
|
|
21684
21693
|
children: t("previous")
|
|
21685
21694
|
}
|
|
21686
21695
|
),
|
|
21687
|
-
/* @__PURE__ */ (0,
|
|
21688
|
-
/* @__PURE__ */ (0,
|
|
21696
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "pc-notification-pagination-range", children: t("paginationRange", { start: skip + 1, end: Math.min(skip + NOTIFICATION_PAGE_SIZE, totalCount), total: totalCount }) }),
|
|
21697
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
21689
21698
|
"button",
|
|
21690
21699
|
{
|
|
21691
21700
|
type: "button",
|
|
@@ -21700,7 +21709,7 @@ var NotificationListPanel = ({
|
|
|
21700
21709
|
};
|
|
21701
21710
|
|
|
21702
21711
|
// src/RedactoPrivacyCenter/NotificationsPage.tsx
|
|
21703
|
-
var
|
|
21712
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
21704
21713
|
var NotificationsPage = () => {
|
|
21705
21714
|
const { t } = (0, import_react_i18next46.useTranslation)();
|
|
21706
21715
|
const { langParam } = useCurrentLanguage();
|
|
@@ -21828,18 +21837,18 @@ var NotificationsPage = () => {
|
|
|
21828
21837
|
loadNotifications(true);
|
|
21829
21838
|
}, [loadNotifications]);
|
|
21830
21839
|
const onBack = (0, import_react50.useCallback)(() => navigateTo("consent-manager"), [navigateTo]);
|
|
21831
|
-
return /* @__PURE__ */ (0,
|
|
21832
|
-
/* @__PURE__ */ (0,
|
|
21833
|
-
/* @__PURE__ */ (0,
|
|
21840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "pc-notification-page", children: [
|
|
21841
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("button", { type: "button", onClick: onBack, className: "pc-notification-back-btn", children: [
|
|
21842
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_io512.IoChevronBackOutline, { size: 14 }),
|
|
21834
21843
|
t("backToManageConsent")
|
|
21835
21844
|
] }),
|
|
21836
|
-
/* @__PURE__ */ (0,
|
|
21837
|
-
/* @__PURE__ */ (0,
|
|
21838
|
-
/* @__PURE__ */ (0,
|
|
21839
|
-
/* @__PURE__ */ (0,
|
|
21840
|
-
/* @__PURE__ */ (0,
|
|
21845
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "pc-notification-stats-grid", children: [
|
|
21846
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(StatCard, { value: summary.total, label: statLabels.total }),
|
|
21847
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(StatCard, { value: summary.unread, label: statLabels.unread }),
|
|
21848
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(StatCard, { value: summary.action_needed, label: statLabels.action_needed }),
|
|
21849
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(StatCard, { value: summary.acknowledged, label: statLabels.acknowledged })
|
|
21841
21850
|
] }),
|
|
21842
|
-
/* @__PURE__ */ (0,
|
|
21851
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
21843
21852
|
NotificationListPanel,
|
|
21844
21853
|
{
|
|
21845
21854
|
notifications,
|
|
@@ -21860,7 +21869,7 @@ var NotificationsPage = () => {
|
|
|
21860
21869
|
};
|
|
21861
21870
|
|
|
21862
21871
|
// src/RedactoPrivacyCenter/PrivacyCenterHomePage.tsx
|
|
21863
|
-
var
|
|
21872
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
21864
21873
|
function PrivacyCenterHomePage() {
|
|
21865
21874
|
const { currentPage } = useInternalNavigation();
|
|
21866
21875
|
(0, import_react51.useEffect)(() => {
|
|
@@ -21870,17 +21879,17 @@ function PrivacyCenterHomePage() {
|
|
|
21870
21879
|
}, []);
|
|
21871
21880
|
switch (currentPage) {
|
|
21872
21881
|
case "consent-manager":
|
|
21873
|
-
return /* @__PURE__ */ (0,
|
|
21882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PrivacyCenterConsentManagerPage, {});
|
|
21874
21883
|
case "form":
|
|
21875
|
-
return /* @__PURE__ */ (0,
|
|
21884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PrivacyCenterFormPage, {});
|
|
21876
21885
|
case "activity":
|
|
21877
|
-
return /* @__PURE__ */ (0,
|
|
21886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PrivacyCenterActivityPage, {});
|
|
21878
21887
|
case "case-details":
|
|
21879
|
-
return /* @__PURE__ */ (0,
|
|
21888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PrivacyCenterCaseDetailsPage, {});
|
|
21880
21889
|
case "notifications":
|
|
21881
|
-
return /* @__PURE__ */ (0,
|
|
21890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(NotificationsPage, {});
|
|
21882
21891
|
default:
|
|
21883
|
-
return /* @__PURE__ */ (0,
|
|
21892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PrivacyCenterConsentManagerPage, {});
|
|
21884
21893
|
}
|
|
21885
21894
|
}
|
|
21886
21895
|
|
|
@@ -24541,7 +24550,7 @@ var injectPCStyles = () => {
|
|
|
24541
24550
|
};
|
|
24542
24551
|
|
|
24543
24552
|
// src/RedactoPrivacyCenter/RedactoPrivacyCenter.tsx
|
|
24544
|
-
var
|
|
24553
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
24545
24554
|
injectPCStyles();
|
|
24546
24555
|
function RedactoPrivacyCenter({
|
|
24547
24556
|
baseUrl,
|
|
@@ -24552,13 +24561,13 @@ function RedactoPrivacyCenter({
|
|
|
24552
24561
|
initialPage = "consent-manager",
|
|
24553
24562
|
onBack
|
|
24554
24563
|
}) {
|
|
24555
|
-
return /* @__PURE__ */ (0,
|
|
24564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_i18next47.I18nextProvider, { i18n: i18n_default, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(BrandingProvider, { slug, baseUrl, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(BaseUrlProvider, { baseUrl, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
24556
24565
|
AuthProvider,
|
|
24557
24566
|
{
|
|
24558
24567
|
accessToken,
|
|
24559
24568
|
refreshToken,
|
|
24560
24569
|
onError,
|
|
24561
|
-
children: /* @__PURE__ */ (0,
|
|
24570
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(NavigationProvider, { initialPage, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PageChromeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PrivacyCenterLayout, { slug, onBack, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(PrivacyCenterHomePage, {}) }) }) })
|
|
24562
24571
|
}
|
|
24563
24572
|
) }) }) });
|
|
24564
24573
|
}
|