1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8270],{17702:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/follow-up",function(){return s(7545)}])},79860:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var a=s(24246),n=s(40624);function r(e){let{variant:t="primary",size:s="md",loading:r=!1,disabled:l,className:i,children:c,...o}=e;return(0,a.jsxs)("button",{disabled:l||r,className:(0,n.W)("inline-flex items-center justify-center gap-2 rounded-sm font-medium whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 disabled:opacity-50 disabled:pointer-events-none",{"bg-accent text-white hover:bg-accent-hover shadow-sm":"primary"===t,"bg-bg-secondary text-text-primary border border-border-default hover:bg-bg-tertiary":"secondary"===t,"text-text-secondary hover:bg-bg-tertiary hover:text-text-primary":"ghost"===t,"bg-danger text-white hover:opacity-90":"danger"===t,"h-8 px-3 text-xs":"sm"===s,"h-9 px-4 text-sm":"md"===s,"h-10 px-5 text-sm":"lg"===s},i),...o,children:[r&&(0,a.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8H4z"})]}),c]})}},37462:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});var a=s(24246),n=s(27378),r=s(59051),l=s(40624);let i={sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"};function c(e){let{open:t,onClose:s,title:c,description:o,size:d="md",children:u}=e;return((0,n.useEffect)(()=>{if(t)return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&s()}},[t,s]),t)?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:s,"aria-hidden":"true"}),(0,a.jsxs)("div",{className:(0,l.W)("relative w-full rounded-md bg-bg-secondary border border-border-default shadow-md flex flex-col max-h-[90vh]",i[d]),role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 items-start justify-between border-b border-border-default px-6 py-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{id:"modal-title",className:"text-base font-semibold text-text-primary",children:c}),o&&(0,a.jsx)("p",{className:"mt-0.5 text-sm text-text-secondary",children:o})]}),(0,a.jsx)("button",{onClick:s,className:"ml-4 flex h-7 w-7 items-center justify-center rounded-sm text-text-secondary hover:bg-bg-tertiary hover:text-text-primary transition-colors","aria-label":"Close",children:(0,a.jsx)(r.Z,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"overflow-y-auto px-6 py-5",children:u})]})]}):null}},7545:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return L}});var a=s(24246),n=s(27378),r=s(43755),l=s(23506),i=s(77381),c=s(79894),o=s.n(c),d=s(5332),u=s(97172),x=s(86689),p=s(66872),h=s(81630),m=s(55794),y=s(44894),f=s(59051),b=s(81064),v=s(91724),g=s(31456),w=s(64132),j=s(40624),N=s(87228),k=s(51158),Z=s(51388),C=s(37177),M=s(23186),_=s(68369),S=s(97006);let A={sms:k.Z,direct_mail:Z.Z,task:C.Z,email:M.Z,goto:v.Z},U={sms:"text-accent",direct_mail:"text-warning",task:"text-accent",email:"text-accent",goto:"text-text-tertiary"};function P(e){let{plan:t,onDelete:s}=e,n=Array.isArray(t.steps)?t.steps:[];return(0,a.jsxs)("div",{className:"bg-bg-secondary border border-border-default rounded-md p-5 hover:shadow-sm transition-shadow",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"font-semibold text-text-primary text-base truncate",children:t.name}),t.description&&(0,a.jsx)("p",{className:"text-sm text-text-secondary mt-0.5 line-clamp-2",children:t.description}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-3",children:[n.map((e,t)=>{let s=A[e.type];return(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-text-secondary bg-bg-secondary border border-border-default rounded-sm px-2.5 py-1",children:[(0,a.jsx)(s,{className:"h-3 w-3 ".concat(U[e.type])}),(0,a.jsxs)("span",{children:["sms"===e.type?"SMS":"direct_mail"===e.type?"Mail":"email"===e.type?"Email":"goto"===e.type?"Loop":"Task",t>0&&" +".concat(e.delay_days,"d")]})]},t)}),0===n.length&&(0,a.jsx)("span",{className:"text-xs text-text-tertiary italic",children:"No steps configured"})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,a.jsxs)(o(),{href:"/follow-up/".concat(t.id),className:"flex items-center gap-1.5 text-xs text-text-secondary border border-border-default rounded px-3 py-1.5 hover:bg-bg-tertiary transition-colors",children:[(0,a.jsx)(_.Z,{className:"h-3 w-3"}),"Edit"]}),(0,a.jsxs)("button",{type:"button",onClick:()=>s(t.id),className:"flex items-center gap-1.5 text-xs text-danger border border-danger/30 rounded px-3 py-1.5 hover:bg-danger-light transition-colors",children:[(0,a.jsx)(S.Z,{className:"h-3 w-3"}),"Delete"]})]})]}),(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-border-default flex items-center gap-4 text-xs text-text-tertiary",children:[(0,a.jsxs)("span",{children:[n.length," step",1!==n.length?"s":""]}),n.length>1&&(0,a.jsxs)("span",{children:["~",n.slice(1).reduce((e,t)=>
1e+t.delay_days,0)," day sequence"]}),(0,a.jsxs)("span",{className:"ml-auto",children:["Updated ",new Date(t.updated_at).toLocaleDateString()]})]})]})}var q=s(79860),z=s(37462),E=s(53169);let F={active:{label:"Active",color:"bg-success-light text-success",icon:u.Z},paused:{label:"Paused",color:"bg-warning-light text-warning",icon:x.Z},completed:{label:"Completed",color:"bg-bg-tertiary text-text-secondary",icon:p.Z},cancelled:{label:"Cancelled",color:"bg-danger-light text-danger",icon:h.Z}};function L(){var e,t,s,c,p,h;let k=(0,r.NL)(),[Z,C]=(0,n.useState)("plans"),[M,_]=(0,n.useState)(!1),[S,A]=(0,n.useState)(!1),[U,L]=(0,n.useState)("active"),[O,R]=(0,n.useState)(""),[D,K]=(0,n.useState)(new Set),[I,T]=(0,n.useState)(!1),{data:V,refetch:W}=(0,l.a)({queryKey:["follow-up-instance-counts"],queryFn:()=>E.hi.followUp.instanceCounts()}),H=(null!==(e=null==V?void 0:V.active)&&void 0!==e?e:1)===0&&(null!==(t=null==V?void 0:V.paused)&&void 0!==t?t:0)>0;async function B(){A(!0);try{if(H){let e=await E.hi.followUp.resumeAll();d.default.success(0===e.resumed?"No paused follow-up plans to resume.":"Resumed ".concat(e.resumed," follow-up instance").concat(1===e.resumed?"":"s","."),{duration:5e3})}else{let e=await E.hi.followUp.pauseAll();d.default.success(0===e.paused?"No active follow-up plans to pause.":"Paused ".concat(e.paused," active follow-up instance").concat(1===e.paused?"":"s","."),{duration:5e3})}_(!1),W()}catch(e){d.default.error(H?"Failed to resume follow-up plans.":"Failed to pause follow-up plans.")}finally{A(!1)}}let{data:Q,isLoading:X}=(0,l.a)({queryKey:["follow-up-plans"],queryFn:()=>E.hi.followUp.listPlans()}),Y=null!==(s=null==Q?void 0:Q.items)&&void 0!==s?s:[],{data:G,isLoading:J}=(0,l.a)({queryKey:["follow-up-instances",U,O],queryFn:()=>E.hi.followUp.listAllInstances({status:"all"===U?void 0:U,plan_id:O||void 0,page_size:100}),enabled:"instances"===Z}),$=null!==(c=null==G?void 0:G.items)&&void 0!==c?c:[],ee=null!==(p=null==G?void 0:G.total)&&void 0!==p?p:0,et=(0,i.D)({mutationFn:e=>E.hi.followUp.deletePlan(e),onSuccess:()=>{d.default.success("Plan deleted"),k.invalidateQueries({queryKey:["follow-up-plans"]})},onError:e=>d.default.error(e.message||"Failed to delete plan")}),es=(0,i.D)({mutationFn:e=>E.hi.followUp.bulkCancelInstances([e]),onSuccess:()=>{d.default.success("Instance cancelled."),k.invalidateQueries({queryKey:["follow-up-instances"]}),W()},onError:()=>d.default.error("Failed to cancel instance.")}),ea=(0,i.D)({mutationFn:e=>E.hi.followUp.bulkCancelInstances(e),onSuccess:e=>{d.default.success("Cancelled ".concat(e.cancelled," instance").concat(1!==e.cancelled?"s":"",".")),K(new Set),T(!1),k.invalidateQueries({queryKey:["follow-up-instances"]}),W()},onError:()=>d.default.error("Failed to cancel instances.")});function en(e){confirm("Delete this follow-up plan? Any active instances will continue running until cancelled.")&&et.mutate(e)}let er=$.filter(e=>"active"===e.status||"paused"===e.status),el=er.length>0&&er.every(e=>D.has(e.id));return(0,a.jsxs)(N.Z,{title:"Follow-Up Plans",breadcrumbs:[{label:"Follow-Up Plans"}],children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,a.jsx)("p",{className:"text-sm text-text-secondary",children:"Automated multi-step sequences of SMS messages, direct mail, and tasks."}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)(q.Z,{variant:"secondary",size:"sm",onClick:()=>_(!0),className:H?"border-warning text-warning bg-warning-light hover:bg-warning-light":"",children:[(0,a.jsx)(x.Z,{className:"h-4 w-4"}),H?"Unpause All Follow-Up":"Pause All Follow-Up"]}),(0,a.jsxs)(o(),{href:"/follow-up/new",className:"btn-primary flex items-center gap-2",children:[(0,a.jsx)(m.Z,{className:"h-4 w-4"}),"New Plan"]})]})]}),(0,a.jsxs)("div",{className:"flex gap-1 border-b border-border-default mb-6",children:[(0,a.jsx)("button",{onClick:()=>C("plans"),className:(0,j.W)("px-4 py-2 text-sm font-medium border-b-2 -mb-px transition-colors","plans"===Z?"border-accent text-accent":"border-transparent text-text-secondary hover:text-text-primary"),children:"Plans"}),(0,a.jsxs)("button",{onClick:()=>C("instances"),className:(0,j.W)("flex items-center gap-1.5 px-4 py-2 text-sm font-medium border-b-2 -mb-px transition-colors","instances"===Z?"border-accent text-accent":"border-transparent text-text-secondary hover:text-text-primary"),children:[(0,a.jsx)(y.Z,{className:"h-3.5 w-3.5"}),"Active Instances",(null!==(h=null==V?void 0:V.active)&&void 0!==h?h:0)>0&&(0,a.jsx)("span",{className:"ml-1 rounded-full bg-accent text-white text-xs px-1.5 py-0.5 leading-none",children:V.active})]})]}
1),"plans"===Z&&(X?(0,a.jsx)("div",{className:"space-y-3",children:[1,2,3].map(e=>(0,a.jsx)("div",{className:"h-24 bg-bg-tertiary rounded-md animate-pulse"},e))}):0===Y.length?(0,a.jsxs)("div",{className:"py-16 text-center border-2 border-dashed border-border-default rounded-md",children:[(0,a.jsx)(u.Z,{className:"h-10 w-10 text-text-tertiary mx-auto mb-3"}),(0,a.jsx)("h3",{className:"text-base font-semibold text-text-secondary mb-1",children:"No follow-up plans yet"}),(0,a.jsx)("p",{className:"text-sm text-text-tertiary mb-4",children:"Create a plan to automate SMS and direct mail follow-up sequences."}),(0,a.jsxs)(o(),{href:"/follow-up/new",className:"btn-primary inline-flex items-center gap-2",children:[(0,a.jsx)(m.Z,{className:"h-4 w-4"}),"Create your first plan"]})]}):(0,a.jsx)("div",{className:"space-y-3",children:Y.map(e=>(0,a.jsx)(P,{plan:e,onDelete:en},e.id))})),"instances"===Z&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4 flex-wrap",children:[(0,a.jsx)("div",{className:"flex rounded-md border border-border-default overflow-hidden",children:["active","paused","completed","all"].map(e=>(0,a.jsx)("button",{onClick:()=>{L(e),K(new Set)},className:(0,j.W)("px-3 py-1.5 text-xs font-medium capitalize transition-colors",U===e?"bg-accent text-white":"bg-bg-primary text-text-secondary hover:bg-bg-secondary"),children:"all"===e?"All":e.charAt(0).toUpperCase()+e.slice(1)},e))}),(0,a.jsxs)("select",{className:"border border-border-default bg-bg-input rounded px-3 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-accent",value:O,onChange:e=>{R(e.target.value),K(new Set)},children:[(0,a.jsx)("option",{value:"",children:"All plans"}),Y.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,a.jsxs)("span",{className:"text-xs text-text-tertiary",children:[ee," instance",1!==ee?"s":""]}),D.size>0&&(0,a.jsxs)(q.Z,{size:"sm",variant:"danger",onClick:()=>T(!0),className:"ml-auto",children:[(0,a.jsx)(f.Z,{className:"h-3.5 w-3.5"}),"Cancel Selected (",D.size,")"]})]}),J?(0,a.jsx)("div",{className:"space-y-2",children:[1,2,3,4,5].map(e=>(0,a.jsx)("div",{className:"h-14 bg-bg-tertiary rounded animate-pulse"},e))}):0===$.length?(0,a.jsxs)("div",{className:"py-16 text-center border-2 border-dashed border-border-default rounded-md",children:[(0,a.jsx)(y.Z,{className:"h-10 w-10 text-text-tertiary mx-auto mb-3"}),(0,a.jsx)("p",{className:"text-sm text-text-secondary",children:"No instances found for the selected filters."})]}):(0,a.jsx)("div",{className:"overflow-x-auto rounded-md border border-border-default bg-bg-primary",children:(0,a.jsxs)("table",{className:"w-full text-sm",children:[(0,a.jsx)("thead",{className:"bg-bg-secondary border-b border-border-default",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2.5 w-8",children:er.length>0&&(0,a.jsx)("input",{type:"checkbox",checked:el,onChange:function(){el?K(new Set):K(new Set(er.map(e=>e.id)))},className:"rounded border-border-default",title:"Select all cancellable instances"})}),(0,a.jsx)("th",{className:"text-left px-4 py-2.5 font-medium text-text-secondary text-xs",children:"Property"}),(0,a.jsx)("th",{className:"text-left px-4 py-2.5 font-medium text-text-secondary text-xs",children:"Contact"}),(0,a.jsx)("th",{className:"text-left px-4 py-2.5 font-medium text-text-secondary text-xs",children:"Plan"}),(0,a.jsx)("th",{className:"text-left px-4 py-2.5 font-medium text-text-secondary text-xs",children:"Step"}),(0,a.jsx)("th",{className:"text-left px-4 py-2.5 font-medium text-text-secondary text-xs",children:"Status"}),(0,a.jsx)("th",{className:"text-left px-4 py-2.5 font-medium text-text-secondary text-xs",children:"Next Run"}),(0,a.jsx)("th",{className:"px-4 py-2.5"})]})}),(0,a.jsx)("tbody",{className:"divide-y divide-border-default",children:$.map(e=>{var t,s,n;let r=null!==(t=F[e.status])&&void 0!==t?t:F.active,l=r.icon,i=e.next_run_at?new Date(e.next_run_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"completed"===e.status?"â":"Pending",c="active"===e.status||"paused"===e.status,d=D.has(e.id);return(0,a.jsxs)("tr",{className:(0,j.W)("hover:bg-bg-secondary transition-colors",d&&"bg-danger-light/40"),children:[(0,a.jsx)("td",{className:"px-3 py-3 w-8",children:c&&(0,a.jsx)("input",{type:"checkbox",checked:d,onChange:()=>{var t;return t=e.id,void K(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"rounded border-border-default"})}),(0,a.jsxs)("td",{className:"px-4 py-3",children:[(0,a.jsx)("div",{className:"font-medium text-text-primary truncate max-w-[200px]",children:null!==(s=e.address_1)&&void 0!==s?s:"â"}),(0,a.jsxs)("div",{className:"text-xs text-text-tertiary",children:[[e.city,e.state].filter(
1Boolean).join(", "),e.mailer_code&&(0,a.jsx)("span",{className:"ml-2 font-mono",children:e.mailer_code})]})]}),(0,a.jsx)("td",{className:"px-4 py-3 text-text-secondary truncate max-w-[140px]",children:null!==(n=e.contact_name)&&void 0!==n?n:(0,a.jsx)("span",{className:"text-text-tertiary italic",children:"No contact"})}),(0,a.jsx)("td",{className:"px-4 py-3 text-text-secondary truncate max-w-[160px]",children:e.plan_name}),(0,a.jsxs)("td",{className:"px-4 py-3 text-text-secondary whitespace-nowrap",children:[(0,a.jsx)("div",{children:"completed"===e.status?"".concat(e.step_count," / ").concat(e.step_count):"".concat(e.current_step+1," / ").concat(e.step_count)}),e.retry_count>0&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs text-warning mt-0.5",children:[(0,a.jsx)(b.Z,{className:"h-3 w-3 shrink-0"}),(0,a.jsxs)("span",{children:["Retrying since"," ",e.first_retry_at?new Date(e.first_retry_at).toLocaleDateString("en-US",{month:"short",day:"numeric"}):"â"," ","(",e.retry_count,"\xa0attempt",1!==e.retry_count?"s":"",")"]})]}),e.loop_count>0&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-xs text-text-tertiary mt-0.5",children:[(0,a.jsx)(v.Z,{className:"h-3 w-3 shrink-0"}),(0,a.jsxs)("span",{children:["Loop iteration ",e.loop_count]})]})]}),(0,a.jsx)("td",{className:"px-4 py-3",children:(0,a.jsxs)("span",{className:(0,j.W)("inline-flex items-center gap-1 rounded-sm px-2 py-0.5 text-xs font-medium",r.color),children:[(0,a.jsx)(l,{className:"h-3 w-3"}),r.label]})}),(0,a.jsx)("td",{className:"px-4 py-3 text-text-secondary whitespace-nowrap",children:(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[e.next_run_at&&"active"===e.status&&(0,a.jsx)(g.Z,{className:"h-3 w-3 text-text-tertiary"}),i]})}),(0,a.jsx)("td",{className:"px-4 py-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[e.property_id&&(0,a.jsx)(o(),{href:"/properties/".concat(e.property_id),className:"text-accent hover:text-accent/80 transition-colors",title:"View property",children:(0,a.jsx)(w.Z,{className:"h-4 w-4"})}),c&&(0,a.jsx)("button",{onClick:()=>{confirm("Cancel this follow-up instance? This cannot be undone.")&&es.mutate(e.id)},disabled:es.isPending,title:"Cancel instance",className:"text-danger hover:text-danger/80 transition-colors disabled:opacity-50",children:(0,a.jsx)(f.Z,{className:"h-4 w-4"})})]})})]},e.id)})})]})})]}),(0,a.jsx)(z.Z,{open:I,onClose:()=>T(!1),title:"Cancel Follow-Up Instances",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-secondary",children:["This will permanently cancel"," ",(0,a.jsxs)("strong",{className:"text-text-primary",children:[D.size," follow-up instance",1!==D.size?"s":""]}),". Cancelled instances cannot be restarted â you will need to assign the plan again to resume follow-up."]}),(0,a.jsxs)("div",{className:"flex justify-end gap-3 pt-2 border-t border-border-default",children:[(0,a.jsx)(q.Z,{variant:"secondary",onClick:()=>T(!1),disabled:ea.isPending,children:"Keep Running"}),(0,a.jsxs)(q.Z,{variant:"danger",onClick:()=>ea.mutate(Array.from(D)),loading:ea.isPending,children:[(0,a.jsx)(f.Z,{className:"h-4 w-4"}),"Cancel ",D.size," Instance",1!==D.size?"s":""]})]})]})}),(0,a.jsx)(z.Z,{open:M,onClose:()=>_(!1),title:H?"Unpause All Follow-Up":"Pause All Follow-Up",children:(0,a.jsxs)("div",{className:"space-y-4",children:[H?(0,a.jsxs)("p",{className:"text-sm text-text-secondary",children:["This will resume ",(0,a.jsx)("strong",{className:"text-text-primary",children:"every paused follow-up instance"})," across all properties. Instances will pick up from where they left off â no steps will be skipped."]}):(0,a.jsxs)("p",{className:"text-sm text-text-secondary",children:["This will pause ",(0,a.jsx)("strong",{className:"text-text-primary",children:"every active follow-up instance"})," across all properties. No SMS or mail steps will fire until you unpause. Instances will resume from where they left off."]}),(0,a.jsxs)("div",{className:"flex justify-end gap-3 pt-2 border-t border-border-default",children:[(0,a.jsx)(q.Z,{variant:"secondary",onClick:()=>_(!1),disabled:S,children:"Cancel"}),(0,a.jsxs)(q.Z,{onClick:B,loading:S,children:[(0,a.jsx)(x.Z,{className:"h-4 w-4"}),H?"Unpause All":"Pause All"]})]})]})})]})}}
1,77381:function(e,t,s){"use strict";s.d(t,{D:function(){return u}});var a=s(27378),n=s(56622),r=s(35442),l=s(45806),i=s(6324),c=class extends l.l{#e;#t=void 0;#s;#a;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,i.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,i.Ym)(t.mutationKey)!==(0,i.Ym)(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#r(e)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#n(),this.#r()}mutate(e,t){return this.#a=t,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(e)}#n(){let e=this.#s?.state??(0,n.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#r(e){r.V.batch(()=>{if(this.#a&&this.hasListeners()){let t=this.#t.variables,s=this.#t.context;e?.type==="success"?(this.#a.onSuccess?.(e.data,t,s),this.#a.onSettled?.(e.data,null,t,s)):e?.type==="error"&&(this.#a.onError?.(e.error,t,s),this.#a.onSettled?.(void 0,e.error,t,s))}this.listeners.forEach(e=>{e(this.#t)})})}},o=s(43755),d=s(30750);function u(e,t){let s=(0,o.NL)(t),[n]=a.useState(()=>new c(s,e));a.useEffect(()=>{n.setOptions(e)},[n,e]);let l=a.useSyncExternalStore(a.useCallback(e=>n.subscribe(r.V.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=a.useCallback((e,t)=>{n.mutate(e,t).catch(d.Z)},[n]);if(l.error&&(0,d.L)(n.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:i,mutateAsync:l.mutate}}},23186:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("AtSign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]])},64930:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},81630:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},66872:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},86689:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]])},31456:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},64132:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},42463:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]])},44894:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},68369:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},55794:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},91724:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},35485:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},97006:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
1],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},81064:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},51889:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});let a=(0,s(62337).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])}},function(e){e.O(0,[4561,779,7228,2888,9774,179],function(){return e(e.s=17702)}),_N_E=e.O()}]);
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.