@tesouro/embedded-components-react 0.2.118 → 0.2.122
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 +8 -0
- package/dist/lib/ReceivablesWidget.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/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/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -24
- 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 +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +58 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +398 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +76 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +6 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +7 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +30 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +121 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +218 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +152 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +70 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +27 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +61 -215
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +93 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +9 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +72 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +55 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +80 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +28 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +40 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +7 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +114 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +188 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +111 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +133 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +19 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +183 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +9 -25
- 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 +20 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +50 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +4 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +88 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +37 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +6 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +41 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +48 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +201 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +423 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +22 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +27 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +20 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +21 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +20 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +27 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +109 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +67 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +11 -202
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +12 -427
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +100 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +13 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +36 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +33 -4
- 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 +66 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +346 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +13 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +13 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +14 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +37 -19
- 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 +34 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +14 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +17 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +243 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +11 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +18 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +54 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +50 -32
- 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 +30 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +45 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +145 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +108 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +44 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +5 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +71 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -73
- 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 +20 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +157 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +25 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +78 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +20 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +16 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +170 -62
- 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 +132 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +159 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +18 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +58 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +68 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +50 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +58 -59
- 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 +21 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +38 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +14 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +77 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +149 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +19 -57
- 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 +75 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +42 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +24 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +35 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +31 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +65 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +43 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +23 -12
- 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 +136 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +110 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +80 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +282 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +46 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +15 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +85 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +225 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +34 -243
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +9 -10
- 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 +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +10 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +6 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +94 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +16 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +81 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +17 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +46 -105
- 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 +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +124 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +19 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +28 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +38 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +63 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +93 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +112 -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 +84 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +40 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +343 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +302 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +100 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +154 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +264 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +24 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +18 -283
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +2 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +96 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +95 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +210 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +39 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +62 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +30 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +113 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +43 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +57 -2
- 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 +491 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +160 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +22 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +53 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +57 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +255 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +39 -4
- 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 +32 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +6 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +27 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +40 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +25 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +97 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +10 -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 +10 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +32 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +22 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +69 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +45 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +13 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +67 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +15 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +13 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +9 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +85 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +103 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +110 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +12 -21
- 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 +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +37 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +8 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +74 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +66 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +37 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +52 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +21 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +53 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +31 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +89 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +37 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +122 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +17 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -85
- 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 +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +16 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +73 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +11 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +30 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +5 -68
- 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 +127 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +54 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +41 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +14 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +70 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +85 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +54 -74
- 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 +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +55 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +29 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +53 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +40 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +46 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +70 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +91 -35
- 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 +16 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +21 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +39 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +16 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +49 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +56 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +32 -29
- 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 +40 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +35 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +15 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +81 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +52 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +53 -49
- 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 +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/package.json +1 -1
|
@@ -1,49 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "./index92.js";
|
|
7
|
-
import { useLingui as g, Trans as h } from "@lingui/react";
|
|
8
|
-
import "react-dom";
|
|
1
|
+
import { jsx as t, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as S, useMemo as p } from "react";
|
|
3
|
+
import { useFormContext as $, Controller as E } from "react-hook-form";
|
|
4
|
+
import { getCounterpartEmail as V, getCounterpartName as I } from "./index7.js";
|
|
5
|
+
import { useRootElements as j } from "./index92.js";
|
|
9
6
|
import "./index57.js";
|
|
10
|
-
import "
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
import { useCounterpartList as k } from "./index71.js";
|
|
8
|
+
import "react-hot-toast";
|
|
9
|
+
import { useLingui as z } from "@lingui/react";
|
|
10
|
+
import { Combobox as D, ComboboxInput as A, ComboboxContent as q, ComboboxList as B, ComboboxEmpty as G, ComboboxItem as K } from "./index90.js";
|
|
11
|
+
import { Field as M, FieldContent as O, FieldLabel as P, FieldDescription as R, FieldError as T } from "./index159.js";
|
|
12
|
+
import { InputGroupAddon as H } from "./index101.js";
|
|
13
|
+
import { Loader2 as J, Search as Q } from "lucide-react";
|
|
14
|
+
const me = ({
|
|
15
|
+
disabled: _,
|
|
16
|
+
canCreateCounterpart: i = !0
|
|
18
17
|
}) => {
|
|
19
18
|
const {
|
|
20
|
-
i18n:
|
|
21
|
-
} =
|
|
22
|
-
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
19
|
+
i18n: o
|
|
20
|
+
} = z(), {
|
|
21
|
+
root: g
|
|
22
|
+
} = j(), {
|
|
23
|
+
control: x,
|
|
24
|
+
setValue: s,
|
|
25
|
+
watch: v,
|
|
26
|
+
clearErrors: f
|
|
27
|
+
} = $(), {
|
|
28
|
+
data: d,
|
|
29
|
+
isLoading: L
|
|
30
|
+
} = k({
|
|
31
|
+
query: {
|
|
32
|
+
is_customer: !0
|
|
33
|
+
}
|
|
34
|
+
}), [h, C] = S(!1), m = v("counterpart_name") ?? "", c = p(() => d ? d.data.map((e) => ({
|
|
35
|
+
id: e.id,
|
|
36
|
+
name: I(e),
|
|
37
|
+
email: V(e)
|
|
38
|
+
})) : [], [d]), a = p(() => {
|
|
39
|
+
const e = m.toLowerCase().trim();
|
|
40
|
+
return e ? c.filter((n) => n.name.toLowerCase().includes(e) || n.email.toLowerCase().includes(e)) : c;
|
|
41
|
+
}, [c, m]), y = p(() => a.map((e) => e.id), [a]);
|
|
42
|
+
return /* @__PURE__ */ t(E, { name: "counterpart_id", control: x, render: ({
|
|
43
|
+
field: e,
|
|
44
|
+
fieldState: {
|
|
45
|
+
error: n
|
|
46
|
+
}
|
|
47
|
+
}) => {
|
|
48
|
+
const w = (r) => {
|
|
49
|
+
s("counterpart_name", ""), s("counterpart_email", ""), f(["counterpart_id", "counterpart_email"]), e.onChange(r ?? "");
|
|
50
|
+
}, N = (r, l) => {
|
|
51
|
+
if (l.reason !== "input-change") {
|
|
52
|
+
i || s("counterpart_name", "");
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
s("counterpart_name", r), e.value && e.onChange(""), i && r.trim() && f("counterpart_id");
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ t(M, { children: /* @__PURE__ */ u(O, { children: [
|
|
58
|
+
/* @__PURE__ */ t(P, { htmlFor: "counterpart_id", children: o._("Name") }),
|
|
59
|
+
/* @__PURE__ */ u(D, { value: e.value || null, onValueChange: w, inputValue: m, onInputValueChange: N, items: y, filter: () => !0, disabled: _, open: h, onOpenChange: C, children: [
|
|
60
|
+
/* @__PURE__ */ t(A, { id: "counterpart_id", placeholder: i ? o._("Search or type to add a customer") : o._("Search for a customer"), "aria-invalid": !!n, onKeyDown: (r) => {
|
|
61
|
+
if (r.key === "Enter") {
|
|
62
|
+
r.preventDefault();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (r.key === "Tab" && h) {
|
|
66
|
+
const l = m.toLowerCase().trim();
|
|
67
|
+
if (!l) return;
|
|
68
|
+
const b = a.find((F) => F.name.toLowerCase() === l) ?? (a.length === 1 ? a[0] : void 0);
|
|
69
|
+
b && (w(b.id), C(!1));
|
|
70
|
+
}
|
|
71
|
+
}, children: /* @__PURE__ */ t(H, { align: "inline-start", children: L ? /* @__PURE__ */ t(J, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ t(Q, { className: "ttw:size-4 ttw:text-muted-foreground" }) }) }),
|
|
72
|
+
/* @__PURE__ */ t(q, { container: g, children: /* @__PURE__ */ u(B, { children: [
|
|
73
|
+
/* @__PURE__ */ t(G, { children: i ? o._("No customers found - type to add a customer") : o._("No customers found") }),
|
|
74
|
+
a.map((r) => /* @__PURE__ */ t(K, { value: r.id, children: /* @__PURE__ */ u("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
75
|
+
/* @__PURE__ */ t("span", { children: r.name }),
|
|
76
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-muted-foreground", children: r.email })
|
|
77
|
+
] }) }, r.id))
|
|
78
|
+
] }) })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ t(R, { children: i ? o._("Search by customer name or email. New customers will be saved when saving the invoice.") : o._("Search by customer name or email.") }),
|
|
81
|
+
/* @__PURE__ */ t(T, { errors: n ? [n] : [] })
|
|
82
|
+
] }) });
|
|
83
|
+
} });
|
|
46
84
|
};
|
|
47
85
|
export {
|
|
48
|
-
|
|
86
|
+
me as CounterpartSelector
|
|
49
87
|
};
|
|
@@ -1,149 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { formatFileSize as et } from "./index358.js";
|
|
17
|
-
const yt = ({
|
|
18
|
-
receivableId: s,
|
|
19
|
-
counterpartId: $,
|
|
20
|
-
onSkip: T,
|
|
21
|
-
onSent: M,
|
|
22
|
-
isEditFlow: m = !1
|
|
23
|
-
}) => {
|
|
24
|
-
const {
|
|
25
|
-
i18n: t
|
|
26
|
-
} = L(), {
|
|
27
|
-
api: n,
|
|
28
|
-
queryClient: y,
|
|
29
|
-
entityId: b
|
|
30
|
-
} = H(), {
|
|
31
|
-
data: j
|
|
32
|
-
} = O(s, !!s), {
|
|
33
|
-
data: g
|
|
34
|
-
} = Y($), {
|
|
35
|
-
data: x
|
|
36
|
-
} = n.finops.getEntitiesIdPaymentMethods.useQuery({
|
|
37
|
-
path: {
|
|
38
|
-
entity_id: b
|
|
39
|
-
}
|
|
40
|
-
}), {
|
|
41
|
-
mutateAsync: z
|
|
42
|
-
} = n.finops.postReceivablesIdSend.useMutation(), {
|
|
43
|
-
mutateAsync: D
|
|
44
|
-
} = n.finops.postPaymentLinks.useMutation({}), r = J(g), l = K(g), N = j, w = N?.document_id, _ = N?.attachments ?? [], p = P(() => r ? w ? t._("Invoice #{documentId} for {name}", {
|
|
45
|
-
documentId: w,
|
|
46
|
-
name: r
|
|
47
|
-
}) : t._("Invoice for {name}", {
|
|
48
|
-
name: r
|
|
49
|
-
}) : "", [w, r, t]), [u, I] = d(""), [k, A] = d(!1), [f, F] = d(""), [c, S] = d(!1);
|
|
50
|
-
Q(() => {
|
|
51
|
-
!k && p && I(p);
|
|
52
|
-
}, [p, k]);
|
|
53
|
-
const R = async () => {
|
|
54
|
-
S(!0);
|
|
55
|
-
try {
|
|
56
|
-
const i = x ? x.data.filter(({
|
|
57
|
-
status: h,
|
|
58
|
-
direction: B
|
|
59
|
-
}) => h === "active" && B === "receive") : [];
|
|
60
|
-
i.length === 0 ? v.error(t._("You haven't onboarded for any payment method. Invoice is sent without a payment link.")) : await D({
|
|
61
|
-
recipient: {
|
|
62
|
-
id: b,
|
|
63
|
-
type: "entity"
|
|
64
|
-
},
|
|
65
|
-
payment_methods: i.map((h) => h.type),
|
|
66
|
-
object: {
|
|
67
|
-
id: s,
|
|
68
|
-
type: "receivable"
|
|
69
|
-
}
|
|
70
|
-
}), await z({
|
|
71
|
-
path: {
|
|
72
|
-
receivable_id: s
|
|
73
|
-
},
|
|
74
|
-
body: {
|
|
75
|
-
subject_text: u,
|
|
76
|
-
// Required by the API and gated by the Send button, so always set.
|
|
77
|
-
body_text: f,
|
|
78
|
-
recipients: l ? {
|
|
79
|
-
to: [l]
|
|
80
|
-
} : void 0
|
|
81
|
-
}
|
|
82
|
-
}), await Promise.all([n.finops.getReceivables.invalidateQueries(y), n.finops.getReceivablesId.invalidateQueries({
|
|
83
|
-
parameters: {
|
|
84
|
-
path: {
|
|
85
|
-
receivable_id: s
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}, y)]), v.success(t._("Invoice sent successfully")), M();
|
|
89
|
-
} catch {
|
|
90
|
-
v.error(t._("Failed to send invoice."));
|
|
91
|
-
} finally {
|
|
92
|
-
S(!1);
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
return /* @__PURE__ */ a(E, { children: [
|
|
96
|
-
/* @__PURE__ */ e(U, { className: "ttw:border-b ttw:border-border ttw:p-6", children: /* @__PURE__ */ a("div", { className: "ttw:flex ttw:items-center ttw:gap-4", children: [
|
|
97
|
-
/* @__PURE__ */ e("span", { className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50", children: m ? /* @__PURE__ */ e(q, { className: "ttw:size-6 ttw:text-green-700" }) : /* @__PURE__ */ e(G, { className: "ttw:size-6 ttw:text-green-700" }) }),
|
|
98
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
99
|
-
/* @__PURE__ */ e(V, { children: m ? t._("Send a copy to {name}?", {
|
|
100
|
-
name: r
|
|
101
|
-
}) : t._("Invoice issued. Send a copy to {name}?", {
|
|
102
|
-
name: r
|
|
103
|
-
}) }),
|
|
104
|
-
/* @__PURE__ */ e(W, { className: "ttw:text-xs", children: t._("The customer will be emailed a copy of the invoice with payment instructions.") })
|
|
105
|
-
] })
|
|
106
|
-
] }) }),
|
|
107
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-6", children: [
|
|
108
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:items-center ttw:gap-4", children: [
|
|
109
|
-
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", className: "ttw:w-16 ttw:shrink-0", children: t._("To") }),
|
|
110
|
-
/* @__PURE__ */ a(o, { variant: "body2", children: [
|
|
111
|
-
r,
|
|
112
|
-
l ? ` <${l}>` : ""
|
|
113
|
-
] })
|
|
114
|
-
] }),
|
|
115
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:items-center ttw:gap-4", children: [
|
|
116
|
-
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", className: "ttw:w-16 ttw:shrink-0", children: t._("Subject") }),
|
|
117
|
-
/* @__PURE__ */ e(Z, { className: "ttw:flex-1", value: u, onChange: (i) => {
|
|
118
|
-
I(i.target.value), A(!0);
|
|
119
|
-
}, disabled: c })
|
|
120
|
-
] }),
|
|
121
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:items-start ttw:gap-4", children: [
|
|
122
|
-
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", className: "ttw:w-16 ttw:shrink-0 ttw:pt-2", children: t._("Message") }),
|
|
123
|
-
/* @__PURE__ */ e(tt, { className: "ttw:flex-1", value: f, onChange: (i) => F(i.target.value), placeholder: t._("e.g., Thank you for your business"), disabled: c })
|
|
124
|
-
] }),
|
|
125
|
-
_.length > 0 && /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pl-20", children: [
|
|
126
|
-
/* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
127
|
-
/* @__PURE__ */ e(o, { variant: "body2", color: "muted", children: t._("Attachments") }),
|
|
128
|
-
/* @__PURE__ */ e(o, { variant: "caption", color: "muted", children: t._("To change what files are attached to the email, you will need to update the invoice.") })
|
|
129
|
-
] }),
|
|
130
|
-
/* @__PURE__ */ e("ul", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: _.map((i) => /* @__PURE__ */ a("li", { className: "ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium", children: [
|
|
131
|
-
i.name,
|
|
132
|
-
" ",
|
|
133
|
-
/* @__PURE__ */ a("span", { className: "ttw:text-muted-foreground", children: [
|
|
134
|
-
"(",
|
|
135
|
-
et(i.size),
|
|
136
|
-
")"
|
|
137
|
-
] })
|
|
138
|
-
] }, i.id)) })
|
|
139
|
-
] })
|
|
140
|
-
] }),
|
|
141
|
-
/* @__PURE__ */ a(X, { className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6", children: [
|
|
142
|
-
/* @__PURE__ */ e(C, { type: "button", variant: "outline", className: "ttw:flex-1 ttw:border-border", disabled: c, onClick: T, children: m ? t._("Cancel") : t._("Skip") }),
|
|
143
|
-
/* @__PURE__ */ e(C, { type: "button", variant: "default", className: "ttw:flex-1", disabled: c || !u.trim() || !f.trim(), onClick: R, children: t._("Send invoice") })
|
|
144
|
-
] })
|
|
145
|
-
] });
|
|
146
|
-
};
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "./index100.js";
|
|
3
|
+
import * as r from "@radix-ui/react-avatar";
|
|
4
|
+
function n({
|
|
5
|
+
className: t,
|
|
6
|
+
...a
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e(r.Root, { "data-slot": "avatar", className: l("ttw:relative ttw:flex ttw:size-8 ttw:shrink-0 ttw:overflow-hidden ttw:rounded-full", t), ...a });
|
|
9
|
+
}
|
|
10
|
+
function f({
|
|
11
|
+
className: t,
|
|
12
|
+
...a
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ e(r.Fallback, { "data-slot": "avatar-fallback", className: l("ttw:bg-muted ttw:flex ttw:size-full ttw:items-center ttw:justify-center ttw:rounded-full", t), ...a });
|
|
15
|
+
}
|
|
147
16
|
export {
|
|
148
|
-
|
|
17
|
+
n as Avatar,
|
|
18
|
+
f as AvatarFallback
|
|
149
19
|
};
|
|
@@ -1,111 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { toast as g } from "react-hot-toast";
|
|
5
|
-
import { Check as T } from "lucide-react";
|
|
6
|
-
import { useMoniteContext as q } from "./index57.js";
|
|
7
|
-
import { useCurrencies as A } from "./index58.js";
|
|
8
|
-
import "./index92.js";
|
|
9
|
-
import "react-dom";
|
|
10
|
-
import "@mui/x-data-grid";
|
|
11
|
-
import { useGetMeasureUnits as L } from "./index210.js";
|
|
12
|
-
import { DialogHeader as U, DialogTitle as B, DialogFooter as G } from "./index208.js";
|
|
13
|
-
import { Button as p } from "./index84.js";
|
|
14
|
-
import { Checkbox as x } from "./index354.js";
|
|
15
|
-
import { Separator as H } from "./index156.js";
|
|
16
|
-
import { Typography as c } from "./index85.js";
|
|
17
|
-
const st = ({
|
|
18
|
-
inlineLineItems: u,
|
|
19
|
-
title: _,
|
|
20
|
-
onClose: w
|
|
21
|
-
}) => {
|
|
1
|
+
import { useEffect as m, useMemo as f } from "react";
|
|
2
|
+
import { useMoniteContext as k } from "./index57.js";
|
|
3
|
+
const p = 100, h = (s, g = !0) => {
|
|
22
4
|
const {
|
|
23
|
-
|
|
24
|
-
} =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
formatCurrencyToDisplay: N
|
|
29
|
-
} = A(), {
|
|
30
|
-
data: C
|
|
31
|
-
} = L(), {
|
|
32
|
-
mutateAsync: S
|
|
33
|
-
} = f.finops.postProducts.useMutation(), s = I(() => u.map((t, e) => ({
|
|
34
|
-
key: t.id ?? String(e),
|
|
35
|
-
lineItem: t
|
|
36
|
-
})), [u]), [n, d] = b(() => new Set(s.map((t) => t.key))), [l, h] = b(!1), D = s.length > 0 && n.size === s.length, m = n.size > 0, y = () => d(new Set(s.map((t) => t.key))), v = () => d(/* @__PURE__ */ new Set()), P = (t) => d((e) => {
|
|
37
|
-
const o = new Set(e);
|
|
38
|
-
return o.has(t) ? o.delete(t) : o.add(t), o;
|
|
39
|
-
}), M = (t) => {
|
|
40
|
-
const e = N(t.product.price.value, t.product.price.currency) ?? "", o = t.product.measure_unit_id ? C?.data?.find(($) => $.id === t.product.measure_unit_id)?.name : void 0;
|
|
41
|
-
return o ? `${e} ${o}` : e;
|
|
42
|
-
}, j = async () => {
|
|
43
|
-
const t = s.filter((e) => n.has(e.key));
|
|
44
|
-
if (t.length) {
|
|
45
|
-
h(!0);
|
|
46
|
-
try {
|
|
47
|
-
await Promise.all(t.map(({
|
|
48
|
-
lineItem: e
|
|
49
|
-
}) => S({
|
|
50
|
-
body: {
|
|
51
|
-
name: e.product.name,
|
|
52
|
-
type: "product",
|
|
53
|
-
price: {
|
|
54
|
-
value: e.product.price.value,
|
|
55
|
-
currency: e.product.price?.currency ?? "USD"
|
|
56
|
-
},
|
|
57
|
-
...e.product.measure_unit_id ? {
|
|
58
|
-
measure_unit_id: e.product.measure_unit_id
|
|
59
|
-
} : {},
|
|
60
|
-
...e.product.description ? {
|
|
61
|
-
description: e.product.description
|
|
62
|
-
} : {}
|
|
63
|
-
}
|
|
64
|
-
}))), await f.finops.getProducts.invalidateQueries(k), g.success(a._("Products and services saved.")), w();
|
|
65
|
-
} catch {
|
|
66
|
-
g.error(a._("Failed to save products and services."));
|
|
67
|
-
} finally {
|
|
68
|
-
h(!1);
|
|
69
|
-
}
|
|
5
|
+
api: u
|
|
6
|
+
} = k(), e = u.embeddedBanking.getBankAccounts.useInfiniteQuery({
|
|
7
|
+
query: {
|
|
8
|
+
...s,
|
|
9
|
+
limit: p
|
|
70
10
|
}
|
|
11
|
+
}, {
|
|
12
|
+
initialPageParam: {
|
|
13
|
+
query: {
|
|
14
|
+
pagination_token: void 0
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
getNextPageParam: (a, P, x, d) => {
|
|
18
|
+
const t = a.nextPaginationToken ?? void 0;
|
|
19
|
+
if (!(!t || d.some((c) => c?.query?.pagination_token === t)))
|
|
20
|
+
return {
|
|
21
|
+
query: {
|
|
22
|
+
pagination_token: t
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
enabled: g
|
|
27
|
+
}), {
|
|
28
|
+
hasNextPage: n,
|
|
29
|
+
isFetchingNextPage: i,
|
|
30
|
+
isError: o,
|
|
31
|
+
fetchNextPage: r
|
|
32
|
+
} = e;
|
|
33
|
+
return m(() => {
|
|
34
|
+
n && !i && !o && r();
|
|
35
|
+
}, [n, i, o, r]), {
|
|
36
|
+
data: f(() => {
|
|
37
|
+
if (e.data)
|
|
38
|
+
return {
|
|
39
|
+
data: e.data.pages.flatMap((a) => a.data ?? []),
|
|
40
|
+
nextPaginationToken: null,
|
|
41
|
+
prevPaginationToken: null
|
|
42
|
+
};
|
|
43
|
+
}, [e.data]),
|
|
44
|
+
isLoading: e.isLoading,
|
|
45
|
+
isFetching: e.isFetching,
|
|
46
|
+
isError: e.isError,
|
|
47
|
+
error: e.error
|
|
71
48
|
};
|
|
72
|
-
return /* @__PURE__ */ i(z, { children: [
|
|
73
|
-
/* @__PURE__ */ r(U, { className: "ttw:border-b ttw:border-border ttw:p-6", children: /* @__PURE__ */ i(B, { className: "ttw:flex ttw:flex-row ttw:items-center ttw:gap-4", children: [
|
|
74
|
-
/* @__PURE__ */ r("span", { className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50", children: /* @__PURE__ */ r(T, { className: "ttw:size-6 ttw:text-green-700" }) }),
|
|
75
|
-
_
|
|
76
|
-
] }) }),
|
|
77
|
-
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-6", children: [
|
|
78
|
-
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-1.5", children: [
|
|
79
|
-
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
80
|
-
/* @__PURE__ */ r(c, { variant: "h4", children: a._("Do you want to also save these items?") }),
|
|
81
|
-
/* @__PURE__ */ r(c, { variant: "caption", color: "muted", children: a._("Saved items can be quickly added to future invoices.") })
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ r(p, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", disabled: l, onClick: m ? v : y, children: m ? a._("Deselect all") : a._("Select all") })
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ i("ul", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [
|
|
86
|
-
/* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
|
|
87
|
-
/* @__PURE__ */ r(x, { checked: D, onCheckedChange: (t) => t ? y() : v(), disabled: l || s.length === 0, "aria-label": a._("Products and services") }),
|
|
88
|
-
/* @__PURE__ */ r(c, { variant: "body2", className: "ttw:font-semibold", children: a._("Products and services") })
|
|
89
|
-
] }),
|
|
90
|
-
/* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(H, {}) }),
|
|
91
|
-
s.map(({
|
|
92
|
-
key: t,
|
|
93
|
-
lineItem: e
|
|
94
|
-
}) => /* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-start ttw:gap-2", children: [
|
|
95
|
-
/* @__PURE__ */ r(x, { checked: n.has(t), onCheckedChange: () => P(t), disabled: l, "aria-label": e.product.name }),
|
|
96
|
-
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
|
|
97
|
-
/* @__PURE__ */ r(c, { variant: "caption", children: e.product.name }),
|
|
98
|
-
/* @__PURE__ */ r(c, { variant: "caption", color: "muted", children: M(e) })
|
|
99
|
-
] })
|
|
100
|
-
] }, t))
|
|
101
|
-
] })
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ i(G, { className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6", children: [
|
|
104
|
-
/* @__PURE__ */ r(p, { type: "button", variant: "outline", className: "ttw:flex-1 ttw:border-border", disabled: l, onClick: w, children: a._("Skip") }),
|
|
105
|
-
/* @__PURE__ */ r(p, { type: "button", variant: "default", className: "ttw:flex-1", disabled: !m || l, onClick: j, children: a._("Save selected items") })
|
|
106
|
-
] })
|
|
107
|
-
] });
|
|
108
49
|
};
|
|
109
50
|
export {
|
|
110
|
-
|
|
51
|
+
h as useGetEmbeddedBankAccounts
|
|
111
52
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as p } from "./
|
|
2
|
+
import { getAPIErrorMessage as p } from "./index123.js";
|
|
3
3
|
import { useLingui as d } from "@lingui/react";
|
|
4
4
|
import { toast as s } from "react-hot-toast";
|
|
5
5
|
const b = (t, r) => {
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import "@tanstack/react-query";
|
|
4
|
-
import "date-fns";
|
|
5
|
-
import { useEntityUserById as m } from "./index75.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import "react-hot-toast";
|
|
8
|
-
import "@lingui/react";
|
|
9
|
-
import { Skeleton as e } from "@mui/material";
|
|
10
|
-
const u = ({
|
|
11
|
-
id: r
|
|
12
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as s } from "./index57.js";
|
|
2
|
+
const r = (e, t = !0) => {
|
|
13
3
|
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
api: n
|
|
5
|
+
} = s();
|
|
6
|
+
return n.finops.getBankDetails.useQuery({
|
|
7
|
+
query: e
|
|
8
|
+
}, {
|
|
9
|
+
enabled: t
|
|
10
|
+
});
|
|
20
11
|
};
|
|
21
12
|
export {
|
|
22
|
-
|
|
13
|
+
r as useGetEntityBankAccounts
|
|
23
14
|
};
|
|
@@ -1,45 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { MoniteScopedProviders as p } from "./index83.js";
|
|
5
|
-
import { ConfirmationModal as u } from "./index209.js";
|
|
6
|
-
import { useLingui as f } from "@lingui/react";
|
|
7
|
-
const D = (e) => /* @__PURE__ */ a(p, { children: /* @__PURE__ */ a(C, { ...e }) }), C = ({
|
|
8
|
-
tag: e,
|
|
9
|
-
onClose: i,
|
|
10
|
-
onDelete: m,
|
|
11
|
-
modalOpened: d
|
|
12
|
-
}) => {
|
|
1
|
+
import { useEffect as m, useMemo as p } from "react";
|
|
2
|
+
import { useMoniteContext as k } from "./index57.js";
|
|
3
|
+
const l = 100, h = (s, g = !0) => {
|
|
13
4
|
const {
|
|
14
|
-
|
|
15
|
-
} =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
path: {
|
|
20
|
-
tag_id: n ?? ""
|
|
5
|
+
api: u
|
|
6
|
+
} = k(), e = u.embeddedBanking.getExternalBankAccounts.useInfiniteQuery({
|
|
7
|
+
query: {
|
|
8
|
+
...s,
|
|
9
|
+
limit: l
|
|
21
10
|
}
|
|
22
11
|
}, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
tag_id: n
|
|
27
|
-
}
|
|
12
|
+
initialPageParam: {
|
|
13
|
+
query: {
|
|
14
|
+
pagination_token: void 0
|
|
28
15
|
}
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
16
|
+
},
|
|
17
|
+
getNextPageParam: (a, x, P, d) => {
|
|
18
|
+
const t = a.nextPaginationToken ?? void 0;
|
|
19
|
+
if (!(!t || d.some((c) => c?.query?.pagination_token === t)))
|
|
20
|
+
return {
|
|
21
|
+
query: {
|
|
22
|
+
pagination_token: t
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
enabled: g
|
|
27
|
+
}), {
|
|
28
|
+
hasNextPage: n,
|
|
29
|
+
isFetchingNextPage: i,
|
|
30
|
+
isError: r,
|
|
31
|
+
fetchNextPage: o
|
|
32
|
+
} = e;
|
|
33
|
+
return m(() => {
|
|
34
|
+
n && !i && !r && o();
|
|
35
|
+
}, [n, i, r, o]), {
|
|
36
|
+
data: p(() => {
|
|
37
|
+
if (e.data)
|
|
38
|
+
return {
|
|
39
|
+
data: e.data.pages.flatMap((a) => a.data ?? []),
|
|
40
|
+
nextPaginationToken: null,
|
|
41
|
+
prevPaginationToken: null
|
|
42
|
+
};
|
|
43
|
+
}, [e.data]),
|
|
44
|
+
isLoading: e.isLoading,
|
|
45
|
+
isFetching: e.isFetching,
|
|
46
|
+
isError: e.isError,
|
|
47
|
+
error: e.error
|
|
38
48
|
};
|
|
39
|
-
return /* @__PURE__ */ a(u, { open: d, title: o._("Delete “{tagName}” tag?", {
|
|
40
|
-
tagName: e.name
|
|
41
|
-
}), message: o._("This action can’t be undone."), confirmLabel: o._("Delete"), cancelLabel: o._("Cancel"), onClose: i, onConfirm: l, isLoading: r.isPending });
|
|
42
49
|
};
|
|
43
50
|
export {
|
|
44
|
-
|
|
51
|
+
h as useGetExternalBankAccounts
|
|
45
52
|
};
|
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as t, jsxs as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as m } from "@lingui/react";
|
|
3
|
+
import { twMerge as d } from "tailwind-merge";
|
|
4
|
+
const p = ({
|
|
5
|
+
isAllStatus: s,
|
|
6
|
+
data: w,
|
|
7
|
+
amountOfItems: i,
|
|
8
|
+
selected: l,
|
|
9
|
+
onClick: n,
|
|
10
|
+
formatAmount: a,
|
|
11
|
+
statusChip: r,
|
|
12
|
+
allItemsText: o
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
i18n: c
|
|
16
|
+
} = m();
|
|
17
|
+
return /* @__PURE__ */ t("button", { onClick: n, type: "button", className: d("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", l ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"), children: s ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
18
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-xs ttw:font-medium ttw:text-zinc-950", children: o ?? c._("All items") }),
|
|
19
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums", children: w })
|
|
20
|
+
] }) : /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
21
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
22
|
+
r,
|
|
23
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:text-zinc-950 ttw:tabular-nums", children: i ?? 0 })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums ttw:overflow-hidden ttw:whitespace-nowrap ttw:text-ellipsis", children: a(w) })
|
|
26
|
+
] }) });
|
|
27
|
+
};
|
|
13
28
|
export {
|
|
14
|
-
|
|
15
|
-
a as tagCategories
|
|
29
|
+
p as StatusCard
|
|
16
30
|
};
|