@tesouro/embedded-components-react 0.5.176 → 0.5.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/monite-sdk.js +64 -64
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +31 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +67 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +7 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +13 -348
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +347 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +6 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +112 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +33 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +11 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +8 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +11 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +4 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +1 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +22 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +19 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +51 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +0 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +38 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +59 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +26 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +29 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +56 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +11 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +117 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +48 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +15 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +38 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +5 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +15 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +24 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +75 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +20 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +445 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +2 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +38 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +76 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +62 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +28 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +43 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +46 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +122 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +99 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +206 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +155 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +51 -290
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +299 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +68 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +23 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +69 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +82 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +13 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +73 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +0 -577
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +577 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +10 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +16 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +77 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +62 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +120 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +21 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +6 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +34 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +7 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +54 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +71 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +28 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +57 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +18 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +185 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +3 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +61 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +28 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +7 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +20 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +4 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +115 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +1 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +9 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +38 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +6 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +17 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +5 -410
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +412 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +2 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +179 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +53 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +10 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +60 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +83 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +21 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +160 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +88 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +171 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +209 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +32 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +26 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +35 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +153 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +68 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +215 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +0 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +82 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +14 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +110 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +163 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +15 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +5 -408
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +407 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +83 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +199 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +59 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +43 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +28 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +84 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +132 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +37 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +53 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +59 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +135 -549
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +551 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +16 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +79 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +142 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +34 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +62 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +67 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +141 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +58 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +85 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +19 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +72 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +99 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +35 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +172 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +5 -400
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +408 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +22 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +14 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +45 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +14 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +40 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +137 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +114 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +40 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +22 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +19 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +72 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +18 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +177 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +137 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +114 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +45 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +16 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +20 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +26 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +36 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +78 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +50 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +35 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +92 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +36 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +126 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +106 -785
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +50 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +783 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +92 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +102 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +23 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +14 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +166 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +210 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +82 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +17 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +154 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +104 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +43 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +4 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +73 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +19 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +8 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +5 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +219 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +11 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +32 -202
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +169 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +198 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +97 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +63 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +54 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +88 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +37 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +77 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +83 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +14 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +26 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +16 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +23 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +60 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +29 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +33 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +16 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +29 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +17 -20
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +28 -30
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +31 -33
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +29 -31
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +36 -38
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +29 -31
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +36 -38
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -46
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +33 -33
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +38 -37
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -30
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +0 -25
|
@@ -1,19 +1,212 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useCurrencies as e } from "./index62.js";
|
|
2
|
+
import { Input as t } from "./index88.js";
|
|
3
|
+
import { InputGroup as n, InputGroupAddon as r, InputGroupInput as i, InputGroupTextarea as a } from "./index109.js";
|
|
4
|
+
import { Combobox as o, ComboboxCollection as s, ComboboxContent as c, ComboboxEmpty as l, ComboboxInput as u, ComboboxItem as d, ComboboxList as f } from "./index110.js";
|
|
5
|
+
import "./index224.js";
|
|
6
|
+
import { Typography as p } from "./index61.js";
|
|
7
|
+
import { Label as m } from "./index86.js";
|
|
8
|
+
import { Field as h, FieldContent as g, FieldError as _, FieldLabel as v } from "./index87.js";
|
|
9
|
+
import { RadioGroup as y, RadioGroupItem as b } from "./index89.js";
|
|
10
|
+
import { useGetMeasureUnits as x } from "./index451.js";
|
|
11
|
+
import "./index474.js";
|
|
12
|
+
import "./index487.js";
|
|
13
|
+
import { useCallback as S, useMemo as C, useRef as w } from "react";
|
|
14
|
+
import { jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
|
|
15
|
+
import { useLingui as D } from "@lingui/react";
|
|
16
|
+
import { twMerge as O } from "tailwind-merge";
|
|
17
|
+
import { Controller as k, useFormContext as A } from "react-hook-form";
|
|
4
18
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
19
|
+
var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
|
|
20
|
+
let { i18n: P } = D(), { getSymbolFromCurrency: F } = e(), I = w(null), { data: L } = x(), 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__ */ E("div", {
|
|
22
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
23
|
+
children: [
|
|
24
|
+
M && /* @__PURE__ */ T("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__ */ T(p, {
|
|
27
|
+
variant: "body1",
|
|
28
|
+
className: "ttw:font-medium",
|
|
29
|
+
children: P._("Editing {type} details", { type: N ? "product" : "service" })
|
|
30
|
+
})
|
|
31
|
+
}),
|
|
32
|
+
/* @__PURE__ */ T(k, {
|
|
33
|
+
name: "type",
|
|
34
|
+
control: z,
|
|
35
|
+
render: ({ field: e }) => /* @__PURE__ */ E("div", {
|
|
36
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
37
|
+
children: [/* @__PURE__ */ T(v, { children: P._("Type") }), /* @__PURE__ */ E(y, {
|
|
38
|
+
className: "ttw:flex",
|
|
39
|
+
value: e.value,
|
|
40
|
+
disabled: j,
|
|
41
|
+
onValueChange: e.onChange,
|
|
42
|
+
children: [/* @__PURE__ */ E("div", {
|
|
43
|
+
className: O("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__ */ T(b, {
|
|
45
|
+
value: "product",
|
|
46
|
+
id: "type-product",
|
|
47
|
+
className: O(e.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
48
|
+
dotClassName: O(e.value === "product" && "ttw:fill-white"),
|
|
49
|
+
disabled: j
|
|
50
|
+
}), /* @__PURE__ */ E(m, {
|
|
51
|
+
htmlFor: "type-product",
|
|
52
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
53
|
+
children: [/* @__PURE__ */ T(p, {
|
|
54
|
+
variant: "body2",
|
|
55
|
+
className: "ttw:leading-3.5",
|
|
56
|
+
children: P._("Product")
|
|
57
|
+
}), /* @__PURE__ */ T(p, {
|
|
58
|
+
variant: "caption",
|
|
59
|
+
color: "muted",
|
|
60
|
+
children: P._("A physical or digital item")
|
|
61
|
+
})]
|
|
62
|
+
})]
|
|
63
|
+
}), /* @__PURE__ */ E("div", {
|
|
64
|
+
className: O("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__ */ T(b, {
|
|
66
|
+
value: "service",
|
|
67
|
+
id: "type-service",
|
|
68
|
+
className: O(e.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
69
|
+
dotClassName: O(e.value === "service" && "ttw:fill-white"),
|
|
70
|
+
disabled: j
|
|
71
|
+
}), /* @__PURE__ */ E(m, {
|
|
72
|
+
htmlFor: "type-service",
|
|
73
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
74
|
+
children: [/* @__PURE__ */ T(p, {
|
|
75
|
+
variant: "body2",
|
|
76
|
+
className: "ttw:leading-3.5",
|
|
77
|
+
children: P._("Service")
|
|
78
|
+
}), /* @__PURE__ */ T(p, {
|
|
79
|
+
variant: "caption",
|
|
80
|
+
color: "muted",
|
|
81
|
+
children: P._("Work or labor you provide")
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ T(k, {
|
|
89
|
+
name: "name",
|
|
90
|
+
control: z,
|
|
91
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ T(h, { children: /* @__PURE__ */ E(g, { children: [
|
|
92
|
+
/* @__PURE__ */ T(v, {
|
|
93
|
+
htmlFor: e.name,
|
|
94
|
+
children: P._("Name")
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ T(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__ */ T(_, { errors: [n] })
|
|
105
|
+
] }) })
|
|
106
|
+
}),
|
|
107
|
+
/* @__PURE__ */ E("div", {
|
|
108
|
+
className: "ttw:w-1/2 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ T(v, { children: P._("Price per unit") }),
|
|
111
|
+
/* @__PURE__ */ E("div", {
|
|
112
|
+
className: O("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__ */ T(k, {
|
|
116
|
+
name: "pricePerUnit",
|
|
117
|
+
control: z,
|
|
118
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(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__ */ T(r, {
|
|
121
|
+
align: "inline-start",
|
|
122
|
+
children: F("USD")
|
|
123
|
+
}), /* @__PURE__ */ T(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__ */ T("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
|
|
138
|
+
/* @__PURE__ */ T(k, {
|
|
139
|
+
name: "measureUnitId",
|
|
140
|
+
control: z,
|
|
141
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(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__ */ T(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__ */ T(c, {
|
|
154
|
+
container: I.current,
|
|
155
|
+
children: /* @__PURE__ */ E(f, { children: [/* @__PURE__ */ T(l, { children: P._("No units found") }), /* @__PURE__ */ T(s, { children: (e) => /* @__PURE__ */ T(d, {
|
|
156
|
+
value: e,
|
|
157
|
+
children: U(e)
|
|
158
|
+
}, e) })] })
|
|
159
|
+
})]
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ T(_, { errors: [B.pricePerUnit, B.measureUnitId] })
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ T(k, {
|
|
168
|
+
name: "description",
|
|
169
|
+
control: z,
|
|
170
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ T(h, {
|
|
171
|
+
className: "ttw:block",
|
|
172
|
+
children: /* @__PURE__ */ E(g, { children: [
|
|
173
|
+
/* @__PURE__ */ E(v, {
|
|
174
|
+
htmlFor: e.name,
|
|
175
|
+
className: "ttw:gap-1",
|
|
176
|
+
children: [P._("Description"), /* @__PURE__ */ T(p, {
|
|
177
|
+
variant: "body2",
|
|
178
|
+
color: "muted",
|
|
179
|
+
className: "ttw:leading-snug",
|
|
180
|
+
children: P._("(optional)")
|
|
181
|
+
})]
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ E(n, {
|
|
184
|
+
className: O(M && "ttw:bg-white"),
|
|
185
|
+
children: [/* @__PURE__ */ T(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__ */ T(r, {
|
|
194
|
+
align: "block-end",
|
|
195
|
+
className: "ttw:cursor-default",
|
|
196
|
+
children: /* @__PURE__ */ T(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__ */ T(_, { errors: [t] })
|
|
205
|
+
] })
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
});
|
|
210
|
+
};
|
|
18
211
|
//#endregion
|
|
19
|
-
export {
|
|
212
|
+
export { j as ProductFormContent };
|
|
@@ -1,160 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { useMoniteContext as t } from "./index46.js";
|
|
1
|
+
import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index26.js";
|
|
4
2
|
import { useCurrencies as n } from "./index62.js";
|
|
5
3
|
import { Button as r } from "./index55.js";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { LoadingSpinner as d } from "./index50.js";
|
|
4
|
+
import "./index224.js";
|
|
5
|
+
import { LoadingSpinner as i } from "./index50.js";
|
|
9
6
|
import "./index51.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { ProductEditForm as C } from "./index549.js";
|
|
20
|
-
import { ProductDetailLine as w } from "./index550.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";
|
|
7
|
+
import { getProductValidationSchema as a } from "./index474.js";
|
|
8
|
+
import { useUpdateProduct as o } from "./index486.js";
|
|
9
|
+
import { PRODUCT_API_FIELD_MAP as s } from "./index546.js";
|
|
10
|
+
import { ProductFormContent as c } from "./index550.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";
|
|
25
16
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js
|
|
26
|
-
var
|
|
27
|
-
let { i18n:
|
|
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
|
-
|
|
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 } = o(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: _(a(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: s });
|
|
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")]
|
|
84
86
|
})]
|
|
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(d, {})
|
|
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(_, {
|
|
97
|
-
variant: "body1",
|
|
98
|
-
className: "ttw:font-medium",
|
|
99
|
-
children: R._("{type} details", { type: J ? "Product" : "Service" })
|
|
100
|
-
}), /* @__PURE__ */ A(_, {
|
|
101
|
-
variant: "body2",
|
|
102
|
-
color: "muted",
|
|
103
|
-
children: J ? R._("A physical or digital item") : R._("Work or labor you provide")
|
|
104
|
-
})]
|
|
105
|
-
}), !V && Z && /* @__PURE__ */ A(r, {
|
|
106
|
-
type: "button",
|
|
107
|
-
variant: "ghost",
|
|
108
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
109
|
-
onClick: () => H(!0),
|
|
110
|
-
children: R._("Edit")
|
|
111
|
-
})]
|
|
112
|
-
}), V && G ? /* @__PURE__ */ A(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",
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ A(w, {
|
|
122
|
-
label: R._("{type} name", { type: J ? "Product" : "Service" }),
|
|
123
|
-
value: G?.name ?? "-"
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ A(w, {
|
|
126
|
-
label: R._("Price per unit"),
|
|
127
|
-
value: G?.price ? B(G.price.value, G.price.currency) : "-"
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ A(w, {
|
|
130
|
-
label: R._("Description"),
|
|
131
|
-
value: G?.description || "-",
|
|
132
|
-
isLast: !0
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
})]
|
|
136
|
-
})
|
|
137
87
|
})]
|
|
138
88
|
})
|
|
139
|
-
}), i && U && /* @__PURE__ */ A(S, {
|
|
140
|
-
id: i,
|
|
141
|
-
open: U,
|
|
142
|
-
onClose: () => W(!1),
|
|
143
|
-
onDeleted: (e) => {
|
|
144
|
-
P?.(), I?.(e), W(!1);
|
|
145
|
-
}
|
|
146
|
-
})] }) : /* @__PURE__ */ A(a, {
|
|
147
|
-
open: N,
|
|
148
|
-
onOpenChange: P,
|
|
149
|
-
children: /* @__PURE__ */ A(s, {
|
|
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(b, {})
|
|
155
|
-
})
|
|
156
|
-
})
|
|
157
89
|
});
|
|
158
90
|
};
|
|
159
91
|
//#endregion
|
|
160
|
-
export {
|
|
92
|
+
export { v as ProductEditForm };
|
|
@@ -1,104 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./index223.js";
|
|
5
|
-
import { MoniteScopedProviders as i } from "./index242.js";
|
|
6
|
-
import { Sheet as a, SheetClose as o, SheetContent as s, SheetDescription as c, SheetFooter as l, SheetHeader as u, SheetTitle as d } from "./index49.js";
|
|
7
|
-
import { LoadingSpinner as f } from "./index50.js";
|
|
8
|
-
import "./index51.js";
|
|
9
|
-
import { getProductValidationSchema as p } from "./index473.js";
|
|
10
|
-
import { useCreateProduct as m } from "./index481.js";
|
|
11
|
-
import "./index486.js";
|
|
12
|
-
import { PRODUCT_API_FIELD_MAP as h } from "./index544.js";
|
|
13
|
-
import { ProductFormContent as g } from "./index548.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";
|
|
1
|
+
import { Typography as e } from "./index61.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { twMerge as r } from "tailwind-merge";
|
|
19
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
j({ body: {
|
|
34
|
-
name: n.name,
|
|
35
|
-
type: n.type,
|
|
36
|
-
price: {
|
|
37
|
-
value: k(n.pricePerUnit, n.currency) ?? 0,
|
|
38
|
-
currency: n.currency
|
|
39
|
-
},
|
|
40
|
-
description: n.description,
|
|
41
|
-
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
42
|
-
} }, { onError: (n) => {
|
|
43
|
-
e(F.setError, t(n), { fieldMap: h });
|
|
44
|
-
} });
|
|
45
|
-
})(n);
|
|
46
|
-
}, [
|
|
47
|
-
j,
|
|
48
|
-
k,
|
|
49
|
-
F.handleSubmit,
|
|
50
|
-
F.setError
|
|
51
|
-
]);
|
|
52
|
-
return /* @__PURE__ */ b(a, {
|
|
53
|
-
open: E,
|
|
54
|
-
onOpenChange: i,
|
|
55
|
-
children: /* @__PURE__ */ x(s, {
|
|
56
|
-
className: "ttw:gap-0",
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ x(u, {
|
|
59
|
-
className: "ttw:border-b ttw:border-border",
|
|
60
|
-
children: [/* @__PURE__ */ b(d, {
|
|
61
|
-
className: "ttw:text-2xl",
|
|
62
|
-
children: O._("Add a product or service")
|
|
63
|
-
}), /* @__PURE__ */ b(c, {
|
|
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(l, {
|
|
81
|
-
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
82
|
-
children: [/* @__PURE__ */ b(o, {
|
|
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(f, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), O._("Save {type}", { type: I })]
|
|
97
|
-
})]
|
|
98
|
-
})
|
|
99
|
-
]
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
};
|
|
5
|
+
var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ n("li", {
|
|
6
|
+
className: r("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
|
|
7
|
+
children: [/* @__PURE__ */ t(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__ */ t(e, {
|
|
13
|
+
variant: "body2",
|
|
14
|
+
className: "ttw:font-medium",
|
|
15
|
+
children: a
|
|
16
|
+
}) : a]
|
|
17
|
+
});
|
|
103
18
|
//#endregion
|
|
104
|
-
export {
|
|
19
|
+
export { i as ProductDetailLine };
|