@tesouro/embedded-components-react 0.7.58 → 0.7.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/monite-sdk.d.ts +3 -98
- package/dist/lib/monite-sdk.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +153 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1222 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +171 -1219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +6 -174
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +15 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +37 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +39 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +65 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +158 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +7 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +69 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +78 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -568
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +68 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +24 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +6 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +48 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +58 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +1 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +40 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +76 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +4 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +108 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +4 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +128 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +0 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +5 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +120 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +22 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +56 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +71 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +25 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +1 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +183 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +1 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +14 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +42 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +27 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +1 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +166 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +12 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +70 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +20 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +209 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +88 -208
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +91 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +42 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +131 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +5 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +31 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +20 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +72 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +181 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +204 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +88 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +61 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +40 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +71 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +825 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +20 -930
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +68 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +5 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +43 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -22
- 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 +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +27 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +69 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +50 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +46 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +11 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +1 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +35 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +64 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +29 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +53 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +12 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +71 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +77 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +1 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +10 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +27 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +17 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +57 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +10 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -55
- 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/index276.js +0 -2
|
@@ -1,27 +1,212 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { useCurrencies as e } from "./index66.js";
|
|
2
|
+
import "./index79.js";
|
|
3
|
+
import { Input as t } from "./index118.js";
|
|
4
|
+
import { InputGroup as n, InputGroupAddon as r, InputGroupInput as i, InputGroupTextarea as a } from "./index120.js";
|
|
5
|
+
import { Combobox as o, ComboboxCollection as s, ComboboxContent as c, ComboboxEmpty as l, ComboboxInput as u, ComboboxItem as d, ComboboxList as f } from "./index121.js";
|
|
6
|
+
import { Typography as p } from "./index153.js";
|
|
7
|
+
import { useGetMeasureUnits as m } from "./index199.js";
|
|
8
|
+
import "./index207.js";
|
|
9
|
+
import "./index214.js";
|
|
10
|
+
import { Label as h } from "./index222.js";
|
|
11
|
+
import { Field as g, FieldContent as _, FieldError as v, FieldLabel as y } from "./index224.js";
|
|
12
|
+
import { RadioGroup as b, RadioGroupItem as x } from "./index225.js";
|
|
13
|
+
import { useCallback as S, useMemo as C, useRef as w } from "react";
|
|
14
|
+
import { twMerge as T } from "tailwind-merge";
|
|
15
|
+
import { jsx as E, jsxs as D } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { useLingui as O } from "@lingui/react";
|
|
17
|
+
import { Controller as k, useFormContext as A } from "react-hook-form";
|
|
6
18
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className:
|
|
11
|
-
|
|
19
|
+
var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
|
|
20
|
+
let { i18n: P } = O(), { getSymbolFromCurrency: F } = e(), I = w(null), { data: L } = m(), R = L?.data ?? [], { control: z, formState: { errors: B } } = A(), V = C(() => R.map((e) => e.id), [R]), H = C(() => new Map(R.map((e) => [e.id, e.name])), [R]), U = S((e) => H.get(e) ?? e, [H]);
|
|
21
|
+
return /* @__PURE__ */ D("div", {
|
|
22
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
23
|
+
children: [
|
|
24
|
+
M && /* @__PURE__ */ E("div", {
|
|
25
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
26
|
+
children: /* @__PURE__ */ E(p, {
|
|
27
|
+
variant: "body1",
|
|
28
|
+
className: "ttw:font-medium",
|
|
29
|
+
children: P._("Editing {type} details", { type: N ? "product" : "service" })
|
|
30
|
+
})
|
|
31
|
+
}),
|
|
32
|
+
/* @__PURE__ */ E(k, {
|
|
33
|
+
name: "type",
|
|
34
|
+
control: z,
|
|
35
|
+
render: ({ field: e }) => /* @__PURE__ */ D("div", {
|
|
36
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
37
|
+
children: [/* @__PURE__ */ E(y, { children: P._("Type") }), /* @__PURE__ */ D(b, {
|
|
38
|
+
className: "ttw:flex",
|
|
39
|
+
value: e.value,
|
|
40
|
+
disabled: j,
|
|
41
|
+
onValueChange: e.onChange,
|
|
42
|
+
children: [/* @__PURE__ */ D("div", {
|
|
43
|
+
className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "product" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
44
|
+
children: [/* @__PURE__ */ E(x, {
|
|
45
|
+
value: "product",
|
|
46
|
+
id: "type-product",
|
|
47
|
+
className: T(e.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
48
|
+
dotClassName: T(e.value === "product" && "ttw:fill-white"),
|
|
49
|
+
disabled: j
|
|
50
|
+
}), /* @__PURE__ */ D(h, {
|
|
51
|
+
htmlFor: "type-product",
|
|
52
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
53
|
+
children: [/* @__PURE__ */ E(p, {
|
|
54
|
+
variant: "body2",
|
|
55
|
+
className: "ttw:leading-3.5",
|
|
56
|
+
children: P._("Product")
|
|
57
|
+
}), /* @__PURE__ */ E(p, {
|
|
58
|
+
variant: "caption",
|
|
59
|
+
color: "muted",
|
|
60
|
+
children: P._("A physical or digital item")
|
|
61
|
+
})]
|
|
62
|
+
})]
|
|
63
|
+
}), /* @__PURE__ */ D("div", {
|
|
64
|
+
className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "service" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
65
|
+
children: [/* @__PURE__ */ E(x, {
|
|
66
|
+
value: "service",
|
|
67
|
+
id: "type-service",
|
|
68
|
+
className: T(e.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
69
|
+
dotClassName: T(e.value === "service" && "ttw:fill-white"),
|
|
70
|
+
disabled: j
|
|
71
|
+
}), /* @__PURE__ */ D(h, {
|
|
72
|
+
htmlFor: "type-service",
|
|
73
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
74
|
+
children: [/* @__PURE__ */ E(p, {
|
|
75
|
+
variant: "body2",
|
|
76
|
+
className: "ttw:leading-3.5",
|
|
77
|
+
children: P._("Service")
|
|
78
|
+
}), /* @__PURE__ */ E(p, {
|
|
79
|
+
variant: "caption",
|
|
80
|
+
color: "muted",
|
|
81
|
+
children: P._("Work or labor you provide")
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ E(k, {
|
|
89
|
+
name: "name",
|
|
90
|
+
control: z,
|
|
91
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ E(g, { children: /* @__PURE__ */ D(_, { children: [
|
|
92
|
+
/* @__PURE__ */ E(y, {
|
|
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,
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ E(k, {
|
|
116
|
+
name: "pricePerUnit",
|
|
117
|
+
control: z,
|
|
118
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(n, {
|
|
119
|
+
className: "ttw:flex-1 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",
|
|
120
|
+
children: [/* @__PURE__ */ E(r, {
|
|
121
|
+
align: "inline-start",
|
|
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
|
+
})
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ E("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
|
|
138
|
+
/* @__PURE__ */ E(k, {
|
|
139
|
+
name: "measureUnitId",
|
|
140
|
+
control: z,
|
|
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
|
+
})
|
|
161
|
+
})
|
|
162
|
+
]
|
|
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
|
+
] })
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
]
|
|
12
209
|
});
|
|
13
|
-
}
|
|
14
|
-
function a({ className: i, dotClassName: a, ...o }) {
|
|
15
|
-
return /* @__PURE__ */ n(r.Item, {
|
|
16
|
-
"data-slot": "radio-group-item",
|
|
17
|
-
className: e("ttw:border-input ttw:text-primary ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:aspect-square ttw:size-4 ttw:shrink-0 ttw:rounded-full ttw:border ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", i),
|
|
18
|
-
...o,
|
|
19
|
-
children: /* @__PURE__ */ n(r.Indicator, {
|
|
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
|
-
}
|
|
210
|
+
};
|
|
26
211
|
//#endregion
|
|
27
|
-
export {
|
|
212
|
+
export { j as ProductFormContent };
|
|
@@ -1,212 +1,92 @@
|
|
|
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 { useLingui as O } from "@lingui/react";
|
|
17
|
-
import { Controller as k, useFormContext as A } from "react-hook-form";
|
|
1
|
+
import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index17.js";
|
|
2
|
+
import { useCurrencies as n } from "./index66.js";
|
|
3
|
+
import "./index79.js";
|
|
4
|
+
import { Button as r } from "./index117.js";
|
|
5
|
+
import { LoadingSpinner as i } from "./index56.js";
|
|
6
|
+
import { useUpdateProduct as a } from "./index206.js";
|
|
7
|
+
import "./index194.js";
|
|
8
|
+
import { PRODUCT_API_FIELD_MAP as o } from "./index210.js";
|
|
9
|
+
import { getProductValidationSchema as s } from "./index214.js";
|
|
10
|
+
import { ProductFormContent as c } from "./index226.js";
|
|
11
|
+
import { useCallback as l, useId as u, useMemo as d } from "react";
|
|
12
|
+
import { jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
13
|
+
import { useLingui as m } from "@lingui/react";
|
|
14
|
+
import { FormProvider as h, useForm as g } from "react-hook-form";
|
|
15
|
+
import { zodResolver as _ } from "@hookform/resolvers/zod";
|
|
18
16
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js
|
|
19
|
-
var
|
|
20
|
-
let { i18n:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ E(g, { children: /* @__PURE__ */ D(_, { children: [
|
|
92
|
-
/* @__PURE__ */ E(y, {
|
|
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,
|
|
114
|
-
children: [
|
|
115
|
-
/* @__PURE__ */ E(k, {
|
|
116
|
-
name: "pricePerUnit",
|
|
117
|
-
control: z,
|
|
118
|
-
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(n, {
|
|
119
|
-
className: "ttw:flex-1 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",
|
|
120
|
-
children: [/* @__PURE__ */ E(r, {
|
|
121
|
-
align: "inline-start",
|
|
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
|
-
})
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ E("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
|
|
138
|
-
/* @__PURE__ */ E(k, {
|
|
139
|
-
name: "measureUnitId",
|
|
140
|
-
control: z,
|
|
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
|
-
})
|
|
161
|
-
})
|
|
162
|
-
]
|
|
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
|
-
] })
|
|
206
|
-
})
|
|
207
|
-
})
|
|
208
|
-
]
|
|
17
|
+
var v = ({ product: v, handleClose: y, onUpdate: b }) => {
|
|
18
|
+
let { i18n: x } = m(), { formatToMinorUnits: S, formatFromMinorUnits: C } = n(), w = `product-edit-form-${u()}`, { mutate: T, isPending: E } = a(v.id), D = d(() => ({
|
|
19
|
+
name: v.name,
|
|
20
|
+
type: v.type ?? "product",
|
|
21
|
+
pricePerUnit: C(v.price?.value, v.price?.currency) ?? void 0,
|
|
22
|
+
currency: v.price?.currency ?? "USD",
|
|
23
|
+
description: v.description ?? "",
|
|
24
|
+
measureUnitId: v.measure_unit_id ?? void 0
|
|
25
|
+
}), [
|
|
26
|
+
v.name,
|
|
27
|
+
v.type,
|
|
28
|
+
v.price?.value,
|
|
29
|
+
v.price?.currency,
|
|
30
|
+
v.description,
|
|
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({
|
|
39
|
+
name: n.name,
|
|
40
|
+
type: n.type,
|
|
41
|
+
price: {
|
|
42
|
+
value: S(n.pricePerUnit, n.currency) ?? n.pricePerUnit,
|
|
43
|
+
currency: n.currency
|
|
44
|
+
},
|
|
45
|
+
description: n.description,
|
|
46
|
+
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
47
|
+
}, {
|
|
48
|
+
onSuccess: (e) => {
|
|
49
|
+
b?.(e);
|
|
50
|
+
},
|
|
51
|
+
onError: (n) => {
|
|
52
|
+
e(O.setError, t(n), { fieldMap: o });
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
})(n);
|
|
56
|
+
}, [
|
|
57
|
+
T,
|
|
58
|
+
S,
|
|
59
|
+
b,
|
|
60
|
+
O.handleSubmit,
|
|
61
|
+
O.setError
|
|
62
|
+
]);
|
|
63
|
+
return /* @__PURE__ */ f(h, {
|
|
64
|
+
...O,
|
|
65
|
+
children: /* @__PURE__ */ p("form", {
|
|
66
|
+
id: w,
|
|
67
|
+
onSubmit: k,
|
|
68
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100",
|
|
69
|
+
children: [/* @__PURE__ */ f(c, {
|
|
70
|
+
isLoading: E,
|
|
71
|
+
isProduct: v?.type === "product",
|
|
72
|
+
isEditMode: !0
|
|
73
|
+
}), /* @__PURE__ */ p("div", {
|
|
74
|
+
className: "ttw:flex ttw:gap-4 ttw:pt-6",
|
|
75
|
+
children: [/* @__PURE__ */ f(r, {
|
|
76
|
+
type: "button",
|
|
77
|
+
variant: "outline",
|
|
78
|
+
className: "ttw:border-border ttw:flex-1",
|
|
79
|
+
onClick: y,
|
|
80
|
+
children: x._("Cancel")
|
|
81
|
+
}), /* @__PURE__ */ p(r, {
|
|
82
|
+
type: "submit",
|
|
83
|
+
className: "ttw:flex-1",
|
|
84
|
+
disabled: E || !O.formState.isDirty,
|
|
85
|
+
children: [E && /* @__PURE__ */ f(i, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), x._("Save")]
|
|
86
|
+
})]
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
209
89
|
});
|
|
210
90
|
};
|
|
211
91
|
//#endregion
|
|
212
|
-
export {
|
|
92
|
+
export { v as ProductEditForm };
|
|
@@ -1,92 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useUpdateProduct as a } from "./index207.js";
|
|
7
|
-
import "./index195.js";
|
|
8
|
-
import { PRODUCT_API_FIELD_MAP as o } from "./index211.js";
|
|
9
|
-
import { getProductValidationSchema as s } from "./index215.js";
|
|
10
|
-
import { ProductFormContent as c } from "./index227.js";
|
|
11
|
-
import { useCallback as l, useId as u, useMemo as d } from "react";
|
|
12
|
-
import { jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
13
|
-
import { useLingui as m } from "@lingui/react";
|
|
14
|
-
import { FormProvider as h, useForm as g } from "react-hook-form";
|
|
15
|
-
import { zodResolver as _ } from "@hookform/resolvers/zod";
|
|
1
|
+
import { CenteredContentBox as e } from "./index54.js";
|
|
2
|
+
import "./index55.js";
|
|
3
|
+
import { Typography as t } from "./index153.js";
|
|
4
|
+
import { SearchX as n } from "lucide-react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
16
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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({
|
|
39
|
-
name: n.name,
|
|
40
|
-
type: n.type,
|
|
41
|
-
price: {
|
|
42
|
-
value: S(n.pricePerUnit, n.currency) ?? n.pricePerUnit,
|
|
43
|
-
currency: n.currency
|
|
44
|
-
},
|
|
45
|
-
description: n.description,
|
|
46
|
-
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
47
|
-
}, {
|
|
48
|
-
onSuccess: (e) => {
|
|
49
|
-
b?.(e);
|
|
50
|
-
},
|
|
51
|
-
onError: (n) => {
|
|
52
|
-
e(O.setError, t(n), { fieldMap: o });
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
})(n);
|
|
56
|
-
}, [
|
|
57
|
-
T,
|
|
58
|
-
S,
|
|
59
|
-
b,
|
|
60
|
-
O.handleSubmit,
|
|
61
|
-
O.setError
|
|
62
|
-
]);
|
|
63
|
-
return /* @__PURE__ */ f(h, {
|
|
64
|
-
...O,
|
|
65
|
-
children: /* @__PURE__ */ p("form", {
|
|
66
|
-
id: w,
|
|
67
|
-
onSubmit: k,
|
|
68
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100",
|
|
69
|
-
children: [/* @__PURE__ */ f(c, {
|
|
70
|
-
isLoading: E,
|
|
71
|
-
isProduct: v?.type === "product",
|
|
72
|
-
isEditMode: !0
|
|
73
|
-
}), /* @__PURE__ */ p("div", {
|
|
74
|
-
className: "ttw:flex ttw:gap-4 ttw:pt-6",
|
|
75
|
-
children: [/* @__PURE__ */ f(r, {
|
|
76
|
-
type: "button",
|
|
77
|
-
variant: "outline",
|
|
78
|
-
className: "ttw:border-border ttw:flex-1",
|
|
79
|
-
onClick: y,
|
|
80
|
-
children: x._("Cancel")
|
|
81
|
-
}), /* @__PURE__ */ p(r, {
|
|
82
|
-
type: "submit",
|
|
83
|
-
className: "ttw:flex-1",
|
|
84
|
-
disabled: E || !O.formState.isDirty,
|
|
85
|
-
children: [E && /* @__PURE__ */ f(i, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), x._("Save")]
|
|
86
|
-
})]
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
};
|
|
7
|
+
var a = ({ title: a, description: o }) => /* @__PURE__ */ r(e, { children: /* @__PURE__ */ i("div", {
|
|
8
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4",
|
|
9
|
+
children: [/* @__PURE__ */ r(n, { className: "ttw:text-destructive ttw:size-8" }), /* @__PURE__ */ i("div", {
|
|
10
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
|
|
11
|
+
children: [/* @__PURE__ */ r(t, {
|
|
12
|
+
variant: "h4",
|
|
13
|
+
children: a
|
|
14
|
+
}), /* @__PURE__ */ r(t, {
|
|
15
|
+
variant: "body1",
|
|
16
|
+
className: "ttw:text-center",
|
|
17
|
+
children: o
|
|
18
|
+
})]
|
|
19
|
+
})]
|
|
20
|
+
}) });
|
|
91
21
|
//#endregion
|
|
92
|
-
export {
|
|
22
|
+
export { a as NotFound };
|