From 6d8c434659e8e78decbba9e8d413d36f10ea50d0 Mon Sep 17 00:00:00 2001 From: Paul Grimes Date: Mon, 30 Sep 2024 10:51:34 +1000 Subject: [PATCH] Updated voucher generation process to handle colloquial currencies --- .../Admin/ApiAdminVoucherSetsController.php | 39 +- ...dC82aTmh.js => APIAccessToken-A3K8OPmV.js} | 2 +- ...LhAXCxE.js => APIAccessTokens-W2G_Brik.js} | 2 +- ...Home-R5_UARE1.js => AdminHome-DTetEXIL.js} | 2 +- ...s => AdminTeamCreateComponent-9Mr34fB9.js} | 2 +- ...mVoucherTemplateEditComponent-CTGs70yY.js} | 2 +- ...Fb1e.js => AdminTopNavigation-DhGdPzlz.js} | 2 +- ... => AdminUserDetailsComponent-DStHbtVS.js} | 2 +- ...2j.js => AjaxLoadingIndicator-jzrn0AI8.js} | 2 +- ...fIosL1f.js => ApplicationLogo-DKaozThB.js} | 2 +- public/build/assets/AuditItems-4c_EuhGC.js | 1 + public/build/assets/AuditItems-DIKou6QV.js | 1 - ...ZNy.js => AuditItemsComponent-CfExzXjd.js} | 2 +- ...oAA.js => AuthenticatedLayout-BUPPfdhf.js} | 2 +- ...ckbox-BkCSZ4j2.js => Checkbox-lS5kFIWr.js} | 2 +- ...o3GG3w2.js => ConfirmPassword-C2XqwsFY.js} | 2 +- ...n-BzsUR-6s.js => DangerButton-Dm1RaOMo.js} | 2 +- ...oard-BxMYZBzR.js => Dashboard-CXg49ttj.js} | 2 +- ...BxQTPWXE.js => DeleteUserForm-BqxawtV2.js} | 2 +- .../{Edit-Ctxd-0w5.js => Edit-CXTB1KZY.js} | 2 +- ...HNAMUs.js => ErrorMessagePage-Cgxki2j-.js} | 2 +- ...E4Xdb2Gm.js => ForgotPassword-d4vaXXEc.js} | 2 +- ...ut-BXXL9wvL.js => GuestLayout-C6KGR1m6.js} | 2 +- ...ror-B8NEdD9b.js => InputError-KrPZcAOb.js} | 2 +- ...bel-omYb-gwx.js => InputLabel-Wt1TYZ0A.js} | 2 +- .../{Login-B8EDuc_R.js => Login-BTp1pdSs.js} | 2 +- ...{MyTeam-BIW5O6XV.js => MyTeam-DDDfjcxp.js} | 2 +- ...bGieI.js => MyTeamVoucherSets-ibMyvl9J.js} | 2 +- ...va1F.js => PaginatorComponent-CoSTMxRA.js} | 2 +- ...-CiDAOitU.js => PrimaryButton-CIB81Yr_.js} | 2 +- ...ister-BYssDH9v.js => Register-DQ-ZQSRR.js} | 2 +- ...-CUxvjknQ.js => ResetPassword-CchZ69XZ.js} | 2 +- ...vjXhVuA.js => SecondaryButton-CDQDA5dD.js} | 2 +- public/build/assets/Team-D8FdxRdY.js | 1 + public/build/assets/Team-r_mqDnKu.js | 1 - public/build/assets/TeamNew-DgOStchy.js | 1 - public/build/assets/TeamNew-FoGsvxHV.js | 1 + .../{Teams-BCjNg0Vs.js => Teams-DZ43y8GK.js} | 2 +- ...nput-Fah8vm6N.js => TextInput-CvMe3C5R.js} | 2 +- ...tG6E.js => UpdatePasswordForm-DPOMbBpC.js} | 2 +- ... UpdateProfileInformationForm-BDimdmua.js} | 2 +- .../{User-C8oSwsSl.js => User-BUwPGeNK.js} | 2 +- .../{Users-fB1pYr8f.js => Users-DcLgqFTR.js} | 2 +- ...il-BHhXe_r5.js => VerifyEmail-3E5pnoqD.js} | 2 +- ...oucher-DXAhWrlI.js => Voucher-Cp15zt8G.js} | 2 +- ...oucher-DkFPHOzd.js => Voucher-KQ9YSfBi.js} | 2 +- ...-BIWa6ByF.js => VoucherRedeem-BBaMZ4wj.js} | 2 +- ...mDZU6.js => VoucherRedemption-ByOfqClZ.js} | 2 +- ...8SKl.js => VoucherRedemptions-D2AdAWMF.js} | 2 +- public/build/assets/VoucherSet-C_FioOoJ.js | 1 - ...Set-DMNIDxAN.js => VoucherSet-GzhgjQNh.js} | 2 +- public/build/assets/VoucherSet-Zt9y5gmI.js | 1 + ...oucherSetMerchantTeamApproval-CR4Su_Hg.js} | 2 +- public/build/assets/VoucherSetNew-ByqV2Gjw.js | 1 + public/build/assets/VoucherSetNew-CQJWXEMg.js | 1 - ...ts-CVZed9zf.js => VoucherSets-DE1EHO3P.js} | 2 +- ...2V.js => VoucherSetsComponent-BkEVj6A7.js} | 2 +- .../assets/VoucherTemplateEdit-B8xCAdSL.js | 1 + .../assets/VoucherTemplateEdit-C1HbSQCo.js | 1 - .../assets/VoucherTemplateNew-B86O0X6X.js | 1 - .../assets/VoucherTemplateNew-BINnLav-.js | 1 + public/build/assets/Vouchers-Docqnsjz.js | 1 + public/build/assets/Vouchers-HdBjeyaO.js | 1 - ...rwp1U.js => VouchersComponent-B1EjqngZ.js} | 2 +- .../{app-NB_nCFcw.js => app-DAMU3Vsb.js} | 4 +- ....min-DM5MTW9C.js => dayjs.min-LcFuhhy0.js} | 2 +- ...oQqglmK.js => localizedFormat-DzqPGGN8.js} | 2 +- ...e-CdoPJJJp.js => relativeTime-Bgw1Nd-u.js} | 2 +- .../{utc-CsIElMW4.js => utc-D9fONLNZ.js} | 2 +- public/build/manifest.json | 716 +++++++++--------- .../AdminTeamMerchantTeamsComponent.vue | 2 +- .../VoucherSets/VoucherSetNewComponent.vue | 40 +- .../js/Pages/Admin/VoucherSets/VoucherSet.vue | 1 + 73 files changed, 468 insertions(+), 452 deletions(-) rename public/build/assets/{APIAccessToken-dC82aTmh.js => APIAccessToken-A3K8OPmV.js} (84%) rename public/build/assets/{APIAccessTokens-BLhAXCxE.js => APIAccessTokens-W2G_Brik.js} (79%) rename public/build/assets/{AdminHome-R5_UARE1.js => AdminHome-DTetEXIL.js} (87%) rename public/build/assets/{AdminTeamCreateComponent-8M73tbc7.js => AdminTeamCreateComponent-9Mr34fB9.js} (87%) rename public/build/assets/{AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js => AdminTeamVoucherTemplateEditComponent-CTGs70yY.js} (98%) rename public/build/assets/{AdminTopNavigation-n1SbFb1e.js => AdminTopNavigation-DhGdPzlz.js} (97%) rename public/build/assets/{AdminUserDetailsComponent--1S10Mhu.js => AdminUserDetailsComponent-DStHbtVS.js} (83%) rename public/build/assets/{AjaxLoadingIndicator-C8UwDW2j.js => AjaxLoadingIndicator-jzrn0AI8.js} (90%) rename public/build/assets/{ApplicationLogo-BfIosL1f.js => ApplicationLogo-DKaozThB.js} (99%) create mode 100644 public/build/assets/AuditItems-4c_EuhGC.js delete mode 100644 public/build/assets/AuditItems-DIKou6QV.js rename public/build/assets/{AuditItemsComponent-C7YXeZNy.js => AuditItemsComponent-CfExzXjd.js} (86%) rename public/build/assets/{AuthenticatedLayout-ibOQYoAA.js => AuthenticatedLayout-BUPPfdhf.js} (99%) rename public/build/assets/{Checkbox-BkCSZ4j2.js => Checkbox-lS5kFIWr.js} (87%) rename public/build/assets/{ConfirmPassword-so3GG3w2.js => ConfirmPassword-C2XqwsFY.js} (77%) rename public/build/assets/{DangerButton-BzsUR-6s.js => DangerButton-Dm1RaOMo.js} (87%) rename public/build/assets/{Dashboard-BxMYZBzR.js => Dashboard-CXg49ttj.js} (64%) rename public/build/assets/{DeleteUserForm-BxQTPWXE.js => DeleteUserForm-BqxawtV2.js} (92%) rename public/build/assets/{Edit-Ctxd-0w5.js => Edit-CXTB1KZY.js} (57%) rename public/build/assets/{ErrorMessagePage-CEHNAMUs.js => ErrorMessagePage-Cgxki2j-.js} (79%) rename public/build/assets/{ForgotPassword-E4Xdb2Gm.js => ForgotPassword-d4vaXXEc.js} (75%) rename public/build/assets/{GuestLayout-BXXL9wvL.js => GuestLayout-C6KGR1m6.js} (65%) rename public/build/assets/{InputError-B8NEdD9b.js => InputError-KrPZcAOb.js} (53%) rename public/build/assets/{InputLabel-omYb-gwx.js => InputLabel-Wt1TYZ0A.js} (80%) rename public/build/assets/{Login-B8EDuc_R.js => Login-BTp1pdSs.js} (84%) rename public/build/assets/{MyTeam-BIW5O6XV.js => MyTeam-DDDfjcxp.js} (92%) rename public/build/assets/{MyTeamVoucherSets-Bv7bGieI.js => MyTeamVoucherSets-ibMyvl9J.js} (82%) rename public/build/assets/{PaginatorComponent-C4rhva1F.js => PaginatorComponent-CoSTMxRA.js} (93%) rename public/build/assets/{PrimaryButton-CiDAOitU.js => PrimaryButton-CIB81Yr_.js} (88%) rename public/build/assets/{Register-BYssDH9v.js => Register-DQ-ZQSRR.js} (87%) rename public/build/assets/{ResetPassword-CUxvjknQ.js => ResetPassword-CchZ69XZ.js} (85%) rename public/build/assets/{SecondaryButton-DvjXhVuA.js => SecondaryButton-CDQDA5dD.js} (88%) create mode 100644 public/build/assets/Team-D8FdxRdY.js delete mode 100644 public/build/assets/Team-r_mqDnKu.js delete mode 100644 public/build/assets/TeamNew-DgOStchy.js create mode 100644 public/build/assets/TeamNew-FoGsvxHV.js rename public/build/assets/{Teams-BCjNg0Vs.js => Teams-DZ43y8GK.js} (80%) rename public/build/assets/{TextInput-Fah8vm6N.js => TextInput-CvMe3C5R.js} (89%) rename public/build/assets/{UpdatePasswordForm-CmkItG6E.js => UpdatePasswordForm-DPOMbBpC.js} (90%) rename public/build/assets/{UpdateProfileInformationForm-C5Npts88.js => UpdateProfileInformationForm-BDimdmua.js} (90%) rename public/build/assets/{User-C8oSwsSl.js => User-BUwPGeNK.js} (92%) rename public/build/assets/{Users-fB1pYr8f.js => Users-DcLgqFTR.js} (76%) rename public/build/assets/{VerifyEmail-BHhXe_r5.js => VerifyEmail-3E5pnoqD.js} (83%) rename public/build/assets/{Voucher-DXAhWrlI.js => Voucher-Cp15zt8G.js} (91%) rename public/build/assets/{Voucher-DkFPHOzd.js => Voucher-KQ9YSfBi.js} (94%) rename public/build/assets/{VoucherRedeem-BIWa6ByF.js => VoucherRedeem-BBaMZ4wj.js} (93%) rename public/build/assets/{VoucherRedemption-Ba1mDZU6.js => VoucherRedemption-ByOfqClZ.js} (85%) rename public/build/assets/{VoucherRedemptions-BJ2Z8SKl.js => VoucherRedemptions-D2AdAWMF.js} (78%) delete mode 100644 public/build/assets/VoucherSet-C_FioOoJ.js rename public/build/assets/{VoucherSet-DMNIDxAN.js => VoucherSet-GzhgjQNh.js} (91%) create mode 100644 public/build/assets/VoucherSet-Zt9y5gmI.js rename public/build/assets/{VoucherSetMerchantTeamApproval-CY5mx9r_.js => VoucherSetMerchantTeamApproval-CR4Su_Hg.js} (91%) create mode 100644 public/build/assets/VoucherSetNew-ByqV2Gjw.js delete mode 100644 public/build/assets/VoucherSetNew-CQJWXEMg.js rename public/build/assets/{VoucherSets-CVZed9zf.js => VoucherSets-DE1EHO3P.js} (51%) rename public/build/assets/{VoucherSetsComponent-ChybDy2V.js => VoucherSetsComponent-BkEVj6A7.js} (88%) create mode 100644 public/build/assets/VoucherTemplateEdit-B8xCAdSL.js delete mode 100644 public/build/assets/VoucherTemplateEdit-C1HbSQCo.js delete mode 100644 public/build/assets/VoucherTemplateNew-B86O0X6X.js create mode 100644 public/build/assets/VoucherTemplateNew-BINnLav-.js create mode 100644 public/build/assets/Vouchers-Docqnsjz.js delete mode 100644 public/build/assets/Vouchers-HdBjeyaO.js rename public/build/assets/{VouchersComponent-C8urwp1U.js => VouchersComponent-B1EjqngZ.js} (89%) rename public/build/assets/{app-NB_nCFcw.js => app-DAMU3Vsb.js} (97%) rename public/build/assets/{dayjs.min-DM5MTW9C.js => dayjs.min-LcFuhhy0.js} (99%) rename public/build/assets/{localizedFormat-CoQqglmK.js => localizedFormat-DzqPGGN8.js} (91%) rename public/build/assets/{relativeTime-CdoPJJJp.js => relativeTime-Bgw1Nd-u.js} (95%) rename public/build/assets/{utc-CsIElMW4.js => utc-D9fONLNZ.js} (97%) diff --git a/app/Http/Controllers/Api/V1/Admin/ApiAdminVoucherSetsController.php b/app/Http/Controllers/Api/V1/Admin/ApiAdminVoucherSetsController.php index 8fdf0246..ac22b9b4 100644 --- a/app/Http/Controllers/Api/V1/Admin/ApiAdminVoucherSetsController.php +++ b/app/Http/Controllers/Api/V1/Admin/ApiAdminVoucherSetsController.php @@ -196,7 +196,7 @@ public function index(): JsonResponse public function store(): JsonResponse { $validationArray = [ - 'is_test' => [ + 'is_test' => [ 'required', 'boolean', ], @@ -205,39 +205,39 @@ public function store(): JsonResponse 'integer', Rule::exists('teams', 'id'), ], - 'merchant_team_ids' => [ + 'merchant_team_ids' => [ 'required', 'array', ], - 'merchant_team_ids.*' => [ + 'merchant_team_ids.*' => [ 'integer', Rule::exists('teams', 'id'), ], - 'funded_by_team_id' => [ + 'funded_by_team_id' => [ 'sometimes', 'nullable', 'integer', Rule::exists('teams', 'id'), ], - 'voucher_template_id' => [ + 'voucher_template_id' => [ 'required', 'integer', Rule::exists('voucher_templates', 'id'), ], - 'total_set_value' => [ + 'total_set_value' => [ 'required', 'integer', ], - 'denominations' => [ + 'denominations' => [ 'required', 'array', ], - 'expires_at' => [ + 'expires_at' => [ 'sometimes', 'string', 'nullable', ], - 'voucher_set_type' => [ + 'voucher_set_type' => [ 'required', 'string', ], @@ -249,7 +249,7 @@ public function store(): JsonResponse $this->responseCode = 400; $this->message = $validator->errors() - ->first(); + ->first(); return $this->respond(); @@ -260,8 +260,7 @@ public function store(): JsonResponse /** * Ensure the API user has a country against their current team. */ - if(!isset(Auth::user()->currentTeam->country_id)) - { + if (!isset(Auth::user()->currentTeam->country_id)) { $this->message = ApiResponse::RESPONSE_INVALID_TEAM->value; $this->responseCode = 400; @@ -278,8 +277,8 @@ public function store(): JsonResponse * Get the service team's merchants list as an array of IDs */ $teamMerchantTeams = TeamMerchantTeam::where('team_id', $serviceTeamId) - ->pluck('merchant_team_id') - ->toArray(); + ->pluck('merchant_team_id') + ->toArray(); /** * Validate that the merchant ID are all merchants for the service team. @@ -331,9 +330,9 @@ public function store(): JsonResponse } } - $model->created_by_user_id = Auth::id(); - $model->created_by_team_id = Auth::user()->current_team_id; - $model->currency_country_id = Auth::user()->currentTeam?->country_id; + $model->created_by_user_id = Auth::id(); + $model->created_by_team_id = Auth::user()->current_team_id; + $model->currency_country_id = Auth::user()->currentTeam->country_id; $model->save(); foreach ($merchantTeamIds as $merchantTeamId) { @@ -348,8 +347,7 @@ public function store(): JsonResponse DB::commit(); - } - catch (Exception $e) { + } catch (Exception $e) { DB::rollBack(); @@ -465,8 +463,7 @@ public function destroy(string $id) $model->delete(); $this->message = ApiResponse::RESPONSE_DELETED->value; - } - catch (Exception $e) { + } catch (Exception $e) { $this->responseCode = 500; $this->message = ApiResponse::RESPONSE_ERROR->value . ':' . $e->getMessage(); diff --git a/public/build/assets/APIAccessToken-dC82aTmh.js b/public/build/assets/APIAccessToken-A3K8OPmV.js similarity index 84% rename from public/build/assets/APIAccessToken-dC82aTmh.js rename to public/build/assets/APIAccessToken-A3K8OPmV.js index c18e146d..9850525e 100644 --- a/public/build/assets/APIAccessToken-dC82aTmh.js +++ b/public/build/assets/APIAccessToken-A3K8OPmV.js @@ -1 +1 @@ -import{_ as h,S as y}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as A,o as x,c as i,a as r,u as v,w as d,F as w,b as l,Z as g,d as t,t as a,e as n,i as T,f as u}from"./app-NB_nCFcw.js";import{_ as B}from"./AdminTopNavigation-n1SbFb1e.js";import{d as c}from"./dayjs.min-DM5MTW9C.js";import{r as C}from"./relativeTime-CdoPJJJp.js";import{l as N}from"./localizedFormat-CoQqglmK.js";import{P}from"./PrimaryButton-CiDAOitU.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={class:"card"},L={class:"card"},V={class:"my-1"},$={key:0,class:"my-1"},I={class:"my-1"},S={key:1,class:"my-1"},j={key:2,class:"my-1"},E={class:"card"},R={key:0},q={class:"card"},Q={__name:"APIAccessToken",props:{id:{required:!0,type:Number}},setup(k){const p=k,s=A({});x(()=>{_()});function m(o){return c.extend(C),c.extend(N),c(o).fromNow()+" ("+c(o).format("LLL")+")"}function _(){axios.get("/admin/user-personal-access-tokens/"+p.id+"?cached=false&relations=user").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}function b(){y.fire({title:"Are you sure you want to delete this token?",text:"This action cannot be undone, and the user will no longer be able to use this token. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Revoke this token",showCancelButton:!0}).then(o=>{o.isConfirmed&&axios.delete("/admin/user-personal-access-tokens/"+p.id).then(e=>{window.location.href=route("admin.api-access-tokens")}).catch(e=>{console.log(e)})})}return(o,e)=>(l(),i(w,null,[r(v(g),{title:"API Access Token"}),r(h,null,{header:d(()=>[r(B)]),default:d(()=>[t("div",F,[t("h2",null,a(s.value.name)+" (#"+a(s.value.id)+") ",1)]),t("div",L,[e[6]||(e[6]=t("div",{class:"card-header"}," API Access Token details ",-1)),t("div",V,[e[1]||(e[1]=t("span",{class:"font-bold"}," Name: ",-1)),n(" "+a(s.value.name),1)]),s.value.tokenable_id?(l(),i("div",$,[e[2]||(e[2]=t("span",{class:"font-bold"}," Assigned To: ",-1)),r(v(T),{href:o.route("admin.user",{id:s.value.tokenable_id})},{default:d(()=>{var f;return[n(a((f=s.value.user)==null?void 0:f.name),1)]}),_:1},8,["href"])])):u("",!0),t("div",I,[e[3]||(e[3]=t("span",{class:"font-bold"}," Created: ",-1)),n(" "+a(m(s.value.created_at)),1)]),s.value.last_used_at?(l(),i("div",S,[e[4]||(e[4]=t("span",{class:"font-bold"}," Last used: ",-1)),n(" "+a(m(s.value.last_used_at)),1)])):u("",!0),s.value.expires_at?(l(),i("div",j,[e[5]||(e[5]=t("span",{class:"font-bold"}," Expires: ",-1)),n(" "+a(m(s.value.expires_at)),1)])):u("",!0)]),t("div",E,[e[7]||(e[7]=t("div",{class:"card-header"}," Abilities ",-1)),s.value.abilities&&s.value.abilities.length?(l(),i("div",R,a(s.value.abilities.join(", ")),1)):u("",!0)]),t("div",q,[r(P,{onClick:e[0]||(e[0]=f=>b())},{default:d(()=>e[8]||(e[8]=[n(" Revoke this token ")])),_:1})])]),_:1})],64))}};export{Q as default}; +import{_ as h,S as y}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as A,o as x,c as i,a as r,u as v,w as d,F as w,b as l,Z as g,d as t,t as a,e as n,i as T,f as u}from"./app-DAMU3Vsb.js";import{_ as B}from"./AdminTopNavigation-DhGdPzlz.js";import{d as c}from"./dayjs.min-LcFuhhy0.js";import{r as C}from"./relativeTime-Bgw1Nd-u.js";import{l as N}from"./localizedFormat-DzqPGGN8.js";import{P}from"./PrimaryButton-CIB81Yr_.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={class:"card"},L={class:"card"},V={class:"my-1"},$={key:0,class:"my-1"},I={class:"my-1"},S={key:1,class:"my-1"},j={key:2,class:"my-1"},E={class:"card"},R={key:0},q={class:"card"},Q={__name:"APIAccessToken",props:{id:{required:!0,type:Number}},setup(k){const p=k,s=A({});x(()=>{_()});function m(o){return c.extend(C),c.extend(N),c(o).fromNow()+" ("+c(o).format("LLL")+")"}function _(){axios.get("/admin/user-personal-access-tokens/"+p.id+"?cached=false&relations=user").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}function b(){y.fire({title:"Are you sure you want to delete this token?",text:"This action cannot be undone, and the user will no longer be able to use this token. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Revoke this token",showCancelButton:!0}).then(o=>{o.isConfirmed&&axios.delete("/admin/user-personal-access-tokens/"+p.id).then(e=>{window.location.href=route("admin.api-access-tokens")}).catch(e=>{console.log(e)})})}return(o,e)=>(l(),i(w,null,[r(v(g),{title:"API Access Token"}),r(h,null,{header:d(()=>[r(B)]),default:d(()=>[t("div",F,[t("h2",null,a(s.value.name)+" (#"+a(s.value.id)+") ",1)]),t("div",L,[e[6]||(e[6]=t("div",{class:"card-header"}," API Access Token details ",-1)),t("div",V,[e[1]||(e[1]=t("span",{class:"font-bold"}," Name: ",-1)),n(" "+a(s.value.name),1)]),s.value.tokenable_id?(l(),i("div",$,[e[2]||(e[2]=t("span",{class:"font-bold"}," Assigned To: ",-1)),r(v(T),{href:o.route("admin.user",{id:s.value.tokenable_id})},{default:d(()=>{var f;return[n(a((f=s.value.user)==null?void 0:f.name),1)]}),_:1},8,["href"])])):u("",!0),t("div",I,[e[3]||(e[3]=t("span",{class:"font-bold"}," Created: ",-1)),n(" "+a(m(s.value.created_at)),1)]),s.value.last_used_at?(l(),i("div",S,[e[4]||(e[4]=t("span",{class:"font-bold"}," Last used: ",-1)),n(" "+a(m(s.value.last_used_at)),1)])):u("",!0),s.value.expires_at?(l(),i("div",j,[e[5]||(e[5]=t("span",{class:"font-bold"}," Expires: ",-1)),n(" "+a(m(s.value.expires_at)),1)])):u("",!0)]),t("div",E,[e[7]||(e[7]=t("div",{class:"card-header"}," Abilities ",-1)),s.value.abilities&&s.value.abilities.length?(l(),i("div",R,a(s.value.abilities.join(", ")),1)):u("",!0)]),t("div",q,[r(P,{onClick:e[0]||(e[0]=f=>b())},{default:d(()=>e[8]||(e[8]=[n(" Revoke this token ")])),_:1})])]),_:1})],64))}};export{Q as default}; diff --git a/public/build/assets/APIAccessTokens-BLhAXCxE.js b/public/build/assets/APIAccessTokens-W2G_Brik.js similarity index 79% rename from public/build/assets/APIAccessTokens-BLhAXCxE.js rename to public/build/assets/APIAccessTokens-W2G_Brik.js index 981b451e..acee9470 100644 --- a/public/build/assets/APIAccessTokens-BLhAXCxE.js +++ b/public/build/assets/APIAccessTokens-W2G_Brik.js @@ -1 +1 @@ -import{_}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as f,o as h,c as n,a as r,u,w as c,F as m,b as o,Z as v,d as e,g,f as p,h as x,i as k,t as l,e as w}from"./app-NB_nCFcw.js";import{_ as y}from"./AdminTopNavigation-n1SbFb1e.js";import{P as A}from"./PaginatorComponent-C4rhva1F.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./SecondaryButton-DvjXhVuA.js";const B={class:"card"},b={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},T={class:"font-bold"},C={class:"text-xs opacity-25"},N={key:0,class:"text-sm"},V={class:"flex justify-end items-center mt-4"},j={class:"w-full lg:w-1/3"},Z={__name:"APIAccessTokens",setup(I){const t=f({});h(()=>{d()});function d(i=1){axios.get("/admin/user-personal-access-tokens?cached=false&page="+i+"&relations=user&orderBy=id,desc").then(s=>{t.value=s.data.data}).catch(s=>{console.log(s)})}return(i,s)=>(o(),n(m,null,[r(u(v),{title:"API Access Tokens"}),r(_,null,{header:c(()=>[r(y)]),default:c(()=>[e("div",B,[t.value.data&&t.value.data.length?(o(),n("div",b,[(o(!0),n(m,null,g(t.value.data,a=>(o(),x(u(k),{href:i.route("admin.api-access-token",a.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",P,[e("div",null,[e("div",T,[e("span",C," #"+l(a.id),1),w(" "+l(a.name),1)]),a.user?(o(),n("div",N," Issued to: "+l(a.user.name),1)):p("",!0)]),s[0]||(s[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):p("",!0),e("div",V,[e("div",j,[r(A,{onSetDataPage:d,"pagination-data":t.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{Z as default}; +import{_}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as f,o as h,c as n,a as r,u,w as c,F as m,b as o,Z as v,d as e,g,f as p,h as x,i as k,t as l,e as w}from"./app-DAMU3Vsb.js";import{_ as y}from"./AdminTopNavigation-DhGdPzlz.js";import{P as A}from"./PaginatorComponent-CoSTMxRA.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./SecondaryButton-CDQDA5dD.js";const B={class:"card"},b={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},T={class:"font-bold"},C={class:"text-xs opacity-25"},N={key:0,class:"text-sm"},V={class:"flex justify-end items-center mt-4"},j={class:"w-full lg:w-1/3"},Z={__name:"APIAccessTokens",setup(I){const t=f({});h(()=>{d()});function d(i=1){axios.get("/admin/user-personal-access-tokens?cached=false&page="+i+"&relations=user&orderBy=id,desc").then(s=>{t.value=s.data.data}).catch(s=>{console.log(s)})}return(i,s)=>(o(),n(m,null,[r(u(v),{title:"API Access Tokens"}),r(_,null,{header:c(()=>[r(y)]),default:c(()=>[e("div",B,[t.value.data&&t.value.data.length?(o(),n("div",b,[(o(!0),n(m,null,g(t.value.data,a=>(o(),x(u(k),{href:i.route("admin.api-access-token",a.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",P,[e("div",null,[e("div",T,[e("span",C," #"+l(a.id),1),w(" "+l(a.name),1)]),a.user?(o(),n("div",N," Issued to: "+l(a.user.name),1)):p("",!0)]),s[0]||(s[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):p("",!0),e("div",V,[e("div",j,[r(A,{onSetDataPage:d,"pagination-data":t.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{Z as default}; diff --git a/public/build/assets/AdminHome-R5_UARE1.js b/public/build/assets/AdminHome-DTetEXIL.js similarity index 87% rename from public/build/assets/AdminHome-R5_UARE1.js rename to public/build/assets/AdminHome-DTetEXIL.js index 1eb34905..63466757 100644 --- a/public/build/assets/AdminHome-R5_UARE1.js +++ b/public/build/assets/AdminHome-DTetEXIL.js @@ -1 +1 @@ -import{S as p,_ as g}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as m,b as c,c as v,a as t,d as e,w as l,u as r,i as n,t as u,F as y,Z as w}from"./app-NB_nCFcw.js";import{_ as S}from"./AdminTopNavigation-n1SbFb1e.js";import{_ as d}from"./SecondaryButton-DvjXhVuA.js";import{_ as $}from"./AjaxLoadingIndicator-C8UwDW2j.js";import{_ as j}from"./AuditItemsComponent-C7YXeZNy.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./dayjs.min-DM5MTW9C.js";const V={class:"card"},b={class:"grid grid-cols-2 lg:grid-cols-4 gap-4"},B={class:"w-full"},N={class:"flex justify-center text-3xl"},D={class:"w-full"},F={class:"flex justify-center text-3xl"},R={class:"w-full"},k={class:"flex justify-center text-3xl"},C={class:"w-full"},O={class:"flex justify-center text-3xl"},A={class:"w-full"},E={class:"flex justify-center text-3xl"},H={class:"w-full"},I={class:"flex justify-center text-3xl"},T={class:"w-full"},U={class:"flex justify-center text-3xl"},Z={class:"w-full"},q={class:"flex justify-center text-3xl"},z={__name:"SystemStatisticsComponent",setup(h){const _=m(!1),o=m({num_users:0,num_teams:0,num_voucher_sets:0,num_vouchers:0,num_voucher_redemptions:0,sum_voucher_value_total:0,sum_voucher_value_redeemed:0,sum_voucher_value_remaining:0});function x(){_.value=!0,axios.get("/admin/system-statistics?cached=false&limit=1&orderBy=id,desc").then(a=>{var s,f;(s=a.data.data)!=null&&s.data[0]&&(o.value=(f=a.data.data)==null?void 0:f.data[0]),_.value=!1}).catch(a=>{p.fire({icon:"error",title:"Oops!",text:a.response.data.meta.message}),_.value=!1})}function i(a){return Intl.NumberFormat("en",{notation:"compact"}).format(a)}return x(),(a,s)=>(c(),v("div",V,[t($,{loading:_.value},null,8,["loading"]),e("div",b,[t(d,null,{default:l(()=>[e("div",B,[t(r(n),{href:a.route("admin.users"),class:"hover:no-underline"},{default:l(()=>[e("div",N,u(i(o.value.num_users)),1),s[0]||(s[0]=e("div",{class:"text-xs"}," # Users ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",D,[t(r(n),{href:a.route("admin.teams"),class:"hover:no-underline"},{default:l(()=>[e("div",F,u(i(o.value.num_teams)),1),s[1]||(s[1]=e("div",{class:"text-xs"}," # Teams ",-1))]),_:1},8,["href"])])]),_:1}),s[8]||(s[8]=e("div",{class:"hidden lg:inline"},null,-1)),s[9]||(s[9]=e("div",{class:"hidden lg:inline"},null,-1)),t(d,null,{default:l(()=>[e("div",R,[t(r(n),{href:a.route("admin.voucher-sets"),class:"hover:no-underline"},{default:l(()=>[e("div",k,u(i(o.value.num_voucher_sets)),1),s[2]||(s[2]=e("div",{class:"text-xs"}," # Voucher Sets ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",C,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",O,u(i(o.value.num_vouchers)),1),s[3]||(s[3]=e("div",{class:"text-xs"}," # Vouchers ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",A,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",E,u(i(o.value.sum_voucher_value_total)),1),s[4]||(s[4]=e("div",{class:"text-xs"}," $ Voucher (Original) ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",H,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",I,u(i(o.value.sum_voucher_value_remaining)),1),s[5]||(s[5]=e("div",{class:"text-xs"}," $ Vouchers Remaining ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",T,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",U,u(i(o.value.num_voucher_redemptions)),1),s[6]||(s[6]=e("div",{class:"text-xs"}," # Redemptions ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",Z,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",q,u(i(o.value.sum_voucher_value_redeemed)),1),s[7]||(s[7]=e("div",{class:"text-xs"}," $ Redemptions ",-1))]),_:1},8,["href"])])]),_:1})])]))}},ee={__name:"AdminHome",setup(h){return(_,o)=>(c(),v(y,null,[t(r(w),{title:"Dashboard"}),t(g,null,{header:l(()=>[t(S)]),default:l(()=>[t(z),t(j,{"is-admin":!0})]),_:1})],64))}};export{ee as default}; +import{S as p,_ as g}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as m,b as c,c as v,a as t,d as e,w as l,u as r,i as n,t as u,F as y,Z as w}from"./app-DAMU3Vsb.js";import{_ as S}from"./AdminTopNavigation-DhGdPzlz.js";import{_ as d}from"./SecondaryButton-CDQDA5dD.js";import{_ as $}from"./AjaxLoadingIndicator-jzrn0AI8.js";import{_ as j}from"./AuditItemsComponent-CfExzXjd.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./dayjs.min-LcFuhhy0.js";const V={class:"card"},b={class:"grid grid-cols-2 lg:grid-cols-4 gap-4"},B={class:"w-full"},N={class:"flex justify-center text-3xl"},D={class:"w-full"},F={class:"flex justify-center text-3xl"},R={class:"w-full"},k={class:"flex justify-center text-3xl"},C={class:"w-full"},O={class:"flex justify-center text-3xl"},A={class:"w-full"},E={class:"flex justify-center text-3xl"},H={class:"w-full"},I={class:"flex justify-center text-3xl"},T={class:"w-full"},U={class:"flex justify-center text-3xl"},Z={class:"w-full"},q={class:"flex justify-center text-3xl"},z={__name:"SystemStatisticsComponent",setup(h){const _=m(!1),o=m({num_users:0,num_teams:0,num_voucher_sets:0,num_vouchers:0,num_voucher_redemptions:0,sum_voucher_value_total:0,sum_voucher_value_redeemed:0,sum_voucher_value_remaining:0});function x(){_.value=!0,axios.get("/admin/system-statistics?cached=false&limit=1&orderBy=id,desc").then(a=>{var s,f;(s=a.data.data)!=null&&s.data[0]&&(o.value=(f=a.data.data)==null?void 0:f.data[0]),_.value=!1}).catch(a=>{p.fire({icon:"error",title:"Oops!",text:a.response.data.meta.message}),_.value=!1})}function i(a){return Intl.NumberFormat("en",{notation:"compact"}).format(a)}return x(),(a,s)=>(c(),v("div",V,[t($,{loading:_.value},null,8,["loading"]),e("div",b,[t(d,null,{default:l(()=>[e("div",B,[t(r(n),{href:a.route("admin.users"),class:"hover:no-underline"},{default:l(()=>[e("div",N,u(i(o.value.num_users)),1),s[0]||(s[0]=e("div",{class:"text-xs"}," # Users ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",D,[t(r(n),{href:a.route("admin.teams"),class:"hover:no-underline"},{default:l(()=>[e("div",F,u(i(o.value.num_teams)),1),s[1]||(s[1]=e("div",{class:"text-xs"}," # Teams ",-1))]),_:1},8,["href"])])]),_:1}),s[8]||(s[8]=e("div",{class:"hidden lg:inline"},null,-1)),s[9]||(s[9]=e("div",{class:"hidden lg:inline"},null,-1)),t(d,null,{default:l(()=>[e("div",R,[t(r(n),{href:a.route("admin.voucher-sets"),class:"hover:no-underline"},{default:l(()=>[e("div",k,u(i(o.value.num_voucher_sets)),1),s[2]||(s[2]=e("div",{class:"text-xs"}," # Voucher Sets ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",C,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",O,u(i(o.value.num_vouchers)),1),s[3]||(s[3]=e("div",{class:"text-xs"}," # Vouchers ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",A,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",E,u(i(o.value.sum_voucher_value_total)),1),s[4]||(s[4]=e("div",{class:"text-xs"}," $ Voucher (Original) ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",H,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",I,u(i(o.value.sum_voucher_value_remaining)),1),s[5]||(s[5]=e("div",{class:"text-xs"}," $ Vouchers Remaining ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",T,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",U,u(i(o.value.num_voucher_redemptions)),1),s[6]||(s[6]=e("div",{class:"text-xs"}," # Redemptions ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",Z,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",q,u(i(o.value.sum_voucher_value_redeemed)),1),s[7]||(s[7]=e("div",{class:"text-xs"}," $ Redemptions ",-1))]),_:1},8,["href"])])]),_:1})])]))}},ee={__name:"AdminHome",setup(h){return(_,o)=>(c(),v(y,null,[t(r(w),{title:"Dashboard"}),t(g,null,{header:l(()=>[t(S)]),default:l(()=>[t(z),t(j,{"is-admin":!0})]),_:1})],64))}};export{ee as default}; diff --git a/public/build/assets/AdminTeamCreateComponent-8M73tbc7.js b/public/build/assets/AdminTeamCreateComponent-9Mr34fB9.js similarity index 87% rename from public/build/assets/AdminTeamCreateComponent-8M73tbc7.js rename to public/build/assets/AdminTeamCreateComponent-9Mr34fB9.js index c6d76d27..8977beca 100644 --- a/public/build/assets/AdminTeamCreateComponent-8M73tbc7.js +++ b/public/build/assets/AdminTeamCreateComponent-9Mr34fB9.js @@ -1 +1 @@ -import{r as u,o as b,b as l,c as n,d as o,e as r,a as d,l as x,v as S,F as w,g as C,t as g,w as k,n as V,k as N}from"./app-NB_nCFcw.js";import{_ as B}from"./TextInput-Fah8vm6N.js";import{P as T}from"./PrimaryButton-CiDAOitU.js";import{S as c}from"./AuthenticatedLayout-ibOQYoAA.js";const h={class:"flex justify-start items-center mt-4"},j={class:"w-full font-bold",for:"name"},M={class:"flex justify-start items-center mt-4"},$={class:"w-full font-bold",for:"country"},D=["value"],F={class:"flex items-center justify-end mt-4"},E={__name:"AdminTeamCreateComponent",props:{searchStr:{default:null}},emits:["teamCreated"],setup(f,{emit:v}){const i=f,m=u({}),t=u({name:"",country_id:""}),p=v;b(()=>{i.searchStr!==null&&(t.value.name=i.searchStr),_()});function y(){axios.post("/admin/teams",t.value).then(a=>{c.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{let e=a.data.data;p("teamCreated",e),e.value={}})}).catch(a=>{c.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function _(){axios.get("/countries?limit=300").then(a=>{m.value=a.data.data}).catch(a=>{console.log(a)})}return(a,e)=>(l(),n("form",{onSubmit:e[3]||(e[3]=N(s=>y(),["prevent"]))},[o("div",null,[o("div",h,[o("label",j,[e[4]||(e[4]=r(" Team Name: ")),d(B,{id:"name",modelValue:t.value.name,"onUpdate:modelValue":e[0]||(e[0]=s=>t.value.name=s),class:"mt-1 block w-full font-normal",type:"text"},null,8,["modelValue"])])]),o("div",M,[o("label",$,[e[6]||(e[6]=r(" Country: ")),x(o("select",{id:"country","onUpdate:modelValue":e[1]||(e[1]=s=>t.value.country_id=s),class:"mt-1 block w-full font-normal"},[e[5]||(e[5]=o("option",{value:""},"Select a country",-1)),(l(!0),n(w,null,C(m.value.data,s=>(l(),n("option",{key:s.id,value:s.id},g(s.name),9,D))),128))],512),[[S,t.value.country_id]])])])]),o("div",F,[d(T,{class:V([{"opacity-25":!t.value.name||!t.value.country_id},"ms-4 hover:cursor-pointer"]),disabled:!t.value.name||!t.value.country_id,onClick:e[2]||(e[2]=()=>{})},{default:k(()=>e[7]||(e[7]=[r(" Submit ")])),_:1},8,["class","disabled"])])],32))}};export{E as _}; +import{r as u,o as b,b as l,c as n,d as o,e as r,a as d,l as x,v as S,F as w,g as C,t as g,w as k,n as V,k as N}from"./app-DAMU3Vsb.js";import{_ as B}from"./TextInput-CvMe3C5R.js";import{P as T}from"./PrimaryButton-CIB81Yr_.js";import{S as c}from"./AuthenticatedLayout-BUPPfdhf.js";const h={class:"flex justify-start items-center mt-4"},j={class:"w-full font-bold",for:"name"},M={class:"flex justify-start items-center mt-4"},$={class:"w-full font-bold",for:"country"},D=["value"],F={class:"flex items-center justify-end mt-4"},E={__name:"AdminTeamCreateComponent",props:{searchStr:{default:null}},emits:["teamCreated"],setup(f,{emit:v}){const i=f,m=u({}),t=u({name:"",country_id:""}),p=v;b(()=>{i.searchStr!==null&&(t.value.name=i.searchStr),_()});function y(){axios.post("/admin/teams",t.value).then(a=>{c.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{let e=a.data.data;p("teamCreated",e),e.value={}})}).catch(a=>{c.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function _(){axios.get("/countries?limit=300").then(a=>{m.value=a.data.data}).catch(a=>{console.log(a)})}return(a,e)=>(l(),n("form",{onSubmit:e[3]||(e[3]=N(s=>y(),["prevent"]))},[o("div",null,[o("div",h,[o("label",j,[e[4]||(e[4]=r(" Team Name: ")),d(B,{id:"name",modelValue:t.value.name,"onUpdate:modelValue":e[0]||(e[0]=s=>t.value.name=s),class:"mt-1 block w-full font-normal",type:"text"},null,8,["modelValue"])])]),o("div",M,[o("label",$,[e[6]||(e[6]=r(" Country: ")),x(o("select",{id:"country","onUpdate:modelValue":e[1]||(e[1]=s=>t.value.country_id=s),class:"mt-1 block w-full font-normal"},[e[5]||(e[5]=o("option",{value:""},"Select a country",-1)),(l(!0),n(w,null,C(m.value.data,s=>(l(),n("option",{key:s.id,value:s.id},g(s.name),9,D))),128))],512),[[S,t.value.country_id]])])])]),o("div",F,[d(T,{class:V([{"opacity-25":!t.value.name||!t.value.country_id},"ms-4 hover:cursor-pointer"]),disabled:!t.value.name||!t.value.country_id,onClick:e[2]||(e[2]=()=>{})},{default:k(()=>e[7]||(e[7]=[r(" Submit ")])),_:1},8,["class","disabled"])])],32))}};export{E as _}; diff --git a/public/build/assets/AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js b/public/build/assets/AdminTeamVoucherTemplateEditComponent-CTGs70yY.js similarity index 98% rename from public/build/assets/AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js rename to public/build/assets/AdminTeamVoucherTemplateEditComponent-CTGs70yY.js index c6faba83..a353b075 100644 --- a/public/build/assets/AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js +++ b/public/build/assets/AdminTeamVoucherTemplateEditComponent-CTGs70yY.js @@ -1 +1 @@ -import{r as V,p as je,x as Re,o as xe,y as Ue,z as Q,A as Be,b as x,c as D,d as s,B as ve,C as ce,f as R,a as g,F as $e,g as Me,w as _,e as b,t as J,u as Ne,i as qe,k as ne,l as F,s as k,n as oe}from"./app-NB_nCFcw.js";import{_ as We}from"./TextInput-Fah8vm6N.js";import{_ as w}from"./InputLabel-omYb-gwx.js";import{P as Ye}from"./PrimaryButton-CiDAOitU.js";import{S as ee}from"./AuthenticatedLayout-ibOQYoAA.js";import{_ as Ge}from"./SecondaryButton-DvjXhVuA.js";import{D as pe}from"./DangerButton-BzsUR-6s.js";import{_ as He}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Ke}from"./Checkbox-BkCSZ4j2.js";function q(t,r,e,i){function a(n){return n instanceof e?n:new e(function(f){f(n)})}return new(e||(e=Promise))(function(n,f){function p(v){try{l(i.next(v))}catch(m){f(m)}}function y(v){try{l(i.throw(v))}catch(m){f(m)}}function l(v){v.done?n(v.value):a(v.value).then(p,y)}l((i=i.apply(t,r||[])).next())})}function W(t,r){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=p(0),f.throw=p(1),f.return=p(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(l){return function(v){return y([l,v])}}function y(l){if(i)throw new TypeError("Generator is already executing.");for(;f&&(f=0,l[0]&&(e=0)),e;)try{if(i=1,a&&(n=l[0]&2?a.return:l[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,l[1])).done)return n;switch(a=0,n&&(l=[l[0]&2,n.value]),l[0]){case 0:case 1:n=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,a=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]0)&&!(a=i.next()).done;)n.push(a.value)}catch(p){f={error:p}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(f)throw f.error}}return n}function Qe(){for(var t=[],r=0;r0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function Ze(t){var r=t.name,e=r&&r.lastIndexOf(".")!==-1;if(e&&!t.type){var i=r.split(".").pop().toLowerCase(),a=Je.get(i);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var et=[".DS_Store","Thumbs.db"];function tt(t){return q(this,void 0,void 0,function(){return W(this,function(r){return[2,rt(t)&&t.dataTransfer?at(t.dataTransfer,t.type):nt(t)]})})}function rt(t){return!!t.dataTransfer}function nt(t){var r=ot(t.target)?t.target.files?ae(t.target.files):[]:[];return r.map(function(e){return re(e)})}function ot(t){return t!==null}function at(t,r){return q(this,void 0,void 0,function(){var e,i;return W(this,function(a){switch(a.label){case 0:return t.items?(e=ae(t.items).filter(function(n){return n.kind==="file"}),r!=="drop"?[2,e]:[4,Promise.all(e.map(it))]):[3,2];case 1:return i=a.sent(),[2,me(De(i))];case 2:return[2,me(ae(t.files).map(function(n){return re(n)}))]}})})}function me(t){return t.filter(function(r){return et.indexOf(r.name)===-1})}function ae(t){for(var r=[],e=0;e0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]e)return[!1,_e(e)];if(t.sizee)return[!1,_e(e)]}return[!0,null]}function L(){for(var t=[],r=0;r1||n&&f>=1&&r.length>f?!1:r.every(function(p){var y=Fe(p,e)[0],l=ke(p,i,a)[0];return y&&l})}var wt={disabled:!1,getFilesFromEvent:tt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function Et(t){t===void 0&&(t={});var r=V(P(P({},wt),t));je(function(){return P({},t)},function(u){r.value=P(P({},r.value),u)});var e=V(),i=V(),a=Re({isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]}),n=function(){i.value&&(a.isFileDialogActive=!0,i.value.value="",i.value.click())},f=function(){var u=r.value.onFileDialogCancel;a.isFileDialogActive&&setTimeout(function(){if(i.value){var c=i.value.files;c&&!c.length&&(a.isFileDialogActive=!1,typeof u=="function"&&u())}},300)};function p(){a.isFocused=!0}function y(){a.isFocused=!1}function l(){var u=r.value.noClick;u||(ct()?setTimeout(n,0):n())}var v=V([]),m=function(u){if(e.value){var c=e.value.$el||e.value;c.contains(u.target)||(u.preventDefault(),v.value=[])}};xe(function(){window.addEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.addEventListener("dragover",he,!1),document.addEventListener("drop",m,!1))}),Ue(function(){window.removeEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.removeEventListener("dragover",he),document.removeEventListener("drop",m))});function E(u){var c=r.value.noDragEventsBubbling;c&&u.stopPropagation()}function U(u){return st(this,void 0,void 0,function(){var c,S,O,T,A;return dt(this,function(j){switch(j.label){case 0:return c=r.value,S=c.getFilesFromEvent,O=c.noDragEventsBubbling,T=c.onDragEnter,u.preventDefault(),E(u),v.value=ie(ie([],v.value,!0),[u.target],!1),Z(u)?S?[4,S(u)]:[2]:[3,2];case 1:if(A=j.sent(),A||(A=[]),te(u)&&!O)return[2];a.draggedFiles=A,a.isDragActive=!0,T&&T(u),j.label=2;case 2:return[2]}})})}function h(u){var c=r.value.onDragOver;if(u.preventDefault(),E(u),u.dataTransfer)try{u.dataTransfer.dropEffect="copy"}catch{}return Z(u)&&c&&c(u),!1}function o(u){u.preventDefault(),E(u);var c=v.value.filter(function(T){if(!e.value)return!1;var A=e.value.$el||e.value;return A.contains(T)}),S=c.indexOf(u.target);if(S!==-1&&c.splice(S,1),v.value=c,!(c.length>0)){a.draggedFiles=[],a.isDragActive=!1;var O=r.value.onDragLeave;Z(u)&&O&&O(u)}}function C(u){u.preventDefault(),E(u),v.value=[];var c=r.value,S=c.getFilesFromEvent,O=c.noDragEventsBubbling,T=c.accept,A=c.minSize,j=c.maxSize,Y=c.multiple,G=c.maxFiles,H=c.onDrop,K=c.onDropRejected,X=c.onDropAccepted;if(Z(u)){if(!S)return;Promise.resolve(S(u)).then(function(Oe){if(!(te(u)&&!O)){var z=[],B=[];Oe.forEach(function($){var de=Fe($,T),Te=de[0],Ae=de[1],fe=ke($,A,j),Ie=fe[0],ze=fe[1];if(Te&&Ie)z.push($);else{var Le=[Ae,ze].filter(function(Ve){return Ve});B.push({file:$,errors:Le})}}),(!Y&&z.length>1||Y&&G>=1&&z.length>G)&&(z.forEach(function($){B.push({file:$,errors:[ht]})}),z.splice(0)),a.acceptedFiles=z,a.fileRejections=B,H&&H(z,B,u),B.length>0&&K&&K(B,u),z.length>0&&X&&X(z,u)}})}a.isFileDialogActive=!1,a.isDragActive=!1,a.draggedFiles=[],a.acceptedFiles=[],a.fileRejections=[]}var I=function(u){return r.value.disabled?void 0:u},M=function(u){return r.value.noKeyboard?void 0:I(u)},d=function(u){return r.value.noDrag?void 0:I(u)},le=function(u){u===void 0&&(u={});var c=u.onFocus,S=u.onBlur,O=u.onClick,T=u.onDragEnter,A=u.onDragenter,j=u.onDragOver,Y=u.onDragover,G=u.onDragLeave,H=u.onDragleave,K=u.onDrop,X=ye(u,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return P(P({onFocus:M(L(c,p)),onBlur:M(L(S,y)),onClick:I(L(O,l)),onDragenter:d(L(T,A,U)),onDragover:d(L(j,Y,h)),onDragleave:d(L(G,H,o)),onDrop:d(L(K,C)),ref:e},!r.value.disabled&&!r.value.noKeyboard?{tabIndex:0}:{}),X)},Ce=function(u){u.stopPropagation()};function Se(u){u===void 0&&(u={});var c=u.onChange,S=u.onClick,O=ye(u,["onChange","onClick"]),T={accept:r.value.accept,multiple:r.value.multiple,style:"display: none",type:"file",onChange:I(L(c,C)),onClick:I(L(S,Ce)),autoComplete:"off",tabIndex:-1,ref:i};return P(P({},T),O)}var ue=Q(function(){return a.draggedFiles?a.draggedFiles.length:0}),se=Q(function(){return ue.value>0&&Dt({files:a.draggedFiles,accept:r.value.accept,minSize:r.value.minSize,maxSize:r.value.maxSize,multiple:r.value.multiple,maxFiles:r.value.maxFiles})}),Pe=Q(function(){return ue.value>0&&!se.value});return P(P({},Be(a)),{isDragAccept:se,isDragReject:Pe,isFocused:Q(function(){return a.isFocused&&!r.value.disabled}),getRootProps:le,getInputProps:Se,rootRef:e,inputRef:i,open:I(n)})}const Ft={props:{folder:{type:String,required:!0},visibility:{type:String,default:null},allowedFileTypes:String,uploadSuccessFunction:Function},setup(t,r){const e=y=>{let l={folder:t.folder,files:[],visibility:"public"};const v=new FormData;for(var m=0;m{E.data.data&&r.emit("filesWereUploaded",E.data.data)}).catch(function(E){console.log(E),ee.fire({icon:"error",title:"Oops!",text:E.response.data.meta.message})})};function i(y,l){var v,m,E,U;(m=(v=l[0])==null?void 0:v.errors[0])!=null&&m.message?ee.fire({icon:"error",title:"Oops!",text:(U=(E=l[0])==null?void 0:E.errors[0])==null?void 0:U.message}):e(y)}let a={onDrop:i,maxFiles:1,accept:t.allowedFileTypes,multiple:0};const{getRootProps:n,getInputProps:f,...p}=Et(a);return{getRootProps:n,getInputProps:f,...p}}},kt={class:"border bg-gray-100 rounded p-8 text-center cursor-pointer hover:border-2 hover:border-dashed"},Ct={key:0},St={key:1};function Pt(t,r,e,i,a,n){return x(),D("div",null,[s("div",ve(ce(i.getRootProps())),[s("input",ve(ce(i.getInputProps())),null,16),s("div",kt,[t.isDragActive?(x(),D("p",Ct,"Drop the file here ...")):(x(),D("p",St,"Drag 'n' drop a files here, or click to select files"))])],16)])}const Ot=He(Ft,[["render",Pt]]),Tt={class:"card-header flex justify-between items-center"},At={class:"text-lg font-bold flex justify-start items-center"},It={key:0},zt={key:1},Lt={key:0},Vt={key:0},jt={class:"border-b border-dotted py-4"},Rt={key:0,class:"mt-4"},Ut={class:"grid grid-cols-4 gap-2"},Bt={key:1},$t={key:1},Mt={class:"border-b border-dotted py-4"},Nt={class:"flex justify-start items-center"},qt={key:0,class:"border-b border-dotted py-4"},Wt={key:1},Yt={class:"border-b border-dotted py-4"},Gt={class:"flex justify-start items-center"},Ht={key:0,class:"text-xs italic"},Kt={key:0,class:"py-4 border-b"},Xt={class:"grid grid-cols-4 gap-4"},Qt={class:"py-4 border-b"},Jt={for:"archived"},Zt={key:0},er={class:"flex items-center justify-start mt-4"},tr={key:0,class:"card"},rr=["src"],vr={__name:"AdminTeamVoucherTemplateEditComponent",props:{id:{type:Number,required:!1}},setup(t){const r=t,e=V({team_id:"",voucher_template_path:"",voucher_example_template_path:"",overlay_font_path:"fonts/OpenSans_Condensed-Bold.ttf",voucher_qr_size_px:200,voucher_qr_x:100,voucher_qr_y:200,voucher_code_size_px:32,voucher_code_x:100,voucher_code_y:160,voucher_code_prefix:"",voucher_expiry_size_px:32,voucher_expiry_x:100,voucher_expiry_y:220,voucher_expiry_prefix:"",voucher_value_size_px:32,voucher_value_x:100,voucher_value_y:280,voucher_value_prefix:""}),i=V(""),a=V({}),n=V({}),f=V(!1);function p(){axios.get("/admin/teams?where[]=name,like,*"+i.value+"*&limit=100").then(h=>{a.value=h.data.data}).catch(h=>{console.log(h)})}function y(h){e.value.team_id=h.id,n.value=h}function l(){let h="post",o="/admin/team-voucher-templates";r.id&&(h="put",o="/admin/team-voucher-templates/"+r.id),e.value.archive=f.value,axios[h](o,e.value).then(C=>{ee.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{window.location.href="/admin/team-voucher-template/"+C.data.data.id})}).catch(C=>{console.log(C)})}function v(){axios.get("/admin/team-voucher-templates/"+r.id+"?cached=false&relations=team").then(h=>{e.value=h.data.data,n.value=e.value.team,m()}).catch(h=>{console.log(h)})}function m(){e.value.archived_at?f.value=!0:f.value=!1}function E(){const h=new URLSearchParams(window.location.search);if(h.has("teamId")){const o=h.get("teamId");axios.get("/admin/teams/"+o).then(C=>{n.value=C.data.data,e.value.team_id=C.data.data.id,m()}).catch(C=>{console.log(C),ee.fire({title:"Oops..!",icon:"error",text:"I couldn't locate team with ID "+o+". Please start from scratch."})})}}xe(h=>{r.id?v():E()});function U(h){e.value.voucher_template_path=h[0]}return(h,o)=>{var C,I,M;return x(),D("div",{class:oe(["grid gap-4 container mx-auto",{"grid-cols-3":e.value.example_template_image_url}])},[s("div",{class:oe(["card",{"col-span-2":e.value.example_template_image_url}])},[s("div",Tt,[s("div",At,[(C=e.value)!=null&&C.id?(x(),D("div",It,"Edit")):(x(),D("div",zt,"New")),o[21]||(o[21]=s("div",{class:"ml-1"}," Voucher Template ",-1))]),e.value.archived_at?(x(),D("div",Lt,o[22]||(o[22]=[s("div",{class:"border-4 rounded-lg border-dashed p-2 px-8 border-red-300 text-red-300 text-xl font-bold"}," Archived ",-1)]))):R("",!0)]),e.value.team_id?(x(),D("div",$t,[s("div",Mt,[o[25]||(o[25]=s("div",{class:"text-sm font-bold"}," Selected Team ",-1)),s("div",Nt,[g(Ne(qe),{href:"/admin/team/"+e.value.team_id},{default:_(()=>{var d;return[b(J((d=n.value)==null?void 0:d.name),1)]}),_:1},8,["href"]),g(pe,{class:"ml-2 !p-1 !px-2",onClick:o[2]||(o[2]=ne(d=>e.value.team_id="",["prevent"]))},{default:_(()=>o[24]||(o[24]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})])]),s("div",null,[e.value.voucher_template_path?(x(),D("div",Wt,[s("div",Yt,[o[28]||(o[28]=s("div",{class:"text-sm font-bold"}," Selected Template ",-1)),s("div",Gt,[b(J((I=e.value)==null?void 0:I.voucher_template_path)+" ",1),g(pe,{class:"ml-2 !p-1 !px-2",onClick:o[3]||(o[3]=ne(d=>e.value.voucher_template_path="",["prevent"]))},{default:_(()=>o[27]||(o[27]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})]),e.value.voucher_example_template_path?R("",!0):(x(),D("div",Ht," Example image will show after we have saved/re-saved. "))])])):(x(),D("div",qt,[o[26]||(o[26]=s("div",null," Next, Upload a template (PNG only): ",-1)),g(Ot,{onFilesWereUploaded:U,folder:"/teams/"+e.value.team_id+"/voucher-templates","allowed-file-types":"image/png"},null,8,["folder"])]))]),e.value.voucher_example_template_path?(x(),D("div",Kt,[o[45]||(o[45]=s("div",{class:"text-sm font-bold mb-4"}," Template Positions ",-1)),s("div",Xt,[s("div",null,[g(w,null,{default:_(()=>o[29]||(o[29]=[b(" QR Size ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[4]||(o[4]=d=>e.value.voucher_qr_size_px=d)},null,512),[[k,e.value.voucher_qr_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[30]||(o[30]=[b(" QR Coords: X Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[5]||(o[5]=d=>e.value.voucher_qr_x=d)},null,512),[[k,e.value.voucher_qr_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[31]||(o[31]=[b(" QR Coords: Y Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[6]||(o[6]=d=>e.value.voucher_qr_y=d)},null,512),[[k,e.value.voucher_qr_y,void 0,{number:!0}]])]),o[44]||(o[44]=s("div",null,null,-1)),s("div",null,[g(w,null,{default:_(()=>o[32]||(o[32]=[b(" Voucher Code: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[7]||(o[7]=d=>e.value.voucher_code_size_px=d)},null,512),[[k,e.value.voucher_code_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[33]||(o[33]=[b(" Code Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[8]||(o[8]=d=>e.value.voucher_code_x=d)},null,512),[[k,e.value.voucher_code_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[34]||(o[34]=[b(" Code Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[9]||(o[9]=d=>e.value.voucher_code_y=d)},null,512),[[k,e.value.voucher_code_y,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[35]||(o[35]=[b(" Code Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=d=>e.value.voucher_code_prefix=d)},null,512),[[k,e.value.voucher_code_prefix]])]),s("div",null,[g(w,null,{default:_(()=>o[36]||(o[36]=[b(" Voucher Expiry: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[11]||(o[11]=d=>e.value.voucher_expiry_size_px=d)},null,512),[[k,e.value.voucher_expiry_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[37]||(o[37]=[b(" Expiry Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[12]||(o[12]=d=>e.value.voucher_expiry_x=d)},null,512),[[k,e.value.voucher_expiry_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[38]||(o[38]=[b(" Expiry Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[13]||(o[13]=d=>e.value.voucher_expiry_y=d)},null,512),[[k,e.value.voucher_expiry_y,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[39]||(o[39]=[b(" Expiry Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=d=>e.value.voucher_expiry_prefix=d)},null,512),[[k,e.value.voucher_expiry_prefix]])]),s("div",null,[g(w,null,{default:_(()=>o[40]||(o[40]=[b(" Voucher Value: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[15]||(o[15]=d=>e.value.voucher_value_size_px=d)},null,512),[[k,e.value.voucher_value_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[41]||(o[41]=[b(" Value Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[16]||(o[16]=d=>e.value.voucher_value_x=d)},null,512),[[k,e.value.voucher_value_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[42]||(o[42]=[b(" Value Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=d=>e.value.voucher_value_y=d)},null,512),[[k,e.value.voucher_value_y,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[43]||(o[43]=[b(" Value Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[18]||(o[18]=d=>e.value.voucher_value_prefix=d)},null,512),[[k,e.value.voucher_value_prefix]])])])])):R("",!0)])):(x(),D("div",Vt,[s("div",jt,[s("div",null,[g(w,{for:"name",value:"First, Select A Team.."}),g(We,{onKeyup:o[0]||(o[0]=d=>p()),modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=d=>i.value=d),class:"mt-1 block w-full",placeholder:"Search team by name..",type:"search"},null,8,["modelValue"])]),i.value.length>0&&a.value.total>0?(x(),D("div",Rt,[s("div",Ut,[(x(!0),D($e,null,Me(a.value.data,d=>(x(),D("div",null,[g(Ge,{class:"truncate w-full py-2 flex justify-center",onClick:le=>y(d)},{default:_(()=>[b(J(d==null?void 0:d.name),1)]),_:2},1032,["onClick"])]))),256))])])):R("",!0),i.value.length>0&&a.value.total===0?(x(),D("div",Bt,o[23]||(o[23]=[s("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline"}," No teams found. ",-1)]))):R("",!0)])])),s("div",Qt,[g(w,{for:"archived",value:"Archive / Unarchive this template"}),s("label",Jt,[g(Ke,{id:"archived",checked:f.value,modelValue:f.value,"onUpdate:modelValue":o[19]||(o[19]=d=>f.value=d)},null,8,["checked","modelValue"]),o[46]||(o[46]=s("span",{class:"ml-2"}," Archived ",-1)),(M=e.value)!=null&&M.archived_at?(x(),D("span",Zt,"@ "+J(e.value.archived_at),1)):R("",!0)])]),s("div",er,[g(Ye,{onClick:o[20]||(o[20]=ne(d=>l(),["prevent"])),class:oe(["",{"opacity-25":!e.value.voucher_template_path}]),disabled:!e.value.voucher_template_path},{default:_(()=>o[47]||(o[47]=[b(" Submit ")])),_:1},8,["class","disabled"])])],2),e.value.example_template_image_url?(x(),D("div",tr,[o[48]||(o[48]=s("div",{class:"card-header"},[s("div",{class:"text-lg font-bold"}," Preview ")],-1)),s("img",{src:e.value.example_template_image_url,alt:"",class:"border rounded w-full"},null,8,rr)])):R("",!0)],2)}}};export{vr as _}; +import{r as V,p as je,x as Re,o as xe,y as Ue,z as Q,A as Be,b as x,c as D,d as s,B as ve,C as ce,f as R,a as g,F as $e,g as Me,w as _,e as b,t as J,u as Ne,i as qe,k as ne,l as F,s as k,n as oe}from"./app-DAMU3Vsb.js";import{_ as We}from"./TextInput-CvMe3C5R.js";import{_ as w}from"./InputLabel-Wt1TYZ0A.js";import{P as Ye}from"./PrimaryButton-CIB81Yr_.js";import{S as ee}from"./AuthenticatedLayout-BUPPfdhf.js";import{_ as Ge}from"./SecondaryButton-CDQDA5dD.js";import{D as pe}from"./DangerButton-Dm1RaOMo.js";import{_ as He}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Ke}from"./Checkbox-lS5kFIWr.js";function q(t,r,e,i){function a(n){return n instanceof e?n:new e(function(f){f(n)})}return new(e||(e=Promise))(function(n,f){function p(v){try{l(i.next(v))}catch(m){f(m)}}function y(v){try{l(i.throw(v))}catch(m){f(m)}}function l(v){v.done?n(v.value):a(v.value).then(p,y)}l((i=i.apply(t,r||[])).next())})}function W(t,r){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=p(0),f.throw=p(1),f.return=p(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(l){return function(v){return y([l,v])}}function y(l){if(i)throw new TypeError("Generator is already executing.");for(;f&&(f=0,l[0]&&(e=0)),e;)try{if(i=1,a&&(n=l[0]&2?a.return:l[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,l[1])).done)return n;switch(a=0,n&&(l=[l[0]&2,n.value]),l[0]){case 0:case 1:n=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,a=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]0)&&!(a=i.next()).done;)n.push(a.value)}catch(p){f={error:p}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(f)throw f.error}}return n}function Qe(){for(var t=[],r=0;r0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function Ze(t){var r=t.name,e=r&&r.lastIndexOf(".")!==-1;if(e&&!t.type){var i=r.split(".").pop().toLowerCase(),a=Je.get(i);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var et=[".DS_Store","Thumbs.db"];function tt(t){return q(this,void 0,void 0,function(){return W(this,function(r){return[2,rt(t)&&t.dataTransfer?at(t.dataTransfer,t.type):nt(t)]})})}function rt(t){return!!t.dataTransfer}function nt(t){var r=ot(t.target)?t.target.files?ae(t.target.files):[]:[];return r.map(function(e){return re(e)})}function ot(t){return t!==null}function at(t,r){return q(this,void 0,void 0,function(){var e,i;return W(this,function(a){switch(a.label){case 0:return t.items?(e=ae(t.items).filter(function(n){return n.kind==="file"}),r!=="drop"?[2,e]:[4,Promise.all(e.map(it))]):[3,2];case 1:return i=a.sent(),[2,me(De(i))];case 2:return[2,me(ae(t.files).map(function(n){return re(n)}))]}})})}function me(t){return t.filter(function(r){return et.indexOf(r.name)===-1})}function ae(t){for(var r=[],e=0;e0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]e)return[!1,_e(e)];if(t.sizee)return[!1,_e(e)]}return[!0,null]}function L(){for(var t=[],r=0;r1||n&&f>=1&&r.length>f?!1:r.every(function(p){var y=Fe(p,e)[0],l=ke(p,i,a)[0];return y&&l})}var wt={disabled:!1,getFilesFromEvent:tt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function Et(t){t===void 0&&(t={});var r=V(P(P({},wt),t));je(function(){return P({},t)},function(u){r.value=P(P({},r.value),u)});var e=V(),i=V(),a=Re({isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]}),n=function(){i.value&&(a.isFileDialogActive=!0,i.value.value="",i.value.click())},f=function(){var u=r.value.onFileDialogCancel;a.isFileDialogActive&&setTimeout(function(){if(i.value){var c=i.value.files;c&&!c.length&&(a.isFileDialogActive=!1,typeof u=="function"&&u())}},300)};function p(){a.isFocused=!0}function y(){a.isFocused=!1}function l(){var u=r.value.noClick;u||(ct()?setTimeout(n,0):n())}var v=V([]),m=function(u){if(e.value){var c=e.value.$el||e.value;c.contains(u.target)||(u.preventDefault(),v.value=[])}};xe(function(){window.addEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.addEventListener("dragover",he,!1),document.addEventListener("drop",m,!1))}),Ue(function(){window.removeEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.removeEventListener("dragover",he),document.removeEventListener("drop",m))});function E(u){var c=r.value.noDragEventsBubbling;c&&u.stopPropagation()}function U(u){return st(this,void 0,void 0,function(){var c,S,O,T,A;return dt(this,function(j){switch(j.label){case 0:return c=r.value,S=c.getFilesFromEvent,O=c.noDragEventsBubbling,T=c.onDragEnter,u.preventDefault(),E(u),v.value=ie(ie([],v.value,!0),[u.target],!1),Z(u)?S?[4,S(u)]:[2]:[3,2];case 1:if(A=j.sent(),A||(A=[]),te(u)&&!O)return[2];a.draggedFiles=A,a.isDragActive=!0,T&&T(u),j.label=2;case 2:return[2]}})})}function h(u){var c=r.value.onDragOver;if(u.preventDefault(),E(u),u.dataTransfer)try{u.dataTransfer.dropEffect="copy"}catch{}return Z(u)&&c&&c(u),!1}function o(u){u.preventDefault(),E(u);var c=v.value.filter(function(T){if(!e.value)return!1;var A=e.value.$el||e.value;return A.contains(T)}),S=c.indexOf(u.target);if(S!==-1&&c.splice(S,1),v.value=c,!(c.length>0)){a.draggedFiles=[],a.isDragActive=!1;var O=r.value.onDragLeave;Z(u)&&O&&O(u)}}function C(u){u.preventDefault(),E(u),v.value=[];var c=r.value,S=c.getFilesFromEvent,O=c.noDragEventsBubbling,T=c.accept,A=c.minSize,j=c.maxSize,Y=c.multiple,G=c.maxFiles,H=c.onDrop,K=c.onDropRejected,X=c.onDropAccepted;if(Z(u)){if(!S)return;Promise.resolve(S(u)).then(function(Oe){if(!(te(u)&&!O)){var z=[],B=[];Oe.forEach(function($){var de=Fe($,T),Te=de[0],Ae=de[1],fe=ke($,A,j),Ie=fe[0],ze=fe[1];if(Te&&Ie)z.push($);else{var Le=[Ae,ze].filter(function(Ve){return Ve});B.push({file:$,errors:Le})}}),(!Y&&z.length>1||Y&&G>=1&&z.length>G)&&(z.forEach(function($){B.push({file:$,errors:[ht]})}),z.splice(0)),a.acceptedFiles=z,a.fileRejections=B,H&&H(z,B,u),B.length>0&&K&&K(B,u),z.length>0&&X&&X(z,u)}})}a.isFileDialogActive=!1,a.isDragActive=!1,a.draggedFiles=[],a.acceptedFiles=[],a.fileRejections=[]}var I=function(u){return r.value.disabled?void 0:u},M=function(u){return r.value.noKeyboard?void 0:I(u)},d=function(u){return r.value.noDrag?void 0:I(u)},le=function(u){u===void 0&&(u={});var c=u.onFocus,S=u.onBlur,O=u.onClick,T=u.onDragEnter,A=u.onDragenter,j=u.onDragOver,Y=u.onDragover,G=u.onDragLeave,H=u.onDragleave,K=u.onDrop,X=ye(u,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return P(P({onFocus:M(L(c,p)),onBlur:M(L(S,y)),onClick:I(L(O,l)),onDragenter:d(L(T,A,U)),onDragover:d(L(j,Y,h)),onDragleave:d(L(G,H,o)),onDrop:d(L(K,C)),ref:e},!r.value.disabled&&!r.value.noKeyboard?{tabIndex:0}:{}),X)},Ce=function(u){u.stopPropagation()};function Se(u){u===void 0&&(u={});var c=u.onChange,S=u.onClick,O=ye(u,["onChange","onClick"]),T={accept:r.value.accept,multiple:r.value.multiple,style:"display: none",type:"file",onChange:I(L(c,C)),onClick:I(L(S,Ce)),autoComplete:"off",tabIndex:-1,ref:i};return P(P({},T),O)}var ue=Q(function(){return a.draggedFiles?a.draggedFiles.length:0}),se=Q(function(){return ue.value>0&&Dt({files:a.draggedFiles,accept:r.value.accept,minSize:r.value.minSize,maxSize:r.value.maxSize,multiple:r.value.multiple,maxFiles:r.value.maxFiles})}),Pe=Q(function(){return ue.value>0&&!se.value});return P(P({},Be(a)),{isDragAccept:se,isDragReject:Pe,isFocused:Q(function(){return a.isFocused&&!r.value.disabled}),getRootProps:le,getInputProps:Se,rootRef:e,inputRef:i,open:I(n)})}const Ft={props:{folder:{type:String,required:!0},visibility:{type:String,default:null},allowedFileTypes:String,uploadSuccessFunction:Function},setup(t,r){const e=y=>{let l={folder:t.folder,files:[],visibility:"public"};const v=new FormData;for(var m=0;m{E.data.data&&r.emit("filesWereUploaded",E.data.data)}).catch(function(E){console.log(E),ee.fire({icon:"error",title:"Oops!",text:E.response.data.meta.message})})};function i(y,l){var v,m,E,U;(m=(v=l[0])==null?void 0:v.errors[0])!=null&&m.message?ee.fire({icon:"error",title:"Oops!",text:(U=(E=l[0])==null?void 0:E.errors[0])==null?void 0:U.message}):e(y)}let a={onDrop:i,maxFiles:1,accept:t.allowedFileTypes,multiple:0};const{getRootProps:n,getInputProps:f,...p}=Et(a);return{getRootProps:n,getInputProps:f,...p}}},kt={class:"border bg-gray-100 rounded p-8 text-center cursor-pointer hover:border-2 hover:border-dashed"},Ct={key:0},St={key:1};function Pt(t,r,e,i,a,n){return x(),D("div",null,[s("div",ve(ce(i.getRootProps())),[s("input",ve(ce(i.getInputProps())),null,16),s("div",kt,[t.isDragActive?(x(),D("p",Ct,"Drop the file here ...")):(x(),D("p",St,"Drag 'n' drop a files here, or click to select files"))])],16)])}const Ot=He(Ft,[["render",Pt]]),Tt={class:"card-header flex justify-between items-center"},At={class:"text-lg font-bold flex justify-start items-center"},It={key:0},zt={key:1},Lt={key:0},Vt={key:0},jt={class:"border-b border-dotted py-4"},Rt={key:0,class:"mt-4"},Ut={class:"grid grid-cols-4 gap-2"},Bt={key:1},$t={key:1},Mt={class:"border-b border-dotted py-4"},Nt={class:"flex justify-start items-center"},qt={key:0,class:"border-b border-dotted py-4"},Wt={key:1},Yt={class:"border-b border-dotted py-4"},Gt={class:"flex justify-start items-center"},Ht={key:0,class:"text-xs italic"},Kt={key:0,class:"py-4 border-b"},Xt={class:"grid grid-cols-4 gap-4"},Qt={class:"py-4 border-b"},Jt={for:"archived"},Zt={key:0},er={class:"flex items-center justify-start mt-4"},tr={key:0,class:"card"},rr=["src"],vr={__name:"AdminTeamVoucherTemplateEditComponent",props:{id:{type:Number,required:!1}},setup(t){const r=t,e=V({team_id:"",voucher_template_path:"",voucher_example_template_path:"",overlay_font_path:"fonts/OpenSans_Condensed-Bold.ttf",voucher_qr_size_px:200,voucher_qr_x:100,voucher_qr_y:200,voucher_code_size_px:32,voucher_code_x:100,voucher_code_y:160,voucher_code_prefix:"",voucher_expiry_size_px:32,voucher_expiry_x:100,voucher_expiry_y:220,voucher_expiry_prefix:"",voucher_value_size_px:32,voucher_value_x:100,voucher_value_y:280,voucher_value_prefix:""}),i=V(""),a=V({}),n=V({}),f=V(!1);function p(){axios.get("/admin/teams?where[]=name,like,*"+i.value+"*&limit=100").then(h=>{a.value=h.data.data}).catch(h=>{console.log(h)})}function y(h){e.value.team_id=h.id,n.value=h}function l(){let h="post",o="/admin/team-voucher-templates";r.id&&(h="put",o="/admin/team-voucher-templates/"+r.id),e.value.archive=f.value,axios[h](o,e.value).then(C=>{ee.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{window.location.href="/admin/team-voucher-template/"+C.data.data.id})}).catch(C=>{console.log(C)})}function v(){axios.get("/admin/team-voucher-templates/"+r.id+"?cached=false&relations=team").then(h=>{e.value=h.data.data,n.value=e.value.team,m()}).catch(h=>{console.log(h)})}function m(){e.value.archived_at?f.value=!0:f.value=!1}function E(){const h=new URLSearchParams(window.location.search);if(h.has("teamId")){const o=h.get("teamId");axios.get("/admin/teams/"+o).then(C=>{n.value=C.data.data,e.value.team_id=C.data.data.id,m()}).catch(C=>{console.log(C),ee.fire({title:"Oops..!",icon:"error",text:"I couldn't locate team with ID "+o+". Please start from scratch."})})}}xe(h=>{r.id?v():E()});function U(h){e.value.voucher_template_path=h[0]}return(h,o)=>{var C,I,M;return x(),D("div",{class:oe(["grid gap-4 container mx-auto",{"grid-cols-3":e.value.example_template_image_url}])},[s("div",{class:oe(["card",{"col-span-2":e.value.example_template_image_url}])},[s("div",Tt,[s("div",At,[(C=e.value)!=null&&C.id?(x(),D("div",It,"Edit")):(x(),D("div",zt,"New")),o[21]||(o[21]=s("div",{class:"ml-1"}," Voucher Template ",-1))]),e.value.archived_at?(x(),D("div",Lt,o[22]||(o[22]=[s("div",{class:"border-4 rounded-lg border-dashed p-2 px-8 border-red-300 text-red-300 text-xl font-bold"}," Archived ",-1)]))):R("",!0)]),e.value.team_id?(x(),D("div",$t,[s("div",Mt,[o[25]||(o[25]=s("div",{class:"text-sm font-bold"}," Selected Team ",-1)),s("div",Nt,[g(Ne(qe),{href:"/admin/team/"+e.value.team_id},{default:_(()=>{var d;return[b(J((d=n.value)==null?void 0:d.name),1)]}),_:1},8,["href"]),g(pe,{class:"ml-2 !p-1 !px-2",onClick:o[2]||(o[2]=ne(d=>e.value.team_id="",["prevent"]))},{default:_(()=>o[24]||(o[24]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})])]),s("div",null,[e.value.voucher_template_path?(x(),D("div",Wt,[s("div",Yt,[o[28]||(o[28]=s("div",{class:"text-sm font-bold"}," Selected Template ",-1)),s("div",Gt,[b(J((I=e.value)==null?void 0:I.voucher_template_path)+" ",1),g(pe,{class:"ml-2 !p-1 !px-2",onClick:o[3]||(o[3]=ne(d=>e.value.voucher_template_path="",["prevent"]))},{default:_(()=>o[27]||(o[27]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})]),e.value.voucher_example_template_path?R("",!0):(x(),D("div",Ht," Example image will show after we have saved/re-saved. "))])])):(x(),D("div",qt,[o[26]||(o[26]=s("div",null," Next, Upload a template (PNG only): ",-1)),g(Ot,{onFilesWereUploaded:U,folder:"/teams/"+e.value.team_id+"/voucher-templates","allowed-file-types":"image/png"},null,8,["folder"])]))]),e.value.voucher_example_template_path?(x(),D("div",Kt,[o[45]||(o[45]=s("div",{class:"text-sm font-bold mb-4"}," Template Positions ",-1)),s("div",Xt,[s("div",null,[g(w,null,{default:_(()=>o[29]||(o[29]=[b(" QR Size ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[4]||(o[4]=d=>e.value.voucher_qr_size_px=d)},null,512),[[k,e.value.voucher_qr_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[30]||(o[30]=[b(" QR Coords: X Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[5]||(o[5]=d=>e.value.voucher_qr_x=d)},null,512),[[k,e.value.voucher_qr_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[31]||(o[31]=[b(" QR Coords: Y Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[6]||(o[6]=d=>e.value.voucher_qr_y=d)},null,512),[[k,e.value.voucher_qr_y,void 0,{number:!0}]])]),o[44]||(o[44]=s("div",null,null,-1)),s("div",null,[g(w,null,{default:_(()=>o[32]||(o[32]=[b(" Voucher Code: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[7]||(o[7]=d=>e.value.voucher_code_size_px=d)},null,512),[[k,e.value.voucher_code_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[33]||(o[33]=[b(" Code Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[8]||(o[8]=d=>e.value.voucher_code_x=d)},null,512),[[k,e.value.voucher_code_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[34]||(o[34]=[b(" Code Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[9]||(o[9]=d=>e.value.voucher_code_y=d)},null,512),[[k,e.value.voucher_code_y,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[35]||(o[35]=[b(" Code Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=d=>e.value.voucher_code_prefix=d)},null,512),[[k,e.value.voucher_code_prefix]])]),s("div",null,[g(w,null,{default:_(()=>o[36]||(o[36]=[b(" Voucher Expiry: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[11]||(o[11]=d=>e.value.voucher_expiry_size_px=d)},null,512),[[k,e.value.voucher_expiry_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[37]||(o[37]=[b(" Expiry Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[12]||(o[12]=d=>e.value.voucher_expiry_x=d)},null,512),[[k,e.value.voucher_expiry_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[38]||(o[38]=[b(" Expiry Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[13]||(o[13]=d=>e.value.voucher_expiry_y=d)},null,512),[[k,e.value.voucher_expiry_y,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[39]||(o[39]=[b(" Expiry Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=d=>e.value.voucher_expiry_prefix=d)},null,512),[[k,e.value.voucher_expiry_prefix]])]),s("div",null,[g(w,null,{default:_(()=>o[40]||(o[40]=[b(" Voucher Value: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[15]||(o[15]=d=>e.value.voucher_value_size_px=d)},null,512),[[k,e.value.voucher_value_size_px,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[41]||(o[41]=[b(" Value Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[16]||(o[16]=d=>e.value.voucher_value_x=d)},null,512),[[k,e.value.voucher_value_x,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[42]||(o[42]=[b(" Value Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=d=>e.value.voucher_value_y=d)},null,512),[[k,e.value.voucher_value_y,void 0,{number:!0}]])]),s("div",null,[g(w,null,{default:_(()=>o[43]||(o[43]=[b(" Value Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[18]||(o[18]=d=>e.value.voucher_value_prefix=d)},null,512),[[k,e.value.voucher_value_prefix]])])])])):R("",!0)])):(x(),D("div",Vt,[s("div",jt,[s("div",null,[g(w,{for:"name",value:"First, Select A Team.."}),g(We,{onKeyup:o[0]||(o[0]=d=>p()),modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=d=>i.value=d),class:"mt-1 block w-full",placeholder:"Search team by name..",type:"search"},null,8,["modelValue"])]),i.value.length>0&&a.value.total>0?(x(),D("div",Rt,[s("div",Ut,[(x(!0),D($e,null,Me(a.value.data,d=>(x(),D("div",null,[g(Ge,{class:"truncate w-full py-2 flex justify-center",onClick:le=>y(d)},{default:_(()=>[b(J(d==null?void 0:d.name),1)]),_:2},1032,["onClick"])]))),256))])])):R("",!0),i.value.length>0&&a.value.total===0?(x(),D("div",Bt,o[23]||(o[23]=[s("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline"}," No teams found. ",-1)]))):R("",!0)])])),s("div",Qt,[g(w,{for:"archived",value:"Archive / Unarchive this template"}),s("label",Jt,[g(Ke,{id:"archived",checked:f.value,modelValue:f.value,"onUpdate:modelValue":o[19]||(o[19]=d=>f.value=d)},null,8,["checked","modelValue"]),o[46]||(o[46]=s("span",{class:"ml-2"}," Archived ",-1)),(M=e.value)!=null&&M.archived_at?(x(),D("span",Zt,"@ "+J(e.value.archived_at),1)):R("",!0)])]),s("div",er,[g(Ye,{onClick:o[20]||(o[20]=ne(d=>l(),["prevent"])),class:oe(["",{"opacity-25":!e.value.voucher_template_path}]),disabled:!e.value.voucher_template_path},{default:_(()=>o[47]||(o[47]=[b(" Submit ")])),_:1},8,["class","disabled"])])],2),e.value.example_template_image_url?(x(),D("div",tr,[o[48]||(o[48]=s("div",{class:"card-header"},[s("div",{class:"text-lg font-bold"}," Preview ")],-1)),s("img",{src:e.value.example_template_image_url,alt:"",class:"border rounded w-full"},null,8,rr)])):R("",!0)],2)}}};export{vr as _}; diff --git a/public/build/assets/AdminTopNavigation-n1SbFb1e.js b/public/build/assets/AdminTopNavigation-DhGdPzlz.js similarity index 97% rename from public/build/assets/AdminTopNavigation-n1SbFb1e.js rename to public/build/assets/AdminTopNavigation-DhGdPzlz.js index cbd093d1..24211171 100644 --- a/public/build/assets/AdminTopNavigation-n1SbFb1e.js +++ b/public/build/assets/AdminTopNavigation-DhGdPzlz.js @@ -1 +1 @@ -import{r as p,p as T,b as n,c as r,d as s,a,w as u,e as d,u as f,i as v,l as S,s as V,t as M,F as x,g as w,f as m}from"./app-NB_nCFcw.js";import{S as N}from"./AuthenticatedLayout-ibOQYoAA.js";const R={class:"flex justify-between flex-wrap"},j={class:"w-full md:mt-4 md:w-2/3 md:flex-grow lg:flex lg:justify-start lg:items-start lg:gap-x-4 grid grid-cols-3 font-normal text-base"},A={class:"w-full md:w-1/3"},z={class:"py-1 h-full w-full pt-4 md:pt-0"},C={class:"h-full"},D={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},B={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},E={class:"mb-4 text-2xl"},U={key:0,class:"mb-8"},F=["href"],$={class:"flex space-x-4"},q=["innerHTML"],I=["innerHTML"],O={key:1,class:"my-8"},P=["href"],G={class:"flex"},J=["innerHTML"],K={key:2,class:"my-8"},Q=["href"],W={class:"flex"},X=["innerHTML"],Y={key:3,class:"my-8"},Z=["href"],ee={class:"flex"},se=["innerHTML"],le={class:"ml-2"},te=["innerHTML"],ne={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},re={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},ie={class:"text-2xl"},de={__name:"AdminTopNavigation",setup(oe){const o=p(""),i=p({users:[],teams:[],vouchers:[],voucherSets:[]}),c=p(!1),g=p(!1);T(o,()=>{o.value.length>=3?k():(c.value=!1,g.value=!1)}),T(i,()=>{c.value=!1,g.value=!1,o.value.length>=3&&(i.value.users.length||i.value.teams.length||i.value.vouchers.length||i.value.voucherSets.length?c.value=!0:g.value=!0)});function k(){o.value&&o.value.length>=3&&axios.get("/admin/search?cached=false&query="+o.value).then(t=>{i.value=t.data.data}).catch(t=>{N.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function h(t){let e=new RegExp(o.value,"ig"),l=t.matchAll(e);if(l.length===0)return t;let y=0;return l.forEach(b=>{const H=t.slice(0,b.index+y),L=t.slice(b.index+y+b[0].length),_=''+b[0]+"";t=H+_+L,y+=_.length-b[0].length}),t}return(t,e)=>(n(),r(x,null,[e[19]||(e[19]=s("h2",null," Admin Dashboard ",-1)),s("div",R,[s("div",j,[a(f(v),{href:t.route("admin.home")},{default:u(()=>e[3]||(e[3]=[d(" Admin Home ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.users")},{default:u(()=>e[4]||(e[4]=[d(" Users ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.teams")},{default:u(()=>e[5]||(e[5]=[d(" Teams ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-sets")},{default:u(()=>e[6]||(e[6]=[d(" Voucher Sets ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.vouchers")},{default:u(()=>e[7]||(e[7]=[d(" Vouchers ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-redemptions")},{default:u(()=>e[8]||(e[8]=[d(" Redemptions ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.api-access-tokens")},{default:u(()=>e[9]||(e[9]=[d(" API Access Tokens ")])),_:1},8,["href"])]),s("div",A,[s("div",z,[S(s("input",{id:"admin-search-box","onUpdate:modelValue":e[0]||(e[0]=l=>o.value=l),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[V,o.value]]),e[10]||(e[10]=s("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))])])]),s("div",C,[c.value?(n(),r("div",D,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[1]||(e[1]=l=>c.value=!1)}),s("div",B,[s("div",E,'Search Results for "'+M(o.value)+'"',1),i.value.users.length>0?(n(),r("div",U,[e[12]||(e[12]=s("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.users,l=>(n(),r("div",null,[s("a",{href:"/admin/user/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",$,[s("div",{innerHTML:h(l.name)},null,8,q),s("div",{innerHTML:h(l.email)},null,8,I)]),e[11]||(e[11]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,F)]))),256))])])):m("",!0),i.value.teams.length>0?(n(),r("div",O,[e[14]||(e[14]=s("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.teams,l=>(n(),r("div",null,[s("a",{href:"/admin/team/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",G,[s("div",{innerHTML:h(l.name)},null,8,J)]),e[13]||(e[13]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,P)]))),256))])])):m("",!0),i.value.voucherSets.length>0?(n(),r("div",K,[e[16]||(e[16]=s("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.voucherSets,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher-set/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",W,[s("div",{innerHTML:h(l.id)},null,8,X)]),e[15]||(e[15]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Q)]))),256))])])):m("",!0),i.value.vouchers.length>0?(n(),r("div",Y,[e[18]||(e[18]=s("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.vouchers,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",ee,[s("div",{innerHTML:h(l.id)},null,8,se),s("div",le,[s("div",{innerHTML:h("("+l.voucher_short_code+")")},null,8,te)])]),e[17]||(e[17]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Z)]))),256))])])):m("",!0)])])):m("",!0),g.value?(n(),r("div",ne,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[2]||(e[2]=l=>g.value=!1)}),s("div",re,[s("div",ie,'No Search Results for "'+M(o.value)+'"',1)])])):m("",!0)])],64))}};export{de as _}; +import{r as p,p as T,b as n,c as r,d as s,a,w as u,e as d,u as f,i as v,l as S,s as V,t as M,F as x,g as w,f as m}from"./app-DAMU3Vsb.js";import{S as N}from"./AuthenticatedLayout-BUPPfdhf.js";const R={class:"flex justify-between flex-wrap"},j={class:"w-full md:mt-4 md:w-2/3 md:flex-grow lg:flex lg:justify-start lg:items-start lg:gap-x-4 grid grid-cols-3 font-normal text-base"},A={class:"w-full md:w-1/3"},z={class:"py-1 h-full w-full pt-4 md:pt-0"},C={class:"h-full"},D={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},B={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},E={class:"mb-4 text-2xl"},U={key:0,class:"mb-8"},F=["href"],$={class:"flex space-x-4"},q=["innerHTML"],I=["innerHTML"],O={key:1,class:"my-8"},P=["href"],G={class:"flex"},J=["innerHTML"],K={key:2,class:"my-8"},Q=["href"],W={class:"flex"},X=["innerHTML"],Y={key:3,class:"my-8"},Z=["href"],ee={class:"flex"},se=["innerHTML"],le={class:"ml-2"},te=["innerHTML"],ne={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},re={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},ie={class:"text-2xl"},de={__name:"AdminTopNavigation",setup(oe){const o=p(""),i=p({users:[],teams:[],vouchers:[],voucherSets:[]}),c=p(!1),g=p(!1);T(o,()=>{o.value.length>=3?k():(c.value=!1,g.value=!1)}),T(i,()=>{c.value=!1,g.value=!1,o.value.length>=3&&(i.value.users.length||i.value.teams.length||i.value.vouchers.length||i.value.voucherSets.length?c.value=!0:g.value=!0)});function k(){o.value&&o.value.length>=3&&axios.get("/admin/search?cached=false&query="+o.value).then(t=>{i.value=t.data.data}).catch(t=>{N.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function h(t){let e=new RegExp(o.value,"ig"),l=t.matchAll(e);if(l.length===0)return t;let y=0;return l.forEach(b=>{const H=t.slice(0,b.index+y),L=t.slice(b.index+y+b[0].length),_=''+b[0]+"";t=H+_+L,y+=_.length-b[0].length}),t}return(t,e)=>(n(),r(x,null,[e[19]||(e[19]=s("h2",null," Admin Dashboard ",-1)),s("div",R,[s("div",j,[a(f(v),{href:t.route("admin.home")},{default:u(()=>e[3]||(e[3]=[d(" Admin Home ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.users")},{default:u(()=>e[4]||(e[4]=[d(" Users ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.teams")},{default:u(()=>e[5]||(e[5]=[d(" Teams ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-sets")},{default:u(()=>e[6]||(e[6]=[d(" Voucher Sets ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.vouchers")},{default:u(()=>e[7]||(e[7]=[d(" Vouchers ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-redemptions")},{default:u(()=>e[8]||(e[8]=[d(" Redemptions ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.api-access-tokens")},{default:u(()=>e[9]||(e[9]=[d(" API Access Tokens ")])),_:1},8,["href"])]),s("div",A,[s("div",z,[S(s("input",{id:"admin-search-box","onUpdate:modelValue":e[0]||(e[0]=l=>o.value=l),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[V,o.value]]),e[10]||(e[10]=s("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))])])]),s("div",C,[c.value?(n(),r("div",D,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[1]||(e[1]=l=>c.value=!1)}),s("div",B,[s("div",E,'Search Results for "'+M(o.value)+'"',1),i.value.users.length>0?(n(),r("div",U,[e[12]||(e[12]=s("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.users,l=>(n(),r("div",null,[s("a",{href:"/admin/user/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",$,[s("div",{innerHTML:h(l.name)},null,8,q),s("div",{innerHTML:h(l.email)},null,8,I)]),e[11]||(e[11]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,F)]))),256))])])):m("",!0),i.value.teams.length>0?(n(),r("div",O,[e[14]||(e[14]=s("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.teams,l=>(n(),r("div",null,[s("a",{href:"/admin/team/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",G,[s("div",{innerHTML:h(l.name)},null,8,J)]),e[13]||(e[13]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,P)]))),256))])])):m("",!0),i.value.voucherSets.length>0?(n(),r("div",K,[e[16]||(e[16]=s("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.voucherSets,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher-set/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",W,[s("div",{innerHTML:h(l.id)},null,8,X)]),e[15]||(e[15]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Q)]))),256))])])):m("",!0),i.value.vouchers.length>0?(n(),r("div",Y,[e[18]||(e[18]=s("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.vouchers,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",ee,[s("div",{innerHTML:h(l.id)},null,8,se),s("div",le,[s("div",{innerHTML:h("("+l.voucher_short_code+")")},null,8,te)])]),e[17]||(e[17]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Z)]))),256))])])):m("",!0)])])):m("",!0),g.value?(n(),r("div",ne,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[2]||(e[2]=l=>g.value=!1)}),s("div",re,[s("div",ie,'No Search Results for "'+M(o.value)+'"',1)])])):m("",!0)])],64))}};export{de as _}; diff --git a/public/build/assets/AdminUserDetailsComponent--1S10Mhu.js b/public/build/assets/AdminUserDetailsComponent-DStHbtVS.js similarity index 83% rename from public/build/assets/AdminUserDetailsComponent--1S10Mhu.js rename to public/build/assets/AdminUserDetailsComponent-DStHbtVS.js index d0996569..30b7b13c 100644 --- a/public/build/assets/AdminUserDetailsComponent--1S10Mhu.js +++ b/public/build/assets/AdminUserDetailsComponent-DStHbtVS.js @@ -1 +1 @@ -import{b as r,c as o,d as s,t,e as c}from"./app-NB_nCFcw.js";const n={class:""},i={class:"text-xs text-gray-300"},_={class:"text-sm"},m={__name:"AdminUserDetailsComponent",props:{user:{required:!0,type:Object}},setup(a){const e=a;return(d,p)=>(r(),o("div",null,[s("div",n,[s("span",i,"#"+t(e.user.id)+".",1),c(" "+t(e.user.name),1)]),s("div",_,t(e.user.email),1)]))}};export{m as _}; +import{b as r,c as o,d as s,t,e as c}from"./app-DAMU3Vsb.js";const n={class:""},i={class:"text-xs text-gray-300"},_={class:"text-sm"},m={__name:"AdminUserDetailsComponent",props:{user:{required:!0,type:Object}},setup(a){const e=a;return(d,p)=>(r(),o("div",null,[s("div",n,[s("span",i,"#"+t(e.user.id)+".",1),c(" "+t(e.user.name),1)]),s("div",_,t(e.user.email),1)]))}};export{m as _}; diff --git a/public/build/assets/AjaxLoadingIndicator-C8UwDW2j.js b/public/build/assets/AjaxLoadingIndicator-jzrn0AI8.js similarity index 90% rename from public/build/assets/AjaxLoadingIndicator-C8UwDW2j.js rename to public/build/assets/AjaxLoadingIndicator-jzrn0AI8.js index 3ffe5980..be0315b4 100644 --- a/public/build/assets/AjaxLoadingIndicator-C8UwDW2j.js +++ b/public/build/assets/AjaxLoadingIndicator-jzrn0AI8.js @@ -1 +1 @@ -import{b as s,c as a,d as e,f as c}from"./app-NB_nCFcw.js";const l={key:0,class:"-ml-12 -mt-12"},m={__name:"AjaxLoadingIndicator",props:{loading:{type:Boolean,required:!0,default:!1}},setup(t){const r=t;return(n,o)=>r.loading?(s(),a("div",l,o[0]||(o[0]=[e("svg",{class:"animate-spin -ml-1 mr-3 h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))):c("",!0)}};export{m as _}; +import{b as s,c as a,d as e,f as c}from"./app-DAMU3Vsb.js";const l={key:0,class:"-ml-12 -mt-12"},m={__name:"AjaxLoadingIndicator",props:{loading:{type:Boolean,required:!0,default:!1}},setup(t){const r=t;return(n,o)=>r.loading?(s(),a("div",l,o[0]||(o[0]=[e("svg",{class:"animate-spin -ml-1 mr-3 h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))):c("",!0)}};export{m as _}; diff --git a/public/build/assets/ApplicationLogo-BfIosL1f.js b/public/build/assets/ApplicationLogo-DKaozThB.js similarity index 99% rename from public/build/assets/ApplicationLogo-BfIosL1f.js rename to public/build/assets/ApplicationLogo-DKaozThB.js index 700eb41d..a3ae4838 100644 --- a/public/build/assets/ApplicationLogo-BfIosL1f.js +++ b/public/build/assets/ApplicationLogo-DKaozThB.js @@ -1 +1 @@ -import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as I,c as B,d as A}from"./app-NB_nCFcw.js";const C={},E={width:"640",height:"130",viewBox:"0 0 640 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function v(f,g){return I(),B("svg",E,g[0]||(g[0]=[A("rect",{width:"640",height:"130",fill:"url(#pattern0_5_5)"},null,-1),A("defs",null,[A("pattern",{id:"pattern0_5_5",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[A("use",{"xlink:href":"#image0_5_5",transform:"scale(0.0015625 0.00769231)"})]),A("image",{id:"image0_5_5",width:"640",height:"130","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAACCCAYAAADWmnkBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACgKADAAQAAAABAAAAggAAAAA3mjyU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LdQ2DtS8DZIXOZE9qyR9jvV1Eb6LeybdnuwWjHHgwz6JLGlm+mQQ7sO9zD0nTxUnLskBrL2axP0ufDXQz6gkuXqOwy76xr1OvD4OXEtrw9KyQRQUAQEAQEAUFAEBAE1oTAxgkgx6GIzwkI2AWsbS+h2WvVMb4qxEot+Z4X7feDXPDH552h7QZPMcF9C3sPG5QXWr+KAVpMf+/s/RLGKBUbluKCgCAgCAgCgoAgIAiURgC8ZvuBy8JeNIVGcHUiiAGNYyfMvv8W8dgBM0dIJ8zGPkKQTq+9qZFTphC+AmW5d1OISz+CgCBwmxCQJeDb9LRE1ruCwFY0gFnwlPXrsA4iCK1cE0SyCfVcK9HQhXF3+17gQYO3jNourr/cP38U+dEFXLv0l6svtQQBQUAQEAQEAUFAEKgfgZ0ggHpYmgjSHQvcxtCatqPzbtl1AL+DIH7VTjS5ZWMUcQUBQUAQEAQEAUHgliKwUwRQY6gMOI6wR/CErlWiyH8G1d2Bzt/FK5d5Pbisge/CAZead1FGkUkQEAQEgV1EIIy8P2KvdSoEXvTHVILcCAKCQK0IZD5ytbZda2O02AUZhNXt7pBBkj5oKQe+H74uY3VcKyDSmCAgCAgCdwSB709++S+DcPo/MJx/pYb0D3/8ae8//usvfvvjHRmiDEMQ2DkEbg0BNJEDGWzsgQzimLXHSOdev6aZv644CR/aHoa+93bqhUPR9K0LaWlXEBAE7hsCk7/65cdBcPNXHPf+3v6rf37+23+4bxjIeAWBTSJwKwlgFiASwn1vH0vEYQuneXwEK+AmDEG4ZNzIli1/Hzue5kkkX0eeP5p605EQvvLoSUlBQBAQBAQBQUAQ2F0E7gQBzIP3j8e//PlP3s3P02WCP8d+k++jKPy9mR4E4ffvn3+VSjPzJS4ICAKCgCAgCAgCgsBdQOD/A497TRFqF6UzAAAAAElFTkSuQmCC"})],-1)]))}const l=Q(C,[["render",v]]);export{l as A}; +import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as I,c as B,d as A}from"./app-DAMU3Vsb.js";const C={},E={width:"640",height:"130",viewBox:"0 0 640 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function v(f,g){return I(),B("svg",E,g[0]||(g[0]=[A("rect",{width:"640",height:"130",fill:"url(#pattern0_5_5)"},null,-1),A("defs",null,[A("pattern",{id:"pattern0_5_5",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[A("use",{"xlink:href":"#image0_5_5",transform:"scale(0.0015625 0.00769231)"})]),A("image",{id:"image0_5_5",width:"640",height:"130","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAACCCAYAAADWmnkBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACgKADAAQAAAABAAAAggAAAAA3mjyUAABAAElEQVR4Ae19TYwjR5ZeZlZpAdvqEWXAP8DCIwo+2JdFV98XaNZ9ALFbO5e5NOtkYLFGsVqz8LG6zqPuYl108KXYgPc0oy7qsOdiA95zU5iLDzZELbCAfbGokYxZrIqZ/r7MCDIyGZE/ZPKnql4AVRkZvy++TDI+voj3wvfuUPjx5JM/m0Z7P/cj/898L/p3vuf/PIrCDzzf/7Myw4x87/sg8n/PsqHn/Z2Pe9T//c8urv57mfpSRhAQBAQBQWB5BP5w/Mv/EAXe9IPz3/7P5VuRmoKAIFAGAb9MoV0s81233djz9lp+FD32vOjA8/zWeuX0RyCVo9D33k69cPhhbzBeb3/SuiAgCAgC9weBH46f/g1G+6t4xL73Xx/03vyn+zN6GakgsHkEbhUBBOlrvucF7SiKPlk/4ct/GABuHHnewPfD1+/3BqP80pIrCAgCgoAg4ELgh//85LEX+EMzH9+tj+S71URE4oJAvQjs19tc/a1R0wfS14ki/5kXRQcgXQjb562QowlBulEUdH88fipkkI9FgiAgCAgCSyDgB/6fJt/t88pTL/hT3MmP6zkkEhMEakVgZwngD92/wPJu+CyKvE7yxZD9eq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pBBkj5oKQe+H74uY3VcKyDSmCAgCAgCdwSB709++S+DcPo/MJx/pYb0D3/8ae8//usvfvvjHRmiDEMQ2DkEbg0BNJEDGWzsgQzimLXHSOdev6aZv644CR/aHoa+93bqhUPR9K0LaWlXEBAE7hsCk7/65cdBcPNXHPf+3v6rf37+23+4bxjIeAWBTSJwKwlgFiASwn1vH0vEYQuneXwEK+AmDEG4ZNzIli1/Hzue5kkkX0eeP5p605EQvvLoSUlBQBAQBAQBQUAQ2F0E7gQBzIP3j8e//PlP3s3P02WCP8d+k++jKPy9mR4E4ffvn3+VSjPzJS4ICAKCgCAgCAgCgsBdQOD/A497TRFqF6UzAAAAAElFTkSuQmCC"})],-1)]))}const l=Q(C,[["render",v]]);export{l as A}; diff --git a/public/build/assets/AuditItems-4c_EuhGC.js b/public/build/assets/AuditItems-4c_EuhGC.js new file mode 100644 index 00000000..bb908962 --- /dev/null +++ b/public/build/assets/AuditItems-4c_EuhGC.js @@ -0,0 +1 @@ +import{_ as r}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as o,a as t,u as s,w as e,F as i,b as m,Z as l,d as n}from"./app-DAMU3Vsb.js";import{_}from"./AuditItemsComponent-CfExzXjd.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./dayjs.min-LcFuhhy0.js";const B={__name:"AuditItems",setup(p){return(u,a)=>(m(),o(i,null,[t(s(l),{title:"Audit Trail"}),t(r,null,{header:e(()=>a[0]||(a[0]=[n("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Audit Trail",-1)])),default:e(()=>[t(_)]),_:1})],64))}};export{B as default}; diff --git a/public/build/assets/AuditItems-DIKou6QV.js b/public/build/assets/AuditItems-DIKou6QV.js deleted file mode 100644 index 538c07c6..00000000 --- a/public/build/assets/AuditItems-DIKou6QV.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as o,a as t,u as s,w as e,F as i,b as m,Z as l,d as n}from"./app-NB_nCFcw.js";import{_}from"./AuditItemsComponent-C7YXeZNy.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./dayjs.min-DM5MTW9C.js";const B={__name:"AuditItems",setup(p){return(u,a)=>(m(),o(i,null,[t(s(l),{title:"Audit Trail"}),t(r,null,{header:e(()=>a[0]||(a[0]=[n("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Audit Trail",-1)])),default:e(()=>[t(_)]),_:1})],64))}};export{B as default}; diff --git a/public/build/assets/AuditItemsComponent-C7YXeZNy.js b/public/build/assets/AuditItemsComponent-CfExzXjd.js similarity index 86% rename from public/build/assets/AuditItemsComponent-C7YXeZNy.js rename to public/build/assets/AuditItemsComponent-CfExzXjd.js index 27a84b7b..2290cdf0 100644 --- a/public/build/assets/AuditItemsComponent-C7YXeZNy.js +++ b/public/build/assets/AuditItemsComponent-CfExzXjd.js @@ -1 +1 @@ -import{d as m}from"./dayjs.min-DM5MTW9C.js";import{S as f}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as p,o as h,b as r,c as d,d as t,F as v,g as x,a as _,w as g,t as n,u as l,i as w}from"./app-NB_nCFcw.js";const y={class:"card"},b={class:"flex justify-between items-center border-b border-gray-200 p-4"},B={class:"text-xs text-gray-500 italic"},Y={__name:"AuditItemsComponent",props:{isAdmin:{type:Boolean,default:!1,required:!1}},setup(o){const c=o,i=p({});function u(){let a="/my-team-audit-items?cached=false&orderBy=id,desc";c.isAdmin&&(a="/admin/audit-items?cached=false&relations=team&orderBy=id,desc"),axios.get(a).then(e=>{i.value=e.data.data}).catch(e=>{f.fire({icon:"error",title:"Oops!",text:e.response.data.message})})}return h(()=>{u()}),(a,e)=>(r(),d("div",y,[e[1]||(e[1]=t("div",{class:"card-header"}," Audit Trail ",-1)),(r(!0),d(v,null,x(i.value.data,s=>(r(),d("div",null,[_(l(w),{class:"hover:no-underline",href:o.isAdmin?s.admin_url:s.dashboard_url},{default:g(()=>[t("div",b,[t("div",null,[t("div",null,n(s.auditable_text),1),t("div",B,n(l(m)(s.created_at).format("dddd, MMMM Do YYYY [at] h:mm:ss a")),1)]),e[0]||(e[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"])]))),256))]))}};export{Y as _}; +import{d as m}from"./dayjs.min-LcFuhhy0.js";import{S as f}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as p,o as h,b as r,c as d,d as t,F as v,g as x,a as _,w as g,t as n,u as l,i as w}from"./app-DAMU3Vsb.js";const y={class:"card"},b={class:"flex justify-between items-center border-b border-gray-200 p-4"},B={class:"text-xs text-gray-500 italic"},Y={__name:"AuditItemsComponent",props:{isAdmin:{type:Boolean,default:!1,required:!1}},setup(o){const c=o,i=p({});function u(){let a="/my-team-audit-items?cached=false&orderBy=id,desc";c.isAdmin&&(a="/admin/audit-items?cached=false&relations=team&orderBy=id,desc"),axios.get(a).then(e=>{i.value=e.data.data}).catch(e=>{f.fire({icon:"error",title:"Oops!",text:e.response.data.message})})}return h(()=>{u()}),(a,e)=>(r(),d("div",y,[e[1]||(e[1]=t("div",{class:"card-header"}," Audit Trail ",-1)),(r(!0),d(v,null,x(i.value.data,s=>(r(),d("div",null,[_(l(w),{class:"hover:no-underline",href:o.isAdmin?s.admin_url:s.dashboard_url},{default:g(()=>[t("div",b,[t("div",null,[t("div",null,n(s.auditable_text),1),t("div",B,n(l(m)(s.created_at).format("dddd, MMMM Do YYYY [at] h:mm:ss a")),1)]),e[0]||(e[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"])]))),256))]))}};export{Y as _}; diff --git a/public/build/assets/AuthenticatedLayout-ibOQYoAA.js b/public/build/assets/AuthenticatedLayout-BUPPfdhf.js similarity index 99% rename from public/build/assets/AuthenticatedLayout-ibOQYoAA.js rename to public/build/assets/AuthenticatedLayout-BUPPfdhf.js index 6c670e09..fb93ae9d 100644 --- a/public/build/assets/AuthenticatedLayout-ibOQYoAA.js +++ b/public/build/assets/AuthenticatedLayout-BUPPfdhf.js @@ -1,4 +1,4 @@ -import{A as to}from"./ApplicationLogo-BfIosL1f.js";import{o as oo,y as no,z as me,r as Z,b as m,c as v,d as a,I as F,l as Ie,J as Xe,a as k,w as y,n as V,K as so,h as Ce,u as se,i as ie,p as Je,s as io,t as Y,F as fe,g as Te,f as O,e as B}from"./app-NB_nCFcw.js";import{P as ro}from"./PrimaryButton-CiDAOitU.js";const ao={class:"relative"},lo={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:String,default:"py-1 bg-white"}},setup(e){const t=e,o=c=>{r.value&&c.key==="Escape"&&(r.value=!1)};oo(()=>document.addEventListener("keydown",o)),no(()=>document.removeEventListener("keydown",o));const n=me(()=>({48:"w-48"})[t.width.toString()]),s=me(()=>t.align==="left"?"ltr:origin-top-left rtl:origin-top-right start-0":t.align==="right"?"ltr:origin-top-right rtl:origin-top-left end-0":"origin-top"),r=Z(!1);return(c,d)=>(m(),v("div",ao,[a("div",{onClick:d[0]||(d[0]=u=>r.value=!r.value)},[F(c.$slots,"trigger")]),Ie(a("div",{class:"fixed inset-0 z-40",onClick:d[1]||(d[1]=u=>r.value=!1)},null,512),[[Xe,r.value]]),k(so,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:y(()=>[Ie(a("div",{class:V(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,s.value]]),style:{display:"none"},onClick:d[2]||(d[2]=u=>r.value=!1)},[a("div",{class:V(["rounded-md ring-1 ring-black ring-opacity-5",e.contentClasses])},[F(c.$slots,"content")],2)],2),[[Xe,r.value]])]),_:3})]))}},K={__name:"DropdownLink",props:{href:{type:String,required:!0}},setup(e){return(t,o)=>(m(),Ce(se(ie),{href:e.href,class:"block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"},{default:y(()=>[F(t.$slots,"default")]),_:3},8,["href"]))}},co={__name:"NavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=me(()=>t.active?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-light leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-light leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(m(),Ce(se(ie),{href:e.href,class:V(o.value)},{default:y(()=>[F(n.$slots,"default")]),_:3},8,["href","class"]))}},pe={__name:"ResponsiveNavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=me(()=>t.active?"block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out":"block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(m(),Ce(se(ie),{href:e.href,class:V(o.value)},{default:y(()=>[F(n.$slots,"default")]),_:3},8,["href","class"]))}};/*! +import{A as to}from"./ApplicationLogo-DKaozThB.js";import{o as oo,y as no,z as me,r as Z,b as m,c as v,d as a,I as F,l as Ie,J as Xe,a as k,w as y,n as V,K as so,h as Ce,u as se,i as ie,p as Je,s as io,t as Y,F as fe,g as Te,f as O,e as B}from"./app-DAMU3Vsb.js";import{P as ro}from"./PrimaryButton-CIB81Yr_.js";const ao={class:"relative"},lo={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:String,default:"py-1 bg-white"}},setup(e){const t=e,o=c=>{r.value&&c.key==="Escape"&&(r.value=!1)};oo(()=>document.addEventListener("keydown",o)),no(()=>document.removeEventListener("keydown",o));const n=me(()=>({48:"w-48"})[t.width.toString()]),s=me(()=>t.align==="left"?"ltr:origin-top-left rtl:origin-top-right start-0":t.align==="right"?"ltr:origin-top-right rtl:origin-top-left end-0":"origin-top"),r=Z(!1);return(c,d)=>(m(),v("div",ao,[a("div",{onClick:d[0]||(d[0]=u=>r.value=!r.value)},[F(c.$slots,"trigger")]),Ie(a("div",{class:"fixed inset-0 z-40",onClick:d[1]||(d[1]=u=>r.value=!1)},null,512),[[Xe,r.value]]),k(so,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:y(()=>[Ie(a("div",{class:V(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,s.value]]),style:{display:"none"},onClick:d[2]||(d[2]=u=>r.value=!1)},[a("div",{class:V(["rounded-md ring-1 ring-black ring-opacity-5",e.contentClasses])},[F(c.$slots,"content")],2)],2),[[Xe,r.value]])]),_:3})]))}},K={__name:"DropdownLink",props:{href:{type:String,required:!0}},setup(e){return(t,o)=>(m(),Ce(se(ie),{href:e.href,class:"block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"},{default:y(()=>[F(t.$slots,"default")]),_:3},8,["href"]))}},co={__name:"NavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=me(()=>t.active?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-light leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-light leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(m(),Ce(se(ie),{href:e.href,class:V(o.value)},{default:y(()=>[F(n.$slots,"default")]),_:3},8,["href","class"]))}},pe={__name:"ResponsiveNavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=me(()=>t.active?"block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out":"block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(m(),Ce(se(ie),{href:e.href,class:V(o.value)},{default:y(()=>[F(n.$slots,"default")]),_:3},8,["href","class"]))}};/*! * sweetalert2 v11.14.1 * Released under the MIT License. */function dt(e,t,o){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}function uo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ge(e,t){return e.get(dt(e,t))}function wo(e,t,o){uo(e,t),t.set(e,o)}function fo(e,t,o){return e.set(dt(e,t),o),o}const po=100,l={},ho=()=>{l.previousActiveElement instanceof HTMLElement?(l.previousActiveElement.focus(),l.previousActiveElement=null):document.body&&document.body.focus()},mo=e=>new Promise(t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;l.restoreFocusTimeout=setTimeout(()=>{ho(),t()},po),window.scrollTo(o,n)}),ut="swal2-",go=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],i=go.reduce((e,t)=>(e[t]=ut+t,e),{}),bo=["success","warning","info","question","error"],ge=bo.reduce((e,t)=>(e[t]=ut+t,e),{}),wt="SweetAlert2:",_e=e=>e.charAt(0).toUpperCase()+e.slice(1),$=e=>{console.warn(`${wt} ${typeof e=="object"?e.join(" "):e}`)},W=e=>{console.error(`${wt} ${e}`)},Qe=[],yo=e=>{Qe.includes(e)||(Qe.push(e),$(e))},ft=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;yo(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},Ae=e=>typeof e=="function"?e():e,He=e=>e&&typeof e.toPromise=="function",re=e=>He(e)?e.toPromise():Promise.resolve(e),je=e=>e&&Promise.resolve(e)===e,E=()=>document.body.querySelector(`.${i.container}`),ae=e=>{const t=E();return t?t.querySelector(e):null},T=e=>ae(`.${e}`),f=()=>T(i.popup),le=()=>T(i.icon),vo=()=>T(i["icon-content"]),pt=()=>T(i.title),De=()=>T(i["html-container"]),ht=()=>T(i.image),ze=()=>T(i["progress-steps"]),$e=()=>T(i["validation-message"]),I=()=>ae(`.${i.actions} .${i.confirm}`),ee=()=>ae(`.${i.actions} .${i.cancel}`),U=()=>ae(`.${i.actions} .${i.deny}`),xo=()=>T(i["input-label"]),te=()=>ae(`.${i.loader}`),ce=()=>T(i.actions),mt=()=>T(i.footer),Ee=()=>T(i["timer-progress-bar"]),Ve=()=>T(i.close),ko=` diff --git a/public/build/assets/Checkbox-BkCSZ4j2.js b/public/build/assets/Checkbox-lS5kFIWr.js similarity index 87% rename from public/build/assets/Checkbox-BkCSZ4j2.js rename to public/build/assets/Checkbox-lS5kFIWr.js index f5d6f4d6..dd2a5a37 100644 --- a/public/build/assets/Checkbox-BkCSZ4j2.js +++ b/public/build/assets/Checkbox-lS5kFIWr.js @@ -1 +1 @@ -import{z as n,l as d,m as l,b as i,c as p}from"./app-NB_nCFcw.js";const m=["value"],k={__name:"Checkbox",props:{checked:{type:[Array,Boolean],required:!0},value:{default:null}},emits:["update:checked"],setup(e,{emit:a}){const r=a,s=e,t=n({get(){return s.checked},set(o){r("update:checked",o)}});return(o,c)=>d((i(),p("input",{type:"checkbox",value:e.value,"onUpdate:modelValue":c[0]||(c[0]=u=>t.value=u),class:"rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500"},null,8,m)),[[l,t.value]])}};export{k as _}; +import{z as n,l as d,m as l,b as i,c as p}from"./app-DAMU3Vsb.js";const m=["value"],k={__name:"Checkbox",props:{checked:{type:[Array,Boolean],required:!0},value:{default:null}},emits:["update:checked"],setup(e,{emit:a}){const r=a,s=e,t=n({get(){return s.checked},set(o){r("update:checked",o)}});return(o,c)=>d((i(),p("input",{type:"checkbox",value:e.value,"onUpdate:modelValue":c[0]||(c[0]=u=>t.value=u),class:"rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500"},null,8,m)),[[l,t.value]])}};export{k as _}; diff --git a/public/build/assets/ConfirmPassword-so3GG3w2.js b/public/build/assets/ConfirmPassword-C2XqwsFY.js similarity index 77% rename from public/build/assets/ConfirmPassword-so3GG3w2.js rename to public/build/assets/ConfirmPassword-C2XqwsFY.js index f5670452..91d84239 100644 --- a/public/build/assets/ConfirmPassword-so3GG3w2.js +++ b/public/build/assets/ConfirmPassword-C2XqwsFY.js @@ -1 +1 @@ -import{T as n,h as l,w as t,b as d,a,u as r,Z as p,d as e,e as f,n as u,k as c}from"./app-NB_nCFcw.js";import{_}from"./GuestLayout-BXXL9wvL.js";import{_ as w}from"./InputError-B8NEdD9b.js";import{_ as b}from"./InputLabel-omYb-gwx.js";import{P as x}from"./PrimaryButton-CiDAOitU.js";import{_ as g}from"./TextInput-Fah8vm6N.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"flex justify-end mt-4"},j={__name:"ConfirmPassword",setup(P){const s=n({password:""}),i=()=>{s.post(route("password.confirm"),{onFinish:()=>s.reset()})};return(V,o)=>(d(),l(_,null,{default:t(()=>[a(r(p),{title:"Confirm Password"}),o[2]||(o[2]=e("div",{class:"mb-4 text-sm text-gray-600"}," This is a secure area of the application. Please confirm your password before continuing. ",-1)),e("form",{onSubmit:c(i,["prevent"])},[e("div",null,[a(b,{for:"password",value:"Password"}),a(g,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:r(s).password,"onUpdate:modelValue":o[0]||(o[0]=m=>r(s).password=m),required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"]),a(w,{class:"mt-2",message:r(s).errors.password},null,8,["message"])]),e("div",y,[a(x,{class:u(["ms-4",{"opacity-25":r(s).processing}]),disabled:r(s).processing},{default:t(()=>o[1]||(o[1]=[f(" Confirm ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; +import{T as n,h as l,w as t,b as d,a,u as r,Z as p,d as e,e as f,n as u,k as c}from"./app-DAMU3Vsb.js";import{_}from"./GuestLayout-C6KGR1m6.js";import{_ as w}from"./InputError-KrPZcAOb.js";import{_ as b}from"./InputLabel-Wt1TYZ0A.js";import{P as x}from"./PrimaryButton-CIB81Yr_.js";import{_ as g}from"./TextInput-CvMe3C5R.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"flex justify-end mt-4"},j={__name:"ConfirmPassword",setup(P){const s=n({password:""}),i=()=>{s.post(route("password.confirm"),{onFinish:()=>s.reset()})};return(V,o)=>(d(),l(_,null,{default:t(()=>[a(r(p),{title:"Confirm Password"}),o[2]||(o[2]=e("div",{class:"mb-4 text-sm text-gray-600"}," This is a secure area of the application. Please confirm your password before continuing. ",-1)),e("form",{onSubmit:c(i,["prevent"])},[e("div",null,[a(b,{for:"password",value:"Password"}),a(g,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:r(s).password,"onUpdate:modelValue":o[0]||(o[0]=m=>r(s).password=m),required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"]),a(w,{class:"mt-2",message:r(s).errors.password},null,8,["message"])]),e("div",y,[a(x,{class:u(["ms-4",{"opacity-25":r(s).processing}]),disabled:r(s).processing},{default:t(()=>o[1]||(o[1]=[f(" Confirm ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; diff --git a/public/build/assets/DangerButton-BzsUR-6s.js b/public/build/assets/DangerButton-Dm1RaOMo.js similarity index 87% rename from public/build/assets/DangerButton-BzsUR-6s.js rename to public/build/assets/DangerButton-Dm1RaOMo.js index 15b577e8..5d38db94 100644 --- a/public/build/assets/DangerButton-BzsUR-6s.js +++ b/public/build/assets/DangerButton-Dm1RaOMo.js @@ -1 +1 @@ -import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,I as n}from"./app-NB_nCFcw.js";const s={},c={class:"inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150"};function i(e,a){return r(),o("button",c,[n(e.$slots,"default")])}const u=t(s,[["render",i]]);export{u as D}; +import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,I as n}from"./app-DAMU3Vsb.js";const s={},c={class:"inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150"};function i(e,a){return r(),o("button",c,[n(e.$slots,"default")])}const u=t(s,[["render",i]]);export{u as D}; diff --git a/public/build/assets/Dashboard-BxMYZBzR.js b/public/build/assets/Dashboard-CXg49ttj.js similarity index 64% rename from public/build/assets/Dashboard-BxMYZBzR.js rename to public/build/assets/Dashboard-CXg49ttj.js index 9aa80333..b85ff33e 100644 --- a/public/build/assets/Dashboard-BxMYZBzR.js +++ b/public/build/assets/Dashboard-CXg49ttj.js @@ -1 +1 @@ -import{_ as t}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as o,a as e,u as s,w as r,F as d,b as n,Z as l,e as m,d as i}from"./app-NB_nCFcw.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";const g={__name:"Dashboard",setup(p){return(u,a)=>(n(),o(d,null,[e(s(l),{title:"Dashboard"}),e(t,null,{header:r(()=>a[0]||(a[0]=[m(" Dashboard ")])),default:r(()=>[a[1]||(a[1]=i("div",{class:"card"}," You're logged in! ",-1))]),_:1})],64))}};export{g as default}; +import{_ as t}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as o,a as e,u as s,w as r,F as d,b as n,Z as l,e as m,d as i}from"./app-DAMU3Vsb.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";const g={__name:"Dashboard",setup(p){return(u,a)=>(n(),o(d,null,[e(s(l),{title:"Dashboard"}),e(t,null,{header:r(()=>a[0]||(a[0]=[m(" Dashboard ")])),default:r(()=>[a[1]||(a[1]=i("div",{class:"card"}," You're logged in! ",-1))]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/DeleteUserForm-BxQTPWXE.js b/public/build/assets/DeleteUserForm-BqxawtV2.js similarity index 92% rename from public/build/assets/DeleteUserForm-BxQTPWXE.js rename to public/build/assets/DeleteUserForm-BqxawtV2.js index d0ba442b..a147642c 100644 --- a/public/build/assets/DeleteUserForm-BxQTPWXE.js +++ b/public/build/assets/DeleteUserForm-BqxawtV2.js @@ -1 +1 @@ -import{p as b,o as k,y as C,z as D,b as g,h as B,a as o,w as l,l as f,J as y,d as s,K as p,n as h,I as V,f as $,M as E,r as v,T as U,c as S,D as T,e as w,u as c,j as A}from"./app-NB_nCFcw.js";import{D as x}from"./DangerButton-BzsUR-6s.js";import{_ as M}from"./InputError-B8NEdD9b.js";import{_ as N}from"./InputLabel-omYb-gwx.js";import{_ as z}from"./SecondaryButton-DvjXhVuA.js";import{_ as I}from"./TextInput-Fah8vm6N.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const K={class:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50","scroll-region":""},O={__name:"Modal",props:{show:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},closeable:{type:Boolean,default:!0}},emits:["close"],setup(n,{emit:r}){const a=n,t=r;b(()=>a.show,()=>{a.show?document.body.style.overflow="hidden":document.body.style.overflow=null});const m=()=>{a.closeable&&t("close")},d=u=>{u.key==="Escape"&&a.show&&m()};k(()=>document.addEventListener("keydown",d)),C(()=>{document.removeEventListener("keydown",d),document.body.style.overflow=null});const i=D(()=>({sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"})[a.maxWidth]);return(u,e)=>(g(),B(E,{to:"body"},[o(p,{"leave-active-class":"duration-200"},{default:l(()=>[f(s("div",K,[o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l(()=>[f(s("div",{class:"fixed inset-0 transform transition-all",onClick:m},e[0]||(e[0]=[s("div",{class:"absolute inset-0 bg-gray-500 opacity-75"},null,-1)]),512),[[y,n.show]])]),_:1}),o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:l(()=>[f(s("div",{class:h(["mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto",i.value])},[n.show?V(u.$slots,"default",{key:0}):$("",!0)],2),[[y,n.show]])]),_:3})],512),[[y,n.show]])]),_:3})]))}},P={class:"space-y-6"},W={class:"p-6"},j={class:"mt-6"},F={class:"mt-6 flex justify-end"},X={__name:"DeleteUserForm",setup(n){const r=v(!1),a=v(null),t=U({password:""}),m=()=>{r.value=!0,T(()=>a.value.focus())},d=()=>{t.delete(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>i(),onError:()=>a.value.focus(),onFinish:()=>t.reset()})},i=()=>{r.value=!1,t.reset()};return(u,e)=>(g(),S("section",P,[e[6]||(e[6]=s("header",null,[s("h2",{class:"text-lg font-medium text-gray-900"},"Delete Account"),s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain. ")],-1)),o(x,{onClick:m},{default:l(()=>e[1]||(e[1]=[w("Delete Account")])),_:1}),o(O,{show:r.value,onClose:i},{default:l(()=>[s("div",W,[e[4]||(e[4]=s("h2",{class:"text-lg font-medium text-gray-900"}," Are you sure you want to delete your account? ",-1)),e[5]||(e[5]=s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account. ",-1)),s("div",j,[o(N,{for:"password",value:"Password",class:"sr-only"}),o(I,{id:"password",ref_key:"passwordInput",ref:a,modelValue:c(t).password,"onUpdate:modelValue":e[0]||(e[0]=_=>c(t).password=_),type:"password",class:"mt-1 block w-3/4",placeholder:"Password",onKeyup:A(d,["enter"])},null,8,["modelValue"]),o(M,{message:c(t).errors.password,class:"mt-2"},null,8,["message"])]),s("div",F,[o(z,{onClick:i},{default:l(()=>e[2]||(e[2]=[w(" Cancel ")])),_:1}),o(x,{class:h(["ms-3",{"opacity-25":c(t).processing}]),disabled:c(t).processing,onClick:d},{default:l(()=>e[3]||(e[3]=[w(" Delete Account ")])),_:1},8,["class","disabled"])])])]),_:1},8,["show"])]))}};export{X as default}; +import{p as b,o as k,y as C,z as D,b as g,h as B,a as o,w as l,l as f,J as y,d as s,K as p,n as h,I as V,f as $,M as E,r as v,T as U,c as S,D as T,e as w,u as c,j as A}from"./app-DAMU3Vsb.js";import{D as x}from"./DangerButton-Dm1RaOMo.js";import{_ as M}from"./InputError-KrPZcAOb.js";import{_ as N}from"./InputLabel-Wt1TYZ0A.js";import{_ as z}from"./SecondaryButton-CDQDA5dD.js";import{_ as I}from"./TextInput-CvMe3C5R.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const K={class:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50","scroll-region":""},O={__name:"Modal",props:{show:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},closeable:{type:Boolean,default:!0}},emits:["close"],setup(n,{emit:r}){const a=n,t=r;b(()=>a.show,()=>{a.show?document.body.style.overflow="hidden":document.body.style.overflow=null});const m=()=>{a.closeable&&t("close")},d=u=>{u.key==="Escape"&&a.show&&m()};k(()=>document.addEventListener("keydown",d)),C(()=>{document.removeEventListener("keydown",d),document.body.style.overflow=null});const i=D(()=>({sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"})[a.maxWidth]);return(u,e)=>(g(),B(E,{to:"body"},[o(p,{"leave-active-class":"duration-200"},{default:l(()=>[f(s("div",K,[o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l(()=>[f(s("div",{class:"fixed inset-0 transform transition-all",onClick:m},e[0]||(e[0]=[s("div",{class:"absolute inset-0 bg-gray-500 opacity-75"},null,-1)]),512),[[y,n.show]])]),_:1}),o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:l(()=>[f(s("div",{class:h(["mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto",i.value])},[n.show?V(u.$slots,"default",{key:0}):$("",!0)],2),[[y,n.show]])]),_:3})],512),[[y,n.show]])]),_:3})]))}},P={class:"space-y-6"},W={class:"p-6"},j={class:"mt-6"},F={class:"mt-6 flex justify-end"},X={__name:"DeleteUserForm",setup(n){const r=v(!1),a=v(null),t=U({password:""}),m=()=>{r.value=!0,T(()=>a.value.focus())},d=()=>{t.delete(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>i(),onError:()=>a.value.focus(),onFinish:()=>t.reset()})},i=()=>{r.value=!1,t.reset()};return(u,e)=>(g(),S("section",P,[e[6]||(e[6]=s("header",null,[s("h2",{class:"text-lg font-medium text-gray-900"},"Delete Account"),s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain. ")],-1)),o(x,{onClick:m},{default:l(()=>e[1]||(e[1]=[w("Delete Account")])),_:1}),o(O,{show:r.value,onClose:i},{default:l(()=>[s("div",W,[e[4]||(e[4]=s("h2",{class:"text-lg font-medium text-gray-900"}," Are you sure you want to delete your account? ",-1)),e[5]||(e[5]=s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account. ",-1)),s("div",j,[o(N,{for:"password",value:"Password",class:"sr-only"}),o(I,{id:"password",ref_key:"passwordInput",ref:a,modelValue:c(t).password,"onUpdate:modelValue":e[0]||(e[0]=_=>c(t).password=_),type:"password",class:"mt-1 block w-3/4",placeholder:"Password",onKeyup:A(d,["enter"])},null,8,["modelValue"]),o(M,{message:c(t).errors.password,class:"mt-2"},null,8,["message"])]),s("div",F,[o(z,{onClick:i},{default:l(()=>e[2]||(e[2]=[w(" Cancel ")])),_:1}),o(x,{class:h(["ms-3",{"opacity-25":c(t).processing}]),disabled:c(t).processing,onClick:d},{default:l(()=>e[3]||(e[3]=[w(" Delete Account ")])),_:1},8,["class","disabled"])])])]),_:1},8,["show"])]))}};export{X as default}; diff --git a/public/build/assets/Edit-Ctxd-0w5.js b/public/build/assets/Edit-CXTB1KZY.js similarity index 57% rename from public/build/assets/Edit-Ctxd-0w5.js rename to public/build/assets/Edit-CXTB1KZY.js index 84d3d816..b5a1a87f 100644 --- a/public/build/assets/Edit-Ctxd-0w5.js +++ b/public/build/assets/Edit-CXTB1KZY.js @@ -1 +1 @@ -import{_ as o}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as r,a as s,u as m,w as i,F as l,b as n,Z as c,d as t}from"./app-NB_nCFcw.js";import d from"./UpdatePasswordForm-CmkItG6E.js";import u from"./UpdateProfileInformationForm-C5Npts88.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./InputError-B8NEdD9b.js";import"./InputLabel-omYb-gwx.js";import"./TextInput-Fah8vm6N.js";const f={class:"container mx-auto"},_={class:"pb-32"},p={class:"card"},x={class:"card"},F={__name:"Edit",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(a){return(h,e)=>(n(),r(l,null,[s(m(c),{title:"Profile"}),s(o,null,{header:i(()=>e[0]||(e[0]=[t("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"},"Profile",-1)])),default:i(()=>[t("div",f,[t("div",_,[t("div",p,[s(u,{"must-verify-email":a.mustVerifyEmail,status:a.status,class:"max-w-xl"},null,8,["must-verify-email","status"])]),t("div",x,[s(d,{class:"max-w-xl"})])])])]),_:1})],64))}};export{F as default}; +import{_ as o}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as r,a as s,u as m,w as i,F as l,b as n,Z as c,d as t}from"./app-DAMU3Vsb.js";import d from"./UpdatePasswordForm-DPOMbBpC.js";import u from"./UpdateProfileInformationForm-BDimdmua.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./InputError-KrPZcAOb.js";import"./InputLabel-Wt1TYZ0A.js";import"./TextInput-CvMe3C5R.js";const f={class:"container mx-auto"},_={class:"pb-32"},p={class:"card"},x={class:"card"},F={__name:"Edit",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(a){return(h,e)=>(n(),r(l,null,[s(m(c),{title:"Profile"}),s(o,null,{header:i(()=>e[0]||(e[0]=[t("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"},"Profile",-1)])),default:i(()=>[t("div",f,[t("div",_,[t("div",p,[s(u,{"must-verify-email":a.mustVerifyEmail,status:a.status,class:"max-w-xl"},null,8,["must-verify-email","status"])]),t("div",x,[s(d,{class:"max-w-xl"})])])])]),_:1})],64))}};export{F as default}; diff --git a/public/build/assets/ErrorMessagePage-CEHNAMUs.js b/public/build/assets/ErrorMessagePage-Cgxki2j-.js similarity index 79% rename from public/build/assets/ErrorMessagePage-CEHNAMUs.js rename to public/build/assets/ErrorMessagePage-Cgxki2j-.js index 1976821e..cbe4edfa 100644 --- a/public/build/assets/ErrorMessagePage-CEHNAMUs.js +++ b/public/build/assets/ErrorMessagePage-Cgxki2j-.js @@ -1 +1 @@ -import{_ as d}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as u,a as e,u as o,w as t,F as c,b as f,Z as m,d as a,t as i,i as p,e as _}from"./app-NB_nCFcw.js";import{P as h}from"./PrimaryButton-CiDAOitU.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={class:"font-normal text-xl text-gray-800 leading-tight"},x={class:"card"},y={class:"mb-8"},k={__name:"ErrorMessagePage",props:{voucherSetId:{type:String,required:!1},voucherId:{type:String,required:!1},title:{type:String,required:!0,default:""},text:{type:String,required:!0,default:""}},setup(l){const r=l;return(n,s)=>(f(),u(c,null,[e(o(m),{title:r.title},null,8,["title"]),e(d,null,{header:t(()=>[a("h2",g,i(r.title),1)]),default:t(()=>[a("div",x,[a("div",y,i(r.text),1),e(o(p),{href:n.route("dashboard")},{default:t(()=>[e(h,null,{default:t(()=>s[0]||(s[0]=[_("Back to home")])),_:1})]),_:1},8,["href"])])]),_:1})],64))}};export{k as default}; +import{_ as d}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as u,a as e,u as o,w as t,F as c,b as f,Z as m,d as a,t as i,i as p,e as _}from"./app-DAMU3Vsb.js";import{P as h}from"./PrimaryButton-CIB81Yr_.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={class:"font-normal text-xl text-gray-800 leading-tight"},x={class:"card"},y={class:"mb-8"},k={__name:"ErrorMessagePage",props:{voucherSetId:{type:String,required:!1},voucherId:{type:String,required:!1},title:{type:String,required:!0,default:""},text:{type:String,required:!0,default:""}},setup(l){const r=l;return(n,s)=>(f(),u(c,null,[e(o(m),{title:r.title},null,8,["title"]),e(d,null,{header:t(()=>[a("h2",g,i(r.title),1)]),default:t(()=>[a("div",x,[a("div",y,i(r.text),1),e(o(p),{href:n.route("dashboard")},{default:t(()=>[e(h,null,{default:t(()=>s[0]||(s[0]=[_("Back to home")])),_:1})]),_:1},8,["href"])])]),_:1})],64))}};export{k as default}; diff --git a/public/build/assets/ForgotPassword-E4Xdb2Gm.js b/public/build/assets/ForgotPassword-d4vaXXEc.js similarity index 75% rename from public/build/assets/ForgotPassword-E4Xdb2Gm.js rename to public/build/assets/ForgotPassword-d4vaXXEc.js index 7ce6a969..909b69dc 100644 --- a/public/build/assets/ForgotPassword-E4Xdb2Gm.js +++ b/public/build/assets/ForgotPassword-d4vaXXEc.js @@ -1 +1 @@ -import{T as u,h as d,w as l,b as m,a,u as t,Z as c,d as o,c as f,t as p,f as w,e as _,n as y,k as g}from"./app-NB_nCFcw.js";import{_ as b}from"./GuestLayout-BXXL9wvL.js";import{_ as k}from"./InputError-B8NEdD9b.js";import{_ as x}from"./InputLabel-omYb-gwx.js";import{P as V}from"./PrimaryButton-CiDAOitU.js";import{_ as v}from"./TextInput-Fah8vm6N.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"flex items-center justify-end mt-4"},q={__name:"ForgotPassword",props:{status:{type:String}},setup(r){const e=u({email:""}),i=()=>{e.post(route("password.email"))};return(P,s)=>(m(),d(b,null,{default:l(()=>[a(t(c),{title:"Forgot Password"}),s[2]||(s[2]=o("div",{class:"mb-4 text-sm text-gray-600"}," Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one. ",-1)),r.status?(m(),f("div",B,p(r.status),1)):w("",!0),o("form",{onSubmit:g(i,["prevent"])},[o("div",null,[a(x,{for:"email",value:"Email"}),a(v,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=n=>t(e).email=n),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),a(k,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),o("div",N,[a(V,{class:y({"opacity-25":t(e).processing}),disabled:t(e).processing},{default:l(()=>s[1]||(s[1]=[_(" Email Password Reset Link ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{q as default}; +import{T as u,h as d,w as l,b as m,a,u as t,Z as c,d as o,c as f,t as p,f as w,e as _,n as y,k as g}from"./app-DAMU3Vsb.js";import{_ as b}from"./GuestLayout-C6KGR1m6.js";import{_ as k}from"./InputError-KrPZcAOb.js";import{_ as x}from"./InputLabel-Wt1TYZ0A.js";import{P as V}from"./PrimaryButton-CIB81Yr_.js";import{_ as v}from"./TextInput-CvMe3C5R.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"flex items-center justify-end mt-4"},q={__name:"ForgotPassword",props:{status:{type:String}},setup(r){const e=u({email:""}),i=()=>{e.post(route("password.email"))};return(P,s)=>(m(),d(b,null,{default:l(()=>[a(t(c),{title:"Forgot Password"}),s[2]||(s[2]=o("div",{class:"mb-4 text-sm text-gray-600"}," Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one. ",-1)),r.status?(m(),f("div",B,p(r.status),1)):w("",!0),o("form",{onSubmit:g(i,["prevent"])},[o("div",null,[a(x,{for:"email",value:"Email"}),a(v,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=n=>t(e).email=n),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),a(k,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),o("div",N,[a(V,{class:y({"opacity-25":t(e).processing}),disabled:t(e).processing},{default:l(()=>s[1]||(s[1]=[_(" Email Password Reset Link ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{q as default}; diff --git a/public/build/assets/GuestLayout-BXXL9wvL.js b/public/build/assets/GuestLayout-C6KGR1m6.js similarity index 65% rename from public/build/assets/GuestLayout-BXXL9wvL.js rename to public/build/assets/GuestLayout-C6KGR1m6.js index 01c74511..fd5ca974 100644 --- a/public/build/assets/GuestLayout-BXXL9wvL.js +++ b/public/build/assets/GuestLayout-C6KGR1m6.js @@ -1 +1 @@ -import{A as a}from"./ApplicationLogo-BfIosL1f.js";import{b as o,c as r,d as e,a as s,w as l,u as c,i as n,I as i}from"./app-NB_nCFcw.js";const d={class:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100"},m={class:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg"},h={__name:"GuestLayout",setup(u){return(t,f)=>(o(),r("div",d,[e("div",null,[s(c(n),{href:"/"},{default:l(()=>[s(a,{class:"h-16 fill-current text-gray-500"})]),_:1})]),e("div",m,[i(t.$slots,"default")])]))}};export{h as _}; +import{A as a}from"./ApplicationLogo-DKaozThB.js";import{b as o,c as r,d as e,a as s,w as l,u as c,i as n,I as i}from"./app-DAMU3Vsb.js";const d={class:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100"},m={class:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg"},h={__name:"GuestLayout",setup(u){return(t,f)=>(o(),r("div",d,[e("div",null,[s(c(n),{href:"/"},{default:l(()=>[s(a,{class:"h-16 fill-current text-gray-500"})]),_:1})]),e("div",m,[i(t.$slots,"default")])]))}};export{h as _}; diff --git a/public/build/assets/InputError-B8NEdD9b.js b/public/build/assets/InputError-KrPZcAOb.js similarity index 53% rename from public/build/assets/InputError-B8NEdD9b.js rename to public/build/assets/InputError-KrPZcAOb.js index ed2fa7c6..ca00a627 100644 --- a/public/build/assets/InputError-B8NEdD9b.js +++ b/public/build/assets/InputError-KrPZcAOb.js @@ -1 +1 @@ -import{l as s,J as t,b as a,c as r,d as c,t as o}from"./app-NB_nCFcw.js";const n={class:"text-sm text-red-600"},p={__name:"InputError",props:{message:{type:String}},setup(e){return(i,m)=>s((a(),r("div",null,[c("p",n,o(e.message),1)],512)),[[t,e.message]])}};export{p as _}; +import{l as s,J as t,b as a,c as r,d as c,t as o}from"./app-DAMU3Vsb.js";const n={class:"text-sm text-red-600"},p={__name:"InputError",props:{message:{type:String}},setup(e){return(i,m)=>s((a(),r("div",null,[c("p",n,o(e.message),1)],512)),[[t,e.message]])}};export{p as _}; diff --git a/public/build/assets/InputLabel-omYb-gwx.js b/public/build/assets/InputLabel-Wt1TYZ0A.js similarity index 80% rename from public/build/assets/InputLabel-omYb-gwx.js rename to public/build/assets/InputLabel-Wt1TYZ0A.js index 8cdd2870..dbf61ea9 100644 --- a/public/build/assets/InputLabel-omYb-gwx.js +++ b/public/build/assets/InputLabel-Wt1TYZ0A.js @@ -1 +1 @@ -import{b as e,c as t,t as o,I as n}from"./app-NB_nCFcw.js";const l={class:"block font-medium text-sm text-gray-700"},c={key:0},r={key:1},p={__name:"InputLabel",props:{value:{type:String}},setup(s){return(a,_)=>(e(),t("label",l,[s.value?(e(),t("span",c,o(s.value),1)):(e(),t("span",r,[n(a.$slots,"default")]))]))}};export{p as _}; +import{b as e,c as t,t as o,I as n}from"./app-DAMU3Vsb.js";const l={class:"block font-medium text-sm text-gray-700"},c={key:0},r={key:1},p={__name:"InputLabel",props:{value:{type:String}},setup(s){return(a,_)=>(e(),t("label",l,[s.value?(e(),t("span",c,o(s.value),1)):(e(),t("span",r,[n(a.$slots,"default")]))]))}};export{p as _}; diff --git a/public/build/assets/Login-B8EDuc_R.js b/public/build/assets/Login-BTp1pdSs.js similarity index 84% rename from public/build/assets/Login-B8EDuc_R.js rename to public/build/assets/Login-BTp1pdSs.js index 252960ae..969b5eaa 100644 --- a/public/build/assets/Login-B8EDuc_R.js +++ b/public/build/assets/Login-BTp1pdSs.js @@ -1 +1 @@ -import{T as _,h as n,w as l,b as i,a as o,u as t,Z as b,c as y,t as k,f as d,d as a,i as x,e as u,n as V,k as v}from"./app-NB_nCFcw.js";import{_ as B}from"./Checkbox-BkCSZ4j2.js";import{_ as P}from"./GuestLayout-BXXL9wvL.js";import{_ as f}from"./InputError-B8NEdD9b.js";import{_ as c}from"./InputLabel-omYb-gwx.js";import{P as $}from"./PrimaryButton-CiDAOitU.js";import{_ as p}from"./TextInput-Fah8vm6N.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const h={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"mt-4"},q={class:"block mt-4"},C={class:"flex items-center"},L={class:"flex items-center justify-end mt-4"},M={__name:"Login",props:{canResetPassword:{type:Boolean},status:{type:String}},setup(m){const e=_({email:"",password:"",remember:!1}),g=()=>{e.post(route("login"),{onFinish:()=>e.reset("password")})};return(w,s)=>(i(),n(P,null,{default:l(()=>[o(t(b),{title:"Log in"}),m.status?(i(),y("div",h,k(m.status),1)):d("",!0),a("form",{onSubmit:v(g,["prevent"])},[a("div",null,[o(c,{for:"email",value:"Email"}),o(p,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=r=>t(e).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),a("div",N,[o(c,{for:"password",value:"Password"}),o(p,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:t(e).password,"onUpdate:modelValue":s[1]||(s[1]=r=>t(e).password=r),required:"",autocomplete:"current-password"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),a("div",q,[a("label",C,[o(B,{name:"remember",checked:t(e).remember,"onUpdate:checked":s[2]||(s[2]=r=>t(e).remember=r)},null,8,["checked"]),s[3]||(s[3]=a("span",{class:"ms-2 text-sm text-gray-600"},"Remember me",-1))])]),a("div",L,[m.canResetPassword?(i(),n(t(x),{key:0,href:w.route("password.request"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:l(()=>s[4]||(s[4]=[u(" Forgot your password? ")])),_:1},8,["href"])):d("",!0),o($,{class:V(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:l(()=>s[5]||(s[5]=[u(" Log in ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{M as default}; +import{T as _,h as n,w as l,b as i,a as o,u as t,Z as b,c as y,t as k,f as d,d as a,i as x,e as u,n as V,k as v}from"./app-DAMU3Vsb.js";import{_ as B}from"./Checkbox-lS5kFIWr.js";import{_ as P}from"./GuestLayout-C6KGR1m6.js";import{_ as f}from"./InputError-KrPZcAOb.js";import{_ as c}from"./InputLabel-Wt1TYZ0A.js";import{P as $}from"./PrimaryButton-CIB81Yr_.js";import{_ as p}from"./TextInput-CvMe3C5R.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const h={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"mt-4"},q={class:"block mt-4"},C={class:"flex items-center"},L={class:"flex items-center justify-end mt-4"},M={__name:"Login",props:{canResetPassword:{type:Boolean},status:{type:String}},setup(m){const e=_({email:"",password:"",remember:!1}),g=()=>{e.post(route("login"),{onFinish:()=>e.reset("password")})};return(w,s)=>(i(),n(P,null,{default:l(()=>[o(t(b),{title:"Log in"}),m.status?(i(),y("div",h,k(m.status),1)):d("",!0),a("form",{onSubmit:v(g,["prevent"])},[a("div",null,[o(c,{for:"email",value:"Email"}),o(p,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=r=>t(e).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),a("div",N,[o(c,{for:"password",value:"Password"}),o(p,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:t(e).password,"onUpdate:modelValue":s[1]||(s[1]=r=>t(e).password=r),required:"",autocomplete:"current-password"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),a("div",q,[a("label",C,[o(B,{name:"remember",checked:t(e).remember,"onUpdate:checked":s[2]||(s[2]=r=>t(e).remember=r)},null,8,["checked"]),s[3]||(s[3]=a("span",{class:"ms-2 text-sm text-gray-600"},"Remember me",-1))])]),a("div",L,[m.canResetPassword?(i(),n(t(x),{key:0,href:w.route("password.request"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:l(()=>s[4]||(s[4]=[u(" Forgot your password? ")])),_:1},8,["href"])):d("",!0),o($,{class:V(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:l(()=>s[5]||(s[5]=[u(" Log in ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{M as default}; diff --git a/public/build/assets/MyTeam-BIW5O6XV.js b/public/build/assets/MyTeam-DDDfjcxp.js similarity index 92% rename from public/build/assets/MyTeam-BIW5O6XV.js rename to public/build/assets/MyTeam-DDDfjcxp.js index 9b9d51cc..4519b8ea 100644 --- a/public/build/assets/MyTeam-BIW5O6XV.js +++ b/public/build/assets/MyTeam-DDDfjcxp.js @@ -1 +1 @@ -import{S as k,_ as B}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as v,o as b,b as s,c as a,d as e,a as f,h as C,w as h,e as g,f as _,F as p,g as x,t as y,Q as V,u as N,Z as j,n as D}from"./app-NB_nCFcw.js";import"./dayjs.min-DM5MTW9C.js";import"./relativeTime-CdoPJJJp.js";import"./utc-CsIElMW4.js";import{_ as E}from"./TextInput-Fah8vm6N.js";import{P as $}from"./PrimaryButton-CiDAOitU.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={key:0,class:"card"},P={key:0},U={class:"flex justify-between items-center"},q={class:"flex-grow mr-2"},z={class:"ml-2"},K={key:0,class:"p-2 text-sm"},L=["onClick"],O={key:1,class:"flex justify-between items-center"},Q={class:"ml-2"},Y={__name:"MyTeamEditorComponent",setup(w){const n=v({}),c=v({}),i=v({}),u=v(""),o=v(!1);b(()=>{d()});function r(){o.value=!1,u.value="",n.value={}}function d(){axios.get("/my-team?cached=false&relations=country").then(l=>{c.value=l.data.data,i.value=c.value.country}).catch(l=>{console.log(l)})}function T(l){i.value=l,n.value={},o.value=!1}function M(){let l={country_id:i.value.id};axios.put("/my-team/"+V().props.auth.user.current_team_id,l).then(t=>{k.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{d()})}).catch(t=>{k.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function S(){u.value.length>2&&axios.get("/countries?cached=false&where[]=name,like,*"+u.value+"*&").then(l=>{n.value=l.data.data}).catch(l=>{console.log(l)})}return(l,t)=>c.value.country?(s(),a("div",F,[t[7]||(t[7]=e("div",{class:"card-header"}," Country / Currency ",-1)),o.value?(s(),a("div",P,[e("div",U,[e("div",q,[f(E,{id:"country",type:"text",class:"mt-1 block w-full",modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=m=>u.value=m),required:"",onKeyup:t[1]||(t[1]=m=>S())},null,8,["modelValue"])]),e("div",z,[u.value.length===0||i.value.id===c.value.country_id?(s(),C($,{key:0,onClick:t[2]||(t[2]=m=>r())},{default:h(()=>t[5]||(t[5]=[g("Cancel")])),_:1})):_("",!0)])]),n.value.data&&n.value.data.length?(s(),a("div",K,[(s(!0),a(p,null,x(n.value.data,m=>(s(),a("div",{class:"py-1 border-b cursor-pointer hover:opacity-50",onClick:oe=>T(m)},y(m.name),9,L))),256))])):_("",!0)])):(s(),a("div",O,[e("div",{onClick:t[3]||(t[3]=m=>o.value=!0),class:"cursor-pointer flex-grow mr-2"},y(i.value.name)+" ("+y(i.value.currency_code)+") ",1),e("div",Q,[u.value.length>0&&i.value.id!==c.value.country_id?(s(),C($,{key:0,onClick:t[4]||(t[4]=m=>M())},{default:h(()=>t[6]||(t[6]=[g("Save")])),_:1})):_("",!0)])]))])):_("",!0)}},Z={class:"card"},A={class:"flex items-start font-bold"},G={class:"pl-2 text-2xl"},H={class:"card",id:"myTeamMembers"},I={key:0},J={class:""},R={key:0,class:"flex items-center"},W={class:"card"},X={class:""},ee={class:"border-b py-2 flex justify-between"},te={key:0},se={key:1},ae=["href"],_e={__name:"MyTeam",setup(w){const n=v({}),c=v({});b(()=>{i(),u()});function i(){axios.get("/my-team?cached=false&relations=teamUsers.user").then(o=>{n.value=o.data.data}).catch(o=>{console.log(o)})}function u(){axios.get("/my-teams?cached=false&orderBy=name,asc").then(o=>{c.value=o.data.data}).catch(o=>{console.log(o)})}return(o,r)=>(s(),a(p,null,[f(N(j),{title:"Dashboard"}),f(B,null,{header:h(()=>r[0]||(r[0]=[g(" My Team ")])),default:h(()=>[e("div",Z,[e("div",A,[e("div",G,y(n.value.name),1)])]),e("div",H,[r[1]||(r[1]=e("div",{class:"card-header"}," Team members ",-1)),n.value.team_users&&n.value.team_users.length>0?(s(),a("div",I,[(s(!0),a(p,null,x(n.value.team_users,d=>(s(),a("div",J,[e("div",{class:D({"border-b p-2":n.value.team_users.length>1})},[d.user?(s(),a("div",R,[e("div",null,y(d.user.name),1)])):_("",!0)],2)]))),256))])):_("",!0)]),e("div",W,[r[2]||(r[2]=e("div",{class:"card-header"}," Teams You Belong To ",-1)),(s(!0),a(p,null,x(c.value.data,d=>(s(),a("div",X,[e("div",ee,[e("div",null,y(d.name),1),e("div",null,[d.id===o.$page.props.auth.user.current_team_id?(s(),a("div",te," Current ")):(s(),a("div",se,[e("a",{href:"/switch-team/"+d.id,class:"text-red-500"},"Switch to this team",8,ae)]))])])]))),256))]),f(Y),r[3]||(r[3]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{_e as default}; +import{S as k,_ as B}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as v,o as b,b as s,c as a,d as e,a as f,h as C,w as h,e as g,f as _,F as p,g as x,t as y,Q as V,u as N,Z as j,n as D}from"./app-DAMU3Vsb.js";import"./dayjs.min-LcFuhhy0.js";import"./relativeTime-Bgw1Nd-u.js";import"./utc-D9fONLNZ.js";import{_ as E}from"./TextInput-CvMe3C5R.js";import{P as $}from"./PrimaryButton-CIB81Yr_.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={key:0,class:"card"},P={key:0},U={class:"flex justify-between items-center"},q={class:"flex-grow mr-2"},z={class:"ml-2"},K={key:0,class:"p-2 text-sm"},L=["onClick"],O={key:1,class:"flex justify-between items-center"},Q={class:"ml-2"},Y={__name:"MyTeamEditorComponent",setup(w){const n=v({}),c=v({}),i=v({}),u=v(""),o=v(!1);b(()=>{d()});function r(){o.value=!1,u.value="",n.value={}}function d(){axios.get("/my-team?cached=false&relations=country").then(l=>{c.value=l.data.data,i.value=c.value.country}).catch(l=>{console.log(l)})}function T(l){i.value=l,n.value={},o.value=!1}function M(){let l={country_id:i.value.id};axios.put("/my-team/"+V().props.auth.user.current_team_id,l).then(t=>{k.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{d()})}).catch(t=>{k.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function S(){u.value.length>2&&axios.get("/countries?cached=false&where[]=name,like,*"+u.value+"*&").then(l=>{n.value=l.data.data}).catch(l=>{console.log(l)})}return(l,t)=>c.value.country?(s(),a("div",F,[t[7]||(t[7]=e("div",{class:"card-header"}," Country / Currency ",-1)),o.value?(s(),a("div",P,[e("div",U,[e("div",q,[f(E,{id:"country",type:"text",class:"mt-1 block w-full",modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=m=>u.value=m),required:"",onKeyup:t[1]||(t[1]=m=>S())},null,8,["modelValue"])]),e("div",z,[u.value.length===0||i.value.id===c.value.country_id?(s(),C($,{key:0,onClick:t[2]||(t[2]=m=>r())},{default:h(()=>t[5]||(t[5]=[g("Cancel")])),_:1})):_("",!0)])]),n.value.data&&n.value.data.length?(s(),a("div",K,[(s(!0),a(p,null,x(n.value.data,m=>(s(),a("div",{class:"py-1 border-b cursor-pointer hover:opacity-50",onClick:oe=>T(m)},y(m.name),9,L))),256))])):_("",!0)])):(s(),a("div",O,[e("div",{onClick:t[3]||(t[3]=m=>o.value=!0),class:"cursor-pointer flex-grow mr-2"},y(i.value.name)+" ("+y(i.value.currency_code)+") ",1),e("div",Q,[u.value.length>0&&i.value.id!==c.value.country_id?(s(),C($,{key:0,onClick:t[4]||(t[4]=m=>M())},{default:h(()=>t[6]||(t[6]=[g("Save")])),_:1})):_("",!0)])]))])):_("",!0)}},Z={class:"card"},A={class:"flex items-start font-bold"},G={class:"pl-2 text-2xl"},H={class:"card",id:"myTeamMembers"},I={key:0},J={class:""},R={key:0,class:"flex items-center"},W={class:"card"},X={class:""},ee={class:"border-b py-2 flex justify-between"},te={key:0},se={key:1},ae=["href"],_e={__name:"MyTeam",setup(w){const n=v({}),c=v({});b(()=>{i(),u()});function i(){axios.get("/my-team?cached=false&relations=teamUsers.user").then(o=>{n.value=o.data.data}).catch(o=>{console.log(o)})}function u(){axios.get("/my-teams?cached=false&orderBy=name,asc").then(o=>{c.value=o.data.data}).catch(o=>{console.log(o)})}return(o,r)=>(s(),a(p,null,[f(N(j),{title:"Dashboard"}),f(B,null,{header:h(()=>r[0]||(r[0]=[g(" My Team ")])),default:h(()=>[e("div",Z,[e("div",A,[e("div",G,y(n.value.name),1)])]),e("div",H,[r[1]||(r[1]=e("div",{class:"card-header"}," Team members ",-1)),n.value.team_users&&n.value.team_users.length>0?(s(),a("div",I,[(s(!0),a(p,null,x(n.value.team_users,d=>(s(),a("div",J,[e("div",{class:D({"border-b p-2":n.value.team_users.length>1})},[d.user?(s(),a("div",R,[e("div",null,y(d.user.name),1)])):_("",!0)],2)]))),256))])):_("",!0)]),e("div",W,[r[2]||(r[2]=e("div",{class:"card-header"}," Teams You Belong To ",-1)),(s(!0),a(p,null,x(c.value.data,d=>(s(),a("div",X,[e("div",ee,[e("div",null,y(d.name),1),e("div",null,[d.id===o.$page.props.auth.user.current_team_id?(s(),a("div",te," Current ")):(s(),a("div",se,[e("a",{href:"/switch-team/"+d.id,class:"text-red-500"},"Switch to this team",8,ae)]))])])]))),256))]),f(Y),r[3]||(r[3]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{_e as default}; diff --git a/public/build/assets/MyTeamVoucherSets-Bv7bGieI.js b/public/build/assets/MyTeamVoucherSets-ibMyvl9J.js similarity index 82% rename from public/build/assets/MyTeamVoucherSets-Bv7bGieI.js rename to public/build/assets/MyTeamVoucherSets-ibMyvl9J.js index 1fc4a095..d49a29e1 100644 --- a/public/build/assets/MyTeamVoucherSets-Bv7bGieI.js +++ b/public/build/assets/MyTeamVoucherSets-ibMyvl9J.js @@ -1 +1 @@ -import{_ as b}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as f,o as g,b as s,c as r,F as x,g as k,h as w,w as u,d as a,t as m,f as d,u as l,Q as h,i as T,a as i,Z as C,e as B}from"./app-NB_nCFcw.js";import{d as v}from"./dayjs.min-DM5MTW9C.js";import{r as M}from"./relativeTime-CdoPJJJp.js";import{u as $}from"./utc-CsIElMW4.js";import{P as j}from"./PaginatorComponent-C4rhva1F.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./SecondaryButton-DvjXhVuA.js";const N={key:0},D={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},S={class:"font-bold text-sm"},F={key:0,class:"text-red-500"},q={key:1},z={key:2},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},y={__name:"MyTeamVoucherSetsComponent",props:{filterVoucherSets:{required:!1,default:null}},setup(_){v.extend(M),v.extend($);const n=_,e=f({}),V=f(5);g(()=>{p()});function p(c=1){let o="/my-team-voucher-sets";n.filterVoucherSets&&(o=o+n.filterVoucherSets),axios.get(o+"?cached=false&page="+c+"&limit="+V.value+"&relations=createdByTeam,allocatedToServiceTeam").then(t=>{e.value=t.data.data}).catch(t=>{console.log(t)})}return(c,o)=>e.value.data&&e.value.data.length?(s(),r("div",N,[(s(!0),r(x,null,k(e.value.data,t=>(s(),w(l(T),{href:c.route("voucher-set",t.id),class:"hover:no-underline hover:opacity-75"},{default:u(()=>[a("div",D,[a("div",P,[a("div",S," #"+m(t.id),1),t.is_test?(s(),r("div",F," Test voucher set ")):d("",!0),t.created_by_team&&t.created_by_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",q," Created by: "+m(t.created_by_team.name),1)):d("",!0),t.allocated_to_service_team&&t.allocated_to_service_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",z," Allocated to: "+m(t.allocated_to_service_team.name),1)):d("",!0)]),o[0]||(o[0]=a("div",null,[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),a("div",A,[a("div",E,[i(j,{onSetDataPage:p,"pagination-data":e.value},null,8,["pagination-data"])])])])):d("",!0)}},L={class:"card"},Q={class:"card"},X={__name:"MyTeamVoucherSets",setup(_){return g(()=>{}),(n,e)=>(s(),r(x,null,[i(l(C),{title:"Dashboard"}),i(b,null,{header:u(()=>e[0]||(e[0]=[B(" My Team Voucher Sets ")])),default:u(()=>[a("div",L,[e[1]||(e[1]=a("div",{class:"card-header"}," Voucher sets Created by my team ",-1)),i(y,{"filter-voucher-sets":"-created"})]),a("div",Q,[e[2]||(e[2]=a("div",{class:"card-header"}," Voucher sets allocated to my team ",-1)),i(y,{"filter-voucher-sets":"-allocated"})]),e[3]||(e[3]=a("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{X as default}; +import{_ as b}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as f,o as g,b as s,c as r,F as x,g as k,h as w,w as u,d as a,t as m,f as d,u as l,Q as h,i as T,a as i,Z as C,e as B}from"./app-DAMU3Vsb.js";import{d as v}from"./dayjs.min-LcFuhhy0.js";import{r as M}from"./relativeTime-Bgw1Nd-u.js";import{u as $}from"./utc-D9fONLNZ.js";import{P as j}from"./PaginatorComponent-CoSTMxRA.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./SecondaryButton-CDQDA5dD.js";const N={key:0},D={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},S={class:"font-bold text-sm"},F={key:0,class:"text-red-500"},q={key:1},z={key:2},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},y={__name:"MyTeamVoucherSetsComponent",props:{filterVoucherSets:{required:!1,default:null}},setup(_){v.extend(M),v.extend($);const n=_,e=f({}),V=f(5);g(()=>{p()});function p(c=1){let o="/my-team-voucher-sets";n.filterVoucherSets&&(o=o+n.filterVoucherSets),axios.get(o+"?cached=false&page="+c+"&limit="+V.value+"&relations=createdByTeam,allocatedToServiceTeam").then(t=>{e.value=t.data.data}).catch(t=>{console.log(t)})}return(c,o)=>e.value.data&&e.value.data.length?(s(),r("div",N,[(s(!0),r(x,null,k(e.value.data,t=>(s(),w(l(T),{href:c.route("voucher-set",t.id),class:"hover:no-underline hover:opacity-75"},{default:u(()=>[a("div",D,[a("div",P,[a("div",S," #"+m(t.id),1),t.is_test?(s(),r("div",F," Test voucher set ")):d("",!0),t.created_by_team&&t.created_by_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",q," Created by: "+m(t.created_by_team.name),1)):d("",!0),t.allocated_to_service_team&&t.allocated_to_service_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",z," Allocated to: "+m(t.allocated_to_service_team.name),1)):d("",!0)]),o[0]||(o[0]=a("div",null,[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),a("div",A,[a("div",E,[i(j,{onSetDataPage:p,"pagination-data":e.value},null,8,["pagination-data"])])])])):d("",!0)}},L={class:"card"},Q={class:"card"},X={__name:"MyTeamVoucherSets",setup(_){return g(()=>{}),(n,e)=>(s(),r(x,null,[i(l(C),{title:"Dashboard"}),i(b,null,{header:u(()=>e[0]||(e[0]=[B(" My Team Voucher Sets ")])),default:u(()=>[a("div",L,[e[1]||(e[1]=a("div",{class:"card-header"}," Voucher sets Created by my team ",-1)),i(y,{"filter-voucher-sets":"-created"})]),a("div",Q,[e[2]||(e[2]=a("div",{class:"card-header"}," Voucher sets allocated to my team ",-1)),i(y,{"filter-voucher-sets":"-allocated"})]),e[3]||(e[3]=a("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{X as default}; diff --git a/public/build/assets/PaginatorComponent-C4rhva1F.js b/public/build/assets/PaginatorComponent-CoSTMxRA.js similarity index 93% rename from public/build/assets/PaginatorComponent-C4rhva1F.js rename to public/build/assets/PaginatorComponent-CoSTMxRA.js index 09e1bf16..03b8cd5e 100644 --- a/public/build/assets/PaginatorComponent-C4rhva1F.js +++ b/public/build/assets/PaginatorComponent-CoSTMxRA.js @@ -1 +1 @@ -import{_ as m}from"./SecondaryButton-DvjXhVuA.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{H as d,b as s,c as r,d as e,a as l,w as p,t as n,f as g}from"./app-NB_nCFcw.js";const f={components:{SecondaryButton:m},props:{paginationData:{type:Object,required:!0},showSummary:{type:Boolean,required:!1,default:!0}},mounted(){},created(){},methods:{paginatePrevious(){this.paginationData.current_page>1&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page-1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page-1))},paginateNext(){this.paginationData.total>this.paginationData.to&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page+1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page+1))}}},h={key:0},w={class:"grid grid-cols-2 gap-2 text-center"},_={key:0,class:"w-full text-center text-sm"};function D(x,t,a,v,k,o){const i=d("SecondaryButton");return a.paginationData.total>a.paginationData.per_page?(s(),r("div",h,[e("div",w,[e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[0]||(t[0]=c=>o.paginatePrevious())},{default:p(()=>t[2]||(t[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1)])),_:1})]),e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[1]||(t[1]=c=>o.paginateNext())},{default:p(()=>t[3]||(t[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1})])]),a.showSummary?(s(),r("div",_," Showing "+n(a.paginationData.from)+" - "+n(a.paginationData.to)+" of "+n(a.paginationData.total),1)):g("",!0)])):g("",!0)}const P=u(f,[["render",D]]);export{P}; +import{_ as m}from"./SecondaryButton-CDQDA5dD.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{H as d,b as s,c as r,d as e,a as l,w as p,t as n,f as g}from"./app-DAMU3Vsb.js";const f={components:{SecondaryButton:m},props:{paginationData:{type:Object,required:!0},showSummary:{type:Boolean,required:!1,default:!0}},mounted(){},created(){},methods:{paginatePrevious(){this.paginationData.current_page>1&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page-1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page-1))},paginateNext(){this.paginationData.total>this.paginationData.to&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page+1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page+1))}}},h={key:0},w={class:"grid grid-cols-2 gap-2 text-center"},_={key:0,class:"w-full text-center text-sm"};function D(x,t,a,v,k,o){const i=d("SecondaryButton");return a.paginationData.total>a.paginationData.per_page?(s(),r("div",h,[e("div",w,[e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[0]||(t[0]=c=>o.paginatePrevious())},{default:p(()=>t[2]||(t[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1)])),_:1})]),e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[1]||(t[1]=c=>o.paginateNext())},{default:p(()=>t[3]||(t[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1})])]),a.showSummary?(s(),r("div",_," Showing "+n(a.paginationData.from)+" - "+n(a.paginationData.to)+" of "+n(a.paginationData.total),1)):g("",!0)])):g("",!0)}const P=u(f,[["render",D]]);export{P}; diff --git a/public/build/assets/PrimaryButton-CiDAOitU.js b/public/build/assets/PrimaryButton-CIB81Yr_.js similarity index 88% rename from public/build/assets/PrimaryButton-CiDAOitU.js rename to public/build/assets/PrimaryButton-CIB81Yr_.js index cc4717d7..643e88b1 100644 --- a/public/build/assets/PrimaryButton-CiDAOitU.js +++ b/public/build/assets/PrimaryButton-CIB81Yr_.js @@ -1 +1 @@ -import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,I as n}from"./app-NB_nCFcw.js";const s={},i={class:"inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150"};function a(e,c){return r(),o("button",i,[n(e.$slots,"default")])}const d=t(s,[["render",a]]);export{d as P}; +import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,I as n}from"./app-DAMU3Vsb.js";const s={},i={class:"inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150"};function a(e,c){return r(),o("button",i,[n(e.$slots,"default")])}const d=t(s,[["render",a]]);export{d as P}; diff --git a/public/build/assets/Register-BYssDH9v.js b/public/build/assets/Register-DQ-ZQSRR.js similarity index 87% rename from public/build/assets/Register-BYssDH9v.js rename to public/build/assets/Register-DQ-ZQSRR.js index 66c95efa..2d6aa1dd 100644 --- a/public/build/assets/Register-BYssDH9v.js +++ b/public/build/assets/Register-DQ-ZQSRR.js @@ -1 +1 @@ -import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as l,e as d,i as g,n as V,k as v}from"./app-NB_nCFcw.js";import{_ as y}from"./GuestLayout-BXXL9wvL.js";import{_ as t}from"./InputError-B8NEdD9b.js";import{_ as m}from"./InputLabel-omYb-gwx.js";import{P as b}from"./PrimaryButton-CiDAOitU.js";import{_ as i}from"./TextInput-Fah8vm6N.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"mt-4"},k={class:"mt-4"},q={class:"mt-4"},B={class:"flex items-center justify-end mt-4"},A={__name:"Register",setup(N){const s=f({name:"",email:"",password:"",password_confirmation:""}),u=()=>{s.post(route("register"),{onFinish:()=>s.reset("password","password_confirmation")})};return(p,a)=>(w(),c(y,null,{default:n(()=>[o(e(_),{title:"Register"}),l("form",{onSubmit:v(u,["prevent"])},[l("div",null,[o(m,{for:"name",value:"Name"}),o(i,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(s).name,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).name=r),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.name},null,8,["message"])]),l("div",x,[o(m,{for:"email",value:"Email"}),o(i,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).email=r),required:"",autocomplete:"username"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),l("div",k,[o(m,{for:"password",value:"Password"}),o(i,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),l("div",q,[o(m,{for:"password_confirmation",value:"Confirm Password"}),o(i,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[3]||(a[3]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),l("div",B,[o(e(g),{href:p.route("login"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:n(()=>a[4]||(a[4]=[d(" Already registered? ")])),_:1},8,["href"]),o(b,{class:V(["ms-4",{"opacity-25":e(s).processing}]),disabled:e(s).processing},{default:n(()=>a[5]||(a[5]=[d(" Register ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{A as default}; +import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as l,e as d,i as g,n as V,k as v}from"./app-DAMU3Vsb.js";import{_ as y}from"./GuestLayout-C6KGR1m6.js";import{_ as t}from"./InputError-KrPZcAOb.js";import{_ as m}from"./InputLabel-Wt1TYZ0A.js";import{P as b}from"./PrimaryButton-CIB81Yr_.js";import{_ as i}from"./TextInput-CvMe3C5R.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"mt-4"},k={class:"mt-4"},q={class:"mt-4"},B={class:"flex items-center justify-end mt-4"},A={__name:"Register",setup(N){const s=f({name:"",email:"",password:"",password_confirmation:""}),u=()=>{s.post(route("register"),{onFinish:()=>s.reset("password","password_confirmation")})};return(p,a)=>(w(),c(y,null,{default:n(()=>[o(e(_),{title:"Register"}),l("form",{onSubmit:v(u,["prevent"])},[l("div",null,[o(m,{for:"name",value:"Name"}),o(i,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(s).name,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).name=r),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.name},null,8,["message"])]),l("div",x,[o(m,{for:"email",value:"Email"}),o(i,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).email=r),required:"",autocomplete:"username"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),l("div",k,[o(m,{for:"password",value:"Password"}),o(i,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),l("div",q,[o(m,{for:"password_confirmation",value:"Confirm Password"}),o(i,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[3]||(a[3]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),l("div",B,[o(e(g),{href:p.route("login"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:n(()=>a[4]||(a[4]=[d(" Already registered? ")])),_:1},8,["href"]),o(b,{class:V(["ms-4",{"opacity-25":e(s).processing}]),disabled:e(s).processing},{default:n(()=>a[5]||(a[5]=[d(" Register ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{A as default}; diff --git a/public/build/assets/ResetPassword-CUxvjknQ.js b/public/build/assets/ResetPassword-CchZ69XZ.js similarity index 85% rename from public/build/assets/ResetPassword-CUxvjknQ.js rename to public/build/assets/ResetPassword-CchZ69XZ.js index 6583cb7c..84202f76 100644 --- a/public/build/assets/ResetPassword-CUxvjknQ.js +++ b/public/build/assets/ResetPassword-CchZ69XZ.js @@ -1 +1 @@ -import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as t,e as V,n as g,k}from"./app-NB_nCFcw.js";import{_ as b}from"./GuestLayout-BXXL9wvL.js";import{_ as l}from"./InputError-B8NEdD9b.js";import{_ as i}from"./InputLabel-omYb-gwx.js";import{P as v}from"./PrimaryButton-CiDAOitU.js";import{_ as m}from"./TextInput-Fah8vm6N.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"mt-4"},P={class:"mt-4"},q={class:"flex items-center justify-end mt-4"},j={__name:"ResetPassword",props:{email:{type:String,required:!0},token:{type:String,required:!0}},setup(p){const d=p,s=f({token:d.token,email:d.email,password:"",password_confirmation:""}),u=()=>{s.post(route("password.store"),{onFinish:()=>s.reset("password","password_confirmation")})};return(x,a)=>(w(),c(b,null,{default:n(()=>[o(e(_),{title:"Reset Password"}),t("form",{onSubmit:k(u,["prevent"])},[t("div",null,[o(i,{for:"email",value:"Email"}),o(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),t("div",y,[o(i,{for:"password",value:"Password"}),o(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),t("div",P,[o(i,{for:"password_confirmation",value:"Confirm Password"}),o(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),t("div",q,[o(v,{class:g({"opacity-25":e(s).processing}),disabled:e(s).processing},{default:n(()=>a[3]||(a[3]=[V(" Reset Password ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; +import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as t,e as V,n as g,k}from"./app-DAMU3Vsb.js";import{_ as b}from"./GuestLayout-C6KGR1m6.js";import{_ as l}from"./InputError-KrPZcAOb.js";import{_ as i}from"./InputLabel-Wt1TYZ0A.js";import{P as v}from"./PrimaryButton-CIB81Yr_.js";import{_ as m}from"./TextInput-CvMe3C5R.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"mt-4"},P={class:"mt-4"},q={class:"flex items-center justify-end mt-4"},j={__name:"ResetPassword",props:{email:{type:String,required:!0},token:{type:String,required:!0}},setup(p){const d=p,s=f({token:d.token,email:d.email,password:"",password_confirmation:""}),u=()=>{s.post(route("password.store"),{onFinish:()=>s.reset("password","password_confirmation")})};return(x,a)=>(w(),c(b,null,{default:n(()=>[o(e(_),{title:"Reset Password"}),t("form",{onSubmit:k(u,["prevent"])},[t("div",null,[o(i,{for:"email",value:"Email"}),o(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),t("div",y,[o(i,{for:"password",value:"Password"}),o(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),t("div",P,[o(i,{for:"password_confirmation",value:"Confirm Password"}),o(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),t("div",q,[o(v,{class:g({"opacity-25":e(s).processing}),disabled:e(s).processing},{default:n(()=>a[3]||(a[3]=[V(" Reset Password ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; diff --git a/public/build/assets/SecondaryButton-DvjXhVuA.js b/public/build/assets/SecondaryButton-CDQDA5dD.js similarity index 88% rename from public/build/assets/SecondaryButton-DvjXhVuA.js rename to public/build/assets/SecondaryButton-CDQDA5dD.js index 4f7cae16..b340cf33 100644 --- a/public/build/assets/SecondaryButton-DvjXhVuA.js +++ b/public/build/assets/SecondaryButton-CDQDA5dD.js @@ -1 +1 @@ -import{b as o,c as n,I as r}from"./app-NB_nCFcw.js";const s=["type"],c={__name:"SecondaryButton",props:{type:{type:String,default:"button"}},setup(e){return(t,a)=>(o(),n("button",{type:e.type,class:"inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-25 transition ease-in-out duration-150"},[r(t.$slots,"default")],8,s))}};export{c as _}; +import{b as o,c as n,I as r}from"./app-DAMU3Vsb.js";const s=["type"],c={__name:"SecondaryButton",props:{type:{type:String,default:"button"}},setup(e){return(t,a)=>(o(),n("button",{type:e.type,class:"inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-25 transition ease-in-out duration-150"},[r(t.$slots,"default")],8,s))}};export{c as _}; diff --git a/public/build/assets/Team-D8FdxRdY.js b/public/build/assets/Team-D8FdxRdY.js new file mode 100644 index 00000000..e05d4460 --- /dev/null +++ b/public/build/assets/Team-D8FdxRdY.js @@ -0,0 +1 @@ +import{b as a,c as s,d as e,t as N,r as p,a as i,j as G,k as O,F as A,g as I,f as b,o as W,w as k,e as $,u as V,i as D,n as R,Z as Y,l as Z,v as H}from"./app-DAMU3Vsb.js";import{S as j,_ as J}from"./AuthenticatedLayout-BUPPfdhf.js";import{_ as Q}from"./AdminTopNavigation-DhGdPzlz.js";import{P as U}from"./PaginatorComponent-CoSTMxRA.js";import{P as B}from"./PrimaryButton-CIB81Yr_.js";import{_ as M}from"./TextInput-CvMe3C5R.js";import{_ as q}from"./InputLabel-Wt1TYZ0A.js";import{_ as L}from"./AdminTeamCreateComponent-9Mr34fB9.js";import{_ as X}from"./AdminUserDetailsComponent-DStHbtVS.js";import{_ as ee}from"./SecondaryButton-CDQDA5dD.js";import{_ as te}from"./AjaxLoadingIndicator-jzrn0AI8.js";import{d as F}from"./dayjs.min-LcFuhhy0.js";import{r as ae}from"./relativeTime-Bgw1Nd-u.js";import{u as se}from"./utc-D9fONLNZ.js";import{D as ne}from"./DangerButton-Dm1RaOMo.js";import{_ as E}from"./VoucherSetsComponent-BkEVj6A7.js";import{_ as K}from"./VouchersComponent-B1EjqngZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const ie={class:"flex justify-start items-center"},oe={class:"text-xs mr-2"},le={class:""},P={__name:"AdminTeamDetailsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x;return(f,_)=>(a(),s("div",ie,[e("div",oe,"#"+N(c.team.id),1),e("div",le,N(c.team.name),1)]))}},de={key:0},re={key:1},ue={key:0,class:"mt-4"},me={class:"border-b py-1"},ce=["onClick"],ve={key:0,class:"text-red-500 text-xs italic pl-2"},fe={key:1},_e={__name:"AdminTeamMerchantTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsMerchantFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_merchant_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",de,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",re,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",ue,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",me,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",ve,"***Already added")):b("",!0)],8,ce)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",fe,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},he={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},pe={class:"card"},ye={class:"card-header flex justify-between items-center"},xe={class:"text-xs italic"},ge={class:""},we={class:"flex justify-end"},$e={key:0},ke={key:1},be={key:0},Ce={key:1},Te={class:"py-2"},Se={class:"font-bold"},Ne={key:2},je={key:0,class:"mb-8"},Ae={class:"border-b py-1 flex justify-between items-end"},Ie=["onClick"],Ve={class:"flex justify-end items-center mt-4"},Be={class:"w-full lg:w-1/3"},De={class:"card"},Me={class:"card-header"},Ue={key:0},Pe={class:"text-xs italic"},qe={key:0,class:"mb-8"},ze={class:"border-b py-1 flex justify-between items-end"},Oe=["onClick"],Fe={class:"flex justify-end items-center mt-4"},We={class:"w-full lg:w-1/3"},Ee={__name:"AdminTeamMerchantTeamsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){axios.get("/admin/team-merchant-teams?cached=false&where[]=team_id,"+c.team.id+"&page="+n+"&relations=merchantTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-merchant-teams?cached=false&where[]=merchant_team_id,"+c.team.id+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete merchant team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-merchant-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){if(c.team.country_id===m.value.country_id){let n={team_id:c.team.id,merchant_team_id:m.value.id};axios.post("/admin/team-merchant-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}else j.fire({title:"Country / Currency mismatch",html:"Selected merchant ("+m.value.name+") is not sharing same country as the team ("+c.team.name+"). We cannot add merchant which has different country/currency. Please update.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(n=>{m.value={},_.value=!1})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",he,[e("div",pe,[e("div",ye,[e("div",null,[t[3]||(t[3]=e("div",null," Merchant teams ",-1)),e("div",xe," These teams may redeem vouchers for "+N(x.team.name),1)]),e("div",ge,[e("div",we,[!f.value&&!_.value?(a(),s("div",$e,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Merchant Team ")])),_:1})])):(a(),s("div",ke,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])]),f.value?(a(),s("div",be,[t[6]||(t[6]=e("div",{class:"py-2"},"Select merchant team...",-1)),i(_e,{teamId:x.team.id,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",Ce,[e("div",Te,[t[7]||(t[7]=$("Add ")),e("span",Se,N(m.value.name),1),t[8]||(t[8]=$(" as merchant team? "))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",Ne,[l.value.data&&l.value.data.length?(a(),s("div",je,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",Ae,[i(V(D),{href:n.route("admin.team",v.merchant_team_id)},{default:k(()=>[i(P,{team:v.merchant_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Ie)]))),256)),e("div",Ve,[e("div",Be,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",De,[e("div",Me,[x.team.name?(a(),s("div",Ue," Teams "+N(x.team.name)+" is merchant for ",1)):b("",!0),e("div",Pe,N(x.team.name)+" may redeem vouchers for these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",qe,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",ze,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Oe)]))),256)),e("div",Fe,[e("div",We,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Ke={key:0},Ge={key:1},Le={key:0,class:"mt-4"},Re={class:"border-b py-1"},Ye=["onClick"],Ze={key:0,class:"text-red-500 text-xs italic pl-2"},He={key:1},Je={__name:"AdminTeamServiceTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsServiceFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_service_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",Ke,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",Ge,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",Le,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",Re,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",Ze,"***Already added")):b("",!0)],8,Ye)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",He,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},Qe={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},Xe={class:"card"},et={class:"card-header flex justify-between items-center"},tt={class:"text-xs italic"},at={class:""},st={class:"flex justify-end"},nt={class:"flex justify-end"},it={key:0},ot={key:1},lt={key:0},dt={key:1},rt={class:"py-2"},ut={class:"font-bold"},mt={key:2},ct={key:0,class:"mb-8"},vt={class:"border-b py-1 flex justify-between items-end"},ft=["onClick"],_t={class:"flex justify-end items-center mt-4"},ht={class:"w-full lg:w-1/3"},pt={class:"card"},yt={class:"card-header"},xt={class:"text-xs italic"},gt={key:0,class:"mb-8"},wt={class:"border-b py-1 flex justify-between items-end"},$t=["onClick"],kt={class:"flex justify-end items-center mt-4"},bt={class:"w-full lg:w-1/3"},Ct={__name:"AdminTeamServiceTeamsComponent",props:{teamId:{required:!0,type:Number},teamName:{required:!0}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=team_id,"+c.teamId+"&page="+n+"&relations=serviceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=service_team_id,"+c.teamId+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete service team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-service-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){let n={team_id:c.teamId,service_team_id:m.value.id};axios.post("/admin/team-service-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",Qe,[e("div",Xe,[e("div",et,[e("div",null,[t[3]||(t[3]=e("div",null," Service teams ",-1)),e("div",tt," These teams may distribute vouchers for redemption at "+N(x.teamName),1)]),e("div",at,[e("div",st,[e("div",nt,[!f.value&&!_.value?(a(),s("div",it,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Service Team ")])),_:1})])):(a(),s("div",ot,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])])]),f.value?(a(),s("div",lt,[t[6]||(t[6]=e("div",{class:"py-2"},"Select service team...",-1)),i(Je,{teamId:x.teamId,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",dt,[e("div",rt,[t[7]||(t[7]=$("Adding ")),e("span",ut,N(m.value.name),1),t[8]||(t[8]=$(" as service team?"))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",mt,[l.value.data&&l.value.data.length?(a(),s("div",ct,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",vt,[i(V(D),{href:n.route("admin.team",v.service_team_id)},{default:k(()=>[i(P,{team:v.service_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,ft)]))),256)),e("div",_t,[e("div",ht,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",pt,[e("div",yt,[e("div",null," Teams "+N(x.teamName)+" is service for ",1),e("div",xt,N(x.teamName)+" may distribute vouchers to these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",gt,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",wt,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,$t)]))),256)),e("div",kt,[e("div",bt,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Tt={key:0},St={class:"flex items-center justify-end mt-4"},Nt={key:1},jt={key:0,class:"mt-4"},At=["onClick"],It={key:1},Vt={__name:"AdminUserSelectComponent",props:{teamId:{required:!0,type:Number}},emits:["createNewTeamUser"],setup(x,{emit:c}){const f=x,_=p(!1),l=p({name:"",email:"",current_team_id:null}),o=p(""),m=p({}),g=c;function C(){l.value.current_team_id=f.teamId,axios.post("admin/users",l.value).then(u=>{let r=u.data.data.id;S(r),l.value={name:"",email:"",current_team_id:null},_.value=!1}).catch(u=>{console.log(u)})}function T(){axios.get("/admin/users?where[]=name,like,*"+o.value+"*&limit=100").then(u=>{m.value=u.data.data}).catch(u=>{console.log(u)})}function w(){_.value=!0,m.value={},l.value.name=o.value}function S(u){g("createNewTeamUser",u),o.value="",m.value={}}return(u,r)=>_.value?(a(),s("div",Tt,[e("div",null,[i(q,{for:"name",value:"Name"}),i(M,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value.name,"onUpdate:modelValue":r[0]||(r[0]=n=>l.value.name=n),required:""},null,8,["modelValue"])]),e("div",null,[i(q,{for:"email",value:"Email"}),i(M,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:l.value.email,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value.email=n),required:""},null,8,["modelValue"])]),e("div",St,[i(B,{onClick:r[2]||(r[2]=O(n=>C(),["prevent"])),class:R(["ms-4",{"opacity-25":!l.value.name||!l.value.email}]),disabled:!l.value.name||!l.value.email},{default:k(()=>r[7]||(r[7]=[$(" Submit ")])),_:1},8,["class","disabled"])])])):(a(),s("div",Nt,[e("div",null,[i(q,{for:"name",value:"Find A User"}),i(M,{onKeyup:r[3]||(r[3]=n=>T()),modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=n=>o.value=n),class:"mt-1 block w-full",placeholder:"Search by name..",type:"text"},null,8,["modelValue"])]),o.value.length>0&&m.value.total>0?(a(),s("div",jt,[(a(!0),s(A,null,I(m.value.data,n=>(a(),s("a",{href:"#",onClick:t=>S(n.id),class:"border-b py-1",tabindex:"0"},[i(X,{user:n},null,8,["user"])],8,At))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[5]||(r[5]=n=>w())}," Create a new user? ")])):b("",!0),o.value.length>0&&m.value.total===0?(a(),s("div",It,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[6]||(r[6]=n=>w())}," We could not find users. Do you want to create a new user? ")])):b("",!0)]))}},Bt={class:"card"},Dt={class:"card-header flex justify-between"},Mt={class:"grid gap-4 grid-cols-6 mt-8"},Ut={key:0},Pt={key:1},qt=["src"],zt={class:"flex justify-end items-center mt-4"},Ot={class:"w-full lg:w-1/3"},Ft={__name:"AdminTeamVoucherTemplatesList",props:{team:{type:Object,required:!0}},setup(x){const c=x,f=p({});function _(l=1){var o;axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+((o=c.team)==null?void 0:o.id)+"&page="+l).then(m=>{f.value=m.data.data}).catch(m=>{j.fire({icon:"error",title:"Oops!",text:m.response.data.message})})}return _(),(l,o)=>(a(),s("div",Bt,[e("div",Dt,[o[1]||(o[1]=e("div",null," Voucher Templates ",-1)),e("div",null,[i(V(D),{href:"/admin/team-voucher-templates/new?teamId="+x.team.id},{default:k(()=>[i(B,{class:""},{default:k(()=>o[0]||(o[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})],-1),$(" New Template ")])),_:1})]),_:1},8,["href"])])]),e("div",Mt,[(a(!0),s(A,null,I(f.value.data,m=>(a(),s("div",null,[m.archived_at?(a(),s("div",Ut,o[2]||(o[2]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-red-300 text-red-300 font-bold"}," Archived ",-1)]))):(a(),s("div",Pt,o[3]||(o[3]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-green-300 text-green-300 font-bold"}," Active ",-1)]))),i(V(D),{href:"/admin/team-voucher-template/"+m.id},{default:k(()=>[e("img",{src:m.example_template_image_url,alt:"",class:"border rounded"},null,8,qt)]),_:2},1032,["href"])]))),256))]),e("div",zt,[e("div",Ot,[i(U,{onSetDataPage:_,"pagination-data":f.value},null,8,["pagination-data"])])])]))}},Wt={class:"card"},Et={class:""},Kt={class:"text-gray-300 pr-1"},Gt={class:"card"},Lt={class:"flex justify-start items-center mt-4"},Rt={for:"name",class:"w-full font-bold"},Yt={class:"flex justify-start items-center mt-4"},Zt={for:"country",class:"w-full font-bold"},Ht=["value"],Jt={key:0,class:"mt-8 flex justify-end"},Qt={class:"card"},Xt={key:0},ea={class:"flex justify-between items-center hover:opacity-75"},ta={class:"flex justify-end items-center"},aa={key:0,class:"pr-2 text-xs"},sa={class:"flex"},na={key:0},ia={key:1,class:"px-2"},oa={key:2,class:"px-2"},la={class:"flex justify-end items-center mt-4"},da={class:"w-full lg:w-1/3"},ra={class:"card"},ua={key:0,class:"container mx-auto"},ma={key:1,class:"container mx-auto"},ca={class:"card"},va={class:"card"},fa={class:"card"},_a={class:"card"},ha={key:2,class:"container mx-auto"},Ua={__name:"Team",props:{id:{required:!0,type:Number}},setup(x){F.extend(ae),F.extend(se);const c=x,f=p(!1),_=p(10),l=p(""),o=p(""),m=p({}),g=p({name:"",country_id:""}),C=p({});W(()=>{S(),u(),w()});function T(y){let d={user_id:y,team_id:c.id};axios.post("/admin/team-users",d).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})}function w(){axios.get("/countries?limit=300").then(y=>{m.value=y.data.data}).catch(y=>{console.log(y)})}function S(){axios.get("/admin/teams/"+c.id+"?cached=false").then(y=>{g.value=y.data.data,o.value=g.value.country_id,l.value=g.value.name}).catch(y=>{console.log(y)})}function u(y=1){axios.get("/admin/team-users?cached=false&page="+y+"&where[]=team_id,"+c.id+"&relations=user&limit="+_.value+"&orderBy=id,desc").then(d=>{C.value=d.data.data}).catch(d=>{console.log(d)})}function r(y){f.value=!0;let d={send_invite_email:!0};axios.put("/admin/team-users/"+y.id,d).then(h=>{u(),f.value=!1}).catch(h=>{console.log(h),f.value=!1})}function n(y){j.fire({icon:"warning",title:"Are you sure?",text:"This will remove this user from this team. You can always add them back.",showConfirmButton:!0,showCancelButton:!0}).then(d=>{d.isConfirmed&&axios.delete("/admin/team-users/"+y.id).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})})}function t(y){u(y)}function v(){let y={name:l.value,country_id:o.value};g.value.country_id!==o.value?j.fire({title:"Wait...",icon:"warning",text:"It looks like you're changing this teams' country. Please be aware this will NOT update the selected currency for any of their existing voucher sets.",confirmButtonText:"I get it. Proceed.",cancelButtonText:"Go back",showCancelButton:!0,showConfirmButton:!0,allowOutsideClick:!1}).then(d=>{d.isDismissed||d.isConfirmed&&axios.put("/admin/teams/"+c.id,y).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(h=>{console.log(h)})}):axios.put("/admin/teams/"+c.id,y).then(d=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(d=>{console.log(d)})}return(y,d)=>(a(),s(A,null,[i(V(Y),{title:"Team"}),i(J,null,{header:k(()=>[i(Q)]),default:k(()=>[e("div",Wt,[e("div",Et,[e("h2",null,[e("span",Kt,"#"+N(c.id),1),$(" "+N(g.value.name),1)])])]),e("div",Gt,[d[6]||(d[6]=e("div",{class:"card-header"}," Team details ",-1)),e("div",Lt,[e("label",Rt,[d[3]||(d[3]=$(" Team Name: ")),i(M,{id:"name",type:"text",class:"mt-1 block w-full font-normal",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},null,8,["modelValue"])])]),e("div",Yt,[e("label",Zt,[d[4]||(d[4]=$(" Country: ")),Z(e("select",{id:"country",class:"mt-1 block w-full font-normal","onUpdate:modelValue":d[1]||(d[1]=h=>o.value=h)},[(a(!0),s(A,null,I(m.value.data,h=>(a(),s("option",{value:h.id,key:h.id},N(h.name),9,Ht))),128))],512),[[H,o.value]])])]),l.value!==g.value.name||o.value!==g.value.country_id?(a(),s("div",Jt,[i(B,{onClick:d[2]||(d[2]=h=>v())},{default:k(()=>d[5]||(d[5]=[$("Update")])),_:1})])):b("",!0)]),e("div",Qt,[i(te,{loading:f.value},null,8,["loading"]),d[9]||(d[9]=e("div",{class:"card-header"}," Team members ",-1)),C.value.data&&C.value.data.length>0?(a(),s("div",Xt,[(a(!0),s(A,null,I(C.value.data,h=>(a(),s("div",ea,[i(V(D),{href:y.route("admin.user",h.user_id),class:"border-b p-2 mr-2 flex-grow flex justify-between items-center hover:no-underline"},{default:k(()=>{var z;return[e("div",null,N((z=h.user)==null?void 0:z.name),1),e("div",ta,[h.invitation_sent_at?(a(),s("div",aa," Invited: "+N(V(F).utc(h.invitation_sent_at).fromNow()),1)):b("",!0),d[7]||(d[7]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1))])]}),_:2},1032,["href"]),e("div",sa,[i(ee,{onClick:z=>r(h),class:"mr-2"},{default:k(()=>[e("div",null,[h.invitation_sent_at?(a(),s("div",na,"Resend Invite")):f.value?(a(),s("div",ia,"Sending..")):(a(),s("div",oa,"Send Invite"))])]),_:2},1032,["onClick"]),i(ne,{onClick:O(z=>n(h),["prevent"])},{default:k(()=>d[8]||(d[8]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-3 font-bold"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])),_:2},1032,["onClick"])])]))),256))])):b("",!0),e("div",la,[e("div",da,[i(U,{onSetDataPage:t,"pagination-data":C.value},null,8,["pagination-data"])])])]),e("div",ra,[d[10]||(d[10]=e("div",{class:"card-header"}," Add user to team ",-1)),i(Vt,{teamId:c.id,onCreateNewTeamUser:T},null,8,["teamId"])]),g.value.id?(a(),s("div",ua,[i(Ee,{team:g.value},null,8,["team"])])):b("",!0),g.value.id?(a(),s("div",ma,[i(Ct,{teamId:c.id,teamName:g.value.name},null,8,["teamId","teamName"])])):b("",!0),e("div",ca,[d[11]||(d[11]=e("div",{class:"card-header"}," Voucher sets created by team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"created_by_team_id"},null,8,["team-id"])]),e("div",va,[d[12]||(d[12]=e("div",{class:"card-header"}," Voucher sets allocated to team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"allocated_to_service_team_id"},null,8,["team-id"])]),e("div",fa,[d[13]||(d[13]=e("div",{class:"card-header"}," Vouchers created by team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"created_by_team_id"},null,8,["team-id"])]),e("div",_a,[d[14]||(d[14]=e("div",{class:"card-header"}," Vouchers allocated to team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"allocated_to_service_team_id"},null,8,["team-id"])]),g.value.id?(a(),s("div",ha,[i(Ft,{team:g.value},null,8,["team"])])):b("",!0),d[15]||(d[15]=e("div",{class:"p-32"},null,-1))]),_:1})],64))}};export{Ua as default}; diff --git a/public/build/assets/Team-r_mqDnKu.js b/public/build/assets/Team-r_mqDnKu.js deleted file mode 100644 index 524e34db..00000000 --- a/public/build/assets/Team-r_mqDnKu.js +++ /dev/null @@ -1 +0,0 @@ -import{b as a,c as s,d as e,t as N,r as p,a as i,j as G,k as O,F as A,g as I,f as b,o as W,w as k,e as $,u as V,i as D,n as R,Z as Y,l as Z,v as H}from"./app-NB_nCFcw.js";import{S as j,_ as J}from"./AuthenticatedLayout-ibOQYoAA.js";import{_ as Q}from"./AdminTopNavigation-n1SbFb1e.js";import{P as U}from"./PaginatorComponent-C4rhva1F.js";import{P as B}from"./PrimaryButton-CiDAOitU.js";import{_ as M}from"./TextInput-Fah8vm6N.js";import{_ as q}from"./InputLabel-omYb-gwx.js";import{_ as L}from"./AdminTeamCreateComponent-8M73tbc7.js";import{_ as X}from"./AdminUserDetailsComponent--1S10Mhu.js";import{_ as ee}from"./SecondaryButton-DvjXhVuA.js";import{_ as te}from"./AjaxLoadingIndicator-C8UwDW2j.js";import{d as F}from"./dayjs.min-DM5MTW9C.js";import{r as ae}from"./relativeTime-CdoPJJJp.js";import{u as se}from"./utc-CsIElMW4.js";import{D as ne}from"./DangerButton-BzsUR-6s.js";import{_ as E}from"./VoucherSetsComponent-ChybDy2V.js";import{_ as K}from"./VouchersComponent-C8urwp1U.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const ie={class:"flex justify-start items-center"},oe={class:"text-xs mr-2"},le={class:""},P={__name:"AdminTeamDetailsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x;return(f,_)=>(a(),s("div",ie,[e("div",oe,"#"+N(c.team.id),1),e("div",le,N(c.team.name),1)]))}},de={key:0},re={key:1},ue={key:0,class:"mt-4"},me={class:"border-b py-1"},ce=["onClick"],ve={key:0,class:"text-red-500 text-xs italic pl-2"},fe={key:1},_e={__name:"AdminTeamMerchantTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsMerchantFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_merchant_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",de,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",re,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",ue,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",me,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",ve,"***Already added")):b("",!0)],8,ce)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",fe,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},he={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},pe={class:"card"},ye={class:"card-header flex justify-between items-center"},xe={class:"text-xs italic"},ge={class:""},we={class:"flex justify-end"},$e={key:0},ke={key:1},be={key:0},Ce={key:1},Te={class:"py-2"},Se={class:"font-bold"},Ne={key:2},je={key:0,class:"mb-8"},Ae={class:"border-b py-1 flex justify-between items-end"},Ie=["onClick"],Ve={class:"flex justify-end items-center mt-4"},Be={class:"w-full lg:w-1/3"},De={class:"card"},Me={class:"card-header"},Ue={key:0},Pe={class:"text-xs italic"},qe={key:0,class:"mb-8"},ze={class:"border-b py-1 flex justify-between items-end"},Oe=["onClick"],Fe={class:"flex justify-end items-center mt-4"},We={class:"w-full lg:w-1/3"},Ee={__name:"AdminTeamMerchantTeamsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){console.log(c.team),axios.get("/admin/team-merchant-teams?cached=false&where[]=team_id,"+c.team.id+"&page="+n+"&relations=merchantTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-merchant-teams?cached=false&where[]=merchant_team_id,"+c.team.id+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete merchant team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-merchant-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){if(c.team.country_id===m.value.country_id){let n={team_id:c.team.id,merchant_team_id:m.value.id};axios.post("/admin/team-merchant-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}else j.fire({title:"Country / Currency mismatch",html:"Selected merchant ("+m.value.name+") is not sharing same country as the team ("+c.team.name+"). We cannot add merchant which has different country/currency. Please update.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(n=>{m.value={},_.value=!1})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",he,[e("div",pe,[e("div",ye,[e("div",null,[t[3]||(t[3]=e("div",null," Merchant teams ",-1)),e("div",xe," These teams may redeem vouchers for "+N(x.team.name),1)]),e("div",ge,[e("div",we,[!f.value&&!_.value?(a(),s("div",$e,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Merchant Team ")])),_:1})])):(a(),s("div",ke,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])]),f.value?(a(),s("div",be,[t[6]||(t[6]=e("div",{class:"py-2"},"Select merchant team...",-1)),i(_e,{teamId:x.team.id,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",Ce,[e("div",Te,[t[7]||(t[7]=$("Add ")),e("span",Se,N(m.value.name),1),t[8]||(t[8]=$(" as merchant team? "))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",Ne,[l.value.data&&l.value.data.length?(a(),s("div",je,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",Ae,[i(V(D),{href:n.route("admin.team",v.merchant_team_id)},{default:k(()=>[i(P,{team:v.merchant_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Ie)]))),256)),e("div",Ve,[e("div",Be,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",De,[e("div",Me,[x.team.name?(a(),s("div",Ue," Teams "+N(x.team.name)+" is merchant for ",1)):b("",!0),e("div",Pe,N(x.team.name)+" may redeem vouchers for these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",qe,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",ze,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Oe)]))),256)),e("div",Fe,[e("div",We,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Ke={key:0},Ge={key:1},Le={key:0,class:"mt-4"},Re={class:"border-b py-1"},Ye=["onClick"],Ze={key:0,class:"text-red-500 text-xs italic pl-2"},He={key:1},Je={__name:"AdminTeamServiceTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsServiceFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_service_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",Ke,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",Ge,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",Le,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",Re,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",Ze,"***Already added")):b("",!0)],8,Ye)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",He,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},Qe={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},Xe={class:"card"},et={class:"card-header flex justify-between items-center"},tt={class:"text-xs italic"},at={class:""},st={class:"flex justify-end"},nt={class:"flex justify-end"},it={key:0},ot={key:1},lt={key:0},dt={key:1},rt={class:"py-2"},ut={class:"font-bold"},mt={key:2},ct={key:0,class:"mb-8"},vt={class:"border-b py-1 flex justify-between items-end"},ft=["onClick"],_t={class:"flex justify-end items-center mt-4"},ht={class:"w-full lg:w-1/3"},pt={class:"card"},yt={class:"card-header"},xt={class:"text-xs italic"},gt={key:0,class:"mb-8"},wt={class:"border-b py-1 flex justify-between items-end"},$t=["onClick"],kt={class:"flex justify-end items-center mt-4"},bt={class:"w-full lg:w-1/3"},Ct={__name:"AdminTeamServiceTeamsComponent",props:{teamId:{required:!0,type:Number},teamName:{required:!0}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=team_id,"+c.teamId+"&page="+n+"&relations=serviceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=service_team_id,"+c.teamId+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete service team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-service-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){let n={team_id:c.teamId,service_team_id:m.value.id};axios.post("/admin/team-service-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",Qe,[e("div",Xe,[e("div",et,[e("div",null,[t[3]||(t[3]=e("div",null," Service teams ",-1)),e("div",tt," These teams may distribute vouchers for redemption at "+N(x.teamName),1)]),e("div",at,[e("div",st,[e("div",nt,[!f.value&&!_.value?(a(),s("div",it,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Service Team ")])),_:1})])):(a(),s("div",ot,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])])]),f.value?(a(),s("div",lt,[t[6]||(t[6]=e("div",{class:"py-2"},"Select service team...",-1)),i(Je,{teamId:x.teamId,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",dt,[e("div",rt,[t[7]||(t[7]=$("Adding ")),e("span",ut,N(m.value.name),1),t[8]||(t[8]=$(" as service team?"))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",mt,[l.value.data&&l.value.data.length?(a(),s("div",ct,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",vt,[i(V(D),{href:n.route("admin.team",v.service_team_id)},{default:k(()=>[i(P,{team:v.service_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,ft)]))),256)),e("div",_t,[e("div",ht,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",pt,[e("div",yt,[e("div",null," Teams "+N(x.teamName)+" is service for ",1),e("div",xt,N(x.teamName)+" may distribute vouchers to these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",gt,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",wt,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,$t)]))),256)),e("div",kt,[e("div",bt,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Tt={key:0},St={class:"flex items-center justify-end mt-4"},Nt={key:1},jt={key:0,class:"mt-4"},At=["onClick"],It={key:1},Vt={__name:"AdminUserSelectComponent",props:{teamId:{required:!0,type:Number}},emits:["createNewTeamUser"],setup(x,{emit:c}){const f=x,_=p(!1),l=p({name:"",email:"",current_team_id:null}),o=p(""),m=p({}),g=c;function C(){l.value.current_team_id=f.teamId,axios.post("admin/users",l.value).then(u=>{let r=u.data.data.id;S(r),l.value={name:"",email:"",current_team_id:null},_.value=!1}).catch(u=>{console.log(u)})}function T(){axios.get("/admin/users?where[]=name,like,*"+o.value+"*&limit=100").then(u=>{m.value=u.data.data}).catch(u=>{console.log(u)})}function w(){_.value=!0,m.value={},l.value.name=o.value}function S(u){g("createNewTeamUser",u),o.value="",m.value={}}return(u,r)=>_.value?(a(),s("div",Tt,[e("div",null,[i(q,{for:"name",value:"Name"}),i(M,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value.name,"onUpdate:modelValue":r[0]||(r[0]=n=>l.value.name=n),required:""},null,8,["modelValue"])]),e("div",null,[i(q,{for:"email",value:"Email"}),i(M,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:l.value.email,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value.email=n),required:""},null,8,["modelValue"])]),e("div",St,[i(B,{onClick:r[2]||(r[2]=O(n=>C(),["prevent"])),class:R(["ms-4",{"opacity-25":!l.value.name||!l.value.email}]),disabled:!l.value.name||!l.value.email},{default:k(()=>r[7]||(r[7]=[$(" Submit ")])),_:1},8,["class","disabled"])])])):(a(),s("div",Nt,[e("div",null,[i(q,{for:"name",value:"Find A User"}),i(M,{onKeyup:r[3]||(r[3]=n=>T()),modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=n=>o.value=n),class:"mt-1 block w-full",placeholder:"Search by name..",type:"text"},null,8,["modelValue"])]),o.value.length>0&&m.value.total>0?(a(),s("div",jt,[(a(!0),s(A,null,I(m.value.data,n=>(a(),s("a",{href:"#",onClick:t=>S(n.id),class:"border-b py-1",tabindex:"0"},[i(X,{user:n},null,8,["user"])],8,At))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[5]||(r[5]=n=>w())}," Create a new user? ")])):b("",!0),o.value.length>0&&m.value.total===0?(a(),s("div",It,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[6]||(r[6]=n=>w())}," We could not find users. Do you want to create a new user? ")])):b("",!0)]))}},Bt={class:"card"},Dt={class:"card-header flex justify-between"},Mt={class:"grid gap-4 grid-cols-6 mt-8"},Ut={key:0},Pt={key:1},qt=["src"],zt={class:"flex justify-end items-center mt-4"},Ot={class:"w-full lg:w-1/3"},Ft={__name:"AdminTeamVoucherTemplatesList",props:{team:{type:Object,required:!0}},setup(x){const c=x,f=p({});function _(l=1){var o;axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+((o=c.team)==null?void 0:o.id)+"&page="+l).then(m=>{f.value=m.data.data}).catch(m=>{j.fire({icon:"error",title:"Oops!",text:m.response.data.message})})}return _(),(l,o)=>(a(),s("div",Bt,[e("div",Dt,[o[1]||(o[1]=e("div",null," Voucher Templates ",-1)),e("div",null,[i(V(D),{href:"/admin/team-voucher-templates/new?teamId="+x.team.id},{default:k(()=>[i(B,{class:""},{default:k(()=>o[0]||(o[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})],-1),$(" New Template ")])),_:1})]),_:1},8,["href"])])]),e("div",Mt,[(a(!0),s(A,null,I(f.value.data,m=>(a(),s("div",null,[m.archived_at?(a(),s("div",Ut,o[2]||(o[2]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-red-300 text-red-300 font-bold"}," Archived ",-1)]))):(a(),s("div",Pt,o[3]||(o[3]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-green-300 text-green-300 font-bold"}," Active ",-1)]))),i(V(D),{href:"/admin/team-voucher-template/"+m.id},{default:k(()=>[e("img",{src:m.example_template_image_url,alt:"",class:"border rounded"},null,8,qt)]),_:2},1032,["href"])]))),256))]),e("div",zt,[e("div",Ot,[i(U,{onSetDataPage:_,"pagination-data":f.value},null,8,["pagination-data"])])])]))}},Wt={class:"card"},Et={class:""},Kt={class:"text-gray-300 pr-1"},Gt={class:"card"},Lt={class:"flex justify-start items-center mt-4"},Rt={for:"name",class:"w-full font-bold"},Yt={class:"flex justify-start items-center mt-4"},Zt={for:"country",class:"w-full font-bold"},Ht=["value"],Jt={key:0,class:"mt-8 flex justify-end"},Qt={class:"card"},Xt={key:0},ea={class:"flex justify-between items-center hover:opacity-75"},ta={class:"flex justify-end items-center"},aa={key:0,class:"pr-2 text-xs"},sa={class:"flex"},na={key:0},ia={key:1,class:"px-2"},oa={key:2,class:"px-2"},la={class:"flex justify-end items-center mt-4"},da={class:"w-full lg:w-1/3"},ra={class:"card"},ua={key:0,class:"container mx-auto"},ma={key:1,class:"container mx-auto"},ca={class:"card"},va={class:"card"},fa={class:"card"},_a={class:"card"},ha={key:2,class:"container mx-auto"},Ua={__name:"Team",props:{id:{required:!0,type:Number}},setup(x){F.extend(ae),F.extend(se);const c=x,f=p(!1),_=p(10),l=p(""),o=p(""),m=p({}),g=p({name:"",country_id:""}),C=p({});W(()=>{S(),u(),w()});function T(y){let d={user_id:y,team_id:c.id};axios.post("/admin/team-users",d).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})}function w(){axios.get("/countries?limit=300").then(y=>{m.value=y.data.data}).catch(y=>{console.log(y)})}function S(){axios.get("/admin/teams/"+c.id+"?cached=false").then(y=>{g.value=y.data.data,o.value=g.value.country_id,l.value=g.value.name}).catch(y=>{console.log(y)})}function u(y=1){axios.get("/admin/team-users?cached=false&page="+y+"&where[]=team_id,"+c.id+"&relations=user&limit="+_.value+"&orderBy=id,desc").then(d=>{C.value=d.data.data}).catch(d=>{console.log(d)})}function r(y){f.value=!0;let d={send_invite_email:!0};axios.put("/admin/team-users/"+y.id,d).then(h=>{u(),f.value=!1}).catch(h=>{console.log(h),f.value=!1})}function n(y){j.fire({icon:"warning",title:"Are you sure?",text:"This will remove this user from this team. You can always add them back.",showConfirmButton:!0,showCancelButton:!0}).then(d=>{d.isConfirmed&&axios.delete("/admin/team-users/"+y.id).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})})}function t(y){u(y)}function v(){let y={name:l.value,country_id:o.value};g.value.country_id!==o.value?j.fire({title:"Wait...",icon:"warning",text:"It looks like you're changing this teams' country. Please be aware this will NOT update the selected currency for any of their existing voucher sets.",confirmButtonText:"I get it. Proceed.",cancelButtonText:"Go back",showCancelButton:!0,showConfirmButton:!0,allowOutsideClick:!1}).then(d=>{d.isDismissed||d.isConfirmed&&axios.put("/admin/teams/"+c.id,y).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(h=>{console.log(h)})}):axios.put("/admin/teams/"+c.id,y).then(d=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(d=>{console.log(d)})}return(y,d)=>(a(),s(A,null,[i(V(Y),{title:"Team"}),i(J,null,{header:k(()=>[i(Q)]),default:k(()=>[e("div",Wt,[e("div",Et,[e("h2",null,[e("span",Kt,"#"+N(c.id),1),$(" "+N(g.value.name),1)])])]),e("div",Gt,[d[6]||(d[6]=e("div",{class:"card-header"}," Team details ",-1)),e("div",Lt,[e("label",Rt,[d[3]||(d[3]=$(" Team Name: ")),i(M,{id:"name",type:"text",class:"mt-1 block w-full font-normal",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},null,8,["modelValue"])])]),e("div",Yt,[e("label",Zt,[d[4]||(d[4]=$(" Country: ")),Z(e("select",{id:"country",class:"mt-1 block w-full font-normal","onUpdate:modelValue":d[1]||(d[1]=h=>o.value=h)},[(a(!0),s(A,null,I(m.value.data,h=>(a(),s("option",{value:h.id,key:h.id},N(h.name),9,Ht))),128))],512),[[H,o.value]])])]),l.value!==g.value.name||o.value!==g.value.country_id?(a(),s("div",Jt,[i(B,{onClick:d[2]||(d[2]=h=>v())},{default:k(()=>d[5]||(d[5]=[$("Update")])),_:1})])):b("",!0)]),e("div",Qt,[i(te,{loading:f.value},null,8,["loading"]),d[9]||(d[9]=e("div",{class:"card-header"}," Team members ",-1)),C.value.data&&C.value.data.length>0?(a(),s("div",Xt,[(a(!0),s(A,null,I(C.value.data,h=>(a(),s("div",ea,[i(V(D),{href:y.route("admin.user",h.user_id),class:"border-b p-2 mr-2 flex-grow flex justify-between items-center hover:no-underline"},{default:k(()=>{var z;return[e("div",null,N((z=h.user)==null?void 0:z.name),1),e("div",ta,[h.invitation_sent_at?(a(),s("div",aa," Invited: "+N(V(F).utc(h.invitation_sent_at).fromNow()),1)):b("",!0),d[7]||(d[7]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1))])]}),_:2},1032,["href"]),e("div",sa,[i(ee,{onClick:z=>r(h),class:"mr-2"},{default:k(()=>[e("div",null,[h.invitation_sent_at?(a(),s("div",na,"Resend Invite")):f.value?(a(),s("div",ia,"Sending..")):(a(),s("div",oa,"Send Invite"))])]),_:2},1032,["onClick"]),i(ne,{onClick:O(z=>n(h),["prevent"])},{default:k(()=>d[8]||(d[8]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-3 font-bold"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])),_:2},1032,["onClick"])])]))),256))])):b("",!0),e("div",la,[e("div",da,[i(U,{onSetDataPage:t,"pagination-data":C.value},null,8,["pagination-data"])])])]),e("div",ra,[d[10]||(d[10]=e("div",{class:"card-header"}," Add user to team ",-1)),i(Vt,{teamId:c.id,onCreateNewTeamUser:T},null,8,["teamId"])]),g.value.id?(a(),s("div",ua,[i(Ee,{team:g.value},null,8,["team"])])):b("",!0),g.value.id?(a(),s("div",ma,[i(Ct,{teamId:c.id,teamName:g.value.name},null,8,["teamId","teamName"])])):b("",!0),e("div",ca,[d[11]||(d[11]=e("div",{class:"card-header"}," Voucher sets created by team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"created_by_team_id"},null,8,["team-id"])]),e("div",va,[d[12]||(d[12]=e("div",{class:"card-header"}," Voucher sets allocated to team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"allocated_to_service_team_id"},null,8,["team-id"])]),e("div",fa,[d[13]||(d[13]=e("div",{class:"card-header"}," Vouchers created by team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"created_by_team_id"},null,8,["team-id"])]),e("div",_a,[d[14]||(d[14]=e("div",{class:"card-header"}," Vouchers allocated to team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"allocated_to_service_team_id"},null,8,["team-id"])]),g.value.id?(a(),s("div",ha,[i(Ft,{team:g.value},null,8,["team"])])):b("",!0),d[15]||(d[15]=e("div",{class:"p-32"},null,-1))]),_:1})],64))}};export{Ua as default}; diff --git a/public/build/assets/TeamNew-DgOStchy.js b/public/build/assets/TeamNew-DgOStchy.js deleted file mode 100644 index 97f15dec..00000000 --- a/public/build/assets/TeamNew-DgOStchy.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as m,a as e,u as s,w as t,F as i,b as n,Z as _,d as c}from"./app-NB_nCFcw.js";import{_ as d}from"./AdminTopNavigation-n1SbFb1e.js";import{_ as f}from"./AdminTeamCreateComponent-8M73tbc7.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./TextInput-Fah8vm6N.js";const p={class:"card"},k={__name:"TeamNew",setup(l){function r(a){window.location.href=route("admin.team",a.id)}return(a,u)=>(n(),m(i,null,[e(s(_),{title:"Create Team"}),e(o,null,{header:t(()=>[e(d)]),default:t(()=>[c("div",p,[e(f,{onTeamCreated:r})])]),_:1})],64))}};export{k as default}; diff --git a/public/build/assets/TeamNew-FoGsvxHV.js b/public/build/assets/TeamNew-FoGsvxHV.js new file mode 100644 index 00000000..703749a4 --- /dev/null +++ b/public/build/assets/TeamNew-FoGsvxHV.js @@ -0,0 +1 @@ +import{_ as o}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as m,a as e,u as s,w as t,F as i,b as n,Z as _,d as c}from"./app-DAMU3Vsb.js";import{_ as d}from"./AdminTopNavigation-DhGdPzlz.js";import{_ as f}from"./AdminTeamCreateComponent-9Mr34fB9.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./TextInput-CvMe3C5R.js";const p={class:"card"},k={__name:"TeamNew",setup(l){function r(a){window.location.href=route("admin.team",a.id)}return(a,u)=>(n(),m(i,null,[e(s(_),{title:"Create Team"}),e(o,null,{header:t(()=>[e(d)]),default:t(()=>[c("div",p,[e(f,{onTeamCreated:r})])]),_:1})],64))}};export{k as default}; diff --git a/public/build/assets/Teams-BCjNg0Vs.js b/public/build/assets/Teams-DZ43y8GK.js similarity index 80% rename from public/build/assets/Teams-BCjNg0Vs.js rename to public/build/assets/Teams-DZ43y8GK.js index d09556ad..350c77d3 100644 --- a/public/build/assets/Teams-BCjNg0Vs.js +++ b/public/build/assets/Teams-DZ43y8GK.js @@ -1 +1 @@ -import{_ as g}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as m,o as w,c as l,a as s,u as d,w as n,F as u,b as i,Z as x,d as e,i as f,e as _,g as y,f as k,h as B,t as p}from"./app-NB_nCFcw.js";import{_ as P}from"./AdminTopNavigation-n1SbFb1e.js";import{P as b}from"./PrimaryButton-CiDAOitU.js";import{P as C}from"./PaginatorComponent-C4rhva1F.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-DvjXhVuA.js";const N={class:"card"},T={class:"card"},V={key:0},j={class:"border-b flex justify-between items-center py-2 sm:p-2"},D={class:"font-bold"},F={class:"text-xs opacity-25"},S={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},I={__name:"Teams",setup(z){const h=m(20),o=m({});w(()=>{c()});function c(a=1){axios.get("/admin/teams?cached=false&page="+a+"&limit="+h.value+"&orderBy=id,desc").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function v(a){c(a)}return(a,t)=>(i(),l(u,null,[s(d(x),{title:"Teams"}),s(g,null,{header:n(()=>[s(P)]),default:n(()=>[e("div",N,[s(b,null,{default:n(()=>[s(d(f),{href:a.route("admin.teams.new")},{default:n(()=>t[0]||(t[0]=[_(" Create New Team ")])),_:1},8,["href"])]),_:1})]),e("div",T,[o.value.data&&o.value.data.length?(i(),l("div",V,[(i(!0),l(u,null,y(o.value.data,r=>(i(),B(d(f),{href:a.route("admin.team",r.id),class:"hover:no-underline hover:opacity-75"},{default:n(()=>[e("div",j,[e("div",null,[e("div",D,[e("span",F," #"+p(r.id),1),_(" "+p(r.name),1)])]),t[1]||(t[1]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):k("",!0),e("div",S,[e("div",$,[s(C,{onSetDataPage:v,"pagination-data":o.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{I as default}; +import{_ as g}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as m,o as w,c as l,a as s,u as d,w as n,F as u,b as i,Z as x,d as e,i as f,e as _,g as y,f as k,h as B,t as p}from"./app-DAMU3Vsb.js";import{_ as P}from"./AdminTopNavigation-DhGdPzlz.js";import{P as b}from"./PrimaryButton-CIB81Yr_.js";import{P as C}from"./PaginatorComponent-CoSTMxRA.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-CDQDA5dD.js";const N={class:"card"},T={class:"card"},V={key:0},j={class:"border-b flex justify-between items-center py-2 sm:p-2"},D={class:"font-bold"},F={class:"text-xs opacity-25"},S={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},I={__name:"Teams",setup(z){const h=m(20),o=m({});w(()=>{c()});function c(a=1){axios.get("/admin/teams?cached=false&page="+a+"&limit="+h.value+"&orderBy=id,desc").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function v(a){c(a)}return(a,t)=>(i(),l(u,null,[s(d(x),{title:"Teams"}),s(g,null,{header:n(()=>[s(P)]),default:n(()=>[e("div",N,[s(b,null,{default:n(()=>[s(d(f),{href:a.route("admin.teams.new")},{default:n(()=>t[0]||(t[0]=[_(" Create New Team ")])),_:1},8,["href"])]),_:1})]),e("div",T,[o.value.data&&o.value.data.length?(i(),l("div",V,[(i(!0),l(u,null,y(o.value.data,r=>(i(),B(d(f),{href:a.route("admin.team",r.id),class:"hover:no-underline hover:opacity-75"},{default:n(()=>[e("div",j,[e("div",null,[e("div",D,[e("span",F," #"+p(r.id),1),_(" "+p(r.name),1)])]),t[1]||(t[1]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):k("",!0),e("div",S,[e("div",$,[s(C,{onSetDataPage:v,"pagination-data":o.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{I as default}; diff --git a/public/build/assets/TextInput-Fah8vm6N.js b/public/build/assets/TextInput-CvMe3C5R.js similarity index 89% rename from public/build/assets/TextInput-Fah8vm6N.js rename to public/build/assets/TextInput-CvMe3C5R.js index ad50eff4..97b67be9 100644 --- a/public/build/assets/TextInput-Fah8vm6N.js +++ b/public/build/assets/TextInput-CvMe3C5R.js @@ -1 +1 @@ -import{L as a,r as l,o as n,l as d,s as i,b as c,c as m}from"./app-NB_nCFcw.js";const v={__name:"TextInput",props:{modelValue:{type:String,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(s,{expose:t}){const o=a(s,"modelValue"),e=l(null);return n(()=>{e.value.hasAttribute("autofocus")&&e.value.focus()}),t({focus:()=>e.value.focus()}),(p,u)=>d((c(),m("input",{class:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm","onUpdate:modelValue":u[0]||(u[0]=r=>o.value=r),ref_key:"input",ref:e},null,512)),[[i,o.value]])}};export{v as _}; +import{L as a,r as l,o as n,l as d,s as i,b as c,c as m}from"./app-DAMU3Vsb.js";const v={__name:"TextInput",props:{modelValue:{type:String,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(s,{expose:t}){const o=a(s,"modelValue"),e=l(null);return n(()=>{e.value.hasAttribute("autofocus")&&e.value.focus()}),t({focus:()=>e.value.focus()}),(p,u)=>d((c(),m("input",{class:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm","onUpdate:modelValue":u[0]||(u[0]=r=>o.value=r),ref_key:"input",ref:e},null,512)),[[i,o.value]])}};export{v as _}; diff --git a/public/build/assets/UpdatePasswordForm-CmkItG6E.js b/public/build/assets/UpdatePasswordForm-DPOMbBpC.js similarity index 90% rename from public/build/assets/UpdatePasswordForm-CmkItG6E.js rename to public/build/assets/UpdatePasswordForm-DPOMbBpC.js index 1afb0304..08809fb5 100644 --- a/public/build/assets/UpdatePasswordForm-CmkItG6E.js +++ b/public/build/assets/UpdatePasswordForm-DPOMbBpC.js @@ -1 +1 @@ -import{r as m,T as _,c as i,d as a,a as e,u as r,w as c,K as v,k as y,b as w,e as g,f as V}from"./app-NB_nCFcw.js";import{_ as l}from"./InputError-B8NEdD9b.js";import{_ as n}from"./InputLabel-omYb-gwx.js";import{P as x}from"./PrimaryButton-CiDAOitU.js";import{_ as d}from"./TextInput-Fah8vm6N.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"flex items-center gap-4"},k={key:0,class:"text-sm text-gray-600"},T={__name:"UpdatePasswordForm",setup(b){const u=m(null),p=m(null),s=_({current_password:"",password:"",password_confirmation:""}),f=()=>{s.put(route("password.update"),{preserveScroll:!0,onSuccess:()=>s.reset(),onError:()=>{s.errors.password&&(s.reset("password","password_confirmation"),u.value.focus()),s.errors.current_password&&(s.reset("current_password"),p.value.focus())}})};return(S,o)=>(w(),i("section",null,[o[4]||(o[4]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Update Password"),a("p",{class:"mt-1 text-sm text-gray-600"}," Ensure your account is using a long, random password to stay secure. ")],-1)),a("form",{onSubmit:y(f,["prevent"]),class:"mt-6 space-y-6"},[a("div",null,[e(n,{for:"current_password",value:"Current Password"}),e(d,{id:"current_password",ref_key:"currentPasswordInput",ref:p,modelValue:r(s).current_password,"onUpdate:modelValue":o[0]||(o[0]=t=>r(s).current_password=t),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.current_password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password",value:"New Password"}),e(d,{id:"password",ref_key:"passwordInput",ref:u,modelValue:r(s).password,"onUpdate:modelValue":o[1]||(o[1]=t=>r(s).password=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password_confirmation",value:"Confirm Password"}),e(d,{id:"password_confirmation",modelValue:r(s).password_confirmation,"onUpdate:modelValue":o[2]||(o[2]=t=>r(s).password_confirmation=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])]),a("div",P,[e(x,{disabled:r(s).processing},{default:c(()=>o[3]||(o[3]=[g("Save")])),_:1},8,["disabled"]),e(v,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:c(()=>[r(s).recentlySuccessful?(w(),i("p",k,"Saved.")):V("",!0)]),_:1})])],32)]))}};export{T as default}; +import{r as m,T as _,c as i,d as a,a as e,u as r,w as c,K as v,k as y,b as w,e as g,f as V}from"./app-DAMU3Vsb.js";import{_ as l}from"./InputError-KrPZcAOb.js";import{_ as n}from"./InputLabel-Wt1TYZ0A.js";import{P as x}from"./PrimaryButton-CIB81Yr_.js";import{_ as d}from"./TextInput-CvMe3C5R.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"flex items-center gap-4"},k={key:0,class:"text-sm text-gray-600"},T={__name:"UpdatePasswordForm",setup(b){const u=m(null),p=m(null),s=_({current_password:"",password:"",password_confirmation:""}),f=()=>{s.put(route("password.update"),{preserveScroll:!0,onSuccess:()=>s.reset(),onError:()=>{s.errors.password&&(s.reset("password","password_confirmation"),u.value.focus()),s.errors.current_password&&(s.reset("current_password"),p.value.focus())}})};return(S,o)=>(w(),i("section",null,[o[4]||(o[4]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Update Password"),a("p",{class:"mt-1 text-sm text-gray-600"}," Ensure your account is using a long, random password to stay secure. ")],-1)),a("form",{onSubmit:y(f,["prevent"]),class:"mt-6 space-y-6"},[a("div",null,[e(n,{for:"current_password",value:"Current Password"}),e(d,{id:"current_password",ref_key:"currentPasswordInput",ref:p,modelValue:r(s).current_password,"onUpdate:modelValue":o[0]||(o[0]=t=>r(s).current_password=t),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.current_password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password",value:"New Password"}),e(d,{id:"password",ref_key:"passwordInput",ref:u,modelValue:r(s).password,"onUpdate:modelValue":o[1]||(o[1]=t=>r(s).password=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password_confirmation",value:"Confirm Password"}),e(d,{id:"password_confirmation",modelValue:r(s).password_confirmation,"onUpdate:modelValue":o[2]||(o[2]=t=>r(s).password_confirmation=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])]),a("div",P,[e(x,{disabled:r(s).processing},{default:c(()=>o[3]||(o[3]=[g("Save")])),_:1},8,["disabled"]),e(v,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:c(()=>[r(s).recentlySuccessful?(w(),i("p",k,"Saved.")):V("",!0)]),_:1})])],32)]))}};export{T as default}; diff --git a/public/build/assets/UpdateProfileInformationForm-C5Npts88.js b/public/build/assets/UpdateProfileInformationForm-BDimdmua.js similarity index 90% rename from public/build/assets/UpdateProfileInformationForm-C5Npts88.js rename to public/build/assets/UpdateProfileInformationForm-BDimdmua.js index 7360f76c..bb1d702a 100644 --- a/public/build/assets/UpdateProfileInformationForm-C5Npts88.js +++ b/public/build/assets/UpdateProfileInformationForm-BDimdmua.js @@ -1 +1 @@ -import{Q as g,T as x,c as l,d as a,a as o,u as t,e as n,w as m,l as V,J as _,f as c,K as k,k as b,b as u,i as w}from"./app-NB_nCFcw.js";import{_ as p}from"./InputError-B8NEdD9b.js";import{_ as v}from"./InputLabel-omYb-gwx.js";import{P as h}from"./PrimaryButton-CiDAOitU.js";import{_ as y}from"./TextInput-Fah8vm6N.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const S={key:0},B={class:"text-sm mt-2 text-gray-800"},N={class:"mt-2 font-medium text-sm text-green-600"},E={class:"flex items-center gap-4"},P={key:0,class:"text-sm text-gray-600"},A={__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(d){const r=g().props.auth.user,s=x({name:r.name,email:r.email});return(f,e)=>(u(),l("section",null,[e[6]||(e[6]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Profile Information"),a("p",{class:"mt-1 text-sm text-gray-600"}," Update your account's profile information and email address. ")],-1)),a("form",{onSubmit:e[2]||(e[2]=b(i=>t(s).patch(f.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[a("div",null,[o(v,{for:"name",value:"Name"}),o(y,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:t(s).name,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.name},null,8,["message"])]),a("div",null,[o(v,{for:"email",value:"Email"}),o(y,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(s).email,"onUpdate:modelValue":e[1]||(e[1]=i=>t(s).email=i),required:"",autocomplete:"username"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.email},null,8,["message"])]),d.mustVerifyEmail&&t(r).email_verified_at===null?(u(),l("div",S,[a("p",B,[e[4]||(e[4]=n(" Your email address is unverified. ")),o(t(w),{href:f.route("verification.send"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:m(()=>e[3]||(e[3]=[n(" Click here to re-send the verification email. ")])),_:1},8,["href"])]),V(a("div",N," A new verification link has been sent to your email address. ",512),[[_,d.status==="verification-link-sent"]])])):c("",!0),a("div",E,[o(h,{disabled:t(s).processing},{default:m(()=>e[5]||(e[5]=[n("Save")])),_:1},8,["disabled"]),o(k,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:m(()=>[t(s).recentlySuccessful?(u(),l("p",P,"Saved.")):c("",!0)]),_:1})])],32)]))}};export{A as default}; +import{Q as g,T as x,c as l,d as a,a as o,u as t,e as n,w as m,l as V,J as _,f as c,K as k,k as b,b as u,i as w}from"./app-DAMU3Vsb.js";import{_ as p}from"./InputError-KrPZcAOb.js";import{_ as v}from"./InputLabel-Wt1TYZ0A.js";import{P as h}from"./PrimaryButton-CIB81Yr_.js";import{_ as y}from"./TextInput-CvMe3C5R.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const S={key:0},B={class:"text-sm mt-2 text-gray-800"},N={class:"mt-2 font-medium text-sm text-green-600"},E={class:"flex items-center gap-4"},P={key:0,class:"text-sm text-gray-600"},A={__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(d){const r=g().props.auth.user,s=x({name:r.name,email:r.email});return(f,e)=>(u(),l("section",null,[e[6]||(e[6]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Profile Information"),a("p",{class:"mt-1 text-sm text-gray-600"}," Update your account's profile information and email address. ")],-1)),a("form",{onSubmit:e[2]||(e[2]=b(i=>t(s).patch(f.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[a("div",null,[o(v,{for:"name",value:"Name"}),o(y,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:t(s).name,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.name},null,8,["message"])]),a("div",null,[o(v,{for:"email",value:"Email"}),o(y,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(s).email,"onUpdate:modelValue":e[1]||(e[1]=i=>t(s).email=i),required:"",autocomplete:"username"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.email},null,8,["message"])]),d.mustVerifyEmail&&t(r).email_verified_at===null?(u(),l("div",S,[a("p",B,[e[4]||(e[4]=n(" Your email address is unverified. ")),o(t(w),{href:f.route("verification.send"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:m(()=>e[3]||(e[3]=[n(" Click here to re-send the verification email. ")])),_:1},8,["href"])]),V(a("div",N," A new verification link has been sent to your email address. ",512),[[_,d.status==="verification-link-sent"]])])):c("",!0),a("div",E,[o(h,{disabled:t(s).processing},{default:m(()=>e[5]||(e[5]=[n("Save")])),_:1},8,["disabled"]),o(k,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:m(()=>[t(s).recentlySuccessful?(u(),l("p",P,"Saved.")):c("",!0)]),_:1})])],32)]))}};export{A as default}; diff --git a/public/build/assets/User-C8oSwsSl.js b/public/build/assets/User-BUwPGeNK.js similarity index 92% rename from public/build/assets/User-C8oSwsSl.js rename to public/build/assets/User-BUwPGeNK.js index f3955be4..0aa33b56 100644 --- a/public/build/assets/User-C8oSwsSl.js +++ b/public/build/assets/User-BUwPGeNK.js @@ -1 +1 @@ -import{r as b,Q as T,o as O,c as l,a as o,u as v,w as r,F as p,b as a,Z as Q,d as t,t as u,i as y,e as f,f as _,g as h,l as S,m as U,k as z,n as $,h as E}from"./app-NB_nCFcw.js";import{_ as W,S as x}from"./AuthenticatedLayout-ibOQYoAA.js";import{_ as Y}from"./AdminTopNavigation-n1SbFb1e.js";import{P as Z}from"./PaginatorComponent-C4rhva1F.js";import{_ as G}from"./AdminUserDetailsComponent--1S10Mhu.js";import{P as A}from"./PrimaryButton-CiDAOitU.js";import{_ as H}from"./TextInput-Fah8vm6N.js";import{_ as J}from"./SecondaryButton-DvjXhVuA.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const K={class:"card"},R={class:"flex justify-between items-center"},X={key:0},ee={class:"card"},te={class:"card"},se={key:0},ie={key:0},ae={key:0,class:"text-xs text-red-500"},le={class:""},ne={class:"flex justify-end items-center mt-4"},oe={class:"w-full lg:w-1/3"},de={class:"card"},re={for:"admin",class:"cursor-pointer flex justify-start items-center"},ue={class:"card"},me={key:0},ce={class:"border-b py-2"},ve={class:"list-item ml-8"},pe={key:0},fe={class:"ml-8 text-xs"},_e={key:1},he={class:"card"},ke={key:0},be={class:"flex justify-start items-center space-x-4 pb-4"},ge={class:"grid grid-cols-1 md:grid-cols-2 md:gap-2"},ye={class:"border rounded-xl p-4"},xe={class:"text-xs"},Ae={class:"mt-8"},Pe=["for"],we=["id","value"],Ce={class:"pb-4"},Te={class:"flex items-center justify-end mt-4"},Me={__name:"User",props:{id:{required:!0,type:Number}},setup(B){const k=B,V=b(5),n=b({name:"",token_abilities:[]}),P=T().props.personalAccessTokenAbilities,j=T().props.platformAppTokenAbilities,m=b({}),d=b({});O(()=>{g(),w()});function N(){n.value.user_id=d.value.id,axios.post("/admin/user-personal-access-tokens",n.value).then(i=>{let e=i.data.data.token,s=i.data.data.secret;x.fire({title:"Personal access token issued!",html:'
Please note that the token will be displayed only once. Make sure to save it securely.
Token: '+e+'
Secret: '+s+'
You will need the secret in order to sign your API requests.
',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(c=>{n.value={name:"",token_abilities:[]},g()})}).catch(i=>{x.fire({icon:"error",title:"Oops..",text:i.response.data.meta.message})})}function g(){axios.get("/admin/users/"+k.id+"?cached=false&relations=currentTeam").then(i=>{d.value=i.data.data}).catch(i=>{console.log(i)})}function w(i=1){axios.get("/admin/team-users?cached=false&page="+i+"&where[]=user_id,"+k.id+"&relations=team&limit="+V.value+"&orderBy=id,desc").then(e=>{m.value=e.data.data}).catch(e=>{})}function I(i){w(i)}function C(i){return i.replaceAll("-"," ")}function q(){n.value.token_abilities=Object.keys(j),x.fire({icon:"info",title:"Platform Apps",html:'
We have selected the minimum required abilities for an API token for a "Platform" type app.
Be careful with these abilities, as they can perform additive and destructive actions, like creating teams, users and more API tokens.
'})}function D(){n.value.token_abilities=[]}function M(){let i={is_admin:d.value.is_admin};axios.put("/admin/users/"+k.id,i).then(e=>{g()}).catch(e=>{console.log(e)})}return(i,e)=>(a(),l(p,null,[o(v(Q),{title:"Users"}),o(W,null,{header:r(()=>[o(Y)]),default:r(()=>[t("div",K,[t("div",R,[t("h2",null,u(d.value.name),1),t("div",null,[i.$page.props.isImpersonating===null?(a(),l("div",X,[o(A,null,{default:r(()=>[o(v(y),{href:i.route("admin.impersonate",k.id)},{default:r(()=>e[6]||(e[6]=[f("Impersonate")])),_:1},8,["href"])]),_:1})])):_("",!0)])])]),t("div",ee,[e[7]||(e[7]=t("div",{class:"card-header"}," User details ",-1)),o(G,{user:d.value},null,8,["user"])]),t("div",te,[e[8]||(e[8]=t("div",{class:"card-header"}," User teams ",-1)),m.value.data&&m.value.data.length>0?(a(),l("div",se,[(a(!0),l(p,null,h(m.value.data,s=>(a(),E(v(y),{href:i.route("admin.team",s.team_id),class:"hover:no-underline hover:opacity-75"},{default:r(()=>[t("div",{class:$({"border-b p-2":m.value.data.length>1})},[s.team?(a(),l("div",ie,[s.team_id===d.value.current_team_id?(a(),l("div",ae,"*Current team ")):_("",!0),t("div",le,u(s.team.name),1)])):_("",!0)],2)]),_:2},1032,["href"]))),256))])):_("",!0),t("div",ne,[t("div",oe,[o(Z,{onSetDataPage:I,"pagination-data":m.value},null,8,["pagination-data"])])])]),t("div",de,[e[10]||(e[10]=t("div",{class:"card-header"}," Admin status ",-1)),t("label",re,[S(t("input",{onChange:e[0]||(e[0]=s=>M()),type:"checkbox",id:"admin",class:"mr-4","true-value":1,"false-value":0,"onUpdate:modelValue":e[1]||(e[1]=s=>d.value.is_admin=s)},null,544),[[U,d.value.is_admin]]),e[9]||(e[9]=f(" User is System Admin "))])]),t("div",ue,[e[11]||(e[11]=t("div",{class:"card-header"}," User Personal Access Tokens (PATs) ",-1)),d.value.tokens&&d.value.tokens.length?(a(),l("div",me,[(a(!0),l(p,null,h(d.value.tokens,s=>(a(),l("div",ce,[o(v(y),{href:i.route("admin.api-access-token",{id:s.id})},{default:r(()=>[t("div",ve,u(s.name),1),s.abilities&&s.abilities.length?(a(),l("div",pe,[(a(!0),l(p,null,h(s.abilities,c=>(a(),l("div",fe," - "+u(C(c)),1))),256))])):_("",!0)]),_:2},1032,["href"])]))),256))])):(a(),l("div",_e,"User does not have PATs."))]),t("div",he,[e[18]||(e[18]=t("div",{class:"card-header"}," Create Personal Access Token ",-1)),v(P).length?(a(),l("div",ke,[e[16]||(e[16]=t("div",{class:"mt-8 mb-4"},[t("h2",null,"Step 1: Select Token Abilities")],-1)),t("div",be,[o(J,{onClick:D},{default:r(()=>e[12]||(e[12]=[f(" Clear Selected ")])),_:1}),e[14]||(e[14]=t("div",{class:"pl-16"}," Quick select: ",-1)),o(A,{onClick:e[2]||(e[2]=s=>q())},{default:r(()=>e[13]||(e[13]=[f(" Platform App ")])),_:1})]),t("div",ge,[(a(!0),l(p,null,h(v(P),s=>(a(),l("div",ye,[t("div",null,[t("h2",null,u(s.name),1),t("div",xe,u(s.description),1),t("div",Ae,[(a(!0),l(p,null,h(s.abilities,(c,F)=>(a(),l("div",null,[t("label",{for:c,class:"cursor-pointer"},[S(t("input",{type:"checkbox",id:c,class:"mr-4",value:F,"onUpdate:modelValue":e[3]||(e[3]=L=>n.value.token_abilities=L)},null,8,we),[[U,n.value.token_abilities]]),f(" "+u(C(c)),1)],8,Pe)]))),256))])])]))),256))]),e[17]||(e[17]=t("div",{class:"mt-8"},[t("h2",null,"Step 2: Give the Token a name")],-1)),t("div",Ce,[o(H,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:n.value.name,"onUpdate:modelValue":e[4]||(e[4]=s=>n.value.name=s),required:""},null,8,["modelValue"])]),t("div",null," Selected Abilities: "+u(n.value.token_abilities.join(", ")),1),t("div",Te,[o(A,{onClick:e[5]||(e[5]=z(s=>N(),["prevent"])),class:$(["",{"opacity-25":!n.value.name}]),desabled:!n.value.name},{default:r(()=>e[15]||(e[15]=[f(" Create New Token ")])),_:1},8,["class","desabled"])])])):_("",!0)])]),_:1})],64))}};export{Me as default}; +import{r as b,Q as T,o as O,c as l,a as o,u as v,w as r,F as p,b as a,Z as Q,d as t,t as u,i as y,e as f,f as _,g as h,l as S,m as U,k as z,n as $,h as E}from"./app-DAMU3Vsb.js";import{_ as W,S as x}from"./AuthenticatedLayout-BUPPfdhf.js";import{_ as Y}from"./AdminTopNavigation-DhGdPzlz.js";import{P as Z}from"./PaginatorComponent-CoSTMxRA.js";import{_ as G}from"./AdminUserDetailsComponent-DStHbtVS.js";import{P as A}from"./PrimaryButton-CIB81Yr_.js";import{_ as H}from"./TextInput-CvMe3C5R.js";import{_ as J}from"./SecondaryButton-CDQDA5dD.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const K={class:"card"},R={class:"flex justify-between items-center"},X={key:0},ee={class:"card"},te={class:"card"},se={key:0},ie={key:0},ae={key:0,class:"text-xs text-red-500"},le={class:""},ne={class:"flex justify-end items-center mt-4"},oe={class:"w-full lg:w-1/3"},de={class:"card"},re={for:"admin",class:"cursor-pointer flex justify-start items-center"},ue={class:"card"},me={key:0},ce={class:"border-b py-2"},ve={class:"list-item ml-8"},pe={key:0},fe={class:"ml-8 text-xs"},_e={key:1},he={class:"card"},ke={key:0},be={class:"flex justify-start items-center space-x-4 pb-4"},ge={class:"grid grid-cols-1 md:grid-cols-2 md:gap-2"},ye={class:"border rounded-xl p-4"},xe={class:"text-xs"},Ae={class:"mt-8"},Pe=["for"],we=["id","value"],Ce={class:"pb-4"},Te={class:"flex items-center justify-end mt-4"},Me={__name:"User",props:{id:{required:!0,type:Number}},setup(B){const k=B,V=b(5),n=b({name:"",token_abilities:[]}),P=T().props.personalAccessTokenAbilities,j=T().props.platformAppTokenAbilities,m=b({}),d=b({});O(()=>{g(),w()});function N(){n.value.user_id=d.value.id,axios.post("/admin/user-personal-access-tokens",n.value).then(i=>{let e=i.data.data.token,s=i.data.data.secret;x.fire({title:"Personal access token issued!",html:'
Please note that the token will be displayed only once. Make sure to save it securely.
Token: '+e+'
Secret: '+s+'
You will need the secret in order to sign your API requests.
',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(c=>{n.value={name:"",token_abilities:[]},g()})}).catch(i=>{x.fire({icon:"error",title:"Oops..",text:i.response.data.meta.message})})}function g(){axios.get("/admin/users/"+k.id+"?cached=false&relations=currentTeam").then(i=>{d.value=i.data.data}).catch(i=>{console.log(i)})}function w(i=1){axios.get("/admin/team-users?cached=false&page="+i+"&where[]=user_id,"+k.id+"&relations=team&limit="+V.value+"&orderBy=id,desc").then(e=>{m.value=e.data.data}).catch(e=>{})}function I(i){w(i)}function C(i){return i.replaceAll("-"," ")}function q(){n.value.token_abilities=Object.keys(j),x.fire({icon:"info",title:"Platform Apps",html:'
We have selected the minimum required abilities for an API token for a "Platform" type app.
Be careful with these abilities, as they can perform additive and destructive actions, like creating teams, users and more API tokens.
'})}function D(){n.value.token_abilities=[]}function M(){let i={is_admin:d.value.is_admin};axios.put("/admin/users/"+k.id,i).then(e=>{g()}).catch(e=>{console.log(e)})}return(i,e)=>(a(),l(p,null,[o(v(Q),{title:"Users"}),o(W,null,{header:r(()=>[o(Y)]),default:r(()=>[t("div",K,[t("div",R,[t("h2",null,u(d.value.name),1),t("div",null,[i.$page.props.isImpersonating===null?(a(),l("div",X,[o(A,null,{default:r(()=>[o(v(y),{href:i.route("admin.impersonate",k.id)},{default:r(()=>e[6]||(e[6]=[f("Impersonate")])),_:1},8,["href"])]),_:1})])):_("",!0)])])]),t("div",ee,[e[7]||(e[7]=t("div",{class:"card-header"}," User details ",-1)),o(G,{user:d.value},null,8,["user"])]),t("div",te,[e[8]||(e[8]=t("div",{class:"card-header"}," User teams ",-1)),m.value.data&&m.value.data.length>0?(a(),l("div",se,[(a(!0),l(p,null,h(m.value.data,s=>(a(),E(v(y),{href:i.route("admin.team",s.team_id),class:"hover:no-underline hover:opacity-75"},{default:r(()=>[t("div",{class:$({"border-b p-2":m.value.data.length>1})},[s.team?(a(),l("div",ie,[s.team_id===d.value.current_team_id?(a(),l("div",ae,"*Current team ")):_("",!0),t("div",le,u(s.team.name),1)])):_("",!0)],2)]),_:2},1032,["href"]))),256))])):_("",!0),t("div",ne,[t("div",oe,[o(Z,{onSetDataPage:I,"pagination-data":m.value},null,8,["pagination-data"])])])]),t("div",de,[e[10]||(e[10]=t("div",{class:"card-header"}," Admin status ",-1)),t("label",re,[S(t("input",{onChange:e[0]||(e[0]=s=>M()),type:"checkbox",id:"admin",class:"mr-4","true-value":1,"false-value":0,"onUpdate:modelValue":e[1]||(e[1]=s=>d.value.is_admin=s)},null,544),[[U,d.value.is_admin]]),e[9]||(e[9]=f(" User is System Admin "))])]),t("div",ue,[e[11]||(e[11]=t("div",{class:"card-header"}," User Personal Access Tokens (PATs) ",-1)),d.value.tokens&&d.value.tokens.length?(a(),l("div",me,[(a(!0),l(p,null,h(d.value.tokens,s=>(a(),l("div",ce,[o(v(y),{href:i.route("admin.api-access-token",{id:s.id})},{default:r(()=>[t("div",ve,u(s.name),1),s.abilities&&s.abilities.length?(a(),l("div",pe,[(a(!0),l(p,null,h(s.abilities,c=>(a(),l("div",fe," - "+u(C(c)),1))),256))])):_("",!0)]),_:2},1032,["href"])]))),256))])):(a(),l("div",_e,"User does not have PATs."))]),t("div",he,[e[18]||(e[18]=t("div",{class:"card-header"}," Create Personal Access Token ",-1)),v(P).length?(a(),l("div",ke,[e[16]||(e[16]=t("div",{class:"mt-8 mb-4"},[t("h2",null,"Step 1: Select Token Abilities")],-1)),t("div",be,[o(J,{onClick:D},{default:r(()=>e[12]||(e[12]=[f(" Clear Selected ")])),_:1}),e[14]||(e[14]=t("div",{class:"pl-16"}," Quick select: ",-1)),o(A,{onClick:e[2]||(e[2]=s=>q())},{default:r(()=>e[13]||(e[13]=[f(" Platform App ")])),_:1})]),t("div",ge,[(a(!0),l(p,null,h(v(P),s=>(a(),l("div",ye,[t("div",null,[t("h2",null,u(s.name),1),t("div",xe,u(s.description),1),t("div",Ae,[(a(!0),l(p,null,h(s.abilities,(c,F)=>(a(),l("div",null,[t("label",{for:c,class:"cursor-pointer"},[S(t("input",{type:"checkbox",id:c,class:"mr-4",value:F,"onUpdate:modelValue":e[3]||(e[3]=L=>n.value.token_abilities=L)},null,8,we),[[U,n.value.token_abilities]]),f(" "+u(C(c)),1)],8,Pe)]))),256))])])]))),256))]),e[17]||(e[17]=t("div",{class:"mt-8"},[t("h2",null,"Step 2: Give the Token a name")],-1)),t("div",Ce,[o(H,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:n.value.name,"onUpdate:modelValue":e[4]||(e[4]=s=>n.value.name=s),required:""},null,8,["modelValue"])]),t("div",null," Selected Abilities: "+u(n.value.token_abilities.join(", ")),1),t("div",Te,[o(A,{onClick:e[5]||(e[5]=z(s=>N(),["prevent"])),class:$(["",{"opacity-25":!n.value.name}]),desabled:!n.value.name},{default:r(()=>e[15]||(e[15]=[f(" Create New Token ")])),_:1},8,["class","desabled"])])])):_("",!0)])]),_:1})],64))}};export{Me as default}; diff --git a/public/build/assets/Users-fB1pYr8f.js b/public/build/assets/Users-DcLgqFTR.js similarity index 76% rename from public/build/assets/Users-fB1pYr8f.js rename to public/build/assets/Users-DcLgqFTR.js index 642f918d..b4868cb9 100644 --- a/public/build/assets/Users-fB1pYr8f.js +++ b/public/build/assets/Users-DcLgqFTR.js @@ -1 +1 @@ -import{_ as f}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as h,o as v,c as r,a as i,u as m,w as d,F as u,b as n,Z as g,d as e,g as x,f as _,h as w,i as k,t as l,e as y}from"./app-NB_nCFcw.js";import{_ as B}from"./AdminTopNavigation-n1SbFb1e.js";import{P as b}from"./PaginatorComponent-C4rhva1F.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./SecondaryButton-DvjXhVuA.js";const C={class:"card"},N={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},V={class:"font-bold"},j={class:"text-xs opacity-25"},D={key:0,class:""},U={class:"text-sm"},F={class:"flex justify-end items-center mt-4"},S={class:"w-full lg:w-1/3"},G={__name:"Users",setup(T){const s=h({});v(()=>{c()});function c(o=1){axios.get("/admin/users?cached=false&page="+o+"&relations=currentTeam&orderBy=id,desc").then(t=>{s.value=t.data.data}).catch(t=>{console.log(t)})}function p(o){c(o)}return(o,t)=>(n(),r(u,null,[i(m(g),{title:"Users"}),i(f,null,{header:d(()=>[i(B)]),default:d(()=>[e("div",C,[s.value.data&&s.value.data.length?(n(),r("div",N,[(n(!0),r(u,null,x(s.value.data,a=>(n(),w(m(k),{href:o.route("admin.user",a.id),class:"hover:no-underline hover:opacity-75"},{default:d(()=>[e("div",P,[e("div",null,[e("div",V,[e("span",j," #"+l(a.id),1),y(" "+l(a.name),1)]),a.current_team?(n(),r("div",D,l(a.current_team.name),1)):_("",!0),e("div",U,l(a.email),1)]),t[0]||(t[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):_("",!0),e("div",F,[e("div",S,[i(b,{onSetDataPage:p,"pagination-data":s.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{G as default}; +import{_ as f}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as h,o as v,c as r,a as i,u as m,w as d,F as u,b as n,Z as g,d as e,g as x,f as _,h as w,i as k,t as l,e as y}from"./app-DAMU3Vsb.js";import{_ as B}from"./AdminTopNavigation-DhGdPzlz.js";import{P as b}from"./PaginatorComponent-CoSTMxRA.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./SecondaryButton-CDQDA5dD.js";const C={class:"card"},N={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},V={class:"font-bold"},j={class:"text-xs opacity-25"},D={key:0,class:""},U={class:"text-sm"},F={class:"flex justify-end items-center mt-4"},S={class:"w-full lg:w-1/3"},G={__name:"Users",setup(T){const s=h({});v(()=>{c()});function c(o=1){axios.get("/admin/users?cached=false&page="+o+"&relations=currentTeam&orderBy=id,desc").then(t=>{s.value=t.data.data}).catch(t=>{console.log(t)})}function p(o){c(o)}return(o,t)=>(n(),r(u,null,[i(m(g),{title:"Users"}),i(f,null,{header:d(()=>[i(B)]),default:d(()=>[e("div",C,[s.value.data&&s.value.data.length?(n(),r("div",N,[(n(!0),r(u,null,x(s.value.data,a=>(n(),w(m(k),{href:o.route("admin.user",a.id),class:"hover:no-underline hover:opacity-75"},{default:d(()=>[e("div",P,[e("div",null,[e("div",V,[e("span",j," #"+l(a.id),1),y(" "+l(a.name),1)]),a.current_team?(n(),r("div",D,l(a.current_team.name),1)):_("",!0),e("div",U,l(a.email),1)]),t[0]||(t[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):_("",!0),e("div",F,[e("div",S,[i(b,{onSetDataPage:p,"pagination-data":s.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{G as default}; diff --git a/public/build/assets/VerifyEmail-BHhXe_r5.js b/public/build/assets/VerifyEmail-3E5pnoqD.js similarity index 83% rename from public/build/assets/VerifyEmail-BHhXe_r5.js rename to public/build/assets/VerifyEmail-3E5pnoqD.js index 0f7a5479..35950aff 100644 --- a/public/build/assets/VerifyEmail-BHhXe_r5.js +++ b/public/build/assets/VerifyEmail-3E5pnoqD.js @@ -1 +1 @@ -import{T as c,z as p,h as g,w as i,b as r,a as o,u as t,Z as y,d as n,c as v,f as b,e as a,n as k,i as x,k as h}from"./app-NB_nCFcw.js";import{_}from"./GuestLayout-BXXL9wvL.js";import{P as w}from"./PrimaryButton-CiDAOitU.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const V={key:0,class:"mb-4 font-medium text-sm text-green-600"},B={class:"mt-4 flex items-center justify-between"},j={__name:"VerifyEmail",props:{status:{type:String}},setup(d){const l=d,s=c({}),u=()=>{s.post(route("verification.send"))},m=p(()=>l.status==="verification-link-sent");return(f,e)=>(r(),g(_,null,{default:i(()=>[o(t(y),{title:"Email Verification"}),e[2]||(e[2]=n("div",{class:"mb-4 text-sm text-gray-600"}," Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another. ",-1)),m.value?(r(),v("div",V," A new verification link has been sent to the email address you provided during registration. ")):b("",!0),n("form",{onSubmit:h(u,["prevent"])},[n("div",B,[o(w,{class:k({"opacity-25":t(s).processing}),disabled:t(s).processing},{default:i(()=>e[0]||(e[0]=[a(" Resend Verification Email ")])),_:1},8,["class","disabled"]),o(t(x),{href:f.route("logout"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:i(()=>e[1]||(e[1]=[a("Log Out")])),_:1},8,["href"])])],32)]),_:1}))}};export{j as default}; +import{T as c,z as p,h as g,w as i,b as r,a as o,u as t,Z as y,d as n,c as v,f as b,e as a,n as k,i as x,k as h}from"./app-DAMU3Vsb.js";import{_}from"./GuestLayout-C6KGR1m6.js";import{P as w}from"./PrimaryButton-CIB81Yr_.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const V={key:0,class:"mb-4 font-medium text-sm text-green-600"},B={class:"mt-4 flex items-center justify-between"},j={__name:"VerifyEmail",props:{status:{type:String}},setup(d){const l=d,s=c({}),u=()=>{s.post(route("verification.send"))},m=p(()=>l.status==="verification-link-sent");return(f,e)=>(r(),g(_,null,{default:i(()=>[o(t(y),{title:"Email Verification"}),e[2]||(e[2]=n("div",{class:"mb-4 text-sm text-gray-600"}," Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another. ",-1)),m.value?(r(),v("div",V," A new verification link has been sent to the email address you provided during registration. ")):b("",!0),n("form",{onSubmit:h(u,["prevent"])},[n("div",B,[o(w,{class:k({"opacity-25":t(s).processing}),disabled:t(s).processing},{default:i(()=>e[0]||(e[0]=[a(" Resend Verification Email ")])),_:1},8,["class","disabled"]),o(t(x),{href:f.route("logout"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:i(()=>e[1]||(e[1]=[a("Log Out")])),_:1},8,["href"])])],32)]),_:1}))}};export{j as default}; diff --git a/public/build/assets/Voucher-DXAhWrlI.js b/public/build/assets/Voucher-Cp15zt8G.js similarity index 91% rename from public/build/assets/Voucher-DXAhWrlI.js rename to public/build/assets/Voucher-Cp15zt8G.js index 3e7d6902..435bf9fb 100644 --- a/public/build/assets/Voucher-DXAhWrlI.js +++ b/public/build/assets/Voucher-Cp15zt8G.js @@ -1 +1 @@ -import{_ as g}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as b,o as k,c as r,a as _,u as i,w as c,F as p,b as a,Z as w,d as e,t as o,f as l,i as m,e as u,g as V,h as B}from"./app-NB_nCFcw.js";import{_ as N}from"./AdminTopNavigation-n1SbFb1e.js";import{d as n}from"./dayjs.min-DM5MTW9C.js";import{r as R}from"./relativeTime-CdoPJJJp.js";import{u as T}from"./utc-CsIElMW4.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";const C={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},$={class:"card"},S={class:"opacity-25"},j={key:0,class:"mt-4"},D={key:1,class:"font-bold text-red-500 text-sm"},E={class:"card"},F={key:0},L={class:"card"},q={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},z={class:"font-bold text-3xl"},A={class:"font-bold text-3xl"},I={class:"font-bold text-3xl"},M={key:0},O={class:"font-bold text-3xl"},U={class:"text-xs"},Z={key:1},G={class:"font-bold text-3xl"},H={class:"text-xs"},J={class:"grid grid-cols-2 gap-8 container mx-auto"},K={class:"card"},P={key:0},Q={key:1,class:"text-xs mt-2"},W={class:"card"},X={key:0},Y={class:"card"},ee={key:0,class:"text-sm"},te={class:"border-b flex justify-between items-center py-2 sm:p-2"},se={class:"text-xs opacity-25"},oe={class:"font-bold"},de={key:0},ae={class:"font-bold"},re={key:1},ie={class:"font-bold"},pe={__name:"Voucher",props:{id:{required:!0}},setup(x){n.extend(R),n.extend(T);const h=x,s=b({});k(()=>{y()});function y(){axios.get("/admin/vouchers/"+h.id+"?cached=false&relations=voucherSet,createdByTeam,allocatedToServiceTeam,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam").then(v=>{s.value=v.data.data}).catch(v=>{console.log(v)})}return(v,t)=>(a(),r(p,null,[_(i(w),{title:"Voucher set"}),_(g,null,{header:c(()=>[_(N)]),default:c(()=>{var f;return[e("div",C,[e("div",$,[t[1]||(t[1]=e("div",{class:"card-header"}," Voucher Details ",-1)),e("h2",S," ID: "+o(h.id),1),s.value.voucher_short_code?(a(),r("div",j,[e("h2",null," Short Code: "+o(s.value.voucher_short_code),1),t[0]||(t[0]=e("div",{class:"text-xs text-gray-500"}," Short codes are used in unattended (online) redemptions ",-1))])):l("",!0),s.value.is_test?(a(),r("div",D," Test voucher ")):l("",!0)]),e("div",E,[t[2]||(t[2]=e("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(a(),r("div",F,[_(i(m),{href:v.route("admin.voucher-set",{id:s.value.voucher_set_id})},{default:c(()=>[u(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):l("",!0)])]),e("div",L,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher details ",-1)),e("div",q,[e("div",null,[e("div",z," $"+o(s.value.voucher_value_original/100),1),t[3]||(t[3]=u(" Original value "))]),e("div",null,[e("div",A," $"+o(s.value.voucher_value_remaining/100),1),t[4]||(t[4]=u(" Remaining value "))]),e("div",null,[e("div",I,o(s.value.num_voucher_redemptions??"0"),1),t[5]||(t[5]=u(" # Redemptions "))]),s.value.last_redemption_at?(a(),r("div",M,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",O,o(i(n).utc(s.value.last_redemption_at).fromNow()),1),e("div",U," ("+o(i(n)(s.value.last_redemption_at))+") ",1)])):l("",!0),(f=s.value.voucher_set)!=null&&f.expires_at?(a(),r("div",Z,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",G,o(i(n).utc(s.value.voucher_set.expires_at).fromNow()),1),e("div",H," ("+o(i(n)(s.value.voucher_set.expires_at))+") ",1)])):l("",!0)])]),e("div",J,[e("div",K,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(a(),r("div",P,[_(i(m),{href:v.route("admin.team",{id:s.value.created_by_team_id})},{default:c(()=>{var d;return[u(o((d=s.value.created_by_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0),s.value.created_at?(a(),r("div",Q," Created at: "+o(i(n).utc(s.value.created_at).fromNow())+" ("+o(i(n)(s.value.created_at))+") ",1)):l("",!0)]),e("div",W,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(a(),r("div",X,[_(i(m),{href:v.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:c(()=>{var d;return[u(o((d=s.value.allocated_to_service_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0)])]),e("div",Y,[t[15]||(t[15]=e("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(a(),r("div",ee,[(a(!0),r(p,null,V(s.value.voucher_redemptions,d=>(a(),B(i(m),{href:v.route("admin.voucher-redemption",d.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",te,[e("div",null,[e("div",se," #"+o(d.id),1),e("div",null,[t[11]||(t[11]=u(" Redeemed amount: ")),e("span",oe,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(a(),r("div",de,[t[12]||(t[12]=u(" Redeemed by: ")),e("span",ae,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):l("",!0),d.created_at?(a(),r("div",re,[t[13]||(t[13]=u(" Redeemed at: ")),e("span",ie,o(i(n).utc(d.created_at).fromNow())+" ("+o(i(n)(d.created_at))+")",1)])):l("",!0)]),t[14]||(t[14]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):l("",!0)]),t[16]||(t[16]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{pe as default}; +import{_ as g}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as b,o as k,c as r,a as _,u as i,w as c,F as p,b as a,Z as w,d as e,t as o,f as l,i as m,e as u,g as V,h as B}from"./app-DAMU3Vsb.js";import{_ as N}from"./AdminTopNavigation-DhGdPzlz.js";import{d as n}from"./dayjs.min-LcFuhhy0.js";import{r as R}from"./relativeTime-Bgw1Nd-u.js";import{u as T}from"./utc-D9fONLNZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";const C={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},$={class:"card"},S={class:"opacity-25"},j={key:0,class:"mt-4"},D={key:1,class:"font-bold text-red-500 text-sm"},E={class:"card"},F={key:0},L={class:"card"},q={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},z={class:"font-bold text-3xl"},A={class:"font-bold text-3xl"},I={class:"font-bold text-3xl"},M={key:0},O={class:"font-bold text-3xl"},U={class:"text-xs"},Z={key:1},G={class:"font-bold text-3xl"},H={class:"text-xs"},J={class:"grid grid-cols-2 gap-8 container mx-auto"},K={class:"card"},P={key:0},Q={key:1,class:"text-xs mt-2"},W={class:"card"},X={key:0},Y={class:"card"},ee={key:0,class:"text-sm"},te={class:"border-b flex justify-between items-center py-2 sm:p-2"},se={class:"text-xs opacity-25"},oe={class:"font-bold"},de={key:0},ae={class:"font-bold"},re={key:1},ie={class:"font-bold"},pe={__name:"Voucher",props:{id:{required:!0}},setup(x){n.extend(R),n.extend(T);const h=x,s=b({});k(()=>{y()});function y(){axios.get("/admin/vouchers/"+h.id+"?cached=false&relations=voucherSet,createdByTeam,allocatedToServiceTeam,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam").then(v=>{s.value=v.data.data}).catch(v=>{console.log(v)})}return(v,t)=>(a(),r(p,null,[_(i(w),{title:"Voucher set"}),_(g,null,{header:c(()=>[_(N)]),default:c(()=>{var f;return[e("div",C,[e("div",$,[t[1]||(t[1]=e("div",{class:"card-header"}," Voucher Details ",-1)),e("h2",S," ID: "+o(h.id),1),s.value.voucher_short_code?(a(),r("div",j,[e("h2",null," Short Code: "+o(s.value.voucher_short_code),1),t[0]||(t[0]=e("div",{class:"text-xs text-gray-500"}," Short codes are used in unattended (online) redemptions ",-1))])):l("",!0),s.value.is_test?(a(),r("div",D," Test voucher ")):l("",!0)]),e("div",E,[t[2]||(t[2]=e("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(a(),r("div",F,[_(i(m),{href:v.route("admin.voucher-set",{id:s.value.voucher_set_id})},{default:c(()=>[u(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):l("",!0)])]),e("div",L,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher details ",-1)),e("div",q,[e("div",null,[e("div",z," $"+o(s.value.voucher_value_original/100),1),t[3]||(t[3]=u(" Original value "))]),e("div",null,[e("div",A," $"+o(s.value.voucher_value_remaining/100),1),t[4]||(t[4]=u(" Remaining value "))]),e("div",null,[e("div",I,o(s.value.num_voucher_redemptions??"0"),1),t[5]||(t[5]=u(" # Redemptions "))]),s.value.last_redemption_at?(a(),r("div",M,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",O,o(i(n).utc(s.value.last_redemption_at).fromNow()),1),e("div",U," ("+o(i(n)(s.value.last_redemption_at))+") ",1)])):l("",!0),(f=s.value.voucher_set)!=null&&f.expires_at?(a(),r("div",Z,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",G,o(i(n).utc(s.value.voucher_set.expires_at).fromNow()),1),e("div",H," ("+o(i(n)(s.value.voucher_set.expires_at))+") ",1)])):l("",!0)])]),e("div",J,[e("div",K,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(a(),r("div",P,[_(i(m),{href:v.route("admin.team",{id:s.value.created_by_team_id})},{default:c(()=>{var d;return[u(o((d=s.value.created_by_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0),s.value.created_at?(a(),r("div",Q," Created at: "+o(i(n).utc(s.value.created_at).fromNow())+" ("+o(i(n)(s.value.created_at))+") ",1)):l("",!0)]),e("div",W,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(a(),r("div",X,[_(i(m),{href:v.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:c(()=>{var d;return[u(o((d=s.value.allocated_to_service_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0)])]),e("div",Y,[t[15]||(t[15]=e("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(a(),r("div",ee,[(a(!0),r(p,null,V(s.value.voucher_redemptions,d=>(a(),B(i(m),{href:v.route("admin.voucher-redemption",d.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",te,[e("div",null,[e("div",se," #"+o(d.id),1),e("div",null,[t[11]||(t[11]=u(" Redeemed amount: ")),e("span",oe,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(a(),r("div",de,[t[12]||(t[12]=u(" Redeemed by: ")),e("span",ae,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):l("",!0),d.created_at?(a(),r("div",re,[t[13]||(t[13]=u(" Redeemed at: ")),e("span",ie,o(i(n).utc(d.created_at).fromNow())+" ("+o(i(n)(d.created_at))+")",1)])):l("",!0)]),t[14]||(t[14]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):l("",!0)]),t[16]||(t[16]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{pe as default}; diff --git a/public/build/assets/Voucher-DkFPHOzd.js b/public/build/assets/Voucher-KQ9YSfBi.js similarity index 94% rename from public/build/assets/Voucher-DkFPHOzd.js rename to public/build/assets/Voucher-KQ9YSfBi.js index 3bc08eac..3a23e369 100644 --- a/public/build/assets/Voucher-DkFPHOzd.js +++ b/public/build/assets/Voucher-KQ9YSfBi.js @@ -1 +1 @@ -import{r as h,o as I,c as a,a as f,u as n,w as _,F as p,b as i,Z as P,e as r,d as t,t as o,f as u,i as A,g as D,h as S,l as E,s as F,D as U}from"./app-NB_nCFcw.js";import{_ as Y,S as x}from"./AuthenticatedLayout-ibOQYoAA.js";import{d as l}from"./dayjs.min-DM5MTW9C.js";import{r as L}from"./relativeTime-CdoPJJJp.js";import{l as M}from"./localizedFormat-CoQqglmK.js";import{u as O}from"./utc-CsIElMW4.js";import{P as g}from"./PrimaryButton-CiDAOitU.js";import{_ as q}from"./SecondaryButton-DvjXhVuA.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const z={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},G={class:"card"},Z={class:"opacity-25"},H={key:0,class:"mt-4"},J={key:1,class:"font-bold text-red-500 text-sm"},K={class:"card"},Q={key:0},W={class:"card"},X={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},ee={class:"font-bold text-3xl"},te={class:"font-bold text-3xl"},se={class:"font-bold text-3xl"},oe={key:0},ie={class:"font-bold text-3xl"},ae={class:"text-xs"},de={key:1},re={class:"font-bold text-3xl"},le={class:"text-xs"},ne={class:"grid grid-cols-2 gap-8 container mx-auto"},ue={class:"card"},ce={key:0},ve={key:1,class:"text-xs mt-2"},_e={class:"card"},me={key:0},fe={class:"card"},he={key:0,class:"text-sm"},be={class:"border-b py-2 sm:p-2"},ye={class:"font-bold"},pe={key:0},xe={class:"font-bold"},ge={key:1},ke={class:"font-bold"},we={class:"card"},Be={class:"card-header flex justify-between"},Ve={class:"mt-4"},Ce={key:0},De={class:"py-1 border-b border-gray-200 flex justify-between"},Se={class:"font-medium"},Te={class:"italic text-gray-500"},Re={key:1},Ne={class:"mt-8"},$e={class:"mt-2 flex justify-between"},je={class:"w-full"},Ie={class:"flex space-x-4"},ze={__name:"Voucher",props:{voucherId:{type:String,required:!1}},setup(T){l.extend(L),l.extend(M),l.extend(O);const R=T,m=h(""),b=h(null),y=h(!1),s=h({});I(()=>{B()});function k(){y.value=!1,m.value=""}function N(){x.fire({title:"Are you sure?",icon:"warning",text:"You cannot resend this voucher to a different email address after this. You can resend it to the same person, but not a different person. Please double-check you have the details correct.",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:"All good, send it!",cancelButtonText:"Go back"}).then(c=>{c.isConfirmed&&w()})}function w(){var e;let c={voucher_id:s.value.id,beneficiary_email:m.value};((e=s.value.voucher_beneficiary_distributions)==null?void 0:e.length)>=1&&(c={resend_beneficiary_distribution_id:s.value.voucher_beneficiary_distributions[0].id}),axios.post("/voucher-beneficiary-distributions",c).then(v=>{x.fire({title:"Nice!",icon:"success",text:v.data.data.message,showConfirmButton:!1,timer:600}),k(),B()}).catch(v=>{x.fire({title:"Oops!",icon:"error",text:v.response.data.meta.message}),console.log(v)})}function B(){axios.get("/my-team-vouchers/"+R.voucherId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherBeneficiaryDistributions,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam,voucherSet").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}function $(){y.value=!0,U(()=>{b.value&&b.value.scrollIntoView({behavior:"smooth"})})}return(c,e)=>(i(),a(p,null,[f(n(P),{title:"Voucher"}),f(Y,null,{header:_(()=>e[1]||(e[1]=[r(" Voucher ")])),default:_(()=>{var v,V,C;return[t("div",z,[t("div",G,[e[2]||(e[2]=t("div",{class:"card-header"}," Voucher Details ",-1)),t("h2",Z," ID: "+o(s.value.id),1),s.value.voucher_short_code?(i(),a("div",H,[t("h2",null," Short Code: "+o(s.value.voucher_short_code),1)])):u("",!0),s.value.is_test?(i(),a("div",J," Test voucher ")):u("",!0)]),t("div",K,[e[3]||(e[3]=t("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(i(),a("div",Q,[f(n(A),{href:c.route("voucher-set",{id:s.value.voucher_set_id})},{default:_(()=>[r(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):u("",!0)])]),t("div",W,[e[9]||(e[9]=t("div",{class:"card-header"}," Usage overview ",-1)),t("div",X,[t("div",null,[t("div",ee," $"+o(s.value.voucher_value_original/100),1),e[4]||(e[4]=r(" Original value "))]),t("div",null,[t("div",te," $"+o(s.value.voucher_value_remaining/100),1),e[5]||(e[5]=r(" Remaining value "))]),t("div",null,[t("div",se,o(s.value.num_voucher_redemptions??"0"),1),e[6]||(e[6]=r(" # Redemptions "))]),s.value.last_redemption_at?(i(),a("div",oe,[e[7]||(e[7]=t("div",null," Last redeemed ",-1)),t("div",ie,o(n(l).utc(s.value.last_redemption_at).fromNow()),1),t("div",ae," ("+o(n(l)(s.value.last_redemption_at))+") ",1)])):u("",!0),(v=s.value.voucher_set)!=null&&v.expires_at?(i(),a("div",de,[e[8]||(e[8]=t("div",null," Expires ",-1)),t("div",re,o(n(l).utc(s.value.voucher_set.expires_at).fromNow()),1),t("div",le," ("+o(n(l)(s.value.voucher_set.expires_at))+") ",1)])):u("",!0)])]),t("div",ne,[t("div",ue,[e[10]||(e[10]=t("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(i(),a("div",ce,o(s.value.created_by_team.name),1)):u("",!0),s.value.created_at?(i(),a("div",ve," Created at: "+o(n(l).utc(s.value.created_at).fromNow())+" ("+o(n(l)(s.value.created_at))+") ",1)):u("",!0)]),t("div",_e,[e[11]||(e[11]=t("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(i(),a("div",me,o(s.value.allocated_to_service_team.name),1)):u("",!0)])]),t("div",fe,[e[15]||(e[15]=t("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(i(),a("div",he,[(i(!0),a(p,null,D(s.value.voucher_redemptions,d=>(i(),a("div",be,[t("div",null,[e[12]||(e[12]=r(" Redeemed amount: ")),t("span",ye,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(i(),a("div",pe,[e[13]||(e[13]=r(" Redeemed by: ")),t("span",xe,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):u("",!0),d.created_at?(i(),a("div",ge,[e[14]||(e[14]=r(" Redeemed at: ")),t("span",ke,o(n(l).utc(d.created_at).fromNow())+" ("+o(n(l)(d.created_at))+")",1)])):u("",!0)]))),256))])):u("",!0)]),t("div",we,[t("div",Be,[e[18]||(e[18]=t("div",null,[t("div",null," Beneficiary Distributions ")],-1)),t("div",null,[(V=s.value.voucher_beneficiary_distributions)!=null&&V.length?(i(),S(g,{key:0,onClick:w},{default:_(()=>e[16]||(e[16]=[r(" Resend ")])),_:1})):(i(),S(g,{key:1,onClick:$},{default:_(()=>e[17]||(e[17]=[r(" Send to beneficiary ")])),_:1}))])]),t("div",Ve,[(C=s.value.voucher_beneficiary_distributions)!=null&&C.length?(i(),a("div",Ce,[(i(!0),a(p,null,D(s.value.voucher_beneficiary_distributions,(d,j)=>(i(),a("div",De,[t("div",Se,o(j===0?"Distributed":"Re-distributed")+" "+o(n(l).utc(d.created_at).fromNow()),1),t("div",Te,o(n(l)(d.created_at).format("llll")),1)]))),256))])):(i(),a("div",Re," This voucher has not been distributed yet. "))])]),y.value?(i(),a("div",{key:0,ref_key:"distributionSectionRef",ref:b,class:"card"},[e[22]||(e[22]=t("div",{class:"card-header"},[r(" Distribute to beneficiary "),t("div",{class:"text-xs"}," You can email this voucher to a beneficiary here. ")],-1)),t("div",Ne,[e[21]||(e[21]=t("label",{for:"beneficiary-email"}," Please enter the beneficiary's email ",-1)),t("div",$e,[t("div",je,[E(t("input",{id:"beneficiary-email","onUpdate:modelValue":e[0]||(e[0]=d=>m.value=d),class:"md:w-1/3",placeholder:"beneficiary@example.com",type:"email"},null,512),[[F,m.value]])]),t("div",Ie,[f(q,{onClick:k},{default:_(()=>e[19]||(e[19]=[r(" Cancel ")])),_:1}),f(g,{disabled:!m.value,class:"disabled:cursor-not-allowed disabled:opacity-25",onClick:N},{default:_(()=>e[20]||(e[20]=[r(" Send ")])),_:1},8,["disabled"])])])])],512)):u("",!0),e[23]||(e[23]=t("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{ze as default}; +import{r as h,o as I,c as a,a as f,u as n,w as _,F as p,b as i,Z as P,e as r,d as t,t as o,f as u,i as A,g as D,h as S,l as E,s as F,D as U}from"./app-DAMU3Vsb.js";import{_ as Y,S as x}from"./AuthenticatedLayout-BUPPfdhf.js";import{d as l}from"./dayjs.min-LcFuhhy0.js";import{r as L}from"./relativeTime-Bgw1Nd-u.js";import{l as M}from"./localizedFormat-DzqPGGN8.js";import{u as O}from"./utc-D9fONLNZ.js";import{P as g}from"./PrimaryButton-CIB81Yr_.js";import{_ as q}from"./SecondaryButton-CDQDA5dD.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const z={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},G={class:"card"},Z={class:"opacity-25"},H={key:0,class:"mt-4"},J={key:1,class:"font-bold text-red-500 text-sm"},K={class:"card"},Q={key:0},W={class:"card"},X={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},ee={class:"font-bold text-3xl"},te={class:"font-bold text-3xl"},se={class:"font-bold text-3xl"},oe={key:0},ie={class:"font-bold text-3xl"},ae={class:"text-xs"},de={key:1},re={class:"font-bold text-3xl"},le={class:"text-xs"},ne={class:"grid grid-cols-2 gap-8 container mx-auto"},ue={class:"card"},ce={key:0},ve={key:1,class:"text-xs mt-2"},_e={class:"card"},me={key:0},fe={class:"card"},he={key:0,class:"text-sm"},be={class:"border-b py-2 sm:p-2"},ye={class:"font-bold"},pe={key:0},xe={class:"font-bold"},ge={key:1},ke={class:"font-bold"},we={class:"card"},Be={class:"card-header flex justify-between"},Ve={class:"mt-4"},Ce={key:0},De={class:"py-1 border-b border-gray-200 flex justify-between"},Se={class:"font-medium"},Te={class:"italic text-gray-500"},Re={key:1},Ne={class:"mt-8"},$e={class:"mt-2 flex justify-between"},je={class:"w-full"},Ie={class:"flex space-x-4"},ze={__name:"Voucher",props:{voucherId:{type:String,required:!1}},setup(T){l.extend(L),l.extend(M),l.extend(O);const R=T,m=h(""),b=h(null),y=h(!1),s=h({});I(()=>{B()});function k(){y.value=!1,m.value=""}function N(){x.fire({title:"Are you sure?",icon:"warning",text:"You cannot resend this voucher to a different email address after this. You can resend it to the same person, but not a different person. Please double-check you have the details correct.",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:"All good, send it!",cancelButtonText:"Go back"}).then(c=>{c.isConfirmed&&w()})}function w(){var e;let c={voucher_id:s.value.id,beneficiary_email:m.value};((e=s.value.voucher_beneficiary_distributions)==null?void 0:e.length)>=1&&(c={resend_beneficiary_distribution_id:s.value.voucher_beneficiary_distributions[0].id}),axios.post("/voucher-beneficiary-distributions",c).then(v=>{x.fire({title:"Nice!",icon:"success",text:v.data.data.message,showConfirmButton:!1,timer:600}),k(),B()}).catch(v=>{x.fire({title:"Oops!",icon:"error",text:v.response.data.meta.message}),console.log(v)})}function B(){axios.get("/my-team-vouchers/"+R.voucherId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherBeneficiaryDistributions,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam,voucherSet").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}function $(){y.value=!0,U(()=>{b.value&&b.value.scrollIntoView({behavior:"smooth"})})}return(c,e)=>(i(),a(p,null,[f(n(P),{title:"Voucher"}),f(Y,null,{header:_(()=>e[1]||(e[1]=[r(" Voucher ")])),default:_(()=>{var v,V,C;return[t("div",z,[t("div",G,[e[2]||(e[2]=t("div",{class:"card-header"}," Voucher Details ",-1)),t("h2",Z," ID: "+o(s.value.id),1),s.value.voucher_short_code?(i(),a("div",H,[t("h2",null," Short Code: "+o(s.value.voucher_short_code),1)])):u("",!0),s.value.is_test?(i(),a("div",J," Test voucher ")):u("",!0)]),t("div",K,[e[3]||(e[3]=t("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(i(),a("div",Q,[f(n(A),{href:c.route("voucher-set",{id:s.value.voucher_set_id})},{default:_(()=>[r(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):u("",!0)])]),t("div",W,[e[9]||(e[9]=t("div",{class:"card-header"}," Usage overview ",-1)),t("div",X,[t("div",null,[t("div",ee," $"+o(s.value.voucher_value_original/100),1),e[4]||(e[4]=r(" Original value "))]),t("div",null,[t("div",te," $"+o(s.value.voucher_value_remaining/100),1),e[5]||(e[5]=r(" Remaining value "))]),t("div",null,[t("div",se,o(s.value.num_voucher_redemptions??"0"),1),e[6]||(e[6]=r(" # Redemptions "))]),s.value.last_redemption_at?(i(),a("div",oe,[e[7]||(e[7]=t("div",null," Last redeemed ",-1)),t("div",ie,o(n(l).utc(s.value.last_redemption_at).fromNow()),1),t("div",ae," ("+o(n(l)(s.value.last_redemption_at))+") ",1)])):u("",!0),(v=s.value.voucher_set)!=null&&v.expires_at?(i(),a("div",de,[e[8]||(e[8]=t("div",null," Expires ",-1)),t("div",re,o(n(l).utc(s.value.voucher_set.expires_at).fromNow()),1),t("div",le," ("+o(n(l)(s.value.voucher_set.expires_at))+") ",1)])):u("",!0)])]),t("div",ne,[t("div",ue,[e[10]||(e[10]=t("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(i(),a("div",ce,o(s.value.created_by_team.name),1)):u("",!0),s.value.created_at?(i(),a("div",ve," Created at: "+o(n(l).utc(s.value.created_at).fromNow())+" ("+o(n(l)(s.value.created_at))+") ",1)):u("",!0)]),t("div",_e,[e[11]||(e[11]=t("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(i(),a("div",me,o(s.value.allocated_to_service_team.name),1)):u("",!0)])]),t("div",fe,[e[15]||(e[15]=t("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(i(),a("div",he,[(i(!0),a(p,null,D(s.value.voucher_redemptions,d=>(i(),a("div",be,[t("div",null,[e[12]||(e[12]=r(" Redeemed amount: ")),t("span",ye,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(i(),a("div",pe,[e[13]||(e[13]=r(" Redeemed by: ")),t("span",xe,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):u("",!0),d.created_at?(i(),a("div",ge,[e[14]||(e[14]=r(" Redeemed at: ")),t("span",ke,o(n(l).utc(d.created_at).fromNow())+" ("+o(n(l)(d.created_at))+")",1)])):u("",!0)]))),256))])):u("",!0)]),t("div",we,[t("div",Be,[e[18]||(e[18]=t("div",null,[t("div",null," Beneficiary Distributions ")],-1)),t("div",null,[(V=s.value.voucher_beneficiary_distributions)!=null&&V.length?(i(),S(g,{key:0,onClick:w},{default:_(()=>e[16]||(e[16]=[r(" Resend ")])),_:1})):(i(),S(g,{key:1,onClick:$},{default:_(()=>e[17]||(e[17]=[r(" Send to beneficiary ")])),_:1}))])]),t("div",Ve,[(C=s.value.voucher_beneficiary_distributions)!=null&&C.length?(i(),a("div",Ce,[(i(!0),a(p,null,D(s.value.voucher_beneficiary_distributions,(d,j)=>(i(),a("div",De,[t("div",Se,o(j===0?"Distributed":"Re-distributed")+" "+o(n(l).utc(d.created_at).fromNow()),1),t("div",Te,o(n(l)(d.created_at).format("llll")),1)]))),256))])):(i(),a("div",Re," This voucher has not been distributed yet. "))])]),y.value?(i(),a("div",{key:0,ref_key:"distributionSectionRef",ref:b,class:"card"},[e[22]||(e[22]=t("div",{class:"card-header"},[r(" Distribute to beneficiary "),t("div",{class:"text-xs"}," You can email this voucher to a beneficiary here. ")],-1)),t("div",Ne,[e[21]||(e[21]=t("label",{for:"beneficiary-email"}," Please enter the beneficiary's email ",-1)),t("div",$e,[t("div",je,[E(t("input",{id:"beneficiary-email","onUpdate:modelValue":e[0]||(e[0]=d=>m.value=d),class:"md:w-1/3",placeholder:"beneficiary@example.com",type:"email"},null,512),[[F,m.value]])]),t("div",Ie,[f(q,{onClick:k},{default:_(()=>e[19]||(e[19]=[r(" Cancel ")])),_:1}),f(g,{disabled:!m.value,class:"disabled:cursor-not-allowed disabled:opacity-25",onClick:N},{default:_(()=>e[20]||(e[20]=[r(" Send ")])),_:1},8,["disabled"])])])])],512)):u("",!0),e[23]||(e[23]=t("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{ze as default}; diff --git a/public/build/assets/VoucherRedeem-BIWa6ByF.js b/public/build/assets/VoucherRedeem-BBaMZ4wj.js similarity index 93% rename from public/build/assets/VoucherRedeem-BIWa6ByF.js rename to public/build/assets/VoucherRedeem-BBaMZ4wj.js index 94967368..814f34f5 100644 --- a/public/build/assets/VoucherRedeem-BIWa6ByF.js +++ b/public/build/assets/VoucherRedeem-BBaMZ4wj.js @@ -1 +1 @@ -import{r as x,o as F,p as $,c as s,a as p,u as _,w as b,F as y,b as i,Z as C,d as e,e as f,t as n,f as u,l as T,s as B,n as P,g as A}from"./app-NB_nCFcw.js";import{_ as I,S as m}from"./AuthenticatedLayout-ibOQYoAA.js";import{d as h}from"./dayjs.min-DM5MTW9C.js";import{r as N}from"./relativeTime-CdoPJJJp.js";import{u as j}from"./utc-CsIElMW4.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";const D={class:"card"},S={class:"title text-2xl"},L={class:"uppercase"},M={class:"my-4"},O={key:0,class:"title text-green text-xl text-green-500"},q={key:1,class:"title"},z={key:2,class:"title text-red text-lg text-red-500"},E={class:"text-2xl font-bold mt-12"},H={key:3,class:"mt-12"},U={key:0},Z={class:"my-4"},G={key:0,class:"my-2 text-red-500"},J={key:0,class:"flex justify-between items-center"},K={class:"w-1/2 pr-2"},Q={class:"w-1/2 pl-2"},W={key:1,class:"grid grid-cols-2 gap-2"},X={class:""},Y={class:""},ee={key:4,class:"mt-8"},te={key:5,class:"mt-12 text-left"},oe={class:"title"},se={class:"flex justify-between items-center py-2 border-b"},ie={class:"text-lg"},re={class:"text-center"},le={class:"text-xs"},xe={__name:"VoucherRedeem",props:{voucher:{type:Object,required:!0}},setup(r){h.extend(N),h.extend(j);const d=r,c=x(!1),a=x(0),v=x(!1);F(()=>{});function w(){a.value=(parseInt(d.voucher.voucher_value_remaining)/100).toFixed(2),c.value=!0}function R(){c.value=!1}function k(){c.value=!1,m.fire({title:"Redeem all $"+(d.voucher.voucher_value_remaining/100).toFixed(2)+"?",html:"

This will fully redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g(d.voucher.voucher_value_remaining.toFixed(0))})}function V(){m.fire({title:"Redeem $"+a.value+"?",html:"

This will partially redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g((a.value*100).toFixed(0))})}function g(l){let t={voucher_id:d.voucher.id,voucher_set_id:d.voucher.voucher_set_id,amount:l};axios.post("/voucher-redemptions",t).then(o=>{m.fire({icon:"success",title:"Redeemed.",text:o.data.meta.message}),c.value=!1}).catch(o=>{m.fire({icon:"error",title:"Oops!",text:o.response.data.message})})}return $(a,l=>{v.value=l>0&&parseInt((l*100).toFixed(0))<=parseInt(d.voucher.voucher_value_remaining.toFixed(0))}),(l,t)=>(i(),s(y,null,[p(_(C),{title:"Voucher redeem"}),p(I,null,{header:b(()=>t[5]||(t[5]=[e("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Voucher Redeem",-1)])),default:b(()=>[e("div",D,[e("div",S,[t[6]||(t[6]=f(" Redeem Voucher ")),e("span",L,n(r.voucher.voucher_short_code),1)]),e("div",M,[r.voucher.voucher_value_remaining>0?(i(),s("div",O,"Voucher is Valid")):(i(),s("div",q,"Voucher is Fully Redeemed!")),r.voucher.is_test?(i(),s("div",z," This is a test voucher. ")):u("",!0),e("div",null,[e("div",E," $"+n((r.voucher.voucher_value_remaining/100).toFixed(2))+" remaining ",1),e("div",null," of $"+n((r.voucher.voucher_value_original/100).toFixed(2))+" original value ",1)]),r.voucher.voucher_value_remaining>0?(i(),s("div",H,[c.value?(i(),s("div",U,[e("div",Z,[t[7]||(t[7]=f(" How much should be redeemed? ")),T(e("input",{inputmode:"decimal",pattern:"[0-9]*",type:"text",step:"0.01","onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),class:P(["w-full text-center text-xl rounded p-8 border-2 focus:outline-none",{"border-green-500":v.value,"border-red-500":!v.value}]),min:"0.01"},null,2),[[B,a.value,void 0,{number:!0}]]),v.value?u("",!0):(i(),s("div",G," Invalid redemption amount. "))]),v.value?(i(),s("div",J,[e("div",K,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[1]||(t[1]=o=>R())}," Cancel ")]),e("div",Q,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[2]||(t[2]=o=>V())}," Redeem ")])])):u("",!0)])):(i(),s("div",W,[e("div",X,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[3]||(t[3]=o=>w())}," Redeem PART ")]),e("div",Y,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[4]||(t[4]=o=>k())}," Redeem ALL ")])]))])):u("",!0),r.voucher.voucher_redemptions?u("",!0):(i(),s("div",ee,t[8]||(t[8]=[e("button",{class:"w-full p-2 rounded border"}," See Redemptions ",-1)]))),r.voucher.voucher_redemptions?(i(),s("div",te,[e("div",oe," Redemptions ("+n(r.voucher.voucher_redemptions.length)+") ",1),e("div",null,[(i(!0),s(y,null,A(r.voucher.voucher_redemptions,o=>(i(),s("div",se,[e("div",null,[e("div",ie," $"+n((o.redeemed_amount/100).toFixed(2)),1)]),e("div",re,[f(n(_(h).utc(o.created_at).fromNow())+" ",1),e("div",le," ("+n(_(h)(o.created_at))+") ",1)])]))),256))])])):u("",!0)])])]),_:1})],64))}};export{xe as default}; +import{r as x,o as F,p as $,c as s,a as p,u as _,w as b,F as y,b as i,Z as C,d as e,e as f,t as n,f as u,l as T,s as B,n as P,g as A}from"./app-DAMU3Vsb.js";import{_ as I,S as m}from"./AuthenticatedLayout-BUPPfdhf.js";import{d as h}from"./dayjs.min-LcFuhhy0.js";import{r as N}from"./relativeTime-Bgw1Nd-u.js";import{u as j}from"./utc-D9fONLNZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";const D={class:"card"},S={class:"title text-2xl"},L={class:"uppercase"},M={class:"my-4"},O={key:0,class:"title text-green text-xl text-green-500"},q={key:1,class:"title"},z={key:2,class:"title text-red text-lg text-red-500"},E={class:"text-2xl font-bold mt-12"},H={key:3,class:"mt-12"},U={key:0},Z={class:"my-4"},G={key:0,class:"my-2 text-red-500"},J={key:0,class:"flex justify-between items-center"},K={class:"w-1/2 pr-2"},Q={class:"w-1/2 pl-2"},W={key:1,class:"grid grid-cols-2 gap-2"},X={class:""},Y={class:""},ee={key:4,class:"mt-8"},te={key:5,class:"mt-12 text-left"},oe={class:"title"},se={class:"flex justify-between items-center py-2 border-b"},ie={class:"text-lg"},re={class:"text-center"},le={class:"text-xs"},xe={__name:"VoucherRedeem",props:{voucher:{type:Object,required:!0}},setup(r){h.extend(N),h.extend(j);const d=r,c=x(!1),a=x(0),v=x(!1);F(()=>{});function w(){a.value=(parseInt(d.voucher.voucher_value_remaining)/100).toFixed(2),c.value=!0}function R(){c.value=!1}function k(){c.value=!1,m.fire({title:"Redeem all $"+(d.voucher.voucher_value_remaining/100).toFixed(2)+"?",html:"

This will fully redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g(d.voucher.voucher_value_remaining.toFixed(0))})}function V(){m.fire({title:"Redeem $"+a.value+"?",html:"

This will partially redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g((a.value*100).toFixed(0))})}function g(l){let t={voucher_id:d.voucher.id,voucher_set_id:d.voucher.voucher_set_id,amount:l};axios.post("/voucher-redemptions",t).then(o=>{m.fire({icon:"success",title:"Redeemed.",text:o.data.meta.message}),c.value=!1}).catch(o=>{m.fire({icon:"error",title:"Oops!",text:o.response.data.message})})}return $(a,l=>{v.value=l>0&&parseInt((l*100).toFixed(0))<=parseInt(d.voucher.voucher_value_remaining.toFixed(0))}),(l,t)=>(i(),s(y,null,[p(_(C),{title:"Voucher redeem"}),p(I,null,{header:b(()=>t[5]||(t[5]=[e("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Voucher Redeem",-1)])),default:b(()=>[e("div",D,[e("div",S,[t[6]||(t[6]=f(" Redeem Voucher ")),e("span",L,n(r.voucher.voucher_short_code),1)]),e("div",M,[r.voucher.voucher_value_remaining>0?(i(),s("div",O,"Voucher is Valid")):(i(),s("div",q,"Voucher is Fully Redeemed!")),r.voucher.is_test?(i(),s("div",z," This is a test voucher. ")):u("",!0),e("div",null,[e("div",E," $"+n((r.voucher.voucher_value_remaining/100).toFixed(2))+" remaining ",1),e("div",null," of $"+n((r.voucher.voucher_value_original/100).toFixed(2))+" original value ",1)]),r.voucher.voucher_value_remaining>0?(i(),s("div",H,[c.value?(i(),s("div",U,[e("div",Z,[t[7]||(t[7]=f(" How much should be redeemed? ")),T(e("input",{inputmode:"decimal",pattern:"[0-9]*",type:"text",step:"0.01","onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),class:P(["w-full text-center text-xl rounded p-8 border-2 focus:outline-none",{"border-green-500":v.value,"border-red-500":!v.value}]),min:"0.01"},null,2),[[B,a.value,void 0,{number:!0}]]),v.value?u("",!0):(i(),s("div",G," Invalid redemption amount. "))]),v.value?(i(),s("div",J,[e("div",K,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[1]||(t[1]=o=>R())}," Cancel ")]),e("div",Q,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[2]||(t[2]=o=>V())}," Redeem ")])])):u("",!0)])):(i(),s("div",W,[e("div",X,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[3]||(t[3]=o=>w())}," Redeem PART ")]),e("div",Y,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[4]||(t[4]=o=>k())}," Redeem ALL ")])]))])):u("",!0),r.voucher.voucher_redemptions?u("",!0):(i(),s("div",ee,t[8]||(t[8]=[e("button",{class:"w-full p-2 rounded border"}," See Redemptions ",-1)]))),r.voucher.voucher_redemptions?(i(),s("div",te,[e("div",oe," Redemptions ("+n(r.voucher.voucher_redemptions.length)+") ",1),e("div",null,[(i(!0),s(y,null,A(r.voucher.voucher_redemptions,o=>(i(),s("div",se,[e("div",null,[e("div",ie," $"+n((o.redeemed_amount/100).toFixed(2)),1)]),e("div",re,[f(n(_(h).utc(o.created_at).fromNow())+" ",1),e("div",le," ("+n(_(h)(o.created_at))+") ",1)])]))),256))])])):u("",!0)])])]),_:1})],64))}};export{xe as default}; diff --git a/public/build/assets/VoucherRedemption-Ba1mDZU6.js b/public/build/assets/VoucherRedemption-ByOfqClZ.js similarity index 85% rename from public/build/assets/VoucherRedemption-Ba1mDZU6.js rename to public/build/assets/VoucherRedemption-ByOfqClZ.js index b692f310..e9017bee 100644 --- a/public/build/assets/VoucherRedemption-Ba1mDZU6.js +++ b/public/build/assets/VoucherRedemption-ByOfqClZ.js @@ -1 +1 @@ -import{_ as p}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as y,o as x,c as a,a as i,u,w as n,F as b,b as l,Z as g,d,t as o,f as m,e as s,i as v}from"./app-NB_nCFcw.js";import{_ as V}from"./AdminTopNavigation-n1SbFb1e.js";import{d as _}from"./dayjs.min-DM5MTW9C.js";import{r as k}from"./relativeTime-CdoPJJJp.js";import{u as R}from"./utc-CsIElMW4.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";const B={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},N={class:"card"},$={class:"opacity-25"},T={key:0,class:"font-bold text-red-500 text-sm"},w={class:"card"},D={key:0},C={key:1},F={class:"card"},j={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},q={class:"font-bold text-3xl"},E={key:0},I={class:"font-bold text-3xl"},M={class:"font-bold text-3xl"},S={class:"text-xs"},U={class:"card"},Z={key:0},z={key:1},W={__name:"VoucherRedemption",props:{id:{required:!0}},setup(h){_.extend(k),_.extend(R);const c=h,t=y({});x(()=>{f()});function f(){axios.get("/admin/voucher-redemptions/"+c.id+"?cached=false&relations=redeemedByUser,redeemedByTeam,voucher").then(r=>{t.value=r.data.data}).catch(r=>{console.log(r)})}return(r,e)=>(l(),a(b,null,[i(u(g),{title:"Voucher redemption"}),i(p,null,{header:n(()=>[i(V)]),default:n(()=>[d("div",B,[d("div",N,[e[0]||(e[0]=d("div",{class:"card-header"}," Voucher Redemption Details ",-1)),d("h2",$," ID: "+o(c.id),1),t.value.is_test?(l(),a("div",T," Test voucher redemption ")):m("",!0)]),d("div",w,[e[3]||(e[3]=d("div",{class:"card-header"}," Voucher and voucher set ",-1)),t.value.voucher_id?(l(),a("div",D,[e[1]||(e[1]=s(" Voucher ")),i(u(v),{href:r.route("admin.voucher",t.value.voucher_id)},{default:n(()=>[s("#"+o(t.value.voucher_id),1)]),_:1},8,["href"])])):m("",!0),t.value.voucher_set_id?(l(),a("div",C,[e[2]||(e[2]=s(" Voucher set ")),i(u(v),{href:r.route("admin.voucher-set",t.value.voucher_set_id)},{default:n(()=>[s("#"+o(t.value.voucher_set_id),1)]),_:1},8,["href"])])):m("",!0)])]),d("div",F,[e[7]||(e[7]=d("div",{class:"card-header"}," Voucher redemption details ",-1)),d("div",j,[d("div",null,[d("div",q," $"+o(t.value.redeemed_amount/100),1),e[4]||(e[4]=s(" Redeemed value "))]),t.value.voucher?(l(),a("div",E,[d("div",I," $"+o(t.value.voucher.voucher_value_remaining/100),1),e[5]||(e[5]=s(" Voucher remaining value "))])):m("",!0),d("div",null,[e[6]||(e[6]=d("div",null," Redeemed at ",-1)),d("div",M,o(u(_).utc(t.value.created_at).fromNow()),1),d("div",S," ("+o(u(_)(t.value.created_at))+") ",1)])])]),d("div",U,[e[8]||(e[8]=d("div",{class:"card-header"}," Redeemed by ",-1)),t.value.redeemed_by_user?(l(),a("div",Z,[i(u(v),{href:r.route("admin.user",t.value.redeemed_by_user_id)},{default:n(()=>[s(o(t.value.redeemed_by_user.name),1)]),_:1},8,["href"])])):m("",!0),t.value.redeemed_by_team?(l(),a("div",z,[i(u(v),{href:r.route("admin.team",t.value.redeemed_by_team_id)},{default:n(()=>[s(o(t.value.redeemed_by_team.name),1)]),_:1},8,["href"])])):m("",!0)]),e[9]||(e[9]=d("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{W as default}; +import{_ as p}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as y,o as x,c as a,a as i,u,w as n,F as b,b as l,Z as g,d,t as o,f as m,e as s,i as v}from"./app-DAMU3Vsb.js";import{_ as V}from"./AdminTopNavigation-DhGdPzlz.js";import{d as _}from"./dayjs.min-LcFuhhy0.js";import{r as k}from"./relativeTime-Bgw1Nd-u.js";import{u as R}from"./utc-D9fONLNZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";const B={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},N={class:"card"},$={class:"opacity-25"},T={key:0,class:"font-bold text-red-500 text-sm"},w={class:"card"},D={key:0},C={key:1},F={class:"card"},j={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},q={class:"font-bold text-3xl"},E={key:0},I={class:"font-bold text-3xl"},M={class:"font-bold text-3xl"},S={class:"text-xs"},U={class:"card"},Z={key:0},z={key:1},W={__name:"VoucherRedemption",props:{id:{required:!0}},setup(h){_.extend(k),_.extend(R);const c=h,t=y({});x(()=>{f()});function f(){axios.get("/admin/voucher-redemptions/"+c.id+"?cached=false&relations=redeemedByUser,redeemedByTeam,voucher").then(r=>{t.value=r.data.data}).catch(r=>{console.log(r)})}return(r,e)=>(l(),a(b,null,[i(u(g),{title:"Voucher redemption"}),i(p,null,{header:n(()=>[i(V)]),default:n(()=>[d("div",B,[d("div",N,[e[0]||(e[0]=d("div",{class:"card-header"}," Voucher Redemption Details ",-1)),d("h2",$," ID: "+o(c.id),1),t.value.is_test?(l(),a("div",T," Test voucher redemption ")):m("",!0)]),d("div",w,[e[3]||(e[3]=d("div",{class:"card-header"}," Voucher and voucher set ",-1)),t.value.voucher_id?(l(),a("div",D,[e[1]||(e[1]=s(" Voucher ")),i(u(v),{href:r.route("admin.voucher",t.value.voucher_id)},{default:n(()=>[s("#"+o(t.value.voucher_id),1)]),_:1},8,["href"])])):m("",!0),t.value.voucher_set_id?(l(),a("div",C,[e[2]||(e[2]=s(" Voucher set ")),i(u(v),{href:r.route("admin.voucher-set",t.value.voucher_set_id)},{default:n(()=>[s("#"+o(t.value.voucher_set_id),1)]),_:1},8,["href"])])):m("",!0)])]),d("div",F,[e[7]||(e[7]=d("div",{class:"card-header"}," Voucher redemption details ",-1)),d("div",j,[d("div",null,[d("div",q," $"+o(t.value.redeemed_amount/100),1),e[4]||(e[4]=s(" Redeemed value "))]),t.value.voucher?(l(),a("div",E,[d("div",I," $"+o(t.value.voucher.voucher_value_remaining/100),1),e[5]||(e[5]=s(" Voucher remaining value "))])):m("",!0),d("div",null,[e[6]||(e[6]=d("div",null," Redeemed at ",-1)),d("div",M,o(u(_).utc(t.value.created_at).fromNow()),1),d("div",S," ("+o(u(_)(t.value.created_at))+") ",1)])])]),d("div",U,[e[8]||(e[8]=d("div",{class:"card-header"}," Redeemed by ",-1)),t.value.redeemed_by_user?(l(),a("div",Z,[i(u(v),{href:r.route("admin.user",t.value.redeemed_by_user_id)},{default:n(()=>[s(o(t.value.redeemed_by_user.name),1)]),_:1},8,["href"])])):m("",!0),t.value.redeemed_by_team?(l(),a("div",z,[i(u(v),{href:r.route("admin.team",t.value.redeemed_by_team_id)},{default:n(()=>[s(o(t.value.redeemed_by_team.name),1)]),_:1},8,["href"])])):m("",!0)]),e[9]||(e[9]=d("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{W as default}; diff --git a/public/build/assets/VoucherRedemptions-BJ2Z8SKl.js b/public/build/assets/VoucherRedemptions-D2AdAWMF.js similarity index 78% rename from public/build/assets/VoucherRedemptions-BJ2Z8SKl.js rename to public/build/assets/VoucherRedemptions-D2AdAWMF.js index b72cd43b..aa5651e2 100644 --- a/public/build/assets/VoucherRedemptions-BJ2Z8SKl.js +++ b/public/build/assets/VoucherRedemptions-D2AdAWMF.js @@ -1 +1 @@ -import{_ as y}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as p,o as g,b as r,c as d,F as h,g as x,h as b,w as c,d as t,t as a,f as i,u as m,i as w,a as n,Z as k}from"./app-NB_nCFcw.js";import{_ as V}from"./AdminTopNavigation-n1SbFb1e.js";import{P as B}from"./PaginatorComponent-C4rhva1F.js";import{d as l}from"./dayjs.min-DM5MTW9C.js";import{r as C}from"./relativeTime-CdoPJJJp.js";import{u as $}from"./utc-CsIElMW4.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./SecondaryButton-DvjXhVuA.js";const j={key:0},N={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},T={class:"font-bold text-sm"},D={key:0,class:"text-red-500 font-bold"},F={key:1},S={key:2},z={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},L={__name:"VoucherRedemptionsComponent",setup(v){l.extend(C),l.extend($);const u=p(50),s=p({});g(()=>{f()});function f(_=1){axios.get("/admin/voucher-redemptions?cached=false&page="+_+"&limit="+u.value+"&orderBy=created_at,desc&relations=redeemedByUser,redeemedByTeam").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}return(_,o)=>s.value.data&&s.value.data.length?(r(),d("div",j,[(r(!0),d(h,null,x(s.value.data,e=>(r(),b(m(w),{href:_.route("admin.voucher-redemption",e.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[t("div",N,[t("div",P,[t("div",T," #"+a(e.id),1),e.is_test?(r(),d("div",D," Test voucher redemption ")):i("",!0),t("div",null," Voucher: #"+a(e.voucher_id),1),t("div",null," Voucher set: #"+a(e.voucher_set_id),1),e.redeemed_by_user&&e.redeemed_by_team?(r(),d("div",F," Redeemed by: "+a(e.redeemed_by_user.name)+" ("+a(e.redeemed_by_team.name)+") ",1)):i("",!0),t("div",null," Redeemed amount: $"+a(e.redeemed_amount/100),1),e.created_by_team?(r(),d("div",S," Created at: "+a(m(l).utc(e.created_at).fromNow())+" ("+a(m(l)(e.created_at))+") ",1)):i("",!0)]),o[0]||(o[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),t("div",z,[t("div",E,[n(B,{onSetDataPage:f,"pagination-data":s.value},null,8,["pagination-data"])])])])):i("",!0)}},M={class:"card"},W={__name:"VoucherRedemptions",setup(v){return(u,s)=>(r(),d(h,null,[n(m(k),{title:"Voucher redemptions"}),n(y,null,{header:c(()=>[n(V)]),default:c(()=>[t("div",M,[s[0]||(s[0]=t("div",{class:"card-header"}," Voucher Redemptions ",-1)),n(L)])]),_:1})],64))}};export{W as default}; +import{_ as y}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as p,o as g,b as r,c as d,F as h,g as x,h as b,w as c,d as t,t as a,f as i,u as m,i as w,a as n,Z as k}from"./app-DAMU3Vsb.js";import{_ as V}from"./AdminTopNavigation-DhGdPzlz.js";import{P as B}from"./PaginatorComponent-CoSTMxRA.js";import{d as l}from"./dayjs.min-LcFuhhy0.js";import{r as C}from"./relativeTime-Bgw1Nd-u.js";import{u as $}from"./utc-D9fONLNZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./SecondaryButton-CDQDA5dD.js";const j={key:0},N={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},T={class:"font-bold text-sm"},D={key:0,class:"text-red-500 font-bold"},F={key:1},S={key:2},z={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},L={__name:"VoucherRedemptionsComponent",setup(v){l.extend(C),l.extend($);const u=p(50),s=p({});g(()=>{f()});function f(_=1){axios.get("/admin/voucher-redemptions?cached=false&page="+_+"&limit="+u.value+"&orderBy=created_at,desc&relations=redeemedByUser,redeemedByTeam").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}return(_,o)=>s.value.data&&s.value.data.length?(r(),d("div",j,[(r(!0),d(h,null,x(s.value.data,e=>(r(),b(m(w),{href:_.route("admin.voucher-redemption",e.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[t("div",N,[t("div",P,[t("div",T," #"+a(e.id),1),e.is_test?(r(),d("div",D," Test voucher redemption ")):i("",!0),t("div",null," Voucher: #"+a(e.voucher_id),1),t("div",null," Voucher set: #"+a(e.voucher_set_id),1),e.redeemed_by_user&&e.redeemed_by_team?(r(),d("div",F," Redeemed by: "+a(e.redeemed_by_user.name)+" ("+a(e.redeemed_by_team.name)+") ",1)):i("",!0),t("div",null," Redeemed amount: $"+a(e.redeemed_amount/100),1),e.created_by_team?(r(),d("div",S," Created at: "+a(m(l).utc(e.created_at).fromNow())+" ("+a(m(l)(e.created_at))+") ",1)):i("",!0)]),o[0]||(o[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),t("div",z,[t("div",E,[n(B,{onSetDataPage:f,"pagination-data":s.value},null,8,["pagination-data"])])])])):i("",!0)}},M={class:"card"},W={__name:"VoucherRedemptions",setup(v){return(u,s)=>(r(),d(h,null,[n(m(k),{title:"Voucher redemptions"}),n(y,null,{header:c(()=>[n(V)]),default:c(()=>[t("div",M,[s[0]||(s[0]=t("div",{class:"card-header"}," Voucher Redemptions ",-1)),n(L)])]),_:1})],64))}};export{W as default}; diff --git a/public/build/assets/VoucherSet-C_FioOoJ.js b/public/build/assets/VoucherSet-C_FioOoJ.js deleted file mode 100644 index 57a257cd..00000000 --- a/public/build/assets/VoucherSet-C_FioOoJ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as x}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as h,o as y,c as l,a as n,u as o,w as v,F as b,b as i,Z as g,d as e,t as a,f as u,e as _,i as m}from"./app-NB_nCFcw.js";import{_ as V}from"./AdminTopNavigation-n1SbFb1e.js";import{d}from"./dayjs.min-DM5MTW9C.js";import{r as k}from"./relativeTime-CdoPJJJp.js";import{u as T}from"./utc-CsIElMW4.js";import{_ as N}from"./VouchersComponent-C8urwp1U.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./PaginatorComponent-C4rhva1F.js";import"./SecondaryButton-DvjXhVuA.js";const $={class:"card"},w={key:0,class:"font-bold text-red-500 text-sm"},S={class:"card"},B={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},C={class:"font-bold text-3xl"},E={class:"font-bold text-3xl"},F={class:"font-bold text-3xl"},j={class:"font-bold text-3xl"},q={key:0},A={class:"font-bold text-3xl"},D={class:"text-xs"},L={key:1},M={class:"font-bold text-3xl"},R={class:"text-xs"},Z={class:"card"},z={key:0},G={key:1,class:"text-xs mt-2"},H={class:"card"},I={key:0},J={class:"card"},oe={__name:"VoucherSet",props:{id:{required:!0}},setup(f){d.extend(k),d.extend(T);const c=f,s=h({});y(()=>{p()});function p(){axios.get("/admin/voucher-sets/"+c.id+"?cached=false&relations=createdByTeam,allocatedToServiceTeam").then(r=>{s.value=r.data.data}).catch(r=>{console.log(r)})}return(r,t)=>(i(),l(b,null,[n(o(g),{title:"Voucher set"}),n(x,null,{header:v(()=>[n(V)]),default:v(()=>[e("div",$,[e("h2",null,a(c.id),1),s.value.is_test?(i(),l("div",w," Test voucher set ")):u("",!0)]),e("div",S,[t[6]||(t[6]=e("div",{class:"card-header"}," Voucher set details ",-1)),e("div",B,[e("div",null,[e("div",C," $"+a(s.value.total_set_value/100),1),t[0]||(t[0]=_(" Total set value "))]),e("div",null,[e("div",E," $"+a(s.value.total_set_value_remaining/100),1),t[1]||(t[1]=_(" Total remaining value "))]),e("div",null,[e("div",F,a(s.value.num_vouchers),1),t[2]||(t[2]=_(" # Vouchers "))]),e("div",null,[e("div",j,a(s.value.num_voucher_redemptions),1),t[3]||(t[3]=_(" # Redemptions "))]),s.value.last_redemption_at?(i(),l("div",q,[t[4]||(t[4]=e("div",null," Last redeemed ",-1)),e("div",A,a(o(d).utc(s.value.last_redemption_at).fromNow()),1),e("div",D," ("+a(o(d)(s.value.last_redemption_at))+") ",1)])):u("",!0),s.value.expires_at?(i(),l("div",L,[t[5]||(t[5]=e("div",null," Expires ",-1)),e("div",M,a(o(d).utc(s.value.expires_at).fromNow()),1),e("div",R," ("+a(o(d)(s.value.expires_at))+") ",1)])):u("",!0)])]),e("div",Z,[t[7]||(t[7]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(i(),l("div",z,[n(o(m),{href:r.route("admin.team",{id:s.value.created_by_team_id})},{default:v(()=>[_(a(s.value.created_by_team.name),1)]),_:1},8,["href"])])):u("",!0),s.value.created_at?(i(),l("div",G," Created at: "+a(o(d).utc(s.value.created_at).fromNow())+" ("+a(o(d)(s.value.created_at))+") ",1)):u("",!0)]),e("div",H,[t[8]||(t[8]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(i(),l("div",I,[n(o(m),{href:r.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:v(()=>[_(a(s.value.allocated_to_service_team.name),1)]),_:1},8,["href"])])):u("",!0)]),e("div",J,[t[9]||(t[9]=e("div",{class:"card-header"}," Vouchers ",-1)),n(N,{"voucher-set-id":c.id},null,8,["voucher-set-id"])]),t[10]||(t[10]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{oe as default}; diff --git a/public/build/assets/VoucherSet-DMNIDxAN.js b/public/build/assets/VoucherSet-GzhgjQNh.js similarity index 91% rename from public/build/assets/VoucherSet-DMNIDxAN.js rename to public/build/assets/VoucherSet-GzhgjQNh.js index 50742a0a..01d3199f 100644 --- a/public/build/assets/VoucherSet-DMNIDxAN.js +++ b/public/build/assets/VoucherSet-GzhgjQNh.js @@ -1 +1 @@ -import{_ as $}from"./AuthenticatedLayout-ibOQYoAA.js";import{r as x,o as b,b as o,c as d,F as f,g as k,h as w,w as y,d as e,t as a,f as r,u as n,Q as g,i as V,a as m,Z as C,e as _}from"./app-NB_nCFcw.js";import{d as i}from"./dayjs.min-DM5MTW9C.js";import{r as T}from"./relativeTime-CdoPJJJp.js";import{u as S}from"./utc-CsIElMW4.js";import{P as B}from"./PaginatorComponent-C4rhva1F.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./SecondaryButton-DvjXhVuA.js";const N={key:0},M={class:"border-b flex justify-between items-center py-2 sm:p-2"},I={class:"text-xs"},j={key:0,class:"font-bold text-sm"},P={key:1,class:"font-bold text-sm"},q={key:2,class:"text-red-500"},A={key:3},D={key:4},E={class:"flex justify-end items-center mt-4"},F={class:"w-full lg:w-1/3"},L={__name:"MyTeamVouchersComponent",props:{voucherSetId:{required:!1,default:null}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({}),p=x(5);b(()=>{c()});function c(t=1){axios.get("/my-team-vouchers?cached=false&where[]=voucher_set_id,"+v.voucherSetId+"&page="+t+"&limit="+p.value+"&relations=createdByTeam,allocatedToServiceTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}return(t,u)=>s.value.data&&s.value.data.length?(o(),d("div",N,[(o(!0),d(f,null,k(s.value.data,l=>(o(),w(n(V),{href:t.route("voucher",l.id),class:"hover:no-underline hover:opacity-75"},{default:y(()=>[e("div",M,[e("div",I,[l.voucher_short_code?(o(),d("div",j," #"+a(l.voucher_short_code),1)):(o(),d("div",P," #"+a(l.id),1)),l.is_test?(o(),d("div",q," Test voucher ")):r("",!0),l.created_by_team&&l.created_by_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",A," Created by: "+a(l.created_by_team.name),1)):r("",!0),l.allocated_to_service_team&&l.allocated_to_service_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",D," Allocated to: "+a(l.allocated_to_service_team.name),1)):r("",!0)]),u[0]||(u[0]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),e("div",E,[e("div",F,[m(B,{onSetDataPage:c,"pagination-data":s.value},null,8,["pagination-data"])])])])):r("",!0)}},R={class:"card"},z={key:0,class:"font-bold text-red-500 text-sm"},Q={class:"card"},Z={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},G={class:"font-bold text-3xl"},H={class:"font-bold text-3xl"},J={class:"font-bold text-3xl"},K={class:"font-bold text-3xl"},O={class:"font-bold text-3xl"},U={key:0},W={class:"font-bold text-3xl"},X={class:"text-xs"},Y={key:1},ee={class:"font-bold text-3xl"},te={class:"text-xs"},se={class:"card"},ae={key:0},oe={key:1,class:"text-xs mt-2"},de={class:"card"},le={key:0},re={class:"card"},ie={key:0},ne={class:"list-disc ml-4"},ue={class:"card"},be={__name:"VoucherSet",props:{voucherSetId:{type:String,required:!1}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({});b(()=>{p()});function p(){axios.get("/my-team-voucher-sets/"+v.voucherSetId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}return(c,t)=>(o(),d(f,null,[m(n(C),{title:"Voucher Set"}),m($,null,{header:y(()=>t[0]||(t[0]=[e("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Voucher Set",-1)])),default:y(()=>[e("div",R,[e("h2",null,a(s.value.id),1),s.value.is_test?(o(),d("div",z," Test voucher set ")):r("",!0)]),e("div",Q,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher set details ",-1)),e("div",Z,[e("div",null,[e("div",G," $"+a(s.value.total_set_value/100),1),t[1]||(t[1]=_(" Total set value "))]),e("div",null,[e("div",H," $"+a(s.value.total_set_value_remaining/100),1),t[2]||(t[2]=_(" Total remaining value "))]),e("div",null,[e("div",J,a(Math.round((s.value.total_set_value-s.value.total_set_value_remaining)/s.value.total_set_value*1e4)/100)+"% ",1),t[3]||(t[3]=_(" Redeemed percentage "))]),e("div",null,[e("div",K,a(s.value.num_vouchers),1),t[4]||(t[4]=_(" # Vouchers "))]),e("div",null,[e("div",O,a(s.value.num_voucher_redemptions),1),t[5]||(t[5]=_(" # Redemptions "))]),s.value.last_redemption_at?(o(),d("div",U,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",W,a(n(i).utc(s.value.last_redemption_at).fromNow()),1),e("div",X," ("+a(n(i)(s.value.last_redemption_at))+") ",1)])):r("",!0),s.value.expires_at?(o(),d("div",Y,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",ee,a(n(i).utc(s.value.expires_at).fromNow()),1),e("div",te," ("+a(n(i)(s.value.expires_at))+") ",1)])):r("",!0)])]),e("div",se,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(o(),d("div",ae,a(s.value.created_by_team.name),1)):r("",!0),s.value.created_at?(o(),d("div",oe," Created at: "+a(n(i).utc(s.value.created_at).fromNow())+" ("+a(n(i)(s.value.created_at))+") ",1)):r("",!0)]),e("div",de,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated To Service Team ",-1)),s.value.allocated_to_service_team?(o(),d("div",le,a(s.value.allocated_to_service_team.name),1)):r("",!0)]),e("div",re,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants ",-1)),s.value.voucher_set_merchant_teams?(o(),d("div",ie,[(o(!0),d(f,null,k(s.value.voucher_set_merchant_teams,u=>(o(),d("ul",ne,[e("li",null,a(u.merchant_team.name),1)]))),256))])):r("",!0)]),e("div",ue,[t[12]||(t[12]=e("div",{class:"card-header"}," Vouchers ",-1)),m(L,{"voucher-set-id":v.voucherSetId},null,8,["voucher-set-id"])]),t[13]||(t[13]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{be as default}; +import{_ as $}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as x,o as b,b as o,c as d,F as f,g as k,h as w,w as y,d as e,t as a,f as r,u as n,Q as g,i as V,a as m,Z as C,e as _}from"./app-DAMU3Vsb.js";import{d as i}from"./dayjs.min-LcFuhhy0.js";import{r as T}from"./relativeTime-Bgw1Nd-u.js";import{u as S}from"./utc-D9fONLNZ.js";import{P as B}from"./PaginatorComponent-CoSTMxRA.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./SecondaryButton-CDQDA5dD.js";const N={key:0},M={class:"border-b flex justify-between items-center py-2 sm:p-2"},I={class:"text-xs"},j={key:0,class:"font-bold text-sm"},P={key:1,class:"font-bold text-sm"},q={key:2,class:"text-red-500"},A={key:3},D={key:4},E={class:"flex justify-end items-center mt-4"},F={class:"w-full lg:w-1/3"},L={__name:"MyTeamVouchersComponent",props:{voucherSetId:{required:!1,default:null}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({}),p=x(5);b(()=>{c()});function c(t=1){axios.get("/my-team-vouchers?cached=false&where[]=voucher_set_id,"+v.voucherSetId+"&page="+t+"&limit="+p.value+"&relations=createdByTeam,allocatedToServiceTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}return(t,u)=>s.value.data&&s.value.data.length?(o(),d("div",N,[(o(!0),d(f,null,k(s.value.data,l=>(o(),w(n(V),{href:t.route("voucher",l.id),class:"hover:no-underline hover:opacity-75"},{default:y(()=>[e("div",M,[e("div",I,[l.voucher_short_code?(o(),d("div",j," #"+a(l.voucher_short_code),1)):(o(),d("div",P," #"+a(l.id),1)),l.is_test?(o(),d("div",q," Test voucher ")):r("",!0),l.created_by_team&&l.created_by_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",A," Created by: "+a(l.created_by_team.name),1)):r("",!0),l.allocated_to_service_team&&l.allocated_to_service_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",D," Allocated to: "+a(l.allocated_to_service_team.name),1)):r("",!0)]),u[0]||(u[0]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),e("div",E,[e("div",F,[m(B,{onSetDataPage:c,"pagination-data":s.value},null,8,["pagination-data"])])])])):r("",!0)}},R={class:"card"},z={key:0,class:"font-bold text-red-500 text-sm"},Q={class:"card"},Z={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},G={class:"font-bold text-3xl"},H={class:"font-bold text-3xl"},J={class:"font-bold text-3xl"},K={class:"font-bold text-3xl"},O={class:"font-bold text-3xl"},U={key:0},W={class:"font-bold text-3xl"},X={class:"text-xs"},Y={key:1},ee={class:"font-bold text-3xl"},te={class:"text-xs"},se={class:"card"},ae={key:0},oe={key:1,class:"text-xs mt-2"},de={class:"card"},le={key:0},re={class:"card"},ie={key:0},ne={class:"list-disc ml-4"},ue={class:"card"},be={__name:"VoucherSet",props:{voucherSetId:{type:String,required:!1}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({});b(()=>{p()});function p(){axios.get("/my-team-voucher-sets/"+v.voucherSetId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}return(c,t)=>(o(),d(f,null,[m(n(C),{title:"Voucher Set"}),m($,null,{header:y(()=>t[0]||(t[0]=[e("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Voucher Set",-1)])),default:y(()=>[e("div",R,[e("h2",null,a(s.value.id),1),s.value.is_test?(o(),d("div",z," Test voucher set ")):r("",!0)]),e("div",Q,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher set details ",-1)),e("div",Z,[e("div",null,[e("div",G," $"+a(s.value.total_set_value/100),1),t[1]||(t[1]=_(" Total set value "))]),e("div",null,[e("div",H," $"+a(s.value.total_set_value_remaining/100),1),t[2]||(t[2]=_(" Total remaining value "))]),e("div",null,[e("div",J,a(Math.round((s.value.total_set_value-s.value.total_set_value_remaining)/s.value.total_set_value*1e4)/100)+"% ",1),t[3]||(t[3]=_(" Redeemed percentage "))]),e("div",null,[e("div",K,a(s.value.num_vouchers),1),t[4]||(t[4]=_(" # Vouchers "))]),e("div",null,[e("div",O,a(s.value.num_voucher_redemptions),1),t[5]||(t[5]=_(" # Redemptions "))]),s.value.last_redemption_at?(o(),d("div",U,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",W,a(n(i).utc(s.value.last_redemption_at).fromNow()),1),e("div",X," ("+a(n(i)(s.value.last_redemption_at))+") ",1)])):r("",!0),s.value.expires_at?(o(),d("div",Y,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",ee,a(n(i).utc(s.value.expires_at).fromNow()),1),e("div",te," ("+a(n(i)(s.value.expires_at))+") ",1)])):r("",!0)])]),e("div",se,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(o(),d("div",ae,a(s.value.created_by_team.name),1)):r("",!0),s.value.created_at?(o(),d("div",oe," Created at: "+a(n(i).utc(s.value.created_at).fromNow())+" ("+a(n(i)(s.value.created_at))+") ",1)):r("",!0)]),e("div",de,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated To Service Team ",-1)),s.value.allocated_to_service_team?(o(),d("div",le,a(s.value.allocated_to_service_team.name),1)):r("",!0)]),e("div",re,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants ",-1)),s.value.voucher_set_merchant_teams?(o(),d("div",ie,[(o(!0),d(f,null,k(s.value.voucher_set_merchant_teams,u=>(o(),d("ul",ne,[e("li",null,a(u.merchant_team.name),1)]))),256))])):r("",!0)]),e("div",ue,[t[12]||(t[12]=e("div",{class:"card-header"}," Vouchers ",-1)),m(L,{"voucher-set-id":v.voucherSetId},null,8,["voucher-set-id"])]),t[13]||(t[13]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{be as default}; diff --git a/public/build/assets/VoucherSet-Zt9y5gmI.js b/public/build/assets/VoucherSet-Zt9y5gmI.js new file mode 100644 index 00000000..3501d6d1 --- /dev/null +++ b/public/build/assets/VoucherSet-Zt9y5gmI.js @@ -0,0 +1 @@ +import{_ as p}from"./AuthenticatedLayout-BUPPfdhf.js";import{r as h,o as y,c as d,a as _,u as o,w as v,F as b,b as i,Z as g,d as e,t as a,f as l,e as n,i as m}from"./app-DAMU3Vsb.js";import{_ as V}from"./AdminTopNavigation-DhGdPzlz.js";import{d as r}from"./dayjs.min-LcFuhhy0.js";import{r as k}from"./relativeTime-Bgw1Nd-u.js";import{u as T}from"./utc-D9fONLNZ.js";import{_ as N}from"./VouchersComponent-B1EjqngZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./PaginatorComponent-CoSTMxRA.js";import"./SecondaryButton-CDQDA5dD.js";const $={class:"card"},w={key:0,class:"font-bold text-red-500 text-sm"},S={class:"card"},B={class:"card-header"},C={key:0,class:"text-red-500 text-xs font-bold"},E={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},F={class:"font-bold text-3xl"},j={class:"font-bold text-3xl"},q={class:"font-bold text-3xl"},A={class:"font-bold text-3xl"},D={key:0},L={class:"font-bold text-3xl"},M={class:"text-xs"},R={key:1},Z={class:"font-bold text-3xl"},z={class:"text-xs"},G={class:"card"},H={key:0},I={key:1,class:"text-xs mt-2"},J={class:"card"},K={key:0},O={class:"card"},ie={__name:"VoucherSet",props:{id:{required:!0}},setup(f){r.extend(k),r.extend(T);const c=f,t=h({});y(()=>{x()});function x(){axios.get("/admin/voucher-sets/"+c.id+"?cached=false&relations=createdByTeam,allocatedToServiceTeam").then(u=>{t.value=u.data.data}).catch(u=>{console.log(u)})}return(u,s)=>(i(),d(b,null,[_(o(g),{title:"Voucher set"}),_(p,null,{header:v(()=>[_(V)]),default:v(()=>[e("div",$,[e("h2",null,a(c.id),1),t.value.is_test?(i(),d("div",w," Test voucher set ")):l("",!0)]),e("div",S,[e("div",B,[s[0]||(s[0]=n(" Voucher set details ")),t.value.voucher_generation_finished_at?l("",!0):(i(),d("span",C,"Vouchers not generated yet."))]),e("div",E,[e("div",null,[e("div",F," $"+a(t.value.total_set_value/100),1),s[1]||(s[1]=n(" Total set value "))]),e("div",null,[e("div",j," $"+a(t.value.total_set_value_remaining/100),1),s[2]||(s[2]=n(" Total remaining value "))]),e("div",null,[e("div",q,a(t.value.num_vouchers),1),s[3]||(s[3]=n(" # Vouchers "))]),e("div",null,[e("div",A,a(t.value.num_voucher_redemptions),1),s[4]||(s[4]=n(" # Redemptions "))]),t.value.last_redemption_at?(i(),d("div",D,[s[5]||(s[5]=e("div",null," Last redeemed ",-1)),e("div",L,a(o(r).utc(t.value.last_redemption_at).fromNow()),1),e("div",M," ("+a(o(r)(t.value.last_redemption_at))+") ",1)])):l("",!0),t.value.expires_at?(i(),d("div",R,[s[6]||(s[6]=e("div",null," Expires ",-1)),e("div",Z,a(o(r).utc(t.value.expires_at).fromNow()),1),e("div",z," ("+a(o(r)(t.value.expires_at))+") ",1)])):l("",!0)])]),e("div",G,[s[7]||(s[7]=e("div",{class:"card-header"}," Created by team ",-1)),t.value.created_by_team?(i(),d("div",H,[_(o(m),{href:u.route("admin.team",{id:t.value.created_by_team_id})},{default:v(()=>[n(a(t.value.created_by_team.name),1)]),_:1},8,["href"])])):l("",!0),t.value.created_at?(i(),d("div",I," Created at: "+a(o(r).utc(t.value.created_at).fromNow())+" ("+a(o(r)(t.value.created_at))+") ",1)):l("",!0)]),e("div",J,[s[8]||(s[8]=e("div",{class:"card-header"}," Allocated to team ",-1)),t.value.allocated_to_service_team?(i(),d("div",K,[_(o(m),{href:u.route("admin.team",{id:t.value.allocated_to_service_team_id})},{default:v(()=>[n(a(t.value.allocated_to_service_team.name),1)]),_:1},8,["href"])])):l("",!0)]),e("div",O,[s[9]||(s[9]=e("div",{class:"card-header"}," Vouchers ",-1)),_(N,{"voucher-set-id":c.id},null,8,["voucher-set-id"])]),s[10]||(s[10]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{ie as default}; diff --git a/public/build/assets/VoucherSetMerchantTeamApproval-CY5mx9r_.js b/public/build/assets/VoucherSetMerchantTeamApproval-CR4Su_Hg.js similarity index 91% rename from public/build/assets/VoucherSetMerchantTeamApproval-CY5mx9r_.js rename to public/build/assets/VoucherSetMerchantTeamApproval-CR4Su_Hg.js index e3955ed2..5460b4cc 100644 --- a/public/build/assets/VoucherSetMerchantTeamApproval-CY5mx9r_.js +++ b/public/build/assets/VoucherSetMerchantTeamApproval-CR4Su_Hg.js @@ -1 +1 @@ -import{r as h,o as V,c as s,a as u,u as _,w as i,F as A,Q as B,b as r,Z as R,e as v,t as l,d as a,f as d,n as g}from"./app-NB_nCFcw.js";import{_ as j,S as w}from"./AuthenticatedLayout-ibOQYoAA.js";import{P as q}from"./PrimaryButton-CiDAOitU.js";import{_ as k}from"./SecondaryButton-DvjXhVuA.js";import{d as p}from"./dayjs.min-DM5MTW9C.js";import{r as I}from"./relativeTime-CdoPJJJp.js";import{u as M}from"./utc-CsIElMW4.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const $={key:0,class:"card"},P={key:1,class:"card"},D={class:"pt-4"},E={class:"pt-4"},N={key:0},L={key:1},O={key:2,class:"pb-4"},Y={key:0,class:"py-8"},z={key:1,class:"py-4"},F={class:"text-xs capitalize"},Z={key:0,class:"px-2 text-green-500"},G={key:1,class:"px-2 text-red-500"},ae={__name:"VoucherSetMerchantTeamApproval",props:{approvalRequestId:{type:String,required:!0},approve:{type:Boolean,default:!0}},setup(x){p.extend(I),p.extend(M);const m=x,t=h({}),o=h(!0),f=h(!1);V(()=>{T(),o.value=!!m.approve});function C(){B().props.auth.user.current_team_id===t.value.merchant_team_id&&(f.value=!0)}function T(){axios.get("/my-team-vsmtar/"+m.approvalRequestId+"?cached=false&relations=voucherSet.createdByTeam,voucherSet.allocatedToServiceTeam,merchantTeam").then(n=>{t.value=n.data.data,C()}).catch(n=>{console.log(n)})}function b(){let n="Approve";o.value||(n="Reject"),w.fire({title:o.value?"Are you sure approving?":"Are you sure rejecting?",text:'You are selecting "'+n+'" - any previous approvals or rejections will be overwritten. Sure?',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:o.value?"Approve involvement":"Reject involvement",allowOutsideClick:!1,showCancelButton:!0}).then(e=>{if(e.isConfirmed){let c={approval_status:o.value?"approved":"rejected"};axios.put("/my-team-vsmtar/"+m.approvalRequestId,c).then(y=>{w.fire({title:o.value?"Approved!":"Rejected!",text:"Thank you for processing.",icon:"success",confirmButtonColor:"#3085d6",allowOutsideClick:!1,confirmButtonText:"Go to dashboard"}).then(S=>{S.isConfirmed&&(window.location.href=route("dashboard"))})}).catch(y=>{console.log(y)})}})}return(n,e)=>(r(),s(A,null,[u(_(R),{title:"Dashboard"}),u(j,null,{header:i(()=>e[3]||(e[3]=[v(" Voucher set approval ")])),default:i(()=>[!f.value&&t.value.merchant_team?(r(),s("div",$,' This request is related to a different merchant team. Please log into team "'+l(t.value.merchant_team.name)+'". ',1)):(r(),s("div",P,[e[9]||(e[9]=a("div",{class:"card-header"}," Voucher Set ",-1)),a("div",D,[a("div",null,[e[4]||(e[4]=a("div",{class:"font-bold"}," Voucher set details ",-1)),a("div",E," ID: "+l(t.value.voucher_set_id),1),t.value.voucher_set&&t.value.voucher_set.created_by_team?(r(),s("div",N," Created by team: "+l(t.value.voucher_set.created_by_team.name),1)):d("",!0),t.value.voucher_set&&t.value.voucher_set.allocated_to_service_team?(r(),s("div",L," Service team name: "+l(t.value.voucher_set.allocated_to_service_team.name),1)):d("",!0),t.value.voucher_set?(r(),s("div",O," Voucher set total value: $"+l(t.value.voucher_set.total_set_value),1)):d("",!0)]),t.value.merchant_team?(r(),s("div",Y," You have been requested to approve your team's ("+l(t.value.merchant_team.name)+") involvement with this voucher set, which will be redeeming vouchers within the Vine platform. Approving this request means that your organisation will apply discounts as per voucher redemptions made at your shop or premises using the Vine system. Vouchers up to the value of the voucher set above may be redeemed at your premises or store. Please select your choice below. ",1)):d("",!0),t.value.approval_status!=="ready"?(r(),s("div",z,[a("div",null," You have already "+l(t.value.approval_status)+" "+l(_(p).utc(t.value.approval_status_last_updated_at).fromNow())+" so no further action is needed. ",1),a("div",F,l(t.value.approval_status)+" at ("+l(_(p)(t.value.approval_status_last_updated_at))+") ",1)])):d("",!0),a("div",null,[u(k,{onClick:e[0]||(e[0]=c=>o.value=!1),class:g(["mr-2",{"opacity-50":o.value}])},{default:i(()=>e[5]||(e[5]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-red-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"})],-1),v(" Reject ")])),_:1},8,["class"]),u(k,{onClick:e[1]||(e[1]=c=>o.value=!0),class:g(["ml-2",{"opacity-50":!o.value}])},{default:i(()=>e[6]||(e[6]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-green-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),v(" Approve ")])),_:1},8,["class"])]),a("div",null,[u(q,{onClick:e[2]||(e[2]=c=>b()),class:"mt-4"},{default:i(()=>[e[7]||(e[7]=v(" Selected: ")),o.value?(r(),s("span",Z,"APPROVED")):(r(),s("span",G,"REJECTED")),e[8]||(e[8]=v(" > Click Here To Save "))]),_:1})])])]))]),_:1})],64))}};export{ae as default}; +import{r as h,o as V,c as s,a as u,u as _,w as i,F as A,Q as B,b as r,Z as R,e as v,t as l,d as a,f as d,n as g}from"./app-DAMU3Vsb.js";import{_ as j,S as w}from"./AuthenticatedLayout-BUPPfdhf.js";import{P as q}from"./PrimaryButton-CIB81Yr_.js";import{_ as k}from"./SecondaryButton-CDQDA5dD.js";import{d as p}from"./dayjs.min-LcFuhhy0.js";import{r as I}from"./relativeTime-Bgw1Nd-u.js";import{u as M}from"./utc-D9fONLNZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const $={key:0,class:"card"},P={key:1,class:"card"},D={class:"pt-4"},E={class:"pt-4"},N={key:0},L={key:1},O={key:2,class:"pb-4"},Y={key:0,class:"py-8"},z={key:1,class:"py-4"},F={class:"text-xs capitalize"},Z={key:0,class:"px-2 text-green-500"},G={key:1,class:"px-2 text-red-500"},ae={__name:"VoucherSetMerchantTeamApproval",props:{approvalRequestId:{type:String,required:!0},approve:{type:Boolean,default:!0}},setup(x){p.extend(I),p.extend(M);const m=x,t=h({}),o=h(!0),f=h(!1);V(()=>{T(),o.value=!!m.approve});function C(){B().props.auth.user.current_team_id===t.value.merchant_team_id&&(f.value=!0)}function T(){axios.get("/my-team-vsmtar/"+m.approvalRequestId+"?cached=false&relations=voucherSet.createdByTeam,voucherSet.allocatedToServiceTeam,merchantTeam").then(n=>{t.value=n.data.data,C()}).catch(n=>{console.log(n)})}function b(){let n="Approve";o.value||(n="Reject"),w.fire({title:o.value?"Are you sure approving?":"Are you sure rejecting?",text:'You are selecting "'+n+'" - any previous approvals or rejections will be overwritten. Sure?',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:o.value?"Approve involvement":"Reject involvement",allowOutsideClick:!1,showCancelButton:!0}).then(e=>{if(e.isConfirmed){let c={approval_status:o.value?"approved":"rejected"};axios.put("/my-team-vsmtar/"+m.approvalRequestId,c).then(y=>{w.fire({title:o.value?"Approved!":"Rejected!",text:"Thank you for processing.",icon:"success",confirmButtonColor:"#3085d6",allowOutsideClick:!1,confirmButtonText:"Go to dashboard"}).then(S=>{S.isConfirmed&&(window.location.href=route("dashboard"))})}).catch(y=>{console.log(y)})}})}return(n,e)=>(r(),s(A,null,[u(_(R),{title:"Dashboard"}),u(j,null,{header:i(()=>e[3]||(e[3]=[v(" Voucher set approval ")])),default:i(()=>[!f.value&&t.value.merchant_team?(r(),s("div",$,' This request is related to a different merchant team. Please log into team "'+l(t.value.merchant_team.name)+'". ',1)):(r(),s("div",P,[e[9]||(e[9]=a("div",{class:"card-header"}," Voucher Set ",-1)),a("div",D,[a("div",null,[e[4]||(e[4]=a("div",{class:"font-bold"}," Voucher set details ",-1)),a("div",E," ID: "+l(t.value.voucher_set_id),1),t.value.voucher_set&&t.value.voucher_set.created_by_team?(r(),s("div",N," Created by team: "+l(t.value.voucher_set.created_by_team.name),1)):d("",!0),t.value.voucher_set&&t.value.voucher_set.allocated_to_service_team?(r(),s("div",L," Service team name: "+l(t.value.voucher_set.allocated_to_service_team.name),1)):d("",!0),t.value.voucher_set?(r(),s("div",O," Voucher set total value: $"+l(t.value.voucher_set.total_set_value),1)):d("",!0)]),t.value.merchant_team?(r(),s("div",Y," You have been requested to approve your team's ("+l(t.value.merchant_team.name)+") involvement with this voucher set, which will be redeeming vouchers within the Vine platform. Approving this request means that your organisation will apply discounts as per voucher redemptions made at your shop or premises using the Vine system. Vouchers up to the value of the voucher set above may be redeemed at your premises or store. Please select your choice below. ",1)):d("",!0),t.value.approval_status!=="ready"?(r(),s("div",z,[a("div",null," You have already "+l(t.value.approval_status)+" "+l(_(p).utc(t.value.approval_status_last_updated_at).fromNow())+" so no further action is needed. ",1),a("div",F,l(t.value.approval_status)+" at ("+l(_(p)(t.value.approval_status_last_updated_at))+") ",1)])):d("",!0),a("div",null,[u(k,{onClick:e[0]||(e[0]=c=>o.value=!1),class:g(["mr-2",{"opacity-50":o.value}])},{default:i(()=>e[5]||(e[5]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-red-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"})],-1),v(" Reject ")])),_:1},8,["class"]),u(k,{onClick:e[1]||(e[1]=c=>o.value=!0),class:g(["ml-2",{"opacity-50":!o.value}])},{default:i(()=>e[6]||(e[6]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-green-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),v(" Approve ")])),_:1},8,["class"])]),a("div",null,[u(q,{onClick:e[2]||(e[2]=c=>b()),class:"mt-4"},{default:i(()=>[e[7]||(e[7]=v(" Selected: ")),o.value?(r(),s("span",Z,"APPROVED")):(r(),s("span",G,"REJECTED")),e[8]||(e[8]=v(" > Click Here To Save "))]),_:1})])])]))]),_:1})],64))}};export{ae as default}; diff --git a/public/build/assets/VoucherSetNew-ByqV2Gjw.js b/public/build/assets/VoucherSetNew-ByqV2Gjw.js new file mode 100644 index 00000000..1ee67c39 --- /dev/null +++ b/public/build/assets/VoucherSetNew-ByqV2Gjw.js @@ -0,0 +1 @@ +import{S as b,_ as he}from"./AuthenticatedLayout-BUPPfdhf.js";import{Q as xe,r as d,o as fe,p as j,b as s,c as l,d as t,f as m,q as _e,h as $,w as k,e as r,l as _,m as we,s as C,F as h,g as w,t as a,u as Z,n as R,a as z,v as ge,Z as ke}from"./app-DAMU3Vsb.js";import{_ as ye}from"./AdminTopNavigation-DhGdPzlz.js";import{_ as K}from"./SecondaryButton-CDQDA5dD.js";import{P as q}from"./PrimaryButton-CIB81Yr_.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const be={class:"py-8 space-y-8"},Ce={class:"card"},Me={class:""},Se={key:0},Te={class:"flex justify-start mt-8"},je={key:0,class:"space-y-8"},Ze={id:"testSection",class:"card"},Ve={class:"card-header flex justify-between"},Be={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},$e={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ze={class:"my-8"},Fe={class:"mb-2",for:"voucherSet.is_test"},Ee={id:"serviceTeamSection",class:"card"},Ue={class:"card-header flex justify-between"},He={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Le={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ie={key:0},qe={for:"service-team-search"},Ne={class:"my-4 flex flex-wrap gap-2"},Ae={key:1},De={id:"merchantTeamSection",class:"card"},Oe={class:"card-header flex justify-between"},Re={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},We={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ye={for:"service-team-search"},Pe={class:"my-4 flex flex-wrap gap-2"},Qe={key:0,class:"mt-8"},Ge={class:"mt-2"},Ke=["onClick"],Je={id:"fundingTeamSection",class:"card"},Xe={class:"card-header flex justify-between"},et={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},tt={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},st={key:0},ot={for:"service-team-search"},lt={class:"my-4 flex flex-wrap gap-2"},nt={key:1},it={id:"totalValueSection",class:"card"},rt={class:"card-header flex justify-between"},at={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},dt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ut={class:"my-8"},vt={for:"voucherSet.total_set_value"},ct={class:"font-bold"},mt={id:"denominationsSection",class:"card"},pt={class:"card-header flex justify-between"},ht={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},xt={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ft={key:2,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},_t={class:"flex justify-between items-center"},wt={class:"mt-4"},gt={class:"mb-2 flex justify-start items-center border-b py-4"},kt=["onUpdate:modelValue"],yt={class:"pl-4"},bt={class:"text-xs"},Ct=["onUpdate:modelValue","onKeyup"],Mt={class:"pt-6"},St=["onClick"],Tt={class:"pt-8"},jt={class:"text-center mx-24 p-8 rounded-lg border-4 border-gray-200"},Zt={class:"text-xs"},Vt={key:0,class:"text-xs text-red-500 mt-4"},Bt={key:1,class:"text-xs text-green-500 mt-4"},$t={key:2,class:"text-xs text-gray-500 mt-4"},zt={id:"expirationSection",class:"card"},Ft={class:"card-header flex justify-between"},Et={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ut={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ht={class:"my-8"},Lt={class:"mt-4"},It={class:"italic"},qt={class:"mt-4"},Nt={key:0,class:"mt-8"},At={key:1,class:"text-xs italic"},Dt={id:"voucherTypeSection",class:"card"},Ot={class:"card-header flex justify-between"},Rt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Wt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Yt={class:"mt-4"},Pt={class:""},Qt=["value"],Gt={id:"voucherTemplateSection",class:"card"},Kt={class:"card-header flex justify-between"},Jt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Xt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},es={class:"grid gap-4 grid-cols-6 mt-8"},ts=["onClick"],ss=["src"],os={key:0,class:"text-xs italic text-center mt-1 text-green-500"},ls={class:"card"},ns={class:"card-header flex justify-between"},is={class:""},rs={key:0,class:"flex text-green-500 items-center"},as={key:1,class:"flex text-red-500 items-center"},ds={class:"my-8"},us={class:"list-disc space-y-6 pl-4"},vs={class:"font-bold"},cs={key:0,class:"font-bold"},ms={class:"font-bold"},ps={key:0,class:"font-bold"},hs={class:"font-bold"},xs={class:"font-bold"},fs={class:"font-bold"},_s={class:""},ws={key:0},gs={class:"font-bold"},ks={key:1},ys={class:""},bs={key:0},Cs={class:"mt-2"},Ms=["src"],Ss={key:1},Ts={class:"flex justify-end"},js={__name:"VoucherSetNewComponent",setup(J){const g=xe().props,F=d(!1),E=d(!1),N=d([]),U=d([]),M=d(""),x=d(""),H=d([]),L=d([]),V=d(""),u=d([]),I=d([]),S=d([]),f=d(""),T=d(""),W=d([]),A=d({}),D=d(0),i=d({is_test:0,allocated_to_service_team_id:"",merchant_team_ids:[],funded_by_team_id:"",voucher_template_id:"",total_set_value:0,denominations:[],expires_at:"",voucher_set_type:""});function p(){return i.value.total_set_value-Q()}function X(){b.fire({title:"Are you sure?",icon:"info",text:"This will not only create a voucher set, but also email all the merchants you selected, asking for their approval to partake in the voucher set. Are you sure you want to do this?",showConfirmButton:!0,showCancelButton:!0}).then(n=>{n.isConfirmed&&(Object.assign({},i.value),axios.post("/admin/voucher-sets",i.value).then(e=>{b.fire({title:"Nice!",icon:"success",text:e.data.data.message,showConfirmButton:!1,timer:600}).then(()=>{window.location.href="/admin/voucher-set/"+e.data.data.id})}).catch(e=>{b.fire({title:"Oops!",icon:"error",text:e.response.data.meta.message}),console.log(e)}))})}function Y(){i.value.denominations.push({value:500,colloquialCurrencyUnitValue:5,number:1})}function ee(n){n>-1&&i.value.denominations.splice(n,1)}function te(){M.value.length?U.value=N.value.filter(n=>n.name.toLowerCase().includes(M.value)):U.value=N.value}function P(){if(V.value.length){const n=H.value.filter(e=>{var y;return(y=e.merchant_team)==null?void 0:y.name.toLowerCase().includes(V.value)});L.value=n.filter(e=>!u.value.some(y=>e.merchant_team.id===y.id))}else L.value=H.value}function se(){T.value.length?S.value=I.value.filter(n=>{var e;return(e=n.service_team)==null?void 0:e.name.toLowerCase().includes(T.value)}):S.value=I.value}function oe(){axios.get("/admin/teams").then(n=>{N.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function le(n){axios.get("/admin/team-merchant-teams?relations=merchantTeam&where[]=team_id,"+n.id).then(e=>{H.value=e.data.data.data,L.value=e.data.data.data}).catch(e=>{b.fire({icon:"error",title:"Oops!",text:e.response.data.meta.message})})}function ne(){axios.get("/admin/team-service-teams?relations=serviceTeam&where[]=team_id,"+g.auth.user.current_team_id).then(n=>{I.value=n.data.data.data,S.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function ie(){axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+g.auth.user.current_team_id+"&where[]=archived_at,null").then(n=>{W.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function v(n){const e=document.getElementById(n);e&&e.scrollIntoView({behavior:"smooth"})}function re(n){x.value=n,i.value.funded_by_team_id=n.id,U.value=[],M.value=""}function ae(n){i.value.merchant_team_ids=[],i.value.merchant_team_ids.includes(n.id)||(i.value.merchant_team_ids.push(n.id),u.value=[],u.value.push(n))}function de(n){f.value=n,i.value.allocated_to_service_team_id=n.id,S.value=[],T.value="",le(n)}function ue(n){i.value.voucher_template_id===n.id?(i.value.voucher_template_id="",A.value={}):(i.value.voucher_template_id=n.id,A.value=n)}function ve(){f.value="",i.value.allocated_to_service_team_id="",S.value=Object.assign({},I.value),u.value=[],H.value=[],i.value.merchant_team_ids=[]}function ce(){E.value=!0}function Q(){let n=0;return i.value.denominations.forEach(e=>{n+=e.number*e.value}),n}function me(n){n>-1&&u.value.splice(n,1)}function pe(n){n.value=n.colloquialCurrencyUnitValue*100}return fe(()=>{oe(),ne(),ie(),Y()}),j(u,()=>{P()},{deep:!0}),j(i,()=>{F.value=i.value.total_set_value>0&&i.value.merchant_team_ids.length>0&&i.value.voucher_template_id&&i.value.allocated_to_service_team_id&&i.value.voucher_set_type&&p()>=0},{deep:!0}),j(M,()=>{te()}),j(V,()=>{P()}),j(T,()=>{se()}),j(D,n=>{i.value.total_set_value=n*100}),(n,e)=>{var y,G;return s(),l("div",null,[t("div",be,[t("div",Ce,[e[27]||(e[27]=t("div",{class:"card-header"}," Create A Voucher Set ",-1)),t("div",Me,[E.value?m("",!0):(s(),l("div",Se,e[24]||(e[24]=[t("div",{class:"my-8"}," This process will bring you through creating a voucher set. There are 8 steps to complete. ",-1),t("div",{class:"mt-8"}," The following icons are used: ",-1)]))),e[26]||(e[26]=_e('
  • Complete ‐ You have met the requirements for this section
  • Warning ‐ This section is not required, so please double check the default answer
  • Incomplete ‐ You have not met the requirements for this section
',1)),t("div",Te,[E.value?m("",!0):(s(),$(K,{key:0,onClick:e[0]||(e[0]=o=>ce())},{default:k(()=>e[25]||(e[25]=[r(" Get started ")])),_:1}))])])]),E.value?(s(),l("div",je,[t("div",Ze,[t("div",Ve,[e[30]||(e[30]=r(" Is this a test voucher set? ")),i.value.is_test?(s(),l("svg",Be,e[28]||(e[28]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",$e,e[29]||(e[29]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[32]||(e[32]=t("div",{class:"my-8"}," A test voucher set is for when you want to test the process, but the vouchers are not real. ",-1)),t("div",ze,[t("label",Fe,[_(t("input",{id:"voucherSet.is_test","onUpdate:modelValue":e[1]||(e[1]=o=>i.value.is_test=o),class:"mr-2",type:"checkbox"},null,512),[[we,i.value.is_test]]),e[31]||(e[31]=r(" YES - this is a test voucher set. "))])])]),t("div",Ee,[t("div",Ue,[e[35]||(e[35]=r(" The service team ")),f.value?(s(),l("svg",He,e[33]||(e[33]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Le,e[34]||(e[34]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[36]||(e[36]=t("div",{class:"my-8"}," Which service team are you allocating this voucher set to? ",-1)),f.value?(s(),l("div",Ae,[r(" Selected service team: "+a(f.value.name)+" ",1),f.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[3]||(e[3]=o=>ve())}," Remove ")):m("",!0)])):(s(),l("div",Ie,[t("label",qe,[_(t("input",{id:"service-team-search","onUpdate:modelValue":e[2]||(e[2]=o=>T.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter your service teams..",type:"search"},null,512),[[C,T.value]])]),t("div",Ne,[(s(!0),l(h,null,w(S.value,o=>(s(),$(q,{onClick:c=>de(o.service_team)},{default:k(()=>[r(a(o.service_team.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",De,[t("div",Oe,[e[39]||(e[39]=r(" The merchant team ")),u.value.length?(s(),l("svg",Re,e[37]||(e[37]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",We,e[38]||(e[38]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[41]||(e[41]=t("div",{class:"my-8"}," Which merchant team(s) are you assigning this voucher set to? ",-1)),t("div",null,[t("label",Ye,[_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[4]||(e[4]=o=>V.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter merchant teams..",type:"search"},null,512),[[C,V.value]])]),t("div",Pe,[(s(!0),l(h,null,w(L.value,o=>(s(),$(q,{onClick:c=>ae(o.merchant_team)},{default:k(()=>[r(a(o.merchant_team.name),1)]),_:2},1032,["onClick"]))),256))])]),u.value.length?(s(),l("div",Qe,[e[40]||(e[40]=r(" Selected merchant team(s): ")),t("div",null,[(s(!0),l(h,null,w(u.value,(o,c)=>(s(),l("div",Ge,[r(a(o.name)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:O=>me(c)}," Remove ",8,Ke)]))),256))])])):m("",!0)]),t("div",Je,[t("div",Xe,[e[44]||(e[44]=r(" The funding team ")),x.value?(s(),l("svg",et,e[42]||(e[42]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",tt,e[43]||(e[43]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[46]||(e[46]=t("div",{class:"my-8"}," Is this voucher set funded by anyone? If so, please nominate the team here. ",-1)),x.value?(s(),l("div",nt,[r(" Selected funding team: "+a(x.value.name)+" ",1),x.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[6]||(e[6]=o=>x.value="")}," Remove ")):m("",!0)])):(s(),l("div",st,[t("label",ot,[e[45]||(e[45]=r(" Search for a funding team ")),_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[5]||(e[5]=o=>M.value=o),class:"block w-1/2 md:w-1/3",type:"search"},null,512),[[C,M.value]])]),t("div",lt,[(s(!0),l(h,null,w(U.value,o=>(s(),$(q,{onClick:c=>re(o)},{default:k(()=>[r(a(o.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",it,[t("div",rt,[e[49]||(e[49]=r(" Total value ")),i.value.total_set_value>0?(s(),l("svg",at,e[47]||(e[47]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",dt,e[48]||(e[48]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",ut,[t("label",vt,[e[50]||(e[50]=r(" What will the total value of the voucher set be, in ")),t("span",ct,a((y=Z(g).auth.teamCountry)==null?void 0:y.currency_code),1),e[51]||(e[51]=r("? ")),_(t("input",{id:"voucherSet.total_set_value","onUpdate:modelValue":e[7]||(e[7]=o=>D.value=o),class:"block mt-2",type:"number"},null,512),[[C,D.value]])])])]),t("div",mt,[t("div",pt,[e[55]||(e[55]=r(" Denominations ")),p()===0?(s(),l("svg",ht,e[52]||(e[52]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):p()>0?(s(),l("svg",xt,e[53]||(e[53]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",ft,e[54]||(e[54]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",_t,[t("div",wt,[t("div",null," Available to assign: "+a((i.value.total_set_value/100).toFixed(2))+" "+a((G=Z(g).auth.teamCountry)==null?void 0:G.currency_code),1),t("div",{class:R({"text-red":p()<0})}," Remaining: "+a((p()/100).toFixed(2)),3),t("div",null,[(s(!0),l(h,null,w(i.value.denominations,(o,c)=>{var O;return s(),l("div",gt,[t("div",null,[e[56]||(e[56]=t("div",{class:"text-xs"}," Create ",-1)),t("div",null,[_(t("input",{"onUpdate:modelValue":B=>o.number=B,class:"border rounded p-1",type:"number"},null,8,kt),[[C,o.number]])])]),t("div",yt,[t("div",bt," of "+a((O=Z(g).auth.teamCountry)==null?void 0:O.currency_code),1),t("div",null,[_(t("input",{"onUpdate:modelValue":B=>o.colloquialCurrencyUnitValue=B,class:"border rounded p-1",onKeyup:B=>pe(o),step:"1",type:"number"},null,40,Ct),[[C,o.colloquialCurrencyUnitValue]])])]),t("div",Mt,[c!==0?(s(),l("button",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:B=>ee(c)},e[57]||(e[57]=[t("i",{class:"fa fa-times"},null,-1),r(" Remove ")]),8,St)):m("",!0)])])}),256)),t("div",Tt,[z(K,{onClick:e[8]||(e[8]=o=>Y())},{default:k(()=>e[58]||(e[58]=[r(" Add row "),t("i",{class:"fa fa-plus"},null,-1)])),_:1})])])]),t("div",jt,[e[59]||(e[59]=t("div",{class:"text-2xl"}," Total assigned: ",-1)),t("div",{class:R([{"text-green-500":p()>=0,"text-red-500":p()<0},"text-3xl mt-4"])},[r(a((Q()/100).toFixed(2))+" ",1),t("div",Zt," out of "+a((i.value.total_set_value/100).toFixed(2)),1)],2),p()<0?(s(),l("div",Vt," - over budget - ")):p()>0?(s(),l("div",Bt,a((p()/100).toFixed(2))+" remaining ",1)):(s(),l("div",$t," Voucher fully allocated "))])])]),t("div",zt,[t("div",Ft,[e[62]||(e[62]=r(" Expiration ")),i.value.expires_at?(s(),l("svg",Et,e[60]||(e[60]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Ut,e[61]||(e[61]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Ht,[e[64]||(e[64]=r(" When will these vouchers expire? ")),t("div",Lt,[t("label",It,[e[63]||(e[63]=r(" Select expiry date ")),_(t("input",{"onUpdate:modelValue":e[9]||(e[9]=o=>i.value.expires_at=o),class:"rounded",type:"date"},null,512),[[C,i.value.expires_at]])])]),t("div",qt,[i.value.expires_at?(s(),l("div",Nt,[r(" Selected expiry date: "+a(i.value.expires_at)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[10]||(e[10]=o=>i.value.expires_at="")}," Remove ")])):(s(),l("div",At," Not selecting an expiry date will mean vouchers stay valid forever. "))])])]),t("div",Dt,[t("div",Ot,[e[67]||(e[67]=r(" Type ")),i.value.voucher_set_type?(s(),l("svg",Rt,e[65]||(e[65]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Wt,e[66]||(e[66]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Yt,[t("label",Pt,[e[69]||(e[69]=r(" Choose the type of the voucher set ")),_(t("select",{"onUpdate:modelValue":e[11]||(e[11]=o=>i.value.voucher_set_type=o),class:"ml-2"},[e[68]||(e[68]=t("option",{value:""},"Select a type",-1)),(s(!0),l(h,null,w(Z(g).voucherSetTypes,o=>(s(),l("option",{value:o},a(o),9,Qt))),256))],512),[[ge,i.value.voucher_set_type]])])])]),t("div",Gt,[t("div",Kt,[e[72]||(e[72]=r(" Template ")),i.value.voucher_template_id?(s(),l("svg",Jt,e[70]||(e[70]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Xt,e[71]||(e[71]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",es,[(s(!0),l(h,null,w(W.value,o=>(s(),l("div",null,[t("div",{class:R([{"border-green-500":o.id===i.value.voucher_template_id,"opacity-40":i.value.voucher_template_id&&o.id!==i.value.voucher_template_id},"hover:cursor-pointer border-2 rounded"]),onClick:c=>ue(o)},[t("img",{src:o.example_template_image_url,alt:"",class:"border rounded"},null,8,ss)],10,ts),o.id===i.value.voucher_template_id?(s(),l("div",os," Selected! ")):m("",!0)]))),256))])])])):m("",!0),t("div",ls,[t("div",ns,[e[75]||(e[75]=r(" Review ")),t("div",is,[F.value?(s(),l("div",rs,e[73]||(e[73]=[r(" You have completed all the required sections "),t("svg",{class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(s(),l("div",as,e[74]||(e[74]=[r(" You have required sections that still need completing "),t("svg",{class:"size-6 fill-red-100 ml-2",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])))])]),e[89]||(e[89]=t("div",{class:"my-8"},[t("div",null," Please review the following details for your voucher set. ")],-1)),t("div",ds,[t("ul",us,[t("li",null,[e[76]||(e[76]=r(" The voucher set is ")),t("span",vs,a(i.value.is_test?"a test":"not a test"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[12]||(e[12]=o=>v("testSection"))}," Edit ")]),t("li",null,[r(" It has "+a(f.value?"":" not yet ")+" been allocated to service team ",1),f.value?(s(),l("span",cs,a(f.value.name),1)):m("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[13]||(e[13]=o=>v("serviceTeamSection"))}," Edit ")]),t("li",null,[r(" It has "+a(u.value.length?"":" not yet ")+" been assigned to a merchant team(s) ",1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[14]||(e[14]=o=>v("merchantTeamSection"))}," Edit "),(s(!0),l(h,null,w(u.value,o=>(s(),l("div",{key:o.id,class:"my-1 font-bold"},a(o.name),1))),128))]),t("li",null,[e[77]||(e[77]=r(" It has ")),t("span",ms,a(x.value?"":" not "),1),e[78]||(e[78]=r(" been associated to funding team ")),x.value?(s(),l("span",ps,a(x.value.name),1)):m("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[15]||(e[15]=o=>v("fundingTeamSection"))}," Edit ")]),t("li",null,[e[79]||(e[79]=r(" It has a total value of: ")),t("span",hs,a((i.value.total_set_value/100).toFixed(2)),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[16]||(e[16]=o=>v("totalValueSection"))}," Edit ")]),t("li",null,[e[80]||(e[80]=r(" Divided into denominations of: ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[17]||(e[17]=o=>v("denominationsSection"))}," Edit "),t("ul",null,[(s(!0),l(h,null,w(i.value.denominations,o=>{var c;return s(),l("li",xs,a(o.number)+" "+a(o.number===1?"unit":"units")+" of "+a(o.value)+" "+a((c=Z(g).auth.teamCountry)==null?void 0:c.currency_code),1)}),256))])]),t("li",null,[e[81]||(e[81]=r(" The voucher ")),t("span",fs,a(i.value.expires_at?"expires at "+i.value.expires_at:"does not expire"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[18]||(e[18]=o=>v("expirationSection"))}," Edit ")]),t("li",_s,[i.value.voucher_set_type?(s(),l("div",ws,[e[82]||(e[82]=r(" Has a type of ")),t("span",gs,a(i.value.voucher_set_type),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[19]||(e[19]=o=>v("expirationSection"))}," Edit ")])):(s(),l("div",ks,[e[83]||(e[83]=r(" Does ")),e[84]||(e[84]=t("span",{class:"font-bold"},"not yet have a type",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[20]||(e[20]=o=>v("expirationSection"))}," Edit ")]))]),t("li",ys,[i.value.voucher_template_id?(s(),l("div",bs,[e[85]||(e[85]=r(" Is using this voucher template ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[21]||(e[21]=o=>v("voucherTemplateSection"))}," Edit "),t("div",Cs,[t("img",{src:A.value.example_template_image_url,alt:"",class:"border rounded max-h-48"},null,8,Ms)])])):(s(),l("div",Ss,[e[86]||(e[86]=r(" Does ")),e[87]||(e[87]=t("span",{class:"font-bold"},"not yet have a template",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[22]||(e[22]=o=>v("voucherTemplateSection"))}," Edit ")]))])])]),t("div",Ts,[F.value?(s(),$(q,{key:0,onClick:e[23]||(e[23]=o=>X())},{default:k(()=>e[88]||(e[88]=[r(" Generate! ")])),_:1})):m("",!0)])])])])}}},Us={__name:"VoucherSetNew",setup(J){return(g,F)=>(s(),l(h,null,[z(Z(ke),{title:"Vouchers"}),z(he,null,{header:k(()=>[z(ye)]),default:k(()=>[z(js)]),_:1})],64))}};export{Us as default}; diff --git a/public/build/assets/VoucherSetNew-CQJWXEMg.js b/public/build/assets/VoucherSetNew-CQJWXEMg.js deleted file mode 100644 index bec6c1fb..00000000 --- a/public/build/assets/VoucherSetNew-CQJWXEMg.js +++ /dev/null @@ -1 +0,0 @@ -import{S as b,_ as me}from"./AuthenticatedLayout-ibOQYoAA.js";import{Q as pe,r as d,o as he,p as B,b as s,c as l,d as t,f as m,q as xe,h as V,w as k,e as r,l as _,m as fe,s as C,F as h,g as w,t as a,u as j,n as q,a as $,v as _e,Z as we}from"./app-NB_nCFcw.js";import{_ as ge}from"./AdminTopNavigation-n1SbFb1e.js";import{_ as Q}from"./SecondaryButton-DvjXhVuA.js";import{P as N}from"./PrimaryButton-CiDAOitU.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const ke={class:"py-8 space-y-8"},ye={class:"card"},be={class:""},Ce={key:0},Me={class:"flex justify-start mt-8"},Te={key:0,class:"space-y-8"},Se={id:"testSection",class:"card"},je={class:"card-header flex justify-between"},Ze={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Be={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ve={class:"my-8"},$e={class:"mb-2",for:"voucherSet.is_test"},ze={id:"serviceTeamSection",class:"card"},Ee={class:"card-header flex justify-between"},He={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Le={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Fe={key:0},Ie={for:"service-team-search"},Ue={class:"my-4 flex flex-wrap gap-2"},Ne={key:1},Ae={id:"merchantTeamSection",class:"card"},De={class:"card-header flex justify-between"},Re={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},qe={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Oe={for:"service-team-search"},We={class:"my-4 flex flex-wrap gap-2"},Ye={key:0,class:"mt-8"},Pe={class:"mt-2"},Qe=["onClick"],Ge={id:"fundingTeamSection",class:"card"},Je={class:"card-header flex justify-between"},Ke={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Xe={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},et={key:0},tt={for:"service-team-search"},st={class:"my-4 flex flex-wrap gap-2"},ot={key:1},lt={id:"totalValueSection",class:"card"},nt={class:"card-header flex justify-between"},it={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},rt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},at={class:"my-8"},dt={for:"voucherSet.total_set_value"},ut={class:"font-bold"},vt={id:"denominationsSection",class:"card"},ct={class:"card-header flex justify-between"},mt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},pt={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ht={key:2,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},xt={class:"flex justify-between items-center"},ft={class:"mt-4"},_t={class:"mb-2 flex justify-start items-center border-b py-4"},wt=["onUpdate:modelValue"],gt={class:"pl-4"},kt={class:"text-xs"},yt=["onUpdate:modelValue"],bt={class:"pt-6"},Ct=["onClick"],Mt={class:"pt-8"},Tt={class:"text-center mx-24 p-8 rounded-lg border-4 border-gray-200"},St={class:"text-xs"},jt={key:0,class:"text-xs text-red-500 mt-4"},Zt={key:1,class:"text-xs text-green-500 mt-4"},Bt={key:2,class:"text-xs text-gray-500 mt-4"},Vt={id:"expirationSection",class:"card"},$t={class:"card-header flex justify-between"},zt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Et={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ht={class:"my-8"},Lt={class:"mt-4"},Ft={class:"italic"},It={class:"mt-4"},Ut={key:0,class:"mt-8"},Nt={key:1,class:"text-xs italic"},At={id:"voucherTypeSection",class:"card"},Dt={class:"card-header flex justify-between"},Rt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},qt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ot={class:"mt-4"},Wt={class:""},Yt=["value"],Pt={id:"voucherTemplateSection",class:"card"},Qt={class:"card-header flex justify-between"},Gt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Jt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Kt={class:"grid gap-4 grid-cols-6 mt-8"},Xt=["onClick"],es=["src"],ts={key:0,class:"text-xs italic text-center mt-1 text-green-500"},ss={class:"card"},os={class:"card-header flex justify-between"},ls={class:""},ns={key:0,class:"flex text-green-500 items-center"},is={key:1,class:"flex text-red-500 items-center"},rs={class:"my-8"},as={class:"list-disc space-y-6 pl-4"},ds={class:"font-bold"},us={key:0,class:"font-bold"},vs={class:"font-bold"},cs={key:0,class:"font-bold"},ms={class:"font-bold"},ps={class:"font-bold"},hs={class:"font-bold"},xs={class:""},fs={key:0},_s={class:"font-bold"},ws={key:1},gs={class:""},ks={key:0},ys={class:"mt-2"},bs=["src"],Cs={key:1},Ms={class:"flex justify-end"},Ts={__name:"VoucherSetNewComponent",setup(G){const g=pe().props,z=d(!1),E=d(!1),A=d([]),H=d([]),M=d(""),x=d(""),L=d([]),F=d([]),Z=d(""),u=d([]),I=d([]),T=d([]),f=d(""),S=d(""),O=d([]),D=d({}),n=d({is_test:0,allocated_to_service_team_id:"",merchant_team_ids:[],funded_by_team_id:"",voucher_template_id:"",total_set_value:0,denominations:[{number:1,value:5}],expires_at:"",voucher_set_type:""});function p(){return n.value.total_set_value-Y()}function J(){b.fire({title:"Are you sure?",icon:"info",text:"This will not only create a voucher set, but also email all the merchants you selected, asking for their approval to partake in the voucher set. Are you sure you want to do this?",showConfirmButton:!0,showCancelButton:!0}).then(i=>{i.isConfirmed&&axios.post("/admin/voucher-sets",n.value).then(e=>{b.fire({title:"Nice!",icon:"success",text:e.data.data.message,showConfirmButton:!1,timer:600}).then(()=>{window.location.href="/admin/voucher-set/"+e.data.data.id})}).catch(e=>{b.fire({title:"Oops!",icon:"error",text:e.response.data.meta.message}),console.log(e)})})}function K(){n.value.denominations.push({value:5,number:1})}function X(i){i>-1&&n.value.denominations.splice(i,1)}function ee(){M.value.length?H.value=A.value.filter(i=>i.name.toLowerCase().includes(M.value)):H.value=A.value}function W(){if(Z.value.length){const i=L.value.filter(e=>{var y;return(y=e.merchant_team)==null?void 0:y.name.toLowerCase().includes(Z.value)});F.value=i.filter(e=>!u.value.some(y=>e.merchant_team.id===y.id))}else F.value=L.value}function te(){S.value.length?T.value=I.value.filter(i=>{var e;return(e=i.service_team)==null?void 0:e.name.toLowerCase().includes(S.value)}):T.value=I.value}function se(){axios.get("/admin/teams").then(i=>{A.value=i.data.data.data}).catch(i=>{b.fire({icon:"error",title:"Oops!",text:i.response.data.meta.message})})}function oe(i){axios.get("/admin/team-merchant-teams?relations=merchantTeam&where[]=team_id,"+i.id).then(e=>{L.value=e.data.data.data,F.value=e.data.data.data}).catch(e=>{b.fire({icon:"error",title:"Oops!",text:e.response.data.meta.message})})}function le(){axios.get("/admin/team-service-teams?relations=serviceTeam&where[]=team_id,"+g.auth.user.current_team_id).then(i=>{I.value=i.data.data.data,T.value=i.data.data.data}).catch(i=>{b.fire({icon:"error",title:"Oops!",text:i.response.data.meta.message})})}function ne(){axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+g.auth.user.current_team_id+"&where[]=archived_at,null").then(i=>{O.value=i.data.data.data}).catch(i=>{b.fire({icon:"error",title:"Oops!",text:i.response.data.meta.message})})}function v(i){const e=document.getElementById(i);e&&e.scrollIntoView({behavior:"smooth"})}function ie(i){x.value=i,n.value.funded_by_team_id=i.id,H.value=[],M.value=""}function re(i){n.value.merchant_team_ids=[],n.value.merchant_team_ids.includes(i.id)||(n.value.merchant_team_ids.push(i.id),u.value=[],u.value.push(i))}function ae(i){f.value=i,n.value.allocated_to_service_team_id=i.id,T.value=[],S.value="",oe(i)}function de(i){n.value.voucher_template_id===i.id?(n.value.voucher_template_id="",D.value={}):(n.value.voucher_template_id=i.id,D.value=i)}function ue(){f.value="",n.value.allocated_to_service_team_id="",T.value=Object.assign({},I.value),u.value=[],L.value=[],n.value.merchant_team_ids=[]}function ve(){E.value=!0}function Y(){let i=0;return n.value.denominations.forEach(e=>{i+=e.number*e.value}),i}function ce(i){i>-1&&u.value.splice(i,1)}return he(()=>{se(),le(),ne()}),B(u,()=>{W()},{deep:!0}),B(n,()=>{z.value=n.value.total_set_value>0&&n.value.merchant_team_ids.length>0&&n.value.voucher_template_id&&n.value.allocated_to_service_team_id&&n.value.voucher_set_type&&p()>=0},{deep:!0}),B(M,()=>{ee()}),B(Z,()=>{W()}),B(S,()=>{te()}),(i,e)=>{var y,P;return s(),l("div",null,[t("div",ke,[t("div",ye,[e[27]||(e[27]=t("div",{class:"card-header"}," Create A Voucher Set ",-1)),t("div",be,[E.value?m("",!0):(s(),l("div",Ce,e[24]||(e[24]=[t("div",{class:"my-8"}," This process will bring you through creating a voucher set. There are 8 steps to complete. ",-1),t("div",{class:"mt-8"}," The following icons are used: ",-1)]))),e[26]||(e[26]=xe('
  • Complete ‐ You have met the requirements for this section
  • Warning ‐ This section is not required, so please double check the default answer
  • Incomplete ‐ You have not met the requirements for this section
',1)),t("div",Me,[E.value?m("",!0):(s(),V(Q,{key:0,onClick:e[0]||(e[0]=o=>ve())},{default:k(()=>e[25]||(e[25]=[r(" Get started ")])),_:1}))])])]),E.value?(s(),l("div",Te,[t("div",Se,[t("div",je,[e[30]||(e[30]=r(" Is this a test voucher set? ")),n.value.is_test?(s(),l("svg",Ze,e[28]||(e[28]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Be,e[29]||(e[29]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[32]||(e[32]=t("div",{class:"my-8"}," A test voucher set is for when you want to test the process, but the vouchers are not real. ",-1)),t("div",Ve,[t("label",$e,[_(t("input",{id:"voucherSet.is_test","onUpdate:modelValue":e[1]||(e[1]=o=>n.value.is_test=o),class:"mr-2",type:"checkbox"},null,512),[[fe,n.value.is_test]]),e[31]||(e[31]=r(" YES - this is a test voucher set. "))])])]),t("div",ze,[t("div",Ee,[e[35]||(e[35]=r(" The service team ")),f.value?(s(),l("svg",He,e[33]||(e[33]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Le,e[34]||(e[34]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[36]||(e[36]=t("div",{class:"my-8"}," Which service team are you allocating this voucher set to? ",-1)),f.value?(s(),l("div",Ne,[r(" Selected service team: "+a(f.value.name)+" ",1),f.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[3]||(e[3]=o=>ue())}," Remove ")):m("",!0)])):(s(),l("div",Fe,[t("label",Ie,[_(t("input",{id:"service-team-search","onUpdate:modelValue":e[2]||(e[2]=o=>S.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter your service teams..",type:"search"},null,512),[[C,S.value]])]),t("div",Ue,[(s(!0),l(h,null,w(T.value,o=>(s(),V(N,{onClick:c=>ae(o.service_team)},{default:k(()=>[r(a(o.service_team.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",Ae,[t("div",De,[e[39]||(e[39]=r(" The merchant team ")),u.value.length?(s(),l("svg",Re,e[37]||(e[37]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",qe,e[38]||(e[38]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[41]||(e[41]=t("div",{class:"my-8"}," Which merchant team(s) are you assigning this voucher set to? ",-1)),t("div",null,[t("label",Oe,[_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[4]||(e[4]=o=>Z.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter merchant teams..",type:"search"},null,512),[[C,Z.value]])]),t("div",We,[(s(!0),l(h,null,w(F.value,o=>(s(),V(N,{onClick:c=>re(o.merchant_team)},{default:k(()=>[r(a(o.merchant_team.name),1)]),_:2},1032,["onClick"]))),256))])]),u.value.length?(s(),l("div",Ye,[e[40]||(e[40]=r(" Selected merchant team(s): ")),t("div",null,[(s(!0),l(h,null,w(u.value,(o,c)=>(s(),l("div",Pe,[r(a(o.name)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:R=>ce(c)}," Remove ",8,Qe)]))),256))])])):m("",!0)]),t("div",Ge,[t("div",Je,[e[44]||(e[44]=r(" The funding team ")),x.value?(s(),l("svg",Ke,e[42]||(e[42]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Xe,e[43]||(e[43]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[46]||(e[46]=t("div",{class:"my-8"}," Is this voucher set funded by anyone? If so, please nominate the team here. ",-1)),x.value?(s(),l("div",ot,[r(" Selected funding team: "+a(x.value.name)+" ",1),x.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[6]||(e[6]=o=>x.value="")}," Remove ")):m("",!0)])):(s(),l("div",et,[t("label",tt,[e[45]||(e[45]=r(" Search for a funding team ")),_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[5]||(e[5]=o=>M.value=o),class:"block w-1/2 md:w-1/3",type:"search"},null,512),[[C,M.value]])]),t("div",st,[(s(!0),l(h,null,w(H.value,o=>(s(),V(N,{onClick:c=>ie(o)},{default:k(()=>[r(a(o.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",lt,[t("div",nt,[e[49]||(e[49]=r(" Total value ")),n.value.total_set_value>0?(s(),l("svg",it,e[47]||(e[47]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",rt,e[48]||(e[48]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",at,[t("label",dt,[e[50]||(e[50]=r(" What will the total value of the voucher set be, in ")),t("span",ut,a((y=j(g).auth.teamCountry)==null?void 0:y.currency_code),1),e[51]||(e[51]=r("? ")),_(t("input",{id:"voucherSet.total_set_value","onUpdate:modelValue":e[7]||(e[7]=o=>n.value.total_set_value=o),class:"block mt-2",type:"number"},null,512),[[C,n.value.total_set_value]])])])]),t("div",vt,[t("div",ct,[e[55]||(e[55]=r(" Denominations ")),p()===0?(s(),l("svg",mt,e[52]||(e[52]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):p()>0?(s(),l("svg",pt,e[53]||(e[53]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",ht,e[54]||(e[54]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",xt,[t("div",ft,[t("div",null," Available to assign: "+a(n.value.total_set_value)+" "+a((P=j(g).auth.teamCountry)==null?void 0:P.currency_code),1),t("div",{class:q({"text-red":p()<0})}," Remaining: "+a(p()),3),t("div",null,[(s(!0),l(h,null,w(n.value.denominations,(o,c)=>{var R;return s(),l("div",_t,[t("div",null,[e[56]||(e[56]=t("div",{class:"text-xs"}," Create ",-1)),t("div",null,[_(t("input",{"onUpdate:modelValue":U=>o.number=U,class:"border rounded p-1",type:"number"},null,8,wt),[[C,o.number]])])]),t("div",gt,[t("div",kt," of "+a((R=j(g).auth.teamCountry)==null?void 0:R.currency_code),1),t("div",null,[_(t("input",{"onUpdate:modelValue":U=>o.value=U,class:"border rounded p-1",step:"1",type:"number"},null,8,yt),[[C,o.value]])])]),t("div",bt,[c!==0?(s(),l("button",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:U=>X(c)},e[57]||(e[57]=[t("i",{class:"fa fa-times"},null,-1),r(" Remove ")]),8,Ct)):m("",!0)])])}),256)),t("div",Mt,[$(Q,{onClick:e[8]||(e[8]=o=>K())},{default:k(()=>e[58]||(e[58]=[r(" Add row "),t("i",{class:"fa fa-plus"},null,-1)])),_:1})])])]),t("div",Tt,[e[59]||(e[59]=t("div",{class:"text-2xl"}," Total assigned: ",-1)),t("div",{class:q([{"text-green-500":p()>=0,"text-red-500":p()<0},"text-3xl mt-4"])},[r(a(Y())+" ",1),t("div",St," out of "+a(n.value.total_set_value),1)],2),p()<0?(s(),l("div",jt," - over budget - ")):p()>0?(s(),l("div",Zt,a(p())+" remaining ",1)):(s(),l("div",Bt," Voucher fully allocated "))])])]),t("div",Vt,[t("div",$t,[e[62]||(e[62]=r(" Expiration ")),n.value.expires_at?(s(),l("svg",zt,e[60]||(e[60]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Et,e[61]||(e[61]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Ht,[e[64]||(e[64]=r(" When will these vouchers expire? ")),t("div",Lt,[t("label",Ft,[e[63]||(e[63]=r(" Select expiry date ")),_(t("input",{"onUpdate:modelValue":e[9]||(e[9]=o=>n.value.expires_at=o),class:"rounded",type:"date"},null,512),[[C,n.value.expires_at]])])]),t("div",It,[n.value.expires_at?(s(),l("div",Ut,[r(" Selected expiry date: "+a(n.value.expires_at)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[10]||(e[10]=o=>n.value.expires_at="")}," Remove ")])):(s(),l("div",Nt," Not selecting an expiry date will mean vouchers stay valid forever. "))])])]),t("div",At,[t("div",Dt,[e[67]||(e[67]=r(" Type ")),n.value.voucher_set_type?(s(),l("svg",Rt,e[65]||(e[65]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",qt,e[66]||(e[66]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Ot,[t("label",Wt,[e[69]||(e[69]=r(" Choose the type of the voucher set ")),_(t("select",{"onUpdate:modelValue":e[11]||(e[11]=o=>n.value.voucher_set_type=o),class:"ml-2"},[e[68]||(e[68]=t("option",{value:""},"Select a type",-1)),(s(!0),l(h,null,w(j(g).voucherSetTypes,o=>(s(),l("option",{value:o},a(o),9,Yt))),256))],512),[[_e,n.value.voucher_set_type]])])])]),t("div",Pt,[t("div",Qt,[e[72]||(e[72]=r(" Template ")),n.value.voucher_template_id?(s(),l("svg",Gt,e[70]||(e[70]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Jt,e[71]||(e[71]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Kt,[(s(!0),l(h,null,w(O.value,o=>(s(),l("div",null,[t("div",{class:q([{"border-green-500":o.id===n.value.voucher_template_id,"opacity-40":n.value.voucher_template_id&&o.id!==n.value.voucher_template_id},"hover:cursor-pointer border-2 rounded"]),onClick:c=>de(o)},[t("img",{src:o.example_template_image_url,alt:"",class:"border rounded"},null,8,es)],10,Xt),o.id===n.value.voucher_template_id?(s(),l("div",ts," Selected! ")):m("",!0)]))),256))])])])):m("",!0),t("div",ss,[t("div",os,[e[75]||(e[75]=r(" Review ")),t("div",ls,[z.value?(s(),l("div",ns,e[73]||(e[73]=[r(" You have completed all the required sections "),t("svg",{class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(s(),l("div",is,e[74]||(e[74]=[r(" You have required sections that still need completing "),t("svg",{class:"size-6 fill-red-100 ml-2",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])))])]),e[89]||(e[89]=t("div",{class:"my-8"},[t("div",null," Please review the following details for your voucher set. ")],-1)),t("div",rs,[t("ul",as,[t("li",null,[e[76]||(e[76]=r(" The voucher set is ")),t("span",ds,a(n.value.is_test?"a test":"not a test"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[12]||(e[12]=o=>v("testSection"))}," Edit ")]),t("li",null,[r(" It has "+a(f.value?"":" not yet ")+" been allocated to service team ",1),f.value?(s(),l("span",us,a(f.value.name),1)):m("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[13]||(e[13]=o=>v("serviceTeamSection"))}," Edit ")]),t("li",null,[r(" It has "+a(u.value.length?"":" not yet ")+" been assigned to a merchant team(s) ",1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[14]||(e[14]=o=>v("merchantTeamSection"))}," Edit "),(s(!0),l(h,null,w(u.value,o=>(s(),l("div",{key:o.id,class:"my-1 font-bold"},a(o.name),1))),128))]),t("li",null,[e[77]||(e[77]=r(" It has ")),t("span",vs,a(x.value?"":" not "),1),e[78]||(e[78]=r(" been associated to funding team ")),x.value?(s(),l("span",cs,a(x.value.name),1)):m("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[15]||(e[15]=o=>v("fundingTeamSection"))}," Edit ")]),t("li",null,[e[79]||(e[79]=r(" It has a total value of: ")),t("span",ms,a(n.value.total_set_value),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[16]||(e[16]=o=>v("totalValueSection"))}," Edit ")]),t("li",null,[e[80]||(e[80]=r(" Divided into denominations of: ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[17]||(e[17]=o=>v("denominationsSection"))}," Edit "),t("ul",null,[(s(!0),l(h,null,w(n.value.denominations,o=>{var c;return s(),l("li",ps,a(o.number)+" "+a(o.number===1?"unit":"units")+" of "+a(o.value)+" "+a((c=j(g).auth.teamCountry)==null?void 0:c.currency_code),1)}),256))])]),t("li",null,[e[81]||(e[81]=r(" The voucher ")),t("span",hs,a(n.value.expires_at?"expires at "+n.value.expires_at:"does not expire"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[18]||(e[18]=o=>v("expirationSection"))}," Edit ")]),t("li",xs,[n.value.voucher_set_type?(s(),l("div",fs,[e[82]||(e[82]=r(" Has a type of ")),t("span",_s,a(n.value.voucher_set_type),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[19]||(e[19]=o=>v("expirationSection"))}," Edit ")])):(s(),l("div",ws,[e[83]||(e[83]=r(" Does ")),e[84]||(e[84]=t("span",{class:"font-bold"},"not yet have a type",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[20]||(e[20]=o=>v("expirationSection"))}," Edit ")]))]),t("li",gs,[n.value.voucher_template_id?(s(),l("div",ks,[e[85]||(e[85]=r(" Is using this voucher template ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[21]||(e[21]=o=>v("voucherTemplateSection"))}," Edit "),t("div",ys,[t("img",{src:D.value.example_template_image_url,alt:"",class:"border rounded max-h-48"},null,8,bs)])])):(s(),l("div",Cs,[e[86]||(e[86]=r(" Does ")),e[87]||(e[87]=t("span",{class:"font-bold"},"not yet have a template",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[22]||(e[22]=o=>v("voucherTemplateSection"))}," Edit ")]))])])]),t("div",Ms,[z.value?(s(),V(N,{key:0,onClick:e[23]||(e[23]=o=>J())},{default:k(()=>e[88]||(e[88]=[r(" Generate! ")])),_:1})):m("",!0)])])])])}}},Es={__name:"VoucherSetNew",setup(G){return(g,z)=>(s(),l(h,null,[$(j(we),{title:"Vouchers"}),$(me,null,{header:k(()=>[$(ge)]),default:k(()=>[$(Ts)]),_:1})],64))}};export{Es as default}; diff --git a/public/build/assets/VoucherSets-CVZed9zf.js b/public/build/assets/VoucherSets-DE1EHO3P.js similarity index 51% rename from public/build/assets/VoucherSets-CVZed9zf.js rename to public/build/assets/VoucherSets-DE1EHO3P.js index 77361112..f8b0ddaf 100644 --- a/public/build/assets/VoucherSets-CVZed9zf.js +++ b/public/build/assets/VoucherSets-DE1EHO3P.js @@ -1 +1 @@ -import{_ as a}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as i,a as e,u as m,w as s,F as n,b as u,Z as l,d as t,e as _}from"./app-NB_nCFcw.js";import{_ as c}from"./AdminTopNavigation-n1SbFb1e.js";import{_ as d}from"./VoucherSetsComponent-ChybDy2V.js";import{P as f}from"./PrimaryButton-CiDAOitU.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-C4rhva1F.js";import"./SecondaryButton-DvjXhVuA.js";import"./dayjs.min-DM5MTW9C.js";import"./relativeTime-CdoPJJJp.js";import"./utc-CsIElMW4.js";const p={class:"card"},h={class:"card-header flex justify-between items-center"},v=["href"],g={__name:"VoucherSets",setup(V){return(o,r)=>(u(),i(n,null,[e(m(l),{title:"Voucher sets"}),e(a,null,{header:s(()=>[e(c)]),default:s(()=>[t("div",p,[t("div",h,[r[1]||(r[1]=t("div",null," Voucher Sets ",-1)),t("div",null,[t("a",{href:o.route("admin.voucher-sets.new")},[e(f,null,{default:s(()=>r[0]||(r[0]=[_(" Create voucher set ")])),_:1})],8,v)])]),e(d)])]),_:1})],64))}};export{g as default}; +import{_ as a}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as i,a as e,u as m,w as s,F as n,b as u,Z as l,d as t,e as _}from"./app-DAMU3Vsb.js";import{_ as c}from"./AdminTopNavigation-DhGdPzlz.js";import{_ as d}from"./VoucherSetsComponent-BkEVj6A7.js";import{P as f}from"./PrimaryButton-CIB81Yr_.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-CoSTMxRA.js";import"./SecondaryButton-CDQDA5dD.js";import"./dayjs.min-LcFuhhy0.js";import"./relativeTime-Bgw1Nd-u.js";import"./utc-D9fONLNZ.js";const p={class:"card"},h={class:"card-header flex justify-between items-center"},v=["href"],g={__name:"VoucherSets",setup(V){return(o,r)=>(u(),i(n,null,[e(m(l),{title:"Voucher sets"}),e(a,null,{header:s(()=>[e(c)]),default:s(()=>[t("div",p,[t("div",h,[r[1]||(r[1]=t("div",null," Voucher Sets ",-1)),t("div",null,[t("a",{href:o.route("admin.voucher-sets.new")},[e(f,null,{default:s(()=>r[0]||(r[0]=[_(" Create voucher set ")])),_:1})],8,v)])]),e(d)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/VoucherSetsComponent-ChybDy2V.js b/public/build/assets/VoucherSetsComponent-BkEVj6A7.js similarity index 88% rename from public/build/assets/VoucherSetsComponent-ChybDy2V.js rename to public/build/assets/VoucherSetsComponent-BkEVj6A7.js index f3b054ff..130d70fd 100644 --- a/public/build/assets/VoucherSetsComponent-ChybDy2V.js +++ b/public/build/assets/VoucherSetsComponent-BkEVj6A7.js @@ -1 +1 @@ -import{r as f,o as p,b as a,c as o,F as h,g,h as y,w,d as t,t as s,f as d,u,i as x,a as k}from"./app-NB_nCFcw.js";import{P as b}from"./PaginatorComponent-C4rhva1F.js";import{d as n}from"./dayjs.min-DM5MTW9C.js";import{r as B}from"./relativeTime-CdoPJJJp.js";import{u as V}from"./utc-CsIElMW4.js";const C={key:0},T={class:"border-b flex justify-between items-center py-2 sm:p-2"},j={class:"text-xs"},I={class:"font-bold text-sm"},N={key:0,class:"text-red-500 font-bold"},P={key:1},$={key:2},q={key:3},D={class:"flex justify-end items-center mt-4"},F={class:"w-full lg:w-1/3"},G={__name:"VoucherSetsComponent",props:{teamId:{required:!1,default:null},filterVoucherSets:{required:!1,default:null}},setup(v){n.extend(B),n.extend(V);const r=v,m=f(50),i=f({});p(()=>{r.teamId&&(m.value=10),_()});function _(c=1){let l="";r.teamId&&r.filterVoucherSets&&(l="&where[]="+r.filterVoucherSets+","+r.teamId),axios.get("/admin/voucher-sets?cached=false&page="+c+"&limit="+m.value+l+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam").then(e=>{i.value=e.data.data}).catch(e=>{console.log(e)})}return(c,l)=>i.value.data&&i.value.data.length?(a(),o("div",C,[(a(!0),o(h,null,g(i.value.data,e=>(a(),y(u(x),{href:c.route("admin.voucher-set",e.id),class:"hover:no-underline hover:opacity-75"},{default:w(()=>[t("div",T,[t("div",j,[t("div",I," #"+s(e.id),1),e.is_test?(a(),o("div",N," Test voucher set ")):d("",!0),e.created_by_team?(a(),o("div",P," Created by: "+s(e.created_by_team.name),1)):d("",!0),e.allocated_to_service_team?(a(),o("div",$," Allocated to: "+s(e.allocated_to_service_team.name),1)):d("",!0),t("div",null," Total set value: $"+s(e.total_set_value/100),1),t("div",null," Total remaining value: $"+s(e.total_set_value_remaining/100),1),e.created_by_team?(a(),o("div",q," Created at: "+s(u(n).utc(e.created_at).fromNow())+" ("+s(u(n)(e.created_at))+") ",1)):d("",!0)]),l[0]||(l[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),t("div",D,[t("div",F,[k(b,{onSetDataPage:_,"pagination-data":i.value},null,8,["pagination-data"])])])])):d("",!0)}};export{G as _}; +import{r as f,o as p,b as a,c as o,F as h,g,h as y,w,d as t,t as s,f as d,u,i as x,a as k}from"./app-DAMU3Vsb.js";import{P as b}from"./PaginatorComponent-CoSTMxRA.js";import{d as n}from"./dayjs.min-LcFuhhy0.js";import{r as B}from"./relativeTime-Bgw1Nd-u.js";import{u as V}from"./utc-D9fONLNZ.js";const C={key:0},T={class:"border-b flex justify-between items-center py-2 sm:p-2"},j={class:"text-xs"},I={class:"font-bold text-sm"},N={key:0,class:"text-red-500 font-bold"},P={key:1},$={key:2},q={key:3},D={class:"flex justify-end items-center mt-4"},F={class:"w-full lg:w-1/3"},G={__name:"VoucherSetsComponent",props:{teamId:{required:!1,default:null},filterVoucherSets:{required:!1,default:null}},setup(v){n.extend(B),n.extend(V);const r=v,m=f(50),i=f({});p(()=>{r.teamId&&(m.value=10),_()});function _(c=1){let l="";r.teamId&&r.filterVoucherSets&&(l="&where[]="+r.filterVoucherSets+","+r.teamId),axios.get("/admin/voucher-sets?cached=false&page="+c+"&limit="+m.value+l+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam").then(e=>{i.value=e.data.data}).catch(e=>{console.log(e)})}return(c,l)=>i.value.data&&i.value.data.length?(a(),o("div",C,[(a(!0),o(h,null,g(i.value.data,e=>(a(),y(u(x),{href:c.route("admin.voucher-set",e.id),class:"hover:no-underline hover:opacity-75"},{default:w(()=>[t("div",T,[t("div",j,[t("div",I," #"+s(e.id),1),e.is_test?(a(),o("div",N," Test voucher set ")):d("",!0),e.created_by_team?(a(),o("div",P," Created by: "+s(e.created_by_team.name),1)):d("",!0),e.allocated_to_service_team?(a(),o("div",$," Allocated to: "+s(e.allocated_to_service_team.name),1)):d("",!0),t("div",null," Total set value: $"+s(e.total_set_value/100),1),t("div",null," Total remaining value: $"+s(e.total_set_value_remaining/100),1),e.created_by_team?(a(),o("div",q," Created at: "+s(u(n).utc(e.created_at).fromNow())+" ("+s(u(n)(e.created_at))+") ",1)):d("",!0)]),l[0]||(l[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),t("div",D,[t("div",F,[k(b,{onSetDataPage:_,"pagination-data":i.value},null,8,["pagination-data"])])])])):d("",!0)}};export{G as _}; diff --git a/public/build/assets/VoucherTemplateEdit-B8xCAdSL.js b/public/build/assets/VoucherTemplateEdit-B8xCAdSL.js new file mode 100644 index 00000000..6ce9b14d --- /dev/null +++ b/public/build/assets/VoucherTemplateEdit-B8xCAdSL.js @@ -0,0 +1 @@ +import{_ as m}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as a,a as t,u as i,w as r,F as p,b as s,Z as c}from"./app-DAMU3Vsb.js";import{_ as n}from"./AdminTopNavigation-DhGdPzlz.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-CTGs70yY.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./TextInput-CvMe3C5R.js";import"./InputLabel-Wt1TYZ0A.js";import"./SecondaryButton-CDQDA5dD.js";import"./DangerButton-Dm1RaOMo.js";import"./Checkbox-lS5kFIWr.js";const N={__name:"VoucherTemplateEdit",props:{id:{type:Number,required:!0}},setup(e){const o=e;return(u,l)=>(s(),a(p,null,[t(i(c),{title:"Edit Voucher Template"}),t(m,null,{header:r(()=>[t(n)]),default:r(()=>[t(_,{id:o.id},null,8,["id"])]),_:1})],64))}};export{N as default}; diff --git a/public/build/assets/VoucherTemplateEdit-C1HbSQCo.js b/public/build/assets/VoucherTemplateEdit-C1HbSQCo.js deleted file mode 100644 index 6f7fac84..00000000 --- a/public/build/assets/VoucherTemplateEdit-C1HbSQCo.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as a,a as t,u as i,w as r,F as p,b as s,Z as c}from"./app-NB_nCFcw.js";import{_ as n}from"./AdminTopNavigation-n1SbFb1e.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./TextInput-Fah8vm6N.js";import"./InputLabel-omYb-gwx.js";import"./SecondaryButton-DvjXhVuA.js";import"./DangerButton-BzsUR-6s.js";import"./Checkbox-BkCSZ4j2.js";const N={__name:"VoucherTemplateEdit",props:{id:{type:Number,required:!0}},setup(e){const o=e;return(u,l)=>(s(),a(p,null,[t(i(c),{title:"Edit Voucher Template"}),t(m,null,{header:r(()=>[t(n)]),default:r(()=>[t(_,{id:o.id},null,8,["id"])]),_:1})],64))}};export{N as default}; diff --git a/public/build/assets/VoucherTemplateNew-B86O0X6X.js b/public/build/assets/VoucherTemplateNew-B86O0X6X.js deleted file mode 100644 index ccab4a6d..00000000 --- a/public/build/assets/VoucherTemplateNew-B86O0X6X.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as a,a as t,u as m,w as r,F as o,b as i,Z as p}from"./app-NB_nCFcw.js";import{_}from"./AdminTopNavigation-n1SbFb1e.js";import{_ as s}from"./AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./TextInput-Fah8vm6N.js";import"./InputLabel-omYb-gwx.js";import"./SecondaryButton-DvjXhVuA.js";import"./DangerButton-BzsUR-6s.js";import"./Checkbox-BkCSZ4j2.js";const T={__name:"VoucherTemplateNew",setup(c){return(n,f)=>(i(),a(o,null,[t(m(p),{title:"Create Team"}),t(e,null,{header:r(()=>[t(_)]),default:r(()=>[t(s)]),_:1})],64))}};export{T as default}; diff --git a/public/build/assets/VoucherTemplateNew-BINnLav-.js b/public/build/assets/VoucherTemplateNew-BINnLav-.js new file mode 100644 index 00000000..1145402b --- /dev/null +++ b/public/build/assets/VoucherTemplateNew-BINnLav-.js @@ -0,0 +1 @@ +import{_ as e}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as a,a as t,u as m,w as r,F as o,b as i,Z as p}from"./app-DAMU3Vsb.js";import{_}from"./AdminTopNavigation-DhGdPzlz.js";import{_ as s}from"./AdminTeamVoucherTemplateEditComponent-CTGs70yY.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./TextInput-CvMe3C5R.js";import"./InputLabel-Wt1TYZ0A.js";import"./SecondaryButton-CDQDA5dD.js";import"./DangerButton-Dm1RaOMo.js";import"./Checkbox-lS5kFIWr.js";const T={__name:"VoucherTemplateNew",setup(c){return(n,f)=>(i(),a(o,null,[t(m(p),{title:"Create Team"}),t(e,null,{header:r(()=>[t(_)]),default:r(()=>[t(s)]),_:1})],64))}};export{T as default}; diff --git a/public/build/assets/Vouchers-Docqnsjz.js b/public/build/assets/Vouchers-Docqnsjz.js new file mode 100644 index 00000000..1564ada1 --- /dev/null +++ b/public/build/assets/Vouchers-Docqnsjz.js @@ -0,0 +1 @@ +import{_ as o}from"./AuthenticatedLayout-BUPPfdhf.js";import{c as s,a as r,u as m,w as a,F as i,b as c,Z as _,d as e}from"./app-DAMU3Vsb.js";import{_ as p}from"./AdminTopNavigation-DhGdPzlz.js";import{_ as n}from"./VouchersComponent-B1EjqngZ.js";import"./ApplicationLogo-DKaozThB.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CIB81Yr_.js";import"./PaginatorComponent-CoSTMxRA.js";import"./SecondaryButton-CDQDA5dD.js";import"./dayjs.min-LcFuhhy0.js";import"./relativeTime-Bgw1Nd-u.js";import"./utc-D9fONLNZ.js";const d={class:"card"},g={__name:"Vouchers",setup(l){return(u,t)=>(c(),s(i,null,[r(m(_),{title:"Vouchers"}),r(o,null,{header:a(()=>[r(p)]),default:a(()=>[e("div",d,[t[0]||(t[0]=e("div",{class:"card-header"}," Vouchers ",-1)),r(n)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/Vouchers-HdBjeyaO.js b/public/build/assets/Vouchers-HdBjeyaO.js deleted file mode 100644 index 0df6eaad..00000000 --- a/public/build/assets/Vouchers-HdBjeyaO.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-ibOQYoAA.js";import{c as s,a as r,u as m,w as a,F as i,b as c,Z as _,d as e}from"./app-NB_nCFcw.js";import{_ as p}from"./AdminTopNavigation-n1SbFb1e.js";import{_ as n}from"./VouchersComponent-C8urwp1U.js";import"./ApplicationLogo-BfIosL1f.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-CiDAOitU.js";import"./PaginatorComponent-C4rhva1F.js";import"./SecondaryButton-DvjXhVuA.js";import"./dayjs.min-DM5MTW9C.js";import"./relativeTime-CdoPJJJp.js";import"./utc-CsIElMW4.js";const d={class:"card"},g={__name:"Vouchers",setup(l){return(u,t)=>(c(),s(i,null,[r(m(_),{title:"Vouchers"}),r(o,null,{header:a(()=>[r(p)]),default:a(()=>[e("div",d,[t[0]||(t[0]=e("div",{class:"card-header"}," Vouchers ",-1)),r(n)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/VouchersComponent-C8urwp1U.js b/public/build/assets/VouchersComponent-B1EjqngZ.js similarity index 89% rename from public/build/assets/VouchersComponent-C8urwp1U.js rename to public/build/assets/VouchersComponent-B1EjqngZ.js index c276ab35..a268bb9a 100644 --- a/public/build/assets/VouchersComponent-C8urwp1U.js +++ b/public/build/assets/VouchersComponent-B1EjqngZ.js @@ -1 +1 @@ -import{r as f,o as h,b as t,c as o,F as p,g,h as y,w as x,d as a,t as r,f as l,u,i as k,a as w}from"./app-NB_nCFcw.js";import{P as b}from"./PaginatorComponent-C4rhva1F.js";import{d as n}from"./dayjs.min-DM5MTW9C.js";import{r as B}from"./relativeTime-CdoPJJJp.js";import{u as I}from"./utc-CsIElMW4.js";const V={key:0},C={class:"border-b flex justify-between items-center py-2 sm:p-2"},S={class:"text-xs"},T={key:0,class:"font-bold text-sm"},j={key:1,class:"font-bold text-sm"},F={key:2,class:"text-red-500"},N={key:3},q={key:4},P={key:5},$={class:"flex justify-end items-center mt-4"},D={class:"w-full lg:w-1/3"},O={__name:"VouchersComponent",props:{teamId:{required:!1,default:null},filterVouchers:{required:!1,default:null},voucherSetId:{required:!1,default:null}},setup(v){n.extend(B),n.extend(I);const s=v,_=f(50),d=f({});h(()=>{(s.teamId||s.voucherSetId)&&(_.value=10),m()});function m(c=1){let i="";s.teamId&&s.filterVouchers?i="&where[]="+s.filterVouchers+","+s.teamId:s.voucherSetId&&(i="&where[]=voucher_set_id,"+s.voucherSetId),axios.get("/admin/vouchers?cached=false&page="+c+"&limit="+_.value+i+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam").then(e=>{d.value=e.data.data}).catch(e=>{console.log(e)})}return(c,i)=>d.value.data&&d.value.data.length?(t(),o("div",V,[(t(!0),o(p,null,g(d.value.data,e=>(t(),y(u(k),{href:c.route("admin.voucher",e.id),class:"hover:no-underline hover:opacity-75"},{default:x(()=>[a("div",C,[a("div",S,[e.voucher_short_code?(t(),o("div",T," #"+r(e.voucher_short_code),1)):(t(),o("div",j," #"+r(e.id),1)),e.is_test?(t(),o("div",F," Test voucher ")):l("",!0),e.created_by_team?(t(),o("div",N," Created by: "+r(e.created_by_team.name),1)):l("",!0),e.allocated_to_service_team?(t(),o("div",q," Allocated to: "+r(e.allocated_to_service_team.name),1)):l("",!0),a("div",null," Original value: $"+r((e.voucher_value_original/100).toFixed(2)),1),a("div",null," Remaining value: $"+r((e.voucher_value_remaining/100).toFixed(2)),1),e.created_at?(t(),o("div",P," Created at: "+r(u(n).utc(e.created_at).fromNow())+" ("+r(u(n)(e.created_at))+") ",1)):l("",!0)]),i[0]||(i[0]=a("div",null,[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),a("div",$,[a("div",D,[w(b,{onSetDataPage:m,"pagination-data":d.value},null,8,["pagination-data"])])])])):l("",!0)}};export{O as _}; +import{r as f,o as h,b as t,c as o,F as p,g,h as y,w as x,d as a,t as r,f as l,u,i as k,a as w}from"./app-DAMU3Vsb.js";import{P as b}from"./PaginatorComponent-CoSTMxRA.js";import{d as n}from"./dayjs.min-LcFuhhy0.js";import{r as B}from"./relativeTime-Bgw1Nd-u.js";import{u as I}from"./utc-D9fONLNZ.js";const V={key:0},C={class:"border-b flex justify-between items-center py-2 sm:p-2"},S={class:"text-xs"},T={key:0,class:"font-bold text-sm"},j={key:1,class:"font-bold text-sm"},F={key:2,class:"text-red-500"},N={key:3},q={key:4},P={key:5},$={class:"flex justify-end items-center mt-4"},D={class:"w-full lg:w-1/3"},O={__name:"VouchersComponent",props:{teamId:{required:!1,default:null},filterVouchers:{required:!1,default:null},voucherSetId:{required:!1,default:null}},setup(v){n.extend(B),n.extend(I);const s=v,_=f(50),d=f({});h(()=>{(s.teamId||s.voucherSetId)&&(_.value=10),m()});function m(c=1){let i="";s.teamId&&s.filterVouchers?i="&where[]="+s.filterVouchers+","+s.teamId:s.voucherSetId&&(i="&where[]=voucher_set_id,"+s.voucherSetId),axios.get("/admin/vouchers?cached=false&page="+c+"&limit="+_.value+i+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam").then(e=>{d.value=e.data.data}).catch(e=>{console.log(e)})}return(c,i)=>d.value.data&&d.value.data.length?(t(),o("div",V,[(t(!0),o(p,null,g(d.value.data,e=>(t(),y(u(k),{href:c.route("admin.voucher",e.id),class:"hover:no-underline hover:opacity-75"},{default:x(()=>[a("div",C,[a("div",S,[e.voucher_short_code?(t(),o("div",T," #"+r(e.voucher_short_code),1)):(t(),o("div",j," #"+r(e.id),1)),e.is_test?(t(),o("div",F," Test voucher ")):l("",!0),e.created_by_team?(t(),o("div",N," Created by: "+r(e.created_by_team.name),1)):l("",!0),e.allocated_to_service_team?(t(),o("div",q," Allocated to: "+r(e.allocated_to_service_team.name),1)):l("",!0),a("div",null," Original value: $"+r((e.voucher_value_original/100).toFixed(2)),1),a("div",null," Remaining value: $"+r((e.voucher_value_remaining/100).toFixed(2)),1),e.created_at?(t(),o("div",P," Created at: "+r(u(n).utc(e.created_at).fromNow())+" ("+r(u(n)(e.created_at))+") ",1)):l("",!0)]),i[0]||(i[0]=a("div",null,[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),a("div",$,[a("div",D,[w(b,{onSetDataPage:m,"pagination-data":d.value},null,8,["pagination-data"])])])])):l("",!0)}};export{O as _}; diff --git a/public/build/assets/app-NB_nCFcw.js b/public/build/assets/app-DAMU3Vsb.js similarity index 97% rename from public/build/assets/app-NB_nCFcw.js rename to public/build/assets/app-DAMU3Vsb.js index ce13dd28..80086742 100644 --- a/public/build/assets/app-NB_nCFcw.js +++ b/public/build/assets/app-DAMU3Vsb.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/APIAccessToken-dC82aTmh.js","assets/AuthenticatedLayout-ibOQYoAA.js","assets/ApplicationLogo-BfIosL1f.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/PrimaryButton-CiDAOitU.js","assets/AdminTopNavigation-n1SbFb1e.js","assets/dayjs.min-DM5MTW9C.js","assets/relativeTime-CdoPJJJp.js","assets/localizedFormat-CoQqglmK.js","assets/APIAccessTokens-BLhAXCxE.js","assets/PaginatorComponent-C4rhva1F.js","assets/SecondaryButton-DvjXhVuA.js","assets/AdminHome-R5_UARE1.js","assets/AjaxLoadingIndicator-C8UwDW2j.js","assets/AuditItemsComponent-C7YXeZNy.js","assets/Team-r_mqDnKu.js","assets/TextInput-Fah8vm6N.js","assets/InputLabel-omYb-gwx.js","assets/AdminTeamCreateComponent-8M73tbc7.js","assets/AdminUserDetailsComponent--1S10Mhu.js","assets/utc-CsIElMW4.js","assets/DangerButton-BzsUR-6s.js","assets/VoucherSetsComponent-ChybDy2V.js","assets/VouchersComponent-C8urwp1U.js","assets/TeamNew-DgOStchy.js","assets/Teams-BCjNg0Vs.js","assets/User-C8oSwsSl.js","assets/Users-fB1pYr8f.js","assets/VoucherRedemption-Ba1mDZU6.js","assets/VoucherRedemptions-BJ2Z8SKl.js","assets/VoucherSet-C_FioOoJ.js","assets/VoucherSetNew-CQJWXEMg.js","assets/VoucherSets-CVZed9zf.js","assets/VoucherTemplateEdit-C1HbSQCo.js","assets/AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js","assets/Checkbox-BkCSZ4j2.js","assets/VoucherTemplateNew-B86O0X6X.js","assets/Voucher-DXAhWrlI.js","assets/Vouchers-HdBjeyaO.js","assets/ErrorMessagePage-CEHNAMUs.js","assets/MyTeam-BIW5O6XV.js","assets/MyTeamVoucherSets-Bv7bGieI.js","assets/VoucherSetMerchantTeamApproval-CY5mx9r_.js","assets/Voucher-DkFPHOzd.js","assets/VoucherRedeem-BIWa6ByF.js","assets/VoucherSet-DMNIDxAN.js","assets/AuditItems-DIKou6QV.js","assets/ConfirmPassword-so3GG3w2.js","assets/GuestLayout-BXXL9wvL.js","assets/InputError-B8NEdD9b.js","assets/ForgotPassword-E4Xdb2Gm.js","assets/Login-B8EDuc_R.js","assets/Register-BYssDH9v.js","assets/ResetPassword-CUxvjknQ.js","assets/VerifyEmail-BHhXe_r5.js","assets/Dashboard-BxMYZBzR.js","assets/Edit-Ctxd-0w5.js","assets/UpdatePasswordForm-CmkItG6E.js","assets/UpdateProfileInformationForm-C5Npts88.js","assets/DeleteUserForm-BxQTPWXE.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/APIAccessToken-A3K8OPmV.js","assets/AuthenticatedLayout-BUPPfdhf.js","assets/ApplicationLogo-DKaozThB.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/PrimaryButton-CIB81Yr_.js","assets/AdminTopNavigation-DhGdPzlz.js","assets/dayjs.min-LcFuhhy0.js","assets/relativeTime-Bgw1Nd-u.js","assets/localizedFormat-DzqPGGN8.js","assets/APIAccessTokens-W2G_Brik.js","assets/PaginatorComponent-CoSTMxRA.js","assets/SecondaryButton-CDQDA5dD.js","assets/AdminHome-DTetEXIL.js","assets/AjaxLoadingIndicator-jzrn0AI8.js","assets/AuditItemsComponent-CfExzXjd.js","assets/Team-D8FdxRdY.js","assets/TextInput-CvMe3C5R.js","assets/InputLabel-Wt1TYZ0A.js","assets/AdminTeamCreateComponent-9Mr34fB9.js","assets/AdminUserDetailsComponent-DStHbtVS.js","assets/utc-D9fONLNZ.js","assets/DangerButton-Dm1RaOMo.js","assets/VoucherSetsComponent-BkEVj6A7.js","assets/VouchersComponent-B1EjqngZ.js","assets/TeamNew-FoGsvxHV.js","assets/Teams-DZ43y8GK.js","assets/User-BUwPGeNK.js","assets/Users-DcLgqFTR.js","assets/VoucherRedemption-ByOfqClZ.js","assets/VoucherRedemptions-D2AdAWMF.js","assets/VoucherSet-Zt9y5gmI.js","assets/VoucherSetNew-ByqV2Gjw.js","assets/VoucherSets-DE1EHO3P.js","assets/VoucherTemplateEdit-B8xCAdSL.js","assets/AdminTeamVoucherTemplateEditComponent-CTGs70yY.js","assets/Checkbox-lS5kFIWr.js","assets/VoucherTemplateNew-BINnLav-.js","assets/Voucher-Cp15zt8G.js","assets/Vouchers-Docqnsjz.js","assets/ErrorMessagePage-Cgxki2j-.js","assets/MyTeam-DDDfjcxp.js","assets/MyTeamVoucherSets-ibMyvl9J.js","assets/VoucherSetMerchantTeamApproval-CR4Su_Hg.js","assets/Voucher-KQ9YSfBi.js","assets/VoucherRedeem-BBaMZ4wj.js","assets/VoucherSet-GzhgjQNh.js","assets/AuditItems-4c_EuhGC.js","assets/ConfirmPassword-C2XqwsFY.js","assets/GuestLayout-C6KGR1m6.js","assets/InputError-KrPZcAOb.js","assets/ForgotPassword-d4vaXXEc.js","assets/Login-BTp1pdSs.js","assets/Register-DQ-ZQSRR.js","assets/ResetPassword-CchZ69XZ.js","assets/VerifyEmail-3E5pnoqD.js","assets/Dashboard-CXg49ttj.js","assets/Edit-CXTB1KZY.js","assets/UpdatePasswordForm-DPOMbBpC.js","assets/UpdateProfileInformationForm-BDimdmua.js","assets/DeleteUserForm-BqxawtV2.js"])))=>i.map(i=>d[i]); const Ap="modulepreload",Op=function(e){return"/build/"+e},ml={},se=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(r.map(c=>{if(c=Op(c),c in ml)return;ml[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":Ap,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((h,g)=>{p.addEventListener("load",h),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function eu(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tp}=Object.prototype,{getPrototypeOf:La}=Object,To=(e=>t=>{const r=Tp.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=e=>(e=e.toLowerCase(),t=>To(t)===e),xo=e=>t=>typeof t===e,{isArray:En}=Array,ri=xo("undefined");function xp(e){return e!==null&&!ri(e)&&e.constructor!==null&&!ri(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tu=Pt("ArrayBuffer");function Pp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tu(e.buffer),t}const Cp=xo("string"),pt=xo("function"),ru=xo("number"),Po=e=>e!==null&&typeof e=="object",Rp=e=>e===!0||e===!1,Zi=e=>{if(To(e)!=="object")return!1;const t=La(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ip=Pt("Date"),Fp=Pt("File"),$p=Pt("Blob"),Np=Pt("FileList"),Dp=e=>Po(e)&&pt(e.pipe),Lp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pt(e.append)&&((t=To(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},Mp=Pt("URLSearchParams"),[jp,Bp,Up,Vp]=["ReadableStream","Request","Response","Headers"].map(Pt),Hp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function di(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),En(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iu=e=>!ri(e)&&e!==Mr;function oa(){const{caseless:e}=iu(this)&&this||{},t={},r=(n,i)=>{const o=e&&nu(t,i)||i;Zi(t[o])&&Zi(n)?t[o]=oa(t[o],n):Zi(n)?t[o]=oa({},n):En(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n(di(t,(i,o)=>{r&&pt(i)?e[o]=eu(i,r):e[o]=i},{allOwnKeys:n}),e),qp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wp=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Kp=(e,t,r,n)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&La(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Gp=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},zp=e=>{if(!e)return null;if(En(e))return e;let t=e.length;if(!ru(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Jp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&La(Uint8Array)),Qp=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Xp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Zp=Pt("HTMLFormElement"),Yp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),bl=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ed=Pt("RegExp"),ou=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};di(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},td=e=>{ou(e,(t,r)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(pt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},rd=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return En(e)?n(e):n(String(e).split(t)),r},nd=()=>{},id=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ps="abcdefghijklmnopqrstuvwxyz",vl="0123456789",su={DIGIT:vl,ALPHA:Ps,ALPHA_DIGIT:Ps+Ps.toUpperCase()+vl},od=(e=16,t=su.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function sd(e){return!!(e&&pt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ad=e=>{const t=new Array(10),r=(n,i)=>{if(Po(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=En(n)?[]:{};return di(n,(s,l)=>{const c=r(s,i+1);!ri(c)&&(o[l]=c)}),t[i]=void 0,o}}return n};return r(e,0)},ld=Pt("AsyncFunction"),cd=e=>e&&(Po(e)||pt(e))&&pt(e.then)&&pt(e.catch),au=((e,t)=>e?setImmediate:t?((r,n)=>(Mr.addEventListener("message",({source:i,data:o})=>{i===Mr&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Mr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",pt(Mr.postMessage)),ud=typeof queueMicrotask<"u"?queueMicrotask.bind(Mr):typeof process<"u"&&process.nextTick||au,A={isArray:En,isArrayBuffer:tu,isBuffer:xp,isFormData:Lp,isArrayBufferView:Pp,isString:Cp,isNumber:ru,isBoolean:Rp,isObject:Po,isPlainObject:Zi,isReadableStream:jp,isRequest:Bp,isResponse:Up,isHeaders:Vp,isUndefined:ri,isDate:Ip,isFile:Fp,isBlob:$p,isRegExp:ed,isFunction:pt,isStream:Dp,isURLSearchParams:Mp,isTypedArray:Jp,isFileList:Np,forEach:di,merge:oa,extend:kp,trim:Hp,stripBOM:qp,inherits:Wp,toFlatObject:Kp,kindOf:To,kindOfTest:Pt,endsWith:Gp,toArray:zp,forEachEntry:Qp,matchAll:Xp,isHTMLForm:Zp,hasOwnProperty:bl,hasOwnProp:bl,reduceDescriptors:ou,freezeMethods:td,toObjectSet:rd,toCamelCase:Yp,noop:nd,toFiniteNumber:id,findKey:nu,global:Mr,isContextDefined:iu,ALPHABET:su,generateString:od,isSpecCompliantForm:sd,toJSONObject:ad,isAsyncFn:ld,isThenable:cd,setImmediate:au,asap:ud};function ne(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}A.inherits(ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const lu=ne.prototype,cu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cu[e]={value:e}});Object.defineProperties(ne,cu);Object.defineProperty(lu,"isAxiosError",{value:!0});ne.from=(e,t,r,n,i,o)=>{const s=Object.create(lu);return A.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ne.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const fd=null;function sa(e){return A.isPlainObject(e)||A.isArray(e)}function uu(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function _l(e,t,r){return e?e.concat(t).map(function(i,o){return i=uu(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function pd(e){return A.isArray(e)&&!e.some(sa)}const dd=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Co(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,S){return!A.isUndefined(S[v])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(A.isDate(y))return y.toISOString();if(!c&&A.isBlob(y))throw new ne("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(y)||A.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,v,S){let x=y;if(y&&!S&&typeof y=="object"){if(A.endsWith(v,"{}"))v=n?v:v.slice(0,-2),y=JSON.stringify(y);else if(A.isArray(y)&&pd(y)||(A.isFileList(y)||A.endsWith(v,"[]"))&&(x=A.toArray(y)))return v=uu(v),x.forEach(function(_,E){!(A.isUndefined(_)||_===null)&&t.append(s===!0?_l([v],E,o):s===null?v:v+"[]",f(_))}),!1}return sa(y)?!0:(t.append(_l(S,v,o),f(y)),!1)}const p=[],h=Object.assign(dd,{defaultVisitor:u,convertValue:f,isVisitable:sa});function g(y,v){if(!A.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(y),A.forEach(y,function(x,I){(!(A.isUndefined(x)||x===null)&&i.call(t,x,A.isString(I)?I.trim():I,v,h))===!0&&g(x,v?v.concat(I):[I])}),p.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return g(e),t}function wl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ma(e,t){this._pairs=[],e&&Co(e,this,t)}const fu=Ma.prototype;fu.append=function(t,r){this._pairs.push([t,r])};fu.toString=function(t){const r=t?function(n){return t.call(this,n,wl)}:wl;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function hd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pu(e,t,r){if(!t)return e;const n=r&&r.encode||hd,i=r&&r.serialize;let o;if(i?o=i(t,r):o=A.isURLSearchParams(t)?t.toString():new Ma(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Sl{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(n){n!==null&&t(n)})}}const du={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yd=typeof URLSearchParams<"u"?URLSearchParams:Ma,gd=typeof FormData<"u"?FormData:null,md=typeof Blob<"u"?Blob:null,bd={isBrowser:!0,classes:{URLSearchParams:yd,FormData:gd,Blob:md},protocols:["http","https","file","blob","url","data"]},ja=typeof window<"u"&&typeof document<"u",aa=typeof navigator=="object"&&navigator||void 0,vd=ja&&(!aa||["ReactNative","NativeScript","NS"].indexOf(aa.product)<0),_d=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wd=ja&&window.location.href||"http://localhost",Sd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ja,hasStandardBrowserEnv:vd,hasStandardBrowserWebWorkerEnv:_d,navigator:aa,origin:wd},Symbol.toStringTag,{value:"Module"})),st={...Sd,...bd};function Ed(e,t){return Co(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return st.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ad(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Od(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return s=!s&&A.isArray(i)?i.length:s,c?(A.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!A.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&A.isArray(i[s])&&(i[s]=Od(i[s])),!l)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(Ad(n),i,r,0)}),r}return null}function Td(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const hi={transitional:du,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=A.isObject(t);if(o&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return i?JSON.stringify(hu(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ed(t,this.formSerializer).toString();if((l=A.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Co(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),Td(t)):t}],transformResponse:[function(t){const r=this.transitional||hi.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?ne.from(l,ne.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{hi.headers[e]={}});const xd=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pd=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&xd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},El=Symbol("internals");function Un(e){return e&&String(e).trim().toLowerCase()}function Yi(e){return e===!1||e==null?e:A.isArray(e)?e.map(Yi):String(e)}function Cd(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Rd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cs(e,t,r,n,i){if(A.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!A.isString(t)){if(A.isString(n))return t.indexOf(n)!==-1;if(A.isRegExp(n))return n.test(t)}}function Id(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Fd(e,t){const r=A.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}class at{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(l,c,f){const u=Un(c);if(!u)throw new Error("header name must be a non-empty string");const p=A.findKey(i,u);(!p||i[p]===void 0||f===!0||f===void 0&&i[p]!==!1)&&(i[p||c]=Yi(l))}const s=(l,c)=>A.forEach(l,(f,u)=>o(f,u,c));if(A.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(A.isString(t)&&(t=t.trim())&&!Rd(t))s(Pd(t),r);else if(A.isHeaders(t))for(const[l,c]of t.entries())o(c,l,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=Un(t),t){const n=A.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Cd(i);if(A.isFunction(r))return r.call(this,i,n);if(A.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Un(t),t){const n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Cs(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Un(s),s){const l=A.findKey(n,s);l&&(!r||Cs(n,n[l],l,r))&&(delete n[l],i=!0)}}return A.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||Cs(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return A.forEach(this,(i,o)=>{const s=A.findKey(n,o);if(s){r[s]=Yi(i),delete r[o];return}const l=t?Id(o):String(o).trim();l!==o&&delete r[o],r[l]=Yi(i),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&A.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[El]=this[El]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=Un(s);n[l]||(Fd(i,s),n[l]=!0)}return A.isArray(t)?t.forEach(o):o(t),this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(at.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});A.freezeMethods(at);function Rs(e,t){const r=this||hi,n=t||r,i=at.from(n.headers);let o=n.data;return A.forEach(e,function(l){o=l.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function yu(e){return!!(e&&e.__CANCEL__)}function An(e,t,r){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(An,ne,{__CANCEL__:!0});function gu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ne("Request failed with status code "+r.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function $d(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),u=n[o];s||(s=f),r[i]=c,n[i]=f;let p=o,h=0;for(;p!==i;)h+=r[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-s{r=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),p=u-r;p>=n?s(f,u):(i=f,o||(o=setTimeout(()=>{o=null,s(i)},n-p)))},()=>i&&s(i)]}const lo=(e,t,r=3)=>{let n=0;const i=Nd(50,250);return Dd(o=>{const s=o.loaded,l=o.lengthComputable?o.total:void 0,c=s-n,f=i(c),u=s<=l;n=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l&&u?(l-s)/f:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},r)},Al=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ol=e=>(...t)=>A.asap(()=>e(...t)),Ld=st.hasStandardBrowserEnv?function(){const t=st.navigator&&/(msie|trident)/i.test(st.navigator.userAgent),r=document.createElement("a");let n;function i(o){let s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(s){const l=A.isString(s)?i(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),Md=st.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),A.isString(n)&&s.push("path="+n),A.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mu(e,t){return e&&!jd(t)?Bd(e,t):t}const Tl=e=>e instanceof at?{...e}:e;function Gr(e,t){t=t||{};const r={};function n(f,u,p){return A.isPlainObject(f)&&A.isPlainObject(u)?A.merge.call({caseless:p},f,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function i(f,u,p){if(A.isUndefined(u)){if(!A.isUndefined(f))return n(void 0,f,p)}else return n(f,u,p)}function o(f,u){if(!A.isUndefined(u))return n(void 0,u)}function s(f,u){if(A.isUndefined(u)){if(!A.isUndefined(f))return n(void 0,f)}else return n(void 0,u)}function l(f,u,p){if(p in t)return n(f,u);if(p in e)return n(void 0,f)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,u)=>i(Tl(f),Tl(u),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=c[u]||i,h=p(e[u],t[u],u);A.isUndefined(h)&&p!==l||(r[u]=h)}),r}const bu=e=>{const t=Gr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;t.headers=s=at.from(s),t.url=pu(mu(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(A.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[f,...u]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...u].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&A.isFunction(n)&&(n=n(t)),n||n!==!1&&Ld(t.url))){const f=i&&o&&Md.read(o);f&&s.set(i,f)}return t},Ud=typeof XMLHttpRequest<"u",Vd=Ud&&function(e){return new Promise(function(r,n){const i=bu(e);let o=i.data;const s=at.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=i,u,p,h,g,y;function v(){g&&g(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function x(){if(!S)return;const _=at.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:_,config:e,request:S};gu(function(V){r(V),v()},function(V){n(V),v()},P),S=null}"onloadend"in S?S.onloadend=x:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(x)},S.onabort=function(){S&&(n(new ne("Request aborted",ne.ECONNABORTED,e,S)),S=null)},S.onerror=function(){n(new ne("Network Error",ne.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||du;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),n(new ne(E,P.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,S)),S=null},o===void 0&&s.setContentType(null),"setRequestHeader"in S&&A.forEach(s.toJSON(),function(E,P){S.setRequestHeader(P,E)}),A.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),l&&l!=="json"&&(S.responseType=i.responseType),f&&([h,y]=lo(f,!0),S.addEventListener("progress",h)),c&&S.upload&&([p,g]=lo(c),S.upload.addEventListener("progress",p),S.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(u=_=>{S&&(n(!_||_.type?new An(null,e,S):_),S.abort(),S=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const I=$d(i.url);if(I&&st.protocols.indexOf(I)===-1){n(new ne("Unsupported protocol "+I+":",ne.ERR_BAD_REQUEST,e));return}S.send(o||null)})},Hd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(f){if(!i){i=!0,l();const u=f instanceof Error?f:this.reason;n.abort(u instanceof ne?u:new An(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>A.asap(l),c}},kd=function*(e,t){let r=e.byteLength;if(r{const i=qd(e,t);let o=0,s,l=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:f,value:u}=await i.next();if(f){l(),c.close();return}let p=u.byteLength;if(r){let h=o+=p;r(h)}c.enqueue(new Uint8Array(u))}catch(f){throw l(f),f}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},Ro=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vu=Ro&&typeof ReadableStream=="function",Kd=Ro&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_u=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gd=vu&&_u(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Pl=64*1024,la=vu&&_u(()=>A.isReadableStream(new Response("").body)),co={stream:la&&(e=>e.body)};Ro&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!co[t]&&(co[t]=A.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ne(`Response type '${t}' is not supported`,ne.ERR_NOT_SUPPORT,n)})})})(new Response);const zd=async e=>{if(e==null)return 0;if(A.isBlob(e))return e.size;if(A.isSpecCompliantForm(e))return(await new Request(st.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(A.isArrayBufferView(e)||A.isArrayBuffer(e))return e.byteLength;if(A.isURLSearchParams(e)&&(e=e+""),A.isString(e))return(await Kd(e)).byteLength},Jd=async(e,t)=>{const r=A.toFiniteNumber(e.getContentLength());return r??zd(t)},Qd=Ro&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:f,headers:u,withCredentials:p="same-origin",fetchOptions:h}=bu(e);f=f?(f+"").toLowerCase():"text";let g=Hd([i,o&&o.toAbortSignal()],s),y;const v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(c&&Gd&&r!=="get"&&r!=="head"&&(S=await Jd(u,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),j;if(A.isFormData(n)&&(j=P.headers.get("content-type"))&&u.setContentType(j),P.body){const[V,F]=Al(S,lo(Ol(c)));n=xl(P.body,Pl,V,F)}}A.isString(p)||(p=p?"include":"omit");const x="credentials"in Request.prototype;y=new Request(t,{...h,signal:g,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:x?p:void 0});let I=await fetch(y);const _=la&&(f==="stream"||f==="response");if(la&&(l||_&&v)){const P={};["status","statusText","headers"].forEach(C=>{P[C]=I[C]});const j=A.toFiniteNumber(I.headers.get("content-length")),[V,F]=l&&Al(j,lo(Ol(l),!0))||[];I=new Response(xl(I.body,Pl,V,()=>{F&&F(),v&&v()}),P)}f=f||"text";let E=await co[A.findKey(co,f)||"text"](I,e);return!_&&v&&v(),await new Promise((P,j)=>{gu(P,j,{data:E,headers:at.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:y})})}catch(x){throw v&&v(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,e,y),{cause:x.cause||x}):ne.from(x,x&&x.code,e,y)}}),ca={http:fd,xhr:Vd,fetch:Qd};A.forEach(ca,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cl=e=>`- ${e}`,Xd=e=>A.isFunction(e)||e===null||e===!1,wu={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : @@ -100,4 +100,4 @@ const Ap="modulepreload",Op=function(e){return"/build/"+e},ml={},se=function(t,r Please specify a more appropriate element using the "as" attribute. For example: -...`),qr(e.as,{...r,...n==="a"?{href:o}:{},onClick:l=>{Vv(l)&&(l.preventDefault(),Ot.visit(o,{data:s,method:i,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:e.preserveState??i!=="get",only:e.only,except:e.except,headers:e.headers,onCancelToken:r.onCancelToken||(()=>({})),onBefore:r.onBefore||(()=>({})),onStart:r.onStart||(()=>({})),onProgress:r.onProgress||(()=>({})),onFinish:r.onFinish||(()=>({})),onCancel:r.onCancel||(()=>({})),onSuccess:r.onSuccess||(()=>({})),onError:r.onError||(()=>({}))}))}},t)}}}),L_=Yv;async function e_(e,t){for(const r of Array.isArray(e)?e:[e]){const n=t[r];if(!(typeof n>"u"))return typeof n=="function"?n():n}throw new Error(`Page not found: ${e}`)}function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t1;){var p=u.pop(),h=p.obj[p.prop];if(Fr(h)){for(var g=[],y=0;y=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===mn.RFC1738&&(c===40||c===41)?s+=o.charAt(l):c<128?s+=Dt[c]:c<2048?s+=Dt[192|c>>6]+Dt[128|63&c]:c<55296||c>=57344?s+=Dt[224|c>>12]+Dt[128|c>>6&63]+Dt[128|63&c]:(c=65536+((1023&c)<<10|1023&o.charCodeAt(l+=1)),s+=Dt[240|c>>18]+Dt[128|c>>12&63]+Dt[128|c>>6&63]+Dt[128|63&c])}return s},isBuffer:function(e){return!(!e||typeof e!="object"||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},maybeMap:function(e,t){if(Fr(e)){for(var r=[],n=0;n0?S.join(",")||null:void 0}];else if(jr(l))P=l;else{var V=Object.keys(S);P=c?V.sort(c):V}for(var F=0;F-1?e.split(","):e},u_=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!r.plainObjects&&Da.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;r.depth>0&&(s=o.exec(i))!==null&&f=0;--v){var S,x=u[v];if(x==="[]"&&h.parseArrays)S=[].concat(y);else{S=h.plainObjects?Object.create(null):{};var I=x.charAt(0)==="["&&x.charAt(x.length-1)==="]"?x.slice(1,-1):x,_=parseInt(I,10);h.parseArrays||I!==""?!isNaN(_)&&x!==I&&String(_)===I&&_>=0&&h.parseArrays&&_<=h.arrayLimit?(S=[])[_]=y:I!=="__proto__"&&(S[I]=y):S={0:y}}y=S}return y}(c,t,r,n)}},f_=function(e,t){var r=function(f){return Xi}();if(e===""||e==null)return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?function(f,u){var p,h={},g=(u.ignoreQueryPrefix?f.replace(/^\?/,""):f).split(u.delimiter,u.parameterLimit===1/0?void 0:u.parameterLimit),y=-1,v=u.charset;if(u.charsetSentinel)for(p=0;p-1&&(x=l_(x)?[x]:x),h[S]=Da.call(h,S)?br.combine(h[S],x):x}return h}(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),s=0;s({name:n.replace(/{|\??}/g,""),required:!/\?}$/.test(n)})))!=null?t:[]}matchesUrl(t){if(!this.definition.methods.includes("GET"))return!1;const r=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(s,l,c,f)=>{var u;const p=`(?<${c}>${((u=this.wheres[c])==null?void 0:u.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return f?`(${l}${p})?`:`${l}${p}`}).replace(/^\w+:\/\//,""),[n,i]=t.replace(/^\w+:\/\//,"").split("?"),o=new RegExp(`^${r}/?$`).exec(decodeURI(n));if(o){for(const s in o.groups)o.groups[s]=typeof o.groups[s]=="string"?decodeURIComponent(o.groups[s]):o.groups[s];return{params:o.groups,query:f_(i)}}return!1}compile(t){return this.parameterSegments.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,n,i)=>{var o,s;if(!i&&[null,void 0].includes(t[n]))throw new Error(`Ziggy error: '${n}' parameter is required for route '${this.name}'.`);if(this.wheres[n]&&!new RegExp(`^${i?`(${this.wheres[n]})?`:this.wheres[n]}$`).test((s=t[n])!=null?s:""))throw new Error(`Ziggy error: '${n}' parameter '${t[n]}' does not match required format '${this.wheres[n]}' for route '${this.name}'.`);return encodeURI((o=t[n])!=null?o:"").replace(/%7C/g,"|").replace(/%25/g,"%").replace(/\$/g,"%24")}).replace(this.config.absolute?/(\.[^/]+?)(\/\/)/:/(^)(\/\/)/,"$1/").replace(/\/+$/,""):this.template}}class p_ extends String{constructor(t,r,n=!0,i){if(super(),this.t=i??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this.t=ct({},this.t,{absolute:n}),t){if(!this.t.routes[t])throw new Error(`Ziggy error: route '${t}' is not in the route list.`);this.i=new ia(t,this.t.routes[t],this.t),this.u=this.l(r)}}toString(){const t=Object.keys(this.u).filter(r=>!this.i.parameterSegments.some(({name:n})=>n===r)).filter(r=>r!=="_query").reduce((r,n)=>ct({},r,{[n]:this.u[n]}),{});return this.i.compile(this.u)+function(r,n){var i,o=r,s=function(g){if(!g)return Me;if(g.encoder!=null&&typeof g.encoder!="function")throw new TypeError("Encoder has to be a function.");var y=g.charset||Me.charset;if(g.charset!==void 0&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=mn.default;if(g.format!==void 0){if(!n_.call(mn.formatters,g.format))throw new TypeError("Unknown format option provided.");v=g.format}var S=mn.formatters[v],x=Me.filter;return(typeof g.filter=="function"||jr(g.filter))&&(x=g.filter),{addQueryPrefix:typeof g.addQueryPrefix=="boolean"?g.addQueryPrefix:Me.addQueryPrefix,allowDots:g.allowDots===void 0?Me.allowDots:!!g.allowDots,charset:y,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:Me.charsetSentinel,delimiter:g.delimiter===void 0?Me.delimiter:g.delimiter,encode:typeof g.encode=="boolean"?g.encode:Me.encode,encoder:typeof g.encoder=="function"?g.encoder:Me.encoder,encodeValuesOnly:typeof g.encodeValuesOnly=="boolean"?g.encodeValuesOnly:Me.encodeValuesOnly,filter:x,format:v,formatter:S,serializeDate:typeof g.serializeDate=="function"?g.serializeDate:Me.serializeDate,skipNulls:typeof g.skipNulls=="boolean"?g.skipNulls:Me.skipNulls,sort:typeof g.sort=="function"?g.sort:null,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:Me.strictNullHandling}}(n);typeof s.filter=="function"?o=(0,s.filter)("",o):jr(s.filter)&&(i=s.filter);var l=[];if(typeof o!="object"||o===null)return"";var c=Zc[n&&n.arrayFormat in Zc?n.arrayFormat:n&&"indices"in n?n.indices?"indices":"repeat":"indices"];i||(i=Object.keys(o)),s.sort&&i.sort(s.sort);for(var f=0;f0?h+p:""}(ct({},t,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(r,n)=>typeof r=="boolean"?Number(r):n(r)})}p(t){t?this.t.absolute&&t.startsWith("/")&&(t=this.h().host+t):t=this.m();let r={};const[n,i]=Object.entries(this.t.routes).find(([o,s])=>r=new ia(o,s,this.t).matchesUrl(t))||[void 0,void 0];return ct({name:n},r,{route:i})}m(){const{host:t,pathname:r,search:n}=this.h();return(this.t.absolute?t+r:r.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+n}current(t,r){const{name:n,params:i,query:o,route:s}=this.p();if(!t)return n;const l=new RegExp(`^${t.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(n);if([null,void 0].includes(r)||!l)return l;const c=new ia(n,s,this.t);r=this.l(r,c);const f=ct({},i,o);if(Object.values(r).every(p=>!p)&&!Object.values(f).some(p=>p!==void 0))return!0;const u=(p,h)=>Object.entries(p).every(([g,y])=>Array.isArray(y)&&Array.isArray(h[g])?y.every(v=>h[g].includes(v)):typeof y=="object"&&typeof h[g]=="object"&&y!==null&&h[g]!==null?u(y,h[g]):h[g]==y);return u(r,f)}h(){var t,r,n,i,o,s;const{host:l="",pathname:c="",search:f=""}=typeof window<"u"?window.location:{};return{host:(t=(r=this.t.location)==null?void 0:r.host)!=null?t:l,pathname:(n=(i=this.t.location)==null?void 0:i.pathname)!=null?n:c,search:(o=(s=this.t.location)==null?void 0:s.search)!=null?o:f}}get params(){const{params:t,query:r}=this.p();return ct({},t,r)}get routeParams(){return this.p().params}get queryParams(){return this.p().query}has(t){return Object.keys(this.t.routes).includes(t)}l(t={},r=this.i){t!=null||(t={}),t=["string","number"].includes(typeof t)?[t]:t;const n=r.parameterSegments.filter(({name:i})=>!this.t.defaults[i]);return Array.isArray(t)?t=t.reduce((i,o,s)=>ct({},i,n[s]?{[n[s].name]:o}:typeof o=="object"?o:{[o]:""}),{}):n.length!==1||t[n[0].name]||!t.hasOwnProperty(Object.values(r.bindings)[0])&&!t.hasOwnProperty("id")||(t={[n[0].name]:t}),ct({},this.v(r),this.j(t,r))}v(t){return t.parameterSegments.filter(({name:r})=>this.t.defaults[r]).reduce((r,{name:n},i)=>ct({},r,{[n]:this.t.defaults[n]}),{})}j(t,{bindings:r,parameterSegments:n}){return Object.entries(t).reduce((i,[o,s])=>{if(!s||typeof s!="object"||Array.isArray(s)||!n.some(({name:l})=>l===o))return ct({},i,{[o]:s});if(!s.hasOwnProperty(r[o])){if(!s.hasOwnProperty("id"))throw new Error(`Ziggy error: object passed as '${o}' parameter is missing route model binding key '${r[o]}'.`);r[o]="id"}return ct({},i,{[o]:s[r[o]]})},{})}valueOf(){return this.toString()}}function d_(e,t,r,n){const i=new p_(e,t,r,n);return e?i.toString():i}const h_={install(e,t){const r=(n,i,o,s=t)=>d_(n,i,o,s);parseInt(e.version)>2?(e.config.globalProperties.route=r,e.provide("route",r)):e.mixin({methods:{route:r}})}},y_="Open Food Network Vine Platform";Xv({title:e=>`${e} - ${y_}`,resolve:e=>e_(`./Pages/${e}.vue`,Object.assign({"./Pages/Admin/APIAccessTokens/APIAccessToken.vue":()=>se(()=>import("./APIAccessToken-dC82aTmh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),"./Pages/Admin/APIAccessTokens/APIAccessTokens.vue":()=>se(()=>import("./APIAccessTokens-BLhAXCxE.js"),__vite__mapDeps([9,1,2,3,4,5,10,11])),"./Pages/Admin/AdminHome.vue":()=>se(()=>import("./AdminHome-R5_UARE1.js"),__vite__mapDeps([12,1,2,3,4,5,11,13,14,6])),"./Pages/Admin/Teams/Team.vue":()=>se(()=>import("./Team-r_mqDnKu.js"),__vite__mapDeps([15,1,2,3,4,5,10,11,16,17,18,19,13,6,7,20,21,22,23])),"./Pages/Admin/Teams/TeamNew.vue":()=>se(()=>import("./TeamNew-DgOStchy.js"),__vite__mapDeps([24,1,2,3,4,5,18,16])),"./Pages/Admin/Teams/Teams.vue":()=>se(()=>import("./Teams-BCjNg0Vs.js"),__vite__mapDeps([25,1,2,3,4,5,10,11])),"./Pages/Admin/Users/User.vue":()=>se(()=>import("./User-C8oSwsSl.js"),__vite__mapDeps([26,1,2,3,4,5,10,11,19,16])),"./Pages/Admin/Users/Users.vue":()=>se(()=>import("./Users-fB1pYr8f.js"),__vite__mapDeps([27,1,2,3,4,5,10,11])),"./Pages/Admin/VoucherRedemptions/VoucherRedemption.vue":()=>se(()=>import("./VoucherRedemption-Ba1mDZU6.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,20])),"./Pages/Admin/VoucherRedemptions/VoucherRedemptions.vue":()=>se(()=>import("./VoucherRedemptions-BJ2Z8SKl.js"),__vite__mapDeps([29,1,2,3,4,5,10,11,6,7,20])),"./Pages/Admin/VoucherSets/VoucherSet.vue":()=>se(()=>import("./VoucherSet-C_FioOoJ.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,20,23,10,11])),"./Pages/Admin/VoucherSets/VoucherSetNew.vue":()=>se(()=>import("./VoucherSetNew-CQJWXEMg.js"),__vite__mapDeps([31,1,2,3,4,5,11])),"./Pages/Admin/VoucherSets/VoucherSets.vue":()=>se(()=>import("./VoucherSets-CVZed9zf.js"),__vite__mapDeps([32,1,2,3,4,5,22,10,11,6,7,20])),"./Pages/Admin/VoucherTemplates/VoucherTemplateEdit.vue":()=>se(()=>import("./VoucherTemplateEdit-C1HbSQCo.js"),__vite__mapDeps([33,1,2,3,4,5,34,16,17,11,21,35])),"./Pages/Admin/VoucherTemplates/VoucherTemplateNew.vue":()=>se(()=>import("./VoucherTemplateNew-B86O0X6X.js"),__vite__mapDeps([36,1,2,3,4,5,34,16,17,11,21,35])),"./Pages/Admin/Vouchers/Voucher.vue":()=>se(()=>import("./Voucher-DXAhWrlI.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,20])),"./Pages/Admin/Vouchers/Vouchers.vue":()=>se(()=>import("./Vouchers-HdBjeyaO.js"),__vite__mapDeps([38,1,2,3,4,5,23,10,11,6,7,20])),"./Pages/App/ErrorMessagePage.vue":()=>se(()=>import("./ErrorMessagePage-CEHNAMUs.js"),__vite__mapDeps([39,1,2,3,4])),"./Pages/App/MyTeam.vue":()=>se(()=>import("./MyTeam-BIW5O6XV.js"),__vite__mapDeps([40,1,2,3,4,6,7,20,16])),"./Pages/App/VoucherSets/MyTeamVoucherSets.vue":()=>se(()=>import("./MyTeamVoucherSets-Bv7bGieI.js"),__vite__mapDeps([41,1,2,3,4,6,7,20,10,11])),"./Pages/App/VoucherSets/VoucherSetMerchantTeamApproval.vue":()=>se(()=>import("./VoucherSetMerchantTeamApproval-CY5mx9r_.js"),__vite__mapDeps([42,1,2,3,4,11,6,7,20])),"./Pages/App/Vouchers/Voucher.vue":()=>se(()=>import("./Voucher-DkFPHOzd.js"),__vite__mapDeps([43,1,2,3,4,6,7,8,20,11])),"./Pages/App/Vouchers/VoucherRedeem.vue":()=>se(()=>import("./VoucherRedeem-BIWa6ByF.js"),__vite__mapDeps([44,1,2,3,4,6,7,20])),"./Pages/App/Vouchers/VoucherSet.vue":()=>se(()=>import("./VoucherSet-DMNIDxAN.js"),__vite__mapDeps([45,1,2,3,4,6,7,20,10,11])),"./Pages/AuditItems.vue":()=>se(()=>import("./AuditItems-DIKou6QV.js"),__vite__mapDeps([46,1,2,3,4,14,6])),"./Pages/Auth/ConfirmPassword.vue":()=>se(()=>import("./ConfirmPassword-so3GG3w2.js"),__vite__mapDeps([47,48,2,3,49,17,4,16])),"./Pages/Auth/ForgotPassword.vue":()=>se(()=>import("./ForgotPassword-E4Xdb2Gm.js"),__vite__mapDeps([50,48,2,3,49,17,4,16])),"./Pages/Auth/Login.vue":()=>se(()=>import("./Login-B8EDuc_R.js"),__vite__mapDeps([51,35,48,2,3,49,17,4,16])),"./Pages/Auth/Register.vue":()=>se(()=>import("./Register-BYssDH9v.js"),__vite__mapDeps([52,48,2,3,49,17,4,16])),"./Pages/Auth/ResetPassword.vue":()=>se(()=>import("./ResetPassword-CUxvjknQ.js"),__vite__mapDeps([53,48,2,3,49,17,4,16])),"./Pages/Auth/VerifyEmail.vue":()=>se(()=>import("./VerifyEmail-BHhXe_r5.js"),__vite__mapDeps([54,48,2,3,4])),"./Pages/Dashboard.vue":()=>se(()=>import("./Dashboard-BxMYZBzR.js"),__vite__mapDeps([55,1,2,3,4])),"./Pages/Profile/Edit.vue":()=>se(()=>import("./Edit-Ctxd-0w5.js"),__vite__mapDeps([56,1,2,3,4,57,49,17,16,58])),"./Pages/Profile/Partials/DeleteUserForm.vue":()=>se(()=>import("./DeleteUserForm-BxQTPWXE.js"),__vite__mapDeps([59,21,3,49,17,11,16])),"./Pages/Profile/Partials/UpdatePasswordForm.vue":()=>se(()=>import("./UpdatePasswordForm-CmkItG6E.js"),__vite__mapDeps([57,49,17,4,3,16])),"./Pages/Profile/Partials/UpdateProfileInformationForm.vue":()=>se(()=>import("./UpdateProfileInformationForm-C5Npts88.js"),__vite__mapDeps([58,49,17,4,3,16]))})),setup({el:e,App:t,props:r,plugin:n}){return Hg({render:()=>qr(t,r)}).use(n).use(h_).mount(e)},progress:{color:"#4B5563"}});export{m_ as A,g_ as B,eg as C,Qu as D,At as E,Ye as F,qo as G,__ as H,S_ as I,P_ as J,x_ as K,E_ as L,v_ as M,N_ as Q,Gv as T,D_ as Z,Be as a,Sa as b,A_ as c,Lf as d,Mf as e,T_ as f,w_ as g,Ea as h,L_ as i,$_ as j,F_ as k,b_ as l,R_ as m,No as n,ff as o,no as p,O_ as q,el as r,C_ as s,hh as t,Hh as u,I_ as v,ty as w,bi as x,df as y,Nr as z}; +...`),qr(e.as,{...r,...n==="a"?{href:o}:{},onClick:l=>{Vv(l)&&(l.preventDefault(),Ot.visit(o,{data:s,method:i,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:e.preserveState??i!=="get",only:e.only,except:e.except,headers:e.headers,onCancelToken:r.onCancelToken||(()=>({})),onBefore:r.onBefore||(()=>({})),onStart:r.onStart||(()=>({})),onProgress:r.onProgress||(()=>({})),onFinish:r.onFinish||(()=>({})),onCancel:r.onCancel||(()=>({})),onSuccess:r.onSuccess||(()=>({})),onError:r.onError||(()=>({}))}))}},t)}}}),L_=Yv;async function e_(e,t){for(const r of Array.isArray(e)?e:[e]){const n=t[r];if(!(typeof n>"u"))return typeof n=="function"?n():n}throw new Error(`Page not found: ${e}`)}function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t1;){var p=u.pop(),h=p.obj[p.prop];if(Fr(h)){for(var g=[],y=0;y=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===mn.RFC1738&&(c===40||c===41)?s+=o.charAt(l):c<128?s+=Dt[c]:c<2048?s+=Dt[192|c>>6]+Dt[128|63&c]:c<55296||c>=57344?s+=Dt[224|c>>12]+Dt[128|c>>6&63]+Dt[128|63&c]:(c=65536+((1023&c)<<10|1023&o.charCodeAt(l+=1)),s+=Dt[240|c>>18]+Dt[128|c>>12&63]+Dt[128|c>>6&63]+Dt[128|63&c])}return s},isBuffer:function(e){return!(!e||typeof e!="object"||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},maybeMap:function(e,t){if(Fr(e)){for(var r=[],n=0;n0?S.join(",")||null:void 0}];else if(jr(l))P=l;else{var V=Object.keys(S);P=c?V.sort(c):V}for(var F=0;F-1?e.split(","):e},u_=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!r.plainObjects&&Da.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var f=0;r.depth>0&&(s=o.exec(i))!==null&&f=0;--v){var S,x=u[v];if(x==="[]"&&h.parseArrays)S=[].concat(y);else{S=h.plainObjects?Object.create(null):{};var I=x.charAt(0)==="["&&x.charAt(x.length-1)==="]"?x.slice(1,-1):x,_=parseInt(I,10);h.parseArrays||I!==""?!isNaN(_)&&x!==I&&String(_)===I&&_>=0&&h.parseArrays&&_<=h.arrayLimit?(S=[])[_]=y:I!=="__proto__"&&(S[I]=y):S={0:y}}y=S}return y}(c,t,r,n)}},f_=function(e,t){var r=function(f){return Xi}();if(e===""||e==null)return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?function(f,u){var p,h={},g=(u.ignoreQueryPrefix?f.replace(/^\?/,""):f).split(u.delimiter,u.parameterLimit===1/0?void 0:u.parameterLimit),y=-1,v=u.charset;if(u.charsetSentinel)for(p=0;p-1&&(x=l_(x)?[x]:x),h[S]=Da.call(h,S)?br.combine(h[S],x):x}return h}(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),s=0;s({name:n.replace(/{|\??}/g,""),required:!/\?}$/.test(n)})))!=null?t:[]}matchesUrl(t){if(!this.definition.methods.includes("GET"))return!1;const r=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(s,l,c,f)=>{var u;const p=`(?<${c}>${((u=this.wheres[c])==null?void 0:u.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return f?`(${l}${p})?`:`${l}${p}`}).replace(/^\w+:\/\//,""),[n,i]=t.replace(/^\w+:\/\//,"").split("?"),o=new RegExp(`^${r}/?$`).exec(decodeURI(n));if(o){for(const s in o.groups)o.groups[s]=typeof o.groups[s]=="string"?decodeURIComponent(o.groups[s]):o.groups[s];return{params:o.groups,query:f_(i)}}return!1}compile(t){return this.parameterSegments.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,n,i)=>{var o,s;if(!i&&[null,void 0].includes(t[n]))throw new Error(`Ziggy error: '${n}' parameter is required for route '${this.name}'.`);if(this.wheres[n]&&!new RegExp(`^${i?`(${this.wheres[n]})?`:this.wheres[n]}$`).test((s=t[n])!=null?s:""))throw new Error(`Ziggy error: '${n}' parameter '${t[n]}' does not match required format '${this.wheres[n]}' for route '${this.name}'.`);return encodeURI((o=t[n])!=null?o:"").replace(/%7C/g,"|").replace(/%25/g,"%").replace(/\$/g,"%24")}).replace(this.config.absolute?/(\.[^/]+?)(\/\/)/:/(^)(\/\/)/,"$1/").replace(/\/+$/,""):this.template}}class p_ extends String{constructor(t,r,n=!0,i){if(super(),this.t=i??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this.t=ct({},this.t,{absolute:n}),t){if(!this.t.routes[t])throw new Error(`Ziggy error: route '${t}' is not in the route list.`);this.i=new ia(t,this.t.routes[t],this.t),this.u=this.l(r)}}toString(){const t=Object.keys(this.u).filter(r=>!this.i.parameterSegments.some(({name:n})=>n===r)).filter(r=>r!=="_query").reduce((r,n)=>ct({},r,{[n]:this.u[n]}),{});return this.i.compile(this.u)+function(r,n){var i,o=r,s=function(g){if(!g)return Me;if(g.encoder!=null&&typeof g.encoder!="function")throw new TypeError("Encoder has to be a function.");var y=g.charset||Me.charset;if(g.charset!==void 0&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=mn.default;if(g.format!==void 0){if(!n_.call(mn.formatters,g.format))throw new TypeError("Unknown format option provided.");v=g.format}var S=mn.formatters[v],x=Me.filter;return(typeof g.filter=="function"||jr(g.filter))&&(x=g.filter),{addQueryPrefix:typeof g.addQueryPrefix=="boolean"?g.addQueryPrefix:Me.addQueryPrefix,allowDots:g.allowDots===void 0?Me.allowDots:!!g.allowDots,charset:y,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:Me.charsetSentinel,delimiter:g.delimiter===void 0?Me.delimiter:g.delimiter,encode:typeof g.encode=="boolean"?g.encode:Me.encode,encoder:typeof g.encoder=="function"?g.encoder:Me.encoder,encodeValuesOnly:typeof g.encodeValuesOnly=="boolean"?g.encodeValuesOnly:Me.encodeValuesOnly,filter:x,format:v,formatter:S,serializeDate:typeof g.serializeDate=="function"?g.serializeDate:Me.serializeDate,skipNulls:typeof g.skipNulls=="boolean"?g.skipNulls:Me.skipNulls,sort:typeof g.sort=="function"?g.sort:null,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:Me.strictNullHandling}}(n);typeof s.filter=="function"?o=(0,s.filter)("",o):jr(s.filter)&&(i=s.filter);var l=[];if(typeof o!="object"||o===null)return"";var c=Zc[n&&n.arrayFormat in Zc?n.arrayFormat:n&&"indices"in n?n.indices?"indices":"repeat":"indices"];i||(i=Object.keys(o)),s.sort&&i.sort(s.sort);for(var f=0;f0?h+p:""}(ct({},t,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(r,n)=>typeof r=="boolean"?Number(r):n(r)})}p(t){t?this.t.absolute&&t.startsWith("/")&&(t=this.h().host+t):t=this.m();let r={};const[n,i]=Object.entries(this.t.routes).find(([o,s])=>r=new ia(o,s,this.t).matchesUrl(t))||[void 0,void 0];return ct({name:n},r,{route:i})}m(){const{host:t,pathname:r,search:n}=this.h();return(this.t.absolute?t+r:r.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+n}current(t,r){const{name:n,params:i,query:o,route:s}=this.p();if(!t)return n;const l=new RegExp(`^${t.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(n);if([null,void 0].includes(r)||!l)return l;const c=new ia(n,s,this.t);r=this.l(r,c);const f=ct({},i,o);if(Object.values(r).every(p=>!p)&&!Object.values(f).some(p=>p!==void 0))return!0;const u=(p,h)=>Object.entries(p).every(([g,y])=>Array.isArray(y)&&Array.isArray(h[g])?y.every(v=>h[g].includes(v)):typeof y=="object"&&typeof h[g]=="object"&&y!==null&&h[g]!==null?u(y,h[g]):h[g]==y);return u(r,f)}h(){var t,r,n,i,o,s;const{host:l="",pathname:c="",search:f=""}=typeof window<"u"?window.location:{};return{host:(t=(r=this.t.location)==null?void 0:r.host)!=null?t:l,pathname:(n=(i=this.t.location)==null?void 0:i.pathname)!=null?n:c,search:(o=(s=this.t.location)==null?void 0:s.search)!=null?o:f}}get params(){const{params:t,query:r}=this.p();return ct({},t,r)}get routeParams(){return this.p().params}get queryParams(){return this.p().query}has(t){return Object.keys(this.t.routes).includes(t)}l(t={},r=this.i){t!=null||(t={}),t=["string","number"].includes(typeof t)?[t]:t;const n=r.parameterSegments.filter(({name:i})=>!this.t.defaults[i]);return Array.isArray(t)?t=t.reduce((i,o,s)=>ct({},i,n[s]?{[n[s].name]:o}:typeof o=="object"?o:{[o]:""}),{}):n.length!==1||t[n[0].name]||!t.hasOwnProperty(Object.values(r.bindings)[0])&&!t.hasOwnProperty("id")||(t={[n[0].name]:t}),ct({},this.v(r),this.j(t,r))}v(t){return t.parameterSegments.filter(({name:r})=>this.t.defaults[r]).reduce((r,{name:n},i)=>ct({},r,{[n]:this.t.defaults[n]}),{})}j(t,{bindings:r,parameterSegments:n}){return Object.entries(t).reduce((i,[o,s])=>{if(!s||typeof s!="object"||Array.isArray(s)||!n.some(({name:l})=>l===o))return ct({},i,{[o]:s});if(!s.hasOwnProperty(r[o])){if(!s.hasOwnProperty("id"))throw new Error(`Ziggy error: object passed as '${o}' parameter is missing route model binding key '${r[o]}'.`);r[o]="id"}return ct({},i,{[o]:s[r[o]]})},{})}valueOf(){return this.toString()}}function d_(e,t,r,n){const i=new p_(e,t,r,n);return e?i.toString():i}const h_={install(e,t){const r=(n,i,o,s=t)=>d_(n,i,o,s);parseInt(e.version)>2?(e.config.globalProperties.route=r,e.provide("route",r)):e.mixin({methods:{route:r}})}},y_="Open Food Network Vine Platform";Xv({title:e=>`${e} - ${y_}`,resolve:e=>e_(`./Pages/${e}.vue`,Object.assign({"./Pages/Admin/APIAccessTokens/APIAccessToken.vue":()=>se(()=>import("./APIAccessToken-A3K8OPmV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),"./Pages/Admin/APIAccessTokens/APIAccessTokens.vue":()=>se(()=>import("./APIAccessTokens-W2G_Brik.js"),__vite__mapDeps([9,1,2,3,4,5,10,11])),"./Pages/Admin/AdminHome.vue":()=>se(()=>import("./AdminHome-DTetEXIL.js"),__vite__mapDeps([12,1,2,3,4,5,11,13,14,6])),"./Pages/Admin/Teams/Team.vue":()=>se(()=>import("./Team-D8FdxRdY.js"),__vite__mapDeps([15,1,2,3,4,5,10,11,16,17,18,19,13,6,7,20,21,22,23])),"./Pages/Admin/Teams/TeamNew.vue":()=>se(()=>import("./TeamNew-FoGsvxHV.js"),__vite__mapDeps([24,1,2,3,4,5,18,16])),"./Pages/Admin/Teams/Teams.vue":()=>se(()=>import("./Teams-DZ43y8GK.js"),__vite__mapDeps([25,1,2,3,4,5,10,11])),"./Pages/Admin/Users/User.vue":()=>se(()=>import("./User-BUwPGeNK.js"),__vite__mapDeps([26,1,2,3,4,5,10,11,19,16])),"./Pages/Admin/Users/Users.vue":()=>se(()=>import("./Users-DcLgqFTR.js"),__vite__mapDeps([27,1,2,3,4,5,10,11])),"./Pages/Admin/VoucherRedemptions/VoucherRedemption.vue":()=>se(()=>import("./VoucherRedemption-ByOfqClZ.js"),__vite__mapDeps([28,1,2,3,4,5,6,7,20])),"./Pages/Admin/VoucherRedemptions/VoucherRedemptions.vue":()=>se(()=>import("./VoucherRedemptions-D2AdAWMF.js"),__vite__mapDeps([29,1,2,3,4,5,10,11,6,7,20])),"./Pages/Admin/VoucherSets/VoucherSet.vue":()=>se(()=>import("./VoucherSet-Zt9y5gmI.js"),__vite__mapDeps([30,1,2,3,4,5,6,7,20,23,10,11])),"./Pages/Admin/VoucherSets/VoucherSetNew.vue":()=>se(()=>import("./VoucherSetNew-ByqV2Gjw.js"),__vite__mapDeps([31,1,2,3,4,5,11])),"./Pages/Admin/VoucherSets/VoucherSets.vue":()=>se(()=>import("./VoucherSets-DE1EHO3P.js"),__vite__mapDeps([32,1,2,3,4,5,22,10,11,6,7,20])),"./Pages/Admin/VoucherTemplates/VoucherTemplateEdit.vue":()=>se(()=>import("./VoucherTemplateEdit-B8xCAdSL.js"),__vite__mapDeps([33,1,2,3,4,5,34,16,17,11,21,35])),"./Pages/Admin/VoucherTemplates/VoucherTemplateNew.vue":()=>se(()=>import("./VoucherTemplateNew-BINnLav-.js"),__vite__mapDeps([36,1,2,3,4,5,34,16,17,11,21,35])),"./Pages/Admin/Vouchers/Voucher.vue":()=>se(()=>import("./Voucher-Cp15zt8G.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,20])),"./Pages/Admin/Vouchers/Vouchers.vue":()=>se(()=>import("./Vouchers-Docqnsjz.js"),__vite__mapDeps([38,1,2,3,4,5,23,10,11,6,7,20])),"./Pages/App/ErrorMessagePage.vue":()=>se(()=>import("./ErrorMessagePage-Cgxki2j-.js"),__vite__mapDeps([39,1,2,3,4])),"./Pages/App/MyTeam.vue":()=>se(()=>import("./MyTeam-DDDfjcxp.js"),__vite__mapDeps([40,1,2,3,4,6,7,20,16])),"./Pages/App/VoucherSets/MyTeamVoucherSets.vue":()=>se(()=>import("./MyTeamVoucherSets-ibMyvl9J.js"),__vite__mapDeps([41,1,2,3,4,6,7,20,10,11])),"./Pages/App/VoucherSets/VoucherSetMerchantTeamApproval.vue":()=>se(()=>import("./VoucherSetMerchantTeamApproval-CR4Su_Hg.js"),__vite__mapDeps([42,1,2,3,4,11,6,7,20])),"./Pages/App/Vouchers/Voucher.vue":()=>se(()=>import("./Voucher-KQ9YSfBi.js"),__vite__mapDeps([43,1,2,3,4,6,7,8,20,11])),"./Pages/App/Vouchers/VoucherRedeem.vue":()=>se(()=>import("./VoucherRedeem-BBaMZ4wj.js"),__vite__mapDeps([44,1,2,3,4,6,7,20])),"./Pages/App/Vouchers/VoucherSet.vue":()=>se(()=>import("./VoucherSet-GzhgjQNh.js"),__vite__mapDeps([45,1,2,3,4,6,7,20,10,11])),"./Pages/AuditItems.vue":()=>se(()=>import("./AuditItems-4c_EuhGC.js"),__vite__mapDeps([46,1,2,3,4,14,6])),"./Pages/Auth/ConfirmPassword.vue":()=>se(()=>import("./ConfirmPassword-C2XqwsFY.js"),__vite__mapDeps([47,48,2,3,49,17,4,16])),"./Pages/Auth/ForgotPassword.vue":()=>se(()=>import("./ForgotPassword-d4vaXXEc.js"),__vite__mapDeps([50,48,2,3,49,17,4,16])),"./Pages/Auth/Login.vue":()=>se(()=>import("./Login-BTp1pdSs.js"),__vite__mapDeps([51,35,48,2,3,49,17,4,16])),"./Pages/Auth/Register.vue":()=>se(()=>import("./Register-DQ-ZQSRR.js"),__vite__mapDeps([52,48,2,3,49,17,4,16])),"./Pages/Auth/ResetPassword.vue":()=>se(()=>import("./ResetPassword-CchZ69XZ.js"),__vite__mapDeps([53,48,2,3,49,17,4,16])),"./Pages/Auth/VerifyEmail.vue":()=>se(()=>import("./VerifyEmail-3E5pnoqD.js"),__vite__mapDeps([54,48,2,3,4])),"./Pages/Dashboard.vue":()=>se(()=>import("./Dashboard-CXg49ttj.js"),__vite__mapDeps([55,1,2,3,4])),"./Pages/Profile/Edit.vue":()=>se(()=>import("./Edit-CXTB1KZY.js"),__vite__mapDeps([56,1,2,3,4,57,49,17,16,58])),"./Pages/Profile/Partials/DeleteUserForm.vue":()=>se(()=>import("./DeleteUserForm-BqxawtV2.js"),__vite__mapDeps([59,21,3,49,17,11,16])),"./Pages/Profile/Partials/UpdatePasswordForm.vue":()=>se(()=>import("./UpdatePasswordForm-DPOMbBpC.js"),__vite__mapDeps([57,49,17,4,3,16])),"./Pages/Profile/Partials/UpdateProfileInformationForm.vue":()=>se(()=>import("./UpdateProfileInformationForm-BDimdmua.js"),__vite__mapDeps([58,49,17,4,3,16]))})),setup({el:e,App:t,props:r,plugin:n}){return Hg({render:()=>qr(t,r)}).use(n).use(h_).mount(e)},progress:{color:"#4B5563"}});export{m_ as A,g_ as B,eg as C,Qu as D,At as E,Ye as F,qo as G,__ as H,S_ as I,P_ as J,x_ as K,E_ as L,v_ as M,N_ as Q,Gv as T,D_ as Z,Be as a,Sa as b,A_ as c,Lf as d,Mf as e,T_ as f,w_ as g,Ea as h,L_ as i,$_ as j,F_ as k,b_ as l,R_ as m,No as n,ff as o,no as p,O_ as q,el as r,C_ as s,hh as t,Hh as u,I_ as v,ty as w,bi as x,df as y,Nr as z}; diff --git a/public/build/assets/dayjs.min-DM5MTW9C.js b/public/build/assets/dayjs.min-LcFuhhy0.js similarity index 99% rename from public/build/assets/dayjs.min-DM5MTW9C.js rename to public/build/assets/dayjs.min-LcFuhhy0.js index 1402360a..4332322c 100644 --- a/public/build/assets/dayjs.min-DM5MTW9C.js +++ b/public/build/assets/dayjs.min-LcFuhhy0.js @@ -1 +1 @@ -import{E as Q,G as K}from"./app-NB_nCFcw.js";var z={exports:{}};(function(V,X){(function(W,k){V.exports=k()})(Q,function(){var W=1e3,k=6e4,N=36e5,A="millisecond",S="second",w="minute",O="hour",M="day",T="week",m="month",U="quarter",v="year",_="date",E="Invalid Date",G=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},I=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},P={s:I,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+I(r,2,"0")+":"+I(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(s,n){if(F(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new C(t)},a=P;a.l=j,a.i=F,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var C=function(){function s(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[J]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(G);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==E},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)=n?s:""+Array(n+1-r.length).join(t)+s},P={s:I,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+I(r,2,"0")+":"+I(e,2,"0")},m:function s(n,t){if(n.date()1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(s,n){if(F(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new C(t)},a=P;a.l=j,a.i=F,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var C=function(){function s(t){this.$L=j(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[J]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(G);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==E},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)0,n<=o.r||!o.r){n<=1&&s>0&&(o=v[s-1]);var p=c[o.l];g&&(n=g(""+n)),d=typeof p=="string"?p.replace("%d",n):p(n,t,o.l,h);break}}if(t)return d;var M=h?c.future:c.past;return typeof M=="function"?M(d):M.replace("%s",d)},e.to=function(r,t){return x(r,t,this,!0)},e.from=function(r,t){return x(r,t,this)};var T=function(r){return r.$u?u.utc():u()};e.toNow=function(r){return this.to(T(this),r)},e.fromNow=function(r){return this.from(T(this),r)}}})})(b);var B=b.exports;const k=j(B);export{k as r}; +import{E as $,G as j}from"./app-DAMU3Vsb.js";var b={exports:{}};(function(w,G){(function(a,f){w.exports=f()})($,function(){return function(a,f,u){a=a||{};var e=f.prototype,y={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function x(r,t,i,m){return e.fromToBase(r,t,i,m)}u.en.relativeTime=y,e.fromToBase=function(r,t,i,m,g){for(var l,d,h,c=i.$locale().relativeTime||y,v=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=v.length,s=0;s0,n<=o.r||!o.r){n<=1&&s>0&&(o=v[s-1]);var p=c[o.l];g&&(n=g(""+n)),d=typeof p=="string"?p.replace("%d",n):p(n,t,o.l,h);break}}if(t)return d;var M=h?c.future:c.past;return typeof M=="function"?M(d):M.replace("%s",d)},e.to=function(r,t){return x(r,t,this,!0)},e.from=function(r,t){return x(r,t,this)};var T=function(r){return r.$u?u.utc():u()};e.toNow=function(r){return this.to(T(this),r)},e.fromNow=function(r){return this.from(T(this),r)}}})})(b);var B=b.exports;const k=j(B);export{k as r}; diff --git a/public/build/assets/utc-CsIElMW4.js b/public/build/assets/utc-D9fONLNZ.js similarity index 97% rename from public/build/assets/utc-CsIElMW4.js rename to public/build/assets/utc-D9fONLNZ.js index 946deb21..fcf15450 100644 --- a/public/build/assets/utc-CsIElMW4.js +++ b/public/build/assets/utc-D9fONLNZ.js @@ -1 +1 @@ -import{E as x,G as M}from"./app-NB_nCFcw.js";var m={exports:{}};(function(d,H){(function(f,n){d.exports=n()})(x,function(){var f="minute",n=/[+-]\d\d(?::?\d\d)?/g,D=/([+-]|\d\d)/g;return function(y,l,r){var i=l.prototype;r.utc=function(t){var s={date:t,utc:!0,args:arguments};return new l(s)},i.utc=function(t){var s=r(this.toDate(),{locale:this.$L,utc:!0});return t?s.add(this.utcOffset(),f):s},i.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var p=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),p.call(this,t)};var T=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else T.call(this)};var O=i.utcOffset;i.utcOffset=function(t,s){var u=this.$utils().u;if(u(t))return this.$u?0:u(this.$offset)?O.call(this):this.$offset;if(typeof t=="string"&&(t=function(a){a===void 0&&(a="");var g=a.match(n);if(!g)return null;var c=(""+g[0]).match(D)||["-",0,0],U=c[0],h=60*+c[1]+ +c[2];return h===0?0:U==="+"?h:-h}(t),t===null))return this;var o=Math.abs(t)<=16?60*t:t,e=this;if(s)return e.$offset=o,e.$u=t===0,e;if(t!==0){var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(e=this.local().add(o+v,f)).$offset=o,e.$x.$localOffset=v}else e=this.utc();return e};var C=i.format;i.format=function(t){var s=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return C.call(this,s)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var S=i.toDate;i.toDate=function(t){return t==="s"&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():S.call(this)};var $=i.diff;i.diff=function(t,s,u){if(t&&this.$u===t.$u)return $.call(this,t,s,u);var o=this.local(),e=r(t).local();return $.call(o,e,s,u)}}})})(m);var Y=m.exports;const b=M(Y);export{b as u}; +import{E as x,G as M}from"./app-DAMU3Vsb.js";var m={exports:{}};(function(d,H){(function(f,n){d.exports=n()})(x,function(){var f="minute",n=/[+-]\d\d(?::?\d\d)?/g,D=/([+-]|\d\d)/g;return function(y,l,r){var i=l.prototype;r.utc=function(t){var s={date:t,utc:!0,args:arguments};return new l(s)},i.utc=function(t){var s=r(this.toDate(),{locale:this.$L,utc:!0});return t?s.add(this.utcOffset(),f):s},i.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var p=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),p.call(this,t)};var T=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else T.call(this)};var O=i.utcOffset;i.utcOffset=function(t,s){var u=this.$utils().u;if(u(t))return this.$u?0:u(this.$offset)?O.call(this):this.$offset;if(typeof t=="string"&&(t=function(a){a===void 0&&(a="");var g=a.match(n);if(!g)return null;var c=(""+g[0]).match(D)||["-",0,0],U=c[0],h=60*+c[1]+ +c[2];return h===0?0:U==="+"?h:-h}(t),t===null))return this;var o=Math.abs(t)<=16?60*t:t,e=this;if(s)return e.$offset=o,e.$u=t===0,e;if(t!==0){var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(e=this.local().add(o+v,f)).$offset=o,e.$x.$localOffset=v}else e=this.utc();return e};var C=i.format;i.format=function(t){var s=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return C.call(this,s)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var S=i.toDate;i.toDate=function(t){return t==="s"&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():S.call(this)};var $=i.diff;i.diff=function(t,s,u){if(t&&this.$u===t.$u)return $.call(this,t,s,u);var o=this.local(),e=r(t).local();return $.call(o,e,s,u)}}})})(m);var Y=m.exports;const b=M(Y);export{b as u}; diff --git a/public/build/manifest.json b/public/build/manifest.json index 444de9e5..ce384c6c 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,813 +1,813 @@ { - "_AdminTeamCreateComponent-8M73tbc7.js": { - "file": "assets/AdminTeamCreateComponent-8M73tbc7.js", + "_AdminTeamCreateComponent-9Mr34fB9.js": { + "file": "assets/AdminTeamCreateComponent-9Mr34fB9.js", "name": "AdminTeamCreateComponent", "imports": [ "resources/js/app.js", - "_TextInput-Fah8vm6N.js", - "_PrimaryButton-CiDAOitU.js", - "_AuthenticatedLayout-ibOQYoAA.js" + "_TextInput-CvMe3C5R.js", + "_PrimaryButton-CIB81Yr_.js", + "_AuthenticatedLayout-BUPPfdhf.js" ] }, - "_AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js": { - "file": "assets/AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js", + "_AdminTeamVoucherTemplateEditComponent-CTGs70yY.js": { + "file": "assets/AdminTeamVoucherTemplateEditComponent-CTGs70yY.js", "name": "AdminTeamVoucherTemplateEditComponent", "imports": [ "resources/js/app.js", - "_TextInput-Fah8vm6N.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_AuthenticatedLayout-ibOQYoAA.js", - "_SecondaryButton-DvjXhVuA.js", - "_DangerButton-BzsUR-6s.js", + "_TextInput-CvMe3C5R.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_AuthenticatedLayout-BUPPfdhf.js", + "_SecondaryButton-CDQDA5dD.js", + "_DangerButton-Dm1RaOMo.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_Checkbox-BkCSZ4j2.js" + "_Checkbox-lS5kFIWr.js" ] }, - "_AdminTopNavigation-n1SbFb1e.js": { - "file": "assets/AdminTopNavigation-n1SbFb1e.js", + "_AdminTopNavigation-DhGdPzlz.js": { + "file": "assets/AdminTopNavigation-DhGdPzlz.js", "name": "AdminTopNavigation", "imports": [ "resources/js/app.js", - "_AuthenticatedLayout-ibOQYoAA.js" + "_AuthenticatedLayout-BUPPfdhf.js" ] }, - "_AdminUserDetailsComponent--1S10Mhu.js": { - "file": "assets/AdminUserDetailsComponent--1S10Mhu.js", + "_AdminUserDetailsComponent-DStHbtVS.js": { + "file": "assets/AdminUserDetailsComponent-DStHbtVS.js", "name": "AdminUserDetailsComponent", "imports": [ "resources/js/app.js" ] }, - "_AjaxLoadingIndicator-C8UwDW2j.js": { - "file": "assets/AjaxLoadingIndicator-C8UwDW2j.js", + "_AjaxLoadingIndicator-jzrn0AI8.js": { + "file": "assets/AjaxLoadingIndicator-jzrn0AI8.js", "name": "AjaxLoadingIndicator", "imports": [ "resources/js/app.js" ] }, - "_ApplicationLogo-BfIosL1f.js": { - "file": "assets/ApplicationLogo-BfIosL1f.js", + "_ApplicationLogo-DKaozThB.js": { + "file": "assets/ApplicationLogo-DKaozThB.js", "name": "ApplicationLogo", "imports": [ "__plugin-vue_export-helper-DlAUqK2U.js", "resources/js/app.js" ] }, - "_AuditItemsComponent-C7YXeZNy.js": { - "file": "assets/AuditItemsComponent-C7YXeZNy.js", + "_AuditItemsComponent-CfExzXjd.js": { + "file": "assets/AuditItemsComponent-CfExzXjd.js", "name": "AuditItemsComponent", "imports": [ - "_dayjs.min-DM5MTW9C.js", - "_AuthenticatedLayout-ibOQYoAA.js", + "_dayjs.min-LcFuhhy0.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js" ] }, - "_AuthenticatedLayout-ibOQYoAA.js": { - "file": "assets/AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js": { + "file": "assets/AuthenticatedLayout-BUPPfdhf.js", "name": "AuthenticatedLayout", "imports": [ - "_ApplicationLogo-BfIosL1f.js", + "_ApplicationLogo-DKaozThB.js", "resources/js/app.js", - "_PrimaryButton-CiDAOitU.js" + "_PrimaryButton-CIB81Yr_.js" ] }, - "_Checkbox-BkCSZ4j2.js": { - "file": "assets/Checkbox-BkCSZ4j2.js", + "_Checkbox-lS5kFIWr.js": { + "file": "assets/Checkbox-lS5kFIWr.js", "name": "Checkbox", "imports": [ "resources/js/app.js" ] }, - "_DangerButton-BzsUR-6s.js": { - "file": "assets/DangerButton-BzsUR-6s.js", + "_DangerButton-Dm1RaOMo.js": { + "file": "assets/DangerButton-Dm1RaOMo.js", "name": "DangerButton", "imports": [ "__plugin-vue_export-helper-DlAUqK2U.js", "resources/js/app.js" ] }, - "_GuestLayout-BXXL9wvL.js": { - "file": "assets/GuestLayout-BXXL9wvL.js", + "_GuestLayout-C6KGR1m6.js": { + "file": "assets/GuestLayout-C6KGR1m6.js", "name": "GuestLayout", "imports": [ - "_ApplicationLogo-BfIosL1f.js", + "_ApplicationLogo-DKaozThB.js", "resources/js/app.js" ] }, - "_InputError-B8NEdD9b.js": { - "file": "assets/InputError-B8NEdD9b.js", + "_InputError-KrPZcAOb.js": { + "file": "assets/InputError-KrPZcAOb.js", "name": "InputError", "imports": [ "resources/js/app.js" ] }, - "_InputLabel-omYb-gwx.js": { - "file": "assets/InputLabel-omYb-gwx.js", + "_InputLabel-Wt1TYZ0A.js": { + "file": "assets/InputLabel-Wt1TYZ0A.js", "name": "InputLabel", "imports": [ "resources/js/app.js" ] }, - "_PaginatorComponent-C4rhva1F.js": { - "file": "assets/PaginatorComponent-C4rhva1F.js", + "_PaginatorComponent-CoSTMxRA.js": { + "file": "assets/PaginatorComponent-CoSTMxRA.js", "name": "PaginatorComponent", "imports": [ - "_SecondaryButton-DvjXhVuA.js", + "_SecondaryButton-CDQDA5dD.js", "__plugin-vue_export-helper-DlAUqK2U.js", "resources/js/app.js" ] }, - "_PrimaryButton-CiDAOitU.js": { - "file": "assets/PrimaryButton-CiDAOitU.js", + "_PrimaryButton-CIB81Yr_.js": { + "file": "assets/PrimaryButton-CIB81Yr_.js", "name": "PrimaryButton", "imports": [ "__plugin-vue_export-helper-DlAUqK2U.js", "resources/js/app.js" ] }, - "_SecondaryButton-DvjXhVuA.js": { - "file": "assets/SecondaryButton-DvjXhVuA.js", + "_SecondaryButton-CDQDA5dD.js": { + "file": "assets/SecondaryButton-CDQDA5dD.js", "name": "SecondaryButton", "imports": [ "resources/js/app.js" ] }, - "_TextInput-Fah8vm6N.js": { - "file": "assets/TextInput-Fah8vm6N.js", + "_TextInput-CvMe3C5R.js": { + "file": "assets/TextInput-CvMe3C5R.js", "name": "TextInput", "imports": [ "resources/js/app.js" ] }, - "_VoucherSetsComponent-ChybDy2V.js": { - "file": "assets/VoucherSetsComponent-ChybDy2V.js", + "_VoucherSetsComponent-BkEVj6A7.js": { + "file": "assets/VoucherSetsComponent-BkEVj6A7.js", "name": "VoucherSetsComponent", "imports": [ "resources/js/app.js", - "_PaginatorComponent-C4rhva1F.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js" + "_PaginatorComponent-CoSTMxRA.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js" ] }, - "_VouchersComponent-C8urwp1U.js": { - "file": "assets/VouchersComponent-C8urwp1U.js", + "_VouchersComponent-B1EjqngZ.js": { + "file": "assets/VouchersComponent-B1EjqngZ.js", "name": "VouchersComponent", "imports": [ "resources/js/app.js", - "_PaginatorComponent-C4rhva1F.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js" + "_PaginatorComponent-CoSTMxRA.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js" ] }, "__plugin-vue_export-helper-DlAUqK2U.js": { "file": "assets/_plugin-vue_export-helper-DlAUqK2U.js", "name": "_plugin-vue_export-helper" }, - "_dayjs.min-DM5MTW9C.js": { - "file": "assets/dayjs.min-DM5MTW9C.js", + "_dayjs.min-LcFuhhy0.js": { + "file": "assets/dayjs.min-LcFuhhy0.js", "name": "dayjs.min", "imports": [ "resources/js/app.js" ] }, - "_localizedFormat-CoQqglmK.js": { - "file": "assets/localizedFormat-CoQqglmK.js", + "_localizedFormat-DzqPGGN8.js": { + "file": "assets/localizedFormat-DzqPGGN8.js", "name": "localizedFormat", "imports": [ "resources/js/app.js" ] }, - "_relativeTime-CdoPJJJp.js": { - "file": "assets/relativeTime-CdoPJJJp.js", + "_relativeTime-Bgw1Nd-u.js": { + "file": "assets/relativeTime-Bgw1Nd-u.js", "name": "relativeTime", "imports": [ "resources/js/app.js" ] }, - "_utc-CsIElMW4.js": { - "file": "assets/utc-CsIElMW4.js", + "_utc-D9fONLNZ.js": { + "file": "assets/utc-D9fONLNZ.js", "name": "utc", "imports": [ "resources/js/app.js" ] }, "resources/js/Pages/Admin/APIAccessTokens/APIAccessToken.vue": { - "file": "assets/APIAccessToken-dC82aTmh.js", + "file": "assets/APIAccessToken-A3K8OPmV.js", "name": "APIAccessToken", "src": "resources/js/Pages/Admin/APIAccessTokens/APIAccessToken.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_localizedFormat-CoQqglmK.js", - "_PrimaryButton-CiDAOitU.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_localizedFormat-DzqPGGN8.js", + "_PrimaryButton-CIB81Yr_.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Admin/APIAccessTokens/APIAccessTokens.vue": { - "file": "assets/APIAccessTokens-BLhAXCxE.js", + "file": "assets/APIAccessTokens-W2G_Brik.js", "name": "APIAccessTokens", "src": "resources/js/Pages/Admin/APIAccessTokens/APIAccessTokens.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_PaginatorComponent-C4rhva1F.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_PaginatorComponent-CoSTMxRA.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_SecondaryButton-DvjXhVuA.js" + "_PrimaryButton-CIB81Yr_.js", + "_SecondaryButton-CDQDA5dD.js" ] }, "resources/js/Pages/Admin/AdminHome.vue": { - "file": "assets/AdminHome-R5_UARE1.js", + "file": "assets/AdminHome-DTetEXIL.js", "name": "AdminHome", "src": "resources/js/Pages/Admin/AdminHome.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_SecondaryButton-DvjXhVuA.js", - "_AjaxLoadingIndicator-C8UwDW2j.js", - "_AuditItemsComponent-C7YXeZNy.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_SecondaryButton-CDQDA5dD.js", + "_AjaxLoadingIndicator-jzrn0AI8.js", + "_AuditItemsComponent-CfExzXjd.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_dayjs.min-DM5MTW9C.js" + "_PrimaryButton-CIB81Yr_.js", + "_dayjs.min-LcFuhhy0.js" ] }, "resources/js/Pages/Admin/Teams/Team.vue": { - "file": "assets/Team-r_mqDnKu.js", + "file": "assets/Team-D8FdxRdY.js", "name": "Team", "src": "resources/js/Pages/Admin/Teams/Team.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_AuthenticatedLayout-ibOQYoAA.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_PaginatorComponent-C4rhva1F.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_InputLabel-omYb-gwx.js", - "_AdminTeamCreateComponent-8M73tbc7.js", - "_AdminUserDetailsComponent--1S10Mhu.js", - "_SecondaryButton-DvjXhVuA.js", - "_AjaxLoadingIndicator-C8UwDW2j.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_DangerButton-BzsUR-6s.js", - "_VoucherSetsComponent-ChybDy2V.js", - "_VouchersComponent-C8urwp1U.js", - "_ApplicationLogo-BfIosL1f.js", + "_AuthenticatedLayout-BUPPfdhf.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_PaginatorComponent-CoSTMxRA.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_InputLabel-Wt1TYZ0A.js", + "_AdminTeamCreateComponent-9Mr34fB9.js", + "_AdminUserDetailsComponent-DStHbtVS.js", + "_SecondaryButton-CDQDA5dD.js", + "_AjaxLoadingIndicator-jzrn0AI8.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_DangerButton-Dm1RaOMo.js", + "_VoucherSetsComponent-BkEVj6A7.js", + "_VouchersComponent-B1EjqngZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Admin/Teams/TeamNew.vue": { - "file": "assets/TeamNew-DgOStchy.js", + "file": "assets/TeamNew-FoGsvxHV.js", "name": "TeamNew", "src": "resources/js/Pages/Admin/Teams/TeamNew.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_AdminTeamCreateComponent-8M73tbc7.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_AdminTeamCreateComponent-9Mr34fB9.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js" + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js" ] }, "resources/js/Pages/Admin/Teams/Teams.vue": { - "file": "assets/Teams-BCjNg0Vs.js", + "file": "assets/Teams-DZ43y8GK.js", "name": "Teams", "src": "resources/js/Pages/Admin/Teams/Teams.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_PrimaryButton-CiDAOitU.js", - "_PaginatorComponent-C4rhva1F.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_PrimaryButton-CIB81Yr_.js", + "_PaginatorComponent-CoSTMxRA.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_SecondaryButton-DvjXhVuA.js" + "_SecondaryButton-CDQDA5dD.js" ] }, "resources/js/Pages/Admin/Users/User.vue": { - "file": "assets/User-C8oSwsSl.js", + "file": "assets/User-BUwPGeNK.js", "name": "User", "src": "resources/js/Pages/Admin/Users/User.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_AuthenticatedLayout-ibOQYoAA.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_PaginatorComponent-C4rhva1F.js", - "_AdminUserDetailsComponent--1S10Mhu.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_SecondaryButton-DvjXhVuA.js", - "_ApplicationLogo-BfIosL1f.js", + "_AuthenticatedLayout-BUPPfdhf.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_PaginatorComponent-CoSTMxRA.js", + "_AdminUserDetailsComponent-DStHbtVS.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_SecondaryButton-CDQDA5dD.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Admin/Users/Users.vue": { - "file": "assets/Users-fB1pYr8f.js", + "file": "assets/Users-DcLgqFTR.js", "name": "Users", "src": "resources/js/Pages/Admin/Users/Users.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_PaginatorComponent-C4rhva1F.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_PaginatorComponent-CoSTMxRA.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_SecondaryButton-DvjXhVuA.js" + "_PrimaryButton-CIB81Yr_.js", + "_SecondaryButton-CDQDA5dD.js" ] }, "resources/js/Pages/Admin/VoucherRedemptions/VoucherRedemption.vue": { - "file": "assets/VoucherRedemption-Ba1mDZU6.js", + "file": "assets/VoucherRedemption-ByOfqClZ.js", "name": "VoucherRedemption", "src": "resources/js/Pages/Admin/VoucherRedemptions/VoucherRedemption.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js" + "_PrimaryButton-CIB81Yr_.js" ] }, "resources/js/Pages/Admin/VoucherRedemptions/VoucherRedemptions.vue": { - "file": "assets/VoucherRedemptions-BJ2Z8SKl.js", + "file": "assets/VoucherRedemptions-D2AdAWMF.js", "name": "VoucherRedemptions", "src": "resources/js/Pages/Admin/VoucherRedemptions/VoucherRedemptions.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_PaginatorComponent-C4rhva1F.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_PaginatorComponent-CoSTMxRA.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_SecondaryButton-DvjXhVuA.js" + "_PrimaryButton-CIB81Yr_.js", + "_SecondaryButton-CDQDA5dD.js" ] }, "resources/js/Pages/Admin/VoucherSets/VoucherSet.vue": { - "file": "assets/VoucherSet-C_FioOoJ.js", + "file": "assets/VoucherSet-Zt9y5gmI.js", "name": "VoucherSet", "src": "resources/js/Pages/Admin/VoucherSets/VoucherSet.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_VouchersComponent-C8urwp1U.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_VouchersComponent-B1EjqngZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_PaginatorComponent-C4rhva1F.js", - "_SecondaryButton-DvjXhVuA.js" + "_PrimaryButton-CIB81Yr_.js", + "_PaginatorComponent-CoSTMxRA.js", + "_SecondaryButton-CDQDA5dD.js" ] }, "resources/js/Pages/Admin/VoucherSets/VoucherSetNew.vue": { - "file": "assets/VoucherSetNew-CQJWXEMg.js", + "file": "assets/VoucherSetNew-ByqV2Gjw.js", "name": "VoucherSetNew", "src": "resources/js/Pages/Admin/VoucherSets/VoucherSetNew.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_SecondaryButton-DvjXhVuA.js", - "_PrimaryButton-CiDAOitU.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_SecondaryButton-CDQDA5dD.js", + "_PrimaryButton-CIB81Yr_.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Admin/VoucherSets/VoucherSets.vue": { - "file": "assets/VoucherSets-CVZed9zf.js", + "file": "assets/VoucherSets-DE1EHO3P.js", "name": "VoucherSets", "src": "resources/js/Pages/Admin/VoucherSets/VoucherSets.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_VoucherSetsComponent-ChybDy2V.js", - "_PrimaryButton-CiDAOitU.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_VoucherSetsComponent-BkEVj6A7.js", + "_PrimaryButton-CIB81Yr_.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PaginatorComponent-C4rhva1F.js", - "_SecondaryButton-DvjXhVuA.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js" + "_PaginatorComponent-CoSTMxRA.js", + "_SecondaryButton-CDQDA5dD.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js" ] }, "resources/js/Pages/Admin/VoucherTemplates/VoucherTemplateEdit.vue": { - "file": "assets/VoucherTemplateEdit-C1HbSQCo.js", + "file": "assets/VoucherTemplateEdit-B8xCAdSL.js", "name": "VoucherTemplateEdit", "src": "resources/js/Pages/Admin/VoucherTemplates/VoucherTemplateEdit.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_AdminTeamVoucherTemplateEditComponent-CTGs70yY.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_InputLabel-omYb-gwx.js", - "_SecondaryButton-DvjXhVuA.js", - "_DangerButton-BzsUR-6s.js", - "_Checkbox-BkCSZ4j2.js" + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_InputLabel-Wt1TYZ0A.js", + "_SecondaryButton-CDQDA5dD.js", + "_DangerButton-Dm1RaOMo.js", + "_Checkbox-lS5kFIWr.js" ] }, "resources/js/Pages/Admin/VoucherTemplates/VoucherTemplateNew.vue": { - "file": "assets/VoucherTemplateNew-B86O0X6X.js", + "file": "assets/VoucherTemplateNew-BINnLav-.js", "name": "VoucherTemplateNew", "src": "resources/js/Pages/Admin/VoucherTemplates/VoucherTemplateNew.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_AdminTeamVoucherTemplateEditComponent-Bu_9g4K0.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_AdminTeamVoucherTemplateEditComponent-CTGs70yY.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_InputLabel-omYb-gwx.js", - "_SecondaryButton-DvjXhVuA.js", - "_DangerButton-BzsUR-6s.js", - "_Checkbox-BkCSZ4j2.js" + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_InputLabel-Wt1TYZ0A.js", + "_SecondaryButton-CDQDA5dD.js", + "_DangerButton-Dm1RaOMo.js", + "_Checkbox-lS5kFIWr.js" ] }, "resources/js/Pages/Admin/Vouchers/Voucher.vue": { - "file": "assets/Voucher-DXAhWrlI.js", + "file": "assets/Voucher-Cp15zt8G.js", "name": "Voucher", "src": "resources/js/Pages/Admin/Vouchers/Voucher.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js" + "_PrimaryButton-CIB81Yr_.js" ] }, "resources/js/Pages/Admin/Vouchers/Vouchers.vue": { - "file": "assets/Vouchers-HdBjeyaO.js", + "file": "assets/Vouchers-Docqnsjz.js", "name": "Vouchers", "src": "resources/js/Pages/Admin/Vouchers/Vouchers.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AdminTopNavigation-n1SbFb1e.js", - "_VouchersComponent-C8urwp1U.js", - "_ApplicationLogo-BfIosL1f.js", + "_AdminTopNavigation-DhGdPzlz.js", + "_VouchersComponent-B1EjqngZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_PaginatorComponent-C4rhva1F.js", - "_SecondaryButton-DvjXhVuA.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js" + "_PrimaryButton-CIB81Yr_.js", + "_PaginatorComponent-CoSTMxRA.js", + "_SecondaryButton-CDQDA5dD.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js" ] }, "resources/js/Pages/App/ErrorMessagePage.vue": { - "file": "assets/ErrorMessagePage-CEHNAMUs.js", + "file": "assets/ErrorMessagePage-Cgxki2j-.js", "name": "ErrorMessagePage", "src": "resources/js/Pages/App/ErrorMessagePage.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_PrimaryButton-CiDAOitU.js", - "_ApplicationLogo-BfIosL1f.js", + "_PrimaryButton-CIB81Yr_.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/App/MyTeam.vue": { - "file": "assets/MyTeam-BIW5O6XV.js", + "file": "assets/MyTeam-DDDfjcxp.js", "name": "MyTeam", "src": "resources/js/Pages/App/MyTeam.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_TextInput-Fah8vm6N.js", - "_PrimaryButton-CiDAOitU.js", - "_ApplicationLogo-BfIosL1f.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_TextInput-CvMe3C5R.js", + "_PrimaryButton-CIB81Yr_.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/App/VoucherSets/MyTeamVoucherSets.vue": { - "file": "assets/MyTeamVoucherSets-Bv7bGieI.js", + "file": "assets/MyTeamVoucherSets-ibMyvl9J.js", "name": "MyTeamVoucherSets", "src": "resources/js/Pages/App/VoucherSets/MyTeamVoucherSets.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_PaginatorComponent-C4rhva1F.js", - "_ApplicationLogo-BfIosL1f.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_PaginatorComponent-CoSTMxRA.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_SecondaryButton-DvjXhVuA.js" + "_PrimaryButton-CIB81Yr_.js", + "_SecondaryButton-CDQDA5dD.js" ] }, "resources/js/Pages/App/VoucherSets/VoucherSetMerchantTeamApproval.vue": { - "file": "assets/VoucherSetMerchantTeamApproval-CY5mx9r_.js", + "file": "assets/VoucherSetMerchantTeamApproval-CR4Su_Hg.js", "name": "VoucherSetMerchantTeamApproval", "src": "resources/js/Pages/App/VoucherSets/VoucherSetMerchantTeamApproval.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_AuthenticatedLayout-ibOQYoAA.js", - "_PrimaryButton-CiDAOitU.js", - "_SecondaryButton-DvjXhVuA.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_ApplicationLogo-BfIosL1f.js", + "_AuthenticatedLayout-BUPPfdhf.js", + "_PrimaryButton-CIB81Yr_.js", + "_SecondaryButton-CDQDA5dD.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/App/Vouchers/Voucher.vue": { - "file": "assets/Voucher-DkFPHOzd.js", + "file": "assets/Voucher-KQ9YSfBi.js", "name": "Voucher", "src": "resources/js/Pages/App/Vouchers/Voucher.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_AuthenticatedLayout-ibOQYoAA.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_localizedFormat-CoQqglmK.js", - "_utc-CsIElMW4.js", - "_PrimaryButton-CiDAOitU.js", - "_SecondaryButton-DvjXhVuA.js", - "_ApplicationLogo-BfIosL1f.js", + "_AuthenticatedLayout-BUPPfdhf.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_localizedFormat-DzqPGGN8.js", + "_utc-D9fONLNZ.js", + "_PrimaryButton-CIB81Yr_.js", + "_SecondaryButton-CDQDA5dD.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/App/Vouchers/VoucherRedeem.vue": { - "file": "assets/VoucherRedeem-BIWa6ByF.js", + "file": "assets/VoucherRedeem-BBaMZ4wj.js", "name": "VoucherRedeem", "src": "resources/js/Pages/App/Vouchers/VoucherRedeem.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_AuthenticatedLayout-ibOQYoAA.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_ApplicationLogo-BfIosL1f.js", + "_AuthenticatedLayout-BUPPfdhf.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js" + "_PrimaryButton-CIB81Yr_.js" ] }, "resources/js/Pages/App/Vouchers/VoucherSet.vue": { - "file": "assets/VoucherSet-DMNIDxAN.js", + "file": "assets/VoucherSet-GzhgjQNh.js", "name": "VoucherSet", "src": "resources/js/Pages/App/Vouchers/VoucherSet.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_dayjs.min-DM5MTW9C.js", - "_relativeTime-CdoPJJJp.js", - "_utc-CsIElMW4.js", - "_PaginatorComponent-C4rhva1F.js", - "_ApplicationLogo-BfIosL1f.js", + "_dayjs.min-LcFuhhy0.js", + "_relativeTime-Bgw1Nd-u.js", + "_utc-D9fONLNZ.js", + "_PaginatorComponent-CoSTMxRA.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_SecondaryButton-DvjXhVuA.js" + "_PrimaryButton-CIB81Yr_.js", + "_SecondaryButton-CDQDA5dD.js" ] }, "resources/js/Pages/AuditItems.vue": { - "file": "assets/AuditItems-DIKou6QV.js", + "file": "assets/AuditItems-4c_EuhGC.js", "name": "AuditItems", "src": "resources/js/Pages/AuditItems.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_AuditItemsComponent-C7YXeZNy.js", - "_ApplicationLogo-BfIosL1f.js", + "_AuditItemsComponent-CfExzXjd.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_dayjs.min-DM5MTW9C.js" + "_PrimaryButton-CIB81Yr_.js", + "_dayjs.min-LcFuhhy0.js" ] }, "resources/js/Pages/Auth/ConfirmPassword.vue": { - "file": "assets/ConfirmPassword-so3GG3w2.js", + "file": "assets/ConfirmPassword-C2XqwsFY.js", "name": "ConfirmPassword", "src": "resources/js/Pages/Auth/ConfirmPassword.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_GuestLayout-BXXL9wvL.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_ApplicationLogo-BfIosL1f.js", + "_GuestLayout-C6KGR1m6.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Auth/ForgotPassword.vue": { - "file": "assets/ForgotPassword-E4Xdb2Gm.js", + "file": "assets/ForgotPassword-d4vaXXEc.js", "name": "ForgotPassword", "src": "resources/js/Pages/Auth/ForgotPassword.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_GuestLayout-BXXL9wvL.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_ApplicationLogo-BfIosL1f.js", + "_GuestLayout-C6KGR1m6.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Auth/Login.vue": { - "file": "assets/Login-B8EDuc_R.js", + "file": "assets/Login-BTp1pdSs.js", "name": "Login", "src": "resources/js/Pages/Auth/Login.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_Checkbox-BkCSZ4j2.js", - "_GuestLayout-BXXL9wvL.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_ApplicationLogo-BfIosL1f.js", + "_Checkbox-lS5kFIWr.js", + "_GuestLayout-C6KGR1m6.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Auth/Register.vue": { - "file": "assets/Register-BYssDH9v.js", + "file": "assets/Register-DQ-ZQSRR.js", "name": "Register", "src": "resources/js/Pages/Auth/Register.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_GuestLayout-BXXL9wvL.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_ApplicationLogo-BfIosL1f.js", + "_GuestLayout-C6KGR1m6.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Auth/ResetPassword.vue": { - "file": "assets/ResetPassword-CUxvjknQ.js", + "file": "assets/ResetPassword-CchZ69XZ.js", "name": "ResetPassword", "src": "resources/js/Pages/Auth/ResetPassword.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_GuestLayout-BXXL9wvL.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", - "_ApplicationLogo-BfIosL1f.js", + "_GuestLayout-C6KGR1m6.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Auth/VerifyEmail.vue": { - "file": "assets/VerifyEmail-BHhXe_r5.js", + "file": "assets/VerifyEmail-3E5pnoqD.js", "name": "VerifyEmail", "src": "resources/js/Pages/Auth/VerifyEmail.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_GuestLayout-BXXL9wvL.js", - "_PrimaryButton-CiDAOitU.js", - "_ApplicationLogo-BfIosL1f.js", + "_GuestLayout-C6KGR1m6.js", + "_PrimaryButton-CIB81Yr_.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Dashboard.vue": { - "file": "assets/Dashboard-BxMYZBzR.js", + "file": "assets/Dashboard-CXg49ttj.js", "name": "Dashboard", "src": "resources/js/Pages/Dashboard.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", - "_ApplicationLogo-BfIosL1f.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js" + "_PrimaryButton-CIB81Yr_.js" ] }, "resources/js/Pages/Profile/Edit.vue": { - "file": "assets/Edit-Ctxd-0w5.js", + "file": "assets/Edit-CXTB1KZY.js", "name": "Edit", "src": "resources/js/Pages/Profile/Edit.vue", "isDynamicEntry": true, "imports": [ - "_AuthenticatedLayout-ibOQYoAA.js", + "_AuthenticatedLayout-BUPPfdhf.js", "resources/js/app.js", "resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue", "resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue", - "_ApplicationLogo-BfIosL1f.js", + "_ApplicationLogo-DKaozThB.js", "__plugin-vue_export-helper-DlAUqK2U.js", - "_PrimaryButton-CiDAOitU.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_TextInput-Fah8vm6N.js" + "_PrimaryButton-CIB81Yr_.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_TextInput-CvMe3C5R.js" ] }, "resources/js/Pages/Profile/Partials/DeleteUserForm.vue": { - "file": "assets/DeleteUserForm-BxQTPWXE.js", + "file": "assets/DeleteUserForm-BqxawtV2.js", "name": "DeleteUserForm", "src": "resources/js/Pages/Profile/Partials/DeleteUserForm.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_DangerButton-BzsUR-6s.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_SecondaryButton-DvjXhVuA.js", - "_TextInput-Fah8vm6N.js", + "_DangerButton-Dm1RaOMo.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_SecondaryButton-CDQDA5dD.js", + "_TextInput-CvMe3C5R.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue": { - "file": "assets/UpdatePasswordForm-CmkItG6E.js", + "file": "assets/UpdatePasswordForm-DPOMbBpC.js", "name": "UpdatePasswordForm", "src": "resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue": { - "file": "assets/UpdateProfileInformationForm-C5Npts88.js", + "file": "assets/UpdateProfileInformationForm-BDimdmua.js", "name": "UpdateProfileInformationForm", "src": "resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue", "isDynamicEntry": true, "imports": [ "resources/js/app.js", - "_InputError-B8NEdD9b.js", - "_InputLabel-omYb-gwx.js", - "_PrimaryButton-CiDAOitU.js", - "_TextInput-Fah8vm6N.js", + "_InputError-KrPZcAOb.js", + "_InputLabel-Wt1TYZ0A.js", + "_PrimaryButton-CIB81Yr_.js", + "_TextInput-CvMe3C5R.js", "__plugin-vue_export-helper-DlAUqK2U.js" ] }, "resources/js/app.js": { - "file": "assets/app-NB_nCFcw.js", + "file": "assets/app-DAMU3Vsb.js", "name": "app", "src": "resources/js/app.js", "isEntry": true, diff --git a/resources/js/Components/Admin/TeamMerchantTeams/AdminTeamMerchantTeamsComponent.vue b/resources/js/Components/Admin/TeamMerchantTeams/AdminTeamMerchantTeamsComponent.vue index 1b308727..b8317734 100644 --- a/resources/js/Components/Admin/TeamMerchantTeams/AdminTeamMerchantTeamsComponent.vue +++ b/resources/js/Components/Admin/TeamMerchantTeams/AdminTeamMerchantTeamsComponent.vue @@ -37,7 +37,7 @@ function cancelAddingNewMerchant() { } function getMerchants(page = 1) { - console.log($props.team); + axios.get('/admin/team-merchant-teams?cached=false&where[]=team_id,' + $props.team.id + '&page=' + page + '&relations=merchantTeam').then(response => { merchants.value = response.data.data }).catch(error => { diff --git a/resources/js/Components/Admin/VoucherSets/VoucherSetNewComponent.vue b/resources/js/Components/Admin/VoucherSets/VoucherSetNewComponent.vue index 306e9328..79726476 100644 --- a/resources/js/Components/Admin/VoucherSets/VoucherSetNewComponent.vue +++ b/resources/js/Components/Admin/VoucherSets/VoucherSetNewComponent.vue @@ -36,6 +36,8 @@ const serviceTeamSearchQuery = ref(''); const myTeamVoucherTemplates = ref([]); const selectedVoucherTemplate = ref({}); +const valueOfSetInCountryCurrency = ref(0); + // Voucher set const voucherSet = ref({ is_test: 0, @@ -45,7 +47,7 @@ const voucherSet = ref({ voucher_template_id: '', total_set_value: 0, denominations: [ - {number: 1, value: 5}, + ], expires_at: '', voucher_set_type: '', @@ -59,6 +61,7 @@ function allocationRemaining() { return voucherSet.value.total_set_value - totalDenominations(); } + function createVoucherSet() { swal.fire({ @@ -71,6 +74,7 @@ function createVoucherSet() { if (resp.isConfirmed) { + let payload = Object.assign({}, voucherSet.value) axios.post('/admin/voucher-sets', voucherSet.value).then(response => { @@ -100,7 +104,7 @@ function createVoucherSet() { } function denominationAdd() { - voucherSet.value.denominations.push({value: 5, number: 1}) + voucherSet.value.denominations.push({value: 500, colloquialCurrencyUnitValue: 5, number: 1}) } function denominationDelete(index) { @@ -269,6 +273,12 @@ function unselectMerchantTeam(index) { } } +function denominationValueUpdate(denomination) { + denomination.value = denomination.colloquialCurrencyUnitValue * 100 + + // this.calculateNumberOfVouchers(); +} + /** * On mount */ @@ -276,6 +286,7 @@ onMounted(() => { getFundingTeams(); getServiceTeams(); getMyTeamVoucherTemplates(); + denominationAdd(); }) @@ -309,7 +320,12 @@ watch(merchantTeamSearchQuery, () => { watch(serviceTeamSearchQuery, () => { filterServiceTeams(); -}) +}); + +watch(valueOfSetInCountryCurrency, (value) => { + voucherSet.value.total_set_value = value * 100; +}); + @@ -650,7 +666,7 @@ watch(serviceTeamSearchQuery, () => { @@ -698,11 +714,11 @@ watch(serviceTeamSearchQuery, () => {
- Available to assign: {{ voucherSet.total_set_value }} + Available to assign: {{ (voucherSet.total_set_value / 100).toFixed(2) }} {{ $props.auth.teamCountry?.currency_code }}
- Remaining: {{ allocationRemaining() }} + Remaining: {{ (allocationRemaining() / 100 ).toFixed(2) }}
@@ -725,7 +741,8 @@ watch(serviceTeamSearchQuery, () => {
- @@ -740,6 +757,7 @@ watch(serviceTeamSearchQuery, () => {
+
@@ -761,10 +779,10 @@ watch(serviceTeamSearchQuery, () => {
- {{ totalDenominations() }} + {{ (totalDenominations() / 100).toFixed(2) }}
- out of {{ voucherSet.total_set_value }} + out of {{ (voucherSet.total_set_value / 100).toFixed(2) }}
@@ -772,7 +790,7 @@ watch(serviceTeamSearchQuery, () => { - over budget -
- {{ allocationRemaining() }} remaining + {{ (allocationRemaining() / 100 ).toFixed(2) }} remaining
Voucher fully allocated @@ -1041,7 +1059,7 @@ watch(serviceTeamSearchQuery, () => {
  • It has a total value of: - {{ voucherSet.total_set_value }} + {{ (voucherSet.total_set_value / 100).toFixed(2) }}