Merge branch 'staging' of itcorp.primaya.id:ra

This commit is contained in:
2023-08-30 11:09:12 +07:00
156 changed files with 20227 additions and 19255 deletions

View File

@@ -0,0 +1,103 @@
<?php
namespace Modules\Internal\Http\Controllers\Api;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use App\Models\OLDLMS\DoctorRating;
class DoctorRatingController extends Controller
{
/**
* Display a listing of the resource.
* @param int|null $id
* @return \Illuminate\Http\JsonResponse
*/
public function index($id = null)
{
$query = DoctorRating::query();
if ($id !== null) {
$query->where('nID', $id);
}
$doctorRatings = $query->with([
'user' => function ($query) {
$query->select('nID', 'sFirstName'); // Select only necessary columns
}
])
->select('nIDUser', 'nIDDokter', 'nRating', 'sNotes', 'dCreateOn')
->get();
// $prescriptions->toArray();
// dd($prescriptions);
return response()->json($doctorRatings);
// return response()->json(Helper::paginateResources(LivechatResource::collection($livechat)));
}
/**
* Show the form for creating a new resource.
* @return Renderable
*/
public function create()
{
return view('internal::create');
}
/**
* Store a newly created resource in storage.
* @param Request $request
* @return Renderable
*/
public function store(Request $request)
{
}
/**
* Show the specified resource.
* @param int $id
* @return Renderable
*/
public function show($id)
{
}
/**
* Show the form for editing the specified resource.
* @param int $id
* @return Renderable
*/
public function edit($id)
{
return view('internal::edit');
}
/**
* Update the specified resource in storage.
* @param Request $request
* @param int $id
* @return Renderable
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
* @param int $id
* @return Renderable
*/
public function destroy($id)
{
//
}
}

View File

@@ -19,6 +19,7 @@ use Modules\Internal\Http\Controllers\Api\DiagnosisExclusionController;
use Modules\Internal\Http\Controllers\Api\DistrictController;
use Modules\Internal\Http\Controllers\Api\DivisionController;
use Modules\Internal\Http\Controllers\Api\DoctorController;
use Modules\Internal\Http\Controllers\Api\DoctorRatingController;
use Modules\Internal\Http\Controllers\Api\DrugController;
use Modules\Internal\Http\Controllers\Api\FormulariumController;
use Modules\Internal\Http\Controllers\Api\Linksehat\PaymentController;
@@ -154,6 +155,8 @@ Route::prefix('internal')->group(function () {
Route::resource('live-chat', LivechatController::class);
Route::get('prescription', [PrescriptionController::class, 'index']);
Route::get('prescription/{id}', [PrescriptionController::class, 'index']);
Route::get('doctorrating', [DoctorRatingController::class, 'index']);
Route::get('doctorrating/{id}', [PrescriptionController::class, 'index']);
Route::resource('doctors', DoctorController::class);

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Models\OLDLMS;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class DoctorRating extends Model
{
use HasFactory;
const CREATED_AT = 'dCreateOn';
const UPDATED_AT = 'dUpdateOn';
const DELETED_AT = 'dDeleteOn';
protected $connection = 'oldlms';
protected $table = 'tx_dokter_rating';
// Define a belongsTo relationship with the User model
public function user()
{
return $this->belongsTo(User::class, 'nIDUser');
}
// Include additional fields in the model's JSON form
protected $appends = [
'user_first_name', // Include the attribute for user's first name
];
// Define an accessor to get the first name of the related user
public function getUserFirstNameAttribute()
{
return $this->user ? $this->user->sFirstName : null;
}
}

0
bootstrap/cache/.gitignore vendored Executable file → Normal file
View File

File diff suppressed because it is too large Load Diff

View File

@@ -64,6 +64,7 @@
"notistack": "^3.0.1",
"nprogress": "^0.2.0",
"numeral": "^2.0.6",
"pnpm": "^8.6.9",
"pusher-js": "^8.0.2",
"react": "^17.0.2",
"react-apexcharts": "^1.4.0",

View File

@@ -38,6 +38,10 @@ import {
const steps = ['Review', 'Approval', 'Disbursement'];
const DialogDetailClaim = ({ title, openDialog, setOpenDialog, data }: MuiDialogProps) => {
function clickHandler(arg0: string) {
throw new Error('Function not implemented.');
}
// const getContent = () => (
// );
@@ -108,6 +112,7 @@ import {
fullWidth
sx={{ typography: 'subtitle2', borderColor: '#F5F5F5' }}
>
onClick={() => clickHandler('topUpLimit')}
Hasil Pemeriksaan Laboratorium
</Button>
</Stack>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -66,6 +66,7 @@
"notistack": "3.0.0-alpha.11",
"nprogress": "^0.2.0",
"numeral": "^2.0.6",
"pnpm": "^8.6.12",
"react": "^17.0.2",
"react-apexcharts": "^1.4.1",
"react-dom": "^17.0.2",

View File

@@ -1,5 +1,9 @@
lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
dependencies:
'@ajoelp/json-to-formdata':
specifier: ^1.5.0
@@ -225,19 +229,27 @@ devDependencies:
packages:
<<<<<<< HEAD
/@aashutoshrathi/word-wrap@1.2.6:
resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==}
engines: {node: '>=0.10.0'}
dev: true
=======
>>>>>>> a54708abb5d46d7d7319730306a528d33d910895
/@ajoelp/json-to-formdata@1.5.0:
resolution: {integrity: sha512-nrlfeTSL0X0dtx5r2KpzPiqLSIQquiiJjUKsQAKzWaCmO2QoYZCyb5ENZwF3YoffKronOCJr25mxaD8JRJmK8w==}
dependencies:
lodash: 4.17.21
dev: false
<<<<<<< HEAD
/@ampproject/remapping@2.2.1:
resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==}
=======
/@ampproject/remapping@2.2.0:
resolution: {integrity: sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==}
>>>>>>> a54708abb5d46d7d7319730306a528d33d910895
engines: {node: '>=6.0.0'}
dependencies:
'@jridgewell/gen-mapping': 0.3.3

View File

@@ -86,6 +86,8 @@ const navConfig = [
{ title: 'Live Chat', path: '/report/live-chat' },
{ title: 'Linksehat Payment', path: '/report/linksehat-payments' },
{ title: 'Prescription', path: '/report/prescription' },
{ title: 'Doctor Rating', path: '/report/doctorrating' },
],
},
{

View File

@@ -0,0 +1,37 @@
import { Card, Grid, Container } from '@mui/material';
import { useParams } from 'react-router-dom';
import HeaderBreadcrumbs from '@/components/HeaderBreadcrumbs';
import Page from '@/components/Page';
import useSettings from '@/hooks/useSettings';
import List from '../Prescription/List';
export default function DoctorRating(){
const { themeStretch } = useSettings();
const { id } = useParams();
const pageTitle = 'Doctor Rating';
return(
<Page title = {pageTitle}>
<Container maxWidth = {themeStretch ? false : 'xl'}>
<HeaderBreadcrumbs heading= {pageTitle}
links={[
{
name: 'Report',
href: '/report',
},
{
name: 'Doctor Rating',
href: '/doctorrating',
},
]}
/>
<List/>
</Container>
</Page>
);
}

View File

@@ -0,0 +1,427 @@
import {
Box,
Button,
Card,
Collapse,
Paper,
Select,
SelectChangeEvent,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
TextField,
Typography,
Stack,
ButtonGroup,
Grid,
Chip,
Dialog,
DialogContent,
DialogContentText,
DialogActions,
FormControl,
Autocomplete,
InputAdornment,
IconButton,
} from '@mui/material';
import {
Link,
NavLink as RouterLink,
useSearchParams,
useNavigate,
useParams,
} from 'react-router-dom';
// hooks
import React, { ChangeEvent, Component, useEffect, useRef, useState } from 'react';
import useSettings from '../../../hooks/useSettings';
// components
import axios from '../../../utils/axios';
import { LaravelPaginatedData } from '../../../@types/paginated-data';
import { Icd } from '../../../@types/diagnosis';
import BasePagination from '../../../components/BasePagination';
import { Practitioner } from '../../../@types/doctor';
import CreateIcon from '@mui/icons-material/Create';
import { Props } from '../../../components/editor/index';
import { red } from '@mui/material/colors';
import { margin, padding } from '@mui/system';
import { enqueueSnackbar } from 'notistack';
import { Controller } from 'react-hook-form';
import SvgIconStyle from '../../../components/SvgIconStyle';
import { GridSearchIcon } from '@mui/x-data-grid';
import { Search } from '@mui/icons-material';
import { Icon } from '@iconify/react';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
export default function List(){
const navigate = useNavigate();
const { organization_id } = useParams();
const [searchParams, setSearchParams] = useSearchParams();
const [searchParamsOrganizations, setSearchParamsOrganizations] = useSearchParams();
const [searchParamsSpecialities, setSearchParamsSpecialities] = useSearchParams();
const [searchParamsFilter, setSearchParamsFilter] = useSearchParams();
function Filter(props: any) {
// SEARCH
const searchInput = useRef<HTMLInputElement>(null);
const [searchText, setSearchText] = useState('');
//handle search
const handleSearchChange = (event: any) => {
const newSearchText = event.target.value ?? '';
setSearchText(newSearchText);
};
const handleSearchSubmit = (event: any) => {
event.preventDefault();
props.onSearch(searchText);
};
useEffect(() => {
// Trigger First Search
setSearchText(searchParams.get('search') ?? '');
}, []);
const item = [
{
id: '',
value: '',
name: 'Semua',
},
];
return (
<form style={{ width: '100%' }}>
<Grid container spacing={2} sx={{ justifyContent: 'space-between', alignItems: 'center' }}>
<Grid item xs={12} sm={12} md={12} lg={12}>
<TextField
id="search-input"
ref={searchInput}
variant="outlined"
fullWidth
onChange={handleSearchChange}
onKeyDown={(event) => {
if (event.key === 'Enter') {
handleSearchSubmit(event);
}
}}
value={searchText}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<Search />
</InputAdornment>
),
placeholder: 'Search',
}}
/>
</Grid>
</Grid>
</form>
);
}
function FilterForm(props: any) {
return(
<Grid
container
spacing={2}
sx={{ p: 2, justifyContent: 'space-between', alignItems: 'center' }}
>
<Grid item xs={12} md={12} lg={12}>
<Filter onSearch={applyItems} />
</Grid>
</Grid>
);
}
function createData(doctor: Practitioner): Practitioner {
return {
...doctor,
/* user: doctor.user ? new User(doctor.user) : null; */
};
}
function Row(props: { row: ReturnType<typeof createData> }) {
const { row } = props;
const [open, setOpen] = React.useState(false);
const [openDialog, setOpenDialog] = React.useState(false);
return (
<React.Fragment>
<TableRow>
<TableCell>
<IconButton aria-label="expand row" size="small" onClick={() => setOpen(!open)}>
{open ? <KeyboardArrowDownIcon /> : <KeyboardArrowRightIcon />}
</IconButton>
</TableCell>
<TableCell align="left">{row.user ? row.user.sFirstName : '-'}</TableCell>
<TableCell align="left">{row.nIDDokter ? row.nIDDokter : '-'}</TableCell>
<TableCell align="left">{row.nRating ? row.nRating : '-'}</TableCell>
<TableCell align="left">{row.sNotes ? row.sNotes : '-'}</TableCell>
<TableCell align="left">{row.dCreateOn ? row.dCreateOn : '-'}</TableCell>
{/* <TableCell align="center">
<ButtonGroup variant="text" aria-label="text button group">
<Link to={'/report/prescription/' + row.id + '/show'}>
<Button>
<Icon icon="ph:eye-bold" style={{ width: '24px', height: '24px' }} />
</Button>
</Link>
</ButtonGroup>
</TableCell> */}
</TableRow>
{/* COLLAPSIBLE ROW */}
<TableRow>
<TableCell
style={{ paddingBottom: 0, paddingTop: 0, backgroundColor: 'rgba(244, 246, 248, 0.5)' }}
colSpan={6}
>
{/* <Collapse in={open} timeout="auto" unmountOnExit>
<Box sx={{ margin: 1, pb: 2, pl: 4 }}>
<Grid container>
<Grid item xs={12} sx={{ padding: 2 }}>
<Grid container>
<Grid item xs={6}>
Metode Pembayaran
</Grid>
<Grid item xs={6}>
: {row.payment_method ? row.payment_method : '-'}
</Grid>
<Grid item xs={6}>
Jenis Benefit
</Grid>
<Grid item xs={6}>
: -
</Grid>
<Grid item xs={6}>
Durasi
</Grid>
<Grid item xs={6}>
: {row.duration ? row.duration : '-'}
</Grid>
</Grid>
</Grid>
</Grid>
</Box>
</Collapse> */}
</TableCell>
</TableRow>
{/* END COLLAPSIBLE ROW */}
<Dialog
open={openDialog}
onClose={() => {
setOpenDialog(false);
}}
aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description"
>
<DialogContent sx={{ p: 5 }}>
<Icon
icon="eva:trash-2-outline"
style={{
width: '100px',
height: '100px',
color: '#FF0000',
margin: 'auto',
display: 'block',
marginBottom: '20px',
alignContent: 'center',
}}
/>
<DialogContentText sx={{ fontWeight: 'bold', pb: 1 }} id="alert-dialog-title">
Apakah anda yakin ingin menghapus
</DialogContentText>
<Typography sx={{ fontWeight: 'bold' }} id="alert-dialog-title">
{row.name}?
</Typography>
</DialogContent>
<DialogActions>
<Button
onClick={() => {
setOpenDialog(false);
}}
color="primary"
>
Batal
</Button>
{/* <Button
onClick={() => {
handleDelete(row.id);
}}
color="primary"
autoFocus
>
Hapus
</Button> */}
</DialogActions>
</Dialog>
</React.Fragment>
);
}
const headStyle = {
fontWeight: 'bold',
};
// Dummy Default Data
const [dataTableIsLoading, setDataTableLoading] = useState(true);
const [dataTableLastRequest, setDataTableLastRequest] = useState(0);
const [dataTableResponseState, setDataTableResponseState] = useState('idle');
const [dataTableData, setDataTableData] = useState<LaravelPaginatedData>({
current_page: 1,
data: [],
path: '',
first_page_url: '',
last_page: 1,
last_page_url: '',
next_page_url: '',
prev_page_url: '',
per_page: 10,
from: 0,
to: 0,
total: 0,
});
const [dataTablePage, setDataTablePage] = useState(5);
const loadDataTableData = async (appliedFilter: any | null = null) => {
setDataTableLoading(true);
const filter = appliedFilter ? appliedFilter : Object.fromEntries([...searchParams.entries()]);
const response = await axios.get('/doctorrating ', {
params: filter,
});
setDataTableLoading(false);
setDataTableData(response.data);
};
// const applyFilter = async (searchFilter: string) => {
// await loadDataTableData({ search: searchFilter });
// setSearchParams({ search: searchFilter });
// };
const applyItems = async (
searchFilter: string,
searchFilterOrganization: string,
searchFilterSpecialities: string
) => {
await loadDataTableData({
search: searchFilter,
organization_id: searchFilterOrganization,
speciality_id: searchFilterSpecialities,
});
setSearchParamsFilter({
search: searchFilter,
organization_id: searchFilterOrganization,
speciality_id: searchFilterSpecialities,
});
};
const handlePageChange = (event: ChangeEvent, value: number) => {
const filter = Object.fromEntries([...searchParams.entries(), ['page', value]]);
loadDataTableData(filter);
setSearchParams(filter);
};
useEffect(() => {
loadDataTableData();
}, []);
return (
<Stack>
{/* <Ambulace /> */}
<Card sx={{ marginTop: '30px' }}>
<FilterForm sx={{ marginTop: '100px' }} />
{/* The Main Table */}
<TableContainer component={Paper}>
<Table>
<TableBody>
<TableRow>
{/* <TableCell colSpan={8} rowSpan={1} align="center" /> */}
<TableCell style={headStyle} align="left" />
<TableCell style={headStyle} rowSpan={2} align="left">
Nama User
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
ID Dokter
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Rating
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Notes
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Created On
</TableCell>
</TableRow>
{/* <TableRow>
<TableCell style={headStyle} align="left" />
<TableCell style={headStyle} align="left">
Tanggal Booking
</TableCell>
<TableCell style={headStyle} align="left">
Tanggal Appointment
</TableCell>
<TableCell style={headStyle} align="left">
Faskes
</TableCell>
<TableCell style={headStyle} align="left">
Nama Dokter
</TableCell>
<TableCell style={headStyle} align="left">
Spesialisasi
</TableCell>
<TableCell style={headStyle} align="left">
Pasien
</TableCell>
<TableCell style={headStyle} align="left">
Dokter
</TableCell>
</TableRow> */}
</TableBody>
{dataTableIsLoading ? (
<TableBody>
<TableRow>
<TableCell colSpan={8} align="center">
Loading
</TableCell>
</TableRow>
</TableBody>
) : (dataTableData.data && dataTableData.data.length === 0) ? (
<TableBody>
<TableRow>
<TableCell colSpan={8} align="center">
No Data
</TableCell>
</TableRow>
</TableBody>
) : (
<TableBody>
{dataTableData && dataTableData.map((row) => (
<Row key={row.id} row={row} />
))}
</TableBody>
)}
</Table>
</TableContainer>
<BasePagination paginationData={dataTableData} onPageChange={handlePageChange} />
</Card>
</Stack>
);
}

View File

@@ -0,0 +1,38 @@
import { Card, Grid, Container } from '@mui/material';
import { useParams } from 'react-router-dom';
import HeaderBreadcrumbs from '@/components/HeaderBreadcrumbs';
import Page from '@/components/Page';
import useSettings from '@/hooks/useSettings';
import List from './List_2';
export default function DoctorRating(){
const { themeStretch } = useSettings();
const { id } = useParams();
const pageTitle = 'Doctor Rating';
return(
<Page title = {pageTitle}>
<Container maxWidth = {themeStretch ? false : 'xl'}>
<HeaderBreadcrumbs heading= {pageTitle}
links={[
{
name: 'Report',
href: '/report',
},
{
name: 'Doctor Rating',
href: '/doctorrating',
},
]}
/>
<List/>
</Container>
</Page>
);
}

View File

@@ -1,440 +1,428 @@
import {
Box,
Button,
Card,
Collapse,
Paper,
Select,
SelectChangeEvent,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
TextField,
Typography,
Stack,
ButtonGroup,
Grid,
Chip,
Dialog,
DialogContent,
DialogContentText,
DialogActions,
FormControl,
Autocomplete,
InputAdornment,
IconButton,
} from '@mui/material';
Box,
Button,
Card,
Collapse,
Paper,
Select,
SelectChangeEvent,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
TextField,
Typography,
Stack,
ButtonGroup,
Grid,
Chip,
Dialog,
DialogContent,
DialogContentText,
DialogActions,
FormControl,
Autocomplete,
InputAdornment,
IconButton,
} from '@mui/material';
import {
Link,
NavLink as RouterLink,
useSearchParams,
useNavigate,
useParams,
} from 'react-router-dom';
// hooks
import React, { ChangeEvent, Component, useEffect, useRef, useState } from 'react';
import useSettings from '../../../hooks/useSettings';
// components
import axios from '../../../utils/axios';
import { LaravelPaginatedData } from '../../../@types/paginated-data';
import { Icd } from '../../../@types/diagnosis';
import BasePagination from '../../../components/BasePagination';
import { Practitioner } from '../../../@types/doctor';
import CreateIcon from '@mui/icons-material/Create';
import { Props } from '../../../components/editor/index';
import { red } from '@mui/material/colors';
import { margin, padding } from '@mui/system';
import { enqueueSnackbar } from 'notistack';
import { Controller } from 'react-hook-form';
import { User } from '../../../Models/User';
import SvgIconStyle from '../../../components/SvgIconStyle';
import { GridSearchIcon } from '@mui/x-data-grid';
import { Search } from '@mui/icons-material';
import { Icon } from '@iconify/react';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
export default function List(){
const navigate = useNavigate();
const { organization_id } = useParams();
const [searchParams, setSearchParams] = useSearchParams();
const [searchParamsOrganizations, setSearchParamsOrganizations] = useSearchParams();
const [searchParamsSpecialities, setSearchParamsSpecialities] = useSearchParams();
const [searchParamsFilter, setSearchParamsFilter] = useSearchParams();
function Filter(props: any) {
// SEARCH
const searchInput = useRef<HTMLInputElement>(null);
const [searchText, setSearchText] = useState('');
import {
Link,
NavLink as RouterLink,
useSearchParams,
useNavigate,
useParams,
} from 'react-router-dom';
// hooks
import React, { ChangeEvent, Component, useEffect, useRef, useState } from 'react';
import useSettings from '../../../hooks/useSettings';
// components
import axios from '../../../utils/axios';
import { LaravelPaginatedData } from '../../../@types/paginated-data';
import { Icd } from '../../../@types/diagnosis';
import BasePagination from '../../../components/BasePagination';
import { Practitioner } from '../../../@types/doctor';
import CreateIcon from '@mui/icons-material/Create';
import { Props } from '../../../components/editor/index';
import { red } from '@mui/material/colors';
import { margin, padding } from '@mui/system';
import { enqueueSnackbar } from 'notistack';
import { Controller } from 'react-hook-form';
//handle search
const handleSearchChange = (event: any) => {
const newSearchText = event.target.value ?? '';
setSearchText(newSearchText);
};
import SvgIconStyle from '../../../components/SvgIconStyle';
import { GridSearchIcon } from '@mui/x-data-grid';
import { Search } from '@mui/icons-material';
import { Icon } from '@iconify/react';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
const handleSearchSubmit = (event: any) => {
event.preventDefault();
props.onSearch(searchText);
};
export default function List(){
const navigate = useNavigate();
const { organization_id } = useParams();
const [searchParams, setSearchParams] = useSearchParams();
const [searchParamsOrganizations, setSearchParamsOrganizations] = useSearchParams();
const [searchParamsSpecialities, setSearchParamsSpecialities] = useSearchParams();
const [searchParamsFilter, setSearchParamsFilter] = useSearchParams();
function Filter(props: any) {
// SEARCH
const searchInput = useRef<HTMLInputElement>(null);
const [searchText, setSearchText] = useState('');
useEffect(() => {
// Trigger First Search
setSearchText(searchParams.get('search') ?? '');
}, []);
//handle search
const handleSearchChange = (event: any) => {
const newSearchText = event.target.value ?? '';
setSearchText(newSearchText);
};
const handleSearchSubmit = (event: any) => {
event.preventDefault();
props.onSearch(searchText);
};
const item = [
{
id: '',
value: '',
name: 'Semua',
},
];
useEffect(() => {
// Trigger First Search
setSearchText(searchParams.get('search') ?? '');
}, []);
const item = [
{
id: '',
value: '',
name: 'Semua',
},
];
return (
<form style={{ width: '100%' }}>
<Grid container spacing={2} sx={{ justifyContent: 'space-between', alignItems: 'center' }}>
<Grid item xs={12} sm={12} md={12} lg={12}>
<TextField
id="search-input"
ref={searchInput}
variant="outlined"
fullWidth
onChange={handleSearchChange}
onKeyDown={(event) => {
if (event.key === 'Enter') {
handleSearchSubmit(event);
}
}}
value={searchText}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<Search />
</InputAdornment>
),
placeholder: 'Search',
}}
/>
</Grid>
</Grid>
</form>
);
}
function FilterForm(props: any) {
return(
<Grid
container
spacing={2}
sx={{ p: 2, justifyContent: 'space-between', alignItems: 'center' }}
>
<Grid item xs={12} md={12} lg={12}>
<Filter onSearch={applyItems} />
</Grid>
return (
<form style={{ width: '100%' }}>
<Grid container spacing={2} sx={{ justifyContent: 'space-between', alignItems: 'center' }}>
<Grid item xs={12} sm={12} md={12} lg={12}>
<TextField
id="search-input"
ref={searchInput}
variant="outlined"
fullWidth
onChange={handleSearchChange}
onKeyDown={(event) => {
if (event.key === 'Enter') {
handleSearchSubmit(event);
}
}}
value={searchText}
InputProps={{
startAdornment: (
<InputAdornment position="start">
<Search />
</InputAdornment>
),
placeholder: 'Search',
}}
/>
</Grid>
</Grid>
</form>
);
}
function FilterForm(props: any) {
return(
<Grid
container
spacing={2}
sx={{ p: 2, justifyContent: 'space-between', alignItems: 'center' }}
>
<Grid item xs={12} md={12} lg={12}>
<Filter onSearch={applyItems} />
</Grid>
);
}
</Grid>
);
}
function createData(doctor: Practitioner): Practitioner {
return {
...doctor,
};
}
function createData(doctor: Practitioner): Practitioner {
return {
...doctor,
/* user: doctor.user ? new User(doctor.user) : null; */
};
}
function Row(props: { row: ReturnType<typeof createData> }) {
const { row } = props;
const [open, setOpen] = React.useState(false);
const [openDialog, setOpenDialog] = React.useState(false);
function Row(props: { row: ReturnType<typeof createData> }) {
const { row } = props;
const [open, setOpen] = React.useState(false);
const [openDialog, setOpenDialog] = React.useState(false);
return (
<React.Fragment>
<TableRow>
<TableCell>
<IconButton aria-label="expand row" size="small" onClick={() => setOpen(!open)}>
{open ? <KeyboardArrowDownIcon /> : <KeyboardArrowRightIcon />}
</IconButton>
</TableCell>
<TableCell align="left">{row.nID ? row.nID : '-'}</TableCell>
<TableCell align="left">
{row.nIDUser ? row.nIDUser : '-'}
</TableCell>
<TableCell align="left">{row.nIDDokter ? row.nIDDokter : '-'}</TableCell>
<TableCell align="left">{row.sDokterName ? row.sDokterName : '-'}</TableCell>
<TableCell align="left">{row.dTanggalResep ? row.dTanggalResep : '-'}</TableCell>
<TableCell align="left">{row.sSource ? row.sSource : '-'}</TableCell>
<TableCell align="left">{row.sKodeResep ? row.sKodeResep : '-'}</TableCell>
<TableCell align="left">{row.sDiagnose ? row.sDiagnose : '-'}</TableCell>
<TableCell align="left">{row.sStatus ? row.sStatus : '-'}</TableCell>
{/* <TableCell align="center">
<ButtonGroup variant="text" aria-label="text button group">
<Link to={'/report/prescription/' + row.id + '/show'}>
<Button>
<Icon icon="ph:eye-bold" style={{ width: '24px', height: '24px' }} />
</Button>
</Link>
</ButtonGroup>
</TableCell> */}
</TableRow>
{/* COLLAPSIBLE ROW */}
<TableRow>
<TableCell
style={{ paddingBottom: 0, paddingTop: 0, backgroundColor: 'rgba(244, 246, 248, 0.5)' }}
colSpan={6}
>
return (
<React.Fragment>
<TableRow>
<TableCell>
<IconButton aria-label="expand row" size="small" onClick={() => setOpen(!open)}>
{open ? <KeyboardArrowDownIcon /> : <KeyboardArrowRightIcon />}
</IconButton>
</TableCell>
<TableCell align="left">{row.user ? row.user.sFirstName : '-'}</TableCell>
<TableCell align="left">{row.nIDDokter ? row.nIDDokter : '-'}</TableCell>
<TableCell align="left">{row.nRating ? row.nRating : '-'}</TableCell>
<TableCell align="left">{row.sNotes ? row.sNotes : '-'}</TableCell>
<TableCell align="left">{row.dCreateOn ? row.dCreateOn : '-'}</TableCell>
{/* <TableCell align="center">
<ButtonGroup variant="text" aria-label="text button group">
<Link to={'/report/prescription/' + row.id + '/show'}>
<Button>
<Icon icon="ph:eye-bold" style={{ width: '24px', height: '24px' }} />
</Button>
</Link>
</ButtonGroup>
</TableCell> */}
</TableRow>
{/* COLLAPSIBLE ROW */}
<TableRow>
<TableCell
style={{ paddingBottom: 0, paddingTop: 0, backgroundColor: 'rgba(244, 246, 248, 0.5)' }}
colSpan={6}
>
{/* <Collapse in={open} timeout="auto" unmountOnExit>
<Box sx={{ margin: 1, pb: 2, pl: 4 }}>
<Grid container>
<Grid item xs={12} sx={{ padding: 2 }}>
<Grid container>
<Grid item xs={6}>
Metode Pembayaran
</Grid>
<Grid item xs={6}>
: {row.payment_method ? row.payment_method : '-'}
</Grid>
<Box sx={{ margin: 1, pb: 2, pl: 4 }}>
<Grid container>
<Grid item xs={12} sx={{ padding: 2 }}>
<Grid container>
<Grid item xs={6}>
Metode Pembayaran
</Grid>
<Grid item xs={6}>
: {row.payment_method ? row.payment_method : '-'}
</Grid>
<Grid item xs={6}>
Jenis Benefit
</Grid>
<Grid item xs={6}>
: -
</Grid>
<Grid item xs={6}>
Durasi
</Grid>
<Grid item xs={6}>
: {row.duration ? row.duration : '-'}
</Grid>
<Grid item xs={6}>
Jenis Benefit
</Grid>
<Grid item xs={6}>
: -
</Grid>
<Grid item xs={6}>
Durasi
</Grid>
<Grid item xs={6}>
: {row.duration ? row.duration : '-'}
</Grid>
</Grid>
</Grid>
</Box>
</Collapse> */}
</TableCell>
</TableRow>
</Grid>
</Box>
</Collapse> */}
</TableCell>
</TableRow>
{/* END COLLAPSIBLE ROW */}
<Dialog
open={openDialog}
onClose={() => {
setOpenDialog(false);
}}
aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description"
>
<DialogContent sx={{ p: 5 }}>
<Icon
icon="eva:trash-2-outline"
style={{
width: '100px',
height: '100px',
color: '#FF0000',
margin: 'auto',
display: 'block',
marginBottom: '20px',
alignContent: 'center',
}}
/>
<DialogContentText sx={{ fontWeight: 'bold', pb: 1 }} id="alert-dialog-title">
Apakah anda yakin ingin menghapus
</DialogContentText>
<Typography sx={{ fontWeight: 'bold' }} id="alert-dialog-title">
{row.name}?
</Typography>
</DialogContent>
<DialogActions>
<Button
onClick={() => {
setOpenDialog(false);
}}
color="primary"
>
Batal
</Button>
{/* <Button
onClick={() => {
handleDelete(row.id);
}}
color="primary"
autoFocus
>
Hapus
</Button> */}
</DialogActions>
</Dialog>
</React.Fragment>
);
}
const headStyle = {
fontWeight: 'bold',
};
// Dummy Default Data
const [dataTableIsLoading, setDataTableLoading] = useState(true);
const [dataTableLastRequest, setDataTableLastRequest] = useState(0);
const [dataTableResponseState, setDataTableResponseState] = useState('idle');
const [dataTableData, setDataTableData] = useState<LaravelPaginatedData>({
current_page: 1,
data: [],
path: '',
first_page_url: '',
last_page: 1,
last_page_url: '',
next_page_url: '',
prev_page_url: '',
per_page: 10,
from: 0,
to: 0,
total: 0,
{/* END COLLAPSIBLE ROW */}
<Dialog
open={openDialog}
onClose={() => {
setOpenDialog(false);
}}
aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description"
>
<DialogContent sx={{ p: 5 }}>
<Icon
icon="eva:trash-2-outline"
style={{
width: '100px',
height: '100px',
color: '#FF0000',
margin: 'auto',
display: 'block',
marginBottom: '20px',
alignContent: 'center',
}}
/>
<DialogContentText sx={{ fontWeight: 'bold', pb: 1 }} id="alert-dialog-title">
Apakah anda yakin ingin menghapus
</DialogContentText>
<Typography sx={{ fontWeight: 'bold' }} id="alert-dialog-title">
{row.name}?
</Typography>
</DialogContent>
<DialogActions>
<Button
onClick={() => {
setOpenDialog(false);
}}
color="primary"
>
Batal
</Button>
{/* <Button
onClick={() => {
handleDelete(row.id);
}}
color="primary"
autoFocus
>
Hapus
</Button> */}
</DialogActions>
</Dialog>
</React.Fragment>
);
}
const headStyle = {
fontWeight: 'bold',
};
// Dummy Default Data
const [dataTableIsLoading, setDataTableLoading] = useState(true);
const [dataTableLastRequest, setDataTableLastRequest] = useState(0);
const [dataTableResponseState, setDataTableResponseState] = useState('idle');
const [dataTableData, setDataTableData] = useState<LaravelPaginatedData>({
current_page: 1,
data: [],
path: '',
first_page_url: '',
last_page: 1,
last_page_url: '',
next_page_url: '',
prev_page_url: '',
per_page: 10,
from: 0,
to: 0,
total: 0,
});
const [dataTablePage, setDataTablePage] = useState(5);
const loadDataTableData = async (appliedFilter: any | null = null) => {
setDataTableLoading(true);
const filter = appliedFilter ? appliedFilter : Object.fromEntries([...searchParams.entries()]);
const response = await axios.get('/doctorrating ', {
params: filter,
});
const [dataTablePage, setDataTablePage] = useState(5);
setDataTableLoading(false);
setDataTableData(response.data);
};
const loadDataTableData = async (appliedFilter: any | null = null) => {
setDataTableLoading(true);
const filter = appliedFilter ? appliedFilter : Object.fromEntries([...searchParams.entries()]);
const response = await axios.get('/prescription', {
params: filter,
});
setDataTableLoading(false);
setDataTableData(response.data);
};
// const applyFilter = async (searchFilter: string) => {
// await loadDataTableData({ search: searchFilter });
// setSearchParams({ search: searchFilter });
// };
// const applyFilter = async (searchFilter: string) => {
// await loadDataTableData({ search: searchFilter });
// setSearchParams({ search: searchFilter });
// };
const applyItems = async (
searchFilter: string,
searchFilterOrganization: string,
searchFilterSpecialities: string
) => {
await loadDataTableData({
search: searchFilter,
organization_id: searchFilterOrganization,
speciality_id: searchFilterSpecialities,
});
setSearchParamsFilter({
search: searchFilter,
organization_id: searchFilterOrganization,
speciality_id: searchFilterSpecialities,
});
};
const applyItems = async (
searchFilter: string,
searchFilterOrganization: string,
searchFilterSpecialities: string
) => {
await loadDataTableData({
search: searchFilter,
organization_id: searchFilterOrganization,
speciality_id: searchFilterSpecialities,
});
setSearchParamsFilter({
search: searchFilter,
organization_id: searchFilterOrganization,
speciality_id: searchFilterSpecialities,
});
};
const handlePageChange = (event: ChangeEvent, value: number) => {
const filter = Object.fromEntries([...searchParams.entries(), ['page', value]]);
loadDataTableData(filter);
setSearchParams(filter);
};
const handlePageChange = (event: ChangeEvent, value: number) => {
const filter = Object.fromEntries([...searchParams.entries(), ['page', value]]);
loadDataTableData(filter);
setSearchParams(filter);
};
useEffect(() => {
loadDataTableData();
}, []);
useEffect(() => {
loadDataTableData();
}, []);
return (
<Stack>
{/* <Ambulace /> */}
return (
<Stack>
{/* <Ambulace /> */}
<Card sx={{ marginTop: '30px' }}>
<FilterForm sx={{ marginTop: '100px' }} />
<Card sx={{ marginTop: '30px' }}>
<FilterForm sx={{ marginTop: '100px' }} />
{/* The Main Table */}
<TableContainer component={Paper}>
<Table>
<TableBody>
<TableRow>
{/* <TableCell colSpan={8} rowSpan={1} align="center" /> */}
<TableCell style={headStyle} align="left" />
<TableCell style={headStyle} rowSpan={2} align="left">
Nama User
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
ID Dokter
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Rating
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Notes
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Created On
</TableCell>
{/* The Main Table */}
<TableContainer component={Paper}>
<Table>
</TableRow>
{/* <TableRow>
<TableCell style={headStyle} align="left" />
<TableCell style={headStyle} align="left">
Tanggal Booking
</TableCell>
<TableCell style={headStyle} align="left">
Tanggal Appointment
</TableCell>
<TableCell style={headStyle} align="left">
Faskes
</TableCell>
<TableCell style={headStyle} align="left">
Nama Dokter
</TableCell>
<TableCell style={headStyle} align="left">
Spesialisasi
</TableCell>
<TableCell style={headStyle} align="left">
Pasien
</TableCell>
<TableCell style={headStyle} align="left">
Dokter
</TableCell>
</TableRow> */}
</TableBody>
{dataTableIsLoading ? (
<TableBody>
<TableRow>
{/* <TableCell colSpan={8} rowSpan={1} align="center" /> */}
<TableCell style={headStyle} align="left" />
<TableCell style={headStyle} rowSpan={2} align="left">
ID Booking
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
ID User
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
ID Dokter
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Nama Dokter
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Tanggal Resep
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Source
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Kode Resep
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Diagnosa
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Status
<TableCell colSpan={8} align="center">
Loading
</TableCell>
</TableRow>
{/* <TableRow>
<TableCell style={headStyle} align="left" />
<TableCell style={headStyle} align="left">
Tanggal Booking
</TableCell>
<TableCell style={headStyle} align="left">
Tanggal Appointment
</TableCell>
<TableCell style={headStyle} align="left">
Faskes
</TableCell>
<TableCell style={headStyle} align="left">
Nama Dokter
</TableCell>
<TableCell style={headStyle} align="left">
Spesialisasi
</TableCell>
<TableCell style={headStyle} align="left">
Pasien
</TableCell>
<TableCell style={headStyle} align="left">
Dokter
</TableCell>
</TableRow> */}
</TableBody>
{dataTableIsLoading ? (
<TableBody>
<TableRow>
<TableCell colSpan={8} align="center">
Loading
</TableCell>
</TableRow>
</TableBody>
) : (dataTableData.data && dataTableData.data.length === 0) ? (
) : (dataTableData.data && dataTableData.data.length === 0) ? (
<TableBody>
<TableRow>
<TableCell colSpan={8} align="center">
No Data
</TableCell>
</TableRow>
</TableBody>
) : (
<TableBody>
{dataTableData && dataTableData.map((row) => (
<Row key={row.id} row={row} />
))}
</TableBody>
)}
</Table>
</TableContainer>
<TableBody>
<TableRow>
<TableCell colSpan={8} align="center">
No Data
</TableCell>
</TableRow>
</TableBody>
) : (
<TableBody>
{dataTableData && dataTableData.map((row) => (
<Row key={row.id} row={row} />
))}
</TableBody>
)}
</Table>
</TableContainer>
<BasePagination paginationData={dataTableData} onPageChange={handlePageChange} />
</Card>
</Stack>
);
<BasePagination paginationData={dataTableData} onPageChange={handlePageChange} />
</Card>
</Stack>
);
}

View File

@@ -13,6 +13,7 @@ import { AuthProvider } from '../contexts/LaravelAuthContext';
import AuthGuard from '../guards/AuthGuard';
import { Link, useParams, useSearchParams } from 'react-router-dom';
import Prescription from '@/pages/Report/Prescription/Index';
import DoctorRating from '@/pages/Report/DoctorRating/Index';
// ----------------------------------------------------------------------
@@ -290,6 +291,10 @@ export default function Router() {
path: 'report/prescription',
element: <Prescription/>,
},
{
path: 'report/doctorrating',
element: <DoctorRating/>,
},
{
path: 'report/linksehat-payments',
element: <LinksehatPayment />,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

View File

@@ -0,0 +1 @@
import{ac as o}from"./index.52c19e01.js";const t=o(),c=t;export{c as B};

View File

@@ -1 +0,0 @@
import{ac as o}from"./index.8db8ac40.js";const t=o(),c=t;export{c as B};

View File

@@ -1 +1 @@
import{a as d,g as u,s as C,P as p,r as f,u as m,e as x,_ as n,j as h,h as y,i as g}from"./index.8db8ac40.js";function v(s){return d("MuiCard",s)}u("MuiCard",["root"]);const w=["className","raised"],M=s=>{const{classes:e}=s;return g({root:["root"]},v,e)},P=C(p,{name:"MuiCard",slot:"Root",overridesResolver:(s,e)=>e.root})(()=>({overflow:"hidden"})),R=f.exports.forwardRef(function(e,t){const o=m({props:e,name:"MuiCard"}),{className:i,raised:r=!1}=o,l=x(o,w),a=n({},o,{raised:r}),c=M(a);return h(P,n({className:y(c.root,i),elevation:r?8:void 0,ref:t,ownerState:a},l))}),_=R;export{_ as C};
import{a as d,g as u,s as C,P as p,r as f,u as m,e as x,_ as n,j as h,h as y,i as g}from"./index.52c19e01.js";function v(s){return d("MuiCard",s)}u("MuiCard",["root"]);const w=["className","raised"],M=s=>{const{classes:e}=s;return g({root:["root"]},v,e)},P=C(p,{name:"MuiCard",slot:"Root",overridesResolver:(s,e)=>e.root})(()=>({overflow:"hidden"})),R=f.exports.forwardRef(function(e,t){const o=m({props:e,name:"MuiCard"}),{className:i,raised:r=!1}=o,l=x(o,w),a=n({},o,{raised:r}),c=M(a);return h(P,n({className:y(c.root,i),elevation:r?8:void 0,ref:t,ownerState:a},l))}),_=R;export{_ as C};

View File

@@ -1 +1 @@
import{f as a,F as l,S as e,j as i,T as r,B as s,D as t,Z as n,H as c}from"./index.8db8ac40.js";import{S as p,a as h,b as g,A as m}from"./Add.dd2aa78f.js";import{C as o}from"./Card.ce7d7ff4.js";const x=["Review","Approval","Disbursement"],y=({title:b,openDialog:u,setOpenDialog:v,data:w})=>a(l,{children:[a(e,{alignItems:"center",justifyContent:"space-between",direction:"row",sx:{marginTop:1},children:[i(r,{variant:"subtitle1",sx:{height:"max-content"},children:"Claim Request"}),a(e,{children:[i(r,{variant:"caption",children:"Submission date"}),i(r,{variant:"caption",children:"15 / 05 / 2022"})]})]}),i(s,{sx:{width:"100%",marginTop:2},children:i(p,{alternativeLabel:!0,children:x.map(d=>i(h,{children:i(g,{children:d})},d))})}),i(e,{marginTop:2,children:i(r,{variant:"subtitle1",paddingY:2,children:"17 Mei 2022"})}),a(e,{direction:"row",spacing:2,children:[i(t,{orientation:"vertical",flexItem:!0,sx:{borderStyle:"dashed"}}),a(e,{spacing:2,sx:{flex:1,maxWidth:"100%"},children:[a(o,{sx:{paddingY:2,paddingX:3},children:[a(e,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[i(r,{variant:"body1",children:"09:10 WIB"}),i(r,{sx:{backgroundColor:n.light.warning.lighter,color:n.light.warning.dark,borderColor:n.light.warning.dark,border:"1px solid",borderRadius:"6px",padding:1},variant:"caption",children:"Approval"})]}),i(t,{sx:{marginY:2}}),a(e,{children:[i(r,{variant:"subtitle2",color:"#404040",children:"Details : mohon melengkapi kekurangan dokumen"}),i(r,{variant:"caption",color:"#757575",sx:{marginTop:2,marginBottom:1},children:"Lab pemeriksaan darah"}),i(c,{variant:"outlined",startIcon:i(m,{}),fullWidth:!0,sx:{typography:"subtitle2",borderColor:"#F5F5F5"},children:"Hasil Pemeriksaan Laboratorium"})]})]}),a(o,{sx:{flex:1,maxWidth:"100%",paddingY:2,paddingX:3},children:[a(e,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[i(r,{variant:"body1",children:"09:00 WIB"}),i(r,{sx:{backgroundColor:n.light.warning.lighter,color:n.light.warning.dark,borderColor:n.light.warning.dark,border:"1px solid",borderRadius:"6px",padding:1},variant:"caption",children:"Approval"})]}),i(t,{sx:{marginY:2}}),i(e,{children:i(r,{variant:"subtitle2",color:"#404040",children:"Details : Penilaian Dokter"})})]}),a(o,{sx:{flex:1,maxWidth:"100%",paddingY:2,paddingX:3},children:[a(e,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[i(r,{variant:"body1",children:"08:00 WIB"}),i(r,{sx:{backgroundColor:"#F5F5F5",color:"#757575",borderColor:"#757575",border:"1px solid",borderRadius:"6px",padding:1},variant:"caption",children:"Review"})]}),i(t,{sx:{marginY:2}}),i(e,{children:i(r,{variant:"subtitle2",color:"#404040",children:"Details : Klaim Diajukan"})})]})]})]})]});export{y as default};
import{f as a,F as l,S as e,j as i,T as r,B as s,D as t,Z as n,H as c}from"./index.52c19e01.js";import{S as p,a as h,b as g,A as m}from"./Add.d1ec42b9.js";import{C as o}from"./Card.6cad65b0.js";const x=["Review","Approval","Disbursement"],y=({title:b,openDialog:u,setOpenDialog:v,data:w})=>a(l,{children:[a(e,{alignItems:"center",justifyContent:"space-between",direction:"row",sx:{marginTop:1},children:[i(r,{variant:"subtitle1",sx:{height:"max-content"},children:"Claim Request"}),a(e,{children:[i(r,{variant:"caption",children:"Submission date"}),i(r,{variant:"caption",children:"15 / 05 / 2022"})]})]}),i(s,{sx:{width:"100%",marginTop:2},children:i(p,{alternativeLabel:!0,children:x.map(d=>i(h,{children:i(g,{children:d})},d))})}),i(e,{marginTop:2,children:i(r,{variant:"subtitle1",paddingY:2,children:"17 Mei 2022"})}),a(e,{direction:"row",spacing:2,children:[i(t,{orientation:"vertical",flexItem:!0,sx:{borderStyle:"dashed"}}),a(e,{spacing:2,sx:{flex:1,maxWidth:"100%"},children:[a(o,{sx:{paddingY:2,paddingX:3},children:[a(e,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[i(r,{variant:"body1",children:"09:10 WIB"}),i(r,{sx:{backgroundColor:n.light.warning.lighter,color:n.light.warning.dark,borderColor:n.light.warning.dark,border:"1px solid",borderRadius:"6px",padding:1},variant:"caption",children:"Approval"})]}),i(t,{sx:{marginY:2}}),a(e,{children:[i(r,{variant:"subtitle2",color:"#404040",children:"Details : mohon melengkapi kekurangan dokumen"}),i(r,{variant:"caption",color:"#757575",sx:{marginTop:2,marginBottom:1},children:"Lab pemeriksaan darah"}),i(c,{variant:"outlined",startIcon:i(m,{}),fullWidth:!0,sx:{typography:"subtitle2",borderColor:"#F5F5F5"},children:"Hasil Pemeriksaan Laboratorium"})]})]}),a(o,{sx:{flex:1,maxWidth:"100%",paddingY:2,paddingX:3},children:[a(e,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[i(r,{variant:"body1",children:"09:00 WIB"}),i(r,{sx:{backgroundColor:n.light.warning.lighter,color:n.light.warning.dark,borderColor:n.light.warning.dark,border:"1px solid",borderRadius:"6px",padding:1},variant:"caption",children:"Approval"})]}),i(t,{sx:{marginY:2}}),i(e,{children:i(r,{variant:"subtitle2",color:"#404040",children:"Details : Penilaian Dokter"})})]}),a(o,{sx:{flex:1,maxWidth:"100%",paddingY:2,paddingX:3},children:[a(e,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[i(r,{variant:"body1",children:"08:00 WIB"}),i(r,{sx:{backgroundColor:"#F5F5F5",color:"#757575",borderColor:"#757575",border:"1px solid",borderRadius:"6px",padding:1},variant:"caption",children:"Review"})]}),i(t,{sx:{marginY:2}}),i(e,{children:i(r,{variant:"subtitle2",color:"#404040",children:"Details : Klaim Diajukan"})})]})]})]})]});export{y as default};

View File

@@ -1,4 +1,4 @@
import{c as p_,j as q,s as _e,a4 as __,_ as Rt,az as _o,e as xo,g as d_,a as v_,T as Mi,r as ge,u as x_,aw as w_,h as A_,i as m_,A as pe,B as It,f as cr,L as Wi,av as S_}from"./index.8db8ac40.js";const y_=p_(q("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),I_=["slots","slotProps"],R_=_e(__)(({theme:R})=>Rt({display:"flex",marginLeft:`calc(${R.spacing(1)} * 0.5)`,marginRight:`calc(${R.spacing(1)} * 0.5)`},R.palette.mode==="light"?{backgroundColor:R.palette.grey[100],color:R.palette.grey[700]}:{backgroundColor:R.palette.grey[700],color:R.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Rt({},R.palette.mode==="light"?{backgroundColor:R.palette.grey[200]}:{backgroundColor:R.palette.grey[600]}),"&:active":Rt({boxShadow:R.shadows[0]},R.palette.mode==="light"?{backgroundColor:_o(R.palette.grey[200],.12)}:{backgroundColor:_o(R.palette.grey[600],.12)})})),C_=_e(y_)({width:24,height:16});function T_(R){const{slots:D={},slotProps:o={}}=R,Z=xo(R,I_),V=R;return q("li",{children:q(R_,Rt({focusRipple:!0},Z,{ownerState:V,children:q(C_,Rt({as:D.CollapsedIcon,ownerState:V},o.collapsedIcon))}))})}function L_(R){return v_("MuiBreadcrumbs",R)}const E_=d_("MuiBreadcrumbs",["root","ol","li","separator"]),b_=E_,O_=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],B_=R=>{const{classes:D}=R;return m_({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},L_,D)},W_=_e(Mi,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(R,D)=>[{[`& .${b_.li}`]:D.li},D.root]})({}),P_=_e("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(R,D)=>D.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),M_=_e("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(R,D)=>D.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function U_(R,D,o,Z){return R.reduce((V,Mn,P)=>(P<R.length-1?V=V.concat(Mn,q(M_,{"aria-hidden":!0,className:D,ownerState:Z,children:o},`separator-${P}`)):V.push(Mn),V),[])}const F_=ge.exports.forwardRef(function(D,o){const Z=x_({props:D,name:"MuiBreadcrumbs"}),{children:V,className:Mn,component:P="nav",slots:de={},slotProps:Kt={},expandText:ve="Show path",itemsAfterCollapse:nt=1,itemsBeforeCollapse:xn=1,maxItems:Ct=8,separator:Hn="/"}=Z,tt=xo(Z,O_),[ht,fn]=ge.exports.useState(!1),cn=Rt({},Z,{component:P,expanded:ht,expandText:ve,itemsAfterCollapse:nt,itemsBeforeCollapse:xn,maxItems:Ct,separator:Hn}),gt=B_(cn),wn=w_({elementType:de.CollapsedIcon,externalSlotProps:Kt.collapsedIcon,ownerState:cn}),$n=ge.exports.useRef(null),An=Y=>{const qn=()=>{fn(!0);const Tt=$n.current.querySelector("a[href],button,[tabindex]");Tt&&Tt.focus()};return xn+nt>=Y.length?Y:[...Y.slice(0,xn),q(T_,{"aria-label":ve,slots:{CollapsedIcon:de.CollapsedIcon},slotProps:{collapsedIcon:wn},onClick:qn},"ellipsis"),...Y.slice(Y.length-nt,Y.length)]},Un=ge.exports.Children.toArray(V).filter(Y=>ge.exports.isValidElement(Y)).map((Y,qn)=>q("li",{className:gt.li,children:Y},`child-${qn}`));return q(W_,Rt({ref:o,component:P,color:"text.secondary",className:A_(gt.root,Mn),ownerState:cn},tt,{children:q(P_,{className:gt.ol,ref:$n,ownerState:cn,children:U_(ht||Ct&&Un.length<=Ct?Un:An(Un),gt.separator,Hn,cn)})}))}),D_=F_;var Pi={exports:{}};/**
import{c as p_,j as q,s as _e,a4 as __,_ as Rt,aA as _o,e as xo,g as d_,a as v_,T as Mi,r as ge,u as x_,aw as w_,h as A_,i as m_,A as pe,B as It,f as cr,L as Wi,av as S_}from"./index.52c19e01.js";const y_=p_(q("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),I_=["slots","slotProps"],R_=_e(__)(({theme:R})=>Rt({display:"flex",marginLeft:`calc(${R.spacing(1)} * 0.5)`,marginRight:`calc(${R.spacing(1)} * 0.5)`},R.palette.mode==="light"?{backgroundColor:R.palette.grey[100],color:R.palette.grey[700]}:{backgroundColor:R.palette.grey[700],color:R.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Rt({},R.palette.mode==="light"?{backgroundColor:R.palette.grey[200]}:{backgroundColor:R.palette.grey[600]}),"&:active":Rt({boxShadow:R.shadows[0]},R.palette.mode==="light"?{backgroundColor:_o(R.palette.grey[200],.12)}:{backgroundColor:_o(R.palette.grey[600],.12)})})),C_=_e(y_)({width:24,height:16});function T_(R){const{slots:D={},slotProps:o={}}=R,Z=xo(R,I_),V=R;return q("li",{children:q(R_,Rt({focusRipple:!0},Z,{ownerState:V,children:q(C_,Rt({as:D.CollapsedIcon,ownerState:V},o.collapsedIcon))}))})}function L_(R){return v_("MuiBreadcrumbs",R)}const E_=d_("MuiBreadcrumbs",["root","ol","li","separator"]),b_=E_,O_=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],B_=R=>{const{classes:D}=R;return m_({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},L_,D)},W_=_e(Mi,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(R,D)=>[{[`& .${b_.li}`]:D.li},D.root]})({}),P_=_e("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(R,D)=>D.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),M_=_e("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(R,D)=>D.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function U_(R,D,o,Z){return R.reduce((V,Mn,P)=>(P<R.length-1?V=V.concat(Mn,q(M_,{"aria-hidden":!0,className:D,ownerState:Z,children:o},`separator-${P}`)):V.push(Mn),V),[])}const F_=ge.exports.forwardRef(function(D,o){const Z=x_({props:D,name:"MuiBreadcrumbs"}),{children:V,className:Mn,component:P="nav",slots:de={},slotProps:Kt={},expandText:ve="Show path",itemsAfterCollapse:nt=1,itemsBeforeCollapse:xn=1,maxItems:Ct=8,separator:Hn="/"}=Z,tt=xo(Z,O_),[ht,fn]=ge.exports.useState(!1),cn=Rt({},Z,{component:P,expanded:ht,expandText:ve,itemsAfterCollapse:nt,itemsBeforeCollapse:xn,maxItems:Ct,separator:Hn}),gt=B_(cn),wn=w_({elementType:de.CollapsedIcon,externalSlotProps:Kt.collapsedIcon,ownerState:cn}),$n=ge.exports.useRef(null),An=Y=>{const qn=()=>{fn(!0);const Tt=$n.current.querySelector("a[href],button,[tabindex]");Tt&&Tt.focus()};return xn+nt>=Y.length?Y:[...Y.slice(0,xn),q(T_,{"aria-label":ve,slots:{CollapsedIcon:de.CollapsedIcon},slotProps:{collapsedIcon:wn},onClick:qn},"ellipsis"),...Y.slice(Y.length-nt,Y.length)]},Un=ge.exports.Children.toArray(V).filter(Y=>ge.exports.isValidElement(Y)).map((Y,qn)=>q("li",{className:gt.li,children:Y},`child-${qn}`));return q(W_,Rt({ref:o,component:P,color:"text.secondary",className:A_(gt.root,Mn),ownerState:cn},tt,{children:q(P_,{className:gt.ol,ref:$n,ownerState:cn,children:U_(ht||Ct&&Un.length<=Ct?Un:An(Un),gt.separator,Hn,cn)})}))}),D_=F_;var Pi={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{f as P,j as t,S as A,T as p,s as q,Z as h,o as G,r as e,$ as E,a2 as L,a0 as M,H as _,t as V,a1 as Y,a3 as H}from"./index.8db8ac40.js";import{P as U}from"./Page.521493b5.js";import{G as S}from"./Grid.1894d4b6.js";import{C as I}from"./Card.ce7d7ff4.js";import{T as Z}from"./Table.01483ef0.js";import"./Box.e56e7e54.js";import"./TablePagination.ab70ef64.js";import"./TableRow.1afe5125.js";import"./KeyboardArrowRight.af84314f.js";import"./TextField.bb92a059.js";const z=q(I)(({theme:r})=>({boxShadow:"none",padding:r.spacing(2),color:"black",backgroundColor:r.palette.grey[200]})),J=[{name:"Requested",value:5,color:h.dark.primary.dark},{name:"Approval",value:1,color:h.dark.warning.dark},{name:"Disbrusment",value:0,color:h.dark.success.dark},{name:"Rejected",value:3,color:h.dark.error.dark}];function K({data:r}){return P(z,{children:[t(A,{sx:{mb:1},children:t(p,{variant:"body2",children:"Claim Status"})}),t(S,{container:!0,spacing:2,children:r?r.map(({name:s,value:o,color:n},m)=>t(S,{item:!0,xs:6,sm:3,children:P(I,{sx:{paddingX:1,borderRadius:.75,borderColor:n,borderStyle:"solid",borderWidth:"1px",padding:2,flex:1,textAlign:"center"},children:[t(p,{component:"p",variant:"body2",children:s}),t(p,{component:"p",variant:"h5",sx:{marginTop:2},children:o}),t(p,{component:"p",variant:"body2",sx:{marginTop:2},children:"Cases"})]})},m)):J.map(({name:s,value:o,color:n},m)=>t(S,{item:!0,xs:6,sm:3,children:P(I,{sx:{paddingX:1,borderRadius:.75,borderColor:n,borderStyle:"solid",borderWidth:"1px",padding:2,flex:1,textAlign:"center"},children:[t(p,{component:"p",variant:"body2",children:s}),t(p,{component:"p",variant:"h5",sx:{marginTop:2},children:o}),t(p,{component:"p",variant:"body2",sx:{marginTop:2},children:"Cases"})]})},m))})]})}function Q(){const r=G(),{corporateValue:s}=e.exports.useContext(E),[o,n]=e.exports.useState([]),[m,b]=e.exports.useState(!0),j={isLoading:m,setIsLoading:b},[a,f]=L(),[i,l]=e.exports.useState({}),w={searchParams:a,setSearchParams:f,appliedParams:i,setAppliedParams:l},[u,v]=e.exports.useState("asc"),[g,T]=e.exports.useState("fullName"),y={order:u,setOrder:v,orderBy:g,setOrderBy:T},[F,C]=e.exports.useState(0),[k,x]=e.exports.useState(10),[D,R]=e.exports.useState({current_page:0,from:0,last_page:0,links:[],path:"",per_page:0,to:0,total:0}),N={page:F,setPage:C,rowsPerPage:k,setRowsPerPage:x,paginationTable:D,setPaginationTable:R},[B,X]=e.exports.useState(""),W={searchText:B,setSearchText:X,handleSearchSubmit:async O=>{if(O.preventDefault(),B===""){a.delete("search");const c=Object.fromEntries([...a.entries()]);l(c)}else{const c=Object.fromEntries([...a.entries(),["search",B]]);l(c)}}},$=[{id:"memberId",align:"left",label:"Member ID",isSort:!0},{id:"fullName",align:"left",label:"Name",isSort:!0},{id:"division",align:"left",label:"Divisi",isSort:!0},{id:"status",align:"center",label:"Status",isSort:!0},{id:"action",align:"right",label:"",isSort:!1}];return e.exports.useState(null),e.exports.useEffect(()=>{(async()=>{b(!0),await new Promise(d=>setTimeout(d,250));const O=Object.keys(i).length!==0?i:Object.fromEntries([...a.entries(),["order",u],["orderBy",g]]),c=await M.get(`${s}/members`,{params:{...O}});if(n(c.data.data.map(d=>({...d,status:d.status===1?t(_,{onClick:()=>r("dialog-detail"),sx:{backgroundColor:"rgba(84, 214, 44, 0.16)",color:h.dark.success.dark,paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:"rgba(84, 214, 44, 0.16)",color:h.dark.success.dark}},children:"Request"}):t(_,{startIcon:t(V,{icon:"fa6-solid:clock"}),sx:{backgroundColor:"#CD7B2E",color:"#FFFF",paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:"#BF6919",color:"#FFFF"}},children:"Ongoing"})}))),R(c.data),x(c.data.per_page),a.get("page")){const d=parseInt(a.get("page"))-1;D.current_page=d,C(d)}b(!1)})()},[i,a,u,g,f,s]),t(A,{children:t(Z,{headCells:$,rows:o,orders:y,paginations:N,loadings:j,params:w,searchs:W})})}function pe(){const{themeStretch:r}=Y(),{corporateValue:s}=e.exports.useContext(E),[o,n]=e.exports.useState([]),[m,b]=e.exports.useState([]),[j,a]=e.exports.useState(!0),[f,i]=L(),[l,w]=e.exports.useState({}),[u,v]=e.exports.useState("asc"),[g,T]=e.exports.useState("fullName"),y={order:u,setOrder:v,orderBy:g,setOrderBy:T};e.exports.useState(0),e.exports.useState(10);const[F,C]=e.exports.useState({current_page:0,from:0,last_page:0,links:[],path:"",per_page:0,to:0,total:0});return e.exports.useEffect(()=>{(async()=>{a(!0);const k=Object.keys(l).length!==0?l:Object.fromEntries([...f.entries(),["order",y.order],["orderBy",y.orderBy]]),x=await M.get(`${s}/members`,{params:{...k,type:"claim-report"}});i(k),n(x.data.data.allClaimStatus),b(x.data.data.allMembersByClaimStatus.data),C(x.data.data.allMembersByClaimStatus),a(!1)})()},[l,f,u,g,i,s]),t(U,{title:"Claim Reports",children:t(H,{maxWidth:r?!1:"xl",children:P(S,{container:!0,spacing:2,children:[t(S,{item:!0,xs:12,lg:12,md:12,children:t(K,{data:o})}),t(S,{item:!0,xs:12,lg:12,md:12,children:t(Q,{})})]})})})}export{pe as default};
import{f as P,j as t,S as A,T as p,s as q,Z as h,o as G,r as e,$ as E,a2 as L,a0 as M,H as _,t as V,a1 as Y,a3 as H}from"./index.52c19e01.js";import{P as U}from"./Page.2d2aae4a.js";import{G as S}from"./Grid.35ade0df.js";import{C as I}from"./Card.6cad65b0.js";import{T as Z}from"./Table.4e5e7a7b.js";import"./Box.bdfd146f.js";import"./TablePagination.9f676df5.js";import"./TableRow.2979bcea.js";import"./KeyboardArrowRight.45cdeaba.js";import"./TextField.ca0ae25e.js";const z=q(I)(({theme:r})=>({boxShadow:"none",padding:r.spacing(2),color:"black",backgroundColor:r.palette.grey[200]})),J=[{name:"Requested",value:5,color:h.dark.primary.dark},{name:"Approval",value:1,color:h.dark.warning.dark},{name:"Disbrusment",value:0,color:h.dark.success.dark},{name:"Rejected",value:3,color:h.dark.error.dark}];function K({data:r}){return P(z,{children:[t(A,{sx:{mb:1},children:t(p,{variant:"body2",children:"Claim Status"})}),t(S,{container:!0,spacing:2,children:r?r.map(({name:s,value:o,color:n},m)=>t(S,{item:!0,xs:6,sm:3,children:P(I,{sx:{paddingX:1,borderRadius:.75,borderColor:n,borderStyle:"solid",borderWidth:"1px",padding:2,flex:1,textAlign:"center"},children:[t(p,{component:"p",variant:"body2",children:s}),t(p,{component:"p",variant:"h5",sx:{marginTop:2},children:o}),t(p,{component:"p",variant:"body2",sx:{marginTop:2},children:"Cases"})]})},m)):J.map(({name:s,value:o,color:n},m)=>t(S,{item:!0,xs:6,sm:3,children:P(I,{sx:{paddingX:1,borderRadius:.75,borderColor:n,borderStyle:"solid",borderWidth:"1px",padding:2,flex:1,textAlign:"center"},children:[t(p,{component:"p",variant:"body2",children:s}),t(p,{component:"p",variant:"h5",sx:{marginTop:2},children:o}),t(p,{component:"p",variant:"body2",sx:{marginTop:2},children:"Cases"})]})},m))})]})}function Q(){const r=G(),{corporateValue:s}=e.exports.useContext(E),[o,n]=e.exports.useState([]),[m,b]=e.exports.useState(!0),j={isLoading:m,setIsLoading:b},[a,f]=L(),[i,l]=e.exports.useState({}),w={searchParams:a,setSearchParams:f,appliedParams:i,setAppliedParams:l},[u,v]=e.exports.useState("asc"),[g,T]=e.exports.useState("fullName"),y={order:u,setOrder:v,orderBy:g,setOrderBy:T},[F,C]=e.exports.useState(0),[k,x]=e.exports.useState(10),[D,R]=e.exports.useState({current_page:0,from:0,last_page:0,links:[],path:"",per_page:0,to:0,total:0}),N={page:F,setPage:C,rowsPerPage:k,setRowsPerPage:x,paginationTable:D,setPaginationTable:R},[B,X]=e.exports.useState(""),W={searchText:B,setSearchText:X,handleSearchSubmit:async O=>{if(O.preventDefault(),B===""){a.delete("search");const c=Object.fromEntries([...a.entries()]);l(c)}else{const c=Object.fromEntries([...a.entries(),["search",B]]);l(c)}}},$=[{id:"memberId",align:"left",label:"Member ID",isSort:!0},{id:"fullName",align:"left",label:"Name",isSort:!0},{id:"division",align:"left",label:"Divisi",isSort:!0},{id:"status",align:"center",label:"Status",isSort:!0},{id:"action",align:"right",label:"",isSort:!1}];return e.exports.useState(null),e.exports.useEffect(()=>{(async()=>{b(!0),await new Promise(d=>setTimeout(d,250));const O=Object.keys(i).length!==0?i:Object.fromEntries([...a.entries(),["order",u],["orderBy",g]]),c=await M.get(`${s}/members`,{params:{...O}});if(n(c.data.data.map(d=>({...d,status:d.status===1?t(_,{onClick:()=>r("dialog-detail"),sx:{backgroundColor:"rgba(84, 214, 44, 0.16)",color:h.dark.success.dark,paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:"rgba(84, 214, 44, 0.16)",color:h.dark.success.dark}},children:"Request"}):t(_,{startIcon:t(V,{icon:"fa6-solid:clock"}),sx:{backgroundColor:"#CD7B2E",color:"#FFFF",paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:"#BF6919",color:"#FFFF"}},children:"Ongoing"})}))),R(c.data),x(c.data.per_page),a.get("page")){const d=parseInt(a.get("page"))-1;D.current_page=d,C(d)}b(!1)})()},[i,a,u,g,f,s]),t(A,{children:t(Z,{headCells:$,rows:o,orders:y,paginations:N,loadings:j,params:w,searchs:W})})}function pe(){const{themeStretch:r}=Y(),{corporateValue:s}=e.exports.useContext(E),[o,n]=e.exports.useState([]),[m,b]=e.exports.useState([]),[j,a]=e.exports.useState(!0),[f,i]=L(),[l,w]=e.exports.useState({}),[u,v]=e.exports.useState("asc"),[g,T]=e.exports.useState("fullName"),y={order:u,setOrder:v,orderBy:g,setOrderBy:T};e.exports.useState(0),e.exports.useState(10);const[F,C]=e.exports.useState({current_page:0,from:0,last_page:0,links:[],path:"",per_page:0,to:0,total:0});return e.exports.useEffect(()=>{(async()=>{a(!0);const k=Object.keys(l).length!==0?l:Object.fromEntries([...f.entries(),["order",y.order],["orderBy",y.orderBy]]),x=await M.get(`${s}/members`,{params:{...k,type:"claim-report"}});i(k),n(x.data.data.allClaimStatus),b(x.data.data.allMembersByClaimStatus.data),C(x.data.data.allMembersByClaimStatus),a(!1)})()},[l,f,u,g,i,s]),t(U,{title:"Claim Reports",children:t(H,{maxWidth:r?!1:"xl",children:P(S,{container:!0,spacing:2,children:[t(S,{item:!0,xs:12,lg:12,md:12,children:t(K,{data:o})}),t(S,{item:!0,xs:12,lg:12,md:12,children:t(Q,{})})]})})})}export{pe as default};

View File

@@ -0,0 +1 @@
import{o as G,r as a,$ as V,a2 as X,a0 as Y,j as e,H as x,t as v,Z as m,S as H,a1 as U,a3 as Z,f as F,B as D,s as O}from"./index.52c19e01.js";import{P as q}from"./Page.2d2aae4a.js";import{T as z}from"./Table.4e5e7a7b.js";import{G as I}from"./Grid.35ade0df.js";import{C as J}from"./Card.6cad65b0.js";import{T as K,a as Q}from"./Tabs.8cb1735e.js";import"./Box.bdfd146f.js";import"./TablePagination.9f676df5.js";import"./TableRow.2979bcea.js";import"./KeyboardArrowRight.45cdeaba.js";import"./TextField.ca0ae25e.js";function ee(){const t=G(),{corporateValue:o}=a.exports.useContext(V),[l,n]=a.exports.useState([]),[d,c]=a.exports.useState(!0),w={isLoading:d,setIsLoading:c},[s,y]=X(),[p,u]=a.exports.useState({}),_={searchParams:s,setSearchParams:y,appliedParams:p,setAppliedParams:u},[g,E]=a.exports.useState("asc"),[b,$]=a.exports.useState("fullName"),j={order:g,setOrder:E,orderBy:b,setOrderBy:$},[M,P]=a.exports.useState(0),[N,T]=a.exports.useState(10),[k,B]=a.exports.useState({current_page:0,from:0,last_page:0,links:[],path:"",per_page:0,to:0,total:0}),A={page:M,setPage:P,rowsPerPage:N,setRowsPerPage:T,paginationTable:k,setPaginationTable:B},[h,L]=a.exports.useState(""),R={searchText:h,setSearchText:L,handleSearchSubmit:async f=>{if(f.preventDefault(),h===""){s.delete("search");const i=Object.fromEntries([...s.entries()]);u(i)}else{const i=Object.fromEntries([...s.entries(),["search",h]]);u(i)}}},W=[{id:"memberId",align:"left",label:"Member ID",isSort:!0},{id:"fullName",align:"left",label:"Name",isSort:!0},{id:"start_date",align:"center",label:"Start Date",isSort:!0},{id:"end_date",align:"center",label:"End Date",isSort:!1},{id:"status",align:"center",label:"Status",isSort:!0}];return a.exports.useEffect(()=>{(async()=>{c(!0),await new Promise(r=>setTimeout(r,250));const f=Object.keys(p).length!==0?p:Object.fromEntries([...s.entries(),["order",g],["orderBy",b]]),i=await Y.get(`${o}/members?type=alarm-center`,{params:{...f}});if(n(i.data.data.map(r=>({...r,memberId:e(x,{onClick:()=>t("/user-profile/"+r.personId),children:r.memberId}),status:r.status===1?e(x,{onClick:()=>t("service-monitoring/"+r.personId),startIcon:e(v,{icon:"ic:round-check"}),sx:{backgroundColor:m.light.grey[300],color:m.light.grey[800],paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:m.light.grey[400],color:m.light.grey[800]}},children:"done"}):e(x,{startIcon:e(v,{icon:"fa6-solid:clock"}),sx:{backgroundColor:"#CD7B2E",color:"#FFFF",paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:"#BF6919",color:"#FFFF"}},children:"Ongoing"})}))),B(i.data),T(i.data.per_page),s.get("page")){const r=parseInt(s.get("page"))-1;k.current_page=r,P(r)}c(!1)})()},[p,s,g,b,y,o]),e(H,{children:e(z,{headCells:W,rows:l,orders:j,paginations:A,loadings:w,params:_,searchs:R})})}function te(t){const{children:o,value:l,index:n,...d}=t;return e("div",{role:"tabpanel",hidden:l!==n,id:`simple-tabpanel-${n}`,"aria-labelledby":`simple-tab-${n}`,...d,children:l===n&&e(D,{children:o})})}function S(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const ae=O(t=>e(K,{...t}))({backgroundColor:"#F4F6F8",padding:"0 24px","& .MuiTabs-indicator":{display:"flex",justifyContent:"space-between",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,backgroundColor:"#635ee7"}}),C=O(t=>e(Q,{disableRipple:!0,...t}))(({theme:t})=>({textTransform:"none",fontWeight:600,color:t.palette.grey[600],marginRight:"5rem","&.Mui-selected":{color:"#212B36",borderBottom:"2px solid "+t.palette.primary.main},"&:hover":{color:"#212B36",opacity:1,borderBottom:"2px solid "+t.palette.primary.main}}));function be(){const{themeStretch:t}=U(),[o,l]=a.exports.useState(0);return e(q,{title:"Alarm Center",children:e(Z,{maxWidth:t?!1:"xl",children:e(I,{container:!0,children:e(I,{item:!0,xs:12,lg:12,md:12,children:F(J,{children:[e(D,{sx:{borderBottom:1,borderColor:"divider"},children:F(ae,{value:o,onChange:(d,c)=>{l(c)},"aria-label":"basic tabs example",children:[e(C,{label:"All Data",...S(0)}),e(C,{label:"Ongoing",...S(1)}),e(C,{label:"Done",...S(2)})]})}),e(te,{value:o,index:0,children:e(ee,{})})]})})})})})}export{be as default};

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
import{o as G,r as a,$ as V,a2 as X,a0 as Y,j as e,H as x,t as v,Z as m,S as H,a1 as U,a3 as Z,f as F,B as D,s as O}from"./index.8db8ac40.js";import{P as q}from"./Page.521493b5.js";import{T as z}from"./Table.01483ef0.js";import{G as I}from"./Grid.1894d4b6.js";import{C as J}from"./Card.ce7d7ff4.js";import{T as K,a as Q}from"./Tabs.97838559.js";import"./Box.e56e7e54.js";import"./TablePagination.ab70ef64.js";import"./TableRow.1afe5125.js";import"./KeyboardArrowRight.af84314f.js";import"./TextField.bb92a059.js";function ee(){const t=G(),{corporateValue:o}=a.exports.useContext(V),[l,n]=a.exports.useState([]),[d,c]=a.exports.useState(!0),w={isLoading:d,setIsLoading:c},[s,y]=X(),[p,u]=a.exports.useState({}),_={searchParams:s,setSearchParams:y,appliedParams:p,setAppliedParams:u},[g,E]=a.exports.useState("asc"),[b,$]=a.exports.useState("fullName"),j={order:g,setOrder:E,orderBy:b,setOrderBy:$},[M,P]=a.exports.useState(0),[N,T]=a.exports.useState(10),[k,B]=a.exports.useState({current_page:0,from:0,last_page:0,links:[],path:"",per_page:0,to:0,total:0}),A={page:M,setPage:P,rowsPerPage:N,setRowsPerPage:T,paginationTable:k,setPaginationTable:B},[h,L]=a.exports.useState(""),R={searchText:h,setSearchText:L,handleSearchSubmit:async f=>{if(f.preventDefault(),h===""){s.delete("search");const i=Object.fromEntries([...s.entries()]);u(i)}else{const i=Object.fromEntries([...s.entries(),["search",h]]);u(i)}}},W=[{id:"memberId",align:"left",label:"Member ID",isSort:!0},{id:"fullName",align:"left",label:"Name",isSort:!0},{id:"start_date",align:"center",label:"Start Date",isSort:!0},{id:"end_date",align:"center",label:"End Date",isSort:!1},{id:"status",align:"center",label:"Status",isSort:!0}];return a.exports.useEffect(()=>{(async()=>{c(!0),await new Promise(r=>setTimeout(r,250));const f=Object.keys(p).length!==0?p:Object.fromEntries([...s.entries(),["order",g],["orderBy",b]]),i=await Y.get(`${o}/members?type=alarm-center`,{params:{...f}});if(n(i.data.data.map(r=>({...r,memberId:e(x,{onClick:()=>t("/user-profile/"+r.personId),children:r.memberId}),status:r.status===1?e(x,{onClick:()=>t("service-monitoring/:id"),startIcon:e(v,{icon:"ic:round-check"}),sx:{backgroundColor:m.light.grey[300],color:m.light.grey[800],paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:m.light.grey[400],color:m.light.grey[800]}},children:"done"}):e(x,{startIcon:e(v,{icon:"fa6-solid:clock"}),sx:{backgroundColor:"#CD7B2E",color:"#FFFF",paddingX:1.5,paddingY:1,"&:hover":{backgroundColor:"#BF6919",color:"#FFFF"}},children:"Ongoing"})}))),B(i.data),T(i.data.per_page),s.get("page")){const r=parseInt(s.get("page"))-1;k.current_page=r,P(r)}c(!1)})()},[p,s,g,b,y,o]),e(H,{children:e(z,{headCells:W,rows:l,orders:j,paginations:A,loadings:w,params:_,searchs:R})})}function te(t){const{children:o,value:l,index:n,...d}=t;return e("div",{role:"tabpanel",hidden:l!==n,id:`simple-tabpanel-${n}`,"aria-labelledby":`simple-tab-${n}`,...d,children:l===n&&e(D,{children:o})})}function S(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const ae=O(t=>e(K,{...t}))({backgroundColor:"#F4F6F8",padding:"0 24px","& .MuiTabs-indicator":{display:"flex",justifyContent:"space-between",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,backgroundColor:"#635ee7"}}),C=O(t=>e(Q,{disableRipple:!0,...t}))(({theme:t})=>({textTransform:"none",fontWeight:600,color:t.palette.grey[600],marginRight:"5rem","&.Mui-selected":{color:"#212B36",borderBottom:"2px solid "+t.palette.primary.main},"&:hover":{color:"#212B36",opacity:1,borderBottom:"2px solid "+t.palette.primary.main}}));function be(){const{themeStretch:t}=U(),[o,l]=a.exports.useState(0);return e(q,{title:"Alarm Center",children:e(Z,{maxWidth:t?!1:"xl",children:e(I,{container:!0,children:e(I,{item:!0,xs:12,lg:12,md:12,children:F(J,{children:[e(D,{sx:{borderBottom:1,borderColor:"divider"},children:F(ae,{value:o,onChange:(d,c)=>{l(c)},"aria-label":"basic tabs example",children:[e(C,{label:"All Data (999)",...S(0)}),e(C,{label:"Ongoing (888)",...S(1)}),e(C,{label:"Done (777)",...S(2)})]})}),e(te,{value:o,index:0,children:e(ee,{})})]})})})})})}export{be as default};

View File

@@ -1 +1 @@
import{c as r,j as o}from"./index.8db8ac40.js";const t=r(o("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),e=r(o("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");export{e as K,t as a};
import{c as r,j as o}from"./index.52c19e01.js";const t=r(o("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),e=r(o("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");export{e as K,t as a};

View File

@@ -1,4 +1,4 @@
import{a as G,g as W,E as D,s as I,b as f,_ as s,G as U,r as x,u as j,e as z,j as p,h as V,i as q,H as K,J as H,f as M}from"./index.8db8ac40.js";function J(t){return G("MuiCircularProgress",t)}W("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const O=["className","color","disableShrink","size","style","thickness","value","variant"];let b=t=>t,B,S,R,E;const g=44,T=D(B||(B=b`
import{a as G,g as W,E as D,s as I,b as f,_ as s,G as U,r as x,u as j,e as z,j as p,h as V,i as q,H as K,J as H,f as M}from"./index.52c19e01.js";function J(t){return G("MuiCircularProgress",t)}W("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const O=["className","color","disableShrink","size","style","thickness","value","variant"];let b=t=>t,B,S,R,E;const g=44,T=D(B||(B=b`
0% {
transform: rotate(0deg);
}

View File

@@ -1 +1 @@
import{c as m,j as a,g as F,a as P,s as D,aa as R,b as y,_ as t,a9 as j,r as p,u as T,e as w,h as H,i as O,f as u,S as b,t as q,T as I,I as U}from"./index.8db8ac40.js";import{S as V,D as L,a as N,b as W}from"./DialogTitle.5ba08d0e.js";import{r as E,i as A,a as G}from"./jsx-runtime_commonjs-proxy.2c8a0f42.js";const J=m(a("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),K=m(a("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Q=m(a("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function X(o){return P("MuiCheckbox",o)}const Y=F("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),h=Y,Z=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],oo=o=>{const{classes:e,indeterminate:n,color:r}=o,s={root:["root",n&&"indeterminate",`color${y(r)}`]},c=O(s,X,e);return t({},e,c)},eo=D(V,{shouldForwardProp:o=>R(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:n}=o;return[e.root,n.indeterminate&&e.indeterminate,n.color!=="default"&&e[`color${y(n.color)}`]]}})(({theme:o,ownerState:e})=>t({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:j(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${h.checked}, &.${h.indeterminate}`]:{color:(o.vars||o).palette[e.color].main},[`&.${h.disabled}`]:{color:(o.vars||o).palette.action.disabled}})),ao=a(K,{}),no=a(J,{}),co=a(Q,{}),ro=p.exports.forwardRef(function(e,n){var r,s;const c=T({props:e,name:"MuiCheckbox"}),{checkedIcon:i=ao,color:$="primary",icon:z=no,indeterminate:l=!1,indeterminateIcon:x=co,inputProps:_,size:d="medium",className:M}=c,S=w(c,Z),f=l?x:z,v=l?x:i,k=t({},c,{color:$,indeterminate:l,size:d}),g=oo(k);return a(eo,t({type:"checkbox",inputProps:t({"data-indeterminate":l},_),icon:p.exports.cloneElement(f,{fontSize:(r=f.props.fontSize)!=null?r:d}),checkedIcon:p.exports.cloneElement(v,{fontSize:(s=v.props.fontSize)!=null?s:d}),ownerState:k,ref:n,className:H(g.root,M)},S,{classes:g}))}),Co=ro;var C={},so=A.exports;Object.defineProperty(C,"__esModule",{value:!0});var B=C.default=void 0,to=so(E()),io=G,lo=(0,to.default)((0,io.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");B=C.default=lo;const po=({title:o,openDialog:e,setOpenDialog:n,content:r,maxWidth:s})=>{const c=()=>{n(!1)};let i="md";return s&&(i=s),u(L,{open:e,onClose:c,fullWidth:!0,maxWidth:i,children:[a(N,{sx:{backgroundColor:"#19BBBB",color:"#FFF",padding:2},children:u(b,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[o!=null&&o.icon?u(b,{direction:"row",children:[a(q,{icon:o==null?void 0:o.icon,width:25,height:25,sx:{marginRight:"10px"}}),a(I,{variant:"h6",children:o==null?void 0:o.name})]}):a(I,{variant:"h6",children:o!=null&&o.name?o==null?void 0:o.name:"Testing Title"}),a(U,{sx:{color:"#FFF"},onClick:c,children:a(B,{})})]})}),a(W,{sx:{backgroundColor:"#F9FAFB"},children:r||"Testing Content Dialog"})]})},xo=po;export{Co as C,xo as M};
import{c as m,j as a,g as F,a as P,s as D,aa as R,b as y,_ as t,a9 as j,r as p,u as T,e as w,h as H,i as O,f as u,S as b,t as q,T as I,I as U}from"./index.52c19e01.js";import{S as V,D as L,a as N,b as W}from"./DialogTitle.050479dc.js";import{r as E,i as A,a as G}from"./jsx-runtime_commonjs-proxy.7a5519c3.js";const J=m(a("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),K=m(a("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Q=m(a("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function X(o){return P("MuiCheckbox",o)}const Y=F("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),h=Y,Z=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],oo=o=>{const{classes:e,indeterminate:n,color:r}=o,s={root:["root",n&&"indeterminate",`color${y(r)}`]},c=O(s,X,e);return t({},e,c)},eo=D(V,{shouldForwardProp:o=>R(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:n}=o;return[e.root,n.indeterminate&&e.indeterminate,n.color!=="default"&&e[`color${y(n.color)}`]]}})(({theme:o,ownerState:e})=>t({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:j(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${h.checked}, &.${h.indeterminate}`]:{color:(o.vars||o).palette[e.color].main},[`&.${h.disabled}`]:{color:(o.vars||o).palette.action.disabled}})),ao=a(K,{}),no=a(J,{}),co=a(Q,{}),ro=p.exports.forwardRef(function(e,n){var r,s;const c=T({props:e,name:"MuiCheckbox"}),{checkedIcon:i=ao,color:$="primary",icon:z=no,indeterminate:l=!1,indeterminateIcon:x=co,inputProps:_,size:d="medium",className:M}=c,S=w(c,Z),f=l?x:z,v=l?x:i,k=t({},c,{color:$,indeterminate:l,size:d}),g=oo(k);return a(eo,t({type:"checkbox",inputProps:t({"data-indeterminate":l},_),icon:p.exports.cloneElement(f,{fontSize:(r=f.props.fontSize)!=null?r:d}),checkedIcon:p.exports.cloneElement(v,{fontSize:(s=v.props.fontSize)!=null?s:d}),ownerState:k,ref:n,className:H(g.root,M)},S,{classes:g}))}),Co=ro;var C={},so=A.exports;Object.defineProperty(C,"__esModule",{value:!0});var B=C.default=void 0,to=so(E()),io=G,lo=(0,to.default)((0,io.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");B=C.default=lo;const po=({title:o,openDialog:e,setOpenDialog:n,content:r,maxWidth:s})=>{const c=()=>{n(!1)};let i="md";return s&&(i=s),u(L,{open:e,onClose:c,fullWidth:!0,maxWidth:i,children:[a(N,{sx:{backgroundColor:"#19BBBB",color:"#FFF",padding:2},children:u(b,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[o!=null&&o.icon?u(b,{direction:"row",children:[a(q,{icon:o==null?void 0:o.icon,width:25,height:25,sx:{marginRight:"10px"}}),a(I,{variant:"h6",children:o==null?void 0:o.name})]}):a(I,{variant:"h6",children:o!=null&&o.name?o==null?void 0:o.name:"Testing Title"}),a(U,{sx:{color:"#FFF"},onClick:c,children:a(B,{})})]})}),a(W,{sx:{backgroundColor:"#F9FAFB"},children:r||"Testing Content Dialog"})]})},xo=po;export{Co as C,xo as M};

View File

@@ -1 +1 @@
import{r as c,f as a,F as i,W as x,j as e,B as d}from"./index.8db8ac40.js";const f=c.exports.forwardRef(({children:r,title:s="",meta:t,...o},n)=>a(i,{children:[a(x,{children:[e("title",{children:`${s} | LinkSehat`}),t]}),e(d,{ref:n,...o,children:r})]})),l=f;export{l as P};
import{r as c,f as a,F as i,W as x,j as e,B as d}from"./index.52c19e01.js";const f=c.exports.forwardRef(({children:r,title:s="",meta:t,...o},n)=>a(i,{children:[a(x,{children:[e("title",{children:`${s} | LinkSehat`}),t]}),e(d,{ref:n,...o,children:r})]})),l=f;export{l as P};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
import{g as N,a as H,E as D,s as u,b as C,_ as s,G as F,r as B,u as K,e as M,w as pe,f as U,j as r,h as x,i as q,l as ve,d as Ce,I as k,a6 as Ie,U as ye,a5 as Re,J as X,a7 as Le,a8 as Te}from"./index.8db8ac40.js";import{e as xe,L as J,F as W,d as _}from"./TableRow.1afe5125.js";import{K as Q,a as V}from"./KeyboardArrowRight.af84314f.js";function we(e){return H("MuiLinearProgress",e)}const $e=N("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),ua=$e,Be=["className","color","value","valueBuffer","variant"];let w=e=>e,Y,Z,O,ee,ae,te;const A=4,ke=D(Y||(Y=w`
import{g as N,a as H,E as D,s as u,b as C,_ as s,G as F,r as B,u as K,e as M,w as pe,f as U,j as r,h as x,i as q,l as ve,d as Ce,I as k,a6 as Ie,U as ye,a5 as Re,J as X,a7 as Le,a8 as Te}from"./index.52c19e01.js";import{e as xe,L as J,F as W,d as _}from"./TableRow.2979bcea.js";import{K as Q,a as V}from"./KeyboardArrowRight.45cdeaba.js";function we(e){return H("MuiLinearProgress",e)}const $e=N("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),ua=$e,Be=["className","color","value","valueBuffer","variant"];let w=e=>e,Y,Z,O,ee,ae,te;const A=4,ke=D(Y||(Y=w`
0% {
left: -35%;
right: 100%;

View File

@@ -1,2 +1,2 @@
import{c as O,j as b,r as d,a as f,g as T,s as x,_ as i,u as m,e as h,h as R,i as $,b as y,l as D,a9 as k,d as F}from"./index.8db8ac40.js";const me=O(b("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),he=O(b("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),W=d.exports.createContext(),j=W;function J(e){return f("MuiTable",e)}T("MuiTable",["root","stickyHeader"]);const X=["className","component","padding","size","stickyHeader"],q=e=>{const{classes:o,stickyHeader:t}=e;return $({root:["root",t&&"stickyHeader"]},J,o)},E=x("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.stickyHeader&&o.stickyHeader]}})(({theme:e,ownerState:o})=>i({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":i({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},o.stickyHeader&&{borderCollapse:"separate"})),L="table",G=d.exports.forwardRef(function(o,t){const a=m({props:o,name:"MuiTable"}),{className:l,component:s=L,padding:n="normal",size:r="medium",stickyHeader:c=!1}=a,u=h(a,X),p=i({},a,{component:s,padding:n,size:r,stickyHeader:c}),v=q(p),z=d.exports.useMemo(()=>({padding:n,size:r,stickyHeader:c}),[n,r,c]);return b(j.Provider,{value:z,children:b(E,i({as:s,role:s===L?null:"table",ref:t,className:R(v.root,l),ownerState:p},u))})}),Re=G,K=d.exports.createContext(),H=K;function Q(e){return f("MuiTableBody",e)}T("MuiTableBody",["root"]);const V=["className","component"],Y=e=>{const{classes:o}=e;return $({root:["root"]},Q,o)},Z=x("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,o)=>o.root})({display:"table-row-group"}),ee={variant:"body"},S="tbody",oe=d.exports.forwardRef(function(o,t){const a=m({props:o,name:"MuiTableBody"}),{className:l,component:s=S}=a,n=h(a,V),r=i({},a,{component:s}),c=Y(r);return b(H.Provider,{value:ee,children:b(Z,i({className:R(c.root,l),as:s,ref:t,role:s===S?null:"rowgroup",ownerState:r},n))})}),$e=oe;function te(e){return f("MuiTableCell",e)}const ae=T("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),se=ae,ne=["align","className","component","padding","scope","size","sortDirection","variant"],re=e=>{const{classes:o,variant:t,align:a,padding:l,size:s,stickyHeader:n}=e,r={root:["root",t,n&&"stickyHeader",a!=="inherit"&&`align${y(a)}`,l!=="normal"&&`padding${y(l)}`,`size${y(s)}`]};return $(r,te,o)},le=x("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`size${y(t.size)}`],t.padding!=="normal"&&o[`padding${y(t.padding)}`],t.align!=="inherit"&&o[`align${y(t.align)}`],t.stickyHeader&&o.stickyHeader]}})(({theme:e,ownerState:o})=>i({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
import{c as O,j as b,r as d,a as f,g as T,s as x,_ as i,u as m,e as h,h as R,i as $,b as y,l as D,a9 as k,d as F}from"./index.52c19e01.js";const me=O(b("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),he=O(b("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),W=d.exports.createContext(),j=W;function J(e){return f("MuiTable",e)}T("MuiTable",["root","stickyHeader"]);const X=["className","component","padding","size","stickyHeader"],q=e=>{const{classes:o,stickyHeader:t}=e;return $({root:["root",t&&"stickyHeader"]},J,o)},E=x("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.stickyHeader&&o.stickyHeader]}})(({theme:e,ownerState:o})=>i({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":i({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},o.stickyHeader&&{borderCollapse:"separate"})),L="table",G=d.exports.forwardRef(function(o,t){const a=m({props:o,name:"MuiTable"}),{className:l,component:s=L,padding:n="normal",size:r="medium",stickyHeader:c=!1}=a,u=h(a,X),p=i({},a,{component:s,padding:n,size:r,stickyHeader:c}),v=q(p),z=d.exports.useMemo(()=>({padding:n,size:r,stickyHeader:c}),[n,r,c]);return b(j.Provider,{value:z,children:b(E,i({as:s,role:s===L?null:"table",ref:t,className:R(v.root,l),ownerState:p},u))})}),Re=G,K=d.exports.createContext(),H=K;function Q(e){return f("MuiTableBody",e)}T("MuiTableBody",["root"]);const V=["className","component"],Y=e=>{const{classes:o}=e;return $({root:["root"]},Q,o)},Z=x("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,o)=>o.root})({display:"table-row-group"}),ee={variant:"body"},S="tbody",oe=d.exports.forwardRef(function(o,t){const a=m({props:o,name:"MuiTableBody"}),{className:l,component:s=S}=a,n=h(a,V),r=i({},a,{component:s}),c=Y(r);return b(H.Provider,{value:ee,children:b(Z,i({className:R(c.root,l),as:s,ref:t,role:s===S?null:"rowgroup",ownerState:r},n))})}),$e=oe;function te(e){return f("MuiTableCell",e)}const ae=T("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),se=ae,ne=["align","className","component","padding","scope","size","sortDirection","variant"],re=e=>{const{classes:o,variant:t,align:a,padding:l,size:s,stickyHeader:n}=e,r={root:["root",t,n&&"stickyHeader",a!=="inherit"&&`align${y(a)}`,l!=="normal"&&`padding${y(l)}`,`size${y(s)}`]};return $(r,te,o)},le=x("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`size${y(t.size)}`],t.padding!=="normal"&&o[`padding${y(t.padding)}`],t.align!=="inherit"&&o[`align${y(t.align)}`],t.stickyHeader&&o.stickyHeader]}})(({theme:e,ownerState:o})=>i({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?D(k(e.palette.divider,1),.88):F(k(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},o.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},o.variant==="body"&&{color:(e.vars||e).palette.text.primary},o.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},o.size==="small"&&{padding:"6px 16px",[`&.${se.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},o.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},o.padding==="none"&&{padding:0},o.align==="left"&&{textAlign:"left"},o.align==="center"&&{textAlign:"center"},o.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},o.align==="justify"&&{textAlign:"justify"},o.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ie=d.exports.forwardRef(function(o,t){const a=m({props:o,name:"MuiTableCell"}),{align:l="inherit",className:s,component:n,padding:r,scope:c,size:u,sortDirection:p,variant:v}=a,z=h(a,ne),g=d.exports.useContext(j),w=d.exports.useContext(H),N=w&&w.variant==="head";let C;n?C=n:C=N?"th":"td";let M=c;C==="td"?M=void 0:!M&&N&&(M="col");const P=v||w&&w.variant,U=i({},a,{align:l,component:C,padding:r||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:p,stickyHeader:P==="head"&&g&&g.stickyHeader,variant:P}),I=re(U);let B=null;return p&&(B=p==="asc"?"ascending":"descending"),b(le,i({as:C,ref:t,className:R(I.root,s),"aria-sort":B,scope:M,ownerState:U},z))}),we=ie;function ce(e){return f("MuiTableContainer",e)}T("MuiTableContainer",["root"]);const de=["className","component"],pe=e=>{const{classes:o}=e;return $({root:["root"]},ce,o)},be=x("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,o)=>o.root})({width:"100%",overflowX:"auto"}),ue=d.exports.forwardRef(function(o,t){const a=m({props:o,name:"MuiTableContainer"}),{className:l,component:s="div"}=a,n=h(a,de),r=i({},a,{component:s}),c=pe(r);return b(be,i({ref:t,as:s,className:R(c.root,l),ownerState:r},n))}),Me=ue;function ge(e){return f("MuiTableRow",e)}const ye=T("MuiTableRow",["root","selected","hover","head","footer"]),A=ye,ve=["className","component","hover","selected"],Ce=e=>{const{classes:o,selected:t,hover:a,head:l,footer:s}=e;return $({root:["root",t&&"selected",a&&"hover",l&&"head",s&&"footer"]},ge,o)},fe=x("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.head&&o.head,t.footer&&o.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${A.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${A.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:k(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:k(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),_="tr",Te=d.exports.forwardRef(function(o,t){const a=m({props:o,name:"MuiTableRow"}),{className:l,component:s=_,hover:n=!1,selected:r=!1}=a,c=h(a,ve),u=d.exports.useContext(H),p=i({},a,{component:s,hover:n,selected:r,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),v=Ce(p);return b(fe,i({as:s,ref:t,className:R(v.root,l),role:s===_?null:"row",ownerState:p},c))}),ke=Te;export{me as F,he as L,Me as T,Re as a,$e as b,ke as c,we as d,H as e};

View File

@@ -1 +1 @@
import{g as q,a as S,s as N,b as L,_ as l,r as U,u as _,e as B,K as se,M as le,j as c,h as W,i as j,N as ae,J as ne,f as ie,Q as de,U as ue,V as ce,X as pe,O as fe}from"./index.8db8ac40.js";function me(e){return S("MuiFormHelperText",e)}const xe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),M=xe;var $;const Fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],he=e=>{const{classes:o,contained:t,size:s,disabled:n,error:i,filled:d,focused:p,required:u}=e,r={root:["root",n&&"disabled",i&&"error",s&&`size${L(s)}`,t&&"contained",p&&"focused",d&&"filled",u&&"required"]};return j(r,me,o)},be=N("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>l({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${M.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${M.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),Te=U.exports.forwardRef(function(o,t){const s=_({props:o,name:"MuiFormHelperText"}),{children:n,className:i,component:d="p"}=s,p=B(s,Fe),u=se(),r=le({props:s,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),f=l({},s,{component:d,contained:r.variant==="filled"||r.variant==="outlined",variant:r.variant,size:r.size,disabled:r.disabled,error:r.error,filled:r.filled,focused:r.focused,required:r.required}),F=he(f);return c(be,l({as:d,ownerState:f,className:W(F.root,i),ref:t},p,{children:n===" "?$||($=c("span",{className:"notranslate",children:"\u200B"})):n}))}),ve=Te;function Ce(e){return S("MuiTextField",e)}q("MuiTextField",["root"]);const ge=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Re={standard:ce,filled:pe,outlined:fe},we=e=>{const{classes:o}=e;return j({root:["root"]},Ce,o)},ye=N(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ie=U.exports.forwardRef(function(o,t){const s=_({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:i=!1,children:d,className:p,color:u="primary",defaultValue:r,disabled:f=!1,error:F=!1,FormHelperTextProps:V,fullWidth:T=!1,helperText:v,id:O,InputLabelProps:h,inputProps:k,InputProps:A,inputRef:E,label:m,maxRows:J,minRows:K,multiline:w=!1,name:Q,onBlur:X,onChange:D,onFocus:G,placeholder:Y,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:I,variant:b="outlined"}=s,oe=B(s,ge),H=l({},s,{autoFocus:i,color:u,disabled:f,error:F,fullWidth:T,multiline:w,required:y,select:C,variant:b}),re=we(H),x={};b==="outlined"&&(h&&typeof h.shrink<"u"&&(x.notched=h.shrink),x.label=m),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const a=ne(O),R=v&&a?`${a}-helper-text`:void 0,P=m&&a?`${a}-label`:void 0,te=Re[b],z=c(te,l({"aria-describedby":R,autoComplete:n,autoFocus:i,defaultValue:r,fullWidth:T,multiline:w,name:Q,rows:Z,maxRows:J,minRows:K,type:ee,value:I,id:a,inputRef:E,onBlur:X,onChange:D,onFocus:G,placeholder:Y,inputProps:k},x,A));return ie(ye,l({className:W(re.root,p),disabled:f,error:F,fullWidth:T,ref:t,required:y,color:u,variant:b,ownerState:H},oe,{children:[m!=null&&m!==""&&c(de,l({htmlFor:a,id:P},h,{children:m})),C?c(ue,l({"aria-describedby":R,id:a,labelId:P,value:I,input:z},g,{children:d})):z,v&&c(ve,l({id:R},V,{children:v}))]}))}),Pe=Ie;export{Pe as T};
import{g as q,a as S,s as N,b as L,_ as l,r as U,u as _,e as B,K as se,M as le,j as c,h as W,i as j,N as ae,J as ne,f as ie,Q as de,U as ue,V as ce,X as pe,O as fe}from"./index.52c19e01.js";function me(e){return S("MuiFormHelperText",e)}const xe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),M=xe;var $;const Fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],he=e=>{const{classes:o,contained:t,size:s,disabled:n,error:i,filled:d,focused:p,required:u}=e,r={root:["root",n&&"disabled",i&&"error",s&&`size${L(s)}`,t&&"contained",p&&"focused",d&&"filled",u&&"required"]};return j(r,me,o)},be=N("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>l({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${M.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${M.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),Te=U.exports.forwardRef(function(o,t){const s=_({props:o,name:"MuiFormHelperText"}),{children:n,className:i,component:d="p"}=s,p=B(s,Fe),u=se(),r=le({props:s,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),f=l({},s,{component:d,contained:r.variant==="filled"||r.variant==="outlined",variant:r.variant,size:r.size,disabled:r.disabled,error:r.error,filled:r.filled,focused:r.focused,required:r.required}),F=he(f);return c(be,l({as:d,ownerState:f,className:W(F.root,i),ref:t},p,{children:n===" "?$||($=c("span",{className:"notranslate",children:"\u200B"})):n}))}),ve=Te;function Ce(e){return S("MuiTextField",e)}q("MuiTextField",["root"]);const ge=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Re={standard:ce,filled:pe,outlined:fe},we=e=>{const{classes:o}=e;return j({root:["root"]},Ce,o)},ye=N(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Ie=U.exports.forwardRef(function(o,t){const s=_({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:i=!1,children:d,className:p,color:u="primary",defaultValue:r,disabled:f=!1,error:F=!1,FormHelperTextProps:V,fullWidth:T=!1,helperText:v,id:O,InputLabelProps:h,inputProps:k,InputProps:A,inputRef:E,label:m,maxRows:J,minRows:K,multiline:w=!1,name:Q,onBlur:X,onChange:D,onFocus:G,placeholder:Y,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:I,variant:b="outlined"}=s,oe=B(s,ge),H=l({},s,{autoFocus:i,color:u,disabled:f,error:F,fullWidth:T,multiline:w,required:y,select:C,variant:b}),re=we(H),x={};b==="outlined"&&(h&&typeof h.shrink<"u"&&(x.notched=h.shrink),x.label=m),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const a=ne(O),R=v&&a?`${a}-helper-text`:void 0,P=m&&a?`${a}-label`:void 0,te=Re[b],z=c(te,l({"aria-describedby":R,autoComplete:n,autoFocus:i,defaultValue:r,fullWidth:T,multiline:w,name:Q,rows:Z,maxRows:J,minRows:K,type:ee,value:I,id:a,inputRef:E,onBlur:X,onChange:D,onFocus:G,placeholder:Y,inputProps:k},x,A));return ie(ye,l({className:W(re.root,p),disabled:f,error:F,fullWidth:T,ref:t,required:y,color:u,variant:b,ownerState:H},oe,{children:[m!=null&&m!==""&&c(de,l({htmlFor:a,id:P},h,{children:m})),C?c(ue,l({"aria-describedby":R,id:a,labelId:P,value:I,input:z},g,{children:d})):z,v&&c(ve,l({id:R},V,{children:v}))]}))}),Pe=Ie;export{Pe as T};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
import{A as O}from"./index.8db8ac40.js";var E={exports:{}};/*! @preserve
import{A as O}from"./index.52c19e01.js";var E={exports:{}};/*! @preserve
* numeral.js
* version : 2.0.6
* author : Adam Draper

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{ah as u,b as s,ai as c,c as i,aj as l,ak as p,al as f,am as d,an as m,ao as _,J as v,ad as g,ap as b,aq as I,ar as q,as as o,at as C}from"./index.8db8ac40.js";function S(e,a){return()=>null}function E(e,a){return()=>null}function N(e,a,r,h,F){return null}const x={configure:e=>{u.configure(e)}},y=Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:x,capitalize:s,createChainedFunction:c,createSvgIcon:i,debounce:l,deprecatedPropType:S,isMuiElement:p,ownerDocument:f,ownerWindow:d,requirePropFactory:E,setRef:m,unstable_useEnhancedEffect:_,unstable_useId:v,unsupportedProp:N,useControlled:g,useEventCallback:b,useForkRef:I,useIsFocusVisible:q},Symbol.toStringTag,{value:"Module"}));var P={exports:{}};(function(e){function a(r){return r&&r.__esModule?r:{default:r}}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(P);var t={};const R=o(y);var n;function $(){return n||(n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a.createSvgIcon}});var a=R}(t)),t}const O=o(C);export{O as a,P as i,$ as r};
import{ah as u,b as s,ai as c,c as i,aj as l,ak as p,al as f,am as d,an as m,ao as _,J as v,ad as g,ap as b,aq as I,ar as q,as as o,at as C}from"./index.52c19e01.js";function S(e,a){return()=>null}function E(e,a){return()=>null}function N(e,a,r,h,F){return null}const x={configure:e=>{u.configure(e)}},y=Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:x,capitalize:s,createChainedFunction:c,createSvgIcon:i,debounce:l,deprecatedPropType:S,isMuiElement:p,ownerDocument:f,ownerWindow:d,requirePropFactory:E,setRef:m,unstable_useEnhancedEffect:_,unstable_useId:v,unsupportedProp:N,useControlled:g,useEventCallback:b,useForkRef:I,useIsFocusVisible:q},Symbol.toStringTag,{value:"Module"}));var P={exports:{}};(function(e){function a(r){return r&&r.__esModule?r:{default:r}}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(P);var t={};const R=o(y);var n;function $(){return n||(n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a.createSvgIcon}});var a=R}(t)),t}const O=o(C);export{O as a,P as i,$ as r};

View File

@@ -27,7 +27,7 @@
content="The starting point for your next project with Minimal UI Kit, built on the newest version of Material-UI ©, ready to be customized to your style" />
<meta name="keywords" content="react,material,kit,application,dashboard,admin,template" />
<meta name="author" content="Minimal UI Kit" />
<script type="module" crossorigin src="/assets/index.8db8ac40.js"></script>
<script type="module" crossorigin src="/assets/index.52c19e01.js"></script>
<link rel="stylesheet" href="/assets/index.d13d3ea4.css">
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>

View File

@@ -1 +1 @@
if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didnt register its module`);return s})));self.define=(i,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>l(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(i.map((s=>a[s]||o(s)))).then((s=>(n(...s),u)))}}define(["./workbox-e0782b83"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/Add.dd2aa78f.js",revision:null},{url:"assets/Box.e56e7e54.js",revision:null},{url:"assets/Card.ce7d7ff4.js",revision:null},{url:"assets/DialogDetailClaim.57338861.js",revision:null},{url:"assets/DialogTitle.5ba08d0e.js",revision:null},{url:"assets/formatNumber.188b6a51.js",revision:null},{url:"assets/Grid.1894d4b6.js",revision:null},{url:"assets/HeaderBreadcrumbs.7da9a177.js",revision:null},{url:"assets/Index.16f140d9.js",revision:null},{url:"assets/index.8db8ac40.js",revision:null},{url:"assets/Index.a1bf55bf.js",revision:null},{url:"assets/index.d13d3ea4.css",revision:null},{url:"assets/Index.f3ec1b05.js",revision:null},{url:"assets/Index.f46415d6.js",revision:null},{url:"assets/jsx-runtime_commonjs-proxy.2c8a0f42.js",revision:null},{url:"assets/KeyboardArrowRight.af84314f.js",revision:null},{url:"assets/LoadingButton.5830b2b7.js",revision:null},{url:"assets/Login.77515f76.js",revision:null},{url:"assets/MuiDialog.5738fe22.js",revision:null},{url:"assets/Page.521493b5.js",revision:null},{url:"assets/Page404.08caea37.js",revision:null},{url:"assets/RHFTextField.595782a5.css",revision:null},{url:"assets/RHFTextField.d883cc4b.js",revision:null},{url:"assets/ServiceMonitoring.d6120f1b.js",revision:null},{url:"assets/Show.c6dbe9c0.js",revision:null},{url:"assets/Table.01483ef0.js",revision:null},{url:"assets/TablePagination.ab70ef64.js",revision:null},{url:"assets/TableRow.1afe5125.js",revision:null},{url:"assets/Tabs.97838559.js",revision:null},{url:"assets/TextField.bb92a059.js",revision:null},{url:"assets/UserProfile.2dd4af0f.js",revision:null},{url:"fonts/index.css",revision:"8711e169f3dc54f34d839f18d7acef21"},{url:"index.html",revision:"3bed0f193f8f353a0337bdf142b0b540"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"ced57fe94e88ec3187bcd0a36e2e178f"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));
if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didnt register its module`);return s})));self.define=(i,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const a=s=>l(s,r),o={module:{uri:r},exports:u,require:a};e[r]=Promise.all(i.map((s=>o[s]||a(s)))).then((s=>(n(...s),u)))}}define(["./workbox-e0782b83"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/Add.d1ec42b9.js",revision:null},{url:"assets/Box.bdfd146f.js",revision:null},{url:"assets/Card.6cad65b0.js",revision:null},{url:"assets/DialogDetailClaim.b706aae1.js",revision:null},{url:"assets/DialogTitle.050479dc.js",revision:null},{url:"assets/formatNumber.710686f0.js",revision:null},{url:"assets/Grid.35ade0df.js",revision:null},{url:"assets/HeaderBreadcrumbs.61d3d87e.js",revision:null},{url:"assets/index.52c19e01.js",revision:null},{url:"assets/Index.593a9471.js",revision:null},{url:"assets/Index.5e14d740.js",revision:null},{url:"assets/index.d13d3ea4.css",revision:null},{url:"assets/Index.d959a4ba.js",revision:null},{url:"assets/Index.ea63abbe.js",revision:null},{url:"assets/jsx-runtime_commonjs-proxy.7a5519c3.js",revision:null},{url:"assets/KeyboardArrowRight.45cdeaba.js",revision:null},{url:"assets/LoadingButton.a5af7c36.js",revision:null},{url:"assets/Login.f59b72e9.js",revision:null},{url:"assets/MuiDialog.02c58ffb.js",revision:null},{url:"assets/Page.2d2aae4a.js",revision:null},{url:"assets/Page404.fdc10790.js",revision:null},{url:"assets/RHFTextField.595782a5.css",revision:null},{url:"assets/RHFTextField.59d9d7f6.js",revision:null},{url:"assets/ServiceMonitoring.737fc9c6.js",revision:null},{url:"assets/Show.13e59731.js",revision:null},{url:"assets/Table.4e5e7a7b.js",revision:null},{url:"assets/TablePagination.9f676df5.js",revision:null},{url:"assets/TableRow.2979bcea.js",revision:null},{url:"assets/Tabs.8cb1735e.js",revision:null},{url:"assets/TextField.ca0ae25e.js",revision:null},{url:"assets/UserProfile.7427e9a4.js",revision:null},{url:"fonts/index.css",revision:"8711e169f3dc54f34d839f18d7acef21"},{url:"index.html",revision:"d80e4e0482799a9b623cb7c6478479d9"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"ced57fe94e88ec3187bcd0a36e2e178f"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));

View File

@@ -1 +0,0 @@
function u(o,e,t,p,n){const r=n||e;return typeof o[e]<"u"?new Error(`The prop \`${r}\` is not supported. Please remove it.`):null}export{u};

View File

@@ -24,7 +24,7 @@
content="The starting point for your next project with Minimal UI Kit, built on the newest version of Material-UI ©, ready to be customized to your style" />
<meta name="keywords" content="react,material,kit,application,dashboard,admin,template" />
<meta name="author" content="Minimal UI Kit" />
<script type="module" crossorigin src="/assets/index.921152bb.js"></script>
<script type="module" crossorigin src="/assets/index.49b82ffa.js"></script>
<link rel="stylesheet" href="/assets/index.c91e36b5.css">
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>

File diff suppressed because one or more lines are too long

View File

@@ -24,7 +24,11 @@
content="The starting point for your next project with Minimal UI Kit, built on the newest version of Material-UI ©, ready to be customized to your style" />
<meta name="keywords" content="react,material,kit,application,dashboard,admin,template" />
<meta name="author" content="Minimal UI Kit" />
<<<<<<< HEAD
<script type="module" crossorigin src="/assets/index.9b396686.js"></script>
=======
<script type="module" crossorigin src="/assets/index.da589e84.js"></script>
>>>>>>> a54708abb5d46d7d7319730306a528d33d910895
<link rel="stylesheet" href="/assets/index.c91e36b5.css">
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{l as u,m as x,s as f,P as C,r as m,n as y,_ as h,p as i,q as b,t as v,v as s,w,x as T}from"./index.8bbf4759.js";function g(e){return u("MuiCard",e)}x("MuiCard",["root"]);const j=["className","raised"],M=e=>{const{classes:o}=e;return T({root:["root"]},g,o)},P=f(C,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})(()=>({overflow:"hidden"})),l=m.exports.forwardRef(function(o,t){const r=y({props:o,name:"MuiCard"}),{className:p,raised:a=!1}=r,c=h(r,j),n=i({},r,{raised:a}),d=M(n);return b(P,i({className:v(d.root,p),elevation:a?8:void 0,ref:t,ownerState:n},c))});l.propTypes={children:s.exports.node,classes:s.exports.object,className:s.exports.string,raised:w(s.exports.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:s.exports.oneOfType([s.exports.arrayOf(s.exports.oneOfType([s.exports.func,s.exports.object,s.exports.bool])),s.exports.func,s.exports.object])};const N=l;export{N as C};

View File

@@ -1 +0,0 @@
import{g as u,a as x,s as f,Y as C,r as m,n as y,b,_ as i,d as h,e as g,p as s,Z as v,i as w}from"./index.93207066.js";function T(e){return u("MuiCard",e)}x("MuiCard",["root"]);const j=["className","raised"],M=e=>{const{classes:o}=e;return w({root:["root"]},T,o)},U=f(C,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})(()=>({overflow:"hidden"})),p=m.exports.forwardRef(function(o,t){const r=y({props:o,name:"MuiCard"}),{className:c,raised:a=!1}=r,l=b(r,j),n=i({},r,{raised:a}),d=M(n);return h(U,i({className:g(d.root,c),elevation:a?8:void 0,ref:t,ownerState:n},l))});p.propTypes={children:s.exports.node,classes:s.exports.object,className:s.exports.string,raised:v(s.exports.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:s.exports.oneOfType([s.exports.arrayOf(s.exports.oneOfType([s.exports.func,s.exports.object,s.exports.bool])),s.exports.func,s.exports.object])};const P=p;export{P as C};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{b as P,a as S,r as N,c as y,e as F,j as e,F as k,S as I,A as B,T as a,R as h,I as x,f as p,g as u,h as R,z as A,o as C,H as K,D as T,C as _,B as b,E as H,G as L,s as z}from"./index.8bbf4759.js";import{P as M}from"./paths.3971dbe6.js";import{P as W}from"./Page.70299ecd.js";var s="/var/www/aso.linksehat.dev/frontend/hospital-portal/src/sections/auth/forget-password/ForgetPasswordForm.tsx";function G({token:o}){const t=P(),n=S(),[l,v]=N.exports.useState(!1),[m,w]=N.exports.useState(!1),g=y().shape({}),d=F({resolver:C(g)}),{handleSubmit:j,setError:D,formState:{errors:c,isSubmitting:E}}=d,V=async f=>{try{await A.post("/forget-password",{...f,token:o}),console.log(f),await new Promise(i=>setTimeout(i,500)),t.current&&n("/auth/login",{replace:!0})}catch(i){console.log(i.response.data),t.current&&D("afterSubmit",{...i,message:i.response.data.message})}};return e.exports.jsxDEV(k,{methods:d,onSubmit:j(V),children:e.exports.jsxDEV(I,{spacing:3,children:[!!c.afterSubmit&&e.exports.jsxDEV(B,{severity:"error",children:c.afterSubmit.message},void 0,!1,{fileName:s,lineNumber:70,columnNumber:34},this),e.exports.jsxDEV(a,{children:"Kata Sandi Baru"},void 0,!1,{fileName:s,lineNumber:71,columnNumber:9},this),e.exports.jsxDEV(h,{name:"new_password",label:"Kata Sandi Baru",type:l?"text":"password",InputProps:{endAdornment:e.exports.jsxDEV(x,{position:"end",children:e.exports.jsxDEV(p,{onClick:()=>v(!l),edge:"end",children:e.exports.jsxDEV(u,{icon:l?"eva:eye-fill":"eva:eye-off-fill"},void 0,!1,{fileName:s,lineNumber:80,columnNumber:19},this)},void 0,!1,{fileName:s,lineNumber:79,columnNumber:17},this)},void 0,!1,{fileName:s,lineNumber:78,columnNumber:15},this)}},void 0,!1,{fileName:s,lineNumber:72,columnNumber:9},this),e.exports.jsxDEV(a,{children:"Konfirmasi Kata Sandi "},void 0,!1,{fileName:s,lineNumber:86,columnNumber:9},this),e.exports.jsxDEV(h,{name:"confirm_new_password",label:"Konfirmasi Kata Sandi",type:m?"text":"password",InputProps:{endAdornment:e.exports.jsxDEV(x,{position:"end",children:e.exports.jsxDEV(p,{onClick:()=>w(!m),edge:"end",children:e.exports.jsxDEV(u,{icon:m?"eva:eye-fill":"eva:eye-off-fill"},void 0,!1,{fileName:s,lineNumber:98,columnNumber:19},this)},void 0,!1,{fileName:s,lineNumber:94,columnNumber:17},this)},void 0,!1,{fileName:s,lineNumber:93,columnNumber:15},this)}},void 0,!1,{fileName:s,lineNumber:87,columnNumber:9},this),e.exports.jsxDEV(R,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:E,children:"Reset Password"},void 0,!1,{fileName:s,lineNumber:105,columnNumber:9},this)]},void 0,!0,{fileName:s,lineNumber:69,columnNumber:7},this)},void 0,!1,{fileName:s,lineNumber:68,columnNumber:5},this)}var r="/var/www/aso.linksehat.dev/frontend/hospital-portal/src/pages/auth/ForgetPassword.tsx";const O=z("div")(({theme:o})=>({display:"flex",height:"100%",alignItems:"center",padding:o.spacing(12,0)}));function J(){const[o,t]=K(),n=o.get("token");return e.exports.jsxDEV(W,{title:"Verify",sx:{height:1},children:e.exports.jsxDEV(O,{children:[e.exports.jsxDEV(T,{},void 0,!1,{fileName:r,lineNumber:34,columnNumber:9},this),e.exports.jsxDEV(_,{children:e.exports.jsxDEV(b,{sx:{maxWidth:480,mx:"auto"},children:[e.exports.jsxDEV(H,{size:"small",component:L,to:M.login,startIcon:e.exports.jsxDEV(u,{icon:"eva:arrow-ios-back-fill",width:20,height:20},void 0,!1,{fileName:r,lineNumber:42,columnNumber:26},this),sx:{mb:3},children:"Back"},void 0,!1,{fileName:r,lineNumber:38,columnNumber:13},this),e.exports.jsxDEV(a,{variant:"h3",paragraph:!0},void 0,!1,{fileName:r,lineNumber:48,columnNumber:13},this),e.exports.jsxDEV(a,{sx:{color:"text.secondary"},children:"Please enter your new password."},void 0,!1,{fileName:r,lineNumber:49,columnNumber:13},this),e.exports.jsxDEV(b,{sx:{mt:5,mb:3},children:e.exports.jsxDEV(G,{token:n},void 0,!1,{fileName:r,lineNumber:54,columnNumber:15},this)},void 0,!1,{fileName:r,lineNumber:53,columnNumber:13},this)]},void 0,!0,{fileName:r,lineNumber:37,columnNumber:11},this)},void 0,!1,{fileName:r,lineNumber:36,columnNumber:9},this)]},void 0,!0,{fileName:r,lineNumber:33,columnNumber:7},this)},void 0,!1,{fileName:r,lineNumber:32,columnNumber:5},this)}export{J as default};

View File

@@ -1 +0,0 @@
import{z as y,y as P,r as N,A as S,E as F,w as e,F as I,S as k,G as R,T as i,R as x,I as h,H as p,J as u,M as A,a0 as B,N as K,a3 as T,a1 as _,Q as C,U as b,a2 as H,K as L,s as z}from"./index.93207066.js";import{P as M}from"./paths.3971dbe6.js";import{P as U}from"./Page.54724e9a.js";var s="/var/www/aso/frontend/hospital-portal/src/sections/auth/forget-password/ForgetPasswordForm.tsx";function W({token:o}){const t=y(),n=P(),[l,v]=N.exports.useState(!1),[m,w]=N.exports.useState(!1),g=S().shape({}),d=F({resolver:K(g)}),{handleSubmit:j,setError:E,formState:{errors:c,isSubmitting:D}}=d,V=async f=>{try{await B.post("/forget-password",{...f,token:o}),console.log(f),await new Promise(a=>setTimeout(a,500)),t.current&&n("/auth/login",{replace:!0})}catch(a){console.log(a.response.data),t.current&&E("afterSubmit",{...a,message:a.response.data.message})}};return e.exports.jsxDEV(I,{methods:d,onSubmit:j(V),children:e.exports.jsxDEV(k,{spacing:3,children:[!!c.afterSubmit&&e.exports.jsxDEV(R,{severity:"error",children:c.afterSubmit.message},void 0,!1,{fileName:s,lineNumber:70,columnNumber:34},this),e.exports.jsxDEV(i,{children:"Kata Sandi Baru"},void 0,!1,{fileName:s,lineNumber:71,columnNumber:9},this),e.exports.jsxDEV(x,{name:"new_password",label:"Kata Sandi Baru",type:l?"text":"password",InputProps:{endAdornment:e.exports.jsxDEV(h,{position:"end",children:e.exports.jsxDEV(p,{onClick:()=>v(!l),edge:"end",children:e.exports.jsxDEV(u,{icon:l?"eva:eye-fill":"eva:eye-off-fill"},void 0,!1,{fileName:s,lineNumber:80,columnNumber:19},this)},void 0,!1,{fileName:s,lineNumber:79,columnNumber:17},this)},void 0,!1,{fileName:s,lineNumber:78,columnNumber:15},this)}},void 0,!1,{fileName:s,lineNumber:72,columnNumber:9},this),e.exports.jsxDEV(i,{children:"Konfirmasi Kata Sandi "},void 0,!1,{fileName:s,lineNumber:86,columnNumber:9},this),e.exports.jsxDEV(x,{name:"confirm_new_password",label:"Konfirmasi Kata Sandi",type:m?"text":"password",InputProps:{endAdornment:e.exports.jsxDEV(h,{position:"end",children:e.exports.jsxDEV(p,{onClick:()=>w(!m),edge:"end",children:e.exports.jsxDEV(u,{icon:m?"eva:eye-fill":"eva:eye-off-fill"},void 0,!1,{fileName:s,lineNumber:98,columnNumber:19},this)},void 0,!1,{fileName:s,lineNumber:94,columnNumber:17},this)},void 0,!1,{fileName:s,lineNumber:93,columnNumber:15},this)}},void 0,!1,{fileName:s,lineNumber:87,columnNumber:9},this),e.exports.jsxDEV(A,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:D,children:"Reset Password"},void 0,!1,{fileName:s,lineNumber:105,columnNumber:9},this)]},void 0,!0,{fileName:s,lineNumber:69,columnNumber:7},this)},void 0,!1,{fileName:s,lineNumber:68,columnNumber:5},this)}var r="/var/www/aso/frontend/hospital-portal/src/pages/auth/ForgetPassword.tsx";const G=z("div")(({theme:o})=>({display:"flex",height:"100%",alignItems:"center",padding:o.spacing(12,0)}));function $(){const[o,t]=T(),n=o.get("token");return e.exports.jsxDEV(U,{title:"Verify",sx:{height:1},children:e.exports.jsxDEV(G,{children:[e.exports.jsxDEV(_,{},void 0,!1,{fileName:r,lineNumber:34,columnNumber:9},this),e.exports.jsxDEV(C,{children:e.exports.jsxDEV(b,{sx:{maxWidth:480,mx:"auto"},children:[e.exports.jsxDEV(H,{size:"small",component:L,to:M.login,startIcon:e.exports.jsxDEV(u,{icon:"eva:arrow-ios-back-fill",width:20,height:20},void 0,!1,{fileName:r,lineNumber:42,columnNumber:26},this),sx:{mb:3},children:"Back"},void 0,!1,{fileName:r,lineNumber:38,columnNumber:13},this),e.exports.jsxDEV(i,{variant:"h3",paragraph:!0},void 0,!1,{fileName:r,lineNumber:48,columnNumber:13},this),e.exports.jsxDEV(i,{sx:{color:"text.secondary"},children:"Please enter your new password."},void 0,!1,{fileName:r,lineNumber:49,columnNumber:13},this),e.exports.jsxDEV(b,{sx:{mt:5,mb:3},children:e.exports.jsxDEV(W,{token:n},void 0,!1,{fileName:r,lineNumber:54,columnNumber:15},this)},void 0,!1,{fileName:r,lineNumber:53,columnNumber:13},this)]},void 0,!0,{fileName:r,lineNumber:37,columnNumber:11},this)},void 0,!1,{fileName:r,lineNumber:36,columnNumber:9},this)]},void 0,!0,{fileName:r,lineNumber:33,columnNumber:7},this)},void 0,!1,{fileName:r,lineNumber:32,columnNumber:5},this)}export{$ as default};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{r as n,L as N,u as b,a as I,b as F,c as k,d as c,e as P,j as e,F as R,S as l,A as x,R as f,I as A,f as B,g as q,h as H,o as T,i as p,C as W,k as z,B as M,T as h,s as o}from"./index.8bbf4759.js";import{P as _}from"./Page.70299ecd.js";import{C as $}from"./Card.11ab9935.js";var i="/var/www/aso.linksehat.dev/frontend/hospital-portal/src/sections/auth/login/LoginForm.tsx";function G(){const{localeData:s}=n.exports.useContext(N),{login:g}=b(),v=I(),j=F(),[a,w]=n.exports.useState(!1),D=k().shape({email:c().email("Format email tidak valid").required("Email harus diisi"),password:c().required("Password harus diisi")}),y={email:"hospitaladmin@gmail.com",password:"password",remember:!0},m=P({resolver:T(D),defaultValues:y}),{reset:E,setError:V,handleSubmit:S,formState:{errors:u,isSubmitting:L}}=m,C=async d=>{try{const r=await g(d.email,d.password);v("/dashboard")}catch(r){console.error(r),E(),j.current&&V("afterSubmit",{...r,message:r.data.message})}};return e.exports.jsxDEV(R,{methods:m,onSubmit:S(C),children:[e.exports.jsxDEV(l,{spacing:3,children:[e.exports.jsxDEV(x,{severity:"info",children:s.infoLogin},void 0,!1,{fileName:i,lineNumber:80,columnNumber:9},this),!!u.afterSubmit&&e.exports.jsxDEV(x,{severity:"error",children:u.afterSubmit.data.meta.message},void 0,!1,{fileName:i,lineNumber:81,columnNumber:34},this),e.exports.jsxDEV(f,{name:"email",label:"Email",required:!0},void 0,!1,{fileName:i,lineNumber:83,columnNumber:9},this),e.exports.jsxDEV(f,{name:"password",label:"Password",type:a?"text":"password",InputProps:{endAdornment:e.exports.jsxDEV(A,{position:"end",children:e.exports.jsxDEV(B,{onClick:()=>w(!a),edge:"end",children:e.exports.jsxDEV(q,{icon:a?"eva:eye-fill":"eva:eye-off-fill"},void 0,!1,{fileName:i,lineNumber:93,columnNumber:19},this)},void 0,!1,{fileName:i,lineNumber:92,columnNumber:17},this)},void 0,!1,{fileName:i,lineNumber:91,columnNumber:15},this)},required:!0},void 0,!1,{fileName:i,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:i,lineNumber:79,columnNumber:7},this),e.exports.jsxDEV(l,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{my:2}},void 0,!1,{fileName:i,lineNumber:102,columnNumber:7},this),e.exports.jsxDEV(H,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:L,sx:{marginTop:2},children:"Login"},void 0,!1,{fileName:i,lineNumber:109,columnNumber:7},this)]},void 0,!0,{fileName:i,lineNumber:78,columnNumber:5},this)}var t="/var/www/aso.linksehat.dev/frontend/hospital-portal/src/pages/auth/Login.tsx";const J=o("div")(({theme:s})=>({[s.breakpoints.up("md")]:{display:"flex"}})),K=o("header")(({theme:s})=>({top:0,zIndex:9,lineHeight:0,width:"100%",display:"flex",alignItems:"center",position:"absolute",padding:s.spacing(3),justifyContent:"space-between",[s.breakpoints.up("md")]:{alignItems:"flex-start",padding:s.spacing(7,5,0,7)}}));o($)(({theme:s})=>({width:"100%",maxWidth:464,display:"flex",flexDirection:"column",justifyContent:"center",margin:s.spacing(2,0,2,2)}));const O=o("div")(({theme:s})=>({maxWidth:480,margin:"auto",display:"flex",minHeight:"100vh",flexDirection:"column",justifyContent:"center",padding:s.spacing(12,0)}));function Y(){const{localeData:s}=n.exports.useContext(N);return b(),p("up","sm"),p("up","md"),e.exports.jsxDEV(_,{title:"Login",children:e.exports.jsxDEV(J,{children:[e.exports.jsxDEV(K,{},void 0,!1,{fileName:t,lineNumber:85,columnNumber:17},this),e.exports.jsxDEV(W,{maxWidth:"sm",children:e.exports.jsxDEV(O,{children:[e.exports.jsxDEV(l,{direction:"row",alignItems:"center",sx:{mb:5},children:[e.exports.jsxDEV(z,{sx:{width:90,height:90}},void 0,!1,{fileName:t,lineNumber:127,columnNumber:29},this),e.exports.jsxDEV(M,{sx:{flexGrow:1},children:[e.exports.jsxDEV(h,{variant:"h4",gutterBottom:!0,children:s.txtLogin1},void 0,!1,{fileName:t,lineNumber:129,columnNumber:33},this),e.exports.jsxDEV(h,{variant:"body1",sx:{color:"text.secondary"},children:s.txtLogin2},void 0,!1,{fileName:t,lineNumber:132,columnNumber:33},this)]},void 0,!0,{fileName:t,lineNumber:128,columnNumber:29},this)]},void 0,!0,{fileName:t,lineNumber:122,columnNumber:25},this),e.exports.jsxDEV(G,{},void 0,!1,{fileName:t,lineNumber:151,columnNumber:25},this)]},void 0,!0,{fileName:t,lineNumber:121,columnNumber:21},this)},void 0,!1,{fileName:t,lineNumber:120,columnNumber:17},this)]},void 0,!0,{fileName:t,lineNumber:84,columnNumber:13},this)},void 0,!1,{fileName:t,lineNumber:83,columnNumber:9},this)}export{Y as default};

View File

@@ -1 +0,0 @@
import{r as l,w as e,X as m,U as n}from"./index.93207066.js";var r="/var/www/aso/frontend/hospital-portal/src/components/Page.tsx";const x=l.exports.forwardRef(({children:o,title:s="",meta:a,...t},i)=>e.exports.jsxDEV(e.exports.Fragment,{children:[e.exports.jsxDEV(m,{children:[e.exports.jsxDEV("title",{children:`${s} | LinkSehat`},void 0,!1,{fileName:r,lineNumber:17,columnNumber:7},void 0),a]},void 0,!0,{fileName:r,lineNumber:16,columnNumber:5},void 0),e.exports.jsxDEV(n,{ref:i,...t,children:o},void 0,!1,{fileName:r,lineNumber:21,columnNumber:5},void 0)]},void 0,!0)),u=x;export{u as P};

View File

@@ -0,0 +1 @@
import{r as l,j as e,W as n,B as m}from"./index.8bbf4759.js";var r="/var/www/aso.linksehat.dev/frontend/hospital-portal/src/components/Page.tsx";const x=l.exports.forwardRef(({children:o,title:s="",meta:t,...a},i)=>e.exports.jsxDEV(e.exports.Fragment,{children:[e.exports.jsxDEV(n,{children:[e.exports.jsxDEV("title",{children:`${s} | LinkSehat`},void 0,!1,{fileName:r,lineNumber:17,columnNumber:7},void 0),t]},void 0,!0,{fileName:r,lineNumber:16,columnNumber:5},void 0),e.exports.jsxDEV(m,{ref:i,...a,children:o},void 0,!1,{fileName:r,lineNumber:21,columnNumber:5},void 0)]},void 0,!0)),u=x;export{u as P};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,18 @@
<svg height="20" viewBox="0 0 28 20" width="28" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs><rect id="a" height="20" rx="3" width="28"/>
<mask id="b" fill="#fff">
<use fill="#fff" fill-rule="evenodd" xlink:href="#a"/>
</mask>
</defs>
<g fill="none" fill-rule="evenodd">
<use fill="#0a17a7" xlink:href="#a"/>
<path d="m29.2824692-1.91644623 1.4911811 2.21076686-9.4483006 6.37223314 6.6746503.0001129v6.66666663l-6.6746503-.0007795 9.4483006 6.3731256-1.4911811 2.2107668-11.9501195-8.0608924.0009836 7.4777795h-6.6666666l-.000317-7.4777795-11.9488189 8.0608924-1.49118107-2.2107668 9.448-6.3731256-6.67434973.0007795v-6.66666663l6.67434973-.0001129-9.448-6.37223314 1.49118107-2.21076686 11.9488189 8.06.000317-7.4768871h6.6666666l-.0009836 7.4768871z" fill="#fff" mask="url(#b)"/>
<g stroke="#db1f35" stroke-linecap="round" stroke-width=".667">
<path d="m18.668 6.332 12.665-8.332" mask="url(#b)"/>
<path d="m20.013 21.35 11.354-7.652" mask="url(#b)" transform="matrix(1 0 0 -1 0 35.048)"/>
<path d="m8.006 6.31-11.843-7.981" mask="url(#b)"/>
<path d="m9.29 22.31-13.127-8.705" mask="url(#b)" transform="matrix(1 0 0 -1 0 35.915)"/>
</g>
<path d="m0 12h12v8h4v-8h12v-4h-12v-8h-4v8h-12z" fill="#e6273e" mask="url(#b)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,9 @@
<svg height="20" viewBox="0 0 28 20" width="28" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<rect id="a" height="10" rx="0" width="28"/>
</defs>
<g fill="none" fill-rule="evenodd">
<use fill="#D82028" xlink:href="#a"/>
<use fill="#FFF" xlink:href="#a" y="10"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 334 B

View File

@@ -0,0 +1,15 @@
{
"greeting": "Hello",
"buttonText": "Click Me",
"infoLogin": "Enter the registered account",
"txtLogin1" : "Sign in to Hospital Portal",
"txtLogin2" : "Enter your details below",
"txtCardSearchMember1" : "Guarantee Submission",
"txtCardSearchMember2" : "Find Member",
"txtCardSearchMember3" : "Date Birth",
"txtCardSearchMember4" : "Member ID",
"txtCardSearchMember5" : "Member",
"txtDialogMember1" : "Benefit Summary",
"txtDialogMember2" : "Request LOG",
"txtDialogMember3" : "Member Detail"
}

View File

@@ -0,0 +1,18 @@
<svg height="20" viewBox="0 0 28 20" width="28" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs><rect id="a" height="20" rx="3" width="28"/>
<mask id="b" fill="#fff">
<use fill="#fff" fill-rule="evenodd" xlink:href="#a"/>
</mask>
</defs>
<g fill="none" fill-rule="evenodd">
<use fill="#0a17a7" xlink:href="#a"/>
<path d="m29.2824692-1.91644623 1.4911811 2.21076686-9.4483006 6.37223314 6.6746503.0001129v6.66666663l-6.6746503-.0007795 9.4483006 6.3731256-1.4911811 2.2107668-11.9501195-8.0608924.0009836 7.4777795h-6.6666666l-.000317-7.4777795-11.9488189 8.0608924-1.49118107-2.2107668 9.448-6.3731256-6.67434973.0007795v-6.66666663l6.67434973-.0001129-9.448-6.37223314 1.49118107-2.21076686 11.9488189 8.06.000317-7.4768871h6.6666666l-.0009836 7.4768871z" fill="#fff" mask="url(#b)"/>
<g stroke="#db1f35" stroke-linecap="round" stroke-width=".667">
<path d="m18.668 6.332 12.665-8.332" mask="url(#b)"/>
<path d="m20.013 21.35 11.354-7.652" mask="url(#b)" transform="matrix(1 0 0 -1 0 35.048)"/>
<path d="m8.006 6.31-11.843-7.981" mask="url(#b)"/>
<path d="m9.29 22.31-13.127-8.705" mask="url(#b)" transform="matrix(1 0 0 -1 0 35.915)"/>
</g>
<path d="m0 12h12v8h4v-8h12v-4h-12v-8h-4v8h-12z" fill="#e6273e" mask="url(#b)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,9 @@
<svg height="20" viewBox="0 0 28 20" width="28" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<rect id="a" height="10" rx="0" width="28"/>
</defs>
<g fill="none" fill-rule="evenodd">
<use fill="#D82028" xlink:href="#a"/>
<use fill="#FFF" xlink:href="#a" y="10"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 334 B

View File

@@ -0,0 +1,15 @@
{
"greeting": "Halo",
"buttonText": "Klik Saya",
"infoLogin": "Masukan akun yang telah terdaftar",
"txtLogin1" : "Masuk ke Hospital Portal",
"txtLogin2" : "Masukkan detail Anda di bawah ini",
"txtCardSearchMember1" : "Pengajuan Jaminan",
"txtCardSearchMember2" : "Cari Anggota",
"txtCardSearchMember3" : "Tanggal Lahir",
"txtCardSearchMember4" : "Member ID",
"txtCardSearchMember5" : "Member",
"txtDialogMember1" : "Ringkasan Manfaat",
"txtDialogMember2" : "Request LOG",
"txtDialogMember3" : "Detail Member"
}

View File

@@ -24,7 +24,7 @@
content="The starting point for your next project with Minimal UI Kit, built on the newest version of Material-UI ©, ready to be customized to your style" />
<meta name="keywords" content="react,material,kit,application,dashboard,admin,template" />
<meta name="author" content="Minimal UI Kit" />
<script type="module" crossorigin src="/assets/index.93207066.js"></script>
<script type="module" crossorigin src="/assets/index.8bbf4759.js"></script>
<link rel="stylesheet" href="/assets/index.c91e36b5.css">
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>

View File

@@ -0,0 +1,15 @@
{
"greeting": "Hello",
"buttonText": "Click Me",
"infoLogin": "Enter the registered account",
"txtLogin1" : "Sign in to Hospital Portal",
"txtLogin2" : "Enter your details below",
"txtCardSearchMember1" : "Guarantee Submission",
"txtCardSearchMember2" : "Find Member",
"txtCardSearchMember3" : "Date Birth",
"txtCardSearchMember4" : "Member ID",
"txtCardSearchMember5" : "Member",
"txtDialogMember1" : "Benefit Summary",
"txtDialogMember2" : "Request LOG",
"txtDialogMember3" : "Member Detail"
}

View File

@@ -0,0 +1,15 @@
{
"greeting": "Halo",
"buttonText": "Klik Saya",
"infoLogin": "Masukan akun yang telah terdaftar",
"txtLogin1" : "Masuk ke Hospital Portal",
"txtLogin2" : "Masukkan detail Anda di bawah ini",
"txtCardSearchMember1" : "Pengajuan Jaminan",
"txtCardSearchMember2" : "Cari Anggota",
"txtCardSearchMember3" : "Tanggal Lahir",
"txtCardSearchMember4" : "Member ID",
"txtCardSearchMember5" : "Member",
"txtDialogMember1" : "Ringkasan Manfaat",
"txtDialogMember2" : "Request LOG",
"txtDialogMember3" : "Detail Member"
}

View File

@@ -0,0 +1,9 @@
<svg height="20" viewBox="0 0 28 20" width="28" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<rect id="a" height="10" rx="0" width="28"/>
</defs>
<g fill="none" fill-rule="evenodd">
<use fill="#D82028" xlink:href="#a"/>
<use fill="#FFF" xlink:href="#a" y="10"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 334 B

View File

@@ -1 +1 @@
if(!self.define){let e,s={};const i=(i,r)=>(i=new URL(i+".js",r).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e})));self.define=(r,n)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(s[l])return;let t={};const o=e=>i(e,l),u={module:{uri:l},exports:t,require:o};s[l]=Promise.all(r.map((e=>u[e]||o(e)))).then((e=>(n(...e),t)))}}define(["./workbox-e0782b83"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/Card.636ec64c.js",revision:null},{url:"assets/Dashboard.6320ce33.js",revision:null},{url:"assets/ForgetPassword.7bc09f84.js",revision:null},{url:"assets/index.93207066.js",revision:null},{url:"assets/index.c91e36b5.css",revision:null},{url:"assets/Login.1016850a.js",revision:null},{url:"assets/Page.54724e9a.js",revision:null},{url:"assets/Page404.14781eaa.js",revision:null},{url:"assets/paths.3971dbe6.js",revision:null},{url:"assets/ResetPassword.efa619da.js",revision:null},{url:"fonts/index.css",revision:"8711e169f3dc54f34d839f18d7acef21"},{url:"index.html",revision:"d10be0a77fa6689102d101f567a86ea8"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"ced57fe94e88ec3187bcd0a36e2e178f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));
if(!self.define){let e,s={};const i=(i,r)=>(i=new URL(i+".js",r).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e})));self.define=(r,n)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(s[l])return;let t={};const o=e=>i(e,l),u={module:{uri:l},exports:t,require:o};s[l]=Promise.all(r.map((e=>u[e]||o(e)))).then((e=>(n(...e),t)))}}define(["./workbox-fc255c04"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/Card.11ab9935.js",revision:null},{url:"assets/Dashboard.6d15bf7e.js",revision:null},{url:"assets/ForgetPassword.115f48e8.js",revision:null},{url:"assets/index.8bbf4759.js",revision:null},{url:"assets/index.c91e36b5.css",revision:null},{url:"assets/Login.7584c06d.js",revision:null},{url:"assets/Page.70299ecd.js",revision:null},{url:"assets/Page404.eee9f87d.js",revision:null},{url:"assets/paths.3971dbe6.js",revision:null},{url:"assets/ResetPassword.71c5aa6f.js",revision:null},{url:"fonts/index.css",revision:"8711e169f3dc54f34d839f18d7acef21"},{url:"index.html",revision:"1faa93aa7c950a14474664532a1e1a73"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"ced57fe94e88ec3187bcd0a36e2e178f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));

View File

@@ -0,0 +1,12 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.html [QSA,L]
</IfModule>
<IfModule pagespeed_module>
ModPagespeed off
</IfModule>

View File

@@ -0,0 +1 @@
/* /index.html 200

View File

@@ -0,0 +1 @@
import{n as d,p as u,s as C,P as p,r as f,q as m,_ as x,t as n,f as v,v as w,w as y}from"./index.665133e4.js";function h(s){return d("MuiCard",s)}u("MuiCard",["root"]);const M=["className","raised"],P=s=>{const{classes:e}=s;return y({root:["root"]},h,e)},R=C(p,{name:"MuiCard",slot:"Root",overridesResolver:(s,e)=>e.root})(()=>({overflow:"hidden"})),U=f.exports.forwardRef(function(e,o){const t=m({props:e,name:"MuiCard"}),{className:l,raised:r=!1}=t,c=x(t,M),a=n({},t,{raised:r}),i=P(a);return v(R,n({className:w(i.root,l),elevation:r?8:void 0,ref:o,ownerState:a},c))}),g=U;export{g as C};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{b as I,a as k,r as u,c as B,e as F,f as e,F as A,j as d,S as R,A as C,T as t,R as f,I as p,g,h as c,i as K,y as T,o as N,G as L,z as _,C as j,B as w,D as z,E as H,s as E}from"./index.665133e4.js";import{P as M}from"./paths.3971dbe6.js";import{P as W}from"./Page.385732f9.js";function D({token:s}){const o=I(),r=k(),[n,S]=u.exports.useState(!1),[i,y]=u.exports.useState(!1),P=B().shape({}),l=F({resolver:N(P)}),{handleSubmit:x,setError:b,formState:{errors:m,isSubmitting:v}}=l;return e(A,{methods:l,onSubmit:x(async h=>{try{await T.post("/forget-password",{...h,token:s}),console.log(h),await new Promise(a=>setTimeout(a,500)),o.current&&r("/auth/login",{replace:!0})}catch(a){console.log(a.response.data),o.current&&b("afterSubmit",{...a,message:a.response.data.message})}}),children:d(R,{spacing:3,children:[!!m.afterSubmit&&e(C,{severity:"error",children:m.afterSubmit.message}),e(t,{children:"Kata Sandi Baru"}),e(f,{name:"new_password",label:"Kata Sandi Baru",type:n?"text":"password",InputProps:{endAdornment:e(p,{position:"end",children:e(g,{onClick:()=>S(!n),edge:"end",children:e(c,{icon:n?"eva:eye-fill":"eva:eye-off-fill"})})})}}),e(t,{children:"Konfirmasi Kata Sandi "}),e(f,{name:"confirm_new_password",label:"Konfirmasi Kata Sandi",type:i?"text":"password",InputProps:{endAdornment:e(p,{position:"end",children:e(g,{onClick:()=>y(!i),edge:"end",children:e(c,{icon:i?"eva:eye-fill":"eva:eye-off-fill"})})})}}),e(K,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:v,children:"Reset Password"})]})})}const G=E("div")(({theme:s})=>({display:"flex",height:"100%",alignItems:"center",padding:s.spacing(12,0)}));function J(){const[s,o]=L(),r=s.get("token");return e(W,{title:"Verify",sx:{height:1},children:d(G,{children:[e(_,{}),e(j,{children:d(w,{sx:{maxWidth:480,mx:"auto"},children:[e(z,{size:"small",component:H,to:M.login,startIcon:e(c,{icon:"eva:arrow-ios-back-fill",width:20,height:20}),sx:{mb:3},children:"Back"}),e(t,{variant:"h3",paragraph:!0}),e(t,{sx:{color:"text.secondary"},children:"Please enter your new password."}),e(w,{sx:{mt:5,mb:3},children:e(D,{token:r})})]})})]})})}export{J as default};

View File

@@ -0,0 +1 @@
import{r as o,L as f,u as x,a as F,b as R,c as k,d as m,e as A,j as s,F as B,S as r,f as e,A as u,R as p,I as q,g as D,h as H,i as T,o as W,k as g,C as E,l as z,B as M,T as h,s as i}from"./index.665133e4.js";import{P as G}from"./Page.385732f9.js";import{C as N}from"./Card.f64842fe.js";function V(){const{localeData:t}=o.exports.useContext(f),{login:y}=x(),b=F(),w=R(),[n,S]=o.exports.useState(!1),v=k().shape({email:m().email("Format email tidak valid").required("Email harus diisi"),password:m().required("Password harus diisi")}),C={email:"hospitaladmin@gmail.com",password:"password",remember:!0},d=A({resolver:W(v),defaultValues:C}),{reset:L,setError:I,handleSubmit:P,formState:{errors:l,isSubmitting:j}}=d;return s(B,{methods:d,onSubmit:P(async c=>{try{const a=await y(c.email,c.password);b("/dashboard")}catch(a){console.error(a),L(),w.current&&I("afterSubmit",{...a,message:a.data.message})}}),children:[s(r,{spacing:3,children:[e(u,{severity:"info",children:t.infoLogin}),!!l.afterSubmit&&e(u,{severity:"error",children:l.afterSubmit.data.meta.message}),e(p,{name:"email",label:"Email",required:!0}),e(p,{name:"password",label:"Password",type:n?"text":"password",InputProps:{endAdornment:e(q,{position:"end",children:e(D,{onClick:()=>S(!n),edge:"end",children:e(H,{icon:n?"eva:eye-fill":"eva:eye-off-fill"})})})},required:!0})]}),e(r,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{my:2}}),e(T,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:j,sx:{marginTop:2},children:"Login"})]})}const $=i("div")(({theme:t})=>({[t.breakpoints.up("md")]:{display:"flex"}})),J=i("header")(({theme:t})=>({top:0,zIndex:9,lineHeight:0,width:"100%",display:"flex",alignItems:"center",position:"absolute",padding:t.spacing(3),justifyContent:"space-between",[t.breakpoints.up("md")]:{alignItems:"flex-start",padding:t.spacing(7,5,0,7)}}));i(N)(({theme:t})=>({width:"100%",maxWidth:464,display:"flex",flexDirection:"column",justifyContent:"center",margin:t.spacing(2,0,2,2)}));const K=i("div")(({theme:t})=>({maxWidth:480,margin:"auto",display:"flex",minHeight:"100vh",flexDirection:"column",justifyContent:"center",padding:t.spacing(12,0)}));function Y(){const{localeData:t}=o.exports.useContext(f);return x(),g("up","sm"),g("up","md"),e(G,{title:"Login",children:s($,{children:[e(J,{}),e(E,{maxWidth:"sm",children:s(K,{children:[s(r,{direction:"row",alignItems:"center",sx:{mb:5},children:[e(z,{sx:{width:90,height:90}}),s(M,{sx:{flexGrow:1},children:[e(h,{variant:"h4",gutterBottom:!0,children:t.txtLogin1}),e(h,{variant:"body1",sx:{color:"text.secondary"},children:t.txtLogin2})]})]}),e(V,{})]})})]})})}export{Y as default};

View File

@@ -0,0 +1 @@
import{r as c,j as a,m as i,W as x,f as e,B as d}from"./index.665133e4.js";const f=c.exports.forwardRef(({children:r,title:s="",meta:t,...o},n)=>a(i,{children:[a(x,{children:[e("title",{children:`${s} | LinkSehat`}),t]}),e(d,{ref:n,...o,children:r})]})),l=f;export{l as P};

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More