@tesouro/embedded-components-react 0.2.226 → 0.2.231
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 +6 -5
- package/dist/index.d.ts +20 -2
- package/dist/lib/ExpenseManagementWidget.d.ts +18 -0
- package/dist/lib/ReceivablesWidget.js +25 -25
- package/dist/lib/UploadReceiptWidget.d.ts +20 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index2.js +115 -115
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index6.js +24 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +89 -52
- package/dist/libs/tesouro-embedded-components-react/expense-upload-receipt-widget/ui/dist/index4.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +7 -6
- 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 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -1271
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +25 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1271 -2
- 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 +60 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +398 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +94 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +25 -10
- 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 +10 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +19 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +79 -215
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +4 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +18 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +79 -15
- 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 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +20 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +114 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +70 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +15 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +12 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +43 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +75 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +217 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +78 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +62 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +7 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +226 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +468 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +110 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +539 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +23 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +30 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +12 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +12 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +119 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +47 -226
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +45 -466
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +12 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +40 -533
- 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 +11 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +150 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +53 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +70 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +100 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +13 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +36 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +50 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +82 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +34 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +66 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +360 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +117 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +20 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +13 -360
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +14 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +54 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +28 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +17 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +107 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +12 -37
- 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 +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +22 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +55 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +52 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +95 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +41 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +142 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +101 -44
- 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 +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +94 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +96 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +209 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +22 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +54 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +27 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +58 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +125 -56
- 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 +85 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +183 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +25 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +19 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +80 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +149 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +10 -18
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +6 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +60 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +34 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +20 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +72 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +62 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +158 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +28 -8
- 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 +28 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +78 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +37 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +342 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +303 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +103 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +156 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +264 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +23 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +18 -18
- 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 +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +23 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +19 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +28 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +42 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +63 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +86 -481
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +106 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +83 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +25 -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 +128 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +49 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +117 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +107 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +50 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +205 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +68 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +31 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +4 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +18 -47
- 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 +35 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +27 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +32 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +28 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +76 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +41 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +41 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +62 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +30 -19
- 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 +118 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +22 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +41 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +54 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +126 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +486 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +165 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +21 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +17 -22
- 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 +17 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +168 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +134 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +159 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +19 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +60 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +65 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +57 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +6 -61
- 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 +9 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +58 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +22 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +58 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +14 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +52 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +25 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +5 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +72 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +32 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +50 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +49 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +24 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +42 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +15 -25
- 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 +72 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +94 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +9 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +10 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +6 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +126 -4
- 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 +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +50 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +255 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +81 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +83 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +267 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +37 -19
- 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 +62 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +41 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +132 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +116 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +82 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +93 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +282 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +43 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +15 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +53 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +31 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +67 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +17 -23
- 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 +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +17 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +14 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +20 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +65 -283
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +21 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +5 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +91 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +36 -26
- 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 +31 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +19 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +21 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +11 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +42 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +26 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +120 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +11 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +33 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +22 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +101 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +107 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +69 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +65 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +38 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +28 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +24 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +38 -71
- 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 +15 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +74 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +22 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +52 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +67 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +33 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +40 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +36 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +50 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +56 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +54 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +40 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +46 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +73 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +82 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +52 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +52 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +52 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +15 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +19 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +35 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.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/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +1 -1
|
@@ -1,14 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { DataGridEmptyState as n } from "./index171.js";
|
|
3
|
+
import { useLingui as h } from "@lingui/react";
|
|
4
|
+
const b = ({
|
|
5
|
+
isLoading: o,
|
|
6
|
+
dataLength: a,
|
|
7
|
+
isFiltering: r,
|
|
8
|
+
isSearching: s,
|
|
9
|
+
isError: l,
|
|
10
|
+
onCreate: y,
|
|
11
|
+
refetch: m,
|
|
12
|
+
entityName: e,
|
|
13
|
+
noDataTitle: c,
|
|
14
|
+
noDataDescription1: p,
|
|
15
|
+
filterTitle: N,
|
|
16
|
+
filterDescription1: d,
|
|
17
|
+
actionButtonLabel: L,
|
|
18
|
+
actionOptions: u,
|
|
19
|
+
onAction: f,
|
|
20
|
+
type: g
|
|
21
|
+
}) => {
|
|
3
22
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
return s.
|
|
7
|
-
|
|
8
|
-
}, {
|
|
9
|
-
|
|
10
|
-
})
|
|
23
|
+
i18n: t
|
|
24
|
+
} = h();
|
|
25
|
+
return !o && a === 0 && (r || s) ? /* @__PURE__ */ i(n, { title: N || c || t._("No {entityName} Found", {
|
|
26
|
+
entityName: e
|
|
27
|
+
}), descriptionLine1: d || "", type: "no-filter", onAction: f }) : !o && a === 0 && !r && !s ? /* @__PURE__ */ i(n, { title: c || t._("No {entityName}", {
|
|
28
|
+
entityName: e
|
|
29
|
+
}), descriptionLine1: p || t._("You don’t have any {entityName} yet.", {
|
|
30
|
+
entityName: e.toLowerCase()
|
|
31
|
+
}), actionOptions: u, actionButtonLabel: L, onAction: (_) => {
|
|
32
|
+
y && y(_ ?? "");
|
|
33
|
+
}, type: g || "no-data" }) : l ? /* @__PURE__ */ i(n, { title: t._("Failed to load {entityName}", {
|
|
34
|
+
entityName: e
|
|
35
|
+
}), descriptionLine1: t._("There was an error loading {entityName}.", {
|
|
36
|
+
entityName: e.toLowerCase()
|
|
37
|
+
}), actionButtonLabel: t._("Reload"), onAction: m, type: "error" }) : null;
|
|
11
38
|
};
|
|
12
39
|
export {
|
|
13
|
-
|
|
40
|
+
b as GetNoRowsOverlay
|
|
14
41
|
};
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { memo as a } from "react";
|
|
3
|
+
import { useMoniteContext as m } from "./index57.js";
|
|
4
|
+
import { Skeleton as n } from "./index156.js";
|
|
5
|
+
import { Typography as s } from "./index85.js";
|
|
6
|
+
const c = a(({
|
|
7
|
+
unitId: e
|
|
8
|
+
}) => {
|
|
3
9
|
const {
|
|
4
|
-
api:
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
+
api: r
|
|
11
|
+
} = m(), {
|
|
12
|
+
data: t,
|
|
13
|
+
isLoading: i
|
|
14
|
+
} = r.finops.getMeasureUnitsId.useQuery({
|
|
15
|
+
path: {
|
|
16
|
+
unit_id: e
|
|
17
|
+
}
|
|
10
18
|
});
|
|
11
|
-
};
|
|
19
|
+
return i ? /* @__PURE__ */ o(n, { className: "ttw:h-4 ttw:w-4" }) : t ? /* @__PURE__ */ o(s, { color: "muted", variant: "body2", children: t.name }) : null;
|
|
20
|
+
});
|
|
12
21
|
export {
|
|
13
|
-
|
|
22
|
+
c as MeasureUnit
|
|
14
23
|
};
|
|
@@ -1,51 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { useLingui as u } from "@lingui/react";
|
|
5
|
-
import { cva as _ } from "class-variance-authority";
|
|
6
|
-
import { isBillOverdue as f } from "./index150.js";
|
|
7
|
-
function m(t) {
|
|
8
|
-
return t === "waiting_to_be_paid" || t === "partially_paid" ? "ready_to_pay" : t === "new" || t === "draft" ? "draft" : t === "approve_in_progress" ? "pending_approval" : t === "rejected" ? "rejected" : t === "paid" ? "paid" : "cancelled";
|
|
1
|
+
function e() {
|
|
2
|
+
const t = window.getSelection();
|
|
3
|
+
return !!t && !!t.toString();
|
|
9
4
|
}
|
|
10
|
-
function v(t, a, r) {
|
|
11
|
-
const e = {
|
|
12
|
-
overdue: t._("Overdue"),
|
|
13
|
-
ready_to_pay: t._("Ready to pay"),
|
|
14
|
-
pending_approval: t._("Pending approval"),
|
|
15
|
-
rejected: t._("Rejected"),
|
|
16
|
-
draft: t._("New"),
|
|
17
|
-
paid: t._("Paid"),
|
|
18
|
-
cancelled: t._("Cancelled")
|
|
19
|
-
};
|
|
20
|
-
return r ? e.overdue : e[a];
|
|
21
|
-
}
|
|
22
|
-
const b = _("", {
|
|
23
|
-
variants: {
|
|
24
|
-
variant: {
|
|
25
|
-
overdue: "ttw:bg-red-100 ttw:text-red-700",
|
|
26
|
-
ready_to_pay: "ttw:bg-green-100 ttw:text-green-700",
|
|
27
|
-
pending_approval: "ttw:bg-blue-100 ttw:text-blue-700",
|
|
28
|
-
rejected: "ttw:bg-orange-100 ttw:text-orange-700",
|
|
29
|
-
draft: "ttw:bg-neutral-100 ttw:text-neutral-700",
|
|
30
|
-
paid: "ttw:bg-white ttw:text-green-700",
|
|
31
|
-
cancelled: "ttw:bg-white ttw:text-neutral-400"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}), C = ({
|
|
35
|
-
status: t,
|
|
36
|
-
dueDate: a,
|
|
37
|
-
className: r,
|
|
38
|
-
showBadgeBackground: e = !0,
|
|
39
|
-
showOverdueBadge: i = !1,
|
|
40
|
-
ref: o
|
|
41
|
-
}) => {
|
|
42
|
-
const {
|
|
43
|
-
i18n: p
|
|
44
|
-
} = u(), l = f(t, a), n = m(t), d = n === "paid", s = d ? !1 : e;
|
|
45
|
-
return /* @__PURE__ */ c(g, { ref: o, className: w("ttw:inline-flex ttw:items-center ttw:gap-1", b({
|
|
46
|
-
variant: l ? "overdue" : n
|
|
47
|
-
}), !e && !d && "ttw:text-zinc-950!", r), showBadgeBackground: s, children: v(p, n, i) });
|
|
48
|
-
};
|
|
49
5
|
export {
|
|
50
|
-
|
|
6
|
+
e as hasSelectedText
|
|
51
7
|
};
|
|
@@ -1,51 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Button as c } from "./index84.js";
|
|
3
|
-
import { Typography as o } from "./index85.js";
|
|
4
|
-
import { useLingui as b } from "@lingui/react";
|
|
5
|
-
import { Landmark as x, Plus as y } from "lucide-react";
|
|
6
|
-
import { useState as k } from "react";
|
|
7
|
-
import { twMerge as N } from "tailwind-merge";
|
|
8
|
-
import { CounterpartBankFormContent as C } from "./index339.js";
|
|
9
|
-
import { CounterpartBankForm as h } from "./index340.js";
|
|
10
|
-
const E = ({
|
|
11
|
-
isStandalone: f,
|
|
12
|
-
counterpartId: i,
|
|
13
|
-
bankAccount: e,
|
|
14
|
-
isUpdateAllowed: d,
|
|
15
|
-
isDeleteAllowed: w,
|
|
16
|
-
onRemoveClick: g,
|
|
17
|
-
isLoading: m
|
|
18
|
-
}) => {
|
|
19
|
-
const {
|
|
20
|
-
i18n: r
|
|
21
|
-
} = b(), [v, l] = k(!1), p = !!e, s = p && (!e?.account_holder_name || !e?.account_number || !e?.routing_number), n = () => {
|
|
22
|
-
l(!1);
|
|
23
|
-
};
|
|
24
|
-
return v ? /* @__PURE__ */ t(u, { children: f && i ? /* @__PURE__ */ t(u, { children: e ? /* @__PURE__ */ t(h, { bankAccount: e, handleClose: n, counterpartId: i, onUpdate: n, isStandalone: !0 }) : /* @__PURE__ */ t(h, { handleClose: n, counterpartId: i, onCreate: n, isStandalone: !0 }) }) : /* @__PURE__ */ t(C, { hasExistingBankAccount: !1, handleCancel: n, isLoading: m, isStandalone: !1 }) }) : /* @__PURE__ */ a("div", { className: N("ttw:flex ttw:items-start ttw:gap-3 ttw:p-3 ttw:rounded-lg ttw:border ttw:border-border", s ? "ttw:border-danger" : "ttw:border-border"), children: [
|
|
25
|
-
/* @__PURE__ */ t("div", { className: "ttw:p-2 ttw:text-white ttw:flex ttw:items-center ttw:justify-center ttw:bg-primary ttw:rounded-lg", children: /* @__PURE__ */ t(x, { className: "ttw:size-4" }) }),
|
|
26
|
-
p ? /* @__PURE__ */ a("div", { className: "ttw:flex ttw:items-center ttw:flex-1 ttw:gap-0.5", children: [
|
|
27
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5 ttw:flex-1", children: [
|
|
28
|
-
/* @__PURE__ */ t(o, { variant: "body2", className: "ttw:leading-5", children: r._("ACH bank transfer") }),
|
|
29
|
-
/* @__PURE__ */ t(o, { variant: "caption", color: s ? "destructive" : "muted", className: "ttw:leading-4", children: s ? r._("Incomplete") : r._("Account ending in {last4}", {
|
|
30
|
-
last4: e?.account_number?.slice(e.account_number?.length - 4)
|
|
31
|
-
}) })
|
|
32
|
-
] }),
|
|
33
|
-
(d || w) && /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-3 ttw:items-center", children: [
|
|
34
|
-
d && /* @__PURE__ */ t(c, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent", onClick: () => l(!0), children: r._("Edit") }),
|
|
35
|
-
w && /* @__PURE__ */ t(c, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent", onClick: () => g?.(), children: r._("Remove") })
|
|
36
|
-
] })
|
|
37
|
-
] }) : /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
38
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
39
|
-
/* @__PURE__ */ t(o, { variant: "body2", className: "ttw:leading-5", children: r._("ACH bank transfer") }),
|
|
40
|
-
/* @__PURE__ */ t(o, { variant: "caption", color: "muted", className: "ttw:leading-4", children: r._("Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.") })
|
|
41
|
-
] }),
|
|
42
|
-
/* @__PURE__ */ a(c, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary/70 ttw:w-fit ttw:px-0 ttw:has-[>svg]:px-0 ttw:py-2 ttw:hover:bg-transparent", onClick: () => l(!0), disabled: m, children: [
|
|
43
|
-
/* @__PURE__ */ t(y, {}),
|
|
44
|
-
r._("Add bank account")
|
|
45
|
-
] })
|
|
46
|
-
] })
|
|
47
|
-
] });
|
|
48
|
-
};
|
|
1
|
+
const E = "search";
|
|
49
2
|
export {
|
|
50
|
-
E as
|
|
3
|
+
E as FILTER_TYPE_SEARCH
|
|
51
4
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
const
|
|
1
|
+
import { useMoniteContext as r } from "./index57.js";
|
|
2
|
+
const u = (e, t = !0) => {
|
|
3
3
|
const {
|
|
4
|
-
api:
|
|
5
|
-
} =
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
counterpart_id: t ?? ""
|
|
9
|
-
}
|
|
4
|
+
api: o
|
|
5
|
+
} = r();
|
|
6
|
+
return o.finops.getProducts.useQuery({
|
|
7
|
+
query: e
|
|
10
8
|
}, {
|
|
11
|
-
enabled:
|
|
9
|
+
enabled: t
|
|
12
10
|
});
|
|
13
11
|
};
|
|
14
12
|
export {
|
|
15
|
-
|
|
13
|
+
u as useGetProducts
|
|
16
14
|
};
|
|
@@ -1,48 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Button as
|
|
3
|
-
import {
|
|
4
|
-
import { useLingui as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { twMerge as A } from "tailwind-merge";
|
|
10
|
-
const k = ({
|
|
11
|
-
isStandalone: p,
|
|
12
|
-
counterpartId: n,
|
|
13
|
-
counterpartAddress: e,
|
|
14
|
-
isUpdateAllowed: v,
|
|
15
|
-
isLoading: u,
|
|
16
|
-
customerType: d
|
|
1
|
+
import { jsx as e, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as s } from "./index84.js";
|
|
3
|
+
import { Sheet as a, SheetContent as i, SheetHeader as d, SheetTitle as l, SheetDescription as h, SheetFooter as m } from "./index149.js";
|
|
4
|
+
import { useLingui as c } from "@lingui/react";
|
|
5
|
+
import { ManageMeasureUnitsForm as p } from "./index272.js";
|
|
6
|
+
const b = ({
|
|
7
|
+
handleClose: r,
|
|
8
|
+
open: o
|
|
17
9
|
}) => {
|
|
18
10
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ r(a, { variant: "body1", className: "ttw:font-medium", children: [
|
|
26
|
-
o._("Address"),
|
|
27
|
-
" ",
|
|
28
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-muted-foreground", children: o._("(optional)") })
|
|
29
|
-
] }),
|
|
30
|
-
l && v && /* @__PURE__ */ t(h, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent", onClick: () => i(!0), children: o._("Edit") })
|
|
11
|
+
i18n: t
|
|
12
|
+
} = c();
|
|
13
|
+
return /* @__PURE__ */ e(a, { open: o, onOpenChange: r, children: /* @__PURE__ */ n(i, { side: "right", className: "ttw:gap-0 ttw:p-0", children: [
|
|
14
|
+
/* @__PURE__ */ n(d, { className: "ttw:border-b ttw:border-border", children: [
|
|
15
|
+
/* @__PURE__ */ e(l, { children: t._("Manage measure units") }),
|
|
16
|
+
/* @__PURE__ */ e(h, { hidden: !0, children: t._("Manage measure units") })
|
|
31
17
|
] }),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */ t(a, { variant: "body2", className: "ttw:font-medium", children: `${m && m}${m && (c || w) && ","} ${c && c} ${w && w}` }),
|
|
36
|
-
/* @__PURE__ */ t(a, { variant: "body2", className: "ttw:font-medium", children: e?.country })
|
|
37
|
-
] }) : /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
38
|
-
/* @__PURE__ */ t(a, { variant: "body2", className: "ttw:leading-5", children: o._("No address on file") }),
|
|
39
|
-
/* @__PURE__ */ r(h, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary/70 ttw:w-fit ttw:px-0 ttw:has-[>svg]:px-0 ttw:py-2 ttw:hover:bg-transparent", onClick: () => i(!0), disabled: u, children: [
|
|
40
|
-
/* @__PURE__ */ t(b, {}),
|
|
41
|
-
o._("Add address")
|
|
42
|
-
] })
|
|
43
|
-
] }) })
|
|
44
|
-
] });
|
|
18
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex-1 ttw:overflow-y-auto ttw:px-6 ttw:py-4", children: /* @__PURE__ */ e(p, {}) }),
|
|
19
|
+
/* @__PURE__ */ e(m, { className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end", children: /* @__PURE__ */ e(s, { onClick: r, children: t._("Done") }) })
|
|
20
|
+
] }) });
|
|
45
21
|
};
|
|
46
22
|
export {
|
|
47
|
-
|
|
23
|
+
b as ManageMeasureUnits
|
|
48
24
|
};
|
|
@@ -1,17 +1,81 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as a, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "./index100.js";
|
|
3
|
+
import * as o from "@radix-ui/react-dialog";
|
|
4
|
+
import { XIcon as u } from "lucide-react";
|
|
5
|
+
function x({
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ a(o.Root, { "data-slot": "sheet", ...t });
|
|
9
|
+
}
|
|
10
|
+
function b({
|
|
11
|
+
...t
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ a(o.Close, { "data-slot": "sheet-close", ...t });
|
|
14
|
+
}
|
|
15
|
+
function f({
|
|
16
|
+
container: t,
|
|
17
|
+
...e
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ a(o.Portal, { "data-slot": "sheet-portal", ...e, container: t });
|
|
20
|
+
}
|
|
21
|
+
const r = (t) => t === "under-dialogs" ? "ttw:z-1295" : "ttw:z-1300";
|
|
22
|
+
function m({
|
|
23
|
+
className: t,
|
|
24
|
+
layer: e = "default",
|
|
25
|
+
...s
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ a(o.Overlay, { "data-slot": "sheet-overlay", className: n("ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:fixed ttw:inset-0 ttw:bg-black/50", r(e), t), ...s });
|
|
28
|
+
}
|
|
29
|
+
function N({
|
|
30
|
+
className: t,
|
|
31
|
+
children: e,
|
|
32
|
+
side: s = "right",
|
|
33
|
+
container: w = typeof document < "u" ? document.body : null,
|
|
34
|
+
showCloseButton: d = !0,
|
|
35
|
+
layer: i = "default",
|
|
36
|
+
...c
|
|
37
|
+
}) {
|
|
38
|
+
return /* @__PURE__ */ l(f, { container: w, children: [
|
|
39
|
+
/* @__PURE__ */ a(m, { layer: i }),
|
|
40
|
+
/* @__PURE__ */ l(o.Content, { "data-slot": "sheet-content", className: n("ttw:bg-background ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:fixed ttw:flex ttw:flex-col ttw:gap-4 ttw:shadow-lg ttw:transition ttw:ease-in-out ttw:data-[state=closed]:duration-300 ttw:data-[state=open]:duration-500", r(i), s === "right" && "ttw:data-[state=closed]:slide-out-to-right ttw:data-[state=open]:slide-in-from-right ttw:inset-y-0 ttw:right-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", s === "left" && "ttw:data-[state=closed]:slide-out-to-left ttw:data-[state=open]:slide-in-from-left ttw:inset-y-0 ttw:left-0 ttw:h-full ttw:w-3/4 ttw:sm:max-w-[600px]", s === "top" && "ttw:data-[state=closed]:slide-out-to-top ttw:data-[state=open]:slide-in-from-top ttw:inset-x-0 ttw:top-0 ttw:h-auto ttw:border-b", s === "bottom" && "ttw:data-[state=closed]:slide-out-to-bottom ttw:data-[state=open]:slide-in-from-bottom ttw:inset-x-0 ttw:bottom-0 ttw:h-auto ttw:border-t", t), ...c, children: [
|
|
41
|
+
e,
|
|
42
|
+
d && /* @__PURE__ */ l(o.Close, { className: "ttw:p-2 ttw:ring-offset-background ttw:focus:ring-ring ttw:data-[state=open]:bg-neutral ttw:absolute ttw:top-4 ttw:right-4 ttw:rounded-xs ttw:opacity-70 ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:ring-2 ttw:focus:ring-offset-2 ttw:focus:outline-hidden ttw:cursor-pointer ttw:disabled:pointer-events-none", children: [
|
|
43
|
+
/* @__PURE__ */ a(u, { className: "ttw:size-4" }),
|
|
44
|
+
/* @__PURE__ */ a("span", { className: "ttw:sr-only", children: "Close" })
|
|
45
|
+
] })
|
|
46
|
+
] })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
function y({
|
|
50
|
+
className: t,
|
|
51
|
+
...e
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ a("div", { "data-slot": "sheet-header", className: n("ttw:flex ttw:flex-col ttw:gap-1.5 ttw:p-4", t), ...e });
|
|
54
|
+
}
|
|
55
|
+
function C({
|
|
56
|
+
className: t,
|
|
57
|
+
...e
|
|
58
|
+
}) {
|
|
59
|
+
return /* @__PURE__ */ a("div", { "data-slot": "sheet-footer", className: n("ttw:mt-auto ttw:flex ttw:flex-col ttw:gap-2 ttw:p-4", t), ...e });
|
|
60
|
+
}
|
|
61
|
+
function S({
|
|
62
|
+
className: t,
|
|
63
|
+
...e
|
|
64
|
+
}) {
|
|
65
|
+
return /* @__PURE__ */ a(o.Title, { "data-slot": "sheet-title", className: n("ttw:text-foreground ttw:font-semibold", t), ...e });
|
|
66
|
+
}
|
|
67
|
+
function v({
|
|
68
|
+
className: t,
|
|
69
|
+
...e
|
|
70
|
+
}) {
|
|
71
|
+
return /* @__PURE__ */ a(o.Description, { "data-slot": "sheet-description", className: n("ttw:text-muted-foreground ttw:text-sm", t), ...e });
|
|
72
|
+
}
|
|
15
73
|
export {
|
|
16
|
-
|
|
74
|
+
x as Sheet,
|
|
75
|
+
b as SheetClose,
|
|
76
|
+
N as SheetContent,
|
|
77
|
+
v as SheetDescription,
|
|
78
|
+
C as SheetFooter,
|
|
79
|
+
y as SheetHeader,
|
|
80
|
+
S as SheetTitle
|
|
17
81
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o, jsxs as te } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { CreatePayableMenu as ie } from "./
|
|
2
|
+
import { CreatePayableMenu as ie } from "./index137.js";
|
|
3
3
|
import { PayableDetails as L } from "./index13.js";
|
|
4
4
|
import { PayablesTable as re } from "./index14.js";
|
|
5
5
|
import { usePayableCallbacks as le } from "./index18.js";
|
|
6
6
|
import { useMoniteContext as se } from "./index57.js";
|
|
7
7
|
import { MoniteScopedProviders as de } from "./index83.js";
|
|
8
8
|
import { useRootElements as pe } from "./index92.js";
|
|
9
|
-
import { getAPIErrorMessage as me } from "./
|
|
9
|
+
import { getAPIErrorMessage as me } from "./index122.js";
|
|
10
10
|
import { useLingui as ue } from "@lingui/react";
|
|
11
11
|
import { useState as y, useRef as ce, useEffect as fe, useMemo as be } from "react";
|
|
12
12
|
import { toast as s } from "react-hot-toast";
|
|
@@ -14,16 +14,16 @@ import { useFileInput as ye } from "./index61.js";
|
|
|
14
14
|
import "react-dom";
|
|
15
15
|
import "@mui/x-data-grid";
|
|
16
16
|
import { useComponentSettings as Ce } from "./index67.js";
|
|
17
|
-
import { useUserPermissions as he } from "./
|
|
17
|
+
import { useUserPermissions as he } from "./index135.js";
|
|
18
18
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
19
19
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
20
20
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
21
21
|
import "@tanstack/react-query";
|
|
22
22
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
23
23
|
import { Scope as _ } from "../../shared/data-access/dist/lib/scopes.js";
|
|
24
|
-
import { generatePayablesButtonCssVars as ve } from "./
|
|
24
|
+
import { generatePayablesButtonCssVars as ve } from "./index138.js";
|
|
25
25
|
import { Dialog as U } from "./index50.js";
|
|
26
|
-
import { AccessRestriction as Pe } from "./
|
|
26
|
+
import { AccessRestriction as Pe } from "./index136.js";
|
|
27
27
|
import "./index84.js";
|
|
28
28
|
import "clsx";
|
|
29
29
|
import "tailwind-merge";
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const n = new Date(e);
|
|
7
|
-
return n.setUTCHours(0, 0, 0, 0), n.getTime() < t.getTime();
|
|
8
|
-
}
|
|
9
|
-
return !1;
|
|
10
|
-
}
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { twMerge as e } from "tailwind-merge";
|
|
3
|
+
const w = ({
|
|
4
|
+
className: t
|
|
5
|
+
}) => /* @__PURE__ */ r("div", { className: e("ttw:w-8 ttw:h-8 ttw:rounded-full ttw:border-3 ttw:border-primary ttw:border-t-transparent ttw:animate-spin", t) });
|
|
11
6
|
export {
|
|
12
|
-
|
|
7
|
+
w as LoadingSpinner
|
|
13
8
|
};
|
|
@@ -1,154 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { useState as E, useId as O, useMemo as R, useCallback as I } from "react";
|
|
6
|
-
import { CounterpartFormContent as M } from "./index215.js";
|
|
7
|
-
import { useForm as W, FormProvider as q } from "react-hook-form";
|
|
8
|
-
import { zodResolver as G } from "@hookform/resolvers/zod";
|
|
9
|
-
import { getCreateCounterpartValidationSchema as J } from "./index216.js";
|
|
10
|
-
import { useUserPermissions as K } from "./index141.js";
|
|
11
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
12
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
13
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
14
|
-
import "@tanstack/react-query";
|
|
15
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
16
|
-
import { Scope as Q } from "../../shared/data-access/dist/lib/scopes.js";
|
|
17
|
-
import { AccessRestriction as X } from "./index152.js";
|
|
18
|
-
import { useCreateCounterpart as Y } from "./index217.js";
|
|
19
|
-
import { LanguageCodeEnum as Z } from "./index218.js";
|
|
20
|
-
import "./index57.js";
|
|
21
|
-
import "react-hot-toast";
|
|
22
|
-
import { useCreateCounterpartBank as ee } from "./index219.js";
|
|
23
|
-
import "date-fns";
|
|
24
|
-
import { LoadingSpinner as te } from "./index131.js";
|
|
25
|
-
const Te = ({
|
|
26
|
-
open: w,
|
|
27
|
-
onClose: _,
|
|
28
|
-
onCreate: u,
|
|
29
|
-
getCounterpartDefaultValues: S,
|
|
30
|
-
customerType: r
|
|
31
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as i } from "./index57.js";
|
|
2
|
+
import { useLingui as a } from "@lingui/react";
|
|
3
|
+
import { toast as s } from "react-hot-toast";
|
|
4
|
+
const m = (r) => {
|
|
32
5
|
const {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
email: t?.counterpart?.email ?? "",
|
|
49
|
-
phone: t?.counterpart?.phone ?? "",
|
|
50
|
-
line1: t?.counterpart?.line1 ?? "",
|
|
51
|
-
line2: t?.counterpart?.line2 ?? "",
|
|
52
|
-
city: t?.counterpart?.city ?? "",
|
|
53
|
-
state: t?.counterpart.state ?? "",
|
|
54
|
-
country: t?.counterpart?.country ?? "US",
|
|
55
|
-
postalCode: t?.counterpart?.postalCode ?? "",
|
|
56
|
-
firstName: t && "firstName" in t.counterpart ? t.counterpart.firstName : "",
|
|
57
|
-
lastName: t && "lastName" in t.counterpart ? t.counterpart.lastName : "",
|
|
58
|
-
companyName: t && "companyName" in t.counterpart ? t.counterpart.companyName : ""
|
|
59
|
-
}), [r, t]), {
|
|
60
|
-
watch: o,
|
|
61
|
-
...h
|
|
62
|
-
} = W({
|
|
63
|
-
resolver: G(J(n, s ?? "organization", r)),
|
|
64
|
-
defaultValues: z
|
|
65
|
-
}), $ = !!(o("companyName") || o("firstName") && o("lastName")) && !!o("email") && (r === "vendor" && !!o("line1") && !!o("city") && !!o("state") && !!o("postalCode") && !!o("country") || r === "customer"), D = I((m) => {
|
|
66
|
-
m.preventDefault(), m.stopPropagation(), h.handleSubmit(async (e) => {
|
|
67
|
-
const l = e.line1?.trim() && e.city?.trim() ? {
|
|
68
|
-
city: e.city ?? "",
|
|
69
|
-
country: e.country ?? "US",
|
|
70
|
-
line1: e.line1 ?? "",
|
|
71
|
-
line2: e.line2,
|
|
72
|
-
postal_code: e.postalCode ?? "",
|
|
73
|
-
state: e.state ?? ""
|
|
74
|
-
} : void 0, P = {
|
|
75
|
-
account_holder_name: e.accountHolderName,
|
|
76
|
-
routing_number: e.routingNumber,
|
|
77
|
-
account_number: e.accountNumber,
|
|
78
|
-
is_default_for_currency: !0,
|
|
79
|
-
country: "US",
|
|
80
|
-
currency: "USD"
|
|
81
|
-
}, F = !!e.accountHolderName || !!e.accountNumber || !!e.routingNumber, N = {
|
|
82
|
-
tax_id: e.tax_id,
|
|
83
|
-
is_customer: e.isCustomer,
|
|
84
|
-
is_vendor: e.isVendor,
|
|
85
|
-
language: Z.find((i) => i === n.locale.split("-")[0]) ?? "en",
|
|
86
|
-
reminders_enabled: e.remindersEnabled
|
|
87
|
-
}, C = s === "individual" ? {
|
|
88
|
-
...N,
|
|
89
|
-
type: "individual",
|
|
90
|
-
individual: {
|
|
91
|
-
first_name: e.firstName ?? "",
|
|
92
|
-
last_name: e.lastName ?? "",
|
|
93
|
-
phone: e.phone ?? "",
|
|
94
|
-
email: e.email ?? "",
|
|
95
|
-
...l ? {
|
|
96
|
-
address: l
|
|
97
|
-
} : {}
|
|
98
|
-
}
|
|
99
|
-
} : {
|
|
100
|
-
...N,
|
|
101
|
-
type: "organization",
|
|
102
|
-
organization: {
|
|
103
|
-
legal_name: e.companyName ?? "",
|
|
104
|
-
phone: e.phone ?? "",
|
|
105
|
-
email: e.email ?? "",
|
|
106
|
-
...l ? {
|
|
107
|
-
address: l
|
|
108
|
-
} : {}
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
if (F) {
|
|
112
|
-
const i = await d(C);
|
|
113
|
-
return y({
|
|
114
|
-
path: {
|
|
115
|
-
counterpart_id: i.id
|
|
116
|
-
},
|
|
117
|
-
body: P
|
|
118
|
-
}, {
|
|
119
|
-
onSuccess: () => {
|
|
120
|
-
u && u(i.id);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
} else
|
|
124
|
-
return d(C, {
|
|
125
|
-
onSuccess: ({
|
|
126
|
-
id: i
|
|
127
|
-
}) => {
|
|
128
|
-
u && u(i);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
})(m);
|
|
132
|
-
}, [d, s, y, h.handleSubmit, n]);
|
|
133
|
-
return /* @__PURE__ */ a(V, { open: w, onOpenChange: _, children: /* @__PURE__ */ p(A, { className: "ttw:gap-0", children: [
|
|
134
|
-
/* @__PURE__ */ p(H, { className: "ttw:border-b ttw:border-border", children: [
|
|
135
|
-
/* @__PURE__ */ a(L, { className: "ttw:text-2xl", children: n._("Add {customerType}", {
|
|
136
|
-
customerType: r
|
|
137
|
-
}) }),
|
|
138
|
-
/* @__PURE__ */ a(j, { className: "ttw:max-w-130", children: r === "vendor" ? n._("Save the people and businesses you pay so you can send payments when bills come in.") : n._("Save the people and businesses you sell to.") })
|
|
139
|
-
] }),
|
|
140
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto", children: b ? /* @__PURE__ */ a(q, { ...h, watch: o, children: /* @__PURE__ */ a("form", { id: f, onSubmit: D, children: /* @__PURE__ */ a(M, { counterpartType: s ?? "organization", handleChangeCounterpartType: (m) => v(m), isLoading: c, customerType: r }) }) }) : /* @__PURE__ */ a(X, {}) }),
|
|
141
|
-
/* @__PURE__ */ p(k, { className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end", children: [
|
|
142
|
-
/* @__PURE__ */ a(B, { asChild: !0, children: /* @__PURE__ */ a(g, { variant: "outline", disabled: c, className: "ttw:flex-1 ttw:border-border", children: n._("Cancel") }) }),
|
|
143
|
-
/* @__PURE__ */ p(g, { type: "submit", form: f, className: "ttw:flex-1", title: n._("Complete the form to continue"), disabled: !b || c || !$, children: [
|
|
144
|
-
c && /* @__PURE__ */ a(te, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
|
|
145
|
-
n._("Save {customerType}", {
|
|
146
|
-
customerType: r
|
|
147
|
-
})
|
|
148
|
-
] })
|
|
149
|
-
] })
|
|
150
|
-
] }) });
|
|
6
|
+
api: e,
|
|
7
|
+
queryClient: n
|
|
8
|
+
} = i(), {
|
|
9
|
+
i18n: t
|
|
10
|
+
} = a();
|
|
11
|
+
return e.finops.postProducts.useMutation(void 0, {
|
|
12
|
+
onSuccess: async (o) => {
|
|
13
|
+
r?.(o), await e.finops.getProducts.invalidateQueries(n), s.success(t._("{name} has been added to the list.", {
|
|
14
|
+
name: o.name
|
|
15
|
+
}));
|
|
16
|
+
},
|
|
17
|
+
onError: () => {
|
|
18
|
+
s.error(t._("Failed to create"));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
151
21
|
};
|
|
152
22
|
export {
|
|
153
|
-
|
|
23
|
+
m as useCreateProduct
|
|
154
24
|
};
|