@tesouro/embedded-components-react 0.2.23 → 0.2.24
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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +24 -24
- 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/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/index110.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +23 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +34 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +98 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +57 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +46 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +75 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +55 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +196 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +22 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +77 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +27 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +41 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +7 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +250 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +177 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +12 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +116 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +81 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +109 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +102 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +55 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +59 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +87 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +75 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +47 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +6 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +15 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +33 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +114 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +70 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +186 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +29 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +123 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +56 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +23 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +25 -246
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +18 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +19 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +4 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +5 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +6 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +41 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +368 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +21 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +20 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +17 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +13 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +15 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +90 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +33 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +27 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +118 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +49 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +47 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +38 -362
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +11 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +149 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +70 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +36 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +50 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +54 -183
- 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 +343 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +19 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +31 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +37 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -21
- 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 +12 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +24 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +38 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +52 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +30 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +43 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +142 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +86 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +23 -30
- 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 +183 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +24 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +2 -491
- 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 +91 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +96 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +191 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +41 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +75 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +72 -344
- 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 +39 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +339 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +298 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +99 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +160 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +264 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +24 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +19 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +37 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +1 -1
- 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 +23 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +30 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +6 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +96 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +21 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +34 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +55 -74
- 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 +13 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +89 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +120 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +16 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +38 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +40 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +62 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +22 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +28 -34
- 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 +57 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +18 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +127 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +44 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +38 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +56 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +111 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +21 -42
- 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 +41 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +56 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +62 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +44 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +22 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +189 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +108 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +81 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +289 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +46 -21
- 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 +15 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +86 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +217 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +158 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +28 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +149 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +48 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +47 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +108 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +12 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +63 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +18 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +20 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +17 -288
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +162 -40
- 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 +134 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +156 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +10 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +61 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +51 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +6 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +8 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +60 -10
- 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 +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +60 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +14 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +483 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +166 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +27 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +96 -14
- 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 +110 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +85 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +30 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +35 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +28 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +15 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +72 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +94 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +35 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +255 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +31 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +4 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +126 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +96 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +37 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +30 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +105 -16
- 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 +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +112 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +59 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +14 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +10 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +18 -16
- 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 +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +32 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +66 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +45 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +24 -10
- 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 +35 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +120 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +73 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -17
- 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 +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +11 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +72 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +67 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +33 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +2 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +67 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +53 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +34 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +68 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +57 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +38 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +65 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +21 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +18 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +13 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +32 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +85 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +22 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +23 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +37 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +5 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +33 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +50 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +17 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +56 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +30 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +95 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +15 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +75 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +21 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +9 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +57 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +68 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +40 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +35 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +14 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +36 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +30 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +17 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +81 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +49 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +39 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +73 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +86 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +53 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +54 -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 +51 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +47 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +36 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +51 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +55 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +7 -7
- 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 +2 -2
- 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 +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +2 -2
- 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/index81.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 +10 -10
- 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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +24 -24
- package/package.json +1 -1
|
@@ -1,194 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useMoniteContext as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
label: "New"
|
|
11
|
-
}, {
|
|
12
|
-
value: "pending_approval",
|
|
13
|
-
label: "Pending approval"
|
|
14
|
-
}, {
|
|
15
|
-
value: "ready_to_pay",
|
|
16
|
-
label: "Ready to pay"
|
|
17
|
-
}, {
|
|
18
|
-
value: "paid",
|
|
19
|
-
label: "Paid"
|
|
20
|
-
}, {
|
|
21
|
-
value: "cancelled",
|
|
22
|
-
label: "Cancelled"
|
|
23
|
-
}, {
|
|
24
|
-
value: "rejected",
|
|
25
|
-
label: "Rejected"
|
|
26
|
-
}], w = {
|
|
27
|
-
draft: ["draft", "new"],
|
|
28
|
-
pending_approval: ["approve_in_progress"],
|
|
29
|
-
ready_to_pay: ["waiting_to_be_paid", "partially_paid"],
|
|
30
|
-
paid: ["paid"],
|
|
31
|
-
cancelled: ["canceled"],
|
|
32
|
-
rejected: ["rejected"]
|
|
33
|
-
}, x = ["draft", "new", "approve_in_progress", "rejected", "waiting_to_be_paid", "partially_paid", "paid"];
|
|
34
|
-
function v() {
|
|
35
|
-
return {
|
|
36
|
-
search: "",
|
|
37
|
-
activeDateField: "due_date",
|
|
38
|
-
datePreset: void 0,
|
|
39
|
-
dateFrom: void 0,
|
|
40
|
-
dateTo: void 0,
|
|
41
|
-
status: [],
|
|
42
|
-
amountMode: "any",
|
|
43
|
-
amountMin: "",
|
|
44
|
-
amountMax: "",
|
|
45
|
-
vendorName: "",
|
|
46
|
-
hasFile: void 0
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function V() {
|
|
50
|
-
const [e, s] = C(v), {
|
|
51
|
-
formatToMinorUnits: u
|
|
52
|
-
} = k(), {
|
|
53
|
-
componentSettings: h
|
|
54
|
-
} = D(), c = h.onboarding.allowedCurrencies?.[0] ?? "USD", F = l(() => {
|
|
55
|
-
const a = {}, t = e.activeDateField;
|
|
56
|
-
if (e.dateFrom && (a[`${t}__gte`] = m(e.dateFrom, {
|
|
57
|
-
representation: "date"
|
|
58
|
-
})), e.dateTo && (a[`${t}__lte`] = m(e.dateTo, {
|
|
59
|
-
representation: "date"
|
|
60
|
-
})), e.status.length ? a.status__in = e.status.flatMap((o) => w[o] ?? [o]) : a.status__in = x, e.vendorName && (a.counterpart_name__icontains = e.vendorName), e.hasFile !== void 0 && (a.has_file = e.hasFile), e.search && (a.search_text = e.search), e.amountMode !== "any") {
|
|
61
|
-
const o = parseFloat(e.amountMin), r = parseFloat(e.amountMax), i = (n) => u(n, c) ?? $(n, 2);
|
|
62
|
-
if (e.amountMode === "exact") {
|
|
63
|
-
if (!isNaN(o)) {
|
|
64
|
-
const n = i(o);
|
|
65
|
-
a.total_amount__gte = n, a.total_amount__lte = n;
|
|
66
|
-
}
|
|
67
|
-
} else
|
|
68
|
-
isNaN(o) || (a.total_amount__gte = i(o)), isNaN(r) || (a.total_amount__lte = i(r));
|
|
69
|
-
}
|
|
70
|
-
return a;
|
|
71
|
-
}, [e, c, u]), f = l(() => {
|
|
72
|
-
let a = 0;
|
|
73
|
-
return e.status.length && a++, e.vendorName && a++, e.hasFile !== void 0 && a++, e.amountMode !== "any" && a++, e.search && a++, a;
|
|
74
|
-
}, [e]), b = l(() => {
|
|
75
|
-
const a = [];
|
|
76
|
-
if (e.dateFrom || e.dateTo) {
|
|
77
|
-
const t = (e.datePreset ? p.find((r) => r.value === e.datePreset)?.label : void 0) ?? T(e.dateFrom, e.dateTo), o = e.activeDateField === "due_date" ? "Due date" : e.activeDateField === "created_at" ? "Created on" : "Issue date";
|
|
78
|
-
a.push({
|
|
79
|
-
key: "date",
|
|
80
|
-
label: `${o}: ${t}`
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
if (e.status.length) {
|
|
84
|
-
const t = e.status.map((o) => _.find((r) => r.value === o)?.label ?? o);
|
|
85
|
-
a.push({
|
|
86
|
-
key: "status",
|
|
87
|
-
label: `Status: ${N(t)}`
|
|
88
|
-
});
|
|
1
|
+
import { useEffect as m, useMemo as p } from "react";
|
|
2
|
+
import { useMoniteContext as k } from "./index59.js";
|
|
3
|
+
const l = 100, h = (s, g = !0) => {
|
|
4
|
+
const {
|
|
5
|
+
api: u
|
|
6
|
+
} = k(), e = u.embeddedBanking.getExternalBankAccounts.useInfiniteQuery({
|
|
7
|
+
query: {
|
|
8
|
+
...s,
|
|
9
|
+
limit: l
|
|
89
10
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
key: "attachment",
|
|
95
|
-
label: "Has attachment"
|
|
96
|
-
}), e.hasFile === !1 && a.push({
|
|
97
|
-
key: "attachment",
|
|
98
|
-
label: "No attachment"
|
|
99
|
-
}), e.amountMode !== "any" && a.push({
|
|
100
|
-
key: "amount",
|
|
101
|
-
label: "Amount"
|
|
102
|
-
}), e.search && a.push({
|
|
103
|
-
key: "search",
|
|
104
|
-
label: `Search: ${e.search}`
|
|
105
|
-
}), a;
|
|
106
|
-
}, [e]), y = d((a) => {
|
|
107
|
-
const {
|
|
108
|
-
from: t,
|
|
109
|
-
to: o
|
|
110
|
-
} = A(a);
|
|
111
|
-
s((r) => ({
|
|
112
|
-
...r,
|
|
113
|
-
datePreset: a,
|
|
114
|
-
dateFrom: t,
|
|
115
|
-
dateTo: o
|
|
116
|
-
}));
|
|
117
|
-
}, []), g = d((a, t) => {
|
|
118
|
-
s((o) => ({
|
|
119
|
-
...o,
|
|
120
|
-
datePreset: void 0,
|
|
121
|
-
dateFrom: a,
|
|
122
|
-
dateTo: t
|
|
123
|
-
}));
|
|
124
|
-
}, []), M = d((a) => {
|
|
125
|
-
s((t) => ({
|
|
126
|
-
...t,
|
|
127
|
-
activeDateField: a
|
|
128
|
-
}));
|
|
129
|
-
}, []), P = d((a) => {
|
|
130
|
-
switch (a) {
|
|
131
|
-
case "date": {
|
|
132
|
-
s((t) => ({
|
|
133
|
-
...t,
|
|
134
|
-
datePreset: void 0,
|
|
135
|
-
dateFrom: void 0,
|
|
136
|
-
dateTo: void 0,
|
|
137
|
-
activeDateField: "due_date"
|
|
138
|
-
}));
|
|
139
|
-
break;
|
|
11
|
+
}, {
|
|
12
|
+
initialPageParam: {
|
|
13
|
+
query: {
|
|
14
|
+
pagination_token: void 0
|
|
140
15
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
}, []), S = d(() => s(v()), []);
|
|
175
|
-
return {
|
|
176
|
-
state: e,
|
|
177
|
-
setState: s,
|
|
178
|
-
queryParams: F,
|
|
179
|
-
activeFilterCount: f,
|
|
180
|
-
activeChips: b,
|
|
181
|
-
datePresets: p,
|
|
182
|
-
statusOptions: _,
|
|
183
|
-
setDatePreset: y,
|
|
184
|
-
setDateRange: g,
|
|
185
|
-
setActiveDateField: M,
|
|
186
|
-
clearFilter: P,
|
|
187
|
-
clearAll: S
|
|
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
|
|
188
48
|
};
|
|
189
|
-
}
|
|
49
|
+
};
|
|
190
50
|
export {
|
|
191
|
-
|
|
192
|
-
_ as AP_STATUS_OPTIONS,
|
|
193
|
-
V as usePayablesFilter
|
|
51
|
+
h as useGetExternalBankAccounts
|
|
194
52
|
};
|
|
@@ -1,30 +1,113 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as e, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as F, useCallback as k, useMemo as w } from "react";
|
|
3
|
+
import { useFormContext as T, Controller as $ } from "react-hook-form";
|
|
4
|
+
import { getCounterpartName as H, prepareAddressView as J } from "./index7.js";
|
|
5
|
+
import { useRootElements as K } from "./index94.js";
|
|
6
|
+
import "./index59.js";
|
|
7
|
+
import { useCounterpartList as W } from "./index73.js";
|
|
8
|
+
import "react-hot-toast";
|
|
9
|
+
import { useLingui as X } from "@lingui/react";
|
|
10
|
+
import { Combobox as Y, ComboboxInput as Z, ComboboxContent as tt, ComboboxList as et, ComboboxItem as C, ComboboxSeparator as rt } from "./index92.js";
|
|
11
|
+
import { Button as ot } from "./index86.js";
|
|
12
|
+
import { Field as at, FieldContent as it, FieldLabel as nt, FieldError as st } from "./index211.js";
|
|
13
|
+
import { InputGroupAddon as lt } from "./index103.js";
|
|
14
|
+
import { cn as dt } from "./index102.js";
|
|
15
|
+
import { Loader2 as ut, Plus as mt } from "lucide-react";
|
|
16
|
+
const h = "__create-new__", Vt = ({
|
|
17
|
+
setIsCreateCounterpartOpened: f,
|
|
18
|
+
setIsViewCounterpartOpened: b,
|
|
19
|
+
isSimplified: a = !1,
|
|
20
|
+
shouldDisableFormUpdate: x = !1,
|
|
21
|
+
disabled: S,
|
|
22
|
+
currentCounterpartId: z,
|
|
23
|
+
handleUpdateCounterpartId: v,
|
|
24
|
+
counterpartAddresses: I
|
|
13
25
|
}) => {
|
|
14
26
|
const {
|
|
15
|
-
i18n:
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
i18n: u
|
|
28
|
+
} = X(), {
|
|
29
|
+
root: A
|
|
30
|
+
} = K(), {
|
|
31
|
+
control: P,
|
|
32
|
+
watch: j
|
|
33
|
+
} = T(), {
|
|
34
|
+
data: g,
|
|
35
|
+
isLoading: D
|
|
36
|
+
} = W({
|
|
37
|
+
query: {
|
|
38
|
+
is_customer: !0
|
|
39
|
+
}
|
|
40
|
+
}), [m, _] = F(""), [c, y] = F(!1), M = k(() => {
|
|
41
|
+
!a && f && f(!0);
|
|
42
|
+
}, [a, f]), O = k(() => {
|
|
43
|
+
!a && b && b(!0);
|
|
44
|
+
}, [a, b]), q = j("counterpart_id"), p = x ? z : q, i = w(() => g ? g.data.map((r) => ({
|
|
45
|
+
id: r.id,
|
|
46
|
+
label: H(r)
|
|
47
|
+
})) : [], [g]), o = w(() => i.find((r) => r.id === p) ?? null, [i, p]), B = o ? o.label : m, {
|
|
48
|
+
matchingItems: N,
|
|
49
|
+
nonMatchingItems: L
|
|
50
|
+
} = w(() => {
|
|
51
|
+
const r = o ? "" : m.toLowerCase().trim();
|
|
52
|
+
if (!r)
|
|
53
|
+
return {
|
|
54
|
+
matchingItems: i,
|
|
55
|
+
nonMatchingItems: []
|
|
56
|
+
};
|
|
57
|
+
const n = [], l = [];
|
|
58
|
+
for (const d of i)
|
|
59
|
+
d.label.toLowerCase().includes(r) ? n.push(d) : l.push(d);
|
|
60
|
+
return {
|
|
61
|
+
matchingItems: n,
|
|
62
|
+
nonMatchingItems: l
|
|
63
|
+
};
|
|
64
|
+
}, [m, o, i]), U = w(() => [...a ? [] : [h], ...i.map((r) => r.id)], [i, a]), E = o ? Array.from(o.label)[0]?.toUpperCase() ?? "?" : "+", V = I?.data?.[0] ? J({
|
|
65
|
+
address: I.data[0]
|
|
66
|
+
}) : "", G = !c && !!o && !!V && !a;
|
|
67
|
+
return /* @__PURE__ */ e($, { name: "counterpart_id", control: P, render: ({
|
|
68
|
+
field: r,
|
|
69
|
+
fieldState: {
|
|
70
|
+
error: n
|
|
71
|
+
}
|
|
72
|
+
}) => {
|
|
73
|
+
const l = (t) => {
|
|
74
|
+
x && v ? v(t) : r.onChange(t);
|
|
75
|
+
}, d = (t) => {
|
|
76
|
+
if (t === h) {
|
|
77
|
+
M();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
_(""), l(t ?? "");
|
|
81
|
+
}, R = (t) => {
|
|
82
|
+
t !== h && (i.some((Q) => Q.id === t) || (_(t), p && l("")));
|
|
83
|
+
};
|
|
84
|
+
return /* @__PURE__ */ e(at, { children: /* @__PURE__ */ s(it, { children: [
|
|
85
|
+
/* @__PURE__ */ e(nt, { htmlFor: "counterpart_id", required: !0, children: u._("Customer") }),
|
|
86
|
+
/* @__PURE__ */ s(Y, { value: p ?? null, onValueChange: d, inputValue: B, onInputValueChange: R, items: U, filter: () => !0, disabled: S, open: c, onOpenChange: (t) => y(t), children: [
|
|
87
|
+
/* @__PURE__ */ s("div", { className: dt("ttw:flex ttw:flex-col ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:has-[[data-slot=input-group-control]:focus-visible]:border-ring ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20"), children: [
|
|
88
|
+
/* @__PURE__ */ s("div", { className: "ttw:relative", children: [
|
|
89
|
+
/* @__PURE__ */ e(Z, { id: "counterpart_id", placeholder: u._("Select customer"), "aria-invalid": !!n, showClear: c && (!!o || !!m), className: "ttw:min-h-10 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0 ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent", children: /* @__PURE__ */ e(lt, { align: "inline-start", children: D ? /* @__PURE__ */ e(ut, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ e("span", { className: "ttw:flex ttw:size-7 ttw:items-center ttw:justify-center ttw:rounded-full ttw:select-none ttw:text-xs ttw:font-medium", style: {
|
|
90
|
+
backgroundColor: o ? "rgba(203, 203, 254, 1)" : "rgba(235, 235, 255, 1)",
|
|
91
|
+
color: "rgba(55, 55, 255, 1)"
|
|
92
|
+
}, children: E }) }) }),
|
|
93
|
+
!c && o && !a && /* @__PURE__ */ e("div", { className: "ttw:pointer-events-none ttw:absolute ttw:inset-y-0 ttw:right-8 ttw:flex ttw:items-center", children: /* @__PURE__ */ e(ot, { type: "button", variant: "ghost", size: "sm", className: "ttw:pointer-events-auto ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary/10", onPointerDown: (t) => t.stopPropagation(), onClick: O, children: u._("View details") }) })
|
|
94
|
+
] }),
|
|
95
|
+
G && /* @__PURE__ */ e("p", { className: "ttw:pl-12 ttw:pr-3 ttw:pb-2 ttw:text-xs ttw:text-muted-foreground ttw:cursor-text ttw:select-none", onClick: () => y(!0), children: V })
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ e(tt, { container: A, children: /* @__PURE__ */ s(et, { children: [
|
|
98
|
+
!a && /* @__PURE__ */ s(C, { value: h, className: "ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary", children: [
|
|
99
|
+
/* @__PURE__ */ e(mt, {}),
|
|
100
|
+
u._("Create new customer")
|
|
101
|
+
] }),
|
|
102
|
+
N.map((t) => /* @__PURE__ */ e(C, { value: t.id, children: t.label }, t.id)),
|
|
103
|
+
N.length > 0 && L.length > 0 && /* @__PURE__ */ e(rt, {}),
|
|
104
|
+
L.map((t) => /* @__PURE__ */ e(C, { value: t.id, children: t.label }, t.id))
|
|
105
|
+
] }) })
|
|
106
|
+
] }),
|
|
107
|
+
/* @__PURE__ */ e(st, { errors: n ? [n] : [] })
|
|
108
|
+
] }) });
|
|
109
|
+
} });
|
|
27
110
|
};
|
|
28
111
|
export {
|
|
29
|
-
|
|
112
|
+
Vt as CounterpartSelector
|
|
30
113
|
};
|
|
@@ -1,129 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
value: "this_month",
|
|
12
|
-
label: "This month",
|
|
13
|
-
group: "Current"
|
|
14
|
-
}, {
|
|
15
|
-
value: "this_quarter",
|
|
16
|
-
label: "This quarter",
|
|
17
|
-
group: "Current"
|
|
18
|
-
}, {
|
|
19
|
-
value: "this_year",
|
|
20
|
-
label: "This year",
|
|
21
|
-
group: "Current"
|
|
22
|
-
}, {
|
|
23
|
-
value: "yesterday",
|
|
24
|
-
label: "Yesterday",
|
|
25
|
-
group: "Past"
|
|
26
|
-
}, {
|
|
27
|
-
value: "last_week",
|
|
28
|
-
label: "Last week",
|
|
29
|
-
group: "Past"
|
|
30
|
-
}, {
|
|
31
|
-
value: "last_month",
|
|
32
|
-
label: "Last month",
|
|
33
|
-
group: "Past"
|
|
34
|
-
}, {
|
|
35
|
-
value: "last_30_days",
|
|
36
|
-
label: "Last 30 days",
|
|
37
|
-
group: "Past"
|
|
38
|
-
}, {
|
|
39
|
-
value: "last_90_days",
|
|
40
|
-
label: "Last 90 days",
|
|
41
|
-
group: "Past"
|
|
42
|
-
}, {
|
|
43
|
-
value: "last_quarter",
|
|
44
|
-
label: "Last quarter",
|
|
45
|
-
group: "Past"
|
|
46
|
-
}, {
|
|
47
|
-
value: "last_year",
|
|
48
|
-
label: "Last year",
|
|
49
|
-
group: "Past"
|
|
50
|
-
}];
|
|
51
|
-
function g(h) {
|
|
52
|
-
const e = c(/* @__PURE__ */ new Date());
|
|
53
|
-
switch (h) {
|
|
54
|
-
case "today":
|
|
55
|
-
return {
|
|
56
|
-
from: e,
|
|
57
|
-
to: y(e)
|
|
58
|
-
};
|
|
59
|
-
case "this_week":
|
|
60
|
-
return {
|
|
61
|
-
from: _(e),
|
|
62
|
-
to: f(e)
|
|
63
|
-
};
|
|
64
|
-
case "this_month":
|
|
65
|
-
return {
|
|
66
|
-
from: l(e),
|
|
67
|
-
to: n(e)
|
|
68
|
-
};
|
|
69
|
-
case "this_quarter":
|
|
70
|
-
return {
|
|
71
|
-
from: o(e),
|
|
72
|
-
to: u(e)
|
|
73
|
-
};
|
|
74
|
-
case "this_year":
|
|
75
|
-
return {
|
|
76
|
-
from: r(e),
|
|
77
|
-
to: s(e)
|
|
78
|
-
};
|
|
79
|
-
case "yesterday": {
|
|
80
|
-
const t = a(e, 1);
|
|
81
|
-
return {
|
|
82
|
-
from: t,
|
|
83
|
-
to: y(t)
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
case "last_week": {
|
|
87
|
-
const t = _(i(e, 1));
|
|
88
|
-
return {
|
|
89
|
-
from: t,
|
|
90
|
-
to: f(t)
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
case "last_month": {
|
|
94
|
-
const t = l(d(e, 1));
|
|
95
|
-
return {
|
|
96
|
-
from: t,
|
|
97
|
-
to: n(t)
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
case "last_30_days":
|
|
101
|
-
return {
|
|
102
|
-
from: a(e, 30),
|
|
103
|
-
to: e
|
|
104
|
-
};
|
|
105
|
-
case "last_90_days":
|
|
106
|
-
return {
|
|
107
|
-
from: a(e, 90),
|
|
108
|
-
to: e
|
|
109
|
-
};
|
|
110
|
-
case "last_quarter": {
|
|
111
|
-
const t = o(b(e, 1));
|
|
112
|
-
return {
|
|
113
|
-
from: t,
|
|
114
|
-
to: u(t)
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
case "last_year": {
|
|
118
|
-
const t = r(m(e, 1));
|
|
119
|
-
return {
|
|
120
|
-
from: t,
|
|
121
|
-
to: s(t)
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
const e = (a) => ({
|
|
2
|
+
bank_name: a?.bank_name || void 0,
|
|
3
|
+
display_name: a?.display_name || void 0,
|
|
4
|
+
account_holder_name: a?.account_holder_name || void 0,
|
|
5
|
+
account_number: a?.account_number || void 0,
|
|
6
|
+
routing_number: a?.routing_number || void 0
|
|
7
|
+
}), o = (a) => ({
|
|
8
|
+
display_name: a?.display_name || void 0,
|
|
9
|
+
account_holder_name: a?.account_holder_name || void 0
|
|
10
|
+
});
|
|
126
11
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
12
|
+
e as prepareBankAccountCreatePayload,
|
|
13
|
+
o as prepareBankAccountUpdatePayload
|
|
129
14
|
};
|
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
":not(.MuiCollapse-hidden)": {
|
|
17
|
-
marginBottom: 1
|
|
18
|
-
}
|
|
19
|
-
}, children: /* @__PURE__ */ g(j, { severity: "error", sx: {
|
|
20
|
-
"& .MuiAlert-icon": {
|
|
21
|
-
alignItems: "center"
|
|
22
|
-
}
|
|
23
|
-
}, children: [
|
|
24
|
-
e && /* @__PURE__ */ a("div", { children: e }),
|
|
25
|
-
t && /* @__PURE__ */ a(v, { dense: !0, disablePadding: !0, sx: {
|
|
26
|
-
mt: e ? 1 : 0
|
|
27
|
-
}, children: Object.entries(n).map(([r, s]) => s ? /* @__PURE__ */ a(L, { disablePadding: !0, children: /* @__PURE__ */ a(A, { primary: s, primaryTypographyProps: {
|
|
28
|
-
sx: {
|
|
29
|
-
color: "inherit"
|
|
30
|
-
}
|
|
31
|
-
} }) }, r) : null) })
|
|
32
|
-
] }) }) : null;
|
|
33
|
-
}, C = (e) => {
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { MeasureUnitsFormRow as f } from "./index414.js";
|
|
3
|
+
import { ConfirmDeleteMeasureUnitDialog as j } from "./index415.js";
|
|
4
|
+
import { TableActions as z } from "./index416.js";
|
|
5
|
+
import { Table as A, TableHeader as E, TableRow as h, TableHead as l, TableBody as G, TableCell as d } from "./index324.js";
|
|
6
|
+
import { useLingui as I } from "@lingui/react";
|
|
7
|
+
import { Loader2 as b, Search as S } from "lucide-react";
|
|
8
|
+
import { useState as m, useCallback as w } from "react";
|
|
9
|
+
import "./index59.js";
|
|
10
|
+
import "react-hot-toast";
|
|
11
|
+
import { useGetMeasureUnits as _ } from "./index186.js";
|
|
12
|
+
import { useDeleteMeasureUnit as y } from "./index417.js";
|
|
13
|
+
import { InputGroup as F, InputGroupAddon as H, InputGroupInput as k } from "./index103.js";
|
|
14
|
+
import { useDebounceCallback as R } from "./index67.js";
|
|
15
|
+
const at = () => {
|
|
34
16
|
const {
|
|
35
|
-
i18n:
|
|
36
|
-
} =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
17
|
+
i18n: i
|
|
18
|
+
} = I(), [g, s] = m(null), [a, c] = m(null), x = !!a, [u, N] = m(""), {
|
|
19
|
+
data: C,
|
|
20
|
+
isLoading: M
|
|
21
|
+
} = _(), n = y(a?.name), $ = R((t) => {
|
|
22
|
+
N(t);
|
|
23
|
+
}, 500), D = C?.data?.filter((t) => t.name.toLowerCase().includes(u.toLowerCase()) || t.description && t.description.toLowerCase().includes(u.toLowerCase())) || [], L = w((t) => {
|
|
24
|
+
c(t);
|
|
25
|
+
}, []), o = w(() => {
|
|
26
|
+
c(null);
|
|
27
|
+
}, []), U = w(() => {
|
|
28
|
+
a && n.mutate({
|
|
29
|
+
path: {
|
|
30
|
+
unit_id: a.id
|
|
43
31
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return u.length > 0 && u.some((f) => i[f] != null);
|
|
50
|
-
}) ? n._("Please check the form for errors") : void 0, [t, s, l, m, c, p, d, n]);
|
|
51
|
-
return {
|
|
52
|
-
generalError: y,
|
|
53
|
-
fieldErrors: {
|
|
54
|
-
name: s,
|
|
55
|
-
quantity: l,
|
|
56
|
-
price: m,
|
|
57
|
-
tax: c,
|
|
58
|
-
measureUnit: p,
|
|
59
|
-
productType: d
|
|
60
|
-
},
|
|
61
|
-
hasErrors: !!(y || s || l || m || c || p || d)
|
|
32
|
+
}, {
|
|
33
|
+
onSuccess: () => o()
|
|
34
|
+
});
|
|
35
|
+
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
+
s(null);
|
|
62
37
|
};
|
|
38
|
+
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative", children: [
|
|
39
|
+
M ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }) : /* @__PURE__ */ r(T, { children: [
|
|
40
|
+
p && /* @__PURE__ */ e("div", { className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }),
|
|
41
|
+
/* @__PURE__ */ r(F, { children: [
|
|
42
|
+
/* @__PURE__ */ e(H, { align: "inline-start", children: /* @__PURE__ */ e(S, {}) }),
|
|
43
|
+
/* @__PURE__ */ e(k, { placeholder: i._("Search"), onChange: (t) => $(t.target.value) })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ r(A, { className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md", children: [
|
|
46
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(h, { className: "ttw:hover:bg-transparent ttw:border-border", children: [
|
|
47
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[35%]", children: i._("Unit label") }),
|
|
48
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
+
] }) }),
|
|
51
|
+
/* @__PURE__ */ r(G, { children: [
|
|
52
|
+
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
+
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
+
isUpdateAllowed: !0,
|
|
58
|
+
isDeleteAllowed: !0
|
|
59
|
+
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
+
] }, t.id))
|
|
61
|
+
] })
|
|
62
|
+
] })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
65
|
+
] });
|
|
63
66
|
};
|
|
64
67
|
export {
|
|
65
|
-
|
|
66
|
-
C as useFormErrors
|
|
68
|
+
at as ManageMeasureUnitsForm
|
|
67
69
|
};
|