@tesouro/embedded-components-react 0.2.233 → 0.2.237
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/lib/ReceivablesWidget.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +65 -59
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/useApprovalPolicies.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index7.js +2 -2
- 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 +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -35
- 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 +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +23 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +34 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +25 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +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 +75 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +30 -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 +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +24 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +217 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +12 -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 +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +44 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +43 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +152 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +55 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +68 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +64 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +9 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +74 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +54 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +23 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +80 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +28 -227
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +39 -467
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +226 -537
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +467 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +106 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +535 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +25 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +18 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +20 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +27 -14
- 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 +117 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +69 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +13 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +99 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +57 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.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/index243.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +72 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +44 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +27 -74
- 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 +42 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +92 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +106 -341
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +81 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +62 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +48 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +27 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +75 -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 +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +59 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +29 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +118 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +22 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +53 -92
- 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 +5 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +484 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +167 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +25 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +128 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +49 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +119 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +106 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +198 -53
- 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 +67 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +149 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +28 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +4 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +37 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +30 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +29 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +12 -56
- 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 +8 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +156 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +28 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +26 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +78 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +14 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +72 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +76 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +44 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +21 -31
- 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 +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +22 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +55 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +57 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +127 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +20 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +33 -27
- 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 +2 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +94 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +96 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +207 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +64 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +20 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +18 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +163 -35
- 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 +134 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +158 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +8 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +66 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +58 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +9 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +56 -156
- 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 +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +14 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +339 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +302 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +99 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +155 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +264 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +44 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +8 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +45 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +45 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +31 -46
- 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 +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +41 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +23 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +94 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +34 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +10 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +19 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +61 -31
- 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 +16 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +14 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +66 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +117 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +81 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +2 -26
- 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 +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +33 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +117 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -14
- 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 +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +15 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +53 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +79 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +17 -18
- 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 +82 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +269 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +65 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +44 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +137 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +2 -16
- 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 +285 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +49 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +15 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +50 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +15 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +5 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +32 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +20 -21
- 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 +46 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +25 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +35 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +127 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +5 -5
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +93 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +8 -54
- 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 +49 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +47 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +72 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +86 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +51 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +49 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +29 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +55 -18
- 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 +68 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +20 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +39 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +33 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +85 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +23 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +105 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +104 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +69 -62
- 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 +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +29 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +19 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +38 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +13 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +92 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +14 -53
- 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 +74 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +20 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +18 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +58 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +32 -38
- 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 +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +30 -12
- 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 +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +38 -18
- 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 +3 -3
- 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 +1 -1
- 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 +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +454 -454
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +96 -96
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +122 -97
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index9.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index20.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index21.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -4
- package/package.json +1 -1
|
@@ -1,472 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import { useUpdateReceivableLineItems as It } from "./index313.js";
|
|
24
|
-
import { useCreateRecurrence as wt } from "./index314.js";
|
|
25
|
-
import { useUpdateRecurrence as Pt } from "./index315.js";
|
|
26
|
-
import { useIssueReceivableById as Rt } from "./index237.js";
|
|
27
|
-
import { useGetInvoiceRequiredFields as kt } from "./index235.js";
|
|
28
|
-
import { useSelectableBankAccounts as At } from "./index236.js";
|
|
29
|
-
import { useLineItemSubmitCleanup as Lt } from "./index316.js";
|
|
30
|
-
import { useGetMeasureUnits as St } from "./index317.js";
|
|
31
|
-
const oe = (t, i) => i ? t.find((r) => r.id === i)?.name || "" : void 0, qt = (t, i) => ({
|
|
32
|
-
// Callers only reach this in `invoice` mode (the guard runs earlier).
|
|
33
|
-
type: t.type,
|
|
34
|
-
counterpart_id: i.resolvedCounterpartId,
|
|
35
|
-
counterpart_billing_address_id: i.billingAddressId,
|
|
36
|
-
counterpart_shipping_address_id: i.shippingAddressId,
|
|
37
|
-
bank_account_id: t.bank_account_id || void 0,
|
|
38
|
-
bank_account_type: t.bank_account_id ? t.bank_account_type : void 0,
|
|
39
|
-
...ae({
|
|
40
|
-
paymentTermId: t.payment_terms_id,
|
|
41
|
-
customDueDate: t.payment_terms_custom_date
|
|
42
|
-
}),
|
|
43
|
-
line_items: t.line_items.filter((r) => !!r.product?.name?.trim()).map((r) => ({
|
|
44
|
-
quantity: r.quantity,
|
|
45
|
-
tax_status: r.taxable ? "taxable" : "non_taxable",
|
|
46
|
-
product: {
|
|
47
|
-
name: r.product.name,
|
|
48
|
-
price: {
|
|
49
|
-
currency: r.product.price.currency,
|
|
50
|
-
value: r.product.price.value
|
|
51
|
-
},
|
|
52
|
-
measure_unit: r.product.measure_unit_id ? {
|
|
53
|
-
name: oe(i.measureUnits, r.product.measure_unit_id) ?? ""
|
|
54
|
-
} : void 0,
|
|
55
|
-
type: "product"
|
|
56
|
-
},
|
|
57
|
-
tax_rate_value: r.taxable ? ne(Number(t.tax_rate) || 0) : void 0
|
|
58
|
-
})),
|
|
59
|
-
memo: t.memo,
|
|
60
|
-
footer: t.footer,
|
|
61
|
-
purchase_order: t.purchase_order || void 0,
|
|
62
|
-
currency: i.currency,
|
|
63
|
-
payment_reminder_id: t.payment_reminder_id || void 0,
|
|
64
|
-
overdue_reminder_id: t.overdue_reminder_id || void 0,
|
|
65
|
-
tag_ids: [],
|
|
66
|
-
// TODO: add support for tags, ideally values.tags?.map((tag) => tag.id)
|
|
67
|
-
tax_mode: t.tax_mode || "exclusive",
|
|
68
|
-
// `attachments` is `minItems: 1` on the payload, so omit it entirely when
|
|
69
|
-
// empty rather than sending `[]` (which 422s). Only `id`/`include_in_email`
|
|
70
|
-
// ride the request; the buffered `name`/`size` are display-only (EMBD-3617).
|
|
71
|
-
attachments: t.attachments.length ? t.attachments.map(({
|
|
72
|
-
id: r,
|
|
73
|
-
include_in_email: n
|
|
74
|
-
}) => ({
|
|
75
|
-
id: r,
|
|
76
|
-
include_in_email: n
|
|
77
|
-
})) : void 0
|
|
78
|
-
}), re = (t, i) => ({
|
|
79
|
-
data: t.line_items.filter((r) => !!r.product?.name?.trim()).map((r) => {
|
|
80
|
-
const n = r;
|
|
81
|
-
let c;
|
|
82
|
-
return n.product.measure_unit_id ? c = oe(i, n.product.measure_unit_id) : (n.product.measure_unit_name || n.measure_unit?.name) && (c = n.product.measure_unit_name || n.measure_unit?.name), {
|
|
83
|
-
quantity: r.quantity,
|
|
84
|
-
tax_status: r.taxable ? "taxable" : "non_taxable",
|
|
85
|
-
product: {
|
|
86
|
-
name: r.product.name,
|
|
87
|
-
type: r.product.type,
|
|
88
|
-
measure_unit: c ? {
|
|
89
|
-
name: c
|
|
90
|
-
} : void 0,
|
|
91
|
-
price: r.product.price ? {
|
|
92
|
-
currency: r.product.price.currency ?? "USD",
|
|
93
|
-
value: Math.round(r.product.price.value ?? 0)
|
|
94
|
-
} : void 0
|
|
95
|
-
},
|
|
96
|
-
// The backend requires a taxable line item to carry a tax rate, so send
|
|
97
|
-
// one whenever it's taxable — defaulting to 0 when none was entered
|
|
98
|
-
// (matching the create payload). Omitting it for a taxable item 422s.
|
|
99
|
-
tax_rate_value: r.taxable ? ne(Number(t.tax_rate) || 0) : void 0
|
|
100
|
-
};
|
|
101
|
-
})
|
|
102
|
-
}), ie = (t, i) => ({
|
|
103
|
-
invoice: {
|
|
104
|
-
counterpart_id: i.resolvedCounterpartId,
|
|
105
|
-
currency: i.currency,
|
|
106
|
-
memo: t.memo,
|
|
107
|
-
footer: t.footer,
|
|
108
|
-
// Send `null` (not `undefined`) when the address is empty so a cleared field
|
|
109
|
-
// is actually cleared. Omitting it leaves the previous value in place, which
|
|
110
|
-
// — after the customer was changed — would keep an address that belongs to
|
|
111
|
-
// the old counterpart (a mismatch the API rejects). Empty happens when the
|
|
112
|
-
// customer is cleared or a newly picked/inline customer has no default
|
|
113
|
-
// address. Same `null`-to-clear pattern as the reminders/attachments below.
|
|
114
|
-
// @ts-expect-error - we need to send `null` to clear, but the backend doesn't type it
|
|
115
|
-
counterpart_shipping_address_id: t?.default_shipping_address_id || null,
|
|
116
|
-
// @ts-expect-error - we need to send `null` to clear, but the backend doesn't type it
|
|
117
|
-
counterpart_billing_address_id: t?.default_billing_address_id || null,
|
|
118
|
-
bank_account_id: t.bank_account_id || void 0,
|
|
119
|
-
bank_account_type: t.bank_account_id ? t.bank_account_type : void 0,
|
|
120
|
-
/**
|
|
121
|
-
* Rebuild the payment-terms payload from the form values (a saved
|
|
122
|
-
* `payment_terms_id`, or an inline object for "Custom date" / "Due on
|
|
123
|
-
* receipt") via the shared builder, so it's the request-shaped
|
|
124
|
-
* `InlinePaymentTermsRequestPayload` the PATCH accepts.
|
|
125
|
-
*/
|
|
126
|
-
...ae({
|
|
127
|
-
paymentTermId: t.payment_terms_id,
|
|
128
|
-
customDueDate: t.payment_terms_custom_date
|
|
129
|
-
}),
|
|
130
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
131
|
-
payment_reminder_id: t.payment_reminder_id || null,
|
|
132
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
133
|
-
overdue_reminder_id: t.overdue_reminder_id || null,
|
|
134
|
-
// The backend enforces `minItems: 1` here (the generated schema is wrong),
|
|
135
|
-
// so `[]` 422s. Omitting it (`undefined`) is a no-op that leaves the existing
|
|
136
|
-
// attachments in place, so removing the last one must be sent as `null` to
|
|
137
|
-
// actually clear them. Only `id`/`include_in_email` ride the request; the
|
|
138
|
-
// buffered `name`/`size` are display-only (EMBD-3617).
|
|
139
|
-
// @ts-expect-error - we need to send `null` to clear, but the backend doesn't provide a correct type
|
|
140
|
-
attachments: t.attachments.length ? t.attachments.map(({
|
|
141
|
-
id: r,
|
|
142
|
-
include_in_email: n
|
|
143
|
-
}) => ({
|
|
144
|
-
id: r,
|
|
145
|
-
include_in_email: n
|
|
146
|
-
})) : null
|
|
147
|
-
// `purchase_order` is intentionally omitted — the backend does not support
|
|
148
|
-
// updating it, so `BillingSection` hides the field in edit.
|
|
149
|
-
}
|
|
150
|
-
}), sr = ({
|
|
151
|
-
mode: t,
|
|
152
|
-
methods: i,
|
|
153
|
-
currency: r,
|
|
154
|
-
invoice: n,
|
|
155
|
-
existingRecurrence: c,
|
|
156
|
-
hasStartedRecurrence: $ = !1,
|
|
157
|
-
onComplete: h,
|
|
158
|
-
onClose: E,
|
|
159
|
-
submitModeRef: de
|
|
1
|
+
import { jsx as t, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { CenteredContentBox as p } from "./index212.js";
|
|
3
|
+
import { DropdownMenu as d, DropdownMenuTrigger as h, DropdownMenuContent as u, DropdownMenuItem as f } from "./index138.js";
|
|
4
|
+
import { Button as l } from "./index84.js";
|
|
5
|
+
import { RefreshCw as s, ChevronDown as w } from "lucide-react";
|
|
6
|
+
import { Typography as m } from "./index85.js";
|
|
7
|
+
const B = ({
|
|
8
|
+
title: r,
|
|
9
|
+
descriptionLine1: o,
|
|
10
|
+
onAction: e,
|
|
11
|
+
actionButtonLabel: i,
|
|
12
|
+
actionOptions: a = [],
|
|
13
|
+
type: n
|
|
14
|
+
}) => /* @__PURE__ */ t(p, { className: "ttw:min-h-48", children: /* @__PURE__ */ c("div", { className: "ttw:flex ttw:flex-col ttw:flex-1 ttw:items-center ttw:gap-3", children: [
|
|
15
|
+
/* @__PURE__ */ t(m, { variant: "h2", className: "ttw:font-medium", children: r }),
|
|
16
|
+
/* @__PURE__ */ t(m, { variant: "body1", color: "muted", className: "ttw:font-normal", children: o }),
|
|
17
|
+
/* @__PURE__ */ t(C, { onAction: e, actionButtonLabel: i, actionOptions: a, type: n })
|
|
18
|
+
] }) }), C = ({
|
|
19
|
+
onAction: r,
|
|
20
|
+
actionButtonLabel: o,
|
|
21
|
+
actionOptions: e = [],
|
|
22
|
+
type: i
|
|
160
23
|
}) => {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
api: B,
|
|
165
|
-
apiUrl: se,
|
|
166
|
-
componentSettings: ue,
|
|
167
|
-
queryClient: T,
|
|
168
|
-
requestFn: ce
|
|
169
|
-
} = pt(), me = ft().has(yt.BankAccountWriteOrg), P = !!ue?.receivables?.enableEntityBankAccount, {
|
|
170
|
-
handleSubmit: _e,
|
|
171
|
-
watch: g,
|
|
172
|
-
formState: le,
|
|
173
|
-
setValue: R,
|
|
174
|
-
clearErrors: pe,
|
|
175
|
-
trigger: fe
|
|
176
|
-
} = i, {
|
|
177
|
-
isDirty: ye
|
|
178
|
-
} = le, {
|
|
179
|
-
data: ge,
|
|
180
|
-
isLoading: ve,
|
|
181
|
-
isFetching: be
|
|
182
|
-
} = bt(), {
|
|
183
|
-
data: he,
|
|
184
|
-
isLoading: j
|
|
185
|
-
} = St(), {
|
|
186
|
-
bankAccounts: xe,
|
|
187
|
-
isLoading: z
|
|
188
|
-
} = At(P), Ce = xe.length > 0, [k, Ie] = U(!1), [we, A] = U(!1), Pe = ee("draft"), v = de ?? Pe, Re = `Monite-Form-receivablesDetailsForm-${ut()}`, [x, b] = U(null), {
|
|
189
|
-
registerLineItemCleanupFn: ke,
|
|
190
|
-
runLineItemCleanup: Ae
|
|
191
|
-
} = Lt(), {
|
|
192
|
-
mutateAsync: Le,
|
|
193
|
-
isPending: Se
|
|
194
|
-
} = ht(), {
|
|
195
|
-
mutateAsync: qe,
|
|
196
|
-
isPending: Me
|
|
197
|
-
} = (
|
|
198
|
-
// An inline counterpart is created as a side effect of saving the invoice;
|
|
199
|
-
// the invoice's own success toast is the confirmation, so skip the extra
|
|
200
|
-
// "customer added" one.
|
|
201
|
-
xt({
|
|
202
|
-
showSuccessToast: !1
|
|
203
|
-
})
|
|
204
|
-
), N = n?.id ?? x?.id ?? "", {
|
|
205
|
-
mutateAsync: G,
|
|
206
|
-
isPending: De
|
|
207
|
-
} = Ct(N), {
|
|
208
|
-
mutateAsync: H,
|
|
209
|
-
isPending: Fe
|
|
210
|
-
} = It(N), {
|
|
211
|
-
mutateAsync: Ue,
|
|
212
|
-
isPending: $e
|
|
213
|
-
} = wt(), {
|
|
214
|
-
mutateAsync: Ee,
|
|
215
|
-
isPending: Be
|
|
216
|
-
} = Pt(), {
|
|
217
|
-
mutateAsync: Te,
|
|
218
|
-
isPending: je
|
|
219
|
-
} = Rt(), O = Se || Me || De || Fe || $e || Be || je, ze = O || j || z, Q = ee(null), V = () => {
|
|
220
|
-
requestAnimationFrame(() => {
|
|
221
|
-
const e = Q.current, u = e?.querySelector('[aria-invalid="true"]');
|
|
222
|
-
if (!e || !u) return;
|
|
223
|
-
const l = u.getBoundingClientRect().top - e.getBoundingClientRect().top + e.scrollTop - e.clientHeight / 2 + u.offsetHeight / 2;
|
|
224
|
-
e.scrollTo({
|
|
225
|
-
top: Math.max(0, l),
|
|
226
|
-
behavior: "smooth"
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
}, Ne = () => {
|
|
230
|
-
v.current = "issue", fe().then(V);
|
|
231
|
-
}, _ = g("counterpart_id"), C = g("frequency") !== "once", Ge = g("counterpart_email"), I = g("default_billing_address_id"), He = g("bank_account_id"), {
|
|
232
|
-
data: d,
|
|
233
|
-
isLoading: W,
|
|
234
|
-
isFetching: J
|
|
235
|
-
} = gt(_), {
|
|
236
|
-
data: L,
|
|
237
|
-
isLoading: Oe,
|
|
238
|
-
isFetching: Qe
|
|
239
|
-
} = vt(_), S = ct(() => L?.data?.find((e) => e.id === I), [I, L?.data]), K = !!(Ge?.trim() || _t(d)), Ve = !!_ && (W || J), {
|
|
240
|
-
data: We,
|
|
241
|
-
isLoading: Je,
|
|
242
|
-
isFetching: Ke
|
|
243
|
-
} = kt({
|
|
244
|
-
counterpart_billing_address_id: d?.id === _ && I || void 0,
|
|
245
|
-
counterpart_country: S?.id === I && S?.country || void 0,
|
|
246
|
-
counterpart_id: _ || void 0,
|
|
247
|
-
counterpart_type: d?.id === _ && d?.type || void 0
|
|
248
|
-
}), Xe = We?.entity?.tax_id?.required, X = ve || be || Je || Ke || !!_ && (W || J || Oe || Qe), Y = (e) => {
|
|
249
|
-
R("counterpart_id", e), R("counterpart_name", ""), R("counterpart_email", ""), pe(["counterpart_id", "counterpart_email"]);
|
|
250
|
-
}, Ye = () => {
|
|
251
|
-
if (k) {
|
|
252
|
-
o.error(a._("Please wait for attachments to finish uploading."));
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
ye ? A(!0) : E();
|
|
256
|
-
}, Ze = async (e) => {
|
|
257
|
-
if (e.type !== "invoice") {
|
|
258
|
-
o.error(a._("`type` except `invoice` is not supported yet"));
|
|
259
|
-
return;
|
|
260
|
-
}
|
|
261
|
-
const u = C && !$ || v.current === "issue";
|
|
262
|
-
if (u && Xe && !ge?.tax_id) {
|
|
263
|
-
o.error(a._("Set your organization's Tax ID to issue invoice"));
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
const l = !e.counterpart_id && !!e.counterpart_name?.trim(), et = d && "organization" in d ? d?.organization?.email : void 0, tt = d && "individual" in d ? d?.individual?.email : void 0, rt = et || tt, q = l ? !0 : d?.reminders_enabled, M = l ? e.counterpart_email : rt, it = !!(e.payment_reminder_id || e.overdue_reminder_id);
|
|
267
|
-
if (u && it) {
|
|
268
|
-
if (!q && M) {
|
|
269
|
-
o.error(a._("Payment reminders are disabled for this customer. Please enable them in the customer details or turn them off."));
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
if (!M && q) {
|
|
273
|
-
o.error(a._("No email address is added for the selected customer. Please add it to the customer details or turn off the reminders."));
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
if (!q && !M) {
|
|
277
|
-
o.error(a._("Reminders are disabled for this customer, and no email address has been added for it. Please update the details or turn off reminders."));
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
let p = e.counterpart_id ?? "";
|
|
282
|
-
if (l)
|
|
283
|
-
try {
|
|
284
|
-
p = (await qe({
|
|
285
|
-
type: "organization",
|
|
286
|
-
is_customer: !0,
|
|
287
|
-
is_vendor: !1,
|
|
288
|
-
reminders_enabled: !0,
|
|
289
|
-
language: lt.find((m) => m === a.locale.split("-")[0]) ?? "en",
|
|
290
|
-
organization: {
|
|
291
|
-
legal_name: e?.counterpart_name?.trim() ?? "",
|
|
292
|
-
...e.counterpart_email ? {
|
|
293
|
-
email: e.counterpart_email
|
|
294
|
-
} : {}
|
|
295
|
-
}
|
|
296
|
-
})).id;
|
|
297
|
-
} catch {
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
const at = e.default_shipping_address_id, nt = L?.data?.find((m) => m.id === at), ot = e.line_items.filter((m) => !m.product_id && !!m.product?.name?.trim()), D = he?.data ?? [];
|
|
301
|
-
let f, s, F = null;
|
|
302
|
-
try {
|
|
303
|
-
if (t === "create")
|
|
304
|
-
x ? (f = x.id, await H(re(e, D)), s = await G(ie(e, {
|
|
305
|
-
resolvedCounterpartId: p,
|
|
306
|
-
currency: r
|
|
307
|
-
}))) : (s = await Le(qt(e, {
|
|
308
|
-
resolvedCounterpartId: p,
|
|
309
|
-
billingAddressId: S?.id,
|
|
310
|
-
shippingAddressId: nt?.id,
|
|
311
|
-
measureUnits: D,
|
|
312
|
-
currency: r
|
|
313
|
-
}), {
|
|
314
|
-
onSuccess: async () => {
|
|
315
|
-
await B.finops.getReceivables.invalidateQueries(T);
|
|
316
|
-
}
|
|
317
|
-
}), f = s.id, F = s, l && Y(p));
|
|
318
|
-
else {
|
|
319
|
-
if (!n) return;
|
|
320
|
-
await H(re(e, D)), s = await G(ie(e, {
|
|
321
|
-
resolvedCounterpartId: p,
|
|
322
|
-
currency: r
|
|
323
|
-
})), f = n.id;
|
|
324
|
-
}
|
|
325
|
-
} catch {
|
|
326
|
-
l && Y(p);
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
const w = {
|
|
330
|
-
receivableId: f,
|
|
331
|
-
counterpartId: p,
|
|
332
|
-
inlineLineItems: ot,
|
|
333
|
-
receivable: s,
|
|
334
|
-
hasCustomerEmail: K
|
|
335
|
-
}, dt = () => B.finops.getReceivablesId.fetchQuery({
|
|
336
|
-
parameters: {
|
|
337
|
-
path: {
|
|
338
|
-
receivable_id: f
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
requestFn: ce,
|
|
342
|
-
baseUrl: se
|
|
343
|
-
}, T);
|
|
344
|
-
if (C) {
|
|
345
|
-
const m = e.frequency === "day" && e.recurrence_end_mode === "on" && !!e.recurrence_end_date, Z = c ? null : void 0, y = {
|
|
346
|
-
// Never `once` here (guarded above), which the API enum doesn't include.
|
|
347
|
-
frequency: e.frequency,
|
|
348
|
-
start_date: e.recurrence_start_date ? te(new Date(e.recurrence_start_date), "yyyy-MM-dd") : void 0,
|
|
349
|
-
// The `as` sheds `null` from the type only — the backend accepts `null`
|
|
350
|
-
// to clear the field, but the generated payload types omit it.
|
|
351
|
-
max_occurrences: m ? Z : e.recurrence_max_occurrences || void 0,
|
|
352
|
-
end_date: m && e.recurrence_end_date ? te(new Date(e.recurrence_end_date), "yyyy-MM-dd") : Z,
|
|
353
|
-
subject_text: e.recurrence_subject_text || void 0,
|
|
354
|
-
body_text: e.recurrence_body_text || void 0
|
|
355
|
-
};
|
|
356
|
-
try {
|
|
357
|
-
if (c) {
|
|
358
|
-
const st = c.scheduleLocked ? {
|
|
359
|
-
max_occurrences: y.max_occurrences,
|
|
360
|
-
end_date: y.end_date,
|
|
361
|
-
subject_text: y.subject_text,
|
|
362
|
-
body_text: y.body_text
|
|
363
|
-
} : y;
|
|
364
|
-
await Ee({
|
|
365
|
-
path: {
|
|
366
|
-
recurrence_id: c.id
|
|
367
|
-
},
|
|
368
|
-
body: st
|
|
369
|
-
});
|
|
370
|
-
} else
|
|
371
|
-
await Ue({
|
|
372
|
-
body: {
|
|
373
|
-
...y,
|
|
374
|
-
invoice_id: f,
|
|
375
|
-
interval: 1,
|
|
376
|
-
automation_level: "issue"
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
} catch {
|
|
380
|
-
!x && F && b(F);
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
b(null);
|
|
384
|
-
try {
|
|
385
|
-
s = await dt();
|
|
386
|
-
} catch {
|
|
387
|
-
}
|
|
388
|
-
h({
|
|
389
|
-
mode: "recurrence",
|
|
390
|
-
...w,
|
|
391
|
-
receivable: s
|
|
392
|
-
});
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
if (v.current === "issue") {
|
|
396
|
-
try {
|
|
397
|
-
s = await Te({
|
|
398
|
-
path: {
|
|
399
|
-
receivable_id: f
|
|
400
|
-
}
|
|
401
|
-
}), b(null), h({
|
|
402
|
-
mode: "issue",
|
|
403
|
-
...w,
|
|
404
|
-
receivable: s
|
|
405
|
-
});
|
|
406
|
-
} catch {
|
|
407
|
-
o.error(a._("The invoice was saved but could not be issued.")), b(null), h({
|
|
408
|
-
mode: t === "edit" ? "update" : "draft",
|
|
409
|
-
...w
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
t === "create" ? o.success(a._("Invoice to {counterpartName} was created", {
|
|
415
|
-
counterpartName: s?.counterpart_name ?? ""
|
|
416
|
-
})) : o.success(a._("Invoice has been updated")), b(null), h({
|
|
417
|
-
mode: t === "edit" ? "update" : "draft",
|
|
418
|
-
...w
|
|
419
|
-
});
|
|
420
|
-
};
|
|
421
|
-
return {
|
|
422
|
-
formName: Re,
|
|
423
|
-
onSubmit: async (e) => {
|
|
424
|
-
e.preventDefault(), Ae();
|
|
425
|
-
const u = C && !$ || v.current === "issue";
|
|
426
|
-
if (k) {
|
|
427
|
-
o.error(a._("Please wait for attachments to finish uploading."));
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
if (j) {
|
|
431
|
-
o.error(a._("Please wait for invoice details to finish loading."));
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
if (u && X) {
|
|
435
|
-
o.error(a._("Please wait for invoice checks to finish."));
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
if (u && P && z) {
|
|
439
|
-
o.error(a._("Please wait for invoice checks to finish."));
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
if (u && !me && P && !He && !Ce) {
|
|
443
|
-
o.error(a._("Contact your company admin to set up a bank account before creating an invoice."));
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
await _e(Ze, V)(e);
|
|
447
|
-
},
|
|
448
|
-
formScrollRef: Q,
|
|
449
|
-
registerLineItemCleanupFn: ke,
|
|
450
|
-
onAttachmentsUploadingChange: Ie,
|
|
451
|
-
isLoading: ze,
|
|
452
|
-
isSaving: O,
|
|
453
|
-
attachmentsUploading: k,
|
|
454
|
-
submitModeRef: v,
|
|
455
|
-
isRecurrenceEnabled: C,
|
|
456
|
-
hasCustomerEmail: K,
|
|
457
|
-
isCustomerEmailLoading: Ve,
|
|
458
|
-
isIssuePreflightLoading: X,
|
|
459
|
-
requestClose: Ye,
|
|
460
|
-
highlightForIssue: Ne,
|
|
461
|
-
discardModal: {
|
|
462
|
-
open: we,
|
|
463
|
-
onOpenChange: A,
|
|
464
|
-
onConfirm: () => {
|
|
465
|
-
A(!1), E();
|
|
466
|
-
}
|
|
467
|
-
}
|
|
24
|
+
if (!o) return null;
|
|
25
|
+
const a = (n) => {
|
|
26
|
+
r && r(n);
|
|
468
27
|
};
|
|
28
|
+
return e.length > 1 ? /* @__PURE__ */ c(d, { children: [
|
|
29
|
+
/* @__PURE__ */ t(h, { asChild: !0, children: /* @__PURE__ */ c(l, { type: "button", children: [
|
|
30
|
+
i === "error" ? /* @__PURE__ */ t(s, {}) : void 0,
|
|
31
|
+
o,
|
|
32
|
+
/* @__PURE__ */ t(w, {})
|
|
33
|
+
] }) }),
|
|
34
|
+
/* @__PURE__ */ t(u, { align: "end", children: e.map((n) => /* @__PURE__ */ t(f, { onClick: () => a(n), children: n }, n)) })
|
|
35
|
+
] }) : /* @__PURE__ */ c(l, { onClick: (n) => {
|
|
36
|
+
n.preventDefault(), a(e?.[0]);
|
|
37
|
+
}, children: [
|
|
38
|
+
i === "error" ? /* @__PURE__ */ t(s, {}) : void 0,
|
|
39
|
+
o
|
|
40
|
+
] });
|
|
469
41
|
};
|
|
470
42
|
export {
|
|
471
|
-
|
|
43
|
+
B as DataGridEmptyState
|
|
472
44
|
};
|
|
@@ -1,112 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { buildInvoicePreviewData as Z } from "./index300.js";
|
|
8
|
-
import { useCounterpartById as tt } from "./index70.js";
|
|
9
|
-
import "@tanstack/react-query";
|
|
10
|
-
import { useMoniteContext as et } from "./index57.js";
|
|
11
|
-
import { useCounterpartAddresses as ot } from "./index72.js";
|
|
12
|
-
import { useMyEntity as at } from "./index78.js";
|
|
13
|
-
import "react-hot-toast";
|
|
14
|
-
import { useUserPermissions as rt } from "./index141.js";
|
|
15
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
16
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
17
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
18
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
19
|
-
import { Scope as it } from "../../shared/data-access/dist/lib/scopes.js";
|
|
20
|
-
import { Dialog as nt, DialogContent as st, DialogHeader as mt, DialogTitle as lt, DialogDescription as dt, DialogFooter as ct } from "./index222.js";
|
|
21
|
-
import { Button as pt } from "./index84.js";
|
|
22
|
-
import { ConfirmationModal as ut } from "./index255.js";
|
|
23
|
-
import { LoadingPage as wt } from "./index270.js";
|
|
24
|
-
import { CustomerSection as ft } from "./index301.js";
|
|
25
|
-
import { BillingSection as ht } from "./index302.js";
|
|
26
|
-
import { ItemsSection as gt } from "./index303.js";
|
|
27
|
-
import { BankAccountSection as bt } from "./index304.js";
|
|
28
|
-
import { NotesSection as yt } from "./index305.js";
|
|
29
|
-
import { AttachmentSection as vt } from "./index306.js";
|
|
30
|
-
import { InvoicePreview as xt } from "./index307.js";
|
|
31
|
-
const Kt = ({
|
|
32
|
-
open: h,
|
|
33
|
-
onRequestClose: s,
|
|
34
|
-
methods: m,
|
|
35
|
-
title: g,
|
|
36
|
-
description: l,
|
|
37
|
-
currency: d,
|
|
38
|
-
embeddedBankName: b,
|
|
39
|
-
showPurchaseOrder: y = !0,
|
|
40
|
-
lockRecurrenceSchedule: v = !1,
|
|
41
|
-
formName: x,
|
|
42
|
-
onSubmit: C,
|
|
43
|
-
formScrollRef: _,
|
|
44
|
-
registerLineItemCleanupFn: N,
|
|
45
|
-
onAttachmentsUploadingChange: S,
|
|
46
|
-
disabled: r,
|
|
47
|
-
closeDisabled: k,
|
|
48
|
-
footer: D,
|
|
49
|
-
discardModal: n
|
|
50
|
-
}) => {
|
|
51
|
-
const {
|
|
52
|
-
i18n: a
|
|
53
|
-
} = J(), {
|
|
54
|
-
api: F,
|
|
55
|
-
componentSettings: I
|
|
56
|
-
} = et(), L = rt().has(it.CounterpartWriteOrg), B = !!I?.receivables?.enableEntityBankAccount, {
|
|
57
|
-
data: c,
|
|
58
|
-
isLoading: O
|
|
59
|
-
} = F.finops.getPaymentTerms.useQuery(), {
|
|
60
|
-
isLoading: P,
|
|
61
|
-
data: A
|
|
62
|
-
} = at(), {
|
|
63
|
-
watch: e
|
|
64
|
-
} = m, [T, E] = X(!1), p = e("counterpart_id"), u = e("default_billing_address_id"), {
|
|
65
|
-
data: w
|
|
66
|
-
} = tt(p), {
|
|
67
|
-
data: f
|
|
68
|
-
} = ot(p), M = G(() => f?.data?.find((i) => i.id === u), [u, f?.data]), R = e("line_items"), j = e("payment_terms_id"), $ = e("memo"), U = e("footer"), z = e("tax_mode"), H = e("purchase_order"), Q = e("tax_rate"), q = e("bank_account_id"), V = e("bank_account_type");
|
|
69
|
-
return P ? /* @__PURE__ */ t(wt, {}) : /* @__PURE__ */ o(W, { children: [
|
|
70
|
-
/* @__PURE__ */ t(nt, { open: h, onOpenChange: (i) => {
|
|
71
|
-
i || s();
|
|
72
|
-
}, modal: !1, children: /* @__PURE__ */ o(st, { showCloseButton: !1, fullScreen: !0, className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:p-0 ttw:gap-0", onInteractOutside: (i) => i.preventDefault(), children: [
|
|
73
|
-
/* @__PURE__ */ o(mt, { className: "ttw:w-full ttw:max-w-screen ttw:flex-row ttw:justify-between ttw:border-b ttw:border-border ttw:items-center ttw:px-6 ttw:pt-6 ttw:pb-7", children: [
|
|
74
|
-
/* @__PURE__ */ o("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5", children: [
|
|
75
|
-
/* @__PURE__ */ t(lt, { className: "ttw:text-3xl", children: g }),
|
|
76
|
-
/* @__PURE__ */ t(dt, { className: l ? "" : "ttw:sr-only", children: l ?? a._("Invoice details") })
|
|
77
|
-
] }),
|
|
78
|
-
/* @__PURE__ */ t(pt, { variant: "ghost", type: "button", className: "ttw:p-2 ttw:has-[>svg]:px-2", onClick: s, disabled: k, "aria-label": a._("Close"), children: /* @__PURE__ */ t(K, { className: "ttw:size-6.5" }) })
|
|
79
|
-
] }),
|
|
80
|
-
/* @__PURE__ */ o("div", { className: "ttw:flex ttw:flex-1 ttw:min-h-0", children: [
|
|
81
|
-
/* @__PURE__ */ o("div", { ref: _, className: "ttw:w-1/2 ttw:h-full ttw:min-h-0 ttw:overflow-auto ttw:px-8 ttw:pt-6", children: [
|
|
82
|
-
/* @__PURE__ */ t(Y, { ...m, children: /* @__PURE__ */ t("form", { id: x, noValidate: !0, className: "ttw:pb-10", onSubmit: C, children: /* @__PURE__ */ o("div", { className: "ttw:flex ttw:flex-col ttw:gap-8", children: [
|
|
83
|
-
/* @__PURE__ */ t(ft, { disabled: r, canCreateCounterpart: L, isEditCustomerOpen: T, handleOpenEditCustomer: E, counterpart: w }),
|
|
84
|
-
/* @__PURE__ */ t(ht, { paymentTerms: c, isPaymentTermsLoading: O, disabled: r, showPurchaseOrder: y, lockRecurrenceSchedule: v }),
|
|
85
|
-
/* @__PURE__ */ t(gt, { registerLineItemCleanupFn: N, defaultCurrency: d }),
|
|
86
|
-
B && /* @__PURE__ */ t(bt, { disabled: r, embeddedBankName: b }),
|
|
87
|
-
/* @__PURE__ */ t(yt, { disabled: r }),
|
|
88
|
-
/* @__PURE__ */ t(vt, { disabled: r, onUploadingChange: S })
|
|
89
|
-
] }) }) }),
|
|
90
|
-
/* @__PURE__ */ t(ct, { className: "ttw:sticky ttw:bottom-0 ttw:z-10 ttw:flex ttw:items-center ttw:justify-end ttw:gap-4 ttw:bg-background ttw:pt-3 ttw:px-6 ttw:pb-6", children: D })
|
|
91
|
-
] }),
|
|
92
|
-
/* @__PURE__ */ t("div", { className: "ttw:w-1/2 ttw:h-full ttw:min-h-0 ttw:overflow-auto", style: {
|
|
93
|
-
background: "linear-gradient(180deg, #F6F6F6 0%, #E4E4FF 100%)"
|
|
94
|
-
}, children: /* @__PURE__ */ t(xt, { invoiceData: Z({
|
|
95
|
-
lineItems: R,
|
|
96
|
-
paymentTermsId: j,
|
|
97
|
-
memo: $,
|
|
98
|
-
footer: U,
|
|
99
|
-
bankAccountId: q,
|
|
100
|
-
bankAccountType: V,
|
|
101
|
-
taxMode: z,
|
|
102
|
-
purchaseOrder: H,
|
|
103
|
-
taxRate: Q
|
|
104
|
-
}), counterpart: w, currency: d, entityData: A, address: M, paymentTerms: c }) })
|
|
105
|
-
] })
|
|
106
|
-
] }) }),
|
|
107
|
-
/* @__PURE__ */ t(ut, { open: n.open, title: a._("You have unsaved changes"), message: a._("Any unsaved changes will be lost. Are you sure you want to quit without saving?"), confirmLabel: a._("Quit without saving"), cancelLabel: a._("Cancel"), onClose: () => n.onOpenChange(!1), onConfirm: n.onConfirm })
|
|
108
|
-
] });
|
|
109
|
-
};
|
|
1
|
+
function s(...r) {
|
|
2
|
+
let o = "";
|
|
3
|
+
for (const t of r)
|
|
4
|
+
t && (o += t + " ");
|
|
5
|
+
return o;
|
|
6
|
+
}
|
|
110
7
|
export {
|
|
111
|
-
|
|
8
|
+
s as classNames
|
|
112
9
|
};
|