@tesouro/embedded-components-react 0.2.148 → 0.2.151
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 +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +204 -198
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +24 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1271 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +12 -1270
- 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 +8 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +25 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +97 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +57 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +25 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +94 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +101 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +64 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +30 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +24 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +7 -7
- 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 +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +217 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +49 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +12 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +42 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +15 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +147 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +57 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +3 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +36 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +81 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +24 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +12 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +27 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +109 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +68 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +12 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +9 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +42 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +75 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +56 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +14 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +24 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +80 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +25 -9
- 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 +40 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +7 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +118 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +70 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +190 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +31 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +109 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +131 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +18 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -201
- 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 +19 -431
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +25 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +183 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +12 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +47 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +88 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +6 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +44 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +203 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +431 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +22 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +60 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +397 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +68 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +407 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +101 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +26 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +5 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +214 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +35 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +43 -136
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +28 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +77 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +31 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +20 -34
- 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 +146 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +85 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +345 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +15 -32
- 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 +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +18 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +15 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -58
- 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 +245 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +9 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +18 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +22 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +36 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +50 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +46 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +98 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +43 -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 +147 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +106 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +59 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +29 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +113 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +21 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +41 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +53 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +490 -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 +168 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +22 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +55 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +53 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +17 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +38 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +344 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +301 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +102 -21
- 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 +158 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +262 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +22 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +18 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +2 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +93 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +96 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +211 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +18 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +29 -19
- 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 +42 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +61 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +91 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +112 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +84 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +63 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +71 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +44 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +22 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +18 -44
- 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 +19 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +171 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +134 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +162 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +9 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +19 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +61 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +60 -483
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +55 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +6 -19
- 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 +8 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +59 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +24 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +60 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +14 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +17 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +41 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +14 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +78 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +74 -168
- 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 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +10 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +63 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +22 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +136 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +106 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +81 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +282 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +43 -56
- 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 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +80 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +225 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +11 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +8 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +6 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +2 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +149 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +96 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +16 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +81 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +17 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +50 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +159 -6
- 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 +28 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +26 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +76 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +61 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +26 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +127 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +28 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +46 -32
- 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 +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +32 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +26 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +39 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +72 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +94 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +27 -18
- 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 +14 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +45 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +9 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +1 -1
- 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/index404.js +31 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +4 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +127 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +53 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +23 -64
- 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 +31 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +65 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +15 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +66 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +21 -29
- 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 +2 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +72 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +64 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +33 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +24 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +85 -29
- 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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +103 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +111 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +8 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +27 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +21 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +27 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +33 -17
- 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 +5 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +66 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +55 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +39 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +39 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +16 -75
- 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 +75 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +22 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +9 -57
- 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 +72 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +72 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +83 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +52 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +52 -49
- 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 +52 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +34 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +46 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +48 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +54 -35
- 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 +30 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +49 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +50 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +30 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +12 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +1 -1
|
@@ -1,9 +1,162 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { isIndividualCounterpart as y, isOrganizationCounterpart as b } from "./index7.js";
|
|
2
|
+
import { fromMinorUnits as g, toMinorUnits as x } from "./index120.js";
|
|
3
|
+
import { getIndividualName as D } from "./index95.js";
|
|
4
|
+
import { format as q } from "date-fns";
|
|
5
|
+
import { resolveNullableUpdate as I } from "./index440.js";
|
|
6
|
+
const C = (t, e, a) => t?.find((n) => n.id === a)?.default_billing_address_id ?? (e?.id === a ? e?.default_billing_address_id : void 0), T = (t) => t ? t.map((e) => ({
|
|
7
|
+
value: e.id,
|
|
8
|
+
label: y(e) ? D(e.individual.first_name, e.individual.last_name) : b(e) ? e.organization.legal_name : ""
|
|
9
|
+
})) : [];
|
|
10
|
+
function _(t) {
|
|
11
|
+
const [e, a, r] = t.split("-");
|
|
12
|
+
return new Date(+e, +a - 1, +r);
|
|
13
|
+
}
|
|
14
|
+
const m = (t) => q(t, "yyyy-MM-dd"), M = (t, e, a, r) => {
|
|
15
|
+
if (!e)
|
|
16
|
+
return {
|
|
17
|
+
invoiceNumber: "",
|
|
18
|
+
counterpart: r ?? "",
|
|
19
|
+
counterpartBankAccount: "",
|
|
20
|
+
invoiceDate: void 0,
|
|
21
|
+
dueDate: void 0,
|
|
22
|
+
currency: "USD",
|
|
23
|
+
tags: [],
|
|
24
|
+
discount: null,
|
|
25
|
+
lineItems: [{
|
|
26
|
+
id: "",
|
|
27
|
+
name: "",
|
|
28
|
+
quantity: 1,
|
|
29
|
+
price: 0,
|
|
30
|
+
tax: 0
|
|
31
|
+
}]
|
|
32
|
+
};
|
|
33
|
+
const {
|
|
34
|
+
document_id: n,
|
|
35
|
+
counterpart_id: i,
|
|
36
|
+
counterpart_bank_account_id: o,
|
|
37
|
+
issued_at: u,
|
|
38
|
+
due_date: c,
|
|
39
|
+
currency: d,
|
|
40
|
+
tags: l,
|
|
41
|
+
discount: p
|
|
42
|
+
} = e;
|
|
43
|
+
return {
|
|
44
|
+
invoiceNumber: n ?? "",
|
|
45
|
+
counterpart: i ?? "",
|
|
46
|
+
counterpartBankAccount: o ?? "",
|
|
47
|
+
invoiceDate: u ? _(u) : void 0,
|
|
48
|
+
dueDate: c ? _(c) : void 0,
|
|
49
|
+
currency: d ?? "USD",
|
|
50
|
+
tags: l ?? [],
|
|
51
|
+
discount: p && d ? t(p, d) : null,
|
|
52
|
+
lineItems: (a || []).map((s) => ({
|
|
53
|
+
id: s.id ?? "",
|
|
54
|
+
name: s.name ?? "",
|
|
55
|
+
quantity: s.quantity ?? 1,
|
|
56
|
+
price: s.unit_price && d ? t(s.unit_price, d) ?? 0 : 0,
|
|
57
|
+
tax: s.tax ? N(s.tax) : 0,
|
|
58
|
+
ledger_account_id: s.ledger_account_id
|
|
59
|
+
}))
|
|
60
|
+
};
|
|
61
|
+
}, P = ({
|
|
62
|
+
discount: t,
|
|
63
|
+
invoiceNumber: e,
|
|
64
|
+
counterpart: a,
|
|
65
|
+
counterpartBankAccount: r,
|
|
66
|
+
invoiceDate: n,
|
|
67
|
+
dueDate: i,
|
|
68
|
+
currency: o,
|
|
69
|
+
tags: u,
|
|
70
|
+
counterpartAddressId: c
|
|
71
|
+
}, d) => ({
|
|
72
|
+
document_id: e,
|
|
73
|
+
discount: t && o ? d(t, o) ?? 0 : 0,
|
|
74
|
+
counterpart_id: a || void 0,
|
|
75
|
+
counterpart_bank_account_id: r || void 0,
|
|
76
|
+
issued_at: n instanceof Date ? m(n) : void 0,
|
|
77
|
+
due_date: i instanceof Date ? m(i) : void 0,
|
|
78
|
+
currency: o,
|
|
79
|
+
tag_ids: u.map((l) => l.id),
|
|
80
|
+
counterpart_address_id: c
|
|
81
|
+
}), f = (t, e) => {
|
|
82
|
+
const a = t * e;
|
|
83
|
+
return parseFloat(a.toFixed(2));
|
|
84
|
+
}, v = (t, e) => {
|
|
85
|
+
const a = t + e * t / 100;
|
|
86
|
+
return parseFloat(a.toFixed(2));
|
|
87
|
+
}, w = (t) => {
|
|
88
|
+
const {
|
|
89
|
+
price: e,
|
|
90
|
+
quantity: a,
|
|
91
|
+
tax: r
|
|
92
|
+
} = t;
|
|
93
|
+
if (!e || !a) return 0;
|
|
94
|
+
const n = f(e, a);
|
|
95
|
+
return v(n, r || 0);
|
|
96
|
+
}, z = (t, e) => {
|
|
97
|
+
const {
|
|
98
|
+
subtotal: a,
|
|
99
|
+
taxes: r,
|
|
100
|
+
total: n
|
|
101
|
+
} = t.reduce((i, o) => {
|
|
102
|
+
const u = f(o.price, o.quantity), c = v(u, o.tax || 0);
|
|
103
|
+
return {
|
|
104
|
+
subtotal: i.subtotal + u,
|
|
105
|
+
taxes: i.taxes + (c - u),
|
|
106
|
+
total: i.total + c
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
subtotal: 0,
|
|
110
|
+
taxes: 0,
|
|
111
|
+
total: 0
|
|
112
|
+
});
|
|
113
|
+
return {
|
|
114
|
+
subtotal: a,
|
|
115
|
+
taxes: r,
|
|
116
|
+
total: n - (e ?? 0)
|
|
117
|
+
};
|
|
118
|
+
}, L = (t, e, a, r) => {
|
|
119
|
+
const {
|
|
120
|
+
name: n,
|
|
121
|
+
quantity: i,
|
|
122
|
+
price: o,
|
|
123
|
+
tax: u,
|
|
124
|
+
ledger_account_id: c
|
|
125
|
+
} = e, d = r?.allowLedgerUpdate ? I(c, r?.previous) : c, l = {
|
|
126
|
+
name: n,
|
|
127
|
+
quantity: i,
|
|
128
|
+
tax: F(u),
|
|
129
|
+
unit_price: a(o, t) ?? 0
|
|
130
|
+
};
|
|
131
|
+
return d !== void 0 && (l.ledger_account_id = d), l;
|
|
6
132
|
};
|
|
133
|
+
function F(t) {
|
|
134
|
+
return x(t);
|
|
135
|
+
}
|
|
136
|
+
function N(t) {
|
|
137
|
+
return g(t);
|
|
138
|
+
}
|
|
139
|
+
const O = (t, e, a) => {
|
|
140
|
+
const r = {
|
|
141
|
+
invoiceNumber: !0,
|
|
142
|
+
dueDate: !0,
|
|
143
|
+
tags: !0,
|
|
144
|
+
currency: !0
|
|
145
|
+
};
|
|
146
|
+
if (a)
|
|
147
|
+
return !1;
|
|
148
|
+
const n = r[t] ?? !1, i = e?.[t] ?? !1;
|
|
149
|
+
return n || i;
|
|
150
|
+
}, R = (t, e) => t.find((a) => a.currency === e && a.is_default_for_currency)?.id || "";
|
|
7
151
|
export {
|
|
8
|
-
|
|
152
|
+
w as calculateTotalPriceForLineItem,
|
|
153
|
+
z as calculateTotalsForPayable,
|
|
154
|
+
T as counterpartsToSelect,
|
|
155
|
+
m as dateToString,
|
|
156
|
+
R as findDefaultBankAccount,
|
|
157
|
+
O as isFieldRequired,
|
|
158
|
+
M as prepareDefaultValues,
|
|
159
|
+
L as prepareLineItemSubmit,
|
|
160
|
+
P as prepareSubmit,
|
|
161
|
+
C as resolveCreatePayableCounterpartAddressId
|
|
9
162
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as r, jsxs as u, Fragment as $ } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { InvoicesCounterpartCell as q } from "./
|
|
3
|
-
import { InvoiceRecurrenceStatusChip as B } from "./
|
|
2
|
+
import { InvoicesCounterpartCell as q } from "./index182.js";
|
|
3
|
+
import { InvoiceRecurrenceStatusChip as B } from "./index183.js";
|
|
4
4
|
import { InvoiceStatusChip as E } from "./index55.js";
|
|
5
|
-
import { InvoicesFilterBar as U } from "./
|
|
6
|
-
import { InvoiceStatusCardsFilter as V } from "./
|
|
7
|
-
import { useInvoicesFilter as j } from "./
|
|
8
|
-
import { useGetReceivables as G } from "./
|
|
5
|
+
import { InvoicesFilterBar as U } from "./index184.js";
|
|
6
|
+
import { InvoiceStatusCardsFilter as V } from "./index185.js";
|
|
7
|
+
import { useInvoicesFilter as j } from "./index151.js";
|
|
8
|
+
import { useGetReceivables as G } from "./index152.js";
|
|
9
9
|
import { useMoniteContext as x } from "./index57.js";
|
|
10
10
|
import { MoniteScopedProviders as Q } from "./index83.js";
|
|
11
11
|
import { useCurrencies as W } from "./index58.js";
|
|
12
|
-
import { ReceivableCursorFields as C } from "./
|
|
13
|
-
import { GetNoRowsOverlay as H } from "./
|
|
14
|
-
import { DueDateCell as J } from "./
|
|
15
|
-
import { DataTable as X } from "./
|
|
16
|
-
import { Skeleton as Y } from "./
|
|
12
|
+
import { ReceivableCursorFields as C } from "./index186.js";
|
|
13
|
+
import { GetNoRowsOverlay as H } from "./index166.js";
|
|
14
|
+
import { DueDateCell as J } from "./index187.js";
|
|
15
|
+
import { DataTable as X } from "./index167.js";
|
|
16
|
+
import { Skeleton as Y } from "./index142.js";
|
|
17
17
|
import { useLingui as Z } from "@lingui/react";
|
|
18
18
|
import tt from "@mui/icons-material/Sync";
|
|
19
19
|
import { useState as d, useEffect as w } from "react";
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsxs as r, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { classNames as a } from "./index191.js";
|
|
3
|
+
import { Stack as e } from "@mui/material";
|
|
4
|
+
const x = ({
|
|
5
|
+
className: t,
|
|
6
|
+
searchField: i,
|
|
7
|
+
children: s,
|
|
8
|
+
sx: n
|
|
9
|
+
}) => /* @__PURE__ */ r(e, { direction: "row", justifyContent: "space-between", alignItems: "center", className: a("Monite-Filters", t), sx: Object.assign({
|
|
10
|
+
"& > *": {
|
|
11
|
+
flexBasis: "fit-content",
|
|
12
|
+
flexGrow: 1
|
|
13
|
+
},
|
|
14
|
+
"& > .Monite-SearchField": {
|
|
15
|
+
maxWidth: "400px",
|
|
16
|
+
width: "100%"
|
|
17
|
+
}
|
|
18
|
+
}, n || {}), children: [
|
|
19
|
+
i,
|
|
20
|
+
/* @__PURE__ */ o(e, { gap: 1, direction: "row", justifyContent: "flex-end", alignItems: "center", className: "Monite-Filters-Group", sx: {
|
|
21
|
+
ml: 2,
|
|
22
|
+
"& .Monite-FilterControl": {
|
|
23
|
+
maxWidth: "160px",
|
|
24
|
+
width: "100%"
|
|
25
|
+
}
|
|
26
|
+
}, children: s })
|
|
27
|
+
] });
|
|
2
28
|
export {
|
|
3
|
-
|
|
29
|
+
x as FilterContainer
|
|
4
30
|
};
|
|
@@ -1,98 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { Typography as h } from "./index85.js";
|
|
11
|
-
import { useCreateEntityBankAccount as F } from "./index408.js";
|
|
12
|
-
import { Button as p } from "./index84.js";
|
|
13
|
-
const J = ({
|
|
14
|
-
bankAccountsLength: b,
|
|
15
|
-
onCreate: _,
|
|
16
|
-
onCancel: f
|
|
1
|
+
import { jsxs as i, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDebounceCallback as c } from "./index65.js";
|
|
3
|
+
import m from "@mui/icons-material/Search";
|
|
4
|
+
import { FormControl as s, InputLabel as h, Input as p, InputAdornment as d } from "@mui/material";
|
|
5
|
+
const u = 500, x = ({
|
|
6
|
+
label: r,
|
|
7
|
+
value: o,
|
|
8
|
+
placeholder: l,
|
|
9
|
+
onChange: n
|
|
17
10
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
account_number: "",
|
|
34
|
-
routing_number: ""
|
|
35
|
-
}
|
|
36
|
-
}), w = (t) => {
|
|
37
|
-
v({
|
|
38
|
-
body: k(t)
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
return /* @__PURE__ */ n("div", { className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
42
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: /* @__PURE__ */ e(h, { variant: "body2", children: a._("Add a bank account") }) }),
|
|
43
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
44
|
-
/* @__PURE__ */ e(i, { name: "routing_number", control: l, render: ({
|
|
45
|
-
field: t,
|
|
46
|
-
fieldState: {
|
|
47
|
-
error: r
|
|
48
|
-
}
|
|
49
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
50
|
-
/* @__PURE__ */ e(m, { htmlFor: "routing_number", children: a._("Routing number") }),
|
|
51
|
-
/* @__PURE__ */ e(s, { ...t, id: "routing_number", placeholder: a._("e.g. 123456789"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
52
|
-
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
53
|
-
] }) }) }),
|
|
54
|
-
/* @__PURE__ */ e(i, { name: "account_number", control: l, render: ({
|
|
55
|
-
field: t,
|
|
56
|
-
fieldState: {
|
|
57
|
-
error: r
|
|
58
|
-
}
|
|
59
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
60
|
-
/* @__PURE__ */ e(m, { htmlFor: "account_number", children: a._("Account number") }),
|
|
61
|
-
/* @__PURE__ */ e(s, { ...t, id: "account_number", placeholder: a._("e.g. 123456789"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
62
|
-
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
63
|
-
] }) }) })
|
|
64
|
-
] }),
|
|
65
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
66
|
-
/* @__PURE__ */ e(i, { name: "account_holder_name", control: l, render: ({
|
|
67
|
-
field: t,
|
|
68
|
-
fieldState: {
|
|
69
|
-
error: r
|
|
70
|
-
}
|
|
71
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
72
|
-
/* @__PURE__ */ e(m, { htmlFor: "account_holder_name", children: a._("Account holder name") }),
|
|
73
|
-
/* @__PURE__ */ e(s, { ...t, id: "account_holder_name", placeholder: a._("e.g. James Smith"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
74
|
-
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
75
|
-
] }) }) }),
|
|
76
|
-
/* @__PURE__ */ e(i, { name: "display_name", control: l, render: ({
|
|
77
|
-
field: t,
|
|
78
|
-
fieldState: {
|
|
79
|
-
error: r
|
|
80
|
-
}
|
|
81
|
-
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ n(c, { children: [
|
|
82
|
-
/* @__PURE__ */ n(m, { htmlFor: "display_name", className: "ttw:gap-1", children: [
|
|
83
|
-
a._("Account nickname"),
|
|
84
|
-
/* @__PURE__ */ e(h, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: a._("(optional)") })
|
|
85
|
-
] }),
|
|
86
|
-
/* @__PURE__ */ e(s, { ...t, id: "display_name", placeholder: a._("e.g. Empire Bank Checking"), value: t.value ?? "", disabled: o, "aria-invalid": !!r }),
|
|
87
|
-
/* @__PURE__ */ e(u, { errors: r ? [r] : [] })
|
|
88
|
-
] }) }) })
|
|
89
|
-
] }),
|
|
90
|
-
/* @__PURE__ */ n("div", { className: "ttw:flex ttw:gap-4", children: [
|
|
91
|
-
b !== 0 && /* @__PURE__ */ e(p, { type: "button", variant: "outline", className: "ttw:border-border", disabled: o, onClick: f, children: a._("Cancel") }),
|
|
92
|
-
/* @__PURE__ */ e(p, { type: "button", disabled: o, onClick: g(w), children: a._("Save account") })
|
|
93
|
-
] })
|
|
11
|
+
const t = c((a) => n(a), u);
|
|
12
|
+
return /* @__PURE__ */ i(s, { "aria-label": "search-by-name", className: "Monite-SearchField Monite-FilterControl", children: [
|
|
13
|
+
r && /* @__PURE__ */ e(h, { htmlFor: "search-by-name", shrink: !0, children: r }),
|
|
14
|
+
/* @__PURE__ */ e(p, { id: "search-by-name", name: "search-by-name", "aria-label": "search-by-name", placeholder: l, value: o, onChange: (a) => {
|
|
15
|
+
t(a.target.value || null);
|
|
16
|
+
}, startAdornment: /* @__PURE__ */ e(d, { position: "end", children: /* @__PURE__ */ e(m, { fontSize: "medium" }) }), sx: {
|
|
17
|
+
"&::placeholder": {
|
|
18
|
+
opacity: 1,
|
|
19
|
+
color: "text.primary"
|
|
20
|
+
},
|
|
21
|
+
"& input::placeholder": {
|
|
22
|
+
opacity: 1,
|
|
23
|
+
color: "text.primary"
|
|
24
|
+
}
|
|
25
|
+
} })
|
|
94
26
|
] });
|
|
95
27
|
};
|
|
96
28
|
export {
|
|
97
|
-
|
|
29
|
+
u as DEBOUNCE_SEARCH_TIMEOUT,
|
|
30
|
+
x as SearchField
|
|
98
31
|
};
|
|
@@ -1,19 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
function i({
|
|
2
|
+
layout: r,
|
|
3
|
+
navigationPosition: e,
|
|
4
|
+
pageSizePosition: t,
|
|
5
|
+
hasPageSizeSelect: n
|
|
6
|
+
}) {
|
|
7
|
+
if (!n)
|
|
8
|
+
return {
|
|
9
|
+
justifyContent: "center",
|
|
10
|
+
flexDirection: "row",
|
|
11
|
+
gap: void 0
|
|
12
|
+
};
|
|
13
|
+
if (r === "custom") {
|
|
14
|
+
if (e === "center" && t === "center")
|
|
15
|
+
return {
|
|
16
|
+
justifyContent: "center",
|
|
17
|
+
flexDirection: "row",
|
|
18
|
+
gap: 3
|
|
19
|
+
};
|
|
20
|
+
if (e === "left" && t === "left")
|
|
21
|
+
return {
|
|
22
|
+
justifyContent: "flex-start",
|
|
23
|
+
flexDirection: "row",
|
|
24
|
+
gap: 3
|
|
25
|
+
};
|
|
26
|
+
if (e === "right" && t === "right")
|
|
27
|
+
return {
|
|
28
|
+
justifyContent: "flex-end",
|
|
29
|
+
flexDirection: "row-reverse",
|
|
30
|
+
gap: 3
|
|
31
|
+
};
|
|
32
|
+
if (e === "left" && t === "right")
|
|
33
|
+
return {
|
|
34
|
+
justifyContent: "space-between",
|
|
35
|
+
flexDirection: "row",
|
|
36
|
+
gap: void 0
|
|
37
|
+
};
|
|
38
|
+
if (e === "right" && t === "left")
|
|
39
|
+
return {
|
|
40
|
+
justifyContent: "space-between",
|
|
41
|
+
flexDirection: "row-reverse",
|
|
42
|
+
gap: void 0
|
|
43
|
+
};
|
|
44
|
+
if (e === "center")
|
|
45
|
+
return {
|
|
46
|
+
justifyContent: "space-around",
|
|
47
|
+
flexDirection: t === "left" ? "row-reverse" : "row",
|
|
48
|
+
gap: void 0
|
|
49
|
+
};
|
|
50
|
+
if (t === "center")
|
|
51
|
+
return {
|
|
52
|
+
justifyContent: "space-around",
|
|
53
|
+
flexDirection: e === "left" ? "row" : "row-reverse",
|
|
54
|
+
gap: void 0
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
switch (r) {
|
|
58
|
+
case "reversed":
|
|
59
|
+
return {
|
|
60
|
+
justifyContent: "space-between",
|
|
61
|
+
flexDirection: "row-reverse",
|
|
62
|
+
gap: void 0
|
|
63
|
+
};
|
|
64
|
+
case "centered":
|
|
65
|
+
return {
|
|
66
|
+
justifyContent: "center",
|
|
67
|
+
flexDirection: "row",
|
|
68
|
+
gap: 3
|
|
69
|
+
};
|
|
9
70
|
default:
|
|
10
|
-
return
|
|
71
|
+
return {
|
|
72
|
+
justifyContent: "space-between",
|
|
73
|
+
flexDirection: "row",
|
|
74
|
+
gap: void 0
|
|
75
|
+
};
|
|
11
76
|
}
|
|
12
|
-
}
|
|
13
|
-
const a = e.account_number?.slice(-4) ?? e.account_number_last4;
|
|
14
|
-
return [e.display_name || n._("Bank Account"), a].filter(Boolean).join(" - ");
|
|
15
|
-
};
|
|
77
|
+
}
|
|
16
78
|
export {
|
|
17
|
-
|
|
18
|
-
t as getSourceLabel
|
|
79
|
+
i as getLayoutStyles
|
|
19
80
|
};
|
|
@@ -1,87 +1,69 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { MeasureUnitsFormRow as f } from "./index434.js";
|
|
3
|
+
import { ConfirmDeleteMeasureUnitDialog as j } from "./index435.js";
|
|
4
|
+
import { TableActions as z } from "./index436.js";
|
|
5
|
+
import { Table as A, TableHeader as E, TableRow as h, TableHead as l, TableBody as G, TableCell as d } from "./index307.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";
|
|
6
9
|
import "./index57.js";
|
|
7
|
-
import { useCounterpartList as k } from "./index71.js";
|
|
8
10
|
import "react-hot-toast";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
const me = ({
|
|
15
|
-
disabled: _,
|
|
16
|
-
canCreateCounterpart: i = !0
|
|
17
|
-
}) => {
|
|
11
|
+
import { useGetMeasureUnits as _ } from "./index210.js";
|
|
12
|
+
import { useDeleteMeasureUnit as y } from "./index437.js";
|
|
13
|
+
import { InputGroup as F, InputGroupAddon as H, InputGroupInput as k } from "./index101.js";
|
|
14
|
+
import { useDebounceCallback as R } from "./index65.js";
|
|
15
|
+
const at = () => {
|
|
18
16
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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;
|
|
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
|
|
54
31
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
] }) })
|
|
32
|
+
}, {
|
|
33
|
+
onSuccess: () => o()
|
|
34
|
+
});
|
|
35
|
+
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
+
s(null);
|
|
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) })
|
|
79
44
|
] }),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
+
] });
|
|
84
66
|
};
|
|
85
67
|
export {
|
|
86
|
-
|
|
68
|
+
at as ManageMeasureUnitsForm
|
|
87
69
|
};
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { useMoniteContext as u } from "./index57.js";
|
|
2
|
+
import { useLingui as n } from "@lingui/react";
|
|
3
|
+
import { toast as o } from "react-hot-toast";
|
|
4
|
+
const p = (r, s) => {
|
|
5
|
+
const {
|
|
6
|
+
i18n: e
|
|
7
|
+
} = n(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: i
|
|
10
|
+
} = u();
|
|
11
|
+
return t.finops.deleteProductsId.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
product_id: r
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async () => {
|
|
17
|
+
await t.finops.getProducts.invalidateQueries(i), o.success(e._("Product was deleted.")), s?.();
|
|
18
|
+
},
|
|
19
|
+
onError: () => {
|
|
20
|
+
o.error(e._("Failed to delete product."));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
};
|
|
16
24
|
export {
|
|
17
|
-
|
|
18
|
-
f as AvatarFallback
|
|
25
|
+
p as useDeleteProduct
|
|
19
26
|
};
|