PageSourceSearch

https://web.flowzone.eu/assets/ExerciseFilter-BeOUaQDB.js

js flowzone.eu collected 2026-10-08 21:17:35 UTC 7,067 bytes, 47 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`flowzone-web@dac2caa`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:flowzone-web":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ddea751f-82c4-4b28-baee-505a4a35bad1`,e._sentryDebugIdIdentifier=`sentry-dbid-ddea751f-82c4-4b28-baee-505a4a35bad1`)}catch{}})();import{a as e}from"./rolldown-runtime-Jpqw1j3a.js";import{t}from"./react-DzP9V7Ha.js";import{$ as n,dt as r,r as i}from"./Layout-adaYI4a-.js";import{n as a,t as o}from"./jsx-runtime-BZ3_O7gq.js";import{$ as s,A as c,S as l,b as u,lt as d,r as f,v as p}from"./styled-components.browser.esm-CcX3Rcg0.js";import{n as m}from"./shadows-PlfXOqDT.js";import{t as h}from"./dist-DlDvCPt8.js";import{i as g,t as _}from"./ActionButton-BTnhME2q.js";import{_ as v,g as y,v as b,w as x,y as S}from"./DropdownMenu-BH7vrOji.js";import{n as C}from"./Text-DqLokzx9.js";import{T as w}from"./queries-DzjWSdzk.js";import{u as T,x as E}from"./queries-CQfjJOv8.js";var D=e(t(),1),O=a(),k=o(),A=f.label`
2  display: flex;
3  align-items: center;
4
5  height: 32px;
6  width: fit-content;
7  padding: 4px 12px 4px 6px;
8
9  background-color: ${({checked:e})=>e?s:p};
10  border: 1px solid ${({checked:e})=>e?c:l};
11  border-radius: 30px;
12
13  cursor: pointer;
14`,j=f(h)`
15  cursor: pointer;
16  ${g}
17  display: flex;
18  align-items: center;
19`,M=f.span`
20  cursor: pointer;
21  padding-left: 6px;
22`,N=e=>{let t=(0,O.c)(14),{label:n,checked:i,checkedIcon:a,uncheckedIcon:o,onChange:s}=e,c;t[0]!==i||t[1]!==a||t[2]!==o?(c=i?(0,k.jsx)(r,{type:a}):(0,k.jsx)(r,{type:o}),t[0]=i,t[1]=a,t[2]=o,t[3]=c):c=t[3];let l;t[4]!==i||t[5]!==s||t[6]!==c?(l=(0,k.jsx)(j,{checked:i,onCheckedChange:s,children:c}),t[4]=i,t[5]=s,t[6]=c,t[7]=l):l=t[7];let u;t[8]===n?u=t[9]:(u=(0,k.jsx)(M,{children:n}),t[8]=n,t[9]=u);let d;return t[10]!==i||t[11]!==l||t[12]!==u?(d=(0,k.jsxs)(A,{checked:i,children:[l,u]}),t[10]=i,t[11]=l,t[12]=u,t[13]=d):d=t[13],d},P=f(y)`
23  padding: 16px;
24  z-index: 15;
25  background-color: ${d};
26  border: 1px solid ${u};
27  border-radius: 8px;
28  box-shadow: ${m};
29`,F=f.fieldset`
30  border: 0;
31  padding: 0;
32  margin: 0;
33`,I=f.legend`
34  position: absolute;
35  width: 1px;
36  height: 1px;
37  padding: 0;
38  margin: -1px;
39  overflow: hidden;
40  clip: rect(0 0 0 0);
41  white-space: nowrap;
42  border: 0;
43`,L=f(x)`
44  height: 48px;
45  flex: 1;
46`,R=e=>{let t=(0,O.c)(46),{showEquipment:a,setShowEquipment:o,showCategories:s,setShowCategories:c,showOnlyIcon:l}=e,u=l!==void 0&&l,d=n(),f;t[0]!==o||t[1]!==a?(f=e=>{e.preventDefault(),o(!a)},t[0]=o,t[1]=a,t[2]=f):f=t[2];let p=f,m;t[3]!==c||t[4]!==s?(m=e=>{e.preventDefault(),c(!s)},t[3]=c,t[4]=s,t[5]=m):m=t[5];let h=m,g;t[6]===d?g=t[7]:(g=d(`View`),t[6]=d,t[7]=g);let y,x;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(y={minWidth:`48px`},x=(0,k.jsx)(r,{type:`eye`}),t[8]=y,t[9]=x):(y=t[8],x=t[9]);let w;t[10]!==u||t[11]!==d?(w=!u&&(0,k.jsx)(C,{children:d(`View`)}),t[10]=u,t[11]=d,t[12]=w):w=t[12];let T;t[13]!==g||t[14]!==w?(T=(0,k.jsx)(L,{asChild:!0,children:(0,k.jsxs)(_,{size:`medium`,"aria-label":g,style:y,children:[x,w]})}),t[13]=g,t[14]=w,t[15]=T):T=t[15];let E;t[16]===d?E=t[17]:(E=d(`Show or hide equipment`),t[16]=d,t[17]=E);let D;t[18]===E?D=t[19]:(D=(0,k.jsx)(I,{children:E}),t[18]=E,t[19]=D);let A;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(A={paddingTop:`8px`},t[20]=A):A=t[20];let j;t[21]===d?j=t[22]:(j=d(`Equipment`),t[21]=d,t[22]=j);let M;t[23]!==a||t[24]!==j?(M=(0,k.jsx)(N,{label:j,checked:a,checkedIcon:`eye`,uncheckedIcon:`eye-hidden`,onChange:z}),t[23]=a,t[24]=j,t[25]=M):M=t[25];let R;t[26]!==p||t[27]!==M?(R=(0,k.jsx)(v,{onSelect:p,onClick:p,children:M}),t[26]=p,t[27]=M,t[28]=R):R=t[28];let V;t[29]===d?V=t[30]:(V=d(`Categories`),t[29]=d,t[30]=V);let H;t[31]!==s||t[32]!==V?(H=(0,k.jsx)(N,{label:V,checked:s,checkedIcon:`eye`,uncheckedIcon:`eye-hidden`,onChange:B}),t[31]=s,t[32]=V,t[33]=H):H=t[33];let U;t[34]!==h||t[35]!==H?(U=(0,k.jsx)(v,{onSelect:h,onClick:h,children:H}),t[34]=h,t[35]=H,t[36]=U):U=t[36];let W;t[37]!==R||t[38]!==U?(W=(0,k.jsxs)(i,{column:!0,gap:8,style:A,children:[R,U]}),t[37]=R,t[38]=U,t[39]=W):W=t[39];let G;t[40]!==D||t[41]!==W?(G=(0,k.jsx)(b,{children:(0,k.jsx)(P,{sideOffset:8,align:`start`,children:(0,k.jsxs)(F,{children:[D,W]})})}),t[40]=D,t[41]=W,t[42]=G):G=t[42];let K;return t[43]!==G||t[44]!==T?(K=(0,k.jsxs)(S,{modal:!1,children:[T,G]}),t[43]=G,t[44]=T,t[45]=K):K=t[45],K};function z(){}function B(){}var V=e=>{let t=(0,O.c)(47),{placeholder:r,libraryIds:i,search:a,onSearch:o,filters:s,onFiltersChange:c,showEquipment:l,setShowEquipment:u,showCategories:d,setShowCategories:f,
46showOnlyIcon:p}=e,m=p!==void 0&&p,h=n(),g;t[0]===s?g=t[1]:(g=Object.values(s).filter(H).reduce(U,0),t[0]=s,t[1]=g);let _=g,v,y;t[2]!==s||t[3]!==i||t[4]!==c?(v=()=>{let e=s.categories?.every(e=>i.includes(e.libraryId));i.length>0&&e===!1&&c({...s,categories:void 0}),s.equipment?.length===0&&c({...s,equipment:void 0})},y=[i,s,c],t[2]=s,t[3]=i,t[4]=c,t[5]=v,t[6]=y):(v=t[5],y=t[6]),(0,D.useEffect)(v,y);let b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b={width:`100%`,marginBottom:16},t[7]=b):b=t[7];let x;t[8]!==s||t[9]!==c?(x=()=>c({...s,categories:void 0,equipment:void 0}),t[8]=s,t[9]=c,t[10]=x):x=t[10];let S;t[11]!==f||t[12]!==u||t[13]!==d||t[14]!==l||t[15]!==m?(S=(0,k.jsx)(R,{showEquipment:l,setShowEquipment:u,showCategories:d,setShowCategories:f,showOnlyIcon:m}),t[11]=f,t[12]=u,t[13]=d,t[14]=l,t[15]=m,t[16]=S):S=t[16];let C;t[17]!==s||t[18]!==c?(C=e=>c({...s,categories:e}),t[17]=s,t[18]=c,t[19]=C):C=t[19];let A;t[20]!==s.categories||t[21]!==i||t[22]!==C?(A=(0,k.jsx)(T,{libraryIds:i,value:s.categories,onChange:C}),t[20]=s.categories,t[21]=i,t[22]=C,t[23]=A):A=t[23];let j;t[24]===h?j=t[25]:(j=h(`Shows all equipment`),t[24]=h,t[25]=j);let M;t[26]===s.equipment?M=t[27]:(M=s.equipment??[],t[26]=s.equipment,t[27]=M);let N,P;t[28]!==s||t[29]!==c?(N=e=>c({...s,equipment:[...s.equipment??[],e]}),P=e=>{c({...s,equipment:s.equipment?.filter(t=>t!==e)})},t[28]=s,t[29]=c,t[30]=N,t[31]=P):(N=t[30],P=t[31]);let F;t[32]!==j||t[33]!==M||t[34]!==N||t[35]!==P?(F=(0,k.jsx)(w,{placeholder:j,values:M,onSelected:N,onRemoved:P}),t[32]=j,t[33]=M,t[34]=N,t[35]=P,t[36]=F):F=t[36];let I;return t[37]!==_||t[38]!==o||t[39]!==r||t[40]!==a||t[41]!==m||t[42]!==F||t[43]!==x||t[44]!==S||t[45]!==A?(I=(0,k.jsx)(`div`,{style:b,children:(0,k.jsxs)(E,{search:a,onSearch:o,searchPlaceholder:r,numberOfActiveFilters:_,onClearFilters:x,showOnlyIcon:m,searchRowActions:S,children:[A,F]})}),t[37]=_,t[38]=o,t[39]=r,t[40]=a,t[41]=m,t[42]=F,t[43]=x,t[44]=S,t[45]=A,t[46]=I):I=t[46],I};function H(e){return e}function U(e,t){return e+(t?.length||0)}export{N as n,V as t};
47//# sourceMappingURL=ExerciseFilter-BeOUaQDB.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.