@tesouro/embedded-components-react 0.2.66 → 0.2.68
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 +8 -0
- package/dist/lib/ReceivablesWidget.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +138 -135
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/labels.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index5.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index8.js +4 -4
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +10 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +20 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +113 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +70 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +11 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +9 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +45 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +74 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +54 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +196 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +79 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +40 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +116 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +70 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +184 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +31 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +120 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +53 -388
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +88 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +390 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +22 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +17 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +12 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +93 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +46 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +75 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +50 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +54 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +345 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +11 -247
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +17 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +247 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +182 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +23 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +36 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +56 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +52 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +28 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +98 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +46 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +16 -487
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +25 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +42 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +63 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +96 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +107 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +486 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +165 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +42 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +29 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +113 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +22 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +40 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +52 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +16 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +76 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +338 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +301 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +101 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +161 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +264 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +23 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +62 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +94 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +96 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +189 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +77 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +73 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +22 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +57 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +27 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +56 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +18 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +10 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +149 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +19 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +63 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +24 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +127 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +30 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +157 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +27 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +76 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +63 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +43 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +187 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +106 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +81 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +287 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +47 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +86 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +223 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +35 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +47 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +46 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +110 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +22 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +17 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +17 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +171 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +130 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +153 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +10 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +17 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +60 -287
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +65 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +60 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +6 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +8 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +57 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +22 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +14 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +32 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +43 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +32 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +6 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +104 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +21 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +33 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +55 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +26 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +23 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +65 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +93 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +33 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +54 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +33 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +10 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +10 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +118 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +18 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +32 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +11 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +15 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +22 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +48 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +11 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +15 -18
- 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 +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +64 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +127 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +7 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +52 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +69 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +46 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +21 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +74 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +62 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +37 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +85 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +103 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +112 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +28 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +24 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +39 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +5 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +9 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +69 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +54 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +41 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +69 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +51 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +49 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +30 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +52 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +44 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +52 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +31 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +39 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +17 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +95 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +15 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +75 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +19 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +17 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +81 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +13 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +54 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +51 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +56 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +31 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.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/index87.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/index2.js +11 -11
- 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 +22 -22
- package/package.json +1 -1
|
@@ -1,30 +1,113 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { jsx as e, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as F, useCallback as k, useMemo as w } from "react";
|
|
3
|
+
import { useFormContext as T, Controller as $ } from "react-hook-form";
|
|
4
|
+
import { getCounterpartName as H, prepareAddressView as J } from "./index7.js";
|
|
5
|
+
import { useRootElements as K } from "./index93.js";
|
|
6
|
+
import "./index58.js";
|
|
7
|
+
import { useCounterpartList as W } from "./index72.js";
|
|
8
|
+
import "react-hot-toast";
|
|
9
|
+
import { useLingui as X } from "@lingui/react";
|
|
10
|
+
import { Combobox as Y, ComboboxInput as Z, ComboboxContent as tt, ComboboxList as et, ComboboxItem as C, ComboboxSeparator as rt } from "./index91.js";
|
|
11
|
+
import { Button as ot } from "./index85.js";
|
|
12
|
+
import { Field as at, FieldContent as it, FieldLabel as nt, FieldError as st } from "./index154.js";
|
|
13
|
+
import { InputGroupAddon as lt } from "./index102.js";
|
|
14
|
+
import { cn as dt } from "./index101.js";
|
|
15
|
+
import { Loader2 as ut, Plus as mt } from "lucide-react";
|
|
16
|
+
const h = "__create-new__", Vt = ({
|
|
17
|
+
setIsCreateCounterpartOpened: f,
|
|
18
|
+
setIsViewCounterpartOpened: b,
|
|
19
|
+
isSimplified: a = !1,
|
|
20
|
+
shouldDisableFormUpdate: x = !1,
|
|
21
|
+
disabled: S,
|
|
22
|
+
currentCounterpartId: z,
|
|
23
|
+
handleUpdateCounterpartId: v,
|
|
24
|
+
counterpartAddresses: I
|
|
25
|
+
}) => {
|
|
26
|
+
const {
|
|
27
|
+
i18n: u
|
|
28
|
+
} = X(), {
|
|
29
|
+
root: A
|
|
30
|
+
} = K(), {
|
|
31
|
+
control: P,
|
|
32
|
+
watch: j
|
|
33
|
+
} = T(), {
|
|
34
|
+
data: g,
|
|
35
|
+
isLoading: D
|
|
36
|
+
} = W({
|
|
37
|
+
query: {
|
|
38
|
+
is_customer: !0
|
|
25
39
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
40
|
+
}), [m, _] = F(""), [c, y] = F(!1), M = k(() => {
|
|
41
|
+
!a && f && f(!0);
|
|
42
|
+
}, [a, f]), O = k(() => {
|
|
43
|
+
!a && b && b(!0);
|
|
44
|
+
}, [a, b]), q = j("counterpart_id"), p = x ? z : q, i = w(() => g ? g.data.map((r) => ({
|
|
45
|
+
id: r.id,
|
|
46
|
+
label: H(r)
|
|
47
|
+
})) : [], [g]), o = w(() => i.find((r) => r.id === p) ?? null, [i, p]), B = o ? o.label : m, {
|
|
48
|
+
matchingItems: N,
|
|
49
|
+
nonMatchingItems: L
|
|
50
|
+
} = w(() => {
|
|
51
|
+
const r = o ? "" : m.toLowerCase().trim();
|
|
52
|
+
if (!r)
|
|
53
|
+
return {
|
|
54
|
+
matchingItems: i,
|
|
55
|
+
nonMatchingItems: []
|
|
56
|
+
};
|
|
57
|
+
const n = [], l = [];
|
|
58
|
+
for (const d of i)
|
|
59
|
+
d.label.toLowerCase().includes(r) ? n.push(d) : l.push(d);
|
|
60
|
+
return {
|
|
61
|
+
matchingItems: n,
|
|
62
|
+
nonMatchingItems: l
|
|
63
|
+
};
|
|
64
|
+
}, [m, o, i]), U = w(() => [...a ? [] : [h], ...i.map((r) => r.id)], [i, a]), E = o ? Array.from(o.label)[0]?.toUpperCase() ?? "?" : "+", V = I?.data?.[0] ? J({
|
|
65
|
+
address: I.data[0]
|
|
66
|
+
}) : "", G = !c && !!o && !!V && !a;
|
|
67
|
+
return /* @__PURE__ */ e($, { name: "counterpart_id", control: P, render: ({
|
|
68
|
+
field: r,
|
|
69
|
+
fieldState: {
|
|
70
|
+
error: n
|
|
71
|
+
}
|
|
72
|
+
}) => {
|
|
73
|
+
const l = (t) => {
|
|
74
|
+
x && v ? v(t) : r.onChange(t);
|
|
75
|
+
}, d = (t) => {
|
|
76
|
+
if (t === h) {
|
|
77
|
+
M();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
_(""), l(t ?? "");
|
|
81
|
+
}, R = (t) => {
|
|
82
|
+
t !== h && (i.some((Q) => Q.id === t) || (_(t), p && l("")));
|
|
83
|
+
};
|
|
84
|
+
return /* @__PURE__ */ e(at, { children: /* @__PURE__ */ s(it, { children: [
|
|
85
|
+
/* @__PURE__ */ e(nt, { htmlFor: "counterpart_id", required: !0, children: u._("Customer") }),
|
|
86
|
+
/* @__PURE__ */ s(Y, { value: p ?? null, onValueChange: d, inputValue: B, onInputValueChange: R, items: U, filter: () => !0, disabled: S, open: c, onOpenChange: (t) => y(t), children: [
|
|
87
|
+
/* @__PURE__ */ s("div", { className: dt("ttw:flex ttw:flex-col ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:has-[[data-slot=input-group-control]:focus-visible]:border-ring ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20"), children: [
|
|
88
|
+
/* @__PURE__ */ s("div", { className: "ttw:relative", children: [
|
|
89
|
+
/* @__PURE__ */ e(Z, { id: "counterpart_id", placeholder: u._("Select customer"), "aria-invalid": !!n, showClear: c && (!!o || !!m), className: "ttw:min-h-10 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0 ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent", children: /* @__PURE__ */ e(lt, { align: "inline-start", children: D ? /* @__PURE__ */ e(ut, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ e("span", { className: "ttw:flex ttw:size-7 ttw:items-center ttw:justify-center ttw:rounded-full ttw:select-none ttw:text-xs ttw:font-medium", style: {
|
|
90
|
+
backgroundColor: o ? "rgba(203, 203, 254, 1)" : "rgba(235, 235, 255, 1)",
|
|
91
|
+
color: "rgba(55, 55, 255, 1)"
|
|
92
|
+
}, children: E }) }) }),
|
|
93
|
+
!c && o && !a && /* @__PURE__ */ e("div", { className: "ttw:pointer-events-none ttw:absolute ttw:inset-y-0 ttw:right-8 ttw:flex ttw:items-center", children: /* @__PURE__ */ e(ot, { type: "button", variant: "ghost", size: "sm", className: "ttw:pointer-events-auto ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary/10", onPointerDown: (t) => t.stopPropagation(), onClick: O, children: u._("View details") }) })
|
|
94
|
+
] }),
|
|
95
|
+
G && /* @__PURE__ */ e("p", { className: "ttw:pl-12 ttw:pr-3 ttw:pb-2 ttw:text-xs ttw:text-muted-foreground ttw:cursor-text ttw:select-none", onClick: () => y(!0), children: V })
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ e(tt, { container: A, children: /* @__PURE__ */ s(et, { children: [
|
|
98
|
+
!a && /* @__PURE__ */ s(C, { value: h, className: "ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary", children: [
|
|
99
|
+
/* @__PURE__ */ e(mt, {}),
|
|
100
|
+
u._("Create new customer")
|
|
101
|
+
] }),
|
|
102
|
+
N.map((t) => /* @__PURE__ */ e(C, { value: t.id, children: t.label }, t.id)),
|
|
103
|
+
N.length > 0 && L.length > 0 && /* @__PURE__ */ e(rt, {}),
|
|
104
|
+
L.map((t) => /* @__PURE__ */ e(C, { value: t.id, children: t.label }, t.id))
|
|
105
|
+
] }) })
|
|
106
|
+
] }),
|
|
107
|
+
/* @__PURE__ */ e(st, { errors: n ? [n] : [] })
|
|
108
|
+
] }) });
|
|
109
|
+
} });
|
|
110
|
+
};
|
|
28
111
|
export {
|
|
29
|
-
|
|
112
|
+
Vt as CounterpartSelector
|
|
30
113
|
};
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})
|
|
11
|
-
const t = c((a) => n(a), u);
|
|
12
|
-
return /* @__PURE__ */ i(s, { "aria-label": "search-by-name", className: "Monite-SearchField Monite-FilterControl", children: [
|
|
13
|
-
r && /* @__PURE__ */ e(h, { htmlFor: "search-by-name", shrink: !0, children: r }),
|
|
14
|
-
/* @__PURE__ */ e(p, { id: "search-by-name", name: "search-by-name", "aria-label": "search-by-name", placeholder: l, value: o, onChange: (a) => {
|
|
15
|
-
t(a.target.value || null);
|
|
16
|
-
}, startAdornment: /* @__PURE__ */ e(d, { position: "end", children: /* @__PURE__ */ e(m, { fontSize: "medium" }) }), sx: {
|
|
17
|
-
"&::placeholder": {
|
|
18
|
-
opacity: 1,
|
|
19
|
-
color: "text.primary"
|
|
20
|
-
},
|
|
21
|
-
"& input::placeholder": {
|
|
22
|
-
opacity: 1,
|
|
23
|
-
color: "text.primary"
|
|
24
|
-
}
|
|
25
|
-
} })
|
|
26
|
-
] });
|
|
27
|
-
};
|
|
1
|
+
const e = (a) => ({
|
|
2
|
+
bank_name: a?.bank_name || void 0,
|
|
3
|
+
display_name: a?.display_name || void 0,
|
|
4
|
+
account_holder_name: a?.account_holder_name || void 0,
|
|
5
|
+
account_number: a?.account_number || void 0,
|
|
6
|
+
routing_number: a?.routing_number || void 0
|
|
7
|
+
}), o = (a) => ({
|
|
8
|
+
display_name: a?.display_name || void 0,
|
|
9
|
+
account_holder_name: a?.account_holder_name || void 0
|
|
10
|
+
});
|
|
28
11
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
12
|
+
e as prepareBankAccountCreatePayload,
|
|
13
|
+
o as prepareBankAccountUpdatePayload
|
|
31
14
|
};
|
|
@@ -1,80 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
justifyContent: "flex-start",
|
|
23
|
-
flexDirection: "row",
|
|
24
|
-
gap: 3
|
|
25
|
-
};
|
|
26
|
-
if (e === "right" && t === "right")
|
|
27
|
-
return {
|
|
28
|
-
justifyContent: "flex-end",
|
|
29
|
-
flexDirection: "row-reverse",
|
|
30
|
-
gap: 3
|
|
31
|
-
};
|
|
32
|
-
if (e === "left" && t === "right")
|
|
33
|
-
return {
|
|
34
|
-
justifyContent: "space-between",
|
|
35
|
-
flexDirection: "row",
|
|
36
|
-
gap: void 0
|
|
37
|
-
};
|
|
38
|
-
if (e === "right" && t === "left")
|
|
39
|
-
return {
|
|
40
|
-
justifyContent: "space-between",
|
|
41
|
-
flexDirection: "row-reverse",
|
|
42
|
-
gap: void 0
|
|
43
|
-
};
|
|
44
|
-
if (e === "center")
|
|
45
|
-
return {
|
|
46
|
-
justifyContent: "space-around",
|
|
47
|
-
flexDirection: t === "left" ? "row-reverse" : "row",
|
|
48
|
-
gap: void 0
|
|
49
|
-
};
|
|
50
|
-
if (t === "center")
|
|
51
|
-
return {
|
|
52
|
-
justifyContent: "space-around",
|
|
53
|
-
flexDirection: e === "left" ? "row" : "row-reverse",
|
|
54
|
-
gap: void 0
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
switch (r) {
|
|
58
|
-
case "reversed":
|
|
59
|
-
return {
|
|
60
|
-
justifyContent: "space-between",
|
|
61
|
-
flexDirection: "row-reverse",
|
|
62
|
-
gap: void 0
|
|
63
|
-
};
|
|
64
|
-
case "centered":
|
|
65
|
-
return {
|
|
66
|
-
justifyContent: "center",
|
|
67
|
-
flexDirection: "row",
|
|
68
|
-
gap: 3
|
|
69
|
-
};
|
|
70
|
-
default:
|
|
71
|
-
return {
|
|
72
|
-
justifyContent: "space-between",
|
|
73
|
-
flexDirection: "row",
|
|
74
|
-
gap: void 0
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
import { jsx as p } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useTheme as i, Box as n } from "@mui/material";
|
|
3
|
+
const d = ({
|
|
4
|
+
children: a,
|
|
5
|
+
shouldApplyFinanceStyles: r = !1
|
|
6
|
+
}) => {
|
|
7
|
+
const e = i();
|
|
8
|
+
return /* @__PURE__ */ p(n, { sx: {
|
|
9
|
+
background: `linear-gradient(180deg, ${e.palette.primary.light} 0%, ${e.palette.background.paper} 100%)`,
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
gap: 1,
|
|
13
|
+
px: 3,
|
|
14
|
+
py: r ? 3 : 2.5,
|
|
15
|
+
width: "100%",
|
|
16
|
+
minHeight: "auto",
|
|
17
|
+
borderRadius: "16px",
|
|
18
|
+
boxShadow: "0 16px 24px 0 rgba(0, 0, 0, 0.02)",
|
|
19
|
+
border: r ? "none" : `1px solid ${e.palette.divider}`
|
|
20
|
+
}, children: a });
|
|
21
|
+
};
|
|
78
22
|
export {
|
|
79
|
-
|
|
23
|
+
d as FinanceBannerWrapper
|
|
80
24
|
};
|
|
@@ -1,36 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
await a.finops.getProducts.invalidateQueries(o), await a.finops.getProductsId.invalidateQueries({
|
|
18
|
-
parameters: {
|
|
19
|
-
path: {
|
|
20
|
-
product_id: t.id
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}, o), r.success(t.type === "product" ? e._("Product {name} was updated.", {
|
|
24
|
-
name: t.name
|
|
25
|
-
}) : e._("Service {name} was updated.", {
|
|
26
|
-
name: t.name
|
|
27
|
-
}));
|
|
28
|
-
},
|
|
29
|
-
onError: () => {
|
|
30
|
-
r.error(e._("Failed to update"));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
1
|
+
import { jsxs as n, Fragment as i, jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as t } from "react";
|
|
3
|
+
import { Dialog as s } from "./index51.js";
|
|
4
|
+
import { FinanceFaqDetails as l } from "./index354.js";
|
|
5
|
+
const d = ({
|
|
6
|
+
children: e
|
|
7
|
+
}) => {
|
|
8
|
+
const [a, r] = t(!1);
|
|
9
|
+
return /* @__PURE__ */ n(i, { children: [
|
|
10
|
+
e({
|
|
11
|
+
openModal: () => {
|
|
12
|
+
r(!0);
|
|
13
|
+
}
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ o(s, { open: a, onClose: () => r(!1), alignDialog: "right", children: /* @__PURE__ */ o(l, {}) })
|
|
16
|
+
] });
|
|
33
17
|
};
|
|
34
18
|
export {
|
|
35
|
-
|
|
19
|
+
d as FinanceFaqWrapper
|
|
36
20
|
};
|
|
@@ -1,67 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Collapse as _, Alert as j, List as v, ListItem as L, ListItemText as A } from "@mui/material";
|
|
6
|
-
const q = ({
|
|
7
|
-
generalError: e,
|
|
8
|
-
fieldErrors: n
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useTheme as s, Box as o } from "@mui/material";
|
|
3
|
+
const d = ({
|
|
4
|
+
progress: i
|
|
9
5
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
}, children: [
|
|
24
|
-
e && /* @__PURE__ */ a("div", { children: e }),
|
|
25
|
-
t && /* @__PURE__ */ a(v, { dense: !0, disablePadding: !0, sx: {
|
|
26
|
-
mt: e ? 1 : 0
|
|
27
|
-
}, children: Object.entries(n).map(([r, s]) => s ? /* @__PURE__ */ a(L, { disablePadding: !0, children: /* @__PURE__ */ a(A, { primary: s, primaryTypographyProps: {
|
|
28
|
-
sx: {
|
|
29
|
-
color: "inherit"
|
|
30
|
-
}
|
|
31
|
-
} }) }, r) : null) })
|
|
32
|
-
] }) }) : null;
|
|
33
|
-
}, C = (e) => {
|
|
34
|
-
const {
|
|
35
|
-
i18n: n
|
|
36
|
-
} = E(), t = o(() => Array.isArray(e) ? e : e ? [e] : [], [e]), r = x((i) => {
|
|
37
|
-
for (let u = 0; u < t.length; u++) {
|
|
38
|
-
const f = t[u];
|
|
39
|
-
if (typeof f == "object") {
|
|
40
|
-
const h = b(f, i);
|
|
41
|
-
if (h)
|
|
42
|
-
return h;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return null;
|
|
46
|
-
}, [t]), s = o(() => r("product.name") ?? r("name"), [r]), l = o(() => r("quantity"), [r]), m = o(() => r("price") ?? r("product.price.value") ?? r("product.price.currency"), [r]), c = o(() => r("tax_rate_value"), [r]), p = o(() => r("product.measure_unit_id") ?? r("product.measure_unit_name") ?? r("measure_unit"), [r]), d = o(() => r("product.type"), [r]), y = o(() => t.length === 0 || (s || l || m || c || p || d) ? void 0 : t.some((i) => {
|
|
47
|
-
if (!i || typeof i != "object") return !1;
|
|
48
|
-
const u = Object.keys(i);
|
|
49
|
-
return u.length > 0 && u.some((f) => i[f] != null);
|
|
50
|
-
}) ? n._("Please check the form for errors") : void 0, [t, s, l, m, c, p, d, n]);
|
|
51
|
-
return {
|
|
52
|
-
generalError: y,
|
|
53
|
-
fieldErrors: {
|
|
54
|
-
name: s,
|
|
55
|
-
quantity: l,
|
|
56
|
-
price: m,
|
|
57
|
-
tax: c,
|
|
58
|
-
measureUnit: p,
|
|
59
|
-
productType: d
|
|
60
|
-
},
|
|
61
|
-
hasErrors: !!(y || s || l || m || c || p || d)
|
|
62
|
-
};
|
|
6
|
+
const r = s();
|
|
7
|
+
return /* @__PURE__ */ e(o, { sx: {
|
|
8
|
+
backgroundColor: r.palette.divider,
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "6px",
|
|
11
|
+
borderRadius: 0.5
|
|
12
|
+
}, children: /* @__PURE__ */ e(o, { sx: {
|
|
13
|
+
backgroundColor: r.palette.primary.main,
|
|
14
|
+
width: `${i}%`,
|
|
15
|
+
height: "6px",
|
|
16
|
+
borderRadius: 0.5
|
|
17
|
+
} }) });
|
|
63
18
|
};
|
|
64
19
|
export {
|
|
65
|
-
|
|
66
|
-
C as useFormErrors
|
|
20
|
+
d as FinanceProgressBar
|
|
67
21
|
};
|
|
@@ -1,46 +1,173 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
1
|
+
import { useGetFinanceOffers as T } from "./index357.js";
|
|
2
|
+
import { useGetFinancingConnectToken as P } from "./index470.js";
|
|
3
|
+
import { useKanmonContext as b } from "./index57.js";
|
|
4
|
+
import { useMoniteContext as h } from "./index58.js";
|
|
5
|
+
import { useLingui as k } from "@lingui/react";
|
|
6
|
+
import { useState as U, useEffect as V } from "react";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import "./index93.js";
|
|
9
|
+
import "@emotion/react/jsx-runtime";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "@mui/x-data-grid";
|
|
12
|
+
import { useComponentSettings as w } from "./index68.js";
|
|
13
|
+
import "@tanstack/react-query";
|
|
14
|
+
import "date-fns";
|
|
15
|
+
import { useMyEntity as G } from "./index79.js";
|
|
16
|
+
import x from "react-script-hook";
|
|
17
|
+
const W = "https://cdn.sandbox.kanmon.dev/scripts/v2/kanmon-connect.js", L = "https://cdn.kanmon.dev/scripts/v2/kanmon-connect.js", s = {
|
|
18
|
+
INIT: "init",
|
|
19
|
+
IN_PROGRESS: "in_progress",
|
|
20
|
+
PENDING_APPROVAL: "pending_approval",
|
|
21
|
+
NO_OFFERS_AVAILABLE: "no_offers",
|
|
22
|
+
SERVICING: "servicing",
|
|
23
|
+
APPROVED: "approved",
|
|
24
|
+
OFFER_ACCEPTED: "offer_accepted",
|
|
25
|
+
OFFERS_EXPIRED: "offers_expired"
|
|
26
|
+
}, ae = () => {
|
|
27
|
+
const {
|
|
28
|
+
apiUrl: _,
|
|
29
|
+
api: i,
|
|
30
|
+
queryClient: c,
|
|
31
|
+
entityId: E
|
|
32
|
+
} = h(), {
|
|
33
|
+
isKanmonInitialized: d,
|
|
34
|
+
toggleKanmon: f,
|
|
35
|
+
handleButtonText: a,
|
|
36
|
+
buttonText: R
|
|
37
|
+
} = b(), {
|
|
38
|
+
onboardingCallbacks: y
|
|
39
|
+
} = w(), {
|
|
40
|
+
i18n: o
|
|
41
|
+
} = k(), l = P(), {
|
|
42
|
+
data: t
|
|
43
|
+
} = T(), {
|
|
44
|
+
isUSEntity: u
|
|
45
|
+
} = G(), I = (() => {
|
|
46
|
+
switch (t?.business_status) {
|
|
47
|
+
case "NEW":
|
|
48
|
+
default:
|
|
49
|
+
return s.INIT;
|
|
50
|
+
case "INPUT_REQUIRED":
|
|
51
|
+
return s.IN_PROGRESS;
|
|
52
|
+
case "ONBOARDED":
|
|
53
|
+
return t?.offers?.length === 0 ? s.PENDING_APPROVAL : t?.offers?.[0]?.status === "NEW" ? s.APPROVED : t?.offers?.[0]?.status === "EXPIRED" ? s.OFFERS_EXPIRED : t?.offers?.[0]?.status === "ACCEPTED" ? s.OFFER_ACCEPTED : s.SERVICING;
|
|
54
|
+
}
|
|
55
|
+
})(), F = (() => {
|
|
56
|
+
try {
|
|
57
|
+
const e = new URL(_);
|
|
58
|
+
return !["api.dev.monite.com", "api.sandbox.monite.com"].includes(e.hostname);
|
|
59
|
+
} catch {
|
|
60
|
+
return !0;
|
|
61
|
+
}
|
|
62
|
+
})() ? L : W, [p] = x({
|
|
63
|
+
src: F
|
|
64
|
+
}), [N, m] = U(!1), g = (e) => {
|
|
65
|
+
const n = {
|
|
66
|
+
type: "receivable",
|
|
67
|
+
status: "NEW",
|
|
68
|
+
invoice_id: e?.platformInvoiceId,
|
|
69
|
+
document_id: e?.platformInvoiceNumber,
|
|
70
|
+
due_date: e?.invoiceDueDate,
|
|
71
|
+
issue_date: e?.invoiceIssuedDate,
|
|
72
|
+
total_amount: e?.invoiceAmountCents,
|
|
73
|
+
currency: "USD",
|
|
74
|
+
payer_type: e?.payorType,
|
|
75
|
+
payer_business_name: e?.payorBusinessName,
|
|
76
|
+
payer_first_name: e?.payorFirstName,
|
|
77
|
+
payer_last_name: e?.payorLastName,
|
|
78
|
+
requested_amount: e?.amountRequestedForFinancingCents,
|
|
79
|
+
principal_amount: e?.principalAmountCents,
|
|
80
|
+
repayment_amount: e?.repaymentAmountCents,
|
|
81
|
+
advance_amount: e?.invoiceAdvanceAmountCents,
|
|
82
|
+
advance_rate_percentage: e?.advanceRatePercentage * 100,
|
|
83
|
+
fee_amount: e?.feeAmountCents,
|
|
84
|
+
fee_percentage: e?.transactionFeePercentage * 100,
|
|
85
|
+
repayment_schedule: {
|
|
86
|
+
repayment_date: e?.repaymentSchedule?.schedule?.[0]?.repaymentDate,
|
|
87
|
+
repayment_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentAmountCents,
|
|
88
|
+
repayment_fee_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentFeeAmountCents,
|
|
89
|
+
repayment_principal_amount: e?.repaymentSchedule?.schedule?.[0]?.repaymentPrincipalAmountCents
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
i.finops.getFinancingInvoices.setQueryData(i.finops.getFinancingInvoices.getQueryKey({
|
|
93
|
+
query: {
|
|
94
|
+
type: "receivable",
|
|
95
|
+
invoice_id: e?.platformInvoiceId
|
|
96
|
+
}
|
|
97
|
+
}), (r) => ({
|
|
98
|
+
...r,
|
|
99
|
+
data: [n]
|
|
100
|
+
}), c), i.finops.getFinancingInvoices.setQueryData(i.finops.getFinancingInvoices.getQueryKey({
|
|
101
|
+
query: {}
|
|
102
|
+
}), (r) => {
|
|
103
|
+
const S = r?.data ? r.data : [];
|
|
104
|
+
return {
|
|
105
|
+
...r,
|
|
106
|
+
data: [n, ...S]
|
|
107
|
+
};
|
|
108
|
+
}, c);
|
|
109
|
+
}, C = ({
|
|
110
|
+
connectToken: e
|
|
111
|
+
}) => {
|
|
112
|
+
window?.KANMON_CONNECT?.start({
|
|
113
|
+
connectToken: e,
|
|
114
|
+
onEvent: (n) => {
|
|
115
|
+
if (!(n.eventType !== "USER_STATE_CHANGED" && n.eventType !== "USER_CONFIRMED_INVOICE"))
|
|
116
|
+
if (n.eventType === "USER_CONFIRMED_INVOICE")
|
|
117
|
+
g(n.data.invoice);
|
|
118
|
+
else {
|
|
119
|
+
switch (n.data.userState) {
|
|
120
|
+
case "START_FLOW":
|
|
121
|
+
a(o._("Apply for financing"));
|
|
122
|
+
break;
|
|
123
|
+
case "USER_INPUT_REQUIRED":
|
|
124
|
+
n.data.section === "OFFER" ? a(o._("Review terms and sign")) : a(o._("Resume application"));
|
|
125
|
+
break;
|
|
126
|
+
case "WAITING_FOR_OFFERS":
|
|
127
|
+
a(""), (t?.business_status === "INPUT_REQUIRED" || t?.business_status === "NEW") && y.onWorkingCapitalOnboardingComplete?.(E);
|
|
128
|
+
break;
|
|
129
|
+
case "OFFERS_EXPIRED":
|
|
130
|
+
case "NO_OFFERS_EXTENDED":
|
|
131
|
+
a("");
|
|
132
|
+
break;
|
|
133
|
+
case "SERVICING":
|
|
134
|
+
a(o._("Financing menu")), t?.business_status === "ONBOARDED" && t?.offers?.[0]?.status === "NEW" && window.localStorage.setItem("isFinanceTabNew", "true");
|
|
135
|
+
break;
|
|
136
|
+
case "VIEW_OFFERS":
|
|
137
|
+
case "OFFER_ACCEPTED":
|
|
138
|
+
a(o._("Review terms and sign"));
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
i.finops.getFinancingOffers.invalidateQueries(c);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
V(() => {
|
|
147
|
+
!d && !p && u && (async () => {
|
|
148
|
+
m(!0);
|
|
149
|
+
try {
|
|
150
|
+
const e = await l.mutateAsync();
|
|
151
|
+
C({
|
|
152
|
+
connectToken: e.connect_token
|
|
153
|
+
}), f(!0);
|
|
154
|
+
} catch {
|
|
155
|
+
} finally {
|
|
156
|
+
m(!1);
|
|
157
|
+
}
|
|
158
|
+
})();
|
|
159
|
+
}, [p, u]);
|
|
160
|
+
const O = p || N, v = u, A = t?.business_status === "ONBOARDED" && t?.offers?.[0]?.status === "CURRENT", D = t?.offers?.[0];
|
|
161
|
+
return {
|
|
162
|
+
buttonText: R,
|
|
163
|
+
applicationState: I,
|
|
164
|
+
offer: D,
|
|
165
|
+
isLoading: O,
|
|
166
|
+
isEnabled: v,
|
|
167
|
+
isServicing: A
|
|
168
|
+
};
|
|
169
|
+
};
|
|
44
170
|
export {
|
|
45
|
-
|
|
171
|
+
s as FinancialApplicationState,
|
|
172
|
+
ae as useFinancing
|
|
46
173
|
};
|