@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,30 +1,146 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Input as e } from "./index89.js";
|
|
2
|
+
import { Typography as t } from "./index62.js";
|
|
3
|
+
import { Field as n, FieldContent as r, FieldError as i, FieldLabel as a } from "./index88.js";
|
|
4
|
+
import { Checkbox as o } from "./index99.js";
|
|
5
|
+
import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { useLingui as l } from "@lingui/react";
|
|
7
|
+
import { Controller as u, useFormContext as d } from "react-hook-form";
|
|
2
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js
|
|
3
|
-
var
|
|
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
|
-
|
|
9
|
+
var f = ({ control: f }) => {
|
|
10
|
+
let { i18n: p } = l(), { setValue: m, watch: h } = d(), g = h("min_digits"), _ = h("prefix"), v = h("separator"), y = h("include_date"), b = h("invoice"), x = h("invoice_number");
|
|
11
|
+
function S() {
|
|
12
|
+
return `${b}${v}${_ ? `${_}${v}` : ""}${y ? `${(/* @__PURE__ */ new Date()).getFullYear()}${v}` : ""}${x.toString().padStart(g, "0")}`;
|
|
13
|
+
}
|
|
14
|
+
let C = S();
|
|
15
|
+
return /* @__PURE__ */ c("div", {
|
|
16
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ c("div", {
|
|
19
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:pt-5 ttw:pb-2.5",
|
|
20
|
+
children: [/* @__PURE__ */ s(t, {
|
|
21
|
+
variant: "h3",
|
|
22
|
+
children: p._("Invoice numbering")
|
|
23
|
+
}), /* @__PURE__ */ s(t, {
|
|
24
|
+
variant: "body2",
|
|
25
|
+
color: "muted",
|
|
26
|
+
children: p._("Specify how you want your invoices to be numbered. Changes apply to new invoices only. Existing invoice numbers won't be updated.")
|
|
27
|
+
})]
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ c("div", {
|
|
30
|
+
className: "ttw:flex ttw:flex-col ttw:w-94 ttw:gap-0.5 ttw:p-4 ttw:bg-neutral-200 ttw:rounded-xl",
|
|
31
|
+
children: [/* @__PURE__ */ s(t, {
|
|
32
|
+
variant: "body2",
|
|
33
|
+
color: "muted",
|
|
34
|
+
children: p._("Preview")
|
|
35
|
+
}), /* @__PURE__ */ s(t, {
|
|
36
|
+
variant: "h4",
|
|
37
|
+
className: "ttw:font-medium",
|
|
38
|
+
children: C
|
|
39
|
+
})]
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ c("div", {
|
|
42
|
+
className: "ttw:flex ttw:w-min ttw:gap-2 ttw:p-2",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ s(u, {
|
|
45
|
+
name: "invoice",
|
|
46
|
+
control: f,
|
|
47
|
+
render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ s(n, { children: /* @__PURE__ */ c(r, {
|
|
48
|
+
className: "ttw:grow-0",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ s(a, {
|
|
51
|
+
htmlFor: t.name,
|
|
52
|
+
children: p._("Invoice prefix")
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ s(e, {
|
|
55
|
+
...t,
|
|
56
|
+
id: t.name,
|
|
57
|
+
maxLength: 25,
|
|
58
|
+
"aria-invalid": !!o || void 0,
|
|
59
|
+
className: "ttw:w-29 ttw:min-w-29 ttw:bg-white"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ s(i, { errors: [o] })
|
|
62
|
+
]
|
|
63
|
+
}) })
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ s(u, {
|
|
66
|
+
name: "invoice_number",
|
|
67
|
+
control: f,
|
|
68
|
+
render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ s(n, { children: /* @__PURE__ */ c(r, {
|
|
69
|
+
className: "ttw:grow-0",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ s(a, {
|
|
72
|
+
htmlFor: t.name,
|
|
73
|
+
children: p._("Starting number")
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ s(e, {
|
|
76
|
+
...t,
|
|
77
|
+
id: t.name,
|
|
78
|
+
type: "number",
|
|
79
|
+
"aria-invalid": !!o || void 0,
|
|
80
|
+
onChange: (e) => {
|
|
81
|
+
let n = e.target.value.replace(/^0+(?=\d)/, "");
|
|
82
|
+
t.onChange(Number(n));
|
|
83
|
+
},
|
|
84
|
+
value: t.value.toString().padStart(g, "0"),
|
|
85
|
+
className: "ttw:w-29 ttw:min-w-29 ttw:bg-white"
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ s(i, { errors: [o] })
|
|
88
|
+
]
|
|
89
|
+
}) })
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ s(u, {
|
|
92
|
+
name: "min_digits",
|
|
93
|
+
control: f,
|
|
94
|
+
render: ({ field: t, fieldState: { error: o } }) => /* @__PURE__ */ s(n, { children: /* @__PURE__ */ c(r, {
|
|
95
|
+
className: "ttw:grow-0",
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ s(a, {
|
|
98
|
+
htmlFor: t.name,
|
|
99
|
+
children: p._("Digit count")
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ s(e, {
|
|
102
|
+
...t,
|
|
103
|
+
id: t.name,
|
|
104
|
+
type: "number",
|
|
105
|
+
className: "ttw:bg-white ttw:w-29 ttw:max-w-29",
|
|
106
|
+
onChange: (e) => {
|
|
107
|
+
+e.target.value > 20 ? m("min_digits", 20, { shouldDirty: !0 }) : t.onChange(e);
|
|
108
|
+
},
|
|
109
|
+
"aria-invalid": !!o || void 0
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ s(i, { errors: [o] })
|
|
112
|
+
]
|
|
113
|
+
}) })
|
|
114
|
+
})
|
|
115
|
+
]
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ s("div", {
|
|
118
|
+
className: "ttw:bg-transparent ttw:w-full ttw:p-2",
|
|
119
|
+
children: /* @__PURE__ */ s(u, {
|
|
120
|
+
name: "include_date",
|
|
121
|
+
control: f,
|
|
122
|
+
render: ({ field: e }) => /* @__PURE__ */ s(n, {
|
|
123
|
+
orientation: "horizontal",
|
|
124
|
+
children: /* @__PURE__ */ c(r, {
|
|
125
|
+
className: "ttw:flex-row ttw:items-center",
|
|
126
|
+
children: [/* @__PURE__ */ s(o, {
|
|
127
|
+
id: e.name,
|
|
128
|
+
ref: e.ref,
|
|
129
|
+
checked: e.value ?? !1,
|
|
130
|
+
onCheckedChange: e.onChange,
|
|
131
|
+
onBlur: e.onBlur,
|
|
132
|
+
className: "ttw:bg-white"
|
|
133
|
+
}), /* @__PURE__ */ s(a, {
|
|
134
|
+
htmlFor: e.name,
|
|
135
|
+
className: "ttw:font-normal",
|
|
136
|
+
children: p._("Include the current year in the invoice number prefix")
|
|
137
|
+
})]
|
|
138
|
+
})
|
|
139
|
+
})
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
});
|
|
144
|
+
};
|
|
29
145
|
//#endregion
|
|
30
|
-
export {
|
|
146
|
+
export { f as InvoiceNumbering };
|
|
@@ -1,18 +1,30 @@
|
|
|
1
|
+
import { z as e } from "zod";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
var t = (t, n) => e.object({
|
|
4
|
+
min_digits: e.coerce.number().int().min(1, t._("Can't be less than 1")).max(20, t._("Can't be greater than 20")),
|
|
5
|
+
credit_note: e.string().min(1),
|
|
6
|
+
credit_note_number: e.coerce.number().int().min(n.credit_note, t._("Can't be less than {nextNumbersCredit_note}", { nextNumbersCredit_note: n.credit_note })),
|
|
7
|
+
delivery_note: e.string().min(1),
|
|
8
|
+
delivery_note_number: e.coerce.number().int().min(n.delivery_note, t._("Can't be less than {nextNumbersDelivery_note}", { nextNumbersDelivery_note: n.delivery_note })),
|
|
9
|
+
quote: e.string().min(1),
|
|
10
|
+
quote_number: e.coerce.number().int().min(n.quote, t._("Can't be less than {nextNumbersQuote}", { nextNumbersQuote: n.quote })),
|
|
11
|
+
invoice: e.string().min(1, t._("Invoice prefix is required")).max(25, t._("Invoice prefix should have at most 25 characters")),
|
|
12
|
+
invoice_number: e.coerce.number().int().min(n.invoice, t._("Can't be less than {nextNumbersInvoice}", { nextNumbersInvoice: n.invoice })),
|
|
13
|
+
purchase_order: e.string().min(1),
|
|
14
|
+
purchase_order_number: e.coerce.number().int().min(n.purchase_order, t._("Can't be less than {nextNumbersPurchase_order}", { nextNumbersPurchase_order: n.purchase_order })),
|
|
15
|
+
include_date: e.boolean(),
|
|
16
|
+
prefix: e.string().max(25, t._("Prefix should have at most 25 characters")),
|
|
17
|
+
separator: e.enum([
|
|
18
|
+
"/",
|
|
19
|
+
"-",
|
|
20
|
+
"|",
|
|
21
|
+
".",
|
|
22
|
+
""
|
|
23
|
+
]),
|
|
24
|
+
invoice_bank_display: e.boolean(),
|
|
25
|
+
update_paid_invoices: e.boolean(),
|
|
26
|
+
quote_signature_display: e.boolean(),
|
|
27
|
+
quote_electronic_signature: e.union([e.boolean(), e.string()])
|
|
28
|
+
});
|
|
17
29
|
//#endregion
|
|
18
|
-
export {
|
|
30
|
+
export { t as getInvoiceSettingsFormSchema };
|
|
@@ -1,91 +1,18 @@
|
|
|
1
|
-
import { Button as e } from "./index56.js";
|
|
2
|
-
import { safeZodResolver as t } from "./index379.js";
|
|
3
|
-
import { useDiscardChangesContext as n } from "./index578.js";
|
|
4
|
-
import { usePatchEntitySettings as r } from "./index583.js";
|
|
5
|
-
import { PDFSettings as i } from "./index589.js";
|
|
6
|
-
import { InvoiceNumbering as a } from "./index590.js";
|
|
7
|
-
import { getInvoiceSettingsFormSchema as o } from "./index591.js";
|
|
8
|
-
import { buildDocumentRendering as s, getBankDisplayValue as c } from "./index592.js";
|
|
9
|
-
import { useEffect as l } from "react";
|
|
10
|
-
import { jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
11
|
-
import { useLingui as f } from "@lingui/react";
|
|
12
|
-
import { FormProvider as p, useForm as m } from "react-hook-form";
|
|
13
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js
|
|
14
|
-
var
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
quote_number: _?.quote ?? 1,
|
|
28
|
-
include_date: g?.document_ids?.include_date ?? !1,
|
|
29
|
-
min_digits: g?.document_ids?.min_digits ?? 5,
|
|
30
|
-
prefix: g?.document_ids?.prefix ?? "",
|
|
31
|
-
separator: g?.document_ids?.separator ?? "-",
|
|
32
|
-
invoice_bank_display: c(g?.document_rendering?.invoice, !!(g?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
33
|
-
credit_note_bank_display: c(g?.document_rendering?.credit_note, !!(g?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
34
|
-
quote_bank_display: c(g?.document_rendering?.quote, !!(g?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
35
|
-
update_paid_invoices: g?.generate_paid_invoice_pdf ?? !1,
|
|
36
|
-
quote_signature_display: g?.document_rendering?.quote?.display_signature ?? !1,
|
|
37
|
-
quote_electronic_signature: g?.quote_signature_required ?? !1
|
|
38
|
-
}
|
|
39
|
-
}), { control: w, handleSubmit: T, formState: E, reset: D } = C, O = (e) => {
|
|
40
|
-
let { dirtyFields: t } = E, n = s(g?.document_rendering, e), r = t.invoice_number;
|
|
41
|
-
x({
|
|
42
|
-
path: { entity_id: h },
|
|
43
|
-
body: {
|
|
44
|
-
...g,
|
|
45
|
-
document_ids: {
|
|
46
|
-
document_type_prefix: {
|
|
47
|
-
invoice: e.invoice,
|
|
48
|
-
credit_note: e.credit_note,
|
|
49
|
-
delivery_note: e.delivery_note,
|
|
50
|
-
purchase_order: e.purchase_order,
|
|
51
|
-
quote: e.quote
|
|
52
|
-
},
|
|
53
|
-
...r && { next_number: { invoice: e.invoice_number } },
|
|
54
|
-
min_digits: e.min_digits,
|
|
55
|
-
separator: e.separator,
|
|
56
|
-
include_date: e.include_date,
|
|
57
|
-
prefix: e.prefix || null
|
|
58
|
-
},
|
|
59
|
-
document_rendering: n,
|
|
60
|
-
generate_paid_invoice_pdf: e.update_paid_invoices,
|
|
61
|
-
quote_signature_required: e.quote_electronic_signature === !0 || e.quote_electronic_signature === "true"
|
|
62
|
-
}
|
|
63
|
-
}, { onSuccess: () => {
|
|
64
|
-
D(C.getValues());
|
|
65
|
-
} });
|
|
2
|
+
var e = (e) => !!e && typeof e == "object" && "display_organization_bank_account" in e, t = (t, n) => e(t) ? !!(t.display_organization_bank_account ?? n) : n, n = (t, n) => {
|
|
3
|
+
let r = e(t?.invoice);
|
|
4
|
+
return {
|
|
5
|
+
...t,
|
|
6
|
+
display_organization_bank_account: n.invoice_bank_display,
|
|
7
|
+
quote: {
|
|
8
|
+
...t?.quote,
|
|
9
|
+
display_signature: n.quote_signature_display
|
|
10
|
+
},
|
|
11
|
+
...r ? { invoice: {
|
|
12
|
+
...t?.invoice,
|
|
13
|
+
display_organization_bank_account: n.invoice_bank_display
|
|
14
|
+
} } : {}
|
|
66
15
|
};
|
|
67
|
-
return l(() => {
|
|
68
|
-
b(E?.isDirty);
|
|
69
|
-
}, [E?.isDirty, b]), /* @__PURE__ */ u(p, {
|
|
70
|
-
...C,
|
|
71
|
-
children: /* @__PURE__ */ d("form", {
|
|
72
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
73
|
-
onSubmit: T(O),
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ u(a, { control: w }),
|
|
76
|
-
/* @__PURE__ */ u(i, {
|
|
77
|
-
control: w,
|
|
78
|
-
isDialog: v
|
|
79
|
-
}),
|
|
80
|
-
/* @__PURE__ */ u(e, {
|
|
81
|
-
type: "submit",
|
|
82
|
-
className: "ttw:w-fit",
|
|
83
|
-
disabled: S || !E?.isDirty,
|
|
84
|
-
children: y._("Save changes")
|
|
85
|
-
})
|
|
86
|
-
]
|
|
87
|
-
})
|
|
88
|
-
});
|
|
89
16
|
};
|
|
90
17
|
//#endregion
|
|
91
|
-
export {
|
|
18
|
+
export { n as buildDocumentRendering, t as getBankDisplayValue, e as hasBankDisplay };
|
|
@@ -1,3 +1,91 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
1
|
+
import { Button as e } from "./index56.js";
|
|
2
|
+
import { safeZodResolver as t } from "./index380.js";
|
|
3
|
+
import { useDiscardChangesContext as n } from "./index579.js";
|
|
4
|
+
import { usePatchEntitySettings as r } from "./index584.js";
|
|
5
|
+
import { PDFSettings as i } from "./index590.js";
|
|
6
|
+
import { InvoiceNumbering as a } from "./index591.js";
|
|
7
|
+
import { getInvoiceSettingsFormSchema as o } from "./index592.js";
|
|
8
|
+
import { buildDocumentRendering as s, getBankDisplayValue as c } from "./index593.js";
|
|
9
|
+
import { useEffect as l } from "react";
|
|
10
|
+
import { jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { useLingui as f } from "@lingui/react";
|
|
12
|
+
import { FormProvider as p, useForm as m } from "react-hook-form";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js
|
|
14
|
+
var h = ({ entityId: h, entitySettings: g, nextNumbers: _, isDialog: v }) => {
|
|
15
|
+
let { i18n: y } = f(), { handleShowModal: b } = n(), { mutate: x, isPending: S } = r(h), C = m({
|
|
16
|
+
resolver: t(o(y, _)),
|
|
17
|
+
defaultValues: {
|
|
18
|
+
credit_note: g?.document_ids?.document_type_prefix?.credit_note ?? "CN",
|
|
19
|
+
credit_note_number: _?.credit_note ?? 1,
|
|
20
|
+
delivery_note: g?.document_ids?.document_type_prefix?.delivery_note ?? "DN",
|
|
21
|
+
delivery_note_number: _?.delivery_note ?? 1,
|
|
22
|
+
invoice: g?.document_ids?.document_type_prefix?.invoice ?? "INV",
|
|
23
|
+
invoice_number: _?.invoice ?? 1,
|
|
24
|
+
purchase_order: g?.document_ids?.document_type_prefix?.purchase_order ?? "PO",
|
|
25
|
+
purchase_order_number: _?.purchase_order ?? 1,
|
|
26
|
+
quote: g?.document_ids?.document_type_prefix?.quote ?? "Q",
|
|
27
|
+
quote_number: _?.quote ?? 1,
|
|
28
|
+
include_date: g?.document_ids?.include_date ?? !1,
|
|
29
|
+
min_digits: g?.document_ids?.min_digits ?? 5,
|
|
30
|
+
prefix: g?.document_ids?.prefix ?? "",
|
|
31
|
+
separator: g?.document_ids?.separator ?? "-",
|
|
32
|
+
invoice_bank_display: c(g?.document_rendering?.invoice, !!(g?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
33
|
+
credit_note_bank_display: c(g?.document_rendering?.credit_note, !!(g?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
34
|
+
quote_bank_display: c(g?.document_rendering?.quote, !!(g?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
35
|
+
update_paid_invoices: g?.generate_paid_invoice_pdf ?? !1,
|
|
36
|
+
quote_signature_display: g?.document_rendering?.quote?.display_signature ?? !1,
|
|
37
|
+
quote_electronic_signature: g?.quote_signature_required ?? !1
|
|
38
|
+
}
|
|
39
|
+
}), { control: w, handleSubmit: T, formState: E, reset: D } = C, O = (e) => {
|
|
40
|
+
let { dirtyFields: t } = E, n = s(g?.document_rendering, e), r = t.invoice_number;
|
|
41
|
+
x({
|
|
42
|
+
path: { entity_id: h },
|
|
43
|
+
body: {
|
|
44
|
+
...g,
|
|
45
|
+
document_ids: {
|
|
46
|
+
document_type_prefix: {
|
|
47
|
+
invoice: e.invoice,
|
|
48
|
+
credit_note: e.credit_note,
|
|
49
|
+
delivery_note: e.delivery_note,
|
|
50
|
+
purchase_order: e.purchase_order,
|
|
51
|
+
quote: e.quote
|
|
52
|
+
},
|
|
53
|
+
...r && { next_number: { invoice: e.invoice_number } },
|
|
54
|
+
min_digits: e.min_digits,
|
|
55
|
+
separator: e.separator,
|
|
56
|
+
include_date: e.include_date,
|
|
57
|
+
prefix: e.prefix || null
|
|
58
|
+
},
|
|
59
|
+
document_rendering: n,
|
|
60
|
+
generate_paid_invoice_pdf: e.update_paid_invoices,
|
|
61
|
+
quote_signature_required: e.quote_electronic_signature === !0 || e.quote_electronic_signature === "true"
|
|
62
|
+
}
|
|
63
|
+
}, { onSuccess: () => {
|
|
64
|
+
D(C.getValues());
|
|
65
|
+
} });
|
|
66
|
+
};
|
|
67
|
+
return l(() => {
|
|
68
|
+
b(E?.isDirty);
|
|
69
|
+
}, [E?.isDirty, b]), /* @__PURE__ */ u(p, {
|
|
70
|
+
...C,
|
|
71
|
+
children: /* @__PURE__ */ d("form", {
|
|
72
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
73
|
+
onSubmit: T(O),
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ u(a, { control: w }),
|
|
76
|
+
/* @__PURE__ */ u(i, {
|
|
77
|
+
control: w,
|
|
78
|
+
isDialog: v
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ u(e, {
|
|
81
|
+
type: "submit",
|
|
82
|
+
className: "ttw:w-fit",
|
|
83
|
+
disabled: S || !E?.isDirty,
|
|
84
|
+
children: y._("Save changes")
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
export { h as TemplateSettingsContent };
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import { useLingui as i } from "@lingui/react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js
|
|
7
|
-
var a = ({ open: a, onClose: o, onContinue: s }) => {
|
|
8
|
-
let { i18n: c } = i();
|
|
9
|
-
return /* @__PURE__ */ r(e, {
|
|
10
|
-
open: a,
|
|
11
|
-
title: c._("You have unsaved changes"),
|
|
12
|
-
confirmLabel: c._("Quit without saving"),
|
|
13
|
-
cancelLabel: c._("Cancel"),
|
|
14
|
-
onClose: o,
|
|
15
|
-
onConfirm: s,
|
|
16
|
-
children: [/* @__PURE__ */ n(t, {
|
|
17
|
-
variant: "body1",
|
|
18
|
-
children: c._("Any unsaved changes will be lost.")
|
|
19
|
-
}), /* @__PURE__ */ n(t, {
|
|
20
|
-
variant: "body1",
|
|
21
|
-
children: c._("Are you sure you want to quit without saving?")
|
|
22
|
-
})]
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { a as DiscardChangesModal };
|
|
1
|
+
import "./index589.js";
|
|
2
|
+
import "./index590.js";
|
|
3
|
+
import "./index594.js";
|
|
@@ -1,71 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useUserPermissions as c } from "./index112.js";
|
|
7
|
-
import { PageHeader as l } from "./index325.js";
|
|
8
|
-
import { DiscardChangesContextProvider as u, useDiscardChangesContext as d } from "./index578.js";
|
|
9
|
-
import { useGetEntitySettings as f } from "./index582.js";
|
|
10
|
-
import { useGetEntityDocumentNumber as p } from "./index584.js";
|
|
11
|
-
import { LogoSection as m } from "./index588.js";
|
|
12
|
-
import { TemplateSettingsContent as h } from "./index593.js";
|
|
13
|
-
import "./index594.js";
|
|
14
|
-
import { DiscardChangesModal as g } from "./index595.js";
|
|
15
|
-
import { useState as _ } from "react";
|
|
16
|
-
import { Fragment as v, jsx as y, jsxs as b } from "@emotion/react/jsx-runtime";
|
|
17
|
-
import { useLingui as x } from "@lingui/react";
|
|
1
|
+
import { ConfirmationModal as e } from "./index59.js";
|
|
2
|
+
import "./index60.js";
|
|
3
|
+
import { Typography as t } from "./index62.js";
|
|
4
|
+
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useLingui as i } from "@lingui/react";
|
|
18
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js
|
|
19
|
-
var
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
]
|
|
7
|
+
var a = ({ open: a, onClose: o, onContinue: s }) => {
|
|
8
|
+
let { i18n: c } = i();
|
|
9
|
+
return /* @__PURE__ */ r(e, {
|
|
10
|
+
open: a,
|
|
11
|
+
title: c._("You have unsaved changes"),
|
|
12
|
+
confirmLabel: c._("Quit without saving"),
|
|
13
|
+
cancelLabel: c._("Cancel"),
|
|
14
|
+
onClose: o,
|
|
15
|
+
onConfirm: s,
|
|
16
|
+
children: [/* @__PURE__ */ n(t, {
|
|
17
|
+
variant: "body1",
|
|
18
|
+
children: c._("Any unsaved changes will be lost.")
|
|
19
|
+
}), /* @__PURE__ */ n(t, {
|
|
20
|
+
variant: "body1",
|
|
21
|
+
children: c._("Are you sure you want to quit without saving?")
|
|
22
|
+
})]
|
|
36
23
|
});
|
|
37
|
-
return /* @__PURE__ */ b(v, { children: [u ? /* @__PURE__ */ y(n, {
|
|
38
|
-
open: !!S,
|
|
39
|
-
onOpenChange: (e) => !e && R(),
|
|
40
|
-
children: /* @__PURE__ */ b(r, {
|
|
41
|
-
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:p-6 ttw:overflow-auto",
|
|
42
|
-
children: [/* @__PURE__ */ b(a, {
|
|
43
|
-
className: "ttw:p-0",
|
|
44
|
-
children: [/* @__PURE__ */ y(o, {
|
|
45
|
-
className: "ttw:text-2xl ttw:font-semibold ttw:leading-8 ttw:text-text",
|
|
46
|
-
children: D._("Edit invoice settings")
|
|
47
|
-
}), /* @__PURE__ */ y(i, {
|
|
48
|
-
className: "ttw:sr-only",
|
|
49
|
-
children: D._("Manage invoice settings including logo, and document configuration")
|
|
50
|
-
})]
|
|
51
|
-
}), z]
|
|
52
|
-
})
|
|
53
|
-
}) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(l, {
|
|
54
|
-
className: "-Header",
|
|
55
|
-
titleVariant: "h3",
|
|
56
|
-
title: /* @__PURE__ */ y(v, { children: D._("Invoice settings") })
|
|
57
|
-
}), /* @__PURE__ */ y("div", {
|
|
58
|
-
className: "ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6",
|
|
59
|
-
children: z
|
|
60
|
-
})] }), /* @__PURE__ */ y(g, {
|
|
61
|
-
open: O,
|
|
62
|
-
onClose: () => {
|
|
63
|
-
k(!1);
|
|
64
|
-
},
|
|
65
|
-
onContinue: () => {
|
|
66
|
-
k(!1), E(!1), u && C && C();
|
|
67
|
-
}
|
|
68
|
-
})] });
|
|
69
24
|
};
|
|
70
25
|
//#endregion
|
|
71
|
-
export {
|
|
26
|
+
export { a as DiscardChangesModal };
|
|
@@ -1 +1,71 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMyEntity as t } from "./index133.js";
|
|
4
|
+
import { Sheet as n, SheetContent as r, SheetDescription as i, SheetHeader as a, SheetTitle as o } from "./index50.js";
|
|
5
|
+
import { LoadingSpinner as s } from "./index51.js";
|
|
6
|
+
import { useUserPermissions as c } from "./index112.js";
|
|
7
|
+
import { PageHeader as l } from "./index326.js";
|
|
8
|
+
import { DiscardChangesContextProvider as u, useDiscardChangesContext as d } from "./index579.js";
|
|
9
|
+
import { useGetEntitySettings as f } from "./index583.js";
|
|
10
|
+
import { useGetEntityDocumentNumber as p } from "./index585.js";
|
|
11
|
+
import { LogoSection as m } from "./index589.js";
|
|
12
|
+
import { TemplateSettingsContent as h } from "./index594.js";
|
|
13
|
+
import "./index595.js";
|
|
14
|
+
import { DiscardChangesModal as g } from "./index596.js";
|
|
15
|
+
import { useState as _ } from "react";
|
|
16
|
+
import { Fragment as v, jsx as y, jsxs as b } from "@emotion/react/jsx-runtime";
|
|
17
|
+
import { useLingui as x } from "@lingui/react";
|
|
18
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js
|
|
19
|
+
var S = (e) => /* @__PURE__ */ y(u, { children: /* @__PURE__ */ y(C, { ...e }) }), C = ({ isDialog: u, isOpen: S, handleCloseDialog: C }) => {
|
|
20
|
+
let w = c(), { shouldShowChangesModal: T, handleShowModal: E } = d(), { i18n: D } = x(), [O, k] = _(!1), A = w.has(e.OrganizationSettingsWriteOrg), { data: j } = t(), M = j?.id ?? "", { data: N, isLoading: P } = f(M, A), { data: F, isLoading: I } = p(M, A), L = P || I;
|
|
21
|
+
if (!A) return null;
|
|
22
|
+
let R = () => {
|
|
23
|
+
T ? k(!0) : C?.();
|
|
24
|
+
}, z = /* @__PURE__ */ b("div", {
|
|
25
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:w-full ttw:max-w-163",
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ y(m, {}),
|
|
28
|
+
L && /* @__PURE__ */ y(s, {}),
|
|
29
|
+
N && F && /* @__PURE__ */ y(h, {
|
|
30
|
+
entityId: M,
|
|
31
|
+
entitySettings: N,
|
|
32
|
+
nextNumbers: F,
|
|
33
|
+
isDialog: u
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
return /* @__PURE__ */ b(v, { children: [u ? /* @__PURE__ */ y(n, {
|
|
38
|
+
open: !!S,
|
|
39
|
+
onOpenChange: (e) => !e && R(),
|
|
40
|
+
children: /* @__PURE__ */ b(r, {
|
|
41
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:p-6 ttw:overflow-auto",
|
|
42
|
+
children: [/* @__PURE__ */ b(a, {
|
|
43
|
+
className: "ttw:p-0",
|
|
44
|
+
children: [/* @__PURE__ */ y(o, {
|
|
45
|
+
className: "ttw:text-2xl ttw:font-semibold ttw:leading-8 ttw:text-text",
|
|
46
|
+
children: D._("Edit invoice settings")
|
|
47
|
+
}), /* @__PURE__ */ y(i, {
|
|
48
|
+
className: "ttw:sr-only",
|
|
49
|
+
children: D._("Manage invoice settings including logo, and document configuration")
|
|
50
|
+
})]
|
|
51
|
+
}), z]
|
|
52
|
+
})
|
|
53
|
+
}) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(l, {
|
|
54
|
+
className: "-Header",
|
|
55
|
+
titleVariant: "h3",
|
|
56
|
+
title: /* @__PURE__ */ y(v, { children: D._("Invoice settings") })
|
|
57
|
+
}), /* @__PURE__ */ y("div", {
|
|
58
|
+
className: "ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6",
|
|
59
|
+
children: z
|
|
60
|
+
})] }), /* @__PURE__ */ y(g, {
|
|
61
|
+
open: O,
|
|
62
|
+
onClose: () => {
|
|
63
|
+
k(!1);
|
|
64
|
+
},
|
|
65
|
+
onContinue: () => {
|
|
66
|
+
k(!1), E(!1), u && C && C();
|
|
67
|
+
}
|
|
68
|
+
})] });
|
|
69
|
+
};
|
|
70
|
+
//#endregion
|
|
71
|
+
export { S as TemplateSettings };
|