@tesouro/embedded-components-react 0.2.91 → 0.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +6 -0
- package/dist/lib/ReceivablesWidget.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +27 -27
- 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 +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -2
- 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 +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +24 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +33 -12
- 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 +59 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +397 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +68 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +76 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +6 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +9 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +28 -42
- 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 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +22 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +121 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +46 -36
- 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 +43 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +46 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +11 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +152 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +57 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +69 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +3 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +79 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +58 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +194 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +14 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +80 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +27 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +42 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +111 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +69 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +200 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +24 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +111 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +133 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +20 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +20 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +23 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +183 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +20 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +49 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +4 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +5 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +88 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +44 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +47 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +203 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +10 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +390 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +96 -47
- 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 +57 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +13 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +18 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -392
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +20 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +19 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +27 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +113 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +68 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +26 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +92 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +99 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +17 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +13 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +100 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +26 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +6 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +12 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +7 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +211 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +146 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +85 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +36 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +50 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +66 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +346 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +14 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +14 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +20 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +33 -59
- 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 +31 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +14 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +17 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +250 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +181 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +24 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -73
- 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 +52 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +30 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +98 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +34 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +47 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +26 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +5 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +73 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -103
- 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 +19 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +72 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +44 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +63 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +44 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +20 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +187 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +102 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +81 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +284 -35
- 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 +49 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +15 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +85 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +225 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +37 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +6 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +2 -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 +62 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +156 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +27 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +78 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +149 -250
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +88 -175
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +76 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +17 -26
- 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 +47 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +46 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +42 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +29 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +112 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +22 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +53 -20
- 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 +480 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +168 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +25 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +126 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +17 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +30 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +39 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +58 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +92 -104
- 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 +111 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +82 -279
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +22 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +57 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +27 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +57 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +17 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +92 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +94 -93
- 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 +192 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +20 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +18 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +169 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +132 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +159 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +63 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +67 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +57 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +8 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +48 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +21 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +14 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +77 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +76 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +43 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +19 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +35 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +344 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +302 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +103 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +162 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +267 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +22 -25
- 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 +20 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +17 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +34 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +67 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +255 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +45 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +34 -16
- 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 +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +104 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +54 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +41 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +72 -19
- 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 +94 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +12 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +61 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +66 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +9 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +10 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +23 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +38 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +188 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +72 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +64 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +84 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +24 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +103 -33
- 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 +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +112 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +17 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +19 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +12 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +21 -74
- 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 +9 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +31 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +24 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +15 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +122 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +17 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -24
- 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 +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +71 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +7 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +54 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +30 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +4 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +127 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +53 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +96 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +64 -69
- 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 +44 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +24 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +18 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +24 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +37 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +14 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +29 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +68 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +39 -70
- 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 +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +50 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +46 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +70 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +85 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +54 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +52 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +55 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +29 -33
- 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 +55 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +69 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +13 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +39 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +81 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +96 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +75 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +21 -19
- 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 +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +32 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +40 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +36 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +13 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +49 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +30 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +52 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +19 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +42 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +10 -0
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +28 -28
- package/package.json +1 -1
|
@@ -1,16 +1,170 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as D } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Role as j } from "./index451.js";
|
|
3
|
+
import { User as g } from "./index304.js";
|
|
4
|
+
import { useApprovalPolicyScript as B } from "./index423.js";
|
|
5
|
+
import { useApprovalPolicyTrigger as R } from "./index416.js";
|
|
6
|
+
import { getCounterpartName as $ } from "./index7.js";
|
|
7
|
+
import { useMoniteContext as q } from "./index57.js";
|
|
8
|
+
import { useDialog as H } from "./index50.js";
|
|
9
|
+
import { DialogFooter as N } from "./index452.js";
|
|
10
|
+
import { DialogHeader as Q } from "./index453.js";
|
|
11
|
+
import { useLingui as U, Trans as E } from "@lingui/react";
|
|
12
|
+
import { Stack as c, Chip as w, DialogContent as F, Typography as u, Paper as A, Table as x, TableHead as C, TableRow as m, TableCell as o, TableBody as I } from "@mui/material";
|
|
13
|
+
import { toast as M } from "react-hot-toast";
|
|
14
|
+
const le = ({
|
|
15
|
+
approvalPolicy: d,
|
|
16
|
+
setIsEdit: P
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
i18n: a
|
|
20
|
+
} = U(), T = H(), {
|
|
21
|
+
api: h,
|
|
22
|
+
queryClient: _
|
|
23
|
+
} = q(), {
|
|
24
|
+
triggers: i,
|
|
25
|
+
getTriggerLabel: k,
|
|
26
|
+
getAmountLabel: S
|
|
27
|
+
} = R({
|
|
28
|
+
approvalPolicy: d
|
|
29
|
+
}), {
|
|
30
|
+
rules: t,
|
|
31
|
+
getRuleLabel: b
|
|
32
|
+
} = B({
|
|
33
|
+
approvalPolicy: d
|
|
34
|
+
}), {
|
|
35
|
+
data: L
|
|
36
|
+
} = h.finops.getTags.useQuery({
|
|
37
|
+
query: {
|
|
38
|
+
id__in: Array.isArray(i?.tags) ? i.tags : []
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
enabled: !!i?.tags?.length
|
|
42
|
+
}), {
|
|
43
|
+
data: W
|
|
44
|
+
} = h.finops.getCounterparts.useQuery({
|
|
45
|
+
query: {
|
|
46
|
+
id__in: Array.isArray(i?.counterpart_id) ? i.counterpart_id : []
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
enabled: !!i?.counterpart_id?.length
|
|
50
|
+
}), y = h.finops.deleteApprovalPoliciesId.useMutation(void 0, {
|
|
51
|
+
onSuccess: async () => {
|
|
52
|
+
await Promise.all([h.finops.getApprovalPolicies.invalidateQueries(_), h.finops.getApprovalPoliciesId.invalidateQueries({
|
|
53
|
+
parameters: {
|
|
54
|
+
path: {
|
|
55
|
+
approval_policy_id: d.id
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}, _)]), M.success(a._("Approval policy has been deleted"));
|
|
59
|
+
}
|
|
60
|
+
}), f = Object.keys(i).map((r) => {
|
|
61
|
+
const l = k(r);
|
|
62
|
+
let p;
|
|
63
|
+
switch (r) {
|
|
64
|
+
case "was_created_by_user_id":
|
|
65
|
+
Array.isArray(i[r]) && (p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
66
|
+
flexWrap: "wrap"
|
|
67
|
+
}, children: i[r].map((n) => /* @__PURE__ */ e(g, { userId: n }, n)) }));
|
|
68
|
+
break;
|
|
69
|
+
case "tags":
|
|
70
|
+
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
71
|
+
flexWrap: "wrap"
|
|
72
|
+
}, children: L?.data.map((n) => /* @__PURE__ */ e(w, { label: n.name }, n.id)) });
|
|
73
|
+
break;
|
|
74
|
+
case "counterpart_id":
|
|
75
|
+
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
76
|
+
flexWrap: "wrap"
|
|
77
|
+
}, children: W?.data.map((n) => /* @__PURE__ */ e(w, { label: $(n) }, n.id)) });
|
|
78
|
+
break;
|
|
79
|
+
case "amount":
|
|
80
|
+
p = /* @__PURE__ */ e("p", { children: S(i.amount?.value ?? [], i.amount?.currency ?? "EUR") });
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
p = r;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
label: l,
|
|
88
|
+
value: p
|
|
89
|
+
};
|
|
90
|
+
}), v = t && Object.keys(t)?.map((r) => {
|
|
91
|
+
if (!t[r]) return null;
|
|
92
|
+
switch (r) {
|
|
93
|
+
case "single_user":
|
|
94
|
+
return {
|
|
95
|
+
label: b(r),
|
|
96
|
+
value: /* @__PURE__ */ e(g, { userId: t[r].userId })
|
|
97
|
+
};
|
|
98
|
+
case "users_from_list":
|
|
99
|
+
return {
|
|
100
|
+
label: b(r, t[r].count),
|
|
101
|
+
value: /* @__PURE__ */ e(c, { direction: "column", gap: 1, sx: {
|
|
102
|
+
flexWrap: "wrap"
|
|
103
|
+
}, children: t[r].userIds?.map((l) => /* @__PURE__ */ e(g, { userId: l }, l)) })
|
|
104
|
+
};
|
|
105
|
+
case "roles_from_list":
|
|
106
|
+
return {
|
|
107
|
+
label: b(r),
|
|
108
|
+
value: /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
109
|
+
flexWrap: "wrap"
|
|
110
|
+
}, children: t[r].roleIds?.map((l) => /* @__PURE__ */ e(j, { roleId: l, quoted: !0 }, l)) })
|
|
111
|
+
};
|
|
112
|
+
case "approval_chain":
|
|
113
|
+
return {
|
|
114
|
+
label: b(r),
|
|
115
|
+
value: /* @__PURE__ */ e(c, { direction: "column", spacing: 0.5, children: t[r].chainUserIds?.map((l) => l ? /* @__PURE__ */ e(g, { userId: l }, l) : null) })
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
return /* @__PURE__ */ s(D, { children: [
|
|
120
|
+
/* @__PURE__ */ e(Q, { title: d?.name, closeButtonTooltip: a._("Close approval policy details") }),
|
|
121
|
+
/* @__PURE__ */ s(F, { children: [
|
|
122
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 2, mb: 1, children: a._("Description") }),
|
|
123
|
+
d?.description && /* @__PURE__ */ e(u, { variant: "body1", children: d.description }),
|
|
124
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Conditions") }),
|
|
125
|
+
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: /* @__PURE__ */ e(E, { id: "INKhSX", components: {
|
|
126
|
+
0: /* @__PURE__ */ e("strong", {})
|
|
127
|
+
} }) }),
|
|
128
|
+
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
129
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
130
|
+
/* @__PURE__ */ e(o, { children: a._("Condition") }),
|
|
131
|
+
/* @__PURE__ */ e(o, { children: a._("Criteria") })
|
|
132
|
+
] }) }),
|
|
133
|
+
/* @__PURE__ */ e(I, { children: f.length > 0 ? f.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
134
|
+
/* @__PURE__ */ e(o, { children: r.label }),
|
|
135
|
+
/* @__PURE__ */ e(o, { children: r.value })
|
|
136
|
+
] }, r.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No conditions") }) }) })
|
|
137
|
+
] }) }),
|
|
138
|
+
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Approval flow") }),
|
|
139
|
+
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: a._("Who needs to approve the document and how:") }),
|
|
140
|
+
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
141
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
142
|
+
/* @__PURE__ */ e(o, { children: a._("Approval type") }),
|
|
143
|
+
/* @__PURE__ */ e(o, { children: a._("Users or Roles") })
|
|
144
|
+
] }) }),
|
|
145
|
+
/* @__PURE__ */ e(I, { children: v && v.length > 0 ? v.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
146
|
+
/* @__PURE__ */ e(o, { children: r?.label }),
|
|
147
|
+
/* @__PURE__ */ e(o, { children: r?.value })
|
|
148
|
+
] }, r?.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No rules") }) }) })
|
|
149
|
+
] }) })
|
|
150
|
+
] }),
|
|
151
|
+
/* @__PURE__ */ e(N, { primaryButton: {
|
|
152
|
+
label: a._("Edit"),
|
|
153
|
+
onClick: () => P(!0)
|
|
154
|
+
}, deleteButton: {
|
|
155
|
+
onClick: () => {
|
|
156
|
+
y.mutate({
|
|
157
|
+
path: {
|
|
158
|
+
approval_policy_id: d.id
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
onSuccess: () => T?.onClose?.()
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
isLoading: y.isPending
|
|
165
|
+
} })
|
|
166
|
+
] });
|
|
167
|
+
};
|
|
13
168
|
export {
|
|
14
|
-
|
|
15
|
-
a as tagCategories
|
|
169
|
+
le as ApprovalPolicyView
|
|
16
170
|
};
|
|
@@ -1,82 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "@
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as t, jsxs as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as m } from "@lingui/react";
|
|
3
|
+
import { twMerge as d } from "tailwind-merge";
|
|
4
|
+
const p = ({
|
|
5
|
+
isAllStatus: s,
|
|
6
|
+
data: w,
|
|
7
|
+
amountOfItems: i,
|
|
8
|
+
selected: l,
|
|
9
|
+
onClick: n,
|
|
10
|
+
formatAmount: a,
|
|
11
|
+
statusChip: r,
|
|
12
|
+
allItemsText: o
|
|
13
13
|
}) => {
|
|
14
14
|
const {
|
|
15
|
-
i18n:
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
t === "This tag already exists." ? l?.(t) : u.error(t);
|
|
28
|
-
}
|
|
29
|
-
}), _ = i.finops.patchTagsId.useMutation(void 0, {
|
|
30
|
-
onSuccess: (e) => {
|
|
31
|
-
Promise.all([i.finops.getTags.invalidateQueries(o), i.finops.getTagsId.invalidateQueries({
|
|
32
|
-
parameters: {
|
|
33
|
-
path: {
|
|
34
|
-
tag_id: e.id
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}, o)]), m?.(e);
|
|
38
|
-
},
|
|
39
|
-
onError: (e) => {
|
|
40
|
-
u.error(d(n, e));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
tagsWithKeywords: Object.fromEntries(r.map((e) => [e.tag_id, e.keywords])),
|
|
45
|
-
inProgress: g.isPending || _.isPending,
|
|
46
|
-
createTag: (e) => g.mutateAsync({
|
|
47
|
-
...e
|
|
48
|
-
}, {
|
|
49
|
-
onSuccess: (t) => c?.(t)
|
|
50
|
-
}),
|
|
51
|
-
updateTag: (e, t) => _.mutateAsync({
|
|
52
|
-
path: {
|
|
53
|
-
tag_id: e
|
|
54
|
-
},
|
|
55
|
-
body: t
|
|
56
|
-
}),
|
|
57
|
-
updateOcrAutoTagging: (e, t = []) => {
|
|
58
|
-
const s = r.filter((y) => y.tag_id !== e);
|
|
59
|
-
if (s.length === r.length && !t.length)
|
|
60
|
-
return;
|
|
61
|
-
const p = t.length ? [...s, {
|
|
62
|
-
tag_id: e,
|
|
63
|
-
keywords: [...new Set(t)],
|
|
64
|
-
enabled: !0
|
|
65
|
-
}] : s;
|
|
66
|
-
p.length && f({
|
|
67
|
-
tax_mode: a.tax_mode,
|
|
68
|
-
payment_priority: a.payment_priority,
|
|
69
|
-
quote_signature_required: a.quote_signature_required,
|
|
70
|
-
receivable_edit_flow: a.receivable_edit_flow,
|
|
71
|
-
allow_purchase_order_autolinking: a.allow_purchase_order_autolinking,
|
|
72
|
-
generate_paid_invoice_pdf: a.generate_paid_invoice_pdf,
|
|
73
|
-
payables_ocr_auto_tagging: p,
|
|
74
|
-
payables_skip_approval_flow: a.payables_skip_approval_flow,
|
|
75
|
-
tax_inclusive_discount_mode: a.tax_inclusive_discount_mode
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
};
|
|
15
|
+
i18n: c
|
|
16
|
+
} = m();
|
|
17
|
+
return /* @__PURE__ */ t("button", { onClick: n, type: "button", className: d("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", l ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"), children: s ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
|
|
18
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-xs ttw:font-medium ttw:text-zinc-950", children: o ?? c._("All items") }),
|
|
19
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums", children: w })
|
|
20
|
+
] }) : /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
21
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
22
|
+
r,
|
|
23
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:text-zinc-950 ttw:tabular-nums", children: i ?? 0 })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums ttw:overflow-hidden ttw:whitespace-nowrap ttw:text-ellipsis", children: a(w) })
|
|
26
|
+
] }) });
|
|
79
27
|
};
|
|
80
28
|
export {
|
|
81
|
-
|
|
29
|
+
p as StatusCard
|
|
82
30
|
};
|
|
@@ -1,79 +1,129 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
1
|
+
import { startOfDay as c, startOfYear as r, subYears as m, endOfYear as s, startOfQuarter as o, subQuarters as b, endOfQuarter as u, subDays as a, startOfMonth as l, subMonths as d, endOfMonth as n, startOfWeek as _, subWeeks as i, endOfWeek as f, endOfDay as y } from "date-fns";
|
|
2
|
+
const v = [{
|
|
3
|
+
value: "today",
|
|
4
|
+
label: "Today",
|
|
5
|
+
group: "Current"
|
|
6
|
+
}, {
|
|
7
|
+
value: "this_week",
|
|
8
|
+
label: "This week",
|
|
9
|
+
group: "Current"
|
|
10
|
+
}, {
|
|
11
|
+
value: "this_month",
|
|
12
|
+
label: "This month",
|
|
13
|
+
group: "Current"
|
|
14
|
+
}, {
|
|
15
|
+
value: "this_quarter",
|
|
16
|
+
label: "This quarter",
|
|
17
|
+
group: "Current"
|
|
18
|
+
}, {
|
|
19
|
+
value: "this_year",
|
|
20
|
+
label: "This year",
|
|
21
|
+
group: "Current"
|
|
22
|
+
}, {
|
|
23
|
+
value: "yesterday",
|
|
24
|
+
label: "Yesterday",
|
|
25
|
+
group: "Past"
|
|
26
|
+
}, {
|
|
27
|
+
value: "last_week",
|
|
28
|
+
label: "Last week",
|
|
29
|
+
group: "Past"
|
|
30
|
+
}, {
|
|
31
|
+
value: "last_month",
|
|
32
|
+
label: "Last month",
|
|
33
|
+
group: "Past"
|
|
34
|
+
}, {
|
|
35
|
+
value: "last_30_days",
|
|
36
|
+
label: "Last 30 days",
|
|
37
|
+
group: "Past"
|
|
38
|
+
}, {
|
|
39
|
+
value: "last_90_days",
|
|
40
|
+
label: "Last 90 days",
|
|
41
|
+
group: "Past"
|
|
42
|
+
}, {
|
|
43
|
+
value: "last_quarter",
|
|
44
|
+
label: "Last quarter",
|
|
45
|
+
group: "Past"
|
|
46
|
+
}, {
|
|
47
|
+
value: "last_year",
|
|
48
|
+
label: "Last year",
|
|
49
|
+
group: "Past"
|
|
50
|
+
}];
|
|
51
|
+
function g(h) {
|
|
52
|
+
const e = c(/* @__PURE__ */ new Date());
|
|
53
|
+
switch (h) {
|
|
54
|
+
case "today":
|
|
55
|
+
return {
|
|
56
|
+
from: e,
|
|
57
|
+
to: y(e)
|
|
58
|
+
};
|
|
59
|
+
case "this_week":
|
|
60
|
+
return {
|
|
61
|
+
from: _(e),
|
|
62
|
+
to: f(e)
|
|
63
|
+
};
|
|
64
|
+
case "this_month":
|
|
65
|
+
return {
|
|
66
|
+
from: l(e),
|
|
67
|
+
to: n(e)
|
|
68
|
+
};
|
|
69
|
+
case "this_quarter":
|
|
70
|
+
return {
|
|
71
|
+
from: o(e),
|
|
72
|
+
to: u(e)
|
|
73
|
+
};
|
|
74
|
+
case "this_year":
|
|
75
|
+
return {
|
|
76
|
+
from: r(e),
|
|
77
|
+
to: s(e)
|
|
78
|
+
};
|
|
79
|
+
case "yesterday": {
|
|
80
|
+
const t = a(e, 1);
|
|
81
|
+
return {
|
|
82
|
+
from: t,
|
|
83
|
+
to: y(t)
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
case "last_week": {
|
|
87
|
+
const t = _(i(e, 1));
|
|
88
|
+
return {
|
|
89
|
+
from: t,
|
|
90
|
+
to: f(t)
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
case "last_month": {
|
|
94
|
+
const t = l(d(e, 1));
|
|
95
|
+
return {
|
|
96
|
+
from: t,
|
|
97
|
+
to: n(t)
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
case "last_30_days":
|
|
101
|
+
return {
|
|
102
|
+
from: a(e, 30),
|
|
103
|
+
to: e
|
|
104
|
+
};
|
|
105
|
+
case "last_90_days":
|
|
106
|
+
return {
|
|
107
|
+
from: a(e, 90),
|
|
108
|
+
to: e
|
|
109
|
+
};
|
|
110
|
+
case "last_quarter": {
|
|
111
|
+
const t = o(b(e, 1));
|
|
112
|
+
return {
|
|
113
|
+
from: t,
|
|
114
|
+
to: u(t)
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
case "last_year": {
|
|
118
|
+
const t = r(m(e, 1));
|
|
119
|
+
return {
|
|
120
|
+
from: t,
|
|
121
|
+
to: s(t)
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
70
125
|
}
|
|
71
126
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
C as FormField,
|
|
75
|
-
N as FormItem,
|
|
76
|
-
M as FormLabel,
|
|
77
|
-
P as FormMessage,
|
|
78
|
-
d as useFormField
|
|
127
|
+
v as DATE_PRESETS,
|
|
128
|
+
g as resolveDatePreset
|
|
79
129
|
};
|
|
@@ -1,46 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
className:
|
|
9
|
-
|
|
10
|
-
onChange: a,
|
|
11
|
-
ref: c,
|
|
12
|
-
...f
|
|
13
|
-
}) => {
|
|
14
|
-
const [r, n] = w.useState("");
|
|
15
|
-
w.useEffect(() => {
|
|
16
|
-
if (r.includes(",")) {
|
|
17
|
-
const t = /* @__PURE__ */ new Set([...e, ...r.split(",").map((s) => s.trim())]);
|
|
18
|
-
a(Array.from(t)), n("");
|
|
19
|
-
}
|
|
20
|
-
}, [r, a, e]);
|
|
21
|
-
const u = () => {
|
|
22
|
-
if (r) {
|
|
23
|
-
const t = /* @__PURE__ */ new Set([...e, r]);
|
|
24
|
-
a(Array.from(t)), n("");
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
return /* @__PURE__ */ l("div", { className: p(
|
|
28
|
-
// caveat: :has() variant requires tailwind v3.4 or above: https://tailwindcss.com/blog/tailwindcss-v3-4#new-has-variant
|
|
29
|
-
"ttw:has-[:focus-visible]:ttw:outline-none ttw:has-[:focus-visible]:ttw:ring-2 ttw:has-[:focus-visible]:ttw:ring-neutral-950 ttw:has-[:focus-visible]:ttw:ring-offset-2 dark:ttw:has-[:focus-visible]:ttw:ring-neutral-300 ttw:min-h-10 ttw:flex ttw:w-full ttw:flex-wrap ttw:gap-2 ttw:rounded-md ttw:border ttw:border-neutral-200 ttw:bg-white ttw:px-3 ttw:py-2 ttw:text-sm ttw:ring-offset-white ttw:disabled:ttw:cursor-not-allowed ttw:disabled:ttw:opacity-50 dark:ttw:border-neutral-800 dark:ttw:bg-neutral-950 dark:ttw:ring-offset-neutral-950",
|
|
30
|
-
i
|
|
31
|
-
), children: [
|
|
32
|
-
e.map((t) => /* @__PURE__ */ l(d, { variant: "secondary", children: [
|
|
33
|
-
t,
|
|
34
|
-
/* @__PURE__ */ o(m, { variant: "ghost", size: "icon", className: "ttw:ml-2 ttw:h-3 ttw:w-3", onClick: () => {
|
|
35
|
-
a(e.filter((s) => s !== t));
|
|
36
|
-
}, children: /* @__PURE__ */ o(h, { className: "ttw:w-3" }) })
|
|
37
|
-
] }, t)),
|
|
38
|
-
/* @__PURE__ */ o("input", { className: "ttw:flex-1 ttw:outline-none ttw:placeholder:ttw:text-neutral-500 dark:ttw:placeholder:ttw:text-neutral-400", value: r, onChange: (t) => n(t.target.value), onKeyDown: (t) => {
|
|
39
|
-
t.key === "Enter" || t.key === "," ? (t.preventDefault(), u()) : t.key === "Backspace" && r.length === 0 && e.length > 0 && (t.preventDefault(), a(e.slice(0, -1)));
|
|
40
|
-
}, ...f, ref: c })
|
|
41
|
-
] });
|
|
42
|
-
};
|
|
43
|
-
g.displayName = "InputTags";
|
|
1
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as o } from "./index100.js";
|
|
3
|
+
import * as r from "@radix-ui/react-label";
|
|
4
|
+
function l({
|
|
5
|
+
className: t,
|
|
6
|
+
...e
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ a(r.Root, { "data-slot": "label", className: o("ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:leading-none ttw:font-medium ttw:select-none ttw:group-data-[disabled=true]:pointer-events-none ttw:group-data-[disabled=true]:opacity-50 ttw:peer-disabled:cursor-not-allowed ttw:peer-disabled:opacity-50", t), ...e });
|
|
9
|
+
}
|
|
44
10
|
export {
|
|
45
|
-
|
|
11
|
+
l as Label
|
|
46
12
|
};
|
|
@@ -1,67 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { Collapse as _, Alert as j, List as v, ListItem as L, ListItemText as A } from "@mui/material";
|
|
6
|
-
const q = ({
|
|
7
|
-
generalError: e,
|
|
8
|
-
fieldErrors: n
|
|
9
|
-
}) => {
|
|
10
|
-
const t = o(() => {
|
|
11
|
-
for (const r of Object.values(n))
|
|
12
|
-
if (r) return !0;
|
|
13
|
-
return !1;
|
|
14
|
-
}, [n]);
|
|
15
|
-
return e || t ? /* @__PURE__ */ a(_, { in: !0, sx: {
|
|
16
|
-
":not(.MuiCollapse-hidden)": {
|
|
17
|
-
marginBottom: 1
|
|
18
|
-
}
|
|
19
|
-
}, children: /* @__PURE__ */ g(j, { severity: "error", sx: {
|
|
20
|
-
"& .MuiAlert-icon": {
|
|
21
|
-
alignItems: "center"
|
|
22
|
-
}
|
|
23
|
-
}, children: [
|
|
24
|
-
e && /* @__PURE__ */ a("div", { children: e }),
|
|
25
|
-
t && /* @__PURE__ */ a(v, { dense: !0, disablePadding: !0, sx: {
|
|
26
|
-
mt: e ? 1 : 0
|
|
27
|
-
}, children: Object.entries(n).map(([r, s]) => s ? /* @__PURE__ */ a(L, { disablePadding: !0, children: /* @__PURE__ */ a(A, { primary: s, primaryTypographyProps: {
|
|
28
|
-
sx: {
|
|
29
|
-
color: "inherit"
|
|
30
|
-
}
|
|
31
|
-
} }) }, r) : null) })
|
|
32
|
-
] }) }) : null;
|
|
33
|
-
}, C = (e) => {
|
|
1
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
+
import { useLingui as s } from "@lingui/react";
|
|
3
|
+
import { toast as r } from "react-hot-toast";
|
|
4
|
+
const p = () => {
|
|
34
5
|
const {
|
|
35
|
-
i18n:
|
|
36
|
-
} =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return null;
|
|
46
|
-
}, [t]), s = o(() => r("product.name") ?? r("name"), [r]), l = o(() => r("quantity"), [r]), m = o(() => r("price") ?? r("product.price.value") ?? r("product.price.currency"), [r]), c = o(() => r("tax_rate_value"), [r]), p = o(() => r("product.measure_unit_id") ?? r("product.measure_unit_name") ?? r("measure_unit"), [r]), d = o(() => r("product.type"), [r]), y = o(() => t.length === 0 || (s || l || m || c || p || d) ? void 0 : t.some((i) => {
|
|
47
|
-
if (!i || typeof i != "object") return !1;
|
|
48
|
-
const u = Object.keys(i);
|
|
49
|
-
return u.length > 0 && u.some((f) => i[f] != null);
|
|
50
|
-
}) ? n._("Please check the form for errors") : void 0, [t, s, l, m, c, p, d, n]);
|
|
51
|
-
return {
|
|
52
|
-
generalError: y,
|
|
53
|
-
fieldErrors: {
|
|
54
|
-
name: s,
|
|
55
|
-
quantity: l,
|
|
56
|
-
price: m,
|
|
57
|
-
tax: c,
|
|
58
|
-
measureUnit: p,
|
|
59
|
-
productType: d
|
|
6
|
+
i18n: e
|
|
7
|
+
} = s(), {
|
|
8
|
+
api: t,
|
|
9
|
+
queryClient: o
|
|
10
|
+
} = n();
|
|
11
|
+
return t.finops.deleteCounterpartsId.useMutation(void 0, {
|
|
12
|
+
onSuccess: async () => {
|
|
13
|
+
await t.finops.getCounterparts.invalidateQueries(o), r.success(e._("Counterpart has been deleted."));
|
|
60
14
|
},
|
|
61
|
-
|
|
62
|
-
|
|
15
|
+
onError: () => {
|
|
16
|
+
r.error(e._("Failed to delete Counterpart."));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
63
19
|
};
|
|
64
20
|
export {
|
|
65
|
-
|
|
66
|
-
C as useFormErrors
|
|
21
|
+
p as useDeleteCounterpart
|
|
67
22
|
};
|