@tesouro/embedded-components-react 0.2.27 → 0.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -12
- 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 +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1270 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +8 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +97 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +8 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +57 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +76 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +6 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +29 -5
- 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 +32 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +8 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +47 -10
- 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 +47 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +39 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +11 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +152 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +55 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +71 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +3 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +63 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +35 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +82 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +5 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +24 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +12 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +18 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +2 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +20 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +20 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +27 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +117 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +66 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +43 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +75 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +54 -246
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +193 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +20 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +75 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +28 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +40 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +7 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +245 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +181 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +13 -47
- 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 +111 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +80 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +107 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +109 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +58 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +59 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +86 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +48 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +35 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +113 -18
- 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 +68 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +185 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +30 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +124 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +59 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +26 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +18 -367
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +44 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +366 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +90 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +86 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +96 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +99 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +26 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +6 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +10 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +214 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +58 -212
- 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 +398 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +69 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +407 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +46 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +75 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +50 -20
- 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 +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +54 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +342 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +35 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +37 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +14 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +17 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +20 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +38 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +28 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +98 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +46 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +2 -14
- 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 +93 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +94 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +189 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +40 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +312 -458
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +293 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +99 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +156 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +264 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +24 -113
- 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 +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +22 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +53 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +29 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +18 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +22 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +32 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +1 -1
- 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 +14 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +72 -337
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +61 -297
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +149 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +10 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +19 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +489 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +166 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +42 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +58 -92
- 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 +30 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +110 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +44 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +72 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +62 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +42 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +24 -62
- 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 +184 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +108 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +81 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +289 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +49 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +15 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +84 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +222 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +34 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +17 -105
- 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 +28 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +38 -286
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +61 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +96 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +107 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +85 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +49 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +107 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +62 -33
- 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 +76 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +40 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +157 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +27 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +27 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +77 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +127 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +45 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +37 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +32 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +103 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +33 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +57 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +37 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +58 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +12 -23
- 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 +94 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +126 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +40 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +12 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +18 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +169 -61
- 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 +125 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +152 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +59 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +65 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +53 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +6 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +62 -10
- 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 +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +60 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +14 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +255 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +24 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +25 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +97 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +14 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +96 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +33 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +33 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +49 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +66 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +38 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +25 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +21 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +123 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +18 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +16 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +16 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +16 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +71 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +33 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +71 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +67 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +36 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +67 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +85 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +103 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +112 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +64 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +54 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +24 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +37 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +55 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +9 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +17 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +34 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +17 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +68 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +52 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +37 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +41 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +35 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +13 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +46 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +54 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +30 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +52 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +71 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +86 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +51 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +54 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +57 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +35 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +69 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +17 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +83 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +39 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +93 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +74 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +20 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +15 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +47 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +27 -27
- package/package.json +1 -1
|
@@ -1,493 +1,347 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as we } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useGetPayableCounterpart as Fe } from "./index16.js";
|
|
3
|
+
import { usePayableDetailsThemeProps as z } from "./index17.js";
|
|
4
|
+
import { useMemo as Be, useState as Ie, useRef as Se, useEffect as v } from "react";
|
|
5
|
+
import { useMoniteContext as Pe } from "./index59.js";
|
|
6
|
+
import { useUserPermissions as Ae } from "./index133.js";
|
|
7
|
+
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
8
|
+
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
+
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
10
|
+
import "@tanstack/react-query";
|
|
11
|
+
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
12
|
+
import { Scope as ke } from "../../shared/data-access/dist/lib/scopes.js";
|
|
13
|
+
import { useLingui as Ne } from "@lingui/react";
|
|
14
|
+
import "react-hot-toast";
|
|
15
|
+
import { PayableLineItemsForm as Ve } from "./index485.js";
|
|
16
|
+
import { prepareDefaultValues as H, calculateTotalsForPayable as Re, findDefaultBankAccount as Me, isFieldRequired as p, prepareSubmit as qe } from "./index342.js";
|
|
17
|
+
import { usePayableDetailsForm as Ge } from "./index486.js";
|
|
18
|
+
import { getPayableDetailsFormSchema as We, isFieldRequiredByValidations as I } from "./index487.js";
|
|
19
|
+
import { ScopedCssBaselineContainerClassName as Oe } from "./index106.js";
|
|
20
|
+
import { CounterpartDetails as je } from "./index2.js";
|
|
21
|
+
import { CounterpartAutocomplete as Le } from "./index4.js";
|
|
11
22
|
import "./index86.js";
|
|
12
|
-
import { useLingui as Ue, Trans as Pe } from "@lingui/react";
|
|
13
23
|
import "clsx";
|
|
14
24
|
import "tailwind-merge";
|
|
15
25
|
import "@radix-ui/react-dialog";
|
|
16
26
|
import "lucide-react";
|
|
17
|
-
import
|
|
18
|
-
import "./index160.js";
|
|
27
|
+
import "./index157.js";
|
|
19
28
|
import "@radix-ui/react-label";
|
|
20
29
|
import "@radix-ui/react-radio-group";
|
|
21
30
|
import "./index87.js";
|
|
22
|
-
import { useForm as Ee, FormProvider as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { useMoniteContext as Oe } from "./index59.js";
|
|
27
|
-
import { toast as H } from "react-hot-toast";
|
|
31
|
+
import { useForm as Ue, useFormState as Ee, FormProvider as Qe, Controller as x } from "react-hook-form";
|
|
32
|
+
import "@hookform/resolvers/zod";
|
|
33
|
+
import "zod";
|
|
34
|
+
import "./index303.js";
|
|
28
35
|
import "date-fns";
|
|
29
|
-
import { getCounterpartName as $e } from "./index7.js";
|
|
30
36
|
import "@radix-ui/react-checkbox";
|
|
31
37
|
import "@radix-ui/react-select";
|
|
32
38
|
import "./index92.js";
|
|
33
|
-
import "
|
|
34
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
35
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
36
|
-
import "@tanstack/react-query";
|
|
37
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
38
|
-
import { useDialog as Me } from "./index52.js";
|
|
39
|
+
import "./index52.js";
|
|
39
40
|
import "@mui/icons-material/ArrowBack";
|
|
40
41
|
import "@mui/icons-material/Close";
|
|
41
42
|
import "@mui/material/IconButton";
|
|
42
43
|
import "@mui/material/Tooltip";
|
|
43
|
-
import { useCurrencies as
|
|
44
|
-
import "./index85.js";
|
|
45
|
-
import {
|
|
44
|
+
import { useCurrencies as ze } from "./index60.js";
|
|
45
|
+
import { MoniteScopedProviders as He } from "./index85.js";
|
|
46
|
+
import { Box as M, Grid as S, Paper as q, Typography as P, Stack as Je, TextField as J, FormControl as Ke, InputLabel as Ze, Select as Xe, Button as K, MenuItem as Ye, FormHelperText as $e, Table as et, TableBody as tt, TableRow as A, TableCell as c, IconButton as rt } from "@mui/material";
|
|
46
47
|
import "@radix-ui/react-dropdown-menu";
|
|
47
48
|
import "@tanstack/react-table";
|
|
48
|
-
import "
|
|
49
|
-
import "./
|
|
49
|
+
import { useRootElements as at } from "./index94.js";
|
|
50
|
+
import { useOptionalFields as ot } from "./index61.js";
|
|
51
|
+
import { useProductCurrencyGroups as it } from "./index488.js";
|
|
52
|
+
import { getBankAccountName as nt } from "./index489.js";
|
|
53
|
+
import { safeZodResolver as st } from "./index254.js";
|
|
54
|
+
import { MoniteCurrency as lt } from "./index476.js";
|
|
50
55
|
import "react-dom";
|
|
51
56
|
import "@mui/x-data-grid";
|
|
52
|
-
import "./index151.js";
|
|
53
|
-
import "./index57.js";
|
|
54
|
-
import { MoniteCurrency as We } from "./index466.js";
|
|
55
57
|
import "./index103.js";
|
|
56
|
-
import
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import "
|
|
60
|
-
import
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
amountValue: a.number().positive(r._("Amount must be a positive number")).optional(),
|
|
77
|
-
amountRangeLeftValue: a.number().positive(r._("Amount must be a positive number")).optional(),
|
|
78
|
-
amountRangeRightValue: a.number().positive(r._("Amount must be a positive number")).optional(),
|
|
79
|
-
amountCurrency: pe.optional(),
|
|
80
|
-
scriptType: a.union([a.literal("single_user"), a.literal("users_from_list"), a.literal("roles_from_list"), a.literal("approval_chain")]).nullish(),
|
|
81
|
-
rules: a.object({
|
|
82
|
-
single_user: a.any().optional(),
|
|
83
|
-
users_from_list: a.array(a.any()).optional(),
|
|
84
|
-
roles_from_list: a.array(a.any()).optional(),
|
|
85
|
-
approval_chain: a.array(a.any()).optional()
|
|
86
|
-
}),
|
|
87
|
-
usersFromListCount: a.number().min(1, r._("Minimum number of approvals required must be at least 1")).optional(),
|
|
88
|
-
rolesFromListCount: a.number().min(1, r._("Minimum number of approvals required must be at least 1")).optional()
|
|
89
|
-
}).superRefine((l, G) => {
|
|
90
|
-
const L = l.rules?.users_from_list;
|
|
91
|
-
L && L.length > 0 && l.usersFromListCount !== void 0 && l.usersFromListCount > L.length && G.addIssue({
|
|
92
|
-
code: a.ZodIssueCode.custom,
|
|
93
|
-
message: r._("Cannot exceed the number of selected users ({selectedUsersLength})", {
|
|
94
|
-
selectedUsersLength: L.length
|
|
95
|
-
}),
|
|
96
|
-
path: ["usersFromListCount"]
|
|
97
|
-
});
|
|
98
|
-
}), ke = (r) => ({
|
|
99
|
-
name: r.name,
|
|
100
|
-
description: r.description,
|
|
101
|
-
trigger: {
|
|
102
|
-
all: [
|
|
103
|
-
"{event_name == 'submitted_for_approval'}",
|
|
104
|
-
...r.triggers.was_created_by_user_id?.length && r.triggers.was_created_by_user_id?.length > 0 ? [{
|
|
105
|
-
operator: z.IN,
|
|
106
|
-
left_operand: {
|
|
107
|
-
name: `invoice.${w.WAS_CREATED_BY_USER_ID}`
|
|
108
|
-
},
|
|
109
|
-
right_operand: r.triggers.was_created_by_user_id.map((l) => l.id)
|
|
110
|
-
}] : [],
|
|
111
|
-
...r.triggers.counterpart_id?.length && r.triggers.counterpart_id?.length > 0 ? [{
|
|
112
|
-
operator: z.IN,
|
|
113
|
-
left_operand: {
|
|
114
|
-
name: `invoice.${w.COUNTERPART_ID}`
|
|
115
|
-
},
|
|
116
|
-
right_operand: r.triggers.counterpart_id.map((l) => l.id)
|
|
117
|
-
}] : [],
|
|
118
|
-
// Named value `tags.id` is a list. So in order to use the 'x in list' format, we need to build a trigger for each tag
|
|
119
|
-
...r.triggers.tags?.length && r.triggers.tags?.length > 0 ? r.triggers.tags.map((l) => ({
|
|
120
|
-
operator: z.IN,
|
|
121
|
-
left_operand: l.id,
|
|
122
|
-
right_operand: {
|
|
123
|
-
name: `invoice.${w.TAGS}`
|
|
124
|
-
}
|
|
125
|
-
})) : [],
|
|
126
|
-
...r.triggers.amount?.value?.length && r.triggers.amount?.value?.length > 0 ? [...r.triggers.amount.value.map((l) => ({
|
|
127
|
-
operator: l[0],
|
|
128
|
-
left_operand: {
|
|
129
|
-
name: `invoice.${w.AMOUNT}`
|
|
130
|
-
},
|
|
131
|
-
right_operand: typeof l[1] == "number" ? l[1] : parseInt(l[1])
|
|
132
|
-
})), {
|
|
133
|
-
operator: z.EQUALS,
|
|
134
|
-
left_operand: {
|
|
135
|
-
name: `invoice.${w.CURRENCY}`
|
|
136
|
-
},
|
|
137
|
-
right_operand: r.triggers.amount.currency
|
|
138
|
-
}] : []
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
|
-
script: [{
|
|
142
|
-
if: {
|
|
143
|
-
run_concurrently: !1,
|
|
144
|
-
all: [...r.rules.single_user ? [{
|
|
145
|
-
call: "ApprovalRequests.request_approval_by_users",
|
|
146
|
-
params: {
|
|
147
|
-
user_ids: [r.rules.single_user.id],
|
|
148
|
-
required_approval_count: 1
|
|
149
|
-
}
|
|
150
|
-
}] : [], ...r.rules.users_from_list && r.rules.users_from_list?.length > 0 ? [{
|
|
151
|
-
call: "ApprovalRequests.request_approval_by_users",
|
|
152
|
-
params: {
|
|
153
|
-
user_ids: r.rules.users_from_list.map((l) => l.id) || [],
|
|
154
|
-
required_approval_count: r.usersFromListCount ? typeof r.usersFromListCount == "number" ? r.usersFromListCount : parseInt(r.usersFromListCount) : 0
|
|
155
|
-
}
|
|
156
|
-
}] : [], ...r.rules.roles_from_list && r.rules.roles_from_list?.length > 0 ? [{
|
|
157
|
-
call: "ApprovalRequests.request_approval_by_roles",
|
|
158
|
-
params: {
|
|
159
|
-
role_ids: r.rules.roles_from_list.map((l) => l.id) || [],
|
|
160
|
-
required_approval_count: r.rolesFromListCount ? typeof r.rolesFromListCount == "number" ? r.rolesFromListCount : parseInt(r.rolesFromListCount) : 0
|
|
161
|
-
}
|
|
162
|
-
}] : [], ...r.rules.approval_chain && r.rules.approval_chain?.length > 0 ? [{
|
|
163
|
-
run_concurrently: !1,
|
|
164
|
-
all: [...r.rules.approval_chain.map((l) => ({
|
|
165
|
-
call: "ApprovalRequests.request_approval_by_users",
|
|
166
|
-
params: {
|
|
167
|
-
user_ids: [l.id],
|
|
168
|
-
required_approval_count: 1
|
|
169
|
-
}
|
|
170
|
-
})) || []]
|
|
171
|
-
}] : []]
|
|
172
|
-
},
|
|
173
|
-
then: ["{Payables.approve(invoice.id)}"],
|
|
174
|
-
else: ["{Payables.reject(invoice.id)}"]
|
|
175
|
-
}]
|
|
176
|
-
}), rt = ({
|
|
177
|
-
approvalPolicy: r,
|
|
178
|
-
setIsEdit: l,
|
|
179
|
-
onCreated: G,
|
|
180
|
-
onUpdated: L
|
|
58
|
+
import "./index479.js";
|
|
59
|
+
import { TagsAutocompleteInput as dt } from "./index480.js";
|
|
60
|
+
import { classNames as ct } from "./index186.js";
|
|
61
|
+
import Z from "@mui/icons-material/Add";
|
|
62
|
+
import ut from "@mui/icons-material/DeleteForever";
|
|
63
|
+
import { DatePicker as X } from "@mui/x-date-pickers";
|
|
64
|
+
const xr = ({
|
|
65
|
+
ref: r,
|
|
66
|
+
...D
|
|
67
|
+
}) => /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(mt, { ref: r, ...D }) }), mt = ({
|
|
68
|
+
payable: r,
|
|
69
|
+
savePayable: D,
|
|
70
|
+
createPayable: G,
|
|
71
|
+
lineItems: T,
|
|
72
|
+
payableDetailsFormId: Y,
|
|
73
|
+
enableGLCodes: $,
|
|
74
|
+
hideAddDiscountButton: ee,
|
|
75
|
+
hideAddBankAccountButton: te,
|
|
76
|
+
ref: re,
|
|
77
|
+
...W
|
|
181
78
|
}) => {
|
|
182
79
|
const {
|
|
183
|
-
i18n:
|
|
184
|
-
} =
|
|
185
|
-
api:
|
|
186
|
-
|
|
187
|
-
} =
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
80
|
+
i18n: a
|
|
81
|
+
} = Ne(), {
|
|
82
|
+
api: ae,
|
|
83
|
+
componentSettings: oe
|
|
84
|
+
} = Pe(), {
|
|
85
|
+
root: b
|
|
86
|
+
} = at(), l = "Monite-PayableDetailsForm", {
|
|
87
|
+
formatFromMinorUnits: w,
|
|
88
|
+
formatToMinorUnits: F,
|
|
89
|
+
formatCurrencyToDisplay: k,
|
|
90
|
+
getSymbolFromCurrency: ie
|
|
91
|
+
} = ze(), {
|
|
92
|
+
isTagsDisabled: ne
|
|
93
|
+
} = z(W), {
|
|
94
|
+
data: g
|
|
95
|
+
} = ae.finops.getPayablesValidations.useQuery(), se = Be(() => H(w, r, T), [w, r, T]), B = Ue({
|
|
96
|
+
resolver: st(We(a, g)),
|
|
97
|
+
defaultValues: se,
|
|
98
|
+
mode: "onTouched"
|
|
195
99
|
}), {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}, {
|
|
214
|
-
enabled: !!i?.was_created_by_user_id?.length
|
|
215
|
-
}), {
|
|
216
|
-
data: M
|
|
217
|
-
} = g.finops.getTags.useQuery({
|
|
218
|
-
query: {
|
|
219
|
-
id__in: Array.isArray(i?.tags) ? i.tags : []
|
|
220
|
-
}
|
|
221
|
-
}, {
|
|
222
|
-
enabled: !!i?.tags?.length
|
|
223
|
-
}), {
|
|
224
|
-
data: J
|
|
225
|
-
} = g.finops.getCounterparts.useQuery({
|
|
226
|
-
query: {
|
|
227
|
-
id__in: Array.isArray(i?.counterpart_id) ? i.counterpart_id : []
|
|
228
|
-
}
|
|
229
|
-
}, {
|
|
230
|
-
enabled: !!i?.counterpart_id?.length
|
|
100
|
+
control: s,
|
|
101
|
+
handleSubmit: le,
|
|
102
|
+
watch: u,
|
|
103
|
+
reset: O,
|
|
104
|
+
trigger: j,
|
|
105
|
+
setValue: h,
|
|
106
|
+
getValues: L,
|
|
107
|
+
getFieldState: U
|
|
108
|
+
} = B, {
|
|
109
|
+
dirtyFields: de
|
|
110
|
+
} = Ee({
|
|
111
|
+
control: s
|
|
112
|
+
}), _ = u("counterpart"), E = u("counterpartBankAccount"), ce = u("invoiceDate"), ue = u("dueDate"), n = u("currency"), me = u("lineItems"), N = u("discount"), f = Re(me, N), [pe, V] = Ie(!1), {
|
|
113
|
+
counterpartQuery: he,
|
|
114
|
+
counterpartBankAccountQuery: d
|
|
115
|
+
} = Ge({
|
|
116
|
+
currentCounterpartId: _
|
|
231
117
|
}), {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}, {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
enabled: !!v?.roles_from_list?.roleIds?.length
|
|
255
|
-
}), {
|
|
256
|
-
data: N
|
|
257
|
-
} = g.finops.getEntityUsers.useQuery({
|
|
258
|
-
query: {
|
|
259
|
-
id__in: Array.isArray(v?.approval_chain?.chainUserIds) ? v.approval_chain.chainUserIds : []
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
|
-
enabled: !!v?.approval_chain?.chainUserIds?.length
|
|
263
|
-
}), ie = g.finops.postApprovalPolicies.useMutation({}, {
|
|
264
|
-
onSuccess: async (n) => {
|
|
265
|
-
await Promise.all([g.finops.getApprovalPolicies.invalidateQueries(S), g.finops.getApprovalPoliciesId.invalidateQueries({
|
|
266
|
-
parameters: {
|
|
267
|
-
path: {
|
|
268
|
-
approval_policy_id: n.id
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}, S)]), H.success(o._("Approval policy created"));
|
|
272
|
-
},
|
|
273
|
-
onError: async () => {
|
|
274
|
-
H.error(o._("Error creating approval policy"));
|
|
275
|
-
}
|
|
276
|
-
}), se = g.finops.patchApprovalPoliciesId.useMutation(void 0, {
|
|
277
|
-
onSuccess: async (n) => {
|
|
278
|
-
await Promise.all([g.finops.getApprovalPolicies.invalidateQueries(S), g.finops.getApprovalPoliciesId.invalidateQueries({
|
|
279
|
-
parameters: {
|
|
280
|
-
path: {
|
|
281
|
-
approval_policy_id: n.id
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}, S)]), H.success(o._("Approval policy updated"));
|
|
285
|
-
},
|
|
286
|
-
onError: async () => {
|
|
287
|
-
H.error(o._("Error updating approval policy"));
|
|
288
|
-
}
|
|
289
|
-
}), ce = async (n) => {
|
|
290
|
-
const f = de?.data?.map((Ae) => Ae.priority ?? 0) ?? [];
|
|
291
|
-
n.priority = Math.max(0, ...f) + 1;
|
|
292
|
-
const F = await ie.mutateAsync(n);
|
|
293
|
-
if (F)
|
|
294
|
-
return l(!1), G?.(F.id), F;
|
|
295
|
-
}, ge = async (n, f) => {
|
|
296
|
-
const F = await se.mutateAsync({
|
|
297
|
-
path: {
|
|
298
|
-
approval_policy_id: n
|
|
299
|
-
},
|
|
300
|
-
body: f
|
|
118
|
+
ocrRequiredFields: m,
|
|
119
|
+
optionalFields: fe
|
|
120
|
+
} = z(W), {
|
|
121
|
+
showInvoiceDate: ye,
|
|
122
|
+
showTags: be
|
|
123
|
+
} = ot(fe, {
|
|
124
|
+
showInvoiceDate: !0,
|
|
125
|
+
showTags: !0
|
|
126
|
+
}), ge = Ae().has(ke.AccountingConfigReadOrg), Q = Se(!1), {
|
|
127
|
+
counterpart: C,
|
|
128
|
+
counterpartRawName: _e,
|
|
129
|
+
isCounterpartAIMatched: Ce,
|
|
130
|
+
isCounterpartMatchingToOCRFound: R,
|
|
131
|
+
isCounterpartLoading: ve
|
|
132
|
+
} = Fe({
|
|
133
|
+
payable: r
|
|
134
|
+
});
|
|
135
|
+
v(() => {
|
|
136
|
+
O(H(w, r, T));
|
|
137
|
+
}, [r, w, O, T]), v(() => {
|
|
138
|
+
!_ && E && h("counterpartBankAccount", "", {
|
|
139
|
+
shouldValidate: !0
|
|
301
140
|
});
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
triggers: {},
|
|
312
|
-
rules: {},
|
|
313
|
-
object_type: r?.object_type || "payable",
|
|
314
|
-
amountOperator: void 0,
|
|
315
|
-
amountValue: void 0,
|
|
316
|
-
amountCurrency: "USD",
|
|
317
|
-
amountRangeLeftValue: void 0,
|
|
318
|
-
amountRangeRightValue: void 0,
|
|
319
|
-
usersFromListCount: 1,
|
|
320
|
-
rolesFromListCount: 1
|
|
321
|
-
}
|
|
322
|
-
}), {
|
|
323
|
-
control: p,
|
|
324
|
-
handleSubmit: ye,
|
|
325
|
-
setValue: e,
|
|
326
|
-
getValues: _,
|
|
327
|
-
watch: ve
|
|
328
|
-
} = ne, [le, re, I, T, q, U, R, Q, W, fe, he] = ve(["triggers", "rules", "amountOperator", "amountValue", "amountRangeLeftValue", "amountRangeRightValue", "amountCurrency", "triggerType", "scriptType", "usersFromListCount", "rolesFromListCount"]);
|
|
329
|
-
B(
|
|
330
|
-
() => {
|
|
331
|
-
C && ($?.data && $?.data.length > 0 && e("triggers.was_created_by_user_id", $?.data), M?.data && M?.data.length > 0 && e("triggers.tags", M?.data), (J?.data?.length ?? 0) > 0 && e("triggers.counterpart_id", J?.data.map((n) => ({
|
|
332
|
-
id: n.id,
|
|
333
|
-
label: $e(n)
|
|
334
|
-
}))), i.amount && i.amount?.value?.length > 0 && (e("triggers.amount", i.amount), i.amount.value.length === 2 ? (e("amountOperator", "range"), e("amountRangeLeftValue", k(typeof i.amount.value[0][1] == "number" ? i.amount.value[0][1] : parseInt(i.amount.value[0][1]), i.amount.currency) || 0), e("amountRangeRightValue", k(typeof i.amount.value[1][1] == "number" ? i.amount.value[1][1] : parseInt(i.amount.value[1][1]), i.amount.currency) || 0), e("amountCurrency", i.amount.currency)) : (e("amountOperator", i.amount.value[0][0]), e("amountValue", k(typeof i.amount.value[0][1] == "number" ? i.amount.value[0][1] : parseInt(i.amount.value[0][1]), i.amount.currency) || 0), e("amountCurrency", i.amount.currency))), ee && e("rules.single_user", ee), j?.data && j?.data.length > 0 && (e("rules.users_from_list", j?.data), e("usersFromListCount", v?.users_from_list?.count)), x?.data && x?.data.length > 0 && (e("rules.roles_from_list", x?.data), e("rolesFromListCount", v?.roles_from_list?.count)), N?.data && N?.data.length > 0 && e("rules.approval_chain", N?.data));
|
|
335
|
-
},
|
|
336
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
337
|
-
[$?.data, M?.data, J?.data, ee, j?.data, x?.data, N?.data, C, e]
|
|
338
|
-
), B(() => {
|
|
339
|
-
u && e("triggerType", u);
|
|
340
|
-
}, [e, u]), B(() => {
|
|
341
|
-
m && e("scriptType", m);
|
|
342
|
-
}, [e, m]), B(() => {
|
|
343
|
-
I && (I === "range" && q && U ? e("triggers.amount", {
|
|
344
|
-
currency: R ?? "USD",
|
|
345
|
-
value: [[">=", D(typeof q == "number" ? q : parseInt(q), R ?? "USD") || 0], ["<=", D(typeof U == "number" ? U : parseInt(U), R ?? "USD") || 0]]
|
|
346
|
-
}) : T && e("triggers.amount", {
|
|
347
|
-
currency: R ?? "USD",
|
|
348
|
-
value: [[I, D(typeof T == "number" ? T : parseInt(T), R ?? "USD") || 0]]
|
|
349
|
-
}));
|
|
350
|
-
}, [D, I, q, U, T, R, e]);
|
|
351
|
-
const ue = () => {
|
|
352
|
-
!d && u === "was_created_by_user_id" && e("triggers.was_created_by_user_id", s?.triggers?.was_created_by_user_id || []), !d && u === "tags" && e("triggers.tags", s?.triggers?.tags || []), !d && u === "counterpart_id" && e("triggers.counterpart_id", s?.triggers?.counterpart_id || []), !d && u === "amount" && (e("triggers.amount", s?.triggers?.amount || void 0), e("amountOperator", s?.amountOperator || void 0), e("amountValue", s?.amountValue || void 0), e("amountRangeLeftValue", s?.amountRangeLeftValue || void 0), e("amountRangeRightValue", s?.amountRangeRightValue || void 0), e("amountCurrency", s?.amountCurrency || void 0)), d && s?.triggers && e("triggers", s?.triggers), !c && m === "single_user" && e("rules.single_user", s?.rules?.single_user || void 0), !c && m === "users_from_list" && (e("rules.users_from_list", s?.rules?.users_from_list || void 0), e("usersFromListCount", s?.usersFromListCount || 1)), !c && m === "roles_from_list" && (e("rules.roles_from_list", s?.rules?.roles_from_list || void 0), e("rolesFromListCount", s?.rolesFromListCount || 1)), !c && m === "approval_chain" && e("rules.approval_chain", s?.rules?.approval_chain || void 0), c && s?.rules && e("rules", s?.rules), X(null), Z(null), Y(!1), K(!1), V(null), e("triggerType", null), e("scriptType", null);
|
|
353
|
-
}, me = !!u || !!m || d || c, be = () => u ? o._("Edit Condition") : d ? o._("Add Condition") : m ? o._("Edit Rule") : c ? o._("Add Rule") : C ? o._("Edit Approval Policy") : o._("Create Approval Policy"), Ce = () => {
|
|
354
|
-
if (me)
|
|
355
|
-
return C ? o._("Edit Approval Policy") : o._("Create Approval Policy");
|
|
356
|
-
};
|
|
357
|
-
return /* @__PURE__ */ h(P, { children: [
|
|
358
|
-
/* @__PURE__ */ t(Be, { secondaryLevel: C || me, title: be(), previousLevelTitle: Ce(), closeSecondaryLevelDialog: ue }),
|
|
359
|
-
/* @__PURE__ */ t(xe, { children: /* @__PURE__ */ t(Se, { ...ne, children: /* @__PURE__ */ t("form", { id: oe, noValidate: !0, onSubmit: ye((n) => {
|
|
360
|
-
const f = ke(n);
|
|
361
|
-
if (C) {
|
|
362
|
-
ge(r.id, f);
|
|
363
|
-
return;
|
|
364
|
-
}
|
|
365
|
-
ce({
|
|
366
|
-
...f,
|
|
367
|
-
object_type: n.object_type
|
|
141
|
+
}, [_, E, h]), v(() => {
|
|
142
|
+
!R || !C || U("counterpart").isTouched || h("counterpart", C.id);
|
|
143
|
+
}, [C, U, R, h]), v(() => {
|
|
144
|
+
if (d.isSuccess && d.data?.data) {
|
|
145
|
+
const t = Me(d.data.data, n);
|
|
146
|
+
L("counterpartBankAccount") !== t && h("counterpartBankAccount", t, {
|
|
147
|
+
shouldDirty: !0,
|
|
148
|
+
shouldTouch: !0,
|
|
149
|
+
shouldValidate: !0
|
|
368
150
|
});
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
},
|
|
428
|
-
amountOperator: _("amountOperator"),
|
|
429
|
-
amountValue: _("amountValue"),
|
|
430
|
-
amountRangeLeftValue: _("amountRangeLeftValue"),
|
|
431
|
-
amountRangeRightValue: _("amountRangeRightValue"),
|
|
432
|
-
amountCurrency: _("amountCurrency")
|
|
433
|
-
});
|
|
434
|
-
}, onEditTrigger: (n) => {
|
|
435
|
-
X(n), V({
|
|
436
|
-
triggers: {
|
|
437
|
-
..._("triggers")
|
|
438
|
-
},
|
|
439
|
-
amountOperator: _("amountOperator"),
|
|
440
|
-
amountValue: _("amountValue"),
|
|
441
|
-
amountRangeLeftValue: _("amountRangeLeftValue"),
|
|
442
|
-
amountRangeRightValue: _("amountRangeRightValue"),
|
|
443
|
-
amountCurrency: _("amountCurrency")
|
|
444
|
-
});
|
|
445
|
-
}, onDeleteTrigger: (n) => {
|
|
446
|
-
const f = {
|
|
447
|
-
...le
|
|
448
|
-
};
|
|
449
|
-
delete f[n], e("triggers", f), e("amountOperator", void 0), e("amountValue", void 0), e("amountRangeLeftValue", void 0), e("amountRangeRightValue", void 0), e("amountCurrency", void 0);
|
|
450
|
-
} }),
|
|
451
|
-
/* @__PURE__ */ t(ae, { variant: "h5", mt: 4, mb: 1, children: o._("Approval flow") }),
|
|
452
|
-
/* @__PURE__ */ t(Re, { rules: re, usersFromListCount: fe, rolesFromListCount: he, onAddRule: () => {
|
|
453
|
-
K(!0), V({
|
|
454
|
-
rules: {
|
|
455
|
-
..._("rules")
|
|
151
|
+
}
|
|
152
|
+
}, [d.data, d.isSuccess, n, L, h]), v(() => {
|
|
153
|
+
r?.id && j();
|
|
154
|
+
}, [j, r?.id]);
|
|
155
|
+
const {
|
|
156
|
+
currencyGroups: xe,
|
|
157
|
+
isLoadingCurrencyGroups: De
|
|
158
|
+
} = it();
|
|
159
|
+
return /* @__PURE__ */ i(we, { children: [
|
|
160
|
+
/* @__PURE__ */ e(M, { className: ct(Oe, l), sx: {
|
|
161
|
+
pb: 6,
|
|
162
|
+
display: "flex",
|
|
163
|
+
flex: "1 1 auto",
|
|
164
|
+
overflow: "auto",
|
|
165
|
+
width: "100%",
|
|
166
|
+
height: 0
|
|
167
|
+
}, children: /* @__PURE__ */ e(Qe, { ...B, children: /* @__PURE__ */ e("form", { style: {
|
|
168
|
+
width: "100%"
|
|
169
|
+
}, ref: re, id: Y, noValidate: !0, onBlur: () => {
|
|
170
|
+
Q.current = !1;
|
|
171
|
+
}, onKeyDown: (t) => {
|
|
172
|
+
Q.current = t.key === "Enter";
|
|
173
|
+
}, onSubmit: le(async (t) => {
|
|
174
|
+
const o = {
|
|
175
|
+
...t,
|
|
176
|
+
currency: t.currency,
|
|
177
|
+
counterpartAddressId: he.data?.data?.find(({
|
|
178
|
+
id: Te
|
|
179
|
+
}) => Te === t.counterpart)?.default_billing_address_id
|
|
180
|
+
}, y = qe(o, F);
|
|
181
|
+
r ? D && D(r.id, y, t.lineItems, de) : G && G(y, t.lineItems);
|
|
182
|
+
}), children: /* @__PURE__ */ i(S, { container: !0, spacing: 3, children: [
|
|
183
|
+
/* @__PURE__ */ e(S, { item: !0, xs: 12, children: /* @__PURE__ */ i(q, { variant: "outlined", sx: {
|
|
184
|
+
p: 3
|
|
185
|
+
}, className: l + "-Details", children: [
|
|
186
|
+
/* @__PURE__ */ e(P, { variant: "subtitle2", mb: 2, children: a._("Details") }),
|
|
187
|
+
/* @__PURE__ */ i(Je, { spacing: 3, children: [
|
|
188
|
+
/* @__PURE__ */ e(x, { name: "invoiceNumber", control: s, render: ({
|
|
189
|
+
field: t,
|
|
190
|
+
fieldState: {
|
|
191
|
+
error: o
|
|
192
|
+
}
|
|
193
|
+
}) => /* @__PURE__ */ e(J, { ...t, id: t.name, label: a._("Number"), variant: "standard", fullWidth: !0, error: !!o, helperText: o?.message, required: p("invoiceNumber", m) }) }),
|
|
194
|
+
/* @__PURE__ */ e(Le, { control: s, disabled: ve, name: "counterpart", label: a._("Vendor"), customerType: "vendor", required: p("counterpart", m) || I("counterpart_id", g), getCounterpartDefaultValues: (t) => ({
|
|
195
|
+
tax_id: "",
|
|
196
|
+
counterpart: {
|
|
197
|
+
email: r?.counterpart_raw_data?.email ?? "",
|
|
198
|
+
phone: r?.counterpart_raw_data?.phone ?? "",
|
|
199
|
+
isCustomer: !1,
|
|
200
|
+
isVendor: !0,
|
|
201
|
+
line1: r?.counterpart_raw_data?.address?.line1 ?? "",
|
|
202
|
+
line2: r?.counterpart_raw_data?.address?.line2 ?? "",
|
|
203
|
+
city: r?.counterpart_raw_data?.address?.city ?? "",
|
|
204
|
+
state: r?.counterpart_raw_data?.address?.state ?? "",
|
|
205
|
+
postalCode: r?.counterpart_raw_data?.address?.postal_code ?? "",
|
|
206
|
+
country: "US",
|
|
207
|
+
...t === "individual" && {
|
|
208
|
+
firstName: r?.counterpart_raw_data?.name ?? ""
|
|
456
209
|
},
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
});
|
|
460
|
-
}, onEditRule: (n) => {
|
|
461
|
-
Z(n), V({
|
|
462
|
-
rules: {
|
|
463
|
-
..._("rules")
|
|
210
|
+
...t === "individual" && {
|
|
211
|
+
lastName: ""
|
|
464
212
|
},
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
213
|
+
...t === "organization" && {
|
|
214
|
+
companyName: r?.counterpart_raw_data?.name ?? ""
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}), counterpartMatchingToOCR: R ? C : void 0, counterpartRawName: _e, showEditCounterpartButton: !0, setShowEditCounterpartDialog: V, counterpartAISuggested: Ce ? C : void 0 }),
|
|
218
|
+
/* @__PURE__ */ e(x, { name: "counterpartBankAccount", control: s, render: ({
|
|
219
|
+
field: t,
|
|
220
|
+
fieldState: {
|
|
221
|
+
error: o
|
|
222
|
+
}
|
|
223
|
+
}) => /* @__PURE__ */ i(Ke, { variant: "standard", fullWidth: !0, error: !!o, required: p("counterpartBankAccount", m) || I("counterpart_bank_account_id", g), children: [
|
|
224
|
+
/* @__PURE__ */ e(Ze, { htmlFor: t.name, children: a._("Bank account") }),
|
|
225
|
+
/* @__PURE__ */ i(Xe, { ...t, id: t.name, labelId: t.name, label: a._("Bank Account"), MenuProps: {
|
|
226
|
+
container: b
|
|
227
|
+
}, disabled: !d?.data || d?.data?.data.length === 0, children: [
|
|
228
|
+
!te && /* @__PURE__ */ e(K, { variant: "text", startIcon: /* @__PURE__ */ e(Z, {}), fullWidth: !0, sx: {
|
|
229
|
+
justifyContent: "flex-start",
|
|
230
|
+
px: 2,
|
|
231
|
+
py: 1
|
|
232
|
+
}, onClick: () => V(!0), children: a._("Add new bank account") }),
|
|
233
|
+
d?.data?.data.map((y) => /* @__PURE__ */ e(Ye, { value: y.id, children: nt(a, y) }, y.id))
|
|
234
|
+
] }),
|
|
235
|
+
o && /* @__PURE__ */ e($e, { children: o.message })
|
|
236
|
+
] }) }),
|
|
237
|
+
ye && /* @__PURE__ */ e(x, { name: "invoiceDate", control: s, render: ({
|
|
238
|
+
field: t,
|
|
239
|
+
fieldState: {
|
|
240
|
+
error: o
|
|
241
|
+
}
|
|
242
|
+
}) => /* @__PURE__ */ e(X, { maxDate: ue, slotProps: {
|
|
243
|
+
popper: {
|
|
244
|
+
container: b
|
|
245
|
+
},
|
|
246
|
+
dialog: {
|
|
247
|
+
container: b
|
|
248
|
+
},
|
|
249
|
+
actionBar: {
|
|
250
|
+
actions: ["clear", "today"]
|
|
251
|
+
},
|
|
252
|
+
textField: {
|
|
253
|
+
id: t.name,
|
|
254
|
+
variant: "outlined",
|
|
255
|
+
fullWidth: !0,
|
|
256
|
+
error: !!o,
|
|
257
|
+
helperText: o?.message,
|
|
258
|
+
required: p("invoiceDate", m) || I("issued_at", g)
|
|
259
|
+
}
|
|
260
|
+
}, ...t, label: a._("Issue date"), views: ["year", "month", "day"] }) }),
|
|
261
|
+
/* @__PURE__ */ e(x, { name: "dueDate", control: s, render: ({
|
|
262
|
+
field: t,
|
|
263
|
+
fieldState: {
|
|
264
|
+
error: o
|
|
265
|
+
}
|
|
266
|
+
}) => /* @__PURE__ */ e(X, { minDate: ce, slotProps: {
|
|
267
|
+
popper: {
|
|
268
|
+
container: b
|
|
269
|
+
},
|
|
270
|
+
dialog: {
|
|
271
|
+
container: b
|
|
272
|
+
},
|
|
273
|
+
actionBar: {
|
|
274
|
+
actions: ["clear", "today"]
|
|
275
|
+
},
|
|
276
|
+
textField: {
|
|
277
|
+
id: t.name,
|
|
278
|
+
variant: "outlined",
|
|
279
|
+
fullWidth: !0,
|
|
280
|
+
error: !!o,
|
|
281
|
+
helperText: o?.message,
|
|
282
|
+
required: p("dueDate", m)
|
|
283
|
+
}
|
|
284
|
+
}, ...t, label: a._("Due date"), views: ["year", "month", "day"] }) }),
|
|
285
|
+
/* @__PURE__ */ e(lt, { name: "currency", control: s, required: p("currency", m) || I("currency", g), groups: xe, disabled: De, allowedCurrencies: oe?.payables?.availableCurrencies }),
|
|
286
|
+
be && /* @__PURE__ */ e(dt, { control: s, name: "tags", label: a._("Tags"), variant: "standard", disabled: ne || !ge, required: p("tags", m) })
|
|
287
|
+
] })
|
|
288
|
+
] }) }),
|
|
289
|
+
/* @__PURE__ */ e(S, { item: !0, xs: 12, children: /* @__PURE__ */ i(q, { variant: "outlined", sx: {
|
|
290
|
+
p: 3
|
|
291
|
+
}, className: l + "-Items", children: [
|
|
292
|
+
/* @__PURE__ */ e(P, { variant: "subtitle2", mb: 2, children: a._("Items") }),
|
|
293
|
+
/* @__PURE__ */ e(Ve, { enableGLCodes: $ })
|
|
294
|
+
] }) }),
|
|
295
|
+
/* @__PURE__ */ e(S, { item: !0, xs: 12, className: l + "-Totals", children: /* @__PURE__ */ e(q, { variant: "outlined", children: /* @__PURE__ */ e(et, { children: /* @__PURE__ */ i(tt, { children: [
|
|
296
|
+
/* @__PURE__ */ i(A, { className: l + "-Totals-Subtotal", children: [
|
|
297
|
+
/* @__PURE__ */ e(c, { children: a._("Subtotal") }),
|
|
298
|
+
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ i(M, { gap: 0.5, alignItems: "center", justifyContent: "flex-end", display: "flex", children: [
|
|
299
|
+
N === null && !ee && /* @__PURE__ */ e(K, { variant: "text", startIcon: /* @__PURE__ */ e(Z, {}), size: "small", sx: {
|
|
300
|
+
pl: 1.25,
|
|
301
|
+
pr: 2,
|
|
302
|
+
py: 0
|
|
303
|
+
}, onClick: () => {
|
|
304
|
+
const t = B.setValue;
|
|
305
|
+
t("discount", 0);
|
|
306
|
+
}, children: a._("Add Discount") }),
|
|
307
|
+
f.subtotal && n ? k(F(f.subtotal, n) || 0, n) : "—"
|
|
308
|
+
] }) })
|
|
309
|
+
] }),
|
|
310
|
+
N !== null && /* @__PURE__ */ i(A, { className: l + "-Totals-Discount", children: [
|
|
311
|
+
/* @__PURE__ */ e(c, { children: a._("Discount") }),
|
|
312
|
+
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ i(M, { gap: 0.5, alignItems: "center", justifyContent: "flex-end", display: "flex", children: [
|
|
313
|
+
/* @__PURE__ */ e(rt, { "aria-label": "delete", onClick: () => {
|
|
314
|
+
const t = B.setValue;
|
|
315
|
+
t("discount", null);
|
|
316
|
+
}, children: /* @__PURE__ */ e(ut, {}) }),
|
|
317
|
+
/* @__PURE__ */ e(x, { name: "discount", control: s, render: ({
|
|
318
|
+
field: t,
|
|
319
|
+
fieldState: {
|
|
320
|
+
error: o
|
|
321
|
+
}
|
|
322
|
+
}) => /* @__PURE__ */ e(J, { ...t, id: t.name, variant: "standard", type: "number", inputProps: {
|
|
323
|
+
min: 0,
|
|
324
|
+
step: 0.01
|
|
325
|
+
}, error: !!o, sx: {
|
|
326
|
+
width: 150
|
|
327
|
+
}, InputProps: {
|
|
328
|
+
endAdornment: ie(n)
|
|
329
|
+
} }) })
|
|
330
|
+
] }) })
|
|
331
|
+
] }),
|
|
332
|
+
/* @__PURE__ */ i(A, { className: l + "-Totals-Taxes", children: [
|
|
333
|
+
/* @__PURE__ */ e(c, { children: a._("Tax total") }),
|
|
334
|
+
/* @__PURE__ */ e(c, { align: "right", children: f.taxes && n ? k(F(f.taxes, n) || 0, n) : "—" })
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ i(A, { className: l + "-Totals-Total", children: [
|
|
337
|
+
/* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(P, { variant: "subtitle1", children: a._("Total") }) }),
|
|
338
|
+
/* @__PURE__ */ e(c, { align: "right", children: /* @__PURE__ */ e(P, { variant: "subtitle1", children: f.total && n ? k(F(f.total, n) || 0, n) : "—" }) })
|
|
474
339
|
] })
|
|
475
|
-
] })
|
|
340
|
+
] }) }) }) })
|
|
476
341
|
] }) }) }) }),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
label: u ? o._("Update") : o._("Add"),
|
|
479
|
-
onClick: (n) => {
|
|
480
|
-
n?.preventDefault(), X(null), Z(null), Y(!1), K(!1), e("triggerType", null), e("scriptType", null);
|
|
481
|
-
}
|
|
482
|
-
} : {
|
|
483
|
-
label: o._("Save"),
|
|
484
|
-
formId: oe,
|
|
485
|
-
isLoading: se.isPending || ie.isPending
|
|
486
|
-
}, cancelButton: {
|
|
487
|
-
onClick: u || m || d || c ? ue : C ? () => l(!1) : _e?.onClose
|
|
488
|
-
} })
|
|
342
|
+
_ && /* @__PURE__ */ e(je, { counterpartId: _, open: pe, onClose: () => V(!1), customerType: "vendor" })
|
|
489
343
|
] });
|
|
490
344
|
};
|
|
491
345
|
export {
|
|
492
|
-
|
|
346
|
+
xr as PayableDetailsForm
|
|
493
347
|
};
|