Merge remote-tracking branch 'origin/staging' into origin/production

This commit is contained in:
Linksehat Staging Server
2023-09-04 15:07:09 +07:00
206 changed files with 29759 additions and 24113 deletions

View File

@@ -404,10 +404,11 @@ class CorporateController extends Controller
$file_name = now()->getPreciseTimestamp(3) . '-' . $request->file('file')->getClientOriginalName(); $file_name = now()->getPreciseTimestamp(3) . '-' . $request->file('file')->getClientOriginalName();
$file = $request->file('file')->storeAs('temp', $file_name); $file = $request->file('file')->storeAs('temp', $file_name);
$corporate = Corporate::with(['plans'])->findOrFail($corporate_id); $corporate = Corporate::with(['plans'])->findOrFail($corporate_id);
$fileWrite = Storage::disk('public')->path('temp/result-' . $file_name);
$fileRead = Storage::path('temp/' . $file_name);
$import = new ImportService(); $import = new ImportService();
$import->read(Storage::path('temp/' . $file_name)); $import->read($fileRead);
$import->write(Storage::disk('public')->path('temp/result-' . $file_name), 'xsls'); $import->write($fileWrite, 'xsls');
foreach ($import->sheetsIterator() as $sheetIndex => $sheet) { foreach ($import->sheetsIterator() as $sheetIndex => $sheet) {
if (!in_array($sheet->getName(), ['Plan', 'Benefit'])) { if (!in_array($sheet->getName(), ['Plan', 'Benefit'])) {
@@ -430,9 +431,11 @@ class CorporateController extends Controller
// Write Header to File // Write Header to File
$result_headers = array_keys($headers_map_to_table_fields); $result_headers = array_keys($headers_map_to_table_fields);
$result_headers = array_merge($result_headers, ['Ingest Code', 'Ingest Note']); $result_headers = array_merge($result_headers, ['Ingest Code', 'Ingest Note']);
// $import->read($fileRead);
// $import->write($fileWrite, 'xsls');
$import->addArrayToRow($result_headers); $import->addArrayToRow($result_headers);
} }
$doc_headers_indexes = []; $doc_headers_indexes = [];
foreach ($sheet->getRowIterator() as $index => $row) { foreach ($sheet->getRowIterator() as $index => $row) {
if ($index == 1) { // First Row Must be Header if ($index == 1) { // First Row Must be Header
@@ -447,12 +450,10 @@ class CorporateController extends Controller
// TODO Validate if First Row not Header // TODO Validate if First Row not Header
} else { // Next Row Should be Data } else { // Next Row Should be Data
$row_data = []; $row_data = [];
foreach ($row->getCells() as $header_index => $cell) { foreach ($row->getCells() as $header_index => $cell) {
if (isset($headers_map_to_table_fields[$doc_headers_indexes[$header_index]])) if (isset($headers_map_to_table_fields[$doc_headers_indexes[$header_index]]))
$row_data[$headers_map_to_table_fields[$doc_headers_indexes[$header_index]]] = $cell->getValue(); $row_data[$headers_map_to_table_fields[$doc_headers_indexes[$header_index]]] = $cell->getValue();
} }
try { // Process the Row Data try { // Process the Row Data
$corporateService = new CorporateService(); $corporateService = new CorporateService();
if ($sheet->getName() == 'Plan') { if ($sheet->getName() == 'Plan') {
@@ -461,12 +462,16 @@ class CorporateController extends Controller
$corporateService->handleBenefitRow($corporate, $row_data); $corporateService->handleBenefitRow($corporate, $row_data);
} }
// Write Success Result to File // Write Success Result to File
$import->addArrayToRow(array_merge($row_data, [ // $import->read($fileRead);
'Ingest Code' => 200, // $import->write($fileWrite, 'xsls');
'Ingest Note' => 'Success', $result_headers = array_merge($row_data, ['Ingest Code' =>200, 'Ingest Note' => 'Success']);
]), $sheet->getName());
$import->addArrayToRow($result_headers, $sheet->getName());
} catch (ImportRowException $e) { } catch (ImportRowException $e) {
// Write Data Validation Error to File // Write Data Validation Error to File
// $import->read($fileRead);
// $import->write($fileWrite, 'xsls');
$import->addArrayToRow(array_merge($row_data, [ $import->addArrayToRow(array_merge($row_data, [
'Ingest Code' => $e->getCode(), 'Ingest Code' => $e->getCode(),
'Ingest Note' => $e->getMessage(), 'Ingest Note' => $e->getMessage(),
@@ -474,6 +479,8 @@ class CorporateController extends Controller
} catch (\Exception $e) { } catch (\Exception $e) {
// throw new \Exception($e); // throw new \Exception($e);
// Write Server Error to File // Write Server Error to File
// $import->read($fileRead);
// $import->write($fileWrite, 'xsls');
$import->addArrayToRow(array_merge($row_data, [ $import->addArrayToRow(array_merge($row_data, [
'Ingest Code' => 500, 'Ingest Code' => 500,
'Ingest Note' => env('APP_DEBUG') ? $e->getMessage() : 'Server Error', 'Ingest Note' => env('APP_DEBUG') ? $e->getMessage() : 'Server Error',

View File

@@ -92,7 +92,7 @@ class DivisionController extends Controller
'code' => [ 'code' => [
'required', 'required',
// Rule::unique('corporate_plans')->where('corporate_id', $corporate_id)->ignore($corporatePlan->id) // Rule::unique('corporate_plans')->where('corporate_id', $corporate_id)->ignore($corporatePlan->id)
Rule::unique('corporate_divisions')->where('corporate_id', $corporate_id) // Rule::unique('corporate_divisions')->where('corporate_id', $corporate_id)
], ],
'name' => 'required' 'name' => 'required'
]); ]);

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

@@ -5,9 +5,14 @@ namespace Modules\Internal\Http\Controllers\Api;
use App\Helpers\Helper; use App\Helpers\Helper;
use App\Models\OLDLMS\Livechat; use App\Models\OLDLMS\Livechat;
use Illuminate\Contracts\Support\Renderable; use Illuminate\Contracts\Support\Renderable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Routing\Controller; use Illuminate\Routing\Controller;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Storage;
use Modules\Internal\Transformers\LivechatResource; use Modules\Internal\Transformers\LivechatResource;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
class LivechatController extends Controller class LivechatController extends Controller
{ {
@@ -15,34 +20,29 @@ class LivechatController extends Controller
* Display a listing of the resource. * Display a listing of the resource.
* @return Renderable * @return Renderable
*/ */
public function index() public function index(Request $request)
{ {
$startDate = $request->startDate;
$endDate = $request->endDate;
$livechat = Livechat::with('doctor.user', 'doctor.speciality', 'appointment.appointmentDetail', 'healthCare') $livechat = Livechat::with('doctor.user', 'doctor.speciality', 'appointment.appointmentDetail', 'healthCare')
->where('nIDAppointment', '!=', null)->where('nIDAppointment', '!=', '') ->where('nIDAppointment', '!=', null)
->latest() ->where('nIDAppointment', '!=', '');
->paginate(15);
if ($startDate) {
$livechat = $livechat->where('dCreateOn', '>=', $startDate);
}
if ($endDate) {
$livechat = $livechat->where('dCreateOn', '<=', $endDate);
}
$livechat = $livechat->latest()->paginate(15);
return response()->json(Helper::paginateResources(LivechatResource::collection($livechat))); 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. * Show the specified resource.
* @param int $id * @param int $id
@@ -57,34 +57,95 @@ class LivechatController extends Controller
return response()->json(new LivechatResource($livechat)); return response()->json(new LivechatResource($livechat));
} }
/** public function export(Request $request)
* Show the form for editing the specified resource.
* @param int $id
* @return Renderable
*/
public function edit($id)
{ {
return view('internal::edit'); $startDate = $request->has('startDate') ? $request->input('startDate') : '';
} $endDate = $request->has('endDate') ? $request->input('endDate') : '';
/** $liveChats = Livechat::with('user:nID,sFirstName,sLastName,sEmail,sPhone', 'doctor:nID,nIDSpesialis,nIDUser', 'doctor.user:nID,sFirstName,sLastName', 'appointment:nID,sPaymentStatus', 'appointment.appointmentDetail:nID,nIDAppointment,dTanggalAppointment,tTimeAppointment', 'healthCare:nID,sHealthCare')
* Update the specified resource in storage. ->where(function (Builder $query) use ($startDate, $endDate) {
* @param Request $request // $query->where('nIDAppointment', '!=', null);
* @param int $id // $query->where('nIDAppointment', '!=', '');
* @return Renderable if ($startDate) {
*/ $query->where('dCreateOn', '>=', $startDate);
public function update(Request $request, $id) }
{ if ($endDate) {
// $query->where('dCreateOn', '<=', $endDate);
} }
})
->get(['nId', 'nIDUser', 'nIDDokter', 'nIDHealthCare', 'nIDAppointment', 'sStatus', 'sMediaDokter', 'sMedia']);
/** $headers = [
* Remove the specified resource from storage. ['value' => 'No', 'cell' => 'A1', 'mergeCell' => true, 'mergeToCell' => 'A2'],
* @param int $id ['value' => 'Nama Dokter', 'cell' => 'B1', 'mergeCell' => true, 'mergeToCell' => 'B2'],
* @return Renderable ['value' => 'Nama Pasien', 'cell' => 'C1', 'mergeCell' => true, 'mergeToCell' => 'C2'],
*/ ['value' => 'No Telepon Pasien', 'cell' => 'D1', 'mergeCell' => true, 'mergeToCell' => 'D2'],
public function destroy($id) ['value' => 'Email Pasien', 'cell' => 'E1', 'mergeCell' => true, 'mergeToCell' => 'E2'],
{ ['value' => 'Faskes', 'cell' => 'F1', 'mergeCell' => true, 'mergeToCell' => 'F2'],
// ['value' => 'Tanggal Appointment', 'cell' => 'G1', 'mergeCell' => true, 'mergeToCell' => 'G2'],
['value' => 'Chat Via App/Website', 'cell' => 'H1', 'mergeCell' => true, 'mergeToCell' => 'I1'],
['value' => 'Pasien', 'cell' => 'H2', 'mergeCell' => false, 'mergeToCell' => ''],
['value' => 'Dokter', 'cell' => 'I2', 'mergeCell' => false, 'mergeToCell' => ''],
['value' => 'Status Appointment', 'cell' => 'J1', 'mergeCell' => true, 'mergeToCell' => 'J2'],
];
$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
foreach ($headers as $header) {
$sheet->setCellValue($header['cell'], $header['value']);
if ($header['mergeCell'] === true) {
$sheet->mergeCells($header['cell'] . ':' . $header['mergeToCell']);
}
$sheet->getStyle($header['cell'])->getFont()->setBold(true);
$sheet->getStyle($header['cell'])->getAlignment()->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER)->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER);
}
$startFrom = 3;
foreach ($liveChats as $indexLiveChat => $liveChat) {
$sheet->setCellValue('A' . $startFrom, $indexLiveChat + 1);
$sheet->setCellValue('B' . $startFrom, $liveChat->doctor->user->full_name ?? '-');
$sheet->setCellValue('C' . $startFrom, $liveChat->user->full_name ?? '-');
$sheet->setCellValue('D' . $startFrom, preg_replace('/(\d{3})(\d{4})(\d{3})/', '$1 $2 $3', $liveChat->user->sPhone) ?? '-');
$sheet->setCellValue('E' . $startFrom, $liveChat->user->sEmail ?? '-');
$sheet->setCellValue('F' . $startFrom, $liveChat->healthCare->sHealthCare ?? '-');
$sheet->setCellValue('G' . $startFrom, isset($liveChat->appointment->appointmentDetail) ? Carbon::parse($liveChat->appointment->appointmentDetail->dTanggalAppointment)->format('d-m-Y') . ' ' . $liveChat->appointment->appointmentDetail->tTimeAppointment : '-');
$sheet->setCellValue('H' . $startFrom, $liveChat->sMedia ?? '-');
$sheet->setCellValue('I' . $startFrom, $liveChat->sMediaDokter ?? '-');
$sheet->setCellValue('J' . $startFrom, $liveChat->appointment->paymentStatus ?? '-');
$startFrom++;
}
foreach (['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'] as $header) {
if ($header === 'A') {
$spreadsheet->getActiveSheet()->getColumnDimension($header)->setWidth(35, 'px');
} elseif ($header === 'H' || $header === 'I') {
$spreadsheet->getActiveSheet()->getColumnDimension($header)->setWidth(100, 'px');
} else {
$spreadsheet->getActiveSheet()->getColumnDimension($header)->setAutoSize(true);
}
}
$spreadsheet->getActiveSheet()->getStyle('A3:A' . $startFrom)->getAlignment()->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER)->setVertical(\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER);
$sheet->getDefaultRowDimension()->setRowHeight(-1);
$sheet->setTitle('Live Chat Report');
$writer = new Xlsx($spreadsheet);
ob_start();
$writer->save('php://output');
$content = ob_get_contents();
ob_end_clean();
$fileName = 'result-' . now()->getPreciseTimestamp(3) . '-livechat-report.xlsx';
Storage::disk('public')->put('temp/' . $fileName, $content);
$fileUrl = url('storage/temp/' . $fileName);
return Helper::responseJson([
"file_url" => $fileUrl
]);
} }
} }

View File

@@ -120,7 +120,6 @@ class PlanController extends Controller
$result_headers = array_keys($headers_map_to_table_fields); $result_headers = array_keys($headers_map_to_table_fields);
array_push($result_headers, ['Ingest Code', 'Ingest Note']); array_push($result_headers, ['Ingest Code', 'Ingest Note']);
$import->addArrayToRow($result_headers); $import->addArrayToRow($result_headers);
die('fuck');
$imported_plan_data = 0; $imported_plan_data = 0;
$failed_plan_data = []; $failed_plan_data = [];

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\DistrictController;
use Modules\Internal\Http\Controllers\Api\DivisionController; use Modules\Internal\Http\Controllers\Api\DivisionController;
use Modules\Internal\Http\Controllers\Api\DoctorController; 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\DrugController;
use Modules\Internal\Http\Controllers\Api\FormulariumController; use Modules\Internal\Http\Controllers\Api\FormulariumController;
use Modules\Internal\Http\Controllers\Api\Linksehat\PaymentController; use Modules\Internal\Http\Controllers\Api\Linksehat\PaymentController;
@@ -151,15 +152,18 @@ Route::prefix('internal')->group(function () {
Route::get('search-specialities', [SpecialityController::class, 'searchSpeciality']); Route::get('search-specialities', [SpecialityController::class, 'searchSpeciality']);
Route::resource('organizations', OrganizationController::class); Route::resource('organizations', OrganizationController::class);
Route::resource('appointments', AppointmentController::class); Route::resource('appointments', AppointmentController::class);
Route::get('live-chat/export', [LivechatController::class, 'export']);
Route::resource('live-chat', LivechatController::class); Route::resource('live-chat', LivechatController::class);
Route::get('prescription', [PrescriptionController::class, 'index']); Route::get('prescription', [PrescriptionController::class, 'index']);
Route::get('prescription/{id}', [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); Route::resource('doctors', DoctorController::class);
Route::post('generate-log/{member_id}', [CorporateMemberController::class, 'generateLog']); Route::post('generate-log/{member_id}', [CorporateMemberController::class, 'generateLog']);
Route::controller(ClaimRequestController::class)->group(function(){ Route::controller(ClaimRequestController::class)->group(function () {
Route::post('files-mcu','filesMcu'); Route::post('files-mcu', 'filesMcu');
}); });
Route::get('claim-requests', [ClaimRequestController::class, 'index'])->name('claim-requests.index'); Route::get('claim-requests', [ClaimRequestController::class, 'index'])->name('claim-requests.index');
Route::post('claim-requests/{id}/approve', [ClaimRequestController::class, 'approve'])->name('claim-requests.approve'); Route::post('claim-requests/{id}/approve', [ClaimRequestController::class, 'approve'])->name('claim-requests.approve');

View File

@@ -229,7 +229,7 @@ class CorporateService
public function handleBenefitRow(Corporate $corporate, $row) public function handleBenefitRow(Corporate $corporate, $row)
{ {
try { try {
// $row['limit_free_tc'] = 0; $row['limit_free_tc'] = 0;
$benefit_data = $row; $benefit_data = $row;
$this->validateBenefitRow($benefit_data, $corporate->id); $this->validateBenefitRow($benefit_data, $corporate->id);
$benefit_data["corporate_id"] = $corporate->id; $benefit_data["corporate_id"] = $corporate->id;

View File

@@ -14,6 +14,10 @@ use App\Models\MemberPolicy;
use App\Models\MemberPlan; use App\Models\MemberPlan;
use App\Models\Person; use App\Models\Person;
use App\Models\Plan; use App\Models\Plan;
use App\Models\OLDLMS\User;
use App\Models\OLDLMS\UserDetail;
use App\Models\OLDLMS\UserInsurance;
use App\Models\OLDLMS\UserInsuranceDetail;
use Box\Spout\Writer\Common\Creator\WriterEntityFactory; use Box\Spout\Writer\Common\Creator\WriterEntityFactory;
use Box\Spout\Common\Entity\Row; use Box\Spout\Common\Entity\Row;
use Carbon\Carbon; use Carbon\Carbon;
@@ -331,7 +335,7 @@ class MemberEnrollmentService
public function validateDate($dateString, $dateFormat = 'Ymd'){ public function validateDate($dateString, $dateFormat = 'Ymd'){
$date = DateTime::createFromFormat($dateFormat, $dateString); $date = DateTime::createFromFormat($dateFormat, $dateString);
if ($date && $date->format($dateFormat) == $dateString) { if ($date && ($date->format($dateFormat) == $dateString)) {
return true; return true;
} else { } else {
return false; return false;
@@ -433,32 +437,32 @@ class MemberEnrollmentService
if (empty($row['member_effective_date'])) { if (empty($row['member_effective_date'])) {
throw new ImportRowException(__('enrollment.MEMBER_EFFECTIVE_REQUIRED'), 0, null, $row); throw new ImportRowException(__('enrollment.MEMBER_EFFECTIVE_REQUIRED'), 0, null, $row);
} }
if(!$this->validateDate($row['member_effective_date'])){ // if(!$this->validateDate($row['member_effective_date'])){
throw new ImportRowException(__('enrollment.INVALID_DATE', [ // throw new ImportRowException(__('enrollment.INVALID_DATE', [
'title' => $title['member_effective_date'] // 'title' => $title['member_effective_date']
]), 0, null, $row); // ]), 0, null, $row);
} // }
if (empty($row['member_expiry_date'])) { if (empty($row['member_expiry_date'])) {
throw new ImportRowException(__('enrollment.MEMBER_EXPIRY_REQUIRED'), 0, null, $row); throw new ImportRowException(__('enrollment.MEMBER_EXPIRY_REQUIRED'), 0, null, $row);
} }
if(!$this->validateDate($row['member_expiry_date'])){ // if(!$this->validateDate($row['member_expiry_date'])){
throw new ImportRowException(__('enrollment.INVALID_DATE', [ // throw new ImportRowException(__('enrollment.INVALID_DATE', [
'title' => $title['member_expiry_date'] // 'title' => $title['member_expiry_date']
]), 0, null, $row); // ]), 0, null, $row);
} // }
// TODO EFFECTIVE DATE VALIDATION // TODO EFFECTIVE DATE VALIDATION
// if (empty($row['activation_date'])) { // if (empty($row['activation_date'])) {
// throw new ImportRowException(__('enrollment.ACTIVATION_DATE_REQUIRED'), 0, null, $row); // throw new ImportRowException(__('enrollment.ACTIVATION_DATE_REQUIRED'), 0, null, $row);
// } // }
if(!empty($row['activation_date'])){ // if(!empty($row['activation_date'])){
if(!$this->validateDate($row['activation_date'])){ // if(!$this->validateDate($row['activation_date'])){
throw new ImportRowException(__('enrollment.INVALID_DATE', [ // throw new ImportRowException(__('enrollment.INVALID_DATE', [
'title' => $title['activation_date'] // 'title' => $title['activation_date']
]), 0, null, $row); // ]), 0, null, $row);
} // }
} // }
// TODO FKTP VALIDATION // TODO FKTP VALIDATION
// TODO FKRTL VALIDATION // TODO FKRTL VALIDATION
@@ -491,22 +495,22 @@ class MemberEnrollmentService
if (empty($row['date_of_birth'])) { if (empty($row['date_of_birth'])) {
throw new ImportRowException(__('enrollment.DATE_OF_BIRTH_REQUIRED'), 0, null, $row); throw new ImportRowException(__('enrollment.DATE_OF_BIRTH_REQUIRED'), 0, null, $row);
} }
if(!$this->validateDate($row['date_of_birth'])){ // if(!$this->validateDate($row['date_of_birth'])){
throw new ImportRowException(__('enrollment.INVALID_DATE', [ // throw new ImportRowException(__('enrollment.INVALID_DATE', [
'title' => $title['date_of_birth'] // 'title' => $title['date_of_birth']
]), 0, null, $row); // ]), 0, null, $row);
} // }
// if (empty($row['date_terminated'])) { // if (empty($row['date_terminated'])) {
// throw new ImportRowException(__('enrollment.DATE_OF_TERMINATED'), 0, null, $row); // throw new ImportRowException(__('enrollment.DATE_OF_TERMINATED'), 0, null, $row);
// } // }
if (!empty($row['date_terminated'])) { // if (!empty($row['date_terminated'])) {
if(!$this->validateDate($row['date_terminated'])){ // if(!$this->validateDate($row['date_terminated'])){
throw new ImportRowException(__('enrollment.INVALID_DATE', [ // throw new ImportRowException(__('enrollment.INVALID_DATE', [
'title' => $title['date_terminated'] // 'title' => $title['date_terminated']
]), 0, null, $row); // ]), 0, null, $row);
} // }
} // }
// TODO DOB FORMAT VALIDATION // TODO DOB FORMAT VALIDATION
if (empty($row['sex'])) { if (empty($row['sex'])) {
@@ -625,6 +629,7 @@ class MemberEnrollmentService
'start' => $corporate->currentPolicy->start 'start' => $corporate->currentPolicy->start
]), 0, null, $row); ]), 0, null, $row);
} }
if ($member_effective_date >= $corporate->currentPolicy->end && ($member_effective_date != $corporate->currentPolicy->end)) { if ($member_effective_date >= $corporate->currentPolicy->end && ($member_effective_date != $corporate->currentPolicy->end)) {
throw new ImportRowException(__('enrollment.LESS_THAN', [ throw new ImportRowException(__('enrollment.LESS_THAN', [
'date_param' => 'Member Effective Date', 'date_param' => 'Member Effective Date',
@@ -633,6 +638,7 @@ class MemberEnrollmentService
'end' => $corporate->currentPolicy->end 'end' => $corporate->currentPolicy->end
]), 0, null, $row); ]), 0, null, $row);
} }
if ($member_effective_date >= $corporate->currentPolicy->end && ($member_effective_date != $corporate->currentPolicy->end)) { if ($member_effective_date >= $corporate->currentPolicy->end && ($member_effective_date != $corporate->currentPolicy->end)) {
throw new ImportRowException(__('enrollment.LESS_THAN', [ throw new ImportRowException(__('enrollment.LESS_THAN', [
'date_param' => 'Member Effective Date', 'date_param' => 'Member Effective Date',
@@ -649,7 +655,11 @@ class MemberEnrollmentService
'start' => $corporate->currentPolicy->start 'start' => $corporate->currentPolicy->start
]), 0, null, $row); ]), 0, null, $row);
} }
<<<<<<< HEAD
=======
>>>>>>> origin/staging
if ($members_expire_date >= $corporate->currentPolicy->end && ($members_expire_date != $corporate->currentPolicy->end)) { if ($members_expire_date >= $corporate->currentPolicy->end && ($members_expire_date != $corporate->currentPolicy->end)) {
throw new ImportRowException(__('enrollment.LESS_THAN', [ throw new ImportRowException(__('enrollment.LESS_THAN', [
'date_param' => 'Member Expired Date', 'date_param' => 'Member Expired Date',
@@ -699,6 +709,7 @@ class MemberEnrollmentService
'gender' => Helper::genderPerson($row['sex']), 'gender' => Helper::genderPerson($row['sex']),
'language' => $row['language'] ?? null, 'language' => $row['language'] ?? null,
'race' => $row['race'] ?? null, 'race' => $row['race'] ?? null,
'phone' => $row['telephone_mobile'] ?? null
] ]
); );
$member->person_id = $person->id; $member->person_id = $person->id;
@@ -743,6 +754,7 @@ class MemberEnrollmentService
'gender' => Helper::genderPerson($row['sex']), 'gender' => Helper::genderPerson($row['sex']),
'language' => $row['language'] ?? null, 'language' => $row['language'] ?? null,
'race' => $row['race'] ?? null, 'race' => $row['race'] ?? null,
'phone' => $row['telephone_mobile'],
]); ]);
$member->person_id = $person->id; $member->person_id = $person->id;
$member->save(); $member->save();
@@ -793,19 +805,44 @@ class MemberEnrollmentService
} }
break; break;
case "2": // Member Information Update (Without Replacement Card) case "2": // Member Information Update (Without Replacement Card)
$this->validateRow($row);
// $this->validateRow($row);
$member = Member::query() $member = Member::query()
->where('member_id', $row['member_id']) ->where('member_id', $row['member_id'])
->first(); ->first();
<<<<<<< HEAD
// Validate If Exist Member // Validate If Exist Member
=======
// // Validate If Exist Member
>>>>>>> origin/staging
if (!$member) { if (!$member) {
throw new ImportRowException(__('enrollment.MEMBER_NOT_FOUND', [ throw new ImportRowException(__('enrollment.MEMBER_NOT_FOUND', [
'member_id' => $row['member_id'], 'member_id' => $row['member_id'],
'policy_id' => $row['policy_number'] 'policy_id' => $row['policy_number']
]), 0, null, $row); ]), 0, null, $row);
} }
$person = Person::updateOrCreate(
[
'id' => $member->person_id
],
[
'name' => $row['name'] ?? null,
// 'birth_date' => $this->dateParser($row['date_of_birth']),
'birth_date' => $row['date_of_birth'],
'gender' => Helper::genderPerson($row['sex']),
'language' => $row['language'] ?? null,
'race' => $row['race'] ?? null,
'phone' => $row['telephone_mobile']
]
);
$member->person_id = $person->id;
$member->save();
try { try {
$memberPolicy = MemberPolicy::query() $memberPolicy = MemberPolicy::query()
->where('policy_id', $row['policy_number']) ->where('policy_id', $row['policy_number'])
->where('member_id', $row['member_id']) ->where('member_id', $row['member_id'])
@@ -823,6 +860,102 @@ class MemberEnrollmentService
$memberPlan->save(); $memberPlan->save();
} }
// Pengecekan jika ada perubahan di plan
$plan = Plan::query()
->where('code', $row['plan_id'])
->first();
if ($plan){
$memberPlan = MemberPlan::query()
->where('member_id', $member->id)
->first();
$memberPlan->plan_id = $plan->id;
$memberPlan->save();
}
// Update jika ada perubahaan di ASO maka akan teriflek ke LMS juga\
$userInsuranceLms = UserInsurance::query()
->where('sNoPolis', $row['member_id'])
->first();
if ($userInsuranceLms){
$userInsuranceLms->sNamaPeserta = $row['name'];
$userInsuranceLms->dStartDate = $row['member_effective_date'];
$userInsuranceLms->dExpireDate = $row['member_expiry_date'];
$nIDUser = $userInsuranceLms->nIDUser;
UserInsurance::updateOrCreate(
['nIDUser' => $nIDUser],
[
'sNamaPeserta' => $row['name'],
'dStartDate' => $row['member_effective_date'],
'dExpireDate' => $row['member_expiry_date'],
'dTanggalLahir' => $row['date_of_birth'],
// 'nNoKTP' => $row['nric'] ?? ,
]
);
/* Lihat ID Marital status di table tm_status_pernikahan Linksehat */
if ($row['relationship_with_principal'] == 'H'){
$sMartialStatus= 6;
$nIDHubunganKeluarga = 3;
} else if ($row['relationship_with_principal'] == 'W'){
$sMartialStatus = 7;
$nIDHubunganKeluarga = 4;
} else if ($row['relationship_with_principal'] == 'S'){
$sMartialStatus = 4;
$nIDHubunganKeluarga = 5;
} else if ($row['relationship_with_principal'] == 'D'){
$sMartialStatus = 5;
$nIDHubunganKeluarga = 5;
} else {
$sMartialStatus = 0;
$nIDHubunganKeluarga = 0;
}
if($row['sex'] == 'M'){
$nIDJenisKelamin = 1;
} else {
$nIDJenisKelamin = 2;
};
// $ip_address = $CI->_prepare_ip($CI->input->ip_address());
$name = explode(" ", $row['name']);
// First name
$first_name = isset($name[0]) ? $name[0] : '';
// Middle name
$middle_name = isset($name[1]) ? $name[1] : '';
// Last name
$last_name = '';
if (count($name) > 2) {
$last_name = implode(" ", array_slice($name, 2));
}
$userLms = User::updateOrCreate(
[
'nID' => $nIDUser // Kondisi untuk mencari data dengan 'nID' yang sesuai dengan $nIDUser
],
[
'sFirstName' => $first_name,
'sLastName' => $middle_name . ' ' .$last_name, // Ubah ini dengan variabel yang sesuai dengan nama belakang (last name)
'sPhone' => $row['telephone_mobile'],
'sEmail' => str_replace(' ', '', $row['email']),
'nIDHubunganKeluarga' => $nIDHubunganKeluarga !== 0 ? $nIDHubunganKeluarga : null,
'dUpdateOn' => date('Y-m-d H:i:s'),
]
);
$userLmsDetail = UserDetail::updateOrCreate(
[
'nIDUser' => $nIDUser
],
[
'nIDUser' => $nIDUser,
'dTanggalLahir' => $row['date_of_birth'],
'dCreateOn' => date('Y-m-d H:i:s'),
'sMartialStatus' => $sMartialStatus != 0 ? $sMartialStatus : null,
'nIDJenisKelamin' => $nIDJenisKelamin,
'sCreateBy' => $nIDUser,
'sKTP' => $row['nric'] ?? null,
]
);
}
if (!$memberPolicy) { if (!$memberPolicy) {
throw new ImportRowException(__('enrollment.MEMBER_NOT_EXISTS', [ throw new ImportRowException(__('enrollment.MEMBER_NOT_EXISTS', [
'member_id' => $row['member_id'], 'member_id' => $row['member_id'],

View File

@@ -18,11 +18,14 @@ class LivechatResource extends JsonResource
$livechat = [ $livechat = [
'id' => $this->nID, 'id' => $this->nID,
'doctor_name' => isset($this->doctor->user->sFirstName) ? $this->doctor->user->sFirstName . ' ' . $this->doctor->user->sLastName : null, 'doctor_name' => isset($this->doctor->user->sFirstName) ? $this->doctor->user->sFirstName . ' ' . $this->doctor->user->sLastName : null,
'pasien_name' => isset($this->user->sFirstName) ? $this->user->sFirstName . ' ' . $this->user->sLastName : null,
'pasien_phone' => isset($this->user->sPhone) ? $this->user->sPhone : '-',
'pasien_email' => isset($this->user->sEmail) ? $this->user->sEmail : '-',
'speciality' => $this->doctor->speciality->sKeterangan ?? null, 'speciality' => $this->doctor->speciality->sKeterangan ?? null,
'health_care' => $this->healthCare->sHealthCare ?? null, 'health_care' => $this->healthCare->sHealthCare ?? null,
'date_appointment' => Carbon::parse($this->appointment->appointmentDetail->dTanggalAppointment)->format('d-m-Y') 'date_appointment' => Carbon::parse($this->appointment->appointmentDetail->dTanggalAppointment)->format('d-m-Y')
. ' ' . $this->appointment->appointmentDetail->tTimeAppointment ?? null, . ' ' . $this->appointment->appointmentDetail->tTimeAppointment ?? null,
'status_appointment' => $this->appointment->status_name ?? null, 'status_appointment' => $this->appointment->paymentStatus ?? null,
'date_created' => Carbon::parse($this->appointment->dCreateOn)->format('d-m-Y H:i:s') ?? null, 'date_created' => Carbon::parse($this->appointment->dCreateOn)->format('d-m-Y H:i:s') ?? null,
'patient_media' => $this->sMedia ?? null, 'patient_media' => $this->sMedia ?? null,
'doctor_media' => $this->sMediaDokter ?? null, 'doctor_media' => $this->sMediaDokter ?? null,

View File

@@ -70,7 +70,7 @@ class Appointment extends Model
'dUpdateOn', 'dUpdateOn',
'dDeleteOn', 'dDeleteOn',
]; ];
protected $appends = [ protected $appends = [
'status_name', 'status_name',
'payment_method', 'payment_method',
@@ -86,7 +86,7 @@ class Appointment extends Model
}, },
); );
} }
protected function paymentStatus(): Attribute protected function paymentStatus(): Attribute
{ {
@@ -109,7 +109,7 @@ class Appointment extends Model
protected function type(): Attribute protected function type(): Attribute
{ {
return Attribute::make( return Attribute::make(
get: function($value) { get: function ($value) {
return $this->nIDJenisBookingNames[$this->nIDJenisBooking] ?? '-'; return $this->nIDJenisBookingNames[$this->nIDJenisBooking] ?? '-';
} }
); );
@@ -118,16 +118,14 @@ class Appointment extends Model
protected function shareKonsultasi(): Attribute protected function shareKonsultasi(): Attribute
{ {
return Attribute::make( return Attribute::make(
get: function() { get: function () {
$consulPrice = ((float) ($this->detail->sPaymentDetails['gross_amount'] ?? null) ?? 0) - $this->nAdminFee; $consulPrice = ((float) $this->detail->sPaymentDetails['gross_amount'] ?? 0) - $this->nAdminFee;
if ( $this->nIDJenisBooking == 3 ) { // Telekonsultasi Sekarang if ($this->nIDJenisBooking == 3) { // Telekonsultasi Sekarang
return $consulPrice * (100-$this->healthCare->commission->nCommissionATC) / 100; return $consulPrice * (100 - $this->healthCare->commission->nCommissionATC) / 100;
} } else if ($this->nIDJenisBooking == 2) { // Telekonsultasi
else if ( $this->nIDJenisBooking == 2 ) { // Telekonsultasi return $consulPrice * (100 - $this->healthCare->commission->nCommissionTC) / 100;
return $consulPrice * (100-$this->healthCare->commission->nCommissionTC) / 100; } else { // Walk In
} return $consulPrice * (100 - $this->healthCare->commission->nCommission) / 100;
else { // Walk In
return $consulPrice * (100-$this->healthCare->commission->nCommission) / 100;
} }
} }
); );
@@ -136,16 +134,14 @@ class Appointment extends Model
protected function shareKomisi(): Attribute protected function shareKomisi(): Attribute
{ {
return Attribute::make( return Attribute::make(
get: function() { get: function () {
$consulPrice = ((float) ($this->detail->sPaymentDetails['gross_amount'] ?? null) ?? 0) - $this->nAdminFee; $consulPrice = ((float) $this->detail->sPaymentDetails['gross_amount'] ?? 0) - $this->nAdminFee;
if ( $this->nIDJenisBooking == 3 ) { // Telekonsultasi Sekarang if ($this->nIDJenisBooking == 3) { // Telekonsultasi Sekarang
return $consulPrice * ($this->healthCare->commission->nCommissionATC) / 100; return $consulPrice * ($this->healthCare->commission->nCommissionATC) / 100;
} } else if ($this->nIDJenisBooking == 2) { // Telekonsultasi
else if ( $this->nIDJenisBooking == 2 ) { // Telekonsultasi
return $consulPrice * ($this->healthCare->commission->nCommissionTC) / 100; return $consulPrice * ($this->healthCare->commission->nCommissionTC) / 100;
} } else { // Walk In
else { // Walk In return $consulPrice * ($this->healthCare->commission->nCommission) / 100;
return $consulPrice * ($this->healthCare->commission->nCommission) / 100;
} }
} }
); );

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;
}
}

View File

@@ -14,8 +14,8 @@ class Livechat extends Model
public $sStatusNames = [ public $sStatusNames = [
0 => 'Menunggu Konfirmasi', 0 => 'Menunggu Konfirmasi',
1 => 'Diterima', 1 => 'Diterima',
2 => 'Ditolak', 3 => 'Ditolak',
3 => 'Selesai', 2 => 'Selesai',
4 => 'Expired', 4 => 'Expired',
]; ];
@@ -48,7 +48,7 @@ class Livechat extends Model
public function doctor() public function doctor()
{ {
return $this->belongsTo(Dokter::class, 'nIDDokter', 'nID'); return $this->belongsTo(Dokter::class, 'nIDDokter', 'nIDUser');
} }

View File

@@ -23,6 +23,17 @@ class User extends Model
'full_name', 'full_name',
]; ];
protected $primaryKey = 'nID';
protected $fillable = [
'nID',
'sFirstName',
'sLastName',
'sPhone',
'sEmail',
'nIDHubunganKeluarga',
'dUpdateOn',
];
protected function fullName(): Attribute protected function fullName(): Attribute
{ {
return Attribute::make( return Attribute::make(

View File

@@ -14,7 +14,19 @@ class UserDetail extends Model
const DELETED_AT = 'dDeleteOn'; const DELETED_AT = 'dDeleteOn';
protected $connection = 'oldlms'; protected $connection = 'oldlms';
protected $primaryKey = 'nID';
protected $table = 'tm_users_detail'; protected $table = 'tm_users_detail';
protected $fillable = [
'nIDUser',
'dTanggalLahir',
'dCreateOn',
'sMartialStatus',
'nIDJenisKelamin',
'sCreateBy',
'sKTP',
];
} }

View File

@@ -15,6 +15,16 @@ class UserInsurance extends Model
const DELETED_AT = 'dDeleteOn'; const DELETED_AT = 'dDeleteOn';
protected $connection = 'oldlms'; protected $connection = 'oldlms';
protected $primaryKey = 'nIDUser';
protected $table = 'tm_users_insurance'; protected $table = 'tm_users_insurance';
protected $fillable = [
'nIDUser',
'sNamaPeserta',
'dStartDate',
'dExpireDate',
'dTanggalLahir',
'nNoKTP',
'sNoPolis',
];
} }

View File

@@ -64,22 +64,22 @@ class ImportService{
public function addArrayToRow($array, $sheetName = null) public function addArrayToRow($array, $sheetName = null)
{ {
// Switch to the correct Sheet Before Write // Switch to the correct Sheet Before Write
if ($sheetName) { if ($sheetName) {
if ($sheetName != $this->writer->getCurrentSheet()->getName()) { $currentSheet = $this->writer->getCurrentSheet();
if ($sheetName != $currentSheet->getName()) {
foreach ($this->writer->getSheetIterator() as $sheet) { $sheets = $this->writer->getSheets();
if ($sheet->getName() == $sheet) { foreach ($sheets as $sheet) {
$this->writer->setCurrentSheet($sheet); if ($sheet->getName() == $sheetName) {
break; $this->writer->setCurrentSheet($sheet); // Set the correct sheet
break;
}
}
} }
}
} }
} $newRow = $this->makeRow($array);
$this->writer->addRow($newRow);
$newRow = $this->makeRow($array); return $this;
$this->writer->addRow($newRow);
return $this;
} }
} }

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", "notistack": "^3.0.1",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"numeral": "^2.0.6", "numeral": "^2.0.6",
"pnpm": "^8.6.9",
"pusher-js": "^8.0.2", "pusher-js": "^8.0.2",
"react": "^17.0.2", "react": "^17.0.2",
"react-apexcharts": "^1.4.0", "react-apexcharts": "^1.4.0",

View File

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

File diff suppressed because it is too large Load Diff

View File

@@ -2,6 +2,6 @@ GENERATE_SOURCEMAP=false
PORT=8083 PORT=8083
REACT_APP_HOST_API_URL="http://127.0.0.1:8000" REACT_APP_HOST_API_URL="http://lms.test"
VITE_API_URL="http://127.0.0.1:8000/api/internal" VITE_API_URL="http://127.0.0.1:8000/api/internal"

File diff suppressed because it is too large Load Diff

View File

@@ -39,79 +39,80 @@
}, },
"dependencies": { "dependencies": {
"@ajoelp/json-to-formdata": "^1.5.0", "@ajoelp/json-to-formdata": "^1.5.0",
"@date-io/date-fns": "^2.16.0", "@date-io/date-fns": "^2.17.0",
"@emotion/cache": "^11.10.5", "@emotion/cache": "^11.11.0",
"@emotion/react": "^11.10.5", "@emotion/react": "^11.11.1",
"@emotion/styled": "^11.10.5", "@emotion/styled": "^11.11.0",
"@hookform/resolvers": "^2.9.10", "@hookform/resolvers": "^2.9.11",
"@iconify/react": "^3.2.2", "@iconify/react": "^3.2.2",
"@mui/icons-material": "^5.11.0", "@mui/icons-material": "^5.14.6",
"@mui/lab": "5.0.0-alpha.80", "@mui/lab": "5.0.0-alpha.80",
"@mui/material": "^5.11.5", "@mui/material": "^5.14.6",
"@mui/system": "^5.11.5", "@mui/system": "^5.14.6",
"@mui/x-data-grid": "^5.17.19", "@mui/x-data-grid": "^5.17.26",
"@mui/x-date-pickers": "5.0.0-beta.2", "@mui/x-date-pickers": "5.0.0-beta.2",
"@vitejs/plugin-react": "^1.3.2", "@vitejs/plugin-react": "^1.3.2",
"apexcharts": "^3.36.3", "apexcharts": "^3.42.0",
"axios": "^0.27.2", "axios": "^0.27.2",
"change-case": "^4.1.2", "change-case": "^4.1.2",
"csstype": "^3.1.1", "csstype": "^3.1.2",
"date-fns": "^2.29.3", "date-fns": "^2.30.0",
"esbuild": "^0.17.18", "esbuild": "^0.17.19",
"framer-motion": "^6.5.1", "framer-motion": "^6.5.1",
"highlight.js": "^11.7.0", "highlight.js": "^11.8.0",
"history": "^5.3.0", "history": "^5.3.0",
"jsx-runtime": "^1.2.0", "jsx-runtime": "^1.2.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"notistack": "3.0.0-alpha.11", "notistack": "3.0.0-alpha.11",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"numeral": "^2.0.6", "numeral": "^2.0.6",
"pnpm": "^8.6.12",
"react": "^17.0.2", "react": "^17.0.2",
"react-apexcharts": "^1.4.0", "react-apexcharts": "^1.4.1",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-dropzone": "^14.2.3", "react-dropzone": "^14.2.3",
"react-helmet-async": "^1.3.0", "react-helmet-async": "^1.3.0",
"react-hook-form": "^7.42.1", "react-hook-form": "^7.45.4",
"react-intersection-observer": "^8.34.0", "react-intersection-observer": "^8.34.0",
"react-lazy-load-image-component": "^1.5.6", "react-lazy-load-image-component": "^1.6.0",
"react-quill": "2.0.0-beta.4", "react-quill": "2.0.0-beta.4",
"react-router": "^6.7.0", "react-router": "^6.15.0",
"react-router-dom": "^6.7.0", "react-router-dom": "^6.15.0",
"simplebar": "^5.3.9", "simplebar": "^5.3.9",
"simplebar-react": "^2.4.3", "simplebar-react": "^2.4.3",
"stylis": "^4.1.3", "stylis": "^4.3.0",
"stylis-plugin-rtl": "^2.1.1", "stylis-plugin-rtl": "^2.1.1",
"vite": "^3.2.5", "vite": "^3.2.7",
"vite-plugin-svgr": "^2.4.0", "vite-plugin-svgr": "^2.4.0",
"yup": "^0.32.11" "yup": "^0.32.11"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.12", "@babel/core": "^7.22.11",
"@babel/eslint-parser": "^7.19.1", "@babel/eslint-parser": "^7.22.11",
"@babel/plugin-syntax-flow": "^7.18.6", "@babel/plugin-syntax-flow": "^7.22.5",
"@babel/plugin-transform-react-jsx": "^7.20.7", "@babel/plugin-transform-react-jsx": "^7.22.5",
"@types/lodash": "^4.14.191", "@types/lodash": "^4.14.197",
"@types/nprogress": "^0.2.0", "@types/nprogress": "^0.2.0",
"@types/react": "^17.0.53", "@types/react": "^17.0.65",
"@types/react-dom": "^17.0.18", "@types/react-dom": "^17.0.20",
"@types/react-lazy-load-image-component": "^1.5.2", "@types/react-lazy-load-image-component": "^1.5.3",
"@types/stylis": "^4.0.2", "@types/stylis": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^5.48.2", "@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.48.2", "@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.32.0", "eslint": "^8.48.0",
"eslint-config-airbnb": "19.0.4", "eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "^16.2.0", "eslint-config-airbnb-typescript": "^16.2.0",
"eslint-config-prettier": "^8.6.0", "eslint-config-prettier": "^8.10.0",
"eslint-config-react-app": "7.0.0", "eslint-config-react-app": "7.0.0",
"eslint-import-resolver-typescript": "^2.7.1", "eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "6.5.1", "eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.1", "eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "4.3.0", "eslint-plugin-react-hooks": "4.3.0",
"prettier": "^2.8.3", "prettier": "^2.8.8",
"typescript": "^4.9.4", "typescript": "^4.9.5",
"vite-plugin-pwa": "^0.12.8" "vite-plugin-pwa": "^0.12.8"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@@ -60,8 +60,8 @@ export default function RHFDatepicker({ name, ...other }: IProps & TextFieldProp
<DesktopDatePicker <DesktopDatePicker
value={field.value} value={field.value}
// inputFormat="dd/MM/yyyy" inputFormat="dd/MMM/yyyy"
inputFormat="yyyy-MM-dd" // inputFormat="dd - MMM - yyyy"
onChange={(value) => { onChange={(value) => {
field.onChange(value); field.onChange(value);
}} }}

View File

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

View File

@@ -69,7 +69,7 @@ export default function CorporatePlanForm({ isEdit, currentCorporatePlan }: Prop
enqueueSnackbar('Division created successfully', { variant: 'success' }); enqueueSnackbar('Division created successfully', { variant: 'success' });
}) })
.then((res) => { .then((res) => {
navigate('/corporates/' + corporate_id + '/divisions', { replace: true }); navigate('/corporate/' + corporate_id + '/divisions', { replace: true });
}) })
.catch(({ response }) => { .catch(({ response }) => {
if (response.status === 422) { if (response.status === 422) {
@@ -89,7 +89,7 @@ export default function CorporatePlanForm({ isEdit, currentCorporatePlan }: Prop
enqueueSnackbar('Division updated successfully', { variant: 'success' }); enqueueSnackbar('Division updated successfully', { variant: 'success' });
}) })
.then((res) => { .then((res) => {
navigate('/corporates/' + corporate_id + '/divisions/' , { replace: true }); navigate('/corporate/' + corporate_id + '/divisions/' , { replace: true });
}) })
.catch(({ response }) => { .catch(({ response }) => {
enqueueSnackbar('Update Failed : '+ response.data.message, { variant: 'error' }); enqueueSnackbar('Update Failed : '+ response.data.message, { variant: 'error' });

View File

@@ -62,7 +62,6 @@ type Props = {
}; };
export default function CorporateForm({ isEdit, currentCorporate }: Props) { export default function CorporateForm({ isEdit, currentCorporate }: Props) {
const navigate = useNavigate(); const navigate = useNavigate();
const [corporate_groups, setCorporateGroups] = useState([]); const [corporate_groups, setCorporateGroups] = useState([]);
@@ -70,7 +69,7 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
const { enqueueSnackbar } = useSnackbar(); const { enqueueSnackbar } = useSnackbar();
let NewCorporateSchema = null; let NewCorporateSchema = null;
if (isEdit){ if (isEdit) {
NewCorporateSchema = Yup.object().shape({ NewCorporateSchema = Yup.object().shape({
isEdited: Yup.boolean(), isEdited: Yup.boolean(),
name: Yup.string().required('Name is required'), name: Yup.string().required('Name is required'),
@@ -81,36 +80,36 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
help_text: Yup.string().required('Help Text is required'), help_text: Yup.string().required('Help Text is required'),
// policy_code: Yup.string().required('Policy Code is required'), // policy_code: Yup.string().required('Policy Code is required'),
policy_start: Yup.date().required('Start Date is required'), policy_start: Yup.date().required('Start Date is required'),
policy_end: Yup.date().required('End Date is required').min(Yup.ref('policy_start'), "end date can't be before start date"), policy_end: Yup.date()
.required('End Date is required')
.min(Yup.ref('policy_start'), "end date can't be before start date"),
policy_total_premi: Yup.number().required('Deposit Initial Fund is required').min(0), policy_total_premi: Yup.number().required('Deposit Initial Fund is required').min(0),
// linking_rules: Yup.string().required('Link Rules is required'), // linking_rules: Yup.string().required('Link Rules is required'),
policy_minimal_deposit_percentage: policy_minimal_deposit_percentage: Yup.number()
Yup.number() .typeError('Please enter a valid number')
.typeError("Please enter a valid number") .required('Percentage Deposit is required')
.required('Percentage Deposit is required') .min(0, 'Minimum atleast 0')
.min(0, "Minimum atleast 0") .max(100, 'Allowed maximum is 100'),
.max(100, "Allowed maximum is 100"), policy_minimal_alert_percentage: Yup.number()
policy_minimal_alert_percentage: .typeError('Please enter a valid number')
Yup.number() .required('Percentage Alert is required')
.typeError("Please enter a valid number") .min(0, 'Minimum atleast 0')
.required('Percentage Alert is required') .max(100, 'Allowed maximum is 100'),
.min(0, "Minimum atleast 0") policy_stop_service_percentage: Yup.number()
.max(100, "Allowed maximum is 100"), .typeError('Please enter a valid number')
policy_stop_service_percentage: .min(0, 'Minimum atleast 0')
Yup.number() .max(100, 'Allowed maximum is 100')
.typeError("Please enter a valid number") .required('Percentage Stop is required'),
.min(0, "Minimum atleast 0") // .test('max', 'Total should not exceed 100 %', function (value) {
.required('Percentage Stop is required') // const { policy_minimal_alert_percentage } = this.parent;
.test("max", "Total should not exceed 100 %", function(value) { // const { policy_minimal_deposit_percentage } = this.parent;
const { policy_minimal_alert_percentage } = this.parent; // return value == 100 - policy_minimal_alert_percentage - policy_minimal_deposit_percentage;
const { policy_minimal_deposit_percentage } = this.parent; // }),
return value == 100 - policy_minimal_alert_percentage- policy_minimal_deposit_percentage;
}),
parent_id: Yup.string().when('type', { parent_id: Yup.string().when('type', {
is: 'subcorporate', is: 'subcorporate',
then: Yup.string().required('Corporate is required because type is Sub Corporate'), then: Yup.string().required('Corporate is required because type is Sub Corporate'),
}), }),
reason: Yup.string().required('Reason for update is required when editing data'), reason: Yup.string().required('Reason for update is required when editing data'),
}); });
} else { } else {
@@ -118,108 +117,105 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
NewCorporateSchema = Yup.object().shape({ NewCorporateSchema = Yup.object().shape({
isEdited: Yup.boolean(), isEdited: Yup.boolean(),
name: Yup.string().required('Name is required'), name: Yup.string().required('Name is required'),
code: Yup.string().required('Corporate Code is required').test( code: Yup.string()
'unique-code', .required('Corporate Code is required')
'Code must be unique', .test('unique-code', 'Code must be unique', async function (value) {
async function (value) {
const existingCodes = await getExistingCodes(); const existingCodes = await getExistingCodes();
return !existingCodes.includes(value); return !existingCodes.includes(value);
} }),
),
active: Yup.boolean().required('Corporate Status is required'), active: Yup.boolean().required('Corporate Status is required'),
type: Yup.string().required('Type is required'), type: Yup.string().required('Type is required'),
welcome_message: Yup.string().required('Welcome Message is required'), welcome_message: Yup.string().required('Welcome Message is required'),
help_text: Yup.string().required('Help Text is required'), help_text: Yup.string().required('Help Text is required'),
// policy_code: Yup.string().required('Policy Code is required'), // policy_code: Yup.string().required('Policy Code is required'),
policy_start: Yup.date().required('Start Date is required'), policy_start: Yup.date().required('Start Date is required'),
policy_end: Yup.date().required('End Date is required').min(Yup.ref('policy_start'), "end date can't be before start date"), policy_end: Yup.date()
.required('End Date is required')
.min(Yup.ref('policy_start'), "end date can't be before start date"),
policy_total_premi: Yup.number().required('Deposit Initial Fund is required').min(0), policy_total_premi: Yup.number().required('Deposit Initial Fund is required').min(0),
// linking_rules: Yup.string().required('Link Rules is required'), // linking_rules: Yup.string().required('Link Rules is required'),
policy_minimal_deposit_percentage: policy_minimal_deposit_percentage: Yup.number()
Yup.number() .typeError('Please enter a valid number')
.typeError("Please enter a valid number") .required('Percentage Deposit is required')
.required('Percentage Deposit is required') .min(0, 'Minimum atleast 0')
.min(0, "Minimum atleast 0") .max(100, 'Allowed maximum is 100'),
.max(100, "Allowed maximum is 100"), policy_minimal_alert_percentage: Yup.number()
policy_minimal_alert_percentage: .typeError('Please enter a valid number')
Yup.number() .required('Percentage Alert is required')
.typeError("Please enter a valid number") .min(0, 'Minimum atleast 0')
.required('Percentage Alert is required') .max(100, 'Allowed maximum is 100'),
.min(0, "Minimum atleast 0") policy_stop_service_percentage: Yup.number()
.max(100, "Allowed maximum is 100"), .typeError('Please enter a valid number')
policy_stop_service_percentage: .min(0, 'Minimum atleast 0')
Yup.number() .max(100, 'Allowed maximum is 100')
.typeError("Please enter a valid number") .required('Percentage Stop is required'),
.min(0, "Minimum atleast 0") // .test('max', 'Total should not exceed 100 %', function (value) {
.required('Percentage Stop is required') // const { policy_minimal_alert_percentage } = this.parent;
.test("max", "Total should not exceed 100 %", function(value) { // const { policy_minimal_deposit_percentage } = this.parent;
const { policy_minimal_alert_percentage } = this.parent; // return value == 100 - policy_minimal_alert_percentage - policy_minimal_deposit_percentage;
const { policy_minimal_deposit_percentage } = this.parent; // }),
return value == 100 - policy_minimal_alert_percentage- policy_minimal_deposit_percentage;
}),
parent_id: Yup.string().when('type', { parent_id: Yup.string().when('type', {
is: 'subcorporate', is: 'subcorporate',
then: Yup.string().required('Corporate is required because type is Sub Corporate'), then: Yup.string().required('Corporate is required because type is Sub Corporate'),
}), }),
}); });
} }
async function getExistingCodes() { async function getExistingCodes() {
// axios // axios
// .get('/corporates/create') // .get('/corporates/create')
// .then((res) => { // .then((res) => {
// setCorporateGroups(res.data.corporate_groups); // setCorporateGroups(res.data.corporate_groups);
// }) // })
// .catch((err) => { // .catch((err) => {
// enqueueSnackbar('Opps, failed to get Corporate Group List', { variant: 'error' }); // enqueueSnackbar('Opps, failed to get Corporate Group List', { variant: 'error' });
// }); // });
try { try {
let response = await axios.get('/corporates/1/code'); // get data all corporate let response = await axios.get('/corporates/1/code'); // get data all corporate
let codeCurrent = "" let codeCurrent = '';
if (isEdit){ if (isEdit) {
let responseCodeCurrent = await axios.get(`/corporates/${currentCorporate?.id}/edit`); // get data current corporate let responseCodeCurrent = await axios.get(`/corporates/${currentCorporate?.id}/edit`); // get data current corporate
codeCurrent = responseCodeCurrent.data.code; // get data code corporate current codeCurrent = responseCodeCurrent.data.code; // get data code corporate current
}
// console.log(response.data);
let existingCodes = response.data.map(item => item); // get data code corporate all
let filteredArray = existingCodes.filter(e => e != codeCurrent)
return filteredArray;
} catch (error) {
console.error(error);
enqueueSnackbar('Failed to fetch existing codes', { variant: 'error' });
} }
// console.log(response.data);
let existingCodes = response.data.map((item) => item); // get data code corporate all
let filteredArray = existingCodes.filter((e) => e != codeCurrent);
return filteredArray;
} catch (error) {
console.error(error);
enqueueSnackbar('Failed to fetch existing codes', { variant: 'error' });
}
} }
async function getExistingPayorId() { async function getExistingPayorId() {
// axios // axios
// .get('/corporates/create') // .get('/corporates/create')
// .then((res) => { // .then((res) => {
// setCorporateGroups(res.data.corporate_groups); // setCorporateGroups(res.data.corporate_groups);
// }) // })
// .catch((err) => { // .catch((err) => {
// enqueueSnackbar('Opps, failed to get Corporate Group List', { variant: 'error' }); // enqueueSnackbar('Opps, failed to get Corporate Group List', { variant: 'error' });
// }); // });
try { try {
let response = await axios.get('/corporates/1/code'); // get data all corporate let response = await axios.get('/corporates/1/code'); // get data all corporate
let codeCurrent = "" let codeCurrent = '';
if (isEdit){ if (isEdit) {
let responseCodeCurrent = await axios.get(`/corporates/${currentCorporate?.id}/edit`); // get data current corporate let responseCodeCurrent = await axios.get(`/corporates/${currentCorporate?.id}/edit`); // get data current corporate
codeCurrent = responseCodeCurrent.data.payor_id; // get data code corporate current codeCurrent = responseCodeCurrent.data.payor_id; // get data code corporate current
}
// console.log(response.data);
let existingCodes = response.data.map(item => item); // get data code corporate all
let filteredArray = existingCodes.filter(e => e != codeCurrent)
console.log(filteredArray);
return filteredArray;
} catch (error) {
console.error(error);
enqueueSnackbar('Failed to fetch existing codes', { variant: 'error' });
} }
// console.log(response.data);
let existingCodes = response.data.map((item) => item); // get data code corporate all
let filteredArray = existingCodes.filter((e) => e != codeCurrent);
console.log(filteredArray);
return filteredArray;
} catch (error) {
console.error(error);
enqueueSnackbar('Failed to fetch existing codes', { variant: 'error' });
}
} }
const defaultValues = useMemo( const defaultValues = useMemo(
@@ -323,7 +319,6 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
formData.append('policy_end', fPostFormat(data.policy_end)); formData.append('policy_end', fPostFormat(data.policy_end));
formData.append('linking_rules', data.linking_rules); formData.append('linking_rules', data.linking_rules);
// console.log('MOTHERFUCKER', data.linking_rules) // console.log('MOTHERFUCKER', data.linking_rules)
if (!isEdit) { if (!isEdit) {
@@ -479,7 +474,7 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
id: 'Lilili', id: 'Lilili',
}, },
]; ];
const [isDisabled, setIsDisabled] = useState(isEdit); const [isDisabled, setIsDisabled] = useState(isEdit);
const handleTypeChange = (event: SelectChangeEvent) => { const handleTypeChange = (event: SelectChangeEvent) => {
setValue('type', event.target.value); setValue('type', event.target.value);
}; };
@@ -520,19 +515,16 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
</option> </option>
))} ))}
</RHFSelect> </RHFSelect>
)} )}
<RHFTextField name="code" label="Corporate Code" disabled={isDisabled} /> <RHFTextField name="code" label="Corporate Code" disabled={isDisabled} />
<RHFTextField name="name" label="Corporate Name" disabled={isDisabled} /> <RHFTextField name="name" label="Corporate Name" disabled={isDisabled} />
<RHFTextField name="payor_id" label="Payor ID" disabled={isDisabled} /> <RHFTextField name="payor_id" label="Payor ID" disabled={isDisabled} />
{isEdit && ( {isEdit && (
// <RHFTextField name="reason" label="Reason for update" /> // <RHFTextField name="reason" label="Reason for update" />
<RHFSelect <RHFSelect name="reason" label="Reason for update">
name="reason"
label="Reason for update"
>
<option value=""></option> <option value=""></option>
<option value="Agreement changed">Agreement changed</option> <option value="Agreement changed">Agreement changed</option>
<option value="Endorsement">Endorsement</option> <option value="Endorsement">Endorsement</option>
@@ -575,13 +567,10 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
<Grid item xs={12} md={4}> <Grid item xs={12} md={4}>
<Stack spacing={3}> <Stack spacing={3}>
<Card sx={{ p: 3 }}> <Card sx={{ p: 3 }}>
{JSON.stringify(values.active)} <Stack spacing={3} mt={2}>
<RHFSwitch name="active" label="Is Company Active" /> <Stack spacing={3} alignItems="center">
{JSON.stringify(values.automatic_linking)} <Typography align="center">Company Logo</Typography>
<RHFSwitch name="automatic_linking" label="Is Company Automatic Linking" /> {/* <RHFUploadAvatar
<Stack spacing={3} mt={2} alignItems="center">
<Typography align="center">Company Logo</Typography>
{/* <RHFUploadAvatar
name="logo" name="logo"
showPreview showPreview
accept="image/*" accept="image/*"
@@ -589,7 +578,22 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
onDrop={handleDrop} onDrop={handleDrop}
onRemove={handleRemove} onRemove={handleRemove}
/> */} /> */}
<UploadImage setFile={setFile} currentImage={currentImage} /> <UploadImage setFile={setFile} currentImage={currentImage} />
</Stack>
<Box>
<Box
sx={{ display: 'flex', placeContent: 'space-between', placeItems: 'center' }}
>
<Typography>Company Active</Typography>
<RHFSwitch name="active" label="" labelPlacement="start" />
</Box>
<Box
sx={{ display: 'flex', placeContent: 'space-between', placeItems: 'center' }}
>
<Typography>Company Automatic Linking</Typography>
<RHFSwitch name="automatic_linking" label="" labelPlacement="start" />
</Box>
</Box>
</Stack> </Stack>
</Card> </Card>
<Card sx={{ p: 3 }}> <Card sx={{ p: 3 }}>
@@ -598,7 +602,6 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
Linking Rules Linking Rules
</Typography> </Typography>
<Stack> <Stack>
{JSON.stringify(getValues('linking_rules'))}
<RHFCustomMultiCheckbox name="linking_rules" options={linking_tools} /> <RHFCustomMultiCheckbox name="linking_rules" options={linking_tools} />
</Stack> </Stack>
</Stack> </Stack>
@@ -611,14 +614,12 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
{/* <Card sx={{ p:3, mb:3, background: 'gray', color: 'white' }}><Typography>Policy Detail</Typography></Card> */} {/* <Card sx={{ p:3, mb:3, background: 'gray', color: 'white' }}><Typography>Policy Detail</Typography></Card> */}
<Card sx={{ p: 3 }}> <Card sx={{ p: 3 }}>
<Stack spacing={3} mt={2}> <Stack spacing={3} mt={2}>
<Grid item xs={12}> <Typography variant="h5">Policy Detail</Typography>
<Typography variant="h5">Policy Detail</Typography>
</Grid>
<input type="hidden" name="policy_id" /> <input type="hidden" name="policy_id" />
<Stack spacing={1}> <Stack spacing={1}>
<RHFTextField name="policy_code" label="Policy Number"/> <RHFTextField name="policy_code" label="Policy Number" />
{!currentCorporate?.id && ( {!currentCorporate?.id && (
<Typography variant="caption">Will be generated if empty</Typography> <Typography variant="caption">Will be generated if empty</Typography>
)} )}
@@ -627,10 +628,10 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
{/* <Typography>Minimal Deposit Policy Level</Typography> */} {/* <Typography>Minimal Deposit Policy Level</Typography> */}
<Stack direction="row" spacing={2}> <Stack direction="row" spacing={2}>
<Grid item xs={12} md={6}> <Grid item xs={12} md={6}>
<RHFDatepicker name="policy_start" label="Start Date (YYYY-MM-DD)" /> <RHFDatepicker name="policy_start" label="Start Date" />
</Grid> </Grid>
<Grid item xs={12} md={6}> <Grid item xs={12} md={6}>
<RHFDatepicker name="policy_end" label="End Date (YYYY-MM-DD)" /> <RHFDatepicker name="policy_end" label="End Date" />
</Grid> </Grid>
</Stack> </Stack>
@@ -639,11 +640,13 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
label={'Deposit Intial Fund (' + fCurrency(values.policy_total_premi) + ')'} label={'Deposit Intial Fund (' + fCurrency(values.policy_total_premi) + ')'}
/> />
<Stack spacing={1}> <Grid item xs={12}>
<Typography variant="subtitle2" sx={{ color: 'text.secondary' }}> <Grid container spacing={2}>
Minimal Deposit Policy Level <Grid item xs={12}>
</Typography> <Typography variant="subtitle2" sx={{ color: 'text.secondary' }}>
<Grid container> Minimal Deposit Policy Level
</Typography>
</Grid>
<Grid item xs={12} md={3}> <Grid item xs={12} md={3}>
<RHFTextField <RHFTextField
name="policy_minimal_deposit_percentage" name="policy_minimal_deposit_percentage"
@@ -659,13 +662,15 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
/> />
</Grid> </Grid>
</Grid> </Grid>
</Stack> </Grid>
<Stack spacing={1}> <Grid item xs={12}>
<Typography variant="subtitle2" sx={{ color: 'text.secondary' }}> <Grid container spacing={2}>
Minimal Alert Level <Grid item xs={12}>
</Typography> <Typography variant="subtitle2" sx={{ color: 'text.secondary' }}>
<Grid container> Minimal Alert Level
</Typography>
</Grid>
<Grid item xs={12} md={3}> <Grid item xs={12} md={3}>
<RHFTextField <RHFTextField
name="policy_minimal_alert_percentage" name="policy_minimal_alert_percentage"
@@ -681,13 +686,15 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
/> />
</Grid> </Grid>
</Grid> </Grid>
</Stack> </Grid>
<Stack spacing={1}> <Grid item xs={12}>
<Typography variant="subtitle2" sx={{ color: 'text.secondary' }}> <Grid container spacing={2}>
Stop Service Level <Grid item xs={12}>
</Typography> <Typography variant="subtitle2" sx={{ color: 'text.secondary' }}>
<Grid container> Stop Service Level
</Typography>
</Grid>
<Grid item xs={12} md={3}> <Grid item xs={12} md={3}>
<RHFTextField <RHFTextField
name="policy_stop_service_percentage" name="policy_stop_service_percentage"
@@ -703,7 +710,7 @@ export default function CorporateForm({ isEdit, currentCorporate }: Props) {
/> />
</Grid> </Grid>
</Grid> </Grid>
</Stack> </Grid>
</Stack> </Stack>
</Card> </Card>
</Grid> </Grid>

View File

@@ -46,6 +46,7 @@ import HeaderBreadcrumbs from '../../components/HeaderBreadcrumbs';
import BasePagination from '../../components/BasePagination'; import BasePagination from '../../components/BasePagination';
import { fCurrency } from '../../utils/formatNumber'; import { fCurrency } from '../../utils/formatNumber';
import { enqueueSnackbar } from 'notistack'; import { enqueueSnackbar } from 'notistack';
import { fDate } from '@/utils/formatTime';
export default function Corporates() { export default function Corporates() {
const { themeStretch } = useSettings(); const { themeStretch } = useSettings();
@@ -341,7 +342,7 @@ export default function Corporates() {
</Button> </Button>
</Link> </Link>
<Link to={`/corporate/${row.id}/corporate-history`}> <Link to={`/corporate/${row.id}/corporate-history`}>
<HistoryIcon /> <HistoryIcon />
</Link> </Link>
</Stack> </Stack>
</TableCell> </TableCell>
@@ -379,36 +380,67 @@ export default function Corporates() {
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
<Grid Grid container> <Grid container>
<Grid item xs={6}> <Grid item xs={6}>
Period Period
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
: {row.current_policy?.start} - {row.current_policy?.end} <Box sx={{ display: 'flex', placeContent: 'space-between' }}>
<span>: {fDate(row.current_policy?.start)}</span>-
<span>{fDate(row.current_policy?.end)}</span>
</Box>
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
Total Premi Total Premi
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
: {row.current_policy ? fCurrency(row.current_policy?.total_premi) : '-'} {row.current_policy ? (
<Box sx={{ display: 'flex', placeContent: 'space-between' }}>
<span>
: {fCurrency(row.current_policy?.total_premi).split(' ')[0]}
</span>
<span>{fCurrency(row.current_policy?.total_premi).split(' ')[1]}</span>
</Box>
) : (
'-'
)}
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
Minimal Deposit Minimal Deposit
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
:{' '} {row.current_policy ? (
{row.current_policy <Box sx={{ display: 'flex', placeContent: 'space-between' }}>
? fCurrency(row.current_policy?.minimal_deposit_net) <span>
: '-'} : {fCurrency(row.current_policy?.minimal_deposit_net).split(' ')[0]}
</span>
<span>
{fCurrency(row.current_policy?.minimal_deposit_net).split(' ')[1]}
</span>
</Box>
) : (
'-'
)}
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
Corporate Limit Corporate Limit
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>
: {row.current_policy ? fCurrency(row.current_policy?.limit_balance) : '-'} {row.current_policy ? (
<Box sx={{ display: 'flex', placeContent: 'space-between' }}>
<span>
: {fCurrency(row.current_policy?.limit_balance).split(' ')[0]}
</span>
<span>
{fCurrency(row.current_policy?.limit_balance).split(' ')[1]}
</span>
</Box>
) : (
'-'
)}
</Grid> </Grid>
</Grid> </Grid>
</Grid> </Grid>

View File

@@ -560,6 +560,12 @@ export default function CorporatePlanList({handleSubmitSuccess}) {
<Grid item xs={6}> <Grid item xs={6}>
: {row.email ?? '-'} : {row.email ?? '-'}
</Grid> </Grid>
<Grid item xs={6}>
Phone
</Grid>
<Grid item xs={6}>
: {row.person?.phone ?? '-'}
</Grid>
</Grid> </Grid>
</Grid> </Grid>
<Grid item xs={6}> <Grid item xs={6}>

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

@@ -63,7 +63,7 @@ import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
import { DesktopDatePicker, LocalizationProvider } from '@mui/x-date-pickers'; import { DesktopDatePicker, LocalizationProvider } from '@mui/x-date-pickers';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'; import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
import { MenuItem } from '@mui/material'; import { MenuItem } from '@mui/material';
import { fPostFormat } from '@/utils/formatTime'; import { fDateOnly } from '@/utils/formatTime';
import AutocompleteLinksehatHealthcare from '@/components/autocomplete/AutocompleteLinksehatHealthcare'; import AutocompleteLinksehatHealthcare from '@/components/autocomplete/AutocompleteLinksehatHealthcare';
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
@@ -81,12 +81,10 @@ export default function List() {
const [searchParamsFilter, setSearchParamsFilter] = useSearchParams(); const [searchParamsFilter, setSearchParamsFilter] = useSearchParams();
useEffect(() => { useEffect(() => {
// axios.get(`/search-organizations`).then((response) => { // axios.get(`/search-organizations`).then((response) => {
// setOrganizationOptions(response.data); // setOrganizationOptions(response.data);
// }); // });
}, []);
}, [])
function Filter(props: any) { function Filter(props: any) {
// SEARCH // SEARCH
@@ -123,17 +121,17 @@ export default function List() {
]; ];
const paymentStatusOptions = { const paymentStatusOptions = {
'settlement' : 'Diterima', settlement: 'Diterima',
'expired' : 'Kadaluarsa', expired: 'Kadaluarsa',
'capture' : 'Captured', capture: 'Captured',
'deny' : 'Ditolak', deny: 'Ditolak',
'pending' : 'Menunggu Pembayaran', pending: 'Menunggu Pembayaran',
'cancel' : 'Dibatalkan', cancel: 'Dibatalkan',
'refund' : 'Dikembalikan', refund: 'Dikembalikan',
'expire' : 'Kadaluarsa', expire: 'Kadaluarsa',
'cod' : 'COD', cod: 'COD',
'FAILED' : 'Gagal', FAILED: 'Gagal',
'COMPLETED' : 'Complete', COMPLETED: 'Complete',
}; };
const dataOrganizations = []; const dataOrganizations = [];
@@ -151,10 +149,13 @@ export default function List() {
onKeyDown={(event) => { onKeyDown={(event) => {
if (event.key === 'Enter') { if (event.key === 'Enter') {
// handleSearchSubmit(event); // handleSearchSubmit(event);
const filter = Object.fromEntries([...searchParams.entries(), ['search', searchText]]); const filter = Object.fromEntries([
setSearchParams(filter) ...searchParams.entries(),
loadDataTableData(filter) ['search', searchText],
]);
setSearchParams(filter);
loadDataTableData(filter);
} }
}} }}
label="Search" label="Search"
@@ -170,44 +171,55 @@ export default function List() {
/> />
</Grid> </Grid>
<Grid item md={2}> <Grid item md={2}>
<FormControl fullWidth> <FormControl fullWidth>
<InputLabel> <InputLabel>Payment Status</InputLabel>
Payment Status <Select
</InputLabel> value={searchParams.get('payment_status') ?? 'semua'}
<Select label="Payment Status"
value={searchParams.get('payment_status') ?? 'semua'} onChange={(el) => {
label="Payment Status" // console.log(el.target.value)
onChange={(el) => { const filter = Object.fromEntries([
// console.log(el.target.value) ...searchParams.entries(),
const filter = Object.fromEntries([...searchParams.entries(), ['payment_status', el.target.value]]); ['payment_status', el.target.value],
setSearchParams(filter) ]);
loadDataTableData(filter) setSearchParams(filter);
}} loadDataTableData(filter);
> }}
<MenuItem value={'semua'}>Semua</MenuItem> >
{Object.entries(paymentStatusOptions).map((option, index) => ( <MenuItem value={'semua'}>Semua</MenuItem>
<MenuItem value={option[0]} key={index}>{option[1]}</MenuItem> {Object.entries(paymentStatusOptions).map((option, index) => (
))} <MenuItem value={option[0]} key={index}>
</Select> {option[1]}
</MenuItem>
))}
</Select>
</FormControl> </FormControl>
</Grid> </Grid>
<Grid item md={2}> <Grid item md={2}>
<AutocompleteLinksehatHealthcare <AutocompleteLinksehatHealthcare
onChange={(value) => { onChange={(value) => {
if (value) { if (value) {
const filter = Object.fromEntries([...searchParams.entries(), ['healthcare_id', value.nID ?? '']]); const filter = Object.fromEntries([
setSearchParams(filter) ...searchParams.entries(),
loadDataTableData(filter) ['healthcare_id', value.nID ?? ''],
setOrganizationOptions([value]) ]);
setSearchParams(filter);
loadDataTableData(filter);
setOrganizationOptions([value]);
} else { } else {
const filter = Object.fromEntries([...searchParams.entries(), ['healthcare_id', '']]); const filter = Object.fromEntries([
setSearchParams(filter) ...searchParams.entries(),
loadDataTableData(filter) ['healthcare_id', ''],
setOrganizationOptions([]) ]);
setSearchParams(filter);
loadDataTableData(filter);
setOrganizationOptions([]);
} }
}} }}
currentOptions={organizationOptions} currentOptions={organizationOptions}
currentValue={organizationOptions?.find((org) => org?.nID == searchParams.get('healthcare_id'))} currentValue={organizationOptions?.find(
(org) => org?.nID == searchParams.get('healthcare_id')
)}
textLabel="Rumah Sakit" textLabel="Rumah Sakit"
placeholder="Nama" placeholder="Nama"
/> />
@@ -219,30 +231,21 @@ export default function List() {
value={searchParams.get('appointment_start')} value={searchParams.get('appointment_start')}
inputFormat="dd/MM/yyyy" inputFormat="dd/MM/yyyy"
onChange={(value) => { onChange={(value) => {
try { try {
if (value && !!Date.parse(value)) { if (value && !!Date.parse(value)) {
const date = value ? fDateOnly(value) : '';
var entries = [...searchParams.entries(), ['appointment_start', date ?? '']];
if (!searchParams.get('appointment_end')) {
entries = [...entries, ['appointment_end', date ?? '']];
}
const filter = Object.fromEntries(entries);
const date = value ? fPostFormat(value) : '' setSearchParams(filter);
var entries = [...searchParams.entries(), ['appointment_start', date ?? '']]; loadDataTableData(filter);
if (!searchParams.get('appointment_end')) { }
entries = [...entries, ['appointment_end', date ?? '']]; } catch (e) {}
}
const filter = Object.fromEntries(entries);
setSearchParams(filter)
loadDataTableData(filter)
}
} catch (e) {}
}} }}
renderInput={(params) => ( renderInput={(params) => <TextField {...params} fullWidth label="Start" />}
<TextField
{...params}
fullWidth
label="Start"
/>
)}
/> />
</LocalizationProvider> </LocalizationProvider>
</Grid> </Grid>
@@ -254,18 +257,16 @@ export default function List() {
inputFormat="dd/MM/yyyy" inputFormat="dd/MM/yyyy"
onChange={(value) => { onChange={(value) => {
try { try {
if (value && !!Date.parse(value)) { if (value && !!Date.parse(value)) {
const date = fDateOnly(value);
const date = fPostFormat(value)
var entries = [...searchParams.entries(), ['appointment_end', date ?? '']]; var entries = [...searchParams.entries(), ['appointment_end', date ?? '']];
if (!searchParams.get('appointment_start')) { if (!searchParams.get('appointment_start')) {
entries = [...entries, ['appointment_start', date ?? '']]; entries = [...entries, ['appointment_start', date ?? '']];
} }
const filter = Object.fromEntries(entries); const filter = Object.fromEntries(entries);
setSearchParams(filter) setSearchParams(filter);
loadDataTableData(filter) loadDataTableData(filter);
} }
} catch (e) {} } catch (e) {}
}} }}
@@ -488,12 +489,9 @@ export default function List() {
const loadDataTableData = async (appliedFilter: any | null = null) => { const loadDataTableData = async (appliedFilter: any | null = null) => {
setDataTableLoading(true); setDataTableLoading(true);
const filter = appliedFilter ? appliedFilter : Object.fromEntries([...searchParams.entries()]); const filter = appliedFilter ? appliedFilter : Object.fromEntries([...searchParams.entries()]);
const response = await axios.get( const response = await axios.get('/linksehat/payments', {
'/linksehat/payments', params: filter,
{ });
params: filter,
}
);
setDataTableLoading(false); setDataTableLoading(false);
setDataTableData(response.data.data); setDataTableData(response.data.data);
}; };
@@ -508,7 +506,7 @@ export default function List() {
searchFilterOrganization: string, searchFilterOrganization: string,
searchFilterPaymentStatus: string, searchFilterPaymentStatus: string,
searchFilterAppointmentStart: string, searchFilterAppointmentStart: string,
searchFilterAppointmentEnd: string, searchFilterAppointmentEnd: string
) => { ) => {
await loadDataTableData({ await loadDataTableData({
search: searchFilter, search: searchFilter,

View File

@@ -27,7 +27,6 @@ export default function Doctor() {
}, },
]} ]}
/> />
<List /> <List />
</Container> </Container>
</Page> </Page>

View File

@@ -53,10 +53,14 @@ import { Controller } from 'react-hook-form';
import SvgIconStyle from '../../../components/SvgIconStyle'; import SvgIconStyle from '../../../components/SvgIconStyle';
import { GridSearchIcon } from '@mui/x-data-grid'; import { GridSearchIcon } from '@mui/x-data-grid';
import { Search } from '@mui/icons-material'; import { Add, Search } from '@mui/icons-material';
import { Icon } from '@iconify/react'; import { Icon } from '@iconify/react';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'; import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
import { RHFDatepicker } from '@/components/hook-form';
import { DesktopDatePicker, LocalizationProvider } from '@mui/x-date-pickers';
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
import { fDateOnly } from '@/utils/formatTime';
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
@@ -103,7 +107,7 @@ export default function List() {
return ( return (
<form style={{ width: '100%' }}> <form style={{ width: '100%' }}>
<Grid container spacing={2} sx={{ justifyContent: 'space-between', alignItems: 'center' }}> <Grid container spacing={2} sx={{ justifyContent: 'space-between', alignItems: 'center' }}>
<Grid item xs={12} sm={12} md={12} lg={12}> <Grid item xs={12} md={6}>
<TextField <TextField
id="search-input" id="search-input"
ref={searchInput} ref={searchInput}
@@ -126,6 +130,74 @@ export default function List() {
}} }}
/> />
</Grid> </Grid>
<Grid item xs={12} md={2}>
<LocalizationProvider dateAdapter={AdapterDateFns}>
<DesktopDatePicker
value={searchParams.get('startDate')}
inputFormat="dd/MM/yyyy"
onChange={(value) => {
try {
if (value && !!Date.parse(value)) {
const date = value ? fDateOnly(value) : '';
var entries = [...searchParams.entries(), ['startDate', date ?? '']];
if (!searchParams.get('endDate')) {
entries = [...entries, ['endDate', date ?? '']];
}
const filter = Object.fromEntries(entries);
setSearchParams(filter);
loadDataTableData(filter);
}
} catch (e) {}
}}
renderInput={(params) => <TextField {...params} fullWidth label="Start" />}
/>
</LocalizationProvider>
</Grid>
<Grid item xs={12} md={2}>
<LocalizationProvider dateAdapter={AdapterDateFns}>
<DesktopDatePicker
value={searchParams.get('endDate')}
inputFormat="dd/MM/yyyy"
onChange={(value) => {
try {
if (value && !!Date.parse(value)) {
const date = fDateOnly(value);
var entries = [...searchParams.entries(), ['endDate', date ?? '']];
if (!searchParams.get('startDate')) {
entries = [...entries, ['startDate', date ?? '']];
}
const filter = Object.fromEntries(entries);
setSearchParams(filter);
loadDataTableData(filter);
}
} catch (e) {}
}}
renderInput={(params) => (
<TextField
{...params}
fullWidth
label="End"
// error={!!error}
// helperText={error?.message}
// {...other}
/>
)}
/>
</LocalizationProvider>
</Grid>
<Grid item xs={12} md={2}>
<Button
variant="outlined"
fullWidth
startIcon={<Add />}
sx={{ p: 1.8 }}
onClick={exportExcel}
>
Export
</Button>
</Grid>
</Grid> </Grid>
</form> </form>
); );
@@ -188,6 +260,8 @@ export default function List() {
<TableCell align="left">{row.health_care ? row.health_care : '-'}</TableCell> <TableCell align="left">{row.health_care ? row.health_care : '-'}</TableCell>
<TableCell align="left">{row.doctor_name ? row.doctor_name : '-'}</TableCell> <TableCell align="left">{row.doctor_name ? row.doctor_name : '-'}</TableCell>
<TableCell align="left">{row.speciality ? row.speciality : '-'}</TableCell> <TableCell align="left">{row.speciality ? row.speciality : '-'}</TableCell>
<TableCell align="left">{row.pasien_name ? row.pasien_name : '-'}</TableCell>
<TableCell align="left">{row.pasien_phone ? row.pasien_phone : '-'}</TableCell>
<TableCell align="left">{row.appointment_media ? row.appointment_media : '-'}</TableCell> <TableCell align="left">{row.appointment_media ? row.appointment_media : '-'}</TableCell>
<TableCell align="left">{row.patient_media ? row.patient_media : '-'}</TableCell> <TableCell align="left">{row.patient_media ? row.patient_media : '-'}</TableCell>
<TableCell align="left">{row.doctor_media ? row.doctor_media : '-'}</TableCell> <TableCell align="left">{row.doctor_media ? row.doctor_media : '-'}</TableCell>
@@ -329,6 +403,27 @@ export default function List() {
setDataTableData(response.data); setDataTableData(response.data);
}; };
const exportExcel = async () => {
var filter = Object.fromEntries([...searchParams.entries()]);
await axios
.get('live-chat/export', { params: filter })
.then((res) => {
enqueueSnackbar('Data berhasil di Export', {
variant: 'success',
anchorOrigin: { horizontal: 'right', vertical: 'top' },
});
document.location.href = res.data.data.file_url;
})
.catch((err) =>
enqueueSnackbar('Data Gagal di Export', {
variant: 'error',
anchorOrigin: { horizontal: 'right', vertical: 'top' },
})
);
};
// const applyFilter = async (searchFilter: string) => { // const applyFilter = async (searchFilter: string) => {
// await loadDataTableData({ search: searchFilter }); // await loadDataTableData({ search: searchFilter });
// setSearchParams({ search: searchFilter }); // setSearchParams({ search: searchFilter });
@@ -390,6 +485,12 @@ export default function List() {
<TableCell style={headStyle} rowSpan={2} align="left"> <TableCell style={headStyle} rowSpan={2} align="left">
Spesialisasi Spesialisasi
</TableCell> </TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
Nama Pasien
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left">
No Telepon Pasien
</TableCell>
<TableCell style={headStyle} rowSpan={2} align="left"> <TableCell style={headStyle} rowSpan={2} align="left">
Appointment Via App/Website Appointment Via App/Website
</TableCell> </TableCell>
@@ -411,20 +512,20 @@ export default function List() {
<TableRow> <TableRow>
<TableCell style={headStyle} align="left" /> <TableCell style={headStyle} align="left" />
{/* <TableCell style={headStyle} align="left"> {/* <TableCell style={headStyle} align="left">
Tanggal Booking Tanggal Booking
</TableCell> </TableCell>
<TableCell style={headStyle} align="left"> <TableCell style={headStyle} align="left">
Tanggal Appointment Tanggal Appointment
</TableCell> </TableCell>
<TableCell style={headStyle} align="left"> <TableCell style={headStyle} align="left">
Faskes Faskes
</TableCell> </TableCell>
<TableCell style={headStyle} align="left"> <TableCell style={headStyle} align="left">
Nama Dokter Nama Dokter
</TableCell> </TableCell>
<TableCell style={headStyle} align="left"> <TableCell style={headStyle} align="left">
Spesialisasi Spesialisasi
</TableCell> */} </TableCell> */}
<TableCell style={headStyle} align="left"> <TableCell style={headStyle} align="left">
Pasien Pasien
</TableCell> </TableCell>

View File

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

View File

@@ -13,6 +13,7 @@ import { AuthProvider } from '../contexts/LaravelAuthContext';
import AuthGuard from '../guards/AuthGuard'; import AuthGuard from '../guards/AuthGuard';
import { Link, useParams, useSearchParams } from 'react-router-dom'; import { Link, useParams, useSearchParams } from 'react-router-dom';
import Prescription from '@/pages/Report/Prescription/Index'; 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', path: 'report/prescription',
element: <Prescription/>, element: <Prescription/>,
}, },
{
path: 'report/doctorrating',
element: <DoctorRating/>,
},
{ {
path: 'report/linksehat-payments', path: 'report/linksehat-payments',
element: <LinksehatPayment />, element: <LinksehatPayment />,

View File

@@ -20,11 +20,14 @@ export function fDateTimeSuffix(date: Date | string | number) {
export function fToNow(date: Date | string | number) { export function fToNow(date: Date | string | number) {
return formatDistanceToNow(new Date(date), { return formatDistanceToNow(new Date(date), {
addSuffix: true addSuffix: true,
}); });
} }
export function fPostFormat(date: Date | string | number) { export function fPostFormat(date: Date | string | number) {
return format(new Date(date), 'yyyy-MM-dd HH:mm:ss'); return format(new Date(date), 'yyyy-MM-dd HH:mm:ss');
} }
export function fDateOnly(date: Date | string | number) {
return format(new Date(date), 'yyyy-MM-dd');
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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

@@ -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,5 +1,5 @@
const getLocalizedData = async (locale) => { const getLocalizedData = async (locale) => {
const response = await fetch(`../public/lang/${locale}.json`); // Mengambil file lokal berdasarkan bahasa yang dipilih const response = await fetch(`../public/image/${locale}.json`); // Mengambil file lokal berdasarkan bahasa yang dipilih
const data = await response.json(); const data = await response.json();
return data; return data;
}; };

View File

@@ -17,7 +17,7 @@ export default function Logo({ disabledLink = false, sx }: Props) {
const logo = ( const logo = (
<Box sx={{ width: 40, height: 40, ...sx }}> <Box sx={{ width: 40, height: 40, ...sx }}>
<img src="/logo/logo-linksehat.png" alt="LinkSehat" /> <img src="/logo/logo_single.svg" alt="LinkSehat" />
</Box> </Box>
); );

View File

@@ -13,12 +13,12 @@ const LANGS = [
{ {
label: 'Bahasa Indonesia', label: 'Bahasa Indonesia',
value: 'id-ID', value: 'id-ID',
icon: '/icons/ic_flag_id.svg', icon: '/image/ic_flag_id.svg',
}, },
{ {
label: 'English', label: 'English',
value: 'en-US', value: 'en-US',
icon: '/icons/ic_flag_en.svg', icon: '/image/ic_flag_en.svg',
}, },
]; ];
@@ -53,7 +53,23 @@ export default function LanguagePopover() {
...(open && { bgcolor: 'action.selected' }), ...(open && { bgcolor: 'action.selected' }),
}} }}
> >
<Image disabledEffect src={!localStorage.getItem('currentLocale') ? LANGS[0].icon : (localStorage.getItem('currentLocale') === 'id-ID' ? LANGS[0].icon : LANGS[1].icon)} alt={!localStorage.getItem('currentLocale') ? LANGS[0].label : (localStorage.getItem('currentLocale') === 'id-ID' ? LANGS[0].label : LANGS[1].label)} /> <Image
disabledEffect
src={(
!localStorage.getItem('currentLocale')
? LANGS[0].icon
: localStorage.getItem('currentLocale') === 'id-ID'
? LANGS[0].icon
: LANGS[1].icon
)}
alt={
!localStorage.getItem('currentLocale')
? LANGS[0].label
: localStorage.getItem('currentLocale') === 'id-ID'
? LANGS[0].label
: LANGS[1].label
}
/>
</IconButtonAnimate> </IconButtonAnimate>

View File

@@ -10,6 +10,14 @@ export default defineConfig({
// comment this out if that isn't relevant for your project // comment this out if that isn't relevant for your project
build: { build: {
outDir: 'build', outDir: 'build',
chunkSizeWarningLimit: 100,
rollupOptions: {
onwarn(warning, warn) {
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
return
}
warn(warning)
}}
}, },
plugins: [ plugins: [
react(), react(),

File diff suppressed because it is too large Load Diff

View File

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{ac as o}from"./index.52c19e01.js";const t=o(),c=t;export{c as B};

View File

@@ -0,0 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/Card.f5731843.js
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.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/Card.6cad65b0.js

View File

@@ -1 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/Card.f5731843.js
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.c3a1a394.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.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/Card.6cad65b0.js

View File

@@ -1 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/DialogDetailClaim.352f499a.js
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.c3a1a394.js";import{S as p,a as h,b as g,A as m}from"./Add.436ed0f1.js";import{C as o}from"./Card.f5731843.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.c3a1a394.js";import{S as p,a as h,b as g,A as m}from"./Add.436ed0f1.js";import{C as o}from"./Card.f5731843.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};
>>>>>>>> origin/staging:public/client-portal/assets/DialogDetailClaim.b706aae1.js

View File

@@ -0,0 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/DialogDetailClaim.352f499a.js
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.c3a1a394.js";import{S as p,a as h,b as g,A as m}from"./Add.436ed0f1.js";import{C as o}from"./Card.f5731843.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};
>>>>>>>> origin/staging:public/client-portal/assets/DialogDetailClaim.b706aae1.js

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

@@ -1,4 +1,8 @@
<<<<<<<< HEAD:public/client-portal/assets/HeaderBreadcrumbs.658f803e.js
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.c3a1a394.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,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.c3a1a394.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:{}};/**
>>>>>>>> origin/staging:public/client-portal/assets/HeaderBreadcrumbs.61d3d87e.js
* @license * @license
* Lodash <https://lodash.com/> * Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>

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,5 @@
<<<<<<<< HEAD:public/client-portal/assets/Index.5d08c8f6.js
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.c3a1a394.js";import{P as U}from"./Page.4963d0e1.js";import{G as S}from"./Grid.73473fca.js";import{C as I}from"./Card.f5731843.js";import{T as Z}from"./Table.357dc9c3.js";import"./Box.da16a75e.js";import"./TablePagination.86a3718f.js";import"./TableRow.d9c7fd05.js";import"./KeyboardArrowRight.3644c4c0.js";import"./TextField.730f3505.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.c3a1a394.js";import{P as U}from"./Page.4963d0e1.js";import{G as S}from"./Grid.73473fca.js";import{C as I}from"./Card.f5731843.js";import{T as Z}from"./Table.357dc9c3.js";import"./Box.da16a75e.js";import"./TablePagination.86a3718f.js";import"./TableRow.d9c7fd05.js";import"./KeyboardArrowRight.3644c4c0.js";import"./TextField.730f3505.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};
>>>>>>>> origin/staging:public/client-portal/assets/Index.d959a4ba.js

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/Index.5d08c8f6.js
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.c3a1a394.js";import{P as U}from"./Page.4963d0e1.js";import{G as S}from"./Grid.73473fca.js";import{C as I}from"./Card.f5731843.js";import{T as Z}from"./Table.357dc9c3.js";import"./Box.da16a75e.js";import"./TablePagination.86a3718f.js";import"./TableRow.d9c7fd05.js";import"./KeyboardArrowRight.3644c4c0.js";import"./TextField.730f3505.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};
>>>>>>>> origin/staging:public/client-portal/assets/Index.d959a4ba.js

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};

View File

@@ -1 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/KeyboardArrowRight.3644c4c0.js
import{c as r,j as o}from"./index.c3a1a394.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.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/KeyboardArrowRight.45cdeaba.js

View File

@@ -0,0 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/KeyboardArrowRight.3644c4c0.js
import{c as r,j as o}from"./index.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/KeyboardArrowRight.45cdeaba.js

View File

@@ -1,4 +1,8 @@
<<<<<<<< HEAD:public/client-portal/assets/LoadingButton.6dbc1e3a.js
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.c3a1a394.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.c3a1a394.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`
>>>>>>>> origin/staging:public/client-portal/assets/LoadingButton.a5af7c36.js
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);
} }

View File

@@ -0,0 +1,32 @@
<<<<<<<< HEAD:public/client-portal/assets/LoadingButton.6dbc1e3a.js
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.c3a1a394.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`
>>>>>>>> origin/staging:public/client-portal/assets/LoadingButton.a5af7c36.js
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),Z=D(S||(S=b`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),A=t=>{const{classes:o,variant:i,color:r,disableShrink:a}=t,n={root:["root",i,`color${f(r)}`],svg:["svg"],circle:["circle",`circle${f(i)}`,a&&"circleDisableShrink"]};return q(n,J,o)},Q=I("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:i}=t;return[o.root,o[i.variant],o[`color${f(i.color)}`]]}})(({ownerState:t,theme:o})=>s({display:"inline-block"},t.variant==="determinate"&&{transition:o.transitions.create("transform")},t.color!=="inherit"&&{color:(o.vars||o).palette[t.color].main}),({ownerState:t})=>t.variant==="indeterminate"&&U(R||(R=b`
animation: ${0} 1.4s linear infinite;
`),T)),X=I("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,o)=>o.svg})({display:"block"}),Y=I("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,o)=>{const{ownerState:i}=t;return[o.circle,o[`circle${f(i.variant)}`],i.disableShrink&&o.circleDisableShrink]}})(({ownerState:t,theme:o})=>s({stroke:"currentColor"},t.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},t.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink&&U(E||(E=b`
animation: ${0} 1.4s ease-in-out infinite;
`),Z)),w=x.exports.forwardRef(function(o,i){const r=j({props:o,name:"MuiCircularProgress"}),{className:a,color:n="primary",disableShrink:l=!1,size:d=40,style:P,thickness:m=3.6,value:v=0,variant:C="indeterminate"}=r,$=z(r,O),u=s({},r,{color:n,disableShrink:l,size:d,thickness:m,value:v,variant:C}),e=A(u),h={},L={},k={};if(C==="determinate"){const y=2*Math.PI*((g-m)/2);h.strokeDasharray=y.toFixed(3),k["aria-valuenow"]=Math.round(v),h.strokeDashoffset=`${((100-v)/100*y).toFixed(3)}px`,L.transform="rotate(-90deg)"}return p(Q,s({className:V(e.root,a),style:s({width:d,height:d},L,P),ownerState:u,ref:i,role:"progressbar"},k,$,{children:p(X,{className:e.svg,ownerState:u,viewBox:`${g/2} ${g/2} ${g} ${g}`,children:p(Y,{className:e.circle,style:h,ownerState:u,cx:g,cy:g,r:(g-m)/2,fill:"none",strokeWidth:m})})}))}),oo=w;function to(t,o,i){const r={};return Object.keys(t).forEach(a=>{r[a]=t[a].reduce((n,l)=>(l&&(i&&i[l]&&n.push(i[l]),n.push(o(l))),n),[]).join(" ")}),r}const N=t=>t,io=()=>{let t=N;return{configure(o){t=o},generate(o){return t(o)},reset(){t=N}}},ro=io(),no=ro,ao={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function F(t,o){return ao[o]||`${no.generate(t)}-${o}`}function so(t,o){const i={};return o.forEach(r=>{i[r]=F(t,r)}),i}function eo(t){return F("MuiLoadingButton",t)}const co=so("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),c=co,lo=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],uo=t=>{const{loading:o,loadingPosition:i,classes:r}=t,a={root:["root",o&&"loading"],startIcon:[o&&`startIconLoading${f(i)}`],endIcon:[o&&`endIconLoading${f(i)}`],loadingIndicator:["loadingIndicator",o&&`loadingIndicator${f(i)}`]},n=to(a,eo,r);return s({},r,n)},go=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",fo=I(K,{shouldForwardProp:t=>go(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,o)=>[o.root,o.startIconLoadingStart&&{[`& .${c.startIconLoadingStart}`]:o.startIconLoadingStart},o.endIconLoadingEnd&&{[`& .${c.endIconLoadingEnd}`]:o.endIconLoadingEnd}]})(({ownerState:t,theme:o})=>s({[`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0}},t.loadingPosition==="center"&&{transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),[`&.${c.loading}`]:{color:"transparent"}},t.loadingPosition==="start"&&t.fullWidth&&{[`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}},t.loadingPosition==="end"&&t.fullWidth&&{[`& .${c.startIconLoadingStart}, & .${c.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}})),_=I("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,o)=>{const{ownerState:i}=t;return[o.loadingIndicator,o[`loadingIndicator${f(i.loadingPosition)}`]]}})(({theme:t,ownerState:o})=>s({position:"absolute",visibility:"visible",display:"flex"},o.loadingPosition==="start"&&(o.variant==="outlined"||o.variant==="contained")&&{left:o.size==="small"?10:14},o.loadingPosition==="start"&&o.variant==="text"&&{left:6},o.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:t.palette.action.disabled},o.loadingPosition==="end"&&(o.variant==="outlined"||o.variant==="contained")&&{right:o.size==="small"?10:14},o.loadingPosition==="end"&&o.variant==="text"&&{right:6},o.loadingPosition==="start"&&o.fullWidth&&{position:"relative",left:-10},o.loadingPosition==="end"&&o.fullWidth&&{position:"relative",right:-10})),ho=x.exports.forwardRef(function(o,i){const r=j({props:o,name:"MuiLoadingButton"}),{children:a,disabled:n=!1,id:l,loading:d=!1,loadingIndicator:P,loadingPosition:m="center",variant:v="text"}=r,C=z(r,lo),$=H(l),u=P!=null?P:p(oo,{"aria-labelledby":$,color:"inherit",size:16}),e=s({},r,{disabled:n,loading:d,loadingIndicator:u,loadingPosition:m,variant:v}),h=uo(e);return p(fo,s({disabled:n||d,id:$,ref:i},C,{variant:v,classes:h,ownerState:e,children:e.loadingPosition==="end"?M(x.exports.Fragment,{children:[a,d&&p(_,{className:h.loadingIndicator,ownerState:e,children:u})]}):M(x.exports.Fragment,{children:[d&&p(_,{className:h.loadingIndicator,ownerState:e,children:u}),a]})}))}),mo=ho;export{mo as L};

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,5 @@
<<<<<<<< HEAD:public/client-portal/assets/MuiDialog.a584319d.js
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.c3a1a394.js";import{S as V,D as L,a as N,b as W}from"./DialogTitle.47423954.js";import{r as E,i as A,a as G}from"./jsx-runtime_commonjs-proxy.ccc1f0d3.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};
>>>>>>>> origin/staging:public/client-portal/assets/MuiDialog.02c58ffb.js

View File

@@ -1 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/MuiDialog.a584319d.js
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.c3a1a394.js";import{S as V,D as L,a as N,b as W}from"./DialogTitle.47423954.js";import{r as E,i as A,a as G}from"./jsx-runtime_commonjs-proxy.ccc1f0d3.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.c3a1a394.js";import{S as V,D as L,a as N,b as W}from"./DialogTitle.47423954.js";import{r as E,i as A,a as G}from"./jsx-runtime_commonjs-proxy.ccc1f0d3.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};
>>>>>>>> origin/staging:public/client-portal/assets/MuiDialog.02c58ffb.js

View File

@@ -0,0 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/Page.4963d0e1.js
import{r as c,f as a,F as i,W as x,j as e,B as d}from"./index.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/Page.2d2aae4a.js

View File

@@ -1 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/Page.4963d0e1.js
import{r as c,f as a,F as i,W as x,j as e,B as d}from"./index.c3a1a394.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.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/Page.2d2aae4a.js

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

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

@@ -1,4 +1,8 @@
<<<<<<<< HEAD:public/client-portal/assets/TablePagination.86a3718f.js
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.c3a1a394.js";import{e as xe,L as J,F as W,d as _}from"./TableRow.d9c7fd05.js";import{K as Q,a as V}from"./KeyboardArrowRight.3644c4c0.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.c3a1a394.js";import{e as xe,L as J,F as W,d as _}from"./TableRow.d9c7fd05.js";import{K as Q,a as V}from"./KeyboardArrowRight.3644c4c0.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`
>>>>>>>> origin/staging:public/client-portal/assets/TablePagination.9f676df5.js
0% { 0% {
left: -35%; left: -35%;
right: 100%; right: 100%;

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
<<<<<<<< HEAD:public/client-portal/assets/TableRow.d9c7fd05.js
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.c3a1a394.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
>>>>>>>> origin/staging:public/client-portal/assets/TableRow.2979bcea.js
${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,2 +1,6 @@
<<<<<<<< HEAD:public/client-portal/assets/TableRow.d9c7fd05.js
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.c3a1a394.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.c3a1a394.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
>>>>>>>> origin/staging:public/client-portal/assets/TableRow.2979bcea.js
${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}; ${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};

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,5 @@
<<<<<<<< HEAD:public/client-portal/assets/TextField.730f3505.js
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.c3a1a394.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.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/TextField.ca0ae25e.js

View File

@@ -0,0 +1,5 @@
<<<<<<<< HEAD:public/client-portal/assets/TextField.730f3505.js
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.c3a1a394.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};
>>>>>>>> origin/staging:public/client-portal/assets/TextField.ca0ae25e.js

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