@tesouro/embedded-components-react 0.7.57 → 0.7.58
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/index.css +0 -28
- package/dist/lib/monite-sdk.d.ts +2376 -4041
- package/dist/lib/monite-sdk.js +53 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +58 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +153 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1222 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +176 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +5 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +17 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +5 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +3 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +38 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +11 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +50 -1222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +65 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +167 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +6 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +2 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +76 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +75 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +56 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +564 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +1 -569
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +22 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +18 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +162 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +6 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +48 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +43 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index16.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +52 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +109 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index17.js +59 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +122 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +62 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index18.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +22 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +6 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +73 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +58 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +19 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +182 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +27 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +38 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +8 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +5 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +15 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +23 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +81 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +97 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +46 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +96 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +102 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +166 -193
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +67 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +209 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +89 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index23.js +23 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +153 -354
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +104 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +4 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +17 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +20 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +5 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +10 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +129 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +5 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +5 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +221 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +11 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +12 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +175 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +204 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +93 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +63 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +54 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +92 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +7 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +37 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +77 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +80 -300
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +28 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +30 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +28 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +156 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +57 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +929 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +29 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +67 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +6 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +14 -930
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +43 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +8 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +4 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +70 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +49 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +11 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +45 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +37 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +31 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +40 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +21 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +12 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +53 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +12 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +69 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +78 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +1 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +8 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +25 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +3 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +2 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +35 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +103 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +53 -10
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +0 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +0 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +0 -242
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +0 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +0 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +0 -106
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +0 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -173
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +0 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +0 -212
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +0 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +0 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +0 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +0 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +0 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +0 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +0 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +0 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +0 -206
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +0 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +0 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +0 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +0 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +0 -97
|
@@ -1,361 +1,160 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { useCurrencies as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "./
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import "./
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { Fragment as ye, jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
26
|
-
import { Box as d, Button as be, FormControl as xe, FormHelperText as Se, Grid as f, IconButton as Ce, InputLabel as we, MenuItem as Te, Paper as p, Select as Ee, Stack as De, Table as Oe, TableBody as ke, TableCell as m, TableRow as h, TextField as g, Typography as _ } from "@mui/material";
|
|
27
|
-
import { useLingui as Ae } from "@lingui/react";
|
|
28
|
-
import { Controller as v, FormProvider as y, useForm as b, useFormState as x } from "react-hook-form";
|
|
29
|
-
import { DatePicker as S } from "@mui/x-date-pickers";
|
|
30
|
-
import C from "@mui/icons-material/Add";
|
|
31
|
-
import je from "@mui/icons-material/DeleteForever";
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMoniteContext as t } from "./index37.js";
|
|
4
|
+
import { useCurrencies as n } from "./index67.js";
|
|
5
|
+
import { Button as r } from "./index118.js";
|
|
6
|
+
import { LoadingSpinner as i } from "./index57.js";
|
|
7
|
+
import { Skeleton as a } from "./index62.js";
|
|
8
|
+
import { MoniteScopedProviders as o } from "./index151.js";
|
|
9
|
+
import { useUserPermissions as s } from "./index152.js";
|
|
10
|
+
import { DropdownMenu as c, DropdownMenuContent as l, DropdownMenuItem as u, DropdownMenuTrigger as d } from "./index153.js";
|
|
11
|
+
import { Typography as f } from "./index154.js";
|
|
12
|
+
import { AccessRestriction as p } from "./index158.js";
|
|
13
|
+
import { useGetProductById as m } from "./index205.js";
|
|
14
|
+
import "./index195.js";
|
|
15
|
+
import { ProductDeleteModal as h } from "./index209.js";
|
|
16
|
+
import { Sheet as g, SheetClose as _, SheetContent as v, SheetDescription as y, SheetHeader as b, SheetTitle as x } from "./index214.js";
|
|
17
|
+
import { ProductEditForm as S } from "./index228.js";
|
|
18
|
+
import { NotFound as C } from "./index229.js";
|
|
19
|
+
import "./index230.js";
|
|
20
|
+
import { ProductDetailLine as w } from "./index231.js";
|
|
21
|
+
import { useState as T } from "react";
|
|
22
|
+
import { MoreVerticalIcon as E, Trash2 as D, X as O } from "lucide-react";
|
|
23
|
+
import { Fragment as k, jsx as A, jsxs as j } from "@emotion/react/jsx-runtime";
|
|
24
|
+
import { useLingui as M } from "@lingui/react";
|
|
32
25
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
r?.id && z();
|
|
87
|
-
}, [z, r?.id]);
|
|
88
|
-
let { currencyGroups: Ye, isLoadingCurrencyGroups: Xe } = me();
|
|
89
|
-
return /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(d, {
|
|
90
|
-
className: ae(e, A),
|
|
91
|
-
sx: {
|
|
92
|
-
pb: 6,
|
|
93
|
-
display: "flex",
|
|
94
|
-
flex: "1 1 auto",
|
|
95
|
-
overflow: "auto",
|
|
96
|
-
width: "100%",
|
|
97
|
-
height: 0
|
|
98
|
-
},
|
|
99
|
-
children: /* @__PURE__ */ l(y, {
|
|
100
|
-
...F,
|
|
101
|
-
children: /* @__PURE__ */ l("form", {
|
|
102
|
-
style: { width: "100%" },
|
|
103
|
-
ref: Fe,
|
|
104
|
-
id: Me,
|
|
105
|
-
noValidate: !0,
|
|
106
|
-
onBlur: () => {
|
|
107
|
-
Z.current = !1;
|
|
108
|
-
},
|
|
109
|
-
onKeyDown: (e) => {
|
|
110
|
-
Z.current = e.key === "Enter";
|
|
111
|
-
},
|
|
112
|
-
onSubmit: Ve(async (e) => {
|
|
113
|
-
let t = {
|
|
114
|
-
...e,
|
|
115
|
-
currency: e.currency,
|
|
116
|
-
counterpartAddressId: de(Ke.data?.data, Je, e.counterpart)
|
|
117
|
-
}, n = ue(t, M, q);
|
|
118
|
-
r ? w && w(r.id, n, e.lineItems, He) : T && T(n, e.lineItems);
|
|
119
|
-
}),
|
|
120
|
-
children: /* @__PURE__ */ u(f, {
|
|
121
|
-
container: !0,
|
|
122
|
-
spacing: 3,
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ l(f, {
|
|
125
|
-
item: !0,
|
|
126
|
-
xs: 12,
|
|
127
|
-
children: /* @__PURE__ */ u(p, {
|
|
128
|
-
variant: "outlined",
|
|
129
|
-
sx: { p: 3 },
|
|
130
|
-
className: A + "-Details",
|
|
131
|
-
children: [/* @__PURE__ */ l(_, {
|
|
132
|
-
variant: "subtitle2",
|
|
133
|
-
mb: 2,
|
|
134
|
-
children: O._("Details")
|
|
135
|
-
}), /* @__PURE__ */ u(De, {
|
|
136
|
-
spacing: 3,
|
|
137
|
-
children: [
|
|
138
|
-
/* @__PURE__ */ l(v, {
|
|
139
|
-
name: "invoiceNumber",
|
|
140
|
-
control: I,
|
|
141
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ l(g, {
|
|
142
|
-
...e,
|
|
143
|
-
id: e.name,
|
|
144
|
-
label: O._("Number"),
|
|
145
|
-
variant: "standard",
|
|
146
|
-
fullWidth: !0,
|
|
147
|
-
error: !!t,
|
|
148
|
-
helperText: t?.message,
|
|
149
|
-
required: i("invoiceNumber", Y)
|
|
150
|
-
})
|
|
151
|
-
}),
|
|
152
|
-
/* @__PURE__ */ l(v, {
|
|
153
|
-
name: "counterpartBankAccount",
|
|
154
|
-
control: I,
|
|
155
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ u(xe, {
|
|
156
|
-
variant: "standard",
|
|
157
|
-
fullWidth: !0,
|
|
158
|
-
error: !!t,
|
|
159
|
-
required: i("counterpartBankAccount", Y) || s("counterpart_bank_account_id", P),
|
|
160
|
-
children: [
|
|
161
|
-
/* @__PURE__ */ l(we, {
|
|
162
|
-
htmlFor: e.name,
|
|
163
|
-
children: O._("Bank account")
|
|
164
|
-
}),
|
|
165
|
-
/* @__PURE__ */ l(Ee, {
|
|
166
|
-
...e,
|
|
167
|
-
id: e.name,
|
|
168
|
-
labelId: e.name,
|
|
169
|
-
label: O._("Bank Account"),
|
|
170
|
-
MenuProps: { container: k },
|
|
171
|
-
disabled: !J?.data || J?.data?.data.length === 0,
|
|
172
|
-
children: J?.data?.data.map((e) => /* @__PURE__ */ l(Te, {
|
|
173
|
-
value: e.id,
|
|
174
|
-
children: he(O, e)
|
|
175
|
-
}, e.id))
|
|
176
|
-
}),
|
|
177
|
-
t && /* @__PURE__ */ l(Se, { children: t.message })
|
|
178
|
-
]
|
|
179
|
-
})
|
|
180
|
-
}),
|
|
181
|
-
X && /* @__PURE__ */ l(v, {
|
|
182
|
-
name: "invoiceDate",
|
|
183
|
-
control: I,
|
|
184
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ l(S, {
|
|
185
|
-
maxDate: We,
|
|
186
|
-
slotProps: {
|
|
187
|
-
popper: { container: k },
|
|
188
|
-
dialog: { container: k },
|
|
189
|
-
actionBar: { actions: ["clear", "today"] },
|
|
190
|
-
textField: {
|
|
191
|
-
id: e.name,
|
|
192
|
-
variant: "outlined",
|
|
193
|
-
fullWidth: !0,
|
|
194
|
-
error: !!t,
|
|
195
|
-
helperText: t?.message,
|
|
196
|
-
required: i("invoiceDate", Y) || s("issued_at", P)
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
...e,
|
|
200
|
-
label: O._("Issue date"),
|
|
201
|
-
views: [
|
|
202
|
-
"year",
|
|
203
|
-
"month",
|
|
204
|
-
"day"
|
|
205
|
-
]
|
|
206
|
-
})
|
|
207
|
-
}),
|
|
208
|
-
/* @__PURE__ */ l(v, {
|
|
209
|
-
name: "dueDate",
|
|
210
|
-
control: I,
|
|
211
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ l(S, {
|
|
212
|
-
minDate: Ue,
|
|
213
|
-
slotProps: {
|
|
214
|
-
popper: { container: k },
|
|
215
|
-
dialog: { container: k },
|
|
216
|
-
actionBar: { actions: ["clear", "today"] },
|
|
217
|
-
textField: {
|
|
218
|
-
id: e.name,
|
|
219
|
-
variant: "outlined",
|
|
220
|
-
fullWidth: !0,
|
|
221
|
-
error: !!t,
|
|
222
|
-
helperText: t?.message,
|
|
223
|
-
required: i("dueDate", Y)
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
...e,
|
|
227
|
-
label: O._("Due date"),
|
|
228
|
-
views: [
|
|
229
|
-
"year",
|
|
230
|
-
"month",
|
|
231
|
-
"day"
|
|
232
|
-
]
|
|
233
|
-
})
|
|
234
|
-
}),
|
|
235
|
-
/* @__PURE__ */ l(re, {
|
|
236
|
-
name: "currency",
|
|
237
|
-
control: I,
|
|
238
|
-
required: i("currency", Y) || s("currency", P),
|
|
239
|
-
groups: Ye,
|
|
240
|
-
disabled: Xe,
|
|
241
|
-
allowedCurrencies: Re?.payables?.availableCurrencies
|
|
242
|
-
})
|
|
243
|
-
]
|
|
244
|
-
})]
|
|
245
|
-
})
|
|
246
|
-
}),
|
|
247
|
-
/* @__PURE__ */ l(f, {
|
|
248
|
-
item: !0,
|
|
249
|
-
xs: 12,
|
|
250
|
-
children: /* @__PURE__ */ u(p, {
|
|
251
|
-
variant: "outlined",
|
|
252
|
-
sx: { p: 3 },
|
|
253
|
-
className: A + "-Items",
|
|
254
|
-
children: [/* @__PURE__ */ l(_, {
|
|
255
|
-
variant: "subtitle2",
|
|
256
|
-
mb: 2,
|
|
257
|
-
children: O._("Items")
|
|
258
|
-
}), /* @__PURE__ */ l(o, { enableGLCodes: Ne })]
|
|
259
|
-
})
|
|
260
|
-
}),
|
|
261
|
-
/* @__PURE__ */ l(f, {
|
|
262
|
-
item: !0,
|
|
263
|
-
xs: 12,
|
|
264
|
-
className: A + "-Totals",
|
|
265
|
-
children: /* @__PURE__ */ l(p, {
|
|
266
|
-
variant: "outlined",
|
|
267
|
-
children: /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ u(ke, { children: [
|
|
268
|
-
/* @__PURE__ */ u(h, {
|
|
269
|
-
className: A + "-Totals-Subtotal",
|
|
270
|
-
children: [/* @__PURE__ */ l(m, { children: O._("Subtotal") }), /* @__PURE__ */ l(m, {
|
|
271
|
-
align: "right",
|
|
272
|
-
children: /* @__PURE__ */ u(d, {
|
|
273
|
-
gap: .5,
|
|
274
|
-
alignItems: "center",
|
|
275
|
-
justifyContent: "flex-end",
|
|
276
|
-
display: "flex",
|
|
277
|
-
children: [K === null && !Pe && /* @__PURE__ */ l(be, {
|
|
278
|
-
variant: "text",
|
|
279
|
-
startIcon: /* @__PURE__ */ l(C, {}),
|
|
280
|
-
size: "small",
|
|
281
|
-
sx: {
|
|
282
|
-
pl: 1.25,
|
|
283
|
-
pr: 2,
|
|
284
|
-
py: 0
|
|
285
|
-
},
|
|
286
|
-
onClick: () => {
|
|
287
|
-
let e = F.setValue;
|
|
288
|
-
e("discount", 0);
|
|
289
|
-
},
|
|
290
|
-
children: O._("Add Discount")
|
|
291
|
-
}), q.subtotal && G ? N(M(q.subtotal, G) || 0, G) : "—"]
|
|
292
|
-
})
|
|
293
|
-
})]
|
|
294
|
-
}),
|
|
295
|
-
K !== null && /* @__PURE__ */ u(h, {
|
|
296
|
-
className: A + "-Totals-Discount",
|
|
297
|
-
children: [/* @__PURE__ */ l(m, { children: O._("Discount") }), /* @__PURE__ */ l(m, {
|
|
298
|
-
align: "right",
|
|
299
|
-
children: /* @__PURE__ */ u(d, {
|
|
300
|
-
gap: .5,
|
|
301
|
-
alignItems: "center",
|
|
302
|
-
justifyContent: "flex-end",
|
|
303
|
-
display: "flex",
|
|
304
|
-
children: [/* @__PURE__ */ l(Ce, {
|
|
305
|
-
"aria-label": "delete",
|
|
306
|
-
onClick: () => {
|
|
307
|
-
let e = F.setValue;
|
|
308
|
-
e("discount", null);
|
|
309
|
-
},
|
|
310
|
-
children: /* @__PURE__ */ l(je, {})
|
|
311
|
-
}), /* @__PURE__ */ l(v, {
|
|
312
|
-
name: "discount",
|
|
313
|
-
control: I,
|
|
314
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ l(g, {
|
|
315
|
-
...e,
|
|
316
|
-
id: e.name,
|
|
317
|
-
variant: "standard",
|
|
318
|
-
type: "number",
|
|
319
|
-
inputProps: {
|
|
320
|
-
min: 0,
|
|
321
|
-
step: .01
|
|
322
|
-
},
|
|
323
|
-
error: !!t,
|
|
324
|
-
sx: { width: 150 },
|
|
325
|
-
InputProps: { endAdornment: ze(G) }
|
|
326
|
-
})
|
|
327
|
-
})]
|
|
328
|
-
})
|
|
329
|
-
})]
|
|
330
|
-
}),
|
|
331
|
-
/* @__PURE__ */ u(h, {
|
|
332
|
-
className: A + "-Totals-Taxes",
|
|
333
|
-
children: [/* @__PURE__ */ l(m, { children: O._("Tax total") }), /* @__PURE__ */ l(m, {
|
|
334
|
-
align: "right",
|
|
335
|
-
children: q.taxes && G ? N(M(q.taxes, G) || 0, G) : "—"
|
|
336
|
-
})]
|
|
337
|
-
}),
|
|
338
|
-
/* @__PURE__ */ u(h, {
|
|
339
|
-
className: A + "-Totals-Total",
|
|
340
|
-
children: [/* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(_, {
|
|
341
|
-
variant: "subtitle1",
|
|
342
|
-
children: O._("Total")
|
|
343
|
-
}) }), /* @__PURE__ */ l(m, {
|
|
344
|
-
align: "right",
|
|
345
|
-
children: /* @__PURE__ */ l(_, {
|
|
346
|
-
variant: "subtitle1",
|
|
347
|
-
children: q.total && G ? N(M(q.total, G) || 0, G) : "—"
|
|
348
|
-
})
|
|
349
|
-
})]
|
|
350
|
-
})
|
|
351
|
-
] }) })
|
|
352
|
-
})
|
|
26
|
+
var N = (e) => /* @__PURE__ */ A(o, { children: /* @__PURE__ */ A(P, { ...e }) }), P = ({ id: o, open: N, onClose: P, onUpdated: F, onDeleted: I, showActionsMenu: L = !0 }) => {
|
|
27
|
+
let { i18n: R } = M(), { locale: z } = t(), { formatCurrencyToDisplay: B } = n(), [V, H] = T(!1), [U, W] = T(!1), { data: G, isLoading: K, isFetching: q } = m(o), J = G?.type === "product", Y = s(), X = Y.has(e.InvoiceReadOrg), Z = Y.has(e.InvoiceWriteOrg), Q = Y.has(e.InvoiceWriteOrg);
|
|
28
|
+
return X ? !K && !q && !G ? /* @__PURE__ */ A(g, {
|
|
29
|
+
open: N,
|
|
30
|
+
onOpenChange: P,
|
|
31
|
+
children: /* @__PURE__ */ A(v, {
|
|
32
|
+
showCloseButton: !0,
|
|
33
|
+
className: "ttw:gap-0",
|
|
34
|
+
children: /* @__PURE__ */ A("div", {
|
|
35
|
+
className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
|
|
36
|
+
children: /* @__PURE__ */ A(C, {
|
|
37
|
+
title: R._("Product not found"),
|
|
38
|
+
description: R._("There is no product by provided id: {id}", { id: o })
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
}) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(g, {
|
|
43
|
+
open: N,
|
|
44
|
+
onOpenChange: P,
|
|
45
|
+
children: /* @__PURE__ */ j(v, {
|
|
46
|
+
showCloseButton: !1,
|
|
47
|
+
className: "ttw:gap-0",
|
|
48
|
+
children: [/* @__PURE__ */ j(b, {
|
|
49
|
+
className: "ttw:pt-6 ttw:pl-6 ttw:pb-7 ttw:flex-row ttw:gap-3 ttw:border-b ttw:border-border",
|
|
50
|
+
children: [/* @__PURE__ */ j("div", {
|
|
51
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:w-[85%]",
|
|
52
|
+
children: [/* @__PURE__ */ A(x, {
|
|
53
|
+
asChild: K,
|
|
54
|
+
className: "ttw:text-2xl",
|
|
55
|
+
children: K ? /* @__PURE__ */ A(a, { className: "ttw:w-40" }) : G?.name ?? ""
|
|
56
|
+
}), /* @__PURE__ */ A(y, {
|
|
57
|
+
asChild: K,
|
|
58
|
+
children: K ? /* @__PURE__ */ A(a, { className: "ttw:w-60" }) : R._("{type} · Added {createdAt}", {
|
|
59
|
+
createdAt: R.date(G?.created_at, z.dateFormat),
|
|
60
|
+
type: G?.type === "product" ? "Product" : "Service"
|
|
61
|
+
})
|
|
62
|
+
})]
|
|
63
|
+
}), /* @__PURE__ */ j("div", {
|
|
64
|
+
className: "ttw:flex ttw:gap-2",
|
|
65
|
+
children: [L && Q && /* @__PURE__ */ j(c, { children: [/* @__PURE__ */ A(d, {
|
|
66
|
+
asChild: !0,
|
|
67
|
+
children: /* @__PURE__ */ A(r, {
|
|
68
|
+
type: "button",
|
|
69
|
+
variant: "outline",
|
|
70
|
+
className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
|
|
71
|
+
children: /* @__PURE__ */ A(E, {})
|
|
72
|
+
})
|
|
73
|
+
}), /* @__PURE__ */ A(l, {
|
|
74
|
+
align: "end",
|
|
75
|
+
children: /* @__PURE__ */ j(u, {
|
|
76
|
+
onClick: () => W(!0),
|
|
77
|
+
variant: "destructive",
|
|
78
|
+
children: [/* @__PURE__ */ A(D, {}), R._("Delete product")]
|
|
353
79
|
})
|
|
354
|
-
]
|
|
80
|
+
})] }), /* @__PURE__ */ A(_, {
|
|
81
|
+
className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
|
|
82
|
+
children: /* @__PURE__ */ A(O, { className: "ttw:size-4" })
|
|
83
|
+
})]
|
|
84
|
+
})]
|
|
85
|
+
}), K ? /* @__PURE__ */ A("div", {
|
|
86
|
+
className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
|
|
87
|
+
children: /* @__PURE__ */ A(i, {})
|
|
88
|
+
}) : /* @__PURE__ */ A("main", {
|
|
89
|
+
className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
|
|
90
|
+
children: /* @__PURE__ */ j("div", {
|
|
91
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
92
|
+
children: [/* @__PURE__ */ j("div", {
|
|
93
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
94
|
+
children: [/* @__PURE__ */ j("div", {
|
|
95
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
96
|
+
children: [/* @__PURE__ */ A(f, {
|
|
97
|
+
variant: "body1",
|
|
98
|
+
className: "ttw:font-medium",
|
|
99
|
+
children: R._("{type} details", { type: J ? "Product" : "Service" })
|
|
100
|
+
}), /* @__PURE__ */ A(f, {
|
|
101
|
+
variant: "body2",
|
|
102
|
+
color: "muted",
|
|
103
|
+
children: J ? R._("A physical or digital item") : R._("Work or labor you provide")
|
|
104
|
+
})]
|
|
105
|
+
}), !V && Z && /* @__PURE__ */ A(r, {
|
|
106
|
+
type: "button",
|
|
107
|
+
variant: "ghost",
|
|
108
|
+
className: "ttw:text-primary ttw:hover:text-primary",
|
|
109
|
+
onClick: () => H(!0),
|
|
110
|
+
children: R._("Edit")
|
|
111
|
+
})]
|
|
112
|
+
}), V && G ? /* @__PURE__ */ A(S, {
|
|
113
|
+
product: G,
|
|
114
|
+
handleClose: () => H(!1),
|
|
115
|
+
onUpdate: (e) => {
|
|
116
|
+
F?.(e), H(!1);
|
|
117
|
+
}
|
|
118
|
+
}) : /* @__PURE__ */ j("ul", {
|
|
119
|
+
className: "ttw:list-none",
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ A(w, {
|
|
122
|
+
label: R._("{type} name", { type: J ? "Product" : "Service" }),
|
|
123
|
+
value: G?.name ?? "-"
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ A(w, {
|
|
126
|
+
label: R._("Price per unit"),
|
|
127
|
+
value: G?.price ? B(G.price.value, G.price.currency) : "-"
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ A(w, {
|
|
130
|
+
label: R._("Description"),
|
|
131
|
+
value: G?.description || "-",
|
|
132
|
+
isLast: !0
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
})]
|
|
355
136
|
})
|
|
137
|
+
})]
|
|
138
|
+
})
|
|
139
|
+
}), o && U && /* @__PURE__ */ A(h, {
|
|
140
|
+
id: o,
|
|
141
|
+
open: U,
|
|
142
|
+
onClose: () => W(!1),
|
|
143
|
+
onDeleted: (e) => {
|
|
144
|
+
P?.(), I?.(e), W(!1);
|
|
145
|
+
}
|
|
146
|
+
})] }) : /* @__PURE__ */ A(g, {
|
|
147
|
+
open: N,
|
|
148
|
+
onOpenChange: P,
|
|
149
|
+
children: /* @__PURE__ */ A(v, {
|
|
150
|
+
showCloseButton: !0,
|
|
151
|
+
className: "ttw:gap-0",
|
|
152
|
+
children: /* @__PURE__ */ A("div", {
|
|
153
|
+
className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
|
|
154
|
+
children: /* @__PURE__ */ A(p, {})
|
|
356
155
|
})
|
|
357
156
|
})
|
|
358
|
-
})
|
|
157
|
+
});
|
|
359
158
|
};
|
|
360
159
|
//#endregion
|
|
361
|
-
export {
|
|
160
|
+
export { N as ProductDetails };
|
|
@@ -1 +1,104 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index17.js";
|
|
2
|
+
import { useCurrencies as n } from "./index67.js";
|
|
3
|
+
import "./index80.js";
|
|
4
|
+
import { Button as r } from "./index118.js";
|
|
5
|
+
import { LoadingSpinner as i } from "./index57.js";
|
|
6
|
+
import { MoniteScopedProviders as a } from "./index151.js";
|
|
7
|
+
import { useCreateProduct as o } from "./index199.js";
|
|
8
|
+
import "./index208.js";
|
|
9
|
+
import "./index195.js";
|
|
10
|
+
import { PRODUCT_API_FIELD_MAP as s } from "./index211.js";
|
|
11
|
+
import { Sheet as c, SheetClose as l, SheetContent as u, SheetDescription as d, SheetFooter as f, SheetHeader as p, SheetTitle as m } from "./index214.js";
|
|
12
|
+
import { getProductValidationSchema as h } from "./index215.js";
|
|
13
|
+
import { ProductFormContent as g } from "./index227.js";
|
|
14
|
+
import { useCallback as _, useId as v, useMemo as y } from "react";
|
|
15
|
+
import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { useLingui as S } from "@lingui/react";
|
|
17
|
+
import { FormProvider as C, useForm as w } from "react-hook-form";
|
|
18
|
+
import { zodResolver as T } from "@hookform/resolvers/zod";
|
|
19
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js
|
|
20
|
+
var E = (e) => /* @__PURE__ */ b(a, { children: /* @__PURE__ */ b(D, { ...e }) }), D = ({ onClose: a, open: E, onCreated: D }) => {
|
|
21
|
+
let { i18n: O } = S(), { formatToMinorUnits: k } = n(), A = `product-form-${v()}`, { mutate: j, isPending: M } = o(D), N = y(() => ({
|
|
22
|
+
name: "",
|
|
23
|
+
type: "product",
|
|
24
|
+
measureUnitId: "",
|
|
25
|
+
pricePerUnit: void 0,
|
|
26
|
+
currency: "USD",
|
|
27
|
+
description: void 0
|
|
28
|
+
}), []), { watch: P, ...F } = w({
|
|
29
|
+
resolver: T(h(O)),
|
|
30
|
+
defaultValues: N
|
|
31
|
+
}), I = P("type"), L = !!P("name")?.trim() && P("pricePerUnit") !== void 0, R = _((n) => {
|
|
32
|
+
n.preventDefault(), n.stopPropagation(), F.handleSubmit((n) => {
|
|
33
|
+
j({ body: {
|
|
34
|
+
name: n.name,
|
|
35
|
+
type: n.type,
|
|
36
|
+
price: {
|
|
37
|
+
value: k(n.pricePerUnit, n.currency) ?? 0,
|
|
38
|
+
currency: n.currency
|
|
39
|
+
},
|
|
40
|
+
description: n.description,
|
|
41
|
+
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
42
|
+
} }, { onError: (n) => {
|
|
43
|
+
e(F.setError, t(n), { fieldMap: s });
|
|
44
|
+
} });
|
|
45
|
+
})(n);
|
|
46
|
+
}, [
|
|
47
|
+
j,
|
|
48
|
+
k,
|
|
49
|
+
F.handleSubmit,
|
|
50
|
+
F.setError
|
|
51
|
+
]);
|
|
52
|
+
return /* @__PURE__ */ b(c, {
|
|
53
|
+
open: E,
|
|
54
|
+
onOpenChange: a,
|
|
55
|
+
children: /* @__PURE__ */ x(u, {
|
|
56
|
+
className: "ttw:gap-0",
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ x(p, {
|
|
59
|
+
className: "ttw:border-b ttw:border-border",
|
|
60
|
+
children: [/* @__PURE__ */ b(m, {
|
|
61
|
+
className: "ttw:text-2xl",
|
|
62
|
+
children: O._("Add a product or service")
|
|
63
|
+
}), /* @__PURE__ */ b(d, {
|
|
64
|
+
className: "ttw:max-w-130",
|
|
65
|
+
children: O._("Save the products and services you sell so you can quickly add them as line items on invoices.")
|
|
66
|
+
})]
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ b("div", {
|
|
69
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto",
|
|
70
|
+
children: /* @__PURE__ */ b(C, {
|
|
71
|
+
...F,
|
|
72
|
+
watch: P,
|
|
73
|
+
children: /* @__PURE__ */ b("form", {
|
|
74
|
+
id: A,
|
|
75
|
+
onSubmit: R,
|
|
76
|
+
children: /* @__PURE__ */ b(g, { isLoading: M })
|
|
77
|
+
})
|
|
78
|
+
})
|
|
79
|
+
}),
|
|
80
|
+
/* @__PURE__ */ x(f, {
|
|
81
|
+
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
82
|
+
children: [/* @__PURE__ */ b(l, {
|
|
83
|
+
asChild: !0,
|
|
84
|
+
children: /* @__PURE__ */ b(r, {
|
|
85
|
+
variant: "outline",
|
|
86
|
+
disabled: M,
|
|
87
|
+
className: "ttw:flex-1 ttw:border-border",
|
|
88
|
+
children: O._("Cancel")
|
|
89
|
+
})
|
|
90
|
+
}), /* @__PURE__ */ x(r, {
|
|
91
|
+
type: "submit",
|
|
92
|
+
form: A,
|
|
93
|
+
className: "ttw:flex-1",
|
|
94
|
+
title: O._("Complete the form to continue"),
|
|
95
|
+
disabled: M || !L,
|
|
96
|
+
children: [M && /* @__PURE__ */ b(i, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), O._("Save {type}", { type: I })]
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
export { E as CreateProduct };
|