diff --git a/app/Console/Commands/Grapper/TxSwitch.php b/app/Console/Commands/Grapper/TxSwitch.php index 420f8fc3..ad4db114 100644 --- a/app/Console/Commands/Grapper/TxSwitch.php +++ b/app/Console/Commands/Grapper/TxSwitch.php @@ -9,9 +9,6 @@ use App\Utilities\Notice; class TxSwitch { - /** - * https://docs.guzzlephp.org/en/latest/ - */ public static function switch() { if (NuhBash::$options['sport_id'] == 1) { diff --git a/app/Filament/Resources/Bettypes/Tables/BettypesTable.php b/app/Filament/Resources/Bettypes/Tables/BettypesTable.php index 0e3f280d..3254712a 100644 --- a/app/Filament/Resources/Bettypes/Tables/BettypesTable.php +++ b/app/Filament/Resources/Bettypes/Tables/BettypesTable.php @@ -14,6 +14,7 @@ class BettypesTable public static function configure(Table $table): Table { return $table + ->striped() ->columns([ TextColumn::make('bettype_id') ->width('1rem') diff --git a/app/Filament/Resources/Bookmakers/Tables/BookmakersTable.php b/app/Filament/Resources/Bookmakers/Tables/BookmakersTable.php index a7d4f0d9..aad76c37 100644 --- a/app/Filament/Resources/Bookmakers/Tables/BookmakersTable.php +++ b/app/Filament/Resources/Bookmakers/Tables/BookmakersTable.php @@ -15,6 +15,7 @@ class BookmakersTable public static function configure(Table $table): Table { return $table + ->striped() ->columns([ TextColumn::make('name') ->searchable(), diff --git a/app/Filament/Resources/Clients/Tables/ClientsTable.php b/app/Filament/Resources/Clients/Tables/ClientsTable.php index c26236c5..0821bc29 100644 --- a/app/Filament/Resources/Clients/Tables/ClientsTable.php +++ b/app/Filament/Resources/Clients/Tables/ClientsTable.php @@ -15,6 +15,7 @@ class ClientsTable public static function configure(Table $table): Table { return $table + ->striped() ->columns([ TextColumn::make('name'), TextColumn::make('bookmaker') diff --git a/app/Filament/Resources/Countries/CountryResource.php b/app/Filament/Resources/Countries/CountryResource.php index 753bfdf4..b830179e 100644 --- a/app/Filament/Resources/Countries/CountryResource.php +++ b/app/Filament/Resources/Countries/CountryResource.php @@ -56,6 +56,7 @@ class CountryResource extends Resource public static function table(Table $table): Table { return $table + ->striped() ->recordTitleAttribute('name') ->columns([ TextColumn::make('id')->searchable(), diff --git a/app/Filament/Resources/Events/EventResource.php b/app/Filament/Resources/Events/EventResource.php index 2de47b10..eeedf2b8 100644 --- a/app/Filament/Resources/Events/EventResource.php +++ b/app/Filament/Resources/Events/EventResource.php @@ -62,7 +62,9 @@ class EventResource extends Resource public static function getEloquentQuery(): Builder { - return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way'); - // return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way')->where('starttime', '>', Carbon::now()); + return parent::getEloquentQuery() + ->where('starttime', '>', Carbon::now()) + ->where('sport_id', auth()->user()->sport_id) + ->withoutGlobalScopes()->with('odds_3way'); } } diff --git a/app/Filament/Resources/Events/Tables/EventsTable.php b/app/Filament/Resources/Events/Tables/EventsTable.php index 0c88b55b..de48ca71 100644 --- a/app/Filament/Resources/Events/Tables/EventsTable.php +++ b/app/Filament/Resources/Events/Tables/EventsTable.php @@ -19,6 +19,7 @@ class EventsTable { return $table ->poll('10s') + ->striped() ->columns([ IconColumn::make('sport.icon') ->label('') diff --git a/app/Filament/Resources/Providers/Tables/ProvidersTable.php b/app/Filament/Resources/Providers/Tables/ProvidersTable.php index 48df490c..ec0e9505 100644 --- a/app/Filament/Resources/Providers/Tables/ProvidersTable.php +++ b/app/Filament/Resources/Providers/Tables/ProvidersTable.php @@ -11,6 +11,7 @@ class ProvidersTable public static function configure(Table $table): Table { return $table + ->striped() ->columns([ TextColumn::make('id'), TextColumn::make('name'), diff --git a/app/Filament/Resources/Sports/SportResource.php b/app/Filament/Resources/Sports/SportResource.php index 2709aa5d..55608c9e 100644 --- a/app/Filament/Resources/Sports/SportResource.php +++ b/app/Filament/Resources/Sports/SportResource.php @@ -44,6 +44,7 @@ class SportResource extends Resource public static function table(Table $table): Table { return $table + ->striped() ->columns([ IconColumn::make('icon') ->label('') diff --git a/app/Filament/Resources/Supervisors/Tables/SupervisorsTable.php b/app/Filament/Resources/Supervisors/Tables/SupervisorsTable.php index e318180b..b9f06315 100644 --- a/app/Filament/Resources/Supervisors/Tables/SupervisorsTable.php +++ b/app/Filament/Resources/Supervisors/Tables/SupervisorsTable.php @@ -14,6 +14,7 @@ class SupervisorsTable public static function configure(Table $table): Table { return $table + ->striped() ->columns([ TextColumn::make('id')->badge(), TextColumn::make('name')->searchable(), diff --git a/app/Models/AlarmSetting.php b/app/Models/AlarmSetting.php deleted file mode 100644 index aefde3b2..00000000 --- a/app/Models/AlarmSetting.php +++ /dev/null @@ -1,10 +0,0 @@ -get($url); - - return json_decode($data, true); - } -} diff --git a/app/Utilities/NuhHash.php b/app/Utilities/NuhHash.php deleted file mode 100644 index f3731a3e..00000000 --- a/app/Utilities/NuhHash.php +++ /dev/null @@ -1,40 +0,0 @@ -where('sport_id', $options['sport_id'])->where('customer_id', $options['customer_id'])->get(); - $_hash = []; - foreach ($res as $value) { - $event_id = $value['event_id']; - $_hash[$event_id] = ['hash' => $value['hash'], 'timestamp' => strtotime($value['updated_at'])]; - } - - return $_hash; - } - - public static function load_event($options) - { - $res = EventCustomer::select('calculation_hash')->where('event_id', $options['event_id'])->where('customer_id', $options['customer_id'])->first(); - if ($res) { - return $res->calculation_hash; - } - - return false; - } -} diff --git a/database/migrations/0001_01_01_000000_create_users_table.php b/database/migrations/0001_01_01_000000_create_users_table.php index ea1aff01..a71814cc 100644 --- a/database/migrations/0001_01_01_000000_create_users_table.php +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -18,6 +18,7 @@ return new class extends Migration $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->integer('client_id')->index(); + $table->integer('sport_id')->index(); $table->boolean('super_admin')->default(false); $table->text('app_authentication_secret')->nullable(); diff --git a/database/migrations/2025_08_20_073550_create_comparatores_table.php b/database/migrations/2025_08_20_073550_create_comparatores_table.php deleted file mode 100644 index c2da03f7..00000000 --- a/database/migrations/2025_08_20_073550_create_comparatores_table.php +++ /dev/null @@ -1,35 +0,0 @@ -id(); - - $table->integer('match_id'); - $table->integer('sport_id')->default(0); - $table->integer('bookmaker_id')->default(0); - $table->string('pushmode')->nullable(); - $table->string('hash')->nullable(); - $table->longText('fdata')->nullable()->default('text'); - - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('comparatores'); - } -}; diff --git a/database/migrations/2025_12_09_102436_create_alarm_settings_table.php b/database/migrations/2025_12_09_102436_create_alarm_settings_table.php deleted file mode 100644 index ad263c5f..00000000 --- a/database/migrations/2025_12_09_102436_create_alarm_settings_table.php +++ /dev/null @@ -1,30 +0,0 @@ -id(); - $table->foreignId('client_id')->constrained()->cascadeOnDelete(); - $table->integer('sport_id')->default(0); - $table->integer('bookmaker_id')->default(0); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('alarm_settings'); - } -}; diff --git a/database/migrations/2025_12_09_102909_create_comparatore_settings_table.php b/database/migrations/2025_12_09_102909_create_comparatore_settings_table.php deleted file mode 100644 index 7f6758fc..00000000 --- a/database/migrations/2025_12_09_102909_create_comparatore_settings_table.php +++ /dev/null @@ -1,30 +0,0 @@ -id(); - $table->foreignId('client_id')->constrained()->cascadeOnDelete(); - $table->integer('sport_id')->default(0); - $table->integer('bettype_id')->default(0); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('comparatore_settings'); - } -}; diff --git a/public/js/filament/filament/app.js b/public/js/filament/filament/app.js index b326b674..ba35a2c1 100644 --- a/public/js/filament/filament/app.js +++ b/public/js/filament/filament/app.js @@ -1 +1 @@ -(()=>{var re=Object.create,x=Object.defineProperty,ne=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty,ae=Object.getOwnPropertyNames,se=Object.getOwnPropertyDescriptor,oe=t=>x(t,"__esModule",{value:!0}),le=(t,n)=>()=>(n||(n={exports:{}},t(n.exports,n)),n.exports),fe=(t,n,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of ae(n))!ie.call(t,l)&&l!=="default"&&x(t,l,{get:()=>n[l],enumerable:!(i=se(n,l))||i.enumerable});return t},ue=t=>fe(oe(x(t!=null?re(ne(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),pe=le((t,n)=>{(function(i,l,y){if(!i)return;for(var c={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},_={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},g={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},G={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},A,b=1;b<20;++b)c[111+b]="f"+b;for(b=0;b<=9;++b)c[b+96]=b.toString();function P(e,r,s){if(e.addEventListener){e.addEventListener(r,s,!1);return}e.attachEvent("on"+r,s)}function T(e){if(e.type=="keypress"){var r=String.fromCharCode(e.which);return e.shiftKey||(r=r.toLowerCase()),r}return c[e.which]?c[e.which]:_[e.which]?_[e.which]:String.fromCharCode(e.which).toLowerCase()}function J(e,r){return e.sort().join(",")===r.sort().join(",")}function H(e){var r=[];return e.shiftKey&&r.push("shift"),e.altKey&&r.push("alt"),e.ctrlKey&&r.push("ctrl"),e.metaKey&&r.push("meta"),r}function F(e){if(e.preventDefault){e.preventDefault();return}e.returnValue=!1}function B(e){if(e.stopPropagation){e.stopPropagation();return}e.cancelBubble=!0}function C(e){return e=="shift"||e=="ctrl"||e=="alt"||e=="meta"}function X(){if(!A){A={};for(var e in c)e>95&&e<112||c.hasOwnProperty(e)&&(A[c[e]]=e)}return A}function Y(e,r,s){return s||(s=X()[e]?"keydown":"keypress"),s=="keypress"&&r.length&&(s="keydown"),s}function Q(e){return e==="+"?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function R(e,r){var s,h,k,S=[];for(s=Q(e),k=0;k1){$(a,m,f,p);return}u=R(a,p),r._callbacks[u.key]=r._callbacks[u.key]||[],z(u.key,u.modifiers,{type:u.action},o,a,d),r._callbacks[u.key][o?"unshift":"push"]({callback:f,modifiers:u.modifiers,action:u.action,seq:o,level:d,combo:a})}r._bindMultiple=function(a,f,p){for(var o=0;o-1||I(r,s.target))return!1;if("composedPath"in e&&typeof e.composedPath=="function"){var h=e.composedPath()[0];h!==e.target&&(r=h)}return r.tagName=="INPUT"||r.tagName=="SELECT"||r.tagName=="TEXTAREA"||r.isContentEditable},v.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},v.addKeycodes=function(e){for(var r in e)e.hasOwnProperty(r)&&(c[r]=e[r]);A=null},v.init=function(){var e=v(l);for(var r in e)r.charAt(0)!=="_"&&(v[r]=(function(s){return function(){return e[s].apply(e,arguments)}})(r))},v.init(),i.Mousetrap=v,typeof n<"u"&&n.exports&&(n.exports=v),typeof define=="function"&&define.amd&&define(function(){return v})})(typeof window<"u"?window:null,typeof window<"u"?document:null)}),q=ue(pe());(function(t){if(t){var n={},i=t.prototype.stopCallback;t.prototype.stopCallback=function(l,y,c,_){var g=this;return g.paused?!0:n[c]||n[_]?!1:i.call(g,l,y,c)},t.prototype.bindGlobal=function(l,y,c){var _=this;if(_.bind(l,y,c),l instanceof Array){for(var g=0;gArray.from(document.querySelectorAll('[aria-modal="true"]')).find(t=>window.getComputedStyle(t).display!=="none"),ce=t=>{t.directive("mousetrap",(n,{modifiers:i,expression:l},{evaluate:y})=>{let c=()=>l?y(l):n.click();i=i.map(_=>_.replace(/--/g," ").replace(/-/g,"+").replace(/\bslash\b/g,"/")),i.includes("global")&&(i=i.filter(_=>_!=="global"),q.default.bindGlobal(i,_=>{let g=W();g&&!g.contains(n)||(_.preventDefault(),c())})),q.default.bind(i,_=>{let g=W();g&&!g.contains(n)||(_.preventDefault(),c())}),document.addEventListener("livewire:navigating",()=>{q.default.unbind(i)},{once:!0})})},j=ce;var V=()=>({isOpen:window.Alpine.$persist(!0).as("isOpen"),isOpenDesktop:window.Alpine.$persist(!0).as("isOpenDesktop"),collapsedGroups:window.Alpine.$persist(null).as("collapsedGroups"),init(){this.resizeObserver=null,this.setUpResizeObserver(),document.addEventListener("livewire:navigated",()=>{this.setUpResizeObserver()})},setUpResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect();let t=window.innerWidth;this.resizeObserver=new ResizeObserver(()=>{let n=window.innerWidth,i=t>=1024,l=n<1024,y=n>=1024;i&&l?(this.isOpenDesktop=this.isOpen,this.isOpen&&this.close()):!i&&y&&(this.isOpen=this.isOpenDesktop),t=n}),this.resizeObserver.observe(document.body),window.innerWidth<1024?this.isOpen&&(this.isOpenDesktop=!0,this.close()):this.isOpenDesktop=this.isOpen},groupIsCollapsed(t){return this.collapsedGroups.includes(t)},collapseGroup(t){this.collapsedGroups.includes(t)||(this.collapsedGroups=this.collapsedGroups.concat(t))},toggleCollapsedGroup(t){this.collapsedGroups=this.collapsedGroups.includes(t)?this.collapsedGroups.filter(n=>n!==t):this.collapsedGroups.concat(t)},close(){this.isOpen=!1,window.innerWidth>=1024&&(this.isOpenDesktop=!1)},open(){this.isOpen=!0,window.innerWidth>=1024&&(this.isOpenDesktop=!0)}});document.addEventListener("alpine:init",()=>{let t=localStorage.getItem("theme")??getComputedStyle(document.documentElement).getPropertyValue("--default-theme-mode");window.Alpine.store("theme",t==="dark"||t==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),window.addEventListener("theme-changed",n=>{let i=n.detail;localStorage.setItem("theme",i),i==="system"&&(i=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),window.Alpine.store("theme",i)}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",n=>{localStorage.getItem("theme")==="system"&&window.Alpine.store("theme",n.matches?"dark":"light")}),window.Alpine.effect(()=>{window.Alpine.store("theme")==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")})});var U=window.history.replaceState,de=window.history.pushState;window.history.replaceState=function(t,n,i){t?.url instanceof URL&&(t.url=t.url.toString());let l=i||t?.url||window.location.href,y=window.location.href;if(l!==y){U.call(window.history,t,n,i);return}try{let c=window.history.state;JSON.stringify(t)!==JSON.stringify(c)&&U.call(window.history,t,n,i)}catch{U.call(window.history,t,n,i)}};window.history.pushState=function(t,n,i){t?.url instanceof URL&&(t.url=t.url.toString()),de.call(window.history,t,n,i)};document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{let t=document.querySelector(".fi-main-sidebar .fi-sidebar-item.fi-active");if((!t||t.offsetParent===null)&&(t=document.querySelector(".fi-main-sidebar .fi-sidebar-group.fi-active")),!t||t.offsetParent===null)return;let n=document.querySelector(".fi-main-sidebar .fi-sidebar-nav");n&&n.scrollTo(0,t.offsetTop-window.innerHeight/2)},10)});window.setUpUnsavedDataChangesAlert=({body:t,livewireComponent:n,$wire:i})=>{window.addEventListener("beforeunload",l=>{window.jsMd5(JSON.stringify(i.data).replace(/\\/g,""))===i.savedDataHash||i?.__instance?.effects?.redirect||(l.preventDefault(),l.returnValue=!0)})};window.setUpSpaModeUnsavedDataChangesAlert=({body:t,resolveLivewireComponentUsing:n,$wire:i})=>{let l=()=>i?.__instance?.effects?.redirect?!1:window.jsMd5(JSON.stringify(i.data).replace(/\\/g,""))!==i.savedDataHash,y=()=>confirm(t);document.addEventListener("livewire:navigate",c=>{if(typeof n()<"u"){if(!l()||y())return;c.preventDefault()}}),window.addEventListener("beforeunload",c=>{l()&&(c.preventDefault(),c.returnValue=!0)})};window.setUpUnsavedActionChangesAlert=({resolveLivewireComponentUsing:t,$wire:n})=>{window.addEventListener("beforeunload",i=>{if(!(typeof t()>"u")&&(n.mountedActions?.length??0)&&!n?.__instance?.effects?.redirect){i.preventDefault(),i.returnValue=!0;return}})};document.addEventListener("alpine:init",()=>{window.Alpine.plugin(j),window.Alpine.store("sidebar",V())});})(); +(() => { var re = Object.create, x = Object.defineProperty, ne = Object.getPrototypeOf, ie = Object.prototype.hasOwnProperty, ae = Object.getOwnPropertyNames, se = Object.getOwnPropertyDescriptor, oe = t => x(t, "__esModule", { value: !0 }), le = (t, n) => () => (n || (n = { exports: {} }, t(n.exports, n)), n.exports), fe = (t, n, i) => { if (n && typeof n == "object" || typeof n == "function") for (let l of ae(n)) !ie.call(t, l) && l !== "default" && x(t, l, { get: () => n[l], enumerable: !(i = se(n, l)) || i.enumerable }); return t }, ue = t => fe(oe(x(t != null ? re(ne(t)) : {}, "default", t && t.__esModule && "default" in t ? { get: () => t.default, enumerable: !0 } : { value: t, enumerable: !0 })), t), pe = le((t, n) => { (function (i, l, y) { if (!i) return; for (var c = { 8: "backspace", 9: "tab", 13: "enter", 16: "shift", 17: "ctrl", 18: "alt", 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home", 37: "left", 38: "up", 39: "right", 40: "down", 45: "ins", 46: "del", 91: "meta", 93: "meta", 224: "meta" }, _ = { 106: "*", 107: "+", 109: "-", 110: ".", 111: "/", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" }, g = { "~": "`", "!": "1", "@": "2", "#": "3", $: "4", "%": "5", "^": "6", "&": "7", "*": "8", "(": "9", ")": "0", _: "-", "+": "=", ":": ";", '"': "'", "<": ",", ">": ".", "?": "/", "|": "\\" }, G = { option: "alt", command: "meta", return: "enter", escape: "esc", plus: "+", mod: /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? "meta" : "ctrl" }, A, b = 1; b < 20; ++b)c[111 + b] = "f" + b; for (b = 0; b <= 9; ++b)c[b + 96] = b.toString(); function P(e, r, s) { if (e.addEventListener) { e.addEventListener(r, s, !1); return } e.attachEvent("on" + r, s) } function T(e) { if (e.type == "keypress") { var r = String.fromCharCode(e.which); return e.shiftKey || (r = r.toLowerCase()), r } return c[e.which] ? c[e.which] : _[e.which] ? _[e.which] : String.fromCharCode(e.which).toLowerCase() } function J(e, r) { return e.sort().join(",") === r.sort().join(",") } function H(e) { var r = []; return e.shiftKey && r.push("shift"), e.altKey && r.push("alt"), e.ctrlKey && r.push("ctrl"), e.metaKey && r.push("meta"), r } function F(e) { if (e.preventDefault) { e.preventDefault(); return } e.returnValue = !1 } function B(e) { if (e.stopPropagation) { e.stopPropagation(); return } e.cancelBubble = !0 } function C(e) { return e == "shift" || e == "ctrl" || e == "alt" || e == "meta" } function X() { if (!A) { A = {}; for (var e in c) e > 95 && e < 112 || c.hasOwnProperty(e) && (A[c[e]] = e) } return A } function Y(e, r, s) { return s || (s = X()[e] ? "keydown" : "keypress"), s == "keypress" && r.length && (s = "keydown"), s } function Q(e) { return e === "+" ? ["+"] : (e = e.replace(/\+{2}/g, "+plus"), e.split("+")) } function R(e, r) { var s, h, k, S = []; for (s = Q(e), k = 0; k < s.length; ++k)h = s[k], G[h] && (h = G[h]), r && r != "keypress" && g[h] && (h = g[h], S.push("shift")), C(h) && S.push(h); return r = Y(h, S, r), { key: h, modifiers: S, action: r } } function I(e, r) { return e === null || e === l ? !1 : e === r ? !0 : I(e.parentNode, r) } function v(e) { var r = this; if (e = e || l, !(r instanceof v)) return new v(e); r.target = e, r._callbacks = {}, r._directMap = {}; var s = {}, h, k = !1, S = !1, D = !1; function E(a) { a = a || {}; var f = !1, p; for (p in s) { if (a[p]) { f = !0; continue } s[p] = 0 } f || (D = !1) } function z(a, f, p, o, d, m) { var u, w, M = [], O = p.type; if (!r._callbacks[a]) return []; for (O == "keyup" && C(a) && (f = [a]), u = 0; u < r._callbacks[a].length; ++u)if (w = r._callbacks[a][u], !(!o && w.seq && s[w.seq] != w.level) && O == w.action && (O == "keypress" && !p.metaKey && !p.ctrlKey || J(f, w.modifiers))) { var ee = !o && w.combo == d, te = o && w.seq == o && w.level == m; (ee || te) && r._callbacks[a].splice(u, 1), M.push(w) } return M } function L(a, f, p, o) { r.stopCallback(f, f.target || f.srcElement, p, o) || a(f, p) === !1 && (F(f), B(f)) } r._handleKey = function (a, f, p) { var o = z(a, f, p), d, m = {}, u = 0, w = !1; for (d = 0; d < o.length; ++d)o[d].seq && (u = Math.max(u, o[d].level)); for (d = 0; d < o.length; ++d) { if (o[d].seq) { if (o[d].level != u) continue; w = !0, m[o[d].seq] = 1, L(o[d].callback, p, o[d].combo, o[d].seq); continue } w || L(o[d].callback, p, o[d].combo) } var M = p.type == "keypress" && S; p.type == D && !C(a) && !M && E(m), S = w && p.type == "keydown" }; function K(a) { typeof a.which != "number" && (a.which = a.keyCode); var f = T(a); if (f) { if (a.type == "keyup" && k === f) { k = !1; return } r.handleKey(f, H(a), a) } } function Z() { clearTimeout(h), h = setTimeout(E, 1e3) } function $(a, f, p, o) { s[a] = 0; function d(O) { return function () { D = O, ++s[a], Z() } } function m(O) { L(p, O, a), o !== "keyup" && (k = T(O)), setTimeout(E, 10) } for (var u = 0; u < f.length; ++u) { var w = u + 1 === f.length, M = w ? m : d(o || R(f[u + 1]).action); N(f[u], M, o, a, u) } } function N(a, f, p, o, d) { r._directMap[a + ":" + p] = f, a = a.replace(/\s+/g, " "); var m = a.split(" "), u; if (m.length > 1) { $(a, m, f, p); return } u = R(a, p), r._callbacks[u.key] = r._callbacks[u.key] || [], z(u.key, u.modifiers, { type: u.action }, o, a, d), r._callbacks[u.key][o ? "unshift" : "push"]({ callback: f, modifiers: u.modifiers, action: u.action, seq: o, level: d, combo: a }) } r._bindMultiple = function (a, f, p) { for (var o = 0; o < a.length; ++o)N(a[o], f, p) }, P(e, "keypress", K), P(e, "keydown", K), P(e, "keyup", K) } v.prototype.bind = function (e, r, s) { var h = this; return e = e instanceof Array ? e : [e], h._bindMultiple.call(h, e, r, s), h }, v.prototype.unbind = function (e, r) { var s = this; return s.bind.call(s, e, function () { }, r) }, v.prototype.trigger = function (e, r) { var s = this; return s._directMap[e + ":" + r] && s._directMap[e + ":" + r]({}, e), s }, v.prototype.reset = function () { var e = this; return e._callbacks = {}, e._directMap = {}, e }, v.prototype.stopCallback = function (e, r) { var s = this; if ((" " + r.className + " ").indexOf(" mousetrap ") > -1 || I(r, s.target)) return !1; if ("composedPath" in e && typeof e.composedPath == "function") { var h = e.composedPath()[0]; h !== e.target && (r = h) } return r.tagName == "INPUT" || r.tagName == "SELECT" || r.tagName == "TEXTAREA" || r.isContentEditable }, v.prototype.handleKey = function () { var e = this; return e._handleKey.apply(e, arguments) }, v.addKeycodes = function (e) { for (var r in e) e.hasOwnProperty(r) && (c[r] = e[r]); A = null }, v.init = function () { var e = v(l); for (var r in e) r.charAt(0) !== "_" && (v[r] = (function (s) { return function () { return e[s].apply(e, arguments) } })(r)) }, v.init(), i.Mousetrap = v, typeof n < "u" && n.exports && (n.exports = v), typeof define == "function" && define.amd && define(function () { return v }) })(typeof window < "u" ? window : null, typeof window < "u" ? document : null) }), q = ue(pe()); (function (t) { if (t) { var n = {}, i = t.prototype.stopCallback; t.prototype.stopCallback = function (l, y, c, _) { var g = this; return g.paused ? !0 : n[c] || n[_] ? !1 : i.call(g, l, y, c) }, t.prototype.bindGlobal = function (l, y, c) { var _ = this; if (_.bind(l, y, c), l instanceof Array) { for (var g = 0; g < l.length; g++)n[l[g]] = !0; return } n[l] = !0 }, t.init() } })(typeof Mousetrap < "u" ? Mousetrap : void 0); var W = () => Array.from(document.querySelectorAll('[aria-modal="true"]')).find(t => window.getComputedStyle(t).display !== "none"), ce = t => { t.directive("mousetrap", (n, { modifiers: i, expression: l }, { evaluate: y }) => { let c = () => l ? y(l) : n.click(); i = i.map(_ => _.replace(/--/g, " ").replace(/-/g, "+").replace(/\bslash\b/g, "/")), i.includes("global") && (i = i.filter(_ => _ !== "global"), q.default.bindGlobal(i, _ => { let g = W(); g && !g.contains(n) || (_.preventDefault(), c()) })), q.default.bind(i, _ => { let g = W(); g && !g.contains(n) || (_.preventDefault(), c()) }), document.addEventListener("livewire:navigating", () => { q.default.unbind(i) }, { once: !0 }) }) }, j = ce; var V = () => ({ isOpen: window.Alpine.$persist(!0).as("isOpen"), isOpenDesktop: window.Alpine.$persist(!0).as("isOpenDesktop"), collapsedGroups: window.Alpine.$persist(null).as("collapsedGroups"), init() { this.resizeObserver = null, this.setUpResizeObserver(), document.addEventListener("livewire:navigated", () => { this.setUpResizeObserver() }) }, setUpResizeObserver() { this.resizeObserver && this.resizeObserver.disconnect(); let t = window.innerWidth; this.resizeObserver = new ResizeObserver(() => { let n = window.innerWidth, i = t >= 1024, l = n < 1024, y = n >= 1024; i && l ? (this.isOpenDesktop = this.isOpen, this.isOpen && this.close()) : !i && y && (this.isOpen = this.isOpenDesktop), t = n }), this.resizeObserver.observe(document.body), window.innerWidth < 1024 ? this.isOpen && (this.isOpenDesktop = !0, this.close()) : this.isOpenDesktop = this.isOpen }, groupIsCollapsed(t) { return this.collapsedGroups.includes(t) }, collapseGroup(t) { this.collapsedGroups.includes(t) || (this.collapsedGroups = this.collapsedGroups.concat(t)) }, toggleCollapsedGroup(t) { this.collapsedGroups = this.collapsedGroups.includes(t) ? this.collapsedGroups.filter(n => n !== t) : this.collapsedGroups.concat(t) }, close() { this.isOpen = !1, window.innerWidth >= 1024 && (this.isOpenDesktop = !1) }, open() { this.isOpen = !0, window.innerWidth >= 1024 && (this.isOpenDesktop = !0) } }); document.addEventListener("alpine:init", () => { let t = localStorage.getItem("theme") ?? getComputedStyle(document.documentElement).getPropertyValue("--default-theme-mode"); window.Alpine.store("theme", t === "dark" || t === "system" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), window.addEventListener("theme-changed", n => { let i = n.detail; localStorage.setItem("theme", i), i === "system" && (i = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), window.Alpine.store("theme", i) }), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", n => { localStorage.getItem("theme") === "system" && window.Alpine.store("theme", n.matches ? "dark" : "light") }), window.Alpine.effect(() => { window.Alpine.store("theme") === "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark") }) }); var U = window.history.replaceState, de = window.history.pushState; window.history.replaceState = function (t, n, i) { t?.url instanceof URL && (t.url = t.url.toString()); let l = i || t?.url || window.location.href, y = window.location.href; if (l !== y) { U.call(window.history, t, n, i); return } try { let c = window.history.state; JSON.stringify(t) !== JSON.stringify(c) && U.call(window.history, t, n, i) } catch { U.call(window.history, t, n, i) } }; window.history.pushState = function (t, n, i) { t?.url instanceof URL && (t.url = t.url.toString()), de.call(window.history, t, n, i) }; document.addEventListener("DOMContentLoaded", () => { setTimeout(() => { let t = document.querySelector(".fi-main-sidebar .fi-sidebar-item.fi-active"); if ((!t || t.offsetParent === null) && (t = document.querySelector(".fi-main-sidebar .fi-sidebar-group.fi-active")), !t || t.offsetParent === null) return; let n = document.querySelector(".fi-main-sidebar .fi-sidebar-nav"); n && n.scrollTo(0, t.offsetTop - window.innerHeight / 2) }, 10) }); window.setUpUnsavedDataChangesAlert = ({ body: t, livewireComponent: n, $wire: i }) => { window.addEventListener("beforeunload", l => { window.jsMd5(JSON.stringify(i.data).replace(/\\/g, "")) === i.savedDataHash || i?.__instance?.effects?.redirect || (l.preventDefault(), l.returnValue = !0) }) }; window.setUpSpaModeUnsavedDataChangesAlert = ({ body: t, resolveLivewireComponentUsing: n, $wire: i }) => { let l = () => i?.__instance?.effects?.redirect ? !1 : window.jsMd5(JSON.stringify(i.data).replace(/\\/g, "")) !== i.savedDataHash, y = () => confirm(t); document.addEventListener("livewire:navigate", c => { if (typeof n() < "u") { if (!l() || y()) return; c.preventDefault() } }), window.addEventListener("beforeunload", c => { l() && (c.preventDefault(), c.returnValue = !0) }) }; window.setUpUnsavedActionChangesAlert = ({ resolveLivewireComponentUsing: t, $wire: n }) => { window.addEventListener("beforeunload", i => { if (!(typeof t() > "u") && (n.mountedActions?.length ?? 0) && !n?.__instance?.effects?.redirect) { i.preventDefault(), i.returnValue = !0; return } }) }; document.addEventListener("alpine:init", () => { window.Alpine.plugin(j), window.Alpine.store("sidebar", V()) }); })(); diff --git a/resources/views/filament/mapper/sport-menu.blade.php b/resources/views/filament/mapper/sport-menu.blade.php index da8d32fd..f3f18ceb 100644 --- a/resources/views/filament/mapper/sport-menu.blade.php +++ b/resources/views/filament/mapper/sport-menu.blade.php @@ -1,4 +1,86 @@ -
+ + + + + + + + + + {{ __('Light') }} + + + + + {{ __('Dark') }} + + + + + {{ __('System') }} + + + + + +{{-- + + + + + + + + --}} + +{{-- + + + + + + --}} +{{--
Soccer @@ -11,4 +93,4 @@ Tennis -
+
--}}