PageSourceSearch

https://www.thecloud.so/_next/static/chunks/0i7-_~orjc547.js?dpl=dpl_6jNeAWAF6LfvtzbM7WqKZ4TS97P9

js thecloud.so collected 2026-09-24 14:06:37 UTC 33,012 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,387432,e=>{"use strict";var t=e.i(931718),n=e.i(729386),s=e.i(632137),i=e.i(323490);e.s(["FilterChip",0,function(e){let r,o,a,d,l,u=(0,n.c)(16),{active:c,count:p,emoji:f,label:I,onSelect:m,variant:L,activeVariant:v}=e,g=c&&v?v:void 0===L?"outline":L,S=c?"shadow-current/10 shadow-sm ring-1 ring-current/30":"opacity-55 hover:opacity-100";return u[0]!==S?(r=(0,s.cn)("h-7 cursor-pointer select-none px-3 text-[13px] outline-none backdrop-blur-sm transition-[background-color,border-color,box-shadow,color,opacity,transform] duration-200 ease-out focus-visible:ring-0 active:scale-[0.97]",S),u[0]=S,u[1]=r):r=u[1],u[2]!==c?(o=(0,t.jsx)("button",{"aria-pressed":c,type:"button"}),u[2]=c,u[3]=o):o=u[3],u[4]!==f?(a=f?(0,t.jsx)("span",{"aria-hidden":"true",children:f}):null,u[4]=f,u[5]=a):a=u[5],u[6]!==p?(d=void 0===p?null:(0,t.jsx)("span",{className:"tabular-nums opacity-60",children:p}),u[6]=p,u[7]=d):d=u[7],u[8]!==I||u[9]!==m||u[10]!==g||u[11]!==r||u[12]!==o||u[13]!==a||u[14]!==d?(l=(0,t.jsxs)(i.Badge,{className:r,onClick:m,render:o,variant:g,children:[a,I,d]}),u[8]=I,u[9]=m,u[10]=g,u[11]=r,u[12]=o,u[13]=a,u[14]=d,u[15]=l):l=u[15],l}])},253393,94021,e=>{"use strict";var t=e.i(2587);e.s(["Bookmark",()=>t.default],253393);var n=e.i(931718),s=e.i(729386),i=e.i(283164);e.i(857266);var r=e.i(246257);e.i(116233);var o=e.i(235893),a=e.i(243930),d=e.i(21079),l=e.i(699597),u=e.i(632137),c=e.i(971167),p=e.i(485954),f=e.i(381117),I=e.i(180796);function m(e){let t,i,r,o,d,u,c,p,f=(0,s.c)(22),{comment:m,displayName:L,iconData:v}=e;return f[0]!==L||f[1]!==v?(t={displayName:L,iconData:v},f[0]=L,f[1]=v,f[2]=t):t=f[2],f[3]!==m.authorId||f[4]!==t?(i={userId:m.authorId,preview:t},f[3]=m.authorId,f[4]=t,f[5]=i):i=f[5],f[6]!==L||f[7]!==v?(r=(0,n.jsx)(a.IconDataAvatar,{className:"size-4",icon:v,name:L}),f[6]=L,f[7]=v,f[8]=r):r=f[8],f[9]!==L?(o=(0,n.jsx)(l.Text,{as:"span",className:"font-medium hover:underline",variant:"caption",children:L}),f[9]=L,f[10]=o):o=f[10],f[11]!==r||f[12]!==o?(d=(0,n.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5 transition-opacity hover:opacity-80",children:[r,o]}),f[11]=r,f[12]=o,f[13]=d):d=f[13],f[14]!==i||f[15]!==d?(u=(0,n.jsx)(I.ProfileLink,{target:i,children:d}),f[14]=i,f[15]=d,f[16]=u):u=f[16],f[17]!==m.body?(c=(0,n.jsx)(l.Text,{as:"p",className:"min-w-0 flex-1 pt-px",variant:"bodySmall",children:m.body}),f[17]=m.body,f[18]=c):c=f[18],f[19]!==u||f[20]!==c?(p=(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[u,c]}),f[19]=u,f[20]=c,f[21]=p):p=f[21],p}e.s(["CommentSection",0,function({itemId:e,commentCount:t}){let[s,a]=(0,p.useState)(!1),[l,I]=(0,p.useState)(""),[L,v]=(0,p.useState)(!1),g=(0,r.useQuery)(i.api.feed.comments.queries.getForItem,s?{feedItemId:e}:"skip"),S=(0,r.useMutation)(i.api.feed.comments.mutations.addComment),T=(g??[]).map(e=>e.authorId),{getProfile:b,isLoading:k}=(0,f.useUserProfiles)(T),y=void 0!==g&&!k,w=async()=>{if(l.trim()){v(!0);try{await S({feedItemId:e,body:l.trim()}),I("")}finally{v(!1)}}};return(0,n.jsxs)("div",{className:"mt-2",children:[(0,n.jsxs)(o.Button,{className:"flex items-center gap-1.5 text-muted-foreground text-xs transition-colors hover:text-foreground",onClick:()=>a(!s),size:"xs",variant:"ghost",children:[(0,n.jsx)(c.MessageCircle,{className:"h-3.5 w-3.5"}),t>0?`${String(t)} comment${1===t?"":"s"}`:"Comment"]}),(0,n.jsx)("div",{className:(0,u.cn)("grid transition-[grid-template-rows] duration-200 ease-out",s?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsxs)("div",{className:"mt-3 ml-1 space-y-2 border-border/40 border-l-2 pl-3",children:[s&&t>0&&(0,n.jsx)("div",{className:(0,u.cn)("space-y-2 transition-opacity duration-150",y?"opacity-100":"opacity-0"),children:y?g?.map(e=>{let t=b(e.authorId),s=t.slug??t.displayName;return(0,n.jsx)(m,{comment:e,displayName:s,iconData:t.iconData},e._id)}):null}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(d.Input,{className:"h-8 text-sm",onChange:e=>I(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),w())},placeholder:"Write a comment...",value:l}),(0,n.jsx)(o.Button,{disabled:!l.trim()||L,onClick:w,size:"sm",children:"Send"})]})]})})})]})}],94021)},960036,689388,132836,e=>{"use strict";var t=e.i(931718),n=e.i(729386),s=e.i(485954);let i=(0,s.createContext)(null);function r(){return(0,s.useContext)(i)}e.s(["SwipeToRevealProvider",0,function(e){let r,o,a,d,l,u,c=(0,n.c)(7),{children:p}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(r=new Map,c[0]=r):r=c[0];let f=(0,s.useRef)(r);c[1]===Symbol.for("react.memo_cache_sentinel")?(o=(e,t)=>{f.current.set(e,t)},c[1]=o):o=c[1];let I=o;c[2]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{f.current.delete(e)},c[2]=a):a=c[2];let m=a;c[3]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{for(let[t,n]of f.current)t!==e&&n()},c[3]=d):d=c[3];let L=d;c[4]===Symbol.for("react.memo_cache_sentinel")?(l={closeAll:()=>{for(let e of f.current.values())e()},closeExcept:L,register:I,unregister:m},c[4]=l):l=c[4];let v=l;return c[5]!==p?(u=(0,t.jsx)(i.Provider,{value:v,children:p}),c[5]=p,c[6]=u):u=c[6],u},"useSwipeToRevealContext",0,r],960036),e.s(["useSwipeGestures",0,function(e){let t,i,r=(0,n.c)(5),{enabled:o,rowRef:a,swipe:d}=e;r[0]!==o||r[1]!==a||r[2]!==d?(t=function(){let e=a.current;if(!(e&&o))return;let t=e=>d.onTouchStart(e),n=e=>d.onTouchMove(e),s=()=>d.onTouchEnd(),i=e=>d.onMouseDown(e);return e.addEventListener("touchstart",t,{passive:!0}),e.addEventListener("touchmove",n,{passive:!1}),e.addEventListener("touchend",s),e.addEventListener("mousedown",i),()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchmove",n),e.removeEventListener("touchend",s),e.removeEventListener("mousedown",i)}},i=[o,a,d],r[0]=o,r[1]=a,r[2]=d,r[3]=t,r[4]=i):(t=r[3],i=r[4]),(0,s.useEffect)(t,i)}],689388),e.s(["useSwipeToReveal",0,function(e,t){let n=t?.revealLeftWidth??0,i=t?.revealRightWidth??0,o=t?.onCommitLeft,a=t?.commitLeftRatio??.55,d=!!o,[l,u]=(0,s.use
1State)(0),c=(0,s.useRef)(0),p=(0,s.useRef)(0),f=(0,s.useRef)(0),I=(0,s.useRef)(0),m=(0,s.useRef)("none"),L=(0,s.useRef)("none"),v=(0,s.useRef)(!1),g=r();(0,s.useEffect)(()=>{if(g)return g.register(e,()=>u(0)),()=>g.unregister(e)},[g,e]);let S=e=>{let t,s,r=c.current-e,o=f.current+r;"right"===L.current?(t=-i,s=0):(t="left"===L.current?0:-i,s=d&&I.current>0?I.current:n),u(Math.max(t,Math.min(s,o)))},T=()=>{u(t=>d&&I.current>0&&t>=I.current*a?(queueMicrotask(()=>o?.()),I.current):n>0&&t>=n/2?(queueMicrotask(()=>g?.closeExcept(e)),n):i>0&&t<=-i/2?(queueMicrotask(()=>g?.closeExcept(e)),-i):0)},b=e=>e>0?"left":e<0?"right":"none",k=e=>{e instanceof HTMLElement&&(I.current=e.offsetWidth)};return(0,s.useEffect)(()=>{let e=e=>{v.current&&S(e.clientX)},t=()=>{v.current&&(v.current=!1,L.current="none",T())};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),{close:()=>u(0),committing:d&&I.current>0&&l>=I.current*a,offset:l,onMouseDown:e=>{0===e.button&&(v.current=!0,c.current=e.clientX,f.current=l,k(e.currentTarget),L.current=b(l))},onTouchEnd:()=>{"horizontal"===m.current&&T(),m.current="none",L.current="none"},onTouchMove:e=>{let t=e.touches[0]?.clientX??0,n=e.touches[0]?.clientY??0;if("none"===m.current){let e=Math.abs(t-c.current),s=Math.abs(n-p.current);if(8>Math.sqrt(e*e+s*s))return;m.current=e>=s?"horizontal":"vertical"}"vertical"!==m.current&&(e.preventDefault(),S(t))},onTouchStart:t=>{c.current=t.touches[0]?.clientX??0,p.current=t.touches[0]?.clientY??0,f.current=l,k(t.currentTarget),m.current="none",L.current=b(l),g?.closeExcept(e)}}}],132836)},939923,e=>{"use strict";var t=e.i(206091);e.s(["Save",()=>t.default])},228206,e=>{"use strict";var t=e.i(283164);function n(e,n,s){let i=Date.now(),r=e=>e._id!==n?e:{...e,...s,updatedAt:i};for(let{args:n,value:s}of e.getAllQueries(t.api.todos.queries.getAll))void 0!==s&&e.setQuery(t.api.todos.queries.getAll,n,s.map(r));for(let{args:n,value:s}of e.getAllQueries(t.api.todos.queries.getByDate))void 0!==s&&e.setQuery(t.api.todos.queries.getByDate,n,{...s,tasks:s.tasks.map(r)})}function s(e,t,n){return e.map(e=>e._id===t?{...e,...n}:e)}function i(e,t,n){if(void 0===e)return null;let i=s(e,t,n);return i.some(e=>e._id===t)?i:null}e.s(["applyListMoveToQueries",0,function(e,n){let s={parentId:n.parentId,updatedAt:Date.now()},r=e.getQuery(t.api.todo_lists.queries.getById,{id:n.id});for(let{args:o,value:a}of(r&&e.setQuery(t.api.todo_lists.queries.getById,{id:n.id},{...r,...s}),e.getAllQueries(t.api.todo_lists.queries.getAll))){let r=i(a,n.id,s);r&&e.setQuery(t.api.todo_lists.queries.getAll,o,r)}for(let{args:r,value:o}of e.getAllQueries(t.api.todo_lists.queries.getAllWithCounts)){let a=i(o,n.id,s);a&&e.setQuery(t.api.todo_lists.queries.getAllWithCounts,r,a)}let o=i(e.getQuery(t.api.todo_lists.queries.getAllPersonalForSidebar,{}),n.id,s);o&&e.setQuery(t.api.todo_lists.queries.getAllPersonalForSidebar,{},o);let a=i(e.getQuery(t.api.todo_lists.queries.getAllAccessible,{}),n.id,s);a&&e.setQuery(t.api.todo_lists.queries.getAllAccessible,{},a)},"applyListPatchToQueries",0,function(e,n,i){let r=e.getQuery(t.api.todo_lists.queries.getById,{id:n});for(let{args:o,value:a}of(r&&e.setQuery(t.api.todo_lists.queries.getById,{id:n},{...r,...i}),e.getAllQueries(t.api.todo_lists.queries.getAll)))if(void 0!==a){let r=s(a,n,i);r.some(e=>e._id===n)&&e.setQuery(t.api.todo_lists.queries.getAll,o,r)}for(let{args:r,value:o}of e.getAllQueries(t.api.todo_lists.queries.getAllWithCounts))if(void 0!==o){let a=s(o,n,i);a.some(e=>e._id===n)&&e.setQuery(t.api.todo_lists.queries.getAllWithCounts,r,a)}let o=e.getQuery(t.api.todo_lists.queries.getAllPersonalForSidebar,{});if(void 0!==o){let r=s(o,n,i);r.some(e=>e._id===n)&&e.setQuery(t.api.todo_lists.queries.getAllPersonalForSidebar,{},r)}let a=e.getQuery(t.api.todo_lists.queries.getAllAccessible,{});if(void 0!==a){let r=s(a,n,i);r.some(e=>e._id===n)&&e.setQuery(t.api.todo_lists.queries.getAllAccessible,{},r)}},"applyListReorderToQueries",0,function(e,n){let s=e.getQuery(t.api.todo_lists.queries.getAllPersonalForSidebar,{});if(void 0===s)return;let i=new Map(n.listIds.map((e,t)=>[e,t])),r=s.map(e=>{let t=i.get(e._id);return void 0===t?e:{...e,sortOrder:t}});e.setQuery(t.api.todo_lists.queries.getAllPersonalForSidebar,{},r)},"applyTodoAssignmentChange",0,function(e,n){let s=e=>{if(e._id!==n.todoId)return e;let t={...e};return Reflect.set(t,"assignees",n.assignees),t};for(let{args:n,value:i}of e.getAllQueries(t.api.todos.queries.getAll))void 0!==i&&e.setQuery(t.api.todos.queries.getAll,n,i.map(s))},"applyTodoReorder",0,function(e,t){let s=new Map;for(let[e,n]of t.orderedIds.entries())s.set(n,1e3*e);for(let i of t.orderedIds){let r=s.get(i);if(void 0===r)continue;let o={sortOrder:r};t.moveToStatus&&(o.statusId=t.moveToStatus.statusId,o.completed=t.moveToStatus.completed),n(e,i,o)}},"applyTodoStatusChange",0,function(e,t){n(e,t.todoId,{completed:t.completed,sortOrder:t.sortOrder,statusId:t.statusId})},"applyTodoUpdate",0,function(e,t){let s={};void 0!==t.completed&&(s.completed=t.completed),void 0!==t.date&&(s.date=t.date),void 0!==t.dueDate&&(s.dueDate=t.dueDate??void 0),void 0!==t.descriptionJson&&(s.descriptionJson=t.descriptionJson),void 0!==t.imageUrls&&(s.imageUrls=t.imageUrls),void 0!==t.note&&(s.note=t.note),void 0!==t.parentId&&(s.parentId=t.parentId??void 0),void 0!==t.priority&&(s.priority=t.priority??void 0),void 0!==t.sortOrder&&(s.sortOrder=t.sortOrder),void 0!==t.text&&(s.text=t.text),n(e,t.id,s)},"buildListUpdatePatch",0,function(e){var t;return{name:e.name,...void 0===(t=e.iconData)?{}:null===t?{iconData:void 0}:{iconData:t},updatedAt:Date.now()}},"deriveCompletedFromGroup",0,function(e){return"complete"===e}])},998873,721538,513270,439537,529877,6861,e=>{"use strict";var t=e.i(729386),n=e.i(848280),s=e.i(34388);let i="Unfiled";function r(e,t){return"all"===t?[]:e.includes(t)?e.filter(e=>e!==t):[...e.filter(e=>"all"!==e),t]}e.s(["ALL_SCOPE_ID",0,"all","buildTaskScopeTabs",0,function(e){let t=new Map;for(let n of e.todos){let s=n.listId??i,r=n.listId?e.listNames.get(n.listId)??n.listName??"List":i,o=t.get(s);o?o.count+=1:t.set(s,{count:1,label:r})}let n=[...t.entries()].map(([e,t])=>({count:t.count,id:e,label:t.label})).toSorted((e,t)=>e.label.localeCompare(t.label));return[{count:e.todos.length,id:"all",label:"All"},...n]},"filterTasksByScope",0,function(e,t){let n=t.filter(e=>"all"!==e);if(0===n.length)return[...e];let s=new Set(n),r=e.filter(e=>s.has(e.listId??i));return 0===r.length?[...e]:r},"toggleTaskScope",0,r],721538);var o=e.i(868280);let a={backlog:"Backlog",blocked:"Blocked",canceled:"Canceled",complete:"Done",in_progress:"In Progress",in_review:"In Review",todo:"Todo"};e.s(["STATUS_GLYPHS",0,["backlog","todo","in_progress","in_review","blocked","done","canceled"],"STATUS_GROUPS",0,["backlog","todo","in_progress","in_review","blocked","complete","canceled"],"STATUS_GROUP_LABELS",0,a],513270);let d=["low","medium","high","urgent"],l={high:"High",low:"Low",medium:"Medium",urgent:"Urgent"};e.s(["TASK_PRIORITIES",0,d,"taskPriorityLabel",0,function(e){return l[e]}],439537);let u={due:"all",groupBy:"none",search:"",sortBy:"manual"}
1,c=o.z.object({assigneeId:o.z.string().optional(),due:o.z.enum(["all","no_due","overdue","scheduled"]),groupBy:o.z.enum(["none","status","assignee","project","label"]),labelId:o.z.string().optional(),priority:o.z.enum(d).optional(),projectId:o.z.string().optional(),search:o.z.string(),sortBy:o.z.enum(["manual","created_newest","due_soonest","priority","title"]),statusId:o.z.string().optional()}),p=o.z.object({config:c,id:o.z.string(),name:o.z.string()});function f(e){let t=c.safeParse(e);return t.success?t.data:u}function I(e){let t=o.z.array(p).safeParse(e);return t.success?t.data:[]}let m={high:1,low:3,medium:2,urgent:0};function L(e){return e.listId??""}e.s(["DEFAULT_TASK_VIEW",0,u,"deriveTaskView",0,function(e,t,n=Date.now()){let s=e.filter(e=>{var s;let i;return(!(i=t.search.trim().toLowerCase())||[e.text,e.identifier,e.projectName,...e.labels?e.labels.map(e=>e.name):[]].some(e=>e?.toLowerCase().includes(i)===!0))&&(s=t.due,"all"===s||("no_due"===s?void 0===e.dueDate:"scheduled"===s?void 0!==e.dueDate:void 0!==e.dueDate&&e.dueDate<n&&!e.completed))&&(void 0===t.statusId||e.statusId===t.statusId)&&(void 0===t.priority||e.priority===t.priority)&&(void 0===t.assigneeId||e.assignees?.some(e=>e.userId===t.assigneeId)===!0)&&(void 0===t.projectId||e.projectId===t.projectId)&&(void 0===t.labelId||e.labels?.some(e=>e._id===t.labelId)===!0)}).toSorted((e,n)=>{var s;return"created_newest"===(s=t.sortBy)?(n.createdAt??0)-(e.createdAt??0):"due_soonest"===s?(e.dueDate??Number.MAX_SAFE_INTEGER)-(n.dueDate??Number.MAX_SAFE_INTEGER):"priority"===s?(e.priority?m[e.priority]:4)-(n.priority?m[n.priority]:4):"title"===s?e.text.localeCompare(n.text):e.sortOrder-n.sortOrder});return"none"===t.groupBy?{groups:[],items:s}:function(e,t){let n=new Map;for(let s of e){let e=function(e,t){if("status"===t){let t=e.statusGroup??(e.completed?"complete":"todo");return{key:t,label:a[t]}}if("assignee"===t){let t=e.assignees?.[0];return{key:t?.userId??"unassigned",label:t?.displayName??"Unassigned"}}if("project"===t)return{key:e.projectId??"no_project",label:e.projectName??"No project"};let n=e.labels?.[0];return{key:n?._id??"no_label",label:n?.name??"No label"}}(s,t),i=n.get(e.key);i?i.tasks.push(s):n.set(e.key,{label:e.label,tasks:[s]})}let s=[],i=[];for(let[e,t]of n){let[n]=t.tasks;n&&(s.push({firstTaskId:n._id,key:e,label:t.label}),i.push(...t.tasks))}return{groups:s,items:i}}(s,t.groupBy)},"parseSavedTaskViews",0,I,"parseTaskViewConfig",0,f],529877);let{Provider:v,useSelector:g,useSelectorOptional:S,useStoreInstance:T,createStoreInstance:b}=(0,n.createAppStore)({createState:(e,t,n)=>{let i=n?.openTabs?.map(e=>({iconData:e.iconData,listId:e.listId?(0,s.assertId)(e.listId):void 0,parentListId:e.parentListId?(0,s.assertId)(e.parentListId):null,teamId:e.teamId?(0,s.assertId)(e.teamId):null,title:e.title}))??[];return{addTab:(t,n,s,i,r)=>e(e=>{let o={iconData:r,listId:t,parentListId:n,teamId:s,title:i},a=L(o);if(e.openTabs.some(e=>L(e)===a))return{currentListId:t,currentParentListId:n,lastSelectedListIconData:r,lastSelectedListName:i??null,teamId:s};let d=e.currentListId===t;return{currentListId:t,currentParentListId:n,lastSelectedListIconData:r,lastSelectedListName:i??null,openTabs:[...0!==e.openTabs.length||d?[...e.openTabs]:e.currentListId?[{iconData:e.lastSelectedListIconData,listId:e.currentListId,parentListId:e.currentParentListId,teamId:e.teamId,title:e.lastSelectedListName??void 0}]:[],o],teamId:s}}),applySavedTaskView:t=>e(e=>{let n=e.savedTaskViews.find(e=>e.id===t);return n?{selectedSavedTaskViewId:t,taskViewConfig:n.config}:{}}),closeTab:t=>e(e=>{if(e.openTabs.length<=1)return{currentListId:null,currentParentListId:null,lastSelectedListIconData:void 0,lastSelectedListName:null,openTabs:[],teamId:null};let n=e.openTabs.filter((e,n)=>n!==t),s=Math.min(t,n.length-1),i=n[s];return{currentListId:i?.listId??null,currentParentListId:i?.parentListId??null,lastSelectedListIconData:i?.iconData,lastSelectedListName:i?.title??null,openTabs:n,teamId:i?.teamId??null}}),currentListId:n?.currentListId??null,currentParentListId:n?.currentParentListId??null,deleteSavedTaskView:t=>e(e=>({savedTaskViews:e.savedTaskViews.filter(e=>e.id!==t),selectedSavedTaskViewId:e.selectedSavedTaskViewId===t?null:e.selectedSavedTaskViewId}
1)),deletionRedoStack:[],deletionUndoStack:[],editingListId:null,editingParentListId:null,editingParentListName:"",expandedNoteIdsByList:n?.expandedNoteIdsByList??{},expandedSections:n?.expandedSections??{},focusInputKey:0,goBack:()=>{let{listHistory:n}=t();if(0===n.length)return void e({currentListId:null,lastSelectedListIconData:void 0,lastSelectedListName:null});let s=[...n];e({currentListId:s.pop()??null,lastSelectedListIconData:void 0,lastSelectedListName:null,listHistory:s})},inboxKanbanEnabled:n?.inboxKanbanEnabled??!1,isSidebarOpen:n?.isSidebarOpen??!0,lastSelectedListIconData:n?.lastSelectedListIconData,lastSelectedListName:n?.lastSelectedListName??null,lastUsedListId:n?.lastUsedListId??null,listHistory:[],moveRedoToUndo:()=>{let n=t().deletionRedoStack.at(-1);return n?(e(e=>({deletionRedoStack:e.deletionRedoStack.slice(0,-1),deletionUndoStack:[...e.deletionUndoStack,n]})),n):null},moveUndoToRedo:()=>{let n=t().deletionUndoStack.at(-1);return n?(e(e=>({deletionRedoStack:[...e.deletionRedoStack,n],deletionUndoStack:e.deletionUndoStack.slice(0,-1)})),n):null},openTabs:i,openTaskId:n?.openTaskId?(0,s.assertId)(n.openTaskId):null,recordDeletion:t=>e(e=>({deletionRedoStack:[],deletionUndoStack:[...e.deletionUndoStack,t]})),reorderTabs:(t,n)=>e(e=>{if(e.openTabs.length<2||t===n)return{};let s=[...e.openTabs],[i]=s.splice(t,1);return i?(s.splice(n,0,i),{openTabs:s}):{}}),requestFocusInput:()=>e({focusInputKey:t().focusInputKey+1}),resetTaskView:()=>e({selectedSavedTaskViewId:null,taskViewConfig:u}),savedTaskViews:I(n?.savedTaskViews),saveTaskView:t=>{let n=t.trim();if(!n)return;let s=crypto.randomUUID();e(e=>{let t=e.savedTaskViews.find(e=>e.name.toLowerCase()===n.toLowerCase());return t?{savedTaskViews:e.savedTaskViews.map(s=>s.id===t.id?{...s,config:e.taskViewConfig,name:n}:s),selectedSavedTaskViewId:t.id}:{savedTaskViews:[...e.savedTaskViews,{config:e.taskViewConfig,id:s,name:n}],selectedSavedTaskViewId:s}})},scrollToNewTask:()=>e({scrollToNewTaskKey:t().scrollToNewTaskKey+1}),scrollToNewTaskKey:0,selectedSavedTaskViewId:n?.selectedSavedTaskViewId??null,selectedScopeIds:n?.selectedScopeIds??[],selectList:(n,s,i,r,o)=>{e(function(e,t){let{listId:n,parentListId:s,teamId:i,title:r,iconData:o}=t,a={currentListId:n,currentParentListId:s,lastSelectedListIconData:o,lastSelectedListName:r??null,openTaskId:null,teamId:i};if(0===e.openTabs.length)return{...a,listHistory:null===e.currentListId?e.listHistory:[...e.listHistory,e.currentListId]};let d=L(t);if(e.openTabs.findIndex(e=>L(e)===d)>=0)return a;let l=e.openTabs.findIndex(t=>t.listId===e.currentListId),u=[...e.openTabs];return u[l>=0?l:0]=t,{...a,openTabs:u}}(t(),{iconData:o,listId:n,parentListId:s??null,teamId:i??null,title:r}))},selectMyTasks:()=>{e({currentListId:null,currentParentListId:null,lastSelectedListIconData:void 0,lastSelectedListName:null,listHistory:[],openTaskId:null,teamId:null})}
1,selectParentList:(t,n)=>{e({currentListId:null,currentParentListId:t,lastSelectedListIconData:void 0,lastSelectedListName:null,listHistory:[],openTaskId:null,teamId:n??null})},selectTab:t=>e(e=>{let n=e.openTabs[t];return n?{currentListId:n.listId??null,currentParentListId:n.parentListId,lastSelectedListIconData:n.iconData,lastSelectedListName:n.title??null,openTaskId:null,teamId:n.teamId}:{}}),selectTeam:t=>{e({currentListId:null,currentParentListId:null,lastSelectedListIconData:void 0,lastSelectedListName:null,listHistory:[],openTaskId:null,teamId:t})},setCurrentListId:n=>{let{currentListId:s}=t();e({currentListId:n,listHistory:null===s?t().listHistory:[...t().listHistory,s],openTaskId:null})},setEditingListId:t=>e({editingListId:t}),setEditingParentListId:t=>e({editingParentListId:t}),setEditingParentListName:t=>e({editingParentListName:t}),setInboxKanbanEnabled:t=>e({inboxKanbanEnabled:t}),setLastUsedListId:t=>e({lastUsedListId:t}),setNoteExpanded:(e,n,s)=>{t().setNoteExpandedByKey(String(e),n,s)},setNoteExpandedByKey:(n,s,i)=>{let r,{expandedNoteIdsByList:o}=t(),a=o[n]??[];r=i?a.includes(s)?a:[...a,s]:a.filter(e=>e!==s),e({expandedNoteIdsByList:{...o,[n]:r}})},setOpenTaskId:t=>e({openTaskId:t}),setSidebarOpen:t=>e({isSidebarOpen:t}),setViewMode:t=>e({viewMode:t}),taskViewConfig:f(n?.taskViewConfig),teamId:n?.teamId??null,toggleScopeId:t=>e(e=>({selectedScopeIds:r(e.selectedScopeIds,t)})),toggleSection:n=>{let{expandedSections:s}=t(),i=!1!==s[n];e({expandedSections:{...s,[n]:!i}})},toggleSidebar:()=>e({isSidebarOpen:!t().isSidebarOpen}),updateTaskViewConfig:t=>e(e=>({selectedSavedTaskViewId:null,taskViewConfig:{...e.taskViewConfig,...t}})),viewMode:n?.viewMode??"gallery"}},getSerializableState:e=>({currentListId:e.currentListId,currentParentListId:e.currentParentListId,expandedNoteIdsByList:e.expandedNoteIdsByList,expandedSections:e.expandedSections,inboxKanbanEnabled:e.inboxKanbanEnabled,isSidebarOpen:e.isSidebarOpen,lastSelectedListIconData:e.lastSelectedListIconData,lastSelectedListName:e.lastSelectedListName,lastUsedListId:e.lastUsedListId,openTabs:e.openTabs.map(e=>({iconData:e.iconData,listId:e.listId,parentListId:e.parentListId,teamId:e.teamId,title:e.title})),openTaskId:e.openTaskId,savedTaskViews:e.savedTaskViews,selectedSavedTaskViewId:e.selectedSavedTaskViewId,selectedScopeIds:e.selectedScopeIds,taskViewConfig:e.taskViewConfig,teamId:e.teamId,viewMode:e.viewMode}),hydrateFromSerializable:e=>{let t;return e?{...{...void 0!==e.currentListId&&{currentListId:e.currentListId??null},...void 0!==e.currentParentListId&&{currentParentListId:e.currentParentListId??null},...void 0!==e.teamId&&{teamId:e.teamId??null},...void 0!==e.lastUsedListId&&{lastUsedListId:e.lastUsedListId??null},...void 0!==e.lastSelectedListIconData&&{lastSelectedListIconData:e.lastSelectedListIconData},...void 0!==e.lastSelectedListName&&{lastSelectedListName:e.lastSelectedListName??null},...void 0!==e.openTaskId&&{openTaskId:e.openTaskId?(0,s.assertId)(e.openTaskId):null}},...0===(t=e.openTabs?.map(e=>({iconData:e.iconData,listId:e.listId?(0,s.assertId)(e.listId):void 0,parentListId:e.parentListId?(0,s.assertId)(e.parentListId):null,teamId:e.teamId?(0,s.assertId)(e.teamId):null,title:e.title}))??[]).length?{}:{openTabs:t},...{...void 0!==e.viewMode&&{viewMode:e.viewMode??"gallery"},...void 0!==e.expandedNoteIdsByList&&{expandedNoteIdsByList:e.expandedNoteIdsByList??{}},...void 0!==e.expandedSections&&{expandedSections:e.expandedSections??{}},...void 0!==e.isSidebarOpen&&{isSidebarOpen:e.isSidebarOpen??!0},...void 0!==e.inboxKanbanEnabled&&{inboxKanbanEnabled:e.inboxKanbanEnabled??!1},taskViewConfig:f(e.taskViewConfig),...void 0!==e.savedTaskViews&&{savedTaskViews:I(e.savedTaskViews)},...void 0!==e.selectedSavedTaskViewId&&{selectedSavedTaskViewId:e.selectedSavedTaskViewId},...void 0!==e.selectedScopeIds&&{selectedScopeIds:e.selectedScopeIds??[]}}}:{}}});e.s(["TasksProvider",0,v,"useTasksSelector",0,g,"useTasksSelectorOptional",0,S],6861);let k=()=>{};function y(e){return e.currentListId}function w(e){return e.setCurrentListId}function h(e){return e.selectList}function x(e){return e.lastSelectedListIconData}function N(e){return e.lastSelectedListName}function _(e){return e.lastUsedListId}function E(e){return e.setLastUsedListId}let V=[];function D(e){return e.setNoteExpanded}function P(e){return e.setNoteExpandedByKey}function A(e){return e.currentParentListId}function C(e){return e.teamId}function U(e){return e.selectMyTasks}function R(e){return e.selectParentList}function M(e){return e.selectTeam}function B(e){return e.openTaskId}function q(e){return e.setOpenTaskId}function O(e){return e.expandedSections}function j(e){return e.toggleSection}function Q(e){return e.selectedScopeIds}function K(e){return e.toggleScopeId}function z(e){return e.editingParentListId}function F(e){return e.setEditingParentListId}function G(e){return e.editingParentListName}function H(e){return e.setEditingParentListName}function W(e){return e.editingListId}function X(e){return e.setEditingListId}function J(e){return e.isSidebarOpen}function Y(e){return e.inboxKanbanEnabled}function $(e){return e.setInboxKanbanEnabled}function Z(e){return e.setSidebarOpen}function ee(e){return e.focusInputKey}function et(e){return e.requestFocusInput}function en(e){return e.scrollToNewTask}function es(e){return e.scrollToNewTaskKey}function ei(e){return e.openTabs}function er(e){return e.addTab}function eo(e){return e.closeTab}function ea(e){return e.selectTab}function ed(e){return e.reorderTabs}function el(e){return e.taskViewConfig}function eu(e){return e.updateTaskViewConfig}function ec(e){return e.savedTaskViews}function ep(e){return e.selectedSavedTaskViewId}function ef(e){return e.saveTaskView}function eI(e){return e.applySavedTaskView}function em(e){return e.deleteSavedTaskView}function eL(e){return e.resetTaskView}function ev(e){return e.recordDeletion}function eg(e){return e.moveUndoToRedo}function eS(e){return e.moveRedoToUndo}function eT(e){return e.deletionUndoStack.length>0}function eb(e){return e.deletionRedoStack.length>0}e.s(["useAddTab",0,function(){return g(er)},"useApplySavedTaskView",0,function(){return g(eI)},"useCanRedoDeletion",0,function(){return g(eb)},"useCanUndoDeletion",0,function(){return g(eT)},"useCloseTab",0,function(){return g(eo)},"useCurrentListId",0,function(){return g(y)},"useCurrentParentListId",0,function(){return g(A)},"useDeleteSavedTaskView",0,function(){return g(em)},"useEditingListId",0,function(){return g(W)},"useEditingParentListId",0,function(){return g(z)},"useEditingParentListName",0,function(){return g(G)},"useExpandedNoteIds",0,function(e){let n,s=(0,t.c)(2);return s[0]!==e?(n=t=>e?t.expandedNoteIdsByList[String(e)]??V:V,s[0]=e,s[1]=n):n=s[1],g(n)},"useExpandedNoteIdsByKey",0,function(e){let n,s=(0,t.c)(2);return s[0]!==e?(n=t=>e?t.expandedNoteIdsByList[e]??V:V,s[0]=e,s[1]=n):n=s[1],g(n)},"useExpandedSections",0,function(){return g(O)},"useFocusInputKey",0,function(){return g(ee)}
1,"useInboxKanbanEnabled",0,function(){return g(Y)},"useIsSidebarOpen",0,function(){return g(J)},"useLastSelectedListIconData",0,function(){return g(x)},"useLastSelectedListName",0,function(){return g(N)},"useLastUsedListId",0,function(){return g(_)},"useMoveRedoToUndo",0,function(){return g(eS)},"useMoveUndoToRedo",0,function(){return g(eg)},"useOpenTabs",0,function(){return g(ei)},"useOpenTaskId",0,function(){return g(B)},"useRecordDeletion",0,function(){return S(ev,k)},"useReorderTabs",0,function(){return g(ed)},"useRequestFocusInput",0,function(){return g(et)},"useResetTaskView",0,function(){return g(eL)},"useSaveTaskView",0,function(){return g(ef)},"useSavedTaskViews",0,function(){return g(ec)},"useScrollToNewTask",0,function(){return g(en)},"useScrollToNewTaskKey",0,function(){return g(es)},"useSelectList",0,function(){return g(h)},"useSelectMyTasks",0,function(){return g(U)},"useSelectParentList",0,function(){return g(R)},"useSelectTab",0,function(){return g(ea)},"useSelectTeam",0,function(){return g(M)},"useSelectedSavedTaskViewId",0,function(){return g(ep)},"useSelectedScopeIds",0,function(){return g(Q)},"useSetCurrentListId",0,function(){return g(w)},"useSetEditingListId",0,function(){return g(X)},"useSetEditingParentListId",0,function(){return g(F)},"useSetEditingParentListName",0,function(){return g(H)},"useSetInboxKanbanEnabled",0,function(){return g($)},"useSetLastUsedListId",0,function(){return g(E)},"useSetNoteExpanded",0,function(){return g(D)},"useSetNoteExpandedByKey",0,function(){return g(P)},"useSetOpenTaskId",0,function(){return g(q)},"useSetSidebarOpen",0,function(){return g(Z)},"useTaskViewConfig",0,function(){return g(el)},"useTeamId",0,function(){return g(C)},"useToggleScopeId",0,function(){return g(K)},"useToggleSection",0,function(){return g(j)},"useUpdateTaskViewConfig",0,function(){return g(eu)}],998873)},884171,e=>{"use strict";var t=e.i(729386),n=e.i(283164);e.i(857266);var s=e.i(246257),i=e.i(220023),r=e.i(228206),o=e.i(791191),a=e.i(998873);function d(e){let t=e?.teamId??null,n=e?.parentId??null;return null!=n?{parentId:n}:null!=t?{teamId:t}:{}}function l(){let e,i,r,o,d=(0,t.c)(12),l=(0,a.useRecordDeletion)(),p=(0,s.useMutation)(n.api.todo_lists.mutations.deleteList);d[0]!==p||d[1]!==l?(e=e=>(l({kind:"list",id:e.id}),p(e)),d[0]=p,d[1]=l,d[2]=e):e=d[2];let f=e,I=(0,s.useMutation)(n.api.todo_lists.mutations.create),m=(0,s.useMutation)(n.api.todo_lists.mutations.update);d[3]!==m?(i=m.withOptimisticUpdate(c),d[3]=m,d[4]=i):i=d[4];let L=(0,s.useMutation)(n.api.todo_lists.list_organization.moveList);return d[5]!==L?(r=L.withOptimisticUpdate(u),d[5]=L,d[6]=r):r=d[6],d[7]!==f||d[8]!==I||d[9]!==i||d[10]!==r?(o={createList:I,updateList:i,deleteList:f,moveList:r},d[7]=f,d[8]=I,d[9]=i,d[10]=r,d[11]=o):o=d[11],o}function u(e,t){(0,r.applyListMoveToQueries)(e,t)}function c(e,t){let n=(0,r.buildListUpdatePatch)(t);(0,r.applyListPatchToQueries)(e,t.id,n)}e.s(["useTodoLists",0,function(e){let r,a=(0,t.c)(9),{gate:u,isGuest:c}=(0,i.useGuestGate)(),p=(0,o.useLocalTodoListsAdapter)(),f=d(e),I=(0,s.useQuery)(n.api.todo_lists.queries.getAll,u(f))??[],m=l();if(c){let e;return a[0]!==p.createList||a[1]!==p.deleteList||a[2]!==p.lists||a[3]!==p.moveList||a[4]!==p.updateList?(e={lists:p.lists,createList:p.createList,updateList:p.updateList,deleteList:p.deleteList,moveList:p.moveList},a[0]=p.createList,a[1]=p.deleteList,a[2]=p.lists,a[3]=p.moveList,a[4]=p.updateList,a[5]=e):e=a[5],e}return a[6]!==I||a[7]!==m?(r={lists:I,...m},a[6]=I,a[7]=m,a[8]=r):r=a[8],r},"useTodoListsWithCounts",0,function(e){let r,a,u,c,p,f=(0,t.c)(18),{gate:I,isGuest:m}=(0,i.useGuestGate)(),L=(0,o.useLocalTodoListsAdapter)();if(f[0]!==e||f[1]!==I){let t=d(e);r=s.useQuery,a=n.api.todo_lists.queries.getAllWithCounts,u=I(t),f[0]=e,f[1]=I,f[2]=r,f[3]=a,f[4]=u}else r=f[2],a=f[3],u=f[4];let v=r(a,u);f[5]!==v?(c=v??[],f[5]=v,f[6]=c):c=f[6];let g=c,S=void 0===v,T=l();if(m){let e;return f[7]!==L.createList||f[8]!==L.deleteList||f[9]!==L.isLoading||f[10]!==L.lists||f[11]!==L.moveList||f[12]!==L.updateList?(e={lists:L.lists,isLoading:L.isLoading,createList:L.createList,updateList:L.updateList,deleteList:L.deleteList,moveList:L.moveList},f[7]=L.createList,f[8]=L.deleteList,f[9]=L.isLoading,f[10]=L.lists,f[11]=L.moveList,f[12]=L.updateList,f[13]=e):e=f[13],e}return f[14]!==S||f[15]!==g||f[16]!==T?(p={lists:g,isLoading:S,...T},f[14]=S,f[15]=g,f[16]=T,f[17]=p):p=f[17],p}])},276153,e=>{"use strict";var t=e.i(632137);e.s(["getInlineEditFieldClasses",0,function(e="normal"){return(0,t.cn)("h-auto min-w-0 rounded-none bg-transparent p-0 text-sm outline-none hover:bg-transparent focus-visible:bg-transparent","normal"===e&&"font-normal","medium"===e&&"font-medium","semibold"===e&&"font-semibold")}])},451276,e=>{"use strict";var t=e.i(535114);e.s(["Redo2",()=>t.default])},1736,e=>{"use strict";var t=e.i(729386),n=e.i(697979),s=e.i(220023);function i(e){return e.catch(e=>{console.error("Guest write failed:",e)}),e}function r(){}function o(){}e.s(["useGuestFirstWrite",0,function(){let e,a,d=(0,t.c)(6),{isGuest:l,isAuthenticated:u}=(0,s.useGuestGate)();d[0]!==l?(e=function(e){if(l){let t=(0,n.notifyGuestCreate)();return t?i(t.then(e).then(o)):i(Promise.reject(Error("Guest write cannot land: guest-create sink is not registered")))}return i(Promise.resolve().then(e).then(r))},d[0]=l,d[1]=e):e=d[1];let c=e;return d[2]!==u||d[3]!==l||d[4]!==c?(a={runGuestWrite:c,isGuest:l,isAuthenticated:u},d[2]=u,d[3]=l,d[4]=c,d[5]=a):a=d[5],a}])}]);

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.