PageSourceSearch

https://app.zoca.com/assets/RenameReaderDialog-DdU2a6nG.js

js zoca.com collected 2026-09-30 09:43:45 UTC 1,362 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-react-Dw2zQmPu.js";import{u as d,a as p,o as x,s as b}from"./vendor-forms-CVvQPlhB.js";import{D as u,a as f,d as h,b as g,e as j}from"./dialog-BvmB9skF.js";import{I as D}from"./input-D2ulylI3.js";import{L as v}from"./label-Bk74TkBv.js";import{B as t}from"./button-CFi0D1K4.js";import"./commonjs-helpers-C05_-Ghz.js";import"./vendor-radix-guzGw5-0.js";import"./vendor-router-CtopkIuN.js";import"./app-cn-C2LL9ulS.js";import"./vendor-ui-mAy9LocR.js";const L=x({label:b().min(1,"Label is required").max(64,"Label is too long")}),E=({open:r,onClose:s,currentLabel:o,onSubmit:i})=>{const{register:m,handleSubmit:n,formState:{errors:l,isSubmitting:c}}=d({resolver:p(L),defaultValues:{label:o}});return e.jsx(u,{open:r,onOpenChange:a=>!a&&s(),children:e.jsxs(f,{children:[e.jsx(h,{children:e.jsx(g,{children:"Rename reader"})}),e.jsxs("form",{className:"flex flex-col gap-4",onSubmit:n(a=>i(a.label)),children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(v,{htmlFor:"label",children:"Label"}),e.jsx(D,{id:"label",autoFocus:!0,autoComplete:"off",...m("label")}),l.label&&e.jsx("p",{className:"text-destructive text-xs",children:l.label.message})]}),e.jsxs(j,{children:[e.jsx(t,{type:"button",variant:"ghost",onClick:s,children:"Cancel"}),e.jsx(t,{type:"submit",disabled:c,children:"Save"})]})]})]})})};export{E 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.