@tesouro/embedded-components-react 0.2.233 → 0.2.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +65 -59
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/useApprovalPolicies.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -35
- 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 +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +23 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +34 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +25 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +33 -9
- 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 +60 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +398 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +75 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +30 -10
- 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 +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +24 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +118 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +217 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +12 -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 +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +44 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +43 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +152 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +55 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +68 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +64 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +9 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +74 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +54 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +23 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +80 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +28 -227
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +39 -467
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +226 -537
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +467 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +106 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +535 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +25 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +18 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +20 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +27 -14
- 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 +117 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +69 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +13 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +12 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +99 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +57 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +72 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +44 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +37 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +27 -74
- 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 +42 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +61 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +92 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +106 -341
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +81 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +62 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +48 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +27 -265
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +75 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +59 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +29 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +118 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +22 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +53 -92
- 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 +5 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +484 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +167 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +25 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +128 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +49 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +119 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +106 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +198 -53
- 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 +67 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +149 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +28 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +4 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +37 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +30 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +29 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +12 -56
- 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 +8 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +156 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +28 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +26 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +78 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +14 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +72 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +76 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +44 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +21 -31
- 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 +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +22 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +55 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +57 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +127 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +20 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +33 -27
- 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 +2 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +94 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +96 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +207 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +64 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +20 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +18 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +163 -35
- 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 +134 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +158 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +8 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +18 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +66 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +58 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +9 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +56 -156
- 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 +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +14 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +339 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +302 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +99 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +155 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +264 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +16 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +44 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +8 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +45 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +45 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +31 -46
- 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 +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +41 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +23 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +72 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +94 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +34 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +10 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +19 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +61 -31
- 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 +16 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +12 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +14 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +66 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +117 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +81 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +33 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +117 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -14
- 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 +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +15 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +53 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +79 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +82 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +269 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +65 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +44 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +137 -69
- 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 +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +2 -16
- 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 +285 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +49 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +15 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +50 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +15 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +5 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +32 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +20 -21
- 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 +46 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +11 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +25 -282
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +35 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +127 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +5 -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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +93 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +8 -54
- 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 +49 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +47 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +72 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +86 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +51 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +49 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +29 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +55 -18
- 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 +68 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +20 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +39 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +33 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +85 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +23 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +105 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +104 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +69 -62
- 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 +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +29 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +19 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +38 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +13 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +92 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +14 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +74 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +20 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +18 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +58 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +32 -38
- 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 +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +1 -1
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +454 -454
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +96 -96
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +122 -97
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index9.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index20.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index21.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +4 -4
- package/package.json +1 -1
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
import { toast as o } from "react-hot-toast";
|
|
2
1
|
import { useMoniteContext as n } from "./index57.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { getAPIErrorMessage as i } from "./index121.js";
|
|
3
|
+
import { useLingui as a } from "@lingui/react";
|
|
4
|
+
import { toast as o } from "react-hot-toast";
|
|
5
|
+
const c = () => {
|
|
5
6
|
const {
|
|
6
|
-
api:
|
|
7
|
+
api: e,
|
|
7
8
|
queryClient: s
|
|
8
9
|
} = n(), {
|
|
9
|
-
i18n:
|
|
10
|
-
} =
|
|
11
|
-
return
|
|
12
|
-
path: {
|
|
13
|
-
entity_id: i
|
|
14
|
-
}
|
|
15
|
-
}, {
|
|
10
|
+
i18n: r
|
|
11
|
+
} = a();
|
|
12
|
+
return e.finops.postPaymentReminders.useMutation(void 0, {
|
|
16
13
|
onSuccess: async () => {
|
|
17
|
-
await
|
|
14
|
+
await e.finops.getPaymentReminders.invalidateQueries(s), o.success(r._("Reminder has been added"));
|
|
18
15
|
},
|
|
19
|
-
onError: () => {
|
|
20
|
-
o.error(
|
|
16
|
+
onError: (t) => {
|
|
17
|
+
o.error(i(r, t));
|
|
21
18
|
}
|
|
22
19
|
});
|
|
23
20
|
};
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
c as useCreatePaymentReminder
|
|
26
23
|
};
|
|
@@ -1,52 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useLingui as h } from "@lingui/react";
|
|
4
|
-
import { X as g, CloudUpload as x, AlertCircle as N, CheckCircle2 as b } from "lucide-react";
|
|
5
|
-
import { LoadingSpinner as y } from "./index131.js";
|
|
6
|
-
import { Typography as l } from "./index85.js";
|
|
7
|
-
import { twMerge as v } from "tailwind-merge";
|
|
8
|
-
import { UploadBar as C } from "./index449.js";
|
|
9
|
-
const U = ({
|
|
10
|
-
isUploading: o,
|
|
11
|
-
isSuccess: r,
|
|
12
|
-
isError: i,
|
|
13
|
-
isDraggingOver: d,
|
|
14
|
-
resetUpload: a,
|
|
15
|
-
fileName: m,
|
|
16
|
-
onClick: u
|
|
17
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as m } from "./index57.js";
|
|
2
|
+
const a = (e) => e && e.length > 0 ? Math.min(...e.map((t) => t.days_after)) : Number.POSITIVE_INFINITY, i = () => {
|
|
18
3
|
const {
|
|
19
|
-
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-4 ttw:justify-center ttw:w-full", children: [
|
|
31
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:w-1/2 ttw:items-center", children: [
|
|
32
|
-
p(),
|
|
33
|
-
/* @__PURE__ */ t("span", { className: "ttw:w-full ttw:text-sm ttw:leading-5 ttw:text-medium ttw:text-neutral ttw:truncate", children: m })
|
|
34
|
-
] }),
|
|
35
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:items-center", children: [
|
|
36
|
-
/* @__PURE__ */ t(C, { shouldStartProgress: o, isError: i, isSuccess: r }),
|
|
37
|
-
i && /* @__PURE__ */ t("button", { type: "button", disabled: o, onClick: a, className: "ttw:border-none ttw:cursor-pointer", children: /* @__PURE__ */ t(g, { className: "ttw:size-4" }) })
|
|
38
|
-
] })
|
|
39
|
-
] }),
|
|
40
|
-
i && /* @__PURE__ */ t(l, { variant: "body2", color: "destructive", className: "ttw:font-medium", children: s._("Wrong file format. Please, upload the file in JPEG, PNG or GIF format.") })
|
|
41
|
-
] }) : /* @__PURE__ */ e(c, { children: [
|
|
42
|
-
/* @__PURE__ */ t("div", { className: "ttw:p-3 ttw:bg-primary ttw:rounded-full", children: /* @__PURE__ */ t(x, { className: "ttw:text-white ttw:size-5" }) }),
|
|
43
|
-
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:font-medium", children: [
|
|
44
|
-
s._("Drop your files here, or "),
|
|
45
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline ttw:hover:cursor-pointer", children: s._("click to browse") })
|
|
46
|
-
] }),
|
|
47
|
-
/* @__PURE__ */ t(l, { variant: "caption", color: "muted", children: s._("PNG, JPG or GIF (max. 10MB)") })
|
|
48
|
-
] }) });
|
|
4
|
+
api: e
|
|
5
|
+
} = m();
|
|
6
|
+
return e.finops.getOverdueReminders.useQuery(void 0, {
|
|
7
|
+
select: (t) => [...t.data].sort((r, s) => a(r.terms) - a(s.terms)).map(({
|
|
8
|
+
id: r,
|
|
9
|
+
name: s
|
|
10
|
+
}) => ({
|
|
11
|
+
value: r,
|
|
12
|
+
label: s
|
|
13
|
+
}))
|
|
14
|
+
});
|
|
49
15
|
};
|
|
50
16
|
export {
|
|
51
|
-
|
|
17
|
+
i as useGetOverdueReminders
|
|
52
18
|
};
|
|
@@ -1,34 +1,23 @@
|
|
|
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
|
-
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(o.Content, { "data-slot": "popover-content", align: a, sideOffset: r, className: i("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:w-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", t), ...n }) });
|
|
23
|
-
}
|
|
24
|
-
function l({
|
|
25
|
-
...t
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ e(o.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
28
|
-
}
|
|
1
|
+
import { useMoniteContext as t } from "./index57.js";
|
|
2
|
+
import { getAPIErrorMessage as n } from "./index121.js";
|
|
3
|
+
import { useLingui as a } from "@lingui/react";
|
|
4
|
+
import { toast as s } from "react-hot-toast";
|
|
5
|
+
const c = () => {
|
|
6
|
+
const {
|
|
7
|
+
api: e,
|
|
8
|
+
queryClient: o
|
|
9
|
+
} = t(), {
|
|
10
|
+
i18n: r
|
|
11
|
+
} = a();
|
|
12
|
+
return e.finops.postOverdueReminders.useMutation(void 0, {
|
|
13
|
+
onSuccess: async () => {
|
|
14
|
+
await e.finops.getOverdueReminders.invalidateQueries(o), s.success(r._("Reminder has been added"));
|
|
15
|
+
},
|
|
16
|
+
onError: (i) => {
|
|
17
|
+
s.error(n(r, i));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
29
21
|
export {
|
|
30
|
-
|
|
31
|
-
l as PopoverAnchor,
|
|
32
|
-
f as PopoverContent,
|
|
33
|
-
d as PopoverTrigger
|
|
22
|
+
c as useCreateOverdueReminder
|
|
34
23
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useMoniteContext as n } from "./index57.js";
|
|
2
|
+
const m = (e) => {
|
|
3
|
+
const {
|
|
4
|
+
api: t
|
|
5
|
+
} = n();
|
|
6
|
+
return t.finops.getPaymentTermsId.useQuery({
|
|
7
|
+
path: {
|
|
8
|
+
payment_terms_id: e ?? ""
|
|
9
|
+
}
|
|
10
|
+
}, {
|
|
11
|
+
enabled: !!e
|
|
12
|
+
});
|
|
9
13
|
};
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
m as useGetPaymentTermById
|
|
12
16
|
};
|
|
@@ -1,13 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { Price as v } from "./index376.js";
|
|
2
|
+
import { useMemo as m } from "react";
|
|
3
|
+
const w = ({
|
|
4
|
+
lineItems: c,
|
|
5
|
+
isInclusivePricing: o,
|
|
6
|
+
actualCurrency: p,
|
|
7
|
+
formatCurrencyToDisplay: i,
|
|
8
|
+
taxRate: n
|
|
9
|
+
}) => {
|
|
10
|
+
const b = (e) => {
|
|
11
|
+
const a = e.product?.price?.value ?? e.price?.value ?? 0, r = e.quantity ?? 1;
|
|
12
|
+
return {
|
|
13
|
+
price: a,
|
|
14
|
+
quantity: r
|
|
15
|
+
};
|
|
16
|
+
}, s = m(() => {
|
|
17
|
+
const e = n !== void 0 ? (n ?? 0) / 100 : void 0, a = c.reduce((t, f) => {
|
|
18
|
+
const {
|
|
19
|
+
price: l,
|
|
20
|
+
quantity: u
|
|
21
|
+
} = b(f);
|
|
22
|
+
if (o && e && f.taxable) {
|
|
23
|
+
const d = l * u / (1 + e);
|
|
24
|
+
return t + d;
|
|
25
|
+
}
|
|
26
|
+
return t + l * u;
|
|
27
|
+
}, 0), r = p ?? c.find((t) => !!t.product?.price?.currency)?.product?.price?.currency ?? c.find((t) => !!t.price?.currency)?.price?.currency;
|
|
28
|
+
if (r)
|
|
29
|
+
return new v({
|
|
30
|
+
value: a,
|
|
31
|
+
currency: r,
|
|
32
|
+
formatter: i
|
|
33
|
+
});
|
|
34
|
+
}, [c, i, p, o, n]), y = m(() => {
|
|
35
|
+
const e = p ?? c.find((r) => !!r.product?.price?.currency)?.product?.price?.currency ?? c.find((r) => !!r.price?.currency)?.price?.currency;
|
|
36
|
+
if (!e)
|
|
37
|
+
return;
|
|
38
|
+
if (!n)
|
|
39
|
+
return new v({
|
|
40
|
+
value: 0,
|
|
41
|
+
currency: e,
|
|
42
|
+
formatter: i
|
|
43
|
+
});
|
|
44
|
+
const a = c.reduce((r, t) => {
|
|
45
|
+
if (!t.taxable) return r;
|
|
46
|
+
const {
|
|
47
|
+
price: f,
|
|
48
|
+
quantity: l
|
|
49
|
+
} = b(t), u = n / 100, d = f * l;
|
|
50
|
+
return o ? r + d * u / (1 + u) : r + d * u;
|
|
51
|
+
}, 0);
|
|
52
|
+
return new v({
|
|
53
|
+
value: a,
|
|
54
|
+
currency: e,
|
|
55
|
+
formatter: i
|
|
56
|
+
});
|
|
57
|
+
}, [c, i, p, n, o]), x = m(() => {
|
|
58
|
+
if (!(!s || !y))
|
|
59
|
+
return s.add(y);
|
|
60
|
+
}, [s, y]);
|
|
61
|
+
return {
|
|
62
|
+
subtotalPrice: s,
|
|
63
|
+
totalTaxes: y,
|
|
64
|
+
totalPrice: x
|
|
65
|
+
};
|
|
10
66
|
};
|
|
11
67
|
export {
|
|
12
|
-
|
|
68
|
+
w as useCreateInvoiceProductsTable
|
|
13
69
|
};
|
|
@@ -1,36 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}), n), await r.finops.getCounterpartsIdBankAccounts.invalidateQueries({
|
|
22
|
-
parameters: {
|
|
23
|
-
path: {
|
|
24
|
-
counterpart_id: t.counterpart_id
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}, n);
|
|
28
|
-
},
|
|
29
|
-
onError: () => {
|
|
30
|
-
u.error(o._("Failed to update Bank Account."));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
};
|
|
1
|
+
class t {
|
|
2
|
+
value;
|
|
3
|
+
currency;
|
|
4
|
+
formatter;
|
|
5
|
+
constructor(r) {
|
|
6
|
+
this.value = r.value, this.currency = r.currency, this.formatter = r.formatter;
|
|
7
|
+
}
|
|
8
|
+
add(r) {
|
|
9
|
+
if (this.currency !== r.currency)
|
|
10
|
+
throw new Error("Currencies must match");
|
|
11
|
+
return new t({
|
|
12
|
+
value: Number(this.value) + Number(r.value),
|
|
13
|
+
currency: this.currency,
|
|
14
|
+
formatter: this.formatter
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
toString() {
|
|
18
|
+
return this.formatter(this.value, this.currency) ?? "";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
34
21
|
export {
|
|
35
|
-
|
|
22
|
+
t as Price
|
|
36
23
|
};
|
|
@@ -1,56 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
1
|
+
import { useCreateInvoiceProductsTable as W } from "./index375.js";
|
|
2
|
+
import { sanitizeLineItems as J } from "./index378.js";
|
|
3
|
+
import { useCurrencies as O } from "./index58.js";
|
|
4
|
+
import { useRef as j, useState as I, useCallback as u, useEffect as C, useMemo as B } from "react";
|
|
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 G } from "./index68.js";
|
|
12
|
+
import { generateUniqueId as H } from "./index379.js";
|
|
13
|
+
import { useFormContext as K, useFieldArray as Q } from "react-hook-form";
|
|
14
|
+
const me = ({
|
|
15
|
+
defaultCurrency: p,
|
|
16
|
+
isInclusivePricing: P
|
|
17
|
+
}) => {
|
|
18
|
+
const {
|
|
19
|
+
control: b,
|
|
20
|
+
formState: {
|
|
21
|
+
errors: o
|
|
22
|
+
},
|
|
23
|
+
setValue: l,
|
|
24
|
+
getValues: r,
|
|
25
|
+
watch: f,
|
|
26
|
+
clearErrors: m,
|
|
27
|
+
trigger: h,
|
|
28
|
+
reset: g
|
|
29
|
+
} = K(), {
|
|
30
|
+
fields: n,
|
|
31
|
+
append: y,
|
|
32
|
+
remove: v
|
|
33
|
+
} = Q({
|
|
34
|
+
control: b,
|
|
35
|
+
name: "line_items",
|
|
36
|
+
shouldUnregister: !1
|
|
37
|
+
}), c = G(), s = j(!1), [x, V] = I(!1), [F, T] = I(null), D = f("line_items"), L = f("tax_rate"), R = J(D), {
|
|
38
|
+
formatCurrencyToDisplay: S
|
|
39
|
+
} = O(), {
|
|
40
|
+
subtotalPrice: q,
|
|
41
|
+
totalPrice: A,
|
|
42
|
+
totalTaxes: E
|
|
43
|
+
} = W({
|
|
44
|
+
lineItems: R,
|
|
45
|
+
actualCurrency: p,
|
|
46
|
+
isInclusivePricing: P,
|
|
47
|
+
formatCurrencyToDisplay: S,
|
|
48
|
+
taxRate: Number(L) || void 0
|
|
49
|
+
}), i = u((e) => {
|
|
50
|
+
const t = {
|
|
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 ?? H(),
|
|
61
|
+
product_id: e?.product_id || "",
|
|
62
|
+
product: t,
|
|
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]), M = u(() => {
|
|
71
|
+
if (s.current) return;
|
|
72
|
+
s.current = !0, y(i(), {
|
|
73
|
+
shouldFocus: !1
|
|
74
|
+
});
|
|
75
|
+
const e = r("line_items");
|
|
76
|
+
if (e && e.length > 0) {
|
|
77
|
+
const t = e.length - 1;
|
|
78
|
+
m(`line_items.${t}`), T(t);
|
|
79
|
+
}
|
|
80
|
+
}, [y, i, r, m]);
|
|
81
|
+
C(() => {
|
|
82
|
+
s.current && Promise.resolve().then(() => {
|
|
83
|
+
c.current && (s.current = !1);
|
|
84
|
+
});
|
|
85
|
+
}, [n.length, c]), C(() => {
|
|
86
|
+
!c.current || x || !r("line_items")?.length && !s.current && (g({
|
|
87
|
+
...r(),
|
|
88
|
+
line_items: [i()]
|
|
89
|
+
}), V(!0));
|
|
90
|
+
}, [c, x, r, g, i]);
|
|
91
|
+
const U = u((e) => v(e), [v, r]), $ = u(() => {
|
|
92
|
+
const e = r("line_items");
|
|
93
|
+
if (!e?.length) return;
|
|
94
|
+
const t = e.filter((a) => !!a?.product?.name?.trim()), d = e.find((a) => !a?.product?.name?.trim()), _ = t.length > 0 ? t : e.length > 0 ? [i(d || void 0)] : [];
|
|
95
|
+
(_.length !== e.length || !_.every((a, z) => a.id === e[z]?.id)) && (m("line_items"), l("line_items", _, {
|
|
96
|
+
shouldValidate: !1,
|
|
97
|
+
shouldDirty: !0
|
|
98
|
+
}));
|
|
99
|
+
}, [r, l, m, i]), N = u((e, t, d) => {
|
|
100
|
+
l(e, t, {
|
|
101
|
+
shouldDirty: !0,
|
|
102
|
+
...d
|
|
103
|
+
}), d?.shouldValidate && h(e);
|
|
104
|
+
}, [l, h]), k = JSON.stringify(o.line_items), w = B(() => Array.isArray(o.line_items) ? n.map((e, t) => o.line_items?.[t] ?? {}) : n.map(() => ({})), [o.line_items, k, n]);
|
|
105
|
+
return {
|
|
106
|
+
fields: n,
|
|
107
|
+
subtotalPrice: q,
|
|
108
|
+
totalPrice: A,
|
|
109
|
+
totalTaxes: E,
|
|
110
|
+
lineItemErrors: w,
|
|
111
|
+
autoFocusIndex: F,
|
|
112
|
+
handleAddRow: M,
|
|
113
|
+
handleRemoveItem: U,
|
|
114
|
+
setValueWithValidationLocal: N,
|
|
115
|
+
cleanUpLineItemsForSubmission: $
|
|
116
|
+
};
|
|
53
117
|
};
|
|
54
118
|
export {
|
|
55
|
-
|
|
119
|
+
me as useLineItemManagement
|
|
56
120
|
};
|
|
@@ -1,38 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
allowedCountries: a,
|
|
12
|
-
showClearButton: h = !0,
|
|
13
|
-
className: p,
|
|
14
|
-
container: x
|
|
15
|
-
}) => {
|
|
16
|
-
const {
|
|
17
|
-
i18n: t
|
|
18
|
-
} = A(), r = d(() => {
|
|
19
|
-
const e = g(t);
|
|
20
|
-
return a ? e.filter((n) => a.includes(n.code)) : e;
|
|
21
|
-
}, [a, t]), s = d(() => new Map(r.map((e) => [e.code, e])), [r]), m = b || r.length === 1, f = (e) => s.get(e)?.label ?? e;
|
|
22
|
-
return /* @__PURE__ */ l(v, { value: c ?? null, onValueChange: (e) => u?.(e ?? void 0), items: r.map((e) => e.code), itemToStringLabel: f, filter: (e, n, w) => {
|
|
23
|
-
const i = n.toLowerCase().trim();
|
|
24
|
-
return i ? e.toLowerCase().includes(i) || (w?.(e) ?? "").toLowerCase().includes(i) : !0;
|
|
25
|
-
}, disabled: m, children: [
|
|
26
|
-
/* @__PURE__ */ o(L, { showClear: h, disabled: m, className: p, placeholder: t._("Country"), "aria-invalid": C || void 0 }),
|
|
27
|
-
/* @__PURE__ */ o(y, { container: x, children: /* @__PURE__ */ l(N, { children: [
|
|
28
|
-
/* @__PURE__ */ o(M, { children: t._("No countries found") }),
|
|
29
|
-
/* @__PURE__ */ o(_, { children: (e) => /* @__PURE__ */ l(j, { value: e, children: [
|
|
30
|
-
/* @__PURE__ */ o("span", { children: s.get(e)?.label ?? e }),
|
|
31
|
-
/* @__PURE__ */ o("span", { className: "ttw:ml-auto ttw:text-xs ttw:text-muted-foreground", children: e })
|
|
32
|
-
] }, e) })
|
|
33
|
-
] }) })
|
|
34
|
-
] });
|
|
1
|
+
import { rateMinorToMajor as p, rateMajorToMinor as f } from "./index94.js";
|
|
2
|
+
import { generateUniqueId as l } from "./index379.js";
|
|
3
|
+
const c = (t, e) => {
|
|
4
|
+
let r = t;
|
|
5
|
+
for (const n of e) {
|
|
6
|
+
if (typeof r != "object" || r === null || !(n in r))
|
|
7
|
+
return;
|
|
8
|
+
r = r[n];
|
|
9
|
+
}
|
|
10
|
+
return typeof r == "object" && r !== null && "message" in r && typeof r.message == "string" ? String(r.message) : void 0;
|
|
35
11
|
};
|
|
12
|
+
function m(t, e) {
|
|
13
|
+
if (!t)
|
|
14
|
+
return;
|
|
15
|
+
const r = typeof t == "object";
|
|
16
|
+
if (r && "message" in t && typeof t.message == "string")
|
|
17
|
+
return t.message;
|
|
18
|
+
const n = e.split("."), s = !Array.isArray(t);
|
|
19
|
+
if (s && r)
|
|
20
|
+
return c(t, n);
|
|
21
|
+
if (s) return;
|
|
22
|
+
const a = t.find((o) => {
|
|
23
|
+
if (!o || typeof o != "object" || o === null) return !1;
|
|
24
|
+
let i = o;
|
|
25
|
+
for (const u of n) {
|
|
26
|
+
if (typeof i != "object" || i === null || !(u in i))
|
|
27
|
+
return !1;
|
|
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"
|
|
67
|
+
},
|
|
68
|
+
measure_unit_id: e.product?.measure_unit_id || ""
|
|
69
|
+
},
|
|
70
|
+
...e.measure_unit?.name ? {
|
|
71
|
+
measure_unit: {
|
|
72
|
+
name: e.measure_unit.name,
|
|
73
|
+
id: null
|
|
74
|
+
}
|
|
75
|
+
} : {}
|
|
76
|
+
}));
|
|
36
77
|
export {
|
|
37
|
-
|
|
78
|
+
j as formatMinorToMajorCurrency,
|
|
79
|
+
m as getErrorMessage,
|
|
80
|
+
d as getLineItemErrorMessage,
|
|
81
|
+
b as parseMajorToMinorCurrency,
|
|
82
|
+
_ as sanitizeLineItems,
|
|
83
|
+
M as sanitizeTaxRateInput
|
|
38
84
|
};
|
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { useLingui as a } from "@lingui/react";
|
|
3
|
-
import { toast as n } from "react-hot-toast";
|
|
4
|
-
const d = () => {
|
|
5
|
-
const {
|
|
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);
|
|
20
|
-
},
|
|
21
|
-
onError: () => {
|
|
22
|
-
n.error(e._("There was an error setting up the address"));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
};
|
|
1
|
+
const t = () => typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `${Date.now().toString(36)}-${Math.random().toString(36).substring(2, 9)}`;
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
t as generateUniqueId
|
|
28
4
|
};
|