1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,937141,e=>{"use strict";let t=(0,e.i(236066).default)("external-link",[["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"}]]);e.s(["ExternalLink",0,t],937141)},952268,e=>{"use strict";var t=e.i(830182),r=e.i(511737),s=e.i(647163);e.s(["ActionRail",0,function({children:e,className:r,...n}){return(0,t.jsx)("div",{...n,"data-ahti-action-rail":"true",className:(0,s.cn)("ahti-action-rail fixed inset-x-0 bottom-0",r),children:e})},"ActionRailObserver",0,function(){return(0,r.useEffect)(()=>{let e=document.body,t=null,r=()=>{let r=Array.from(document.querySelectorAll(".ahti-action-rail"));r.forEach(e=>t?.observe(e));let s=r.reduce((e,t)=>e+Math.ceil(t.getBoundingClientRect().height),0);if(s>0){let t=`${s}px`;e.style.setProperty("--ahti-action-rail-height",t),document.querySelectorAll('[data-testid="authenticated-app-window"]').forEach(e=>{e.style.setProperty("--ahti-action-rail-height",t)})}else e.style.removeProperty("--ahti-action-rail-height"),document.querySelectorAll('[data-testid="authenticated-app-window"]').forEach(e=>{e.style.removeProperty("--ahti-action-rail-height")})};t="u"<typeof ResizeObserver?null:new ResizeObserver(r),r();let s=new MutationObserver(r);return s.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),()=>{s.disconnect(),t?.disconnect(),e.style.removeProperty("--ahti-action-rail-height"),document.querySelectorAll('[data-testid="authenticated-app-window"]').forEach(e=>{e.style.removeProperty("--ahti-action-rail-height")})}},[]),null}])},533772,e=>{"use strict";var t=e.i(830182),r=e.i(511737),s=e.i(937141),n=e.i(167881),i=e.i(950216),a=e.i(187448),l=e.i(952268);e.s(["SAVED_VISIBLE_MS",0,2e3,"SaveBar",0,function({dirty:e,saving:o,changeLabel:c,saveLabel:u,saved:d=!1,savedLabel:f,savingLabel:m,persistent:p=!1,error:g=null,retryLabel:h,errorLinkLabel:y,onErrorLink:x,saveDisabled:b=!1,presentation:v="fixed",outside:k=!1,recordKey:j,recordHref:w,recordLinkLabel:A,unconfirmed:S=!1,unconfirmedLabel:C,checkLabel:P,checking:R=!1,checkingLabel:M,onCheck:N,discardLabel:I,onSave:E,onDiscard:F}){let O=d&&!e&&!o&&!S,[L,T]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(T(!1),!O||p||k)return;let e=window.setTimeout(()=>T(!0),2e3);return()=>window.clearTimeout(e)},[O,p,k]);let D=O&&!L,W=!!g&&!S,z=(0,r.useRef)(null),H=(0,r.useRef)(!1);if((0,r.useEffect)(()=>{H.current&&!o&&W&&z.current?.focus(),H.current=o},[o,W]),!p&&!e&&!o&&!D&&!W&&!S)return null;let $="contained"===v,q=!S&&!W&&(D||p&&!e&&!o),B=k&&o,U=(0,t.jsxs)("div",{className:$?"mx-auto flex min-h-16 w-full flex-col justify-center gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:px-6":"mx-auto flex min-h-20 max-w-7xl flex-col justify-center gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"min-h-5 min-w-0",children:[(0,t.jsx)("div",{role:"status","aria-live":"polite",children:W?null:S?R?(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-sm text-ink",children:[(0,t.jsx)(i.Spinner,{}),(0,t.jsx)("span",{children:M})]}):(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-sm font-medium text-lantern-ink",children:[(0,t.jsx)(a.StatusDot,{tone:"attention",decorative:!0}),(0,t.jsx)("span",{children:C})]}):q?(0,t.jsxs)("div",{className:"flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-3",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-sm font-medium text-sea-glass-ink",children:[(0,t.jsx)(a.StatusDot,{tone:"progress",decorative:!0}),f??u]}),j?(0,t.jsx)("span",{className:"break-all font-mono text-meta text-ink-muted",children:j}):null]}):B?(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-sm text-ink",children:[(0,t.jsx)(i.Spinner,{}),(0,t.jsx)("span",{children:m??c})]}):c||o&&m?(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-sm text-ink",children:[(0,t.jsx)(a.StatusDot,{tone:"attention",decorative:!0}),(0,t.jsx)("span",{children:o?m??c:c}),y&&x&&!o?(0,t.jsx)("button",{type:"button",className:"ml-1 font-medium text-lingon-ink underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",onClick:x,children:y}):null]}):null}),W?(0,t.jsxs)("div",{className:"flex min-w-0 items-start gap-2 text-sm font-medium text-lingon-ink",role:"alert",children:[(0,t.jsx)(a.StatusDot,{tone:"blocker",decorative:!0,className:"mt-1.5"}),g]}):null]}),S?N?(0,t.jsx)(n.Button,{type:"button",size:"sm",className:"min-w-32 shrink-0 self-start sm:self-auto",onClick:N,disabled:R,children:P}):null:q?w&&A?(0,t.jsxs)("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 self-start rounded-lg text-sm font-medium text-tide underline-offset-2 outline-hidden hover:underline focus-visible:focus-ring sm:self-auto",children:[A,(0,t.jsx)(s.ExternalLink,{className:"size-4","aria-hidden":"true"})]}):null:e||o||W?(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[F&&I?(0,t.jsx)(n.Button,{type:"button",variant:"quiet",size:"sm",onClick:F,disabled:o||!e,children:I}):null,(0,t.jsx)(n.Button,{ref:z,type:"button",size:"sm",className:"min-w-24",onClick:E,disabled:o||b,pending:o&&!k,"aria-busy":o||void 0,children:W?h??u:u})]}):null]});return $?(0,t.jsx)("div",{className:"shrink-0 border-t border-line bg-surface pb-[env(safe-area-inset-bottom)]",children:U}):(0,t.jsx)(l.ActionRail,{className:"z-rail border-t border-line bg-surface",children:U})}])},996182,e=>{"use strict";var t=e.i(830182),r=e.i(511737);let s=(0,r.createContext)(!1);e.s(["LfgModeProvider",0,function({children:e,enabled:r}){return(0,t.jsx)(s.Provider,{value:r,children:e})},"useLfgMode",0,function(){return(0,r.useContext)(s)}])},957304,e=>{"use strict";let t={outsourcing:()=>e.A(627948),tuesday:()=>e.A(700464),rightGuy:()=>e.A(801680),monday:()=>e.A(147039),braveFace:()=>e.A(995811)};e.s(["hasLfgGame",0,function(e){return!!t[e]},"loadLfgGame",0,function(e){return t[e]?.()??null}])},21158,e=>{"use strict";let t=[{key:"restart",image:"/process-first-restart.png"},{key:"monday",image:"/process-first-monday.png"},{key:"tuesday",image:"/process-first-wife-tuesday.png"},{key:"noIdea",image:"/process-first-no-idea.png"},{key:"braveFace",image:"/process-first-brave-face.png"},{key:"outsourcing",image:"/process-first-outsourcing.png"},{key:"rightGuy",image:"/process-first-right-guy.png"}],r=["technically","summerVacation","sirpaAsked","trainingReplacement","hrChatbot","ceoLinkedIn","quickFix","pressedButton","lemons","lipstick","staring","byTheBook","mattiNotes","notOverthinking","ductTape","odin","vainamoinen","bigOrSmall","googling","unappreciated","knowWhatImDoing","letItThink","dontTellIt","workedYesterday","
1screenshot","documentation","server","backlog","aiTransformation","coffeeMachine","myMachine","replyAll","builtIn2007","circleBack","nineties","looksWrong"],s=["done","doneIThink","finnished","stopCalling","meTime","beenThere","ahtiOut","noThanks","somehow","topFive","notOurProblem"];function n(e,t){return e[Math.abs(t)%e.length]}e.s(["FIRST_MESSAGE_CARDS",0,t,"PROCESSING_SUCCESS_IMAGE",0,"/ahti-success-it-guy.png","getDoneMessage",0,function(e){return n(s,e)},"getFirstMessageCard",0,function(e){return n(t,e)},"getProgressMessage",0,function(e){return n(r,e)}])},146040,e=>{"use strict";var t=e.i(230223);e.s(["CheckCircle2",()=>t.default])},855170,e=>{"use strict";var t=e.i(228849);e.s(["AlertCircle",()=>t.default])},163171,e=>{"use strict";var t=e.i(445250);e.s(["AlertTriangle",()=>t.default])},28518,e=>{"use strict";function t(e){return"created"===e||"creating"===e||"outcome-unconfirmed"===e}e.s(["isFullFailure",0,function(e){return!(e.success||e.retry||e.backofficeHandoff||e.blockSplit||e.externalId||e.externalUrl||e.externalLinks?.length||e.batchResults?.some(e=>e.success||t(e.outcomeStatus))||e.salesOrderProjection?.items.some(e=>t(e.state)))},"isHumanError",0,function(e){return"object"==typeof e&&null!==e&&"what"in e&&"means"in e&&"action"in e&&"fromRegistry"in e}])},513799,e=>{"use strict";var t=e.i(830182),r=e.i(511737),s=e.i(371624);e.i(227247);var n=e.i(476130),i=e.i(548779),a=e.i(295766),l=e.i(708826),o=e.i(920479),c=r,u=e.i(171655);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends c.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,o.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,s=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,n=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(n.height),i.width=parseFloat(n.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left,i.bottom=s-i.height-i.top,i.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:s,anchorX:n,anchorY:i,root:a,pop:l}){let o=(0,c.useId)(),p=(0,c.useRef)(null),g=(0,c.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:h}=(0,c.useContext)(u.MotionConfigContext),y=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,s=e.map(e=>{let s=d(e,t);return r||"function"!=typeof s||(r=!0),s});if(r)return()=>{for(let t=0;t<s.length;t++){let r=s[t];"function"==typeof r?r():d(e[t],null)}}}}(...e),e)}(p,!1!==l?e.props?.ref??e?.ref:void 0);return(0,c.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:c,right:u,bottom:d,direction:f}=g.current;if(s||!1===l||!p.current||!e||!t)return;let m="rtl"===f,y="left"===n?m?`right: ${u}`:`left: ${c}`:m?`left: ${c}`:`right: ${u}`,x="bottom"===i?`bottom: ${d}`:`top: ${r}`;p.current.dataset.motionPopId=o;let b=document.createElement("style");h&&(b.nonce=h);let v=a??document.head;return v.appendChild(b),b.sheet&&b.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${y}px !important; 7 ${x}px !important; 8 } 9 `),()=>{p.current?.removeAttribute("data-motion-pop-id"),v.contains(b)&&v.removeChild(b)}},[s]),(0,t.jsx)(f,{isPresent:s,childRef:p,sizeRef:g,pop:l,children:!1===l?e:c.cloneElement(e,{ref:y})})}let p=({children:e,initial:s,isPresent:n,onExitComplete:o,custom:c,presenceAffectsLayout:u,mode:d,anchorX:f,anchorY:p,root:h})=>{let y=(0,i.useConstant)(g),x=(0,r.useId)(),b=(0,r.useRef)(n),v=(0,r.useRef)(o);(0,a.useIsomorphicLayoutEffect)(()=>{b.current=n,v.current=o});let k=!0,j=(0,r.useMemo)(()=>(k=!1,{id:x,initial:s,isPresent:n,custom:c,onExitComplete:e=>{for(let t of(y.set(e,!0),y.values()))if(!t)return;o&&o()},register:e=>(y.set(e,!1),()=>{y.delete(e),b.current||y.size||v.current?.()})}),[n,y,o]);return u&&k&&(j={...j}),(0,r.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[n]),r.useEffect(()=>{n||y.size||!o||o()},[n]),e=(0,t.jsx)(m,{pop:"popLayout"===d,isPresent:n,anchorX:f,anchorY:p,root:h,children:e}),(0,t.jsx)(l.PresenceContext.Provider,{value:j,children:e})};function g(){return new Map}var h=e.i(573837);let y=e=>e.key||"";function x(e){let t=[];
9return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:s,initial:l=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:f="left",anchorY:m="top",root:g})=>{let[b,v]=(0,h.usePresence)(d),k=(0,r.useMemo)(()=>x(e),[e]),j=d&&!b?[]:k.map(y),w=(0,r.useRef)(!0),A=(0,r.useRef)(k),S=(0,i.useConstant)(()=>new Map),C=(0,r.useRef)(new Set),[P,R]=(0,r.useState)(k),[M,N]=(0,r.useState)(k);(0,a.useIsomorphicLayoutEffect)(()=>{w.current=!1,A.current=k;for(let e=0;e<M.length;e++){let t=y(M[e]);j.includes(t)?(S.delete(t),C.current.delete(t)):!0!==S.get(t)&&S.set(t,!1)}},[M,j.length,j.join("-")]);let I=[];if(k!==P){let e=[...k];for(let t=0;t<M.length;t++){let r=M[t],s=y(r);j.includes(s)||(e.splice(t,0,r),I.push(r))}return"wait"===u&&I.length&&(e=I),N(x(e)),R(k),null}let{forceRender:E}=(0,r.useContext)(n.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:M.map(e=>{let r=y(e),n=(!d||!!b)&&(k===M||j.includes(r));return(0,t.jsx)(p,{isPresent:n,initial:(!w.current||!!l)&&void 0,custom:s,presenceAffectsLayout:c,mode:u,root:g,onExitComplete:n?void 0:()=>{if(C.current.has(r)||!S.has(r))return;C.current.add(r),S.set(r,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(E?.(),N(A.current),d&&v?.(),o&&o())},anchorX:f,anchorY:m,children:e},r)})})};var v=e.i(146040),k=e.i(855170),j=e.i(809626),w=e.i(647163),A=e.i(21158),S=e.i(961120),C=e.i(156075),P=e.i(720460),R=e.i(996182),M=e.i(957304);let N=(0,r.lazy)(()=>e.A(133331)),I={initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.5,opacity:0}},E={type:"spring",stiffness:500,damping:20};function F(e,t){let r=Math.max(0,Math.round(e/1e3));if(r<60)return t("seconds",{count:r});let s=Math.max(1,Math.ceil(r/60));if(s<60)return t("minutes",{count:s});let n=Math.floor(s/60),i=s%60;return i>0?t("hoursMinutes",{hours:n,minutes:i}):t("hours",{hours:n})}function O({meter:e,liveElapsedMs:r}){let s=(0,C.useFormat)(),n=(0,S.useTranslations)("surface.progress"),i=(0,P.useServerMessage)(),a=(e,t)=>t?i({...t,message:e},{field:"message",unknownCode:"text"}):e,l=a(e.title,e.codes?.title)??e.title,o=a(e.unitLabel,e.codes?.unitLabel),c=a(e.state,e.codes?.state),u=a(e.hint,e.codes?.hint),d=Math.max(0,e.active?.count??0),f=Math.min(e.total,e.completed+d),m=e.total>0?Math.max(0,Math.min(100,Math.round(f/e.total*100))):0,p=n("elapsed",{duration:F((e.elapsedMs??0)+r,n)}),g=e.eta?.status==="available"&&"number"==typeof e.eta.remainingMs?n("remaining",{duration:F(Math.max(0,e.eta.remainingMs-r),n)}):n("estimating");return(0,t.jsxs)("div",{className:"w-full rounded-xl border border-line bg-surface p-4 space-y-3",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("div",{className:"text-sm font-semibold tracking-tight",children:l}),(0,t.jsxs)("div",{className:"text-sm text-ink-muted",children:[s.number(e.completed)," / ",s.number(e.total)," ",o,d>0&&e.active&&(0,t.jsxs)(t.Fragment,{children:[" · ",s.number(d)," ",a(e.active.unitLabel,e.codes?.activeUnitLabel)]})]})]}),(0,t.jsx)(j.Meter,{value:m,label:n("ariaLabel",{title:l})}),(0,t.jsxs)("div",{className:"space-y-1 text-xs text-ink-muted",children:[(0,t.jsxs)("div",{children:[p," · ",g]}),c&&(0,t.jsx)("div",{children:c}),u&&(0,t.jsx)("div",{children:u})]})]})}e.s(["PipelineProgressLog",0,function({entries:e,showMeter:n=!0,showIllustration:i=!0,showActivity:a=!0}){let l=(0,S.useTranslations)("surface.processing.first"),o=(0,S.useTranslations)("surface.processing.progress"),c=(0,S.useTranslations)("surface.progress"),u=(0,P.useServerMessage)(),[d,f]=(0,r.useState)(()=>Date.now()),[m]=(0,r.useState)(()=>Date.now()),[p,g]=(0,r.useState)(null),h=(0,A.getFirstMessageCard)(m),y=(0,R.useLfgMode)(),x=i&&a,j=(0,r.useRef)(null);(0,r.useEffect)(()=>{x&&j.current?.focus()},[x]);let C=(0,r.useRef)(new Map),F=(0,r.useRef)([]),L="__starting",T={step:L,status:"running",timestamp:Date.now()},D=e.length>0?e:[T],W=new Map;for(let e of D)W.set(e.step,e),e.step===L||F.current.includes(e.step)||F.current.push(e.step);let z=Array.from(W.values()),H=z[z.length-1]??null,$=[...z].reverse().find(e=>e.meter)??null,q=$?.meter??null,B=function(e){let t=e?.meter;if(!e||!t)return null;let r=t.eta?.status==="available"?`available:${t.eta.remainingMs??0}`:t.eta?.status??"none";
9return[e.step,e.status,e.timestamp,t.completed,t.total,t.active?.count??0,t.elapsedMs??0,r].join("|")}($),U=$?.status==="running",G=B&&p?.signature===B?p.receivedAt:d,K=U?Math.max(0,d-G):0;(0,r.useEffect)(()=>{g(e=>B?e?.signature===B?e:{signature:B,receivedAt:Date.now()}:null===e?e:null)},[B]),(0,r.useEffect)(()=>{if(!B||!U)return;let e=window.setInterval(()=>{f(Date.now())},1e3);return()=>window.clearInterval(e)},[U,B]);let _=(0,t.jsx)(s.motion.img,{src:h.image,alt:"",className:"w-full max-h-[480px] object-contain rounded-xl",initial:{opacity:0,scale:.92},animate:{opacity:1,scale:1},transition:{duration:.6,ease:[.22,1,.36,1],delay:.15}});return(0,t.jsx)("div",{ref:j,...x?{role:"group",tabIndex:-1,"aria-label":c("processing")}:{},className:"flex flex-col items-center w-full outline-none focus-visible:focus-ring",children:(0,t.jsxs)("div",{className:"flex flex-col items-center w-[480px] max-w-full",children:[n&&(x||q)&&(0,t.jsx)("div",{"data-slot":"progress-meter",className:(0,w.cn)("w-full mb-5",x&&"min-h-32"),children:q&&(0,t.jsx)(s.motion.div,{className:"w-full",initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.25},children:(0,t.jsx)(O,{meter:q,liveElapsedMs:K})})}),i&&(0,t.jsxs)(t.Fragment,{children:[y&&(0,M.hasLfgGame)(h.key)?(0,t.jsx)(r.Suspense,{fallback:_,children:(0,t.jsx)(N,{cardKey:h.key,children:_})}):_,(0,t.jsx)(s.motion.p,{className:"font-(family-name:--font-kalam) text-2xl font-bold text-center leading-snug mt-3 px-2",initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5},children:l(h.key)})]}),i&&a&&(0,t.jsx)(s.motion.div,{className:"w-12 h-px bg-line my-4",initial:{opacity:0}
9,animate:{opacity:1},transition:{duration:.4,delay:.7}}),a&&(0,t.jsx)("div",{className:"w-full min-h-10",role:x?"status":void 0,children:(0,t.jsx)(b,{mode:"wait",children:H&&(0,t.jsxs)(s.motion.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.25},className:"flex items-center gap-2.5 text-sm",children:[(0,t.jsxs)(b,{mode:"wait",children:["done"===H.status&&(0,t.jsx)(s.motion.span,{variants:I,initial:"initial",animate:"animate",exit:"exit",transition:E,className:"shrink-0",children:(0,t.jsx)(v.CheckCircle2,{className:"h-4 w-4 text-sea-glass-ink"})},"done"),"running"===H.status&&(0,t.jsx)(s.motion.span,{variants:I,initial:"initial",animate:"animate",exit:"exit",transition:E,className:"shrink-0",children:(0,t.jsx)(s.motion.img,{src:"/ahti-color.png",alt:"",className:"h-5 w-5 object-contain",animate:{rotate:[-6,0,6,0,-6],y:[0,-3,0,-2,0]},transition:{duration:1.6,ease:"easeInOut",repeat:1/0}})},"running"),"error"===H.status&&(0,t.jsx)(s.motion.span,{variants:I,initial:"initial",animate:"animate",exit:"exit",transition:E,className:"shrink-0",children:(0,t.jsx)(k.AlertCircle,{className:"h-4 w-4 text-lingon-ink"})},"error")]}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"done"===H.status?"text-ink-muted":"font-medium",children:o(function(e){if(!C.current.has(e)){let t=F.current.indexOf(e),r=m+function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(31,t)+e.charCodeAt(r)|0;return t}(e)+7919*Math.max(t,0),s=(0,A.getProgressMessage)(r);if(C.current.size>0){let e=new Set(C.current.values()),t=1;for(;e.has(s)&&t<=e.size;)s=(0,A.getProgressMessage)(r+t),t++}C.current.set(e,s)}return C.current.get(e)}(H.step))}),(H.detail||H.code)&&(0,t.jsxs)("span",{className:"text-ink-muted ml-1.5",children:["â ",H.code?u({code:H.code,params:H.params,message:H.detail},{field:"message",unknownCode:"text"}):H.detail??""]})]})]},H.step)})}),a&&z.length>1&&(0,t.jsx)(s.motion.div,{className:"flex gap-1.5 mt-3 justify-center",initial:{opacity:0}
9,animate:{opacity:1},transition:{duration:.4,delay:.7},children:z.map(e=>(0,t.jsx)("span",{className:`h-1.5 w-1.5 rounded-full transition-all duration-300 ${"done"===e.status?"bg-sea-glass":"running"===e.status?"bg-sea-glass/60 animate-pulse":"error"===e.status?"bg-lingon":"bg-surface-sunken"}`},e.step))})]})})}],513799)},12435,e=>{"use strict";var t=e.i(739914);function r(e){if(e)return"string"==typeof e?e:"object"==typeof e&&null!==e?e.msg||e.message||e.error||(Array.isArray(e.errors)?e.errors.join("; "):void 0)||JSON.stringify(e):String(e)}function s(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}e.s(["parseAsyncJobResult",0,function(e){var n;if(!e)return{success:!1,error:"No result data"};let i=e.response?.result||e.response||{},a="boolean"==typeof i.status?i.status:"number"==typeof i.status?i.status>=200&&i.status<300:e.success,l={success:a,message:i.message||e.message,file:e.file||i.file,rawResponse:e.response,...s(e.backofficeHandoff)&&"string"==typeof e.backofficeHandoff.reference&&("open"===e.backofficeHandoff.status||"closed"===e.backofficeHandoff.status)?{backofficeHandoff:e.backofficeHandoff}:{}},o=s(i.poParseResult)&&"boolean"==typeof i.poParseResult.success?i.poParseResult:null;if(o)return{...l,success:o.success,error:"string"==typeof o.error?o.error:void 0,data:{poParseResult:o}};let c=s(i.salesOrderParseResult)&&s(i.salesOrderParseResult.summary)&&Array.isArray(i.salesOrderParseResult.orders)?i.salesOrderParseResult:null;if(c)return{...l,success:!0,data:{salesOrderParseResult:c}};if("no-orders"===i.code||"intake-runtime"===i.code)return{...l,success:!1,error:"string"==typeof i.error?i.error:void 0,data:{intakeFailureCode:i.code,..."string"==typeof i.handoffReference?{handoffReference:i.handoffReference}:{}}};if("string"==typeof i.title&&i.title.length>0&&(l.title=i.title,"string"==typeof i.titleCode&&i.titleCode)){let e=(0,t.carryServerCode)({code:i.titleCode,params:i.titleParams});l.titleCode=e.code,e.params&&(l.titleParams=e.params)}if("boolean"==typeof i.dryRun&&(l.dryRun=i.dryRun),"boolean"==typeof i.canRunFull&&(l.canRunFull=i.canRunFull),s(n=i.previewTable)&&Array.isArray(n.columns)&&Array.isArray(n.rows)&&(l.previewTable=i.previewTable),s(i.qaSummary)&&(l.qaSummary=i.qaSummary),s(i.cohortCoverage)&&(l.cohortCoverage=i.cohortCoverage),Array.isArray(i.blockingFindings)&&(l.blockingFindings=i.blockingFindings),Array.isArray(i.warnings)&&(l.warnings=i.warnings),Array.isArray(i.packetWarnings)){let e=i.packetWarnings.filter(e=>"string"==typeof e&&e.trim().length>0).map(e=>({severity:"warning",rowIndex:null,sku:null,sourceHeader:null,language:null,message:e,suggestedFix:null}));e.length>0&&(l.warnings=[...l.warnings??[],...e])}Array.isArray(i.info)&&(l.info=i.info),s(i.retry)&&"string"==typeof i.retry.previewId&&"number"==typeof i.retry.targetCount&&"number"==typeof i.retry.lineageDepth&&(l.retry=i.retry),s(i.resultReference)&&"async-job"===i.resultReference.kind&&"string"==typeof i.resultReference.jobId&&(l.resultReference=i.resultReference),s(i.blockSplit)&&(l.blockSplit=i.blockSplit);let u=Array.isArray(e.files)?e.files:Array.isArray(i.files)?i.files:null;u&&u.length>0&&(l.files=u);let d=e.bundle||i.bundle;d&&(l.bundle=d);let f=e.combinedFile||i.combinedFile;f&&(l.combinedFile=f);let m=Array.isArray(e.supportingFiles)?e.supportingFiles:Array.isArray(i.supportingFiles)?i.supportingFiles:null;m&&m.length>0&&(l.supportingFiles=m);let p=Array.isArray(e.artifactWarnings)?e.artifactWarnings:i.artifactWarnings,g=Array.isArray(p)?p.filter(e=>"string"==typeof e&&e.trim().length>0):[];g.length>0&&(l.artifactWarnings=g);let h=e.salesOrderPresentation||i.salesOrderPresentation;"compact-v1"===h&&(l.salesOrderPresentation=h);let y=e.techPackPresentation||i.techPackPresentation,x=e.techPackIdentity||i.techPackIdentity;"v1"===y&&s(x)&&"string"==typeof x.productKey&&"string"==typeof x.seasonKey&&(l.techPackPresentation="v1",l.techPackIdentity={productKey:x.productKey,seasonKey:x.seasonKey}),a||(l.error=r(i.error)||r(e.response?.error)||i.message||"Action execution failed"),a&&i.message?"string"==typeof i.code&&i.code.includes(".")&&Object.assign(l,(0,t.carryServerCode)(i)):Object.assign(l,(0,t.carryServerCode)(e));let b=function(e){let t=new Set(["status","message","error","url","id","links","results","file","files","bundle","combinedFile","supportingFiles","artifactWarnings","salesOrderPresentation","techPackPresentation","techPackIdentity","salesOrderExportWarning","salesOrderExportWarnings","nativeSalesOrderPdfWarning","nativeSalesOrderPdfWarnings","productDataSheetWarning","productDataSheetWarnings","bundleWarning","success","errors","title","followups","dryRun","canRunFull","previewTable","qaSummary","cohortCoverage","blockingFindings","warnings","packetWarnings","packetSummary","info","blockSplit","titleCode","titleParams","retry","resultReference","logicalCells","pipelineSteps","ordersFailed","ordersCreated","ordersSkipped","lineItemsSkipped","lineItemsProcessed","pipelineDurationMs","totalLineItems","parentsCreated","variantsCreated","skipped","failed","code","params"]),r={};for(let[s,n]of Object.entries(e))t.has(s)||null==n||"object"!=typeof n&&(r[s]=n);return r}(i);for(let e of["parentPreflight","manifest","labelScope"])s(i[e])&&(b[e]=i[e]);Array.isArray(i.failedParents)&&(b.failedParents=i.failedParents),Object.keys(b).length>0&&(l.data=b),i.links&&Array.isArray(i.links)&&(l.externalLinks=i.links.map(e=>({label:e.label,url:e.url,...(0,t.carryServerCode)(e)}))),(i.url||e.response?.url)&&(l.externalUrl=i.url||e.response?.url),(i.id||e.response?.id)&&
9(l.externalId=i.id||e.response?.id);let v=i.results&&Array.isArray(i.results)?i.results:e.response?.results&&Array.isArray(e.response.results)?e.response.results:null;return v&&(l.batchResults=v.map(e=>({label:e.label||e.vendorName||e.externalId||e.name||"Item",success:!1!==e.success,message:e.message,detail:e.detail,error:e.error,...(0,t.carryServerCode)(e),externalUrl:e.url||e.netsuiteUrl||e.externalUrl,salesOrderId:"string"==typeof e.salesOrderId?e.salesOrderId:void 0,tranId:"string"==typeof e.tranId?e.tranId:void 0,customerName:"string"==typeof e.customerName?e.customerName:void 0,files:Array.isArray(e.files)?e.files:void 0,details:e.details}))),Array.isArray(i.followups)&&i.followups.length>0&&(l.followups=i.followups),l}])}]);
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.