@tesouro/embedded-components-react 0.2.26 → 0.2.27
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 +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- 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/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/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +9 -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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +9 -27
- 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 +33 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +12 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +47 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +49 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +11 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +40 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +152 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +71 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +3 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +62 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +5 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +97 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +57 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +37 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +72 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +55 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +196 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +22 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +77 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +29 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +39 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +243 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +178 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +14 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +113 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +84 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +105 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +108 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +58 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +60 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +86 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +48 -29
- 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 +34 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +116 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +68 -248
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +185 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +30 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +115 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +53 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +18 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +26 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +19 -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 +12 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -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 +4 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +7 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +47 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +366 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +19 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +13 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +92 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +10 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +18 -366
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +27 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +114 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +68 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +14 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +69 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +77 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +44 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +68 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +487 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +162 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +42 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +55 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +30 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +113 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +21 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +53 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +56 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +27 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +59 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +18 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +19 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +35 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +345 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +295 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +97 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +158 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +267 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +23 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +19 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +2 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +92 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +96 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +192 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +41 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +63 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +95 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +110 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +86 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +153 -165
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +28 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +26 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +78 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +44 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +63 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +43 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +21 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +187 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +106 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +81 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +287 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +47 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +82 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +220 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +44 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +37 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +31 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +6 -288
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +98 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +30 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +54 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +38 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +17 -345
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +57 -299
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +12 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +89 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +115 -254
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +38 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +41 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +61 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +149 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +47 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +103 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +22 -18
- 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 +12 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +20 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +18 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +170 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +131 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +156 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +12 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +60 -25
- 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 +67 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +58 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +6 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +58 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +22 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +59 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +14 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +30 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +9 -27
- 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 +19 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +28 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +127 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +96 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +38 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +119 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +16 -97
- 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 +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +14 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +16 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +15 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +11 -22
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +7 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +48 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +29 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +69 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +97 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +34 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +9 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +255 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +106 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +61 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +21 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +14 -22
- 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 +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +18 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +11 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +65 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +21 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +2 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +29 -2
- 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 +23 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +38 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +5 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +29 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +85 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +26 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +75 -7
- 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 +65 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +36 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +20 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +50 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +36 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +59 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +65 -69
- 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 +47 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +38 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +17 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +80 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +32 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +40 -5
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +55 -70
- 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 +72 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +20 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +94 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +16 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +73 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +20 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +43 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +36 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -9
- 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 +18 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +56 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +67 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +39 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +49 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +54 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +15 -82
- 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 +19 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +51 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.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 +2 -2
- 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 +3 -3
- 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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +1 -1
- 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 +2 -2
- 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/index81.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 +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +23 -23
- package/package.json +1 -1
|
@@ -1,31 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cva as o } from "class-variance-authority";
|
|
3
|
+
import { Tabs as r } from "radix-ui";
|
|
4
|
+
import { cn as i } from "./index102.js";
|
|
5
|
+
function g({
|
|
6
|
+
className: a,
|
|
7
|
+
orientation: t = "horizontal",
|
|
8
|
+
...n
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ e(r.Root, { "data-slot": "tabs", "data-orientation": t, orientation: t, className: i("ttw:group/tabs ttw:flex ttw:gap-2 ttw:data-[orientation=horizontal]:flex-col", a), ...n });
|
|
11
|
+
}
|
|
12
|
+
const s = o("ttw:group/tabs-list ttw:inline-flex ttw:w-fit ttw:items-center ttw:justify-center ttw:rounded-lg ttw:p-[3px] ttw:text-muted-foreground ttw:group-data-[orientation=horizontal]/tabs:h-9 ttw:group-data-[orientation=vertical]/tabs:h-fit ttw:group-data-[orientation=vertical]/tabs:flex-col ttw:data-[variant=line]:rounded-none", {
|
|
13
|
+
variants: {
|
|
14
|
+
variant: {
|
|
15
|
+
default: "ttw:bg-muted",
|
|
16
|
+
line: "ttw:gap-1 ttw:bg-transparent"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function b({
|
|
24
|
+
className: a,
|
|
25
|
+
variant: t = "default",
|
|
26
|
+
...n
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ e(r.List, { "data-slot": "tabs-list", "data-variant": t, className: i(s({
|
|
29
|
+
variant: t
|
|
30
|
+
}), a), ...n });
|
|
31
|
+
}
|
|
32
|
+
function c({
|
|
33
|
+
className: a,
|
|
34
|
+
...t
|
|
35
|
+
}) {
|
|
36
|
+
return /* @__PURE__ */ e(r.Trigger, { "data-slot": "tabs-trigger", className: i("ttw:relative ttw:inline-flex ttw:h-[calc(100%-1px)] ttw:flex-1 ttw:items-center ttw:justify-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-transparent ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground/60 ttw:transition-all ttw:group-data-[orientation=vertical]/tabs:w-full ttw:group-data-[orientation=vertical]/tabs:justify-start ttw:hover:text-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:focus-visible:outline-1 ttw:focus-visible:outline-ring ttw:disabled:pointer-events-none ttw:disabled:opacity-50 ttw:group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm ttw:group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none ttw:dark:text-muted-foreground ttw:dark:hover:text-foreground ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", "ttw:group-data-[variant=line]/tabs-list:bg-transparent ttw:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent ttw:dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent ttw:dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent", "ttw:data-[state=active]:bg-background ttw:data-[state=active]:text-foreground ttw:dark:data-[state=active]:border-input ttw:dark:data-[state=active]:bg-input/30 ttw:dark:data-[state=active]:text-foreground", "ttw:after:absolute ttw:after:bg-foreground ttw:after:opacity-0 ttw:after:transition-opacity ttw:group-data-[orientation=horizontal]/tabs:after:inset-x-0 ttw:group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] ttw:group-data-[orientation=horizontal]/tabs:after:h-0.5 ttw:group-data-[orientation=vertical]/tabs:after:inset-y-0 ttw:group-data-[orientation=vertical]/tabs:after:-right-1 ttw:group-data-[orientation=vertical]/tabs:after:w-0.5 ttw:group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100", a), ...t });
|
|
37
|
+
}
|
|
38
|
+
function f({
|
|
39
|
+
className: a,
|
|
40
|
+
...t
|
|
41
|
+
}) {
|
|
42
|
+
return /* @__PURE__ */ e(r.Content, { "data-slot": "tabs-content", className: i("ttw:flex-1 ttw:outline-none", a), ...t });
|
|
43
|
+
}
|
|
29
44
|
export {
|
|
30
|
-
|
|
45
|
+
g as Tabs,
|
|
46
|
+
f as TabsContent,
|
|
47
|
+
b as TabsList,
|
|
48
|
+
c as TabsTrigger,
|
|
49
|
+
s as tabsListVariants
|
|
31
50
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as p } from "react";
|
|
2
|
-
import { useUserPermissions as y } from "./
|
|
2
|
+
import { useUserPermissions as y } from "./index148.js";
|
|
3
3
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
4
4
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
5
5
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -1,44 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
title: r,
|
|
9
|
-
descriptionLine1: o,
|
|
10
|
-
onAction: e,
|
|
11
|
-
actionButtonLabel: i,
|
|
12
|
-
actionOptions: a = [],
|
|
13
|
-
type: n
|
|
14
|
-
}) => /* @__PURE__ */ t(p, { className: "ttw:min-h-48", children: /* @__PURE__ */ c("div", { className: "ttw:flex ttw:flex-col ttw:flex-1 ttw:items-center ttw:gap-3", children: [
|
|
15
|
-
/* @__PURE__ */ t(m, { variant: "h2", className: "ttw:font-medium", children: r }),
|
|
16
|
-
/* @__PURE__ */ t(m, { variant: "body1", color: "muted", className: "ttw:font-normal", children: o }),
|
|
17
|
-
/* @__PURE__ */ t(C, { onAction: e, actionButtonLabel: i, actionOptions: a, type: n })
|
|
18
|
-
] }) }), C = ({
|
|
19
|
-
onAction: r,
|
|
20
|
-
actionButtonLabel: o,
|
|
21
|
-
actionOptions: e = [],
|
|
22
|
-
type: i
|
|
1
|
+
import { jsxs as i, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as f } from "@lingui/react";
|
|
3
|
+
import { useFormContext as p, Controller as n } from "react-hook-form";
|
|
4
|
+
import { Field as d, FieldContent as s, FieldLabel as m, FieldError as c } from "./index160.js";
|
|
5
|
+
import { Textarea as h } from "./index125.js";
|
|
6
|
+
const N = ({
|
|
7
|
+
disabled: a
|
|
23
8
|
}) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
9
|
+
const {
|
|
10
|
+
i18n: t
|
|
11
|
+
} = f(), {
|
|
12
|
+
control: l
|
|
13
|
+
} = p();
|
|
14
|
+
return /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
15
|
+
/* @__PURE__ */ e(n, { name: "memo", control: l, render: ({
|
|
16
|
+
field: r,
|
|
17
|
+
fieldState: {
|
|
18
|
+
error: o
|
|
19
|
+
}
|
|
20
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ i(s, { children: [
|
|
21
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, required: !0, children: t._("Memo") }),
|
|
22
|
+
/* @__PURE__ */ e(h, { ...r, id: r.name, disabled: a, placeholder: t._("Dear client, as discussed, please find attached our invoice:"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!o }),
|
|
23
|
+
/* @__PURE__ */ e(c, { errors: o ? [o] : [] })
|
|
24
|
+
] }) }) }),
|
|
25
|
+
/* @__PURE__ */ e(n, { name: "footer", control: l, render: ({
|
|
26
|
+
field: r,
|
|
27
|
+
fieldState: {
|
|
28
|
+
error: o
|
|
29
|
+
}
|
|
30
|
+
}) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ i(s, { children: [
|
|
31
|
+
/* @__PURE__ */ e(m, { htmlFor: r.name, children: t._("Note to customer") }),
|
|
32
|
+
/* @__PURE__ */ e(h, { ...r, id: r.name, disabled: a, placeholder: t._("Add a note to be displayed below the line items"), className: "ttw:h-20 ttw:resize-none", "aria-invalid": !!o }),
|
|
33
|
+
/* @__PURE__ */ e(c, { errors: o ? [o] : [] })
|
|
34
|
+
] }) }) })
|
|
40
35
|
] });
|
|
41
36
|
};
|
|
42
37
|
export {
|
|
43
|
-
|
|
38
|
+
N as EntitySection
|
|
44
39
|
};
|
|
@@ -1,9 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
import { jsxs as l, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFormErrors as M, FormErrorDisplay as q } from "./index325.js";
|
|
3
|
+
import { InvoiceItemRow as G } from "./index326.js";
|
|
4
|
+
import { InvoiceTotals as k } from "./index327.js";
|
|
5
|
+
import { CUSTOM_ID as z } from "./index328.js";
|
|
6
|
+
import { useLineItemManagement as B } from "./index329.js";
|
|
7
|
+
import { useLingui as O } from "@lingui/react";
|
|
8
|
+
import { Button as W } from "./index86.js";
|
|
9
|
+
import { Field as H, FieldContent as Q, FieldLabel as Y } from "./index160.js";
|
|
10
|
+
import { Typography as m } from "./index87.js";
|
|
11
|
+
import { Plus as J } from "lucide-react";
|
|
12
|
+
import { useCallback as f, useEffect as K, useRef as X } from "react";
|
|
13
|
+
import { useFormContext as Z, Controller as tt } from "react-hook-form";
|
|
14
|
+
import { LoadingSpinner as et } from "./index138.js";
|
|
15
|
+
import { useGetMeasureUnits as it } from "./index205.js";
|
|
16
|
+
import { InputGroup as rt, InputGroupInput as nt, InputGroupAddon as at } from "./index103.js";
|
|
17
|
+
import { sanitizeTaxRateInput as ot } from "./index330.js";
|
|
18
|
+
import { Separator as st } from "./index142.js";
|
|
19
|
+
const Ct = ({
|
|
20
|
+
defaultCurrency: d = "USD",
|
|
21
|
+
registerLineItemCleanupFn: u,
|
|
22
|
+
handleOpenCreateProductDialog: I
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
i18n: n
|
|
26
|
+
} = O(), {
|
|
27
|
+
control: h,
|
|
28
|
+
formState: _,
|
|
29
|
+
getValues: c,
|
|
30
|
+
watch: $,
|
|
31
|
+
trigger: g
|
|
32
|
+
} = Z(), N = $("tax_mode") === "inclusive", {
|
|
33
|
+
data: b,
|
|
34
|
+
isLoading: C
|
|
35
|
+
} = it(), {
|
|
36
|
+
fields: w,
|
|
37
|
+
subtotalPrice: L,
|
|
38
|
+
totalPrice: P,
|
|
39
|
+
totalTaxes: F,
|
|
40
|
+
lineItemErrors: R,
|
|
41
|
+
handleAddRow: U,
|
|
42
|
+
handleRemoveItem: E,
|
|
43
|
+
setValueWithValidationLocal: p,
|
|
44
|
+
cleanUpLineItemsForSubmission: v
|
|
45
|
+
} = B({
|
|
46
|
+
defaultCurrency: d,
|
|
47
|
+
isInclusivePricing: N
|
|
48
|
+
}), r = f((t, e) => {
|
|
49
|
+
p(t, e, {
|
|
50
|
+
shouldValidate: !1
|
|
51
|
+
});
|
|
52
|
+
}, [p]);
|
|
53
|
+
K(() => (u?.(v), () => u?.(null)), [u, v]);
|
|
54
|
+
const x = X(null), {
|
|
55
|
+
generalError: T,
|
|
56
|
+
fieldErrors: S
|
|
57
|
+
} = M(R), y = f((t, e, a) => {
|
|
58
|
+
const s = e.measureUnit?.id, o = e.measureUnit?.name;
|
|
59
|
+
o && !s ? (r(`line_items.${t}.product.measure_unit_id`, ""), r(`line_items.${t}.product.measure_unit_name`, o), r(`line_items.${t}.measure_unit`, {
|
|
60
|
+
name: o,
|
|
61
|
+
id: null
|
|
62
|
+
})) : (s || a) && (r(`line_items.${t}.product.measure_unit_id`, s || a), r(`line_items.${t}.product.measure_unit_name`, void 0), r(`line_items.${t}.measure_unit`, void 0));
|
|
63
|
+
}, [r]), A = f((t, e, a) => {
|
|
64
|
+
const s = e.label ?? "";
|
|
65
|
+
if (r(`line_items.${t}.product.name`, s), e.id !== "" && e.id !== z && a) {
|
|
66
|
+
r(`line_items.${t}.product.price.value`, e.price?.value ?? 0), r(`line_items.${t}.product.price.currency`, d);
|
|
67
|
+
const o = c(`line_items.${t}.product.measure_unit_id`);
|
|
68
|
+
y(t, e, o), r(`line_items.${t}.quantity`, e.smallestAmount ?? 1), r(`line_items.${t}.product.smallest_amount`, e.smallestAmount), r(`line_items.${t}.product.type`, "product"), r(`line_items.${t}.product.description`, e.description ?? ""), g(`line_items.${t}`);
|
|
69
|
+
}
|
|
70
|
+
}, [d, c, r, y, g]);
|
|
71
|
+
return /* @__PURE__ */ l("div", { ref: x, className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
|
|
72
|
+
/* @__PURE__ */ l("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
73
|
+
/* @__PURE__ */ i(m, { variant: "h4", children: n._("Products and services") }),
|
|
74
|
+
/* @__PURE__ */ i(m, { variant: "body2", color: "muted", className: "ttw:font-medium", children: n._("Add the products and services on this invoice. You'll have the option to save new items to your inventory.") })
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ i(q, { generalError: _?.errors?.line_items?.root?.message ?? T, fieldErrors: S }),
|
|
77
|
+
/* @__PURE__ */ l("ul", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
|
|
78
|
+
/* @__PURE__ */ l("li", { className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-5", children: [
|
|
79
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:min-w-30 ttw:whitespace-nowrap ttw:inline-flex ttw:flex-1", children: n._("Item name") }),
|
|
80
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-24 ttw:min-w-24", children: n._("Quantity") }),
|
|
81
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-20.5 ttw:min-w-20.5", children: n._("Units") }),
|
|
82
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:max-w-41 ttw:w-full ttw:min-w-29", children: n._("Price") }),
|
|
83
|
+
/* @__PURE__ */ i(m, { variant: "body2", className: "ttw:font-medium ttw:leading-5 ttw:w-12 ttw:min-w-12", children: n._("Taxable") }),
|
|
84
|
+
w.length > 1 && /* @__PURE__ */ i("div", { className: "ttw:w-10 ttw:min-w-10" })
|
|
85
|
+
] }),
|
|
86
|
+
C ? /* @__PURE__ */ i("li", { className: "ttw:flex ttw:items-center ttw:justify-center ttw:h-9", children: /* @__PURE__ */ i(et, { className: "ttw:w-5 ttw:h-5" }) }) : w.map((t, e) => {
|
|
87
|
+
const a = (o) => c(`line_items.${e}.${o}`), s = (o, D, V) => {
|
|
88
|
+
const j = `line_items.${e}.${o}`;
|
|
89
|
+
p(j, D, V);
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ i(G, { field: t, index: e, control: h, errors: _.errors, defaultCurrency: d, measureUnitsData: b, onRequestLineItemValue: a, onLineItemValueChange: s, onRequestOpenCreateProductDialog: I, canRemove: w.length > 1, onUpdateItem: A, onRemoveItem: E, container: x }, t.id);
|
|
92
|
+
})
|
|
93
|
+
] }),
|
|
94
|
+
/* @__PURE__ */ l(W, { type: "button", variant: "ghost", onClick: U, className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit", children: [
|
|
95
|
+
/* @__PURE__ */ i(J, { className: "ttw:size-5 ttw:text-primary" }),
|
|
96
|
+
n._("Add item")
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ i(tt, { name: "tax_rate", control: h, render: ({
|
|
99
|
+
field: t
|
|
100
|
+
}) => /* @__PURE__ */ i(H, { children: /* @__PURE__ */ l(Q, { className: "ttw:flex-row ttw:justify-end", children: [
|
|
101
|
+
/* @__PURE__ */ i(Y, { htmlFor: t.name, children: n._("Tax rate") }),
|
|
102
|
+
/* @__PURE__ */ l(rt, { className: "ttw:w-28 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0", children: [
|
|
103
|
+
/* @__PURE__ */ i(nt, { ...t, value: t.value ?? "", id: t.name, className: "ttw:text-right", placeholder: n._("e.g. 6.25"), type: "text", inputMode: "decimal", onChange: (e) => {
|
|
104
|
+
t.onChange(ot(e.target.value));
|
|
105
|
+
}, onBlur: (e) => {
|
|
106
|
+
const a = e.target.value;
|
|
107
|
+
t.onChange(a.endsWith(".") ? a.slice(0, -1) : a), t.onBlur();
|
|
108
|
+
} }),
|
|
109
|
+
/* @__PURE__ */ i(at, { align: "inline-end", children: "%" })
|
|
110
|
+
] })
|
|
111
|
+
] }) }) }),
|
|
112
|
+
/* @__PURE__ */ i(st, {}),
|
|
113
|
+
/* @__PURE__ */ i(k, { subtotalPrice: L, totalTaxes: F, totalPrice: P })
|
|
114
|
+
] });
|
|
115
|
+
};
|
|
7
116
|
export {
|
|
8
|
-
|
|
117
|
+
Ct as ItemsSection
|
|
9
118
|
};
|
|
@@ -1,252 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import { parseISO as fe } from "date-fns";
|
|
16
|
-
import { useMyEntity as ye } from "./index80.js";
|
|
17
|
-
import { useMemo as I, useState as M, useCallback as ve, useId as be } from "react";
|
|
18
|
-
import "react-hot-toast";
|
|
19
|
-
import { useLingui as xe } from "@lingui/react";
|
|
20
|
-
import { rateMinorToMajor as N, rateMajorToMinor as ge } from "./index216.js";
|
|
21
|
-
import { ConfirmationModal as he } from "./index272.js";
|
|
22
|
-
import { Dialog as we, DialogContent as Ce, DialogHeader as De, DialogTitle as $e, DialogDescription as Ie, DialogClose as Me } from "./index201.js";
|
|
23
|
-
import { Button as S } from "./index86.js";
|
|
24
|
-
import { zodResolver as Ne } from "@hookform/resolvers/zod";
|
|
25
|
-
import { useForm as Se, FormProvider as Te } from "react-hook-form";
|
|
26
|
-
import { X as Ee } from "lucide-react";
|
|
27
|
-
import { InvoicePreview as ke } from "./index205.js";
|
|
28
|
-
import { useGetPaymentTerms as Pe } from "./index299.js";
|
|
29
|
-
import { useGetMeasureUnits as Ue } from "./index218.js";
|
|
30
|
-
import { CreateProduct as Le } from "./index46.js";
|
|
31
|
-
import { buildPaymentTermsPayload as Fe, CUSTOM_DATE_PAYMENT_TERM as Oe, RECEIPT_DUE_PAYMENT_TERM as Re } from "./index207.js";
|
|
32
|
-
const Ve = (e) => {
|
|
33
|
-
if (e?.id)
|
|
34
|
-
return {
|
|
35
|
-
payment_terms_id: e.id,
|
|
36
|
-
payment_terms_custom_date: null
|
|
37
|
-
};
|
|
38
|
-
const m = e?.term_final?.end_date;
|
|
39
|
-
return m ? {
|
|
40
|
-
payment_terms_id: Oe,
|
|
41
|
-
payment_terms_custom_date: fe(m)
|
|
42
|
-
} : e?.term_final?.number_of_days === 0 ? {
|
|
43
|
-
payment_terms_id: Re,
|
|
44
|
-
payment_terms_custom_date: null
|
|
45
|
-
} : {
|
|
46
|
-
payment_terms_id: "",
|
|
47
|
-
payment_terms_custom_date: null
|
|
48
|
-
};
|
|
49
|
-
}, bt = (e) => /* @__PURE__ */ r(je, { ...e }), je = ({
|
|
50
|
-
invoice: e,
|
|
51
|
-
onCancel: m,
|
|
52
|
-
onUpdated: T,
|
|
53
|
-
isOpen: E
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { InvoicePreviewMonite as d } from "./index331.js";
|
|
3
|
+
import { useAdaptiveScale as p } from "./index332.js";
|
|
4
|
+
import { AspectRatio as v } from "./index333.js";
|
|
5
|
+
import { cn as e } from "./index102.js";
|
|
6
|
+
import { useRef as n } from "react";
|
|
7
|
+
import { useGetMeasureUnits as h } from "./index205.js";
|
|
8
|
+
const I = ({
|
|
9
|
+
address: i,
|
|
10
|
+
counterpart: s,
|
|
11
|
+
currency: o,
|
|
12
|
+
invoiceData: w,
|
|
13
|
+
entityData: m,
|
|
14
|
+
paymentTerms: l
|
|
54
15
|
}) => {
|
|
55
|
-
const {
|
|
56
|
-
|
|
57
|
-
} =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
})
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
tax_mode: e.tax_mode ?? "exclusive"
|
|
109
|
-
}), [e]), y = Se({
|
|
110
|
-
resolver: Ne(oe(n)),
|
|
111
|
-
defaultValues: F
|
|
112
|
-
}), c = e.currency, {
|
|
113
|
-
handleSubmit: O,
|
|
114
|
-
formState: {
|
|
115
|
-
isDirty: v
|
|
116
|
-
},
|
|
117
|
-
getValues: R,
|
|
118
|
-
reset: V,
|
|
119
|
-
watch: o
|
|
120
|
-
} = y, {
|
|
121
|
-
registerLineItemCleanupFn: j,
|
|
122
|
-
runLineItemCleanup: A
|
|
123
|
-
} = le();
|
|
124
|
-
me(f, R, V);
|
|
125
|
-
const [q, b] = M(!1), [x, p] = M(!1), B = ve(() => {
|
|
126
|
-
if (!v) {
|
|
127
|
-
m();
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
b(!0);
|
|
131
|
-
}, [v, m]), g = _e(e.id), h = ue(e.id), Y = o("line_items"), z = o("payment_terms_id"), G = o("memo"), H = o("footer"), X = o("purchase_order"), J = o("bank_account_id"), K = o("tax_mode"), Q = o("tax_rate"), w = o("counterpart_id"), C = o("default_billing_address_id"), {
|
|
132
|
-
data: W
|
|
133
|
-
} = ce(w), {
|
|
134
|
-
data: D
|
|
135
|
-
} = pe(w), Z = I(() => D?.data?.find((t) => t.id === C), [C, D?.data]), _ = g.isPending || h.isPending || P || L, $ = `Monite-Form-receivablesDetailsForm-${be()}`;
|
|
136
|
-
return /* @__PURE__ */ s(re, { children: [
|
|
137
|
-
/* @__PURE__ */ r(we, { open: E, modal: !1, children: /* @__PURE__ */ s(Ce, { fullScreen: !0, showCloseButton: !1, className: "ttw:flex", onInteractOutside: (t) => t.preventDefault(), children: [
|
|
138
|
-
/* @__PURE__ */ s("div", { className: "ttw:flex-1/2 ttw:overflow-y-auto ttw:pr-14", children: [
|
|
139
|
-
/* @__PURE__ */ s(De, { className: "ttw:flex-row ttw:justify-between ttw:bg-white ttw:pb-4 ttw:sticky ttw:top-0 ttw:z-9999", children: [
|
|
140
|
-
/* @__PURE__ */ r($e, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
141
|
-
/* @__PURE__ */ r(Ie, { className: "ttw:sr-only", children: n._("Edit invoice") }),
|
|
142
|
-
/* @__PURE__ */ r(Me, { asChild: !0, children: /* @__PURE__ */ r(S, { variant: "ghost", onClick: B, disabled: _, "aria-label": n._("Close"), children: /* @__PURE__ */ r(Ee, {}) }) }),
|
|
143
|
-
/* @__PURE__ */ r(S, { type: "submit", form: $, disabled: _, children: n._("Update") })
|
|
144
|
-
] }),
|
|
145
|
-
/* @__PURE__ */ r(Te, { ...y, children: /* @__PURE__ */ r("form", { id: $, noValidate: !0, onSubmit: async (t) => {
|
|
146
|
-
t.preventDefault(), A(), await O((a) => {
|
|
147
|
-
const d = {
|
|
148
|
-
data: a.line_items.filter((i) => !!i.product?.name?.trim()).map((i) => {
|
|
149
|
-
const u = i;
|
|
150
|
-
let l;
|
|
151
|
-
if (u.product.measure_unit_id) {
|
|
152
|
-
const te = u.product.measure_unit_id;
|
|
153
|
-
l = f?.data?.find((ae) => ae.id === te)?.name;
|
|
154
|
-
} else (u.product.measure_unit_name || u.measure_unit?.name) && (l = u.product.measure_unit_name || u.measure_unit?.name);
|
|
155
|
-
return {
|
|
156
|
-
quantity: i.quantity,
|
|
157
|
-
tax_status: i.taxable ? "taxable" : "non_taxable",
|
|
158
|
-
product: {
|
|
159
|
-
name: i.product.name,
|
|
160
|
-
type: i.product.type,
|
|
161
|
-
measure_unit: l ? {
|
|
162
|
-
name: l
|
|
163
|
-
} : void 0,
|
|
164
|
-
price: i.product.price ? {
|
|
165
|
-
currency: i.product.price.currency ?? "USD",
|
|
166
|
-
value: Math.round(i.product.price.value ?? 0)
|
|
167
|
-
} : void 0
|
|
168
|
-
},
|
|
169
|
-
tax_rate_value: i.taxable && a.tax_rate !== void 0 ? ge(Number(a.tax_rate)) : void 0
|
|
170
|
-
};
|
|
171
|
-
})
|
|
172
|
-
}, ee = {
|
|
173
|
-
invoice: {
|
|
174
|
-
/** Customer section */
|
|
175
|
-
counterpart_id: a.counterpart_id,
|
|
176
|
-
currency: c,
|
|
177
|
-
memo: a.memo,
|
|
178
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
179
|
-
counterpart_shipping_address_id: a?.default_shipping_address_id || null,
|
|
180
|
-
counterpart_billing_address_id: a?.default_billing_address_id,
|
|
181
|
-
/** We shouldn't send an empty string to the server if the value is not set */
|
|
182
|
-
bank_account_id: e.bank_account_id,
|
|
183
|
-
bank_account_type: e.bank_account_type,
|
|
184
|
-
/**
|
|
185
|
-
* Payment terms aren't editable here — rebuild the
|
|
186
|
-
* request payload from the seeded form values (a saved
|
|
187
|
-
* `payment_terms_id`, or an inline `payment_terms`
|
|
188
|
-
* object for "Custom date" / "Due on receipt") so the
|
|
189
|
-
* backend keeps the same due date. Reusing the shared
|
|
190
|
-
* builder guarantees a request-shaped
|
|
191
|
-
* `InlinePaymentTermsRequestPayload` rather than the
|
|
192
|
-
* response object, which carries id/name/description
|
|
193
|
-
* that the request type rejects.
|
|
194
|
-
*/
|
|
195
|
-
...Fe({
|
|
196
|
-
paymentTermId: a.payment_terms_id,
|
|
197
|
-
customDueDate: a.payment_terms_custom_date
|
|
198
|
-
}),
|
|
199
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
200
|
-
payment_reminder_id: a.payment_reminder_id || null,
|
|
201
|
-
// @ts-expect-error - we need to send `null`, but the backend doesn't provide a correct type
|
|
202
|
-
overdue_reminder_id: a.overdue_reminder_id || null
|
|
203
|
-
/** !!! Note !!! Backend is not supported to edit `purchase_order` so we have to remove it */
|
|
204
|
-
// purchase_order: values.purchase_order || undefined,
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
g.mutate(d, {
|
|
208
|
-
onSuccess: () => {
|
|
209
|
-
h.mutate(ee, {
|
|
210
|
-
onSuccess: (i) => {
|
|
211
|
-
T(i);
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
})(t);
|
|
217
|
-
}, className: "ttw:mb-14", children: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-8", children: [
|
|
218
|
-
/* @__PURE__ */ s("h1", { className: "ttw:text-2xl ttw:font-bold", children: [
|
|
219
|
-
n._("Invoice"),
|
|
220
|
-
" ",
|
|
221
|
-
/* @__PURE__ */ s("span", { className: "ttw:text-gray-500", children: [
|
|
222
|
-
"#",
|
|
223
|
-
e.document_id ?? se
|
|
224
|
-
] })
|
|
225
|
-
] }),
|
|
226
|
-
/* @__PURE__ */ r(ne, { defaultCurrency: c, registerLineItemCleanupFn: j, handleOpenCreateProductDialog: () => p(!0) }),
|
|
227
|
-
/* @__PURE__ */ r(ie, { disabled: _ }),
|
|
228
|
-
/* @__PURE__ */ r(de, { disabled: _ })
|
|
229
|
-
] }) }) })
|
|
230
|
-
] }),
|
|
231
|
-
/* @__PURE__ */ r("div", { className: "ttw:flex-1/2 ttw:w-1/2", children: /* @__PURE__ */ r(ke, { invoiceData: {
|
|
232
|
-
payment_terms_id: z,
|
|
233
|
-
line_items: (Y || []).map((t) => ({
|
|
234
|
-
...t,
|
|
235
|
-
id: t.id || `temp-${Math.random().toString(36).substr(2, 9)}`
|
|
236
|
-
})),
|
|
237
|
-
memo: G,
|
|
238
|
-
footer: H,
|
|
239
|
-
bank_account_id: J,
|
|
240
|
-
bank_account_type: e.bank_account_type,
|
|
241
|
-
tax_mode: K,
|
|
242
|
-
purchase_order: X || void 0,
|
|
243
|
-
tax_rate: Q
|
|
244
|
-
}, counterpart: W, currency: c, entityData: k, address: Z, paymentTerms: U }) })
|
|
245
|
-
] }) }),
|
|
246
|
-
x && /* @__PURE__ */ r(Le, { open: x, onClose: () => p(!1), onCreated: () => p(!1) }),
|
|
247
|
-
/* @__PURE__ */ r(he, { open: q, title: n._("Cancel without saving?"), message: n._("There are unsaved changes. If you leave, they will be lost."), confirmLabel: n._("Yes"), cancelLabel: n._("No"), onClose: () => b(!1), onConfirm: m })
|
|
248
|
-
] });
|
|
16
|
+
const r = n(null), a = n(null), {
|
|
17
|
+
data: c
|
|
18
|
+
} = h(), f = p(r, a, {
|
|
19
|
+
containerPadding: 96,
|
|
20
|
+
minScale: 1,
|
|
21
|
+
initialDelay: 100,
|
|
22
|
+
useAdaptiveDimensions: !0
|
|
23
|
+
// Enable DPI-aware A4 dimensions
|
|
24
|
+
}), u = {
|
|
25
|
+
address: i,
|
|
26
|
+
counterpart: s,
|
|
27
|
+
currency: o,
|
|
28
|
+
invoiceData: w,
|
|
29
|
+
entityData: m,
|
|
30
|
+
paymentTerms: l,
|
|
31
|
+
measureUnits: c?.data || []
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ t("div", { ref: r, className: e(
|
|
34
|
+
// Container layout
|
|
35
|
+
"ttw:flex ttw:overflow-auto ttw:relative",
|
|
36
|
+
"ttw:w-full ttw:h-full ttw:min-h-0",
|
|
37
|
+
"ttw:p-12",
|
|
38
|
+
// 48px padding
|
|
39
|
+
"ttw:bg-gradient-to-br ttw:from-slate-50 ttw:to-slate-200",
|
|
40
|
+
// Force pixel-snapping for zoom stability
|
|
41
|
+
"ttw:[transform:translateZ(0)]"
|
|
42
|
+
), style: {
|
|
43
|
+
justifyContent: "safe center",
|
|
44
|
+
alignItems: "safe center"
|
|
45
|
+
}, children: /* @__PURE__ */ t(v, { ratio: 21 / 29.7, className: e(
|
|
46
|
+
// Maximum width constraints for A4
|
|
47
|
+
"ttw:max-w-[21cm]",
|
|
48
|
+
// Minimum dimensions for proper scaling (A4: 794×1123px = 21cm × 29.7cm)
|
|
49
|
+
"ttw:min-w-[794px] ttw:min-h-[1123px]",
|
|
50
|
+
// Responsive scaling with our adaptive scale hook
|
|
51
|
+
"ttw:transition-transform ttw:duration-200 ttw:ease-in-out",
|
|
52
|
+
// Respect reduced motion preferences
|
|
53
|
+
"motion-reduce:ttw:transition-none",
|
|
54
|
+
"ttw:origin-center",
|
|
55
|
+
// Prevent unwanted shrinking and layout shifts
|
|
56
|
+
"ttw:shrink-0",
|
|
57
|
+
// CSS containment for layout stability
|
|
58
|
+
'ttw:[contain:"layout style"]'
|
|
59
|
+
), style: {
|
|
60
|
+
// Dynamic transform must stay as inline style due to variable
|
|
61
|
+
transform: `scale(${f})`
|
|
62
|
+
}, children: /* @__PURE__ */ t("div", { ref: a, className: e(
|
|
63
|
+
// Full size within aspect ratio container
|
|
64
|
+
"ttw:w-full ttw:h-full",
|
|
65
|
+
"ttw:bg-white ttw:shrink-0",
|
|
66
|
+
"ttw:shadow-md",
|
|
67
|
+
"ttw:overflow-hidden"
|
|
68
|
+
), children: /* @__PURE__ */ t(d, { ...u }) }) }) });
|
|
249
69
|
};
|
|
250
70
|
export {
|
|
251
|
-
|
|
71
|
+
I as InvoicePreview
|
|
252
72
|
};
|