PageSourceSearch

https://shirecraft.us/forum/dist/v2/forum/chunks/addons/vanilla/CommunityPostTypeFilter.DUGZKS3o.min.js

js shirecraft.us collected 2026-10-05 01:30:23 UTC 1,093 bytes, 1 lines download raw bytes

1import{j as h}from"../../../vendor/vendor/react-core.Cemk5i8_.min.js";import{b3 as C,t as d,b4 as k,o as v}from"../../../entries/forum.Bh9JA_WS.min.js";import{u as w}from"../../SearchFormContext.CR5L8Nev.min.js";import{C as x}from"../../vendor/lodash.DBs2iWAb.min.js";function n(p){const{form:u,updateForm:a}=w(),l=n.postTypes,i=x(l.map(e=>e.values));if(l.length<=1)return null;const t=u.types;return h.jsx(C,{legend:d("What to search"),grid:!0,tight:!0,children:l.map((e,f)=>{const m=!t||t.length===0;let r=!1;return m?r=!0:t==null||t.forEach(c=>{e.values.includes(c)&&(r=!0)}),h.jsx(k,{label:e.label,checked:r,onChange:c=>{if(c.target.checked){const s=new Set(t??[]);e.values.forEach(o=>{s.add(o)}),s.size===i.length?a({types:void 0}):a({types:Array.from(s)})}else{const s=new Set(u.types??[]);if(e.values.forEach(o=>{s.delete(o)}),s.size===0){const o=i.filter(y=>!e.values.includes(y));a({types:o})}else a({types:Array.from(s)})}}},f)})})}n.postTypes=[];n.addPostType=p=>{n.postTypes.push(p)};v(()=>{n.addPostType({label:d("Discussions"),values:["discussion","comment"]})});export{n as C};

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.