diff --git a/app/Http/Controllers/Admin/AskDbController.php b/app/Http/Controllers/Admin/AskDbController.php index ec6a25b68..906bd4170 100644 --- a/app/Http/Controllers/Admin/AskDbController.php +++ b/app/Http/Controllers/Admin/AskDbController.php @@ -8,6 +8,7 @@ use EchoLabs\Prism\ValueObjects\Messages\UserMessage; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; +use Illuminate\Support\Facades\Log; use Inertia\Inertia; use League\CommonMark\GithubFlavoredMarkdownConverter; @@ -77,6 +78,7 @@ public function query(Request $request, AskDbService $askDbService) ] ]); } catch (\Exception $e) { + Log::error($e); return response()->json([ 'message' => 'Failed processing your request! Try again after rephrasing your question.', 'verbose' => $appDebug ? $e->getMessage() : null, diff --git a/app/Services/AskDbService.php b/app/Services/AskDbService.php index cd8c2abf7..99659e663 100644 --- a/app/Services/AskDbService.php +++ b/app/Services/AskDbService.php @@ -38,7 +38,6 @@ public function __construct(protected AiService $aiService) public function chatWithAskDbForUser(string $prompt, $user) { $messagesHistory = Cache::get("askdb::user_chat_session::{$user->id}", []); - dd($messagesHistory); $systemPrompt = $this->generateSystemPrompt(); if (count($messagesHistory) > 0) { diff --git a/public/build/default/assets/ActionMessage-7b5ec6d7.js b/public/build/default/assets/ActionMessage-42553d9b.js similarity index 71% rename from public/build/default/assets/ActionMessage-7b5ec6d7.js rename to public/build/default/assets/ActionMessage-42553d9b.js index 9a25e5d5b..79c39e071 100644 --- a/public/build/default/assets/ActionMessage-7b5ec6d7.js +++ b/public/build/default/assets/ActionMessage-42553d9b.js @@ -1 +1 @@ -import{o as s,d as t,b as o,w as n,j as c,m as i,a as r,R as l,V as d}from"./app-37a137ca.js";const _={class:"text-sm text-gray-600"},v={__name:"ActionMessage",props:{on:Boolean},setup(e){return(a,m)=>(s(),t("div",null,[o(d,{"leave-active-class":"transition duration-1000 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:n(()=>[c(r("div",_,[l(a.$slots,"default")],512),[[i,e.on]])]),_:3})]))}};export{v as _}; +import{o as s,d as t,b as o,w as n,m as c,x as i,a as r,U as l,X as d}from"./app-e2d1b450.js";const _={class:"text-sm text-gray-600"},v={__name:"ActionMessage",props:{on:Boolean},setup(e){return(a,m)=>(s(),t("div",null,[o(d,{"leave-active-class":"transition duration-1000 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:n(()=>[c(r("div",_,[l(a.$slots,"default")],512),[[i,e.on]])]),_:3})]))}};export{v as _}; diff --git a/public/build/default/assets/ActionSection-b607014e.js b/public/build/default/assets/ActionSection-fcab9773.js similarity index 75% rename from public/build/default/assets/ActionSection-b607014e.js rename to public/build/default/assets/ActionSection-fcab9773.js index e6df1f93a..9e5b16e51 100644 --- a/public/build/default/assets/ActionSection-b607014e.js +++ b/public/build/default/assets/ActionSection-fcab9773.js @@ -1 +1 @@ -import{J as a}from"./SectionTitle-aabd6f35.js";import{o as d,d as i,b as c,w as o,R as t,a as e}from"./app-37a137ca.js";const r={class:"md:grid md:grid-cols-3 md:gap-6"},n={class:"mt-5 md:mt-0 md:col-span-2"},l={class:"px-4 py-5 sm:p-6 bg-white dark:bg-cool-gray-800 shadow sm:rounded-lg"},h={__name:"ActionSection",setup(m){return(s,p)=>(d(),i("div",r,[c(a,null,{title:o(()=>[t(s.$slots,"title")]),description:o(()=>[t(s.$slots,"description")]),_:3}),e("div",n,[e("div",l,[t(s.$slots,"content")])])]))}};export{h as _}; +import{J as a}from"./SectionTitle-2022f28f.js";import{o as d,d as i,b as c,w as o,U as t,a as e}from"./app-e2d1b450.js";const r={class:"md:grid md:grid-cols-3 md:gap-6"},n={class:"mt-5 md:mt-0 md:col-span-2"},l={class:"px-4 py-5 sm:p-6 bg-white dark:bg-cool-gray-800 shadow sm:rounded-lg"},h={__name:"ActionSection",setup(m){return(s,p)=>(d(),i("div",r,[c(a,null,{title:o(()=>[t(s.$slots,"title")]),description:o(()=>[t(s.$slots,"description")]),_:3}),e("div",n,[e("div",l,[t(s.$slots,"content")])])]))}};export{h as _}; diff --git a/public/build/default/assets/AdminLayout-3f7d09eb.js b/public/build/default/assets/AdminLayout-3f7d09eb.js new file mode 100644 index 000000000..ca8bb9bd9 --- /dev/null +++ b/public/build/default/assets/AdminLayout-3f7d09eb.js @@ -0,0 +1 @@ +import{A as W}from"./AppLayout-5fa2c638.js";import{o as n,d as o,a,C as $,r as g,B as O,i as y,j as I,D as L,A as G,E,s as J,c as p,w as k,P as A,n as v,e as f,t as _,u as b,p as X,b as S,F as q,g as N,V as Y,l as Q,U as Z}from"./app-e2d1b450.js";import{t as P,u as z,o as w,H as j,b as ee,N as H,a as x}from"./use-resolve-button-type-d43e0d20.js";import{c as re,l as B,p as te}from"./open-closed-f6ca1aaf.js";import{u as ne}from"./useAuthorizable-6471aaac.js";import{r as le}from"./CloudArrowDownIcon-5f838156.js";import{u as ie}from"./index-921c4872.js";function ae(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.26 10.147a60.436 60.436 0 00-.491 6.347A48.627 48.627 0 0112 20.904a48.627 48.627 0 018.232-4.41 60.46 60.46 0 00-.491-6.347m-15.482 0a50.57 50.57 0 00-2.658-.813A59.905 59.905 0 0112 3.493a59.902 59.902 0 0110.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.697 50.697 0 0112 13.489a50.702 50.702 0 017.74-3.342M6.75 15a.75.75 0 100-1.5.75.75 0 000 1.5zm0 0v-3.675A55.378 55.378 0 0112 8.443m-7.007 11.55A5.981 5.981 0 006.75 15.75v-1.5"})])}function oe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"})])}function se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z"})])}function ce(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5"})])}function ue(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function de(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"})])}function me(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})])}function he(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"})])}function ve(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function pe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function fe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25M16.5 7.5V18a2.25 2.25 0 002.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 002.25 2.25h13.5M6 7.5h3v3H6v-3z"})])}function be(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3v11.25A2.25 2.25 0 006 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0118 16.5h-2.25m-7.5 0h7.5m-7.5 0l-1 3m8.5-3l1 3m0 0l.5 1.5m-.5-1.5h-9.5m0 0l-.5 1.5m.75-9l3-3 2.148 2.148A12.061 12.061 0 0116.5 7.605"})])}function ge(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"})])}function we(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 18.75h-9m9 0a3 3 0 013 3h-15a3 3 0 013-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 01-.982-3.172M9.497 14.25a7.454 7.454 0 00.981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 007.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 002.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 012.916.52 6.003 6.003 0 01-5.395 4.972m0 0a6.726 6.726 0 01-2.749 1.35m0 0a6.772 6.772 0 01-3.044 0"})])}function xe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"})])}var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{});let T=Symbol("DisclosureContext");function V(e){let r=E(T,null);if(r===null){let c=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(c,V),c}return r}let R=Symbol("DisclosurePanelContext");function ye(){return E(R,null)}let Me=$({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:r,attrs:c}){let l=g(e.defaultOpen?0:1),t=g(null),u=g(null),s={buttonId:g(`headlessui-disclosure-button-${P()}`),panelId:g(`headlessui-disclosure-panel-${P()}`),disclosureState:l,panel:t,button:u,toggleDisclosure(){l.value=z(l.value,{0:1,1:0})},closeDisclosure(){l.value!==1&&(l.value=1)},close(i){s.closeDisclosure();let m=(()=>i?i instanceof HTMLElement?i:i.value instanceof HTMLElement?w(i):w(s.button):w(s.button))();m==null||m.focus()}};return O(T,s),re(y(()=>z(l.value,{0:B.Open,1:B.Closed}))),()=>{let{defaultOpen:i,...m}=e,h={open:l.value===0,close:s.close};return j({theirProps:m,ourProps:{},slot:h,slots:r,attrs:c,name:"Disclosure"})}}}),Ce=$({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=V("DisclosureButton"),u=ye(),s=y(()=>u===null?!1:u.value===t.panelId.value);I(()=>{s.value||e.id!==null&&(t.buttonId.value=e.id)}),L(()=>{s.value||(t.buttonId.value=null)});let i=g(null);l({el:i,$el:i}),s.value||G(()=>{t.button.value=i.value});let m=ee(y(()=>({as:e.as,type:r.type})),i);function h(){var d;e.disabled||(s.value?(t.toggleDisclosure(),(d=w(t.button))==null||d.focus()):t.toggleDisclosure())}function M(d){var C;if(!e.disabled)if(s.value)switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure(),(C=w(t.button))==null||C.focus();break}else switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure();break}}function D(d){switch(d.key){case x.Space:d.preventDefault();break}}return()=>{var d;let C={open:t.disclosureState.value===0},{id:U,...F}=e,K=s.value?{ref:i,type:m.value,onClick:h,onKeydown:M}:{id:(d=t.buttonId.value)!=null?d:U,ref:i,type:m.value,"aria-expanded":t.disclosureState.value===0,"aria-controls":t.disclosureState.value===0||w(t.panel)?t.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:h,onKeydown:M,onKeyup:D};return j({ourProps:K,theirProps:F,slot:C,attrs:r,slots:c,name:"DisclosureButton"})}}}),_e=$({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=V("DisclosurePanel");I(()=>{e.id!==null&&(t.panelId.value=e.id)}),L(()=>{t.panelId.value=null}),l({el:t.panel,$el:t.panel}),O(R,t.panelId);let u=te(),s=y(()=>u!==null?(u.value&B.Open)===B.Open:t.disclosureState.value===0);return()=>{var i;let m={open:t.disclosureState.value===0,close:t.close},{id:h,...M}=e,D={id:(i=t.panelId.value)!=null?i:h,ref:t.panel};return j({ourProps:D,theirProps:M,slot:m,attrs:r,slots:c,features:H.RenderStrategy|H.Static,visible:s.value,name:"DisclosurePanel"})}}});function Se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[a("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Be={key:1},De={key:1,class:"flex-1"},Ae={__name:"SideNavItem",props:{item:Object,collapsed:Boolean},setup(e){const r=e,c=y(()=>{function l(t){return t.some(u=>u.active||l(u.children))}return l(r.item.children)});return(l,t)=>{const u=J("SideNavItem",!0);return!e.item.children.length&&e.item.visible?(n(),p(A(e.item.newtab?"a":b(X)),{key:0,class:v(["group flex w-full items-center rounded-md py-2 px-3 text-sm font-medium","hover:bg-gray-100 dark:hover:bg-gray-900",e.item.active?"text-gray-800 font-semibold dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"]),href:e.item.href,target:e.item.newtab?"_blank":null},{default:k(()=>[e.item.icon?(n(),p(A(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",e.item.active?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):f("",!0),e.collapsed?f("",!0):(n(),o("span",Be,_(l.__(e.item.label)),1))]),_:1},8,["class","href","target"])):e.item.children.length&&e.item.visible?(n(),p(b(Me),{key:1,"default-open":c.value},{default:k(({open:s})=>[S(b(Ce),{class:v(["group text-left flex w-full items-center rounded-md py-2 px-3 text-sm","hover:bg-gray-100 dark:hover:bg-gray-900",s?"font-semibold text-gray-800 dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"])},{default:k(()=>[e.item.icon?(n(),p(A(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",s?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):f("",!0),e.collapsed?f("",!0):(n(),o("span",De,_(l.__(e.item.label)),1)),e.collapsed?f("",!0):(n(),p(b(Se),{key:2,class:v(["w-6 h-6 shrink-0",s?"-rotate-180 text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"]))]),_:2},1032,["class"]),e.collapsed?f("",!0):(n(),p(b(_e),{key:0,class:"ml-4"},{default:k(()=>[(n(!0),o(q,null,N(e.item.children,i=>(n(),p(u,{key:i.label,item:i},null,8,["item"]))),128))]),_:1}))]),_:1},8,["default-open"])):f("",!0)}}},$e={class:"h-screen overflow-y-auto"},je={class:"mt-2 px-2"},Ve={key:0,class:"mt-10 text-xs text-center text-gray-600 dark:text-gray-500"},Pe={__name:"AdminSideMenu",props:{collapsed:Boolean},emits:["toggleCollapse"],setup(e){var u,s;const{canWild:r,hasRole:c,can:l}=ne(),t=[{label:"Dashboard",href:route("admin.dashboard"),active:route().current("admin.dashboard"),children:[],icon:pe,visible:!0},{label:"Servers",href:route("admin.server.index"),active:route().current("admin.server.*"),children:[],icon:ge,visible:r("servers")},{label:"Server Analytics",href:"#",active:route().current("admin.intel.server.*"),children:[{label:"Overview",href:route("admin.intel.server.index"),active:route().current("admin.intel.server.index"),children:[],icon:null,visible:r("server_intel")},{label:"Performance",href:route("admin.intel.server.performance"),active:route().current("admin.intel.server.performance"),children:[],icon:null,visible:r("server_intel")},{label:"Playerbase",href:route("admin.intel.server.playerbase"),active:route().current("admin.intel.server.playerbase"),children:[],icon:null,visible:r("server_intel")},{label:"Chatlog",href:route("admin.intel.server.chatlog"),active:route().current("admin.intel.server.chatlog"),children:[],icon:null,visible:r("server_intel")},{label:"Consolelog",href:route("admin.intel.server.consolelog"),active:route().current("admin.intel.server.consolelog"),children:[],icon:null,visible:r("server_intel")}],icon:be,visible:r("server_intel")},{label:"Players",href:"#",active:route().current("admin.intel.player.*")||route().current("admin.rank.*"),children:[{label:"List Players",href:route("admin.intel.player.list"),active:route().current("admin.intel.player.list"),children:[],icon:null,visible:!0},{label:"Player Ranks",href:route("admin.rank.index"),active:route().current("admin.rank.*"),children:[],icon:null,visible:r("ranks")},{label:"Punishments",href:route("player.punishment.index"),active:route().current("player.punishment.index"),children:[],icon:null,visible:(s=(u=Y().props)==null?void 0:u.banwarden)==null?void 0:s.enabled}],icon:we,visible:!0},{label:"Users",href:"#",active:!1,children:[{label:"List Users",href:route("admin.user.index"),active:route().current("admin.user.*"),children:[],icon:null,visible:r("users")},{label:"Roles & Permissions",href:route("admin.role.index"),active:route().current("admin.role.*"),children:[],icon:null,visible:r("roles")},{label:"User Badges",href:route("admin.badge.index"),active:route().current("admin.badge.*"),children:[],icon:null,visible:r("badges")},{label:"Online Users",href:route("admin.session.index"),active:route().current("admin.session.*"),children:[],icon:null,visible:r("sessions")}],icon:xe,visible:!0},{label:"News",href:route("admin.news.index"),active:route().current("admin.news.*"),children:[],icon:fe,visible:r("news")},{label:"Polls",href:route("admin.poll.index"),active:route().current("admin.poll.*"),children:[],icon:se,visible:r("polls")},{label:"Downloads",href:route("admin.download.index"),active:route().current("admin.download.*"),children:[],icon:le,visible:r("downloads")},{label:"Custom Pages",href:route("admin.custom-page.index"),active:route().current("admin.custom-page.*"),children:[],icon:ve,visible:r("custom_pages")},{label:"Ask DB",href:route("admin.ask-db.index"),active:route().current("admin.ask-db.*"),children:[],icon:ue,visible:r("ask_db")},{label:"Applicatons",active:!1,children:[{label:"List Application Forms",href:route("admin.recruitment.index"),active:route().current("admin.recruitment.index"),children:[],icon:null,visible:l("read recruitments")},{label:"Open Requests",href:route("admin.recruitment-submission.index-open"),active:route().current("admin.recruitment-submission.index-open"),children:[],icon:null,visible:l("read recruitment_submissions")},{label:"Closed Requests",href:route("admin.recruitment-submission.index-closed"),active:route().current("admin.recruitment-submission.index-closed"),children:[],icon:null,visible:l("read recruitment_submissions")}],icon:ae,visible:r("recruitments")||r("recruitment_submissions")},{label:"Custom Forms",active:!1,children:[{label:"List Forms",href:route("admin.custom-form.index"),active:route().current("admin.custom-form.index"),children:[],icon:null,visible:l("read custom_forms")},{label:"Submissions",href:route("admin.custom-form-submission.index"),active:route().current("admin.custom-form-submission.index"),children:[],icon:null,visible:l("read custom_form_submissions")},{label:"Archived Submissions",href:route("admin.custom-form-submission.index-archived"),active:route().current("admin.custom-form-submission.index-archived"),children:[],icon:null,visible:l("read custom_form_submissions")}],icon:de,visible:r("custom_forms")||r("custom_form_submissions")},{label:"Commands",active:!1,children:[{label:"Run Command",href:route("admin.command-queue.create"),active:route().current("admin.command-queue.create"),children:[],icon:null,visible:l("create command_queues")},{label:"Command History",href:route("admin.command-queue.index"),active:route().current("admin.command-queue.index"),children:[],icon:null,visible:l("read command_queues")}],icon:he,visible:r("command_queues")},{label:"Settings",href:"#",active:!1,children:[{label:"General",href:route("admin.setting.general.show"),active:route().current("admin.setting.general.show"),children:[],icon:null,visible:!0},{label:"Theme",href:route("admin.setting.theme.show"),active:route().current("admin.setting.theme.show"),children:[],icon:null,visible:!0},{label:"Plugin",href:route("admin.setting.plugin.show"),active:route().current("admin.setting.plugin.show"),children:[],icon:null,visible:!0},{label:"Player",href:route("admin.setting.player.show"),active:route().current("admin.setting.player.show"),children:[],icon:null,visible:!0},{label:"Navigation",href:route("admin.setting.navigation.show"),active:route().current("admin.setting.navigation.show"),children:[],icon:null,visible:!0},{label:"SEO",href:route("admin.setting.seo.show"),active:route().current("admin.setting.seo.show"),children:[],icon:null,visible:!0},{label:"Dangerzone",href:route("admin.setting.danger.show"),active:route().current("admin.setting.danger.show"),children:[],icon:null,visible:c("superadmin")}],icon:me,visible:r("settings")},{label:"Debug",href:"#",active:!1,children:[{label:"Failed Jobs",href:route("admin.failed-job.index"),active:route().current("admin.failed-job.index"),children:[],icon:null,visible:l("read failed_jobs")},{label:"Pulse",href:"/admin/pulse",active:!1,children:[],icon:null,visible:!0,newtab:!0},{label:"Telescope",href:"/telescope",active:!1,children:[],icon:null,visible:!0,newtab:!0}],icon:oe,visible:c("superadmin")}];return(i,m)=>(n(),o("div",{class:v(["min-h-screen fixed bg-white shadow dark:bg-cool-gray-800 z-10 duration-300",e.collapsed?"w-16":"w-64"])},[a("div",$e,[a("div",{class:v(["px-4 mt-2 flex",e.collapsed?"justify-center":"justify-end"])},[a("button",{onClick:m[0]||(m[0]=Q(h=>i.$emit("toggleCollapse"),["prevent"]))},[S(b(ce),{class:v(["h-6 w-6 p-0.5 text-gray-400 hover:text-gray-600 dark:text-gray-600 dark:hover:text-gray-400",e.collapsed?"-rotate-180":""])},null,8,["class"])])],2),a("nav",je,[(n(),o(q,null,N(t,h=>S(Ae,{key:h.label,item:h,collapsed:e.collapsed},null,8,["item","collapsed"])),64))]),e.collapsed?f("",!0):(n(),o("div",Ve,_(i.__("Web Version:"))+" "+_(i.$page.props.webVersion||"unknown"),1))])],2))}},Ne={__name:"AdminLayout",setup(e){let r=ie("is-admin-sidebar-menu-collapsed",!1);function c(){r.value=!r.value}return(l,t)=>(n(),p(W,{"hide-footer":!0},{default:k(()=>[S(Pe,{collapsed:b(r),onToggleCollapse:c},null,8,["collapsed"]),a("main",{class:v([b(r)?"ml-16":"ml-64"])},[Z(l.$slots,"default")],2)]),_:3}))}};export{Ne as _,ge as a,xe as r}; diff --git a/public/build/default/assets/AdminLayout-6871218d.js b/public/build/default/assets/AdminLayout-6871218d.js deleted file mode 100644 index a81705b1d..000000000 --- a/public/build/default/assets/AdminLayout-6871218d.js +++ /dev/null @@ -1 +0,0 @@ -import{A as W}from"./AppLayout-f0beb308.js";import{o as n,d as o,a,z as $,r as g,y as O,x as y,A as I,B as L,s as G,C as E,l as J,c as p,w as k,M as D,n as v,e as b,t as _,u as f,Z as X,b as S,F as q,g as N,S as Y,i as Z,R as Q}from"./app-37a137ca.js";import{t as V,u as P,o as w,H as j,b as ee,N as H,a as x}from"./use-resolve-button-type-de0ab56d.js";import{c as re,l as B,p as te}from"./open-closed-9d3e458c.js";import{u as ne}from"./useAuthorizable-18e26e04.js";import{r as le}from"./CloudArrowDownIcon-692f92f7.js";import{u as ie}from"./index-231e8332.js";function ae(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.26 10.147a60.436 60.436 0 00-.491 6.347A48.627 48.627 0 0112 20.904a48.627 48.627 0 018.232-4.41 60.46 60.46 0 00-.491-6.347m-15.482 0a50.57 50.57 0 00-2.658-.813A59.905 59.905 0 0112 3.493a59.902 59.902 0 0110.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.697 50.697 0 0112 13.489a50.702 50.702 0 017.74-3.342M6.75 15a.75.75 0 100-1.5.75.75 0 000 1.5zm0 0v-3.675A55.378 55.378 0 0112 8.443m-7.007 11.55A5.981 5.981 0 006.75 15.75v-1.5"})])}function oe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"})])}function se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z"})])}function ce(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5"})])}function ue(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function de(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"})])}function me(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})])}function he(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"})])}function ve(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function pe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function be(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25M16.5 7.5V18a2.25 2.25 0 002.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 002.25 2.25h13.5M6 7.5h3v3H6v-3z"})])}function fe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3v11.25A2.25 2.25 0 006 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0118 16.5h-2.25m-7.5 0h7.5m-7.5 0l-1 3m8.5-3l1 3m0 0l.5 1.5m-.5-1.5h-9.5m0 0l-.5 1.5m.75-9l3-3 2.148 2.148A12.061 12.061 0 0116.5 7.605"})])}function ge(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"})])}function we(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 18.75h-9m9 0a3 3 0 013 3h-15a3 3 0 013-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 01-.982-3.172M9.497 14.25a7.454 7.454 0 00.981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 007.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 002.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 012.916.52 6.003 6.003 0 01-5.395 4.972m0 0a6.726 6.726 0 01-2.749 1.35m0 0a6.772 6.772 0 01-3.044 0"})])}function xe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"})])}var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{});let R=Symbol("DisclosureContext");function z(e){let r=E(R,null);if(r===null){let c=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(c,z),c}return r}let T=Symbol("DisclosurePanelContext");function ye(){return E(T,null)}let Me=$({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:r,attrs:c}){let l=g(e.defaultOpen?0:1),t=g(null),u=g(null),s={buttonId:g(`headlessui-disclosure-button-${V()}`),panelId:g(`headlessui-disclosure-panel-${V()}`),disclosureState:l,panel:t,button:u,toggleDisclosure(){l.value=P(l.value,{0:1,1:0})},closeDisclosure(){l.value!==1&&(l.value=1)},close(i){s.closeDisclosure();let m=(()=>i?i instanceof HTMLElement?i:i.value instanceof HTMLElement?w(i):w(s.button):w(s.button))();m==null||m.focus()}};return O(R,s),re(y(()=>P(l.value,{0:B.Open,1:B.Closed}))),()=>{let{defaultOpen:i,...m}=e,h={open:l.value===0,close:s.close};return j({theirProps:m,ourProps:{},slot:h,slots:r,attrs:c,name:"Disclosure"})}}}),Ce=$({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=z("DisclosureButton"),u=ye(),s=y(()=>u===null?!1:u.value===t.panelId.value);I(()=>{s.value||e.id!==null&&(t.buttonId.value=e.id)}),L(()=>{s.value||(t.buttonId.value=null)});let i=g(null);l({el:i,$el:i}),s.value||G(()=>{t.button.value=i.value});let m=ee(y(()=>({as:e.as,type:r.type})),i);function h(){var d;e.disabled||(s.value?(t.toggleDisclosure(),(d=w(t.button))==null||d.focus()):t.toggleDisclosure())}function M(d){var C;if(!e.disabled)if(s.value)switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure(),(C=w(t.button))==null||C.focus();break}else switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure();break}}function A(d){switch(d.key){case x.Space:d.preventDefault();break}}return()=>{var d;let C={open:t.disclosureState.value===0},{id:F,...U}=e,K=s.value?{ref:i,type:m.value,onClick:h,onKeydown:M}:{id:(d=t.buttonId.value)!=null?d:F,ref:i,type:m.value,"aria-expanded":t.disclosureState.value===0,"aria-controls":t.disclosureState.value===0||w(t.panel)?t.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:h,onKeydown:M,onKeyup:A};return j({ourProps:K,theirProps:U,slot:C,attrs:r,slots:c,name:"DisclosureButton"})}}}),_e=$({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=z("DisclosurePanel");I(()=>{e.id!==null&&(t.panelId.value=e.id)}),L(()=>{t.panelId.value=null}),l({el:t.panel,$el:t.panel}),O(T,t.panelId);let u=te(),s=y(()=>u!==null?(u.value&B.Open)===B.Open:t.disclosureState.value===0);return()=>{var i;let m={open:t.disclosureState.value===0,close:t.close},{id:h,...M}=e,A={id:(i=t.panelId.value)!=null?i:h,ref:t.panel};return j({ourProps:A,theirProps:M,slot:m,attrs:r,slots:c,features:H.RenderStrategy|H.Static,visible:s.value,name:"DisclosurePanel"})}}});function Se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[a("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Be={key:1},Ae={key:1,class:"flex-1"},De={__name:"SideNavItem",props:{item:Object,collapsed:Boolean},setup(e){const r=e,c=y(()=>{function l(t){return t.some(u=>u.active||l(u.children))}return l(r.item.children)});return(l,t)=>{const u=J("SideNavItem",!0);return!e.item.children.length&&e.item.visible?(n(),p(D(e.item.newtab?"a":f(X)),{key:0,class:v(["group flex w-full items-center rounded-md py-2 px-3 text-sm font-medium","hover:bg-gray-100 dark:hover:bg-gray-900",e.item.active?"text-gray-800 font-semibold dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"]),href:e.item.href,target:e.item.newtab?"_blank":null},{default:k(()=>[e.item.icon?(n(),p(D(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",e.item.active?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):b("",!0),e.collapsed?b("",!0):(n(),o("span",Be,_(l.__(e.item.label)),1))]),_:1},8,["class","href","target"])):e.item.children.length&&e.item.visible?(n(),p(f(Me),{key:1,"default-open":c.value},{default:k(({open:s})=>[S(f(Ce),{class:v(["group text-left flex w-full items-center rounded-md py-2 px-3 text-sm","hover:bg-gray-100 dark:hover:bg-gray-900",s?"font-semibold text-gray-800 dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"])},{default:k(()=>[e.item.icon?(n(),p(D(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",s?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):b("",!0),e.collapsed?b("",!0):(n(),o("span",Ae,_(l.__(e.item.label)),1)),e.collapsed?b("",!0):(n(),p(f(Se),{key:2,class:v(["w-6 h-6 shrink-0",s?"-rotate-180 text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"]))]),_:2},1032,["class"]),e.collapsed?b("",!0):(n(),p(f(_e),{key:0,class:"ml-4"},{default:k(()=>[(n(!0),o(q,null,N(e.item.children,i=>(n(),p(u,{key:i.label,item:i},null,8,["item"]))),128))]),_:1}))]),_:1},8,["default-open"])):b("",!0)}}},$e={class:"h-screen overflow-y-auto"},je={class:"mt-2 px-2"},ze={key:0,class:"mt-10 text-xs text-center text-gray-600 dark:text-gray-500"},Ve={__name:"AdminSideMenu",props:{collapsed:Boolean},emits:["toggleCollapse"],setup(e){var u,s;const{canWild:r,hasRole:c,can:l}=ne(),t=[{label:"Dashboard",href:route("admin.dashboard"),active:route().current("admin.dashboard"),children:[],icon:pe,visible:!0},{label:"Servers",href:route("admin.server.index"),active:route().current("admin.server.*"),children:[],icon:ge,visible:r("servers")},{label:"Server Analytics",href:"#",active:route().current("admin.intel.server.*"),children:[{label:"Overview",href:route("admin.intel.server.index"),active:route().current("admin.intel.server.index"),children:[],icon:null,visible:r("server_intel")},{label:"Performance",href:route("admin.intel.server.performance"),active:route().current("admin.intel.server.performance"),children:[],icon:null,visible:r("server_intel")},{label:"Playerbase",href:route("admin.intel.server.playerbase"),active:route().current("admin.intel.server.playerbase"),children:[],icon:null,visible:r("server_intel")},{label:"Chatlog",href:route("admin.intel.server.chatlog"),active:route().current("admin.intel.server.chatlog"),children:[],icon:null,visible:r("server_intel")},{label:"Consolelog",href:route("admin.intel.server.consolelog"),active:route().current("admin.intel.server.consolelog"),children:[],icon:null,visible:r("server_intel")}],icon:fe,visible:r("server_intel")},{label:"Players",href:"#",active:route().current("admin.intel.player.*")||route().current("admin.rank.*"),children:[{label:"List Players",href:route("admin.intel.player.list"),active:route().current("admin.intel.player.list"),children:[],icon:null,visible:!0},{label:"Player Ranks",href:route("admin.rank.index"),active:route().current("admin.rank.*"),children:[],icon:null,visible:r("ranks")},{label:"Punishments",href:route("player.punishment.index"),active:route().current("player.punishment.index"),children:[],icon:null,visible:(s=(u=Y().props)==null?void 0:u.banwarden)==null?void 0:s.enabled}],icon:we,visible:!0},{label:"Users",href:"#",active:!1,children:[{label:"List Users",href:route("admin.user.index"),active:route().current("admin.user.*"),children:[],icon:null,visible:r("users")},{label:"Roles & Permissions",href:route("admin.role.index"),active:route().current("admin.role.*"),children:[],icon:null,visible:r("roles")},{label:"User Badges",href:route("admin.badge.index"),active:route().current("admin.badge.*"),children:[],icon:null,visible:r("badges")},{label:"Online Users",href:route("admin.session.index"),active:route().current("admin.session.*"),children:[],icon:null,visible:r("sessions")}],icon:xe,visible:!0},{label:"News",href:route("admin.news.index"),active:route().current("admin.news.*"),children:[],icon:be,visible:r("news")},{label:"Polls",href:route("admin.poll.index"),active:route().current("admin.poll.*"),children:[],icon:se,visible:r("polls")},{label:"Downloads",href:route("admin.download.index"),active:route().current("admin.download.*"),children:[],icon:le,visible:r("downloads")},{label:"Custom Pages",href:route("admin.custom-page.index"),active:route().current("admin.custom-page.*"),children:[],icon:ve,visible:r("custom_pages")},{label:"Ask DB",href:route("admin.ask-db.index"),active:route().current("admin.ask-db.*"),children:[],icon:ue,visible:r("ask_db")},{label:"Applicatons",active:!1,children:[{label:"List Application Forms",href:route("admin.recruitment.index"),active:route().current("admin.recruitment.index"),children:[],icon:null,visible:l("read recruitments")},{label:"Open Requests",href:route("admin.recruitment-submission.index-open"),active:route().current("admin.recruitment-submission.index-open"),children:[],icon:null,visible:l("read recruitment_submissions")},{label:"Closed Requests",href:route("admin.recruitment-submission.index-closed"),active:route().current("admin.recruitment-submission.index-closed"),children:[],icon:null,visible:l("read recruitment_submissions")}],icon:ae,visible:r("recruitments")||r("recruitment_submissions")},{label:"Custom Forms",active:!1,children:[{label:"List Forms",href:route("admin.custom-form.index"),active:route().current("admin.custom-form.index"),children:[],icon:null,visible:l("read custom_forms")},{label:"Submissions",href:route("admin.custom-form-submission.index"),active:route().current("admin.custom-form-submission.index"),children:[],icon:null,visible:l("read custom_form_submissions")},{label:"Archived Submissions",href:route("admin.custom-form-submission.index-archived"),active:route().current("admin.custom-form-submission.index-archived"),children:[],icon:null,visible:l("read custom_form_submissions")}],icon:de,visible:r("custom_forms")||r("custom_form_submissions")},{label:"Commands",active:!1,children:[{label:"Run Command",href:route("admin.command-queue.create"),active:route().current("admin.command-queue.create"),children:[],icon:null,visible:l("create command_queues")},{label:"Command History",href:route("admin.command-queue.index"),active:route().current("admin.command-queue.index"),children:[],icon:null,visible:l("read command_queues")}],icon:he,visible:r("command_queues")},{label:"Settings",href:"#",active:!1,children:[{label:"General",href:route("admin.setting.general.show"),active:route().current("admin.setting.general.show"),children:[],icon:null,visible:!0},{label:"Theme",href:route("admin.setting.theme.show"),active:route().current("admin.setting.theme.show"),children:[],icon:null,visible:!0},{label:"Plugin",href:route("admin.setting.plugin.show"),active:route().current("admin.setting.plugin.show"),children:[],icon:null,visible:!0},{label:"Player",href:route("admin.setting.player.show"),active:route().current("admin.setting.player.show"),children:[],icon:null,visible:!0},{label:"Navigation",href:route("admin.setting.navigation.show"),active:route().current("admin.setting.navigation.show"),children:[],icon:null,visible:!0},{label:"SEO",href:route("admin.setting.seo.show"),active:route().current("admin.setting.seo.show"),children:[],icon:null,visible:!0},{label:"Dangerzone",href:route("admin.setting.danger.show"),active:route().current("admin.setting.danger.show"),children:[],icon:null,visible:c("superadmin")}],icon:me,visible:r("settings")},{label:"Debug",href:"#",active:!1,children:[{label:"Failed Jobs",href:route("admin.failed-job.index"),active:route().current("admin.failed-job.index"),children:[],icon:null,visible:l("read failed_jobs")},{label:"Pulse",href:"/admin/pulse",active:!1,children:[],icon:null,visible:!0,newtab:!0},{label:"Telescope",href:"/telescope",active:!1,children:[],icon:null,visible:!0,newtab:!0}],icon:oe,visible:c("superadmin")}];return(i,m)=>(n(),o("div",{class:v(["min-h-screen fixed bg-white shadow dark:bg-cool-gray-800 z-10 duration-300",e.collapsed?"w-16":"w-64"])},[a("div",$e,[a("div",{class:v(["px-4 mt-2 flex",e.collapsed?"justify-center":"justify-end"])},[a("button",{onClick:m[0]||(m[0]=Z(h=>i.$emit("toggleCollapse"),["prevent"]))},[S(f(ce),{class:v(["h-6 w-6 p-0.5 text-gray-400 hover:text-gray-600 dark:text-gray-600 dark:hover:text-gray-400",e.collapsed?"-rotate-180":""])},null,8,["class"])])],2),a("nav",je,[(n(),o(q,null,N(t,h=>S(De,{key:h.label,item:h,collapsed:e.collapsed},null,8,["item","collapsed"])),64))]),e.collapsed?b("",!0):(n(),o("div",ze,_(i.__("Web Version:"))+" "+_(i.$page.props.webVersion||"unknown"),1))])],2))}},Ne={__name:"AdminLayout",setup(e){let r=ie("is-admin-sidebar-menu-collapsed",!1);function c(){r.value=!r.value}return(l,t)=>(n(),p(W,null,{default:k(()=>[S(Ve,{collapsed:f(r),onToggleCollapse:c},null,8,["collapsed"]),a("main",{class:v([f(r)?"ml-16":"ml-64"])},[Q(l.$slots,"default")],2)]),_:3}))}};export{Ne as _,ge as a,xe as r}; diff --git a/public/build/default/assets/AfterCreateSteps-e44cc1e3.js b/public/build/default/assets/AfterCreateSteps-23ad8be8.js similarity index 84% rename from public/build/default/assets/AfterCreateSteps-e44cc1e3.js rename to public/build/default/assets/AfterCreateSteps-23ad8be8.js index f7e131273..e785fca1b 100644 --- a/public/build/default/assets/AfterCreateSteps-e44cc1e3.js +++ b/public/build/default/assets/AfterCreateSteps-23ad8be8.js @@ -1,4 +1,4 @@ -import{_ as p}from"./AdminLayout-6871218d.js";import{o as l,d as c,a as e,l as n,c as h,w as i,b as a,u as _,t,f as s}from"./app-37a137ca.js";import"./AppLayout-f0beb308.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-3624adfa.js";import"./useAuthorizable-18e26e04.js";import"./use-resolve-button-type-de0ab56d.js";import"./open-closed-9d3e458c.js";import"./CloudArrowDownIcon-692f92f7.js";import"./index-231e8332.js";function f(o,r){return l(),c("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}const g={class:"py-12 px-10 max-w-4xl mx-auto"},m={class:"bg-white shadow rounded p-6 dark:bg-gray-800"},y={class:"flex flex-col items-center justify-center"},v={class:"text-2xl font-bold text-green-500"},w={class:"uppercase font-bold mt-3 dark:text-gray-200 text-gray-800"},b={class:"flex flex-col space-y-4 mt-6 prose-lg prose dark:prose-dark"},x={target:"_blank",class:"text-light-blue-400 hover:text-light-blue-600 whitespace-nowrap",href:"https://github.com/MineTrax/plugin/releases/latest"},k=e("kbd",null,"plugins/Minetrax/config.yml",-1),S=e("br",null,null,-1),q={class:"dark:bg-gray-900"},C={class:"flex justify-end mt-4"},K={__name:"AfterCreateSteps",props:{server:{type:Object,required:!0},apiKey:{type:String,required:!0},apiSecret:{type:String,required:!0},apiHost:{type:String,required:!0}},setup(o){return(r,j)=>{const d=n("app-head"),u=n("InertiaLink");return l(),h(p,null,{default:i(()=>[a(d,{title:r.__("Server Created Successfully!")},null,8,["title"]),e("div",g,[e("div",m,[e("div",y,[a(_(f),{class:"h-32 text-green-500","aria-hidden":"true"}),e("h1",v,t(r.__("Server Added Successfully!")),1),e("h1",w,t(r.__("Follow below steps to add the Plugin!")),1)]),e("div",b,[e("p",null,[s(t(r.__("Download latest version of the MineTrax.jar Plugin and upload it into 'plugins' folder of your server."))+" ",1),e("a",x,t(r.__("Click here to Download")),1)]),e("p",null,[s(t(r.__("Restart your server once so that the plugin can generate the config file inside"))+" ",1),k,s(". ")]),S,e("p",null,[s(t(r.__("Open the config file and update the following details in it as provided below"))+": ",1),e("pre",q,`enabled: true +import{_ as p}from"./AdminLayout-3f7d09eb.js";import{o as l,d as c,a as e,s as n,c as h,w as i,b as a,u as _,t,f as s}from"./app-e2d1b450.js";import"./AppLayout-5fa2c638.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-14807a0c.js";import"./useAuthorizable-6471aaac.js";import"./use-resolve-button-type-d43e0d20.js";import"./open-closed-f6ca1aaf.js";import"./CloudArrowDownIcon-5f838156.js";import"./index-921c4872.js";function f(o,r){return l(),c("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}const g={class:"py-12 px-10 max-w-4xl mx-auto"},m={class:"bg-white shadow rounded p-6 dark:bg-gray-800"},y={class:"flex flex-col items-center justify-center"},v={class:"text-2xl font-bold text-green-500"},w={class:"uppercase font-bold mt-3 dark:text-gray-200 text-gray-800"},b={class:"flex flex-col space-y-4 mt-6 prose-lg prose dark:prose-dark"},x={target:"_blank",class:"text-light-blue-400 hover:text-light-blue-600 whitespace-nowrap",href:"https://github.com/MineTrax/plugin/releases/latest"},k=e("kbd",null,"plugins/Minetrax/config.yml",-1),S=e("br",null,null,-1),q={class:"dark:bg-gray-900"},C={class:"flex justify-end mt-4"},K={__name:"AfterCreateSteps",props:{server:{type:Object,required:!0},apiKey:{type:String,required:!0},apiSecret:{type:String,required:!0},apiHost:{type:String,required:!0}},setup(o){return(r,j)=>{const d=n("app-head"),u=n("InertiaLink");return l(),h(p,null,{default:i(()=>[a(d,{title:r.__("Server Created Successfully!")},null,8,["title"]),e("div",g,[e("div",m,[e("div",y,[a(_(f),{class:"h-32 text-green-500","aria-hidden":"true"}),e("h1",v,t(r.__("Server Added Successfully!")),1),e("h1",w,t(r.__("Follow below steps to add the Plugin!")),1)]),e("div",b,[e("p",null,[s(t(r.__("Download latest version of the MineTrax.jar Plugin and upload it into 'plugins' folder of your server."))+" ",1),e("a",x,t(r.__("Click here to Download")),1)]),e("p",null,[s(t(r.__("Restart your server once so that the plugin can generate the config file inside"))+" ",1),k,s(". ")]),S,e("p",null,[s(t(r.__("Open the config file and update the following details in it as provided below"))+": ",1),e("pre",q,`enabled: true api-host: `+t(o.apiHost)+` api-key: `+t(o.apiKey)+` api-secret: `+t(o.apiSecret)+` diff --git a/public/build/default/assets/AlertCard-26f78684.js b/public/build/default/assets/AlertCard-1fb585a5.js similarity index 90% rename from public/build/default/assets/AlertCard-26f78684.js rename to public/build/default/assets/AlertCard-1fb585a5.js index 06ed9e754..dc500dfbd 100644 --- a/public/build/default/assets/AlertCard-26f78684.js +++ b/public/build/default/assets/AlertCard-1fb585a5.js @@ -1 +1 @@ -import{r as n}from"./XMarkIcon-2edfadb7.js";import{o as s,d as r,a as e,R as l,n as a,b as i,u as c,e as g}from"./app-37a137ca.js";const u={class:"flex"},b={class:"py-1"},m=e("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"},null,-1),h=[m],v={class:"font-bold"},f={class:"text-sm"},w={__name:"AlertCard",props:{borderColor:{type:String,default:"border-green-500"},textColor:{type:String,default:"text-green-500"},titleClass:{type:String,default:""},closeButton:{type:Boolean,default:!1}},emits:["close"],setup(t){return(o,d)=>(s(),r("div",{class:a(`mb-4 bg-white dark:bg-cool-gray-800 border-t-4 ${t.borderColor} rounded-b ${t.textColor} px-4 py-3 shadow relative`),role:"alert"},[e("div",u,[e("div",b,[l(o.$slots,"icon",{},()=>[(s(),r("svg",{class:a(`fill-current h-6 w-6 ${t.textColor} mr-4`),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},h,2))])]),e("div",{class:a(t.titleClass)},[e("div",v,[l(o.$slots,"default")]),e("div",f,[l(o.$slots,"body")])],2)]),t.closeButton?(s(),r("button",{key:0,class:"absolute rounded-full bg-white dark:bg-gray-800 border dark:border-gray-900 dark:hover:bg-gray-700 hover:bg-gray-100 p-1 -top-5 -right-3",onClick:d[0]||(d[0]=y=>o.$emit("close"))},[i(c(n),{class:"h-5 w-5"})])):g("",!0)],2))}};export{w as _}; +import{r as n}from"./XMarkIcon-84c589b2.js";import{o as s,d as r,a as e,U as l,n as a,b as i,u as c,e as g}from"./app-e2d1b450.js";const u={class:"flex"},b={class:"py-1"},m=e("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"},null,-1),h=[m],v={class:"font-bold"},f={class:"text-sm"},w={__name:"AlertCard",props:{borderColor:{type:String,default:"border-green-500"},textColor:{type:String,default:"text-green-500"},titleClass:{type:String,default:""},closeButton:{type:Boolean,default:!1}},emits:["close"],setup(t){return(o,d)=>(s(),r("div",{class:a(`mb-4 bg-white dark:bg-cool-gray-800 border-t-4 ${t.borderColor} rounded-b ${t.textColor} px-4 py-3 shadow relative`),role:"alert"},[e("div",u,[e("div",b,[l(o.$slots,"icon",{},()=>[(s(),r("svg",{class:a(`fill-current h-6 w-6 ${t.textColor} mr-4`),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},h,2))])]),e("div",{class:a(t.titleClass)},[e("div",v,[l(o.$slots,"default")]),e("div",f,[l(o.$slots,"body")])],2)]),t.closeButton?(s(),r("button",{key:0,class:"absolute rounded-full bg-white dark:bg-gray-800 border dark:border-gray-900 dark:hover:bg-gray-700 hover:bg-gray-100 p-1 -top-5 -right-3",onClick:d[0]||(d[0]=y=>o.$emit("close"))},[i(c(n),{class:"h-5 w-5"})])):g("",!0)],2))}};export{w as _}; diff --git a/public/build/default/assets/ApiTokenManager-cb8edbd0.js b/public/build/default/assets/ApiTokenManager-fe92df83.js similarity index 85% rename from public/build/default/assets/ApiTokenManager-cb8edbd0.js rename to public/build/default/assets/ApiTokenManager-fe92df83.js index 092666081..a70a19f76 100644 --- a/public/build/default/assets/ApiTokenManager-cb8edbd0.js +++ b/public/build/default/assets/ApiTokenManager-fe92df83.js @@ -1 +1 @@ -import{T as h,r as b,o as i,d as r,b as t,w as e,a,e as v,f as n,u as l,F as $,g as x,n as A,t as k}from"./app-37a137ca.js";import{_ as N}from"./ActionMessage-7b5ec6d7.js";import{_ as j}from"./ActionSection-b607014e.js";import{_ as P}from"./Button-3c85d256.js";import{_ as U}from"./ConfirmationModal-aff1956a.js";import{_ as J}from"./DangerButton-4e2ad65f.js";import{_ as T}from"./DialogModal-6be4c93a.js";import{_ as L}from"./FormSection-bc7d3968.js";import{_ as M}from"./Input-98d93943.js";import{_ as w}from"./Checkbox-f0c2e682.js";import{_ as z}from"./InputError-315173fd.js";import{_ as S}from"./Label-e2ceae5d.js";import{_ as C}from"./SecondaryButton-c1bcd966.js";import{J as E}from"./SectionBorder-c1be3d97.js";import"./SectionTitle-aabd6f35.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Modal-295d2710.js";const Y={class:"col-span-6 sm:col-span-4"},q={key:0,class:"col-span-6"},G={class:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-4"},H={class:"flex items-center"},K={class:"ml-2 text-sm text-gray-600"},O={key:0},Q={class:"mt-10 sm:mt-0"},R={class:"space-y-6"},W={class:"flex items-center"},X={key:0,class:"text-sm text-gray-400"},Z=["onClick"],ee=["onClick"],se=a("div",null," Please copy your new API token. For your security, it won't be shown again. ",-1),te={key:0,class:"mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500"},oe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},ne={class:"flex items-center"},le={class:"ml-2 text-sm text-gray-600"},Ae={__name:"ApiTokenManager",props:{tokens:Array,availablePermissions:Array,defaultPermissions:Array},setup(c){const m=h({name:"",permissions:c.defaultPermissions}),d=h({permissions:[]}),y=h({}),g=b(!1),p=b(null),f=b(null),I=()=>{m.post(route("api-tokens.store"),{preserveScroll:!0,onSuccess:()=>{g.value=!0,m.reset()}})},F=u=>{d.permissions=u.abilities,p.value=u},V=()=>{d.put(route("api-tokens.update",p.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>p.value=null})},D=u=>{f.value=u},B=()=>{y.delete(route("api-tokens.destroy",f.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>f.value=null})};return(u,o)=>(i(),r("div",null,[t(L,{onSubmitted:I},{title:e(()=>[n(" Create API Token ")]),description:e(()=>[n(" API tokens allow third-party services to authenticate with our application on your behalf. ")]),form:e(()=>[a("div",Y,[t(S,{for:"name",value:"Name"}),t(M,{id:"name",modelValue:l(m).name,"onUpdate:modelValue":o[0]||(o[0]=s=>l(m).name=s),type:"text",class:"mt-1 block w-full",autofocus:""},null,8,["modelValue"]),t(z,{message:l(m).errors.name,class:"mt-2"},null,8,["message"])]),c.availablePermissions.length>0?(i(),r("div",q,[t(S,{for:"permissions",value:"Permissions"}),a("div",G,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",H,[t(w,{checked:l(m).permissions,"onUpdate:checked":o[1]||(o[1]=_=>l(m).permissions=_),value:s},null,8,["checked","value"]),a("span",K,k(s),1)])]))),128))])])):v("",!0)]),actions:e(()=>[t(N,{on:l(m).recentlySuccessful,class:"mr-3"},{default:e(()=>[n(" Created. ")]),_:1},8,["on"]),t(P,{class:A({"opacity-25":l(m).processing}),disabled:l(m).processing},{default:e(()=>[n(" Create ")]),_:1},8,["class","disabled"])]),_:1}),c.tokens.length>0?(i(),r("div",O,[t(E),a("div",Q,[t(j,null,{title:e(()=>[n(" Manage API Tokens ")]),description:e(()=>[n(" You may delete any of your existing tokens if they are no longer needed. ")]),content:e(()=>[a("div",R,[(i(!0),r($,null,x(c.tokens,s=>(i(),r("div",{key:s.id,class:"flex items-center justify-between"},[a("div",null,k(s.name),1),a("div",W,[s.last_used_ago?(i(),r("div",X," Last used "+k(s.last_used_ago),1)):v("",!0),c.availablePermissions.length>0?(i(),r("button",{key:1,class:"cursor-pointer ml-6 text-sm text-gray-400 underline",onClick:_=>F(s)}," Permissions ",8,Z)):v("",!0),a("button",{class:"cursor-pointer ml-6 text-sm text-red-500",onClick:_=>D(s)}," Delete ",8,ee)])]))),128))])]),_:1})])])):v("",!0),t(T,{show:g.value,onClose:o[3]||(o[3]=s=>g.value=!1)},{title:e(()=>[n(" API Token ")]),content:e(()=>[se,u.$page.props.jetstream.flash.token?(i(),r("div",te,k(u.$page.props.jetstream.flash.token),1)):v("",!0)]),footer:e(()=>[t(C,{onClick:o[2]||(o[2]=s=>g.value=!1)},{default:e(()=>[n(" Close ")]),_:1})]),_:1},8,["show"]),t(T,{show:p.value!=null,onClose:o[6]||(o[6]=s=>p.value=null)},{title:e(()=>[n(" API Token Permissions ")]),content:e(()=>[a("div",oe,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",ne,[t(w,{checked:l(d).permissions,"onUpdate:checked":o[4]||(o[4]=_=>l(d).permissions=_),value:s},null,8,["checked","value"]),a("span",le,k(s),1)])]))),128))])]),footer:e(()=>[t(C,{onClick:o[5]||(o[5]=s=>p.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(P,{class:A(["ml-3",{"opacity-25":l(d).processing}]),disabled:l(d).processing,onClick:V},{default:e(()=>[n(" Save ")]),_:1},8,["class","disabled"])]),_:1},8,["show"]),t(U,{show:f.value!=null,onClose:o[8]||(o[8]=s=>f.value=null)},{title:e(()=>[n(" Delete API Token ")]),content:e(()=>[n(" Are you sure you would like to delete this API token? ")]),footer:e(()=>[t(C,{onClick:o[7]||(o[7]=s=>f.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(J,{class:A(["ml-3",{"opacity-25":l(y).processing}]),disabled:l(y).processing,onClick:B},{default:e(()=>[n(" Delete ")]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{Ae as default}; +import{T as h,r as b,o as i,d as r,b as t,w as e,a,e as v,f as n,u as l,F as $,g as x,n as A,t as k}from"./app-e2d1b450.js";import{_ as N}from"./ActionMessage-42553d9b.js";import{_ as j}from"./ActionSection-fcab9773.js";import{_ as P}from"./Button-b8b1d9d7.js";import{_ as U}from"./ConfirmationModal-9d119b8c.js";import{_ as J}from"./DangerButton-e51495ef.js";import{_ as T}from"./DialogModal-c0e037bb.js";import{_ as L}from"./FormSection-7d319d92.js";import{_ as M}from"./Input-4b50d99e.js";import{_ as w}from"./Checkbox-eab30a35.js";import{_ as z}from"./InputError-e5a99e39.js";import{_ as S}from"./Label-b970aa46.js";import{_ as C}from"./SecondaryButton-a7433179.js";import{J as E}from"./SectionBorder-82bd90fd.js";import"./SectionTitle-2022f28f.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Modal-43ad84f5.js";const Y={class:"col-span-6 sm:col-span-4"},q={key:0,class:"col-span-6"},G={class:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-4"},H={class:"flex items-center"},K={class:"ml-2 text-sm text-gray-600"},O={key:0},Q={class:"mt-10 sm:mt-0"},R={class:"space-y-6"},W={class:"flex items-center"},X={key:0,class:"text-sm text-gray-400"},Z=["onClick"],ee=["onClick"],se=a("div",null," Please copy your new API token. For your security, it won't be shown again. ",-1),te={key:0,class:"mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500"},oe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},ne={class:"flex items-center"},le={class:"ml-2 text-sm text-gray-600"},Ae={__name:"ApiTokenManager",props:{tokens:Array,availablePermissions:Array,defaultPermissions:Array},setup(c){const m=h({name:"",permissions:c.defaultPermissions}),d=h({permissions:[]}),y=h({}),g=b(!1),p=b(null),f=b(null),I=()=>{m.post(route("api-tokens.store"),{preserveScroll:!0,onSuccess:()=>{g.value=!0,m.reset()}})},F=u=>{d.permissions=u.abilities,p.value=u},V=()=>{d.put(route("api-tokens.update",p.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>p.value=null})},D=u=>{f.value=u},B=()=>{y.delete(route("api-tokens.destroy",f.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>f.value=null})};return(u,o)=>(i(),r("div",null,[t(L,{onSubmitted:I},{title:e(()=>[n(" Create API Token ")]),description:e(()=>[n(" API tokens allow third-party services to authenticate with our application on your behalf. ")]),form:e(()=>[a("div",Y,[t(S,{for:"name",value:"Name"}),t(M,{id:"name",modelValue:l(m).name,"onUpdate:modelValue":o[0]||(o[0]=s=>l(m).name=s),type:"text",class:"mt-1 block w-full",autofocus:""},null,8,["modelValue"]),t(z,{message:l(m).errors.name,class:"mt-2"},null,8,["message"])]),c.availablePermissions.length>0?(i(),r("div",q,[t(S,{for:"permissions",value:"Permissions"}),a("div",G,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",H,[t(w,{checked:l(m).permissions,"onUpdate:checked":o[1]||(o[1]=_=>l(m).permissions=_),value:s},null,8,["checked","value"]),a("span",K,k(s),1)])]))),128))])])):v("",!0)]),actions:e(()=>[t(N,{on:l(m).recentlySuccessful,class:"mr-3"},{default:e(()=>[n(" Created. ")]),_:1},8,["on"]),t(P,{class:A({"opacity-25":l(m).processing}),disabled:l(m).processing},{default:e(()=>[n(" Create ")]),_:1},8,["class","disabled"])]),_:1}),c.tokens.length>0?(i(),r("div",O,[t(E),a("div",Q,[t(j,null,{title:e(()=>[n(" Manage API Tokens ")]),description:e(()=>[n(" You may delete any of your existing tokens if they are no longer needed. ")]),content:e(()=>[a("div",R,[(i(!0),r($,null,x(c.tokens,s=>(i(),r("div",{key:s.id,class:"flex items-center justify-between"},[a("div",null,k(s.name),1),a("div",W,[s.last_used_ago?(i(),r("div",X," Last used "+k(s.last_used_ago),1)):v("",!0),c.availablePermissions.length>0?(i(),r("button",{key:1,class:"cursor-pointer ml-6 text-sm text-gray-400 underline",onClick:_=>F(s)}," Permissions ",8,Z)):v("",!0),a("button",{class:"cursor-pointer ml-6 text-sm text-red-500",onClick:_=>D(s)}," Delete ",8,ee)])]))),128))])]),_:1})])])):v("",!0),t(T,{show:g.value,onClose:o[3]||(o[3]=s=>g.value=!1)},{title:e(()=>[n(" API Token ")]),content:e(()=>[se,u.$page.props.jetstream.flash.token?(i(),r("div",te,k(u.$page.props.jetstream.flash.token),1)):v("",!0)]),footer:e(()=>[t(C,{onClick:o[2]||(o[2]=s=>g.value=!1)},{default:e(()=>[n(" Close ")]),_:1})]),_:1},8,["show"]),t(T,{show:p.value!=null,onClose:o[6]||(o[6]=s=>p.value=null)},{title:e(()=>[n(" API Token Permissions ")]),content:e(()=>[a("div",oe,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",ne,[t(w,{checked:l(d).permissions,"onUpdate:checked":o[4]||(o[4]=_=>l(d).permissions=_),value:s},null,8,["checked","value"]),a("span",le,k(s),1)])]))),128))])]),footer:e(()=>[t(C,{onClick:o[5]||(o[5]=s=>p.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(P,{class:A(["ml-3",{"opacity-25":l(d).processing}]),disabled:l(d).processing,onClick:V},{default:e(()=>[n(" Save ")]),_:1},8,["class","disabled"])]),_:1},8,["show"]),t(U,{show:f.value!=null,onClose:o[8]||(o[8]=s=>f.value=null)},{title:e(()=>[n(" Delete API Token ")]),content:e(()=>[n(" Are you sure you would like to delete this API token? ")]),footer:e(()=>[t(C,{onClick:o[7]||(o[7]=s=>f.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(J,{class:A(["ml-3",{"opacity-25":l(y).processing}]),disabled:l(y).processing,onClick:B},{default:e(()=>[n(" Delete ")]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{Ae as default}; diff --git a/public/build/default/assets/AppLayout-f0beb308.js b/public/build/default/assets/AppLayout-5fa2c638.js similarity index 98% rename from public/build/default/assets/AppLayout-f0beb308.js rename to public/build/default/assets/AppLayout-5fa2c638.js index 24a0997e4..c5ecc7910 100644 --- a/public/build/default/assets/AppLayout-f0beb308.js +++ b/public/build/default/assets/AppLayout-5fa2c638.js @@ -1,6 +1,6 @@ -import{r as jr,x as je,S as Be,E as uu,o as g,d as w,n as te,a as f,e as W,t as k,i as Xa,l as B,R as Ce,c as X,w as F,U as it,q as Ba,j as De,v as du,b as _,F as ue,g as we,m as pt,A as _o,B as lu,J as Dn,u as D,V as mu,f as V,T as cu,_ as hu}from"./app-37a137ca.js";import{_ as Se}from"./_plugin-vue_export-helper-c27b6911.js";import{I as q}from"./Icon-3624adfa.js";import{u as fu}from"./useAuthorizable-18e26e04.js";const vu={class:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},gu={class:"flex items-center justify-between flex-wrap"},pu={class:"w-0 flex-1 flex items-center min-w-0"},bu={key:0,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},yu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),wu=[yu],$u={key:1,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Pu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1),ku=[Pu],Mu={class:"ml-3 font-medium text-sm text-white truncate"},Wu={class:"shrink-0 sm:ml-3"},xu=f("svg",{class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),_u=[xu],Du={__name:"Banner",setup(a){const e=jr(!0),t=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.bannerStyle)||"success"}),r=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.banner)||""});return uu(r,async()=>{e.value=!0}),(n,i)=>(g(),w("div",null,[e.value&&r.value?(g(),w("div",{key:0,class:te({"bg-indigo-500":t.value=="success","bg-red-700":t.value=="danger"})},[f("div",vu,[f("div",gu,[f("div",pu,[f("span",{class:te(["flex p-2 rounded-lg",{"bg-indigo-600":t.value=="success","bg-red-600":t.value=="danger"}])},[t.value=="success"?(g(),w("svg",bu,wu)):W("",!0),t.value=="danger"?(g(),w("svg",$u,ku)):W("",!0)],2),f("p",Mu,k(r.value),1)]),f("div",Wu,[f("button",{type:"button",class:te(["-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition",{"hover:bg-indigo-600 focus:bg-indigo-600":t.value=="success","hover:bg-red-600 focus:bg-red-600":t.value=="danger"}]),"aria-label":"Dismiss",onClick:i[0]||(i[0]=Xa(u=>e.value=!1,["prevent"]))},_u,2)])])])],2)):W("",!0)]))}},Cu={props:{toast:Object,popstate:String},data(){return{milliseconds:this.toast&&this.toast.milliseconds?this.toast.milliseconds:3e3,id:null}},watch:{toast:{deep:!0,handler(a,e){this.fireToast()}}},mounted(){this.fireToast()},methods:{fireToast(){if(!this.toast||sessionStorage.getItem("toast-"+this.popstate))return;this.milliseconds=this.toast.milliseconds??3e3;const a=this.toast.type==="danger"?"error":this.toast.type;Toast.fire({icon:a,title:this.toast.title,text:this.toast.body,timer:this.milliseconds}),sessionStorage.setItem("toast-"+this.popstate,"1")}}};function Tu(a,e,t,r,n,i){return null}const ju=Se(Cu,[["render",Tu]]),Au=["href"],Do={__name:"ResponsiveNavLink",props:{active:Boolean,href:String,as:String,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"block pl-3 pr-4 py-2 border-l-4 border-light-blue-400 text-base font-medium text-light-blue-700 bg-light-blue-50 dark:bg-cool-gray-900 focus:outline-none focus:text-light-blue-800 focus:bg-light-blue-100 dark:focus:bg-cool-gray-900 focus:border-light-blue-700 transition duration-150 ease-in-out":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-cool-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-800 dark:focus:text-gray-200 focus:bg-gray-50 dark:focus:bg-cool-gray-900 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=B("InertiaLink");return g(),w("div",null,[a.as=="button"?(g(),w("button",{key:0,class:te([t.value,"w-full text-left"])},[Ce(r.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(g(),X(i,{key:1,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"])):(g(),w("a",{key:2,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,Au))])}}};var Su=/\s/;function zu(a){for(var e=a.length;e--&&Su.test(a.charAt(e)););return e}var Eu=zu,Nu=Eu,Fu=/^\s+/;function Ru(a){return a&&a.slice(0,Nu(a)+1).replace(Fu,"")}var Lu=Ru;function Hu(a){var e=typeof a;return a!=null&&(e=="object"||e=="function")}var Ze=Hu,Ou=typeof it=="object"&&it&&it.Object===Object&&it,Co=Ou,Vu=Co,Iu=typeof self=="object"&&self&&self.Object===Object&&self,Xu=Vu||Iu||Function("return this")(),xe=Xu,Bu=xe,Gu=Bu.Symbol,Ga=Gu,Cn=Ga,To=Object.prototype,qu=To.hasOwnProperty,Yu=To.toString,za=Cn?Cn.toStringTag:void 0;function Uu(a){var e=qu.call(a,za),t=a[za];try{a[za]=void 0;var r=!0}catch{}var n=Yu.call(a);return r&&(e?a[za]=t:delete a[za]),n}var Qu=Uu,Ku=Object.prototype,Ju=Ku.toString;function Zu(a){return Ju.call(a)}var ed=Zu,Tn=Ga,ad=Qu,td=ed,rd="[object Null]",nd="[object Undefined]",jn=Tn?Tn.toStringTag:void 0;function id(a){return a==null?a===void 0?nd:rd:jn&&jn in Object(a)?ad(a):td(a)}var qa=id;function od(a){return a!=null&&typeof a=="object"}var Pa=od,sd=qa,ud=Pa,dd="[object Symbol]";function ld(a){return typeof a=="symbol"||ud(a)&&sd(a)==dd}var Dt=ld,md=Lu,An=Ze,cd=Dt,Sn=0/0,hd=/^[-+]0x[0-9a-f]+$/i,fd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,gd=parseInt;function pd(a){if(typeof a=="number")return a;if(cd(a))return Sn;if(An(a)){var e=typeof a.valueOf=="function"?a.valueOf():a;a=An(e)?e+"":e}if(typeof a!="string")return a===0?a:+a;a=md(a);var t=fd.test(a);return t||vd.test(a)?gd(a.slice(2),t?2:8):hd.test(a)?Sn:+a}var Ar=pd,bd=Ar,zn=1/0,yd=17976931348623157e292;function wd(a){if(!a)return a===0?a:0;if(a=bd(a),a===zn||a===-zn){var e=a<0?-1:1;return e*yd}return a===a?a:0}var $d=wd,Pd=$d;function kd(a){var e=Pd(a),t=e%1;return e===e?t?e-t:e:0}var Ya=kd,Md=Ya,Wd="Expected a function";function xd(a,e){if(typeof e!="function")throw new TypeError(Wd);return a=Md(a),function(){if(--a<1)return e.apply(this,arguments)}}var _d=xd;function Dd(a){return a}var Ua=Dd,Cd=qa,Td=Ze,jd="[object AsyncFunction]",Ad="[object Function]",Sd="[object GeneratorFunction]",zd="[object Proxy]";function Ed(a){if(!Td(a))return!1;var e=Cd(a);return e==Ad||e==Sd||e==jd||e==zd}var jo=Ed,Nd=xe,Fd=Nd["__core-js_shared__"],Rd=Fd,Ut=Rd,En=function(){var a=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function Ld(a){return!!En&&En in a}var Hd=Ld,Od=Function.prototype,Vd=Od.toString;function Id(a){if(a!=null){try{return Vd.call(a)}catch{}try{return a+""}catch{}}return""}var Ao=Id,Xd=jo,Bd=Hd,Gd=Ze,qd=Ao,Yd=/[\\^$.*+?()[\]{}|]/g,Ud=/^\[object .+?Constructor\]$/,Qd=Function.prototype,Kd=Object.prototype,Jd=Qd.toString,Zd=Kd.hasOwnProperty,el=RegExp("^"+Jd.call(Zd).replace(Yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function al(a){if(!Gd(a)||Bd(a))return!1;var e=Xd(a)?el:Ud;return e.test(qd(a))}var tl=al;function rl(a,e){return a==null?void 0:a[e]}var nl=rl,il=tl,ol=nl;function sl(a,e){var t=ol(a,e);return il(t)?t:void 0}var ma=sl,ul=ma,dl=xe,ll=ul(dl,"WeakMap"),So=ll,Nn=So,ml=Nn&&new Nn,zo=ml,cl=Ua,Fn=zo,hl=Fn?function(a,e){return Fn.set(a,e),a}:cl,Eo=hl,fl=Ze,Rn=Object.create,vl=function(){function a(){}return function(e){if(!fl(e))return{};if(Rn)return Rn(e);a.prototype=e;var t=new a;return a.prototype=void 0,t}}(),Sr=vl,gl=Sr,pl=Ze;function bl(a){return function(){var e=arguments;switch(e.length){case 0:return new a;case 1:return new a(e[0]);case 2:return new a(e[0],e[1]);case 3:return new a(e[0],e[1],e[2]);case 4:return new a(e[0],e[1],e[2],e[3]);case 5:return new a(e[0],e[1],e[2],e[3],e[4]);case 6:return new a(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new a(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=gl(a.prototype),r=a.apply(t,e);return pl(r)?r:t}}var Ct=bl,yl=Ct,wl=xe,$l=1;function Pl(a,e,t){var r=e&$l,n=yl(a);function i(){var u=this&&this!==wl&&this instanceof i?n:a;return u.apply(r?t:this,arguments)}return i}var kl=Pl;function Ml(a,e,t){switch(t.length){case 0:return a.call(e);case 1:return a.call(e,t[0]);case 2:return a.call(e,t[0],t[1]);case 3:return a.call(e,t[0],t[1],t[2])}return a.apply(e,t)}var Qa=Ml,Wl=Math.max;function xl(a,e,t,r){for(var n=-1,i=a.length,u=t.length,l=-1,m=e.length,h=Wl(i-u,0),c=Array(m+h),b=!r;++l0){if(++e>=fm)return arguments[0]}else e=0;return a.apply(void 0,arguments)}}var Oo=pm,bm=Eo,ym=Oo,wm=ym(bm),Vo=wm,$m=/\{\n\/\* \[wrapped with (.+)\] \*/,Pm=/,? & /;function km(a){var e=a.match($m);return e?e[1].split(Pm):[]}var Mm=km,Wm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function xm(a,e){var t=e.length;if(!t)return a;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),a.replace(Wm,`{ +import{r as jr,i as je,V as Be,H as uu,o as g,d as w,n as te,a as f,e as W,t as k,l as Xa,s as B,U as Ce,c as X,w as F,W as it,z as Ba,m as De,v as du,b as D,F as ue,g as we,x as pt,j as _o,D as lu,L as Dn,u as _,X as mu,f as V,T as cu,_ as hu}from"./app-e2d1b450.js";import{_ as Se}from"./_plugin-vue_export-helper-c27b6911.js";import{I as q}from"./Icon-14807a0c.js";import{u as fu}from"./useAuthorizable-6471aaac.js";const vu={class:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},gu={class:"flex items-center justify-between flex-wrap"},pu={class:"w-0 flex-1 flex items-center min-w-0"},bu={key:0,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},yu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),wu=[yu],$u={key:1,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Pu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1),ku=[Pu],Mu={class:"ml-3 font-medium text-sm text-white truncate"},Wu={class:"shrink-0 sm:ml-3"},xu=f("svg",{class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),_u=[xu],Du={__name:"Banner",setup(a){const e=jr(!0),t=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.bannerStyle)||"success"}),r=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.banner)||""});return uu(r,async()=>{e.value=!0}),(n,i)=>(g(),w("div",null,[e.value&&r.value?(g(),w("div",{key:0,class:te({"bg-indigo-500":t.value=="success","bg-red-700":t.value=="danger"})},[f("div",vu,[f("div",gu,[f("div",pu,[f("span",{class:te(["flex p-2 rounded-lg",{"bg-indigo-600":t.value=="success","bg-red-600":t.value=="danger"}])},[t.value=="success"?(g(),w("svg",bu,wu)):W("",!0),t.value=="danger"?(g(),w("svg",$u,ku)):W("",!0)],2),f("p",Mu,k(r.value),1)]),f("div",Wu,[f("button",{type:"button",class:te(["-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition",{"hover:bg-indigo-600 focus:bg-indigo-600":t.value=="success","hover:bg-red-600 focus:bg-red-600":t.value=="danger"}]),"aria-label":"Dismiss",onClick:i[0]||(i[0]=Xa(u=>e.value=!1,["prevent"]))},_u,2)])])])],2)):W("",!0)]))}},Cu={props:{toast:Object,popstate:String},data(){return{milliseconds:this.toast&&this.toast.milliseconds?this.toast.milliseconds:3e3,id:null}},watch:{toast:{deep:!0,handler(a,e){this.fireToast()}}},mounted(){this.fireToast()},methods:{fireToast(){if(!this.toast||sessionStorage.getItem("toast-"+this.popstate))return;this.milliseconds=this.toast.milliseconds??3e3;const a=this.toast.type==="danger"?"error":this.toast.type;Toast.fire({icon:a,title:this.toast.title,text:this.toast.body,timer:this.milliseconds}),sessionStorage.setItem("toast-"+this.popstate,"1")}}};function Tu(a,e,t,r,n,i){return null}const ju=Se(Cu,[["render",Tu]]),Au=["href"],Do={__name:"ResponsiveNavLink",props:{active:Boolean,href:String,as:String,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"block pl-3 pr-4 py-2 border-l-4 border-light-blue-400 text-base font-medium text-light-blue-700 bg-light-blue-50 dark:bg-cool-gray-900 focus:outline-none focus:text-light-blue-800 focus:bg-light-blue-100 dark:focus:bg-cool-gray-900 focus:border-light-blue-700 transition duration-150 ease-in-out":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-cool-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-800 dark:focus:text-gray-200 focus:bg-gray-50 dark:focus:bg-cool-gray-900 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=B("InertiaLink");return g(),w("div",null,[a.as=="button"?(g(),w("button",{key:0,class:te([t.value,"w-full text-left"])},[Ce(r.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(g(),X(i,{key:1,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"])):(g(),w("a",{key:2,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,Au))])}}};var Su=/\s/;function zu(a){for(var e=a.length;e--&&Su.test(a.charAt(e)););return e}var Eu=zu,Nu=Eu,Fu=/^\s+/;function Ru(a){return a&&a.slice(0,Nu(a)+1).replace(Fu,"")}var Lu=Ru;function Hu(a){var e=typeof a;return a!=null&&(e=="object"||e=="function")}var Ze=Hu,Ou=typeof it=="object"&&it&&it.Object===Object&&it,Co=Ou,Vu=Co,Iu=typeof self=="object"&&self&&self.Object===Object&&self,Xu=Vu||Iu||Function("return this")(),xe=Xu,Bu=xe,Gu=Bu.Symbol,Ga=Gu,Cn=Ga,To=Object.prototype,qu=To.hasOwnProperty,Yu=To.toString,za=Cn?Cn.toStringTag:void 0;function Uu(a){var e=qu.call(a,za),t=a[za];try{a[za]=void 0;var r=!0}catch{}var n=Yu.call(a);return r&&(e?a[za]=t:delete a[za]),n}var Qu=Uu,Ku=Object.prototype,Ju=Ku.toString;function Zu(a){return Ju.call(a)}var ed=Zu,Tn=Ga,ad=Qu,td=ed,rd="[object Null]",nd="[object Undefined]",jn=Tn?Tn.toStringTag:void 0;function id(a){return a==null?a===void 0?nd:rd:jn&&jn in Object(a)?ad(a):td(a)}var qa=id;function od(a){return a!=null&&typeof a=="object"}var Pa=od,sd=qa,ud=Pa,dd="[object Symbol]";function ld(a){return typeof a=="symbol"||ud(a)&&sd(a)==dd}var Dt=ld,md=Lu,An=Ze,cd=Dt,Sn=0/0,hd=/^[-+]0x[0-9a-f]+$/i,fd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,gd=parseInt;function pd(a){if(typeof a=="number")return a;if(cd(a))return Sn;if(An(a)){var e=typeof a.valueOf=="function"?a.valueOf():a;a=An(e)?e+"":e}if(typeof a!="string")return a===0?a:+a;a=md(a);var t=fd.test(a);return t||vd.test(a)?gd(a.slice(2),t?2:8):hd.test(a)?Sn:+a}var Ar=pd,bd=Ar,zn=1/0,yd=17976931348623157e292;function wd(a){if(!a)return a===0?a:0;if(a=bd(a),a===zn||a===-zn){var e=a<0?-1:1;return e*yd}return a===a?a:0}var $d=wd,Pd=$d;function kd(a){var e=Pd(a),t=e%1;return e===e?t?e-t:e:0}var Ya=kd,Md=Ya,Wd="Expected a function";function xd(a,e){if(typeof e!="function")throw new TypeError(Wd);return a=Md(a),function(){if(--a<1)return e.apply(this,arguments)}}var _d=xd;function Dd(a){return a}var Ua=Dd,Cd=qa,Td=Ze,jd="[object AsyncFunction]",Ad="[object Function]",Sd="[object GeneratorFunction]",zd="[object Proxy]";function Ed(a){if(!Td(a))return!1;var e=Cd(a);return e==Ad||e==Sd||e==jd||e==zd}var jo=Ed,Nd=xe,Fd=Nd["__core-js_shared__"],Rd=Fd,Ut=Rd,En=function(){var a=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function Ld(a){return!!En&&En in a}var Hd=Ld,Od=Function.prototype,Vd=Od.toString;function Id(a){if(a!=null){try{return Vd.call(a)}catch{}try{return a+""}catch{}}return""}var Ao=Id,Xd=jo,Bd=Hd,Gd=Ze,qd=Ao,Yd=/[\\^$.*+?()[\]{}|]/g,Ud=/^\[object .+?Constructor\]$/,Qd=Function.prototype,Kd=Object.prototype,Jd=Qd.toString,Zd=Kd.hasOwnProperty,el=RegExp("^"+Jd.call(Zd).replace(Yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function al(a){if(!Gd(a)||Bd(a))return!1;var e=Xd(a)?el:Ud;return e.test(qd(a))}var tl=al;function rl(a,e){return a==null?void 0:a[e]}var nl=rl,il=tl,ol=nl;function sl(a,e){var t=ol(a,e);return il(t)?t:void 0}var ma=sl,ul=ma,dl=xe,ll=ul(dl,"WeakMap"),So=ll,Nn=So,ml=Nn&&new Nn,zo=ml,cl=Ua,Fn=zo,hl=Fn?function(a,e){return Fn.set(a,e),a}:cl,Eo=hl,fl=Ze,Rn=Object.create,vl=function(){function a(){}return function(e){if(!fl(e))return{};if(Rn)return Rn(e);a.prototype=e;var t=new a;return a.prototype=void 0,t}}(),Sr=vl,gl=Sr,pl=Ze;function bl(a){return function(){var e=arguments;switch(e.length){case 0:return new a;case 1:return new a(e[0]);case 2:return new a(e[0],e[1]);case 3:return new a(e[0],e[1],e[2]);case 4:return new a(e[0],e[1],e[2],e[3]);case 5:return new a(e[0],e[1],e[2],e[3],e[4]);case 6:return new a(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new a(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=gl(a.prototype),r=a.apply(t,e);return pl(r)?r:t}}var Ct=bl,yl=Ct,wl=xe,$l=1;function Pl(a,e,t){var r=e&$l,n=yl(a);function i(){var u=this&&this!==wl&&this instanceof i?n:a;return u.apply(r?t:this,arguments)}return i}var kl=Pl;function Ml(a,e,t){switch(t.length){case 0:return a.call(e);case 1:return a.call(e,t[0]);case 2:return a.call(e,t[0],t[1]);case 3:return a.call(e,t[0],t[1],t[2])}return a.apply(e,t)}var Qa=Ml,Wl=Math.max;function xl(a,e,t,r){for(var n=-1,i=a.length,u=t.length,l=-1,m=e.length,h=Wl(i-u,0),c=Array(m+h),b=!r;++l0){if(++e>=fm)return arguments[0]}else e=0;return a.apply(void 0,arguments)}}var Oo=pm,bm=Eo,ym=Oo,wm=ym(bm),Vo=wm,$m=/\{\n\/\* \[wrapped with (.+)\] \*/,Pm=/,? & /;function km(a){var e=a.match($m);return e?e[1].split(Pm):[]}var Mm=km,Wm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function xm(a,e){var t=e.length;if(!t)return a;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),a.replace(Wm,`{ /* [wrapped with `+e+`] */ -`)}var _m=xm;function Dm(a){return function(){return a}}var Cm=Dm,Tm=ma,jm=function(){try{var a=Tm(Object,"defineProperty");return a({},"",{}),a}catch{}}(),Am=jm,Sm=Cm,Vn=Am,zm=Ua,Em=Vn?function(a,e){return Vn(a,"toString",{configurable:!0,enumerable:!1,value:Sm(e),writable:!0})}:zm,Nm=Em,Fm=Nm,Rm=Oo,Lm=Rm(Fm),Nr=Lm;function Hm(a,e){for(var t=-1,r=a==null?0:a.length;++t-1}var ac=ec,tc=Om,rc=ac,nc=1,ic=2,oc=8,sc=16,uc=32,dc=64,lc=128,mc=256,cc=512,hc=[["ary",lc],["bind",nc],["bindKey",ic],["curry",oc],["curryRight",sc],["flip",cc],["partial",uc],["partialRight",dc],["rearg",mc]];function fc(a,e){return tc(hc,function(t){var r="_."+t[0];e&t[1]&&!rc(a,r)&&a.push(r)}),a.sort()}var vc=fc,gc=Mm,pc=_m,bc=Nr,yc=vc;function wc(a,e,t){var r=e+"";return bc(a,pc(r,yc(gc(r),t)))}var Io=wc,$c=hm,Pc=Vo,kc=Io,Mc=1,Wc=2,xc=4,_c=8,In=32,Xn=64;function Dc(a,e,t,r,n,i,u,l,m,h){var c=e&_c,b=c?u:void 0,p=c?void 0:u,y=c?i:void 0,M=c?void 0:i;e|=c?In:Xn,e&=~(c?Xn:In),e&xc||(e&=~(Mc|Wc));var R=[a,e,n,y,b,M,p,l,m,h],H=t.apply(void 0,R);return $c(a)&&Pc(H,R),H.placeholder=r,kc(H,a,e)}var Xo=Dc;function Cc(a){var e=a;return e.placeholder}var ka=Cc,Tc=9007199254740991,jc=/^(?:0|[1-9]\d*)$/;function Ac(a,e){var t=typeof a;return e=e??Tc,!!e&&(t=="number"||t!="symbol"&&jc.test(a))&&a>-1&&a%1==0&&a1&&T.reverse(),c&&m0&&(t=e.apply(this,arguments)),a<=1&&(e=void 0),t}}var Yo=Rh,Lh=Qa,ai=Math.max;function Hh(a,e,t){return e=ai(e===void 0?a.length-1:e,0),function(){for(var r=arguments,n=-1,i=ai(r.length-e,0),u=Array(i);++n=e||O<0||b&&G>=i}function E(){var j=er();if(H(j))return T(j);l=setTimeout(E,R(j))}function T(j){return l=void 0,p&&r?y(j):(r=n=void 0,u)}function S(){l!==void 0&&clearTimeout(l),h=0,r=m=n=l=void 0}function N(){return l===void 0?u:T(er())}function L(){var j=er(),O=H(j);if(r=arguments,n=this,m=j,O){if(l===void 0)return M(m);if(b)return clearTimeout(l),l=setTimeout(E,e),y(m)}return l===void 0&&(l=setTimeout(E,e)),u}return L.cancel=S,L.flush=N,L}var Qo=wf,$f="Expected a function";function Pf(a,e,t){if(typeof a!="function")throw new TypeError($f);return setTimeout(function(){a.apply(void 0,t)},e)}var Ko=Pf,kf=Ko,Mf=Le,Wf=Mf(function(a,e){return kf(a,1,e)}),xf=Wf,_f=Ko,Df=Le,Cf=Ar,Tf=Df(function(a,e,t){return _f(a,Cf(e)||0,t)}),jf=Tf,Af=Ge,Sf=512;function zf(a){return Af(a,Sf)}var Ef=zf,Nf=ma,Ff=Nf(Object,"create"),Tt=Ff,ri=Tt;function Rf(){this.__data__=ri?ri(null):{},this.size=0}var Lf=Rf;function Hf(a){var e=this.has(a)&&delete this.__data__[a];return this.size-=e?1:0,e}var Of=Hf,Vf=Tt,If="__lodash_hash_undefined__",Xf=Object.prototype,Bf=Xf.hasOwnProperty;function Gf(a){var e=this.__data__;if(Vf){var t=e[a];return t===If?void 0:t}return Bf.call(e,a)?e[a]:void 0}var qf=Gf,Yf=Tt,Uf=Object.prototype,Qf=Uf.hasOwnProperty;function Kf(a){var e=this.__data__;return Yf?e[a]!==void 0:Qf.call(e,a)}var Jf=Kf,Zf=Tt,ev="__lodash_hash_undefined__";function av(a,e){var t=this.__data__;return this.size+=this.has(a)?0:1,t[a]=Zf&&e===void 0?ev:e,this}var tv=av,rv=Lf,nv=Of,iv=qf,ov=Jf,sv=tv;function Ma(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e-1}var Mv=kv,Wv=jt;function xv(a,e){var t=this.__data__,r=Wv(t,a);return r<0?(++this.size,t.push([a,e])):t[r][1]=e,this}var _v=xv,Dv=lv,Cv=bv,Tv=$v,jv=Mv,Av=_v;function Wa(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e0&&t(l)?e>1?rs(l,e-1,t,r,n):Cg(n,l):r||(n[n.length]=l)}return n}var ns=rs,jg=At;function Ag(){this.__data__=new jg,this.size=0}var Sg=Ag;function zg(a){var e=this.__data__,t=e.delete(a);return this.size=e.size,t}var Eg=zg;function Ng(a){return this.__data__.get(a)}var Fg=Ng;function Rg(a){return this.__data__.has(a)}var Lg=Rg,Hg=At,Og=Vr,Vg=Ir,Ig=200;function Xg(a,e){var t=this.__data__;if(t instanceof Hg){var r=t.__data__;if(!Og||r.lengthl))return!1;var h=i.get(a),c=i.get(e);if(h&&c)return h==e&&c==a;var b=-1,p=!0,y=t&vp?new mp:void 0;for(i.set(a,e),i.set(e,a);++b-1&&a%1==0&&a<=sb}var qr=ub,db=qa,lb=qr,mb=Pa,cb="[object Arguments]",hb="[object Array]",fb="[object Boolean]",vb="[object Date]",gb="[object Error]",pb="[object Function]",bb="[object Map]",yb="[object Number]",wb="[object Object]",$b="[object RegExp]",Pb="[object Set]",kb="[object String]",Mb="[object WeakMap]",Wb="[object ArrayBuffer]",xb="[object DataView]",_b="[object Float32Array]",Db="[object Float64Array]",Cb="[object Int8Array]",Tb="[object Int16Array]",jb="[object Int32Array]",Ab="[object Uint8Array]",Sb="[object Uint8ClampedArray]",zb="[object Uint16Array]",Eb="[object Uint32Array]",K={};K[_b]=K[Db]=K[Cb]=K[Tb]=K[jb]=K[Ab]=K[Sb]=K[zb]=K[Eb]=!0;K[cb]=K[hb]=K[Wb]=K[fb]=K[xb]=K[vb]=K[gb]=K[pb]=K[bb]=K[yb]=K[wb]=K[$b]=K[Pb]=K[kb]=K[Mb]=!1;function Nb(a){return mb(a)&&lb(a.length)&&!!K[db(a)]}var Fb=Nb;function Rb(a){return function(e){return a(e)}}var us=Rb,kt={exports:{}};kt.exports;(function(a,e){var t=Co,r=e&&!e.nodeType&&e,n=r&&!0&&a&&!a.nodeType&&a,i=n&&n.exports===r,u=i&&t.process,l=function(){try{var m=n&&n.require&&n.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();a.exports=l})(kt,kt.exports);var Lb=kt.exports,Hb=Fb,Ob=us,ci=Lb,hi=ci&&ci.isTypedArray,Vb=hi?Ob(hi):Hb,ds=Vb,Ib=nb,Xb=Gr,Bb=ze,Gb=ss,qb=Fr,Yb=ds,Ub=Object.prototype,Qb=Ub.hasOwnProperty;function Kb(a,e){var t=Bb(a),r=!t&&Xb(a),n=!t&&!r&&Gb(a),i=!t&&!r&&!n&&Yb(a),u=t||r||n||i,l=u?Ib(a.length,String):[],m=l.length;for(var h in a)(e||Qb.call(a,h))&&!(u&&(h=="length"||n&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||qb(h,m)))&&l.push(h);return l}var Jb=Kb,Zb=Object.prototype;function ey(a){var e=a&&a.constructor,t=typeof e=="function"&&e.prototype||Zb;return a===t}var ay=ey;function ty(a,e){return function(t){return a(e(t))}}var ry=ty,ny=ry,iy=ny(Object.keys,Object),oy=iy,sy=ay,uy=oy,dy=Object.prototype,ly=dy.hasOwnProperty;function my(a){if(!sy(a))return uy(a);var e=[];for(var t in Object(a))ly.call(a,t)&&t!="constructor"&&e.push(t);return e}var cy=my,hy=jo,fy=qr;function vy(a){return a!=null&&fy(a.length)&&!hy(a)}var gy=vy,py=Jb,by=cy,yy=gy;function wy(a){return yy(a)?py(a):by(a)}var ls=wy,$y=Gp,Py=tb,ky=ls;function My(a){return $y(a,ky,Py)}var Wy=My,fi=Wy,xy=1,_y=Object.prototype,Dy=_y.hasOwnProperty;function Cy(a,e,t,r,n,i){var u=t&xy,l=fi(a),m=l.length,h=fi(e),c=h.length;if(m!=c&&!u)return!1;for(var b=m;b--;){var p=l[b];if(!(u?p in e:Dy.call(e,p)))return!1}var y=i.get(a),M=i.get(e);if(y&&M)return y==e&&M==a;var R=!0;i.set(a,e),i.set(e,a);for(var H=u;++bn?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(n);++r=r?a:N$(a,e,t)}var R$=F$,L$=Qa,H$=Br,O$=Le,V$=R$,I$=Ya,X$="Expected a function",B$=Math.max;function G$(a,e){if(typeof a!="function")throw new TypeError(X$);return e=e==null?0:B$(I$(e),0),O$(function(t){var r=t[e],n=V$(t,0,e);return r&&H$(n,r),L$(a,this,n)})}var q$=G$,Y$=Qo,U$=Ze,Q$="Expected a function";function K$(a,e,t){var r=!0,n=!0;if(typeof a!="function")throw new TypeError(Q$);return U$(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),Y$(a,e,{leading:r,maxWait:e,trailing:n})}var J$=K$,Z$=qo;function eP(a){return Z$(a,1)}var aP=eP,tP=Ua;function rP(a){return typeof a=="function"?a:tP}var nP=rP,iP=nP,oP=ys;function sP(a,e){return oP(iP(e),a)}var uP=sP,dP={after:_d,ary:qo,before:Yo,bind:Kh,bindKey:of,curry:df,curryRight:cf,debounce:Qo,defer:xf,delay:jf,flip:Ef,memoize:es,negate:lg,once:hg,overArgs:n$,partial:ys,partialRight:v$,rearg:D$,rest:S$,spread:q$,throttle:J$,unary:aP,wrap:uP};function lP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})])}function mP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function cP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z"})])}function hP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})])}const fP={name:"Search",components:{Icon:q,MagnifyingGlassIcon:mP},data(){return{showResults:!1,loading:!1,searchString:"",usersList:[],playersList:[]}},created:function(){window.addEventListener("click",a=>{this.$el.contains(a.target)||(this.showResults=!1,this.searchString="")})},methods:{performSearch:dP.debounce(function(){this.searchString&&(this.showResults=!0,this.loading=!0,axios.get(route("search",{q:this.searchString})).then(a=>{this.usersList=a.data.users,this.playersList=a.data.players}).finally(()=>{this.loading=!1}))},200)}},vP={class:"relative mx-auto text-gray-600 dark:text-gray-400"},gP=["placeholder"],pP={type:"submit",class:"absolute right-0 top-0 mt-3 mr-4"},bP={key:0,id:"results",class:"absolute bg-white dark:bg-cool-gray-800 px-3 py-1 w-full rounded-md shadow-lg z-50"},yP={key:0,id:"loading",class:"text-center p-2"},wP={key:1,id:"users"},$P={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},PP={class:"flex flex-col"},kP={class:"flex"},MP=["src"],WP={class:"text-sm"},xP={class:"text-gray-700 dark:text-gray-300 font-bold"},_P={class:"text-gray-500 dark:text-gray-500"},DP={class:"flex"},CP=["title","src"],TP={key:0,id:"emptyusers",class:"italic"},jP={key:2,id:"players",class:"mt-5 pb-4"},AP={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},SP={class:"flex flex-col"},zP={class:"flex items-center"},EP=["src"],NP={class:"text-sm"},FP={class:"text-gray-700 dark:text-gray-300 font-bold"},RP={class:"flex space-x-2"},LP=["src","alt","title"],HP=["title","src"],OP={key:0,id:"emptyplayers",class:"italic"};function VP(a,e,t,r,n,i){const u=B("MagnifyingGlassIcon"),l=B("inertia-link"),m=B("icon"),h=Ba("tippy");return g(),w("div",vP,[f("form",{onSubmit:e[2]||(e[2]=Xa((...c)=>i.performSearch&&i.performSearch(...c),["prevent"]))},[De(f("input",{"onUpdate:modelValue":e[0]||(e[0]=c=>n.searchString=c),"aria-label":"search",class:te(["border-none bg-gray-200 dark:bg-cool-gray-900 h-10 px-5 pr-10 focus:w-80 rounded-full text-sm focus:outline-none focus:ring-0",{"w-80":n.showResults}]),type:"search",name:"search",placeholder:a.__("Search")+"..",autocomplete:"off",onInput:e[1]||(e[1]=(...c)=>i.performSearch&&i.performSearch(...c))},null,42,gP),[[du,n.searchString]]),f("button",pP,[_(u,{class:"text-gray-400 dark:text-gray-600 h-4 w-4 stroke-2"})])],32),n.showResults&&n.searchString?(g(),w("div",bP,[n.loading?(g(),w("div",yP,k(a.__("Loading"))+"... ",1)):W("",!0),n.loading?W("",!0):(g(),w("div",wP,[f("span",$P,k(a.__("USERS")),1),f("div",PP,[(g(!0),w(ue,null,we(n.usersList,c=>(g(),X(l,{id:"user",key:c.username,as:"a",href:a.route("user.public.get",c.username),class:"flex px-2 py-1 justify-between hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",kP,[f("img",{class:"mr-3 w-10 h-10 rounded-full",src:c.profile_photo_url,alt:"Image"},null,8,MP),f("div",WP,[f("p",xP,k(c.title),1),f("p",_P," @"+k(c.username),1)])]),f("div",DP,[De(f("img",{title:c.country.name,src:c.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,CP),[[h]])])]),_:2},1032,["href"]))),128))]),!n.usersList||n.usersList.length<=0?(g(),w("div",TP,k(a.__("No users found.")),1)):W("",!0)])),n.loading?W("",!0):(g(),w("div",jP,[f("span",AP,k(a.__("PLAYERS")),1),f("div",SP,[(g(!0),w(ue,null,we(n.playersList,c=>(g(),X(l,{id:"player",key:c.uuid,as:"a",href:a.route("player.show",c.uuid),class:"flex justify-between px-2 py-1 hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",zP,[f("img",{class:"mr-3 w-8 h-8",src:c.avatar_url,alt:"Avatar"},null,8,EP),f("div",NP,[f("p",FP,k(c.title),1)])]),f("div",RP,[De(_(m,{class:"w-8 h-8 focus:outline-none",name:`rating-${c.rating}`,content:c.rating},null,8,["name","content"]),[[pt,c.rating!=null],[h]]),De(f("img",{src:c.rank.photo_path,alt:c.rank.name,title:c.rank.name,class:"h-8 w-8 focus:outline-none"},null,8,LP),[[pt,c.rank.photo_path],[h]]),De(f("img",{title:c.country.name,src:c.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,HP),[[h]])])]),_:2},1032,["href"]))),128))]),!n.playersList||n.playersList.length<=0?(g(),w("div",OP,k(a.__("No players found.")),1)):W("",!0)]))])):W("",!0)])}const ws=Se(fP,[["render",VP]]),IP={name:"ColorThemeToggle",components:{MoonIcon:cP,SunIcon:hP},data(){return{colorMode:window.colorMode}},methods:{toggleTheme(){this.colorMode==="dark"?(this.colorMode="light",window.colorMode="light",localStorage.theme="light",document.documentElement.classList.add("light"),document.documentElement.classList.remove("dark")):(this.colorMode="dark",window.colorMode="dark",localStorage.theme="dark",document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light")),window.location.reload()}}},XP=["title"],BP=["title"];function GP(a,e,t,r,n,i){const u=B("MoonIcon"),l=B("SunIcon"),m=Ba("tippy");return g(),w("div",null,[f("button",{onClick:e[0]||(e[0]=(...h)=>i.toggleTheme&&i.toggleTheme(...h))},[n.colorMode==="dark"?De((g(),w("span",{key:0,title:a.__("Use Light Theme")},[_(u,{class:"w-5 h-5 text-gray-400 focus:outline-none stroke-2"})],8,XP)),[[m]]):De((g(),w("span",{key:1,title:a.__("Use Dark Theme")},[_(l,{class:"w-6 h-6 text-gray-400 focus:outline-none stroke-2"})],8,BP)),[[m]])])])}const $s=Se(IP,[["render",GP]]),qP={computed:{logo(){return window.colorMode==="light"?this.$page.props.generalSettings.site_header_logo_path_light:this.$page.props.generalSettings.site_header_logo_path_dark}}},YP=["src"];function UP(a,e,t,r,n,i){return g(),w("img",{src:i.logo,alt:"Site Header Logo",class:"logo"},null,8,YP)}const $r=Se(qP,[["render",UP]]),QP={class:"flex items-center flex-shrink-0"},KP={__name:"AppLogoMark",props:{canShowAdminSidebar:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=B("InertiaLink"),n=Ba("tippy");return g(),w("div",QP,[_(r,{href:e.route("home")},{default:F(()=>[_($r,{class:"block w-auto h-9"})]),_:1},8,["href"]),a.canShowAdminSidebar&&!e.route().current("admin.*")?De((g(),X(r,{key:0,title:e.__("Administration Section"),"aria-label":"Open Menu",class:"ml-2 focus:outline-none",href:e.route("admin.dashboard")},{default:F(()=>[_(q,{name:"cog",class:"w-6 h-6 text-gray-400 dark:text-gray-500 hover:animate-spin"})]),_:1},8,["title","href"])),[[n]]):W("",!0)])}}},JP=["href"],Si={__name:"NavLink",props:{href:String,active:Boolean,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"inline-flex items-center px-1 pt-1 border-b-2 border-light-blue-400 text-sm leading-5 text-gray-900 dark:text-gray-200 focus:outline-none focus:border-light-blue-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm leading-5 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:border-gray-300 focus:outline-none focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=B("InertiaLink");return a.openInNewTab?(g(),w("a",{key:1,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,JP)):(g(),X(i,{key:0,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"]))}}},ZP={class:"relative"},Et={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:Array,default:()=>["py-1","bg-white"]}},setup(a){const e=a;let t=jr(!1);const r=u=>{t.value&&u.key==="Escape"&&(t.value=!1)};_o(()=>document.addEventListener("keydown",r)),lu(()=>document.removeEventListener("keydown",r));const n=je(()=>({48:"w-48"})[e.width.toString()]),i=je(()=>e.align==="left"?"origin-top-left left-0":e.align==="right"?"origin-top-right right-0":"origin-top");return(u,l)=>(g(),w("div",ZP,[f("div",{onClick:l[0]||(l[0]=m=>Dn(t)?t.value=!D(t):t=!D(t))},[Ce(u.$slots,"trigger")]),De(f("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=m=>Dn(t)?t.value=!1:t=!1)},null,512),[[pt,D(t)]]),_(mu,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:F(()=>[De(f("div",{class:te(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,i.value]]),style:{display:"none"}},[f("div",{class:te(["rounded-md ring-1 ring-black ring-opacity-5 dark:bg-gray-800",a.contentClasses])},[Ce(u.$slots,"content")],2)],2),[[pt,D(t)]])]),_:3})]))}},ek=["href"],Xe={__name:"DropdownLink",props:{href:String,as:String,btnClass:String,openInNewTab:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=B("InertiaLink");return g(),w("div",null,[a.as=="button"?(g(),w("button",{key:0,type:"submit",class:te(["block w-full px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 text-left hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(g(),X(r,{key:1,href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},{default:F(()=>[Ce(e.$slots,"default")]),_:3},8,["href","class"])):(g(),w("a",{key:2,target:"_blank",href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],10,ek))])}}},ak={components:{JetDropdown:Et,JetDropdownLink:Xe},props:{title:{type:String,required:!0},items:{type:Array,required:!0}}},tk={class:"inline-flex items-center px-1 pt-1 text-sm leading-5 text-gray-500 transition duration-150 ease-in-out border-b-2 border-transparent hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300"},rk={class:"inline-flex rounded-md"},nk={type:"button",class:"inline-flex items-center py-2 text-sm font-semibold leading-4 text-gray-500 transition duration-150 ease-in-out border border-transparent rounded-md dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 focus:outline-none"},ik=f("svg",{class:"ml-2 -mr-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[f("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1);function ok(a,e,t,r,n,i){const u=B("jet-dropdown-link"),l=B("jet-dropdown");return g(),w("div",tk,[_(l,{align:"right",width:"48"},{trigger:F(()=>[f("span",rk,[f("button",nk,[V(k(a.__(t.title))+" ",1),ik])])]),content:F(()=>[(g(!0),w(ue,null,we(t.items,m=>(g(),X(u,{key:m.key,class:"text-sm",href:a.route(m.route,m.route_params??null),"open-in-new-tab":m.is_open_in_new_tab},{default:F(()=>[V(k(a.__(m.title)),1)]),_:2},1032,["href","open-in-new-tab"]))),128))]),_:1})])}const sk=Se(ak,[["render",ok]]);function uk(a,e){for(var t in e)e.hasOwnProperty(t)&&a[t]===void 0&&(a[t]=e[t]);return a}function dk(a,e,t){var r;return a.length>e&&(t==null?(t="…",r=3):r=t.length,a=a.substring(0,e-r)+t),a}function zi(a,e){if(Array.prototype.indexOf)return a.indexOf(e);for(var t=0,r=a.length;t=0;t--)e(a[t])===!0&&a.splice(t,1)}function lk(a,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var t=[],r=0,n;n=e.exec(a);)t.push(a.substring(r,n.index)),t.push(n[0]),r=n.index+n[0].length;return t.push(a.substring(r)),t}function Ps(a){throw new Error("Unhandled case for value: '".concat(a,"'"))}var Pr=function(){function a(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return a.prototype.setTagName=function(e){return this.tagName=e,this},a.prototype.getTagName=function(){return this.tagName||""},a.prototype.setAttr=function(e,t){var r=this.getAttrs();return r[e]=t,this},a.prototype.getAttr=function(e){return this.getAttrs()[e]},a.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},a.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},a.prototype.setClass=function(e){return this.setAttr("class",e)},a.prototype.addClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;u=i.shift();)zi(n,u)===-1&&n.push(u);return this.getAttrs().class=n.join(" "),this},a.prototype.removeClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;n.length&&(u=i.shift());){var l=zi(n,u);l!==-1&&n.splice(l,1)}return this.getAttrs().class=n.join(" "),this},a.prototype.getClass=function(){return this.getAttrs().class||""},a.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},a.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},a.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},a.prototype.getInnerHTML=function(){return this.innerHTML||""},a.prototype.getInnerHtml=function(){return this.getInnerHTML()},a.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?" "+t:"",["<",e,t,">",this.getInnerHtml(),""].join("")},a.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")},a}();function mk(a,e,t){var r,n;t==null?(t="…",n=3,r=8):(n=t.length,r=t.length);var i=function(T){var S={},N=T,L=N.match(/^([a-z]+):\/\//i);return L&&(S.scheme=L[1],N=N.substr(L[0].length)),L=N.match(/^(.*?)(?=(\?|#|\/|$))/i),L&&(S.host=L[1],N=N.substr(L[0].length)),L=N.match(/^\/(.*?)(?=(\?|#|$))/i),L&&(S.path=L[1],N=N.substr(L[0].length)),L=N.match(/^\?(.*?)(?=(#|$))/i),L&&(S.query=L[1],N=N.substr(L[0].length)),L=N.match(/^#(.*?)$/i),L&&(S.fragment=L[1]),S},u=function(T){var S="";return T.scheme&&T.host&&(S+=T.scheme+"://"),T.host&&(S+=T.host),T.path&&(S+="/"+T.path),T.query&&(S+="?"+T.query),T.fragment&&(S+="#"+T.fragment),S},l=function(T,S){var N=S/2,L=Math.ceil(N),j=-1*Math.floor(N),O="";return j<0&&(O=T.substr(j)),T.substr(0,L)+t+O};if(a.length<=e)return a;var m=e-n,h=i(a);if(h.query){var c=h.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(h.query=h.query.substr(0,c[1].length),a=u(h))}if(a.length<=e||(h.host&&(h.host=h.host.replace(/^www\./,""),a=u(h)),a.length<=e))return a;var b="";if(h.host&&(b+=h.host),b.length>=m)return h.host.length==e?(h.host.substr(0,e-n)+t).substr(0,m+r):l(b,m).substr(0,m+r);var p="";if(h.path&&(p+="/"+h.path),h.query&&(p+="?"+h.query),p)if((b+p).length>=m){if((b+p).length==e)return(b+p).substr(0,e);var y=m-b.length;return(b+l(p,y)).substr(0,m+r)}else b+=p;if(h.fragment){var M="#"+h.fragment;if((b+M).length>=m){if((b+M).length==e)return(b+M).substr(0,e);var R=m-b.length;return(b+l(M,R)).substr(0,m+r)}else b+=M}if(h.scheme&&h.host){var H=h.scheme+"://";if((b+H).length0&&(E=b.substr(-1*Math.floor(m/2))),(b.substr(0,Math.ceil(m/2))+t+E).substr(0,m+r)}function ck(a,e,t){if(a.length<=e)return a;var r,n;t==null?(t="…",r=8,n=3):(r=t.length,n=t.length);var i=e-n,u="";return i>0&&(u=a.substr(-1*Math.floor(i/2))),(a.substr(0,Math.ceil(i/2))+t+u).substr(0,i+r)}function hk(a,e,t){return dk(a,e,t)}var Ei=function(){function a(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return a.prototype.build=function(e){return new Pr({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},a.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t.class=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length-1}var ac=ec,tc=Om,rc=ac,nc=1,ic=2,oc=8,sc=16,uc=32,dc=64,lc=128,mc=256,cc=512,hc=[["ary",lc],["bind",nc],["bindKey",ic],["curry",oc],["curryRight",sc],["flip",cc],["partial",uc],["partialRight",dc],["rearg",mc]];function fc(a,e){return tc(hc,function(t){var r="_."+t[0];e&t[1]&&!rc(a,r)&&a.push(r)}),a.sort()}var vc=fc,gc=Mm,pc=_m,bc=Nr,yc=vc;function wc(a,e,t){var r=e+"";return bc(a,pc(r,yc(gc(r),t)))}var Io=wc,$c=hm,Pc=Vo,kc=Io,Mc=1,Wc=2,xc=4,_c=8,In=32,Xn=64;function Dc(a,e,t,r,n,i,u,l,m,h){var c=e&_c,b=c?u:void 0,p=c?void 0:u,y=c?i:void 0,M=c?void 0:i;e|=c?In:Xn,e&=~(c?Xn:In),e&xc||(e&=~(Mc|Wc));var R=[a,e,n,y,b,M,p,l,m,h],H=t.apply(void 0,R);return $c(a)&&Pc(H,R),H.placeholder=r,kc(H,a,e)}var Xo=Dc;function Cc(a){var e=a;return e.placeholder}var ka=Cc,Tc=9007199254740991,jc=/^(?:0|[1-9]\d*)$/;function Ac(a,e){var t=typeof a;return e=e??Tc,!!e&&(t=="number"||t!="symbol"&&jc.test(a))&&a>-1&&a%1==0&&a1&&T.reverse(),c&&m0&&(t=e.apply(this,arguments)),a<=1&&(e=void 0),t}}var Yo=Rh,Lh=Qa,ai=Math.max;function Hh(a,e,t){return e=ai(e===void 0?a.length-1:e,0),function(){for(var r=arguments,n=-1,i=ai(r.length-e,0),u=Array(i);++n=e||O<0||b&&G>=i}function E(){var j=er();if(H(j))return T(j);l=setTimeout(E,R(j))}function T(j){return l=void 0,p&&r?y(j):(r=n=void 0,u)}function S(){l!==void 0&&clearTimeout(l),h=0,r=m=n=l=void 0}function N(){return l===void 0?u:T(er())}function L(){var j=er(),O=H(j);if(r=arguments,n=this,m=j,O){if(l===void 0)return M(m);if(b)return clearTimeout(l),l=setTimeout(E,e),y(m)}return l===void 0&&(l=setTimeout(E,e)),u}return L.cancel=S,L.flush=N,L}var Qo=wf,$f="Expected a function";function Pf(a,e,t){if(typeof a!="function")throw new TypeError($f);return setTimeout(function(){a.apply(void 0,t)},e)}var Ko=Pf,kf=Ko,Mf=Le,Wf=Mf(function(a,e){return kf(a,1,e)}),xf=Wf,_f=Ko,Df=Le,Cf=Ar,Tf=Df(function(a,e,t){return _f(a,Cf(e)||0,t)}),jf=Tf,Af=Ge,Sf=512;function zf(a){return Af(a,Sf)}var Ef=zf,Nf=ma,Ff=Nf(Object,"create"),Tt=Ff,ri=Tt;function Rf(){this.__data__=ri?ri(null):{},this.size=0}var Lf=Rf;function Hf(a){var e=this.has(a)&&delete this.__data__[a];return this.size-=e?1:0,e}var Of=Hf,Vf=Tt,If="__lodash_hash_undefined__",Xf=Object.prototype,Bf=Xf.hasOwnProperty;function Gf(a){var e=this.__data__;if(Vf){var t=e[a];return t===If?void 0:t}return Bf.call(e,a)?e[a]:void 0}var qf=Gf,Yf=Tt,Uf=Object.prototype,Qf=Uf.hasOwnProperty;function Kf(a){var e=this.__data__;return Yf?e[a]!==void 0:Qf.call(e,a)}var Jf=Kf,Zf=Tt,ev="__lodash_hash_undefined__";function av(a,e){var t=this.__data__;return this.size+=this.has(a)?0:1,t[a]=Zf&&e===void 0?ev:e,this}var tv=av,rv=Lf,nv=Of,iv=qf,ov=Jf,sv=tv;function Ma(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e-1}var Mv=kv,Wv=jt;function xv(a,e){var t=this.__data__,r=Wv(t,a);return r<0?(++this.size,t.push([a,e])):t[r][1]=e,this}var _v=xv,Dv=lv,Cv=bv,Tv=$v,jv=Mv,Av=_v;function Wa(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e0&&t(l)?e>1?rs(l,e-1,t,r,n):Cg(n,l):r||(n[n.length]=l)}return n}var ns=rs,jg=At;function Ag(){this.__data__=new jg,this.size=0}var Sg=Ag;function zg(a){var e=this.__data__,t=e.delete(a);return this.size=e.size,t}var Eg=zg;function Ng(a){return this.__data__.get(a)}var Fg=Ng;function Rg(a){return this.__data__.has(a)}var Lg=Rg,Hg=At,Og=Vr,Vg=Ir,Ig=200;function Xg(a,e){var t=this.__data__;if(t instanceof Hg){var r=t.__data__;if(!Og||r.lengthl))return!1;var h=i.get(a),c=i.get(e);if(h&&c)return h==e&&c==a;var b=-1,p=!0,y=t&vp?new mp:void 0;for(i.set(a,e),i.set(e,a);++b-1&&a%1==0&&a<=sb}var qr=ub,db=qa,lb=qr,mb=Pa,cb="[object Arguments]",hb="[object Array]",fb="[object Boolean]",vb="[object Date]",gb="[object Error]",pb="[object Function]",bb="[object Map]",yb="[object Number]",wb="[object Object]",$b="[object RegExp]",Pb="[object Set]",kb="[object String]",Mb="[object WeakMap]",Wb="[object ArrayBuffer]",xb="[object DataView]",_b="[object Float32Array]",Db="[object Float64Array]",Cb="[object Int8Array]",Tb="[object Int16Array]",jb="[object Int32Array]",Ab="[object Uint8Array]",Sb="[object Uint8ClampedArray]",zb="[object Uint16Array]",Eb="[object Uint32Array]",K={};K[_b]=K[Db]=K[Cb]=K[Tb]=K[jb]=K[Ab]=K[Sb]=K[zb]=K[Eb]=!0;K[cb]=K[hb]=K[Wb]=K[fb]=K[xb]=K[vb]=K[gb]=K[pb]=K[bb]=K[yb]=K[wb]=K[$b]=K[Pb]=K[kb]=K[Mb]=!1;function Nb(a){return mb(a)&&lb(a.length)&&!!K[db(a)]}var Fb=Nb;function Rb(a){return function(e){return a(e)}}var us=Rb,kt={exports:{}};kt.exports;(function(a,e){var t=Co,r=e&&!e.nodeType&&e,n=r&&!0&&a&&!a.nodeType&&a,i=n&&n.exports===r,u=i&&t.process,l=function(){try{var m=n&&n.require&&n.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();a.exports=l})(kt,kt.exports);var Lb=kt.exports,Hb=Fb,Ob=us,ci=Lb,hi=ci&&ci.isTypedArray,Vb=hi?Ob(hi):Hb,ds=Vb,Ib=nb,Xb=Gr,Bb=ze,Gb=ss,qb=Fr,Yb=ds,Ub=Object.prototype,Qb=Ub.hasOwnProperty;function Kb(a,e){var t=Bb(a),r=!t&&Xb(a),n=!t&&!r&&Gb(a),i=!t&&!r&&!n&&Yb(a),u=t||r||n||i,l=u?Ib(a.length,String):[],m=l.length;for(var h in a)(e||Qb.call(a,h))&&!(u&&(h=="length"||n&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||qb(h,m)))&&l.push(h);return l}var Jb=Kb,Zb=Object.prototype;function ey(a){var e=a&&a.constructor,t=typeof e=="function"&&e.prototype||Zb;return a===t}var ay=ey;function ty(a,e){return function(t){return a(e(t))}}var ry=ty,ny=ry,iy=ny(Object.keys,Object),oy=iy,sy=ay,uy=oy,dy=Object.prototype,ly=dy.hasOwnProperty;function my(a){if(!sy(a))return uy(a);var e=[];for(var t in Object(a))ly.call(a,t)&&t!="constructor"&&e.push(t);return e}var cy=my,hy=jo,fy=qr;function vy(a){return a!=null&&fy(a.length)&&!hy(a)}var gy=vy,py=Jb,by=cy,yy=gy;function wy(a){return yy(a)?py(a):by(a)}var ls=wy,$y=Gp,Py=tb,ky=ls;function My(a){return $y(a,ky,Py)}var Wy=My,fi=Wy,xy=1,_y=Object.prototype,Dy=_y.hasOwnProperty;function Cy(a,e,t,r,n,i){var u=t&xy,l=fi(a),m=l.length,h=fi(e),c=h.length;if(m!=c&&!u)return!1;for(var b=m;b--;){var p=l[b];if(!(u?p in e:Dy.call(e,p)))return!1}var y=i.get(a),M=i.get(e);if(y&&M)return y==e&&M==a;var R=!0;i.set(a,e),i.set(e,a);for(var H=u;++bn?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(n);++r=r?a:N$(a,e,t)}var R$=F$,L$=Qa,H$=Br,O$=Le,V$=R$,I$=Ya,X$="Expected a function",B$=Math.max;function G$(a,e){if(typeof a!="function")throw new TypeError(X$);return e=e==null?0:B$(I$(e),0),O$(function(t){var r=t[e],n=V$(t,0,e);return r&&H$(n,r),L$(a,this,n)})}var q$=G$,Y$=Qo,U$=Ze,Q$="Expected a function";function K$(a,e,t){var r=!0,n=!0;if(typeof a!="function")throw new TypeError(Q$);return U$(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),Y$(a,e,{leading:r,maxWait:e,trailing:n})}var J$=K$,Z$=qo;function eP(a){return Z$(a,1)}var aP=eP,tP=Ua;function rP(a){return typeof a=="function"?a:tP}var nP=rP,iP=nP,oP=ys;function sP(a,e){return oP(iP(e),a)}var uP=sP,dP={after:_d,ary:qo,before:Yo,bind:Kh,bindKey:of,curry:df,curryRight:cf,debounce:Qo,defer:xf,delay:jf,flip:Ef,memoize:es,negate:lg,once:hg,overArgs:n$,partial:ys,partialRight:v$,rearg:D$,rest:S$,spread:q$,throttle:J$,unary:aP,wrap:uP};function lP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})])}function mP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function cP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z"})])}function hP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})])}const fP={name:"Search",components:{Icon:q,MagnifyingGlassIcon:mP},data(){return{showResults:!1,loading:!1,searchString:"",usersList:[],playersList:[]}},created:function(){window.addEventListener("click",a=>{this.$el.contains(a.target)||(this.showResults=!1,this.searchString="")})},methods:{performSearch:dP.debounce(function(){this.searchString&&(this.showResults=!0,this.loading=!0,axios.get(route("search",{q:this.searchString})).then(a=>{this.usersList=a.data.users,this.playersList=a.data.players}).finally(()=>{this.loading=!1}))},200)}},vP={class:"relative mx-auto text-gray-600 dark:text-gray-400"},gP=["placeholder"],pP={type:"submit",class:"absolute right-0 top-0 mt-3 mr-4"},bP={key:0,id:"results",class:"absolute bg-white dark:bg-cool-gray-800 px-3 py-1 w-full rounded-md shadow-lg z-50"},yP={key:0,id:"loading",class:"text-center p-2"},wP={key:1,id:"users"},$P={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},PP={class:"flex flex-col"},kP={class:"flex"},MP=["src"],WP={class:"text-sm"},xP={class:"text-gray-700 dark:text-gray-300 font-bold"},_P={class:"text-gray-500 dark:text-gray-500"},DP={class:"flex"},CP=["title","src"],TP={key:0,id:"emptyusers",class:"italic"},jP={key:2,id:"players",class:"mt-5 pb-4"},AP={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},SP={class:"flex flex-col"},zP={class:"flex items-center"},EP=["src"],NP={class:"text-sm"},FP={class:"text-gray-700 dark:text-gray-300 font-bold"},RP={class:"flex space-x-2"},LP=["src","alt","title"],HP=["title","src"],OP={key:0,id:"emptyplayers",class:"italic"};function VP(a,e,t,r,n,i){const u=B("MagnifyingGlassIcon"),l=B("inertia-link"),m=B("icon"),h=Ba("tippy");return g(),w("div",vP,[f("form",{onSubmit:e[2]||(e[2]=Xa((...c)=>i.performSearch&&i.performSearch(...c),["prevent"]))},[De(f("input",{"onUpdate:modelValue":e[0]||(e[0]=c=>n.searchString=c),"aria-label":"search",class:te(["border-none bg-gray-200 dark:bg-cool-gray-900 h-10 px-5 pr-10 focus:w-80 rounded-full text-sm focus:outline-none focus:ring-0",{"w-80":n.showResults}]),type:"search",name:"search",placeholder:a.__("Search")+"..",autocomplete:"off",onInput:e[1]||(e[1]=(...c)=>i.performSearch&&i.performSearch(...c))},null,42,gP),[[du,n.searchString]]),f("button",pP,[D(u,{class:"text-gray-400 dark:text-gray-600 h-4 w-4 stroke-2"})])],32),n.showResults&&n.searchString?(g(),w("div",bP,[n.loading?(g(),w("div",yP,k(a.__("Loading"))+"... ",1)):W("",!0),n.loading?W("",!0):(g(),w("div",wP,[f("span",$P,k(a.__("USERS")),1),f("div",PP,[(g(!0),w(ue,null,we(n.usersList,c=>(g(),X(l,{id:"user",key:c.username,as:"a",href:a.route("user.public.get",c.username),class:"flex px-2 py-1 justify-between hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",kP,[f("img",{class:"mr-3 w-10 h-10 rounded-full",src:c.profile_photo_url,alt:"Image"},null,8,MP),f("div",WP,[f("p",xP,k(c.title),1),f("p",_P," @"+k(c.username),1)])]),f("div",DP,[De(f("img",{title:c.country.name,src:c.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,CP),[[h]])])]),_:2},1032,["href"]))),128))]),!n.usersList||n.usersList.length<=0?(g(),w("div",TP,k(a.__("No users found.")),1)):W("",!0)])),n.loading?W("",!0):(g(),w("div",jP,[f("span",AP,k(a.__("PLAYERS")),1),f("div",SP,[(g(!0),w(ue,null,we(n.playersList,c=>(g(),X(l,{id:"player",key:c.uuid,as:"a",href:a.route("player.show",c.uuid),class:"flex justify-between px-2 py-1 hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",zP,[f("img",{class:"mr-3 w-8 h-8",src:c.avatar_url,alt:"Avatar"},null,8,EP),f("div",NP,[f("p",FP,k(c.title),1)])]),f("div",RP,[De(D(m,{class:"w-8 h-8 focus:outline-none",name:`rating-${c.rating}`,content:c.rating},null,8,["name","content"]),[[pt,c.rating!=null],[h]]),De(f("img",{src:c.rank.photo_path,alt:c.rank.name,title:c.rank.name,class:"h-8 w-8 focus:outline-none"},null,8,LP),[[pt,c.rank.photo_path],[h]]),De(f("img",{title:c.country.name,src:c.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,HP),[[h]])])]),_:2},1032,["href"]))),128))]),!n.playersList||n.playersList.length<=0?(g(),w("div",OP,k(a.__("No players found.")),1)):W("",!0)]))])):W("",!0)])}const ws=Se(fP,[["render",VP]]),IP={name:"ColorThemeToggle",components:{MoonIcon:cP,SunIcon:hP},data(){return{colorMode:window.colorMode}},methods:{toggleTheme(){this.colorMode==="dark"?(this.colorMode="light",window.colorMode="light",localStorage.theme="light",document.documentElement.classList.add("light"),document.documentElement.classList.remove("dark")):(this.colorMode="dark",window.colorMode="dark",localStorage.theme="dark",document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light")),window.location.reload()}}},XP=["title"],BP=["title"];function GP(a,e,t,r,n,i){const u=B("MoonIcon"),l=B("SunIcon"),m=Ba("tippy");return g(),w("div",null,[f("button",{onClick:e[0]||(e[0]=(...h)=>i.toggleTheme&&i.toggleTheme(...h))},[n.colorMode==="dark"?De((g(),w("span",{key:0,title:a.__("Use Light Theme")},[D(u,{class:"w-5 h-5 text-gray-400 focus:outline-none stroke-2"})],8,XP)),[[m]]):De((g(),w("span",{key:1,title:a.__("Use Dark Theme")},[D(l,{class:"w-6 h-6 text-gray-400 focus:outline-none stroke-2"})],8,BP)),[[m]])])])}const $s=Se(IP,[["render",GP]]),qP={computed:{logo(){return window.colorMode==="light"?this.$page.props.generalSettings.site_header_logo_path_light:this.$page.props.generalSettings.site_header_logo_path_dark}}},YP=["src"];function UP(a,e,t,r,n,i){return g(),w("img",{src:i.logo,alt:"Site Header Logo",class:"logo"},null,8,YP)}const $r=Se(qP,[["render",UP]]),QP={class:"flex items-center flex-shrink-0"},KP={__name:"AppLogoMark",props:{canShowAdminSidebar:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=B("InertiaLink"),n=Ba("tippy");return g(),w("div",QP,[D(r,{href:e.route("home")},{default:F(()=>[D($r,{class:"block w-auto h-9"})]),_:1},8,["href"]),a.canShowAdminSidebar&&!e.route().current("admin.*")?De((g(),X(r,{key:0,title:e.__("Administration Section"),"aria-label":"Open Menu",class:"ml-2 focus:outline-none",href:e.route("admin.dashboard")},{default:F(()=>[D(q,{name:"cog",class:"w-6 h-6 text-gray-400 dark:text-gray-500 hover:animate-spin"})]),_:1},8,["title","href"])),[[n]]):W("",!0)])}}},JP=["href"],Si={__name:"NavLink",props:{href:String,active:Boolean,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"inline-flex items-center px-1 pt-1 border-b-2 border-light-blue-400 text-sm leading-5 text-gray-900 dark:text-gray-200 focus:outline-none focus:border-light-blue-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm leading-5 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:border-gray-300 focus:outline-none focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=B("InertiaLink");return a.openInNewTab?(g(),w("a",{key:1,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,JP)):(g(),X(i,{key:0,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"]))}}},ZP={class:"relative"},Et={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:Array,default:()=>["py-1","bg-white"]}},setup(a){const e=a;let t=jr(!1);const r=u=>{t.value&&u.key==="Escape"&&(t.value=!1)};_o(()=>document.addEventListener("keydown",r)),lu(()=>document.removeEventListener("keydown",r));const n=je(()=>({48:"w-48"})[e.width.toString()]),i=je(()=>e.align==="left"?"origin-top-left left-0":e.align==="right"?"origin-top-right right-0":"origin-top");return(u,l)=>(g(),w("div",ZP,[f("div",{onClick:l[0]||(l[0]=m=>Dn(t)?t.value=!_(t):t=!_(t))},[Ce(u.$slots,"trigger")]),De(f("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=m=>Dn(t)?t.value=!1:t=!1)},null,512),[[pt,_(t)]]),D(mu,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:F(()=>[De(f("div",{class:te(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,i.value]]),style:{display:"none"}},[f("div",{class:te(["rounded-md ring-1 ring-black ring-opacity-5 dark:bg-gray-800",a.contentClasses])},[Ce(u.$slots,"content")],2)],2),[[pt,_(t)]])]),_:3})]))}},ek=["href"],Xe={__name:"DropdownLink",props:{href:String,as:String,btnClass:String,openInNewTab:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=B("InertiaLink");return g(),w("div",null,[a.as=="button"?(g(),w("button",{key:0,type:"submit",class:te(["block w-full px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 text-left hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(g(),X(r,{key:1,href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},{default:F(()=>[Ce(e.$slots,"default")]),_:3},8,["href","class"])):(g(),w("a",{key:2,target:"_blank",href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],10,ek))])}}},ak={components:{JetDropdown:Et,JetDropdownLink:Xe},props:{title:{type:String,required:!0},items:{type:Array,required:!0}}},tk={class:"inline-flex items-center px-1 pt-1 text-sm leading-5 text-gray-500 transition duration-150 ease-in-out border-b-2 border-transparent hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300"},rk={class:"inline-flex rounded-md"},nk={type:"button",class:"inline-flex items-center py-2 text-sm font-semibold leading-4 text-gray-500 transition duration-150 ease-in-out border border-transparent rounded-md dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 focus:outline-none"},ik=f("svg",{class:"ml-2 -mr-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[f("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1);function ok(a,e,t,r,n,i){const u=B("jet-dropdown-link"),l=B("jet-dropdown");return g(),w("div",tk,[D(l,{align:"right",width:"48"},{trigger:F(()=>[f("span",rk,[f("button",nk,[V(k(a.__(t.title))+" ",1),ik])])]),content:F(()=>[(g(!0),w(ue,null,we(t.items,m=>(g(),X(u,{key:m.key,class:"text-sm",href:a.route(m.route,m.route_params??null),"open-in-new-tab":m.is_open_in_new_tab},{default:F(()=>[V(k(a.__(m.title)),1)]),_:2},1032,["href","open-in-new-tab"]))),128))]),_:1})])}const sk=Se(ak,[["render",ok]]);function uk(a,e){for(var t in e)e.hasOwnProperty(t)&&a[t]===void 0&&(a[t]=e[t]);return a}function dk(a,e,t){var r;return a.length>e&&(t==null?(t="…",r=3):r=t.length,a=a.substring(0,e-r)+t),a}function zi(a,e){if(Array.prototype.indexOf)return a.indexOf(e);for(var t=0,r=a.length;t=0;t--)e(a[t])===!0&&a.splice(t,1)}function lk(a,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var t=[],r=0,n;n=e.exec(a);)t.push(a.substring(r,n.index)),t.push(n[0]),r=n.index+n[0].length;return t.push(a.substring(r)),t}function Ps(a){throw new Error("Unhandled case for value: '".concat(a,"'"))}var Pr=function(){function a(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return a.prototype.setTagName=function(e){return this.tagName=e,this},a.prototype.getTagName=function(){return this.tagName||""},a.prototype.setAttr=function(e,t){var r=this.getAttrs();return r[e]=t,this},a.prototype.getAttr=function(e){return this.getAttrs()[e]},a.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},a.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},a.prototype.setClass=function(e){return this.setAttr("class",e)},a.prototype.addClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;u=i.shift();)zi(n,u)===-1&&n.push(u);return this.getAttrs().class=n.join(" "),this},a.prototype.removeClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;n.length&&(u=i.shift());){var l=zi(n,u);l!==-1&&n.splice(l,1)}return this.getAttrs().class=n.join(" "),this},a.prototype.getClass=function(){return this.getAttrs().class||""},a.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},a.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},a.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},a.prototype.getInnerHTML=function(){return this.innerHTML||""},a.prototype.getInnerHtml=function(){return this.getInnerHTML()},a.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?" "+t:"",["<",e,t,">",this.getInnerHtml(),""].join("")},a.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")},a}();function mk(a,e,t){var r,n;t==null?(t="…",n=3,r=8):(n=t.length,r=t.length);var i=function(T){var S={},N=T,L=N.match(/^([a-z]+):\/\//i);return L&&(S.scheme=L[1],N=N.substr(L[0].length)),L=N.match(/^(.*?)(?=(\?|#|\/|$))/i),L&&(S.host=L[1],N=N.substr(L[0].length)),L=N.match(/^\/(.*?)(?=(\?|#|$))/i),L&&(S.path=L[1],N=N.substr(L[0].length)),L=N.match(/^\?(.*?)(?=(#|$))/i),L&&(S.query=L[1],N=N.substr(L[0].length)),L=N.match(/^#(.*?)$/i),L&&(S.fragment=L[1]),S},u=function(T){var S="";return T.scheme&&T.host&&(S+=T.scheme+"://"),T.host&&(S+=T.host),T.path&&(S+="/"+T.path),T.query&&(S+="?"+T.query),T.fragment&&(S+="#"+T.fragment),S},l=function(T,S){var N=S/2,L=Math.ceil(N),j=-1*Math.floor(N),O="";return j<0&&(O=T.substr(j)),T.substr(0,L)+t+O};if(a.length<=e)return a;var m=e-n,h=i(a);if(h.query){var c=h.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(h.query=h.query.substr(0,c[1].length),a=u(h))}if(a.length<=e||(h.host&&(h.host=h.host.replace(/^www\./,""),a=u(h)),a.length<=e))return a;var b="";if(h.host&&(b+=h.host),b.length>=m)return h.host.length==e?(h.host.substr(0,e-n)+t).substr(0,m+r):l(b,m).substr(0,m+r);var p="";if(h.path&&(p+="/"+h.path),h.query&&(p+="?"+h.query),p)if((b+p).length>=m){if((b+p).length==e)return(b+p).substr(0,e);var y=m-b.length;return(b+l(p,y)).substr(0,m+r)}else b+=p;if(h.fragment){var M="#"+h.fragment;if((b+M).length>=m){if((b+M).length==e)return(b+M).substr(0,e);var R=m-b.length;return(b+l(M,R)).substr(0,m+r)}else b+=M}if(h.scheme&&h.host){var H=h.scheme+"://";if((b+H).length0&&(E=b.substr(-1*Math.floor(m/2))),(b.substr(0,Math.ceil(m/2))+t+E).substr(0,m+r)}function ck(a,e,t){if(a.length<=e)return a;var r,n;t==null?(t="…",r=8,n=3):(r=t.length,n=t.length);var i=e-n,u="";return i>0&&(u=a.substr(-1*Math.floor(i/2))),(a.substr(0,Math.ceil(i/2))+t+u).substr(0,i+r)}function hk(a,e,t){return dk(a,e,t)}var Ei=function(){function a(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return a.prototype.build=function(e){return new Pr({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},a.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t.class=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length-1},a.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),r=t&&t[0].toLowerCase();return r!=="javascript:"&&r!=="vbscript:"},a.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!!e&&(!t||!this.hasFullProtocolRegex.test(t))&&e.indexOf(".")===-1},a.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return e&&t?!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e):!1},a.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,a.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,a.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+Ds+"]"),a.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,a}(),Wk=function(){var a=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,e=/(?:www\.)/,t=new RegExp("[/?#](?:["+Z+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+Z+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",a.source,ir(2),")","|","(","(//)?",e.source,ir(6),")","|","(","(//)?",ir(10)+"\\.",Ts.source,"(?![-"+yk+"])",")",")","(?::[0-9]+)?","(?:"+t.source+")?"].join(""),"gi")}(),xk=new RegExp("["+Z+"]"),Ri=function(a){He(e,a);function e(t){var r=a.call(this,t)||this;return r.stripPrefix={scheme:!0,www:!0},r.stripTrailingSlash=!0,r.decodePercentEncoding=!0,r.matcherRegex=Wk,r.wordCharRegExp=xk,r.stripPrefix=t.stripPrefix,r.stripTrailingSlash=t.stripTrailingSlash,r.decodePercentEncoding=t.decodePercentEncoding,r}return e.prototype.parseMatches=function(t){for(var r=this.matcherRegex,n=this.stripPrefix,i=this.stripTrailingSlash,u=this.decodePercentEncoding,l=this.tagBuilder,m=[],h,c=function(){var p=h[0],y=h[1],M=h[4],R=h[5],H=h[9],E=h.index,T=R||H,S=t.charAt(E-1);if(!Mk.isValid(p,y)||E>0&&S==="@"||E>0&&T&&b.wordCharRegExp.test(S))return"continue";if(/\?$/.test(p)&&(p=p.substr(0,p.length-1)),b.matchHasUnbalancedClosingParen(p))p=p.substr(0,p.length-1);else{var N=b.matchHasInvalidCharAfterTld(p,y);N>-1&&(p=p.substr(0,N))}var L=["http://","https://"].find(function(A){return!!y&&y.indexOf(A)!==-1});if(L){var j=p.indexOf(L);p=p.substr(j),y=y.substr(j),E=E+j}var O=y?"scheme":M?"www":"tld",G=!!y;m.push(new _s({tagBuilder:l,matchedText:p,offset:E,urlMatchType:O,url:p,protocolUrlMatch:G,protocolRelativeMatch:!!T,stripPrefix:n,stripTrailingSlash:i,decodePercentEncoding:u}))},b=this;(h=r.exec(t))!==null;)c();return m},e.prototype.matchHasUnbalancedClosingParen=function(t){var r=t.charAt(t.length-1),n;if(r===")")n="(";else if(r==="]")n="[";else if(r==="}")n="{";else return!1;for(var i=0,u=0,l=t.length-1;u"?(p=new Fe(ae(ae({},p),{name:ie()})),Y()):!rr.test($)&&!fk.test($)&&$!==":"&&Pe()}function E($){$===">"?Pe():rr.test($)?c=3:Pe()}function T($){ia.test($)||($==="/"?c=12:$===">"?Y():$==="<"?ke():$==="="||nr.test($)||gk.test($)?Pe():c=5)}function S($){ia.test($)?c=6:$==="/"?c=12:$==="="?c=7:$===">"?Y():$==="<"?ke():nr.test($)&&Pe()}function N($){ia.test($)||($==="/"?c=12:$==="="?c=7:$===">"?Y():$==="<"?ke():nr.test($)?Pe():c=5)}function L($){ia.test($)||($==='"'?c=8:$==="'"?c=9:/[>=`]/.test($)?Pe():$==="<"?ke():c=10)}function j($){$==='"'&&(c=11)}function O($){$==="'"&&(c=11)}function G($){ia.test($)?c=4:$===">"?Y():$==="<"&&ke()}function A($){ia.test($)?c=4:$==="/"?c=12:$===">"?Y():$==="<"?ke():(c=4,Za())}function ee($){$===">"?(p=new Fe(ae(ae({},p),{isClosing:!0})),Y()):c=4}function Ee($){a.substr(m,2)==="--"?(m+=2,p=new Fe(ae(ae({},p),{type:"comment"})),c=14):a.substr(m,7).toUpperCase()==="DOCTYPE"?(m+=7,p=new Fe(ae(ae({},p),{type:"doctype"})),c=20):Pe()}function Ne($){$==="-"?c=15:$===">"?Pe():c=16}function le($){$==="-"?c=18:$===">"?Pe():c=16}function Oe($){$==="-"&&(c=17)}function ne($){$==="-"?c=18:c=16}function _e($){$===">"?Y():$==="!"?c=19:$==="-"||(c=16)}function qe($){$==="-"?c=17:$===">"?Y():c=16}function Nt($){$===">"?Y():$==="<"&&ke()}function Pe(){c=0,p=l}function ke(){c=1,p=new Fe({idx:m})}function Y(){var $=a.slice(b,p.idx);$&&n($,b),p.type==="comment"?i(p.idx):p.type==="doctype"?u(p.idx):(p.isOpening&&t(p.name,p.idx),p.isClosing&&r(p.name,p.idx)),Pe(),b=m+1}function Ja(){var $=a.slice(b,m);n($,b),b=m+1}function ie(){var $=p.idx+(p.isClosing?2:1);return a.slice($,m).toLowerCase()}function Za(){m--}}var Fe=function(){function a(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return a}(),Rk=function(){function a(e){e===void 0&&(e={}),this.version=a.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(e.urls),this.email=typeof e.email=="boolean"?e.email:this.email,this.phone=typeof e.phone=="boolean"?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=typeof e.newWindow=="boolean"?e.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(e.stripPrefix),this.stripTrailingSlash=typeof e.stripTrailingSlash=="boolean"?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof e.decodePercentEncoding=="boolean"?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.sanitizeHtml||!1;var t=this.mention;if(t!==!1&&["twitter","instagram","soundcloud","tiktok"].indexOf(t)===-1)throw new Error("invalid `mention` cfg '".concat(t,"' - see docs"));var r=this.hashtag;if(r!==!1&&["twitter","facebook","instagram","tiktok"].indexOf(r)===-1)throw new Error("invalid `hashtag` cfg '".concat(r,"' - see docs"));this.truncate=this.normalizeTruncateCfg(e.truncate),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return a.link=function(e,t){var r=new a(t);return r.link(e)},a.parse=function(e,t){var r=new a(t);return r.parse(e)},a.prototype.normalizeUrlsCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:typeof e.schemeMatches=="boolean"?e.schemeMatches:!0,wwwMatches:typeof e.wwwMatches=="boolean"?e.wwwMatches:!0,tldMatches:typeof e.tldMatches=="boolean"?e.tldMatches:!0}},a.prototype.normalizeStripPrefixCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{scheme:e,www:e}:{scheme:typeof e.scheme=="boolean"?e.scheme:!0,www:typeof e.www=="boolean"?e.www:!0}},a.prototype.normalizeTruncateCfg=function(e){return typeof e=="number"?{length:e,location:"end"}:uk(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},a.prototype.parse=function(e){var t=this,r=["a","style","script"],n=0,i=[];return Fk(e,{onOpenTag:function(u){r.indexOf(u)>=0&&n++},onText:function(u,l){if(n===0){var m=/( | |<|<|>|>|"|"|')/gi,h=lk(u,m),c=l;h.forEach(function(b,p){if(p%2===0){var y=t.parseText(b,c);i.push.apply(i,y)}c+=b.length})}},onCloseTag:function(u){r.indexOf(u)>=0&&(n=Math.max(n-1,0))},onComment:function(u){},onDoctype:function(u){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i),i},a.prototype.compactMatches=function(e){e.sort(function(m,h){return m.getOffset()-h.getOffset()});for(var t=0;ti?t:t+1;e.splice(l,1);continue}if(e[t+1].getOffset()/g,">"));for(var t=this.parse(e),r=[],n=0,i=0,u=t.length;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ct(a,e,t){return Lk()?ct=Reflect.construct:ct=function(n,i,u){var l=[null];l.push.apply(l,i);var m=Function.bind.apply(n,l),h=new m;return u&&Mr(h,u.prototype),h},ct.apply(null,arguments)}function Te(a){return Hk(a)||Ok(a)||Vk(a)||Ik()}function Hk(a){if(Array.isArray(a))return Wr(a)}function Ok(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Vk(a,e){if(a){if(typeof a=="string")return Wr(a,e);var t=Object.prototype.toString.call(a).slice(8,-1);if(t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set")return Array.from(a);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Wr(a,e)}}function Wr(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,r=new Array(e);t1?t-1:0),n=1;n/gm),nM=Re(/^data-[\-\w.\u00B7-\uFFFF]/),iM=Re(/^aria-[\-\w]+$/),oM=Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sM=Re(/^(?:\w+script|data):/i),uM=Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dM=Re(/^html$/i),lM=function(){return typeof window>"u"?null:window},mM=function(e,t){if(Ke(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(n)&&(r=t.currentScript.getAttribute(n));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(l){return l},createScriptURL:function(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function As(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lM(),e=function(v){return As(v)};if(e.version="2.3.10",e.removed=[],!a||!a.document||a.document.nodeType!==9)return e.isSupported=!1,e;var t=a.document,r=a.document,n=a.DocumentFragment,i=a.HTMLTemplateElement,u=a.Node,l=a.Element,m=a.NodeFilter,h=a.NamedNodeMap,c=h===void 0?a.NamedNodeMap||a.MozNamedAttrMap:h,b=a.HTMLFormElement,p=a.DOMParser,y=a.trustedTypes,M=l.prototype,R=dt(M,"cloneNode"),H=dt(M,"nextSibling"),E=dt(M,"childNodes"),T=dt(M,"parentNode");if(typeof i=="function"){var S=r.createElement("template");S.content&&S.content.ownerDocument&&(r=S.content.ownerDocument)}var N=mM(y,t),L=N?N.createHTML(""):"",j=r,O=j.implementation,G=j.createNodeIterator,A=j.createDocumentFragment,ee=j.getElementsByTagName,Ee=t.importNode,Ne={};try{Ne=oa(r).documentMode?r.documentMode:{}}catch{}var le={};e.isSupported=typeof T=="function"&&O&&typeof O.createHTMLDocument<"u"&&Ne!==9;var Oe=tM,ne=rM,_e=nM,qe=iM,Nt=sM,Pe=uM,ke=oM,Y=null,Ja=I({},[].concat(Te(Xi),Te(sr),Te(ur),Te(dr),Te(Bi))),ie=null,Za=I({},[].concat(Te(Gi),Te(lr),Te(qi),Te(lt))),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ja=null,Ft=null,ln=!0,Rt=!0,mn=!1,fa=!1,ra=!1,Lt=!1,Ht=!1,va=!1,et=!1,at=!1,cn=!0,Ot=!0,Aa=!1,ga={},pa=null,hn=I({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),fn=null,vn=I({},["audio","video","img","source","image","track"]),Vt=null,gn=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),It="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",tt=Ye,Bt=!1,ba,au=["application/xhtml+xml","text/html"],tu="text/html",se,ya=null,ru=r.createElement("form"),pn=function(v){return v instanceof RegExp||v instanceof Function},Gt=function(v){ya&&ya===v||((!v||Ke(v)!=="object")&&(v={}),v=oa(v),ba=au.indexOf(v.PARSER_MEDIA_TYPE)===-1?ba=tu:ba=v.PARSER_MEDIA_TYPE,se=ba==="application/xhtml+xml"?function(P){return P}:ht,Y="ALLOWED_TAGS"in v?I({},v.ALLOWED_TAGS,se):Ja,ie="ALLOWED_ATTR"in v?I({},v.ALLOWED_ATTR,se):Za,Vt="ADD_URI_SAFE_ATTR"in v?I(oa(gn),v.ADD_URI_SAFE_ATTR,se):gn,fn="ADD_DATA_URI_TAGS"in v?I(oa(vn),v.ADD_DATA_URI_TAGS,se):vn,pa="FORBID_CONTENTS"in v?I({},v.FORBID_CONTENTS,se):hn,ja="FORBID_TAGS"in v?I({},v.FORBID_TAGS,se):{},Ft="FORBID_ATTR"in v?I({},v.FORBID_ATTR,se):{},ga="USE_PROFILES"in v?v.USE_PROFILES:!1,ln=v.ALLOW_ARIA_ATTR!==!1,Rt=v.ALLOW_DATA_ATTR!==!1,mn=v.ALLOW_UNKNOWN_PROTOCOLS||!1,fa=v.SAFE_FOR_TEMPLATES||!1,ra=v.WHOLE_DOCUMENT||!1,va=v.RETURN_DOM||!1,et=v.RETURN_DOM_FRAGMENT||!1,at=v.RETURN_TRUSTED_TYPE||!1,Ht=v.FORCE_BODY||!1,cn=v.SANITIZE_DOM!==!1,Ot=v.KEEP_CONTENT!==!1,Aa=v.IN_PLACE||!1,ke=v.ALLOWED_URI_REGEXP||ke,tt=v.NAMESPACE||Ye,v.CUSTOM_ELEMENT_HANDLING&&pn(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&pn(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fa&&(Rt=!1),et&&(va=!0),ga&&(Y=I({},Te(Bi)),ie=[],ga.html===!0&&(I(Y,Xi),I(ie,Gi)),ga.svg===!0&&(I(Y,sr),I(ie,lr),I(ie,lt)),ga.svgFilters===!0&&(I(Y,ur),I(ie,lr),I(ie,lt)),ga.mathMl===!0&&(I(Y,dr),I(ie,qi),I(ie,lt))),v.ADD_TAGS&&(Y===Ja&&(Y=oa(Y)),I(Y,v.ADD_TAGS,se)),v.ADD_ATTR&&(ie===Za&&(ie=oa(ie)),I(ie,v.ADD_ATTR,se)),v.ADD_URI_SAFE_ATTR&&I(Vt,v.ADD_URI_SAFE_ATTR,se),v.FORBID_CONTENTS&&(pa===hn&&(pa=oa(pa)),I(pa,v.FORBID_CONTENTS,se)),Ot&&(Y["#text"]=!0),ra&&I(Y,["html","head","body"]),Y.table&&(I(Y,["tbody"]),delete ja.tbody),$e&&$e(v),ya=v)},bn=I({},["mi","mo","mn","ms","mtext"]),yn=I({},["foreignobject","desc","title","annotation-xml"]),nu=I({},["title","style","font","a","script"]),rt=I({},sr);I(rt,ur),I(rt,eM);var qt=I({},dr);I(qt,aM);var iu=function(v){var P=T(v);(!P||!P.tagName)&&(P={namespaceURI:Ye,tagName:"template"});var C=ht(v.tagName),U=ht(P.tagName);return v.namespaceURI===Xt?P.namespaceURI===Ye?C==="svg":P.namespaceURI===It?C==="svg"&&(U==="annotation-xml"||bn[U]):!!rt[C]:v.namespaceURI===It?P.namespaceURI===Ye?C==="math":P.namespaceURI===Xt?C==="math"&&yn[U]:!!qt[C]:v.namespaceURI===Ye?P.namespaceURI===Xt&&!yn[U]||P.namespaceURI===It&&!bn[U]?!1:!qt[C]&&(nu[C]||!rt[C]):!1},Ve=function(v){Na(e.removed,{element:v});try{v.parentNode.removeChild(v)}catch{try{v.outerHTML=L}catch{v.remove()}}},wn=function(v,P){try{Na(e.removed,{attribute:P.getAttributeNode(v),from:P})}catch{Na(e.removed,{attribute:null,from:P})}if(P.removeAttribute(v),v==="is"&&!ie[v])if(va||et)try{Ve(P)}catch{}else try{P.setAttribute(v,"")}catch{}},$n=function(v){var P,C;if(Ht)v=""+v;else{var U=Qk(v,/^[\r\n\t ]+/);C=U&&U[0]}ba==="application/xhtml+xml"&&(v=''+v+"");var Me=N?N.createHTML(v):v;if(tt===Ye)try{P=new p().parseFromString(Me,ba)}catch{}if(!P||!P.documentElement){P=O.createDocument(tt,"template",null);try{P.documentElement.innerHTML=Bt?"":Me}catch{}}var me=P.body||P.documentElement;return v&&C&&me.insertBefore(r.createTextNode(C),me.childNodes[0]||null),tt===Ye?ee.call(P,ra?"html":"body")[0]:ra?P.documentElement:me},Pn=function(v){return G.call(v.ownerDocument||v,v,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},ou=function(v){return v instanceof b&&(typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||!(v.attributes instanceof c)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function")},Sa=function(v){return Ke(u)==="object"?v instanceof u:v&&Ke(v)==="object"&&typeof v.nodeType=="number"&&typeof v.nodeName=="string"},Ie=function(v,P,C){le[v]&&Uk(le[v],function(U){U.call(e,P,C,ya)})},kn=function(v){var P;if(Ie("beforeSanitizeElements",v,null),ou(v)||he(/[\u0080-\uFFFF]/,v.nodeName))return Ve(v),!0;var C=se(v.nodeName);if(Ie("uponSanitizeElement",v,{tagName:C,allowedTags:Y}),v.hasChildNodes()&&!Sa(v.firstElementChild)&&(!Sa(v.content)||!Sa(v.content.firstElementChild))&&he(/<[/\w]/g,v.innerHTML)&&he(/<[/\w]/g,v.textContent)||C==="select"&&he(/