@tesouro/embedded-components-react 0.2.224 → 0.2.226
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 +35 -0
- package/dist/lib/ReceivablesWidget.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index5.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/{index2.js → index8.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +22 -22
- 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 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -2
- 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 +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +34 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +1271 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +2 -1271
- 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 +79 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +6 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +31 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +8 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +121 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +216 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +46 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +48 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +13 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +15 -12
- 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 +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +147 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +54 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +71 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +3 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +61 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +37 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +79 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +99 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +57 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +24 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +12 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +113 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +68 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +14 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +9 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +76 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +55 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +76 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +39 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +227 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +461 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +109 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +535 -38
- 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 +26 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +25 -227
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +88 -462
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +97 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +14 -535
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +397 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +406 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +3 -3
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +10 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +62 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +155 -298
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +27 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +25 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +78 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +16 -18
- 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 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +165 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +133 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +159 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +12 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +62 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +64 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +58 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +6 -28
- 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 +6 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +58 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +59 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +14 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +54 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +29 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +18 -27
- 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 +14 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +74 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +42 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +71 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +5 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +488 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +164 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +41 -117
- 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 +149 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +19 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +6 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +123 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +44 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +60 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +25 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +121 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +41 -197
- 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 +117 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +106 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +45 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +205 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +66 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +23 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +31 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +31 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +4 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +19 -18
- 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 +34 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +29 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +31 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +29 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +40 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +60 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +28 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +118 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +22 -10
- 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 +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +54 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +2 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +96 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +97 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +208 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +61 -29
- 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 +93 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +110 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +87 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +39 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +344 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +302 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +98 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +159 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +267 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +23 -489
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +18 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +32 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +5 -38
- 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 +11 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +13 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +22 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +45 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +67 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +16 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +14 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +117 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +81 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +8 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +51 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +82 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +17 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +86 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +263 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +38 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +65 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +141 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +94 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +2 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +280 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +49 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +15 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +65 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +24 -61
- 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 +22 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +120 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +18 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +16 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +92 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +30 -118
- 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 +54 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +36 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +4 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +127 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +34 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +30 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +8 -41
- 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 +18 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +74 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +84 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +55 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +49 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +50 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +36 -33
- 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 +45 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +33 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +85 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +24 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +103 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +111 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +75 -85
- 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 +67 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +33 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +12 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +24 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +15 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +21 -38
- 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 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +38 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +51 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +16 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +58 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +28 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +41 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +34 -50
- 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 +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +79 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- 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 +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/dist/packages/shared-ui-shadcn/dist/index.js +1 -1
- package/package.json +1 -1
- /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/{index3.js → index9.js} +0 -0
|
@@ -1,170 +1,22 @@
|
|
|
1
|
-
import { jsx as e
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
setIsEdit: P
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { lazy as r, useState as i, useEffect as a, Suspense as u } from "react";
|
|
3
|
+
const m = r(() => import("./index473.js")), C = ({
|
|
4
|
+
url: o,
|
|
5
|
+
mimetype: l,
|
|
6
|
+
name: t,
|
|
7
|
+
showCloseButton: s,
|
|
8
|
+
onClose: n
|
|
9
|
+
}) => l === "application/pdf" ? /* @__PURE__ */ e(c, { url: o, showCloseButton: s, onClose: n }) : /* @__PURE__ */ e("img", { className: "Monite-ImageFileViewer", src: o, alt: t, loading: "lazy", style: {
|
|
10
|
+
width: "100%",
|
|
11
|
+
objectFit: "contain"
|
|
12
|
+
} }), c = ({
|
|
13
|
+
url: o,
|
|
14
|
+
showCloseButton: l,
|
|
15
|
+
onClose: t
|
|
17
16
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
} = $(), 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: U(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
|
-
] });
|
|
17
|
+
const [s, n] = i(!1);
|
|
18
|
+
return a(() => n(!0), []), s ? /* @__PURE__ */ e(u, { fallback: null, children: /* @__PURE__ */ e(m, { url: o, showCloseButton: l, onClose: t }) }) : null;
|
|
167
19
|
};
|
|
168
20
|
export {
|
|
169
|
-
|
|
21
|
+
C as FileViewer
|
|
170
22
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as r, jsxs as u, Fragment as $ } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { InvoicesCounterpartCell as q } from "./
|
|
3
|
-
import { InvoiceRecurrenceStatusChip as B } from "./
|
|
2
|
+
import { InvoicesCounterpartCell as q } from "./index176.js";
|
|
3
|
+
import { InvoiceRecurrenceStatusChip as B } from "./index177.js";
|
|
4
4
|
import { InvoiceStatusChip as E } from "./index55.js";
|
|
5
|
-
import { InvoicesFilterBar as U } from "./
|
|
6
|
-
import { InvoiceStatusCardsFilter as V } from "./
|
|
7
|
-
import { useInvoicesFilter as j } from "./
|
|
8
|
-
import { useGetReceivables as G } from "./
|
|
5
|
+
import { InvoicesFilterBar as U } from "./index178.js";
|
|
6
|
+
import { InvoiceStatusCardsFilter as V } from "./index179.js";
|
|
7
|
+
import { useInvoicesFilter as j } from "./index142.js";
|
|
8
|
+
import { useGetReceivables as G } from "./index143.js";
|
|
9
9
|
import { useMoniteContext as x } from "./index57.js";
|
|
10
10
|
import { MoniteScopedProviders as Q } from "./index83.js";
|
|
11
11
|
import { useCurrencies as W } from "./index58.js";
|
|
12
|
-
import { ReceivableCursorFields as C } from "./
|
|
13
|
-
import { GetNoRowsOverlay as H } from "./
|
|
14
|
-
import { DueDateCell as J } from "./
|
|
15
|
-
import { DataTable as X } from "./
|
|
16
|
-
import { Skeleton as Y } from "./
|
|
12
|
+
import { ReceivableCursorFields as C } from "./index180.js";
|
|
13
|
+
import { GetNoRowsOverlay as H } from "./index158.js";
|
|
14
|
+
import { DueDateCell as J } from "./index181.js";
|
|
15
|
+
import { DataTable as X } from "./index159.js";
|
|
16
|
+
import { Skeleton as Y } from "./index132.js";
|
|
17
17
|
import { useLingui as Z } from "@lingui/react";
|
|
18
18
|
import tt from "@mui/icons-material/Sync";
|
|
19
19
|
import { useState as d, useEffect as w } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { getCommonRecurrenceIterationStatusLabel as w } from "./
|
|
2
|
+
import { getCommonRecurrenceIterationStatusLabel as w } from "./index263.js";
|
|
3
3
|
import "date-fns";
|
|
4
4
|
import { Badge as s } from "./index221.js";
|
|
5
5
|
import { cn as g } from "./index100.js";
|
|
@@ -10,7 +10,7 @@ import "@tanstack/react-query";
|
|
|
10
10
|
import "date-fns";
|
|
11
11
|
import { useEntityUserByAuthToken as x } from "./index75.js";
|
|
12
12
|
import "react-hot-toast";
|
|
13
|
-
import { MoniteCard as g } from "./
|
|
13
|
+
import { MoniteCard as g } from "./index435.js";
|
|
14
14
|
import _ from "@mui/icons-material/DriveFileRenameOutline";
|
|
15
15
|
import { Box as o, Typography as r, Skeleton as v, Alert as b } from "@mui/material";
|
|
16
16
|
const L = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, Fragment as b, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { manualPaymentRecordValidationSchema as g } from "./
|
|
2
|
+
import { manualPaymentRecordValidationSchema as g } from "./index186.js";
|
|
3
3
|
import { useCurrencies as y } from "./index58.js";
|
|
4
4
|
import { useMemo as _, useEffect as C } from "react";
|
|
5
5
|
import "./index92.js";
|
|
@@ -8,9 +8,9 @@ import "react-dom";
|
|
|
8
8
|
import "./index57.js";
|
|
9
9
|
import "@mui/x-data-grid";
|
|
10
10
|
import { safeZodResolver as v } from "./index258.js";
|
|
11
|
-
import { RHFDatePicker as D } from "./
|
|
12
|
-
import { RHFTextField as S } from "./
|
|
13
|
-
import { RHFTimePicker as R } from "./
|
|
11
|
+
import { RHFDatePicker as D } from "./index436.js";
|
|
12
|
+
import { RHFTextField as S } from "./index437.js";
|
|
13
|
+
import { RHFTimePicker as R } from "./index438.js";
|
|
14
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
15
|
import { useForm as V } from "react-hook-form";
|
|
16
16
|
const Z = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMoniteContext as c } from "./index57.js";
|
|
2
|
-
import { getAPIErrorMessage as o } from "./
|
|
2
|
+
import { getAPIErrorMessage as o } from "./index126.js";
|
|
3
3
|
import { useLingui as u } from "@lingui/react";
|
|
4
4
|
import { toast as a } from "react-hot-toast";
|
|
5
5
|
const f = (s, t) => {
|
|
@@ -1,98 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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
|
-
} = B(g ?? "");
|
|
30
|
-
return w(() => {
|
|
31
|
-
y && e?.payment_intent?.status === "processing" && f?.(r ?? "", e?.payment_intent?.status ?? "");
|
|
32
|
-
}, [e, y, f, r]), {
|
|
33
|
-
handlePay: async () => {
|
|
34
|
-
if (!d) {
|
|
35
|
-
c.error(t._("Vendor not found. Please create a vendor first."));
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (!_)
|
|
39
|
-
try {
|
|
40
|
-
if (E) {
|
|
41
|
-
c.error(t._("Payment link is still loading. Please wait a moment and try again."));
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (!g || y && e?.payment_intent?.status !== "created") {
|
|
45
|
-
if (P(!0), !r) throw new Error("Payable ID is undefined");
|
|
46
|
-
const a = await b(
|
|
47
|
-
r,
|
|
48
|
-
d,
|
|
49
|
-
["sepa_credit"],
|
|
50
|
-
60
|
|
51
|
-
// 60 days from now
|
|
52
|
-
);
|
|
53
|
-
if (a.payment_page_url)
|
|
54
|
-
p(a.id), o(a.payment_page_url);
|
|
55
|
-
else
|
|
56
|
-
throw p(null), o(null), new Error("No payment page URL in response");
|
|
57
|
-
} else if (e?.payment_page_url)
|
|
58
|
-
o(e.payment_page_url);
|
|
59
|
-
else
|
|
60
|
-
throw new Error("No payment page URL in existing payment link");
|
|
61
|
-
m(!0);
|
|
62
|
-
} catch (a) {
|
|
63
|
-
console.error("Payment link creation/retrieval error:", a), c.error(i && s?.status === "created" ? t._("Failed to retrieve payment link. Please try again.") : t._("Failed to create payment link. Please try again.")), m(!1);
|
|
64
|
-
} finally {
|
|
65
|
-
P(!1);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
isCreatingPaymentLink: _,
|
|
69
|
-
modalComponent: /* @__PURE__ */ n(j, { open: L, onClose: async () => {
|
|
70
|
-
await C(), m(!1), o(null);
|
|
71
|
-
}, container: k, children: /* @__PURE__ */ n(x, { sx: {
|
|
72
|
-
position: "absolute",
|
|
73
|
-
top: "50%",
|
|
74
|
-
left: "50%",
|
|
75
|
-
transform: "translate(-50%, -50%)",
|
|
76
|
-
width: "80%",
|
|
77
|
-
maxWidth: 600,
|
|
78
|
-
bgcolor: "background.paper",
|
|
79
|
-
boxShadow: 24,
|
|
80
|
-
p: 4,
|
|
81
|
-
borderRadius: 2
|
|
82
|
-
}, children: u ? /* @__PURE__ */ n("iframe", { src: u, title: "Payment Page", width: "100%", height: "400px", style: {
|
|
83
|
-
border: "none"
|
|
84
|
-
} }) : /* @__PURE__ */ I(x, { sx: {
|
|
85
|
-
display: "flex",
|
|
86
|
-
flexDirection: "column",
|
|
87
|
-
alignItems: "center",
|
|
88
|
-
gap: 2,
|
|
89
|
-
py: 4
|
|
90
|
-
}, children: [
|
|
91
|
-
/* @__PURE__ */ n(D, {}),
|
|
92
|
-
/* @__PURE__ */ n("p", { children: t._("Loading payment page...") })
|
|
93
|
-
] }) }) })
|
|
94
|
-
};
|
|
95
|
-
};
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "./index100.js";
|
|
3
|
+
import * as o from "@radix-ui/react-popover";
|
|
4
|
+
function m({
|
|
5
|
+
...t
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ e(o.Root, { "data-slot": "popover", ...t });
|
|
8
|
+
}
|
|
9
|
+
function d({
|
|
10
|
+
ref: t,
|
|
11
|
+
...a
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e(o.Trigger, { "data-slot": "popover-trigger", ref: t, ...a });
|
|
14
|
+
}
|
|
15
|
+
d.displayName = o.Trigger.displayName;
|
|
16
|
+
function f({
|
|
17
|
+
className: t,
|
|
18
|
+
align: a = "center",
|
|
19
|
+
sideOffset: r = 4,
|
|
20
|
+
...n
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(o.Content, { "data-slot": "popover-content", align: a, sideOffset: r, className: i("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:w-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", t), ...n }) });
|
|
23
|
+
}
|
|
24
|
+
function l({
|
|
25
|
+
...t
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ e(o.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
28
|
+
}
|
|
96
29
|
export {
|
|
97
|
-
|
|
30
|
+
m as Popover,
|
|
31
|
+
l as PopoverAnchor,
|
|
32
|
+
f as PopoverContent,
|
|
33
|
+
d as PopoverTrigger
|
|
98
34
|
};
|
|
@@ -1,40 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const v = (i, n, s, p) => {
|
|
6
|
-
const {
|
|
7
|
-
api: e,
|
|
8
|
-
queryClient: t
|
|
9
|
-
} = u(), {
|
|
10
|
-
i18n: o
|
|
11
|
-
} = m();
|
|
12
|
-
return e.finops.postApprovalRequestsIdReject.useMutation({
|
|
13
|
-
path: {
|
|
14
|
-
approval_request_id: i
|
|
15
|
-
}
|
|
16
|
-
}, {
|
|
17
|
-
onSuccess: () => {
|
|
18
|
-
if (e.finops.getApprovalRequests.invalidateQueries(t), a.success(o._("Payable “{document_id}” has been rejected", {
|
|
19
|
-
document_id: p
|
|
20
|
-
})), !!s)
|
|
21
|
-
return n?.(s ?? ""), new Promise((r) => {
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
24
|
-
parameters: {
|
|
25
|
-
path: {
|
|
26
|
-
payable_id: s ?? ""
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, t), e.finops.getPayables.invalidateQueries(t)]).then(() => r());
|
|
30
|
-
}, 500);
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
onError: (r) => {
|
|
34
|
-
a.error(l(o, r));
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
};
|
|
1
|
+
function r(l, e) {
|
|
2
|
+
if (l !== void 0) return l;
|
|
3
|
+
if (e !== void 0) return null;
|
|
4
|
+
}
|
|
38
5
|
export {
|
|
39
|
-
|
|
6
|
+
r as resolveNullableUpdate
|
|
40
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as $ } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { ScopedCssBaselineContainerClassName as z } from "./index104.js";
|
|
3
3
|
import { InvoiceStatusChip as D } from "./index55.js";
|
|
4
|
-
import { ReceivableFilters as Q } from "./
|
|
4
|
+
import { ReceivableFilters as Q } from "./index182.js";
|
|
5
5
|
import "react-hot-toast";
|
|
6
6
|
import { useMoniteContext as k } from "./index57.js";
|
|
7
7
|
import { useLingui as G } from "@lingui/react";
|
|
@@ -11,7 +11,7 @@ import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
|
11
11
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
12
12
|
import "@tanstack/react-query";
|
|
13
13
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
14
|
-
import { useReceivablesFilters as B } from "./
|
|
14
|
+
import { useReceivablesFilters as B } from "./index183.js";
|
|
15
15
|
import "date-fns";
|
|
16
16
|
import { useCurrencies as W } from "./index58.js";
|
|
17
17
|
import "clsx";
|
|
@@ -19,19 +19,19 @@ import "tailwind-merge";
|
|
|
19
19
|
import "@radix-ui/react-dropdown-menu";
|
|
20
20
|
import "lucide-react";
|
|
21
21
|
import "./index84.js";
|
|
22
|
-
import { useGetReceivables as j } from "./
|
|
22
|
+
import { useGetReceivables as j } from "./index143.js";
|
|
23
23
|
import "./index92.js";
|
|
24
24
|
import { useAreCounterpartsLoading as q, defaultCounterpartColumnWidth as E, useAutosizeGridColumns as V } from "./index62.js";
|
|
25
25
|
import "react-hook-form";
|
|
26
26
|
import { MoniteScopedProviders as H } from "./index83.js";
|
|
27
|
-
import { ReceivableCursorFields as S } from "./
|
|
28
|
-
import { CounterpartNameCellById as Y } from "./
|
|
29
|
-
import { DataGridEmptyState as J } from "./
|
|
30
|
-
import { GetNoRowsOverlay as K } from "./
|
|
31
|
-
import { DueDateCell as U } from "./
|
|
27
|
+
import { ReceivableCursorFields as S } from "./index180.js";
|
|
28
|
+
import { CounterpartNameCellById as Y } from "./index157.js";
|
|
29
|
+
import { DataGridEmptyState as J } from "./index184.js";
|
|
30
|
+
import { GetNoRowsOverlay as K } from "./index158.js";
|
|
31
|
+
import { DueDateCell as U } from "./index181.js";
|
|
32
32
|
import { TablePagination as X } from "./index86.js";
|
|
33
|
-
import { classNames as Z } from "./
|
|
34
|
-
import { hasSelectedText as ee } from "./
|
|
33
|
+
import { classNames as Z } from "./index185.js";
|
|
34
|
+
import { hasSelectedText as ee } from "./index160.js";
|
|
35
35
|
import { Stack as te, Typography as oe, Box as ae } from "@mui/material";
|
|
36
36
|
import { DataGrid as ie } from "@mui/x-data-grid";
|
|
37
37
|
const We = (l) => /* @__PURE__ */ o(H, { children: /* @__PURE__ */ o(re, { ...l }) }), re = ({
|
|
@@ -1,37 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} = d();
|
|
12
|
-
return e.finops.postApprovalRequestsIdApprove.useMutation({
|
|
13
|
-
path: {
|
|
14
|
-
approval_request_id: i
|
|
15
|
-
}
|
|
16
|
-
}, {
|
|
17
|
-
onSuccess: () => (e.finops.getApprovalRequests.invalidateQueries(o), a.success(r._('Payable "{document_id}" has been approved', {
|
|
18
|
-
document_id: n ?? "document id is unknown"
|
|
19
|
-
})), p?.(t ?? ""), new Promise((s) => {
|
|
20
|
-
setTimeout(() => {
|
|
21
|
-
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
22
|
-
parameters: {
|
|
23
|
-
path: {
|
|
24
|
-
payable_id: t ?? ""
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}, o), e.finops.getPayables.invalidateQueries(o)]).then(() => s());
|
|
28
|
-
}, 500);
|
|
29
|
-
})),
|
|
30
|
-
onError: (s) => {
|
|
31
|
-
a.error(m(r, s));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
};
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Switch as a } from "radix-ui";
|
|
3
|
+
import { cn as e } from "./index100.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
|
+
}
|
|
35
11
|
export {
|
|
36
|
-
|
|
12
|
+
o as Switch
|
|
37
13
|
};
|
|
@@ -1,71 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Button as o } from "./index84.js";
|
|
4
|
-
import { Input as p } from "./index123.js";
|
|
5
|
-
import { TableRow as C, TableCell as M } from "./index275.js";
|
|
6
|
-
import { zodResolver as S } from "@hookform/resolvers/zod";
|
|
7
|
-
import { useLingui as U } from "@lingui/react";
|
|
8
|
-
import { Check as $, X as j } from "lucide-react";
|
|
9
|
-
import { useForm as k, Controller as f } from "react-hook-form";
|
|
10
|
-
import { useCreateMeasureUnit as E } from "./index380.js";
|
|
11
|
-
import { useUpdateMeasureUnit as V } from "./index381.js";
|
|
12
|
-
const P = {
|
|
13
|
-
name: "",
|
|
14
|
-
description: ""
|
|
15
|
-
}, D = ({
|
|
16
|
-
id: s,
|
|
17
|
-
isEditMode: n,
|
|
18
|
-
initialValues: h = P,
|
|
19
|
-
onCancel: g,
|
|
20
|
-
onEdit: v
|
|
21
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as e } from "./index57.js";
|
|
2
|
+
const a = () => {
|
|
22
3
|
const {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), w = E(() => y(), (e) => c("name", {
|
|
33
|
-
type: "custom",
|
|
34
|
-
message: e
|
|
35
|
-
})), i = V(s ?? "", () => v?.(), (e) => c("name", {
|
|
36
|
-
type: "custom",
|
|
37
|
-
message: e
|
|
38
|
-
})), x = (e) => {
|
|
39
|
-
if (!n || !s) {
|
|
40
|
-
console.error("handleEdit called without valid id or edit mode");
|
|
41
|
-
return;
|
|
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);
|
|
42
13
|
}
|
|
43
|
-
|
|
44
|
-
}, N = (e) => {
|
|
45
|
-
w.mutate(e);
|
|
46
|
-
}, u = w.isPending || i.isPending;
|
|
47
|
-
return /* @__PURE__ */ t(C, { className: "ttw:border-border ttw:hover:bg-transparent", children: /* @__PURE__ */ t(M, { colSpan: 3, className: "ttw:w-full ttw:whitespace-normal", children: /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start", children: [
|
|
48
|
-
/* @__PURE__ */ t(f, { name: "name", control: d, render: ({
|
|
49
|
-
field: e,
|
|
50
|
-
fieldState: {
|
|
51
|
-
error: r
|
|
52
|
-
}
|
|
53
|
-
}) => /* @__PURE__ */ a("div", { className: "ttw:w-[35%]", children: [
|
|
54
|
-
/* @__PURE__ */ t(p, { ...e, disabled: u, "aria-invalid": !!r || void 0, className: "ttw:h-8" }),
|
|
55
|
-
r && /* @__PURE__ */ t("p", { className: "ttw:text-xs ttw:text-destructive ttw:mt-1", children: r.message })
|
|
56
|
-
] }) }),
|
|
57
|
-
/* @__PURE__ */ t(f, { name: "description", control: d, render: ({
|
|
58
|
-
field: e,
|
|
59
|
-
fieldState: {
|
|
60
|
-
error: r
|
|
61
|
-
}
|
|
62
|
-
}) => /* @__PURE__ */ t("div", { className: "ttw:w-[55%]", children: /* @__PURE__ */ t(p, { ...e, id: e.name, disabled: u, "aria-invalid": !!r || void 0, className: "ttw:h-8" }) }) }),
|
|
63
|
-
n ? /* @__PURE__ */ a("div", { className: "ttw:flex ttw:justify-center ttw:gap-1", children: [
|
|
64
|
-
/* @__PURE__ */ t(o, { variant: "outline", size: "icon", className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", disabled: i.isPending, onClick: l(x), children: /* @__PURE__ */ t($, { className: "ttw:size-4" }) }),
|
|
65
|
-
/* @__PURE__ */ t(o, { variant: "outline", size: "icon", className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", onClick: g, children: /* @__PURE__ */ t(j, { className: "ttw:size-4" }) })
|
|
66
|
-
] }) : /* @__PURE__ */ t(o, { variant: "outline", size: "sm", className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0", onClick: l(N), children: m._("Add") })
|
|
67
|
-
] }) }) });
|
|
14
|
+
});
|
|
68
15
|
};
|
|
69
16
|
export {
|
|
70
|
-
|
|
17
|
+
a as useUploadEntityLogo
|
|
71
18
|
};
|