PageSourceSearch

https://app.parler.com/assets/feedPreferencesStore-ux7gLgND.js

js parler.com collected 2026-09-24 08:27:07 UTC 1,546 bytes, 1 lines download raw bytes

1import{c4 as g,c5 as m,c6 as l,c7 as f,c8 as a,c9 as p}from"./index-DTQGL8n8.js";import"./vendor-react-BgtJhS2O.js";import"./vendor-zod-Bei2Z9MS.js";import{B as S,dJ as b,dK as D,dL as E,dM as h}from"./vendor-data-eBPZki-Z.js";function u(){return b(p)}function P(e){return h(e,p)}const I=S()(g((e,i)=>({preferences:u(),hydrated:!1,setPreferences:s=>e({preferences:s.map((n,t)=>({...n,order:t}))}),toggleFeed:s=>{const n=i().preferences,t=n.find(r=>r.id===s);t&&(t.enabled&&n.filter(r=>r.enabled).length===1||e({preferences:n.map(r=>r.id===s?{...r,enabled:!r.enabled}:r)}))},reorderFeeds:(s,n)=>{if(s===n)return;const t=[...i().preferences].sort((d,c)=>d.order-c.order),r=t.findIndex(d=>d.id===s),o=t.findIndex(d=>d.id===n);if(r===-1||o===-1)return;const[F]=t.splice(r,1);t.splice(o,0,F),e({preferences:t.map((d,c)=>({...d,order:c}))})},resetToDefaults:()=>e({preferences:u()})}),{name:"parlerFeedPreferences",storage:m(()=>localStorage),partialize:e=>({preferences:e.preferences}),onRehydrateStorage:()=>e=>{e&&(e.preferences=P(e.preferences),e.hydrated=!0)}}));function x(e,{isLoggedIn:i,defaultFeedId:s,badges:n,creatorMembershipsEnabled:t=!0}){return D(e,{isLoggedIn:i,getAuthRequired:r=>f(r).authRequired,isHidden:r=>!l(f(r),n)||r===a.MEMBERSHIPS&&!t,fallback:a.DISCOVER,defaultFeedId:s})}function R(e){return E(e)}function y(e,{badges:i,creatorMembershipsEnabled:s}){return R(e).find(n=>l(f(n.id),i)&&(n.id!==a.MEMBERSHIPS||s))?.id}export{x as getDefaultFeed,y as getFirstVisibleStripFeed,R as getVisibleFeeds,I as useFeedPreferencesStore};

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.