TableSummaryTriputra.js 377 KB
Newer Older
Riri Novita's avatar
Riri Novita committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import { createMuiTheme, FormControlLabel, Input, MuiThemeProvider, TableCell, Typography } from '@material-ui/core'
import MUIDataTable from 'mui-datatables';
import React, { Component } from 'react'
import NumberFormat from 'react-number-format';
import * as R from 'ramda'


var ct = require("../../library/CustomTable");
const getMuiTheme = () => createMuiTheme(ct.customTable3());

const options = ct.customOptionsFixedColumn();
const style = {
    position: "sticky",
    left: 0,
    zIndex: 101,
    background: "white",
};
const style2 = {
    position: "sticky",
    background: "white",
    zIndex: 100
};

export default class TableSummaryTriputra extends Component {
    render() {
        let dataTable2 = this.props.dataTable

        const columnMTD = [
Riri Novita's avatar
Riri Novita committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
47
            {
Riri Novita's avatar
Riri Novita committed
48
                name: "Company",
Riri Novita's avatar
Riri Novita committed
49
                options: {
Riri Novita's avatar
Riri Novita committed
50 51 52 53 54 55 56 57 58
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300, borderRight: '1px #fff solid' }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
Riri Novita's avatar
Riri Novita committed
59 60 61 62 63 64 65 66
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
Riri Novita's avatar
Riri Novita committed
67 68 69
                            </div>
                        )
                    }
Riri Novita's avatar
Riri Novita committed
70
                }
Riri Novita's avatar
Riri Novita committed
71
            }, {
rifkaki's avatar
rifkaki committed
72
                name: `MTD ${Number(this.props.periode)}`,
Riri Novita's avatar
Riri Novita committed
73 74
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
75
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
76 77
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-4x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
78
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
79 80 81 82
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"Ravenue"}</span>
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
83
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
84 85
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
86
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
87 88
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
89
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
90 91 92 93
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
94
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
95
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
Riri Novita's avatar
Riri Novita committed
96 97 98
                                        <span>{"EBITDA"}</span>
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
99
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
100 101
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
102
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
103 104
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
105
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
106 107 108 109
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
110
                                <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
111
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
Riri Novita's avatar
Riri Novita committed
112 113 114
                                        <span>{"TPAT"}</span>
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
115
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
116 117
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
118
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
119 120
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
121
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
122 123 124 125
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
126
                                <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
127
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
Riri Novita's avatar
Riri Novita committed
128 129 130
                                        <span>{"NPAT"}</span>
                                    </div>
                                    <div className="grid grid-3x" style={{ height: 25}}>
Riri Novita's avatar
Riri Novita committed
131
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
132 133
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
134
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
135 136
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
137
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
Riri Novita's avatar
Riri Novita committed
138 139 140 141 142 143 144 145 146
                                            <span>{"% of MB"}</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
Riri Novita's avatar
Riri Novita committed
147 148 149
                        // if (tableMeta.rowData[3] == "ABA" ) {
                        //     console.log(tableMeta.rowData);
                        // }
Riri Novita's avatar
Riri Novita committed
150 151
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
152
                                <div className="grid grid-4x content-center">
Riri Novita's avatar
Riri Novita committed
153 154
                                    <div className="col-1">
                                        <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
155 156 157 158 159 160 161 162
                                            <div className="col-1" style={{ padding: 0, left: -15}} >
                                                <div style={{ flex: 1}}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
163
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
164 165 166
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
167
                                                                value={(tableMeta.rowData[4])}
Riri Novita's avatar
Riri Novita committed
168 169 170
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
171 172 173
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
174 175 176 177 178 179 180
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
181
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
182 183 184
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
185
                                                                value={(tableMeta.rowData[5])}
Riri Novita's avatar
Riri Novita committed
186 187 188
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
189 190 191
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
192 193 194 195 196 197 198
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
199
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
200 201 202
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
203 204
                                                                suffix={'%'}
                                                                value={tableMeta.rowData[6]}
Riri Novita's avatar
Riri Novita committed
205 206 207
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
208 209 210 211 212
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="col-2">
Riri Novita's avatar
Riri Novita committed
213
                                        <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
214
                                            <div className="col-1">
Riri Novita's avatar
Riri Novita committed
215 216 217 218 219 220 221
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
222
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
223 224 225
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
226
                                                                value={(tableMeta.rowData[7])}
Riri Novita's avatar
Riri Novita committed
227 228 229
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
230 231 232
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
233 234 235 236 237 238 239
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
240
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
241 242 243
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
244
                                                                value={(tableMeta.rowData[8])}
Riri Novita's avatar
Riri Novita committed
245 246 247
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
248 249 250
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
251 252 253 254 255 256 257
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
258
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
259 260 261 262
                                                                type="text"
                                                                placeholder=""
                                                                suffix={'%'}
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
263
                                                                value={tableMeta.rowData[9]}
Riri Novita's avatar
Riri Novita committed
264 265 266
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
267 268 269 270 271 272 273
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="col-3">
                                        <div className="grid grid-3x content-center">
                                            <div className="col-1">
Riri Novita's avatar
Riri Novita committed
274 275 276 277 278 279 280
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
281
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
282 283 284
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
285
                                                                value={(tableMeta.rowData[10])}
Riri Novita's avatar
Riri Novita committed
286 287 288
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
289 290 291
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
292 293 294 295 296 297 298
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
299
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
300 301 302
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
303
                                                                value={(tableMeta.rowData[11])}
Riri Novita's avatar
Riri Novita committed
304 305 306
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
307 308 309
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
310 311 312 313 314 315 316
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
317
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
318 319 320 321
                                                                type="text"
                                                                placeholder=""
                                                                suffix={'%'}
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
322
                                                                value={tableMeta.rowData[12]}
Riri Novita's avatar
Riri Novita committed
323 324 325
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
326 327 328 329 330 331 332
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div className="col-4">
                                        <div className="grid grid-3x content-center">
                                            <div className="col-1">
Riri Novita's avatar
Riri Novita committed
333 334 335 336 337 338 339
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
340
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
341 342 343
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
344
                                                                value={(tableMeta.rowData[13])}
Riri Novita's avatar
Riri Novita committed
345 346 347
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
348 349 350
                                                </div>
                                            </div>
                                            <div className="col-2">
Riri Novita's avatar
Riri Novita committed
351 352 353 354 355 356 357
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
358
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
359 360 361
                                                                type="text"
                                                                placeholder=""
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
362
                                                                value={(tableMeta.rowData[14])}
Riri Novita's avatar
Riri Novita committed
363 364 365
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
366 367 368
                                                </div>
                                            </div>
                                            <div className="col-3">
Riri Novita's avatar
Riri Novita committed
369 370 371 372 373 374 375
                                                <div style={{ flex: 1 }}>
                                                    <FormControlLabel
                                                        style={{ margin: 0 }}
                                                        value={val}
                                                        control={
                                                            <NumberFormat
                                                                thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
376
                                                                style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
377 378 379 380
                                                                type="text"
                                                                placeholder=""
                                                                suffix={'%'}
                                                                disabled={true}
Riri Novita's avatar
Riri Novita committed
381
                                                                value={tableMeta.rowData[15]}
Riri Novita's avatar
Riri Novita committed
382 383 384
                                                            />
                                                        }
                                                    />
Riri Novita's avatar
Riri Novita committed
385 386 387 388 389 390 391 392 393
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                },
Riri Novita's avatar
Riri Novita committed
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
Riri Novita's avatar
Riri Novita committed
454
            },  {
rifkaki's avatar
rifkaki committed
455
                name: `MTD ${Number(this.props.periode)} (OPTIONAL)`,
Riri Novita's avatar
Riri Novita committed
456 457
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
458
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
459
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
Riri Novita's avatar
Riri Novita committed
460 461
                            <div className="column-5" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 65, width: 685 }}>
Riri Novita's avatar
Riri Novita committed
462 463 464 465 466 467
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"Cash Flow"}</span>
                                    </div>
                                    <div className="grid grid-4x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CFO"}</span>
Riri Novita's avatar
Riri Novita committed
468
                                        </div>
Riri Novita's avatar
Riri Novita committed
469 470 471 472 473 474 475 476
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CFI"}</span>
                                        </div>
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CFF"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Net CF"}</span>
Riri Novita's avatar
Riri Novita committed
477 478
                                        </div>
                                    </div>
Riri Novita's avatar
Riri Novita committed
479
                                </div>
Riri Novita's avatar
Riri Novita committed
480
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65, width: 685 }}>
Riri Novita's avatar
Riri Novita committed
481
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#37b5e6', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25, color: '#000000c4' }}>
Riri Novita's avatar
Riri Novita committed
482
                                        <span>{"OS Bank Loan"}</span>
Riri Novita's avatar
Riri Novita committed
483
                                    </div>
Riri Novita's avatar
Riri Novita committed
484 485 486
                                    <div className="grid grid-4x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"KI"}</span>
Riri Novita's avatar
Riri Novita committed
487
                                        </div>
Riri Novita's avatar
Riri Novita committed
488 489 490 491 492 493 494 495
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"WC"}</span>
                                        </div>
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Others"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Total"}</span>
Riri Novita's avatar
Riri Novita committed
496 497 498
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
499
                                <div className="column-3" style={{ placeSelf: 'center', borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', width: 200, alignItems: 'center', backgroundColor: '#07a7d0', height: 65 }}>
Riri Novita's avatar
Riri Novita committed
500 501
                                    <span>{"OS SHL"}</span>
                                </div>
Riri Novita's avatar
Riri Novita committed
502
                                <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65, width: 685 }}>
Riri Novita's avatar
Riri Novita committed
503
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#37b5e6', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25, color: '#000000c4' }}>
Riri Novita's avatar
Riri Novita committed
504 505 506 507 508 509 510 511 512 513 514
                                        <span>{"Balance Sheet"}</span>
                                    </div>
                                    <div className="grid grid-4x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Cash & Bank"}</span>
                                        </div>
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CA"}</span>
                                        </div>
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"CL"}</span>
Riri Novita's avatar
Riri Novita committed
515
                                        </div>
Riri Novita's avatar
Riri Novita committed
516 517 518 519 520
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                            <span>{"Equity"}</span>
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
521
                                <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 65, width: 887 }}>
Riri Novita's avatar
Riri Novita committed
522
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#37b5e6', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25, color: '#000000c4' }}>
Riri Novita's avatar
Riri Novita committed
523 524 525 526 527 528
                                        <span>{"Financial Ratio"}</span>
                                    </div>
                                    <div className="grid grid-2x" style={{ height: 25}}>
                                        <div className="column-1 grid grid-4x" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0' }}>
                                            <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"CR"}</span>
Riri Novita's avatar
Riri Novita committed
529
                                            </div>
Riri Novita's avatar
Riri Novita committed
530 531
                                            <div className="column-2" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"DER"}</span>
Riri Novita's avatar
Riri Novita committed
532
                                            </div>
Riri Novita's avatar
Riri Novita committed
533 534 535 536 537
                                            <div className="column-3" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"Debt to EBITDA"}</span>
                                            </div>
                                            <div className="column-4" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"to Interest"}</span>
Riri Novita's avatar
Riri Novita committed
538 539
                                            </div>
                                        </div>
Riri Novita's avatar
Riri Novita committed
540 541 542 543 544 545
                                        <div className="column-2 grid grid-4x" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0' }}>
                                            <div className="column-1" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"AR Days"}</span>
                                            </div>
                                            <div className="column-2" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"Inv Days"}</span>
Riri Novita's avatar
Riri Novita committed
546
                                            </div>
Riri Novita's avatar
Riri Novita committed
547 548
                                            <div className="column-3" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"AP Days"}</span>
Riri Novita's avatar
Riri Novita committed
549
                                            </div>
Riri Novita's avatar
Riri Novita committed
550 551
                                            <div className="column-4" style={{ borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#07a7d0', height: 40 }}>
                                                <span>{"CCC"}</span>
Riri Novita's avatar
Riri Novita committed
552 553 554 555 556 557 558 559 560 561 562
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
563 564
                                <div  style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
Riri Novita's avatar
Riri Novita committed
565 566 567 568 569 570 571
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
572
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
573 574 575
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
576
                                                        value={(tableMeta.rowData[16])}
Riri Novita's avatar
Riri Novita committed
577 578 579 580 581 582 583 584 585 586 587
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
588
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
589 590 591
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
592
                                                        value={(tableMeta.rowData[17])}
Riri Novita's avatar
Riri Novita committed
593 594 595 596 597 598 599 600 601 602 603
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
604
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
605 606 607
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
608
                                                        value={(tableMeta.rowData[18])}
Riri Novita's avatar
Riri Novita committed
609 610 611 612 613 614 615 616 617 618 619
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
620
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
621 622 623
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
624
                                                        value={(tableMeta.rowData[19])}
Riri Novita's avatar
Riri Novita committed
625 626 627
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
628 629 630
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
Riri Novita's avatar
Riri Novita committed
631 632 633 634 635 636 637
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
638
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
639 640 641
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
642
                                                        value={(tableMeta.rowData[20])}
Riri Novita's avatar
Riri Novita committed
643 644 645 646 647 648 649 650 651 652 653
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
654
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
655 656 657
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
658
                                                        value={(tableMeta.rowData[21])}
Riri Novita's avatar
Riri Novita committed
659 660 661 662 663 664 665 666 667 668 669
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
670
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
671 672 673
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
674
                                                        value={(tableMeta.rowData[22])}
Riri Novita's avatar
Riri Novita committed
675 676 677 678 679 680 681 682 683 684 685
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
686
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
687 688 689
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
690
                                                        value={(tableMeta.rowData[23])}
Riri Novita's avatar
Riri Novita committed
691 692 693
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
694 695 696
                                        </div>
                                    </div>
                                    <div style={{ display: 'grid', width: 150 }}>
Riri Novita's avatar
Riri Novita committed
697 698 699 700 701 702 703
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
704
                                                        style={{color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
705 706 707
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
708
                                                        value={(tableMeta.rowData[24])}
Riri Novita's avatar
Riri Novita committed
709 710 711
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
712 713 714
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
Riri Novita's avatar
Riri Novita committed
715 716 717 718 719 720 721
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
722
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
723 724 725
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
726
                                                        value={(tableMeta.rowData[25])}
Riri Novita's avatar
Riri Novita committed
727 728 729 730 731 732 733 734 735 736 737
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
738
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
739 740 741
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
742
                                                        value={(tableMeta.rowData[26])}
Riri Novita's avatar
Riri Novita committed
743 744 745 746 747 748 749 750 751 752 753
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
754
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
755 756 757
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
758
                                                        value={(tableMeta.rowData[27])}
Riri Novita's avatar
Riri Novita committed
759 760 761 762 763 764 765 766 767 768 769
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
770
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
771 772 773
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
774
                                                        value={(tableMeta.rowData[28])}
Riri Novita's avatar
Riri Novita committed
775 776 777
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
778 779
                                        </div>
                                    </div>
Riri Novita's avatar
Riri Novita committed
780 781 782 783 784 785 786 787
                                    <div style={{ display: 'flex', width: 860, justifyContent: 'space-between'}}>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
788
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
789 790 791
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
792
                                                        value={(tableMeta.rowData[29])}
Riri Novita's avatar
Riri Novita committed
793 794 795 796 797 798 799 800 801 802 803
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
804
                                                        style={{color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
805 806 807
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
808
                                                        value={(tableMeta.rowData[30])}
Riri Novita's avatar
Riri Novita committed
809 810 811 812 813 814 815 816 817 818 819
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
820
                                                        style={{color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
821 822 823
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
824
                                                        value={(tableMeta.rowData[31])}
Riri Novita's avatar
Riri Novita committed
825 826 827 828 829 830 831 832 833 834 835
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
836
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
837 838 839
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
840
                                                        value={(tableMeta.rowData[32])}
Riri Novita's avatar
Riri Novita committed
841 842 843 844 845 846 847 848 849 850 851
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
852
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
853 854 855
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
856
                                                        value={(tableMeta.rowData[33])}
Riri Novita's avatar
Riri Novita committed
857 858 859 860 861 862 863 864 865 866 867
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
868
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
869 870 871
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
872
                                                        value={(tableMeta.rowData[34])}
Riri Novita's avatar
Riri Novita committed
873 874 875 876 877 878 879 880 881 882 883
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
884
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
885 886 887
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
888
                                                        value={(tableMeta.rowData[35])}
Riri Novita's avatar
Riri Novita committed
889 890 891 892 893 894 895 896 897 898 899
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
900
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[37] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
901 902 903
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
904
                                                        value={(tableMeta.rowData[36])}
Riri Novita's avatar
Riri Novita committed
905 906 907
                                                    />
                                                }
                                            />
Riri Novita's avatar
Riri Novita committed
908 909 910
                                        </div>
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
911 912 913 914
                            </div>
                        )
                    }
                },
Riri Novita's avatar
Riri Novita committed
915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
Riri Novita's avatar
Riri Novita committed
1010 1011 1012 1013 1014
            }, {
                name: "",
                options: {
                    display: false
                }
Riri Novita's avatar
Riri Novita committed
1015 1016 1017 1018
            }
        ]

        const columnYTD = [
rifkaki's avatar
rifkaki committed
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
1037
            {
r.kurnia's avatar
r.kurnia committed
1038
                name: "Company",
Riri Novita's avatar
Riri Novita committed
1039
                options: {
r.kurnia's avatar
r.kurnia committed
1040 1041 1042 1043 1044 1045 1046 1047 1048
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300 }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
rifkaki's avatar
rifkaki committed
1049 1050 1051 1052 1053 1054 1055 1056
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
r.kurnia's avatar
r.kurnia committed
1057 1058 1059 1060 1061 1062 1063 1064
                            </div>
                        )
                    }
                }
            }, {
                name: `Revenue`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1065
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1066 1067 1068 1069
                            <div style={{ borderLeft: '2px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderLeft: '1px #fff solid', borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1070
                                        <span>{`YTD ${this.props.periode}`}</span>
r.kurnia's avatar
r.kurnia committed
1071
                                    </div>
r.kurnia's avatar
r.kurnia committed
1072 1073
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
r.kurnia's avatar
r.kurnia committed
1074
                                            <span>{"Act"}</span>
r.kurnia's avatar
r.kurnia committed
1075
                                        </div>
Riri Novita's avatar
Riri Novita committed
1076
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1077
                                            <span>{"MB"}</span>
r.kurnia's avatar
r.kurnia committed
1078
                                        </div>
Riri Novita's avatar
Riri Novita committed
1079
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1080
                                            <span>{"% of MB"}</span>
r.kurnia's avatar
r.kurnia committed
1081
                                        </div>
r.kurnia's avatar
r.kurnia committed
1082
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1083
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1084
                                        </div>
r.kurnia's avatar
r.kurnia committed
1085
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1086
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1087 1088
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1089
                                </div>
r.kurnia's avatar
r.kurnia committed
1090 1091
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
r.kurnia's avatar
r.kurnia committed
1092
                                        <span>{"FY"}</span>
r.kurnia's avatar
r.kurnia committed
1093
                                    </div>
rifkaki's avatar
rifkaki committed
1094
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1095
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1096
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1097
                                        </div>
Riri Novita's avatar
Riri Novita committed
1098
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1099
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1100
                                        </div>
Riri Novita's avatar
Riri Novita committed
1101
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1102
                                            <span>{"% of MB"}</span>
r.kurnia's avatar
r.kurnia committed
1103
                                        </div>
r.kurnia's avatar
r.kurnia committed
1104
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1105
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1106
                                        </div>
rifkaki's avatar
rifkaki committed
1107
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1108
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1109 1110
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1111
                                </div>
r.kurnia's avatar
r.kurnia committed
1112 1113 1114
                            </div>
                        </th>
                    ),
r.kurnia's avatar
r.kurnia committed
1115
                    setCellProps: () => ({ style2 }),
r.kurnia's avatar
r.kurnia committed
1116 1117 1118
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
r.kurnia's avatar
r.kurnia committed
1119 1120
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1121 1122 1123 1124 1125 1126 1127
                                        <div style={{ flex: 1 }}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1128
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1129 1130 1131
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1132
                                                        value={(tableMeta.rowData[4])}
rifkaki's avatar
rifkaki committed
1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1144
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1145 1146 1147
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1148
                                                        value={(tableMeta.rowData[5])}
rifkaki's avatar
rifkaki committed
1149 1150 1151
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1152
                                        </div>
rifkaki's avatar
rifkaki committed
1153 1154 1155 1156 1157 1158 1159
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1160
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1161 1162 1163
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1164
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1165 1166
                                                        value={(tableMeta.rowData[6])}
                                                        // value={Number(String(tableMeta.rowData[6]).substr(0, String(tableMeta.rowData[6]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1167 1168 1169
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1170
                                        </div>
rifkaki's avatar
rifkaki committed
1171 1172 1173 1174 1175 1176 1177
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1178
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1179 1180 1181
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1182
                                                        value={(tableMeta.rowData[7])}
rifkaki's avatar
rifkaki committed
1183 1184 1185
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1186
                                        </div>
rifkaki's avatar
rifkaki committed
1187 1188 1189 1190 1191 1192 1193
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1194
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1195 1196 1197
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1198
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1199 1200
                                                        value={tableMeta.rowData[8]}
                                                        // value={Number(String(tableMeta.rowData[8]).substr(0, String(tableMeta.rowData[8]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1201 1202 1203
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1204 1205
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1206
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1207 1208 1209 1210 1211 1212 1213
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1214
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1215 1216 1217
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1218
                                                        value={(tableMeta.rowData[9])}
rifkaki's avatar
rifkaki committed
1219 1220 1221
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1222
                                        </div>
rifkaki's avatar
rifkaki committed
1223 1224 1225 1226 1227 1228 1229
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1230
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1231 1232 1233
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1234
                                                        value={(tableMeta.rowData[10])}
rifkaki's avatar
rifkaki committed
1235 1236 1237
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1238
                                        </div>
rifkaki's avatar
rifkaki committed
1239 1240 1241 1242 1243 1244 1245
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1246
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1247 1248 1249
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1250
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1251 1252
                                                        value={tableMeta.rowData[11]}
                                                        // value={Number(String(tableMeta.rowData[11]).substr(0, String(tableMeta.rowData[11]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1253 1254 1255
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1256
                                        </div>
rifkaki's avatar
rifkaki committed
1257 1258 1259 1260 1261 1262 1263
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1264
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1265 1266 1267
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1268
                                                        value={(tableMeta.rowData[12])}
rifkaki's avatar
rifkaki committed
1269 1270 1271
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1272
                                        </div>
rifkaki's avatar
rifkaki committed
1273 1274 1275 1276 1277 1278 1279
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1280
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1281 1282 1283
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1284
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1285 1286
                                                        value={tableMeta.rowData[13]}
                                                        // value={Number(String(tableMeta.rowData[13]).substr(0, String(tableMeta.rowData[13]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1287 1288 1289
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1290 1291 1292 1293 1294 1295 1296
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
r.kurnia's avatar
r.kurnia committed
1357 1358 1359 1360
            }, {
                name: `EBITDA`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1361
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1362 1363 1364 1365
                            <div style={{ borderLeft: '1px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1366
                                        <span>{`YTD ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1367 1368 1369 1370
                                    </div>
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
                                            <span>{"Act"}</span>
r.kurnia's avatar
r.kurnia committed
1371
                                        </div>
Riri Novita's avatar
Riri Novita committed
1372
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1373 1374
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1375
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1376 1377 1378
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1379
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1380
                                        </div>
r.kurnia's avatar
r.kurnia committed
1381
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1382
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1383
                                        </div>
r.kurnia's avatar
r.kurnia committed
1384
                                    </div>
r.kurnia's avatar
r.kurnia committed
1385 1386 1387 1388 1389
                                </div>
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"FY"}</span>
                                    </div>
rifkaki's avatar
rifkaki committed
1390
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1391
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1392
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1393
                                        </div>
Riri Novita's avatar
Riri Novita committed
1394
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1395
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1396
                                        </div>
Riri Novita's avatar
Riri Novita committed
1397
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1398 1399 1400
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1401
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1402
                                        </div>
rifkaki's avatar
rifkaki committed
1403
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1404
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1405 1406 1407
                                        </div>
                                    </div>
                                </div>
r.kurnia's avatar
r.kurnia committed
1408 1409 1410 1411 1412 1413 1414
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
r.kurnia's avatar
r.kurnia committed
1415 1416
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1417 1418 1419 1420 1421 1422 1423
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1424
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1425 1426 1427
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1428
                                                        value={(tableMeta.rowData[14])}
rifkaki's avatar
rifkaki committed
1429 1430 1431
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1432
                                        </div>
rifkaki's avatar
rifkaki committed
1433 1434 1435 1436 1437 1438 1439
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1440
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1441 1442 1443
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1444
                                                        value={(tableMeta.rowData[15])}
rifkaki's avatar
rifkaki committed
1445 1446 1447
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1448
                                        </div>
rifkaki's avatar
rifkaki committed
1449 1450 1451 1452 1453 1454 1455
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1456
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1457 1458 1459
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1460
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1461 1462
                                                        value={tableMeta.rowData[16]}
                                                        // value={Number(String(tableMeta.rowData[16]).substr(0, String(tableMeta.rowData[16]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1463 1464 1465
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1466
                                        </div>
rifkaki's avatar
rifkaki committed
1467 1468 1469 1470 1471 1472 1473
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1474
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1475 1476 1477
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1478
                                                        value={(tableMeta.rowData[17])}
rifkaki's avatar
rifkaki committed
1479 1480 1481
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1482
                                        </div>
rifkaki's avatar
rifkaki committed
1483 1484 1485 1486 1487 1488 1489
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1490
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1491 1492 1493
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1494
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1495 1496
                                                        value={tableMeta.rowData[18]}
                                                        // value={Number(String(tableMeta.rowData[18]).substr(0, String(tableMeta.rowData[18]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1497 1498 1499
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1500 1501
                                        </div>
                                    </div>
r.kurnia's avatar
r.kurnia committed
1502
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1503 1504 1505 1506 1507 1508 1509
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1510
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1511 1512 1513
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1514
                                                        value={(tableMeta.rowData[19])}
rifkaki's avatar
rifkaki committed
1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1526
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1527 1528 1529
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1530
                                                        value={(tableMeta.rowData[20])}
rifkaki's avatar
rifkaki committed
1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1542
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1543 1544 1545
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1546
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1547 1548
                                                        value={tableMeta.rowData[21]}
                                                        // value={Number(String(tableMeta.rowData[21]).substr(0, String(tableMeta.rowData[21]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1560
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1561 1562 1563
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1564
                                                        value={(tableMeta.rowData[22])}
rifkaki's avatar
rifkaki committed
1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575
                                                    />
                                                }
                                            />
                                        </div>
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1576
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1577 1578 1579
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1580 1581
                                                        suffix={"%"}
                                                        value={tableMeta.rowData[23]}
Riri Novita's avatar
Riri Novita committed
1582
                                                        // value={Number(String(tableMeta.rowData[23]).substr(0, String(tableMeta.rowData[23]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1583 1584 1585 1586 1587 1588 1589 1590
                                                    />
                                                }
                                            />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
r.kurnia's avatar
r.kurnia committed
1591 1592
                    }
                }
rifkaki's avatar
rifkaki committed
1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
r.kurnia's avatar
r.kurnia committed
1659 1660 1661 1662
            }, {
                name: `TPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1663
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1664 1665 1666 1667
                            <div style={{ borderLeft: '1px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1668
                                        <span>{`YTD ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1669 1670 1671 1672
                                    </div>
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
                                            <span>{"Act"}</span>
r.kurnia's avatar
r.kurnia committed
1673
                                        </div>
Riri Novita's avatar
Riri Novita committed
1674
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1675 1676
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1677
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1678 1679 1680
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1681
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1682 1683
                                        </div>
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1684
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1685 1686 1687 1688 1689 1690 1691
                                        </div>
                                    </div>
                                </div>
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"FY"}</span>
                                    </div>
rifkaki's avatar
rifkaki committed
1692
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1693
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1694
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1695
                                        </div>
Riri Novita's avatar
Riri Novita committed
1696
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1697
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1698
                                        </div>
Riri Novita's avatar
Riri Novita committed
1699
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1700 1701 1702
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1703
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1704
                                        </div>
rifkaki's avatar
rifkaki committed
1705
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1706
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1719 1720 1721 1722 1723 1724 1725
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1726
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1727 1728 1729
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1730
                                                        value={(tableMeta.rowData[24])}
rifkaki's avatar
rifkaki committed
1731 1732 1733
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1734
                                        </div>
rifkaki's avatar
rifkaki committed
1735 1736 1737 1738 1739 1740 1741
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1742
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1743 1744 1745
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1746
                                                        value={(tableMeta.rowData[25])}
rifkaki's avatar
rifkaki committed
1747 1748 1749
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1750
                                        </div>
rifkaki's avatar
rifkaki committed
1751 1752 1753 1754 1755 1756 1757
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1758
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1759 1760 1761
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1762
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1763 1764
                                                        value={tableMeta.rowData[26]}
                                                        // value={Number(String(tableMeta.rowData[26]).substr(0, String(tableMeta.rowData[26]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1765 1766 1767
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1768
                                        </div>
rifkaki's avatar
rifkaki committed
1769 1770 1771 1772 1773 1774 1775
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1776
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1777 1778 1779
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1780
                                                        value={(tableMeta.rowData[27])}
rifkaki's avatar
rifkaki committed
1781 1782 1783
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1784
                                        </div>
rifkaki's avatar
rifkaki committed
1785 1786 1787 1788 1789 1790 1791
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1792
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1793 1794 1795
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1796
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1797 1798
                                                        value={tableMeta.rowData[28]}
                                                        // value={Number(String(tableMeta.rowData[28]).substr(0, String(tableMeta.rowData[28]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1799 1800 1801
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1802 1803 1804
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
1805 1806 1807 1808 1809 1810 1811
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1812
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1813 1814 1815
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1816
                                                        value={(tableMeta.rowData[29])}
rifkaki's avatar
rifkaki committed
1817 1818 1819
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1820
                                        </div>
rifkaki's avatar
rifkaki committed
1821 1822 1823 1824 1825 1826 1827
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1828
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1829 1830 1831
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1832
                                                        value={(tableMeta.rowData[30])}
rifkaki's avatar
rifkaki committed
1833 1834 1835
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1836
                                        </div>
rifkaki's avatar
rifkaki committed
1837 1838 1839 1840 1841 1842 1843
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1844
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1845 1846 1847
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1848
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1849 1850
                                                        value={tableMeta.rowData[31]}
                                                        // value={Number(String(tableMeta.rowData[31]).substr(0, String(tableMeta.rowData[31]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1851 1852 1853
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1854
                                        </div>
rifkaki's avatar
rifkaki committed
1855 1856 1857 1858 1859 1860 1861
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1862
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1863 1864 1865
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
1866
                                                        value={(tableMeta.rowData[32])}
rifkaki's avatar
rifkaki committed
1867 1868 1869
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1870
                                        </div>
rifkaki's avatar
rifkaki committed
1871 1872 1873 1874 1875 1876 1877
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
1878
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
1879 1880 1881
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
1882
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
1883 1884
                                                        value={tableMeta.rowData[33]}
                                                        // value={Number(String(tableMeta.rowData[33]).substr(0, String(tableMeta.rowData[33]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
1885 1886 1887
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
1888 1889 1890 1891 1892 1893 1894
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
r.kurnia's avatar
r.kurnia committed
1961 1962 1963 1964
            }, {
                name: `NPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
1965
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)", paddingLeft: 0 }} >
r.kurnia's avatar
r.kurnia committed
1966 1967 1968 1969
                            <div style={{ borderLeft: '1px #fff solid', borderRight: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', fontSize: 12, fontWeight: 'bold', padding: 5, height: 40 }}>{columnMeta.name}</div>
                            <div className="column-3" style={{ ...style2, display: 'flex', backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#07a7d0', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
rifkaki's avatar
rifkaki committed
1970
                                        <span>{`YTD ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1971 1972 1973 1974 1975
                                    </div>
                                    <div className="grid grid-5x" style={{ height: 25}}>
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
                                            <span>{"Act"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1976
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1977 1978
                                            <span>{"MB"}</span>
                                        </div>
Riri Novita's avatar
Riri Novita committed
1979
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
1980 1981 1982
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1983
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1984 1985
                                        </div>
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
1986
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
1987 1988 1989 1990 1991 1992 1993
                                        </div>
                                    </div>
                                </div>
                                <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', border: '1px #fff solid', backgroundColor: '#37b5e6', height: 66, width: 685 }}>
                                    <div style={{ borderBottom: '1px #fff solid', backgroundColor: '#1c71b8', justifyContent: 'center', display: 'flex', alignItems: 'center', color: 'white', height: 25 }}>
                                        <span>{"FY"}</span>
                                    </div>
rifkaki's avatar
rifkaki committed
1994
                                    <div className="grid grid-5x" style={{ height: 25 }}>
Riri Novita's avatar
Riri Novita committed
1995
                                        <div className="column-1" style={{ justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1996
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
1997
                                        </div>
Riri Novita's avatar
Riri Novita committed
1998
                                        <div className="column-2" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
rifkaki's avatar
rifkaki committed
1999
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
r.kurnia's avatar
r.kurnia committed
2000
                                        </div>
Riri Novita's avatar
Riri Novita committed
2001
                                        <div className="column-3" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#37b5e6', height: 40, color: '#000000c4' }}>
r.kurnia's avatar
r.kurnia committed
2002 2003 2004
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-4" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
2005
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
2006
                                        </div>
rifkaki's avatar
rifkaki committed
2007
                                        <div className="column-5" style={{ borderLeft: '1px #fff solid', justifyContent: 'center', display: 'flex', alignItems: 'center', backgroundColor: '#008bffc4', height: 40 }}>
rifkaki's avatar
rifkaki committed
2008
                                            <span>{`% of ${Number(this.props.periode) - 1}`}</span>
r.kurnia's avatar
r.kurnia committed
2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2021 2022 2023 2024 2025 2026 2027
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2028
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2029 2030 2031
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2032
                                                        value={(tableMeta.rowData[34])}
rifkaki's avatar
rifkaki committed
2033 2034 2035
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2036
                                        </div>
rifkaki's avatar
rifkaki committed
2037 2038 2039 2040 2041 2042 2043
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2044
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2045 2046 2047
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2048
                                                        value={(tableMeta.rowData[35])}
rifkaki's avatar
rifkaki committed
2049 2050 2051
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2052
                                        </div>
rifkaki's avatar
rifkaki committed
2053 2054 2055 2056 2057 2058 2059
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2060
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2061 2062 2063
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
2064
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2065 2066
                                                        value={tableMeta.rowData[36]}
                                                        // value={Number(String(tableMeta.rowData[36]).substr(0, String(tableMeta.rowData[36]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2067 2068 2069
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2070
                                        </div>
rifkaki's avatar
rifkaki committed
2071 2072 2073 2074 2075 2076 2077
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2078
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2079 2080 2081
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2082
                                                        value={(tableMeta.rowData[37])}
rifkaki's avatar
rifkaki committed
2083 2084 2085
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2086
                                        </div>
rifkaki's avatar
rifkaki committed
2087 2088 2089 2090 2091 2092 2093
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2094
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2095 2096 2097
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
2098
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2099 2100
                                                        value={tableMeta.rowData[38]}
                                                        // value={Number(String(tableMeta.rowData[38]).substr(0, String(tableMeta.rowData[38]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2101 2102 2103
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2104 2105 2106
                                        </div>
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2107 2108 2109 2110 2111 2112 2113
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2114
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2115 2116 2117
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2118
                                                        value={(tableMeta.rowData[39])}
rifkaki's avatar
rifkaki committed
2119 2120 2121
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2122
                                        </div>
rifkaki's avatar
rifkaki committed
2123 2124 2125 2126 2127 2128 2129
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2130
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2131 2132 2133
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2134
                                                        value={(tableMeta.rowData[40])}
rifkaki's avatar
rifkaki committed
2135 2136 2137
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2138
                                        </div>
rifkaki's avatar
rifkaki committed
2139 2140 2141 2142 2143 2144 2145
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2146
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2147 2148 2149
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
rifkaki's avatar
rifkaki committed
2150
                                                        suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2151 2152
                                                        value={tableMeta.rowData[41]}
                                                        // value={Number(String(tableMeta.rowData[41]).substr(0, String(tableMeta.rowData[41]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2153 2154 2155
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2156
                                        </div>
rifkaki's avatar
rifkaki committed
2157 2158 2159 2160 2161 2162 2163
                                        <div style={{ flex: 1}}>
                                            <FormControlLabel
                                                style={{ margin: 0 }}
                                                value={val}
                                                control={
                                                    <NumberFormat
                                                        thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2164
                                                        style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2165 2166 2167
                                                        type="text"
                                                        placeholder=""
                                                        disabled={true}
Riri Novita's avatar
Riri Novita committed
2168
                                                        value={(tableMeta.rowData[42])}
rifkaki's avatar
rifkaki committed
2169 2170 2171
                                                    />
                                                }
                                            />
r.kurnia's avatar
r.kurnia committed
2172
                                        </div>
rifkaki's avatar
rifkaki committed
2173 2174 2175 2176 2177 2178 2179
                                        <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
2180
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[45] ? '#5198ea' : '#000000de', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
rifkaki's avatar
rifkaki committed
2181 2182 2183 2184
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={"%"}
Riri Novita's avatar
Riri Novita committed
2185 2186
                                                            value={tableMeta.rowData[43]}
                                                            // value={Number(String(tableMeta.rowData[43]).substr(0, String(tableMeta.rowData[43]).length - 1)).toFixed(1)}
rifkaki's avatar
rifkaki committed
2187 2188 2189 2190
                                                        />
                                                    }
                                                />
                                            </div>
r.kurnia's avatar
r.kurnia committed
2191 2192 2193 2194 2195
                                        </div>
                                </div>
                            </div>
                        )
                    }
Riri Novita's avatar
Riri Novita committed
2196
                }
rifkaki's avatar
rifkaki committed
2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
rifkaki's avatar
rifkaki committed
2264 2265 2266 2267 2268
            {
                name: "",
                options: {
                    display: false
                }
rifkaki's avatar
rifkaki committed
2269 2270 2271 2272 2273 2274
            },  
            {
                name: "",
                options: {
                    display: false
                }
rifkaki's avatar
rifkaki committed
2275
            }, 
Riri Novita's avatar
Riri Novita committed
2276 2277 2278
        ]

        const columnHistorical = [
rifkaki's avatar
rifkaki committed
2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            },
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
2297
            {
2298
                name: "Company",
Riri Novita's avatar
Riri Novita committed
2299
                options: {
2300 2301 2302 2303 2304 2305 2306 2307 2308
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300 }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
rifkaki's avatar
rifkaki committed
2309 2310 2311 2312 2313 2314 2315 2316
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
2317 2318 2319 2320 2321 2322 2323 2324
                            </div>
                        )
                    }
                }
            }, {
                name: `Revenue`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
2325
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)"}} >
2326
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
2327 2328
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
2329
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2330
                                            <span>{ Number(this.props.periode) - 10 }</span>
2331 2332
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2333
                                            <span>{ Number(this.props.periode) - 9 }</span>
2334 2335
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2336
                                            <span>{ Number(this.props.periode) - 8 }</span>
2337 2338
                                        </div>
                                        <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2339
                                            <span>{ Number(this.props.periode) - 7 }</span>
2340
                                        </div>
rifkaki's avatar
rifkaki committed
2341
                                        <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2342
                                            <span>{ Number(this.props.periode) - 6 }</span>
2343
                                        </div>
rifkaki's avatar
rifkaki committed
2344 2345 2346
                                    </div>
                                    <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2347
                                            <span>{ Number(this.props.periode) - 5 }</span>
2348
                                        </div>
rifkaki's avatar
rifkaki committed
2349
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2350
                                            <span>{ Number(this.props.periode) - 4 }</span>
2351
                                        </div>
rifkaki's avatar
rifkaki committed
2352
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2353
                                            <span>{ Number(this.props.periode) - 3 }</span>
2354
                                        </div>
rifkaki's avatar
rifkaki committed
2355
                                        <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2356
                                            <span>{ Number(this.props.periode) - 2 }</span>
2357
                                        </div>
rifkaki's avatar
rifkaki committed
2358
                                        <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2359
                                            <span>{ Number(this.props.periode) - 1 }</span>
2360 2361 2362 2363 2364 2365 2366 2367 2368
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
2369 2370 2371
                                <div style={{ display: 'flex', justifyContent: 'space-between' }}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2383
                                                            value={Number(tableMeta.rowData[4]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2384 2385 2386
                                                        />
                                                    }
                                                />
2387
                                            </div>
rifkaki's avatar
rifkaki committed
2388 2389
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2401
                                                            value={Number(tableMeta.rowData[5]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2402 2403 2404
                                                        />
                                                    }
                                                />
2405
                                            </div>
rifkaki's avatar
rifkaki committed
2406 2407
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2419
                                                            value={Number(tableMeta.rowData[6]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2420 2421 2422
                                                        />
                                                    }
                                                />
2423
                                            </div>
rifkaki's avatar
rifkaki committed
2424 2425
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2437
                                                            value={Number(tableMeta.rowData[7]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2438 2439 2440
                                                        />
                                                    }
                                                />
2441
                                            </div>
rifkaki's avatar
rifkaki committed
2442 2443
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2444
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2445 2446 2447 2448 2449 2450 2451 2452 2453 2454
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2455
                                                            value={Number(tableMeta.rowData[8]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2456 2457 2458
                                                        />
                                                    }
                                                />
2459
                                            </div>
rifkaki's avatar
rifkaki committed
2460
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
2461 2462
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2463
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2475
                                                            value={Number(tableMeta.rowData[9]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2476 2477 2478
                                                        />
                                                    }
                                                />
2479
                                            </div>
rifkaki's avatar
rifkaki committed
2480 2481
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2493
                                                            value={Number(tableMeta.rowData[10]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2494 2495 2496
                                                        />
                                                    }
                                                />
2497
                                            </div>
rifkaki's avatar
rifkaki committed
2498 2499
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2511
                                                            value={Number(tableMeta.rowData[11]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2512 2513 2514
                                                        />
                                                    }
                                                />
2515
                                            </div>
rifkaki's avatar
rifkaki committed
2516 2517
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2518
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2519 2520 2521 2522 2523 2524 2525 2526 2527 2528
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2529
                                                            value={Number(tableMeta.rowData[12]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2530 2531 2532
                                                        />
                                                    }
                                                />
2533
                                            </div>
rifkaki's avatar
rifkaki committed
2534 2535
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2547
                                                            value={Number(tableMeta.rowData[13]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2548 2549 2550
                                                        />
                                                    }
                                                />
2551
                                            </div>
rifkaki's avatar
rifkaki committed
2552
                                        {/* </div> */}
2553 2554 2555 2556 2557 2558
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
2619 2620 2621 2622
            }, {
                name: `EBITDA`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
2623
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
2624
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
2625 2626
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
2627 2628
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
2629
                                    </div>
rifkaki's avatar
rifkaki committed
2630 2631
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
2632
                                    </div>
rifkaki's avatar
rifkaki committed
2633 2634 2635 2636 2637 2638
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2639
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2640 2641
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2642 2643 2644
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2645 2646
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2647
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2648 2649
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2650
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2651 2652
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2653
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2654
                                        <span>{ Number(this.props.periode) - 2 }</span>
2655
                                    </div>
rifkaki's avatar
rifkaki committed
2656
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2657 2658 2659
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
2660 2661 2662 2663 2664 2665 2666
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
2667 2668 2669
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2681
                                                            value={Number(tableMeta.rowData[15]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2682 2683 2684
                                                        />
                                                    }
                                                />
2685
                                            </div>
rifkaki's avatar
rifkaki committed
2686 2687
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2699
                                                            value={Number(tableMeta.rowData[16]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2700 2701 2702
                                                        />
                                                    }
                                                />
2703
                                            </div>
rifkaki's avatar
rifkaki committed
2704 2705
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2717
                                                            value={Number(tableMeta.rowData[17]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2718 2719 2720
                                                        />
                                                    }
                                                />
2721
                                            </div>
rifkaki's avatar
rifkaki committed
2722 2723
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2735
                                                            value={Number(tableMeta.rowData[18]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2736 2737 2738
                                                        />
                                                    }
                                                />
2739
                                            </div>
rifkaki's avatar
rifkaki committed
2740 2741
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2742
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2743 2744 2745 2746 2747 2748 2749 2750 2751 2752
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2753
                                                            value={Number(tableMeta.rowData[19]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2754 2755 2756
                                                        />
                                                    }
                                                />
2757
                                            </div>
rifkaki's avatar
rifkaki committed
2758
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
2759 2760
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
2761
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2773
                                                            value={Number(tableMeta.rowData[20]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2774 2775 2776
                                                        />
                                                    }
                                                />
2777
                                            </div>
rifkaki's avatar
rifkaki committed
2778 2779
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2791
                                                            value={Number(tableMeta.rowData[21]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2792 2793 2794
                                                        />
                                                    }
                                                />
2795
                                            </div>
rifkaki's avatar
rifkaki committed
2796 2797
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2809
                                                            value={Number(tableMeta.rowData[22]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2810 2811 2812
                                                        />
                                                    }
                                                />
2813
                                            </div>
rifkaki's avatar
rifkaki committed
2814 2815
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2816
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
2817 2818 2819 2820 2821 2822 2823 2824 2825 2826
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2827
                                                            value={Number(tableMeta.rowData[23]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2828 2829 2830
                                                        />
                                                    }
                                                />
2831
                                            </div>
rifkaki's avatar
rifkaki committed
2832 2833
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2845
                                                            value={Number(tableMeta.rowData[24]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2846 2847 2848
                                                        />
                                                    }
                                                />
2849
                                            </div>
rifkaki's avatar
rifkaki committed
2850
                                        {/* </div> */}
2851 2852 2853 2854 2855 2856
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
2917 2918 2919 2920
            }, {
                name: `TPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
2921
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
2922
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
2923 2924
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
2925 2926
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
2927
                                    </div>
rifkaki's avatar
rifkaki committed
2928 2929
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
2930
                                    </div>
rifkaki's avatar
rifkaki committed
2931 2932 2933 2934 2935
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
2936
                                    </div>
rifkaki's avatar
rifkaki committed
2937
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2938 2939
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2940 2941 2942
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2943 2944
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2945
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2946 2947
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2948
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2949 2950
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2951
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2952 2953
                                        <span>{ Number(this.props.periode) - 2 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
2954
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
2955 2956 2957
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
2958 2959 2960 2961 2962 2963 2964
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
2965 2966 2967
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>     
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2979
                                                            value={Number(tableMeta.rowData[26]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2980 2981 2982
                                                        />
                                                    }
                                                />
2983
                                            </div>
rifkaki's avatar
rifkaki committed
2984 2985
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
2997
                                                            value={Number(tableMeta.rowData[27]).toFixed(1)}
rifkaki's avatar
rifkaki committed
2998 2999 3000
                                                        />
                                                    }
                                                />
3001
                                            </div>
rifkaki's avatar
rifkaki committed
3002 3003
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3015
                                                            value={Number(tableMeta.rowData[28]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3016 3017 3018
                                                        />
                                                    }
                                                />
3019
                                            </div>
rifkaki's avatar
rifkaki committed
3020 3021
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3033
                                                            value={Number(tableMeta.rowData[29]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3034 3035 3036
                                                        />
                                                    }
                                                />
3037
                                            </div>
rifkaki's avatar
rifkaki committed
3038 3039
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3040
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3041 3042 3043 3044 3045 3046 3047 3048 3049 3050
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3051
                                                            value={Number(tableMeta.rowData[30]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3052 3053 3054
                                                        />
                                                    }
                                                />
3055
                                            </div>
rifkaki's avatar
rifkaki committed
3056
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3057 3058
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3059
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3071
                                                            value={Number(tableMeta.rowData[31]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3072 3073 3074
                                                        />
                                                    }
                                                />
3075
                                            </div>
rifkaki's avatar
rifkaki committed
3076 3077
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3089
                                                            value={Number(tableMeta.rowData[32]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3090 3091 3092
                                                        />
                                                    }
                                                />
3093
                                            </div>
rifkaki's avatar
rifkaki committed
3094 3095
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3107
                                                            value={Number(tableMeta.rowData[33]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3108 3109 3110
                                                        />
                                                    }
                                                />
3111
                                            </div>
rifkaki's avatar
rifkaki committed
3112 3113
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3114
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3115 3116 3117 3118 3119 3120 3121 3122 3123 3124
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3125
                                                            value={Number(tableMeta.rowData[34]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3126 3127 3128
                                                        />
                                                    }
                                                />
3129
                                            </div>
rifkaki's avatar
rifkaki committed
3130 3131
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3143
                                                            value={Number(tableMeta.rowData[35]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3144 3145 3146
                                                        />
                                                    }
                                                />
3147
                                            </div>
rifkaki's avatar
rifkaki committed
3148
                                        {/* </div> */}
3149 3150 3151 3152 3153 3154
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
3215 3216 3217 3218
            }, {
                name: `NPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
3219
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
3220
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
3221 3222
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
3223 3224
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
3225
                                    </div>
rifkaki's avatar
rifkaki committed
3226 3227
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
3228
                                    </div>
rifkaki's avatar
rifkaki committed
3229 3230 3231 3232 3233 3234
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3235
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3236 3237
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3238 3239 3240
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3241 3242
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3243
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3244
                                        <span>{ Number(this.props.periode) - 4 }</span>
3245
                                    </div>
rifkaki's avatar
rifkaki committed
3246
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3247 3248
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3249
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3250 3251
                                        <span>{ Number(this.props.periode) - 2 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3252
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3253 3254 3255
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
3256 3257 3258 3259 3260 3261 3262
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
3263 3264 3265
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3277
                                                            value={Number(tableMeta.rowData[37]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3278 3279 3280
                                                        />
                                                    }
                                                />
3281
                                            </div>
rifkaki's avatar
rifkaki committed
3282 3283
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3295
                                                            value={Number(tableMeta.rowData[38]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3296 3297 3298
                                                        />
                                                    }
                                                />
3299
                                            </div>
rifkaki's avatar
rifkaki committed
3300 3301
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3313
                                                            value={Number(tableMeta.rowData[39]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3314 3315 3316
                                                        />
                                                    }
                                                />
3317
                                            </div>
rifkaki's avatar
rifkaki committed
3318 3319
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3331
                                                            value={Number(tableMeta.rowData[40]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3332 3333 3334
                                                        />
                                                    }
                                                />
3335
                                            </div>
rifkaki's avatar
rifkaki committed
3336 3337
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3338
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3339 3340 3341 3342 3343 3344 3345 3346 3347 3348
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3349
                                                            value={Number(tableMeta.rowData[41]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3350 3351 3352
                                                        />
                                                    }
                                                />
3353
                                            </div>
rifkaki's avatar
rifkaki committed
3354
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3355 3356
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3357
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3369
                                                            value={Number(tableMeta.rowData[42]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3370 3371 3372
                                                        />
                                                    }
                                                />
3373
                                            </div>
rifkaki's avatar
rifkaki committed
3374 3375
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3387
                                                            value={Number(tableMeta.rowData[43]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3388 3389 3390
                                                        />
                                                    }
                                                />
3391
                                            </div>
rifkaki's avatar
rifkaki committed
3392 3393
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3405
                                                            value={Number(tableMeta.rowData[44]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3406 3407 3408
                                                        />
                                                    }
                                                />
3409
                                            </div>
rifkaki's avatar
rifkaki committed
3410 3411
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3412
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3413 3414 3415 3416 3417 3418 3419 3420 3421 3422
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3423
                                                            value={Number(tableMeta.rowData[45]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3424 3425 3426
                                                        />
                                                    }
                                                />
3427
                                            </div>
rifkaki's avatar
rifkaki committed
3428 3429
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3441
                                                            value={Number(tableMeta.rowData[46]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3442 3443 3444
                                                        />
                                                    }
                                                />
3445
                                            </div>
rifkaki's avatar
rifkaki committed
3446
                                        {/* </div> */}
3447 3448 3449 3450 3451 3452
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
3513 3514 3515 3516
            }, {
                name: `Total Asset`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
3517
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
3518
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
3519 3520
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
3521 3522
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
3523
                                    </div>
rifkaki's avatar
rifkaki committed
3524 3525
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
3526
                                    </div>
rifkaki's avatar
rifkaki committed
3527 3528 3529 3530 3531 3532
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
                                    </div>
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3533
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3534 3535
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3536 3537 3538
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3539 3540
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3541
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3542 3543
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3544
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3545 3546
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3547
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3548
                                        <span>{ Number(this.props.periode) - 2 }</span>
3549
                                    </div>
rifkaki's avatar
rifkaki committed
3550
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3551 3552 3553
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
3554 3555 3556 3557 3558 3559 3560
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
3561 3562 3563
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3575
                                                            value={Number(tableMeta.rowData[48]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3576 3577 3578
                                                        />
                                                    }
                                                />
3579
                                            </div>
rifkaki's avatar
rifkaki committed
3580 3581
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3593
                                                            value={Number(tableMeta.rowData[49]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3594 3595 3596
                                                        />
                                                    }
                                                />
3597
                                            </div>
rifkaki's avatar
rifkaki committed
3598 3599
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3611
                                                            value={Number(tableMeta.rowData[50]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3612 3613 3614
                                                        />
                                                    }
                                                />
3615
                                            </div>
rifkaki's avatar
rifkaki committed
3616 3617
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3629
                                                            value={Number(tableMeta.rowData[51]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3630 3631 3632
                                                        />
                                                    }
                                                />
3633
                                            </div>
rifkaki's avatar
rifkaki committed
3634 3635
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3636
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3637 3638 3639 3640 3641 3642 3643 3644 3645 3646
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3647
                                                            value={Number(tableMeta.rowData[52]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3648 3649 3650
                                                        />
                                                    }
                                                />
3651
                                            </div>
rifkaki's avatar
rifkaki committed
3652
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3653 3654
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3655
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3667
                                                            value={Number(tableMeta.rowData[53]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3668 3669 3670
                                                        />
                                                    }
                                                />
3671
                                            </div>
rifkaki's avatar
rifkaki committed
3672 3673
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3685
                                                            value={Number(tableMeta.rowData[54]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3686 3687 3688
                                                        />
                                                    }
                                                />
3689
                                            </div>
rifkaki's avatar
rifkaki committed
3690 3691
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3703
                                                            value={Number(tableMeta.rowData[55]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3704 3705 3706
                                                        />
                                                    }
                                                />
3707
                                            </div>
rifkaki's avatar
rifkaki committed
3708 3709
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3710
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3711 3712 3713 3714 3715 3716 3717 3718 3719 3720
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3721
                                                            value={Number(tableMeta.rowData[56]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3722 3723 3724
                                                        />
                                                    }
                                                />
3725
                                            </div>
rifkaki's avatar
rifkaki committed
3726 3727
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3739
                                                            value={Number(tableMeta.rowData[57]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3740 3741 3742
                                                        />
                                                    }
                                                />
3743
                                            </div>
rifkaki's avatar
rifkaki committed
3744
                                        {/* </div> */}
3745 3746 3747 3748 3749 3750
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
rifkaki's avatar
rifkaki committed
3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
3811 3812 3813 3814
            }, {
                name: `Total Equility`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
3815
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
3816
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
rifkaki's avatar
rifkaki committed
3817 3818
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
rifkaki's avatar
rifkaki committed
3819 3820
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 10 }</span>
3821
                                    </div>
rifkaki's avatar
rifkaki committed
3822 3823
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 9 }</span>
3824
                                    </div>
rifkaki's avatar
rifkaki committed
3825 3826
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 8 }</span>
3827
                                    </div>
rifkaki's avatar
rifkaki committed
3828 3829 3830
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
                                        <span>{ Number(this.props.periode) - 7 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3831
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3832 3833
                                        <span>{ Number(this.props.periode) - 6 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3834 3835 3836
                                </div>
                                <div className="column-2 grid grid-5x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3837 3838
                                        <span>{ Number(this.props.periode) - 5 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3839
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3840 3841
                                        <span>{ Number(this.props.periode) - 4 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3842
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3843 3844
                                        <span>{ Number(this.props.periode) - 3 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3845
                                    <div className="column-4" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3846 3847
                                        <span>{ Number(this.props.periode) - 2 }</span>
                                    </div>
rifkaki's avatar
rifkaki committed
3848
                                    <div className="column-5" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid" }}>
rifkaki's avatar
rifkaki committed
3849 3850 3851
                                        <span>{ Number(this.props.periode) - 1 }</span>
                                    </div>
                                </div>
3852 3853 3854 3855 3856 3857 3858
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
rifkaki's avatar
rifkaki committed
3859 3860 3861
                                <div style={{ display: 'flex', justifyContent: 'space-between'}}>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3873
                                                            value={Number(tableMeta.rowData[59]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3874 3875 3876
                                                        />
                                                    }
                                                />
3877
                                            </div>
rifkaki's avatar
rifkaki committed
3878 3879
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3891
                                                            value={Number(tableMeta.rowData[60]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3892 3893 3894
                                                        />
                                                    }
                                                />
3895
                                            </div>
rifkaki's avatar
rifkaki committed
3896 3897
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3909
                                                            value={Number(tableMeta.rowData[61]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3910 3911 3912
                                                        />
                                                    }
                                                />
3913
                                            </div>
rifkaki's avatar
rifkaki committed
3914 3915
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3927
                                                            value={Number(tableMeta.rowData[62]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3928 3929 3930
                                                        />
                                                    }
                                                />
3931
                                            </div>
rifkaki's avatar
rifkaki committed
3932 3933
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
3934
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
3935 3936 3937 3938 3939 3940 3941 3942 3943 3944
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3945
                                                            value={Number(tableMeta.rowData[63]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3946 3947 3948
                                                        />
                                                    }
                                                />
3949
                                            </div>
rifkaki's avatar
rifkaki committed
3950
                                        {/* </div> */}
rifkaki's avatar
rifkaki committed
3951 3952
                                    </div>
                                    <div style={{ display: 'flex', width: 640, justifyContent: 'space-between'}}>
rifkaki's avatar
rifkaki committed
3953
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3965
                                                            value={Number(tableMeta.rowData[64]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3966 3967 3968
                                                        />
                                                    }
                                                />
3969
                                            </div>
rifkaki's avatar
rifkaki committed
3970 3971
                                        {/* </div> */}
                                        {/* <div className="col-3"> */}
rifkaki's avatar
rifkaki committed
3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
3983
                                                            value={Number(tableMeta.rowData[65]).toFixed(1)}
rifkaki's avatar
rifkaki committed
3984 3985 3986
                                                        />
                                                    }
                                                />
3987
                                            </div>
rifkaki's avatar
rifkaki committed
3988 3989
                                        {/* </div> */}
                                        {/* <div className="col-4"> */}
rifkaki's avatar
rifkaki committed
3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4001
                                                            value={Number(tableMeta.rowData[66]).toFixed(1)}
rifkaki's avatar
rifkaki committed
4002 4003 4004
                                                        />
                                                    }
                                                />
4005
                                            </div>
rifkaki's avatar
rifkaki committed
4006 4007
                                        {/* </div> */}
                                        {/* <div className="col-1"> */}
rifkaki's avatar
rifkaki committed
4008
                                        <div style={{ flex: 1 }}>
rifkaki's avatar
rifkaki committed
4009 4010 4011 4012 4013 4014 4015 4016 4017 4018
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4019
                                                            value={Number(tableMeta.rowData[67]).toFixed(1)}
rifkaki's avatar
rifkaki committed
4020 4021 4022
                                                        />
                                                    }
                                                />
4023
                                            </div>
rifkaki's avatar
rifkaki committed
4024 4025
                                        {/* </div> */}
                                        {/* <div className="col-2"> */}
rifkaki's avatar
rifkaki committed
4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
                                                            style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4037
                                                            value={Number(tableMeta.rowData[68]).toFixed(1)}
rifkaki's avatar
rifkaki committed
4038 4039 4040
                                                        />
                                                    }
                                                />
4041
                                            </div>
rifkaki's avatar
rifkaki committed
4042
                                        {/* </div> */}
4043 4044 4045 4046 4047
                                    </div>
                                </div>
                            </div>
                        )
                    }
Riri Novita's avatar
Riri Novita committed
4048
                }
rifkaki's avatar
rifkaki committed
4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109
            },
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
            {
                name: "",
                options: {
                    display: false
                }
            }, 
Riri Novita's avatar
Riri Novita committed
4110 4111 4112
        ]

        const columnCPSM = [
Riri Novita's avatar
Riri Novita committed
4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160
            {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "Company",
                options: {
                    customHeadRender: (columnMeta) => (
                        <TableCell key={columnMeta.index} style={{ ...style, top: 0, zIndex: 102, backgroundColor: '#1c71b8', width: 300, borderRight: '1px #fff solid' }}>
                            <Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'left' }}>{columnMeta.name}</Typography>
                        </TableCell>
                    ),
                    setCellProps: () => ({ style }),
                    customBodyRender: (val, tableMeta) => {
                        return (
                            <div style={{ width: 300 }}>
                                {
                                    tableMeta.rowData[2] == 0 ?
                                        <span style={{ fontSize: 12, fontWeight: 'bold' }}>{String(val).toUpperCase()}</span>
                                        :
                                        <div style={{ paddingLeft: 20 * Number(tableMeta.rowData[2]) }}>
                                            <span style={{ fontSize: 12 }}>{val}</span>
                                        </div>
                                }
                            </div>
                        )
                    }
                }
            }, {
                name: `Revenue`,
                options: {
                    customHeadRender: (columnMeta) => (
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4161
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4162 4163
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4164
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4165 4166
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4167
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4168 4169 4170 4171 4172 4173 4174
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4175
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4176 4177
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5,  backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4178
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4198
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 86, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4199 4200 4201
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4202
                                                            value={Number(tableMeta.rowData[4]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4216
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4217 4218 4219
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4220
                                                            value={Number(tableMeta.rowData[5]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-3">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4234
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4235 4236 4237
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4238
                                                            value={Number(tableMeta.rowData[6]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                    </div>
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4254
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4255 4256 4257 4258
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
Riri Novita's avatar
Riri Novita committed
4259
                                                            value={tableMeta.rowData[7]}
rifkaki's avatar
rifkaki committed
4260
                                                            // value={Number(tableMeta.rowData[7]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4274
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4275 4276 4277
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4278
                                                            value={Number(tableMeta.rowData[8]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-3">
                                            <div style={{ flex: 1}}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4292
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' ,                               fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4293 4294 4295
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4296
                                                            value={Number(tableMeta.rowData[9]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `EBITDA`,
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
4342
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0, color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4343 4344 4345 4346
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4347
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4348 4349
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4350
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4351 4352
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4353
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4354 4355 4356 4357 4358 4359 4360
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4361
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4362 4363
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4364
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4384
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4385 4386 4387
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4388
                                                            value={Number(tableMeta.rowData[10]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4389 4390 4391 4392 4393 4394
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4395 4396 4397 4398 4399 4400 4401
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4402
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4403 4404 4405
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4406
                                                            value={Number(tableMeta.rowData[11]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4407 4408 4409
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4410 4411 4412
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4413 4414 4415 4416 4417 4418 4419
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4420
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4421 4422 4423
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4424
                                                            value={Number(tableMeta.rowData[12]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4425 4426 4427
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4428 4429 4430 4431 4432
                                            </div>
                                        </div>
                                    </div>
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4433 4434 4435 4436 4437 4438 4439
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4440
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4441 4442 4443 4444
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
rifkaki's avatar
rifkaki committed
4445
                                                            value={tableMeta.rowData[13]}
rifkaki's avatar
rifkaki committed
4446
                                                            // value={Number(tableMeta.rowData[13]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4447 4448 4449
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4450 4451 4452
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4453 4454 4455 4456 4457 4458 4459
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4460
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4461 4462 4463
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4464
                                                            value={Number(tableMeta.rowData[14]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4465 4466 4467
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4468 4469 4470
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4471 4472 4473 4474 4475 4476 4477
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4478
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4479 4480 4481
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4482
                                                            value={Number(tableMeta.rowData[15]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4483 4484 4485
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `TPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
Riri Novita's avatar
Riri Novita committed
4528
                        <th style={{ ...style2, backgroundColor: '#1c71b8', top: 0 , color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4529 4530 4531 4532
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4533
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4534 4535
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4536
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4537 4538
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4539
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4540 4541 4542 4543 4544 4545 4546
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4547
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4548 4549
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4550
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4563 4564 4565 4566 4567 4568 4569
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4570
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 80, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4571 4572 4573
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4574
                                                            value={Number(tableMeta.rowData[16]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4575 4576 4577
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4578 4579 4580
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4581 4582 4583 4584 4585 4586 4587
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4588
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4589 4590 4591
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4592
                                                            value={Number(tableMeta.rowData[17]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4593 4594 4595
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4596 4597 4598
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4599 4600 4601 4602 4603 4604 4605
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4606
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4607 4608 4609
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4610
                                                            value={Number(tableMeta.rowData[18]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4611 4612 4613
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4614 4615 4616 4617 4618
                                            </div>
                                        </div>
                                    </div>
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4619 4620 4621 4622 4623 4624 4625
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4626
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4627 4628 4629 4630
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
rifkaki's avatar
rifkaki committed
4631
                                                            value={tableMeta.rowData[19]}
rifkaki's avatar
rifkaki committed
4632
                                                            // value={Number(tableMeta.rowData[19]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4633 4634 4635
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4636 4637 4638
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4639 4640 4641 4642 4643 4644 4645
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4646
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4647 4648 4649
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4650
                                                            value={Number(tableMeta.rowData[20]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4651 4652 4653
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4654 4655 4656
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4657 4658 4659 4660 4661 4662 4663
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4664
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4665 4666 4667
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4668
                                                            value={Number(tableMeta.rowData[21]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4669 4670 4671
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
4699
                }
Riri Novita's avatar
Riri Novita committed
4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `NPAT`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
4714
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4715
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
Riri Novita's avatar
Riri Novita committed
4716
                            <div className="grid grid-2x" style={{ ...style2, backgroundColor: '#37b5e6', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
4717 4718
                                <div className="column-1 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#07a7d0' }}>
rifkaki's avatar
rifkaki committed
4719
                                            <span>{`${Number(this.props.periode) - 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4720 4721
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4722
                                            <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4723 4724
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4725
                                            <span>{`MB ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4726 4727 4728 4729 4730 4731 4732
                                        </div>
                                    </div>
                                    <div className="column-2 grid grid-3x" style={{ placeSelf: 'center', textAlign: 'center' }}>
                                        <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
                                            <span>{"% of MB"}</span>
                                        </div>
                                        <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4733
                                            <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4734 4735
                                        </div>
                                        <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4736
                                            <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748
                                        </div>
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-2x content-center">
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4749 4750 4751 4752 4753 4754 4755
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4756
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 86, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4757 4758 4759
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4760
                                                            value={Number(tableMeta.rowData[22]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4761 4762 4763
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4764 4765 4766
                                            </div>
                                        </div>
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4767 4768 4769 4770 4771 4772 4773
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4774
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4775 4776 4777
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4778
                                                            value={Number(tableMeta.rowData[23]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4779 4780 4781
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4782 4783 4784
                                            </div>
                                        </div>
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4785 4786 4787 4788 4789 4790 4791
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4792
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4793 4794 4795
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4796
                                                            value={Number(tableMeta.rowData[24]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4797 4798 4799
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4800 4801
                                            </div>
                                        </div>
Riri Novita's avatar
Riri Novita committed
4802
                                    </div>
Riri Novita's avatar
Riri Novita committed
4803 4804
                                    <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4805 4806 4807 4808 4809 4810 4811
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4812
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4813 4814 4815 4816
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4817
                                                            value={tableMeta.rowData[25]}
rifkaki's avatar
rifkaki committed
4818
                                                            // value={Number(tableMeta.rowData[25]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-2">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4832
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4833 4834 4835
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4836
                                                            value={Number(tableMeta.rowData[26]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849
                                                        />
                                                    }
                                                />
                                            </div>
                                        </div>
                                        <div className="col-3">
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4850
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4851 4852 4853
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
4854
                                                            value={Number(tableMeta.rowData[27]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
4855 4856 4857
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4858 4859
                                            </div>
                                        </div>
Riri Novita's avatar
Riri Novita committed
4860 4861
                                    </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `ROIC`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
4900
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4901 4902
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
4903
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
4904
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
4905 4906
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4907
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
4908
                                    </div>
Riri Novita's avatar
Riri Novita committed
4909
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
4910
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
4911
                                    </div>
Riri Novita's avatar
Riri Novita committed
4912 4913 4914 4915 4916 4917 4918
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
4919
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
4920
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
4921 4922 4923 4924 4925 4926 4927
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4928
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4929 4930 4931 4932 4933 4934 4935
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            value={Number(tableMeta.rowData[28]).toFixed(2)}
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4936
                                            </div>
Riri Novita's avatar
Riri Novita committed
4937
                                        </div>
Riri Novita's avatar
Riri Novita committed
4938
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
4939 4940 4941 4942 4943 4944 4945
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4946
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4947 4948 4949 4950 4951 4952 4953
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            value={Number(tableMeta.rowData[29]).toFixed(2)}
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4954
                                            </div>
Riri Novita's avatar
Riri Novita committed
4955
                                        </div>
Riri Novita's avatar
Riri Novita committed
4956
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
4957 4958 4959 4960 4961 4962 4963
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
4964
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
4965 4966 4967 4968 4969 4970 4971
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            value={Number(tableMeta.rowData[30]).toFixed(2)}
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
4972
                                            </div>
Riri Novita's avatar
Riri Novita committed
4973 4974
                                        </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `EBITDA Margin`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
4998
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
4999 5000 5001
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5002
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5003 5004
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5005
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5006 5007
                                    </div>
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5008
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5009 5010 5011 5012 5013 5014 5015 5016
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5017
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5018
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5019 5020 5021 5022 5023 5024 5025
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5026
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5027 5028 5029
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5030
                                                            value={(tableMeta.rowData[31])}
Riri Novita's avatar
Riri Novita committed
5031 5032 5033
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5034
                                            </div>
Riri Novita's avatar
Riri Novita committed
5035
                                        </div>
Riri Novita's avatar
Riri Novita committed
5036
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5037 5038 5039 5040 5041 5042 5043
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5044
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5045 5046 5047
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5048
                                                            value={(tableMeta.rowData[32])}
Riri Novita's avatar
Riri Novita committed
5049 5050 5051
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5052
                                            </div>
Riri Novita's avatar
Riri Novita committed
5053
                                        </div>
Riri Novita's avatar
Riri Novita committed
5054
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5055 5056 5057 5058 5059 5060 5061
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5062
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5063 5064 5065
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5066
                                                            value={(tableMeta.rowData[33])}
Riri Novita's avatar
Riri Novita committed
5067 5068 5069
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5070
                                            </div>
Riri Novita's avatar
Riri Novita committed
5071 5072 5073
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5074 5075
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5076
                }
Riri Novita's avatar
Riri Novita committed
5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `TPAT Margin`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5096
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5097 5098
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
5099
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5100
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5101 5102
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5103
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5104
                                    </div>
Riri Novita's avatar
Riri Novita committed
5105
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5106
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5107
                                    </div>
Riri Novita's avatar
Riri Novita committed
5108 5109 5110 5111 5112 5113 5114
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5115
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5116
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5117 5118 5119 5120 5121 5122 5123
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5124
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5125 5126 5127
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5128
                                                            value={(tableMeta.rowData[34])}
Riri Novita's avatar
Riri Novita committed
5129 5130 5131
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5132
                                            </div>
Riri Novita's avatar
Riri Novita committed
5133
                                        </div>
Riri Novita's avatar
Riri Novita committed
5134
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5135 5136 5137 5138 5139 5140 5141
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5142
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5143 5144 5145
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5146
                                                            value={(tableMeta.rowData[35])}
Riri Novita's avatar
Riri Novita committed
5147 5148 5149
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5150
                                            </div>
Riri Novita's avatar
Riri Novita committed
5151
                                        </div>
Riri Novita's avatar
Riri Novita committed
5152
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5153 5154 5155 5156 5157 5158 5159
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5160
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5161 5162 5163
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
Riri Novita's avatar
Riri Novita committed
5164
                                                            value={(tableMeta.rowData[36])}
Riri Novita's avatar
Riri Novita committed
5165 5166 5167
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5168
                                            </div>
Riri Novita's avatar
Riri Novita committed
5169 5170
                                        </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193
                            </div>
                        )
                    }
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `% Revenue YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5194
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5195 5196 5197
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5198
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5199 5200
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5201
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5202 5203
                                    </div>
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5204
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5205 5206 5207 5208 5209 5210 5211 5212
                                    </div>
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5213
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5214
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5215 5216 5217 5218 5219 5220 5221
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5222
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5223 5224 5225 5226
                                                            type="text"
                                                            placeholder=""
                                                            disabled={true}
                                                            suffix={'%'}
rifkaki's avatar
rifkaki committed
5227
                                                            value={tableMeta.rowData[37]}
rifkaki's avatar
rifkaki committed
5228
                                                            // value={Number(tableMeta.rowData[37]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5229 5230 5231
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5232
                                            </div>
Riri Novita's avatar
Riri Novita committed
5233
                                        </div>
Riri Novita's avatar
Riri Novita committed
5234
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5235 5236 5237 5238 5239 5240 5241
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5242
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5243 5244 5245 5246
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5247
                                                            value={tableMeta.rowData[38]}
rifkaki's avatar
rifkaki committed
5248
                                                            // value={Number(tableMeta.rowData[38]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5249 5250 5251
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5252
                                            </div>
Riri Novita's avatar
Riri Novita committed
5253
                                        </div>
Riri Novita's avatar
Riri Novita committed
5254
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5255 5256 5257 5258 5259 5260 5261
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5262
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5263 5264 5265 5266
                                                            type="text"
                                                            suffix={'%'}
                                                            placeholder=""
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5267
                                                            value={tableMeta.rowData[39]}
rifkaki's avatar
rifkaki committed
5268
                                                            // value={Number(tableMeta.rowData[39]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5269 5270 5271
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5272
                                            </div>
Riri Novita's avatar
Riri Novita committed
5273 5274
                                        </div>
                                </div>
Riri Novita's avatar
Riri Novita committed
5275
                            </div>
Riri Novita's avatar
Riri Novita committed
5276 5277
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5278
                }
Riri Novita's avatar
Riri Novita committed
5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `% EBITDA YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5298
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5299 5300
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
5301
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5302
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5303 5304
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5305
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5306
                                    </div>
Riri Novita's avatar
Riri Novita committed
5307
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5308
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5309
                                    </div>
Riri Novita's avatar
Riri Novita committed
5310 5311 5312 5313 5314 5315 5316
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5317
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5318
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5319 5320 5321 5322 5323 5324 5325
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5326
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5327 5328 5329 5330
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5331
                                                            value={tableMeta.rowData[40]}
rifkaki's avatar
rifkaki committed
5332
                                                            // value={Number(tableMeta.rowData[40]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5333 5334 5335
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5336
                                            </div>
Riri Novita's avatar
Riri Novita committed
5337
                                        </div>
Riri Novita's avatar
Riri Novita committed
5338
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5339 5340 5341 5342 5343 5344 5345
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5346
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5347 5348 5349 5350
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5351
                                                            value={tableMeta.rowData[41]}
rifkaki's avatar
rifkaki committed
5352
                                                            // value={Number(tableMeta.rowData[41]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5353 5354 5355
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5356
                                            </div>
Riri Novita's avatar
Riri Novita committed
5357
                                        </div>
Riri Novita's avatar
Riri Novita committed
5358
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5359 5360 5361 5362 5363 5364 5365
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5366
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5367 5368 5369 5370
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5371
                                                            value={tableMeta.rowData[42]}
rifkaki's avatar
rifkaki committed
5372
                                                            // value={Number(tableMeta.rowData[42]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5373 5374 5375
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5376
                                            </div>
Riri Novita's avatar
Riri Novita committed
5377 5378 5379
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5380 5381
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5382
                }
Riri Novita's avatar
Riri Novita committed
5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: `% TPAT YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5402
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5403 5404
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
Riri Novita's avatar
Riri Novita committed
5405
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5406
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5407 5408
                                    </div>
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5409
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5410
                                    </div>
Riri Novita's avatar
Riri Novita committed
5411
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5412
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5413
                                    </div>
Riri Novita's avatar
Riri Novita committed
5414 5415 5416 5417 5418 5419 5420
                            </div>
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
Riri Novita's avatar
Riri Novita committed
5421
                                <div className="grid grid-3x content-center">
Riri Novita's avatar
Riri Novita committed
5422
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5423 5424 5425 5426 5427 5428 5429
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5430
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5431 5432 5433 5434
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5435
                                                            value={tableMeta.rowData[43]}
rifkaki's avatar
rifkaki committed
5436
                                                            // value={Number(tableMeta.rowData[43]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5437 5438 5439
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5440
                                            </div>
Riri Novita's avatar
Riri Novita committed
5441
                                        </div>
Riri Novita's avatar
Riri Novita committed
5442
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5443 5444 5445 5446 5447 5448 5449
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5450
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5451 5452 5453 5454
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5455
                                                            value={tableMeta.rowData[44]}
rifkaki's avatar
rifkaki committed
5456
                                                            // value={Number(tableMeta.rowData[44]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5457 5458 5459
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5460
                                            </div>
Riri Novita's avatar
Riri Novita committed
5461
                                        </div>
Riri Novita's avatar
Riri Novita committed
5462
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5463 5464 5465 5466 5467 5468 5469
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5470
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5471 5472 5473 5474
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5475
                                                            value={tableMeta.rowData[45]}
rifkaki's avatar
rifkaki committed
5476
                                                            // value={Number(tableMeta.rowData[45]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5477 5478 5479
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5480
                                            </div>
Riri Novita's avatar
Riri Novita committed
5481 5482 5483
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5484 5485
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5486
                }
Riri Novita's avatar
Riri Novita committed
5487 5488 5489 5490
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5491
                }
Riri Novita's avatar
Riri Novita committed
5492 5493 5494 5495
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5496
                }
Riri Novita's avatar
Riri Novita committed
5497 5498 5499 5500
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5501
                }
Riri Novita's avatar
Riri Novita committed
5502 5503 5504 5505
            }, {
                name: `% NPAT YoY`,
                options: {
                    customHeadRender: (columnMeta) => (
rifkaki's avatar
rifkaki committed
5506
                        <th style={{ ...style2, top: 0, backgroundColor: '#1c71b8', color: '#fff', fontSize: 13, fontWeight: 1, width: 150, borderRight: "1px solid rgb(255, 255, 255)" }} >
Riri Novita's avatar
Riri Novita committed
5507 5508 5509
                            <div style={{ borderBottom: "1px #fff solid", textAlign: 'center', fontSize: 12, fontWeight: 'bold', padding: 5 }}>{columnMeta.name}</div>
                            <div className="grid grid-3x" style={{ ...style2, backgroundColor: '#1c71b8', color: '#fff', fontSize: 12, fontWeight: 'bold', position: "sticky" }}>
                                    <div className="column-1" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#37b5e6' }}>
rifkaki's avatar
rifkaki committed
5510
                                        <span>{`OL ${Number(this.props.periode)}`}</span>
Riri Novita's avatar
Riri Novita committed
5511
                                    </div>
Riri Novita's avatar
Riri Novita committed
5512
                                    <div className="column-2" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, borderRight: "1px #fff solid", backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5513
                                        <span>{`${Number(this.props.periode) + 1}`}</span>
Riri Novita's avatar
Riri Novita committed
5514
                                    </div>
Riri Novita's avatar
Riri Novita committed
5515
                                    <div className="column-3" style={{ placeSelf: 'center', textAlign: 'center', padding: 5, backgroundColor: '#1c71b8' }}>
rifkaki's avatar
rifkaki committed
5516
                                        <span>{`${Number(this.props.periode) + 2}`}</span>
Riri Novita's avatar
Riri Novita committed
5517 5518
                                    </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5519 5520 5521 5522 5523 5524 5525 5526
                        </th>
                    ),
                    setCellProps: () => ({ style2 }),
                    customBodyRender: (val, tableMeta, updateValue) => {
                        return (
                            <div>
                                <div className="grid grid-3x content-center">
                                        <div className="col-1">
Riri Novita's avatar
Riri Novita committed
5527 5528 5529 5530 5531 5532 5533
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5534
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5535 5536 5537 5538
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5539
                                                            value={tableMeta.rowData[46]}
rifkaki's avatar
rifkaki committed
5540
                                                            // value={Number(tableMeta.rowData[46]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5541 5542 5543
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5544
                                            </div>
Riri Novita's avatar
Riri Novita committed
5545
                                        </div>
Riri Novita's avatar
Riri Novita committed
5546
                                        <div className="col-2">
Riri Novita's avatar
Riri Novita committed
5547 5548 5549 5550 5551 5552 5553
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5554
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5555 5556 5557 5558
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5559
                                                            value={tableMeta.rowData[47]}
rifkaki's avatar
rifkaki committed
5560
                                                            // value={Number(tableMeta.rowData[47]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5561 5562 5563
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5564
                                            </div>
Riri Novita's avatar
Riri Novita committed
5565
                                        </div>
Riri Novita's avatar
Riri Novita committed
5566
                                        <div className="col-3">
Riri Novita's avatar
Riri Novita committed
5567 5568 5569 5570 5571 5572 5573
                                            <div style={{ flex: 1 }}>
                                                <FormControlLabel
                                                    style={{ margin: 0 }}
                                                    value={val}
                                                    control={
                                                        <NumberFormat
                                                            thousandSeparator={true}
Riri Novita's avatar
Riri Novita committed
5574
                                                            style={{ color: (tableMeta.rowData[2] !== 0 && tableMeta.rowData[2] !== 1 ) && !tableMeta.rowData[49] ? '#5198ea' : '#000000de' , fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
Riri Novita's avatar
Riri Novita committed
5575 5576 5577 5578
                                                            type="text"
                                                            placeholder=""
                                                            suffix={'%'}
                                                            disabled={true}
rifkaki's avatar
rifkaki committed
5579
                                                            value={tableMeta.rowData[48]}
rifkaki's avatar
rifkaki committed
5580
                                                            // value={Number(tableMeta.rowData[48]).toFixed(1)}
Riri Novita's avatar
Riri Novita committed
5581 5582 5583
                                                        />
                                                    }
                                                />
Riri Novita's avatar
Riri Novita committed
5584
                                            </div>
Riri Novita's avatar
Riri Novita committed
5585 5586 5587
                                        </div>
                                </div>
                            </div>
Riri Novita's avatar
Riri Novita committed
5588 5589
                        )
                    }
Riri Novita's avatar
Riri Novita committed
5590
                }
Riri Novita's avatar
Riri Novita committed
5591 5592 5593 5594
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5595 5596 5597 5598 5599
                }
            }, {
                name: "",
                options: {
                    display: false
Riri Novita's avatar
Riri Novita committed
5600
                }
Riri Novita's avatar
Riri Novita committed
5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611
            }, {
                name: "",
                options: {
                    display: false
                }
            }, {
                name: "",
                options: {
                    display: false
                }
            },  
Riri Novita's avatar
Riri Novita committed
5612 5613 5614 5615 5616 5617 5618 5619 5620
        ]

        const columns = []

        return (
            <div>
                <div style={{ padding: '0px 20px 20px 20px', width: this.props.width - (this.props.open === true ? 350 : 100) }}>
                    <MuiThemeProvider theme={getMuiTheme()}>
                        <MUIDataTable
Riri Novita's avatar
Riri Novita committed
5621
                            data={dataTable2}
Riri Novita's avatar
Riri Novita committed
5622
                            columns={this.props.type === 1 ? columnMTD : this.props.type === 2 ? columnYTD : this.props.type === 3 ? columnCPSM : this.props.type === 4 ? columnHistorical : columns}
Riri Novita's avatar
Riri Novita committed
5623 5624 5625 5626 5627 5628 5629 5630
                            options={options}
                        />
                    </MuiThemeProvider>
                </div>
            </div>
        )
    }
}