@tesouro/embedded-components-react 0.2.91 → 0.2.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +6 -0
- package/dist/lib/ReceivablesWidget.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +10 -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 +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +35 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +4 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1269 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +13 -12
- 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 +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +76 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +24 -44
- 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 +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +100 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +11 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +48 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +43 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +14 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +41 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -39
- 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 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +152 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +57 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +70 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +64 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +39 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +79 -1268
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +43 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +74 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +38 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +113 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +70 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +199 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +30 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +111 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +133 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +21 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +27 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +20 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +183 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +12 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +48 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +5 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +88 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +7 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +47 -31
- 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 +43 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +189 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +390 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +57 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +27 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +20 -49
- 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 +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +21 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +20 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +27 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +104 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +62 -386
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +92 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +98 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +13 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +59 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +361 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +29 -358
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +2 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +407 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +100 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +26 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +6 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +12 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +7 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +211 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +146 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +85 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +36 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +50 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +66 -214
- 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 +346 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +14 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +14 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +20 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +33 -59
- 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 +31 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +14 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +17 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +250 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +181 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +24 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -73
- 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 +52 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +30 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +98 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +488 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +158 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +37 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +55 -340
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +29 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +112 -101
- 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 +21 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +41 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +55 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +80 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +76 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +43 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +73 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +41 -36
- 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 +347 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +303 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +100 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +162 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +265 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +62 -20
- 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 +156 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +27 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +28 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +76 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +2 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +92 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +191 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +149 -26
- 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 +19 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +127 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +34 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +28 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +40 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +63 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +96 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +110 -22
- 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 +85 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +24 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +23 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +22 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +54 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +27 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +59 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +61 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +44 -105
- 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 +27 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +4 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +75 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +19 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +61 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +42 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +182 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +103 -91
- 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 +80 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +280 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +49 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +15 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +84 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +221 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +37 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +10 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +12 -78
- 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 +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +16 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +17 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +163 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +132 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +161 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +66 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +58 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +6 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +53 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +24 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +63 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +14 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +92 -24
- 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 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +69 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +255 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +45 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +34 -16
- 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 +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +104 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +54 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +41 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +72 -19
- 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 +94 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +118 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +18 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +188 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +71 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +96 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +35 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -31
- 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 +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +67 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +14 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +66 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +20 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +2 -74
- 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 +5 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +31 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +127 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +35 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +49 -19
- 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 +15 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +22 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +9 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +66 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +28 -12
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +11 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +74 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +106 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +68 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +28 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +22 -72
- 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 +37 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +8 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +20 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +49 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +14 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +70 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +84 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +49 -67
- 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 +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +39 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +72 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +21 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +53 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +82 -33
- 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 +39 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +28 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +66 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +40 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +33 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +40 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +36 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +49 -18
- 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 +57 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +31 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +92 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +75 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +18 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +9 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +14 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +19 -19
- 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 +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +19 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +42 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +10 -0
- 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 +1 -1
- 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/settings-widget/feature/dist/index2.js +27 -27
- 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/feature/dist/lib/analytics/interceptor.js +56 -44
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/traceId.js +40 -0
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +28 -28
- package/package.json +1 -1
|
@@ -1,252 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { ItemsSection as ie } from "./index186.js";
|
|
3
|
-
import { getUpdateInvoiceValidationSchema as ne } from "./index188.js";
|
|
4
|
-
import { RemindersSection as oe } from "./index326.js";
|
|
5
|
-
import { INVOICE_DOCUMENT_AUTO_ID as de } from "./index281.js";
|
|
6
|
-
import { useMeasureUnitsMapping as se } from "./index386.js";
|
|
7
|
-
import { useUpdateReceivable as me } from "./index385.js";
|
|
8
|
-
import { useUpdateReceivableLineItems as ue } from "./index384.js";
|
|
9
|
-
import { useLineItemSubmitCleanup as _e } from "./index197.js";
|
|
10
|
-
import { useCounterpartById as le } from "./index70.js";
|
|
11
|
-
import "@tanstack/react-query";
|
|
12
|
-
import "./index57.js";
|
|
13
|
-
import { useCounterpartAddresses as ce } from "./index72.js";
|
|
14
|
-
import { parseISO as pe } from "date-fns";
|
|
15
|
-
import { useMyEntity as fe } from "./index78.js";
|
|
16
|
-
import { useMemo as M, useState as I, useCallback as ye, useId as ve } from "react";
|
|
17
|
-
import "react-hot-toast";
|
|
18
|
-
import { useLingui as be } from "@lingui/react";
|
|
19
|
-
import { rateMinorToMajor as N, rateMajorToMinor as xe } from "./index200.js";
|
|
20
|
-
import { ConfirmationModal as ge } from "./index246.js";
|
|
21
|
-
import { Dialog as he, DialogContent as we, DialogHeader as Ce, DialogTitle as De, DialogDescription as $e, DialogClose as Me } from "./index202.js";
|
|
22
|
-
import { Button as S } from "./index84.js";
|
|
23
|
-
import { zodResolver as Ie } from "@hookform/resolvers/zod";
|
|
24
|
-
import { useForm as Ne, FormProvider as Se } from "react-hook-form";
|
|
25
|
-
import { X as Te } from "lucide-react";
|
|
26
|
-
import { InvoicePreview as ke } from "./index187.js";
|
|
27
|
-
import { useGetPaymentTerms as Ee } from "./index389.js";
|
|
28
|
-
import { useGetMeasureUnits as Pe } from "./index203.js";
|
|
29
|
-
import { CreateProduct as Ue } from "./index44.js";
|
|
30
|
-
import { buildPaymentTermsPayload as Le, CUSTOM_DATE_PAYMENT_TERM as Fe, RECEIPT_DUE_PAYMENT_TERM as Oe } from "./index189.js";
|
|
31
|
-
import { NotesSection as Re } from "./index205.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: Fe,
|
|
41
|
-
payment_terms_custom_date: pe(m)
|
|
42
|
-
} : e?.term_final?.number_of_days === 0 ? {
|
|
43
|
-
payment_terms_id: Oe,
|
|
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: k
|
|
54
|
-
}) => {
|
|
55
|
-
const {
|
|
56
|
-
i18n: n
|
|
57
|
-
} = be(), {
|
|
58
|
-
data: E,
|
|
59
|
-
isLoading: P
|
|
60
|
-
} = fe(), {
|
|
61
|
-
data: U
|
|
62
|
-
} = Ee(), {
|
|
63
|
-
data: f,
|
|
64
|
-
isLoading: L
|
|
65
|
-
} = Pe(), F = M(() => ({
|
|
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 = Ne({
|
|
110
|
-
resolver: Ie(ne(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
|
-
} = _e();
|
|
124
|
-
se(f, R, V);
|
|
125
|
-
const [q, b] = I(!1), [x, p] = I(!1), B = ye(() => {
|
|
126
|
-
if (!v) {
|
|
127
|
-
m();
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
b(!0);
|
|
131
|
-
}, [v, m]), g = ue(e.id), h = me(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
|
-
} = le(w), {
|
|
134
|
-
data: D
|
|
135
|
-
} = ce(w), Z = M(() => D?.data?.find((t) => t.id === C), [C, D?.data]), _ = g.isPending || h.isPending || P || L, $ = `Monite-Form-receivablesDetailsForm-${ve()}`;
|
|
136
|
-
return /* @__PURE__ */ s(re, { children: [
|
|
137
|
-
/* @__PURE__ */ r(he, { open: k, modal: !1, children: /* @__PURE__ */ s(we, { 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(Ce, { 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(De, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
141
|
-
/* @__PURE__ */ r($e, { 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(Te, {}) }) }),
|
|
143
|
-
/* @__PURE__ */ r(S, { type: "submit", form: $, disabled: _, children: n._("Update") })
|
|
144
|
-
] }),
|
|
145
|
-
/* @__PURE__ */ r(Se, { ...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 ? xe(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
|
-
...Le({
|
|
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 ?? de
|
|
224
|
-
] })
|
|
225
|
-
] }),
|
|
226
|
-
/* @__PURE__ */ r(ie, { defaultCurrency: c, registerLineItemCleanupFn: j, handleOpenCreateProductDialog: () => p(!0) }),
|
|
227
|
-
/* @__PURE__ */ r(Re, { disabled: _ }),
|
|
228
|
-
/* @__PURE__ */ r(oe, { 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: E, address: Z, paymentTerms: U }) })
|
|
245
|
-
] }) }),
|
|
246
|
-
x && /* @__PURE__ */ r(Ue, { open: x, onClose: () => p(!1), onCreated: () => p(!1) }),
|
|
247
|
-
/* @__PURE__ */ r(ge, { 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 })
|
|
248
|
-
] });
|
|
249
|
-
};
|
|
1
|
+
const s = (o) => o.source_of_payable_data === "ocr" && o.ocr_status === "processing";
|
|
250
2
|
export {
|
|
251
|
-
|
|
3
|
+
s as isPayableInOCRProcessing
|
|
252
4
|
};
|
|
@@ -1,185 +1,98 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "@
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
data: u
|
|
43
|
-
} = ie(o?.counterpart_id), r = _e(g, u), I = r?.email ?? "", p = r && a ? n._(`Hi {firstName},
|
|
44
|
-
|
|
45
|
-
Please find the invoice attached as discussed.
|
|
46
|
-
|
|
47
|
-
Kind Regards,
|
|
48
|
-
{senderName}`, {
|
|
49
|
-
firstName: r.first_name,
|
|
50
|
-
senderName: a.first_name
|
|
51
|
-
}) : n._(`Please find the invoice attached as discussed.
|
|
52
|
-
|
|
53
|
-
Kind Regards,
|
|
54
|
-
{senderName}`, {
|
|
55
|
-
senderName: a?.first_name ?? ""
|
|
56
|
-
}), _ = o && s ? o.document_id ? n._("Invoice {documentId} from {entityName}", {
|
|
57
|
-
documentId: o.document_id,
|
|
58
|
-
entityName: s
|
|
59
|
-
}) : n._("Invoice from {entityName}", {
|
|
60
|
-
entityName: s
|
|
61
|
-
}) : "";
|
|
62
|
-
return /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(Pe, { ...t, to: I, body: p, subject: _, isLoading: i || b || m || l, isIssued: o?.status !== "draft", isOpen: t.isOpen }) });
|
|
63
|
-
}, d = {
|
|
64
|
-
Edit: "form",
|
|
65
|
-
Preview: "preview"
|
|
66
|
-
}, Pe = ({
|
|
67
|
-
invoiceId: t,
|
|
68
|
-
subject: n,
|
|
69
|
-
body: a,
|
|
70
|
-
to: m,
|
|
71
|
-
isLoading: o,
|
|
72
|
-
isIssued: b,
|
|
73
|
-
onClose: s,
|
|
74
|
-
onSendEmail: l,
|
|
75
|
-
isOpen: g
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDragScroll as b } from "./index411.js";
|
|
3
|
+
import { PayableStatusChip as C } from "./index145.js";
|
|
4
|
+
import { useMoniteContext as M } from "./index57.js";
|
|
5
|
+
import { useCurrencies as x } from "./index58.js";
|
|
6
|
+
import { Skeleton as A } from "./index134.js";
|
|
7
|
+
import { StatusCard as D } from "./index301.js";
|
|
8
|
+
import { useLingui as j } from "@lingui/react";
|
|
9
|
+
import { useRef as L, useEffect as P } from "react";
|
|
10
|
+
import { getPayablesAnalyticsSnapshot as U } from "./index412.js";
|
|
11
|
+
const c = [{
|
|
12
|
+
groupStatus: "all",
|
|
13
|
+
apiStatuses: [],
|
|
14
|
+
representativeStatus: null
|
|
15
|
+
}, {
|
|
16
|
+
groupStatus: "draft",
|
|
17
|
+
apiStatuses: ["draft", "new"],
|
|
18
|
+
representativeStatus: "draft"
|
|
19
|
+
}, {
|
|
20
|
+
groupStatus: "pending_approval",
|
|
21
|
+
apiStatuses: ["approve_in_progress"],
|
|
22
|
+
representativeStatus: "approve_in_progress"
|
|
23
|
+
}, {
|
|
24
|
+
groupStatus: "rejected",
|
|
25
|
+
apiStatuses: ["rejected"],
|
|
26
|
+
representativeStatus: "rejected"
|
|
27
|
+
}, {
|
|
28
|
+
groupStatus: "ready_to_pay",
|
|
29
|
+
apiStatuses: ["waiting_to_be_paid", "partially_paid"],
|
|
30
|
+
representativeStatus: "waiting_to_be_paid"
|
|
31
|
+
}, {
|
|
32
|
+
groupStatus: "paid",
|
|
33
|
+
apiStatuses: ["paid"],
|
|
34
|
+
representativeStatus: "paid"
|
|
35
|
+
}, {
|
|
36
|
+
groupStatus: "cancelled",
|
|
37
|
+
apiStatuses: ["canceled"],
|
|
38
|
+
representativeStatus: "canceled"
|
|
39
|
+
}], O = ({
|
|
40
|
+
onChangeFilter: o,
|
|
41
|
+
selectedStatus: s
|
|
76
42
|
}) => {
|
|
77
43
|
const {
|
|
78
|
-
i18n:
|
|
79
|
-
} =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
} =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
});
|
|
105
|
-
}, [a, S, n, m]);
|
|
106
|
-
const C = xe(t), x = Ce(t), E = u.finops.postPaymentLinks.useMutation({}), {
|
|
107
|
-
data: P
|
|
108
|
-
} = u.finops.getEntitiesIdPaymentMethods.useQuery({
|
|
109
|
-
path: {
|
|
110
|
-
entity_id: r
|
|
111
|
-
}
|
|
112
|
-
}), [f, k] = U(d.Edit), w = `Monite-Form-emailInvoiceDetails-${W()}`, O = Y((L) => {
|
|
113
|
-
L.preventDefault();
|
|
114
|
-
const G = E.mutateAsync, H = x.mutateAsync, K = C.mutate;
|
|
115
|
-
p(async (v) => {
|
|
116
|
-
const M = P ? P.data.filter(({
|
|
117
|
-
status: N,
|
|
118
|
-
direction: q
|
|
119
|
-
}) => N === "active" && q === "receive") : [];
|
|
120
|
-
M.length === 0 ? Z.error(i._("You haven't onboarded for any payment method. Invoice is issued without a payment link.")) : (await H(void 0), await G({
|
|
121
|
-
recipient: {
|
|
122
|
-
id: r,
|
|
123
|
-
type: "entity"
|
|
124
|
-
},
|
|
125
|
-
payment_methods: M.map((N) => N.type),
|
|
126
|
-
object: {
|
|
127
|
-
id: t,
|
|
128
|
-
type: "receivable"
|
|
129
|
-
}
|
|
130
|
-
}));
|
|
131
|
-
const V = {
|
|
132
|
-
body_text: v.body,
|
|
133
|
-
subject_text: v.subject,
|
|
134
|
-
recipients: v.to ? {
|
|
135
|
-
to: [v.to]
|
|
136
|
-
} : void 0
|
|
44
|
+
i18n: l
|
|
45
|
+
} = j(), {
|
|
46
|
+
data: r,
|
|
47
|
+
isLoading: n
|
|
48
|
+
} = k(), {
|
|
49
|
+
formatCurrencyToDisplay: m
|
|
50
|
+
} = x(), {
|
|
51
|
+
containerRef: S,
|
|
52
|
+
handleMouseDown: f,
|
|
53
|
+
handleMouseLeave: v,
|
|
54
|
+
handleMouseUp: _,
|
|
55
|
+
handleMouseMove: g
|
|
56
|
+
} = b();
|
|
57
|
+
if (n)
|
|
58
|
+
return /* @__PURE__ */ i("div", { className: "ttw:flex ttw:gap-2", children: Array.from({
|
|
59
|
+
length: 6
|
|
60
|
+
}).map((t, u) => /* @__PURE__ */ i(A, { className: "ttw:h-16.5 ttw:w-42 ttw:rounded-xl ttw:animate-pulse" }, u)) });
|
|
61
|
+
const d = r?.data ?? [], w = c.map(({
|
|
62
|
+
groupStatus: t,
|
|
63
|
+
apiStatuses: u
|
|
64
|
+
}) => {
|
|
65
|
+
if (t === "all")
|
|
66
|
+
return {
|
|
67
|
+
status: "all",
|
|
68
|
+
count: d.reduce((e, a) => e + a.count, 0),
|
|
69
|
+
sum_total_amount: d.reduce((e, a) => e + (a.sum_total_amount ?? 0), 0)
|
|
137
70
|
};
|
|
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
|
-
/* @__PURE__ */ e(he, { className: B + "-Content", sx: {
|
|
164
|
-
mt: h ? 0 : 4,
|
|
165
|
-
p: h ? 0 : "0 32px 32px 32px",
|
|
166
|
-
height: "100%",
|
|
167
|
-
width: "100%",
|
|
168
|
-
display: "flex",
|
|
169
|
-
flexDirection: "column"
|
|
170
|
-
}, children: /* @__PURE__ */ c(ge, { formName: w, handleIssueAndSend: O, style: {
|
|
171
|
-
display: "flex",
|
|
172
|
-
flexDirection: "column",
|
|
173
|
-
flex: 1,
|
|
174
|
-
minHeight: 0,
|
|
175
|
-
width: "100%"
|
|
176
|
-
}, children: [
|
|
177
|
-
o ? /* @__PURE__ */ e(re, { className: "Monite-LoadingPage", children: /* @__PURE__ */ e(ve, {}) }) : f == d.Edit && /* @__PURE__ */ e(Ie, { invoiceId: t, control: I, isDisabled: y }),
|
|
178
|
-
h && /* @__PURE__ */ e(Ee, { invoiceId: t, body: T, subject: F })
|
|
179
|
-
] }) })
|
|
180
|
-
] });
|
|
71
|
+
const p = d.filter((e) => u.includes(e.status));
|
|
72
|
+
return {
|
|
73
|
+
status: t,
|
|
74
|
+
count: p.reduce((e, a) => e + a.count, 0),
|
|
75
|
+
sum_total_amount: p.reduce((e, a) => e + (a.sum_total_amount ?? 0), 0)
|
|
76
|
+
};
|
|
77
|
+
}).filter((t) => t.status === "all" || t.count > 0), h = (t) => {
|
|
78
|
+
o("status", t === "all" ? null : t);
|
|
79
|
+
}, y = (t) => m(t, "USD") ?? "—";
|
|
80
|
+
return /* @__PURE__ */ i("div", { ref: S, className: "ttw:flex ttw:gap-2 ttw:mb-6 ttw:overflow-x-auto ttw:[scrollbar-width:none] ttw:[&::-webkit-scrollbar]:hidden ttw:cursor-grab ttw:select-none", onMouseDown: f, onMouseLeave: v, onMouseUp: _, onMouseMove: g, children: w.map((t) => {
|
|
81
|
+
const u = c.find((p) => p.groupStatus === t.status);
|
|
82
|
+
return /* @__PURE__ */ i(D, { allItemsText: l._("All bills"), isAllStatus: t.status === "all", data: t.status === "all" ? t.count ?? 0 : t.sum_total_amount ?? 0, amountOfItems: t.status !== "all" ? t.count ?? 0 : void 0, selected: s === t.status, onClick: () => h(t.status), formatAmount: y, statusChip: u?.representativeStatus ? /* @__PURE__ */ i(C, { status: u.representativeStatus }) : void 0 }, t.status);
|
|
83
|
+
}) });
|
|
84
|
+
}, k = () => {
|
|
85
|
+
const {
|
|
86
|
+
api: o,
|
|
87
|
+
queryClient: s
|
|
88
|
+
} = M(), l = o.finops.getPayablesAnalytics.useQuery({}, {
|
|
89
|
+
enabled: !!s,
|
|
90
|
+
refetchInterval: 3e3
|
|
91
|
+
}), r = U(l.data?.data), n = L(void 0);
|
|
92
|
+
return P(() => {
|
|
93
|
+
r !== void 0 && n.current !== void 0 && r !== n.current && s && o.finops.getPayables.invalidateQueries(s), n.current = r;
|
|
94
|
+
}, [r, o, s]), l;
|
|
181
95
|
};
|
|
182
96
|
export {
|
|
183
|
-
|
|
184
|
-
Pe as EmailInvoiceDetailsBase
|
|
97
|
+
O as SummaryCardsFilters
|
|
185
98
|
};
|
|
@@ -1,14 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as a, jsxs as o, Fragment as w } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as v } from "@lingui/react";
|
|
3
|
+
import { ListFilter as p } from "lucide-react";
|
|
4
|
+
import { useFilterPanel as g, FilterBar as C, FilterTag as x, Popover as b, PopoverTrigger as F, FilterMenuButton as f, PopoverContent as P, DateRangePicker as D, MultiSelectFilter as N, AmountFilter as M, Input as y, RadioGroup as I, RadioGroupItem as S, SearchInput as _ } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
5
|
+
const k = {
|
|
6
|
+
date: "ttw:w-auto",
|
|
7
|
+
status: "ttw:w-56",
|
|
8
|
+
amount: "ttw:w-64",
|
|
9
|
+
vendor: "ttw:w-64",
|
|
10
|
+
attachment: "ttw:w-56"
|
|
11
|
+
}, A = {
|
|
12
|
+
due_date: "Due date",
|
|
13
|
+
created_at: "Created on",
|
|
14
|
+
issued_at: "Issue date"
|
|
15
|
+
}, L = [{
|
|
16
|
+
id: "date",
|
|
17
|
+
label: "Due date",
|
|
18
|
+
activeDateField: "due_date"
|
|
19
|
+
}, {
|
|
20
|
+
id: "date",
|
|
21
|
+
label: "Created on",
|
|
22
|
+
activeDateField: "created_at"
|
|
23
|
+
}, {
|
|
24
|
+
id: "date",
|
|
25
|
+
label: "Issue date",
|
|
26
|
+
activeDateField: "issued_at"
|
|
27
|
+
}, {
|
|
28
|
+
id: "status",
|
|
29
|
+
label: "Status",
|
|
30
|
+
activeDateField: void 0
|
|
31
|
+
}, {
|
|
32
|
+
id: "amount",
|
|
33
|
+
label: "Amount",
|
|
34
|
+
activeDateField: void 0
|
|
35
|
+
}, {
|
|
36
|
+
id: "vendor",
|
|
37
|
+
label: "Vendor",
|
|
38
|
+
activeDateField: void 0
|
|
39
|
+
}, {
|
|
40
|
+
id: "attachment",
|
|
41
|
+
label: "Attachment",
|
|
42
|
+
activeDateField: void 0
|
|
43
|
+
}];
|
|
44
|
+
function O(e) {
|
|
45
|
+
const {
|
|
46
|
+
i18n: i
|
|
47
|
+
} = v(), n = g(), s = n.isMenuOpen || !!n.activePanelId, r = n.activePanelId && k[n.activePanelId] || "ttw:w-52", d = e.allPresets.map((t) => ({
|
|
48
|
+
value: t.value,
|
|
49
|
+
label: t.label,
|
|
50
|
+
group: t.group
|
|
51
|
+
})), c = (t) => {
|
|
52
|
+
t || (n.closeMenu(), n.closePanel());
|
|
53
|
+
}, u = (t, l) => {
|
|
54
|
+
l && e.onActiveDateFieldChange(l), n.openPanel(t);
|
|
55
|
+
}, m = e.hasFile === !0 ? "has" : e.hasFile === !1 ? "no" : "any", h = (t) => {
|
|
56
|
+
t === "any" ? e.onHasFileChange(void 0) : t === "has" ? e.onHasFileChange(!0) : e.onHasFileChange(!1);
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ a(C, { className: "ttw:pl-4", searchSlot: /* @__PURE__ */ a(_, { value: e.searchValue, onChange: (t) => e.onSearchChange(t.target.value), placeholder: "Search by number or vendor..." }), menuSlot: /* @__PURE__ */ o(b, { open: s, onOpenChange: c, children: [
|
|
59
|
+
/* @__PURE__ */ a(F, { asChild: !0, children: /* @__PURE__ */ a(f, { activeCount: e.activeFilterCount, onClick: n.toggleMenu }) }),
|
|
60
|
+
/* @__PURE__ */ o(P, { align: "start", className: `ttw:p-0 ${r}`, children: [
|
|
61
|
+
n.isMenuOpen && /* @__PURE__ */ a("div", { className: "ttw:p-1", children: L.map((t, l) => /* @__PURE__ */ o("button", { type: "button", className: "ttw:flex ttw:items-center ttw:gap-2 ttw:w-full ttw:px-2 ttw:py-1.5 ttw:rounded-md ttw:text-xs ttw:font-medium ttw:hover:bg-accent ttw:transition-colors ttw:cursor-pointer", onClick: () => u(t.id, t.activeDateField), children: [
|
|
62
|
+
/* @__PURE__ */ a(p, { className: "ttw:size-4 ttw:text-muted-foreground ttw:shrink-0" }),
|
|
63
|
+
t.label
|
|
64
|
+
] }, `${t.id}-${l}`)) }),
|
|
65
|
+
n.activePanelId === "date" && /* @__PURE__ */ a(D, { from: e.dateFrom, to: e.dateTo, onRangeChange: e.onDateRangeChange, selectedPreset: e.selectedDatePreset, onPresetChange: e.onDatePresetChange, presets: d, fieldLabel: A[e.activeDateField] }),
|
|
66
|
+
n.activePanelId === "status" && /* @__PURE__ */ a(N, { options: e.statusOptions, selectedValues: e.selectedStatus, onSelectionChange: e.onStatusChange }),
|
|
67
|
+
n.activePanelId === "amount" && /* @__PURE__ */ a(M, { mode: e.amountMode, onModeChange: e.onAmountModeChange, min: e.amountMin, max: e.amountMax, onMinChange: e.onAmountMinChange, onMaxChange: e.onAmountMaxChange, showFlowDirection: !1, minLabel: "No less than", maxLabel: "No more than" }),
|
|
68
|
+
n.activePanelId === "vendor" && /* @__PURE__ */ o("div", { className: "ttw:p-3 ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
69
|
+
/* @__PURE__ */ a("p", { className: "ttw:text-xs ttw:font-medium ttw:text-muted-foreground", children: "Vendor name" }),
|
|
70
|
+
/* @__PURE__ */ a(y, { type: "text", value: e.vendorName, onChange: (t) => e.onVendorNameChange(t.target.value), placeholder: "Search vendors...", className: "ttw:h-8 ttw:text-xs" }),
|
|
71
|
+
/* @__PURE__ */ a("p", { className: "ttw:text-xs ttw:text-muted-foreground", children: i._("Matches names containing your search") })
|
|
72
|
+
] }),
|
|
73
|
+
n.activePanelId === "attachment" && /* @__PURE__ */ a("div", { className: "ttw:p-3", children: /* @__PURE__ */ a(I, { value: m, onValueChange: h, className: "ttw:flex ttw:flex-col ttw:gap-1", children: [{
|
|
74
|
+
value: "any",
|
|
75
|
+
label: "Any"
|
|
76
|
+
}, {
|
|
77
|
+
value: "has",
|
|
78
|
+
label: "Has attachment"
|
|
79
|
+
}, {
|
|
80
|
+
value: "no",
|
|
81
|
+
label: "No attachment"
|
|
82
|
+
}].map(({
|
|
83
|
+
value: t,
|
|
84
|
+
label: l
|
|
85
|
+
}) => /* @__PURE__ */ o("label", { className: "ttw:flex ttw:items-center ttw:gap-2 ttw:cursor-pointer", children: [
|
|
86
|
+
/* @__PURE__ */ a(S, { value: t }),
|
|
87
|
+
/* @__PURE__ */ a("span", { className: "ttw:text-xs ttw:font-medium", children: l })
|
|
88
|
+
] }, t)) }) })
|
|
89
|
+
] })
|
|
90
|
+
] }), activeChipsSlot: /* @__PURE__ */ o(w, { children: [
|
|
91
|
+
e.activeChips.map((t) => /* @__PURE__ */ a(x, { label: t.label, count: t.count, variant: "default", onLabelClick: t.key === "date" ? () => {
|
|
92
|
+
n.openPanel("date");
|
|
93
|
+
} : void 0, onDismiss: () => e.onDismissChip(t.key) }, t.key)),
|
|
94
|
+
e.activeFilterCount > 0 && /* @__PURE__ */ a("button", { type: "button", className: "ttw:text-xs ttw:text-muted-foreground ttw:hover:text-foreground ttw:transition-colors ttw:cursor-pointer ttw:whitespace-nowrap", onClick: e.onClearAll, children: "Clear all" })
|
|
95
|
+
] }) });
|
|
11
96
|
}
|
|
12
97
|
export {
|
|
13
|
-
|
|
98
|
+
O as PayablesFilterBar
|
|
14
99
|
};
|