PageSourceSearch

https://startmilo.com/assets/Folder-BRbQGuQT.js

js startmilo.com collected 2026-10-04 08:08:55 UTC 5,285 bytes, 2 lines download raw bytes

1import{j as e}from"./vendor-motion-C9uFufCg.js";import{r}from"./vendor-charts-BlP1Pdbv.js";import{T as S,d as E,r as F}from"./Topbar-6s02ukrz.js";import{S as L}from"./Sidebar-D6lBmmuC.js";import{M}from"./MyChecklists-BMJYPeK0.js";import{p as R,a as B,k as I,C as z}from"./index-l8sTCxZG.js";import{c as D}from"./cardBackground-Bn0qj8qC.js";import"./InfoTooltip-Ci48YrBM.js";import"./vendor-select-DbJAgDSj.js";import"./auth-in9l8hlf.js";import"./vendor-firebase-DnNwiSSY.js";import"./workspacePermissions-CpagWCcX.js";import"./user-round-CZW--Hno.js";import"./chevron-down-DGFsUP3D.js";import"./plus-DsElQDY9.js";import"./user-CDk7Y6rw.js";import"./template-bUP7O4e2.js";import"./industries-BGfpIx6V.js";import"./milo-logo-VIUzRCaq.js";import"./usePricing-D-yi-eXS.js";import"./billing-BvxUDs_S.js";import"./check-nZeBL_GS.js";import"./HoverTooltip-Bkr7NYNK.js";import"./loader-circle-DYBjTSyn.js";import"./workspaceMembers-mKunQ_Ga.js";import"./colors-CDAwji7w.js";import"./MiloProModal-BhWYr3_j.js";import"./LockedChecklist-D0JHVZON.js";import"./paperclip--LVe8flp.js";import"./crown-CDeLb5OG.js";import"./postOnboarding-DY5nO3HR.js";import"./pencil-T7pJ4Lfk.js";import"./house-B4FumM_3.js";import"./log-out-RfP0l2og.js";import"./AddToFolderModal-WlkFmVah.js";import"./TooltipIfTruncated-2uh5H5of.js";import"./Drawer-D1vKVPBY.js";import"./share-checklist-7wcLnkXC.js";import"./share-C85x1Fwy.js";import"./info-etcQp104.js";import"./ellipsis-DbUJR6Px.js";import"./circle-ellipsis-C8geJJLS.js";const Ce=()=>{const[m,w]=r.useState([]),[i,g]=r.useState(null),[n,x]=r.useState(""),[j,c]=r.useState(!1),[o,d]=r.useState(""),[b,u]=r.useState(!1),[f,v]=r.useState(!1),{id:p}=R(),a=B(),{activeWorkspace:h}=I();r.useEffect(()=>{const t=async()=>{let s=null;try{s=await E(p)}catch{a("/mychecklists");return}if(!s){a("/mychecklists");return}g(s),x(s.name),d(s.name),w(s.checklists||[])};t();const l=s=>{t()};return window.addEventListener("checklistDeleted",l),()=>{window.removeEventListener("checklistDeleted",l)}},[p,a]);const N=t=>{a(`/task/${t.id}`)},k=()=>{c(!0)},C=async t=>{if(t.preventDefault(),o.trim()!==""){if(o===n){c(!1);return}u(!0);try{const l=(h==null?void 0:h.id)||null;await F(parseInt(p),o,l)&&(x(o),c(!1))}catch(l){console.error("Failed to rename folder:",l)}finally{u(!1)}}},y=()=>{d(n),c(!1)};return e.jsxs("div",{className:"flex flex-col h-screen bg-gray-100 scrollbar-hide",children:[e.jsx(S,{onMenuClick:()=>v(!f),currentPage:n}),e.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[e.jsx(L,{isOpen:f,onClose:()=>v(!1)}),e.jsxs("main",{className:"flex-1 overflow-auto scrollbar-hide p-6",children:[e.jsxs("button",{className:"flex items-center text-gray-600 hover:text-gray-900 transition-colors cursor-pointer mb-2",onClick:()=>a("/folders"),children:[e.jsx(z,{className:"w-5 h-5 mr-1"}),e.jsx("span",{className:"font-medium",children:"Back"})]}),e.jsx("div",{className:"mb-8",children:e.jsx("div",{className:"rounded-[30px] p-8 w-full relative",style:{background:D(i)},children:e.jsx("div",{className:"w-full flex justify-center items-center",children:e.jsxs("div",{className:"mb-4 mt-10 rounded-[20px] bg-white md:w-[700px] w-full p-8 shadow-sm",children:[j?e.jsxs("form",{onSubmit:C,className:"flex items-center",children:[e.jsx("input",{type:"text",value:o,onChange:t=>d(t.target.value),className:"text-xl font-semibold text-gray-900 border-b-2 border-blue-500 focus:outline-none bg-transparent flex-1 min-w-0",autoFocus:!0}),e.jsxs("div",{className:"ml-2 flex",children:[e.jsx("button",{type:"submit",disabled:b,className:"p-1 text-green-600 hover:text-green-800",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),e.jsx("button",{type:"button",onClick:y,className:"p-1 text-red-600 hover:text-red-800",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})]}):e.jsxs("div",{className:"flex items-center overflow-hidden",children:[e.jsx("h2",{className:"text-xl font-semibold truncate",children:n}),e.jsx("button",{onClick:k,className:"ml-2 shrink-0 text-gray-500 hover:text-blue-600 cursor-pointer",title:"Edit folder name",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})})})]}),(i==null?void 0:i.description)&&e.jsx("p",{className:"text-gray-600 mt-1",children:i.description}),e.jsxs("div",{className:"mt-2 text-md font-normal text-gray-600",children:[m.length," ",m.length===1?"checklist":"checklists"]})]})})})}),e.jsx(M,{checklists:m,onChecklistClick:N,showHeader:!1})]})]})]})};export{Ce as default};
2//# sourceMappingURL=Folder-BRbQGuQT.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.