@tesouro/embedded-components-react 0.2.218 → 0.2.219
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/ReceivablesWidget.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +32 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +60 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +398 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +69 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +406 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +46 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +75 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +55 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +217 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +10 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +38 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +8 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +75 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +59 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +5 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +227 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +467 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +7 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +110 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +533 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +23 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +74 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +33 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +31 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +25 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +11 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +117 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +47 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +45 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +14 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +45 -227
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +15 -470
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +138 -525
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +70 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +24 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +3 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +57 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +25 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +93 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +97 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +14 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +99 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +20 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +2 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +10 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +27 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +116 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +69 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +12 -407
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +32 -141
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +53 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +25 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +74 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +32 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +23 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +49 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +82 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +33 -360
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +66 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +356 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +117 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +6 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +8 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +19 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +54 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +15 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +35 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +15 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +27 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +110 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +12 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +19 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +22 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +34 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +58 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +45 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +29 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +91 -140
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +40 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +142 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +142 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +86 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +23 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +183 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +24 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +21 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +17 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +168 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +130 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +158 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +10 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +15 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +66 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +58 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +6 -169
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +9 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +56 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +22 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +62 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +14 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +25 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +5 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +126 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +47 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +112 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +108 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +43 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +205 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +70 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +63 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +28 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +126 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +72 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +157 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +28 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +29 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +78 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +149 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +30 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +4 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +17 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +34 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +28 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +31 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +18 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +29 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +40 -211
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +63 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +92 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +110 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +82 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +54 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +29 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +51 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +17 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +14 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +73 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +76 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +39 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +39 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +346 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +303 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +100 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +158 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +264 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +23 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +89 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +210 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +481 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +168 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +19 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +57 -481
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +32 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +58 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +29 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +119 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +22 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +43 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +53 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +32 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +50 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +49 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +24 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +42 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +15 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +72 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +94 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +29 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +9 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +10 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +6 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +255 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +84 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +17 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +83 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +269 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +37 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +61 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +43 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +136 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +116 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +80 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +94 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +10 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +2 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +279 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +47 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +19 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +50 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +18 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +11 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +67 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +21 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +2 -269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +32 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +34 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +53 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +31 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +23 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +121 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +16 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +16 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +15 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +73 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +16 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +3 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +7 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +49 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +16 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +90 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +38 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +32 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +65 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +28 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +14 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +29 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +56 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +57 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +39 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +32 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +23 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +100 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +108 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +71 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +66 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +36 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +12 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +27 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +15 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +35 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +18 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +30 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +39 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +95 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +15 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +75 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +19 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +9 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +53 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +68 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +32 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +40 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +44 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +81 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +54 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +41 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +35 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +13 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +16 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +58 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +28 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +72 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +83 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +52 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +54 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +39 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +48 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/package.json +1 -1
|
@@ -1,29 +1,103 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import "react
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as r, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as h } from "./index84.js";
|
|
3
|
+
import { PDFSettings as q } from "./index216.js";
|
|
4
|
+
import { useForm as S, FormProvider as D } from "react-hook-form";
|
|
5
|
+
import { useLingui as k } from "@lingui/react";
|
|
6
|
+
import { useDiscardChangesContext as N } from "./index182.js";
|
|
7
|
+
import { usePatchEntitySettings as w } from "./index217.js";
|
|
8
|
+
import { safeZodResolver as F } from "./index218.js";
|
|
9
|
+
import { useEffect as P } from "react";
|
|
10
|
+
import { InvoiceNumbering as C } from "./index219.js";
|
|
11
|
+
import { getInvoiceSettingsFormSchema as I } from "./index220.js";
|
|
12
|
+
import { getBankDisplayValue as d, buildDocumentRendering as V } from "./index221.js";
|
|
13
|
+
const Z = ({
|
|
14
|
+
entityId: _,
|
|
15
|
+
entitySettings: e,
|
|
16
|
+
nextNumbers: i,
|
|
17
|
+
isDialog: c
|
|
13
18
|
}) => {
|
|
14
19
|
const {
|
|
15
|
-
i18n:
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
i18n: a
|
|
21
|
+
} = k(), {
|
|
22
|
+
handleShowModal: s
|
|
23
|
+
} = N(), {
|
|
24
|
+
mutate: m,
|
|
25
|
+
isPending: p
|
|
26
|
+
} = w(_), o = S({
|
|
27
|
+
resolver: F(I(a, i)),
|
|
28
|
+
defaultValues: {
|
|
29
|
+
credit_note: e?.document_ids?.document_type_prefix?.credit_note ?? "CN",
|
|
30
|
+
credit_note_number: i?.credit_note ?? 1,
|
|
31
|
+
delivery_note: e?.document_ids?.document_type_prefix?.delivery_note ?? "DN",
|
|
32
|
+
delivery_note_number: i?.delivery_note ?? 1,
|
|
33
|
+
invoice: e?.document_ids?.document_type_prefix?.invoice ?? "INV",
|
|
34
|
+
invoice_number: i?.invoice ?? 1,
|
|
35
|
+
purchase_order: e?.document_ids?.document_type_prefix?.purchase_order ?? "PO",
|
|
36
|
+
purchase_order_number: i?.purchase_order ?? 1,
|
|
37
|
+
quote: e?.document_ids?.document_type_prefix?.quote ?? "Q",
|
|
38
|
+
quote_number: i?.quote ?? 1,
|
|
39
|
+
include_date: e?.document_ids?.include_date ?? !1,
|
|
40
|
+
min_digits: e?.document_ids?.min_digits ?? 5,
|
|
41
|
+
prefix: e?.document_ids?.prefix ?? "",
|
|
42
|
+
separator: e?.document_ids?.separator ?? "-",
|
|
43
|
+
invoice_bank_display: d(e?.document_rendering?.invoice, !!(e?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
44
|
+
credit_note_bank_display: d(e?.document_rendering?.credit_note, !!(e?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
45
|
+
quote_bank_display: d(e?.document_rendering?.quote, !!(e?.document_rendering?.display_organization_bank_account ?? !1)),
|
|
46
|
+
update_paid_invoices: e?.generate_paid_invoice_pdf ?? !1,
|
|
47
|
+
quote_signature_display: e?.document_rendering?.quote?.display_signature ?? !1,
|
|
48
|
+
quote_electronic_signature: e?.quote_signature_required ?? !1
|
|
49
|
+
}
|
|
50
|
+
}), {
|
|
51
|
+
control: u,
|
|
52
|
+
handleSubmit: l,
|
|
53
|
+
formState: n,
|
|
54
|
+
reset: g
|
|
55
|
+
} = o, f = (t) => {
|
|
56
|
+
const {
|
|
57
|
+
dirtyFields: y
|
|
58
|
+
} = n, v = V(e?.document_rendering, t), b = y.invoice_number;
|
|
59
|
+
m({
|
|
60
|
+
path: {
|
|
61
|
+
entity_id: _
|
|
62
|
+
},
|
|
63
|
+
body: {
|
|
64
|
+
...e,
|
|
65
|
+
document_ids: {
|
|
66
|
+
document_type_prefix: {
|
|
67
|
+
invoice: t.invoice,
|
|
68
|
+
credit_note: t.credit_note,
|
|
69
|
+
delivery_note: t.delivery_note,
|
|
70
|
+
purchase_order: t.purchase_order,
|
|
71
|
+
quote: t.quote
|
|
72
|
+
},
|
|
73
|
+
...b && {
|
|
74
|
+
next_number: {
|
|
75
|
+
invoice: t.invoice_number
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
min_digits: t.min_digits,
|
|
79
|
+
separator: t.separator,
|
|
80
|
+
include_date: t.include_date,
|
|
81
|
+
prefix: t.prefix || null
|
|
82
|
+
},
|
|
83
|
+
document_rendering: v,
|
|
84
|
+
generate_paid_invoice_pdf: t.update_paid_invoices,
|
|
85
|
+
quote_signature_required: t.quote_electronic_signature === !0 || t.quote_electronic_signature === "true"
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
onSuccess: () => {
|
|
89
|
+
g(o.getValues());
|
|
90
|
+
}
|
|
91
|
+
});
|
|
22
92
|
};
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
}
|
|
93
|
+
return P(() => {
|
|
94
|
+
s(n?.isDirty);
|
|
95
|
+
}, [n?.isDirty, s]), /* @__PURE__ */ r(D, { ...o, children: /* @__PURE__ */ x("form", { className: "ttw:flex ttw:flex-col ttw:gap-6", onSubmit: l(f), children: [
|
|
96
|
+
/* @__PURE__ */ r(C, { control: u }),
|
|
97
|
+
/* @__PURE__ */ r(q, { control: u, isDialog: c }),
|
|
98
|
+
/* @__PURE__ */ r(h, { type: "submit", className: "ttw:w-fit", disabled: p || !n?.isDirty, children: a._("Save changes") })
|
|
99
|
+
] }) });
|
|
26
100
|
};
|
|
27
101
|
export {
|
|
28
|
-
|
|
102
|
+
Z as TemplateSettingsContent
|
|
29
103
|
};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as t, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ConfirmationModal as s } from "./index215.js";
|
|
3
|
+
import { Typography as i } from "./index85.js";
|
|
4
|
+
import { useLingui as l } from "@lingui/react";
|
|
5
5
|
const d = ({
|
|
6
|
-
|
|
6
|
+
open: a,
|
|
7
|
+
onClose: e,
|
|
8
|
+
onContinue: r
|
|
7
9
|
}) => {
|
|
8
10
|
const {
|
|
9
|
-
i18n:
|
|
10
|
-
} =
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
i18n: o
|
|
12
|
+
} = l();
|
|
13
|
+
return /* @__PURE__ */ t(s, { open: a, title: o._("You have unsaved changes"), confirmLabel: o._("Quit without saving"), cancelLabel: o._("Cancel"), onClose: e, onConfirm: r, children: [
|
|
14
|
+
/* @__PURE__ */ n(i, { variant: "body1", children: o._("Any unsaved changes will be lost.") }),
|
|
15
|
+
/* @__PURE__ */ n(i, { variant: "body1", children: o._("Are you sure you want to quit without saving?") })
|
|
16
|
+
] });
|
|
12
17
|
};
|
|
13
18
|
export {
|
|
14
|
-
d as
|
|
19
|
+
d as DiscardChangesModal
|
|
15
20
|
};
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { InputGroup as i, InputGroupAddon as m, InputGroupInput as p } from "./index101.js";
|
|
4
|
-
import { useLingui as l } from "@lingui/react";
|
|
5
|
-
import { Search as u } from "lucide-react";
|
|
6
|
-
import { FILTER_TYPE_SEARCH as c } from "./index188.js";
|
|
7
|
-
const x = ({
|
|
8
|
-
onChangeFilter: r
|
|
9
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as i } from "./index57.js";
|
|
2
|
+
const o = (t, e = !0) => {
|
|
10
3
|
const {
|
|
11
|
-
|
|
12
|
-
} =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
api: n
|
|
5
|
+
} = i();
|
|
6
|
+
return n.finops.getEntitiesIdSettings.useQuery({
|
|
7
|
+
path: {
|
|
8
|
+
entity_id: t
|
|
9
|
+
}
|
|
10
|
+
}, {
|
|
11
|
+
enabled: e && !!t
|
|
12
|
+
});
|
|
19
13
|
};
|
|
20
14
|
export {
|
|
21
|
-
|
|
15
|
+
o as useGetEntitySettings
|
|
22
16
|
};
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useMoniteContext as m } from "./index57.js";
|
|
4
|
-
import { Skeleton as n } from "./index132.js";
|
|
5
|
-
import { Typography as s } from "./index85.js";
|
|
6
|
-
const c = a(({
|
|
7
|
-
unitId: e
|
|
8
|
-
}) => {
|
|
1
|
+
import { useMoniteContext as o } from "./index57.js";
|
|
2
|
+
const s = (t, e = !0) => {
|
|
9
3
|
const {
|
|
10
|
-
api:
|
|
11
|
-
} =
|
|
12
|
-
|
|
13
|
-
isLoading: i
|
|
14
|
-
} = r.finops.getMeasureUnitsId.useQuery({
|
|
4
|
+
api: n
|
|
5
|
+
} = o();
|
|
6
|
+
return n.finops.getDocumentsIdNextNumbers.useQuery({
|
|
15
7
|
path: {
|
|
16
|
-
|
|
8
|
+
entity_id: t
|
|
17
9
|
}
|
|
10
|
+
}, {
|
|
11
|
+
enabled: e && !!t
|
|
18
12
|
});
|
|
19
|
-
|
|
20
|
-
});
|
|
13
|
+
};
|
|
21
14
|
export {
|
|
22
|
-
|
|
15
|
+
s as useGetEntityDocumentNumber
|
|
23
16
|
};
|
|
@@ -1,4 +1,101 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as t, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as f } from "react";
|
|
3
|
+
import { toast as n } from "react-hot-toast";
|
|
4
|
+
import "./index57.js";
|
|
5
|
+
import { useLingui as _ } from "@lingui/react";
|
|
6
|
+
import "./index92.js";
|
|
7
|
+
import { useFileInput as z } from "./index61.js";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import "@mui/x-data-grid";
|
|
10
|
+
import { Button as s } from "./index84.js";
|
|
11
|
+
import { Popover as D, PopoverTrigger as P, PopoverContent as k } from "./index402.js";
|
|
12
|
+
import { cn as F } from "./index100.js";
|
|
13
|
+
import { ChevronUpIcon as I, ChevronDownIcon as U, CloudUpload as j, Copy as A, Plus as E } from "lucide-react";
|
|
14
|
+
const K = ({
|
|
15
|
+
isCreateAllowed: u,
|
|
16
|
+
onCreateInvoice: h,
|
|
17
|
+
handleFileUpload: w
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
i18n: e
|
|
21
|
+
} = _(), [c, a] = f(!1), {
|
|
22
|
+
FileInput: x,
|
|
23
|
+
openFileInput: b,
|
|
24
|
+
checkFileError: y
|
|
25
|
+
} = z(), [g, i] = f(!1), v = (l) => {
|
|
26
|
+
l.preventDefault(), i(!0);
|
|
27
|
+
}, N = (l) => {
|
|
28
|
+
l.preventDefault(), i(!1);
|
|
29
|
+
}, d = 10, C = (l) => {
|
|
30
|
+
l.preventDefault(), i(!1);
|
|
31
|
+
const o = Array.from(l.dataTransfer.files);
|
|
32
|
+
if (o.length > d) {
|
|
33
|
+
n.error(e._("You can only upload up to {fileCount} files at a time", {
|
|
34
|
+
fileCount: d
|
|
35
|
+
})), a(!1);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
o.forEach((m) => {
|
|
39
|
+
const p = y(m);
|
|
40
|
+
if (p) {
|
|
41
|
+
n.error(p);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
w(m);
|
|
45
|
+
}), a(!1);
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ t("div", { className: "Monite-Payables", children: /* @__PURE__ */ r(D, { open: c, onOpenChange: a, children: [
|
|
48
|
+
/* @__PURE__ */ t(P, { asChild: !0, children: /* @__PURE__ */ r(s, { size: "lg", disabled: !u, children: [
|
|
49
|
+
e._("Add new bill"),
|
|
50
|
+
c ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(U, {})
|
|
51
|
+
] }) }),
|
|
52
|
+
/* @__PURE__ */ r(k, { align: "end", className: "ttw:w-auto ttw:min-w-110 ttw:border-none ttw:p-6", children: [
|
|
53
|
+
/* @__PURE__ */ r("div", { className: "ttw:w-110 ttw:flex ttw:flex-col ttw:gap-4", onClick: (l) => {
|
|
54
|
+
l.preventDefault(), l.stopPropagation();
|
|
55
|
+
}, children: [
|
|
56
|
+
/* @__PURE__ */ r("div", { children: [
|
|
57
|
+
/* @__PURE__ */ t("h3", { className: "ttw:text-xl ttw:font-semibold ttw:text-zinc-950", children: e._("Upload bills") }),
|
|
58
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:text-zinc-500", children: e._("Upload your bills and we'll automatically pull the details so you can review and approve.") })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ t("div", { className: F("ttw:box-border ttw:cursor-pointer ttw:w-full ttw:h-36.5 ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:border ttw:rounded-lg ttw:border-dashed ttw:border-zinc-200 ttw:bg-zinc-50", g && "ttw:bg-transparent"), onDragOver: v, onDragLeave: N, onDrop: C, onClick: b, children: /* @__PURE__ */ r("div", { className: "ttw:mx-auto ttw:flex ttw:flex-col ttw:items-center ttw:gap-2", children: [
|
|
61
|
+
/* @__PURE__ */ t("div", { className: "ttw:w-11 ttw:h-11 ttw:rounded-full ttw:bg-primary ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(j, { className: "ttw:text-white ttw:size-5" }) }),
|
|
62
|
+
/* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-medium ttw:text-zinc-950", children: [
|
|
63
|
+
e._("Drop your files here, or"),
|
|
64
|
+
" ",
|
|
65
|
+
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline", children: e._("click to browse") })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-xs ttw:font-normal ttw:text-zinc-500", children: e._("PDF, PNG or JPG (max. 20MB)") })
|
|
68
|
+
] }) }),
|
|
69
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
|
|
70
|
+
/* @__PURE__ */ t("h3", { className: "ttw:text-primary ttw:text-sm ttw:font-semibold", children: e._("Send via email") }),
|
|
71
|
+
/* @__PURE__ */ t("p", { className: "ttw:text-zinc-500 ttw:font-normal ttw:text-sm", children: e._("Email your bills here and they'll appear in your bill pay inbox, ready to review and pay.") })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ r("div", { className: "ttw:px-3 ttw:h-14 ttw:border ttw:border-zinc-200 ttw:rounded-lg ttw:flex ttw:items-center ttw:justify-between ttw:gap-6", children: [
|
|
74
|
+
/* @__PURE__ */ t("span", { children: e._("bills@business-banking.com") }),
|
|
75
|
+
/* @__PURE__ */ r(s, { type: "button", variant: "ghost", size: "sm", className: "ttw:text-primary ttw:hover:bg-primary-foreground ttw:hover:text-primary", onClick: () => {
|
|
76
|
+
navigator.clipboard.writeText("bills@business-banking.com"), n.success(e._("Email address copied to clipboard"));
|
|
77
|
+
}, children: [
|
|
78
|
+
/* @__PURE__ */ t(A, {}),
|
|
79
|
+
e._("Copy")
|
|
80
|
+
] })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
83
|
+
/* @__PURE__ */ t("h3", { className: "ttw:text-sm ttw:font-semibold ttw:text-primary", children: e._("Or add bill manually") }),
|
|
84
|
+
/* @__PURE__ */ r(s, { onClick: () => {
|
|
85
|
+
a(!1), h();
|
|
86
|
+
}, className: "ttw:w-fit ttw:bg-primary-foreground ttw:hover:bg-primary-foreground ttw:text-primary", children: [
|
|
87
|
+
/* @__PURE__ */ t(E, {}),
|
|
88
|
+
e._("Add new bill")
|
|
89
|
+
] })
|
|
90
|
+
] })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ t(x, { "aria-label": e._("Upload payable files"), multiple: !0, onChange: (l) => {
|
|
93
|
+
const o = l.target.files;
|
|
94
|
+
o && w(o), a(!1);
|
|
95
|
+
} })
|
|
96
|
+
] })
|
|
97
|
+
] }) });
|
|
98
|
+
};
|
|
2
99
|
export {
|
|
3
|
-
|
|
100
|
+
K as CreatePayableMenu
|
|
4
101
|
};
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ConfirmationModal as s } from "./index215.js";
|
|
3
|
+
import { useLingui as d } from "@lingui/react";
|
|
4
|
+
import "./index57.js";
|
|
5
|
+
import "react-hot-toast";
|
|
6
|
+
import { useGetProductById as u } from "./index200.js";
|
|
7
|
+
import { useDeleteProduct as c } from "./index349.js";
|
|
8
|
+
const P = ({
|
|
9
|
+
id: e,
|
|
10
|
+
open: a,
|
|
11
|
+
onClose: t,
|
|
12
|
+
onDeleted: r
|
|
13
|
+
}) => {
|
|
3
14
|
const {
|
|
4
|
-
|
|
5
|
-
} =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
i18n: o
|
|
16
|
+
} = d(), {
|
|
17
|
+
data: n
|
|
18
|
+
} = u(e), i = c(e, () => {
|
|
19
|
+
t(), r?.(e);
|
|
20
|
+
}), m = () => {
|
|
21
|
+
i.mutate(void 0);
|
|
22
|
+
};
|
|
23
|
+
return n ? /* @__PURE__ */ l(s, { open: a && !!e, title: o._('Delete "{name}"?', {
|
|
24
|
+
name: n.name
|
|
25
|
+
}), message: o._("It will remain in all the documents where it is added. You can't undo this action."), confirmLabel: o._("Delete"), cancelLabel: o._("Cancel"), onClose: t, onConfirm: m, isLoading: i.isPending }) : null;
|
|
11
26
|
};
|
|
12
27
|
export {
|
|
13
|
-
|
|
28
|
+
P as ProductDeleteModal
|
|
14
29
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo as p } from "react";
|
|
2
|
-
import { useUserPermissions as y } from "./
|
|
2
|
+
import { useUserPermissions as y } from "./index154.js";
|
|
3
3
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
4
4
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
5
5
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
handleClose: r,
|
|
8
|
-
open: o
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Badge as n } from "./index223.js";
|
|
3
|
+
import { useLingui as p } from "@lingui/react";
|
|
4
|
+
import { twMerge as c } from "tailwind-merge";
|
|
5
|
+
const d = ({
|
|
6
|
+
type: e
|
|
9
7
|
}) => {
|
|
10
8
|
const {
|
|
11
9
|
i18n: t
|
|
12
|
-
} =
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */ n(d, { className: "ttw:border-b ttw:border-border", children: [
|
|
15
|
-
/* @__PURE__ */ e(l, { children: t._("Manage measure units") }),
|
|
16
|
-
/* @__PURE__ */ e(h, { hidden: !0, children: t._("Manage measure units") })
|
|
17
|
-
] }),
|
|
18
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex-1 ttw:overflow-y-auto ttw:px-6 ttw:py-4", children: /* @__PURE__ */ e(p, {}) }),
|
|
19
|
-
/* @__PURE__ */ e(m, { className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end", children: /* @__PURE__ */ e(s, { onClick: r, children: t._("Done") }) })
|
|
20
|
-
] }) });
|
|
10
|
+
} = p(), r = e === "product", o = r ? t._("Product") : t._("Service");
|
|
11
|
+
return /* @__PURE__ */ i(n, { variant: "secondary", className: c(r ? "ttw:bg-blue-100 ttw:text-blue-700" : "ttw:bg-pink-100 ttw:text-pink-700"), children: o });
|
|
21
12
|
};
|
|
22
13
|
export {
|
|
23
|
-
|
|
14
|
+
d as ProductType
|
|
24
15
|
};
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as t, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useDebounceCallback as s } from "./index65.js";
|
|
3
|
+
import { InputGroup as i, InputGroupAddon as m, InputGroupInput as p } from "./index101.js";
|
|
4
|
+
import { useLingui as l } from "@lingui/react";
|
|
5
|
+
import { Search as u } from "lucide-react";
|
|
6
|
+
import { FILTER_TYPE_SEARCH as c } from "./index193.js";
|
|
7
|
+
const x = ({
|
|
8
|
+
onChangeFilter: r
|
|
9
|
+
}) => {
|
|
5
10
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
name: o.name
|
|
15
|
-
}));
|
|
16
|
-
},
|
|
17
|
-
onError: () => {
|
|
18
|
-
s.error(t._("Failed to create"));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
11
|
+
i18n: n
|
|
12
|
+
} = l(), a = s((e) => {
|
|
13
|
+
r(c, e);
|
|
14
|
+
}, 500);
|
|
15
|
+
return /* @__PURE__ */ t("div", { className: "ttw:flex ttw:justify-between ttw:items-center ttw:gap-4", children: /* @__PURE__ */ o(i, { className: "ttw:w-80", children: [
|
|
16
|
+
/* @__PURE__ */ t(m, { align: "inline-start", children: /* @__PURE__ */ t(u, {}) }),
|
|
17
|
+
/* @__PURE__ */ t(p, { placeholder: n._("Search by name"), onChange: (e) => a(e.target.value) })
|
|
18
|
+
] }) });
|
|
21
19
|
};
|
|
22
20
|
export {
|
|
23
|
-
|
|
21
|
+
x as Filters
|
|
24
22
|
};
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
title: e._("Unit")
|
|
21
|
-
})
|
|
22
|
-
}), m = (e) => r.object({
|
|
23
|
-
name: r.string().trim().min(1, e._("Unit label is required")),
|
|
24
|
-
description: r.string().trim().optional()
|
|
1
|
+
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { memo as a } from "react";
|
|
3
|
+
import { useMoniteContext as m } from "./index57.js";
|
|
4
|
+
import { Skeleton as n } from "./index145.js";
|
|
5
|
+
import { Typography as s } from "./index85.js";
|
|
6
|
+
const c = a(({
|
|
7
|
+
unitId: e
|
|
8
|
+
}) => {
|
|
9
|
+
const {
|
|
10
|
+
api: r
|
|
11
|
+
} = m(), {
|
|
12
|
+
data: t,
|
|
13
|
+
isLoading: i
|
|
14
|
+
} = r.finops.getMeasureUnitsId.useQuery({
|
|
15
|
+
path: {
|
|
16
|
+
unit_id: e
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return i ? /* @__PURE__ */ o(n, { className: "ttw:h-4 ttw:w-4" }) : t ? /* @__PURE__ */ o(s, { color: "muted", variant: "body2", children: t.name }) : null;
|
|
25
20
|
});
|
|
26
21
|
export {
|
|
27
|
-
|
|
28
|
-
n as getProductValidationSchema
|
|
22
|
+
c as MeasureUnit
|
|
29
23
|
};
|
|
@@ -1,119 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { useRef as L, useMemo as g, useCallback as P } from "react";
|
|
3
|
-
import { useCurrencies as U } from "./index58.js";
|
|
4
|
-
import "./index92.js";
|
|
5
|
-
import { useLingui as M } from "@lingui/react";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
import "./index57.js";
|
|
8
|
-
import "@mui/x-data-grid";
|
|
9
|
-
import { FieldLabel as w, Field as f, FieldContent as x, FieldError as p } from "./index154.js";
|
|
10
|
-
import { InputGroup as y, InputGroupAddon as N, InputGroupInput as T, InputGroupTextarea as E } from "./index101.js";
|
|
11
|
-
import { Input as z } from "./index121.js";
|
|
12
|
-
import { Label as C } from "./index287.js";
|
|
13
|
-
import { RadioGroup as A, RadioGroupItem as _ } from "./index295.js";
|
|
14
|
-
import { Typography as d } from "./index85.js";
|
|
15
|
-
import { Combobox as B, ComboboxInput as R, ComboboxContent as V, ComboboxList as j, ComboboxEmpty as D, ComboboxCollection as W, ComboboxItem as H } from "./index90.js";
|
|
16
|
-
import { useFormContext as q, Controller as s } from "react-hook-form";
|
|
17
|
-
import { twMerge as l } from "tailwind-merge";
|
|
18
|
-
import "react-hot-toast";
|
|
19
|
-
import { useGetMeasureUnits as J } from "./index296.js";
|
|
20
|
-
const wt = ({
|
|
21
|
-
isLoading: i,
|
|
22
|
-
isEditMode: c,
|
|
23
|
-
isProduct: F
|
|
24
|
-
}) => {
|
|
25
|
-
const {
|
|
26
|
-
i18n: a
|
|
27
|
-
} = M(), {
|
|
28
|
-
getSymbolFromCurrency: I
|
|
29
|
-
} = U(), u = L(null), {
|
|
30
|
-
data: S
|
|
31
|
-
} = J(), m = S?.data ?? [], {
|
|
32
|
-
control: n,
|
|
33
|
-
formState: {
|
|
34
|
-
errors: k
|
|
35
|
-
}
|
|
36
|
-
} = q(), G = g(() => m.map((t) => t.id), [m]), h = g(() => new Map(m.map((t) => [t.id, t.name])), [m]), b = P((t) => h.get(t) ?? t, [h]);
|
|
37
|
-
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
|
|
38
|
-
c && /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: /* @__PURE__ */ e(d, { variant: "body1", className: "ttw:font-medium", children: a._("Editing {type} details", {
|
|
39
|
-
type: F ? "product" : "service"
|
|
40
|
-
}) }) }),
|
|
41
|
-
/* @__PURE__ */ e(s, { name: "type", control: n, render: ({
|
|
42
|
-
field: t
|
|
43
|
-
}) => /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5", children: [
|
|
44
|
-
/* @__PURE__ */ e(w, { children: a._("Type") }),
|
|
45
|
-
/* @__PURE__ */ r(A, { className: "ttw:flex", value: t.value, disabled: i, onValueChange: t.onChange, children: [
|
|
46
|
-
/* @__PURE__ */ r("div", { className: l("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", t.value === "product" && "ttw:bg-primary/10 ttw:border-primary/30"), children: [
|
|
47
|
-
/* @__PURE__ */ e(_, { value: "product", id: "type-product", className: l(t.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"), dotClassName: l(t.value === "product" && "ttw:fill-white"), disabled: i }),
|
|
48
|
-
/* @__PURE__ */ r(C, { htmlFor: "type-product", className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5", children: [
|
|
49
|
-
/* @__PURE__ */ e(d, { variant: "body2", className: "ttw:leading-3.5", children: a._("Product") }),
|
|
50
|
-
/* @__PURE__ */ e(d, { variant: "caption", color: "muted", children: a._("A physical or digital item") })
|
|
51
|
-
] })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ r("div", { className: l("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", t.value === "service" && "ttw:bg-primary/10 ttw:border-primary/30"), children: [
|
|
54
|
-
/* @__PURE__ */ e(_, { value: "service", id: "type-service", className: l(t.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"), dotClassName: l(t.value === "service" && "ttw:fill-white"), disabled: i }),
|
|
55
|
-
/* @__PURE__ */ r(C, { htmlFor: "type-service", className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5", children: [
|
|
56
|
-
/* @__PURE__ */ e(d, { variant: "body2", className: "ttw:leading-3.5", children: a._("Service") }),
|
|
57
|
-
/* @__PURE__ */ e(d, { variant: "caption", color: "muted", children: a._("Work or labor you provide") })
|
|
58
|
-
] })
|
|
59
|
-
] })
|
|
60
|
-
] })
|
|
61
|
-
] }) }),
|
|
62
|
-
/* @__PURE__ */ e(s, { name: "name", control: n, render: ({
|
|
63
|
-
field: t,
|
|
64
|
-
fieldState: {
|
|
65
|
-
error: o
|
|
66
|
-
}
|
|
67
|
-
}) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ r(x, { children: [
|
|
68
|
-
/* @__PURE__ */ e(w, { htmlFor: t.name, children: a._("Name") }),
|
|
69
|
-
/* @__PURE__ */ e(z, { ...t, id: t.name, placeholder: a._("e.g. House blend espresso beans"), className: c ? "ttw:bg-white" : "", disabled: i, "aria-invalid": !!o || void 0 }),
|
|
70
|
-
/* @__PURE__ */ e(p, { errors: [o] })
|
|
71
|
-
] }) }) }),
|
|
72
|
-
/* @__PURE__ */ r("div", { className: "ttw:w-1/2 ttw:flex ttw:flex-col ttw:gap-1.5", children: [
|
|
73
|
-
/* @__PURE__ */ e(w, { children: a._("Price per unit") }),
|
|
74
|
-
/* @__PURE__ */ r("div", { className: l("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", c && "ttw:bg-white"), ref: u, children: [
|
|
75
|
-
/* @__PURE__ */ e(s, { name: "pricePerUnit", control: n, render: ({
|
|
76
|
-
field: t,
|
|
77
|
-
fieldState: {
|
|
78
|
-
error: o
|
|
79
|
-
}
|
|
80
|
-
}) => /* @__PURE__ */ r(y, { 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", children: [
|
|
81
|
-
/* @__PURE__ */ e(N, { align: "inline-start", children: I("USD") }),
|
|
82
|
-
/* @__PURE__ */ e(T, { type: "number", name: t.name, ref: t.ref, value: t.value ?? "", onChange: (v) => t.onChange(v.target.value === "" ? void 0 : Number(v.target.value)), className: "ttw:text-end", onBlur: t.onBlur, placeholder: "0.00", "aria-invalid": !!o || void 0, disabled: i })
|
|
83
|
-
] }) }),
|
|
84
|
-
/* @__PURE__ */ e("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
|
|
85
|
-
/* @__PURE__ */ e(s, { name: "measureUnitId", control: n, render: ({
|
|
86
|
-
field: t
|
|
87
|
-
}) => /* @__PURE__ */ r(B, { value: t.value ?? null, onValueChange: (o) => t.onChange(o ?? void 0), items: G, itemToStringLabel: b, disabled: i, children: [
|
|
88
|
-
/* @__PURE__ */ e(R, { showClear: !!t.value, placeholder: "-", disabled: i, 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" }),
|
|
89
|
-
/* @__PURE__ */ e(V, { container: u.current, children: /* @__PURE__ */ r(j, { children: [
|
|
90
|
-
/* @__PURE__ */ e(D, { children: a._("No units found") }),
|
|
91
|
-
/* @__PURE__ */ e(W, { children: (o) => /* @__PURE__ */ e(H, { value: o, children: b(o) }, o) })
|
|
92
|
-
] }) })
|
|
93
|
-
] }) })
|
|
94
|
-
] }),
|
|
95
|
-
/* @__PURE__ */ e(p, { errors: [k.pricePerUnit] })
|
|
96
|
-
] }),
|
|
97
|
-
/* @__PURE__ */ e(s, { name: "description", control: n, render: ({
|
|
98
|
-
field: t,
|
|
99
|
-
fieldState: {
|
|
100
|
-
error: o
|
|
101
|
-
}
|
|
102
|
-
}) => /* @__PURE__ */ e(f, { className: "ttw:block", children: /* @__PURE__ */ r(x, { children: [
|
|
103
|
-
/* @__PURE__ */ r(w, { htmlFor: t.name, className: "ttw:gap-1", children: [
|
|
104
|
-
a._("Description"),
|
|
105
|
-
/* @__PURE__ */ e(d, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: a._("(optional)") })
|
|
106
|
-
] }),
|
|
107
|
-
/* @__PURE__ */ r(y, { className: l(c && "ttw:bg-white"), children: [
|
|
108
|
-
/* @__PURE__ */ e(E, { ...t, id: t.name, placeholder: a._("e.g. 16oz whole bean, medium-dark roast, ground to order"), rows: 4, maxLength: 280, disabled: i, "aria-invalid": !!o || void 0 }),
|
|
109
|
-
/* @__PURE__ */ e(N, { align: "block-end", className: "ttw:cursor-default", children: /* @__PURE__ */ e(d, { variant: "caption", color: "muted", className: "ttw:leading-none", children: a._("{count}/280 characters", {
|
|
110
|
-
count: (t.value ?? "").length
|
|
111
|
-
}) }) })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ e(p, { errors: [o] })
|
|
114
|
-
] }) }) })
|
|
115
|
-
] });
|
|
116
|
-
};
|
|
1
|
+
const E = "search";
|
|
117
2
|
export {
|
|
118
|
-
|
|
3
|
+
E as FILTER_TYPE_SEARCH
|
|
119
4
|
};
|