@tesouro/embedded-components-react 0.2.52 → 0.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/index.d.ts +2 -1
- package/dist/lib/ReceivablesWidget.js +26 -26
- package/dist/lib/WidgetProvider.d.ts +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index2.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/useReceiptMatch.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index2.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +4 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -1271
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +1270 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +60 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +397 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +67 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +407 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +64 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +29 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +22 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +147 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +56 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +96 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +55 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +92 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +95 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +24 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +19 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +10 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +116 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +68 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +45 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +54 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +195 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +14 -394
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +41 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +7 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +110 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +184 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +121 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +59 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +13 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +88 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +44 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +45 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +391 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +13 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +14 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +92 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +34 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +101 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +137 -482
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +85 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +20 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +183 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +21 -298
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +34 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +43 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +27 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +75 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +19 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +56 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +27 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +52 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +36 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +34 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +54 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +345 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +2 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +15 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +14 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +14 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +33 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +34 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +37 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +15 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +247 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +179 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +24 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +38 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +56 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +52 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +30 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +92 -244
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +43 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +344 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +301 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +98 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +158 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +262 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +25 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +18 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +149 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +31 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +108 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +21 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +43 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +53 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +20 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +14 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +74 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +93 -287
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +192 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +485 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +161 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +72 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +44 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +63 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +20 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +74 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +42 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +62 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +43 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +183 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +105 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +81 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +290 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +47 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +83 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +223 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +37 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +49 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +109 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +37 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +63 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +94 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +109 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +83 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +15 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +19 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +167 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +132 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +159 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +18 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +58 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +62 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +58 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +9 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +54 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +61 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +62 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +157 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +78 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +125 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +255 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +7 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +48 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +32 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +45 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +31 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +32 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +104 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +35 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +57 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +35 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +26 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +39 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +72 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +90 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +37 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +9 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +119 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +71 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +93 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +66 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +45 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +26 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +124 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +67 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +32 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +85 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +97 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +108 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +28 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +15 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +35 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +68 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +37 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +53 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +34 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +26 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +30 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +17 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +19 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +19 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +9 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +14 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +29 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +64 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +51 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +81 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +41 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +36 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +13 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +96 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +75 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +9 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +55 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +18 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +48 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +56 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +51 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +37 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +45 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +74 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +82 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +54 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +51 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +29 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +39 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +15 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +47 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +43 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +33 -33
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/fetchWidgetInit.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +25 -23
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +45 -43
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +47 -24
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +68 -36
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/events.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/install.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +79 -74
- package/dist/packages/shared-ui-shadcn/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as i } from "./index58.js";
|
|
2
|
-
import { getAPIErrorMessage as a } from "./
|
|
2
|
+
import { getAPIErrorMessage as a } from "./index123.js";
|
|
3
3
|
import { useLingui as n } from "@lingui/react";
|
|
4
4
|
import { toast as m } from "react-hot-toast";
|
|
5
5
|
const d = (t) => {
|
|
@@ -1,185 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import "
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import { Dialog as ue } from "./index51.js";
|
|
19
|
-
import { DialogTitle as pe, Toolbar as fe, Grid as D, Stack as $, Button as j, Typography as ye, DialogContent as he, CircularProgress as ve } from "@mui/material";
|
|
20
|
-
import { getEmailInvoiceDetailsSchema as be } from "./index176.js";
|
|
21
|
-
import { Form as ge, FormContent as Ie } from "./index386.js";
|
|
22
|
-
import { getDefaultContact as _e } from "./index387.js";
|
|
23
|
-
import { useIssueReceivableById as Ce } from "./index274.js";
|
|
24
|
-
import { useSendReceivableById as xe } from "./index388.js";
|
|
25
|
-
import { PreviewEmail as Ee } from "./index389.js";
|
|
26
|
-
const Ye = (t) => {
|
|
27
|
-
const {
|
|
28
|
-
i18n: n
|
|
29
|
-
} = R(), {
|
|
30
|
-
data: a,
|
|
31
|
-
isLoading: m
|
|
32
|
-
} = ne(), {
|
|
33
|
-
data: o,
|
|
34
|
-
isLoading: b
|
|
35
|
-
} = se(t.invoiceId), {
|
|
36
|
-
entityName: s,
|
|
37
|
-
isLoading: l
|
|
38
|
-
} = ae(), {
|
|
39
|
-
data: g,
|
|
40
|
-
isLoading: i
|
|
41
|
-
} = oe(o?.counterpart_id), {
|
|
42
|
-
data: u
|
|
43
|
-
} = ie(o?.counterpart_id), r = _e(g, u), I = r?.email ?? "", p = r && a ? n._(`Hi {firstName},
|
|
44
|
-
|
|
45
|
-
Please find the invoice attached as discussed.
|
|
46
|
-
|
|
47
|
-
Kind Regards,
|
|
48
|
-
{senderName}`, {
|
|
49
|
-
firstName: r.first_name,
|
|
50
|
-
senderName: a.first_name
|
|
51
|
-
}) : n._(`Please find the invoice attached as discussed.
|
|
52
|
-
|
|
53
|
-
Kind Regards,
|
|
54
|
-
{senderName}`, {
|
|
55
|
-
senderName: a?.first_name ?? ""
|
|
56
|
-
}), _ = o && s ? o.document_id ? n._("Invoice {documentId} from {entityName}", {
|
|
57
|
-
documentId: o.document_id,
|
|
58
|
-
entityName: s
|
|
59
|
-
}) : n._("Invoice from {entityName}", {
|
|
60
|
-
entityName: s
|
|
61
|
-
}) : "";
|
|
62
|
-
return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(Pe, { ...t, to: I, body: p, subject: _, isLoading: i || b || m || l, isIssued: o?.status !== "draft", isOpen: t.isOpen }) });
|
|
63
|
-
}, d = {
|
|
64
|
-
Edit: "form",
|
|
65
|
-
Preview: "preview"
|
|
66
|
-
}, Pe = ({
|
|
67
|
-
invoiceId: t,
|
|
68
|
-
subject: n,
|
|
69
|
-
body: a,
|
|
70
|
-
to: m,
|
|
71
|
-
isLoading: o,
|
|
72
|
-
isIssued: b,
|
|
73
|
-
onClose: s,
|
|
74
|
-
onSendEmail: l,
|
|
75
|
-
isOpen: g
|
|
1
|
+
import { jsxs as f, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCancelRecurrence as v } from "./index387.js";
|
|
3
|
+
import { useGetRecurrenceById as _ } from "./index263.js";
|
|
4
|
+
import { useCurrencies as C } from "./index59.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./index93.js";
|
|
7
|
+
import { useLingui as g, Trans as h } from "@lingui/react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "./index58.js";
|
|
10
|
+
import "@mui/x-data-grid";
|
|
11
|
+
import { ConfirmationModal as b } from "./index241.js";
|
|
12
|
+
import w from "deep-eql";
|
|
13
|
+
import { usePreviousDistinct as y } from "react-use";
|
|
14
|
+
const $ = ({
|
|
15
|
+
invoice: i,
|
|
16
|
+
open: a,
|
|
17
|
+
onClose: r
|
|
76
18
|
}) => {
|
|
77
19
|
const {
|
|
78
|
-
i18n:
|
|
79
|
-
} =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
} =
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
to: m
|
|
104
|
-
});
|
|
105
|
-
}, [a, S, n, m]);
|
|
106
|
-
const C = xe(t), x = Ce(t), E = u.finops.postPaymentLinks.useMutation({}), {
|
|
107
|
-
data: P
|
|
108
|
-
} = u.finops.getEntitiesIdPaymentMethods.useQuery({
|
|
109
|
-
path: {
|
|
110
|
-
entity_id: r
|
|
111
|
-
}
|
|
112
|
-
}), [f, k] = U(d.Edit), w = `Monite-Form-emailInvoiceDetails-${W()}`, O = Y((L) => {
|
|
113
|
-
L.preventDefault();
|
|
114
|
-
const G = E.mutateAsync, H = x.mutateAsync, K = C.mutate;
|
|
115
|
-
p(async (v) => {
|
|
116
|
-
const M = P ? P.data.filter(({
|
|
117
|
-
status: N,
|
|
118
|
-
direction: q
|
|
119
|
-
}) => N === "active" && q === "receive") : [];
|
|
120
|
-
M.length === 0 ? Z.error(i._("You haven't onboarded for any payment method. Invoice is issued without a payment link.")) : (await H(void 0), await G({
|
|
121
|
-
recipient: {
|
|
122
|
-
id: r,
|
|
123
|
-
type: "entity"
|
|
124
|
-
},
|
|
125
|
-
payment_methods: M.map((N) => N.type),
|
|
126
|
-
object: {
|
|
127
|
-
id: t,
|
|
128
|
-
type: "receivable"
|
|
129
|
-
}
|
|
130
|
-
}));
|
|
131
|
-
const V = {
|
|
132
|
-
body_text: v.body,
|
|
133
|
-
subject_text: v.subject,
|
|
134
|
-
recipients: v.to ? {
|
|
135
|
-
to: [v.to]
|
|
136
|
-
} : void 0
|
|
137
|
-
};
|
|
138
|
-
K(V, {
|
|
139
|
-
onSuccess: () => {
|
|
140
|
-
l?.(t), s();
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
})(L);
|
|
144
|
-
}, [E.mutateAsync, x.mutateAsync, p, i, t, r, s, l, P, C.mutate]), y = x.isPending || C.isPending || E.isPending, B = "Monite-EmailInvoiceDetails", h = f == d.Preview;
|
|
145
|
-
return /* @__PURE__ */ c(ue, { open: g, fullScreen: !0, onClose: s, children: [
|
|
146
|
-
/* @__PURE__ */ e(pe, { className: B + "-Title", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ c(D, { container: !0, children: [
|
|
147
|
-
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", spacing: 2, children: [
|
|
148
|
-
f == d.Edit && /* @__PURE__ */ c(z, { children: [
|
|
149
|
-
/* @__PURE__ */ e(j, { variant: "text", color: "primary", onClick: s, startIcon: /* @__PURE__ */ e(ce, {}), disabled: y, "data-testid": "back-button", children: i._("Back") }),
|
|
150
|
-
/* @__PURE__ */ e(ye, { variant: "h3", children: i._("Compose email") })
|
|
151
|
-
] }),
|
|
152
|
-
h && /* @__PURE__ */ e(de, { edge: "start", color: "inherit", onClick: () => {
|
|
153
|
-
k(d.Edit);
|
|
154
|
-
}, "aria-label": i._("Back to edit"), "data-testid": "close-preview-button", children: /* @__PURE__ */ e(le, {}) })
|
|
155
|
-
] }) }),
|
|
156
|
-
/* @__PURE__ */ e(D, { item: !0, xs: 6, children: /* @__PURE__ */ c($, { direction: "row", alignItems: "center", justifyContent: "end", spacing: 2, children: [
|
|
157
|
-
f == d.Edit && /* @__PURE__ */ e(j, { variant: "outlined", color: "primary", type: "button", form: w, disabled: y || o, onClick: async () => {
|
|
158
|
-
await A() && k(d.Preview);
|
|
159
|
-
}, "data-testid": "preview-button", children: i._("Preview email") }),
|
|
160
|
-
/* @__PURE__ */ e(j, { variant: "contained", color: "primary", type: "submit", form: w, disabled: y || o, "data-testid": "issue-and-send-button", children: b ? i._("Send") : i._("Issue and Send") })
|
|
161
|
-
] }) })
|
|
162
|
-
] }) }) }),
|
|
163
|
-
/* @__PURE__ */ e(he, { className: B + "-Content", sx: {
|
|
164
|
-
mt: h ? 0 : 4,
|
|
165
|
-
p: h ? 0 : "0 32px 32px 32px",
|
|
166
|
-
height: "100%",
|
|
167
|
-
width: "100%",
|
|
168
|
-
display: "flex",
|
|
169
|
-
flexDirection: "column"
|
|
170
|
-
}, children: /* @__PURE__ */ c(ge, { formName: w, handleIssueAndSend: O, style: {
|
|
171
|
-
display: "flex",
|
|
172
|
-
flexDirection: "column",
|
|
173
|
-
flex: 1,
|
|
174
|
-
minHeight: 0,
|
|
175
|
-
width: "100%"
|
|
176
|
-
}, children: [
|
|
177
|
-
o ? /* @__PURE__ */ e(re, { className: "Monite-LoadingPage", children: /* @__PURE__ */ e(ve, {}) }) : f == d.Edit && /* @__PURE__ */ e(Ie, { invoiceId: t, control: I, isDisabled: y }),
|
|
178
|
-
h && /* @__PURE__ */ e(Ee, { invoiceId: t, body: T, subject: F })
|
|
179
|
-
] }) })
|
|
20
|
+
i18n: e
|
|
21
|
+
} = g(), {
|
|
22
|
+
formatCurrencyToDisplay: l
|
|
23
|
+
} = C(), c = i?.recurrence_id ?? "", {
|
|
24
|
+
mutate: m,
|
|
25
|
+
isPending: u
|
|
26
|
+
} = v(c, i.id), {
|
|
27
|
+
data: t
|
|
28
|
+
} = _(c), s = y(t, w), o = (s?.status === "active" && t?.status === "canceled" ? s : t)?.iterations?.filter(({
|
|
29
|
+
status: p
|
|
30
|
+
}) => p === "pending")?.length ?? 0, d = i && o !== void 0 ? l(i.total_amount_with_credit_notes * o, i.currency) : void 0;
|
|
31
|
+
return /* @__PURE__ */ f(b, { open: a && !!i.id, title: e._("Cancel Recurring Invoice"), confirmLabel: e._("Cancel recurrence"), cancelLabel: e._("Close"), onClose: r, onConfirm: () => m(void 0, {
|
|
32
|
+
onSuccess: r
|
|
33
|
+
}), isLoading: u, children: [
|
|
34
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("Are you sure you want to cancel this recurring invoice?") }),
|
|
35
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("All future iterations of this invoice will be canceled.") }),
|
|
36
|
+
i && o !== void 0 && /* @__PURE__ */ n("span", { className: "ttw:inline-block", children: /* @__PURE__ */ n(h, { id: "ZYrFPL", values: {
|
|
37
|
+
0: o === 1 ? e._("invoice") : e._("invoices"),
|
|
38
|
+
totalPendingInvoices: o,
|
|
39
|
+
pendingInvoicesTotalAmountWithCreditNotes: d
|
|
40
|
+
}, components: {
|
|
41
|
+
0: /* @__PURE__ */ n("strong", {}),
|
|
42
|
+
1: /* @__PURE__ */ n("strong", {})
|
|
43
|
+
} }) }),
|
|
44
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("This action can't be undone.") })
|
|
180
45
|
] });
|
|
181
46
|
};
|
|
182
47
|
export {
|
|
183
|
-
|
|
184
|
-
Pe as EmailInvoiceDetailsBase
|
|
48
|
+
$ as RecurrenceCancelModal
|
|
185
49
|
};
|
|
@@ -1,14 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as s } from "@lingui/react";
|
|
3
|
+
import { Dialog as d, DialogTitle as h, Typography as n, DialogContent as x, DialogActions as g, Button as l } from "@mui/material";
|
|
4
|
+
const v = ({
|
|
5
|
+
open: a,
|
|
6
|
+
type: p,
|
|
7
|
+
onClose: i,
|
|
8
|
+
onConfirm: c
|
|
9
|
+
}) => {
|
|
10
|
+
const {
|
|
11
|
+
i18n: o
|
|
12
|
+
} = s(), r = p === "approve";
|
|
13
|
+
return /* @__PURE__ */ t(d, { open: a, onClose: i, maxWidth: "sm", fullWidth: !0, container: () => document.body, PaperProps: {
|
|
14
|
+
sx: {
|
|
15
|
+
borderRadius: 3,
|
|
16
|
+
padding: 2
|
|
17
|
+
}
|
|
18
|
+
}, children: [
|
|
19
|
+
/* @__PURE__ */ e(h, { sx: {
|
|
20
|
+
p: "16px !important"
|
|
21
|
+
}, children: /* @__PURE__ */ e(n, { variant: "h5", fontWeight: 600, children: r ? o._("Force Approve bill?") : o._("Force Reject bill?") }) }),
|
|
22
|
+
/* @__PURE__ */ e(x, { sx: {
|
|
23
|
+
px: 2,
|
|
24
|
+
pb: 3
|
|
25
|
+
}, children: /* @__PURE__ */ e(n, { variant: "body1", color: "text.secondary", children: r ? o._("The bill status will change to Approved, skipping the approval flow.") : o._("The bill status will change to Rejected, skipping the approval flow.") }) }),
|
|
26
|
+
/* @__PURE__ */ t(g, { sx: {
|
|
27
|
+
px: 0,
|
|
28
|
+
pt: 2,
|
|
29
|
+
gap: 2
|
|
30
|
+
}, children: [
|
|
31
|
+
/* @__PURE__ */ e(l, { onClick: i, variant: "text", sx: {
|
|
32
|
+
color: "primary.main",
|
|
33
|
+
fontWeight: 500,
|
|
34
|
+
textTransform: "none",
|
|
35
|
+
fontSize: "16px"
|
|
36
|
+
}, children: o._("Cancel") }),
|
|
37
|
+
/* @__PURE__ */ e(l, { onClick: c, variant: "contained", color: r ? "primary" : "error", children: r ? o._("Force Approve") : o._("Force Reject") })
|
|
38
|
+
] })
|
|
10
39
|
] });
|
|
11
|
-
}
|
|
40
|
+
};
|
|
12
41
|
export {
|
|
13
|
-
|
|
42
|
+
v as PayableDetailsForceActionDialog
|
|
14
43
|
};
|
|
@@ -1,21 +1,347 @@
|
|
|
1
|
-
import { jsxs as i,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as we } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useGetPayableCounterpart as Fe } from "./index16.js";
|
|
3
|
+
import { usePayableDetailsThemeProps as z } from "./index17.js";
|
|
4
|
+
import { useMemo as Be, useState as Ie, useRef as Se, useEffect as v } from "react";
|
|
5
|
+
import { useMoniteContext as Pe } from "./index58.js";
|
|
6
|
+
import { useUserPermissions as Ae } from "./index136.js";
|
|
7
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
8
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
10
|
+
import "@tanstack/react-query";
|
|
11
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
12
|
+
import { Scope as ke } from "../../shared/data-access/dist/lib/scopes.js";
|
|
13
|
+
import { useLingui as Ne } from "@lingui/react";
|
|
14
|
+
import "react-hot-toast";
|
|
15
|
+
import { PayableLineItemsForm as Ve } from "./index452.js";
|
|
16
|
+
import { prepareDefaultValues as H, calculateTotalsForPayable as Re, findDefaultBankAccount as Me, isFieldRequired as p, prepareSubmit as qe } from "./index357.js";
|
|
17
|
+
import { usePayableDetailsForm as Ge } from "./index453.js";
|
|
18
|
+
import { getPayableDetailsFormSchema as We, isFieldRequiredByValidations as I } from "./index454.js";
|
|
19
|
+
import { ScopedCssBaselineContainerClassName as Oe } from "./index105.js";
|
|
20
|
+
import { CounterpartDetails as je } from "./index2.js";
|
|
21
|
+
import { CounterpartAutocomplete as Le } from "./index4.js";
|
|
22
|
+
import "./index85.js";
|
|
23
|
+
import "clsx";
|
|
24
|
+
import "tailwind-merge";
|
|
25
|
+
import "@radix-ui/react-dialog";
|
|
26
|
+
import "lucide-react";
|
|
27
|
+
import "./index159.js";
|
|
28
|
+
import "@radix-ui/react-label";
|
|
29
|
+
import "@radix-ui/react-radio-group";
|
|
30
|
+
import "./index86.js";
|
|
31
|
+
import { useForm as Ue, useFormState as Ee, FormProvider as Qe, Controller as x } from "react-hook-form";
|
|
32
|
+
import "@hookform/resolvers/zod";
|
|
33
|
+
import "zod";
|
|
34
|
+
import "./index289.js";
|
|
35
|
+
import "date-fns";
|
|
36
|
+
import "@radix-ui/react-checkbox";
|
|
37
|
+
import "@radix-ui/react-select";
|
|
38
|
+
import "./index91.js";
|
|
39
|
+
import "./index51.js";
|
|
40
|
+
import "@mui/icons-material/ArrowBack";
|
|
41
|
+
import "@mui/icons-material/Close";
|
|
42
|
+
import "@mui/material/IconButton";
|
|
43
|
+
import "@mui/material/Tooltip";
|
|
44
|
+
import { useCurrencies as ze } from "./index59.js";
|
|
45
|
+
import { MoniteScopedProviders as He } from "./index84.js";
|
|
46
|
+
import { Box as M, Grid as S, Paper as q, Typography as P, Stack as Je, TextField as J, FormControl as Ke, InputLabel as Ze, Select as Xe, Button as K, MenuItem as Ye, FormHelperText as $e, Table as et, TableBody as tt, TableRow as A, TableCell as c, IconButton as rt } from "@mui/material";
|
|
47
|
+
import "@radix-ui/react-dropdown-menu";
|
|
48
|
+
import "@tanstack/react-table";
|
|
49
|
+
import { useRootElements as at } from "./index93.js";
|
|
50
|
+
import { useOptionalFields as ot } from "./index60.js";
|
|
51
|
+
import { useProductCurrencyGroups as it } from "./index455.js";
|
|
52
|
+
import { getBankAccountName as nt } from "./index456.js";
|
|
53
|
+
import { safeZodResolver as st } from "./index244.js";
|
|
54
|
+
import { MoniteCurrency as lt } from "./index457.js";
|
|
55
|
+
import "react-dom";
|
|
56
|
+
import "@mui/x-data-grid";
|
|
57
|
+
import "./index102.js";
|
|
58
|
+
import "./index458.js";
|
|
59
|
+
import { TagsAutocompleteInput as dt } from "./index459.js";
|
|
60
|
+
import { classNames as ct } from "./index197.js";
|
|
61
|
+
import Z from "@mui/icons-material/Add";
|
|
62
|
+
import ut from "@mui/icons-material/DeleteForever";
|
|
63
|
+
import { DatePicker as X } from "@mui/x-date-pickers";
|
|
64
|
+
const xr = ({
|
|
65
|
+
ref: r,
|
|
66
|
+
...D
|
|
67
|
+
}) => /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(mt, { ref: r, ...D }) }), mt = ({
|
|
68
|
+
payable: r,
|
|
69
|
+
savePayable: D,
|
|
70
|
+
createPayable: G,
|
|
71
|
+
lineItems: T,
|
|
72
|
+
payableDetailsFormId: Y,
|
|
73
|
+
enableGLCodes: $,
|
|
74
|
+
hideAddDiscountButton: ee,
|
|
75
|
+
hideAddBankAccountButton: te,
|
|
76
|
+
ref: re,
|
|
77
|
+
...W
|
|
78
|
+
}) => {
|
|
79
|
+
const {
|
|
80
|
+
i18n: a
|
|
81
|
+
} = Ne(), {
|
|
82
|
+
api: ae,
|
|
83
|
+
componentSettings: oe
|
|
84
|
+
} = Pe(), {
|
|
85
|
+
root: b
|
|
86
|
+
} = at(), l = "Monite-PayableDetailsForm", {
|
|
87
|
+
formatFromMinorUnits: w,
|
|
88
|
+
formatToMinorUnits: F,
|
|
89
|
+
formatCurrencyToDisplay: k,
|
|
90
|
+
getSymbolFromCurrency: ie
|
|
91
|
+
} = ze(), {
|
|
92
|
+
isTagsDisabled: ne
|
|
93
|
+
} = z(W), {
|
|
94
|
+
data: g
|
|
95
|
+
} = ae.finops.getPayablesValidations.useQuery(), se = Be(() => H(w, r, T), [w, r, T]), B = Ue({
|
|
96
|
+
resolver: st(We(a, g)),
|
|
97
|
+
defaultValues: se,
|
|
98
|
+
mode: "onTouched"
|
|
99
|
+
}), {
|
|
100
|
+
control: s,
|
|
101
|
+
handleSubmit: le,
|
|
102
|
+
watch: u,
|
|
103
|
+
reset: O,
|
|
104
|
+
trigger: j,
|
|
105
|
+
setValue: h,
|
|
106
|
+
getValues: L,
|
|
107
|
+
getFieldState: U
|
|
108
|
+
} = B, {
|
|
109
|
+
dirtyFields: de
|
|
110
|
+
} = Ee({
|
|
111
|
+
control: s
|
|
112
|
+
}), _ = u("counterpart"), E = u("counterpartBankAccount"), ce = u("invoiceDate"), ue = u("dueDate"), n = u("currency"), me = u("lineItems"), N = u("discount"), f = Re(me, N), [pe, V] = Ie(!1), {
|
|
113
|
+
counterpartQuery: he,
|
|
114
|
+
counterpartBankAccountQuery: d
|
|
115
|
+
} = Ge({
|
|
116
|
+
currentCounterpartId: _
|
|
117
|
+
}), {
|
|
118
|
+
ocrRequiredFields: m,
|
|
119
|
+
optionalFields: fe
|
|
120
|
+
} = z(W), {
|
|
121
|
+
showInvoiceDate: ye,
|
|
122
|
+
showTags: be
|
|
123
|
+
} = ot(fe, {
|
|
124
|
+
showInvoiceDate: !0,
|
|
125
|
+
showTags: !0
|
|
126
|
+
}), ge = Ae().has(ke.AccountingConfigReadOrg), Q = Se(!1), {
|
|
127
|
+
counterpart: C,
|
|
128
|
+
counterpartRawName: _e,
|
|
129
|
+
isCounterpartAIMatched: Ce,
|
|
130
|
+
isCounterpartMatchingToOCRFound: R,
|
|
131
|
+
isCounterpartLoading: ve
|
|
132
|
+
} = Fe({
|
|
133
|
+
payable: r
|
|
134
|
+
});
|
|
135
|
+
v(() => {
|
|
136
|
+
O(H(w, r, T));
|
|
137
|
+
}, [r, w, O, T]), v(() => {
|
|
138
|
+
!_ && E && h("counterpartBankAccount", "", {
|
|
139
|
+
shouldValidate: !0
|
|
140
|
+
});
|
|
141
|
+
}, [_, E, h]), v(() => {
|
|
142
|
+
!R || !C || U("counterpart").isTouched || h("counterpart", C.id);
|
|
143
|
+
}, [C, U, R, h]), v(() => {
|
|
144
|
+
if (d.isSuccess && d.data?.data) {
|
|
145
|
+
const t = Me(d.data.data, n);
|
|
146
|
+
L("counterpartBankAccount") !== t && h("counterpartBankAccount", t, {
|
|
147
|
+
shouldDirty: !0,
|
|
148
|
+
shouldTouch: !0,
|
|
149
|
+
shouldValidate: !0
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}, [d.data, d.isSuccess, n, L, h]), v(() => {
|
|
153
|
+
r?.id && j();
|
|
154
|
+
}, [j, r?.id]);
|
|
155
|
+
const {
|
|
156
|
+
currencyGroups: xe,
|
|
157
|
+
isLoadingCurrencyGroups: De
|
|
158
|
+
} = it();
|
|
159
|
+
return /* @__PURE__ */ i(we, { children: [
|
|
160
|
+
/* @__PURE__ */ e(M, { className: ct(Oe, l), sx: {
|
|
161
|
+
pb: 6,
|
|
162
|
+
display: "flex",
|
|
163
|
+
flex: "1 1 auto",
|
|
164
|
+
overflow: "auto",
|
|
165
|
+
width: "100%",
|
|
166
|
+
height: 0
|
|
167
|
+
}, children: /* @__PURE__ */ e(Qe, { ...B, children: /* @__PURE__ */ e("form", { style: {
|
|
168
|
+
width: "100%"
|
|
169
|
+
}, ref: re, id: Y, noValidate: !0, onBlur: () => {
|
|
170
|
+
Q.current = !1;
|
|
171
|
+
}, onKeyDown: (t) => {
|
|
172
|
+
Q.current = t.key === "Enter";
|
|
173
|
+
}, onSubmit: le(async (t) => {
|
|
174
|
+
const o = {
|
|
175
|
+
...t,
|
|
176
|
+
currency: t.currency,
|
|
177
|
+
counterpartAddressId: he.data?.data?.find(({
|
|
178
|
+
id: Te
|
|
179
|
+
}) => Te === t.counterpart)?.default_billing_address_id
|
|
180
|
+
}, y = qe(o, F);
|
|
181
|
+
r ? D && D(r.id, y, t.lineItems, de) : G && G(y, t.lineItems);
|
|
182
|
+
}), children: /* @__PURE__ */ i(S, { container: !0, spacing: 3, children: [
|
|
183
|
+
/* @__PURE__ */ e(S, { item: !0, xs: 12, children: /* @__PURE__ */ i(q, { variant: "outlined", sx: {
|
|
184
|
+
p: 3
|
|
185
|
+
}, className: l + "-Details", children: [
|
|
186
|
+
/* @__PURE__ */ e(P, { variant: "subtitle2", mb: 2, children: a._("Details") }),
|
|
187
|
+
/* @__PURE__ */ i(Je, { spacing: 3, children: [
|
|
188
|
+
/* @__PURE__ */ e(x, { name: "invoiceNumber", control: s, render: ({
|
|
189
|
+
field: t,
|
|
190
|
+
fieldState: {
|
|
191
|
+
error: o
|
|
192
|
+
}
|
|
193
|
+
}) => /* @__PURE__ */ e(J, { ...t, id: t.name, label: a._("Number"), variant: "standard", fullWidth: !0, error: !!o, helperText: o?.message, required: p("invoiceNumber", m) }) }),
|
|
194
|
+
/* @__PURE__ */ e(Le, { control: s, disabled: ve, name: "counterpart", label: a._("Vendor"), customerType: "vendor", required: p("counterpart", m) || I("counterpart_id", g), getCounterpartDefaultValues: (t) => ({
|
|
195
|
+
tax_id: "",
|
|
196
|
+
counterpart: {
|
|
197
|
+
email: r?.counterpart_raw_data?.email ?? "",
|
|
198
|
+
phone: r?.counterpart_raw_data?.phone ?? "",
|
|
199
|
+
isCustomer: !1,
|
|
200
|
+
isVendor: !0,
|
|
201
|
+
line1: r?.counterpart_raw_data?.address?.line1 ?? "",
|
|
202
|
+
line2: r?.counterpart_raw_data?.address?.line2 ?? "",
|
|
203
|
+
city: r?.counterpart_raw_data?.address?.city ?? "",
|
|
204
|
+
state: r?.counterpart_raw_data?.address?.state ?? "",
|
|
205
|
+
postalCode: r?.counterpart_raw_data?.address?.postal_code ?? "",
|
|
206
|
+
country: "US",
|
|
207
|
+
...t === "individual" && {
|
|
208
|
+
firstName: r?.counterpart_raw_data?.name ?? ""
|
|
209
|
+
},
|
|
210
|
+
...t === "individual" && {
|
|
211
|
+
lastName: ""
|
|
212
|
+
},
|
|
213
|
+
...t === "organization" && {
|
|
214
|
+
companyName: r?.counterpart_raw_data?.name ?? ""
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}), counterpartMatchingToOCR: R ? C : void 0, counterpartRawName: _e, showEditCounterpartButton: !0, setShowEditCounterpartDialog: V, counterpartAISuggested: Ce ? C : void 0 }),
|
|
218
|
+
/* @__PURE__ */ e(x, { name: "counterpartBankAccount", control: s, render: ({
|
|
219
|
+
field: t,
|
|
220
|
+
fieldState: {
|
|
221
|
+
error: o
|
|
222
|
+
}
|
|
223
|
+
}) => /* @__PURE__ */ i(Ke, { variant: "standard", fullWidth: !0, error: !!o, required: p("counterpartBankAccount", m) || I("counterpart_bank_account_id", g), children: [
|
|
224
|
+
/* @__PURE__ */ e(Ze, { htmlFor: t.name, children: a._("Bank account") }),
|
|
225
|
+
/* @__PURE__ */ i(Xe, { ...t, id: t.name, labelId: t.name, label: a._("Bank Account"), MenuProps: {
|
|
226
|
+
container: b
|
|
227
|
+
}, disabled: !d?.data || d?.data?.data.length === 0, children: [
|
|
228
|
+
!te && /* @__PURE__ */ e(K, { variant: "text", startIcon: /* @__PURE__ */ e(Z, {}), fullWidth: !0, sx: {
|
|
229
|
+
justifyContent: "flex-start",
|
|
230
|
+
px: 2,
|
|
231
|
+
py: 1
|
|
232
|
+
}, onClick: () => V(!0), children: a._("Add new bank account") }),
|
|
233
|
+
d?.data?.data.map((y) => /* @__PURE__ */ e(Ye, { value: y.id, children: nt(a, y) }, y.id))
|
|
234
|
+
] }),
|
|
235
|
+
o && /* @__PURE__ */ e($e, { children: o.message })
|
|
236
|
+
] }) }),
|
|
237
|
+
ye && /* @__PURE__ */ e(x, { name: "invoiceDate", control: s, render: ({
|
|
238
|
+
field: t,
|
|
239
|
+
fieldState: {
|
|
240
|
+
error: o
|
|
241
|
+
}
|
|
242
|
+
}) => /* @__PURE__ */ e(X, { maxDate: ue, slotProps: {
|
|
243
|
+
popper: {
|
|
244
|
+
container: b
|
|
245
|
+
},
|
|
246
|
+
dialog: {
|
|
247
|
+
container: b
|
|
248
|
+
},
|
|
249
|
+
actionBar: {
|
|
250
|
+
actions: ["clear", "today"]
|
|
251
|
+
},
|
|
252
|
+
textField: {
|
|
253
|
+
id: t.name,
|
|
254
|
+
variant: "outlined",
|
|
255
|
+
fullWidth: !0,
|
|
256
|
+
error: !!o,
|
|
257
|
+
helperText: o?.message,
|
|
258
|
+
required: p("invoiceDate", m) || I("issued_at", g)
|
|
259
|
+
}
|
|
260
|
+
}, ...t, label: a._("Issue date"), views: ["year", "month", "day"] }) }),
|
|
261
|
+
/* @__PURE__ */ e(x, { name: "dueDate", control: s, render: ({
|
|
262
|
+
field: t,
|
|
263
|
+
fieldState: {
|
|
264
|
+
error: o
|
|
265
|
+
}
|
|
266
|
+
}) => /* @__PURE__ */ e(X, { minDate: ce, slotProps: {
|
|
267
|
+
popper: {
|
|
268
|
+
container: b
|
|
269
|
+
},
|
|
270
|
+
dialog: {
|
|
271
|
+
container: b
|
|
272
|
+
},
|
|
273
|
+
actionBar: {
|
|
274
|
+
actions: ["clear", "today"]
|
|
275
|
+
},
|
|
276
|
+
textField: {
|
|
277
|
+
id: t.name,
|
|
278
|
+
variant: "outlined",
|
|
279
|
+
fullWidth: !0,
|
|
280
|
+
error: !!o,
|
|
281
|
+
helperText: o?.message,
|
|
282
|
+
required: p("dueDate", m)
|
|
283
|
+
}
|
|
284
|
+
}, ...t, label: a._("Due date"), views: ["year", "month", "day"] }) }),
|
|
285
|
+
/* @__PURE__ */ e(lt, { name: "currency", control: s, required: p("currency", m) || I("currency", g), groups: xe, disabled: De, allowedCurrencies: oe?.payables?.availableCurrencies }),
|
|
286
|
+
be && /* @__PURE__ */ e(dt, { control: s, name: "tags", label: a._("Tags"), variant: "standard", disabled: ne || !ge, required: p("tags", m) })
|
|
287
|
+
] })
|
|
288
|
+
] }) }),
|
|
289
|
+
/* @__PURE__ */ e(S, { item: !0, xs: 12, children: /* @__PURE__ */ i(q, { variant: "outlined", sx: {
|
|
290
|
+
p: 3
|
|
291
|
+
}, className: l + "-Items", children: [
|
|
292
|
+
/* @__PURE__ */ e(P, { variant: "subtitle2", mb: 2, children: a._("Items") }),
|
|
293
|
+
/* @__PURE__ */ e(Ve, { enableGLCodes: $ })
|
|
294
|
+
] }) }),
|
|
295
|
+
/* @__PURE__ */ e(S, { item: !0, xs: 12, className: l + "-Totals", children: /* @__PURE__ */ e(q, { variant: "outlined", children: /* @__PURE__ */ e(et, { children: /* @__PURE__ */ i(tt, { children: [
|
|
296
|
+
/* @__PURE__ */ i(A, { className: l + "-Totals-Subtotal", children: [
|
|
297
|
+
/* @__PURE__ */ e(c, { children: a._("Subtotal") }),
|
|
298
|
+
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ i(M, { gap: 0.5, alignItems: "center", justifyContent: "flex-end", display: "flex", children: [
|
|
299
|
+
N === null && !ee && /* @__PURE__ */ e(K, { variant: "text", startIcon: /* @__PURE__ */ e(Z, {}), size: "small", sx: {
|
|
300
|
+
pl: 1.25,
|
|
301
|
+
pr: 2,
|
|
302
|
+
py: 0
|
|
303
|
+
}, onClick: () => {
|
|
304
|
+
const t = B.setValue;
|
|
305
|
+
t("discount", 0);
|
|
306
|
+
}, children: a._("Add Discount") }),
|
|
307
|
+
f.subtotal && n ? k(F(f.subtotal, n) || 0, n) : "—"
|
|
308
|
+
] }) })
|
|
309
|
+
] }),
|
|
310
|
+
N !== null && /* @__PURE__ */ i(A, { className: l + "-Totals-Discount", children: [
|
|
311
|
+
/* @__PURE__ */ e(c, { children: a._("Discount") }),
|
|
312
|
+
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ i(M, { gap: 0.5, alignItems: "center", justifyContent: "flex-end", display: "flex", children: [
|
|
313
|
+
/* @__PURE__ */ e(rt, { "aria-label": "delete", onClick: () => {
|
|
314
|
+
const t = B.setValue;
|
|
315
|
+
t("discount", null);
|
|
316
|
+
}, children: /* @__PURE__ */ e(ut, {}) }),
|
|
317
|
+
/* @__PURE__ */ e(x, { name: "discount", control: s, render: ({
|
|
318
|
+
field: t,
|
|
319
|
+
fieldState: {
|
|
320
|
+
error: o
|
|
321
|
+
}
|
|
322
|
+
}) => /* @__PURE__ */ e(J, { ...t, id: t.name, variant: "standard", type: "number", inputProps: {
|
|
323
|
+
min: 0,
|
|
324
|
+
step: 0.01
|
|
325
|
+
}, error: !!o, sx: {
|
|
326
|
+
width: 150
|
|
327
|
+
}, InputProps: {
|
|
328
|
+
endAdornment: ie(n)
|
|
329
|
+
} }) })
|
|
330
|
+
] }) })
|
|
331
|
+
] }),
|
|
332
|
+
/* @__PURE__ */ i(A, { className: l + "-Totals-Taxes", children: [
|
|
333
|
+
/* @__PURE__ */ e(c, { children: a._("Tax total") }),
|
|
334
|
+
/* @__PURE__ */ e(c, { align: "right", children: f.taxes && n ? k(F(f.taxes, n) || 0, n) : "—" })
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ i(A, { className: l + "-Totals-Total", children: [
|
|
337
|
+
/* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(P, { variant: "subtitle1", children: a._("Total") }) }),
|
|
338
|
+
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ e(P, { variant: "subtitle1", children: f.total && n ? k(F(f.total, n) || 0, n) : "—" }) })
|
|
339
|
+
] })
|
|
340
|
+
] }) }) }) })
|
|
341
|
+
] }) }) }) }),
|
|
342
|
+
_ && /* @__PURE__ */ e(je, { counterpartId: _, open: pe, onClose: () => V(!1), customerType: "vendor" })
|
|
17
343
|
] });
|
|
18
|
-
}
|
|
344
|
+
};
|
|
19
345
|
export {
|
|
20
|
-
|
|
346
|
+
xr as PayableDetailsForm
|
|
21
347
|
};
|