PageSourceSearch

https://app.playmetrics.com/assets/v2/schedulingTemplate-Cq8skcOa.js

js playmetrics.com collected 2026-10-01 12:02:31 UTC 2,812 bytes, 2 lines download raw bytes

1import{k as K,g as r,je as S,j as L,O as u}from"./vendor-BHkM-bSa.js";import{ej as F,d$ as N,a as O,eX as U,eY as D,eZ as Q,e_ as ee,e$ as ae}from"./main-Cw9iHKnp.js";import{B as R,c as P}from"./comparison-GHnFeVU4.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"6acc28cf2ce7a8c545bce6b0f1ace425ca8881d3"};var i=new n.Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="eaa03416-39a9-40c8-be2c-8e339b3a38a0",n._sentryDebugIdIdentifier="sentry-dbid-eaa03416-39a9-40c8-be2c-8e339b3a38a0")}catch(w){}})();const le=K("schedulingTemplate",()=>{function n(e){return!u.isNil(e)&&e!==""}function i({operation:e,isRange:a,lowValue:t,highValue:s}){return a&&e===R.code&&n(t)&&n(s)}function w({operation:e,isRange:a,highValue:t}){return!a&&e!==R.code&&n(t)}function _(e){return e.operation&&(i(e)||w(e))}function o(){return{operation:null,isRange:!1,lowValue:null,highValue:null}}function d(e,{operation:a,isRange:t,lowValue:s,highValue:A}){e.operation=a,e.isRange=t,e.lowValue=s,e.highValue=A}const m=S(o()),p=S(o()),f=S(o()),v=r(""),T=r(!1),c=r(F.GROUP),V=[F.GROUP.value,F.LEAGUE.value],g=L(()=>!u.isEmpty(c.value)&&V.includes(c.value.value)),$=L(()=>[m,p].some(_)||g.value&&_(f)||T.value);function k(){d(m,o()),d(p,o()),d(f,o()),T.value=!1}function E(e,{operation:a,lowValue:t,highValue:s}){return!a||!n(s)?!0:a===R.code?n(t)?P(e,a,t,s):!0:P(e,a,s)}const x=e=>u.isEmpty(c.value)||e===c.value.value,B=e=>E(e,m),C=e=>E(e,p),M=e=>!g.value||E(e,f),Y=e=>u.isEmpty(v.value)||e.trim().toLowerCase().includes(v.value),j=e=>!e||T.value,H=e=>x(e.type.value)&&Y(e.name)&&j(e.isArchived)&&B(e.totalTeams)&&C(e.totalGroups)&&M(e.totalRounds),l=r([]),y=r(!1);async function I(e=N.TOURNAMENT){y.value=!0;try{const a=await O().get("/club_admin/".concat(U(e),"/scheduling_templates"));return l.value=a.data.map(D),l.value}finally{y.value=!1}}async function W(e,a=N.TOURNAMENT){u.isEmpty(l.value)&&await I(a);const t=u.toNumber(e);return l.value.find(({id:s})=>s===t)}async function X(e,a=N.TOURNAMENT){const t=!!e.id,s=Q(e),Z=(t?ee:ae)(s);let b="/club_admin/".concat(U(a),"/scheduling_templates");t&&(b="".concat(b,"/").concat(e.id));const q=await O({showError:!1}).post(b,Z),h=D(q.data),z=h.id,G=l.value.findIndex(({id:J})=>J===z);return G>-1?l.value[G]=h:l.value.push(h),h}return{numTeamFilter:m,numGroupFilter:p,numRoundFilter:f,teamNameFilter:v,selectedType:c,showArchivedFilter:T,matchesFilters:H,isSelectedTypeGroupOrLeague:g,hasTemplateFilter:$,schedulingTemplates:l,isLoadingSchedulingTemplates:y,setTemplateFilter:d,clearTemplateFilters:k,fetchSchedulingTemplate:W,fetchSchedulingTemplates:I,saveSchedulingTemplate:X}});export{le as u};
2//# sourceMappingURL=schedulingTemplate-Cq8skcOa.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.