@tesouro/embedded-components-react 0.7.51 → 0.7.52
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 -25
- package/dist/lib/monite-sdk.d.ts +2 -37
- package/dist/lib/monite-sdk.js +56 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +60 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +36 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +51 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +150 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +3 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +56 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +38 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +11 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +65 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +167 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +6 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +76 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +75 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +32 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +56 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +564 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -569
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +22 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +19 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +23 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +6 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +39 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +48 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +58 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +27 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +43 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +78 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +52 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +122 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +5 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +16 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +122 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +35 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +54 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +72 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +25 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +58 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +181 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +27 -180
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +61 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +34 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +9 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +42 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +17 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +8 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +34 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +111 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +196 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +9 -198
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +358 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +20 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -351
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +179 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +95 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +15 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +53 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +43 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +36 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +56 -155
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +45 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +49 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +82 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +7 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +304 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +1 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +30 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +33 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +101 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +185 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +132 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +196 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +11 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +15 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +29 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +239 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +137 -237
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +164 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +25 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +15 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +23 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +81 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +42 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +101 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +33 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +173 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +4 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +67 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +21 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +212 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +89 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +17 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +147 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +88 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +4 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +20 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +74 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +5 -133
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +219 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +31 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +33 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +180 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +14 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +202 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +87 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +64 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +52 -201
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +84 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +34 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +74 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +80 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +12 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +23 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +17 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +36 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +3 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +7 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +69 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +51 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +1 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +15 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +45 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +63 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +33 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +36 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +12 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +53 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +73 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +79 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +8 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +16 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +2 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +56 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -97
|
@@ -1,27 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
|
-
import * as r from "@radix-ui/react-radio-group";
|
|
1
|
+
import { Typography as e } from "./index156.js";
|
|
2
|
+
import { twMerge as t } from "tailwind-merge";
|
|
3
|
+
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
6
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"data-slot": "radio-group-indicator",
|
|
21
|
-
className: "ttw:relative ttw:flex ttw:items-center ttw:justify-center",
|
|
22
|
-
children: /* @__PURE__ */ n(t, { className: e("ttw:fill-primary ttw:absolute ttw:top-1/2 ttw:left-1/2 ttw:size-2 ttw:-translate-x-1/2 ttw:-translate-y-1/2", a) })
|
|
23
|
-
})
|
|
24
|
-
});
|
|
25
|
-
}
|
|
5
|
+
var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ r("li", {
|
|
6
|
+
className: t("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
|
|
7
|
+
children: [/* @__PURE__ */ n(e, {
|
|
8
|
+
variant: "body2",
|
|
9
|
+
color: "muted",
|
|
10
|
+
className: "ttw:w-35 ttw:min-w-35 ttw:font-medium",
|
|
11
|
+
children: i
|
|
12
|
+
}), typeof a == "string" ? /* @__PURE__ */ n(e, {
|
|
13
|
+
variant: "body2",
|
|
14
|
+
className: "ttw:font-medium",
|
|
15
|
+
children: a
|
|
16
|
+
}) : a]
|
|
17
|
+
});
|
|
26
18
|
//#endregion
|
|
27
|
-
export { i as
|
|
19
|
+
export { i as ProductDetailLine };
|
|
@@ -1,212 +1,160 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
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 "./index45.js";
|
|
4
|
+
import { useCurrencies as n } from "./index74.js";
|
|
5
|
+
import { Button as r } from "./index120.js";
|
|
6
|
+
import { LoadingSpinner as i } from "./index65.js";
|
|
7
|
+
import { Skeleton as a } from "./index70.js";
|
|
8
|
+
import { MoniteScopedProviders as o } from "./index153.js";
|
|
9
|
+
import { useUserPermissions as s } from "./index154.js";
|
|
10
|
+
import { DropdownMenu as c, DropdownMenuContent as l, DropdownMenuItem as u, DropdownMenuTrigger as d } from "./index155.js";
|
|
11
|
+
import { Typography as f } from "./index156.js";
|
|
12
|
+
import { AccessRestriction as p } from "./index160.js";
|
|
13
|
+
import "./index248.js";
|
|
14
|
+
import { NotFound as m } from "./index268.js";
|
|
15
|
+
import "./index269.js";
|
|
16
|
+
import { useGetProductById as h } from "./index296.js";
|
|
17
|
+
import { ProductDeleteModal as g } from "./index300.js";
|
|
18
|
+
import { Sheet as _, SheetClose as v, SheetContent as y, SheetDescription as b, SheetHeader as x, SheetTitle as S } from "./index305.js";
|
|
19
|
+
import { ProductEditForm as C } from "./index319.js";
|
|
20
|
+
import { ProductDetailLine as w } from "./index320.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";
|
|
18
25
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js
|
|
19
|
-
var
|
|
20
|
-
let { i18n:
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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 } = h(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(_, {
|
|
29
|
+
open: N,
|
|
30
|
+
onOpenChange: P,
|
|
31
|
+
children: /* @__PURE__ */ A(y, {
|
|
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(m, {
|
|
37
|
+
title: R._("Product not found"),
|
|
38
|
+
description: R._("There is no product by provided id: {id}", { id: o })
|
|
30
39
|
})
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
}) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(_, {
|
|
43
|
+
open: N,
|
|
44
|
+
onOpenChange: P,
|
|
45
|
+
children: /* @__PURE__ */ j(y, {
|
|
46
|
+
showCloseButton: !1,
|
|
47
|
+
className: "ttw:gap-0",
|
|
48
|
+
children: [/* @__PURE__ */ j(x, {
|
|
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(S, {
|
|
53
|
+
asChild: K,
|
|
54
|
+
className: "ttw:text-2xl",
|
|
55
|
+
children: K ? /* @__PURE__ */ A(a, { className: "ttw:w-40" }) : G?.name ?? ""
|
|
56
|
+
}), /* @__PURE__ */ A(b, {
|
|
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")]
|
|
79
|
+
})
|
|
80
|
+
})] }), /* @__PURE__ */ A(v, {
|
|
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")
|
|
83
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")
|
|
84
111
|
})]
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
htmlFor: e.name,
|
|
94
|
-
children: P._("Name")
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ E(t, {
|
|
97
|
-
...e,
|
|
98
|
-
id: e.name,
|
|
99
|
-
placeholder: P._("e.g. House blend espresso beans"),
|
|
100
|
-
className: M ? "ttw:bg-white" : "",
|
|
101
|
-
disabled: j,
|
|
102
|
-
"aria-invalid": !!n || void 0
|
|
103
|
-
}),
|
|
104
|
-
/* @__PURE__ */ E(v, { errors: [n] })
|
|
105
|
-
] }) })
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ D("div", {
|
|
108
|
-
className: "ttw:w-1/2 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
109
|
-
children: [
|
|
110
|
-
/* @__PURE__ */ E(y, { children: P._("Price per unit") }),
|
|
111
|
-
/* @__PURE__ */ D("div", {
|
|
112
|
-
className: T("ttw:flex ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-[3px] ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20", M && "ttw:bg-white"),
|
|
113
|
-
ref: I,
|
|
112
|
+
}), V && G ? /* @__PURE__ */ A(C, {
|
|
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",
|
|
114
120
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
name: "
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
children: F("USD")
|
|
123
|
-
}), /* @__PURE__ */ E(i, {
|
|
124
|
-
type: "number",
|
|
125
|
-
name: e.name,
|
|
126
|
-
ref: e.ref,
|
|
127
|
-
value: e.value ?? "",
|
|
128
|
-
onChange: (t) => e.onChange(t.target.value === "" ? void 0 : Number(t.target.value)),
|
|
129
|
-
className: "ttw:text-end",
|
|
130
|
-
onBlur: e.onBlur,
|
|
131
|
-
placeholder: "0.00",
|
|
132
|
-
"aria-invalid": !!t || void 0,
|
|
133
|
-
disabled: j
|
|
134
|
-
})]
|
|
135
|
-
})
|
|
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) : "-"
|
|
136
128
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(o, {
|
|
142
|
-
value: e.value ?? null,
|
|
143
|
-
onValueChange: (t) => e.onChange(t ?? void 0),
|
|
144
|
-
items: V,
|
|
145
|
-
itemToStringLabel: U,
|
|
146
|
-
disabled: j,
|
|
147
|
-
children: [/* @__PURE__ */ E(u, {
|
|
148
|
-
showClear: !!e.value,
|
|
149
|
-
placeholder: "-",
|
|
150
|
-
disabled: j,
|
|
151
|
-
"aria-invalid": !!t || void 0,
|
|
152
|
-
className: "ttw:w-28 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0"
|
|
153
|
-
}), /* @__PURE__ */ E(c, {
|
|
154
|
-
container: I.current,
|
|
155
|
-
children: /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(l, { children: P._("No units found") }), /* @__PURE__ */ E(s, { children: (e) => /* @__PURE__ */ E(d, {
|
|
156
|
-
value: e,
|
|
157
|
-
children: U(e)
|
|
158
|
-
}, e) })] })
|
|
159
|
-
})]
|
|
160
|
-
})
|
|
129
|
+
/* @__PURE__ */ A(w, {
|
|
130
|
+
label: R._("Description"),
|
|
131
|
+
value: G?.description || "-",
|
|
132
|
+
isLast: !0
|
|
161
133
|
})
|
|
162
134
|
]
|
|
163
|
-
})
|
|
164
|
-
/* @__PURE__ */ E(v, { errors: [B.pricePerUnit, B.measureUnitId] })
|
|
165
|
-
]
|
|
166
|
-
}),
|
|
167
|
-
/* @__PURE__ */ E(k, {
|
|
168
|
-
name: "description",
|
|
169
|
-
control: z,
|
|
170
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(g, {
|
|
171
|
-
className: "ttw:block",
|
|
172
|
-
children: /* @__PURE__ */ D(_, { children: [
|
|
173
|
-
/* @__PURE__ */ D(y, {
|
|
174
|
-
htmlFor: e.name,
|
|
175
|
-
className: "ttw:gap-1",
|
|
176
|
-
children: [P._("Description"), /* @__PURE__ */ E(p, {
|
|
177
|
-
variant: "body2",
|
|
178
|
-
color: "muted",
|
|
179
|
-
className: "ttw:leading-snug",
|
|
180
|
-
children: P._("(optional)")
|
|
181
|
-
})]
|
|
182
|
-
}),
|
|
183
|
-
/* @__PURE__ */ D(n, {
|
|
184
|
-
className: T(M && "ttw:bg-white"),
|
|
185
|
-
children: [/* @__PURE__ */ E(a, {
|
|
186
|
-
...e,
|
|
187
|
-
id: e.name,
|
|
188
|
-
placeholder: P._("e.g. 16oz whole bean, medium-dark roast, ground to order"),
|
|
189
|
-
rows: 4,
|
|
190
|
-
maxLength: 255,
|
|
191
|
-
disabled: j,
|
|
192
|
-
"aria-invalid": !!t || void 0
|
|
193
|
-
}), /* @__PURE__ */ E(r, {
|
|
194
|
-
align: "block-end",
|
|
195
|
-
className: "ttw:cursor-default",
|
|
196
|
-
children: /* @__PURE__ */ E(p, {
|
|
197
|
-
variant: "caption",
|
|
198
|
-
color: "muted",
|
|
199
|
-
className: "ttw:leading-none",
|
|
200
|
-
children: P._("{count}/255 characters", { count: (e.value ?? "").length })
|
|
201
|
-
})
|
|
202
|
-
})]
|
|
203
|
-
}),
|
|
204
|
-
/* @__PURE__ */ E(v, { errors: [t] })
|
|
205
|
-
] })
|
|
135
|
+
})]
|
|
206
136
|
})
|
|
137
|
+
})]
|
|
138
|
+
})
|
|
139
|
+
}), o && U && /* @__PURE__ */ A(g, {
|
|
140
|
+
id: o,
|
|
141
|
+
open: U,
|
|
142
|
+
onClose: () => W(!1),
|
|
143
|
+
onDeleted: (e) => {
|
|
144
|
+
P?.(), I?.(e), W(!1);
|
|
145
|
+
}
|
|
146
|
+
})] }) : /* @__PURE__ */ A(_, {
|
|
147
|
+
open: N,
|
|
148
|
+
onOpenChange: P,
|
|
149
|
+
children: /* @__PURE__ */ A(y, {
|
|
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, {})
|
|
207
155
|
})
|
|
208
|
-
|
|
156
|
+
})
|
|
209
157
|
});
|
|
210
158
|
};
|
|
211
159
|
//#endregion
|
|
212
|
-
export {
|
|
160
|
+
export { N as ProductDetails };
|
|
@@ -1,92 +1,104 @@
|
|
|
1
1
|
import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index25.js";
|
|
2
|
-
import { useCurrencies as n } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import { Button as r } from "./
|
|
5
|
-
import { LoadingSpinner as i } from "./
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
2
|
+
import { useCurrencies as n } from "./index74.js";
|
|
3
|
+
import "./index87.js";
|
|
4
|
+
import { Button as r } from "./index120.js";
|
|
5
|
+
import { LoadingSpinner as i } from "./index65.js";
|
|
6
|
+
import { MoniteScopedProviders as a } from "./index153.js";
|
|
7
|
+
import "./index248.js";
|
|
8
|
+
import { useCreateProduct as o } from "./index291.js";
|
|
9
|
+
import "./index299.js";
|
|
10
|
+
import { PRODUCT_API_FIELD_MAP as s } from "./index302.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 "./index305.js";
|
|
12
|
+
import { getProductValidationSchema as h } from "./index306.js";
|
|
13
|
+
import { ProductFormContent as g } from "./index318.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";
|
|
16
19
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js
|
|
17
|
-
var
|
|
18
|
-
let { i18n:
|
|
19
|
-
name:
|
|
20
|
-
type:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}), [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
v.measure_unit_id,
|
|
32
|
-
C
|
|
33
|
-
]), O = g({
|
|
34
|
-
resolver: _(s(x)),
|
|
35
|
-
defaultValues: D
|
|
36
|
-
}), k = l((n) => {
|
|
37
|
-
n.preventDefault(), n.stopPropagation(), O.handleSubmit((n) => {
|
|
38
|
-
T({
|
|
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: {
|
|
39
34
|
name: n.name,
|
|
40
35
|
type: n.type,
|
|
41
36
|
price: {
|
|
42
|
-
value:
|
|
37
|
+
value: k(n.pricePerUnit, n.currency) ?? 0,
|
|
43
38
|
currency: n.currency
|
|
44
39
|
},
|
|
45
40
|
description: n.description,
|
|
46
41
|
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
47
|
-
}, {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
onError: (n) => {
|
|
52
|
-
e(O.setError, t(n), { fieldMap: o });
|
|
53
|
-
}
|
|
54
|
-
});
|
|
42
|
+
} }, { onError: (n) => {
|
|
43
|
+
e(F.setError, t(n), { fieldMap: s });
|
|
44
|
+
} });
|
|
55
45
|
})(n);
|
|
56
46
|
}, [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
O.setError
|
|
47
|
+
j,
|
|
48
|
+
k,
|
|
49
|
+
F.handleSubmit,
|
|
50
|
+
F.setError
|
|
62
51
|
]);
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
+
]
|
|
88
100
|
})
|
|
89
101
|
});
|
|
90
102
|
};
|
|
91
103
|
//#endregion
|
|
92
|
-
export {
|
|
104
|
+
export { E as CreateProduct };
|