@tesouro/embedded-components-react 0.2.90 → 0.2.91
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/index3.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 +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +76 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -1271
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +9 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +12 -9
- 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 +25 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +13 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +11 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +121 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +11 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +48 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +43 -73
- 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 +15 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +10 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +150 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +71 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +10 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +25 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +59 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +38 -28
- 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 +78 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +5 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +33 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +34 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +4 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +2 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1269 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +12 -136
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +24 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +11 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +2 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +20 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +27 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +117 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +69 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +12 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +94 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +57 -394
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +46 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +74 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +55 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +196 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +78 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +41 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +113 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +70 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +189 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +31 -70
- 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 +111 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +137 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +183 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +4 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +88 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +6 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +45 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +45 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +394 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +24 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +92 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +100 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +14 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +137 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +86 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +59 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +397 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +65 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +407 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +491 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +168 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +41 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +61 -213
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +31 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +114 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +22 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +57 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +35 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +101 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +6 -346
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +212 -12
- 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 +10 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +73 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +30 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +37 -245
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +56 -176
- 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 +96 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +111 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +85 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +10 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +50 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +62 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +26 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +56 -125
- 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 +31 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +93 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +96 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +191 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +37 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +347 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +301 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +103 -22
- 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 +156 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +264 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +23 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +55 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +29 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +60 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +20 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +32 -6
- 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 +30 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +54 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +344 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +14 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +12 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +13 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +13 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +16 -486
- 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 +23 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +34 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +15 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +16 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +248 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +182 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +12 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +18 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +25 -62
- 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 +37 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +58 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +47 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +29 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +94 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +40 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +62 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +149 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +18 -284
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +21 -46
- 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 +34 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +14 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +75 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +76 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +39 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +64 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +43 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +25 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +174 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +106 -10
- 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 +80 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +281 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +48 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +86 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +221 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +35 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +28 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +90 -156
- 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 +16 -266
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +74 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +47 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +7 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +44 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +158 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +28 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +26 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +77 -87
- 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 +22 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +15 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +15 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +169 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +132 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +154 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +10 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +18 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +54 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +6 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +9 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +60 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +22 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +54 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +11 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +255 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +27 -45
- 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 +125 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +118 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +18 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +16 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +16 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +16 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +71 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +16 -43
- 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 +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +11 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +53 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +34 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +26 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +34 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +20 -9
- 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 +15 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +18 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +26 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +23 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +27 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +39 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +45 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +12 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +37 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +6 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +65 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +2 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +32 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +127 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +35 -12
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +7 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +52 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +15 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +104 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +35 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +57 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +34 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +42 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +73 -38
- 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 +90 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +66 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +43 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +20 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +10 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +11 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +32 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +14 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +24 -8
- 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 +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +20 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +37 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +37 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +32 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +85 -14
- 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 +23 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +102 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +109 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +28 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +23 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +37 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +5 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +71 -14
- 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 +86 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +50 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +49 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +51 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +29 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +54 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +37 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +46 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +52 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +69 -83
- 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 +21 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +48 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +93 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +15 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +9 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +30 -12
- 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 +42 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +34 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +18 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +50 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +59 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +29 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +51 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +20 -19
- 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 +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +39 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +13 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +14 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +51 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
- 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/index78.js +1 -1
- 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/data-access/dist/lib/rest/zod.gen.js +1835 -1821
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
- package/package.json +1 -1
|
@@ -1,46 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(j, { value: n("product.measure_unit_id"), onChange: (r) => {
|
|
29
|
-
o("product.measure_unit_id", r, {
|
|
30
|
-
shouldValidate: !0
|
|
31
|
-
});
|
|
32
|
-
}, availableMeasureUnits: m?.data || [], fieldError: C }) }),
|
|
33
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(N, { error: f, currency: i, value: n("product.price.value"), onChange: (r) => {
|
|
34
|
-
o("product.price.value", r, {
|
|
35
|
-
shouldValidate: !0
|
|
36
|
-
});
|
|
37
|
-
} }) }),
|
|
38
|
-
/* @__PURE__ */ e("div", { className: "ttw:w-12 ttw:min-w-12 ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ e(y, { checked: n("taxable") ?? !1, onCheckedChange: (r) => {
|
|
39
|
-
o("taxable", r === !0);
|
|
40
|
-
} }) }),
|
|
41
|
-
u && /* @__PURE__ */ e(I, { type: "button", variant: "ghost", size: "sm", className: "ttw:w-10 ttw:text-muted-foreground ttw:hover:bg-transparent ttw:hover:text-destructive ttw:border-l ttw:border-border ttw:pl-4 ttw:rounded-none ttw:has-[>svg]:pr-0", onClick: () => s(t), children: /* @__PURE__ */ e(R, {}) })
|
|
1
|
+
import { jsxs as t, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button as m } from "./index84.js";
|
|
3
|
+
import { DropdownMenu as d, DropdownMenuTrigger as p, DropdownMenuContent as u, DropdownMenuItem as f } from "./index126.js";
|
|
4
|
+
import { Tooltip as h, TooltipTrigger as g, TooltipContent as w } from "./index280.js";
|
|
5
|
+
import { ACTION_ICON as C } from "./index281.js";
|
|
6
|
+
import { preventTooltipFocusOpen as T } from "./index283.js";
|
|
7
|
+
import { MoreVerticalIcon as v } from "lucide-react";
|
|
8
|
+
function x({
|
|
9
|
+
actions: r,
|
|
10
|
+
triggerLabel: i,
|
|
11
|
+
getActionLabel: n,
|
|
12
|
+
onSelect: a,
|
|
13
|
+
isActionDisabled: s,
|
|
14
|
+
className: l
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ t(d, { children: [
|
|
17
|
+
/* @__PURE__ */ t(h, { children: [
|
|
18
|
+
/* @__PURE__ */ e(g, { asChild: !0, onFocus: T, children: /* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(m, { variant: "ghost", size: "icon", className: l, "aria-label": i, children: /* @__PURE__ */ e(v, { className: "ttw:size-4" }) }) }) }),
|
|
19
|
+
/* @__PURE__ */ e(w, { children: i })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ e(u, { align: "end", children: r.map((o) => {
|
|
22
|
+
const c = C[o];
|
|
23
|
+
return /* @__PURE__ */ t(f, { variant: o === "delete" ? "destructive" : "default", disabled: s?.(o), onClick: () => a(o), children: [
|
|
24
|
+
/* @__PURE__ */ e(c, { className: "ttw:size-4" }),
|
|
25
|
+
n(o)
|
|
26
|
+
] }, o);
|
|
27
|
+
}) })
|
|
42
28
|
] });
|
|
43
|
-
}
|
|
29
|
+
}
|
|
44
30
|
export {
|
|
45
|
-
|
|
31
|
+
x as InvoiceDetailsOverflowMenu
|
|
46
32
|
};
|
|
@@ -1,27 +1,100 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsxs as o, Fragment as _, jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { ManualPaymentRecordDetails as k } from "./index409.js";
|
|
3
|
+
import { PaymentRecordForm as E } from "./index410.js";
|
|
4
|
+
import { useMoniteContext as $ } from "./index57.js";
|
|
5
|
+
import { useRootElements as B } from "./index92.js";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import { fromMinorUnits as F, toMinorUnits as H } from "./index117.js";
|
|
8
|
+
import "date-fns";
|
|
9
|
+
import { useEntityUserByAuthToken as L } from "./index75.js";
|
|
10
|
+
import { useCreatePaymentRecord as U } from "./index79.js";
|
|
11
|
+
import { useLingui as A } from "@lingui/react";
|
|
12
|
+
import { Dialog as I, DialogContent as Q, DialogActions as W, Button as m, Box as q } from "@mui/material";
|
|
13
|
+
import { useState as l } from "react";
|
|
14
|
+
const g = {
|
|
15
|
+
amount: 0,
|
|
16
|
+
payment_date: /* @__PURE__ */ new Date(),
|
|
17
|
+
payment_time: /* @__PURE__ */ new Date(),
|
|
18
|
+
created_by: ""
|
|
19
|
+
}, ie = ({
|
|
20
|
+
children: b,
|
|
21
|
+
invoice: t
|
|
15
22
|
}) => {
|
|
16
|
-
const {
|
|
23
|
+
const [h, c] = l(!1), [C, r] = l(!1), [e, u] = l(g), {
|
|
17
24
|
i18n: s
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
} = A(), {
|
|
26
|
+
root: x
|
|
27
|
+
} = B(), v = () => c(!0), n = () => c(!1), {
|
|
28
|
+
api: p,
|
|
29
|
+
queryClient: y
|
|
30
|
+
} = $(), {
|
|
31
|
+
mutate: D,
|
|
32
|
+
isPending: M
|
|
33
|
+
} = U(), {
|
|
34
|
+
data: f,
|
|
35
|
+
isLoading: R
|
|
36
|
+
} = L(), w = (a) => {
|
|
37
|
+
u({
|
|
38
|
+
...a,
|
|
39
|
+
amount: H(a?.amount ?? 0),
|
|
40
|
+
created_by: f?.id ?? ""
|
|
41
|
+
}), r(!0);
|
|
42
|
+
}, P = () => {
|
|
43
|
+
r(!1), u(g);
|
|
44
|
+
}, S = () => {
|
|
45
|
+
const a = new Date(e.payment_date).setHours(e.payment_time.getHours(), e.payment_time.getMinutes()), j = new Date(a);
|
|
46
|
+
D({
|
|
47
|
+
amount: e?.amount ?? 0,
|
|
48
|
+
currency: t.currency,
|
|
49
|
+
paid_at: j.toISOString(),
|
|
50
|
+
object: {
|
|
51
|
+
id: t.id,
|
|
52
|
+
type: "receivable"
|
|
53
|
+
},
|
|
54
|
+
payment_intent_id: t.id,
|
|
55
|
+
entity_user_id: f?.id,
|
|
56
|
+
status: "succeeded"
|
|
57
|
+
}, {
|
|
58
|
+
onSuccess: () => {
|
|
59
|
+
p.finops.getReceivablesId.invalidateQueries({
|
|
60
|
+
parameters: {
|
|
61
|
+
path: {
|
|
62
|
+
receivable_id: t.id
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, y), p.finops.getReceivables.invalidateQueries(y), n(), P();
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}, d = M || R;
|
|
69
|
+
return ["draft", "paid", "canceled", "deleted", "accepted", "recurring", "expired", "declined", "uncollectible"].includes(t.status) ? null : /* @__PURE__ */ o(_, { children: [
|
|
70
|
+
b({
|
|
71
|
+
openModal: v
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ i(I, { open: h, onClose: n, container: x, "aria-labelledby": "dialog-title", fullWidth: !0, maxWidth: "sm", children: C ? /* @__PURE__ */ o(_, { children: [
|
|
74
|
+
/* @__PURE__ */ i(Q, { sx: {
|
|
75
|
+
p: 4
|
|
76
|
+
}, children: /* @__PURE__ */ i(k, { invoice: t, paymentRecords: e }) }),
|
|
77
|
+
/* @__PURE__ */ o(W, { sx: {
|
|
78
|
+
px: 4,
|
|
79
|
+
pb: 4,
|
|
80
|
+
justifyContent: "space-between"
|
|
81
|
+
}, children: [
|
|
82
|
+
/* @__PURE__ */ i(m, { onClick: n, children: s._("Cancel") }),
|
|
83
|
+
/* @__PURE__ */ o(q, { sx: {
|
|
84
|
+
display: "flex",
|
|
85
|
+
gap: 2
|
|
86
|
+
}, children: [
|
|
87
|
+
/* @__PURE__ */ i(m, { variant: "outlined", disabled: d, onClick: () => r(!1), children: s._("Edit record") }),
|
|
88
|
+
/* @__PURE__ */ i(m, { variant: "contained", disabled: d, onClick: S, children: s._("Confirm") })
|
|
89
|
+
] })
|
|
90
|
+
] })
|
|
91
|
+
] }) : /* @__PURE__ */ i(E, { invoice: t, initialValues: {
|
|
92
|
+
amount: e.amount ? F(e.amount) : 0,
|
|
93
|
+
payment_date: e.payment_date,
|
|
94
|
+
payment_time: e.payment_time
|
|
95
|
+
}, isLoading: d, onCancel: n, onSubmit: w }) })
|
|
23
96
|
] });
|
|
24
97
|
};
|
|
25
98
|
export {
|
|
26
|
-
|
|
99
|
+
ie as RecordManualPaymentModal
|
|
27
100
|
};
|
|
@@ -1,191 +1,49 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useCurrencies as
|
|
1
|
+
import { jsxs as f, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCancelRecurrence as v } from "./index388.js";
|
|
3
|
+
import { useGetRecurrenceById as _ } from "./index288.js";
|
|
4
|
+
import { useCurrencies as C } from "./index58.js";
|
|
5
|
+
import "react";
|
|
5
6
|
import "./index92.js";
|
|
6
|
-
import { useLingui as
|
|
7
|
+
import { useLingui as g, Trans as h } from "@lingui/react";
|
|
7
8
|
import "react-dom";
|
|
9
|
+
import "./index57.js";
|
|
8
10
|
import "@mui/x-data-grid";
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
index: B = 0,
|
|
17
|
-
defaultCurrency: G,
|
|
18
|
-
measureUnits: _,
|
|
19
|
-
container: H,
|
|
20
|
-
onCreateItem: M,
|
|
21
|
-
onChange: o
|
|
11
|
+
import { ConfirmationModal as b } from "./index246.js";
|
|
12
|
+
import w from "deep-eql";
|
|
13
|
+
import { usePreviousDistinct as y } from "react-use";
|
|
14
|
+
const $ = ({
|
|
15
|
+
invoice: i,
|
|
16
|
+
open: a,
|
|
17
|
+
onClose: r
|
|
22
18
|
}) => {
|
|
23
19
|
const {
|
|
24
|
-
i18n:
|
|
25
|
-
} =
|
|
26
|
-
|
|
27
|
-
} =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
query: {
|
|
50
|
-
pagination_token: e.next_pagination_token
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
enabled: !!D
|
|
55
|
-
}), W = f((e) => {
|
|
56
|
-
const {
|
|
57
|
-
scrollTop: n,
|
|
58
|
-
scrollHeight: m,
|
|
59
|
-
clientHeight: $
|
|
60
|
-
} = e.currentTarget;
|
|
61
|
-
m - n - $ < 100 && j && !k && U();
|
|
62
|
-
}, [U, j, k]), l = C(() => P ? P.pages.flatMap((e) => e.data).sort((e, n) => (e.name ?? "").localeCompare(n.name ?? "")) : [], [P]), r = C(() => !l || l.length === 0 ? [] : l.map((e) => {
|
|
63
|
-
const n = _ ? _.data.find((m) => m.id === e.measure_unit_id) : void 0;
|
|
64
|
-
return {
|
|
65
|
-
id: e.id,
|
|
66
|
-
label: e.name,
|
|
67
|
-
description: e.description,
|
|
68
|
-
price: e.price,
|
|
69
|
-
smallestAmount: e.smallest_amount,
|
|
70
|
-
measureUnit: n
|
|
71
|
-
};
|
|
72
|
-
}), [l, _, i]);
|
|
73
|
-
ne(() => {
|
|
74
|
-
!v && i && i.length > 0 && !t.length && (l?.find((e) => e?.name === i) || h(i));
|
|
75
|
-
}, [i, v, l, t]);
|
|
76
|
-
const J = f(() => {
|
|
77
|
-
O(!0), d(!0);
|
|
78
|
-
}, []), X = f(() => {
|
|
79
|
-
O(!1), t && t.trim() !== "" && !r.some((e) => e.label === t) && o({
|
|
80
|
-
id: u,
|
|
81
|
-
label: t
|
|
82
|
-
}, !1);
|
|
83
|
-
}, [t, r, o]);
|
|
84
|
-
let s = l?.find((e) => e?.id === K);
|
|
85
|
-
if (!v && i && i.length > 0 && !t.length && !s) {
|
|
86
|
-
const e = l?.find(
|
|
87
|
-
(n) => n?.name === i
|
|
88
|
-
// potentially item?.product.name, double check
|
|
89
|
-
);
|
|
90
|
-
e && (s = e);
|
|
91
|
-
}
|
|
92
|
-
const Y = s ? s.id : t ? u : null, L = s ? s.name : t, {
|
|
93
|
-
matchingItems: g,
|
|
94
|
-
nonMatchingItems: q,
|
|
95
|
-
showCustomOption: S
|
|
96
|
-
} = C(() => {
|
|
97
|
-
const e = L.toLowerCase().trim();
|
|
98
|
-
if (!e || s && s.name.toLowerCase() === e)
|
|
99
|
-
return {
|
|
100
|
-
matchingItems: r,
|
|
101
|
-
nonMatchingItems: [],
|
|
102
|
-
showCustomOption: !1
|
|
103
|
-
};
|
|
104
|
-
const n = [], m = [];
|
|
105
|
-
for (const p of r)
|
|
106
|
-
p.label.toLowerCase().includes(e) ? n.push(p) : m.push(p);
|
|
107
|
-
const $ = n.some((p) => p.label.toLowerCase() === e);
|
|
108
|
-
return {
|
|
109
|
-
matchingItems: n,
|
|
110
|
-
nonMatchingItems: m,
|
|
111
|
-
showCustomOption: !$ && !!t.trim()
|
|
112
|
-
};
|
|
113
|
-
}, [L, r, s, t]), Z = C(() => [
|
|
114
|
-
y,
|
|
115
|
-
...r.map((e) => e.id),
|
|
116
|
-
// Always include CUSTOM_ID when there's a custom name so Base UI tracks
|
|
117
|
-
// it as the selected value and shows the clear button. The visible
|
|
118
|
-
// ComboboxItem is still gated by showCustomOption.
|
|
119
|
-
...t ? [u] : []
|
|
120
|
-
], [r, t]), V = f((e) => {
|
|
121
|
-
if (!e) {
|
|
122
|
-
N(null), h(""), o({
|
|
123
|
-
id: "",
|
|
124
|
-
label: ""
|
|
125
|
-
}, !1);
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
if (e === y) {
|
|
129
|
-
M();
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
if (e === u) {
|
|
133
|
-
w.current = !0, o({
|
|
134
|
-
id: u,
|
|
135
|
-
label: t
|
|
136
|
-
}, !1);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
const n = r.find((m) => m.id === e);
|
|
140
|
-
n && (N(n.id), h(""), o(n, !0));
|
|
141
|
-
}, [t, r, o, M]), ee = f((e) => {
|
|
142
|
-
if (e !== y && e !== u && !r.some((n) => n.id === e)) {
|
|
143
|
-
if (!e && w.current) {
|
|
144
|
-
w.current = !1;
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
h(e), N(null), e.trim() && o({
|
|
148
|
-
id: u,
|
|
149
|
-
label: e
|
|
150
|
-
}, !1);
|
|
151
|
-
}
|
|
152
|
-
}, [r, o]);
|
|
153
|
-
return /* @__PURE__ */ c(se, { value: Y, onValueChange: V, inputValue: L, onInputValueChange: ee, items: Z, filter: () => !0, disabled: z, open: I, onOpenChange: d, children: [
|
|
154
|
-
/* @__PURE__ */ a(oe, { id: `item-selector-${B}`, placeholder: A._("e.g., office supplies"), "aria-invalid": F || void 0, maxLength: 100, onFocus: J, onBlur: X, onClick: () => {
|
|
155
|
-
I || d(!0);
|
|
156
|
-
}, onKeyDown: (e) => {
|
|
157
|
-
e.key === "Enter" ? (e.preventDefault(), t.trim() && (w.current = !0), d(!1)) : e.key === "Tab" && I && g.length === 1 && (V(g[0].id), d(!1));
|
|
158
|
-
}, showClear: !0, className: "ttw:w-full", children: R && /* @__PURE__ */ a(ce, { align: "inline-start", children: /* @__PURE__ */ a(E, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) }) }),
|
|
159
|
-
/* @__PURE__ */ a(le, { container: H, className: "ttw:min-w-138", children: /* @__PURE__ */ c(me, { onScroll: W, children: [
|
|
160
|
-
/* @__PURE__ */ c(b, { value: y, className: "ttw:text-primary ttw:font-semibold ttw:hover:text-primary ttw:focus:text-primary", children: [
|
|
161
|
-
/* @__PURE__ */ a(de, {}),
|
|
162
|
-
A._("Create new item")
|
|
163
|
-
] }),
|
|
164
|
-
g.map((e) => /* @__PURE__ */ c(b, { value: e.id, children: [
|
|
165
|
-
/* @__PURE__ */ a("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
166
|
-
/* @__PURE__ */ c("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [
|
|
167
|
-
e.smallestAmount,
|
|
168
|
-
" ",
|
|
169
|
-
e.measureUnit?.description,
|
|
170
|
-
e.price && ` / ${T(e.price.value, e.price.currency)}`
|
|
171
|
-
] })
|
|
172
|
-
] }, e.id)),
|
|
173
|
-
S && /* @__PURE__ */ a(b, { value: u, children: /* @__PURE__ */ a("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: t }) }),
|
|
174
|
-
(g.length > 0 || S) && q.length > 0 && /* @__PURE__ */ a(ue, {}),
|
|
175
|
-
q.map((e) => /* @__PURE__ */ c(b, { value: e.id, children: [
|
|
176
|
-
/* @__PURE__ */ a("span", { className: "ttw:flex-1 ttw:min-w-0 ttw:truncate", children: e.label }),
|
|
177
|
-
/* @__PURE__ */ c("span", { className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground", children: [
|
|
178
|
-
e.smallestAmount,
|
|
179
|
-
" ",
|
|
180
|
-
e.measureUnit?.description,
|
|
181
|
-
e.price && ` / ${T(e.price.value, e.price.currency)}`
|
|
182
|
-
] })
|
|
183
|
-
] }, e.id)),
|
|
184
|
-
k && /* @__PURE__ */ a("div", { className: "ttw:flex ttw:justify-center ttw:py-1", children: /* @__PURE__ */ a(E, { className: "ttw:size-4 ttw:animate-spin ttw:text-muted-foreground" }) })
|
|
185
|
-
] }) })
|
|
20
|
+
i18n: e
|
|
21
|
+
} = g(), {
|
|
22
|
+
formatCurrencyToDisplay: l
|
|
23
|
+
} = C(), c = i?.recurrence_id ?? "", {
|
|
24
|
+
mutate: m,
|
|
25
|
+
isPending: u
|
|
26
|
+
} = v(c, i.id), {
|
|
27
|
+
data: t
|
|
28
|
+
} = _(c), s = y(t, w), o = (s?.status === "active" && t?.status === "canceled" ? s : t)?.iterations?.filter(({
|
|
29
|
+
status: p
|
|
30
|
+
}) => p === "pending")?.length ?? 0, d = i && o !== void 0 ? l(i.total_amount_with_credit_notes * o, i.currency) : void 0;
|
|
31
|
+
return /* @__PURE__ */ f(b, { open: a && !!i.id, title: e._("Cancel Recurring Invoice"), confirmLabel: e._("Cancel recurrence"), cancelLabel: e._("Close"), onClose: r, onConfirm: () => m(void 0, {
|
|
32
|
+
onSuccess: r
|
|
33
|
+
}), isLoading: u, children: [
|
|
34
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("Are you sure you want to cancel this recurring invoice?") }),
|
|
35
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("All future iterations of this invoice will be canceled.") }),
|
|
36
|
+
i && o !== void 0 && /* @__PURE__ */ n("span", { className: "ttw:inline-block", children: /* @__PURE__ */ n(h, { id: "ZYrFPL", values: {
|
|
37
|
+
0: o === 1 ? e._("invoice") : e._("invoices"),
|
|
38
|
+
totalPendingInvoices: o,
|
|
39
|
+
pendingInvoicesTotalAmountWithCreditNotes: d
|
|
40
|
+
}, components: {
|
|
41
|
+
0: /* @__PURE__ */ n("strong", {}),
|
|
42
|
+
1: /* @__PURE__ */ n("strong", {})
|
|
43
|
+
} }) }),
|
|
44
|
+
/* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("This action can't be undone.") })
|
|
186
45
|
] });
|
|
187
46
|
};
|
|
188
47
|
export {
|
|
189
|
-
|
|
190
|
-
Ne as ItemSelector
|
|
48
|
+
$ as RecurrenceCancelModal
|
|
191
49
|
};
|
|
@@ -1,110 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import "@
|
|
7
|
-
import "
|
|
8
|
-
import "react
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { MeasureUnitsFormRow as f } from "./index411.js";
|
|
3
|
+
import { ConfirmDeleteMeasureUnitDialog as j } from "./index412.js";
|
|
4
|
+
import { TableActions as z } from "./index413.js";
|
|
5
|
+
import { Table as A, TableHeader as E, TableRow as h, TableHead as l, TableBody as G, TableCell as d } from "./index244.js";
|
|
6
|
+
import { useLingui as I } from "@lingui/react";
|
|
7
|
+
import { Loader2 as b, Search as S } from "lucide-react";
|
|
8
|
+
import { useState as m, useCallback as w } from "react";
|
|
9
9
|
import "./index57.js";
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
isInclusivePricing: x
|
|
17
|
-
}) => {
|
|
10
|
+
import "react-hot-toast";
|
|
11
|
+
import { useGetMeasureUnits as _ } from "./index203.js";
|
|
12
|
+
import { useDeleteMeasureUnit as y } from "./index414.js";
|
|
13
|
+
import { InputGroup as F, InputGroupAddon as H, InputGroupInput as k } from "./index101.js";
|
|
14
|
+
import { useDebounceCallback as R } from "./index65.js";
|
|
15
|
+
const at = () => {
|
|
18
16
|
const {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}), d = O(), i = k(!1), [v, P] = z(!1), b = h("line_items"), V = h("tax_rate"), T = N(b), {
|
|
37
|
-
formatCurrencyToDisplay: A
|
|
38
|
-
} = W(), {
|
|
39
|
-
subtotalPrice: D,
|
|
40
|
-
totalPrice: L,
|
|
41
|
-
totalTaxes: R
|
|
42
|
-
} = $({
|
|
43
|
-
lineItems: T,
|
|
44
|
-
actualCurrency: f,
|
|
45
|
-
isInclusivePricing: x,
|
|
46
|
-
formatCurrencyToDisplay: A,
|
|
47
|
-
taxRate: Number(V) || void 0
|
|
48
|
-
}), n = u((e) => {
|
|
49
|
-
const t = {
|
|
50
|
-
name: e?.product?.name || "",
|
|
51
|
-
price: {
|
|
52
|
-
currency: f,
|
|
53
|
-
value: e?.product?.price?.value || 0
|
|
54
|
-
},
|
|
55
|
-
measure_unit_id: e?.product?.measure_unit_id || "",
|
|
56
|
-
type: e?.product?.type || "product"
|
|
57
|
-
};
|
|
58
|
-
return {
|
|
59
|
-
id: e?.id ?? j(),
|
|
60
|
-
product_id: e?.product_id || "",
|
|
61
|
-
product: t,
|
|
62
|
-
quantity: e?.quantity ?? 1,
|
|
63
|
-
tax_rate_value: e?.tax_rate_value ? e?.tax_rate_value ?? 0 : void 0,
|
|
64
|
-
...e?.measure_unit ? {
|
|
65
|
-
measure_unit: e.measure_unit
|
|
66
|
-
} : {},
|
|
67
|
-
taxable: !0
|
|
68
|
-
};
|
|
69
|
-
}, [f]), S = u(() => {
|
|
70
|
-
if (i.current) return;
|
|
71
|
-
i.current = !0, c(n());
|
|
72
|
-
const e = r("line_items");
|
|
73
|
-
e && e.length > 0 && m(`line_items.${e.length - 1}`);
|
|
74
|
-
}, [c, n, r, m]);
|
|
75
|
-
I(() => {
|
|
76
|
-
i.current && Promise.resolve().then(() => {
|
|
77
|
-
d.current && (i.current = !1);
|
|
17
|
+
i18n: i
|
|
18
|
+
} = I(), [g, s] = m(null), [a, c] = m(null), x = !!a, [u, N] = m(""), {
|
|
19
|
+
data: C,
|
|
20
|
+
isLoading: M
|
|
21
|
+
} = _(), n = y(a?.name), $ = R((t) => {
|
|
22
|
+
N(t);
|
|
23
|
+
}, 500), D = C?.data?.filter((t) => t.name.toLowerCase().includes(u.toLowerCase()) || t.description && t.description.toLowerCase().includes(u.toLowerCase())) || [], L = w((t) => {
|
|
24
|
+
c(t);
|
|
25
|
+
}, []), o = w(() => {
|
|
26
|
+
c(null);
|
|
27
|
+
}, []), U = w(() => {
|
|
28
|
+
a && n.mutate({
|
|
29
|
+
path: {
|
|
30
|
+
unit_id: a.id
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
onSuccess: () => o()
|
|
78
34
|
});
|
|
79
|
-
}, [a
|
|
80
|
-
|
|
81
|
-
}, [d, v, r, c, n]);
|
|
82
|
-
const q = u((e) => y(e), [y, r]), E = u(() => {
|
|
83
|
-
const e = r("line_items");
|
|
84
|
-
if (!e?.length) return;
|
|
85
|
-
const t = e.filter((s) => !!s?.product?.name?.trim()), p = e.find((s) => !s?.product?.name?.trim()), _ = t.length > 0 ? t : e.length > 0 ? [n(p || void 0)] : [];
|
|
86
|
-
(_.length !== e.length || !_.every((s, U) => s.id === e[U]?.id)) && (m("line_items"), l("line_items", _, {
|
|
87
|
-
shouldValidate: !1,
|
|
88
|
-
shouldDirty: !0
|
|
89
|
-
}));
|
|
90
|
-
}, [r, l, m, n]), F = u((e, t, p) => {
|
|
91
|
-
l(e, t, {
|
|
92
|
-
shouldDirty: !0,
|
|
93
|
-
...p
|
|
94
|
-
}), p?.shouldValidate && g(e);
|
|
95
|
-
}, [l, g]), M = JSON.stringify(o.line_items), w = J(() => Array.isArray(o.line_items) ? a.map((e, t) => o.line_items?.[t] ?? {}) : a.map(() => ({})), [o.line_items, M, a]);
|
|
96
|
-
return {
|
|
97
|
-
fields: a,
|
|
98
|
-
subtotalPrice: D,
|
|
99
|
-
totalPrice: L,
|
|
100
|
-
totalTaxes: R,
|
|
101
|
-
lineItemErrors: w,
|
|
102
|
-
handleAddRow: S,
|
|
103
|
-
handleRemoveItem: q,
|
|
104
|
-
setValueWithValidationLocal: F,
|
|
105
|
-
cleanUpLineItemsForSubmission: E
|
|
35
|
+
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
+
s(null);
|
|
106
37
|
};
|
|
38
|
+
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative", children: [
|
|
39
|
+
M ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }) : /* @__PURE__ */ r(T, { children: [
|
|
40
|
+
p && /* @__PURE__ */ e("div", { className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }),
|
|
41
|
+
/* @__PURE__ */ r(F, { children: [
|
|
42
|
+
/* @__PURE__ */ e(H, { align: "inline-start", children: /* @__PURE__ */ e(S, {}) }),
|
|
43
|
+
/* @__PURE__ */ e(k, { placeholder: i._("Search"), onChange: (t) => $(t.target.value) })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ r(A, { className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md", children: [
|
|
46
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(h, { className: "ttw:hover:bg-transparent ttw:border-border", children: [
|
|
47
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[35%]", children: i._("Unit label") }),
|
|
48
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
+
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
+
] }) }),
|
|
51
|
+
/* @__PURE__ */ r(G, { children: [
|
|
52
|
+
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
+
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
+
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
+
isUpdateAllowed: !0,
|
|
58
|
+
isDeleteAllowed: !0
|
|
59
|
+
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
+
] }, t.id))
|
|
61
|
+
] })
|
|
62
|
+
] })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
65
|
+
] });
|
|
107
66
|
};
|
|
108
67
|
export {
|
|
109
|
-
|
|
68
|
+
at as ManageMeasureUnitsForm
|
|
110
69
|
};
|