@tesouro/embedded-components-react 0.2.20 → 0.2.21
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 +27 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +11 -11
- 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 +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +75 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +8 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +33 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +32 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +26 -33
- 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 +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +121 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +46 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +43 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +147 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +26 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +55 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +71 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +26 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +55 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +78 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +5 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +93 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +56 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +59 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +397 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +68 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +407 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +74 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +56 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +197 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +14 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +22 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +39 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +6 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +246 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +179 -193
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +111 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +82 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +108 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +108 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +58 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +59 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +86 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +47 -13
- 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 +31 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +109 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +68 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +185 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +31 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +119 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +57 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +23 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +27 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +18 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +11 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +21 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +4 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +44 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +367 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +18 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +91 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +24 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +9 -366
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +19 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +107 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +65 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +100 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +25 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +6 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +9 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +213 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +25 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +96 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +101 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +2 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +140 -297
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +86 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +19 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +183 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +36 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +51 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +34 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +54 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +337 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +12 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +20 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +37 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +29 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +15 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +17 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +37 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +52 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +30 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +90 -483
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +43 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +34 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +44 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +28 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +5 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +76 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +32 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +73 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +44 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +23 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +42 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +62 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +95 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +112 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +85 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +63 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +342 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +299 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +95 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +158 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +264 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +93 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +96 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +190 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +20 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +15 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +18 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +167 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +134 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +157 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +18 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +67 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +57 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +8 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +62 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +63 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +157 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +28 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +28 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +78 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +40 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +54 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +113 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +21 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +14 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +79 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +75 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +41 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +22 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +54 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +29 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +55 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +18 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +40 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +28 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +127 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +22 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +62 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +22 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +184 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +104 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +81 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +284 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +48 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +15 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +84 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +215 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +34 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +474 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +164 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +149 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +48 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +106 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +45 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +31 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +100 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +32 -62
- 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 +56 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +40 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +17 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +55 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +11 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +86 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +121 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +38 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +41 -219
- 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 +12 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +19 -50
- 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 +31 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +26 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +255 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +23 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +97 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +65 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +18 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +12 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +66 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +53 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +50 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +126 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +93 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +22 -25
- 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 +5 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +114 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +71 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -47
- 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 +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +66 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +45 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +16 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +38 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +9 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +12 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +33 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +97 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +108 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +54 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +24 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +39 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +74 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +67 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +38 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +16 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +29 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +64 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +52 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +37 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +57 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +31 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +50 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +96 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +75 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +20 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +56 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +72 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +21 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +43 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +37 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +15 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +30 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +39 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +15 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +81 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +49 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +40 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +44 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +70 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +81 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +51 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +52 -18
- 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 +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index10.js +46 -46
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index12.js +72 -65
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +60 -60
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index7.js +16 -16
- package/package.json +1 -1
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, o, s), await i.finops.getReceivables.invalidateQueries(s), c.success(a._("Marked as uncollectible"));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
};
|
|
1
|
+
class t {
|
|
2
|
+
value;
|
|
3
|
+
currency;
|
|
4
|
+
formatter;
|
|
5
|
+
constructor(r) {
|
|
6
|
+
this.value = r.value, this.currency = r.currency, this.formatter = r.formatter;
|
|
7
|
+
}
|
|
8
|
+
add(r) {
|
|
9
|
+
if (this.currency !== r.currency)
|
|
10
|
+
throw new Error("Currencies must match");
|
|
11
|
+
return new t({
|
|
12
|
+
value: Number(this.value) + Number(r.value),
|
|
13
|
+
currency: this.currency,
|
|
14
|
+
formatter: this.formatter
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
toString() {
|
|
18
|
+
return this.formatter(this.value, this.currency) ?? "";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
25
21
|
export {
|
|
26
|
-
|
|
22
|
+
t as Price
|
|
27
23
|
};
|
|
@@ -1,76 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { useMoniteContext as h } from "./index59.js";
|
|
3
|
-
import { useCurrencies as y } from "./index60.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import "./index94.js";
|
|
6
|
-
import { useLingui as f } from "@lingui/react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import "@mui/x-data-grid";
|
|
9
|
-
import "@tanstack/react-query";
|
|
10
|
-
import "date-fns";
|
|
11
|
-
import { useEntityUserByAuthToken as x } from "./index77.js";
|
|
12
|
-
import "react-hot-toast";
|
|
13
|
-
import { MoniteCard as g } from "./index484.js";
|
|
14
|
-
import _ from "@mui/icons-material/DriveFileRenameOutline";
|
|
15
|
-
import { Box as o, Typography as r, Skeleton as v, Alert as b } from "@mui/material";
|
|
16
|
-
const L = ({
|
|
17
|
-
paymentRecords: i,
|
|
18
|
-
invoice: n
|
|
19
|
-
}) => {
|
|
20
|
-
const {
|
|
21
|
-
i18n: t
|
|
22
|
-
} = f(), {
|
|
23
|
-
locale: c
|
|
24
|
-
} = h(), {
|
|
25
|
-
formatCurrencyToDisplay: s
|
|
26
|
-
} = y(), d = new Date(i.payment_date ?? "").setHours(i.payment_time?.getHours() ?? 0, i.payment_time?.getMinutes() ?? 0), p = t.date(new Date(d), c.dateTimeFormat), {
|
|
27
|
-
data: l,
|
|
28
|
-
isLoading: u
|
|
29
|
-
} = x(), m = `${l?.first_name ?? ""} ${l?.last_name ?? ""}`;
|
|
30
|
-
return /* @__PURE__ */ a(o, { sx: {
|
|
31
|
-
display: "flex",
|
|
32
|
-
flexDirection: "column",
|
|
33
|
-
gap: 3
|
|
34
|
-
}, children: [
|
|
35
|
-
/* @__PURE__ */ a(o, { sx: {
|
|
36
|
-
display: "flex",
|
|
37
|
-
flexDirection: "column",
|
|
38
|
-
gap: 1,
|
|
39
|
-
alignItems: "center",
|
|
40
|
-
textAlign: "center"
|
|
41
|
-
}, children: [
|
|
42
|
-
/* @__PURE__ */ e(o, { sx: {
|
|
43
|
-
borderRadius: "100%",
|
|
44
|
-
backgroundColor: "#F2F2F2",
|
|
45
|
-
width: "44px",
|
|
46
|
-
height: "44px",
|
|
47
|
-
display: "flex",
|
|
48
|
-
justifyContent: "center",
|
|
49
|
-
alignItems: "center"
|
|
50
|
-
}, children: /* @__PURE__ */ e(_, { sx: {
|
|
51
|
-
color: "#707070"
|
|
52
|
-
} }) }),
|
|
53
|
-
/* @__PURE__ */ e(r, { variant: "body1", children: t._("Manual payment record") }),
|
|
54
|
-
/* @__PURE__ */ a(o, { children: [
|
|
55
|
-
/* @__PURE__ */ e(r, { variant: "h2", children: s(i?.amount ?? 0, n.currency) }),
|
|
56
|
-
/* @__PURE__ */ e(r, { variant: "body1", children: t._("from {invoiceCounterpart_name}", {
|
|
57
|
-
invoiceCounterpart_name: n.counterpart_name
|
|
58
|
-
}) })
|
|
59
|
-
] })
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ e(g, { items: [{
|
|
62
|
-
label: t._("Received"),
|
|
63
|
-
value: i.payment_date ? /* @__PURE__ */ e(r, { fontWeight: 500, children: p }) : "—"
|
|
64
|
-
}, {
|
|
65
|
-
label: t._("Reference"),
|
|
66
|
-
value: n.id ? /* @__PURE__ */ e(r, { fontWeight: 500, children: n.id }) : "—"
|
|
67
|
-
}, {
|
|
68
|
-
label: t._("Created by"),
|
|
69
|
-
value: u ? /* @__PURE__ */ e(v, { variant: "text", width: "50%" }) : m ? /* @__PURE__ */ e(r, { fontWeight: 500, children: m }) : "—"
|
|
70
|
-
}] }),
|
|
71
|
-
/* @__PURE__ */ e(b, { severity: "warning", children: /* @__PURE__ */ e(r, { variant: "body2", children: t._("Please, check the details of your payment record. You won't be able to change or delete it after.") }) })
|
|
72
|
-
] });
|
|
73
|
-
};
|
|
1
|
+
const t = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 9)}`;
|
|
74
2
|
export {
|
|
75
|
-
|
|
3
|
+
t as generateUniqueId
|
|
76
4
|
};
|
|
@@ -1,99 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import "@mui/x-data-grid";
|
|
10
|
-
import { safeZodResolver as v } from "./index266.js";
|
|
11
|
-
import { RHFDatePicker as D } from "./index487.js";
|
|
12
|
-
import { RHFTextField as S } from "./index465.js";
|
|
13
|
-
import { RHFTimePicker as R } from "./index488.js";
|
|
14
|
-
import { DialogTitle as T, DialogContent as P, Grid as i, FormHelperText as k, Button as m, DialogActions as E, CircularProgress as H } from "@mui/material";
|
|
15
|
-
import { useForm as V } from "react-hook-form";
|
|
16
|
-
const Z = ({
|
|
17
|
-
invoice: r,
|
|
18
|
-
initialValues: n,
|
|
19
|
-
isLoading: u,
|
|
20
|
-
onSubmit: s,
|
|
21
|
-
onCancel: c
|
|
22
|
-
}) => {
|
|
23
|
-
const {
|
|
24
|
-
i18n: t
|
|
25
|
-
} = F(), {
|
|
26
|
-
formatCurrencyToDisplay: p,
|
|
27
|
-
getSymbolFromCurrency: d
|
|
28
|
-
} = y(), {
|
|
29
|
-
control: a,
|
|
30
|
-
handleSubmit: f,
|
|
31
|
-
reset: l,
|
|
32
|
-
setValue: x
|
|
33
|
-
} = V({
|
|
34
|
-
resolver: v(g(t, r.amount_due)),
|
|
35
|
-
defaultValues: _(() => n ?? {
|
|
36
|
-
amount: 0,
|
|
37
|
-
payment_date: /* @__PURE__ */ new Date(),
|
|
38
|
-
payment_time: /* @__PURE__ */ new Date()
|
|
39
|
-
}, [n])
|
|
40
|
-
});
|
|
41
|
-
C(() => {
|
|
42
|
-
l(n);
|
|
43
|
-
}, [n, l]);
|
|
44
|
-
const h = d(r.currency);
|
|
45
|
-
return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ o("form", { onSubmit: f(s), children: [
|
|
46
|
-
/* @__PURE__ */ e(T, { sx: {
|
|
47
|
-
px: 4,
|
|
48
|
-
pt: 4
|
|
49
|
-
}, variant: "h3", id: "dialog-title", children: t._("Record payment") }),
|
|
50
|
-
/* @__PURE__ */ e(P, { sx: {
|
|
51
|
-
p: 4
|
|
52
|
-
}, children: /* @__PURE__ */ o(i, { container: !0, spacing: 1, children: [
|
|
53
|
-
/* @__PURE__ */ o(i, { item: !0, xs: 12, children: [
|
|
54
|
-
/* @__PURE__ */ e(S, { label: t._("Amount"), name: "amount", placeholder: "0", control: a, type: "number", sx: {
|
|
55
|
-
"::after": {
|
|
56
|
-
content: `"${h}"`,
|
|
57
|
-
position: "absolute",
|
|
58
|
-
right: "16px",
|
|
59
|
-
bottom: 0,
|
|
60
|
-
transform: "translateY(-50%)",
|
|
61
|
-
fontSize: "16px",
|
|
62
|
-
color: "rgba(0,0,0,0.28)",
|
|
63
|
-
pointerEvents: "none"
|
|
64
|
-
}
|
|
65
|
-
}, fullWidth: !0, required: !0 }),
|
|
66
|
-
/* @__PURE__ */ o(k, { children: [
|
|
67
|
-
t._("Enter full amount due of"),
|
|
68
|
-
" ",
|
|
69
|
-
/* @__PURE__ */ e(m, { variant: "text", sx: {
|
|
70
|
-
textDecoration: "underline"
|
|
71
|
-
}, onClick: () => x("amount", r.amount_due / 100), children: p(r.amount_due, r.currency) })
|
|
72
|
-
] })
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ e(i, { item: !0, xs: 6, children: /* @__PURE__ */ e(D, { label: t._("Date"), name: "payment_date", control: a }) }),
|
|
75
|
-
/* @__PURE__ */ e(i, { item: !0, xs: 6, children: /* @__PURE__ */ e(R, { label: t._("Time"), name: "payment_time", control: a, sx: {
|
|
76
|
-
"::after": {
|
|
77
|
-
content: '"UTC"',
|
|
78
|
-
position: "absolute",
|
|
79
|
-
right: "16px",
|
|
80
|
-
bottom: 0,
|
|
81
|
-
transform: "translateY(-50%)",
|
|
82
|
-
fontSize: "16px",
|
|
83
|
-
color: "rgba(0,0,0,0.28)",
|
|
84
|
-
pointerEvents: "none"
|
|
85
|
-
}
|
|
86
|
-
}, fullWidth: !0, required: !0 }) })
|
|
87
|
-
] }) }),
|
|
88
|
-
/* @__PURE__ */ o(E, { sx: {
|
|
89
|
-
px: 4,
|
|
90
|
-
pb: 4
|
|
91
|
-
}, children: [
|
|
92
|
-
/* @__PURE__ */ e(m, { autoFocus: !0, onClick: c, children: t._("Cancel") }),
|
|
93
|
-
/* @__PURE__ */ e(m, { variant: "contained", startIcon: u ? /* @__PURE__ */ e(H, { size: 20, color: "warning" }) : null, type: "submit", children: t._("Save") })
|
|
94
|
-
] })
|
|
95
|
-
] }) });
|
|
1
|
+
const g = (r, t = /* @__PURE__ */ new Date()) => {
|
|
2
|
+
if (!r)
|
|
3
|
+
return 0;
|
|
4
|
+
const e = new Date(r);
|
|
5
|
+
if (Number.isNaN(e.getTime()))
|
|
6
|
+
return 0;
|
|
7
|
+
const n = 1e3 * 60 * 60 * 24, T = Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()), o = Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), a = Math.floor((T - o) / n);
|
|
8
|
+
return a > 0 ? a : 0;
|
|
96
9
|
};
|
|
97
10
|
export {
|
|
98
|
-
|
|
11
|
+
g as getDaysOverdue
|
|
99
12
|
};
|
|
@@ -1,39 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
const a = {
|
|
2
|
+
AL: "Alabama",
|
|
3
|
+
AK: "Alaska",
|
|
4
|
+
AZ: "Arizona",
|
|
5
|
+
AR: "Arkansas",
|
|
6
|
+
CA: "California",
|
|
7
|
+
CO: "Colorado",
|
|
8
|
+
CT: "Connecticut",
|
|
9
|
+
DE: "Delaware",
|
|
10
|
+
FL: "Florida",
|
|
11
|
+
GA: "Georgia",
|
|
12
|
+
HI: "Hawaii",
|
|
13
|
+
ID: "Idaho",
|
|
14
|
+
IL: "Illinois",
|
|
15
|
+
IN: "Indiana",
|
|
16
|
+
IA: "Iowa",
|
|
17
|
+
KS: "Kansas",
|
|
18
|
+
KY: "Kentucky",
|
|
19
|
+
LA: "Louisiana",
|
|
20
|
+
ME: "Maine",
|
|
21
|
+
MD: "Maryland",
|
|
22
|
+
MA: "Massachusetts",
|
|
23
|
+
MI: "Michigan",
|
|
24
|
+
MN: "Minnesota",
|
|
25
|
+
MS: "Mississippi",
|
|
26
|
+
MO: "Missouri",
|
|
27
|
+
MT: "Montana",
|
|
28
|
+
NE: "Nebraska",
|
|
29
|
+
NV: "Nevada",
|
|
30
|
+
NH: "New Hampshire",
|
|
31
|
+
NJ: "New Jersey",
|
|
32
|
+
NM: "New Mexico",
|
|
33
|
+
NY: "New York",
|
|
34
|
+
NC: "North Carolina",
|
|
35
|
+
ND: "North Dakota",
|
|
36
|
+
OH: "Ohio",
|
|
37
|
+
OK: "Oklahoma",
|
|
38
|
+
OR: "Oregon",
|
|
39
|
+
PA: "Pennsylvania",
|
|
40
|
+
RI: "Rhode Island",
|
|
41
|
+
SC: "South Carolina",
|
|
42
|
+
SD: "South Dakota",
|
|
43
|
+
TN: "Tennessee",
|
|
44
|
+
TX: "Texas",
|
|
45
|
+
UT: "Utah",
|
|
46
|
+
VT: "Vermont",
|
|
47
|
+
VA: "Virginia",
|
|
48
|
+
WA: "Washington",
|
|
49
|
+
WV: "West Virginia",
|
|
50
|
+
WI: "Wisconsin",
|
|
51
|
+
WY: "Wyoming",
|
|
52
|
+
DC: "Washington D.C."
|
|
36
53
|
};
|
|
37
54
|
export {
|
|
38
|
-
|
|
55
|
+
a as USStatesEnum
|
|
39
56
|
};
|
|
@@ -1,9 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as l, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as d } from "react";
|
|
3
|
+
import { getCountriesArray as g } from "./index95.js";
|
|
4
|
+
import { Combobox as v, ComboboxInput as L, ComboboxContent as y, ComboboxList as N, ComboboxEmpty as M, ComboboxCollection as _, ComboboxItem as j } from "./index92.js";
|
|
5
|
+
import { useLingui as A } from "@lingui/react";
|
|
6
|
+
const E = ({
|
|
7
|
+
value: c,
|
|
8
|
+
onChange: u,
|
|
9
|
+
disabled: b,
|
|
10
|
+
invalid: C,
|
|
11
|
+
allowedCountries: a,
|
|
12
|
+
showClearButton: h = !0,
|
|
13
|
+
className: p,
|
|
14
|
+
container: x
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
i18n: t
|
|
18
|
+
} = A(), r = d(() => {
|
|
19
|
+
const e = g(t);
|
|
20
|
+
return a ? e.filter((n) => a.includes(n.code)) : e;
|
|
21
|
+
}, [a, t]), s = d(() => new Map(r.map((e) => [e.code, e])), [r]), m = b || r.length === 1, f = (e) => s.get(e)?.label ?? e;
|
|
22
|
+
return /* @__PURE__ */ l(v, { value: c ?? null, onValueChange: (e) => u?.(e ?? void 0), items: r.map((e) => e.code), itemToStringLabel: f, filter: (e, n, w) => {
|
|
23
|
+
const i = n.toLowerCase().trim();
|
|
24
|
+
return i ? e.toLowerCase().includes(i) || (w?.(e) ?? "").toLowerCase().includes(i) : !0;
|
|
25
|
+
}, disabled: m, children: [
|
|
26
|
+
/* @__PURE__ */ o(L, { showClear: h, disabled: m, className: p, placeholder: t._("Country"), "aria-invalid": C || void 0 }),
|
|
27
|
+
/* @__PURE__ */ o(y, { container: x, children: /* @__PURE__ */ l(N, { children: [
|
|
28
|
+
/* @__PURE__ */ o(M, { children: t._("No countries found") }),
|
|
29
|
+
/* @__PURE__ */ o(_, { children: (e) => /* @__PURE__ */ l(j, { value: e, children: [
|
|
30
|
+
/* @__PURE__ */ o("span", { children: s.get(e)?.label ?? e }),
|
|
31
|
+
/* @__PURE__ */ o("span", { className: "ttw:ml-auto ttw:text-xs ttw:text-muted-foreground", children: e })
|
|
32
|
+
] }, e) })
|
|
33
|
+
] }) })
|
|
34
|
+
] });
|
|
35
|
+
};
|
|
7
36
|
export {
|
|
8
|
-
|
|
37
|
+
E as MoniteCountryShadcn
|
|
9
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as T, Fragment as f } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { InvoiceDetailsPanel as k } from "./
|
|
2
|
+
import { InvoiceDetailsPanel as k } from "./index207.js";
|
|
3
3
|
import { CreateReceivables as O } from "./index40.js";
|
|
4
4
|
import { ReceivablesTableTabEnum as u, ReceivablesTable as $ } from "./index42.js";
|
|
5
5
|
import { MoniteScopedProviders as x } from "./index85.js";
|
|
@@ -11,8 +11,8 @@ import "./index94.js";
|
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "@mui/x-data-grid";
|
|
13
13
|
import { useComponentSettings as j } from "./index69.js";
|
|
14
|
-
import { useUserPermissions as y } from "./
|
|
15
|
-
import { AccessRestriction as U } from "./
|
|
14
|
+
import { useUserPermissions as y } from "./index143.js";
|
|
15
|
+
import { AccessRestriction as U } from "./index153.js";
|
|
16
16
|
import { Button as w } from "./index86.js";
|
|
17
17
|
import "clsx";
|
|
18
18
|
import "tailwind-merge";
|
|
@@ -1,56 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}) => {
|
|
12
|
-
const {
|
|
13
|
-
i18n: r
|
|
14
|
-
} = F(), {
|
|
15
|
-
api: d
|
|
16
|
-
} = y(), {
|
|
17
|
-
root: u
|
|
18
|
-
} = I(), [i, s] = n(!1), [m, c] = n(null), [f, g] = n(""), {
|
|
19
|
-
data: C,
|
|
20
|
-
isLoading: a,
|
|
21
|
-
refetch: A
|
|
22
|
-
} = d.finops.getEntityUsers.useQuery({
|
|
23
|
-
query: {
|
|
24
|
-
name__istartswith: f || void 0
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
enabled: i
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ o(M, { autoComplete: !0, includeInputInList: !0, filterSelectedOptions: !0, value: m, noOptionsText: r._("No users found"), slotProps: {
|
|
30
|
-
popper: {
|
|
31
|
-
container: u
|
|
32
|
-
}
|
|
33
|
-
}, open: i, onOpen: () => {
|
|
34
|
-
s(!0);
|
|
35
|
-
}, onClose: () => {
|
|
36
|
-
s(!1);
|
|
37
|
-
}, loading: a, options: C?.data || [], getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(), isOptionEqualToValue: (e, t) => e.id === t.id, filterOptions: (e) => e, onInputChange: (e, t) => {
|
|
38
|
-
g(t);
|
|
39
|
-
}, onChange: (e, t) => {
|
|
40
|
-
c(t), l(t?.id), A();
|
|
41
|
-
}, className: _("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", p), sx: {
|
|
42
|
-
"&.MuiAutocomplete-root": {
|
|
43
|
-
display: "flex",
|
|
44
|
-
alignItems: "center"
|
|
45
|
-
}
|
|
46
|
-
}, renderInput: (e) => /* @__PURE__ */ o(O, { ...e, variant: "standard", placeholder: r._("Added by"), className: "Monite-ApprovalAddedByFilter Monite-FilterControl", InputProps: {
|
|
47
|
-
...e.InputProps,
|
|
48
|
-
endAdornment: /* @__PURE__ */ h(x, { children: [
|
|
49
|
-
a ? /* @__PURE__ */ o(v, { color: "inherit", size: 20 }) : null,
|
|
50
|
-
e.InputProps.endAdornment
|
|
51
|
-
] })
|
|
52
|
-
} }) });
|
|
53
|
-
};
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Switch as a } from "radix-ui";
|
|
3
|
+
import { cn as e } from "./index102.js";
|
|
4
|
+
function o({
|
|
5
|
+
className: s,
|
|
6
|
+
size: r = "default",
|
|
7
|
+
...i
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ t(a.Root, { "data-slot": "switch", "data-size": r, className: e("ttw:peer ttw:group/switch ttw:inline-flex ttw:shrink-0 ttw:items-center ttw:rounded-full ttw:border ttw:border-transparent ttw:shadow-xs ttw:transition-all ttw:outline-none ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-[1.15rem] ttw:data-[size=default]:w-8 ttw:data-[size=sm]:h-3.5 ttw:data-[size=sm]:w-6 ttw:data-[state=checked]:bg-primary ttw:data-[state=unchecked]:bg-input ttw:dark:data-[state=unchecked]:bg-input/80", s), ...i, children: /* @__PURE__ */ t(a.Thumb, { "data-slot": "switch-thumb", className: e("ttw:pointer-events-none ttw:block ttw:rounded-full ttw:bg-background ttw:ring-0 ttw:transition-transform ttw:group-data-[size=default]/switch:size-4 ttw:group-data-[size=sm]/switch:size-3 ttw:data-[state=checked]:translate-x-[calc(100%-2px)] ttw:data-[state=unchecked]:translate-x-0 ttw:dark:data-[state=checked]:bg-primary-foreground ttw:dark:data-[state=unchecked]:bg-foreground") }) });
|
|
10
|
+
}
|
|
54
11
|
export {
|
|
55
|
-
|
|
12
|
+
o as Switch
|
|
56
13
|
};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Avatar as e } from "@mui/material";
|
|
4
|
-
const n = ({
|
|
5
|
-
alt: t,
|
|
6
|
-
fileId: a,
|
|
7
|
-
...r
|
|
8
|
-
}) => a ? /* @__PURE__ */ l(i, { fileId: a, alt: t, ...r }) : /* @__PURE__ */ l(e, { alt: t, ...r }), i = ({
|
|
9
|
-
alt: t,
|
|
10
|
-
fileId: a,
|
|
11
|
-
...r
|
|
12
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as e } from "./index59.js";
|
|
2
|
+
const a = () => {
|
|
13
3
|
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
api: t,
|
|
5
|
+
queryClient: i
|
|
6
|
+
} = e();
|
|
7
|
+
return t.finops.putEntitiesIdLogo.useMutation(void 0, {
|
|
8
|
+
onSuccess: async (s) => {
|
|
9
|
+
t.finops.getEntityUsersMyEntity.setQueryData({}, (o) => o && {
|
|
10
|
+
...o,
|
|
11
|
+
logo: s
|
|
12
|
+
}, i), await t.finops.getEntityUsersMyEntity.invalidateQueries(i);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
17
15
|
};
|
|
18
16
|
export {
|
|
19
|
-
|
|
17
|
+
a as useUploadEntityLogo
|
|
20
18
|
};
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { toast as o } from "react-hot-toast";
|
|
2
|
+
import { useMoniteContext as n } from "./index59.js";
|
|
3
|
+
import { useLingui as r } from "@lingui/react";
|
|
4
|
+
const p = (i) => {
|
|
5
|
+
const {
|
|
6
|
+
api: t,
|
|
7
|
+
queryClient: s
|
|
8
|
+
} = n(), {
|
|
9
|
+
i18n: e
|
|
10
|
+
} = r();
|
|
11
|
+
return t.finops.deleteEntitiesIdLogo.useMutation({
|
|
12
|
+
path: {
|
|
13
|
+
entity_id: i
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
onSuccess: async () => {
|
|
17
|
+
await t.finops.getEntityUsersMyEntity.invalidateQueries(s), o.success(e._("Logo was removed."));
|
|
18
|
+
},
|
|
19
|
+
onError: () => {
|
|
20
|
+
o.error(e._("Failed to remove logo."));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
9
23
|
};
|
|
10
24
|
export {
|
|
11
|
-
|
|
25
|
+
p as useDeleteEntityLogo
|
|
12
26
|
};
|
|
@@ -1,13 +1,52 @@
|
|
|
1
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as t, jsxs as e, Fragment as c } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useEffect as f } from "react";
|
|
3
|
+
import { useLingui as h } from "@lingui/react";
|
|
4
|
+
import { X as g, CloudUpload as x, AlertCircle as N, CheckCircle2 as b } from "lucide-react";
|
|
5
|
+
import { LoadingSpinner as y } from "./index133.js";
|
|
6
|
+
import { Typography as l } from "./index87.js";
|
|
7
|
+
import { twMerge as v } from "tailwind-merge";
|
|
8
|
+
import { UploadBar as C } from "./index460.js";
|
|
9
|
+
const U = ({
|
|
10
|
+
isUploading: o,
|
|
11
|
+
isSuccess: r,
|
|
12
|
+
isError: i,
|
|
13
|
+
isDraggingOver: d,
|
|
14
|
+
resetUpload: a,
|
|
15
|
+
fileName: m,
|
|
16
|
+
onClick: u
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
i18n: s
|
|
20
|
+
} = h(), w = o || r || i;
|
|
21
|
+
function p() {
|
|
22
|
+
return i ? /* @__PURE__ */ t(N, { className: "ttw:size-5 ttw:text-danger" }) : r ? /* @__PURE__ */ t(b, { className: "ttw:size-5 ttw:text-success" }) : /* @__PURE__ */ t(y, { className: "ttw:w-5 ttw:h-5" });
|
|
23
|
+
}
|
|
24
|
+
return f(() => {
|
|
25
|
+
let n;
|
|
26
|
+
return r && (n = setTimeout(() => a(), 2e3)), () => clearTimeout(n);
|
|
27
|
+
}, [r, a]), /* @__PURE__ */ t("div", { className: v("ttw:w-full ttw:h-38 ttw:bg-white ttw:box-border ttw:transition-all ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:px-4 ttw:py-6", d ? "ttw:border-solid ttw:border-primary" : "ttw:border-dashed ttw:border-border"), onClick: () => {
|
|
28
|
+
w || u();
|
|
29
|
+
}, children: w ? /* @__PURE__ */ e(c, { children: [
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-4 ttw:justify-center ttw:w-full", children: [
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:w-1/2 ttw:items-center", children: [
|
|
32
|
+
p(),
|
|
33
|
+
/* @__PURE__ */ t("span", { className: "ttw:w-full ttw:text-sm ttw:leading-5 ttw:text-medium ttw:text-neutral ttw:truncate", children: m })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:items-center", children: [
|
|
36
|
+
/* @__PURE__ */ t(C, { shouldStartProgress: o, isError: i, isSuccess: r }),
|
|
37
|
+
i && /* @__PURE__ */ t("button", { type: "button", disabled: o, onClick: a, className: "ttw:border-none ttw:cursor-pointer", children: /* @__PURE__ */ t(g, { className: "ttw:size-4" }) })
|
|
38
|
+
] })
|
|
39
|
+
] }),
|
|
40
|
+
i && /* @__PURE__ */ t(l, { variant: "body2", color: "destructive", className: "ttw:font-medium", children: s._("Wrong file format. Please, upload the file in JPEG, PNG or GIF format.") })
|
|
41
|
+
] }) : /* @__PURE__ */ e(c, { children: [
|
|
42
|
+
/* @__PURE__ */ t("div", { className: "ttw:p-3 ttw:bg-primary ttw:rounded-full", children: /* @__PURE__ */ t(x, { className: "ttw:text-white ttw:size-5" }) }),
|
|
43
|
+
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:font-medium", children: [
|
|
44
|
+
s._("Drop your files here, or "),
|
|
45
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline ttw:hover:cursor-pointer", children: s._("click to browse") })
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ t(l, { variant: "caption", color: "muted", children: s._("PNG, JPG or GIF (max. 10MB)") })
|
|
48
|
+
] }) });
|
|
49
|
+
};
|
|
11
50
|
export {
|
|
12
|
-
|
|
51
|
+
U as DragAndDropBox
|
|
13
52
|
};
|
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
const {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
1
|
+
import { useRef as v, useState as s, useCallback as r, useEffect as M } from "react";
|
|
2
|
+
const D = () => {
|
|
3
|
+
const t = v(null), [n, a] = s(!1), [u, o] = s(0), [f, c] = s(0), d = r((e) => {
|
|
4
|
+
a(!0), o(e.pageX - (t.current?.offsetLeft || 0)), c(t.current?.scrollLeft || 0);
|
|
5
|
+
}, []), h = r(() => {
|
|
6
|
+
a(!1);
|
|
7
|
+
}, []), i = r(() => {
|
|
8
|
+
a(!1);
|
|
9
|
+
}, []), L = r((e) => {
|
|
10
|
+
if (!n) return;
|
|
11
|
+
e.preventDefault();
|
|
12
|
+
const p = e.pageX - (t.current?.offsetLeft || 0) - u;
|
|
13
|
+
t.current && (t.current.scrollLeft = f - p);
|
|
14
|
+
}, [n, u, f]), l = r((e) => {
|
|
15
|
+
t.current && (e.deltaMode === 0 && Math.abs(e.deltaX) > Math.abs(e.deltaY) ? (e.preventDefault(), t.current.scrollLeft += e.deltaX * 2) : e.preventDefault());
|
|
16
|
+
}, []);
|
|
17
|
+
return M(() => {
|
|
18
|
+
const e = t.current;
|
|
19
|
+
if (e)
|
|
20
|
+
return e.addEventListener("wheel", l), () => {
|
|
21
|
+
e.removeEventListener("wheel", l);
|
|
22
|
+
};
|
|
23
|
+
}, [l]), {
|
|
24
|
+
containerRef: t,
|
|
25
|
+
handleMouseDown: d,
|
|
26
|
+
handleMouseLeave: h,
|
|
27
|
+
handleMouseUp: i,
|
|
28
|
+
handleMouseMove: L,
|
|
29
|
+
isDragging: n
|
|
30
|
+
};
|
|
15
31
|
};
|
|
16
32
|
export {
|
|
17
|
-
|
|
33
|
+
D as useDragScroll
|
|
18
34
|
};
|