@tesouro/embedded-components-react 0.2.65 → 0.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +8 -0
- package/dist/lib/ReceivablesWidget.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index2.js +2 -2
- 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/bill-pay-widget/feature/dist/index3.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +135 -132
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/labels.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index5.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index8.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +21 -21
- 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/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 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +1270 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +94 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +57 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +19 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +27 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +114 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +9 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +41 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +68 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +58 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +196 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +76 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +29 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +38 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +114 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +69 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +183 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +27 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +121 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +56 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +4 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +87 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +6 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +41 -388
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +391 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +13 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +18 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +11 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +60 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +397 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +2 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +368 -30
- 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/index236.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +46 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +75 -344
- 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 +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +50 -13
- 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 +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +54 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +345 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +11 -247
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -179
- 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 +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +17 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +247 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +182 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +23 -34
- 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 +36 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +56 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +28 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +98 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +46 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +30 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +42 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +57 -51
- 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 +94 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +109 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +83 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +491 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +163 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +41 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +61 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +29 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +113 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +21 -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 +40 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +53 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +16 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +40 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +78 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +36 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +337 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +302 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +99 -7
- 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 +155 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +264 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +92 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +96 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +191 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +76 -111
- 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 +42 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +73 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +22 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +55 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +55 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +16 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +9 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +149 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +19 -49
- 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 +67 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +24 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +125 -223
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +34 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +158 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +28 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +26 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +78 -345
- 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 +58 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +43 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +182 -260
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +106 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +81 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +271 -472
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +45 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +15 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +83 -47
- 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 +221 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +37 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +49 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +109 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +20 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +17 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +168 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +130 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +159 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +11 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +61 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +64 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +59 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +7 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +61 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +21 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +61 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +32 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +43 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +32 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +6 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +104 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +21 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +33 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +55 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +26 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +23 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +65 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +93 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +54 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +33 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +9 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +120 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +17 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +95 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +70 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +48 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +67 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +17 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +20 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +21 -12
- 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 +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +65 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +2 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +31 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +124 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +7 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +54 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +15 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +64 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +47 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +25 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +35 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +33 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +24 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +100 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +105 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +37 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +5 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +70 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +83 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +51 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +29 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +53 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +69 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +50 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +39 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +14 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +92 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +14 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +74 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +16 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +82 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +40 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +54 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +50 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +33 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +41 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -1
- 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/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 +7 -7
- 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/onboarding-widget/feature/dist/index2.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index2.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index2.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/index2.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetErrorBoundary.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +42 -36
- 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/feature/dist/lib/analytics/hooks.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/interceptor.js +40 -21
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/posthog.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/runtime.js +38 -22
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +6 -6
- package/package.json +1 -1
|
@@ -1,31 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as m, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { InvoiceRecurrenceIterationStatusChip as d } from "./index376.js";
|
|
3
|
+
import { InvoiceStatusChip as c } from "./index56.js";
|
|
4
|
+
import { useMoniteContext as u } from "./index58.js";
|
|
5
|
+
import { useCurrencies as h } from "./index59.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "./index93.js";
|
|
8
|
+
import { useLingui as p } from "@lingui/react";
|
|
9
|
+
import "react-dom";
|
|
10
|
+
import "@mui/x-data-grid";
|
|
11
|
+
import { useGetReceivableById as x } from "./index83.js";
|
|
12
|
+
import { ChevronRight as f } from "lucide-react";
|
|
13
|
+
import { twMerge as _ } from "tailwind-merge";
|
|
14
|
+
const N = ({
|
|
15
|
+
iteration: r,
|
|
16
|
+
invoice: o,
|
|
17
|
+
i18n: w,
|
|
18
|
+
onRowClick: e
|
|
19
|
+
}) => {
|
|
5
20
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
locale: a
|
|
22
|
+
} = u(), {
|
|
23
|
+
formatCurrencyToDisplay: s
|
|
24
|
+
} = h(), n = !!r?.issued_invoice_id, {
|
|
25
|
+
data: i
|
|
26
|
+
} = x(r?.issued_invoice_id ?? "", n), l = !!(n && i?.id);
|
|
27
|
+
return /* @__PURE__ */ m("tr", { className: _("ttw:border-t ttw:border-border", l && "ttw:hover:cursor-pointer"), ...l && e && i?.id && {
|
|
28
|
+
onClick: () => e(i.id)
|
|
29
|
+
}, children: [
|
|
30
|
+
/* @__PURE__ */ t("td", { className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:pr-2 ttw:text-sm ttw:leading-5 ttw:font-normal", children: w.date(r?.issue_at, a.dateFormat) }),
|
|
31
|
+
/* @__PURE__ */ t("td", { className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:px-2 ttw:text-sm ttw:leading-5 ttw:font-normal", children: n && i ? s(i?.total_amount, i?.currency) : s(o?.total_amount, o?.currency) }),
|
|
32
|
+
/* @__PURE__ */ t("td", { className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:px-2", children: n && i ? /* @__PURE__ */ t(c, { status: i?.status }) : /* @__PURE__ */ t(d, { status: r?.status }) }),
|
|
33
|
+
/* @__PURE__ */ t("td", { className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:px-2 ttw:text-sm ttw:leading-5 ttw:font-normal", children: n ? i?.document_id : "-" }),
|
|
34
|
+
/* @__PURE__ */ t("td", { className: "ttw:text-right ttw:h-9 ttw:w-6 ttw:py-2 ttw:pl-2 ttw:text-muted-foreground", children: l ? /* @__PURE__ */ t(f, { className: "ttw:inline ttw:size-4", "aria-hidden": "true" }) : null })
|
|
35
|
+
] });
|
|
36
|
+
}, z = ({
|
|
37
|
+
invoice: r,
|
|
38
|
+
recurrence: o,
|
|
39
|
+
openInvoiceDetails: w
|
|
40
|
+
}) => {
|
|
41
|
+
const {
|
|
42
|
+
i18n: e
|
|
43
|
+
} = p();
|
|
44
|
+
return /* @__PURE__ */ m("table", { className: "ttw:w-full", children: [
|
|
45
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ m("tr", { children: [
|
|
46
|
+
/* @__PURE__ */ t("th", { className: "ttw:text-left ttw:h-10 ttw:pr-2 ttw:text-sm ttw:font-medium ttw:leading-5", children: e._("Issue date") }),
|
|
47
|
+
/* @__PURE__ */ t("th", { className: "ttw:text-left ttw:h-10 ttw:px-2 ttw:text-sm ttw:font-medium ttw:leading-5", children: e._("Amount") }),
|
|
48
|
+
/* @__PURE__ */ t("th", { className: "ttw:text-left ttw:h-10 ttw:px-2 ttw:text-sm ttw:font-medium ttw:leading-5", children: e._("Status") }),
|
|
49
|
+
/* @__PURE__ */ t("th", { className: "ttw:text-left ttw:h-10 ttw:px-2 ttw:text-sm ttw:font-medium ttw:leading-5", children: e._("Number") }),
|
|
50
|
+
/* @__PURE__ */ t("th", { className: "ttw:h-10 ttw:w-6 ttw:pl-2", "aria-hidden": "true" })
|
|
51
|
+
] }) }),
|
|
52
|
+
/* @__PURE__ */ t("tbody", { children: o?.iterations?.map((a, s) => /* @__PURE__ */ t(N, { iteration: a, invoice: r, i18n: e, onRowClick: w }, e._("iteration-{iteration}-{index}", {
|
|
53
|
+
iteration: a?.iteration,
|
|
54
|
+
index: s
|
|
55
|
+
}))) })
|
|
56
|
+
] });
|
|
28
57
|
};
|
|
29
58
|
export {
|
|
30
|
-
|
|
59
|
+
z as InvoiceDetailsTabScheduledInvoices
|
|
31
60
|
};
|
|
@@ -1,7 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as l } from "./index85.js";
|
|
3
|
+
import { Dialog as u, DialogContent as g, DialogHeader as b, DialogTitle as f, DialogDescription as w, DialogFooter as k } from "./index201.js";
|
|
4
|
+
import { useLingui as v } from "@lingui/react";
|
|
5
|
+
import { useMarkAsUncollectibleReceivableById as C } from "./index377.js";
|
|
6
|
+
import { useState as x } from "react";
|
|
7
|
+
import { Textarea as D } from "./index124.js";
|
|
8
|
+
import { Label as _ } from "./index317.js";
|
|
9
|
+
import { LoadingSpinner as M } from "./index132.js";
|
|
10
|
+
const U = ({
|
|
11
|
+
invoiceId: r,
|
|
12
|
+
open: s,
|
|
13
|
+
onClose: i,
|
|
14
|
+
onMarkAsUncollectible: c
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
i18n: o
|
|
18
|
+
} = v(), [n, m] = x(""), {
|
|
19
|
+
mutate: d,
|
|
20
|
+
isPending: a
|
|
21
|
+
} = C(r, c), p = () => {
|
|
22
|
+
d({
|
|
23
|
+
comment: n.trim()
|
|
24
|
+
}, {
|
|
25
|
+
onSuccess: () => {
|
|
26
|
+
i();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ e(u, { open: s, onOpenChange: i, children: /* @__PURE__ */ t(g, { showCloseButton: !1, children: [
|
|
31
|
+
/* @__PURE__ */ t(b, { children: [
|
|
32
|
+
/* @__PURE__ */ e(f, { children: o._("Mark invoice as uncollectible?") }),
|
|
33
|
+
/* @__PURE__ */ t(w, { children: [
|
|
34
|
+
/* @__PURE__ */ e("p", { children: o._("This invoice will change its status, and you won't be able to receive or log any payment against it.") }),
|
|
35
|
+
/* @__PURE__ */ e("br", {}),
|
|
36
|
+
/* @__PURE__ */ e("p", { children: o._("For bookkeeping purposes, this is a write-off and has tax implications.") })
|
|
37
|
+
] })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ t("div", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
40
|
+
/* @__PURE__ */ e(_, { htmlFor: "comment", children: o._("Comment (optional)") }),
|
|
41
|
+
/* @__PURE__ */ e(D, { id: "comment", placeholder: o._("Add a comment"), value: n, onChange: (h) => m(h.target.value) })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ t(k, { children: [
|
|
44
|
+
/* @__PURE__ */ e(l, { variant: "outline", onClick: i, children: o._("Cancel") }),
|
|
45
|
+
/* @__PURE__ */ t(l, { onClick: p, disabled: a, children: [
|
|
46
|
+
a && /* @__PURE__ */ e(M, { className: "ttw:w-5 ttw:h-5 ttw:border-inherit ttw:border-t-transparent" }),
|
|
47
|
+
o._("Mark as uncollectible")
|
|
48
|
+
] })
|
|
49
|
+
] })
|
|
50
|
+
] }) });
|
|
51
|
+
};
|
|
5
52
|
export {
|
|
6
|
-
|
|
53
|
+
U as MarkAsUncollectibleModal
|
|
7
54
|
};
|
|
@@ -1,79 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const _ = y();
|
|
21
|
-
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
22
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5", children: [
|
|
23
|
-
/* @__PURE__ */ e(d, { variant: "h3", children: i._("Invoice numbering") }),
|
|
24
|
-
/* @__PURE__ */ e(d, { variant: "body2", color: "muted", children: i._("Specify how you want your invoices to be numbered. Changes apply to new invoices only. Existing invoice numbers won't be updated.") })
|
|
1
|
+
import { jsxs as t, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as m } from "./index85.js";
|
|
3
|
+
import { DropdownMenu as d, DropdownMenuTrigger as p, DropdownMenuContent as u, DropdownMenuItem as f } from "./index134.js";
|
|
4
|
+
import { Tooltip as h, TooltipTrigger as g, TooltipContent as w } from "./index250.js";
|
|
5
|
+
import { ACTION_ICON as C } from "./index251.js";
|
|
6
|
+
import { preventTooltipFocusOpen as T } from "./index253.js";
|
|
7
|
+
import { MoreVerticalIcon as v } from "lucide-react";
|
|
8
|
+
function x({
|
|
9
|
+
actions: r,
|
|
10
|
+
triggerLabel: i,
|
|
11
|
+
getActionLabel: n,
|
|
12
|
+
onSelect: a,
|
|
13
|
+
isActionDisabled: s,
|
|
14
|
+
className: l
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ t(d, { children: [
|
|
17
|
+
/* @__PURE__ */ t(h, { children: [
|
|
18
|
+
/* @__PURE__ */ e(g, { asChild: !0, onFocus: T, children: /* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(m, { variant: "ghost", size: "icon", className: l, "aria-label": i, children: /* @__PURE__ */ e(v, { className: "ttw:size-4" }) }) }) }),
|
|
19
|
+
/* @__PURE__ */ e(w, { children: i })
|
|
25
20
|
] }),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
fieldState: {
|
|
34
|
-
error: r
|
|
35
|
-
}
|
|
36
|
-
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
37
|
-
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Invoice prefix") }),
|
|
38
|
-
/* @__PURE__ */ e(g, { ...t, id: t.name, maxLength: 25, "aria-invalid": !!r || void 0, className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
39
|
-
/* @__PURE__ */ e(u, { errors: [r] })
|
|
40
|
-
] }) }) }),
|
|
41
|
-
/* @__PURE__ */ e(c, { name: "invoice_number", control: o, render: ({
|
|
42
|
-
field: t,
|
|
43
|
-
fieldState: {
|
|
44
|
-
error: r
|
|
45
|
-
}
|
|
46
|
-
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
47
|
-
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Starting number") }),
|
|
48
|
-
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", "aria-invalid": !!r || void 0, onChange: (l) => {
|
|
49
|
-
const C = l.target.value.replace(/^0+(?=\d)/, "");
|
|
50
|
-
t.onChange(Number(C));
|
|
51
|
-
}, value: t.value.toString().padStart(p, "0"), className: "ttw:w-29 ttw:min-w-29 ttw:bg-white" }),
|
|
52
|
-
/* @__PURE__ */ e(u, { errors: [r] })
|
|
53
|
-
] }) }) }),
|
|
54
|
-
/* @__PURE__ */ e(c, { name: "min_digits", control: o, render: ({
|
|
55
|
-
field: t,
|
|
56
|
-
fieldState: {
|
|
57
|
-
error: r
|
|
58
|
-
}
|
|
59
|
-
}) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ n(s, { className: "ttw:grow-0", children: [
|
|
60
|
-
/* @__PURE__ */ e(w, { htmlFor: t.name, children: i._("Digit count") }),
|
|
61
|
-
/* @__PURE__ */ e(g, { ...t, id: t.name, type: "number", className: "ttw:bg-white ttw:w-29 ttw:max-w-29", onChange: (l) => {
|
|
62
|
-
+l.target.value > 20 ? v("min_digits", 20, {
|
|
63
|
-
shouldDirty: !0
|
|
64
|
-
}) : t.onChange(l);
|
|
65
|
-
}, "aria-invalid": !!r || void 0 }),
|
|
66
|
-
/* @__PURE__ */ e(u, { errors: [r] })
|
|
67
|
-
] }) }) })
|
|
68
|
-
] }),
|
|
69
|
-
/* @__PURE__ */ e("div", { className: "ttw:bg-transparent ttw:w-full ttw:p-2", children: /* @__PURE__ */ e(c, { name: "include_date", control: o, render: ({
|
|
70
|
-
field: t
|
|
71
|
-
}) => /* @__PURE__ */ e(m, { orientation: "horizontal", children: /* @__PURE__ */ n(s, { className: "ttw:flex-row ttw:items-center", children: [
|
|
72
|
-
/* @__PURE__ */ e(S, { id: t.name, ref: t.ref, checked: t.value ?? !1, onCheckedChange: t.onChange, onBlur: t.onBlur, className: "ttw:bg-white" }),
|
|
73
|
-
/* @__PURE__ */ e(w, { htmlFor: t.name, className: "ttw:font-normal", children: i._("Include the current year in the invoice number prefix") })
|
|
74
|
-
] }) }) }) })
|
|
21
|
+
/* @__PURE__ */ e(u, { align: "end", children: r.map((o) => {
|
|
22
|
+
const c = C[o];
|
|
23
|
+
return /* @__PURE__ */ t(f, { variant: o === "delete" ? "destructive" : "default", disabled: s?.(o), onClick: () => a(o), children: [
|
|
24
|
+
/* @__PURE__ */ e(c, { className: "ttw:size-4" }),
|
|
25
|
+
n(o)
|
|
26
|
+
] }, o);
|
|
27
|
+
}) })
|
|
75
28
|
] });
|
|
76
|
-
}
|
|
29
|
+
}
|
|
77
30
|
export {
|
|
78
|
-
|
|
31
|
+
x as InvoiceDetailsOverflowMenu
|
|
79
32
|
};
|
|
@@ -1,34 +1,100 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { jsxs as o, Fragment as _, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ManualPaymentRecordDetails as k } from "./index378.js";
|
|
3
|
+
import { PaymentRecordForm as E } from "./index379.js";
|
|
4
|
+
import { useMoniteContext as $ } from "./index58.js";
|
|
5
|
+
import { useRootElements as B } from "./index93.js";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import { fromMinorUnits as F, toMinorUnits as H } from "./index119.js";
|
|
8
|
+
import "date-fns";
|
|
9
|
+
import { useEntityUserByAuthToken as L } from "./index76.js";
|
|
10
|
+
import { useCreatePaymentRecord as U } from "./index80.js";
|
|
11
|
+
import { useLingui as A } from "@lingui/react";
|
|
12
|
+
import { Dialog as I, DialogContent as Q, DialogActions as W, Button as m, Box as q } from "@mui/material";
|
|
13
|
+
import { useState as l } from "react";
|
|
14
|
+
const g = {
|
|
15
|
+
amount: 0,
|
|
16
|
+
payment_date: /* @__PURE__ */ new Date(),
|
|
17
|
+
payment_time: /* @__PURE__ */ new Date(),
|
|
18
|
+
created_by: ""
|
|
19
|
+
}, ie = ({
|
|
20
|
+
children: b,
|
|
21
|
+
invoice: t
|
|
22
|
+
}) => {
|
|
23
|
+
const [h, c] = l(!1), [C, r] = l(!1), [e, u] = l(g), {
|
|
24
|
+
i18n: s
|
|
25
|
+
} = A(), {
|
|
26
|
+
root: x
|
|
27
|
+
} = B(), v = () => c(!0), n = () => c(!1), {
|
|
28
|
+
api: p,
|
|
29
|
+
queryClient: y
|
|
30
|
+
} = $(), {
|
|
31
|
+
mutate: D,
|
|
32
|
+
isPending: M
|
|
33
|
+
} = U(), {
|
|
34
|
+
data: f,
|
|
35
|
+
isLoading: R
|
|
36
|
+
} = L(), w = (a) => {
|
|
37
|
+
u({
|
|
38
|
+
...a,
|
|
39
|
+
amount: H(a?.amount ?? 0),
|
|
40
|
+
created_by: f?.id ?? ""
|
|
41
|
+
}), r(!0);
|
|
42
|
+
}, P = () => {
|
|
43
|
+
r(!1), u(g);
|
|
44
|
+
}, S = () => {
|
|
45
|
+
const a = new Date(e.payment_date).setHours(e.payment_time.getHours(), e.payment_time.getMinutes()), j = new Date(a);
|
|
46
|
+
D({
|
|
47
|
+
amount: e?.amount ?? 0,
|
|
48
|
+
currency: t.currency,
|
|
49
|
+
paid_at: j.toISOString(),
|
|
50
|
+
object: {
|
|
51
|
+
id: t.id,
|
|
52
|
+
type: "receivable"
|
|
53
|
+
},
|
|
54
|
+
payment_intent_id: t.id,
|
|
55
|
+
entity_user_id: f?.id,
|
|
56
|
+
status: "succeeded"
|
|
57
|
+
}, {
|
|
58
|
+
onSuccess: () => {
|
|
59
|
+
p.finops.getReceivablesId.invalidateQueries({
|
|
60
|
+
parameters: {
|
|
61
|
+
path: {
|
|
62
|
+
receivable_id: t.id
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, y), p.finops.getReceivables.invalidateQueries(y), n(), P();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}, d = M || R;
|
|
69
|
+
return ["draft", "paid", "canceled", "deleted", "accepted", "recurring", "expired", "declined", "uncollectible"].includes(t.status) ? null : /* @__PURE__ */ o(_, { children: [
|
|
70
|
+
b({
|
|
71
|
+
openModal: v
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ i(I, { open: h, onClose: n, container: x, "aria-labelledby": "dialog-title", fullWidth: !0, maxWidth: "sm", children: C ? /* @__PURE__ */ o(_, { children: [
|
|
74
|
+
/* @__PURE__ */ i(Q, { sx: {
|
|
75
|
+
p: 4
|
|
76
|
+
}, children: /* @__PURE__ */ i(k, { invoice: t, paymentRecords: e }) }),
|
|
77
|
+
/* @__PURE__ */ o(W, { sx: {
|
|
78
|
+
px: 4,
|
|
79
|
+
pb: 4,
|
|
80
|
+
justifyContent: "space-between"
|
|
81
|
+
}, children: [
|
|
82
|
+
/* @__PURE__ */ i(m, { onClick: n, children: s._("Cancel") }),
|
|
83
|
+
/* @__PURE__ */ o(q, { sx: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
gap: 2
|
|
86
|
+
}, children: [
|
|
87
|
+
/* @__PURE__ */ i(m, { variant: "outlined", disabled: d, onClick: () => r(!1), children: s._("Edit record") }),
|
|
88
|
+
/* @__PURE__ */ i(m, { variant: "contained", disabled: d, onClick: S, children: s._("Confirm") })
|
|
89
|
+
] })
|
|
90
|
+
] })
|
|
91
|
+
] }) : /* @__PURE__ */ i(E, { invoice: t, initialValues: {
|
|
92
|
+
amount: e.amount ? F(e.amount) : 0,
|
|
93
|
+
payment_date: e.payment_date,
|
|
94
|
+
payment_time: e.payment_time
|
|
95
|
+
}, isLoading: d, onCancel: n, onSubmit: w }) })
|
|
96
|
+
] });
|
|
97
|
+
};
|
|
32
98
|
export {
|
|
33
|
-
|
|
99
|
+
ie as RecordManualPaymentModal
|
|
34
100
|
};
|
|
@@ -1,22 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsxs as f, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCancelRecurrence as v } from "./index380.js";
|
|
3
|
+
import { useGetRecurrenceById as _ } from "./index258.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
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
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.") })
|
|
45
|
+
] });
|
|
17
46
|
};
|
|
18
47
|
export {
|
|
19
|
-
|
|
20
|
-
t as getBankDisplayValue,
|
|
21
|
-
a as hasBankDisplay
|
|
48
|
+
$ as RecurrenceCancelModal
|
|
22
49
|
};
|
|
@@ -1,75 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}) {
|
|
21
|
-
return /* @__PURE__ */ l(a.Trigger, { "data-slot": "select-trigger", "data-size": s, className: n("ttw:border-input ttw:data-[placeholder]:text-muted-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:dark:hover:bg-input/50 ttw:flex ttw:w-fit ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-2 ttw:text-sm ttw:whitespace-nowrap ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-9 ttw:data-[size=sm]:h-8 ttw:*:data-[slot=select-value]:line-clamp-1 ttw:*:data-[slot=select-value]:flex ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1 ttw:*:data-[slot=select-value]:items-center ttw:*:data-[slot=select-value]:gap-2 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", e), ...r, children: [
|
|
22
|
-
o,
|
|
23
|
-
/* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "ttw:size-4 ttw:opacity-50" }) })
|
|
24
|
-
] });
|
|
25
|
-
}
|
|
26
|
-
function x({
|
|
27
|
-
className: e,
|
|
28
|
-
children: s,
|
|
29
|
-
position: o = "popper",
|
|
30
|
-
...r
|
|
31
|
-
}) {
|
|
32
|
-
return /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ l(a.Content, { "data-slot": "select-content", className: n("ttw:bg-popover ttw:text-popover-foreground 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:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:relative ttw:z-1300 ttw:max-h-(--radix-select-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-select-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:shadow-md", o === "popper" && "ttw:data-[side=bottom]:translate-y-1 ttw:data-[side=left]:-translate-x-1 ttw:data-[side=right]:translate-x-1 ttw:data-[side=top]:-translate-y-1", e), position: o, ...r, children: [
|
|
33
|
-
/* @__PURE__ */ t(c, {}),
|
|
34
|
-
/* @__PURE__ */ t(a.Viewport, { className: n("ttw:p-1", o === "popper" && "ttw:h-[var(--radix-select-trigger-height)] ttw:w-full ttw:min-w-[var(--radix-select-trigger-width)] ttw:scroll-my-1"), children: s }),
|
|
35
|
-
/* @__PURE__ */ t(u, {})
|
|
36
|
-
] }) });
|
|
37
|
-
}
|
|
38
|
-
function b({
|
|
39
|
-
className: e,
|
|
40
|
-
children: s,
|
|
41
|
-
...o
|
|
42
|
-
}) {
|
|
43
|
-
return /* @__PURE__ */ l(a.Item, { "data-slot": "select-item", className: n("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:relative ttw:flex ttw:w-full ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:*:[span]:last:flex ttw:*:[span]:last:min-w-0 ttw:*:[span]:last:flex-1 ttw:*:[span]:last:items-center ttw:*:[span]:last:gap-2", e), ...o, children: [
|
|
44
|
-
/* @__PURE__ */ t("span", { className: "ttw:absolute ttw:right-2 ttw:flex ttw:size-3.5 ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(w, { className: "ttw:size-4" }) }) }),
|
|
45
|
-
/* @__PURE__ */ t(a.ItemText, { children: s })
|
|
46
|
-
] });
|
|
47
|
-
}
|
|
48
|
-
function N({
|
|
49
|
-
className: e,
|
|
50
|
-
...s
|
|
51
|
-
}) {
|
|
52
|
-
return /* @__PURE__ */ t(a.Separator, { "data-slot": "select-separator", className: n("ttw:bg-border ttw:pointer-events-none ttw:-mx-1 ttw:my-1 ttw:h-px", e), ...s });
|
|
53
|
-
}
|
|
54
|
-
function c({
|
|
55
|
-
className: e,
|
|
56
|
-
...s
|
|
57
|
-
}) {
|
|
58
|
-
return /* @__PURE__ */ t(a.ScrollUpButton, { "data-slot": "select-scroll-up-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(d, { className: "ttw:size-4" }) });
|
|
59
|
-
}
|
|
60
|
-
function u({
|
|
61
|
-
className: e,
|
|
62
|
-
...s
|
|
63
|
-
}) {
|
|
64
|
-
return /* @__PURE__ */ t(a.ScrollDownButton, { "data-slot": "select-scroll-down-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(i, { className: "ttw:size-4" }) });
|
|
65
|
-
}
|
|
1
|
+
import { useMoniteContext as n } from "./index58.js";
|
|
2
|
+
import { useLingui as s } from "@lingui/react";
|
|
3
|
+
import { toast as r } from "react-hot-toast";
|
|
4
|
+
const p = () => {
|
|
5
|
+
const {
|
|
6
|
+
i18n: e
|
|
7
|
+
} = s(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: o
|
|
10
|
+
} = n();
|
|
11
|
+
return t.finops.deleteCounterpartsId.useMutation(void 0, {
|
|
12
|
+
onSuccess: async () => {
|
|
13
|
+
await t.finops.getCounterparts.invalidateQueries(o), r.success(e._("Counterpart has been deleted."));
|
|
14
|
+
},
|
|
15
|
+
onError: () => {
|
|
16
|
+
r.error(e._("Failed to delete Counterpart."));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
66
20
|
export {
|
|
67
|
-
|
|
68
|
-
x as SelectContent,
|
|
69
|
-
b as SelectItem,
|
|
70
|
-
u as SelectScrollDownButton,
|
|
71
|
-
c as SelectScrollUpButton,
|
|
72
|
-
N as SelectSeparator,
|
|
73
|
-
v as SelectTrigger,
|
|
74
|
-
h as SelectValue
|
|
21
|
+
p as useDeleteCounterpart
|
|
75
22
|
};
|
|
@@ -1,46 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */ e("th", { "data-slot": "table-head", className: l("ttw:h-10 ttw:px-2 ttw:text-left ttw:align-middle ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
32
|
-
}
|
|
33
|
-
function b({
|
|
34
|
-
className: t,
|
|
35
|
-
...a
|
|
36
|
-
}) {
|
|
37
|
-
return /* @__PURE__ */ e("td", { "data-slot": "table-cell", className: l("ttw:p-2 ttw:align-middle ttw:whitespace-nowrap ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
38
|
-
}
|
|
1
|
+
import { useMoniteContext as s } from "./index58.js";
|
|
2
|
+
import { useLingui as i } from "@lingui/react";
|
|
3
|
+
import { toast as a } from "react-hot-toast";
|
|
4
|
+
import { getCounterpartName as p } from "./index7.js";
|
|
5
|
+
const f = () => {
|
|
6
|
+
const {
|
|
7
|
+
i18n: r
|
|
8
|
+
} = i(), {
|
|
9
|
+
api: t,
|
|
10
|
+
queryClient: o
|
|
11
|
+
} = s();
|
|
12
|
+
return t.finops.patchCounterpartsId.useMutation(void 0, {
|
|
13
|
+
onSuccess: async (e) => {
|
|
14
|
+
t.finops.getCounterpartsId.setQueryData({
|
|
15
|
+
path: {
|
|
16
|
+
counterpart_id: e.id
|
|
17
|
+
}
|
|
18
|
+
}, (n) => ({
|
|
19
|
+
...n,
|
|
20
|
+
...e
|
|
21
|
+
}), o), await t.finops.getCounterparts.invalidateQueries(o), a.success(r._("{name} has been updated.", {
|
|
22
|
+
name: p(e)
|
|
23
|
+
}));
|
|
24
|
+
},
|
|
25
|
+
onError: () => {
|
|
26
|
+
a.error(r._("Failed to update counterpart."));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
39
30
|
export {
|
|
40
|
-
|
|
41
|
-
c as TableBody,
|
|
42
|
-
b as TableCell,
|
|
43
|
-
d as TableHead,
|
|
44
|
-
w as TableHeader,
|
|
45
|
-
n as TableRow
|
|
31
|
+
f as useUpdateCounterpart
|
|
46
32
|
};
|