@tesouro/embedded-components-react 0.2.241 → 0.2.242
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/monite-sdk.js +55 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +4 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +7 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +445 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +2 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +38 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +76 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +62 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +48 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +110 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +5 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +98 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +206 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +155 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +51 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +299 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +24 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +74 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +90 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +13 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +21 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +50 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +48 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +169 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +0 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +82 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +29 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +1 -598
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +598 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +1 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +167 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +18 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +62 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +120 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +6 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +7 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +53 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +71 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +28 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +1 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +3 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +61 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +20 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +4 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +113 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +9 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +42 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +6 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +425 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +2 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +187 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +53 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +60 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +83 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +0 -347
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +1 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +88 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +169 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +206 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +0 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +255 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +32 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +8 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +59 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +35 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +151 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +69 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +14 -218
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +214 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +76 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +103 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +163 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +5 -313
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +310 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +83 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +190 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +28 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +84 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +132 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +37 -447
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +447 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +16 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +78 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +142 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +34 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +62 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +67 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +140 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +58 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +85 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +18 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +23 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +156 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +8 -463
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +443 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +51 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +39 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +142 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +112 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +20 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +18 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +149 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +136 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +31 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +115 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +10 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +50 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +34 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +86 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +1 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +0 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +129 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +105 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +48 -779
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +780 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +84 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +105 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +14 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +163 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +204 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +146 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +95 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +13 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +186 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +219 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +32 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +168 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +66 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +104 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +72 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +144 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +91 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +66 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +27 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/package.json +1 -1
|
@@ -1,785 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { useMoniteContext as t } from "./index47.js";
|
|
4
|
-
import { useCounterpartById as n } from "./index48.js";
|
|
5
|
-
import { getCounterpartEmail as r } from "./index53.js";
|
|
6
|
-
import { useCurrencies as i } from "./index63.js";
|
|
7
|
-
import { cn as a } from "./index49.js";
|
|
8
|
-
import { Button as o } from "./index56.js";
|
|
9
|
-
import { useCounterpartAddresses as ee } from "./index126.js";
|
|
10
|
-
import { useMyEntity as s } from "./index133.js";
|
|
11
|
-
import { useGetReceivableById as te } from "./index137.js";
|
|
12
|
-
import "./index138.js";
|
|
13
|
-
import { useComponentSettings as ne } from "./index187.js";
|
|
1
|
+
import { useCurrencies as e } from "./index63.js";
|
|
14
2
|
import "./index189.js";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import "./
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { useSelectableBankAccounts as ue } from "./index121.js";
|
|
24
|
-
import { useGetPaymentReminderById as de } from "./index142.js";
|
|
25
|
-
import { useGetOverdueReminderById as fe } from "./index145.js";
|
|
26
|
-
import { useDuplicateInvoice as pe } from "./index148.js";
|
|
27
|
-
import { useGetPaymentRecords as me } from "./index152.js";
|
|
28
|
-
import { useGetReceivablePDFById as he } from "./index154.js";
|
|
29
|
-
import { useGetRecurrenceById as ge } from "./index164.js";
|
|
30
|
-
import { useGetInvoiceRequiredFields as _e } from "./index166.js";
|
|
31
|
-
import { Badge as f } from "./index195.js";
|
|
32
|
-
import { buildInvoiceDetailsView as ve } from "./index216.js";
|
|
33
|
-
import { preventTooltipFocusOpen as ye } from "./index217.js";
|
|
34
|
-
import { buildEditInvoiceFormValues as be } from "./index223.js";
|
|
35
|
-
import { isPrimaryActionDisabled as xe } from "./index224.js";
|
|
36
|
-
import "./index225.js";
|
|
37
|
-
import { InvoiceStatusChip as Se } from "./index226.js";
|
|
38
|
-
import { NotFound as Ce } from "./index227.js";
|
|
39
|
-
import { CounterpartDetails as we } from "./index228.js";
|
|
40
|
-
import { AccessRestriction as Te } from "./index235.js";
|
|
41
|
-
import "./index412.js";
|
|
42
|
-
import { ACTION_ICON as Ee, STATUS_ICON as De, amountValueToneClass as Oe, headerIconButtonClass as p } from "./index433.js";
|
|
43
|
-
import { InvoiceRecurrenceStatusChip as ke } from "./index434.js";
|
|
44
|
-
import { useIssueReceivableById as Ae } from "./index445.js";
|
|
45
|
-
import { ActionsModal as je } from "./index506.js";
|
|
46
|
-
import { Accordion as Me, AccordionContent as m, AccordionItem as h, AccordionTrigger as g } from "./index497.js";
|
|
47
|
-
import { Tooltip as _, TooltipContent as v, TooltipProvider as Ne, TooltipTrigger as y } from "./index498.js";
|
|
48
|
-
import { usePauseRecurrence as Pe } from "./index499.js";
|
|
49
|
-
import { useResumeRecurrence as Fe } from "./index500.js";
|
|
50
|
-
import { InvoiceDetailsAmountCell as Ie } from "./index501.js";
|
|
51
|
-
import { InvoiceDetailsAttachments as Le } from "./index502.js";
|
|
52
|
-
import { InvoiceDetailsCloseButton as b } from "./index503.js";
|
|
53
|
-
import { EditInvoiceDetails as Re } from "./index507.js";
|
|
54
|
-
import { InvoiceDetailsInfoRow as x } from "./index508.js";
|
|
55
|
-
import { InvoiceDetailsCustomerRow as ze } from "./index509.js";
|
|
56
|
-
import { InvoiceCancelModal as Be } from "./index511.js";
|
|
57
|
-
import { InvoiceDeleteModal as Ve } from "./index512.js";
|
|
58
|
-
import { InvoiceDetailsTabScheduledInvoices as He } from "./index514.js";
|
|
59
|
-
import { MarkAsUncollectibleModal as Ue } from "./index515.js";
|
|
60
|
-
import { InvoiceDetailsOverflowMenu as We } from "./index516.js";
|
|
61
|
-
import { RecordManualPaymentModal as Ge } from "./index523.js";
|
|
62
|
-
import { RecurrenceCancelModal as Ke } from "./index524.js";
|
|
63
|
-
import { useCallback as S, useMemo as C, useState as w } from "react";
|
|
64
|
-
import { ChevronLeft as qe, CircleAlert as Je, Eye as Ye, Repeat as T } from "lucide-react";
|
|
65
|
-
import { Fragment as E, jsx as D, jsxs as O } from "@emotion/react/jsx-runtime";
|
|
66
|
-
import { toast as k } from "react-hot-toast";
|
|
67
|
-
import { useLingui as Xe } from "@lingui/react";
|
|
3
|
+
import { ConfirmationModal as t } from "./index59.js";
|
|
4
|
+
import "./index60.js";
|
|
5
|
+
import { useGetRecurrenceById as n } from "./index164.js";
|
|
6
|
+
import { useCancelRecurrence as r } from "./index165.js";
|
|
7
|
+
import i from "deep-eql";
|
|
8
|
+
import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { Trans as s, useLingui as c } from "@lingui/react";
|
|
10
|
+
import { usePreviousDistinct as l } from "react-use";
|
|
68
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js
|
|
69
|
-
var
|
|
70
|
-
let { i18n:
|
|
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
|
-
yt,
|
|
101
|
-
bt,
|
|
102
|
-
xt,
|
|
103
|
-
Tt,
|
|
104
|
-
M,
|
|
105
|
-
nt,
|
|
106
|
-
et
|
|
107
|
-
]), Z = (e) => {
|
|
108
|
-
switch (e) {
|
|
109
|
-
case "edit": return M._("Edit");
|
|
110
|
-
case "issue": return M._("Issue");
|
|
111
|
-
case "issueAndSend": return M._("Issue and send");
|
|
112
|
-
case "recordPayment": return M._("Record payment");
|
|
113
|
-
case "send": return M._("Resend");
|
|
114
|
-
case "clone": return M._("Duplicate");
|
|
115
|
-
case "cancel": return M._("Cancel invoice");
|
|
116
|
-
case "delete": return M._("Delete");
|
|
117
|
-
case "markUncollectible": return M._("Mark as uncollectible");
|
|
118
|
-
case "pauseRecurrence": return M._("Pause series");
|
|
119
|
-
case "resumeRecurrence": return M._("Resume series");
|
|
120
|
-
case "cancelRecurrence": return M._("Cancel series");
|
|
121
|
-
}
|
|
122
|
-
}, Q = S((e) => {
|
|
123
|
-
J ? e() : k.error(M._("You don't have permission to update this document. Please, contact your system administrator for details."));
|
|
124
|
-
}, [J, M]), Yt = S((e) => {
|
|
125
|
-
W(e), U(!0);
|
|
126
|
-
}, []), Xt = S(() => {
|
|
127
|
-
if (!P || P.type !== "invoice") return !1;
|
|
128
|
-
let e = be(P, V);
|
|
129
|
-
return ce(M, N, zt).safeParse(e).success;
|
|
130
|
-
}, [
|
|
131
|
-
P,
|
|
132
|
-
V,
|
|
133
|
-
M,
|
|
134
|
-
N,
|
|
135
|
-
zt
|
|
136
|
-
]), $ = S((e) => {
|
|
137
|
-
if (!Xt()) return Yt(e), !1;
|
|
138
|
-
if (B) return !1;
|
|
139
|
-
if (pt && !st?.tax_id) return k.error(M._("Set your organization's Tax ID to issue invoice")), !1;
|
|
140
|
-
if (!mt) return !0;
|
|
141
|
-
let t = r(L), n = L?.reminders_enabled;
|
|
142
|
-
return !n && t ? (k.error(M._("Payment reminders are disabled for this customer. Please enable them in the customer details or turn them off.")), !1) : !t && n ? (k.error(M._("No email address is added for the selected customer. Please add it to the customer details or turn off the reminders.")), !1) : !n && !t ? (k.error(M._("Reminders are disabled for this customer, and no email address has been added for it. Please update the details or turn off reminders.")), !1) : !0;
|
|
143
|
-
}, [
|
|
144
|
-
L,
|
|
145
|
-
st?.tax_id,
|
|
146
|
-
mt,
|
|
147
|
-
M,
|
|
148
|
-
pt,
|
|
149
|
-
B,
|
|
150
|
-
Xt,
|
|
151
|
-
Yt
|
|
152
|
-
]), Zt = S(async () => {
|
|
153
|
-
if ($("issue")) try {
|
|
154
|
-
await Y({ path: { receivable_id: c } });
|
|
155
|
-
} catch {
|
|
156
|
-
k.error(M._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
|
|
157
|
-
}
|
|
158
|
-
}, [
|
|
159
|
-
$,
|
|
160
|
-
Y,
|
|
161
|
-
c,
|
|
162
|
-
M
|
|
163
|
-
]), Qt = S(async () => {
|
|
164
|
-
if (P?.counterpart_id && !R) {
|
|
165
|
-
if (!z) {
|
|
166
|
-
k.error(M._("This customer has no email address. Add one in the customer details to send the invoice."));
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
if ($("issueAndSend")) {
|
|
170
|
-
try {
|
|
171
|
-
await Y({ path: { receivable_id: c } });
|
|
172
|
-
} catch {
|
|
173
|
-
k.error(M._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
K({
|
|
177
|
-
action: "issue",
|
|
178
|
-
inlineLineItems: [],
|
|
179
|
-
isEditFlow: !1,
|
|
180
|
-
issue: {
|
|
181
|
-
receivableId: c,
|
|
182
|
-
counterpartId: P.counterpart_id
|
|
12
|
+
var u = ({ invoice: u, open: d, onClose: f }) => {
|
|
13
|
+
let { i18n: p } = c(), { formatCurrencyToDisplay: m } = e(), h = u?.recurrence_id ?? "", { mutate: g, isPending: _ } = r(h, u.id), { data: v } = n(h), y = l(v, i), b = (y?.status === "active" && v?.status === "canceled" ? y : v)?.iterations?.filter(({ status: e }) => e === "pending")?.length ?? 0, x = u && b !== void 0 ? m(u.total_amount_with_credit_notes * b, u.currency) : void 0;
|
|
14
|
+
return /* @__PURE__ */ o(t, {
|
|
15
|
+
open: d && !!u.id,
|
|
16
|
+
title: p._("Cancel Recurring Invoice"),
|
|
17
|
+
confirmLabel: p._("Cancel recurrence"),
|
|
18
|
+
cancelLabel: p._("Close"),
|
|
19
|
+
onClose: f,
|
|
20
|
+
onConfirm: () => g(void 0, { onSuccess: f }),
|
|
21
|
+
isLoading: _,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ a("span", {
|
|
24
|
+
className: "ttw:inline-block",
|
|
25
|
+
children: p._("Are you sure you want to cancel this recurring invoice?")
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ a("span", {
|
|
28
|
+
className: "ttw:inline-block",
|
|
29
|
+
children: p._("All future iterations of this invoice will be canceled.")
|
|
30
|
+
}),
|
|
31
|
+
u && b !== void 0 && /* @__PURE__ */ a("span", {
|
|
32
|
+
className: "ttw:inline-block",
|
|
33
|
+
children: /* @__PURE__ */ a(s, {
|
|
34
|
+
id: "ZYrFPL",
|
|
35
|
+
values: {
|
|
36
|
+
0: b === 1 ? p._("invoice") : p._("invoices"),
|
|
37
|
+
totalPendingInvoices: b,
|
|
38
|
+
pendingInvoicesTotalAmountWithCreditNotes: x
|
|
39
|
+
},
|
|
40
|
+
components: {
|
|
41
|
+
0: /* @__PURE__ */ a("strong", {}),
|
|
42
|
+
1: /* @__PURE__ */ a("strong", {})
|
|
183
43
|
}
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}, [
|
|
188
|
-
P?.counterpart_id,
|
|
189
|
-
z,
|
|
190
|
-
R,
|
|
191
|
-
$,
|
|
192
|
-
Y,
|
|
193
|
-
c,
|
|
194
|
-
M
|
|
195
|
-
]), $t = S((e) => {
|
|
196
|
-
switch (e) {
|
|
197
|
-
case "edit": return Q(() => {
|
|
198
|
-
W("edit"), U(!0);
|
|
199
|
-
});
|
|
200
|
-
case "issue": return Q(Zt);
|
|
201
|
-
case "issueAndSend": return Q(Qt);
|
|
202
|
-
case "send": return Q(() => {
|
|
203
|
-
if (!R) {
|
|
204
|
-
if (!z) {
|
|
205
|
-
k.error(M._("This customer has no email address. Add one in the customer details to send the invoice."));
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
P?.counterpart_id && K({
|
|
209
|
-
action: "issue",
|
|
210
|
-
inlineLineItems: [],
|
|
211
|
-
isEditFlow: !0,
|
|
212
|
-
issue: {
|
|
213
|
-
receivableId: c,
|
|
214
|
-
counterpartId: P.counterpart_id
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
case "clone": return Q(() => Vt({ path: { receivable_id: c } }));
|
|
220
|
-
case "cancel": return Q(() => Ot(!0));
|
|
221
|
-
case "delete": return Q(() => At(!0));
|
|
222
|
-
case "markUncollectible": return Q(() => Mt(!0));
|
|
223
|
-
case "pauseRecurrence": return Q(() => Ut(void 0));
|
|
224
|
-
case "resumeRecurrence": return Q(() => Gt(void 0));
|
|
225
|
-
case "cancelRecurrence": return Q(() => Pt(!0));
|
|
226
|
-
case "recordPayment": return;
|
|
227
|
-
}
|
|
228
|
-
}, [
|
|
229
|
-
Q,
|
|
230
|
-
Zt,
|
|
231
|
-
Qt,
|
|
232
|
-
z,
|
|
233
|
-
R,
|
|
234
|
-
P?.counterpart_id,
|
|
235
|
-
Vt,
|
|
236
|
-
c,
|
|
237
|
-
Ut,
|
|
238
|
-
Gt,
|
|
239
|
-
M
|
|
240
|
-
]);
|
|
241
|
-
return /* @__PURE__ */ O(E, { children: [H && P && /* @__PURE__ */ D(Re, {
|
|
242
|
-
isOpen: H,
|
|
243
|
-
invoice: P,
|
|
244
|
-
issueIntent: Et !== "edit",
|
|
245
|
-
embeddedBankName: $e,
|
|
246
|
-
onUpdated: (e, t) => {
|
|
247
|
-
U(!1);
|
|
248
|
-
let n = Et !== "issue";
|
|
249
|
-
W("edit"), rt?.onUpdate?.(e.id, e), t.issued && n && t.hasCustomerEmail ? K({
|
|
250
|
-
action: "issue",
|
|
251
|
-
isEditFlow: !1,
|
|
252
|
-
inlineLineItems: t.inlineLineItems,
|
|
253
|
-
issue: {
|
|
254
|
-
receivableId: e.id,
|
|
255
|
-
counterpartId: t.counterpartId
|
|
256
|
-
}
|
|
257
|
-
}) : t.issued && t.inlineLineItems.length > 0 ? K({
|
|
258
|
-
action: "issue",
|
|
259
|
-
isEditFlow: !1,
|
|
260
|
-
inlineLineItems: t.inlineLineItems
|
|
261
|
-
}) : t.inlineLineItems.length > 0 && K({
|
|
262
|
-
action: t.activatedRecurrence ? "recurrence" : "update",
|
|
263
|
-
isEditFlow: !0,
|
|
264
|
-
inlineLineItems: t.inlineLineItems
|
|
265
|
-
});
|
|
266
|
-
},
|
|
267
|
-
onCancel: () => {
|
|
268
|
-
U(!1), W("edit");
|
|
269
|
-
}
|
|
270
|
-
}), /* @__PURE__ */ D(re, {
|
|
271
|
-
open: qt,
|
|
272
|
-
modal: !1,
|
|
273
|
-
onOpenChange: A,
|
|
274
|
-
children: /* @__PURE__ */ O(ie, {
|
|
275
|
-
showCloseButton: !1,
|
|
276
|
-
layer: "under-dialogs",
|
|
277
|
-
className: "ttw:overflow-y-auto ttw:p-0",
|
|
278
|
-
children: [
|
|
279
|
-
/* @__PURE__ */ D(ae, {
|
|
280
|
-
hidden: !0,
|
|
281
|
-
children: M._("Invoice details")
|
|
282
|
-
}),
|
|
283
|
-
Jt ? null : /* @__PURE__ */ D(b, {
|
|
284
|
-
label: M._("Close"),
|
|
285
|
-
onClose: A,
|
|
286
|
-
className: a(p, "ttw:absolute ttw:right-4 ttw:top-4 ttw:z-10")
|
|
287
|
-
}),
|
|
288
|
-
(() => {
|
|
289
|
-
if (it || _t) return /* @__PURE__ */ O("div", {
|
|
290
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-center ttw:h-full",
|
|
291
|
-
children: [/* @__PURE__ */ D(u, {
|
|
292
|
-
hidden: !0,
|
|
293
|
-
children: M._("Loading invoice details")
|
|
294
|
-
}), /* @__PURE__ */ D(l, {})]
|
|
295
|
-
});
|
|
296
|
-
if (!Lt) return /* @__PURE__ */ O("div", {
|
|
297
|
-
className: "ttw:w-3/4 ttw:m-auto",
|
|
298
|
-
children: [/* @__PURE__ */ D(u, {
|
|
299
|
-
hidden: !0,
|
|
300
|
-
children: M._("Access restricted")
|
|
301
|
-
}), /* @__PURE__ */ D(Te, {})]
|
|
302
|
-
});
|
|
303
|
-
if (P && P.type !== "invoice") return /* @__PURE__ */ O("div", {
|
|
304
|
-
className: "ttw:w-3/4 ttw:m-auto",
|
|
305
|
-
children: [/* @__PURE__ */ D(u, {
|
|
306
|
-
hidden: !0,
|
|
307
|
-
children: M._("Receivable type not supported")
|
|
308
|
-
}), /* @__PURE__ */ D(Ce, {
|
|
309
|
-
title: M._("Receivable type not supported"),
|
|
310
|
-
description: M._("Receivable type {type} is not supported. Only invoice is supported.", { type: P.type })
|
|
311
|
-
})]
|
|
312
|
-
});
|
|
313
|
-
if (!P || !X) return /* @__PURE__ */ O("div", {
|
|
314
|
-
className: "ttw:w-3/4 ttw:m-auto",
|
|
315
|
-
children: [/* @__PURE__ */ D(u, {
|
|
316
|
-
hidden: !0,
|
|
317
|
-
children: M._("Invoice not found")
|
|
318
|
-
}), /* @__PURE__ */ D(Ce, {
|
|
319
|
-
title: M._("Invoice not found"),
|
|
320
|
-
description: M._("There is no invoice for the provided id: {invoiceId}", { invoiceId: c })
|
|
321
|
-
})]
|
|
322
|
-
});
|
|
323
|
-
let e = De[X.status], t = X.amountTone === "danger", n = X.recurringSeries, r = !!n, i = P.counterpart_name, ee = P.counterpart_id && Rt ? () => It(!0) : void 0, s = X.primaryActions.length > 0 ? /* @__PURE__ */ D("div", {
|
|
324
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3",
|
|
325
|
-
children: X.primaryActions.map((e, t) => {
|
|
326
|
-
let n = Ee[e], r = t === X.primaryActions.length - 1 ? "default" : "outline";
|
|
327
|
-
return e === "recordPayment" && P.type === "invoice" ? /* @__PURE__ */ D(Ge, {
|
|
328
|
-
invoice: P,
|
|
329
|
-
children: ({ openModal: t }) => /* @__PURE__ */ O(o, {
|
|
330
|
-
type: "button",
|
|
331
|
-
size: "sm",
|
|
332
|
-
variant: r,
|
|
333
|
-
onClick: () => Q(t),
|
|
334
|
-
children: [/* @__PURE__ */ D(n, { className: "ttw:size-4" }), Z(e)]
|
|
335
|
-
})
|
|
336
|
-
}, e) : /* @__PURE__ */ O(o, {
|
|
337
|
-
type: "button",
|
|
338
|
-
size: "sm",
|
|
339
|
-
variant: r,
|
|
340
|
-
disabled: xe(e, {
|
|
341
|
-
isIssuing: Bt,
|
|
342
|
-
isIssuePreflightLoading: B,
|
|
343
|
-
isCounterpartLoading: R
|
|
344
|
-
}),
|
|
345
|
-
onClick: () => $t(e),
|
|
346
|
-
children: [/* @__PURE__ */ D(n, { className: "ttw:size-4" }), Z(e)]
|
|
347
|
-
}, e);
|
|
348
|
-
})
|
|
349
|
-
}) : null;
|
|
350
|
-
return /* @__PURE__ */ O(E, { children: [
|
|
351
|
-
X.seriesLink ? /* @__PURE__ */ D("div", {
|
|
352
|
-
className: "ttw:border-b ttw:border-border ttw:px-6 ttw:py-3",
|
|
353
|
-
children: /* @__PURE__ */ O("button", {
|
|
354
|
-
type: "button",
|
|
355
|
-
onClick: () => X.seriesLink && j?.(X.seriesLink.invoiceId),
|
|
356
|
-
className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-primary ttw:hover:underline",
|
|
357
|
-
children: [/* @__PURE__ */ D(qe, {
|
|
358
|
-
className: "ttw:size-4",
|
|
359
|
-
"aria-hidden": "true"
|
|
360
|
-
}), M._("Back to {title} recurring series", { title: X.seriesLink.title })]
|
|
361
|
-
})
|
|
362
|
-
}) : null,
|
|
363
|
-
/* @__PURE__ */ O(oe, {
|
|
364
|
-
className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-2 ttw:space-y-0 ttw:px-6 ttw:py-4",
|
|
365
|
-
children: [/* @__PURE__ */ O("div", {
|
|
366
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
367
|
-
children: [/* @__PURE__ */ D(se, {
|
|
368
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
369
|
-
children: X.title
|
|
370
|
-
}), X.subtitle ? /* @__PURE__ */ D(d, {
|
|
371
|
-
variant: "body2",
|
|
372
|
-
color: "muted",
|
|
373
|
-
children: X.subtitle
|
|
374
|
-
}) : null]
|
|
375
|
-
}), /* @__PURE__ */ D(Ne, {
|
|
376
|
-
delayDuration: 500,
|
|
377
|
-
children: /* @__PURE__ */ O("div", {
|
|
378
|
-
className: "ttw:flex ttw:items-center ttw:gap-1.5",
|
|
379
|
-
children: [
|
|
380
|
-
gt ? /* @__PURE__ */ O(_, { children: [/* @__PURE__ */ D(y, {
|
|
381
|
-
asChild: !0,
|
|
382
|
-
onFocus: ye,
|
|
383
|
-
children: /* @__PURE__ */ D(o, {
|
|
384
|
-
asChild: !0,
|
|
385
|
-
variant: "ghost",
|
|
386
|
-
size: "icon",
|
|
387
|
-
className: p,
|
|
388
|
-
children: /* @__PURE__ */ D("a", {
|
|
389
|
-
href: gt,
|
|
390
|
-
target: "_blank",
|
|
391
|
-
rel: "noreferrer",
|
|
392
|
-
"aria-label": M._("View PDF"),
|
|
393
|
-
children: /* @__PURE__ */ D(Ye, { className: "ttw:size-4" })
|
|
394
|
-
})
|
|
395
|
-
})
|
|
396
|
-
}), /* @__PURE__ */ D(v, { children: M._("View PDF") })] }) : null,
|
|
397
|
-
X.overflowActions.length > 0 ? /* @__PURE__ */ D(We, {
|
|
398
|
-
actions: X.overflowActions,
|
|
399
|
-
triggerLabel: M._("More actions"),
|
|
400
|
-
getActionLabel: Z,
|
|
401
|
-
onSelect: $t,
|
|
402
|
-
isActionDisabled: (e) => e === "clone" && Ht || e === "pauseRecurrence" && Wt || e === "resumeRecurrence" && Kt || e === "send" && R,
|
|
403
|
-
className: p
|
|
404
|
-
}) : null,
|
|
405
|
-
/* @__PURE__ */ O(_, { children: [/* @__PURE__ */ D(y, {
|
|
406
|
-
asChild: !0,
|
|
407
|
-
onFocus: ye,
|
|
408
|
-
children: /* @__PURE__ */ D(b, {
|
|
409
|
-
label: M._("Close"),
|
|
410
|
-
onClose: A,
|
|
411
|
-
className: p
|
|
412
|
-
})
|
|
413
|
-
}), /* @__PURE__ */ D(v, { children: M._("Close") })] })
|
|
414
|
-
]
|
|
415
|
-
})
|
|
416
|
-
})]
|
|
417
|
-
}),
|
|
418
|
-
/* @__PURE__ */ O("div", {
|
|
419
|
-
className: "ttw:flex ttw:flex-col",
|
|
420
|
-
children: [/* @__PURE__ */ D("div", {
|
|
421
|
-
className: "ttw:px-6",
|
|
422
|
-
children: r && n ? /* @__PURE__ */ O("div", {
|
|
423
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-violet-50 ttw:p-4",
|
|
424
|
-
children: [
|
|
425
|
-
/* @__PURE__ */ O("div", {
|
|
426
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
427
|
-
children: [/* @__PURE__ */ D(d, {
|
|
428
|
-
variant: "caption",
|
|
429
|
-
color: "muted",
|
|
430
|
-
children: M._("Recurring amount")
|
|
431
|
-
}), /* @__PURE__ */ O("div", {
|
|
432
|
-
className: "ttw:flex ttw:items-baseline ttw:gap-1.5",
|
|
433
|
-
children: [/* @__PURE__ */ D(d, {
|
|
434
|
-
component: "span",
|
|
435
|
-
variant: "h3",
|
|
436
|
-
className: Oe[X.amountTone],
|
|
437
|
-
children: n.amountLabel
|
|
438
|
-
}), /* @__PURE__ */ D(d, {
|
|
439
|
-
component: "span",
|
|
440
|
-
variant: "body2",
|
|
441
|
-
color: "muted",
|
|
442
|
-
children: n.amountPeriodLabel
|
|
443
|
-
})]
|
|
444
|
-
})]
|
|
445
|
-
}),
|
|
446
|
-
/* @__PURE__ */ O("div", {
|
|
447
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
448
|
-
children: [/* @__PURE__ */ O(f, {
|
|
449
|
-
variant: "outline",
|
|
450
|
-
className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
|
|
451
|
-
children: [/* @__PURE__ */ D(T, { className: "ttw:size-3" }), M._("Recurring")]
|
|
452
|
-
}), /* @__PURE__ */ D(ke, {
|
|
453
|
-
status: n.status,
|
|
454
|
-
showIcon: !0
|
|
455
|
-
})]
|
|
456
|
-
}),
|
|
457
|
-
/* @__PURE__ */ O("div", {
|
|
458
|
-
className: "ttw:flex ttw:gap-12",
|
|
459
|
-
children: [/* @__PURE__ */ O("div", {
|
|
460
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
461
|
-
children: [/* @__PURE__ */ D(d, {
|
|
462
|
-
variant: "caption",
|
|
463
|
-
color: "muted",
|
|
464
|
-
children: M._("Starts on")
|
|
465
|
-
}), /* @__PURE__ */ D(d, {
|
|
466
|
-
component: "span",
|
|
467
|
-
variant: "body2",
|
|
468
|
-
children: n.startsOnLabel
|
|
469
|
-
})]
|
|
470
|
-
}), /* @__PURE__ */ O("div", {
|
|
471
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
472
|
-
children: [/* @__PURE__ */ D(d, {
|
|
473
|
-
variant: "caption",
|
|
474
|
-
color: "muted",
|
|
475
|
-
children: M._("Ends on")
|
|
476
|
-
}), /* @__PURE__ */ D(d, {
|
|
477
|
-
component: "span",
|
|
478
|
-
variant: "body2",
|
|
479
|
-
children: n.endsOnLabel
|
|
480
|
-
})]
|
|
481
|
-
})]
|
|
482
|
-
}),
|
|
483
|
-
s
|
|
484
|
-
]
|
|
485
|
-
}) : /* @__PURE__ */ O("div", {
|
|
486
|
-
className: a("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", t && "ttw:border ttw:border-red-200"),
|
|
487
|
-
children: [
|
|
488
|
-
/* @__PURE__ */ D("div", {
|
|
489
|
-
className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2",
|
|
490
|
-
children: X.amountRows.map((e) => /* @__PURE__ */ D(Ie, {
|
|
491
|
-
row: e,
|
|
492
|
-
defaultTone: X.amountTone
|
|
493
|
-
}, e.label))
|
|
494
|
-
}),
|
|
495
|
-
/* @__PURE__ */ O("div", {
|
|
496
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
497
|
-
children: [X.overdueLabel ? /* @__PURE__ */ O("span", {
|
|
498
|
-
className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:rounded-full ttw:bg-red-100 ttw:px-2.5 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:text-red-700",
|
|
499
|
-
children: [/* @__PURE__ */ D(Je, { className: "ttw:size-3" }), X.overdueLabel]
|
|
500
|
-
}) : /* @__PURE__ */ D(Se, {
|
|
501
|
-
status: X.status,
|
|
502
|
-
variant: "outline",
|
|
503
|
-
label: X.statusLabel,
|
|
504
|
-
icon: e ? /* @__PURE__ */ D(e, { className: "ttw:size-3" }) : void 0
|
|
505
|
-
}), X.recurring ? /* @__PURE__ */ O(f, {
|
|
506
|
-
variant: "outline",
|
|
507
|
-
className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
|
|
508
|
-
children: [/* @__PURE__ */ D(T, { className: "ttw:size-3" }), M._("Recurring")]
|
|
509
|
-
}) : null]
|
|
510
|
-
}),
|
|
511
|
-
/* @__PURE__ */ O("div", {
|
|
512
|
-
className: "ttw:flex ttw:gap-12",
|
|
513
|
-
children: [/* @__PURE__ */ O("div", {
|
|
514
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
515
|
-
children: [/* @__PURE__ */ D(d, {
|
|
516
|
-
variant: "caption",
|
|
517
|
-
color: "muted",
|
|
518
|
-
children: M._("Invoice date")
|
|
519
|
-
}), /* @__PURE__ */ D(d, {
|
|
520
|
-
component: "span",
|
|
521
|
-
variant: "body2",
|
|
522
|
-
children: X.invoiceDateLabel
|
|
523
|
-
})]
|
|
524
|
-
}), /* @__PURE__ */ O("div", {
|
|
525
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
526
|
-
children: [/* @__PURE__ */ D(d, {
|
|
527
|
-
variant: "caption",
|
|
528
|
-
color: "muted",
|
|
529
|
-
children: X.dueDateCaption
|
|
530
|
-
}), /* @__PURE__ */ D(d, {
|
|
531
|
-
component: "span",
|
|
532
|
-
variant: "body2",
|
|
533
|
-
children: X.dueDateLabel
|
|
534
|
-
})]
|
|
535
|
-
})]
|
|
536
|
-
}),
|
|
537
|
-
s
|
|
538
|
-
]
|
|
539
|
-
})
|
|
540
|
-
}), /* @__PURE__ */ O("div", {
|
|
541
|
-
className: "ttw:px-6",
|
|
542
|
-
children: [
|
|
543
|
-
X.paymentHistory ? /* @__PURE__ */ O("section", {
|
|
544
|
-
"aria-label": M._("Payment history"),
|
|
545
|
-
className: "ttw:border-b ttw:border-border ttw:py-4",
|
|
546
|
-
children: [/* @__PURE__ */ D(d, {
|
|
547
|
-
component: "h3",
|
|
548
|
-
variant: "body2",
|
|
549
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
550
|
-
children: M._("Payment history")
|
|
551
|
-
}), X.paymentHistory.loading ? /* @__PURE__ */ D("div", {
|
|
552
|
-
className: "ttw:flex ttw:py-2",
|
|
553
|
-
children: /* @__PURE__ */ D(l, { className: "ttw:h-5 ttw:w-5 ttw:border-2" })
|
|
554
|
-
}) : X.paymentHistory.rows.length === 0 ? /* @__PURE__ */ D(d, {
|
|
555
|
-
variant: "body2",
|
|
556
|
-
className: X.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground",
|
|
557
|
-
children: M._("You've received no payments yet.")
|
|
558
|
-
}) : /* @__PURE__ */ O("div", {
|
|
559
|
-
className: "ttw:flex ttw:flex-col",
|
|
560
|
-
children: [X.paymentHistory.rows.map((e) => /* @__PURE__ */ O("div", {
|
|
561
|
-
className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2",
|
|
562
|
-
children: [/* @__PURE__ */ D(d, {
|
|
563
|
-
component: "span",
|
|
564
|
-
variant: "body2",
|
|
565
|
-
children: e.dateLabel
|
|
566
|
-
}), /* @__PURE__ */ D(d, {
|
|
567
|
-
component: "span",
|
|
568
|
-
variant: "body2",
|
|
569
|
-
children: e.amountLabel
|
|
570
|
-
})]
|
|
571
|
-
}, e.id)), /* @__PURE__ */ O("div", {
|
|
572
|
-
className: "ttw:flex ttw:justify-between ttw:py-2 ttw:font-medium",
|
|
573
|
-
children: [/* @__PURE__ */ D(d, {
|
|
574
|
-
component: "span",
|
|
575
|
-
variant: "body2",
|
|
576
|
-
children: M._("Total received")
|
|
577
|
-
}), /* @__PURE__ */ D(d, {
|
|
578
|
-
component: "span",
|
|
579
|
-
variant: "body2",
|
|
580
|
-
children: X.paymentHistory.totalLabel
|
|
581
|
-
})]
|
|
582
|
-
})]
|
|
583
|
-
})]
|
|
584
|
-
}) : null,
|
|
585
|
-
i || X.customerContact.length > 0 ? /* @__PURE__ */ O("section", {
|
|
586
|
-
"aria-label": M._("Customer details"),
|
|
587
|
-
className: "ttw:border-b ttw:border-border ttw:py-4",
|
|
588
|
-
children: [/* @__PURE__ */ D(d, {
|
|
589
|
-
component: "h3",
|
|
590
|
-
variant: "body2",
|
|
591
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
592
|
-
children: M._("Customer details")
|
|
593
|
-
}), /* @__PURE__ */ O("div", {
|
|
594
|
-
className: "ttw:flex ttw:flex-col",
|
|
595
|
-
children: [i ? /* @__PURE__ */ D(ze, {
|
|
596
|
-
label: M._("Name"),
|
|
597
|
-
name: i,
|
|
598
|
-
onOpenCounterpart: ee
|
|
599
|
-
}) : null, X.customerContact.map((e) => /* @__PURE__ */ D(x, { ...e }, e.label))]
|
|
600
|
-
})]
|
|
601
|
-
}) : null,
|
|
602
|
-
/* @__PURE__ */ O(Me, {
|
|
603
|
-
type: "multiple",
|
|
604
|
-
defaultValue: ["attachments"],
|
|
605
|
-
className: "ttw:w-full",
|
|
606
|
-
children: [
|
|
607
|
-
/* @__PURE__ */ O(h, {
|
|
608
|
-
value: "billing",
|
|
609
|
-
children: [/* @__PURE__ */ D(g, { children: /* @__PURE__ */ D("span", {
|
|
610
|
-
className: "ttw:group-hover:underline",
|
|
611
|
-
children: M._("Billing details")
|
|
612
|
-
}) }), /* @__PURE__ */ D(m, { children: /* @__PURE__ */ O("div", {
|
|
613
|
-
className: "ttw:flex ttw:flex-col",
|
|
614
|
-
children: [X.billingItems.map((e) => /* @__PURE__ */ D(x, { ...e }, e.label)), X.seriesLink ? /* @__PURE__ */ O("div", {
|
|
615
|
-
className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
|
|
616
|
-
children: [/* @__PURE__ */ D(d, {
|
|
617
|
-
component: "span",
|
|
618
|
-
variant: "body2",
|
|
619
|
-
color: "muted",
|
|
620
|
-
className: "ttw:w-40 ttw:shrink-0",
|
|
621
|
-
children: M._("Recurring series")
|
|
622
|
-
}), /* @__PURE__ */ D("button", {
|
|
623
|
-
type: "button",
|
|
624
|
-
onClick: () => X.seriesLink && j?.(X.seriesLink.invoiceId),
|
|
625
|
-
className: "ttw:text-left ttw:text-primary ttw:hover:underline",
|
|
626
|
-
children: X.seriesLink.title
|
|
627
|
-
})]
|
|
628
|
-
}) : null]
|
|
629
|
-
}) })]
|
|
630
|
-
}),
|
|
631
|
-
r ? null : /* @__PURE__ */ O(h, {
|
|
632
|
-
value: "line-items",
|
|
633
|
-
children: [/* @__PURE__ */ D(g, { children: /* @__PURE__ */ O("span", {
|
|
634
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
635
|
-
children: [/* @__PURE__ */ D("span", {
|
|
636
|
-
className: "ttw:group-hover:underline",
|
|
637
|
-
children: M._("Line items")
|
|
638
|
-
}), /* @__PURE__ */ D(f, {
|
|
639
|
-
variant: "secondary",
|
|
640
|
-
className: "ttw:rounded-full",
|
|
641
|
-
children: X.lineItems.length
|
|
642
|
-
})]
|
|
643
|
-
}) }), /* @__PURE__ */ D(m, { children: /* @__PURE__ */ O("div", {
|
|
644
|
-
className: "ttw:flex ttw:flex-col",
|
|
645
|
-
children: [X.lineItems.length === 0 ? /* @__PURE__ */ D(d, {
|
|
646
|
-
variant: "body2",
|
|
647
|
-
color: "muted",
|
|
648
|
-
className: "ttw:py-3",
|
|
649
|
-
children: M._("No line items.")
|
|
650
|
-
}) : X.lineItems.map((e) => /* @__PURE__ */ O("div", {
|
|
651
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3",
|
|
652
|
-
children: [/* @__PURE__ */ O("div", {
|
|
653
|
-
className: "ttw:flex ttw:flex-col",
|
|
654
|
-
children: [/* @__PURE__ */ D(d, {
|
|
655
|
-
component: "span",
|
|
656
|
-
variant: "body2",
|
|
657
|
-
className: "ttw:font-medium",
|
|
658
|
-
children: e.name
|
|
659
|
-
}), /* @__PURE__ */ D(d, {
|
|
660
|
-
component: "span",
|
|
661
|
-
variant: "body2",
|
|
662
|
-
color: "muted",
|
|
663
|
-
children: M._("{quantity} x {price} ea", {
|
|
664
|
-
quantity: e.quantityLabel,
|
|
665
|
-
price: e.unitPriceLabel
|
|
666
|
-
})
|
|
667
|
-
})]
|
|
668
|
-
}), /* @__PURE__ */ D(d, {
|
|
669
|
-
component: "span",
|
|
670
|
-
variant: "body2",
|
|
671
|
-
children: e.totalLabel
|
|
672
|
-
})]
|
|
673
|
-
}, e.id)), X.lineItemTotals.length > 0 ? /* @__PURE__ */ D("div", {
|
|
674
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3",
|
|
675
|
-
children: X.lineItemTotals.map((e) => /* @__PURE__ */ O("div", {
|
|
676
|
-
className: a("ttw:flex ttw:justify-between", e.emphasis && "ttw:font-medium"),
|
|
677
|
-
children: [/* @__PURE__ */ D(d, {
|
|
678
|
-
component: "span",
|
|
679
|
-
variant: "body2",
|
|
680
|
-
children: e.label
|
|
681
|
-
}), /* @__PURE__ */ D(d, {
|
|
682
|
-
component: "span",
|
|
683
|
-
variant: "body2",
|
|
684
|
-
children: e.value
|
|
685
|
-
})]
|
|
686
|
-
}, e.label))
|
|
687
|
-
}) : null]
|
|
688
|
-
}) })]
|
|
689
|
-
}),
|
|
690
|
-
!r && X.notes ? /* @__PURE__ */ O(h, {
|
|
691
|
-
value: "notes",
|
|
692
|
-
children: [/* @__PURE__ */ D(g, { children: /* @__PURE__ */ O("span", {
|
|
693
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
694
|
-
children: [/* @__PURE__ */ D("span", {
|
|
695
|
-
className: "ttw:group-hover:underline",
|
|
696
|
-
children: M._("Notes")
|
|
697
|
-
}), /* @__PURE__ */ D(f, {
|
|
698
|
-
variant: "secondary",
|
|
699
|
-
className: "ttw:rounded-full",
|
|
700
|
-
children: [X.notes.opening, X.notes.closing].filter(Boolean).length
|
|
701
|
-
})]
|
|
702
|
-
}) }), /* @__PURE__ */ D(m, { children: /* @__PURE__ */ D("div", {
|
|
703
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
704
|
-
children: [{
|
|
705
|
-
label: M._("Opening note to customer"),
|
|
706
|
-
text: X.notes.opening
|
|
707
|
-
}, {
|
|
708
|
-
label: M._("Closing note to customer"),
|
|
709
|
-
text: X.notes.closing
|
|
710
|
-
}].filter((e) => e.text).map((e) => /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D(d, {
|
|
711
|
-
variant: "body2",
|
|
712
|
-
className: "ttw:mb-1 ttw:font-medium",
|
|
713
|
-
children: e.label
|
|
714
|
-
}), /* @__PURE__ */ D(d, {
|
|
715
|
-
variant: "body2",
|
|
716
|
-
color: "muted",
|
|
717
|
-
children: e.text
|
|
718
|
-
})] }, e.label))
|
|
719
|
-
}) })]
|
|
720
|
-
}) : null,
|
|
721
|
-
/* @__PURE__ */ D(Le, { attachments: P.attachments ?? [] })
|
|
722
|
-
]
|
|
723
|
-
}),
|
|
724
|
-
r && n && V ? /* @__PURE__ */ O("section", {
|
|
725
|
-
"aria-label": n.scheduleTitle,
|
|
726
|
-
className: "ttw:border-t ttw:border-border ttw:py-4",
|
|
727
|
-
children: [/* @__PURE__ */ D(d, {
|
|
728
|
-
component: "h3",
|
|
729
|
-
variant: "body2",
|
|
730
|
-
className: "ttw:mb-3 ttw:font-medium",
|
|
731
|
-
children: n.scheduleTitle
|
|
732
|
-
}), /* @__PURE__ */ D(He, {
|
|
733
|
-
invoice: P,
|
|
734
|
-
recurrence: V,
|
|
735
|
-
openInvoiceDetails: j
|
|
736
|
-
})]
|
|
737
|
-
}) : null
|
|
738
|
-
]
|
|
739
|
-
})]
|
|
740
|
-
})
|
|
741
|
-
] });
|
|
742
|
-
})(),
|
|
743
|
-
Dt && /* @__PURE__ */ D(Be, {
|
|
744
|
-
invoiceId: P?.id ?? "",
|
|
745
|
-
open: Dt,
|
|
746
|
-
onClose: () => Ot(!1)
|
|
747
|
-
}),
|
|
748
|
-
kt && /* @__PURE__ */ D(Ve, {
|
|
749
|
-
open: kt,
|
|
750
|
-
onClose: () => At(!1),
|
|
751
|
-
invoiceId: P?.id ?? "",
|
|
752
|
-
documentId: P?.type === "invoice" ? P?.document_id : void 0,
|
|
753
|
-
onDelete: A
|
|
754
|
-
}),
|
|
755
|
-
jt && /* @__PURE__ */ D(Ue, {
|
|
756
|
-
invoiceId: P?.id ?? "",
|
|
757
|
-
open: jt,
|
|
758
|
-
onClose: () => Mt(!1)
|
|
759
|
-
}),
|
|
760
|
-
Nt && P?.type === "invoice" && /* @__PURE__ */ D(Ke, {
|
|
761
|
-
invoice: P,
|
|
762
|
-
open: Nt,
|
|
763
|
-
onClose: () => Pt(!1)
|
|
764
|
-
}),
|
|
765
|
-
Ft && P?.counterpart_id && Rt && /* @__PURE__ */ D(we, {
|
|
766
|
-
counterpartId: P.counterpart_id,
|
|
767
|
-
open: Ft,
|
|
768
|
-
onClose: () => It(!1),
|
|
769
|
-
showActionsMenu: !1,
|
|
770
|
-
customerType: "customer"
|
|
771
|
-
}),
|
|
772
|
-
G && /* @__PURE__ */ D(je, {
|
|
773
|
-
open: !0,
|
|
774
|
-
isEditFlow: G.isEditFlow,
|
|
775
|
-
action: G.action,
|
|
776
|
-
issue: G.issue,
|
|
777
|
-
inlineLineItems: G.inlineLineItems,
|
|
778
|
-
onClose: () => K(null)
|
|
779
44
|
})
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ a("span", {
|
|
47
|
+
className: "ttw:inline-block",
|
|
48
|
+
children: p._("This action can't be undone.")
|
|
49
|
+
})
|
|
50
|
+
]
|
|
51
|
+
});
|
|
783
52
|
};
|
|
784
53
|
//#endregion
|
|
785
|
-
export {
|
|
54
|
+
export { u as RecurrenceCancelModal };
|