PageSourceSearch

https://app.parler.com/assets/InterestSettingsPage-DAZEWEGi.js

js parler.com collected 2026-10-01 08:36:34 UTC 2,302 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-data-BP8BSDuA.js";import{q as i,t as c}from"./index-C0uz6wQM.js";import{u as l,I as x}from"./useInterestPickerState-BXjrKkth.js";import{f as m,k as b}from"./vendor-react-1O7TF95s.js";import"./vendor-zod-DLSbZ067.js";function v(){const s=m(),[d]=b(),t=l(0),r=d.get("from"),a=r==="feed"||r==="foryou"?"/foryou":"/settings",o=()=>{s(a)},n=async()=>{try{if(!await t.saveSelections())return;s(a)}catch{c.error("Could not save your interests. Please try again.")}};return e.jsx("div",{className:"max-w-4xl mx-auto px-4 py-6",children:e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("button",{type:"button",onClick:o,className:"p-2 rounded-lg bg-bg-elevated dark:bg-bg-elevated-dark hover:bg-border-light/40 dark:hover:bg-border-dark/40 transition-colors","aria-label":r==="feed"||r==="foryou"?"Back to For You feed":"Back to settings",children:e.jsx(i,{size:18,className:"text-text dark:text-text-dark"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-bold text-text dark:text-text-dark",children:"Your interests"}),e.jsx("p",{className:"text-sm text-text-secondary dark:text-text-secondary-dark mt-1",children:"Pick topics for a better feed."})]})]}),e.jsx(x,{categories:t.categories,selected:t.selected,onToggle:t.toggleInterest,isLoading:t.isPageLoading,isError:t.showError,onRetry:t.refetch,gridClassName:"mt-6"}),e.jsxs("div",{className:"mt-8 flex items-center justify-between gap-4 border-t border-border-light/60 dark:border-border-dark/60 pt-4",children:[e.jsxs("p",{className:"text-sm text-text-secondary dark:text-text-secondary-dark",children:[t.selectedCount," selected"]}),e.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[e.jsx("button",{type:"button",onClick:o,className:"rounded-full border border-border-light dark:border-border-dark px-4 py-2 text-sm font-medium text-text dark:text-text-dark hover:bg-bg-elevated dark:hover:bg-bg-elevated-dark",children:"Cancel"}),e.jsx("button",{type:"button",onClick:n,disabled:!t.canSave,className:"rounded-full bg-brand hover:bg-brand/90 disabled:opacity-50 disabled:cursor-not-allowed text-white font-medium px-5 py-2 text-sm transition-colors",children:t.isSaving?"Saving…":"Done"})]})]})]})})}export{v as default};

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.