@tesouro/embedded-components-react 0.2.224 → 0.2.225
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 +25 -25
- 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 +3 -13
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- 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 +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -2
- 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 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +1271 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +8 -1270
- 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 +79 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +6 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +31 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +8 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +10 -30
- 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 +121 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +216 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +8 -10
- 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 +46 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +48 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +13 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -12
- 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 +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +147 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +54 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +71 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +3 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +61 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +37 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +79 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +99 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +57 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +24 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +12 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +113 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +68 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +14 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +93 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +101 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +15 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +9 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +45 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +75 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +58 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +22 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +79 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +27 -40
- 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 +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +7 -228
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +222 -464
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +462 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +98 -527
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +536 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +397 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +68 -17
- 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 +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +406 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +26 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +214 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +35 -12
- 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/index220.js +62 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +42 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +20 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +30 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +39 -358
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +63 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +96 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +112 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +86 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +55 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +58 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +62 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +51 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +73 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +31 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +19 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +80 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +34 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +66 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +360 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +2 -52
- 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 +117 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +18 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +10 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +11 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +12 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -75
- 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 +27 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +35 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +34 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +14 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +29 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +17 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +105 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +11 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +24 -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 +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +56 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +51 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +98 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +47 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +146 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +106 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +94 -28
- 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 +96 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +212 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +37 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +341 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +296 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +103 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +158 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +267 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +23 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +19 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +5 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +17 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +169 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +134 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +158 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +62 -118
- 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 +67 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +57 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +6 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +55 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +58 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +56 -199
- 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 +29 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +118 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +44 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +53 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +65 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +158 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +28 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +78 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +20 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +480 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +157 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +28 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +124 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +19 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +40 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +76 -7
- 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 +149 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +6 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +77 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +44 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +128 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +47 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +116 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +107 -27
- 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 +48 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +201 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +68 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +4 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +31 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +34 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +27 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +12 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +22 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +12 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +49 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +49 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +16 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +20 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +13 -32
- 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 +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +26 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +45 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +33 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +66 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +113 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +79 -35
- 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 +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +8 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +9 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +54 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +255 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +49 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +6 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +34 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +40 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +72 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +94 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +9 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +12 -17
- 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 +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +48 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +32 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +32 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +4 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +125 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +34 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +31 -7
- 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 +122 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +71 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +16 -269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +16 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +16 -65
- 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 +3 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +63 -136
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +43 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +4 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +25 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +9 -122
- 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 +85 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +86 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +269 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +60 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +44 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +142 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +96 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +280 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +15 -5
- 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 +14 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +73 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +86 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +53 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +54 -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 +29 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +35 -25
- 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 +69 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +82 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +38 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +33 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +85 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +24 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +103 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +111 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +54 -85
- 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 +20 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +32 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +39 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +34 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +15 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +51 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +58 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +95 -38
- 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 +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +75 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +20 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +9 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +48 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +69 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +68 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +34 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +28 -52
- 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 +22 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +37 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +1 -1
|
@@ -1,472 +1,230 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import { useCounterpartById as gt } from "./index70.js";
|
|
18
|
-
import { useCounterpartAddresses as vt } from "./index72.js";
|
|
19
|
-
import { useMyEntity as bt } from "./index78.js";
|
|
20
|
-
import { useCreateReceivable as ht } from "./index337.js";
|
|
21
|
-
import { useCreateCounterpart as xt } from "./index217.js";
|
|
22
|
-
import { useUpdateReceivable as Ct } from "./index338.js";
|
|
23
|
-
import { useUpdateReceivableLineItems as It } from "./index339.js";
|
|
24
|
-
import { useCreateRecurrence as wt } from "./index340.js";
|
|
25
|
-
import { useUpdateRecurrence as Pt } from "./index341.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 "./index342.js";
|
|
30
|
-
import { useGetMeasureUnits as St } from "./index343.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
|
|
1
|
+
import { toMinorUnits as l } from "./index119.js";
|
|
2
|
+
import { CurrencyEnumSchema as p } from "./index330.js";
|
|
3
|
+
import { z as e } from "zod";
|
|
4
|
+
const s = (r) => p, 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) => l(a) <= t, {
|
|
16
|
+
message: r._("Can't be more than the amount due")
|
|
42
17
|
}),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
};
|
|
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")
|
|
101
27
|
})
|
|
102
|
-
}),
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
|
28
|
+
}), c = (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"])
|
|
129
43
|
}),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
+
}, u = (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: c(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) => u(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
|
+
...m().shape
|
|
84
|
+
}).superRefine((o, i) => {
|
|
85
|
+
_(o, i, r, n), d(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, a = 0) => u(r).extend({
|
|
103
|
+
type: e.string(),
|
|
104
|
+
// Relaxed vs. the issue schema: optional for a draft.
|
|
105
|
+
payment_terms_id: e.string().optional(),
|
|
106
|
+
// A started-series edit only needs the *payment* requirements relaxed, so
|
|
107
|
+
// it keeps issue-level line items. The draft rules make `quantity` and
|
|
108
|
+
// `product.name` optional and drop the "at least 1 item" minimum, and
|
|
109
|
+
// `useReceivableSubmit` PUTs line items before the PATCH either way, so
|
|
110
|
+
// inheriting them would send a blank name or an omitted quantity to the
|
|
111
|
+
// API and fail the save instead of flagging it inline (EMBD-4514).
|
|
112
|
+
line_items: a > 0 ? c(r) : g(r),
|
|
113
|
+
bank_account_id: e.string().optional(),
|
|
114
|
+
bank_account_type: e.enum(["INTERNAL", "EXTERNAL", "BANK_DETAILS"]).optional(),
|
|
115
|
+
attachments: e.array(e.object({
|
|
116
|
+
id: e.string(),
|
|
117
|
+
include_in_email: e.boolean(),
|
|
118
|
+
name: e.string(),
|
|
119
|
+
size: e.number()
|
|
120
|
+
})).default([]),
|
|
121
|
+
...m().shape
|
|
122
|
+
}).superRefine((n, o) => {
|
|
123
|
+
_(n, o, r, a), d(n, o, r, t);
|
|
124
|
+
}), m = () => e.object({
|
|
125
|
+
// `once` isn't part of the API's `RecurrenceFrequency` enum ('day' |
|
|
126
|
+
// 'week' | 'month' | 'quarter' | 'year') — it represents not creating a
|
|
127
|
+
// recurrence at all. The other recurrence fields are optional here and
|
|
128
|
+
// only required (via `refineRecurrenceFields` below) when frequency
|
|
129
|
+
// isn't `once`.
|
|
130
|
+
frequency: e.enum(["once", "day", "week", "month", "quarter", "year"]),
|
|
131
|
+
recurrence_start_date: e.date().optional(),
|
|
132
|
+
recurrence_end_date: e.date().optional(),
|
|
133
|
+
// Holds the deprecated `first_day`/`last_day` values as well as a plain
|
|
134
|
+
// day-of-month string ('1'..'31') from the monthly day-of-month picker —
|
|
135
|
+
// the API's `day_of_month` enum only covers the first two.
|
|
136
|
+
recurrence_issue_mode: e.string().optional(),
|
|
137
|
+
// Day of week selected for a weekly recurrence — only one can be active
|
|
138
|
+
// at a time. Note: the Monite `CreateRecurrencePayload` has no field for
|
|
139
|
+
// this — a weekly recurrence's day is derived from `start_date` alone.
|
|
140
|
+
// This is captured for now so the selection isn't lost; how it maps to
|
|
141
|
+
// the request body still needs to be decided.
|
|
142
|
+
recurrence_days_of_week: e.enum(["mo", "tu", "we", "th", "fr", "sa", "su"]).optional(),
|
|
143
|
+
// Which mutually-exclusive end condition is active — maps to the API's
|
|
144
|
+
// `end_date` vs `max_occurrences`.
|
|
145
|
+
recurrence_end_mode: e.enum(["after", "on"]).optional(),
|
|
146
|
+
recurrence_max_occurrences: e.coerce.number().int().min(1).max(1e3).optional(),
|
|
147
|
+
recurrence_subject_text: e.string().optional(),
|
|
148
|
+
recurrence_body_text: e.string().optional()
|
|
149
|
+
}), d = (r, t, a, n = !0) => {
|
|
150
|
+
const o = !!r.counterpart_id?.trim(), i = n && !!r.counterpart_name?.trim();
|
|
151
|
+
!o && !i && t.addIssue({
|
|
152
|
+
code: "custom",
|
|
153
|
+
message: a._("Customer is a required field"),
|
|
154
|
+
path: ["counterpart_id"]
|
|
155
|
+
});
|
|
156
|
+
}, _ = (r, t, a, n = 0) => {
|
|
157
|
+
if (!r.frequency || r.frequency === "once") return;
|
|
158
|
+
switch (r.recurrence_start_date || t.addIssue({
|
|
159
|
+
code: "custom",
|
|
160
|
+
message: a._("Start date is required"),
|
|
161
|
+
path: ["recurrence_start_date"]
|
|
162
|
+
}), r.frequency) {
|
|
163
|
+
case "month":
|
|
164
|
+
r.recurrence_issue_mode || t.addIssue({
|
|
165
|
+
code: "custom",
|
|
166
|
+
message: a._("Day of month is required"),
|
|
167
|
+
path: ["recurrence_issue_mode"]
|
|
168
|
+
}), r.recurrence_max_occurrences || t.addIssue({
|
|
169
|
+
code: "custom",
|
|
170
|
+
message: a._("Number of months is required"),
|
|
171
|
+
path: ["recurrence_max_occurrences"]
|
|
172
|
+
});
|
|
173
|
+
break;
|
|
174
|
+
case "week":
|
|
175
|
+
r.recurrence_days_of_week || t.addIssue({
|
|
176
|
+
code: "custom",
|
|
177
|
+
message: a._("Day of week is required"),
|
|
178
|
+
path: ["recurrence_days_of_week"]
|
|
179
|
+
}), r.recurrence_max_occurrences || t.addIssue({
|
|
180
|
+
code: "custom",
|
|
181
|
+
message: a._("Number of weeks is required"),
|
|
182
|
+
path: ["recurrence_max_occurrences"]
|
|
227
183
|
});
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
|
184
|
+
break;
|
|
185
|
+
case "quarter":
|
|
186
|
+
r.recurrence_max_occurrences || t.addIssue({
|
|
187
|
+
code: "custom",
|
|
188
|
+
message: a._("Number of quarters is required"),
|
|
189
|
+
path: ["recurrence_max_occurrences"]
|
|
392
190
|
});
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
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
|
-
}
|
|
468
|
-
};
|
|
191
|
+
break;
|
|
192
|
+
case "year":
|
|
193
|
+
r.recurrence_max_occurrences || t.addIssue({
|
|
194
|
+
code: "custom",
|
|
195
|
+
message: a._("Number of years is required"),
|
|
196
|
+
path: ["recurrence_max_occurrences"]
|
|
197
|
+
});
|
|
198
|
+
break;
|
|
199
|
+
case "day":
|
|
200
|
+
r.recurrence_end_mode ? r.recurrence_end_mode === "after" && !r.recurrence_max_occurrences ? t.addIssue({
|
|
201
|
+
code: "custom",
|
|
202
|
+
message: a._("Number of days is required"),
|
|
203
|
+
path: ["recurrence_max_occurrences"]
|
|
204
|
+
}) : r.recurrence_end_mode === "on" && !r.recurrence_end_date && t.addIssue({
|
|
205
|
+
code: "custom",
|
|
206
|
+
message: a._("End date is required"),
|
|
207
|
+
path: ["recurrence_end_date"]
|
|
208
|
+
}) : t.addIssue({
|
|
209
|
+
code: "custom",
|
|
210
|
+
message: a._("End condition is required"),
|
|
211
|
+
path: ["recurrence_end_mode"]
|
|
212
|
+
});
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
const o = r.frequency === "day" && r.recurrence_end_mode === "on";
|
|
216
|
+
n > 0 && !o && r.recurrence_max_occurrences && r.recurrence_max_occurrences <= n && t.addIssue({
|
|
217
|
+
code: "custom",
|
|
218
|
+
message: a._("Must be more than the {count} invoices already issued", {
|
|
219
|
+
count: n
|
|
220
|
+
}),
|
|
221
|
+
path: ["recurrence_max_occurrences"]
|
|
222
|
+
});
|
|
469
223
|
};
|
|
470
224
|
export {
|
|
471
|
-
|
|
225
|
+
x as getCreateBankAccountSchema,
|
|
226
|
+
s as getCurrencyEnum,
|
|
227
|
+
I as getDraftInvoiceValidationSchema,
|
|
228
|
+
q as getInvoiceValidationSchema,
|
|
229
|
+
f as manualPaymentRecordValidationSchema
|
|
472
230
|
};
|