@tesouro/embedded-components-react 0.2.29 → 0.2.30
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 +27 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.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/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +23 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +4 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -1271
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +1270 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +8 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +25 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +76 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +9 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +31 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -73
- 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 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +14 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +121 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +12 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +147 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +54 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +70 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +56 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +37 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +79 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +99 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +57 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +43 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +72 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +58 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +194 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +79 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +28 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +41 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +246 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +178 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +13 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +113 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +103 -244
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +104 -177
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +60 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +86 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +32 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +112 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +68 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +186 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +28 -45
- 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 +121 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +54 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +21 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +28 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +12 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +10 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +366 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +22 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -367
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +90 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +25 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +2 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +26 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +117 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +68 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +12 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +86 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +96 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +7 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +59 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +397 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +68 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +406 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +39 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +61 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +30 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +114 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +41 -488
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +51 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +488 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +164 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +144 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +86 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +183 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +25 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +49 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +54 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +343 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +2 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +19 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +29 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +35 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +36 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +17 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +10 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +39 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +30 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +97 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +45 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +37 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +43 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +23 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +34 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +37 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +101 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +21 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +33 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +57 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +37 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +17 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +94 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +123 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +38 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +40 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +18 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +63 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +155 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +27 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +26 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +78 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +90 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +185 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +22 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +57 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +55 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +39 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +344 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +301 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +103 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +160 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +264 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +73 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +17 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +25 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +41 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +93 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +107 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +86 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +5 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +127 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +65 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +43 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +22 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +189 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +102 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +81 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +287 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +49 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +15 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +84 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +222 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +149 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +48 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +49 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +107 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +39 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +26 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +72 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +19 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +13 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +14 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +76 -53
- 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 +74 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +20 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +17 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +164 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +134 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +161 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +10 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +18 -64
- 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 +62 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +65 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +52 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +6 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +9 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +50 -278
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +22 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +63 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +14 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +61 -219
- 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 +19 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +19 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +30 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +18 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +11 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +255 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +74 -11
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +94 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +11 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +96 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +110 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +37 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +56 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +10 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +93 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +33 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +26 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +53 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +34 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +26 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +9 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +66 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +19 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +31 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +4 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +126 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +7 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +34 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +31 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +85 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +22 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +12 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +28 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +19 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +38 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +71 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +62 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +37 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +20 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +36 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +49 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +46 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +67 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +56 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +70 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +82 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +52 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +49 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +49 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +29 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +52 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +44 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +70 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +21 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +17 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +83 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +50 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +39 -40
- 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 +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +54 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +94 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +20 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +14 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +19 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +51 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.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/index60.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/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +27 -27
- package/package.json +1 -1
|
@@ -1,60 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = c({
|
|
29
|
-
dimension: "status",
|
|
30
|
-
metric: "total_amount",
|
|
31
|
-
aggregation_function: "summary",
|
|
32
|
-
type: "invoice"
|
|
33
|
-
}), n = f(() => i?.data?.reduce((t, a) => {
|
|
34
|
-
const e = a.dimension_value, m = a.metric_value;
|
|
35
|
-
return e && (t.statuses.push({
|
|
36
|
-
status: e,
|
|
37
|
-
count: m
|
|
38
|
-
}), e !== "recurring" && (t.totalCount += m)), t;
|
|
39
|
-
}, {
|
|
40
|
-
statuses: [],
|
|
41
|
-
totalCount: 0
|
|
42
|
-
}), [i]) ?? {
|
|
43
|
-
statuses: [],
|
|
44
|
-
totalCount: 0
|
|
45
|
-
}, x = f(() => new Map(r?.data?.map((t) => [t.dimension_value, t.metric_value]) ?? []), [r]);
|
|
46
|
-
if (C || h)
|
|
47
|
-
return /* @__PURE__ */ s("div", { className: "ttw:flex ttw:gap-2", children: Array.from({
|
|
48
|
-
length: 6
|
|
49
|
-
}).map((t, a) => /* @__PURE__ */ s(A, { className: "ttw:h-16.5 ttw:w-42 ttw:rounded-xl ttw:animate-pulse" }, a)) });
|
|
50
|
-
const u = (t) => {
|
|
51
|
-
w(t === "all" ? void 0 : t);
|
|
52
|
-
}, l = (t) => v(t, "USD") ?? "—";
|
|
53
|
-
return /* @__PURE__ */ _("div", { className: "ttw:flex ttw:gap-2 ttw:mb-6 ttw:overflow-x-auto ttw:[scrollbar-width:none] ttw:[&::-webkit-scrollbar]:hidden", children: [
|
|
54
|
-
/* @__PURE__ */ s(d, { isAllStatus: !0, data: n.totalCount, selected: o === null, onClick: () => u("all"), formatAmount: l, allItemsText: g._("All invoices") }),
|
|
55
|
-
[...n.statuses].sort((t, a) => (p.indexOf(t.status) + 1 || 1 / 0) - (p.indexOf(a.status) + 1 || 1 / 0)).map((t) => /* @__PURE__ */ s(d, { isAllStatus: !1, data: x.get(t.status) ?? 0, amountOfItems: t.count, selected: o === t.status, onClick: () => u(t.status), formatAmount: l, statusChip: /* @__PURE__ */ s(y, { status: t.status }) }, t.status))
|
|
56
|
-
] });
|
|
1
|
+
import { useState as d, useCallback as c, useMemo as n } from "react";
|
|
2
|
+
const f = (a, e) => {
|
|
3
|
+
const [i, r] = d(e ?? {}), l = c((t, s) => {
|
|
4
|
+
r((u) => ({
|
|
5
|
+
...u,
|
|
6
|
+
[t]: s
|
|
7
|
+
}));
|
|
8
|
+
}, []);
|
|
9
|
+
return {
|
|
10
|
+
filtersQuery: i,
|
|
11
|
+
filters: n(() => a.map((t) => t === "status" ? {
|
|
12
|
+
field: t,
|
|
13
|
+
value: i[t],
|
|
14
|
+
options: e?.type ? o(e.type, e?.status__in) : []
|
|
15
|
+
} : {
|
|
16
|
+
field: t,
|
|
17
|
+
value: i[t]
|
|
18
|
+
}), [a, i, e]),
|
|
19
|
+
onChangeFilter: l
|
|
20
|
+
};
|
|
21
|
+
}, o = (a, e) => {
|
|
22
|
+
const i = {
|
|
23
|
+
invoice: ["recurring", "draft", "issued", "partially_paid", "paid", "overdue", "canceled", "uncollectible"],
|
|
24
|
+
quote: ["draft", "issued", "accepted", "expired", "declined"],
|
|
25
|
+
credit_note: ["draft", "issued"]
|
|
26
|
+
};
|
|
27
|
+
return e ? i[a].filter((r) => e.includes(r)) : i[a];
|
|
57
28
|
};
|
|
58
29
|
export {
|
|
59
|
-
|
|
30
|
+
f as useReceivablesFilters
|
|
60
31
|
};
|
|
@@ -1,199 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
description: "Fully paid"
|
|
28
|
-
}, {
|
|
29
|
-
value: "uncollectible",
|
|
30
|
-
label: "Uncollectible",
|
|
31
|
-
description: ""
|
|
32
|
-
}, {
|
|
33
|
-
value: "canceled",
|
|
34
|
-
label: "Canceled",
|
|
35
|
-
description: ""
|
|
36
|
-
}, {
|
|
37
|
-
value: "recurring",
|
|
38
|
-
label: "Recurring",
|
|
39
|
-
description: ""
|
|
40
|
-
}], P = ["draft", "issued", "overdue", "partially_paid", "paid", "uncollectible"], T = {
|
|
41
|
-
due_date: "Due date",
|
|
42
|
-
created_at: "Created on",
|
|
43
|
-
issue_date: "Issue date"
|
|
44
|
-
};
|
|
45
|
-
function _() {
|
|
46
|
-
return {
|
|
47
|
-
search: "",
|
|
48
|
-
activeDateFields: {},
|
|
49
|
-
status: [],
|
|
50
|
-
amountMode: "any",
|
|
51
|
-
amountMin: "",
|
|
52
|
-
amountMax: "",
|
|
53
|
-
customerName: ""
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function j() {
|
|
57
|
-
const [a, i] = $(_), {
|
|
58
|
-
formatToMinorUnits: u
|
|
59
|
-
} = N(), {
|
|
60
|
-
componentSettings: f
|
|
61
|
-
} = g(), c = f.onboarding.allowedCurrencies?.[0] ?? "USD", v = l(() => {
|
|
62
|
-
const e = {};
|
|
63
|
-
for (const [t, s] of Object.entries(a.activeDateFields))
|
|
64
|
-
s?.from && (e[`${t}__gte`] = m(s.from, {
|
|
65
|
-
representation: "date"
|
|
66
|
-
})), s?.to && (e[`${t}__lte`] = m(s.to, {
|
|
67
|
-
representation: "date"
|
|
68
|
-
}));
|
|
69
|
-
if (a.status.length ? e.status__in = a.status : e.status__in = P, a.customerName && (e.counterpart_name__icontains = a.customerName), a.search && (e.search_text = a.search), a.amountMode !== "any") {
|
|
70
|
-
const t = parseFloat(a.amountMin), s = parseFloat(a.amountMax), o = (r) => u(r, c) ?? C(r, 2);
|
|
71
|
-
if (a.amountMode === "exact") {
|
|
72
|
-
if (!isNaN(t)) {
|
|
73
|
-
const r = o(t);
|
|
74
|
-
e.total_amount__gte = r, e.total_amount__lte = r;
|
|
75
|
-
}
|
|
76
|
-
} else
|
|
77
|
-
isNaN(t) || (e.total_amount__gte = o(t)), isNaN(s) || (e.total_amount__lte = o(s));
|
|
78
|
-
}
|
|
79
|
-
return e;
|
|
80
|
-
}, [a, c, u]), b = l(() => {
|
|
81
|
-
let e = 0;
|
|
82
|
-
return Object.values(a.activeDateFields).some((t) => t?.from || t?.to || t?.preset) && e++, a.status.length && e++, a.customerName && e++, a.amountMode !== "any" && e++, a.search && e++, e;
|
|
83
|
-
}, [a]), h = l(() => {
|
|
84
|
-
const e = [];
|
|
85
|
-
for (const [t, s] of Object.entries(a.activeDateFields))
|
|
86
|
-
if (s?.from || s?.to || s?.preset) {
|
|
87
|
-
const o = s.preset ? d.find((r) => r.value === s.preset)?.label ?? "Custom range" : "Custom range";
|
|
88
|
-
e.push({
|
|
89
|
-
key: `date_${t}`,
|
|
90
|
-
label: `${T[t]}: ${o}`
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
if (a.status.length) {
|
|
94
|
-
const t = a.status.map((s) => p.find((o) => o.value === s)?.label ?? s);
|
|
95
|
-
e.push({
|
|
96
|
-
key: "status",
|
|
97
|
-
label: `Status: ${y(t)}`
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
return a.customerName && e.push({
|
|
101
|
-
key: "customer",
|
|
102
|
-
label: `Customer: ${a.customerName}`
|
|
103
|
-
}), a.amountMode !== "any" && e.push({
|
|
104
|
-
key: "amount",
|
|
105
|
-
label: "Amount"
|
|
106
|
-
}), a.search && e.push({
|
|
107
|
-
key: "search",
|
|
108
|
-
label: `Search: ${a.search}`
|
|
109
|
-
}), e;
|
|
110
|
-
}, [a]), F = n((e, t) => {
|
|
111
|
-
const {
|
|
112
|
-
from: s,
|
|
113
|
-
to: o
|
|
114
|
-
} = k(t);
|
|
115
|
-
i((r) => ({
|
|
116
|
-
...r,
|
|
117
|
-
activeDateFields: {
|
|
118
|
-
...r.activeDateFields,
|
|
119
|
-
[e]: {
|
|
120
|
-
preset: t,
|
|
121
|
-
from: s,
|
|
122
|
-
to: o
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}));
|
|
126
|
-
}, []), D = n((e, t, s) => {
|
|
127
|
-
i((o) => ({
|
|
128
|
-
...o,
|
|
129
|
-
activeDateFields: {
|
|
130
|
-
...o.activeDateFields,
|
|
131
|
-
[e]: {
|
|
132
|
-
preset: void 0,
|
|
133
|
-
from: t,
|
|
134
|
-
to: s
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}));
|
|
138
|
-
}, []), S = n((e) => {
|
|
139
|
-
if (e.startsWith("date_")) {
|
|
140
|
-
const t = e.slice(5);
|
|
141
|
-
i((s) => {
|
|
142
|
-
const o = {
|
|
143
|
-
...s.activeDateFields
|
|
144
|
-
};
|
|
145
|
-
return delete o[t], {
|
|
146
|
-
...s,
|
|
147
|
-
activeDateFields: o
|
|
148
|
-
};
|
|
149
|
-
});
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
switch (e) {
|
|
153
|
-
case "status":
|
|
154
|
-
i((t) => ({
|
|
155
|
-
...t,
|
|
156
|
-
status: []
|
|
157
|
-
}));
|
|
158
|
-
break;
|
|
159
|
-
case "customer":
|
|
160
|
-
i((t) => ({
|
|
161
|
-
...t,
|
|
162
|
-
customerName: ""
|
|
163
|
-
}));
|
|
164
|
-
break;
|
|
165
|
-
case "amount":
|
|
166
|
-
i((t) => ({
|
|
167
|
-
...t,
|
|
168
|
-
amountMode: "any",
|
|
169
|
-
amountMin: "",
|
|
170
|
-
amountMax: ""
|
|
171
|
-
}));
|
|
172
|
-
break;
|
|
173
|
-
case "search":
|
|
174
|
-
i((t) => ({
|
|
175
|
-
...t,
|
|
176
|
-
search: ""
|
|
177
|
-
}));
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
}, []), M = n(() => i(_()), []);
|
|
181
|
-
return {
|
|
182
|
-
state: a,
|
|
183
|
-
setState: i,
|
|
184
|
-
queryParams: v,
|
|
185
|
-
activeFilterCount: b,
|
|
186
|
-
activeChips: h,
|
|
187
|
-
datePresets: d,
|
|
188
|
-
statusOptions: p,
|
|
189
|
-
setDateFieldPreset: F,
|
|
190
|
-
setDateFieldRange: D,
|
|
191
|
-
clearFilter: S,
|
|
192
|
-
clearAll: M
|
|
1
|
+
import { jsx as t, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { CenteredContentBox as p } from "./index228.js";
|
|
3
|
+
import { DropdownMenu as d, DropdownMenuTrigger as u, DropdownMenuContent as h, DropdownMenuItem as f } from "./index137.js";
|
|
4
|
+
import { Button as l } from "./index86.js";
|
|
5
|
+
import { RefreshCw as s, ChevronDown as w } from "lucide-react";
|
|
6
|
+
import { Typography as m } from "./index87.js";
|
|
7
|
+
const B = ({
|
|
8
|
+
title: r,
|
|
9
|
+
descriptionLine1: o,
|
|
10
|
+
onAction: e,
|
|
11
|
+
actionButtonLabel: i,
|
|
12
|
+
actionOptions: a = [],
|
|
13
|
+
type: n
|
|
14
|
+
}) => /* @__PURE__ */ t(p, { className: "ttw:min-h-48", children: /* @__PURE__ */ c("div", { className: "ttw:flex ttw:flex-col ttw:flex-1 ttw:items-center ttw:gap-3", children: [
|
|
15
|
+
/* @__PURE__ */ t(m, { variant: "h2", className: "ttw:font-medium", children: r }),
|
|
16
|
+
/* @__PURE__ */ t(m, { variant: "body1", color: "muted", className: "ttw:font-normal", children: o }),
|
|
17
|
+
/* @__PURE__ */ t(C, { onAction: e, actionButtonLabel: i, actionOptions: a, type: n })
|
|
18
|
+
] }) }), C = ({
|
|
19
|
+
onAction: r,
|
|
20
|
+
actionButtonLabel: o,
|
|
21
|
+
actionOptions: e = [],
|
|
22
|
+
type: i
|
|
23
|
+
}) => {
|
|
24
|
+
if (!o) return null;
|
|
25
|
+
const a = (n) => {
|
|
26
|
+
r && r(n);
|
|
193
27
|
};
|
|
194
|
-
|
|
28
|
+
return e.length > 1 ? /* @__PURE__ */ c(d, { children: [
|
|
29
|
+
/* @__PURE__ */ t(u, { asChild: !0, children: /* @__PURE__ */ c(l, { type: "button", children: [
|
|
30
|
+
i === "error" ? /* @__PURE__ */ t(s, {}) : void 0,
|
|
31
|
+
o,
|
|
32
|
+
/* @__PURE__ */ t(w, {})
|
|
33
|
+
] }) }),
|
|
34
|
+
/* @__PURE__ */ t(h, { align: "end", children: e.map((n) => /* @__PURE__ */ t(f, { onClick: () => a(n), children: n }, n)) })
|
|
35
|
+
] }) : /* @__PURE__ */ c(l, { onClick: (n) => {
|
|
36
|
+
n.preventDefault(), a(e?.[0]);
|
|
37
|
+
}, children: [
|
|
38
|
+
i === "error" ? /* @__PURE__ */ t(s, {}) : void 0,
|
|
39
|
+
o
|
|
40
|
+
] });
|
|
41
|
+
};
|
|
195
42
|
export {
|
|
196
|
-
|
|
197
|
-
p as AR_STATUS_OPTIONS,
|
|
198
|
-
j as useInvoicesFilter
|
|
43
|
+
B as DataGridEmptyState
|
|
199
44
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
issue_date: "issue_date",
|
|
8
|
-
document_id: "document_id",
|
|
9
|
-
created_at: "created_at",
|
|
10
|
-
project_id: "project_id",
|
|
11
|
-
total_amount: "total_amount",
|
|
12
|
-
discounted_subtotal: "discounted_subtotal"
|
|
13
|
-
}, e = Object.values(t);
|
|
1
|
+
function s(...r) {
|
|
2
|
+
let o = "";
|
|
3
|
+
for (const t of r)
|
|
4
|
+
t && (o += t + " ");
|
|
5
|
+
return o;
|
|
6
|
+
}
|
|
14
7
|
export {
|
|
15
|
-
|
|
8
|
+
s as classNames
|
|
16
9
|
};
|
|
@@ -1,28 +1,252 @@
|
|
|
1
|
-
import { jsx as r, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as re } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { EntitySection as ie } from "./index185.js";
|
|
3
|
+
import { ItemsSection as ne } from "./index186.js";
|
|
4
|
+
import { getUpdateInvoiceValidationSchema as oe } from "./index188.js";
|
|
5
|
+
import { RemindersSection as de } from "./index281.js";
|
|
6
|
+
import { INVOICE_DOCUMENT_AUTO_ID as se } from "./index263.js";
|
|
7
|
+
import { useMeasureUnitsMapping as me } from "./index282.js";
|
|
8
|
+
import { useUpdateReceivable as ue } from "./index283.js";
|
|
9
|
+
import { useUpdateReceivableLineItems as _e } from "./index284.js";
|
|
10
|
+
import { useLineItemSubmitCleanup as le } from "./index195.js";
|
|
11
|
+
import { useCounterpartById as ce } from "./index72.js";
|
|
12
|
+
import "@tanstack/react-query";
|
|
13
|
+
import "./index59.js";
|
|
14
|
+
import { useCounterpartAddresses as pe } from "./index74.js";
|
|
15
|
+
import { parseISO as fe } from "date-fns";
|
|
16
|
+
import { useMyEntity as ye } from "./index80.js";
|
|
17
|
+
import { useMemo as I, useState as M, useCallback as ve, useId as be } from "react";
|
|
18
|
+
import "react-hot-toast";
|
|
19
|
+
import { useLingui as xe } from "@lingui/react";
|
|
20
|
+
import { rateMinorToMajor as N, rateMajorToMinor as ge } from "./index198.js";
|
|
21
|
+
import { ConfirmationModal as he } from "./index285.js";
|
|
22
|
+
import { Dialog as we, DialogContent as Ce, DialogHeader as De, DialogTitle as $e, DialogDescription as Ie, DialogClose as Me } from "./index183.js";
|
|
23
|
+
import { Button as S } from "./index86.js";
|
|
24
|
+
import { zodResolver as Ne } from "@hookform/resolvers/zod";
|
|
25
|
+
import { useForm as Se, FormProvider as Te } from "react-hook-form";
|
|
26
|
+
import { X as Ee } from "lucide-react";
|
|
27
|
+
import { InvoicePreview as ke } from "./index187.js";
|
|
28
|
+
import { useGetPaymentTerms as Pe } from "./index286.js";
|
|
29
|
+
import { useGetMeasureUnits as Ue } from "./index200.js";
|
|
30
|
+
import { CreateProduct as Le } from "./index46.js";
|
|
31
|
+
import { buildPaymentTermsPayload as Fe, CUSTOM_DATE_PAYMENT_TERM as Oe, RECEIPT_DUE_PAYMENT_TERM as Re } from "./index189.js";
|
|
32
|
+
const Ve = (e) => {
|
|
33
|
+
if (e?.id)
|
|
34
|
+
return {
|
|
35
|
+
payment_terms_id: e.id,
|
|
36
|
+
payment_terms_custom_date: null
|
|
37
|
+
};
|
|
38
|
+
const m = e?.term_final?.end_date;
|
|
39
|
+
return m ? {
|
|
40
|
+
payment_terms_id: Oe,
|
|
41
|
+
payment_terms_custom_date: fe(m)
|
|
42
|
+
} : e?.term_final?.number_of_days === 0 ? {
|
|
43
|
+
payment_terms_id: Re,
|
|
44
|
+
payment_terms_custom_date: null
|
|
45
|
+
} : {
|
|
46
|
+
payment_terms_id: "",
|
|
47
|
+
payment_terms_custom_date: null
|
|
48
|
+
};
|
|
49
|
+
}, bt = (e) => /* @__PURE__ */ r(je, { ...e }), je = ({
|
|
50
|
+
invoice: e,
|
|
51
|
+
onCancel: m,
|
|
52
|
+
onUpdated: T,
|
|
53
|
+
isOpen: E
|
|
9
54
|
}) => {
|
|
10
55
|
const {
|
|
11
|
-
i18n:
|
|
12
|
-
} =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
56
|
+
i18n: n
|
|
57
|
+
} = xe(), {
|
|
58
|
+
data: k,
|
|
59
|
+
isLoading: P
|
|
60
|
+
} = ye(), {
|
|
61
|
+
data: U
|
|
62
|
+
} = Pe(), {
|
|
63
|
+
data: f,
|
|
64
|
+
isLoading: L
|
|
65
|
+
} = Ue(), F = I(() => ({
|
|
66
|
+
/** Customer section */
|
|
67
|
+
counterpart_id: e.counterpart_id,
|
|
68
|
+
default_shipping_address_id: e.counterpart_shipping_address?.id ?? "",
|
|
69
|
+
default_billing_address_id: e.counterpart_billing_address?.id ?? "",
|
|
70
|
+
/** Entity section */
|
|
71
|
+
purchase_order: e.purchase_order ?? "",
|
|
72
|
+
footer: e.footer ?? "",
|
|
73
|
+
/** Items section */
|
|
74
|
+
tax_rate: (() => {
|
|
75
|
+
const t = e.line_items.find((a) => a.product.tax_rate?.value !== void 0);
|
|
76
|
+
return t ? String(N(t.product.tax_rate.value ?? 0)) : void 0;
|
|
77
|
+
})(),
|
|
78
|
+
line_items: e.line_items.map((t) => {
|
|
79
|
+
const a = t.product.measure_unit?.name, d = t.product.measure_unit?.id;
|
|
80
|
+
return {
|
|
81
|
+
quantity: t.quantity,
|
|
82
|
+
product_id: t.product.id,
|
|
83
|
+
taxable: t.tax_status === "taxable",
|
|
84
|
+
product: {
|
|
85
|
+
name: t.product.name,
|
|
86
|
+
price: e.tax_mode === "inclusive" ? t.product.price_after_tax : t.product.price,
|
|
87
|
+
// Get measure_unit_id directly from the API response if available
|
|
88
|
+
measure_unit_id: d && d !== "" ? d : void 0,
|
|
89
|
+
// Store the measure unit name separately for custom units
|
|
90
|
+
measure_unit_name: !d && a ? a : void 0,
|
|
91
|
+
type: t.product.type || "product"
|
|
92
|
+
},
|
|
93
|
+
// For custom measure units that don't have an ID but have a name
|
|
94
|
+
measure_unit: !d && a ? {
|
|
95
|
+
name: a,
|
|
96
|
+
id: null
|
|
97
|
+
} : void 0,
|
|
98
|
+
tax_rate_value: t.product.tax_rate.value !== void 0 ? N(t.product.tax_rate.value) : void 0
|
|
99
|
+
};
|
|
100
|
+
}),
|
|
101
|
+
memo: e.memo ?? "",
|
|
102
|
+
/** Payment section */
|
|
103
|
+
bank_account_id: e.bank_account_id ?? "",
|
|
104
|
+
...Ve(e.payment_terms),
|
|
105
|
+
/** Reminders section */
|
|
106
|
+
payment_reminder_id: e.payment_reminder_id ?? "",
|
|
107
|
+
overdue_reminder_id: e.overdue_reminder_id ?? "",
|
|
108
|
+
tax_mode: e.tax_mode ?? "exclusive"
|
|
109
|
+
}), [e]), y = Se({
|
|
110
|
+
resolver: Ne(oe(n)),
|
|
111
|
+
defaultValues: F
|
|
112
|
+
}), c = e.currency, {
|
|
113
|
+
handleSubmit: O,
|
|
114
|
+
formState: {
|
|
115
|
+
isDirty: v
|
|
116
|
+
},
|
|
117
|
+
getValues: R,
|
|
118
|
+
reset: V,
|
|
119
|
+
watch: o
|
|
120
|
+
} = y, {
|
|
121
|
+
registerLineItemCleanupFn: j,
|
|
122
|
+
runLineItemCleanup: A
|
|
123
|
+
} = le();
|
|
124
|
+
me(f, R, V);
|
|
125
|
+
const [q, b] = M(!1), [x, p] = M(!1), B = ve(() => {
|
|
126
|
+
if (!v) {
|
|
127
|
+
m();
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
b(!0);
|
|
131
|
+
}, [v, m]), g = _e(e.id), h = ue(e.id), Y = o("line_items"), z = o("payment_terms_id"), G = o("memo"), H = o("footer"), X = o("purchase_order"), J = o("bank_account_id"), K = o("tax_mode"), Q = o("tax_rate"), w = o("counterpart_id"), C = o("default_billing_address_id"), {
|
|
132
|
+
data: W
|
|
133
|
+
} = ce(w), {
|
|
134
|
+
data: D
|
|
135
|
+
} = pe(w), Z = I(() => D?.data?.find((t) => t.id === C), [C, D?.data]), _ = g.isPending || h.isPending || P || L, $ = `Monite-Form-receivablesDetailsForm-${be()}`;
|
|
136
|
+
return /* @__PURE__ */ s(re, { children: [
|
|
137
|
+
/* @__PURE__ */ r(we, { open: E, modal: !1, children: /* @__PURE__ */ s(Ce, { fullScreen: !0, showCloseButton: !1, className: "ttw:flex", onInteractOutside: (t) => t.preventDefault(), children: [
|
|
138
|
+
/* @__PURE__ */ s("div", { className: "ttw:flex-1/2 ttw:overflow-y-auto ttw:pr-14", children: [
|
|
139
|
+
/* @__PURE__ */ s(De, { className: "ttw:flex-row ttw:justify-between ttw:bg-white ttw:pb-4 ttw:sticky ttw:top-0 ttw:z-9999", children: [
|
|
140
|
+
/* @__PURE__ */ r($e, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
141
|
+
/* @__PURE__ */ r(Ie, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
142
|
+
/* @__PURE__ */ r(Me, { asChild: !0, children: /* @__PURE__ */ r(S, { variant: "ghost", onClick: B, disabled: _, "aria-label": n._("Close"), children: /* @__PURE__ */ r(Ee, {}) }) }),
|
|
143
|
+
/* @__PURE__ */ r(S, { type: "submit", form: $, disabled: _, children: n._("Update") })
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ r(Te, { ...y, children: /* @__PURE__ */ r("form", { id: $, noValidate: !0, onSubmit: async (t) => {
|
|
146
|
+
t.preventDefault(), A(), await O((a) => {
|
|
147
|
+
const d = {
|
|
148
|
+
data: a.line_items.filter((i) => !!i.product?.name?.trim()).map((i) => {
|
|
149
|
+
const u = i;
|
|
150
|
+
let l;
|
|
151
|
+
if (u.product.measure_unit_id) {
|
|
152
|
+
const te = u.product.measure_unit_id;
|
|
153
|
+
l = f?.data?.find((ae) => ae.id === te)?.name;
|
|
154
|
+
} else (u.product.measure_unit_name || u.measure_unit?.name) && (l = u.product.measure_unit_name || u.measure_unit?.name);
|
|
155
|
+
return {
|
|
156
|
+
quantity: i.quantity,
|
|
157
|
+
tax_status: i.taxable ? "taxable" : "non_taxable",
|
|
158
|
+
product: {
|
|
159
|
+
name: i.product.name,
|
|
160
|
+
type: i.product.type,
|
|
161
|
+
measure_unit: l ? {
|
|
162
|
+
name: l
|
|
163
|
+
} : void 0,
|
|
164
|
+
price: i.product.price ? {
|
|
165
|
+
currency: i.product.price.currency ?? "USD",
|
|
166
|
+
value: Math.round(i.product.price.value ?? 0)
|
|
167
|
+
} : void 0
|
|
168
|
+
},
|
|
169
|
+
tax_rate_value: i.taxable && a.tax_rate !== void 0 ? ge(Number(a.tax_rate)) : void 0
|
|
170
|
+
};
|
|
171
|
+
})
|
|
172
|
+
}, ee = {
|
|
173
|
+
invoice: {
|
|
174
|
+
/** Customer section */
|
|
175
|
+
counterpart_id: a.counterpart_id,
|
|
176
|
+
currency: c,
|
|
177
|
+
memo: a.memo,
|
|
178
|
+
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
179
|
+
counterpart_shipping_address_id: a?.default_shipping_address_id || null,
|
|
180
|
+
counterpart_billing_address_id: a?.default_billing_address_id,
|
|
181
|
+
/** We shouldn't send an empty string to the server if the value is not set */
|
|
182
|
+
bank_account_id: e.bank_account_id,
|
|
183
|
+
bank_account_type: e.bank_account_type,
|
|
184
|
+
/**
|
|
185
|
+
* Payment terms aren't editable here — rebuild the
|
|
186
|
+
* request payload from the seeded form values (a saved
|
|
187
|
+
* `payment_terms_id`, or an inline `payment_terms`
|
|
188
|
+
* object for "Custom date" / "Due on receipt") so the
|
|
189
|
+
* backend keeps the same due date. Reusing the shared
|
|
190
|
+
* builder guarantees a request-shaped
|
|
191
|
+
* `InlinePaymentTermsRequestPayload` rather than the
|
|
192
|
+
* response object, which carries id/name/description
|
|
193
|
+
* that the request type rejects.
|
|
194
|
+
*/
|
|
195
|
+
...Fe({
|
|
196
|
+
paymentTermId: a.payment_terms_id,
|
|
197
|
+
customDueDate: a.payment_terms_custom_date
|
|
198
|
+
}),
|
|
199
|
+
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
200
|
+
payment_reminder_id: a.payment_reminder_id || null,
|
|
201
|
+
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
202
|
+
overdue_reminder_id: a.overdue_reminder_id || null
|
|
203
|
+
/** !!! Note !!! Backend is not supported to edit `purchase_order` so we have to remove it */
|
|
204
|
+
// purchase_order: values.purchase_order || undefined,
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
g.mutate(d, {
|
|
208
|
+
onSuccess: () => {
|
|
209
|
+
h.mutate(ee, {
|
|
210
|
+
onSuccess: (i) => {
|
|
211
|
+
T(i);
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
})(t);
|
|
217
|
+
}, className: "ttw:mb-14", children: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-8", children: [
|
|
218
|
+
/* @__PURE__ */ s("h1", { className: "ttw:text-2xl ttw:font-bold", children: [
|
|
219
|
+
n._("Invoice"),
|
|
220
|
+
" ",
|
|
221
|
+
/* @__PURE__ */ s("span", { className: "ttw:text-gray-500", children: [
|
|
222
|
+
"#",
|
|
223
|
+
e.document_id ?? se
|
|
224
|
+
] })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ r(ne, { defaultCurrency: c, registerLineItemCleanupFn: j, handleOpenCreateProductDialog: () => p(!0) }),
|
|
227
|
+
/* @__PURE__ */ r(ie, { disabled: _ }),
|
|
228
|
+
/* @__PURE__ */ r(de, { disabled: _ })
|
|
229
|
+
] }) }) })
|
|
230
|
+
] }),
|
|
231
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex-1/2 ttw:w-1/2", children: /* @__PURE__ */ r(ke, { invoiceData: {
|
|
232
|
+
payment_terms_id: z,
|
|
233
|
+
line_items: (Y || []).map((t) => ({
|
|
234
|
+
...t,
|
|
235
|
+
id: t.id || `temp-${Math.random().toString(36).substr(2, 9)}`
|
|
236
|
+
})),
|
|
237
|
+
memo: G,
|
|
238
|
+
footer: H,
|
|
239
|
+
bank_account_id: J,
|
|
240
|
+
bank_account_type: e.bank_account_type,
|
|
241
|
+
tax_mode: K,
|
|
242
|
+
purchase_order: X || void 0,
|
|
243
|
+
tax_rate: Q
|
|
244
|
+
}, counterpart: W, currency: c, entityData: k, address: Z, paymentTerms: U }) })
|
|
245
|
+
] }) }),
|
|
246
|
+
x && /* @__PURE__ */ r(Le, { open: x, onClose: () => p(!1), onCreated: () => p(!1) }),
|
|
247
|
+
/* @__PURE__ */ r(he, { open: q, title: n._("Cancel without saving?"), message: n._("There are unsaved changes. If you leave, they will be lost."), confirmLabel: n._("Yes"), cancelLabel: n._("No"), onClose: () => b(!1), onConfirm: m })
|
|
24
248
|
] });
|
|
25
249
|
};
|
|
26
250
|
export {
|
|
27
|
-
|
|
251
|
+
bt as EditInvoiceDetails
|
|
28
252
|
};
|