@arbidocs/blocks 0.5.195 → 0.5.196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedCallDock-L2ER6N2P.cjs → ConnectedCallDock-RRTYZERC.cjs} +22 -22
- package/dist/{ConnectedCallDock-L2ER6N2P.cjs.map → ConnectedCallDock-RRTYZERC.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-R6SHBOKX.cjs → ConnectedCallRoom-HFVIMBCN.cjs} +15 -15
- package/dist/{ConnectedCallRoom-R6SHBOKX.cjs.map → ConnectedCallRoom-HFVIMBCN.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-JNOAKSPK.cjs → ConnectedNativeDocxComparison-FSJQITYC.cjs} +18 -18
- package/dist/{ConnectedNativeDocxComparison-JNOAKSPK.cjs.map → ConnectedNativeDocxComparison-FSJQITYC.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-ZSB7454J.cjs → ConnectedPresentation-ZRCLFY43.cjs} +19 -19
- package/dist/{ConnectedPresentation-ZSB7454J.cjs.map → ConnectedPresentation-ZRCLFY43.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-SHDI7KP6.cjs → ConnectedProductionSetDialog-KT6BPSRE.cjs} +6 -6
- package/dist/{ConnectedProductionSetDialog-SHDI7KP6.cjs.map → ConnectedProductionSetDialog-KT6BPSRE.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-LCA3ZX5W.cjs → ConnectedSlidesTab-WCPQJZ3S.cjs} +16 -16
- package/dist/{ConnectedSlidesTab-LCA3ZX5W.cjs.map → ConnectedSlidesTab-WCPQJZ3S.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-J5HVQMUS.cjs → ConnectedStreamedWordArtifact-PJTPIXJU.cjs} +18 -18
- package/dist/{ConnectedStreamedWordArtifact-J5HVQMUS.cjs.map → ConnectedStreamedWordArtifact-PJTPIXJU.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-Q3NKJLSM.cjs → DocumentReviewCard-5LGKZ3QM.cjs} +20 -20
- package/dist/{DocumentReviewCard-Q3NKJLSM.cjs.map → DocumentReviewCard-5LGKZ3QM.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-O3ZTKELI.cjs → FilesViewerDialog-GICV5UY6.cjs} +52 -50
- package/dist/FilesViewerDialog-GICV5UY6.cjs.map +1 -0
- package/dist/{WorkspaceTableView-QT63XYII.cjs → WorkspaceTableView-FEP7EXL4.cjs} +11 -11
- package/dist/{WorkspaceTableView-QT63XYII.cjs.map → WorkspaceTableView-FEP7EXL4.cjs.map} +1 -1
- package/dist/agents/index.cjs +289 -289
- package/dist/{ai-I7QIW5OA.cjs → ai-BCZZFQUB.cjs} +25 -25
- package/dist/ai-BCZZFQUB.cjs.map +1 -0
- package/dist/auth/index.cjs +12 -12
- package/dist/calls/index.cjs +125 -125
- package/dist/chat/index.cjs +18 -18
- package/dist/{chunk-KD37PODE.cjs → chunk-2ET34WD5.cjs} +5 -5
- package/dist/{chunk-KD37PODE.cjs.map → chunk-2ET34WD5.cjs.map} +1 -1
- package/dist/{chunk-XYN3RP5W.cjs → chunk-2FBWSMAX.cjs} +26 -8
- package/dist/chunk-2FBWSMAX.cjs.map +1 -0
- package/dist/{chunk-LYDSETR7.cjs → chunk-33VS7HH4.cjs} +11 -228
- package/dist/chunk-33VS7HH4.cjs.map +1 -0
- package/dist/{chunk-5OD6DRG7.cjs → chunk-3P6KGC46.cjs} +3 -3
- package/dist/{chunk-5OD6DRG7.cjs.map → chunk-3P6KGC46.cjs.map} +1 -1
- package/dist/{chunk-AZUPMHZI.cjs → chunk-3U6XE7SF.cjs} +4 -4
- package/dist/{chunk-AZUPMHZI.cjs.map → chunk-3U6XE7SF.cjs.map} +1 -1
- package/dist/{chunk-HBY5PEMC.cjs → chunk-6CJBNRKW.cjs} +4 -4
- package/dist/{chunk-HBY5PEMC.cjs.map → chunk-6CJBNRKW.cjs.map} +1 -1
- package/dist/{chunk-VDHBLDQC.cjs → chunk-6N7QT2DH.cjs} +3 -3
- package/dist/{chunk-VDHBLDQC.cjs.map → chunk-6N7QT2DH.cjs.map} +1 -1
- package/dist/{chunk-VDT7TEAH.cjs → chunk-6ZJBUMNK.cjs} +3 -3
- package/dist/{chunk-VDT7TEAH.cjs.map → chunk-6ZJBUMNK.cjs.map} +1 -1
- package/dist/{chunk-V5VFRRLL.cjs → chunk-AZHIZRHN.cjs} +12 -12
- package/dist/{chunk-V5VFRRLL.cjs.map → chunk-AZHIZRHN.cjs.map} +1 -1
- package/dist/{chunk-P5DNNAUY.cjs → chunk-BCVC6PG5.cjs} +78 -78
- package/dist/{chunk-P5DNNAUY.cjs.map → chunk-BCVC6PG5.cjs.map} +1 -1
- package/dist/{chunk-X3SUQFY7.cjs → chunk-BR3XQ45B.cjs} +28 -28
- package/dist/{chunk-X3SUQFY7.cjs.map → chunk-BR3XQ45B.cjs.map} +1 -1
- package/dist/{chunk-5WCQ5Y77.cjs → chunk-BXHPV6QF.cjs} +4 -4
- package/dist/{chunk-5WCQ5Y77.cjs.map → chunk-BXHPV6QF.cjs.map} +1 -1
- package/dist/{chunk-EAH7LFJN.cjs → chunk-CUYELFKB.cjs} +4 -4
- package/dist/{chunk-EAH7LFJN.cjs.map → chunk-CUYELFKB.cjs.map} +1 -1
- package/dist/{chunk-HGH5FLYS.cjs → chunk-CZOHXTHJ.cjs} +6 -6
- package/dist/{chunk-HGH5FLYS.cjs.map → chunk-CZOHXTHJ.cjs.map} +1 -1
- package/dist/{chunk-XQPJWPWE.cjs → chunk-DJ7LSKBJ.cjs} +3 -3
- package/dist/{chunk-XQPJWPWE.cjs.map → chunk-DJ7LSKBJ.cjs.map} +1 -1
- package/dist/{chunk-6EATJW7T.cjs → chunk-DRQB5V5C.cjs} +7 -7
- package/dist/{chunk-6EATJW7T.cjs.map → chunk-DRQB5V5C.cjs.map} +1 -1
- package/dist/chunk-EEKY7VO3.cjs +58 -0
- package/dist/chunk-EEKY7VO3.cjs.map +1 -0
- package/dist/{chunk-SYUVP52B.cjs → chunk-G3SWFSPS.cjs} +69 -69
- package/dist/chunk-G3SWFSPS.cjs.map +1 -0
- package/dist/{chunk-633ZCYVN.cjs → chunk-GEVBY536.cjs} +37 -37
- package/dist/{chunk-633ZCYVN.cjs.map → chunk-GEVBY536.cjs.map} +1 -1
- package/dist/{chunk-EFV52SZ6.cjs → chunk-GY4T4JSC.cjs} +4 -4
- package/dist/{chunk-EFV52SZ6.cjs.map → chunk-GY4T4JSC.cjs.map} +1 -1
- package/dist/chunk-HYYYXHBK.cjs +393 -0
- package/dist/chunk-HYYYXHBK.cjs.map +1 -0
- package/dist/{chunk-YYK2CCMC.cjs → chunk-ICZBM35E.cjs} +7 -7
- package/dist/{chunk-YYK2CCMC.cjs.map → chunk-ICZBM35E.cjs.map} +1 -1
- package/dist/{chunk-YPSCG6ZW.cjs → chunk-IIAJVC3L.cjs} +15 -15
- package/dist/{chunk-YPSCG6ZW.cjs.map → chunk-IIAJVC3L.cjs.map} +1 -1
- package/dist/{chunk-6LNTU7DA.cjs → chunk-IRVSCMRW.cjs} +3 -3
- package/dist/{chunk-6LNTU7DA.cjs.map → chunk-IRVSCMRW.cjs.map} +1 -1
- package/dist/{chunk-V4XARTJ4.cjs → chunk-ISPDSFVM.cjs} +13 -13
- package/dist/{chunk-V4XARTJ4.cjs.map → chunk-ISPDSFVM.cjs.map} +1 -1
- package/dist/{chunk-KQJUY2OE.cjs → chunk-JGU6YLIA.cjs} +11 -11
- package/dist/{chunk-KQJUY2OE.cjs.map → chunk-JGU6YLIA.cjs.map} +1 -1
- package/dist/chunk-JOQDJRV2.cjs +25 -0
- package/dist/chunk-JOQDJRV2.cjs.map +1 -0
- package/dist/{chunk-L3MYUPSH.cjs → chunk-JYDVGZ62.cjs} +5 -5
- package/dist/{chunk-L3MYUPSH.cjs.map → chunk-JYDVGZ62.cjs.map} +1 -1
- package/dist/{chunk-VD3HI5RF.cjs → chunk-NS7PWOL7.cjs} +3 -3
- package/dist/{chunk-VD3HI5RF.cjs.map → chunk-NS7PWOL7.cjs.map} +1 -1
- package/dist/{chunk-HJAI3QNK.cjs → chunk-PUSCVYTH.cjs} +18 -18
- package/dist/{chunk-HJAI3QNK.cjs.map → chunk-PUSCVYTH.cjs.map} +1 -1
- package/dist/{chunk-SXC4ZIN4.cjs → chunk-QOTDPA62.cjs} +10 -10
- package/dist/{chunk-SXC4ZIN4.cjs.map → chunk-QOTDPA62.cjs.map} +1 -1
- package/dist/{chunk-3GI3UM2T.cjs → chunk-RR3QJM2Y.cjs} +52 -52
- package/dist/chunk-RR3QJM2Y.cjs.map +1 -0
- package/dist/{chunk-ELN3YOXF.cjs → chunk-SLVWSTFY.cjs} +28 -28
- package/dist/{chunk-ELN3YOXF.cjs.map → chunk-SLVWSTFY.cjs.map} +1 -1
- package/dist/{chunk-A7MGQMOV.cjs → chunk-SOJYSRO4.cjs} +10 -10
- package/dist/{chunk-A7MGQMOV.cjs.map → chunk-SOJYSRO4.cjs.map} +1 -1
- package/dist/{chunk-QXIWLWR2.cjs → chunk-SVHUSJFP.cjs} +4 -4
- package/dist/{chunk-QXIWLWR2.cjs.map → chunk-SVHUSJFP.cjs.map} +1 -1
- package/dist/{chunk-KHT2YJ5N.cjs → chunk-T7UGI2F2.cjs} +7 -7
- package/dist/{chunk-KHT2YJ5N.cjs.map → chunk-T7UGI2F2.cjs.map} +1 -1
- package/dist/{chunk-KC3HRFSO.cjs → chunk-UTDLO73D.cjs} +3 -3
- package/dist/{chunk-KC3HRFSO.cjs.map → chunk-UTDLO73D.cjs.map} +1 -1
- package/dist/{chunk-ZTR3SUN4.cjs → chunk-UYFHTF2G.cjs} +12 -12
- package/dist/{chunk-ZTR3SUN4.cjs.map → chunk-UYFHTF2G.cjs.map} +1 -1
- package/dist/chunk-VHC3B3R7.cjs +199 -0
- package/dist/chunk-VHC3B3R7.cjs.map +1 -0
- package/dist/{chunk-IOGN5UAT.cjs → chunk-VXCZFJU7.cjs} +3 -3
- package/dist/{chunk-IOGN5UAT.cjs.map → chunk-VXCZFJU7.cjs.map} +1 -1
- package/dist/{chunk-SDID4WK7.cjs → chunk-W365ZZTM.cjs} +49 -49
- package/dist/{chunk-SDID4WK7.cjs.map → chunk-W365ZZTM.cjs.map} +1 -1
- package/dist/{chunk-TLIZD6DV.cjs → chunk-W7TSEN3J.cjs} +6 -6
- package/dist/{chunk-TLIZD6DV.cjs.map → chunk-W7TSEN3J.cjs.map} +1 -1
- package/dist/{chunk-D4SJT3NG.cjs → chunk-WB5XAM77.cjs} +4 -4
- package/dist/{chunk-D4SJT3NG.cjs.map → chunk-WB5XAM77.cjs.map} +1 -1
- package/dist/{chunk-QSY2VW7V.cjs → chunk-WXRAU2FF.cjs} +6 -6
- package/dist/{chunk-QSY2VW7V.cjs.map → chunk-WXRAU2FF.cjs.map} +1 -1
- package/dist/{chunk-LYJFE37D.cjs → chunk-X6TSOKEP.cjs} +3 -3
- package/dist/{chunk-LYJFE37D.cjs.map → chunk-X6TSOKEP.cjs.map} +1 -1
- package/dist/{chunk-NSL5BCGH.cjs → chunk-XTEGQZM2.cjs} +6 -6
- package/dist/{chunk-NSL5BCGH.cjs.map → chunk-XTEGQZM2.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +13 -13
- package/dist/connect/docx.cjs +21 -21
- package/dist/connect/index.cjs +1171 -1163
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +40 -38
- package/dist/connection/ConnectedSignDocumentDialog.d.ts +8 -0
- package/dist/connection/ConnectedSignDocumentDialog.js +14 -0
- package/dist/connection/ConnectedSignDocumentDialog.js.map +7 -0
- package/dist/connection/WorkflowRunnerDialogs.js +2 -2
- package/dist/connection/WorkflowRunnerDialogs.js.map +2 -2
- package/dist/connection/useSigningIdentity.d.ts +10 -0
- package/dist/connection/useSigningIdentity.js +15 -0
- package/dist/connection/useSigningIdentity.js.map +7 -0
- package/dist/connection/viewer/ConnectedDocumentViewer.js +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/ConnectedSharedFileDialog.js +4 -0
- package/dist/connection/viewer/ConnectedSharedFileDialog.js.map +2 -2
- package/dist/connection/viewer/ConnectedSharedFilesPage.js +4 -0
- package/dist/connection/viewer/ConnectedSharedFilesPage.js.map +2 -2
- package/dist/dashboards/index.cjs +1 -1
- package/dist/document-tools/SignDocumentDialog.d.ts +10 -1
- package/dist/document-tools/SignDocumentDialog.js +116 -93
- package/dist/document-tools/SignDocumentDialog.js.map +2 -2
- package/dist/document-tools/index.cjs +10 -9
- package/dist/document-tools/useIdentityGate.d.ts +26 -0
- package/dist/document-tools/useIdentityGate.js +55 -0
- package/dist/document-tools/useIdentityGate.js.map +7 -0
- package/dist/document-tools/viewer/GuidedSigningViewer.d.ts +9 -1
- package/dist/document-tools/viewer/GuidedSigningViewer.js +19 -5
- package/dist/document-tools/viewer/GuidedSigningViewer.js.map +2 -2
- package/dist/document-tools/viewer/SharedFileView.d.ts +5 -1
- package/dist/document-tools/viewer/SharedFileView.js +5 -1
- package/dist/document-tools/viewer/SharedFileView.js.map +2 -2
- package/dist/document-tools/viewer/index.cjs +11 -9
- package/dist/document-tools/viewer/index.cjs.map +1 -1
- package/dist/embed/index.cjs +46 -46
- package/dist/facts/index.cjs +39 -39
- package/dist/files/index.cjs +221 -221
- package/dist/index.cjs +1773 -1773
- package/dist/pages/index.cjs +30 -30
- package/dist/settings/IdentityVerification.d.ts +2 -0
- package/dist/settings/IdentityVerification.js +8 -5
- package/dist/settings/IdentityVerification.js.map +2 -2
- package/dist/settings/index.cjs +156 -156
- package/dist/shell/index.cjs +81 -81
- package/dist/studio/index.cjs +28 -28
- package/dist/workflow-canvas/index.cjs +65 -63
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/FilesViewerDialog-O3ZTKELI.cjs.map +0 -1
- package/dist/ai-I7QIW5OA.cjs.map +0 -1
- package/dist/chunk-3GI3UM2T.cjs.map +0 -1
- package/dist/chunk-LYDSETR7.cjs.map +0 -1
- package/dist/chunk-OUYBYZ7Y.cjs +0 -176
- package/dist/chunk-OUYBYZ7Y.cjs.map +0 -1
- package/dist/chunk-QQMMCXBP.cjs +0 -173
- package/dist/chunk-QQMMCXBP.cjs.map +0 -1
- package/dist/chunk-SYUVP52B.cjs.map +0 -1
- package/dist/chunk-XYN3RP5W.cjs.map +0 -1
package/dist/pages/index.cjs
CHANGED
|
@@ -2,20 +2,23 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkK5F2VNCX_cjs = require('../chunk-K5F2VNCX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkIIAJVC3L_cjs = require('../chunk-IIAJVC3L.cjs');
|
|
6
6
|
require('../chunk-DWRUGOTQ.cjs');
|
|
7
7
|
require('../chunk-KD66CBYO.cjs');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-UYFHTF2G.cjs');
|
|
9
|
+
require('../chunk-IRVSCMRW.cjs');
|
|
10
10
|
require('../chunk-UNSZLNA4.cjs');
|
|
11
|
+
require('../chunk-JTBWI74K.cjs');
|
|
11
12
|
var chunkJ5CBCUQE_cjs = require('../chunk-J5CBCUQE.cjs');
|
|
12
13
|
require('../chunk-JWCVA4LC.cjs');
|
|
13
|
-
var
|
|
14
|
+
var chunkCUYELFKB_cjs = require('../chunk-CUYELFKB.cjs');
|
|
14
15
|
require('../chunk-223D4727.cjs');
|
|
15
16
|
require('../chunk-DTMBAFIL.cjs');
|
|
16
17
|
require('../chunk-SOT7NPIB.cjs');
|
|
17
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-CZOHXTHJ.cjs');
|
|
18
19
|
require('../chunk-76S6WTEC.cjs');
|
|
20
|
+
require('../chunk-GD5OYIOV.cjs');
|
|
21
|
+
require('../chunk-VWSOHZK2.cjs');
|
|
19
22
|
var chunkLNYICHFJ_cjs = require('../chunk-LNYICHFJ.cjs');
|
|
20
23
|
var chunkYSAUOJA7_cjs = require('../chunk-YSAUOJA7.cjs');
|
|
21
24
|
var chunkJ37DOAGN_cjs = require('../chunk-J37DOAGN.cjs');
|
|
@@ -27,10 +30,12 @@ require('../chunk-V5P5MRSR.cjs');
|
|
|
27
30
|
require('../chunk-SNUBQMIS.cjs');
|
|
28
31
|
var chunkLIJB6XOR_cjs = require('../chunk-LIJB6XOR.cjs');
|
|
29
32
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
33
|
+
require('../chunk-TMX7YFVM.cjs');
|
|
30
34
|
require('../chunk-7G2LJMUG.cjs');
|
|
31
35
|
require('../chunk-WRTEKOQP.cjs');
|
|
32
36
|
require('../chunk-SK6HQ46Q.cjs');
|
|
33
37
|
require('../chunk-HME72RFP.cjs');
|
|
38
|
+
require('../chunk-3YZKDCWY.cjs');
|
|
34
39
|
require('../chunk-C25KF2TM.cjs');
|
|
35
40
|
require('../chunk-ZU2B2RZK.cjs');
|
|
36
41
|
require('../chunk-U46OGRCO.cjs');
|
|
@@ -40,15 +45,13 @@ require('../chunk-QFSFTO7I.cjs');
|
|
|
40
45
|
require('../chunk-EVZH6Z5O.cjs');
|
|
41
46
|
require('../chunk-S237ORM3.cjs');
|
|
42
47
|
require('../chunk-II2OEXHW.cjs');
|
|
43
|
-
require('../chunk-
|
|
48
|
+
require('../chunk-UTDLO73D.cjs');
|
|
44
49
|
require('../chunk-AHDJXIUB.cjs');
|
|
45
50
|
require('../chunk-S3GVFAFB.cjs');
|
|
46
51
|
require('../chunk-IXCWZ4HC.cjs');
|
|
47
|
-
require('../chunk-VOGIYFNN.cjs');
|
|
48
|
-
require('../chunk-UDSHVNU3.cjs');
|
|
49
52
|
require('../chunk-DKY67DA6.cjs');
|
|
50
53
|
require('../chunk-ZQQVXRYZ.cjs');
|
|
51
|
-
require('../chunk-
|
|
54
|
+
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
52
55
|
require('../chunk-6UZC4XVV.cjs');
|
|
53
56
|
require('../chunk-ZVEW3JBT.cjs');
|
|
54
57
|
var chunkMHIG6GGS_cjs = require('../chunk-MHIG6GGS.cjs');
|
|
@@ -59,12 +62,9 @@ require('../chunk-FUGQ7YQW.cjs');
|
|
|
59
62
|
require('../chunk-QUMUAJ2P.cjs');
|
|
60
63
|
require('../chunk-DNHZYLPK.cjs');
|
|
61
64
|
require('../chunk-VZOOGA47.cjs');
|
|
62
|
-
require('../chunk-
|
|
63
|
-
require('../chunk-
|
|
64
|
-
require('../chunk-
|
|
65
|
-
require('../chunk-TMX7YFVM.cjs');
|
|
66
|
-
require('../chunk-3YZKDCWY.cjs');
|
|
67
|
-
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
65
|
+
require('../chunk-VOGIYFNN.cjs');
|
|
66
|
+
require('../chunk-UDSHVNU3.cjs');
|
|
67
|
+
require('../chunk-IPSHAMO2.cjs');
|
|
68
68
|
var chunkHN56WWBR_cjs = require('../chunk-HN56WWBR.cjs');
|
|
69
69
|
require('../chunk-K67VMSOX.cjs');
|
|
70
70
|
require('../chunk-CVPV4I7Z.cjs');
|
|
@@ -80,7 +80,7 @@ var documentTools = require('@arbidocs/react/document-tools');
|
|
|
80
80
|
var viewers = require('@arbidocs/react/viewers');
|
|
81
81
|
|
|
82
82
|
var PAGE_TEMPLATES = [
|
|
83
|
-
|
|
83
|
+
chunkIIAJVC3L_cjs.WORKSPACE_DASHBOARD_PAGE,
|
|
84
84
|
...chunkYSAUOJA7_cjs.DASHBOARD_TEMPLATES
|
|
85
85
|
];
|
|
86
86
|
function pageOfTemplate(template) {
|
|
@@ -1181,7 +1181,7 @@ var toRowView = (r) => ({
|
|
|
1181
1181
|
});
|
|
1182
1182
|
var toColumnView = (c) => ({
|
|
1183
1183
|
...c,
|
|
1184
|
-
type:
|
|
1184
|
+
type: chunkIIAJVC3L_cjs.kitTypeOf(c.type) ?? "text"
|
|
1185
1185
|
});
|
|
1186
1186
|
function TableViewBlock({
|
|
1187
1187
|
viewId,
|
|
@@ -1259,7 +1259,7 @@ function WithNewFileMenu({ children }) {
|
|
|
1259
1259
|
const [open, setOpen] = react$1.useState(false);
|
|
1260
1260
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1261
1261
|
children(() => setOpen(true)),
|
|
1262
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1262
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkIIAJVC3L_cjs.ConnectedNewFileMenu, { open, onOpenChange: setOpen })
|
|
1263
1263
|
] });
|
|
1264
1264
|
}
|
|
1265
1265
|
function PageBlockView({
|
|
@@ -1340,18 +1340,18 @@ function PageBlockView({
|
|
|
1340
1340
|
) });
|
|
1341
1341
|
case "list":
|
|
1342
1342
|
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: block.config.source === "documents" ? /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1343
|
-
|
|
1343
|
+
chunkIIAJVC3L_cjs.ConnectedListBlock,
|
|
1344
1344
|
{
|
|
1345
1345
|
config: block.config,
|
|
1346
1346
|
onCreateNew,
|
|
1347
1347
|
testId: testId && `${testId}-list`
|
|
1348
1348
|
}
|
|
1349
|
-
) }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1349
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkIIAJVC3L_cjs.ConnectedListBlock, { config: block.config, testId: testId && `${testId}-list` }) });
|
|
1350
1350
|
case "carousel":
|
|
1351
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1351
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkIIAJVC3L_cjs.ConnectedCarouselBlock, { config: block.config, testId: testId && `${testId}-carousel` }) });
|
|
1352
1352
|
case "agenda":
|
|
1353
1353
|
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1354
|
-
|
|
1354
|
+
chunkIIAJVC3L_cjs.ConnectedAgendaBlock,
|
|
1355
1355
|
{
|
|
1356
1356
|
config: block.config,
|
|
1357
1357
|
className: "border-0 p-0",
|
|
@@ -1359,7 +1359,7 @@ function PageBlockView({
|
|
|
1359
1359
|
}
|
|
1360
1360
|
) });
|
|
1361
1361
|
case "start":
|
|
1362
|
-
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1362
|
+
return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(chunkIIAJVC3L_cjs.ConnectedStartBlock, { onCreateNew }) }) });
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
function NewPageButton({
|
|
@@ -1615,8 +1615,8 @@ function OpenPageTransferDialog({
|
|
|
1615
1615
|
}) {
|
|
1616
1616
|
const l = { ...DEFAULT_PAGE_TRANSFER_LABELS, ...labels };
|
|
1617
1617
|
const { notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
1618
|
-
const { options, nameOf } =
|
|
1619
|
-
const trackTransfer =
|
|
1618
|
+
const { options, nameOf } = chunkIIAJVC3L_cjs.useTransferTargets();
|
|
1619
|
+
const trackTransfer = chunkIIAJVC3L_cjs.useExportStore((state) => state.trackTransfer);
|
|
1620
1620
|
const [targetId, setTargetId] = react$1.useState(null);
|
|
1621
1621
|
const [references, setReferences] = react$1.useState("link");
|
|
1622
1622
|
const [jobId, setJobId] = react$1.useState(null);
|
|
@@ -1628,7 +1628,7 @@ function OpenPageTransferDialog({
|
|
|
1628
1628
|
isFetching: isPlanning,
|
|
1629
1629
|
refetch: refetchPlan
|
|
1630
1630
|
} = react.usePlanWorkspaceTransfer(scope, mode, { enabled: !jobId });
|
|
1631
|
-
const failure =
|
|
1631
|
+
const failure = chunkIIAJVC3L_cjs.planFailure(planError);
|
|
1632
1632
|
const start = react.useStartWorkspaceTransfer();
|
|
1633
1633
|
const cancel = react.useCancelWorkspaceTransfer();
|
|
1634
1634
|
const switchToPages = react.useSwitchToWorkspacePages();
|
|
@@ -1673,7 +1673,7 @@ function OpenPageTransferDialog({
|
|
|
1673
1673
|
if (!jobId) {
|
|
1674
1674
|
body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1675
1675
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1676
|
-
|
|
1676
|
+
chunkCUYELFKB_cjs.ExportWorkspacePicker,
|
|
1677
1677
|
{
|
|
1678
1678
|
workspaces: options,
|
|
1679
1679
|
selectedId: targetId,
|
|
@@ -1682,7 +1682,7 @@ function OpenPageTransferDialog({
|
|
|
1682
1682
|
}
|
|
1683
1683
|
),
|
|
1684
1684
|
documents > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1685
|
-
|
|
1685
|
+
chunkCUYELFKB_cjs.TransferReferencesChooser,
|
|
1686
1686
|
{
|
|
1687
1687
|
value: references,
|
|
1688
1688
|
onChange: setReferences,
|
|
@@ -1696,7 +1696,7 @@ function OpenPageTransferDialog({
|
|
|
1696
1696
|
),
|
|
1697
1697
|
views > 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pt-2 text-sm text-muted-foreground", "data-testid": `${testId}-views`, children: l.viewsStay(views) }),
|
|
1698
1698
|
failure && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1699
|
-
|
|
1699
|
+
chunkCUYELFKB_cjs.TransferPlanError,
|
|
1700
1700
|
{
|
|
1701
1701
|
detail: typeof failure === "string" ? failure : void 0,
|
|
1702
1702
|
onRetry: () => void refetchPlan(),
|
|
@@ -1730,7 +1730,7 @@ function OpenPageTransferDialog({
|
|
|
1730
1730
|
] });
|
|
1731
1731
|
} else if (!finished || !items) {
|
|
1732
1732
|
body = job ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1733
|
-
|
|
1733
|
+
chunkCUYELFKB_cjs.TransferProgressView,
|
|
1734
1734
|
{
|
|
1735
1735
|
title: l.progress(mode, target),
|
|
1736
1736
|
processed: job.processed ?? 0,
|
|
@@ -28,6 +28,8 @@ export interface IdentityVerificationLabels {
|
|
|
28
28
|
checkResult: string;
|
|
29
29
|
resultVerified: string;
|
|
30
30
|
resultDeclined: (attemptsLeft: number) => string;
|
|
31
|
+
/** Declined where the check is free: trying again costs nothing. */
|
|
32
|
+
resultDeclinedFree: string;
|
|
31
33
|
tryAgain: string;
|
|
32
34
|
resultInReview: string;
|
|
33
35
|
nameMismatchTitle: string;
|
|
@@ -32,6 +32,7 @@ const DEFAULT_IDENTITY_VERIFICATION_LABELS = {
|
|
|
32
32
|
checkResult: "I\u2019ve finished",
|
|
33
33
|
resultVerified: "You\u2019re verified. The tick now shows next to your name.",
|
|
34
34
|
resultDeclined: (n) => n > 0 ? `We couldn\u2019t verify your ID. You have ${n} attempt${n === 1 ? "" : "s"} left.` : "We couldn\u2019t verify your ID and no attempts are left.",
|
|
35
|
+
resultDeclinedFree: "We couldn\u2019t verify your ID. You can try again.",
|
|
35
36
|
tryAgain: "Try again",
|
|
36
37
|
resultInReview: "Your check needs a manual review. We\u2019ll show the result here when it\u2019s done.",
|
|
37
38
|
nameMismatchTitle: "Your ID was verified",
|
|
@@ -85,7 +86,7 @@ function IdentityVerificationCard({
|
|
|
85
86
|
] })
|
|
86
87
|
] });
|
|
87
88
|
action = /* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", onClick: flow.remove, disabled: busy, children: l.remove });
|
|
88
|
-
} else if (!status.eligible) {
|
|
89
|
+
} else if (!status.eligible && !status.free) {
|
|
89
90
|
description = `${l.intro} ${l.proOnly}`;
|
|
90
91
|
action = onManageBilling ? /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", onClick: onManageBilling, children: l.seePlans }) : null;
|
|
91
92
|
} else if (status.state === "in_review") {
|
|
@@ -95,14 +96,15 @@ function IdentityVerificationCard({
|
|
|
95
96
|
action = /* @__PURE__ */ jsx(Button, { size: "sm", onClick: flow.open, children: l.finish });
|
|
96
97
|
} else {
|
|
97
98
|
const resuming = status.attempts_left > 0 || status.state === "in_progress";
|
|
99
|
+
const detail = status.free ? null : resuming ? l.attemptsLeft(status.attempts_left) : l.priceLine(flow.price ?? "", status.attempts_per_fee);
|
|
98
100
|
description = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
99
101
|
l.intro,
|
|
100
102
|
" ",
|
|
101
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children:
|
|
103
|
+
detail && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: detail })
|
|
102
104
|
] });
|
|
103
105
|
action = /* @__PURE__ */ jsxs(Button, { size: "sm", onClick: flow.open, disabled: busy, children: [
|
|
104
106
|
/* @__PURE__ */ jsx(ShieldCheck, { className: "mr-1 h-4 w-4" }),
|
|
105
|
-
resuming ? l.continue : l.verify
|
|
107
|
+
resuming && !status.free ? l.continue : l.verify
|
|
106
108
|
] });
|
|
107
109
|
}
|
|
108
110
|
const card = /* @__PURE__ */ jsxs(SettingsCard, { padding: "sm", "data-testid": "identity-verification-card", children: [
|
|
@@ -162,6 +164,7 @@ function IdentityVerificationDialog({
|
|
|
162
164
|
/* @__PURE__ */ jsx(ExternalLink, { className: "mr-1 h-4 w-4" }),
|
|
163
165
|
l.openInNewTab
|
|
164
166
|
] }),
|
|
167
|
+
status?.free && flow.problem && flow.busy === null && /* @__PURE__ */ jsx(Button, { onClick: flow.retry, "data-testid": "identity-start-retry", children: l.tryAgain }),
|
|
165
168
|
/* @__PURE__ */ jsxs(Button, { variant: "ghost", onClick: flow.checkResult, disabled: flow.busy !== null, children: [
|
|
166
169
|
flow.busy === "refresh" && spinner,
|
|
167
170
|
l.checkResult
|
|
@@ -195,8 +198,8 @@ function IdentityVerificationDialog({
|
|
|
195
198
|
footer = /* @__PURE__ */ jsx(Button, { onClick: flow.close, children: l.close });
|
|
196
199
|
} else {
|
|
197
200
|
const left = status?.attempts_left ?? 0;
|
|
198
|
-
body = /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: l.resultDeclined(left) });
|
|
199
|
-
footer = left > 0 ? /* @__PURE__ */ jsx(Button, { onClick: flow.retry, disabled: flow.busy !== null, children: l.tryAgain }) : /* @__PURE__ */ jsx(Button, { onClick: flow.close, children: l.close });
|
|
201
|
+
body = /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: status?.free ? l.resultDeclinedFree : l.resultDeclined(left) });
|
|
202
|
+
footer = left > 0 || status?.free ? /* @__PURE__ */ jsx(Button, { onClick: flow.retry, disabled: flow.busy !== null, children: l.tryAgain }) : /* @__PURE__ */ jsx(Button, { onClick: flow.close, children: l.close });
|
|
200
203
|
}
|
|
201
204
|
const title = status?.state === "name_mismatch" && flow.step === "result" ? l.nameMismatchTitle : flow.step === "verify" ? l.verifyTitle : l.payTitle;
|
|
202
205
|
return /* @__PURE__ */ jsxs(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/settings/IdentityVerification.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * Identity verification blocks: the settings card, the dialog (pay \u2192 verify in Didit's frame \u2192\n * result) and a gate for deployments that require it. All take the `IdentityVerificationFlow` from\n * `@arbidocs/react` (`useIdentityVerification` with a provider, or `useIdentityVerificationFlow`\n * bound to a host's own API), so they work the same inside ARBI and on a customer's site.\n */\nimport { useMemo, type ReactNode } from 'react'\nimport { ExternalLink, Loader2, ShieldCheck } from 'lucide-react'\nimport { Button, VerifiedBadge, type IdentityVerificationFlow } from '@arbidocs/react/ui'\nimport { ModalScaffold } from './ModalScaffold'\nimport { SettingsCard, SettingsDisclosure, SettingsRow } from './SettingsPanel'\n\n/** Every fixed string of the identity verification blocks. */\nexport interface IdentityVerificationLabels {\n title: string\n intro: string\n /** \"\u00A35.00 incl. VAT \u00B7 3 attempts\" (`price` comes formatted, VAT note included). */\n priceLine: (price: string, attempts: number) => string\n proOnly: string\n seePlans: string\n manageBilling: string\n verify: string\n continue: string\n attemptsLeft: (n: number) => string\n verified: string\n verifiedDetail: (country: string) => string\n inReview: string\n finishName: string\n finish: string\n remove: string\n payTitle: string\n payBody: (price: string, attempts: number) => string\n pay: string\n confirmPayment: string\n paymentConfirmed: string\n verifyTitle: string\n embedFailed: string\n openInNewTab: string\n checkResult: string\n resultVerified: string\n resultDeclined: (attemptsLeft: number) => string\n tryAgain: string\n resultInReview: string\n nameMismatchTitle: string\n nameMismatchBody: string\n documentName: string\n accountName: string\n useDocumentName: (name: string) => string\n keepName: string\n close: string\n}\n\nexport const DEFAULT_IDENTITY_VERIFICATION_LABELS: IdentityVerificationLabels = {\n title: 'Identity verification',\n intro: 'Check your ID once to get a verified tick next to your name.',\n priceLine: (price, attempts) => `${price} \u00B7 ${attempts} attempts`,\n proOnly: 'Available on Pro subscriptions.',\n seePlans: 'See subscriptions',\n manageBilling: 'Manage billing',\n verify: 'Verify identity',\n continue: 'Continue',\n attemptsLeft: (n) => `${n} attempt${n === 1 ? '' : 's'} left`,\n verified: 'Verified',\n verifiedDetail: (country) => `ID issued in ${country}`,\n inReview: 'Your check is being reviewed. We\u2019ll update this when it\u2019s done.',\n finishName: 'Your ID was verified. Confirm your name to get the tick.',\n finish: 'Finish',\n remove: 'Remove',\n payTitle: 'Verify your identity',\n payBody: (price, attempts) =>\n `A one-time fee of ${price} is charged to the card on your Pro subscription. It covers up to ${attempts} attempts. Your ID is checked by our provider, Didit; ARBI does not keep your document.`,\n pay: 'Pay and continue',\n confirmPayment: 'Confirm payment with your bank',\n paymentConfirmed: 'I\u2019ve confirmed it',\n verifyTitle: 'Scan your ID',\n embedFailed: 'Your camera isn\u2019t available here. Continue in a new tab, then come back.',\n openInNewTab: 'Open in a new tab',\n checkResult: 'I\u2019ve finished',\n resultVerified: 'You\u2019re verified. The tick now shows next to your name.',\n resultDeclined: (n) =>\n n > 0\n ? `We couldn\u2019t verify your ID. You have ${n} attempt${n === 1 ? '' : 's'} left.`\n : 'We couldn\u2019t verify your ID and no attempts are left.',\n tryAgain: 'Try again',\n resultInReview: 'Your check needs a manual review. We\u2019ll show the result here when it\u2019s done.',\n nameMismatchTitle: 'Your ID was verified',\n nameMismatchBody:\n 'The name on your ID differs from your account name. The tick shows only with the name on your ID.',\n documentName: 'Name on your ID',\n accountName: 'Account name',\n useDocumentName: (name) => `Change my name to ${name}`,\n keepName: 'Keep my name',\n close: 'Close',\n}\n\nfunction useLabels(labels?: Partial<IdentityVerificationLabels>) {\n return useMemo(() => ({ ...DEFAULT_IDENTITY_VERIFICATION_LABELS, ...labels }), [labels])\n}\n\n/** Refusals the user fixes in billing (plan, card, address). */\nconst BILLING_CODES = [\n 'PRO_REQUIRED',\n 'PAYMENT_METHOD_REQUIRED',\n 'BILLING_ADDRESS_REQUIRED',\n 'PAYMENT_DECLINED',\n]\n\nfunction Problem({\n flow,\n onManageBilling,\n label,\n}: {\n flow: IdentityVerificationFlow\n onManageBilling?: () => void\n label: string\n}) {\n if (!flow.problem) return null\n const billing = onManageBilling && BILLING_CODES.includes(flow.problem.code ?? '')\n return (\n <div className=\"flex flex-wrap items-center gap-2\" data-testid=\"identity-problem\">\n <p role=\"alert\" className=\"text-sm text-destructive\">\n {flow.problem.message}\n </p>\n {billing && (\n <Button size=\"sm\" variant=\"outline\" onClick={onManageBilling}>\n {label}\n </Button>\n )}\n </div>\n )\n}\n\n// \u2500\u2500 Card \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nexport interface IdentityVerificationCardProps {\n /** Secondary account settings start closed; payment and verification remain explicit actions. */\n collapsible?: boolean\n flow: IdentityVerificationFlow\n /** Open the host's plans / billing (upgrade to Pro, fix the card or address). */\n onManageBilling?: () => void\n labels?: Partial<IdentityVerificationLabels>\n}\n\n/** Settings row for the ID check: offer, progress, or the tick. Renders nothing when not offered. */\nexport function IdentityVerificationCard({\n collapsible = false,\n flow,\n onManageBilling,\n labels,\n}: IdentityVerificationCardProps) {\n const l = useLabels(labels)\n const { status } = flow\n if (!status?.enabled) return null\n const busy = flow.busy !== null\n\n let description: ReactNode\n let action: ReactNode = null\n if (status.verified) {\n description = (\n <span className=\"inline-flex items-center gap-1.5\">\n <VerifiedBadge />\n {l.verified}\n {status.document_country && (\n <span className=\"text-muted-foreground\">\n {' \u00B7 '}\n {l.verifiedDetail(status.document_country)}\n </span>\n )}\n </span>\n )\n action = (\n <Button size=\"sm\" variant=\"ghost\" onClick={flow.remove} disabled={busy}>\n {l.remove}\n </Button>\n )\n } else if (!status.eligible) {\n description = `${l.intro} ${l.proOnly}`\n action = onManageBilling ? (\n <Button size=\"sm\" variant=\"outline\" onClick={onManageBilling}>\n {l.seePlans}\n </Button>\n ) : null\n } else if (status.state === 'in_review') {\n description = l.inReview\n } else if (status.state === 'name_mismatch') {\n description = l.finishName\n action = (\n <Button size=\"sm\" onClick={flow.open}>\n {l.finish}\n </Button>\n )\n } else {\n const resuming = status.attempts_left > 0 || status.state === 'in_progress'\n description = (\n <>\n {l.intro}{' '}\n <span className=\"text-muted-foreground\">\n {resuming\n ? l.attemptsLeft(status.attempts_left)\n : l.priceLine(flow.price ?? '', status.attempts_per_fee)}\n </span>\n </>\n )\n action = (\n <Button size=\"sm\" onClick={flow.open} disabled={busy}>\n <ShieldCheck className=\"mr-1 h-4 w-4\" />\n {resuming ? l.continue : l.verify}\n </Button>\n )\n }\n\n const card = (\n <SettingsCard padding=\"sm\" data-testid=\"identity-verification-card\">\n <SettingsRow label={collapsible ? null : l.title} description={description}>\n {action}\n </SettingsRow>\n {!flow.isOpen && (\n <Problem flow={flow} onManageBilling={onManageBilling} label={l.manageBilling} />\n )}\n </SettingsCard>\n )\n return collapsible ? (\n <SettingsDisclosure title={l.title} testId=\"identity-verification-settings\">\n {card}\n </SettingsDisclosure>\n ) : (\n card\n )\n}\n\n// \u2500\u2500 Dialog \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nexport interface IdentityVerificationDialogProps {\n flow: IdentityVerificationFlow\n /** The account name as shown, compared with the name on the document. */\n accountName: string\n /** Allow closing; false blocks it. Default true. */\n dismissible?: boolean\n /** Open the host's billing to fix a refused payment (plan, card, address). */\n onManageBilling?: () => void\n labels?: Partial<IdentityVerificationLabels>\n}\n\n/** The verification dialog: pay the fee, verify in Didit's embedded frame, then the result. */\nexport function IdentityVerificationDialog({\n flow,\n accountName,\n dismissible = true,\n onManageBilling,\n labels,\n}: IdentityVerificationDialogProps) {\n const l = useLabels(labels)\n const { status } = flow\n const attempts = status?.attempts_per_fee ?? 0\n const docName = [status?.document_given_name, status?.document_family_name]\n .filter(Boolean)\n .join(' ')\n const spinner = <Loader2 className=\"mr-1 h-4 w-4 animate-spin\" />\n\n let body: ReactNode\n let footer: ReactNode = null\n if (flow.step === 'pay') {\n body = flow.paymentUrl ? (\n <a\n href={flow.paymentUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline\"\n >\n {l.confirmPayment}\n <ExternalLink className=\"h-3.5 w-3.5\" />\n </a>\n ) : (\n <p className=\"text-sm text-muted-foreground\">{l.payBody(flow.price ?? '', attempts)}</p>\n )\n footer = flow.paymentUrl ? (\n <Button onClick={flow.recheckPayment} disabled={flow.busy !== null}>\n {flow.busy === 'start' && spinner}\n {l.paymentConfirmed}\n </Button>\n ) : (\n <Button onClick={flow.pay} disabled={flow.busy !== null} data-testid=\"identity-pay\">\n {flow.busy === 'pay' && spinner}\n {l.pay}\n </Button>\n )\n } else if (flow.step === 'verify') {\n body = (\n <div className=\"space-y-3\">\n {flow.embedFailed ? (\n <p className=\"text-sm text-muted-foreground\">{l.embedFailed}</p>\n ) : (\n <div\n id={flow.verifyContainerId}\n ref={flow.verifyContainerRef}\n className=\"h-[560px] w-full overflow-hidden rounded-md bg-muted\"\n data-testid=\"identity-didit-frame\"\n >\n {flow.busy === 'start' && (\n <div className=\"flex h-full items-center justify-center\">\n <Loader2 className=\"h-6 w-6 animate-spin text-muted-foreground\" />\n </div>\n )}\n </div>\n )}\n </div>\n )\n footer = (\n <>\n {flow.embedFailed && (\n <Button variant=\"outline\" onClick={flow.openInNewTab}>\n <ExternalLink className=\"mr-1 h-4 w-4\" />\n {l.openInNewTab}\n </Button>\n )}\n <Button variant=\"ghost\" onClick={flow.checkResult} disabled={flow.busy !== null}>\n {flow.busy === 'refresh' && spinner}\n {l.checkResult}\n </Button>\n </>\n )\n } else if (status?.state === 'name_mismatch') {\n body = (\n <div className=\"space-y-3\" data-testid=\"identity-name-mismatch\">\n <p className=\"text-sm text-muted-foreground\">{l.nameMismatchBody}</p>\n <dl className=\"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-sm\">\n <dt className=\"text-muted-foreground\">{l.documentName}</dt>\n <dd className=\"font-medium\">{docName}</dd>\n <dt className=\"text-muted-foreground\">{l.accountName}</dt>\n <dd>{accountName}</dd>\n </dl>\n </div>\n )\n footer = (\n <>\n <Button variant=\"ghost\" onClick={flow.keepName} disabled={flow.busy !== null}>\n {l.keepName}\n </Button>\n <Button onClick={flow.acceptName} disabled={flow.busy !== null || !docName}>\n {flow.busy === 'accept' && spinner}\n {l.useDocumentName(docName)}\n </Button>\n </>\n )\n } else if (status?.verified) {\n body = (\n <p className=\"flex items-center gap-2 text-sm\">\n <VerifiedBadge className=\"h-4 w-4\" />\n {l.resultVerified}\n </p>\n )\n footer = <Button onClick={flow.close}>{l.close}</Button>\n } else if (status?.state === 'in_review') {\n body = <p className=\"text-sm text-muted-foreground\">{l.resultInReview}</p>\n footer = <Button onClick={flow.close}>{l.close}</Button>\n } else {\n const left = status?.attempts_left ?? 0\n body = <p className=\"text-sm text-muted-foreground\">{l.resultDeclined(left)}</p>\n footer =\n left > 0 ? (\n <Button onClick={flow.retry} disabled={flow.busy !== null}>\n {l.tryAgain}\n </Button>\n ) : (\n <Button onClick={flow.close}>{l.close}</Button>\n )\n }\n\n const title =\n status?.state === 'name_mismatch' && flow.step === 'result'\n ? l.nameMismatchTitle\n : flow.step === 'verify'\n ? l.verifyTitle\n : l.payTitle\n return (\n <ModalScaffold\n open={flow.isOpen}\n onOpenChange={(open) => (open ? flow.open() : flow.close())}\n title={title}\n icon={<ShieldCheck className=\"h-5 w-5\" />}\n size={flow.step === 'verify' ? 'lg' : 'md'}\n dismissible={dismissible}\n testId=\"identity-verification-dialog\"\n >\n <ModalScaffold.Body>\n {body}\n <Problem flow={flow} onManageBilling={onManageBilling} label={l.manageBilling} />\n </ModalScaffold.Body>\n <ModalScaffold.Footer>{footer}</ModalScaffold.Footer>\n </ModalScaffold>\n )\n}\n"],
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["/**\n * Identity verification blocks: the settings card, the dialog (pay \u2192 verify in Didit's frame \u2192\n * result) and a gate for deployments that require it. All take the `IdentityVerificationFlow` from\n * `@arbidocs/react` (`useIdentityVerification` with a provider, or `useIdentityVerificationFlow`\n * bound to a host's own API), so they work the same inside ARBI and on a customer's site.\n */\nimport { useMemo, type ReactNode } from 'react'\nimport { ExternalLink, Loader2, ShieldCheck } from 'lucide-react'\nimport { Button, VerifiedBadge, type IdentityVerificationFlow } from '@arbidocs/react/ui'\nimport { ModalScaffold } from './ModalScaffold'\nimport { SettingsCard, SettingsDisclosure, SettingsRow } from './SettingsPanel'\n\n/** Every fixed string of the identity verification blocks. */\nexport interface IdentityVerificationLabels {\n title: string\n intro: string\n /** \"\u00A35.00 incl. VAT \u00B7 3 attempts\" (`price` comes formatted, VAT note included). */\n priceLine: (price: string, attempts: number) => string\n proOnly: string\n seePlans: string\n manageBilling: string\n verify: string\n continue: string\n attemptsLeft: (n: number) => string\n verified: string\n verifiedDetail: (country: string) => string\n inReview: string\n finishName: string\n finish: string\n remove: string\n payTitle: string\n payBody: (price: string, attempts: number) => string\n pay: string\n confirmPayment: string\n paymentConfirmed: string\n verifyTitle: string\n embedFailed: string\n openInNewTab: string\n checkResult: string\n resultVerified: string\n resultDeclined: (attemptsLeft: number) => string\n /** Declined where the check is free: trying again costs nothing. */\n resultDeclinedFree: string\n tryAgain: string\n resultInReview: string\n nameMismatchTitle: string\n nameMismatchBody: string\n documentName: string\n accountName: string\n useDocumentName: (name: string) => string\n keepName: string\n close: string\n}\n\nexport const DEFAULT_IDENTITY_VERIFICATION_LABELS: IdentityVerificationLabels = {\n title: 'Identity verification',\n intro: 'Check your ID once to get a verified tick next to your name.',\n priceLine: (price, attempts) => `${price} \u00B7 ${attempts} attempts`,\n proOnly: 'Available on Pro subscriptions.',\n seePlans: 'See subscriptions',\n manageBilling: 'Manage billing',\n verify: 'Verify identity',\n continue: 'Continue',\n attemptsLeft: (n) => `${n} attempt${n === 1 ? '' : 's'} left`,\n verified: 'Verified',\n verifiedDetail: (country) => `ID issued in ${country}`,\n inReview: 'Your check is being reviewed. We\u2019ll update this when it\u2019s done.',\n finishName: 'Your ID was verified. Confirm your name to get the tick.',\n finish: 'Finish',\n remove: 'Remove',\n payTitle: 'Verify your identity',\n payBody: (price, attempts) =>\n `A one-time fee of ${price} is charged to the card on your Pro subscription. It covers up to ${attempts} attempts. Your ID is checked by our provider, Didit; ARBI does not keep your document.`,\n pay: 'Pay and continue',\n confirmPayment: 'Confirm payment with your bank',\n paymentConfirmed: 'I\u2019ve confirmed it',\n verifyTitle: 'Scan your ID',\n embedFailed: 'Your camera isn\u2019t available here. Continue in a new tab, then come back.',\n openInNewTab: 'Open in a new tab',\n checkResult: 'I\u2019ve finished',\n resultVerified: 'You\u2019re verified. The tick now shows next to your name.',\n resultDeclined: (n) =>\n n > 0\n ? `We couldn\u2019t verify your ID. You have ${n} attempt${n === 1 ? '' : 's'} left.`\n : 'We couldn\u2019t verify your ID and no attempts are left.',\n resultDeclinedFree: 'We couldn\u2019t verify your ID. You can try again.',\n tryAgain: 'Try again',\n resultInReview: 'Your check needs a manual review. We\u2019ll show the result here when it\u2019s done.',\n nameMismatchTitle: 'Your ID was verified',\n nameMismatchBody:\n 'The name on your ID differs from your account name. The tick shows only with the name on your ID.',\n documentName: 'Name on your ID',\n accountName: 'Account name',\n useDocumentName: (name) => `Change my name to ${name}`,\n keepName: 'Keep my name',\n close: 'Close',\n}\n\nfunction useLabels(labels?: Partial<IdentityVerificationLabels>) {\n return useMemo(() => ({ ...DEFAULT_IDENTITY_VERIFICATION_LABELS, ...labels }), [labels])\n}\n\n/** Refusals the user fixes in billing (plan, card, address). */\nconst BILLING_CODES = [\n 'PRO_REQUIRED',\n 'PAYMENT_METHOD_REQUIRED',\n 'BILLING_ADDRESS_REQUIRED',\n 'PAYMENT_DECLINED',\n]\n\nfunction Problem({\n flow,\n onManageBilling,\n label,\n}: {\n flow: IdentityVerificationFlow\n onManageBilling?: () => void\n label: string\n}) {\n if (!flow.problem) return null\n const billing = onManageBilling && BILLING_CODES.includes(flow.problem.code ?? '')\n return (\n <div className=\"flex flex-wrap items-center gap-2\" data-testid=\"identity-problem\">\n <p role=\"alert\" className=\"text-sm text-destructive\">\n {flow.problem.message}\n </p>\n {billing && (\n <Button size=\"sm\" variant=\"outline\" onClick={onManageBilling}>\n {label}\n </Button>\n )}\n </div>\n )\n}\n\n// \u2500\u2500 Card \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nexport interface IdentityVerificationCardProps {\n /** Secondary account settings start closed; payment and verification remain explicit actions. */\n collapsible?: boolean\n flow: IdentityVerificationFlow\n /** Open the host's plans / billing (upgrade to Pro, fix the card or address). */\n onManageBilling?: () => void\n labels?: Partial<IdentityVerificationLabels>\n}\n\n/** Settings row for the ID check: offer, progress, or the tick. Renders nothing when not offered. */\nexport function IdentityVerificationCard({\n collapsible = false,\n flow,\n onManageBilling,\n labels,\n}: IdentityVerificationCardProps) {\n const l = useLabels(labels)\n const { status } = flow\n if (!status?.enabled) return null\n const busy = flow.busy !== null\n\n let description: ReactNode\n let action: ReactNode = null\n if (status.verified) {\n description = (\n <span className=\"inline-flex items-center gap-1.5\">\n <VerifiedBadge />\n {l.verified}\n {status.document_country && (\n <span className=\"text-muted-foreground\">\n {' \u00B7 '}\n {l.verifiedDetail(status.document_country)}\n </span>\n )}\n </span>\n )\n action = (\n <Button size=\"sm\" variant=\"ghost\" onClick={flow.remove} disabled={busy}>\n {l.remove}\n </Button>\n )\n } else if (!status.eligible && !status.free) {\n description = `${l.intro} ${l.proOnly}`\n action = onManageBilling ? (\n <Button size=\"sm\" variant=\"outline\" onClick={onManageBilling}>\n {l.seePlans}\n </Button>\n ) : null\n } else if (status.state === 'in_review') {\n description = l.inReview\n } else if (status.state === 'name_mismatch') {\n description = l.finishName\n action = (\n <Button size=\"sm\" onClick={flow.open}>\n {l.finish}\n </Button>\n )\n } else {\n const resuming = status.attempts_left > 0 || status.state === 'in_progress'\n // Where the check is free there is no fee and no attempt count to show.\n const detail = status.free\n ? null\n : resuming\n ? l.attemptsLeft(status.attempts_left)\n : l.priceLine(flow.price ?? '', status.attempts_per_fee)\n description = (\n <>\n {l.intro} {detail && <span className=\"text-muted-foreground\">{detail}</span>}\n </>\n )\n action = (\n <Button size=\"sm\" onClick={flow.open} disabled={busy}>\n <ShieldCheck className=\"mr-1 h-4 w-4\" />\n {resuming && !status.free ? l.continue : l.verify}\n </Button>\n )\n }\n\n const card = (\n <SettingsCard padding=\"sm\" data-testid=\"identity-verification-card\">\n <SettingsRow label={collapsible ? null : l.title} description={description}>\n {action}\n </SettingsRow>\n {!flow.isOpen && (\n <Problem flow={flow} onManageBilling={onManageBilling} label={l.manageBilling} />\n )}\n </SettingsCard>\n )\n return collapsible ? (\n <SettingsDisclosure title={l.title} testId=\"identity-verification-settings\">\n {card}\n </SettingsDisclosure>\n ) : (\n card\n )\n}\n\n// \u2500\u2500 Dialog \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\nexport interface IdentityVerificationDialogProps {\n flow: IdentityVerificationFlow\n /** The account name as shown, compared with the name on the document. */\n accountName: string\n /** Allow closing; false blocks it. Default true. */\n dismissible?: boolean\n /** Open the host's billing to fix a refused payment (plan, card, address). */\n onManageBilling?: () => void\n labels?: Partial<IdentityVerificationLabels>\n}\n\n/** The verification dialog: pay the fee, verify in Didit's embedded frame, then the result. */\nexport function IdentityVerificationDialog({\n flow,\n accountName,\n dismissible = true,\n onManageBilling,\n labels,\n}: IdentityVerificationDialogProps) {\n const l = useLabels(labels)\n const { status } = flow\n const attempts = status?.attempts_per_fee ?? 0\n const docName = [status?.document_given_name, status?.document_family_name]\n .filter(Boolean)\n .join(' ')\n const spinner = <Loader2 className=\"mr-1 h-4 w-4 animate-spin\" />\n\n let body: ReactNode\n let footer: ReactNode = null\n if (flow.step === 'pay') {\n body = flow.paymentUrl ? (\n <a\n href={flow.paymentUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline\"\n >\n {l.confirmPayment}\n <ExternalLink className=\"h-3.5 w-3.5\" />\n </a>\n ) : (\n <p className=\"text-sm text-muted-foreground\">{l.payBody(flow.price ?? '', attempts)}</p>\n )\n footer = flow.paymentUrl ? (\n <Button onClick={flow.recheckPayment} disabled={flow.busy !== null}>\n {flow.busy === 'start' && spinner}\n {l.paymentConfirmed}\n </Button>\n ) : (\n <Button onClick={flow.pay} disabled={flow.busy !== null} data-testid=\"identity-pay\">\n {flow.busy === 'pay' && spinner}\n {l.pay}\n </Button>\n )\n } else if (flow.step === 'verify') {\n body = (\n <div className=\"space-y-3\">\n {flow.embedFailed ? (\n <p className=\"text-sm text-muted-foreground\">{l.embedFailed}</p>\n ) : (\n <div\n id={flow.verifyContainerId}\n ref={flow.verifyContainerRef}\n className=\"h-[560px] w-full overflow-hidden rounded-md bg-muted\"\n data-testid=\"identity-didit-frame\"\n >\n {flow.busy === 'start' && (\n <div className=\"flex h-full items-center justify-center\">\n <Loader2 className=\"h-6 w-6 animate-spin text-muted-foreground\" />\n </div>\n )}\n </div>\n )}\n </div>\n )\n footer = (\n <>\n {flow.embedFailed && (\n <Button variant=\"outline\" onClick={flow.openInNewTab}>\n <ExternalLink className=\"mr-1 h-4 w-4\" />\n {l.openInNewTab}\n </Button>\n )}\n {status?.free && flow.problem && flow.busy === null && (\n <Button onClick={flow.retry} data-testid=\"identity-start-retry\">\n {l.tryAgain}\n </Button>\n )}\n <Button variant=\"ghost\" onClick={flow.checkResult} disabled={flow.busy !== null}>\n {flow.busy === 'refresh' && spinner}\n {l.checkResult}\n </Button>\n </>\n )\n } else if (status?.state === 'name_mismatch') {\n body = (\n <div className=\"space-y-3\" data-testid=\"identity-name-mismatch\">\n <p className=\"text-sm text-muted-foreground\">{l.nameMismatchBody}</p>\n <dl className=\"grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-sm\">\n <dt className=\"text-muted-foreground\">{l.documentName}</dt>\n <dd className=\"font-medium\">{docName}</dd>\n <dt className=\"text-muted-foreground\">{l.accountName}</dt>\n <dd>{accountName}</dd>\n </dl>\n </div>\n )\n footer = (\n <>\n <Button variant=\"ghost\" onClick={flow.keepName} disabled={flow.busy !== null}>\n {l.keepName}\n </Button>\n <Button onClick={flow.acceptName} disabled={flow.busy !== null || !docName}>\n {flow.busy === 'accept' && spinner}\n {l.useDocumentName(docName)}\n </Button>\n </>\n )\n } else if (status?.verified) {\n body = (\n <p className=\"flex items-center gap-2 text-sm\">\n <VerifiedBadge className=\"h-4 w-4\" />\n {l.resultVerified}\n </p>\n )\n footer = <Button onClick={flow.close}>{l.close}</Button>\n } else if (status?.state === 'in_review') {\n body = <p className=\"text-sm text-muted-foreground\">{l.resultInReview}</p>\n footer = <Button onClick={flow.close}>{l.close}</Button>\n } else {\n const left = status?.attempts_left ?? 0\n body = (\n <p className=\"text-sm text-muted-foreground\">\n {status?.free ? l.resultDeclinedFree : l.resultDeclined(left)}\n </p>\n )\n footer =\n left > 0 || status?.free ? (\n <Button onClick={flow.retry} disabled={flow.busy !== null}>\n {l.tryAgain}\n </Button>\n ) : (\n <Button onClick={flow.close}>{l.close}</Button>\n )\n }\n\n const title =\n status?.state === 'name_mismatch' && flow.step === 'result'\n ? l.nameMismatchTitle\n : flow.step === 'verify'\n ? l.verifyTitle\n : l.payTitle\n return (\n <ModalScaffold\n open={flow.isOpen}\n onOpenChange={(open) => (open ? flow.open() : flow.close())}\n title={title}\n icon={<ShieldCheck className=\"h-5 w-5\" />}\n size={flow.step === 'verify' ? 'lg' : 'md'}\n dismissible={dismissible}\n testId=\"identity-verification-dialog\"\n >\n <ModalScaffold.Body>\n {body}\n <Problem flow={flow} onManageBilling={onManageBilling} label={l.manageBilling} />\n </ModalScaffold.Body>\n <ModalScaffold.Footer>{footer}</ModalScaffold.Footer>\n </ModalScaffold>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AA0HI,SAiFE,UAhFA,KADF;AApHJ,SAAS,eAA+B;AACxC,SAAS,cAAc,SAAS,mBAAmB;AACnD,SAAS,QAAQ,qBAAoD;AACrE,SAAS,qBAAqB;AAC9B,SAAS,cAAc,oBAAoB,mBAAmB;AA4CvD,MAAM,uCAAmE;AAAA,EAC9E,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW,CAAC,OAAO,aAAa,GAAG,KAAK,SAAM,QAAQ;AAAA,EACtD,SAAS;AAAA,EACT,UAAU;AAAA,EACV,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc,CAAC,MAAM,GAAG,CAAC,WAAW,MAAM,IAAI,KAAK,GAAG;AAAA,EACtD,UAAU;AAAA,EACV,gBAAgB,CAAC,YAAY,gBAAgB,OAAO;AAAA,EACpD,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA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