diff --git a/composer.lock b/composer.lock index cb70d477..f606426d 100644 --- a/composer.lock +++ b/composer.lock @@ -62,16 +62,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.334.4", + "version": "3.334.5", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "3261e515cfc1bae024bce72be3ea28708461c0a3" + "reference": "3b4fa2180f5c6307c2d3c577392d3702d1f78eaf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3261e515cfc1bae024bce72be3ea28708461c0a3", - "reference": "3261e515cfc1bae024bce72be3ea28708461c0a3", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3b4fa2180f5c6307c2d3c577392d3702d1f78eaf", + "reference": "3b4fa2180f5c6307c2d3c577392d3702d1f78eaf", "shasum": "" }, "require": { @@ -154,9 +154,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.334.4" + "source": "https://github.com/aws/aws-sdk-php/tree/3.334.5" }, - "time": "2024-12-11T19:41:47+00:00" + "time": "2024-12-12T19:25:15+00:00" }, { "name": "bacon/bacon-qr-code", @@ -1947,16 +1947,16 @@ }, { "name": "laravel/framework", - "version": "v11.35.0", + "version": "v11.35.1", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "f1a7aaa3c1235b7a95ccaa58db90e0cd9d8c3fcc" + "reference": "dcfa130ede1a6fa4343dc113410963e791ad34fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/f1a7aaa3c1235b7a95ccaa58db90e0cd9d8c3fcc", - "reference": "f1a7aaa3c1235b7a95ccaa58db90e0cd9d8c3fcc", + "url": "https://api.github.com/repos/laravel/framework/zipball/dcfa130ede1a6fa4343dc113410963e791ad34fb", + "reference": "dcfa130ede1a6fa4343dc113410963e791ad34fb", "shasum": "" }, "require": { @@ -2158,7 +2158,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-12-10T16:09:29+00:00" + "time": "2024-12-12T18:25:58+00:00" }, { "name": "laravel/prompts", @@ -9754,23 +9754,23 @@ }, { "name": "sebastian/code-unit", - "version": "3.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268" + "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/6bb7d09d6623567178cf54126afa9c2310114268", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca", + "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.5" }, "type": "library", "extra": { @@ -9799,7 +9799,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/code-unit/issues", "security": "https://github.com/sebastianbergmann/code-unit/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.2" }, "funding": [ { @@ -9807,7 +9807,7 @@ "type": "github" } ], - "time": "2024-07-03T04:44:28+00:00" + "time": "2024-12-12T09:59:06+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", diff --git a/package-lock.json b/package-lock.json index 1817302c..898a9adb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -492,9 +492,9 @@ } }, "node_modules/@inertiajs/core": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-1.2.0.tgz", - "integrity": "sha512-6U0gqCPbGGGMcLoDm+ckKipc5gptZMmfVFfPGdO7vlO7yipWf1RD+TKkcZGJklFvfgFMKwK2VPw8GAv1OctuQA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-1.3.0.tgz", + "integrity": "sha512-TJ8R1eUYY473m9DaKlCPRdHTdznFWTDuy5VvEzXg3t/hohbDQedLj46yn/uAqziJPEUZJrSftZzPI2NMzL9tQA==", "dev": true, "license": "MIT", "dependencies": { @@ -505,13 +505,13 @@ } }, "node_modules/@inertiajs/vue3": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@inertiajs/vue3/-/vue3-1.2.0.tgz", - "integrity": "sha512-Y6AsvwIK/E1pQKAMp8B7i99CbNApcTYb7j8R+TXM/AFQG6yBlQ1Qb9oFMItb6VimXSnDyfO4+FWe/JPLk9OIVA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@inertiajs/vue3/-/vue3-1.3.0.tgz", + "integrity": "sha512-GizqdCM3u4JWunit3uUbW4fEmTLKQTi1W7VvPRdrNy8XDt4Qy2cCmfFjq+aH5tHBSS3fI/ngYuhN7XvwqNaKvw==", "dev": true, "license": "MIT", "dependencies": { - "@inertiajs/core": "1.2.0", + "@inertiajs/core": "1.3.0", "lodash.clonedeep": "^4.5.0", "lodash.isequal": "^4.5.0" }, diff --git a/public/build/assets/APIAccessToken-BxKNWUdy.js b/public/build/assets/APIAccessToken-CiLq3Ihr.js similarity index 84% rename from public/build/assets/APIAccessToken-BxKNWUdy.js rename to public/build/assets/APIAccessToken-CiLq3Ihr.js index e0b5ab05..4e0908e5 100644 --- a/public/build/assets/APIAccessToken-BxKNWUdy.js +++ b/public/build/assets/APIAccessToken-CiLq3Ihr.js @@ -1 +1 @@ -import{_ as h,S as y}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as B}from"./AdminTopNavigation-Bl9ElpaD.js";import{d as c}from"./dayjs.min-ilzO22t1.js";import{r as C}from"./relativeTime-BTl_QCHW.js";import{l as N}from"./localizedFormat-r4JmUt9E.js";import{P}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={class:"card"},L={class:"card"},V={class:"my-1"},$={key:0,class:"my-1"},I={class:"my-1"},S={key:1,class:"my-1"},j={key:2,class:"my-1"},E={class:"card"},R={key:0},q={class:"card"},Q={__name:"APIAccessToken",props:{id:{required:!0,type:Number}},setup(k){const p=k,s=A({});x(()=>{_()});function m(o){return c.extend(C),c.extend(N),c(o).fromNow()+" ("+c(o).format("LLL")+")"}function _(){axios.get("/admin/user-personal-access-tokens/"+p.id+"?cached=false&relations=user").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}function b(){y.fire({title:"Are you sure you want to delete this token?",text:"This action cannot be undone, and the user will no longer be able to use this token. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Revoke this token",showCancelButton:!0}).then(o=>{o.isConfirmed&&axios.delete("/admin/user-personal-access-tokens/"+p.id).then(e=>{window.location.href=route("admin.api-access-tokens")}).catch(e=>{console.log(e)})})}return(o,e)=>(l(),i(w,null,[r(v(g),{title:"API Access Token"}),r(h,null,{header:d(()=>[r(B)]),default:d(()=>[t("div",F,[t("h2",null,a(s.value.name)+" (#"+a(s.value.id)+") ",1)]),t("div",L,[e[6]||(e[6]=t("div",{class:"card-header"}," API Access Token details ",-1)),t("div",V,[e[1]||(e[1]=t("span",{class:"font-bold"}," Name: ",-1)),n(" "+a(s.value.name),1)]),s.value.tokenable_id?(l(),i("div",$,[e[2]||(e[2]=t("span",{class:"font-bold"}," Assigned To: ",-1)),r(v(T),{href:o.route("admin.user",{id:s.value.tokenable_id})},{default:d(()=>{var f;return[n(a((f=s.value.user)==null?void 0:f.name),1)]}),_:1},8,["href"])])):u("",!0),t("div",I,[e[3]||(e[3]=t("span",{class:"font-bold"}," Created: ",-1)),n(" "+a(m(s.value.created_at)),1)]),s.value.last_used_at?(l(),i("div",S,[e[4]||(e[4]=t("span",{class:"font-bold"}," Last used: ",-1)),n(" "+a(m(s.value.last_used_at)),1)])):u("",!0),s.value.expires_at?(l(),i("div",j,[e[5]||(e[5]=t("span",{class:"font-bold"}," Expires: ",-1)),n(" "+a(m(s.value.expires_at)),1)])):u("",!0)]),t("div",E,[e[7]||(e[7]=t("div",{class:"card-header"}," Abilities ",-1)),s.value.abilities&&s.value.abilities.length?(l(),i("div",R,a(s.value.abilities.join(", ")),1)):u("",!0)]),t("div",q,[r(P,{onClick:e[0]||(e[0]=f=>b())},{default:d(()=>e[8]||(e[8]=[n(" Revoke this token ")])),_:1})])]),_:1})],64))}};export{Q as default}; +import{_ as h,S as y}from"./AuthenticatedLayout-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/APIAccessTokens-C66OPdJ3.js b/public/build/assets/APIAccessTokens-Bz3iz2Yk.js similarity index 79% rename from public/build/assets/APIAccessTokens-C66OPdJ3.js rename to public/build/assets/APIAccessTokens-Bz3iz2Yk.js index 458bc7b4..e04c8961 100644 --- a/public/build/assets/APIAccessTokens-C66OPdJ3.js +++ b/public/build/assets/APIAccessTokens-Bz3iz2Yk.js @@ -1 +1 @@ -import{_}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as y}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as A}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const B={class:"card"},b={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},T={class:"font-bold"},C={class:"text-xs opacity-25"},N={key:0,class:"text-sm"},V={class:"flex justify-end items-center mt-4"},j={class:"w-full lg:w-1/3"},Z={__name:"APIAccessTokens",setup(I){const t=f({});h(()=>{d()});function d(i=1){axios.get("/admin/user-personal-access-tokens?cached=false&page="+i+"&relations=user&orderBy=id,desc").then(s=>{t.value=s.data.data}).catch(s=>{console.log(s)})}return(i,s)=>(o(),n(m,null,[r(u(v),{title:"API Access Tokens"}),r(_,null,{header:c(()=>[r(y)]),default:c(()=>[e("div",B,[t.value.data&&t.value.data.length?(o(),n("div",b,[(o(!0),n(m,null,g(t.value.data,a=>(o(),x(u(k),{href:i.route("admin.api-access-token",a.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",P,[e("div",null,[e("div",T,[e("span",C," #"+l(a.id),1),w(" "+l(a.name),1)]),a.user?(o(),n("div",N," Issued to: "+l(a.user.name),1)):p("",!0)]),s[0]||(s[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):p("",!0),e("div",V,[e("div",j,[r(A,{onSetDataPage:d,"pagination-data":t.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{Z as default}; +import{_}from"./AuthenticatedLayout-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/AdminHome-DAyF3eY4.js b/public/build/assets/AdminHome-1TsBZ1Wn.js similarity index 87% rename from public/build/assets/AdminHome-DAyF3eY4.js rename to public/build/assets/AdminHome-1TsBZ1Wn.js index 04a0a71b..3d88e854 100644 --- a/public/build/assets/AdminHome-DAyF3eY4.js +++ b/public/build/assets/AdminHome-1TsBZ1Wn.js @@ -1 +1 @@ -import{S as p,_ as g}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as S}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as d}from"./SecondaryButton-DL_I_H3U.js";import{_ as $}from"./AjaxLoadingIndicator-DnIg5N8b.js";import{_ as j}from"./AuditItemsComponent-C0ljhUTP.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./dayjs.min-ilzO22t1.js";const V={class:"card"},b={class:"grid grid-cols-2 lg:grid-cols-4 gap-4"},B={class:"w-full"},N={class:"flex justify-center text-3xl"},D={class:"w-full"},F={class:"flex justify-center text-3xl"},R={class:"w-full"},k={class:"flex justify-center text-3xl"},C={class:"w-full"},O={class:"flex justify-center text-3xl"},A={class:"w-full"},E={class:"flex justify-center text-3xl"},H={class:"w-full"},I={class:"flex justify-center text-3xl"},T={class:"w-full"},U={class:"flex justify-center text-3xl"},Z={class:"w-full"},q={class:"flex justify-center text-3xl"},z={__name:"SystemStatisticsComponent",setup(h){const _=m(!1),o=m({num_users:0,num_teams:0,num_voucher_sets:0,num_vouchers:0,num_voucher_redemptions:0,sum_voucher_value_total:0,sum_voucher_value_redeemed:0,sum_voucher_value_remaining:0});function x(){_.value=!0,axios.get("/admin/system-statistics?cached=false&limit=1&orderBy=id,desc").then(a=>{var s,f;(s=a.data.data)!=null&&s.data[0]&&(o.value=(f=a.data.data)==null?void 0:f.data[0]),_.value=!1}).catch(a=>{p.fire({icon:"error",title:"Oops!",text:a.response.data.meta.message}),_.value=!1})}function i(a){return Intl.NumberFormat("en",{notation:"compact"}).format(a)}return x(),(a,s)=>(c(),v("div",V,[t($,{loading:_.value},null,8,["loading"]),e("div",b,[t(d,null,{default:l(()=>[e("div",B,[t(r(n),{href:a.route("admin.users"),class:"hover:no-underline"},{default:l(()=>[e("div",N,u(i(o.value.num_users)),1),s[0]||(s[0]=e("div",{class:"text-xs"}," # Users ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",D,[t(r(n),{href:a.route("admin.teams"),class:"hover:no-underline"},{default:l(()=>[e("div",F,u(i(o.value.num_teams)),1),s[1]||(s[1]=e("div",{class:"text-xs"}," # Teams ",-1))]),_:1},8,["href"])])]),_:1}),s[8]||(s[8]=e("div",{class:"hidden lg:inline"},null,-1)),s[9]||(s[9]=e("div",{class:"hidden lg:inline"},null,-1)),t(d,null,{default:l(()=>[e("div",R,[t(r(n),{href:a.route("admin.voucher-sets"),class:"hover:no-underline"},{default:l(()=>[e("div",k,u(i(o.value.num_voucher_sets)),1),s[2]||(s[2]=e("div",{class:"text-xs"}," # Voucher Sets ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",C,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",O,u(i(o.value.num_vouchers)),1),s[3]||(s[3]=e("div",{class:"text-xs"}," # Vouchers ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",A,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",E,u(i(o.value.sum_voucher_value_total)),1),s[4]||(s[4]=e("div",{class:"text-xs"}," $ Voucher (Original) ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",H,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",I,u(i(o.value.sum_voucher_value_remaining)),1),s[5]||(s[5]=e("div",{class:"text-xs"}," $ Vouchers Remaining ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",T,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",U,u(i(o.value.num_voucher_redemptions)),1),s[6]||(s[6]=e("div",{class:"text-xs"}," # Redemptions ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",Z,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",q,u(i(o.value.sum_voucher_value_redeemed)),1),s[7]||(s[7]=e("div",{class:"text-xs"}," $ Redemptions ",-1))]),_:1},8,["href"])])]),_:1})])]))}},ee={__name:"AdminHome",setup(h){return(_,o)=>(c(),v(y,null,[t(r(w),{title:"Dashboard"}),t(g,null,{header:l(()=>[t(S)]),default:l(()=>[t(z),t(j,{"is-admin":!0})]),_:1})],64))}};export{ee as default}; +import{S as p,_ as g}from"./AuthenticatedLayout-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/AdminTeamCreateComponent--ZqK8uaD.js b/public/build/assets/AdminTeamCreateComponent-i0AzNkZR.js similarity index 87% rename from public/build/assets/AdminTeamCreateComponent--ZqK8uaD.js rename to public/build/assets/AdminTeamCreateComponent-i0AzNkZR.js index c362111f..d5fc771e 100644 --- a/public/build/assets/AdminTeamCreateComponent--ZqK8uaD.js +++ b/public/build/assets/AdminTeamCreateComponent-i0AzNkZR.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-DolNWhzr.js";import{_ as B}from"./TextInput-C41DJZHw.js";import{P as T}from"./PrimaryButton-BtqGl7rR.js";import{S as c}from"./AuthenticatedLayout-DuLcXyKk.js";const h={class:"flex justify-start items-center mt-4"},j={class:"w-full font-bold",for:"name"},M={class:"flex justify-start items-center mt-4"},$={class:"w-full font-bold",for:"country"},D=["value"],F={class:"flex items-center justify-end mt-4"},E={__name:"AdminTeamCreateComponent",props:{searchStr:{default:null}},emits:["teamCreated"],setup(f,{emit:v}){const i=f,m=u({}),t=u({name:"",country_id:""}),p=v;b(()=>{i.searchStr!==null&&(t.value.name=i.searchStr),_()});function y(){axios.post("/admin/teams",t.value).then(a=>{c.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{let e=a.data.data;p("teamCreated",e),e.value={}})}).catch(a=>{c.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function _(){axios.get("/countries?limit=300").then(a=>{m.value=a.data.data}).catch(a=>{console.log(a)})}return(a,e)=>(l(),n("form",{onSubmit:e[3]||(e[3]=N(s=>y(),["prevent"]))},[o("div",null,[o("div",h,[o("label",j,[e[4]||(e[4]=r(" Team Name: ")),d(B,{id:"name",modelValue:t.value.name,"onUpdate:modelValue":e[0]||(e[0]=s=>t.value.name=s),class:"mt-1 block w-full font-normal",type:"text"},null,8,["modelValue"])])]),o("div",M,[o("label",$,[e[6]||(e[6]=r(" Country: ")),x(o("select",{id:"country","onUpdate:modelValue":e[1]||(e[1]=s=>t.value.country_id=s),class:"mt-1 block w-full font-normal"},[e[5]||(e[5]=o("option",{value:""},"Select a country",-1)),(l(!0),n(w,null,C(m.value.data,s=>(l(),n("option",{key:s.id,value:s.id},g(s.name),9,D))),128))],512),[[S,t.value.country_id]])])])]),o("div",F,[d(T,{class:V([{"opacity-25":!t.value.name||!t.value.country_id},"ms-4 hover:cursor-pointer"]),disabled:!t.value.name||!t.value.country_id,onClick:e[2]||(e[2]=()=>{})},{default:k(()=>e[7]||(e[7]=[r(" Submit ")])),_:1},8,["class","disabled"])])],32))}};export{E as _}; +import{r as u,o as b,b as l,c as n,d as o,e as r,a as d,l as x,v as S,F as w,g as C,t as g,w as k,n as V,k as N}from"./app-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 _}; diff --git a/public/build/assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js b/public/build/assets/AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js similarity index 98% rename from public/build/assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js rename to public/build/assets/AdminTeamVoucherTemplateEditComponent-6UD9vN2F.js index 2ed466e8..929193f7 100644 --- a/public/build/assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js +++ b/public/build/assets/AdminTeamVoucherTemplateEditComponent-6UD9vN2F.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-DolNWhzr.js";import{_ as He}from"./TextInput-C41DJZHw.js";import{_ as w}from"./InputLabel-P7ZTY_pn.js";import{P as Ke}from"./PrimaryButton-BtqGl7rR.js";import{S as te}from"./AuthenticatedLayout-DuLcXyKk.js";import{_ as Xe}from"./SecondaryButton-DL_I_H3U.js";import{D as me}from"./DangerButton-Bm5iDOLt.js";import{_ as Qe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Je}from"./Checkbox-YEQY-CTw.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{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 _}; diff --git a/public/build/assets/AdminTopNavigation-Bl9ElpaD.js b/public/build/assets/AdminTopNavigation-C3cfuSp_.js similarity index 97% rename from public/build/assets/AdminTopNavigation-Bl9ElpaD.js rename to public/build/assets/AdminTopNavigation-C3cfuSp_.js index 26627b93..4ab0b54f 100644 --- a/public/build/assets/AdminTopNavigation-Bl9ElpaD.js +++ b/public/build/assets/AdminTopNavigation-C3cfuSp_.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-DolNWhzr.js";import{S as N}from"./AuthenticatedLayout-DuLcXyKk.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,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 _}; diff --git a/public/build/assets/AdminUserDetailsComponent-BIuw6cp6.js b/public/build/assets/AdminUserDetailsComponent-Dw2XKneS.js similarity index 83% rename from public/build/assets/AdminUserDetailsComponent-BIuw6cp6.js rename to public/build/assets/AdminUserDetailsComponent-Dw2XKneS.js index d2f69cdc..a40ced6c 100644 --- a/public/build/assets/AdminUserDetailsComponent-BIuw6cp6.js +++ b/public/build/assets/AdminUserDetailsComponent-Dw2XKneS.js @@ -1 +1 @@ -import{b as r,c as o,d as s,t,e as c}from"./app-DolNWhzr.js";const n={class:""},i={class:"text-xs text-gray-300"},_={class:"text-sm"},m={__name:"AdminUserDetailsComponent",props:{user:{required:!0,type:Object}},setup(a){const e=a;return(d,p)=>(r(),o("div",null,[s("div",n,[s("span",i,"#"+t(e.user.id)+".",1),c(" "+t(e.user.name),1)]),s("div",_,t(e.user.email),1)]))}};export{m as _}; +import{b as r,c as o,d as s,t,e as c}from"./app-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 _}; diff --git a/public/build/assets/AjaxLoadingIndicator-DnIg5N8b.js b/public/build/assets/AjaxLoadingIndicator-vGmUEu_U.js similarity index 90% rename from public/build/assets/AjaxLoadingIndicator-DnIg5N8b.js rename to public/build/assets/AjaxLoadingIndicator-vGmUEu_U.js index 5c8c529d..31f66f01 100644 --- a/public/build/assets/AjaxLoadingIndicator-DnIg5N8b.js +++ b/public/build/assets/AjaxLoadingIndicator-vGmUEu_U.js @@ -1 +1 @@ -import{b as s,c as a,d as e,f as c}from"./app-DolNWhzr.js";const l={key:0,class:"-ml-12 -mt-12"},m={__name:"AjaxLoadingIndicator",props:{loading:{type:Boolean,required:!0,default:!1}},setup(t){const r=t;return(n,o)=>r.loading?(s(),a("div",l,o[0]||(o[0]=[e("svg",{class:"animate-spin -ml-1 mr-3 h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))):c("",!0)}};export{m as _}; +import{b as s,c as a,d as e,f as c}from"./app-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-B917rUN3.js b/public/build/assets/ApplicationLogo-ByNwEwX1.js similarity index 99% rename from public/build/assets/ApplicationLogo-B917rUN3.js rename to public/build/assets/ApplicationLogo-ByNwEwX1.js index 7d68b204..80d3aec8 100644 --- a/public/build/assets/ApplicationLogo-B917rUN3.js +++ b/public/build/assets/ApplicationLogo-ByNwEwX1.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-DolNWhzr.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+2Jd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Glm+mQQ7sO9zD0nTxUnLskBrL2axP0ufDXQz6gkuXqOwy76xr1OvD4OXEtrw9KyQRQUAQEAQEAUFAEBAE1oTAxgkgx6GIzwkI2AWsbS+h2WvVMb4qxEot+Z4X7feDXPDH552h7QZPMcF9C3sPG5QXWr+KAVpMf+/s/RLGKBUbluKCgCAgCAgCgoAgIAiURgC8ZvuBy8JeNIVGcHUiiAGNYyfMvv8W8dgBM0dIJ8zGPkKQTq+9qZFTphC+AmW5d1OISz+CgCBwmxCQJeDb9LRE1ruCwFY0gFnwlPXrsA4iCK1cE0SyCfVcK9HQhXF3+17gQYO3jNourr/cP38U+dEFXLv0l6svtQQBQUAQEAQEAUFAEKgfgZ0ggHpYmgjSHQvcxtCatqPzbtl1AL+DIH7VTjS5ZWMUcQUBQUAQEAQEAUHgliKwUwRQY6gMOI6wR/CErlWiyH8G1d2Bzt/FK5d5Pbisge/CAZead1FGkUkQEAQEgV1EIIy8P2KvdSoEXvTHVILcCAKCQK0IZD5ytbZda2O02AUZhNXt7pBBkj5oKQe+H74uY3VcKyDSmCAgCAgCdwSB709++S+DcPo/MJx/pYb0D3/8ae8//usvfvvjHRmiDEMQ2DkEbg0BNJEDGWzsgQzimLXHSOdev6aZv644CR/aHoa+93bqhUPR9K0LaWlXEBAE7hsCk7/65cdBcPNXHPf+3v6rf37+23+4bxjIeAWBTSJwKwlgFiASwn1vH0vEYQuneXwEK+AmDEG4ZNzIli1/Hzue5kkkX0eeP5p605EQvvLoSUlBQBAQBAQBQUAQ2F0E7gQBzIP3j8e//PlP3s3P02WCP8d+k++jKPy9mR4E4ffvn3+VSjPzJS4ICAKCgCAgCAgCgsBdQOD/A497TRFqF6UzAAAAAElFTkSuQmCC"})],-1)]))}const l=Q(C,[["render",v]]);export{l as A}; +import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as I,c as B,d as A}from"./app-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/pUalsiAgCAgCgoAgIAgIAmtCY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Yb0D3/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-BkG124Pl.js b/public/build/assets/AuditItems-BkG124Pl.js new file mode 100644 index 00000000..76d99aa6 --- /dev/null +++ b/public/build/assets/AuditItems-BkG124Pl.js @@ -0,0 +1 @@ +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/AuditItems-CVvx5G_R.js b/public/build/assets/AuditItems-CVvx5G_R.js deleted file mode 100644 index 5e5ed49b..00000000 --- a/public/build/assets/AuditItems-CVvx5G_R.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_}from"./AuditItemsComponent-C0ljhUTP.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./dayjs.min-ilzO22t1.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-C0ljhUTP.js b/public/build/assets/AuditItemsComponent-DimcBaox.js similarity index 86% rename from public/build/assets/AuditItemsComponent-C0ljhUTP.js rename to public/build/assets/AuditItemsComponent-DimcBaox.js index 2ac042da..a669c0cc 100644 --- a/public/build/assets/AuditItemsComponent-C0ljhUTP.js +++ b/public/build/assets/AuditItemsComponent-DimcBaox.js @@ -1 +1 @@ -import{d as m}from"./dayjs.min-ilzO22t1.js";import{S as f}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.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-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 _}; diff --git a/public/build/assets/AuthenticatedLayout-DuLcXyKk.js b/public/build/assets/AuthenticatedLayout-CFkkM4Xw.js similarity index 99% rename from public/build/assets/AuthenticatedLayout-DuLcXyKk.js rename to public/build/assets/AuthenticatedLayout-CFkkM4Xw.js index b30643a7..bc9501f4 100644 --- a/public/build/assets/AuthenticatedLayout-DuLcXyKk.js +++ b/public/build/assets/AuthenticatedLayout-CFkkM4Xw.js @@ -1,4 +1,4 @@ -import{A as eo}from"./ApplicationLogo-B917rUN3.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-DolNWhzr.js";import{P as io}from"./PrimaryButton-BtqGl7rR.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"]))}};/*! +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=` diff --git a/public/build/assets/Checkbox-YEQY-CTw.js b/public/build/assets/Checkbox-B4dYSFbU.js similarity index 87% rename from public/build/assets/Checkbox-YEQY-CTw.js rename to public/build/assets/Checkbox-B4dYSFbU.js index 91d0427e..f1e5497e 100644 --- a/public/build/assets/Checkbox-YEQY-CTw.js +++ b/public/build/assets/Checkbox-B4dYSFbU.js @@ -1 +1 @@ -import{A as n,l as d,m as l,b as i,c as p}from"./app-DolNWhzr.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{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 _}; diff --git a/public/build/assets/ConfirmPassword-CPdCSdFC.js b/public/build/assets/ConfirmPassword-fMx26ara.js similarity index 77% rename from public/build/assets/ConfirmPassword-CPdCSdFC.js rename to public/build/assets/ConfirmPassword-fMx26ara.js index bd250bdc..1fe15122 100644 --- a/public/build/assets/ConfirmPassword-CPdCSdFC.js +++ b/public/build/assets/ConfirmPassword-fMx26ara.js @@ -1 +1 @@ -import{T as n,h as l,w as t,b as d,a,u as r,Z as p,d as e,e as f,n as u,k as c}from"./app-DolNWhzr.js";import{_}from"./GuestLayout-BPBJX1aK.js";import{_ as w}from"./InputError-CTOWZzBt.js";import{_ as b}from"./InputLabel-P7ZTY_pn.js";import{P as x}from"./PrimaryButton-BtqGl7rR.js";import{_ as g}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"flex justify-end mt-4"},j={__name:"ConfirmPassword",setup(P){const s=n({password:""}),i=()=>{s.post(route("password.confirm"),{onFinish:()=>s.reset()})};return(V,o)=>(d(),l(_,null,{default:t(()=>[a(r(p),{title:"Confirm Password"}),o[2]||(o[2]=e("div",{class:"mb-4 text-sm text-gray-600"}," This is a secure area of the application. Please confirm your password before continuing. ",-1)),e("form",{onSubmit:c(i,["prevent"])},[e("div",null,[a(b,{for:"password",value:"Password"}),a(g,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:r(s).password,"onUpdate:modelValue":o[0]||(o[0]=m=>r(s).password=m),required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"]),a(w,{class:"mt-2",message:r(s).errors.password},null,8,["message"])]),e("div",y,[a(x,{class:u(["ms-4",{"opacity-25":r(s).processing}]),disabled:r(s).processing},{default:t(()=>o[1]||(o[1]=[f(" Confirm ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; +import{T as n,h as l,w as t,b as d,a,u as r,Z as p,d as e,e as f,n as u,k as c}from"./app-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-Bm5iDOLt.js b/public/build/assets/DangerButton-BXvpand6.js similarity index 87% rename from public/build/assets/DangerButton-Bm5iDOLt.js rename to public/build/assets/DangerButton-BXvpand6.js index ff084b82..96fd1c72 100644 --- a/public/build/assets/DangerButton-Bm5iDOLt.js +++ b/public/build/assets/DangerButton-BXvpand6.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-DolNWhzr.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,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}; diff --git a/public/build/assets/Dashboard-DNnYM2Kc.js b/public/build/assets/Dashboard-Dxwif1t_.js similarity index 89% rename from public/build/assets/Dashboard-DNnYM2Kc.js rename to public/build/assets/Dashboard-Dxwif1t_.js index e36d4292..bf957d7b 100644 --- a/public/build/assets/Dashboard-DNnYM2Kc.js +++ b/public/build/assets/Dashboard-Dxwif1t_.js @@ -1 +1 @@ -import{_ as b}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{P as A}from"./PaginatorComponent-DpqX95xS.js";import{P as B}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-DL_I_H3U.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-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}; diff --git a/public/build/assets/DeleteUserForm-CdHmJiuD.js b/public/build/assets/DeleteUserForm-CEXksFCm.js similarity index 92% rename from public/build/assets/DeleteUserForm-CdHmJiuD.js rename to public/build/assets/DeleteUserForm-CEXksFCm.js index 0379f8f1..610fed21 100644 --- a/public/build/assets/DeleteUserForm-CdHmJiuD.js +++ b/public/build/assets/DeleteUserForm-CEXksFCm.js @@ -1 +1 @@ -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-DolNWhzr.js";import{D as x}from"./DangerButton-Bm5iDOLt.js";import{_ as N}from"./InputError-CTOWZzBt.js";import{_ as z}from"./InputLabel-P7ZTY_pn.js";import{_ as I}from"./SecondaryButton-DL_I_H3U.js";import{_ as L}from"./TextInput-C41DJZHw.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}; +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/Edit-BofEmzVj.js b/public/build/assets/Edit-e8vmtn8h.js similarity index 57% rename from public/build/assets/Edit-BofEmzVj.js rename to public/build/assets/Edit-e8vmtn8h.js index 4fb4d650..a81f6e82 100644 --- a/public/build/assets/Edit-BofEmzVj.js +++ b/public/build/assets/Edit-e8vmtn8h.js @@ -1 +1 @@ -import{_ as o}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import d from"./UpdatePasswordForm-C370omcu.js";import u from"./UpdateProfileInformationForm-CxNRXhbu.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./InputError-CTOWZzBt.js";import"./InputLabel-P7ZTY_pn.js";import"./TextInput-C41DJZHw.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-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}; diff --git a/public/build/assets/ErrorMessagePage-DtsaBtAA.js b/public/build/assets/ErrorMessagePage-Dfc4VZBm.js similarity index 79% rename from public/build/assets/ErrorMessagePage-DtsaBtAA.js rename to public/build/assets/ErrorMessagePage-Dfc4VZBm.js index e032a394..aba0965f 100644 --- a/public/build/assets/ErrorMessagePage-DtsaBtAA.js +++ b/public/build/assets/ErrorMessagePage-Dfc4VZBm.js @@ -1 +1 @@ -import{_ as d}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{P as h}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={class:"font-normal text-xl text-gray-800 leading-tight"},x={class:"card"},y={class:"mb-8"},k={__name:"ErrorMessagePage",props:{voucherSetId:{type:String,required:!1},voucherId:{type:String,required:!1},title:{type:String,required:!0,default:""},text:{type:String,required:!0,default:""}},setup(l){const r=l;return(n,s)=>(f(),u(c,null,[e(o(m),{title:r.title},null,8,["title"]),e(d,null,{header:t(()=>[a("h2",g,i(r.title),1)]),default:t(()=>[a("div",x,[a("div",y,i(r.text),1),e(o(p),{href:n.route("dashboard")},{default:t(()=>[e(h,null,{default:t(()=>s[0]||(s[0]=[_("Back to home")])),_:1})]),_:1},8,["href"])])]),_:1})],64))}};export{k as default}; +import{_ as d}from"./AuthenticatedLayout-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-CtrOA6NT.js b/public/build/assets/ForgotPassword-BpmIqATb.js similarity index 75% rename from public/build/assets/ForgotPassword-CtrOA6NT.js rename to public/build/assets/ForgotPassword-BpmIqATb.js index 31f7d111..dc0d505d 100644 --- a/public/build/assets/ForgotPassword-CtrOA6NT.js +++ b/public/build/assets/ForgotPassword-BpmIqATb.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-DolNWhzr.js";import{_ as b}from"./GuestLayout-BPBJX1aK.js";import{_ as k}from"./InputError-CTOWZzBt.js";import{_ as x}from"./InputLabel-P7ZTY_pn.js";import{P as V}from"./PrimaryButton-BtqGl7rR.js";import{_ as v}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"flex items-center justify-end mt-4"},q={__name:"ForgotPassword",props:{status:{type:String}},setup(r){const e=u({email:""}),i=()=>{e.post(route("password.email"))};return(P,s)=>(m(),d(b,null,{default:l(()=>[a(t(c),{title:"Forgot Password"}),s[2]||(s[2]=o("div",{class:"mb-4 text-sm text-gray-600"}," Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one. ",-1)),r.status?(m(),f("div",B,p(r.status),1)):w("",!0),o("form",{onSubmit:g(i,["prevent"])},[o("div",null,[a(x,{for:"email",value:"Email"}),a(v,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=n=>t(e).email=n),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),a(k,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),o("div",N,[a(V,{class:y({"opacity-25":t(e).processing}),disabled:t(e).processing},{default:l(()=>s[1]||(s[1]=[_(" Email Password Reset Link ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{q as default}; +import{T as u,h as d,w as l,b as m,a,u as t,Z as c,d as o,c as f,t as p,f as w,e as _,n as y,k as g}from"./app-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}; diff --git a/public/build/assets/GuestLayout-BPBJX1aK.js b/public/build/assets/GuestLayout-CCWlBOd3.js similarity index 65% rename from public/build/assets/GuestLayout-BPBJX1aK.js rename to public/build/assets/GuestLayout-CCWlBOd3.js index c617807f..3119288d 100644 --- a/public/build/assets/GuestLayout-BPBJX1aK.js +++ b/public/build/assets/GuestLayout-CCWlBOd3.js @@ -1 +1 @@ -import{A as a}from"./ApplicationLogo-B917rUN3.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-DolNWhzr.js";const d={class:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100"},m={class:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg"},h={__name:"GuestLayout",setup(u){return(t,f)=>(o(),r("div",d,[e("div",null,[s(c(n),{href:"/"},{default:l(()=>[s(a,{class:"h-16 fill-current text-gray-500"})]),_:1})]),e("div",m,[i(t.$slots,"default")])]))}};export{h as _}; +import{A as a}from"./ApplicationLogo-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-CTOWZzBt.js b/public/build/assets/InputError-D2YhlUuu.js similarity index 53% rename from public/build/assets/InputError-CTOWZzBt.js rename to public/build/assets/InputError-D2YhlUuu.js index 44f479ea..c139ff64 100644 --- a/public/build/assets/InputError-CTOWZzBt.js +++ b/public/build/assets/InputError-D2YhlUuu.js @@ -1 +1 @@ -import{l as s,H as t,b as a,c as r,d as c,t as o}from"./app-DolNWhzr.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,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 _}; diff --git a/public/build/assets/InputLabel-P7ZTY_pn.js b/public/build/assets/InputLabel-CEnHGhsA.js similarity index 80% rename from public/build/assets/InputLabel-P7ZTY_pn.js rename to public/build/assets/InputLabel-CEnHGhsA.js index fe73edd2..35bfe01f 100644 --- a/public/build/assets/InputLabel-P7ZTY_pn.js +++ b/public/build/assets/InputLabel-CEnHGhsA.js @@ -1 +1 @@ -import{b as e,c as t,t as o,G as n}from"./app-DolNWhzr.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,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 _}; diff --git a/public/build/assets/Login-CSSIF9_W.js b/public/build/assets/Login-EQqpAp49.js similarity index 84% rename from public/build/assets/Login-CSSIF9_W.js rename to public/build/assets/Login-EQqpAp49.js index 516ef7e0..f9abeca9 100644 --- a/public/build/assets/Login-CSSIF9_W.js +++ b/public/build/assets/Login-EQqpAp49.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-DolNWhzr.js";import{_ as B}from"./Checkbox-YEQY-CTw.js";import{_ as P}from"./GuestLayout-BPBJX1aK.js";import{_ as f}from"./InputError-CTOWZzBt.js";import{_ as c}from"./InputLabel-P7ZTY_pn.js";import{P as $}from"./PrimaryButton-BtqGl7rR.js";import{_ as p}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const h={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"mt-4"},q={class:"block mt-4"},C={class:"flex items-center"},L={class:"flex items-center justify-end mt-4"},M={__name:"Login",props:{canResetPassword:{type:Boolean},status:{type:String}},setup(m){const e=_({email:"",password:"",remember:!1}),g=()=>{e.post(route("login"),{onFinish:()=>e.reset("password")})};return(w,s)=>(i(),n(P,null,{default:l(()=>[o(t(b),{title:"Log in"}),m.status?(i(),y("div",h,k(m.status),1)):d("",!0),a("form",{onSubmit:v(g,["prevent"])},[a("div",null,[o(c,{for:"email",value:"Email"}),o(p,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=r=>t(e).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),a("div",N,[o(c,{for:"password",value:"Password"}),o(p,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:t(e).password,"onUpdate:modelValue":s[1]||(s[1]=r=>t(e).password=r),required:"",autocomplete:"current-password"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),a("div",q,[a("label",C,[o(B,{name:"remember",checked:t(e).remember,"onUpdate:checked":s[2]||(s[2]=r=>t(e).remember=r)},null,8,["checked"]),s[3]||(s[3]=a("span",{class:"ms-2 text-sm text-gray-600"},"Remember me",-1))])]),a("div",L,[m.canResetPassword?(i(),n(t(x),{key:0,href:w.route("password.request"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:l(()=>s[4]||(s[4]=[u(" Forgot your password? ")])),_:1},8,["href"])):d("",!0),o($,{class:V(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:l(()=>s[5]||(s[5]=[u(" Log in ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{M as default}; +import{T as _,h as n,w as l,b as i,a as o,u as t,Z as b,c as y,t as k,f as d,d as a,i as x,e as u,n as V,k as v}from"./app-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}; diff --git a/public/build/assets/MyTeam-Bp8yT71s.js b/public/build/assets/MyTeam-DF5vmHBf.js similarity index 92% rename from public/build/assets/MyTeam-Bp8yT71s.js rename to public/build/assets/MyTeam-DF5vmHBf.js index 17bb772c..f590e3a0 100644 --- a/public/build/assets/MyTeam-Bp8yT71s.js +++ b/public/build/assets/MyTeam-DF5vmHBf.js @@ -1 +1 @@ -import{S as k,_ as B}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import"./dayjs.min-ilzO22t1.js";import"./relativeTime-BTl_QCHW.js";import"./utc-CWodzHWT.js";import{_ as E}from"./TextInput-C41DJZHw.js";import{P as $}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={key:0,class:"card"},P={key:0},U={class:"flex justify-between items-center"},q={class:"flex-grow mr-2"},z={class:"ml-2"},K={key:0,class:"p-2 text-sm"},L=["onClick"],O={key:1,class:"flex justify-between items-center"},Q={class:"ml-2"},Y={__name:"MyTeamEditorComponent",setup(w){const n=v({}),c=v({}),i=v({}),u=v(""),o=v(!1);b(()=>{d()});function r(){o.value=!1,u.value="",n.value={}}function d(){axios.get("/my-team?cached=false&relations=country").then(l=>{c.value=l.data.data,i.value=c.value.country}).catch(l=>{console.log(l)})}function T(l){i.value=l,n.value={},o.value=!1}function M(){let l={country_id:i.value.id};axios.put("/my-team/"+V().props.auth.user.current_team_id,l).then(t=>{k.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{d()})}).catch(t=>{k.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function S(){u.value.length>2&&axios.get("/countries?cached=false&where[]=name,like,*"+u.value+"*&").then(l=>{n.value=l.data.data}).catch(l=>{console.log(l)})}return(l,t)=>c.value.country?(s(),a("div",F,[t[7]||(t[7]=e("div",{class:"card-header"}," Country / Currency ",-1)),o.value?(s(),a("div",P,[e("div",U,[e("div",q,[f(E,{id:"country",type:"text",class:"mt-1 block w-full",modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=m=>u.value=m),required:"",onKeyup:t[1]||(t[1]=m=>S())},null,8,["modelValue"])]),e("div",z,[u.value.length===0||i.value.id===c.value.country_id?(s(),C($,{key:0,onClick:t[2]||(t[2]=m=>r())},{default:h(()=>t[5]||(t[5]=[g("Cancel")])),_:1})):_("",!0)])]),n.value.data&&n.value.data.length?(s(),a("div",K,[(s(!0),a(p,null,x(n.value.data,m=>(s(),a("div",{class:"py-1 border-b cursor-pointer hover:opacity-50",onClick:oe=>T(m)},y(m.name),9,L))),256))])):_("",!0)])):(s(),a("div",O,[e("div",{onClick:t[3]||(t[3]=m=>o.value=!0),class:"cursor-pointer flex-grow mr-2"},y(i.value.name)+" ("+y(i.value.currency_code)+") ",1),e("div",Q,[u.value.length>0&&i.value.id!==c.value.country_id?(s(),C($,{key:0,onClick:t[4]||(t[4]=m=>M())},{default:h(()=>t[6]||(t[6]=[g("Save")])),_:1})):_("",!0)])]))])):_("",!0)}},Z={class:"card"},A={class:"flex items-start font-bold"},G={class:"pl-2 text-2xl"},H={class:"card",id:"myTeamMembers"},I={key:0},J={class:""},R={key:0,class:"flex items-center"},W={class:"card"},X={class:""},ee={class:"border-b py-2 flex justify-between"},te={key:0},se={key:1},ae=["href"],_e={__name:"MyTeam",setup(w){const n=v({}),c=v({});b(()=>{i(),u()});function i(){axios.get("/my-team?cached=false&relations=teamUsers.user").then(o=>{n.value=o.data.data}).catch(o=>{console.log(o)})}function u(){axios.get("/my-teams?cached=false&orderBy=name,asc").then(o=>{c.value=o.data.data}).catch(o=>{console.log(o)})}return(o,r)=>(s(),a(p,null,[f(N(j),{title:"Dashboard"}),f(B,null,{header:h(()=>r[0]||(r[0]=[g(" My Team ")])),default:h(()=>[e("div",Z,[e("div",A,[e("div",G,y(n.value.name),1)])]),e("div",H,[r[1]||(r[1]=e("div",{class:"card-header"}," Team members ",-1)),n.value.team_users&&n.value.team_users.length>0?(s(),a("div",I,[(s(!0),a(p,null,x(n.value.team_users,d=>(s(),a("div",J,[e("div",{class:D({"border-b p-2":n.value.team_users.length>1})},[d.user?(s(),a("div",R,[e("div",null,y(d.user.name),1)])):_("",!0)],2)]))),256))])):_("",!0)]),e("div",W,[r[2]||(r[2]=e("div",{class:"card-header"}," Teams You Belong To ",-1)),(s(!0),a(p,null,x(c.value.data,d=>(s(),a("div",X,[e("div",ee,[e("div",null,y(d.name),1),e("div",null,[d.id===o.$page.props.auth.user.current_team_id?(s(),a("div",te," Current ")):(s(),a("div",se,[e("a",{href:"/switch-team/"+d.id,class:"text-red-500"},"Switch to this team",8,ae)]))])])]))),256))]),f(Y),r[3]||(r[3]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{_e as default}; +import{S as k,_ as B}from"./AuthenticatedLayout-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/MyTeamVoucherSets-BKBSr5xT.js b/public/build/assets/MyTeamVoucherSets-Cr7Jch_J.js similarity index 82% rename from public/build/assets/MyTeamVoucherSets-BKBSr5xT.js rename to public/build/assets/MyTeamVoucherSets-Cr7Jch_J.js index 1228bbeb..37feed20 100644 --- a/public/build/assets/MyTeamVoucherSets-BKBSr5xT.js +++ b/public/build/assets/MyTeamVoucherSets-Cr7Jch_J.js @@ -1 +1 @@ -import{_ as b}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{d as v}from"./dayjs.min-ilzO22t1.js";import{r as M}from"./relativeTime-BTl_QCHW.js";import{u as $}from"./utc-CWodzHWT.js";import{P as j}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.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}; +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/PaginatorComponent-DpqX95xS.js b/public/build/assets/PaginatorComponent-CMgspZ9V.js similarity index 93% rename from public/build/assets/PaginatorComponent-DpqX95xS.js rename to public/build/assets/PaginatorComponent-CMgspZ9V.js index bfdec00b..fd7e7a62 100644 --- a/public/build/assets/PaginatorComponent-DpqX95xS.js +++ b/public/build/assets/PaginatorComponent-CMgspZ9V.js @@ -1 +1 @@ -import{_ as m}from"./SecondaryButton-DL_I_H3U.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-DolNWhzr.js";const f={components:{SecondaryButton:m},props:{paginationData:{type:Object,required:!0},showSummary:{type:Boolean,required:!1,default:!0}},mounted(){},created(){},methods:{paginatePrevious(){this.paginationData.current_page>1&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page-1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page-1))},paginateNext(){this.paginationData.total>this.paginationData.to&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page+1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page+1))}}},h={key:0},w={class:"grid grid-cols-2 gap-2 text-center"},_={key:0,class:"w-full text-center text-sm"};function D(x,t,a,v,k,o){const i=d("SecondaryButton");return a.paginationData.total>a.paginationData.per_page?(s(),r("div",h,[e("div",w,[e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[0]||(t[0]=c=>o.paginatePrevious())},{default:p(()=>t[2]||(t[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1)])),_:1})]),e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[1]||(t[1]=c=>o.paginateNext())},{default:p(()=>t[3]||(t[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1})])]),a.showSummary?(s(),r("div",_," Showing "+n(a.paginationData.from)+" - "+n(a.paginationData.to)+" of "+n(a.paginationData.total),1)):g("",!0)])):g("",!0)}const P=u(f,[["render",D]]);export{P}; +import{_ as m}from"./SecondaryButton-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/PrimaryButton-BtqGl7rR.js b/public/build/assets/PrimaryButton-lhUrXoRs.js similarity index 88% rename from public/build/assets/PrimaryButton-BtqGl7rR.js rename to public/build/assets/PrimaryButton-lhUrXoRs.js index ce2fd37b..03b60851 100644 --- a/public/build/assets/PrimaryButton-BtqGl7rR.js +++ b/public/build/assets/PrimaryButton-lhUrXoRs.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-DolNWhzr.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,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}; diff --git a/public/build/assets/Register-CvIlSVQL.js b/public/build/assets/Register-hvwBXu_0.js similarity index 87% rename from public/build/assets/Register-CvIlSVQL.js rename to public/build/assets/Register-hvwBXu_0.js index b83e1fb7..39ce6e3b 100644 --- a/public/build/assets/Register-CvIlSVQL.js +++ b/public/build/assets/Register-hvwBXu_0.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-DolNWhzr.js";import{_ as y}from"./GuestLayout-BPBJX1aK.js";import{_ as t}from"./InputError-CTOWZzBt.js";import{_ as m}from"./InputLabel-P7ZTY_pn.js";import{P as b}from"./PrimaryButton-BtqGl7rR.js";import{_ as i}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"mt-4"},k={class:"mt-4"},q={class:"mt-4"},B={class:"flex items-center justify-end mt-4"},A={__name:"Register",setup(N){const s=f({name:"",email:"",password:"",password_confirmation:""}),u=()=>{s.post(route("register"),{onFinish:()=>s.reset("password","password_confirmation")})};return(p,a)=>(w(),c(y,null,{default:n(()=>[o(e(_),{title:"Register"}),l("form",{onSubmit:v(u,["prevent"])},[l("div",null,[o(m,{for:"name",value:"Name"}),o(i,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(s).name,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).name=r),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.name},null,8,["message"])]),l("div",x,[o(m,{for:"email",value:"Email"}),o(i,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).email=r),required:"",autocomplete:"username"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),l("div",k,[o(m,{for:"password",value:"Password"}),o(i,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),l("div",q,[o(m,{for:"password_confirmation",value:"Confirm Password"}),o(i,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[3]||(a[3]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),l("div",B,[o(e(g),{href:p.route("login"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:n(()=>a[4]||(a[4]=[d(" Already registered? ")])),_:1},8,["href"]),o(b,{class:V(["ms-4",{"opacity-25":e(s).processing}]),disabled:e(s).processing},{default:n(()=>a[5]||(a[5]=[d(" Register ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{A as default}; +import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as l,e as d,i as g,n as V,k as v}from"./app-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}; diff --git a/public/build/assets/ResetPassword-BBx7Oi9y.js b/public/build/assets/ResetPassword-CCNd9Y2N.js similarity index 85% rename from public/build/assets/ResetPassword-BBx7Oi9y.js rename to public/build/assets/ResetPassword-CCNd9Y2N.js index 23011c51..1098cba0 100644 --- a/public/build/assets/ResetPassword-BBx7Oi9y.js +++ b/public/build/assets/ResetPassword-CCNd9Y2N.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-DolNWhzr.js";import{_ as b}from"./GuestLayout-BPBJX1aK.js";import{_ as l}from"./InputError-CTOWZzBt.js";import{_ as i}from"./InputLabel-P7ZTY_pn.js";import{P as v}from"./PrimaryButton-BtqGl7rR.js";import{_ as m}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"mt-4"},P={class:"mt-4"},q={class:"flex items-center justify-end mt-4"},j={__name:"ResetPassword",props:{email:{type:String,required:!0},token:{type:String,required:!0}},setup(p){const d=p,s=f({token:d.token,email:d.email,password:"",password_confirmation:""}),u=()=>{s.post(route("password.store"),{onFinish:()=>s.reset("password","password_confirmation")})};return(x,a)=>(w(),c(b,null,{default:n(()=>[o(e(_),{title:"Reset Password"}),t("form",{onSubmit:k(u,["prevent"])},[t("div",null,[o(i,{for:"email",value:"Email"}),o(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),t("div",y,[o(i,{for:"password",value:"Password"}),o(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),t("div",P,[o(i,{for:"password_confirmation",value:"Confirm Password"}),o(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),t("div",q,[o(v,{class:g({"opacity-25":e(s).processing}),disabled:e(s).processing},{default:n(()=>a[3]||(a[3]=[V(" Reset Password ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; +import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as t,e as V,n as g,k}from"./app-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}; diff --git a/public/build/assets/SecondaryButton-DL_I_H3U.js b/public/build/assets/SecondaryButton-B0hUOCHS.js similarity index 75% rename from public/build/assets/SecondaryButton-DL_I_H3U.js rename to public/build/assets/SecondaryButton-B0hUOCHS.js index fcb68656..f783c0fc 100644 --- a/public/build/assets/SecondaryButton-DL_I_H3U.js +++ b/public/build/assets/SecondaryButton-B0hUOCHS.js @@ -1 +1 @@ -import{b as o,c as n,G as s}from"./app-DolNWhzr.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,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 _}; diff --git a/public/build/assets/Team-BP2ZvGAI.js b/public/build/assets/Team-CZl5pAZo.js similarity index 96% rename from public/build/assets/Team-BP2ZvGAI.js rename to public/build/assets/Team-CZl5pAZo.js index 91ea76eb..818e0525 100644 --- a/public/build/assets/Team-BP2ZvGAI.js +++ b/public/build/assets/Team-CZl5pAZo.js @@ -1 +1 @@ -import{b as a,c as s,d as e,t as N,r as p,a as i,j as G,k as O,F as A,g as I,f as b,o as W,w as k,e as $,u as V,i as D,n as R,Z as Y,l as Z,v as H}from"./app-DolNWhzr.js";import{S as j,_ as J}from"./AuthenticatedLayout-DuLcXyKk.js";import{_ as Q}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as U}from"./PaginatorComponent-DpqX95xS.js";import{P as B}from"./PrimaryButton-BtqGl7rR.js";import{_ as M}from"./TextInput-C41DJZHw.js";import{_ as q}from"./InputLabel-P7ZTY_pn.js";import{_ as L}from"./AdminTeamCreateComponent--ZqK8uaD.js";import{_ as X}from"./AdminUserDetailsComponent-BIuw6cp6.js";import{_ as ee}from"./SecondaryButton-DL_I_H3U.js";import{_ as te}from"./AjaxLoadingIndicator-DnIg5N8b.js";import{d as F}from"./dayjs.min-ilzO22t1.js";import{r as ae}from"./relativeTime-BTl_QCHW.js";import{u as se}from"./utc-CWodzHWT.js";import{D as ne}from"./DangerButton-Bm5iDOLt.js";import{_ as E}from"./VoucherSetsComponent-PmCvbfnV.js";import{_ as K}from"./VouchersComponent-o-O6pMZi.js";import"./ApplicationLogo-B917rUN3.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}; +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/TeamNew-2IygTToe.js b/public/build/assets/TeamNew-2IygTToe.js deleted file mode 100644 index b14d21b6..00000000 --- a/public/build/assets/TeamNew-2IygTToe.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as d}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as f}from"./AdminTeamCreateComponent--ZqK8uaD.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./TextInput-C41DJZHw.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 new file mode 100644 index 00000000..f742c86d --- /dev/null +++ b/public/build/assets/TeamNew-TdnuEUjd.js @@ -0,0 +1 @@ +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-BklxzQRZ.js b/public/build/assets/Teams-DNsfewGP.js similarity index 80% rename from public/build/assets/Teams-BklxzQRZ.js rename to public/build/assets/Teams-DNsfewGP.js index 02e14cca..1332949b 100644 --- a/public/build/assets/Teams-BklxzQRZ.js +++ b/public/build/assets/Teams-DNsfewGP.js @@ -1 +1 @@ -import{_ as g}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as P}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as b}from"./PrimaryButton-BtqGl7rR.js";import{P as C}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-DL_I_H3U.js";const N={class:"card"},T={class:"card"},V={key:0},j={class:"border-b flex justify-between items-center py-2 sm:p-2"},D={class:"font-bold"},F={class:"text-xs opacity-25"},S={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},I={__name:"Teams",setup(z){const h=m(20),o=m({});w(()=>{c()});function c(a=1){axios.get("/admin/teams?cached=false&page="+a+"&limit="+h.value+"&orderBy=id,desc").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function v(a){c(a)}return(a,t)=>(i(),l(u,null,[s(d(x),{title:"Teams"}),s(g,null,{header:n(()=>[s(P)]),default:n(()=>[e("div",N,[s(b,null,{default:n(()=>[s(d(f),{href:a.route("admin.teams.new")},{default:n(()=>t[0]||(t[0]=[_(" Create New Team ")])),_:1},8,["href"])]),_:1})]),e("div",T,[o.value.data&&o.value.data.length?(i(),l("div",V,[(i(!0),l(u,null,y(o.value.data,r=>(i(),B(d(f),{href:a.route("admin.team",r.id),class:"hover:no-underline hover:opacity-75"},{default:n(()=>[e("div",j,[e("div",null,[e("div",D,[e("span",F," #"+p(r.id),1),_(" "+p(r.name),1)])]),t[1]||(t[1]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):k("",!0),e("div",S,[e("div",$,[s(C,{onSetDataPage:v,"pagination-data":o.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{I as default}; +import{_ as g}from"./AuthenticatedLayout-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-C41DJZHw.js b/public/build/assets/TextInput-BT-7frEH.js similarity index 89% rename from public/build/assets/TextInput-C41DJZHw.js rename to public/build/assets/TextInput-BT-7frEH.js index 49b29acb..dbdeff6a 100644 --- a/public/build/assets/TextInput-C41DJZHw.js +++ b/public/build/assets/TextInput-BT-7frEH.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-DolNWhzr.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{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 _}; diff --git a/public/build/assets/UpdatePasswordForm-C370omcu.js b/public/build/assets/UpdatePasswordForm-Bt8q17jw.js similarity index 90% rename from public/build/assets/UpdatePasswordForm-C370omcu.js rename to public/build/assets/UpdatePasswordForm-Bt8q17jw.js index fda37d1a..4fcddef1 100644 --- a/public/build/assets/UpdatePasswordForm-C370omcu.js +++ b/public/build/assets/UpdatePasswordForm-Bt8q17jw.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-DolNWhzr.js";import{_ as l}from"./InputError-CTOWZzBt.js";import{_ as n}from"./InputLabel-P7ZTY_pn.js";import{P as x}from"./PrimaryButton-BtqGl7rR.js";import{_ as d}from"./TextInput-C41DJZHw.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"flex items-center gap-4"},k={key:0,class:"text-sm text-gray-600"},T={__name:"UpdatePasswordForm",setup(b){const u=m(null),p=m(null),s=_({current_password:"",password:"",password_confirmation:""}),f=()=>{s.put(route("password.update"),{preserveScroll:!0,onSuccess:()=>s.reset(),onError:()=>{s.errors.password&&(s.reset("password","password_confirmation"),u.value.focus()),s.errors.current_password&&(s.reset("current_password"),p.value.focus())}})};return(S,o)=>(w(),i("section",null,[o[4]||(o[4]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Update Password"),a("p",{class:"mt-1 text-sm text-gray-600"}," Ensure your account is using a long, random password to stay secure. ")],-1)),a("form",{onSubmit:y(f,["prevent"]),class:"mt-6 space-y-6"},[a("div",null,[e(n,{for:"current_password",value:"Current Password"}),e(d,{id:"current_password",ref_key:"currentPasswordInput",ref:p,modelValue:r(s).current_password,"onUpdate:modelValue":o[0]||(o[0]=t=>r(s).current_password=t),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.current_password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password",value:"New Password"}),e(d,{id:"password",ref_key:"passwordInput",ref:u,modelValue:r(s).password,"onUpdate:modelValue":o[1]||(o[1]=t=>r(s).password=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password_confirmation",value:"Confirm Password"}),e(d,{id:"password_confirmation",modelValue:r(s).password_confirmation,"onUpdate:modelValue":o[2]||(o[2]=t=>r(s).password_confirmation=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])]),a("div",P,[e(x,{disabled:r(s).processing},{default:c(()=>o[3]||(o[3]=[g("Save")])),_:1},8,["disabled"]),e(v,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:c(()=>[r(s).recentlySuccessful?(w(),i("p",k,"Saved.")):V("",!0)]),_:1})])],32)]))}};export{T as default}; +import{r as m,T as _,c as i,d as a,a as e,u as r,w as c,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}; diff --git a/public/build/assets/UpdateProfileInformationForm-CxNRXhbu.js b/public/build/assets/UpdateProfileInformationForm-B2hb0WtY.js similarity index 90% rename from public/build/assets/UpdateProfileInformationForm-CxNRXhbu.js rename to public/build/assets/UpdateProfileInformationForm-B2hb0WtY.js index 44dd99a9..2950456e 100644 --- a/public/build/assets/UpdateProfileInformationForm-CxNRXhbu.js +++ b/public/build/assets/UpdateProfileInformationForm-B2hb0WtY.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-DolNWhzr.js";import{_ as p}from"./InputError-CTOWZzBt.js";import{_ as v}from"./InputLabel-P7ZTY_pn.js";import{P as h}from"./PrimaryButton-BtqGl7rR.js";import{_ as y}from"./TextInput-C41DJZHw.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const S={key:0},B={class:"text-sm mt-2 text-gray-800"},N={class:"mt-2 font-medium text-sm text-green-600"},E={class:"flex items-center gap-4"},P={key:0,class:"text-sm text-gray-600"},A={__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(d){const r=g().props.auth.user,s=x({name:r.name,email:r.email});return(f,e)=>(u(),l("section",null,[e[6]||(e[6]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Profile Information"),a("p",{class:"mt-1 text-sm text-gray-600"}," Update your account's profile information and email address. ")],-1)),a("form",{onSubmit:e[2]||(e[2]=b(i=>t(s).patch(f.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[a("div",null,[o(v,{for:"name",value:"Name"}),o(y,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:t(s).name,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.name},null,8,["message"])]),a("div",null,[o(v,{for:"email",value:"Email"}),o(y,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(s).email,"onUpdate:modelValue":e[1]||(e[1]=i=>t(s).email=i),required:"",autocomplete:"username"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.email},null,8,["message"])]),d.mustVerifyEmail&&t(r).email_verified_at===null?(u(),l("div",S,[a("p",B,[e[4]||(e[4]=n(" Your email address is unverified. ")),o(t(w),{href:f.route("verification.send"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:m(()=>e[3]||(e[3]=[n(" Click here to re-send the verification email. ")])),_:1},8,["href"])]),V(a("div",N," A new verification link has been sent to your email address. ",512),[[_,d.status==="verification-link-sent"]])])):c("",!0),a("div",E,[o(h,{disabled:t(s).processing},{default:m(()=>e[5]||(e[5]=[n("Save")])),_:1},8,["disabled"]),o(k,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:m(()=>[t(s).recentlySuccessful?(u(),l("p",P,"Saved.")):c("",!0)]),_:1})])],32)]))}};export{A as default}; +import{Q as g,T as x,c as l,d as a,a as o,u as t,e as n,w as m,l as V,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}; diff --git a/public/build/assets/User-C_zeNGnt.js b/public/build/assets/User-C_zeNGnt.js deleted file mode 100644 index 030899c8..00000000 --- a/public/build/assets/User-C_zeNGnt.js +++ /dev/null @@ -1 +0,0 @@ -import{r as b,Q as T,o as O,c as l,a as o,u as v,w as r,F as p,b as a,Z as Q,d as t,t as u,i as y,e as f,f as _,g as h,l as S,m as U,k as z,n as $,h as E}from"./app-DolNWhzr.js";import{_ as W,S as x}from"./AuthenticatedLayout-DuLcXyKk.js";import{_ as Y}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as Z}from"./PaginatorComponent-DpqX95xS.js";import{_ as G}from"./AdminUserDetailsComponent-BIuw6cp6.js";import{P as A}from"./PrimaryButton-BtqGl7rR.js";import{_ as H}from"./TextInput-C41DJZHw.js";import{_ as J}from"./SecondaryButton-DL_I_H3U.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const K={class:"card"},R={class:"flex justify-between items-center"},X={key:0},ee={class:"card"},te={class:"card"},se={key:0},ie={key:0},ae={key:0,class:"text-xs text-red-500"},le={class:""},ne={class:"flex justify-end items-center mt-4"},oe={class:"w-full lg:w-1/3"},de={class:"card"},re={for:"admin",class:"cursor-pointer flex justify-start items-center"},ue={class:"card"},me={key:0},ce={class:"border-b py-2"},ve={class:"list-item ml-8"},pe={key:0},fe={class:"ml-8 text-xs"},_e={key:1},he={class:"card"},ke={key:0},be={class:"flex justify-start items-center space-x-4 pb-4"},ge={class:"grid grid-cols-1 md:grid-cols-2 md:gap-2"},ye={class:"border rounded-xl p-4"},xe={class:"text-xs"},Ae={class:"mt-8"},Pe=["for"],we=["id","value"],Ce={class:"pb-4"},Te={class:"flex items-center justify-end mt-4"},Me={__name:"User",props:{id:{required:!0,type:Number}},setup(B){const k=B,V=b(5),n=b({name:"",token_abilities:[]}),P=T().props.personalAccessTokenAbilities,j=T().props.platformAppTokenAbilities,m=b({}),d=b({});O(()=>{g(),w()});function N(){n.value.user_id=d.value.id,axios.post("/admin/user-personal-access-tokens",n.value).then(i=>{let e=i.data.data.token,s=i.data.data.secret;x.fire({title:"Personal access token issued!",html:'
Please note that the token will be displayed only once. Make sure to save it securely.
Token: '+e+'
Secret: '+s+'
You will need the secret in order to sign your API requests.
',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(c=>{n.value={name:"",token_abilities:[]},g()})}).catch(i=>{x.fire({icon:"error",title:"Oops..",text:i.response.data.meta.message})})}function g(){axios.get("/admin/users/"+k.id+"?cached=false&relations=currentTeam").then(i=>{d.value=i.data.data}).catch(i=>{console.log(i)})}function w(i=1){axios.get("/admin/team-users?cached=false&page="+i+"&where[]=user_id,"+k.id+"&relations=team&limit="+V.value+"&orderBy=id,desc").then(e=>{m.value=e.data.data}).catch(e=>{})}function I(i){w(i)}function C(i){return i.replaceAll("-"," ")}function q(){n.value.token_abilities=Object.keys(j),x.fire({icon:"info",title:"Platform Apps",html:'
We have selected the minimum required abilities for an API token for a "Platform" type app.
Be careful with these abilities, as they can perform additive and destructive actions, like creating teams, users and more API tokens.
'})}function D(){n.value.token_abilities=[]}function M(){let i={is_admin:d.value.is_admin};axios.put("/admin/users/"+k.id,i).then(e=>{g()}).catch(e=>{console.log(e)})}return(i,e)=>(a(),l(p,null,[o(v(Q),{title:"Users"}),o(W,null,{header:r(()=>[o(Y)]),default:r(()=>[t("div",K,[t("div",R,[t("h2",null,u(d.value.name),1),t("div",null,[i.$page.props.isImpersonating===null?(a(),l("div",X,[o(A,null,{default:r(()=>[o(v(y),{href:i.route("admin.impersonate",k.id)},{default:r(()=>e[6]||(e[6]=[f("Impersonate")])),_:1},8,["href"])]),_:1})])):_("",!0)])])]),t("div",ee,[e[7]||(e[7]=t("div",{class:"card-header"}," User details ",-1)),o(G,{user:d.value},null,8,["user"])]),t("div",te,[e[8]||(e[8]=t("div",{class:"card-header"}," User teams ",-1)),m.value.data&&m.value.data.length>0?(a(),l("div",se,[(a(!0),l(p,null,h(m.value.data,s=>(a(),E(v(y),{href:i.route("admin.team",s.team_id),class:"hover:no-underline hover:opacity-75"},{default:r(()=>[t("div",{class:$({"border-b p-2":m.value.data.length>1})},[s.team?(a(),l("div",ie,[s.team_id===d.value.current_team_id?(a(),l("div",ae,"*Current team ")):_("",!0),t("div",le,u(s.team.name),1)])):_("",!0)],2)]),_:2},1032,["href"]))),256))])):_("",!0),t("div",ne,[t("div",oe,[o(Z,{onSetDataPage:I,"pagination-data":m.value},null,8,["pagination-data"])])])]),t("div",de,[e[10]||(e[10]=t("div",{class:"card-header"}," Admin status ",-1)),t("label",re,[S(t("input",{onChange:e[0]||(e[0]=s=>M()),type:"checkbox",id:"admin",class:"mr-4","true-value":1,"false-value":0,"onUpdate:modelValue":e[1]||(e[1]=s=>d.value.is_admin=s)},null,544),[[U,d.value.is_admin]]),e[9]||(e[9]=f(" User is System Admin "))])]),t("div",ue,[e[11]||(e[11]=t("div",{class:"card-header"}," User Personal Access Tokens (PATs) ",-1)),d.value.tokens&&d.value.tokens.length?(a(),l("div",me,[(a(!0),l(p,null,h(d.value.tokens,s=>(a(),l("div",ce,[o(v(y),{href:i.route("admin.api-access-token",{id:s.id})},{default:r(()=>[t("div",ve,u(s.name),1),s.abilities&&s.abilities.length?(a(),l("div",pe,[(a(!0),l(p,null,h(s.abilities,c=>(a(),l("div",fe," - "+u(C(c)),1))),256))])):_("",!0)]),_:2},1032,["href"])]))),256))])):(a(),l("div",_e,"User does not have PATs."))]),t("div",he,[e[18]||(e[18]=t("div",{class:"card-header"}," Create Personal Access Token ",-1)),v(P).length?(a(),l("div",ke,[e[16]||(e[16]=t("div",{class:"mt-8 mb-4"},[t("h2",null,"Step 1: Select Token Abilities")],-1)),t("div",be,[o(J,{onClick:D},{default:r(()=>e[12]||(e[12]=[f(" Clear Selected ")])),_:1}),e[14]||(e[14]=t("div",{class:"pl-16"}," Quick select: ",-1)),o(A,{onClick:e[2]||(e[2]=s=>q())},{default:r(()=>e[13]||(e[13]=[f(" Platform App ")])),_:1})]),t("div",ge,[(a(!0),l(p,null,h(v(P),s=>(a(),l("div",ye,[t("div",null,[t("h2",null,u(s.name),1),t("div",xe,u(s.description),1),t("div",Ae,[(a(!0),l(p,null,h(s.abilities,(c,F)=>(a(),l("div",null,[t("label",{for:c,class:"cursor-pointer"},[S(t("input",{type:"checkbox",id:c,class:"mr-4",value:F,"onUpdate:modelValue":e[3]||(e[3]=L=>n.value.token_abilities=L)},null,8,we),[[U,n.value.token_abilities]]),f(" "+u(C(c)),1)],8,Pe)]))),256))])])]))),256))]),e[17]||(e[17]=t("div",{class:"mt-8"},[t("h2",null,"Step 2: Give the Token a name")],-1)),t("div",Ce,[o(H,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:n.value.name,"onUpdate:modelValue":e[4]||(e[4]=s=>n.value.name=s),required:""},null,8,["modelValue"])]),t("div",null," Selected Abilities: "+u(n.value.token_abilities.join(", ")),1),t("div",Te,[o(A,{onClick:e[5]||(e[5]=z(s=>N(),["prevent"])),class:$(["",{"opacity-25":!n.value.name}]),desabled:!n.value.name},{default:r(()=>e[15]||(e[15]=[f(" Create New Token ")])),_:1},8,["class","desabled"])])])):_("",!0)])]),_:1})],64))}};export{Me as default}; diff --git a/public/build/assets/User-f6FRCPRL.js b/public/build/assets/User-f6FRCPRL.js new file mode 100644 index 00000000..9048d021 --- /dev/null +++ b/public/build/assets/User-f6FRCPRL.js @@ -0,0 +1 @@ +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-BeOew9TI.js b/public/build/assets/Users-BsyPXlmB.js similarity index 76% rename from public/build/assets/Users-BeOew9TI.js rename to public/build/assets/Users-BsyPXlmB.js index a76697cd..25f66a46 100644 --- a/public/build/assets/Users-BeOew9TI.js +++ b/public/build/assets/Users-BsyPXlmB.js @@ -1 +1 @@ -import{_ as f}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as B}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as b}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const C={class:"card"},N={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},V={class:"font-bold"},j={class:"text-xs opacity-25"},D={key:0,class:""},U={class:"text-sm"},F={class:"flex justify-end items-center mt-4"},S={class:"w-full lg:w-1/3"},G={__name:"Users",setup(T){const s=h({});v(()=>{c()});function c(o=1){axios.get("/admin/users?cached=false&page="+o+"&relations=currentTeam&orderBy=id,desc").then(t=>{s.value=t.data.data}).catch(t=>{console.log(t)})}function p(o){c(o)}return(o,t)=>(n(),r(u,null,[i(m(g),{title:"Users"}),i(f,null,{header:d(()=>[i(B)]),default:d(()=>[e("div",C,[s.value.data&&s.value.data.length?(n(),r("div",N,[(n(!0),r(u,null,x(s.value.data,a=>(n(),w(m(k),{href:o.route("admin.user",a.id),class:"hover:no-underline hover:opacity-75"},{default:d(()=>[e("div",P,[e("div",null,[e("div",V,[e("span",j," #"+l(a.id),1),y(" "+l(a.name),1)]),a.current_team?(n(),r("div",D,l(a.current_team.name),1)):_("",!0),e("div",U,l(a.email),1)]),t[0]||(t[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):_("",!0),e("div",F,[e("div",S,[i(b,{onSetDataPage:p,"pagination-data":s.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{G as default}; +import{_ as f}from"./AuthenticatedLayout-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-XmSRG_in.js b/public/build/assets/VerifyEmail-CcQXJlpL.js similarity index 83% rename from public/build/assets/VerifyEmail-XmSRG_in.js rename to public/build/assets/VerifyEmail-CcQXJlpL.js index 1952682b..e73721a2 100644 --- a/public/build/assets/VerifyEmail-XmSRG_in.js +++ b/public/build/assets/VerifyEmail-CcQXJlpL.js @@ -1 +1 @@ -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-DolNWhzr.js";import{_}from"./GuestLayout-BPBJX1aK.js";import{P as w}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const V={key:0,class:"mb-4 font-medium text-sm text-green-600"},B={class:"mt-4 flex items-center justify-between"},j={__name:"VerifyEmail",props:{status:{type:String}},setup(d){const l=d,s=c({}),u=()=>{s.post(route("verification.send"))},m=p(()=>l.status==="verification-link-sent");return(f,e)=>(r(),g(_,null,{default:i(()=>[o(t(y),{title:"Email Verification"}),e[2]||(e[2]=n("div",{class:"mb-4 text-sm text-gray-600"}," Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another. ",-1)),m.value?(r(),v("div",V," A new verification link has been sent to the email address you provided during registration. ")):b("",!0),n("form",{onSubmit:h(u,["prevent"])},[n("div",B,[o(w,{class:k({"opacity-25":t(s).processing}),disabled:t(s).processing},{default:i(()=>e[0]||(e[0]=[a(" Resend Verification Email ")])),_:1},8,["class","disabled"]),o(t(x),{href:f.route("logout"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:i(()=>e[1]||(e[1]=[a("Log Out")])),_:1},8,["href"])])],32)]),_:1}))}};export{j as default}; +import{T as c,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/Voucher-DH40YzDI.js b/public/build/assets/Voucher-BTS59G3H.js similarity index 92% rename from public/build/assets/Voucher-DH40YzDI.js rename to public/build/assets/Voucher-BTS59G3H.js index 89d1d0ad..18257362 100644 --- a/public/build/assets/Voucher-DH40YzDI.js +++ b/public/build/assets/Voucher-BTS59G3H.js @@ -1 +1 @@ -import{_ as B}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as S}from"./AdminTopNavigation-Bl9ElpaD.js";import{d as u}from"./dayjs.min-ilzO22t1.js";import{r as $}from"./relativeTime-BTl_QCHW.js";import{u as M}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.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}; +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-brxKvDUT.js b/public/build/assets/Voucher-DbrBg65i.js similarity index 94% rename from public/build/assets/Voucher-brxKvDUT.js rename to public/build/assets/Voucher-DbrBg65i.js index 3397ca60..155bf0e1 100644 --- a/public/build/assets/Voucher-brxKvDUT.js +++ b/public/build/assets/Voucher-DbrBg65i.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-DolNWhzr.js";import{_ as Y,S as x}from"./AuthenticatedLayout-DuLcXyKk.js";import{d as l}from"./dayjs.min-ilzO22t1.js";import{r as q}from"./relativeTime-BTl_QCHW.js";import{l as L}from"./localizedFormat-r4JmUt9E.js";import{u as M}from"./utc-CWodzHWT.js";import{P as g}from"./PrimaryButton-BtqGl7rR.js";import{_ as O}from"./SecondaryButton-DL_I_H3U.js";import"./ApplicationLogo-B917rUN3.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 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}; diff --git a/public/build/assets/VoucherRedeem-u7uJu8Rx.js b/public/build/assets/VoucherRedeem-Mb5Z1MbJ.js similarity index 93% rename from public/build/assets/VoucherRedeem-u7uJu8Rx.js rename to public/build/assets/VoucherRedeem-Mb5Z1MbJ.js index 67939741..0dae0ef8 100644 --- a/public/build/assets/VoucherRedeem-u7uJu8Rx.js +++ b/public/build/assets/VoucherRedeem-Mb5Z1MbJ.js @@ -1 +1 @@ -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-DolNWhzr.js";import{_ as I,S as m}from"./AuthenticatedLayout-DuLcXyKk.js";import{d as h}from"./dayjs.min-ilzO22t1.js";import{r as N}from"./relativeTime-BTl_QCHW.js";import{u as j}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.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}; +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-D8qaxnfs.js b/public/build/assets/VoucherRedemption-BAAy6YUl.js similarity index 85% rename from public/build/assets/VoucherRedemption-D8qaxnfs.js rename to public/build/assets/VoucherRedemption-BAAy6YUl.js index a7971c6f..a76c467a 100644 --- a/public/build/assets/VoucherRedemption-D8qaxnfs.js +++ b/public/build/assets/VoucherRedemption-BAAy6YUl.js @@ -1 +1 @@ -import{_ as p}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as V}from"./AdminTopNavigation-Bl9ElpaD.js";import{d as _}from"./dayjs.min-ilzO22t1.js";import{r as k}from"./relativeTime-BTl_QCHW.js";import{u as R}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";const B={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},N={class:"card"},$={class:"opacity-25"},T={key:0,class:"font-bold text-red-500 text-sm"},w={class:"card"},D={key:0},C={key:1},F={class:"card"},j={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},q={class:"font-bold text-3xl"},E={key:0},I={class:"font-bold text-3xl"},M={class:"font-bold text-3xl"},S={class:"text-xs"},U={class:"card"},Z={key:0},z={key:1},W={__name:"VoucherRedemption",props:{id:{required:!0}},setup(h){_.extend(k),_.extend(R);const c=h,t=y({});x(()=>{f()});function f(){axios.get("/admin/voucher-redemptions/"+c.id+"?cached=false&relations=redeemedByUser,redeemedByTeam,voucher").then(r=>{t.value=r.data.data}).catch(r=>{console.log(r)})}return(r,e)=>(l(),a(b,null,[i(u(g),{title:"Voucher redemption"}),i(p,null,{header:n(()=>[i(V)]),default:n(()=>[d("div",B,[d("div",N,[e[0]||(e[0]=d("div",{class:"card-header"}," Voucher Redemption Details ",-1)),d("h2",$," ID: "+o(c.id),1),t.value.is_test?(l(),a("div",T," Test voucher redemption ")):m("",!0)]),d("div",w,[e[3]||(e[3]=d("div",{class:"card-header"}," Voucher and voucher set ",-1)),t.value.voucher_id?(l(),a("div",D,[e[1]||(e[1]=s(" Voucher ")),i(u(v),{href:r.route("admin.voucher",t.value.voucher_id)},{default:n(()=>[s("#"+o(t.value.voucher_id),1)]),_:1},8,["href"])])):m("",!0),t.value.voucher_set_id?(l(),a("div",C,[e[2]||(e[2]=s(" Voucher set ")),i(u(v),{href:r.route("admin.voucher-set",t.value.voucher_set_id)},{default:n(()=>[s("#"+o(t.value.voucher_set_id),1)]),_:1},8,["href"])])):m("",!0)])]),d("div",F,[e[7]||(e[7]=d("div",{class:"card-header"}," Voucher redemption details ",-1)),d("div",j,[d("div",null,[d("div",q," $"+o(t.value.redeemed_amount/100),1),e[4]||(e[4]=s(" Redeemed value "))]),t.value.voucher?(l(),a("div",E,[d("div",I," $"+o(t.value.voucher.voucher_value_remaining/100),1),e[5]||(e[5]=s(" Voucher remaining value "))])):m("",!0),d("div",null,[e[6]||(e[6]=d("div",null," Redeemed at ",-1)),d("div",M,o(u(_).utc(t.value.created_at).fromNow()),1),d("div",S," ("+o(u(_)(t.value.created_at))+") ",1)])])]),d("div",U,[e[8]||(e[8]=d("div",{class:"card-header"}," Redeemed by ",-1)),t.value.redeemed_by_user?(l(),a("div",Z,[i(u(v),{href:r.route("admin.user",t.value.redeemed_by_user_id)},{default:n(()=>[s(o(t.value.redeemed_by_user.name),1)]),_:1},8,["href"])])):m("",!0),t.value.redeemed_by_team?(l(),a("div",z,[i(u(v),{href:r.route("admin.team",t.value.redeemed_by_team_id)},{default:n(()=>[s(o(t.value.redeemed_by_team.name),1)]),_:1},8,["href"])])):m("",!0)]),e[9]||(e[9]=d("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{W as default}; +import{_ as p}from"./AuthenticatedLayout-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/VoucherRedemptions-I5DskLP3.js b/public/build/assets/VoucherRedemptions-CbBC5rbT.js similarity index 78% rename from public/build/assets/VoucherRedemptions-I5DskLP3.js rename to public/build/assets/VoucherRedemptions-CbBC5rbT.js index 91d629fd..28c0b533 100644 --- a/public/build/assets/VoucherRedemptions-I5DskLP3.js +++ b/public/build/assets/VoucherRedemptions-CbBC5rbT.js @@ -1 +1 @@ -import{_ as y}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as V}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as B}from"./PaginatorComponent-DpqX95xS.js";import{d as l}from"./dayjs.min-ilzO22t1.js";import{r as C}from"./relativeTime-BTl_QCHW.js";import{u as $}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.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-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}; diff --git a/public/build/assets/VoucherSet-DZ--1ZAq.js b/public/build/assets/VoucherSet-CI0MSV9g.js similarity index 94% rename from public/build/assets/VoucherSet-DZ--1ZAq.js rename to public/build/assets/VoucherSet-CI0MSV9g.js index 8cab8864..06d3f1f6 100644 --- a/public/build/assets/VoucherSet-DZ--1ZAq.js +++ b/public/build/assets/VoucherSet-CI0MSV9g.js @@ -1 +1 @@ -import{S as L,_ as W}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as O}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as B}from"./PrimaryButton-BtqGl7rR.js";import{_ as P}from"./SecondaryButton-DL_I_H3U.js";import{d as p}from"./dayjs.min-ilzO22t1.js";import{r as Z}from"./relativeTime-BTl_QCHW.js";import{u as G}from"./utc-CWodzHWT.js";import{_ as J}from"./VouchersComponent-o-O6pMZi.js";import{D as E}from"./DangerButton-Bm5iDOLt.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-DpqX95xS.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}; +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-DeRvCbT6.js b/public/build/assets/VoucherSet-D4FQyn1p.js similarity index 91% rename from public/build/assets/VoucherSet-DeRvCbT6.js rename to public/build/assets/VoucherSet-D4FQyn1p.js index 50825091..d6c53721 100644 --- a/public/build/assets/VoucherSet-DeRvCbT6.js +++ b/public/build/assets/VoucherSet-D4FQyn1p.js @@ -1 +1 @@ -import{_ as $}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{d as i}from"./dayjs.min-ilzO22t1.js";import{r as T}from"./relativeTime-BTl_QCHW.js";import{u as S}from"./utc-CWodzHWT.js";import{P as B}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const N={key:0},M={class:"border-b flex justify-between items-center py-2 sm:p-2"},I={class:"text-xs"},j={key:0,class:"font-bold text-sm"},P={key:1,class:"font-bold text-sm"},q={key:2,class:"text-red-500"},A={key:3},D={key:4},E={class:"flex justify-end items-center mt-4"},F={class:"w-full lg:w-1/3"},L={__name:"MyTeamVouchersComponent",props:{voucherSetId:{required:!1,default:null}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({}),p=x(5);b(()=>{c()});function c(t=1){axios.get("/my-team-vouchers?cached=false&where[]=voucher_set_id,"+v.voucherSetId+"&page="+t+"&limit="+p.value+"&relations=createdByTeam,allocatedToServiceTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}return(t,u)=>s.value.data&&s.value.data.length?(o(),d("div",N,[(o(!0),d(f,null,k(s.value.data,l=>(o(),w(n(V),{href:t.route("voucher",l.id),class:"hover:no-underline hover:opacity-75"},{default:y(()=>[e("div",M,[e("div",I,[l.voucher_short_code?(o(),d("div",j," #"+a(l.voucher_short_code),1)):(o(),d("div",P," #"+a(l.id),1)),l.is_test?(o(),d("div",q," Test voucher ")):r("",!0),l.created_by_team&&l.created_by_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",A," Created by: "+a(l.created_by_team.name),1)):r("",!0),l.allocated_to_service_team&&l.allocated_to_service_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",D," Allocated to: "+a(l.allocated_to_service_team.name),1)):r("",!0)]),u[0]||(u[0]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),e("div",E,[e("div",F,[m(B,{onSetDataPage:c,"pagination-data":s.value},null,8,["pagination-data"])])])])):r("",!0)}},R={class:"card"},z={key:0,class:"font-bold text-red-500 text-sm"},Q={class:"card"},Z={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},G={class:"font-bold text-3xl"},H={class:"font-bold text-3xl"},J={class:"font-bold text-3xl"},K={class:"font-bold text-3xl"},O={class:"font-bold text-3xl"},U={key:0},W={class:"font-bold text-3xl"},X={class:"text-xs"},Y={key:1},ee={class:"font-bold text-3xl"},te={class:"text-xs"},se={class:"card"},ae={key:0},oe={key:1,class:"text-xs mt-2"},de={class:"card"},le={key:0},re={class:"card"},ie={key:0},ne={class:"list-disc ml-4"},ue={class:"card"},be={__name:"VoucherSet",props:{voucherSetId:{type:String,required:!1}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({});b(()=>{p()});function p(){axios.get("/my-team-voucher-sets/"+v.voucherSetId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}return(c,t)=>(o(),d(f,null,[m(n(C),{title:"Voucher Set"}),m($,null,{header:y(()=>t[0]||(t[0]=[e("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Voucher Set",-1)])),default:y(()=>[e("div",R,[e("h2",null,a(s.value.id),1),s.value.is_test?(o(),d("div",z," Test voucher set ")):r("",!0)]),e("div",Q,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher set details ",-1)),e("div",Z,[e("div",null,[e("div",G," $"+a(s.value.total_set_value/100),1),t[1]||(t[1]=_(" Total set value "))]),e("div",null,[e("div",H," $"+a(s.value.total_set_value_remaining/100),1),t[2]||(t[2]=_(" Total remaining value "))]),e("div",null,[e("div",J,a(Math.round((s.value.total_set_value-s.value.total_set_value_remaining)/s.value.total_set_value*1e4)/100)+"% ",1),t[3]||(t[3]=_(" Redeemed percentage "))]),e("div",null,[e("div",K,a(s.value.num_vouchers),1),t[4]||(t[4]=_(" # Vouchers "))]),e("div",null,[e("div",O,a(s.value.num_voucher_redemptions),1),t[5]||(t[5]=_(" # Redemptions "))]),s.value.last_redemption_at?(o(),d("div",U,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",W,a(n(i).utc(s.value.last_redemption_at).fromNow()),1),e("div",X," ("+a(n(i)(s.value.last_redemption_at))+") ",1)])):r("",!0),s.value.expires_at?(o(),d("div",Y,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",ee,a(n(i).utc(s.value.expires_at).fromNow()),1),e("div",te," ("+a(n(i)(s.value.expires_at))+") ",1)])):r("",!0)])]),e("div",se,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(o(),d("div",ae,a(s.value.created_by_team.name),1)):r("",!0),s.value.created_at?(o(),d("div",oe," Created at: "+a(n(i).utc(s.value.created_at).fromNow())+" ("+a(n(i)(s.value.created_at))+") ",1)):r("",!0)]),e("div",de,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated To Service Team ",-1)),s.value.allocated_to_service_team?(o(),d("div",le,a(s.value.allocated_to_service_team.name),1)):r("",!0)]),e("div",re,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants ",-1)),s.value.voucher_set_merchant_teams?(o(),d("div",ie,[(o(!0),d(f,null,k(s.value.voucher_set_merchant_teams,u=>(o(),d("ul",ne,[e("li",null,a(u.merchant_team.name),1)]))),256))])):r("",!0)]),e("div",ue,[t[12]||(t[12]=e("div",{class:"card-header"}," Vouchers ",-1)),m(L,{"voucher-set-id":v.voucherSetId},null,8,["voucher-set-id"])]),t[13]||(t[13]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{be as default}; +import{_ as $}from"./AuthenticatedLayout-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/VoucherSetMerchantTeamApproval-CmPfS_Dx.js b/public/build/assets/VoucherSetMerchantTeamApproval-CrNhLJwz.js similarity index 91% rename from public/build/assets/VoucherSetMerchantTeamApproval-CmPfS_Dx.js rename to public/build/assets/VoucherSetMerchantTeamApproval-CrNhLJwz.js index 57d36453..c2618241 100644 --- a/public/build/assets/VoucherSetMerchantTeamApproval-CmPfS_Dx.js +++ b/public/build/assets/VoucherSetMerchantTeamApproval-CrNhLJwz.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-DolNWhzr.js";import{_ as j,S as w}from"./AuthenticatedLayout-DuLcXyKk.js";import{P as q}from"./PrimaryButton-BtqGl7rR.js";import{_ as k}from"./SecondaryButton-DL_I_H3U.js";import{d as p}from"./dayjs.min-ilzO22t1.js";import{r as I}from"./relativeTime-BTl_QCHW.js";import{u as M}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.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,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}; diff --git a/public/build/assets/VoucherSetNew-FiyNeAgB.js b/public/build/assets/VoucherSetNew-DWnwgyYm.js similarity index 98% rename from public/build/assets/VoucherSetNew-FiyNeAgB.js rename to public/build/assets/VoucherSetNew-DWnwgyYm.js index effc4643..e7aa80e8 100644 --- a/public/build/assets/VoucherSetNew-FiyNeAgB.js +++ b/public/build/assets/VoucherSetNew-DWnwgyYm.js @@ -1 +1 @@ -import{S as b,_ as xe}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as be}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as J}from"./SecondaryButton-DL_I_H3U.js";import{P as N}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.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-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}; diff --git a/public/build/assets/VoucherSets-w_SenqBe.js b/public/build/assets/VoucherSets-Drurrlm8.js similarity index 51% rename from public/build/assets/VoucherSets-w_SenqBe.js rename to public/build/assets/VoucherSets-Drurrlm8.js index acb5d2e4..b281c1b5 100644 --- a/public/build/assets/VoucherSets-w_SenqBe.js +++ b/public/build/assets/VoucherSets-Drurrlm8.js @@ -1 +1 @@ -import{_ as a}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as c}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as d}from"./VoucherSetsComponent-PmCvbfnV.js";import{P as f}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-DpqX95xS.js";import"./SecondaryButton-DL_I_H3U.js";import"./dayjs.min-ilzO22t1.js";import"./relativeTime-BTl_QCHW.js";import"./utc-CWodzHWT.js";const p={class:"card"},h={class:"card-header flex justify-between items-center"},v=["href"],g={__name:"VoucherSets",setup(V){return(o,r)=>(u(),i(n,null,[e(m(l),{title:"Voucher sets"}),e(a,null,{header:s(()=>[e(c)]),default:s(()=>[t("div",p,[t("div",h,[r[1]||(r[1]=t("div",null," Voucher Sets ",-1)),t("div",null,[t("a",{href:o.route("admin.voucher-sets.new")},[e(f,null,{default:s(()=>r[0]||(r[0]=[_(" Create voucher set ")])),_:1})],8,v)])]),e(d)])]),_:1})],64))}};export{g as default}; +import{_ as a}from"./AuthenticatedLayout-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-PmCvbfnV.js b/public/build/assets/VoucherSetsComponent-DLemr3_-.js similarity index 91% rename from public/build/assets/VoucherSetsComponent-PmCvbfnV.js rename to public/build/assets/VoucherSetsComponent-DLemr3_-.js index a9e79a88..3d83453e 100644 --- a/public/build/assets/VoucherSetsComponent-PmCvbfnV.js +++ b/public/build/assets/VoucherSetsComponent-DLemr3_-.js @@ -1 +1 @@ -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-DolNWhzr.js";import{P as T}from"./PaginatorComponent-DpqX95xS.js";import{d as x}from"./dayjs.min-ilzO22t1.js";import{r as C}from"./relativeTime-BTl_QCHW.js";import{u as N}from"./utc-CWodzHWT.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 _}; +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 new file mode 100644 index 00000000..67f52975 --- /dev/null +++ b/public/build/assets/VoucherTemplateEdit-DmwU3T9Q.js @@ -0,0 +1 @@ +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-tUbvCUOh.js b/public/build/assets/VoucherTemplateEdit-tUbvCUOh.js deleted file mode 100644 index 207c5327..00000000 --- a/public/build/assets/VoucherTemplateEdit-tUbvCUOh.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as n}from"./AdminTopNavigation-Bl9ElpaD.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./TextInput-C41DJZHw.js";import"./InputLabel-P7ZTY_pn.js";import"./SecondaryButton-DL_I_H3U.js";import"./DangerButton-Bm5iDOLt.js";import"./Checkbox-YEQY-CTw.js";const N={__name:"VoucherTemplateEdit",props:{id:{type:Number,required:!0}},setup(e){const o=e;return(u,l)=>(s(),a(p,null,[t(i(c),{title:"Edit Voucher Template"}),t(m,null,{header:r(()=>[t(n)]),default:r(()=>[t(_,{id:o.id},null,8,["id"])]),_:1})],64))}};export{N as default}; diff --git a/public/build/assets/VoucherTemplateNew-CO4wq0pO.js b/public/build/assets/VoucherTemplateNew-CO4wq0pO.js deleted file mode 100644 index a614cd9a..00000000 --- a/public/build/assets/VoucherTemplateNew-CO4wq0pO.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as s}from"./AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./TextInput-C41DJZHw.js";import"./InputLabel-P7ZTY_pn.js";import"./SecondaryButton-DL_I_H3U.js";import"./DangerButton-Bm5iDOLt.js";import"./Checkbox-YEQY-CTw.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-CYEl8NyP.js b/public/build/assets/VoucherTemplateNew-CYEl8NyP.js new file mode 100644 index 00000000..1eec2b81 --- /dev/null +++ b/public/build/assets/VoucherTemplateNew-CYEl8NyP.js @@ -0,0 +1 @@ +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/Vouchers-B7SD45jv.js b/public/build/assets/Vouchers-B7SD45jv.js new file mode 100644 index 00000000..84d8b3d0 --- /dev/null +++ b/public/build/assets/Vouchers-B7SD45jv.js @@ -0,0 +1 @@ +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-CDzwjVXy.js b/public/build/assets/Vouchers-CDzwjVXy.js deleted file mode 100644 index 382af7e8..00000000 --- a/public/build/assets/Vouchers-CDzwjVXy.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-DuLcXyKk.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-DolNWhzr.js";import{_ as p}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as n}from"./VouchersComponent-o-O6pMZi.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./PaginatorComponent-DpqX95xS.js";import"./SecondaryButton-DL_I_H3U.js";import"./dayjs.min-ilzO22t1.js";import"./relativeTime-BTl_QCHW.js";import"./utc-CWodzHWT.js";const d={class:"card"},g={__name:"Vouchers",setup(l){return(u,t)=>(c(),s(i,null,[r(m(_),{title:"Vouchers"}),r(o,null,{header:a(()=>[r(p)]),default:a(()=>[e("div",d,[t[0]||(t[0]=e("div",{class:"card-header"}," Vouchers ",-1)),r(n)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/VouchersComponent-o-O6pMZi.js b/public/build/assets/VouchersComponent-CuVgvWTH.js similarity index 91% rename from public/build/assets/VouchersComponent-o-O6pMZi.js rename to public/build/assets/VouchersComponent-CuVgvWTH.js index de999688..bc7ec51d 100644 --- a/public/build/assets/VouchersComponent-o-O6pMZi.js +++ b/public/build/assets/VouchersComponent-CuVgvWTH.js @@ -1 +1 @@ -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-DolNWhzr.js";import{P as S}from"./PaginatorComponent-DpqX95xS.js";import{d as x}from"./dayjs.min-ilzO22t1.js";import{r as T}from"./relativeTime-BTl_QCHW.js";import{u as k}from"./utc-CWodzHWT.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 _}; +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-C1xyz4GU.css b/public/build/assets/app-C1xyz4GU.css new file mode 100644 index 00000000..b419a11b --- /dev/null +++ b/public/build/assets/app-C1xyz4GU.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Open+Sans:wght@200..700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Oswald,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.end-0{inset-inline-end:0px}.left-0{left:0}.right-0{right:0}.start-0{inset-inline-start:0px}.top-0{top:0}.top-48{top:12rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.mx-24{margin-left:6rem;margin-right:6rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-me-0\.5{margin-inline-end:-.125rem}.-me-2{margin-inline-end:-.5rem}.-ml-1{margin-left:-.25rem}.-ml-12{margin-left:-3rem}.-ml-px{margin-left:-1px}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-12{margin-left:3rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.ms-2{margin-inline-start:.5rem}.ms-3{margin-inline-start:.75rem}.ms-4{margin-inline-start:1rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-3{width:.75rem;height:.75rem}.size-6{width:1.5rem;height:1.5rem}.h-16{height:4rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[32\.5rem\]{height:32.5rem}.h-\[35\.5rem\]{height:35.5rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:8rem}.max-h-48{max-height:12rem}.max-h-screen{max-height:100vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-2\/3{width:66.666667%}.w-3\/4{width:75%}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[8rem\]{width:8rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-full{min-width:100%}.max-w-6xl{max-width:72rem}.max-w-full{max-width:100%}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-top{transform-origin:top}.origin-top-right{transform-origin:top right}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-center{justify-items:center}.gap-0{gap:0px}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-y-12{row-gap:3rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-indigo-400{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-l-red-500{--tw-border-opacity: 1;border-left-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-200\/80{background-color:#e5e7ebcc}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.bg-red-500\/20{background-color:#ef444433}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.fill-current{fill:currentColor}.fill-green-100{fill:#dcfce7}.fill-orange-100{fill:#ffedd5}.fill-red-100{fill:#fee2e2}.fill-red-500{fill:#ef4444}.\!p-1{padding:.25rem!important}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-32{padding:8rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-12{padding-bottom:3rem}.pb-3{padding-bottom:.75rem}.pb-32{padding-bottom:8rem}.pb-4{padding-bottom:1rem}.pe-4{padding-inline-end:1rem}.pl-16{padding-left:4rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.ps-3{padding-inline-start:.75rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:Oswald,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-tight{line-height:1.25}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-200{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-gray-900\/5{--tw-ring-color: rgb(17 24 39 / .05)}.ring-opacity-5{--tw-ring-opacity: .05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}body{font-family:Open Sans,sans-serif;font-weight:300;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}a:hover{text-decoration-line:underline}h2{font-size:1.25rem;line-height:1.75rem;font-weight:600;line-height:1.25;--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}input[type=checkbox],input[type=text],input[type=number],input[type=email],input[type=search],select{border-radius:.25rem;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}input[type=checkbox]:focus,input[type=text]:focus,input[type=number]:focus,input[type=email]:focus,input[type=search]:focus,select:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.card{width:100%}@media (min-width: 640px){.card{max-width:640px}}@media (min-width: 768px){.card{max-width:768px}}@media (min-width: 1024px){.card{max-width:1024px}}@media (min-width: 1280px){.card{max-width:1280px}}@media (min-width: 1536px){.card{max-width:1536px}}.card{margin-top:1rem;margin-bottom:1rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:1.5rem;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){.card{border-radius:.5rem}}@media (min-width: 1024px){.card{margin-left:auto;margin-right:auto;padding:2rem}}.card-header{margin-bottom:.5rem;border-bottom-width:1px;border-style:dotted;padding-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;text-transform:capitalize;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.secondaryButton{display:inline-flex;align-items:center;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.5rem 1rem;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.secondaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.secondaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.secondaryButton:disabled{opacity:.25}.placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.placeholder\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.default\:col-span-full:default{grid-column:1 / -1}.default\:row-span-1:default{grid-row:span 1 / span 1}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:rounded-b-md:hover{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.hover\:rounded-t-md:hover{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.hover\:border-2:hover{border-width:2px}.hover\:border-dashed:hover{border-style:dashed}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100\/75:hover{background-color:#f3f4f6bf}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\:text-gray-400:hover{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:opacity-50:hover{opacity:.5}.hover\:opacity-75:hover{opacity:.75}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.focus\:border-gray-300:focus{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-indigo-700:focus{--tw-border-opacity: 1;border-color:rgb(67 56 202 / var(--tw-border-opacity, 1))}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.focus\:bg-gray-50:focus{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.focus\:bg-gray-700:focus{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.focus\:bg-indigo-100:focus{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.focus\:text-gray-500:focus{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.focus\:text-gray-700:focus{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.focus\:text-gray-800:focus{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.focus\:text-indigo-800:focus{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:bg-gray-100:active{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.active\:bg-gray-900:active{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.active\:bg-red-700:active{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.active\:text-gray-500:active{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.active\:text-gray-700:active{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-25:disabled{opacity:.25}@media (min-width: 640px){.sm\:col-span-1{grid-column:span 1 / span 1}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:-my-px{margin-top:-1px;margin-bottom:-1px}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:ms-10{margin-inline-start:2.5rem}.sm\:ms-6{margin-inline-start:1.5rem}.sm\:mt-10{margin-top:2.5rem}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-full{width:100%}.sm\:max-w-2xl{max-width:42rem}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:max-w-xl{max-width:36rem}.sm\:flex-1{flex:1 1 0%}.sm\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-center{justify-content:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-6{gap:1.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-12{padding:3rem}.sm\:p-2{padding:.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pt-0{padding-top:0}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}}@media (min-width: 768px){.md\:mt-4{margin-top:1rem}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-2\/3{width:66.666667%}.md\:min-w-64{min-width:16rem}.md\:max-w-80{max-width:20rem}.md\:flex-grow{flex-grow:1}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:pt-0{padding-top:0}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:inline-block{display:inline-block}.lg\:inline{display:inline}.lg\:flex{display:flex}.lg\:w-1\/3{width:33.333333%}.lg\:w-\[12rem\]{width:12rem}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:justify-start{justify-content:flex-start}.lg\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-base{font-size:1rem;line-height:1.5rem}.lg\:text-sm{font-size:.875rem;line-height:1.25rem}.default\:lg\:col-span-6:default{grid-column:span 6 / span 6}}@media (min-width: 1280px){.xl\:w-1\/3{width:33.333333%}.xl\:w-2\/3{width:66.666667%}}.ltr\:origin-top-left:where([dir=ltr],[dir=ltr] *){transform-origin:top left}.ltr\:origin-top-right:where([dir=ltr],[dir=ltr] *){transform-origin:top right}.rtl\:origin-top-left:where([dir=rtl],[dir=rtl] *){transform-origin:top left}.rtl\:origin-top-right:where([dir=rtl],[dir=rtl] *){transform-origin:top right}.rtl\:flex-row-reverse:where([dir=rtl],[dir=rtl] *){flex-direction:row-reverse}@media (prefers-color-scheme: dark){.dark\:block{display:block}.dark\:hidden{display:none}.dark\:border{border-width:1px}.dark\:border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.dark\:border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity, 1))}.dark\:border-l-red-500{--tw-border-opacity: 1;border-left-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/80{background-color:#111827cc}.dark\:bg-gray-950\/95{background-color:#030712f2}.dark\:bg-red-500\/20{background-color:#ef444433}.dark\:text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.dark\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-gray-950{--tw-text-opacity: 1;color:rgb(3 7 18 / var(--tw-text-opacity, 1))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.dark\:ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800\/75:hover{background-color:#1f2937bf}.dark\:hover\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:focus\:border-blue-700:focus{--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.dark\:focus\:border-blue-800:focus{--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.dark\:focus\:text-gray-500:focus{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:active\:bg-gray-700:active{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:active\:text-gray-300:active{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}} diff --git a/public/build/assets/app-CblTTgyL.js b/public/build/assets/app-CblTTgyL.js new file mode 100644 index 00000000..31718124 --- /dev/null +++ b/public/build/assets/app-CblTTgyL.js @@ -0,0 +1,103 @@ +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("