PageSourceSearch

https://teamboost.ai/_next/static/chunks/3406-9a999d7e0417a75a.js

js teamboost.ai collected 2026-10-05 16:27:36 UTC 22,468 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="a5372714-7ad7-4f3b-9a07-78fc2eba5718",e._sentryDebugIdIdentifier="sentry-dbid-a5372714-7ad7-4f3b-9a07-78fc2eba5718")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3406],{73323:function(e,s,a){a.d(s,{y:function(){return b}});var t=a(85893),l=a(55112),r=a(35162),n=a(41352),i=a(36316),d=a(49461),c=a(52566),o=a(13742),u=a(14640),x=a(67294),m=a(9473),_=a(43484),h=a(48565),p=a(41060),g=a(48975),N=a(483),f=a(25222),E=a(23313),y=a(91982),v=a(60119);let b=e=>{let{task:s,isOpen:a,onOpenChange:b}=e,j=(0,u.useTranslations)(),A=(0,m.v9)(e=>e.current.selectedOrganization),[S,C]=(0,x.useState)(null),[w,T]=(0,x.useState)(!1),{mutateAsync:k,isPending:P}=(0,E.kk)(),{isStreaming:R,startStream:L,reset:O}=(0,y.lL)({organizationId:(null==A?void 0:A.id)||0,onGenerating:e=>{C(e)},onComplete:e=>{C(e)}});(0,x.useEffect)(()=>{a||(C(null),T(!1),O())},[a,O]),(0,x.useEffect)(()=>{a&&s&&!w&&!R&&(T(!0),L(s.title,s.summary,j("APP__AI_TASK_LUCKY_ENHANCER__AUTO_CONTEXT")))},[a,s,w,R,L,j]);let D=async()=>{if(s&&S&&!P)try{await k({taskId:s.id,organizationId:null==A?void 0:A.id,updates:{title:S.title,summary:S.description}}),(0,f.Am)({title:j("APP__AI_TASK_GENERATOR_DIALOG__TOAST_APPLY_TITLE"),description:j("APP__AI_TASK_GENERATOR_DIALOG__TOAST_APPLY_DESC")}),b(!1)}catch(e){}},I=()=>{O(),b(!1)};if(!s)return null;let K=S&&(S.title!==s.title||S.description!==s.summary);return(0,t.jsx)(h.Vq,{open:a,onOpenChange:b,children:(0,t.jsxs)(h.cZ,{className:"max-w-4xl h-[80vh] flex flex-col p-0 overflow-hidden border-none bg-white/95 backdrop-blur-xl shadow-2xl",children:[(0,t.jsx)(h.fK,{className:"px-6 py-4 border-b bg-gray-50 flex flex-col space-y-1.5 text-center sm:text-left sm:rounded-t-lg shrink-0",children:(0,t.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-primary-400 to-primary-600 flex items-center justify-center shadow-sm",children:(0,t.jsx)(r.Z,{className:"h-5 w-5 text-white"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(h.$N,{className:"text-lg font-semibold text-gray-900",children:j("APP__AI_TASK_LUCKY_ENHANCER__TITLE")}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1 font-medium",children:j("APP__AI_TASK_LUCKY_ENHANCER__SUBTITLE")})]})]}),(0,t.jsx)(_.zx,{variant:"ghost",size:"sm",onClick:()=>b(!1),className:"h-8 w-8 p-0 hover:bg-gray-200/50 rounded-full",children:(0,t.jsx)(n.Z,{className:"h-4 w-4 text-gray-500"})})]})}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden bg-gray-50/30 p-8 flex flex-col items-center justify-center",children:(0,t.jsxs)("div",{className:"w-full max-w-2xl bg-white border border-primary-100 rounded-[24px] shadow-sm overflow-hidden flex flex-col relative group",children:[R&&(0,t.jsx)("div",{className:"z-20 w-full",children:(0,t.jsxs)("div",{className:"p-5 space-y-4 animate-in fade-in zoom-in-95 slide-in-from-top-2 duration-500 w-full h-full",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-primary-500 rounded-full animate-ping opacity-20"}),(0,t.jsx)("div",{className:"relative w-10 h-10 rounded-full bg-gradient-to-br from-primary-500 to-primary-600 flex items-center justify-center shrink-0 shadow-lg shadow-primary-200 ring-2 ring-white",children:(0,t.jsx)(i.Z,{className:"w-5 h-5 text-white animate-spin"})})]}),(0,t.jsxs)("div",{className:"space-y-1 flex-1 min-w-0",children:[(0,t.jsx)("h4",{className:"text-sm font-bold text-gray-900",children:j("APP__AI_TASK_LUCKY_ENHANCER__STREAMING_TITLE")}),(0,t.jsx)("p",{className:"text-[10px] text-gray-500 font-medium leading-relaxed",children:j("APP__AI_TASK_LUCKY_ENHANCER__STREAMING_DESC")})]})]}),(0,t.jsx)(g.Z,{className:"bg-primary-50"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-[9px] font-black text-gray-400 uppercase tracking-widest",children:[(0,t.jsx)("span",{children:j("APP__AI_TASK_LUCKY_ENHANCER__LABEL_PROCESSING")}),(0,t.jsx)("span",{className:"text-primary-600 animate-pulse",children:j("APP__AI_TASK_LUCKY_ENHANCER__LABEL_THINKING")})]}),(0,t.jsx)("div",{className:"h-1.5 w-full bg-gray-100 rounded-full overflow-hidden",children:(0,t.jsx)("div",{className:"h-full bg-gradient-to-r from-primary-500 to-primary-500 w-full animate-[shimmer_2s_infinite_linear] -translate-x-full"})}),(0,t.jsxs)("div",{className:"space-y-2 pt-1",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(N.O,{className:"h-2 w-16 bg-primary-50"}),(0,t.jsx)(N.O,{className:"h-2 w-full bg-gray-100"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(N.O,{className:"h-2 w-8 bg-primary-50"}),(0,t.jsx)(N.O,{className:"h-2 w-3/4 bg-gray-100"})]}),(0,t.jsx)(N.O,{className:"h-2 w-1/2 bg-gray-100 ml-10"})]})]}),(0,t.jsxs)(_.zx,{variant:"outline",size:"sm",onClick:I,className:"mt-4 w-full",children:[(0,t.jsx)(n.Z,{className:"h-4 w-4 mr-2"}),j("APP__AI_TASK_LUCKY_ENHANCER__BTN_CANCEL")]})]})}),K&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.x,{className:"flex-1 max-h-[60vh]",children:(0,t.jsxs)("div",{className:"p-8 space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("label",{className:"text-[10px] font-black text-primary-400 uppercase tracking-widest flex items-center gap-2",children:[(0,t.jsx)(d.Z,{className:"h-3 w-3"}),j("APP__AI_TASK_LUCKY_ENHANCER__LABEL_ENHANCED_TITLE")]}),(0,t.jsx)("div",{className:"text-xl font-bold text-gray-900 leading-tight",children:(0,t.jsx)(l.Gn,{text:S.title,isComplete:!R})})]}),(0,t.jsx)(g.Z,{className:"bg-gray-100"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("label",{className:"text-[10px] font-black text-primary-400 uppercase tracking-widest flex items-center gap-2",children:[(0,t.jsx)(c.Z,{className:"h-3 w-3"}),j("APP__AI_TASK_LUCKY_ENHANCER__LABEL_ENHANCED_SUMMARY")]}),(0,t.jsx)("div",{className:"text-sm text-gray-600 leading-relaxed font-medium whitespace-pre-wrap",children:(0,t.jsx)(l.Gn,{text:S.description,isComplete:!R})})]})]})}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 w-full p-8",children:[(0,t.jsx)(_.zx,{size:"lg",variant:"destructive",onClick:()=>b(!1),className:"flex-1 px-6 rounded-xl font-bold",children:j("APP__AI_TASK_LUCKY_ENHANCER__BTN_DECLINE")}),(0,t.jsxs)(_.zx,{size:"lg",variant:"default",onClick:D,disabled:!K||R||P,className:(0,v.cn)("flex-1 gap-1 font-bold px-4 roun
1ded-xl transition-all duration-300 shadow-lg shadow-primary-100","bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white border-b-4 border-primary-800 active:border-b-0 active:translate-y-1"),children:[(0,t.jsx)(o.Z,{className:"h-4 w-4 mr-2 stroke-[3px]"})," ",j("APP__AI_TASK_LUCKY_ENHANCER__BTN_ACCEPT")]})]})]})]})})]})})}},4175:function(e,s,a){a.d(s,{U:function(){return b}});var t=a(85893),l=a(77802),r=a(47737),n=a(8971),i=a(13742),d=a(14640),c=a(67294),o=a(41256),u=a(60119),x=a(66866),m=a(43484),_=a(48565),h=a(50240),p=a(65995);let g={iconBox:"bg-red-50 border-red-200 text-red-600 dark:bg-red-950/30 dark:border-red-800/50",triggerRow:"bg-gray-50 border-gray-200 hover:bg-gray-100 dark:bg-gray-900/40 dark:border-gray-700"},N={iconBox:"bg-gray-50 border-gray-200 text-gray-600 dark:bg-gray-800/50 dark:border-gray-600",triggerRow:"bg-gray-50 border-gray-200 hover:bg-gray-100 dark:bg-gray-900/40 dark:border-gray-700"},f=e=>{var s,a;let{targetStatus:l,value:_,onChange:p,onOtherSelected:f,disabled:E=!1}=e,y=(0,d.useTranslations)(),[v,b]=(0,c.useState)(!1),j="BLOCKED"===l,A=j?g:N,S=(0,c.useMemo)(()=>j?Object.keys(x.OM):Object.keys(x.sQ),[j]),C=j?x.OM:x.sQ,w=j?o.$1:o.Pl,T=_&&S.includes(_)?_:null!==(s=S[0])&&void 0!==s?s:"",k=null!==(a=w[T])&&void 0!==a?a:r.Z,P=T?(0,o.ac)(T,C):y("APP__TASKS__REASON_ROWS__SELECT_REASON_FALLBACK");return(0,t.jsxs)(h.h_,{open:v,onOpenChange:b,children:[(0,t.jsx)(h.$F,{asChild:!0,disabled:E,children:(0,t.jsx)(m.zx,{variant:"ghost",className:(0,u.cn)("justify-start font-normal p-0 h-auto !w-full",E&&"opacity-50 cursor-not-allowed"),children:(0,t.jsxs)("div",{className:(0,u.cn)("flex items-center gap-1.5 border w-full rounded-md px-2 py-1 transition-colors cursor-pointer",A.triggerRow,"h-7 text-xs hover:shadow-sm"),children:[(0,t.jsx)(k,{className:"h-3 w-3"}),(0,t.jsx)("span",{className:"truncate flex-1 text-left text-foreground",children:P}),(0,t.jsx)(n.Z,{className:"ml-auto h-3 w-3 flex-shrink-0 opacity-70"})]})})}),(0,t.jsx)(h.AW,{className:"w-64",align:"start",side:"bottom",children:S.map(e=>{var s;let a=null!==(s=w[e])&&void 0!==s?s:r.Z,l=(0,o.ac)(e,C),n=T===e;return(0,t.jsxs)(h.Xi,{onClick:()=>{p(e),b(!1),"OTHER"===e&&(null==f||f())},className:(0,u.cn)("flex items-center justify-between cursor-pointer p-2 rounded-md transition-colors",n&&"bg-accent/50"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,t.jsx)("div",{className:(0,u.cn)("p-1.5 rounded-md border shrink-0",A.iconBox),children:(0,t.jsx)(a,{className:"h-4 w-4"})}),(0,t.jsx)("span",{className:"text-sm font-medium truncate",children:l})]}),n&&(0,t.jsx)(i.Z,{className:"h-4 w-4 shrink-0 text-primary"})]},e)})})]})},E=e=>{let{targetStatus:s,value:a,onChange:l,forceOpen:r,onForceOpenChange:n,disabled:i=!1}=e,o=(0,d.useTranslations)(),[x,h]=(0,c.useState)(!1),[f,E]=(0,c.useState)("");(0,c.useEffect)(()=>{r&&(E(null!=a?a:""),h(!0),null==n||n(!1))},[r]);let y=()=>{E(null!=a?a:""),h(!0)},v=()=>{l(f.trim()),h(!1)},b=null==a?void 0:a.trim(),j=(0,u.cn)("w-full justify-start font-normal cursor-pointer text-left h-auto py-1.5 px-2",("BLOCKED"===s?g:N).triggerRow,"border");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.zx,{type:"button",variant:"outline",className:j,disabled:i,onClick:y,children:(0,t.jsx)("span",{className:(0,u.cn)("truncate block max-w-[200px] text-left font-normal",!b&&"italic text-muted-foreground"),children:b||o("APP__TASKS__REASON_ROWS__ADD_DETAILS_PROMPT")})}),(0,t.jsx)(_.Vq,{open:x,onOpenChange:h,children:(0,t.jsxs)(_.cZ,{className:"sm:max-w-md",children:[(0,t.jsx)(_.fK,{children:(0,t.jsx)(_.$N,{children:o("APP__TASKS__REASON_ROWS__DETAILS_DIALOG_TITLE")})}),(0,t.jsx)(p.g,{value:f,onChange:e=>E(e.target.value),className:"min-h-[120px]",placeholder:o("APP__TASKS__REASON_ROWS__OTHER_DETAILS_PLACEHOLDER")}),(0,t.jsxs)(_.cN,{className:"gap-2",children:[(0,t.jsx)(m.zx,{type:"button",variant:"secondary",onClick:()=>h(!1),children:o("APP__TASKS__REASON_ROWS__BACK")}),(0,t.jsx)(m.zx,{type:"button",onClick:v,children:o("APP__TASKS__REASON_ROWS__SAVE")})]})]})})]})};var y=a(9321),v=a(25205);let b=e=>{var s,a;let{task:n,updateField:i,layout:o="dialog",showStatus:u=!0,onDependencyReasonSelected:x}=e,m=(0,d.useTranslations)(),[_,h]=(0,c.useState)(!1),[p,g]=(0,c.useState)(!1),N="page"===o,b=N?"flex items-center justify-between gap-4":"flex items-center gap-2",j=N?"text-sm font-medium text-muted-foreground whitespace-nowrap":"flex w-[100px] items-center gap-2 text-sm font-medium text-muted-foreground",A=N?"w-full max-w-[180px]":"flex-grow",S=(e,s)=>{i({field:"status",value:e,oldValue:n.status,extraFields:s})};if("inline"===o)return(0,t.jsx)(l.xJ.StatusEnhanced,{value:n.status,task:n,onChange:S,showIcon:!0,size:"sm"});let C="BLOCKED"===n.status?"blockedReason":"cancellationReason",w="BLOCKED"===n.status?null!==(s=n.blockedReason)&&void 0!==s?s:"":null!==(a=n.cancellationReason)&&void 0!==a?a:"",T="BLOCKED"===n.status?"blockedReasonMessage":"cancellationReasonMessage",k="BLOCKED"===n.status?n.blockedReasonMessage:n.cancellationReasonMessage,P="BLOCKED"===n.status&&"OTHER"===n.blockedReason||"CANCELED"===n.status&&"OTHER"===n.cancellationReason;return(0,t.jsxs)("div",{className:"space-y-4",children:[u&&(0,t.jsxs)("div",{className:b,children:[(0,t.jsxs)("label",{className:j,children:[!N&&(0,t.jsx)(y.Z,{className:"h-4 w-4"}),m("FIELDS__STATUS")]}),(0,t.jsx)("div",{className:A,children:(0,t.jsx)(l.xJ.StatusEnhanced,{value:n.status,task:n,onChange:S,showIcon:!0,size:"sm"})})]}),("BLOCKED"===n.status||"CANCELED"===n.status)&&(0,t.jsxs)("div",{className:b,children:[(0,t.jsxs)("label",{className:j,children:[!N&&(0,t.jsx)(v.Z,{className:"h-4 w-4"}),m("BLOCKED"===n.status?"APP__TASKS__TASK_PROFILE__BLOCKED_REASON":"APP__TASKS__TASK_PROFILE__CANCEL_REASON")]}),(0,t.jsx)("div",{className:A,children:(0,t.jsx)(f,{targetStatus:n.status,value:w,onChange:e=>{i({field:C,value:e||"OTHER",oldValue:w,extraFields:{status:n.status}}),"BLOCKED"===n.status&&"WAITING_FOR_DEPENDENCY"===e&&(null==x||x())},onOtherSelected:()=>"BLOCKED"===n.status?h(!0):g(!0)})})]}),P&&(0,t.jsxs)("div",{className:b,children:[(0,t.jsxs)("label",{className:j,children:[!N&&(0,t.jsx)(r.Z,{className:"h-4 w-4"}),m("BLOCKED"===n.status?"APP__TASKS__TASK_PROFILE__BLOCKED_DETAILS":"APP__TASKS__TASK_PROFILE__CANCEL_DETAILS")]}),(0,t.jsx)("div",{className:A,children:(0,t.jsx)(E,{targetStatus:n.status,value:k,forceOpen:"BLOCKED"===n.status?_:p,onForceOpenChange:"BLOCKED"===n.status?h:g,onChange:e=>i({field:T,value:e.trim()||"OTHER",oldValue:k,extraFields:{status:n.status}})})})]})]})}},82866:function(e,s,a){a.d(s,{E:function(){return E}});var t=a(85893),l=a(78888),r=a(43484),n=a(12587),i=a(22383),d=a(18814),c=a(53219),o=a(31012),u=a(82701),x=a(14640),m=a(11163);a(67294);var _=a(77802),h=a(91433);let p=e=>{switch(e){case"COMPLETED":return"bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-100";case"IN_PROGRESS":return"bg-sky-50 text-sky-700 ring-1 ring-inset ring-sky-100";case"NOT_STARTED":default:return"bg-slate-50 text-slate-700 ring-1 ring-inset ring-slate-100";case"BLOCKED":return"bg-rose-50 text-rose-700 ring-1 ring-inset ring-rose-100";case"CANCELED":return"bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-100"}},g=e=>e?e.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):null,N=e=>{let{task:s,compact:a=!1}=e,r=(0,m.useRouter)(),n=s.status||"NOT_STARTED";return(0,t.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>
1r.push((0,h.FP)(r.query.orgId,s)),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),r.push((0,h.FP)(r.query.orgId,s)))},className:"group flex w-full items-center gap-2.5 rounded-lg border border-transparent bg-white/80 text-left shadow-sm transition hover:-translate-y-[1px] hover:border-sky-200 hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-300 ".concat(a?"px-2.5 py-2":"px-3 py-2.5"),children:[(0,t.jsx)("div",{className:"flex-shrink-0 pointer-events-none",children:(0,t.jsx)(_.xJ.TaskType,{value:s.type,size:"sm",onChange:()=>{}})}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-medium text-slate-900 group-hover:text-sky-700 transition-colors ".concat(a?"text-xs":"text-sm"),children:s.title||"Untitled task"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[(0,t.jsx)(l.C,{variant:"outline",className:"text-[10px] font-medium px-1.5 py-0 ".concat(p(n)),children:g(n)||n}),(0,t.jsx)(d.Z,{className:"h-3 w-3 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})},f=(e,s)=>{if(0===e.length)return(0,t.jsx)("p",{className:"text-xs text-muted-foreground italic py-1",children:s});let a=e.slice(0,3),l=e.slice(3);return(0,t.jsxs)("div",{className:"space-y-1.5",children:[a.map(e=>(0,t.jsx)(N,{task:e},e.id)),l.length>0&&(0,t.jsxs)(i.J2,{children:[(0,t.jsx)(i.xo,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",className:"w-full text-center items-center gap-2 rounded-full border border-dashed border-sky-200 bg-sky-50 px-3 py-1 text-xs font-medium text-sky-700 transition hover:border-sky-300 hover:bg-sky-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-300",children:["+",l.length," more"]})}),(0,t.jsxs)(i.yk,{align:"start",className:"w-72 p-0",children:[(0,t.jsx)("div",{className:"border-b border-border px-4 py-3",children:(0,t.jsxs)("p",{className:"text-sm font-semibold text-slate-900",children:[l.length," more task",l.length>1?"s":""]})}),(0,t.jsx)("div",{className:"max-h-72 space-y-1.5 overflow-y-auto p-3",children:l.map(e=>(0,t.jsx)(N,{task:e,compact:!0},e.id))})]})]})]})},E=e=>{let{requiredTasks:s=[],requiredForTasks:a=[],onAddRequired:i,onAddRequiredFor:d}=e,m=(0,x.useTranslations)();return(0,t.jsxs)("div",{className:"grid w-full grid-cols-1 gap-3 lg:grid-cols-2",children:[(0,t.jsxs)(n.Zb,{className:"min-w-0 border border-slate-200/80 bg-white/90 shadow-sm",children:[(0,t.jsx)(n.Ol,{className:"pb-2 pt-3 px-4",children:(0,t.jsxs)(r.zx,{type:"button",variant:"outline",onClick:i,disabled:!i,className:"h-auto w-full justify-between gap-3 border-emerald-200 bg-emerald-50 px-3 py-2 text-left text-emerald-800 hover:bg-emerald-100 hover:text-emerald-900",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(c.Z,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600"}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-sm font-semibold",children:m("APP__TASKS__SCHEDULE_DEPENDENCIES__REQUIRED")}
1),(0,t.jsx)("span",{className:"block truncate text-xs font-normal text-emerald-700/80",children:m("APP__TASKS__SCHEDULE_DEPENDENCIES__REQUIRED_DESCRIPTION")})]})]}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",children:[s.length>0&&(0,t.jsx)(l.C,{variant:"secondary",className:"h-5 px-1.5 text-xs",children:s.length}),(0,t.jsx)(o.Z,{className:"h-3.5 w-3.5"})]})]})}),(0,t.jsx)(n.aY,{className:"px-4 pb-3",children:f(s,m("APP__TASKS__SCHEDULE_DEPENDENCIES__REQUIRED_EMPTY"))})]}),(0,t.jsxs)(n.Zb,{className:"min-w-0 border border-slate-200/80 bg-white/90 shadow-sm",children:[(0,t.jsx)(n.Ol,{className:"pb-2 pt-3 px-4",children:(0,t.jsxs)(r.zx,{type:"button",variant:"outline",onClick:d,disabled:!d,className:"h-auto w-full justify-between gap-3 border-sky-200 bg-sky-50 px-3 py-2 text-left text-sky-800 hover:bg-sky-100 hover:text-sky-900",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(u.Z,{className:"h-3.5 w-3.5 shrink-0 text-sky-600"}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-sm font-semibold",children:m("APP__TASKS__SCHEDULE_DEPENDENCIES__REQUIRED_FOR")}),(0,t.jsx)("span",{className:"block truncate text-xs font-normal text-sky-700/80",children:m("APP__TASKS__SCHEDULE_DEPENDENCIES__REQUIRED_FOR_DESCRIPTION")})]})]}),(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",children:[a.length>0&&(0,t.jsx)(l.C,{variant:"secondary",className:"h-5 px-1.5 text-xs",children:a.length}),(0,t.jsx)(o.Z,{className:"h-3.5 w-3.5"})]})]})}),(0,t.jsx)(n.aY,{className:"px-4 pb-3",children:f(a,m("APP__TASKS__SCHEDULE_DEPENDENCIES__REQUIRED_FOR_EMPTY"))})]})]})}},28274:function(e,s,a){a.d(s,{_:function(){return n}});var t=a(30202),l=a(67294),r=a(12276);let n=e=>{let{task:s,organizationId:a,routeRef:n,updateTaskField:i,onSaved:d}=e,c=(0,t.NL)(),o=(0,l.useCallback)(e=>{n&&a&&c.setQueryData(r.F.routeDetail(a,n),e),null==d||d(e)},[d,a,c,n]),u=(0,l.useCallback)((e,t)=>{var l,d;if(!(null==s?void 0:s.id)||!a||e.oldValue===e.value)return;let u=null!==(l=e.value)&&void 0!==l?l:"NULL",x=n?r.F.routeDetail(a,n):void 0,m=x?c.getQueryData(x):void 0;x&&c.setQueryData(x,a=>({...null!=a?a:s,[e.field]:e.value,...null!==(d=e.extraFields)&&void 0!==d?d:{}})),i({taskId:s.id,organizationId:a,field:e.field,value:u,oldValue:e.oldValue,extraFields:e.extraFields,fullContainer:e.fullContainer},{onSuccess:e=>{var s;o(e),null==t||null===(s=t.onSuccess)||void 0===s||s.call(t,e)},onError:e=>{var s;x&&c.setQueryData(x,m),null==t||null===(s=t.onError)||void 0===s||s.call(t,e)}})},[a,c,n,o,s,i]);return{updateField:u,syncSavedTask:o}}},54708:function(e,s,a){a.d(s,{L:function(){return d}});var t=a(67294),l=a(25222);let r=(e,s,a,l)=>{let[r,n]=(0,t.useState)(""),i=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!e||!s)return;let t=null!=l?l:"",r=i.current;i.current={taskId:a,value:t},(null===r||r.taskId!==a||r.value!==t)&&n(t)},[e,s,a,l]),[r,n]},n=e=>{let{enabled:s=!0,taskId:a,title:t,summary:l,description:n,syncTitle:i=!0,syncSummary:d=!0,syncDescription:c=!0}=e,[o,u]=r(s,i,a,t),[x,m]=r(s,d,a,l),[_,h]=r(s,c,a,n);return{titleValue:o,setTitleValue:u,summaryValue:x,setSummaryValue:m,descriptionValue:_,setDescriptionValue:h}};var i=a(36058);let d=e=>{let{task:s,updateField:a,enabled:r=!0,messages:d}=e,c=(0,t.useRef)(s);c.current=s;let[o,u]=(0,t.useState)(!1),[x,m]=(0,t.useState)(!1),[_,h]=(0,t.useState)(!1),{titleValue:p,setTitleValue:g,summaryValue:N,setSummaryValue:f,descriptionValue:E,setDescriptionValue:y}=n({enabled:r&&!!s,taskId:null==s?void 0:s.id,title:null==s?void 0:s.title,summary:null==s?void 0:s.summary,description:null==s?void 0:s.description,syncTitle:!o,syncSummary:!x,syncDescription:!_});(0,t.useEffect)(()=>{var e,s,a;if(!r)return;let t=c.current;g(null!==(e=null==t?void 0:t.title)&&void 0!==e?e:""),f(null!==(s=null==t?void 0:t.summary)&&void 0!==s?s:""),y(null!==(a=null==t?void 0:t.description)&&void 0!==a?a:""),u(!1),m(!1),h(!1)},[r,y,f,g,null==s?void 0:s.id]);let v=()=>{var e,t;if(!(null==s?void 0:s.id)||p===(null!==(e=s.title)&&void 0!==e?e:"")){u(!1);return}a({field:"title",value:p,oldValue:s.title},{onSuccess:()=>{u(!1),(0,l.Am)({title:d.title})},onError:()=>g(null!==(t=s.title)&&void 0!==t?t:"")})},b=()=>{var e;g(null!==(e=null==s?void 0:s.title)&&void 0!==e?e:""),u(!1)},j=()=>{var e,t;if(!(null==s?void 0:s.id)||N===(null!==(e=s.summary)&&void 0!==e?e:"")){m(!1);return}a({field:"summary",value:N,oldValue:s.summary},{onSuccess:()=>{m(!1),(0,l.Am)({title:d.summary})},onError:()=>f(null!==(t=s.summary)&&void 0!==t?t:"")})},A=()=>{var e;f(null!==(e=null==s?void 0:s.summary)&&void 0!==e?e:""),m(!1)},S=async(e,t,r)=>{(null==s?void 0:s.id)&&a({field:"descriptionB64",value:(0,i.x)(e),oldValue:s.description},{onSuccess:()=>{y(e),(0,l.Am)({title:d.description}),r()},onError:t})};return{editingTitle:o,setEditingTitle:u,editingSummary:x,setEditingSummary:m,editingDescription:_,setEditingDescription:h,titleValue:p,setTitleValue:g,summaryValue:N,setSummaryValue:f,descriptionValue:E,setDescriptionValue:y,handleTitleSave:v,handleTitleCancel:b,handleSummarySave:j,handleSummaryCancel:A,handleDescriptionSave:S}}}}]);

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.