@tsocial/tvweb-sdk.platform 5.36.0 → 5.38.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/build/esm/{chunk-eea8c6e6.js → chunk-1112d165.js} +1 -1
- package/build/esm/{chunk-44240957.js → chunk-3651423b.js} +1 -1
- package/build/esm/{chunk-3fc64163.js → chunk-37ce53f0.js} +1 -1
- package/build/esm/{chunk-a37a1269.js → chunk-3bcee399.js} +13 -13
- package/build/esm/{chunk-390ea2aa.js → chunk-56594045.js} +1 -1
- package/build/esm/{chunk-1bd57581.js → chunk-5bf40c32.js} +2 -2
- package/build/esm/{chunk-7c980e08.js → chunk-5c8a597a.js} +1 -1
- package/build/esm/{chunk-b39a7ba9.js → chunk-6403a363.js} +1 -1
- package/build/esm/{chunk-5544ce07.js → chunk-6a1588d6.js} +1 -1
- package/build/esm/{chunk-c298ad04.js → chunk-9dc0cea1.js} +1 -1
- package/build/esm/{chunk-e468b8ce.js → chunk-a0e4f0a1.js} +5 -5
- package/build/esm/{chunk-ce4fbdae.js → chunk-a29458dd.js} +1 -1
- package/build/esm/{chunk-fdbce3d2.js → chunk-ace19f26.js} +1 -1
- package/build/esm/chunk-ba374b19.js +1 -0
- package/build/esm/{chunk-58f60271.js → chunk-c2460656.js} +2 -2
- package/build/esm/chunk-cd682b2a.js +483 -0
- package/build/esm/{chunk-41c1d4f2.js → chunk-d7eaf08c.js} +1 -1
- package/build/esm/{chunk-989d36e3.js → chunk-e3a6d0e1.js} +1 -1
- package/build/esm/chunk-ea24344b.js +1176 -0
- package/build/esm/{chunk-e1ce62d6.js → chunk-ea3e887a.js} +1 -1
- package/build/esm/chunk-f5771baf.js +1 -0
- package/build/esm/{chunk-dad8ede3.js → chunk-f8c82e58.js} +1 -1
- package/build/esm/tvweb-sdk.platform.esm.min.js +1 -1
- package/build/tvweb-sdk.platform.cjs.min.js +796 -686
- package/build/tvweb-sdk.platform.standalone.js +5555 -19037
- package/build/tvweb-sdk.platform.standalone.min.js +796 -686
- package/build/types/index.d.ts +10 -0
- package/package.json +5 -6
- package/build/esm/chunk-4da2a90d.js +0 -1
- package/build/esm/chunk-9390d088.js +0 -1121
- package/build/esm/chunk-afb105f2.js +0 -428
- package/build/esm/chunk-c136757f.js +0 -1
package/build/types/index.d.ts
CHANGED
|
@@ -1161,6 +1161,10 @@ declare const _default: {
|
|
|
1161
1161
|
btn_use_this_picture: string;
|
|
1162
1162
|
btn_try_again: string;
|
|
1163
1163
|
remaining_time: string;
|
|
1164
|
+
upload_button_label: string;
|
|
1165
|
+
upload_invalid_file_type: string;
|
|
1166
|
+
upload_processing_failed: string;
|
|
1167
|
+
image_preview_unavailable: string;
|
|
1164
1168
|
front_card_title: string;
|
|
1165
1169
|
back_card_title: string;
|
|
1166
1170
|
front_card_description: string;
|
|
@@ -1332,6 +1336,7 @@ type ReadIDCardResult = {
|
|
|
1332
1336
|
stepNumber: number;
|
|
1333
1337
|
cardSide: 'front' | 'back';
|
|
1334
1338
|
cardType: string;
|
|
1339
|
+
source?: 'capture' | 'upload';
|
|
1335
1340
|
image: {
|
|
1336
1341
|
blob: Blob;
|
|
1337
1342
|
encrypted?: {
|
|
@@ -1413,6 +1418,10 @@ type IDCardStep = {
|
|
|
1413
1418
|
enableConfirmPopup?: boolean;
|
|
1414
1419
|
};
|
|
1415
1420
|
type CardTypeString = 'vn.national_id' | 'vn.cmnd_old' | 'vn.cmnd_new' | 'vn.cccd' | 'vn.cccd_new' | 'vn.tcc' | 'vn.passport' | 'ph.national_id' | 'ph.nid' | 'global.passport';
|
|
1421
|
+
type UploadFromDeviceConfig = {
|
|
1422
|
+
enable: boolean;
|
|
1423
|
+
enableConfirmPopup?: boolean;
|
|
1424
|
+
};
|
|
1416
1425
|
type ReadIDCardOptions = {
|
|
1417
1426
|
clientSettings: Record<string, any>;
|
|
1418
1427
|
onError: (error: ErrorObject) => void;
|
|
@@ -1429,6 +1438,7 @@ type ReadIDCardOptions = {
|
|
|
1429
1438
|
customTexts?: CustomTexts;
|
|
1430
1439
|
customErrors?: CustomErrors;
|
|
1431
1440
|
customTheme?: Record<string, any>;
|
|
1441
|
+
uploadFromDevice?: UploadFromDeviceConfig;
|
|
1432
1442
|
};
|
|
1433
1443
|
type ReadIDCardWithApiCallOptions = Omit<ReadIDCardOptions, 'clientSettings'> & {
|
|
1434
1444
|
apiCredentials: APICredentials;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsocial/tvweb-sdk.platform",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.38.0",
|
|
4
4
|
"description": "TV Web SDK - The Standalone SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Nha Hoang <nha.hoang@trustingsocial.com>",
|
|
@@ -29,14 +29,13 @@
|
|
|
29
29
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tsocial/tvweb-builder": "5.
|
|
33
|
-
"@tsocial/tvweb-core": "5.
|
|
34
|
-
"@tsocial/tvweb-ui": "5.
|
|
32
|
+
"@tsocial/tvweb-builder": "5.38.0",
|
|
33
|
+
"@tsocial/tvweb-core": "5.38.0",
|
|
34
|
+
"@tsocial/tvweb-ui": "5.38.0",
|
|
35
35
|
"invariant": "^2.2.4",
|
|
36
36
|
"react": "^16.14.0",
|
|
37
|
-
"react-app-polyfill": "^2.0.0",
|
|
38
37
|
"react-dom": "^16.14.0",
|
|
39
38
|
"styled-components": "^6.1.12"
|
|
40
39
|
},
|
|
41
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "1af31e9d0df5526dc12f14e6db2eab99082aac11"
|
|
42
41
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,r as e,s as o,a2 as n,ac as t,ad as i,ae as a,af as u,ag as s,ah as d,ai as c,aj as l,ak as g,al as f,am as p,an as h,$ as b,u as y,ao as x}from"./chunk-9390d088.js";let k=e.createContext(!1),C=({children:e,debug:o=!1})=>r.jsx(k.Provider,{value:o,children:e}),T=()=>e.useContext(k),v={tsBlue:"#0276f1",tsSecondary:"rgba(0, 47, 117, 0.6)"},m={IDCapturing:{backgroundColor:"rgba(0, 0, 0, 0.6)",titleFront:{color:"#fff",fontSize:"20px",fontWeight:"normal",backgroundColor:"unset"},titleBack:{color:"#fff",fontSize:"20px",fontWeight:"normal",backgroundColor:"unset"},instruction:{padding:"unset",color:"#fff",fontSize:"16px",fontWeight:"normal",backgroundColor:"unset",border:"unset",borderRadius:"unset"},captureInstruction:{capturing:{padding:"12px 12px",color:"#ffffff",fontSize:"14px",fontWeight:"normal",background:"rgba(15, 23, 42, 0.25)",border:"none",borderRadius:"100px"},captured:{padding:"12px 12px",color:"#ffffff",fontSize:"14px",fontWeight:"normal",background:"rgba(15, 23, 42, 0.25)",border:"none",borderRadius:"100px"}},error:{padding:"5px 10px",color:"#fff",fontSize:"16px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px"},toggle:{color:"#d1d1d1",fontSize:"16px",fontWeight:"500",gap:"16px",backgroundColor:"#fff",active:{backgroundColor:"#2196f3"},inactive:{backgroundColor:"#ccc"}},countdown:{color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px"},cardIcon:{src:"",width:"auto",height:"38px"},captureIcon:{src:"",width:"60px",height:"60px",disabled:{src:""}},loadingIcon:{src:"",width:"100px",height:"100px"},rectangleMask:{width:600,height:400,strokeWidth:2,strokeStyles:{},radius:10,paddingStyle:{fill:"rgba(0, 0, 0, 0.6)"},default:{fill:"none",stroke:"#fff",strokeWidth:2,strokeDasharray:"7, 4",opacity:.6},error:{fill:"rgba(234,50,35, 0.1)",strokeWidth:2,stroke:"#ea3223"}}},IDConfirmPopup:{image:{borderRadius:"5px"}},QRStep:{title:{color:"#fff",fontSize:"20px",fontWeight:"700",backgroundColor:"unset"},guidelinePopup:{image:{src:"",borderRadius:"5px",backgroundColor:"#e7e6e6"},guideText:{color:v.tsSecondary,fontSize:"16px",fontWeight:"normal",textAlign:"center",lineHeight:"20px"},countdownText:{color:v.tsSecondary,fontSize:"16px",fontWeight:"normal",textAlign:"center",lineHeight:"20px"}},scanTooltip:{backgroundColor:"#00ce78",borderRadius:"8px",color:"#fff",padding:"10px",textAlign:"center"},scanCountdown:{textAlign:"center",color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"none",borderRadius:"3px",padding:"5px 10px"},invalidPopup:{padding:"10px",title:{display:"block",color:v.tsSecondary,fontSize:"16px",fontWeight:"bold",margin:"25px 0 0 0",padding:"0 0 0 0"},description:{color:v.tsSecondary,fontSize:"16px",fontWeight:"normal",textAlign:"center",margin:"30px 0 0 0",padding:"0 0 0 0"},retryButton:{color:"#fff",fontSize:"1rem",fontWeight:"normal",backgroundColor:v.tsBlue,border:"none",borderRadius:"3px",outline:"none",height:"66px",margin:"30px 0 0 0"},skipButton:{color:v.tsBlue,fontSize:"1rem",fontWeight:"normal",backgroundColor:"unset",border:"none",borderRadius:"unset",outline:"none",height:"unset",margin:"20px 0"}},resultText:{success:{textColor:"#000",fontSize:"1rem",fontWeight:"normal",mainColor:"#34ce60"},error:{textColor:"#000",fontSize:"1rem",fontWeight:"normal",mainColor:"#ff9532"}}}},D={IDCapturing:{backgroundColor:"rgba(0, 0, 0, 0.6)",titleFront:{...o.DesignToken.Typography.h4,color:o.DesignToken.Color.base.white,backgroundColor:"unset"},titleBack:{...o.DesignToken.Typography.h4,color:o.DesignToken.Color.base.white,backgroundColor:"unset"},instruction:{...o.DesignToken.Typography.body,padding:"5px 10px",color:"rgba(255, 255, 255, 0.8)",backgroundColor:"unset",border:"unset",borderRadius:"unset"},captureInstruction:{capturing:{...o.DesignToken.Typography.label,color:o.DesignToken.Color.base.white,padding:`6px ${o.DesignToken.Spacing.sm}`,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px"},captured:{...o.DesignToken.Typography.label,color:o.DesignToken.Color.base.white,padding:`6px ${o.DesignToken.Spacing.sm}`,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px"}},error:{...o.DesignToken.Typography.body,padding:"5px 10px",color:o.DesignToken.Color.semantic.error[400],backgroundColor:"transparent",border:"unset",borderRadius:o.DesignToken.CornerRadius["2xs"]},toggle:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.base.white,gap:o.DesignToken.Spacing.base,backgroundColor:o.DesignToken.Color.base.white,active:{backgroundColor:o.DesignToken.Color.base.blue},inactive:{backgroundColor:o.DesignToken.Color.neutral[300]}},countdown:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.semantic.error[400],backgroundColor:"transparent",border:"unset",borderRadius:o.DesignToken.CornerRadius["2xs"]},cardIcon:{src:"",width:"auto",height:"38px"},captureIcon:{src:"",width:o.DesignToken.Height["7xl"],height:o.DesignToken.Height["7xl"],disabled:{src:""}},loadingIcon:{src:"",width:"47px",height:"47px"},rectangleMask:{width:600,height:400,strokeWidth:n.getCSSNumericValue(o.DesignToken.BorderWidth["3xl"]),strokeStyles:{},radius:n.getCSSNumericValue(o.DesignToken.CornerRadius.base),paddingStyle:{fill:"rgba(0, 0, 0, 0.6)"},default:{fill:"none",stroke:o.DesignToken.Color.neutral[400],strokeWidth:n.getCSSNumericValue(o.DesignToken.BorderWidth["3xl"])},error:{fill:"none",strokeWidth:n.getCSSNumericValue(o.DesignToken.BorderWidth["3xl"]),stroke:o.DesignToken.Color.semantic.error[400]}}},IDConfirmPopup:{image:{borderRadius:o.DesignToken.CornerRadius["2xs"]}},QRStep:{title:{...o.DesignToken.Typography.h4,backgroundColor:"unset"},guidelinePopup:{image:{src:"",borderRadius:o.DesignToken.CornerRadius["2xs"],backgroundColor:"transparent"},guideText:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.neutral[600],textAlign:"center"},countdownText:{...o.DesignToken.UIText.medium,color:o.DesignToken.Color.neutral[500],textAlign:"center"}},scanTooltip:{backgroundColor:"transparent",borderRadius:o.DesignToken.CornerRadius.xs,color:o.DesignToken.Color.base.white,padding:"10px",textAlign:"center"},scanCountdown:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.semantic.error[400],textAlign:"center",backgroundColor:"transparent",border:"none",borderRadius:o.DesignToken.CornerRadius["2xs"],padding:"0px"},invalidPopup:{padding:"10px",title:{...o.DesignToken.Typography.h6,color:o.DesignToken.Color.content.primary,display:"none",margin:"25px 0 0 0",padding:"0 0 0 0"},description:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.content.secondary,textAlign:"center",margin:"30px 0 0 0",padding:"0 0 0 0"},retryButton:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.base.white,backgroundColor:o.DesignToken.Color.base.blue,borderRadius:o.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:o.DesignToken.Height["3xl"],margin:"24px 0 0 0"},skipButton:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.content.primary,backgroundColor:o.DesignToken.Color.background.tertiary,borderRadius:o.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:o.DesignToken.Height["3xl"],margin:"12px 0"}},resultText:{success:{...o.DesignToken.Typography.body,textColor:o.DesignToken.Color.content.primary,mainColor:o.DesignToken.Color.semantic.success[400]},error:{...o.DesignToken.Typography.body,textColor:o.DesignToken.Color.content.primary,mainColor:o.DesignToken.Color.semantic.warning[500]}}}},R=m,S=D,{DesignToken:W}=o,w={FlashLiveness:{maskFill:"#fff",mask:{strokeColor:W.Color.separators.secondary,strokeColorError:W.Color.semantic.error[400],strokeWidth:4,path:"M118.5 2.5C54.2233 2.5 2.5 59.5579 2.5 129.447C2.5 146.072 3.68394 172.618 8.16415 200.483C12.6369 228.301 20.4309 257.673 33.7816 279.787C46.9667 301.626 59.6817 317.047 73.3658 327.003C87.1207 337.011 101.735 341.41 118.5 341.41C135.265 341.41 149.879 337.011 163.634 327.003C177.318 317.047 190.033 301.626 203.218 279.787C216.569 257.673 224.363 228.301 228.836 200.483C233.316 172.618 234.5 146.072 234.5 129.447C234.5 59.5579 182.777 2.5 118.5 2.5Z",width:237,height:344},title:{hidden:!1,height:"auto",color:W.Color.content.primary,fontSize:W.Typography.h5.fontSize,fontWeight:W.Typography.h5.fontWeight,lineHeight:W.Typography.h5.lineHeight},guideline:{text:{close:{color:W.Color.content.primary,fontSize:W.Typography.h6.fontSize,fontWeight:W.FontWeight["semi-bold"],background:W.Color.background.secondary,border:`${W.BorderWidth.base} solid ${W.Color.separators.tertiary}`,borderRadius:"100px",padding:"12px 16px"},far:{color:W.Color.content.primary,fontSize:W.Typography.h6.fontSize,fontWeight:W.FontWeight["semi-bold"],background:W.Color.background.secondary,border:`${W.BorderWidth.base} solid ${W.Color.separators.tertiary}`,borderRadius:"100px",padding:"12px 16px"},flashing:{color:W.Color.content["on-bg-color"],fontSize:W.Typography.label.fontSize,fontWeight:W.Typography.label.fontWeight,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px",padding:"12px 16px"}},icon:{color:W.Color.blue[900],src:""}},instruction:{color:W.Color.content["on-bg-color"],fontSize:W.Typography.label.fontSize,fontWeight:W.Typography.label.fontWeight,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px"},timeoutText:{color:W.Color.semantic.error[400],fontSize:W.Typography.body.fontSize,fontWeight:W.Typography.body.fontWeight,padding:"0"},errorOverlay:{backgroundColor:"transparent",opacity:0},progressBar:{mainColor:W.Color.blue[900],secondaryColor:W.Color.blue[100],textColor:W.Color.blue[900],fontSize:W.Typography.body.fontSize,fontWeight:W.FontWeight["semi-bold"]},flashing:{logo:{src:"",width:"140px",height:"auto"},backgroundPattern:{srcMobile:"",srcDesktop:"",width:"100%",height:"auto"}}}},z=w,j=w,{DesignToken:_}=o,A={Selfie:{backgroundColor:"#FFF",title:{...o.DesignToken.Typography.h5,color:o.DesignToken.Color.content.primary},countdown:{color:_.Color.semantic.error[400],fontSize:_.Typography.body.fontSize,fontWeight:_.Typography.body.fontWeight,backgroundColor:"transparent",border:"unset",borderRadius:"3px",padding:"0px"},loadingIcon:{src:"",width:"47px",height:"47px"},error:{color:_.Color.semantic.error[400],fontSize:_.Typography.body.fontSize,fontWeight:_.Typography.body.fontWeight,backgroundColor:"transparent",border:"unset",borderRadius:"3px",padding:"5px 10px"},progressCircle:{activeColor:"rgba(52, 152, 211, 1)",innerPadding:3,showDashedRing:!0,showOutsideRing:!1,dashedRingLineThick:"2",dashedRingLineSpacing:"3.5",dashedRingColor:"rgba(193, 197, 204, 1)",dashedRingOpacity:1,insideRingColor:"#fff",insideRingWidth:10,insideRingStrokeDash:"0",outsideRingOpacity:1,outsideRingColor:"#fff",errorRingWidth:0,radius:160,strokeWidth:3,progress:0,showErrorRing:!1,errorRingColor:"#df0000",dashedRingWidth:10,dashedInsideRingColor:"#fff",dashedInsideRingWidth:3,showInsideRing:!0},progressCircleV2:{activeColor:_.Color.blue[900],neutralColor:_.Color.neutral[300],errorColor:_.Color.semantic.error[400],radius:160,strokeWidth:2,progress:0,tickWidth:15,numberOfTicks:200},Active:{instruction:{color:_.Color.content.primary,fontSize:_.Typography.body.fontSize,fontWeight:_.Typography.body.fontWeight,textShadow:"none",backgroundColor:"unset",border:"unset",borderRadius:"unset"},directionIcon:{frontal:"",frontalWidth:"168px",left:"",leftWidth:"150px",right:"",rightWidth:"150px",up:"",upWidth:"150px"},imageHolder:{width:"72px",height:"72px",borderRadius:"50%",border:`3px solid ${_.Color.blue[900]}`,fontSize:"16px",color:"#fff",fontWeight:"700",frontal:"",left:"",right:"",up:"",activeStepBorder:`1px solid ${_.Color.separators.tertiary}`,activeStepBorderRadius:"50%"}}}},I={Selfie:{backgroundColor:"rgba(0, 0, 0, 0.6)",captureIcon:{src:"",width:"50px"},countdown:{color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px",padding:"5px 10px"},loadingIcon:{src:"",width:"47px",height:"47px"},error:{color:"#fff",fontSize:"18px",fontWeight:"normal",backgroundColor:"#ea3223",border:"unset",borderRadius:"3px",padding:"5px 10px"},progressCircle:{radius:160,strokeWidth:3,progress:0,showErrorRing:!0,activeColor:"#0092ff",innerPadding:5,outsideRingColor:"#f2f6f9",outsideRingOpacity:.1,insideRingColor:"#f2f6f9",insideRingWidth:1,insideRingStrokeDash:"2",errorRingColor:"#df0000",errorRingWidth:1,dashedRingColor:"#ffffff",dashedRingOpacity:.3,dashedRingWidth:10,dashedRingLineThick:1,dashedRingLineSpacing:6,dashedInsideRingColor:"#ffffff",dashedInsideRingWidth:0,showOutsideRing:!1,showDashedRing:!1,showInsideRing:!0},Active:{instruction:{color:"#fff",fontSize:"20px",fontWeight:"normal",textShadow:"2px 2px 4px #000000",backgroundColor:"unset",border:"unset",borderRadius:"unset"},directionIcon:{frontal:"",frontalWidth:"140px",left:"",leftWidth:"80px",right:"",rightWidth:"80px",up:"",upWidth:"80px"},imageHolder:{width:"40px",height:"40px",borderRadius:"50%",border:"2px solid #fff",fontSize:"16px",color:"#fff",fontWeight:"700",frontal:"",left:"",right:"",up:""}}}},O=A,{DesignToken:P}=o,B={PassiveLiveness:{instruction:{color:P.Color.content["on-bg-color"],fontSize:P.Typography.label.fontSize,fontWeight:P.Typography.label.fontWeight,background:"rgba(15, 23, 42, 0.35)",border:"none",borderRadius:"100px",backdropFilter:"blur(28px)",padding:"12px 12px"}}},F=B,q=B,H={closeButton:{top:o.DesignToken.Spacing.base,right:o.DesignToken.Spacing.base,left:"auto",bottom:"auto",display:"block",src:"",width:"24px",height:"auto"},popup:{backgroundColor:o.DesignToken.Color.base.white,padding:"10px",border:"none",borderRadius:o.DesignToken.CornerRadius.sm,overlay:{backgroundColor:o.DesignToken.Color.mask[70]},title:{...o.DesignToken.Typography.h6,fontWeight:o.DesignToken.FontWeight["semi-bold"],color:o.DesignToken.Color.content.primary,textAlign:"center",display:"initial",margin:"25px 0 0 0",padding:"0 0 0 0"},description:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.content.secondary,textAlign:"center",border:"unset",borderRadius:"unset",margin:"30px 0 0 0",padding:"0 0 0 0"},primaryButton:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.base.white,backgroundColor:o.DesignToken.Color.base.blue,borderRadius:o.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:o.DesignToken.Height["3xl"],maxWidth:"unset"},secondaryButton:{...o.DesignToken.Typography.body,color:o.DesignToken.Color.content.primary,backgroundColor:o.DesignToken.Color.background.tertiary,borderRadius:o.DesignToken.CornerRadius.xs,border:"none",outline:"none",height:o.DesignToken.Height["3xl"],maxWidth:"unset"}}},$={v1:{...R,...z,...I,...F,...H},v2:{...S,...j,...O,...q,...H}};function L(){if(rn)return ro;rn=1;var r=u();return ro=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(r){}}()}function M(){if(ri)return rt;ri=1;var r=L();return rt=function(e,o,n){"__proto__"==o&&r?r(e,o,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[o]=n}}function U(){if(ru)return ra;ru=1;var r=M(),e=s();return ra=function(o,n,t){(void 0===t||e(o[n],t))&&(void 0!==t||n in o)||r(o,n,t)}}var E,V,K,N,Q,Z,G,J,X,Y,rr,re,ro,rn,rt,ri,ra,ru,rs,rd,rc,rl,rg,rf,rp,rh,rb,ry,rx,rk,rC,rT,rv,rm,rD,rR,rS,rW,rw,rz,rj,r_,rA,rI,rO,rP,rB,rF,rq,rH,r$,rL,rM,rU,rE,rV,rK,rN,rQ,rZ,rG,rJ,rX,rY,r0,r1,r2,r3,r5,r6,r4,r7,r8,r9,er,ee,eo,en,et,ei,ea,eu,es,ed,ec,el,eg,ef,ep,eh,eb,ey,ex,ek,eC,eT,ev,em,eD,eR,eS,eW,ew,ez,ej,e_,eA,eI,eO,eP={exports:{}};eP.exports;function eB(){return rD?rm:(rD=1,rm=function(r,e){return function(o){return r(e(o))}})}function eF(){return rS?rR:(rS=1,rR=eB()(Object.getPrototypeOf,Object))}function eq(){if(rw)return rW;rw=1;var r=Object.prototype;return rW=function(e){var o=e&&e.constructor;return e===("function"==typeof o&&o.prototype||r)}}function eH(){if(rO)return rI;rO=1;var r=function(){if(rA)return r_;rA=1;var r=l(),e=g();return r_=function(o){return e(o)&&"[object Arguments]"==r(o)}}(),e=g(),o=Object.prototype,n=o.hasOwnProperty,t=o.propertyIsEnumerable;return rI=r(function(){return arguments}())?r:function(r){return e(r)&&n.call(r,"callee")&&!t.call(r,"callee")}}function e$(){return rB?rP:(rB=1,rP=function(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=0x1fffffffffffff})}function eL(){if(rq)return rF;rq=1;var r=f(),e=e$();return rF=function(o){return null!=o&&e(o.length)&&!r(o)}}var eM={exports:{}};function eU(){var r,e,o,n,t,i,a,u;if(rU)return eM.exports;return rU=1,r=eM,e=eM.exports,o=d(),n=rM?rL:(rM=1,rL=function(){return!1}),u=(a=(i=(t=e&&!e.nodeType&&e)&&r&&!r.nodeType&&r)&&i.exports===t?o.Buffer:void 0)?a.isBuffer:void 0,r.exports=u||n,eM.exports}function eE(){if(rV)return rE;rV=1;var r=l(),e=eF(),o=g(),n=Object.prototype,t=Function.prototype.toString,i=n.hasOwnProperty,a=t.call(Object);return rE=function(n){if(!o(n)||"[object Object]"!=r(n))return!1;var u=e(n);if(null===u)return!0;var s=i.call(u,"constructor")&&u.constructor;return"function"==typeof s&&s instanceof s&&t.call(s)==a}}eM.exports;var eV={exports:{}};eV.exports;function eK(){if(rX)return rJ;rX=1;var r=function(){if(rN)return rK;rN=1;var r=l(),e=e$(),o=g(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,rK=function(t){return o(t)&&e(t.length)&&!!n[r(t)]}}(),e=rZ?rQ:(rZ=1,rQ=function(r){return function(e){return r(e)}}),o=function(){var r,e,o,n,t,i;if(rG)return eV.exports;return rG=1,r=eV,e=eV.exports,o=p(),i=(t=(n=e&&!e.nodeType&&e)&&r&&!r.nodeType&&r)&&t.exports===n&&o.process,r.exports=function(){try{var r=t&&t.require&&t.require("util").types;if(r)return r;return i&&i.binding&&i.binding("util")}catch(r){}}(),eV.exports}(),n=o&&o.isTypedArray;return rJ=n?e(n):r}function eN(){return r0?rY:(r0=1,rY=function(r,e){if("constructor"!==e||"function"!=typeof r[e]){if("__proto__"!=e)return r[e]}})}function eQ(){if(r5)return r3;r5=1;var r=function(){if(r2)return r1;r2=1;var r=M(),e=s(),o=Object.prototype.hasOwnProperty;return r1=function(n,t,i){var a=n[t];o.call(n,t)&&e(a,i)&&(void 0!==i||t in n)||r(n,t,i)}}(),e=M();return r3=function(o,n,t,i){var a=!t;t||(t={});for(var u=-1,s=n.length;++u<s;){var d=n[u],c=i?i(t[d],o[d],d,t,o):void 0;void 0===c&&(c=o[d]),a?e(t,d,c):r(t,d,c)}return t}}function eZ(){if(r8)return r7;r8=1;var r=/^(?:0|[1-9]\d*)$/;return r7=function(e,o){var n=typeof e;return!!(o=null==o?0x1fffffffffffff:o)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<o}}function eG(){if(er)return r9;er=1;var r=r4?r6:(r4=1,r6=function(r,e){for(var o=-1,n=Array(r);++o<r;)n[o]=e(o);return n}),e=eH(),o=h(),n=eU(),t=eZ(),i=eK(),a=Object.prototype.hasOwnProperty;return r9=function(u,s){var d=o(u),c=!d&&e(u),l=!d&&!c&&n(u),g=!d&&!c&&!l&&i(u),f=d||c||l||g,p=f?r(u.length,String):[],h=p.length;for(var b in u)(s||a.call(u,b))&&!(f&&("length"==b||l&&("offset"==b||"parent"==b)||g&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||t(b,h)))&&p.push(b);return p}}function eJ(){if(ea)return ei;ea=1;var r=eG(),e=function(){if(et)return en;et=1;var r=c(),e=eq(),o=eo?ee:(eo=1,ee=function(r){var e=[];if(null!=r)for(var o in Object(r))e.push(o);return e}),n=Object.prototype.hasOwnProperty;return en=function(t){if(!r(t))return o(t);var i=e(t),a=[];for(var u in t)"constructor"==u&&(i||!n.call(t,u))||a.push(u);return a}}(),o=eL();return ei=function(n){return o(n)?r(n,!0):e(n)}}function eX(){return ep?ef:(ep=1,ef=function(r){return r})}function eY(){return eb?eh:(eb=1,eh=function(r,e,o){switch(o.length){case 0:return r.call(e);case 1:return r.call(e,o[0]);case 2:return r.call(e,o[0],o[1]);case 3:return r.call(e,o[0],o[1],o[2])}return r.apply(e,o)})}function e0(){if(ew)return eW;ew=1;var r=eX(),e=function(){if(ex)return ey;ex=1;var r=eY(),e=Math.max;return ey=function(o,n,t){return n=e(void 0===n?o.length-1:n,0),function(){for(var i=arguments,a=-1,u=e(i.length-n,0),s=Array(u);++a<u;)s[a]=i[n+a];a=-1;for(var d=Array(n+1);++a<n;)d[a]=i[a];return d[n]=t(s),r(o,this,d)}}}(),o=function(){if(eS)return eR;eS=1;var r=function(){if(ev)return eT;ev=1;var r=eC?ek:(eC=1,ek=function(r){return function(){return r}}),e=L(),o=eX();return eT=e?function(o,n){return e(o,"toString",{configurable:!0,enumerable:!1,value:r(n),writable:!0})}:o}();return eR=(function(){if(eD)return em;eD=1;var r=Date.now;return em=function(e){var o=0,n=0;return function(){var t=r(),i=16-(t-n);if(n=t,i>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}})()(r)}();return eW=function(n,t){return o(e(n,t,r),n+"")}}function e1(){if(ej)return ez;ej=1;var r=s(),e=eL(),o=eZ(),n=c();return ez=function(t,i,a){if(!n(a))return!1;var u=typeof i;return("number"==u?!!(e(a)&&o(i,a.length)):"string"==u&&i in a)&&r(a[i],t)}}function e2(){if(eA)return e_;eA=1;var r=e0(),e=e1();return e_=function(o){return r(function(r,n){var t=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=o.length>3&&"function"==typeof a?(i--,a):void 0,u&&e(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),r=Object(r);++t<i;){var s=n[t];s&&o(r,s,t,a)}return r})}}var e3=b(function(){if(eO)return eI;eO=1;var r=function(){if(eg)return el;eg=1;var r=function(){if(re)return rr;re=1;var r=t(),e=function(){if(V)return E;V=1;var r=t();return E=function(){this.__data__=new r,this.size=0}}(),o=N?K:(N=1,K=function(r){var e=this.__data__,o=e.delete(r);return this.size=e.size,o}),n=Z?Q:(Z=1,Q=function(r){return this.__data__.get(r)}),u=J?G:(J=1,G=function(r){return this.__data__.has(r)}),s=function(){if(Y)return X;Y=1;var r=t(),e=i(),o=a();return X=function(n,t){var i=this.__data__;if(i instanceof r){var a=i.__data__;if(!e||a.length<199)return a.push([n,t]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(n,t),this.size=i.size,this}}();function d(e){var o=this.__data__=new r(e);this.size=o.size}return d.prototype.clear=e,d.prototype.delete=o,d.prototype.get=n,d.prototype.has=u,d.prototype.set=s,rr=d}(),e=U(),o=rl?rc:(rl=1,rc=(rd?rs:(rd=1,rs=function(r){return function(e,o,n){for(var t=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[r?u:++t];if(!1===o(i[s],s,i))break}return e}}))()),n=function(){if(ec)return ed;ec=1;var r=U(),e=function(){var r,e,o,n,t,i,a;if(rg)return eP.exports;return rg=1,r=eP,e=eP.exports,o=d(),a=(i=(t=(n=e&&!e.nodeType&&e)&&r&&!r.nodeType&&r)&&t.exports===n?o.Buffer:void 0)?i.allocUnsafe:void 0,r.exports=function(r,e){if(e)return r.slice();var o=r.length,n=a?a(o):new r.constructor(o);return r.copy(n),n},eP.exports}(),o=function(){if(rx)return ry;rx=1;var r=function(){if(rb)return rh;rb=1;var r=rp?rf:(rp=1,rf=d().Uint8Array);return rh=function(e){var o=new e.constructor(e.byteLength);return new r(o).set(new r(e)),o}}();return ry=function(e,o){var n=o?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}}(),n=rC?rk:(rC=1,rk=function(r,e){var o=-1,n=r.length;for(e||(e=Array(n));++o<n;)e[o]=r[o];return e}),t=function(){if(rj)return rz;rj=1;var r=function(){if(rv)return rT;rv=1;var r=c(),e=Object.create;return rT=function(){function o(){}return function(n){if(!r(n))return{};if(e)return e(n);o.prototype=n;var t=new o;return o.prototype=void 0,t}}()}(),e=eF(),o=eq();return rz=function(n){return"function"!=typeof n.constructor||o(n)?{}:r(e(n))}}(),i=eH(),a=h(),u=function(){if(r$)return rH;r$=1;var r=eL(),e=g();return rH=function(o){return e(o)&&r(o)}}(),s=eU(),l=f(),p=c(),b=eE(),y=eK(),x=eN(),k=function(){if(es)return eu;es=1;var r=eQ(),e=eJ();return eu=function(o){return r(o,e(o))}}();return ed=function(d,c,g,f,h,C,T){var v=x(d,g),m=x(c,g),D=T.get(m);if(D)return void r(d,g,D);var R=C?C(v,m,g+"",d,c,T):void 0,S=void 0===R;if(S){var W=a(m),w=!W&&s(m),z=!W&&!w&&y(m);R=m,W||w||z?a(v)?R=v:u(v)?R=n(v):w?(S=!1,R=e(m,!0)):z?(S=!1,R=o(m,!0)):R=[]:b(m)||i(m)?(R=v,i(v)?R=k(v):(!p(v)||l(v))&&(R=t(m))):S=!1}S&&(T.set(m,R),h(R,m,f,C,T),T.delete(m)),r(d,g,R)}}(),u=c(),s=eJ(),l=eN();return el=function t(i,a,d,c,g){i!==a&&o(a,function(o,s){if(g||(g=new r),u(o))n(i,a,s,d,t,c,g);else{var f=c?c(l(i,s),o,s+"",i,a,g):void 0;void 0===f&&(f=o),e(i,s,f)}},s)}}();return eI=e2()(function(e,o,n){r(e,o,n)})}());let e5=r=>{let{customTheme:o,clientSettings:n,themeVersion:t,uiSettings:i,defaultThemes:a=$}=r,u=y.getWebSetting(n,"data.settings.sdk_settings.ui_custom_settings");return e.useMemo(()=>{let r=x.selectUiSettings(i,u);return{...e3({},x.mapUISettingsToCustomTheme(r),o),themeVersion:t,defaultThemes:a}},[o,a,t,i,u])},e6=()=>{},e4=e.createContext({onDoneCallback:e6,onErrorCallback:e6,onCloseCallback:e6}),e7=({children:o,onDone:n=e6,onError:t=e6,onClose:i=e6})=>{let a=e.useCallback(r=>{n&&n(r)},[n]),u=e.useCallback(r=>{t&&t(r)},[t]),s=e.useCallback(()=>{i&&i()},[i]),d=e.useMemo(()=>({onDoneCallback:a,onErrorCallback:u,onCloseCallback:s}),[a,u,s]);return r.jsx(e4.Provider,{value:d,children:o})},e8=()=>{let r=e.useContext(e4);if(void 0===r)throw Error("useSDKCallback must be used within a SDKCallbackProvider");return r},e9=e.createContext(""),or=({children:e,isWrappedBy:o=""})=>r.jsx(e9.Provider,{value:o,children:e}),oe=()=>e.useContext(e9);export{C as D,e7 as S,or as W,D as a,T as b,oe as c,$ as d,e5 as e,e2 as f,eJ as g,eE as h,e0 as i,eY as j,eB as k,eq as l,e3 as m,eG as n,eL as o,e1 as p,eQ as r,v as t,e8 as u};
|