@tesouro/embedded-components-react 0.2.169 → 0.2.174
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 +50 -3
- package/dist/index.d.ts +109 -13
- package/dist/lib/ReceivablesWidget.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- 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/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/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -9
- 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 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +9 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -1
- 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 +58 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +398 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +79 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +6 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +7 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +30 -19
- 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 +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +121 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +218 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -68
- 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 +47 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +152 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +70 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +27 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +61 -215
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +23 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +17 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +2 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +11 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +22 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +110 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +70 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +12 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +9 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +74 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +54 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +23 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +80 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +28 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +39 -466
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +7 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +219 -534
- 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 +466 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +108 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +523 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +23 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +96 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +100 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +13 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
- 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 +1 -1
- 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 +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -1
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +3 -3
- 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 +73 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +44 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +19 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +28 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +38 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +59 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +89 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +108 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +83 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +62 -266
- 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 +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +5 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +491 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +141 -464
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +32 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +62 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +29 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +118 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +22 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +41 -17
- 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 +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +96 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +94 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +212 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +149 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +19 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +8 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +158 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +27 -23
- 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 +28 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +76 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +22 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +55 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +57 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +17 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +20 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +15 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +17 -86
- 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 +170 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +132 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +161 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +17 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +63 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +62 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +55 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +6 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +8 -108
- 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 +57 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +21 -202
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +61 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +13 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +67 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +22 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +125 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +46 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +115 -28
- 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 +108 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +48 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +203 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +68 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +14 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +77 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +343 -40
- 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 +300 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +99 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +159 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +265 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +23 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +18 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +76 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +43 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +33 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +31 -63
- 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 +4 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +18 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +36 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +27 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +31 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +30 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +48 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +8 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +255 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +127 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +4 -4
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +49 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +28 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +53 -34
- 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 +36 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +22 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +10 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +48 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +48 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +64 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +19 -34
- 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 +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +11 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +67 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +21 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +107 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +81 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +2 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +9 -23
- 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 +113 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +18 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +15 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +31 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +4 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +127 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +71 -282
- 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 +16 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +3 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +5 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +7 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +67 -14
- 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 +45 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +21 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +96 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +38 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +27 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +81 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +83 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +265 -20
- 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 +34 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +141 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +2 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +285 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +49 -16
- 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 +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +28 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +29 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +64 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +52 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +37 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +18 -53
- 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 +73 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +51 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +49 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +29 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +36 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +43 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +70 -32
- 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 +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +50 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +38 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +81 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +96 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +75 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +9 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +33 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +85 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +23 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +100 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +108 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +70 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +11 -32
- 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 +54 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +18 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +48 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +56 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +31 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +36 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +24 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +24 -68
- 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 +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
- 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/index488.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
- 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/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 +21 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2544 -2476
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
- package/dist/pending-feature-style-sources.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,539 +1,224 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
1
|
+
import { toMinorUnits as _ } from "./index119.js";
|
|
2
|
+
import { CurrencyEnumSchema as l } from "./index285.js";
|
|
3
|
+
import { z as e } from "zod";
|
|
4
|
+
const s = (r) => l, x = (r) => e.object({
|
|
5
|
+
account_holder_name: e.string().trim().min(1, r._("Account holder name is required")).max(255, r._("Account holder name must be 255 characters or less")),
|
|
6
|
+
account_number: e.string().trim().min(1, r._("Account number is required")).regex(/^\d+$/, r._("Account number must contain only digits")).min(4, r._("Account number must be at least 4 digits")).max(17, r._("Account number must be at most 17 digits")),
|
|
7
|
+
bank_name: e.string().optional(),
|
|
8
|
+
routing_number: e.string().trim().min(1, r._("Routing number is required")).regex(/^\d{9}$/, r._("Routing number must be 9 digits")),
|
|
9
|
+
display_name: e.string().max(200, r._("Display name must be 200 characters or less")).optional()
|
|
10
|
+
}), f = (r, t) => e.object({
|
|
11
|
+
amount: e.coerce.number({
|
|
12
|
+
error: r._("Amount is required")
|
|
13
|
+
}).meta({
|
|
14
|
+
title: r._("Amount")
|
|
15
|
+
}).min(0, r._("Can't be a negative number")).refine((a) => _(a) <= t, {
|
|
16
|
+
message: r._("Can't be more than the amount due")
|
|
17
|
+
}),
|
|
18
|
+
payment_date: e.date({
|
|
19
|
+
error: r._("Date is required")
|
|
20
|
+
}).meta({
|
|
21
|
+
title: r._("Date")
|
|
22
|
+
}),
|
|
23
|
+
payment_time: e.date({
|
|
24
|
+
error: r._("Time is required")
|
|
25
|
+
}).meta({
|
|
26
|
+
title: r._("Time")
|
|
27
|
+
})
|
|
28
|
+
}), p = (r) => {
|
|
29
|
+
const t = e.object({
|
|
30
|
+
id: e.string().optional(),
|
|
31
|
+
quantity: e.number().min(0.1, r._("Quantity is a required field")),
|
|
32
|
+
product_id: e.string().optional(),
|
|
33
|
+
taxable: e.boolean().optional(),
|
|
34
|
+
product: e.object({
|
|
35
|
+
name: e.string().min(1, r._("Name is a required field")).max(100, r._("Product name must be 100 characters or less")),
|
|
36
|
+
description: e.string().optional(),
|
|
37
|
+
price: e.object({
|
|
38
|
+
currency: s(),
|
|
39
|
+
value: e.number()
|
|
40
|
+
}),
|
|
41
|
+
measure_unit_id: e.string().optional(),
|
|
42
|
+
type: e.enum(["product", "service"])
|
|
43
|
+
}),
|
|
44
|
+
tax_rate_value: e.number().min(0, r._("Tax rate must be 0 or greater")).max(100, r._("Tax rate must be 100 or less")).optional()
|
|
45
|
+
});
|
|
46
|
+
return e.array(t).min(1, r._("Please, add at least 1 item to proceed with this invoice"));
|
|
47
|
+
}, c = (r) => e.object({
|
|
48
|
+
// Required via `refineCounterpartRequired` — either a selected
|
|
49
|
+
// `counterpart_id` or a typed `counterpart_name` satisfies it.
|
|
50
|
+
counterpart_id: e.string().optional(),
|
|
51
|
+
counterpart_name: e.string().optional(),
|
|
52
|
+
counterpart_email: e.email({
|
|
53
|
+
message: r._("Please enter a valid email address")
|
|
54
|
+
}).or(e.literal("")).optional(),
|
|
55
|
+
entity_vat_id_id: e.string().optional(),
|
|
56
|
+
purchase_order: e.string().optional(),
|
|
57
|
+
terms_and_conditions: e.string().optional(),
|
|
58
|
+
default_billing_address_id: e.string().optional(),
|
|
59
|
+
default_shipping_address_id: e.string().optional(),
|
|
60
|
+
tax_rate: e.string().optional(),
|
|
61
|
+
memo: e.string().optional(),
|
|
62
|
+
payment_terms_id: e.string().min(1, r._("Payment terms is a required field")),
|
|
63
|
+
payment_terms_custom_date: e.date().nullable().optional(),
|
|
64
|
+
footer: e.string().optional(),
|
|
65
|
+
line_items: p(r),
|
|
66
|
+
overdue_reminder_id: e.string().nullable().optional(),
|
|
67
|
+
payment_reminder_id: e.string().nullable().optional(),
|
|
68
|
+
tax_mode: e.enum(["exclusive", "inclusive"])
|
|
69
|
+
}), q = (r, t, a = !0, n = 0) => c(r).extend({
|
|
70
|
+
type: e.string(),
|
|
71
|
+
bank_account_id: t ? e.string().min(1, r._("Choose how to get paid.")) : e.string().optional(),
|
|
72
|
+
bank_account_type: e.enum(["INTERNAL", "EXTERNAL", "BANK_DETAILS"]).optional(),
|
|
73
|
+
// Files uploaded on-drop during create (EMBD-3617). Only uploaded files
|
|
74
|
+
// (with a `file.id`) land here; `id` + `include_in_email` ride the single
|
|
75
|
+
// `POST /receivables`, `name`/`size` are for the file-list row only.
|
|
76
|
+
// Create-only — the edit schema does not carry attachments.
|
|
77
|
+
attachments: e.array(e.object({
|
|
78
|
+
id: e.string(),
|
|
79
|
+
include_in_email: e.boolean(),
|
|
80
|
+
name: e.string(),
|
|
81
|
+
size: e.number()
|
|
82
|
+
})).default([]),
|
|
83
|
+
...u().shape
|
|
84
|
+
}).superRefine((o, i) => {
|
|
85
|
+
d(o, i, r, n), m(o, i, r, a);
|
|
86
|
+
}), g = (r) => e.array(e.object({
|
|
87
|
+
id: e.string().optional(),
|
|
88
|
+
quantity: e.number().optional(),
|
|
89
|
+
product_id: e.string().optional(),
|
|
90
|
+
taxable: e.boolean().optional(),
|
|
91
|
+
product: e.object({
|
|
92
|
+
name: e.string().max(100, r._("Product name must be 100 characters or less")).optional(),
|
|
93
|
+
description: e.string().optional(),
|
|
94
|
+
price: e.object({
|
|
95
|
+
currency: s(),
|
|
96
|
+
value: e.number()
|
|
97
|
+
}),
|
|
98
|
+
measure_unit_id: e.string().optional(),
|
|
99
|
+
type: e.enum(["product", "service"])
|
|
100
|
+
}),
|
|
101
|
+
tax_rate_value: e.number().min(0, r._("Tax rate must be 0 or greater")).max(100, r._("Tax rate must be 100 or less")).optional()
|
|
102
|
+
})), I = (r, t = !0) => c(r).extend({
|
|
103
|
+
type: e.string(),
|
|
104
|
+
// Relaxed vs. the issue schema: optional for a draft.
|
|
105
|
+
payment_terms_id: e.string().optional(),
|
|
106
|
+
line_items: g(r),
|
|
107
|
+
bank_account_id: e.string().optional(),
|
|
108
|
+
bank_account_type: e.enum(["INTERNAL", "EXTERNAL", "BANK_DETAILS"]).optional(),
|
|
109
|
+
attachments: e.array(e.object({
|
|
110
|
+
id: e.string(),
|
|
111
|
+
include_in_email: e.boolean(),
|
|
112
|
+
name: e.string(),
|
|
113
|
+
size: e.number()
|
|
114
|
+
})).default([]),
|
|
115
|
+
...u().shape
|
|
116
|
+
}).superRefine((a, n) => {
|
|
117
|
+
d(a, n, r), m(a, n, r, t);
|
|
118
|
+
}), u = () => e.object({
|
|
119
|
+
// `once` isn't part of the API's `RecurrenceFrequency` enum ('day' |
|
|
120
|
+
// 'week' | 'month' | 'quarter' | 'year') — it represents not creating a
|
|
121
|
+
// recurrence at all. The other recurrence fields are optional here and
|
|
122
|
+
// only required (via `refineRecurrenceFields` below) when frequency
|
|
123
|
+
// isn't `once`.
|
|
124
|
+
frequency: e.enum(["once", "day", "week", "month", "quarter", "year"]),
|
|
125
|
+
recurrence_start_date: e.date().optional(),
|
|
126
|
+
recurrence_end_date: e.date().optional(),
|
|
127
|
+
// Holds the deprecated `first_day`/`last_day` values as well as a plain
|
|
128
|
+
// day-of-month string ('1'..'31') from the monthly day-of-month picker —
|
|
129
|
+
// the API's `day_of_month` enum only covers the first two.
|
|
130
|
+
recurrence_issue_mode: e.string().optional(),
|
|
131
|
+
// Day of week selected for a weekly recurrence — only one can be active
|
|
132
|
+
// at a time. Note: the Monite `CreateRecurrencePayload` has no field for
|
|
133
|
+
// this — a weekly recurrence's day is derived from `start_date` alone.
|
|
134
|
+
// This is captured for now so the selection isn't lost; how it maps to
|
|
135
|
+
// the request body still needs to be decided.
|
|
136
|
+
recurrence_days_of_week: e.enum(["mo", "tu", "we", "th", "fr", "sa", "su"]).optional(),
|
|
137
|
+
// Which mutually-exclusive end condition is active — maps to the API's
|
|
138
|
+
// `end_date` vs `max_occurrences`.
|
|
139
|
+
recurrence_end_mode: e.enum(["after", "on"]).optional(),
|
|
140
|
+
recurrence_max_occurrences: e.coerce.number().int().min(1).max(1e3).optional(),
|
|
141
|
+
recurrence_subject_text: e.string().optional(),
|
|
142
|
+
recurrence_body_text: e.string().optional()
|
|
143
|
+
}), m = (r, t, a, n = !0) => {
|
|
144
|
+
const o = !!r.counterpart_id?.trim(), i = n && !!r.counterpart_name?.trim();
|
|
145
|
+
!o && !i && t.addIssue({
|
|
146
|
+
code: "custom",
|
|
147
|
+
message: a._("Customer is a required field"),
|
|
148
|
+
path: ["counterpart_id"]
|
|
149
|
+
});
|
|
150
|
+
}, d = (r, t, a, n = 0) => {
|
|
151
|
+
if (!r.frequency || r.frequency === "once") return;
|
|
152
|
+
switch (r.recurrence_start_date || t.addIssue({
|
|
153
|
+
code: "custom",
|
|
154
|
+
message: a._("Start date is required"),
|
|
155
|
+
path: ["recurrence_start_date"]
|
|
156
|
+
}), r.frequency) {
|
|
157
|
+
case "month":
|
|
158
|
+
r.recurrence_issue_mode || t.addIssue({
|
|
159
|
+
code: "custom",
|
|
160
|
+
message: a._("Day of month is required"),
|
|
161
|
+
path: ["recurrence_issue_mode"]
|
|
162
|
+
}), r.recurrence_max_occurrences || t.addIssue({
|
|
163
|
+
code: "custom",
|
|
164
|
+
message: a._("Number of months is required"),
|
|
165
|
+
path: ["recurrence_max_occurrences"]
|
|
138
166
|
});
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
case "send":
|
|
150
|
-
return t._("Resend to customer");
|
|
151
|
-
case "clone":
|
|
152
|
-
return t._("Duplicate");
|
|
153
|
-
case "cancel":
|
|
154
|
-
return t._("Cancel invoice");
|
|
155
|
-
case "delete":
|
|
156
|
-
return t._("Delete");
|
|
157
|
-
case "markUncollectible":
|
|
158
|
-
return t._("Mark as uncollectible");
|
|
159
|
-
case "pauseRecurrence":
|
|
160
|
-
return t._("Pause series");
|
|
161
|
-
case "resumeRecurrence":
|
|
162
|
-
return t._("Resume series");
|
|
163
|
-
case "cancelRecurrence":
|
|
164
|
-
return t._("Cancel series");
|
|
165
|
-
}
|
|
166
|
-
}, m = h((o) => {
|
|
167
|
-
he ? o() : u.error(t._("You don't have permission to update this document. Please, contact your system administrator for details."));
|
|
168
|
-
}, [he, t]), xe = h((o) => {
|
|
169
|
-
I(o), N(!0);
|
|
170
|
-
}, []), Ne = h(() => {
|
|
171
|
-
if (!i || i.type !== "invoice") return !1;
|
|
172
|
-
const o = Ft(i, p);
|
|
173
|
-
return Et(t, U, be).safeParse(o).success;
|
|
174
|
-
}, [i, p, t, U, be]), R = h((o) => {
|
|
175
|
-
if (!Ne())
|
|
176
|
-
return xe(o), !1;
|
|
177
|
-
if (F) return !1;
|
|
178
|
-
if (K && !J?.tax_id)
|
|
179
|
-
return u.error(t._("Set your organization's Tax ID to issue invoice")), !1;
|
|
180
|
-
if (!Q) return !0;
|
|
181
|
-
const l = Pe(v), c = v?.reminders_enabled;
|
|
182
|
-
return !c && l ? (u.error(t._("Payment reminders are disabled for this customer. Please enable them in the customer details or turn them off.")), !1) : !l && c ? (u.error(t._("No email address is added for the selected customer. Please add it to the customer details or turn off the reminders.")), !1) : !c && !l ? (u.error(t._("Reminders are disabled for this customer, and no email address has been added for it. Please update the details or turn off reminders.")), !1) : !0;
|
|
183
|
-
}, [v, J?.tax_id, Q, t, K, F, Ne, xe]), Ie = h(async () => {
|
|
184
|
-
if (R("issue"))
|
|
185
|
-
try {
|
|
186
|
-
await L({
|
|
187
|
-
path: {
|
|
188
|
-
receivable_id: d
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
} catch {
|
|
192
|
-
u.error(t._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
|
|
193
|
-
}
|
|
194
|
-
}, [R, L, d, t]), Ce = h(async () => {
|
|
195
|
-
if (i?.counterpart_id && !f) {
|
|
196
|
-
if (!x) {
|
|
197
|
-
u.error(t._("This customer has no email address. Add one in the customer details to send the invoice."));
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
if (R("issueAndSend")) {
|
|
201
|
-
try {
|
|
202
|
-
await L({
|
|
203
|
-
path: {
|
|
204
|
-
receivable_id: d
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
} catch {
|
|
208
|
-
u.error(t._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
b({
|
|
212
|
-
action: "issue",
|
|
213
|
-
inlineLineItems: [],
|
|
214
|
-
// Just issued now — present it like the create flow ("Invoice issued").
|
|
215
|
-
isEditFlow: !1,
|
|
216
|
-
issue: {
|
|
217
|
-
receivableId: d,
|
|
218
|
-
counterpartId: i.counterpart_id
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}, [i?.counterpart_id, x, f, R, L, d, t]), Le = h((o) => {
|
|
224
|
-
switch (o) {
|
|
225
|
-
case "edit":
|
|
226
|
-
return m(() => {
|
|
227
|
-
I("edit"), N(!0);
|
|
228
|
-
});
|
|
229
|
-
case "issue":
|
|
230
|
-
return m(Ie);
|
|
231
|
-
case "issueAndSend":
|
|
232
|
-
return m(Ce);
|
|
233
|
-
case "send":
|
|
234
|
-
return m(() => {
|
|
235
|
-
if (!f) {
|
|
236
|
-
if (!x) {
|
|
237
|
-
u.error(t._("This customer has no email address. Add one in the customer details to send the invoice."));
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
i?.counterpart_id && b({
|
|
241
|
-
action: "issue",
|
|
242
|
-
inlineLineItems: [],
|
|
243
|
-
// Already issued — a plain resend, not a fresh issue.
|
|
244
|
-
isEditFlow: !0,
|
|
245
|
-
issue: {
|
|
246
|
-
receivableId: d,
|
|
247
|
-
counterpartId: i.counterpart_id
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
case "clone":
|
|
253
|
-
return m(() => ye({
|
|
254
|
-
path: {
|
|
255
|
-
receivable_id: d
|
|
256
|
-
}
|
|
257
|
-
}));
|
|
258
|
-
case "cancel":
|
|
259
|
-
return m(() => se(!0));
|
|
260
|
-
case "delete":
|
|
261
|
-
return m(() => le(!0));
|
|
262
|
-
case "markUncollectible":
|
|
263
|
-
return m(() => de(!0));
|
|
264
|
-
case "pauseRecurrence":
|
|
265
|
-
return m(() => ge(void 0));
|
|
266
|
-
case "resumeRecurrence":
|
|
267
|
-
return m(() => _e(void 0));
|
|
268
|
-
case "cancelRecurrence":
|
|
269
|
-
return m(() => ue(!0));
|
|
270
|
-
case "recordPayment":
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
}, [m, Ie, Ce, x, f, i?.counterpart_id, ye, d, ge, _e, t]), at = () => {
|
|
274
|
-
if (W || Z)
|
|
275
|
-
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-center ttw:h-full", children: [
|
|
276
|
-
/* @__PURE__ */ e($, { hidden: !0, children: t._("Loading invoice details") }),
|
|
277
|
-
/* @__PURE__ */ e(Ee, {})
|
|
278
|
-
] });
|
|
279
|
-
if (!fe)
|
|
280
|
-
return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
|
|
281
|
-
/* @__PURE__ */ e($, { hidden: !0, children: t._("Access restricted") }),
|
|
282
|
-
/* @__PURE__ */ e(yt, {})
|
|
283
|
-
] });
|
|
284
|
-
if (i && i.type !== "invoice")
|
|
285
|
-
return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
|
|
286
|
-
/* @__PURE__ */ e($, { hidden: !0, children: t._("Receivable type not supported") }),
|
|
287
|
-
/* @__PURE__ */ e(Me, { title: t._("Receivable type not supported"), description: t._("Receivable type {type} is not supported. Only invoice is supported.", {
|
|
288
|
-
type: i.type
|
|
289
|
-
}) })
|
|
290
|
-
] });
|
|
291
|
-
if (!i || !n)
|
|
292
|
-
return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
|
|
293
|
-
/* @__PURE__ */ e($, { hidden: !0, children: t._("Invoice not found") }),
|
|
294
|
-
/* @__PURE__ */ e(Me, { title: t._("Invoice not found"), description: t._("There is no invoice for the provided id: {invoiceId}", {
|
|
295
|
-
invoiceId: d
|
|
296
|
-
}) })
|
|
297
|
-
] });
|
|
298
|
-
const o = Tt[n.status], l = n.amountTone === "danger", c = n.recurringSeries, A = !!c, O = i.counterpart_name, st = i.counterpart_id && ve ? () => we(!0) : void 0, Re = n.primaryActions.length > 0 ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3", children: n.primaryActions.map((a, ot) => {
|
|
299
|
-
const Ae = $t[a], De = ot === n.primaryActions.length - 1 ? "default" : "outline";
|
|
300
|
-
return a === "recordPayment" && i.type === "invoice" ? /* @__PURE__ */ e(si, { invoice: i, children: ({
|
|
301
|
-
openModal: lt
|
|
302
|
-
}) => /* @__PURE__ */ r(j, { type: "button", size: "sm", variant: De, onClick: () => m(lt), children: [
|
|
303
|
-
/* @__PURE__ */ e(Ae, { className: "ttw:size-4" }),
|
|
304
|
-
M(a)
|
|
305
|
-
] }) }, a) : /* @__PURE__ */ r(
|
|
306
|
-
j,
|
|
307
|
-
{
|
|
308
|
-
type: "button",
|
|
309
|
-
size: "sm",
|
|
310
|
-
variant: De,
|
|
311
|
-
disabled: (a === "issue" || a === "issueAndSend") && (Ze || F) || a === "issueAndSend" && f,
|
|
312
|
-
onClick: () => Le(a),
|
|
313
|
-
children: [
|
|
314
|
-
/* @__PURE__ */ e(Ae, { className: "ttw:size-4" }),
|
|
315
|
-
M(a)
|
|
316
|
-
]
|
|
317
|
-
},
|
|
318
|
-
a
|
|
319
|
-
);
|
|
320
|
-
}) }) : null;
|
|
321
|
-
return /* @__PURE__ */ r(Te, { children: [
|
|
322
|
-
n.seriesLink ? /* @__PURE__ */ e("div", { className: "ttw:border-b ttw:border-border ttw:px-6 ttw:py-3", children: /* @__PURE__ */ r("button", { type: "button", onClick: () => n.seriesLink && S?.(n.seriesLink.invoiceId), className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-primary ttw:hover:underline", children: [
|
|
323
|
-
/* @__PURE__ */ e(Rt, { className: "ttw:size-4", "aria-hidden": "true" }),
|
|
324
|
-
t._("Back to {title} recurring series", {
|
|
325
|
-
title: n.seriesLink.title
|
|
326
|
-
})
|
|
327
|
-
] }) }) : null,
|
|
328
|
-
/* @__PURE__ */ r(It, { className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-2 ttw:space-y-0 ttw:px-6 ttw:py-4", children: [
|
|
329
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
330
|
-
/* @__PURE__ */ e(Ct, { className: "ttw:text-xl ttw:font-semibold ttw:text-foreground", children: n.title }),
|
|
331
|
-
n.subtitle ? /* @__PURE__ */ e(s, { variant: "body2", color: "muted", children: n.subtitle }) : null
|
|
332
|
-
] }),
|
|
333
|
-
/* @__PURE__ */ e(Lt, { delayDuration: Pt, children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-1.5", children: [
|
|
334
|
-
X ? /* @__PURE__ */ r(Se, { children: [
|
|
335
|
-
/* @__PURE__ */ e(ke, { asChild: !0, onFocus: Be, children: /* @__PURE__ */ e(j, { asChild: !0, variant: "ghost", size: "icon", className: P, children: /* @__PURE__ */ e("a", { href: X, target: "_blank", rel: "noreferrer", "aria-label": t._("View PDF"), children: /* @__PURE__ */ e(At, { className: "ttw:size-4" }) }) }) }),
|
|
336
|
-
/* @__PURE__ */ e(Fe, { children: t._("View PDF") })
|
|
337
|
-
] }) : null,
|
|
338
|
-
n.overflowActions.length > 0 ? /* @__PURE__ */ e(ai, { actions: n.overflowActions, triggerLabel: t._("More actions"), getActionLabel: M, onSelect: Le, isActionDisabled: (a) => a === "clone" && et || a === "pauseRecurrence" && tt || a === "resumeRecurrence" && it || // "Resend" needs the customer email, so wait for it to load.
|
|
339
|
-
a === "send" && f, className: P }) : null,
|
|
340
|
-
/* @__PURE__ */ r(Se, { children: [
|
|
341
|
-
/* @__PURE__ */ e(ke, { asChild: !0, onFocus: Be, children: /* @__PURE__ */ e(ze, { label: t._("Close"), onClose: _, className: P }) }),
|
|
342
|
-
/* @__PURE__ */ e(Fe, { children: t._("Close") })
|
|
343
|
-
] })
|
|
344
|
-
] }) })
|
|
345
|
-
] }),
|
|
346
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
347
|
-
/* @__PURE__ */ e("div", { className: "ttw:px-6", children: A && c ? (
|
|
348
|
-
// Recurring series master: recurring amount + series status +
|
|
349
|
-
// start/end, in place of the per-invoice amount rows. The card
|
|
350
|
-
// takes a violet tint (vs the neutral invoice card) to signal a
|
|
351
|
-
// recurrence, matching the Recurring badge.
|
|
352
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-violet-50 ttw:p-4", children: [
|
|
353
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
354
|
-
/* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Recurring amount") }),
|
|
355
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-baseline ttw:gap-1.5", children: [
|
|
356
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "h3", className: St[n.amountTone], children: c.amountLabel }),
|
|
357
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", color: "muted", children: c.amountPeriodLabel })
|
|
358
|
-
] })
|
|
359
|
-
] }),
|
|
360
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
361
|
-
/* @__PURE__ */ r(T, { variant: "outline", className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700", children: [
|
|
362
|
-
/* @__PURE__ */ e(Oe, { className: "ttw:size-3" }),
|
|
363
|
-
t._("Recurring")
|
|
364
|
-
] }),
|
|
365
|
-
/* @__PURE__ */ e(ii, { status: c.status, showIcon: !0 })
|
|
366
|
-
] }),
|
|
367
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-12", children: [
|
|
368
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
369
|
-
/* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Starts on") }),
|
|
370
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: c.startsOnLabel })
|
|
371
|
-
] }),
|
|
372
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
373
|
-
/* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Ends on") }),
|
|
374
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: c.endsOnLabel })
|
|
375
|
-
] })
|
|
376
|
-
] }),
|
|
377
|
-
Re
|
|
378
|
-
] })
|
|
379
|
-
) : /* @__PURE__ */ r("div", { className: G("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", l && "ttw:border ttw:border-red-200"), children: [
|
|
380
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2", children: n.amountRows.map((a) => /* @__PURE__ */ e(Wt, { row: a, defaultTone: n.amountTone }, a.label)) }),
|
|
381
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
382
|
-
n.overdueLabel ? /* @__PURE__ */ r("span", { className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:rounded-full ttw:bg-red-100 ttw:px-2.5 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:text-red-700", children: [
|
|
383
|
-
/* @__PURE__ */ e(Dt, { className: "ttw:size-3" }),
|
|
384
|
-
n.overdueLabel
|
|
385
|
-
] }) : /* @__PURE__ */ e(ri, { status: n.status, variant: "outline", label: n.statusLabel, icon: o ? /* @__PURE__ */ e(o, { className: "ttw:size-3" }) : void 0 }),
|
|
386
|
-
n.recurring ? /* @__PURE__ */ r(T, { variant: "outline", className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700", children: [
|
|
387
|
-
/* @__PURE__ */ e(Oe, { className: "ttw:size-3" }),
|
|
388
|
-
t._("Recurring")
|
|
389
|
-
] }) : null
|
|
390
|
-
] }),
|
|
391
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-12", children: [
|
|
392
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
393
|
-
/* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Invoice date") }),
|
|
394
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: n.invoiceDateLabel })
|
|
395
|
-
] }),
|
|
396
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
|
|
397
|
-
/* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: n.dueDateCaption }),
|
|
398
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: n.dueDateLabel })
|
|
399
|
-
] })
|
|
400
|
-
] }),
|
|
401
|
-
Re
|
|
402
|
-
] }) }),
|
|
403
|
-
/* @__PURE__ */ r("div", { className: "ttw:px-6", children: [
|
|
404
|
-
n.paymentHistory ? /* @__PURE__ */ r("section", { "aria-label": t._("Payment history"), className: "ttw:border-b ttw:border-border ttw:py-4", children: [
|
|
405
|
-
/* @__PURE__ */ e(s, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: t._("Payment history") }),
|
|
406
|
-
n.paymentHistory.loading ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:py-2", children: /* @__PURE__ */ e(Ee, { className: "ttw:h-5 ttw:w-5 ttw:border-2" }) }) : n.paymentHistory.rows.length === 0 ? /* @__PURE__ */ e(s, { variant: "body2", className: n.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground", children: t._("You've received no payments yet.") }) : /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
407
|
-
n.paymentHistory.rows.map((a) => /* @__PURE__ */ r("div", { className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2", children: [
|
|
408
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.dateLabel }),
|
|
409
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.amountLabel })
|
|
410
|
-
] }, a.id)),
|
|
411
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:justify-between ttw:py-2 ttw:font-medium", children: [
|
|
412
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: t._("Total received") }),
|
|
413
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: n.paymentHistory.totalLabel })
|
|
414
|
-
] })
|
|
415
|
-
] })
|
|
416
|
-
] }) : null,
|
|
417
|
-
O || n.customerContact.length > 0 ? /* @__PURE__ */ r("section", { "aria-label": t._("Customer details"), className: "ttw:border-b ttw:border-border ttw:py-4", children: [
|
|
418
|
-
/* @__PURE__ */ e(s, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: t._("Customer details") }),
|
|
419
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
420
|
-
O ? /* @__PURE__ */ e(Qt, { label: t._("Name"), name: O, onOpenCounterpart: st }) : null,
|
|
421
|
-
n.customerContact.map((a) => /* @__PURE__ */ e(Ve, { ...a }, a.label))
|
|
422
|
-
] })
|
|
423
|
-
] }) : null,
|
|
424
|
-
/* @__PURE__ */ r(gt, { type: "multiple", defaultValue: ["attachments"], className: "ttw:w-full", children: [
|
|
425
|
-
/* @__PURE__ */ r(B, { value: "billing", children: [
|
|
426
|
-
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Billing details") }) }),
|
|
427
|
-
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
428
|
-
n.billingItems.map((a) => /* @__PURE__ */ e(Ve, { ...a }, a.label)),
|
|
429
|
-
n.seriesLink ? /* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0", children: [
|
|
430
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: t._("Recurring series") }),
|
|
431
|
-
/* @__PURE__ */ e("button", { type: "button", onClick: () => n.seriesLink && S?.(n.seriesLink.invoiceId), className: "ttw:text-left ttw:text-primary ttw:hover:underline", children: n.seriesLink.title })
|
|
432
|
-
] }) : null
|
|
433
|
-
] }) })
|
|
434
|
-
] }),
|
|
435
|
-
A ? null : /* @__PURE__ */ r(B, { value: "line-items", children: [
|
|
436
|
-
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
437
|
-
/* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Line items") }),
|
|
438
|
-
/* @__PURE__ */ e(T, { variant: "secondary", className: "ttw:rounded-full", children: n.lineItems.length })
|
|
439
|
-
] }) }),
|
|
440
|
-
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
441
|
-
n.lineItems.length === 0 ? /* @__PURE__ */ e(s, { variant: "body2", color: "muted", className: "ttw:py-3", children: t._("No line items.") }) : n.lineItems.map((a) => /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3", children: [
|
|
442
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
443
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", className: "ttw:font-medium", children: a.name }),
|
|
444
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", color: "muted", children: t._("{quantity} x {price} ea", {
|
|
445
|
-
quantity: a.quantityLabel,
|
|
446
|
-
price: a.unitPriceLabel
|
|
447
|
-
}) })
|
|
448
|
-
] }),
|
|
449
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.totalLabel })
|
|
450
|
-
] }, a.id)),
|
|
451
|
-
n.lineItemTotals.length > 0 ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3", children: n.lineItemTotals.map((a) => /* @__PURE__ */ r("div", { className: G("ttw:flex ttw:justify-between", a.emphasis && "ttw:font-medium"), children: [
|
|
452
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.label }),
|
|
453
|
-
/* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.value })
|
|
454
|
-
] }, a.label)) }) : null
|
|
455
|
-
] }) })
|
|
456
|
-
] }),
|
|
457
|
-
!A && n.notes ? /* @__PURE__ */ r(B, { value: "notes", children: [
|
|
458
|
-
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
459
|
-
/* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Notes") }),
|
|
460
|
-
/* @__PURE__ */ e(T, { variant: "secondary", className: "ttw:rounded-full", children: [n.notes.opening, n.notes.closing].filter(Boolean).length })
|
|
461
|
-
] }) }),
|
|
462
|
-
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [{
|
|
463
|
-
label: t._("Opening note to customer"),
|
|
464
|
-
text: n.notes.opening
|
|
465
|
-
}, {
|
|
466
|
-
label: t._("Closing note to customer"),
|
|
467
|
-
text: n.notes.closing
|
|
468
|
-
}].filter((a) => a.text).map((a) => /* @__PURE__ */ r("div", { children: [
|
|
469
|
-
/* @__PURE__ */ e(s, { variant: "body2", className: "ttw:mb-1 ttw:font-medium", children: a.label }),
|
|
470
|
-
/* @__PURE__ */ e(s, { variant: "body2", color: "muted", children: a.text })
|
|
471
|
-
] }, a.label)) }) })
|
|
472
|
-
] }) : null,
|
|
473
|
-
/* @__PURE__ */ e(Yt, { attachments: i.attachments ?? [] })
|
|
474
|
-
] }),
|
|
475
|
-
A && c && p ? /* @__PURE__ */ r("section", { "aria-label": c.scheduleTitle, className: "ttw:border-t ttw:border-border ttw:py-4", children: [
|
|
476
|
-
/* @__PURE__ */ e(s, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: c.scheduleTitle }),
|
|
477
|
-
/* @__PURE__ */ e(ti, { invoice: i, recurrence: p, openInvoiceDetails: S })
|
|
478
|
-
] }) : null
|
|
479
|
-
] })
|
|
480
|
-
] })
|
|
481
|
-
] });
|
|
482
|
-
};
|
|
483
|
-
return /* @__PURE__ */ r(Te, { children: [
|
|
484
|
-
E && i && /* @__PURE__ */ e(Kt, { isOpen: E, invoice: i, issueIntent: ne !== "edit", onUpdated: (o, l) => {
|
|
485
|
-
N(!1);
|
|
486
|
-
const c = ne !== "issue";
|
|
487
|
-
I("edit"), Ue?.onUpdate?.(o.id, o), l.issued && c && l.hasCustomerEmail ? b({
|
|
488
|
-
action: "issue",
|
|
489
|
-
isEditFlow: !1,
|
|
490
|
-
inlineLineItems: l.inlineLineItems,
|
|
491
|
-
issue: {
|
|
492
|
-
receivableId: o.id,
|
|
493
|
-
counterpartId: l.counterpartId
|
|
494
|
-
}
|
|
495
|
-
}) : l.issued && l.inlineLineItems.length > 0 ? b({
|
|
496
|
-
action: "issue",
|
|
497
|
-
isEditFlow: !1,
|
|
498
|
-
inlineLineItems: l.inlineLineItems
|
|
499
|
-
}) : l.inlineLineItems.length > 0 && b({
|
|
500
|
-
action: l.activatedRecurrence ? "recurrence" : "update",
|
|
501
|
-
isEditFlow: !0,
|
|
502
|
-
inlineLineItems: l.inlineLineItems
|
|
167
|
+
break;
|
|
168
|
+
case "week":
|
|
169
|
+
r.recurrence_days_of_week || t.addIssue({
|
|
170
|
+
code: "custom",
|
|
171
|
+
message: a._("Day of week is required"),
|
|
172
|
+
path: ["recurrence_days_of_week"]
|
|
173
|
+
}), r.recurrence_max_occurrences || t.addIssue({
|
|
174
|
+
code: "custom",
|
|
175
|
+
message: a._("Number of weeks is required"),
|
|
176
|
+
path: ["recurrence_max_occurrences"]
|
|
503
177
|
});
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
178
|
+
break;
|
|
179
|
+
case "quarter":
|
|
180
|
+
r.recurrence_max_occurrences || t.addIssue({
|
|
181
|
+
code: "custom",
|
|
182
|
+
message: a._("Number of quarters is required"),
|
|
183
|
+
path: ["recurrence_max_occurrences"]
|
|
184
|
+
});
|
|
185
|
+
break;
|
|
186
|
+
case "year":
|
|
187
|
+
r.recurrence_max_occurrences || t.addIssue({
|
|
188
|
+
code: "custom",
|
|
189
|
+
message: a._("Number of years is required"),
|
|
190
|
+
path: ["recurrence_max_occurrences"]
|
|
191
|
+
});
|
|
192
|
+
break;
|
|
193
|
+
case "day":
|
|
194
|
+
r.recurrence_end_mode ? r.recurrence_end_mode === "after" && !r.recurrence_max_occurrences ? t.addIssue({
|
|
195
|
+
code: "custom",
|
|
196
|
+
message: a._("Number of days is required"),
|
|
197
|
+
path: ["recurrence_max_occurrences"]
|
|
198
|
+
}) : r.recurrence_end_mode === "on" && !r.recurrence_end_date && t.addIssue({
|
|
199
|
+
code: "custom",
|
|
200
|
+
message: a._("End date is required"),
|
|
201
|
+
path: ["recurrence_end_date"]
|
|
202
|
+
}) : t.addIssue({
|
|
203
|
+
code: "custom",
|
|
204
|
+
message: a._("End condition is required"),
|
|
205
|
+
path: ["recurrence_end_mode"]
|
|
206
|
+
});
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
const o = r.frequency === "day" && r.recurrence_end_mode === "on";
|
|
210
|
+
n > 0 && !o && r.recurrence_max_occurrences && r.recurrence_max_occurrences < n && t.addIssue({
|
|
211
|
+
code: "custom",
|
|
212
|
+
message: a._("Can't be less than the {count} invoices already issued", {
|
|
213
|
+
count: n
|
|
214
|
+
}),
|
|
215
|
+
path: ["recurrence_max_occurrences"]
|
|
216
|
+
});
|
|
536
217
|
};
|
|
537
218
|
export {
|
|
538
|
-
|
|
219
|
+
x as getCreateBankAccountSchema,
|
|
220
|
+
s as getCurrencyEnum,
|
|
221
|
+
I as getDraftInvoiceValidationSchema,
|
|
222
|
+
q as getInvoiceValidationSchema,
|
|
223
|
+
f as manualPaymentRecordValidationSchema
|
|
539
224
|
};
|