@tesouro/embedded-components-react 0.2.161 → 0.2.164
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 +21 -0
- package/dist/lib/ReceivablesWidget.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +88 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +28 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index6.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index9.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index4.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +5 -5
- 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 +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -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 +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -1
- 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 +7 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +99 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +56 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +79 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +33 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +25 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +13 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +215 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +10 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +49 -15
- 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 +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +152 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +54 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +71 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +60 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +39 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +82 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +5 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +25 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +20 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +24 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +109 -461
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +66 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +11 -534
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +46 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +75 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +54 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +39 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +221 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +467 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +110 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +535 -10
- 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 +23 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +59 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +398 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +67 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +2 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +406 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +100 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +13 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +52 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +77 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +32 -348
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +36 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +50 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +82 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +347 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +117 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +12 -28
- 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 +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +18 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +24 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +17 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +107 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +23 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +36 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +56 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +46 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +98 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +43 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +147 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +106 -17
- 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 +37 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +344 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +294 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +99 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +158 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +260 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +22 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +5 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +21 -96
- 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 +56 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +29 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +60 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +94 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +96 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +211 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +491 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +161 -50
- 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 +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +39 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +80 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +42 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +59 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +31 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +118 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +22 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +42 -29
- 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 +56 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +38 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +63 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +96 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +102 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +83 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +149 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +10 -111
- 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 +19 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +6 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +20 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +15 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +171 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +132 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +157 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +7 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +18 -33
- 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 +61 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +66 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +59 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +6 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +59 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +24 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +58 -486
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +14 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -21
- 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 +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +33 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +61 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +72 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +44 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +127 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +45 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +112 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +102 -51
- 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 +48 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +202 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +67 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +158 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +28 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +78 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +16 -76
- 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 +37 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +28 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +29 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +42 -295
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +11 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +76 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +41 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +25 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +127 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +6 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +24 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +26 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +23 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +65 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +93 -33
- 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 +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +10 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +22 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +50 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +31 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +4 -35
- 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 +126 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +7 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +53 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +18 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +91 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +31 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +27 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +118 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +18 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +16 -12
- 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 +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +71 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +3 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +53 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +36 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +23 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +32 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +24 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +34 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +85 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +17 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +83 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +260 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +65 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +43 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +141 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +108 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +81 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +11 -11
- 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 +8 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +12 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +2 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +278 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +47 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +15 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +22 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +35 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +46 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +66 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +18 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +14 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +66 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +45 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +80 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +29 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +14 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +29 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +66 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +55 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +39 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +96 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +14 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +18 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +9 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +70 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +21 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +42 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +35 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +18 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +49 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +8 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +69 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +85 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +51 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +49 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +38 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +44 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +52 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +20 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +32 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +85 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +24 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +101 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +108 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +72 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +65 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +12 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +28 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +23 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +38 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +48 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +48 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +165 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +71 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/labels.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +125 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +327 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApproverOptions.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index10.js +130 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +170 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index13.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index14.js +65 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index15.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +99 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +236 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index2.js +117 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index4.js +46 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index6.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index8.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index9.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/amountCoverage.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/amountInput.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyPriority.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyScript.js +98 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyTrigger.js +136 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/validatePolicyDraft.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +59 -0
- 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 +28 -28
- package/dist/packages/shared-ui-shadcn/dist/index.js +1668 -1662
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index10.js +0 -23
|
@@ -1,114 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import "./index92.js";
|
|
6
|
-
import "@emotion/react/jsx-runtime";
|
|
7
|
-
import "@lingui/react";
|
|
8
|
-
import "react-dom";
|
|
9
|
-
import "./index57.js";
|
|
10
|
-
import "@mui/x-data-grid";
|
|
11
|
-
import { useIsMounted as j } from "./index68.js";
|
|
12
|
-
import { generateUniqueId as B } from "./index393.js";
|
|
13
|
-
import { useFormContext as G, useFieldArray as H } from "react-hook-form";
|
|
14
|
-
const oe = ({
|
|
15
|
-
defaultCurrency: p,
|
|
16
|
-
isInclusivePricing: C
|
|
17
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
2
|
+
import { useLingui as a } from "@lingui/react";
|
|
3
|
+
import { toast as n } from "react-hot-toast";
|
|
4
|
+
const d = () => {
|
|
18
5
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
i18n: e
|
|
7
|
+
} = a(), {
|
|
8
|
+
api: r,
|
|
9
|
+
queryClient: t
|
|
10
|
+
} = o();
|
|
11
|
+
return r.finops.postCounterpartsIdAddresses.useMutation(void 0, {
|
|
12
|
+
onSuccess: async (s) => {
|
|
13
|
+
await r.finops.getCounterpartsIdAddresses.invalidateQueries({
|
|
14
|
+
parameters: {
|
|
15
|
+
path: {
|
|
16
|
+
counterpart_id: s.counterpart_id
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, t);
|
|
22
20
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
trigger: h,
|
|
28
|
-
reset: g
|
|
29
|
-
} = G(), {
|
|
30
|
-
fields: n,
|
|
31
|
-
append: y,
|
|
32
|
-
remove: v
|
|
33
|
-
} = H({
|
|
34
|
-
control: P,
|
|
35
|
-
name: "line_items",
|
|
36
|
-
shouldUnregister: !1
|
|
37
|
-
}), c = j(), s = z(!1), [I, b] = J(!1), V = f("line_items"), T = f("tax_rate"), D = W(V), {
|
|
38
|
-
formatCurrencyToDisplay: L
|
|
39
|
-
} = k(), {
|
|
40
|
-
subtotalPrice: R,
|
|
41
|
-
totalPrice: S,
|
|
42
|
-
totalTaxes: q
|
|
43
|
-
} = N({
|
|
44
|
-
lineItems: D,
|
|
45
|
-
actualCurrency: p,
|
|
46
|
-
isInclusivePricing: C,
|
|
47
|
-
formatCurrencyToDisplay: L,
|
|
48
|
-
taxRate: Number(T) || void 0
|
|
49
|
-
}), i = u((e) => {
|
|
50
|
-
const r = {
|
|
51
|
-
name: e?.product?.name || "",
|
|
52
|
-
price: {
|
|
53
|
-
currency: p,
|
|
54
|
-
value: e?.product?.price?.value || 0
|
|
55
|
-
},
|
|
56
|
-
measure_unit_id: e?.product?.measure_unit_id || "",
|
|
57
|
-
type: e?.product?.type || "product"
|
|
58
|
-
};
|
|
59
|
-
return {
|
|
60
|
-
id: e?.id ?? B(),
|
|
61
|
-
product_id: e?.product_id || "",
|
|
62
|
-
product: r,
|
|
63
|
-
quantity: e?.quantity ?? 1,
|
|
64
|
-
tax_rate_value: e?.tax_rate_value ? e?.tax_rate_value ?? 0 : void 0,
|
|
65
|
-
...e?.measure_unit ? {
|
|
66
|
-
measure_unit: e.measure_unit
|
|
67
|
-
} : {},
|
|
68
|
-
taxable: !0
|
|
69
|
-
};
|
|
70
|
-
}, [p]), A = u(() => {
|
|
71
|
-
if (s.current) return;
|
|
72
|
-
s.current = !0, y(i());
|
|
73
|
-
const e = t("line_items");
|
|
74
|
-
e && e.length > 0 && m(`line_items.${e.length - 1}`);
|
|
75
|
-
}, [y, i, t, m]);
|
|
76
|
-
x(() => {
|
|
77
|
-
s.current && Promise.resolve().then(() => {
|
|
78
|
-
c.current && (s.current = !1);
|
|
79
|
-
});
|
|
80
|
-
}, [n.length, c]), x(() => {
|
|
81
|
-
!c.current || I || !t("line_items")?.length && !s.current && (g({
|
|
82
|
-
...t(),
|
|
83
|
-
line_items: [i()]
|
|
84
|
-
}), b(!0));
|
|
85
|
-
}, [c, I, t, g, i]);
|
|
86
|
-
const E = u((e) => v(e), [v, t]), F = u(() => {
|
|
87
|
-
const e = t("line_items");
|
|
88
|
-
if (!e?.length) return;
|
|
89
|
-
const r = e.filter((a) => !!a?.product?.name?.trim()), d = e.find((a) => !a?.product?.name?.trim()), _ = r.length > 0 ? r : e.length > 0 ? [i(d || void 0)] : [];
|
|
90
|
-
(_.length !== e.length || !_.every((a, w) => a.id === e[w]?.id)) && (m("line_items"), l("line_items", _, {
|
|
91
|
-
shouldValidate: !1,
|
|
92
|
-
shouldDirty: !0
|
|
93
|
-
}));
|
|
94
|
-
}, [t, l, m, i]), M = u((e, r, d) => {
|
|
95
|
-
l(e, r, {
|
|
96
|
-
shouldDirty: !0,
|
|
97
|
-
...d
|
|
98
|
-
}), d?.shouldValidate && h(e);
|
|
99
|
-
}, [l, h]), U = JSON.stringify(o.line_items), $ = O(() => Array.isArray(o.line_items) ? n.map((e, r) => o.line_items?.[r] ?? {}) : n.map(() => ({})), [o.line_items, U, n]);
|
|
100
|
-
return {
|
|
101
|
-
fields: n,
|
|
102
|
-
subtotalPrice: R,
|
|
103
|
-
totalPrice: S,
|
|
104
|
-
totalTaxes: q,
|
|
105
|
-
lineItemErrors: $,
|
|
106
|
-
handleAddRow: A,
|
|
107
|
-
handleRemoveItem: E,
|
|
108
|
-
setValueWithValidationLocal: M,
|
|
109
|
-
cleanUpLineItemsForSubmission: F
|
|
110
|
-
};
|
|
21
|
+
onError: () => {
|
|
22
|
+
n.error(e._("There was an error setting up the address"));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
111
25
|
};
|
|
112
26
|
export {
|
|
113
|
-
|
|
27
|
+
d as useCreateCounterpartAddress
|
|
114
28
|
};
|
|
@@ -1,84 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
i = i[u];
|
|
29
|
-
}
|
|
30
|
-
return typeof i == "object" && i !== null && "message" in i && typeof i.message == "string";
|
|
31
|
-
});
|
|
32
|
-
if (a)
|
|
33
|
-
return c(a, n);
|
|
34
|
-
}
|
|
35
|
-
const d = (t, e) => m(t, e), M = (t) => {
|
|
36
|
-
let e = t.replace(/[^0-9.]/g, "");
|
|
37
|
-
const r = e.indexOf(".");
|
|
38
|
-
if (r !== -1 && (e = e.slice(0, r + 1) + e.slice(r + 1).replace(/\./g, ""), e = e.slice(0, r + 3)), e.length > 1 && e.startsWith("0") && e[1] !== "." && (e = e.replace(/^0+/, "") || "0"), e === "" || e === ".")
|
|
39
|
-
return e;
|
|
40
|
-
const n = Number(e);
|
|
41
|
-
return !isNaN(n) && n > 100 ? "100" : e;
|
|
42
|
-
}, j = (t, e) => {
|
|
43
|
-
if (t === void 0 || isNaN(t)) return "";
|
|
44
|
-
const r = p(t);
|
|
45
|
-
return e.format(r);
|
|
46
|
-
}, b = (t, e, r) => {
|
|
47
|
-
if (t.trim() === "") return 0;
|
|
48
|
-
let n = t;
|
|
49
|
-
if (r) {
|
|
50
|
-
const a = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
51
|
-
n = n.replace(new RegExp(a, "g"), "");
|
|
52
|
-
}
|
|
53
|
-
n = n.replace(e, ".");
|
|
54
|
-
const s = parseFloat(n);
|
|
55
|
-
return isNaN(s) ? 0 : f(s);
|
|
56
|
-
}, _ = (t) => !t || !Array.isArray(t) ? [] : t.filter((e) => !!e?.product?.name).map((e) => ({
|
|
57
|
-
...e,
|
|
58
|
-
id: e.product_id || l(),
|
|
59
|
-
quantity: e.quantity ?? 1,
|
|
60
|
-
product: {
|
|
61
|
-
...e.product,
|
|
62
|
-
type: e.product?.type,
|
|
63
|
-
price: {
|
|
64
|
-
...e.product?.price || {},
|
|
65
|
-
value: e.product?.price?.value ?? 0,
|
|
66
|
-
currency: e.product?.price?.currency || "USD"
|
|
1
|
+
import { useMoniteContext as e } from "./index57.js";
|
|
2
|
+
import { useLingui as i } from "@lingui/react";
|
|
3
|
+
import { toast as u } from "react-hot-toast";
|
|
4
|
+
const d = () => {
|
|
5
|
+
const {
|
|
6
|
+
api: r,
|
|
7
|
+
queryClient: n
|
|
8
|
+
} = e(), {
|
|
9
|
+
i18n: o
|
|
10
|
+
} = i();
|
|
11
|
+
return r.finops.patchCounterpartsIdBankAccountsId.useMutation(void 0, {
|
|
12
|
+
onSuccess: async (t) => {
|
|
13
|
+
r.finops.getCounterpartsIdBankAccountsId.setQueryData({
|
|
14
|
+
path: {
|
|
15
|
+
counterpart_id: t.counterpart_id,
|
|
16
|
+
bank_account_id: t.id
|
|
17
|
+
}
|
|
18
|
+
}, (a) => ({
|
|
19
|
+
...a,
|
|
20
|
+
...t
|
|
21
|
+
}), n), await r.finops.getCounterpartsIdBankAccounts.invalidateQueries({
|
|
22
|
+
parameters: {
|
|
23
|
+
path: {
|
|
24
|
+
counterpart_id: t.counterpart_id
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}, n);
|
|
67
28
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
...e.measure_unit?.name ? {
|
|
71
|
-
measure_unit: {
|
|
72
|
-
name: e.measure_unit.name,
|
|
73
|
-
id: null
|
|
29
|
+
onError: () => {
|
|
30
|
+
u.error(o._("Failed to update Bank Account."));
|
|
74
31
|
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
77
34
|
export {
|
|
78
|
-
|
|
79
|
-
m as getErrorMessage,
|
|
80
|
-
d as getLineItemErrorMessage,
|
|
81
|
-
b as parseMajorToMinorCurrency,
|
|
82
|
-
_ as sanitizeLineItems,
|
|
83
|
-
M as sanitizeTaxRateInput
|
|
35
|
+
d as useUpdateCounterpartBank
|
|
84
36
|
};
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
+
import { useLingui as a } from "@lingui/react";
|
|
3
|
+
import { toast as s } from "react-hot-toast";
|
|
4
|
+
const m = (e) => {
|
|
5
|
+
const {
|
|
6
|
+
api: t,
|
|
7
|
+
queryClient: i
|
|
8
|
+
} = n(), {
|
|
9
|
+
i18n: o
|
|
10
|
+
} = a();
|
|
11
|
+
return t.finops.deleteMeasureUnitsId.useMutation(void 0, {
|
|
12
|
+
onSuccess: async () => {
|
|
13
|
+
e && (await t.finops.getMeasureUnits.invalidateQueries(i), s.success(o._("Unit {name} was deleted from the list.", {
|
|
14
|
+
name: e
|
|
15
|
+
})));
|
|
16
|
+
},
|
|
17
|
+
onError: (r) => {
|
|
18
|
+
console.error(r), s.error(o._("Failed to delete Unit."));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
};
|
|
2
22
|
export {
|
|
3
|
-
|
|
23
|
+
m as useDeleteMeasureUnit
|
|
4
24
|
};
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
|
|
1
|
+
import { useMoniteContext as u } from "./index57.js";
|
|
2
|
+
import { getAPIErrorMessage as m } from "./index122.js";
|
|
3
|
+
import { useLingui as c } from "@lingui/react";
|
|
4
|
+
import { toast as n } from "react-hot-toast";
|
|
5
|
+
const M = (a, i) => {
|
|
3
6
|
const {
|
|
4
|
-
api: t
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
api: t,
|
|
8
|
+
queryClient: o
|
|
9
|
+
} = u(), {
|
|
10
|
+
i18n: r
|
|
11
|
+
} = c();
|
|
12
|
+
return t.finops.postMeasureUnits.useMutation({}, {
|
|
13
|
+
onSuccess: async (e) => {
|
|
14
|
+
await t.finops.getMeasureUnits.invalidateQueries(o), n.success(r._("Unit {name} was added to the list", {
|
|
15
|
+
name: e.name
|
|
16
|
+
})), a?.();
|
|
17
|
+
},
|
|
18
|
+
onError: async (e) => {
|
|
19
|
+
const s = m(r, e);
|
|
20
|
+
if (s.includes("already exists")) {
|
|
21
|
+
i?.(s);
|
|
22
|
+
return;
|
|
23
|
+
} else
|
|
24
|
+
n.error(s);
|
|
8
25
|
}
|
|
9
26
|
});
|
|
10
27
|
};
|
|
11
28
|
export {
|
|
12
|
-
|
|
29
|
+
M as useCreateMeasureUnit
|
|
13
30
|
};
|
|
@@ -1,13 +1,40 @@
|
|
|
1
|
-
import { useMoniteContext as
|
|
2
|
-
|
|
1
|
+
import { useMoniteContext as p } from "./index57.js";
|
|
2
|
+
import { getAPIErrorMessage as m } from "./index122.js";
|
|
3
|
+
import { useLingui as d } from "@lingui/react";
|
|
4
|
+
import { toast as n } from "react-hot-toast";
|
|
5
|
+
const g = (i, o, u) => {
|
|
3
6
|
const {
|
|
4
|
-
api: e
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
api: e,
|
|
8
|
+
queryClient: r
|
|
9
|
+
} = p(), {
|
|
10
|
+
i18n: a
|
|
11
|
+
} = d();
|
|
12
|
+
return e.finops.patchMeasureUnitsId.useMutation({
|
|
13
|
+
path: {
|
|
14
|
+
unit_id: i
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
onSuccess: async (s) => {
|
|
18
|
+
await Promise.all([e.finops.getMeasureUnits.invalidateQueries(r), e.finops.getMeasureUnitsId.invalidateQueries({
|
|
19
|
+
parameters: {
|
|
20
|
+
path: {
|
|
21
|
+
unit_id: i
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, r)]), n.success(a._("Unit {name} was updated", {
|
|
25
|
+
name: s.name
|
|
26
|
+
})), o?.();
|
|
27
|
+
},
|
|
28
|
+
onError: (s) => {
|
|
29
|
+
const t = m(a, s);
|
|
30
|
+
if (t.includes("already exists")) {
|
|
31
|
+
u?.(t);
|
|
32
|
+
return;
|
|
33
|
+
} else
|
|
34
|
+
n.error(t);
|
|
8
35
|
}
|
|
9
36
|
});
|
|
10
37
|
};
|
|
11
38
|
export {
|
|
12
|
-
|
|
39
|
+
g as useUpdateMeasureUnit
|
|
13
40
|
};
|
|
@@ -1,9 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as t, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as S, useMemo as p } from "react";
|
|
3
|
+
import { useFormContext as $, Controller as E } from "react-hook-form";
|
|
4
|
+
import { getCounterpartEmail as V, getCounterpartName as I } from "./index7.js";
|
|
5
|
+
import { useRootElements as j } from "./index92.js";
|
|
6
|
+
import "./index57.js";
|
|
7
|
+
import { useCounterpartList as k } from "./index71.js";
|
|
8
|
+
import "react-hot-toast";
|
|
9
|
+
import { useLingui as z } from "@lingui/react";
|
|
10
|
+
import { Combobox as D, ComboboxInput as A, ComboboxContent as q, ComboboxList as B, ComboboxEmpty as G, ComboboxItem as K } from "./index90.js";
|
|
11
|
+
import { Field as M, FieldContent as O, FieldLabel as P, FieldDescription as R, FieldError as T } from "./index156.js";
|
|
12
|
+
import { InputGroupAddon as H } from "./index101.js";
|
|
13
|
+
import { Loader2 as J, Search as Q } from "lucide-react";
|
|
14
|
+
const me = ({
|
|
15
|
+
disabled: _,
|
|
16
|
+
canCreateCounterpart: i = !0
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
i18n: o
|
|
20
|
+
} = z(), {
|
|
21
|
+
root: g
|
|
22
|
+
} = j(), {
|
|
23
|
+
control: x,
|
|
24
|
+
setValue: s,
|
|
25
|
+
watch: v,
|
|
26
|
+
clearErrors: f
|
|
27
|
+
} = $(), {
|
|
28
|
+
data: d,
|
|
29
|
+
isLoading: L
|
|
30
|
+
} = k({
|
|
31
|
+
query: {
|
|
32
|
+
is_customer: !0
|
|
33
|
+
}
|
|
34
|
+
}), [h, C] = S(!1), m = v("counterpart_name") ?? "", c = p(() => d ? d.data.map((e) => ({
|
|
35
|
+
id: e.id,
|
|
36
|
+
name: I(e),
|
|
37
|
+
email: V(e)
|
|
38
|
+
})) : [], [d]), a = p(() => {
|
|
39
|
+
const e = m.toLowerCase().trim();
|
|
40
|
+
return e ? c.filter((n) => n.name.toLowerCase().includes(e) || n.email.toLowerCase().includes(e)) : c;
|
|
41
|
+
}, [c, m]), y = p(() => a.map((e) => e.id), [a]);
|
|
42
|
+
return /* @__PURE__ */ t(E, { name: "counterpart_id", control: x, render: ({
|
|
43
|
+
field: e,
|
|
44
|
+
fieldState: {
|
|
45
|
+
error: n
|
|
46
|
+
}
|
|
47
|
+
}) => {
|
|
48
|
+
const w = (r) => {
|
|
49
|
+
s("counterpart_name", ""), s("counterpart_email", ""), f(["counterpart_id", "counterpart_email"]), e.onChange(r ?? "");
|
|
50
|
+
}, N = (r, l) => {
|
|
51
|
+
if (l.reason !== "input-change") {
|
|
52
|
+
i || s("counterpart_name", "");
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
s("counterpart_name", r), e.value && e.onChange(""), i && r.trim() && f("counterpart_id");
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ t(M, { children: /* @__PURE__ */ u(O, { children: [
|
|
58
|
+
/* @__PURE__ */ t(P, { htmlFor: "counterpart_id", children: o._("Name") }),
|
|
59
|
+
/* @__PURE__ */ u(D, { value: e.value || null, onValueChange: w, inputValue: m, onInputValueChange: N, items: y, filter: () => !0, disabled: _, open: h, onOpenChange: C, children: [
|
|
60
|
+
/* @__PURE__ */ t(A, { id: "counterpart_id", placeholder: i ? o._("Search or type to add a customer") : o._("Search for a customer"), "aria-invalid": !!n, onKeyDown: (r) => {
|
|
61
|
+
if (r.key === "Enter") {
|
|
62
|
+
r.preventDefault();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (r.key === "Tab" && h) {
|
|
66
|
+
const l = m.toLowerCase().trim();
|
|
67
|
+
if (!l) return;
|
|
68
|
+
const b = a.find((F) => F.name.toLowerCase() === l) ?? (a.length === 1 ? a[0] : void 0);
|
|
69
|
+
b && (w(b.id), C(!1));
|
|
70
|
+
}
|
|
71
|
+
}, children: /* @__PURE__ */ t(H, { align: "inline-start", children: L ? /* @__PURE__ */ t(J, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) : /* @__PURE__ */ t(Q, { className: "ttw:size-4 ttw:text-muted-foreground" }) }) }),
|
|
72
|
+
/* @__PURE__ */ t(q, { container: g, children: /* @__PURE__ */ u(B, { children: [
|
|
73
|
+
/* @__PURE__ */ t(G, { children: i ? o._("No customers found - type to add a customer") : o._("No customers found") }),
|
|
74
|
+
a.map((r) => /* @__PURE__ */ t(K, { value: r.id, children: /* @__PURE__ */ u("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
75
|
+
/* @__PURE__ */ t("span", { children: r.name }),
|
|
76
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-muted-foreground", children: r.email })
|
|
77
|
+
] }) }, r.id))
|
|
78
|
+
] }) })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ t(R, { children: i ? o._("Search by customer name or email. New customers will be saved when saving the invoice.") : o._("Search by customer name or email.") }),
|
|
81
|
+
/* @__PURE__ */ t(T, { errors: n ? [n] : [] })
|
|
82
|
+
] }) });
|
|
83
|
+
} });
|
|
84
|
+
};
|
|
7
85
|
export {
|
|
8
|
-
|
|
86
|
+
me as CounterpartSelector
|
|
9
87
|
};
|
|
@@ -1,56 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = y(), {
|
|
17
|
-
root: u
|
|
18
|
-
} = I(), [i, s] = n(!1), [m, c] = n(null), [f, g] = n(""), {
|
|
19
|
-
data: C,
|
|
20
|
-
isLoading: a,
|
|
21
|
-
refetch: A
|
|
22
|
-
} = d.finops.getEntityUsers.useQuery({
|
|
23
|
-
query: {
|
|
24
|
-
name__istartswith: f || void 0
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
enabled: i
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ o(M, { autoComplete: !0, includeInputInList: !0, filterSelectedOptions: !0, value: m, noOptionsText: r._("No users found"), slotProps: {
|
|
30
|
-
popper: {
|
|
31
|
-
container: u
|
|
32
|
-
}
|
|
33
|
-
}, open: i, onOpen: () => {
|
|
34
|
-
s(!0);
|
|
35
|
-
}, onClose: () => {
|
|
36
|
-
s(!1);
|
|
37
|
-
}, loading: a, options: C?.data || [], getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(), isOptionEqualToValue: (e, t) => e.id === t.id, filterOptions: (e) => e, onInputChange: (e, t) => {
|
|
38
|
-
g(t);
|
|
39
|
-
}, onChange: (e, t) => {
|
|
40
|
-
c(t), l(t?.id), A();
|
|
41
|
-
}, className: _("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", p), sx: {
|
|
42
|
-
"&.MuiAutocomplete-root": {
|
|
43
|
-
display: "flex",
|
|
44
|
-
alignItems: "center"
|
|
45
|
-
}
|
|
46
|
-
}, renderInput: (e) => /* @__PURE__ */ o(O, { ...e, variant: "standard", placeholder: r._("Added by"), className: "Monite-ApprovalAddedByFilter Monite-FilterControl", InputProps: {
|
|
47
|
-
...e.InputProps,
|
|
48
|
-
endAdornment: /* @__PURE__ */ h(x, { children: [
|
|
49
|
-
a ? /* @__PURE__ */ o(v, { color: "inherit", size: 20 }) : null,
|
|
50
|
-
e.InputProps.endAdornment
|
|
51
|
-
] })
|
|
52
|
-
} }) });
|
|
53
|
-
};
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "./index100.js";
|
|
3
|
+
import * as r from "@radix-ui/react-avatar";
|
|
4
|
+
function n({
|
|
5
|
+
className: t,
|
|
6
|
+
...a
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e(r.Root, { "data-slot": "avatar", className: l("ttw:relative ttw:flex ttw:size-8 ttw:shrink-0 ttw:overflow-hidden ttw:rounded-full", t), ...a });
|
|
9
|
+
}
|
|
10
|
+
function f({
|
|
11
|
+
className: t,
|
|
12
|
+
...a
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ e(r.Fallback, { "data-slot": "avatar-fallback", className: l("ttw:bg-muted ttw:flex ttw:size-full ttw:items-center ttw:justify-center ttw:rounded-full", t), ...a });
|
|
15
|
+
}
|
|
54
16
|
export {
|
|
55
|
-
|
|
17
|
+
n as Avatar,
|
|
18
|
+
f as AvatarFallback
|
|
56
19
|
};
|
|
@@ -1,20 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as e, Fragment as v, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as k, useMemo as b } from "react";
|
|
3
|
+
import { useFormContext as Y, Controller as j } from "react-hook-form";
|
|
4
|
+
import { format as x } from "date-fns";
|
|
5
|
+
import { Calendar as A } from "lucide-react";
|
|
6
|
+
import { calculateDueDate as N } from "./index7.js";
|
|
7
|
+
import { useLingui as L } from "@lingui/react";
|
|
8
|
+
import { dedupePaymentTermsByContent as $ } from "./index469.js";
|
|
9
|
+
import { RECEIPT_DUE_PAYMENT_TERM as u, CUSTOM_DATE_PAYMENT_TERM as l } from "./index337.js";
|
|
10
|
+
import { cn as D } from "./index100.js";
|
|
11
|
+
import { Skeleton as O } from "./index136.js";
|
|
12
|
+
import { Select as R, SelectTrigger as U, SelectValue as V, SelectContent as z, SelectItem as h, SelectSeparator as I } from "./index323.js";
|
|
13
|
+
import { Popover as q, PopoverAnchor as B, PopoverContent as K } from "./index367.js";
|
|
14
|
+
import { Calendar as G } from "./index470.js";
|
|
15
|
+
import { Field as H, FieldContent as J, FieldLabel as Q, FieldDescription as W, FieldError as X } from "./index156.js";
|
|
16
|
+
const S = "MMM d, yyyy", ue = ({
|
|
17
|
+
disabled: T,
|
|
18
|
+
paymentTerms: f,
|
|
19
|
+
isLoading: E
|
|
12
20
|
}) => {
|
|
13
21
|
const {
|
|
14
|
-
|
|
15
|
-
} =
|
|
16
|
-
|
|
22
|
+
i18n: a
|
|
23
|
+
} = L(), {
|
|
24
|
+
control: M,
|
|
25
|
+
watch: w,
|
|
26
|
+
setValue: _
|
|
27
|
+
} = Y(), [F, m] = k(!1), i = w("payment_terms_id"), y = w("frequency") !== "once", o = w("payment_terms_custom_date") ?? void 0, p = (r) => _("payment_terms_custom_date", r ?? null), {
|
|
28
|
+
dedupedTerms: g
|
|
29
|
+
} = b(() => $(f?.data ?? []), [f]), d = g.find((r) => r?.id === i), P = d && N(d), c = () => {
|
|
30
|
+
window.setTimeout(() => m(!0), 0);
|
|
31
|
+
}, C = (r, s) => /* @__PURE__ */ n("span", { className: "ttw:flex ttw:w-full ttw:min-w-0 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
32
|
+
/* @__PURE__ */ e("span", { className: "ttw:truncate", children: r }),
|
|
33
|
+
s && /* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground ttw:shrink-0 ttw:text-xs", children: x(s, S) })
|
|
34
|
+
] });
|
|
35
|
+
return /* @__PURE__ */ e(v, { children: E ? /* @__PURE__ */ e(O, { className: "ttw:w-full ttw:h-9" }) : /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(j, { name: "payment_terms_id", control: M, render: ({
|
|
36
|
+
field: r,
|
|
37
|
+
fieldState: {
|
|
38
|
+
error: s
|
|
39
|
+
}
|
|
40
|
+
}) => /* @__PURE__ */ e(H, { children: /* @__PURE__ */ n(J, { children: [
|
|
41
|
+
/* @__PURE__ */ e(Q, { htmlFor: "payment_terms_id", children: a._("Payment terms") }),
|
|
42
|
+
/* @__PURE__ */ n(q, { open: F, onOpenChange: (t) => {
|
|
43
|
+
m(t), !t && i === l && !o && r.onChange(void 0);
|
|
44
|
+
}, children: [
|
|
45
|
+
/* @__PURE__ */ n(R, { ...r, disabled: T, value: r.value, onValueChange: (t) => {
|
|
46
|
+
if (t === l) {
|
|
47
|
+
i !== l && p(void 0), r.onChange(t), c();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
r.onChange(t), t === u && _("payment_reminder_id", "", {
|
|
51
|
+
shouldDirty: !0
|
|
52
|
+
}), p(void 0), m(!1);
|
|
53
|
+
}, children: [
|
|
54
|
+
/* @__PURE__ */ e(B, { className: "ttw:w-full", children: /* @__PURE__ */ e(U, { id: "payment_terms_id", className: "ttw:w-full", "aria-invalid": !!s, children: /* @__PURE__ */ n(V, { placeholder: a._("Select payment terms"), children: [
|
|
55
|
+
i === u && /* @__PURE__ */ e("span", { className: "ttw:truncate", children: a._("Due on receipt") }),
|
|
56
|
+
i === l && /* @__PURE__ */ n("span", { className: "ttw:flex ttw:w-full ttw:min-w-0 ttw:items-center ttw:justify-between ttw:gap-2", children: [
|
|
57
|
+
/* @__PURE__ */ n("span", { className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-1.5", children: [
|
|
58
|
+
/* @__PURE__ */ e(A, { className: D("ttw:size-4 ttw:shrink-0", !o && "ttw:text-muted-foreground") }),
|
|
59
|
+
/* @__PURE__ */ e("span", { className: D("ttw:truncate", !o && "ttw:text-muted-foreground"), children: o ? x(o, S) : a._("Mon DD, YYYY") })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground ttw:shrink-0 ttw:text-xs", children: a._("Custom date") })
|
|
62
|
+
] }),
|
|
63
|
+
d && C(d.name, P)
|
|
64
|
+
] }) }) }),
|
|
65
|
+
/* @__PURE__ */ n(z, { children: [
|
|
66
|
+
/* @__PURE__ */ e(h, { value: u, children: a._("Due on receipt") }),
|
|
67
|
+
!y && /* @__PURE__ */ e(h, { value: l, onPointerUp: c, onClick: c, onKeyDown: (t) => {
|
|
68
|
+
(t.key === "Enter" || t.key === " ") && c();
|
|
69
|
+
}, children: a._("Custom date") }),
|
|
70
|
+
/* @__PURE__ */ e(I, {}),
|
|
71
|
+
g.map((t) => /* @__PURE__ */ e(h, { value: t.id, children: C(t.name, N(t)) }, t.id))
|
|
72
|
+
] })
|
|
73
|
+
] }),
|
|
74
|
+
/* @__PURE__ */ e(K, { className: "ttw:w-auto ttw:overflow-hidden ttw:p-0", align: "start", onFocusOutside: (t) => {
|
|
75
|
+
t.preventDefault();
|
|
76
|
+
}, children: /* @__PURE__ */ e(G, { mode: "single", captionLayout: "dropdown", selected: o, disabled: {
|
|
77
|
+
before: /* @__PURE__ */ new Date()
|
|
78
|
+
}, onSelect: (t) => {
|
|
79
|
+
p(t), m(!1);
|
|
80
|
+
} }) })
|
|
81
|
+
] }),
|
|
82
|
+
y && /* @__PURE__ */ e(W, { children: a._("Each invoice in the series will have the same payment term.") }),
|
|
83
|
+
/* @__PURE__ */ e(X, { errors: s ? [s] : [] })
|
|
84
|
+
] }) }) }) }) });
|
|
17
85
|
};
|
|
18
86
|
export {
|
|
19
|
-
|
|
87
|
+
ue as PaymentSection
|
|
20
88
|
};
|