@tesouro/embedded-components-react 0.2.19 → 0.2.20
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 +26 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +25 -25
- 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/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 +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1269 -23
- 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 +22 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +98 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +56 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +76 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +33 -26
- 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 +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +25 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +46 -43
- 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 +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +152 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +53 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +71 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +60 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +76 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +4 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +24 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +12 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +20 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +19 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +27 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +117 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +65 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +42 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +73 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +54 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +195 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +78 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +29 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +7 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +248 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +182 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +13 -30
- 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 +108 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +81 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +107 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +63 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +47 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +37 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +116 -5
- 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 +69 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +186 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +27 -366
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +121 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +366 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +17 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +93 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +345 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +297 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +103 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +158 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +267 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +20 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +96 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +97 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +184 -337
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +33 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +144 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +85 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +183 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +18 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +47 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +74 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +32 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +483 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +164 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +59 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +114 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +21 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +44 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +38 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +14 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +76 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +35 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +50 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +33 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +344 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +9 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +16 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +34 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +36 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +15 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +22 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +40 -2
- 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 +49 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +29 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +97 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +47 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +22 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +32 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +54 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +28 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +54 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +77 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +44 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +73 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +149 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +12 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +45 -289
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +37 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +34 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +6 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +97 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +35 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +57 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +37 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +17 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +58 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +91 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +126 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +16 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +38 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +39 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +62 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +66 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +157 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +27 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +26 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +78 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +126 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +28 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +42 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +60 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +92 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +112 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +82 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +20 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +15 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +19 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +160 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +128 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +154 -259
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +18 -19
- 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 +62 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +65 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +56 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +8 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +6 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +61 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +22 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +60 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +60 -99
- 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 +44 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +185 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +102 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +281 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +48 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +15 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +80 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +221 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +49 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +48 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +111 -12
- 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 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +70 -94
- 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 +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +14 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +11 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +31 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +126 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +28 -17
- 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 +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +255 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +22 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +19 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +72 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +94 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +7 -38
- 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 +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +16 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +10 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +13 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +38 -16
- 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 +100 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +112 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +57 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +13 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +69 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +44 -51
- 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 +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +5 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +18 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +13 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +64 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +20 -11
- 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 +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +34 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +54 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +31 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +23 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +70 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +12 -38
- 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 +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +85 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +22 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +38 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +74 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +81 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +50 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +50 -37
- 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 +53 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +30 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +55 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +36 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +56 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +71 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +21 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +39 -85
- 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 +48 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +92 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +75 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +19 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +81 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +41 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +36 -18
- 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 +14 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +18 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +48 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +56 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +29 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +69 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +40 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +20 -9
- 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 +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +47 -39
- 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 +3 -3
- 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/data-access/dist/lib/scopes.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +50 -50
- package/package.json +1 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
13
|
-
};
|
|
1
|
+
import { jsxs as i, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Typography as e } from "./index87.js";
|
|
3
|
+
import { twMerge as s } from "tailwind-merge";
|
|
4
|
+
const w = ({
|
|
5
|
+
label: o,
|
|
6
|
+
value: t,
|
|
7
|
+
isLast: a
|
|
8
|
+
}) => /* @__PURE__ */ i("li", { className: s("ttw:flex ttw:gap-4 ttw:py-2.5", !a && "ttw:border-b ttw:border-border"), children: [
|
|
9
|
+
/* @__PURE__ */ r(e, { variant: "body2", color: "muted", className: "ttw:w-35 ttw:min-w-35 ttw:font-medium", children: o }),
|
|
10
|
+
typeof t == "string" ? /* @__PURE__ */ r(e, { variant: "body2", className: "ttw:font-medium", children: t }) : t
|
|
11
|
+
] });
|
|
14
12
|
export {
|
|
15
|
-
|
|
13
|
+
w as ProductDetailLine
|
|
16
14
|
};
|
|
@@ -1,119 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { jsxs as w, jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { RECURRENCE_STATUS_ICON as g } from "./index286.js";
|
|
3
|
+
import { getCommonRecurrenceStatusLabel as m } from "./index337.js";
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { Badge as l } from "./index284.js";
|
|
6
|
+
import { cn as p } from "./index102.js";
|
|
7
|
+
import { useLingui as b } from "@lingui/react";
|
|
8
|
+
import { cva as u } from "class-variance-authority";
|
|
9
|
+
const r = u("", {
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
// Active reads periwinkle (indigo) to match the recurrence design,
|
|
13
|
+
// sitting in the same cool family as the violet "Recurring" badge.
|
|
14
|
+
active: "ttw:bg-indigo-100 ttw:text-indigo-700",
|
|
15
|
+
paused: "ttw:bg-yellow-100 ttw:text-yellow-700",
|
|
16
|
+
canceled: "ttw:bg-red-100 ttw:text-red-700",
|
|
17
|
+
completed: "ttw:bg-green-100 ttw:text-green-700"
|
|
18
|
+
},
|
|
19
|
+
dotVariant: {
|
|
20
|
+
active: "ttw:border-indigo-100 ttw:bg-indigo-700",
|
|
21
|
+
paused: "ttw:border-yellow-100 ttw:bg-yellow-700",
|
|
22
|
+
canceled: "ttw:border-red-100 ttw:bg-red-700",
|
|
23
|
+
completed: "ttw:border-green-100 ttw:bg-green-700"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}), R = ({
|
|
27
|
+
status: t,
|
|
28
|
+
className: o,
|
|
29
|
+
showBadgeBackground: e = !0,
|
|
30
|
+
showIcon: a = !1,
|
|
31
|
+
dotSize: i,
|
|
32
|
+
ref: s
|
|
30
33
|
}) => {
|
|
31
34
|
const {
|
|
32
|
-
i18n:
|
|
33
|
-
} =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} = T(i.id), {
|
|
42
|
-
mutate: U
|
|
43
|
-
} = q(a.onDuplicate), c = i.status === "draft", g = i.status === "issued", f = i.status === "overdue", N = i.status === "partially_paid", O = i.status === "uncollectible", V = i.status === "canceled", u = i.status === "recurring", j = v && v?.status === "canceled", z = g || f || N, C = z && p, $ = async () => {
|
|
44
|
-
await L(), await x(i?.id);
|
|
45
|
-
}, B = () => {
|
|
46
|
-
U({
|
|
47
|
-
path: {
|
|
48
|
-
receivable_id: i.id
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}, A = async () => {
|
|
52
|
-
const d = await R();
|
|
53
|
-
d.data?.file_url && window.open(d.data.file_url, "_blank");
|
|
54
|
-
}, o = (d) => {
|
|
55
|
-
s ? d() : me.error(F);
|
|
56
|
-
};
|
|
57
|
-
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:items-center ttw:gap-1.5", children: [
|
|
58
|
-
b && /* @__PURE__ */ e(H, { invoiceId: i?.id ?? "", open: b, onClose: () => k(!1), onMarkAsUncollectible: a.onMarkAsUncollectible }),
|
|
59
|
-
y && /* @__PURE__ */ e(Y, { open: y, onClose: () => _(!1), invoiceId: i?.id ?? "", documentId: i?.document_id, onDelete: a.onDelete }),
|
|
60
|
-
D && /* @__PURE__ */ e(W, { invoiceId: i?.id ?? "", open: D, onClose: () => I(!1) }),
|
|
61
|
-
w && /* @__PURE__ */ e(K, { invoice: i, open: w, onClose: () => M(!1) }),
|
|
62
|
-
u && !V && !j && /* @__PURE__ */ e(r, { type: "button", variant: "destructive", size: "sm", onClick: () => o(() => M(!0)), disabled: !s, children: t._("Cancel recurrence") }),
|
|
63
|
-
c && /* @__PURE__ */ n(h, { children: [
|
|
64
|
-
/* @__PURE__ */ e(r, { type: "button", size: "sm", onClick: () => o(a.onIssueAndSendButtonClick), disabled: !s, children: t._("Issue and send") }),
|
|
65
|
-
!p && /* @__PURE__ */ n(h, { children: [
|
|
66
|
-
/* @__PURE__ */ n(r, { type: "button", variant: "outline", size: "sm", disabled: P || !s, onClick: () => o($), children: [
|
|
67
|
-
/* @__PURE__ */ e(ne, {}),
|
|
68
|
-
" ",
|
|
69
|
-
t._("Issue")
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ n(r, { type: "button", variant: "outline", size: "sm", onClick: () => o(a.onEditButtonClick), disabled: !s, children: [
|
|
72
|
-
/* @__PURE__ */ e(se, {}),
|
|
73
|
-
" ",
|
|
74
|
-
t._("Edit")
|
|
75
|
-
] })
|
|
76
|
-
] })
|
|
77
|
-
] }),
|
|
78
|
-
z && /* @__PURE__ */ e(J, { invoice: i, children: ({
|
|
79
|
-
openModal: d
|
|
80
|
-
}) => /* @__PURE__ */ e(r, { type: "button", size: "sm", disabled: !s, onClick: () => o(d), children: t._("Record payment") }) }),
|
|
81
|
-
!c && !O && !C && !u && /* @__PURE__ */ n(r, { type: "button", variant: "outline", size: "sm", onClick: () => o(a.onIssueAndSendButtonClick), disabled: !s, children: [
|
|
82
|
-
/* @__PURE__ */ e(re, {}),
|
|
83
|
-
" ",
|
|
84
|
-
t._("Send")
|
|
85
|
-
] }),
|
|
86
|
-
!c && !C && /* @__PURE__ */ n(r, { type: "button", variant: "outline", size: "sm", disabled: S, onClick: A, children: [
|
|
87
|
-
/* @__PURE__ */ e(ae, {}),
|
|
88
|
-
" ",
|
|
89
|
-
t._("PDF")
|
|
90
|
-
] }),
|
|
91
|
-
u && /* @__PURE__ */ n(r, { type: "button", variant: "outline", size: "sm", onClick: () => o(B), children: [
|
|
92
|
-
/* @__PURE__ */ e(le, {}),
|
|
93
|
-
" ",
|
|
94
|
-
t._("Duplicate")
|
|
95
|
-
] }),
|
|
96
|
-
!u && /* @__PURE__ */ n(ee, { children: [
|
|
97
|
-
/* @__PURE__ */ e(ie, { asChild: !0, children: /* @__PURE__ */ e(r, { type: "button", variant: "outline", size: "sm", disabled: !s, children: /* @__PURE__ */ e(ce, {}) }) }),
|
|
98
|
-
/* @__PURE__ */ n(te, { align: "end", children: [
|
|
99
|
-
c && p && /* @__PURE__ */ n(h, { children: [
|
|
100
|
-
/* @__PURE__ */ e(l, { disabled: P || !s, onClick: () => o($), children: t._("Issue") }),
|
|
101
|
-
/* @__PURE__ */ e(l, { disabled: !s, onClick: () => o(a.onEditButtonClick), children: t._("Edit") })
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ e(l, { onClick: () => o(B), children: t._("Duplicate") }),
|
|
104
|
-
(c || C) && /* @__PURE__ */ e(l, { onClick: A, children: t._("Download draft") }),
|
|
105
|
-
c && /* @__PURE__ */ e(l, { onClick: () => _(!0), variant: "destructive", children: t._("Delete") }),
|
|
106
|
-
(g || f) && /* @__PURE__ */ e(l, { onClick: () => o(() => I(!0)), children: t._("Cancel invoice") }),
|
|
107
|
-
f && /* @__PURE__ */ e(l, { onClick: () => o(() => k(!0)), children: t._("Mark as uncollectible") })
|
|
108
|
-
] })
|
|
109
|
-
] }),
|
|
110
|
-
/* @__PURE__ */ n(r, { type: "button", variant: "secondary", className: "ttw:ml-auto", size: "sm", onClick: a.onViewPDFButtonClick, children: [
|
|
111
|
-
E ? /* @__PURE__ */ e(de, {}) : /* @__PURE__ */ e(ue, {}),
|
|
112
|
-
" ",
|
|
113
|
-
t._("PDF view")
|
|
114
|
-
] })
|
|
35
|
+
i18n: n
|
|
36
|
+
} = b(), d = g[t];
|
|
37
|
+
return /* @__PURE__ */ w(l, { ref: s, className: p("ttw:inline-flex ttw:items-center ttw:gap-1", r({
|
|
38
|
+
variant: t
|
|
39
|
+
}), o), dotClassName: r({
|
|
40
|
+
dotVariant: t
|
|
41
|
+
}), showBadgeBackground: e, showDotBorder: !e, dotSize: i, showDot: !1, children: [
|
|
42
|
+
a && /* @__PURE__ */ c(d, { className: "ttw:size-3", "aria-hidden": !0 }),
|
|
43
|
+
m(n, t)
|
|
115
44
|
] });
|
|
116
45
|
};
|
|
117
46
|
export {
|
|
118
|
-
|
|
47
|
+
R as InvoiceRecurrenceStatusChip
|
|
119
48
|
};
|
|
@@ -1,89 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as n, jsxs as o, Fragment as w } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as h } from "@lingui/react";
|
|
3
|
+
import { ListFilter as p } from "lucide-react";
|
|
4
|
+
import { useFilterPanel as g, FilterBar as f, FilterTag as C, Popover as v, PopoverTrigger as x, FilterMenuButton as P, PopoverContent as b, DateRangePicker as _, MultiSelectFilter as F, AmountFilter as S, Input as M, SearchInput as N } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
5
|
+
const I = {
|
|
6
|
+
due_date: "Due date",
|
|
7
|
+
created_at: "Created on",
|
|
8
|
+
issue_date: "Issue date"
|
|
9
|
+
}, s = [{
|
|
10
|
+
id: "date_due_date",
|
|
11
|
+
label: "Due date",
|
|
12
|
+
field: "due_date"
|
|
13
|
+
}, {
|
|
14
|
+
id: "date_created_at",
|
|
15
|
+
label: "Created on",
|
|
16
|
+
field: "created_at"
|
|
17
|
+
}, {
|
|
18
|
+
id: "date_issue_date",
|
|
19
|
+
label: "Issue date",
|
|
20
|
+
field: "issue_date"
|
|
21
|
+
}, {
|
|
22
|
+
id: "status",
|
|
23
|
+
label: "Status",
|
|
24
|
+
field: void 0
|
|
25
|
+
}, {
|
|
26
|
+
id: "amount",
|
|
27
|
+
label: "Amount",
|
|
28
|
+
field: void 0
|
|
29
|
+
}, {
|
|
30
|
+
id: "customer",
|
|
31
|
+
label: "Customer",
|
|
32
|
+
field: void 0
|
|
33
|
+
}], D = {
|
|
34
|
+
date_due_date: "ttw:w-auto",
|
|
35
|
+
date_created_at: "ttw:w-auto",
|
|
36
|
+
date_issue_date: "ttw:w-auto",
|
|
37
|
+
status: "ttw:w-56",
|
|
38
|
+
amount: "ttw:w-64",
|
|
39
|
+
customer: "ttw:w-64"
|
|
40
|
+
};
|
|
41
|
+
function O(t) {
|
|
17
42
|
const {
|
|
18
|
-
i18n:
|
|
19
|
-
} =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
] }) }),
|
|
43
|
-
/* @__PURE__ */ t("tbody", { children: e?.line_items?.length > 0 && e?.line_items?.map((i, d) => /* @__PURE__ */ r("tr", { className: "ttw:border-b ttw:border-border ttw:h-10 ttw:text-text ttw:text-sm ttw:leading-5", children: [
|
|
44
|
-
/* @__PURE__ */ t("td", { className: "ttw:py-4 ttw:pr-2 ttw:font-normal", children: i?.product?.name }),
|
|
45
|
-
/* @__PURE__ */ t("td", { className: "ttw:py-4 ttw:px-2 ttw:font-normal ttw:whitespace-nowrap", children: a._("{quantity} x {price}", {
|
|
46
|
-
quantity: i?.quantity,
|
|
47
|
-
price: c(o ? i?.product?.price_after_tax?.value : i?.product?.price?.value, i?.product?.price?.currency)
|
|
48
|
-
}) }),
|
|
49
|
-
/* @__PURE__ */ t("td", { className: "ttw:py-4 ttw:px-2 ttw:font-normal ttw:text-right ttw:whitespace-nowrap", children: c(o ? i?.total_after_tax : i?.product?.price?.value * i?.quantity, i?.product?.price?.currency) }),
|
|
50
|
-
/* @__PURE__ */ r("td", { className: "ttw:py-4 ttw:pl-2 ttw:font-normal ttw:text-right", children: [
|
|
51
|
-
_(i?.product?.tax_rate?.value),
|
|
52
|
-
"%"
|
|
53
|
-
] })
|
|
54
|
-
] }, `${i?.product?.id}-${d}`)) })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ t(w, { invoice: e })
|
|
57
|
-
] })
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ t("div", { className: "ttw:w-full ttw:h-px ttw:bg-border" }),
|
|
60
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
61
|
-
/* @__PURE__ */ t("h2", { className: "ttw:text-lg ttw:font-semibold ttw:leading-6", children: a._("Payment info") }),
|
|
62
|
-
/* @__PURE__ */ r("div", { className: "ttw:grid ttw:grid-cols-2 ttw:gap-4", children: [
|
|
63
|
-
/* @__PURE__ */ t(l, { label: a._("Payment terms"), value: e?.payment_terms?.name ?? "-" }),
|
|
64
|
-
/* @__PURE__ */ t(l, { label: a._("Payment details"), value: /* @__PURE__ */ r(s, { children: [
|
|
65
|
-
/* @__PURE__ */ r("span", { children: [
|
|
66
|
-
a._("Bank name:"),
|
|
67
|
-
" ",
|
|
68
|
-
n?.bank_name ?? "-"
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ t("br", {}),
|
|
71
|
-
/* @__PURE__ */ r("span", { children: [
|
|
72
|
-
a._("Account number:"),
|
|
73
|
-
" ",
|
|
74
|
-
n?.account_number ?? "-"
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ t("br", {}),
|
|
77
|
-
/* @__PURE__ */ r("span", { children: [
|
|
78
|
-
a._("Routing number:"),
|
|
79
|
-
" ",
|
|
80
|
-
n?.routing_number ?? "-"
|
|
81
|
-
] })
|
|
82
|
-
] }) })
|
|
43
|
+
i18n: i
|
|
44
|
+
} = h(), a = g(), r = a.isMenuOpen || !!a.activePanelId, d = a.activePanelId && D[a.activePanelId] || "ttw:w-52", u = t.allPresets.map((e) => ({
|
|
45
|
+
value: e.value,
|
|
46
|
+
label: e.label,
|
|
47
|
+
group: e.group
|
|
48
|
+
})), c = (e) => {
|
|
49
|
+
e || (a.closeMenu(), a.closePanel());
|
|
50
|
+
}, m = (e) => {
|
|
51
|
+
a.openPanel(e);
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ n(f, { className: "ttw:pl-4", searchSlot: /* @__PURE__ */ n(N, { value: t.searchValue, onChange: (e) => t.onSearchChange(e.target.value), placeholder: "Search by number or customer...", className: "ttw:min-w-64" }), menuSlot: /* @__PURE__ */ o(v, { open: r, onOpenChange: c, children: [
|
|
54
|
+
/* @__PURE__ */ n(x, { asChild: !0, children: /* @__PURE__ */ n(P, { activeCount: t.activeFilterCount, onClick: a.toggleMenu }) }),
|
|
55
|
+
/* @__PURE__ */ o(b, { align: "start", className: `ttw:p-0 ${d}`, children: [
|
|
56
|
+
a.isMenuOpen && /* @__PURE__ */ n("div", { className: "ttw:p-1", children: s.map((e) => /* @__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: () => m(e.id), children: [
|
|
57
|
+
/* @__PURE__ */ n(p, { className: "ttw:size-4 ttw:text-muted-foreground ttw:shrink-0" }),
|
|
58
|
+
e.label
|
|
59
|
+
] }, e.id)) }),
|
|
60
|
+
s.filter((e) => e.field !== void 0).map((e) => a.activePanelId === e.id && e.field && /* @__PURE__ */ n(_, { from: t.activeDateFields[e.field]?.from, to: t.activeDateFields[e.field]?.to, onRangeChange: (l) => t.onDateFieldRangeChange(e.field, l), selectedPreset: t.activeDateFields[e.field]?.preset, onPresetChange: (l) => t.onDateFieldPresetChange(e.field, l), presets: u, fieldLabel: I[e.field] }, e.id)),
|
|
61
|
+
a.activePanelId === "status" && /* @__PURE__ */ n(F, { options: t.statusOptions, selectedValues: t.selectedStatus, onSelectionChange: t.onStatusChange }),
|
|
62
|
+
a.activePanelId === "amount" && /* @__PURE__ */ n(S, { mode: t.amountMode, onModeChange: t.onAmountModeChange, min: t.amountMin, max: t.amountMax, onMinChange: t.onAmountMinChange, onMaxChange: t.onAmountMaxChange, showFlowDirection: !1, minLabel: "No less than", maxLabel: "No more than" }),
|
|
63
|
+
a.activePanelId === "customer" && /* @__PURE__ */ o("div", { className: "ttw:p-3 ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
64
|
+
/* @__PURE__ */ n("p", { className: "ttw:text-xs ttw:font-medium ttw:text-muted-foreground", children: "Customer name" }),
|
|
65
|
+
/* @__PURE__ */ n(M, { type: "text", value: t.customerName, onChange: (e) => t.onCustomerNameChange(e.target.value), placeholder: "Search customers...", className: "ttw:h-8 ttw:text-xs" }),
|
|
66
|
+
/* @__PURE__ */ n("p", { className: "ttw:text-xs ttw:text-muted-foreground", children: i._("Matches names containing your search") })
|
|
83
67
|
] })
|
|
84
68
|
] })
|
|
85
|
-
] })
|
|
86
|
-
|
|
69
|
+
] }), activeChipsSlot: /* @__PURE__ */ o(w, { children: [
|
|
70
|
+
t.activeChips.map((e) => /* @__PURE__ */ n(C, { label: e.label, count: e.count, variant: "default", onLabelClick: e.key === "date" ? () => {
|
|
71
|
+
a.openPanel("date");
|
|
72
|
+
} : void 0, onDismiss: () => t.onDismissChip(e.key) }, e.key)),
|
|
73
|
+
t.activeFilterCount > 0 && /* @__PURE__ */ n("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: t.onClearAll, children: "Clear all" })
|
|
74
|
+
] }) });
|
|
75
|
+
}
|
|
87
76
|
export {
|
|
88
|
-
|
|
77
|
+
O as InvoicesFilterBar
|
|
89
78
|
};
|
|
@@ -1,111 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import "./index94.js";
|
|
13
|
-
import { useLingui as f } from "@lingui/react";
|
|
14
|
-
import "react-dom";
|
|
15
|
-
import "@mui/x-data-grid";
|
|
16
|
-
import { Accordion as N, AccordionItem as _, AccordionTrigger as C, AccordionContent as D } from "./index251.js";
|
|
17
|
-
import { Badge as F } from "./index252.js";
|
|
18
|
-
import { Card as T, CardContent as A } from "./index379.js";
|
|
19
|
-
import { File as R } from "lucide-react";
|
|
20
|
-
const k = ({
|
|
21
|
-
documentId: e,
|
|
22
|
-
issueDate: n,
|
|
23
|
-
totalAmount: u,
|
|
24
|
-
currency: p,
|
|
25
|
-
status: a,
|
|
26
|
-
type: l
|
|
1
|
+
import { jsx as s, jsxs as _ } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { InvoiceStatusChip as y } from "./index57.js";
|
|
3
|
+
import { useGetReceivablesAnalytics as c } from "./index148.js";
|
|
4
|
+
import { useCurrencies as S } from "./index60.js";
|
|
5
|
+
import { Skeleton as A } from "./index138.js";
|
|
6
|
+
import { StatusCard as d } from "./index343.js";
|
|
7
|
+
import { useLingui as b } from "@lingui/react";
|
|
8
|
+
import { useMemo as f } from "react";
|
|
9
|
+
const p = ["draft", "issued", "overdue", "partially_paid", "paid", "recurring", "canceled", "uncollectible"], M = ({
|
|
10
|
+
selectedStatus: o,
|
|
11
|
+
onChangeFilter: w
|
|
27
12
|
}) => {
|
|
28
13
|
const {
|
|
29
|
-
i18n:
|
|
30
|
-
} =
|
|
31
|
-
|
|
32
|
-
} =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
]
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
data: d
|
|
72
|
-
} = I({
|
|
73
|
-
id__in: c,
|
|
74
|
-
type: "credit_note"
|
|
75
|
-
}, !!c?.length);
|
|
76
|
-
return e?.type !== "invoice" ? null : /* @__PURE__ */ r(m, { children: [
|
|
77
|
-
/* @__PURE__ */ r("div", { className: "ttw:grid ttw:grid-cols-2 ttw:gap-4", children: [
|
|
78
|
-
/* @__PURE__ */ t(s, { label: a._("Customer"), value: e?.counterpart_name ?? "-" }),
|
|
79
|
-
n && /* @__PURE__ */ r(m, { children: [
|
|
80
|
-
/* @__PURE__ */ t(s, { label: a._("Payment terms"), value: e?.payment_terms?.name ?? "-" }),
|
|
81
|
-
/* @__PURE__ */ t(s, { label: a._("Created"), value: n?.created_at ? a.date(n?.created_at, l.dateFormat) : "-" })
|
|
82
|
-
] }),
|
|
83
|
-
!n && /* @__PURE__ */ r(m, { children: [
|
|
84
|
-
/* @__PURE__ */ t(s, { label: a._("Document number"), value: e?.document_id ?? a._("INV-auto") }),
|
|
85
|
-
/* @__PURE__ */ t(s, { label: a._("Issue date"), value: e?.issue_date ? a.date(e?.issue_date, l.dateFormat) : "-" }),
|
|
86
|
-
/* @__PURE__ */ t(s, { label: a._("Due date"), value: e?.due_date ? a.date(e?.due_date, l.dateFormat) : "-", status: e?.status })
|
|
87
|
-
] }),
|
|
88
|
-
e?.status !== "draft" && !n && /* @__PURE__ */ t(s, { label: a._("Payment status"), value: a._("{paid} paid / {due} due", {
|
|
89
|
-
paid: o(e?.amount_paid, e?.currency),
|
|
90
|
-
due: o(e?.amount_due, e?.currency)
|
|
91
|
-
}) })
|
|
92
|
-
] }),
|
|
93
|
-
n && /* @__PURE__ */ r(m, { children: [
|
|
94
|
-
/* @__PURE__ */ t("div", { className: "ttw:w-full ttw:h-px ttw:bg-border" }),
|
|
95
|
-
/* @__PURE__ */ t(y, { recurrence: n, isCreatedFromRecurrence: !!(e?.recurrence_id && !w), openInvoiceDetails: p, handleTabChange: u })
|
|
96
|
-
] }),
|
|
97
|
-
/* @__PURE__ */ r(N, { type: "multiple", className: "ttw:w-full", children: [
|
|
98
|
-
d?.data?.length && d?.data?.length > 0 && /* @__PURE__ */ r(_, { value: "item-1", disabled: !d?.data?.length, className: "ttw:border-border", children: [
|
|
99
|
-
/* @__PURE__ */ t(C, { className: "ttw:hover:no-underline ttw:group", children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-3", children: [
|
|
100
|
-
/* @__PURE__ */ t("span", { className: "ttw:group-hover:underline", children: a._("Linked documents") }),
|
|
101
|
-
d?.data?.length && d?.data?.length > 0 && /* @__PURE__ */ t(F, { variant: "secondary", className: "ttw:h-5 ttw:min-w-5 ttw:rounded-full ttw:px-1 ttw:tabular-nums", children: d?.data?.length })
|
|
102
|
-
] }) }),
|
|
103
|
-
/* @__PURE__ */ t(D, { className: "ttw:flex ttw:flex-col ttw:gap-2", children: d?.data?.map((i) => /* @__PURE__ */ t(k, { type: i?.type, documentId: i?.document_id ?? "", issueDate: i?.status === "draft" ? i?.created_at ?? "" : i?.issue_date ?? "", totalAmount: i?.total_amount ?? 0, currency: i?.currency, status: i?.status }, i.id)) })
|
|
104
|
-
] }),
|
|
105
|
-
(e?.payment_reminder_id || e?.overdue_reminder_id) && /* @__PURE__ */ t(_, { value: "item-2", className: "ttw:border-border", disabled: !e?.payment_reminder_id && !e?.overdue_reminder_id, children: /* @__PURE__ */ t(b, { paymentReminderId: e?.payment_reminder_id, overdueReminderId: e?.overdue_reminder_id, invoiceId: e?.id, counterpartId: e?.counterpart_id }) })
|
|
106
|
-
] })
|
|
14
|
+
i18n: g
|
|
15
|
+
} = b(), {
|
|
16
|
+
formatCurrencyToDisplay: v
|
|
17
|
+
} = S(), {
|
|
18
|
+
data: i,
|
|
19
|
+
isLoading: C
|
|
20
|
+
} = c({
|
|
21
|
+
dimension: "status",
|
|
22
|
+
metric: "id",
|
|
23
|
+
aggregation_function: "count",
|
|
24
|
+
type: "invoice"
|
|
25
|
+
}), {
|
|
26
|
+
data: r,
|
|
27
|
+
isLoading: h
|
|
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))
|
|
107
56
|
] });
|
|
108
57
|
};
|
|
109
58
|
export {
|
|
110
|
-
|
|
59
|
+
M as InvoiceStatusCardsFilter
|
|
111
60
|
};
|