From cae3fb16282c4dbc0c5d617beb0afac1b2671849 Mon Sep 17 00:00:00 2001 From: Paul Grimes Date: Thu, 9 Jan 2025 13:30:30 +1100 Subject: [PATCH] Prod build --- package-lock.json | 2 +- .../build/assets/APIAccessToken-CiLq3Ihr.js | 1 - .../build/assets/APIAccessToken-DVJEKbbO.js | 1 + .../build/assets/APIAccessTokens-Bz3iz2Yk.js | 1 - .../build/assets/APIAccessTokens-CmFMVmQM.js | 1 + public/build/assets/AdminHome-1TsBZ1Wn.js | 1 - public/build/assets/AdminHome-BHYHCxeK.js | 1 + ...s => AdminTeamCreateComponent-B1raYdMe.js} | 2 +- ...mVoucherTemplateEditComponent-BBFGzp1r.js} | 2 +- ...uSp_.js => AdminTopNavigation-B0MqavRN.js} | 2 +- ... => AdminUserDetailsComponent-B_Tqw-3x.js} | 2 +- .../assets/AjaxLoadingIndicator-DRLmxzaX.js | 1 + .../assets/AjaxLoadingIndicator-vGmUEu_U.js | 1 - ...yNwEwX1.js => ApplicationLogo-Bw-pd1Lv.js} | 2 +- public/build/assets/AuditItems-B6ZAjKje.js | 1 + public/build/assets/AuditItems-BkG124Pl.js | 1 - ...aox.js => AuditItemsComponent-CL0npyf8.js} | 2 +- .../assets/AuthenticatedLayout-CFkkM4Xw.js | 65 -- .../assets/AuthenticatedLayout-hK9Fu3Th.js | 65 ++ ...ckbox-B4dYSFbU.js => Checkbox-BDcuv2X-.js} | 2 +- .../build/assets/ConfirmPassword-BFiw9Mf2.js | 1 + .../build/assets/ConfirmPassword-fMx26ara.js | 1 - ...n-BXvpand6.js => DangerButton-C4Z82YQr.js} | 2 +- ...oard-Dxwif1t_.js => Dashboard-l0nhQHZU.js} | 2 +- .../build/assets/DeleteUserForm-CEXksFCm.js | 1 - .../build/assets/DeleteUserForm-DdjP3cEn.js | 1 + .../{Edit-e8vmtn8h.js => Edit-BsjSddeR.js} | 2 +- .../build/assets/ErrorMessagePage-BVnckikW.js | 1 + .../build/assets/ErrorMessagePage-Dfc4VZBm.js | 1 - ...BpmIqATb.js => ForgotPassword-DRyUAMfh.js} | 2 +- public/build/assets/GuestLayout-C-k_5Foa.js | 1 + public/build/assets/GuestLayout-CCWlBOd3.js | 1 - ...ror-D2YhlUuu.js => InputError-DUADqW-J.js} | 2 +- ...bel-CEnHGhsA.js => InputLabel-BBoqvM3u.js} | 2 +- .../{Login-EQqpAp49.js => Login-BHc1xN5p.js} | 2 +- public/build/assets/MyTeam-DF5vmHBf.js | 1 - public/build/assets/MyTeam-Djr2s1Td.js | 1 + .../assets/MyTeamVoucherSets-Cr7Jch_J.js | 1 - .../assets/MyTeamVoucherSets-D6R2UpPF.js | 1 + .../assets/PaginatorComponent-CMgspZ9V.js | 1 - .../assets/PaginatorComponent-d3Iyzo79.js | 1 + ...-lhUrXoRs.js => PrimaryButton-BXNSUttb.js} | 2 +- ...ister-hvwBXu_0.js => Register-D7HIhsHQ.js} | 2 +- ...-CCNd9Y2N.js => ResetPassword-C7ep2H8Z.js} | 2 +- ...0hUOCHS.js => SecondaryButton-DKtpCAKj.js} | 2 +- public/build/assets/Team-CZl5pAZo.js | 1 - public/build/assets/Team-DEg-2EFZ.js | 1 + public/build/assets/TeamNew-CP5pOCra.js | 1 + public/build/assets/TeamNew-TdnuEUjd.js | 1 - public/build/assets/Teams-Cz2FTtDY.js | 1 + public/build/assets/Teams-DNsfewGP.js | 1 - ...nput-BT-7frEH.js => TextInput-Cj2z7GCb.js} | 2 +- ...17jw.js => UpdatePasswordForm-DBws0n0d.js} | 2 +- ... UpdateProfileInformationForm-DPnCgghR.js} | 2 +- public/build/assets/User-CbVnqd_P.js | 1 + public/build/assets/User-f6FRCPRL.js | 1 - public/build/assets/Users-BPMsF6Ut.js | 1 + public/build/assets/Users-BsyPXlmB.js | 1 - public/build/assets/VerifyEmail-CcQXJlpL.js | 1 - public/build/assets/VerifyEmail-kHgsPgp4.js | 1 + public/build/assets/Voucher-BTS59G3H.js | 1 - ...oucher-DbrBg65i.js => Voucher-BvLwDaz5.js} | 2 +- public/build/assets/Voucher-DaeeJayC.js | 1 + public/build/assets/VoucherRedeem-Cp7ZPDBh.js | 1 + public/build/assets/VoucherRedeem-Mb5Z1MbJ.js | 1 - .../assets/VoucherRedemption-BAAy6YUl.js | 1 - .../assets/VoucherRedemption-r3J7-Ky1.js | 1 + ...5rbT.js => VoucherRedemptions-DisqLP9Y.js} | 2 +- public/build/assets/VoucherSet-CI0MSV9g.js | 1 - public/build/assets/VoucherSet-D4FQyn1p.js | 1 - public/build/assets/VoucherSet-DhA1rvxa.js | 1 + public/build/assets/VoucherSet-DuDUq463.js | 1 + ...oucherSetMerchantTeamApproval-D5dd_xmO.js} | 2 +- ...-DWnwgyYm.js => VoucherSetNew-DpU9MvYu.js} | 2 +- public/build/assets/VoucherSets-B_hIJD--.js | 1 + public/build/assets/VoucherSets-Drurrlm8.js | 1 - .../assets/VoucherSetsComponent-BlhvQ99p.js | 1 + .../assets/VoucherSetsComponent-DLemr3_-.js | 1 - .../assets/VoucherTemplateEdit-DmwU3T9Q.js | 1 - .../assets/VoucherTemplateEdit-DtPZSOue.js | 1 + .../assets/VoucherTemplateNew-CYEl8NyP.js | 1 - .../assets/VoucherTemplateNew-DyjVE-t-.js | 1 + public/build/assets/Vouchers-B7SD45jv.js | 1 - public/build/assets/Vouchers-BOxOofjx.js | 1 + .../assets/VouchersComponent-B8KOk0o_.js | 1 + .../assets/VouchersComponent-CuVgvWTH.js | 1 - public/build/assets/app-CblTTgyL.js | 103 -- public/build/assets/app-JIuq7t-B.js | 92 ++ public/build/assets/dayjs.min-CT9z215E.js | 1 + public/build/assets/dayjs.min-DpVcq2gO.js | 1 - .../build/assets/localizedFormat-Dbpc7gAa.js | 1 + .../build/assets/localizedFormat-gHlzfbQw.js | 1 - ...e-ByhsTu5L.js => relativeTime-B6HHAsX1.js} | 2 +- public/build/assets/utc-CHR93Tx7.js | 1 + public/build/assets/utc-CM4OPsp5.js | 1 - public/build/manifest.json | 722 ++++++------ resources/views/scribe/index.blade.php | 1020 ++++++++--------- 97 files changed, 1087 insertions(+), 1098 deletions(-) delete mode 100644 public/build/assets/APIAccessToken-CiLq3Ihr.js create mode 100644 public/build/assets/APIAccessToken-DVJEKbbO.js delete mode 100644 public/build/assets/APIAccessTokens-Bz3iz2Yk.js create mode 100644 public/build/assets/APIAccessTokens-CmFMVmQM.js delete mode 100644 public/build/assets/AdminHome-1TsBZ1Wn.js create mode 100644 public/build/assets/AdminHome-BHYHCxeK.js rename public/build/assets/{AdminTeamCreateComponent-i0AzNkZR.js => AdminTeamCreateComponent-B1raYdMe.js} (68%) rename public/build/assets/{AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js => AdminTeamVoucherTemplateEditComponent-BBFGzp1r.js} (91%) rename public/build/assets/{AdminTopNavigation-C3cfuSp_.js => AdminTopNavigation-B0MqavRN.js} (86%) rename public/build/assets/{AdminUserDetailsComponent-Dw2XKneS.js => AdminUserDetailsComponent-B_Tqw-3x.js} (66%) create mode 100644 public/build/assets/AjaxLoadingIndicator-DRLmxzaX.js delete mode 100644 public/build/assets/AjaxLoadingIndicator-vGmUEu_U.js rename public/build/assets/{ApplicationLogo-ByNwEwX1.js => ApplicationLogo-Bw-pd1Lv.js} (99%) create mode 100644 public/build/assets/AuditItems-B6ZAjKje.js delete mode 100644 public/build/assets/AuditItems-BkG124Pl.js rename public/build/assets/{AuditItemsComponent-DimcBaox.js => AuditItemsComponent-CL0npyf8.js} (60%) delete mode 100644 public/build/assets/AuthenticatedLayout-CFkkM4Xw.js create mode 100644 public/build/assets/AuthenticatedLayout-hK9Fu3Th.js rename public/build/assets/{Checkbox-B4dYSFbU.js => Checkbox-BDcuv2X-.js} (87%) create mode 100644 public/build/assets/ConfirmPassword-BFiw9Mf2.js delete mode 100644 public/build/assets/ConfirmPassword-fMx26ara.js rename public/build/assets/{DangerButton-BXvpand6.js => DangerButton-C4Z82YQr.js} (87%) rename public/build/assets/{Dashboard-Dxwif1t_.js => Dashboard-l0nhQHZU.js} (57%) delete mode 100644 public/build/assets/DeleteUserForm-CEXksFCm.js create mode 100644 public/build/assets/DeleteUserForm-DdjP3cEn.js rename public/build/assets/{Edit-e8vmtn8h.js => Edit-BsjSddeR.js} (51%) create mode 100644 public/build/assets/ErrorMessagePage-BVnckikW.js delete mode 100644 public/build/assets/ErrorMessagePage-Dfc4VZBm.js rename public/build/assets/{ForgotPassword-BpmIqATb.js => ForgotPassword-DRyUAMfh.js} (56%) create mode 100644 public/build/assets/GuestLayout-C-k_5Foa.js delete mode 100644 public/build/assets/GuestLayout-CCWlBOd3.js rename public/build/assets/{InputError-D2YhlUuu.js => InputError-DUADqW-J.js} (53%) rename public/build/assets/{InputLabel-CEnHGhsA.js => InputLabel-BBoqvM3u.js} (80%) rename public/build/assets/{Login-EQqpAp49.js => Login-BHc1xN5p.js} (65%) delete mode 100644 public/build/assets/MyTeam-DF5vmHBf.js create mode 100644 public/build/assets/MyTeam-Djr2s1Td.js delete mode 100644 public/build/assets/MyTeamVoucherSets-Cr7Jch_J.js create mode 100644 public/build/assets/MyTeamVoucherSets-D6R2UpPF.js delete mode 100644 public/build/assets/PaginatorComponent-CMgspZ9V.js create mode 100644 public/build/assets/PaginatorComponent-d3Iyzo79.js rename public/build/assets/{PrimaryButton-lhUrXoRs.js => PrimaryButton-BXNSUttb.js} (88%) rename public/build/assets/{Register-hvwBXu_0.js => Register-D7HIhsHQ.js} (73%) rename public/build/assets/{ResetPassword-CCNd9Y2N.js => ResetPassword-C7ep2H8Z.js} (77%) rename public/build/assets/{SecondaryButton-B0hUOCHS.js => SecondaryButton-DKtpCAKj.js} (75%) delete mode 100644 public/build/assets/Team-CZl5pAZo.js create mode 100644 public/build/assets/Team-DEg-2EFZ.js create mode 100644 public/build/assets/TeamNew-CP5pOCra.js delete mode 100644 public/build/assets/TeamNew-TdnuEUjd.js create mode 100644 public/build/assets/Teams-Cz2FTtDY.js delete mode 100644 public/build/assets/Teams-DNsfewGP.js rename public/build/assets/{TextInput-BT-7frEH.js => TextInput-Cj2z7GCb.js} (78%) rename public/build/assets/{UpdatePasswordForm-Bt8q17jw.js => UpdatePasswordForm-DBws0n0d.js} (87%) rename public/build/assets/{UpdateProfileInformationForm-B2hb0WtY.js => UpdateProfileInformationForm-DPnCgghR.js} (71%) create mode 100644 public/build/assets/User-CbVnqd_P.js delete mode 100644 public/build/assets/User-f6FRCPRL.js create mode 100644 public/build/assets/Users-BPMsF6Ut.js delete mode 100644 public/build/assets/Users-BsyPXlmB.js delete mode 100644 public/build/assets/VerifyEmail-CcQXJlpL.js create mode 100644 public/build/assets/VerifyEmail-kHgsPgp4.js delete mode 100644 public/build/assets/Voucher-BTS59G3H.js rename public/build/assets/{Voucher-DbrBg65i.js => Voucher-BvLwDaz5.js} (72%) create mode 100644 public/build/assets/Voucher-DaeeJayC.js create mode 100644 public/build/assets/VoucherRedeem-Cp7ZPDBh.js delete mode 100644 public/build/assets/VoucherRedeem-Mb5Z1MbJ.js delete mode 100644 public/build/assets/VoucherRedemption-BAAy6YUl.js create mode 100644 public/build/assets/VoucherRedemption-r3J7-Ky1.js rename public/build/assets/{VoucherRedemptions-CbBC5rbT.js => VoucherRedemptions-DisqLP9Y.js} (60%) delete mode 100644 public/build/assets/VoucherSet-CI0MSV9g.js delete mode 100644 public/build/assets/VoucherSet-D4FQyn1p.js create mode 100644 public/build/assets/VoucherSet-DhA1rvxa.js create mode 100644 public/build/assets/VoucherSet-DuDUq463.js rename public/build/assets/{VoucherSetMerchantTeamApproval-CrNhLJwz.js => VoucherSetMerchantTeamApproval-D5dd_xmO.js} (86%) rename public/build/assets/{VoucherSetNew-DWnwgyYm.js => VoucherSetNew-DpU9MvYu.js} (98%) create mode 100644 public/build/assets/VoucherSets-B_hIJD--.js delete mode 100644 public/build/assets/VoucherSets-Drurrlm8.js create mode 100644 public/build/assets/VoucherSetsComponent-BlhvQ99p.js delete mode 100644 public/build/assets/VoucherSetsComponent-DLemr3_-.js delete mode 100644 public/build/assets/VoucherTemplateEdit-DmwU3T9Q.js create mode 100644 public/build/assets/VoucherTemplateEdit-DtPZSOue.js delete mode 100644 public/build/assets/VoucherTemplateNew-CYEl8NyP.js create mode 100644 public/build/assets/VoucherTemplateNew-DyjVE-t-.js delete mode 100644 public/build/assets/Vouchers-B7SD45jv.js create mode 100644 public/build/assets/Vouchers-BOxOofjx.js create mode 100644 public/build/assets/VouchersComponent-B8KOk0o_.js delete mode 100644 public/build/assets/VouchersComponent-CuVgvWTH.js delete mode 100644 public/build/assets/app-CblTTgyL.js create mode 100644 public/build/assets/app-JIuq7t-B.js create mode 100644 public/build/assets/dayjs.min-CT9z215E.js delete mode 100644 public/build/assets/dayjs.min-DpVcq2gO.js create mode 100644 public/build/assets/localizedFormat-Dbpc7gAa.js delete mode 100644 public/build/assets/localizedFormat-gHlzfbQw.js rename public/build/assets/{relativeTime-ByhsTu5L.js => relativeTime-B6HHAsX1.js} (53%) create mode 100644 public/build/assets/utc-CHR93Tx7.js delete mode 100644 public/build/assets/utc-CM4OPsp5.js diff --git a/package-lock.json b/package-lock.json index 3737a8d..14920f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "dayjs": "^1.11.12", "laravel-vite-plugin": "^1.1.0", "postcss": "^8.4.31", - "sweetalert2": "^11.12.4", + "sweetalert2": "^11.15.10", "tailwindcss": "^3.2.1", "vite": "^6.0.2", "vue": "^3.4.0", diff --git a/public/build/assets/APIAccessToken-CiLq3Ihr.js b/public/build/assets/APIAccessToken-CiLq3Ihr.js deleted file mode 100644 index 4e0908e..0000000 --- a/public/build/assets/APIAccessToken-CiLq3Ihr.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as h,S as y}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as B}from"./AdminTopNavigation-C3cfuSp_.js";import{d as c}from"./dayjs.min-DpVcq2gO.js";import{r as C}from"./relativeTime-ByhsTu5L.js";import{l as N}from"./localizedFormat-gHlzfbQw.js";import{P}from"./PrimaryButton-lhUrXoRs.js";import"./ApplicationLogo-ByNwEwX1.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/APIAccessToken-DVJEKbbO.js b/public/build/assets/APIAccessToken-DVJEKbbO.js new file mode 100644 index 0000000..9bbebe5 --- /dev/null +++ b/public/build/assets/APIAccessToken-DVJEKbbO.js @@ -0,0 +1 @@ +import{_ as h,S as y}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as A,o as x,c as i,a as r,u as v,w as d,F as g,b as l,d as w,e as t,t as a,f as n,P as T,g as u}from"./app-JIuq7t-B.js";import{_ as P}from"./AdminTopNavigation-B0MqavRN.js";import{d as c}from"./dayjs.min-CT9z215E.js";import{r as B}from"./relativeTime-B6HHAsX1.js";import{l as C}from"./localizedFormat-Dbpc7gAa.js";import{P as N}from"./PrimaryButton-BXNSUttb.js";import"./ApplicationLogo-Bw-pd1Lv.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"},U={__name:"APIAccessToken",props:{id:{required:!0,type:Number}},setup(k){const p=k,s=A({});x(()=>{_()});function m(o){return c.extend(B),c.extend(C),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(g,null,[r(v(w),{title:"API Access Token"}),r(h,null,{header:d(()=>[r(P)]),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(N,{onClick:e[0]||(e[0]=f=>b())},{default:d(()=>e[8]||(e[8]=[n(" Revoke this token ")])),_:1})])]),_:1})],64))}};export{U as default}; diff --git a/public/build/assets/APIAccessTokens-Bz3iz2Yk.js b/public/build/assets/APIAccessTokens-Bz3iz2Yk.js deleted file mode 100644 index e04c896..0000000 --- a/public/build/assets/APIAccessTokens-Bz3iz2Yk.js +++ /dev/null @@ -1 +0,0 @@ -import{_}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as y}from"./AdminTopNavigation-C3cfuSp_.js";import{P as A}from"./PaginatorComponent-CMgspZ9V.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./SecondaryButton-B0hUOCHS.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/APIAccessTokens-CmFMVmQM.js b/public/build/assets/APIAccessTokens-CmFMVmQM.js new file mode 100644 index 0000000..e04a031 --- /dev/null +++ b/public/build/assets/APIAccessTokens-CmFMVmQM.js @@ -0,0 +1 @@ +import{_}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as f,o as h,c as n,a as r,u,w as c,F as m,b as o,d as v,e,h as g,g as p,i as x,P as k,t as d,f as w}from"./app-JIuq7t-B.js";import{_ as y}from"./AdminTopNavigation-B0MqavRN.js";import{P as A}from"./PaginatorComponent-d3Iyzo79.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./SecondaryButton-DKtpCAKj.js";const P={class:"card"},B={key:0},b={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"},q={__name:"APIAccessTokens",setup(I){const t=f({});h(()=>{l()});function l(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",P,[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",b,[e("div",null,[e("div",T,[e("span",C," #"+d(a.id),1),w(" "+d(a.name),1)]),a.user?(o(),n("div",N," Issued to: "+d(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:l,"pagination-data":t.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{q as default}; diff --git a/public/build/assets/AdminHome-1TsBZ1Wn.js b/public/build/assets/AdminHome-1TsBZ1Wn.js deleted file mode 100644 index 3d88e85..0000000 --- a/public/build/assets/AdminHome-1TsBZ1Wn.js +++ /dev/null @@ -1 +0,0 @@ -import{S as p,_ as g}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as S}from"./AdminTopNavigation-C3cfuSp_.js";import{_ as d}from"./SecondaryButton-B0hUOCHS.js";import{_ as $}from"./AjaxLoadingIndicator-vGmUEu_U.js";import{_ as j}from"./AuditItemsComponent-DimcBaox.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./dayjs.min-DpVcq2gO.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/AdminHome-BHYHCxeK.js b/public/build/assets/AdminHome-BHYHCxeK.js new file mode 100644 index 0000000..e0fe206 --- /dev/null +++ b/public/build/assets/AdminHome-BHYHCxeK.js @@ -0,0 +1 @@ +import{S as p,_ as g}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as m,b as c,c as v,a as t,e,w as l,u as r,P as i,t as u,F as y,d as w}from"./app-JIuq7t-B.js";import{_ as S}from"./AdminTopNavigation-B0MqavRN.js";import{_ as d}from"./SecondaryButton-DKtpCAKj.js";import{_ as $}from"./AjaxLoadingIndicator-DRLmxzaX.js";import{_ as j}from"./AuditItemsComponent-CL0npyf8.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./dayjs.min-CT9z215E.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"},P={class:"w-full"},A={class:"flex justify-center text-3xl"},E={class:"w-full"},H={class:"flex justify-center text-3xl"},I={class:"w-full"},T={class:"flex justify-center text-3xl"},U={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 n(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(i),{href:a.route("admin.users"),class:"hover:no-underline"},{default:l(()=>[e("div",N,u(n(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(i),{href:a.route("admin.teams"),class:"hover:no-underline"},{default:l(()=>[e("div",F,u(n(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(i),{href:a.route("admin.voucher-sets"),class:"hover:no-underline"},{default:l(()=>[e("div",k,u(n(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(i),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",O,u(n(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",P,[t(r(i),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",A,u(n(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",E,[t(r(i),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",H,u(n(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",I,[t(r(i),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",T,u(n(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",U,[t(r(i),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",q,u(n(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-i0AzNkZR.js b/public/build/assets/AdminTeamCreateComponent-B1raYdMe.js similarity index 68% rename from public/build/assets/AdminTeamCreateComponent-i0AzNkZR.js rename to public/build/assets/AdminTeamCreateComponent-B1raYdMe.js index d5fc771..fdce4c9 100644 --- a/public/build/assets/AdminTeamCreateComponent-i0AzNkZR.js +++ b/public/build/assets/AdminTeamCreateComponent-B1raYdMe.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-CblTTgyL.js";import{_ as B}from"./TextInput-BT-7frEH.js";import{P as T}from"./PrimaryButton-lhUrXoRs.js";import{S as c}from"./AuthenticatedLayout-CFkkM4Xw.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,e as o,f as r,a as d,l as x,v as S,F as w,h as C,t as k,w as V,n as g,k as N}from"./app-JIuq7t-B.js";import{_ as h}from"./TextInput-Cj2z7GCb.js";import{P as B}from"./PrimaryButton-BXNSUttb.js";import{S as c}from"./AuthenticatedLayout-hK9Fu3Th.js";const T={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",T,[o("label",j,[e[4]||(e[4]=r(" Team Name: ")),d(h,{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},k(s.name),9,D))),128))],512),[[S,t.value.country_id]])])])]),o("div",F,[d(B,{class:g([{"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:V(()=>e[7]||(e[7]=[r(" Submit ")])),_:1},8,["class","disabled"])])],32))}};export{E as _}; diff --git a/public/build/assets/AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js b/public/build/assets/AdminTeamVoucherTemplateEditComponent-BBFGzp1r.js similarity index 91% rename from public/build/assets/AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js rename to public/build/assets/AdminTeamVoucherTemplateEditComponent-BBFGzp1r.js index 929193f..d7bb9c0 100644 --- a/public/build/assets/AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js +++ b/public/build/assets/AdminTeamVoucherTemplateEditComponent-BBFGzp1r.js @@ -1 +1 @@ -import{x as Ue,r as L,p as $e,y as Be,o as we,z as Me,A as Q,B as qe,b as x,c as D,d as s,C as ce,D as ve,f as R,a as g,F as Ne,g as We,w as _,e as b,t as J,u as Ye,i as Ge,k as oe,l as F,q as k,n as pe}from"./app-CblTTgyL.js";import{_ as He}from"./TextInput-BT-7frEH.js";import{_ as w}from"./InputLabel-CEnHGhsA.js";import{P as Ke}from"./PrimaryButton-lhUrXoRs.js";import{S as te}from"./AuthenticatedLayout-CFkkM4Xw.js";import{_ as Xe}from"./SecondaryButton-B0hUOCHS.js";import{D as me}from"./DangerButton-BXvpand6.js";import{_ as Qe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Je}from"./Checkbox-B4dYSFbU.js";function N(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(c){try{l(i.next(c))}catch(m){f(m)}}function h(c){try{l(i.throw(c))}catch(m){f(m)}}function l(c){c.done?n(c.value):a(c.value).then(p,h)}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(c){return h([l,c])}}function h(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 et(){for(var t=[],r=0;r0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function rt(t){var r=t.name,e=r&&r.lastIndexOf(".")!==-1;if(e&&!t.type){var i=r.split(".").pop().toLowerCase(),a=tt.get(i);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var nt=[".DS_Store","Thumbs.db"];function ot(t){return N(this,void 0,void 0,function(){return W(this,function(r){return[2,at(t)&&t.dataTransfer?ut(t.dataTransfer,t.type):it(t)]})})}function at(t){return!!t.dataTransfer}function it(t){var r=lt(t.target)?t.target.files?ae(t.target.files):[]:[];return r.map(function(e){return ne(e)})}function lt(t){return t!==null}function ut(t,r){return N(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(st))]):[3,2];case 1:return i=a.sent(),[2,ge(Ee(i))];case 2:return[2,ge(ae(t.files).map(function(n){return ne(n)}))]}})})}function ge(t){return t.filter(function(r){return nt.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,xe(e)];if(t.sizee)return[!1,xe(e)]}return[!0,null]}function j(){for(var t=[],r=0;r1||n&&f>=1&&r.length>f?!1:r.every(function(p){var h=Ce(p,e)[0],l=Se(p,i,a)[0];return h&&l})}var St={disabled:!1,getFilesFromEvent:ot,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function Pt(t){t===void 0&&(t={});var r=L(P(P({},St),t));$e(function(){return P({},t)},function(u){r.value=P(P({},r.value),u)});var e=L(),i=L(),a=Be({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 v=i.value.files;v&&!v.length&&(a.isFileDialogActive=!1,typeof u=="function"&&u())}},300)};function p(){a.isFocused=!0}function h(){a.isFocused=!1}function l(){var u=r.value.noClick;u||(yt()?setTimeout(n,0):n())}var c=L([]),m=function(u){if(e.value){var v=e.value.$el||e.value;v.contains(u.target)||(u.preventDefault(),c.value=[])}};we(function(){window.addEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.addEventListener("dragover",be,!1),document.addEventListener("drop",m,!1))}),Me(function(){window.removeEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.removeEventListener("dragover",be),document.removeEventListener("drop",m))});function E(u){var v=r.value.noDragEventsBubbling;v&&u.stopPropagation()}function U(u){return pt(this,void 0,void 0,function(){var v,S,O,T,A;return mt(this,function(V){switch(V.label){case 0:return v=r.value,S=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.onDragEnter,u.preventDefault(),E(u),c.value=ie(ie([],c.value,!0),[u.target],!1),ee(u)?S?[4,S(u)]:[2]:[3,2];case 1:if(A=V.sent(),A||(A=[]),re(u)&&!O)return[2];a.draggedFiles=A,a.isDragActive=!0,T&&T(u),V.label=2;case 2:return[2]}})})}function y(u){var v=r.value.onDragOver;if(u.preventDefault(),E(u),u.dataTransfer)try{u.dataTransfer.dropEffect="copy"}catch{}return ee(u)&&v&&v(u),!1}function o(u){u.preventDefault(),E(u);var v=c.value.filter(function(T){if(!e.value)return!1;var A=e.value.$el||e.value;return A.contains(T)}),S=v.indexOf(u.target);if(S!==-1&&v.splice(S,1),c.value=v,!(v.length>0)){a.draggedFiles=[],a.isDragActive=!1;var O=r.value.onDragLeave;ee(u)&&O&&O(u)}}function C(u){u.preventDefault(),E(u),c.value=[];var v=r.value,S=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.accept,A=v.minSize,V=v.maxSize,Y=v.multiple,G=v.maxFiles,H=v.onDrop,K=v.onDropRejected,X=v.onDropAccepted;if(ee(u)){if(!S)return;Promise.resolve(S(u)).then(function(Ae){if(!(re(u)&&!O)){var z=[],$=[];Ae.forEach(function(B){var de=Ce(B,T),Ie=de[0],ze=de[1],fe=Se(B,A,V),je=fe[0],Le=fe[1];if(Ie&&je)z.push(B);else{var Ve=[ze,Le].filter(function(Re){return Re});$.push({file:B,errors:Ve})}}),(!Y&&z.length>1||Y&&G>=1&&z.length>G)&&(z.forEach(function(B){$.push({file:B,errors:[wt]})}),z.splice(0)),a.acceptedFiles=z,a.fileRejections=$,H&&H(z,$,u),$.length>0&&K&&K($,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 v=u.onFocus,S=u.onBlur,O=u.onClick,T=u.onDragEnter,A=u.onDragenter,V=u.onDragOver,Y=u.onDragover,G=u.onDragLeave,H=u.onDragleave,K=u.onDrop,X=_e(u,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return P(P({onFocus:M(j(v,p)),onBlur:M(j(S,h)),onClick:I(j(O,l)),onDragenter:d(j(T,A,U)),onDragover:d(j(V,Y,y)),onDragleave:d(j(G,H,o)),onDrop:d(j(K,C)),ref:e},!r.value.disabled&&!r.value.noKeyboard?{tabIndex:0}:{}),X)},Pe=function(u){u.stopPropagation()};function Oe(u){u===void 0&&(u={});var v=u.onChange,S=u.onClick,O=_e(u,["onChange","onClick"]),T={accept:r.value.accept,multiple:r.value.multiple,style:"display: none",type:"file",onChange:I(j(v,C)),onClick:I(j(S,Pe)),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&&Ct({files:a.draggedFiles,accept:r.value.accept,minSize:r.value.minSize,maxSize:r.value.maxSize,multiple:r.value.multiple,maxFiles:r.value.maxFiles})}),Te=Q(function(){return ue.value>0&&!se.value});return P(P({},qe(a)),{isDragAccept:se,isDragReject:Te,isFocused:Q(function(){return a.isFocused&&!r.value.disabled}),getRootProps:le,getInputProps:Oe,rootRef:e,inputRef:i,open:I(n)})}const Ot={props:{folder:{type:String,required:!0},visibility:{type:String,default:null},allowedFileTypes:String,uploadSuccessFunction:Function},setup(t,r){const e=h=>{let l={folder:t.folder,files:[],visibility:"public"};const c=new FormData;for(var m=0;m{E.data.data&&r.emit("filesWereUploaded",E.data.data)}).catch(function(E){console.log(E),te.fire({icon:"error",title:"Oops!",text:E.response.data.meta.message})})};function i(h,l){var c,m,E,U;(m=(c=l[0])==null?void 0:c.errors[0])!=null&&m.message?te.fire({icon:"error",title:"Oops!",text:(U=(E=l[0])==null?void 0:E.errors[0])==null?void 0:U.message}):e(h)}let a={onDrop:i,maxFiles:1,accept:t.allowedFileTypes,multiple:0};const{getRootProps:n,getInputProps:f,...p}=Pt(a);return{getRootProps:n,getInputProps:f,...p}}},Tt={class:"border bg-gray-100 rounded p-8 text-center cursor-pointer hover:border-2 hover:border-dashed"},At={key:0},It={key:1};function zt(t,r,e,i,a,n){return x(),D("div",null,[s("div",ce(ve(i.getRootProps())),[s("input",ce(ve(i.getInputProps())),null,16),s("div",Tt,[t.isDragActive?(x(),D("p",At,"Drop the file here ...")):(x(),D("p",It,"Drag 'n' drop a files here, or click to select files"))])],16)])}const jt=Qe(Ot,[["render",zt]]),Lt={class:"flex flex-wrap justify-between container mx-auto"},Vt={class:"card-header flex justify-between items-center"},Rt={class:"text-lg font-bold flex justify-start items-center"},Ut={key:0},$t={key:1},Bt={key:0},Mt={key:0},qt={class:"border-b border-dotted py-4"},Nt={key:0,class:"mt-4"},Wt={class:"grid grid-cols-4 gap-2"},Yt={key:1},Gt={key:1},Ht={class:"border-b border-dotted py-4"},Kt={class:"flex justify-start items-center"},Xt={key:0,class:"border-b border-dotted py-4"},Qt={key:1},Jt={class:"border-b border-dotted py-4"},Zt={class:"flex justify-start items-center"},er={key:0,class:"text-xs italic"},tr={key:0,class:"py-4 border-b"},rr={class:"grid grid-cols-2 lg:grid-cols-4"},nr={class:"mb-4"},or={class:"mb-4"},ar={class:"mb-4"},ir={class:"mb-4"},lr={class:"mb-4"},ur={class:"mb-4"},sr={class:"mb-4"},dr={class:"mb-4"},fr={class:"mb-4"},cr={class:"mb-4"},vr={class:"mb-4"},pr={class:"mb-4"},mr={class:"mb-4"},gr={class:"mb-4"},hr={class:"mb-4"},yr={class:"py-4 border-b"},_r={for:"archived"},br={key:0},xr={class:"flex items-center justify-start mt-4"},Dr={key:0,class:"card w-full xl:w-1/3"},wr=["src"],Ir={__name:"AdminTeamVoucherTemplateEditComponent",props:{id:{type:Number,required:!1}},setup(t){const r=t,e=L({team_id:"",voucher_template_path:"",voucher_example_template_path:"",overlay_font_path:"fonts/Roboto-Regular.ttf",voucher_qr_size_px:900,voucher_qr_x:1e3,voucher_qr_y:250,voucher_code_size_px:100,voucher_code_x:1e3,voucher_code_y:1700,voucher_code_prefix:"Voucher Code: ",voucher_expiry_size_px:100,voucher_expiry_x:1e3,voucher_expiry_y:1530,voucher_expiry_prefix:"Expiry: ",voucher_value_size_px:300,voucher_value_x:2100,voucher_value_y:500,voucher_value_prefix:"$"}),i=L(""),a=L({}),n=L({}),f=L(!1);function p(){axios.get("/admin/teams?where[]=name,like,*"+i.value+"*&limit=100").then(y=>{a.value=y.data.data}).catch(y=>{console.log(y)})}function h(y){e.value.team_id=y.id,n.value=y}function l(){let y="post",o="/admin/team-voucher-templates";r.id&&(y="put",o="/admin/team-voucher-templates/"+r.id),e.value.archive=f.value,axios[y](o,e.value).then(C=>{te.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 c(){axios.get("/admin/team-voucher-templates/"+r.id+"?cached=false&relations=team").then(y=>{e.value=y.data.data,n.value=e.value.team,m()}).catch(y=>{console.log(y)})}function m(){e.value.archived_at?f.value=!0:f.value=!1}function E(){const y=new URLSearchParams(window.location.search);if(y.has("teamId")){const o=y.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),te.fire({title:"Oops..!",icon:"error",text:"I couldn't locate team with ID "+o+". Please start from scratch."})})}}we(y=>{r.id?c():E()});function U(y){e.value.voucher_template_path=y[0]}return(y,o)=>{var C,I,M;return x(),D("div",Lt,[s("div",{class:pe(["card",{"w-full xl:w-2/3":e.value.example_template_image_url}])},[s("div",Vt,[s("div",Rt,[(C=e.value)!=null&&C.id?(x(),D("div",Ut,"Edit")):(x(),D("div",$t,"New")),o[21]||(o[21]=s("div",{class:"ml-1"}," Voucher Template ",-1))]),e.value.archived_at?(x(),D("div",Bt,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",Gt,[s("div",Ht,[o[25]||(o[25]=s("div",{class:"text-sm font-bold"}," Selected Team ",-1)),s("div",Kt,[g(Ye(Ge),{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(me,{class:"ml-2 !p-1 !px-2",onClick:o[2]||(o[2]=oe(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",Qt,[s("div",Jt,[o[28]||(o[28]=s("div",{class:"text-sm font-bold"}," Selected Template ",-1)),s("div",Zt,[b(J((I=e.value)==null?void 0:I.voucher_template_path)+" ",1),g(me,{class:"ml-2 !p-1 !px-2",onClick:o[3]||(o[3]=oe(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",er," Example image will show after we have saved/re-saved. "))])])):(x(),D("div",Xt,[o[26]||(o[26]=s("div",null," Next, Upload a template (PNG only): ",-1)),g(jt,{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",tr,[o[45]||(o[45]=s("div",{class:"text-sm font-bold mb-4"}," Template Positions ",-1)),s("div",rr,[s("div",nr,[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",or,[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",ar,[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",{class:"hidden lg:inline"},null,-1)),s("div",ir,[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",lr,[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",ur,[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",sr,[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",dr,[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",fr,[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",cr,[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",vr,[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",pr,[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",mr,[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",gr,[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",hr,[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",Mt,[s("div",qt,[s("div",null,[g(w,{for:"name",value:"First, Select A Team.."}),g(He,{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",Nt,[s("div",Wt,[(x(!0),D(Ne,null,We(a.value.data,d=>(x(),D("div",null,[g(Xe,{class:"truncate w-full py-2 flex justify-center",onClick:le=>h(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",Yt,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",yr,[g(w,{for:"archived",value:"Archive / Unarchive this template"}),s("label",_r,[g(Je,{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",br,"@ "+J(e.value.archived_at),1)):R("",!0)])]),s("div",xr,[g(Ke,{onClick:o[20]||(o[20]=oe(d=>l(),["prevent"])),class:pe(["",{"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",Dr,[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,wr)])):R("",!0)])}}};export{Ir as _}; +import{y as Ue,r as L,q as $e,z as Be,o as we,A as Me,B as Q,C as qe,b as x,c as D,e as s,D as ce,E as ve,g as R,a as g,F as Ne,h as We,w as _,f as b,t as J,u as Ye,P as Ge,k as oe,l as F,s as k,n as pe}from"./app-JIuq7t-B.js";import{_ as He}from"./TextInput-Cj2z7GCb.js";import{_ as w}from"./InputLabel-BBoqvM3u.js";import{P as Ke}from"./PrimaryButton-BXNSUttb.js";import{S as te}from"./AuthenticatedLayout-hK9Fu3Th.js";import{_ as Xe}from"./SecondaryButton-DKtpCAKj.js";import{D as me}from"./DangerButton-C4Z82YQr.js";import{_ as Qe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Je}from"./Checkbox-BDcuv2X-.js";function N(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(c){try{l(i.next(c))}catch(m){f(m)}}function h(c){try{l(i.throw(c))}catch(m){f(m)}}function l(c){c.done?n(c.value):a(c.value).then(p,h)}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(c){return h([l,c])}}function h(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 et(){for(var t=[],r=0;r0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function rt(t){var r=t.name,e=r&&r.lastIndexOf(".")!==-1;if(e&&!t.type){var i=r.split(".").pop().toLowerCase(),a=tt.get(i);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var nt=[".DS_Store","Thumbs.db"];function ot(t){return N(this,void 0,void 0,function(){return W(this,function(r){return[2,at(t)&&t.dataTransfer?ut(t.dataTransfer,t.type):it(t)]})})}function at(t){return!!t.dataTransfer}function it(t){var r=lt(t.target)?t.target.files?ae(t.target.files):[]:[];return r.map(function(e){return ne(e)})}function lt(t){return t!==null}function ut(t,r){return N(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(st))]):[3,2];case 1:return i=a.sent(),[2,ge(Ee(i))];case 2:return[2,ge(ae(t.files).map(function(n){return ne(n)}))]}})})}function ge(t){return t.filter(function(r){return nt.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,xe(e)];if(t.sizee)return[!1,xe(e)]}return[!0,null]}function j(){for(var t=[],r=0;r1||n&&f>=1&&r.length>f?!1:r.every(function(p){var h=Ce(p,e)[0],l=Pe(p,i,a)[0];return h&&l})}var Pt={disabled:!1,getFilesFromEvent:ot,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function St(t){t===void 0&&(t={});var r=L(S(S({},Pt),t));$e(function(){return S({},t)},function(u){r.value=S(S({},r.value),u)});var e=L(),i=L(),a=Be({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 v=i.value.files;v&&!v.length&&(a.isFileDialogActive=!1,typeof u=="function"&&u())}},300)};function p(){a.isFocused=!0}function h(){a.isFocused=!1}function l(){var u=r.value.noClick;u||(yt()?setTimeout(n,0):n())}var c=L([]),m=function(u){if(e.value){var v=e.value.$el||e.value;v.contains(u.target)||(u.preventDefault(),c.value=[])}};we(function(){window.addEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.addEventListener("dragover",be,!1),document.addEventListener("drop",m,!1))}),Me(function(){window.removeEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.removeEventListener("dragover",be),document.removeEventListener("drop",m))});function E(u){var v=r.value.noDragEventsBubbling;v&&u.stopPropagation()}function U(u){return pt(this,void 0,void 0,function(){var v,P,O,T,A;return mt(this,function(V){switch(V.label){case 0:return v=r.value,P=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.onDragEnter,u.preventDefault(),E(u),c.value=ie(ie([],c.value,!0),[u.target],!1),ee(u)?P?[4,P(u)]:[2]:[3,2];case 1:if(A=V.sent(),A||(A=[]),re(u)&&!O)return[2];a.draggedFiles=A,a.isDragActive=!0,T&&T(u),V.label=2;case 2:return[2]}})})}function y(u){var v=r.value.onDragOver;if(u.preventDefault(),E(u),u.dataTransfer)try{u.dataTransfer.dropEffect="copy"}catch{}return ee(u)&&v&&v(u),!1}function o(u){u.preventDefault(),E(u);var v=c.value.filter(function(T){if(!e.value)return!1;var A=e.value.$el||e.value;return A.contains(T)}),P=v.indexOf(u.target);if(P!==-1&&v.splice(P,1),c.value=v,!(v.length>0)){a.draggedFiles=[],a.isDragActive=!1;var O=r.value.onDragLeave;ee(u)&&O&&O(u)}}function C(u){u.preventDefault(),E(u),c.value=[];var v=r.value,P=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.accept,A=v.minSize,V=v.maxSize,Y=v.multiple,G=v.maxFiles,H=v.onDrop,K=v.onDropRejected,X=v.onDropAccepted;if(ee(u)){if(!P)return;Promise.resolve(P(u)).then(function(Ae){if(!(re(u)&&!O)){var z=[],$=[];Ae.forEach(function(B){var de=Ce(B,T),Ie=de[0],ze=de[1],fe=Pe(B,A,V),je=fe[0],Le=fe[1];if(Ie&&je)z.push(B);else{var Ve=[ze,Le].filter(function(Re){return Re});$.push({file:B,errors:Ve})}}),(!Y&&z.length>1||Y&&G>=1&&z.length>G)&&(z.forEach(function(B){$.push({file:B,errors:[wt]})}),z.splice(0)),a.acceptedFiles=z,a.fileRejections=$,H&&H(z,$,u),$.length>0&&K&&K($,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 v=u.onFocus,P=u.onBlur,O=u.onClick,T=u.onDragEnter,A=u.onDragenter,V=u.onDragOver,Y=u.onDragover,G=u.onDragLeave,H=u.onDragleave,K=u.onDrop,X=_e(u,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return S(S({onFocus:M(j(v,p)),onBlur:M(j(P,h)),onClick:I(j(O,l)),onDragenter:d(j(T,A,U)),onDragover:d(j(V,Y,y)),onDragleave:d(j(G,H,o)),onDrop:d(j(K,C)),ref:e},!r.value.disabled&&!r.value.noKeyboard?{tabIndex:0}:{}),X)},Se=function(u){u.stopPropagation()};function Oe(u){u===void 0&&(u={});var v=u.onChange,P=u.onClick,O=_e(u,["onChange","onClick"]),T={accept:r.value.accept,multiple:r.value.multiple,style:"display: none",type:"file",onChange:I(j(v,C)),onClick:I(j(P,Se)),autoComplete:"off",tabIndex:-1,ref:i};return S(S({},T),O)}var ue=Q(function(){return a.draggedFiles?a.draggedFiles.length:0}),se=Q(function(){return ue.value>0&&Ct({files:a.draggedFiles,accept:r.value.accept,minSize:r.value.minSize,maxSize:r.value.maxSize,multiple:r.value.multiple,maxFiles:r.value.maxFiles})}),Te=Q(function(){return ue.value>0&&!se.value});return S(S({},qe(a)),{isDragAccept:se,isDragReject:Te,isFocused:Q(function(){return a.isFocused&&!r.value.disabled}),getRootProps:le,getInputProps:Oe,rootRef:e,inputRef:i,open:I(n)})}const Ot={props:{folder:{type:String,required:!0},visibility:{type:String,default:null},allowedFileTypes:String,uploadSuccessFunction:Function},setup(t,r){const e=h=>{let l={folder:t.folder,files:[],visibility:"public"};const c=new FormData;for(var m=0;m{E.data.data&&r.emit("filesWereUploaded",E.data.data)}).catch(function(E){console.log(E),te.fire({icon:"error",title:"Oops!",text:E.response.data.meta.message})})};function i(h,l){var c,m,E,U;(m=(c=l[0])==null?void 0:c.errors[0])!=null&&m.message?te.fire({icon:"error",title:"Oops!",text:(U=(E=l[0])==null?void 0:E.errors[0])==null?void 0:U.message}):e(h)}let a={onDrop:i,maxFiles:1,accept:t.allowedFileTypes,multiple:0};const{getRootProps:n,getInputProps:f,...p}=St(a);return{getRootProps:n,getInputProps:f,...p}}},Tt={class:"border bg-gray-100 rounded p-8 text-center cursor-pointer hover:border-2 hover:border-dashed"},At={key:0},It={key:1};function zt(t,r,e,i,a,n){return x(),D("div",null,[s("div",ce(ve(i.getRootProps())),[s("input",ce(ve(i.getInputProps())),null,16),s("div",Tt,[t.isDragActive?(x(),D("p",At,"Drop the file here ...")):(x(),D("p",It,"Drag 'n' drop a files here, or click to select files"))])],16)])}const jt=Qe(Ot,[["render",zt]]),Lt={class:"flex flex-wrap justify-between container mx-auto"},Vt={class:"card-header flex justify-between items-center"},Rt={class:"text-lg font-bold flex justify-start items-center"},Ut={key:0},$t={key:1},Bt={key:0},Mt={key:0},qt={class:"border-b border-dotted py-4"},Nt={key:0,class:"mt-4"},Wt={class:"grid grid-cols-4 gap-2"},Yt={key:1},Gt={key:1},Ht={class:"border-b border-dotted py-4"},Kt={class:"flex justify-start items-center"},Xt={key:0,class:"border-b border-dotted py-4"},Qt={key:1},Jt={class:"border-b border-dotted py-4"},Zt={class:"flex justify-start items-center"},er={key:0,class:"text-xs italic"},tr={key:0,class:"py-4 border-b"},rr={class:"grid grid-cols-2 lg:grid-cols-4"},nr={class:"mb-4"},or={class:"mb-4"},ar={class:"mb-4"},ir={class:"mb-4"},lr={class:"mb-4"},ur={class:"mb-4"},sr={class:"mb-4"},dr={class:"mb-4"},fr={class:"mb-4"},cr={class:"mb-4"},vr={class:"mb-4"},pr={class:"mb-4"},mr={class:"mb-4"},gr={class:"mb-4"},hr={class:"mb-4"},yr={class:"py-4 border-b"},_r={for:"archived"},br={key:0},xr={class:"flex items-center justify-start mt-4"},Dr={key:0,class:"card w-full xl:w-1/3"},wr=["src"],Ir={__name:"AdminTeamVoucherTemplateEditComponent",props:{id:{type:Number,required:!1}},setup(t){const r=t,e=L({team_id:"",voucher_template_path:"",voucher_example_template_path:"",overlay_font_path:"fonts/Roboto-Regular.ttf",voucher_qr_size_px:900,voucher_qr_x:1e3,voucher_qr_y:250,voucher_code_size_px:100,voucher_code_x:1e3,voucher_code_y:1700,voucher_code_prefix:"Voucher Code: ",voucher_expiry_size_px:100,voucher_expiry_x:1e3,voucher_expiry_y:1530,voucher_expiry_prefix:"Expiry: ",voucher_value_size_px:300,voucher_value_x:2100,voucher_value_y:500,voucher_value_prefix:"$"}),i=L(""),a=L({}),n=L({}),f=L(!1);function p(){axios.get("/admin/teams?where[]=name,like,*"+i.value+"*&limit=100").then(y=>{a.value=y.data.data}).catch(y=>{console.log(y)})}function h(y){e.value.team_id=y.id,n.value=y}function l(){let y="post",o="/admin/team-voucher-templates";r.id&&(y="put",o="/admin/team-voucher-templates/"+r.id),e.value.archive=f.value,axios[y](o,e.value).then(C=>{te.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 c(){axios.get("/admin/team-voucher-templates/"+r.id+"?cached=false&relations=team").then(y=>{e.value=y.data.data,n.value=e.value.team,m()}).catch(y=>{console.log(y)})}function m(){e.value.archived_at?f.value=!0:f.value=!1}function E(){const y=new URLSearchParams(window.location.search);if(y.has("teamId")){const o=y.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),te.fire({title:"Oops..!",icon:"error",text:"I couldn't locate team with ID "+o+". Please start from scratch."})})}}we(y=>{r.id?c():E()});function U(y){e.value.voucher_template_path=y[0]}return(y,o)=>{var C,I,M;return x(),D("div",Lt,[s("div",{class:pe(["card",{"w-full xl:w-2/3":e.value.example_template_image_url}])},[s("div",Vt,[s("div",Rt,[(C=e.value)!=null&&C.id?(x(),D("div",Ut,"Edit")):(x(),D("div",$t,"New")),o[21]||(o[21]=s("div",{class:"ml-1"}," Voucher Template ",-1))]),e.value.archived_at?(x(),D("div",Bt,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",Gt,[s("div",Ht,[o[25]||(o[25]=s("div",{class:"text-sm font-bold"}," Selected Team ",-1)),s("div",Kt,[g(Ye(Ge),{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(me,{class:"ml-2 !p-1 !px-2",onClick:o[2]||(o[2]=oe(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",Qt,[s("div",Jt,[o[28]||(o[28]=s("div",{class:"text-sm font-bold"}," Selected Template ",-1)),s("div",Zt,[b(J((I=e.value)==null?void 0:I.voucher_template_path)+" ",1),g(me,{class:"ml-2 !p-1 !px-2",onClick:o[3]||(o[3]=oe(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",er," Example image will show after we have saved/re-saved. "))])])):(x(),D("div",Xt,[o[26]||(o[26]=s("div",null," Next, Upload a template (PNG only): ",-1)),g(jt,{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",tr,[o[45]||(o[45]=s("div",{class:"text-sm font-bold mb-4"}," Template Positions ",-1)),s("div",rr,[s("div",nr,[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",or,[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",ar,[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",{class:"hidden lg:inline"},null,-1)),s("div",ir,[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",lr,[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",ur,[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",sr,[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",dr,[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",fr,[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",cr,[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",vr,[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",pr,[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",mr,[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",gr,[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",hr,[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",Mt,[s("div",qt,[s("div",null,[g(w,{for:"name",value:"First, Select A Team.."}),g(He,{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",Nt,[s("div",Wt,[(x(!0),D(Ne,null,We(a.value.data,d=>(x(),D("div",null,[g(Xe,{class:"truncate w-full py-2 flex justify-center",onClick:le=>h(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",Yt,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",yr,[g(w,{for:"archived",value:"Archive / Unarchive this template"}),s("label",_r,[g(Je,{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",br,"@ "+J(e.value.archived_at),1)):R("",!0)])]),s("div",xr,[g(Ke,{onClick:o[20]||(o[20]=oe(d=>l(),["prevent"])),class:pe(["",{"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",Dr,[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,wr)])):R("",!0)])}}};export{Ir as _}; diff --git a/public/build/assets/AdminTopNavigation-C3cfuSp_.js b/public/build/assets/AdminTopNavigation-B0MqavRN.js similarity index 86% rename from public/build/assets/AdminTopNavigation-C3cfuSp_.js rename to public/build/assets/AdminTopNavigation-B0MqavRN.js index 4ab0b54..4373df8 100644 --- a/public/build/assets/AdminTopNavigation-C3cfuSp_.js +++ b/public/build/assets/AdminTopNavigation-B0MqavRN.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,q as V,t as M,F as x,g as w,f as m}from"./app-CblTTgyL.js";import{S as N}from"./AuthenticatedLayout-CFkkM4Xw.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"},q=["href"],F={class:"flex space-x-4"},$=["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",F,[s("div",{innerHTML:h(l.name)},null,8,$),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,q)]))),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,q as T,b as n,c as r,e as s,a,w as u,f as d,u as f,P as v,l as S,s as V,t as M,F as x,h as w,g as m}from"./app-JIuq7t-B.js";import{S as N}from"./AuthenticatedLayout-hK9Fu3Th.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"},P={key:0,class:"mb-8"},U=["href"],q={class:"flex space-x-4"},F=["innerHTML"],$=["innerHTML"],I={key:1,class:"my-8"},O=["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",P,[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",q,[s("div",{innerHTML:h(l.name)},null,8,F),s("div",{innerHTML:h(l.email)},null,8,$)]),e[11]||(e[11]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,U)]))),256))])])):m("",!0),i.value.teams.length>0?(n(),r("div",I,[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,O)]))),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-Dw2XKneS.js b/public/build/assets/AdminUserDetailsComponent-B_Tqw-3x.js similarity index 66% rename from public/build/assets/AdminUserDetailsComponent-Dw2XKneS.js rename to public/build/assets/AdminUserDetailsComponent-B_Tqw-3x.js index a40ced6..5964247 100644 --- a/public/build/assets/AdminUserDetailsComponent-Dw2XKneS.js +++ b/public/build/assets/AdminUserDetailsComponent-B_Tqw-3x.js @@ -1 +1 @@ -import{b as r,c as o,d as s,t,e as c}from"./app-CblTTgyL.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,e as s,t,f as c}from"./app-JIuq7t-B.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(p,d)=>(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-DRLmxzaX.js b/public/build/assets/AjaxLoadingIndicator-DRLmxzaX.js new file mode 100644 index 0000000..4163e04 --- /dev/null +++ b/public/build/assets/AjaxLoadingIndicator-DRLmxzaX.js @@ -0,0 +1 @@ +import{b as s,c as a,e,g as c}from"./app-JIuq7t-B.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/AjaxLoadingIndicator-vGmUEu_U.js b/public/build/assets/AjaxLoadingIndicator-vGmUEu_U.js deleted file mode 100644 index 31f66f0..0000000 --- a/public/build/assets/AjaxLoadingIndicator-vGmUEu_U.js +++ /dev/null @@ -1 +0,0 @@ -import{b as s,c as a,d as e,f as c}from"./app-CblTTgyL.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-ByNwEwX1.js b/public/build/assets/ApplicationLogo-Bw-pd1Lv.js similarity index 99% rename from public/build/assets/ApplicationLogo-ByNwEwX1.js rename to public/build/assets/ApplicationLogo-Bw-pd1Lv.js index 80d3aec..1a7b417 100644 --- a/public/build/assets/ApplicationLogo-ByNwEwX1.js +++ b/public/build/assets/ApplicationLogo-Bw-pd1Lv.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-CblTTgyL.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+CyKvE7yxZD9eqgVh5UaM8ngD8efjiI/uvhZ701/pUalsiAgCAgCgoAgIAgIAmtCYOcI4B+6TzvY1wdtX9jaXcqX9zSiAz/yLrGf5RyKyosbL+xhv+Akr4bkCQKCgCAgCAgCgoAgsEkEdoYAkvgFkXcKjV+zniVeH0sH4QQWwG8JKMjk2PeCMePZEHlRAwYeB0wHefsI903EeN9g2pKhgU5P973g+IfuUyGCS4Io1QQBQUAQEAQEAU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0eeP5p605EQvvLoSUlBQBAQBAQBQUAQ2F0E7gQBzIP3j8e//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,e as A}from"./app-JIuq7t-B.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/SuiAgCAgC9we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VcK9HQhXF3+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}; diff --git a/public/build/assets/AuditItems-B6ZAjKje.js b/public/build/assets/AuditItems-B6ZAjKje.js new file mode 100644 index 0000000..d2a6fa7 --- /dev/null +++ b/public/build/assets/AuditItems-B6ZAjKje.js @@ -0,0 +1 @@ +import{_ as r}from"./AuthenticatedLayout-hK9Fu3Th.js";import{c as s,a as t,u as o,w as e,F as i,b as m,d as l,e as n}from"./app-JIuq7t-B.js";import{_}from"./AuditItemsComponent-CL0npyf8.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./dayjs.min-CT9z215E.js";const B={__name:"AuditItems",setup(p){return(u,a)=>(m(),s(i,null,[t(o(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-BkG124Pl.js b/public/build/assets/AuditItems-BkG124Pl.js deleted file mode 100644 index 76d99aa..0000000 --- a/public/build/assets/AuditItems-BkG124Pl.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_}from"./AuditItemsComponent-DimcBaox.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./dayjs.min-DpVcq2gO.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-DimcBaox.js b/public/build/assets/AuditItemsComponent-CL0npyf8.js similarity index 60% rename from public/build/assets/AuditItemsComponent-DimcBaox.js rename to public/build/assets/AuditItemsComponent-CL0npyf8.js index a669c0c..c659740 100644 --- a/public/build/assets/AuditItemsComponent-DimcBaox.js +++ b/public/build/assets/AuditItemsComponent-CL0npyf8.js @@ -1 +1 @@ -import{d as m}from"./dayjs.min-DpVcq2gO.js";import{S as f}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.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-CT9z215E.js";import{S as f}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as p,o as h,b as r,c as o,e as t,F as v,h as x,a as _,w as g,t as n,u as l,P as w}from"./app-JIuq7t-B.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(d){const c=d,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(),o("div",y,[e[1]||(e[1]=t("div",{class:"card-header"}," Audit Trail ",-1)),(r(!0),o(v,null,x(i.value.data,s=>(r(),o("div",null,[_(l(w),{class:"hover:no-underline",href:d.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-CFkkM4Xw.js b/public/build/assets/AuthenticatedLayout-CFkkM4Xw.js deleted file mode 100644 index bc9501f..0000000 --- a/public/build/assets/AuthenticatedLayout-CFkkM4Xw.js +++ /dev/null @@ -1,65 +0,0 @@ -import{A as eo}from"./ApplicationLogo-ByNwEwX1.js";import{o as to,z as oo,A as ge,r as Y,b as p,c as v,d as a,G as W,l as Ie,H as Xe,a as k,w as g,n as R,I as no,h as G,u as F,i as le,p as Ge,q as so,t as _,F as X,g as ae,f as O,e as A,Q as Je}from"./app-CblTTgyL.js";import{P as io}from"./PrimaryButton-lhUrXoRs.js";const ro={class:"relative"},ao={__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=d=>{r.value&&d.key==="Escape"&&(r.value=!1)};to(()=>document.addEventListener("keydown",o)),oo(()=>document.removeEventListener("keydown",o));const n=ge(()=>({48:"w-48"})[t.width.toString()]),s=ge(()=>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=Y(!1);return(d,l)=>(p(),v("div",ro,[a("div",{onClick:l[0]||(l[0]=u=>r.value=!r.value)},[W(d.$slots,"trigger")]),Ie(a("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=u=>r.value=!1)},null,512),[[Xe,r.value]]),k(no,{"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:g(()=>[Ie(a("div",{class:R(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,s.value]]),style:{display:"none"},onClick:l[2]||(l[2]=u=>r.value=!1)},[a("div",{class:R(["rounded-md ring-1 ring-black ring-opacity-5",e.contentClasses])},[W(d.$slots,"content")],2)],2),[[Xe,r.value]])]),_:3})]))}},V={__name:"DropdownLink",props:{href:{type:String,required:!0}},setup(e){return(t,o)=>(p(),G(F(le),{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:g(()=>[W(t.$slots,"default")]),_:3},8,["href"]))}},lo={__name:"NavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=ge(()=>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)=>(p(),G(F(le),{href:e.href,class:R(o.value)},{default:g(()=>[W(n.$slots,"default")]),_:3},8,["href","class"]))}},re={__name:"ResponsiveNavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=ge(()=>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)=>(p(),G(F(le),{href:e.href,class:R(o.value)},{default:g(()=>[W(n.$slots,"default")]),_:3},8,["href","class"]))}};/*! -* sweetalert2 v11.14.5 -* Released under the MIT License. -*/function ut(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 co(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qe(e,t){return e.get(ut(e,t))}function uo(e,t,o){co(e,t),t.set(e,o)}function wo(e,t,o){return e.set(ut(e,t),o),o}const fo=100,c={},po=()=>{c.previousActiveElement instanceof HTMLElement?(c.previousActiveElement.focus(),c.previousActiveElement=null):document.body&&document.body.focus()},ho=e=>new Promise(t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;c.restoreFocusTimeout=setTimeout(()=>{po(),t()},fo),window.scrollTo(o,n)}),wt="swal2-",mo=["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=mo.reduce((e,t)=>(e[t]=wt+t,e),{}),go=["success","warning","info","question","error"],be=go.reduce((e,t)=>(e[t]=wt+t,e),{}),ft="SweetAlert2:",He=e=>e.charAt(0).toUpperCase()+e.slice(1),E=e=>{console.warn(`${ft} ${typeof e=="object"?e.join(" "):e}`)},K=e=>{console.error(`${ft} ${e}`)},et=[],bo=e=>{et.includes(e)||(et.push(e),E(e))},pt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;bo(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},$e=e=>typeof e=="function"?e():e,_e=e=>e&&typeof e.toPromise=="function",ce=e=>_e(e)?e.toPromise():Promise.resolve(e),je=e=>e&&Promise.resolve(e)===e,B=()=>document.body.querySelector(`.${i.container}`),de=e=>{const t=B();return t?t.querySelector(e):null},T=e=>de(`.${e}`),f=()=>T(i.popup),ue=()=>T(i.icon),yo=()=>T(i["icon-content"]),ht=()=>T(i.title),De=()=>T(i["html-container"]),mt=()=>T(i.image),ze=()=>T(i["progress-steps"]),Ee=()=>T(i["validation-message"]),I=()=>de(`.${i.actions} .${i.confirm}`),oe=()=>de(`.${i.actions} .${i.cancel}`),Z=()=>de(`.${i.actions} .${i.deny}`),vo=()=>T(i["input-label"]),ne=()=>de(`.${i.loader}`),we=()=>T(i.actions),gt=()=>T(i.footer),Be=()=>T(i["timer-progress-bar"]),Ve=()=>T(i.close),xo=` - a[href], - area[href], - input:not([disabled]), - select:not([disabled]), - textarea:not([disabled]), - button:not([disabled]), - iframe, - object, - embed, - [tabindex="0"], - [contenteditable], - audio[controls], - video[controls], - summary -`,qe=()=>{const e=f();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),o=Array.from(t).sort((r,d)=>{const l=parseInt(r.getAttribute("tabindex")||"0"),u=parseInt(d.getAttribute("tabindex")||"0");return l>u?1:lr.getAttribute("tabindex")!=="-1");return[...new Set(o.concat(s))].filter(r=>$(r))},Fe=()=>H(document.body,i.shown)&&!H(document.body,i["toast-shown"])&&!H(document.body,i["no-backdrop"]),Pe=()=>{const e=f();return e?H(e,i.toast):!1},ko=()=>{const e=f();return e?e.hasAttribute("data-loading"):!1},L=(e,t)=>{if(e.textContent="",t){const n=new DOMParser().parseFromString(t,"text/html"),s=n.querySelector("head");s&&Array.from(s.childNodes).forEach(d=>{e.appendChild(d)});const r=n.querySelector("body");r&&Array.from(r.childNodes).forEach(d=>{d instanceof HTMLVideoElement||d instanceof HTMLAudioElement?e.appendChild(d.cloneNode(!0)):e.appendChild(d)})}},H=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let n=0;n{Array.from(e.classList).forEach(o=>{!Object.values(i).includes(o)&&!Object.values(be).includes(o)&&!Object.values(t.showClass||{}).includes(o)&&e.classList.remove(o)})},P=(e,t,o)=>{if(Co(e,t),!t.customClass)return;const n=t.customClass[o];if(n){if(typeof n!="string"&&!n.forEach){E(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof n}"`);return}w(e,n)}},Te=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${i.popup} > .${i[t]}`);case"checkbox":return e.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return e.querySelector(`.${i.popup} > .${i.radio} input:checked`)||e.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return e.querySelector(`.${i.popup} > .${i.range} input`);default:return e.querySelector(`.${i.popup} > .${i.input}`)}},bt=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},yt=(e,t,o)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(n=>{Array.isArray(e)?e.forEach(s=>{o?s.classList.add(n):s.classList.remove(n)}):o?e.classList.add(n):e.classList.remove(n)}))},w=(e,t)=>{yt(e,t,!0)},M=(e,t)=>{yt(e,t,!1)},j=(e,t)=>{const o=Array.from(e.children);for(let n=0;n{o===`${parseInt(o)}`&&(o=parseInt(o)),o||parseInt(o)===0?e.style.setProperty(t,typeof o=="number"?`${o}px`:o):e.style.removeProperty(t)},x=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},C=e=>{e&&(e.style.display="none")},Re=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{fe(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},tt=(e,t,o,n)=>{const s=e.querySelector(t);s&&s.style.setProperty(o,n)},fe=function(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?x(e,o):C(e)},$=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Ao=()=>!$(I())&&!$(Z())&&!$(oe()),ot=e=>e.scrollHeight>e.clientHeight,vt=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},Ne=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const o=Be();o&&$(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout(()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"},10))},$o=()=>{const e=Be();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=parseInt(window.getComputedStyle(e).width),n=t/o*100;e.style.width=`${n}%`},Eo=()=>typeof window>"u"||typeof document>"u",Bo=` -
- -
    -
    - -

    -
    - - -
    - - -
    - -
    - - -
    -
    -
    - - - -
    -
    -
    -
    -
    -
    -`.replace(/(^|\n)\s*/g,""),Po=()=>{const e=B();return e?(e.remove(),M([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},q=()=>{c.currentInstance.resetValidationMessage()},To=()=>{const e=f(),t=j(e,i.input),o=j(e,i.file),n=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=j(e,i.select),d=e.querySelector(`.${i.checkbox} input`),l=j(e,i.textarea);t.oninput=q,o.onchange=q,r.onchange=q,d.onchange=q,l.oninput=q,n.oninput=()=>{q(),s.value=n.value},n.onchange=()=>{q(),s.value=n.value}},Lo=e=>typeof e=="string"?document.querySelector(e):e,So=e=>{const t=f();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Io=e=>{window.getComputedStyle(e).direction==="rtl"&&w(B(),i.rtl)},Mo=e=>{const t=Po();if(Eo()){K("SweetAlert2 requires document to initialize");return}const o=document.createElement("div");o.className=i.container,t&&w(o,i["no-transition"]),L(o,Bo);const n=Lo(e.target);n.appendChild(o),So(e),Io(n),To()},We=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Oo(e,t):e&&L(t,e)},Oo=(e,t)=>{e.jquery?Ho(t,e):L(t,e.toString())},Ho=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},_o=(e,t)=>{const o=we(),n=ne();!o||!n||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?C(o):x(o),P(o,t,"actions"),jo(o,n,t),L(n,t.loaderHtml||""),P(n,t,"loader"))};function jo(e,t,o){const n=I(),s=Z(),r=oe();!n||!s||!r||(Le(n,"confirm",o),Le(s,"deny",o),Le(r,"cancel",o),Do(n,s,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(s,n)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(n,t))))}function Do(e,t,o,n){if(!n.buttonsStyling){M([e,t,o],i.styled);return}w([e,t,o],i.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,w(e,i["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,w(t,i["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,w(o,i["default-outline"]))}function Le(e,t,o){const n=He(t);fe(e,o[`show${n}Button`],"inline-block"),L(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=i[t],P(e,o,`${t}Button`)}const zo=(e,t)=>{const o=Ve();o&&(L(o,t.closeButtonHtml||""),P(o,t,"closeButton"),fe(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Vo=(e,t)=>{const o=B();o&&(qo(o,t.backdrop),Fo(o,t.position),Ro(o,t.grow),P(o,t,"container"))};function qo(e,t){typeof t=="string"?e.style.background=t:t||w([document.documentElement,document.body],i["no-backdrop"])}function Fo(e,t){t&&(t in i?w(e,i[t]):(E('The "position" parameter is not valid, defaulting to "center"'),w(e,i.center)))}function Ro(e,t){t&&w(e,i[`grow-${t}`])}var h={innerParams:new WeakMap,domCache:new WeakMap};const No=["input","file","range","select","radio","checkbox","textarea"],Wo=(e,t)=>{const o=f();if(!o)return;const n=h.innerParams.get(e),s=!n||t.input!==n.input;No.forEach(r=>{const d=j(o,i[r]);d&&(Zo(r,t.inputAttributes),d.className=i[r],s&&C(d))}),t.input&&(s&&Uo(t),Yo(t))},Uo=e=>{if(!e.input)return;if(!b[e.input]){K(`Unexpected type of input! Expected ${Object.keys(b).join(" | ")}, got "${e.input}"`);return}const t=xt(e.input);if(!t)return;const o=b[e.input](t,e);x(t),e.inputAutoFocus&&setTimeout(()=>{bt(o)})},Ko=e=>{for(let t=0;t{const o=f();if(!o)return;const n=Te(o,e);if(n){Ko(n);for(const s in t)n.setAttribute(s,t[s])}},Yo=e=>{if(!e.input)return;const t=xt(e.input);t&&P(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},pe=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),s=i["input-label"];n.setAttribute("for",e.id),n.className=s,typeof o.customClass=="object"&&w(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},xt=e=>{const t=f();if(t)return j(t,i[e]||i.input)},ye=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:je(t)||E(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},b={};b.text=b.email=b.password=b.number=b.tel=b.url=b.search=b.date=b["datetime-local"]=b.time=b.week=b.month=(e,t)=>(ye(e,t.inputValue),pe(e,e,t),Ue(e,t),e.type=t.input,e);b.file=(e,t)=>(pe(e,e,t),Ue(e,t),e);b.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return ye(o,t.inputValue),o.type=t.input,ye(n,t.inputValue),pe(o,e,t),e};b.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");L(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return pe(e,e,t),e};b.radio=e=>(e.textContent="",e);b.checkbox=(e,t)=>{const o=Te(f(),"checkbox");o.value="1",o.checked=!!t.inputValue;const n=e.querySelector("span");return L(n,t.inputPlaceholder||t.inputLabel),o};b.textarea=(e,t)=>{ye(e,t.inputValue),Ue(e,t),pe(e,e,t);const o=n=>parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(f()).width),s=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+o(e);r>n?f().style.width=`${r}px`:N(f(),"width",t.width)};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Xo=(e,t)=>{const o=De();o&&(Re(o),P(o,t,"htmlContainer"),t.html?(We(t.html,o),x(o,"block")):t.text?(o.textContent=t.text,x(o,"block")):C(o),Wo(e,t))},Go=(e,t)=>{const o=gt();o&&(Re(o),fe(o,t.footer,"block"),t.footer&&We(t.footer,o),P(o,t,"footer"))},Jo=(e,t)=>{const o=h.innerParams.get(e),n=ue();if(n){if(o&&t.icon===o.icon){st(n,t),nt(n,t);return}if(!t.icon&&!t.iconHtml){C(n);return}if(t.icon&&Object.keys(be).indexOf(t.icon)===-1){K(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),C(n);return}x(n),st(n,t),nt(n,t),w(n,t.showClass&&t.showClass.icon)}},nt=(e,t)=>{for(const[o,n]of Object.entries(be))t.icon!==o&&M(e,n);w(e,t.icon&&be[t.icon]),on(e,t),Qo(),P(e,t,"icon")},Qo=()=>{const e=f();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n - -
    -
    -`,tn=` - - - - -`,st=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,n="";t.iconHtml?n=it(t.iconHtml):t.icon==="success"?(n=en,o=o.replace(/ style=".*?"/g,"")):t.icon==="error"?n=tn:t.icon&&(n=it({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&L(e,n)},on=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])tt(e,o,"background-color",t.iconColor);tt(e,".swal2-success-ring","border-color",t.iconColor)}},it=e=>`
    ${e}
    `,nn=(e,t)=>{const o=mt();if(o){if(!t.imageUrl){C(o);return}x(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),N(o,"width",t.imageWidth),N(o,"height",t.imageHeight),o.className=i.image,P(o,t,"image")}},sn=(e,t)=>{const o=B(),n=f();if(!(!o||!n)){if(t.toast){N(o,"width",t.width),n.style.width="100%";const s=ne();s&&n.insertBefore(s,ue())}else N(n,"width",t.width);N(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),C(Ee()),rn(n,t)}},rn=(e,t)=>{const o=t.showClass||{};e.className=`${i.popup} ${$(e)?o.popup:""}`,t.toast?(w([document.documentElement,document.body],i["toast-shown"]),w(e,i.toast)):w(e,i.modal),P(e,t,"popup"),typeof t.customClass=="string"&&w(e,t.customClass),t.icon&&w(e,i[`icon-${t.icon}`])},an=(e,t)=>{const o=ze();if(!o)return;const{progressSteps:n,currentProgressStep:s}=t;if(!n||n.length===0||s===void 0){C(o);return}x(o),o.textContent="",s>=n.length&&E("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((r,d)=>{const l=ln(r);if(o.appendChild(l),d===s&&w(l,i["active-progress-step"]),d!==n.length-1){const u=cn(t);o.appendChild(u)}})},ln=e=>{const t=document.createElement("li");return w(t,i["progress-step"]),L(t,e),t},cn=e=>{const t=document.createElement("li");return w(t,i["progress-step-line"]),e.progressStepsDistance&&N(t,"width",e.progressStepsDistance),t},dn=(e,t)=>{const o=ht();o&&(Re(o),fe(o,t.title||t.titleText,"block"),t.title&&We(t.title,o),t.titleText&&(o.innerText=t.titleText),P(o,t,"title"))},kt=(e,t)=>{sn(e,t),Vo(e,t),an(e,t),Jo(e,t),nn(e,t),dn(e,t),zo(e,t),Xo(e,t),_o(e,t),Go(e,t);const o=f();typeof t.didRender=="function"&&o&&t.didRender(o),c.eventEmitter.emit("didRender",o)},un=()=>$(f()),Ct=()=>{var e;return(e=I())===null||e===void 0?void 0:e.click()},wn=()=>{var e;return(e=Z())===null||e===void 0?void 0:e.click()},fn=()=>{var e;return(e=oe())===null||e===void 0?void 0:e.click()},se=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},pn=(e,t,o)=>{At(e),t.toast||(e.keydownHandler=n=>mn(t,n,o),e.keydownTarget=t.keydownListenerCapture?window:f(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Me=(e,t)=>{var o;const n=qe();if(n.length){e=e+t,e===n.length?e=0:e===-1&&(e=n.length-1),n[e].focus();return}(o=f())===null||o===void 0||o.focus()},$t=["ArrowRight","ArrowDown"],hn=["ArrowLeft","ArrowUp"],mn=(e,t,o)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?gn(t,e):t.key==="Tab"?bn(t):[...$t,...hn].includes(t.key)?yn(t.key):t.key==="Escape"&&vn(t,e,o)))},gn=(e,t)=>{if(!$e(t.allowEnterKey))return;const o=Te(f(),t.input);if(e.target&&o&&e.target instanceof HTMLElement&&e.target.outerHTML===o.outerHTML){if(["textarea","file"].includes(t.input))return;Ct(),e.preventDefault()}},bn=e=>{const t=e.target,o=qe();let n=-1;for(let s=0;s{const t=we(),o=I(),n=Z(),s=oe();if(!t||!o||!n||!s)return;const r=[o,n,s];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const d=$t.includes(e)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let u=0;u{$e(t.allowEscapeKey)&&(e.preventDefault(),o(se.esc))};var ee={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xn=()=>{const e=B();Array.from(document.body.children).forEach(o=>{o.contains(e)||(o.hasAttribute("aria-hidden")&&o.setAttribute("data-previous-aria-hidden",o.getAttribute("aria-hidden")||""),o.setAttribute("aria-hidden","true"))})},Et=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Bt=typeof window<"u"&&!!window.GestureEvent,kn=()=>{if(Bt&&!H(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,w(document.body,i.iosfix),Cn()}},Cn=()=>{const e=B();if(!e)return;let t;e.ontouchstart=o=>{t=An(o)},e.ontouchmove=o=>{t&&(o.preventDefault(),o.stopPropagation())}},An=e=>{const t=e.target,o=B(),n=De();return!o||!n||$n(e)||En(e)?!1:t===o||!ot(o)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(ot(n)&&n.contains(t))},$n=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",En=e=>e.touches&&e.touches.length>1,Bn=()=>{if(H(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);M(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Pn=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let J=null;const Tn=e=>{J===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(J=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${J+Pn()}px`)},Ln=()=>{J!==null&&(document.body.style.paddingRight=`${J}px`,J=null)};function Pt(e,t,o,n){Pe()?rt(e,n):(ho(o).then(()=>rt(e,n)),At(c)),Bt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Fe()&&(Ln(),Bn(),Et()),Sn()}function Sn(){M([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function D(e){e=Mn(e);const t=ee.swalPromiseResolve.get(this),o=In(this);this.isAwaitingPromise?e.isDismissed||(he(this),t(e)):o&&t(e)}const In=e=>{const t=f();if(!t)return!1;const o=h.innerParams.get(e);if(!o||H(t,o.hideClass.popup))return!1;M(t,o.showClass.popup),w(t,o.hideClass.popup);const n=B();return M(n,o.showClass.backdrop),w(n,o.hideClass.backdrop),On(e,t,o),!0};function Tt(e){const t=ee.swalPromiseReject.get(this);he(this),t&&t(e)}const he=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,h.innerParams.get(e)||e._destroy())},Mn=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),On=(e,t,o)=>{var n;const s=B(),r=vt(t);typeof o.willClose=="function"&&o.willClose(t),(n=c.eventEmitter)===null||n===void 0||n.emit("willClose",t),r?Hn(e,t,s,o.returnFocus,o.didClose):Pt(e,s,o.returnFocus,o.didClose)},Hn=(e,t,o,n,s)=>{c.swalCloseEventFinishedCallback=Pt.bind(null,e,o,n,s);const r=function(d){if(d.target===t){var l;(l=c.swalCloseEventFinishedCallback)===null||l===void 0||l.call(c),delete c.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r)}};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},rt=(e,t)=>{setTimeout(()=>{var o;typeof t=="function"&&t.bind(e.params)(),(o=c.eventEmitter)===null||o===void 0||o.emit("didClose"),e._destroy&&e._destroy()})},te=e=>{let t=f();if(t||new Ae,t=f(),!t)return;const o=ne();Pe()?C(ue()):_n(t,e),x(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},_n=(e,t)=>{const o=we(),n=ne();!o||!n||(!t&&$(I())&&(t=I()),x(o),t&&(C(t),n.setAttribute("data-button-to-replace",t.className),o.insertBefore(n,t)),w([e,o],i.loading))},jn=(e,t)=>{t.input==="select"||t.input==="radio"?Fn(e,t):["text","email","number","tel","textarea"].some(o=>o===t.input)&&(_e(t.inputValue)||je(t.inputValue))&&(te(I()),Rn(e,t))},Dn=(e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return zn(o);case"radio":return Vn(o);case"file":return qn(o);default:return t.inputAutoTrim?o.value.trim():o.value}},zn=e=>e.checked?1:0,Vn=e=>e.checked?e.value:null,qn=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Fn=(e,t)=>{const o=f();if(!o)return;const n=s=>{t.input==="select"?Nn(o,ve(s),t):t.input==="radio"&&Wn(o,ve(s),t)};_e(t.inputOptions)||je(t.inputOptions)?(te(I()),ce(t.inputOptions).then(s=>{e.hideLoading(),n(s)})):typeof t.inputOptions=="object"?n(t.inputOptions):K(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Rn=(e,t)=>{const o=e.getInput();o&&(C(o),ce(t.inputValue).then(n=>{o.value=t.input==="number"?`${parseFloat(n)||0}`:`${n}`,x(o),o.focus(),e.hideLoading()}).catch(n=>{K(`Error in inputValue promise: ${n}`),o.value="",x(o),o.focus(),e.hideLoading()}))};function Nn(e,t,o){const n=j(e,i.select);if(!n)return;const s=(r,d,l)=>{const u=document.createElement("option");u.value=l,L(u,d),u.selected=Lt(l,o.inputValue),r.appendChild(u)};t.forEach(r=>{const d=r[0],l=r[1];if(Array.isArray(l)){const u=document.createElement("optgroup");u.label=d,u.disabled=!1,n.appendChild(u),l.forEach(m=>s(u,m[1],m[0]))}else s(n,l,d)}),n.focus()}function Wn(e,t,o){const n=j(e,i.radio);if(!n)return;t.forEach(r=>{const d=r[0],l=r[1],u=document.createElement("input"),m=document.createElement("label");u.type="radio",u.name=i.radio,u.value=d,Lt(d,o.inputValue)&&(u.checked=!0);const z=document.createElement("span");L(z,l),z.className=i.label,m.appendChild(u),m.appendChild(z),n.appendChild(m)});const s=n.querySelectorAll("input");s.length&&s[0].focus()}const ve=e=>{const t=[];return e instanceof Map?e.forEach((o,n)=>{let s=o;typeof s=="object"&&(s=ve(s)),t.push([n,s])}):Object.keys(e).forEach(o=>{let n=e[o];typeof n=="object"&&(n=ve(n)),t.push([o,n])}),t},Lt=(e,t)=>!!t&&t.toString()===e.toString(),Un=e=>{const t=h.innerParams.get(e);e.disableButtons(),t.input?St(e,"confirm"):Ze(e,!0)},Kn=e=>{const t=h.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?St(e,"deny"):Ke(e,!1)},Zn=(e,t)=>{e.disableButtons(),t(se.cancel)},St=(e,t)=>{const o=h.innerParams.get(e);if(!o.input){K(`The "input" parameter is needed to be set when using returnInputValueOn${He(t)}`);return}const n=e.getInput(),s=Dn(e,o);o.inputValidator?Yn(e,s,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(o.validationMessage||n.validationMessage)):t==="deny"?Ke(e,s):Ze(e,s)},Yn=(e,t,o)=>{const n=h.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ce(n.inputValidator(t,n.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):o==="deny"?Ke(e,t):Ze(e,t)})},Ke=(e,t)=>{const o=h.innerParams.get(e||void 0);o.showLoaderOnDeny&&te(Z()),o.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ce(o.preDeny(t,o.validationMessage))).then(s=>{s===!1?(e.hideLoading(),he(e)):e.close({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>It(e||void 0,s))):e.close({isDenied:!0,value:t})},at=(e,t)=>{e.close({isConfirmed:!0,value:t})},It=(e,t)=>{e.rejectPromise(t)},Ze=(e,t)=>{const o=h.innerParams.get(e||void 0);o.showLoaderOnConfirm&&te(),o.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ce(o.preConfirm(t,o.validationMessage))).then(s=>{$(Ee())||s===!1?(e.hideLoading(),he(e)):at(e,typeof s>"u"?t:s)}).catch(s=>It(e||void 0,s))):at(e,t)};function xe(){const e=h.innerParams.get(this);if(!e)return;const t=h.domCache.get(this);C(t.loader),Pe()?e.icon&&x(ue()):Xn(t),M([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Xn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?x(t[0],"inline-block"):Ao()&&C(e.actions)};function Mt(){const e=h.innerParams.get(this),t=h.domCache.get(this);return t?Te(t.popup,e.input):null}function Ot(e,t,o){const n=h.domCache.get(e);t.forEach(s=>{n[s].disabled=o})}function Ht(e,t){const o=f();if(!(!o||!e))if(e.type==="radio"){const n=o.querySelectorAll(`[name="${i.radio}"]`);for(let s=0;sObject.prototype.hasOwnProperty.call(Q,e),Rt=e=>Gn.indexOf(e)!==-1,Nt=e=>Jn[e],es=e=>{Ft(e)||E(`Unknown parameter "${e}"`)},ts=e=>{Qn.includes(e)&&E(`The parameter "${e}" is incompatible with toasts`)},os=e=>{const t=Nt(e);t&&pt(e,t)},ns=e=>{e.backdrop===!1&&e.allowOutsideClick&&E('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)es(t),e.toast&&ts(t),os(t)};function Wt(e){const t=f(),o=h.innerParams.get(this);if(!t||H(t,o.hideClass.popup)){E("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const n=ss(e),s=Object.assign({},o,n);kt(this,s),h.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ss=e=>{const t={};return Object.keys(e).forEach(o=>{Rt(o)?t[o]=e[o]:E(`Invalid parameter to update: ${o}`)}),t};function Ut(){const e=h.domCache.get(this),t=h.innerParams.get(this);if(!t){Kt(this);return}e.popup&&c.swalCloseEventFinishedCallback&&(c.swalCloseEventFinishedCallback(),delete c.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),c.eventEmitter.emit("didDestroy"),is(this)}const is=e=>{Kt(e),delete e.params,delete c.keydownHandler,delete c.keydownTarget,delete c.currentInstance},Kt=e=>{e.isAwaitingPromise?(Se(h,e),e.isAwaitingPromise=!0):(Se(ee,e),Se(h,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Se=(e,t)=>{for(const o in e)e[o].delete(t)};var rs=Object.freeze({__proto__:null,_destroy:Ut,close:D,closeModal:D,closePopup:D,closeToast:D,disableButtons:jt,disableInput:zt,disableLoading:xe,enableButtons:_t,enableInput:Dt,getInput:Mt,handleAwaitingPromise:he,hideLoading:xe,rejectPromise:Tt,resetValidationMessage:qt,showValidationMessage:Vt,update:Wt});const as=(e,t,o)=>{e.toast?ls(e,t,o):(ds(t),us(t),ws(e,t,o))},ls=(e,t,o)=>{t.popup.onclick=()=>{e&&(cs(e)||e.timer||e.input)||o(se.close)}},cs=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ke=!1;const ds=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ke=!0)}}},us=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(o){e.popup.onmouseup=()=>{},(o.target===e.popup||o.target instanceof HTMLElement&&e.popup.contains(o.target))&&(ke=!0)}}},ws=(e,t,o)=>{t.container.onclick=n=>{if(ke){ke=!1;return}n.target===t.container&&$e(e.allowOutsideClick)&&o(se.backdrop)}},fs=e=>typeof e=="object"&&e.jquery,lt=e=>e instanceof Element||fs(e),ps=e=>{const t={};return typeof e[0]=="object"&&!lt(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((o,n)=>{const s=e[n];typeof s=="string"||lt(s)?t[o]=s:s!==void 0&&K(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)}),t};function hs(){for(var e=arguments.length,t=new Array(e),o=0;oc.timeout&&c.timeout.getTimerLeft(),Zt=()=>{if(c.timeout)return $o(),c.timeout.stop()},Yt=()=>{if(c.timeout){const e=c.timeout.start();return Ne(e),e}},bs=()=>{const e=c.timeout;return e&&(e.running?Zt():Yt())},ys=e=>{if(c.timeout){const t=c.timeout.increase(e);return Ne(t,!0),t}},vs=()=>!!(c.timeout&&c.timeout.isRunning());let ct=!1;const Oe={};function xs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Oe[e]=this,ct||(document.body.addEventListener("click",ks),ct=!0)}const ks=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const o in Oe){const n=t.getAttribute(o);if(n){Oe[o].fire({template:n});return}}};class Cs{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,o){const n=this._getHandlersByEventName(t);n.includes(o)||n.push(o)}once(t,o){var n=this;const s=function(){n.removeListener(t,s);for(var r=arguments.length,d=new Array(r),l=0;l1?o-1:0),s=1;s{try{r.apply(this,n)}catch(d){console.error(d)}})}removeListener(t,o){const n=this._getHandlersByEventName(t),s=n.indexOf(o);s>-1&&n.splice(s,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}c.eventEmitter=new Cs;const As=(e,t)=>{c.eventEmitter.on(e,t)},$s=(e,t)=>{c.eventEmitter.once(e,t)},Es=(e,t)=>{if(!e){c.eventEmitter.reset();return}t?c.eventEmitter.removeListener(e,t):c.eventEmitter.removeAllListeners(e)};var Bs=Object.freeze({__proto__:null,argsToParams:ps,bindClickHandler:xs,clickCancel:fn,clickConfirm:Ct,clickDeny:wn,enableLoading:te,fire:hs,getActions:we,getCancelButton:oe,getCloseButton:Ve,getConfirmButton:I,getContainer:B,getDenyButton:Z,getFocusableElements:qe,getFooter:gt,getHtmlContainer:De,getIcon:ue,getIconContent:yo,getImage:mt,getInputLabel:vo,getLoader:ne,getPopup:f,getProgressSteps:ze,getTimerLeft:gs,getTimerProgressBar:Be,getTitle:ht,getValidationMessage:Ee,increaseTimer:ys,isDeprecatedParameter:Nt,isLoading:ko,isTimerRunning:vs,isUpdatableParameter:Rt,isValidParameter:Ft,isVisible:un,mixin:ms,off:Es,on:As,once:$s,resumeTimer:Yt,showLoading:te,stopTimer:Zt,toggleTimer:bs});class Ps{constructor(t,o){this.callback=t,this.remaining=o,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const o=this.running;return o&&this.stop(),this.remaining+=t,o&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xt=["swal-title","swal-html","swal-footer"],Ts=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return js(o),Object.assign(Ls(o),Ss(o),Is(o),Ms(o),Os(o),Hs(o),_s(o,Xt))},Ls=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(n=>{U(n,["name","value"]);const s=n.getAttribute("name"),r=n.getAttribute("value");!s||!r||(typeof Q[s]=="boolean"?t[s]=r!=="false":typeof Q[s]=="object"?t[s]=JSON.parse(r):t[s]=r)}),t},Ss=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(n=>{const s=n.getAttribute("name"),r=n.getAttribute("value");!s||!r||(t[s]=new Function(`return ${r}`)())}),t},Is=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(n=>{U(n,["type","color","aria-label"]);const s=n.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(t[`${s}ButtonText`]=n.innerHTML,t[`show${He(s)}Button`]=!0,n.hasAttribute("color")&&(t[`${s}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(t[`${s}ButtonAriaLabel`]=n.getAttribute("aria-label")))}),t},Ms=e=>{const t={},o=e.querySelector("swal-image");return o&&(U(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")||void 0),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")||void 0),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")||void 0),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt")||void 0)),t},Os=e=>{const t={},o=e.querySelector("swal-icon");return o&&(U(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Hs=e=>{const t={},o=e.querySelector("swal-input");o&&(U(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(s=>{U(s,["value"]);const r=s.getAttribute("value");if(!r)return;const d=s.innerHTML;t.inputOptions[r]=d})),t},_s=(e,t)=>{const o={};for(const n in t){const s=t[n],r=e.querySelector(s);r&&(U(r,[]),o[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},js=e=>{const t=Xt.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(o=>{const n=o.tagName.toLowerCase();t.includes(n)||E(`Unrecognized element <${n}>`)})},U=(e,t)=>{Array.from(e.attributes).forEach(o=>{t.indexOf(o.name)===-1&&E([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Gt=10,Ds=e=>{const t=B(),o=f();typeof e.willOpen=="function"&&e.willOpen(o),c.eventEmitter.emit("willOpen",o);const s=window.getComputedStyle(document.body).overflowY;qs(t,o,e),setTimeout(()=>{zs(t,o)},Gt),Fe()&&(Vs(t,e.scrollbarPadding,s),xn()),!Pe()&&!c.previousActiveElement&&(c.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(o)),c.eventEmitter.emit("didOpen",o),M(t,i["no-transition"])},Ce=e=>{const t=f();if(e.target!==t)return;const o=B();t.removeEventListener("animationend",Ce),t.removeEventListener("transitionend",Ce),o.style.overflowY="auto"},zs=(e,t)=>{vt(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Ce),t.addEventListener("transitionend",Ce)):e.style.overflowY="auto"},Vs=(e,t,o)=>{kn(),t&&o!=="hidden"&&Tn(o),setTimeout(()=>{e.scrollTop=0})},qs=(e,t,o)=>{w(e,o.showClass.backdrop),o.animation?(t.style.setProperty("opacity","0","important"),x(t,"grid"),setTimeout(()=>{w(t,o.showClass.popup),t.style.removeProperty("opacity")},Gt)):x(t,"grid"),w([document.documentElement,document.body],i.shown),o.heightAuto&&o.backdrop&&!o.toast&&w([document.documentElement,document.body],i["height-auto"])};var dt={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Fs(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=dt.email),e.input==="url"&&(e.inputValidator=dt.url))}function Rs(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(E('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Ns(e){Fs(e),e.showLoaderOnConfirm&&!e.preConfirm&&E(`showLoaderOnConfirm is set to true, but preConfirm is not defined. -showLoaderOnConfirm should be used together with preConfirm, see usage example: -https://sweetalert2.github.io/#ajax-request`),Rs(e),typeof e.title=="string"&&(e.title=e.title.split(` -`).join("
    ")),Mo(e)}let S;var me=new WeakMap;class y{constructor(){if(uo(this,me,void 0),typeof window>"u")return;S=this;for(var t=arguments.length,o=new Array(t),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(ns(Object.assign({},o,t)),c.currentInstance){const r=ee.swalPromiseResolve.get(c.currentInstance),{isAwaitingPromise:d}=c.currentInstance;c.currentInstance._destroy(),d||r({isDismissed:!0}),Fe()&&Et()}c.currentInstance=S;const n=Us(t,o);Ns(n),Object.freeze(n),c.timeout&&(c.timeout.stop(),delete c.timeout),clearTimeout(c.restoreFocusTimeout);const s=Ks(S);return kt(S,n),h.innerParams.set(S,n),Ws(S,s,n)}then(t){return Qe(me,this).then(t)}finally(t){return Qe(me,this).finally(t)}}const Ws=(e,t,o)=>new Promise((n,s)=>{const r=d=>{e.close({isDismissed:!0,dismiss:d})};ee.swalPromiseResolve.set(e,n),ee.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{Un(e)},t.denyButton.onclick=()=>{Kn(e)},t.cancelButton.onclick=()=>{Zn(e,r)},t.closeButton.onclick=()=>{r(se.close)},as(o,t,r),pn(c,o,r),jn(e,o),Ds(o),Zs(c,o,r),Ys(t,o),setTimeout(()=>{t.container.scrollTop=0})}),Us=(e,t)=>{const o=Ts(e),n=Object.assign({},Q,t,o,e);return n.showClass=Object.assign({},Q.showClass,n.showClass),n.hideClass=Object.assign({},Q.hideClass,n.hideClass),n.animation===!1&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},Ks=e=>{const t={popup:f(),container:B(),actions:we(),confirmButton:I(),denyButton:Z(),cancelButton:oe(),loader:ne(),closeButton:Ve(),validationMessage:Ee(),progressSteps:ze()};return h.domCache.set(e,t),t},Zs=(e,t,o)=>{const n=Be();C(n),t.timer&&(e.timeout=new Ps(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(x(n),P(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Ne(t.timer)})))},Ys=(e,t)=>{if(!t.toast){if(!$e(t.allowEnterKey)){pt("allowEnterKey"),Js();return}Xs(e)||Gs(e,t)||Me(-1,1)}},Xs=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const o of t)if(o instanceof HTMLElement&&$(o))return o.focus(),!0;return!1},Gs=(e,t)=>t.focusDeny&&$(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&$(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&$(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Js=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const o=document.createElement("audio");o.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",o.loop=!0,document.body.appendChild(o),setTimeout(()=>{o.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}y.prototype.disableButtons=jt;y.prototype.enableButtons=_t;y.prototype.getInput=Mt;y.prototype.disableInput=zt;y.prototype.enableInput=Dt;y.prototype.hideLoading=xe;y.prototype.disableLoading=xe;y.prototype.showValidationMessage=Vt;y.prototype.resetValidationMessage=qt;y.prototype.close=D;y.prototype.closePopup=D;y.prototype.closeModal=D;y.prototype.closeToast=D;y.prototype.rejectPromise=Tt;y.prototype.update=Wt;y.prototype._destroy=Ut;Object.assign(y,Bs);Object.keys(rs).forEach(e=>{y[e]=function(){return S&&S[e]?S[e](...arguments):null}});y.DismissReason=se;y.version="11.14.5";const Ae=y;Ae.default=Ae;typeof document<"u"&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch{o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const Qs={class:"h-full"},ei={key:0,class:"absolute left-0 w-full h-full min-h-full min-w-full"},ti={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},oi={class:"mb-4 text-2xl"},ni={key:0,class:"mb-8"},si={href:"/my-team/#myTeamMembers",class:"flex justify-between w-full py-2 border-b",tabindex:"0"},ii={class:"flex space-x-4"},ri=["innerHTML"],ai=["innerHTML"],li={key:1,class:"my-8"},ci=["href"],di={class:"flex"},ui=["innerHTML"],wi={key:2,class:"my-8"},fi=["href"],pi={class:"flex"},hi=["innerHTML"],mi={class:"ml-2"},gi=["innerHTML"],bi={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},yi={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},vi={class:"text-2xl"},xi={__name:"SearchComponent",setup(e){const t=Y(""),o=Y({users:[],vouchers:[],voucherSets:[]}),n=Y(!1),s=Y(!1);Ge(t,()=>{t.value.length>=3?r():(n.value=!1,s.value=!1)}),Ge(o,()=>{n.value=!1,s.value=!1,t.value.length>=3&&(o.value.users.length||o.value.vouchers.length||o.value.voucherSets.length?n.value=!0:s.value=!0)});function r(){t.value&&t.value.length>=3&&axios.get("/my-team-search?cached=false&query="+t.value).then(l=>{o.value=l.data.data}).catch(l=>{Ae.fire({icon:"error",title:"Oops!",text:l.response.data.message})})}function d(l){let u=new RegExp(t.value,"ig"),m=l.matchAll(u);if(m.length===0)return l;let z=0;return m.forEach(ie=>{const Jt=l.slice(0,ie.index+z),Qt=l.slice(ie.index+z+ie[0].length),Ye=''+ie[0]+"";l=Jt+Ye+Qt,z+=Ye.length-ie[0].length}),l}return(l,u)=>(p(),v(X,null,[a("div",null,[Ie(a("input",{id:"search-box","onUpdate:modelValue":u[0]||(u[0]=m=>t.value=m),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[so,t.value]]),u[3]||(u[3]=a("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),a("div",Qs,[n.value?(p(),v("div",ei,[a("div",{class:"bg-black fixed w-full h-screen opacity-60 z-10",onClick:u[1]||(u[1]=m=>n.value=!1)}),a("div",ti,[a("div",oi,'Search Results for "'+_(t.value)+'"',1),o.value.users.length>0?(p(),v("div",ni,[u[5]||(u[5]=a("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.users,m=>(p(),v("div",null,[a("a",si,[a("div",ii,[a("div",{innerHTML:d(m.name)},null,8,ri),a("div",{innerHTML:d(m.email)},null,8,ai)]),u[4]||(u[4]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):O("",!0),o.value.voucherSets.length>0?(p(),v("div",li,[u[7]||(u[7]=a("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.voucherSets,m=>(p(),v("div",null,[a("a",{href:"/voucher-set/"+m.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",di,[a("div",{innerHTML:d(m.id)},null,8,ui)]),u[6]||(u[6]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ci)]))),256))])])):O("",!0),o.value.vouchers.length>0?(p(),v("div",wi,[u[9]||(u[9]=a("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.vouchers,m=>(p(),v("div",null,[a("a",{href:"/voucher/"+m.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",pi,[a("div",{innerHTML:d(m.id)},null,8,hi),a("div",mi,[a("div",{innerHTML:d("("+m.voucher_short_code+")")},null,8,gi)])]),u[8]||(u[8]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,fi)]))),256))])])):O("",!0)])])):O("",!0),s.value?(p(),v("div",bi,[a("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:u[2]||(u[2]=m=>s.value=!1)}),a("div",yi,[a("div",vi,'No Search Results for "'+_(t.value)+'"',1)])])):O("",!0)])],64))}},ki={class:"min-h-screen bg-gray-100"},Ci={class:"bg-white border-b border-gray-100"},Ai={class:"container mx-auto px-4 sm:px-6 lg:px-8"},$i={class:"flex justify-between h-16"},Ei={class:"flex items-center"},Bi={class:"shrink-0 flex items-center"},Pi={class:"hidden space-x-8 sm:-my-px sm:ms-10 sm:flex uppercase"},Ti={class:"hidden sm:flex sm:items-center sm:ms-6"},Li={key:0},Si={class:"ms-3 relative"},Ii={class:"inline-flex rounded-md"},Mi={type:"button",class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150"},Oi={class:"-me-2 flex items-center sm:hidden"},Hi={class:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},_i={class:"pt-2 pb-3 space-y-1"},ji={class:"pt-4 pb-1 border-t border-gray-200"},Di={class:"px-4"},zi={class:"text-base text-gray-800"},Vi={class:"text-sm text-gray-500"},qi={class:"mt-3 space-y-1"},Fi={key:0,class:"bg-white"},Ri={class:"container mx-auto py-6 px-4 flex justify-between items-center"},Ni={class:"w-full flex-grow font-bold text-lg"},Wi={key:0,class:"md:w-1/2"},Yi={__name:"AuthenticatedLayout",setup(e){const t=Y(!1);return(o,n)=>(p(),v("div",null,[a("div",ki,[a("nav",Ci,[a("div",Ai,[a("div",$i,[a("div",Ei,[a("div",Bi,[k(F(le),{href:o.route("dashboard")},{default:g(()=>[k(eo,{class:"block h-9 w-auto fill-current text-gray-800"})]),_:1},8,["href"])]),a("div",Pi,[k(lo,{href:o.route("dashboard"),active:o.route().current("dashboard")},{default:g(()=>n[1]||(n[1]=[A(" Dashboard ")])),_:1},8,["href","active"]),n[2]||(n[2]=a("a",{href:"/api-documentation",target:"_blank",class:"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"}," Api Docs ",-1))])]),a("div",Ti,[o.$page.props.isImpersonating?(p(),v("div",Li,[k(io,null,{default:g(()=>[k(F(le),{href:o.route("stop-impersonating")},{default:g(()=>n[3]||(n[3]=[A("Stop Impersonating")])),_:1},8,["href"])]),_:1})])):O("",!0),a("div",Si,[k(ao,{align:"right",width:"48"},{trigger:g(()=>[a("span",Ii,[a("button",Mi,[A(_(o.$page.props.auth.user.name)+" - "+_(o.$page.props.auth.currentTeam.name)+" ",1),n[4]||(n[4]=a("svg",{class:"ms-2 -me-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[a("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))])])]),content:g(()=>[o.$page.props.auth.user.is_admin?(p(),G(V,{key:0,href:o.route("admin.home")},{default:g(()=>n[5]||(n[5]=[A(" Admin Section ")])),_:1},8,["href"])):O("",!0),k(V,{href:o.route("profile.edit")},{default:g(()=>n[6]||(n[6]=[A(" Profile ")])),_:1},8,["href"]),k(V,{href:o.route("my-team")},{default:g(()=>n[7]||(n[7]=[A(" My Team ")])),_:1},8,["href"]),k(V,{href:o.route("my-team-voucher-sets")},{default:g(()=>n[8]||(n[8]=[A(" Voucher Sets ")])),_:1},8,["href"]),k(V,{href:o.route("audit-trail")},{default:g(()=>n[9]||(n[9]=[A(" Audit Trail ")])),_:1},8,["href"]),n[11]||(n[11]=a("hr",null,null,-1)),n[12]||(n[12]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(p(!0),v(X,null,ae(F(Je)().props.auth.availableTeams,s=>(p(),G(V,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),n[13]||(n[13]=a("hr",null,null,-1)),k(V,{href:o.route("logout"),method:"post",as:"button"},{default:g(()=>n[10]||(n[10]=[A(" Log Out ")])),_:1},8,["href"])]),_:1})])]),a("div",Oi,[a("button",{onClick:n[0]||(n[0]=s=>t.value=!t.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"},[(p(),v("svg",Hi,[a("path",{class:R({hidden:t.value,"inline-flex":!t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,2),a("path",{class:R({hidden:!t.value,"inline-flex":t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,2)]))])])])]),a("div",{class:R([{block:t.value,hidden:!t.value},"sm:hidden"])},[a("div",_i,[k(re,{href:o.route("dashboard"),active:o.route().current("dashboard")},{default:g(()=>n[14]||(n[14]=[A(" Dashboard ")])),_:1},8,["href","active"]),k(re,{href:o.route("audit-trail"),active:o.route().current("audit-trail")},{default:g(()=>n[15]||(n[15]=[A(" Audit Trail ")])),_:1},8,["href","active"])]),a("div",ji,[a("div",Di,[a("div",zi,_(o.$page.props.auth.user.name),1),a("div",Vi,_(o.$page.props.auth.user.email),1)]),a("div",qi,[k(re,{href:o.route("profile.edit")},{default:g(()=>n[16]||(n[16]=[A(" Profile ")])),_:1},8,["href"]),n[18]||(n[18]=a("hr",null,null,-1)),n[19]||(n[19]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(p(!0),v(X,null,ae(F(Je)().props.auth.availableTeams,s=>(p(),G(re,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),n[20]||(n[20]=a("hr",null,null,-1)),k(re,{href:o.route("logout"),method:"post",as:"button"},{default:g(()=>n[17]||(n[17]=[A(" Log Out ")])),_:1},8,["href"])])])],2)]),o.$slots.header?(p(),v("header",Fi,[a("div",Ri,[a("div",Ni,[W(o.$slots,"header")]),o.$page.url.startsWith("/admin")?O("",!0):(p(),v("div",Wi,[k(xi)]))])])):O("",!0),a("main",null,[W(o.$slots,"default")])])]))}};export{Ae as S,Yi as _}; diff --git a/public/build/assets/AuthenticatedLayout-hK9Fu3Th.js b/public/build/assets/AuthenticatedLayout-hK9Fu3Th.js new file mode 100644 index 0000000..2c23444 --- /dev/null +++ b/public/build/assets/AuthenticatedLayout-hK9Fu3Th.js @@ -0,0 +1,65 @@ +import{A as dn}from"./ApplicationLogo-Bw-pd1Lv.js";import{o as un,A as wn,B as ge,r as X,b as h,c as y,e as a,I as N,l as He,J as et,a as k,w as g,n as R,T as fn,i as J,u as F,P as ce,q as tt,s as hn,t as _,F as Z,h as le,g as O,f as A,m as nt}from"./app-JIuq7t-B.js";import{P as mn}from"./PrimaryButton-BXNSUttb.js";const pn={class:"relative"},gn={__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,n=d=>{r.value&&d.key==="Escape"&&(r.value=!1)};un(()=>document.addEventListener("keydown",n)),wn(()=>document.removeEventListener("keydown",n));const o=ge(()=>({48:"w-48"})[t.width.toString()]),s=ge(()=>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=X(!1);return(d,l)=>(h(),y("div",pn,[a("div",{onClick:l[0]||(l[0]=u=>r.value=!r.value)},[N(d.$slots,"trigger")]),He(a("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=u=>r.value=!1)},null,512),[[et,r.value]]),k(fn,{"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:g(()=>[He(a("div",{class:R(["absolute z-50 mt-2 rounded-md shadow-lg",[o.value,s.value]]),style:{display:"none"},onClick:l[2]||(l[2]=u=>r.value=!1)},[a("div",{class:R(["rounded-md ring-1 ring-black ring-opacity-5",e.contentClasses])},[N(d.$slots,"content")],2)],2),[[et,r.value]])]),_:3})]))}},V={__name:"DropdownLink",props:{href:{type:String,required:!0}},setup(e){return(t,n)=>(h(),J(F(ce),{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:g(()=>[N(t.$slots,"default")]),_:3},8,["href"]))}},bn={__name:"NavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,n=ge(()=>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(o,s)=>(h(),J(F(ce),{href:e.href,class:R(n.value)},{default:g(()=>[N(o.$slots,"default")]),_:3},8,["href","class"]))}},ae={__name:"ResponsiveNavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,n=ge(()=>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(o,s)=>(h(),J(F(ce),{href:e.href,class:R(n.value)},{default:g(()=>[N(o.$slots,"default")]),_:3},8,["href","class"]))}};/*! +* sweetalert2 v11.15.10 +* Released under the MIT License. +*/function mt(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function vn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ot(e,t){return e.get(mt(e,t))}function yn(e,t,n){vn(e,t),t.set(e,n)}function xn(e,t,n){return e.set(mt(e,t),n),n}const kn=100,c={},Cn=()=>{c.previousActiveElement instanceof HTMLElement?(c.previousActiveElement.focus(),c.previousActiveElement=null):document.body&&document.body.focus()},An=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,o=window.scrollY;c.restoreFocusTimeout=setTimeout(()=>{Cn(),t()},kn),window.scrollTo(n,o)}),pt="swal2-",En=["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","draggable","dragging"],i=En.reduce((e,t)=>(e[t]=pt+t,e),{}),$n=["success","warning","info","question","error"],be=$n.reduce((e,t)=>(e[t]=pt+t,e),{}),gt="SweetAlert2:",De=e=>e.charAt(0).toUpperCase()+e.slice(1),$=e=>{console.warn(`${gt} ${typeof e=="object"?e.join(" "):e}`)},Y=e=>{console.error(`${gt} ${e}`)},st=[],Bn=e=>{st.includes(e)||(st.push(e),$(e))},bt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Bn(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},Pe=e=>typeof e=="function"?e():e,ze=e=>e&&typeof e.toPromise=="function",de=e=>ze(e)?e.toPromise():Promise.resolve(e),Ve=e=>e&&Promise.resolve(e)===e,B=()=>document.body.querySelector(`.${i.container}`),ue=e=>{const t=B();return t?t.querySelector(e):null},L=e=>ue(`.${e}`),f=()=>L(i.popup),ne=()=>L(i.icon),Pn=()=>L(i["icon-content"]),vt=()=>L(i.title),qe=()=>L(i["html-container"]),yt=()=>L(i.image),Fe=()=>L(i["progress-steps"]),Le=()=>L(i["validation-message"]),M=()=>ue(`.${i.actions} .${i.confirm}`),oe=()=>ue(`.${i.actions} .${i.cancel}`),K=()=>ue(`.${i.actions} .${i.deny}`),Ln=()=>L(i["input-label"]),se=()=>ue(`.${i.loader}`),we=()=>L(i.actions),xt=()=>L(i.footer),Te=()=>L(i["timer-progress-bar"]),Re=()=>L(i.close),Tn=` + a[href], + area[href], + input:not([disabled]), + select:not([disabled]), + textarea:not([disabled]), + button:not([disabled]), + iframe, + object, + embed, + [tabindex="0"], + [contenteditable], + audio[controls], + video[controls], + summary +`,We=()=>{const e=f();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((r,d)=>{const l=parseInt(r.getAttribute("tabindex")||"0"),u=parseInt(d.getAttribute("tabindex")||"0");return l>u?1:lr.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(r=>E(r))},Ne=()=>H(document.body,i.shown)&&!H(document.body,i["toast-shown"])&&!H(document.body,i["no-backdrop"]),Se=()=>{const e=f();return e?H(e,i.toast):!1},Sn=()=>{const e=f();return e?e.hasAttribute("data-loading"):!1},T=(e,t)=>{if(e.textContent="",t){const o=new DOMParser().parseFromString(t,"text/html"),s=o.querySelector("head");s&&Array.from(s.childNodes).forEach(d=>{e.appendChild(d)});const r=o.querySelector("body");r&&Array.from(r.childNodes).forEach(d=>{d instanceof HTMLVideoElement||d instanceof HTMLAudioElement?e.appendChild(d.cloneNode(!0)):e.appendChild(d)})}},H=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let o=0;o{Array.from(e.classList).forEach(n=>{!Object.values(i).includes(n)&&!Object.values(be).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},P=(e,t,n)=>{if(In(e,t),!t.customClass)return;const o=t.customClass[n];if(o){if(typeof o!="string"&&!o.forEach){$(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);return}w(e,o)}},Ie=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${i.popup} > .${i[t]}`);case"checkbox":return e.querySelector(`.${i.popup} > .${i.checkbox} input`);case"radio":return e.querySelector(`.${i.popup} > .${i.radio} input:checked`)||e.querySelector(`.${i.popup} > .${i.radio} input:first-child`);case"range":return e.querySelector(`.${i.popup} > .${i.range} input`);default:return e.querySelector(`.${i.popup} > .${i.input}`)}},kt=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},Ct=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(o=>{Array.isArray(e)?e.forEach(s=>{n?s.classList.add(o):s.classList.remove(o)}):n?e.classList.add(o):e.classList.remove(o)}))},w=(e,t)=>{Ct(e,t,!0)},S=(e,t)=>{Ct(e,t,!1)},j=(e,t)=>{const n=Array.from(e.children);for(let o=0;o{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},x=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=t)},C=e=>{e&&(e.style.display="none")},Ue=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{fe(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},it=(e,t,n,o)=>{const s=e.querySelector(t);s&&s.style.setProperty(n,o)},fe=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";t?x(e,n):C(e)},E=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),Mn=()=>!E(M())&&!E(K())&&!E(oe()),rt=e=>e.scrollHeight>e.clientHeight,At=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},Ye=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=Te();n&&E(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},On=()=>{const e=Te();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),o=t/n*100;e.style.width=`${o}%`},Hn=()=>typeof window>"u"||typeof document>"u",_n=` +
    + +
      +
      + +

      +
      + + +
      + + +
      + +
      + + +
      +
      +
      + + + +
      +
      +
      +
      +
      +
      +`.replace(/(^|\n)\s*/g,""),jn=()=>{const e=B();return e?(e.remove(),S([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},q=()=>{c.currentInstance.resetValidationMessage()},Dn=()=>{const e=f(),t=j(e,i.input),n=j(e,i.file),o=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=j(e,i.select),d=e.querySelector(`.${i.checkbox} input`),l=j(e,i.textarea);t.oninput=q,n.onchange=q,r.onchange=q,d.onchange=q,l.oninput=q,o.oninput=()=>{q(),s.value=o.value},o.onchange=()=>{q(),s.value=o.value}},zn=e=>typeof e=="string"?document.querySelector(e):e,Vn=e=>{const t=f();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},qn=e=>{window.getComputedStyle(e).direction==="rtl"&&w(B(),i.rtl)},Fn=e=>{const t=jn();if(Hn()){Y("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=i.container,t&&w(n,i["no-transition"]),T(n,_n);const o=zn(e.target);o.appendChild(n),Vn(e),qn(o),Dn()},Ke=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Rn(e,t):e&&T(t,e)},Rn=(e,t)=>{e.jquery?Wn(t,e):T(t,e.toString())},Wn=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Nn=(e,t)=>{const n=we(),o=se();!n||!o||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?C(n):x(n),P(n,t,"actions"),Un(n,o,t),T(o,t.loaderHtml||""),P(o,t,"loader"))};function Un(e,t,n){const o=M(),s=K(),r=oe();!o||!s||!r||(Me(o,"confirm",n),Me(s,"deny",n),Me(r,"cancel",n),Yn(o,s,r,n),n.reverseButtons&&(n.toast?(e.insertBefore(r,o),e.insertBefore(s,o)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(o,t))))}function Yn(e,t,n,o){if(!o.buttonsStyling){S([e,t,n],i.styled);return}w([e,t,n],i.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,w(e,i["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,w(t,i["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,w(n,i["default-outline"]))}function Me(e,t,n){const o=De(t);fe(e,n[`show${o}Button`],"inline-block"),T(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=i[t],P(e,n,`${t}Button`)}const Kn=(e,t)=>{const n=Re();n&&(T(n,t.closeButtonHtml||""),P(n,t,"closeButton"),fe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Xn=(e,t)=>{const n=B();n&&(Zn(n,t.backdrop),Jn(n,t.position),Gn(n,t.grow),P(n,t,"container"))};function Zn(e,t){typeof t=="string"?e.style.background=t:t||w([document.documentElement,document.body],i["no-backdrop"])}function Jn(e,t){t&&(t in i?w(e,i[t]):($('The "position" parameter is not valid, defaulting to "center"'),w(e,i.center)))}function Gn(e,t){t&&w(e,i[`grow-${t}`])}var m={innerParams:new WeakMap,domCache:new WeakMap};const Qn=["input","file","range","select","radio","checkbox","textarea"],eo=(e,t)=>{const n=f();if(!n)return;const o=m.innerParams.get(e),s=!o||t.input!==o.input;Qn.forEach(r=>{const d=j(n,i[r]);d&&(oo(r,t.inputAttributes),d.className=i[r],s&&C(d))}),t.input&&(s&&to(t),so(t))},to=e=>{if(!e.input)return;if(!b[e.input]){Y(`Unexpected type of input! Expected ${Object.keys(b).join(" | ")}, got "${e.input}"`);return}const t=Et(e.input);if(!t)return;const n=b[e.input](t,e);x(t),e.inputAutoFocus&&setTimeout(()=>{kt(n)})},no=e=>{for(let t=0;t{const n=f();if(!n)return;const o=Ie(n,e);if(o){no(o);for(const s in t)o.setAttribute(s,t[s])}},so=e=>{if(!e.input)return;const t=Et(e.input);t&&P(t,e,"input")},Xe=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},he=(e,t,n)=>{if(n.inputLabel){const o=document.createElement("label"),s=i["input-label"];o.setAttribute("for",e.id),o.className=s,typeof n.customClass=="object"&&w(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Et=e=>{const t=f();if(t)return j(t,i[e]||i.input)},ve=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Ve(t)||$(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},b={};b.text=b.email=b.password=b.number=b.tel=b.url=b.search=b.date=b["datetime-local"]=b.time=b.week=b.month=(e,t)=>(ve(e,t.inputValue),he(e,e,t),Xe(e,t),e.type=t.input,e);b.file=(e,t)=>(he(e,e,t),Xe(e,t),e);b.range=(e,t)=>{const n=e.querySelector("input"),o=e.querySelector("output");return ve(n,t.inputValue),n.type=t.input,ve(o,t.inputValue),he(n,e,t),e};b.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");T(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return he(e,e,t),e};b.radio=e=>(e.textContent="",e);b.checkbox=(e,t)=>{const n=Ie(f(),"checkbox");n.value="1",n.checked=!!t.inputValue;const o=e.querySelector("span");return T(o,t.inputPlaceholder||t.inputLabel),n};b.textarea=(e,t)=>{ve(e,t.inputValue),Xe(e,t),he(e,e,t);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(f()).width),s=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+n(e);r>o?f().style.width=`${r}px`:W(f(),"width",t.width)};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const io=(e,t)=>{const n=qe();n&&(Ue(n),P(n,t,"htmlContainer"),t.html?(Ke(t.html,n),x(n,"block")):t.text?(n.textContent=t.text,x(n,"block")):C(n),eo(e,t))},ro=(e,t)=>{const n=xt();n&&(Ue(n),fe(n,t.footer,"block"),t.footer&&Ke(t.footer,n),P(n,t,"footer"))},ao=(e,t)=>{const n=m.innerParams.get(e),o=ne();if(o){if(n&&t.icon===n.icon){lt(o,t),at(o,t);return}if(!t.icon&&!t.iconHtml){C(o);return}if(t.icon&&Object.keys(be).indexOf(t.icon)===-1){Y(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),C(o);return}x(o),lt(o,t),at(o,t),w(o,t.showClass&&t.showClass.icon)}},at=(e,t)=>{for(const[n,o]of Object.entries(be))t.icon!==n&&S(e,o);w(e,t.icon&&be[t.icon]),wo(e,t),lo(),P(e,t,"icon")},lo=()=>{const e=f();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o + +
      +
      +`,uo=` + + + + +`,lt=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,o="";t.iconHtml?o=ct(t.iconHtml):t.icon==="success"?(o=co,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?o=uo:t.icon&&(o=ct({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&T(e,o)},wo=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])it(e,n,"background-color",t.iconColor);it(e,".swal2-success-ring","border-color",t.iconColor)}},ct=e=>`
      ${e}
      `,fo=(e,t)=>{const n=yt();if(n){if(!t.imageUrl){C(n);return}x(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),W(n,"width",t.imageWidth),W(n,"height",t.imageHeight),n.className=i.image,P(n,t,"image")}};let Ze=!1,$t=0,Bt=0,Pt=0,Lt=0;const ho=e=>{e.addEventListener("mousedown",ye),document.body.addEventListener("mousemove",xe),e.addEventListener("mouseup",ke),e.addEventListener("touchstart",ye),document.body.addEventListener("touchmove",xe),e.addEventListener("touchend",ke)},mo=e=>{e.removeEventListener("mousedown",ye),document.body.removeEventListener("mousemove",xe),e.removeEventListener("mouseup",ke),e.removeEventListener("touchstart",ye),document.body.removeEventListener("touchmove",xe),e.removeEventListener("touchend",ke)},ye=e=>{const t=f();if(e.target===t||ne().contains(e.target)){Ze=!0;const n=Tt(e);$t=n.clientX,Bt=n.clientY,Pt=parseInt(t.style.insetInlineStart)||0,Lt=parseInt(t.style.insetBlockStart)||0,w(t,"swal2-dragging")}},xe=e=>{const t=f();if(Ze){let{clientX:n,clientY:o}=Tt(e);t.style.insetInlineStart=`${Pt+(n-$t)}px`,t.style.insetBlockStart=`${Lt+(o-Bt)}px`}},ke=()=>{const e=f();Ze=!1,S(e,"swal2-dragging")},Tt=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},po=(e,t)=>{const n=B(),o=f();if(!(!n||!o)){if(t.toast){W(n,"width",t.width),o.style.width="100%";const s=se();s&&o.insertBefore(s,ne())}else W(o,"width",t.width);W(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),C(Le()),go(o,t),t.draggable&&!t.toast?(w(o,i.draggable),ho(o)):(S(o,i.draggable),mo(o))}},go=(e,t)=>{const n=t.showClass||{};e.className=`${i.popup} ${E(e)?n.popup:""}`,t.toast?(w([document.documentElement,document.body],i["toast-shown"]),w(e,i.toast)):w(e,i.modal),P(e,t,"popup"),typeof t.customClass=="string"&&w(e,t.customClass),t.icon&&w(e,i[`icon-${t.icon}`])},bo=(e,t)=>{const n=Fe();if(!n)return;const{progressSteps:o,currentProgressStep:s}=t;if(!o||o.length===0||s===void 0){C(n);return}x(n),n.textContent="",s>=o.length&&$("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((r,d)=>{const l=vo(r);if(n.appendChild(l),d===s&&w(l,i["active-progress-step"]),d!==o.length-1){const u=yo(t);n.appendChild(u)}})},vo=e=>{const t=document.createElement("li");return w(t,i["progress-step"]),T(t,e),t},yo=e=>{const t=document.createElement("li");return w(t,i["progress-step-line"]),e.progressStepsDistance&&W(t,"width",e.progressStepsDistance),t},xo=(e,t)=>{const n=vt();n&&(Ue(n),fe(n,t.title||t.titleText,"block"),t.title&&Ke(t.title,n),t.titleText&&(n.innerText=t.titleText),P(n,t,"title"))},St=(e,t)=>{po(e,t),Xn(e,t),bo(e,t),ao(e,t),fo(e,t),xo(e,t),Kn(e,t),io(e,t),Nn(e,t),ro(e,t);const n=f();typeof t.didRender=="function"&&n&&t.didRender(n),c.eventEmitter.emit("didRender",n)},ko=()=>E(f()),It=()=>{var e;return(e=M())===null||e===void 0?void 0:e.click()},Co=()=>{var e;return(e=K())===null||e===void 0?void 0:e.click()},Ao=()=>{var e;return(e=oe())===null||e===void 0?void 0:e.click()},ie=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Mt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Eo=(e,t,n)=>{Mt(e),t.toast||(e.keydownHandler=o=>Bo(t,o,n),e.keydownTarget=t.keydownListenerCapture?window:f(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},_e=(e,t)=>{var n;const o=We();if(o.length){e=e+t,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();return}(n=f())===null||n===void 0||n.focus()},Ot=["ArrowRight","ArrowDown"],$o=["ArrowLeft","ArrowUp"],Bo=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?Po(t,e):t.key==="Tab"?Lo(t):[...Ot,...$o].includes(t.key)?To(t.key):t.key==="Escape"&&So(t,e,n)))},Po=(e,t)=>{if(!Pe(t.allowEnterKey))return;const n=Ie(f(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;It(),e.preventDefault()}},Lo=e=>{const t=e.target,n=We();let o=-1;for(let s=0;s{const t=we(),n=M(),o=K(),s=oe();if(!t||!n||!o||!s)return;const r=[n,o,s];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const d=Ot.includes(e)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let u=0;u{Pe(t.allowEscapeKey)&&(e.preventDefault(),n(ie.esc))};var ee={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Io=()=>{const e=B();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},Ht=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},_t=typeof window<"u"&&!!window.GestureEvent,Mo=()=>{if(_t&&!H(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,w(document.body,i.iosfix),Oo()}},Oo=()=>{const e=B();if(!e)return;let t;e.ontouchstart=n=>{t=Ho(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},Ho=e=>{const t=e.target,n=B(),o=qe();return!n||!o||_o(e)||jo(e)?!1:t===n||!rt(n)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(rt(o)&&o.contains(t))},_o=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",jo=e=>e.touches&&e.touches.length>1,Do=()=>{if(H(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);S(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},zo=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let G=null;const Vo=e=>{G===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(G=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${G+zo()}px`)},qo=()=>{G!==null&&(document.body.style.paddingRight=`${G}px`,G=null)};function jt(e,t,n,o){Se()?dt(e,o):(An(n).then(()=>dt(e,o)),Mt(c)),_t?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Ne()&&(qo(),Do(),Ht()),Fo()}function Fo(){S([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function D(e){e=Wo(e);const t=ee.swalPromiseResolve.get(this),n=Ro(this);this.isAwaitingPromise?e.isDismissed||(me(this),t(e)):n&&t(e)}const Ro=e=>{const t=f();if(!t)return!1;const n=m.innerParams.get(e);if(!n||H(t,n.hideClass.popup))return!1;S(t,n.showClass.popup),w(t,n.hideClass.popup);const o=B();return S(o,n.showClass.backdrop),w(o,n.hideClass.backdrop),No(e,t,n),!0};function Dt(e){const t=ee.swalPromiseReject.get(this);me(this),t&&t(e)}const me=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,m.innerParams.get(e)||e._destroy())},Wo=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),No=(e,t,n)=>{var o;const s=B(),r=At(t);typeof n.willClose=="function"&&n.willClose(t),(o=c.eventEmitter)===null||o===void 0||o.emit("willClose",t),r?Uo(e,t,s,n.returnFocus,n.didClose):jt(e,s,n.returnFocus,n.didClose)},Uo=(e,t,n,o,s)=>{c.swalCloseEventFinishedCallback=jt.bind(null,e,n,o,s);const r=function(d){if(d.target===t){var l;(l=c.swalCloseEventFinishedCallback)===null||l===void 0||l.call(c),delete c.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r)}};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},dt=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=c.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},te=e=>{let t=f();if(t||new Be,t=f(),!t)return;const n=se();Se()?C(ne()):Yo(t,e),x(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},Yo=(e,t)=>{const n=we(),o=se();!n||!o||(!t&&E(M())&&(t=M()),x(n),t&&(C(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),w([e,n],i.loading))},Ko=(e,t)=>{t.input==="select"||t.input==="radio"?Qo(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(ze(t.inputValue)||Ve(t.inputValue))&&(te(M()),es(e,t))},Xo=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Zo(n);case"radio":return Jo(n);case"file":return Go(n);default:return t.inputAutoTrim?n.value.trim():n.value}},Zo=e=>e.checked?1:0,Jo=e=>e.checked?e.value:null,Go=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Qo=(e,t)=>{const n=f();if(!n)return;const o=s=>{t.input==="select"?ts(n,Ce(s),t):t.input==="radio"&&ns(n,Ce(s),t)};ze(t.inputOptions)||Ve(t.inputOptions)?(te(M()),de(t.inputOptions).then(s=>{e.hideLoading(),o(s)})):typeof t.inputOptions=="object"?o(t.inputOptions):Y(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},es=(e,t)=>{const n=e.getInput();n&&(C(n),de(t.inputValue).then(o=>{n.value=t.input==="number"?`${parseFloat(o)||0}`:`${o}`,x(n),n.focus(),e.hideLoading()}).catch(o=>{Y(`Error in inputValue promise: ${o}`),n.value="",x(n),n.focus(),e.hideLoading()}))};function ts(e,t,n){const o=j(e,i.select);if(!o)return;const s=(r,d,l)=>{const u=document.createElement("option");u.value=l,T(u,d),u.selected=zt(l,n.inputValue),r.appendChild(u)};t.forEach(r=>{const d=r[0],l=r[1];if(Array.isArray(l)){const u=document.createElement("optgroup");u.label=d,u.disabled=!1,o.appendChild(u),l.forEach(p=>s(u,p[1],p[0]))}else s(o,l,d)}),o.focus()}function ns(e,t,n){const o=j(e,i.radio);if(!o)return;t.forEach(r=>{const d=r[0],l=r[1],u=document.createElement("input"),p=document.createElement("label");u.type="radio",u.name=i.radio,u.value=d,zt(d,n.inputValue)&&(u.checked=!0);const z=document.createElement("span");T(z,l),z.className=i.label,p.appendChild(u),p.appendChild(z),o.appendChild(p)});const s=o.querySelectorAll("input");s.length&&s[0].focus()}const Ce=e=>{const t=[];return e instanceof Map?e.forEach((n,o)=>{let s=n;typeof s=="object"&&(s=Ce(s)),t.push([o,s])}):Object.keys(e).forEach(n=>{let o=e[n];typeof o=="object"&&(o=Ce(o)),t.push([n,o])}),t},zt=(e,t)=>!!t&&t.toString()===e.toString(),os=e=>{const t=m.innerParams.get(e);e.disableButtons(),t.input?Vt(e,"confirm"):Ge(e,!0)},ss=e=>{const t=m.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Vt(e,"deny"):Je(e,!1)},is=(e,t)=>{e.disableButtons(),t(ie.cancel)},Vt=(e,t)=>{const n=m.innerParams.get(e);if(!n.input){Y(`The "input" parameter is needed to be set when using returnInputValueOn${De(t)}`);return}const o=e.getInput(),s=Xo(e,n);n.inputValidator?rs(e,s,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):t==="deny"?Je(e,s):Ge(e,s)},rs=(e,t,n)=>{const o=m.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>de(o.inputValidator(t,o.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):n==="deny"?Je(e,t):Ge(e,t)})},Je=(e,t)=>{const n=m.innerParams.get(e||void 0);n.showLoaderOnDeny&&te(K()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>de(n.preDeny(t,n.validationMessage))).then(s=>{s===!1?(e.hideLoading(),me(e)):e.close({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>qt(e||void 0,s))):e.close({isDenied:!0,value:t})},ut=(e,t)=>{e.close({isConfirmed:!0,value:t})},qt=(e,t)=>{e.rejectPromise(t)},Ge=(e,t)=>{const n=m.innerParams.get(e||void 0);n.showLoaderOnConfirm&&te(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>de(n.preConfirm(t,n.validationMessage))).then(s=>{E(Le())||s===!1?(e.hideLoading(),me(e)):ut(e,typeof s>"u"?t:s)}).catch(s=>qt(e||void 0,s))):ut(e,t)};function Ae(){const e=m.innerParams.get(this);if(!e)return;const t=m.domCache.get(this);C(t.loader),Se()?e.icon&&x(ne()):as(t),S([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const as=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?x(t[0],"inline-block"):Mn()&&C(e.actions)};function Ft(){const e=m.innerParams.get(this),t=m.domCache.get(this);return t?Ie(t.popup,e.input):null}function Rt(e,t,n){const o=m.domCache.get(e);t.forEach(s=>{o[s].disabled=n})}function Wt(e,t){const n=f();if(!(!n||!e))if(e.type==="radio"){const o=n.querySelectorAll(`[name="${i.radio}"]`);for(let s=0;sObject.prototype.hasOwnProperty.call(Q,e),Gt=e=>ls.indexOf(e)!==-1,Qt=e=>cs[e],us=e=>{Jt(e)||$(`Unknown parameter "${e}"`)},ws=e=>{ds.includes(e)&&$(`The parameter "${e}" is incompatible with toasts`)},fs=e=>{const t=Qt(e);t&&bt(e,t)},hs=e=>{e.backdrop===!1&&e.allowOutsideClick&&$('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)us(t),e.toast&&ws(t),fs(t)};function en(e){const t=f(),n=m.innerParams.get(this);if(!t||H(t,n.hideClass.popup)){$("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const o=ms(e),s=Object.assign({},n,o);St(this,s),m.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ms=e=>{const t={};return Object.keys(e).forEach(n=>{Gt(n)?t[n]=e[n]:$(`Invalid parameter to update: ${n}`)}),t};function tn(){const e=m.domCache.get(this),t=m.innerParams.get(this);if(!t){nn(this);return}e.popup&&c.swalCloseEventFinishedCallback&&(c.swalCloseEventFinishedCallback(),delete c.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),c.eventEmitter.emit("didDestroy"),ps(this)}const ps=e=>{nn(e),delete e.params,delete c.keydownHandler,delete c.keydownTarget,delete c.currentInstance},nn=e=>{e.isAwaitingPromise?(Oe(m,e),e.isAwaitingPromise=!0):(Oe(ee,e),Oe(m,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Oe=(e,t)=>{for(const n in e)e[n].delete(t)};var gs=Object.freeze({__proto__:null,_destroy:tn,close:D,closeModal:D,closePopup:D,closeToast:D,disableButtons:Ut,disableInput:Kt,disableLoading:Ae,enableButtons:Nt,enableInput:Yt,getInput:Ft,handleAwaitingPromise:me,hideLoading:Ae,rejectPromise:Dt,resetValidationMessage:Zt,showValidationMessage:Xt,update:en});const bs=(e,t,n)=>{e.toast?vs(e,t,n):(xs(t),ks(t),Cs(e,t,n))},vs=(e,t,n)=>{t.popup.onclick=()=>{e&&(ys(e)||e.timer||e.input)||n(ie.close)}},ys=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let Ee=!1;const xs=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(Ee=!0)}}},ks=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(Ee=!0)}}},Cs=(e,t,n)=>{t.container.onclick=o=>{if(Ee){Ee=!1;return}o.target===t.container&&Pe(e.allowOutsideClick)&&n(ie.backdrop)}},As=e=>typeof e=="object"&&e.jquery,wt=e=>e instanceof Element||As(e),Es=e=>{const t={};return typeof e[0]=="object"&&!wt(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,o)=>{const s=e[o];typeof s=="string"||wt(s)?t[n]=s:s!==void 0&&Y(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),t};function $s(){for(var e=arguments.length,t=new Array(e),n=0;nc.timeout&&c.timeout.getTimerLeft(),on=()=>{if(c.timeout)return On(),c.timeout.stop()},sn=()=>{if(c.timeout){const e=c.timeout.start();return Ye(e),e}},Ls=()=>{const e=c.timeout;return e&&(e.running?on():sn())},Ts=e=>{if(c.timeout){const t=c.timeout.increase(e);return Ye(t,!0),t}},Ss=()=>!!(c.timeout&&c.timeout.isRunning());let ft=!1;const je={};function Is(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";je[e]=this,ft||(document.body.addEventListener("click",Ms),ft=!0)}const Ms=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in je){const o=t.getAttribute(n);if(o){je[n].fire({template:o});return}}};class Os{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const o=this._getHandlersByEventName(t);o.includes(n)||o.push(n)}once(t,n){var o=this;const s=function(){o.removeListener(t,s);for(var r=arguments.length,d=new Array(r),l=0;l1?n-1:0),s=1;s{try{r.apply(this,o)}catch(d){console.error(d)}})}removeListener(t,n){const o=this._getHandlersByEventName(t),s=o.indexOf(n);s>-1&&o.splice(s,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}c.eventEmitter=new Os;const Hs=(e,t)=>{c.eventEmitter.on(e,t)},_s=(e,t)=>{c.eventEmitter.once(e,t)},js=(e,t)=>{if(!e){c.eventEmitter.reset();return}t?c.eventEmitter.removeListener(e,t):c.eventEmitter.removeAllListeners(e)};var Ds=Object.freeze({__proto__:null,argsToParams:Es,bindClickHandler:Is,clickCancel:Ao,clickConfirm:It,clickDeny:Co,enableLoading:te,fire:$s,getActions:we,getCancelButton:oe,getCloseButton:Re,getConfirmButton:M,getContainer:B,getDenyButton:K,getFocusableElements:We,getFooter:xt,getHtmlContainer:qe,getIcon:ne,getIconContent:Pn,getImage:yt,getInputLabel:Ln,getLoader:se,getPopup:f,getProgressSteps:Fe,getTimerLeft:Ps,getTimerProgressBar:Te,getTitle:vt,getValidationMessage:Le,increaseTimer:Ts,isDeprecatedParameter:Qt,isLoading:Sn,isTimerRunning:Ss,isUpdatableParameter:Gt,isValidParameter:Jt,isVisible:ko,mixin:Bs,off:js,on:Hs,once:_s,resumeTimer:sn,showLoading:te,stopTimer:on,toggleTimer:Ls});class zs{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const rn=["swal-title","swal-html","swal-footer"],Vs=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return Ks(n),Object.assign(qs(n),Fs(n),Rs(n),Ws(n),Ns(n),Us(n),Ys(n,rn))},qs=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(o=>{U(o,["name","value"]);const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(typeof Q[s]=="boolean"?t[s]=r!=="false":typeof Q[s]=="object"?t[s]=JSON.parse(r):t[s]=r)}),t},Fs=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(o=>{const s=o.getAttribute("name"),r=o.getAttribute("value");!s||!r||(t[s]=new Function(`return ${r}`)())}),t},Rs=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(o=>{U(o,["type","color","aria-label"]);const s=o.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(t[`${s}ButtonText`]=o.innerHTML,t[`show${De(s)}Button`]=!0,o.hasAttribute("color")&&(t[`${s}ButtonColor`]=o.getAttribute("color")),o.hasAttribute("aria-label")&&(t[`${s}ButtonAriaLabel`]=o.getAttribute("aria-label")))}),t},Ws=e=>{const t={},n=e.querySelector("swal-image");return n&&(U(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},Ns=e=>{const t={},n=e.querySelector("swal-icon");return n&&(U(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Us=e=>{const t={},n=e.querySelector("swal-input");n&&(U(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach(s=>{U(s,["value"]);const r=s.getAttribute("value");if(!r)return;const d=s.innerHTML;t.inputOptions[r]=d})),t},Ys=(e,t)=>{const n={};for(const o in t){const s=t[o],r=e.querySelector(s);r&&(U(r,[]),n[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},Ks=e=>{const t=rn.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const o=n.tagName.toLowerCase();t.includes(o)||$(`Unrecognized element <${o}>`)})},U=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&$([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},an=10,Xs=e=>{const t=B(),n=f();typeof e.willOpen=="function"&&e.willOpen(n),c.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;Gs(t,n,e),setTimeout(()=>{Zs(t,n)},an),Ne()&&(Js(t,e.scrollbarPadding,s),Io()),!Se()&&!c.previousActiveElement&&(c.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),c.eventEmitter.emit("didOpen",n),S(t,i["no-transition"])},$e=e=>{const t=f();if(e.target!==t)return;const n=B();t.removeEventListener("animationend",$e),t.removeEventListener("transitionend",$e),n.style.overflowY="auto"},Zs=(e,t)=>{At(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",$e),t.addEventListener("transitionend",$e)):e.style.overflowY="auto"},Js=(e,t,n)=>{Mo(),t&&n!=="hidden"&&Vo(n),setTimeout(()=>{e.scrollTop=0})},Gs=(e,t,n)=>{w(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),x(t,"grid"),setTimeout(()=>{w(t,n.showClass.popup),t.style.removeProperty("opacity")},an)):x(t,"grid"),w([document.documentElement,document.body],i.shown),n.heightAuto&&n.backdrop&&!n.toast&&w([document.documentElement,document.body],i["height-auto"])};var ht={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Qs(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=ht.email),e.input==="url"&&(e.inputValidator=ht.url))}function ei(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&($('Target parameter is not valid, defaulting to "body"'),e.target="body")}function ti(e){Qs(e),e.showLoaderOnConfirm&&!e.preConfirm&&$(`showLoaderOnConfirm is set to true, but preConfirm is not defined. +showLoaderOnConfirm should be used together with preConfirm, see usage example: +https://sweetalert2.github.io/#ajax-request`),ei(e),typeof e.title=="string"&&(e.title=e.title.split(` +`).join("
      ")),Fn(e)}let I;var pe=new WeakMap;class v{constructor(){if(yn(this,pe,void 0),typeof window>"u")return;I=this;for(var t=arguments.length,n=new Array(t),o=0;o1&&arguments[1]!==void 0?arguments[1]:{};if(hs(Object.assign({},n,t)),c.currentInstance){const r=ee.swalPromiseResolve.get(c.currentInstance),{isAwaitingPromise:d}=c.currentInstance;c.currentInstance._destroy(),d||r({isDismissed:!0}),Ne()&&Ht()}c.currentInstance=I;const o=oi(t,n);ti(o),Object.freeze(o),c.timeout&&(c.timeout.stop(),delete c.timeout),clearTimeout(c.restoreFocusTimeout);const s=si(I);return St(I,o),m.innerParams.set(I,o),ni(I,s,o)}then(t){return ot(pe,this).then(t)}finally(t){return ot(pe,this).finally(t)}}const ni=(e,t,n)=>new Promise((o,s)=>{const r=d=>{e.close({isDismissed:!0,dismiss:d})};ee.swalPromiseResolve.set(e,o),ee.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{os(e)},t.denyButton.onclick=()=>{ss(e)},t.cancelButton.onclick=()=>{is(e,r)},t.closeButton.onclick=()=>{r(ie.close)},bs(n,t,r),Eo(c,n,r),Ko(e,n),Xs(n),ii(c,n,r),ri(t,n),setTimeout(()=>{t.container.scrollTop=0})}),oi=(e,t)=>{const n=Vs(e),o=Object.assign({},Q,t,n,e);return o.showClass=Object.assign({},Q.showClass,o.showClass),o.hideClass=Object.assign({},Q.hideClass,o.hideClass),o.animation===!1&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},si=e=>{const t={popup:f(),container:B(),actions:we(),confirmButton:M(),denyButton:K(),cancelButton:oe(),loader:se(),closeButton:Re(),validationMessage:Le(),progressSteps:Fe()};return m.domCache.set(e,t),t},ii=(e,t,n)=>{const o=Te();C(o),t.timer&&(e.timeout=new zs(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(x(o),P(o,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Ye(t.timer)})))},ri=(e,t)=>{if(!t.toast){if(!Pe(t.allowEnterKey)){bt("allowEnterKey"),ci();return}ai(e)||li(e,t)||_e(-1,1)}},ai=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&E(n))return n.focus(),!0;return!1},li=(e,t)=>t.focusDeny&&E(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&E(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&E(e.confirmButton)?(e.confirmButton.focus(),!0):!1,ci=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}v.prototype.disableButtons=Ut;v.prototype.enableButtons=Nt;v.prototype.getInput=Ft;v.prototype.disableInput=Kt;v.prototype.enableInput=Yt;v.prototype.hideLoading=Ae;v.prototype.disableLoading=Ae;v.prototype.showValidationMessage=Xt;v.prototype.resetValidationMessage=Zt;v.prototype.close=D;v.prototype.closePopup=D;v.prototype.closeModal=D;v.prototype.closeToast=D;v.prototype.rejectPromise=Dt;v.prototype.update=en;v.prototype._destroy=tn;Object.assign(v,Ds);Object.keys(gs).forEach(e=>{v[e]=function(){return I&&I[e]?I[e](...arguments):null}});v.DismissReason=ie;v.version="11.15.10";const Be=v;Be.default=Be;typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,'body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const di={class:"h-full"},ui={key:0,class:"absolute left-0 w-full h-full min-h-full min-w-full"},wi={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},fi={class:"mb-4 text-2xl"},hi={key:0,class:"mb-8"},mi={href:"/my-team/#myTeamMembers",class:"flex justify-between w-full py-2 border-b",tabindex:"0"},pi={class:"flex space-x-4"},gi=["innerHTML"],bi=["innerHTML"],vi={key:1,class:"my-8"},yi=["href"],xi={class:"flex"},ki=["innerHTML"],Ci={key:2,class:"my-8"},Ai=["href"],Ei={class:"flex"},$i=["innerHTML"],Bi={class:"ml-2"},Pi=["innerHTML"],Li={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},Ti={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},Si={class:"text-2xl"},Ii={__name:"SearchComponent",setup(e){const t=X(""),n=X({users:[],vouchers:[],voucherSets:[]}),o=X(!1),s=X(!1);tt(t,()=>{t.value.length>=3?r():(o.value=!1,s.value=!1)}),tt(n,()=>{o.value=!1,s.value=!1,t.value.length>=3&&(n.value.users.length||n.value.vouchers.length||n.value.voucherSets.length?o.value=!0:s.value=!0)});function r(){t.value&&t.value.length>=3&&axios.get("/my-team-search?cached=false&query="+t.value).then(l=>{n.value=l.data.data}).catch(l=>{Be.fire({icon:"error",title:"Oops!",text:l.response.data.message})})}function d(l){let u=new RegExp(t.value,"ig"),p=l.matchAll(u);if(p.length===0)return l;let z=0;return p.forEach(re=>{const ln=l.slice(0,re.index+z),cn=l.slice(re.index+z+re[0].length),Qe=''+re[0]+"";l=ln+Qe+cn,z+=Qe.length-re[0].length}),l}return(l,u)=>(h(),y(Z,null,[a("div",null,[He(a("input",{id:"search-box","onUpdate:modelValue":u[0]||(u[0]=p=>t.value=p),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[hn,t.value]]),u[3]||(u[3]=a("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),a("div",di,[o.value?(h(),y("div",ui,[a("div",{class:"bg-black fixed w-full h-screen opacity-60 z-10",onClick:u[1]||(u[1]=p=>o.value=!1)}),a("div",wi,[a("div",fi,'Search Results for "'+_(t.value)+'"',1),n.value.users.length>0?(h(),y("div",hi,[u[5]||(u[5]=a("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),a("div",null,[(h(!0),y(Z,null,le(n.value.users,p=>(h(),y("div",null,[a("a",mi,[a("div",pi,[a("div",{innerHTML:d(p.name)},null,8,gi),a("div",{innerHTML:d(p.email)},null,8,bi)]),u[4]||(u[4]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):O("",!0),n.value.voucherSets.length>0?(h(),y("div",vi,[u[7]||(u[7]=a("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),a("div",null,[(h(!0),y(Z,null,le(n.value.voucherSets,p=>(h(),y("div",null,[a("a",{href:"/voucher-set/"+p.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",xi,[a("div",{innerHTML:d(p.id)},null,8,ki)]),u[6]||(u[6]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,yi)]))),256))])])):O("",!0),n.value.vouchers.length>0?(h(),y("div",Ci,[u[9]||(u[9]=a("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),a("div",null,[(h(!0),y(Z,null,le(n.value.vouchers,p=>(h(),y("div",null,[a("a",{href:"/voucher/"+p.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",Ei,[a("div",{innerHTML:d(p.id)},null,8,$i),a("div",Bi,[a("div",{innerHTML:d("("+p.voucher_short_code+")")},null,8,Pi)])]),u[8]||(u[8]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Ai)]))),256))])])):O("",!0)])])):O("",!0),s.value?(h(),y("div",Li,[a("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:u[2]||(u[2]=p=>s.value=!1)}),a("div",Ti,[a("div",Si,'No Search Results for "'+_(t.value)+'"',1)])])):O("",!0)])],64))}},Mi={class:"min-h-screen bg-gray-100"},Oi={class:"bg-white border-b border-gray-100"},Hi={class:"container mx-auto px-4 sm:px-6 lg:px-8"},_i={class:"flex justify-between h-16"},ji={class:"flex items-center"},Di={class:"shrink-0 flex items-center"},zi={class:"hidden space-x-8 sm:-my-px sm:ms-10 sm:flex uppercase"},Vi={class:"hidden sm:flex sm:items-center sm:ms-6"},qi={key:0},Fi={class:"ms-3 relative"},Ri={class:"inline-flex rounded-md"},Wi={type:"button",class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150"},Ni={class:"-me-2 flex items-center sm:hidden"},Ui={class:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},Yi={class:"pt-2 pb-3 space-y-1"},Ki={class:"pt-4 pb-1 border-t border-gray-200"},Xi={class:"px-4"},Zi={class:"text-base text-gray-800"},Ji={class:"text-sm text-gray-500"},Gi={class:"mt-3 space-y-1"},Qi={key:0,class:"bg-white"},er={class:"container mx-auto py-6 px-4 flex justify-between items-center"},tr={class:"w-full flex-grow font-bold text-lg"},nr={key:0,class:"md:w-1/2"},rr={__name:"AuthenticatedLayout",setup(e){const t=X(!1);return(n,o)=>(h(),y("div",null,[a("div",Mi,[a("nav",Oi,[a("div",Hi,[a("div",_i,[a("div",ji,[a("div",Di,[k(F(ce),{href:n.route("dashboard")},{default:g(()=>[k(dn,{class:"block h-9 w-auto fill-current text-gray-800"})]),_:1},8,["href"])]),a("div",zi,[k(bn,{href:n.route("dashboard"),active:n.route().current("dashboard")},{default:g(()=>o[1]||(o[1]=[A(" Dashboard ")])),_:1},8,["href","active"]),o[2]||(o[2]=a("a",{href:"/api-documentation",target:"_blank",class:"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"}," Api Docs ",-1))])]),a("div",Vi,[n.$page.props.isImpersonating?(h(),y("div",qi,[k(mn,null,{default:g(()=>[k(F(ce),{href:n.route("stop-impersonating")},{default:g(()=>o[3]||(o[3]=[A("Stop Impersonating")])),_:1},8,["href"])]),_:1})])):O("",!0),a("div",Fi,[k(gn,{align:"right",width:"48"},{trigger:g(()=>[a("span",Ri,[a("button",Wi,[A(_(n.$page.props.auth.user.name)+" - "+_(n.$page.props.auth.currentTeam.name)+" ",1),o[4]||(o[4]=a("svg",{class:"ms-2 -me-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[a("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))])])]),content:g(()=>[n.$page.props.auth.user.is_admin?(h(),J(V,{key:0,href:n.route("admin.home")},{default:g(()=>o[5]||(o[5]=[A(" Admin Section ")])),_:1},8,["href"])):O("",!0),k(V,{href:n.route("profile.edit")},{default:g(()=>o[6]||(o[6]=[A(" Profile ")])),_:1},8,["href"]),k(V,{href:n.route("my-team")},{default:g(()=>o[7]||(o[7]=[A(" My Team ")])),_:1},8,["href"]),k(V,{href:n.route("my-team-voucher-sets")},{default:g(()=>o[8]||(o[8]=[A(" Voucher Sets ")])),_:1},8,["href"]),k(V,{href:n.route("audit-trail")},{default:g(()=>o[9]||(o[9]=[A(" Audit Trail ")])),_:1},8,["href"]),o[11]||(o[11]=a("hr",null,null,-1)),o[12]||(o[12]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(h(!0),y(Z,null,le(F(nt)().props.auth.availableTeams,s=>(h(),J(V,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),o[13]||(o[13]=a("hr",null,null,-1)),k(V,{href:n.route("logout"),method:"post",as:"button"},{default:g(()=>o[10]||(o[10]=[A(" Log Out ")])),_:1},8,["href"])]),_:1})])]),a("div",Ni,[a("button",{onClick:o[0]||(o[0]=s=>t.value=!t.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"},[(h(),y("svg",Ui,[a("path",{class:R({hidden:t.value,"inline-flex":!t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,2),a("path",{class:R({hidden:!t.value,"inline-flex":t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,2)]))])])])]),a("div",{class:R([{block:t.value,hidden:!t.value},"sm:hidden"])},[a("div",Yi,[k(ae,{href:n.route("dashboard"),active:n.route().current("dashboard")},{default:g(()=>o[14]||(o[14]=[A(" Dashboard ")])),_:1},8,["href","active"]),k(ae,{href:n.route("audit-trail"),active:n.route().current("audit-trail")},{default:g(()=>o[15]||(o[15]=[A(" Audit Trail ")])),_:1},8,["href","active"])]),a("div",Ki,[a("div",Xi,[a("div",Zi,_(n.$page.props.auth.user.name),1),a("div",Ji,_(n.$page.props.auth.user.email),1)]),a("div",Gi,[k(ae,{href:n.route("profile.edit")},{default:g(()=>o[16]||(o[16]=[A(" Profile ")])),_:1},8,["href"]),o[18]||(o[18]=a("hr",null,null,-1)),o[19]||(o[19]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(h(!0),y(Z,null,le(F(nt)().props.auth.availableTeams,s=>(h(),J(ae,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),o[20]||(o[20]=a("hr",null,null,-1)),k(ae,{href:n.route("logout"),method:"post",as:"button"},{default:g(()=>o[17]||(o[17]=[A(" Log Out ")])),_:1},8,["href"])])])],2)]),n.$slots.header?(h(),y("header",Qi,[a("div",er,[a("div",tr,[N(n.$slots,"header")]),n.$page.url.startsWith("/admin")?O("",!0):(h(),y("div",nr,[k(Ii)]))])])):O("",!0),a("main",null,[N(n.$slots,"default")])])]))}};export{Be as S,rr as _}; diff --git a/public/build/assets/Checkbox-B4dYSFbU.js b/public/build/assets/Checkbox-BDcuv2X-.js similarity index 87% rename from public/build/assets/Checkbox-B4dYSFbU.js rename to public/build/assets/Checkbox-BDcuv2X-.js index f1e5497..91dee10 100644 --- a/public/build/assets/Checkbox-B4dYSFbU.js +++ b/public/build/assets/Checkbox-BDcuv2X-.js @@ -1 +1 @@ -import{A as n,l as d,m as l,b as i,c as p}from"./app-CblTTgyL.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{B as n,l as d,p as l,b as i,c as p}from"./app-JIuq7t-B.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-BFiw9Mf2.js b/public/build/assets/ConfirmPassword-BFiw9Mf2.js new file mode 100644 index 0000000..2deedc8 --- /dev/null +++ b/public/build/assets/ConfirmPassword-BFiw9Mf2.js @@ -0,0 +1 @@ +import{H as n,i as l,w as t,b as d,a as r,u as a,d as p,e,f,n as u,k as c}from"./app-JIuq7t-B.js";import{_}from"./GuestLayout-C-k_5Foa.js";import{_ as w}from"./InputError-DUADqW-J.js";import{_ as b}from"./InputLabel-BBoqvM3u.js";import{P as x}from"./PrimaryButton-BXNSUttb.js";import{_ as g}from"./TextInput-Cj2z7GCb.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"flex justify-end mt-4"},j={__name:"ConfirmPassword",setup(C){const s=n({password:""}),i=()=>{s.post(route("password.confirm"),{onFinish:()=>s.reset()})};return(P,o)=>(d(),l(_,null,{default:t(()=>[r(a(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,[r(b,{for:"password",value:"Password"}),r(g,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:a(s).password,"onUpdate:modelValue":o[0]||(o[0]=m=>a(s).password=m),required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"]),r(w,{class:"mt-2",message:a(s).errors.password},null,8,["message"])]),e("div",y,[r(x,{class:u(["ms-4",{"opacity-25":a(s).processing}]),disabled:a(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/ConfirmPassword-fMx26ara.js b/public/build/assets/ConfirmPassword-fMx26ara.js deleted file mode 100644 index 1fe1512..0000000 --- a/public/build/assets/ConfirmPassword-fMx26ara.js +++ /dev/null @@ -1 +0,0 @@ -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-CblTTgyL.js";import{_}from"./GuestLayout-CCWlBOd3.js";import{_ as w}from"./InputError-D2YhlUuu.js";import{_ as b}from"./InputLabel-CEnHGhsA.js";import{P as x}from"./PrimaryButton-lhUrXoRs.js";import{_ as g}from"./TextInput-BT-7frEH.js";import"./ApplicationLogo-ByNwEwX1.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-BXvpand6.js b/public/build/assets/DangerButton-C4Z82YQr.js similarity index 87% rename from public/build/assets/DangerButton-BXvpand6.js rename to public/build/assets/DangerButton-C4Z82YQr.js index 96fd1c7..4a0e152 100644 --- a/public/build/assets/DangerButton-BXvpand6.js +++ b/public/build/assets/DangerButton-C4Z82YQr.js @@ -1 +1 @@ -import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,G as n}from"./app-CblTTgyL.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-JIuq7t-B.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-Dxwif1t_.js b/public/build/assets/Dashboard-l0nhQHZU.js similarity index 57% rename from public/build/assets/Dashboard-Dxwif1t_.js rename to public/build/assets/Dashboard-l0nhQHZU.js index bf957d7..810e491 100644 --- a/public/build/assets/Dashboard-Dxwif1t_.js +++ b/public/build/assets/Dashboard-l0nhQHZU.js @@ -1 +1 @@ -import{_ as b}from"./AuthenticatedLayout-CFkkM4Xw.js";import{r as k,o as w,b as a,c as o,d as e,F as y,g as S,a as n,w as l,t as i,e as c,f,u as g,i as V,Z as M}from"./app-CblTTgyL.js";import{P as A}from"./PaginatorComponent-CMgspZ9V.js";import{P as B}from"./PrimaryButton-lhUrXoRs.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-B0hUOCHS.js";const D={key:0,class:"card"},P={class:"card-body"},T={class:"border-b py-2 flex justify-between items-center"},j={class:"capitalize"},C={class:"text-xs text-gray-500"},N={class:"flex justify-end items-center"},z={key:0,class:"pr-2"},$={key:0},F={key:1,class:"text-lg text-green-200 font-bold"},L={key:2,class:"text-lg text-red-200 font-bold"},E={key:1,class:"text-xs pr-4"},U={class:"capitalize"},Y={class:"flex justify-end items-center mt-4"},Z={class:"w-full lg:w-1/3"},G={__name:"MyTeamVoucherSetMerchantApprovalsList",setup(x){const d=k({});w(()=>{r()});function r(_=1){axios.get("/my-team-vsmtar?cached=false&relations=voucherSet.allocatedToServiceTeam,voucherSet.voucherSetMerchantTeamApprovalActionedRecord.merchantUser&orderBy=id,desc&page="+_).then(t=>{d.value=t.data.data}).catch(t=>{console.log(t)})}return(_,t)=>{var u;return(u=d.value.data)!=null&&u.length?(a(),o("div",D,[t[4]||(t[4]=e("div",{class:"card-header"}," My Merchant Team Voucher Set Approvals ",-1)),e("div",P,[(a(!0),o(y,null,S(d.value.data,s=>(a(),o("div",null,[n(g(V),{class:"hover:no-underline hover:bg-gray-50",href:"/my-voucher-set-merchant-team-approval-request/"+s.id},{default:l(()=>{var m,v,h,p;return[e("div",T,[e("div",null,[e("div",j,i((m=s.voucher_set)==null?void 0:m.voucher_set_type),1),e("div",C,[e("div",null," Voucher Set #"+i(s.voucher_set_id),1),c(" #"+i(s.id),1)])]),e("div",N,[(v=s.voucher_set)!=null&&v.voucher_set_merchant_team_approval_actioned_record?(a(),o("div",E,[t[1]||(t[1]=c(" Voucher set ")),e("span",U,i(s.voucher_set.voucher_set_merchant_team_approval_actioned_record.approval_status),1),t[2]||(t[2]=c(" by ")),e("span",null,i((p=(h=s.voucher_set.voucher_set_merchant_team_approval_actioned_record)==null?void 0:h.merchant_user)==null?void 0:p.name),1)])):(a(),o("div",z,[s.approval_status==="ready"?(a(),o("div",$,[n(B,null,{default:l(()=>t[0]||(t[0]=[c(" Please action! ")])),_:1})])):s.approval_status==="approved"?(a(),o("div",F," Approved ")):s.approval_status==="approved"?(a(),o("div",L," Rejected ")):f("",!0)])),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))])])]}),_:2},1032,["href"])]))),256)),e("div",Y,[e("div",Z,[n(A,{onSetDataPage:r,"pagination-data":d.value},null,8,["pagination-data"])])])])])):f("",!0)}}},H={class:"my-8"},R={__name:"Dashboard",setup(x){return(d,r)=>(a(),o(y,null,[n(g(M),{title:"Dashboard"}),n(b,null,{header:l(()=>r[0]||(r[0]=[c(" Dashboard ")])),default:l(()=>[r[1]||(r[1]=e("div",{class:"card"}," You're logged in! ",-1)),e("div",H,[n(G)])]),_:1})],64))}};export{R as default}; +import{_ as b}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as k,o as w,b as a,c as o,e,F as y,h as S,a as n,w as l,t as i,f as c,g as f,u as g,P as V,d as P}from"./app-JIuq7t-B.js";import{P as M}from"./PaginatorComponent-d3Iyzo79.js";import{P as A}from"./PrimaryButton-BXNSUttb.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-DKtpCAKj.js";const B={key:0,class:"card"},D={class:"card-body"},T={class:"border-b py-2 flex justify-between items-center"},j={class:"capitalize"},C={class:"text-xs text-gray-500"},N={class:"flex justify-end items-center"},z={key:0,class:"pr-2"},$={key:0},F={key:1,class:"text-lg text-green-200 font-bold"},L={key:2,class:"text-lg text-red-200 font-bold"},E={key:1,class:"text-xs pr-4"},U={class:"capitalize"},Y={class:"flex justify-end items-center mt-4"},G={class:"w-full lg:w-1/3"},H={__name:"MyTeamVoucherSetMerchantApprovalsList",setup(x){const d=k({});w(()=>{r()});function r(_=1){axios.get("/my-team-vsmtar?cached=false&relations=voucherSet.allocatedToServiceTeam,voucherSet.voucherSetMerchantTeamApprovalActionedRecord.merchantUser&orderBy=id,desc&page="+_).then(t=>{d.value=t.data.data}).catch(t=>{console.log(t)})}return(_,t)=>{var u;return(u=d.value.data)!=null&&u.length?(a(),o("div",B,[t[4]||(t[4]=e("div",{class:"card-header"}," My Merchant Team Voucher Set Approvals ",-1)),e("div",D,[(a(!0),o(y,null,S(d.value.data,s=>(a(),o("div",null,[n(g(V),{class:"hover:no-underline hover:bg-gray-50",href:"/my-voucher-set-merchant-team-approval-request/"+s.id},{default:l(()=>{var h,m,v,p;return[e("div",T,[e("div",null,[e("div",j,i((h=s.voucher_set)==null?void 0:h.voucher_set_type),1),e("div",C,[e("div",null," Voucher Set #"+i(s.voucher_set_id),1),c(" #"+i(s.id),1)])]),e("div",N,[(m=s.voucher_set)!=null&&m.voucher_set_merchant_team_approval_actioned_record?(a(),o("div",E,[t[1]||(t[1]=c(" Voucher set ")),e("span",U,i(s.voucher_set.voucher_set_merchant_team_approval_actioned_record.approval_status),1),t[2]||(t[2]=c(" by ")),e("span",null,i((p=(v=s.voucher_set.voucher_set_merchant_team_approval_actioned_record)==null?void 0:v.merchant_user)==null?void 0:p.name),1)])):(a(),o("div",z,[s.approval_status==="ready"?(a(),o("div",$,[n(A,null,{default:l(()=>t[0]||(t[0]=[c(" Please action! ")])),_:1})])):s.approval_status==="approved"?(a(),o("div",F," Approved ")):s.approval_status==="approved"?(a(),o("div",L," Rejected ")):f("",!0)])),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))])])]}),_:2},1032,["href"])]))),256)),e("div",Y,[e("div",G,[n(M,{onSetDataPage:r,"pagination-data":d.value},null,8,["pagination-data"])])])])])):f("",!0)}}},I={class:"my-8"},R={__name:"Dashboard",setup(x){return(d,r)=>(a(),o(y,null,[n(g(P),{title:"Dashboard"}),n(b,null,{header:l(()=>r[0]||(r[0]=[c(" Dashboard ")])),default:l(()=>[r[1]||(r[1]=e("div",{class:"card"}," You're logged in! ",-1)),e("div",I,[n(H)])]),_:1})],64))}};export{R as default}; diff --git a/public/build/assets/DeleteUserForm-CEXksFCm.js b/public/build/assets/DeleteUserForm-CEXksFCm.js deleted file mode 100644 index 610fed2..0000000 --- a/public/build/assets/DeleteUserForm-CEXksFCm.js +++ /dev/null @@ -1 +0,0 @@ -import{p as b,o as k,z as C,A as D,b as g,h as B,a as o,w as l,l as f,H as y,d as s,I as p,n as h,G as E,f as V,L as $,r as v,T as U,c as A,E as S,e as w,u as c,j as T}from"./app-CblTTgyL.js";import{D as x}from"./DangerButton-BXvpand6.js";import{_ as N}from"./InputError-D2YhlUuu.js";import{_ as z}from"./InputLabel-CEnHGhsA.js";import{_ as I}from"./SecondaryButton-B0hUOCHS.js";import{_ as L}from"./TextInput-BT-7frEH.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const M={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($,{to:"body"},[o(p,{"leave-active-class":"duration-200"},{default:l(()=>[f(s("div",M,[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?E(u.$slots,"default",{key:0}):V("",!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,S(()=>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(),A("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(z,{for:"password",value:"Password",class:"sr-only"}),o(L,{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:T(d,["enter"])},null,8,["modelValue"]),o(N,{message:c(t).errors.password,class:"mt-2"},null,8,["message"])]),s("div",F,[o(I,{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/DeleteUserForm-DdjP3cEn.js b/public/build/assets/DeleteUserForm-DdjP3cEn.js new file mode 100644 index 0000000..84dbb60 --- /dev/null +++ b/public/build/assets/DeleteUserForm-DdjP3cEn.js @@ -0,0 +1 @@ +import{q as b,o as k,A as C,B,b as g,i as D,a as o,w as l,l as f,J as y,e as s,T as p,n as h,I as V,g as $,M as E,r as v,H as U,c as A,G as S,f as w,u as d,j as T}from"./app-JIuq7t-B.js";import{D as x}from"./DangerButton-C4Z82YQr.js";import{_ as M}from"./InputError-DUADqW-J.js";import{_ as N}from"./InputLabel-BBoqvM3u.js";import{_ as I}from"./SecondaryButton-DKtpCAKj.js";import{_ as O}from"./TextInput-Cj2z7GCb.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50","scroll-region":""},W={__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")},i=u=>{u.key==="Escape"&&a.show&&m()};k(()=>document.addEventListener("keydown",i)),C(()=>{document.removeEventListener("keydown",i),document.body.style.overflow=null});const c=B(()=>({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(),D(E,{to:"body"},[o(p,{"leave-active-class":"duration-200"},{default:l(()=>[f(s("div",P,[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",c.value])},[n.show?V(u.$slots,"default",{key:0}):$("",!0)],2),[[y,n.show]])]),_:3})],512),[[y,n.show]])]),_:3})]))}},j={class:"space-y-6"},z={class:"p-6"},F={class:"mt-6"},K={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,S(()=>a.value.focus())},i=()=>{t.delete(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>c(),onError:()=>a.value.focus(),onFinish:()=>t.reset()})},c=()=>{r.value=!1,t.reset()};return(u,e)=>(g(),A("section",j,[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(W,{show:r.value,onClose:c},{default:l(()=>[s("div",z,[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",F,[o(N,{for:"password",value:"Password",class:"sr-only"}),o(O,{id:"password",ref_key:"passwordInput",ref:a,modelValue:d(t).password,"onUpdate:modelValue":e[0]||(e[0]=_=>d(t).password=_),type:"password",class:"mt-1 block w-3/4",placeholder:"Password",onKeyup:T(i,["enter"])},null,8,["modelValue"]),o(M,{message:d(t).errors.password,class:"mt-2"},null,8,["message"])]),s("div",K,[o(I,{onClick:c},{default:l(()=>e[2]||(e[2]=[w(" Cancel ")])),_:1}),o(x,{class:h(["ms-3",{"opacity-25":d(t).processing}]),disabled:d(t).processing,onClick:i},{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-e8vmtn8h.js b/public/build/assets/Edit-BsjSddeR.js similarity index 51% rename from public/build/assets/Edit-e8vmtn8h.js rename to public/build/assets/Edit-BsjSddeR.js index a81f6e8..2e0ae43 100644 --- a/public/build/assets/Edit-e8vmtn8h.js +++ b/public/build/assets/Edit-BsjSddeR.js @@ -1 +1 @@ -import{_ as o}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import d from"./UpdatePasswordForm-Bt8q17jw.js";import u from"./UpdateProfileInformationForm-B2hb0WtY.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./InputError-D2YhlUuu.js";import"./InputLabel-CEnHGhsA.js";import"./TextInput-BT-7frEH.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-hK9Fu3Th.js";import{c as r,a as s,u as m,w as i,F as l,b as n,d as c,e as t}from"./app-JIuq7t-B.js";import d from"./UpdatePasswordForm-DBws0n0d.js";import u from"./UpdateProfileInformationForm-DPnCgghR.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./InputError-DUADqW-J.js";import"./InputLabel-BBoqvM3u.js";import"./TextInput-Cj2z7GCb.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-BVnckikW.js b/public/build/assets/ErrorMessagePage-BVnckikW.js new file mode 100644 index 0000000..68baec1 --- /dev/null +++ b/public/build/assets/ErrorMessagePage-BVnckikW.js @@ -0,0 +1 @@ +import{_ as n}from"./AuthenticatedLayout-hK9Fu3Th.js";import{c as u,a as e,u as o,w as t,F as c,b as f,d as m,e as a,t as i,P as p,f as _}from"./app-JIuq7t-B.js";import{P as h}from"./PrimaryButton-BXNSUttb.js";import"./ApplicationLogo-Bw-pd1Lv.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"},b={__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(d,s)=>(f(),u(c,null,[e(o(m),{title:r.title},null,8,["title"]),e(n,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:d.route("dashboard")},{default:t(()=>[e(h,null,{default:t(()=>s[0]||(s[0]=[_("Back to home")])),_:1})]),_:1},8,["href"])])]),_:1})],64))}};export{b as default}; diff --git a/public/build/assets/ErrorMessagePage-Dfc4VZBm.js b/public/build/assets/ErrorMessagePage-Dfc4VZBm.js deleted file mode 100644 index aba0965..0000000 --- a/public/build/assets/ErrorMessagePage-Dfc4VZBm.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{P as h}from"./PrimaryButton-lhUrXoRs.js";import"./ApplicationLogo-ByNwEwX1.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-BpmIqATb.js b/public/build/assets/ForgotPassword-DRyUAMfh.js similarity index 56% rename from public/build/assets/ForgotPassword-BpmIqATb.js rename to public/build/assets/ForgotPassword-DRyUAMfh.js index dc0d505..98333a9 100644 --- a/public/build/assets/ForgotPassword-BpmIqATb.js +++ b/public/build/assets/ForgotPassword-DRyUAMfh.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-CblTTgyL.js";import{_ as b}from"./GuestLayout-CCWlBOd3.js";import{_ as k}from"./InputError-D2YhlUuu.js";import{_ as x}from"./InputLabel-CEnHGhsA.js";import{P as V}from"./PrimaryButton-lhUrXoRs.js";import{_ as v}from"./TextInput-BT-7frEH.js";import"./ApplicationLogo-ByNwEwX1.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{H as u,i as d,w as l,b as m,a,u as t,d as c,e as o,c as f,t as p,g as w,f as _,n as g,k as y}from"./app-JIuq7t-B.js";import{_ as b}from"./GuestLayout-C-k_5Foa.js";import{_ as k}from"./InputError-DUADqW-J.js";import{_ as x}from"./InputLabel-BBoqvM3u.js";import{P as V}from"./PrimaryButton-BXNSUttb.js";import{_ as v}from"./TextInput-Cj2z7GCb.js";import"./ApplicationLogo-Bw-pd1Lv.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"},z={__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:y(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:g({"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{z as default}; diff --git a/public/build/assets/GuestLayout-C-k_5Foa.js b/public/build/assets/GuestLayout-C-k_5Foa.js new file mode 100644 index 0000000..4aeef6b --- /dev/null +++ b/public/build/assets/GuestLayout-C-k_5Foa.js @@ -0,0 +1 @@ +import{A as a}from"./ApplicationLogo-Bw-pd1Lv.js";import{b as o,c as r,e,a as s,w as l,u as c,P as n,I as d}from"./app-JIuq7t-B.js";const i={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",i,[e("div",null,[s(c(n),{href:"/"},{default:l(()=>[s(a,{class:"h-16 fill-current text-gray-500"})]),_:1})]),e("div",m,[d(t.$slots,"default")])]))}};export{h as _}; diff --git a/public/build/assets/GuestLayout-CCWlBOd3.js b/public/build/assets/GuestLayout-CCWlBOd3.js deleted file mode 100644 index 3119288..0000000 --- a/public/build/assets/GuestLayout-CCWlBOd3.js +++ /dev/null @@ -1 +0,0 @@ -import{A as a}from"./ApplicationLogo-ByNwEwX1.js";import{b as o,c as r,d as e,a as s,w as l,u as c,i as n,G as i}from"./app-CblTTgyL.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-D2YhlUuu.js b/public/build/assets/InputError-DUADqW-J.js similarity index 53% rename from public/build/assets/InputError-D2YhlUuu.js rename to public/build/assets/InputError-DUADqW-J.js index c139ff6..1dd8eb5 100644 --- a/public/build/assets/InputError-D2YhlUuu.js +++ b/public/build/assets/InputError-DUADqW-J.js @@ -1 +1 @@ -import{l as s,H as t,b as a,c as r,d as c,t as o}from"./app-CblTTgyL.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,e as c,t as o}from"./app-JIuq7t-B.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-CEnHGhsA.js b/public/build/assets/InputLabel-BBoqvM3u.js similarity index 80% rename from public/build/assets/InputLabel-CEnHGhsA.js rename to public/build/assets/InputLabel-BBoqvM3u.js index 35bfe01..40fb138 100644 --- a/public/build/assets/InputLabel-CEnHGhsA.js +++ b/public/build/assets/InputLabel-BBoqvM3u.js @@ -1 +1 @@ -import{b as e,c as t,t as o,G as n}from"./app-CblTTgyL.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-JIuq7t-B.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-EQqpAp49.js b/public/build/assets/Login-BHc1xN5p.js similarity index 65% rename from public/build/assets/Login-EQqpAp49.js rename to public/build/assets/Login-BHc1xN5p.js index f9abeca..c8d5476 100644 --- a/public/build/assets/Login-EQqpAp49.js +++ b/public/build/assets/Login-BHc1xN5p.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-CblTTgyL.js";import{_ as B}from"./Checkbox-B4dYSFbU.js";import{_ as P}from"./GuestLayout-CCWlBOd3.js";import{_ as f}from"./InputError-D2YhlUuu.js";import{_ as c}from"./InputLabel-CEnHGhsA.js";import{P as $}from"./PrimaryButton-lhUrXoRs.js";import{_ as p}from"./TextInput-BT-7frEH.js";import"./ApplicationLogo-ByNwEwX1.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{H as _,i as n,w as l,b as i,a as o,u as t,d as b,c as y,t as k,g as d,e as a,P as x,f as u,n as V,k as v}from"./app-JIuq7t-B.js";import{_ as P}from"./Checkbox-BDcuv2X-.js";import{_ as B}from"./GuestLayout-C-k_5Foa.js";import{_ as f}from"./InputError-DUADqW-J.js";import{_ as c}from"./InputLabel-BBoqvM3u.js";import{P as $}from"./PrimaryButton-BXNSUttb.js";import{_ as p}from"./TextInput-Cj2z7GCb.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const C={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"mt-4"},h={class:"block mt-4"},q={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(B,null,{default:l(()=>[o(t(b),{title:"Log in"}),m.status?(i(),y("div",C,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",h,[a("label",q,[o(P,{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-DF5vmHBf.js b/public/build/assets/MyTeam-DF5vmHBf.js deleted file mode 100644 index f590e3a..0000000 --- a/public/build/assets/MyTeam-DF5vmHBf.js +++ /dev/null @@ -1 +0,0 @@ -import{S as k,_ as B}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import"./dayjs.min-DpVcq2gO.js";import"./relativeTime-ByhsTu5L.js";import"./utc-CM4OPsp5.js";import{_ as E}from"./TextInput-BT-7frEH.js";import{P as $}from"./PrimaryButton-lhUrXoRs.js";import"./ApplicationLogo-ByNwEwX1.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/MyTeam-Djr2s1Td.js b/public/build/assets/MyTeam-Djr2s1Td.js new file mode 100644 index 0000000..5bb1e1e --- /dev/null +++ b/public/build/assets/MyTeam-Djr2s1Td.js @@ -0,0 +1 @@ +import{S as k,_ as B}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as v,o as b,b as s,c as a,e,a as f,i as C,w as h,f as g,g as _,F as p,h as x,t as y,m as V,u as N,d as j,n as D}from"./app-JIuq7t-B.js";import"./dayjs.min-CT9z215E.js";import"./relativeTime-B6HHAsX1.js";import"./utc-CHR93Tx7.js";import{_ as E}from"./TextInput-Cj2z7GCb.js";import{P as $}from"./PrimaryButton-BXNSUttb.js";import"./ApplicationLogo-Bw-pd1Lv.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"},Y={class:"ml-2"},A={__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",Y,[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)}},G={class:"card"},H={class:"flex items-start font-bold"},I={class:"pl-2 text-2xl"},J={class:"card",id:"myTeamMembers"},Q={key:0},R={class:""},W={key:0,class:"flex items-center"},X={class:"card"},Z={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",G,[e("div",H,[e("div",I,y(n.value.name),1)])]),e("div",J,[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",Q,[(s(!0),a(p,null,x(n.value.team_users,d=>(s(),a("div",R,[e("div",{class:D({"border-b p-2":n.value.team_users.length>1})},[d.user?(s(),a("div",W,[e("div",null,y(d.user.name),1)])):_("",!0)],2)]))),256))])):_("",!0)]),e("div",X,[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",Z,[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(A),r[3]||(r[3]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{_e as default}; diff --git a/public/build/assets/MyTeamVoucherSets-Cr7Jch_J.js b/public/build/assets/MyTeamVoucherSets-Cr7Jch_J.js deleted file mode 100644 index 37feed2..0000000 --- a/public/build/assets/MyTeamVoucherSets-Cr7Jch_J.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as b}from"./AuthenticatedLayout-CFkkM4Xw.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 B,e as C}from"./app-CblTTgyL.js";import{d as v}from"./dayjs.min-DpVcq2gO.js";import{r as M}from"./relativeTime-ByhsTu5L.js";import{u as $}from"./utc-CM4OPsp5.js";import{P as j}from"./PaginatorComponent-CMgspZ9V.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./SecondaryButton-B0hUOCHS.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&orderBy=created_at,desc").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(B),{title:"Dashboard"}),i(b,null,{header:u(()=>e[0]||(e[0]=[C(" 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/MyTeamVoucherSets-D6R2UpPF.js b/public/build/assets/MyTeamVoucherSets-D6R2UpPF.js new file mode 100644 index 0000000..5f3318a --- /dev/null +++ b/public/build/assets/MyTeamVoucherSets-D6R2UpPF.js @@ -0,0 +1 @@ +import{_ as b}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as f,o as g,b as s,c as r,F as x,h as k,i as w,w as u,e as a,t as m,g as i,u as l,m as h,P as T,a as d,d as B,f as C}from"./app-JIuq7t-B.js";import{d as v}from"./dayjs.min-CT9z215E.js";import{r as M}from"./relativeTime-B6HHAsX1.js";import{u as P}from"./utc-CHR93Tx7.js";import{P as $}from"./PaginatorComponent-d3Iyzo79.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./SecondaryButton-DKtpCAKj.js";const j={key:0},N={class:"border-b flex justify-between items-center py-2 sm:p-2"},D={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(P);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&orderBy=created_at,desc").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",j,[(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",N,[a("div",D,[a("div",S," #"+m(t.id),1),t.is_test?(s(),r("div",F," Test voucher set ")):i("",!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)):i("",!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)):i("",!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,[d($,{onSetDataPage:p,"pagination-data":e.value},null,8,["pagination-data"])])])])):i("",!0)}},L={class:"card"},G={class:"card"},Y={__name:"MyTeamVoucherSets",setup(_){return g(()=>{}),(n,e)=>(s(),r(x,null,[d(l(B),{title:"Dashboard"}),d(b,null,{header:u(()=>e[0]||(e[0]=[C(" 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)),d(y,{"filter-voucher-sets":"-created"})]),a("div",G,[e[2]||(e[2]=a("div",{class:"card-header"}," Voucher sets allocated to my team ",-1)),d(y,{"filter-voucher-sets":"-allocated"})]),e[3]||(e[3]=a("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{Y as default}; diff --git a/public/build/assets/PaginatorComponent-CMgspZ9V.js b/public/build/assets/PaginatorComponent-CMgspZ9V.js deleted file mode 100644 index fd7e7a6..0000000 --- a/public/build/assets/PaginatorComponent-CMgspZ9V.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./SecondaryButton-B0hUOCHS.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{J 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-CblTTgyL.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/PaginatorComponent-d3Iyzo79.js b/public/build/assets/PaginatorComponent-d3Iyzo79.js new file mode 100644 index 0000000..d9af8dc --- /dev/null +++ b/public/build/assets/PaginatorComponent-d3Iyzo79.js @@ -0,0 +1 @@ +import{_ as m}from"./SecondaryButton-DKtpCAKj.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{K as d,b as s,c as r,e,a as l,w as p,t as n,g}from"./app-JIuq7t-B.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-lhUrXoRs.js b/public/build/assets/PrimaryButton-BXNSUttb.js similarity index 88% rename from public/build/assets/PrimaryButton-lhUrXoRs.js rename to public/build/assets/PrimaryButton-BXNSUttb.js index 03b6085..6cf6459 100644 --- a/public/build/assets/PrimaryButton-lhUrXoRs.js +++ b/public/build/assets/PrimaryButton-BXNSUttb.js @@ -1 +1 @@ -import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,G as n}from"./app-CblTTgyL.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-JIuq7t-B.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-hvwBXu_0.js b/public/build/assets/Register-D7HIhsHQ.js similarity index 73% rename from public/build/assets/Register-hvwBXu_0.js rename to public/build/assets/Register-D7HIhsHQ.js index 39ce6e3..18d61e6 100644 --- a/public/build/assets/Register-hvwBXu_0.js +++ b/public/build/assets/Register-D7HIhsHQ.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-CblTTgyL.js";import{_ as y}from"./GuestLayout-CCWlBOd3.js";import{_ as t}from"./InputError-D2YhlUuu.js";import{_ as m}from"./InputLabel-CEnHGhsA.js";import{P as b}from"./PrimaryButton-lhUrXoRs.js";import{_ as i}from"./TextInput-BT-7frEH.js";import"./ApplicationLogo-ByNwEwX1.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{H as f,i as c,w as n,b as w,a as o,u as e,d as _,e as l,f as d,P as g,n as V,k as v}from"./app-JIuq7t-B.js";import{_ as y}from"./GuestLayout-C-k_5Foa.js";import{_ as t}from"./InputError-DUADqW-J.js";import{_ as m}from"./InputLabel-BBoqvM3u.js";import{P as b}from"./PrimaryButton-BXNSUttb.js";import{_ as i}from"./TextInput-Cj2z7GCb.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"mt-4"},k={class:"mt-4"},P={class:"mt-4"},q={class:"flex items-center justify-end mt-4"},E={__name:"Register",setup(B){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",P,[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",q,[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{E as default}; diff --git a/public/build/assets/ResetPassword-CCNd9Y2N.js b/public/build/assets/ResetPassword-C7ep2H8Z.js similarity index 77% rename from public/build/assets/ResetPassword-CCNd9Y2N.js rename to public/build/assets/ResetPassword-C7ep2H8Z.js index 1098cba..0dfb85e 100644 --- a/public/build/assets/ResetPassword-CCNd9Y2N.js +++ b/public/build/assets/ResetPassword-C7ep2H8Z.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-CblTTgyL.js";import{_ as b}from"./GuestLayout-CCWlBOd3.js";import{_ as l}from"./InputError-D2YhlUuu.js";import{_ as i}from"./InputLabel-CEnHGhsA.js";import{P as v}from"./PrimaryButton-lhUrXoRs.js";import{_ as m}from"./TextInput-BT-7frEH.js";import"./ApplicationLogo-ByNwEwX1.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{H as f,i as c,w as n,b as w,a as o,u as e,d as _,e as t,f as V,n as g,k}from"./app-JIuq7t-B.js";import{_ as b}from"./GuestLayout-C-k_5Foa.js";import{_ as l}from"./InputError-DUADqW-J.js";import{_ as i}from"./InputLabel-BBoqvM3u.js";import{P as v}from"./PrimaryButton-BXNSUttb.js";import{_ as m}from"./TextInput-Cj2z7GCb.js";import"./ApplicationLogo-Bw-pd1Lv.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"},z={__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{z as default}; diff --git a/public/build/assets/SecondaryButton-B0hUOCHS.js b/public/build/assets/SecondaryButton-DKtpCAKj.js similarity index 75% rename from public/build/assets/SecondaryButton-B0hUOCHS.js rename to public/build/assets/SecondaryButton-DKtpCAKj.js index f783c0f..5b148c2 100644 --- a/public/build/assets/SecondaryButton-B0hUOCHS.js +++ b/public/build/assets/SecondaryButton-DKtpCAKj.js @@ -1 +1 @@ -import{b as o,c as n,G as s}from"./app-CblTTgyL.js";const r=["type"],p={__name:"SecondaryButton",props:{type:{type:String,default:"button"}},setup(t){return(e,a)=>(o(),n("button",{type:t.type,class:"secondaryButton"},[s(e.$slots,"default")],8,r))}};export{p as _}; +import{b as o,c as n,I as s}from"./app-JIuq7t-B.js";const r=["type"],p={__name:"SecondaryButton",props:{type:{type:String,default:"button"}},setup(t){return(e,a)=>(o(),n("button",{type:t.type,class:"secondaryButton"},[s(e.$slots,"default")],8,r))}};export{p as _}; diff --git a/public/build/assets/Team-CZl5pAZo.js b/public/build/assets/Team-CZl5pAZo.js deleted file mode 100644 index 818e052..0000000 --- a/public/build/assets/Team-CZl5pAZo.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-CblTTgyL.js";import{S as j,_ as J}from"./AuthenticatedLayout-CFkkM4Xw.js";import{_ as Q}from"./AdminTopNavigation-C3cfuSp_.js";import{P as U}from"./PaginatorComponent-CMgspZ9V.js";import{P as B}from"./PrimaryButton-lhUrXoRs.js";import{_ as M}from"./TextInput-BT-7frEH.js";import{_ as q}from"./InputLabel-CEnHGhsA.js";import{_ as L}from"./AdminTeamCreateComponent-i0AzNkZR.js";import{_ as X}from"./AdminUserDetailsComponent-Dw2XKneS.js";import{_ as ee}from"./SecondaryButton-B0hUOCHS.js";import{_ as te}from"./AjaxLoadingIndicator-vGmUEu_U.js";import{d as F}from"./dayjs.min-DpVcq2gO.js";import{r as ae}from"./relativeTime-ByhsTu5L.js";import{u as se}from"./utc-CM4OPsp5.js";import{D as ne}from"./DangerButton-BXvpand6.js";import{_ as E}from"./VoucherSetsComponent-DLemr3_-.js";import{_ as K}from"./VouchersComponent-CuVgvWTH.js";import"./ApplicationLogo-ByNwEwX1.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-DEg-2EFZ.js b/public/build/assets/Team-DEg-2EFZ.js new file mode 100644 index 0000000..2feddf2 --- /dev/null +++ b/public/build/assets/Team-DEg-2EFZ.js @@ -0,0 +1 @@ +import{b as a,c as s,e,t as N,r as p,a as i,j as G,k as O,F as A,h as I,g as b,o as W,w as k,f as $,u as V,P as D,n as R,d as Y,l as H,v as J}from"./app-JIuq7t-B.js";import{S as j,_ as Q}from"./AuthenticatedLayout-hK9Fu3Th.js";import{_ as X}from"./AdminTopNavigation-B0MqavRN.js";import{P}from"./PaginatorComponent-d3Iyzo79.js";import{P as B}from"./PrimaryButton-BXNSUttb.js";import{_ as M}from"./TextInput-Cj2z7GCb.js";import{_ as q}from"./InputLabel-BBoqvM3u.js";import{_ as L}from"./AdminTeamCreateComponent-B1raYdMe.js";import{_ as Z}from"./AdminUserDetailsComponent-B_Tqw-3x.js";import{_ as ee}from"./SecondaryButton-DKtpCAKj.js";import{_ as te}from"./AjaxLoadingIndicator-DRLmxzaX.js";import{d as F}from"./dayjs.min-CT9z215E.js";import{r as ae}from"./relativeTime-B6HHAsX1.js";import{u as se}from"./utc-CHR93Tx7.js";import{D as ne}from"./DangerButton-C4Z82YQr.js";import{_ as E}from"./VoucherSetsComponent-BlhvQ99p.js";import{_ as K}from"./VouchersComponent-B8KOk0o_.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const ie={class:"flex justify-start items-center"},oe={class:"text-xs mr-2"},le={class:""},U={__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(U,{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"},Pe={key:0},Ue={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(U,{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(P,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",De,[e("div",Me,[x.team.name?(a(),s("div",Pe," Teams "+N(x.team.name)+" is merchant for ",1)):b("",!0),e("div",Ue,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(U,{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(P,{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"],He={key:0,class:"text-red-500 text-xs italic pl-2"},Je={key:1},Qe={__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(U,{team:n},null,8,["team"]),S(n)?(a(),s("span",He,"***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",Je,[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)]))}},Xe={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},Ze={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",Xe,[e("div",Ze,[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(Qe,{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(U,{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(P,{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(U,{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(P,{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(Z,{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"},Pt={key:0},Ut={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",Pt,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",Ut,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(P,{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"},Ht={for:"country",class:"w-full font-bold"},Jt=["value"],Qt={key:0,class:"mt-8 flex justify-end"},Xt={class:"card"},Zt={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"},Pa={__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(Q,null,{header:k(()=>[i(X)]),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",Ht,[d[4]||(d[4]=$(" Country: ")),H(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,Jt))),128))],512),[[J,o.value]])])]),l.value!==g.value.name||o.value!==g.value.country_id?(a(),s("div",Qt,[i(B,{onClick:d[2]||(d[2]=h=>v())},{default:k(()=>d[5]||(d[5]=[$("Update")])),_:1})])):b("",!0)]),e("div",Xt,[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",Zt,[(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(P,{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{Pa as default}; diff --git a/public/build/assets/TeamNew-CP5pOCra.js b/public/build/assets/TeamNew-CP5pOCra.js new file mode 100644 index 0000000..1f8c1f3 --- /dev/null +++ b/public/build/assets/TeamNew-CP5pOCra.js @@ -0,0 +1 @@ +import{_ as o}from"./AuthenticatedLayout-hK9Fu3Th.js";import{c as m,a as e,u as s,w as t,F as i,b as n,d as _,e as c}from"./app-JIuq7t-B.js";import{_ as d}from"./AdminTopNavigation-B0MqavRN.js";import{_ as f}from"./AdminTeamCreateComponent-B1raYdMe.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./TextInput-Cj2z7GCb.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-TdnuEUjd.js b/public/build/assets/TeamNew-TdnuEUjd.js deleted file mode 100644 index f742c86..0000000 --- a/public/build/assets/TeamNew-TdnuEUjd.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as d}from"./AdminTopNavigation-C3cfuSp_.js";import{_ as f}from"./AdminTeamCreateComponent-i0AzNkZR.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./TextInput-BT-7frEH.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-Cz2FTtDY.js b/public/build/assets/Teams-Cz2FTtDY.js new file mode 100644 index 0000000..310534e --- /dev/null +++ b/public/build/assets/Teams-Cz2FTtDY.js @@ -0,0 +1 @@ +import{_ as g}from"./AuthenticatedLayout-hK9Fu3Th.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 r,d as x,e,P as f,f as _,h as y,g as k,i as P,t as p}from"./app-JIuq7t-B.js";import{_ as B}from"./AdminTopNavigation-B0MqavRN.js";import{P as b}from"./PrimaryButton-BXNSUttb.js";import{P as C}from"./PaginatorComponent-d3Iyzo79.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-DKtpCAKj.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"},J={__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)=>(r(),l(u,null,[s(d(x),{title:"Teams"}),s(g,null,{header:n(()=>[s(B)]),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?(r(),l("div",V,[(r(!0),l(u,null,y(o.value.data,i=>(r(),P(d(f),{href:a.route("admin.team",i.id),class:"hover:no-underline hover:opacity-75"},{default:n(()=>[e("div",j,[e("div",null,[e("div",D,[e("span",F," #"+p(i.id),1),_(" "+p(i.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{J as default}; diff --git a/public/build/assets/Teams-DNsfewGP.js b/public/build/assets/Teams-DNsfewGP.js deleted file mode 100644 index 1332949..0000000 --- a/public/build/assets/Teams-DNsfewGP.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as g}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as P}from"./AdminTopNavigation-C3cfuSp_.js";import{P as b}from"./PrimaryButton-lhUrXoRs.js";import{P as C}from"./PaginatorComponent-CMgspZ9V.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-B0hUOCHS.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-BT-7frEH.js b/public/build/assets/TextInput-Cj2z7GCb.js similarity index 78% rename from public/build/assets/TextInput-BT-7frEH.js rename to public/build/assets/TextInput-Cj2z7GCb.js index dbdeff6..f2a7e3f 100644 --- a/public/build/assets/TextInput-BT-7frEH.js +++ b/public/build/assets/TextInput-Cj2z7GCb.js @@ -1 +1 @@ -import{K as a,r as l,o as n,l as d,q as i,b as c,c as m}from"./app-CblTTgyL.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-JIuq7t-B.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-Bt8q17jw.js b/public/build/assets/UpdatePasswordForm-DBws0n0d.js similarity index 87% rename from public/build/assets/UpdatePasswordForm-Bt8q17jw.js rename to public/build/assets/UpdatePasswordForm-DBws0n0d.js index 4fcddef..eea364f 100644 --- a/public/build/assets/UpdatePasswordForm-Bt8q17jw.js +++ b/public/build/assets/UpdatePasswordForm-DBws0n0d.js @@ -1 +1 @@ -import{r as m,T as _,c as i,d as a,a as e,u as r,w as c,I as v,k as y,b as w,e as g,f as V}from"./app-CblTTgyL.js";import{_ as l}from"./InputError-D2YhlUuu.js";import{_ as n}from"./InputLabel-CEnHGhsA.js";import{P as x}from"./PrimaryButton-lhUrXoRs.js";import{_ as d}from"./TextInput-BT-7frEH.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,H as _,c as i,e as a,a as e,u as r,w as c,T as v,k as y,b as w,f as g,g as V}from"./app-JIuq7t-B.js";import{_ as l}from"./InputError-DUADqW-J.js";import{_ as n}from"./InputLabel-BBoqvM3u.js";import{P as x}from"./PrimaryButton-BXNSUttb.js";import{_ as d}from"./TextInput-Cj2z7GCb.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-B2hb0WtY.js b/public/build/assets/UpdateProfileInformationForm-DPnCgghR.js similarity index 71% rename from public/build/assets/UpdateProfileInformationForm-B2hb0WtY.js rename to public/build/assets/UpdateProfileInformationForm-DPnCgghR.js index 2950456..3083a16 100644 --- a/public/build/assets/UpdateProfileInformationForm-B2hb0WtY.js +++ b/public/build/assets/UpdateProfileInformationForm-DPnCgghR.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,H as _,f as c,I as k,k as b,b as u,i as w}from"./app-CblTTgyL.js";import{_ as p}from"./InputError-D2YhlUuu.js";import{_ as v}from"./InputLabel-CEnHGhsA.js";import{P as h}from"./PrimaryButton-lhUrXoRs.js";import{_ as y}from"./TextInput-BT-7frEH.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{m as g,H as x,c as l,e as a,a as o,u as t,f as n,w as m,l as V,J as _,g as c,T as k,k as b,b as u,P as w}from"./app-JIuq7t-B.js";import{_ as p}from"./InputError-DUADqW-J.js";import{_ as v}from"./InputLabel-BBoqvM3u.js";import{P as h}from"./PrimaryButton-BXNSUttb.js";import{_ as y}from"./TextInput-Cj2z7GCb.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const P={key:0},S={class:"text-sm mt-2 text-gray-800"},B={class:"mt-2 font-medium text-sm text-green-600"},N={class:"flex items-center gap-4"},C={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",P,[a("p",S,[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",B," A new verification link has been sent to your email address. ",512),[[_,d.status==="verification-link-sent"]])])):c("",!0),a("div",N,[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",C,"Saved.")):c("",!0)]),_:1})])],32)]))}};export{A as default}; diff --git a/public/build/assets/User-CbVnqd_P.js b/public/build/assets/User-CbVnqd_P.js new file mode 100644 index 0000000..fb60bf0 --- /dev/null +++ b/public/build/assets/User-CbVnqd_P.js @@ -0,0 +1 @@ +import{r as b,m as x,o as L,c as n,a as o,u as p,w as r,F as f,b as a,d as W,e as t,t as u,P,f as m,g as _,h,l as S,p as U,k as z,n as $,i as Q}from"./app-JIuq7t-B.js";import{_ as Y,S as A}from"./AuthenticatedLayout-hK9Fu3Th.js";import{_ as G}from"./AdminTopNavigation-B0MqavRN.js";import{P as H}from"./PaginatorComponent-d3Iyzo79.js";import{_ as J}from"./AdminUserDetailsComponent-B_Tqw-3x.js";import{P as g}from"./PrimaryButton-BXNSUttb.js";import{_ as K}from"./TextInput-Cj2z7GCb.js";import{_ as X}from"./SecondaryButton-DKtpCAKj.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const Z={class:"card"},ee={class:"flex justify-between items-center"},te={key:0},se={class:"card"},ie={class:"card"},ae={key:0},ne={key:0},le={key:0,class:"text-xs text-red-500"},oe={class:""},de={class:"flex justify-end items-center mt-4"},re={class:"w-full lg:w-1/3"},ue={class:"card"},me={for:"admin",class:"cursor-pointer flex justify-start items-center"},ce={class:"card"},ve={key:0},pe={class:"border-b py-2"},fe={class:"list-item ml-8"},_e={key:0},he={class:"ml-8 text-xs"},ke={key:1},be={class:"card"},Ae={key:0},ge={class:"flex justify-start items-center space-x-4 pb-4"},ye={class:"grid grid-cols-1 md:grid-cols-2 md:gap-2"},xe={class:"border rounded-xl p-4"},Pe={class:"text-xs"},we={class:"mt-8"},Te=["for"],Ce=["id","value"],Se={class:"pb-4"},Ue={class:"flex items-center justify-end mt-4"},Fe={__name:"User",props:{id:{required:!0,type:Number}},setup(B){const k=B,V=b(5),l=b({name:"",token_abilities:[]}),w=x().props.personalAccessTokenAbilities,j=x().props.platformAppTokenAbilities,I=x().props.redemptionAppTokenAbilities,c=b({}),d=b({});L(()=>{y(),T()});function N(){l.value.user_id=d.value.id,axios.post("/admin/user-personal-access-tokens",l.value).then(i=>{let e=i.data.data.token,s=i.data.data.secret;A.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(v=>{l.value={name:"",token_abilities:[]},y()})}).catch(i=>{A.fire({icon:"error",title:"Oops..",text:i.response.data.meta.message})})}function y(){axios.get("/admin/users/"+k.id+"?cached=false&relations=currentTeam").then(i=>{d.value=i.data.data}).catch(i=>{console.log(i)})}function T(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=>{c.value=e.data.data}).catch(e=>{})}function q(i){T(i)}function C(i){return i.replaceAll("-"," ")}function D(){l.value.token_abilities=Object.keys(j),A.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 M(){l.value.token_abilities=Object.keys(I),A.fire({icon:"info",title:"Redemption Apps",html:'
      We have selected the minimum required abilities for an API token for a "Redemption" type app.
      Be careful with these abilities, as they can redeem vouchers. Ensure the correct rights have been assigned.
      '})}function R(){l.value.token_abilities=[]}function F(){let i={is_admin:d.value.is_admin};axios.put("/admin/users/"+k.id,i).then(e=>{y()}).catch(e=>{console.log(e)})}return(i,e)=>(a(),n(f,null,[o(p(W),{title:"Users"}),o(Y,null,{header:r(()=>[o(G)]),default:r(()=>[t("div",Z,[t("div",ee,[t("h2",null,u(d.value.name),1),t("div",null,[i.$page.props.isImpersonating===null?(a(),n("div",te,[o(g,null,{default:r(()=>[o(p(P),{href:i.route("admin.impersonate",k.id)},{default:r(()=>e[7]||(e[7]=[m("Impersonate")])),_:1},8,["href"])]),_:1})])):_("",!0)])])]),t("div",se,[e[8]||(e[8]=t("div",{class:"card-header"}," User details ",-1)),o(J,{user:d.value},null,8,["user"])]),t("div",ie,[e[9]||(e[9]=t("div",{class:"card-header"}," User teams ",-1)),c.value.data&&c.value.data.length>0?(a(),n("div",ae,[(a(!0),n(f,null,h(c.value.data,s=>(a(),Q(p(P),{href:i.route("admin.team",s.team_id),class:"hover:no-underline hover:opacity-75"},{default:r(()=>[t("div",{class:$({"border-b p-2":c.value.data.length>1})},[s.team?(a(),n("div",ne,[s.team_id===d.value.current_team_id?(a(),n("div",le,"*Current team ")):_("",!0),t("div",oe,u(s.team.name),1)])):_("",!0)],2)]),_:2},1032,["href"]))),256))])):_("",!0),t("div",de,[t("div",re,[o(H,{onSetDataPage:q,"pagination-data":c.value},null,8,["pagination-data"])])])]),t("div",ue,[e[11]||(e[11]=t("div",{class:"card-header"}," Admin status ",-1)),t("label",me,[S(t("input",{onChange:e[0]||(e[0]=s=>F()),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[10]||(e[10]=m(" User is System Admin "))])]),t("div",ce,[e[12]||(e[12]=t("div",{class:"card-header"}," User Personal Access Tokens (PATs) ",-1)),d.value.tokens&&d.value.tokens.length?(a(),n("div",ve,[(a(!0),n(f,null,h(d.value.tokens,s=>(a(),n("div",pe,[o(p(P),{href:i.route("admin.api-access-token",{id:s.id})},{default:r(()=>[t("div",fe,u(s.name),1),s.abilities&&s.abilities.length?(a(),n("div",_e,[(a(!0),n(f,null,h(s.abilities,v=>(a(),n("div",he," - "+u(C(v)),1))),256))])):_("",!0)]),_:2},1032,["href"])]))),256))])):(a(),n("div",ke,"User does not have PATs."))]),t("div",be,[e[20]||(e[20]=t("div",{class:"card-header"}," Create Personal Access Token ",-1)),p(w).length?(a(),n("div",Ae,[e[18]||(e[18]=t("div",{class:"mt-8 mb-4"},[t("h2",null,"Step 1: Select Token Abilities")],-1)),t("div",ge,[o(X,{onClick:R},{default:r(()=>e[13]||(e[13]=[m(" Clear Selected ")])),_:1}),e[16]||(e[16]=t("div",{class:"pl-16"}," Quick select: ",-1)),o(g,{onClick:e[2]||(e[2]=s=>D())},{default:r(()=>e[14]||(e[14]=[m(" Platform App ")])),_:1}),o(g,{onClick:e[3]||(e[3]=s=>M())},{default:r(()=>e[15]||(e[15]=[m(" Redemption App ")])),_:1})]),t("div",ye,[(a(!0),n(f,null,h(p(w),s=>(a(),n("div",xe,[t("div",null,[t("h2",null,u(s.name),1),t("div",Pe,u(s.description),1),t("div",we,[(a(!0),n(f,null,h(s.abilities,(v,O)=>(a(),n("div",null,[t("label",{for:v,class:"cursor-pointer"},[S(t("input",{type:"checkbox",id:v,class:"mr-4",value:O,"onUpdate:modelValue":e[4]||(e[4]=E=>l.value.token_abilities=E)},null,8,Ce),[[U,l.value.token_abilities]]),m(" "+u(C(v)),1)],8,Te)]))),256))])])]))),256))]),e[19]||(e[19]=t("div",{class:"mt-8"},[t("h2",null,"Step 2: Give the Token a name")],-1)),t("div",Se,[o(K,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value.name,"onUpdate:modelValue":e[5]||(e[5]=s=>l.value.name=s),required:""},null,8,["modelValue"])]),t("div",null," Selected Abilities: "+u(l.value.token_abilities.join(", ")),1),t("div",Ue,[o(g,{onClick:e[6]||(e[6]=z(s=>N(),["prevent"])),class:$(["",{"opacity-25":!l.value.name}]),desabled:!l.value.name},{default:r(()=>e[17]||(e[17]=[m(" Create New Token ")])),_:1},8,["class","desabled"])])])):_("",!0)])]),_:1})],64))}};export{Fe as default}; diff --git a/public/build/assets/User-f6FRCPRL.js b/public/build/assets/User-f6FRCPRL.js deleted file mode 100644 index 9048d02..0000000 --- a/public/build/assets/User-f6FRCPRL.js +++ /dev/null @@ -1 +0,0 @@ -import{r as b,Q as x,o as L,c as n,a as o,u as p,w as r,F as f,b as a,Z as Q,d as t,t as u,i as P,e as m,f as _,g as h,l as S,m as U,k as W,n as $,h as z}from"./app-CblTTgyL.js";import{_ as Y,S as A}from"./AuthenticatedLayout-CFkkM4Xw.js";import{_ as Z}from"./AdminTopNavigation-C3cfuSp_.js";import{P as G}from"./PaginatorComponent-CMgspZ9V.js";import{_ as H}from"./AdminUserDetailsComponent-Dw2XKneS.js";import{P as g}from"./PrimaryButton-lhUrXoRs.js";import{_ as J}from"./TextInput-BT-7frEH.js";import{_ as K}from"./SecondaryButton-B0hUOCHS.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const X={class:"card"},ee={class:"flex justify-between items-center"},te={key:0},se={class:"card"},ie={class:"card"},ae={key:0},ne={key:0},le={key:0,class:"text-xs text-red-500"},oe={class:""},de={class:"flex justify-end items-center mt-4"},re={class:"w-full lg:w-1/3"},ue={class:"card"},me={for:"admin",class:"cursor-pointer flex justify-start items-center"},ce={class:"card"},ve={key:0},pe={class:"border-b py-2"},fe={class:"list-item ml-8"},_e={key:0},he={class:"ml-8 text-xs"},ke={key:1},be={class:"card"},Ae={key:0},ge={class:"flex justify-start items-center space-x-4 pb-4"},ye={class:"grid grid-cols-1 md:grid-cols-2 md:gap-2"},xe={class:"border rounded-xl p-4"},Pe={class:"text-xs"},we={class:"mt-8"},Te=["for"],Ce=["id","value"],Se={class:"pb-4"},Ue={class:"flex items-center justify-end mt-4"},Fe={__name:"User",props:{id:{required:!0,type:Number}},setup(B){const k=B,V=b(5),l=b({name:"",token_abilities:[]}),w=x().props.personalAccessTokenAbilities,j=x().props.platformAppTokenAbilities,I=x().props.redemptionAppTokenAbilities,c=b({}),d=b({});L(()=>{y(),T()});function N(){l.value.user_id=d.value.id,axios.post("/admin/user-personal-access-tokens",l.value).then(i=>{let e=i.data.data.token,s=i.data.data.secret;A.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(v=>{l.value={name:"",token_abilities:[]},y()})}).catch(i=>{A.fire({icon:"error",title:"Oops..",text:i.response.data.meta.message})})}function y(){axios.get("/admin/users/"+k.id+"?cached=false&relations=currentTeam").then(i=>{d.value=i.data.data}).catch(i=>{console.log(i)})}function T(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=>{c.value=e.data.data}).catch(e=>{})}function q(i){T(i)}function C(i){return i.replaceAll("-"," ")}function D(){l.value.token_abilities=Object.keys(j),A.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 M(){l.value.token_abilities=Object.keys(I),A.fire({icon:"info",title:"Redemption Apps",html:'
      We have selected the minimum required abilities for an API token for a "Redemption" type app.
      Be careful with these abilities, as they can redeem vouchers. Ensure the correct rights have been assigned.
      '})}function R(){l.value.token_abilities=[]}function F(){let i={is_admin:d.value.is_admin};axios.put("/admin/users/"+k.id,i).then(e=>{y()}).catch(e=>{console.log(e)})}return(i,e)=>(a(),n(f,null,[o(p(Q),{title:"Users"}),o(Y,null,{header:r(()=>[o(Z)]),default:r(()=>[t("div",X,[t("div",ee,[t("h2",null,u(d.value.name),1),t("div",null,[i.$page.props.isImpersonating===null?(a(),n("div",te,[o(g,null,{default:r(()=>[o(p(P),{href:i.route("admin.impersonate",k.id)},{default:r(()=>e[7]||(e[7]=[m("Impersonate")])),_:1},8,["href"])]),_:1})])):_("",!0)])])]),t("div",se,[e[8]||(e[8]=t("div",{class:"card-header"}," User details ",-1)),o(H,{user:d.value},null,8,["user"])]),t("div",ie,[e[9]||(e[9]=t("div",{class:"card-header"}," User teams ",-1)),c.value.data&&c.value.data.length>0?(a(),n("div",ae,[(a(!0),n(f,null,h(c.value.data,s=>(a(),z(p(P),{href:i.route("admin.team",s.team_id),class:"hover:no-underline hover:opacity-75"},{default:r(()=>[t("div",{class:$({"border-b p-2":c.value.data.length>1})},[s.team?(a(),n("div",ne,[s.team_id===d.value.current_team_id?(a(),n("div",le,"*Current team ")):_("",!0),t("div",oe,u(s.team.name),1)])):_("",!0)],2)]),_:2},1032,["href"]))),256))])):_("",!0),t("div",de,[t("div",re,[o(G,{onSetDataPage:q,"pagination-data":c.value},null,8,["pagination-data"])])])]),t("div",ue,[e[11]||(e[11]=t("div",{class:"card-header"}," Admin status ",-1)),t("label",me,[S(t("input",{onChange:e[0]||(e[0]=s=>F()),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[10]||(e[10]=m(" User is System Admin "))])]),t("div",ce,[e[12]||(e[12]=t("div",{class:"card-header"}," User Personal Access Tokens (PATs) ",-1)),d.value.tokens&&d.value.tokens.length?(a(),n("div",ve,[(a(!0),n(f,null,h(d.value.tokens,s=>(a(),n("div",pe,[o(p(P),{href:i.route("admin.api-access-token",{id:s.id})},{default:r(()=>[t("div",fe,u(s.name),1),s.abilities&&s.abilities.length?(a(),n("div",_e,[(a(!0),n(f,null,h(s.abilities,v=>(a(),n("div",he," - "+u(C(v)),1))),256))])):_("",!0)]),_:2},1032,["href"])]))),256))])):(a(),n("div",ke,"User does not have PATs."))]),t("div",be,[e[20]||(e[20]=t("div",{class:"card-header"}," Create Personal Access Token ",-1)),p(w).length?(a(),n("div",Ae,[e[18]||(e[18]=t("div",{class:"mt-8 mb-4"},[t("h2",null,"Step 1: Select Token Abilities")],-1)),t("div",ge,[o(K,{onClick:R},{default:r(()=>e[13]||(e[13]=[m(" Clear Selected ")])),_:1}),e[16]||(e[16]=t("div",{class:"pl-16"}," Quick select: ",-1)),o(g,{onClick:e[2]||(e[2]=s=>D())},{default:r(()=>e[14]||(e[14]=[m(" Platform App ")])),_:1}),o(g,{onClick:e[3]||(e[3]=s=>M())},{default:r(()=>e[15]||(e[15]=[m(" Redemption App ")])),_:1})]),t("div",ye,[(a(!0),n(f,null,h(p(w),s=>(a(),n("div",xe,[t("div",null,[t("h2",null,u(s.name),1),t("div",Pe,u(s.description),1),t("div",we,[(a(!0),n(f,null,h(s.abilities,(v,O)=>(a(),n("div",null,[t("label",{for:v,class:"cursor-pointer"},[S(t("input",{type:"checkbox",id:v,class:"mr-4",value:O,"onUpdate:modelValue":e[4]||(e[4]=E=>l.value.token_abilities=E)},null,8,Ce),[[U,l.value.token_abilities]]),m(" "+u(C(v)),1)],8,Te)]))),256))])])]))),256))]),e[19]||(e[19]=t("div",{class:"mt-8"},[t("h2",null,"Step 2: Give the Token a name")],-1)),t("div",Se,[o(J,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value.name,"onUpdate:modelValue":e[5]||(e[5]=s=>l.value.name=s),required:""},null,8,["modelValue"])]),t("div",null," Selected Abilities: "+u(l.value.token_abilities.join(", ")),1),t("div",Ue,[o(g,{onClick:e[6]||(e[6]=W(s=>N(),["prevent"])),class:$(["",{"opacity-25":!l.value.name}]),desabled:!l.value.name},{default:r(()=>e[17]||(e[17]=[m(" Create New Token ")])),_:1},8,["class","desabled"])])])):_("",!0)])]),_:1})],64))}};export{Fe as default}; diff --git a/public/build/assets/Users-BPMsF6Ut.js b/public/build/assets/Users-BPMsF6Ut.js new file mode 100644 index 0000000..5690c54 --- /dev/null +++ b/public/build/assets/Users-BPMsF6Ut.js @@ -0,0 +1 @@ +import{_ as f}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as h,o as v,c as r,a as i,u as m,w as l,F as u,b as n,d as g,e,h as x,g as _,i as w,P as k,t as d,f as y}from"./app-JIuq7t-B.js";import{_ as B}from"./AdminTopNavigation-B0MqavRN.js";import{P}from"./PaginatorComponent-d3Iyzo79.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./SecondaryButton-DKtpCAKj.js";const b={class:"card"},C={key:0},N={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"},H={__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:l(()=>[i(B)]),default:l(()=>[e("div",b,[s.value.data&&s.value.data.length?(n(),r("div",C,[(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:l(()=>[e("div",N,[e("div",null,[e("div",V,[e("span",j," #"+d(a.id),1),y(" "+d(a.name),1)]),a.current_team?(n(),r("div",D,d(a.current_team.name),1)):_("",!0),e("div",U,d(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(P,{onSetDataPage:p,"pagination-data":s.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{H as default}; diff --git a/public/build/assets/Users-BsyPXlmB.js b/public/build/assets/Users-BsyPXlmB.js deleted file mode 100644 index 25f66a4..0000000 --- a/public/build/assets/Users-BsyPXlmB.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as f}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as B}from"./AdminTopNavigation-C3cfuSp_.js";import{P as b}from"./PaginatorComponent-CMgspZ9V.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./SecondaryButton-B0hUOCHS.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-CcQXJlpL.js b/public/build/assets/VerifyEmail-CcQXJlpL.js deleted file mode 100644 index e73721a..0000000 --- a/public/build/assets/VerifyEmail-CcQXJlpL.js +++ /dev/null @@ -1 +0,0 @@ -import{T as c,A 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-CblTTgyL.js";import{_}from"./GuestLayout-CCWlBOd3.js";import{P as w}from"./PrimaryButton-lhUrXoRs.js";import"./ApplicationLogo-ByNwEwX1.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/VerifyEmail-kHgsPgp4.js b/public/build/assets/VerifyEmail-kHgsPgp4.js new file mode 100644 index 0000000..d2a1114 --- /dev/null +++ b/public/build/assets/VerifyEmail-kHgsPgp4.js @@ -0,0 +1 @@ +import{H as c,B as g,i as p,w as i,b as n,a as o,u as t,d as y,e as a,c as v,g as b,f as r,n as k,P as x,k as h}from"./app-JIuq7t-B.js";import{_}from"./GuestLayout-C-k_5Foa.js";import{P as w}from"./PrimaryButton-BXNSUttb.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={key:0,class:"mb-4 font-medium text-sm text-green-600"},V={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=g(()=>l.status==="verification-link-sent");return(f,e)=>(n(),p(_,null,{default:i(()=>[o(t(y),{title:"Email Verification"}),e[2]||(e[2]=a("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?(n(),v("div",B," A new verification link has been sent to the email address you provided during registration. ")):b("",!0),a("form",{onSubmit:h(u,["prevent"])},[a("div",V,[o(w,{class:k({"opacity-25":t(s).processing}),disabled:t(s).processing},{default:i(()=>e[0]||(e[0]=[r(" 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]=[r("Log Out")])),_:1},8,["href"])])],32)]),_:1}))}};export{j as default}; diff --git a/public/build/assets/Voucher-BTS59G3H.js b/public/build/assets/Voucher-BTS59G3H.js deleted file mode 100644 index 1825736..0000000 --- a/public/build/assets/Voucher-BTS59G3H.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as B}from"./AuthenticatedLayout-CFkkM4Xw.js";import{r as N,o as R,c as r,a as v,u as i,w as c,F as h,b as a,Z as T,d as e,t as o,f as l,i as m,e as n,g as k,h as C}from"./app-CblTTgyL.js";import{_ as S}from"./AdminTopNavigation-C3cfuSp_.js";import{d as u}from"./dayjs.min-DpVcq2gO.js";import{r as $}from"./relativeTime-ByhsTu5L.js";import{u as M}from"./utc-CM4OPsp5.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";const j={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},D={class:"card"},E={class:"opacity-25"},F={key:0,class:"mt-4"},L={key:1,class:"font-bold text-red-500 text-sm"},q={class:"card"},z={key:0},A={class:"card"},I={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},O={class:"font-bold text-3xl"},U={class:"font-bold text-3xl"},W={class:"font-bold text-3xl"},Z={key:0},G={class:"font-bold text-3xl"},H={class:"text-xs"},J={key:1},K={class:"font-bold text-3xl"},P={class:"text-xs"},Q={class:"grid grid-cols-2 gap-8 container mx-auto"},X={class:"card"},Y={key:0},ee={key:1,class:"text-xs mt-2"},te={class:"card"},se={key:0},oe={class:"card"},de={key:0},ae={class:"card"},re={key:0,class:"text-sm"},ie={class:"border-b flex justify-between items-center py-2 sm:p-2"},le={class:"text-xs opacity-25"},ne={class:"font-bold"},ue={key:0},_e={class:"font-bold"},ve={key:1},ce={class:"font-bold"},we={__name:"Voucher",props:{id:{required:!0}},setup(w){u.extend($),u.extend(M);const f=w,s=N({});R(()=>{V()});function V(){axios.get("/admin/vouchers/"+f.id+"?cached=false&relations=voucherSet.voucherSetMerchantTeams.merchantTeam,createdByTeam,allocatedToServiceTeam,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam").then(_=>{s.value=_.data.data}).catch(_=>{console.log(_)})}return(_,t)=>(a(),r(h,null,[v(i(T),{title:"Voucher set"}),v(B,null,{header:c(()=>[v(S)]),default:c(()=>{var p,x,y,g;return[e("div",j,[e("div",D,[t[1]||(t[1]=e("div",{class:"card-header"}," Voucher Details ",-1)),e("h2",E," ID: "+o(f.id),1),s.value.voucher_short_code?(a(),r("div",F,[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",L," Test voucher ")):l("",!0)]),e("div",q,[t[2]||(t[2]=e("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(a(),r("div",z,[v(i(m),{href:_.route("admin.voucher-set",{id:s.value.voucher_set_id})},{default:c(()=>[n(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):l("",!0)])]),e("div",A,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher details ",-1)),e("div",I,[e("div",null,[e("div",O," $"+o(s.value.voucher_value_original/100),1),t[3]||(t[3]=n(" Original value "))]),e("div",null,[e("div",U," $"+o(s.value.voucher_value_remaining/100),1),t[4]||(t[4]=n(" Remaining value "))]),e("div",null,[e("div",W,o(s.value.num_voucher_redemptions??"0"),1),t[5]||(t[5]=n(" # Redemptions "))]),s.value.last_redemption_at?(a(),r("div",Z,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",G,o(i(u).utc(s.value.last_redemption_at).fromNow()),1),e("div",H," ("+o(i(u)(s.value.last_redemption_at))+") ",1)])):l("",!0),(p=s.value.voucher_set)!=null&&p.expires_at?(a(),r("div",J,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",K,o(i(u).utc(s.value.voucher_set.expires_at).fromNow()),1),e("div",P," ("+o(i(u)(s.value.voucher_set.expires_at))+") ",1)])):l("",!0)])]),e("div",Q,[e("div",X,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(a(),r("div",Y,[v(i(m),{href:_.route("admin.team",{id:s.value.created_by_team_id})},{default:c(()=>{var d;return[n(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",ee," Created at: "+o(i(u).utc(s.value.created_at).fromNow())+" ("+o(i(u)(s.value.created_at))+") ",1)):l("",!0)]),e("div",te,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(a(),r("div",se,[v(i(m),{href:_.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:c(()=>{var d;return[n(o((d=s.value.allocated_to_service_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0)])]),e("div",oe,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants Who May Redeem Vouchers ",-1)),(x=s.value.voucher_set)!=null&&x.voucher_set_merchant_teams&&((y=s.value.voucher_set)!=null&&y.voucher_set_merchant_teams.length)?(a(),r("div",de,[(a(!0),r(h,null,k((g=s.value.voucher_set)==null?void 0:g.voucher_set_merchant_teams,d=>(a(),r("div",null,[v(i(m),{href:_.route("admin.team",d.merchant_team_id),class:""},{default:c(()=>{var b;return[n(o((b=d.merchant_team)==null?void 0:b.name),1)]}),_:2},1032,["href"])]))),256))])):l("",!0)]),e("div",ae,[t[16]||(t[16]=e("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(a(),r("div",re,[(a(!0),r(h,null,k(s.value.voucher_redemptions,d=>(a(),C(i(m),{href:_.route("admin.voucher-redemption",d.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",ie,[e("div",null,[e("div",le," #"+o(d.id),1),e("div",null,[t[12]||(t[12]=n(" Redeemed amount: ")),e("span",ne,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(a(),r("div",ue,[t[13]||(t[13]=n(" Redeemed by: ")),e("span",_e,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):l("",!0),d.created_at?(a(),r("div",ve,[t[14]||(t[14]=n(" Redeemed at: ")),e("span",ce,o(i(u).utc(d.created_at).fromNow())+" ("+o(i(u)(d.created_at))+")",1)])):l("",!0)]),t[15]||(t[15]=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[17]||(t[17]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{we as default}; diff --git a/public/build/assets/Voucher-DbrBg65i.js b/public/build/assets/Voucher-BvLwDaz5.js similarity index 72% rename from public/build/assets/Voucher-DbrBg65i.js rename to public/build/assets/Voucher-BvLwDaz5.js index 155bf0e..01e1fa7 100644 --- a/public/build/assets/Voucher-DbrBg65i.js +++ b/public/build/assets/Voucher-BvLwDaz5.js @@ -1 +1 @@ -import{r as h,o as E,c as a,a as f,u as n,w as _,F as p,b as i,Z as I,e as r,d as t,t as o,f as u,i as P,g as D,h as S,l as A,q as F,E as U}from"./app-CblTTgyL.js";import{_ as Y,S as x}from"./AuthenticatedLayout-CFkkM4Xw.js";import{d as l}from"./dayjs.min-DpVcq2gO.js";import{r as q}from"./relativeTime-ByhsTu5L.js";import{l as L}from"./localizedFormat-gHlzfbQw.js";import{u as M}from"./utc-CM4OPsp5.js";import{P as g}from"./PrimaryButton-lhUrXoRs.js";import{_ as O}from"./SecondaryButton-B0hUOCHS.js";import"./ApplicationLogo-ByNwEwX1.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"},Ee={class:"flex space-x-4"},ze={__name:"Voucher",props:{voucherId:{type:String,required:!1}},setup(T){l.extend(q),l.extend(L),l.extend(M);const R=T,m=h(""),b=h(null),y=h(!1),s=h({});E(()=>{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(I),{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(P),{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,[A(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",Ee,[f(O,{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 j,c as a,a as f,u as n,w as _,F as p,b as i,d as I,f as r,e as t,t as o,g as u,P as A,h as D,i as S,l as E,s as F,G as U}from"./app-JIuq7t-B.js";import{_ as Y,S as x}from"./AuthenticatedLayout-hK9Fu3Th.js";import{d as l}from"./dayjs.min-CT9z215E.js";import{r as G}from"./relativeTime-B6HHAsX1.js";import{l as L}from"./localizedFormat-Dbpc7gAa.js";import{u as M}from"./utc-CHR93Tx7.js";import{P as g}from"./PrimaryButton-BXNSUttb.js";import{_ as O}from"./SecondaryButton-DKtpCAKj.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const q={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},z={class:"card"},H={class:"opacity-25"},J={key:0,class:"mt-4"},K={key:1,class:"font-bold text-red-500 text-sm"},Q={class:"card"},W={key:0},X={class:"card"},Z={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"},Pe={class:"mt-2 flex justify-between"},$e={class:"w-full"},je={class:"flex space-x-4"},qe={__name:"Voucher",props:{voucherId:{type:String,required:!1}},setup(T){l.extend(G),l.extend(L),l.extend(M);const R=T,m=h(""),b=h(null),y=h(!1),s=h({});j(()=>{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 P(){y.value=!0,U(()=>{b.value&&b.value.scrollIntoView({behavior:"smooth"})})}return(c,e)=>(i(),a(p,null,[f(n(I),{title:"Voucher"}),f(Y,null,{header:_(()=>e[1]||(e[1]=[r(" Voucher ")])),default:_(()=>{var v,V,C;return[t("div",q,[t("div",z,[e[2]||(e[2]=t("div",{class:"card-header"}," Voucher Details ",-1)),t("h2",H," ID: "+o(s.value.id),1),s.value.voucher_short_code?(i(),a("div",J,[t("h2",null," Short Code: "+o(s.value.voucher_short_code),1)])):u("",!0),s.value.is_test?(i(),a("div",K," Test voucher ")):u("",!0)]),t("div",Q,[e[3]||(e[3]=t("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(i(),a("div",W,[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",X,[e[9]||(e[9]=t("div",{class:"card-header"}," Usage overview ",-1)),t("div",Z,[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:P},{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,$)=>(i(),a("div",De,[t("div",Se,o($===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",Pe,[t("div",$e,[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",je,[f(O,{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{qe as default}; diff --git a/public/build/assets/Voucher-DaeeJayC.js b/public/build/assets/Voucher-DaeeJayC.js new file mode 100644 index 0000000..9085c94 --- /dev/null +++ b/public/build/assets/Voucher-DaeeJayC.js @@ -0,0 +1 @@ +import{_ as B}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as N,o as R,c as r,a as v,u as i,w as c,F as h,b as a,d as T,e,t as o,g as l,P as m,f as n,h as k,i as C}from"./app-JIuq7t-B.js";import{_ as S}from"./AdminTopNavigation-B0MqavRN.js";import{d as u}from"./dayjs.min-CT9z215E.js";import{r as $}from"./relativeTime-B6HHAsX1.js";import{u as M}from"./utc-CHR93Tx7.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";const j={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},D={class:"card"},E={class:"opacity-25"},F={key:0,class:"mt-4"},L={key:1,class:"font-bold text-red-500 text-sm"},P={class:"card"},q={key:0},z={class:"card"},A={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},I={class:"font-bold text-3xl"},O={class:"font-bold text-3xl"},U={class:"font-bold text-3xl"},W={key:0},G={class:"font-bold text-3xl"},H={class:"text-xs"},J={key:1},K={class:"font-bold text-3xl"},Q={class:"text-xs"},X={class:"grid grid-cols-2 gap-8 container mx-auto"},Y={class:"card"},Z={key:0},ee={key:1,class:"text-xs mt-2"},te={class:"card"},se={key:0},oe={class:"card"},de={key:0},ae={class:"card"},re={key:0,class:"text-sm"},ie={class:"border-b flex justify-between items-center py-2 sm:p-2"},le={class:"text-xs opacity-25"},ne={class:"font-bold"},ue={key:0},_e={class:"font-bold"},ve={key:1},ce={class:"font-bold"},we={__name:"Voucher",props:{id:{required:!0}},setup(w){u.extend($),u.extend(M);const f=w,s=N({});R(()=>{V()});function V(){axios.get("/admin/vouchers/"+f.id+"?cached=false&relations=voucherSet.voucherSetMerchantTeams.merchantTeam,createdByTeam,allocatedToServiceTeam,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam").then(_=>{s.value=_.data.data}).catch(_=>{console.log(_)})}return(_,t)=>(a(),r(h,null,[v(i(T),{title:"Voucher set"}),v(B,null,{header:c(()=>[v(S)]),default:c(()=>{var p,x,y,g;return[e("div",j,[e("div",D,[t[1]||(t[1]=e("div",{class:"card-header"}," Voucher Details ",-1)),e("h2",E," ID: "+o(f.id),1),s.value.voucher_short_code?(a(),r("div",F,[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",L," Test voucher ")):l("",!0)]),e("div",P,[t[2]||(t[2]=e("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(a(),r("div",q,[v(i(m),{href:_.route("admin.voucher-set",{id:s.value.voucher_set_id})},{default:c(()=>[n(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):l("",!0)])]),e("div",z,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher details ",-1)),e("div",A,[e("div",null,[e("div",I," $"+o(s.value.voucher_value_original/100),1),t[3]||(t[3]=n(" Original value "))]),e("div",null,[e("div",O," $"+o(s.value.voucher_value_remaining/100),1),t[4]||(t[4]=n(" Remaining value "))]),e("div",null,[e("div",U,o(s.value.num_voucher_redemptions??"0"),1),t[5]||(t[5]=n(" # Redemptions "))]),s.value.last_redemption_at?(a(),r("div",W,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",G,o(i(u).utc(s.value.last_redemption_at).fromNow()),1),e("div",H," ("+o(i(u)(s.value.last_redemption_at))+") ",1)])):l("",!0),(p=s.value.voucher_set)!=null&&p.expires_at?(a(),r("div",J,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",K,o(i(u).utc(s.value.voucher_set.expires_at).fromNow()),1),e("div",Q," ("+o(i(u)(s.value.voucher_set.expires_at))+") ",1)])):l("",!0)])]),e("div",X,[e("div",Y,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(a(),r("div",Z,[v(i(m),{href:_.route("admin.team",{id:s.value.created_by_team_id})},{default:c(()=>{var d;return[n(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",ee," Created at: "+o(i(u).utc(s.value.created_at).fromNow())+" ("+o(i(u)(s.value.created_at))+") ",1)):l("",!0)]),e("div",te,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(a(),r("div",se,[v(i(m),{href:_.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:c(()=>{var d;return[n(o((d=s.value.allocated_to_service_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0)])]),e("div",oe,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants Who May Redeem Vouchers ",-1)),(x=s.value.voucher_set)!=null&&x.voucher_set_merchant_teams&&((y=s.value.voucher_set)!=null&&y.voucher_set_merchant_teams.length)?(a(),r("div",de,[(a(!0),r(h,null,k((g=s.value.voucher_set)==null?void 0:g.voucher_set_merchant_teams,d=>(a(),r("div",null,[v(i(m),{href:_.route("admin.team",d.merchant_team_id),class:""},{default:c(()=>{var b;return[n(o((b=d.merchant_team)==null?void 0:b.name),1)]}),_:2},1032,["href"])]))),256))])):l("",!0)]),e("div",ae,[t[16]||(t[16]=e("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(a(),r("div",re,[(a(!0),r(h,null,k(s.value.voucher_redemptions,d=>(a(),C(i(m),{href:_.route("admin.voucher-redemption",d.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",ie,[e("div",null,[e("div",le," #"+o(d.id),1),e("div",null,[t[12]||(t[12]=n(" Redeemed amount: ")),e("span",ne,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(a(),r("div",ue,[t[13]||(t[13]=n(" Redeemed by: ")),e("span",_e,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):l("",!0),d.created_at?(a(),r("div",ve,[t[14]||(t[14]=n(" Redeemed at: ")),e("span",ce,o(i(u).utc(d.created_at).fromNow())+" ("+o(i(u)(d.created_at))+")",1)])):l("",!0)]),t[15]||(t[15]=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[17]||(t[17]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{we as default}; diff --git a/public/build/assets/VoucherRedeem-Cp7ZPDBh.js b/public/build/assets/VoucherRedeem-Cp7ZPDBh.js new file mode 100644 index 0000000..34cf5db --- /dev/null +++ b/public/build/assets/VoucherRedeem-Cp7ZPDBh.js @@ -0,0 +1 @@ +import{r as _,o as V,q as F,c as s,a as p,u as f,w as $,F as b,b as i,d as C,e,f as x,t as n,g as u,l as T,s as B,n as P,h as A}from"./app-JIuq7t-B.js";import{_ as I,S as m}from"./AuthenticatedLayout-hK9Fu3Th.js";import{d as h}from"./dayjs.min-CT9z215E.js";import{r as N}from"./relativeTime-B6HHAsX1.js";import{u as j}from"./utc-CHR93Tx7.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";const D={class:"card"},S={class:"title text-2xl"},L={class:"uppercase"},q={class:"my-4"},M={key:0,class:"title text-green text-xl text-green-500"},O={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},G={class:"my-4"},J={key:0,class:"my-2 text-red-500"},K={key:0,class:"flex justify-between items-center"},Q={class:"w-1/2 pr-2"},W={class:"w-1/2 pl-2"},X={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-2"},Y={class:""},Z={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"},fe={__name:"VoucherRedeem",props:{voucher:{type:Object,required:!0}},setup(r){h.extend(N),h.extend(j);const d=r,c=_(!1),a=_(0),v=_(!1);V(()=>{});function y(){a.value=(parseInt(d.voucher.voucher_value_remaining)/100).toFixed(2),c.value=!0}function w(){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 R(){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,setTimeout(ne=>{window.location.reload()},1e3)}).catch(o=>{m.fire({icon:"error",title:"Oops!",text:o.response.data.meta.message})})}return F(a,l=>{v.value=l>0&&parseInt((l*100).toFixed(0))<=parseInt(d.voucher.voucher_value_remaining.toFixed(0))}),(l,t)=>(i(),s(b,null,[p(f(C),{title:"Voucher redeem"}),p(I,null,{default:$(()=>[e("div",D,[e("div",S,[t[5]||(t[5]=x(" Redeem Voucher ")),e("span",L,n(r.voucher.voucher_short_code),1)]),e("div",q,[r.voucher.voucher_value_remaining>0?(i(),s("div",M,"Voucher is Valid")):(i(),s("div",O,"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",G,[t[6]||(t[6]=x(" 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",J," Invalid redemption amount. "))]),v.value?(i(),s("div",K,[e("div",Q,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[1]||(t[1]=o=>w())}," Cancel ")]),e("div",W,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[2]||(t[2]=o=>R())}," Redeem ")])])):u("",!0)])):(i(),s("div",X,[e("div",Y,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[3]||(t[3]=o=>y())}," Redeem PART ")]),e("div",Z,[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[7]||(t[7]=[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(b,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,[x(n(f(h).utc(o.created_at).fromNow())+" ",1),e("div",le," ("+n(f(h)(o.created_at))+") ",1)])]))),256))])])):u("",!0)])])]),_:1})],64))}};export{fe as default}; diff --git a/public/build/assets/VoucherRedeem-Mb5Z1MbJ.js b/public/build/assets/VoucherRedeem-Mb5Z1MbJ.js deleted file mode 100644 index 0dae0ef..0000000 --- a/public/build/assets/VoucherRedeem-Mb5Z1MbJ.js +++ /dev/null @@ -1 +0,0 @@ -import{r as _,o as V,p as F,c as s,a as p,u as x,w as $,F as b,b as i,Z as C,d as e,e as f,t as n,f as u,l as T,q as B,n as P,g as A}from"./app-CblTTgyL.js";import{_ as I,S as m}from"./AuthenticatedLayout-CFkkM4Xw.js";import{d as h}from"./dayjs.min-DpVcq2gO.js";import{r as N}from"./relativeTime-ByhsTu5L.js";import{u as j}from"./utc-CM4OPsp5.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";const D={class:"card"},S={class:"title text-2xl"},L={class:"uppercase"},q={class:"my-4"},M={key:0,class:"title text-green text-xl text-green-500"},O={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-1 md: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=_(!1),a=_(0),v=_(!1);V(()=>{});function y(){a.value=(parseInt(d.voucher.voucher_value_remaining)/100).toFixed(2),c.value=!0}function w(){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 R(){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,setTimeout(ne=>{window.location.reload()},1e3)}).catch(o=>{m.fire({icon:"error",title:"Oops!",text:o.response.data.meta.message})})}return F(a,l=>{v.value=l>0&&parseInt((l*100).toFixed(0))<=parseInt(d.voucher.voucher_value_remaining.toFixed(0))}),(l,t)=>(i(),s(b,null,[p(x(C),{title:"Voucher redeem"}),p(I,null,{default:$(()=>[e("div",D,[e("div",S,[t[5]||(t[5]=f(" Redeem Voucher ")),e("span",L,n(r.voucher.voucher_short_code),1)]),e("div",q,[r.voucher.voucher_value_remaining>0?(i(),s("div",M,"Voucher is Valid")):(i(),s("div",O,"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[6]||(t[6]=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=>w())}," 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=>R())}," 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=>y())}," 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[7]||(t[7]=[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(b,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(x(h).utc(o.created_at).fromNow())+" ",1),e("div",le," ("+n(x(h)(o.created_at))+") ",1)])]))),256))])])):u("",!0)])])]),_:1})],64))}};export{xe as default}; diff --git a/public/build/assets/VoucherRedemption-BAAy6YUl.js b/public/build/assets/VoucherRedemption-BAAy6YUl.js deleted file mode 100644 index a76c467..0000000 --- a/public/build/assets/VoucherRedemption-BAAy6YUl.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as p}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as V}from"./AdminTopNavigation-C3cfuSp_.js";import{d as _}from"./dayjs.min-DpVcq2gO.js";import{r as k}from"./relativeTime-ByhsTu5L.js";import{u as R}from"./utc-CM4OPsp5.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.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/VoucherRedemption-r3J7-Ky1.js b/public/build/assets/VoucherRedemption-r3J7-Ky1.js new file mode 100644 index 0000000..6697390 --- /dev/null +++ b/public/build/assets/VoucherRedemption-r3J7-Ky1.js @@ -0,0 +1 @@ +import{_ as p}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as y,o as x,c as a,a as i,u,w as n,F as g,b as l,d as b,e as d,t as o,g as m,f as r,P as v}from"./app-JIuq7t-B.js";import{_ as V}from"./AdminTopNavigation-B0MqavRN.js";import{d as _}from"./dayjs.min-CT9z215E.js";import{r as k}from"./relativeTime-B6HHAsX1.js";import{u as R}from"./utc-CHR93Tx7.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.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"},P={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},j={class:"font-bold text-3xl"},q={key:0},E={class:"font-bold text-3xl"},I={class:"font-bold text-3xl"},M={class:"text-xs"},S={class:"card"},U={key:0},z={key:1},X={__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(s=>{t.value=s.data.data}).catch(s=>{console.log(s)})}return(s,e)=>(l(),a(g,null,[i(u(b),{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]=r(" Voucher ")),i(u(v),{href:s.route("admin.voucher",t.value.voucher_id)},{default:n(()=>[r("#"+o(t.value.voucher_id),1)]),_:1},8,["href"])])):m("",!0),t.value.voucher_set_id?(l(),a("div",C,[e[2]||(e[2]=r(" Voucher set ")),i(u(v),{href:s.route("admin.voucher-set",t.value.voucher_set_id)},{default:n(()=>[r("#"+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",P,[d("div",null,[d("div",j," $"+o(t.value.redeemed_amount/100),1),e[4]||(e[4]=r(" Redeemed value "))]),t.value.voucher?(l(),a("div",q,[d("div",E," $"+o(t.value.voucher.voucher_value_remaining/100),1),e[5]||(e[5]=r(" Voucher remaining value "))])):m("",!0),d("div",null,[e[6]||(e[6]=d("div",null," Redeemed at ",-1)),d("div",I,o(u(_).utc(t.value.created_at).fromNow()),1),d("div",M," ("+o(u(_)(t.value.created_at))+") ",1)])])]),d("div",S,[e[8]||(e[8]=d("div",{class:"card-header"}," Redeemed by ",-1)),t.value.redeemed_by_user?(l(),a("div",U,[i(u(v),{href:s.route("admin.user",t.value.redeemed_by_user_id)},{default:n(()=>[r(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:s.route("admin.team",t.value.redeemed_by_team_id)},{default:n(()=>[r(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{X as default}; diff --git a/public/build/assets/VoucherRedemptions-CbBC5rbT.js b/public/build/assets/VoucherRedemptions-DisqLP9Y.js similarity index 60% rename from public/build/assets/VoucherRedemptions-CbBC5rbT.js rename to public/build/assets/VoucherRedemptions-DisqLP9Y.js index 28c0b53..4418aa6 100644 --- a/public/build/assets/VoucherRedemptions-CbBC5rbT.js +++ b/public/build/assets/VoucherRedemptions-DisqLP9Y.js @@ -1 +1 @@ -import{_ as y}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as V}from"./AdminTopNavigation-C3cfuSp_.js";import{P as B}from"./PaginatorComponent-CMgspZ9V.js";import{d as l}from"./dayjs.min-DpVcq2gO.js";import{r as C}from"./relativeTime-ByhsTu5L.js";import{u as $}from"./utc-CM4OPsp5.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./SecondaryButton-B0hUOCHS.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-hK9Fu3Th.js";import{r as p,o as g,b as r,c as d,F as h,h as x,i as b,w as c,e as t,t as a,g as i,u as m,P as w,a as n,d as k}from"./app-JIuq7t-B.js";import{_ as V}from"./AdminTopNavigation-B0MqavRN.js";import{P as B}from"./PaginatorComponent-d3Iyzo79.js";import{d as l}from"./dayjs.min-CT9z215E.js";import{r as C}from"./relativeTime-B6HHAsX1.js";import{u as P}from"./utc-CHR93Tx7.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./SecondaryButton-DKtpCAKj.js";const $={key:0},j={class:"border-b flex justify-between items-center py-2 sm:p-2"},N={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(P);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",$,[(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",j,[t("div",N,[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"},X={__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{X as default}; diff --git a/public/build/assets/VoucherSet-CI0MSV9g.js b/public/build/assets/VoucherSet-CI0MSV9g.js deleted file mode 100644 index 06d3f1f..0000000 --- a/public/build/assets/VoucherSet-CI0MSV9g.js +++ /dev/null @@ -1 +0,0 @@ -import{S as L,_ as W}from"./AuthenticatedLayout-CFkkM4Xw.js";import{r as k,p as D,b as l,c as o,d as e,l as q,q as U,F as g,g as $,k as C,f as i,t as d,o as z,a as h,u as m,w as _,Z as I,e as c,i as M,h as A}from"./app-CblTTgyL.js";import{_ as O}from"./AdminTopNavigation-C3cfuSp_.js";import{P as B}from"./PrimaryButton-lhUrXoRs.js";import{_ as P}from"./SecondaryButton-B0hUOCHS.js";import{d as p}from"./dayjs.min-DpVcq2gO.js";import{r as Z}from"./relativeTime-ByhsTu5L.js";import{u as G}from"./utc-CM4OPsp5.js";import{_ as J}from"./VouchersComponent-CuVgvWTH.js";import{D as E}from"./DangerButton-BXvpand6.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-CMgspZ9V.js";const K={class:"h-full"},Q={key:0,class:""},X={key:0,class:"mb-8"},Y={class:"flex space-x-4"},ee=["innerHTML"],te=["innerHTML"],se={key:1,class:"mb-8"},le=["onClick"],ae={class:"flex space-x-4"},oe=["innerHTML"],re={key:2,class:"my-8"},ne=["onClick"],ie={class:"flex"},de=["innerHTML"],ue={key:3,class:"my-8"},ve=["onClick"],ce={class:"flex"},me=["innerHTML"],he={class:"ml-2"},_e=["innerHTML"],fe={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},pe={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},xe={class:"text-2xl"},ye={__name:"AdminSearchComponent",props:{filterToDataSets:{required:!1,type:String,default:"users,teams,vouchers,voucherSets"}},emits:["itemWasSelected"],setup(N,{emit:T}){const x=N,s=k(""),v=k({users:[],teams:[],vouchers:[],voucherSets:[]}),V=T,w=k(!1),y=k(!1);D(s,()=>{s.value.length>=3?j():(w.value=!1,y.value=!1)}),D(v,()=>{w.value=!1,y.value=!1,s.value.length>=3&&(v.value.users.length||v.value.teams.length||v.value.vouchers.length||v.value.voucherSets.length?w.value=!0:y.value=!0)});function j(){s.value&&s.value.length>=1&&axios.get("/admin/search?cached=false&query="+s.value).then(a=>{v.value=a.data.data}).catch(a=>{L.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function u(a){let r=new RegExp(s.value,"ig"),n=a.matchAll(r);if(n.length===0)return a;let b=0;return n.forEach(S=>{const F=a.slice(0,S.index+b),R=a.slice(S.index+b+S[0].length),H=''+S[0]+"";a=F+H+R,b+=H.length-S[0].length}),a}function t(){v.value={users:[],teams:[],vouchers:[],voucherSets:[]}}function f(a){V("itemWasSelected",a),s.value="",t()}return(a,r)=>(l(),o(g,null,[e("div",null,[q(e("input",{id:"search-box","onUpdate:modelValue":r[0]||(r[0]=n=>s.value=n),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[U,s.value]]),r[3]||(r[3]=e("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),e("div",K,[w.value?(l(),o("div",Q,[e("div",null,[v.value.users.length>0&&x.filterToDataSets.includes("users")?(l(),o("div",X,[r[5]||(r[5]=e("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.users,n=>(l(),o("div",null,[e("a",{href:"#",onClick:r[1]||(r[1]=C(b=>f(a.voucher),["prevent"])),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",Y,[e("div",{innerHTML:u(n.name)},null,8,ee),e("div",{innerHTML:u(n.email)},null,8,te)]),r[4]||(r[4]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):i("",!0),v.value.teams.length>0&&x.filterToDataSets.includes("teams")?(l(),o("div",se,[r[7]||(r[7]=e("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.teams,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ae,[e("div",{innerHTML:u(n.name)},null,8,oe)]),r[6]||(r[6]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,le)]))),256))])])):i("",!0),v.value.voucherSets.length>0&&x.filterToDataSets.includes("voucherSets")?(l(),o("div",re,[r[9]||(r[9]=e("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.voucherSets,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ie,[e("div",{innerHTML:u(n.id)},null,8,de)]),r[8]||(r[8]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ne)]))),256))])])):i("",!0),v.value.vouchers.length>0&&x.filterToDataSets.includes("vouchers")?(l(),o("div",ue,[r[11]||(r[11]=e("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.vouchers,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ce,[e("div",{innerHTML:u(n.id)},null,8,me),e("div",he,[e("div",{innerHTML:u("("+n.voucher_short_code+")")},null,8,_e)])]),r[10]||(r[10]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ve)]))),256))])])):i("",!0)]),y.value?(l(),o("div",fe,[e("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:r[2]||(r[2]=n=>y.value=!1)}),e("div",pe,[e("div",xe,'No Search Results for "'+d(s.value)+'"',1)])])):i("",!0)])):i("",!0)])],64))}},ge={class:"card"},be={key:0,class:"font-bold text-red-500 text-sm"},we={class:"card"},ke={class:"card-header"},$e={key:0,class:"text-red-500 text-xs font-bold"},Te={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},Se={class:"font-bold text-3xl"},Me={class:"font-bold text-3xl"},Ce={class:"font-bold text-3xl"},Le={class:"font-bold text-3xl"},Ne={key:0},Ve={class:"font-bold text-3xl"},je={class:"text-xs"},Ae={key:1},Be={class:"font-bold text-3xl"},He={class:"text-xs"},De={class:"card"},Ee={key:0},Fe={key:1,class:"text-xs mt-2"},Re={class:"card"},We={key:0},qe={class:"card"},Ue={class:"card-header flex justify-between items-center"},ze={class:"flex justify-end"},Ie={key:0},Oe={key:1},Pe={key:0},Ze={key:1},Ge={class:"border-b py-2 flex justify-between items-center"},Je={class:"flex justify-end gap-4 items-center"},Ke={key:0},Qe={class:"card"},Xe={key:0},Ye={class:"flex justify-between items-center py-4"},et={class:"text-xs"},tt={class:"flex items-center gap-x-2"},st={class:"text-xs text-right"},lt={key:0},at={class:"flex justify-end"},ot={class:"card"},yt={__name:"VoucherSet",props:{id:{required:!0}},setup(N){p.extend(Z),p.extend(G);const T=N,x=k(!1),s=k({});z(()=>{y()});function v(){x.value=!0}function V(){x.value=!1}function w(u){L.fire({icon:"warning",title:"Add "+u.name+" as merchant for this voucher set?",html:"
      Note that the selected team must be a merchant of the voucher set's service team.
      ",showCancelButton:!0,confirmButtonText:"Add please!"}).then(t=>{if(t.isConfirmed){let f={voucher_set_id:s.value.id,merchant_team_id:u.id};axios.post("/admin/voucher-set-merchant-teams",f).then(a=>{y()}).catch(a=>{L.fire({icon:"error",title:"Oops..",text:a.response.data.meta.message})})}})}function y(){axios.get("/admin/voucher-sets/"+T.id+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam,voucherSetMerchantTeamApprovalRequests.merchantUser,voucherSetMerchantTeamApprovalRequests.merchantTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}function j(u){L.fire({icon:"warning",title:"Force-remove Merchant?",html:'
      Be careful here. This removes this merchant from involvement in this voucher set, and deletes all previous merchant approval requests, regardless of previous state.
      Any emails sent to this merchant previously requesting involvement will not work, as the approval request will have been revoked. This merchant team will not be able to redeem vouchers for this set; they may continue to redeem vouchers for other sets they are involved in.
      ',showCancelButton:!0,confirmButtonText:"Remove please!"}).then(t=>{t.isConfirmed&&axios.delete("/admin/voucher-set-merchant-teams/"+u.id).then(f=>{y()}).catch(f=>{console.log(f)})})}return(u,t)=>(l(),o(g,null,[h(m(I),{title:"Voucher set"}),h(W,null,{header:_(()=>[h(O)]),default:_(()=>{var f;return[e("div",ge,[e("h2",null,d(T.id),1),s.value.is_test?(l(),o("div",be," Test voucher set ")):i("",!0)]),e("div",we,[e("div",ke,[t[2]||(t[2]=c(" Voucher set details ")),s.value.voucher_generation_finished_at?i("",!0):(l(),o("span",$e,"Vouchers not generated yet."))]),e("div",Te,[e("div",null,[e("div",Se," $"+d(s.value.total_set_value/100),1),t[3]||(t[3]=c(" Total set value "))]),e("div",null,[e("div",Me," $"+d(s.value.total_set_value_remaining/100),1),t[4]||(t[4]=c(" Total remaining value "))]),e("div",null,[e("div",Ce,d(s.value.num_vouchers),1),t[5]||(t[5]=c(" # Vouchers "))]),e("div",null,[e("div",Le,d(s.value.num_voucher_redemptions),1),t[6]||(t[6]=c(" # Redemptions "))]),s.value.last_redemption_at?(l(),o("div",Ne,[t[7]||(t[7]=e("div",null," Last redeemed ",-1)),e("div",Ve,d(m(p).utc(s.value.last_redemption_at).fromNow()),1),e("div",je," ("+d(m(p)(s.value.last_redemption_at))+") ",1)])):i("",!0),s.value.expires_at?(l(),o("div",Ae,[t[8]||(t[8]=e("div",null," Expires ",-1)),e("div",Be,d(m(p).utc(s.value.expires_at).fromNow()),1),e("div",He," ("+d(m(p)(s.value.expires_at))+") ",1)])):i("",!0)])]),e("div",De,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(l(),o("div",Ee,[h(m(M),{href:u.route("admin.team",{id:s.value.created_by_team_id})},{default:_(()=>[c(d(s.value.created_by_team.name),1)]),_:1},8,["href"])])):i("",!0),s.value.created_at?(l(),o("div",Fe," Created at: "+d(m(p).utc(s.value.created_at).fromNow())+" ("+d(m(p)(s.value.created_at))+") ",1)):i("",!0)]),e("div",Re,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(l(),o("div",We,[h(m(M),{href:u.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:_(()=>[c(d(s.value.allocated_to_service_team.name),1)]),_:1},8,["href"])])):i("",!0)]),e("div",qe,[e("div",Ue,[t[13]||(t[13]=e("div",null," Merchant teams ",-1)),e("div",ze,[x.value?(l(),o("div",Oe,[h(B,{onClick:t[1]||(t[1]=a=>V()),class:"ms-4"},{default:_(()=>t[12]||(t[12]=[c(" Cancel ")])),_:1})])):(l(),o("div",Ie,[h(B,{onClick:t[0]||(t[0]=a=>v()),class:"ms-4"},{default:_(()=>t[11]||(t[11]=[c(" Add Merchant Team ")])),_:1})]))])]),x.value?(l(),o("div",Pe,[t[14]||(t[14]=e("div",{class:"py-2 text-xs"},"Select merchant team...",-1)),h(ye,{"filter-to-data-sets":"teams",onItemWasSelected:w})])):i("",!0),s.value.voucher_set_merchant_teams?(l(),o("div",Ze,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_teams,a=>(l(),o("div",null,[e("div",Ge,[h(m(M),{href:u.route("admin.team",{id:a.merchant_team_id})},{default:_(()=>{var r;return[c(d(((r=a.merchant_team)==null?void 0:r.name)??"Merchant team"),1)]}),_:2},1032,["href"]),e("div",Je,[a.voucher_set_merchant_team_approval_request_id?(l(),o("div",Ke,t[15]||(t[15]=[e("div",{class:"text-xs"}," Approved. ",-1)]))):i("",!0),h(E,{onClick:r=>j(a)},{default:_(()=>t[16]||(t[16]=[c(" Force Remove? ")])),_:2},1032,["onClick"])])])]))),256))])):i("",!0)]),e("div",Qe,[t[21]||(t[21]=e("div",{class:"card-header"},[e("div",null," Merchant team approval requests ")],-1)),t[22]||(t[22]=e("div",{class:"text-xs"}," We only need one user from any merchant team member (per team) to approve that team's participation as merchants. ",-1)),(f=s.value.voucher_set_merchant_team_approval_requests)!=null&&f.length?(l(),o("div",Xe,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_team_approval_requests,a=>{var r;return l(),o("div",null,[e("div",Ye,[e("div",null,[e("div",null,[h(m(M),{class:"font-bold",href:"/admin/team/"+a.merchant_team_id},{default:_(()=>{var n;return[c(d((n=a.merchant_team)==null?void 0:n.name),1)]}),_:2},1032,["href"]),t[17]||(t[17]=c(" | ")),h(m(M),{href:"/admin/user/"+a.merchant_user_id},{default:_(()=>{var n;return[c(d((n=a.merchant_user)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("div",et,d((r=a.merchant_user)==null?void 0:r.email),1)]),e("div",null,[e("div",tt,[e("div",st,[e("div",null," Created: "+d(m(p).utc(a.created_at).fromNow()),1),a.approval_status_last_updated_at?(l(),o("div",lt," Last actioned: "+d(m(p).utc(a.approval_status_last_updated_at).fromNow()),1)):i("",!0)]),e("div",at,[a.approval_status==="ready"?(l(),A(P,{key:0,class:"opacity-40"},{default:_(()=>t[18]||(t[18]=[c(" Ready ")])),_:1})):i("",!0),a.approval_status==="approved"?(l(),A(B,{key:1},{default:_(()=>t[19]||(t[19]=[c(" Approved ")])),_:1})):i("",!0),a.approval_status==="rejected"?(l(),A(E,{key:2},{default:_(()=>t[20]||(t[20]=[c(" Rejected ")])),_:1})):i("",!0)])])])])])}),256))])):i("",!0)]),e("div",ot,[t[23]||(t[23]=e("div",{class:"card-header"}," Vouchers ",-1)),h(J,{"voucher-set-id":T.id},null,8,["voucher-set-id"])]),t[24]||(t[24]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{yt as default}; diff --git a/public/build/assets/VoucherSet-D4FQyn1p.js b/public/build/assets/VoucherSet-D4FQyn1p.js deleted file mode 100644 index d6c5372..0000000 --- a/public/build/assets/VoucherSet-D4FQyn1p.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as $}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{d as i}from"./dayjs.min-DpVcq2gO.js";import{r as T}from"./relativeTime-ByhsTu5L.js";import{u as S}from"./utc-CM4OPsp5.js";import{P as B}from"./PaginatorComponent-CMgspZ9V.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./SecondaryButton-B0hUOCHS.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-DhA1rvxa.js b/public/build/assets/VoucherSet-DhA1rvxa.js new file mode 100644 index 0000000..52cfb6c --- /dev/null +++ b/public/build/assets/VoucherSet-DhA1rvxa.js @@ -0,0 +1 @@ +import{_ as $}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as x,o as b,b as o,c as d,F as f,h as k,i as w,w as y,e,t as a,g as r,u as n,m as g,P as V,a as m,d as C,f as _}from"./app-JIuq7t-B.js";import{d as i}from"./dayjs.min-CT9z215E.js";import{r as T}from"./relativeTime-B6HHAsX1.js";import{u as S}from"./utc-CHR93Tx7.js";import{P as B}from"./PaginatorComponent-d3Iyzo79.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./SecondaryButton-DKtpCAKj.js";const N={key:0},M={class:"border-b flex justify-between items-center py-2 sm:p-2"},I={class:"text-xs"},P={key:0,class:"font-bold text-sm"},j={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",P," #"+a(l.voucher_short_code),1)):(o(),d("div",j," #"+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"},G={class:"card"},H={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},J={class:"font-bold text-3xl"},K={class:"font-bold text-3xl"},O={class:"font-bold text-3xl"},Q={class:"font-bold text-3xl"},U={class:"font-bold text-3xl"},W={key:0},X={class:"font-bold text-3xl"},Y={class:"text-xs"},Z={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",G,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher set details ",-1)),e("div",H,[e("div",null,[e("div",J," $"+a(s.value.total_set_value/100),1),t[1]||(t[1]=_(" Total set value "))]),e("div",null,[e("div",K," $"+a(s.value.total_set_value_remaining/100),1),t[2]||(t[2]=_(" Total remaining value "))]),e("div",null,[e("div",O,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",Q,a(s.value.num_vouchers),1),t[4]||(t[4]=_(" # Vouchers "))]),e("div",null,[e("div",U,a(s.value.num_voucher_redemptions),1),t[5]||(t[5]=_(" # Redemptions "))]),s.value.last_redemption_at?(o(),d("div",W,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",X,a(n(i).utc(s.value.last_redemption_at).fromNow()),1),e("div",Y," ("+a(n(i)(s.value.last_redemption_at))+") ",1)])):r("",!0),s.value.expires_at?(o(),d("div",Z,[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-DuDUq463.js b/public/build/assets/VoucherSet-DuDUq463.js new file mode 100644 index 0000000..ff91191 --- /dev/null +++ b/public/build/assets/VoucherSet-DuDUq463.js @@ -0,0 +1 @@ +import{S as L,_ as R}from"./AuthenticatedLayout-hK9Fu3Th.js";import{r as k,q as D,b as l,c as o,e,l as W,s as q,F as g,h as $,k as C,g as i,t as d,o as U,a as h,u as m,w as _,d as z,f as c,P as M,i as A}from"./app-JIuq7t-B.js";import{_ as I}from"./AdminTopNavigation-B0MqavRN.js";import{P as B}from"./PrimaryButton-BXNSUttb.js";import{_ as O}from"./SecondaryButton-DKtpCAKj.js";import{d as p}from"./dayjs.min-CT9z215E.js";import{r as G}from"./relativeTime-B6HHAsX1.js";import{u as J}from"./utc-CHR93Tx7.js";import{_ as K}from"./VouchersComponent-B8KOk0o_.js";import{D as E}from"./DangerButton-C4Z82YQr.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-d3Iyzo79.js";const Q={class:"h-full"},X={key:0,class:""},Y={key:0,class:"mb-8"},Z={class:"flex space-x-4"},ee=["innerHTML"],te=["innerHTML"],se={key:1,class:"mb-8"},le=["onClick"],ae={class:"flex space-x-4"},oe=["innerHTML"],re={key:2,class:"my-8"},ne=["onClick"],ie={class:"flex"},de=["innerHTML"],ue={key:3,class:"my-8"},ve=["onClick"],ce={class:"flex"},me=["innerHTML"],he={class:"ml-2"},_e=["innerHTML"],fe={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},pe={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},xe={class:"text-2xl"},ye={__name:"AdminSearchComponent",props:{filterToDataSets:{required:!1,type:String,default:"users,teams,vouchers,voucherSets"}},emits:["itemWasSelected"],setup(N,{emit:T}){const x=N,s=k(""),v=k({users:[],teams:[],vouchers:[],voucherSets:[]}),V=T,w=k(!1),y=k(!1);D(s,()=>{s.value.length>=3?j():(w.value=!1,y.value=!1)}),D(v,()=>{w.value=!1,y.value=!1,s.value.length>=3&&(v.value.users.length||v.value.teams.length||v.value.vouchers.length||v.value.voucherSets.length?w.value=!0:y.value=!0)});function j(){s.value&&s.value.length>=1&&axios.get("/admin/search?cached=false&query="+s.value).then(a=>{v.value=a.data.data}).catch(a=>{L.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function u(a){let r=new RegExp(s.value,"ig"),n=a.matchAll(r);if(n.length===0)return a;let b=0;return n.forEach(S=>{const F=a.slice(0,S.index+b),P=a.slice(S.index+b+S[0].length),H=''+S[0]+"";a=F+H+P,b+=H.length-S[0].length}),a}function t(){v.value={users:[],teams:[],vouchers:[],voucherSets:[]}}function f(a){V("itemWasSelected",a),s.value="",t()}return(a,r)=>(l(),o(g,null,[e("div",null,[W(e("input",{id:"search-box","onUpdate:modelValue":r[0]||(r[0]=n=>s.value=n),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[q,s.value]]),r[3]||(r[3]=e("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),e("div",Q,[w.value?(l(),o("div",X,[e("div",null,[v.value.users.length>0&&x.filterToDataSets.includes("users")?(l(),o("div",Y,[r[5]||(r[5]=e("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.users,n=>(l(),o("div",null,[e("a",{href:"#",onClick:r[1]||(r[1]=C(b=>f(a.voucher),["prevent"])),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",Z,[e("div",{innerHTML:u(n.name)},null,8,ee),e("div",{innerHTML:u(n.email)},null,8,te)]),r[4]||(r[4]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):i("",!0),v.value.teams.length>0&&x.filterToDataSets.includes("teams")?(l(),o("div",se,[r[7]||(r[7]=e("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.teams,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ae,[e("div",{innerHTML:u(n.name)},null,8,oe)]),r[6]||(r[6]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,le)]))),256))])])):i("",!0),v.value.voucherSets.length>0&&x.filterToDataSets.includes("voucherSets")?(l(),o("div",re,[r[9]||(r[9]=e("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.voucherSets,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ie,[e("div",{innerHTML:u(n.id)},null,8,de)]),r[8]||(r[8]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ne)]))),256))])])):i("",!0),v.value.vouchers.length>0&&x.filterToDataSets.includes("vouchers")?(l(),o("div",ue,[r[11]||(r[11]=e("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.vouchers,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ce,[e("div",{innerHTML:u(n.id)},null,8,me),e("div",he,[e("div",{innerHTML:u("("+n.voucher_short_code+")")},null,8,_e)])]),r[10]||(r[10]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ve)]))),256))])])):i("",!0)]),y.value?(l(),o("div",fe,[e("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:r[2]||(r[2]=n=>y.value=!1)}),e("div",pe,[e("div",xe,'No Search Results for "'+d(s.value)+'"',1)])])):i("",!0)])):i("",!0)])],64))}},ge={class:"card"},be={key:0,class:"font-bold text-red-500 text-sm"},we={class:"card"},ke={class:"card-header"},$e={key:0,class:"text-red-500 text-xs font-bold"},Te={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},Se={class:"font-bold text-3xl"},Me={class:"font-bold text-3xl"},Ce={class:"font-bold text-3xl"},Le={class:"font-bold text-3xl"},Ne={key:0},Ve={class:"font-bold text-3xl"},je={class:"text-xs"},Ae={key:1},Be={class:"font-bold text-3xl"},He={class:"text-xs"},De={class:"card"},Ee={key:0},Fe={key:1,class:"text-xs mt-2"},Pe={class:"card"},Re={key:0},We={class:"card"},qe={class:"card-header flex justify-between items-center"},Ue={class:"flex justify-end"},ze={key:0},Ie={key:1},Oe={key:0},Ge={key:1},Je={class:"border-b py-2 flex justify-between items-center"},Ke={class:"flex justify-end gap-4 items-center"},Qe={key:0},Xe={class:"card"},Ye={key:0},Ze={class:"flex justify-between items-center py-4"},et={class:"text-xs"},tt={class:"flex items-center gap-x-2"},st={class:"text-xs text-right"},lt={key:0},at={class:"flex justify-end"},ot={class:"card"},yt={__name:"VoucherSet",props:{id:{required:!0}},setup(N){p.extend(G),p.extend(J);const T=N,x=k(!1),s=k({});U(()=>{y()});function v(){x.value=!0}function V(){x.value=!1}function w(u){L.fire({icon:"warning",title:"Add "+u.name+" as merchant for this voucher set?",html:"
      Note that the selected team must be a merchant of the voucher set's service team.
      ",showCancelButton:!0,confirmButtonText:"Add please!"}).then(t=>{if(t.isConfirmed){let f={voucher_set_id:s.value.id,merchant_team_id:u.id};axios.post("/admin/voucher-set-merchant-teams",f).then(a=>{y()}).catch(a=>{L.fire({icon:"error",title:"Oops..",text:a.response.data.meta.message})})}})}function y(){axios.get("/admin/voucher-sets/"+T.id+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam,voucherSetMerchantTeamApprovalRequests.merchantUser,voucherSetMerchantTeamApprovalRequests.merchantTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}function j(u){L.fire({icon:"warning",title:"Force-remove Merchant?",html:'
      Be careful here. This removes this merchant from involvement in this voucher set, and deletes all previous merchant approval requests, regardless of previous state.
      Any emails sent to this merchant previously requesting involvement will not work, as the approval request will have been revoked. This merchant team will not be able to redeem vouchers for this set; they may continue to redeem vouchers for other sets they are involved in.
      ',showCancelButton:!0,confirmButtonText:"Remove please!"}).then(t=>{t.isConfirmed&&axios.delete("/admin/voucher-set-merchant-teams/"+u.id).then(f=>{y()}).catch(f=>{console.log(f)})})}return(u,t)=>(l(),o(g,null,[h(m(z),{title:"Voucher set"}),h(R,null,{header:_(()=>[h(I)]),default:_(()=>{var f;return[e("div",ge,[e("h2",null,d(T.id),1),s.value.is_test?(l(),o("div",be," Test voucher set ")):i("",!0)]),e("div",we,[e("div",ke,[t[2]||(t[2]=c(" Voucher set details ")),s.value.voucher_generation_finished_at?i("",!0):(l(),o("span",$e,"Vouchers not generated yet."))]),e("div",Te,[e("div",null,[e("div",Se," $"+d(s.value.total_set_value/100),1),t[3]||(t[3]=c(" Total set value "))]),e("div",null,[e("div",Me," $"+d(s.value.total_set_value_remaining/100),1),t[4]||(t[4]=c(" Total remaining value "))]),e("div",null,[e("div",Ce,d(s.value.num_vouchers),1),t[5]||(t[5]=c(" # Vouchers "))]),e("div",null,[e("div",Le,d(s.value.num_voucher_redemptions),1),t[6]||(t[6]=c(" # Redemptions "))]),s.value.last_redemption_at?(l(),o("div",Ne,[t[7]||(t[7]=e("div",null," Last redeemed ",-1)),e("div",Ve,d(m(p).utc(s.value.last_redemption_at).fromNow()),1),e("div",je," ("+d(m(p)(s.value.last_redemption_at))+") ",1)])):i("",!0),s.value.expires_at?(l(),o("div",Ae,[t[8]||(t[8]=e("div",null," Expires ",-1)),e("div",Be,d(m(p).utc(s.value.expires_at).fromNow()),1),e("div",He," ("+d(m(p)(s.value.expires_at))+") ",1)])):i("",!0)])]),e("div",De,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(l(),o("div",Ee,[h(m(M),{href:u.route("admin.team",{id:s.value.created_by_team_id})},{default:_(()=>[c(d(s.value.created_by_team.name),1)]),_:1},8,["href"])])):i("",!0),s.value.created_at?(l(),o("div",Fe," Created at: "+d(m(p).utc(s.value.created_at).fromNow())+" ("+d(m(p)(s.value.created_at))+") ",1)):i("",!0)]),e("div",Pe,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(l(),o("div",Re,[h(m(M),{href:u.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:_(()=>[c(d(s.value.allocated_to_service_team.name),1)]),_:1},8,["href"])])):i("",!0)]),e("div",We,[e("div",qe,[t[13]||(t[13]=e("div",null," Merchant teams ",-1)),e("div",Ue,[x.value?(l(),o("div",Ie,[h(B,{onClick:t[1]||(t[1]=a=>V()),class:"ms-4"},{default:_(()=>t[12]||(t[12]=[c(" Cancel ")])),_:1})])):(l(),o("div",ze,[h(B,{onClick:t[0]||(t[0]=a=>v()),class:"ms-4"},{default:_(()=>t[11]||(t[11]=[c(" Add Merchant Team ")])),_:1})]))])]),x.value?(l(),o("div",Oe,[t[14]||(t[14]=e("div",{class:"py-2 text-xs"},"Select merchant team...",-1)),h(ye,{"filter-to-data-sets":"teams",onItemWasSelected:w})])):i("",!0),s.value.voucher_set_merchant_teams?(l(),o("div",Ge,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_teams,a=>(l(),o("div",null,[e("div",Je,[h(m(M),{href:u.route("admin.team",{id:a.merchant_team_id})},{default:_(()=>{var r;return[c(d(((r=a.merchant_team)==null?void 0:r.name)??"Merchant team"),1)]}),_:2},1032,["href"]),e("div",Ke,[a.voucher_set_merchant_team_approval_request_id?(l(),o("div",Qe,t[15]||(t[15]=[e("div",{class:"text-xs"}," Approved. ",-1)]))):i("",!0),h(E,{onClick:r=>j(a)},{default:_(()=>t[16]||(t[16]=[c(" Force Remove? ")])),_:2},1032,["onClick"])])])]))),256))])):i("",!0)]),e("div",Xe,[t[21]||(t[21]=e("div",{class:"card-header"},[e("div",null," Merchant team approval requests ")],-1)),t[22]||(t[22]=e("div",{class:"text-xs"}," We only need one user from any merchant team member (per team) to approve that team's participation as merchants. ",-1)),(f=s.value.voucher_set_merchant_team_approval_requests)!=null&&f.length?(l(),o("div",Ye,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_team_approval_requests,a=>{var r;return l(),o("div",null,[e("div",Ze,[e("div",null,[e("div",null,[h(m(M),{class:"font-bold",href:"/admin/team/"+a.merchant_team_id},{default:_(()=>{var n;return[c(d((n=a.merchant_team)==null?void 0:n.name),1)]}),_:2},1032,["href"]),t[17]||(t[17]=c(" | ")),h(m(M),{href:"/admin/user/"+a.merchant_user_id},{default:_(()=>{var n;return[c(d((n=a.merchant_user)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("div",et,d((r=a.merchant_user)==null?void 0:r.email),1)]),e("div",null,[e("div",tt,[e("div",st,[e("div",null," Created: "+d(m(p).utc(a.created_at).fromNow()),1),a.approval_status_last_updated_at?(l(),o("div",lt," Last actioned: "+d(m(p).utc(a.approval_status_last_updated_at).fromNow()),1)):i("",!0)]),e("div",at,[a.approval_status==="ready"?(l(),A(O,{key:0,class:"opacity-40"},{default:_(()=>t[18]||(t[18]=[c(" Ready ")])),_:1})):i("",!0),a.approval_status==="approved"?(l(),A(B,{key:1},{default:_(()=>t[19]||(t[19]=[c(" Approved ")])),_:1})):i("",!0),a.approval_status==="rejected"?(l(),A(E,{key:2},{default:_(()=>t[20]||(t[20]=[c(" Rejected ")])),_:1})):i("",!0)])])])])])}),256))])):i("",!0)]),e("div",ot,[t[23]||(t[23]=e("div",{class:"card-header"}," Vouchers ",-1)),h(K,{"voucher-set-id":T.id},null,8,["voucher-set-id"])]),t[24]||(t[24]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{yt as default}; diff --git a/public/build/assets/VoucherSetMerchantTeamApproval-CrNhLJwz.js b/public/build/assets/VoucherSetMerchantTeamApproval-D5dd_xmO.js similarity index 86% rename from public/build/assets/VoucherSetMerchantTeamApproval-CrNhLJwz.js rename to public/build/assets/VoucherSetMerchantTeamApproval-D5dd_xmO.js index c261824..c16df5d 100644 --- a/public/build/assets/VoucherSetMerchantTeamApproval-CrNhLJwz.js +++ b/public/build/assets/VoucherSetMerchantTeamApproval-D5dd_xmO.js @@ -1 +1 @@ -import{r as h,o as V,c as s,a as i,u as _,w as u,F as A,Q as B,b as r,Z as R,e as v,t as l,d as a,f as c,n as g}from"./app-CblTTgyL.js";import{_ as j,S as w}from"./AuthenticatedLayout-CFkkM4Xw.js";import{P as q}from"./PrimaryButton-lhUrXoRs.js";import{_ as k}from"./SecondaryButton-B0hUOCHS.js";import{d as p}from"./dayjs.min-DpVcq2gO.js";import{r as I}from"./relativeTime-ByhsTu5L.js";import{u as M}from"./utc-CM4OPsp5.js";import"./ApplicationLogo-ByNwEwX1.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},F={key:1},L={key:2,class:"pb-4"},O={key:0,class:"py-8"},Y={key:1,class:"py-4"},z={class:"text-xs capitalize"},Z={key:2},G={key:0,class:"px-2 text-green-500"},H={key:1,class:"px-2 text-red-500"},oe={__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 d={approval_status:o.value?"approved":"rejected"};axios.put("/my-team-vsmtar/"+m.approvalRequestId,d).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,[i(_(R),{title:"Dashboard"}),i(j,null,{header:u(()=>e[3]||(e[3]=[v(" Voucher set approval ")])),default:u(()=>[!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)):c("",!0),t.value.voucher_set&&t.value.voucher_set.allocated_to_service_team?(r(),s("div",F," Service team name: "+l(t.value.voucher_set.allocated_to_service_team.name),1)):c("",!0),t.value.voucher_set?(r(),s("div",L," Voucher set total value: $"+l((t.value.voucher_set.total_set_value/100).toFixed(2)),1)):c("",!0)]),t.value.merchant_team?(r(),s("div",O," 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)):c("",!0),t.value.approval_status!=="ready"?(r(),s("div",Y,[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",z,l(t.value.approval_status)+" at ("+l(_(p)(t.value.approval_status_last_updated_at))+") ",1)])):(r(),s("div",Z,[i(k,{onClick:e[0]||(e[0]=d=>o.value=!1),class:g(["mr-2",{"opacity-50":o.value}])},{default:u(()=>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"]),i(k,{onClick:e[1]||(e[1]=d=>o.value=!0),class:g(["ml-2",{"opacity-50":!o.value}])},{default:u(()=>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,[i(q,{onClick:e[2]||(e[2]=d=>b()),class:"mt-4"},{default:u(()=>[e[7]||(e[7]=v(" Selected: ")),o.value?(r(),s("span",G,"APPROVED")):(r(),s("span",H,"REJECTED")),e[8]||(e[8]=v(" > Click Here To Save "))]),_:1})])]))])]))]),_:1})],64))}};export{oe as default}; +import{r as h,o as V,c as s,a as i,u as _,w as u,F as A,m as B,b as r,d as R,f as v,t as l,e as a,g as c,n as g}from"./app-JIuq7t-B.js";import{_ as j,S as w}from"./AuthenticatedLayout-hK9Fu3Th.js";import{P as q}from"./PrimaryButton-BXNSUttb.js";import{_ as k}from"./SecondaryButton-DKtpCAKj.js";import{d as p}from"./dayjs.min-CT9z215E.js";import{r as I}from"./relativeTime-B6HHAsX1.js";import{u as M}from"./utc-CHR93Tx7.js";import"./ApplicationLogo-Bw-pd1Lv.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},F={key:1},L={key:2,class:"pb-4"},O={key:0,class:"py-8"},Y={key:1,class:"py-4"},z={class:"text-xs capitalize"},G={key:2},H={key:0,class:"px-2 text-green-500"},J={key:1,class:"px-2 text-red-500"},oe={__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 d={approval_status:o.value?"approved":"rejected"};axios.put("/my-team-vsmtar/"+m.approvalRequestId,d).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,[i(_(R),{title:"Dashboard"}),i(j,null,{header:u(()=>e[3]||(e[3]=[v(" Voucher set approval ")])),default:u(()=>[!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)):c("",!0),t.value.voucher_set&&t.value.voucher_set.allocated_to_service_team?(r(),s("div",F," Service team name: "+l(t.value.voucher_set.allocated_to_service_team.name),1)):c("",!0),t.value.voucher_set?(r(),s("div",L," Voucher set total value: $"+l((t.value.voucher_set.total_set_value/100).toFixed(2)),1)):c("",!0)]),t.value.merchant_team?(r(),s("div",O," 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)):c("",!0),t.value.approval_status!=="ready"?(r(),s("div",Y,[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",z,l(t.value.approval_status)+" at ("+l(_(p)(t.value.approval_status_last_updated_at))+") ",1)])):(r(),s("div",G,[i(k,{onClick:e[0]||(e[0]=d=>o.value=!1),class:g(["mr-2",{"opacity-50":o.value}])},{default:u(()=>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"]),i(k,{onClick:e[1]||(e[1]=d=>o.value=!0),class:g(["ml-2",{"opacity-50":!o.value}])},{default:u(()=>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,[i(q,{onClick:e[2]||(e[2]=d=>b()),class:"mt-4"},{default:u(()=>[e[7]||(e[7]=v(" Selected: ")),o.value?(r(),s("span",H,"APPROVED")):(r(),s("span",J,"REJECTED")),e[8]||(e[8]=v(" > Click Here To Save "))]),_:1})])]))])]))]),_:1})],64))}};export{oe as default}; diff --git a/public/build/assets/VoucherSetNew-DWnwgyYm.js b/public/build/assets/VoucherSetNew-DpU9MvYu.js similarity index 98% rename from public/build/assets/VoucherSetNew-DWnwgyYm.js rename to public/build/assets/VoucherSetNew-DpU9MvYu.js index e7aa80e..ceff64f 100644 --- a/public/build/assets/VoucherSetNew-DWnwgyYm.js +++ b/public/build/assets/VoucherSetNew-DpU9MvYu.js @@ -1 +1 @@ -import{S as b,_ as xe}from"./AuthenticatedLayout-CFkkM4Xw.js";import{Q as fe,r as d,o as _e,p as j,b as s,c as l,d as t,f as u,s as we,h as F,w as k,e as r,l as _,m as ge,q as C,F as h,g as w,t as a,u as Z,n as W,a as U,v as ke,Z as ye}from"./app-CblTTgyL.js";import{_ as be}from"./AdminTopNavigation-C3cfuSp_.js";import{_ as J}from"./SecondaryButton-B0hUOCHS.js";import{P as N}from"./PrimaryButton-lhUrXoRs.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const Ce={class:"py-8 space-y-8"},Me={class:"card"},Se={class:""},Te={key:0},je={class:"flex justify-start mt-8"},Ze={key:0,class:"space-y-8"},Ve={id:"testSection",class:"card"},Be={class:"card-header flex justify-between"},$e={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"},ze={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"},Fe={class:"my-8"},Ue={class:"mb-2",for:"voucherSet.is_test"},Ee={id:"serviceTeamSection",class:"card"},He={class:"card-header flex justify-between"},Le={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"},Ie={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"},qe={key:0},Ne={for:"service-team-search"},Ae={class:"my-4 flex flex-wrap gap-2"},De={key:1},Oe={id:"merchantTeamSection",class:"card"},Re={class:"card-header flex justify-between"},We={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"},Ye={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"},Ge={for:"service-team-search"},Pe={class:"my-4 flex flex-wrap gap-2"},Qe={key:0,class:"mt-8"},Ke={class:"mt-2"},Je=["onClick"],Xe={id:"fundingTeamSection",class:"card"},et={class:"card-header flex justify-between"},tt={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"},st={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"},ot={key:0},lt={for:"service-team-search"},nt={class:"my-4 flex flex-wrap gap-2"},it={key:1},rt={id:"totalValueSection",class:"card"},at={class:"card-header flex justify-between"},dt={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-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"},vt={class:"my-8"},ct={for:"voucherSet.total_set_value"},mt={class:"font-bold"},pt={id:"denominationsSection",class:"card"},ht={class:"card-header flex justify-between"},xt={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"},ft={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"},_t={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"},wt={class:"flex justify-between items-center"},gt={class:"mt-4"},kt={class:"mb-2 flex justify-start items-center border-b py-4"},yt=["onUpdate:modelValue"],bt={class:"pl-4"},Ct={class:"text-xs"},Mt=["onUpdate:modelValue","onKeyup"],St={class:"pt-6"},Tt=["onClick"],jt={class:"pt-8"},Zt={class:"text-center mx-24 p-8 rounded-lg border-4 border-gray-200"},Vt={class:"text-xs"},Bt={key:0,class:"text-xs text-red-500 mt-4"},$t={key:1,class:"text-xs text-green-500 mt-4"},zt={key:2,class:"text-xs text-gray-500 mt-4"},Ft={id:"expirationSection",class:"card"},Ut={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"},Ht={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"},Lt={class:"my-8"},It={class:"mt-4"},qt={class:"italic"},Nt={class:"mt-4"},At={key:0,class:"mt-8"},Dt={key:1,class:"text-xs italic"},Ot={id:"voucherTypeSection",class:"card"},Rt={class:"card-header flex justify-between"},Wt={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"},Yt={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"},Gt={class:"mt-4"},Pt={class:""},Qt=["value"],Kt={id:"voucherTemplateSection",class:"card"},Jt={class:"card-header flex justify-between"},Xt={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"},es={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"},ts={class:"grid gap-4 grid-cols-6 mt-8"},ss=["onClick"],os=["src"],ls={key:0,class:"text-xs italic text-center mt-1 text-green-500"},ns={key:1,class:"card"},is={class:"card-header flex justify-between"},rs={class:""},as={key:0,class:"flex text-green-500 items-center"},ds={key:1,class:"flex text-red-500 items-center"},us={class:"my-8"},vs={class:"list-disc space-y-6 pl-4"},cs={class:"font-bold"},ms={key:0,class:"font-bold"},ps={class:"font-bold"},hs={key:0,class:"font-bold"},xs={class:"font-bold"},fs={class:"font-bold"},_s={class:"font-bold"},ws={class:""},gs={key:0},ks={class:"font-bold"},ys={key:1},bs={class:""},Cs={key:0},Ms={class:"mt-2"},Ss=["src"],Ts={key:1},js={class:"flex justify-end"},Zs={key:0},Vs={key:1},Bs={__name:"VoucherSetNewComponent",setup(X){const g=fe().props,E=d(!1),V=d(!1),B=d(!1),A=d([]),H=d([]),M=d(""),x=d(""),L=d([]),I=d([]),$=d(""),m=d([]),q=d([]),S=d([]),f=d(""),T=d(""),Y=d([]),D=d({}),O=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 ee(){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&&(B.value=!0,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}),B.value=!1}).catch(e=>{b.fire({title:"Oops!",icon:"error",text:e.response.data.meta.message}),console.log(e),B.value=!1}))})}function G(){i.value.denominations.push({value:500,colloquialCurrencyUnitValue:5,number:1})}function te(n){n>-1&&i.value.denominations.splice(n,1)}function se(){M.value.length?H.value=A.value.filter(n=>n.name.toLowerCase().includes(M.value)):H.value=A.value}function P(){if($.value.length){const n=L.value.filter(e=>{var y;return(y=e.merchant_team)==null?void 0:y.name.toLowerCase().includes($.value)});I.value=n.filter(e=>!m.value.some(y=>e.merchant_team.id===y.id))}else I.value=L.value}function oe(){T.value.length?S.value=q.value.filter(n=>{var e;return(e=n.service_team)==null?void 0:e.name.toLowerCase().includes(T.value)}):S.value=q.value}function le(){axios.get("/admin/teams").then(n=>{A.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function ne(n){axios.get("/admin/team-merchant-teams?relations=merchantTeam&where[]=team_id,"+n.id).then(e=>{L.value=e.data.data.data,I.value=e.data.data.data}).catch(e=>{b.fire({icon:"error",title:"Oops!",text:e.response.data.meta.message})})}function ie(){axios.get("/admin/team-service-teams?relations=serviceTeam&where[]=team_id,"+g.auth.user.current_team_id).then(n=>{q.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 re(){axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+g.auth.user.current_team_id+"&where[]=archived_at,null").then(n=>{Y.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 ae(n){x.value=n,i.value.funded_by_team_id=n.id,H.value=[],M.value=""}function de(n){i.value.merchant_team_ids.includes(n.id)||(i.value.merchant_team_ids.push(n.id),m.value.push(n))}function ue(n){f.value=n,i.value.allocated_to_service_team_id=n.id,S.value=[],T.value="",ne(n)}function ve(n){i.value.voucher_template_id===n.id?(i.value.voucher_template_id="",D.value={}):(i.value.voucher_template_id=n.id,D.value=n)}function ce(){f.value="",i.value.allocated_to_service_team_id="",S.value=Object.assign({},q.value),m.value=[],L.value=[],i.value.merchant_team_ids=[]}function me(){V.value=!0}function Q(){let n=0;return i.value.denominations.forEach(e=>{n+=e.number*e.value}),n}function pe(n){n>-1&&m.value.splice(n,1)}function he(n){n.value=n.colloquialCurrencyUnitValue*100}return _e(()=>{le(),ie(),re(),G()}),j(m,()=>{P()},{deep:!0}),j(i,()=>{E.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,()=>{se()}),j($,()=>{P()}),j(T,()=>{oe()}),j(O,n=>{i.value.total_set_value=n*100}),(n,e)=>{var y,K;return s(),l("div",null,[t("div",Ce,[t("div",Me,[e[27]||(e[27]=t("div",{class:"card-header"}," Create A Voucher Set ",-1)),t("div",Se,[V.value?u("",!0):(s(),l("div",Te,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]=we('
      • 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",je,[V.value?u("",!0):(s(),F(J,{key:0,onClick:e[0]||(e[0]=o=>me())},{default:k(()=>e[25]||(e[25]=[r(" Get started ")])),_:1}))])])]),V.value?(s(),l("div",Ze,[t("div",Ve,[t("div",Be,[e[30]||(e[30]=r(" Is this a test voucher set? ")),i.value.is_test?(s(),l("svg",$e,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",ze,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",Fe,[t("label",Ue,[_(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),[[ge,i.value.is_test]]),e[31]||(e[31]=r(" YES - this is a test voucher set. "))])])]),t("div",Ee,[t("div",He,[e[35]||(e[35]=r(" The service team ")),f.value?(s(),l("svg",Le,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",Ie,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",De,[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=>ce())}," Remove ")):u("",!0)])):(s(),l("div",qe,[t("label",Ne,[_(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",Ae,[(s(!0),l(h,null,w(S.value,o=>(s(),F(N,{onClick:c=>ue(o.service_team)},{default:k(()=>[r(a(o.service_team.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",Oe,[t("div",Re,[e[39]||(e[39]=r(" The merchant team ")),m.value.length?(s(),l("svg",We,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",Ye,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",Ge,[_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[4]||(e[4]=o=>$.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter merchant teams..",type:"search"},null,512),[[C,$.value]])]),t("div",Pe,[(s(!0),l(h,null,w(I.value,o=>(s(),F(N,{onClick:c=>de(o.merchant_team)},{default:k(()=>[r(a(o.merchant_team.name),1)]),_:2},1032,["onClick"]))),256))])]),m.value.length?(s(),l("div",Qe,[e[40]||(e[40]=r(" Selected merchant team(s): ")),t("div",null,[(s(!0),l(h,null,w(m.value,(o,c)=>(s(),l("div",Ke,[r(a(o.name)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:R=>pe(c)}," Remove ",8,Je)]))),256))])])):u("",!0)]),t("div",Xe,[t("div",et,[e[44]||(e[44]=r(" The funding team ")),x.value?(s(),l("svg",tt,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",st,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",it,[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 ")):u("",!0)])):(s(),l("div",ot,[t("label",lt,[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",nt,[(s(!0),l(h,null,w(H.value,o=>(s(),F(N,{onClick:c=>ae(o)},{default:k(()=>[r(a(o.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",rt,[t("div",at,[e[49]||(e[49]=r(" Total value ")),i.value.total_set_value>0?(s(),l("svg",dt,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",ut,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",vt,[t("label",ct,[e[50]||(e[50]=r(" What will the total value of the voucher set be, in ")),t("span",mt,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=>O.value=o),class:"block mt-2",type:"number"},null,512),[[C,O.value]])])])]),t("div",pt,[t("div",ht,[e[55]||(e[55]=r(" Denominations ")),p()===0?(s(),l("svg",xt,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",ft,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",_t,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",wt,[t("div",gt,[t("div",null," Available to assign: "+a((i.value.total_set_value/100).toFixed(2))+" "+a((K=Z(g).auth.teamCountry)==null?void 0:K.currency_code),1),t("div",{class:W({"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 R;return s(),l("div",kt,[t("div",null,[e[56]||(e[56]=t("div",{class:"text-xs"}," Create ",-1)),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.number=z,class:"border rounded p-1",type:"number"},null,8,yt),[[C,o.number]])])]),t("div",bt,[t("div",Ct," of "+a((R=Z(g).auth.teamCountry)==null?void 0:R.currency_code),1),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.colloquialCurrencyUnitValue=z,class:"border rounded p-1",onKeyup:z=>he(o),step:"1",type:"number"},null,40,Mt),[[C,o.colloquialCurrencyUnitValue]])])]),t("div",St,[c!==0?(s(),l("button",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:z=>te(c)},e[57]||(e[57]=[t("i",{class:"fa fa-times"},null,-1),r(" Remove ")]),8,Tt)):u("",!0)])])}),256)),t("div",jt,[U(J,{onClick:e[8]||(e[8]=o=>G())},{default:k(()=>e[58]||(e[58]=[r(" Add row "),t("i",{class:"fa fa-plus"},null,-1)])),_:1})])])]),t("div",Zt,[e[59]||(e[59]=t("div",{class:"text-2xl"}," Total assigned: ",-1)),t("div",{class:W([{"text-green-500":p()>=0,"text-red-500":p()<0},"text-3xl mt-4"])},[r(a((Q()/100).toFixed(2))+" ",1),t("div",Vt," out of "+a((i.value.total_set_value/100).toFixed(2)),1)],2),p()<0?(s(),l("div",Bt," - over budget - ")):p()>0?(s(),l("div",$t,a((p()/100).toFixed(2))+" remaining ",1)):(s(),l("div",zt," Voucher fully allocated "))])])]),t("div",Ft,[t("div",Ut,[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",Ht,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",Lt,[e[64]||(e[64]=r(" When will these vouchers expire? ")),t("div",It,[t("label",qt,[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",Nt,[i.value.expires_at?(s(),l("div",At,[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",Dt," Not selecting an expiry date will mean vouchers stay valid forever. "))])])]),t("div",Ot,[t("div",Rt,[e[67]||(e[67]=r(" Type ")),i.value.voucher_set_type?(s(),l("svg",Wt,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",Yt,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",Gt,[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),[[ke,i.value.voucher_set_type]])])])]),t("div",Kt,[t("div",Jt,[e[72]||(e[72]=r(" Template ")),i.value.voucher_template_id?(s(),l("svg",Xt,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",es,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",ts,[(s(!0),l(h,null,w(Y.value,o=>(s(),l("div",null,[t("div",{class:W([{"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=>ve(o)},[t("img",{src:o.example_template_image_url,alt:"",class:"border rounded"},null,8,os)],10,ss),o.id===i.value.voucher_template_id?(s(),l("div",ls," Selected! ")):u("",!0)]))),256))])])])):u("",!0),V.value?(s(),l("div",ns,[t("div",is,[e[75]||(e[75]=r(" Review ")),t("div",rs,[E.value?(s(),l("div",as,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",ds,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[88]||(e[88]=t("div",{class:"my-8"},[t("div",null," Please review the following details for your voucher set. ")],-1)),t("div",us,[t("ul",vs,[t("li",null,[e[76]||(e[76]=r(" The voucher set is ")),t("span",cs,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",ms,a(f.value.name),1)):u("",!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(m.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(m.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",ps,a(x.value?"":" not "),1),e[78]||(e[78]=r(" been associated to funding team ")),x.value?(s(),l("span",hs,a(x.value.name),1)):u("",!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",xs,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",fs,a(o.number)+" "+a(o.number===1?"unit":"units")+" of "+a(o.colloquialCurrencyUnitValue)+" "+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",_s,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",ws,[i.value.voucher_set_type?(s(),l("div",gs,[e[82]||(e[82]=r(" Has a type of ")),t("span",ks,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",ys,[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",bs,[i.value.voucher_template_id?(s(),l("div",Cs,[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",Ms,[t("img",{src:D.value.example_template_image_url,alt:"",class:"border rounded max-h-48"},null,8,Ss)])])):(s(),l("div",Ts,[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",js,[E.value?(s(),F(N,{key:0,disabled:B.value,onClick:e[23]||(e[23]=o=>ee())},{default:k(()=>[B.value?(s(),l("div",Zs," Generating.. ")):(s(),l("div",Vs," Generate! "))]),_:1},8,["disabled"])):u("",!0)])])):u("",!0)])])}}},Is={__name:"VoucherSetNew",setup(X){return(g,E)=>(s(),l(h,null,[U(Z(ye),{title:"Vouchers"}),U(xe,null,{header:k(()=>[U(be)]),default:k(()=>[U(Bs)]),_:1})],64))}};export{Is as default}; +import{S as b,_ as xe}from"./AuthenticatedLayout-hK9Fu3Th.js";import{m as fe,r as d,o as _e,q as j,b as s,c as l,e as t,g as u,x as we,i as F,w as k,f as r,l as _,p as ge,s as C,F as h,h as w,t as a,u as Z,n as W,a as U,v as ke,d as ye}from"./app-JIuq7t-B.js";import{_ as be}from"./AdminTopNavigation-B0MqavRN.js";import{_ as J}from"./SecondaryButton-DKtpCAKj.js";import{P as N}from"./PrimaryButton-BXNSUttb.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const Ce={class:"py-8 space-y-8"},Me={class:"card"},Se={class:""},Te={key:0},je={class:"flex justify-start mt-8"},Ze={key:0,class:"space-y-8"},Ve={id:"testSection",class:"card"},Be={class:"card-header flex justify-between"},$e={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"},ze={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"},Fe={class:"my-8"},Ue={class:"mb-2",for:"voucherSet.is_test"},Ee={id:"serviceTeamSection",class:"card"},He={class:"card-header flex justify-between"},Le={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"},Ie={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"},qe={key:0},Ne={for:"service-team-search"},Ae={class:"my-4 flex flex-wrap gap-2"},De={key:1},Oe={id:"merchantTeamSection",class:"card"},Re={class:"card-header flex justify-between"},We={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"},Ye={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"},Ge={for:"service-team-search"},Pe={class:"my-4 flex flex-wrap gap-2"},Qe={key:0,class:"mt-8"},Ke={class:"mt-2"},Je=["onClick"],Xe={id:"fundingTeamSection",class:"card"},et={class:"card-header flex justify-between"},tt={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"},st={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"},ot={key:0},lt={for:"service-team-search"},nt={class:"my-4 flex flex-wrap gap-2"},it={key:1},rt={id:"totalValueSection",class:"card"},at={class:"card-header flex justify-between"},dt={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-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"},vt={class:"my-8"},ct={for:"voucherSet.total_set_value"},mt={class:"font-bold"},pt={id:"denominationsSection",class:"card"},ht={class:"card-header flex justify-between"},xt={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"},ft={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"},_t={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"},wt={class:"flex justify-between items-center"},gt={class:"mt-4"},kt={class:"mb-2 flex justify-start items-center border-b py-4"},yt=["onUpdate:modelValue"],bt={class:"pl-4"},Ct={class:"text-xs"},Mt=["onUpdate:modelValue","onKeyup"],St={class:"pt-6"},Tt=["onClick"],jt={class:"pt-8"},Zt={class:"text-center mx-24 p-8 rounded-lg border-4 border-gray-200"},Vt={class:"text-xs"},Bt={key:0,class:"text-xs text-red-500 mt-4"},$t={key:1,class:"text-xs text-green-500 mt-4"},zt={key:2,class:"text-xs text-gray-500 mt-4"},Ft={id:"expirationSection",class:"card"},Ut={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"},Ht={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"},Lt={class:"my-8"},It={class:"mt-4"},qt={class:"italic"},Nt={class:"mt-4"},At={key:0,class:"mt-8"},Dt={key:1,class:"text-xs italic"},Ot={id:"voucherTypeSection",class:"card"},Rt={class:"card-header flex justify-between"},Wt={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"},Yt={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"},Gt={class:"mt-4"},Pt={class:""},Qt=["value"],Kt={id:"voucherTemplateSection",class:"card"},Jt={class:"card-header flex justify-between"},Xt={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"},es={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"},ts={class:"grid gap-4 grid-cols-6 mt-8"},ss=["onClick"],os=["src"],ls={key:0,class:"text-xs italic text-center mt-1 text-green-500"},ns={key:1,class:"card"},is={class:"card-header flex justify-between"},rs={class:""},as={key:0,class:"flex text-green-500 items-center"},ds={key:1,class:"flex text-red-500 items-center"},us={class:"my-8"},vs={class:"list-disc space-y-6 pl-4"},cs={class:"font-bold"},ms={key:0,class:"font-bold"},ps={class:"font-bold"},hs={key:0,class:"font-bold"},xs={class:"font-bold"},fs={class:"font-bold"},_s={class:"font-bold"},ws={class:""},gs={key:0},ks={class:"font-bold"},ys={key:1},bs={class:""},Cs={key:0},Ms={class:"mt-2"},Ss=["src"],Ts={key:1},js={class:"flex justify-end"},Zs={key:0},Vs={key:1},Bs={__name:"VoucherSetNewComponent",setup(X){const g=fe().props,E=d(!1),V=d(!1),B=d(!1),A=d([]),H=d([]),M=d(""),x=d(""),L=d([]),I=d([]),$=d(""),m=d([]),q=d([]),S=d([]),f=d(""),T=d(""),Y=d([]),D=d({}),O=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 ee(){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&&(B.value=!0,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}),B.value=!1}).catch(e=>{b.fire({title:"Oops!",icon:"error",text:e.response.data.meta.message}),console.log(e),B.value=!1}))})}function G(){i.value.denominations.push({value:500,colloquialCurrencyUnitValue:5,number:1})}function te(n){n>-1&&i.value.denominations.splice(n,1)}function se(){M.value.length?H.value=A.value.filter(n=>n.name.toLowerCase().includes(M.value)):H.value=A.value}function P(){if($.value.length){const n=L.value.filter(e=>{var y;return(y=e.merchant_team)==null?void 0:y.name.toLowerCase().includes($.value)});I.value=n.filter(e=>!m.value.some(y=>e.merchant_team.id===y.id))}else I.value=L.value}function oe(){T.value.length?S.value=q.value.filter(n=>{var e;return(e=n.service_team)==null?void 0:e.name.toLowerCase().includes(T.value)}):S.value=q.value}function le(){axios.get("/admin/teams").then(n=>{A.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function ne(n){axios.get("/admin/team-merchant-teams?relations=merchantTeam&where[]=team_id,"+n.id).then(e=>{L.value=e.data.data.data,I.value=e.data.data.data}).catch(e=>{b.fire({icon:"error",title:"Oops!",text:e.response.data.meta.message})})}function ie(){axios.get("/admin/team-service-teams?relations=serviceTeam&where[]=team_id,"+g.auth.user.current_team_id).then(n=>{q.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 re(){axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+g.auth.user.current_team_id+"&where[]=archived_at,null").then(n=>{Y.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 ae(n){x.value=n,i.value.funded_by_team_id=n.id,H.value=[],M.value=""}function de(n){i.value.merchant_team_ids.includes(n.id)||(i.value.merchant_team_ids.push(n.id),m.value.push(n))}function ue(n){f.value=n,i.value.allocated_to_service_team_id=n.id,S.value=[],T.value="",ne(n)}function ve(n){i.value.voucher_template_id===n.id?(i.value.voucher_template_id="",D.value={}):(i.value.voucher_template_id=n.id,D.value=n)}function ce(){f.value="",i.value.allocated_to_service_team_id="",S.value=Object.assign({},q.value),m.value=[],L.value=[],i.value.merchant_team_ids=[]}function me(){V.value=!0}function Q(){let n=0;return i.value.denominations.forEach(e=>{n+=e.number*e.value}),n}function pe(n){n>-1&&m.value.splice(n,1)}function he(n){n.value=n.colloquialCurrencyUnitValue*100}return _e(()=>{le(),ie(),re(),G()}),j(m,()=>{P()},{deep:!0}),j(i,()=>{E.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,()=>{se()}),j($,()=>{P()}),j(T,()=>{oe()}),j(O,n=>{i.value.total_set_value=n*100}),(n,e)=>{var y,K;return s(),l("div",null,[t("div",Ce,[t("div",Me,[e[27]||(e[27]=t("div",{class:"card-header"}," Create A Voucher Set ",-1)),t("div",Se,[V.value?u("",!0):(s(),l("div",Te,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]=we('
      • 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",je,[V.value?u("",!0):(s(),F(J,{key:0,onClick:e[0]||(e[0]=o=>me())},{default:k(()=>e[25]||(e[25]=[r(" Get started ")])),_:1}))])])]),V.value?(s(),l("div",Ze,[t("div",Ve,[t("div",Be,[e[30]||(e[30]=r(" Is this a test voucher set? ")),i.value.is_test?(s(),l("svg",$e,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",ze,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",Fe,[t("label",Ue,[_(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),[[ge,i.value.is_test]]),e[31]||(e[31]=r(" YES - this is a test voucher set. "))])])]),t("div",Ee,[t("div",He,[e[35]||(e[35]=r(" The service team ")),f.value?(s(),l("svg",Le,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",Ie,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",De,[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=>ce())}," Remove ")):u("",!0)])):(s(),l("div",qe,[t("label",Ne,[_(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",Ae,[(s(!0),l(h,null,w(S.value,o=>(s(),F(N,{onClick:c=>ue(o.service_team)},{default:k(()=>[r(a(o.service_team.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",Oe,[t("div",Re,[e[39]||(e[39]=r(" The merchant team ")),m.value.length?(s(),l("svg",We,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",Ye,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",Ge,[_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[4]||(e[4]=o=>$.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter merchant teams..",type:"search"},null,512),[[C,$.value]])]),t("div",Pe,[(s(!0),l(h,null,w(I.value,o=>(s(),F(N,{onClick:c=>de(o.merchant_team)},{default:k(()=>[r(a(o.merchant_team.name),1)]),_:2},1032,["onClick"]))),256))])]),m.value.length?(s(),l("div",Qe,[e[40]||(e[40]=r(" Selected merchant team(s): ")),t("div",null,[(s(!0),l(h,null,w(m.value,(o,c)=>(s(),l("div",Ke,[r(a(o.name)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:R=>pe(c)}," Remove ",8,Je)]))),256))])])):u("",!0)]),t("div",Xe,[t("div",et,[e[44]||(e[44]=r(" The funding team ")),x.value?(s(),l("svg",tt,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",st,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",it,[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 ")):u("",!0)])):(s(),l("div",ot,[t("label",lt,[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",nt,[(s(!0),l(h,null,w(H.value,o=>(s(),F(N,{onClick:c=>ae(o)},{default:k(()=>[r(a(o.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",rt,[t("div",at,[e[49]||(e[49]=r(" Total value ")),i.value.total_set_value>0?(s(),l("svg",dt,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",ut,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",vt,[t("label",ct,[e[50]||(e[50]=r(" What will the total value of the voucher set be, in ")),t("span",mt,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=>O.value=o),class:"block mt-2",type:"number"},null,512),[[C,O.value]])])])]),t("div",pt,[t("div",ht,[e[55]||(e[55]=r(" Denominations ")),p()===0?(s(),l("svg",xt,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",ft,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",_t,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",wt,[t("div",gt,[t("div",null," Available to assign: "+a((i.value.total_set_value/100).toFixed(2))+" "+a((K=Z(g).auth.teamCountry)==null?void 0:K.currency_code),1),t("div",{class:W({"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 R;return s(),l("div",kt,[t("div",null,[e[56]||(e[56]=t("div",{class:"text-xs"}," Create ",-1)),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.number=z,class:"border rounded p-1",type:"number"},null,8,yt),[[C,o.number]])])]),t("div",bt,[t("div",Ct," of "+a((R=Z(g).auth.teamCountry)==null?void 0:R.currency_code),1),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.colloquialCurrencyUnitValue=z,class:"border rounded p-1",onKeyup:z=>he(o),step:"1",type:"number"},null,40,Mt),[[C,o.colloquialCurrencyUnitValue]])])]),t("div",St,[c!==0?(s(),l("button",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:z=>te(c)},e[57]||(e[57]=[t("i",{class:"fa fa-times"},null,-1),r(" Remove ")]),8,Tt)):u("",!0)])])}),256)),t("div",jt,[U(J,{onClick:e[8]||(e[8]=o=>G())},{default:k(()=>e[58]||(e[58]=[r(" Add row "),t("i",{class:"fa fa-plus"},null,-1)])),_:1})])])]),t("div",Zt,[e[59]||(e[59]=t("div",{class:"text-2xl"}," Total assigned: ",-1)),t("div",{class:W([{"text-green-500":p()>=0,"text-red-500":p()<0},"text-3xl mt-4"])},[r(a((Q()/100).toFixed(2))+" ",1),t("div",Vt," out of "+a((i.value.total_set_value/100).toFixed(2)),1)],2),p()<0?(s(),l("div",Bt," - over budget - ")):p()>0?(s(),l("div",$t,a((p()/100).toFixed(2))+" remaining ",1)):(s(),l("div",zt," Voucher fully allocated "))])])]),t("div",Ft,[t("div",Ut,[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",Ht,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",Lt,[e[64]||(e[64]=r(" When will these vouchers expire? ")),t("div",It,[t("label",qt,[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",Nt,[i.value.expires_at?(s(),l("div",At,[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",Dt," Not selecting an expiry date will mean vouchers stay valid forever. "))])])]),t("div",Ot,[t("div",Rt,[e[67]||(e[67]=r(" Type ")),i.value.voucher_set_type?(s(),l("svg",Wt,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",Yt,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",Gt,[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),[[ke,i.value.voucher_set_type]])])])]),t("div",Kt,[t("div",Jt,[e[72]||(e[72]=r(" Template ")),i.value.voucher_template_id?(s(),l("svg",Xt,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",es,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",ts,[(s(!0),l(h,null,w(Y.value,o=>(s(),l("div",null,[t("div",{class:W([{"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=>ve(o)},[t("img",{src:o.example_template_image_url,alt:"",class:"border rounded"},null,8,os)],10,ss),o.id===i.value.voucher_template_id?(s(),l("div",ls," Selected! ")):u("",!0)]))),256))])])])):u("",!0),V.value?(s(),l("div",ns,[t("div",is,[e[75]||(e[75]=r(" Review ")),t("div",rs,[E.value?(s(),l("div",as,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",ds,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[88]||(e[88]=t("div",{class:"my-8"},[t("div",null," Please review the following details for your voucher set. ")],-1)),t("div",us,[t("ul",vs,[t("li",null,[e[76]||(e[76]=r(" The voucher set is ")),t("span",cs,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",ms,a(f.value.name),1)):u("",!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(m.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(m.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",ps,a(x.value?"":" not "),1),e[78]||(e[78]=r(" been associated to funding team ")),x.value?(s(),l("span",hs,a(x.value.name),1)):u("",!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",xs,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",fs,a(o.number)+" "+a(o.number===1?"unit":"units")+" of "+a(o.colloquialCurrencyUnitValue)+" "+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",_s,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",ws,[i.value.voucher_set_type?(s(),l("div",gs,[e[82]||(e[82]=r(" Has a type of ")),t("span",ks,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",ys,[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",bs,[i.value.voucher_template_id?(s(),l("div",Cs,[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",Ms,[t("img",{src:D.value.example_template_image_url,alt:"",class:"border rounded max-h-48"},null,8,Ss)])])):(s(),l("div",Ts,[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",js,[E.value?(s(),F(N,{key:0,disabled:B.value,onClick:e[23]||(e[23]=o=>ee())},{default:k(()=>[B.value?(s(),l("div",Zs," Generating.. ")):(s(),l("div",Vs," Generate! "))]),_:1},8,["disabled"])):u("",!0)])])):u("",!0)])])}}},Is={__name:"VoucherSetNew",setup(X){return(g,E)=>(s(),l(h,null,[U(Z(ye),{title:"Vouchers"}),U(xe,null,{header:k(()=>[U(be)]),default:k(()=>[U(Bs)]),_:1})],64))}};export{Is as default}; diff --git a/public/build/assets/VoucherSets-B_hIJD--.js b/public/build/assets/VoucherSets-B_hIJD--.js new file mode 100644 index 0000000..c60a98f --- /dev/null +++ b/public/build/assets/VoucherSets-B_hIJD--.js @@ -0,0 +1 @@ +import{_ as a}from"./AuthenticatedLayout-hK9Fu3Th.js";import{c as i,a as e,u as m,w as s,F as n,b as u,d,e as t,f as l}from"./app-JIuq7t-B.js";import{_}from"./AdminTopNavigation-B0MqavRN.js";import{_ as c}from"./VoucherSetsComponent-BlhvQ99p.js";import{P as f}from"./PrimaryButton-BXNSUttb.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-d3Iyzo79.js";import"./SecondaryButton-DKtpCAKj.js";import"./dayjs.min-CT9z215E.js";import"./relativeTime-B6HHAsX1.js";import"./utc-CHR93Tx7.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(d),{title:"Voucher sets"}),e(a,null,{header:s(()=>[e(_)]),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]=[l(" Create voucher set ")])),_:1})],8,v)])]),e(c)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/VoucherSets-Drurrlm8.js b/public/build/assets/VoucherSets-Drurrlm8.js deleted file mode 100644 index b281c1b..0000000 --- a/public/build/assets/VoucherSets-Drurrlm8.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as c}from"./AdminTopNavigation-C3cfuSp_.js";import{_ as d}from"./VoucherSetsComponent-DLemr3_-.js";import{P as f}from"./PrimaryButton-lhUrXoRs.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-CMgspZ9V.js";import"./SecondaryButton-B0hUOCHS.js";import"./dayjs.min-DpVcq2gO.js";import"./relativeTime-ByhsTu5L.js";import"./utc-CM4OPsp5.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-BlhvQ99p.js b/public/build/assets/VoucherSetsComponent-BlhvQ99p.js new file mode 100644 index 0000000..64950f1 --- /dev/null +++ b/public/build/assets/VoucherSetsComponent-BlhvQ99p.js @@ -0,0 +1 @@ +import{r as v,o as w,b as l,c as r,e,F as k,h as V,a as i,w as c,f as m,t as a,u as _,P as u,g as B}from"./app-JIuq7t-B.js";import{P as T}from"./PaginatorComponent-d3Iyzo79.js";import{d as x}from"./dayjs.min-CT9z215E.js";import{r as C}from"./relativeTime-B6HHAsX1.js";import{u as N}from"./utc-CHR93Tx7.js";const q={key:0},I={class:"w-full text-xs"},P={class:"hover:bg-gray-100 border-b"},j={class:"py-1"},F={class:"text-right"},D={key:0},A={key:1},Y={class:"text-right"},E={key:0},L={key:1},M={class:"flex justify-end"},R={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},O={__name:"VoucherSetsComponent",props:{teamId:{required:!1,default:null},filterVoucherSets:{required:!1,default:null}},setup(b){x.extend(C),x.extend(N);const d=b,f=v(50),o=v({});w(()=>{d.teamId&&(f.value=10),h()});function h(p=1){let s="";d.teamId&&d.filterVoucherSets&&(s="&where[]="+d.filterVoucherSets+","+d.teamId),axios.get("/admin/voucher-sets?cached=false&page="+p+"&limit="+f.value+s+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam,currencyCountry").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}return(p,s)=>o.value.data&&o.value.data.length?(l(),r("div",q,[e("table",I,[s[1]||(s[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",null,"Approved"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remainaing"),e("td")])],-1)),e("tbody",null,[(l(!0),r(k,null,V(o.value.data,t=>{var g,y;return l(),r("tr",P,[e("td",j,[i(_(u),{href:"/admin/voucher-set/"+t.id},{default:c(()=>[m(" #"+a(t.id),1)]),_:2},1032,["href"])]),e("td",null,a(t.is_test?"Yes":""),1),e("td",null,[i(_(u),{href:"/admin/team/"+t.created_by_team_id},{default:c(()=>{var n;return[m(a((n=t.created_by_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,[i(_(u),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:c(()=>{var n;return[m(a((n=t.allocated_to_service_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,a(t.merchant_approval_request_id?"Yes":"--"),1),e("td",F,[t.merchant_approval_request_id?(l(),r("div",D,a(Number(t.total_set_value/100).toFixed(2))+" "+a((g=t.currency_country)==null?void 0:g.currency_code),1)):(l(),r("div",A," -- "))]),e("td",Y,[t.merchant_approval_request_id?(l(),r("div",E,a(Number(t.total_set_value_remaining/100).toFixed(2))+" "+a((y=t.total_set_value_remaining)==null?void 0:y.currency_code),1)):(l(),r("div",L," -- "))]),e("td",M,[i(_(u),{class:"secondaryButton",href:"/admin/voucher-set/"+t.id},{default:c(()=>s[0]||(s[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[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",R,[e("div",$,[i(T,{onSetDataPage:h,"pagination-data":o.value},null,8,["pagination-data"])])])])):B("",!0)}};export{O as _}; diff --git a/public/build/assets/VoucherSetsComponent-DLemr3_-.js b/public/build/assets/VoucherSetsComponent-DLemr3_-.js deleted file mode 100644 index 3d83453..0000000 --- a/public/build/assets/VoucherSetsComponent-DLemr3_-.js +++ /dev/null @@ -1 +0,0 @@ -import{r as v,o as w,b as l,c as d,d as e,F as k,g as V,a as i,w as c,e as m,t as a,u as _,i as u,f as B}from"./app-CblTTgyL.js";import{P as T}from"./PaginatorComponent-CMgspZ9V.js";import{d as x}from"./dayjs.min-DpVcq2gO.js";import{r as C}from"./relativeTime-ByhsTu5L.js";import{u as N}from"./utc-CM4OPsp5.js";const q={key:0},I={class:"w-full text-xs"},j={class:"hover:bg-gray-100 border-b"},F={class:"py-1"},D={class:"text-right"},P={key:0},A={key:1},Y={class:"text-right"},E={key:0},L={key:1},M={class:"flex justify-end"},R={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},O={__name:"VoucherSetsComponent",props:{teamId:{required:!1,default:null},filterVoucherSets:{required:!1,default:null}},setup(b){x.extend(C),x.extend(N);const r=b,f=v(50),o=v({});w(()=>{r.teamId&&(f.value=10),h()});function h(p=1){let s="";r.teamId&&r.filterVoucherSets&&(s="&where[]="+r.filterVoucherSets+","+r.teamId),axios.get("/admin/voucher-sets?cached=false&page="+p+"&limit="+f.value+s+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam,currencyCountry").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}return(p,s)=>o.value.data&&o.value.data.length?(l(),d("div",q,[e("table",I,[s[1]||(s[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",null,"Approved"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remainaing"),e("td")])],-1)),e("tbody",null,[(l(!0),d(k,null,V(o.value.data,t=>{var g,y;return l(),d("tr",j,[e("td",F,[i(_(u),{href:"/admin/voucher-set/"+t.id},{default:c(()=>[m(" #"+a(t.id),1)]),_:2},1032,["href"])]),e("td",null,a(t.is_test?"Yes":""),1),e("td",null,[i(_(u),{href:"/admin/team/"+t.created_by_team_id},{default:c(()=>{var n;return[m(a((n=t.created_by_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,[i(_(u),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:c(()=>{var n;return[m(a((n=t.allocated_to_service_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,a(t.merchant_approval_request_id?"Yes":"--"),1),e("td",D,[t.merchant_approval_request_id?(l(),d("div",P,a(Number(t.total_set_value/100).toFixed(2))+" "+a((g=t.currency_country)==null?void 0:g.currency_code),1)):(l(),d("div",A," -- "))]),e("td",Y,[t.merchant_approval_request_id?(l(),d("div",E,a(Number(t.total_set_value_remaining/100).toFixed(2))+" "+a((y=t.total_set_value_remaining)==null?void 0:y.currency_code),1)):(l(),d("div",L," -- "))]),e("td",M,[i(_(u),{class:"secondaryButton",href:"/admin/voucher-set/"+t.id},{default:c(()=>s[0]||(s[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[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",R,[e("div",$,[i(T,{onSetDataPage:h,"pagination-data":o.value},null,8,["pagination-data"])])])])):B("",!0)}};export{O as _}; diff --git a/public/build/assets/VoucherTemplateEdit-DmwU3T9Q.js b/public/build/assets/VoucherTemplateEdit-DmwU3T9Q.js deleted file mode 100644 index 67f5297..0000000 --- a/public/build/assets/VoucherTemplateEdit-DmwU3T9Q.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as n}from"./AdminTopNavigation-C3cfuSp_.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./TextInput-BT-7frEH.js";import"./InputLabel-CEnHGhsA.js";import"./SecondaryButton-B0hUOCHS.js";import"./DangerButton-BXvpand6.js";import"./Checkbox-B4dYSFbU.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-DtPZSOue.js b/public/build/assets/VoucherTemplateEdit-DtPZSOue.js new file mode 100644 index 0000000..86a5e91 --- /dev/null +++ b/public/build/assets/VoucherTemplateEdit-DtPZSOue.js @@ -0,0 +1 @@ +import{_ as a}from"./AuthenticatedLayout-hK9Fu3Th.js";import{c as m,a as t,u as i,w as r,F as p,b as s,d as c}from"./app-JIuq7t-B.js";import{_ as n}from"./AdminTopNavigation-B0MqavRN.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-BBFGzp1r.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./TextInput-Cj2z7GCb.js";import"./InputLabel-BBoqvM3u.js";import"./SecondaryButton-DKtpCAKj.js";import"./DangerButton-C4Z82YQr.js";import"./Checkbox-BDcuv2X-.js";const N={__name:"VoucherTemplateEdit",props:{id:{type:Number,required:!0}},setup(e){const o=e;return(u,l)=>(s(),m(p,null,[t(i(c),{title:"Edit Voucher Template"}),t(a,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-CYEl8NyP.js b/public/build/assets/VoucherTemplateNew-CYEl8NyP.js deleted file mode 100644 index 1eec2b8..0000000 --- a/public/build/assets/VoucherTemplateNew-CYEl8NyP.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_}from"./AdminTopNavigation-C3cfuSp_.js";import{_ as s}from"./AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./TextInput-BT-7frEH.js";import"./InputLabel-CEnHGhsA.js";import"./SecondaryButton-B0hUOCHS.js";import"./DangerButton-BXvpand6.js";import"./Checkbox-B4dYSFbU.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-DyjVE-t-.js b/public/build/assets/VoucherTemplateNew-DyjVE-t-.js new file mode 100644 index 0000000..0c19473 --- /dev/null +++ b/public/build/assets/VoucherTemplateNew-DyjVE-t-.js @@ -0,0 +1 @@ +import{_ as r}from"./AuthenticatedLayout-hK9Fu3Th.js";import{c as a,a as t,u as m,w as e,F as o,b as i,d as p}from"./app-JIuq7t-B.js";import{_ as s}from"./AdminTopNavigation-B0MqavRN.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-BBFGzp1r.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./TextInput-Cj2z7GCb.js";import"./InputLabel-BBoqvM3u.js";import"./SecondaryButton-DKtpCAKj.js";import"./DangerButton-C4Z82YQr.js";import"./Checkbox-BDcuv2X-.js";const T={__name:"VoucherTemplateNew",setup(c){return(n,f)=>(i(),a(o,null,[t(m(p),{title:"Create Team"}),t(r,null,{header:e(()=>[t(s)]),default:e(()=>[t(_)]),_:1})],64))}};export{T as default}; diff --git a/public/build/assets/Vouchers-B7SD45jv.js b/public/build/assets/Vouchers-B7SD45jv.js deleted file mode 100644 index 84d8b3d..0000000 --- a/public/build/assets/Vouchers-B7SD45jv.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-CFkkM4Xw.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-CblTTgyL.js";import{_ as p}from"./AdminTopNavigation-C3cfuSp_.js";import{_ as n}from"./VouchersComponent-CuVgvWTH.js";import"./ApplicationLogo-ByNwEwX1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-lhUrXoRs.js";import"./PaginatorComponent-CMgspZ9V.js";import"./SecondaryButton-B0hUOCHS.js";import"./dayjs.min-DpVcq2gO.js";import"./relativeTime-ByhsTu5L.js";import"./utc-CM4OPsp5.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-BOxOofjx.js b/public/build/assets/Vouchers-BOxOofjx.js new file mode 100644 index 0000000..4c28392 --- /dev/null +++ b/public/build/assets/Vouchers-BOxOofjx.js @@ -0,0 +1 @@ +import{_ as o}from"./AuthenticatedLayout-hK9Fu3Th.js";import{c as s,a as r,u as m,w as t,F as i,b as c,d as _,e as a}from"./app-JIuq7t-B.js";import{_ as p}from"./AdminTopNavigation-B0MqavRN.js";import{_ as n}from"./VouchersComponent-B8KOk0o_.js";import"./ApplicationLogo-Bw-pd1Lv.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BXNSUttb.js";import"./PaginatorComponent-d3Iyzo79.js";import"./SecondaryButton-DKtpCAKj.js";import"./dayjs.min-CT9z215E.js";import"./relativeTime-B6HHAsX1.js";import"./utc-CHR93Tx7.js";const d={class:"card"},g={__name:"Vouchers",setup(l){return(u,e)=>(c(),s(i,null,[r(m(_),{title:"Vouchers"}),r(o,null,{header:t(()=>[r(p)]),default:t(()=>[a("div",d,[e[0]||(e[0]=a("div",{class:"card-header"}," Vouchers ",-1)),r(n)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/VouchersComponent-B8KOk0o_.js b/public/build/assets/VouchersComponent-B8KOk0o_.js new file mode 100644 index 0000000..f659f1e --- /dev/null +++ b/public/build/assets/VouchersComponent-B8KOk0o_.js @@ -0,0 +1 @@ +import{r as y,o as w,b as u,c as _,e,F as V,h as B,a as d,w as n,f as m,t as s,u as i,P as c,g as I}from"./app-JIuq7t-B.js";import{P as S}from"./PaginatorComponent-d3Iyzo79.js";import{d as x}from"./dayjs.min-CT9z215E.js";import{r as T}from"./relativeTime-B6HHAsX1.js";import{u as k}from"./utc-CHR93Tx7.js";const C={key:0},N={class:"w-full text-xs"},P={class:"hover:bg-gray-100 border-b"},j={class:"py-1"},F={class:"text-right"},q={class:"text-right"},D={class:"flex justify-end"},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},z={__name:"VouchersComponent",props:{teamId:{required:!1,default:null},filterVouchers:{required:!1,default:null},voucherSetId:{required:!1,default:null}},setup(b){x.extend(T),x.extend(k);const a=b,f=y(50),l=y({});w(()=>{(a.teamId||a.voucherSetId)&&(f.value=10),h()});function h(g=1){let r="";a.teamId&&a.filterVouchers?r="&where[]="+a.filterVouchers+","+a.teamId:a.voucherSetId&&(r="&where[]=voucher_set_id,"+a.voucherSetId),axios.get("/admin/vouchers?cached=false&page="+g+"&limit="+f.value+r+"&orderBy=created_at,desc&relations=voucherSet.currencyCountry,createdByTeam,allocatedToServiceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}return(g,r)=>l.value.data&&l.value.data.length?(u(),_("div",C,[e("table",N,[r[1]||(r[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remaining"),e("td")])],-1)),e("tbody",null,[(u(!0),_(V,null,B(l.value.data,t=>{var v,p;return u(),_("tr",P,[e("td",j,[d(i(c),{href:"/admin/voucher/"+t.id},{default:n(()=>[m(" #"+s(t.id),1)]),_:2},1032,["href"])]),e("td",null,s(t.is_test?"Yes":""),1),e("td",null,[d(i(c),{href:"/admin/team/"+t.created_by_team_id},{default:n(()=>{var o;return[m(s((o=t.created_by_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",null,[d(i(c),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:n(()=>{var o;return[m(s((o=t.allocated_to_service_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",F,[e("div",null,s(Number(t.voucher_value_original/100).toFixed(2))+" "+s((v=t.voucher_set.currency_country)==null?void 0:v.currency_code),1)]),e("td",q,[e("div",null,s(Number(t.voucher_value_remaining/100).toFixed(2))+" "+s((p=t.voucher_set.currency_country)==null?void 0:p.currency_code),1)]),e("td",D,[d(i(c),{class:"secondaryButton",href:"/admin/voucher/"+t.id},{default:n(()=>r[0]||(r[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[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",A,[e("div",E,[d(S,{onSetDataPage:h,"pagination-data":l.value},null,8,["pagination-data"])])])])):I("",!0)}};export{z as _}; diff --git a/public/build/assets/VouchersComponent-CuVgvWTH.js b/public/build/assets/VouchersComponent-CuVgvWTH.js deleted file mode 100644 index bc7ec51..0000000 --- a/public/build/assets/VouchersComponent-CuVgvWTH.js +++ /dev/null @@ -1 +0,0 @@ -import{r as y,o as w,b as u,c as _,d as e,F as V,g as B,a as d,w as n,e as m,t as s,u as i,i as c,f as I}from"./app-CblTTgyL.js";import{P as S}from"./PaginatorComponent-CMgspZ9V.js";import{d as x}from"./dayjs.min-DpVcq2gO.js";import{r as T}from"./relativeTime-ByhsTu5L.js";import{u as k}from"./utc-CM4OPsp5.js";const C={key:0},N={class:"w-full text-xs"},j={class:"hover:bg-gray-100 border-b"},F={class:"py-1"},q={class:"text-right"},D={class:"text-right"},P={class:"flex justify-end"},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},z={__name:"VouchersComponent",props:{teamId:{required:!1,default:null},filterVouchers:{required:!1,default:null},voucherSetId:{required:!1,default:null}},setup(b){x.extend(T),x.extend(k);const a=b,f=y(50),l=y({});w(()=>{(a.teamId||a.voucherSetId)&&(f.value=10),h()});function h(g=1){let r="";a.teamId&&a.filterVouchers?r="&where[]="+a.filterVouchers+","+a.teamId:a.voucherSetId&&(r="&where[]=voucher_set_id,"+a.voucherSetId),axios.get("/admin/vouchers?cached=false&page="+g+"&limit="+f.value+r+"&orderBy=created_at,desc&relations=voucherSet.currencyCountry,createdByTeam,allocatedToServiceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}return(g,r)=>l.value.data&&l.value.data.length?(u(),_("div",C,[e("table",N,[r[1]||(r[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remaining"),e("td")])],-1)),e("tbody",null,[(u(!0),_(V,null,B(l.value.data,t=>{var v,p;return u(),_("tr",j,[e("td",F,[d(i(c),{href:"/admin/voucher/"+t.id},{default:n(()=>[m(" #"+s(t.id),1)]),_:2},1032,["href"])]),e("td",null,s(t.is_test?"Yes":""),1),e("td",null,[d(i(c),{href:"/admin/team/"+t.created_by_team_id},{default:n(()=>{var o;return[m(s((o=t.created_by_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",null,[d(i(c),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:n(()=>{var o;return[m(s((o=t.allocated_to_service_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",q,[e("div",null,s(Number(t.voucher_value_original/100).toFixed(2))+" "+s((v=t.voucher_set.currency_country)==null?void 0:v.currency_code),1)]),e("td",D,[e("div",null,s(Number(t.voucher_value_remaining/100).toFixed(2))+" "+s((p=t.voucher_set.currency_country)==null?void 0:p.currency_code),1)]),e("td",P,[d(i(c),{class:"secondaryButton",href:"/admin/voucher/"+t.id},{default:n(()=>r[0]||(r[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[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",A,[e("div",E,[d(S,{onSetDataPage:h,"pagination-data":l.value},null,8,["pagination-data"])])])])):I("",!0)}};export{z as _}; diff --git a/public/build/assets/app-CblTTgyL.js b/public/build/assets/app-CblTTgyL.js deleted file mode 100644 index 3171812..0000000 --- a/public/build/assets/app-CblTTgyL.js +++ /dev/null @@ -1,103 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/APIAccessToken-CiLq3Ihr.js","assets/AuthenticatedLayout-CFkkM4Xw.js","assets/ApplicationLogo-ByNwEwX1.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/PrimaryButton-lhUrXoRs.js","assets/AdminTopNavigation-C3cfuSp_.js","assets/dayjs.min-DpVcq2gO.js","assets/relativeTime-ByhsTu5L.js","assets/localizedFormat-gHlzfbQw.js","assets/APIAccessTokens-Bz3iz2Yk.js","assets/PaginatorComponent-CMgspZ9V.js","assets/SecondaryButton-B0hUOCHS.js","assets/AdminHome-1TsBZ1Wn.js","assets/AjaxLoadingIndicator-vGmUEu_U.js","assets/AuditItemsComponent-DimcBaox.js","assets/Team-CZl5pAZo.js","assets/TextInput-BT-7frEH.js","assets/InputLabel-CEnHGhsA.js","assets/AdminTeamCreateComponent-i0AzNkZR.js","assets/AdminUserDetailsComponent-Dw2XKneS.js","assets/utc-CM4OPsp5.js","assets/DangerButton-BXvpand6.js","assets/VoucherSetsComponent-DLemr3_-.js","assets/VouchersComponent-CuVgvWTH.js","assets/TeamNew-TdnuEUjd.js","assets/Teams-DNsfewGP.js","assets/User-f6FRCPRL.js","assets/Users-BsyPXlmB.js","assets/VoucherRedemption-BAAy6YUl.js","assets/VoucherRedemptions-CbBC5rbT.js","assets/VoucherSet-CI0MSV9g.js","assets/VoucherSetNew-DWnwgyYm.js","assets/VoucherSets-Drurrlm8.js","assets/VoucherTemplateEdit-DmwU3T9Q.js","assets/AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js","assets/Checkbox-B4dYSFbU.js","assets/VoucherTemplateNew-CYEl8NyP.js","assets/Voucher-BTS59G3H.js","assets/Vouchers-B7SD45jv.js","assets/ErrorMessagePage-Dfc4VZBm.js","assets/MyTeam-DF5vmHBf.js","assets/MyTeamVoucherSets-Cr7Jch_J.js","assets/VoucherSetMerchantTeamApproval-CrNhLJwz.js","assets/Voucher-DbrBg65i.js","assets/VoucherRedeem-Mb5Z1MbJ.js","assets/VoucherSet-D4FQyn1p.js","assets/AuditItems-BkG124Pl.js","assets/ConfirmPassword-fMx26ara.js","assets/GuestLayout-CCWlBOd3.js","assets/InputError-D2YhlUuu.js","assets/ForgotPassword-BpmIqATb.js","assets/Login-EQqpAp49.js","assets/Register-hvwBXu_0.js","assets/ResetPassword-CCNd9Y2N.js","assets/VerifyEmail-CcQXJlpL.js","assets/Dashboard-Dxwif1t_.js","assets/Edit-e8vmtn8h.js","assets/UpdatePasswordForm-Bt8q17jw.js","assets/UpdateProfileInformationForm-B2hb0WtY.js","assets/DeleteUserForm-CEXksFCm.js"])))=>i.map(i=>d[i]); -const mp="modulepreload",vp=function(e){return"/build/"+e},rl={},be=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=vp(c),c in rl)return;rl[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":mp,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((m,y)=>{p.addEventListener("load",m),p.addEventListener("error",()=>y(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 lu(e,t){return function(){return e.apply(t,arguments)}}const{toString:bp}=Object.prototype,{getPrototypeOf:Ra}=Object,to=(e=>t=>{const r=bp.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>to(t)===e),ro=e=>t=>typeof t===e,{isArray:_n}=Array,Kn=ro("undefined");function _p(e){return e!==null&&!Kn(e)&&e.constructor!==null&&!Kn(e.constructor)&&Ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cu=Ut("ArrayBuffer");function wp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cu(e.buffer),t}const Sp=ro("string"),Ot=ro("function"),uu=ro("number"),no=e=>e!==null&&typeof e=="object",Ep=e=>e===!0||e===!1,Di=e=>{if(to(e)!=="object")return!1;const t=Ra(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ap=Ut("Date"),Op=Ut("File"),Tp=Ut("Blob"),xp=Ut("FileList"),Pp=e=>no(e)&&Ot(e.pipe),Rp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ot(e.append)&&((t=to(e))==="formdata"||t==="object"&&Ot(e.toString)&&e.toString()==="[object FormData]"))},Cp=Ut("URLSearchParams"),[Ip,Fp,Dp,Np]=["ReadableStream","Request","Response","Headers"].map(Ut),Lp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ni(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),_n(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,pu=e=>!Kn(e)&&e!==Hr;function oa(){const{caseless:e}=pu(this)&&this||{},t={},r=(n,i)=>{const o=e&&fu(t,i)||i;Di(t[o])&&Di(n)?t[o]=oa(t[o],n):Di(n)?t[o]=oa({},n):_n(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n(ni(t,(i,o)=>{r&&Ot(i)?e[o]=lu(i,r):e[o]=i},{allOwnKeys:n}),e),$p=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jp=(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)},Bp=(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&&Ra(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Up=(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},qp=e=>{if(!e)return null;if(_n(e))return e;let t=e.length;if(!uu(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Vp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ra(Uint8Array)),Hp=(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])}},kp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Wp=Ut("HTMLFormElement"),Kp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),nl=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Gp=Ut("RegExp"),du=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ni(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},zp=e=>{du(e,(t,r)=>{if(Ot(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ot(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+"'")})}})},Jp=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return _n(e)?n(e):n(String(e).split(t)),r},Qp=()=>{},Xp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Jo="abcdefghijklmnopqrstuvwxyz",il="0123456789",hu={DIGIT:il,ALPHA:Jo,ALPHA_DIGIT:Jo+Jo.toUpperCase()+il},Zp=(e=16,t=hu.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Yp(e){return!!(e&&Ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ed=e=>{const t=new Array(10),r=(n,i)=>{if(no(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=_n(n)?[]:{};return ni(n,(s,l)=>{const c=r(s,i+1);!Kn(c)&&(o[l]=c)}),t[i]=void 0,o}}return n};return r(e,0)},td=Ut("AsyncFunction"),rd=e=>e&&(no(e)||Ot(e))&&Ot(e.then)&&Ot(e.catch),yu=((e,t)=>e?setImmediate:t?((r,n)=>(Hr.addEventListener("message",({source:i,data:o})=>{i===Hr&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Hr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ot(Hr.postMessage)),nd=typeof queueMicrotask<"u"?queueMicrotask.bind(Hr):typeof process<"u"&&process.nextTick||yu,N={isArray:_n,isArrayBuffer:cu,isBuffer:_p,isFormData:Rp,isArrayBufferView:wp,isString:Sp,isNumber:uu,isBoolean:Ep,isObject:no,isPlainObject:Di,isReadableStream:Ip,isRequest:Fp,isResponse:Dp,isHeaders:Np,isUndefined:Kn,isDate:Ap,isFile:Op,isBlob:Tp,isRegExp:Gp,isFunction:Ot,isStream:Pp,isURLSearchParams:Cp,isTypedArray:Vp,isFileList:xp,forEach:ni,merge:oa,extend:Mp,trim:Lp,stripBOM:$p,inherits:jp,toFlatObject:Bp,kindOf:to,kindOfTest:Ut,endsWith:Up,toArray:qp,forEachEntry:Hp,matchAll:kp,isHTMLForm:Wp,hasOwnProperty:nl,hasOwnProp:nl,reduceDescriptors:du,freezeMethods:zp,toObjectSet:Jp,toCamelCase:Kp,noop:Qp,toFiniteNumber:Xp,findKey:fu,global:Hr,isContextDefined:pu,ALPHABET:hu,generateString:Zp,isSpecCompliantForm:Yp,toJSONObject:ed,isAsyncFn:td,isThenable:rd,setImmediate:yu,asap:nd};function ue(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)}N.inherits(ue,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:N.toJSONObject(this.config),code:this.code,status:this.status}}});const gu=ue.prototype,mu={};["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=>{mu[e]={value:e}});Object.defineProperties(ue,mu);Object.defineProperty(gu,"isAxiosError",{value:!0});ue.from=(e,t,r,n,i,o)=>{const s=Object.create(gu);return N.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),ue.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const id=null;function sa(e){return N.isPlainObject(e)||N.isArray(e)}function vu(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function ol(e,t,r){return e?e.concat(t).map(function(i,o){return i=vu(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function od(e){return N.isArray(e)&&!e.some(sa)}const sd=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function io(e,t,r){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=N.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!N.isUndefined(g[v])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(i))throw new TypeError("visitor must be a function");function f(d){if(d===null)return"";if(N.isDate(d))return d.toISOString();if(!c&&N.isBlob(d))throw new ue("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(d)||N.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function u(d,v,g){let _=d;if(d&&!g&&typeof d=="object"){if(N.endsWith(v,"{}"))v=n?v:v.slice(0,-2),d=JSON.stringify(d);else if(N.isArray(d)&&od(d)||(N.isFileList(d)||N.endsWith(v,"[]"))&&(_=N.toArray(d)))return v=vu(v),_.forEach(function(b,w){!(N.isUndefined(b)||b===null)&&t.append(s===!0?ol([v],w,o):s===null?v:v+"[]",f(b))}),!1}return sa(d)?!0:(t.append(ol(g,v,o),f(d)),!1)}const p=[],m=Object.assign(sd,{defaultVisitor:u,convertValue:f,isVisitable:sa});function y(d,v){if(!N.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(d),N.forEach(d,function(_,E){(!(N.isUndefined(_)||_===null)&&i.call(t,_,N.isString(E)?E.trim():E,v,m))===!0&&y(_,v?v.concat(E):[E])}),p.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return y(e),t}function sl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ca(e,t){this._pairs=[],e&&io(e,this,t)}const bu=Ca.prototype;bu.append=function(t,r){this._pairs.push([t,r])};bu.toString=function(t){const r=t?function(n){return t.call(this,n,sl)}:sl;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function ad(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _u(e,t,r){if(!t)return e;const n=r&&r.encode||ad;N.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=N.isURLSearchParams(t)?t.toString():new Ca(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class al{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){N.forEach(this.handlers,function(n){n!==null&&t(n)})}}const wu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ld=typeof URLSearchParams<"u"?URLSearchParams:Ca,cd=typeof FormData<"u"?FormData:null,ud=typeof Blob<"u"?Blob:null,fd={isBrowser:!0,classes:{URLSearchParams:ld,FormData:cd,Blob:ud},protocols:["http","https","file","blob","url","data"]},Ia=typeof window<"u"&&typeof document<"u",aa=typeof navigator=="object"&&navigator||void 0,pd=Ia&&(!aa||["ReactNative","NativeScript","NS"].indexOf(aa.product)<0),dd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hd=Ia&&window.location.href||"http://localhost",yd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ia,hasStandardBrowserEnv:pd,hasStandardBrowserWebWorkerEnv:dd,navigator:aa,origin:hd},Symbol.toStringTag,{value:"Module"})),at={...yd,...fd};function gd(e,t){return io(e,new at.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return at.isNode&&N.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function md(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vd(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return s=!s&&N.isArray(i)?i.length:s,c?(N.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!N.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&N.isArray(i[s])&&(i[s]=vd(i[s])),!l)}if(N.isFormData(e)&&N.isFunction(e.entries)){const r={};return N.forEachEntry(e,(n,i)=>{t(md(n),i,r,0)}),r}return null}function bd(e,t,r){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const ii={transitional:wu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=N.isObject(t);if(o&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return i?JSON.stringify(Su(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t)||N.isReadableStream(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.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 gd(t,this.formSerializer).toString();if((l=N.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return io(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),bd(t)):t}],transformResponse:[function(t){const r=this.transitional||ii.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(N.isResponse(t)||N.isReadableStream(t))return t;if(t&&N.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"?ue.from(l,ue.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:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],e=>{ii.headers[e]={}});const _d=N.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"]),wd=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]&&_d[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ll=Symbol("internals");function Cn(e){return e&&String(e).trim().toLowerCase()}function Ni(e){return e===!1||e==null?e:N.isArray(e)?e.map(Ni):String(e)}function Sd(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 Ed=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qo(e,t,r,n,i){if(N.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!N.isString(t)){if(N.isString(n))return t.indexOf(n)!==-1;if(N.isRegExp(n))return n.test(t)}}function Ad(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Od(e,t){const r=N.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 _t{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(l,c,f){const u=Cn(c);if(!u)throw new Error("header name must be a non-empty string");const p=N.findKey(i,u);(!p||i[p]===void 0||f===!0||f===void 0&&i[p]!==!1)&&(i[p||c]=Ni(l))}const s=(l,c)=>N.forEach(l,(f,u)=>o(f,u,c));if(N.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(N.isString(t)&&(t=t.trim())&&!Ed(t))s(wd(t),r);else if(N.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=Cn(t),t){const n=N.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Sd(i);if(N.isFunction(r))return r.call(this,i,n);if(N.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Cn(t),t){const n=N.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Qo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Cn(s),s){const l=N.findKey(n,s);l&&(!r||Qo(n,n[l],l,r))&&(delete n[l],i=!0)}}return N.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||Qo(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return N.forEach(this,(i,o)=>{const s=N.findKey(n,o);if(s){r[s]=Ni(i),delete r[o];return}const l=t?Ad(o):String(o).trim();l!==o&&delete r[o],r[l]=Ni(i),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return N.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&N.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[ll]=this[ll]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=Cn(s);n[l]||(Od(i,s),n[l]=!0)}return N.isArray(t)?t.forEach(o):o(t),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(_t.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});N.freezeMethods(_t);function Xo(e,t){const r=this||ii,n=t||r,i=_t.from(n.headers);let o=n.data;return N.forEach(e,function(l){o=l.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Eu(e){return!!(e&&e.__CANCEL__)}function wn(e,t,r){ue.call(this,e??"canceled",ue.ERR_CANCELED,t,r),this.name="CanceledError"}N.inherits(wn,ue,{__CANCEL__:!0});function Au(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ue("Request failed with status code "+r.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Td(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xd(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,m=0;for(;p!==i;)m+=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 ki=(e,t,r=3)=>{let n=0;const i=xd(50,250);return Pd(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)},cl=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ul=e=>(...t)=>N.asap(()=>e(...t)),Rd=at.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,at.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(at.origin),at.navigator&&/(msie|trident)/i.test(at.navigator.userAgent)):()=>!0,Cd=at.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];N.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),N.isString(n)&&s.push("path="+n),N.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 Id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ou(e,t){return e&&!Id(t)?Fd(e,t):t}const fl=e=>e instanceof _t?{...e}:e;function Xr(e,t){t=t||{};const r={};function n(f,u,p,m){return N.isPlainObject(f)&&N.isPlainObject(u)?N.merge.call({caseless:m},f,u):N.isPlainObject(u)?N.merge({},u):N.isArray(u)?u.slice():u}function i(f,u,p,m){if(N.isUndefined(u)){if(!N.isUndefined(f))return n(void 0,f,p,m)}else return n(f,u,p,m)}function o(f,u){if(!N.isUndefined(u))return n(void 0,u)}function s(f,u){if(N.isUndefined(u)){if(!N.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,p)=>i(fl(f),fl(u),p,!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=c[u]||i,m=p(e[u],t[u],u);N.isUndefined(m)&&p!==l||(r[u]=m)}),r}const Tu=e=>{const t=Xr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;t.headers=s=_t.from(s),t.url=_u(Ou(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(N.isFormData(r)){if(at.hasStandardBrowserEnv||at.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(at.hasStandardBrowserEnv&&(n&&N.isFunction(n)&&(n=n(t)),n||n!==!1&&Rd(t.url))){const f=i&&o&&Cd.read(o);f&&s.set(i,f)}return t},Dd=typeof XMLHttpRequest<"u",Nd=Dd&&function(e){return new Promise(function(r,n){const i=Tu(e);let o=i.data;const s=_t.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=i,u,p,m,y,d;function v(){y&&y(),d&&d(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function _(){if(!g)return;const b=_t.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};Au(function(U){r(U),v()},function(U){n(U),v()},T),g=null}"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(_)},g.onabort=function(){g&&(n(new ue("Request aborted",ue.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new ue("Network Error",ue.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||wu;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),n(new ue(w,T.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,g)),g=null},o===void 0&&s.setContentType(null),"setRequestHeader"in g&&N.forEach(s.toJSON(),function(w,T){g.setRequestHeader(T,w)}),N.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),l&&l!=="json"&&(g.responseType=i.responseType),f&&([m,d]=ki(f,!0),g.addEventListener("progress",m)),c&&g.upload&&([p,y]=ki(c),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(u=b=>{g&&(n(!b||b.type?new wn(null,e,g):b),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const E=Td(i.url);if(E&&at.protocols.indexOf(E)===-1){n(new ue("Unsupported protocol "+E+":",ue.ERR_BAD_REQUEST,e));return}g.send(o||null)})},Ld=(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 ue?u:new wn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new ue(`timeout ${t} of ms exceeded`,ue.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=()=>N.asap(l),c}},Md=function*(e,t){let r=e.byteLength;if(r{const i=$d(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 m=o+=p;r(m)}c.enqueue(new Uint8Array(u))}catch(f){throw l(f),f}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},oo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xu=oo&&typeof ReadableStream=="function",Bd=oo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ud=xu&&Pu(()=>{let e=!1;const t=new Request(at.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),dl=64*1024,la=xu&&Pu(()=>N.isReadableStream(new Response("").body)),Wi={stream:la&&(e=>e.body)};oo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wi[t]&&(Wi[t]=N.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ue(`Response type '${t}' is not supported`,ue.ERR_NOT_SUPPORT,n)})})})(new Response);const qd=async e=>{if(e==null)return 0;if(N.isBlob(e))return e.size;if(N.isSpecCompliantForm(e))return(await new Request(at.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(N.isArrayBufferView(e)||N.isArrayBuffer(e))return e.byteLength;if(N.isURLSearchParams(e)&&(e=e+""),N.isString(e))return(await Bd(e)).byteLength},Vd=async(e,t)=>{const r=N.toFiniteNumber(e.getContentLength());return r??qd(t)},Hd=oo&&(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:m}=Tu(e);f=f?(f+"").toLowerCase():"text";let y=Ld([i,o&&o.toAbortSignal()],s),d;const v=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let g;try{if(c&&Ud&&r!=="get"&&r!=="head"&&(g=await Vd(u,n))!==0){let T=new Request(t,{method:"POST",body:n,duplex:"half"}),x;if(N.isFormData(n)&&(x=T.headers.get("content-type"))&&u.setContentType(x),T.body){const[U,B]=cl(g,ki(ul(c)));n=pl(T.body,dl,U,B)}}N.isString(p)||(p=p?"include":"omit");const _="credentials"in Request.prototype;d=new Request(t,{...m,signal:y,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:_?p:void 0});let E=await fetch(d);const b=la&&(f==="stream"||f==="response");if(la&&(l||b&&v)){const T={};["status","statusText","headers"].forEach(C=>{T[C]=E[C]});const x=N.toFiniteNumber(E.headers.get("content-length")),[U,B]=l&&cl(x,ki(ul(l),!0))||[];E=new Response(pl(E.body,dl,U,()=>{B&&B(),v&&v()}),T)}f=f||"text";let w=await Wi[N.findKey(Wi,f)||"text"](E,e);return!b&&v&&v(),await new Promise((T,x)=>{Au(T,x,{data:w,headers:_t.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:d})})}catch(_){throw v&&v(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,e,d),{cause:_.cause||_}):ue.from(_,_&&_.code,e,d)}}),ca={http:id,xhr:Nd,fetch:Hd};N.forEach(ca,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hl=e=>`- ${e}`,kd=e=>N.isFunction(e)||e===null||e===!1,Ru={getAdapter:e=>{e=N.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 : -`+o.map(hl).join(` -`):" "+hl(o[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:ca};function Zo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wn(null,e)}function yl(e){return Zo(e),e.headers=_t.from(e.headers),e.data=Xo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ru.getAdapter(e.adapter||ii.adapter)(e).then(function(n){return Zo(e),n.data=Xo.call(e,e.transformResponse,n),n.headers=_t.from(n.headers),n},function(n){return Eu(n)||(Zo(e),n&&n.response&&(n.response.data=Xo.call(e,e.transformResponse,n.response),n.response.headers=_t.from(n.response.headers))),Promise.reject(n)})}const Cu="1.7.9",so={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{so[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gl={};so.transitional=function(t,r,n){function i(o,s){return"[Axios v"+Cu+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,l)=>{if(t===!1)throw new ue(i(s," has been removed"+(r?" in "+r:"")),ue.ERR_DEPRECATED);return r&&!gl[s]&&(gl[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,l):!0}};so.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Wd(e,t,r){if(typeof e!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new ue("option "+o+" must be "+c,ue.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ue("Unknown option "+o,ue.ERR_BAD_OPTION)}}const Li={assertOptions:Wd,validators:so},Wt=Li.validators;class Wr{constructor(t){this.defaults=t,this.interceptors={request:new al,response:new al}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Xr(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Li.assertOptions(n,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),i!=null&&(N.isFunction(i)?r.paramsSerializer={serialize:i}:Li.assertOptions(i,{encode:Wt.function,serialize:Wt.function},!0)),Li.assertOptions(r,{baseUrl:Wt.spelling("baseURL"),withXsrfToken:Wt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&N.merge(o.common,o[r.method]);o&&N.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),r.headers=_t.concat(s,o);const l=[];let c=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(c=c&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,p=0,m;if(!c){const d=[yl.bind(this),void 0];for(d.unshift.apply(d,l),d.push.apply(d,f),m=d.length,u=Promise.resolve(r);p{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{n.subscribe(l),o=l}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,l){n.reason||(n.reason=new wn(o,s,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Fa(function(i){t=i}),cancel:t}}}function Kd(e){return function(r){return e.apply(null,r)}}function Gd(e){return N.isObject(e)&&e.isAxiosError===!0}const ua={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ua).forEach(([e,t])=>{ua[t]=e});function Iu(e){const t=new Wr(e),r=lu(Wr.prototype.request,t);return N.extend(r,Wr.prototype,t,{allOwnKeys:!0}),N.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Iu(Xr(e,i))},r}const $e=Iu(ii);$e.Axios=Wr;$e.CanceledError=wn;$e.CancelToken=Fa;$e.isCancel=Eu;$e.VERSION=Cu;$e.toFormData=io;$e.AxiosError=ue;$e.Cancel=$e.CanceledError;$e.all=function(t){return Promise.all(t)};$e.spread=Kd;$e.isAxiosError=Gd;$e.mergeConfig=Xr;$e.AxiosHeaders=_t;$e.formToJSON=e=>Su(N.isHTMLForm(e)?new FormData(e):e);$e.getAdapter=Ru.getAdapter;$e.HttpStatusCode=ua;$e.default=$e;window.axios=$e;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.axios.defaults.baseURL="/api/v1";/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Da(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Oe={},dn=[],Zt=()=>{},zd=()=>!1,oi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Na=e=>e.startsWith("onUpdate:"),Ve=Object.assign,La=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Jd=Object.prototype.hasOwnProperty,xe=(e,t)=>Jd.call(e,t),ee=Array.isArray,hn=e=>si(e)==="[object Map]",Sn=e=>si(e)==="[object Set]",ml=e=>si(e)==="[object Date]",le=e=>typeof e=="function",Ne=e=>typeof e=="string",jt=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",Fu=e=>(Ce(e)||le(e))&&le(e.then)&&le(e.catch),Du=Object.prototype.toString,si=e=>Du.call(e),Qd=e=>si(e).slice(8,-1),Nu=e=>si(e)==="[object Object]",Ma=e=>Ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=Da(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ao=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Xd=/-(\w)/g,Tt=ao(e=>e.replace(Xd,(t,r)=>r?r.toUpperCase():"")),Zd=/\B([A-Z])/g,fr=ao(e=>e.replace(Zd,"-$1").toLowerCase()),lo=ao(e=>e.charAt(0).toUpperCase()+e.slice(1)),Yo=ao(e=>e?`on${lo(e)}`:""),bt=(e,t)=>!Object.is(e,t),Mi=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Ki=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Yd=e=>{const t=Ne(e)?Number(e):NaN;return isNaN(t)?e:t};let vl;const co=()=>vl||(vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function uo(e){if(ee(e)){const t={};for(let r=0;r{if(r){const n=r.split(th);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function fo(e){let t="";if(Ne(e))t=e;else if(ee(e))for(let r=0;rai(r,t))}const $u=e=>!!(e&&e.__v_isRef===!0),ah=e=>Ne(e)?e:e==null?"":ee(e)||Ce(e)&&(e.toString===Du||!le(e.toString))?$u(e)?ah(e.value):JSON.stringify(e,ju,2):String(e),ju=(e,t)=>$u(t)?ju(e,t.value):hn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[es(n,o)+" =>"]=i,r),{})}:Sn(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>es(r))}:jt(t)?es(t):Ce(t)&&!ee(t)&&!Nu(t)?String(t):t,es=(e,t="")=>{var r;return jt(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Et;class lh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Et,!t&&Et&&(this.index=(Et.scopes||(Et.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(Un){let t=Un;for(Un=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Bn;){let t=Bn;for(Bn=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Vu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hu(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),Ua(n),uh(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function fa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ku(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ku(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gn))return;e.globalVersion=Gn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!fa(e)){e.flags&=-3;return}const r=Ie,n=$t;Ie=e,$t=!0;try{Vu(e);const i=e.fn(e._value);(t.version===0||bt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ie=r,$t=n,Hu(e),e.flags&=-3}}function Ua(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)Ua(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function uh(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let $t=!0;const Wu=[];function Or(){Wu.push($t),$t=!1}function Tr(){const e=Wu.pop();$t=e===void 0?!0:e}function bl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ie;Ie=void 0;try{t()}finally{Ie=r}}}let Gn=0;class fh{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class po{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ie||!$t||Ie===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ie)r=this.activeLink=new fh(Ie,this),Ie.deps?(r.prevDep=Ie.depsTail,Ie.depsTail.nextDep=r,Ie.depsTail=r):Ie.deps=Ie.depsTail=r,Ku(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Ie.depsTail,r.nextDep=void 0,Ie.depsTail.nextDep=r,Ie.depsTail=r,Ie.deps===r&&(Ie.deps=n)}return r}trigger(t){this.version++,Gn++,this.notify(t)}notify(t){ja();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Ba()}}}function Ku(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Ku(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Gi=new WeakMap,Kr=Symbol(""),pa=Symbol(""),zn=Symbol("");function ot(e,t,r){if($t&&Ie){let n=Gi.get(e);n||Gi.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new po),i.map=n,i.key=r),i.track()}}function lr(e,t,r,n,i,o){const s=Gi.get(e);if(!s){Gn++;return}const l=c=>{c&&c.trigger()};if(ja(),t==="clear")s.forEach(l);else{const c=ee(e),f=c&&Ma(r);if(c&&r==="length"){const u=Number(n);s.forEach((p,m)=>{(m==="length"||m===zn||!jt(m)&&m>=u)&&l(p)})}else switch((r!==void 0||s.has(void 0))&&l(s.get(r)),f&&l(s.get(zn)),t){case"add":c?f&&l(s.get("length")):(l(s.get(Kr)),hn(e)&&l(s.get(pa)));break;case"delete":c||(l(s.get(Kr)),hn(e)&&l(s.get(pa)));break;case"set":hn(e)&&l(s.get(Kr));break}}Ba()}function ph(e,t){const r=Gi.get(e);return r&&r.get(t)}function cn(e){const t=Ae(e);return t===e?t:(ot(t,"iterate",zn),Ft(e)?t:t.map(st))}function ho(e){return ot(e=Ae(e),"iterate",zn),e}const dh={__proto__:null,[Symbol.iterator](){return rs(this,Symbol.iterator,st)},concat(...e){return cn(this).concat(...e.map(t=>ee(t)?cn(t):t))},entries(){return rs(this,"entries",e=>(e[1]=st(e[1]),e))},every(e,t){return or(this,"every",e,t,void 0,arguments)},filter(e,t){return or(this,"filter",e,t,r=>r.map(st),arguments)},find(e,t){return or(this,"find",e,t,st,arguments)},findIndex(e,t){return or(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return or(this,"findLast",e,t,st,arguments)},findLastIndex(e,t){return or(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return or(this,"forEach",e,t,void 0,arguments)},includes(...e){return ns(this,"includes",e)},indexOf(...e){return ns(this,"indexOf",e)},join(e){return cn(this).join(e)},lastIndexOf(...e){return ns(this,"lastIndexOf",e)},map(e,t){return or(this,"map",e,t,void 0,arguments)},pop(){return In(this,"pop")},push(...e){return In(this,"push",e)},reduce(e,...t){return _l(this,"reduce",e,t)},reduceRight(e,...t){return _l(this,"reduceRight",e,t)},shift(){return In(this,"shift")},some(e,t){return or(this,"some",e,t,void 0,arguments)},splice(...e){return In(this,"splice",e)},toReversed(){return cn(this).toReversed()},toSorted(e){return cn(this).toSorted(e)},toSpliced(...e){return cn(this).toSpliced(...e)},unshift(...e){return In(this,"unshift",e)},values(){return rs(this,"values",st)}};function rs(e,t,r){const n=ho(e),i=n[t]();return n!==e&&!Ft(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=r(o.value)),o}),i}const hh=Array.prototype;function or(e,t,r,n,i,o){const s=ho(e),l=s!==e&&!Ft(e),c=s[t];if(c!==hh[t]){const p=c.apply(e,o);return l?st(p):p}let f=r;s!==e&&(l?f=function(p,m){return r.call(this,st(p),m,e)}:r.length>2&&(f=function(p,m){return r.call(this,p,m,e)}));const u=c.call(s,f,n);return l&&i?i(u):u}function _l(e,t,r,n){const i=ho(e);let o=r;return i!==e&&(Ft(e)?r.length>3&&(o=function(s,l,c){return r.call(this,s,l,c,e)}):o=function(s,l,c){return r.call(this,s,st(l),c,e)}),i[t](o,...n)}function ns(e,t,r){const n=Ae(e);ot(n,"iterate",zn);const i=n[t](...r);return(i===-1||i===!1)&&Ha(r[0])?(r[0]=Ae(r[0]),n[t](...r)):i}function In(e,t,r=[]){Or(),ja();const n=Ae(e)[t].apply(e,r);return Ba(),Tr(),n}const yh=Da("__proto__,__v_isRef,__isVue"),Gu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt));function gh(e){jt(e)||(e=String(e));const t=Ae(this);return ot(t,"has",e),t.hasOwnProperty(e)}class zu{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?Th:Zu:o?Xu:Qu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=ee(t);if(!i){let c;if(s&&(c=dh[r]))return c;if(r==="hasOwnProperty")return gh}const l=Reflect.get(t,r,et(t)?t:n);return(jt(r)?Gu.has(r):yh(r))||(i||ot(t,"get",r),o)?l:et(l)?s&&Ma(r)?l:l.value:Ce(l)?i?Yu(l):li(l):l}}class Ju extends zu{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];if(!this._isShallow){const c=Zr(o);if(!Ft(n)&&!Zr(n)&&(o=Ae(o),n=Ae(n)),!ee(t)&&et(o)&&!et(n))return c?!1:(o.value=n,!0)}const s=ee(t)&&Ma(r)?Number(r)e,Ei=e=>Reflect.getPrototypeOf(e);function wh(e,t,r){return function(...n){const i=this.__v_raw,o=Ae(i),s=hn(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,f=i[e](...n),u=r?da:t?ya:st;return!t&&ot(o,"iterate",c?pa:Kr),{next(){const{value:p,done:m}=f.next();return m?{value:p,done:m}:{value:l?[u(p[0]),u(p[1])]:u(p),done:m}},[Symbol.iterator](){return this}}}}function Ai(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sh(e,t){const r={get(i){const o=this.__v_raw,s=Ae(o),l=Ae(i);e||(bt(i,l)&&ot(s,"get",i),ot(s,"get",l));const{has:c}=Ei(s),f=t?da:e?ya:st;if(c.call(s,i))return f(o.get(i));if(c.call(s,l))return f(o.get(l));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&ot(Ae(i),"iterate",Kr),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,s=Ae(o),l=Ae(i);return e||(bt(i,l)&&ot(s,"has",i),ot(s,"has",l)),i===l?o.has(i):o.has(i)||o.has(l)},forEach(i,o){const s=this,l=s.__v_raw,c=Ae(l),f=t?da:e?ya:st;return!e&&ot(c,"iterate",Kr),l.forEach((u,p)=>i.call(o,f(u),f(p),s))}};return Ve(r,e?{add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear")}:{add(i){!t&&!Ft(i)&&!Zr(i)&&(i=Ae(i));const o=Ae(this);return Ei(o).has.call(o,i)||(o.add(i),lr(o,"add",i,i)),this},set(i,o){!t&&!Ft(o)&&!Zr(o)&&(o=Ae(o));const s=Ae(this),{has:l,get:c}=Ei(s);let f=l.call(s,i);f||(i=Ae(i),f=l.call(s,i));const u=c.call(s,i);return s.set(i,o),f?bt(o,u)&&lr(s,"set",i,o):lr(s,"add",i,o),this},delete(i){const o=Ae(this),{has:s,get:l}=Ei(o);let c=s.call(o,i);c||(i=Ae(i),c=s.call(o,i)),l&&l.call(o,i);const f=o.delete(i);return c&&lr(o,"delete",i,void 0),f},clear(){const i=Ae(this),o=i.size!==0,s=i.clear();return o&&lr(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=wh(i,e,t)}),r}function qa(e,t){const r=Sh(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(xe(r,i)&&i in n?r:n,i,o)}const Eh={get:qa(!1,!1)},Ah={get:qa(!1,!0)},Oh={get:qa(!0,!1)};const Qu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,Th=new WeakMap;function xh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ph(e){return e.__v_skip||!Object.isExtensible(e)?0:xh(Qd(e))}function li(e){return Zr(e)?e:Va(e,!1,vh,Eh,Qu)}function Rh(e){return Va(e,!1,_h,Ah,Xu)}function Yu(e){return Va(e,!0,bh,Oh,Zu)}function Va(e,t,r,n,i){if(!Ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=Ph(e);if(s===0)return e;const l=new Proxy(e,s===2?n:r);return i.set(e,l),l}function Gr(e){return Zr(e)?Gr(e.__v_raw):!!(e&&e.__v_isReactive)}function Zr(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Ha(e){return e?!!e.__v_raw:!1}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function ha(e){return!xe(e,"__v_skip")&&Object.isExtensible(e)&&Lu(e,"__v_skip",!0),e}const st=e=>Ce(e)?li(e):e,ya=e=>Ce(e)?Yu(e):e;function et(e){return e?e.__v_isRef===!0:!1}function ka(e){return ef(e,!1)}function Ch(e){return ef(e,!0)}function ef(e,t){return et(e)?e:new Ih(e,t)}class Ih{constructor(t,r){this.dep=new po,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Ae(t),this._value=r?t:st(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Ft(t)||Zr(t);t=n?t:Ae(t),bt(t,r)&&(this._rawValue=t,this._value=n?t:st(t),this.dep.trigger())}}function Fh(e){return et(e)?e.value:e}const Dh={get:(e,t,r)=>t==="__v_raw"?e:Fh(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return et(i)&&!et(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function tf(e){return Gr(e)?e:new Proxy(e,Dh)}class Nh{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new po,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Lh(e){return new Nh(e)}function uv(e){const t=ee(e)?new Array(e.length):{};for(const r in e)t[r]=$h(e,r);return t}class Mh{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ph(Ae(this._object),this._key)}}function $h(e,t,r){const n=e[t];return et(n)?n:new Mh(e,t,r)}class jh{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new po(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ie!==this)return qu(this,!0),!0}get value(){const t=this.dep.track();return ku(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Bh(e,t,r=!1){let n,i;return le(e)?n=e:(n=e.get,i=e.set),new jh(n,i,r)}const Oi={},zi=new WeakMap;let Ur;function Uh(e,t=!1,r=Ur){if(r){let n=zi.get(r);n||zi.set(r,n=[]),n.push(e)}}function qh(e,t,r=Oe){const{immediate:n,deep:i,once:o,scheduler:s,augmentJob:l,call:c}=r,f=w=>i?w:Ft(w)||i===!1||i===0?cr(w,1):cr(w);let u,p,m,y,d=!1,v=!1;if(et(e)?(p=()=>e.value,d=Ft(e)):Gr(e)?(p=()=>f(e),d=!0):ee(e)?(v=!0,d=e.some(w=>Gr(w)||Ft(w)),p=()=>e.map(w=>{if(et(w))return w.value;if(Gr(w))return f(w);if(le(w))return c?c(w,2):w()})):le(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Or();try{m()}finally{Tr()}}const w=Ur;Ur=u;try{return c?c(e,3,[y]):e(y)}finally{Ur=w}}:p=Zt,t&&i){const w=p,T=i===!0?1/0:i;p=()=>cr(w(),T)}const g=ch(),_=()=>{u.stop(),g&&g.active&&La(g.effects,u)};if(o&&t){const w=t;t=(...T)=>{w(...T),_()}}let E=v?new Array(e.length).fill(Oi):Oi;const b=w=>{if(!(!(u.flags&1)||!u.dirty&&!w))if(t){const T=u.run();if(i||d||(v?T.some((x,U)=>bt(x,E[U])):bt(T,E))){m&&m();const x=Ur;Ur=u;try{const U=[T,E===Oi?void 0:v&&E[0]===Oi?[]:E,y];c?c(t,3,U):t(...U),E=T}finally{Ur=x}}}else u.run()};return l&&l(b),u=new Bu(p),u.scheduler=s?()=>s(b,!1):b,y=w=>Uh(w,!1,u),m=u.onStop=()=>{const w=zi.get(u);if(w){if(c)c(w,4);else for(const T of w)T();zi.delete(u)}},t?n?b(!0):E=u.run():s?s(b.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function cr(e,t=1/0,r){if(t<=0||!Ce(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,et(e))cr(e.value,t,r);else if(ee(e))for(let n=0;n{cr(n,t,r)});else if(Nu(e)){for(const n in e)cr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&cr(e[n],t,r)}return e}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ci(e,t,r,n){try{return n?e(...n):e()}catch(i){yo(i,t,r)}}function Bt(e,t,r,n){if(le(e)){const i=ci(e,t,r,n);return i&&Fu(i)&&i.catch(o=>{yo(o,t,r)}),i}if(ee(e)){const i=[];for(let o=0;o>>1,i=ht[n],o=Jn(i);o=Jn(r)?ht.push(e):ht.splice(Hh(t),0,e),e.flags|=1,of()}}function of(){Ji||(Ji=rf.then(sf))}function kh(e){ee(e)?gn.push(...e):br&&e.id===-1?br.splice(pn+1,0,e):e.flags&1||(gn.push(e),e.flags|=1),of()}function wl(e,t,r=zt+1){for(;rJn(r)-Jn(n));if(gn.length=0,br){br.push(...t);return}for(br=t,pn=0;pne.id==null?e.flags&2?-1:1/0:e.id;function sf(e){try{for(zt=0;zt{n._d&&Ml(-1);const o=Xi(t);let s;try{s=e(...i)}finally{Xi(o),n._d&&Ml(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function fv(e,t){if(ze===null)return e;const r=bo(ze),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,qn=e=>e&&(e.disabled||e.disabled===""),Sl=e=>e&&(e.defer||e.defer===""),El=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Al=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ga=(e,t)=>{const r=e&&e.to;return Ne(r)?t?t(r):null:r},uf={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,o,s,l,c,f){const{mc:u,pc:p,pbc:m,o:{insert:y,querySelector:d,createText:v,createComment:g}}=f,_=qn(t.props);let{shapeFlag:E,children:b,dynamicChildren:w}=t;if(e==null){const T=t.el=v(""),x=t.anchor=v("");y(T,r,n),y(x,r,n);const U=(C,I)=>{E&16&&(i&&i.isCE&&(i.ce._teleportTarget=C),u(b,C,I,i,o,s,l,c))},B=()=>{const C=t.target=ga(t.props,d),I=ff(C,t,v,y);C&&(s!=="svg"&&El(C)?s="svg":s!=="mathml"&&Al(C)&&(s="mathml"),_||(U(C,I),$i(t,!1)))};_&&(U(r,x),$i(t,!0)),Sl(t.props)?dt(()=>{B(),t.el.__isMounted=!0},o):B()}else{if(Sl(t.props)&&!e.el.__isMounted){dt(()=>{uf.process(e,t,r,n,i,o,s,l,c,f),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,x=t.target=e.target,U=t.targetAnchor=e.targetAnchor,B=qn(e.props),C=B?r:x,I=B?T:U;if(s==="svg"||El(x)?s="svg":(s==="mathml"||Al(x))&&(s="mathml"),w?(m(e.dynamicChildren,w,C,i,o,s,l),Ja(e,t,!0)):c||p(e,t,C,I,i,o,s,l,!1),_)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ti(t,r,T,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=ga(t.props,d);W&&Ti(t,W,null,f,0)}else B&&Ti(t,x,U,f,1);$i(t,_)}},remove(e,t,r,{um:n,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:c,targetStart:f,targetAnchor:u,target:p,props:m}=e;if(p&&(i(f),i(u)),o&&i(c),s&16){const y=o||!qn(m);for(let d=0;d{e.isMounted=!0}),_f(()=>{e.isUnmounting=!0}),e}const Rt=[Function,Array],pf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rt,onEnter:Rt,onAfterEnter:Rt,onEnterCancelled:Rt,onBeforeLeave:Rt,onLeave:Rt,onAfterLeave:Rt,onLeaveCancelled:Rt,onBeforeAppear:Rt,onAppear:Rt,onAfterAppear:Rt,onAppearCancelled:Rt},df=e=>{const t=e.subTree;return t.component?df(t.component):t},zh={name:"BaseTransition",props:pf,setup(e,{slots:t}){const r=Gf(),n=Gh();return()=>{const i=t.default&&gf(t.default(),!0);if(!i||!i.length)return;const o=hf(i),s=Ae(e),{mode:l}=s;if(n.isLeaving)return is(o);const c=Ol(o);if(!c)return is(o);let f=ma(c,s,n,r,p=>f=p);c.type!==lt&&Qn(c,f);let u=r.subTree&&Ol(r.subTree);if(u&&u.type!==lt&&!Vr(c,u)&&df(r).type!==lt){let p=ma(u,s,n,r);if(Qn(u,p),l==="out-in"&&c.type!==lt)return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete p.afterLeave,u=void 0},is(o);l==="in-out"&&c.type!==lt?p.delayLeave=(m,y,d)=>{const v=yf(n,u);v[String(u.key)]=u,m[_r]=()=>{y(),m[_r]=void 0,delete f.delayedLeave,u=void 0},f.delayedLeave=()=>{d(),delete f.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function hf(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==lt){t=r;break}}return t}const Jh=zh;function yf(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function ma(e,t,r,n,i){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:m,onLeave:y,onAfterLeave:d,onLeaveCancelled:v,onBeforeAppear:g,onAppear:_,onAfterAppear:E,onAppearCancelled:b}=t,w=String(e.key),T=yf(r,e),x=(C,I)=>{C&&Bt(C,n,9,I)},U=(C,I)=>{const W=I[1];x(C,I),ee(C)?C.every(D=>D.length<=1)&&W():C.length<=1&&W()},B={mode:s,persisted:l,beforeEnter(C){let I=c;if(!r.isMounted)if(o)I=g||c;else return;C[_r]&&C[_r](!0);const W=T[w];W&&Vr(e,W)&&W.el[_r]&&W.el[_r](),x(I,[C])},enter(C){let I=f,W=u,D=p;if(!r.isMounted)if(o)I=_||f,W=E||u,D=b||p;else return;let J=!1;const ie=C[xi]=Y=>{J||(J=!0,Y?x(D,[C]):x(W,[C]),B.delayedLeave&&B.delayedLeave(),C[xi]=void 0)};I?U(I,[C,ie]):ie()},leave(C,I){const W=String(e.key);if(C[xi]&&C[xi](!0),r.isUnmounting)return I();x(m,[C]);let D=!1;const J=C[_r]=ie=>{D||(D=!0,I(),ie?x(v,[C]):x(d,[C]),C[_r]=void 0,T[W]===e&&delete T[W])};T[W]=e,y?U(y,[C,J]):J()},clone(C){const I=ma(C,t,r,n,i);return i&&i(I),I}};return B}function is(e){if(go(e))return e=Ar(e),e.children=null,e}function Ol(e){if(!go(e))return cf(e.type)&&e.children?hf(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&le(r.default))return r.default()}}function Qn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gf(e,t=!1,r){let n=[],i=0;for(let o=0;o1)for(let o=0;oXn(d,t&&(ee(t)?t[v]:t),r,n,i));return}if(zr(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Xn(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?bo(n.component):n.el,s=i?null:o,{i:l,r:c}=e,f=t&&t.r,u=l.refs===Oe?l.refs={}:l.refs,p=l.setupState,m=Ae(p),y=p===Oe?()=>!1:d=>xe(m,d);if(f!=null&&f!==c&&(Ne(f)?(u[f]=null,y(f)&&(p[f]=null)):et(f)&&(f.value=null)),le(c))ci(c,l,12,[s,u]);else{const d=Ne(c),v=et(c);if(d||v){const g=()=>{if(e.f){const _=d?y(c)?p[c]:u[c]:c.value;i?ee(_)&&La(_,o):ee(_)?_.includes(o)||_.push(o):d?(u[c]=[o],y(c)&&(p[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else d?(u[c]=s,y(c)&&(p[c]=s)):v&&(c.value=s,e.k&&(u[e.k]=s))};s?(g.id=-1,dt(g,r)):g()}}}let Tl=!1;const un=()=>{Tl||(console.error("Hydration completed but contains mismatches."),Tl=!0)},Qh=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Xh=e=>e.namespaceURI.includes("MathML"),Pi=e=>{if(e.nodeType===1){if(Qh(e))return"svg";if(Xh(e))return"mathml"}},Ri=e=>e.nodeType===8;function Zh(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:o,parentNode:s,remove:l,insert:c,createComment:f}}=e,u=(b,w)=>{if(!w.hasChildNodes()){r(null,b,w),Qi(),w._vnode=b;return}p(w.firstChild,b,null,null,null),Qi(),w._vnode=b},p=(b,w,T,x,U,B=!1)=>{B=B||!!w.dynamicChildren;const C=Ri(b)&&b.data==="[",I=()=>v(b,w,T,x,U,C),{type:W,ref:D,shapeFlag:J,patchFlag:ie}=w;let Y=b.nodeType;w.el=b,ie===-2&&(B=!1,w.dynamicChildren=null);let z=null;switch(W){case Jr:Y!==3?w.children===""?(c(w.el=i(""),s(b),b),z=b):z=I():(b.data!==w.children&&(un(),b.data=w.children),z=o(b));break;case lt:E(b)?(z=o(b),_(w.el=b.content.firstChild,b,T)):Y!==8||C?z=I():z=o(b);break;case Hn:if(C&&(b=o(b),Y=b.nodeType),Y===1||Y===3){z=b;const ne=!w.children.length;for(let H=0;H{B=B||!!w.dynamicChildren;const{type:C,props:I,patchFlag:W,shapeFlag:D,dirs:J,transition:ie}=w,Y=C==="input"||C==="option";if(Y||W!==-1){J&&Jt(w,null,T,"created");let z=!1;if(E(b)){z=Lf(null,ie)&&T&&T.vnode.props&&T.vnode.props.appear;const H=b.content.firstChild;z&&ie.beforeEnter(H),_(H,b,T),w.el=b=H}if(D&16&&!(I&&(I.innerHTML||I.textContent))){let H=y(b.firstChild,w,b,T,x,U,B);for(;H;){Ci(b,1)||un();const we=H;H=H.nextSibling,l(we)}}else if(D&8){let H=w.children;H[0]===` -`&&(b.tagName==="PRE"||b.tagName==="TEXTAREA")&&(H=H.slice(1)),b.textContent!==H&&(Ci(b,0)||un(),b.textContent=w.children)}if(I){if(Y||!B||W&48){const H=b.tagName.includes("-");for(const we in I)(Y&&(we.endsWith("value")||we==="indeterminate")||oi(we)&&!yn(we)||we[0]==="."||H)&&n(b,we,null,I[we],void 0,T)}else if(I.onClick)n(b,"onClick",null,I.onClick,void 0,T);else if(W&4&&Gr(I.style))for(const H in I.style)I.style[H]}let ne;(ne=I&&I.onVnodeBeforeMount)&&Ct(ne,T,w),J&&Jt(w,null,T,"beforeMount"),((ne=I&&I.onVnodeMounted)||J||z)&&Vf(()=>{ne&&Ct(ne,T,w),z&&ie.enter(b),J&&Jt(w,null,T,"mounted")},x)}return b.nextSibling},y=(b,w,T,x,U,B,C)=>{C=C||!!w.dynamicChildren;const I=w.children,W=I.length;for(let D=0;D{const{slotScopeIds:C}=w;C&&(U=U?U.concat(C):C);const I=s(b),W=y(o(b),w,I,T,x,U,B);return W&&Ri(W)&&W.data==="]"?o(w.anchor=W):(un(),c(w.anchor=f("]"),I,W),W)},v=(b,w,T,x,U,B)=>{if(Ci(b.parentElement,1)||un(),w.el=null,B){const W=g(b);for(;;){const D=o(b);if(D&&D!==W)l(D);else break}}const C=o(b),I=s(b);return l(b),r(null,w,I,C,T,x,Pi(I),U),T&&(T.vnode.el=w.el,Uf(T,w.el)),C},g=(b,w="[",T="]")=>{let x=0;for(;b;)if(b=o(b),b&&Ri(b)&&(b.data===w&&x++,b.data===T)){if(x===0)return o(b);x--}return b},_=(b,w,T)=>{const x=w.parentNode;x&&x.replaceChild(b,w);let U=T;for(;U;)U.vnode.el===w&&(U.vnode.el=U.subTree.el=b),U=U.parent},E=b=>b.nodeType===1&&b.tagName==="TEMPLATE";return[u,p]}const xl="data-allow-mismatch",Yh={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ci(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(xl);)e=e.parentElement;const r=e&&e.getAttribute(xl);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(Yh[t])}}co().requestIdleCallback;co().cancelIdleCallback;const zr=e=>!!e.type.__asyncLoader,go=e=>e.type.__isKeepAlive;function ey(e,t){vf(e,"a",t)}function ty(e,t){vf(e,"da",t)}function vf(e,t,r=Ze){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(mo(t,n,r),r){let i=r.parent;for(;i&&i.parent;)go(i.parent.vnode)&&ry(n,t,r,i),i=i.parent}}function ry(e,t,r,n){const i=mo(t,e,n,!0);wf(()=>{La(n[t],i)},r)}function mo(e,t,r=Ze,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{Or();const l=ui(r),c=Bt(t,r,e,s);return l(),Tr(),c});return n?i.unshift(o):i.push(o),o}}const pr=e=>(t,r=Ze)=>{(!ei||e==="sp")&&mo(e,(...n)=>t(...n),r)},ny=pr("bm"),bf=pr("m"),iy=pr("bu"),oy=pr("u"),_f=pr("bum"),wf=pr("um"),sy=pr("sp"),ay=pr("rtg"),ly=pr("rtc");function cy(e,t=Ze){mo("ec",e,t)}const uy="components";function dv(e,t){return py(uy,e,!0,t)||e}const fy=Symbol.for("v-ndc");function py(e,t,r=!0,n=!1){const i=ze||Ze;if(i){const o=i.type;{const l=Qy(o,!1);if(l&&(l===t||l===Tt(t)||l===lo(Tt(t))))return o}const s=Pl(i[e]||o[e],t)||Pl(i.appContext[e],t);return!s&&n?o:s}}function Pl(e,t){return e&&(e[t]||e[Tt(t)]||e[lo(Tt(t))])}function hv(e,t,r,n){let i;const o=r,s=ee(e);if(s||Ne(e)){const l=s&&Gr(e);let c=!1;l&&(c=!Ft(e),e=ho(e)),i=new Array(e.length);for(let f=0,u=e.length;ft(l,c,void 0,o));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,f=l.length;cYn(t)?!(t.type===lt||t.type===yt&&!Sf(t.children)):!0)?e:null}const va=e=>e?zf(e)?bo(e):va(e.parent):null,Vn=Ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>va(e.parent),$root:e=>va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ga(e),$forceUpdate:e=>e.f||(e.f=()=>{Wa(e.update)}),$nextTick:e=>e.n||(e.n=nf.bind(e.proxy)),$watch:e=>Ny.bind(e)}),os=(e,t)=>e!==Oe&&!e.__isScriptSetup&&xe(e,t),dy={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:s,type:l,appContext:c}=e;let f;if(t[0]!=="$"){const y=s[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(os(n,t))return s[t]=1,n[t];if(i!==Oe&&xe(i,t))return s[t]=2,i[t];if((f=e.propsOptions[0])&&xe(f,t))return s[t]=3,o[t];if(r!==Oe&&xe(r,t))return s[t]=4,r[t];ba&&(s[t]=0)}}const u=Vn[t];let p,m;if(u)return t==="$attrs"&&ot(e.attrs,"get",""),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(r!==Oe&&xe(r,t))return s[t]=4,r[t];if(m=c.config.globalProperties,xe(m,t))return m[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return os(i,t)?(i[t]=r,!0):n!==Oe&&xe(n,t)?(n[t]=r,!0):xe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:o}},s){let l;return!!r[s]||e!==Oe&&xe(e,s)||os(t,s)||(l=o[0])&&xe(l,s)||xe(n,s)||xe(Vn,s)||xe(i.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:xe(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Rl(e){return ee(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let ba=!0;function hy(e){const t=Ga(e),r=e.proxy,n=e.ctx;ba=!1,t.beforeCreate&&Cl(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:c,inject:f,created:u,beforeMount:p,mounted:m,beforeUpdate:y,updated:d,activated:v,deactivated:g,beforeDestroy:_,beforeUnmount:E,destroyed:b,unmounted:w,render:T,renderTracked:x,renderTriggered:U,errorCaptured:B,serverPrefetch:C,expose:I,inheritAttrs:W,components:D,directives:J,filters:ie}=t;if(f&&yy(f,n,null),s)for(const ne in s){const H=s[ne];le(H)&&(n[ne]=H.bind(r))}if(i){const ne=i.call(r,r);Ce(ne)&&(e.data=li(ne))}if(ba=!0,o)for(const ne in o){const H=o[ne],we=le(H)?H.bind(r,r):le(H.get)?H.get.bind(r,r):Zt,oe=!le(H)&&le(H.set)?H.set.bind(r):Zt,He=qr({get:we,set:oe});Object.defineProperty(n,ne,{enumerable:!0,configurable:!0,get:()=>He.value,set:Le=>He.value=Le})}if(l)for(const ne in l)Ef(l[ne],n,r,ne);if(c){const ne=le(c)?c.call(r):c;Reflect.ownKeys(ne).forEach(H=>{wy(H,ne[H])})}u&&Cl(u,e,"c");function z(ne,H){ee(H)?H.forEach(we=>ne(we.bind(r))):H&&ne(H.bind(r))}if(z(ny,p),z(bf,m),z(iy,y),z(oy,d),z(ey,v),z(ty,g),z(cy,B),z(ly,x),z(ay,U),z(_f,E),z(wf,w),z(sy,C),ee(I))if(I.length){const ne=e.exposed||(e.exposed={});I.forEach(H=>{Object.defineProperty(ne,H,{get:()=>r[H],set:we=>r[H]=we})})}else e.exposed||(e.exposed={});T&&e.render===Zt&&(e.render=T),W!=null&&(e.inheritAttrs=W),D&&(e.components=D),J&&(e.directives=J),C&&mf(e)}function yy(e,t,r=Zt){ee(e)&&(e=_a(e));for(const n in e){const i=e[n];let o;Ce(i)?"default"in i?o=ji(i.from||n,i.default,!0):o=ji(i.from||n):o=ji(i),et(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[n]=o}}function Cl(e,t,r){Bt(ee(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ef(e,t,r,n){let i=n.includes(".")?$f(r,n):()=>r[n];if(Ne(e)){const o=t[e];le(o)&&Bi(i,o)}else if(le(e))Bi(i,e.bind(r));else if(Ce(e))if(ee(e))e.forEach(o=>Ef(o,t,r,n));else{const o=le(e.handler)?e.handler.bind(r):t[e.handler];le(o)&&Bi(i,o,e)}}function Ga(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!r&&!n?c=t:(c={},i.length&&i.forEach(f=>Zi(c,f,s,!0)),Zi(c,t,s)),Ce(t)&&o.set(t,c),c}function Zi(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&Zi(e,o,r,!0),i&&i.forEach(s=>Zi(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const l=gy[s]||r&&r[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const gy={data:Il,props:Fl,emits:Fl,methods:Mn,computed:Mn,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Mn,directives:Mn,watch:vy,provide:Il,inject:my};function Il(e,t){return t?e?function(){return Ve(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function my(e,t){return Mn(_a(e),_a(t))}function _a(e){if(ee(e)){const t={};for(let r=0;r1)return r&&le(t)?t.call(n&&n.proxy):t}}const Of={},Tf=()=>Object.create(Of),xf=e=>Object.getPrototypeOf(e)===Of;function Sy(e,t,r,n=!1){const i={},o=Tf();e.propsDefaults=Object.create(null),Pf(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);r?e.props=n?i:Rh(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Ey(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,l=Ae(i),[c]=e.propsOptions;let f=!1;if((n||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[m,y]=Rf(p,t,!0);Ve(s,m),y&&l.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return Ce(e)&&n.set(e,dn),dn;if(ee(o))for(let u=0;ue[0]==="_"||e==="$stable",za=e=>ee(e)?e.map(It):[It(e)],Oy=(e,t,r)=>{if(t._n)return t;const n=Wh((...i)=>za(t(...i)),r);return n._c=!1,n},If=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Cf(i))continue;const o=e[i];if(le(o))t[i]=Oy(i,o,n);else if(o!=null){const s=za(o);t[i]=()=>s}}},Ff=(e,t)=>{const r=za(t);e.slots.default=()=>r},Df=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},Ty=(e,t,r)=>{const n=e.slots=Tf();if(e.vnode.shapeFlag&32){const i=t._;i?(Df(n,t,r),r&&Lu(n,"_",i,!0)):If(t,n)}else t&&Ff(e,t)},xy=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=Oe;if(n.shapeFlag&32){const l=t._;l?r&&l===1?o=!1:Df(i,t,r):(o=!t.$stable,If(t,i)),s=t}else t&&(Ff(e,t),s={default:1});if(o)for(const l in i)!Cf(l)&&s[l]==null&&delete i[l]},dt=Vf;function Py(e){return Nf(e)}function Ry(e){return Nf(e,Zh)}function Nf(e,t){const r=co();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:s,createText:l,createComment:c,setText:f,setElementText:u,parentNode:p,nextSibling:m,setScopeId:y=Zt,insertStaticContent:d}=e,v=(S,O,F,$=null,M=null,j=null,K=void 0,k=null,V=!!O.dynamicChildren)=>{if(S===O)return;S&&!Vr(S,O)&&($=ve(S),Le(S,M,j,!0),S=null),O.patchFlag===-2&&(V=!1,O.dynamicChildren=null);const{type:q,ref:X,shapeFlag:G}=O;switch(q){case Jr:g(S,O,F,$);break;case lt:_(S,O,F,$);break;case Hn:S==null&&E(O,F,$,K);break;case yt:D(S,O,F,$,M,j,K,k,V);break;default:G&1?T(S,O,F,$,M,j,K,k,V):G&6?J(S,O,F,$,M,j,K,k,V):(G&64||G&128)&&q.process(S,O,F,$,M,j,K,k,V,ye)}X!=null&&M&&Xn(X,S&&S.ref,j,O||S,!O)},g=(S,O,F,$)=>{if(S==null)n(O.el=l(O.children),F,$);else{const M=O.el=S.el;O.children!==S.children&&f(M,O.children)}},_=(S,O,F,$)=>{S==null?n(O.el=c(O.children||""),F,$):O.el=S.el},E=(S,O,F,$)=>{[S.el,S.anchor]=d(S.children,O,F,$,S.el,S.anchor)},b=({el:S,anchor:O},F,$)=>{let M;for(;S&&S!==O;)M=m(S),n(S,F,$),S=M;n(O,F,$)},w=({el:S,anchor:O})=>{let F;for(;S&&S!==O;)F=m(S),i(S),S=F;i(O)},T=(S,O,F,$,M,j,K,k,V)=>{O.type==="svg"?K="svg":O.type==="math"&&(K="mathml"),S==null?x(O,F,$,M,j,K,k,V):C(S,O,M,j,K,k,V)},x=(S,O,F,$,M,j,K,k)=>{let V,q;const{props:X,shapeFlag:G,transition:Q,dirs:te}=S;if(V=S.el=s(S.type,j,X&&X.is,X),G&8?u(V,S.children):G&16&&B(S.children,V,null,$,M,ss(S,j),K,k),te&&Jt(S,null,$,"created"),U(V,S,S.scopeId,K,$),X){for(const de in X)de!=="value"&&!yn(de)&&o(V,de,null,X[de],j,$);"value"in X&&o(V,"value",null,X.value,j),(q=X.onVnodeBeforeMount)&&Ct(q,$,S)}te&&Jt(S,null,$,"beforeMount");const ae=Lf(M,Q);ae&&Q.beforeEnter(V),n(V,O,F),((q=X&&X.onVnodeMounted)||ae||te)&&dt(()=>{q&&Ct(q,$,S),ae&&Q.enter(V),te&&Jt(S,null,$,"mounted")},M)},U=(S,O,F,$,M)=>{if(F&&y(S,F),$)for(let j=0;j<$.length;j++)y(S,$[j]);if(M){let j=M.subTree;if(O===j||qf(j.type)&&(j.ssContent===O||j.ssFallback===O)){const K=M.vnode;U(S,K,K.scopeId,K.slotScopeIds,M.parent)}}},B=(S,O,F,$,M,j,K,k,V=0)=>{for(let q=V;q{const k=O.el=S.el;let{patchFlag:V,dynamicChildren:q,dirs:X}=O;V|=S.patchFlag&16;const G=S.props||Oe,Q=O.props||Oe;let te;if(F&&Mr(F,!1),(te=Q.onVnodeBeforeUpdate)&&Ct(te,F,O,S),X&&Jt(O,S,F,"beforeUpdate"),F&&Mr(F,!0),(G.innerHTML&&Q.innerHTML==null||G.textContent&&Q.textContent==null)&&u(k,""),q?I(S.dynamicChildren,q,k,F,$,ss(O,M),j):K||H(S,O,k,null,F,$,ss(O,M),j,!1),V>0){if(V&16)W(k,G,Q,F,M);else if(V&2&&G.class!==Q.class&&o(k,"class",null,Q.class,M),V&4&&o(k,"style",G.style,Q.style,M),V&8){const ae=O.dynamicProps;for(let de=0;de{te&&Ct(te,F,O,S),X&&Jt(O,S,F,"updated")},$)},I=(S,O,F,$,M,j,K)=>{for(let k=0;k{if(O!==F){if(O!==Oe)for(const j in O)!yn(j)&&!(j in F)&&o(S,j,O[j],null,M,$);for(const j in F){if(yn(j))continue;const K=F[j],k=O[j];K!==k&&j!=="value"&&o(S,j,k,K,M,$)}"value"in F&&o(S,"value",O.value,F.value,M)}},D=(S,O,F,$,M,j,K,k,V)=>{const q=O.el=S?S.el:l(""),X=O.anchor=S?S.anchor:l("");let{patchFlag:G,dynamicChildren:Q,slotScopeIds:te}=O;te&&(k=k?k.concat(te):te),S==null?(n(q,F,$),n(X,F,$),B(O.children||[],F,X,M,j,K,k,V)):G>0&&G&64&&Q&&S.dynamicChildren?(I(S.dynamicChildren,Q,F,M,j,K,k),(O.key!=null||M&&O===M.subTree)&&Ja(S,O,!0)):H(S,O,F,X,M,j,K,k,V)},J=(S,O,F,$,M,j,K,k,V)=>{O.slotScopeIds=k,S==null?O.shapeFlag&512?M.ctx.activate(O,F,$,K,V):ie(O,F,$,M,j,K,V):Y(S,O,V)},ie=(S,O,F,$,M,j,K)=>{const k=S.component=Wy(S,$,M);if(go(S)&&(k.ctx.renderer=ye),Ky(k,!1,K),k.asyncDep){if(M&&M.registerDep(k,z,K),!S.el){const V=k.subTree=Ye(lt);_(null,V,O,F)}}else z(k,S,O,F,M,j,K)},Y=(S,O,F)=>{const $=O.component=S.component;if(jy(S,O,F))if($.asyncDep&&!$.asyncResolved){ne($,O,F);return}else $.next=O,$.update();else O.el=S.el,$.vnode=O},z=(S,O,F,$,M,j,K)=>{const k=()=>{if(S.isMounted){let{next:G,bu:Q,u:te,parent:ae,vnode:de}=S;{const je=Mf(S);if(je){G&&(G.el=de.el,ne(S,G,K)),je.asyncDep.then(()=>{S.isUnmounted||k()});return}}let he=G,Pe;Mr(S,!1),G?(G.el=de.el,ne(S,G,K)):G=de,Q&&Mi(Q),(Pe=G.props&&G.props.onVnodeBeforeUpdate)&&Ct(Pe,ae,G,de),Mr(S,!0);const De=as(S),Ke=S.subTree;S.subTree=De,v(Ke,De,p(Ke.el),ve(Ke),S,M,j),G.el=De.el,he===null&&Uf(S,De.el),te&&dt(te,M),(Pe=G.props&&G.props.onVnodeUpdated)&&dt(()=>Ct(Pe,ae,G,de),M)}else{let G;const{el:Q,props:te}=O,{bm:ae,m:de,parent:he,root:Pe,type:De}=S,Ke=zr(O);if(Mr(S,!1),ae&&Mi(ae),!Ke&&(G=te&&te.onVnodeBeforeMount)&&Ct(G,he,O),Mr(S,!0),Q&&Me){const je=()=>{S.subTree=as(S),Me(Q,S.subTree,S,M,null)};Ke&&De.__asyncHydrate?De.__asyncHydrate(Q,S,je):je()}else{Pe.ce&&Pe.ce._injectChildStyle(De);const je=S.subTree=as(S);v(null,je,F,$,S,M,j),O.el=je.el}if(de&&dt(de,M),!Ke&&(G=te&&te.onVnodeMounted)){const je=O;dt(()=>Ct(G,he,je),M)}(O.shapeFlag&256||he&&zr(he.vnode)&&he.vnode.shapeFlag&256)&&S.a&&dt(S.a,M),S.isMounted=!0,O=F=$=null}};S.scope.on();const V=S.effect=new Bu(k);S.scope.off();const q=S.update=V.run.bind(V),X=S.job=V.runIfDirty.bind(V);X.i=S,X.id=S.uid,V.scheduler=()=>Wa(X),Mr(S,!0),q()},ne=(S,O,F)=>{O.component=S;const $=S.vnode.props;S.vnode=O,S.next=null,Ey(S,O.props,$,F),xy(S,O.children,F),Or(),wl(S),Tr()},H=(S,O,F,$,M,j,K,k,V=!1)=>{const q=S&&S.children,X=S?S.shapeFlag:0,G=O.children,{patchFlag:Q,shapeFlag:te}=O;if(Q>0){if(Q&128){oe(q,G,F,$,M,j,K,k,V);return}else if(Q&256){we(q,G,F,$,M,j,K,k,V);return}}te&8?(X&16&&Re(q,M,j),G!==q&&u(F,G)):X&16?te&16?oe(q,G,F,$,M,j,K,k,V):Re(q,M,j,!0):(X&8&&u(F,""),te&16&&B(G,F,$,M,j,K,k,V))},we=(S,O,F,$,M,j,K,k,V)=>{S=S||dn,O=O||dn;const q=S.length,X=O.length,G=Math.min(q,X);let Q;for(Q=0;QX?Re(S,M,j,!0,!1,G):B(O,F,$,M,j,K,k,V,G)},oe=(S,O,F,$,M,j,K,k,V)=>{let q=0;const X=O.length;let G=S.length-1,Q=X-1;for(;q<=G&&q<=Q;){const te=S[q],ae=O[q]=V?wr(O[q]):It(O[q]);if(Vr(te,ae))v(te,ae,F,null,M,j,K,k,V);else break;q++}for(;q<=G&&q<=Q;){const te=S[G],ae=O[Q]=V?wr(O[Q]):It(O[Q]);if(Vr(te,ae))v(te,ae,F,null,M,j,K,k,V);else break;G--,Q--}if(q>G){if(q<=Q){const te=Q+1,ae=teQ)for(;q<=G;)Le(S[q],M,j,!0),q++;else{const te=q,ae=q,de=new Map;for(q=ae;q<=Q;q++){const R=O[q]=V?wr(O[q]):It(O[q]);R.key!=null&&de.set(R.key,q)}let he,Pe=0;const De=Q-ae+1;let Ke=!1,je=0;const tt=new Array(De);for(q=0;q=De){Le(R,M,j,!0);continue}let re;if(R.key!=null)re=de.get(R.key);else for(he=ae;he<=Q;he++)if(tt[he-ae]===0&&Vr(R,O[he])){re=he;break}re===void 0?Le(R,M,j,!0):(tt[re-ae]=q+1,re>=je?je=re:Ke=!0,v(R,O[re],F,null,M,j,K,k,V),Pe++)}const P=Ke?Cy(tt):dn;for(he=P.length-1,q=De-1;q>=0;q--){const R=ae+q,re=O[R],ge=R+1{const{el:j,type:K,transition:k,children:V,shapeFlag:q}=S;if(q&6){He(S.component.subTree,O,F,$);return}if(q&128){S.suspense.move(O,F,$);return}if(q&64){K.move(S,O,F,ye);return}if(K===yt){n(j,O,F);for(let G=0;Gk.enter(j),M);else{const{leave:G,delayLeave:Q,afterLeave:te}=k,ae=()=>n(j,O,F),de=()=>{G(j,()=>{ae(),te&&te()})};Q?Q(j,ae,de):de()}else n(j,O,F)},Le=(S,O,F,$=!1,M=!1)=>{const{type:j,props:K,ref:k,children:V,dynamicChildren:q,shapeFlag:X,patchFlag:G,dirs:Q,cacheIndex:te}=S;if(G===-2&&(M=!1),k!=null&&Xn(k,null,F,S,!0),te!=null&&(O.renderCache[te]=void 0),X&256){O.ctx.deactivate(S);return}const ae=X&1&&Q,de=!zr(S);let he;if(de&&(he=K&&K.onVnodeBeforeUnmount)&&Ct(he,O,S),X&6)fe(S.component,F,$);else{if(X&128){S.suspense.unmount(F,$);return}ae&&Jt(S,null,O,"beforeUnmount"),X&64?S.type.remove(S,O,F,ye,$):q&&!q.hasOnce&&(j!==yt||G>0&&G&64)?Re(q,O,F,!1,!0):(j===yt&&G&384||!M&&X&16)&&Re(V,O,F),$&&Be(S)}(de&&(he=K&&K.onVnodeUnmounted)||ae)&&dt(()=>{he&&Ct(he,O,S),ae&&Jt(S,null,O,"unmounted")},F)},Be=S=>{const{type:O,el:F,anchor:$,transition:M}=S;if(O===yt){ct(F,$);return}if(O===Hn){w(S);return}const j=()=>{i(F),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(S.shapeFlag&1&&M&&!M.persisted){const{leave:K,delayLeave:k}=M,V=()=>K(F,j);k?k(S.el,j,V):V()}else j()},ct=(S,O)=>{let F;for(;S!==O;)F=m(S),i(S),S=F;i(O)},fe=(S,O,F)=>{const{bum:$,scope:M,job:j,subTree:K,um:k,m:V,a:q}=S;Nl(V),Nl(q),$&&Mi($),M.stop(),j&&(j.flags|=8,Le(K,S,O,F)),k&&dt(k,O),dt(()=>{S.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},Re=(S,O,F,$=!1,M=!1,j=0)=>{for(let K=j;K{if(S.shapeFlag&6)return ve(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const O=m(S.anchor||S.el),F=O&&O[lf];return F?m(F):O};let pe=!1;const _e=(S,O,F)=>{S==null?O._vnode&&Le(O._vnode,null,null,!0):v(O._vnode||null,S,O,null,null,null,F),O._vnode=S,pe||(pe=!0,wl(),Qi(),pe=!1)},ye={p:v,um:Le,m:He,r:Be,mt:ie,mc:B,pc:H,pbc:I,n:ve,o:e};let Fe,Me;return t&&([Fe,Me]=t(ye)),{render:_e,hydrate:Fe,createApp:_y(_e,Fe)}}function ss({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Mr({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Lf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ja(e,t,r=!1){const n=e.children,i=t.children;if(ee(n)&&ee(i))for(let o=0;o>1,e[r[l]]0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}function Mf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Mf(t)}function Nl(e){if(e)for(let t=0;tji(Iy);function Dy(e,t){return Qa(e,null,{flush:"sync"})}function Bi(e,t,r){return Qa(e,t,r)}function Qa(e,t,r=Oe){const{immediate:n,deep:i,flush:o,once:s}=r,l=Ve({},r),c=t&&n||!t&&o!=="post";let f;if(ei){if(o==="sync"){const y=Fy();f=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=Zt,y.resume=Zt,y.pause=Zt,y}}const u=Ze;l.call=(y,d,v)=>Bt(y,u,d,v);let p=!1;o==="post"?l.scheduler=y=>{dt(y,u&&u.suspense)}:o!=="sync"&&(p=!0,l.scheduler=(y,d)=>{d?y():Wa(y)}),l.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,u&&(y.id=u.uid,y.i=u))};const m=qh(e,t,l);return ei&&(f?f.push(m):c&&m()),m}function Ny(e,t,r){const n=this.proxy,i=Ne(e)?e.includes(".")?$f(n,e):()=>n[e]:e.bind(n,n);let o;le(t)?o=t:(o=t.handler,r=t);const s=ui(this),l=Qa(i,o.bind(n),r);return s(),l}function $f(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i{let u,p=Oe,m;return Dy(()=>{const y=e[i];bt(u,y)&&(u=y,f())}),{get(){return c(),r.get?r.get(u):u},set(y){const d=r.set?r.set(y):y;if(!bt(d,u)&&!(p!==Oe&&bt(y,p)))return;const v=n.vnode.props;v&&(t in v||i in v||o in v)&&(`onUpdate:${t}`in v||`onUpdate:${i}`in v||`onUpdate:${o}`in v)||(u=y,f()),n.emit(`update:${t}`,d),bt(y,d)&&bt(y,p)&&!bt(d,m)&&f(),p=y,m=d}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Oe:l,done:!1}:{done:!0}}}},l}const jf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Tt(t)}Modifiers`]||e[`${fr(t)}Modifiers`];function Ly(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Oe;let i=r;const o=t.startsWith("update:"),s=o&&jf(n,t.slice(7));s&&(s.trim&&(i=r.map(u=>Ne(u)?u.trim():u)),s.number&&(i=r.map(Ki)));let l,c=n[l=Yo(t)]||n[l=Yo(Tt(t))];!c&&o&&(c=n[l=Yo(fr(t))]),c&&Bt(c,e,6,i);const f=n[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Bt(f,e,6,i)}}function Bf(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let s={},l=!1;if(!le(e)){const c=f=>{const u=Bf(f,t,!0);u&&(l=!0,Ve(s,u))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(Ce(e)&&n.set(e,null),null):(ee(o)?o.forEach(c=>s[c]=null):Ve(s,o),Ce(e)&&n.set(e,s),s)}function vo(e,t){return!e||!oi(t)?!1:(t=t.slice(2).replace(/Once$/,""),xe(e,t[0].toLowerCase()+t.slice(1))||xe(e,fr(t))||xe(e,t))}function as(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:s,attrs:l,emit:c,render:f,renderCache:u,props:p,data:m,setupState:y,ctx:d,inheritAttrs:v}=e,g=Xi(e);let _,E;try{if(r.shapeFlag&4){const w=i||n,T=w;_=It(f.call(T,w,u,p,y,m,d)),E=l}else{const w=t;_=It(w.length>1?w(p,{attrs:l,slots:s,emit:c}):w(p,null)),E=t.props?l:My(l)}}catch(w){kn.length=0,yo(w,e,1),_=Ye(lt)}let b=_;if(E&&v!==!1){const w=Object.keys(E),{shapeFlag:T}=b;w.length&&T&7&&(o&&w.some(Na)&&(E=$y(E,o)),b=Ar(b,E,!1,!0))}return r.dirs&&(b=Ar(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(r.dirs):r.dirs),r.transition&&Qn(b,r.transition),_=b,Xi(g),_}const My=e=>{let t;for(const r in e)(r==="class"||r==="style"||oi(r))&&((t||(t={}))[r]=e[r]);return t},$y=(e,t)=>{const r={};for(const n in e)(!Na(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function jy(e,t,r){const{props:n,children:i,component:o}=e,{props:s,children:l,patchFlag:c}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?Ll(n,s,f):!!s;if(c&8){const u=t.dynamicProps;for(let p=0;pe.__isSuspense;function Vf(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):kh(e)}const yt=Symbol.for("v-fgt"),Jr=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),Hn=Symbol.for("v-stc"),kn=[];let At=null;function Sa(e=!1){kn.push(At=e?null:[])}function By(){kn.pop(),At=kn[kn.length-1]||null}let Zn=1;function Ml(e,t=!1){Zn+=e,e<0&&At&&t&&(At.hasOnce=!0)}function Hf(e){return e.dynamicChildren=Zn>0?At||dn:null,By(),Zn>0&&At&&At.push(e),e}function mv(e,t,r,n,i,o){return Hf(Wf(e,t,r,n,i,o,!0))}function Ea(e,t,r,n,i){return Hf(Ye(e,t,r,n,i,!0))}function Yn(e){return e?e.__v_isVNode===!0:!1}function Vr(e,t){return e.type===t.type&&e.key===t.key}const kf=({key:e})=>e??null,Ui=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Ne(e)||et(e)||le(e)?{i:ze,r:e,k:t,f:!!r}:e:null);function Wf(e,t=null,r=null,n=0,i=null,o=e===yt?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kf(t),ref:t&&Ui(t),scopeId:af,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return l?(Xa(c,r),o&128&&e.normalize(c)):r&&(c.shapeFlag|=Ne(r)?8:16),Zn>0&&!s&&At&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&At.push(c),c}const Ye=Uy;function Uy(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===fy)&&(e=lt),Yn(e)){const l=Ar(e,t,!0);return r&&Xa(l,r),Zn>0&&!o&&At&&(l.shapeFlag&6?At[At.indexOf(e)]=l:At.push(l)),l.patchFlag=-2,l}if(Xy(e)&&(e=e.__vccOpts),t){t=qy(t);let{class:l,style:c}=t;l&&!Ne(l)&&(t.class=fo(l)),Ce(c)&&(Ha(c)&&!ee(c)&&(c=Ve({},c)),t.style=uo(c))}const s=Ne(e)?1:qf(e)?128:cf(e)?64:Ce(e)?4:le(e)?2:0;return Wf(e,t,r,n,i,s,o,!0)}function qy(e){return e?Ha(e)||xf(e)?Ve({},e):e:null}function Ar(e,t,r=!1,n=!1){const{props:i,ref:o,patchFlag:s,children:l,transition:c}=e,f=t?Vy(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&kf(f),ref:t&&t.ref?r&&o?ee(o)?o.concat(Ui(t)):[o,Ui(t)]:Ui(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ar(e.ssContent),ssFallback:e.ssFallback&&Ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&Qn(u,c.clone(u)),u}function Kf(e=" ",t=0){return Ye(Jr,null,e,t)}function vv(e,t){const r=Ye(Hn,null,e);return r.staticCount=t,r}function bv(e="",t=!1){return t?(Sa(),Ea(lt,null,e)):Ye(lt,null,e)}function It(e){return e==null||typeof e=="boolean"?Ye(lt):ee(e)?Ye(yt,null,e.slice()):Yn(e)?wr(e):Ye(Jr,null,String(e))}function wr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ar(e)}function Xa(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ee(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Xa(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!xf(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:ze},r=32):(t=String(t),n&64?(r=16,t=[Kf(t)]):r=8);e.children=t,e.shapeFlag|=r}function Vy(...e){const t={};for(let r=0;rZe||ze;let Yi,Aa;{const e=co(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Yi=t("__VUE_INSTANCE_SETTERS__",r=>Ze=r),Aa=t("__VUE_SSR_SETTERS__",r=>ei=r)}const ui=e=>{const t=Ze;return Yi(e),e.scope.on(),()=>{e.scope.off(),Yi(t)}},$l=()=>{Ze&&Ze.scope.off(),Yi(null)};function zf(e){return e.vnode.shapeFlag&4}let ei=!1;function Ky(e,t=!1,r=!1){t&&Aa(t);const{props:n,children:i}=e.vnode,o=zf(e);Sy(e,n,o,t),Ty(e,i,r);const s=o?Gy(e,t):void 0;return t&&Aa(!1),s}function Gy(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,dy);const{setup:n}=r;if(n){Or();const i=e.setupContext=n.length>1?Jy(e):null,o=ui(e),s=ci(n,e,0,[e.props,i]),l=Fu(s);if(Tr(),o(),(l||e.sp)&&!zr(e)&&mf(e),l){if(s.then($l,$l),t)return s.then(c=>{jl(e,c,t)}).catch(c=>{yo(c,e,0)});e.asyncDep=s}else jl(e,s,t)}else Jf(e,t)}function jl(e,t,r){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ce(t)&&(e.setupState=tf(t)),Jf(e,r)}let Bl;function Jf(e,t,r){const n=e.type;if(!e.render){if(!t&&Bl&&!n.render){const i=n.template||Ga(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=n,f=Ve(Ve({isCustomElement:o,delimiters:l},s),c);n.render=Bl(i,f)}}e.render=n.render||Zt}{const i=ui(e);Or();try{hy(e)}finally{Tr(),i()}}}const zy={get(e,t){return ot(e,"get",""),e[t]}};function Jy(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,zy),slots:e.slots,emit:e.emit,expose:t}}function bo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tf(ha(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Vn)return Vn[r](e)},has(t,r){return r in t||r in Vn}})):e.proxy}function Qy(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Xy(e){return le(e)&&"__vccOpts"in e}const qr=(e,t)=>Bh(e,t,ei);function Qr(e,t,r){const n=arguments.length;return n===2?Ce(t)&&!ee(t)?Yn(t)?Ye(e,null,[t]):Ye(e,t):Ye(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Yn(r)&&(r=[r]),Ye(e,t,r))}const Zy="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Oa;const Ul=typeof window<"u"&&window.trustedTypes;if(Ul)try{Oa=Ul.createPolicy("vue",{createHTML:e=>e})}catch{}const Qf=Oa?e=>Oa.createHTML(e):e=>e,Yy="http://www.w3.org/2000/svg",eg="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,ql=ar&&ar.createElement("template"),tg={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?ar.createElementNS(Yy,e):t==="mathml"?ar.createElementNS(eg,e):r?ar.createElement(e,{is:r}):ar.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ar.createTextNode(e),createComment:e=>ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const s=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{ql.innerHTML=Qf(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=ql.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},vr="transition",Fn="animation",ti=Symbol("_vtc"),Xf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},rg=Ve({},pf,Xf),ng=e=>(e.displayName="Transition",e.props=rg,e),_v=ng((e,{slots:t})=>Qr(Jh,ig(e),t)),$r=(e,t=[])=>{ee(e)?e.forEach(r=>r(...t)):e&&e(...t)},Vl=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function ig(e){const t={};for(const D in e)D in Xf||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:c=o,appearActiveClass:f=s,appearToClass:u=l,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:m=`${r}-leave-active`,leaveToClass:y=`${r}-leave-to`}=e,d=og(i),v=d&&d[0],g=d&&d[1],{onBeforeEnter:_,onEnter:E,onEnterCancelled:b,onLeave:w,onLeaveCancelled:T,onBeforeAppear:x=_,onAppear:U=E,onAppearCancelled:B=b}=t,C=(D,J,ie,Y)=>{D._enterCancelled=Y,jr(D,J?u:l),jr(D,J?f:s),ie&&ie()},I=(D,J)=>{D._isLeaving=!1,jr(D,p),jr(D,y),jr(D,m),J&&J()},W=D=>(J,ie)=>{const Y=D?U:E,z=()=>C(J,D,ie);$r(Y,[J,z]),Hl(()=>{jr(J,D?c:o),sr(J,D?u:l),Vl(Y)||kl(J,n,v,z)})};return Ve(t,{onBeforeEnter(D){$r(_,[D]),sr(D,o),sr(D,s)},onBeforeAppear(D){$r(x,[D]),sr(D,c),sr(D,f)},onEnter:W(!1),onAppear:W(!0),onLeave(D,J){D._isLeaving=!0;const ie=()=>I(D,J);sr(D,p),D._enterCancelled?(sr(D,m),Gl()):(Gl(),sr(D,m)),Hl(()=>{D._isLeaving&&(jr(D,p),sr(D,y),Vl(w)||kl(D,n,g,ie))}),$r(w,[D,ie])},onEnterCancelled(D){C(D,!1,void 0,!0),$r(b,[D])},onAppearCancelled(D){C(D,!0,void 0,!0),$r(B,[D])},onLeaveCancelled(D){I(D),$r(T,[D])}})}function og(e){if(e==null)return null;if(Ce(e))return[ls(e.enter),ls(e.leave)];{const t=ls(e);return[t,t]}}function ls(e){return Yd(e)}function sr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ti]||(e[ti]=new Set)).add(t)}function jr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[ti];r&&(r.delete(t),r.size||(e[ti]=void 0))}function Hl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let sg=0;function kl(e,t,r,n){const i=e._endId=++sg,o=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(o,r);const{type:s,timeout:l,propCount:c}=ag(e,t);if(!s)return n();const f=s+"end";let u=0;const p=()=>{e.removeEventListener(f,m),o()},m=y=>{y.target===e&&++u>=c&&p()};setTimeout(()=>{u(r[d]||"").split(", "),i=n(`${vr}Delay`),o=n(`${vr}Duration`),s=Wl(i,o),l=n(`${Fn}Delay`),c=n(`${Fn}Duration`),f=Wl(l,c);let u=null,p=0,m=0;t===vr?s>0&&(u=vr,p=s,m=o.length):t===Fn?f>0&&(u=Fn,p=f,m=c.length):(p=Math.max(s,f),u=p>0?s>f?vr:Fn:null,m=u?u===vr?o.length:c.length:0);const y=u===vr&&/\b(transform|all)(,|$)/.test(n(`${vr}Property`).toString());return{type:u,timeout:p,propCount:m,hasTransform:y}}function Wl(e,t){for(;e.lengthKl(r)+Kl(e[n])))}function Kl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Gl(){return document.body.offsetHeight}function lg(e,t,r){const n=e[ti];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const eo=Symbol("_vod"),Zf=Symbol("_vsh"),wv={beforeMount(e,{value:t},{transition:r}){e[eo]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Dn(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Dn(e,!0),n.enter(e)):n.leave(e,()=>{Dn(e,!1)}):Dn(e,t))},beforeUnmount(e,{value:t}){Dn(e,t)}};function Dn(e,t){e.style.display=t?e[eo]:"none",e[Zf]=!t}const cg=Symbol(""),ug=/(^|;)\s*display\s*:/;function fg(e,t,r){const n=e.style,i=Ne(r);let o=!1;if(r&&!i){if(t)if(Ne(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();r[l]==null&&qi(n,l,"")}else for(const s in t)r[s]==null&&qi(n,s,"");for(const s in r)s==="display"&&(o=!0),qi(n,s,r[s])}else if(i){if(t!==r){const s=n[cg];s&&(r+=";"+s),n.cssText=r,o=ug.test(r)}}else t&&e.removeAttribute("style");eo in e&&(e[eo]=o?n.display:"",e[Zf]&&(n.display="none"))}const zl=/\s*!important$/;function qi(e,t,r){if(ee(r))r.forEach(n=>qi(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=pg(e,t);zl.test(r)?e.setProperty(fr(n),r.replace(zl,""),"important"):e[n]=r}}const Jl=["Webkit","Moz","ms"],cs={};function pg(e,t){const r=cs[t];if(r)return r;let n=Tt(t);if(n!=="filter"&&n in e)return cs[t]=n;n=lo(n);for(let i=0;ius||(gg.then(()=>us=0),us=Date.now());function vg(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Bt(bg(n,r.value),t,5,[n])};return r.value=e,r.attached=mg(),r}function bg(e,t){if(ee(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const tc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_g=(e,t,r,n,i,o)=>{const s=i==="svg";t==="class"?lg(e,n,s):t==="style"?fg(e,r,n):oi(t)?Na(t)||hg(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wg(e,t,n,s))?(Zl(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Xl(e,t,n,s,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ne(n))?Zl(e,Tt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Xl(e,t,n,s))};function wg(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&tc(t)&&le(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return tc(t)&&Ne(r)?!1:t in e}const bn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?r=>Mi(t,r):t};function Sg(e){e.target.composing=!0}function rc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),Sv={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[ur]=bn(i);const o=n||i.props&&i.props.type==="number";Sr(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;r&&(l=l.trim()),o&&(l=Ki(l)),e[ur](l)}),r&&Sr(e,"change",()=>{e.value=e.value.trim()}),t||(Sr(e,"compositionstart",Sg),Sr(e,"compositionend",rc),Sr(e,"change",rc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:o}},s){if(e[ur]=bn(s),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Ki(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===c)||(e.value=c))}},Ev={deep:!0,created(e,t,r){e[ur]=bn(r),Sr(e,"change",()=>{const n=e._modelValue,i=ri(e),o=e.checked,s=e[ur];if(ee(n)){const l=$a(n,i),c=l!==-1;if(o&&!c)s(n.concat(i));else if(!o&&c){const f=[...n];f.splice(l,1),s(f)}}else if(Sn(n)){const l=new Set(n);o?l.add(i):l.delete(i),s(l)}else s(Yf(e,o))})},mounted:nc,beforeUpdate(e,t,r){e[ur]=bn(r),nc(e,t,r)}};function nc(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(ee(t))i=$a(t,n.props.value)>-1;else if(Sn(t))i=t.has(n.props.value);else{if(t===r)return;i=ai(t,Yf(e,!0))}e.checked!==i&&(e.checked=i)}const Av={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=Sn(t);Sr(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?Ki(ri(s)):ri(s));e[ur](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,nf(()=>{e._assigning=!1})}),e[ur]=bn(n)},mounted(e,{value:t}){ic(e,t)},beforeUpdate(e,t,r){e[ur]=bn(r)},updated(e,{value:t}){e._assigning||ic(e,t)}};function ic(e,t){const r=e.multiple,n=ee(t);if(!(r&&!n&&!Sn(t))){for(let i=0,o=e.options.length;iString(f)===String(l)):s.selected=$a(t,l)>-1}else s.selected=t.has(l);else if(ai(ri(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ri(e){return"_value"in e?e._value:e.value}function Yf(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Eg=["ctrl","shift","alt","meta"],Ag={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Eg.some(r=>e[`${r}Key`]&&!t.includes(r))},Ov=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...o)=>{for(let s=0;s{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const o=fr(i.key);if(t.some(s=>s===o||Og[s]===o))return e(i)})},ep=Ve({patchProp:_g},tg);let Wn,oc=!1;function Tg(){return Wn||(Wn=Py(ep))}function xg(){return Wn=oc?Wn:Ry(ep),oc=!0,Wn}const Pg=(...e)=>{const t=Tg().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=rp(n);if(!i)return;const o=t._component;!le(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=r(i,!1,tp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},Rg=(...e)=>{const t=xg().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=rp(n);if(i)return r(i,!0,tp(i))},t};function tp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rp(e){return Ne(e)?document.querySelector(e):e}var Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var fs,sc;function Ig(){if(sc)return fs;sc=1;var e=function(E){return t(E)&&!r(E)};function t(_){return!!_&&typeof _=="object"}function r(_){var E=Object.prototype.toString.call(_);return E==="[object RegExp]"||E==="[object Date]"||o(_)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function o(_){return _.$$typeof===i}function s(_){return Array.isArray(_)?[]:{}}function l(_,E){return E.clone!==!1&&E.isMergeableObject(_)?v(s(_),_,E):_}function c(_,E,b){return _.concat(E).map(function(w){return l(w,b)})}function f(_,E){if(!E.customMerge)return v;var b=E.customMerge(_);return typeof b=="function"?b:v}function u(_){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(_).filter(function(E){return Object.propertyIsEnumerable.call(_,E)}):[]}function p(_){return Object.keys(_).concat(u(_))}function m(_,E){try{return E in _}catch{return!1}}function y(_,E){return m(_,E)&&!(Object.hasOwnProperty.call(_,E)&&Object.propertyIsEnumerable.call(_,E))}function d(_,E,b){var w={};return b.isMergeableObject(_)&&p(_).forEach(function(T){w[T]=l(_[T],b)}),p(E).forEach(function(T){y(_,T)||(m(_,T)&&b.isMergeableObject(E[T])?w[T]=f(T,b)(_[T],E[T],b):w[T]=l(E[T],b))}),w}function v(_,E,b){b=b||{},b.arrayMerge=b.arrayMerge||c,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=l;var w=Array.isArray(E),T=Array.isArray(_),x=w===T;return x?w?b.arrayMerge(_,E,b):d(_,E,b):l(E,b)}v.all=function(E,b){if(!Array.isArray(E))throw new Error("first argument should be an array");return E.reduce(function(w,T){return v(w,T,b)},{})};var g=v;return fs=g,fs}var Fg=Ig();const Dg=_o(Fg);var ps,ac;function xr(){return ac||(ac=1,ps=TypeError),ps}const Ng={},Lg=Object.freeze(Object.defineProperty({__proto__:null,default:Ng},Symbol.toStringTag,{value:"Module"})),Mg=Cg(Lg);var ds,lc;function wo(){if(lc)return ds;lc=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&o&&typeof o.get=="function"?o.get:null,l=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,f=c?WeakMap.prototype.has:null,u=typeof WeakSet=="function"&&WeakSet.prototype,p=u?WeakSet.prototype.has:null,m=typeof WeakRef=="function"&&WeakRef.prototype,y=m?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,v=Object.prototype.toString,g=Function.prototype.toString,_=String.prototype.match,E=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,T=String.prototype.toLowerCase,x=RegExp.prototype.test,U=Array.prototype.concat,B=Array.prototype.join,C=Array.prototype.slice,I=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,z=Object.prototype.propertyIsEnumerable,ne=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(P){return P.__proto__}:null);function H(P,R){if(P===1/0||P===-1/0||P!==P||P&&P>-1e3&&P<1e3||x.call(/e/,R))return R;var re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof P=="number"){var ge=P<0?-I(-P):I(P);if(ge!==P){var me=String(ge),se=E.call(R,me.length+1);return b.call(me,re,"$&_")+"."+b.call(b.call(se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(R,re,"$&_")}var we=Mg,oe=we.custom,He=S(oe)?oe:null,Le={__proto__:null,double:'"',single:"'"},Be={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ds=function P(R,re,ge,me){var se=re||{};if($(se,"quoteStyle")&&!$(Le,se.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(se,"maxStringLength")&&(typeof se.maxStringLength=="number"?se.maxStringLength<0&&se.maxStringLength!==1/0:se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var gt=$(se,"customInspect")?se.customInspect:!0;if(typeof gt!="boolean"&>!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(se,"indent")&&se.indent!==null&&se.indent!==" "&&!(parseInt(se.indent,10)===se.indent&&se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(se,"numericSeparator")&&typeof se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ut=se.numericSeparator;if(typeof R>"u")return"undefined";if(R===null)return"null";if(typeof R=="boolean")return R?"true":"false";if(typeof R=="string")return te(R,se);if(typeof R=="number"){if(R===0)return 1/0/R>0?"0":"-0";var ke=String(R);return ut?H(R,ke):ke}if(typeof R=="bigint"){var rt=String(R)+"n";return ut?H(R,rt):rt}var Yt=typeof se.depth>"u"?5:se.depth;if(typeof ge>"u"&&(ge=0),ge>=Yt&&Yt>0&&typeof R=="object")return Re(R)?"[Array]":"[Object]";var xt=Ke(se,ge);if(typeof me>"u")me=[];else if(K(me,R)>=0)return"[Circular]";function Je(qt,gr,En){if(gr&&(me=C.call(me),me.push(gr)),En){var rn={depth:se.depth};return $(se,"quoteStyle")&&(rn.quoteStyle=se.quoteStyle),P(qt,rn,ge+1,me)}return P(qt,se,ge+1,me)}if(typeof R=="function"&&!pe(R)){var Dt=j(R),Pr=tt(R,Je);return"[Function"+(Dt?": "+Dt:" (anonymous)")+"]"+(Pr.length>0?" { "+B.call(Pr,", ")+" }":"")}if(S(R)){var Pt=ie?b.call(String(R),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(R);return typeof R=="object"&&!ie?de(Pt):Pt}if(Q(R)){for(var er="<"+T.call(String(R.nodeName)),Rr=R.attributes||[],hr=0;hr",er}if(Re(R)){if(R.length===0)return"[]";var yr=tt(R,Je);return xt&&!De(yr)?"["+je(yr,xt)+"]":"[ "+B.call(yr,", ")+" ]"}if(_e(R)){var tr=tt(R,Je);return!("cause"in Error.prototype)&&"cause"in R&&!z.call(R,"cause")?"{ ["+String(R)+"] "+B.call(U.call("[cause]: "+Je(R.cause),tr),", ")+" }":tr.length===0?"["+String(R)+"]":"{ ["+String(R)+"] "+B.call(tr,", ")+" }"}if(typeof R=="object"&>){if(He&&typeof R[He]=="function"&&we)return we(R,{depth:Yt-ge});if(gt!=="symbol"&&typeof R.inspect=="function")return R.inspect()}if(k(R)){var Ue=[];return n&&n.call(R,function(qt,gr){Ue.push(Je(gr,R,!0)+" => "+Je(qt,R))}),Pe("Map",r.call(R),Ue,xt)}if(X(R)){var Yr=[];return l&&l.call(R,function(qt){Yr.push(Je(qt,R))}),Pe("Set",s.call(R),Yr,xt)}if(V(R))return he("WeakMap");if(G(R))return he("WeakSet");if(q(R))return he("WeakRef");if(Fe(R))return de(Je(Number(R)));if(O(R))return de(Je(W.call(R)));if(Me(R))return de(d.call(R));if(ye(R))return de(Je(String(R)));if(typeof window<"u"&&R===window)return"{ [object Window] }";if(typeof globalThis<"u"&&R===globalThis||typeof Xt<"u"&&R===Xt)return"{ [object globalThis] }";if(!ve(R)&&!pe(R)){var Cr=tt(R,Je),en=ne?ne(R)===Object.prototype:R instanceof Object||R.constructor===Object,Ir=R instanceof Object?"":"null prototype",tn=!en&&Y&&Object(R)===R&&Y in R?E.call(M(R),8,-1):Ir?"Object":"",Ge=en||typeof R.constructor!="function"?"":R.constructor.name?R.constructor.name+" ":"",Fr=Ge+(tn||Ir?"["+B.call(U.call([],tn||[],Ir||[]),": ")+"] ":"");return Cr.length===0?Fr+"{}":xt?Fr+"{"+je(Cr,xt)+"}":Fr+"{ "+B.call(Cr,", ")+" }"}return String(R)};function ct(P,R,re){var ge=re.quoteStyle||R,me=Le[ge];return me+P+me}function fe(P){return b.call(String(P),/"/g,""")}function Re(P){return M(P)==="[object Array]"&&(!Y||!(typeof P=="object"&&Y in P))}function ve(P){return M(P)==="[object Date]"&&(!Y||!(typeof P=="object"&&Y in P))}function pe(P){return M(P)==="[object RegExp]"&&(!Y||!(typeof P=="object"&&Y in P))}function _e(P){return M(P)==="[object Error]"&&(!Y||!(typeof P=="object"&&Y in P))}function ye(P){return M(P)==="[object String]"&&(!Y||!(typeof P=="object"&&Y in P))}function Fe(P){return M(P)==="[object Number]"&&(!Y||!(typeof P=="object"&&Y in P))}function Me(P){return M(P)==="[object Boolean]"&&(!Y||!(typeof P=="object"&&Y in P))}function S(P){if(ie)return P&&typeof P=="object"&&P instanceof Symbol;if(typeof P=="symbol")return!0;if(!P||typeof P!="object"||!J)return!1;try{return J.call(P),!0}catch{}return!1}function O(P){if(!P||typeof P!="object"||!W)return!1;try{return W.call(P),!0}catch{}return!1}var F=Object.prototype.hasOwnProperty||function(P){return P in this};function $(P,R){return F.call(P,R)}function M(P){return v.call(P)}function j(P){if(P.name)return P.name;var R=_.call(g.call(P),/^function\s*([\w$]+)/);return R?R[1]:null}function K(P,R){if(P.indexOf)return P.indexOf(R);for(var re=0,ge=P.length;reR.maxStringLength){var re=P.length-R.maxStringLength,ge="... "+re+" more character"+(re>1?"s":"");return te(E.call(P,0,R.maxStringLength),R)+ge}var me=Be[R.quoteStyle||"single"];me.lastIndex=0;var se=b.call(b.call(P,me,"\\$1"),/[\x00-\x1f]/g,ae);return ct(se,"single",R)}function ae(P){var R=P.charCodeAt(0),re={8:"b",9:"t",10:"n",12:"f",13:"r"}[R];return re?"\\"+re:"\\x"+(R<16?"0":"")+w.call(R.toString(16))}function de(P){return"Object("+P+")"}function he(P){return P+" { ? }"}function Pe(P,R,re,ge){var me=ge?je(re,ge):B.call(re,", ");return P+" ("+R+") {"+me+"}"}function De(P){for(var R=0;R=0)return!1;return!0}function Ke(P,R){var re;if(P.indent===" ")re=" ";else if(typeof P.indent=="number"&&P.indent>0)re=B.call(Array(P.indent+1)," ");else return null;return{base:re,prev:B.call(Array(R+1),re)}}function je(P,R){if(P.length===0)return"";var re=` -`+R.prev+R.base;return re+B.call(P,","+re)+` -`+R.prev}function tt(P,R){var re=Re(P),ge=[];if(re){ge.length=P.length;for(var me=0;me"u"||!x?e:x(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":w&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":C,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&x?x(""[Symbol.iterator]()):e,"%Symbol%":w?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":b,"%TypedArray%":I,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":U,"%Object.defineProperty%":_,"%Math.abs%":f,"%Math.floor%":u,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":y};if(x)try{null.error}catch(Re){var D=x(x(Re));W["%Error.prototype%"]=D}var J=function Re(ve){var pe;if(ve==="%AsyncFunction%")pe=v("async function () {}");else if(ve==="%GeneratorFunction%")pe=v("function* () {}");else if(ve==="%AsyncGeneratorFunction%")pe=v("async function* () {}");else if(ve==="%AsyncGenerator%"){var _e=Re("%AsyncGeneratorFunction%");_e&&(pe=_e.prototype)}else if(ve==="%AsyncIteratorPrototype%"){var ye=Re("%AsyncGenerator%");ye&&x&&(pe=x(ye.prototype))}return W[ve]=pe,pe},ie={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Y=fi(),z=tm(),ne=Y.call(B,Array.prototype.concat),H=Y.call(U,Array.prototype.splice),we=Y.call(B,String.prototype.replace),oe=Y.call(B,String.prototype.slice),He=Y.call(B,RegExp.prototype.exec),Le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Be=/\\(\\)?/g,ct=function(ve){var pe=oe(ve,0,1),_e=oe(ve,-1);if(pe==="%"&&_e!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(_e==="%"&&pe!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ye=[];return we(ve,Le,function(Fe,Me,S,O){ye[ye.length]=S?we(O,Be,"$1"):Me||Fe}),ye},fe=function(ve,pe){var _e=ve,ye;if(z(ie,_e)&&(ye=ie[_e],_e="%"+ye[0]+"%"),z(W,_e)){var Fe=W[_e];if(Fe===C&&(Fe=J(_e)),typeof Fe>"u"&&!pe)throw new l("intrinsic "+ve+" exists, but is not available. Please file an issue!");return{alias:ye,name:_e,value:Fe}}throw new s("intrinsic "+ve+" does not exist!")};return qs=function(ve,pe){if(typeof ve!="string"||ve.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof pe!="boolean")throw new l('"allowMissing" argument must be a boolean');if(He(/^%?[^%]*%?$/,ve)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _e=ct(ve),ye=_e.length>0?_e[0]:"",Fe=fe("%"+ye+"%",pe),Me=Fe.name,S=Fe.value,O=!1,F=Fe.alias;F&&(ye=F[0],H(_e,ne([0,1],F)));for(var $=1,M=!0;$<_e.length;$+=1){var j=_e[$],K=oe(j,0,1),k=oe(j,-1);if((K==='"'||K==="'"||K==="`"||k==='"'||k==="'"||k==="`")&&K!==k)throw new s("property names with quotes must have matching quotes");if((j==="constructor"||!M)&&(O=!0),ye+="."+j,Me="%"+ye+"%",z(W,Me))S=W[Me];else if(S!=null){if(!(j in S)){if(!pe)throw new l("base intrinsic for "+ve+" exists, but the property is not available.");return}if(g&&$+1>=_e.length){var V=g(S,j);M=!!V,M&&"get"in V&&!("originalValue"in V.get)?S=V.get:S=S[j]}else M=z(S,j),S=S[j];M&&!O&&(W[Me]=S)}}return S},qs}var Vs={exports:{}},Hs,$c;function rm(){if($c)return Hs;$c=1;var e=Eo(),t=np(),r=xr(),n=So();return Hs=function(o,s,l){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,m=!!n&&n(o,s);if(e)e(o,s,{configurable:u===null&&m?m.configurable:!u,enumerable:c===null&&m?m.enumerable:!c,value:l,writable:f===null&&m?m.writable:!f});else if(p||!c&&!f&&!u)o[s]=l;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hs}var ks,jc;function nm(){if(jc)return ks;jc=1;var e=Eo(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},ks=t,ks}var Ws,Bc;function im(){if(Bc)return Ws;Bc=1;var e=Ao(),t=rm(),r=nm()(),n=So(),i=xr(),o=e("%Math.floor%");return Ws=function(l,c){if(typeof l!="function")throw new i("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||o(c)!==c)throw new i("`length` must be a positive 32-bit integer");var f=arguments.length>2&&!!arguments[2],u=!0,p=!0;if("length"in l&&n){var m=n(l,"length");m&&!m.configurable&&(u=!1),m&&!m.writable&&(p=!1)}return(u||p||!f)&&(r?t(l,"length",c,!0,!0):t(l,"length",c)),l},Ws}var Ks,Uc;function om(){if(Uc)return Ks;Uc=1;var e=fi(),t=Ya(),r=ip();return Ks=function(){return r(e,t,arguments)},Ks}var qc;function sm(){return qc||(qc=1,function(e){var t=im(),r=Eo(),n=op(),i=om();e.exports=function(s){var l=n(arguments),c=s.length-(arguments.length-1);return t(l,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i}(Vs)),Vs.exports}var Gs,Vc;function sp(){if(Vc)return Gs;Vc=1;var e=Ao(),t=sm(),r=t(e("String.prototype.indexOf"));return Gs=function(i,o){var s=e(i,!!o);return typeof s=="function"&&r(i,".prototype.")>-1?t(s):s},Gs}var zs,Hc;function ap(){if(Hc)return zs;Hc=1;var e=Ao(),t=sp(),r=wo(),n=xr(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),l=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),f=t("Map.prototype.size",!0);return zs=!!i&&function(){var p,m={assert:function(y){if(!m.has(y))throw new n("Side channel does not contain "+r(y))},delete:function(y){if(p){var d=c(p,y);return f(p)===0&&(p=void 0),d}return!1},get:function(y){if(p)return o(p,y)},has:function(y){return p?l(p,y):!1},set:function(y,d){p||(p=new i),s(p,y,d)}};return m},zs}var Js,kc;function am(){if(kc)return Js;kc=1;var e=Ao(),t=sp(),r=wo(),n=ap(),i=xr(),o=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),l=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),f=t("WeakMap.prototype.delete",!0);return Js=o?function(){var p,m,y={assert:function(d){if(!y.has(d))throw new i("Side channel does not contain "+r(d))},delete:function(d){if(o&&d&&(typeof d=="object"||typeof d=="function")){if(p)return f(p,d)}else if(n&&m)return m.delete(d);return!1},get:function(d){return o&&d&&(typeof d=="object"||typeof d=="function")&&p?s(p,d):m&&m.get(d)},has:function(d){return o&&d&&(typeof d=="object"||typeof d=="function")&&p?c(p,d):!!m&&m.has(d)},set:function(d,v){o&&d&&(typeof d=="object"||typeof d=="function")?(p||(p=new o),l(p,d,v)):n&&(m||(m=n()),m.set(d,v))}};return y}:n,Js}var Qs,Wc;function lm(){if(Wc)return Qs;Wc=1;var e=xr(),t=wo(),r=$g(),n=ap(),i=am(),o=i||n||r;return Qs=function(){var l,c={assert:function(f){if(!c.has(f))throw new e("Side channel does not contain "+t(f))},delete:function(f){return!!l&&l.delete(f)},get:function(f){return l&&l.get(f)},has:function(f){return!!l&&l.has(f)},set:function(f,u){l||(l=o()),l.set(f,u)}};return c},Qs}var Xs,Kc;function el(){if(Kc)return Xs;Kc=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Xs={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Xs}var Zs,Gc;function lp(){if(Gc)return Zs;Gc=1;var e=el(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var g=[],_=0;_<256;++_)g.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return g}(),i=function(_){for(;_.length>1;){var E=_.pop(),b=E.obj[E.prop];if(r(b)){for(var w=[],T=0;T=f?x.slice(B,B+f):x,I=[],W=0;W=48&&D<=57||D>=65&&D<=90||D>=97&&D<=122||T===e.RFC1738&&(D===40||D===41)){I[I.length]=C.charAt(W);continue}if(D<128){I[I.length]=n[D];continue}if(D<2048){I[I.length]=n[192|D>>6]+n[128|D&63];continue}if(D<55296||D>=57344){I[I.length]=n[224|D>>12]+n[128|D>>6&63]+n[128|D&63];continue}W+=1,D=65536+((D&1023)<<10|C.charCodeAt(W)&1023),I[I.length]=n[240|D>>18]+n[128|D>>12&63]+n[128|D>>6&63]+n[128|D&63]}U+=I.join("")}return U},p=function(_){for(var E=[{obj:{o:_},prop:"o"}],b=[],w=0;w"u"&&(oe=0)}if(typeof C=="function"?H=C(_,H):H instanceof Date?H=D(H):E==="comma"&&o(H)&&(H=t.maybeMap(H,function(F){return F instanceof Date?D(F):F})),H===null){if(T)return B&&!Y?B(_,u.encoder,z,"key",J):_;H=""}if(p(H)||t.isBuffer(H)){if(B){var Be=Y?_:B(_,u.encoder,z,"key",J);return[ie(Be)+"="+ie(B(H,u.encoder,z,"value",J))]}return[ie(_)+"="+ie(String(H))]}var ct=[];if(typeof H>"u")return ct;var fe;if(E==="comma"&&o(H))Y&&B&&(H=t.maybeMap(H,B)),fe=[{value:H.length>0?H.join(",")||null:void 0}];else if(o(C))fe=C;else{var Re=Object.keys(H);fe=I?Re.sort(I):Re}var ve=U?String(_).replace(/\./g,"%2E"):String(_),pe=b&&o(H)&&H.length===1?ve+"[]":ve;if(w&&o(H)&&H.length===0)return pe+"[]";for(var _e=0;_e"u"?g.encodeDotInKeys===!0?!0:u.allowDots:!!g.allowDots;return{addQueryPrefix:typeof g.addQueryPrefix=="boolean"?g.addQueryPrefix:u.addQueryPrefix,allowDots:x,allowEmptyArrays:typeof g.allowEmptyArrays=="boolean"?!!g.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:T,charset:_,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!g.commaRoundTrip,delimiter:typeof g.delimiter>"u"?u.delimiter:g.delimiter,encode:typeof g.encode=="boolean"?g.encode:u.encode,encodeDotInKeys:typeof g.encodeDotInKeys=="boolean"?g.encodeDotInKeys:u.encodeDotInKeys,encoder:typeof g.encoder=="function"?g.encoder:u.encoder,encodeValuesOnly:typeof g.encodeValuesOnly=="boolean"?g.encodeValuesOnly:u.encodeValuesOnly,filter:w,format:E,formatter:b,serializeDate:typeof g.serializeDate=="function"?g.serializeDate:u.serializeDate,skipNulls:typeof g.skipNulls=="boolean"?g.skipNulls:u.skipNulls,sort:typeof g.sort=="function"?g.sort:null,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:u.strictNullHandling}};return Ys=function(v,g){var _=v,E=d(g),b,w;typeof E.filter=="function"?(w=E.filter,_=w("",_)):o(E.filter)&&(w=E.filter,b=w);var T=[];if(typeof _!="object"||_===null)return"";var x=i[E.arrayFormat],U=x==="comma"&&E.commaRoundTrip;b||(b=Object.keys(_)),E.sort&&b.sort(E.sort);for(var B=e(),C=0;C0?J+D:""},Ys}var ea,Jc;function um(){if(Jc)return ea;Jc=1;var e=lp(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},i=function(m){return m.replace(/&#(\d+);/g,function(y,d){return String.fromCharCode(parseInt(d,10))})},o=function(m,y){return m&&typeof m=="string"&&y.comma&&m.indexOf(",")>-1?m.split(","):m},s="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",c=function(y,d){var v={__proto__:null},g=d.ignoreQueryPrefix?y.replace(/^\?/,""):y;g=g.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=d.parameterLimit===1/0?void 0:d.parameterLimit,E=g.split(d.delimiter,_),b=-1,w,T=d.charset;if(d.charsetSentinel)for(w=0;w-1&&(I=r(I)?[I]:I);var W=t.call(v,C);W&&d.duplicates==="combine"?v[C]=e.combine(v[C],I):(!W||d.duplicates==="last")&&(v[C]=I)}return v},f=function(m,y,d,v){for(var g=v?y:o(y,d),_=m.length-1;_>=0;--_){var E,b=m[_];if(b==="[]"&&d.parseArrays)E=d.allowEmptyArrays&&(g===""||d.strictNullHandling&&g===null)?[]:[].concat(g);else{E=d.plainObjects?{__proto__:null}:{};var w=b.charAt(0)==="["&&b.charAt(b.length-1)==="]"?b.slice(1,-1):b,T=d.decodeDotInKeys?w.replace(/%2E/g,"."):w,x=parseInt(T,10);!d.parseArrays&&T===""?E={0:g}:!isNaN(x)&&b!==T&&String(x)===T&&x>=0&&d.parseArrays&&x<=d.arrayLimit?(E=[],E[x]=g):T!=="__proto__"&&(E[T]=g)}g=E}return g},u=function(y,d,v,g){if(y){var _=v.allowDots?y.replace(/\.([^.[]+)/g,"[$1]"):y,E=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,w=v.depth>0&&E.exec(_),T=w?_.slice(0,w.index):_,x=[];if(T){if(!v.plainObjects&&t.call(Object.prototype,T)&&!v.allowPrototypes)return;x.push(T)}for(var U=0;v.depth>0&&(w=b.exec(_))!==null&&U"u"?n.charset:y.charset,v=typeof y.duplicates>"u"?n.duplicates:y.duplicates;if(v!=="combine"&&v!=="first"&&v!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var g=typeof y.allowDots>"u"?y.decodeDotInKeys===!0?!0:n.allowDots:!!y.allowDots;return{allowDots:g,allowEmptyArrays:typeof y.allowEmptyArrays=="boolean"?!!y.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof y.allowPrototypes=="boolean"?y.allowPrototypes:n.allowPrototypes,allowSparse:typeof y.allowSparse=="boolean"?y.allowSparse:n.allowSparse,arrayLimit:typeof y.arrayLimit=="number"?y.arrayLimit:n.arrayLimit,charset:d,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:n.charsetSentinel,comma:typeof y.comma=="boolean"?y.comma:n.comma,decodeDotInKeys:typeof y.decodeDotInKeys=="boolean"?y.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof y.decoder=="function"?y.decoder:n.decoder,delimiter:typeof y.delimiter=="string"||e.isRegExp(y.delimiter)?y.delimiter:n.delimiter,depth:typeof y.depth=="number"||y.depth===!1?+y.depth:n.depth,duplicates:v,ignoreQueryPrefix:y.ignoreQueryPrefix===!0,interpretNumericEntities:typeof y.interpretNumericEntities=="boolean"?y.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof y.parameterLimit=="number"?y.parameterLimit:n.parameterLimit,parseArrays:y.parseArrays!==!1,plainObjects:typeof y.plainObjects=="boolean"?y.plainObjects:n.plainObjects,strictDepth:typeof y.strictDepth=="boolean"?!!y.strictDepth:n.strictDepth,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:n.strictNullHandling}};return ea=function(m,y){var d=p(y);if(m===""||m===null||typeof m>"u")return d.plainObjects?{__proto__:null}:{};for(var v=typeof m=="string"?c(m,d):m,g=d.plainObjects?{__proto__:null}:{},_=Object.keys(v),E=0;E<_.length;++E){var b=_[E],w=u(b,v[b],d,typeof m=="string");g=e.merge(g,w,d)}return d.allowSparse===!0?g:e.compact(g)},ea}var ta,Qc;function fm(){if(Qc)return ta;Qc=1;var e=cm(),t=um(),r=el();return ta={formats:r,parse:t,stringify:e},ta}var Xc=fm(),Vi={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */var pm=Vi.exports,Zc;function dm(){return Zc||(Zc=1,function(e,t){(function(r,n){e.exports=n()})(pm,function(){var r={};r.version="0.2.0";var n=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
      '};r.configure=function(d){var v,g;for(v in d)g=d[v],g!==void 0&&d.hasOwnProperty(v)&&(n[v]=g);return this},r.status=null,r.set=function(d){var v=r.isStarted();d=i(d,n.minimum,1),r.status=d===1?null:d;var g=r.render(!v),_=g.querySelector(n.barSelector),E=n.speed,b=n.easing;return g.offsetWidth,l(function(w){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),c(_,s(d,E,b)),d===1?(c(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){c(g,{transition:"all "+E+"ms linear",opacity:0}),setTimeout(function(){r.remove(),w()},E)},E)):setTimeout(w,E)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var d=function(){setTimeout(function(){r.status&&(r.trickle(),d())},n.trickleSpeed)};return n.trickle&&d(),this},r.done=function(d){return!d&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(d){var v=r.status;return v?(typeof d!="number"&&(d=(1-v)*i(Math.random()*v,.1,.95)),v=i(v+d,0,.994),r.set(v)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var d=0,v=0;r.promise=function(g){return!g||g.state()==="resolved"?this:(v===0&&r.start(),d++,v++,g.always(function(){v--,v===0?(d=0,r.done()):r.set((d-v)/d)}),this)}}(),r.render=function(d){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=n.template;var g=v.querySelector(n.barSelector),_=d?"-100":o(r.status||0),E=document.querySelector(n.parent),b;return c(g,{transition:"all 0 linear",transform:"translate3d("+_+"%,0,0)"}),n.showSpinner||(b=v.querySelector(n.spinnerSelector),b&&y(b)),E!=document.body&&u(E,"nprogress-custom-parent"),E.appendChild(v),v},r.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(n.parent),"nprogress-custom-parent");var d=document.getElementById("nprogress");d&&y(d)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var d=document.body.style,v="WebkitTransform"in d?"Webkit":"MozTransform"in d?"Moz":"msTransform"in d?"ms":"OTransform"in d?"O":"";return v+"Perspective"in d?"translate3d":v+"Transform"in d?"translate":"margin"};function i(d,v,g){return dg?g:d}function o(d){return(-1+d)*100}function s(d,v,g){var _;return n.positionUsing==="translate3d"?_={transform:"translate3d("+o(d)+"%,0,0)"}:n.positionUsing==="translate"?_={transform:"translate("+o(d)+"%,0)"}:_={"margin-left":o(d)+"%"},_.transition="all "+v+"ms "+g,_}var l=function(){var d=[];function v(){var g=d.shift();g&&g(v)}return function(g){d.push(g),d.length==1&&v()}}(),c=function(){var d=["Webkit","O","Moz","ms"],v={};function g(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,x){return x.toUpperCase()})}function _(w){var T=document.body.style;if(w in T)return w;for(var x=d.length,U=w.charAt(0).toUpperCase()+w.slice(1),B;x--;)if(B=d[x]+U,B in T)return B;return w}function E(w){return w=g(w),v[w]||(v[w]=_(w))}function b(w,T,x){T=E(T),w.style[T]=x}return function(w,T){var x=arguments,U,B;if(x.length==2)for(U in T)B=T[U],B!==void 0&&T.hasOwnProperty(U)&&b(w,U,B);else b(w,x[1],x[2])}}();function f(d,v){var g=typeof d=="string"?d:m(d);return g.indexOf(" "+v+" ")>=0}function u(d,v){var g=m(d),_=g+v;f(g,v)||(d.className=_.substring(1))}function p(d,v){var g=m(d),_;f(d,v)&&(_=g.replace(" "+v+" "," "),d.className=_.substring(1,_.length-1))}function m(d){return(" "+(d.className||"")+" ").replace(/\s+/gi," ")}function y(d){d&&d.parentNode&&d.parentNode.removeChild(d)}return r})}(Vi)),Vi.exports}var hm=dm();const Qt=_o(hm);function cp(e,t){let r;return function(...n){clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function dr(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var ym=e=>dr("before",{cancelable:!0,detail:{visit:e}}),gm=e=>dr("error",{detail:{errors:e}}),mm=e=>dr("exception",{cancelable:!0,detail:{exception:e}}),Yc=e=>dr("finish",{detail:{visit:e}}),vm=e=>dr("invalid",{cancelable:!0,detail:{response:e}}),Nn=e=>dr("navigate",{detail:{page:e}}),bm=e=>dr("progress",{detail:{progress:e}}),_m=e=>dr("start",{detail:{visit:e}}),wm=e=>dr("success",{detail:{page:e}});function Ta(e){return e instanceof File||e instanceof Blob||e instanceof FileList&&e.length>0||e instanceof FormData&&Array.from(e.values()).some(t=>Ta(t))||typeof e=="object"&&e!==null&&Object.values(e).some(t=>Ta(t))}function up(e,t=new FormData,r=null){e=e||{};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&pp(t,fp(r,n),e[n]);return t}function fp(e,t){return e?e+"["+t+"]":t}function pp(e,t,r){if(Array.isArray(r))return Array.from(r.keys()).forEach(n=>pp(e,fp(t,n.toString()),r[n]));if(r instanceof Date)return e.append(t,r.toISOString());if(r instanceof File)return e.append(t,r,r.name);if(r instanceof Blob)return e.append(t,r);if(typeof r=="boolean")return e.append(t,r?"1":"0");if(typeof r=="string")return e.append(t,r);if(typeof r=="number")return e.append(t,`${r}`);if(r==null)return e.append(t,"");up(r,e,t)}var Sm={modal:null,listener:null,show(e){typeof e=="object"&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
      ${JSON.stringify(e)}`);let t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(n=>n.setAttribute("target","_top")),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide());let r=document.createElement("iframe");if(r.style.backgroundColor="white",r.style.borderRadius="5px",r.style.width="100%",r.style.height="100%",this.modal.appendChild(r),document.body.prepend(this.modal),document.body.style.overflow="hidden",!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(t.outerHTML),r.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape(e){e.keyCode===27&&this.hide()}};function fn(e){return new URL(e.toString(),window.location.toString())}function dp(e,t,r,n="brackets"){let i=/^https?:\/\//.test(t.toString()),o=i||t.toString().startsWith("/"),s=!o&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),l=t.toString().includes("?")||e==="get"&&Object.keys(r).length,c=t.toString().includes("#"),f=new URL(t.toString(),"http://localhost");return e==="get"&&Object.keys(r).length&&(f.search=Xc.stringify(Dg(Xc.parse(f.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:n}),r={}),[[i?`${f.protocol}//${f.host}`:"",o?f.pathname:"",s?f.pathname.substring(1):"",l?f.search:"",c?f.hash:""].join(""),r]}function Ln(e){return e=new URL(e.href),e.hash="",e}var Hi=typeof window>"u",eu=!Hi&&/CriOS/.test(window.navigator.userAgent),tu=e=>{requestAnimationFrame(()=>{requestAnimationFrame(e)})},Em=class{constructor(){this.visitId=null}init({initialPage:t,resolveComponent:r,swapComponent:n}){this.page=t,this.resolveComponent=r,this.swapComponent=n,this.setNavigationType(),this.clearRememberedStateOnReload(),this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()}setNavigationType(){this.navigationType=window.performance&&window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}clearRememberedStateOnReload(){var t;this.navigationType==="reload"&&((t=window.history.state)!=null&&t.rememberedState)&&delete window.history.state.rememberedState}handleInitialPageVisit(t){let r=window.location.hash;this.page.url.includes(r)||(this.page.url+=r),this.setPage(t,{preserveScroll:!0,preserveState:!0}).then(()=>Nn(t))}setupEventListeners(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",cp(this.handleScrollEvent.bind(this),100),!0)}scrollRegions(){return document.querySelectorAll("[scroll-region]")}handleScrollEvent(t){typeof t.target.hasAttribute=="function"&&t.target.hasAttribute("scroll-region")&&this.saveScrollPositions()}saveScrollPositions(){this.replaceState({...this.page,scrollRegions:Array.from(this.scrollRegions()).map(t=>({top:t.scrollTop,left:t.scrollLeft}))})}resetScrollPositions(){tu(()=>{var t;window.scrollTo(0,0),this.scrollRegions().forEach(r=>{typeof r.scrollTo=="function"?r.scrollTo(0,0):(r.scrollTop=0,r.scrollLeft=0)}),this.saveScrollPositions(),window.location.hash&&((t=document.getElementById(window.location.hash.slice(1)))==null||t.scrollIntoView())})}restoreScrollPositions(){tu(()=>{this.page.scrollRegions&&this.scrollRegions().forEach((t,r)=>{let n=this.page.scrollRegions[r];if(n)typeof t.scrollTo=="function"?t.scrollTo(n.left,n.top):(t.scrollTop=n.top,t.scrollLeft=n.left);else return})})}isBackForwardVisit(){return window.history.state&&this.navigationType==="back_forward"}handleBackForwardVisit(t){window.history.state.version=t.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(()=>{this.restoreScrollPositions(),Nn(t)})}locationVisit(t,r){try{let n={preserveScroll:r};window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify(n)),window.location.href=t.href,Ln(window.location).href===Ln(t).href&&window.location.reload()}catch{return!1}}isLocationVisit(){try{return window.sessionStorage.getItem("inertiaLocationVisit")!==null}catch{return!1}}handleLocationVisit(t){var n,i;let r=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),t.url+=window.location.hash,t.rememberedState=((n=window.history.state)==null?void 0:n.rememberedState)??{},t.scrollRegions=((i=window.history.state)==null?void 0:i.scrollRegions)??[],this.setPage(t,{preserveScroll:r.preserveScroll,preserveState:!0}).then(()=>{r.preserveScroll&&this.restoreScrollPositions(),Nn(t)})}isLocationVisitResponse(t){return!!(t&&t.status===409&&t.headers["x-inertia-location"])}isInertiaResponse(t){return!!(t!=null&&t.headers["x-inertia"])}createVisitId(){return this.visitId={},this.visitId}cancelVisit(t,{cancelled:r=!1,interrupted:n=!1}){t&&!t.completed&&!t.cancelled&&!t.interrupted&&(t.cancelToken.abort(),t.onCancel(),t.completed=!1,t.cancelled=r,t.interrupted=n,Yc(t),t.onFinish(t))}finishVisit(t){!t.cancelled&&!t.interrupted&&(t.completed=!0,t.cancelled=!1,t.interrupted=!1,Yc(t),t.onFinish(t))}resolvePreserveOption(t,r){return typeof t=="function"?t(r):t==="errors"?Object.keys(r.props.errors||{}).length>0:t}cancel(){this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}visit(t,{method:r="get",data:n={},replace:i=!1,preserveScroll:o=!1,preserveState:s=!1,only:l=[],except:c=[],headers:f={},errorBag:u="",forceFormData:p=!1,onCancelToken:m=()=>{},onBefore:y=()=>{},onStart:d=()=>{},onProgress:v=()=>{},onFinish:g=()=>{},onCancel:_=()=>{},onSuccess:E=()=>{},onError:b=()=>{},queryStringArrayFormat:w="brackets"}={}){let T=typeof t=="string"?fn(t):t;if((Ta(n)||p)&&!(n instanceof FormData)&&(n=up(n)),!(n instanceof FormData)){let[C,I]=dp(r,T,n,w);T=fn(C),n=I}let x={url:T,method:r,data:n,replace:i,preserveScroll:o,preserveState:s,only:l,except:c,headers:f,errorBag:u,forceFormData:p,queryStringArrayFormat:w,cancelled:!1,completed:!1,interrupted:!1};if(y(x)===!1||!ym(x))return;this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();let U=this.createVisitId();this.activeVisit={...x,onCancelToken:m,onBefore:y,onStart:d,onProgress:v,onFinish:g,onCancel:_,onSuccess:E,onError:b,queryStringArrayFormat:w,cancelToken:new AbortController},m({cancel:()=>{this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}}),_m(x),d(x);let B=!!(l.length||c.length);$e({method:r,url:Ln(T).href,data:r==="get"?{}:n,params:r==="get"?n:{},signal:this.activeVisit.cancelToken.signal,headers:{...f,Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0,...B?{"X-Inertia-Partial-Component":this.page.component}:{},...l.length?{"X-Inertia-Partial-Data":l.join(",")}:{},...c.length?{"X-Inertia-Partial-Except":c.join(",")}:{},...u&&u.length?{"X-Inertia-Error-Bag":u}:{},...this.page.version?{"X-Inertia-Version":this.page.version}:{}},onUploadProgress:C=>{n instanceof FormData&&(C.percentage=C.progress?Math.round(C.progress*100):0,bm(C),v(C))}}).then(C=>{var J;if(!this.isInertiaResponse(C))return Promise.reject({response:C});let I=C.data;B&&I.component===this.page.component&&(I.props={...this.page.props,...I.props}),o=this.resolvePreserveOption(o,I),s=this.resolvePreserveOption(s,I),s&&((J=window.history.state)!=null&&J.rememberedState)&&I.component===this.page.component&&(I.rememberedState=window.history.state.rememberedState);let W=T,D=fn(I.url);return W.hash&&!D.hash&&Ln(W).href===D.href&&(D.hash=W.hash,I.url=D.href),this.setPage(I,{visitId:U,replace:i,preserveScroll:o,preserveState:s})}).then(()=>{let C=this.page.props.errors||{};if(Object.keys(C).length>0){let I=u?C[u]?C[u]:{}:C;return gm(I),b(I)}return wm(this.page),E(this.page)}).catch(C=>{if(this.isInertiaResponse(C.response))return this.setPage(C.response.data,{visitId:U});if(this.isLocationVisitResponse(C.response)){let I=fn(C.response.headers["x-inertia-location"]),W=T;W.hash&&!I.hash&&Ln(W).href===I.href&&(I.hash=W.hash),this.locationVisit(I,o===!0)}else if(C.response)vm(C.response)&&Sm.show(C.response.data);else return Promise.reject(C)}).then(()=>{this.activeVisit&&this.finishVisit(this.activeVisit)}).catch(C=>{if(!$e.isCancel(C)){let I=mm(C);if(this.activeVisit&&this.finishVisit(this.activeVisit),I)return Promise.reject(C)}})}setPage(t,{visitId:r=this.createVisitId(),replace:n=!1,preserveScroll:i=!1,preserveState:o=!1}={}){return Promise.resolve(this.resolveComponent(t.component)).then(s=>{r===this.visitId&&(t.scrollRegions=this.page.scrollRegions||[],t.rememberedState=t.rememberedState||{},n=n||fn(t.url).href===window.location.href,n?this.replaceState(t):this.pushState(t),this.swapComponent({component:s,page:t,preserveState:o}).then(()=>{i?this.restoreScrollPositions():this.resetScrollPositions(),n||Nn(t)}))})}pushState(t){this.page=t,eu?setTimeout(()=>window.history.pushState(t,"",t.url)):window.history.pushState(t,"",t.url)}replaceState(t){this.page=t,eu?setTimeout(()=>window.history.replaceState(t,"",t.url)):window.history.replaceState(t,"",t.url)}handlePopstateEvent(t){if(t.state!==null){let r=t.state,n=this.createVisitId();Promise.resolve(this.resolveComponent(r.component)).then(i=>{n===this.visitId&&(this.page=r,this.swapComponent({component:i,page:r,preserveState:!1}).then(()=>{this.restoreScrollPositions(),Nn(r)}))})}else{let r=fn(this.page.url);r.hash=window.location.hash,this.replaceState({...this.page,url:r.href}),this.resetScrollPositions()}}get(t,r={},n={}){return this.visit(t,{...n,method:"get",data:r})}reload(t={}){return this.visit(window.location.href,{...t,preserveScroll:!0,preserveState:!0})}replace(t,r={}){return console.warn(`Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia.${r.method??"get"}() instead.`),this.visit(t,{preserveState:!0,...r,replace:!0})}post(t,r={},n={}){return this.visit(t,{preserveState:!0,...n,method:"post",data:r})}put(t,r={},n={}){return this.visit(t,{preserveState:!0,...n,method:"put",data:r})}patch(t,r={},n={}){return this.visit(t,{preserveState:!0,...n,method:"patch",data:r})}delete(t,r={}){return this.visit(t,{preserveState:!0,...r,method:"delete"})}remember(t,r="default"){var n;Hi||this.replaceState({...this.page,rememberedState:{...(n=this.page)==null?void 0:n.rememberedState,[r]:t}})}restore(t="default"){var r,n;if(!Hi)return(n=(r=window.history.state)==null?void 0:r.rememberedState)==null?void 0:n[t]}on(t,r){if(Hi)return()=>{};let n=i=>{let o=r(i);i.cancelable&&!i.defaultPrevented&&o===!1&&i.preventDefault()};return document.addEventListener(`inertia:${t}`,n),()=>document.removeEventListener(`inertia:${t}`,n)}},Am={buildDOMElement(e){let t=document.createElement("template");t.innerHTML=e;let r=t.content.firstChild;if(!e.startsWith("