@tesouro/embedded-components-react 0.2.106 → 0.2.107
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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index3.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/useApprovalPolicies.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +21 -21
- 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/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/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/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +1271 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +12 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +8 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +25 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +46 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +75 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +57 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +196 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +39 -9
- 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 +26 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +80 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +80 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +41 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +7 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +116 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +68 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +189 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +105 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +137 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +20 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +19 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +21 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +26 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +183 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +19 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +48 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +4 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +88 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +6 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +43 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +48 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +202 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +427 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +73 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +31 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +32 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +12 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +25 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +116 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +11 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +47 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +48 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +11 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +39 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +15 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +11 -21
- 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 +150 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +55 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +71 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +96 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +57 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +13 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +16 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +20 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +2 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +10 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +18 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +27 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +117 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +62 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +94 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +101 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +12 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +7 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +32 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +59 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +397 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +69 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +406 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +101 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +36 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +33 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +66 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +346 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +18 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +13 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +14 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +13 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +21 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +34 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +245 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +38 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +56 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +50 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +98 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +42 -243
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +146 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +108 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +143 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +86 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +24 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +41 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +5 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +73 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +17 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +50 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +27 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +52 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +17 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +489 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +167 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +30 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +58 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +31 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +113 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +22 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +41 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +54 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +14 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +77 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +77 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +40 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +72 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +62 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +126 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +44 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +149 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +10 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +19 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +62 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +41 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +137 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +112 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +80 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +282 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +46 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +15 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +83 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +218 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +35 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +10 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +6 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +2 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +39 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +341 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +298 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +99 -263
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +160 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +264 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +22 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +19 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +96 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +95 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +187 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +22 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +19 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +164 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +132 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +158 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +9 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +18 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +62 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +63 -280
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +54 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +8 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +8 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +55 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +21 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +63 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +93 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +84 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +17 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +50 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +10 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +49 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +157 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +27 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +63 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +37 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +23 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +31 -41
- 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 +18 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +29 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +42 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +63 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +91 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +108 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +85 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +46 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +36 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +25 -15
- 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 +6 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +35 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +26 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +39 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +72 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +94 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +27 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +255 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +9 -24
- 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 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +7 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +49 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +122 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +18 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +39 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +10 -32
- 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 +64 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +35 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +33 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +32 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +85 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +24 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +11 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +102 -23
- 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 +110 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +22 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +50 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +31 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +125 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +94 -17
- 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 +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +37 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +21 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -24
- 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 +19 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +12 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +5 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +65 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +47 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +28 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +55 -37
- 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 +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +23 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +53 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +33 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +69 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +80 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +54 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +49 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +30 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +46 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +68 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +21 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +50 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +81 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +36 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +19 -39
- 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 +94 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +22 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +34 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +1 -1
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +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/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/settings-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +24 -24
- package/package.json +1 -1
|
@@ -1,27 +1,164 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as t, jsxs as $ } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { FinanceDetails as z } from "./index331.js";
|
|
3
|
+
import { ScopedCssBaselineContainerClassName as G } from "./index104.js";
|
|
4
|
+
import { FinancedInvoiceStatusChip as k } from "./index54.js";
|
|
5
|
+
import { useMoniteContext as A } from "./index57.js";
|
|
6
|
+
import "react-hot-toast";
|
|
7
|
+
import { useLingui as E } from "@lingui/react";
|
|
8
|
+
import { useKanmonContext as L } from "./index56.js";
|
|
9
|
+
import { useCurrencies as B } from "./index58.js";
|
|
10
|
+
import { useState as r, useMemo as W } from "react";
|
|
11
|
+
import "./index92.js";
|
|
12
|
+
import { defaultCounterpartColumnWidth as j, useAutosizeGridColumns as U } from "./index62.js";
|
|
13
|
+
import "@tanstack/react-query";
|
|
14
|
+
import "date-fns";
|
|
15
|
+
import { useGetReceivableById as q } from "./index82.js";
|
|
16
|
+
import "react-script-hook";
|
|
17
|
+
import { useGetFinancedInvoices as H } from "./index333.js";
|
|
18
|
+
import { MoniteScopedProviders as K } from "./index83.js";
|
|
19
|
+
import { ReceivableCursorFields as V } from "./index138.js";
|
|
20
|
+
import { GetNoRowsOverlay as Y } from "./index139.js";
|
|
21
|
+
import { Dialog as Z } from "./index50.js";
|
|
22
|
+
import { TablePagination as J } from "./index86.js";
|
|
23
|
+
import { classNames as Q } from "./index147.js";
|
|
24
|
+
import { Typography as c, Button as X, Box as ee } from "@mui/material";
|
|
25
|
+
import { DataGrid as ae } from "@mui/x-data-grid";
|
|
26
|
+
const Re = (s) => /* @__PURE__ */ t(K, { children: /* @__PURE__ */ t(te, { ...s }) }), te = ({
|
|
27
|
+
onRowClick: s,
|
|
28
|
+
query: u,
|
|
29
|
+
offers: x
|
|
15
30
|
}) => {
|
|
16
31
|
const {
|
|
17
|
-
i18n:
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
32
|
+
i18n: a
|
|
33
|
+
} = E(), {
|
|
34
|
+
locale: b,
|
|
35
|
+
componentSettings: f
|
|
36
|
+
} = A(), {
|
|
37
|
+
startFinanceSession: h
|
|
38
|
+
} = L(), [F, g] = r(!1), [n, _] = r(null), {
|
|
39
|
+
data: v
|
|
40
|
+
} = q(n?.invoice_id ?? "", !!n?.invoice_id), [y, w] = r(void 0), [C, I] = r(f.receivables.pageSizeOptions?.[0] ?? 10), [R, M] = r({
|
|
41
|
+
field: u?.sort ?? "created_at",
|
|
42
|
+
sort: u?.order ?? "desc"
|
|
43
|
+
}), {
|
|
44
|
+
formatCurrencyToDisplay: l
|
|
45
|
+
} = B(), {
|
|
46
|
+
data: d,
|
|
47
|
+
isLoading: N,
|
|
48
|
+
isError: O,
|
|
49
|
+
refetch: T
|
|
50
|
+
} = H({
|
|
51
|
+
order: R?.sort,
|
|
52
|
+
limit: C,
|
|
53
|
+
pagination_token: y
|
|
54
|
+
}), m = d?.data, D = (e) => {
|
|
55
|
+
M(e[0]), w(void 0);
|
|
56
|
+
}, p = b.dateFormat, S = W(() => [{
|
|
57
|
+
field: "document_id",
|
|
58
|
+
headerName: a._("Number"),
|
|
59
|
+
sortable: !1,
|
|
60
|
+
width: 140,
|
|
61
|
+
renderCell: ({
|
|
62
|
+
value: e
|
|
63
|
+
}) => e ? /* @__PURE__ */ t("span", { className: "Monite-TextOverflowContainer", children: e }) : /* @__PURE__ */ t("span", { className: "Monite-TextOverflowContainer", children: /* @__PURE__ */ t(c, { color: "text.secondary", component: "span", fontSize: "inherit", children: a._("INV-auto") }) })
|
|
64
|
+
}, {
|
|
65
|
+
field: "payer_type",
|
|
66
|
+
headerName: a._("Customer"),
|
|
67
|
+
display: "flex",
|
|
68
|
+
width: j,
|
|
69
|
+
renderCell: (e) => /* @__PURE__ */ t(c, { children: e.row.payer_type == "BUSINESS" ? e.row.payer_business_name : `${e.row.payer_first_name} ${e.row.payer_last_name}` })
|
|
70
|
+
}, {
|
|
71
|
+
field: "status",
|
|
72
|
+
headerName: a._("Status"),
|
|
73
|
+
sortable: V.includes("status"),
|
|
74
|
+
width: 160,
|
|
75
|
+
renderCell: ({
|
|
76
|
+
value: e
|
|
77
|
+
}) => /* @__PURE__ */ t(k, { icon: !0, status: e })
|
|
78
|
+
}, {
|
|
79
|
+
field: "total_amount",
|
|
80
|
+
headerName: a._("Amount due"),
|
|
81
|
+
headerAlign: "right",
|
|
82
|
+
align: "right",
|
|
83
|
+
width: 120,
|
|
84
|
+
valueGetter: (e, i) => {
|
|
85
|
+
const o = i.repayment_schedule?.repayment_amount;
|
|
86
|
+
return o ? l(o, i.currency) : "-";
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
89
|
+
field: "repayment_schedule",
|
|
90
|
+
headerName: a._("Loan sum"),
|
|
91
|
+
headerAlign: "right",
|
|
92
|
+
align: "right",
|
|
93
|
+
width: 120,
|
|
94
|
+
valueGetter: (e, i) => {
|
|
95
|
+
const o = i.repayment_schedule?.repayment_principal_amount;
|
|
96
|
+
return o ? l(o, i.currency) : "-";
|
|
97
|
+
}
|
|
98
|
+
}, {
|
|
99
|
+
field: "issue_date",
|
|
100
|
+
headerName: a._("Financing date"),
|
|
101
|
+
sortable: !1,
|
|
102
|
+
width: 140,
|
|
103
|
+
valueFormatter: (e) => e ? a.date(e, p) : "—"
|
|
104
|
+
}, {
|
|
105
|
+
field: "repayment_date",
|
|
106
|
+
headerName: a._("Repayment date"),
|
|
107
|
+
sortable: !1,
|
|
108
|
+
width: 120,
|
|
109
|
+
valueGetter: (e, i) => {
|
|
110
|
+
const o = i.repayment_schedule?.repayment_date;
|
|
111
|
+
return o ? a.date(o, p) : "-";
|
|
112
|
+
}
|
|
113
|
+
}, {
|
|
114
|
+
field: "",
|
|
115
|
+
headerName: a._("Payment"),
|
|
116
|
+
sortable: !1,
|
|
117
|
+
width: 120,
|
|
118
|
+
renderCell: (e) => e.row.status === "FUNDED" || e.row.status === "LATE" ? /* @__PURE__ */ t(X, { variant: "contained", color: "primary", onClick: (i) => {
|
|
119
|
+
i.stopPropagation(), h({
|
|
120
|
+
component: "PAY_NOW"
|
|
121
|
+
});
|
|
122
|
+
}, sx: {
|
|
123
|
+
py: 1.25,
|
|
124
|
+
px: 1.5,
|
|
125
|
+
height: 32,
|
|
126
|
+
fontSize: 14
|
|
127
|
+
}, children: a._("Repay now") }) : null
|
|
128
|
+
}], [l, a, p, h]), P = U(
|
|
129
|
+
m,
|
|
130
|
+
S,
|
|
131
|
+
!1,
|
|
132
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
133
|
+
"FinancedInvoicesTable"
|
|
134
|
+
);
|
|
135
|
+
return /* @__PURE__ */ $(ee, { className: Q(G, "Monite-FinancedInvoicesTable"), sx: {
|
|
136
|
+
display: "flex",
|
|
137
|
+
flexDirection: "column",
|
|
138
|
+
overflow: "hidden",
|
|
139
|
+
height: "inherit",
|
|
140
|
+
minHeight: "500px"
|
|
141
|
+
}, children: [
|
|
142
|
+
/* @__PURE__ */ t(c, { mb: 2, variant: "subtitle1", children: a._("Financed invoices") }),
|
|
143
|
+
/* @__PURE__ */ t(ae, { apiRef: P, rowSelection: !1, disableColumnFilter: !0, loading: N, onSortModelChange: D, onRowClick: (e) => {
|
|
144
|
+
g(!0), _?.(e.row);
|
|
145
|
+
}, slots: {
|
|
146
|
+
pagination: () => /* @__PURE__ */ t(J, { pageSizeOptions: f.receivables.pageSizeOptions, nextPage: d?.next_pagination_token, prevPage: d?.prev_pagination_token, paginationModel: {
|
|
147
|
+
pageSize: C,
|
|
148
|
+
page: y
|
|
149
|
+
}, onPaginationModelChange: ({
|
|
150
|
+
page: e,
|
|
151
|
+
pageSize: i
|
|
152
|
+
}) => {
|
|
153
|
+
I(i), w(e ?? void 0);
|
|
154
|
+
} }),
|
|
155
|
+
noRowsOverlay: () => /* @__PURE__ */ t(Y, { isLoading: N, dataLength: m?.length || 0, isFiltering: !1, isSearching: !1, isError: O, refetch: T, entityName: a._("Financed Invoices"), actionOptions: [a._("Invoice")], type: "no-data" })
|
|
156
|
+
}, columns: S, getRowId: (e) => e.document_id, rows: m ?? [] }),
|
|
157
|
+
v && n && /* @__PURE__ */ t(Z, { open: F, onClose: () => {
|
|
158
|
+
g(!1), _(null);
|
|
159
|
+
}, alignDialog: "right", children: /* @__PURE__ */ t(z, { invoice: v, offers: x ?? [], financedInvoice: n, enableNavigate: !0, handleNavigate: s }) })
|
|
23
160
|
] });
|
|
24
161
|
};
|
|
25
162
|
export {
|
|
26
|
-
|
|
163
|
+
Re as FinancedInvoicesTable
|
|
27
164
|
};
|
|
@@ -1,143 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useMoniteContext as R } from "./index57.js";
|
|
4
|
-
import { useCurrencies as X } from "./index58.js";
|
|
5
|
-
import "./index92.js";
|
|
6
|
-
import { useLingui as Y } from "@lingui/react";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import "@mui/x-data-grid";
|
|
9
|
-
import { useUserPermissions as Z } from "./index135.js";
|
|
10
|
-
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
11
|
-
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
12
|
-
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
13
|
-
import "@tanstack/react-query";
|
|
14
|
-
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
15
|
-
import { Scope as $ } from "../../shared/data-access/dist/lib/scopes.js";
|
|
16
|
-
import { Combobox as ee, ComboboxInput as te, ComboboxContent as ne, ComboboxList as ie, ComboboxEmpty as ae, ComboboxItem as oe } from "./index90.js";
|
|
17
|
-
import { InputGroupAddon as re } from "./index101.js";
|
|
18
|
-
import { Loader2 as M } from "lucide-react";
|
|
19
|
-
const se = "custom", Pe = ({
|
|
20
|
-
fieldName: a,
|
|
21
|
-
error: V,
|
|
22
|
-
disabled: j,
|
|
23
|
-
index: B = 0,
|
|
24
|
-
defaultCurrency: D,
|
|
25
|
-
measureUnits: C,
|
|
26
|
-
container: E,
|
|
27
|
-
onChange: l
|
|
28
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as s } from "./index57.js";
|
|
2
|
+
const i = (e, n = !0) => {
|
|
29
3
|
const {
|
|
30
|
-
|
|
31
|
-
} =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
formatCurrencyToDisplay: A
|
|
35
|
-
} = X(), d = Z().has($.ProductWriteOrg), {
|
|
36
|
-
data: N,
|
|
37
|
-
isLoading: F,
|
|
38
|
-
fetchNextPage: S,
|
|
39
|
-
hasNextPage: T,
|
|
40
|
-
isFetchingNextPage: v
|
|
41
|
-
} = z.finops.getProducts.useInfiniteQuery({
|
|
42
|
-
query: {
|
|
43
|
-
limit: 20,
|
|
44
|
-
currency: k
|
|
45
|
-
}
|
|
4
|
+
api: t
|
|
5
|
+
} = s();
|
|
6
|
+
return t.finops.getFinancingInvoices.useQuery({
|
|
7
|
+
query: e
|
|
46
8
|
}, {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
pagination_token: void 0
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
getNextPageParam: (e) => {
|
|
53
|
-
if (e.next_pagination_token)
|
|
54
|
-
return {
|
|
55
|
-
query: {
|
|
56
|
-
pagination_token: e.next_pagination_token
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
enabled: !!k
|
|
61
|
-
}), H = p((e) => {
|
|
62
|
-
const {
|
|
63
|
-
scrollTop: t,
|
|
64
|
-
scrollHeight: r,
|
|
65
|
-
clientHeight: L
|
|
66
|
-
} = e.currentTarget;
|
|
67
|
-
r - t - L < 100 && T && !v && S();
|
|
68
|
-
}, [S, T, v]), o = w(() => N ? N.pages.flatMap((e) => e.data).sort((e, t) => (e.name ?? "").localeCompare(t.name ?? "")) : [], [N]), c = w(() => !o || o.length === 0 ? [] : o.map((e) => {
|
|
69
|
-
const t = C ? C.data.find((r) => r.id === e.measure_unit_id) : void 0;
|
|
70
|
-
return {
|
|
71
|
-
id: e.id,
|
|
72
|
-
label: e.name,
|
|
73
|
-
description: e.description,
|
|
74
|
-
price: e.price,
|
|
75
|
-
smallestAmount: e.smallest_amount,
|
|
76
|
-
measureUnit: t
|
|
77
|
-
};
|
|
78
|
-
}), [o, C]);
|
|
79
|
-
J(() => {
|
|
80
|
-
!b && a && a.length > 0 && !g.length && (o?.find((e) => e?.name === a) || m(a));
|
|
81
|
-
}, [a, b, o, g]);
|
|
82
|
-
let n = o?.find((e) => e?.id === q);
|
|
83
|
-
if (!b && a && a.length > 0 && !g.length && !n) {
|
|
84
|
-
const e = o?.find((t) => t?.name === a);
|
|
85
|
-
e && (n = e);
|
|
86
|
-
}
|
|
87
|
-
const O = n ? n.id : null, h = n ? n.name : g, s = w(() => {
|
|
88
|
-
const e = h.toLowerCase().trim();
|
|
89
|
-
return !e || n && n.name.toLowerCase() === e ? c : c.filter((t) => t.label.toLowerCase().includes(e));
|
|
90
|
-
}, [h, c, n]), W = w(() => s.map((e) => e.id), [s]), G = p(() => {
|
|
91
|
-
I(!0), u(!0);
|
|
92
|
-
}, []), K = p(() => {
|
|
93
|
-
I(!1);
|
|
94
|
-
}, []), U = p((e) => {
|
|
95
|
-
if (!e) {
|
|
96
|
-
y(null), m(""), l({
|
|
97
|
-
id: "",
|
|
98
|
-
label: ""
|
|
99
|
-
}, !1);
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
const t = c.find((r) => r.id === e);
|
|
103
|
-
t && (y(t.id), m(""), l(t, !0));
|
|
104
|
-
}, [c, l]), Q = p((e, t) => {
|
|
105
|
-
if (t.reason !== "input-change") {
|
|
106
|
-
d || m("");
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
m(e), y(null), d && l(e.trim() ? {
|
|
110
|
-
id: se,
|
|
111
|
-
label: e
|
|
112
|
-
} : {
|
|
113
|
-
id: "",
|
|
114
|
-
label: ""
|
|
115
|
-
}, !1);
|
|
116
|
-
}, [d, l]);
|
|
117
|
-
return /* @__PURE__ */ P(ee, { value: O, onValueChange: U, inputValue: h, onInputValueChange: Q, items: W, filter: () => !0, disabled: j, open: _, onOpenChange: u, children: [
|
|
118
|
-
/* @__PURE__ */ i(te, { id: `item-selector-${B}`, placeholder: d ? f._("e.g., The machine that goes ping") : f._("Search for an item"), "aria-invalid": V || void 0, maxLength: 100, onFocus: G, onBlur: K, onClick: () => {
|
|
119
|
-
_ || u(!0);
|
|
120
|
-
}, onKeyDown: (e) => {
|
|
121
|
-
if (e.key === "Enter")
|
|
122
|
-
e.preventDefault(), u(!1);
|
|
123
|
-
else if (e.key === "Tab" && _) {
|
|
124
|
-
const t = h.toLowerCase().trim();
|
|
125
|
-
if (!t) return;
|
|
126
|
-
const r = s.find((L) => L.label.toLowerCase() === t) ?? (s.length === 1 ? s[0] : void 0);
|
|
127
|
-
r && (U(r.id), u(!1));
|
|
128
|
-
}
|
|
129
|
-
}, className: "ttw:w-full", children: F && /* @__PURE__ */ i(re, { align: "inline-start", children: /* @__PURE__ */ i(M, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) }) }),
|
|
130
|
-
/* @__PURE__ */ i(ne, { container: E, className: "ttw:min-w-138", children: /* @__PURE__ */ P(ie, { onScroll: H, children: [
|
|
131
|
-
/* @__PURE__ */ i(ae, { children: d ? f._("No saved items found - type to add an item") : f._("No saved items found") }),
|
|
132
|
-
s.map((e) => /* @__PURE__ */ P(oe, { value: e.id, children: [
|
|
133
|
-
/* @__PURE__ */ i("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
134
|
-
/* @__PURE__ */ i("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [e.price && A(e.price.value, e.price.currency), e.measureUnit?.name].filter(Boolean).join(" ") })
|
|
135
|
-
] }, e.id)),
|
|
136
|
-
v && /* @__PURE__ */ i("div", { className: "ttw:flex ttw:justify-center ttw:py-1", children: /* @__PURE__ */ i(M, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) })
|
|
137
|
-
] }) })
|
|
138
|
-
] });
|
|
9
|
+
enabled: n
|
|
10
|
+
});
|
|
139
11
|
};
|
|
140
12
|
export {
|
|
141
|
-
|
|
142
|
-
Pe as ItemSelector
|
|
13
|
+
i as useGetFinancedInvoices
|
|
143
14
|
};
|
|
@@ -1,114 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
const {
|
|
19
|
-
control: P,
|
|
20
|
-
formState: {
|
|
21
|
-
errors: o
|
|
22
|
-
},
|
|
23
|
-
setValue: l,
|
|
24
|
-
getValues: t,
|
|
25
|
-
watch: f,
|
|
26
|
-
clearErrors: m,
|
|
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
|
-
};
|
|
1
|
+
const n = (e, t) => {
|
|
2
|
+
switch (t) {
|
|
3
|
+
case "NEW":
|
|
4
|
+
return e._("In review");
|
|
5
|
+
case "DEFAULTED":
|
|
6
|
+
return e._("Uncollectible");
|
|
7
|
+
case "PAID":
|
|
8
|
+
return e._("Paid in full");
|
|
9
|
+
case "FUNDED":
|
|
10
|
+
return e._("Funded");
|
|
11
|
+
case "LATE":
|
|
12
|
+
return e._("Late payment");
|
|
13
|
+
case "REJECTED":
|
|
14
|
+
return e._("Rejected");
|
|
15
|
+
default:
|
|
16
|
+
throw new Error(`Unknown status ${JSON.stringify(t)}`);
|
|
17
|
+
}
|
|
111
18
|
};
|
|
112
19
|
export {
|
|
113
|
-
|
|
20
|
+
n as getCommonStatusLabel
|
|
114
21
|
};
|
|
@@ -1,84 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as a, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as t } from "@lingui/react";
|
|
3
|
+
import { Box as r, Typography as o, Link as s } from "@mui/material";
|
|
4
|
+
const l = [{
|
|
5
|
+
id: 1,
|
|
6
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
7
|
+
question: "Does enrolling in the program affect my credit score?",
|
|
8
|
+
answer: (
|
|
9
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
10
|
+
"Nope! During the onboarding process we will only conduct a soft pull on your credit report, which will not affect your personal credit score."
|
|
11
|
+
)
|
|
12
|
+
}, {
|
|
13
|
+
id: 2,
|
|
14
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
15
|
+
question: "Why do I need to provide my bank connection details?",
|
|
16
|
+
answer: (
|
|
17
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
18
|
+
"Securely connecting your business bank account allows us to review your cashflow and determine your best loan offers."
|
|
19
|
+
)
|
|
20
|
+
}, {
|
|
21
|
+
id: 3,
|
|
22
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
23
|
+
question: "When should I expect to receive a loan offer?",
|
|
24
|
+
answer: (
|
|
25
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
26
|
+
"Once you are enrolled into the program, we will be actively analyzing your financials and creating pre-approved offers that work best for your business needs. We do this to help you avoid debt trap. Loan offers are usually provided within less than 48 hours."
|
|
27
|
+
)
|
|
28
|
+
}, {
|
|
29
|
+
id: 4,
|
|
30
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
31
|
+
question: "How do I repay the loan?",
|
|
32
|
+
answer: (
|
|
33
|
+
// eslint-disable-next-line lingui/no-unlocalized-strings
|
|
34
|
+
"At the moment we support monthly loan repayment once you agree to the loan payment schedule. A fixed amount will be automatically deducted from the bank you linked during the onboarding.In the near future, you can also choose to pay back the loan as a fixed percentage of your daily sales until the loan is fully repaid."
|
|
35
|
+
)
|
|
36
|
+
}], h = () => {
|
|
37
|
+
const {
|
|
38
|
+
i18n: e
|
|
39
|
+
} = t();
|
|
40
|
+
return /* @__PURE__ */ a(r, { p: 4, children: [
|
|
41
|
+
/* @__PURE__ */ a(r, { children: [
|
|
42
|
+
/* @__PURE__ */ n(o, { variant: "h3", children: e._("Simplified, fast funding for your growing business") }),
|
|
43
|
+
/* @__PURE__ */ n(o, { variant: "subtitle2", mt: 2, children: e._("Get your business moving and accelerate growth with quick and easy access to funding. Multiple options available.") })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ a(r, { mt: 5, children: [
|
|
46
|
+
/* @__PURE__ */ n(o, { mb: 1, variant: "h3", children: e._("FAQ") }),
|
|
47
|
+
l.map((i) => /* @__PURE__ */ a(r, { mt: 3, children: [
|
|
48
|
+
/* @__PURE__ */ n(o, { variant: "subtitle2", children: e._("{faqQuestion}", {
|
|
49
|
+
faqQuestion: i.question
|
|
50
|
+
}) }),
|
|
51
|
+
/* @__PURE__ */ n(o, { variant: "body1", mt: 1, children: e._("{faqAnswer}", {
|
|
52
|
+
faqAnswer: i.answer
|
|
53
|
+
}) })
|
|
54
|
+
] }, i.id))
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ n(r, { mt: 5, children: /* @__PURE__ */ a(o, { variant: "body2", children: [
|
|
57
|
+
e._("All loans are subject to credit approval. Your terms may vary. Flourish Capital loans are issued by Kanmon. California Loans are made pursuant to a Department of Financial Protection and Innovation California Lenders Law License. Read more about Kanmon"),
|
|
58
|
+
" ",
|
|
59
|
+
/* @__PURE__ */ n(s, { target: "_blank", rel: "noopener noreferrer", href: "https://kanmon.com", children: e._("here.") })
|
|
60
|
+
] }) })
|
|
61
|
+
] });
|
|
11
62
|
};
|
|
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
|
-
}));
|
|
77
63
|
export {
|
|
78
|
-
|
|
79
|
-
m as getErrorMessage,
|
|
80
|
-
d as getLineItemErrorMessage,
|
|
81
|
-
b as parseMajorToMinorCurrency,
|
|
82
|
-
_ as sanitizeLineItems,
|
|
83
|
-
M as sanitizeTaxRateInput
|
|
64
|
+
h as FinanceFaqDetails
|
|
84
65
|
};
|