@tesouro/embedded-components-react 0.2.5 → 0.2.6
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 +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1269 -23
- 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 +32 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +97 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +8 -398
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +57 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +76 -93
- 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 +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +19 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +18 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +76 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +27 -12
- 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 +113 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +68 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +33 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +11 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +12 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +75 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +58 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +196 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +14 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +64 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +76 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +41 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +7 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +253 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +181 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +109 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +101 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +109 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +53 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +62 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +75 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +24 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +54 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +148 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +72 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +70 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +234 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +124 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +53 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +33 -28
- 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 +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +67 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +24 -251
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +18 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +12 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +10 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +19 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +49 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -56
- 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 +54 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +8 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +21 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +18 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +91 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +32 -236
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +12 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +117 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +47 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +47 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +11 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +152 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +71 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +27 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +93 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +98 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +10 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +397 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +406 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +32 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +47 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +25 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +5 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +74 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +32 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +19 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +38 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +345 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +299 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +103 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +161 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +250 -474
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +23 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +18 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +149 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +10 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +19 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +145 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +85 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +20 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +183 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +24 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +23 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +32 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +62 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +49 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +27 -302
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +124 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +44 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +72 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +157 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +29 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +78 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +15 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +171 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +129 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +157 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +12 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +15 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +62 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +66 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +60 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +8 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +61 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -27
- 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 +63 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +14 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +93 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +96 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +192 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +22 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +27 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +56 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +60 -300
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +46 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +40 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +34 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +6 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +99 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +21 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +25 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +31 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +18 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +12 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +23 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +37 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +50 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +95 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +42 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +39 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +17 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +57 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +87 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +124 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +37 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +38 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +53 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +62 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +70 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +34 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +186 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +155 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +74 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +22 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +302 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +44 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +15 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +40 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +75 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +85 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +44 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +255 -37
- 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 +45 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +49 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +203 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +158 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +111 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +71 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +112 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +42 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +479 -159
- 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 +163 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +38 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +59 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +31 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +113 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +21 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +41 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +55 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +27 -59
- 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 +40 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +96 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +109 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +94 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +37 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +33 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +11 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +4 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +25 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +24 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +47 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +28 -16
- 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 +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +51 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +66 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +19 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +23 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +74 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +93 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +35 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +15 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +85 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +33 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +64 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +13 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +14 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +11 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +61 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +21 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +56 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +115 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +9 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +28 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +38 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +53 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +22 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +30 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +31 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +139 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +19 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +80 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +66 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +67 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +74 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +46 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +27 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +121 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +17 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +72 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +16 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +16 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +50 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +92 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +14 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +74 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +68 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +20 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +40 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +34 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +15 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +51 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +57 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +32 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +68 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +55 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +132 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +74 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +86 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +53 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +52 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +52 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +38 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +46 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +51 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +42 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +17 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +83 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +38 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +74 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +4 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +60 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +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/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/package.json +1 -1
|
@@ -1,59 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useLingui as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as m, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as x } from "@lingui/react";
|
|
3
|
+
import { twMerge as f } from "tailwind-merge";
|
|
4
|
+
import { useCurrencies as p } from "./index60.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./index94.js";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "./index59.js";
|
|
9
|
+
import "@mui/x-data-grid";
|
|
10
|
+
const a = ({
|
|
11
|
+
label: l,
|
|
12
|
+
value: r,
|
|
13
|
+
className: s
|
|
14
|
+
}) => /* @__PURE__ */ m("li", { className: f("ttw:flex ttw:justify-between ttw:items-center", s), children: [
|
|
15
|
+
/* @__PURE__ */ t("span", { children: l }),
|
|
16
|
+
/* @__PURE__ */ t("span", { children: r?.toString() })
|
|
17
|
+
] }), _ = ({
|
|
18
|
+
subtotalPrice: l,
|
|
19
|
+
totalTaxes: r,
|
|
20
|
+
totalPrice: s,
|
|
21
|
+
taxesByVatRate: o = {},
|
|
22
|
+
actualCurrency: i,
|
|
23
|
+
defaultCurrency: c
|
|
14
24
|
}) => {
|
|
15
25
|
const {
|
|
16
26
|
i18n: e
|
|
17
|
-
} =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
return N(() => {
|
|
29
|
-
f({
|
|
30
|
-
body_text: c,
|
|
31
|
-
subject_text: m,
|
|
32
|
-
language: g(),
|
|
33
|
-
type: "receivable"
|
|
34
|
-
});
|
|
35
|
-
}, [a]), /* @__PURE__ */ t("div", { className: "ttw:flex ttw:flex-col ttw:min-h-0 ttw:overflow-hidden ttw:flex-1", children: p ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ t(B, {}) }) : /* @__PURE__ */ t(v, { children: u ? /* @__PURE__ */ t(s, { children: /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-4", children: [
|
|
36
|
-
/* @__PURE__ */ t(E, { className: "ttw:text-red-500" }),
|
|
37
|
-
/* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:justify-center ttw:text-center ttw:gap-1 ttw:items-center", children: [
|
|
38
|
-
/* @__PURE__ */ t("h2", { className: "ttw:font-bold ttw:text-base", children: e._("Failed to generate email preview") }),
|
|
39
|
-
/* @__PURE__ */ i("div", { className: "ttw:items-center", children: [
|
|
40
|
-
/* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5", children: e._("Please try to reload.") }),
|
|
41
|
-
/* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:leading-5", children: e._("If the error recurs, contact support, please.") })
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ i(_, { variant: "ghost", onClick: x, "data-testid": "reload-preview-button", children: [
|
|
44
|
-
/* @__PURE__ */ t(P, {}),
|
|
45
|
-
e._("Reload")
|
|
46
|
-
] })
|
|
47
|
-
] })
|
|
48
|
-
] }) }) : /* @__PURE__ */ t("iframe", { srcDoc: w?.body_preview, style: {
|
|
49
|
-
width: "100%",
|
|
50
|
-
height: "100%",
|
|
51
|
-
marginBottom: "-16px",
|
|
52
|
-
// Margin is necessary to avoid vertical scrollbar on the iframe container element. It's not clear why, but it helps.
|
|
53
|
-
border: 0,
|
|
54
|
-
flex: 1
|
|
55
|
-
} }) }) });
|
|
27
|
+
} = x(), {
|
|
28
|
+
formatCurrencyToDisplay: u
|
|
29
|
+
} = p();
|
|
30
|
+
return /* @__PURE__ */ m("ul", { className: "ttw:w-full ttw:flex ttw:flex-col ttw:gap-2 ttw:list-none ttw:mt-4", children: [
|
|
31
|
+
/* @__PURE__ */ t(a, { label: e._("Subtotal"), value: l, className: "ttw:text-sm ttw:font-normal ttw:text-neutral" }),
|
|
32
|
+
Object.entries(o)?.length > 0 ? Object.entries(o).map(([n, w]) => /* @__PURE__ */ t(a, { label: e._("Total Tax ({taxRate}%)", {
|
|
33
|
+
taxRate: n
|
|
34
|
+
}), value: u(w, i || c || "USD", !0)?.toString(), className: "ttw:text-sm ttw:font-normal ttw:text-neutral" }, n)) : /* @__PURE__ */ t(a, { label: e._("Taxes total"), value: r, className: "ttw:text-sm ttw:font-normal ttw:text-neutral" }),
|
|
35
|
+
/* @__PURE__ */ t(a, { label: e._("Total"), value: s, className: "ttw:text-base ttw:font-medium ttw:text-" })
|
|
36
|
+
] });
|
|
56
37
|
};
|
|
57
38
|
export {
|
|
58
|
-
|
|
39
|
+
_ as InvoiceTotals
|
|
59
40
|
};
|
|
@@ -1,22 +1,192 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as c, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as g, useRef as ne, useCallback as p, useMemo as x, useEffect as ie } from "react";
|
|
3
|
+
import { useMoniteContext as re } from "./index59.js";
|
|
4
|
+
import { useCurrencies as ae } from "./index60.js";
|
|
5
|
+
import "./index94.js";
|
|
6
|
+
import { useLingui as se } from "@lingui/react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "@mui/x-data-grid";
|
|
9
|
+
import { Combobox as oe, ComboboxInput as le, ComboboxContent as me, ComboboxList as ue, ComboboxItem as C, ComboboxSeparator as ce } from "./index92.js";
|
|
10
|
+
import { InputGroupAddon as de } from "./index103.js";
|
|
11
|
+
import { Loader2 as V, Plus as pe } from "lucide-react";
|
|
12
|
+
const b = "__create-new__", u = "custom", Ie = ({
|
|
13
|
+
fieldName: a,
|
|
14
|
+
error: E,
|
|
15
|
+
disabled: F,
|
|
16
|
+
index: z = 0,
|
|
17
|
+
actualCurrency: B,
|
|
18
|
+
defaultCurrency: H,
|
|
19
|
+
measureUnits: _,
|
|
20
|
+
container: K,
|
|
21
|
+
onCreateItem: $,
|
|
22
|
+
onChange: o
|
|
23
|
+
}) => {
|
|
5
24
|
const {
|
|
6
|
-
i18n:
|
|
7
|
-
} =
|
|
8
|
-
api:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
25
|
+
i18n: M
|
|
26
|
+
} = se(), k = B ?? H, [t, f] = g(""), [N, A] = g(!1), [Q, v] = g(null), [D, h] = g(!1), w = ne(!1), {
|
|
27
|
+
api: W
|
|
28
|
+
} = re(), {
|
|
29
|
+
formatCurrencyToDisplay: O
|
|
30
|
+
} = ae(), {
|
|
31
|
+
data: y,
|
|
32
|
+
isLoading: G,
|
|
33
|
+
fetchNextPage: S,
|
|
34
|
+
hasNextPage: T,
|
|
35
|
+
isFetchingNextPage: I
|
|
36
|
+
} = W.finops.getProducts.useInfiniteQuery({
|
|
37
|
+
query: {
|
|
38
|
+
limit: 20,
|
|
39
|
+
currency: k
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
initialPageParam: {
|
|
43
|
+
query: {
|
|
44
|
+
pagination_token: void 0
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
getNextPageParam: (e) => {
|
|
48
|
+
if (e.next_pagination_token)
|
|
49
|
+
return {
|
|
50
|
+
query: {
|
|
51
|
+
pagination_token: e.next_pagination_token
|
|
52
|
+
}
|
|
53
|
+
};
|
|
14
54
|
},
|
|
15
|
-
|
|
16
|
-
|
|
55
|
+
enabled: !!k
|
|
56
|
+
}), J = p((e) => {
|
|
57
|
+
const {
|
|
58
|
+
scrollTop: n,
|
|
59
|
+
scrollHeight: m,
|
|
60
|
+
clientHeight: P
|
|
61
|
+
} = e.currentTarget;
|
|
62
|
+
m - n - P < 100 && T && !I && S();
|
|
63
|
+
}, [S, T, I]), l = x(() => y ? y.pages.flatMap((e) => e.data) : [], [y]), r = x(() => !l || l.length === 0 ? [] : l.map((e) => {
|
|
64
|
+
const n = _ ? _.data.find((m) => m.id === e.measure_unit_id) : void 0;
|
|
65
|
+
return {
|
|
66
|
+
id: e.id,
|
|
67
|
+
label: e.name,
|
|
68
|
+
description: e.description,
|
|
69
|
+
price: e.price,
|
|
70
|
+
smallestAmount: e.smallest_amount,
|
|
71
|
+
measureUnit: n
|
|
72
|
+
};
|
|
73
|
+
}), [l, _, a]);
|
|
74
|
+
ie(() => {
|
|
75
|
+
!N && a && a.length > 0 && !t.length && (l?.find((e) => e?.name === a) || f(a));
|
|
76
|
+
}, [a, N, l, t]);
|
|
77
|
+
const R = p(() => {
|
|
78
|
+
A(!0), h(!0);
|
|
79
|
+
}, []), X = p(() => {
|
|
80
|
+
A(!1), t && t.trim() !== "" && !r.some((e) => e.label === t) && o({
|
|
81
|
+
id: u,
|
|
82
|
+
label: t
|
|
83
|
+
}, !1);
|
|
84
|
+
}, [t, r, o]);
|
|
85
|
+
let s = l?.find((e) => e?.id === Q);
|
|
86
|
+
if (!N && a && a.length > 0 && !t.length && !s) {
|
|
87
|
+
const e = l?.find(
|
|
88
|
+
(n) => n?.name === a
|
|
89
|
+
// potentially item?.product.name, double check
|
|
90
|
+
);
|
|
91
|
+
e && (s = e);
|
|
92
|
+
}
|
|
93
|
+
const Y = s ? s.id : t ? u : null, L = s ? s.name : t, {
|
|
94
|
+
matchingItems: U,
|
|
95
|
+
nonMatchingItems: j,
|
|
96
|
+
showCustomOption: q
|
|
97
|
+
} = x(() => {
|
|
98
|
+
const e = L.toLowerCase().trim();
|
|
99
|
+
if (!e || s && s.name.toLowerCase() === e)
|
|
100
|
+
return {
|
|
101
|
+
matchingItems: r,
|
|
102
|
+
nonMatchingItems: [],
|
|
103
|
+
showCustomOption: !1
|
|
104
|
+
};
|
|
105
|
+
const n = [], m = [];
|
|
106
|
+
for (const d of r)
|
|
107
|
+
d.label.toLowerCase().includes(e) ? n.push(d) : m.push(d);
|
|
108
|
+
const P = n.some((d) => d.label.toLowerCase() === e);
|
|
109
|
+
return {
|
|
110
|
+
matchingItems: n,
|
|
111
|
+
nonMatchingItems: m,
|
|
112
|
+
showCustomOption: !P && !!t.trim()
|
|
113
|
+
};
|
|
114
|
+
}, [L, r, s, t]), Z = x(() => [
|
|
115
|
+
b,
|
|
116
|
+
...r.map((e) => e.id),
|
|
117
|
+
// Always include CUSTOM_ID when there's a custom name so Base UI tracks
|
|
118
|
+
// it as the selected value and shows the clear button. The visible
|
|
119
|
+
// ComboboxItem is still gated by showCustomOption.
|
|
120
|
+
...t ? [u] : []
|
|
121
|
+
], [r, t]), ee = p((e) => {
|
|
122
|
+
if (!e) {
|
|
123
|
+
v(null), f(""), o({
|
|
124
|
+
id: "",
|
|
125
|
+
label: ""
|
|
126
|
+
}, !1);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (e === b) {
|
|
130
|
+
$();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (e === u) {
|
|
134
|
+
w.current = !0, o({
|
|
135
|
+
id: u,
|
|
136
|
+
label: t
|
|
137
|
+
}, !1);
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const n = r.find((m) => m.id === e);
|
|
141
|
+
n && (v(n.id), f(""), o(n, !0));
|
|
142
|
+
}, [t, r, o, $]), te = p((e) => {
|
|
143
|
+
if (e !== b && e !== u && !r.some((n) => n.id === e)) {
|
|
144
|
+
if (!e && w.current) {
|
|
145
|
+
w.current = !1;
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
f(e), v(null), e.trim() && o({
|
|
149
|
+
id: u,
|
|
150
|
+
label: e
|
|
151
|
+
}, !1);
|
|
17
152
|
}
|
|
18
|
-
});
|
|
153
|
+
}, [r, o]);
|
|
154
|
+
return /* @__PURE__ */ c(oe, { value: Y, onValueChange: ee, inputValue: L, onInputValueChange: te, items: Z, filter: () => !0, disabled: F, open: D, onOpenChange: h, children: [
|
|
155
|
+
/* @__PURE__ */ i(le, { id: `item-selector-${z}`, placeholder: M._("Line item"), "aria-invalid": E || void 0, maxLength: 100, onFocus: R, onBlur: X, onClick: () => {
|
|
156
|
+
D || h(!0);
|
|
157
|
+
}, onKeyDown: (e) => {
|
|
158
|
+
e.key === "Enter" && (e.preventDefault(), t.trim() && (w.current = !0), h(!1));
|
|
159
|
+
}, showClear: !0, className: "ttw:w-full", children: G && /* @__PURE__ */ i(de, { align: "inline-start", children: /* @__PURE__ */ i(V, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) }) }),
|
|
160
|
+
/* @__PURE__ */ i(me, { container: K, className: "ttw:min-w-138", children: /* @__PURE__ */ c(ue, { onScroll: J, children: [
|
|
161
|
+
/* @__PURE__ */ c(C, { value: b, className: "ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary", children: [
|
|
162
|
+
/* @__PURE__ */ i(pe, {}),
|
|
163
|
+
M._("Create new item")
|
|
164
|
+
] }),
|
|
165
|
+
U.map((e) => /* @__PURE__ */ c(C, { value: e.id, children: [
|
|
166
|
+
/* @__PURE__ */ i("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
167
|
+
/* @__PURE__ */ c("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [
|
|
168
|
+
e.smallestAmount,
|
|
169
|
+
" ",
|
|
170
|
+
e.measureUnit?.description,
|
|
171
|
+
e.price && ` / ${O(e.price.value, e.price.currency)}`
|
|
172
|
+
] })
|
|
173
|
+
] }, e.id)),
|
|
174
|
+
q && /* @__PURE__ */ i(C, { value: u, children: /* @__PURE__ */ i("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: t }) }),
|
|
175
|
+
(U.length > 0 || q) && j.length > 0 && /* @__PURE__ */ i(ce, {}),
|
|
176
|
+
j.map((e) => /* @__PURE__ */ c(C, { value: e.id, children: [
|
|
177
|
+
/* @__PURE__ */ i("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
178
|
+
/* @__PURE__ */ c("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [
|
|
179
|
+
e.smallestAmount,
|
|
180
|
+
" ",
|
|
181
|
+
e.measureUnit?.description,
|
|
182
|
+
e.price && ` / ${O(e.price.value, e.price.currency)}`
|
|
183
|
+
] })
|
|
184
|
+
] }, e.id)),
|
|
185
|
+
I && /* @__PURE__ */ i("div", { className: "ttw:flex ttw:justify-center ttw:py-1", children: /* @__PURE__ */ i(V, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) })
|
|
186
|
+
] }) })
|
|
187
|
+
] });
|
|
19
188
|
};
|
|
20
189
|
export {
|
|
21
|
-
|
|
190
|
+
u as CUSTOM_ID,
|
|
191
|
+
Ie as ItemSelector
|
|
22
192
|
};
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsxs as o, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormContext as c } from "react-hook-form";
|
|
3
|
+
import { DropdownMenu as d, DropdownMenuTrigger as m, DropdownMenuContent as l, DropdownMenuItem as r } from "./index152.js";
|
|
4
|
+
import { useLingui as u } from "@lingui/react";
|
|
5
|
+
import { ChevronDownIcon as x } from "lucide-react";
|
|
6
|
+
function g({
|
|
7
|
+
disabled: e
|
|
8
|
+
}) {
|
|
3
9
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
10
|
+
i18n: n
|
|
11
|
+
} = u(), {
|
|
12
|
+
setValue: i,
|
|
13
|
+
watch: a
|
|
14
|
+
} = c(), s = a("tax_mode") === "inclusive";
|
|
15
|
+
return /* @__PURE__ */ o(d, { children: [
|
|
16
|
+
/* @__PURE__ */ t(m, { asChild: !0, disabled: e, children: /* @__PURE__ */ o("button", { type: "button", className: "ttw:text-primary ttw:font-medium ttw:text-sm ttw:flex ttw:items-center ttw:gap-1", disabled: e, children: [
|
|
17
|
+
n._(s ? "Incl. tax" : "Excl. tax"),
|
|
18
|
+
!e && /* @__PURE__ */ t(x, { className: "ttw:w-4 ttw:h-4" })
|
|
19
|
+
] }) }),
|
|
20
|
+
/* @__PURE__ */ o(l, { children: [
|
|
21
|
+
/* @__PURE__ */ t(r, { onClick: () => i("tax_mode", "exclusive"), children: n._("Excluding tax") }),
|
|
22
|
+
/* @__PURE__ */ t(r, { onClick: () => i("tax_mode", "inclusive"), children: n._("Including tax") })
|
|
23
|
+
] })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
14
26
|
export {
|
|
15
|
-
|
|
27
|
+
g as TaxModeMenu
|
|
16
28
|
};
|
|
@@ -1,28 +1,161 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { useCreateInvoiceProductsTable as ee } from "./index426.js";
|
|
2
|
+
import { sanitizeLineItems as te } from "./index429.js";
|
|
3
|
+
import { useCurrencies as re } from "./index60.js";
|
|
4
|
+
import { useRef as ie, useState as V, useCallback as n, useEffect as E, useMemo as ae } from "react";
|
|
5
|
+
import "./index94.js";
|
|
6
|
+
import "@emotion/react/jsx-runtime";
|
|
7
|
+
import "@lingui/react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "./index59.js";
|
|
10
|
+
import "@mui/x-data-grid";
|
|
11
|
+
import { useDebounceCallback as se } from "./index67.js";
|
|
12
|
+
import { useIsMounted as ne } from "./index70.js";
|
|
13
|
+
import { generateUniqueId as oe } from "./index430.js";
|
|
14
|
+
import { useFormContext as ue, useFieldArray as le } from "react-hook-form";
|
|
15
|
+
import { useGetMeasureUnits as me } from "./index201.js";
|
|
16
|
+
const ce = 4, Ae = ({
|
|
17
|
+
actualCurrency: R,
|
|
18
|
+
defaultCurrency: x,
|
|
19
|
+
isNonVatSupported: f,
|
|
20
|
+
isInclusivePricing: P,
|
|
21
|
+
maxAllowedEmptyRows: l = ce,
|
|
22
|
+
highestVatRate: I
|
|
10
23
|
}) => {
|
|
11
24
|
const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
control: S,
|
|
26
|
+
formState: {
|
|
27
|
+
errors: v
|
|
28
|
+
},
|
|
29
|
+
setValue: y,
|
|
30
|
+
getValues: a,
|
|
31
|
+
watch: T,
|
|
32
|
+
clearErrors: g,
|
|
33
|
+
trigger: C
|
|
34
|
+
} = ue(), {
|
|
35
|
+
data: L
|
|
36
|
+
} = me(), {
|
|
37
|
+
fields: _,
|
|
38
|
+
append: m,
|
|
39
|
+
remove: b
|
|
40
|
+
} = le({
|
|
41
|
+
control: S,
|
|
42
|
+
name: "line_items",
|
|
43
|
+
shouldUnregister: !1
|
|
44
|
+
}), c = ne(), o = ie(!1), [w, M] = V(!1), [q, d] = V([]), [D, h] = V(!1), F = T("line_items"), U = te(F), {
|
|
45
|
+
formatCurrencyToDisplay: N
|
|
46
|
+
} = re(), {
|
|
47
|
+
subtotalPrice: k,
|
|
48
|
+
totalPrice: B,
|
|
49
|
+
totalTaxes: W,
|
|
50
|
+
shouldShowTaxExemptRationale: z,
|
|
51
|
+
taxesByVatRate: G
|
|
52
|
+
} = ee({
|
|
53
|
+
lineItems: U,
|
|
54
|
+
isNonVatSupported: f,
|
|
55
|
+
actualCurrency: R ?? x,
|
|
56
|
+
isInclusivePricing: P,
|
|
57
|
+
formatCurrencyToDisplay: N
|
|
58
|
+
}), s = n((e) => {
|
|
59
|
+
const t = {
|
|
60
|
+
name: e?.product?.name || "",
|
|
61
|
+
price: {
|
|
62
|
+
currency: R ?? x,
|
|
63
|
+
value: e?.product?.price?.value || 0
|
|
64
|
+
},
|
|
65
|
+
measure_unit_id: e?.product?.measure_unit_id || "",
|
|
66
|
+
type: e?.product?.type || "product"
|
|
67
|
+
};
|
|
68
|
+
return {
|
|
69
|
+
id: e?.id ?? oe(),
|
|
70
|
+
product_id: e?.product_id || "",
|
|
71
|
+
product: t,
|
|
72
|
+
quantity: e?.quantity ?? 1,
|
|
73
|
+
// Preserve VAT values or set defaults based on region
|
|
74
|
+
vat_rate_id: f ? void 0 : e?.vat_rate_id ?? I?.id,
|
|
75
|
+
vat_rate_value: f ? void 0 : e?.vat_rate_value ?? I?.value,
|
|
76
|
+
tax_rate_value: f ? e?.tax_rate_value ?? 0 : void 0,
|
|
77
|
+
// Preserve measure_unit for custom units
|
|
78
|
+
...e?.measure_unit ? {
|
|
79
|
+
measure_unit: e.measure_unit
|
|
80
|
+
} : {}
|
|
81
|
+
};
|
|
82
|
+
}, [R, x, f, I]), p = n((e) => e.reduce((t, r) => r.product?.name === "" ? t + 1 : t, 0), []), J = n(() => {
|
|
83
|
+
if (o.current || !c.current) return;
|
|
84
|
+
const e = a("line_items") || [], t = p(e);
|
|
85
|
+
if (t <= l && h(!1), t === 0 && e.length > 0) {
|
|
86
|
+
o.current = !0;
|
|
87
|
+
const r = s(), i = e.length;
|
|
88
|
+
m(r, {
|
|
89
|
+
shouldFocus: !1
|
|
90
|
+
}), d((u) => [...u, i]);
|
|
91
|
+
}
|
|
92
|
+
}, [c, a, p, l, s, L?.data, m]), A = se(J), O = n(() => {
|
|
93
|
+
const e = a("line_items") || [];
|
|
94
|
+
if (p(e) > l) {
|
|
95
|
+
h(!0);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (o.current) return;
|
|
99
|
+
h(!1), o.current = !0, m(s());
|
|
100
|
+
const t = a("line_items");
|
|
101
|
+
if (t && t.length > 0) {
|
|
102
|
+
const r = t.length - 1;
|
|
103
|
+
g(`line_items.${r}`);
|
|
104
|
+
}
|
|
105
|
+
}, [m, s, p, a, g, l]), j = n(() => {
|
|
106
|
+
A();
|
|
107
|
+
}, [A]);
|
|
108
|
+
E(() => {
|
|
109
|
+
o.current && Promise.resolve().then(() => {
|
|
110
|
+
c.current && (o.current = !1);
|
|
23
111
|
});
|
|
24
|
-
},
|
|
112
|
+
}, [_.length, c]);
|
|
113
|
+
const H = n(() => {
|
|
114
|
+
const e = a("line_items");
|
|
115
|
+
if (!e?.length) return;
|
|
116
|
+
const t = e.filter((u) => !!u?.product?.name?.trim()), r = e.find((u) => !u?.product?.name?.trim());
|
|
117
|
+
let i = [];
|
|
118
|
+
t.length > 0 ? i = t : e.length > 0 && (i = [s(r || void 0)]), (i.length !== e.length || !i.every((u, $) => u.id === e[$]?.id)) && (g("line_items"), y("line_items", i, {
|
|
119
|
+
shouldValidate: !1,
|
|
120
|
+
shouldDirty: !0
|
|
121
|
+
}), d([]));
|
|
122
|
+
}, [a, y, g, s]);
|
|
123
|
+
E(() => {
|
|
124
|
+
!c.current || w || !a("line_items")?.length && !o.current && (o.current = !0, m(s()), d([0]), M(!0));
|
|
125
|
+
}, [c, w, a, m, s]);
|
|
126
|
+
const K = n((e) => {
|
|
127
|
+
b(e);
|
|
128
|
+
const t = (a("line_items") || []).filter((r, i) => i !== e);
|
|
129
|
+
p(t) <= l && h(!1), d((r) => r.filter((i) => i !== e).map((i) => i > e ? i - 1 : i));
|
|
130
|
+
}, [b, a, p, d, h, l]), Q = n((e, t, r) => {
|
|
131
|
+
y(e, t, {
|
|
132
|
+
shouldDirty: !0,
|
|
133
|
+
...r
|
|
134
|
+
}), r?.shouldValidate && C(e);
|
|
135
|
+
}, [y, C]), X = n((e, t) => {
|
|
136
|
+
const r = `line_items.${e}.${t}`;
|
|
137
|
+
return a(r);
|
|
138
|
+
}, [a]), Y = JSON.stringify(v.line_items), Z = ae(() => Array.isArray(v.line_items) ? _.map((e, t) => v.line_items?.[t] ?? {}) : _.map(() => ({})), [v.line_items, Y, _]);
|
|
139
|
+
return {
|
|
140
|
+
fields: _,
|
|
141
|
+
autoAddedRows: q,
|
|
142
|
+
tooManyEmptyRows: D,
|
|
143
|
+
subtotalPrice: k,
|
|
144
|
+
totalPrice: B,
|
|
145
|
+
totalTaxes: W,
|
|
146
|
+
taxesByVatRate: G,
|
|
147
|
+
shouldShowTaxExemptRationale: z,
|
|
148
|
+
lineItemErrors: Z,
|
|
149
|
+
handleAddRow: O,
|
|
150
|
+
handleRemoveItem: K,
|
|
151
|
+
handleAutoAddRow: j,
|
|
152
|
+
setAutoAddedRows: d,
|
|
153
|
+
setValueWithValidationLocal: Q,
|
|
154
|
+
cleanUpLineItemsForSubmission: H,
|
|
155
|
+
createEmptyRow: s,
|
|
156
|
+
handleRequestLineItemValue: X
|
|
157
|
+
};
|
|
25
158
|
};
|
|
26
159
|
export {
|
|
27
|
-
|
|
160
|
+
Ae as useLineItemManagement
|
|
28
161
|
};
|
|
@@ -1,42 +1,80 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import {
|
|
11
|
-
import "react";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsx as e, Fragment as y, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as F, useMemo as b, useEffect as N } from "react";
|
|
3
|
+
import { useFormContext as D, Controller as V } from "react-hook-form";
|
|
4
|
+
import { useLingui as E } from "@lingui/react";
|
|
5
|
+
import { PaymentTermsDialog as I } from "./index413.js";
|
|
6
|
+
import { PaymentTermsSummary as L } from "./index414.js";
|
|
7
|
+
import { dedupePaymentTermsByContent as U } from "./index415.js";
|
|
8
|
+
import { Skeleton as $ } from "./index153.js";
|
|
9
|
+
import { Select as j, SelectTrigger as k, SelectValue as M, SelectContent as q, SelectItem as f } from "./index279.js";
|
|
10
|
+
import { Field as z, FieldContent as B, FieldLabel as A, FieldError as G } from "./index222.js";
|
|
11
|
+
import { Plus as H } from "lucide-react";
|
|
12
|
+
const a = {
|
|
13
|
+
Closed: 0,
|
|
14
|
+
Create: 1,
|
|
15
|
+
Update: 2
|
|
16
|
+
}, re = ({
|
|
17
|
+
disabled: w,
|
|
18
|
+
paymentTerms: c,
|
|
19
|
+
isLoading: C,
|
|
20
|
+
selectedPaymentTerm: s,
|
|
21
|
+
onPaymentTermsChange: _
|
|
21
22
|
}) => {
|
|
22
23
|
const {
|
|
23
|
-
i18n:
|
|
24
|
-
} =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
i18n: i
|
|
25
|
+
} = E(), {
|
|
26
|
+
control: g,
|
|
27
|
+
watch: x,
|
|
28
|
+
setValue: p
|
|
29
|
+
} = D(), [u, n] = F(a.Closed), {
|
|
30
|
+
dedupedTerms: S,
|
|
31
|
+
duplicateIdMap: d
|
|
32
|
+
} = b(() => U(c?.data ?? []), [c]), l = x("payment_terms_id");
|
|
33
|
+
N(() => {
|
|
34
|
+
l && d.has(l) && p("payment_terms_id", d.get(l), {
|
|
35
|
+
shouldValidate: !0,
|
|
36
|
+
shouldDirty: !1,
|
|
37
|
+
shouldTouch: !1
|
|
38
|
+
});
|
|
39
|
+
}, [l, d, p]);
|
|
40
|
+
const T = () => {
|
|
41
|
+
n(a.Update);
|
|
42
|
+
}, v = (t, m) => {
|
|
43
|
+
n(a.Closed), (t || m) && _(t);
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ e(y, { children: C ? /* @__PURE__ */ e($, { className: "ttw:w-full ttw:h-9" }) : /* @__PURE__ */ r(y, { children: [
|
|
46
|
+
/* @__PURE__ */ e(V, { name: "payment_terms_id", control: g, render: ({
|
|
47
|
+
field: t,
|
|
48
|
+
fieldState: {
|
|
49
|
+
error: m
|
|
33
50
|
}
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
51
|
+
}) => /* @__PURE__ */ e(z, { children: /* @__PURE__ */ r(B, { children: [
|
|
52
|
+
/* @__PURE__ */ e(A, { htmlFor: "payment_terms_id", required: !0, children: i._("Payment terms") }),
|
|
53
|
+
/* @__PURE__ */ r(j, { ...t, disabled: w, value: t.value, onValueChange: (o) => {
|
|
54
|
+
o === "create" ? n(a.Create) : t.onChange(o);
|
|
55
|
+
}, children: [
|
|
56
|
+
/* @__PURE__ */ e(k, { id: "payment_terms_id", className: "ttw:w-full", "aria-invalid": !!m, children: /* @__PURE__ */ e(M, { placeholder: i._("Select payment terms") }) }),
|
|
57
|
+
/* @__PURE__ */ r(q, { children: [
|
|
58
|
+
/* @__PURE__ */ r(f, { value: "create", className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary", children: [
|
|
59
|
+
/* @__PURE__ */ e(H, { className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary" }),
|
|
60
|
+
i._("Create payment term")
|
|
61
|
+
] }),
|
|
62
|
+
S.map(({
|
|
63
|
+
id: o,
|
|
64
|
+
name: P,
|
|
65
|
+
description: h
|
|
66
|
+
}) => /* @__PURE__ */ r(f, { value: o, children: [
|
|
67
|
+
P,
|
|
68
|
+
h && ` (${h})`
|
|
69
|
+
] }, o))
|
|
70
|
+
] })
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ e(G, { errors: m ? [m] : [] })
|
|
73
|
+
] }) }) }),
|
|
74
|
+
s && /* @__PURE__ */ e("div", { className: "ttw:mt-2", children: /* @__PURE__ */ e(L, { paymentTerm: s, openEditDialog: T }) }),
|
|
75
|
+
/* @__PURE__ */ e(I, { show: u !== a.Closed, closeDialog: v, selectedTerm: u === a.Update ? s : void 0 })
|
|
76
|
+
] }) });
|
|
39
77
|
};
|
|
40
78
|
export {
|
|
41
|
-
|
|
79
|
+
re as PaymentSection
|
|
42
80
|
};
|