@boltic/swirl 1.0.2-uat.74 → 1.0.2-uat.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/swirl.es.js +8 -4
- package/dist/swirl.umd.js +2 -2
- package/package.json +1 -1
package/dist/swirl.umd.js
CHANGED
|
@@ -432,7 +432,7 @@ $2`).replace(/lambda\s+([^:]+):\n/g,"lambda $1: ").replace(/[ \t]+/g," ").trim()
|
|
|
432
432
|
7. Use placeholders like {{ }} from previous activity results where it makes sense for dynamic data.
|
|
433
433
|
8. Return only the JSON object without any additional explanations or formatting.`}];default:return[]}},ZMe=(e,t)=>{function n(i){const o=[],s=/([a-zA-Z_$][a-zA-Z0-9_$]*)|\[(\d+)\]|\["([^"]+)"\]|\['([^']+)'\]/g;let a;for(;a=s.exec(i);){const[,l,u,c,d]=a;o.push(l??u??c??d)}return o}const r=JSON.parse(JSON.stringify(e));for(const i in r){const o=r[i];if(typeof o=="object"){delete o.canvasNodeData,delete o.canvasActivityData;for(const s in o)typeof o[s]=="object"&&(delete o[s].canvasNodeData,delete o[s].canvasActivityData)}}return i=>{const{state:o,pos:s}=i,a=o.doc.lineAt(s),l=a.text.slice(0,s-a.from),u=s>0?o.doc.sliceString(s-1,s):"";if(!u||/\s/.test(u)||u==="}")return null;const c=t==="javascript"||t==="typescript",d=l.includes("{{")&&l.lastIndexOf("{{")>l.lastIndexOf("}}");if(!d&&!c)return null;const p=d?l.match(/{{\s*([a-zA-Z0-9_.$\[\]"']+)$/):l.match(/([a-zA-Z0-9_.$\[\]"']+)$/);if(!p||!p[1])return null;const h=p[1];if(!h||h.trim().length===0)return null;const A=n(h);if(A.length===0&&!h.endsWith("."))return null;const g=h.endsWith("."),m=g?A.join("."):A.slice(0,-1).join("."),E=g?"":A[A.length-1],y=s-(E?.length||0),v=m?up(r,m):r;if(!v||typeof v!="object")return null;const T=Object.keys(v).map(_=>{const x=v[_],w=Array.isArray(x)?"array":typeof x;return{label:_,type:w,detail:typeof x=="object"?JSON.stringify(x,null,2):String(x),apply:_}});return{from:y,options:T,filter:!0}}},JMe=[{key:"Ctrl-z",mac:"Cmd-z",run:Du,preventDefault:!0},{key:"Ctrl-y",mac:"Cmd-Shift-z",run:Fa,preventDefault:!0},{key:"Ctrl-Shift-z",run:Fa,preventDefault:!0}],Ts={InvalidSymbol:1,InvalidNumberFormat:2,PropertyNameExpected:3,ValueExpected:4,ColonExpected:5,CommaExpected:6,CloseBraceExpected:7,CloseBracketExpected:8,EndOfFileExpected:9,InvalidCommentToken:10,UnexpectedEndOfComment:11,UnexpectedEndOfString:12,UnexpectedEndOfNumber:13,InvalidUnicode:14,InvalidEscapeCharacter:15,InvalidCharacter:16},eFe=e=>{switch(e){case Ts.InvalidSymbol:return"Invalid symbol encountered while parsing";case Ts.InvalidNumberFormat:return"Number format is invalid";case Ts.PropertyNameExpected:return"Expected a property name";case Ts.ValueExpected:return"Expected a value";case Ts.ColonExpected:return"Expected a colon";case Ts.CommaExpected:return"Expected a comma";case Ts.CloseBraceExpected:return"Expected a closing brace }";case Ts.CloseBracketExpected:return"Expected a closing bracket ]";case Ts.EndOfFileExpected:return"Expected end of file";case Ts.InvalidCommentToken:return"Invalid comment token";case Ts.UnexpectedEndOfComment:return"Comment was not properly closed";case Ts.UnexpectedEndOfString:return"String was not properly closed";case Ts.UnexpectedEndOfNumber:return"Number is incomplete or malformed";case Ts.InvalidUnicode:return"Invalid Unicode sequence";case Ts.InvalidEscapeCharacter:return"Invalid escape character in string";case Ts.InvalidCharacter:return"Invalid character encountered";default:return`Unknown parse error (code: ${e})`}},tFe=e=>e?"__TEMPLATE_VAR__":'"__TEMPLATE_VAR__"',nFe=(e,t,n)=>{let r=t-1,i=n;for(;r>=0&&e[r]!=='"'&&e[r]!==`
|
|
434
434
|
`;)r--;for(;i<e.length&&e[i]!=='"'&&e[i]!==`
|
|
435
|
-
`;)i++;return r>=0&&i<e.length&&e[r]==='"'&&e[i]==='"'},kz=e=>{const t=[],n=/\{\{[^}]*\}\}/g;let r;for(;(r=n.exec(e))!==null;){const i=r[0],o=r.index,s=r.index+i.length,a=nFe(e,o,s),l=tFe(a);t.push({start:o,end:s,content:i,replacement:l,isInsideQuotes:a})}return t},Mz=(e,t)=>{let n=e,r=0;for(const i of t){const o=i.start+r,s=i.end+r;n=n.slice(0,o)+i.replacement+n.slice(s),r+=i.replacement.length-i.content.length}return n},rFe=e=>{const t=n=>{if(n.type==="object"&&n.children){const r=new Set;for(const i of n.children){const s=i.children?.[0]?.value;if(!s||typeof s!="string"||s==="__TEMPLATE_VAR__")continue;if(r.has(s))return!1;r.add(s);const a=i.children?.[1];if(a&&!t(a))return!1}}else if(n.type==="array"&&n.children){for(const r of n.children)if(!t(r))return!1}return!0};return t(e)},iFe=(e,t)=>{const n=e.trim();if(t.length!==1)return!1;const r=t[0];return n===r.content},oFe=(e,t,n=!0,r=!1,i=!1)=>e!=="json"?[]:jV(o=>{const s=o.state.doc.toString();if(s.trim()==="")return[];const a=[],l=kz(s),u=iFe(s,l),c=Mz(s,l),d=[],p=$m(c,d);if(r){if(u)return t&&t([]),[];for(const y of l)y.isInsideQuotes||a.push({from:y.start,to:y.end,severity:"error",message:`Template variable "${y.content}" must be quoted in JSON GUI. Use "${y.content}" instead.`});const h=s.trim(),A=[],g=$m(h,A),m=y=>!y||y.type!=="array"||!y.children?!1:y.children.every(v=>v.type==="object");((y,v)=>{if(y&&!v){if(y.type==="object")return;if(y.type==="array"){if(!i){a.push({from:0,to:s.length,severity:"error",message:'JSON GUI requires proper structure. Use format like {"key": "value"}'});return}m(y)||a.push({from:0,to:s.length,severity:"error",message:"When using an array at the root, it must be an array of objects."});return}a.push({from:0,to:s.length,severity:"error",message:'JSON GUI requires proper structure. Use format like {"key": "value"} or [{"key": "value"}].'})}else if(h&&h!=="")if(p&&(p.type==="object"||p.type==="array")){if(p.type==="object")return;if(p.type==="array"){if(!i){a.push({from:0,to:s.length,severity:"error",message:""});return}m(p)||a.push({from:0,to:s.length,severity:"error",message:"When using an array at the root, it must be an array of objects."});return}}else a.push({from:0,to:s.length,severity:"error",message:'JSON GUI requires proper key-value structure. Use format like {"key": "value"}.'})})(g,A.length>0)}for(const h of d){const A=eFe(h.error);let g=h.offset;for(const E of l){const y=E.content.length-E.replacement.length;h.offset>E.start&&(g+=y)}if(!l.some(E=>g>=E.start&&g<E.end||g+h.length>E.start&&g+h.length<=E.end||g<=E.start&&g+h.length>=E.end)){const E=o.state.doc.lineAt(g);a.push({from:g,to:g+h.length,severity:"error",message:`Syntax error: ${A} on line ${E.number}`})}}if(p&&n){const h=A=>{if(A.type==="object"&&A.children){const g=new Map;for(const m of A.children){const E=m.children?.[0],y=E?.value;if(!y||typeof y!="string"||y==="__TEMPLATE_VAR__")continue;if(g.has(y)){let T=E.offset+1;for(const x of l){const b=x.content.length-x.replacement.length;E.offset>x.start&&(T+=b)}if(!l.some(x=>T>=x.start&&T<x.end||T+y.length>x.start&&T+y.length<=x.end||T<=x.start&&T+y.length>=x.end)){const x=o.state.doc.lineAt(T);a.push({from:T,to:T+y.length,severity:"error",message:`Duplicate key "${y}" found on line ${x.number}. This may corrupt the JSON GUI data.`})}}else g.set(y,E);const v=m.children?.[1];v&&h(v)}}else if(A.type==="array"&&A.children)for(const g of A.children)h(g)};h(p)}return t&&t(a),a}),sFe=[],Fz={json:NH(),javascript:z2({jsx:!0,typescript:!0}),html:RH(),xml:OV(),plaintext:[],sql:pD(),python:KH(),graphql:sFe},aFe=e=>{const t=O.useTheme(),{showMenu:n,contextMenuElement:r}=OMe(),{value:i,onChange:o,onFocus:s,onBlur:a,language:l="plaintext",height:u="150px",suggestionsData:c={},placeholder:d,viewOnly:p=!1,className:h,error:A,errorMsg:g,codeEditorStyles:m={},showSuggestions:E,noDuplicateKeys:y=!0,enableJsonGuiValidation:v=!1,handleValidate:T,loading:_=!1,suggestionLabel:x,allowArrayAtRoot:b=!1,...w}=e,D=C.useMemo(()=>c&&typeof c=="object"&&Object.keys(c).length>0?c:{},[JSON.stringify(c)]),[I,P]=C.useState(null),k=C.useRef(null),N=C.useRef(null),L=ht.useDispatch(),M=C.useRef(null),B=C.useRef(null),[Q,V]=C.useState(!1),q=Dt.useNodes(),{canvasWorkflow:F,activityExecutionData:G}=ht.useSelector(Ae=>Ae.canvas),{WORKFLOW_URLS:W,ENTITY_ID:R="",analytics:j,openAddonModal:$,currentSubscription:Y}=wi(),{VORTEX_MAIN_URL:z}=W,H=Oo(),U=Tr(H),J=Tr(Pn.VERSION)||U,{setNodes:te,getEdges:ae}=Dt.useReactFlow(),{MCP_INTEGRATION_FORM:re}=oa(),ue=Ae=>{try{if(l!=="json")return!0;const fe=kz(Ae);if(v&&fe.length===1&&Ae.trim()===fe[0].content)return!0;const Se=Mz(Ae,fe),ge=[],ye=$m(Se,ge);return ye?ge.length>0?!1:y?rFe(ye):!0:!0}catch{return!1}};C.useEffect(()=>{if(B.current&&i!==B.current.state.doc.toString()){const Ae=B.current.hasFocus;B.current.dispatch({changes:{from:0,to:B.current.state.doc.length,insert:i}}),Ae&&requestAnimationFrame(()=>{B.current?.focus()})}},[i]),C.useEffect(()=>{if(!M.current)return;const Ae=Pt.theme({...QMe(t,m,A,g,e.size,p)}),fe=Pt.updateListener.of(je=>{try{if(je.docChanged&&!p){const et=je.state.doc.toString();(ue(et)||!v)&&o?.(et)}if((je.docChanged||je.selectionSet)&&!p)try{const et=je.state.doc.toString(),rt=je.state.selection.main.head;if(et.slice(0,rt).endsWith("")){const Ie=M.current,He=Ie?.querySelector(".cm-cursor"),Ve=document.getElementById("suggestion-popover"),_e=!!Ie?.closest('[data-testid$="-full-mode"]'),we=Ve&&Ve.isConnected;if(He&&I===null&&E&&!we)if(_e){const ee=new CustomEvent("suggestions-about-to-open",{detail:{shouldShift:!0}});window.dispatchEvent(ee);const de=()=>{const be=Ie?.querySelector(".cm-cursor"),Ge=document.getElementById("suggestion-popover");be&&!Ge&&I===null&&P(be),window.removeEventListener("dialog-reposition-complete",de)};window.addEventListener("dialog-reposition-complete",de),setTimeout(()=>{window.removeEventListener("dialog-reposition-complete",de);const be=Ie?.querySelector(".cm-cursor"),Ge=document.getElementById("suggestion-popover");be&&!Ge&&I===null&&P(be)},400)}else P(He)}else P(null)}catch{}}catch{}}),Se=Pt.domEventHandlers({focus:()=>{try{const je=B.current?.state.doc.toString()||"";if((ue(je)||!v)&&s?.(je),I===null&&E&&Object.keys(D).length>0){const et=M.current,rt=et?.querySelector(".cm-cursor"),nt=document.getElementById("suggestion-popover"),He=!!et?.closest('[data-testid$="-full-mode"]');if(rt&&!nt)if(He){const Ve=new CustomEvent("suggestions-about-to-open",{detail:{shouldShift:!0}});window.dispatchEvent(Ve);const Ee=()=>{const _e=et?.querySelector(".cm-cursor"),we=document.getElementById("suggestion-popover");_e&&!we&&I===null&&P(_e),window.removeEventListener("dialog-reposition-complete",Ee)};window.addEventListener("dialog-reposition-complete",Ee),setTimeout(()=>{window.removeEventListener("dialog-reposition-complete",Ee);const _e=et?.querySelector(".cm-cursor"),we=document.getElementById("suggestion-popover");_e&&!we&&I===null&&P(_e)},400)}else P(rt)}}catch{}return!1},blur:()=>{try{const je=B.current?.state.doc.toString()||"";try{(ue(je)||!v)&&a?.(je)}catch{}}catch{}return!1}}),ge=Fz[l]||Fz.plaintext;let ye=null;try{ye=ZMe(D,l)}catch{ye=()=>null}const $e=wr.create({doc:i,extensions:[PD,ge,Rz.of(l),_2({newGroupDelay:500}),kf.of(JMe),Hy({maxRenderedOptions:100,defaultKeymap:!0,icons:!0}),wr.languageData.of(()=>[{...Object.keys(D).length>0&&E&&{autocomplete:ye}}]),LMe,Ae,l==="json"?[oFe(l,T,y,v,b)]:[],WMe,fe,zMe,Pt.lineWrapping,LI(d||"Enter text here"),Se,wr.readOnly.of(!!p),Pt.editable.of(!p),...p?[Pt.contentAttributes.of({tabindex:"0"}),Pt.domEventHandlers({paste:je=>(je.preventDefault(),!0)}),kf.of([{key:"Ctrl-v",mac:"Cmd-v",run:()=>!0,preventDefault:!0},{key:"Ctrl-x",mac:"Cmd-x",run:()=>!0,preventDefault:!0}])]:[],CV({top:!0})]}),Qe=new Pt({state:$e,parent:M.current});return B.current=Qe,kMe(Qe,n),()=>Qe.destroy()},[D,l]),C.useEffect(()=>()=>{N.current&&clearTimeout(N.current),B?.current?.dispatch({changes:{from:0,to:B.current.state.doc.length,insert:""}}),B.current?.destroy()},[]);const Oe=async Ae=>{const fe=[...Array.isArray(q)?q:[]],Se={nodes:[cc({...Ae})],result:U0(F,q,G,Ae?.id,ae())};V(!0);const{success:ge,isError:ye,data:$e}=await $0(Ae,L,z,R,fe,q,Se,N,j,J,$,Y);return ge&&!ye?(V(!1),Ca(te,Ae,{...Ae.data.blt_node_states,test:"completed",node:"completed"}),ge):(ye&&(delete $e.singleRunFailure,Ca(te,Ae,{...Ae.data.blt_node_states,test:"error",node:"failed"}),Object.keys($e).forEach(je=>{UO($e[je]).forEach(rt=>{L({type:zn,payload:{open:!0,title:typeof rt!="string"?JSON.stringify(rt):rt,type:"error",width:"30rem",duration:3e3}})})})),V(!1),!1)},Te=async Ae=>{const fe=q?.find(Se=>Se?.id===Ae);fe&&await Oe(fe)},se=Ae=>{L({type:su,payload:{id:Ae}})},ie=async({label:Ae})=>{const fe=B.current;if(!fe)return;const Se=fe.state.doc.length,ge=fe.state.selection.main,ye=Math.min(ge.from,Se),$e=Math.min(ge.to,Se),Qe=["javascript","typescript","python"].includes(l)?`${Ae}`:`{{${Ae}}}`;fe.dispatch({changes:{from:ye,to:$e,insert:Qe},selection:{anchor:ye+Qe.length},scrollIntoView:!0}),setTimeout(()=>{fe.focus()},100)},Z=C.useCallback(()=>{const Ae=B.current;Ae&&!p&&(Du(Ae),Ae.focus())},[p]),K=C.useCallback(()=>{const Ae=B.current;Ae&&!p&&(Fa(Ae),Ae.focus())},[p]),ne=C.useCallback(()=>{const Ae=B.current;return!Ae||p?!1:wh(Ae.state)>0},[p]),le=C.useCallback(()=>{const Ae=B.current;return!Ae||p?!1:Ih(Ae.state)>0},[p]),pe=C.useMemo(()=>f.jsx(O.Typography,{variant:"mdBold",children:x?`Insert data for ${x}`:"Insert data"}),[x]);return C.useImperativeHandle(w.ref,()=>({undo:Z,redo:K,canUndo:ne,canRedo:le,focus:()=>B.current?.focus(),getContent:()=>B.current?.state.doc.toString()||""}),[Z,K,ne,le]),f.jsxs(O.Stack,{style:{width:"100%"},ref:k,spacing:2,...w,children:[_?f.jsx(O.Stack,{justifyContent:"center",alignItems:"center",sx:{height:u,border:"1px solid",borderColor:t.palette.grey[300],borderRadius:2,backgroundColor:t.palette.background.default},children:f.jsx(hi,{size:24})}):f.jsx(O.Stack,{ref:M,className:`rounded-lg overflow-hidden ${h}`,style:{height:u,width:"100%",position:"relative"},children:!re&&f.jsx(Cw,{title:x?pe:"",anchorEl:I,suggestionsData:c,setAnchorEl:()=>P(null),ref:k,handleSuggestionClick:ie,runActivity:Te,handleCompleteSetup:se,isLoading:Q})}),r]})};function lFe(e,t){const n=e.value===t.value&&e.language===t.language&&e.viewOnly===t.viewOnly&&e.height===t.height&&e.className===t.className&&e.error===t.error&&e.errorMsg===t.errorMsg&&e.showSuggestions===t.showSuggestions,r=e.suggestionsData,i=t.suggestionsData,o=r==null&&i==null||(typeof r=="object"&&typeof i=="object"?Object.keys(r).length===Object.keys(i).length&&Object.keys(r).every(s=>JSON.stringify(r[s])===JSON.stringify(i[s])):r===i);return n&&o}const EP=C.memo(aFe,lFe),Bz={xs:{height:"36px"},sm:{height:"64px"},md:{height:"218px"},lg:{height:"320px"},xl:{height:"440px"},xxl:{height:"560px"}},uFe={xs:{height:"16",width:"16",padding:"2px !important"},sm:{height:"16",width:"16",padding:"4px !important"},md:{height:"20",width:"20",padding:"6px !important"},lg:{height:"20",width:"20",padding:"6px !important"},xl:{height:"20",width:"20",padding:"6px !important"},xxl:{height:"20",width:"20",padding:"6px !important"}},cFe={xs:{right:"40px",top:"6px"},sm:{right:"40px",top:"6px"},md:{right:"48px",top:"15px"},lg:{right:"48px",top:"15px"},xl:{right:"48px",top:"15px"},xxl:{right:"48px",top:"15px"}},dFe=({copied:e,theme:t,size:n})=>{const{padding:r,height:i,width:o}=uFe[n];return f.jsx(O.Button,{variant:"text",type:"button",sx:{position:"relative",minWidth:0,right:8,top:0,p:r,border:1,borderRadius:1,backgroundColor:t.palette.common.white,"&:hover":{backgroundColor:t.palette.common.white}},children:f.jsx("svg",{width:o,height:i,focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",children:e?f.jsx("path",{fill:t.palette.primary.main,d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.24 11.28L9.69 11.2c-.38-.39-.38-1.01 0-1.4.39-.39 1.02-.39 1.41 0l1.36 1.37 4.42-4.46c.39-.39 1.02-.39 1.41 0 .38.39.38 1.01 0 1.4l-5.13 5.17c-.37.4-1.01.4-1.4 0zM3 6c-.55 0-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1-.45-1-1V7c0-.55-.45-1-1-1z"}):f.jsx("path",{fill:t.palette.common.black,d:"M15 20H5V7c0-.55-.45-1-1-1s-1 .45-1 1v13c0 1.1.9 2 2 2h10c.55 0 1-.45 1-1s-.45-1-1-1zm5-4V4c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2zm-2 0H9V4h9v12z"})})})},fFe=C.forwardRef(({activityType:e,language:t="javascript",value:n="",enableAskAI:r=!1,handleChange:i,handleFocus:o=()=>{},handleBlur:s=()=>{},height:a="",showExpandOption:l=!1,showHtmlPreview:u=!1,showCopyToClipboard:c=!1,VORTEX_MAIN_URL:d,ENTITY_ID:p,suggestionsData:h={},loading:A=!1,size:g="xs",label:m="",rightLabel:E=null,required:y=!1,rightLabelAlignment:v="center",placeholder:T="",helperText:_="",errorMsg:x="",error:b=!1,showSuggestions:w=!0,id:D="",viewOnly:I=!1,readOnly:P=!1,enableJsonGuiValidation:k=!1,handleValidate:N,sx:L={},codeEditorStyles:M={},suggestionLabel:B="",options:Q,...V},q)=>{const F=ht.useDispatch(),G=O.useTheme(),[W,R]=C.useState(!1),[j,$]=C.useState(!1),[Y,z]=C.useState(!1),[H,U]=C.useState(!1),[X,J]=C.useState(""),[te,ae]=C.useState(!1),[re,ue]=C.useState(""),[Oe,Te]=C.useState(!1),[se,ie]=C.useState(!1),[Z,K]=C.useState(!1);C.useEffect(()=>{W||K(!1)},[W]),C.useEffect(()=>{if(!W)return;let ge=Z,ye=null,$e=!1,Qe=!1;const je=()=>{const _e=window.innerWidth,de=500+32,be=60,Ge=_e>=1200?800:0,Ne=_e-de;if(_e<600)return"75%";if(_e<960){const gt=Math.min(Ne,_e*.55)/_e*100,St=Math.max(gt,be),De=_e*St/100;return`${(Ge>0?Math.max(De,Ge):De)/_e*100}%`}else{const gt=Math.min(Ne,_e*.45)/_e*100;let St=gt;gt<be&&_e*be/100+de<=_e&&(St=be);const De=_e*St/100;return`${(Ge>0?Math.max(De,Ge):De)/_e*100}%`}},et=()=>window.innerWidth>=1200?"800px":"",rt=(_e=!1)=>{ye&&clearTimeout(ye),ye=setTimeout(()=>{const we=document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper"),ee=we?.closest(".MuiDialog-container");if(we&&ee){we.style.transition="width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1)",ee.style.transition="justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)";const de=document.getElementById("suggestion-popover"),be=de!==null&&window.getComputedStyle(de).display!=="none"&&window.getComputedStyle(de).visibility!=="hidden";if(be!==$e||be!==ge){$e=be,be&&!ge&&(ge=!0,K(!0));const Ge=window.innerWidth;if((ge||be)&&Ge>=1200){const Ne=je();we.style.width=Ne,we.style.maxWidth=Ne,we.style.minWidth=et(),ee.style.justifyContent="flex-end",_e&&de&&!be&&(Qe=!0,de.style.visibility="hidden",de.style.opacity="0",we.addEventListener("transitionend",()=>{if(de){de.style.visibility="",de.style.opacity="";const Fe=new Event("resize");window.dispatchEvent(Fe)}Qe=!1},{once:!0}))}else Ge<1200?be&&!ge&&(ge=!0,K(!0)):(we.style.width="",we.style.maxWidth="",ee.style.justifyContent="")}}},50)},nt=()=>{if(window.innerWidth<1200){ge||(ge=!0,K(!0));const we=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(we);return}if(ge){const we=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(we)}else{const we=document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper"),ee=we?.closest(".MuiDialog-container");if(we&&ee){we.style.transition="width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1)",ee.style.transition="justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)";const de=je();we.style.width=de,we.style.maxWidth=de,we.style.minWidth=et(),ee.style.justifyContent="flex-end",ge=!0,K(!0);const be=Ge=>{const Ne=Ge;if((Ne.target===we||Ne.target===ee)&&(Ne.propertyName==="width"||Ne.propertyName==="max-width"||Ne.propertyName==="justify-content")){const Fe=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(Fe),we.removeEventListener("transitionend",be),ee.removeEventListener("transitionend",be)}};we.addEventListener("transitionend",be),ee.addEventListener("transitionend",be),setTimeout(()=>{const Ge=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(Ge),we.removeEventListener("transitionend",be),ee.removeEventListener("transitionend",be)},350)}}};window.addEventListener("suggestions-about-to-open",nt);const Ie=setTimeout(()=>{requestAnimationFrame(()=>{const _e=document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper"),we=_e?.closest(".MuiDialog-container");_e&&we&&(_e.style.transition="width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1)",we.style.transition="justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)"),rt()})},0),He=new MutationObserver(_e=>{if(_e.some(ee=>{const de=ee.target;return de.id==="suggestion-popover"||de.closest("#suggestion-popover")!==null||ee.type==="childList"&&(Array.from(ee.addedNodes).some(be=>be.id==="suggestion-popover")||Array.from(ee.removedNodes).some(be=>be.id==="suggestion-popover"))})&&!Qe){const Ge=(document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper")?.closest(".MuiDialog-container")?.style.justifyContent||"")!=="flex-end"&&!ge;rt(Ge)}});He.observe(document.body,{childList:!0,subtree:!1,attributes:!1});const Ve=setInterval(()=>{document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper")&&!Qe&&rt()},500),Ee=()=>{(Z||ge)&&rt()};return window.addEventListener("resize",Ee),()=>{clearTimeout(Ie),ye&&clearTimeout(ye),clearInterval(Ve),He.disconnect(),window.removeEventListener("resize",Ee),window.removeEventListener("suggestions-about-to-open",nt)}},[W,Z]);const ne=()=>{R(!1)},le=()=>{re!==""&&i?.(re),R(!1)},pe=()=>{z(!1)},Ae=()=>{re!==""&&i?.(re),Te(!1),U(!1),ue(""),J("")},fe=()=>{Te(!1),U(!1),ue(""),J("")},Se=async()=>{ae(!0),ie(!1),Te(!1);try{const ge=Yt(d||"",`/v1.0/${p}`,"/utility/generate"),ye=await Xt.post(ge,{data:{messages:KMe(e,X,t)},headers:{"Content-Type":"application/json"}});if(ye.data.data){const $e=typeof ye.data.data=="string"?ye.data.data.trim():"";$e.includes("GENERATION_ERROR")?Te(!0):(Te(!1),ue($e))}}catch(ge){cn(ge,F)}finally{ie(!0),ae(!1)}};return C.useEffect(()=>{j&&setTimeout(()=>{$(!1)},2e3)},[j]),C.useEffect(()=>{(!X||X==="")&&(ue(""),Te(!1))},[se,X]),f.jsxs(O.FormControl,{fullWidth:!0,children:[(m||E||_)&&f.jsxs(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:v,children:[m&&f.jsx(Or,{label:m,description:_,required:y}),E&&f.jsx(O.Typography,{variant:G.typography["components-inputs-label-sm"],pb:"0.25rem",color:"neutral.80",children:E})]}),f.jsxs(O.Box,{sx:{position:"relative",width:"100%",height:a||Bz[g].height,opacity:I&&P?.6:1,'&:has(.cm-panel.cm-search) [data-testid="button-copy-code"]':{top:"42px !important"},...L},ref:q,"data-testid":D,children:[l&&g!=="xs"&&g!=="sm"&&f.jsx(O.Tooltip,{title:"Expand",placement:"top",arrow:!0,children:f.jsx(O.Box,{onClick:()=>{R(!0)},sx:{position:"absolute",right:"16px",top:c?"48px":"16px",zIndex:6,cursor:"pointer"},"data-testid":"button-expand-editor",children:f.jsx(Ue,{src:"ic_maximize",width:"16px",height:"16px",fill:G.palette.neutral.solid.bg})})}),r&&g!=="xs"&&g!=="sm"&&f.jsx(O.Box,{onClick:()=>!I&&U(!0),sx:{position:"absolute",right:"16px",bottom:"10px",zIndex:6,cursor:"pointer",opacity:I&&P?.6:1},"data-testid":"button-ask-ai",children:f.jsx(O.Tooltip,{title:"Ask AI",children:f.jsx("img",{src:"https://cdn.pixelbin.io/v2/fyndcloud/original/icons/genai_icon.svg",width:32,height:32})})}),c&&f.jsx(O.Tooltip,{title:"Copy to clipboard",placement:"top",arrow:!0,children:f.jsx(O.Box,{onClick:()=>{$(!0),cd(n||"")},sx:{position:"absolute",right:"0px",top:g==="xs"||g==="sm"?"6px":"16px",zIndex:1e3,cursor:"pointer"},"data-testid":"button-copy-code",children:f.jsx(dFe,{copied:j,theme:G,size:g})})}),u&&f.jsx(O.Tooltip,{title:"Preview",placement:"top",arrow:!0,children:f.jsx(O.Box,{onClick:()=>z(!0),sx:{position:"absolute",zIndex:999,cursor:"pointer",...c||l?cFe[g]:{right:"12px",top:"6px"}},children:f.jsx(Ue,{src:"ic_visibility",height:"20px",width:"20px"})})}),f.jsx(EP,{language:t,value:n||"",onChange:i,onFocus:o,onBlur:ge=>s(ge||""),suggestionsData:h,showSuggestions:w,placeholder:T,height:a||Bz[g].height,viewOnly:I||P||(Q?.readOnly??!1),className:D,errorMsg:x,error:b,codeEditorStyles:M,enableJsonGuiValidation:k,handleValidate:N,loading:A,suggestionLabel:B,size:g,...V})]}),f.jsx(O.Stack,{children:b&&x&&f.jsx(O.FormHelperText,{component:"span",error:!0,dangerouslySetInnerHTML:{__html:ro(x)}})}),f.jsx(vo,{open:W,handleClose:()=>{le(),ne()},disableBackdropClick:!0,title:"Editor",content:f.jsxs(O.Box,{sx:{width:"100%",position:"relative"},"data-testid":`${D}-full-mode`,children:[f.jsx(EP,{language:t,value:n||"",onChange:i,placeholder:T,height:"70vh",suggestionsData:h,showSuggestions:w,viewOnly:I||P||(Q?.readOnly??!1),className:`${D}-full-mode`,errorMsg:x,error:b,codeEditorStyles:M,enableJsonGuiValidation:k,handleValidate:N,loading:A,size:"xl",...V}),r&&f.jsx(O.Box,{onClick:()=>!I&&U(!0),sx:{position:"absolute",right:"16px",bottom:"16px",zIndex:1e3,cursor:"pointer",opacity:I?.6:1},children:f.jsx(O.Tooltip,{title:"Ask AI",children:f.jsx("img",{src:"https://cdn.pixelbin.io/v2/fyndcloud/original/icons/genai_icon.svg",width:32,height:32})})})]})}),f.jsx(vo,{open:H,handleClose:()=>{fe()},title:"Generate using AI",content:re===""?f.jsxs(O.Box,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[f.jsx(O.Typography,{sx:{mb:"8px"},children:"Use AI to generate content for this step. Write a prompt below to get started. You can reference prior step data in your prompt."}),f.jsxs(O.Grid,{children:[f.jsx(O.Typography,{variant:"smBold",sx:{marginBottom:"8px",display:"block"},children:"User Prompt*"}),f.jsx(io,{parent:"autoComplete",name:"prompt",size:"md",sx:{fontWeight:400},placeholder:t==="javascript"||t==="python"?e&&Lz[e][t]:e&&Lz[e].placeholder,fullWidth:!0,multiline:!0,rows:9,id:"message",onChange:ge=>{J(ge.target.value)},value:X,required:!0}),Oe&&f.jsx(O.Box,{sx:{color:G.palette.primary.main,fontWeight:500},children:"OpenAI Prompt Error"})]}),f.jsxs(O.Box,{gap:2,sx:{display:"flex",p:3,pb:0,alignItems:"Center",justifyContent:"center"},children:[f.jsx(O.Button,{type:"submit",disabled:te||!X,variant:"contained",onClick:Se,sx:{fontSize:"14px",boxShadow:ge=>ge.shadows[0],padding:"2px 16px"},endIcon:te?f.jsx(O.CircularProgress,{color:"inherit",size:20}):null,"data-testid":"button-ai-generate",children:"Generate"}),f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:()=>{U(!1),J(""),ue("")},sx:{textTransform:"none"},"data-testid":"button-ai-cancel",children:"Cancel"})]})]}):f.jsxs(O.Box,{sx:{width:"100%",display:"flex",flexDirection:"column"},children:[f.jsx(O.Box,{sx:{width:"100%",position:"relative",borderRadius:"4px",border:`1px solid ${G.palette.grey[200]}`},children:f.jsx(O.Box,{sx:{p:1},"data-testid":`${D}-askAI`,children:f.jsx(EP,{language:t,value:re||"",onChange:ge=>{ue(ge)},height:"27vh",viewOnly:!!re||I,showSuggestions:w,className:`${D}-askAI`,errorMsg:x,error:b,codeEditorStyles:M,enableJsonGuiValidation:k,handleValidate:N,loading:A,suggestionLabel:B,size:"lg",...V})})}),Oe&&f.jsx(O.Box,{sx:{color:G.palette.primary.main,fontWeight:500},children:"OpenAI Prompt Error"}),f.jsxs(O.Grid,{container:!0,spacing:2,children:[f.jsx(O.Typography,{variant:"smMedium",sx:{marginBottom:"8px",display:"block",mt:1},children:"Request a quick adjustment..."}),f.jsxs(O.Grid,{container:!0,alignItems:"center",spacing:2,children:[f.jsx(O.Grid,{xs:10,sx:{p:0},children:f.jsx(io,{parent:"autoComplete",name:"prompt",sx:{fontWeight:400,width:"100%"},placeholder:"Modify your prompt here",fullWidth:!0,id:"message",onChange:ge=>{J(ge.target.value)},value:X,required:!0})}),f.jsx(O.Grid,{item:!0,xs:2,sx:{paddingTop:"0 !important"},children:f.jsx(O.Button,{disabled:te||!X,type:"submit",variant:"contained",onClick:Se,sx:{fontSize:"14px",boxShadow:ge=>ge.shadows[0],height:"36px",width:"100%"},children:"Apply"})})]})]}),f.jsxs(O.Box,{gap:2,sx:{display:"flex",p:3,pb:0,alignItems:"Center",justifyContent:"center"},children:[f.jsx(O.Button,{disabled:te,type:"submit",variant:"contained",onClick:Ae,sx:{fontSize:"14px",boxShadow:ge=>ge.shadows[0],padding:"2px 16px"},endIcon:te?f.jsx(O.CircularProgress,{color:"inherit",size:20}):null,children:"Accept"}),f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:()=>{ue("")},sx:{textTransform:"none"},children:"Discard"})]})]})}),f.jsx(vo,{open:Y,handleClose:pe,title:"Preview",variant:"xlarge",content:f.jsx(O.Box,{sx:{width:"100%",height:"600px",position:"relative",borderRadius:"4px",border:`1px solid ${G.palette.grey[200]}`},children:f.jsx("iframe",{title:"HTML Preview",srcDoc:n||"",sandbox:"allow-scripts",style:{width:"100%",height:"100%",border:"none"}})})})]})});function pFe(e,t){const n=e.value===t.value&&e.language===t.language&&e.viewOnly===t.viewOnly&&e.height===t.height&&e.size===t.size&&e.showCopyToClipboard===t.showCopyToClipboard&&e.showSuggestions===t.showSuggestions&&e.error===t.error&&e.errorMsg===t.errorMsg&&e.id===t.id,r=e.suggestionsData,i=t.suggestionsData,o=r==null&&i==null||(typeof r=="object"&&typeof i=="object"?Object.keys(r).length===Object.keys(i).length&&Object.keys(r).every(s=>JSON.stringify(r[s])===JSON.stringify(i[s])):r===i);return n&&o}const Do=C.memo(gc(fFe),pFe),jz=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),$z=()=>f.jsx(Ue,{sx:{position:"absolute",right:6},src:"ic_arrow_down",width:20,height:20}),hFe=({value:e,content:t,onChange:n,triggerHelpData:r,selectedMethod:i,setSelectedMethod:o,setSelectedLanguage:s,excludeUrlLanguage:a=!1})=>{const l=O.useTheme();return f.jsxs(O.Stack,{alignItems:"center",justifyContent:"space-between",p:1.5,direction:"row",children:[f.jsx(O.Typography,{variant:"smNormal",color:l.palette.text.secondary,children:"Use below code to trigger this workflow"}),f.jsxs(O.Stack,{direction:"row",gap:1.5,alignItems:"center",children:[f.jsx(O.Select,{labelId:"method-select-label",value:r?.methods?.includes(i)?i:"",label:"Method",onChange:u=>{const c=u.target.value;o(c);const d=Object.keys(r[c]||{});s(d[0])},IconComponent:$z,MenuProps:{PaperProps:{style:{padding:8},"& li":{p:0}}},sx:{p:0,border:"none",minHeight:0,"& fieldset":{border:"none"},boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:0},"& .MuiSelect-select":{py:0},height:"auto","& .MuiSelect-outlined":{display:"flex",gap:.5},"& .MuiStack-root > svg":{width:14,height:14},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:0}},children:r?.methods?.map(u=>f.jsx(O.MenuItem,{value:u,children:u.toUpperCase()},u))}),f.jsx(O.Select,{sx:{p:0,border:"none",minHeight:0,"& fieldset":{border:"none"},boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:0},"& .MuiSelect-select":{py:0},height:"auto","& .MuiSelect-outlined":{display:"flex",gap:.5},"& .MuiStack-root > svg":{width:14,height:14},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:0}},value:e,label:"Age",onChange:n,IconComponent:$z,MenuProps:{PaperProps:{style:{padding:8},"& li":{p:0}}},children:Nue.filter(u=>!(a&&u.value==="URL")).map(u=>f.jsxs(O.MenuItem,{value:u.value,sx:{padding:"6px",marginTop:.5},children:[f.jsx(oh,{src:Lue[u.label],alt:u.label,asHtmlElement:!0}),u.label]},u.value))}),f.jsx(O.Box,{width:24,height:24,onClick:u=>{u.stopPropagation(),cd(t)},sx:{"& > span":{border:`1px solid ${l.palette.grey.outlined.border}`,borderRadius:1},cursor:"pointer"},children:f.jsx(Ue,{src:"ic_copy",width:24,height:24})})]})]})},AFe=({VORTEX_MAIN_URL:e,ENTITY_ID:t,viewOnly:n=!1,excludeUrlLanguage:r=!1})=>{const i=ht.useDispatch(),o=O.useTheme(),{getNodes:s}=Dt.useReactFlow(),a=s(),{trigger_help:l,workflow:u}=ht.useSelector(_=>_.workflows),[c,d]=C.useState(""),[p,h]=C.useState("get"),[A,g]=C.useState({}),m=Tr(),E=Tr("version");C.useEffect(()=>{if(!Ot(l)){const _={},x=[];l?.items?.forEach(D=>{x.push(D.title),D.snippets.forEach(I=>{_[D.title]||(_[D.title]={}),_[D.title][I.title]=I.value})}),g({..._,methods:x}),h(x[0]);const b=Object.keys(_[x[0]]||{}),w=r?b.find(D=>D!=="URL")??b[0]:b[0];d(w)}},[l]),C.useEffect(()=>{const _=a.find(x=>x.type===xt.TRIGGER);!Ot(u)&&(_?.data?.type===Ke.WEBHOOK||_?.data?.type===Ke.HTTP)&&(E||m)&&i(Fb(E||m,e,t))},[]);const y=_=>{d(_.target.value)},v=a.find(_=>_.type===xt.TRIGGER),T=v?.data?.type===Ke.WEBHOOK||v?.data?.type===Ke.HTTP;return f.jsx(O.Box,{sx:{mt:2,"& .MuiAccordionSummary-content":{margin:0,borderRadius:2},"& .MuiButtonBase-root.MuiAccordionSummary-root":{px:1.5,py:"10.5px",borderRadius:"8px 8px 0 0",backgroundColor:o.palette.white.smoke},borderRadius:2},children:f.jsxs(O.Box,{sx:{"& > .MuiBox-root > .MuiBox-root > .MuiFormControl-root > .MuiBox-root":{border:"none",p:0},border:`1px solid ${o.palette.grey[300]}`,borderRadius:2},children:[f.jsx(hFe,{value:c,content:A?.[p]?.[c]||"",onChange:y,triggerHelpData:A,selectedMethod:p,setSelectedMethod:h,setSelectedLanguage:d,excludeUrlLanguage:r}),f.jsx(O.Box,{sx:{width:"100%"},children:f.jsx(O.Box,{sx:{minHeight:"300px",overflowX:"auto",borderTop:`1px solid ${o.palette.grey[300]}`,"& > .MuiStack-root > .MuiBox-root":{m:0},"& .monaco-editor .overflow-guard":{borderRadius:"0 0 8px 8px"}},children:f.jsx(Do,{viewOnly:!0,readOnly:n&&T,height:"300px",language:c.toLowerCase(),value:A?.[p]?.[c]||"",handleChange:()=>{},size:"md",loading:!l,codeEditorStyles:{border:"none"},showSuggestions:!1})})})]})})},mFe=({VORTEX_MAIN_URL:e,ENTITY_ID:t,triggerType:n})=>{const r=O.useTheme(),i=ht.useDispatch(),{trigger_help:o,workflow:s}=ht.useSelector(A=>A.workflows),a=Tr(),l=Tr("version"),[u,c]=C.useState(""),[d,p]=C.useState("");C.useEffect(()=>{!Ot(s)&&(l||a)&&i(Fb(l||a,e,t))},[]),C.useEffect(()=>{if(!Ot(o)){const A=o?.items||[];for(const g of A){const m=g.snippets?.find(E=>E.title==="URL");if(m?.value){c(m.value),p(g.title.toUpperCase());break}}}},[o]);const h=()=>{u&&navigator.clipboard.writeText(u).then(()=>{i({type:zn,payload:{open:!0,title:"Copied to clipboard",type:"success"}})})};return f.jsxs(O.Stack,{gap:1,sx:{background:r.palette.background.paper,borderRadius:2,p:1,border:`1px solid ${r.palette.grey[300]}`},children:[f.jsxs(O.Stack,{gap:.3,children:[f.jsx(O.Typography,{variant:"smSemiBold",color:r.palette.text.primary,children:"Your webhook URL"}),f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.secondary,children:"You'll need to configure your application with this workflow's webhook URL."})]}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:1.5,sx:{background:r.palette.white.smoke,border:`1px solid ${r.palette.grey[300]}`,borderRadius:1,pl:1.5,pr:1,py:.75},children:[f.jsx(O.Box,{component:"img",src:"https://cdn.pixelbin.io/v2/fyndcloud/original/url.svg",alt:"webhook",sx:{width:20,height:20,flexShrink:0}}),f.jsx(O.Tooltip,{title:u||"",arrow:!0,placement:"top",disableHoverListener:!u,children:f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.secondary,sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:u||"Generating webhook URL…"})}),f.jsx(O.Tooltip,{title:"Copy URL",arrow:!0,placement:"top",children:f.jsx("span",{children:f.jsx(O.IconButton,{size:"small",onClick:h,disabled:!u,sx:{"& svg path, & svg g path":{fill:r.palette.primary.main},"&:hover":{backgroundColor:`${r.palette.primary.main}14`,"& svg path, & svg g path":{fill:r.palette.primary.light}}},children:f.jsx(Ue,{src:"ic_copy",width:18,height:18})})})})]}),f.jsxs(O.Typography,{variant:"xsNormal",color:r.palette.text.tertiary,children:["We've generated a custom webhook URL for this workflow. Try this URL ",n===Ke.WEBHOOK&&d&&f.jsxs(f.Fragment,{children:["with ",f.jsx(O.Box,{component:"span",sx:{fontWeight:600,color:r.palette.primary.main},children:d})," method "]}),"to send data and trigger your workflow automatically."]})]})},gFe=["Basic","Advanced"],EFe=({type:e,name:t,ENTITY_ID:n,VORTEX_MAIN_URL:r,loading:i,activityExecutionList:o,nodeId:s,integrationSlug:a,integrationType:l,activityType:u,viewOnly:c=!1})=>{const d=O.useTheme(),[p,h]=C.useState("Basic");return e===Ke.WEBHOOK||e===Ke.HTTP?f.jsxs(O.Stack,{gap:2,children:[f.jsxs(O.Stack,{justifyContent:"center",gap:1.5,children:[f.jsx(O.Typography,{variant:"lgSemiBold",color:d.palette.text.primary,children:"Test"}),f.jsxs(O.Stack,{gap:.75,children:[f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.secondary,children:"Test your trigger"}),f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.tertiary,children:"To test/run your workflow, configure your application with the webhook URL or use the code snippet below to send a request to the workflow's trigger endpoint."})]})]}),f.jsx(ss,{variant:"normal",width:"max-content",tabs:gFe.map(A=>({title:A})),selectedTab:p,setSelectedTab:A=>h(A),sx:{width:"max-content"}}),p==="Basic"&&f.jsx(mFe,{VORTEX_MAIN_URL:r,ENTITY_ID:n,triggerType:e}),p==="Advanced"&&f.jsx(O.Box,{sx:{"& > .MuiBox-root":{mt:0}},children:f.jsx(AFe,{ENTITY_ID:n,VORTEX_MAIN_URL:r,viewOnly:c,excludeUrlLanguage:!0})})]}):i?f.jsx(MF,{width:"100%",height:44,count:3,backgroundColor:d.palette.white.smoke}):o.length===0?f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.Typography,{variant:"lgSemiBold",color:d.palette.text.secondary,children:"Test"}),f.jsx(O.Stack,{alignItems:"flex-start",sx:{border:`1px solid ${d.palette.grey.outlined.border}`,backgroundColor:d.palette.white.smoke,height:70,borderRadius:"8px",padding:1.5},children:f.jsxs(O.Stack,{direction:"row",gap:1,sx:{...hf,alignItems:"flex-start"},children:[f.jsx(Ue,{src:"ic_info_filled"}),f.jsxs(O.Stack,{gap:.75,children:[!au.includes(e)&&f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.primary,children:"No recent tests available"}),f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.tertiary,children:Y5.includes(e)?"Testing is not required for triggers as they are initiated by external events or schedules.":q5.includes(e)?"Testing is not required for this step as it is a control flow or system configuration that does not support direct testing.":"Please test using the Test step button on the bottom"})]})]})})]}):f.jsxs(O.Stack,{justifyContent:"center",gap:2,children:[f.jsx(O.Typography,{variant:"lgSemiBold",color:d.palette.text.primary,children:"Test"}),f.jsx(QAe,{ENTITY_ID:n,VORTEX_MAIN_URL:r,nodeId:s,items:o,integrationSlug:a,integrationType:l,name:t,activityType:u})]})},OFe=e=>{const{ENTITY_ID:t,VORTEX_MAIN_URL:n,selectedNode:r,activityExecutionList:i,setActivityExecutionList:o,loading:s,fetchActivityExecutions:a,viewOnly:l=!1}=e,{data:{type:u,name:c},id:d}=r,p=ad(r?.data);return C.useEffect(()=>(a(),()=>{o([])}),[d,u]),f.jsx(O.Stack,{overflow:"auto",height:"calc(100vh - 212px)",children:f.jsx(O.Box,{mt:.5,children:f.jsx(EFe,{type:u,ENTITY_ID:t,VORTEX_MAIN_URL:n,loading:s,activityExecutionList:i,nodeId:d,name:c,integrationSlug:r?.data?.properties?.integration_slug||"",integrationType:u,activityType:p,viewOnly:l})})})},Wd=["resource","operation","secret","config","credential_id","slack_auth_id","mode","gmail_config_id","event","integration_slug","custom.query_params","custom.state_params","custom.headers","custom.body"],yFe=e=>{const t={"not-configured-yet":"not-configured-yet","partially-configured":"partially-configured",completed:"completed",failed:"failed",error:"error",success:"success",default:"default",skipped:"skipped"};return e in t?t[e]:"default"},Uz=({value:e,onSave:t,isEditing:n,setIsEditing:r,disabled:i=!1,maxLength:o=50,placeholder:s="",showEditIcon:a=!0,variant:l="body1",textSx:u={},inputSx:c={},validate:d,error:p=null,minWidth:h=64,maxWidth:A=400,enableDoubleClick:g=!0,editIcon:m="ic_edit",autoResize:E=!0})=>{const y=O.useTheme(),[v,T]=C.useState(e||""),[_,x]=C.useState(h||64),b=C.useRef(null),w=C.useRef(null);C.useEffect(()=>{T(e||"")},[e]),C.useEffect(()=>{if(E&&b.current&&n){const L=b.current;L.textContent=v||s||"";const M=L.offsetWidth||0,B=12,Q=h||64,V=A||400,F=Math.min(Math.max(M+B+40,Q),V);x(F)}},[n,s,h,A,E]),C.useEffect(()=>{n&&w.current&&(w.current.focus(),w.current.select())},[n]);const D=async()=>{const L=v.trim();d&&await d(L)||L.length!==0&&(L.length>o||(t(L),r(!1)))},I=()=>{T(e),r(!1)},P=()=>{g&&!i&&(T(e),r(!0))},k=()=>{i||(T(e),r(!0))},N={cursor:g&&!i?"pointer":"default",...u};return f.jsxs(f.Fragment,{children:[E&&f.jsx("span",{ref:b,style:{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",fontSize:c?.[".MuiInputBase-input"]?.fontSize||"16px",fontWeight:c?.[".MuiInputBase-input"]?.fontWeight||600,fontFamily:y?.typography?.fontFamily||"inherit",padding:"0px 8px",border:"1px solid transparent",zIndex:-1}}),n?f.jsx(O.TextField,{inputRef:w,autoFocus:!0,value:v,placeholder:s,error:!!p,helperText:p,disabled:i,onChange:L=>{const M=L.target.value.slice(0,o);T(M)},onBlur:D,onKeyDown:L=>{L.key==="Enter"?(L.preventDefault(),D()):L.key==="Escape"&&(L.preventDefault(),I())},inputProps:{maxLength:o},InputProps:{endAdornment:f.jsx(O.InputAdornment,{position:"end",children:f.jsx("span",{style:{color:y.palette.neutral.main,fontSize:12},children:`${v.length}/${o}`})})},sx:{width:E?`${_||h||64}px`:"100%",minWidth:`${h||64}px`,...c}}):f.jsxs(O.Stack,{direction:"row",alignItems:"center",onDoubleClick:P,sx:{cursor:g&&!i?"pointer":"default"},children:[f.jsx(O.Typography,{variant:l,sx:N,title:e,children:e}),a&&!i&&f.jsx(O.IconButton,{onClick:k,sx:{ml:1,p:0,"&:hover":{backgroundColor:"transparent","& .inline-svg svg path":{transition:"fill 0.2s ease"},"& svg path":{fill:`${y.palette.text.primary}`}}},title:"Edit",children:f.jsx(Ue,{width:20,height:20,src:m})})]})]})},Qd=()=>{const e=O.useTheme();return f.jsxs(O.Stack,{direction:"row",alignItems:"center",height:20,sx:{px:"6px",py:"4px",borderRadius:8,background:t=>`linear-gradient(100.41deg, ${t.palette.pro.badge.start} -5.78%, ${t.palette.pro.badge.end} 69.93%)`},children:[f.jsx(Ue,{src:"ic_crown",width:14,height:14,sx:{path:{fill:e.palette.common.black}}}),f.jsx(O.Typography,{variant:"xsNormal",sx:{ml:"4px",color:t=>t.palette.text.primary},children:"Pro"})]})},vFe=e=>{const t=e.match(/(?:-H|--header)\s+['"]?content-type:\s*([\w/-]+)/i),n=t?t[1].toLowerCase():null,r=e.match(/(?:--data(?:-raw)?|-d)\s+(['"]?)(.+?)\1/),i=r?r[2]:null;return e.match(/(?:^|\s)(?:-F|--form)(?:\s|["']|$)/)?"form-data":i?n&&n.startsWith("multipart/form-data")?"form-data":n==="application/x-www-form-urlencoded"?"x-www-form-urlencoded":n&&(n==="application/xml"||n==="text/xml")?"xml":/^\w+=([^&]+)(&\w+=([^&]+))*$/.test(i)?"x-www-form-urlencoded":/^\s*<[\s\S]*>\s*$/.test(i.trim())?"xml":"raw":"none"},TFe=(e,t)=>{let n=[];const r=!Array.isArray(t.headers);t.headers&&(n=r?{...t.headers}:[...t.headers]);let i=r?No(n):No(n)?.filter(o=>o.key!=="Content-Type");switch(e){case"none":r?delete i["Content-Type"]:i=i.filter(o=>o.key!=="Content-Type");break;case"form-data":r?i={...i,"Content-Type":"multipart/form-data"}:i.push({key:"Content-Type",value:"multipart/form-data"});break;case"x-www-form-urlencoded":r?i={...i,"Content-Type":"application/x-www-form-urlencoded"}:i.push({key:"Content-Type",value:"application/x-www-form-urlencoded"});break;case"xml":r?i={...i,"Content-Type":"application/xml"}:i.push({key:"Content-Type",value:"application/xml"});break;default:r?i={...i,"Content-Type":"application/json"}:i.push({key:"Content-Type",value:"application/json"});break}return i},Rr=e=>{const{children:t}=e;return f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.Typography,{className:"config",variant:"lgSemiBold",children:"Configure"}),t]})},Wn=gc(e=>{const{name:t,type:n="text",meta:{displayName:r="",placeholder:i="",value:o="",displayType:s="",description:a="",isDisabled:l=!1,htmlProps:{showInfoIcon:u=!1,rightLabel:c="",rightLabelAlignment:d="flex-end"}={},renderFieldValue:p=null},control:h,handleChange:A,validationRules:g,viewOnly:m=!1,size:E="xs",multiline:y=!1,...v}=e,T=typeof a=="object"?a:ro(a),_=O.useTheme(),[x,b]=C.useState(!1),w=(I,P)=>{let k=I.target.value;s==="number"&&k.trim()!==""?k=parseFloat(k)||0:s==="number"&&k.trim()===""&&(k=""),P.onChange(k),A&&A({field:t,value:k,fieldData:e})},D=I=>{n==="number"&&I.target?.blur()};return f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(En,{name:t,control:h,rules:g,render:({field:{value:I,...P},fieldState:{error:k}})=>f.jsxs(O.Stack,{children:[(r||c||u)&&f.jsxs(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:d,children:[r&&f.jsx(Or,{label:r,description:T,required:e?.required}),c&&f.jsx(O.Typography,{variant:_.typography["components-inputs-label-sm"],pb:"0.25rem",color:"neutral.80",children:c})]}),f.jsx(io,{...P,...v,type:e?.htmlProps?.type==="password"&&x?"text":n,placeholder:i,variant:"outlined",fullWidth:!0,errorMsg:k?.message,size:y&&E==="xs"?"sm":E,multiline:y,disabled:l||m,onChange:N=>{w(N,P)},value:p?p(I):I||o,onWheel:D})]})})})}),iT=e=>e.sort((t,n)=>{const r=t.integration_meta?.auth_type||"",i=n.integration_meta?.auth_type||"";return r.localeCompare(i)}),oT=e=>e.map(n=>{const r=Ds(n.integration_meta.auth_type.replace("_auth",""));return{...n,name:`${n.name} (${r})`}}),OP=e=>(e&&typeof e=="string"&&e.replace("(Header)","").replace("(Basic)",""),e),Zh=e=>{if(e===null||typeof e!="object")return!1;const t=new Set;return Array.isArray(e)?e.some(n=>n===null?!1:Zh(n)):Object.entries(e).some(([n,r])=>t.has(n)||(t.add(n),!n.trim())?!0:r===null?!1:typeof r=="object"?Zh(r):!1)},yP=(e,t)=>!e||e.trim()===""||e==="{{}}"?"Key is required":Object.keys(t).includes(e)?"Duplicate key found":"",SFe=e=>{const{onClick:t,refreshTooltip:n="",refreshing:r,sx:i,...o}=e,s=O.useTheme();return f.jsx(O.Tooltip,{title:n,arrow:!0,children:f.jsx("span",{children:f.jsx(O.IconButton,{onClick:t,disabled:r,sx:{width:32,height:32,border:`1px solid ${s.palette.grey.outlined.border}`,borderRadius:1.5,...bi(s),...i},"data-testid":"button-refresh",...o,children:r?f.jsx(O.CircularProgress,{size:14}):f.jsx(Ue,{src:"ic_refresh",width:20,height:20,sx:{path:{fill:s.palette.neutral.solid.bg}}})})})})},xFe=C.forwardRef(({name:e,type:t,required:n=!1,title:r,helperText:i="",viewOnly:o=!1,disabled:s=!1,options:a=[],errorMsg:l,children:u,endItem:c,refreshTooltip:d="",refreshOptions:p,loading:h=!1,refreshing:A=!1,aiIndicatorVisible:g=!1,...m},E)=>{const y=O.useTheme(),v=ro(i),{sx:T,..._}=m;return f.jsxs(O.FormControl,{fullWidth:!0,children:[f.jsxs(O.Stack,{alignItems:"flex-end",justifyContent:"space-between",direction:"row",children:[f.jsx(Or,{description:v,label:r,required:n}),c]}),f.jsxs(O.Stack,{gap:1,direction:"row",alignItems:"flex-end",sx:{position:"relative"},children:[g&&f.jsx(O.Box,{sx:{position:"absolute",right:p?"3.1rem":"1px",top:1,bottom:1,width:"15%",minWidth:p?56:64,maxWidth:p?76:92,pointerEvents:"none",borderTopRightRadius:6,borderBottomRightRadius:6,zIndex:0,background:`linear-gradient(90deg, ${O.alpha(y.palette.primary[5],0)} 0%, ${O.alpha(y.palette.primary[5],.35)} 62%, ${O.alpha(y.palette.primary[5],.9)} 100%)`}}),f.jsx(O.Select,{..._,fullWidth:!p,inputRef:E,error:!!l,name:e,disabled:s||o,IconComponent:x=>f.jsx(Ue,{src:"ic_arrow_down",width:"1.25rem",height:"1.25rem",sx:{"&.MuiSelect-icon":{top:"auto",mr:"0.25rem"}},...x}),"data-testid":`select-${e||"field"}`,sx:p?{width:"94%",flexShrink:0,position:"relative",zIndex:1,...g?{"& .MuiSelect-select":{pr:"4.25rem !important"}}:{},...T||{}}:{position:"relative",zIndex:1,...g?{"& .MuiSelect-select":{pr:"4.25rem !important"}}:{},...T||{}},children:u||(a.length>0?a.map(x=>f.jsx(O.MenuItem,{value:x.value,"data-testid":`option-${x.value}`,children:x.title},x.value)):f.jsx(O.MenuItem,{disabled:!0,sx:{p:"14px 16px"},"data-testid":"option-no-options",children:f.jsx(O.Typography,{variant:"smNormal",children:"No options"})}))}),g&&f.jsx(O.Box,{sx:{position:"absolute",right:p?"3.35rem":"2.45rem",top:"50%",transform:"translateY(-50%)",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2,width:18,height:18},children:f.jsx(Ue,{src:"ic_AI",width:18,height:18,sx:{display:"block","& svg path":{fill:`${y.palette.primary.main} !important`,fillOpacity:"1 !important"}}})}),p&&f.jsx(SFe,{refreshing:A,disabled:h||o||s,onClick:p,refreshTooltip:d})]}),!!l&&f.jsx(O.FormHelperText,{error:!0,children:l})]})}),Hz=gc(xFe),bFe=e=>{const t=O.useTheme(),{getValues:n,setValue:r}=Gn(),{isMultiple:i,options:o,selected:s=null,name:a,placeholder:l="",setMenuOpen:u,menuOpen:c,viewOnly:d=!1}=e,p=C.useRef(null),[h,A]=C.useState(!1),g=(v,T)=>{v.stopPropagation(),v.preventDefault();const _=n(a);typeof _=="object"&&Array.isArray(_)&&r(a,_.filter(x=>typeof x=="object"&&x.value?x.value!==T:x!==T),{shouldValidate:!0})},m=s!=null?o?.some(v=>v?.value===s):!1;if(typeof s=="object"&&Ot(s)||typeof s=="string"&&!s&&!m)return f.jsx(O.Typography,{sx:{fontSize:"14px",color:t.palette.neutral.solid.bg,fontFamily:"inherit",":hover":{color:t.palette.neutral.main}},children:l||""});let E=(p.current?.offsetWidth||440)-95;if(i){const{visible:v,extra:T,hiddenSelections:_}=Lb(s,E);return f.jsxs(O.Stack,{direction:"row",ref:p,sx:{...di,position:"relative",width:"100%"},children:[f.jsxs(O.Box,{"data-testid":"select-chip-container",sx:{display:"flex",flexWrap:"nowrap",gap:.5,maxWidth:"calc(100% - 65px)",overflow:"hidden"},onClick:x=>{x.preventDefault(),x.stopPropagation(),u?.(!c)},children:[v.map(x=>{const{value:b,title:w}=x,D=Math.min(E,Math.max(w.length*8+50,90));return E=E-D-4,f.jsx(c7,{label:w,onDelete:I=>g(I,b),sx:{flex:"0 0 auto",minWidth:"40px","&.MuiChip-root":{maxWidth:`${D}px !important`}}},b)}),T>0&&f.jsx(xw,{hiddenSelections:_,extra:T,handleChipDelete:g})]}),v?.length?f.jsx(O.IconButton,{disableRipple:!0,onMouseDown:x=>{x.preventDefault(),x.stopPropagation(),typeof r=="function"&&r(a,[],{shouldValidate:!0})},sx:{position:"absolute",right:0,top:"auto","&.MuiButton-root":{paddingRight:1},zIndex:1e3,"&:hover":{backgroundColor:"transparent"}},children:f.jsx(Ue,{src:"ic_close",height:16,width:16})}):null]})}const y=OP(o?.find(v=>v?.value===s)?.title);return f.jsxs(O.Stack,{direction:"row",alignItems:"center",onMouseEnter:()=>!d&&A(!0),onMouseLeave:()=>A(!1),sx:{position:"relative",width:"100%",minWidth:0,maxWidth:"100%",pr:d?0:"36px"},children:[f.jsx(O.Typography,{sx:{fontSize:"14px",color:t.palette.text.primary,fontFamily:"inherit",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,maxWidth:"100%",pr:!d&&s&&h?"24px":0},children:y}),!d&&s&&h&&f.jsx(O.IconButton,{disableRipple:!0,size:"small",onMouseDown:v=>{v.preventDefault(),v.stopPropagation(),r(a,"",{shouldValidate:!0})},sx:{position:"absolute",right:"34px",top:"50%",transform:"translateY(-50%)",padding:"4px",zIndex:1e3,"&:hover":{backgroundColor:"transparent","& svg path":{fill:t.palette.text.primary}}},children:f.jsx(Ue,{src:"ic_close",height:16,width:16,sx:{path:{fill:t.palette.neutral.solid.bg}}})})]})};function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}function vP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TP(e,t){return TP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},TP(e,t)}function sT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TP(e,t)}var Vz=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function CFe(e,t){return!!(e===t||Vz(e)&&Vz(t))}function _Fe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!CFe(e[n],t[n]))return!1;return!0}function SP(e,t){t===void 0&&(t=_Fe);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}function _t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wFe=typeof performance=="object"&&typeof performance.now=="function",Gz=wFe?function(){return performance.now()}:function(){return Date.now()};function Wz(e){cancelAnimationFrame(e.id)}function IFe(e,t){var n=Gz();function r(){Gz()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var xP=-1;function Qz(e){if(e===void 0&&(e=!1),xP===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),xP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xP}var Jh=null;function zz(e){if(e===void 0&&(e=!1),Jh===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Jh="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Jh="negative":Jh="positive-ascending"),document.body.removeChild(t),Jh}return Jh}process.env.NODE_ENV;var DFe=150,RFe=function(t,n){return t},aT=null,lT=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(aT=new WeakSet,lT=new WeakSet);function PFe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=(function(d){sT(p,d);function p(A){var g;return g=d.call(this,A)||this,g._instanceProps=l(g.props,vP(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:vP(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=SP(function(m,E,y,v){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:E,visibleStartIndex:y,visibleStopIndex:v})}),g._callOnScroll=void 0,g._callOnScroll=SP(function(m,E,y){return g.props.onScroll({scrollDirection:m,scrollOffset:E,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var E=g.props,y=E.direction,v=E.itemSize,T=E.layout,_=g._getItemStyleCache(u&&v,u&&T,u&&y),x;if(_.hasOwnProperty(m))x=_[m];else{var b=n(g.props,m,g._instanceProps),w=i(g.props,m,g._instanceProps),D=y==="horizontal"||T==="horizontal",I=y==="rtl",P=D?b:0;_[m]=x={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:D?0:b,height:D?"100%":w,width:D?w:"100%"}}return x},g._getItemStyleCache=void 0,g._getItemStyleCache=SP(function(m,E,y){return{}}),g._onScrollHorizontal=function(m){var E=m.currentTarget,y=E.clientWidth,v=E.scrollLeft,T=E.scrollWidth;g.setState(function(_){if(_.scrollOffset===v)return null;var x=g.props.direction,b=v;if(x==="rtl")switch(zz()){case"negative":b=-v;break;case"positive-descending":b=T-y-v;break}return b=Math.max(0,Math.min(b,T-y)),{isScrolling:!0,scrollDirection:_.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(m){var E=m.currentTarget,y=E.clientHeight,v=E.scrollHeight,T=E.scrollTop;g.setState(function(_){if(_.scrollOffset===T)return null;var x=Math.max(0,Math.min(T,v-y));return{isScrolling:!0,scrollDirection:_.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(m){var E=g.props.outerRef;g._outerRef=m,typeof E=="function"?E(m):E!=null&&typeof E=="object"&&E.hasOwnProperty("current")&&(E.current=m)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&Wz(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=IFe(g._resetIsScrolling,DFe)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}p.getDerivedStateFromProps=function(g,m){return NFe(g,m),c(g),null};var h=p.prototype;return h.scrollTo=function(g){g=Math.max(0,g),this.setState(function(m){return m.scrollOffset===g?null:{scrollDirection:m.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(g,m){m===void 0&&(m="auto");var E=this.props,y=E.itemCount,v=E.layout,T=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var _=0;if(this._outerRef){var x=this._outerRef;v==="vertical"?_=x.scrollWidth>x.clientWidth?Qz():0:_=x.scrollHeight>x.clientHeight?Qz():0}this.scrollTo(o(this.props,g,m,T,this._instanceProps,_))},h.componentDidMount=function(){var g=this.props,m=g.direction,E=g.initialScrollOffset,y=g.layout;if(typeof E=="number"&&this._outerRef!=null){var v=this._outerRef;m==="horizontal"||y==="horizontal"?v.scrollLeft=E:v.scrollTop=E}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,E=g.layout,y=this.state,v=y.scrollOffset,T=y.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var _=this._outerRef;if(m==="horizontal"||E==="horizontal")if(m==="rtl")switch(zz()){case"negative":_.scrollLeft=-v;break;case"positive-ascending":_.scrollLeft=v;break;default:var x=_.clientWidth,b=_.scrollWidth;_.scrollLeft=b-x-v;break}else _.scrollLeft=v;else _.scrollTop=v}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wz(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,E=g.className,y=g.direction,v=g.height,T=g.innerRef,_=g.innerElementType,x=g.innerTagName,b=g.itemCount,w=g.itemData,D=g.itemKey,I=D===void 0?RFe:D,P=g.layout,k=g.outerElementType,N=g.outerTagName,L=g.style,M=g.useIsScrolling,B=g.width,Q=this.state.isScrolling,V=y==="horizontal"||P==="horizontal",q=V?this._onScrollHorizontal:this._onScrollVertical,F=this._getRangeToRender(),G=F[0],W=F[1],R=[];if(b>0)for(var j=G;j<=W;j++)R.push(C.createElement(m,{data:w,key:I(j,w),index:j,isScrolling:M?Q:void 0,style:this._getItemStyle(j)}));var $=r(this.props,this._instanceProps);return C.createElement(k||N||"div",{className:E,onScroll:q,ref:this._outerRefSetter,style:ce({position:"relative",height:v,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},L)},C.createElement(_||x||"div",{children:R,ref:T,style:{height:V?"100%":$,pointerEvents:Q?"none":void 0,width:V?$:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),E=m[0],y=m[1],v=m[2],T=m[3];this._callOnItemsRendered(E,y,v,T)}}if(typeof this.props.onScroll=="function"){var _=this.state,x=_.scrollDirection,b=_.scrollOffset,w=_.scrollUpdateWasRequested;this._callOnScroll(x,b,w)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,E=g.overscanCount,y=this.state,v=y.isScrolling,T=y.scrollDirection,_=y.scrollOffset;if(m===0)return[0,0,0,0];var x=s(this.props,_,this._instanceProps),b=a(this.props,x,_,this._instanceProps),w=!v||T==="backward"?Math.max(1,E):1,D=!v||T==="forward"?Math.max(1,E):1;return[Math.max(0,x-w),Math.max(0,Math.min(m-1,b+D)),x,b]},p})(C.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NFe=function(t,n){var r=t.children,i=t.direction,o=t.height,s=t.layout,a=t.innerTagName,l=t.outerTagName,u=t.width,c=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&lT&&!lT.has(c)&&lT.add(c);var d=i==="horizontal"||s==="horizontal";switch(i){case"horizontal":case"vertical":aT&&!aT.has(c)&&aT.add(c);break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(d&&typeof u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" was specified.'));if(!d&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},LFe=50,eA=function(t,n,r){var i=t,o=i.itemSize,s=r.itemMetadataMap,a=r.lastMeasuredIndex;if(n>a){var l=0;if(a>=0){var u=s[a];l=u.offset+u.size}for(var c=a+1;c<=n;c++){var d=o(c);s[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=n}return s[n]},kFe=function(t,n,r){var i=n.itemMetadataMap,o=n.lastMeasuredIndex,s=o>0?i[o].offset:0;return s>=r?Xz(t,n,o,0,r):MFe(t,n,Math.max(0,o),r)},Xz=function(t,n,r,i,o){for(;i<=r;){var s=i+Math.floor((r-i)/2),a=eA(t,s,n).offset;if(a===o)return s;a<o?i=s+1:a>o&&(r=s-1)}return i>0?i-1:0},MFe=function(t,n,r,i){for(var o=t.itemCount,s=1;r<o&&eA(t,r,n).offset<i;)r+=s,s*=2;return Xz(t,n,Math.min(r,o-1),Math.floor(r/2),i)},Yz=function(t,n){var r=t.itemCount,i=n.itemMetadataMap,o=n.estimatedItemSize,s=n.lastMeasuredIndex,a=0;if(s>=r&&(s=r-1),s>=0){var l=i[s];a=l.offset+l.size}var u=r-s-1,c=u*o;return a+c},qz=PFe({getItemOffset:function(t,n,r){return eA(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Yz,getOffsetForIndexAndAlignment:function(t,n,r,i,o,s){var a=t.direction,l=t.height,u=t.layout,c=t.width,d=a==="horizontal"||u==="horizontal",p=d?c:l,h=eA(t,n,o),A=Yz(t,o),g=Math.max(0,Math.min(A-p,h.offset)),m=Math.max(0,h.offset-p+h.size+s);switch(r==="smart"&&(i>=m-p&&i<=g+p?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);default:return i>=m&&i<=g?i:i<m?m:g}},getStartIndexForOffset:function(t,n,r){return kFe(t,r,n)},getStopIndexForStartIndex:function(t,n,r,i){for(var o=t.direction,s=t.height,a=t.itemCount,l=t.layout,u=t.width,c=o==="horizontal"||l==="horizontal",d=c?u:s,p=eA(t,n,i),h=r+d,A=p.offset+p.size,g=n;g<a-1&&A<h;)g++,A+=eA(t,g,i).size;return g},initInstanceProps:function(t,n){var r=t,i=r.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||LFe,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,a){a===void 0&&(a=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),a&&n.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});const Kz=40,FFe=400,BFe=C.forwardRef(({options:e=[],itemHeight:t=Kz,maxHeight:n=FFe,renderItem:r,headerComponent:i,footerComponent:o,emptyComponent:s,groupBy:a="",getNestedProperty:l=(h,A)=>A.split(".").reduce((g,m)=>g?g[m]:null,h),startCase:u=h=>h.replace(/([A-Z])/g," $1").replace(/_/g," ").trim().split(" ").map(A=>A.charAt(0).toUpperCase()+A.slice(1).toLowerCase()).join(" "),listWidth:c,...d},p)=>{const h=O.useTheme();if(e.length===0&&!i&&!o&&s)return f.jsx(O.MenuList,{component:"ul",...d,children:s});const A=C.useMemo(()=>{if(!a||e.length===0)return e.map(w=>({type:"item",data:w}));const x={};e.forEach(w=>{const I=l(w,a)||"Other";x[I]||(x[I]=[]),x[I].push(w)});const b=[];return Object.entries(x).forEach(([w,D])=>{b.push({type:"header",label:u(w.replace("_"," ")).replace("Auth","Authentication")}),D.forEach(I=>{b.push({type:"item",data:I})})}),b},[e,a,l,u]),g=i&&e.length>0?56:0,m=o?68:0,E=40,y=x=>{if(a&&A[x]&&A[x].type==="header")return E;const b=A[x],w=a?b.data:e[x];let D=40;const I=Math.floor((c-70)/7.3);if(w?.description){const P=Math.ceil(w.description.length/I);D+=Math.max(P,1)*26}return w?.title&&w.title.length>I&&(D+=26),D+4},v=Math.min(g+(a?A.reduce((x,b)=>x+y(A.indexOf(b)),0):e.length*(t+4))+m,n),T=Math.max(v-g-m,0),_=({index:x,style:b})=>{const w=A[x];return a&&"type"in w&&w.type==="header"?f.jsx("div",{style:b,children:f.jsx(O.ListSubheader,{component:"div",sx:{fontSize:"0.8rem",fontWeight:600,color:h.palette.text.secondary,bgcolor:h.palette.grey[300],lineHeight:"2rem",position:"sticky",top:0,zIndex:1},children:w.label})}):f.jsx("div",{style:b,children:r(a?w.data:e[x],x)})};return f.jsxs(O.MenuList,{component:"ul",ref:p,...d,children:[i||null,A.length>0&&(a?f.jsx(qz,{height:T,width:"100%",itemCount:A.length,itemSize:y,overscanCount:5,children:_}):f.jsx(qz,{height:T,width:"100%",itemCount:A.length,itemSize:y||Kz,overscanCount:5,children:_})),e.length===0&&s,o]})}),jFe=C.forwardRef((e,t)=>{const n=O.useTheme(),{getNodes:r}=Dt.useReactFlow(),{selectedActivityId:i,nodes:o,aiGeneratedFieldMap:s}=ht.useSelector(ge=>ge.canvas),a=C.useCallback((ge,ye,$e,Qe,je,et=!1)=>{const{multiple:rt,renderOption:nt,name:Ie,handleChange:He}=e,Ve=Array.isArray(ye)?ye.map(de=>de&&typeof de=="object"&&"value"in de?de.value:de):[],Ee=rt?Ve.includes(ge.value):ye===ge.value;if(nt){let de=null;try{nt.length>=2?de=nt(null,ge,Ee):de=nt(ge,Ee)}catch{de=null}if(de)return de}const _e=de=>{de.preventDefault();let be;rt?be=Ve.includes(ge.value)?Ve.filter(Fe=>Fe!==ge.value):[...Ve,ge.value]:be=ge.value,$e({target:{value:be}}),je?je({field:Ie,value:be}):He&&He({field:Ie,value:be}),rt||ue(!1)},we=et?OP(ge.title):ge.title,ee=et?OP(ge.value):ge.value;return f.jsx(O.MenuItem,{value:ee,disabled:ge.disabled,onClick:_e,selected:Ee,"data-testid":`menu-item-${ee}`,sx:{display:"flex",justifyContent:"flex-start",mx:1,height:"auto",p:"8px !important",minHeight:"fit-content !important","&.Mui-selected":{backgroundColor:rt?n.palette.common.white:"auto","& .MuiTypography-root":{color:rt?n.palette.text.tertiary:n.palette.primary.main}}},children:rt?f.jsxs(f.Fragment,{children:[f.jsx(O.Checkbox,{sx:{p:0},icon:f.jsx(Ue,{src:"ic_unchecked",width:16,height:16,sx:{path:{fill:n.palette.common.white}}}),checkedIcon:f.jsx(Ue,{src:"ic_checked",width:16,height:16}),checked:!!Ee,"data-testid":"checkbox-"+ee}),f.jsx(O.ListItemText,{primary:we,sx:{whiteSpace:"normal"},secondary:ge.description})]}):f.jsxs(O.Stack,{gap:.5,sx:{whiteSpace:"normal"},children:[f.jsxs(O.Stack,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"center",children:[f.jsxs(O.Typography,{variant:"mdNormal",color:n.palette.text.primary,sx:{whiteSpace:"normal"},children:[we,ge?.legacy&&f.jsx(O.Chip,{label:"Legacy",sx:{fontSize:11,ml:1},size:"small"},`${ee}-chip-${ge?.legacy}`)]}),!et&&ge.chips&&Array.isArray(ge.chips)&&ge.chips.length>0&&f.jsx(O.Stack,{direction:"row",gap:.5,children:ge.chips.map((de,be)=>f.jsx(O.Chip,{sx:{fontSize:11},size:"small",label:de},`${ee}-chip-${be}`))})]}),ge.description&&!ge.chips&&f.jsx(O.Typography,{sx:{fontSize:"0.875rem",fontWeight:400,color:n.palette.text.tertiary},children:ge.description})]})},ee+Qe)},[e,n]),{name:l,control:u,meta:{options:c=[],displayName:d="",error:p={},description:h="",placeholder:A="",readOnly:g=!1,isDisabled:m=!1,displayProps:{loading:E=!1,refreshing:y=!1}={},htmlProps:{showAddNew:v=!1,onClickAddNew:T=null}={},TESSERACT_MAIN_URL:_="",FRONTEND_URL:x="",ENTITY_ID:b="",openIntegrationDrawer:w,addNewButtonText:D="",searchFieldPlaceholder:I="",authType:P="",handleSearchOptions:k=null,showSearchOnLoad:N=!1,showSearch:L=!0},handleChange:M,onFocus:B=null,validationRules:Q,viewOnly:V=!1,disabled:q=!1,multiple:F=!1,renderValueUi:G=null,refreshOptions:W=null,renderFieldValue:R=null,groupBy:j="",onOpen:$=null,refreshTooltip:Y="",getSelectedValue:z=null,virtualized:H=!1,...U}=e,[X,J]=C.useState(c),[te,ae]=C.useState(""),[re,ue]=C.useState(!1);C.useEffect(()=>{J(c)},[c]);const Oe=()=>{B&&B({field:l,fieldData:e})},Te=C.useMemo(()=>ba(ge=>{if(!ge)J(c);else{const ye=c.filter($e=>String($e.title).toLowerCase().includes(ge.toLowerCase()));J(ye)}},300),[c]),se=C.useCallback(ge=>{ge.stopPropagation(),ge.preventDefault();const ye=ge.target.value;ae(ye),Te(ye),k&&k(ye)},[Te]),ie=ge=>R?R(ge):F||c.some(ye=>ye.value===ge)?ge:"",Z=()=>{ae(""),J(c)},[K,ne]=C.useState(0),le=C.useRef(null),pe=C.useMemo(()=>{const ge=String(e?.nodeId||e?.id||""),ye=typeof r=="function"?r():[],$e=Array.isArray(ye)&&ye.length>0?ye:o||[],Qe=$e.find(Ie=>Ie?.selected),je=$e.find(Ie=>String(Ie?.id)===ge)||$e.find(Ie=>String(Ie?.id)===String(i))||Qe,et=String(je?.id||""),nt=(s||{})[et]||(s||{})[String(i||"")]||(s||{})[ge];return nt&&typeof nt=="object"?nt:{}},[s,r,o,e,i]),Ae=C.useCallback((ge,ye)=>{const $e=String(ge||"").replace(/^properties\./,"");return!(!$e||!($e in pe)||ye==null||typeof ye=="string"&&ye.trim()===""||Array.isArray(ye)&&ye.length===0)},[pe]),fe=()=>n?.drawer.rightMenu.replace("px","")-36;C.useEffect(()=>{const ge=()=>{if(le.current){const $e=le.current.clientWidth;ne($e>0?$e:fe())}else ne(fe())};ge();const ye=new ResizeObserver(ge);return le.current&&ye.observe(le.current),()=>{le.current&&ye.unobserve(le.current),ye.disconnect()}},[le?.current?.clientWidth]);const Se=C.useCallback((ge,ye)=>{if(j){const $e={};return X.forEach(Qe=>{const et=h4(Qe,j)||"Other";$e[et]||($e[et]=[]),$e[et].push(Qe)}),Object.entries($e).map(([Qe,je])=>f.jsxs(C.Fragment,{children:[f.jsx(O.ListSubheader,{sx:{fontSize:"0.8rem",fontWeight:600,color:n.palette.text.secondary,bgcolor:n.palette.grey[300],lineHeight:"2rem"},children:Ds(Qe.replace("_"," ")).replace("Auth","Authentication")}),je.map((et,rt)=>a(et,ge,ye,rt,M,!0))]},Qe))}return X.map(($e,Qe)=>a($e,ge,ye,Qe,M,!1))},[X,j,a,n,M]);return f.jsx(En,{name:l,control:u,rules:Q,render:({field:{onChange:ge,onBlur:ye,value:$e},fieldState:{error:Qe}})=>f.jsx(O.Stack,{position:"relative",ref:le,children:f.jsxs(Hz,{...U,multiple:F,ref:t,title:d,disabled:m||V||q,viewOnly:V,placeholder:A||d,displayEmpty:!0,errorMsg:Qe?.message||p?.errorMsg,helperText:h,value:ie($e),refreshOptions:W,loading:E,open:re,refreshing:y,refreshTooltip:Y,onOpen:()=>{ue(!0),$&&$()},onClose:()=>{ae(""),J(c),ue(!1),Z()},MenuProps:{PaperProps:{component:"div",sx:{boxShadow:`0 0.25rem 1rem 0 ${n.palette.secondary.main}`,marginTop:"0.5rem",maxHeight:"21.25rem",border:"1px solid",borderColor:n.palette.neutral.outlined.border,maxWidth:`${K}px`,"& .MuiList-root":{display:"flex",maxHeight:"21.25rem",flexDirection:"column",gap:.5,pt:L?0:1,mb:D||c.length===0||E?0:1,"&.MuiMenu-list .MuiListSubheader-root":{p:1},overflowY:"auto"}}},MenuListProps:H?{component:BFe,options:X,maxHeight:340,listWidth:K,renderItem:(je,et)=>a(je,$e,ge,et,M),groupBy:j,getNestedProperty:h4,startCase:Ds,headerComponent:L&&(N||k||c.length&&!E)&&f.jsx(O.ListSubheader,{sx:{position:"sticky",top:0,zIndex:10,bgcolor:"white","& .MuiInputBase-root":{width:"100%"},padding:0,marginBottom:1},children:f.jsx(O.OutlinedInput,{onChange:se,value:te,placeholder:I,startAdornment:f.jsx(Ue,{src:"ic_search",width:24,height:24}),onKeyDown:je=>{je.stopPropagation(),je.key==="Escape"&&(ue(!1),ae(""),J(c))},onClick:je=>{je.stopPropagation()},inputRef:je=>{je&&re&&setTimeout(()=>je.focus(),0)}})},"search-input"),footerComponent:f.jsxs(f.Fragment,{children:[E&&f.jsx(O.Stack,{direction:"row",justifyContent:"center",py:1,px:2,children:f.jsx(O.CircularProgress,{size:24})}),!E&&X.length===0&&f.jsx(O.MenuItem,{disabled:!0,sx:{justifyContent:"center",p:"6px 12px"},children:f.jsx(O.Typography,{variant:"smNormal",children:"No options available"})}),D&&v&&f.jsx(O.MenuItem,{"data-testid":`${d}-popup-footer-item`,selected:!1,sx:{position:"sticky",bottom:0,p:2,zIndex:1e3,height:"auto",":hover":{backgroundColor:`${n.palette.common.white}`},backgroundColor:`${n.palette.common.white}`,borderRadius:0,cursor:"auto",borderTop:`1px solid ${n.palette.neutral.outlined.border}`},disableRipple:!0,onClick:je=>{je.stopPropagation(),je.preventDefault(),ue(!1)},children:f.jsx(kC,{type:P,openIntegrationDrawer:w,TESSERACT_MAIN_URL:_,FRONTEND_URL:x,ENTITY_ID:b,buttonText:D,onClick:T,setMenuOpen:ue})},`${d}-popup-footer-item`)]})}:{component:O.Box},autoFocus:!1,disableAutoFocusItem:!0},renderValue:G||(je=>{const et=z?.(je)||je;return f.jsx(bFe,{isMultiple:F,name:l,placeholder:A,options:c,selected:et,setMenuOpen:ue,menuOpen:re,viewOnly:V})}),readOnly:g,name:l,aiIndicatorVisible:Ae(l,$e),onFocus:Oe,onChange:je=>{ge(je),M&&M({field:l,value:je.target.value}),F||ue(!1)},onBlur:ye,error:!!Qe,children:[L&&(N||k||c.length&&!E)&&f.jsx(O.ListSubheader,{sx:{position:"sticky",top:0,zIndex:10,bgcolor:"white","& .MuiInputBase-root":{width:"100%"}},children:f.jsx(O.OutlinedInput,{onChange:se,value:te,placeholder:I,startAdornment:f.jsx(Ue,{src:"ic_search",width:24,height:24}),onKeyDown:je=>{je.stopPropagation(),je.key==="Escape"&&(ue(!1),ae(""),J(c))},onClick:je=>{je.stopPropagation()},inputRef:je=>{je&&re&&setTimeout(()=>je.focus(),0)}})},"search-input"),c.length&&!E&&Se($e,ge),E&&f.jsx(O.MenuItem,{disabled:!0,sx:{p:"6px 12px","&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{opacity:1}},children:f.jsx(O.Stack,{alignItems:"center",width:"100%",children:f.jsx(O.CircularProgress,{size:16})})}),X.length===0&&!E&&f.jsx(O.MenuItem,{disabled:!0,sx:{p:"6px 12px"},children:f.jsx(O.Typography,{variant:"smNormal",children:"No options available"})}),v&&f.jsx(O.MenuItem,{"data-testid":`${d}-popup-footer-item`,selected:!1,sx:{position:"sticky",bottom:0,p:2,zIndex:1e3,height:"auto",":hover":{backgroundColor:`${n.palette.common.white} !important`},backgroundColor:`${n.palette.common.white} !important`,borderRadius:0,cursor:"auto",borderTop:`1px solid ${n.palette.neutral.outlined.border}`},disableRipple:!0,onClick:je=>{je.stopPropagation()},children:f.jsx(kC,{type:P,openIntegrationDrawer:w,TESSERACT_MAIN_URL:_,FRONTEND_URL:x,ENTITY_ID:b,buttonText:D,onClick:T,setMenuOpen:ue})},`${d}-popup-footer-item`)]})})})}),Zt=gc(jFe),eo=e=>{const{children:t,rightElement:n=null}=e;return f.jsxs(O.Stack,{gap:2,children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[f.jsx(O.Typography,{className:"setup",variant:"lgSemiBold",children:"Setup"}),n]}),t]})},$Fe=e=>{const t=O.useTheme(),{meta:{className:n="",displayName:r="",htmlProps:{headerVariant:i="smSemiBold"}={},description:o=""}={},children:s,defaultExpanded:a=!1}=e,[l,u]=C.useState(a),c=(d,p)=>{u(p)};return f.jsxs(O.Stack,{sx:{width:"100%"},className:n,children:[f.jsxs(O.Accordion,{expanded:l,onChange:c,sx:{border:`1px solid ${t.palette.neutral.outlined.border}`,borderRadius:".5rem !important",overflow:"auto"},children:[f.jsx(O.AccordionSummary,{sx:{borderBottom:l?`1px solid ${t.palette.neutral.outlined.border}`:"none",p:"0.5rem 0.75rem","& .MuiAccordionSummary-content":{margin:"0 !important"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},backgroundColor:t.palette.white.smoke},expandIcon:f.jsx(Ue,{src:"ic_arrow_down",width:"1.5rem",height:"1.5rem"}),children:f.jsx(O.Stack,{spacing:"0.25rem",justifyContent:"flex-start",children:!Ot(r)&&f.jsx(O.Typography,{variant:i,children:r})})}),f.jsx(O.AccordionDetails,{sx:{p:"1rem 0.75rem"},children:s})]}),o&&f.jsx(O.FormHelperText,{children:o})]})},uT=C.forwardRef(({type:e,name:t,label:n,value:r,onChange:i,inputProps:o,errorMsg:s,required:a=!1,viewOnly:l=!1},u)=>f.jsx(io,{ref:u,label:n,name:t,type:"number",fullWidth:!0,required:a,viewOnly:l,errorMsg:s,helperText:br(e,t),value:r||"",onChange:c=>{const d=Number(c.target.value);i(d)},inputProps:o})),Ni=e=>{const{type:t,viewOnly:n=!1}=e,{control:r,formState:{errors:i},watch:o}=Gn();return f.jsx($Fe,{meta:{displayName:"Advanced options"},children:f.jsxs(O.Grid,{container:!0,gap:1,children:[t===Ke.PARALLEL&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsxs(O.Grid,{sx:{mt:1,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx(Or,{label:"Isolate flow failures",description:ro("All parallel flows run to completion even if one fails. Once all finish, the execution is marked as failed if any flow failed — errors are not silently swallowed. When disabled (default), the first flow failure immediately stops all remaining flows."),sx:{fontSize:14,fontWeight:400}}),f.jsx(En,{name:"properties.isolate_flows",control:r,defaultValue:!1,render:({field:s})=>f.jsx(O.FormControlLabel,{label:s.value?"On":"Off",labelPlacement:"start",control:f.jsx(O.Switch,{...s,checked:!!s.value,disabled:n}),sx:{mr:0,ml:2},componentsProps:{typography:{variant:"smNormal"}}})})]})}),t&&![Ke.SWITCH,Ke.PARALLEL,Ke.IF,Ke.SLEEP,Ke.RESPONSE].includes(t)&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsxs(O.Grid,{sx:{mt:1,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx(Or,{label:"Continue on failure",description:ro("When enabled, a failure handle appears on this node. If this node fails, workflow continues through the failure path. If disabled and this node fails, the entire workflow stops."),sx:{fontSize:14,fontWeight:400}}),f.jsx(En,{name:"properties.continue_on_failure",control:r,defaultValue:t===Ke.API||t===Ke.GRAPHQL,render:({field:s})=>f.jsx(O.FormControlLabel,{label:s.value?"On":"Off",labelPlacement:"start",control:f.jsx(O.Switch,{...s,checked:!!s.value,disabled:n}),sx:{mr:0,ml:2},componentsProps:{typography:{variant:"smNormal"}}})})]})}),(t===Ke.API||t===Ke.SERVERLESS)&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.api_timeout",control:r,render:({field:s})=>f.jsxs(O.FormControl,{fullWidth:!0,children:[f.jsx(Or,{required:!0,label:"Max Time to Wait for API Response (seconds)",description:ro(br(t,"api_timeout"))}),f.jsx(O.Select,{...s,value:s.value/1e3,disabled:n,onChange:a=>s.onChange(Number(a.target.value)*1e3),children:[3e4,6e4,9e4,12e4].map(a=>f.jsx(O.MenuItem,{value:a/1e3,children:a/1e3},a))})]})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.maximum_timeout",control:r,rules:{min:{value:6e4,message:"Maximum timeout must be at least 60"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"maximum_timeout",label:"Maximum Activity Completion Timeout(seconds)",viewOnly:n,errorMsg:i.properties?.maximum_timeout?.message,value:o("properties.maximum_timeout")/1e3,onChange:a=>s.onChange(a*1e3),inputProps:{min:60,step:10}})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.retry_config.maximum_attempts",control:r,rules:{min:{value:1,message:"Maximum number of attempts must be at least 1"},max:{value:10,message:"Maximum number of attempts must be at most 10"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"maximum_attempts",label:"Maximum Number of Attempts",viewOnly:n,errorMsg:i.properties?.retry_config?.maximum_attempts?.message,inputProps:{min:1,max:10}})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,meta:{options:s4,displayName:"Retry Backoff Rate",searchFieldPlaceholder:"Search",description:"Constants factor by which the time delay between the retry attempts increase after the each failure",placeholder:"Select Retry Backoff Rate"},name:"properties.retry_config.backoff_coefficient",control:r,disabled:n,type:"number"})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.retry_config.initial_interval",control:r,rules:{min:{value:1,message:"Initial interval must be at least 1"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"initial_interval",label:"Wait Time Before First Retry (seconds)",viewOnly:n,errorMsg:i.properties?.retry_config?.initial_interval?.message,inputProps:{min:1,step:1},value:o("properties.retry_config.initial_interval")/1e3,onChange:a=>s.onChange(a*1e3)})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.retry_config.maximum_interval",control:r,rules:{min:{value:100,message:"Max interval must be at least 100"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"maximum_interval",label:"Maximum Wait Between Retries (seconds)",viewOnly:n,errorMsg:i.properties?.retry_config?.maximum_interval?.message,inputProps:{min:100,step:1},value:o("properties.retry_config.maximum_interval")/1e3,onChange:a=>s.onChange(a*1e3)})})})]})})},UFe=({tabs:e,selectedTab:t,setSelectedTab:n,sx:r,textTransform:i="capitalize"})=>{const o=O.useTheme(),[s,a]=C.useState(!1);return C.useEffect(()=>{kF(t)||a(t)},[t]),f.jsx(O.Tabs,{sx:{width:"100%",border:`1px solid ${o.palette.neutral.outlined.border}`,"& .MuiTab-root":{fontSize:12,lineHeight:1},...r},value:s,onChange:(l,u)=>n(u),children:e.map(l=>f.jsx(O.Tab,{sx:{textTransform:i,flex:1,"& .MuiTab-iconWrapper":{ml:0},"&.MuiButtonBase-root.MuiTab-root":{py:.5}},icon:l?.icon,label:l.title,value:l.title,disabled:l.disabled||!1,iconPosition:"end"},l.title))})},cT=(e,t)=>t.split(".").reduce((n,r)=>n?.[r],e),HFe=({id:e,type:t="",field:n,suggestionsData:r,isLoop:i=!1,showKeyValuePair:o=!0,valueTypeSelector:s=null,viewOnly:a=!1,hideLabel:l=!0,name:u,fieldName:c="JSON",excludePayloadSuggestions:d=!1})=>f.jsx(f.Fragment,{children:o?f.jsx(VFe,{id:e,name:u,valueTypeSelector:s,viewOnly:a,isLoop:i,hideLabel:l,type:t,field:n,excludePayloadSuggestions:d}):f.jsx(GFe,{name:u,viewOnly:a,type:t,isLoop:i,fieldName:c,suggestionsData:r})}),VFe=({id:e,name:t,valueTypeSelector:n=null,viewOnly:r=!1,isLoop:i,hideLabel:o=!1,type:s,field:a,excludePayloadSuggestions:l})=>{const{control:u,watch:c,setValue:d,formState:{errors:p}}=Gn(),h=c(t),A=O.useTheme(),{reserved_keywords:g}=ht.useSelector(y=>y.activities),m=()=>{!h||!Array.isArray(h)?d(t,[{key:"",value:""}]):d(t,[...h,{key:"",value:""}])},E=y=>{Array.isArray(h)&&d(t,[...h.slice(0,y),...h.slice(y+1)])};return f.jsxs(O.Box,{children:[!Ot(h)&&f.jsxs(O.Box,{sx:{border:`1px solid ${A.palette.grey[300]}`,borderRadius:3},children:[f.jsxs(O.Stack,{direction:"row",sx:{backgroundColor:A.palette.white.smoke,borderRadius:"12px 12px 0 0"},children:[f.jsx(O.Box,{width:n?"29.5%":"44%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Key"})}),n&&f.jsx(O.Box,{width:"29.5%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Type"})}),f.jsx(O.Box,{width:n?"29.5%":"44%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Value"})}),f.jsx(O.Box,{width:n?"11.5%":"12%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Actions"})})]}),f.jsx(O.Stack,{children:Array.isArray(h)&&h?.map((y,v)=>f.jsxs(O.Stack,{direction:"row",flex:1,justifyContent:"normal",alignItems:"flex-start",children:[f.jsx(O.Box,{width:n?"29.5%":"44%",px:1,py:1.5,children:f.jsx(En,{name:`${t}.${v}.key`,control:u,rules:{required:"Key is required",validate:T=>g.includes(T)?`${T} is a reserved keyword and cannot be used.`:T==null||T===""?"Key cannot be empty":!0},render:({field:T})=>f.jsx(io,{...T,label:o?"":"Key",fullWidth:!0,id:e,viewOnly:r,showSuggestions:!1,isLoop:i,editorId:`${s}-key_${a}-${v}`,required:!0,placeholder:"Key",errorMsg:cT(p,`${t}.${v}.key`)?.message,excludePayloadSuggestions:l})})}),n,f.jsx(O.Box,{sx:{width:n?"29.5%":"44%",minWidth:0},px:1,py:1.5,children:f.jsx(En,{name:`${t}.${v}.value`,control:u,rules:{required:"Value is required",validate:T=>g.includes(T)?`${T} is a reserved keyword and cannot be used.`:T==null||T===""?"Value cannot be empty":!0},render:({field:T})=>f.jsx(io,{...T,showSuggestions:!0,editorId:`${s}-value_${a}-${v}`,label:o?"":"Value",isLoop:i,fullWidth:!0,viewOnly:r,type:"text",top:"6px",required:!0,id:e,placeholder:"Value",errorMsg:cT(p,`${t}.${v}.value`)?.message,excludePayloadSuggestions:l})})}),f.jsx(O.Box,{width:n?"11.5%":"12%",px:1,py:1.5,sx:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:f.jsx(O.IconButton,{sx:{top:0,p:.75,"& path":{fill:A.palette.neutral.solid.bg},"&:hover path":{fill:A.palette.error[60]},"&:hover":{backgroundColor:"transparent"}},disabled:r,color:"error",onClick:()=>E(v),children:f.jsx(Ue,{width:20,height:20,src:"ic_delete"})})})]},`bulk-edit-${v}`))})]}),f.jsx(O.Tooltip,{title:"Add value set",arrow:!0,children:f.jsx("span",{children:f.jsxs(O.IconButton,{onClick:()=>m(),sx:{mt:Ot(h)?0:1.5,fontSize:"1rem","&:hover":{color:A.palette.primary[50],"& .MuiTypography-root":{color:A.palette.primary[50]},"& svg path":{fill:A.palette.primary[50]}}},disableFocusRipple:!0,disableTouchRipple:!0,disableRipple:!0,disabled:r,color:"primary",children:[f.jsx(Ue,{src:"ic_plus",width:16,height:16,sx:{path:{fill:A.palette.primary[60]}}}),f.jsx(O.Typography,{sx:{ml:.5,lineHeight:"20px"},variant:"smMedium",color:A.palette.primary[60],children:"Add"})]})})})]})},GFe=({name:e,viewOnly:t,type:n,isLoop:r,suggestionsData:i,fieldName:o})=>{const{control:s,formState:{errors:a},watch:l}=Gn(),{loopSuggestionsData:u={}}=ht.useSelector(d=>d.loopActivity),c=l("properties.body_type");return f.jsx(En,{name:e,control:s,rules:{required:`${o} is required`,validate:d=>{if(d.indexOf("{{")!==-1&&d.lastIndexOf("}}")!==-1&&d.lastIndexOf("}}")>d.indexOf("{{"))return!0;try{JSON.parse(d)}catch{return"The provided value is not valid JSON."}return!0}},render:({field:d})=>f.jsx(Do,{size:"md",language:c==="xml"?"xml":"json",showSuggestions:!0,viewOnly:t,id:`${n}-${d}`,suggestionsData:r?u:i,showExpandOption:!0,handleChange:p=>{d.onChange(p)},value:typeof d.value=="object"?JSON.stringify(d.value,null,2):d.value,error:!!cT(a,e)?.message,errorMsg:cT(a,e)?.message})})},pa=Co(HFe),WFe=e=>{const{id:t,isLoop:n,control:r,bodyTypeWatch:i,method:o,...s}=e;return i==="form-data"||i==="x-www-form-urlencoded"?f.jsx(pa,{id:t,isLoop:n,field:"body",type:"apiActivity",title:"Body",fieldName:"Body",valueTypeSelector:i==="form-data"&&f.jsx(O.Stack,{width:"29.5%",px:1,py:1.5,children:f.jsx(O.Select,{name:"value_type",value:"text",sx:{".MuiInputBase-inputSizeSmall":{height:"auto !important"}},children:l4.length?l4.map(a=>f.jsx(O.MenuItem,{value:a.value,sx:{minHeight:"40px !important","@media (min-width: 600px)":{minHeight:"40px !important"}},children:a.title},a.value)):f.jsx(O.MenuItem,{disabled:!0,sx:{p:"14px 16px"},children:f.jsx(O.Typography,{variant:"smNormal",children:"No options"})})})}),...s}):["raw","xml"].includes(i)?f.jsx(pa,{id:t,isLoop:n,field:"body",type:"apiActivity",title:"Body",showKeyValuePair:!1,fieldName:"Body",...s}):null},QFe=C.forwardRef((e,t)=>{const n=ht.useDispatch(),r=O.useTheme(),{type:i,lambdaUrls:o,id:s,isLoop:a=!1,VORTEX_MAIN_URL:l,ENTITY_ID:u,viewOnly:c=!1}=e,[d,p]=C.useState(""),[h,A]=C.useState(!1),[g,m]=C.useState("Query Params"),[E,y]=C.useState(!1),{setValue:v,control:T,watch:_,trigger:x}=Gn(),[b,w,D,I]=_(["properties","type","properties.body_type","properties.method"]),P=async N=>{y(!0);const L=Yt(l,`/v1.0/${u}`,"/utility/curl");try{const B=(await Xt.post(L,{data:{curl:N}}))?.data?.data,Q=vFe(N),V=G=>typeof G=="string"?(R=>{const j=[];return R.split("&").forEach($=>{const[Y,z]=$.split("=");j.push({key:Y,value:z})}),j})(G):typeof G=="object"&&G!==null&&!Array.isArray(G)?Yo(G):G,q=G=>Q==="none"?null:Q==="raw"&&G!==null?JSON.stringify(G,null,2):Q==="xml"&&G!==null?typeof G=="string"?G:"":V(G),F={method:B?.method?.toLowerCase()||"",endpoint:B?.url,headers:Yo(B?.headers||{}),body:q(B?.data)||{},state_params:Yo(B?.state_params||{}),query_params:Yo(B?.queries||{}),body_type:Q};v("properties",{...b,...F}),n({type:zn,payload:{open:!0,title:"cURL imported successfully",type:"success"}}),A(!1),p("")}catch(M){cn(M,n)}finally{y(!1)}},k=async N=>{if(!N){n({type:zn,payload:{open:!0,title:"Please enter cURL",type:"error"}});return}P(N)};return f.jsxs(O.Stack,{gap:2.5,children:[f.jsx(eo,{rightElement:w==="apiActivity"&&f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:()=>{A(!0)},disabled:c,sx:{textTransform:"none","&.MuiButtonBase-root.MuiButton-root.MuiButton-outlined":{color:r.palette.primary.main,borderColor:r.palette.primary[30]}},children:"Import cURL"}),children:f.jsx(O.Grid,{container:!0,gap:1.5,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.method",control:T,meta:{options:HO,displayName:"Method",searchFieldPlaceholder:"Search Method",placeholder:"Select Method",description:"The HTTP Method to be used for the request"},validationRules:{required:"Method is required"},viewOnly:c,id:i})})})}),b.method&&f.jsx(O.Divider,{}),b.method&&f.jsxs(Rr,{children:[f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:w===Ke.SERVERLESS?f.jsx(Zt,{required:!0,name:"properties.endpoint",control:T,meta:{options:o,displayName:"Endpoint",searchFieldPlaceholder:"Search Endpoint",description:"The URL of the HTTP Request.",placeholder:"Select Endpoint"},validationRules:{required:"Endpoint is required"},viewOnly:c,id:i}):f.jsx(Wn,{required:!0,id:s,name:"properties.endpoint",control:T,meta:{displayName:"Base URL",description:"The URL of the HTTP Request.",placeholder:"Enter URL"},validationRules:{required:"Base URL is required"},viewOnly:c,editorId:`${i}-base_url-${a}`,showSuggestions:!0,isLoop:a})}),f.jsx(UFe,{variant:"normal",tabs:[{title:"Query Params",icon:f.jsx(O.Tooltip,{arrow:!0,title:"Query params are key-value pairs added to a URL to filter or specify data in a request.",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})},{title:"State Params",icon:f.jsx(O.Tooltip,{arrow:!0,title:"Path params are variables embedded directly in the URL path to identify specific resources (e.g., an ID).",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})},{title:"Headers",icon:f.jsx(O.Tooltip,{arrow:!0,title:"Headers are key-value pairs sent along with the HTTP request or response to pass metadata such as authentication tokens, content type, or client information.",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})},{title:"Body",icon:f.jsx(O.Tooltip,{arrow:!0,title:"The body is the payload of the request, typically used in POST, PUT, or PATCH methods to send data to the server.",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})}],selectedTab:g,setSelectedTab:m}),g==="Query Params"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(pa,{id:s,field:"query_params",type:"apiActivity",title:"Query Params",viewOnly:c,isLoop:a,name:"properties.query_params"})}),g==="State Params"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(pa,{id:s,isLoop:a,viewOnly:c,field:"state_params",type:"apiActivity",title:"State Params",name:"properties.state_params"})}),g==="Headers"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(pa,{id:s,field:"headers",viewOnly:c,isLoop:a,type:"apiActivity",title:"Headers",name:"properties.headers"})}),g==="Body"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsxs(O.Grid,{direction:"column",container:!0,gap:1,children:[f.jsx(Zt,{required:!0,name:"properties.body_type",control:T,meta:{options:oue,displayName:"Body Type",searchFieldPlaceholder:"Search Body type",placeholder:"Select Body type"},validationRules:{required:"Body type is required"},viewOnly:c,id:i,handleChange:N=>{const{value:L}=N;x("properties.body"),L==="none"?v("properties.body",null):L==="raw"?v("properties.body","{}"):L==="form-data"?v("properties.body",Yo({})):L==="x-www-form-urlencoded"?v("properties.body",Yo({})):L==="xml"&&v("properties.body",""),v("properties.headers",TFe(L,b))}}),f.jsx(WFe,{id:s,isLoop:a,viewOnly:c,name:"properties.body",control:T,method:I,bodyTypeWatch:D})]})},D),!a&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Ni,{viewOnly:c,type:i})})]}),f.jsx(vo,{variant:"medium",open:h,icon:f.jsx(Ue,{width:24,height:24,src:"ic_download",sx:{path:{fill:r.palette.primary.main}}}),title:"Import cURL",handleClose:()=>{A(!1)},content:f.jsxs(O.Stack,{flexDirection:"column",gap:.5,width:"100%",children:[f.jsx(O.TextField,{name:"curl",disabled:E||c,fullWidth:!0,multiline:!0,rows:10,variant:"outlined",placeholder:"Paste cURL here",value:d,onChange:N=>{p(N.target.value)}}),f.jsxs(O.Stack,{flexDirection:"row",alignItems:"center",sx:{mt:.5},children:[f.jsx(Ue,{src:"ic_info"}),f.jsx(O.Typography,{variant:"smMedium",sx:{ml:1,fontStyle:"italic"},children:"This will overwrite any changes you have already made."})]})]}),footer:f.jsx(O.Stack,{flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:f.jsx(O.Box,{children:f.jsx(O.Button,{variant:"contained",onClick:()=>{k(d)},disabled:c,sx:{fontSize:"14px",boxShadow:N=>N.shadows[0],padding:"2px 16px"},startIcon:E&&f.jsx(O.CircularProgress,{color:"inherit",size:16}),children:"Import"})})})})]})]})}),Zz={Folder:[{name:"Created",value:"storage.folder.created"}],File:[{name:"Uploaded",value:"storage.file.uploaded"}]},zFe=C.forwardRef((e,t)=>{const{viewOnly:n=!1}=e,{setValue:r}=Gn(),{control:i}=Gn(),o={"storage.file.uploaded":"Workflow will be triggered when a new file is uploaded to the boltic storage.","storage.file.updated":"The content or metadata of an existing file is updated.","storage.file.deleted":"A file has been permanently deleted from the storage.","storage.file.public":"A file has been made publicly accessible.","storage.file.private":"A file's public access has been revoked, making it private.","storage.folder.created":"Workflow will be triggered when a new folder is created in the boltic storage.","storage.folder.deleted":"A folder has been permanently deleted from the storage."},s=[...Zz.Folder.map(a=>({title:"Folder "+a.name,value:a.value})),...Zz.File.map(a=>({title:"File "+a.name,value:a.value}))];return f.jsx(Rr,{children:f.jsx(Zt,{name:"properties.events",control:i,meta:{options:s.map(a=>({...a,description:o[a.value]})),displayName:"Events",searchFieldPlaceholder:"Search",description:"Select Boltic storage event(s) when you want to trigger workflow",placeholder:"Select Events"},validationRules:{validate:a=>a.length===0?"Events is required":!0},multiple:!0,renderFieldValue:a=>Array.isArray(a)?a.map(l=>l?.value):[],handleChange:a=>{r(a?.field,a?.value?.map(l=>l.value?l:{value:l}))},viewOnly:n,getSelectedValue:a=>Array.isArray(a)?a?.map(l=>s.find(u=>u.value===l))?.filter(l=>l?.title):[],required:!0})})}),XFe=C.forwardRef((e,t)=>{const n=O.useTheme(),{setValue:r,control:i,watch:o}=Gn(),s=o("properties"),a={folder_name:""},l={file_content:"",file_name:"",folder_path:"",overwrite:!1,is_public:!1},{id:u,isLoop:c=!1,viewOnly:d=!1,type:p}=e,h=g=>m=>{if(s?.event==="upload_file"){if(g==="file_name"){if(m?.trim()==="")return"File name is required";if(m?.trim()?.includes("/"))return"'/' is not allowed in file name."}return g==="file_content"&&m?.trim()===""?"File content is required":g==="expire_in"&&(m<1||m>10080)?"Expiry values between 1 to 10080 are accepted.":!0}else if(s?.event==="create_folder"){if(m?.trim()==="")return"Folder name can not be empty";const E=/^[A-Za-z0-9 _-]*$/,y=/{{[^{}]+}}/g,v=m.replace(y,"");if(!gue(m)&&!E.test(v))return"Folder name should not contain special characters [!@#$%^&*()+{}[]:;<>,.?~/]."}return!0},A=()=>({create_folder:[{required:!0,type:"text",label:"Folder Name",fieldName:"folder_name",placeholder:""}],upload_file:[{required:!0,type:"text",label:"File Content",fieldName:"file_content",placeholder:""},{required:!0,type:"text",label:"File Name",fieldName:"file_name",placeholder:"filename.csv"},{required:!1,type:"text",label:"Folder Path",fieldName:"folder_path",placeholder:"path/to/folder"},{required:!1,type:"checkbox",label:"Overwrite existing file with same name",fieldName:"overwrite",placeholder:""},{required:!1,type:"checkbox",label:"Generate Shareable Link",fieldName:"is_public",placeholder:""},{required:!1,type:"number",label:"Expires in",fieldName:"expire_in",placeholder:"Enter minute(s)",helperText:"Default is 60min"}]}[s.event]||[]).map(({label:E,fieldName:y,type:v,required:T,placeholder:_})=>{if(v==="text")return f.jsx(Wn,{name:`properties.${s.event}.${y}`,control:i,meta:{displayName:E,description:br(p,y),placeholder:_},validationRules:{validate:h(y)},editorId:`${v}-bs-activity-${y}`,id:u,required:T,isLoop:c,viewOnly:d,showSuggestions:!0},y);if(v=="number"&&s?.upload_file?.is_public)return f.jsx(Wn,{name:`properties.${s.event}.${y}`,control:i,meta:{displayName:E,description:br(p,y),placeholder:_},validationRules:{validate:h(y)},editorId:`${v}-bs-activity-${y}`,id:u,fieldType:"number",required:T,isLoop:c,viewOnly:d,showSuggestions:!0},y);if(v==="checkbox")return f.jsx(O.Box,{sx:{width:"100%"},children:f.jsx(En,{name:`properties.upload_file.${y}`,control:i,rules:{validate:h(y)},render:({field:{value:x,...b},fieldState:{error:w}})=>f.jsxs(O.FormGroup,{children:[f.jsx(O.FormControlLabel,{control:f.jsx(O.Checkbox,{...b,icon:f.jsx(Ue,{src:"ic_unchecked",width:16,height:16,sx:{path:{fill:n.palette.common.white}}}),checkedIcon:f.jsx(Ue,{src:"ic_checked",width:16,height:16}),sx:{p:0,"& .MuiSvgIcon-root":{fontSize:D=>D.typography.xlMedium.fontSize}},readOnly:d,checked:x}),label:E}),w?.message&&f.jsx(O.FormHelperText,{children:w.message})]})})},y)});return f.jsx(Rr,{children:f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.event",control:i,meta:{options:a4,displayName:"Event",searchFieldPlaceholder:"Search",description:"Select a event",placeholder:"Select a event"},validationRules:{required:"Event is required"},viewOnly:d,id:"event",handleChange:g=>{const{value:m}=g;m=="create_folder"?r("properties",{...s,create_folder:a,event:m}):r("properties",{...s,upload_file:l,event:m})},renderValueUi:g=>{const m=a4.find(E=>E.value===g);return m?m.title:""}})}),A(),!c&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Ni,{viewOnly:d,type:p})})]})})}),bP=({type:e="",name:t,title:n,options:r,required:i,loadDataFromApi:o,loadingState:s,show:a=!1,secretType:l="",onFocus:u,TESSERACT_MAIN_URL:c="",FRONTEND_URL:d="",ENTITY_ID:p="",onTextInputChange:h,onAddButtonClick:A,buttonName:g="",viewOnly:m=!1,validationRules:E=null,control:y,handleChange:v=null,...T})=>{const[_,x]=C.useState(!1);return C.useEffect(()=>{x(!!s)},[s]),f.jsx(Zt,{required:i,name:t,control:y,renderFieldValue:b=>Array.isArray(b)?b?.length>0&&b[0]&&r.some(w=>w.id===b[0]?.id)?b[0]?.id:"":r.some(w=>w.value===b)?b:"",meta:{options:Mr(r),displayProps:{loading:_},displayName:n,TESSERACT_MAIN_URL:c,FRONTEND_URL:d,ENTITY_ID:p,addNewButtonText:g,searchFieldPlaceholder:"Search",authType:l,description:br(e,t),handleSearchOptions:b=>{h&&h(x,b)},htmlProps:{showAddNew:a,onClickAddNew:A},showSearchOnLoad:!0,placeholder:`Select ${n?.toLowerCase()}`},validationRules:E,viewOnly:m,id:t,onOpen:()=>{o&&(x(!0),o(x,""))},onFocus:u,handleChange:v,...T})},YFe=C.forwardRef((e,t)=>{const n=O.useTheme(),[r,i]=C.useState(!1),[o,s]=C.useState(!1),[a,l]=C.useState([]),[u,c]=C.useState([]),[d,p]=C.useState([]),[h,A]=C.useState([]),[g,m]=C.useState(!1),[E,y]=C.useState(!1),v=ht.useDispatch(),{ATHENA_MAIN_URL:T,FRONTEND_URL:_,ENTITY_ID:x,viewOnly:b=!1}=e,{control:w,watch:D,setValue:I,getValues:P}=Gn(),k=D("properties"),[N,L,M]=D(["properties.field","properties.events","properties.table"]),B=(R=null,j=null,$=null,Y=null)=>{const z=P("properties.database")||"";let U=(Y!==null?Y:h).find(ae=>ae.id===z);if(!U&&z&&(U={id:z,resource_id:"boltic"}),!z||!U){$&&$(!1);return}const X=Yt(T,`/list?db_id=${z}`),J=[{field:"name",operator:"ILIKE",values:[""]},{field:"resource_id",operator:"=",values:[U.resource_id||"boltic"]},{field:"db_id",operator:"=",values:[z]}],te={data:{page:{page_no:1,page_size:999},filters:J,sort:[{field:"created_at",direction:"desc"}]}};if(R&&Array.isArray(R)){const ae=R.find(re=>re.field==="name");if(ae){te.data.filters[0]=ae;const re=R.filter(ue=>!["name","resource_id","db_id"].includes(ue.field));te.data.filters.push(...re)}}Xt.post(X,te).then(ae=>{if(l(ae?.data?.data||[]),j){j=ae?.data?.data?.filter(Te=>Te?.id===j);const re=D("properties"),{payload:ue,...Oe}=re||{};I("properties",{...Oe,table:j})}}).catch(ae=>{cn(ae,v)}).finally(()=>{$&&$(!1)})},Q=async()=>{if(!T){m(!1);return}m(!0);const R=Yt(T,"/connectors/list");Xt.post(R,{data:{page:{page_no:1,page_size:999},filters:[],sort:[]}}).then(j=>{m(!1);const $=[{id:"boltic",name:"Boltic Cloud"},...j?.data?.data||[]];p($);const z=D("properties")?.connector;if(!z&&$.length>0){const H=$[0].id;I("properties.connector",H),V(H)}else z&&V(z)}).catch(j=>{cn(j,v),m(!1)})},V=async R=>{if(!R)return[];y(!0);try{const j={page:{page_no:1,page_size:1e3},filters:[{field:"status",operator:"=",values:["ACTIVE"]}],sort:[]},$=`${T}/databases/list?connector_id=${R}`,z=(await Xt.post($,{data:j}))?.data?.data||[];A(z);const U=D("properties")?.database;if(!U&&z.length>0){const X=z[0].id;I("properties.database",X),setTimeout(()=>{B()},100)}else U&&setTimeout(()=>{B(null,null,null,z)},100);return z}catch(j){return cn(j,v),[]}finally{y(!1)}},q=()=>{i(!0);const R=P("properties.database")||"",j=P("properties.connector")||"boltic";let $=h.find(U=>U.id===R);!$&&R&&($={id:R,resource_id:"boltic"});const Y=$?.resource_id||"boltic",z={name:"Workflow Table",is_ai_generated_schema:!0},H={};R&&(H.db_id=R),H.resource_id=Y,Xt.post(T,{data:z,params:H}).then(U=>{U?.data?.data?.id&&(R==""&&V(j),B(null,U?.data?.data?.id)),v({type:zn,payload:{open:!0,title:"Table created successfully",type:"success"}}),i(!1);const X=U?.data?.data?.id,J=new URLSearchParams({connector:j,database:R,resource:Y}).toString(),te=`${_}/accounts/${x}/tables/create/${X}?${J}`;window.open(te)}).catch(U=>{i(!1),v({type:zn,payload:{open:!0,title:"Table creation failed",type:"error"}}),cn(U,v)})};C.useEffect(()=>{N?.length>0&&M.length>0&&G(M[0]?.id)},[]),C.useEffect(()=>{L?.some(j=>j?.value==="table.button.triggered"||j?.value==="table.field.updated")&&M?.length>0&&G(M[0]?.id)},[JSON.stringify(L),JSON.stringify(M)]);const F=[...iue.Record.map(R=>({title:R.name,value:R.value,description:R.description}))],G=async R=>{const j=k?.database||"";if(!j){s(!1);return}s(!0);const $=Yt(T,`/${R}/fields/list?db_id=${j}`);try{let Y=await Xt.post($,{data:{page:{page_no:1,page_size:999},filters:[],sort:[{field:"name",direction:"desc"}]}});Y=Y.data?.data?Y.data.data:[];const z=Y.filter(H=>!["created_at","updated_at","id","created_by","updated_by"].includes(H.name));c(z),s(!1)}catch(Y){cn(Y,v)}finally{s(!1)}},W=ba((R,j)=>{B(R=R,null,j)},300);return C.useEffect(()=>{Q()},[]),C.useEffect(()=>{if(N===null){const{field:R,...j}=D("properties");I("properties",j)}},[N]),f.jsx(Rr,{children:f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.connector",control:w,meta:{options:(d||[]).map(R=>({value:R.id,title:R.name||R.id})),displayName:"Connector",searchFieldPlaceholder:"Search Connector",placeholder:"Select Connector",isLoading:g},validationRules:{required:"Connector is required"},viewOnly:b,fullWidth:!0,id:"connector",required:!0,handleChange:async R=>{const{value:j}=R;I("properties.connector",j),I("properties.database",""),I("properties.table",[]),I("properties.events",[]),I("properties.field",null),I("properties.button",[]),A([]),l([]),c([]),j&&await V(j)}})})}),k?.connector&&f.jsxs(O.Grid,{item:!0,xs:12,children:[f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.database",control:w,meta:{options:(h||[]).map(R=>({value:R.id,title:R.db_name||R.id,...k?.connector&&k.connector!=="boltic"&&R?.resource_name?{description:R.resource_name}:{}})),displayName:"Database",searchFieldPlaceholder:"Search Database",placeholder:"Select Database",isLoading:E},viewOnly:b,fullWidth:!0,id:"database",required:!0,handleChange:R=>{const{value:j}=R;I("properties.database",j),I("properties.table",[]),I("properties.events",[]),I("properties.field",null),I("properties.button",[]),l([]),c([]),j&&B()}})}),!E&&h?.length===0&&f.jsx(O.Typography,{variant:"caption",sx:{mt:.5,display:"block",color:"text.secondary"},children:"No database is present, please create your first table to create a database."})]}),(k?.database||k?.database=="")&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(bP,{type:"bolticTable",viewOnly:b,title:"Table",required:!0,onTextInputChange:async(R,j)=>{R(!0),W([{field:"name",operator:"ILIKE",values:[j]}],R)},onAddButtonClick:q,buttonName:"Create New Table",options:a,loadingState:r,loadDataFromApi:async R=>{a?.length?R(!1):B(null,null,R)},handleChange:R=>{const j=a?.find($=>$?.id===R?.value)||null;I("properties.table",[j],{shouldValidate:!0}),(k.events||[]).map($=>$?.value).filter(Boolean).indexOf("table.button.triggered")!==-1&&G(j?.id)},name:"properties.table",control:w,validationRules:{validate:R=>!R||!Array.isArray(R)||R.length===0?"Table is required":!0},show:!0})})}),!Ot(k.table)&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.events",control:w,multiple:!0,renderFieldValue:R=>R?.map(j=>j?.value),meta:{options:F.map(R=>{const j=(k.events||[]).map(H=>H?.value).filter(Boolean),$=j.includes("table.field.updated"),Y=j.includes("table.record.updated"),z=$&&R.value==="table.record.updated"||Y&&R.value==="table.field.updated";return{...R,disabled:z}}),displayName:"Events",searchFieldPlaceholder:"Search",description:"Select Boltic table event(s) when you want to trigger the workflow.",placeholder:"Select Events"},validationRules:{validate:{required:R=>!R||R.length===0?"Events is required":!0}},viewOnly:b,id:"events",handleChange:R=>{const j=[...R.value],$=j.pop();j.includes($)?I("properties.events",j.filter(z=>z!==$).map(z=>({value:z})),{shouldValidate:!0}):I("properties.events",[...j.map(z=>({value:z})),{value:$}],{shouldValidate:!0})},renderValueUi:R=>R?.length>0&&R?.[0]?f.jsx(O.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:R.map(j=>F.find($=>$.value===j)).filter(j=>j?.title).map(j=>f.jsx(O.Chip,{label:j.title},j.title))}):f.jsx(O.Typography,{sx:{color:"neutral.solid.bg",fontSize:"14px",":hover":{opacity:.7}},children:"Select Events"}),renderOption:(R,j)=>f.jsxs(O.MenuItem,{value:j.value,disabled:j.disabled,sx:{p:"8px !important",mx:1,height:"auto","&.Mui-selected":{"& .MuiTypography-root":{color:$=>$.palette.primary.main}}},children:[f.jsx(O.Checkbox,{sx:{p:0},icon:f.jsx(Ue,{src:"ic_unchecked",width:16,height:16,sx:{path:{fill:n.palette.common.white}}}),checkedIcon:f.jsx(Ue,{src:"ic_checked",width:16,height:16}),checked:!!(Array.isArray(k.events)&&k.events.find($=>j.value===$.value))}),f.jsx(O.ListItemText,{primary:j.title,secondary:j.description})]},j.value)})}),L?.map(R=>R?.value).filter(Boolean).indexOf("table.button.triggered")!==-1&&M?.[0]&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.button",control:w,renderFieldValue:R=>R?.map(j=>j?.value),meta:{options:Mr(u),displayProps:{loading:o},displayName:"Trigger button",value:"",searchFieldPlaceholder:"Search",renderFieldValue:R=>u?.find(j=>j?.id===R?.[0]?.id)||null,placeholder:"Select Trigger Button"},renderValueUi:R=>f.jsx(O.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:R?.map(j=>Mr(u).find($=>$.value===j)).filter(j=>j?.title).map(j=>f.jsx(O.Chip,{label:j.title},j.title))}),handleChange:R=>{const{field:j,value:$}=R;Ot($)||I(j,[$],{shouldValidate:!0})},validationRules:{required:"Button is required",validate:R=>L?.some(j=>j?.value==="table.button.triggered")&&(!R||R.length==0)?"Trigger button is required":!0},viewOnly:b,id:"button",renderOption:(R,j)=>f.jsxs(O.MenuItem,{value:j.value,disabled:j.disabled,sx:{p:"8px !important",mx:1,height:"auto","&.Mui-selected":{"& .MuiTypography-root":{color:$=>$.palette.primary.main}}},children:[f.jsx(O.Checkbox,{sx:{p:0},checked:!!(Array.isArray(k.button)&&k.events.find($=>j.value===$.value))}),f.jsx(O.ListItemText,{primary:j.title,secondary:j.description})]},j.value)})}),L?.map(R=>R?.value).filter(Boolean).indexOf("table.field.updated")!==-1&&M?.[0]&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.field",control:w,meta:{options:Mr(u),displayName:"Trigger field",searchFieldPlaceholder:"Search for authentication type",displayProps:{loading:o},description:"Choose a field to trigger the workflow when it changes.",placeholder:"Select Trigger Field"},renderFieldValue:R=>R?.length>0&&u?.some(j=>j?.id===R[0]?.id)?R[0]?.id:"",validationRules:{validate:R=>L?.some(j=>j?.value==="table.field.updated")&&(!R||R.length==0)?"Field is required":!0},viewOnly:b,id:"field",required:!0,handleChange:R=>{const{field:j,value:$}=R,Y=u?.find(z=>z?.id===$)||null;Ot(Y)?I(j,null,{shouldValidate:!0}):I(j,[Y],{shouldValidate:!0})}})})})]})})});var dT={exports:{}},qFe=dT.exports,Jz;function KFe(){return Jz||(Jz=1,(function(e,t){(function(n,r){e.exports=r()})(qFe,(function(){var n="week",r="year";return function(i,o,s){var a=o.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(r).add(1,r).date(u),d=s(this).endOf(n);if(c.isBefore(d))return 1}var p=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(dT)),dT.exports}var ZFe=KFe();const JFe=Ur(ZFe);var fT={exports:{}},e6e=fT.exports,eX;function t6e(){return eX||(eX=1,(function(e,t){(function(n,r){e.exports=r()})(e6e,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},u=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(E){this[m]=+E}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(E){if(!E||E==="Z")return 0;var y=E.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v})(m)}],p=function(m){var E=l[m];return E&&(E.indexOf?E:E.s.concat(E.f))},h=function(m,E){var y,v=l.meridiem;if(v){for(var T=1;T<=24;T+=1)if(m.indexOf(v(T,0,E))>-1){y=T>12;break}}else y=m===(E?"pm":"PM");return y},A={A:[a,function(m){this.afternoon=h(m,!1)}],a:[a,function(m){this.afternoon=h(m,!0)}],Q:[i,function(m){this.month=3*(m-1)+1}],S:[i,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[o,c("day")],Do:[a,function(m){var E=l.ordinal,y=m.match(/\d+/);if(this.day=y[0],E)for(var v=1;v<=31;v+=1)E(v).replace(/\[|\]/g,"")===m&&(this.day=v)}],w:[s,c("week")],ww:[o,c("week")],M:[s,c("month")],MM:[o,c("month")],MMM:[a,function(m){var E=p("months"),y=(p("monthsShort")||E.map((function(v){return v.slice(0,3)}))).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(m){var E=p("months").indexOf(m)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(m){this.year=u(m)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(m){var E,y;E=m,y=l&&l.formats;for(var v=(m=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,P,k){var N=k&&k.toUpperCase();return P||y[k]||n[k]||y[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,M,B){return M||B.slice(1)}))}))).match(r),T=v.length,_=0;_<T;_+=1){var x=v[_],b=A[x],w=b&&b[0],D=b&&b[1];v[_]=D?{regex:w,parser:D}:x.replace(/^\[|\]$/g,"")}return function(I){for(var P={},k=0,N=0;k<T;k+=1){var L=v[k];if(typeof L=="string")N+=L.length;else{var M=L.regex,B=L.parser,Q=I.slice(N),V=M.exec(Q)[0];B.call(P,V),I=I.replace(V,"")}}return(function(q){var F=q.afternoon;if(F!==void 0){var G=q.hours;F?G<12&&(q.hours+=12):G===12&&(q.hours=0),delete q.afternoon}})(P),P}}return function(m,E,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var v=E.prototype,T=v.parse;v.parse=function(_){var x=_.date,b=_.utc,w=_.args;this.$u=b;var D=w[1];if(typeof D=="string"){var I=w[2]===!0,P=w[3]===!0,k=I||P,N=w[2];P&&(N=w[2]),l=this.$locale(),!I&&N&&(l=y.Ls[N]),this.$d=(function(Q,V,q,F){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*Q);var G=g(V)(Q),W=G.year,R=G.month,j=G.day,$=G.hours,Y=G.minutes,z=G.seconds,H=G.milliseconds,U=G.zone,X=G.week,J=new Date,te=j||(W||R?1:J.getDate()),ae=W||J.getFullYear(),re=0;W&&!R||(re=R>0?R-1:J.getMonth());var ue,Oe=$||0,Te=Y||0,se=z||0,ie=H||0;return U?new Date(Date.UTC(ae,re,te,Oe,Te,se,ie+60*U.offset*1e3)):q?new Date(Date.UTC(ae,re,te,Oe,Te,se,ie)):(ue=new Date(ae,re,te,Oe,Te,se,ie),X&&(ue=F(ue).week(X).toDate()),ue)}catch{return new Date("")}})(x,D,b,y),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),k&&x!=this.format(D)&&(this.$d=new Date("")),l={}}else if(D instanceof Array)for(var L=D.length,M=1;M<=L;M+=1){w[1]=D[M-1];var B=y.apply(this,w);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}M===L&&(this.$d=new Date(""))}else T.call(this,_)}}}))})(fT)),fT.exports}var n6e=t6e();const r6e=Ur(n6e);var pT={exports:{}},i6e=pT.exports,tX;function o6e(){return tX||(tX=1,(function(e,t){(function(n,r){e.exports=r()})(i6e,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,a=s.format;o.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=(function(d,p){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(h,A,g){var m=g&&g.toUpperCase();return A||p[g]||n[g]||p[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(E,y,v){return y||v.slice(1)}))}))})(l,u===void 0?{}:u);return a.call(this,c)}}}))})(pT)),pT.exports}var s6e=o6e();const a6e=Ur(s6e);var hT={exports:{}},l6e=hT.exports,nX;function u6e(){return nX||(nX=1,(function(e,t){(function(n,r){e.exports=r()})(l6e,(function(){return function(n,r,i){r.prototype.isBetween=function(o,s,a,l){var u=i(o),c=i(s),d=(l=l||"()")[0]==="(",p=l[1]===")";return(d?this.isAfter(u,a):!this.isBefore(u,a))&&(p?this.isBefore(c,a):!this.isAfter(c,a))||(d?this.isBefore(u,a):!this.isAfter(u,a))&&(p?this.isAfter(c,a):!this.isBefore(c,a))}}}))})(hT)),hT.exports}var c6e=u6e();const d6e=Ur(c6e);var AT={exports:{}},f6e=AT.exports,rX;function p6e(){return rX||(rX=1,(function(e,t){(function(n,r){e.exports=r()})(f6e,(function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return o.bind(this)(s);var u=this.$utils(),c=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}}));return o.bind(this)(c)}}}))})(AT)),AT.exports}var h6e=p6e();const A6e=Ur(h6e),iX=new Set;function oX(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
435
|
+
`;)i++;return r>=0&&i<e.length&&e[r]==='"'&&e[i]==='"'},kz=e=>{const t=[],n=/\{\{[^}]*\}\}/g;let r;for(;(r=n.exec(e))!==null;){const i=r[0],o=r.index,s=r.index+i.length,a=nFe(e,o,s),l=tFe(a);t.push({start:o,end:s,content:i,replacement:l,isInsideQuotes:a})}return t},Mz=(e,t)=>{let n=e,r=0;for(const i of t){const o=i.start+r,s=i.end+r;n=n.slice(0,o)+i.replacement+n.slice(s),r+=i.replacement.length-i.content.length}return n},rFe=e=>{const t=n=>{if(n.type==="object"&&n.children){const r=new Set;for(const i of n.children){const s=i.children?.[0]?.value;if(!s||typeof s!="string"||s==="__TEMPLATE_VAR__")continue;if(r.has(s))return!1;r.add(s);const a=i.children?.[1];if(a&&!t(a))return!1}}else if(n.type==="array"&&n.children){for(const r of n.children)if(!t(r))return!1}return!0};return t(e)},iFe=(e,t)=>{const n=e.trim();if(t.length!==1)return!1;const r=t[0];return n===r.content},oFe=(e,t,n=!0,r=!1,i=!1)=>e!=="json"?[]:jV(o=>{const s=o.state.doc.toString();if(s.trim()==="")return[];const a=[],l=kz(s),u=iFe(s,l),c=Mz(s,l),d=[],p=$m(c,d);if(r){if(u)return t&&t([]),[];for(const y of l)y.isInsideQuotes||a.push({from:y.start,to:y.end,severity:"error",message:`Template variable "${y.content}" must be quoted in JSON GUI. Use "${y.content}" instead.`});const h=s.trim(),A=[],g=$m(h,A),m=y=>!y||y.type!=="array"||!y.children?!1:y.children.every(v=>v.type==="object");((y,v)=>{if(y&&!v){if(y.type==="object")return;if(y.type==="array"){if(!i){a.push({from:0,to:s.length,severity:"error",message:'JSON GUI requires proper structure. Use format like {"key": "value"}'});return}m(y)||a.push({from:0,to:s.length,severity:"error",message:"When using an array at the root, it must be an array of objects."});return}a.push({from:0,to:s.length,severity:"error",message:'JSON GUI requires proper structure. Use format like {"key": "value"} or [{"key": "value"}].'})}else if(h&&h!=="")if(p&&(p.type==="object"||p.type==="array")){if(p.type==="object")return;if(p.type==="array"){if(!i){a.push({from:0,to:s.length,severity:"error",message:""});return}m(p)||a.push({from:0,to:s.length,severity:"error",message:"When using an array at the root, it must be an array of objects."});return}}else a.push({from:0,to:s.length,severity:"error",message:'JSON GUI requires proper key-value structure. Use format like {"key": "value"}.'})})(g,A.length>0)}for(const h of d){const A=eFe(h.error);let g=h.offset;for(const E of l){const y=E.content.length-E.replacement.length;h.offset>E.start&&(g+=y)}if(!l.some(E=>g>=E.start&&g<E.end||g+h.length>E.start&&g+h.length<=E.end||g<=E.start&&g+h.length>=E.end)){const E=o.state.doc.lineAt(g);a.push({from:g,to:g+h.length,severity:"error",message:`Syntax error: ${A} on line ${E.number}`})}}if(p&&n){const h=A=>{if(A.type==="object"&&A.children){const g=new Map;for(const m of A.children){const E=m.children?.[0],y=E?.value;if(!y||typeof y!="string"||y==="__TEMPLATE_VAR__")continue;if(g.has(y)){let T=E.offset+1;for(const x of l){const b=x.content.length-x.replacement.length;E.offset>x.start&&(T+=b)}if(!l.some(x=>T>=x.start&&T<x.end||T+y.length>x.start&&T+y.length<=x.end||T<=x.start&&T+y.length>=x.end)){const x=o.state.doc.lineAt(T);a.push({from:T,to:T+y.length,severity:"error",message:`Duplicate key "${y}" found on line ${x.number}. This may corrupt the JSON GUI data.`})}}else g.set(y,E);const v=m.children?.[1];v&&h(v)}}else if(A.type==="array"&&A.children)for(const g of A.children)h(g)};h(p)}return t&&t(a),a}),sFe=[],Fz={json:NH(),javascript:z2({jsx:!0,typescript:!0}),html:RH(),xml:OV(),plaintext:[],sql:pD(),python:KH(),graphql:sFe},aFe=e=>{const t=O.useTheme(),{showMenu:n,contextMenuElement:r}=OMe(),{value:i,onChange:o,onFocus:s,onBlur:a,language:l="plaintext",height:u="150px",suggestionsData:c={},placeholder:d,viewOnly:p=!1,className:h,error:A,errorMsg:g,codeEditorStyles:m={},showSuggestions:E,noDuplicateKeys:y=!0,enableJsonGuiValidation:v=!1,handleValidate:T,loading:_=!1,suggestionLabel:x,allowArrayAtRoot:b=!1,...w}=e,D=C.useMemo(()=>c&&typeof c=="object"&&Object.keys(c).length>0?c:{},[JSON.stringify(c)]),[I,P]=C.useState(null),k=C.useRef(null),N=C.useRef(null),L=ht.useDispatch(),M=C.useRef(null),B=C.useRef(null),[Q,V]=C.useState(!1),q=Dt.useNodes(),{canvasWorkflow:F,activityExecutionData:G}=ht.useSelector(Ae=>Ae.canvas),{WORKFLOW_URLS:W,ENTITY_ID:R="",analytics:j,openAddonModal:$,currentSubscription:Y}=wi(),{VORTEX_MAIN_URL:z}=W,H=Oo(),U=Tr(H),J=Tr(Pn.VERSION)||U,{setNodes:te,getEdges:ae}=Dt.useReactFlow(),{MCP_INTEGRATION_FORM:re}=oa(),ue=Ae=>{try{if(l!=="json")return!0;const fe=kz(Ae);if(v&&fe.length===1&&Ae.trim()===fe[0].content)return!0;const Se=Mz(Ae,fe),ge=[],ye=$m(Se,ge);return ye?ge.length>0?!1:y?rFe(ye):!0:!0}catch{return!1}};C.useEffect(()=>{if(B.current&&i!==B.current.state.doc.toString()){const Ae=B.current.hasFocus;B.current.dispatch({changes:{from:0,to:B.current.state.doc.length,insert:i}}),Ae&&requestAnimationFrame(()=>{B.current?.focus()})}},[i]),C.useEffect(()=>{if(!M.current)return;const Ae=Pt.theme({...QMe(t,m,A,g,e.size,p)}),fe=Pt.updateListener.of(je=>{try{if(je.docChanged&&!p){const et=je.state.doc.toString();(ue(et)||!v)&&o?.(et)}if((je.docChanged||je.selectionSet)&&!p)try{const et=je.state.doc.toString(),rt=je.state.selection.main.head;if(et.slice(0,rt).endsWith("")){const Ie=M.current,He=Ie?.querySelector(".cm-cursor"),Ve=document.getElementById("suggestion-popover"),_e=!!Ie?.closest('[data-testid$="-full-mode"]'),we=Ve&&Ve.isConnected;if(He&&I===null&&E&&!we)if(_e){const ee=new CustomEvent("suggestions-about-to-open",{detail:{shouldShift:!0}});window.dispatchEvent(ee);const de=()=>{const be=Ie?.querySelector(".cm-cursor"),Ge=document.getElementById("suggestion-popover");be&&!Ge&&I===null&&P(be),window.removeEventListener("dialog-reposition-complete",de)};window.addEventListener("dialog-reposition-complete",de),setTimeout(()=>{window.removeEventListener("dialog-reposition-complete",de);const be=Ie?.querySelector(".cm-cursor"),Ge=document.getElementById("suggestion-popover");be&&!Ge&&I===null&&P(be)},400)}else P(He)}else P(null)}catch{}}catch{}}),Se=Pt.domEventHandlers({focus:()=>{try{const je=B.current?.state.doc.toString()||"";if((ue(je)||!v)&&s?.(je),I===null&&E&&Object.keys(D).length>0){const et=M.current,rt=et?.querySelector(".cm-cursor"),nt=document.getElementById("suggestion-popover"),He=!!et?.closest('[data-testid$="-full-mode"]');if(rt&&!nt)if(He){const Ve=new CustomEvent("suggestions-about-to-open",{detail:{shouldShift:!0}});window.dispatchEvent(Ve);const Ee=()=>{const _e=et?.querySelector(".cm-cursor"),we=document.getElementById("suggestion-popover");_e&&!we&&I===null&&P(_e),window.removeEventListener("dialog-reposition-complete",Ee)};window.addEventListener("dialog-reposition-complete",Ee),setTimeout(()=>{window.removeEventListener("dialog-reposition-complete",Ee);const _e=et?.querySelector(".cm-cursor"),we=document.getElementById("suggestion-popover");_e&&!we&&I===null&&P(_e)},400)}else P(rt)}}catch{}return!1},blur:()=>{try{const je=B.current?.state.doc.toString()||"";try{(ue(je)||!v)&&a?.(je)}catch{}}catch{}return!1}}),ge=Fz[l]||Fz.plaintext;let ye=null;try{ye=ZMe(D,l)}catch{ye=()=>null}const $e=wr.create({doc:i,extensions:[PD,ge,Rz.of(l),_2({newGroupDelay:500}),kf.of(JMe),Hy({maxRenderedOptions:100,defaultKeymap:!0,icons:!0}),wr.languageData.of(()=>[{...Object.keys(D).length>0&&E&&{autocomplete:ye}}]),LMe,Ae,l==="json"?[oFe(l,T,y,v,b)]:[],WMe,fe,zMe,Pt.lineWrapping,LI(d||"Enter text here"),Se,wr.readOnly.of(!!p),Pt.editable.of(!p),...p?[Pt.contentAttributes.of({tabindex:"0"}),Pt.domEventHandlers({paste:je=>(je.preventDefault(),!0)}),kf.of([{key:"Ctrl-v",mac:"Cmd-v",run:()=>!0,preventDefault:!0},{key:"Ctrl-x",mac:"Cmd-x",run:()=>!0,preventDefault:!0}])]:[],CV({top:!0})]}),Qe=new Pt({state:$e,parent:M.current});return B.current=Qe,kMe(Qe,n),()=>Qe.destroy()},[D,l]),C.useEffect(()=>()=>{N.current&&clearTimeout(N.current),B?.current?.dispatch({changes:{from:0,to:B.current.state.doc.length,insert:""}}),B.current?.destroy()},[]);const Oe=async Ae=>{const fe=[...Array.isArray(q)?q:[]],Se={nodes:[cc({...Ae})],result:U0(F,q,G,Ae?.id,ae())};V(!0);const{success:ge,isError:ye,data:$e}=await $0(Ae,L,z,R,fe,q,Se,N,j,J,$,Y);return ge&&!ye?(V(!1),Ca(te,Ae,{...Ae.data.blt_node_states,test:"completed",node:"completed"}),ge):(ye&&(delete $e.singleRunFailure,Ca(te,Ae,{...Ae.data.blt_node_states,test:"error",node:"failed"}),Object.keys($e).forEach(je=>{UO($e[je]).forEach(rt=>{L({type:zn,payload:{open:!0,title:typeof rt!="string"?JSON.stringify(rt):rt,type:"error",width:"30rem",duration:3e3}})})})),V(!1),!1)},Te=async Ae=>{const fe=q?.find(Se=>Se?.id===Ae);fe&&await Oe(fe)},se=Ae=>{L({type:su,payload:{id:Ae}})},ie=async({label:Ae})=>{const fe=B.current;if(!fe)return;const Se=fe.state.doc.length,ge=fe.state.selection.main,ye=Math.min(ge.from,Se),$e=Math.min(ge.to,Se),Qe=["javascript","typescript","python"].includes(l)?`${Ae}`:`{{${Ae}}}`;fe.dispatch({changes:{from:ye,to:$e,insert:Qe},selection:{anchor:ye+Qe.length},scrollIntoView:!0}),setTimeout(()=>{fe.focus()},100)},Z=C.useCallback(()=>{const Ae=B.current;Ae&&!p&&(Du(Ae),Ae.focus())},[p]),K=C.useCallback(()=>{const Ae=B.current;Ae&&!p&&(Fa(Ae),Ae.focus())},[p]),ne=C.useCallback(()=>{const Ae=B.current;return!Ae||p?!1:wh(Ae.state)>0},[p]),le=C.useCallback(()=>{const Ae=B.current;return!Ae||p?!1:Ih(Ae.state)>0},[p]),pe=C.useMemo(()=>f.jsx(O.Typography,{variant:"mdBold",children:x?`Insert data for ${x}`:"Insert data"}),[x]);return C.useImperativeHandle(w.ref,()=>({undo:Z,redo:K,canUndo:ne,canRedo:le,focus:()=>B.current?.focus(),getContent:()=>B.current?.state.doc.toString()||""}),[Z,K,ne,le]),f.jsxs(O.Stack,{style:{width:"100%"},ref:k,spacing:2,...w,children:[_?f.jsx(O.Stack,{justifyContent:"center",alignItems:"center",sx:{height:u,border:"1px solid",borderColor:t.palette.grey[300],borderRadius:2,backgroundColor:t.palette.background.default},children:f.jsx(hi,{size:24})}):f.jsx(O.Stack,{ref:M,className:`rounded-lg overflow-hidden ${h}`,style:{height:u,width:"100%",position:"relative"},children:!re&&f.jsx(Cw,{title:x?pe:"",anchorEl:I,suggestionsData:c,setAnchorEl:()=>P(null),ref:k,handleSuggestionClick:ie,runActivity:Te,handleCompleteSetup:se,isLoading:Q})}),r]})};function lFe(e,t){const n=e.value===t.value&&e.language===t.language&&e.viewOnly===t.viewOnly&&e.height===t.height&&e.className===t.className&&e.error===t.error&&e.errorMsg===t.errorMsg&&e.showSuggestions===t.showSuggestions,r=e.suggestionsData,i=t.suggestionsData,o=r==null&&i==null||(typeof r=="object"&&typeof i=="object"?Object.keys(r).length===Object.keys(i).length&&Object.keys(r).every(s=>JSON.stringify(r[s])===JSON.stringify(i[s])):r===i);return n&&o}const EP=C.memo(aFe,lFe),Bz={xs:{height:"36px"},sm:{height:"64px"},md:{height:"218px"},lg:{height:"320px"},xl:{height:"440px"},xxl:{height:"560px"}},uFe={xs:{height:"16",width:"16",padding:"2px !important"},sm:{height:"16",width:"16",padding:"4px !important"},md:{height:"20",width:"20",padding:"6px !important"},lg:{height:"20",width:"20",padding:"6px !important"},xl:{height:"20",width:"20",padding:"6px !important"},xxl:{height:"20",width:"20",padding:"6px !important"}},cFe={xs:{right:"40px",top:"6px"},sm:{right:"40px",top:"6px"},md:{right:"48px",top:"15px"},lg:{right:"48px",top:"15px"},xl:{right:"48px",top:"15px"},xxl:{right:"48px",top:"15px"}},dFe=({copied:e,theme:t,size:n})=>{const{padding:r,height:i,width:o}=uFe[n];return f.jsx(O.Button,{variant:"text",type:"button",sx:{position:"relative",minWidth:0,right:8,top:0,p:r,border:1,borderRadius:1,backgroundColor:t.palette.common.white,"&:hover":{backgroundColor:t.palette.common.white}},children:f.jsx("svg",{width:o,height:i,focusable:"false","aria-hidden":"true",viewBox:"0 0 24 24",children:e?f.jsx("path",{fill:t.palette.primary.main,d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.24 11.28L9.69 11.2c-.38-.39-.38-1.01 0-1.4.39-.39 1.02-.39 1.41 0l1.36 1.37 4.42-4.46c.39-.39 1.02-.39 1.41 0 .38.39.38 1.01 0 1.4l-5.13 5.17c-.37.4-1.01.4-1.4 0zM3 6c-.55 0-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1-.45-1-1V7c0-.55-.45-1-1-1z"}):f.jsx("path",{fill:t.palette.common.black,d:"M15 20H5V7c0-.55-.45-1-1-1s-1 .45-1 1v13c0 1.1.9 2 2 2h10c.55 0 1-.45 1-1s-.45-1-1-1zm5-4V4c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2zm-2 0H9V4h9v12z"})})})},fFe=C.forwardRef(({activityType:e,language:t="javascript",value:n="",enableAskAI:r=!1,handleChange:i,handleFocus:o=()=>{},handleBlur:s=()=>{},height:a="",showExpandOption:l=!1,showHtmlPreview:u=!1,showCopyToClipboard:c=!1,VORTEX_MAIN_URL:d,ENTITY_ID:p,suggestionsData:h={},loading:A=!1,size:g="xs",label:m="",rightLabel:E=null,required:y=!1,rightLabelAlignment:v="center",placeholder:T="",helperText:_="",errorMsg:x="",error:b=!1,showSuggestions:w=!0,id:D="",viewOnly:I=!1,readOnly:P=!1,enableJsonGuiValidation:k=!1,handleValidate:N,sx:L={},codeEditorStyles:M={},suggestionLabel:B="",options:Q,...V},q)=>{const F=ht.useDispatch(),G=O.useTheme(),[W,R]=C.useState(!1),[j,$]=C.useState(!1),[Y,z]=C.useState(!1),[H,U]=C.useState(!1),[X,J]=C.useState(""),[te,ae]=C.useState(!1),[re,ue]=C.useState(""),[Oe,Te]=C.useState(!1),[se,ie]=C.useState(!1),[Z,K]=C.useState(!1);C.useEffect(()=>{W||K(!1)},[W]),C.useEffect(()=>{if(!W)return;let ge=Z,ye=null,$e=!1,Qe=!1;const je=()=>{const _e=window.innerWidth,de=500+32,be=60,Ge=_e>=1200?800:0,Ne=_e-de;if(_e<600)return"75%";if(_e<960){const gt=Math.min(Ne,_e*.55)/_e*100,St=Math.max(gt,be),De=_e*St/100;return`${(Ge>0?Math.max(De,Ge):De)/_e*100}%`}else{const gt=Math.min(Ne,_e*.45)/_e*100;let St=gt;gt<be&&_e*be/100+de<=_e&&(St=be);const De=_e*St/100;return`${(Ge>0?Math.max(De,Ge):De)/_e*100}%`}},et=()=>window.innerWidth>=1200?"800px":"",rt=(_e=!1)=>{ye&&clearTimeout(ye),ye=setTimeout(()=>{const we=document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper"),ee=we?.closest(".MuiDialog-container");if(we&&ee){we.style.transition="width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1)",ee.style.transition="justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)";const de=document.getElementById("suggestion-popover"),be=de!==null&&window.getComputedStyle(de).display!=="none"&&window.getComputedStyle(de).visibility!=="hidden";if(be!==$e||be!==ge){$e=be,be&&!ge&&(ge=!0,K(!0));const Ge=window.innerWidth;if((ge||be)&&Ge>=1200){const Ne=je();we.style.width=Ne,we.style.maxWidth=Ne,we.style.minWidth=et(),ee.style.justifyContent="flex-end",_e&&de&&!be&&(Qe=!0,de.style.visibility="hidden",de.style.opacity="0",we.addEventListener("transitionend",()=>{if(de){de.style.visibility="",de.style.opacity="";const Fe=new Event("resize");window.dispatchEvent(Fe)}Qe=!1},{once:!0}))}else Ge<1200?be&&!ge&&(ge=!0,K(!0)):(we.style.width="",we.style.maxWidth="",ee.style.justifyContent="")}}},50)},nt=()=>{if(window.innerWidth<1200){ge||(ge=!0,K(!0));const we=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(we);return}if(ge){const we=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(we)}else{const we=document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper"),ee=we?.closest(".MuiDialog-container");if(we&&ee){we.style.transition="width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1)",ee.style.transition="justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)";const de=je();we.style.width=de,we.style.maxWidth=de,we.style.minWidth=et(),ee.style.justifyContent="flex-end",ge=!0,K(!0);const be=Ge=>{const Ne=Ge;if((Ne.target===we||Ne.target===ee)&&(Ne.propertyName==="width"||Ne.propertyName==="max-width"||Ne.propertyName==="justify-content")){const Fe=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(Fe),we.removeEventListener("transitionend",be),ee.removeEventListener("transitionend",be)}};we.addEventListener("transitionend",be),ee.addEventListener("transitionend",be),setTimeout(()=>{const Ge=new CustomEvent("dialog-reposition-complete",{detail:{repositioned:!0}});window.dispatchEvent(Ge),we.removeEventListener("transitionend",be),ee.removeEventListener("transitionend",be)},350)}}};window.addEventListener("suggestions-about-to-open",nt);const Ie=setTimeout(()=>{requestAnimationFrame(()=>{const _e=document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper"),we=_e?.closest(".MuiDialog-container");_e&&we&&(_e.style.transition="width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1)",we.style.transition="justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)"),rt()})},0),He=new MutationObserver(_e=>{if(_e.some(ee=>{const de=ee.target;return de.id==="suggestion-popover"||de.closest("#suggestion-popover")!==null||ee.type==="childList"&&(Array.from(ee.addedNodes).some(be=>be.id==="suggestion-popover")||Array.from(ee.removedNodes).some(be=>be.id==="suggestion-popover"))})&&!Qe){const Ge=(document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper")?.closest(".MuiDialog-container")?.style.justifyContent||"")!=="flex-end"&&!ge;rt(Ge)}});He.observe(document.body,{childList:!0,subtree:!1,attributes:!1});const Ve=setInterval(()=>{document.querySelector('[data-testid$="-full-mode"]')?.closest(".MuiDialog-paper")&&!Qe&&rt()},500),Ee=()=>{(Z||ge)&&rt()};return window.addEventListener("resize",Ee),()=>{clearTimeout(Ie),ye&&clearTimeout(ye),clearInterval(Ve),He.disconnect(),window.removeEventListener("resize",Ee),window.removeEventListener("suggestions-about-to-open",nt)}},[W,Z]);const ne=()=>{R(!1)},le=()=>{re!==""&&i?.(re),R(!1)},pe=()=>{z(!1)},Ae=()=>{re!==""&&i?.(re),Te(!1),U(!1),ue(""),J("")},fe=()=>{Te(!1),U(!1),ue(""),J("")},Se=async()=>{ae(!0),ie(!1),Te(!1);try{const ge=Yt(d||"",`/v1.0/${p}`,"/utility/generate"),ye=await Xt.post(ge,{data:{messages:KMe(e,X,t)},headers:{"Content-Type":"application/json"}});if(ye.data.data){const $e=typeof ye.data.data=="string"?ye.data.data.trim():"";$e.includes("GENERATION_ERROR")?Te(!0):(Te(!1),ue($e))}}catch(ge){cn(ge,F)}finally{ie(!0),ae(!1)}};return C.useEffect(()=>{j&&setTimeout(()=>{$(!1)},2e3)},[j]),C.useEffect(()=>{(!X||X==="")&&(ue(""),Te(!1))},[se,X]),f.jsxs(O.FormControl,{fullWidth:!0,children:[(m||E||_)&&f.jsxs(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:v,children:[m&&f.jsx(Or,{label:m,description:_,required:y}),E&&f.jsx(O.Typography,{variant:G.typography["components-inputs-label-sm"],pb:"0.25rem",color:"neutral.80",children:E})]}),f.jsxs(O.Box,{sx:{position:"relative",width:"100%",height:a||Bz[g].height,opacity:I&&P?.6:1,'&:has(.cm-panel.cm-search) [data-testid="button-copy-code"]':{top:"42px !important"},...L},ref:q,"data-testid":D,children:[l&&g!=="xs"&&g!=="sm"&&f.jsx(O.Tooltip,{title:"Expand",placement:"top",arrow:!0,children:f.jsx(O.Box,{onClick:()=>{R(!0)},sx:{position:"absolute",right:"16px",top:c?"48px":"16px",zIndex:6,cursor:"pointer"},"data-testid":"button-expand-editor",children:f.jsx(Ue,{src:"ic_maximize",width:"16px",height:"16px",fill:G.palette.neutral.solid.bg})})}),r&&g!=="xs"&&g!=="sm"&&f.jsx(O.Box,{onClick:()=>!I&&U(!0),sx:{position:"absolute",right:"16px",bottom:"10px",zIndex:6,cursor:"pointer",opacity:I&&P?.6:1},"data-testid":"button-ask-ai",children:f.jsx(O.Tooltip,{title:"Ask AI",children:f.jsx("img",{src:"https://cdn.pixelbin.io/v2/fyndcloud/original/icons/genai_icon.svg",width:32,height:32})})}),c&&f.jsx(O.Tooltip,{title:"Copy to clipboard",placement:"top",arrow:!0,children:f.jsx(O.Box,{onClick:()=>{$(!0),cd(n||"")},sx:{position:"absolute",right:"0px",top:g==="xs"||g==="sm"?"6px":"16px",zIndex:1e3,cursor:"pointer"},"data-testid":"button-copy-code",children:f.jsx(dFe,{copied:j,theme:G,size:g})})}),u&&f.jsx(O.Tooltip,{title:"Preview",placement:"top",arrow:!0,children:f.jsx(O.Box,{onClick:()=>z(!0),sx:{position:"absolute",zIndex:999,cursor:"pointer",...c||l?cFe[g]:{right:"12px",top:"6px"}},children:f.jsx(Ue,{src:"ic_visibility",height:"20px",width:"20px"})})}),f.jsx(EP,{language:t,value:n||"",onChange:i,onFocus:o,onBlur:ge=>s(ge||""),suggestionsData:h,showSuggestions:w,placeholder:T,height:a||Bz[g].height,viewOnly:I||P||(Q?.readOnly??!1),className:D,errorMsg:x,error:b,codeEditorStyles:M,enableJsonGuiValidation:k,handleValidate:N,loading:A,suggestionLabel:B,size:g,...V})]}),f.jsx(O.Stack,{children:b&&x&&f.jsx(O.FormHelperText,{component:"span",error:!0,dangerouslySetInnerHTML:{__html:ro(x)}})}),f.jsx(vo,{open:W,handleClose:()=>{le(),ne()},disableBackdropClick:!0,title:"Editor",content:f.jsxs(O.Box,{sx:{width:"100%",position:"relative"},"data-testid":`${D}-full-mode`,children:[f.jsx(EP,{language:t,value:n||"",onChange:i,placeholder:T,height:"70vh",suggestionsData:h,showSuggestions:w,viewOnly:I||P||(Q?.readOnly??!1),className:`${D}-full-mode`,errorMsg:x,error:b,codeEditorStyles:M,enableJsonGuiValidation:k,handleValidate:N,loading:A,size:"xl",...V}),r&&f.jsx(O.Box,{onClick:()=>!I&&U(!0),sx:{position:"absolute",right:"16px",bottom:"16px",zIndex:1e3,cursor:"pointer",opacity:I?.6:1},children:f.jsx(O.Tooltip,{title:"Ask AI",children:f.jsx("img",{src:"https://cdn.pixelbin.io/v2/fyndcloud/original/icons/genai_icon.svg",width:32,height:32})})})]})}),f.jsx(vo,{open:H,handleClose:()=>{fe()},title:"Generate using AI",content:re===""?f.jsxs(O.Box,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[f.jsx(O.Typography,{sx:{mb:"8px"},children:"Use AI to generate content for this step. Write a prompt below to get started. You can reference prior step data in your prompt."}),f.jsxs(O.Grid,{children:[f.jsx(O.Typography,{variant:"smBold",sx:{marginBottom:"8px",display:"block"},children:"User Prompt*"}),f.jsx(io,{parent:"autoComplete",name:"prompt",size:"md",sx:{fontWeight:400},placeholder:t==="javascript"||t==="python"?e&&Lz[e][t]:e&&Lz[e].placeholder,fullWidth:!0,multiline:!0,rows:9,id:"message",onChange:ge=>{J(ge.target.value)},value:X,required:!0}),Oe&&f.jsx(O.Box,{sx:{color:G.palette.primary.main,fontWeight:500},children:"OpenAI Prompt Error"})]}),f.jsxs(O.Box,{gap:2,sx:{display:"flex",p:3,pb:0,alignItems:"Center",justifyContent:"center"},children:[f.jsx(O.Button,{type:"submit",disabled:te||!X,variant:"contained",onClick:Se,sx:{fontSize:"14px",boxShadow:ge=>ge.shadows[0],padding:"2px 16px"},endIcon:te?f.jsx(O.CircularProgress,{color:"inherit",size:20}):null,"data-testid":"button-ai-generate",children:"Generate"}),f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:()=>{U(!1),J(""),ue("")},sx:{textTransform:"none"},"data-testid":"button-ai-cancel",children:"Cancel"})]})]}):f.jsxs(O.Box,{sx:{width:"100%",display:"flex",flexDirection:"column"},children:[f.jsx(O.Box,{sx:{width:"100%",position:"relative",borderRadius:"4px",border:`1px solid ${G.palette.grey[200]}`},children:f.jsx(O.Box,{sx:{p:1},"data-testid":`${D}-askAI`,children:f.jsx(EP,{language:t,value:re||"",onChange:ge=>{ue(ge)},height:"27vh",viewOnly:!!re||I,showSuggestions:w,className:`${D}-askAI`,errorMsg:x,error:b,codeEditorStyles:M,enableJsonGuiValidation:k,handleValidate:N,loading:A,suggestionLabel:B,size:"lg",...V})})}),Oe&&f.jsx(O.Box,{sx:{color:G.palette.primary.main,fontWeight:500},children:"OpenAI Prompt Error"}),f.jsxs(O.Grid,{container:!0,spacing:2,children:[f.jsx(O.Typography,{variant:"smMedium",sx:{marginBottom:"8px",display:"block",mt:1},children:"Request a quick adjustment..."}),f.jsxs(O.Grid,{container:!0,alignItems:"center",spacing:2,children:[f.jsx(O.Grid,{xs:10,sx:{p:0},children:f.jsx(io,{parent:"autoComplete",name:"prompt",sx:{fontWeight:400,width:"100%"},placeholder:"Modify your prompt here",fullWidth:!0,id:"message",onChange:ge=>{J(ge.target.value)},value:X,required:!0})}),f.jsx(O.Grid,{item:!0,xs:2,sx:{paddingTop:"0 !important"},children:f.jsx(O.Button,{disabled:te||!X,type:"submit",variant:"contained",onClick:Se,sx:{fontSize:"14px",boxShadow:ge=>ge.shadows[0],height:"36px",width:"100%"},children:"Apply"})})]})]}),f.jsxs(O.Box,{gap:2,sx:{display:"flex",p:3,pb:0,alignItems:"Center",justifyContent:"center"},children:[f.jsx(O.Button,{disabled:te,type:"submit",variant:"contained",onClick:Ae,sx:{fontSize:"14px",boxShadow:ge=>ge.shadows[0],padding:"2px 16px"},endIcon:te?f.jsx(O.CircularProgress,{color:"inherit",size:20}):null,children:"Accept"}),f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:()=>{ue("")},sx:{textTransform:"none"},children:"Discard"})]})]})}),f.jsx(vo,{open:Y,handleClose:pe,title:"Preview",variant:"xlarge",content:f.jsx(O.Box,{sx:{width:"100%",height:"600px",position:"relative",borderRadius:"4px",border:`1px solid ${G.palette.grey[200]}`},children:f.jsx("iframe",{title:"HTML Preview",srcDoc:n||"",sandbox:"allow-scripts",style:{width:"100%",height:"100%",border:"none"}})})})]})});function pFe(e,t){const n=e.value===t.value&&e.language===t.language&&e.viewOnly===t.viewOnly&&e.height===t.height&&e.size===t.size&&e.showCopyToClipboard===t.showCopyToClipboard&&e.showSuggestions===t.showSuggestions&&e.error===t.error&&e.errorMsg===t.errorMsg&&e.id===t.id,r=e.suggestionsData,i=t.suggestionsData,o=r==null&&i==null||(typeof r=="object"&&typeof i=="object"?Object.keys(r).length===Object.keys(i).length&&Object.keys(r).every(s=>JSON.stringify(r[s])===JSON.stringify(i[s])):r===i);return n&&o}const Do=C.memo(gc(fFe),pFe),jz=Object.freeze(Object.defineProperty({__proto__:null,default:Do},Symbol.toStringTag,{value:"Module"})),$z=e=>f.jsx(Ue,{...e,sx:{"&.MuiSelect-icon":{top:"auto",mr:"0.25rem",pointerEvents:"none"}},src:"ic_arrow_down",width:20,height:20}),hFe=({value:e,content:t,onChange:n,triggerHelpData:r,selectedMethod:i,setSelectedMethod:o,setSelectedLanguage:s,excludeUrlLanguage:a=!1})=>{const l=O.useTheme();return f.jsxs(O.Stack,{alignItems:"center",justifyContent:"space-between",p:1.5,direction:"row",children:[f.jsx(O.Typography,{variant:"smNormal",color:l.palette.text.secondary,children:"Use below code to trigger this workflow"}),f.jsxs(O.Stack,{direction:"row",gap:1.5,alignItems:"center",children:[f.jsx(O.Select,{labelId:"method-select-label",value:r?.methods?.includes(i)?i:"",label:"Method",onChange:u=>{const c=u.target.value;o(c);const d=Object.keys(r[c]||{});s(d[0])},IconComponent:$z,MenuProps:{PaperProps:{style:{padding:8},"& li":{p:0}}},sx:{p:0,border:"none",minHeight:0,"& fieldset":{border:"none"},boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:0},"& .MuiSelect-select":{py:0},height:"auto","& .MuiSelect-outlined":{display:"flex",gap:.5},"& .MuiStack-root > svg":{width:14,height:14},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:0}},children:r?.methods?.map(u=>f.jsx(O.MenuItem,{value:u,children:u.toUpperCase()},u))}),f.jsx(O.Select,{sx:{p:0,border:"none",minHeight:0,"& fieldset":{border:"none"},boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:0},"& .MuiSelect-select":{py:0},height:"auto","& .MuiSelect-outlined":{display:"flex",gap:.5},"& .MuiStack-root > svg":{width:14,height:14},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:0}},value:e,label:"Age",onChange:n,IconComponent:$z,MenuProps:{PaperProps:{style:{padding:8},"& li":{p:0}}},children:Nue.filter(u=>!(a&&u.value==="URL")).map(u=>f.jsxs(O.MenuItem,{value:u.value,sx:{padding:"6px",marginTop:.5},children:[f.jsx(oh,{src:Lue[u.label],alt:u.label,asHtmlElement:!0}),u.label]},u.value))}),f.jsx(O.Box,{width:24,height:24,onClick:u=>{u.stopPropagation(),cd(t)},sx:{"& > span":{border:`1px solid ${l.palette.grey.outlined.border}`,borderRadius:1},cursor:"pointer"},children:f.jsx(Ue,{src:"ic_copy",width:24,height:24})})]})]})},AFe=({VORTEX_MAIN_URL:e,ENTITY_ID:t,viewOnly:n=!1,excludeUrlLanguage:r=!1})=>{const i=ht.useDispatch(),o=O.useTheme(),{getNodes:s}=Dt.useReactFlow(),a=s(),{trigger_help:l,workflow:u}=ht.useSelector(_=>_.workflows),[c,d]=C.useState(""),[p,h]=C.useState("get"),[A,g]=C.useState({}),m=Tr(),E=Tr("version");C.useEffect(()=>{if(!Ot(l)){const _={},x=[];l?.items?.forEach(D=>{x.push(D.title),D.snippets.forEach(I=>{_[D.title]||(_[D.title]={}),_[D.title][I.title]=I.value})}),g({..._,methods:x}),h(x[0]);const b=Object.keys(_[x[0]]||{}),w=r?b.find(D=>D!=="URL")??b[0]:b[0];d(w)}},[l]),C.useEffect(()=>{const _=a.find(x=>x.type===xt.TRIGGER);!Ot(u)&&(_?.data?.type===Ke.WEBHOOK||_?.data?.type===Ke.HTTP)&&(E||m)&&i(Fb(E||m,e,t))},[]);const y=_=>{d(_.target.value)},v=a.find(_=>_.type===xt.TRIGGER),T=v?.data?.type===Ke.WEBHOOK||v?.data?.type===Ke.HTTP;return f.jsx(O.Box,{sx:{mt:2,"& .MuiAccordionSummary-content":{margin:0,borderRadius:2},"& .MuiButtonBase-root.MuiAccordionSummary-root":{px:1.5,py:"10.5px",borderRadius:"8px 8px 0 0",backgroundColor:o.palette.white.smoke},borderRadius:2},children:f.jsxs(O.Box,{sx:{"& > .MuiBox-root > .MuiBox-root > .MuiFormControl-root > .MuiBox-root":{border:"none",p:0},border:`1px solid ${o.palette.grey[300]}`,borderRadius:2},children:[f.jsx(hFe,{value:c,content:A?.[p]?.[c]||"",onChange:y,triggerHelpData:A,selectedMethod:p,setSelectedMethod:h,setSelectedLanguage:d,excludeUrlLanguage:r}),f.jsx(O.Box,{sx:{width:"100%"},children:f.jsx(O.Box,{sx:{minHeight:"300px",overflowX:"auto",borderTop:`1px solid ${o.palette.grey[300]}`,"& > .MuiStack-root > .MuiBox-root":{m:0},"& .monaco-editor .overflow-guard":{borderRadius:"0 0 8px 8px"}},children:f.jsx(Do,{viewOnly:!0,readOnly:n&&T,height:"300px",language:c.toLowerCase(),value:A?.[p]?.[c]||"",handleChange:()=>{},size:"md",loading:!l,codeEditorStyles:{border:"none"},showSuggestions:!1})})})]})})},mFe=({VORTEX_MAIN_URL:e,ENTITY_ID:t,triggerType:n})=>{const r=O.useTheme(),i=ht.useDispatch(),{trigger_help:o,workflow:s}=ht.useSelector(A=>A.workflows),a=Tr(),l=Tr("version"),[u,c]=C.useState(""),[d,p]=C.useState("");C.useEffect(()=>{!Ot(s)&&(l||a)&&i(Fb(l||a,e,t))},[]),C.useEffect(()=>{if(!Ot(o)){const A=o?.items||[];for(const g of A){const m=g.snippets?.find(E=>E.title==="URL");if(m?.value){c(m.value),p(g.title.toUpperCase());break}}}},[o]);const h=()=>{u&&navigator.clipboard.writeText(u).then(()=>{i({type:zn,payload:{open:!0,title:"Copied to clipboard",type:"success"}})})};return f.jsxs(O.Stack,{gap:1,sx:{background:r.palette.background.paper,borderRadius:2,p:1,border:`1px solid ${r.palette.grey[300]}`},children:[f.jsxs(O.Stack,{gap:.3,children:[f.jsx(O.Typography,{variant:"smSemiBold",color:r.palette.text.primary,children:"Your webhook URL"}),f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.secondary,children:"You'll need to configure your application with this workflow's webhook URL."})]}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:1.5,sx:{background:r.palette.white.smoke,border:`1px solid ${r.palette.grey[300]}`,borderRadius:1,pl:1.5,pr:1,py:.75},children:[f.jsx(O.Box,{component:"img",src:"https://cdn.pixelbin.io/v2/fyndcloud/original/url.svg",alt:"webhook",sx:{width:20,height:20,flexShrink:0}}),f.jsx(O.Tooltip,{title:u||"",arrow:!0,placement:"top",disableHoverListener:!u,children:f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.secondary,sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:u||"Generating webhook URL…"})}),f.jsx(O.Tooltip,{title:"Copy URL",arrow:!0,placement:"top",children:f.jsx("span",{children:f.jsx(O.IconButton,{size:"small",onClick:h,disabled:!u,sx:{"& svg path, & svg g path":{fill:r.palette.primary.main},"&:hover":{backgroundColor:`${r.palette.primary.main}14`,"& svg path, & svg g path":{fill:r.palette.primary.light}}},children:f.jsx(Ue,{src:"ic_copy",width:18,height:18})})})})]}),f.jsxs(O.Typography,{variant:"xsNormal",color:r.palette.text.tertiary,children:["We've generated a custom webhook URL for this workflow. Try this URL ",n===Ke.WEBHOOK&&d&&f.jsxs(f.Fragment,{children:["with ",f.jsx(O.Box,{component:"span",sx:{fontWeight:600,color:r.palette.primary.main},children:d})," method "]}),"to send data and trigger your workflow automatically."]})]})},gFe=["Basic","Advanced"],EFe=({type:e,name:t,ENTITY_ID:n,VORTEX_MAIN_URL:r,loading:i,activityExecutionList:o,nodeId:s,integrationSlug:a,integrationType:l,activityType:u,viewOnly:c=!1})=>{const d=O.useTheme(),[p,h]=C.useState("Basic");return e===Ke.WEBHOOK||e===Ke.HTTP?f.jsxs(O.Stack,{gap:2,children:[f.jsxs(O.Stack,{justifyContent:"center",gap:1.5,children:[f.jsx(O.Typography,{variant:"lgSemiBold",color:d.palette.text.primary,children:"Test"}),f.jsxs(O.Stack,{gap:.75,children:[f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.secondary,children:"Test your trigger"}),f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.tertiary,children:"To test/run your workflow, configure your application with the webhook URL or use the code snippet below to send a request to the workflow's trigger endpoint."})]})]}),f.jsx(ss,{variant:"normal",width:"max-content",tabs:gFe.map(A=>({title:A})),selectedTab:p,setSelectedTab:A=>h(A),sx:{width:"max-content"}}),p==="Basic"&&f.jsx(mFe,{VORTEX_MAIN_URL:r,ENTITY_ID:n,triggerType:e}),p==="Advanced"&&f.jsx(O.Box,{sx:{"& > .MuiBox-root":{mt:0}},children:f.jsx(AFe,{ENTITY_ID:n,VORTEX_MAIN_URL:r,viewOnly:c,excludeUrlLanguage:!0})})]}):i?f.jsx(MF,{width:"100%",height:44,count:3,backgroundColor:d.palette.white.smoke}):o.length===0?f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.Typography,{variant:"lgSemiBold",color:d.palette.text.secondary,children:"Test"}),f.jsx(O.Stack,{alignItems:"flex-start",sx:{border:`1px solid ${d.palette.grey.outlined.border}`,backgroundColor:d.palette.white.smoke,height:70,borderRadius:"8px",padding:1.5},children:f.jsxs(O.Stack,{direction:"row",gap:1,sx:{...hf,alignItems:"flex-start"},children:[f.jsx(Ue,{src:"ic_info_filled"}),f.jsxs(O.Stack,{gap:.75,children:[!au.includes(e)&&f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.primary,children:"No recent tests available"}),f.jsx(O.Typography,{variant:"smNormal",color:d.palette.text.tertiary,children:Y5.includes(e)?"Testing is not required for triggers as they are initiated by external events or schedules.":q5.includes(e)?"Testing is not required for this step as it is a control flow or system configuration that does not support direct testing.":"Please test using the Test step button on the bottom"})]})]})})]}):f.jsxs(O.Stack,{justifyContent:"center",gap:2,children:[f.jsx(O.Typography,{variant:"lgSemiBold",color:d.palette.text.primary,children:"Test"}),f.jsx(QAe,{ENTITY_ID:n,VORTEX_MAIN_URL:r,nodeId:s,items:o,integrationSlug:a,integrationType:l,name:t,activityType:u})]})},OFe=e=>{const{ENTITY_ID:t,VORTEX_MAIN_URL:n,selectedNode:r,activityExecutionList:i,setActivityExecutionList:o,loading:s,fetchActivityExecutions:a,viewOnly:l=!1}=e,{data:{type:u,name:c},id:d}=r,p=ad(r?.data);return C.useEffect(()=>(a(),()=>{o([])}),[d,u]),f.jsx(O.Stack,{overflow:"auto",height:"calc(100vh - 212px)",children:f.jsx(O.Box,{mt:.5,children:f.jsx(EFe,{type:u,ENTITY_ID:t,VORTEX_MAIN_URL:n,loading:s,activityExecutionList:i,nodeId:d,name:c,integrationSlug:r?.data?.properties?.integration_slug||"",integrationType:u,activityType:p,viewOnly:l})})})},Wd=["resource","operation","secret","config","credential_id","slack_auth_id","mode","gmail_config_id","event","integration_slug","custom.query_params","custom.state_params","custom.headers","custom.body"],yFe=e=>{const t={"not-configured-yet":"not-configured-yet","partially-configured":"partially-configured",completed:"completed",failed:"failed",error:"error",success:"success",default:"default",skipped:"skipped"};return e in t?t[e]:"default"},Uz=({value:e,onSave:t,isEditing:n,setIsEditing:r,disabled:i=!1,maxLength:o=50,placeholder:s="",showEditIcon:a=!0,variant:l="body1",textSx:u={},inputSx:c={},validate:d,error:p=null,minWidth:h=64,maxWidth:A=400,enableDoubleClick:g=!0,editIcon:m="ic_edit",autoResize:E=!0})=>{const y=O.useTheme(),[v,T]=C.useState(e||""),[_,x]=C.useState(h||64),b=C.useRef(null),w=C.useRef(null);C.useEffect(()=>{T(e||"")},[e]),C.useEffect(()=>{if(E&&b.current&&n){const L=b.current;L.textContent=v||s||"";const M=L.offsetWidth||0,B=12,Q=h||64,V=A||400,F=Math.min(Math.max(M+B+40,Q),V);x(F)}},[n,s,h,A,E]),C.useEffect(()=>{n&&w.current&&(w.current.focus(),w.current.select())},[n]);const D=async()=>{const L=v.trim();d&&await d(L)||L.length!==0&&(L.length>o||(t(L),r(!1)))},I=()=>{T(e),r(!1)},P=()=>{g&&!i&&(T(e),r(!0))},k=()=>{i||(T(e),r(!0))},N={cursor:g&&!i?"pointer":"default",...u};return f.jsxs(f.Fragment,{children:[E&&f.jsx("span",{ref:b,style:{position:"absolute",visibility:"hidden",whiteSpace:"nowrap",fontSize:c?.[".MuiInputBase-input"]?.fontSize||"16px",fontWeight:c?.[".MuiInputBase-input"]?.fontWeight||600,fontFamily:y?.typography?.fontFamily||"inherit",padding:"0px 8px",border:"1px solid transparent",zIndex:-1}}),n?f.jsx(O.TextField,{inputRef:w,autoFocus:!0,value:v,placeholder:s,error:!!p,helperText:p,disabled:i,onChange:L=>{const M=L.target.value.slice(0,o);T(M)},onBlur:D,onKeyDown:L=>{L.key==="Enter"?(L.preventDefault(),D()):L.key==="Escape"&&(L.preventDefault(),I())},inputProps:{maxLength:o},InputProps:{endAdornment:f.jsx(O.InputAdornment,{position:"end",children:f.jsx("span",{style:{color:y.palette.neutral.main,fontSize:12},children:`${v.length}/${o}`})})},sx:{width:E?`${_||h||64}px`:"100%",minWidth:`${h||64}px`,...c}}):f.jsxs(O.Stack,{direction:"row",alignItems:"center",onDoubleClick:P,sx:{cursor:g&&!i?"pointer":"default"},children:[f.jsx(O.Typography,{variant:l,sx:N,title:e,children:e}),a&&!i&&f.jsx(O.IconButton,{onClick:k,sx:{ml:1,p:0,"&:hover":{backgroundColor:"transparent","& .inline-svg svg path":{transition:"fill 0.2s ease"},"& svg path":{fill:`${y.palette.text.primary}`}}},title:"Edit",children:f.jsx(Ue,{width:20,height:20,src:m})})]})]})},Qd=()=>{const e=O.useTheme();return f.jsxs(O.Stack,{direction:"row",alignItems:"center",height:20,sx:{px:"6px",py:"4px",borderRadius:8,background:t=>`linear-gradient(100.41deg, ${t.palette.pro.badge.start} -5.78%, ${t.palette.pro.badge.end} 69.93%)`},children:[f.jsx(Ue,{src:"ic_crown",width:14,height:14,sx:{path:{fill:e.palette.common.black}}}),f.jsx(O.Typography,{variant:"xsNormal",sx:{ml:"4px",color:t=>t.palette.text.primary},children:"Pro"})]})},vFe=e=>{const t=e.match(/(?:-H|--header)\s+['"]?content-type:\s*([\w/-]+)/i),n=t?t[1].toLowerCase():null,r=e.match(/(?:--data(?:-raw)?|-d)\s+(['"]?)(.+?)\1/),i=r?r[2]:null;return e.match(/(?:^|\s)(?:-F|--form)(?:\s|["']|$)/)?"form-data":i?n&&n.startsWith("multipart/form-data")?"form-data":n==="application/x-www-form-urlencoded"?"x-www-form-urlencoded":n&&(n==="application/xml"||n==="text/xml")?"xml":/^\w+=([^&]+)(&\w+=([^&]+))*$/.test(i)?"x-www-form-urlencoded":/^\s*<[\s\S]*>\s*$/.test(i.trim())?"xml":"raw":"none"},TFe=(e,t)=>{let n=[];const r=!Array.isArray(t.headers);t.headers&&(n=r?{...t.headers}:[...t.headers]);let i=r?No(n):No(n)?.filter(o=>o.key!=="Content-Type");switch(e){case"none":r?delete i["Content-Type"]:i=i.filter(o=>o.key!=="Content-Type");break;case"form-data":r?i={...i,"Content-Type":"multipart/form-data"}:i.push({key:"Content-Type",value:"multipart/form-data"});break;case"x-www-form-urlencoded":r?i={...i,"Content-Type":"application/x-www-form-urlencoded"}:i.push({key:"Content-Type",value:"application/x-www-form-urlencoded"});break;case"xml":r?i={...i,"Content-Type":"application/xml"}:i.push({key:"Content-Type",value:"application/xml"});break;default:r?i={...i,"Content-Type":"application/json"}:i.push({key:"Content-Type",value:"application/json"});break}return i},Rr=e=>{const{children:t}=e;return f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.Typography,{className:"config",variant:"lgSemiBold",children:"Configure"}),t]})},Wn=gc(e=>{const{name:t,type:n="text",meta:{displayName:r="",placeholder:i="",value:o="",displayType:s="",description:a="",isDisabled:l=!1,htmlProps:{showInfoIcon:u=!1,rightLabel:c="",rightLabelAlignment:d="flex-end"}={},renderFieldValue:p=null},control:h,handleChange:A,validationRules:g,viewOnly:m=!1,size:E="xs",multiline:y=!1,...v}=e,T=typeof a=="object"?a:ro(a),_=O.useTheme(),[x,b]=C.useState(!1),w=(I,P)=>{let k=I.target.value;s==="number"&&k.trim()!==""?k=parseFloat(k)||0:s==="number"&&k.trim()===""&&(k=""),P.onChange(k),A&&A({field:t,value:k,fieldData:e})},D=I=>{n==="number"&&I.target?.blur()};return f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(En,{name:t,control:h,rules:g,render:({field:{value:I,...P},fieldState:{error:k}})=>f.jsxs(O.Stack,{children:[(r||c||u)&&f.jsxs(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:d,children:[r&&f.jsx(Or,{label:r,description:T,required:e?.required}),c&&f.jsx(O.Typography,{variant:_.typography["components-inputs-label-sm"],pb:"0.25rem",color:"neutral.80",children:c})]}),f.jsx(io,{...P,...v,type:e?.htmlProps?.type==="password"&&x?"text":n,placeholder:i,variant:"outlined",fullWidth:!0,errorMsg:k?.message,size:y&&E==="xs"?"sm":E,multiline:y,disabled:l||m,onChange:N=>{w(N,P)},value:p?p(I):I||o,onWheel:D})]})})})}),iT=e=>e.sort((t,n)=>{const r=t.integration_meta?.auth_type||"",i=n.integration_meta?.auth_type||"";return r.localeCompare(i)}),oT=e=>e.map(n=>{const r=Ds(n.integration_meta.auth_type.replace("_auth",""));return{...n,name:`${n.name} (${r})`}}),OP=e=>(e&&typeof e=="string"&&e.replace("(Header)","").replace("(Basic)",""),e),Zh=e=>{if(e===null||typeof e!="object")return!1;const t=new Set;return Array.isArray(e)?e.some(n=>n===null?!1:Zh(n)):Object.entries(e).some(([n,r])=>t.has(n)||(t.add(n),!n.trim())?!0:r===null?!1:typeof r=="object"?Zh(r):!1)},yP=(e,t)=>!e||e.trim()===""||e==="{{}}"?"Key is required":Object.keys(t).includes(e)?"Duplicate key found":"",SFe=e=>{const{onClick:t,refreshTooltip:n="",refreshing:r,sx:i,...o}=e,s=O.useTheme();return f.jsx(O.Tooltip,{title:n,arrow:!0,children:f.jsx("span",{children:f.jsx(O.IconButton,{onClick:t,disabled:r,sx:{width:32,height:32,border:`1px solid ${s.palette.grey.outlined.border}`,borderRadius:1.5,...bi(s),...i},"data-testid":"button-refresh",...o,children:r?f.jsx(O.CircularProgress,{size:14}):f.jsx(Ue,{src:"ic_refresh",width:20,height:20,sx:{path:{fill:s.palette.neutral.solid.bg}}})})})})},xFe=C.forwardRef(({name:e,type:t,required:n=!1,title:r,helperText:i="",viewOnly:o=!1,disabled:s=!1,options:a=[],errorMsg:l,children:u,endItem:c,refreshTooltip:d="",refreshOptions:p,loading:h=!1,refreshing:A=!1,aiIndicatorVisible:g=!1,...m},E)=>{const y=O.useTheme(),v=ro(i),{sx:T,..._}=m;return f.jsxs(O.FormControl,{fullWidth:!0,children:[f.jsxs(O.Stack,{alignItems:"flex-end",justifyContent:"space-between",direction:"row",children:[f.jsx(Or,{description:v,label:r,required:n}),c]}),f.jsxs(O.Stack,{gap:1,direction:"row",alignItems:"flex-end",sx:{position:"relative"},children:[g&&f.jsx(O.Box,{sx:{position:"absolute",right:p?"3.1rem":"1px",top:1,bottom:1,width:"15%",minWidth:p?56:64,maxWidth:p?76:92,pointerEvents:"none",borderTopRightRadius:6,borderBottomRightRadius:6,zIndex:0,background:`linear-gradient(90deg, ${O.alpha(y.palette.primary[5],0)} 0%, ${O.alpha(y.palette.primary[5],.35)} 62%, ${O.alpha(y.palette.primary[5],.9)} 100%)`}}),f.jsx(O.Select,{..._,fullWidth:!p,inputRef:E,error:!!l,name:e,disabled:s||o,IconComponent:x=>f.jsx(Ue,{src:"ic_arrow_down",width:"1.25rem",height:"1.25rem",sx:{"&.MuiSelect-icon":{top:"auto",mr:"0.25rem"}},...x}),"data-testid":`select-${e||"field"}`,sx:p?{width:"94%",flexShrink:0,position:"relative",zIndex:1,...g?{"& .MuiSelect-select":{pr:"4.25rem !important"}}:{},...T||{}}:{position:"relative",zIndex:1,...g?{"& .MuiSelect-select":{pr:"4.25rem !important"}}:{},...T||{}},children:u||(a.length>0?a.map(x=>f.jsx(O.MenuItem,{value:x.value,"data-testid":`option-${x.value}`,children:x.title},x.value)):f.jsx(O.MenuItem,{disabled:!0,sx:{p:"14px 16px"},"data-testid":"option-no-options",children:f.jsx(O.Typography,{variant:"smNormal",children:"No options"})}))}),g&&f.jsx(O.Box,{sx:{position:"absolute",right:p?"3.35rem":"2.45rem",top:"50%",transform:"translateY(-50%)",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2,width:18,height:18},children:f.jsx(Ue,{src:"ic_AI",width:18,height:18,sx:{display:"block","& svg path":{fill:`${y.palette.primary.main} !important`,fillOpacity:"1 !important"}}})}),p&&f.jsx(SFe,{refreshing:A,disabled:h||o||s,onClick:p,refreshTooltip:d})]}),!!l&&f.jsx(O.FormHelperText,{error:!0,children:l})]})}),Hz=gc(xFe),bFe=e=>{const t=O.useTheme(),{getValues:n,setValue:r}=Gn(),{isMultiple:i,options:o,selected:s=null,name:a,placeholder:l="",setMenuOpen:u,menuOpen:c,viewOnly:d=!1}=e,p=C.useRef(null),[h,A]=C.useState(!1),g=(v,T)=>{v.stopPropagation(),v.preventDefault();const _=n(a);typeof _=="object"&&Array.isArray(_)&&r(a,_.filter(x=>typeof x=="object"&&x.value?x.value!==T:x!==T),{shouldValidate:!0})},m=s!=null?o?.some(v=>v?.value===s):!1;if(typeof s=="object"&&Ot(s)||typeof s=="string"&&!s&&!m)return f.jsx(O.Typography,{sx:{fontSize:"14px",color:t.palette.neutral.solid.bg,fontFamily:"inherit",":hover":{color:t.palette.neutral.main}},children:l||""});let E=(p.current?.offsetWidth||440)-95;if(i){const{visible:v,extra:T,hiddenSelections:_}=Lb(s,E);return f.jsxs(O.Stack,{direction:"row",ref:p,sx:{...di,position:"relative",width:"100%"},children:[f.jsxs(O.Box,{"data-testid":"select-chip-container",sx:{display:"flex",flexWrap:"nowrap",gap:.5,maxWidth:"calc(100% - 65px)",overflow:"hidden"},onClick:x=>{x.preventDefault(),x.stopPropagation(),u?.(!c)},children:[v.map(x=>{const{value:b,title:w}=x,D=Math.min(E,Math.max(w.length*8+50,90));return E=E-D-4,f.jsx(c7,{label:w,onDelete:I=>g(I,b),sx:{flex:"0 0 auto",minWidth:"40px","&.MuiChip-root":{maxWidth:`${D}px !important`}}},b)}),T>0&&f.jsx(xw,{hiddenSelections:_,extra:T,handleChipDelete:g})]}),v?.length?f.jsx(O.IconButton,{disableRipple:!0,onMouseDown:x=>{x.preventDefault(),x.stopPropagation(),typeof r=="function"&&r(a,[],{shouldValidate:!0})},sx:{position:"absolute",right:0,top:"auto","&.MuiButton-root":{paddingRight:1},zIndex:1e3,"&:hover":{backgroundColor:"transparent"}},children:f.jsx(Ue,{src:"ic_close",height:16,width:16})}):null]})}const y=OP(o?.find(v=>v?.value===s)?.title);return f.jsxs(O.Stack,{direction:"row",alignItems:"center",onMouseEnter:()=>!d&&A(!0),onMouseLeave:()=>A(!1),sx:{position:"relative",width:"100%",minWidth:0,maxWidth:"100%",pr:d?0:"36px"},children:[f.jsx(O.Typography,{sx:{fontSize:"14px",color:t.palette.text.primary,fontFamily:"inherit",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,maxWidth:"100%",pr:!d&&s&&h?"24px":0},children:y}),!d&&s&&h&&f.jsx(O.IconButton,{disableRipple:!0,size:"small",onMouseDown:v=>{v.preventDefault(),v.stopPropagation(),r(a,"",{shouldValidate:!0})},sx:{position:"absolute",right:"34px",top:"50%",transform:"translateY(-50%)",padding:"4px",zIndex:1e3,"&:hover":{backgroundColor:"transparent","& svg path":{fill:t.palette.text.primary}}},children:f.jsx(Ue,{src:"ic_close",height:16,width:16,sx:{path:{fill:t.palette.neutral.solid.bg}}})})]})};function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}function vP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TP(e,t){return TP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},TP(e,t)}function sT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TP(e,t)}var Vz=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function CFe(e,t){return!!(e===t||Vz(e)&&Vz(t))}function _Fe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!CFe(e[n],t[n]))return!1;return!0}function SP(e,t){t===void 0&&(t=_Fe);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}function _t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wFe=typeof performance=="object"&&typeof performance.now=="function",Gz=wFe?function(){return performance.now()}:function(){return Date.now()};function Wz(e){cancelAnimationFrame(e.id)}function IFe(e,t){var n=Gz();function r(){Gz()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var xP=-1;function Qz(e){if(e===void 0&&(e=!1),xP===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),xP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xP}var Jh=null;function zz(e){if(e===void 0&&(e=!1),Jh===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Jh="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Jh="negative":Jh="positive-ascending"),document.body.removeChild(t),Jh}return Jh}process.env.NODE_ENV;var DFe=150,RFe=function(t,n){return t},aT=null,lT=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(aT=new WeakSet,lT=new WeakSet);function PFe(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=(function(d){sT(p,d);function p(A){var g;return g=d.call(this,A)||this,g._instanceProps=l(g.props,vP(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:vP(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=SP(function(m,E,y,v){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:E,visibleStartIndex:y,visibleStopIndex:v})}),g._callOnScroll=void 0,g._callOnScroll=SP(function(m,E,y){return g.props.onScroll({scrollDirection:m,scrollOffset:E,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var E=g.props,y=E.direction,v=E.itemSize,T=E.layout,_=g._getItemStyleCache(u&&v,u&&T,u&&y),x;if(_.hasOwnProperty(m))x=_[m];else{var b=n(g.props,m,g._instanceProps),w=i(g.props,m,g._instanceProps),D=y==="horizontal"||T==="horizontal",I=y==="rtl",P=D?b:0;_[m]=x={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:D?0:b,height:D?"100%":w,width:D?w:"100%"}}return x},g._getItemStyleCache=void 0,g._getItemStyleCache=SP(function(m,E,y){return{}}),g._onScrollHorizontal=function(m){var E=m.currentTarget,y=E.clientWidth,v=E.scrollLeft,T=E.scrollWidth;g.setState(function(_){if(_.scrollOffset===v)return null;var x=g.props.direction,b=v;if(x==="rtl")switch(zz()){case"negative":b=-v;break;case"positive-descending":b=T-y-v;break}return b=Math.max(0,Math.min(b,T-y)),{isScrolling:!0,scrollDirection:_.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(m){var E=m.currentTarget,y=E.clientHeight,v=E.scrollHeight,T=E.scrollTop;g.setState(function(_){if(_.scrollOffset===T)return null;var x=Math.max(0,Math.min(T,v-y));return{isScrolling:!0,scrollDirection:_.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(m){var E=g.props.outerRef;g._outerRef=m,typeof E=="function"?E(m):E!=null&&typeof E=="object"&&E.hasOwnProperty("current")&&(E.current=m)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&Wz(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=IFe(g._resetIsScrolling,DFe)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}p.getDerivedStateFromProps=function(g,m){return NFe(g,m),c(g),null};var h=p.prototype;return h.scrollTo=function(g){g=Math.max(0,g),this.setState(function(m){return m.scrollOffset===g?null:{scrollDirection:m.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(g,m){m===void 0&&(m="auto");var E=this.props,y=E.itemCount,v=E.layout,T=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var _=0;if(this._outerRef){var x=this._outerRef;v==="vertical"?_=x.scrollWidth>x.clientWidth?Qz():0:_=x.scrollHeight>x.clientHeight?Qz():0}this.scrollTo(o(this.props,g,m,T,this._instanceProps,_))},h.componentDidMount=function(){var g=this.props,m=g.direction,E=g.initialScrollOffset,y=g.layout;if(typeof E=="number"&&this._outerRef!=null){var v=this._outerRef;m==="horizontal"||y==="horizontal"?v.scrollLeft=E:v.scrollTop=E}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,E=g.layout,y=this.state,v=y.scrollOffset,T=y.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var _=this._outerRef;if(m==="horizontal"||E==="horizontal")if(m==="rtl")switch(zz()){case"negative":_.scrollLeft=-v;break;case"positive-ascending":_.scrollLeft=v;break;default:var x=_.clientWidth,b=_.scrollWidth;_.scrollLeft=b-x-v;break}else _.scrollLeft=v;else _.scrollTop=v}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wz(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,E=g.className,y=g.direction,v=g.height,T=g.innerRef,_=g.innerElementType,x=g.innerTagName,b=g.itemCount,w=g.itemData,D=g.itemKey,I=D===void 0?RFe:D,P=g.layout,k=g.outerElementType,N=g.outerTagName,L=g.style,M=g.useIsScrolling,B=g.width,Q=this.state.isScrolling,V=y==="horizontal"||P==="horizontal",q=V?this._onScrollHorizontal:this._onScrollVertical,F=this._getRangeToRender(),G=F[0],W=F[1],R=[];if(b>0)for(var j=G;j<=W;j++)R.push(C.createElement(m,{data:w,key:I(j,w),index:j,isScrolling:M?Q:void 0,style:this._getItemStyle(j)}));var $=r(this.props,this._instanceProps);return C.createElement(k||N||"div",{className:E,onScroll:q,ref:this._outerRefSetter,style:ce({position:"relative",height:v,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},L)},C.createElement(_||x||"div",{children:R,ref:T,style:{height:V?"100%":$,pointerEvents:Q?"none":void 0,width:V?$:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),E=m[0],y=m[1],v=m[2],T=m[3];this._callOnItemsRendered(E,y,v,T)}}if(typeof this.props.onScroll=="function"){var _=this.state,x=_.scrollDirection,b=_.scrollOffset,w=_.scrollUpdateWasRequested;this._callOnScroll(x,b,w)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,E=g.overscanCount,y=this.state,v=y.isScrolling,T=y.scrollDirection,_=y.scrollOffset;if(m===0)return[0,0,0,0];var x=s(this.props,_,this._instanceProps),b=a(this.props,x,_,this._instanceProps),w=!v||T==="backward"?Math.max(1,E):1,D=!v||T==="forward"?Math.max(1,E):1;return[Math.max(0,x-w),Math.max(0,Math.min(m-1,b+D)),x,b]},p})(C.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NFe=function(t,n){var r=t.children,i=t.direction,o=t.height,s=t.layout,a=t.innerTagName,l=t.outerTagName,u=t.width,c=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&lT&&!lT.has(c)&&lT.add(c);var d=i==="horizontal"||s==="horizontal";switch(i){case"horizontal":case"vertical":aT&&!aT.has(c)&&aT.add(c);break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(d&&typeof u!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(u===null?"null":typeof u)+'" was specified.'));if(!d&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},LFe=50,eA=function(t,n,r){var i=t,o=i.itemSize,s=r.itemMetadataMap,a=r.lastMeasuredIndex;if(n>a){var l=0;if(a>=0){var u=s[a];l=u.offset+u.size}for(var c=a+1;c<=n;c++){var d=o(c);s[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=n}return s[n]},kFe=function(t,n,r){var i=n.itemMetadataMap,o=n.lastMeasuredIndex,s=o>0?i[o].offset:0;return s>=r?Xz(t,n,o,0,r):MFe(t,n,Math.max(0,o),r)},Xz=function(t,n,r,i,o){for(;i<=r;){var s=i+Math.floor((r-i)/2),a=eA(t,s,n).offset;if(a===o)return s;a<o?i=s+1:a>o&&(r=s-1)}return i>0?i-1:0},MFe=function(t,n,r,i){for(var o=t.itemCount,s=1;r<o&&eA(t,r,n).offset<i;)r+=s,s*=2;return Xz(t,n,Math.min(r,o-1),Math.floor(r/2),i)},Yz=function(t,n){var r=t.itemCount,i=n.itemMetadataMap,o=n.estimatedItemSize,s=n.lastMeasuredIndex,a=0;if(s>=r&&(s=r-1),s>=0){var l=i[s];a=l.offset+l.size}var u=r-s-1,c=u*o;return a+c},qz=PFe({getItemOffset:function(t,n,r){return eA(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Yz,getOffsetForIndexAndAlignment:function(t,n,r,i,o,s){var a=t.direction,l=t.height,u=t.layout,c=t.width,d=a==="horizontal"||u==="horizontal",p=d?c:l,h=eA(t,n,o),A=Yz(t,o),g=Math.max(0,Math.min(A-p,h.offset)),m=Math.max(0,h.offset-p+h.size+s);switch(r==="smart"&&(i>=m-p&&i<=g+p?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);default:return i>=m&&i<=g?i:i<m?m:g}},getStartIndexForOffset:function(t,n,r){return kFe(t,r,n)},getStopIndexForStartIndex:function(t,n,r,i){for(var o=t.direction,s=t.height,a=t.itemCount,l=t.layout,u=t.width,c=o==="horizontal"||l==="horizontal",d=c?u:s,p=eA(t,n,i),h=r+d,A=p.offset+p.size,g=n;g<a-1&&A<h;)g++,A+=eA(t,g,i).size;return g},initInstanceProps:function(t,n){var r=t,i=r.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||LFe,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,a){a===void 0&&(a=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),a&&n.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});const Kz=40,FFe=400,BFe=C.forwardRef(({options:e=[],itemHeight:t=Kz,maxHeight:n=FFe,renderItem:r,headerComponent:i,footerComponent:o,emptyComponent:s,groupBy:a="",getNestedProperty:l=(h,A)=>A.split(".").reduce((g,m)=>g?g[m]:null,h),startCase:u=h=>h.replace(/([A-Z])/g," $1").replace(/_/g," ").trim().split(" ").map(A=>A.charAt(0).toUpperCase()+A.slice(1).toLowerCase()).join(" "),listWidth:c,...d},p)=>{const h=O.useTheme();if(e.length===0&&!i&&!o&&s)return f.jsx(O.MenuList,{component:"ul",...d,children:s});const A=C.useMemo(()=>{if(!a||e.length===0)return e.map(w=>({type:"item",data:w}));const x={};e.forEach(w=>{const I=l(w,a)||"Other";x[I]||(x[I]=[]),x[I].push(w)});const b=[];return Object.entries(x).forEach(([w,D])=>{b.push({type:"header",label:u(w.replace("_"," ")).replace("Auth","Authentication")}),D.forEach(I=>{b.push({type:"item",data:I})})}),b},[e,a,l,u]),g=i&&e.length>0?56:0,m=o?68:0,E=40,y=x=>{if(a&&A[x]&&A[x].type==="header")return E;const b=A[x],w=a?b.data:e[x];let D=40;const I=Math.floor((c-70)/7.3);if(w?.description){const P=Math.ceil(w.description.length/I);D+=Math.max(P,1)*26}return w?.title&&w.title.length>I&&(D+=26),D+4},v=Math.min(g+(a?A.reduce((x,b)=>x+y(A.indexOf(b)),0):e.length*(t+4))+m,n),T=Math.max(v-g-m,0),_=({index:x,style:b})=>{const w=A[x];return a&&"type"in w&&w.type==="header"?f.jsx("div",{style:b,children:f.jsx(O.ListSubheader,{component:"div",sx:{fontSize:"0.8rem",fontWeight:600,color:h.palette.text.secondary,bgcolor:h.palette.grey[300],lineHeight:"2rem",position:"sticky",top:0,zIndex:1},children:w.label})}):f.jsx("div",{style:b,children:r(a?w.data:e[x],x)})};return f.jsxs(O.MenuList,{component:"ul",ref:p,...d,children:[i||null,A.length>0&&(a?f.jsx(qz,{height:T,width:"100%",itemCount:A.length,itemSize:y,overscanCount:5,children:_}):f.jsx(qz,{height:T,width:"100%",itemCount:A.length,itemSize:y||Kz,overscanCount:5,children:_})),e.length===0&&s,o]})}),jFe=C.forwardRef((e,t)=>{const n=O.useTheme(),{getNodes:r}=Dt.useReactFlow(),{selectedActivityId:i,nodes:o,aiGeneratedFieldMap:s}=ht.useSelector(ge=>ge.canvas),a=C.useCallback((ge,ye,$e,Qe,je,et=!1)=>{const{multiple:rt,renderOption:nt,name:Ie,handleChange:He}=e,Ve=Array.isArray(ye)?ye.map(de=>de&&typeof de=="object"&&"value"in de?de.value:de):[],Ee=rt?Ve.includes(ge.value):ye===ge.value;if(nt){let de=null;try{nt.length>=2?de=nt(null,ge,Ee):de=nt(ge,Ee)}catch{de=null}if(de)return de}const _e=de=>{de.preventDefault();let be;rt?be=Ve.includes(ge.value)?Ve.filter(Fe=>Fe!==ge.value):[...Ve,ge.value]:be=ge.value,$e({target:{value:be}}),je?je({field:Ie,value:be}):He&&He({field:Ie,value:be}),rt||ue(!1)},we=et?OP(ge.title):ge.title,ee=et?OP(ge.value):ge.value;return f.jsx(O.MenuItem,{value:ee,disabled:ge.disabled,onClick:_e,selected:Ee,"data-testid":`menu-item-${ee}`,sx:{display:"flex",justifyContent:"flex-start",mx:1,height:"auto",p:"8px !important",minHeight:"fit-content !important","&.Mui-selected":{backgroundColor:rt?n.palette.common.white:"auto","& .MuiTypography-root":{color:rt?n.palette.text.tertiary:n.palette.primary.main}}},children:rt?f.jsxs(f.Fragment,{children:[f.jsx(O.Checkbox,{sx:{p:0},icon:f.jsx(Ue,{src:"ic_unchecked",width:16,height:16,sx:{path:{fill:n.palette.common.white}}}),checkedIcon:f.jsx(Ue,{src:"ic_checked",width:16,height:16}),checked:!!Ee,"data-testid":"checkbox-"+ee}),f.jsx(O.ListItemText,{primary:we,sx:{whiteSpace:"normal"},secondary:ge.description})]}):f.jsxs(O.Stack,{gap:.5,sx:{whiteSpace:"normal"},children:[f.jsxs(O.Stack,{direction:"row",gap:1,flexWrap:"wrap",alignItems:"center",children:[f.jsxs(O.Typography,{variant:"mdNormal",color:n.palette.text.primary,sx:{whiteSpace:"normal"},children:[we,ge?.legacy&&f.jsx(O.Chip,{label:"Legacy",sx:{fontSize:11,ml:1},size:"small"},`${ee}-chip-${ge?.legacy}`)]}),!et&&ge.chips&&Array.isArray(ge.chips)&&ge.chips.length>0&&f.jsx(O.Stack,{direction:"row",gap:.5,children:ge.chips.map((de,be)=>f.jsx(O.Chip,{sx:{fontSize:11},size:"small",label:de},`${ee}-chip-${be}`))})]}),ge.description&&!ge.chips&&f.jsx(O.Typography,{sx:{fontSize:"0.875rem",fontWeight:400,color:n.palette.text.tertiary},children:ge.description})]})},ee+Qe)},[e,n]),{name:l,control:u,meta:{options:c=[],displayName:d="",error:p={},description:h="",placeholder:A="",readOnly:g=!1,isDisabled:m=!1,displayProps:{loading:E=!1,refreshing:y=!1}={},htmlProps:{showAddNew:v=!1,onClickAddNew:T=null}={},TESSERACT_MAIN_URL:_="",FRONTEND_URL:x="",ENTITY_ID:b="",openIntegrationDrawer:w,addNewButtonText:D="",searchFieldPlaceholder:I="",authType:P="",handleSearchOptions:k=null,showSearchOnLoad:N=!1,showSearch:L=!0},handleChange:M,onFocus:B=null,validationRules:Q,viewOnly:V=!1,disabled:q=!1,multiple:F=!1,renderValueUi:G=null,refreshOptions:W=null,renderFieldValue:R=null,groupBy:j="",onOpen:$=null,refreshTooltip:Y="",getSelectedValue:z=null,virtualized:H=!1,...U}=e,[X,J]=C.useState(c),[te,ae]=C.useState(""),[re,ue]=C.useState(!1);C.useEffect(()=>{J(c)},[c]);const Oe=()=>{B&&B({field:l,fieldData:e})},Te=C.useMemo(()=>ba(ge=>{if(!ge)J(c);else{const ye=c.filter($e=>String($e.title).toLowerCase().includes(ge.toLowerCase()));J(ye)}},300),[c]),se=C.useCallback(ge=>{ge.stopPropagation(),ge.preventDefault();const ye=ge.target.value;ae(ye),Te(ye),k&&k(ye)},[Te]),ie=ge=>R?R(ge):F||c.some(ye=>ye.value===ge)?ge:"",Z=()=>{ae(""),J(c)},[K,ne]=C.useState(0),le=C.useRef(null),pe=C.useMemo(()=>{const ge=String(e?.nodeId||e?.id||""),ye=typeof r=="function"?r():[],$e=Array.isArray(ye)&&ye.length>0?ye:o||[],Qe=$e.find(Ie=>Ie?.selected),je=$e.find(Ie=>String(Ie?.id)===ge)||$e.find(Ie=>String(Ie?.id)===String(i))||Qe,et=String(je?.id||""),nt=(s||{})[et]||(s||{})[String(i||"")]||(s||{})[ge];return nt&&typeof nt=="object"?nt:{}},[s,r,o,e,i]),Ae=C.useCallback((ge,ye)=>{const $e=String(ge||"").replace(/^properties\./,"");return!(!$e||!($e in pe)||ye==null||typeof ye=="string"&&ye.trim()===""||Array.isArray(ye)&&ye.length===0)},[pe]),fe=()=>n?.drawer.rightMenu.replace("px","")-36;C.useEffect(()=>{const ge=()=>{if(le.current){const $e=le.current.clientWidth;ne($e>0?$e:fe())}else ne(fe())};ge();const ye=new ResizeObserver(ge);return le.current&&ye.observe(le.current),()=>{le.current&&ye.unobserve(le.current),ye.disconnect()}},[le?.current?.clientWidth]);const Se=C.useCallback((ge,ye)=>{if(j){const $e={};return X.forEach(Qe=>{const et=h4(Qe,j)||"Other";$e[et]||($e[et]=[]),$e[et].push(Qe)}),Object.entries($e).map(([Qe,je])=>f.jsxs(C.Fragment,{children:[f.jsx(O.ListSubheader,{sx:{fontSize:"0.8rem",fontWeight:600,color:n.palette.text.secondary,bgcolor:n.palette.grey[300],lineHeight:"2rem"},children:Ds(Qe.replace("_"," ")).replace("Auth","Authentication")}),je.map((et,rt)=>a(et,ge,ye,rt,M,!0))]},Qe))}return X.map(($e,Qe)=>a($e,ge,ye,Qe,M,!1))},[X,j,a,n,M]);return f.jsx(En,{name:l,control:u,rules:Q,render:({field:{onChange:ge,onBlur:ye,value:$e},fieldState:{error:Qe}})=>f.jsx(O.Stack,{position:"relative",ref:le,children:f.jsxs(Hz,{...U,multiple:F,ref:t,title:d,disabled:m||V||q,viewOnly:V,placeholder:A||d,displayEmpty:!0,errorMsg:Qe?.message||p?.errorMsg,helperText:h,value:ie($e),refreshOptions:W,loading:E,open:re,refreshing:y,refreshTooltip:Y,onOpen:()=>{ue(!0),$&&$()},onClose:()=>{ae(""),J(c),ue(!1),Z()},MenuProps:{PaperProps:{component:"div",sx:{boxShadow:`0 0.25rem 1rem 0 ${n.palette.secondary.main}`,marginTop:"0.5rem",maxHeight:"21.25rem",border:"1px solid",borderColor:n.palette.neutral.outlined.border,maxWidth:`${K}px`,"& .MuiList-root":{display:"flex",maxHeight:"21.25rem",flexDirection:"column",gap:.5,pt:L?0:1,mb:D||c.length===0||E?0:1,"&.MuiMenu-list .MuiListSubheader-root":{p:1},overflowY:"auto"}}},MenuListProps:H?{component:BFe,options:X,maxHeight:340,listWidth:K,renderItem:(je,et)=>a(je,$e,ge,et,M),groupBy:j,getNestedProperty:h4,startCase:Ds,headerComponent:L&&(N||k||c.length&&!E)&&f.jsx(O.ListSubheader,{sx:{position:"sticky",top:0,zIndex:10,bgcolor:"white","& .MuiInputBase-root":{width:"100%"},padding:0,marginBottom:1},children:f.jsx(O.OutlinedInput,{onChange:se,value:te,placeholder:I,startAdornment:f.jsx(Ue,{src:"ic_search",width:24,height:24}),onKeyDown:je=>{je.stopPropagation(),je.key==="Escape"&&(ue(!1),ae(""),J(c))},onClick:je=>{je.stopPropagation()},inputRef:je=>{je&&re&&setTimeout(()=>je.focus(),0)}})},"search-input"),footerComponent:f.jsxs(f.Fragment,{children:[E&&f.jsx(O.Stack,{direction:"row",justifyContent:"center",py:1,px:2,children:f.jsx(O.CircularProgress,{size:24})}),!E&&X.length===0&&f.jsx(O.MenuItem,{disabled:!0,sx:{justifyContent:"center",p:"6px 12px"},children:f.jsx(O.Typography,{variant:"smNormal",children:"No options available"})}),D&&v&&f.jsx(O.MenuItem,{"data-testid":`${d}-popup-footer-item`,selected:!1,sx:{position:"sticky",bottom:0,p:2,zIndex:1e3,height:"auto",":hover":{backgroundColor:`${n.palette.common.white}`},backgroundColor:`${n.palette.common.white}`,borderRadius:0,cursor:"auto",borderTop:`1px solid ${n.palette.neutral.outlined.border}`},disableRipple:!0,onClick:je=>{je.stopPropagation(),je.preventDefault(),ue(!1)},children:f.jsx(kC,{type:P,openIntegrationDrawer:w,TESSERACT_MAIN_URL:_,FRONTEND_URL:x,ENTITY_ID:b,buttonText:D,onClick:T,setMenuOpen:ue})},`${d}-popup-footer-item`)]})}:{component:O.Box},autoFocus:!1,disableAutoFocusItem:!0},renderValue:G||(je=>{const et=z?.(je)||je;return f.jsx(bFe,{isMultiple:F,name:l,placeholder:A,options:c,selected:et,setMenuOpen:ue,menuOpen:re,viewOnly:V})}),readOnly:g,name:l,aiIndicatorVisible:Ae(l,$e),onFocus:Oe,onChange:je=>{ge(je),M&&M({field:l,value:je.target.value}),F||ue(!1)},onBlur:ye,error:!!Qe,children:[L&&(N||k||c.length&&!E)&&f.jsx(O.ListSubheader,{sx:{position:"sticky",top:0,zIndex:10,bgcolor:"white","& .MuiInputBase-root":{width:"100%"}},children:f.jsx(O.OutlinedInput,{onChange:se,value:te,placeholder:I,startAdornment:f.jsx(Ue,{src:"ic_search",width:24,height:24}),onKeyDown:je=>{je.stopPropagation(),je.key==="Escape"&&(ue(!1),ae(""),J(c))},onClick:je=>{je.stopPropagation()},inputRef:je=>{je&&re&&setTimeout(()=>je.focus(),0)}})},"search-input"),c.length&&!E&&Se($e,ge),E&&f.jsx(O.MenuItem,{disabled:!0,sx:{p:"6px 12px","&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{opacity:1}},children:f.jsx(O.Stack,{alignItems:"center",width:"100%",children:f.jsx(O.CircularProgress,{size:16})})}),X.length===0&&!E&&f.jsx(O.MenuItem,{disabled:!0,sx:{p:"6px 12px"},children:f.jsx(O.Typography,{variant:"smNormal",children:"No options available"})}),v&&f.jsx(O.MenuItem,{"data-testid":`${d}-popup-footer-item`,selected:!1,sx:{position:"sticky",bottom:0,p:2,zIndex:1e3,height:"auto",":hover":{backgroundColor:`${n.palette.common.white} !important`},backgroundColor:`${n.palette.common.white} !important`,borderRadius:0,cursor:"auto",borderTop:`1px solid ${n.palette.neutral.outlined.border}`},disableRipple:!0,onClick:je=>{je.stopPropagation()},children:f.jsx(kC,{type:P,openIntegrationDrawer:w,TESSERACT_MAIN_URL:_,FRONTEND_URL:x,ENTITY_ID:b,buttonText:D,onClick:T,setMenuOpen:ue})},`${d}-popup-footer-item`)]})})})}),Zt=gc(jFe),eo=e=>{const{children:t,rightElement:n=null}=e;return f.jsxs(O.Stack,{gap:2,children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[f.jsx(O.Typography,{className:"setup",variant:"lgSemiBold",children:"Setup"}),n]}),t]})},$Fe=e=>{const t=O.useTheme(),{meta:{className:n="",displayName:r="",htmlProps:{headerVariant:i="smSemiBold"}={},description:o=""}={},children:s,defaultExpanded:a=!1}=e,[l,u]=C.useState(a),c=(d,p)=>{u(p)};return f.jsxs(O.Stack,{sx:{width:"100%"},className:n,children:[f.jsxs(O.Accordion,{expanded:l,onChange:c,sx:{border:`1px solid ${t.palette.neutral.outlined.border}`,borderRadius:".5rem !important",overflow:"auto"},children:[f.jsx(O.AccordionSummary,{sx:{borderBottom:l?`1px solid ${t.palette.neutral.outlined.border}`:"none",p:"0.5rem 0.75rem","& .MuiAccordionSummary-content":{margin:"0 !important"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"},backgroundColor:t.palette.white.smoke},expandIcon:f.jsx(Ue,{src:"ic_arrow_down",width:"1.5rem",height:"1.5rem"}),children:f.jsx(O.Stack,{spacing:"0.25rem",justifyContent:"flex-start",children:!Ot(r)&&f.jsx(O.Typography,{variant:i,children:r})})}),f.jsx(O.AccordionDetails,{sx:{p:"1rem 0.75rem"},children:s})]}),o&&f.jsx(O.FormHelperText,{children:o})]})},uT=C.forwardRef(({type:e,name:t,label:n,value:r,onChange:i,inputProps:o,errorMsg:s,required:a=!1,viewOnly:l=!1},u)=>f.jsx(io,{ref:u,label:n,name:t,type:"number",fullWidth:!0,required:a,viewOnly:l,errorMsg:s,helperText:br(e,t),value:r||"",onChange:c=>{const d=Number(c.target.value);i(d)},inputProps:o})),Ni=e=>{const{type:t,viewOnly:n=!1}=e,{control:r,formState:{errors:i},watch:o}=Gn();return f.jsx($Fe,{meta:{displayName:"Advanced options"},children:f.jsxs(O.Grid,{container:!0,gap:1,children:[t===Ke.PARALLEL&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsxs(O.Grid,{sx:{mt:1,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx(Or,{label:"Isolate flow failures",description:ro("All parallel flows run to completion even if one fails. Once all finish, the execution is marked as failed if any flow failed — errors are not silently swallowed. When disabled (default), the first flow failure immediately stops all remaining flows."),sx:{fontSize:14,fontWeight:400}}),f.jsx(En,{name:"properties.isolate_flows",control:r,defaultValue:!1,render:({field:s})=>f.jsx(O.FormControlLabel,{label:s.value?"On":"Off",labelPlacement:"start",control:f.jsx(O.Switch,{...s,checked:!!s.value,disabled:n}),sx:{mr:0,ml:2},componentsProps:{typography:{variant:"smNormal"}}})})]})}),t&&![Ke.SWITCH,Ke.PARALLEL,Ke.IF,Ke.SLEEP,Ke.RESPONSE].includes(t)&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsxs(O.Grid,{sx:{mt:1,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx(Or,{label:"Continue on failure",description:ro("When enabled, a failure handle appears on this node. If this node fails, workflow continues through the failure path. If disabled and this node fails, the entire workflow stops."),sx:{fontSize:14,fontWeight:400}}),f.jsx(En,{name:"properties.continue_on_failure",control:r,defaultValue:t===Ke.API||t===Ke.GRAPHQL,render:({field:s})=>f.jsx(O.FormControlLabel,{label:s.value?"On":"Off",labelPlacement:"start",control:f.jsx(O.Switch,{...s,checked:!!s.value,disabled:n}),sx:{mr:0,ml:2},componentsProps:{typography:{variant:"smNormal"}}})})]})}),(t===Ke.API||t===Ke.SERVERLESS)&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.api_timeout",control:r,render:({field:s})=>f.jsxs(O.FormControl,{fullWidth:!0,children:[f.jsx(Or,{required:!0,label:"Max Time to Wait for API Response (seconds)",description:ro(br(t,"api_timeout"))}),f.jsx(O.Select,{...s,value:s.value/1e3,disabled:n,onChange:a=>s.onChange(Number(a.target.value)*1e3),children:[3e4,6e4,9e4,12e4].map(a=>f.jsx(O.MenuItem,{value:a/1e3,children:a/1e3},a))})]})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.maximum_timeout",control:r,rules:{min:{value:6e4,message:"Maximum timeout must be at least 60"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"maximum_timeout",label:"Maximum Activity Completion Timeout(seconds)",viewOnly:n,errorMsg:i.properties?.maximum_timeout?.message,value:o("properties.maximum_timeout")/1e3,onChange:a=>s.onChange(a*1e3),inputProps:{min:60,step:10}})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.retry_config.maximum_attempts",control:r,rules:{min:{value:1,message:"Maximum number of attempts must be at least 1"},max:{value:10,message:"Maximum number of attempts must be at most 10"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"maximum_attempts",label:"Maximum Number of Attempts",viewOnly:n,errorMsg:i.properties?.retry_config?.maximum_attempts?.message,inputProps:{min:1,max:10}})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,meta:{options:s4,displayName:"Retry Backoff Rate",searchFieldPlaceholder:"Search",description:"Constants factor by which the time delay between the retry attempts increase after the each failure",placeholder:"Select Retry Backoff Rate"},name:"properties.retry_config.backoff_coefficient",control:r,disabled:n,type:"number"})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.retry_config.initial_interval",control:r,rules:{min:{value:1,message:"Initial interval must be at least 1"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"initial_interval",label:"Wait Time Before First Retry (seconds)",viewOnly:n,errorMsg:i.properties?.retry_config?.initial_interval?.message,inputProps:{min:1,step:1},value:o("properties.retry_config.initial_interval")/1e3,onChange:a=>s.onChange(a*1e3)})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"properties.retry_config.maximum_interval",control:r,rules:{min:{value:100,message:"Max interval must be at least 100"}},render:({field:s})=>f.jsx(uT,{...s,required:!0,type:"advancedOptions",name:"maximum_interval",label:"Maximum Wait Between Retries (seconds)",viewOnly:n,errorMsg:i.properties?.retry_config?.maximum_interval?.message,inputProps:{min:100,step:1},value:o("properties.retry_config.maximum_interval")/1e3,onChange:a=>s.onChange(a*1e3)})})})]})})},UFe=({tabs:e,selectedTab:t,setSelectedTab:n,sx:r,textTransform:i="capitalize"})=>{const o=O.useTheme(),[s,a]=C.useState(!1);return C.useEffect(()=>{kF(t)||a(t)},[t]),f.jsx(O.Tabs,{sx:{width:"100%",border:`1px solid ${o.palette.neutral.outlined.border}`,"& .MuiTab-root":{fontSize:12,lineHeight:1},...r},value:s,onChange:(l,u)=>n(u),children:e.map(l=>f.jsx(O.Tab,{sx:{textTransform:i,flex:1,"& .MuiTab-iconWrapper":{ml:0},"&.MuiButtonBase-root.MuiTab-root":{py:.5}},icon:l?.icon,label:l.title,value:l.title,disabled:l.disabled||!1,iconPosition:"end"},l.title))})},cT=(e,t)=>t.split(".").reduce((n,r)=>n?.[r],e),HFe=({id:e,type:t="",field:n,suggestionsData:r,isLoop:i=!1,showKeyValuePair:o=!0,valueTypeSelector:s=null,viewOnly:a=!1,hideLabel:l=!0,name:u,fieldName:c="JSON",excludePayloadSuggestions:d=!1})=>f.jsx(f.Fragment,{children:o?f.jsx(VFe,{id:e,name:u,valueTypeSelector:s,viewOnly:a,isLoop:i,hideLabel:l,type:t,field:n,excludePayloadSuggestions:d}):f.jsx(GFe,{name:u,viewOnly:a,type:t,isLoop:i,fieldName:c,suggestionsData:r})}),VFe=({id:e,name:t,valueTypeSelector:n=null,viewOnly:r=!1,isLoop:i,hideLabel:o=!1,type:s,field:a,excludePayloadSuggestions:l})=>{const{control:u,watch:c,setValue:d,formState:{errors:p}}=Gn(),h=c(t),A=O.useTheme(),{reserved_keywords:g}=ht.useSelector(y=>y.activities),m=()=>{!h||!Array.isArray(h)?d(t,[{key:"",value:""}]):d(t,[...h,{key:"",value:""}])},E=y=>{Array.isArray(h)&&d(t,[...h.slice(0,y),...h.slice(y+1)])};return f.jsxs(O.Box,{children:[!Ot(h)&&f.jsxs(O.Box,{sx:{border:`1px solid ${A.palette.grey[300]}`,borderRadius:3},children:[f.jsxs(O.Stack,{direction:"row",sx:{backgroundColor:A.palette.white.smoke,borderRadius:"12px 12px 0 0"},children:[f.jsx(O.Box,{width:n?"29.5%":"44%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Key"})}),n&&f.jsx(O.Box,{width:"29.5%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Type"})}),f.jsx(O.Box,{width:n?"29.5%":"44%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Value"})}),f.jsx(O.Box,{width:n?"11.5%":"12%",px:1,py:1.5,children:f.jsx(O.Typography,{color:A.palette.text.tertiary,variant:"xsSemiBold",children:"Actions"})})]}),f.jsx(O.Stack,{children:Array.isArray(h)&&h?.map((y,v)=>f.jsxs(O.Stack,{direction:"row",flex:1,justifyContent:"normal",alignItems:"flex-start",children:[f.jsx(O.Box,{width:n?"29.5%":"44%",px:1,py:1.5,children:f.jsx(En,{name:`${t}.${v}.key`,control:u,rules:{required:"Key is required",validate:T=>g.includes(T)?`${T} is a reserved keyword and cannot be used.`:T==null||T===""?"Key cannot be empty":!0},render:({field:T})=>f.jsx(io,{...T,label:o?"":"Key",fullWidth:!0,id:e,viewOnly:r,showSuggestions:!1,isLoop:i,editorId:`${s}-key_${a}-${v}`,required:!0,placeholder:"Key",errorMsg:cT(p,`${t}.${v}.key`)?.message,excludePayloadSuggestions:l})})}),n,f.jsx(O.Box,{sx:{width:n?"29.5%":"44%",minWidth:0},px:1,py:1.5,children:f.jsx(En,{name:`${t}.${v}.value`,control:u,rules:{required:"Value is required",validate:T=>g.includes(T)?`${T} is a reserved keyword and cannot be used.`:T==null||T===""?"Value cannot be empty":!0},render:({field:T})=>f.jsx(io,{...T,showSuggestions:!0,editorId:`${s}-value_${a}-${v}`,label:o?"":"Value",isLoop:i,fullWidth:!0,viewOnly:r,type:"text",top:"6px",required:!0,id:e,placeholder:"Value",errorMsg:cT(p,`${t}.${v}.value`)?.message,excludePayloadSuggestions:l})})}),f.jsx(O.Box,{width:n?"11.5%":"12%",px:1,py:1.5,sx:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:f.jsx(O.IconButton,{sx:{top:0,p:.75,"& path":{fill:A.palette.neutral.solid.bg},"&:hover path":{fill:A.palette.error[60]},"&:hover":{backgroundColor:"transparent"}},disabled:r,color:"error",onClick:()=>E(v),children:f.jsx(Ue,{width:20,height:20,src:"ic_delete"})})})]},`bulk-edit-${v}`))})]}),f.jsx(O.Tooltip,{title:"Add value set",arrow:!0,children:f.jsx("span",{children:f.jsxs(O.IconButton,{onClick:()=>m(),sx:{mt:Ot(h)?0:1.5,fontSize:"1rem","&:hover":{color:A.palette.primary[50],"& .MuiTypography-root":{color:A.palette.primary[50]},"& svg path":{fill:A.palette.primary[50]}}},disableFocusRipple:!0,disableTouchRipple:!0,disableRipple:!0,disabled:r,color:"primary",children:[f.jsx(Ue,{src:"ic_plus",width:16,height:16,sx:{path:{fill:A.palette.primary[60]}}}),f.jsx(O.Typography,{sx:{ml:.5,lineHeight:"20px"},variant:"smMedium",color:A.palette.primary[60],children:"Add"})]})})})]})},GFe=({name:e,viewOnly:t,type:n,isLoop:r,suggestionsData:i,fieldName:o})=>{const{control:s,formState:{errors:a},watch:l}=Gn(),{loopSuggestionsData:u={}}=ht.useSelector(d=>d.loopActivity),c=l("properties.body_type");return f.jsx(En,{name:e,control:s,rules:{required:`${o} is required`,validate:d=>{if(d.indexOf("{{")!==-1&&d.lastIndexOf("}}")!==-1&&d.lastIndexOf("}}")>d.indexOf("{{"))return!0;try{JSON.parse(d)}catch{return"The provided value is not valid JSON."}return!0}},render:({field:d})=>f.jsx(Do,{size:"md",language:c==="xml"?"xml":"json",showSuggestions:!0,viewOnly:t,id:`${n}-${d}`,suggestionsData:r?u:i,showExpandOption:!0,handleChange:p=>{d.onChange(p)},value:typeof d.value=="object"?JSON.stringify(d.value,null,2):d.value,error:!!cT(a,e)?.message,errorMsg:cT(a,e)?.message})})},pa=Co(HFe),WFe=e=>{const{id:t,isLoop:n,control:r,bodyTypeWatch:i,method:o,...s}=e;return i==="form-data"||i==="x-www-form-urlencoded"?f.jsx(pa,{id:t,isLoop:n,field:"body",type:"apiActivity",title:"Body",fieldName:"Body",valueTypeSelector:i==="form-data"&&f.jsx(O.Stack,{width:"29.5%",px:1,py:1.5,children:f.jsx(O.Select,{name:"value_type",value:"text",sx:{".MuiInputBase-inputSizeSmall":{height:"auto !important"}},children:l4.length?l4.map(a=>f.jsx(O.MenuItem,{value:a.value,sx:{minHeight:"40px !important","@media (min-width: 600px)":{minHeight:"40px !important"}},children:a.title},a.value)):f.jsx(O.MenuItem,{disabled:!0,sx:{p:"14px 16px"},children:f.jsx(O.Typography,{variant:"smNormal",children:"No options"})})})}),...s}):["raw","xml"].includes(i)?f.jsx(pa,{id:t,isLoop:n,field:"body",type:"apiActivity",title:"Body",showKeyValuePair:!1,fieldName:"Body",...s}):null},QFe=C.forwardRef((e,t)=>{const n=ht.useDispatch(),r=O.useTheme(),{type:i,lambdaUrls:o,id:s,isLoop:a=!1,VORTEX_MAIN_URL:l,ENTITY_ID:u,viewOnly:c=!1}=e,[d,p]=C.useState(""),[h,A]=C.useState(!1),[g,m]=C.useState("Query Params"),[E,y]=C.useState(!1),{setValue:v,control:T,watch:_,trigger:x}=Gn(),[b,w,D,I]=_(["properties","type","properties.body_type","properties.method"]),P=async N=>{y(!0);const L=Yt(l,`/v1.0/${u}`,"/utility/curl");try{const B=(await Xt.post(L,{data:{curl:N}}))?.data?.data,Q=vFe(N),V=G=>typeof G=="string"?(R=>{const j=[];return R.split("&").forEach($=>{const[Y,z]=$.split("=");j.push({key:Y,value:z})}),j})(G):typeof G=="object"&&G!==null&&!Array.isArray(G)?Yo(G):G,q=G=>Q==="none"?null:Q==="raw"&&G!==null?JSON.stringify(G,null,2):Q==="xml"&&G!==null?typeof G=="string"?G:"":V(G),F={method:B?.method?.toLowerCase()||"",endpoint:B?.url,headers:Yo(B?.headers||{}),body:q(B?.data)||{},state_params:Yo(B?.state_params||{}),query_params:Yo(B?.queries||{}),body_type:Q};v("properties",{...b,...F}),n({type:zn,payload:{open:!0,title:"cURL imported successfully",type:"success"}}),A(!1),p("")}catch(M){cn(M,n)}finally{y(!1)}},k=async N=>{if(!N){n({type:zn,payload:{open:!0,title:"Please enter cURL",type:"error"}});return}P(N)};return f.jsxs(O.Stack,{gap:2.5,children:[f.jsx(eo,{rightElement:w==="apiActivity"&&f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:()=>{A(!0)},disabled:c,sx:{textTransform:"none","&.MuiButtonBase-root.MuiButton-root.MuiButton-outlined":{color:r.palette.primary.main,borderColor:r.palette.primary[30]}},children:"Import cURL"}),children:f.jsx(O.Grid,{container:!0,gap:1.5,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.method",control:T,meta:{options:HO,displayName:"Method",searchFieldPlaceholder:"Search Method",placeholder:"Select Method",description:"The HTTP Method to be used for the request"},validationRules:{required:"Method is required"},viewOnly:c,id:i})})})}),b.method&&f.jsx(O.Divider,{}),b.method&&f.jsxs(Rr,{children:[f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:w===Ke.SERVERLESS?f.jsx(Zt,{required:!0,name:"properties.endpoint",control:T,meta:{options:o,displayName:"Endpoint",searchFieldPlaceholder:"Search Endpoint",description:"The URL of the HTTP Request.",placeholder:"Select Endpoint"},validationRules:{required:"Endpoint is required"},viewOnly:c,id:i}):f.jsx(Wn,{required:!0,id:s,name:"properties.endpoint",control:T,meta:{displayName:"Base URL",description:"The URL of the HTTP Request.",placeholder:"Enter URL"},validationRules:{required:"Base URL is required"},viewOnly:c,editorId:`${i}-base_url-${a}`,showSuggestions:!0,isLoop:a})}),f.jsx(UFe,{variant:"normal",tabs:[{title:"Query Params",icon:f.jsx(O.Tooltip,{arrow:!0,title:"Query params are key-value pairs added to a URL to filter or specify data in a request.",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})},{title:"State Params",icon:f.jsx(O.Tooltip,{arrow:!0,title:"Path params are variables embedded directly in the URL path to identify specific resources (e.g., an ID).",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})},{title:"Headers",icon:f.jsx(O.Tooltip,{arrow:!0,title:"Headers are key-value pairs sent along with the HTTP request or response to pass metadata such as authentication tokens, content type, or client information.",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})},{title:"Body",icon:f.jsx(O.Tooltip,{arrow:!0,title:"The body is the payload of the request, typically used in POST, PUT, or PATCH methods to send data to the server.",children:f.jsx(O.Box,{sx:{cursor:"pointer"},children:f.jsx(Ue,{src:"ic_info"})})})}],selectedTab:g,setSelectedTab:m}),g==="Query Params"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(pa,{id:s,field:"query_params",type:"apiActivity",title:"Query Params",viewOnly:c,isLoop:a,name:"properties.query_params"})}),g==="State Params"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(pa,{id:s,isLoop:a,viewOnly:c,field:"state_params",type:"apiActivity",title:"State Params",name:"properties.state_params"})}),g==="Headers"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(pa,{id:s,field:"headers",viewOnly:c,isLoop:a,type:"apiActivity",title:"Headers",name:"properties.headers"})}),g==="Body"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsxs(O.Grid,{direction:"column",container:!0,gap:1,children:[f.jsx(Zt,{required:!0,name:"properties.body_type",control:T,meta:{options:oue,displayName:"Body Type",searchFieldPlaceholder:"Search Body type",placeholder:"Select Body type"},validationRules:{required:"Body type is required"},viewOnly:c,id:i,handleChange:N=>{const{value:L}=N;x("properties.body"),L==="none"?v("properties.body",null):L==="raw"?v("properties.body","{}"):L==="form-data"?v("properties.body",Yo({})):L==="x-www-form-urlencoded"?v("properties.body",Yo({})):L==="xml"&&v("properties.body",""),v("properties.headers",TFe(L,b))}}),f.jsx(WFe,{id:s,isLoop:a,viewOnly:c,name:"properties.body",control:T,method:I,bodyTypeWatch:D})]})},D),!a&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Ni,{viewOnly:c,type:i})})]}),f.jsx(vo,{variant:"medium",open:h,icon:f.jsx(Ue,{width:24,height:24,src:"ic_download",sx:{path:{fill:r.palette.primary.main}}}),title:"Import cURL",handleClose:()=>{A(!1)},content:f.jsxs(O.Stack,{flexDirection:"column",gap:.5,width:"100%",children:[f.jsx(O.TextField,{name:"curl",disabled:E||c,fullWidth:!0,multiline:!0,rows:10,variant:"outlined",placeholder:"Paste cURL here",value:d,onChange:N=>{p(N.target.value)}}),f.jsxs(O.Stack,{flexDirection:"row",alignItems:"center",sx:{mt:.5},children:[f.jsx(Ue,{src:"ic_info"}),f.jsx(O.Typography,{variant:"smMedium",sx:{ml:1,fontStyle:"italic"},children:"This will overwrite any changes you have already made."})]})]}),footer:f.jsx(O.Stack,{flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:f.jsx(O.Box,{children:f.jsx(O.Button,{variant:"contained",onClick:()=>{k(d)},disabled:c,sx:{fontSize:"14px",boxShadow:N=>N.shadows[0],padding:"2px 16px"},startIcon:E&&f.jsx(O.CircularProgress,{color:"inherit",size:16}),children:"Import"})})})})]})]})}),Zz={Folder:[{name:"Created",value:"storage.folder.created"}],File:[{name:"Uploaded",value:"storage.file.uploaded"}]},zFe=C.forwardRef((e,t)=>{const{viewOnly:n=!1}=e,{setValue:r}=Gn(),{control:i}=Gn(),o={"storage.file.uploaded":"Workflow will be triggered when a new file is uploaded to the boltic storage.","storage.file.updated":"The content or metadata of an existing file is updated.","storage.file.deleted":"A file has been permanently deleted from the storage.","storage.file.public":"A file has been made publicly accessible.","storage.file.private":"A file's public access has been revoked, making it private.","storage.folder.created":"Workflow will be triggered when a new folder is created in the boltic storage.","storage.folder.deleted":"A folder has been permanently deleted from the storage."},s=[...Zz.Folder.map(a=>({title:"Folder "+a.name,value:a.value})),...Zz.File.map(a=>({title:"File "+a.name,value:a.value}))];return f.jsx(Rr,{children:f.jsx(Zt,{name:"properties.events",control:i,meta:{options:s.map(a=>({...a,description:o[a.value]})),displayName:"Events",searchFieldPlaceholder:"Search",description:"Select Boltic storage event(s) when you want to trigger workflow",placeholder:"Select Events"},validationRules:{validate:a=>a.length===0?"Events is required":!0},multiple:!0,renderFieldValue:a=>Array.isArray(a)?a.map(l=>l?.value):[],handleChange:a=>{r(a?.field,a?.value?.map(l=>l.value?l:{value:l}))},viewOnly:n,getSelectedValue:a=>Array.isArray(a)?a?.map(l=>s.find(u=>u.value===l))?.filter(l=>l?.title):[],required:!0})})}),XFe=C.forwardRef((e,t)=>{const n=O.useTheme(),{setValue:r,control:i,watch:o}=Gn(),s=o("properties"),a={folder_name:""},l={file_content:"",file_name:"",folder_path:"",overwrite:!1,is_public:!1},{id:u,isLoop:c=!1,viewOnly:d=!1,type:p}=e,h=g=>m=>{if(s?.event==="upload_file"){if(g==="file_name"){if(m?.trim()==="")return"File name is required";if(m?.trim()?.includes("/"))return"'/' is not allowed in file name."}return g==="file_content"&&m?.trim()===""?"File content is required":g==="expire_in"&&(m<1||m>10080)?"Expiry values between 1 to 10080 are accepted.":!0}else if(s?.event==="create_folder"){if(m?.trim()==="")return"Folder name can not be empty";const E=/^[A-Za-z0-9 _-]*$/,y=/{{[^{}]+}}/g,v=m.replace(y,"");if(!gue(m)&&!E.test(v))return"Folder name should not contain special characters [!@#$%^&*()+{}[]:;<>,.?~/]."}return!0},A=()=>({create_folder:[{required:!0,type:"text",label:"Folder Name",fieldName:"folder_name",placeholder:""}],upload_file:[{required:!0,type:"text",label:"File Content",fieldName:"file_content",placeholder:""},{required:!0,type:"text",label:"File Name",fieldName:"file_name",placeholder:"filename.csv"},{required:!1,type:"text",label:"Folder Path",fieldName:"folder_path",placeholder:"path/to/folder"},{required:!1,type:"checkbox",label:"Overwrite existing file with same name",fieldName:"overwrite",placeholder:""},{required:!1,type:"checkbox",label:"Generate Shareable Link",fieldName:"is_public",placeholder:""},{required:!1,type:"number",label:"Expires in",fieldName:"expire_in",placeholder:"Enter minute(s)",helperText:"Default is 60min"}]}[s.event]||[]).map(({label:E,fieldName:y,type:v,required:T,placeholder:_})=>{if(v==="text")return f.jsx(Wn,{name:`properties.${s.event}.${y}`,control:i,meta:{displayName:E,description:br(p,y),placeholder:_},validationRules:{validate:h(y)},editorId:`${v}-bs-activity-${y}`,id:u,required:T,isLoop:c,viewOnly:d,showSuggestions:!0},y);if(v=="number"&&s?.upload_file?.is_public)return f.jsx(Wn,{name:`properties.${s.event}.${y}`,control:i,meta:{displayName:E,description:br(p,y),placeholder:_},validationRules:{validate:h(y)},editorId:`${v}-bs-activity-${y}`,id:u,fieldType:"number",required:T,isLoop:c,viewOnly:d,showSuggestions:!0},y);if(v==="checkbox")return f.jsx(O.Box,{sx:{width:"100%"},children:f.jsx(En,{name:`properties.upload_file.${y}`,control:i,rules:{validate:h(y)},render:({field:{value:x,...b},fieldState:{error:w}})=>f.jsxs(O.FormGroup,{children:[f.jsx(O.FormControlLabel,{control:f.jsx(O.Checkbox,{...b,icon:f.jsx(Ue,{src:"ic_unchecked",width:16,height:16,sx:{path:{fill:n.palette.common.white}}}),checkedIcon:f.jsx(Ue,{src:"ic_checked",width:16,height:16}),sx:{p:0,"& .MuiSvgIcon-root":{fontSize:D=>D.typography.xlMedium.fontSize}},readOnly:d,checked:x}),label:E}),w?.message&&f.jsx(O.FormHelperText,{children:w.message})]})})},y)});return f.jsx(Rr,{children:f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.event",control:i,meta:{options:a4,displayName:"Event",searchFieldPlaceholder:"Search",description:"Select a event",placeholder:"Select a event"},validationRules:{required:"Event is required"},viewOnly:d,id:"event",handleChange:g=>{const{value:m}=g;m=="create_folder"?r("properties",{...s,create_folder:a,event:m}):r("properties",{...s,upload_file:l,event:m})},renderValueUi:g=>{const m=a4.find(E=>E.value===g);return m?m.title:""}})}),A(),!c&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Ni,{viewOnly:d,type:p})})]})})}),bP=({type:e="",name:t,title:n,options:r,required:i,loadDataFromApi:o,loadingState:s,show:a=!1,secretType:l="",onFocus:u,TESSERACT_MAIN_URL:c="",FRONTEND_URL:d="",ENTITY_ID:p="",onTextInputChange:h,onAddButtonClick:A,buttonName:g="",viewOnly:m=!1,validationRules:E=null,control:y,handleChange:v=null,...T})=>{const[_,x]=C.useState(!1);return C.useEffect(()=>{x(!!s)},[s]),f.jsx(Zt,{required:i,name:t,control:y,renderFieldValue:b=>Array.isArray(b)?b?.length>0&&b[0]&&r.some(w=>w.id===b[0]?.id)?b[0]?.id:"":r.some(w=>w.value===b)?b:"",meta:{options:Mr(r),displayProps:{loading:_},displayName:n,TESSERACT_MAIN_URL:c,FRONTEND_URL:d,ENTITY_ID:p,addNewButtonText:g,searchFieldPlaceholder:"Search",authType:l,description:br(e,t),handleSearchOptions:b=>{h&&h(x,b)},htmlProps:{showAddNew:a,onClickAddNew:A},showSearchOnLoad:!0,placeholder:`Select ${n?.toLowerCase()}`},validationRules:E,viewOnly:m,id:t,onOpen:()=>{o&&(x(!0),o(x,""))},onFocus:u,handleChange:v,...T})},YFe=C.forwardRef((e,t)=>{const n=O.useTheme(),[r,i]=C.useState(!1),[o,s]=C.useState(!1),[a,l]=C.useState([]),[u,c]=C.useState([]),[d,p]=C.useState([]),[h,A]=C.useState([]),[g,m]=C.useState(!1),[E,y]=C.useState(!1),v=ht.useDispatch(),{ATHENA_MAIN_URL:T,FRONTEND_URL:_,ENTITY_ID:x,viewOnly:b=!1}=e,{control:w,watch:D,setValue:I,getValues:P}=Gn(),k=D("properties"),[N,L,M]=D(["properties.field","properties.events","properties.table"]),B=(R=null,j=null,$=null,Y=null)=>{const z=P("properties.database")||"";let U=(Y!==null?Y:h).find(ae=>ae.id===z);if(!U&&z&&(U={id:z,resource_id:"boltic"}),!z||!U){$&&$(!1);return}const X=Yt(T,`/list?db_id=${z}`),J=[{field:"name",operator:"ILIKE",values:[""]},{field:"resource_id",operator:"=",values:[U.resource_id||"boltic"]},{field:"db_id",operator:"=",values:[z]}],te={data:{page:{page_no:1,page_size:999},filters:J,sort:[{field:"created_at",direction:"desc"}]}};if(R&&Array.isArray(R)){const ae=R.find(re=>re.field==="name");if(ae){te.data.filters[0]=ae;const re=R.filter(ue=>!["name","resource_id","db_id"].includes(ue.field));te.data.filters.push(...re)}}Xt.post(X,te).then(ae=>{if(l(ae?.data?.data||[]),j){j=ae?.data?.data?.filter(Te=>Te?.id===j);const re=D("properties"),{payload:ue,...Oe}=re||{};I("properties",{...Oe,table:j})}}).catch(ae=>{cn(ae,v)}).finally(()=>{$&&$(!1)})},Q=async()=>{if(!T){m(!1);return}m(!0);const R=Yt(T,"/connectors/list");Xt.post(R,{data:{page:{page_no:1,page_size:999},filters:[],sort:[]}}).then(j=>{m(!1);const $=[{id:"boltic",name:"Boltic Cloud"},...j?.data?.data||[]];p($);const z=D("properties")?.connector;if(!z&&$.length>0){const H=$[0].id;I("properties.connector",H),V(H)}else z&&V(z)}).catch(j=>{cn(j,v),m(!1)})},V=async R=>{if(!R)return[];y(!0);try{const j={page:{page_no:1,page_size:1e3},filters:[{field:"status",operator:"=",values:["ACTIVE"]}],sort:[]},$=`${T}/databases/list?connector_id=${R}`,z=(await Xt.post($,{data:j}))?.data?.data||[];A(z);const U=D("properties")?.database;if(!U&&z.length>0){const X=z[0].id;I("properties.database",X),setTimeout(()=>{B()},100)}else U&&setTimeout(()=>{B(null,null,null,z)},100);return z}catch(j){return cn(j,v),[]}finally{y(!1)}},q=()=>{i(!0);const R=P("properties.database")||"",j=P("properties.connector")||"boltic";let $=h.find(U=>U.id===R);!$&&R&&($={id:R,resource_id:"boltic"});const Y=$?.resource_id||"boltic",z={name:"Workflow Table",is_ai_generated_schema:!0},H={};R&&(H.db_id=R),H.resource_id=Y,Xt.post(T,{data:z,params:H}).then(U=>{U?.data?.data?.id&&(R==""&&V(j),B(null,U?.data?.data?.id)),v({type:zn,payload:{open:!0,title:"Table created successfully",type:"success"}}),i(!1);const X=U?.data?.data?.id,J=new URLSearchParams({connector:j,database:R,resource:Y}).toString(),te=`${_}/accounts/${x}/tables/create/${X}?${J}`;window.open(te)}).catch(U=>{i(!1),v({type:zn,payload:{open:!0,title:"Table creation failed",type:"error"}}),cn(U,v)})};C.useEffect(()=>{N?.length>0&&M.length>0&&G(M[0]?.id)},[]),C.useEffect(()=>{L?.some(j=>j?.value==="table.button.triggered"||j?.value==="table.field.updated")&&M?.length>0&&G(M[0]?.id)},[JSON.stringify(L),JSON.stringify(M)]);const F=[...iue.Record.map(R=>({title:R.name,value:R.value,description:R.description}))],G=async R=>{const j=k?.database||"";if(!j){s(!1);return}s(!0);const $=Yt(T,`/${R}/fields/list?db_id=${j}`);try{let Y=await Xt.post($,{data:{page:{page_no:1,page_size:999},filters:[],sort:[{field:"name",direction:"desc"}]}});Y=Y.data?.data?Y.data.data:[];const z=Y.filter(H=>!["created_at","updated_at","id","created_by","updated_by"].includes(H.name));c(z),s(!1)}catch(Y){cn(Y,v)}finally{s(!1)}},W=ba((R,j)=>{B(R=R,null,j)},300);return C.useEffect(()=>{Q()},[]),C.useEffect(()=>{if(N===null){const{field:R,...j}=D("properties");I("properties",j)}},[N]),f.jsx(Rr,{children:f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.connector",control:w,meta:{options:(d||[]).map(R=>({value:R.id,title:R.name||R.id})),displayName:"Connector",searchFieldPlaceholder:"Search Connector",placeholder:"Select Connector",isLoading:g},validationRules:{required:"Connector is required"},viewOnly:b,fullWidth:!0,id:"connector",required:!0,handleChange:async R=>{const{value:j}=R;I("properties.connector",j),I("properties.database",""),I("properties.table",[]),I("properties.events",[]),I("properties.field",null),I("properties.button",[]),A([]),l([]),c([]),j&&await V(j)}})})}),k?.connector&&f.jsxs(O.Grid,{item:!0,xs:12,children:[f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.database",control:w,meta:{options:(h||[]).map(R=>({value:R.id,title:R.db_name||R.id,...k?.connector&&k.connector!=="boltic"&&R?.resource_name?{description:R.resource_name}:{}})),displayName:"Database",searchFieldPlaceholder:"Search Database",placeholder:"Select Database",isLoading:E},viewOnly:b,fullWidth:!0,id:"database",required:!0,handleChange:R=>{const{value:j}=R;I("properties.database",j),I("properties.table",[]),I("properties.events",[]),I("properties.field",null),I("properties.button",[]),l([]),c([]),j&&B()}})}),!E&&h?.length===0&&f.jsx(O.Typography,{variant:"caption",sx:{mt:.5,display:"block",color:"text.secondary"},children:"No database is present, please create your first table to create a database."})]}),(k?.database||k?.database=="")&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(bP,{type:"bolticTable",viewOnly:b,title:"Table",required:!0,onTextInputChange:async(R,j)=>{R(!0),W([{field:"name",operator:"ILIKE",values:[j]}],R)},onAddButtonClick:q,buttonName:"Create New Table",options:a,loadingState:r,loadDataFromApi:async R=>{a?.length?R(!1):B(null,null,R)},handleChange:R=>{const j=a?.find($=>$?.id===R?.value)||null;I("properties.table",[j],{shouldValidate:!0}),(k.events||[]).map($=>$?.value).filter(Boolean).indexOf("table.button.triggered")!==-1&&G(j?.id)},name:"properties.table",control:w,validationRules:{validate:R=>!R||!Array.isArray(R)||R.length===0?"Table is required":!0},show:!0})})}),!Ot(k.table)&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.events",control:w,multiple:!0,renderFieldValue:R=>R?.map(j=>j?.value),meta:{options:F.map(R=>{const j=(k.events||[]).map(H=>H?.value).filter(Boolean),$=j.includes("table.field.updated"),Y=j.includes("table.record.updated"),z=$&&R.value==="table.record.updated"||Y&&R.value==="table.field.updated";return{...R,disabled:z}}),displayName:"Events",searchFieldPlaceholder:"Search",description:"Select Boltic table event(s) when you want to trigger the workflow.",placeholder:"Select Events"},validationRules:{validate:{required:R=>!R||R.length===0?"Events is required":!0}},viewOnly:b,id:"events",handleChange:R=>{const j=[...R.value],$=j.pop();j.includes($)?I("properties.events",j.filter(z=>z!==$).map(z=>({value:z})),{shouldValidate:!0}):I("properties.events",[...j.map(z=>({value:z})),{value:$}],{shouldValidate:!0})},renderValueUi:R=>R?.length>0&&R?.[0]?f.jsx(O.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:R.map(j=>F.find($=>$.value===j)).filter(j=>j?.title).map(j=>f.jsx(O.Chip,{label:j.title},j.title))}):f.jsx(O.Typography,{sx:{color:"neutral.solid.bg",fontSize:"14px",":hover":{opacity:.7}},children:"Select Events"}),renderOption:(R,j)=>f.jsxs(O.MenuItem,{value:j.value,disabled:j.disabled,sx:{p:"8px !important",mx:1,height:"auto","&.Mui-selected":{"& .MuiTypography-root":{color:$=>$.palette.primary.main}}},children:[f.jsx(O.Checkbox,{sx:{p:0},icon:f.jsx(Ue,{src:"ic_unchecked",width:16,height:16,sx:{path:{fill:n.palette.common.white}}}),checkedIcon:f.jsx(Ue,{src:"ic_checked",width:16,height:16}),checked:!!(Array.isArray(k.events)&&k.events.find($=>j.value===$.value))}),f.jsx(O.ListItemText,{primary:j.title,secondary:j.description})]},j.value)})}),L?.map(R=>R?.value).filter(Boolean).indexOf("table.button.triggered")!==-1&&M?.[0]&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(Zt,{required:!0,name:"properties.button",control:w,renderFieldValue:R=>R?.map(j=>j?.value),meta:{options:Mr(u),displayProps:{loading:o},displayName:"Trigger button",value:"",searchFieldPlaceholder:"Search",renderFieldValue:R=>u?.find(j=>j?.id===R?.[0]?.id)||null,placeholder:"Select Trigger Button"},renderValueUi:R=>f.jsx(O.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:R?.map(j=>Mr(u).find($=>$.value===j)).filter(j=>j?.title).map(j=>f.jsx(O.Chip,{label:j.title},j.title))}),handleChange:R=>{const{field:j,value:$}=R;Ot($)||I(j,[$],{shouldValidate:!0})},validationRules:{required:"Button is required",validate:R=>L?.some(j=>j?.value==="table.button.triggered")&&(!R||R.length==0)?"Trigger button is required":!0},viewOnly:b,id:"button",renderOption:(R,j)=>f.jsxs(O.MenuItem,{value:j.value,disabled:j.disabled,sx:{p:"8px !important",mx:1,height:"auto","&.Mui-selected":{"& .MuiTypography-root":{color:$=>$.palette.primary.main}}},children:[f.jsx(O.Checkbox,{sx:{p:0},checked:!!(Array.isArray(k.button)&&k.events.find($=>j.value===$.value))}),f.jsx(O.ListItemText,{primary:j.title,secondary:j.description})]},j.value)})}),L?.map(R=>R?.value).filter(Boolean).indexOf("table.field.updated")!==-1&&M?.[0]&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.field",control:w,meta:{options:Mr(u),displayName:"Trigger field",searchFieldPlaceholder:"Search for authentication type",displayProps:{loading:o},description:"Choose a field to trigger the workflow when it changes.",placeholder:"Select Trigger Field"},renderFieldValue:R=>R?.length>0&&u?.some(j=>j?.id===R[0]?.id)?R[0]?.id:"",validationRules:{validate:R=>L?.some(j=>j?.value==="table.field.updated")&&(!R||R.length==0)?"Field is required":!0},viewOnly:b,id:"field",required:!0,handleChange:R=>{const{field:j,value:$}=R,Y=u?.find(z=>z?.id===$)||null;Ot(Y)?I(j,null,{shouldValidate:!0}):I(j,[Y],{shouldValidate:!0})}})})})]})})});var dT={exports:{}},qFe=dT.exports,Jz;function KFe(){return Jz||(Jz=1,(function(e,t){(function(n,r){e.exports=r()})(qFe,(function(){var n="week",r="year";return function(i,o,s){var a=o.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(r).add(1,r).date(u),d=s(this).endOf(n);if(c.isBefore(d))return 1}var p=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(dT)),dT.exports}var ZFe=KFe();const JFe=Ur(ZFe);var fT={exports:{}},e6e=fT.exports,eX;function t6e(){return eX||(eX=1,(function(e,t){(function(n,r){e.exports=r()})(e6e,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},u=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(E){this[m]=+E}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(E){if(!E||E==="Z")return 0;var y=E.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v})(m)}],p=function(m){var E=l[m];return E&&(E.indexOf?E:E.s.concat(E.f))},h=function(m,E){var y,v=l.meridiem;if(v){for(var T=1;T<=24;T+=1)if(m.indexOf(v(T,0,E))>-1){y=T>12;break}}else y=m===(E?"pm":"PM");return y},A={A:[a,function(m){this.afternoon=h(m,!1)}],a:[a,function(m){this.afternoon=h(m,!0)}],Q:[i,function(m){this.month=3*(m-1)+1}],S:[i,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[o,c("day")],Do:[a,function(m){var E=l.ordinal,y=m.match(/\d+/);if(this.day=y[0],E)for(var v=1;v<=31;v+=1)E(v).replace(/\[|\]/g,"")===m&&(this.day=v)}],w:[s,c("week")],ww:[o,c("week")],M:[s,c("month")],MM:[o,c("month")],MMM:[a,function(m){var E=p("months"),y=(p("monthsShort")||E.map((function(v){return v.slice(0,3)}))).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(m){var E=p("months").indexOf(m)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(m){this.year=u(m)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(m){var E,y;E=m,y=l&&l.formats;for(var v=(m=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,P,k){var N=k&&k.toUpperCase();return P||y[k]||n[k]||y[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,M,B){return M||B.slice(1)}))}))).match(r),T=v.length,_=0;_<T;_+=1){var x=v[_],b=A[x],w=b&&b[0],D=b&&b[1];v[_]=D?{regex:w,parser:D}:x.replace(/^\[|\]$/g,"")}return function(I){for(var P={},k=0,N=0;k<T;k+=1){var L=v[k];if(typeof L=="string")N+=L.length;else{var M=L.regex,B=L.parser,Q=I.slice(N),V=M.exec(Q)[0];B.call(P,V),I=I.replace(V,"")}}return(function(q){var F=q.afternoon;if(F!==void 0){var G=q.hours;F?G<12&&(q.hours+=12):G===12&&(q.hours=0),delete q.afternoon}})(P),P}}return function(m,E,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var v=E.prototype,T=v.parse;v.parse=function(_){var x=_.date,b=_.utc,w=_.args;this.$u=b;var D=w[1];if(typeof D=="string"){var I=w[2]===!0,P=w[3]===!0,k=I||P,N=w[2];P&&(N=w[2]),l=this.$locale(),!I&&N&&(l=y.Ls[N]),this.$d=(function(Q,V,q,F){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*Q);var G=g(V)(Q),W=G.year,R=G.month,j=G.day,$=G.hours,Y=G.minutes,z=G.seconds,H=G.milliseconds,U=G.zone,X=G.week,J=new Date,te=j||(W||R?1:J.getDate()),ae=W||J.getFullYear(),re=0;W&&!R||(re=R>0?R-1:J.getMonth());var ue,Oe=$||0,Te=Y||0,se=z||0,ie=H||0;return U?new Date(Date.UTC(ae,re,te,Oe,Te,se,ie+60*U.offset*1e3)):q?new Date(Date.UTC(ae,re,te,Oe,Te,se,ie)):(ue=new Date(ae,re,te,Oe,Te,se,ie),X&&(ue=F(ue).week(X).toDate()),ue)}catch{return new Date("")}})(x,D,b,y),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),k&&x!=this.format(D)&&(this.$d=new Date("")),l={}}else if(D instanceof Array)for(var L=D.length,M=1;M<=L;M+=1){w[1]=D[M-1];var B=y.apply(this,w);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}M===L&&(this.$d=new Date(""))}else T.call(this,_)}}}))})(fT)),fT.exports}var n6e=t6e();const r6e=Ur(n6e);var pT={exports:{}},i6e=pT.exports,tX;function o6e(){return tX||(tX=1,(function(e,t){(function(n,r){e.exports=r()})(i6e,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,a=s.format;o.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=(function(d,p){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(h,A,g){var m=g&&g.toUpperCase();return A||p[g]||n[g]||p[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(E,y,v){return y||v.slice(1)}))}))})(l,u===void 0?{}:u);return a.call(this,c)}}}))})(pT)),pT.exports}var s6e=o6e();const a6e=Ur(s6e);var hT={exports:{}},l6e=hT.exports,nX;function u6e(){return nX||(nX=1,(function(e,t){(function(n,r){e.exports=r()})(l6e,(function(){return function(n,r,i){r.prototype.isBetween=function(o,s,a,l){var u=i(o),c=i(s),d=(l=l||"()")[0]==="(",p=l[1]===")";return(d?this.isAfter(u,a):!this.isBefore(u,a))&&(p?this.isBefore(c,a):!this.isAfter(c,a))||(d?this.isBefore(u,a):!this.isAfter(u,a))&&(p?this.isAfter(c,a):!this.isBefore(c,a))}}}))})(hT)),hT.exports}var c6e=u6e();const d6e=Ur(c6e);var AT={exports:{}},f6e=AT.exports,rX;function p6e(){return rX||(rX=1,(function(e,t){(function(n,r){e.exports=r()})(f6e,(function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return o.bind(this)(s);var u=this.$utils(),c=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}}));return o.bind(this)(c)}}}))})(AT)),AT.exports}var h6e=p6e();const A6e=Ur(h6e),iX=new Set;function oX(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
436
436
|
`):e;iX.has(n)||iX.add(n)}Sn.extend(a6e),Sn.extend(JFe),Sn.extend(d6e),Sn.extend(A6e);const m6e={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},g6e={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},CP=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
437
437
|
`),sX=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
438
438
|
`),E6e=(e,t)=>t?(...n)=>e(...n).locale(t):e;class Xl{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=m6e,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasUTCPlugin=()=>typeof Sn.utc<"u",this.hasTimezonePlugin=()=>typeof Sn.tz<"u",this.isSame=(r,i,o)=>{const s=this.setTimezone(i,this.getTimezone(r));return r.format(o)===s.format(o)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Sn.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=Sn.tz.guess();return i!=="UTC"?Sn.tz(r,i):Sn(r)}return Sn(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(CP);return Sn.utc(r)},this.createTZDate=(r,i)=>{if(!this.hasUTCPlugin())throw new Error(CP);if(!this.hasTimezonePlugin())throw new Error(sX);const o=r!==void 0&&!r.endsWith("Z");return Sn(r).tz(this.cleanTimezone(i),o)},this.getLocaleFormats=()=>{const r=Sn.Ls,i=this.locale||"en";let o=r[i];return o===void 0&&(process.env.NODE_ENV!=="production"&&oX(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=r.en),o.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const i=this.getTimezone(r);if(i!=="UTC"){const o=r.tz(this.cleanTimezone(i),!0);if(o.$offset===(r.$offset??0))return r;r.$offset=o.$offset}return r},this.date=(r,i="default")=>{if(r===null)return null;let o;return i==="UTC"?o=this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?o=this.createSystemDate(r):o=this.createTZDate(r,i),this.locale===void 0?o:o.locale(this.locale)},this.getInvalidDate=()=>Sn(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const i=r.$x?.$timezone;if(i)return i}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(CP);return r.utc()}if(i==="system")return r.local();if(!this.hasTimezonePlugin()){if(i==="default")return r;throw new Error(sX)}return Sn.tz(r,this.cleanTimezone(i))},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.dayjs(r,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const i=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,u)=>l||u.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,a,l)=>{const u=l&&l.toUpperCase();return a||i[l]||o(i[u])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>this.dayjs(r).format(i),this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.toDate().getTime()===i.toDate().getTime(),this.isSameYear=(r,i)=>this.isSame(r,i,"YYYY"),this.isSameMonth=(r,i)=>this.isSame(r,i,"YYYY-MM"),this.isSameDay=(r,i)=>this.isSame(r,i,"YYYY-MM-DD"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r>i,this.isAfterYear=(r,i)=>this.hasUTCPlugin()?!this.isSameYear(r,i)&&r.utc()>i.utc():r.isAfter(i,"year"),this.isAfterDay=(r,i)=>this.hasUTCPlugin()?!this.isSameDay(r,i)&&r.utc()>i.utc():r.isAfter(i,"day"),this.isBefore=(r,i)=>r<i,this.isBeforeYear=(r,i)=>this.hasUTCPlugin()?!this.isSameYear(r,i)&&r.utc()<i.utc():r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>this.hasUTCPlugin()?!this.isSameDay(r,i)&&r.utc()<i.utc():r.isBefore(i,"day"),this.isWithinRange=(r,[i,o])=>r>=i&&r<=o,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"year"):r.add(i,"year")),this.addMonths=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"month"):r.add(i,"month")),this.addWeeks=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"week"):r.add(i,"week")),this.addDays=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"day"):r.add(i,"day")),this.addHours=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"hour"):r.add(i,"hour")),this.addMinutes=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"minute"):r.add(i,"minute")),this.addSeconds=(r,i)=>this.adjustOffset(i<0?r.subtract(Math.abs(i),"second"):r.add(i,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,i)=>this.adjustOffset(r.set("year",i)),this.setMonth=(r,i)=>this.adjustOffset(r.set("month",i)),this.setDate=(r,i)=>this.adjustOffset(r.set("date",i)),this.setHours=(r,i)=>this.adjustOffset(r.set("hour",i)),this.setMinutes=(r,i)=>this.adjustOffset(r.set("minute",i)),this.setSeconds=(r,i)=>this.adjustOffset(r.set("second",i)),this.setMilliseconds=(r,i)=>this.adjustOffset(r.set("millisecond",i)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),o=this.endOfWeek(this.endOfMonth(r));let s=0,a=i;const l=[];for(;a<o;){const u=Math.floor(s/7);l[u]=l[u]||[],l[u].push(a),a=this.addDays(a,1),s+=1}return l},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,i])=>{const o=this.startOfYear(r),s=this.endOfYear(i),a=[];let l=o;for(;this.isBefore(l,s);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=E6e(Sn,t),this.locale=t,this.formats=ce({},g6e,n),Sn.extend(r6e)}getDayOfWeek(t){return t.day()+1}}const _P=e=>!e.field||typeof e.field=="object"&&Object.keys(e.field).length===0?"Filter name cannot be empty.":e.type?e.value?!0:"Lookup Value cannot be empty.":"Operator cannot be empty.",O6e=e=>{const t=String(e||"").toLowerCase().trim();return t?t==="smallint"||t==="integer"||t==="bigint"||t==="real"||t==="double precision"||t==="numeric"||t==="decimal"||t.startsWith("numeric(")||t.startsWith("decimal(")?"number":t==="boolean"?"checkbox":t.includes("timestamp")||t==="date"||t.startsWith("time")?"date-time":t==="json"||t==="jsonb"?"json":t.endsWith("[]")||t.startsWith("_")?"dropdown":"text":"foreign-key"},mT=e=>{const t=e?.type,n=t==="foreign-key"||e?.is_foreign_key===!0,r=e?.referenced_sql_type||e?.sql_field_type||null;return n?O6e(r):t},zd=e=>t=>{const n=mT(e),r=/{{[^{}]+}}/g;let i=!1;if(typeof t=="string"&&r.test(t)&&(i=!0,t=t.replace(r,"")),e.is_nullable===!0&&(t==null||t===void 0))return!0;if((i&&t!==""||!i)&&(e.is_nullable&&t!==""||!e.is_nullable))switch(n){case"text":case"long-text":case"encrypted":if(typeof t!="string")return`${e.name} should be a valid text input.`;if(t.length===0&&!e.is_nullable)return`${e.name} is a required field and cannot be empty.`;break;case"email":{if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return`Please provide a valid email address for ${e.name}.`;break}case"date-time":if(t!==""&&isNaN(Date.parse(t)))return`The value for ${e.name} should be a valid date and time format.`;break;case"number":case"currency":if(isNaN(t))return`${e.name} should be a numeric value.`;break;case"phone-number":{if(!/^\+?[0-9\s-]+$/.test(t))return`Please enter a valid phone number for ${e.name}.`;break}case"checkbox":if(typeof t!="boolean")return`${e.name} must be either true or false.`;break;case"dropdown":try{const o=e.selectable_items||[];if(Array.isArray(t)){if(!t.every(s=>o.includes(s)))return`All selected values for ${e.name} must be from the allowed options: ${o.join(", ")}.`}else if(typeof t=="string"){if(!o.includes(t))return`The value for ${e.name} must be one of the allowed options: ${o.join(", ")}.`}else return`${e.name} has an invalid input type. Please choose from the allowed options.`}catch{return`There seems to be an issue with the configuration of ${e.name}.`}break;case"link":{if(!/^((https?|ftp):\/\/)?(localhost|(\d{1,3}(\.\d{1,3}){3})|(([a-zA-Z\d-]+\.)+[a-zA-Z]{2,}))(\:\d+)?([\/?#][^\s]*)?$/.test(t))return`Please provide a valid URL for ${e.name}.`;break}case"json":try{typeof t=="string"&&JSON.parse(t)}catch{return`The value for ${e.name} should be a valid JSON string.`}break;default:return!0}return!0},gT=e=>{switch(e){case"text":return"Enter text";case"email":return"Enter email address";case"link":return"Enter URL";case"phone-number":return"Enter phone number";case"date-time":return"Select date and time";case"long-text":return"Enter long text";case"json":return"Enter JSON data";case"number":return"Enter number";case"currency":return"Enter amount";case"encrypted":return"Enter text (will be encrypted)";case"foreign-key":return"Enter referenced value";default:return"Enter value"}},y6e=({label:e="",required:t=!1,infoMsg:n="",helperText:r="",nodeId:i="",onChange:o,value:s,name:a,isLoop:l,...u})=>{const[c,d]=C.useState("Static"),{MCP_INTEGRATION_FORM:p}=oa();C.useEffect(()=>{if(typeof s=="string"&&s.trim().startsWith("{{")){d("Dynamic");return}if(s==null||s===""){d("Static");return}let g=!1;const m=s;if(m&&typeof m=="object")m instanceof Date?g=!isNaN(m.getTime()):"isValid"in m&&typeof m.isValid=="function"&&(g=m.isValid());else if(typeof m=="string"){const E=new Date(m);g=!isNaN(E.getTime())}d(g?"Static":"Dynamic")},[s]);const h=new Date(Date.now()-360*60*60*1e3),A=g=>{if(g==null||g===""||typeof g=="string"&&g.trim().startsWith("{{"))return null;if(g&&typeof g=="object"&&"isValid"in g&&typeof g.isValid=="function")return g.isValid()?g:null;if(typeof g=="string"||g instanceof Date){const m=Sn(g);return m.isValid()?m:null}return null};return f.jsx(O.FormControl,{fullWidth:!0,children:f.jsxs(O.Stack,{children:[e&&f.jsxs(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",children:[f.jsx(Or,{label:e,description:r,required:t}),!p&&f.jsx(O.Stack,{pb:.5,children:f.jsx(ss,{variant:"normal",tabs:[{title:"Static"},{title:"Dynamic"}],selectedTab:c,setSelectedTab:()=>{c==="Static"?(o(""),d("Dynamic")):(o(h),d("Static"))}})})]}),c==="Static"?f.jsx(Wo.DateTimePicker,{slotProps:{textField:{error:!!u?.errorMsg,helperText:u?.errorMsg}},value:A(s),onChange:g=>o(g),...u}):f.jsx(io,{id:i,language:"plaintext",value:s,isLoop:l,editorId:`${i}-${a}`,showSuggestions:!0,handleChange:g=>{o(g)},name:a,loading:null,...u})]})})},Xd=e=>{const{isLoading:t,data:n,name:r,type:i,id:o,label:s,helperTextForDropdown:a,helperTextForTextField:l,control:u,isMultiple:c=!1,onTabChange:d,value:p,eventName:h="",fieldName:A,isLoop:g=!1,viewOnly:m=!1,required:E=!1,refreshData:y,refreshing:v=!1,placeholder:T="",refreshTooltip:_="",handleSearchOptions:x=null,handleChange:b=null,onOpen:w=null,customValidations:D={},virtualized:I=!1,allowCustomInStatic:P=!1}=e,{MCP_INTEGRATION_FORM:k}=oa(),[N,L]=C.useState(p&&!Ot(p)&&Eue(p)?"Dynamic":"Static"),M=B=>{L(B),d()};return f.jsx(O.Grid,{item:!0,xs:12,children:N==="Static"&&P?f.jsx(O.Grid,{item:!0,xs:12,children:f.jsxs(O.Stack,{gap:.25,children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{minHeight:24},children:[f.jsxs(O.Typography,{variant:"smNormal",sx:{color:"text.secondary",display:"flex",alignItems:"center",gap:.25},children:[s,E?"*":""]}),!k&&f.jsx(ss,{variant:"normal",tabs:[{title:"Static"},{title:"Dynamic"}],sx:{"& .MuiButtonBase-root":{px:.5,fontSize:"12px"},"& .MuiButtonBase-root.Mui-selected":{px:.5,fontSize:"12px"}},selectedTab:N,setSelectedTab:B=>M(B)})]}),f.jsx(En,{name:r,control:u,rules:{...E&&{required:`${s} is required`},...D&&{validate:D}},render:({field:B,fieldState:{error:Q}})=>f.jsx(O.Autocomplete,{freeSolo:!0,options:n||[],loading:t,disabled:m,value:(n||[]).find(V=>V.value===B.value)||null,inputValue:B.value===null||B.value===void 0?"":String(B.value),getOptionLabel:V=>typeof V=="string"?V:V?.title||"",isOptionEqualToValue:(V,q)=>V?.value===q?.value,onOpen:()=>{w&&w()},onInputChange:(V,q,F)=>{(F==="input"||F==="clear")&&(B.onChange(q),x&&x(q),b&&b({field:r,value:q}))},onChange:(V,q)=>{const F=typeof q=="string"?q:q?.value??"";B.onChange(F),b&&b({field:r,value:F})},renderInput:V=>f.jsx(O.TextField,{...V,label:"",placeholder:T||`Select or enter ${s}`,helperText:Q?.message||br(i,a),error:!!Q,size:"small",sx:{"& .MuiOutlinedInput-root":{minHeight:36}}})})})]})}):N==="Static"?f.jsx(Zt,{virtualized:I,required:E,name:r,control:u,meta:{options:n,displayProps:{loading:t,refreshing:v},displayName:s,searchFieldPlaceholder:"Search",placeholder:T||`Select ${s}`,description:br(i,a),handleSearchOptions:B=>{x&&x(B)}},validationRules:{...E&&{required:`${s} is required`},...D&&{validate:D}},viewOnly:m,id:o,multiple:c,renderFieldValue:B=>c?Array.isArray(B)?B:[]:n.some(Q=>Q.value===B)?B:"",getSelectedValue:B=>c?B.map(Q=>n.find(V=>V.value===Q)).filter(Q=>Q?.title):null,endItem:!k&&f.jsx(ss,{variant:"normal",tabs:[{title:"Static"},{title:"Dynamic"}],sx:{marginBottom:.5,"& .MuiButtonBase-root":{px:.5,fontSize:"12px"},"& .MuiButtonBase-root.Mui-selected":{px:.5,fontSize:"12px"}},selectedTab:N,setSelectedTab:B=>M(B)}),refreshOptions:y?()=>{y(s)}:null,refreshTooltip:_,handleChange:B=>{b&&b(B)},onOpen:()=>{w&&w()}}):f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Wn,{name:r,control:u,meta:{displayName:s,description:br(i,l),placeholder:T||`Enter ${s}`,htmlProps:{rightLabel:!k&&f.jsx(ss,{variant:"normal",tabs:[{title:"Static"},{title:"Dynamic"}],sx:{marginBottom:.5,"& .MuiButtonBase-root":{px:.5,fontSize:"12px"},"& .MuiButtonBase-root.Mui-selected":{px:.5,fontSize:"12px"}},selectedTab:N,setSelectedTab:B=>M(B)})}},validationRules:{...E&&{required:`${s} is required`},...D&&{validate:D}},showSuggestions:!0,id:o,fullWidth:!0,editorId:`${i}-${h}-${A}`,isLoop:g,viewOnly:m,required:E,handleChange:B=>{b&&b(B)}})})})})},wP=gc(({control:e,label:t="",required:n=!1,showInfoIcon:r=!1,infoMsg:i="",helperText:o="",nodeId:s="",id:a,name:l,isLoop:u,validationRules:c={},inputProps:d=null,placeholder:p="",showSuggestions:h=!1,onChange:A,...g})=>{const[m,E]=C.useState("Static"),[y,v]=C.useState(!1),{setValue:T,watch:_}=Gn(),{MCP_INTEGRATION_FORM:x}=oa(),b=_(l);return C.useEffect(()=>{y||(typeof b=="string"&&b.trim().startsWith("{{")?E("Dynamic"):E("Static"))},[y,b]),f.jsx(O.FormControl,{fullWidth:!0,children:f.jsxs(O.Stack,{children:[t&&f.jsxs(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",children:[f.jsx(Or,{label:t,description:o,required:n}),!x&&f.jsx(O.Stack,{pb:.5,children:f.jsx(ss,{variant:"normal",tabs:[{title:"Static"},{title:"Dynamic"}],selectedTab:m,setSelectedTab:()=>{T(l,""),m==="Static"?(v(!0),E("Dynamic")):(v(!0),E("Static"))}})})]}),m==="Dynamic"?f.jsx(Wn,{control:e,meta:{placeholder:p},validationRules:c,id:a,language:"plaintext",isLoop:u,editorId:`${s}-${l}`,showSuggestions:h,name:l,handleChange:()=>{v(!0)},loading:null,...g}):f.jsx(En,{name:l,control:e,rules:{...c,valueAsNumber:!0},render:({field:w,fieldState:{error:D}})=>{const{onChange:I,...P}=w;return f.jsx(io,{...g,...P,value:w.value??"",fullWidth:!0,type:"number",name:l,isLoop:u,inputProps:d||{step:1,min:1},placeholder:p,handleChange:k=>{v(!0);let N;k===""?(I(""),A?.("")):(N=Number(k),isNaN(N)||(I(N),A?.(N)))},error:!!D?.message,errorMsg:D?.message})}})]})})}),v6e=e=>{const t=Z=>Z?.type==="foreign-key"||!!(Z?.reference_table_name&&Z?.reference_column_name);function n(Z){return pue.filter(K=>K.appliesTo.includes(Z)).map(K=>({operator:K.operator,filterName:K.filterName}))}const{watch:r,setValue:i,control:o,getValues:s}=Gn(),a=r("properties"),{FRONTEND_URL:l,ENTITY_ID:u,viewOnly:c=!1,type:d,isLoop:p,id:h}=e,A=location.pathname.split("/");let g="";A.length>=5&&(g=A[2]);const m=O.useTheme(),E=ht.useDispatch(),[y,v]=C.useState([]),[T,_]=C.useState([]),[x,b]=C.useState([]),[w,D]=C.useState(!1),[I,P]=C.useState(!1),[k,N]=C.useState(!1),[L,M]=C.useState([]),[B,Q]=C.useState({}),[V,q]=C.useState({}),[F,G]=C.useState([]),[W,R]=C.useState(!1),j=e.ATHENA_MAIN_URL,$=()=>{R(!0);const Z=s("properties.database")||"",K=s("properties.connector")||"boltic";let ne=x.find(fe=>fe.id===Z);!ne&&Z&&(ne={id:Z,resource_id:"boltic"});const le=ne?.resource_id||"boltic",pe={name:"Workflow Table",is_ai_generated_schema:!0},Ae={};Z&&(Ae.db_id=Z),Ae.resource_id=le,Xt.post(j,{data:pe,params:Ae}).then(fe=>{fe?.data?.data?.id&&(Z==""&&ae(K),Y(null,fe.data.data.id)),R(!1),E({type:zn,payload:{open:!0,title:"Table created successfully",type:"success"}});const Se=fe?.data?.data?.id,ge=new URLSearchParams({connector:K,database:Z,resource:le}).toString(),ye=`${l}/accounts/${u}/tables/create/${Se}?${ge}`;i("properties.table",""),i("properties.record_id",""),i("properties.updates",[]),i("properties.filters",[]),window.open(ye)}).catch(fe=>{R(!1),E({type:zn,payload:{open:!0,title:"Table creation failed",type:"error"}}),cn(fe,E)})};C.useEffect(()=>{i("properties.org_id",g||null)},[g]),C.useEffect(()=>{te()},[]),C.useEffect(()=>{Ot(a)||((a.event=="create_record"||a.event=="update_record"||a.event=="list_record"||a.event=="bulk_update")&&a.table&&a?.table&&z(a?.table),a?.record_id&&H(a?.table),a.event==="list_record"&&a?.filter?.field?.type&&n(a?.filter?.field?.type))},[]),C.useEffect(()=>{Ot(a)||(a.event=="create_record"&&a.table&&z(a?.table),a&&a?.record_id&&H(a?.table))},[a.event]),C.useEffect(()=>{try{const Z=a?.filters;if(Array.isArray(Z)&&Z.length){const K=Z.map(le=>{const pe=le?.field?.type,Ae=Array.isArray(le?.filterList)&&le.filterList.length>0;return{...le,filterList:Ae&&pe?le.filterList:pe?n(pe):[]}});K.some((le,pe)=>{const Ae=Z[pe],fe=Array.isArray(Ae?.filterList)?Ae.filterList.length:0,Se=Array.isArray(le?.filterList)?le.filterList.length:0;return Se>0&&Se!==fe})&&i("properties.filters",K,{shouldValidate:!1,shouldDirty:!1})}}catch{}},[a?.table,L,a?.filters]),C.useEffect(()=>{i("properties.org_id",g||null)},[g]);const Y=async(Z=null,K=null,ne=null,le=null)=>{const pe=s("properties.database")||"";let fe=(le??x).find($e=>$e.id===pe);if(!fe&&pe&&(fe={id:pe,resource_id:"boltic"}),!pe||!fe){ne&&ne(!1);return}const Se=Yt(j,`/list?db_id=${pe}`),ge=[{field:"name",operator:"ILIKE",values:[""]},{field:"resource_id",operator:"=",values:[fe.resource_id||"boltic"]},{field:"db_id",operator:"=",values:[pe]}],ye={data:{page:{page_no:1,page_size:999},filters:ge,sort:[{field:"created_at",direction:"desc"}]}};if(Z&&Array.isArray(Z)){const $e=Z.find(Qe=>Qe.field==="name");if($e){ye.data.filters[0]=$e;const Qe=Z.filter(je=>!["name","resource_id","db_id"].includes(je.field));ye.data.filters.push(...Qe)}}Xt.post(Se,ye).then($e=>{if(v($e?.data?.data||[]),K){const{payload:Qe,...je}=a||{};i("properties",{...je,table:K})}}).catch($e=>{cn($e,E)}).finally(()=>{ne&&ne(!1)})},z=async Z=>{const K=a?.database||"";if(!K){D(!1);return}D(!0);const ne=Yt(j,`/${Z}/fields/list?db_id=${K}`);Xt.post(ne,{data:{page:{page_no:1,page_size:999},filters:[],sort:[{field:"name",direction:"desc"}]}}).then(le=>{D(!1);const pe=le?.data?.data.filter(Ae=>Ae.type!=="button");(le?.data?.data.length==0||pe.length===0)&&cn({message:"No field found in table"},E),M(le?.data?.data||[])}).catch(le=>{cn(le,E),D(!1)})},H=async(Z,K=null)=>{const ne=a?.database||"";if(!ne)return;const le=Yt(j,`/${Z}/records/list?db_id=${ne}`),pe={data:{page:{page_no:1,page_size:999},filters:[],sort:[],field_names:["id"]}};K&&(pe.data.filters=K),Xt.post(le,pe).then(Ae=>{G(Ae?.data?.data||[])}).catch(Ae=>{cn(Ae,E)})},U=async(Z,K="")=>{const ne=a?.database||"",le=Z?.reference_table_id,pe=Z?.reference_column_name;if(!ne||!le||!pe)return;q(Ie=>({...Ie,[Z.name]:!0}));const Ae=Yt(j,`/${le}/records/list?db_id=${ne}`),fe=Ie=>String(Ie||"").toLowerCase().trim(),Se=Ie=>{const He=fe(Ie);return He.includes("char")||He.includes("text")||He==="uuid"||He==="citext"},ge=(Ie,He)=>{const Ve=fe(He);if(Ve==="boolean"||Ve==="bool"){const Ee=Ie.toLowerCase();if(Ee==="true")return!0;if(Ee==="false")return!1}if(Ve.includes("int")||Ve.includes("numeric")||Ve.includes("decimal")||Ve.includes("real")||Ve.includes("double")){const Ee=Number(Ie);if(!Number.isNaN(Ee))return Ee}return Ie},ye=String(Z?.referenced_sql_type||"").toLowerCase().trim(),$e=Se(ye),Qe=typeof K=="string"?K.trim():String(K??"").trim(),je=ge(Qe,ye),et=!$e;if(et&&Qe.length>0&&typeof je=="string"){Q(Ie=>({...Ie,[Z.name]:[]})),q(Ie=>({...Ie,[Z.name]:!1}));return}const nt=Qe.length>0?[{field:pe,operator:et?"=":"ILIKE",values:[et?je:Qe]}]:[];try{const Ve=((await Xt.post(Ae,{data:{page:{page_no:1,page_size:100},filters:nt,sort:[],field_names:["id",pe]}}))?.data?.data||[]).map(Ee=>({value:Ee?.[pe],title:Ee?.[pe]!==void 0&&Ee?.[pe]!==null&&String(Ee?.[pe]).trim()!==""?String(Ee?.[pe]):String(Ee?.id??"")})).filter(Ee=>Ee.value!==void 0&&Ee.value!==null);Q(Ee=>({...Ee,[Z.name]:Ve}))}catch(Ie){const He=Ie?.response?.data?.error?.meta||[],Ve=String(He?.[0]||Ie?.response?.data?.error?.message||Ie?.message||"").toLowerCase();Ie?.response?.status===400&&(Ve.includes("invalid input syntax")||Ve.includes("operator does not exist"))?Q(_e=>({..._e,[Z.name]:[]})):cn(Ie,E)}finally{q(Ie=>({...Ie,[Z.name]:!1}))}};function X(Z){for(const K in Z)typeof Z[K]=="number"&&(Z[K]=Z[K].toString()),typeof Z[K]=="object"&&Z[K]!==null&&Z[K]!==void 0&&(Array.isArray(Z[K])||(Z[K]=JSON.stringify(Z[K])));return Z}const J=async(Z,K)=>{if(Z&&await z(Z),K){const ne=a?.database||"";if(!ne)return;const le=Yt(j,`/${Z}/records/${K}?db_id=${ne}&show_decrypted=true`),pe=await Xt.get(le).catch(fe=>{cn(fe,E)}),Ae=X(pe?.data?.data);i("properties.payload",{...a.payload,...Ae})}},te=async()=>{if(!j){P(!1);return}P(!0);const Z=Yt(j,"/connectors/list");Xt.post(Z,{data:{page:{page_no:1,page_size:999},filters:[],sort:[]}}).then(K=>{P(!1);const ne=[{id:"boltic",name:"Boltic Cloud"},...K?.data?.data||[]];_(ne);const pe=r("properties")?.connector;if(!pe&&ne.length>0){const Ae=ne[0].id;i("properties.connector",Ae),ae(Ae)}else pe&&ae(pe)}).catch(K=>{cn(K,E),P(!1)})},ae=async Z=>{if(!Z)return[];N(!0);try{const K={page:{page_no:1,page_size:1e3},filters:[{field:"status",operator:"=",values:["ACTIVE"]}],sort:[]},ne=`${j}/databases/list?connector_id=${Z}`,pe=(await Xt.post(ne,{data:K}))?.data?.data||[];b(pe);const fe=r("properties")?.database;if(!fe&&pe.length>0){const Se=pe[0].id;i("properties.database",Se),setTimeout(()=>{Y()},100)}else fe&&setTimeout(()=>{Y(null,null,null,pe)},100);return pe}catch(K){return cn(K,E),[]}finally{N(!1)}},re=(Z,K)=>{i(`properties.payload.${Z}`,K)},ue=Z=>{if((a||{})?.payload){const{[Z]:K,...ne}=(a||{}).payload;i("properties.payload",ne)}},Oe=[{id:!0,name:"True"},{id:!1,name:"False"}],Te=Z=>{if(["created_at","updated_at","id"].includes(Z.name))return null;const K=JSON.parse(JSON.stringify(a?.payload?.[Z.name]??null)),ne=mT(Z),le=fe=>{re(Z.name,fe)};if(t(Z))return f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Xd,{viewOnly:c,id:e.id,helperTextForDropdown:Z.help_text,helperTextForTextField:Z.help_text,isLoading:!!V[Z.name],label:Z.name,type:e.type,isMultiple:!1,data:B[Z.name]||[],value:K,placeholder:"Select referenced value",onTabChange:()=>ue(Z.name),eventName:a.event,fieldName:Z.name,isLoop:e.isLoop,required:!Z.is_nullable,name:`properties.payload.${Z.name}`,control:o,customValidations:{customValidation:zd(Z)},allowCustomInStatic:!0,onOpen:()=>{B[Z.name]?.length||U(Z)},handleSearchOptions:fe=>{U(Z,fe)},handleChange:fe=>{const{value:Se}=fe;le(Se)}})})},Z.name)});const pe=(fe,Se=!1,ge="xs")=>fe==="text"?f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Wn,{viewOnly:c,editorId:`bolticTableAcitivity-${Z.name}`,id:e.id,isLoop:e.isLoop,language:"plaintext",name:`properties.payload.${Z.name}`,value:K,showSuggestions:!0,variant:"outlined",type:fe,required:!Z.is_nullable,size:ge,control:o,meta:{displayName:fe=="text"?Z.name:null,description:Z.help_text,placeholder:gT(ne)},validationRules:{validate:zd(Z)},handleChange:ye=>{const{value:$e}=ye;le($e)}})})},Z.name)}):f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(wP,{control:o,name:`properties.payload.${Z.name}`,label:Z.name,helperText:Z.help_text,placeholder:gT(ne),required:!Z.is_nullable,showSuggestions:!0,isLoop:e.isLoop,id:e.id,nodeId:`bolticTableAcitivity-${Z.name}`,validationRules:{validate:zd(Z)},onChange:ye=>{le(ye)},disabled:c})})},Z.name)}),Ae=()=>f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(En,{name:`properties.payload.${Z.name}`,control:o,rules:{validate:zd(Z)},render:({field:fe,fieldState:{error:Se}})=>{let ge=null;if(K)if(typeof K=="string"&&K.trim().startsWith("{{"))ge=K;else{const ye=Sn(K);ge=ye.isValid()?ye:null}return f.jsx(y6e,{...fe,disabled:c,nodeId:`bolticTableAcitivity-${Z.name}`,id:e.id,isLoop:e.isLoop,label:Z.name,name:Z.name,value:ge,showSuggestions:!0,helperText:Z.help_text,onChange:ye=>{if(typeof ye=="string"||ye===null)fe.onChange(ye),le(ye);else{const $e=ye.toISOString();fe.onChange($e),le($e)}},variant:"outlined",required:!Z.is_nullable,errorMsg:Se?.message})}})})},Z.name)});switch(ne){case"text":case"email":case"link":case"phone-number":case"encrypted":return pe("text");case"date-time":return f.jsx(Wo.LocalizationProvider,{dateAdapter:Xl,children:Ae()});case"long-text":case"json":return pe("text",!0,"sm");case"number":case"currency":return pe("number");case"checkbox":return f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Xd,{viewOnly:c,id:e.id,helperTextForTextField:"",isLoading:!1,label:Z.name,type:e.type,helperTextForDropdown:"Select True or False",isMultiple:!1,data:Mr(Oe),value:K,placeholder:"Select true or false",handleChange:fe=>{const{value:Se}=fe;le(Se)},onTabChange:()=>ue(Z.name),eventName:a.event,fieldName:Z.name,isLoop:e.isLoop,required:!Z.is_nullable,name:`properties.payload.${Z.name}`,control:o,customValidations:{validate:zd(Z)}})})},Z.name)});case"dropdown":return Z.multiple_selections?f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Xd,{viewOnly:c,helperTextForDropdown:Z.help_text,helperTextForTextField:Z.help_text,id:e.id,isLoading:!1,label:Z.name,type:e.type,isMultiple:Z.multiple_selections,data:Z.selectable_items?Z.selectable_items.map(fe=>({value:fe,title:fe})):[],value:(Array.isArray(K)&&K?.length,K),onTabChange:()=>ue(Z.name),eventName:a.event,fieldName:Z.name,placeholder:gT(ne),isLoop:e.isLoop,handleChange:fe=>{const{value:Se}=fe;Array.isArray(Se)&&Se.length?i(`properties.payload.${Z.name}`,Ot(Se)?null:Se.map(ge=>ge)):Se[0]?.id?le(Se[0]?.id):le(null)},name:`properties.payload.${Z.name}`,control:o,customValidations:{customValidation:zd(Z)}})})},Z.name)}):f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Xd,{viewOnly:c,id:e.id,helperTextForDropdown:Z.help_text,helperTextForTextField:Z.help_text,isLoading:!1,label:Z.name,type:e.type,isMultiple:!1,data:Z.selectable_items?Z.selectable_items.map(fe=>({value:fe,title:fe})):[],value:Array.isArray(K)&&K?.length?K[0]?.id?K[0]?.id:K?K?.[0]:"":K,placeholder:gT(ne),onTabChange:()=>ue(Z.name),eventName:a.event,fieldName:Z.name,isLoop:e.isLoop,handleChange:fe=>{const{value:Se}=fe;le(Se)},name:`properties.payload.${Z.name}`,control:o,customValidations:{customValidation:zd(Z)}})})},Z.name)});case"vector":case"halfvec":case"sparsevec":return f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Wn,{viewOnly:c,editorId:`bolticTableAcitivity-${Z.name}`,id:h,isLoop:p,language:"json",name:`properties.payload.${Z.name}`,value:K,showSuggestions:!0,variant:"outlined",multiline:!0,rows:3,required:!Z.is_nullable,control:o,meta:{displayName:Z.name,description:Z.help_text||(Z.type==="sparsevec"?'Enter sparse vector (e.g. "{1:1,3:2,5:3}/5"':"Enter vector (e.g. [1.2, 3.4, 5.6])"),placeholder:Z.type==="sparsevec"?'Enter sparse vector (e.g. "{1:1,3:2,5:3}/5")':"Enter vector (e.g. [1.2, 3.4, 5.6])"},validationRules:{validate:zd(Z)},handleChange:fe=>{const{value:Se}=fe;le(Se)}})})},Z.name)});default:return null}},se=ba((Z,K=null)=>{Y(Z,null,K)},300),ie=ba((Z,K)=>{H(Z,K)},300);return f.jsxs(O.Stack,{gap:2.5,children:[f.jsx(eo,{children:f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.event",control:o,meta:{options:nue,displayName:"Event",searchFieldPlaceholder:"Search Event",placeholder:"Select Event"},validationRules:{required:"Event is required"},viewOnly:c,fullWidth:!0,id:"event",required:!0,handleChange:Z=>{const{value:K}=Z;i("properties.event",K),i("properties.connector",""),i("properties.database",""),i("properties.table",""),i("properties.record_id",""),i("properties.updates",[]),i("properties.filters",[]),_([]),b([]),v([]),M([]),K&&K!=="sql_query"&&te()}})})})})}),a?.event&&f.jsx(O.Divider,{}),a?.event&&f.jsx(Rr,{children:f.jsxs(O.Grid,{container:!0,gap:1.5,children:[a?.event&&a?.event!="sql_query"&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.connector",control:o,meta:{options:(T||[]).map(Z=>({value:Z.id,title:Z.name||Z.id})),displayName:"Connector",searchFieldPlaceholder:"Search Connector",placeholder:"Select Connector",isLoading:I},validationRules:{required:"Connector is required"},viewOnly:c,fullWidth:!0,id:"connector",required:!0,handleChange:Z=>{const{value:K}=Z;i("properties.connector",K),i("properties.database",""),i("properties.table",""),i("properties.record_id",""),i("properties.updates",[]),i("properties.filters",[]),b([]),v([]),M([]),K&&ae(K)}})})}),a?.event&&a?.event!="sql_query"&&a?.connector&&f.jsxs(O.Grid,{item:!0,xs:12,children:[f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{name:"properties.database",control:o,meta:{options:(x||[]).map(Z=>({value:Z.id,title:Z.db_name||Z.id,...a?.connector&&a.connector!=="boltic"&&Z?.resource_name?{description:Z.resource_name}:{}})),displayName:"Database",searchFieldPlaceholder:"Search Database",placeholder:"Select Database",isLoading:k},viewOnly:c,fullWidth:!0,id:"database",required:!0,handleChange:Z=>{const{value:K}=Z;i("properties.database",K),i("properties.table",""),i("properties.record_id",""),i("properties.updates",[]),i("properties.filters",[]),v([]),M([]),K&&Y()}})}),!k&&x.length===0&&f.jsx(O.Typography,{variant:"caption",sx:{mt:.5,display:"block",color:"text.secondary"},children:"No database is present, please create your first table to create a database."})]}),a?.event&&a?.event!="sql_query"&&(a?.database||a?.database=="")&&f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.Grid,{container:!0,gap:1.5,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(bP,{viewOnly:c,type:"bolticTableActivity",value:a.table||"",title:"Table",show:!0,buttonName:"Create New Table",loadingState:W,loadDataFromApi:async Z=>{y?.length||await Y(),Z(!1)},required:!0,onTextInputChange:async(Z,K)=>{Z(!0),se([{field:"name",operator:"ILIKE",values:[K]}],Z)},handleChange:Z=>{const{value:K}=Z;M([]),i("properties.table",K),(a?.event==="bulk_update"||a?.event==="list_record")&&(i("properties.updates",[]),i("properties.filters",[])),i("properties.record_id",""),a?.event=="create_record"||a?.event=="list_record"||a?.event=="bulk_update"?K&&z(K):(a?.event=="delete_record"||a?.event=="update_record")&&H(K)},onAddButtonClick:$,name:"properties.table",options:Mr(y),validationRules:{required:"Table is required"}})})})}),f.jsx(O.Grid,{item:!0,xs:12,children:(a?.event==="delete_record"||a?.event==="update_record")&&a?.table&&f.jsx(O.Grid,{container:!0,gap:1,children:f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(Zt,{required:!0,name:"properties.record_id",control:o,viewOnly:c,id:h,meta:{options:(()=>{const Z=[...F];return a.record_id&&!F.some(K=>K.id===a.record_id)&&Z.unshift({id:a.record_id}),Z.map(K=>({value:K.id,title:K.id}))})(),displayName:"Record ID",searchFieldPlaceholder:"Search Record ID",placeholder:"Select a record ID",handleSearchOptions:Z=>{if(a?.table){const K=[{field:"id",operator:"ILIKE",values:[Z]}];ie(a.table,K)}}},validationRules:{required:"Record ID is required"},renderFieldValue:Z=>{const K=[...F];return a.record_id&&!F.some(le=>le.id===a.record_id)&&K.unshift({id:a.record_id}),K.map(le=>({value:le.id,title:le.id})).some(le=>le.value===Z)?Z:""},handleChange:Z=>{const{value:K}=Z;a.event==="update_record"&&J(a.table,K),i("properties.record_id",K)}},a.event)})},"record_id")})}),(a?.event==="create_record"&&a?.table||a?.event==="update_record"&&a?.table&&a?.record_id)&&f.jsxs(f.Fragment,{children:[w&&f.jsx(O.Stack,{sx:{width:"100%",justifyContent:"center",alignItems:"center",height:"5rem",margin:"0 0 2rem 0"},children:f.jsx(O.CircularProgress,{})}),L.length>0&&JSON.parse(JSON.stringify(L)).map(Z=>Te(Z))]}),a?.event==="list_record"&&a?.table&&f.jsxs(O.Grid,{container:!0,children:[f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(O.FormControl,{fullWidth:!0,children:f.jsx(wP,{control:o,name:"properties.page",viewOnly:c,editorId:"bolticTableAcitivity-page",id:e.id,isLoop:e.isLoop,language:"plaintext",label:"Page Number",showSuggestions:!0,placeholder:"Enter a page number",required:!0,variant:"outlined",inputProps:{min:1,max:1e4},helperText:`Which set of records you want to receive (starting from 1).
|
|
@@ -650,7 +650,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
650
650
|
|
|
651
651
|
`))>=0;){const p=o.slice(0,d);o=o.slice(d+2),p.trim().length&&a(p)}},u=d=>{const h=d.event?.target?.responseText;if(typeof h!="string"||h.length<=s)return;const A=h.slice(s).replace(/\r\n/g,`
|
|
652
652
|
`);s=h.length,o+=A,l()},c=await ri.post(`${t.replace(/\/+$/,"")}/api/generate-node/stream`,n,{headers:{"Content-Type":"application/json",Accept:"text/event-stream"},responseType:"text",signal:r,onDownloadProgress:u,validateStatus:()=>!0});if(c.status<200||c.status>=300)throw new Error(`Stream request failed (${c.status})`);o.trim().length&&a(o)}const jte=e=>{const t=String(e||"").trim();return t?t.includes("_")?t.split("_").map(n=>/[a-z][A-Z]/.test(n)?n:Ds(n)).join(" "):t.charAt(0).toUpperCase()+t.slice(1):""},dot=({ENTITY_ID:e,WORKFLOW_URLS:t,BOLTICAI_MAIN_URL:n,allowedAccount:r,dispatch:i,nodes:o,edges:s,canvasWorkflow:a,activityExecutionData:l,activities:u,triggers:c,selectedPlaceholderId:d,setNodes:p,setEdges:h,bolticAiOverlay:A,openIntegrationDrawer:g,nodesRef:m,selectedPlaceholderIdRef:E,hiddenPlaceholderIdRef:y,skipBetweenNodesRestoreRef:v,aiInlinePosRef:T,setAiInlinePos:_,onApplySuccess:x})=>{const b=C.useRef(null),w=C.useRef(""),D=C.useRef(null),I=C.useRef([]),P=C.useRef({}),k=C.useRef(""),N=C.useRef(null),L=C.useRef({intervalId:null,timeoutId:null}),M=C.useRef(null),B=C.useRef(0),[Q,V]=C.useState([]),[q,F]=C.useState(null),[G,W]=C.useState(null),[R,j]=C.useState(null),[$,Y]=C.useState([]),z=C.useRef(()=>{}),H=C.useRef(()=>{}),U=C.useRef(()=>{}),X=C.useRef(()=>{}),J=C.useRef(()=>{}),te=C.useCallback(Ie=>{k.current=Ie},[]),ae=C.useCallback(Ie=>{V(He=>{const Ve=He.map(_e=>_e.status==="active"?{..._e,status:"done"}:_e),Ee=`${Date.now()}_${Math.random().toString(16).slice(2)}`;return Ve.push({id:Ee,label:Ie,status:"active"}),Ve})},[]),re=C.useCallback(()=>{B.current+=1,V([]),F(null),W(null),j(null),Y([]),D.current=null,N.current=null,I.current=[]},[]),ue=C.useCallback(()=>{b.current&&(b.current.abort(),b.current=null)},[]),Oe=C.useCallback(()=>{const Ie=L.current;Ie.intervalId&&(window.clearInterval(Ie.intervalId),Ie.intervalId=null),Ie.timeoutId&&(window.clearTimeout(Ie.timeoutId),Ie.timeoutId=null),M.current=null},[]),Te=C.useCallback(()=>{const Ie=m.current||[],He=E.current;if(Oe(),ue(),re(),P.current={},i({type:A0,payload:!1}),i({type:Zs,payload:"prompt"}),i({type:Hp,payload:null}),i({type:m0,payload:!1}),k.current="",_(null),T.current=null,p(Ve=>{const Ee=Ve||[],_e=Ee.filter(we=>we?.type===xt.AI_PROMPT).map(we=>String(we.id));return _e.length===0?Ee:Ee.filter(we=>!_e.includes(String(we?.id)))}),h(Ve=>{const Ee=Ve||[],_e=new Set(Ie.filter(ee=>ee?.type===xt.AI_PROMPT).map(ee=>String(ee?.id)));let we=Ee.filter(ee=>ee?.data?.isTempAiEdge!==!0&&!_e.has(String(ee?.source))&&!_e.has(String(ee?.target)));for(const ee of Ie.filter(de=>de?.type===xt.AI_PROMPT)){const de=ee?.data?.originalEdge;de?.id&&!we.some(be=>be?.id===de.id)&&(we=[...we,de])}return we}),!v.current&&He&&typeof He=="object"&&He?.id){const Ve=String(He.id),Ee=He.originalEdge;p(_e=>(_e||[]).filter(we=>we?.id!==Ve)),h(_e=>{let we=(_e||[]).filter(ee=>ee?.source!==Ve&&ee?.target!==Ve&&ee?.data?.isTempAiEdge!==!0);return Ee?.id&&!we.some(ee=>ee?.id===Ee.id)&&(we=[...we,Ee]),we})}if(v.current=!1,y.current){const Ve=y.current;y.current=null,p(Ee=>(Ee||[]).map(_e=>_e?.id===Ve?{..._e,hidden:!1}:_e))}},[T,i,y,m,re,E,_,h,p,v,Oe,ue]),se=C.useCallback((Ie,He)=>{const Ve=String(Ie??"").toLowerCase(),Ee=String(He??"").toLowerCase();return Ee.includes("slack")?"SLACK_V2":Ee.includes("gmail")?"GMAIL":Ee.includes("calendar")?"GOOGLE_CALENDAR":Ee.includes("meet")?"GOOGLE_MEET":Ee.includes("sheets")?"GOOGLE_SHEETS":Ee.includes("openai")?"OPENAI":Ee.includes("email_auth_id")?"EMAIL":Ve.includes("slack")?"SLACK_V2":Ve.includes("gmail")?"GMAIL":Ve.includes("write-sheet")||Ve.includes("read-sheet")||Ve.includes("write_sheet")||Ve.includes("read_sheet")?"GOOGLE_SHEETS":Ve.includes("fynd-platform-application")?"FYND_PLATFORM_APPLICATION":Ve.includes("fynd-platform")?"FYND_PLATFORM":Ve.includes("browserbase")?"BROWSERBASE":Ve.includes("google_sheets")?"GOOGLE_SHEETS":Ve.includes("google_calendar")?"GOOGLE_CALENDAR":Ve.includes("google_meet")?"GOOGLE_MEET":Ve.includes("email")?"EMAIL":Ve.includes("openai")?"OPENAI":Ve.includes("calendly")?"CALENDLY":Ve.includes("postgre")?"POSTGRESQL":(Ve.trim().split(".").pop()||"").replace(/-/g,"_").toUpperCase()},[]),ie=C.useCallback((Ie,He)=>String(Ie||"").trim().toLowerCase()==="secret"?"Secret":He,[]),Z=C.useCallback(async(Ie,He)=>{const Ve=t?.TESSERACT_MAIN_URL;if(!Ve)throw new Error("Missing TESSERACT_MAIN_URL");const Ee=se(Ie,He),_e={page_size:999,current_page:1};(Ee==="SLACK_V2"||Ee==="GOOGLE_SHEETS"||Ee==="GOOGLE_CALENDAR"||Ee==="GOOGLE_MEET"||Ee==="GMAIL"||Ee==="BROWSERBASE"||Ee==="EMAIL"||Ee==="CALENDLY")&&(_e.type="BOTH");const we=Yt(Ve,`/v1/integrations/entity/${Ee}`),{data:ee}=await Xt.get(we,{params:_e}),de=Xo(ee?.data??[],["integration_meta"]);return Mr(de)},[t?.TESSERACT_MAIN_URL,se]),K=C.useCallback(()=>{const Ie=typeof d=="string"?d:d?.id;if(Ie){const He=o.find(Ee=>Ee.id===Ie),Ve=typeof d=="string"&&He?.data?.isTriggerPlaceholder?"triggers":"activities";i({type:os,payload:{type:Ve,active:!0,nodeId:Ie,edgeId:null,...typeof d=="object"&&d?{edgeId:d.edgeId,sourceNodeId:d.sourceNodeId,targetNodeId:d.targetNodeId,sourceHandle:d.sourceHandle,targetHandle:d.targetHandle}:{}}})}i({type:Ks,payload:!0})},[i,o,d]),ne=C.useCallback(async(Ie,He,Ve,Ee="start")=>{if(!Ie)return;if(!yE(String(e||""),r)){Te(),K();return}ue(),j(null),F(null),B.current+=1,W(null),Ee==="start"&&V([]),w.current=Ie,Ve&&typeof Ve=="object"&&(P.current={...P.current||{},...Ve}),He&&He.length&&(I.current=He);const _e=d&&typeof d=="object"?"activity":typeof d=="string"&&o.find(Fe=>Fe?.id===d)?.data?.isTriggerPlaceholder===!0?"trigger":"activity";P.current={...P.current||{},node_kind_constraint:_e},i({type:Zs,payload:"stream"}),Ee==="start"&&ae("Identifying integrations");const we=new AbortController;b.current=we;const ee=n||"http://localhost:3000",de=()=>{const Ge=o.filter(yt=>yt?.type!==xt.AI_PROMPT&&yt?.type!==xt.PLACEHOLDER),Ne=s.filter(yt=>!String(yt?.source||"").startsWith("temp-ai-node-")&&!String(yt?.target||"").startsWith("temp-ai-node-")),Fe=d&&typeof d=="object"?String(d?.targetNodeId||""):typeof d=="string"?String(d):"";if(!Fe)return{};const St=(Rb(Fe,Ge,Ne)||[]).map(yt=>String(yt?.id||"")).filter(yt=>yt&&yt!=="payload"&&yt!=="global_variables"&&yt!=="http"),De=new Map(Ge.map(yt=>[String(yt?.id),yt])),it=St.slice(-3),ut={};return it.forEach(yt=>{const It=De.get(yt);if(!It?.data?.name)return;const Ft=String(It.data.name),Lt=`${String(It?.data?.properties?.integration_slug||"")}_${yt}`,Ye=(l?.[Lt]??l?.[yt]??l?.[Ft])?.data??{},lt=Ye&&typeof Ye=="object"&&"result"in Ye?Ye.result:Ye;ut[Ft]={result:lt??{}}}),ut},be={prompt:Ie,resume:Ee==="resume",...D.current?{session_id:D.current}:{},...Ee==="resume"&&N.current?{resume_context:N.current}:{},payload:a?.payload??{},global_variables:a?.global_variables??{},node_results:de(),auth:I.current,hint:P.current};try{await cot({baseUrl:ee,body:be,signal:we.signal,onMessage:Ge=>{const{event:Ne,data:Fe}=Ge,gt=typeof Fe?.session_id=="string"?Fe.session_id.trim():"";if(gt&&(D.current=gt),Ne==="progress"&&Fe?.message){ae(String(Fe.message));return}if((Ne==="agent_start"||Ne==="tool_start"||Ne==="tool_end"||Ne==="agent_end")&&Fe?.message){ae(String(Fe.message));return}if(Ne==="branching_check"){const St=!!Fe?.isBranching;N.current={isBranching:St,branchingType:Fe?.branchingType?String(Fe.branchingType):null};const De=Fe?.branchingType?` (${String(Fe.branchingType)})`:"";ae(St?`Branching workflow detected${De}`:"Single-step workflow");return}if(Ne==="complete"){const St=String(Fe?.status??"");if(St==="success"){x(Fe).then(()=>{Te()}).catch(De=>{j(De?.message||"Failed to apply AI result"),i({type:Zs,payload:"error"})});return}if(St==="error"){const De=String(Fe?.message??Fe?.error??Fe?.reason??"Please try again."),it=Array.isArray(Fe?.suggestions)?Fe.suggestions.filter(ut=>typeof ut=="string").map(ut=>String(ut)):[];j(De),Y(it),i({type:Zs,payload:"error"});return}if(St==="needs_user_choice"){V(Ye=>Ye.map(lt=>({...lt,status:"done"}))),P.current={...P.current||{},...Fe?.integration_slug?{integration_slug:String(Fe.integration_slug)}:{},...Fe?.integration_name?{integration_name:String(Fe.integration_name)}:{},...Fe?.integration_id?{integration_id:String(Fe.integration_id)}:{},...Fe?.type?{type:String(Fe.type)}:{},...Fe?.activity_type?{activity_type:String(Fe.activity_type)}:{},...Fe?.trigger_type?{trigger_type:String(Fe.trigger_type)}:{}};const De=Array.isArray(Fe?.option_items)?Fe.option_items:null,it=De&&De.length?De.map(Ye=>({title:String(Ye?.title??""),value:String(Ye?.value??""),...Ye?.icon?{icon:String(Ye.icon)}:{},...Ye?.slug?{slug:String(Ye.slug)}:{},...Ye?.resource?{resource:String(Ye.resource)}:{},...Ye?.operation?{operation:String(Ye.operation)}:{}})).filter(Ye=>Ye.title&&Ye.value):(Array.isArray(Fe?.options)?Fe.options:[]).map(Ye=>({title:String(Ye??""),value:String(Ye??"")})),ut=Fe?.reason?String(Fe.reason):"",yt=it.some(Ye=>!!Ye.resource&&!!Ye.operation),It=!yt&&it.some(Ye=>!!Ye.slug),Ft=yt?"operation":It?"integration":Fe?.integration_slug?"operation":"option",Lt=Ft==="integration"?"Select app":Ft==="operation"?"Select operation":"Select option",Me=Lt==="Select app"?it.map(Ye=>{const lt=Ye?.slug?String(Ye.slug):"",Ze=[...u?.data?.data||[],...c?.data?.data||[]],Et=lt&&!Ye.icon?ii(Ze,[],{properties:{integration_slug:lt}}):Ye.icon||"";return{...Ye,title:jte(Ye?.title??""),...Et?{icon:Et}:{},...lt?{slug:lt}:{}}}):it;F({label:Lt,options:Me,selected:Me[0]?.value??null,reason:ut}),i({type:Zs,payload:"needs_user_choice"});return}if(St==="needs_auth"){V(Me=>Me.map(Ye=>({...Ye,status:"done"}))),P.current={...P.current||{},...Fe?.integration_slug?{integration_slug:String(Fe.integration_slug)}:{},...Fe?.integration_name?{integration_name:String(Fe.integration_name)}:{},...Fe?.integration_id?{integration_id:String(Fe.integration_id)}:{},...Fe?.type?{type:String(Fe.type)}:{},...Fe?.activity_type?{activity_type:String(Fe.activity_type)}:{},...Fe?.trigger_type?{trigger_type:String(Fe.trigger_type)}:{},...Fe?.resource?{resource:String(Fe.resource)}:{},...Fe?.operation?{operation:String(Fe.operation)}:{}};const De=Fe?.auth??{},ut=String(De?.field_name??"").trim(),yt=String(De?.field_label??(ut||"Account")),It=ie(ut,yt),Ft=Fe?.integration_slug?String(Fe.integration_slug):void 0;if(i({type:Zs,payload:"needs_auth"}),!ut){W({label:It,field_name:"",integration_slug:Ft,options:[],selected:null,loading:!1,errorText:"Missing auth field name"});return}W({label:It,field_name:ut,integration_slug:Ft,options:[],selected:null,loading:!0});const Lt=B.current+=1;Z(Ft,ut).then(Me=>{B.current===Lt&&W(Ye=>Ye&&Ye.field_name===ut?{...Ye,options:Me||[],selected:Me&&Me[0]?.value||null,loading:!1,errorText:Me&&Me.length?void 0:"No credentials found"}:Ye)}).catch(Me=>{B.current===Lt&&W(Ye=>Ye&&Ye.field_name===ut?{...Ye,options:[],selected:null,loading:!1,errorText:Me?.message||"Failed to load credentials"}:Ye)});return}j(String(Fe?.reason??"Could not generate node")),Y([]),i({type:Zs,payload:"error"});return}Ne==="error"&&(j(String(Fe?.message??Fe?.error??"Stream error")),i({type:Zs,payload:"error"}))}})}catch(Ge){if(we.signal.aborted)return;j(Ge?.message||"Failed to start stream"),i({type:Zs,payload:"error"})}finally{b.current===we&&(b.current=null)}},[e,r,n,l,ae,a?.global_variables,a?.payload,Te,i,s,Z,ie,o,x,K,d,ue,u?.data?.data,c?.data?.data]),le=C.useCallback(async Ie=>{const He=t?.TESSERACT_MAIN_URL;if(!He)throw new Error("Missing TESSERACT_MAIN_URL");if(!g)throw new Error("Missing openIntegrationDrawer");const Ve={current_page:1,page_size:1,entity:Ie},Ee=Yt(He,"/v1/catalog"),we=(await Xt.get(Ee,{params:Ve}))?.data?.data?.[0];if(!we)throw new Error("Could not load integration catalog for new account");g(we,"create")},[t?.TESSERACT_MAIN_URL,g]),pe=C.useCallback((Ie,He,Ve)=>{Oe();const Ee=[{field_name:Ie,value:He}];ae(`Selected secret: ${String(Ve||He)}`),ne(w.current,Ee,P.current,"resume")},[ae,ne,Oe]),Ae=C.useCallback((Ie,He)=>{Oe();const Ve=new Set((G?.options||[]).map(_e=>String(_e.value)));M.current=Ve;const Ee=async()=>{if(!A?.open){Oe();return}try{const we=await Z(Ie,He)||[];W(be=>be&&{...be,options:we});const ee=M.current;if(!ee)return;const de=we.find(be=>be?.value&&!ee.has(String(be.value)))||null;de?.value&&(W(be=>be&&{...be,options:we,selected:String(de.value),loading:!1,errorText:void 0}),pe(He,String(de.value),String(de.title||de.value)))}catch{}};L.current.intervalId=window.setInterval(()=>{Ee()},2e3),L.current.timeoutId=window.setTimeout(()=>{Oe()},6e4),Ee()},[G?.options,A?.open,Z,pe,Oe]),fe=C.useCallback(async()=>{if(!G?.field_name)return;const Ie=String(G.field_name),He=G.integration_slug?String(G.integration_slug):void 0,Ve=se(He,Ie);try{await le(Ve),Ae(He,Ie)}catch(Ee){const _e=Ee?.message||"Failed to open add account drawer";W(we=>we&&{...we,errorText:_e})}},[G?.field_name,G?.integration_slug,se,le,Ae]),Se=C.useCallback(Ie=>{re(),P.current={},ne(Ie,void 0,void 0,"start")},[re,ne]),ge=C.useCallback(()=>{ue(),Oe(),k.current="",j(null),Y([]),F(null),W(null),i({type:Zs,payload:"prompt"})},[i,Oe,ue]),ye=C.useCallback(()=>{if(!q?.selected)return;const Ie=q.label==="Select app"?"integration":q.label==="Add activity"||q.label==="Select operation"?"operation":"option",He=q.options.find(Ee=>Ee.value===q.selected)||null,Ve={...P.current||{},user_choice:{kind:Ie,value:q.selected,...He?.slug?{integration_slug:He.slug}:{},...He?.title?{title:He.title}:{}}};if(Ie==="integration"&&He?.slug&&(Ve.integration_slug=He.slug,Ve.integration_name=He.title),Ie==="operation"&&He?.resource&&He?.operation&&(Ve.resource=He.resource,Ve.operation=He.operation),P.current=Ve,Ie==="integration"){const Ee=He?.title?String(He.title):String(q.selected);ae(`Selected app: ${Ee}`)}else if(Ie==="operation"){const Ee=He?.title?String(He.title):String(q.selected);ae(`Selected operation: ${Ee}`)}else ae(`Selected: ${String(q.selected)}`);ne(w.current,void 0,Ve,"resume")},[q?.selected,q?.options,q?.label,ae,ne]),$e=C.useCallback(()=>{if(!G?.field_name||!G?.selected)return;const Ie=G.options?.find(He=>String(He.value)===String(G.selected))?.title??String(G.selected);pe(G.field_name,String(G.selected),Ie)},[G?.field_name,G?.options,G?.selected,pe]);C.useEffect(()=>{z.current=Te},[Te]),C.useEffect(()=>{H.current=Se},[Se]),C.useEffect(()=>{U.current=ge},[ge]),C.useEffect(()=>{X.current=ye},[ye]),C.useEffect(()=>{J.current=$e},[$e]),C.useEffect(()=>ue,[ue]),C.useEffect(()=>Oe,[Oe]);const Qe=C.useCallback(()=>z.current(),[]),je=C.useCallback(Ie=>H.current(Ie),[]),et=C.useCallback(()=>U.current(),[]),rt=C.useCallback(()=>X.current(),[]),nt=C.useCallback(()=>J.current(),[]);return{bolticAiPromptDraftRef:k,setBolticAiPromptDraft:te,bolticAiSteps:Q,bolticAiChoice:q,setBolticAiChoice:F,bolticAiAuth:G,setBolticAiAuth:W,bolticAiError:R,bolticAiErrorSuggestions:$,inferTesseractEntity:se,handleAiAuthAddNewAccount:fe,closeBolticAiOverlay:Te,closeBolticAiOverlayStable:Qe,submitBolticAiPromptStable:je,retryBolticAiPromptStable:et,continueFromUserChoiceStable:rt,continueFromAuthStable:nt,stopBolticAiStream:ue,stopAiAuthPolling:Oe,resetBolticAiStreamState:re}},fot=()=>typeof window>"u"?Promise.resolve():new Promise(e=>{requestAnimationFrame(()=>e())}),pot=40,hot=e=>{const{WORKFLOW_URLS:t,ALERT_TOP_BAR:n,currentSubscription:r,ENTITY_ID:i,navigate:o,openIntegrationDrawer:s,INTEGRATION_DATA:a,SET_INTEGRATION_DATA:l,selectedNode:u,setSelectedNode:c,nodes:d,edges:p,setNodes:h,setEdges:A,onNodesChange:g,onEdgesChange:m,source:E,showCanvasOverlay:y,setShowCanvasOverlay:v,pro_integration:T}=e,_=C.useRef(null),x=C.useRef(!1),b=ht.useDispatch(),w=C.useRef(0),{fitView:D,deleteElements:I,getNodes:P,getEdges:k,getNode:N,screenToFlowPosition:L}=Dt.useReactFlow(),M=O.useTheme(),{analytics:B,openAddonModal:Q,allowedAccount:V}=wi(),q=C.useMemo(()=>yE(i,V),[i,V]),F=Dt.useKeyPress("Delete"),G=Dt.useKeyPress("Backspace"),W=Dt.useKeyPress(["Meta+a","Ctrl+a"],{actInsideInputWithModifier:!1}),{VORTEX_MAIN_URL:R,VORTEX_SYNC_DOMAIN:j,BOLTICAI_MAIN_URL:$}=t,Y=M.drawer.rightMenu,{canvasWorkflow:z,activityExecutionData:H,viewOnly:U,activitiesPopover:X,importingWorkflow:J,bolticAiOverlay:te,showDebugLogs:ae,runLogsPanelHeight:re}=ht.useSelector(he=>he.canvas),{selectedPlaceholderId:ue}=ht.useSelector(he=>he.canvas),Oe=ae?Math.max(0,(re??340)-pot):0,Te=!U,{workflow:se,scheduleState:ie,versions:Z}=ht.useSelector(he=>he.workflows),{activities:K,triggers:ne,activity_names:le}=ht.useSelector(he=>he.activities),[pe,Ae]=C.useState([]),fe=Dt.useUpdateNodeInternals(),Se=Oo(),ge=Tr(Se),ye=Tr(Pn.VERSION),Qe=ye||ge,je=C.useRef(null);C.useEffect(()=>()=>{je.current&&clearTimeout(je.current)},[]);const et=ye?se?.id:ge,rt=C.useCallback(async he=>{const Le=N(he);if(!Le||!z)return;const qe=P(),ft=k(),Ut={result:U0(z,qe,H,he,ft)};await $0(Le,b,R,i,qe,qe,Ut,je,B,Qe,Q,r,!0,!0,et,ft)},[N,P,k,z,H,b,R,i,B,Qe,Q,r,et]),nt=C.useRef(null),Ie=C.useRef(!1),He=C.useRef(null),Ve=C.useRef(null),Ee=C.useRef([]),_e=C.useRef(null),[we,ee]=C.useState(null),de=C.useRef(null),be=C.useRef(()=>{});C.useEffect(()=>{Ee.current=d||[]},[d]),C.useEffect(()=>{_e.current=ue},[ue]);const Ge=C.useMemo(()=>!ue||typeof ue=="object"||typeof ue!="string"?!1:d?.find(Le=>String(Le?.id)===String(ue))?.data?.isTriggerPlaceholder===!0,[d,ue]),Ne=C.useMemo(()=>Ge?CE:kte,[Ge]);C.useEffect(()=>{const he=d?.find(qe=>qe?.type===xt.PLACEHOLDER&&qe?.data?.isTriggerPlaceholder===!0);!he||d.some(qe=>qe?.type!==xt.PLACEHOLDER)||ue!==he.id&&b({type:h0,payload:he.id})},[b,d,ue]);const Fe=C.useCallback(he=>{const Le=(he||[]).filter(Ut=>Ut?.type===xt.AI_PROMPT);if(Le.length===0)return;const qe=new Set(Le.map(Ut=>String(Ut?.id))),ft=Le.map(Ut=>Ut?.data?.originalEdge).filter(Ut=>Ut&&Ut.id);A(Ut=>{let xe=(Ut||[]).filter(We=>We?.data?.isTempAiEdge!==!0&&!qe.has(String(We?.source))&&!qe.has(String(We?.target)));for(const We of ft)xe.some(ct=>ct?.id===We.id)||(xe=[...xe,We]);return xe}),b({type:Up})},[b,A]),gt=C.useCallback(async he=>{const Le=he?.nodes??[];if(!Array.isArray(Le)||Le.length===0)throw new Error("AI returned no nodes");const qe=No(Le[0]);let ft={x:0,y:0},Ut=null,xe,We,ct,Tt=!1,zt=d,Qt=p;if(ue&&typeof ue=="object"&&ue.edgeId&&ue.sourceNodeId&&ue.targetNodeId){Ut=ue;const ir=String(ue.id),Jn=d.find(Vi=>Vi?.id===ir)||null;ft=Jn?.position??{x:0,y:0},zt=d.filter(Vi=>Vi?.id!==ir),Qt=p.filter(Vi=>Vi?.data?.isTempAiEdge!==!0).filter(Vi=>Vi?.source!==ir&&Vi?.target!==ir);const Fi=ue.originalEdge;Fi?.id&&!Qt.some(Vi=>Vi?.id===Fi.id)&&(Qt=[...Qt,Fi]);const Go=zt.find(Vi=>Vi.id===ue.sourceNodeId),Is=zt.find(Vi=>Vi.id===ue.targetNodeId);Go&&Is&&!Jn?.position&&(ft={x:(Go.position.x+Is.position.x)/2,y:(Go.position.y+Is.position.y)/2})}else typeof ue=="string"&&(ct=ue,We=d.find(Jn=>Jn.id===ue),ft=We?.position??{x:0,y:0},Tt=!!We?.data?.isTriggerPlaceholder||We?.type===xt.TRIGGER,xe=p.find(Jn=>Jn.target===ue)?.source);const sn=d.filter(ir=>ir.type!==xt.TRIGGER),mn=Tt?sn:d.filter(ir=>ir.type!==xt.PLACEHOLDER&&ir.type!==xt.AI_PROMPT),An=qe?.data?.name||qe?.data?.type,Rn=wa(String(An),mn),qn={...qe,id:Rn,position:ft,data:{...qe?.data??{},name:Tt?An:Rn}};qn?.data?.type===Ke.LOOP&&qn?.data?.properties?.activity?.data?.name&&(qn.data.properties.activity.data.name=wa(String(qn.data.properties.activity.data.name),mn));const Bn=Mte(qe?.data?.properties??{},uot);LC(b,qn,Tt,xe,We,ct,le||[],A,h,zt,Qt,B?.captureEvent,B?.WORKFLOW_EVENTS,i||"",ge||void 0,t?.VORTEX_MAIN_URL,Ut,z?.meta?.isHorizontal??!0?"LR":"TB",fe),b({type:U5,payload:{nodeId:Rn,fields:Bn}}),Ut&&(Ie.current=!0)},[i,t?.VORTEX_MAIN_URL,le,B,z?.meta?.isHorizontal,b,p,d,ue,A,h,fe,ge]),{bolticAiPromptDraftRef:St,setBolticAiPromptDraft:De,bolticAiSteps:it,bolticAiChoice:ut,setBolticAiChoice:yt,bolticAiAuth:It,setBolticAiAuth:Ft,bolticAiError:Lt,bolticAiErrorSuggestions:Me,inferTesseractEntity:Ye,handleAiAuthAddNewAccount:lt,closeBolticAiOverlay:Ze,closeBolticAiOverlayStable:Et,submitBolticAiPromptStable:vt,retryBolticAiPromptStable:kt,continueFromUserChoiceStable:Re,continueFromAuthStable:tt,stopBolticAiStream:Je,stopAiAuthPolling:Pe}=dot({ENTITY_ID:i,WORKFLOW_URLS:t,BOLTICAI_MAIN_URL:$,allowedAccount:V,dispatch:b,nodes:d,edges:p,canvasWorkflow:z,activityExecutionData:H,activities:K,triggers:ne,selectedPlaceholderId:ue,setNodes:h,setEdges:A,bolticAiOverlay:te,openIntegrationDrawer:s,nodesRef:Ee,selectedPlaceholderIdRef:_e,hiddenPlaceholderIdRef:nt,skipBetweenNodesRestoreRef:Ie,aiInlinePosRef:Ve,setAiInlinePos:ee,onApplySuccess:gt}),st=C.useMemo(()=>{const he=Ge?CE:kte;return Ge?CE:Me?.length?Me:he},[Ge,Me]),At=C.useCallback(()=>be.current(),[]);C.useEffect(()=>{if(!te?.open||te?.draggable||typeof ue!="string")return;const he=d.find(Le=>Le?.id===ue);!he||(he?.type,xt.PLACEHOLDER)},[te?.draggable,te?.open,d,ue,h]),C.useEffect(()=>{if(te?.open&&!te?.draggable&&!we){if(typeof ue=="string"){const he=te?.anchor;if(he&&typeof he.x=="number"&&typeof he.y=="number"){const qe=L({x:he.x,y:he.y});if(qe&&Number.isFinite(qe.x)&&Number.isFinite(qe.y)){const ft={x:qe.x,y:qe.y};ee(ft),Ve.current=ft;return}}try{const qe=He.current,Ut=qe?.querySelector?.(`.react-flow__node[data-id="${ue}"]`)||qe?.querySelector?.(`.react-flow__node[data-id="${ue}"]`);if(Ut){const xe=Ut.querySelector?.("button"),ct=(xe??Ut).getBoundingClientRect(),Tt=L({x:ct.left+ct.width/2,y:xe?ct.bottom:ct.top+ct.height/2});if(Tt&&Number.isFinite(Tt.x)&&Number.isFinite(Tt.y)){const zt={x:Tt.x,y:Tt.y};ee(zt),Ve.current=zt;return}}}catch{}const Le=d.find(qe=>qe?.id===ue);if(Le?.position&&Number.isFinite(Le.position.x)&&Number.isFinite(Le.position.y)){const qe=!!Le?.data?.isTriggerPlaceholder,ft=Number(Le?.measured?.width)||(qe?260:51),Ut=Number(Le?.measured?.height)||(qe?84:51),xe={x:Le.position.x+ft/2,y:Le.position.y+Ut/2};ee(xe),Ve.current=xe}return}if(ue&&typeof ue=="object"){const he=te?.anchor;if(he&&typeof he.x=="number"&&typeof he.y=="number"){const ft=L({x:he.x,y:he.y});if(ft&&Number.isFinite(ft.x)&&Number.isFinite(ft.y)){const Ut={x:ft.x,y:ft.y};ee(Ut),Ve.current=Ut;return}}const Le=d.find(ft=>ft?.id===ue.sourceNodeId),qe=d.find(ft=>ft?.id===ue.targetNodeId);if(Le?.position&&qe?.position){const ft={x:(Le.position.x+qe.position.x)/2,y:(Le.position.y+qe.position.y)/2};ee(ft),Ve.current=ft}}}},[we,te?.anchor,te?.draggable,te?.open,d,L,ue]),C.useEffect(()=>{if(!te?.open||te?.draggable||!ue||typeof ue!="object")return;const he=ue;if(!he?.id||!he?.sourceNodeId||!he?.targetNodeId||!he?.edgeId)return;const Le=String(he.id),qe=d.some(qn=>qn?.id===Le&&qn?.type===xt.AI_PROMPT),ft=`${he.sourceNodeId}-${Le}-temp`,Ut=`${Le}-${he.targetNodeId}-temp`,xe=p.some(qn=>qn?.id===ft)&&p.some(qn=>qn?.id===Ut);if(qe&&xe)return;const We=te?.anchor;if(!We||typeof We.x!="number"||typeof We.y!="number")return;const ct=L({x:We.x,y:We.y});if(!ct||!Number.isFinite(ct.x)||!Number.isFinite(ct.y))return;const Tt=550,zt=240,Qt={x:ct.x-Tt/2,y:ct.y-zt/2},sn=he.originalEdge,mn={id:Le,type:xt.AI_PROMPT,position:Qt,measured:{width:Tt,height:zt},activity_data:{id:"",properties:{}},incomingPorts:[],outgoingPorts:[],draggable:!0,dragHandle:MC,selectable:!1,connectable:!1,data:{name:Le,type:"aiPrompt",properties:{},originalEdge:sn,blt_node_states:{node:"",setup_and_configure:"default",test:"default"}}},An={id:ft,source:he.sourceNodeId,sourceHandle:(he.sourceHandle??sn?.sourceHandle)||void 0,target:Le,targetHandle:"targetHandle",type:Vn.SMOOTH,markerEnd:{type:"arrowclosed"},data:{isTempAiEdge:!0}},Rn={id:Ut,source:Le,sourceHandle:"outHandle",target:he.targetNodeId,targetHandle:(he.targetHandle??sn?.targetHandle)||void 0,type:Vn.SMOOTH,markerEnd:{type:"arrowclosed"},data:{isTempAiEdge:!0}};qe||h(qn=>[...(qn||[]).filter(ir=>ir?.id!==Le),mn]),A(qn=>{let Bn=(qn||[]).filter(ir=>ir?.data?.isTempAiEdge!==!0).filter(ir=>ir?.id!==he.edgeId);return sn?.id&&(Bn=Bn.filter(ir=>ir?.id!==sn.id)),[...Bn,An,Rn]})},[te?.anchor,te?.draggable,te?.open,d,L,ue,A,h]),C.useEffect(()=>{const he=typeof ue=="string"?ue:null,Le=!!(te?.open&&!te?.draggable);h(qe=>(qe||[]).map((ft,Ut,xe)=>{if(ft.type!==xt.PLACEHOLDER)return ft;const We=xe.length>0&&xe.every(Qt=>Qt?.type===xt.PLACEHOLDER),ct=q&&We&&ft?.data?.isTriggerPlaceholder===!0,zt=!!(Le&&he&&ft.id===he)||ct;return!zt&&ft.dragHandle!==MC?ft:{...ft,draggable:zt?!0:void 0,dragHandle:zt?MC:void 0}}))},[te?.draggable,te?.open,q,ue,h]);const Kt=C.useCallback(()=>{Ze();const he=_e.current,Le=Ee.current||[],qe=typeof he=="string"?he:he?.id;if(qe){const ft=Le.find(xe=>xe.id===qe),Ut=typeof he=="string"&&ft?.data?.isTriggerPlaceholder?"triggers":"activities";b({type:os,payload:{type:Ut,active:!0,nodeId:qe,edgeId:null,...typeof he=="object"&&he?{edgeId:he.edgeId,sourceNodeId:he.sourceNodeId,targetNodeId:he.targetNodeId,sourceHandle:he.sourceHandle,targetHandle:he.targetHandle}:{}}})}b({type:Ks,payload:!0})},[Ze,b]);C.useEffect(()=>{be.current=Kt},[Kt]),C.useEffect(()=>Je,[Je]),C.useEffect(()=>Pe,[Pe]);const hn=C.useCallback(async()=>{v&&v(!0),await fot()},[v]),Dn=C.useCallback(()=>{if(v){if(typeof window>"u"){v(!1);return}requestAnimationFrame(()=>{requestAnimationFrame(()=>{v(!1)})})}},[v]),hr=se?.nodes?.find(he=>he.data.type===Ke.SCHEDULE),dr={page:1,per_page:999};C.useEffect(()=>{ie&&ie?.info&&ie?.info?.next_action_items&&ie?.info?.next_action_items?.length&&Ae(ie.info.next_action_items)},[ie]),C.useEffect(()=>{if(U)return;if(d.filter(Le=>Le.selected&&Le.type!==xt.PLACEHOLDER).length&&(F||G)&&!wn&&!u){const Le=d.filter(qe=>qe.selected&&qe.type!==xt.PLACEHOLDER).map(qe=>({id:qe.id,name:qe.data.name,integration_slug:qe.data?.properties?.integration_slug,icon:ii(K?.data?.data,ne?.data?.data,qe.data)}));at(Le)}},[F,G,U]),C.useEffect(()=>{b({type:Ks,payload:!!X?.nodeId})},[X?.nodeId]);const[Ar,ln]=C.useState(!1),[wn,Cr]=C.useState(!1),[Bt,Jt]=C.useState(!1),[jn,_n]=C.useState(null),[Tn,Mn]=C.useState(!1),{selectedActivityId:Hn,openDrawer:Fn}=ht.useSelector(he=>he.canvas),[xr,vr]=C.useState(null),Nr=Dt.useReactFlow(),{undo:Oi,redo:qi,canUndo:tr,canRedo:go,takeSnapshot:oe}=sot(),ze=(()=>{const he=localStorage.getItem(`viewport-${ge}`);if(he)return JSON.parse(he)})();C.useEffect(()=>{if(!U)return;const he=d.find(Le=>Le.type===xt.PLACEHOLDER&&Le?.data?.isTriggerPlaceholder);d.length>1&&!he&&!Ar&&ln(!0)},[d,U,Ar]);const at=he=>{if(U)return;_n(he),d?.find(qe=>qe?.id===he?.[0]?.id)?.data?.type===Ke.FP_WEBHOOK&&E?.includes("commerce_")?Cr(!1):Cr(!0),l(null)},{onDrop:Rt,onConnect:en,onSelectionDragStart:Kn,onEdgesDelete:Zn,onPaneClick:ti,onMouseDown:Fr,onDelete:xa,onNodeDragStart:bl}=oot(Nr,oe,h,A,j),ns=C.useCallback(he=>{const Le=_.current;if(!Le||x.current||!Array.isArray(he)||he.length===0)return g?.(he);const qe=he.filter(ft=>!(ft?.type==="position"&&ft?.id&&ft.id!==Le));return g?.(qe)},[g]),pi=C.useCallback((he,Le)=>{_.current=Le?.id||null;const qe=!!(he&&(he.shiftKey||he.metaKey||he.ctrlKey)),ft=Array.isArray(d)?d.filter(xe=>xe?.selected).length:0,Ut=!!Le?.selected;return x.current=qe||Ut&&ft>1,bl?.(he,Le)},[bl,d]),Cl=C.useCallback(()=>{_.current=null,x.current=!1},[]),sr=C.useRef(null),zr=he=>he.type===Ke.SLACK_ACTIVITY?{...he,properties:{...Fk(he.properties)}}:he.type===Ke.LOOP&&he?.properties?.activity?.data?.type===Ke.SLACK_ACTIVITY?{...he,properties:{...he?.properties,activity:{...he?.properties?.activity,data:{...he?.properties?.activity.data,properties:{...Fk(he?.properties?.activity?.data?.properties)}}}}}:he,Gr=he=>cb.includes(he.type)?{...he,properties:{...Bk(he.properties)}}:he.type===Ke.LOOP&&cb.includes(he?.properties?.activity?.data?.type)?{...he,properties:{...he?.properties,activity:{...he?.properties?.activity,data:{...he?.properties?.activity.data,properties:{...Bk(he?.properties?.activity?.data?.properties)}}}}}:he,yi=async(he,Le)=>{let qe=zr(he);qe=Gr(qe);const ft=cc(qe),Ut=ft.id;if(delete ft.id,[Ke.SWITCH,Ke.PARALLEL,Ke.IF].includes(he.type))Rle(he,ft,d,p,h,A,Le);else{if(he.type===Ke.API||he.type===Ke.GRAPHQL)if(ft.properties?.continue_on_failure){Array.isArray(ft.properties?.branches)||(ft.properties.branches=[]);const Tt=ft.properties.branches.some(Qt=>Qt.ref==="success"),zt=ft.properties.branches.some(Qt=>Qt.ref==="failure");Tt||ft.properties.branches.unshift({ref:"success"}),zt||ft.properties.branches.push({ref:"failure"}),ft.properties.branches=[...ft.properties.branches.filter(Qt=>Qt.ref==="success"),...ft.properties.branches.filter(Qt=>Qt.ref!=="success"&&Qt.ref!=="failure"),...ft.properties.branches.filter(Qt=>Qt.ref==="failure")]}else{Array.isArray(ft.properties?.branches)&&(ft.properties.branches=ft.properties.branches.filter(zt=>zt.ref==="success"));const Tt=p.filter(zt=>zt.source===Ut&&(zt.sourceHandle==="failureHandle"||zt.sourceHandle==="failure"));if(Tt.length>0){const zt=Tt.map(mn=>mn.target),Qt=Tt.map(mn=>mn.id),sn=p.filter(mn=>!(mn.source===Ut&&(mn.sourceHandle==="failureHandle"||mn.sourceHandle==="failure"))&&!Qt.includes(mn.id));A(sn),h(mn=>mn.map(An=>{if(An.id===Ut){const qn=(An.outgoingPorts||[]).filter(Bn=>Bn.ref!=="failure");return{...An,outgoingPorts:qn}}if(zt.includes(An.id)){const qn=(sn??[]).filter(Bn=>Bn.target===An.id&&Bn.type!==Vn.PLACEHOLDER).map(Bn=>Bn.source).filter((Bn,ir,Jn)=>Jn.indexOf(Bn)===ir);return{...An,incomingPorts:qn}}return An}).filter(An=>!(An.type===xt.PLACEHOLDER&&zt.includes(An.id))))}}else if(!ft.properties?.continue_on_failure){const Tt=p.filter(zt=>zt.source===Ut&&zt.sourceHandle==="failureHandle");if(Tt.length>0){const zt=Tt.map(mn=>mn.target),Qt=Tt.map(mn=>mn.id),sn=p.filter(mn=>!(mn.source===Ut&&mn.sourceHandle==="failureHandle")&&!Qt.includes(mn.id));A(sn),h(mn=>mn.map(An=>{if(An.id===Ut){const qn=(An.outgoingPorts||[]).filter(Bn=>Bn.ref!=="failure");return{...An,outgoingPorts:qn}}if(zt.includes(An.id)){const qn=sn.filter(Bn=>Bn.target===An.id&&Bn.type!==Vn.PLACEHOLDER).map(Bn=>Bn.source).filter((Bn,ir,Jn)=>Jn.indexOf(Bn)===ir);return{...An,incomingPorts:qn}}return An}).filter(An=>!(An.type===xt.PLACEHOLDER&&zt.includes(An.id))))}}const ct=(typeof Nr?.getNodes=="function"?Nr.getNodes():d).map(Tt=>{if(Tt.id===Ut){const zt=Ef.includes(he.type),Qt=z5(Tt?.data?.blt_node_states?.setup_and_configure,Le);let sn=Q5(Tt?.data?.blt_node_states?.test,Le),mn=X5(Tt?.data?.blt_node_states);return zt&&Le==="skip_test"&&(sn="completed",mn="completed"),{...Tt,data:{...ft,blt_node_states:{...Tt.data.blt_node_states,node:mn,setup_and_configure:Qt,test:sn}}}}return Tt});if(h(ct),u?.id===he?.id){const Tt=ct.find(zt=>zt?.id===u?.id);Tt&&c(Tt)}}oe(),Le==="test_and_save"&&b({type:od,payload:null}),(Le==="test_and_save"||Le==="save"||Le==="skip_test"&&Ef.includes(he.type))&&(b({type:od,payload:null}),c(null),b({type:gf,payload:!1}))},Ws=C.useCallback(he=>{he.preventDefault(),he.dataTransfer.dropEffect="move"},[]),Qs={account:"paid-pro",hideAttribution:!0};C.useEffect(()=>{if(Hn){if(Hn!==u?.id||u?.type===xt.TRIGGER&&u?.id===Hn){const he=d.find(Le=>Le.id===Hn&&Le.type!==xt.PLACEHOLDER);if(he){if(u?.type===xt.TRIGGER&&u?.id===Hn){const Le=JSON.stringify(u.data)!==JSON.stringify(he.data),qe=u.position?.x!==he.position?.x||u.position?.y!==he.position?.y,ft=u.selected!==he.selected;if(!Le&&(qe||ft))return}c(he),b({type:gf,payload:!0})}}}else c(null)},[Hn,u,d,b]);const zs=()=>{b({type:od,payload:null}),c(null),b({type:gf,payload:!1})};C.useEffect(()=>{u&&Fn&&vr(u)},[u,Fn]);const rc=he=>{const Le=O0(he?.data?.name,he?.data?.type,he?.activity_data?.properties,he?.activity_data?.id);return he?.data?.type===Ke.HTTP&&(Le.properties={...Le.properties,endpoint:Yt(j,ge)}),Le},Eo=C.useCallback(async he=>{await hn();try{const Le=d.filter(Rn=>!(Rn.type===xt.PLACEHOLDER&&Rn.data?.isActivityPlaceholder)),qe=p.filter(Rn=>Rn.type!==Vn.PLACEHOLDER),ft=No(Le),Ut=No(qe),{nodes:xe,edges:We}=await PC(ft,Ut,fe,he),ct=xe.filter(Rn=>!(Rn.type===xt.PLACEHOLDER&&Rn.data?.isActivityPlaceholder)),Tt=We.filter(Rn=>Rn.type!==Vn.PLACEHOLDER),zt=he==="LR",{placeholderNodes:Qt,placeholderEdges:sn}=vb(ct,Tt,zt),mn=[...ct,...Qt],An=[...Tt,...sn];h(mn),A(An),he==="LR"&&requestAnimationFrame(()=>{mn.forEach(Rn=>{Rn?.id&&fe(Rn.id)}),requestAnimationFrame(()=>{mn.forEach(Rn=>{Rn?.id&&fe(Rn.id)})})}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{D?.({padding:.12,includeHiddenNodes:!1,duration:0,maxZoom:1}),(he==="LR"||he==="TB")&&requestAnimationFrame(()=>{ct.forEach(Rn=>{Rn?.id&&fe(Rn.id)}),D?.({padding:.12,includeHiddenNodes:!1,duration:0,maxZoom:1})})})}),b({type:ac,payload:{...z,meta:{...z.meta,isHorizontal:he==="LR"}}})}finally{Dn()}},[d,p,h,A,fe,D,z,b,hn,Dn,U]);C.useEffect(()=>{const Le=d.filter(qe=>!(qe.type===xt.PLACEHOLDER&&qe.data?.isActivityPlaceholder)&&!(qe.type===xt.PLACEHOLDER&&qe.data?.isTriggerPlaceholder)).length;Le>0&&w.current===0?(w.current=Le,setTimeout(()=>{const qe=z?.meta?.isHorizontal??!0?"LR":"TB";Eo(qe)},200)):(Le>w.current||Le<w.current)&&(w.current=Le)},[d,Eo,z?.meta?.isHorizontal]);const ws=()=>{try{if(!D){ln(!1);return}if(U){requestAnimationFrame(()=>{try{D({duration:0,maxZoom:1,padding:.1})}catch{}});return}D({duration:300,maxZoom:1})}catch{}};C.useEffect(()=>{const he=d.find(Le=>Le.type===xt.PLACEHOLDER&&Le?.data?.isTriggerPlaceholder);d.length>1&&!he&&Ar&&U&&ws()},[d,Ar,U]),C.useEffect(()=>{if(U){const he=d.some(qe=>qe.type===xt.PLACEHOLDER&&qe.data?.isActivityPlaceholder),Le=p.some(qe=>qe.type===Vn.PLACEHOLDER);if(he||Le){const qe=d.filter(Ut=>!(Ut.type===xt.PLACEHOLDER&&Ut.data?.isActivityPlaceholder)),ft=p.filter(Ut=>Ut.type!==Vn.PLACEHOLDER);h(qe),A(ft)}}},[U,d,p,h,A]),C.useEffect(()=>{if(U)return;if(d.filter(Le=>Le.selected&&Le.type!==xt.PLACEHOLDER).length&&(F||G)&&!wn&&!u){const Le=d.filter(qe=>qe.selected&&qe.type!==xt.PLACEHOLDER).map(qe=>({id:qe.id,name:qe.data.name,icon:ii(K?.data?.data,ne?.data?.data,qe.data)}));at(Le)}},[F,G,U]);const Vo=(he,Le,qe,ft,Ut)=>{if(U)return;const xe=qe.find(Jn=>Jn.id===Le);if(!xe)return;const We=he==="outHandle"?void 0:he==="failureHandle"?"failure":he,ct=(xe.outgoingPorts||[]).some(Jn=>{if(We){if(Jn.ref!==We)return!1}else if(Jn.ref&&Jn.ref!==he)return!1;const Fi=qe.find(Is=>Is.id===Jn.id);return Fi?!(Fi.type===xt.PLACEHOLDER&&Fi.data?.isActivityPlaceholder):!1}),Tt=ft.some(Jn=>{if(Jn.source!==Le||(Jn.sourceHandle||"outHandle")!==(he||"outHandle")||Jn.type===Vn.PLACEHOLDER||Jn.target?.startsWith("placeholder_")||qe.some(cf=>cf.id===Jn.target&&cf.type===xt.PLACEHOLDER&&cf.data?.isActivityPlaceholder))return!1;const Vi=qe.find(cf=>cf.id===Jn.target);return Vi?Vi.type!==xt.PLACEHOLDER:!1});if(ct||Tt)return;const Qt=z?.meta?.isHorizontal??!0,sn=J5(xe),mn=sn.findIndex(Jn=>Jn.id===he||Jn.id==="outHandle");if(ft.find(Jn=>Jn.source===Le&&(Jn.sourceHandle||"outHandle")===(he||"outHandle")&&Jn.type===Vn.PLACEHOLDER))return;const Rn=`placeholder_${Math.trunc(Math.random()*1e9)}`,qn=r4(xe,mn>=0?mn:0,sn.length,Qt),Bn={id:Rn,position:qn,type:xt.PLACEHOLDER,data:{name:"Placeholder",isActivityPlaceholder:!0,sourceNodeId:Le,sourceHandle:he||"outHandle"},measured:{width:51,height:51},incomingPorts:[Le],outgoingPorts:[]},ir={id:`placeholder_edge_${Math.trunc(Math.random()*1e9)}`,source:Le,sourceHandle:he||"outHandle",target:Rn,targetHandle:"targetHandle",type:Vn.PLACEHOLDER,data:{isStraight:!1},markerEnd:{type:"arrowclosed"}};h(Jn=>[...Jn,Bn]),A(Jn=>[...Jn,ir])},ru=C.useMemo(()=>({[xt.TRIGGER]:he=>f.jsx(iot,{currentSubscription:r,handleDeleteNode:at,onHandleClick:(Le,qe,ft,Ut)=>Vo(Le,he.id,qe,ft),ENTITY_ID:i,VORTEX_MAIN_URL:R,VORTEX_SYNC_DOMAIN:j,...he,pro_integration:T}),[xt.CONDITION]:he=>f.jsx(Kit,{handleDeleteNode:at,onHandleClick:(Le,qe,ft,Ut)=>Vo(Le,he.id,qe,ft),ENTITY_ID:i,VORTEX_MAIN_URL:R,onRunWithPrevious:rt,...he,pro_integration:T}),[xt.SWITCH]:he=>f.jsx(rot,{handleDeleteNode:at,onHandleClick:(Le,qe,ft,Ut)=>Vo(Le,he.id,qe,ft),ENTITY_ID:i,VORTEX_MAIN_URL:R,onRunWithPrevious:rt,...he,pro_integration:T}),[xt.NORMAL]:he=>f.jsx(Zit,{handleDeleteNode:at,onHandleClick:(Le,qe,ft,Ut)=>Vo(Le,he.id,qe,ft),ENTITY_ID:i,VORTEX_MAIN_URL:R,onRunWithPrevious:rt,...he,pro_integration:T}),[xt.PARALLEL]:he=>f.jsx(Jit,{handleDeleteNode:at,onHandleClick:(Le,qe,ft,Ut)=>Vo(Le,he.id,qe,ft),ENTITY_ID:i,VORTEX_MAIN_URL:R,onRunWithPrevious:rt,...he,pro_integration:T}),[xt.AI_PROMPT]:he=>f.jsx(Lte,{...he,allowDrag:Fte(te?.mode),overlayProps:Bte({promptKind:Ge?"trigger":"activity",mode:te?.mode,promptValue:St.current,onPromptChange:De,onClose:Et,onSubmit:vt,onRetry:kt,onAddManually:At,steps:it,suggestions:te?.mode==="error"?st:Ne,errorText:Lt,choice:ut,setChoice:yt,onContinueChoice:Re,auth:It,setAuth:Ft,onContinueAuth:tt,inferTesseractEntity:Ye,ENTITY_ID:i,WORKFLOW_URLS:t,openIntegrationDrawer:s,onAddNewAccount:lt})}),placeholder:he=>{const Le=!!(he.data?.isTriggerPlaceholder===!0&&d.some(ft=>ft?.type===xt.PLACEHOLDER)&&!d.some(ft=>ft?.type!==xt.PLACEHOLDER));return Le&&q||te?.open&&!te?.draggable&&typeof ue=="string"&&ue===he.id?f.jsx(Lte,{...he,allowDrag:Fte(te?.mode),hideTargetHandle:Le,overlayProps:Bte({promptKind:Le||Ge?"trigger":"activity",mode:te?.mode,promptValue:St.current,onPromptChange:De,onClose:Et,onSubmit:vt,onRetry:kt,onAddManually:At,steps:it,suggestions:te?.mode==="error"?Le?CE:st:Le?CE:Ne,errorText:Lt,choice:ut,setChoice:yt,onContinueChoice:Re,auth:It,setAuth:Ft,onContinueAuth:tt,inferTesseractEntity:Ye,ENTITY_ID:i,WORKFLOW_URLS:t,openIntegrationDrawer:s,onAddNewAccount:lt})}):f.jsx(not,{onHandleClick:(ft,Ut,xe,We)=>Vo(ft,he.id,Ut,xe),VORTEX_SYNC_DOMAIN:j,...he,pro_integration:T})}}),[It,ut,Lt,Me,st,te?.mode,te?.draggable,te?.open,it,Et,tt,Re,At,T,rt,ue,rt,kt,vt]),ic=C.useMemo(()=>({smooth:Fit,placeholder:Mit}),[]);C.useEffect(()=>{const he={page:1,per_page:999};return(!ne?.data?.data?.length||!K?.data?.data?.length)&&(b(mJ({...he,integrations:!0},R,i)),b(gJ({...he,triggers:!0},R,i))),()=>{b({type:vi.FETCH_ACTIVITIES_SUCCESS,payload:{data:[]}})}},[b]),C.useEffect(()=>{U||W&&!u&&h(he=>he.map(Le=>({...Le,selected:!0})))},[W,U]);const me=()=>jn?jn?.length===1?"Are you sure?":`Are you sure you want to delete ${jn.length} activities?`:"",Be=()=>jn?.length>1?jn:f.jsxs(O.Box,{children:[f.jsx(O.Typography,{variant:"smNormal",color:M.palette.text.tertiary,children:"Deleting"})," ",f.jsxs(O.Typography,{variant:"smNormal",color:M.palette.text.primary,children:['"',jn?.[0].name,'"']})," ",f.jsx(O.Typography,{variant:"smNormal",color:M.palette.text.tertiary,children:"would permanently delete the activity and this action cannot be undone."})]}),ot=C.useRef(null),Mt=C.useMemo(()=>{let he=null;if(n){if(C.isValidElement(n))he=f.jsx(O.Stack,{sx:{position:"absolute",width:"100%",zIndex:10},children:n});else if(typeof n=="function"){const Le=n;he=f.jsx(O.Stack,{sx:{position:"absolute",width:"100%",zIndex:10},children:f.jsx(Le,{})})}else typeof n=="string"&&(he=f.jsx(O.Stack,{sx:{position:"absolute",width:"100%",zIndex:10},children:f.jsx("div",{dangerouslySetInnerHTML:{__html:ro(n)}})}));he&&!ot.current&&(ot.current=he)}return he||ot.current},[n]),Yn=()=>Array.isArray(jn)?le.filter(Le=>!jn.some(qe=>qe.name===Le)):[],In=()=>Z?.data?.data?.length?Ot(z)?!1:!(Se===kr.DRAFT||se?.version===Z?.data?.data?.[0]?.version):!1,rr=(he,Le)=>{Mn(!1),o?o(`/accounts/${i}/workflow-builder/${Le}/${ge}/version/${he}`,{}):window.location.href=dd(`/accounts/${i}/workflow-builder/${Le}/${ge}/version/${he}`)},mr=()=>{Mn(!0),rr(Z?.data?.data?.[0]?.id,Z?.data?.data?.[0]?.status)},Mi=Due(M),Lr=55,Ui=95,no=re??340,ni=`-${Lr}px`,Hi=`calc(100% + ${Ui}px)`,Ki=ni,Xs=ae?`calc(${Hi} - ${no}px)`:Hi;return C.useEffect(()=>{if((se||ye)&&!Z?.data?.data?.length){const he=[Pn.PUBLISHED,Pn.SCHEDULED].includes(Se)&&se?.id||se?.parent_id;he&&b(Of(dr,he,R,i))}},[se?.meta?.workflow_id,b,ye,Z?.data?.data?.length]),C.useEffect(()=>{wn||_n(null)},[wn]),C.useEffect(()=>{const he=d.find(qe=>qe.type===xt.PLACEHOLDER&&qe?.data?.isTriggerPlaceholder===!0),Le=d.filter(qe=>qe.type===xt.TRIGGER).length;!U&&!he&&Le===0&&Il("create",d,p,h,en,b)},[d,p]),C.useEffect(()=>{if(!q)return;const he=d.find(An=>An?.type===xt.PLACEHOLDER&&An?.data?.isTriggerPlaceholder===!0);if(!he){de.current=null;return}const Le=d.some(An=>An?.type&&An.type!==xt.PLACEHOLDER),qe=d.filter(An=>An?.type===xt.PLACEHOLDER).length;if(Le||qe!==d.length){de.current=null;return}if(de.current===he.id)return;const ft=He.current;if(!ft)return;const Ut=ft.getBoundingClientRect();if(!Number.isFinite(Ut.left)||!Number.isFinite(Ut.top)||Ut.width<=0||Ut.height<=0)return;const xe=550,We=240,ct=typeof Y=="number"?Y:parseFloat(String(Y).replace(/px/gi,"").trim())||600;let Tt=24;Fn&&(u||xr)&&(Tt+=ct),Bt&&(Tt+=ct);const zt=Math.max(200,Ut.width-Tt),Qt={x:Ut.left+zt/2,y:Ut.top+Ut.height/2},sn=L(Qt);if(!sn||!Number.isFinite(sn.x)||!Number.isFinite(sn.y))return;const mn={x:sn.x-xe/2,y:sn.y-We/2};h(An=>(An||[]).map(Rn=>Rn?.id===he.id?{...Rn,position:mn,measured:{width:xe,height:We}}:Rn)),de.current=he.id,requestAnimationFrame(()=>fe?.(he.id))},[xr,Y,d,Bt,Fn,L,u,h,fe,q,d,L,h,fe]),C.useEffect(()=>{J&&d.length>0&&D&&requestAnimationFrame(()=>{D({duration:300,maxZoom:1,padding:.1,includeHiddenNodes:!1})})},[J,D]),f.jsxs(O.Box,{className:"reactflow-parent-wrapper",sx:{position:"relative"},children:[f.jsxs(O.Box,{className:"reactflow-wrapper",ref:He,sx:{position:"relative"},children:[f.jsxs(O.Box,{height:`calc(100vh - ${Ui}px)`,width:"calc(100vw - 48px)",sx:{opacity:J?0:1,position:"relative","& .right":{width:"fit-content !important",position:"absolute !important"}},children:[Mt,f.jsxs(Dt.ReactFlow,{onlyRenderVisibleElements:!0,nodesConnectable:Te,zoomOnScroll:Te,nodesDraggable:Te,panOnScroll:!0,panOnDrag:!0,zoomOnDoubleClick:Te,ref:sr,nodes:d,edges:p,onNodesChange:ns,onEdgesChange:m,onNodesDelete:Fe,onDrop:Rt,onDragOver:Ws,nodeTypes:ru,edgeTypes:ic,onConnect:en,onSelectionDragStart:Kn,onEdgesDelete:Zn,onPaneClick:ti,onMouseDown:Fr,onDelete:xa,onNodeDragStart:pi,onNodeDragStop:Cl,proOptions:Qs,...ze&&{defaultViewport:ze},selectionMode:Dt.SelectionMode.Partial,connectionLineComponent:he=>{const Le=Math.abs(he.fromX-he.toX),qe=Math.abs(he.fromY-he.toY);return Le>15||qe>15?f.jsx(Lit,{...he}):null},deleteKeyCode:null,children:[J&&f.jsxs(O.Stack,{height:"100%",alignItems:"center",justifyContent:"center",p:3,children:[f.jsx(hi,{size:30}),J&&f.jsx(O.Typography,{variant:"smNormal",sx:{mt:2,color:"text.secondary"},children:"Importing workflow..."})]}),Se===kr.DRAFT&&f.jsx(Dt.Background,{style:{backgroundColor:M.palette.white.smoke}}),se&&hr&&se.active&&!ie?.info?.state?.paused&&f.jsx(zce,{nextTimeStamps:pe}),f.jsx(Rce,{undo:Oi,redo:qi,canUndo:tr,canRedo:go,onLayout:Eo,bottomOffsetPx:Oe,onAutoLayout:async()=>{await hn();try{const he=d.filter(Bn=>!(Bn.type===xt.PLACEHOLDER&&Bn.data?.isActivityPlaceholder)),Le=p.filter(Bn=>Bn.type!==Vn.PLACEHOLDER),qe=z?.meta?.isHorizontal??!0?"LR":"TB",ft=[...he],Ut=[...Le],xe=No(ft),We=No(Ut),{nodes:ct,edges:Tt}=await PC(xe,We,fe,qe),zt=ct.filter(Bn=>!(Bn.type===xt.PLACEHOLDER&&Bn.data?.isActivityPlaceholder)),Qt=Tt.filter(Bn=>Bn.type!==Vn.PLACEHOLDER),sn=qe==="LR",{placeholderNodes:mn,placeholderEdges:An}=vb(zt,Qt,sn),Rn=[...zt,...mn],qn=[...Qt,...An];h(Rn),A(qn),requestAnimationFrame(()=>{requestAnimationFrame(()=>{D?.({padding:.12,includeHiddenNodes:!1,duration:0,maxZoom:1})})})}finally{Dn()}}})]})]}),f.jsx(aot,{open:!!y}),null]}),f.jsx(Bce,{title:me(),description:Be(),open:wn&&!U,onDelete:async()=>{if(!U){if(Array.isArray(jn)){const he=[],Le=[];jn.forEach(ft=>{const{id:Ut}=ft;he.push(Ut);const xe=ft.integration_slug&&Ut?`${ft.integration_slug}_${Ut}`:Ut;typeof xe=="string"&&xe.trim()&&Le.push(xe)}),Dle(he,d,p,I,i,B);const qe=Yn();b({type:vi.SET_ACTIVITY_NAMES,payload:qe}),Cr(!1),_n(null),ge&&R&&i&&Le.length>0&&NC(ge,Le,R,i).catch(()=>{});return}Cr(!1),_n(null)}},onClose:()=>{Cr(!1),_n(null)}}),f.jsx(O.Slide,{in:!!(Fn&&(u||xr)),direction:"left",mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:280,exit:180},onExited:()=>{vr(null)},children:f.jsx(O.Stack,{alignItems:"center",sx:{width:Y,position:"absolute",right:Bt?Y:0,backgroundColor:M.palette.background.paper,height:Xs,zIndex:M.zIndex.drawer+2,top:Ki},children:(()=>{const he=u||xr;return he?f.jsx(wte,{selectedNode:he,onClose:zs,onSubmit:yi,drawerWidth:Y,openIntegrationDrawer:s,initialState:rc(he),setSelectedNode:c,INTEGRATION_DATA:a,SET_INTEGRATION_DATA:l,openDocs:Bt,setOpenDocs:Jt,source:E,MCP_INTEGRATION_FORM:!1}):null})()})}),Bt&&f.jsx(O.Stack,{alignItems:"center",sx:{width:Y,position:"absolute",right:0,backgroundColor:M.palette.background.paper,height:Xs,zIndex:M.zIndex.drawer+2,top:Ki},children:f.jsx(oAe,{selectedNode:u,openDocs:Bt,setOpenDocs:Jt})}),In()&&f.jsx(O.Button,{variant:"outlined",sx:{position:"fixed",width:162,height:40,right:68,bottom:ae?Oe+16:56,backgroundColor:M.palette.common.white,boxShadow:Mi.primary.outlined,"&:hover":{backgroundColor:M.palette.common.white}},startIcon:Tn?f.jsx(O.CircularProgress,{size:10}):f.jsx(Ue,{width:10,height:10,src:"ic_goback"}),onClick:mr,children:"Switch to latest"})]})},Aot=e=>{const{toggleDrawer:t}=e,n=O.useTheme(),{workflow:r}=ht.useSelector(i=>i.workflows);return f.jsxs(O.Stack,{direction:"row",width:"100%",sx:{zIndex:i=>i.zIndex.drawer+1,justifyContent:"space-between",alignItems:"center",backgroundColor:i=>i.palette.common.white,borderTop:i=>`1px solid ${i.palette.grey[200]}`,borderBottom:i=>`1px solid ${i.palette.grey[200]}`,height:40,minHeight:40,maxHeight:40,px:2,py:0,boxSizing:"border-box"},children:[f.jsxs(O.IconButton,{onClick:t,sx:{gap:.5},children:[f.jsx(Ue,{width:20,height:20,src:"ic_view_timeline"}),f.jsx(O.Typography,{variant:"smSemiBold",sx:{color:n.palette.neutral.plain,fontSize:14,ml:.5},children:"Run logs"})]}),f.jsxs(O.Stack,{direction:"row",gap:1,alignItems:"center",justifyContent:"end",children:[f.jsx(O.Box,{sx:{width:10,height:10,borderRadius:"50%",backgroundColor:n.palette.primary.main}}),f.jsxs(O.Typography,{variant:"xsNormal",sx:{fontSize:12,lineHeight:"16px",color:i=>i.palette.text.tertiary},children:["Last saved on ",A4(new Date(r?.updated_at||new Date),"DD MMM YYYY, hh:mm A")]})]})]})},mot=e=>{const{toggleDrawer:t}=e;return f.jsx(Aot,{toggleDrawer:t})},f8=e=>{const t=e?.startsWith("EVENT_TYPE_")?e.replace("EVENT_TYPE_",""):e,n=t==="ACTIVITY_TASK_COMPLETED",r=t==="ACTIVITY_TASK_FAILED"||t==="ACTIVITY_TASK_TIMED_OUT"||t==="ACTIVITY_TASK_CANCELED",i=t==="ACTIVITY_TASK_SCHEDULED",o=t==="ACTIVITY_TASK_STARTED";let s="pending";return n?s="completed":r?s="failed":o&&(s="running"),{isSuccess:n,isError:r,isPending:i,isRunning:o,status:s}},$te=(e,t,n)=>{const i=e.events?.find(p=>p.eventType===Xn.ACTIVITY_TASK_SCHEDULED)?.activityTaskScheduledEventAttributes?.input?.payloads?.[0]?.data,o=e.name||i?.name||i?.trigger?.name||"",s=e.type||i?.type||"",a=i?.trigger?i.trigger:i,l=ii(t?.data?.data||[],n?.data?.data||[],a)||"",u=i?.trigger?.name||i?.name||o,c=!!ii(t?.data?.data||[],n?.data?.data||[],a,"pro"),d=!!i?.trigger;return{name:o,icon:l,type:s,displayName:u,pro:c,isTrigger:d}},p8=e=>e?e.slice(0,2).toUpperCase():"",h8=e=>e?.isTrigger===!0||e?.type==="trigger",Ute=e=>e.filter(t=>"type"in t&&t.type===Ke.LOOP).map(t=>t.inputData?.properties?.activity?.data?.name||t.input?.properties?.activity?.data?.name).filter(Boolean);function got(e,t,n,r){const i=[],o=jF(t),s=BF(t);e.filter(A=>A.eventType==="ACTIVITY_TASK_SCHEDULED").sort((A,g)=>{const m=v=>{if(v.eventTime?.seconds)return Number(v.eventTime.seconds)*1e3+(Number(v.eventTime.nanos)||0)/1e6;const T=t.find(_=>_.eventId===v.eventId);return T?.eventTime?.seconds?Number(T.eventTime.seconds)*1e3+(Number(T.eventTime.nanos)||0)/1e6:0},E=m(A),y=m(g);return E!==y?E-y:Number(A.eventId)-Number(g.eventId)}).forEach(A=>{const g=t.filter(I=>(I.activityTaskCompletedEventAttributes?.scheduledEventId||I.activityTaskFailedEventAttributes?.scheduledEventId||I.activityTaskTimedOutEventAttributes?.scheduledEventId||I.activityTaskStartedEventAttributes?.scheduledEventId||I.activityTaskCancelRequestedEventAttributes?.scheduledEventId||I.activityTaskCanceledEventAttributes?.scheduledEventId)===A.eventId||I.eventType===Xn.ACTIVITY_TASK_SCHEDULED&&I.eventId===A.eventId),m=e.find(I=>(I.eventType==="ACTIVITY_TASK_COMPLETED"||I.eventType==="ACTIVITY_TASK_FAILED"||I.eventType==="ACTIVITY_TASK_TIMED_OUT"||I.eventType==="ACTIVITY_TASK_CANCELED")&&(I.activityTaskCompletedEventAttributes?.scheduledEventId===A.eventId||I.activityTaskFailedEventAttributes?.scheduledEventId===A.eventId||I.activityTaskTimedOutEventAttributes?.scheduledEventId===A.eventId||I.activityTaskCanceledEventAttributes?.scheduledEventId===A.eventId));let E="";m&&m.rawTimeDiff!==void 0&&m.rawTimeDiff!==""&&(E=typeof m.rawTimeDiff=="number"?m.rawTimeDiff:""),(A.activityTaskScheduledEventAttributes?.input?.payloads?.[0]?.data?.trigger||A.activityTaskScheduledEventAttributes?.activityType?.name==="loop")&&(E="");let v=Xn.ACTIVITY_TASK_SCHEDULED;if(m&&m.eventType)v=m.eventType;else{const I=g.map(P=>P.eventType);if(I.includes(Xn.ACTIVITY_TASK_TIMED_OUT)||I.includes(Xn.ACTIVITY_TASK_FAILED)||I.includes(Xn.ACTIVITY_TASK_CANCELED))v=Xn.ACTIVITY_TASK_FAILED;else if(I.includes(Xn.ACTIVITY_TASK_COMPLETED)){v=Xn.ACTIVITY_TASK_COMPLETED;const k=t.find(N=>N.eventType===Xn.ACTIVITY_TASK_COMPLETED&&N.activityTaskCompletedEventAttributes?.scheduledEventId===A.eventId)?.activityTaskCompletedEventAttributes?.result?.payloads?.[0]?.data;k&&typeof k=="object"&&k!==null&&"isBranch"in k&&"nextPortId"in k&&"error"in k&&(v=Xn.ACTIVITY_TASK_FAILED)}else I.includes(Xn.ACTIVITY_TASK_STARTED)&&(v=Xn.ACTIVITY_TASK_STARTED)}let T={};if(m&&(T=m.outputData||{}),T&&typeof T=="object"&&!Array.isArray(T)){const I={...T};if(delete I.isBranch,delete I.branchToExecute,typeof I.message=="string")try{T=JSON.parse(I.message)}catch{T={message:I.message}}else T=I}const _=t.find(I=>I.eventId===A.eventId),{inputData:x}=_?UF(_,o,t,n,r):{inputData:A.inputData||{}},b={name:A.eventName||"",type:A.type||"",pro:A.pro||!1,eventTime:E,eventId:A.eventId,events:g,eventType:v,input:x,result:T},{result:w,eventType:D}=M_(b.name,s,b.result,b.eventType);b.result=w,b.eventType=D,i.push(b)});const u=new Map;i.forEach(A=>{if(A.type===Ke.LOOP){const g=A.input?.properties?.activity?.data?.name||A.inputData?.properties?.activity?.data?.name;g&&u.set(A.name,[g])}});const c=new Map;u.forEach((A,g)=>{A.forEach(m=>{c.set(m,g)})});const d=new Map;i.forEach(A=>{const g=t.find(E=>E.eventId===A.eventId&&E.eventType===Xn.ACTIVITY_TASK_SCHEDULED);let m=0;g?.eventTime?.seconds?m=Number(g.eventTime.seconds)*1e3+(Number(g.eventTime.nanos)||0)/1e6:m=Number(A.eventId)||0,d.set(A.name,m)});const p=new Map;return i.forEach(A=>{const g=c.get(A.name);if(g){const m=d.get(g)||0;p.set(A.name,{name:g,time:m})}}),i.sort((A,g)=>{const m=A.type===Ke.LOOP,E=g.type===Ke.LOOP,y=c.has(A.name),v=c.has(g.name),T=y?c.get(A.name):null,_=v?c.get(g.name):null,x=d.get(A.name)||0,b=d.get(g.name)||0;if(m&&v&&_===A.name)return-1;if(E&&y&&T===g.name)return 1;if(y&&v&&T===_)return x!==b?x-b:Number(A.eventId)-Number(g.eventId);if(y&&T){const w=p.get(A.name);if(w){if(g.name===T||b<w.time)return 1;if(b>w.time&&!v)return-1}}if(v&&_){const w=p.get(g.name);if(w){if(A.name===_||x<w.time)return-1;if(x>w.time&&!y)return 1}}return x!==b?x-b:Number(A.eventId)-Number(g.eventId)})}const Hte=(e,t,n,r="events")=>{if(!e?.logs?.events?.length)return[];const i=WF(e.logs.events,t,n);if(r==="blocks")return got(i,e.logs.events,t,n);{const o=["WORKFLOW_TASK_STARTED","WORKFLOW_TASK_COMPLETED","ACTIVITY_TASK_STARTED"],s=i.filter(h=>!h?.eventType.includes("SCHEDULED")&&!o.includes(h?.eventType)&&h.eventType.includes("ACTIVITY_")),a=new Map;s.forEach(h=>{if(h.type===Ke.LOOP){const A=h.inputData?.properties?.activity?.data?.name;A&&a.set(h.eventName||"",[A])}});const l=new Map;a.forEach((h,A)=>{h.forEach(g=>{l.set(g,A)})});const u=new Map;e.logs.events.forEach(h=>{if(h.eventTime?.seconds){const A=Number(h.eventTime.seconds)*1e3+(Number(h.eventTime.nanos)||0)/1e6;u.set(Number(h.eventId),A)}});const c=new Map;s.forEach(h=>{const A=h.activityTaskCompletedEventAttributes?.scheduledEventId||h.activityTaskStartedEventAttributes?.scheduledEventId||h.activityTaskFailedEventAttributes?.scheduledEventId||h.activityTaskTimedOutEventAttributes?.scheduledEventId;if(A){const g=u.get(Number(A))||0;c.set(h.eventName||"",g)}});const d=new Map;s.forEach(h=>{const A=c.get(h.eventName||"")||0,g=A>0?A:Number(h.eventId)||0;d.set(h.eventName||"",g)});const p=new Map;return s.forEach(h=>{const A=l.get(h.eventName||"");if(A){const g=d.get(A)||0;p.set(h.eventName||"",{name:A,time:g})}}),s.sort((h,A)=>{const g=h.type===Ke.LOOP,m=A.type===Ke.LOOP,E=l.has(h.eventName||""),y=l.has(A.eventName||""),v=E?l.get(h.eventName||""):null,T=y?l.get(A.eventName||""):null,_=d.get(h.eventName||"")||0,x=d.get(A.eventName||"")||0;if(g&&y&&T===h.eventName)return-1;if(m&&E&&v===A.eventName)return 1;if(E&&y&&v===T)return _!==x?_-x:Number(h.eventId)-Number(A.eventId);if(E&&v){const b=p.get(h.eventName||"");if(b){if(A.eventName===v||x<b.time)return 1;if(x>b.time&&!y)return-1}}if(y&&T){const b=p.get(A.eventName||"");if(b){if(h.eventName===T||_<b.time)return-1;if(_>b.time&&!E)return 1}}return _!==x?_-x:Number(h.eventId)-Number(A.eventId)})}},Eot=e=>{if(e==null||e==="")return 0;if(typeof e=="number")return e;if(typeof e=="string"){const t=e.match(/(\d+\.?\d*)\s*(day|days|hr|hrs|min|mins|sec|secs|ms)/);if(t){const n=parseFloat(t[1]);switch(t[2]){case"day":case"days":return n*864e5;case"hr":case"hrs":return n*36e5;case"min":case"mins":return n*6e4;case"sec":case"secs":return n*1e3;case"ms":return n;default:return 0}}return 0}if(typeof e=="object"&&e.seconds!==void 0){const t=Number(e.seconds)||0,n=Number(e.nanos)||0;return t*1e3+n/1e6}return 0},Oot=(e,t)=>{const n=Eot(e);return n===0?"-":t(n)},_E=(e,t="full")=>{if(!e)return"";let n;if(typeof e=="string")n=Sn(e);else if(e instanceof Date)n=Sn(e);else if(typeof e=="number")n=Sn(e);else if(typeof e=="object"&&"seconds"in e){const r=Number(e.seconds)||0,i=Number(e.nanos)||0,o=r*1e3+i/1e6;n=Sn(o)}else return"";if(!n.isValid())return"";switch(t){case"compact":return n.format("DD/MM/YYYY - hh:mm:ss A");case"withDay":return n.format("ddd DD MMM YYYY [at] h:mm:ss A");case"log":return n.format("MMM DD, YYYY, hh:mm A");case"iso":return n.toISOString();default:return n.format("DD MMM YYYY [at] h:mm:ss A")}},yot=32,vot=8,Tot=1;function Ex(e){const{rows:t=3,sx:n,"aria-label":r="Loading"}=e,o=O.useTheme().palette.skeleton?.runLogsFill;return f.jsx(O.Box,{"aria-busy":"true","aria-label":r,sx:{width:"100%",boxSizing:"border-box",bgcolor:"common.white",p:`${vot}px`,...n},children:f.jsx(MF,{width:"100%",height:yot,count:t,stackGap:Tot,backgroundColor:o,sx:{borderRadius:"8px"}})})}const Sot=({block:e,selectedBlock:t,setSelectedBlock:n,isLoopChild:r=!1,hideStatusIcon:i=!1,disableRowStyles:o=!1})=>{const s=O.useTheme(),{activities:a,triggers:l}=ht.useSelector(E=>E.activities),{isSuccess:u,isError:c,isPending:d,isRunning:p}=f8(e.eventType),{icon:h,displayName:A,pro:g}=$te(e,a,l),m=f.jsxs(f.Fragment,{children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"center",gap:.5,children:[!i&&u&&f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",width:20,height:20,children:f.jsx(Ue,{src:"ic_success",width:s.icons.md,height:s.icons.md,sx:{path:{fill:"#51BC51"}}})}),!i&&c&&f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",width:20,height:20,children:f.jsx(Ue,{src:"ic_close_filled",width:s.icons.md,height:s.icons.md,sx:{path:{fill:s.palette.error.main}}})}),!i&&d&&f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",width:20,height:20,children:f.jsx(Ue,{src:"ic_pending",width:s.icons.md,height:s.icons.md,sx:{path:{fill:s.palette.text.tertiary}}})}),!i&&p&&f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",width:20,height:20,children:f.jsx(Ue,{src:"ic_run",width:s.icons.md,height:s.icons.md,sx:{color:s.palette.primary.main}})}),Ot(h)?f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",width:20,height:20,sx:{borderRadius:1,border:`1px solid ${s.palette.grey[200]}`,background:s.palette.grey[200]},children:f.jsx(O.Typography,{variant:"xxsNormal",sx:{lineHeight:1},children:p8(A)})}):f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",width:20,height:20,sx:{"& img":{display:"block"}},children:f.jsx("img",{src:h,alt:e.type,width:s.icons.md,height:s.icons.md})})]}),f.jsxs(O.Stack,{direction:"row",gap:i?.75:.5,alignItems:"center",sx:{flex:1,minWidth:0},children:[f.jsx(O.Typography,{variant:"smMedium",sx:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:12,lineHeight:1,color:i?"#343738":s.palette.text.secondary},children:A}),g&&f.jsx(Qd,{})]}),f.jsx(O.Stack,{direction:"row",alignItems:"center",gap:.5,justifyContent:"flex-end",sx:{ml:"auto",mr:e.eventTime?0:1,flexShrink:0},children:f.jsx(O.Typography,{sx:{whiteSpace:"nowrap",fontSize:12,lineHeight:1,color:s.palette.text.tertiary,display:"flex",alignItems:"center"},children:Oot(e.eventTime,Wp)})})]});return o?f.jsx(O.Stack,{direction:"row",alignItems:"center",sx:{flex:1,minWidth:0},children:m}):f.jsx(O.Stack,{direction:"row",alignItems:"center",gap:.5,sx:{padding:i?"8px 0":"8px 12px",paddingLeft:i?0:r?"29px":"12px",borderRadius:1.5,minHeight:32,cursor:"pointer",userSelect:"none",overflow:"hidden",background:t?.eventId===e.eventId?E=>E.palette.primary?.[5]??E.palette.primary?.["5"]??"#FFEEEA":E=>E.palette.common.white,"&:hover":{background:t?.eventId===e.eventId?E=>E.palette.primary?.[5]??E.palette.primary?.["5"]??"#FFEEEA":E=>_a(E.palette.common.black,2.35)}},onClick:()=>n(e),children:m},e.eventId)},Vte=(e,t)=>!!e&&!!t?.loading&&(t.fetchedForExecutionId==null||String(t.fetchedForExecutionId)!==String(e)),xot=C.memo(e=>{const t=O.useTheme(),{executionLogs:n,executionId:r,setSelectedBlock:i,selectedBlock:o,onLoadMore:s,isLoadingMore:a,runLogsContentRefreshing:l=!1}=e,[u,c]=C.useState([]),[d,p]=C.useState(!1),{activities:h,triggers:A}=ht.useSelector(y=>y.activities),g=C.useRef(null),m=C.useRef(!1);C.useEffect(()=>{g.current!==r&&r&&(g.current=r,m.current=!1,p(!0),c([]))},[r]),C.useEffect(()=>{l&&(c([]),p(!0))},[l]),C.useEffect(()=>{if(r&&g.current!==r)return;if(n?.loading){const v=Vte(r,n);(!m.current||v)&&p(!0),v&&c([]);return}if(!n?.logs?.events?.length){c([]),p(!1);return}const y=setTimeout(()=>{try{const v=Hte(n,h,A,"blocks");c(v),m.current=!0}catch{c([])}finally{p(!1)}},0);return()=>clearTimeout(y)},[n,h,A,r]),C.useEffect(()=>{if(u.length>0){const y=o?.eventId||0,v=u.find(T=>T.eventId===y);i(v||u[0])}},[u,o?.eventId,i]);const E=C.useMemo(()=>Ute(u),[u]);return f.jsx(O.Stack,{sx:{height:"100%",flex:1,padding:"12px 12px",gap:"24px",boxSizing:"border-box",width:"100%",minHeight:"fit-content"},children:l||d||n?.loading&&!m.current||Vte(r,n)?f.jsx(O.Box,{sx:{flex:1,minHeight:200,width:"100%"},children:f.jsx(Ex,{rows:3,"aria-label":"Loading activities"})}):f.jsxs(f.Fragment,{children:[f.jsxs(O.Stack,{sx:{width:"100%",position:"relative",gap:"8px"},children:[u.length>1&&f.jsx(O.Box,{sx:{position:"absolute",left:19,top:20,bottom:20,width:"1px",backgroundColor:t.palette.grey?.[300],pointerEvents:"none"}}),u.map(y=>{const{isSuccess:v,isError:T,isPending:_,isRunning:x}=f8(y.eventType),b=o?.eventId===y.eventId;return f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:"12px",onClick:()=>i(y),sx:{width:"100%",userSelect:"none",cursor:"pointer",padding:"8px 12px 8px 11px",minHeight:40,borderRadius:"6px",gap:"8px",background:b?t.palette.primary[5]:"transparent","&:hover":{background:b?t.palette.primary[5]:"transparent"}},children:[f.jsxs(O.Stack,{alignItems:"center",justifyContent:"center",sx:{width:16,height:16,flexShrink:0,flex:"0 0 16px",position:"relative"},children:[v&&f.jsx(Ue,{src:"ic_success",width:16,height:16,sx:{path:{fill:t.palette.success[40]}}}),T&&f.jsx(Ue,{src:"ic_close_filled",width:16,height:16,sx:{path:{fill:t.palette.error.main}}}),_&&f.jsx(Ue,{src:"ic_pending",width:16,height:16,sx:{path:{fill:t.palette.text.tertiary??t.palette.text.secondary}}}),x&&f.jsx(Ue,{src:"ic_run",width:16,height:16,sx:{color:t.palette.primary.main}})]}),f.jsx(O.Stack,{direction:"row",alignItems:"center",sx:{flex:"1 1 0",minWidth:0,gap:"8px",overflow:"hidden",boxSizing:"border-box"},children:f.jsx(Sot,{block:y,selectedBlock:o,setSelectedBlock:i,isLoopChild:E.includes(y.name),hideStatusIcon:!0,disableRowStyles:!0})})]},y.eventId)})]}),n?.nextPageToken&&s?f.jsx(O.Stack,{alignItems:"center",py:1,children:f.jsx(O.Button,{size:"small",variant:"outlined",onClick:s,disabled:a,startIcon:a?f.jsx(O.CircularProgress,{size:14}):void 0,sx:{textTransform:"none"},children:a?"Loading...":"Load more"})}):null,!n?.nextPageToken&&!OE(n?.logs?.events)&&f.jsx(O.Box,{sx:{py:1.5,px:2,width:"100%"},children:f.jsx(Ex,{rows:2,"aria-label":"Loading activity updates"})})]})})}),bot=({executions:e,executionId:t,onExecutionClick:n,fetchMoreExecutions:r,setExecFlag:i,execFlag:o})=>{const s=O.useTheme(),a=C.useRef(null),l=C.useRef(null),{pagination:u,loading:c,data:d}=e;C.useEffect(()=>{t&&d?.length>0&&a.current&&l.current!==t&&(l.current=t,a.current.scrollIntoView({block:"nearest",behavior:"smooth"}))},[t,d?.length]);const{next_id:p}=u,h=()=>{!Ot(p)&&!c&&(i(!1),r())};return f.jsxs(O.Box,{sx:{height:"calc(100% - 40px)",overflowY:"auto",width:"100%"},children:[d?.length>0&&(!c||!o)?f.jsxs(O.Box,{sx:{p:1,display:"flex",flexDirection:"column",gap:0,overflow:"hidden"},children:[e.data.map(A=>f.jsxs(O.Stack,{ref:t===A.id?a:void 0,alignItems:"center",justifyContent:"flex-start",gap:1.5,direction:"row",sx:{padding:"8px 12px",borderRadius:1.5,minHeight:36,overflow:"hidden",cursor:"pointer",userSelect:"none",backgroundColor:t===A.id?s.palette.primary?.[5]??s.palette.primary?.["5"]:s.palette.common.white,"&:hover":{backgroundColor:t===A.id?s.palette.primary?.[5]??s.palette.primary?.["5"]:_a(s.palette.common.black,2.35),cursor:"pointer"}},onClick:()=>n({executionId:A.id,timeTaken:A.time_taken}),children:[Cot(A.status,s),f.jsx(O.Typography,{variant:"smNormal",sx:{flex:1,...ou,fontSize:12,lineHeight:"16px"},children:_E(A.created_at,"compact")}),A.execution_mode==="scheduled"&&f.jsx(Ue,{src:"ic_pending",width:16,height:16,sx:{path:{fill:s.palette.grey.normal||s.palette.grey[500]}}})]},A.id)),!Ot(p)&&f.jsx(O.Stack,{alignItems:"center",sx:{mt:1,width:"100%"},children:f.jsx(O.Button,{type:"button",variant:"outlined",disabled:c,sx:{py:1,px:2,fontSize:A=>A.typography.xsNormal.fontSize,fontWeight:s.typography.xsSemiBold.fontWeight,color:s.palette.primary.main,borderColor:s.palette.primary.main,backgroundColor:s.palette.common.white,textTransform:"none",borderRadius:1.5,"&:hover":{borderColor:s.palette.primary.dark||s.palette.primary.main,backgroundColor:_a(s.palette.primary.main,5)},"&.Mui-disabled":{borderColor:s.palette.grey[300]||s.palette.grey[400],color:s.palette.grey.normal}},onClick:h,endIcon:c?f.jsx(O.CircularProgress,{size:16,sx:{color:s.palette.primary.main}}):null,children:"Load More"})})]}):!c&&f.jsxs(O.Stack,{alignItems:"center",justifyContent:"center",height:"100%",sx:{px:3,py:1,gap:1.5},children:[f.jsx(Ue,{src:"ic_no_data",width:120,height:120}),f.jsxs(O.Stack,{alignItems:"center",gap:.75,sx:{maxWidth:369},children:[f.jsx(O.Typography,{textAlign:"center",sx:{fontSize:14,fontWeight:600,lineHeight:"20px",color:s.palette.text.primary},children:"No run logs yet"}),f.jsxs(O.Typography,{textAlign:"center",sx:{fontSize:12,fontWeight:400,lineHeight:"16px",color:s.palette.text.tertiary},children:["Run logs will appear here once you execute your first run.",f.jsx("br",{}),"Start a new run to see it in this list."]})]})]}),c&&!(d?.length>0&&!Ot(p))&&f.jsx(O.Box,{sx:{minHeight:d?.length>0&&!o?120:"100%"},children:f.jsx(Ex,{rows:d?.length>0&&!o?3:8,"aria-label":"Loading run history"})})]})},Cot=(e,t)=>{switch(e){case"Completed":return f.jsx(Ue,{src:"ic_success",width:t.icons.md,height:t.icons.md,sx:{path:{fill:t.palette.success[40]}}});case"Failed":return f.jsx(Ue,{src:"ic_close_filled",width:t.icons.md,height:t.icons.md,sx:{path:{fill:t.palette.error.main}}});case"Running":return f.jsx(Ue,{src:"ic_default",width:16,height:16,sx:{path:{fill:t.palette.warning.main}}});case"Pending":return f.jsx(Ue,{src:"ic_pending",width:t.icons.md,height:t.icons.md,sx:{path:{fill:t.palette.grey.normal}}});default:return f.jsx(Ue,{src:"ic_circle_dashed",width:t.icons.md,height:t.icons.md,sx:{path:{fill:t.palette.common.black}}})}},_ot=({children:e,variant:t})=>{const n=O.useTheme();return f.jsx(O.Stack,{direction:"row",alignItems:"center",justifyContent:t==="activities"?"flex-start":"space-between",minHeight:40,maxHeight:40,sx:{padding:t==="activities"?"8px 12px":"0 12px",borderBottom:`1px solid ${n.palette.grey[300]}`,borderRight:"none",borderLeft:"none",boxSizing:"border-box",backgroundColor:t==="activities"?n.palette.grey[50]:n.palette.common.white},children:e})};var Gte={},Wte=C.createContext(Gte),wot=(e,t)=>ce({},e,t),Iot=()=>C.useContext(Wte),A8=C.createContext(()=>{});A8.displayName="JVR.DispatchShowTools";function Dot(){return C.useReducer(wot,Gte)}function Qte(){return C.useContext(A8)}var zte=e=>{var{initial:t,dispatch:n,children:r}=e;return f.jsx(Wte.Provider,{value:t,children:f.jsx(A8.Provider,{value:n,children:r})})};zte.displayName="JVR.ShowTools";var Xte={},Yte=C.createContext(Xte),Rot=(e,t)=>ce({},e,t),Ox=()=>C.useContext(Yte),m8=C.createContext(()=>{});m8.displayName="JVR.DispatchExpands";function Pot(){return C.useReducer(Rot,Xte)}function Not(){return C.useContext(m8)}var qte=e=>{var{initial:t,dispatch:n,children:r}=e;return f.jsx(Yte.Provider,{value:t,children:f.jsx(m8.Provider,{value:n,children:r})})};qte.displayName="JVR.Expands";var Kte={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Zte=C.createContext(Kte),Lot=(e,t)=>ce({},e,t),ki=()=>C.useContext(Zte),g8=C.createContext(()=>{});g8.displayName="JVR.DispatchTypes";function kot(){return C.useReducer(Lot,Kte)}function Mot(){return C.useContext(g8)}function Jte(e){var{initial:t,dispatch:n,children:r}=e;return f.jsx(Zte.Provider,{value:t,children:f.jsx(g8.Provider,{value:n,children:r})})}Jte.displayName="JVR.Types";var Fot=["style"];function ene(e){var{style:t}=e,n=_t(e,Fot),r=ce({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return f.jsx("svg",ce({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}ene.displayName="JVR.TriangleArrow";var tne={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:f.jsx(ene,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},nne=C.createContext(tne),Bot=(e,t)=>ce({},e,t),ya=()=>C.useContext(nne),E8=C.createContext(()=>{});E8.displayName="JVR.DispatchSymbols";function jot(){return C.useReducer(Bot,tne)}function $ot(){return C.useContext(E8)}var rne=e=>{var{initial:t,dispatch:n,children:r}=e;return f.jsx(nne.Provider,{value:t,children:f.jsx(E8.Provider,{value:n,children:r})})};rne.displayName="JVR.Symbols";var ine={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},one=C.createContext(ine),Uot=(e,t)=>ce({},e,t),xl=()=>C.useContext(one),O8=C.createContext(()=>{});O8.displayName="JVR.DispatchSection";function Hot(){return C.useReducer(Uot,ine)}function Vot(){return C.useContext(O8)}var sne=e=>{var{initial:t,dispatch:n,children:r}=e;return f.jsx(one.Provider,{value:t,children:f.jsx(O8.Provider,{value:n,children:r})})};sne.displayName="JVR.Section";var ane={objectSortKeys:!1,indentWidth:15},y8=C.createContext(ane);y8.displayName="JVR.Context";var lne=C.createContext(()=>{});lne.displayName="JVR.DispatchContext";function Got(e,t){return ce({},e,t)}var Dp=()=>C.useContext(y8),une=e=>{var{children:t,initialState:n,initialTypes:r}=e,[i,o]=C.useReducer(Got,Object.assign({},ane,n)),[s,a]=Dot(),[l,u]=Pot(),[c,d]=kot(),[p,h]=jot(),[A,g]=Hot();return C.useEffect(()=>o(ce({},n)),[n]),f.jsx(y8.Provider,{value:i,children:f.jsx(lne.Provider,{value:o,children:f.jsx(zte,{initial:s,dispatch:a,children:f.jsx(qte,{initial:l,dispatch:u,children:f.jsx(Jte,{initial:ce({},c,r),dispatch:d,children:f.jsx(rne,{initial:p,dispatch:h,children:f.jsx(sne,{initial:A,dispatch:g,children:t})})})})})})})};une.displayName="JVR.Provider";function Wot(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var Qot=["isNumber","value","parentValue","keyName","keys"],zot=["as","render"],Xot=["as","render"],Yot=["as","render"],qot=["as","style","render"],Kot=["as","render"],Zot=["as","render"],Jot=["as","render"],est=["as","render"],v8=e=>{var{Quote:t={}}=ya(),{isNumber:n,value:r,parentValue:i,keyName:o,keys:s}=e,a=_t(e,Qot);if(n)return null;var{as:l,render:u}=t,c=_t(t,zot),d=l||"span",p=ce({},a,c);if(typeof p.children=="string"){var h=p.children.trim();p.children=h||void 0}var A={value:r,parentValue:i,keyName:o,keys:s||(o?[o]:[])},g=u&&typeof u=="function"&&u(p,A);return g||f.jsx(d,ce({},p))};v8.displayName="JVR.Quote";var wE=e=>{var{ValueQuote:t={}}=ya(),n=ce({},(Wot(e),e)),{as:r,render:i}=t,o=_t(t,Xot),s=r||"span",a=ce({},n,o),l=i&&typeof i=="function"&&i(a,{});return l||f.jsx(s,ce({},a))};wE.displayName="JVR.ValueQuote";var cne=e=>{var{value:t,parentValue:n,keyName:r,keys:i}=e,{Colon:o={}}=ya(),{as:s,render:a}=o,l=_t(o,Yot),u=s||"span",c=a&&typeof a=="function"&&a(l,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])});return c||f.jsx(u,ce({},l))};cne.displayName="JVR.Colon";var dne=e=>{var{Arrow:t={}}=ya(),n=Ox(),{expandKey:r,style:i,value:o,parentValue:s,keyName:a,keys:l}=e,u=!!n[r],{as:c,style:d,render:p}=t,h=_t(t,qot),A=c||"span",g=p&&typeof p=="function",m=ce({},h,{"data-expanded":u,style:ce({},d,i)}),E={value:o,parentValue:s,keyName:a,keys:l||(a?[a]:[])},y=g&&p(m,E);return y||f.jsx(A,ce({},h,{style:ce({},d,i)}))};dne.displayName="JVR.Arrow";var fne=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:i,keys:o}=e,{BracketsLeft:s={},BraceLeft:a={}}=ya(),l={value:n,parentValue:r,keyName:i,keys:o||(i?[i]:[])};if(t){var{as:u,render:c}=s,d=_t(s,Kot),p=u||"span",h=c&&typeof c=="function"&&c(d,l);return h||f.jsx(p,ce({},d))}var{as:A,render:g}=a,m=_t(a,Zot),E=A||"span",y=g&&typeof g=="function"&&g(m,l);return y||f.jsx(E,ce({},m))};fne.displayName="JVR.BracketsOpen";var T8=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:i,keyName:o,keys:s}=e,a={value:r,parentValue:i,keyName:o,keys:s||(o?[o]:[])};if(!n)return null;var{BracketsRight:l={},BraceRight:u={}}=ya();if(t){var{as:c,render:d}=l,p=_t(l,Jot),h=c||"span",A=d&&typeof d=="function"&&d(p,a);return A||f.jsx(h,ce({},p))}var{as:g,render:m}=u,E=_t(u,est),y=g||"span",v=m&&typeof m=="function"&&m(E,a);return v||f.jsx(y,ce({},E))};T8.displayName="JVR.BracketsClose";var pne=e=>{var t,{keyName:n,value:r,expandKey:i,parentValue:o,level:s,keys:a=[]}=e,l=Ox(),{collapsed:u,shouldExpandNodeInitially:c}=Dp(),d=typeof u=="boolean"?u:typeof u=="number"?s>u:!1,p=(t=l[i])!=null?t:c?!1:d,h=c&&c(!p,{value:r,keys:a,level:s,keyName:n,parentValue:o});if(c&&u===!1){if(l[i]===void 0&&!h)return null}else if(l[i]===void 0&&h)return null;var A=Object.keys(r).length;if(p||A===0)return null;var g={paddingLeft:4},m={keyName:n,value:r,keys:a,parentValue:o},E=Array.isArray(r),y=r instanceof Set;return f.jsx("div",{style:g,children:f.jsx(T8,ce({isBrackets:E||y},m,{isVisiable:!0}))})};pne.displayName="JVR.NestedClose";var tst=["as","render"],nst=["as","render"],rst=["as","render"],ist=["as","render"],ost=["as","render"],sst=["as","render"],ast=["as","render"],lst=["as","render"],ust=["as","render"],cst=["as","render"],dst=["as","render"],fst=["as","render"],pst=["as","render"],S8=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},hne=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:i}=ki(),o=t instanceof Set;if(!o||!i)return null;var{as:s,render:a}=r,l=_t(r,tst),u=a&&typeof a=="function",c=u&&a(l,{type:"type",value:t,keyName:n});if(c)return c;var d=s||"span";return f.jsx(d,ce({},l))};hne.displayName="JVR.SetComp";var Ane=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:i}=ki(),o=t instanceof Map;if(!o||!i)return null;var{as:s,render:a}=r,l=_t(r,nst),u=a&&typeof a=="function",c=u&&a(l,{type:"type",value:t,keyName:n});if(c)return c;var d=s||"span";return f.jsx(d,ce({},l))};Ane.displayName="JVR.MapComp";var tu={opacity:.75,paddingRight:4},mne=e=>{var{children:t="",keyName:n,keys:r}=e,{Str:i={},displayDataTypes:o}=ki(),{shortenTextAfterLength:s=30,stringEllipsis:a="..."}=Dp(),{as:l,render:u}=i,c=_t(i,rst),d=t,[p,h]=C.useState(s&&d.length>s);C.useEffect(()=>h(s&&d.length>s),[s]);var A=l||"span",g=ce({},tu,i.style||{});s>0&&(c.style=ce({},c.style,{cursor:d.length<=s?"initial":"pointer"}),d.length>s&&(c.onClick=()=>{h(!p)}));var m=p?""+d.slice(0,s)+a:d,E=u&&typeof u=="function",y=E&&u(ce({},c,{style:g}),{type:"type",value:t,keyName:n,keys:r}),v=p?"w-rjv-value w-rjv-value-short":"w-rjv-value",T=E&&u(ce({},c,{children:m,className:v}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(y||f.jsx(A,ce({},c,{style:g}))),T||f.jsxs(C.Fragment,{children:[f.jsx(wE,{}),f.jsx(A,ce({},c,{className:v,children:m})),f.jsx(wE,{})]})]})};mne.displayName="JVR.TypeString";var gne=e=>{var{children:t,keyName:n,keys:r}=e,{True:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,ist),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h||f.jsx(u,ce({},l,{className:"w-rjv-value",children:t?.toString()}))]})};gne.displayName="JVR.TypeTrue";var Ene=e=>{var{children:t,keyName:n,keys:r}=e,{False:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,ost),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h||f.jsx(u,ce({},l,{className:"w-rjv-value",children:t?.toString()}))]})};Ene.displayName="JVR.TypeFalse";var One=e=>{var{children:t,keyName:n,keys:r}=e,{Float:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,sst),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h||f.jsx(u,ce({},l,{className:"w-rjv-value",children:t?.toString()}))]})};One.displayName="JVR.TypeFloat";var yne=e=>{var{children:t,keyName:n,keys:r}=e,{Int:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,ast),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h||f.jsx(u,ce({},l,{className:"w-rjv-value",children:t?.toString()}))]})};yne.displayName="JVR.TypeInt";var vne=e=>{var{children:t,keyName:n,keys:r}=e,{Bigint:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,lst),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h||f.jsx(u,ce({},l,{className:"w-rjv-value",children:S8(t?.toString())}))]})};vne.displayName="JVR.TypeFloat";var Tne=e=>{var{children:t,keyName:n,keys:r}=e,{Url:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,ust),u=s||"span",c=ce({},tu,i.style),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t?.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h||f.jsxs("a",ce({href:t?.href,target:"_blank"},l,{className:"w-rjv-value",children:[f.jsx(wE,{}),t?.href,f.jsx(wE,{})]}))]})};Tne.displayName="JVR.TypeUrl";var Sne=e=>{var{children:t,keyName:n,keys:r}=e,{Date:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,cst),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=t instanceof Date?t.toLocaleString():t,A=d&&a(ce({},l,{children:h,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),A||f.jsx(u,ce({},l,{className:"w-rjv-value",children:h}))]})};Sne.displayName="JVR.TypeDate";var xne=e=>{var{children:t,keyName:n,keys:r}=e,{Undefined:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,dst),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h]})};xne.displayName="JVR.TypeUndefined";var bne=e=>{var{children:t,keyName:n,keys:r}=e,{Null:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,fst),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h]})};bne.displayName="JVR.TypeNull";var Cne=e=>{var{children:t,keyName:n,keys:r}=e,{Nan:i={},displayDataTypes:o}=ki(),{as:s,render:a}=i,l=_t(i,pst),u=s||"span",c=ce({},tu,i.style||{}),d=a&&typeof a=="function",p=d&&a(ce({},l,{style:c}),{type:"type",value:t,keyName:n,keys:r}),h=d&&a(ce({},l,{children:t?.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return f.jsxs(C.Fragment,{children:[o&&(p||f.jsx(u,ce({},l,{style:c}))),h]})};Cne.displayName="JVR.TypeNan";var hst=e=>Number(e)===e&&e%1!==0||isNaN(e),_ne=e=>{var{value:t,keyName:n,keys:r}=e,i={keyName:n,keys:r};return t instanceof URL?f.jsx(Tne,ce({},i,{children:t})):typeof t=="string"?f.jsx(mne,ce({},i,{children:t})):t===!0?f.jsx(gne,ce({},i,{children:t})):t===!1?f.jsx(Ene,ce({},i,{children:t})):t===null?f.jsx(bne,ce({},i,{children:t})):t===void 0?f.jsx(xne,ce({},i,{children:t})):t instanceof Date?f.jsx(Sne,ce({},i,{children:t})):typeof t=="number"&&isNaN(t)?f.jsx(Cne,ce({},i,{children:t})):typeof t=="number"&&hst(t)?f.jsx(One,ce({},i,{children:t})):typeof t=="bigint"?f.jsx(vne,ce({},i,{children:t})):typeof t=="number"?f.jsx(yne,ce({},i,{children:t})):null};_ne.displayName="JVR.Value";function lf(e,t,n){var r=$ot(),i=[e.className,t.className].filter(Boolean).join(" "),o=ce({},e,t,{className:i,style:ce({},e.style,t.style),children:t.children||e.children});C.useEffect(()=>r({[n]:o}),[t])}function qa(e,t,n){var r=Mot(),i=[e.className,t.className].filter(Boolean).join(" "),o=ce({},e,t,{className:i,style:ce({},e.style,t.style),children:t.children||e.children});C.useEffect(()=>r({[n]:o}),[t])}function VA(e,t,n){var r=Vot(),i=[e.className,t.className].filter(Boolean).join(" "),o=ce({},e,t,{className:i,style:ce({},e.style,t.style),children:t.children||e.children});C.useEffect(()=>r({[n]:o}),[t])}var Ast=["as","render"],wne=e=>{var{KeyName:t={}}=xl();return VA(t,e,"KeyName"),null};wne.displayName="JVR.KeyName";var Ine=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:o}=e,s=typeof t=="number",a={color:s?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:l={}}=xl(),{as:u,render:c}=l,d=_t(l,Ast);d.style=ce({},d.style,a);var p=u||"span",h=c&&typeof c=="function"&&c(ce({},d,{children:t}),{value:n,parentValue:r,keyName:i,keys:o||(i?[i]:[])});return h||f.jsx(p,ce({},d,{children:t}))};Ine.displayName="JVR.KeyNameComp";var mst=["children","value","parentValue","keyName","keys"],gst=["as","render","children"],Dne=e=>{var{Row:t={}}=xl();return VA(t,e,"Row"),null};Dne.displayName="JVR.Row";var Rne=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:o}=e,s=_t(e,mst),{Row:a={}}=xl(),{as:l,render:u}=a,c=_t(a,gst),d=l||"div",p=u&&typeof u=="function"&&u(ce({},s,c,{children:t}),{value:n,keyName:i,parentValue:r,keys:o});return p||f.jsx(d,ce({},s,c,{children:t}))};Rne.displayName="JVR.RowComp";function Est(e){var t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}function Ost(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,i=Est(t),o=C.useMemo(()=>{if(!n||i===void 0)return!1;if(typeof t!=typeof i)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(i)?!1:t!==i;if(Array.isArray(t)!==Array.isArray(i))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==i)return!0},[n,t]);C.useEffect(()=>{r&&r.current&&o&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,t,r])}var yst=["keyName","value","parentValue","expandKey","keys","beforeCopy"],vst=["as","render"],x8=e=>{var{keyName:t,value:n,parentValue:r,expandKey:i,keys:o,beforeCopy:s}=e,a=_t(e,yst),{onCopied:l,enableClipboard:u,beforeCopy:c}=Dp(),d=Iot(),p=d[i],[h,A]=C.useState(!1),{Copied:g={}}=xl(),m=g?.beforeCopy;if(u===!1||!p)return null;var E=w=>{w.stopPropagation();var D="";typeof n=="number"&&n===1/0?D="Infinity":typeof n=="number"&&isNaN(n)?D="NaN":typeof n=="bigint"?D=S8(n):n instanceof Date?D=n.toLocaleString():D=JSON.stringify(n,(k,N)=>typeof N=="bigint"?S8(N):N,2);var I=s||m||c;I&&typeof I=="function"&&(D=I(D,t,n,r,i,o)),l&&l(D,n),A(!0);var P=navigator.clipboard||{writeText(k){return new Promise((N,L)=>{var M=document.createElement("textarea");M.style.position="absolute",M.style.opacity="0",M.style.left="-99999999px",M.value=k,document.body.appendChild(M),M.select(),document.execCommand("copy")?N():L(),M.remove()})}};P.writeText(D).then(()=>{var k=setTimeout(()=>{A(!1),clearTimeout(k)},3e3)}).catch(k=>{})},y={style:{display:"inline-flex"},fill:h?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:E},{render:v}=g,T=_t(g,vst),_=ce({},T,a,y,{style:ce({},T.style,a.style,y.style)}),x=v&&typeof v=="function",b=x&&v(ce({},_,{"data-copied":h}),{value:n,keyName:t,keys:o,parentValue:r});return b||(h?f.jsx("svg",ce({viewBox:"0 0 32 36"},_,{children:f.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):f.jsx("svg",ce({viewBox:"0 0 32 36"},_,{children:f.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};x8.displayName="JVR.Copied";function Pne(){var e=C.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var Nne=e=>{var t,{keyName:n,value:r,expandKey:i="",level:o,keys:s=[],parentValue:a}=e,l=Ox(),{objectSortKeys:u,indentWidth:c,collapsed:d,shouldExpandNodeInitially:p}=Dp(),h=typeof d=="boolean"?d:typeof d=="number"?o>d:!1,A=(t=l[i])!=null?t:p?!1:h,g=p&&p(!A,{value:r,keys:s,level:o,keyName:n,parentValue:a});if(p&&d===!1){if(l[i]===void 0&&!g)return null}else if(l[i]===void 0&&g)return null;if(A)return null;var m=Array.isArray(r),E=m?Object.entries(r).map(v=>[Number(v[0]),v[1]]):Object.entries(r);u&&(E=u===!0?E.sort((v,T)=>{var[_]=v,[x]=T;return typeof _=="string"&&typeof x=="string"?_.localeCompare(x):0}):E.sort((v,T)=>{var[_,x]=v,[b,w]=T;return typeof _=="string"&&typeof b=="string"?u(_,b,x,w):0}));var y={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:c,marginLeft:6};return f.jsx("div",{className:"w-rjv-wrap",style:y,children:E.map((v,T)=>{var[_,x]=v;return f.jsx(Lne,{parentValue:r,keyName:_,keys:[...s,_],value:x,level:o},T)})})};Nne.displayName="JVR.KeyValues";var b8=e=>{var{keyName:t,parentValue:n,keys:r,value:i}=e,{highlightUpdates:o}=Dp(),s=typeof t=="number",a=C.useRef(null);Ost({value:i,highlightUpdates:o,highlightContainer:a});var l={keyName:t,value:i,keys:r,parentValue:n};return f.jsxs(C.Fragment,{children:[f.jsxs("span",{ref:a,children:[f.jsx(v8,ce({isNumber:s,"data-placement":"left"},l)),f.jsx(Ine,ce({},l,{children:t})),f.jsx(v8,ce({isNumber:s,"data-placement":"right"},l))]}),f.jsx(cne,ce({},l))]})};b8.displayName="JVR.KayName";var Lne=e=>{var{keyName:t,value:n,parentValue:r,level:i=0,keys:o=[]}=e,s=Qte(),a=Pne(),l=Array.isArray(n),u=n instanceof Set,c=n instanceof Map,d=n instanceof Date,p=n instanceof URL,h=n&&typeof n=="object"&&!l&&!u&&!c&&!d&&!p,A=h||l||u||c;if(A){var g=u?Array.from(n):c?Object.fromEntries(n):n;return f.jsx(C8,{keyName:t,value:g,parentValue:r,initialValue:n,keys:o,level:i+1})}var m={onMouseEnter:()=>s({[a]:!0}),onMouseLeave:()=>s({[a]:!1})};return f.jsxs(Rne,ce({className:"w-rjv-line",value:n,keyName:t,keys:o,parentValue:r},m,{children:[f.jsx(b8,{keyName:t,value:n,keys:o,parentValue:r}),f.jsx(_ne,{keyName:t,value:n,keys:o}),f.jsx(x8,{keyName:t,value:n,keys:o,parentValue:r,expandKey:a})]}))};Lne.displayName="JVR.KeyValuesItem";var Tst=["value","keyName"],Sst=["as","render"],kne=e=>{var{CountInfoExtra:t={}}=xl();return VA(t,e,"CountInfoExtra"),null};kne.displayName="JVR.CountInfoExtra";var Mne=e=>{var{value:t={},keyName:n}=e,r=_t(e,Tst),{CountInfoExtra:i={}}=xl(),{as:o,render:s}=i,a=_t(i,Sst);if(!s&&!a.children)return null;var l=o||"span",u=s&&typeof s=="function",c=ce({},a,r),d=u&&s(c,{value:t,keyName:n});return d||f.jsx(l,ce({},c))};Mne.displayName="JVR.CountInfoExtraComps";var xst=["value","keyName"],bst=["as","render"],Fne=e=>{var{CountInfo:t={}}=xl();return VA(t,e,"CountInfo"),null};Fne.displayName="JVR.CountInfo";var Bne=e=>{var{value:t={},keyName:n}=e,r=_t(e,xst),{displayObjectSize:i}=Dp(),{CountInfo:o={}}=xl();if(!i)return null;var{as:s,render:a}=o,l=_t(o,bst),u=s||"span";l.style=ce({},l.style,e.style);var c=Object.keys(t).length;l.children||(l.children=c+" item"+(c===1?"":"s"));var d=ce({},l,r),p=a&&typeof a=="function",h=p&&a(ce({},d,{"data-length":c}),{value:t,keyName:n});return h||f.jsx(u,ce({},d))};Bne.displayName="JVR.CountInfoComp";var Cst=["as","render"],jne=e=>{var{Ellipsis:t={}}=xl();return VA(t,e,"Ellipsis"),null};jne.displayName="JVR.Ellipsis";var $ne=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:i={}}=xl(),{as:o,render:s}=i,a=_t(i,Cst),l=o||"span",u=s&&typeof s=="function"&&s(ce({},a,{"data-expanded":t}),{value:n,keyName:r});return u||(!t||typeof n=="object"&&Object.keys(n).length==0?null:f.jsx(l,ce({},a)))};$ne.displayName="JVR.EllipsisComp";var Une=e=>{var t,{keyName:n,expandKey:r,keys:i=[],initialValue:o,value:s,parentValue:a,level:l}=e,u=Ox(),c=Not(),{onExpand:d,collapsed:p,shouldExpandNodeInitially:h}=Dp(),A=typeof p=="boolean"?p:typeof p=="number"?l>p:!1,g=(t=u[r])!=null?t:h?!1:A,m=h&&h(!g,{value:s,keys:i,level:l,keyName:n,parentValue:a});u[r]===void 0&&h&&(g=!m);var E=()=>{var P={expand:!g,value:s,keyid:r,keyName:n};d&&d(P),c({[r]:P.expand})},y={display:"inline-flex",alignItems:"center"},v={transform:"rotate("+(g?"-90":"0")+"deg)",transition:"all 0.3s"},T=Object.keys(s).length,_=typeof s=="object",x=Array.isArray(s),b=s instanceof Set,w=T!==0&&(x||b||_),D={style:y};w&&(D.onClick=E);var I={keyName:n,value:s,keys:i,parentValue:a};return f.jsxs("span",ce({},D,{children:[w&&f.jsx(dne,ce({style:v,expandKey:r},I)),(n||typeof n=="number")&&f.jsx(b8,ce({},I)),f.jsx(hne,{value:o,keyName:n}),f.jsx(Ane,{value:o,keyName:n}),f.jsx(fne,ce({isBrackets:x||b},I)),f.jsx($ne,{keyName:n,value:s,isExpanded:g}),f.jsx(T8,ce({isVisiable:g||!w,isBrackets:x||b},I)),f.jsx(Bne,{value:s,keyName:n}),f.jsx(Mne,{value:s,keyName:n}),f.jsx(x8,{keyName:n,value:s,expandKey:r,parentValue:a,keys:i})]}))};Une.displayName="JVR.NestedOpen";var _st=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],C8=C.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:i=1,value:o,initialValue:s,keys:a,keyName:l}=e,u=_t(e,_st),c=Qte(),d=Pne(),p=[n,"w-rjv-inner"].filter(Boolean).join(" "),h={onMouseEnter:()=>c({[d]:!0}),onMouseLeave:()=>c({[d]:!1})};return f.jsxs("div",ce({className:p,ref:t},u,h,{children:[f.jsx(Une,{expandKey:d,value:o,level:i,keys:a,parentValue:r,keyName:l,initialValue:s}),f.jsx(Nne,{expandKey:d,value:o,level:i,keys:a,parentValue:r,keyName:l}),f.jsx(pne,{expandKey:d,value:o,level:i,keys:a,parentValue:r,keyName:l})]}))});C8.displayName="JVR.Container";var Hne=e=>{var{BraceLeft:t={}}=ya();return lf(t,e,"BraceLeft"),null};Hne.displayName="JVR.BraceLeft";var Vne=e=>{var{BraceRight:t={}}=ya();return lf(t,e,"BraceRight"),null};Vne.displayName="JVR.BraceRight";var Gne=e=>{var{BracketsLeft:t={}}=ya();return lf(t,e,"BracketsLeft"),null};Gne.displayName="JVR.BracketsLeft";var Wne=e=>{var{BracketsRight:t={}}=ya();return lf(t,e,"BracketsRight"),null};Wne.displayName="JVR.BracketsRight";var Qne=e=>{var{Arrow:t={}}=ya();return lf(t,e,"Arrow"),null};Qne.displayName="JVR.Arrow";var zne=e=>{var{Colon:t={}}=ya();return lf(t,e,"Colon"),null};zne.displayName="JVR.Colon";var Xne=e=>{var{Quote:t={}}=ya();return lf(t,e,"Quote"),null};Xne.displayName="JVR.Quote";var Yne=e=>{var{ValueQuote:t={}}=ya();return lf(t,e,"ValueQuote"),null};Yne.displayName="JVR.ValueQuote";var qne=e=>{var{Bigint:t={}}=ki();return qa(t,e,"Bigint"),null};qne.displayName="JVR.Bigint";var Kne=e=>{var{Date:t={}}=ki();return qa(t,e,"Date"),null};Kne.displayName="JVR.Date";var Zne=e=>{var{False:t={}}=ki();return qa(t,e,"False"),null};Zne.displayName="JVR.False";var Jne=e=>{var{Float:t={}}=ki();return qa(t,e,"Float"),null};Jne.displayName="JVR.Float";var ere=e=>{var{Int:t={}}=ki();return qa(t,e,"Int"),null};ere.displayName="JVR.Int";var tre=e=>{var{Map:t={}}=ki();return qa(t,e,"Map"),null};tre.displayName="JVR.Map";var nre=e=>{var{Nan:t={}}=ki();return qa(t,e,"Nan"),null};nre.displayName="JVR.Nan";var rre=e=>{var{Null:t={}}=ki();return qa(t,e,"Null"),null};rre.displayName="JVR.Null";var ire=e=>{var{Set:t={}}=ki();return qa(t,e,"Set"),null};ire.displayName="JVR.Set";var ore=e=>{var{Str:t={}}=ki();return qa(t,e,"Str"),null};ore.displayName="JVR.StringText";var sre=e=>{var{True:t={}}=ki();return qa(t,e,"True"),null};sre.displayName="JVR.True";var are=e=>{var{Undefined:t={}}=ki();return qa(t,e,"Undefined"),null};are.displayName="JVR.Undefined";var lre=e=>{var{Url:t={}}=ki();return qa(t,e,"Url"),null};lre.displayName="JVR.Url";var ure=e=>{var{Copied:t={}}=xl();return VA(t,e,"Copied"),null};ure.displayName="JVR.Copied";var wst=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],fi=C.forwardRef((e,t)=>{var{className:n="",style:r,value:i,children:o,collapsed:s=!1,shouldExpandNodeInitially:a,indentWidth:l=15,displayObjectSize:u=!0,shortenTextAfterLength:c=30,stringEllipsis:d,highlightUpdates:p=!0,enableClipboard:h=!0,displayDataTypes:A=!0,objectSortKeys:g=!1,onExpand:m,onCopied:E,beforeCopy:y}=e,v=_t(e,wst),T=ce({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},r),_=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return f.jsxs(une,{initialState:{value:i,objectSortKeys:g,indentWidth:l,shouldExpandNodeInitially:s===!1?a:void 0,displayObjectSize:u,collapsed:s,enableClipboard:h,shortenTextAfterLength:c,stringEllipsis:d,highlightUpdates:p,onCopied:E,onExpand:m,beforeCopy:y},initialTypes:{displayDataTypes:A},children:[f.jsx(C8,ce({value:i},v,{ref:t,className:_,style:T})),o]})});fi.Bigint=qne,fi.Date=Kne,fi.False=Zne,fi.Float=Jne,fi.Int=ere,fi.Map=tre,fi.Nan=nre,fi.Null=rre,fi.Set=ire,fi.String=ore,fi.True=sre,fi.Undefined=are,fi.Url=lre,fi.ValueQuote=Yne,fi.Arrow=Qne,fi.Colon=zne,fi.Quote=Xne,fi.Ellipsis=jne,fi.BraceLeft=Hne,fi.BraceRight=Vne,fi.BracketsLeft=Gne,fi.BracketsRight=Wne,fi.Copied=ure,fi.CountInfo=Fne,fi.CountInfoExtra=kne,fi.KeyName=wne,fi.Row=Dne,fi.displayName="JVR.JsonView";const cre=({data:e,maxHeight:t=400})=>{const r=O.useTheme().palette?.jsonTree||{},i={"--w-rjv-font-family":"Inter, sans-serif","--w-rjv-color":r.text,"--w-rjv-key-number":r.key,"--w-rjv-key-string":r.key,"--w-rjv-background-color":r.background,"--w-rjv-line-color":r.line,"--w-rjv-arrow-color":r.arrow,"--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":r.info,"--w-rjv-update-color":r.text,"--w-rjv-copied-color":r.copied,"--w-rjv-copied-success-color":r.copiedSuccess,"--w-rjv-curlybraces-color":r.braces,"--w-rjv-colon-color":r.braces,"--w-rjv-brackets-color":r.braces,"--w-rjv-ellipsis-color":r.ellipsis,"--w-rjv-quotes-color":r.quotes,"--w-rjv-quotes-string-color":r.string,"--w-rjv-type-string-color":r.string,"--w-rjv-type-int-color":r.string,"--w-rjv-type-float-color":r.string,"--w-rjv-type-bigint-color":r.string,"--w-rjv-type-boolean-color":r.string,"--w-rjv-type-date-color":r.string,"--w-rjv-type-url-color":r.string,"--w-rjv-type-null-color":r.string,"--w-rjv-type-nan-color":r.string,"--w-rjv-type-undefined-color":r.string},o=e!==null&&typeof e=="object",s=e===void 0?"undefined":typeof e=="string"?JSON.stringify(e):String(e);return f.jsx(O.Stack,{sx:{fontSize:13,overflowY:"auto",maxHeight:t,width:"100%","& .w-rjv-value":{maxWidth:"100%",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",wordWrap:"break-word",overflow:"visible",textOverflow:"clip"}},children:o?f.jsx(fi,{value:e,shortenTextAfterLength:0,collapsed:2,displayDataTypes:!1,shouldExpandNodeInitially:(a,{keys:l})=>l.length>0&&l[0]=="object"?!0:a,style:{flex:1,overflow:"auto",...i}}):f.jsx(O.Box,{sx:{flex:1,overflow:"auto",fontFamily:"var(--w-rjv-font-family, Inter, sans-serif)",color:r.string||r.text,backgroundColor:r.background,whiteSpace:"pre-wrap",wordBreak:"break-word",overflowWrap:"break-word",px:1.5,py:.5},children:s})})},_8=e=>{const{children:t,value:n,index:r,...i}=e;return f.jsx(O.Box,{role:"tabpanel",hidden:n!==r,id:`vertical-tabpanel-${r}`,"aria-labelledby":`vertical-tab-${r}`,...i,children:n===r&&f.jsx(O.Box,{children:t})})},Ist=e=>{const t=ht.useDispatch(),n=O.useTheme(),r=C.useRef(null),{executionLogs:i,tab:o,executionId:s,showTimestamps:a,selectedBlock:l,searchQuery:u,runLogsContentRefreshing:c=!1}=e,p=!!s&&!!i?.loading&&(i.fetchedForExecutionId==null||i.fetchedForExecutionId!==s)||c,h=(g,m)=>{const E=m==="Result"?ait(g):g,y=md(E,u),v=y===void 0?{}:y;return f.jsxs(O.Box,{position:"relative",p:1,children:[f.jsx(O.Stack,{direction:"row",alignItems:"center",justifyContent:"flex-end",gap:"8px",position:"absolute",right:"5px",zIndex:1,children:f.jsx(O.Tooltip,{arrow:!0,title:`Copy ${m}`,children:f.jsx(O.IconButton,{sx:{height:30,width:30},onClick:()=>{navigator.clipboard.writeText(JSON.stringify(g)).then(()=>{t({type:zn,payload:{open:!0,title:"Copied to clipboard"}})})},children:f.jsx(Ue,{src:"ic_copy",width:n.icons.md,height:n.icons.md,sx:{path:{fill:n.palette.common.black}}})})})}),f.jsx(cre,{data:v})]})},A=()=>{const g=l?.events?.filter(E=>i.logs.events.find(y=>y.eventType===E.eventType)&&(E.eventType.replace("EVENT_TYPE_","").replace(/_/g," ").toLowerCase().includes(u.toLowerCase())||E?.activityTaskScheduledEventAttributes?.input?.payloads?.[0]?.data?.name?.toLowerCase().includes(u.toLowerCase())))||[],m=E=>{const y=E.eventType===Xn.WORKFLOW_EXECUTION_COMPLETED||E.eventType===Xn.ACTIVITY_TASK_COMPLETED||E.eventType===Xn.ACTIVITY_TASK_SCHEDULED||E.eventType===Xn.ACTIVITY_TASK_STARTED,v=E.eventType===Xn.WORKFLOW_EXECUTION_FAILED||E.eventType===Xn.ACTIVITY_TASK_FAILED;return y?f.jsx(Ue,{src:"ic_success",width:16,height:16,sx:{path:{fill:n.palette.success[40]}}}):v?f.jsx(Ue,{src:"ic_close_filled",width:16,height:16,sx:{path:{fill:oit(E.eventType,"color",n)}}}):f.jsx(Ue,{src:"ic_success",width:16,height:16,sx:{path:{fill:n.palette.success[40]}}})};return f.jsxs(O.Box,{ref:r,sx:{px:"20px",py:"12px",backgroundColor:n.palette.common.white},children:[f.jsx(O.Stack,{sx:{gap:0},children:g.map((E,y)=>f.jsxs(C.Fragment,{children:[f.jsxs(O.Stack,{direction:"row",gap:"12px",alignItems:"center",children:[f.jsx(O.Box,{sx:{width:16,height:16,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0},children:m(E)}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{flex:1,minWidth:0,minHeight:16},children:[f.jsx(O.Typography,{sx:{fontSize:12,lineHeight:"16px",color:n.palette.text.secondary,flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",m:0},children:sit(E)}),a&&f.jsx(O.Typography,{sx:{fontSize:11,lineHeight:"14px",color:n.palette.text.tertiary,flexShrink:0,ml:1,m:0},children:_E(E.eventTime,"log")})]})]}),y<g.length-1&&f.jsxs(O.Stack,{direction:"row",gap:"12px",sx:{mt:0},children:[f.jsx(O.Box,{sx:{width:16,flexShrink:0,display:"flex",justifyContent:"center"},children:f.jsx(O.Box,{sx:{width:"1px",height:20,backgroundColor:n.palette.grey[300]}})}),f.jsx(O.Box,{sx:{flex:1,minWidth:0}})]})]},E.eventId+y))}),g.filter(E=>E.eventType===Xn.ACTIVITY_TASK_COMPLETED&&E.activityTaskCompletedEventAttributes?.result?.payloads?.[0]?.data?.logs).map(E=>Object.values(E.activityTaskCompletedEventAttributes.result.payloads[0].data.logs).map((y,v)=>f.jsxs(O.Stack,{direction:"row",alignItems:"center",sx:{mt:2,pl:4},children:[f.jsx(O.Typography,{variant:"smBold",sx:{color:T=>T.palette.grey.normal,letterSpacing:"1px",mr:1},children:"[log]:"}),Array.isArray(y)?y.map((T,_)=>T!==null&&typeof T=="object"?f.jsx(cre,{data:T},_):f.jsx(O.Typography,{variant:"smNormal",sx:{color:x=>x.palette.grey.normal,ml:1,wordBreak:"break-word",whiteSpace:"pre-wrap"},children:T??"null"},_)):null]},`log-${E.eventId}-${v}`))),l?.eventId==="1"&&(s&&i.loading&&!i?.nextPageToken||!OE(i?.logs?.events))&&f.jsxs(O.Stack,{sx:{py:2,px:2,gap:1,maxWidth:360},"aria-busy":"true",children:[f.jsx(O.Skeleton,{variant:"rounded",height:12,width:"85%",animation:"wave"}),f.jsx(O.Skeleton,{variant:"rounded",height:12,width:"65%",animation:"wave"}),f.jsx(O.Skeleton,{variant:"rounded",height:12,width:"78%",animation:"wave"})]})]})};return C.useEffect(()=>{r.current&&r.current?.lastElementChild?.scrollIntoView({behavior:"smooth"})},[l]),f.jsx(O.Box,{sx:{height:"100%",overflowY:"auto"},children:p?f.jsx(O.Box,{sx:{px:"20px",py:"12px",boxSizing:"border-box",height:"100%"},children:f.jsx(Ex,{rows:3,"aria-label":"Loading details"})}):i?.logs?.events?.length>0&&l?f.jsxs(f.Fragment,{children:[f.jsx(_8,{value:o,index:"Input",children:Ot(l?.input)?null:h(l.input,"Input")}),f.jsx(_8,{value:o,index:"Results",children:h(l.result,"Result")}),f.jsx(_8,{value:o,index:"Logs",children:A()})]}):!i.loading&&i.error?f.jsx(O.Stack,{height:"100%",alignItems:"center",justifyContent:"center",children:f.jsx(O.Typography,{variant:"xsMedium",sx:{color:g=>g.palette.grey.light,marginTop:.5},children:"Something went wrong"})}):f.jsxs(O.Stack,{height:"100%",alignItems:"center",justifyContent:"center",children:[f.jsx(Ue,{src:"ic_schedule",width:36,height:36,sx:{path:{fill:n.palette.grey.light}}}),f.jsx(O.Typography,{variant:"xsMedium",sx:{fontSize:g=>g.typography.xsNormal.fontSize,fontWeight:n.typography.xsMedium.fontWeight,color:g=>g.palette.grey.light,marginTop:.5},children:"Run is not selected"}),f.jsx(O.Typography,{variant:"xsMedium",sx:{color:g=>g.palette.grey.light,marginTop:.5},children:"Select a run to view its logs"})]})})},Dst=2e3,dre=({workflowId:e,executionId:t,VORTEX_MAIN_URL:n,ENTITY_ID:r,executedFrom:i,analytics:o,executionLogs:s,params:a,shouldPoll:l,shouldFetch:u})=>{const c=ht.useDispatch(),d=C.useRef(null),p=C.useRef(s),h=C.useRef(t),A=C.useRef(e),g=C.useRef(l),m=C.useRef(u),E=C.useRef(!1),y=C.useRef(a);C.useEffect(()=>{p.current=s,s.loading||(E.current=!1)},[s]),C.useEffect(()=>{h.current=t},[t]),C.useEffect(()=>{A.current=e},[e]),C.useEffect(()=>{g.current=l},[l]),C.useEffect(()=>{m.current=u},[u]),C.useEffect(()=>{y.current=a},[a]);const v=()=>{const T=A.current,_=h.current;!T||!_||m.current&&!m.current()||p.current?.nextPageToken||c(zp(T,_,n,r,i,o,y.current))};return C.useEffect(()=>{if(d.current&&(clearInterval(d.current),d.current=null),!t||!e||s?.error||s?.nextPageToken||!(g.current?g.current():s?.logs?.events&&s.logs.events.length>0))return;const _=s?.logs?.events||[],x=_.length===0||!OE(_);if(!(t!=null&&s?.fetchedForExecutionId!=null&&String(s.fetchedForExecutionId)===String(t)&&!s.loading&&!x&&_.length>0))return x&&(d.current=setInterval(()=>{const w=h.current,D=A.current,I=p.current;if(w&&D){if(I?.error){d.current&&(clearInterval(d.current),d.current=null);return}if(E.current)return;const P=I?.logs?.events||[];if(P.length===0||!OE(P))E.current=!0,v();else{const N=I?.fetchedForExecutionId;N!=null&&String(N)===String(w)&&!I.loading?d.current&&(clearInterval(d.current),d.current=null):v()}}},Dst)),()=>{d.current&&(clearInterval(d.current),d.current=null)}},[s,t,e,n,r,i,o,a]),{fetchExecutionLogsByExecutionId:v}},Rst=e=>{const{execFlag:t,setExecFlag:n,selectedBlock:r,setSelectedBlock:i,toggleDrawer:o,VORTEX_MAIN_URL:s,ENTITY_ID:a,navigate:l}=e,u=ht.useDispatch(),c=O.useTheme(),{analytics:d}=wi(),[p,h]=C.useState({per_page:10,type:"all"}),{executions:A,executionLogs:g,workflow:m}=ht.useSelector(ee=>ee.workflows),{activities:E,triggers:y}=ht.useSelector(ee=>ee.activities),{testExecutionId:v,showDebugLogs:T,runWithPreviousExecutionId:_,runLogsPanelHeight:x}=ht.useSelector(ee=>ee.canvas),[b,w]=C.useState("Logs"),[D]=C.useState(!0),[I,P]=C.useState(0),[k,N]=C.useState(""),[L,M]=C.useState("all"),[B,Q]=C.useState(v),[V,q]=C.useState({data:null,pagination:{type:"cursor",next_id:null,prev_id:null,per_page:10},loading:!1,error:null}),[F,G]=C.useState(!1),[W,R]=C.useState(null),j=!!W,[$,Y]=C.useState("run_workflow"),[z,H]=C.useState(!1),[U,X]=C.useState(!1),[J,te]=C.useState(!1),[ae,re]=C.useState(null),ue=C.useRef({hasCheckedRunWithPrevious:!1,hasAutoSwitched:!1}),[Oe,Te]=C.useState(x??340),[se,ie]=C.useState(!1),[Z,K]=C.useState(!1),ne=283,le=688,pe=C.useCallback(ee=>{ee.preventDefault(),ie(!0)},[]);C.useEffect(()=>{if(!se)return;const ee=be=>{const Ge=window.innerHeight-be.clientY;Te(Math.min(le,Math.max(ne,Ge)))},de=()=>ie(!1);return document.addEventListener("mousemove",ee),document.addEventListener("mouseup",de),document.body.style.cursor="ns-resize",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",de),document.body.style.cursor="",document.body.style.userSelect=""}},[se]),C.useEffect(()=>{T&&u({type:$5,payload:Oe})},[Oe,T,u]);const Ae=Oo(),fe=Tr(Ae),Se=Tr("version"),ge=Tr(Ae),ye={next_id:null,prev_id:null,per_page:10,type:"all"},$e=m?.nodes?.find(ee=>ee.type===xt.TRIGGER),Qe=()=>$e?.data?.type===Ke.SCHEDULE,je=()=>{if(fe){const ee=Ot(Se)?fe:Se,de={...p,type:p.type??L,...$==="run_with_previous"?{execution_source:"partial"}:{}};u(Qp(ee,de,s,a,d))}},et=()=>{const{executions:ee}=Vp.getState().workflows;if(B&&fe&&!ee.loading&&ee.data.length>0){const de=!Ot(Se)&&Se?Se:fe,Ge=$==="run_with_previous"||B===_?{execution_source:"partial"}:{execution_source:"full"};u(zp(de,B,s,a,fd.RUN_HISTORY,d,Ge))}},rt=()=>{if(B&&fe&&g.nextPageToken){G(!0);const ee=!Ot(Se)&&Se?Se:fe,be=$==="run_with_previous"||B===_?{execution_source:"partial"}:void 0;u(zp(ee,B,s,a,fd.RUN_HISTORY,d,be,g.nextPageToken,!0))}},nt=C.useCallback(ee=>{Y(ee),ee==="run_workflow"&&u({type:$O,payload:null}),n(!0),h(()=>({...ye,type:L})),q(de=>({...de,data:[],loading:!0,pagination:{...de?.pagination,next_id:null,prev_id:null}}))},[u,n,L]),Ie=ee=>{R(ee.currentTarget)},He=()=>{R(null)},Ve=()=>{H(!0),X(!1),n(!0),Ot(p.next_id)?je():h(ee=>({...ee,next_id:null}))};C.useEffect(()=>{!g.loading&&F&&G(!1)},[g.loading,g.logs,g.error]),C.useEffect(()=>{T&&(t&&h({...ye,type:L}),je())},[T,p.next_id,L,$]),C.useEffect(()=>{_&&T&&Y("run_with_previous")},[_,T]),C.useEffect(()=>{T||(ue.current={hasCheckedRunWithPrevious:!1,hasAutoSwitched:!1},re(null),H(!1),X(!1))},[T]),C.useEffect(()=>{z&&g.loading&&X(!0)},[z,g.loading]),C.useEffect(()=>{!z||!U||A.loading||g.loading||(H(!1),X(!1))},[z,U,A.loading,g.loading]),C.useEffect(()=>{!z||U||A.loading||B&&A.data?.length||H(!1)},[z,U,A.loading,B,A.data?.length]),C.useEffect(()=>{if(!T||A.loading||ue.current.hasCheckedRunWithPrevious||$!=="run_workflow"||!(!V?.data?.length||V?.data?.length===0))return;ue.current.hasCheckedRunWithPrevious=!0;const de=Ot(Se)?fe:Se;if(!de)return;const be={...p,type:p.type??L,execution_source:"partial"},Ge=Yt(s,`/v1.0/${a}/`,`workflows/executions/${de}`);Xt.get(Ge,{params:be}).then(Ne=>{const Fe=Ne?.data?.data??[];re(Array.isArray(Fe)&&Fe.length>0)}).catch(()=>re(!1))},[T,A.loading,$,V?.data?.length,p,L,Se,fe,s,a]),C.useEffect(()=>{_&&ue.current.hasCheckedRunWithPrevious&&!ue.current.hasAutoSwitched&&$==="run_workflow"&&!A.loading&&A.data?.length>0&&(ue.current.hasAutoSwitched=!0,Y("run_with_previous"))},[A.loading,A.data?.length,$,_]),C.useEffect(()=>{_||(Q(null),i(null))},[$,_]),C.useEffect(()=>{v&&(Q(v),T&&!_&&Y("run_workflow"))},[v,T,_]),C.useEffect(()=>{et()},[B,fe,A.loading,$,_,Se]),dre({workflowId:!Ot(Se)&&Se?Se:fe,executionId:B,VORTEX_MAIN_URL:s,ENTITY_ID:a,executedFrom:fd.RUN_HISTORY,analytics:d,executionLogs:g,params:$==="run_with_previous"||B===_?{execution_source:"partial"}:void 0,shouldPoll:()=>g?.error?!1:g?.logs?.events&&g.logs.events.length>0,shouldFetch:()=>!A.loading&&A.data.length>0}),C.useEffect(()=>{q({...V,loading:A.loading})},[A.loading]),C.useEffect(()=>{if(A.data?.length>0){const ee={...A,data:t?A?.data:[...V?.data||[],...A.data]};q(ee)}else{const ee={...A,data:[]};q(ee)}},[A.data]),C.useEffect(()=>{A.data?.length>0&&te(!0)},[A.data]),C.useEffect(()=>{const ee=V?.data;if(ee?.length>0){const de=ee[0],be=de?.id;if(be){const Ge=ee.some(Fe=>String(Fe.id)===String(B));if(_&&String(B)===String(_)&&!Ge)return;(!B||!Ge)&&(Q(be),P(de.time_taken??0))}}},[V?.data,B,_]),C.useEffect(()=>{h({...ye,type:L}),n(!0)},[L]),C.useEffect(()=>{N("")},[r]);const Ee=[{label:"All",value:"all",isVisible:!0},{label:"Automatic",value:"automatic",isVisible:!0},{label:"Test",value:"test",isVisible:!0},{label:"Scheduled",value:"scheduled",isVisible:Qe()}],_e=[{label:"Run workflow",value:"run_workflow",icon:"ic_play"},{label:"Run with previous",value:"run_with_previous",icon:"ic_autoplay"}],we=b==="Logs";return f.jsx(O.Slide,{direction:"up",in:T,mountOnEnter:!0,unmountOnExit:!0,easing:{enter:"easeOut",exit:"easeIn"},children:f.jsxs(O.Box,{sx:{height:"100%",overflow:"visible",width:"100%",background:ee=>ee.palette.common.white,zIndex:110,display:T?"block":"none",position:"relative"},children:[f.jsx(O.Tooltip,{arrow:!0,title:"Drag to resize",children:f.jsx(O.Box,{onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1),onMouseDown:pe,sx:{position:"absolute",top:-12,left:0,right:0,height:24,cursor:"ns-resize",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center"},children:f.jsx(O.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,borderRadius:1,border:`1px solid ${c.palette.grey?.["400"]}`,backgroundColor:c.palette.grey?.["50"],p:.25,opacity:Z||se?1:0,transition:"opacity 0.15s ease",pointerEvents:"none"},children:f.jsx(Ue,{src:"ic_drag",width:16,height:16,sx:{transform:"rotate(90deg)"}})})})}),f.jsxs(O.Stack,{direction:"column",sx:{height:Oe,overflow:"hidden"},children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{minHeight:40,height:40,px:2,py:0,gap:1.5,backgroundColor:c.palette.common.white,borderTop:`1px solid ${c.palette.grey[200]}`,borderBottom:`1px solid ${c.palette.grey[200]}`,flexShrink:0},children:[f.jsxs(O.Stack,{alignItems:"center",direction:"row",gap:.75,sx:{shrink:0},children:[f.jsx(Ue,{src:"ic_view_timeline",width:20,height:20,sx:{path:{fill:c.palette.neutral.plain}}}),f.jsx(O.Typography,{variant:"smSemiBold",sx:{color:c.palette.neutral.plain,fontSize:14},children:"Run logs"})]}),f.jsxs(O.Stack,{alignItems:"center",direction:"row",gap:1.5,sx:{pointerEvents:A.loading?"none":"auto",shrink:0},children:[f.jsx(O.Tooltip,{arrow:!0,title:"Refresh",children:f.jsx("span",{children:f.jsx(O.IconButton,{sx:{p:.5,border:`1px solid ${c.palette.neutral.outlined.border||c.palette.grey[300]}`,borderRadius:1.5,...bi(c)},onClick:Ve,disabled:A.loading,children:f.jsx(Ue,{src:"ic_refresh",width:16,height:16,sx:{path:{fill:c.palette.neutral.plain}}})})})}),f.jsx(O.Tooltip,{placement:"bottom",arrow:!0,title:"Execution history",children:f.jsx("span",{children:f.jsx(O.IconButton,{onClick:()=>{const de=`/accounts/${a}/workflow-builder/workflow/${Se||ge}/executions`;l?l(de,{replace:!0}):window.location.replace(dd(de))},sx:{p:.5,border:`1px solid ${c.palette.neutral.outlined.border||c.palette.grey[300]}`,borderRadius:1.5,...bi(c)},children:f.jsx(Ue,{src:"ic_execution_history",width:16,height:16,sx:{path:{fill:c.palette.neutral.plain}}})})})}),f.jsx(O.Tooltip,{arrow:!0,title:"Close",children:f.jsx(O.IconButton,{onClick:o,sx:{p:0,...bi(c)},size:"small",children:f.jsx(Ue,{src:"ic_close",width:20,height:20,sx:{path:{fill:c.palette.neutral.plain}}})})})]}),f.jsx(O.Menu,{id:"run-filter-menu",anchorEl:W,open:j,onClose:He,MenuListProps:{"aria-labelledby":"run-filter-button"},children:f.jsx(O.FormControl,{sx:{p:1,"&.MuiFormControl-root label":{left:0}},children:f.jsxs(O.RadioGroup,{"aria-labelledby":"filter-radio-buttons-group",name:"filter-radio-buttons-group",value:L,onChange:ee=>{h({...ye,type:ee.target.value}),Q(null),i(null),n(!0),M(ee.target.value),R(null)},children:[f.jsx(O.Typography,{variant:"smMedium",children:"Filter by"}),Ee.map(ee=>ee.isVisible?f.jsx(O.FormControlLabel,{value:ee.value,control:f.jsx(O.Radio,{disableRipple:!0,checked:L===ee.value,sx:{p:0,pr:1,"& .MuiSvgIcon-root":{width:20,height:20},"&.Mui-checked .MuiSvgIcon-root":{color:"primary.main"}}}),sx:{"& .MuiFormControlLabel-label":{m:0},py:.5},label:ee.label},ee.value):null)]})})})]}),f.jsx(O.Stack,{direction:"row",flex:1,minHeight:0,sx:{borderRight:`1px solid ${c.palette.grey?.[300]}`,boxSizing:"border-box"},children:!A.loading&&(!V?.data?.length||V?.data?.length===0)?$==="run_with_previous"||$==="run_workflow"&&(J||ae===!0||ae===null)?f.jsxs(f.Fragment,{children:[f.jsxs(O.Stack,{width:420,height:"100%",sx:{minWidth:420,minHeight:0,borderRight:`1px solid ${c.palette.grey?.[300]}`,boxSizing:"border-box"},children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,sx:{minHeight:40,maxHeight:40,borderBottom:`1px solid ${c.palette.grey?.[300]}`,px:1.5,backgroundColor:c.palette.common.white,boxSizing:"border-box",flexShrink:0},children:[f.jsx(O.Stack,{direction:"row",alignItems:"center",gap:1,children:_e.map(ee=>f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.5,onClick:()=>nt(ee.value),sx:{cursor:"pointer",px:1,py:1.5,width:"fit-content",borderBottom:$===ee.value?de=>`2px solid ${de.palette.common.black}`:"2px solid transparent",boxSizing:"border-box",color:$===ee.value?de=>de.palette.text.primary:de=>de.palette.text.tertiary,fontWeight:$===ee.value?600:500,fontSize:12,lineHeight:"16px"},children:[f.jsx(Ue,{src:ee.icon,width:16,height:16,sx:{path:{fill:$===ee.value?de=>de.palette.text.primary:de=>de.palette.text.tertiary}}}),f.jsx(O.Typography,{variant:"xsMedium",sx:{fontSize:12,lineHeight:1.33},children:ee.label})]},ee.value))}),f.jsx(O.Tooltip,{arrow:!0,title:"Filter Run Logs",children:f.jsx("span",{children:f.jsx(O.IconButton,{sx:{p:.5,border:`1px solid ${c.palette.neutral.outlined.border||c.palette.grey[300]}`,borderRadius:1.5,...bi(c)},onClick:Ie,disabled:A.loading,"aria-controls":j?"run-filter-menu":void 0,"aria-haspopup":"true","aria-expanded":j?"true":void 0,disableRipple:!0,children:f.jsx(Ue,{src:"ic_filter",width:16,height:16,sx:{path:{fill:c.palette.neutral.plain}}})})})})]}),f.jsxs(O.Stack,{flex:1,minHeight:0,alignItems:"center",justifyContent:"center",sx:{px:3,py:1,gap:1.5,backgroundColor:c.palette.common.white},children:[f.jsx(Ue,{src:"ic_empty_state",width:120,height:88}),f.jsxs(O.Stack,{alignItems:"center",gap:.75,sx:{maxWidth:369},children:[f.jsx(O.Typography,{textAlign:"center",sx:{fontSize:14,fontWeight:600,lineHeight:"20px",color:c.palette.text.primary},children:"No run logs yet"}),f.jsx(O.Typography,{textAlign:"center",sx:{fontSize:12,fontWeight:400,lineHeight:"16px",color:c.palette.text.tertiary},children:$==="run_with_previous"?"Click run with previous to see run logs.":"Run your workflow to see run logs here."})]})]})]}),f.jsxs(O.Stack,{flex:1,alignItems:"center",justifyContent:"center",sx:{px:3,py:1,gap:1.5,backgroundColor:c.palette.common.white},children:[f.jsx(Ue,{src:$==="run_with_previous"?"ic_autoplay":"ic_play",width:48,height:48,sx:{"& svg g path":{fill:c.palette.text.tertiary}}}),f.jsx(O.Typography,{textAlign:"center",sx:{fontSize:12,fontWeight:400,lineHeight:"16px",color:c.palette.text.tertiary},children:$==="run_with_previous"?"Click run with previous to see run logs.":"Run your workflow to see run logs here."})]})]}):f.jsxs(O.Stack,{flex:1,alignItems:"center",justifyContent:"center",sx:{px:3,py:1,gap:1.5,backgroundColor:c.palette.common.white},children:[f.jsx(Ue,{src:"ic_empty_state",width:120,height:88}),f.jsxs(O.Stack,{alignItems:"center",gap:.75,sx:{maxWidth:369},children:[f.jsx(O.Typography,{textAlign:"center",sx:{fontSize:14,fontWeight:600,lineHeight:"20px",color:c.palette.text.primary},children:"No run logs yet"}),f.jsxs(O.Typography,{textAlign:"center",sx:{fontSize:12,fontWeight:400,lineHeight:"16px",color:c.palette.text.tertiary},children:["Run logs will appear here once you execute your first run.",f.jsx("br",{}),"Start a new run to see it in this list."]})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs(O.Stack,{width:420,height:"100%",sx:{minWidth:420,minHeight:0,borderRight:`1px solid ${c.palette.grey?.[300]}`,boxSizing:"border-box"},children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,sx:{minHeight:40,maxHeight:40,borderBottom:`1px solid ${c.palette.grey?.[300]}`,px:1.5,backgroundColor:c.palette.common.white,boxSizing:"border-box"},children:[f.jsx(O.Stack,{direction:"row",alignItems:"center",gap:1,children:_e.map(ee=>f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.5,onClick:()=>nt(ee.value),sx:{cursor:"pointer",px:1,py:1.5,width:"fit-content",borderBottom:$===ee.value?de=>`2px solid ${de.palette.common.black}`:"2px solid transparent",mb:"-1px",boxSizing:"border-box",color:$===ee.value?de=>de.palette.text.primary:de=>de.palette.text.tertiary,fontWeight:$===ee.value?600:500,fontSize:12,lineHeight:"16px"},children:[f.jsx(Ue,{src:ee.icon,width:16,height:16,sx:{path:{fill:$===ee.value?de=>de.palette.text.primary:de=>de.palette.text.tertiary}}}),f.jsx(O.Typography,{variant:"xsMedium",sx:{fontSize:12,lineHeight:1.33},children:ee.label})]},ee.value))}),f.jsx(O.Tooltip,{arrow:!0,title:"Filter Run Logs",children:f.jsx("span",{children:f.jsx(O.IconButton,{sx:{p:.5,border:`1px solid ${c.palette.neutral.outlined.border||c.palette.grey[300]}`,borderRadius:1.5,...bi(c)},onClick:Ie,disabled:A.loading,"aria-controls":j?"run-filter-menu":void 0,"aria-haspopup":"true","aria-expanded":j?"true":void 0,disableRipple:!0,children:f.jsx(Ue,{src:"ic_filter",width:16,height:16,sx:{path:{fill:c.palette.neutral.plain}}})})})})]}),f.jsx(O.Stack,{sx:{flex:1,minHeight:0,overflow:"hidden",position:"relative",boxSizing:"border-box"},children:f.jsx(bot,{setExecFlag:n,executions:V,executionId:B,onExecutionClick:ee=>{Q(ee.executionId),P(ee.timeTaken),w("Logs")},fetchMoreExecutions:()=>{h({...p,next_id:V.pagination.next_id})},execFlag:t})})]}),B&&(z||g?.loading||(g?.logs?.events?.length??0)>0)&&f.jsxs(O.Stack,{width:244,minWidth:244,height:"100%",sx:{minHeight:0,display:"flex",flexDirection:"column",borderRight:`1px solid ${c.palette.grey?.[300]}`,boxSizing:"border-box"},children:[f.jsx(_ot,{variant:"activities",children:f.jsx(O.Typography,{variant:"smMedium",sx:{fontWeight:600,fontSize:12,lineHeight:"16px",color:ee=>ee.palette.text.primary},children:"Activities"})}),f.jsx(O.Stack,{flex:1,minHeight:0,width:"100%",sx:{overflowY:"auto"},children:f.jsx(xot,{executionTime:I,executionId:B,executionLogs:g,setSelectedBlock:i,selectedBlock:r,VORTEX_MAIN_URL:s,ENTITY_ID:a,onLoadMore:rt,isLoadingMore:F,runLogsContentRefreshing:z})})]}),f.jsxs(O.Stack,{flex:1,height:"100%",sx:{minHeight:0,flexDirection:"column",boxSizing:"border-box"},children:[f.jsxs(O.Stack,{direction:"row",alignItems:"center",sx:{minHeight:40,maxHeight:40,px:"12px",py:"8px",gap:"8px",borderBottom:`1px solid ${c.palette.grey?.[300]}`,backgroundColor:c.palette.grey?.["50"],boxSizing:"border-box"},children:[r&&f.jsx(O.Stack,{direction:"row",alignItems:"center",sx:{gap:"6px",flex:1,minWidth:0},children:(()=>{const{icon:ee,displayName:de}=$te(r,E,y);return f.jsxs(f.Fragment,{children:[Ot(ee)?f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",sx:{width:24,height:24,borderRadius:1,border:`1px solid ${c.palette.grey?.[200]}`,background:c.palette.grey?.[200],flexShrink:0},children:f.jsx(O.Typography,{variant:"xxsNormal",children:p8(de)})}):f.jsx("img",{src:ee,alt:r.type,width:24,height:24,style:{flexShrink:0}}),f.jsx(O.Typography,{sx:{fontWeight:600,fontSize:12,lineHeight:"16px",color:c.palette.text.primary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:de})]})})()}),!we&&f.jsxs(O.Box,{sx:{flex:1,minWidth:135,maxWidth:200,height:24,display:"flex",alignItems:"center",gap:"6px",px:"8px",py:"4px",backgroundColor:c.palette.common.white,borderRadius:"6px",border:`1px solid ${c.palette.grey?.outlined?.border||c.palette.neutral?.outlined?.border}`,boxSizing:"border-box"},children:[f.jsx(kp.GridSearchIcon,{sx:{color:c.palette.text.tertiary,fontSize:16,flexShrink:0}}),f.jsx(O.InputBase,{value:k,onChange:ee=>N(ee.target.value),placeholder:"Search entries",sx:{flex:1,minWidth:0,"& .MuiInputBase-input":{p:0,fontSize:12,lineHeight:"16px","&::placeholder":{opacity:.64,color:c.palette.text.tertiary}}},inputProps:{"aria-label":"Search entries"}})]}),f.jsx(O.Stack,{direction:"row",alignItems:"center",sx:{height:24,p:"4px",borderRadius:"6px",backgroundColor:c.palette.white?.smoke||c.palette.neutral?.soft?.bg,border:`1px solid ${c.palette.grey?.outlined?.border||c.palette.neutral?.outlined?.border}`,gap:"4px",flexShrink:0,...we?{ml:"auto"}:{}},children:Vle.map(ee=>f.jsx(O.Box,{onClick:()=>{N(""),w(ee.title)},sx:{height:16,display:"flex",alignItems:"center",justifyContent:"center",px:"4px",borderRadius:"4px",cursor:"pointer",backgroundColor:b===ee.title?c.palette.common.white:"transparent",color:b===ee.title?c.palette.primary.main:c.palette.text.tertiary,fontWeight:b===ee.title?600:500,fontSize:12,lineHeight:"16px"},children:ee.title},ee.title))})]}),f.jsx(O.Box,{sx:{flex:1,minHeight:0,overflow:"hidden"},children:f.jsx(Ist,{executionLogs:g,tab:b,executionId:B,showTimestamps:D,selectedBlock:r,searchQuery:k,runLogsContentRefreshing:z})})]})]})}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",justifyContent:"flex-end",sx:{height:28,minHeight:28,maxHeight:28,px:2,borderTop:`1px solid ${c.palette.grey?.[300]}`,backgroundColor:ee=>ee.palette.common.white,gap:1,boxSizing:"border-box"},children:[f.jsx(O.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:c.palette.primary.main}}),f.jsxs(O.Typography,{variant:"xsNormal",sx:{fontSize:12,lineHeight:"16px",color:ee=>ee.palette.text.tertiary},children:["Last saved on ",A4(new Date(m?.updated_at||new Date),"DD MMM YYYY, hh:mm A")]})]})]})]})})},fre=(e,t,n,r)=>Yt(e,`/v1.0/${t}/`,`workflows/${n}/execution/${r}/retries`),Pst=(e=[])=>(e||[]).map(n=>({id:n?.id||n?.execution_id||n?.executionId,status:n?.status||"-",created_at:n?.created_at,meta:n?.meta})).sort((n,r)=>Number(n.meta.retry_attempt||0)>Number(r.meta.retry_attempt||0)?1:-1).map((n,r)=>({...n,label:n.meta.retry_attempt?`Retry ${n.meta.retry_attempt}`:r===0?"Latest Execution":`Retry ${r}`})),Nst=e=>[...e].sort((t,n)=>Number(n.meta.retry_attempt||0)-Number(t.meta.retry_attempt||0)),Lst=(e,t)=>Yt(e,`/v1.0/${t}/`,"workflows"),kst=(e,t)=>t?e.find(n=>n.id===t)??null:null,Mst=gc(({renderInput:e,options:t,viewOnly:n=!1,disabled:r=!1,...i})=>f.jsx(O.Autocomplete,{renderInput:e,options:t,disabled:r||n,...i})),Fst=({onClose:e,open:t})=>{const{WORKFLOW_URLS:n,ENTITY_ID:r}=wi(),{VORTEX_MAIN_URL:i}=n,o=ht.useDispatch(),{canvasWorkflow:s,viewOnly:a}=ht.useSelector(_=>_.canvas),{workflow:l}=ht.useSelector(_=>_.workflows),u=s?.meta?.fallback_workflow_id||"",[c,d]=C.useState(u),[p,h]=C.useState([]),[A,g]=C.useState(!1),E=Oo()===kr.DRAFT?l?.id:l?.meta?.draft_id,y=C.useMemo(()=>kst(p,c),[p,c]),v=C.useCallback(async _=>{g(!0);try{const x=Lst(i,r),b={...E&&{exclude:E},status:S4.PUBLISHED},w=await Xt.get(x,{params:b,signal:_});h(w.data.data??[])}catch(x){if(x?.name==="CanceledError"||x?.name==="AbortError")return;h([])}finally{g(!1)}},[i,r]);C.useEffect(()=>{if(t){const _=new AbortController;return v(_.signal),()=>_.abort()}},[t,v]);const T=C.useCallback(_=>{_.preventDefault(),o({type:ac,payload:{...s,meta:{...s?.meta,fallback_workflow_id:c}}}),d(""),e()},[o,s,c,e]);return f.jsx(vo,{variant:"large",open:t,handleClose:e,title:"Attach Workflow on Failed Executions",content:f.jsxs("form",{autoComplete:"off",onSubmit:T,children:[f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",minWidth:560,gap:2,children:f.jsxs(O.FormControl,{fullWidth:!0,children:[f.jsx(O.InputLabel,{shrink:!0,children:"Workflows"}),f.jsx(Mst,{fullWidth:!0,id:"workflowId",name:"workflowId",value:y,options:p,loading:A,disabled:!!a,isOptionEqualToValue:(_,x)=>_.id===x.id,getOptionLabel:_=>_.name,onChange:(_,x)=>{d(x?.id??"")},renderOption:(_,x)=>C.createElement(O.Stack,{direction:"row",component:"li",..._,key:x.id,title:x.name,width:"100%",sx:{"& .MuiChip-root":{borderRadius:"4px !important"}}},f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:1,justifyContent:"space-between",width:"100%",children:[f.jsx(O.Typography,{variant:"body2",children:x.name}),f.jsx(O.Chip,{label:x.version,size:"small",variant:"outlined"})]})),title:"Attach Workflow on Failed Executions",type:"workflowId",renderInput:_=>f.jsx(O.TextField,{..._,sx:{"& .MuiOutlinedInput-root.Mui-disabled":{backgroundColor:"transparent"},"& .MuiInputBase-root.Mui-disabled":{backgroundColor:"transparent"},"& .MuiInputBase-input.Mui-disabled":{backgroundColor:"transparent"}},InputProps:{..._.InputProps,endAdornment:f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:1,children:[y?.version?f.jsx(O.Chip,{label:y.version,size:"small",variant:"outlined",sx:{borderRadius:"4px !important"}}):null,A?f.jsx(O.CircularProgress,{color:"inherit",size:20}):null,_.InputProps?.endAdornment??null]})}})}),f.jsx(O.FormHelperText,{component:"span",dangerouslySetInnerHTML:{__html:"Select a workflow to attach on failed executions"}})]})}),f.jsxs(O.Stack,{direction:"row",justifyContent:"flex-end",width:"100%",gap:2,mt:2,children:[f.jsx(O.Button,{type:"button",variant:"outlined",onClick:e,disabled:!!a,"data-test-id":"attach-workflow-cancel-button",color:"neutral",children:"Cancel"}),f.jsx(O.Button,{type:"submit",variant:"contained",disabled:!!a||A,"data-test-id":"attach-workflow-save-button",children:"Save"})]})]})})},Bst=({setActiveMenu:e,open:t,onClose:n})=>{const r=O.useTheme(),i=ht.useDispatch(),[o,s]=C.useState(""),[a,l]=C.useState(!1),[u,c]=C.useState(!1),[d,p]=C.useState(null),[h,A]=C.useState(!0),{canvasWorkflow:g}=ht.useSelector(V=>V.canvas),{WORKFLOW_URLS:m,ENTITY_ID:E}=wi(),{setNodes:y,setEdges:v,getNodes:T}=Dt.useReactFlow(),_=Oo(),x=Tr(_),b=async V=>{if(!V)return;c(!0),i({type:Eb,payload:!0});try{const R=T().filter(j=>j.type!==xt.PLACEHOLDER).map(j=>j.data.properties.integration_slug&&j?.id?`${j.data.properties.integration_slug}_${j.id}`:j?.id);R.length>0&&x&&m?.VORTEX_MAIN_URL&&E&&await NC(x,R,m.VORTEX_MAIN_URL,E)}catch{}const{nodes:q,edges:F,name:G}=V;i({type:ac,payload:{...g,name:G,global_variables:Ot(V.global_variables)?{}:V.global_variables}}),y(q),v(F),c(!1),i({type:Eb,payload:!1}),e(""),s("")},w=async()=>{if(d)await b(d);else if(o&&h){c(!0),i({type:sd,payload:{activityExecutionData:{}}});try{const V=await Xt.get(o);await b(V.data.data)}catch(V){cn(V,i)}finally{c(!1)}}},D=async V=>{if(V&&V[0]){const q=new FileReader;q.readAsText(V[0],"UTF-8"),q.onload=F=>{const G=F.target?.result;try{const W=JSON.parse(G);p(W)}catch{i({type:zn,payload:{open:!0,title:"Something went wrong while importing Workflow JSON",type:"error"}})}}}},I=["boltic.io","fynd.com","fyndx1.de","fcz0.de","gofynd.com"],P=V=>{try{const q=new URL(V);return I.some(F=>q.hostname===F||q.hostname.endsWith(`.${F}`))}catch{return!1}},k=V=>!!new RegExp("^https:\\/\\/((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(V)&&P(V),N=V=>{const q=V.target.value;s(q),A(k(q))},L=async()=>{if(!(!o||!h))try{const V=await Xt.get(o);await b(V.data.data)}catch(V){i({type:zn,payload:{open:!0,title:V.response?.data?.error?.message||"Something went wrong while importing Workflow JSON",type:"error"}})}},M=async V=>{V.preventDefault();const q=Array.from(V.dataTransfer.files);q.length>0&&D(q),l(!1)},B=(V,q)=>{V.preventDefault(),l(q)},Q=()=>{s(""),n()};return f.jsx(vo,{variant:"medium",open:t,handleClose:Q,title:"How would you like to proceed?",content:f.jsxs(O.Stack,{alignItems:"center",justifyContent:"center",width:"100%",gap:2,children:[a&&f.jsx(vo,{variant:"medium",open:a,handleClose:()=>{},title:"",customMethods:{onDragLeave:V=>B(V,!1),onDragOver:V=>B(V,!0),onDrop:M},content:f.jsx(O.Stack,{height:320,sx:{background:r.palette.common.white},children:f.jsxs(O.Stack,{sx:{background:r.palette.white.smoke,height:"100%"},alignItems:"center",justifyContent:"center",gap:1,borderRadius:1,border:`1px dashed ${r.palette.grey[300]}`,children:[f.jsx(O.Stack,{children:f.jsx(Ue,{src:"ic_upload",width:24,height:24,sx:{path:{fill:r.palette.primary.main}}})}),f.jsx(O.Stack,{children:f.jsx(O.Typography,{variant:"smSemiBold",children:"Drop JSON file here"})})]})})}),f.jsx(O.Typography,{variant:"smNormal",sx:{color:r.palette.text.tertiary},children:"Importing a workflow will overwrite your current setup, including all nodes, connections, and configurations. Are you sure you want to proceed?"}),f.jsx(O.Stack,{width:"100%",children:f.jsx(io,{variant:"outlined",label:"URL",fullWidth:!0,showSuggestion:!1,value:o,onChange:N,placeholder:"Paste the shared URL here",error:!h&&o!=="",helperText:!h&&o!==""?"Please enter a valid URL":"",InputProps:{endAdornment:u?f.jsx(O.CircularProgress,{size:16}):null},sx:{width:"100%","& .MuiInputBase-root.MuiOutlinedInput-root":{minHeight:"auto"}},paperSx:{width:"auto !important",maxWidth:"100% !important",height:40},onKeyDown:V=>{V.key==="Enter"&&L()}})}),f.jsx(O.Divider,{orientation:"horizontal","aria-hidden":"true",flexItem:!0,children:"Or"}),f.jsx(O.Paper,{onDragEnter:V=>B(V,!0),onDragOver:V=>B(V,!0),onDrop:M,onDragLeave:V=>B(V,!1),sx:{minHeight:"100px",height:"208px",flexDirection:"column",...Bi,cursor:"pointer",borderColor:r.palette.grey[300],backgroundColor:r.palette.grey[50],borderStyle:"dashed",borderWidth:a?"2px":"1px",borderRadius:2,width:"100% !important",p:2},children:f.jsx(O.FormControlLabel,{control:f.jsx("input",{type:"file",accept:"application/json",style:{display:"none"},id:"fileInput",onChange:V=>D(V.target.files)}),label:f.jsxs(O.Stack,{alignItems:"center",gap:1.5,children:[f.jsx(Ue,{src:"ic_importicon",width:32,height:32}),f.jsx(O.Button,{variant:"contained",color:"primary",size:"small",onClick:V=>{V.preventDefault(),V.stopPropagation(),document.getElementById("fileInput")?.click()},startIcon:f.jsx(Ue,{src:"ic_export",width:16,height:16,sx:{path:{fill:r.palette.common.white}}}),children:"Upload File"}),f.jsxs(O.Stack,{gap:1,alignItems:"center",justifyContent:"center",children:[f.jsx(O.Typography,{variant:"smMedium",sx:{color:r.palette.text.primary},children:"Drag and drop your files here"}),f.jsxs(O.Stack,{gap:.5,alignItems:"center",justifyContent:"center",children:[f.jsx(O.Typography,{variant:"xsNormal",sx:{color:r.palette.text.tertiary},children:"Choose the JSON file format"}),!!d&&f.jsxs(O.Typography,{variant:"xsNormal",sx:{color:r.palette.text.tertiary},children:["Selected File: ",d.name]})]})]})]})})}),f.jsxs(O.Stack,{direction:"row",ml:"auto",gap:1,pt:2,children:[f.jsx(O.Button,{variant:"outlined",onClick:Q,size:"medium",color:"neutral",children:"Cancel"}),f.jsx(O.Button,{variant:"contained",size:"medium",onClick:w,disabled:!d&&(!o||!h),children:"Import & Replace"})]})]})})};function jst(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const $st=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function uf(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let GA=null;function pre(e={}){return GA||(e.includeStyleProperties?(GA=e.includeStyleProperties,GA):(GA=uf(window.getComputedStyle(document.documentElement)),GA))}function yx(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function Ust(e){const t=yx(e,"border-left-width"),n=yx(e,"border-right-width");return e.clientWidth+t+n}function Hst(e){const t=yx(e,"border-top-width"),n=yx(e,"border-bottom-width");return e.clientHeight+t+n}function hre(e,t={}){const n=t.width||Ust(e),r=t.height||Hst(e);return{width:n,height:r}}function Vst(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Ka=16384;function Gst(e){(e.width>Ka||e.height>Ka)&&(e.width>Ka&&e.height>Ka?e.width>e.height?(e.height*=Ka/e.width,e.width=Ka):(e.width*=Ka/e.height,e.height=Ka):e.width>Ka?(e.height*=Ka/e.width,e.width=Ka):(e.width*=Ka/e.height,e.height=Ka))}function vx(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Wst(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Qst(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),Wst(i)}const va=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||va(n,t)};function zst(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Xst(e,t){return pre(t).map(n=>{const r=e.getPropertyValue(n),i=e.getPropertyPriority(n);return`${n}: ${r}${i?" !important":""};`}).join(" ")}function Yst(e,t,n,r){const i=`.${e}:${t}`,o=n.cssText?zst(n):Xst(n,r);return document.createTextNode(`${i}{${o}}`)}function Are(e,t,n,r){const i=window.getComputedStyle(e,n),o=i.getPropertyValue("content");if(o===""||o==="none")return;const s=$st();try{t.className=`${t.className} ${s}`}catch{return}const a=document.createElement("style");a.appendChild(Yst(s,n,i,r)),t.appendChild(a)}function qst(e,t,n){Are(e,t,":before",n),Are(e,t,":after",n)}const mre="application/font-woff",gre="image/jpeg",Kst={woff:mre,woff2:mre,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:gre,jpeg:gre,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Zst(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function w8(e){const t=Zst(e).toLowerCase();return Kst[t]||""}function Jst(e){return e.split(/,/)[1]}function I8(e){return e.search(/^(data:)/)!==-1}function eat(e,t){return`data:${t};base64,${e}`}async function Ere(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((o,s)=>{const a=new FileReader;a.onerror=s,a.onloadend=()=>{try{o(n({res:r,result:a.result}))}catch(l){s(l)}},a.readAsDataURL(i)})}const D8={};function tat(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function R8(e,t,n){const r=tat(e,t,n.includeQueryParams);if(D8[r]!=null)return D8[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const o=await Ere(e,n.fetchRequestInit,({res:s,result:a})=>(t||(t=s.headers.get("Content-Type")||""),Jst(a)));i=eat(o,t)}catch(o){i=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;o&&(s=typeof o=="string"?o:o.message)}return D8[r]=i,i}async function nat(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):vx(t)}async function rat(e,t){if(e.currentSrc){const o=document.createElement("canvas"),s=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,s?.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return vx(a)}const n=e.poster,r=w8(n),i=await R8(n,r,t);return vx(i)}async function iat(e,t){var n;try{if(!((n=e?.contentDocument)===null||n===void 0)&&n.body)return await Tx(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function oat(e,t){return va(e,HTMLCanvasElement)?nat(e):va(e,HTMLVideoElement)?rat(e,t):va(e,HTMLIFrameElement)?iat(e,t):e.cloneNode(Ore(e))}const sat=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ore=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function aat(e,t,n){var r,i;if(Ore(t))return t;let o=[];return sat(e)&&e.assignedNodes?o=uf(e.assignedNodes()):va(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?o=uf(e.contentDocument.body.childNodes):o=uf(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),o.length===0||va(e,HTMLVideoElement)||await o.reduce((s,a)=>s.then(()=>Tx(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function lat(e,t,n){const r=t.style;if(!r)return;const i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):pre(n).forEach(o=>{let s=i.getPropertyValue(o);o==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),va(e,HTMLIFrameElement)&&o==="display"&&s==="inline"&&(s="block"),o==="d"&&t.getAttribute("d")&&(s=`path(${t.getAttribute("d")})`),r.setProperty(o,s,i.getPropertyPriority(o))})}function uat(e,t){va(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),va(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function cat(e,t){if(va(e,HTMLSelectElement)){const r=Array.from(t.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function dat(e,t,n){return va(t,Element)&&(lat(e,t,n),qst(e,t,n),uat(e,t),cat(e,t)),t}async function fat(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),u=document.querySelector(a);!l&&u&&!r[a]&&(r[a]=await Tx(u,t,!0))}}const i=Object.values(r);if(i.length){const o="http://www.w3.org/1999/xhtml",s=document.createElementNS(o,"svg");s.setAttribute("xmlns",o),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const a=document.createElementNS(o,"defs");s.appendChild(a);for(let l=0;l<i.length;l++)a.appendChild(i[l]);e.appendChild(s)}return e}async function Tx(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>oat(r,t)).then(r=>aat(e,r,t)).then(r=>dat(e,r,t)).then(r=>fat(r,t))}const yre=/url\((['"]?)([^'"]+?)\1\)/g,pat=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,hat=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Aat(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function mat(e){const t=[];return e.replace(yre,(n,r,i)=>(t.push(i),n)),t.filter(n=>!I8(n))}async function gat(e,t,n,r,i){try{const o=n?jst(t,n):t,s=w8(t);let a;return i||(a=await R8(o,s,r)),e.replace(Aat(t),`$1${a}$3`)}catch{}return e}function Eat(e,{preferredFontFormat:t}){return t?e.replace(hat,n=>{for(;;){const[r,,i]=pat.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function vre(e){return e.search(yre)!==-1}async function Tre(e,t,n){if(!vre(e))return e;const r=Eat(e,n);return mat(r).reduce((o,s)=>o.then(a=>gat(a,s,t,n)),Promise.resolve(r))}async function WA(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const o=await Tre(i,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function Oat(e,t){await WA("background",e,t)||await WA("background-image",e,t),await WA("mask",e,t)||await WA("-webkit-mask",e,t)||await WA("mask-image",e,t)||await WA("-webkit-mask-image",e,t)}async function yat(e,t){const n=va(e,HTMLImageElement);if(!(n&&!I8(e.src))&&!(va(e,SVGImageElement)&&!I8(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await R8(r,w8(r),t);await new Promise((o,s)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...l)=>{try{o(t.onImageErrorHandler(...l))}catch(u){s(u)}}:s;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function vat(e,t){const r=uf(e.childNodes).map(i=>Sre(i,t));await Promise.all(r).then(()=>e)}async function Sre(e,t){va(e,Element)&&(await Oat(e,t),await yat(e,t),await vat(e,t))}function Tat(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const xre={};async function bre(e){let t=xre[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},xre[e]=t,t}async function Cre(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let a=s.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),Ere(a,t.fetchRequestInit,({result:l})=>(n=n.replace(s,`url(${l})`),[s,l]))});return Promise.all(o).then(()=>n)}function _re(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(s,"gi");for(;;){let l=o.exec(r);if(l===null){if(l=a.exec(r),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function Sat(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{uf(i.cssRules||[]).forEach((o,s)=>{if(o.type===CSSRule.IMPORT_RULE){let a=s+1;const l=o.href,u=bre(l).then(c=>Cre(c,t)).then(c=>_re(c).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?a+=1:i.cssRules.length)}catch{}})).catch(c=>{});r.push(u)}})}catch{const s=e.find(a=>a.href==null)||document.styleSheets[0];i.href!=null&&r.push(bre(i.href).then(a=>Cre(a,t)).then(a=>_re(a).forEach(l=>{s.insertRule(l,s.cssRules.length)})).catch(a=>{}))}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{uf(i.cssRules||[]).forEach(o=>{n.push(o)})}catch{}}),n))}function xat(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>vre(t.style.getPropertyValue("src")))}async function bat(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=uf(e.ownerDocument.styleSheets),r=await Sat(n,t);return xat(r)}function wre(e){return e.trim().replace(/["']/g,"")}function Cat(e){const t=new Set;function n(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(o=>{t.add(wre(o))}),Array.from(r.children).forEach(o=>{o instanceof HTMLElement&&n(o)})}return n(e),t}async function _at(e,t){const n=await bat(e,t),r=Cat(e);return(await Promise.all(n.filter(o=>r.has(wre(o.style.fontFamily))).map(o=>{const s=o.parentStyleSheet?o.parentStyleSheet.href:null;return Tre(o.cssText,s,t)}))).join(`
|
|
653
|
-
`)}async function wat(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await _at(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function Iat(e,t={}){const{width:n,height:r}=hre(e,t),i=await Tx(e,t,!0);return await wat(i,t),await Sre(i,t),Tat(i,t),await Qst(i,n,r)}async function Dat(e,t={}){const{width:n,height:r}=hre(e,t),i=await Iat(e,t),o=await vx(i),s=document.createElement("canvas"),a=s.getContext("2d"),l=t.pixelRatio||Vst(),u=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=u*l,s.height=c*l,t.skipAutoScale||Gst(s),s.style.width=`${u}`,s.style.height=`${c}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(o,0,0,s.width,s.height),s}async function Rat(e,t={}){return(await Dat(e,t)).toDataURL()}const Ire=1024*2,Dre=768*2,Pat=({nodes:e,edges:t,open:n,onClose:r})=>{const i=ht.useDispatch(),o=O.useTheme(),{ENTITY_ID:s,WORKFLOW_URLS:a,analytics:l}=wi(),{captureEvent:u,WORKFLOW_EVENTS:c}=l||{},{VORTEX_MAIN_URL:d}=a,{canvasWorkflow:p}=ht.useSelector(w=>w.canvas),{share:h}=ht.useSelector(w=>w.workflows),A=C.useRef(),g=C.useMemo(()=>{const w=Il("nodes_update",e)||[],D=Il("edges_update",null,t)||[];return{...p,nodes:w,edges:D}},[p,e,t]),m=C.useCallback(()=>{!d||!s||i(Iue(d,s,g))},[i,d,s,g]),E=C.useCallback((w,D="success")=>{i({type:zn,payload:{open:!0,title:w,type:D}})},[i]),y=C.useCallback(async()=>{const w=h?.data?.url;if(w)try{await navigator.clipboard.writeText(w),E("Link copied to clipboard","success")}catch{const D=document.createElement("textarea");D.value=w,document.body.appendChild(D),D.select();try{document.execCommand("copy"),E("Link copied to clipboard","success")}catch{E("Failed to copy link","error")}finally{document.body.removeChild(D)}}},[E,h?.data?.url]),v=C.useCallback(async(w,D)=>{try{const I=await Tue(w),P=new Blob([JSON.stringify(I,null,2)],{type:"application/json"}),k=URL.createObjectURL(P),N=document.createElement("a");N.href=k,N.download=`${D||"workflow"}.json`,document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL(k),u?.(c?.WORKFLOW?.EXPORTED_JSON,{"console.product_account_id":s,message:"Workflow exported as JSON",workflow_name:D})}catch{E("Failed to download JSON","error")}},[E,u,c,s]),T=C.useCallback((w,D)=>{const I=document.createElement("a");I.setAttribute("download",`${D}.png`),I.setAttribute("href",w),I.click()},[]),_=C.useCallback(async()=>{try{if(!e?.length){E("No nodes to export","warning");return}const w=document.querySelector(".react-flow__viewport");if(!w){E("Canvas not found","error");return}const D=Dt.getNodesBounds(e),I=Dt.getViewportForBounds(D,Ire,Dre,.5,2,"12px"),P=await Rat(w,{backgroundColor:o.palette.white.smoke,width:Ire,height:Dre,style:{transform:`translate(${I.x}px, ${I.y}px) scale(${I.zoom})`}});T(P,p?.name||"workflow"),u?.(c?.WORKFLOW?.EXPORTED_IMAGE,{"console.product_account_id":s,message:"Workflow exported as PNG",workflow_name:p?.name})}catch{E("Failed to export image","error")}},[e,o,T,E,p?.name,u,c,s]);C.useEffect(()=>{n&&m()},[n,g]),C.useEffect(()=>{const w=h?.data?.url;!h.loading&&w&&w!==A.current&&(A.current=w,u?.(c?.WORKFLOW?.SHARED,{"console.product_account_id":s,message:"Workflow shared successfully",url:w}))},[h.loading,h?.data?.url,u,c,s]);const x=h?.data?.url||"",b=!!x&&!h.loading;return f.jsx(vo,{variant:"medium",open:n,handleClose:r,title:"Export workflow",content:f.jsxs(O.Stack,{alignItems:"center",justifyContent:"center",width:"100%",gap:2,children:[h.loading?f.jsx(O.Stack,{direction:"row",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",children:f.jsx(O.CircularProgress,{size:30})}):f.jsxs(O.Stack,{width:"100%",justifyContent:"flex-end",children:[f.jsx(io,{label:"Workflow link",fullWidth:!0,viewOnly:!0,variant:"outlined",disabled:!0,InputLabelProps:{shrink:!1},sx:{"& input":{px:1,height:40,fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"&.MuiFormControl-root.MuiTextField-root label":{fontSize:14,color:o.palette.text.tertiary},"& .MuiOutlinedInput-root":{height:40,paddingRight:"8px !important"}},value:x||"No link generated",InputProps:{endAdornment:f.jsx(O.IconButton,{onClick:y,disabled:!b,children:f.jsx(Ue,{src:"ic_copy",width:20,height:20})})}}),f.jsx(O.Typography,{variant:"body2",sx:{color:w=>w.palette.text.tertiary},mt:1,children:"If the generated link expires after 7 days, you can copy it again from here."})]}),f.jsx(O.Divider,{orientation:"horizontal","aria-hidden":"true",flexItem:!0,children:"Or"}),f.jsxs(O.Stack,{direction:"row",width:"100%",gap:1.5,children:[f.jsx(O.Button,{sx:{width:"50%"},onClick:()=>v(g,p?.name||"workflow"),startIcon:f.jsx(Ue,{src:"ic_export",height:20,width:20,sx:{"& path":{fill:o.palette.neutral.solid.bg}}}),fullWidth:!0,variant:"outlined",color:"neutral",size:"large",children:"Export JSON"}),f.jsx(O.Button,{sx:{width:"50%"},onClick:_,startIcon:f.jsx(Ue,{src:"ic_export",height:20,width:20,sx:{"& path":{fill:o.palette.neutral.solid.bg}}}),fullWidth:!0,variant:"outlined",color:"neutral",size:"large",children:"Export PNG"})]})]})})},Nat=({editWorkflowName:e,setEditWorkflowName:t})=>{const{canvasWorkflow:n}=ht.useSelector(l=>l.canvas),r=Oo(),i=ht.useDispatch(),o=l=>{i({type:ac,payload:{...n,name:l}})},s=l=>l.length>50?(i({type:zn,payload:{open:!0,title:"Maximum Length is 50 characters",type:"error"}}),"Maximum Length is 50 characters"):l.length===0?(i({type:zn,payload:{open:!0,title:"Workflow Name can't be empty",type:"error"}}),"Workflow Name can't be empty"):null,a=()=>Ot(n)?!1:r!==kr.DRAFT;return f.jsx(Uz,{value:n.name,onSave:o,isEditing:e,setIsEditing:t,disabled:a(),maxLength:50,validate:s,variant:"lgBold",maxWidth:600,textSx:{color:l=>l.palette.grey.dark},inputSx:{".MuiInputBase-input":{py:.5,px:1,fontSize:"18px",fontWeight:700},"& .MuiInputBase-root.MuiOutlinedInput-root":{minHeight:32}},autoResize:!0,enableDoubleClick:!0,showEditIcon:!0})},Lat=({VORTEX_MAIN_URL:e,ENTITY_ID:t})=>{const n=ht.useDispatch(),{trigger_help:r,workflow:i,versions:o}=ht.useSelector(g=>g.workflows),[s,a]=C.useState(""),[l,u]=C.useState("get"),[c,d]=C.useState({}),p=Tr(Pn.VERSION),h=Tr(),A={URL:"https://cdn.pixelbin.io/v2/fyndcloud/original/url.svg",Python:"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/python.svg",cURL:"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/curl.svg",JavaScript:"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/javascript.svg"};return C.useEffect(()=>{n(Fb(p||h,e,t))},[]),C.useEffect(()=>{if(!Ot(r)){const g={},m=[];r?.items?.forEach(E=>{m.push(E.title),E.snippets.forEach(y=>{g[E.title]||(g[E.title]={}),g[E.title][y.title]=y.value})}),d({...g,methods:m}),u(m[0]),a(Object.keys(g[m[0]])[0])}},[r]),C.useEffect(()=>{if(!o){const g={page:1,per_page:10},m=Oo(),E=[Pn.PUBLISHED,Pn.SCHEDULED].includes(m)?p:i?.parent_id;E&&n(Of(g,E,e,t))}},[i?.parent_id,h]),f.jsxs(O.Box,{sx:{width:"100%"},children:[f.jsx(O.Stack,{justifyContent:"space-between",alignItems:"center",direction:"row",children:f.jsxs(O.Stack,{alignItems:"center",direction:"row",spacing:1,pb:2,children:[f.jsxs(O.FormControl,{sx:{minWidth:120},children:[f.jsx(O.InputLabel,{id:"method-select-label",children:"Method"}),f.jsx(O.Select,{labelId:"method-select-label",value:c?.methods?.includes(l)?l:"",label:"Method",onChange:g=>{const m=g.target.value;u(m);const E=Object.keys(c[m]||{});a(E[0])},children:c?.methods?.map(g=>f.jsx(O.MenuItem,{value:g,children:g.toUpperCase()},g))})]}),f.jsxs(O.FormControl,{sx:{minWidth:160},children:[f.jsx(O.InputLabel,{id:"language-select-label",children:"Language"}),f.jsx(O.Select,{labelId:"language-select-label",value:c?.[l]&&Object.keys(c[l]||{}).includes(s)?s:"",label:"Language",onChange:g=>a(g.target.value),renderValue:g=>f.jsxs(O.Stack,{direction:"row",alignItems:"center",children:[f.jsx(oh,{src:A[g],alt:g,asHtmlElement:!0,style:{marginRight:8}}),g]}),children:(Object.keys(c[l]||{})||[]).map(g=>f.jsx(O.MenuItem,{value:g,children:f.jsxs(O.Stack,{direction:"row",alignItems:"center",children:[f.jsx(oh,{src:A[g],alt:g,asHtmlElement:!0,style:{marginRight:8}}),g]})},g))})]})]})}),f.jsx(Do,{viewOnly:!0,height:"300px",language:s.toLowerCase()==="curl"?"bash":s.toLowerCase(),value:c?.[l]?.[s]||"",handleChange:()=>{},showCopyToClipboard:!0,size:"md"},G3())]})},kat=(e,t,n="")=>{const[r,i]=C.useState([]),[o,s]=C.useState(!1),a=C.useMemo(()=>({page:1,per_page:999}),[]),l=C.useCallback(async()=>{if(e){s(!0);try{if(n){const u=Yt(t,`/v1.0/${e}/workflows/${n}/versions`),{data:c}=await Xt.get(u,{params:a});i(c?.data||[])}}catch{}finally{s(!1)}}},[e,t,n,a]);return C.useEffect(()=>{l()},[e,n,t,a,l]),{versions:r,isLoading:o,fetchVersions:l}},Mat=(e,t,n)=>{const[r,i]=C.useState({}),[o,s]=C.useState(!1);return C.useEffect(()=>{(async()=>{const l=e.find(u=>u.status===kr.PUBLISHED||u.status===kr.SCHEDULED);if(!(!Array.isArray(e)||e.length===0||!l)){s(!0);try{const u=Yt(n,`/v1.0/${t}/`,`/workflows/${e[0].id}`),c=await Xt.get(u);i(c?.data?.data||{})}catch{}finally{s(!1)}}})()},[e,t,n]),{publishedData:r,isLoading:o}},Fat=({label:e,onClick:t,isDisabled:n,leftIcon:r,color:i,menuItemStyles:o,...s})=>{const a=O.useTheme();return f.jsxs(O.Grid,{container:!0,direction:"row",spacing:8,onClick:t,...s,sx:{justifyContent:"flex-start",alignItems:"center",paddingY:1.5,gap:1,px:1,py:.75,height:34,borderRadius:2,cursor:n?"not-allowed":"pointer",...o,"&:hover":{backgroundColor:n?"auto":a.palette.white.smoke,...n?{}:o?.["&:hover"]},"&:active":{backgroundColor:"primary.20",color:i||a.palette.primary.main,...o?.["&:active"]}},children:[r&&r,f.jsx(O.Typography,{variant:"mdNormal",sx:{color:l=>n?l.palette.neutral.main:i||l.palette.text.primary},children:e})]})},Rre=({menuItems:e,iconContainerStyles:t={},popoverContentStyles:n={},onIconClick:r,size:i="medium",isActive:o=!1,icon:s,sx:a={},menuItemStyles:l={}})=>{const u=O.useTheme(),[c,d]=C.useState(null),p={medium:{width:24,height:24},small:{width:16,height:16},large:{width:32,height:32}},h=E=>{E.stopPropagation(),E.preventDefault(),d(E.currentTarget),r?.()},A=()=>{d(null)},g=!!c,m=g?"simple-popover":void 0;return f.jsxs(f.Fragment,{children:[f.jsx(O.Box,{onClick:h,sx:{cursor:"pointer",width:"fit-content",float:"right",...t},"data-testid":"context-menu-icon",children:s?f.jsx(oh,{src:s,alt:"more-options",asHtmlElement:!0,sx:{...p[i],"& path":{fill:o?"primary.main":"gray.100"},"&:hover":{"& svg path":{fill:`${u.palette.text.primary}`}}}}):f.jsx(O.IconButton,{disableRipple:!0,sx:{...Nse,p:0,...p[i],"&:hover":{backgroundColor:u.palette.neutral[100],"&:hover":{"& .inline-svg svg path":{transition:"fill 0.2s ease"},"& svg path":{fill:`${u.palette.text.primary}`}}}},"data-testid":"button-context-menu",children:f.jsx(Ue,{src:"ic_context_menu",width:p[i],height:p[i],sx:{path:{fill:u.palette.text.icon}}})})}),f.jsx(O.Popover,{id:m,open:g,anchorEl:c,onClose:A,sx:{top:-2,left:8,"& .MuiPaper-root.MuiPopover-paper":{borderRadius:2,boxShadow:`0px 2px 8px -2px ${u.palette.secondary.main}, 0px 6px 12px -2px ${u.palette.secondary.main}`},margin:"10px 0",...a},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},"data-testid":"popover-context-menu",children:f.jsx(O.Stack,{sx:{p:1,gap:.5,...n},children:e.map(({label:E,onClick:y,isDisabled:v,icon:T,color:_,...x},b)=>f.jsx(Fat,{"data-testid":`menu-item-${b}`,label:E,isDisabled:v,onClick:w=>{w.stopPropagation(),w.preventDefault(),v||y(w),A()},leftIcon:T,color:_,sx:{width:"100%"},menuItemStyles:l,...x},`context-menu-${typeof E=="string"?E:"object"}-${b}`))})})]})},Bat=({nodes:e,draftWorkflow:t,setActiveMenu:n,setDeleteWorkflowPopup:r,GYRATE_MAIN_URL:i})=>{const o=O.useTheme(),{workflow:s}=ht.useSelector(h=>h.workflows),{viewOnly:a}=ht.useSelector(h=>h.canvas),l=Oo(),u=!e?.some(h=>h.type!==xt.PLACEHOLDER),c=l!==Pn.DRAFT&&t&&t.version!==s.version,d=e?.find(h=>h?.type===xt.TRIGGER),p=C.useMemo(()=>[{label:"Import",leftIcon:Gp("ic_import",o,a),isDisabled:a,onClick:()=>n("Import Workflow")},{label:"Export",isDisabled:u||!d,leftIcon:Gp("ic_export",o,u||!d),onClick:h=>{h.stopPropagation(),n("Export workflow")}},{label:"Help",isDisabled:u,leftIcon:Gp("ic_help",o),onClick:()=>{const h=Yt(i,"/workflow/intro");window.open(h,"_blank","noopener,noreferrer")}},{label:"Attach Workflow on Failed Executions",leftIcon:Gp("ic_try_again",o),onClick:h=>{h.stopPropagation(),n("Attach Workflow on Failed Executions")}}],[o,u,c,n,r]);return f.jsx(Rre,{size:"medium",iconContainerStyles:{m:0,width:"fit-content"},sx:{top:10,left:16},menuItemStyles:{...bi(o)},menuItems:p})},jat=({workflowType:e,openVersionPopup:t,handleOpenVersionPopup:n,versionId:r,publishedData:i={},isLoading:o=!1,nodes:s,edges:a,isActiveWorkflow:l,currentSubscription:u})=>{const c=ht.useDispatch(),d=O.useTheme(),{canvasWorkflow:p,selectedActivityId:h,publishLock:A}=ht.useSelector(L=>L.canvas),g=u?.[0],m=u?.metricData?.creation?.remaining,E=u?.metricData?.execution?.remaining,y=g?.status==="EXPIRED",v=g?.status==="CANCELLED",T=m==null||m<=0,_=E==null||E<=0,x=y||v||T||_,b=C.useMemo(()=>s?.find(L=>L.type===xt.TRIGGER),[s]),w=C.useMemo(()=>b?g0(b,s):!1,[b,s]),D=C.useCallback(()=>{const L=GO(p4(i)),M=GO(p4({...p,nodes:Il("nodes_update",s),edges:Il("edges_update",null,a)}));return L===M},[i,p,s,a]),I=C.useCallback(()=>{setTimeout(()=>{const M=['[data-testid="plans-add-on-button"]','[data-test-id="plan-upgrade-button"]'].map(B=>document.querySelector(B)).find(B=>B);M&&M.click()},100)},[]),P=C.useCallback(()=>{if(T||y||v){I();return}if(!l&&e!==kr.DRAFT){c({type:zn,payload:{open:!0,title:"Please activate the workflow to publish it",type:"error"}});return}if(!b){c({type:zn,payload:{open:!0,title:"Please add the trigger",type:"error"}});return}if(!w){c({type:zn,payload:{open:!0,title:"Please complete all activities configurations and activate the workflow to publish it",type:"error"}});return}n(!t)},[T,y,v,l,e,b,w,t,n,c,I]),k=o||A||D()||h||!b||!w,N=!w&&!(x||T)?"Workflow not completed":"";return f.jsx(O.Stack,{direction:"row",gap:1,children:Ot(r)&&e===kr.DRAFT&&f.jsx(O.Tooltip,{disableHoverListener:w,arrow:!0,title:N,children:f.jsx("span",{children:f.jsx(O.Button,{sx:{height:32,borderRadius:"6px","&.Mui-disabled":{pointerEvents:"all",backgroundColor:`${d.palette.primary.main} !important`,color:"white !important",opacity:.4,cursor:"not-allowed","&:hover":{backgroundColor:`${d.palette.primary.main} !important`,opacity:.4}}},variant:"contained",onClick:P,disabled:k,size:"medium",children:f.jsx(O.Typography,{variant:"smSemiBold",children:"Publish"})})})})})},$at=({open:e,handlePublishWorkflow:t,savingWorkflow:n,onClose:r})=>{const i=O.useTheme(),{workflow:o}=ht.useSelector(p=>p.workflows),{version:s="0.0.1"}=o||{},a=()=>{const[p,h,A]=s.split(".").map(Number),g=`${p}.${h}.${A}`,m=`${p}.${h+1}.0`,E=`${p}.${h}.${A+1}`,y=`${p+1}.0.0`,v=[{value:E,label:"Feature update",description:"Add new features, backward compatible",icon:"ic_patch"},{value:m,label:"Minor fix",description:"Fix small issues no new features",icon:"ic_minor"},{value:y,label:"Major fix",description:"May break older versions, major update",icon:"ic_major"}];return g==="0.0.0"?v:[{value:g,label:"Current",description:"Overwrite this version",recommended:!0,icon:"ic_current"},...v]},[l,u]=C.useState(a().find(p=>p?.recommended)?.value??a()[0].value),[c,d]=C.useState("");return f.jsx(vo,{variant:"xlarge",open:e,handleClose:r,title:"Publish workflow",sx:{"&.MuiModal-root.MuiDialog-root.MuiModal-root.MuiDialog-root .MuiDialogTitle-root+.MuiDialogContent-root":{pb:0}},content:f.jsxs(O.Stack,{width:"100%",gap:2,children:[f.jsxs(O.Box,{children:[f.jsx(Or,{label:"Release type",required:!0}),f.jsx(O.Select,{value:l,onChange:p=>u(p.target.value),sx:{width:"100%",fontSize:14},IconComponent:p=>f.jsx(Ue,{src:"ic_arrow_down",width:"1.25rem",height:"1.25rem",sx:{"&.MuiSelect-icon":{top:"auto",mr:"0.25rem"}},...p}),MenuProps:{PaperProps:{sx:{p:1,"& .MuiList-root":{display:"flex",flexDirection:"column",gap:.5}}}},children:a().map(p=>f.jsx(O.MenuItem,{sx:{"&.Mui-selected":{color:i.palette.primary.main,"& path":{fill:i.palette.primary.main}}},value:p.value,children:f.jsxs(O.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{minHeight:"32px !important",height:"32px !important"},children:[f.jsx(Ue,{src:p.icon,sx:{}}),f.jsxs(O.Typography,{variant:"smNormal",color:"inherit",children:[p.label," (",p.value,") - ",p.description]}),p.recommended&&f.jsx(O.Stack,{alignItems:"center",sx:{height:20,minHeight:20,borderRadius:1,border:`1px solid ${i.palette.grey.outlined.border}`,bgcolor:i.palette.white.smoke,px:1},children:f.jsx(O.Typography,{variant:"xsNormal",sx:{fontWeight:500},color:i.palette.text.primary,children:"Recommended"})})]})},p.value))})]}),f.jsxs(O.Box,{children:[f.jsx(Or,{label:"Description",endItem:f.jsxs(O.Box,{sx:{fontSize:10,color:i.palette.grey.normal},children:[c.length,"/200"]})}),f.jsx(O.TextField,{fullWidth:!0,value:c,name:"description",multiline:!0,rows:3.4,inputProps:{maxLength:200},onChange:p=>{d(p.target.value.slice(0,200))},placeholder:"Add a short description of the workflow"})]})]}),footer:f.jsxs(O.Stack,{direction:"row",gap:1,justifyContent:"flex-end",children:[f.jsx(O.Button,{disabled:n,variant:"outlined",onClick:r,color:"neutral",children:"Cancel"}),f.jsx(O.Button,{variant:"contained",color:"primary",disabled:n,onClick:()=>t(l,c),children:n?f.jsx(O.CircularProgress,{size:20,sx:{color:"inherit"}}):"Publish"})]})})},Uat=e=>{const{editWorkflow:t,handleEditWorkflow:n}=e,r=()=>{n(!t)};return f.jsx(O.Button,{sx:{height:32,ml:1},variant:"contained",color:"primary",onClick:r,children:f.jsx(O.Typography,{variant:"smSemiBold",children:"Edit Workflow"})})},Hat=({open:e,onClose:t,navigate:n})=>{const r=O.useTheme(),i=ht.useDispatch(),{workflow:o}=ht.useSelector(y=>y.workflows),[s,a]=C.useState(!1),{ENTITY_ID:l,WORKFLOW_URLS:u,analytics:c}=wi(),{VORTEX_MAIN_URL:d}=u,{captureEvent:p,WORKFLOW_EVENTS:h}=c||{},A=()=>{const y=o?.meta?.draft_id;if(!y)return;i({type:BO});const v=`/accounts/${l}/workflow-builder/draft/${y}`;n?n(v,{replace:!0}):window.location.replace(dd(v))},g=Oo(),m=Tr(g),E=async()=>{const y={id:o.id};a(!0);const v=Yt(`${d}`,`v1.0/${l}/workflows`,"clone"),{data:T}=await Xt.post(v,{data:y});a(!1);const{id:_,status:x}=T?.data??{};_&&x&&(p?.(h.WORKFLOW.DUPLICATED,{"console.product_account_id":l,message:"Workflow duplicated successfully",workflow_id:m,new_workflow_id:_}),n?n(`/accounts/${l}/workflow-builder/${x}/${_}`):window.open(dd(`/accounts/${l}/workflow-builder/${x}/${_}`),"_blank")),t()};return f.jsx(vo,{variant:"large",open:e,handleClose:t,title:"How would you like to proceed?",content:f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.List,{sx:{"&.MuiList-root":{display:"flex",flexDirection:"column",gap:1.5,p:0,ml:2},listStyleType:"disc"},children:uue.map(y=>f.jsx(O.ListItem,{sx:{"&.MuiListItem-root":{p:0,display:"list-item"}},children:f.jsxs(O.Stack,{children:[f.jsx(O.Typography,{variant:"smMedium",color:r.palette.text.primary,children:y.title}),f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.tertiary,children:y.description})]})},y.title))}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,height:44,border:`1px solid ${r.palette.neutral.outlined.border}`,sx:{borderRadius:2,backgroundColor:r.palette.neutral.soft.bg,px:1.5,py:.75},children:[f.jsx(Ue,{width:20,height:20,src:"ic_info_filled"}),f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.tertiary,children:"Duplicating is recommended if the workflow is live or in use."})]})]}),footer:f.jsxs(O.Stack,{direction:"row",gap:1,justifyContent:"flex-end",pt:.5,children:[f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:E,disabled:s,sx:{width:"9rem"},children:s?f.jsx(O.CircularProgress,{size:20}):"Duplicate & Edit"}),f.jsx(O.Button,{variant:"contained",onClick:A,color:"primary",disabled:s,children:"Edit Existing Draft"})]})})},Vat=({ALERT_TOP_BAR:e,source:t,saveWorkflow:n,WORKFLOW_URLS:r,ENTITY_ID:i,navigate:o,savingWorkflow:s,selectedNode:a,nodes:l,edges:u,currentSubscription:c})=>{const{VORTEX_MAIN_URL:d,GYRATE_MAIN_URL:p}=r,h=ht.useDispatch(),A=O.useTheme(),{analytics:g}=wi(),[m,E]=C.useState(!1),[y,v]=C.useState(!1),[T,_]=C.useState(!1),[x,b]=C.useState(!1),[w,D]=C.useState(""),[I,P]=C.useState(!1),[k,N]=C.useState(null),[L,M]=C.useState(!1),[B,Q]=C.useState(!1),[V,q]=C.useState(!1),[F,G]=C.useState({title:"",content:"",status:""}),[W,R]=C.useState(!1),j=new URLSearchParams(window.location.search),$=Oo(),{workflow:Y}=ht.useSelector(De=>De.workflows),{canvasWorkflow:z,viewOnly:H,showDebugLogs:U,autoSaving:X}=ht.useSelector(De=>De.canvas),J=l?.find(De=>De.type===xt.TRIGGER),[te,ae]=C.useState(""),re=Tr(),ue=Tr("version"),Oe=[Pn.PUBLISHED,Pn.SCHEDULED].includes($)?Y?.id||Y?.parent_id||"":Y?.parent_id||"",{versions:Te,isLoading:se,fetchVersions:ie}=kat(i,d,Oe),{publishedData:Z,isLoading:K}=Mat(Te,i,d),ne=l?.find(De=>De?.type===xt.TRIGGER),le=()=>{ne&&(g0(ne,l)||m?(G({title:m?"Deactivate Workflow?":"Activate Workflow?",content:m?"This will deactivate the workflow and it will no longer be triggered automatically.":"This will activate the workflow and it will be triggered based on the configured trigger.",status:m?"deactivate":"activate"}),Q(!0)):h({type:zn,payload:{open:!0,title:ne?.data?.blt_node_states?.node!=="completed"?"Please complete all activities configurations to activate this workflow.":"It looks like setup isn't finished yet. Please complete all configurations to continue.",type:"error"}}))},pe=()=>{L||Q(!1)},Ae=()=>{M(!0);const De=Y||z||{},it={active:!m,status:$!==Pn.DRAFT?$:De?.status,parent_id:De?.parent_id,version:De?.version},ut=ue||Y?.id;h(Mb(it,ut,d,i,g)).then(()=>{const yt=[Pn.PUBLISHED,Pn.SCHEDULED].includes($)&&Y?.id||Y?.parent_id;yt&&h(Of({page:1,per_page:999},yt,d,i)),Q(!1),M(!1)})},fe=()=>{const{meta:{draft_id:De}}=Y;if(o){const it=j.get("from_project");it?o(`/accounts/${i}/projects/${it}/?tab=workflows`):[Pn.PUBLISHED,Pn.SCHEDULED].includes($)?o(`/accounts/${i}/workflow/workflow-builder`):$===Pn.DRAFT?o(`/accounts/${i}/workflow/workflow-builder`):o(`/accounts/${i}/workflow-builder/draft/${De}`)}else window.history.back()},Se=(De,it)=>{if(it.length>200){h({type:zn,payload:{open:!0,title:"Description should be less than 200 characters",type:"error"}});return}if(!u?.some(yt=>{if(yt.type===Vn.PLACEHOLDER)return!1;const It=l?.find(Ft=>Ft.id===yt.target);return It&&It.type!==xt.PLACEHOLDER}))return h({type:zn,payload:{open:!0,title:"Please connect the trigger node to an activity node",type:"error"}}),h({type:Ab,payload:"error"});ne?g0(ne,l)&&(m||$===kr.DRAFT)?(n("published","edit",De,it),setTimeout(()=>{ie()},200)):h({type:zn,payload:{open:!0,title:"Please complete all activities configurations to publish this workflow",type:"error"}}):h({type:zn,payload:{open:!0,title:"Please add a trigger node",type:"error"}})},ge=De=>{v(De)},ye=De=>{_(De)};let $e="";t?.includes("pixelbin")?$e="pixelbin":t?.includes("catalog-cloud")?$e="catalog-cloud":t?.includes("copilot")&&($e="copilot"),C.useEffect(()=>{s||v(!1)},[s]),C.useEffect(()=>{const De=Y?.meta?.draft_id;[Pn.PUBLISHED,Pn.SCHEDULED].includes($)&&De!==void 0&&Xt.get(Yt(d,`/v1.0/${i}/workflows/${De}`)).then(it=>{N(it.data.data)}).catch(it=>{cn(it,h)})},[Y]),C.useEffect(()=>{const De=Y?.active!==void 0?Y.active:z?.active;E(De)},[Y?.active,z?.active]),C.useEffect(()=>{X||M(!1)},[X]);const Qe=()=>{const De=Ot(ue)?re:ue;d6(Y,De,J,h,d,i,ue,re,U,g)},je=async De=>{const it=Yt(d,`/v1.0/${i}/`,`workflows/${De}`);P(!0),await Xt.delete(it).then(()=>{re&&(P(!1),h({type:zn,payload:{open:!0,title:"Version Deleted Successfully",type:"success"}}),fe())}).catch(ut=>{cn(ut,h)})},et=()=>L?f.jsx(O.CircularProgress,{size:20}):m?"Deactivate":"Activate",rt=bt(O.Switch)(({theme:De})=>({"& .MuiSwitch-switchBase.Mui-checked":{color:De.palette.primary.main,"&:hover":{backgroundColor:za(De.palette.primary.main,De.palette.action.hoverOpacity)}},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:De.palette.primary.main},"& .Mui-disabled.MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:De.palette.primary.disabled},"& .Mui-disabled.MuiSwitch-switchBase.Mui-checked:hover + .MuiSwitch-track":{backgroundColor:De.palette.primary.disabled},"& .Mui-disabled.MuiSwitch-switchBase .MuiSwitch-thumb":{transform:"translateX(4px)"}})),nt=()=>$===Pn.DRAFT?Y.active?A.palette.warning[50]:A.palette.neutral.main:Y.active?A.palette.success[40]:A.palette.error[50],Ie=()=>$===Pn.DRAFT?Y.active?A.palette.warning[50]:A.palette.grey[300]:Y.active?A.palette.success[40]:A.palette.error[50],He=c?.[0],Ve=He?.status,Ee=He?.metricData?.execution?.remaining,_e=Ve==="EXPIRED",we=Ve==="CANCELLED",ee=Ee<=0,de=L||_e||we||ee,be=_e?"Your subscription has expired. Please renew your subscription to activate workflows.":we?"Your subscription has been cancelled. Please reactivate your subscription to activate workflows.":ee?"You have reached the maximum number of workflows you can execute. Please upgrade your plan to continue.":"",Ge=17672256e5,Ne=Te?.length&&Te.length>=2?Te[Te.length-2]?.created_at:void 0,Fe=typeof Ne=="string"?Date.parse(Ne):typeof Ne=="number"?Ne:NaN,St=Te?.[0]?.version!==void 0&&Te?.[0]?.version===Y?.version||Te?.length!==void 0&&Te.length>=2&&Number.isFinite(Fe)&&Ge>Fe?f.jsx("span",{children:f.jsx(O.FormControlLabel,{label:m?"Active":"Inactive",labelPlacement:"start",control:f.jsx(rt,{checked:m,disabled:de,onChange:le}),sx:{mr:0,cursor:de?"not-allowed":"pointer"},componentsProps:{typography:{variant:"smNormal",color:A.palette.text.primary}}})}):null;return f.jsxs(O.Stack,{sx:{zIndex:De=>De.zIndex.drawer+1,background:De=>De.palette.common.white,height:48},children:[f.jsxs(O.Stack,{flexDirection:"row",sx:{...di,height:"100%",p:1.5},children:[f.jsxs(O.Stack,{sx:{...s0},children:[f.jsx(O.Stack,{alignItems:"center",children:t?.includes("pixelbin")||t?.includes("catalog-cloud")||t?.includes("copilot")||t?.includes("commerce_")?f.jsx(O.Avatar,{variant:"rounded",sx:{width:32,height:32,mr:1,p:0},src:t?.includes("commerce_")?"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/ic_fynd_black.svg":`https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/pngs/${$e}.png`,alt:"source-icon",children:t}):f.jsx(O.IconButton,{sx:{"&.MuiButtonBase-root.MuiIconButton-root":{p:0,opacity:W?.6:1},...bi(A)},onClick:fe,disabled:W,children:f.jsx(Ue,{src:"ic_back"})})}),f.jsx(O.Divider,{color:A.palette.grey.outlined.border,orientation:"vertical",sx:{mx:1.5,height:16}}),f.jsx(Nat,{editWorkflowName:W,setEditWorkflowName:R}),c4.includes($)&&Y&&f.jsx(O.Box,{sx:{marginLeft:1.5},children:f.jsx(O.Chip,{avatar:f.jsx(O.Box,{}),label:$===Pn.DRAFT?"Draft":`Previewing v${Y?.version}`,sx:{px:1,backgroundColor:A.palette.common.white,"&.MuiChip-root .MuiChip-avatar":{width:8,height:8,mx:0,borderRadius:"50%",backgroundColor:nt()},"&.MuiChip-root":{borderColor:Ie(),gap:.75,"& span":{p:0,fontWeight:500}}}})})]}),f.jsxs(O.Stack,{sx:{...s0},children:[X&&f.jsx(O.Chip,{sx:{backgroundColor:A.palette.white.smoke,color:A.palette.black.chinese,boxShadow:"none",borderRadius:"0.5rem",padding:"2px 12px",height:"fit-content",fontSize:"12px",marginRight:"10px",fontWeight:"500","& span":{p:0,letterSpacing:"0.5px"}},label:"...Saving"}),$!==Pn.DRAFT&&(be&&St?f.jsx(O.Tooltip,{title:be,arrow:!0,placement:"bottom",children:St}):St),$!==Pn.DRAFT&&f.jsx(O.Box,{sx:{position:"relative"},children:f.jsx(Uat,{editWorkflow:T,handleEditWorkflow:ye})}),f.jsx(O.Box,{sx:{position:"relative"},children:T&&f.jsx(Hat,{open:T,onClose:()=>{ye(!1)},navigate:o})}),f.jsx(O.Box,{sx:{position:"relative"},children:y&&f.jsx($at,{open:y,setActiveMenu:ae,savingWorkflow:s,onClose:()=>{ge(!1)},handlePublishWorkflow:Se})}),(!H||[Pn.PUBLISHED,Pn.SCHEDULED].includes($))&&f.jsx(O.Box,{sx:{position:"relative",ml:1.5},children:f.jsx(jat,{currentSubscription:c,ALERT_TOP_BAR:e,workflowType:$,openVersionPopup:y,handleOpenVersionPopup:ge,versionId:ue,workflowId:re,selectedNode:a,publishedData:Z,isLoading:K||se||X,workflowExecute:Qe,nodes:l,edges:u,isActiveWorkflow:m})}),f.jsx(O.Box,{ml:1.5,children:f.jsx(Bat,{nodes:l,draftWorkflow:k,setDeleteWorkflowPopup:b,setActiveMenu:ae,GYRATE_MAIN_URL:p})})]})]}),[Pn.PUBLISHED,Pn.SCHEDULED].includes($)&&f.jsx(vo,{variant:"medium",open:x,handleClose:()=>b(!1),title:"Are you sure?",content:f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.Typography,{variant:"mdNormal",color:A.palette.text.tertiary,children:"This will delete the version and related execution history which cannot be undone."}),f.jsxs(O.Typography,{variant:"mdNormal",color:A.palette.text.tertiary,children:["To confirm, please type the name of the workflow:",f.jsxs(O.Typography,{variant:"mdBold",color:A.palette.text.secondary,children:[" ",Y?.name]})]}),f.jsx(O.TextField,{placeholder:"Enter workflow name",variant:"outlined",onChange:De=>D(De.target.value),value:w})]}),footer:f.jsxs(O.Stack,{gap:1,width:"100%",justifyContent:"flex-end",alignItems:"center",flexDirection:"row",children:[f.jsx(O.Button,{onClick:()=>b(!1),variant:"outlined",disabled:I,color:"neutral",children:"Cancel"}),f.jsx(O.Button,{color:"error",disabled:I||w!==Y?.name,onClick:()=>{w===Y?.name&&(je(ue||""),D(""),b(!1))},variant:"contained",children:I?f.jsx(O.CircularProgress,{size:16,sx:{color:"primary"}}):"Delete"})]})}),te==="Export workflow"&&f.jsx(Pat,{open:te==="Export workflow",onClose:()=>ae(""),nodes:l,edges:u}),f.jsx(Bst,{open:te==="Import Workflow",setActiveMenu:ae,onClose:()=>ae("")}),f.jsx(Fst,{open:te==="Attach Workflow on Failed Executions",onClose:()=>ae("")}),f.jsx(vo,{open:V,variant:"full",handleClose:()=>q(!1),title:"Use below code to trigger this workflow",content:f.jsx(Lat,{ENTITY_ID:i,VORTEX_MAIN_URL:d})}),f.jsx(vo,{variant:"medium",open:B,handleClose:pe,title:F.title,content:f.jsx(O.Stack,{gap:2,children:f.jsx(O.Typography,{variant:"smNormal",color:A.palette.text.tertiary,children:F.content})}),footer:f.jsx(O.Stack,{flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:f.jsxs(O.Box,{children:[f.jsx(O.Button,{color:"neutral",onClick:pe,variant:"outlined",disabled:L,children:"Cancel"}),f.jsx(O.Button,{color:F.status==="deactivate"?"error":"primary",sx:{ml:1,width:"8rem"},disabled:L,onClick:Ae,variant:"contained",children:et()})]})})})]})},Gat=e=>{const{onClose:t,setSelectedMenu:n}=e,r=ht.useDispatch(),i=O.useTheme(),{canvasWorkflow:o,viewOnly:s}=ht.useSelector(g=>g.canvas),{global_variables:a}=o,[l,u]=C.useState(a),[c,d]=C.useState(""),p=C.useMemo(()=>Zh(l),[l,Zh]);C.useEffect(()=>{p||d("")},[p]);const h=()=>{if(p){d("Keys should be unique and cannot be empty");return}r({type:ac,payload:{...o,global_variables:Ot(l)?{}:l}}),t()};return f.jsx(O.Box,{height:"100%",sx:{width:550,position:"absolute",top:0,left:48,p:.5,zIndex:100,mt:"0px !important",...qE},children:f.jsxs(O.Stack,{borderRadius:2.5,border:`1px solid ${i.palette.grey.outlined.border}`,height:"100%",gap:1,sx:{backgroundColor:i.palette.common.white,overflow:"auto",p:1},children:[f.jsx(O.Stack,{gap:.5,direction:"row",alignItems:"center",children:f.jsxs(O.Stack,{direction:"row",sx:{...di,width:"100%",marginBottom:"1.25rem"},children:[f.jsxs(O.Stack,{direction:"row",sx:{...hf,gap:"0.25rem"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:i.palette.text.primary},children:"Global variables"}),f.jsx(O.Tooltip,{PopperProps:{sx:{textAlign:"center"}},arrow:!0,title:"A global variable is a key-value pair that can be accessed and used throughout an entire workflow, ensuring consistency and reusability of data across different activities",children:f.jsx(O.Box,{component:"span",children:f.jsx(Ue,{src:"ic_info",sx:{...bi(i)}})})})]}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer",...bi(i)},onClick:()=>{n("")}})]})}),f.jsxs(O.Stack,{justifyContent:"space-between",height:"100%",children:[f.jsx(O.Box,{sx:{width:"100%",overflowY:"auto"},children:f.jsx(OX,{data:a,onChange:g=>{u(g)},viewOnly:s,id:"global-variables",errorMsg:c,fullScreen:!0,showSuggestions:!1})}),!s&&f.jsx(O.Button,{type:"submit",variant:"contained",fullWidth:!0,disabled:s,onClick:h,sx:{height:40,width:"100%"},children:"Save Global Variables"})]})]})})},P8=({type:e,name:t,label:n,required:r,multiplyValue:i=!1,viewOnly:o=!1,control:s,validationRules:a})=>f.jsx(En,{name:t,control:s,rules:{...a,valueAsNumber:!0},render:({field:l,formState:{errors:u}})=>{const c=d=>typeof d!="number"?d:i?l.value/1e3:l.value;return f.jsx(io,{...l,label:n,type:"number",fullWidth:!0,required:r,viewOnly:o,helperText:br(e,t),value:c(l.value),onChange:d=>{let p;d.target.value===""?l.onChange(d.target.value):(p=Number(d.target.value),isNaN(p)||(i&&(p=p*1e3),l.onChange(p)))},error:!!u[t],errorMsg:u[t]?.message})}}),Wat=({retryConfig:e,setRetryConfig:t,onClose:n,setSelectedMenu:r})=>{const i=O.useTheme(),{viewOnly:o}=ht.useSelector(u=>u.canvas),{handleSubmit:s,control:a}=L_({defaultValues:e}),l=async u=>{t(u),n()};return f.jsxs(O.Box,{height:"calc(100% - 8px)",borderRadius:2.5,border:`1px solid ${i.palette.grey.outlined.border}`,sx:{width:i.drawer.leftMenu,position:"absolute",top:4,left:52,p:1.5,zIndex:100,mt:"0px !important",backgroundColor:i.palette.common.white,overflow:"auto",...qE},children:[f.jsxs(O.Stack,{direction:"row",sx:{width:"100%",...di,marginBottom:"1.25rem"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:i.palette.text.primary},children:"Workflow configurations"}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer",...bi(i)},onClick:()=>{r("")}})]}),f.jsx(O.Stack,{height:"calc(100% - 50px)",gap:2,children:f.jsx("form",{noValidate:!0,style:{height:"100%"},autoComplete:"off",onSubmit:s(l),children:f.jsxs(O.Stack,{justifyContent:"space-between",height:"100%",children:[f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(P8,{required:!0,type:"configurations",name:"maximum_attempts",label:"Maximum Number of Attempts",viewOnly:o,validationRules:{min:{value:1,message:"Value must be at least 1"},max:{value:10,message:"Value cannot exceed 10"},required:{value:!0,message:"Maximum Number of Attempts is required"}},control:a})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"backoff_coefficient",control:a,rules:{required:{value:!0,message:"Retry Backoff Rate is required"}},render:({field:u})=>f.jsx(Hz,{required:!0,title:"Retry Backoff Rate",name:u.name,value:Number(u.value)||"",onChange:c=>{u.onChange(Number(c.target.value))},viewOnly:o,helperText:br("configurations","backoff_coefficient"),children:s4.map(c=>f.jsx(O.MenuItem,{value:Number(c.value),children:c.title},c.value))})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(P8,{required:!0,type:"configurations",name:"initial_interval",label:"Wait Time Before First Retry (seconds)",viewOnly:o,multiplyValue:!0,validationRules:{min:{value:1,message:"Value must be at least 1"},step:{value:1,message:"Value must be in increments of 1"},required:{value:!0,message:"Wait Time Before First Retry is required"}},control:a})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(P8,{required:!0,multiplyValue:!0,type:"configurations",name:"maximum_interval",label:"Maximum Wait Between Retries (seconds)",viewOnly:o,validationRules:{min:{value:100,message:"Value must be at least 100"},step:{value:10,message:"Value must be in increments of 10"},required:{value:!0,message:"Maximum Wait Between Retries is required"}},control:a})})]}),f.jsx(O.Button,{sx:{height:40,width:"100%"},type:"submit",variant:"contained",fullWidth:!0,disabled:o,children:"Save Configuration"})]})})})]})},Qat=e=>{const{navigate:t,VORTEX_MAIN_URL:n,ENTITY_ID:r,setSelectedMenu:i,currentSubscription:o}=e,{versions:s,workflow:a}=ht.useSelector(G=>G.workflows),[l,u]=C.useState(!1),[c,d]=C.useState(!1),[p,h]=C.useState({data:[],pagination:{current_page:1,total_count:0,per_page:10}}),A=Oo(),g=Tr("workflow"),m=ht.useDispatch(),E=O.useTheme(),v=new URLSearchParams(window.location.search).get("source")?.toLowerCase(),[T,_]=C.useState(null),x={page:1,per_page:999},b=[Pn.PUBLISHED,Pn.SCHEDULED].includes(A)?a?.id||a?.parent_id||"":a?.parent_id||"";C.useEffect(()=>{b&&m(Of(x,b,n,r))},[b]),C.useEffect(()=>{s?.data?.data?.length>0?h(s.data):h({data:[],pagination:{current_page:1,total_count:0,per_page:10}})},[s?.data]);const[w,D]=C.useState(!1),[I,P]=C.useState(null),k=17672256e5,N=p?.data?.length&&p.data.length>=2?p.data[p.data.length-2]?.created_at:void 0,L=typeof N=="string"?Date.parse(N):typeof N=="number"?N:NaN,M=p?.data?.length!==void 0&&p.data.length>=2&&Number.isFinite(L)&&k>L,B=()=>{w&&P(null),D(!w)},Q=G=>[...G.version===p.data[0]?.version||M?[{label:G.active?"Deactivate":"Activate",leftIcon:Gp(G.active?"ic_flash_off":"ic_flash",E,!1,20),isDisabled:!G.active&&(G.status===kr.DRAFT||G.status===Pn.DRAFT)||!(o?.status==="ACTIVE"||o?.status==="PAST_DUE")||o?.metricData?.execution?.remaining<=0,onClick:W=>{W.stopPropagation(),W.preventDefault(),B(),P(G)}}]:[],...G.version!==p.data[0].version||p.pagination.current_page!==1?[{label:"Delete",color:E.palette.error.main,leftIcon:Gp("ic_delete",E,!1,20,E.palette.error.main),onClick:W=>{W.stopPropagation(),W.preventDefault(),u(!0)}}]:[]],V=()=>{const{meta:{draft_id:G}}=a;t?[Pn.PUBLISHED,Pn.SCHEDULED].includes(A)?t(`/accounts/${r}/workflow/workflow-builder`):A!==Pn.DRAFT&&t(`/accounts/${r}/workflow-builder/draft/${G}`):window.history.back()},q=async G=>{const W=Yt(n,`/v1.0/${r}/`,`workflows/${G}`);d(!0),await Xt.delete(W).then(()=>{g&&(d(!1),m({type:zn,payload:{open:!0,title:"Version Deleted Successfully",type:"success"}}),m(Of(x,b,n,r)),V())}).catch(R=>{cn(R,m)})},F=async G=>{const W={active:!G.active,version:G.version,status:G.status,parent_id:G.parent_id},R=Yt(n,`/v1.0/${r}/`,`workflows/${G.id}`);await Xt.patch(R,{data:W}).then(()=>{g&&m(Of(x,b,n,r))}).catch(j=>{cn(j,m)})};return f.jsxs(O.Box,{height:"calc(100% - 8px)",borderRadius:2.5,border:`1px solid ${E.palette.grey.outlined.border}`,sx:{width:E.drawer.leftMenu,position:"absolute",top:4,left:52,zIndex:100,p:2,mt:"0px !important",transform:"translateX(-100%)",backgroundColor:E.palette.common.white,overflowY:p?.data?.length>0?"auto":"hidden",overflowX:"hidden",...qE},children:[f.jsx(vo,{variant:"medium",open:w,handleClose:B,title:I?.active?"Deactivate Workflow":"Activate Workflow",content:f.jsx(O.Typography,{variant:"mdNormal",children:I?.active?"Are you sure you want to deactivate this workflow version? This action cannot be undone.":"Are you sure you want to activate this workflow version? This action cannot be undone."}),footer:f.jsx(O.Stack,{flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:f.jsxs(O.Box,{children:[f.jsx(O.Button,{color:"neutral",onClick:B,variant:"outlined",children:"Cancel"}),f.jsx(O.Button,{color:"error",sx:{ml:2},onClick:async()=>{B(),F(I)},variant:"contained",children:"Confirm"})]})})}),f.jsx(vo,{variant:"medium",open:l,handleClose:()=>u(!1),title:"Are you sure?",content:f.jsx(O.Stack,{gap:2,children:f.jsx(O.Typography,{variant:"mdNormal",color:E.palette.text.tertiary,children:"This will delete the version and related execution history which cannot be undone."})}),footer:f.jsxs(O.Stack,{gap:1,width:"100%",justifyContent:"flex-end",alignItems:"center",flexDirection:"row",children:[f.jsx(O.Button,{onClick:()=>u(!1),variant:"outlined",disabled:c,color:"neutral",children:"Cancel"}),f.jsx(O.Button,{color:"error",disabled:c,onClick:()=>{q(T||""),u(!1)},variant:"contained",children:c?f.jsx(O.CircularProgress,{size:16,sx:{color:"primary"}}):"Delete"})]})}),f.jsxs(O.Stack,{direction:"row",sx:{...di,width:"100%",marginBottom:"1.25rem"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:E.palette.text.primary},children:"Versions"}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer",...bi(E)},onClick:()=>{i("")}})]}),f.jsxs(O.Stack,{height:"calc(100% - 64px)",gap:1.5,children:[s.loading&&Array(8).fill(null).map((G,W)=>f.jsxs(O.Stack,{direction:"row",p:1.5,alignItems:"flex-start",justifyContent:"space-between",children:[f.jsxs(O.Stack,{direction:"row",gap:1,width:"100%",children:[f.jsx(O.Skeleton,{variant:"circular",sx:{flexShrink:0},width:20,height:20}),f.jsxs(O.Stack,{gap:.5,sx:{flex:1},children:[f.jsx(O.Skeleton,{width:120,variant:"text",sx:{fontSize:14}}),f.jsx(O.Skeleton,{width:160,variant:"text",sx:{fontSize:12}})]})]}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,children:[f.jsx(O.Skeleton,{variant:"circular",width:10,height:10}),f.jsx(O.Skeleton,{variant:"text",width:40,sx:{fontSize:12}})]})]},`version-skeleton-${W}`)),!s.loading&&p.data.length===0&&f.jsxs(O.Stack,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:[f.jsx(Ue,{src:"ic_no_data",width:75,height:75}),f.jsx(O.Typography,{variant:"lgSemiBold",color:"gray.100",children:"No Versions Found"})]}),!s.loading&&p.data.map((G,W)=>{const{active:R,version:j,updated_at:$,id:Y,status:z,modified_by:H}=G;let U=!1;return A===Pn.DRAFT?U=z===kr.DRAFT:j===a?.version&&(U=(p?.data||[]).filter(te=>te.version===j).some(te=>te.status===kr.PUBLISHED||te.status===Pn.PUBLISHED||te.status===kr.SCHEDULED||te.status===Pn.SCHEDULED)?z===kr.PUBLISHED||z===Pn.PUBLISHED||z===kr.SCHEDULED||z===Pn.SCHEDULED:!0),f.jsxs(O.Stack,{direction:"row",p:1.5,borderRadius:2,alignItems:"flex-start",justifyContent:"space-between",sx:{backgroundColor:U?E.palette.primary[5]:E.palette.common.white,border:`1px solid ${U?E.palette.primary[50]:"transparent"}`,"&:hover":{backgroundColor:U?E.palette.primary[5]:E.palette.neutral.soft.bg}},children:[f.jsxs(O.Stack,{direction:"row",gap:1,sx:{cursor:"pointer"},onClick:X=>{X.stopPropagation(),X.preventDefault();const J=`/accounts/${r}/workflow-builder`,te=z===Pn.DRAFT||z===Pn.PUBLISHED||z===Pn.SCHEDULED?z:Pn.DRAFT,ae=te===Pn.DRAFT?`${J}/${te}/${Y}`:`${J}/${te}/${g}/version/${Y}`,re=v?`${ae}?source=${v}`:ae;if(t)t(re);else{const ue=`${window.location.origin}${dd(re)}`;window.open(ue,"_blank","noopener")}},children:[f.jsx(O.Tooltip,{arrow:!0,title:H,children:f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",sx:{borderRadius:"50%",width:20,height:20,backgroundColor:U?E.palette.primary[10]:E.palette.grey[300],color:U?E.palette.primary[60]:E.palette.grey[70],fontSize:12},children:H?.slice(0,1).toUpperCase()})}),f.jsxs(O.Stack,{gap:.5,children:[f.jsx(O.Typography,{lineHeight:"normal",variant:"smMedium",color:E.palette.text.primary,children:z===kr.DRAFT?"Draft":`Version ${j}`}),f.jsx(O.Typography,{variant:"xsNormal",color:E.palette.neutral.solid.bg,children:Sn($).format("DD MMM YYYY [at] h:mm:ss A")})]})]}),z!==kr.DRAFT&&z!==Pn.DRAFT&&f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,children:[f.jsx(O.Box,{sx:{width:10,height:10,borderRadius:"50%",backgroundColor:R?E.palette.success[40]:E.palette.error.main}}),f.jsx(O.Typography,{variant:"xsMedium",color:E.palette.text.primary,children:R?"Active":"Inactive"}),f.jsx(Rre,{size:"medium",iconContainerStyles:{m:0,width:"fit-content"},sx:{top:0,left:16},menuItems:Q(G),menuItemStyles:{"&:hover":{"& svg path":{fill:`${E.palette.text.primary}`}}},onIconClick:()=>_(Y)})]})]},`version-row-${G.id||W}`)})]})]})},zat=vn("MuiBox",["root"]),Xat=mN(),Sx=R9e({themeId:yg,defaultTheme:Xat,defaultClassName:zat.root,generateClassName:RY.generate});process.env.NODE_ENV!=="production"&&(Sx.propTypes={children:S.node,component:S.elementType,sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object])});const Yat=({onUpgradeToPro:e})=>{const t=O.useTheme();return f.jsxs(O.Stack,{gap:1,children:[f.jsx(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,children:f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,children:[f.jsx(O.Box,{sx:{width:24,height:24,borderRadius:1.5,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n=>za(n.palette.common.white,.1)},children:f.jsx(Ue,{src:"ic_crown",width:14,height:14,sx:{"& svg":{color:"white"}}})}),f.jsx(O.Typography,{variant:"smSemiBold",color:t.palette.common.white,children:"Pro Integration"})]})}),f.jsx(O.Typography,{variant:"xsNormal",sx:{opacity:.9},color:t.palette.common.white,children:"Upgrade to Pro to use this integration in your workflow."}),f.jsx(O.Button,{variant:"contained",size:"small",onClick:n=>{n.stopPropagation(),e?.()},sx:{mt:.5,height:28,borderRadius:2,textTransform:"none",fontWeight:600,alignSelf:"flex-end",px:.8},children:"Upgrade"})]})},qat=({node:e,onDragStart:t,onClick:n,openingFromPlaceholder:r,droppingFromTrigger:i=!1,proIntegration:o=!1,onUpgradeToPro:s})=>{const a=O.useTheme(),l=c=>i?c?.description?.trigger:c?.description?.integration,u=f.jsx(Yat,{onUpgradeToPro:s});return f.jsx(O.Tooltip,{title:o?u:l(e),placement:"right",arrow:!0,disableInteractive:!o,componentsProps:{tooltip:{sx:{p:1.5,maxWidth:260,borderRadius:2,boxShadow:"0px 6px 18px rgba(0,0,0,0.22)",backgroundColor:c=>c.palette?.neutral?.plain}},arrow:{sx:{color:c=>c.palette?.neutral?.plain}}},children:f.jsx(O.ListItemButton,{component:"button",disableRipple:!0,disableGutters:!0,alignItems:"center",sx:{height:40,cursor:o?"not-allowed":e.active?"grab":"not-allowed",width:"100%",p:1,borderRadius:2,opacity:o?.5:1,"&:hover":{background:c=>c.palette.neutral.soft.bg,"& svg":{opacity:1}},"&:active":{background:c=>c.palette.primary[100],color:c=>c.palette.primary.main}},onClick:c=>{r&&e.active&&!o&&n?.(c,e,i)},onDragStart:c=>{e.active&&!o&&t?.(c,e)},draggable:e.active&&!o,onDragOver:c=>c.preventDefault(),children:f.jsxs(O.ListItem,{disablePadding:!0,disableGutters:!0,children:[f.jsx(O.ListItemAvatar,{sx:{display:"flex",justifyContent:"center",minWidth:0},children:e.icon?f.jsx("img",{style:{width:"20px",height:"20px",margin:0},alt:e.name,src:Yp(e.icon,"t.resize(h:24,w:24)")}):f.jsx(O.Avatar,{variant:"rounded",sx:{width:20,height:20},children:f.jsx(O.Typography,{color:a.palette.text.primary,variant:"mdNormal",children:e.name.slice(0,2).toUpperCase()})})}),f.jsx(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{ml:1},width:"100%",className:"list-item-content",children:f.jsxs(O.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f.jsx(O.Typography,{variant:"smNormal",children:jte(e.name)}),f.jsxs(O.Stack,{direction:"row",spacing:1,children:[e.status===jp.DRAFT&&f.jsx(O.Stack,{direction:"row",alignItems:"center",sx:{padding:"2px 8px",borderRadius:6,background:c=>c.palette.grey[200]},children:f.jsx(O.Typography,{variant:"xsNormal",sx:{textTransform:"capitalize"},children:e.status})}),e.pro&&f.jsx(Qd,{})]})]})}),f.jsx(Ue,{sx:{"& svg":{opacity:0}},src:"ic_drag",width:20,height:20})]})})},e.name)},Kat=O.styled(O.Box)(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",padding:"4px 8px",gap:4,height:28,borderRadius:4,cursor:"pointer",border:`1px solid ${e.palette.grey[300]}`,backgroundColor:e.palette.common.white,"&.active":{backgroundColor:e.palette.primary[5],borderColor:e.palette.primary.main,"& .MuiTypography-root":{color:e.palette.primary.main,fontWeight:600},":hover":{backgroundColor:e.palette.primary[5]},"& .icon-wrapper":{"& path":{fill:e.palette.primary.main}}},"&:hover":{backgroundColor:e.palette.grey[50]}})),Zat=O.styled(O.Box)({display:"flex",alignItems:"center",width:16,height:16}),Jat=({tabs:e,onTabChange:t,activeIndex:n})=>{const r=O.useTheme();return f.jsx(O.Stack,{direction:"row",alignItems:"flex-start",spacing:1,sx:{width:"100%",height:28},children:e.map((i,o)=>f.jsxs(Kat,{className:n===o?"active":"",onClick:()=>t(o),children:[f.jsx(Zat,{className:"icon-wrapper",children:f.jsx(Ue,{src:i.icon,sx:{path:{fill:n===o?r.palette.primary.main:r.palette.neutral.solid.bg}}})}),f.jsx(O.Typography,{variant:"smNormal",sx:{color:n===o?r.palette.primary.main:r.palette.neutral.solid.bg,lineHeight:"20px",textAlign:"center"},children:i.label}),i.count!==void 0&&i.count>0&&f.jsx(O.Box,{sx:{...Bi,padding:"2px 6px",backgroundColor:r.palette.grey[100],borderRadius:"12px",minWidth:"20px",height:"20px"},children:f.jsx(O.Typography,{variant:"caption",sx:{color:r.palette.grey[600]},children:i.count})})]},`tab-${i.label}-${o}`))})},elt=e=>{const{openingFromPlaceholder:t,setEdges:n,activityType:r,parentNodeId:i,currentNodeId:o,placeholder:s,droppingFromTrigger:a=!1,activitiesToHide:l=[],VORTEX_SYNC_DOMAIN:u,setSelectedMenu:c,pro_integration:d,openUpgradeModal:p}=e,h=O.useTheme(),A=ht.useDispatch(),g=Dt.useReactFlow(),[m,E]=C.useState({}),{setNodes:y}=Dt.useReactFlow(),[v,T]=C.useState(""),[_,x]=C.useState(!0),b=Tr()||"",w=[{icon:"ic_all",label:"All"},{icon:"ic_apps",label:"Integrations"},{icon:"ic_tools",label:"Built in tools"}],[D,I]=C.useState(0),P=Z=>{I(Z)},k=C.useRef(),N=C.useRef(null),{analytics:L,ENTITY_ID:M="",WORKFLOW_URLS:B={}}=wi(),{captureEvent:Q,WORKFLOW_EVENTS:V}=L||{},{getNodes:q,getEdges:F}=Dt.useReactFlow(),G=Dt.useUpdateNodeInternals(),W=q(),R=F(),{activities:j,triggers:$,activity_names:Y}=ht.useSelector(Z=>Z.activities),{selectedPlaceholderId:z,canvasWorkflow:H}=ht.useSelector(Z=>Z.canvas),[U,X]=C.useState([]),J=Z=>{const K=Z.filter(le=>le.active?D===0?!0:D===1?ud.includes(le.type):!ud.includes(le.type):!1);if(r==="triggers"){const le={Triggers:{activities:K}};x(!1),E(K.length?le:[]);return}const ne=K.reduce((le,pe)=>{const Ae=pe?.integration_group?.name||"Triggers";return le[Ae]=le[Ae]||{activities:[],description:pe.integration_group?.description},le[Ae].activities.push(pe),le},Object.create(null));x(!1),E(ne)},te=(Z,K)=>{if(!K)return!0;const ne=Z.name.toLowerCase()||"";if(ne.toLowerCase().includes(K)||Ds(ne).includes(K)||(Z.integration_group?.name||"").toLowerCase().includes(K))return!0;const fe=ne.replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(/[\s\-_]+/);return!!(fe.some(Se=>Se.includes(K))||fe.some(Se=>Se.startsWith(K)))},ae=Z=>{const K=Z.toLowerCase().trim();return K?U.filter(ne=>te(ne,K)):U},re=Z=>{T(Z),setTimeout(()=>{if(Z){const K=ae(Z);J(K),ue()}else Z===""&&(J(U),ue())},500)},ue=()=>{const Z=k.current;Z&&(Z.scrollTop=0)},Oe=()=>{typeof p=="function"&&p()},Te=Z=>!!Z.pro&&!d,se=(Z,K)=>{Te(K)||(Z.dataTransfer.setData("application/reactflow",JSON.stringify({...K,openingFromPlaceholder:t,parentNodeId:i,currentNodeId:o,isTrigger:!K?.integration_group?.name})),Z.dataTransfer.effectAllowed="move")},ie=(Z,K,ne=!1)=>{if(Te(K))return;const le=z&&typeof z=="object"&&z.edgeId&&z.sourceNodeId&&z.targetNodeId;z&&A({type:Up,payload:null});const pe=W.find(ye=>ye.id===o),Ae=pe?.type===xt.PLACEHOLDER,fe=le?wa(K?.name||"node",W.filter(ye=>ye.type!==xt.PLACEHOLDER)):ne||Ae?wa(K?.name||(ne?"trigger":"node"),ne?W.filter(ye=>ye.type!==xt.PLACEHOLDER):W||[]):o||wa(K?.name||(ne?"trigger":"node"),W||[]);let Se={x:pe?.position?.x,y:(pe?.position?.y||0)-16};if(le){const ye=W.find(Qe=>Qe.id===z.sourceNodeId),$e=W.find(Qe=>Qe.id===z.targetNodeId);ye&&$e&&(Se={x:(ye.position.x+$e.position.x)/2,y:(ye.position.y+$e.position.y)/2})}const ge=KO(Z,K,g,fe,W,b,u,le?[z.sourceNodeId]:i?[i]:[],Se);ne&&Ca(y,K,{setup_and_configure:"default",node:"",test:"default"}),LC(A,ge,ne,le?z.sourceNodeId:i,pe,le?fe:o,Y,n,y,W,R,Q,V,M||"",b||void 0,B?.VORTEX_MAIN_URL,le?z:null,H?.meta?.isHorizontal??!0?"LR":"TB",G)};return C.useEffect(()=>{const Z=q(),K=Z.some(Ae=>Ae?.type===xt.TRIGGER),le=Z.find(Ae=>Ae?.type===xt.TRIGGER)?.data?.name;let pe=[];if(r==="triggers"){const Ae=$?.data?.data||[];pe=le?Ae.filter(fe=>fe.name?.toLowerCase()!==le?.toLowerCase()):Ae}else if(!t&&!K){const Ae=j?.data?.data||[];pe=[...$?.data?.data||[],...Ae]}else pe=j?.data?.data||[];if(X(pe),pe.length>0){x(!1);const Ae=(v||"").toLowerCase().trim(),fe=Ae?pe.filter(Se=>te(Se,Ae)):pe;J(fe),ue()}else x(!1),E([])},[j,$,t,r,D]),f.jsx(O.Stack,{height:"calc(100% - 8px)",sx:{position:"absolute",top:4,left:52,zIndex:100,mt:"0px !important",transform:"translateX(-100%)",...qE},children:f.jsx(O.Stack,{height:"100%",py:0,children:f.jsxs(O.Stack,{p:1.5,height:"100%",gap:2,borderRadius:2,sx:{width:h.drawer.leftMenu,backgroundColor:h.palette.common.white,border:`1px solid ${h.palette.neutral.outlined.border}`},children:[f.jsxs(O.Stack,{direction:"row",sx:{...di,width:"100%"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:h.palette.text.primary},children:"Apps"}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer"},onClick:()=>{c(""),A({type:Ks,payload:!1}),A({type:os,payload:{type:"",active:!1,nodeId:null}}),z&&A({type:Up,payload:null}),A({type:os,payload:{type:"",active:!1,nodeId:null,edgeId:null}})}})]}),f.jsx(Sx,{sx:{width:"100%","& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${h.palette.neutral.outlined.border}`},position:"sticky",top:0,zIndex:1,display:"block",justifyContent:"center"},children:f.jsx(O.OutlinedInput,{autoFocus:!0,inputRef:N,sx:{width:"100%",p:0,"&:hover":{borderColor:h.palette.neutral.main},"&:focus-visible":{borderColor:h.palette.grey[70]}},value:v,onChange:Z=>re(Z.target.value),placeholder:s||"Search for apps",startAdornment:f.jsx(O.InputAdornment,{position:"start",sx:{m:0,pl:1,pr:.5},children:f.jsx(Ue,{width:24,height:24,src:"ic_search",sx:{path:{fill:h.palette.neutral.solid.bg}}})}),endAdornment:v&&f.jsx(O.IconButton,{sx:{px:1},"aria-label":"clear field",onClick:()=>re(""),children:f.jsx(Ue,{src:"ic_close"})})})}),f.jsxs(O.Stack,{gap:1.5,overflow:"auto",height:"100%",children:[f.jsx(Jat,{tabs:w,activeIndex:D,onTabChange:P}),f.jsx(O.Stack,{gap:1,sx:{height:"100%",overflowY:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},children:_?f.jsx(O.Stack,{height:"100%",alignItems:"center",justifyContent:"center",p:3,children:f.jsx(hi,{size:30})}):Object.keys(m).length===0?f.jsxs(O.Stack,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:[f.jsx(Ue,{src:"ic_no_data",width:75,height:75}),f.jsx(O.Typography,{variant:"lgSemiBold",color:"gray.100",children:"No Apps Found"})]}):Object.keys(m).map(Z=>f.jsxs(Sx,{children:[f.jsx(Sx,{px:1,py:.75,sx:{color:h.palette.text.primary},children:f.jsxs(O.Typography,{color:h.palette.text.primary,variant:"mdSemiBold",children:[Z," (",m[Z].activities.filter(K=>!l.includes(K.name)).length,")"]})}),m[Z].activities.filter(K=>!l.includes(K.name)).map((K,ne)=>f.jsx(qat,{node:K,onDragStart:se,onClick:ie,openingFromPlaceholder:t,droppingFromTrigger:a,proIntegration:Te(K),onUpgradeToPro:Oe},K.name+ne))]},Z))})]})]})})})},tlt=C.memo(({menu:e,index:t,totalItems:n,isSelected:r,onSelect:i,disabled:o})=>{const s=O.useTheme();return f.jsxs(C.Fragment,{children:[f.jsx(O.Tooltip,{title:e.label,placement:"right",arrow:!0,children:f.jsx("span",{children:f.jsx(O.IconButton,{disabled:o,onClick:()=>i(e.value),"data-testid":"sidebar-menu-item",sx:{...Bi,p:1.2,width:32,height:32,bgcolor:r?s.palette.primary[100]:"transparent","&:hover":{bgcolor:r?s.palette.primary[100]:s.palette.grey[300],borderRadius:"6px"},borderRadius:"6px",transition:"all 0.2s ease"},children:f.jsx(Ue,{src:e.icon,width:24,height:24,sx:{"& path":{fill:o?s.palette.grey[500]:r?s.palette.primary.main:s.palette.neutral.solid.bg}}})})})}),t<n-1&&f.jsx(O.Divider,{sx:{my:.5,width:20,borderRadius:"8px"}})]},e.value)}),nlt=({navigate:e,ENTITY_ID:t,WORKFLOW_URLS:n,currentSubscription:r,pro_integration:i,openUpgradeModal:o})=>{const s=O.useTheme(),a=ht.useDispatch(),{getNodes:l,getEdges:u,setNodes:c,setEdges:d}=Dt.useReactFlow(),p=u(),h=l(),[A,g]=C.useState(""),{canvasWorkflow:m,showSideBar:E,selectedPlaceholderId:y}=ht.useSelector(q=>q.canvas),{retry_config:v}=m,{VORTEX_MAIN_URL:T,VORTEX_SYNC_DOMAIN:_}=n,x=Oo(),b=Tr(x),w=Tr(Pn.VERSION),{activitiesPopover:D}=ht.useSelector(q=>q.canvas),P=new URLSearchParams(window.location.search).get("source")?.toLowerCase(),k=()=>Ot(m)?!1:x!==Pn.DRAFT,N=C.useMemo(()=>[{label:"Add activity",value:"Add activity",icon:"ic_add_activity",visible:!0,disabled:k()},{label:"Executions",value:"Executions",icon:"ic_executions",visible:!0},{label:"Versions",value:"Versions",icon:"ic_versions",visible:!0},{label:"Global Variables",value:"Global Variables",icon:"ic_global_variables",visible:!0},{label:"Workflow Configurations",value:"Workflow Configurations",icon:"ic_configuration",visible:!0}],[h]),L=C.useCallback(q=>{if(q!=="Add activity"&&a({type:Ks,payload:!1}),q==="Executions"){const G=`/accounts/${t}/workflow-builder/workflow/${w||b}/executions${P?`?source=${P}`:""}`;e?e(G,{replace:!0}):window.location.replace(dd(G))}else q==="Add activity"&&(y&&a({type:Up,payload:null}),a({type:Ks,payload:!E}),D.active&&a({type:os,payload:{type:"",active:!1,nodeId:null,edgeId:null}}));g(F=>F===q?"":q)},[D,E]),M=C.useCallback(()=>g(""),[]),B=C.useCallback(q=>{a({type:ac,payload:{...m,retry_config:q}})},[m,a]);C.useEffect(()=>{D.active&&D.nodeId&&g("Add activity")},[D.active,D.nodeId]);const Q=C.useMemo(()=>N.filter(q=>q.visible),[N]),V=D?.edgeId?p.find(q=>q.id===D.edgeId):p.find(q=>q.target===D?.nodeId);return C.useEffect(()=>{g(E?"Add activity":"")},[E]),f.jsx(O.Box,{bgcolor:s.palette.background.paper,children:f.jsxs(O.Stack,{sx:{height:"100%",position:"relative",width:48},alignItems:"center",spacing:1,children:[Q.map((q,F)=>f.jsx(tlt,{menu:q,index:F,totalItems:Q.length,isSelected:A===q.value||q.value==="Add activity"&&E,onSelect:L,disabled:q?.disabled??!1},q.value)),A==="Add activity"&&f.jsx(elt,{placeholder:"Search for apps",activityType:D?.type,setCanvasNodes:D?.nodeId&&c,setEdges:D?.nodeId&&d,openingFromPlaceholder:!!D?.nodeId,parentNodeId:D?.sourceNodeId||D?.nodeId&&V?.source,currentNodeId:D?.nodeId,droppingFromTrigger:D?.type==="triggers",VORTEX_SYNC_DOMAIN:_,setSelectedMenu:g,pro_integration:i,openUpgradeModal:o}),A==="Versions"&&f.jsx(Qat,{currentSubscription:r,navigate:e,VORTEX_MAIN_URL:T,ENTITY_ID:t,setSelectedMenu:g}),A==="Global Variables"&&f.jsx(Gat,{onClose:M,setSelectedMenu:g}),A==="Workflow Configurations"&&f.jsx(Wat,{onClose:M,retryConfig:v,setRetryConfig:B,setSelectedMenu:g})]})})},rlt=C.memo(nlt),ilt=[],olt=[],slt=e=>{const{WORKFLOW_URLS:t,ENTITY_ID:n,navigate:r,openIntegrationDrawer:i,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,analytics:a,userData:l,ALERT_TOP_BAR:u,currentSubscription:c,pro_integration:d,allowedAccount:p,openUpgradeModal:h,openAddonModal:A}=e,[g,m]=Dt.useNodesState(ilt),[E,y,v]=Dt.useEdgesState(olt),T=O.useTheme(),_=C.useRef(!0),x=Dt.useNodesInitialized(),{VORTEX_MAIN_URL:b}=t,w=ht.useDispatch(),{canvasWorkflow:D,activityExecutionData:I={},nodesToFocus:P,showDebugLogs:k,autoSaving:N,viewOnly:L}=ht.useSelector(Ne=>Ne.canvas),{workflow:M,error:B,retry_config:Q}=ht.useSelector(Ne=>Ne.workflows),{activity_names:V}=ht.useSelector(Ne=>Ne.activities),q=D?.meta?.isHorizontal??!0,F=C.useCallback(Ne=>{m(Fe=>{if(!Array.isArray(Ne)||Ne.length===0)return Fe;const gt=new Map(Fe.map(it=>[it.id,it])),St=new Map;for(const it of Ne){if(it?.type!=="position"||!it?.id||!it?.position)continue;const ut=gt.get(it.id);if(!ut||ut?.type===xt.PLACEHOLDER&&!ut?.data?.isTriggerPlaceholder)continue;const yt=ut.position||{x:0,y:0},It=it.position,Ft=(It?.x??yt.x)-(yt?.x??0),Lt=(It?.y??yt.y)-(yt?.y??0);Ft===0&&Lt===0||St.set(it.id,{dx:Ft,dy:Lt})}let De=Dt.applyNodeChanges(Ne,Fe);return St.size===0||(De=De.map(it=>{if(it?.type!==xt.PLACEHOLDER)return it;const ut=it?.data?.sourceNodeId;if(!it?.data?.isActivityPlaceholder)return it;const It=ut&&St.get(ut)||(Array.isArray(it?.incomingPorts)?it.incomingPorts.map(Me=>St.get(Me)).find(Boolean):void 0);if(!It)return it;const Ft=it.position||{x:0,y:0},Lt=it.positionAbsolute;return{...it,position:{x:Ft.x+It.dx,y:Ft.y+It.dy},...Lt?{positionAbsolute:{x:Lt.x+It.dx,y:Lt.y+It.dy}}:null}})),De})},[m]),[G,W]=C.useState({...D,nodes:g,edges:E}),R=Tr(Pn.VERSION),j=Oo(),$=Tr(),[Y,z]=C.useState(!!$),[H,U]=C.useState(!1),[X,J]=C.useState(null),te=new URLSearchParams(window.location.search),ae=te.get("source")?.toLowerCase(),re=te.get("triggerType")?.toLowerCase(),[ue,Oe]=C.useState(null),[Te,se]=C.useState(!1),[ie,Z]=C.useState(!1),K=C.useRef(null),ne=g?.find(Ne=>Ne.type===xt.TRIGGER),le=()=>GO(M)===GO({...D,nodes:Il("nodes_update",g),edges:Il("edges_update",null,E)}),pe=Ne=>j===kr.PUBLISHED||j===kr.SCHEDULED?{...Ne,workflow_id:$,isHorizontal:q}:{...Ne,isHorizontal:q},Ae=C.useCallback(Ne=>Ne===jp.PUBLISHED&&ne?.data.type===Ke.SCHEDULE?kr.SCHEDULED:Ne,[D]),fe=C.useCallback(Ne=>{const Fe={...ae&&{source:ae},...re&&{triggerType:re}},gt=new URLSearchParams(Fe).toString(),St=gt?`?${gt}`:"",De=`/accounts/${n}/workflow-builder${Ne}${St}`;r&&r(De,{replace:!0}),(ae?.includes("pixelbin")||ae?.includes("catalogcloud")||ae?.includes("copilot")||ae?.includes("commerce_"))&&window.opener.postMessage({source:"boltic",payload:{event:"blt_wf_close",data:{workflow_id:$,organization_id:n}}},window.location.origin)},[ae,re,r,n,$]),Se=C.useCallback(()=>{const Ne=j===Pn.VERSION;w({type:d0,payload:Ne})},[j,w,d0]);C.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const ge=C.useCallback((Ne,Fe=!1)=>{try{if(U(!1),w({type:p0,payload:!1}),!Ne)throw new Error("Error saving workflow");const gt=Ne?.id;let St;Fe&&(St=`/${Ne?.status}/${gt}/version/${gt}`,_.current&&fe(St))}catch{}},[w,U,fe]),ye=C.useCallback((Ne,Fe,gt,St="")=>{const{retry_config:De,global_variables:it,meta:ut,name:yt,parent_id:It}=D;if(M?.status===Ne&&le()){w({type:zn,payload:{open:!0,title:"No changes detected",type:"info"}});return}const Ft={nodes:Il("nodes_update",g),edges:Il("edges_update",null,E),retry_config:De,global_variables:it||{},name:yt,meta:pe(ut),active:!0,version:gt,description:St,status:Ae(Ne),parent_id:It,...(ae||M?.source)&&{source:ae||M?.source}};if(U(!0),Fe==="edit"){Ft.parent_id=M.parent_id;const Lt=Ne==="published";w(Mb(Ft,M.id,b,n,a,Ne)).then(Me=>ge(Me,Lt))}},[w,D,M,b,n,le,Ae,r,g,E]),$e=()=>Ot(D)?!1:j!==Pn.DRAFT,Qe=()=>{w({type:f0,payload:null}),w({type:jO,payload:!k}),Oe(null),se(!0)},je=()=>{w(C4()),w({type:BO}),w({type:tb}),w({type:F5}),w({type:hb}),w({type:c0,payload:!0}),w({type:mb,payload:[]}),w({type:gb,payload:[]}),w({type:f0,payload:null}),w({type:vi.RESET_ACTIVITY_NAMES,payload:null})},et=()=>{if(!$e()&&G&&M&&P?.nodes?.length===0)if(le())w({type:p0,payload:!1});else{const{nodes:Ne,edges:Fe,retry_config:gt,global_variables:St,meta:De,name:it,description:ut,active:yt,version:It,parent_id:Ft}=G;if(!Fe?.some(Ye=>{if(Ye.type===Vn.PLACEHOLDER)return!1;const lt=Ne?.find(Ze=>Ze.id===Ye.target);return lt&<.type!==xt.PLACEHOLDER})){const lt=Ne?.find(Et=>Et.type===xt.TRIGGER)?.data?.type;if(!(lt===Ke.HTTP||lt===Ke.WEBHOOK)){w({type:p0,payload:!1});return}}const Me={nodes:Il("nodes_update",Ne),edges:Il("edges_update",null,Fe),retry_config:gt,global_variables:St||{},name:it,description:ut,meta:pe(De),active:yt,version:It,status:kr.DRAFT,parent_id:Ft,...ae&&{source:ae}};w({type:p0,payload:!0}),Me.parent_id=M.parent_id,w(Mb(Me,M.id,b,n,a)).then(ge)}},rt=ba(Ne=>{if(x){const Fe=JSON.stringify(Ne);localStorage.setItem(`viewport-${$}`,Fe)}},500),nt=async Ne=>{const Fe=Yt(b,`/v1.0/${n}/`,`workflows/${Ne}/suggestions`);return await Xt.get(Fe)};Dt.useOnViewportChange({onChange:rt}),C.useEffect(()=>(Se(),()=>{je()}),[j]),C.useEffect(()=>{g.length>0&&w({type:os,payload:{type:"",active:!1,nodeId:null}})},[Y]);const Ie=Ne=>{const Fe={};Object.keys(Ne.data).forEach(gt=>{const St=Object.values(Ne.data[gt]||Ne.data[gt])[0];Fe[gt]={data:St||{}}}),Ot(Fe)||w({type:sd,payload:{type:"replace",data:{...I,...Fe}}})};C.useEffect(()=>{const Ne=async()=>{if($)try{const St=(await nt($)).data;Ie(St)}catch(gt){cn(gt,w)}},Fe=window.location.pathname.includes("/executions");if(Ne(),$&&rb($)&&j){const gt=Tr(Pn.VERSION);K.current!==null&&K.current!==gt&&(w(C4()),w({type:BO}),w({type:hb}),w({type:mb,payload:[]}),w({type:gb,payload:[]}),m([]),y([])),K.current=gt,!Ot(gt)&&j!==Pn.DRAFT&&w({type:d0,payload:!0});const De=Ot(gt)?Tr(j):gt;w(b4(De,b,n))}else if(!Fe){w({type:zn,payload:{open:!0,title:"Workflow not found, Please check the workflow ID and try again.",type:"error"}});const gt=setTimeout(()=>{_.current&&r&&r(`/accounts/${n}/workflow/workflow-builder`,{replace:!0,state:{updatingFromCanvas:!0}})},2e3);return()=>clearTimeout(gt)}},[w,$,R,j,b,n]),C.useEffect(()=>{if(!Ot(M)){const Fe=Tr(Pn.VERSION)||Tr(j);if(Fe&&M?.id!==Fe)return;N||z(!0);const{name:gt,active:St,version:De,parent_id:it,status:ut,nodes:yt,edges:It,source:Ft,retry_config:Lt,global_variables:Me,meta:Ye,description:lt,workflow_id:Ze}=M,Et=It?.map(Re=>Re.type===Vn.SMOOTH?{...Re,markerEnd:{...Re.markerEnd&&typeof Re.markerEnd=="object"?Re.markerEnd:{},type:Dt.MarkerType.ArrowClosed,color:T.palette.neutral.main}}:Re.type===Vn.PLACEHOLDER?{...Re,data:{...Re.data||{},isStraight:!1},markerEnd:{...Re.markerEnd&&typeof Re.markerEnd=="object"?Re.markerEnd:{},type:Dt.MarkerType.ArrowClosed}}:Re.markerEnd?{...Re,markerEnd:{...Re.markerEnd&&typeof Re.markerEnd=="object"?Re.markerEnd:{},type:Dt.MarkerType.ArrowClosed}}:Re)||[];w({type:ac,payload:{...D,name:gt,meta:Ye,description:lt,active:St,version:De,status:ut,source:Ft,parent_id:it,global_variables:Me,retry_config:Lt,workflow_id:Ze}}),w({type:c0,payload:Ye?.isHorizontal??!0});const vt=yt?.map(Re=>Re.data.name)||[],kt=new Set([...V,...vt]);if(w({type:vi.SET_ACTIVITY_NAMES,payload:[...kt]}),!N){const Re=g.length>0&&yt.length>0,tt=g.filter(Pe=>Pe.type===xt.PLACEHOLDER&&Pe.data?.isActivityPlaceholder),Je=E.filter(Pe=>Pe.type===Vn.PLACEHOLDER).map(Pe=>({...Pe,data:{...Pe.data||{},isStraight:!1},markerEnd:{...Pe.markerEnd&&typeof Pe.markerEnd=="object"?Pe.markerEnd:{},type:Dt.MarkerType.ArrowClosed}}));if(Re){const Pe=new Map;g.forEach(At=>{Pe.set(At.id,At.position)});const st=yt.map(At=>{const Kt=Pe.get(At.id);return Kt?{...At,position:Kt}:At});m(No([...st,...tt])),y(No([...Et,...Je]))}else g.length===0&&Ve(),m(No(yt)),y(No(Et)),g.length===0&&yt.length>0&&Ee()}z(!1)}},[M]),C.useEffect(()=>{g.length>0&&m(Ne=>Ne.map(Fe=>({...Fe,data:{...Fe.data},pro_integration:d})))},[d]),C.useEffect(()=>{B&&z(!1)},[B]),C.useEffect(()=>{if(!Ot(Q)&&Ot(D.retry_config)){const Ne={};Q.forEach(Fe=>{Ne[Fe.key]=Fe.value}),w({type:ac,payload:{...D,retry_config:Ne}})}},[Q]),C.useEffect(()=>{const Ne=M?.nodes?.find(Fe=>Fe.type===xt.TRIGGER);if($&&Ne?.data?.type===Ke.SCHEDULE&&[kr.SCHEDULED,kr.PUBLISHED].includes(j)){const Fe=Ot(R)?$:R;w(_ue(Fe,b,n))}},[M]);const He=C.useMemo(()=>{const Ne=g.filter(De=>!(De.type===xt.PLACEHOLDER&&De.data?.isActivityPlaceholder)),Fe=E.filter(De=>De.type!==Vn.PLACEHOLDER),gt=Ne.map(De=>{let it=1;return De.data?.type===Ke.SWITCH?it=(De.data?.properties?.cases?.length||0)+1:De.data?.type===Ke.IF||De.data?.type===Ke.API||De.data?.type===Ke.GRAPHQL?it=De.data?.properties?.branches?.length||0:De.data?.type===Ke.PARALLEL?it=De.data?.properties?.no_of_parallel_threads||2:De.data?.type===Ke.RESPONSE?it=0:De.data?.properties?.continue_on_failure===!0&&(it=2),`${De.id}:${De.type}:${it}`}).sort().join("|"),St=Fe.map(De=>`${De.source}-${De.sourceHandle||"default"}->${De.target}`).sort().join("|");return`${gt}::${St}::${q}`},[g,E,q]),Ve=C.useCallback(()=>{Z(!0)},[Z]),Ee=C.useCallback(()=>{if(typeof window>"u"){Z(!1);return}requestAnimationFrame(()=>{requestAnimationFrame(()=>{Z(!1)})})},[Z]),_e=C.useRef(!1),we=C.useRef("");C.useEffect(()=>{if(Y||!x||L||_e.current)return;const Ne=g.filter(Ft=>!(Ft.type===xt.PLACEHOLDER&&Ft.data?.isActivityPlaceholder)&&!(Ft.type===xt.PLACEHOLDER&&Ft.data?.isTriggerPlaceholder)),Fe=E.filter(Ft=>Ft.type!==Vn.PLACEHOLDER);if(!Ne.some(Ft=>Ft.type!==xt.TRIGGER)){const Ft=g.some(Me=>Me.type===xt.PLACEHOLDER&&Me.data?.isActivityPlaceholder),Lt=E.some(Me=>Me.type===Vn.PLACEHOLDER);if(Ft||Lt){const Me=g.filter(lt=>!(lt.type===xt.PLACEHOLDER&<.data?.isActivityPlaceholder)),Ye=E.filter(lt=>lt.type!==Vn.PLACEHOLDER);m(Me),y(Ye)}return}const St=D?.meta?.isHorizontal??!0,{placeholderNodes:De,placeholderEdges:it}=vb(Ne,Fe,St),ut=Ft=>`${Ft.data?.sourceNodeId}:${Ft.data?.sourceHandle||"outHandle"}`,yt=Ft=>`${Ft.source}:${Ft.sourceHandle||"outHandle"}`,It=[...De.map(ut).sort(),...it.map(yt).sort()].join("|");It!==we.current&&(we.current=It,_e.current=!0,m([...Ne,...De]),y([...Fe,...it]),requestAnimationFrame(()=>{_e.current=!1}))},[He,Y,x,L,D?.meta?.isHorizontal]),C.useEffect(()=>{if(x&&ie&&!Y&&!L&&g.length>0){const Fe=setTimeout(()=>{Ee()},100);return()=>clearTimeout(Fe)}},[x,ie,Y,L,g.length,Ee]);const ee=C.useCallback(ba(()=>{G&&M&&P?.nodes?.length===0&&et()},M?.meta?.isHorizontal===D?.meta?.isHorizontal&&M?.active===D?.active&&M?.name===D?.name?1e3:0),[G,M,P]);C.useEffect(()=>{j===Pn.DRAFT&&x&&G&&!Ot(G)&&ee()},[G]);const de=C.useCallback(ba((Ne,Fe,gt)=>{W({...gt,nodes:Ne,edges:Fe}),w({type:d0,payload:j!==Pn.DRAFT})},300),[w]);C.useEffect(()=>(de(g,E,D),()=>{}),[g,E,JSON.stringify(D),de]);const be=!M&&!!B&&B.response?.status===403,Ge=window.location.pathname.includes("/executions");return f.jsx(y_,{WORKFLOW_URLS:t,ENTITY_ID:n,analytics:a,userData:l,openAddonModal:A,currentSubscription:c,allowedAccount:p,children:Y?f.jsx(hi,{minHeight:"100vh"}):be?f.jsx(Sue,{navigate:r}):Ge&&(!$||!rb($)||!j)?f.jsx(hi,{minHeight:"100vh"}):f.jsxs(O.Stack,{height:"100vh",sx:{"--focus-border":"transparent"},position:"relative",children:[f.jsx(O.Stack,{height:48,width:"100%",zIndex:T.zIndex.drawer,sx:{backgroundColor:T.palette.background.default},children:f.jsx(Vat,{currentSubscription:c,ALERT_TOP_BAR:u,source:ae,saveWorkflow:ye,WORKFLOW_URLS:t,ENTITY_ID:n,navigate:r,savingWorkflow:H,selectedNode:X,nodes:g,edges:E})}),f.jsx(O.Stack,{sx:{height:"calc(100% - 88px)"},direction:"row",children:f.jsxs(O.Stack,{direction:"row",sx:{height:"100%"},children:[f.jsx(rlt,{currentSubscription:c,navigate:r,ENTITY_ID:e.ENTITY_ID,WORKFLOW_URLS:t,pro_integration:d,openUpgradeModal:h}),f.jsx(hot,{currentSubscription:c,ALERT_TOP_BAR:u,openIntegrationDrawer:i,navigate:r,ENTITY_ID:e.ENTITY_ID,WORKFLOW_URLS:t,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,selectedNode:X,setSelectedNode:J,nodes:g,edges:E,setNodes:m,setEdges:y,onNodesChange:F,onEdgesChange:v,source:ae,showCanvasOverlay:ie,setShowCanvasOverlay:Z,pro_integration:d})]})}),f.jsx(O.Stack,{direction:"row",sx:{visibility:k?"visible":"hidden",position:"absolute",bottom:0,width:"100%"},children:f.jsx(Rst,{execFlag:Te,setExecFlag:se,selectedBlock:ue,setSelectedBlock:Oe,toggleDrawer:Qe,VORTEX_MAIN_URL:b,ENTITY_ID:n,navigate:r})}),f.jsx(O.Stack,{height:40,width:"100%",sx:{backgroundColor:T.palette.background.default,display:k?"none":"flex"},children:f.jsx(mot,{toggleDrawer:Qe})})]})})};function alt(e){return{MuiTypography:{styleOverrides:{root:{fontFamily:["Inter"]}}},MuiCssBaseline:{styleOverrides:{body:{position:"relative","&:before":{content:'""',width:8,height:8,position:"absolute",top:48,left:48,zIndex:10,backgroundImage:"url(https://cdn.pixelbin.io/v2/fyndcloud/original/Temporal/Uploads/bolt/undefined/images/ic_corner_left_1745557061067.svg)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"top"},scrollbarWidth:"thin",scrollbarColor:e?.customization?.isDarkMode?`${e.colors?.grey500} ${e.colors?.darkPrimaryMain}`:`${e.colors.grey[200]} transparent`,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{width:12,height:12,backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimaryMain:e.colors.grey[200]},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e?.customization?.isDarkMode?e.colors?.grey500:e.colors.grey[200],minHeight:24,border:`3px solid ${e?.customization?.isDarkMode?e.colors?.darkPrimaryMain:e.colors.grey[200]}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimary200:e.colors.grey[100]},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimary200:e.colors.grey[100]},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimary200:e.colors.grey[100]},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimaryMain:e.colors.grey[200]},background:e.colors.white.smoke,height:"100%",width:"100%"},".reactflow-parent-wrapper":{display:"flex",flexGrow:1,width:"100%",height:"100%"},".reactflow-parent-wrapper .reactflow-wrapper":{flexGrow:1,height:"100%"},".react-flow__handle":{position:"absolute",minWidth:"8px",minHeight:"8px",zIndex:2,background:e.colors.common.white,"& .warning":{display:"none"},"&:hover":{background:"transparent",border:"none"}},".react-flow__handle-connecting:not(.valid)":{background:e.colors.error.main,"& .warning":{display:"block"}},".connectingto:not(.valid), .connectingfrom:not(.valid)":{background:e.colors.error.main,"& .warning":{display:"block"}},".Mui-required .MuiSvgIcon-root":{marginLeft:"10px"},".ripple-form-container":{alignItems:"start"},".ripple-footer-action .submit-button":{marginLeft:0},"footer-divider":{}}},MuiButton:{styleOverrides:{root:{fontWeight:600,borderRadius:"6px",fontSize:14,boxShadow:"none",lineHeight:1.5},contained:{border:"1px solid transparent"},outlined:{},text:{}}},MuiButtonBase:{styleOverrides:{root:{"&.MuiButton-root":{textTransform:"none",padding:"6px 12px"},"&.MuiButton-outlined":{color:e.colors.text.secondary,border:`1px solid ${e.colors.neutral.outlined.border}`,"& path":{fill:e.colors.text.secondary},"&:hover":{backgroundColor:e.colors.neutral.soft.bg,border:`1px solid ${e.colors.grey.outlined.border}`}},"&.MuiButton-root.Mui-disabled":{backgroundColor:e.colors.neutral.soft.bg,color:e.colors.grey[40]}}}},MuiPickersDay:{styleOverrides:{root:{borderRadius:"8px","&.Mui-selected":{backgroundColor:e.colors.primary.main,color:e.colors.common.white},"&:focus.Mui-selected":{backgroundColor:e.colors.primary.main}}}},MuiMultiSectionDigitalClockSection:{styleOverrides:{root:{},item:{width:36,minWidth:36,margin:"auto",borderRadius:8,"&.Mui-selected":{backgroundColor:e.colors.primary.main,color:e.colors.common.white}}}},MuiPickersPopper:{styleOverrides:{paper:{margin:"10px 0px",borderRadius:8,border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`}}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{"&.MuiPaper-rounded.MuiPopover-paper":{margin:"10px 0px"},backgroundImage:"none","&.MuiAccordion-root":{backgroundColor:"transparent"},".MuiMenu-list":{paddingTop:"0px",paddingBottom:"0px"},"&.MuiPickersPopper-paper":{margin:"10px 0px",borderRadius:8,border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`}},rounded:{borderRadius:"16px"}}},MuiCardHeader:{styleOverrides:{root:{color:e.colors?.textDark,padding:"24px"},title:{fontSize:"1.125rem"}}},MuiCardContent:{styleOverrides:{root:{padding:"24px"}}},MuiCardActions:{styleOverrides:{root:{padding:"24px"}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:"6px",color:e.darkTextPrimary,paddingTop:"10px",paddingBottom:"10px","&.Mui-selected":{color:e.colors.primary,backgroundColor:e.colors.primary[200],"&:hover":{backgroundColor:e.menuSelectedBack},"& .MuiListItemIcon-root":{color:e.menuSelected}},"&:hover":{backgroundColor:e.menuSelectedBack,color:e.menuSelected,"& .MuiListItemIcon-root":{color:e.menuSelected}}}}},MuiListItemIcon:{styleOverrides:{root:{color:e.darkTextPrimary,minWidth:"36px"}}},MuiList:{styleOverrides:{root:{"& .MuiMenu-List":{p:1},"& .MuiCheckbox-root":{padding:0},"&.MuiMultiSectionDigitalClockSection-root:after":{height:"auto"},"& .MuiListSubheader-root":{paddingTop:12,paddingBottom:8,lineHeight:"inherit","& ~ .MuiMenuItem-root":{paddingLeft:24,fontSize:12}}}}},MuiDialogTitle:{styleOverrides:{root:{fontSize:"1.125rem",color:e.darkTextPrimary}}},MuiListItemText:{styleOverrides:{primary:{color:e.textDark},root:{margin:0}}},MuiInputBase:{styleOverrides:{root:{minHeight:"32px",height:"32px","&.MuiOutlinedInput-root.Mui-disabled":{backgroundColor:e.colors.neutral.soft.bg,color:e.colors.text.tertiary}},multiline:{height:"auto",minHeight:"32px"},input:{fontSize:14,fontWeight:"500",color:e.textDark,height:"32px",padding:"0 12px","&::placeholder":{color:e.colors.text.tertiary,fontSize:14,fontWeight:400},"&:disabled":{cursor:"not-allowed"}},disabled:{cursor:"not-allowed"}}},MuiFormControl:{styleOverrides:{root:{"& .MuiTextField-root":{width:"100%",borderRadius:"250px"},"& .MuiInputBase-root":{height:"32px",minHeight:"32px"},"& .MuiInputLabel-shrink":{top:"0px"},label:{position:"relative",fontSize:12,fontWeight:500,"&.MuiInputLabel-shrink":{top:"12px"}},"& .MuiAccordionSummary-content":{label:{fontSize:16}}}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:0,marginRight:0,"& .MuiFormControlLabel-label":{marginLeft:"5px",color:e.colors.grey900},"& .MuiSvgIcon-root":{color:_a(e.colors.common.black,65.1)},"&.MuiFormControlLabel-labelPlacementStart .MuiSwitch-root":{marginLeft:8,marginTop:2}}}},MuiFormLabel:{styleOverrides:{root:{fontSize:12,fontWeight:500,color:e.colors.text.tertiary,"& .MuiInputLabel-root":{top:0},"&.Mui-focused":{color:e.colors.text.tertiary}},shrink:{top:0},asterisk:{color:e.colors.primary[50]}}},MuiOutlinedInput:{styleOverrides:{root:{background:e?.customization?.isDarkMode?e.colors?.darkPrimary800:"transparent",borderRadius:"8px",height:"32px",minHeight:"32px","& .MuiOutlinedInput-notchedOutline":{borderColor:e.colors.neutral.outlined.border,borderRadius:"8px"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.colors.neutral.plain}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.colors.error.main}`},"&:hover:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderColor:e.colors.grey[40]},"&.MuiInputBase-multiline":{height:"auto",minHeight:"32px"},"& legend":{maxWidth:"0px"},"& .MuiBox-root":{gap:"8px"}},input:{fontWeight:400,fontSize:14,background:e?.customization?.isDarkMode?e.colors?.darkPrimary800:"transparent",padding:"0 12px",height:"32px",borderRadius:`${e.shape.borderRadius}px`,"&.MuiInputBase-inputSizeSmall":{padding:"0 12px",height:"32px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0}},"&.Mui-disabled":{cursor:"not-allowed",backgroundColor:e.colors.neutral.soft.bg,color:e.colors.text.tertiary}},inputAdornedStart:{paddingLeft:4},disabled:{cursor:"not-allowed"}}},MuiSlider:{styleOverrides:{root:{"&.Mui-disabled":{color:e.colors?.grey300}},mark:{backgroundColor:e.paper,width:"4px"},valueLabel:{color:e?.colors?.primaryLight}}},MuiDivider:{styleOverrides:{root:{borderColor:e.divider,opacity:1}}},MuiAvatar:{styleOverrides:{root:{color:e.colors?.text.primary,background:e.colors?.primary[200]}}},MuiChip:{styleOverrides:{root:{"&.MuiChip-deletable .MuiChip-deleteIcon":{color:"inherit"},background:e.colors.white.smoke,height:24,color:e.colors.text.primary,borderRadius:4,fontWeight:500,fontSize:12,border:`1px solid ${e.colors.neutral.outlined.border}`,"& span":{padding:"0 8px"}}}},MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{margin:"0px"},"&:before":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:"16px",paddingRight:"16px","&, &.Mui-expanded":{minHeight:0},"& .MuiAccordionSummary-content":{display:"flex",alignItems:"center","&.Mui-expanded":{margin:0}},"&::before":{opacity:0}}}},MuiAccordionDetails:{styleOverrides:{root:{padding:0}}},MuiAutocomplete:{styleOverrides:{root:{"& .MuiFormControl-root":{"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,height:"32px",minHeight:"32px"}},"&.MuiAutocomplete-hasPopupIcon":{"&.MuiAutocomplete-hasClearIcon":{"& .MuiOutlinedInput-root":{paddingRight:"36px",position:"relative",height:"32px",minHeight:"32px","&:hover":{paddingRight:"56px"}},"&.Mui-focused .MuiOutlinedInput-root":{paddingRight:"56px"}}}},disabled:{cursor:"not-allowed"},popper:{marginTop:"8px",borderRadius:"8px",border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`,background:e.colors.common.white,translate:"0 8px","& .MuiAutocomplete-listbox":{padding:"4px 0"},"& .MuiAutocomplete-paper:first-of-type, & .MuiAutocomplete-paper:last-of-type":{borderRadius:"8px"},"& .MuiAutocomplete-option":{top:"20px",padding:"6px 8px",fontSize:"14px",fontWeight:400,minHeight:"32px",display:"flex",alignItems:"center","& span":{display:"flex",alignItems:"center"},color:e.typography.allVariants.color}}}},MuiTabs:{styleOverrides:{root:{"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:"8px"},display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",padding:4,borderRadius:8,background:e.colors.white.smoke}}},MuiTab:{styleOverrides:{root:{fontFamily:"Inter",color:e.colors.text.tertiary,fontSize:e.typography.smNormal.fontSize,fontWeight:e.typography.xsMedium.fontWeight,backgroundColor:"transparent",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",minWidth:"auto",minHeight:"auto",textTransform:"none",gap:"8px","&.Mui-selected":{backgroundColor:e.colors.common.white,color:`${e.colors.primary.main} !important`},"&.Mui-disabled":{opacity:.5,cursor:"not-allowed"}}}},MuiInputLabel:{styleOverrides:{root:{left:"-10px",top:"0px",fontSize:e.typography.mdNormal.fontSize,color:_a(e.colors.common.black,65.1)}}},MuiMenuItem:{styleOverrides:{root:{minWidth:100,display:"flex",alignItems:"center",gap:"8px",padding:"0 8px",fontSize:"14px",fontWeight:400,borderRadius:6},selected:{backgroundColor:e.colors.primary[200],color:e.colors.primary.main}}},MuiMenu:{styleOverrides:{root:{"& .MuiPopover-paper":{marginTop:16,marginLeft:4,background:e.colors.common.white,borderRadius:8,border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`,"&:has(.MuiListSubheader-root)":{padding:0}}}}},MuiGrid:{styleOverrides:{root:{margin:0,width:"100%"},".MuiAccordion-root":{borderRadius:"16px"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.colors.neutral.plain,borderRadius:6,fontSize:12,fontWeight:500,padding:"2px 5px",textAlign:"left","& .MuiTooltip-arrow":{color:e.colors.neutral.plain,width:"1.2em",height:"1em"},"& .MuiTooltip-arrow::before":{borderRadius:2}},popper:{'&[data-popper-placement="bottom-end"] .MuiTooltip-arrow:before':{transformOrigin:"0 70%"},'&[data-popper-placement="bottom-start"] .MuiTooltip-arrow:before':{transformOrigin:"0 100%"},'&[data-popper-placement="top-end"] .MuiTooltip-arrow:before':{transformOrigin:"100% -10%"},'&[data-popper-placement="top-start"] .MuiTooltip-arrow:before':{transformOrigin:"100% 30%"}}}},MuiCheckbox:{styleOverrides:{root:{"&.Mui-checked":{"& .MuiSvgIcon-root":{color:e.colors.primary.main}}}}},MuiDataGridCell:{styleOverrides:{root:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},MuiDataGrid:{styleOverrides:{cell:{fontSize:14,color:e.typography.allVariants.color,"&:focus":{outline:0}},root:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},columnHeaderTitle:{textOverflow:"ellipsis"}}},MuiIconButton:{styleOverrides:{root:{padding:4,borderRadius:4,"&.Mui-disabled":{pointerEvents:"all",cursor:"not-allowed"}}}},MuiSnackbar:{styleOverrides:{root:{zIndex:1400,"& .MuiAlert-root":{borderRadius:"12px"}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:12},paperFullScreen:{borderRadius:0}}},MuiFab:{styleOverrides:{root:{backgroundColor:e.colors.primary.main,boxShadow:e.shadows[4],outline:`1px solid ${_a(e.colors.common.black,5)}`,width:50,height:50}}},MuiSvgIcon:{styleOverrides:{root:{"&.sm":{width:"15px",height:"15px"}}}},MuiFormHelperText:{styleOverrides:{root:{marginLeft:5,fontSize:14,color:e.colors.grey.normal,lineHeight:"1.2"}}},MuiSwitch:{styleOverrides:{root:{width:36,height:20,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:12},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(12px)"}},"& .MuiSwitch-switchBase":{padding:4,"&.Mui-disabled":{"& .MuiSwitch-thumb":{backgroundColor:e.colors.grey[40]},"& + .MuiSwitch-track":{opacity:1,border:`1px solid ${e.colors.grey[40]}`}},"&.Mui-checked":{transform:"translateX(16px)",color:e.colors.common.white,"& .MuiSwitch-thumb":{width:12,height:12,borderRadius:16,backgroundColor:e.colors.common.white},"& + .MuiSwitch-track":{opacity:1,border:"none",backgroundColor:`${e.colors.primary[50]} !important`},"&.Mui-disabled":{transform:"translateX(12px)",color:_a(e.colors.primary[50],25),"& + .MuiSwitch-track":{opacity:.5,backgroundColor:e.colors.primary[50]}}}},"& .MuiSwitch-thumb":{width:12,height:12,borderRadius:16,backgroundColor:e.colors.grey[40]},"& .MuiSwitch-track":{borderRadius:16,opacity:1,backgroundColor:e.colors.common.white,boxSizing:"border-box",border:`1px solid ${e.colors.grey[40]}`}}}}}}const Pre={small:{padding:"2px 8px",height:"24px",minWidth:"3rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:600,borderRadius:"6px"},medium:{padding:"2px 12px",height:"32px",minWidth:"3rem",fontSize:"0.875rem",lineHeight:"1.125rem",fontWeight:600,borderRadius:"6px"},large:{padding:"2px 16px",height:"40px",minWidth:"3rem",fontSize:"0.875rem",lineHeight:"1.125rem",fontWeight:600,borderRadius:"6px"},extraLarge:{padding:"2px 16px",height:"48px",minWidth:"6rem",fontSize:"1rem",lineHeight:"1.1875rem",fontWeight:600,borderRadius:"6px"}},Nre={width:"fit-content",padding:"2px 12px",height:"32px",minWidth:"3rem",fontSize:"0.875rem",lineHeight:"1.125rem",border:"1px solid",boxShadow:"none",borderColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",textTransform:"none",fontWeight:600,transition:"all 0.2s ease-in-out","&:hover":{},"&:focus-visible":{outline:0},"&:disabled":{cursor:"not-allowed",pointerEvents:"all"}},Lre=e=>({primary:{main:e.palette.primary.main,light:e.palette.primary[30],dark:e.palette.primary[60],contrast:e.palette.common.white,hover:e.palette.primary[60],active:e.palette.primary[60],disabled:e.palette.primary.main,disabledText:e.palette.common.white,border:e.palette.primary[30],outlinedHoverBackground:e.palette.primary[5]},neutral:{main:e.palette.text.secondary,light:e.palette.grey[40],dark:e.palette.text.tertiary,contrast:e.palette.common.white,hover:e.palette.text.tertiary,active:e.palette.text.tertiary,disabled:e.palette.text.secondary,disabledText:e.palette.common.white,border:e.palette.neutral.outlined.border,outlinedHoverBackground:e.palette.grey[300]},danger:{main:e.palette.error.main,light:e.palette.error[40],dark:e.palette.error[60],contrast:e.palette.common.white,hover:e.palette.error[60],active:e.palette.error[60],disabled:e.palette.error.main,disabledText:e.palette.common.white,border:e.palette.error.outlined.border,outlinedHoverBackground:e.palette.error.soft.bg},success:{main:e.palette.success[40],light:e.palette.success[40],dark:e.palette.success[60],contrast:e.palette.common.white,hover:e.palette.success[60],active:e.palette.success[60],disabled:e.palette.success[40],disabledText:e.palette.common.white,border:e.palette.success.outlined.border,outlinedHoverBackground:e.palette.success.soft.bg},warning:{main:e.palette.warning[40],light:e.palette.warning[40],dark:e.palette.warning[60],contrast:e.palette.common.white,hover:e.palette.warning[60],active:e.palette.warning[60],disabled:e.palette.warning[40],disabledText:e.palette.common.white,border:e.palette.warning.outlined.border,outlinedHoverBackground:e.palette.warning.soft.bg}}),llt=(e,t,n)=>{const i=Lre(n)[e],o={color:t==="contained"?i.contrast:i.main,backgroundColor:t==="contained"?i.main:"transparent",borderColor:t==="outlined"?i.border:"transparent"},s={"&:hover":{backgroundColor:t==="contained"?i.hover:t==="outlined"?`${i.outlinedHoverBackground}`:"transparent",borderColor:t==="outlined"?i.border:"transparent",...t==="text"&&{color:i.hover,backgroundColor:"transparent"}}},a={"&:active":{backgroundColor:t==="contained"?i.active:t==="outlined"?`${i.outlinedHoverBackground}`:"transparent",borderColor:t==="outlined"?i.border:"transparent",...t==="text"&&{color:i.active,backgroundColor:"transparent"},boxShadow:"none"}},l={"&:focus-visible":{outline:`2px solid ${i.outlinedHoverBackground}`,outlineOffset:"2px",borderColor:t==="outlined"?i.border:"transparent"}},u={"&:disabled":{backgroundColor:t==="outlined"?"transparent":i.disabled,color:t==="outlined"?i.main:i.disabledText,borderColor:t==="outlined"?i.disabled:"transparent",cursor:"not-allowed",opacity:.3}};return{...o,...s,...a,...l,...u}},ult=e=>{const t=Lre(e),n=Object.keys(t),r=["contained","outlined","text"],i=Object.keys(Pre),o=[];return n.forEach(s=>{r.forEach(a=>{i.forEach(l=>{const u=llt(s,a,e),c=Pre[l],d=a==="text"?{...u,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,borderRadius:c.borderRadius,backgroundColor:"transparent",padding:"0",height:"auto",minWidth:"auto","&:disabled":{backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},"&:focus-visible":{backgroundColor:"transparent"}}}:{...u,...c};o.push({props:{color:s,variant:a,size:l},style:d})})})}),o},clt=e=>({MuiButtonBase:{defaultProps:{disableRipple:!0}},MuiLoadingButton:{styleOverrides:{...Nre,root:{"&:hover":{color:"transparent !important"},".MuiLoadingButton-loadingIndicator":{color:"inherit"}}}},MuiButton:{styleOverrides:{root:{...Nre,"&.Mui-disabled":{cursor:"not-allowed",pointerEvents:"all"}}},variants:ult(e)}}),N8=e=>{const t=db,n={...t,customization:e},r={direction:"ltr",palette:t.colors,shadows:t.shadows,zIndex:t.zIndex,icons:t.icons,mixins:{toolbar:{minHeight:56,padding:"12px","@media (min-width: 600px)":{minHeight:56,padding:"12px"}}},drawer:t.drawer,shape:t.shape,input:t.input,tooltip:t.tooltip,typography:t.typography},i=mN(r),o=alt(n),s=clt(i);return i.components={...i.components,...o,...s},i};var L8,kre;function dlt(){if(kre)return L8;kre=1;var e="[object Symbol]",t="\\ud800-\\udfff",n="\\u0300-\\u036f\\ufe20-\\ufe23",r="\\u20d0-\\u20f0",i="\\ufe0e\\ufe0f",o="["+t+"]",s="["+n+r+"]",a="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+a+")",u="[^"+t+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",h=l+"?",A="["+i+"]?",g="(?:"+p+"(?:"+[u,c,d].join("|")+")"+A+h+")*",m=A+h+g,E="(?:"+[u+s+"?",s,c,d,o].join("|")+")",y=RegExp(a+"(?="+a+")|"+E+m,"g"),v=RegExp("["+p+t+n+r+i+"]"),T=typeof $n=="object"&&$n&&$n.Object===Object&&$n,_=typeof self=="object"&&self&&self.Object===Object&&self,x=T||_||Function("return this")();function b($){return $.split("")}function w($){return v.test($)}function D($){return w($)?I($):b($)}function I($){return $.match(y)||[]}var P=Object.prototype,k=P.toString,N=x.Symbol,L=N?N.prototype:void 0,M=L?L.toString:void 0;function B($,Y,z){var H=-1,U=$.length;Y<0&&(Y=-Y>U?0:U+Y),z=z>U?U:z,z<0&&(z+=U),U=Y>z?0:z-Y>>>0,Y>>>=0;for(var X=Array(U);++H<U;)X[H]=$[H+Y];return X}function Q($){if(typeof $=="string")return $;if(G($))return M?M.call($):"";var Y=$+"";return Y=="0"&&1/$==-1/0?"-0":Y}function V($,Y,z){var H=$.length;return z=z===void 0?H:z,!Y&&z>=H?$:B($,Y,z)}function q($){return function(Y){Y=W(Y);var z=w(Y)?D(Y):void 0,H=z?z[0]:Y.charAt(0),U=z?V(z,1).join(""):Y.slice(1);return H[$]()+U}}function F($){return!!$&&typeof $=="object"}function G($){return typeof $=="symbol"||F($)&&k.call($)==e}function W($){return $==null?"":Q($)}function R($){return j(W($).toLowerCase())}var j=q("toUpperCase");return L8=R,L8}var flt=dlt();const plt=Ur(flt),hlt=e=>{const{WORKFLOW_URLS:t,ENTITY_ID:n,navigate:r,openIntegrationDrawer:i,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,analytics:a,USER_DATA:l,ALERT_TOP_BAR:u,currentSubscription:c,pro_integration:d=!1,allowedAccount:p,openUpgradeModal:h,openAddonModal:A}=e,g=Tr("workflow"),{canvasWorkflow:{name:m="",version:E="",meta:y={},source:v=""}={}}=ht.useSelector(I=>I.canvas)??{},T=new URLSearchParams(window.location.search),_=T.get("from"),x=T.get("template_id"),b=ht.useSelector(I=>I.customization),[w,D]=C.useState(null);return C.useEffect(()=>{if(!(_==="express"||x))return;const I=window?.__wisper;if(I)return I?.showFeedback({position:"bottom-right",entity_type:x?"workflow_template":"workflow",entity_id:x||g,entity_name:m,feedback_type:x?"rating:star":"vote:thumbs",question:"Was this workflow helpful?",meta:{source:v,version:E,...y},source:window.location.href}),()=>{I?.hideFeedback()}},[g,m,v,x]),C.useEffect(()=>{if(l){const{first_name:I="",_id:P="",email:k="",profile_pic_url:N=""}=l??{},L={name:plt(I),hostId:P,email:k,profilePicUrl:N,additionalFields:{orgId:n}};D(L)}},[l]),f.jsx(O.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(O.ThemeProvider,{theme:N8(b),children:[f.jsx(O.CssBaseline,{}),f.jsx(Dt.ReactFlowProvider,{children:f.jsx(slt,{currentSubscription:c,ALERT_TOP_BAR:u,WORKFLOW_URLS:t,openIntegrationDrawer:i,ENTITY_ID:n,navigate:r,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,analytics:a,userData:w,pro_integration:d,allowedAccount:p,openUpgradeModal:h,openAddonModal:A})}),f.jsx($3,{})]})})};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("@font-face{font-family:url(data:font/otf;base64,T1RUTwAMAIAAAwBAQ0ZGIDkMNPwAAA1QAAEDlkdQT1OphLsbAAEQ6AAAHGpHU1VCmCyHXQABLVQAAAD0T1MvMml2Lw0AAAEwAAAAYGNtYXAygSZ1AAAGDAAABWxoZWFkKaftRAAAAMwAAAA2aGhlYQa/AvoAAAEEAAAAJGhtdHjfxBDzAAALmAAAAbhtYXhwAG5QAAAAASgAAAAGbWV0YVwccuMAAS5IAAANyW5hbWV6rq1hAAABkAAABHtwb3N0AAMAAAAAC3gAAAAgAAEAAAABAADukoGzXw889QADA+gAAAAA451VCwAAAADjnVUL/67/FwOgAzYACAADAAIAAQAAAAAAAQAAAtv/GQAAA6n/rv/JBDMAAQAAAAAAAAAAAAAAAAAAAG4AAFAAAG4AAAAEAgkBkAAFAAACigK7AAAAjAKKArsAAAHfADEBAgAAAAAAAAAAAAAAAIAAAAdQAAAAAAAAAAAAAABYWFhYAAAAAPsDAtv/GQAAAzYA6QAAAAMAAAAAAe0CtgAgACAAAwAAABwBVgABAAAAAAAAAAQAaAABAAAAAAABABEAAAABAAAAAAACAAcAEQABAAAAAAADABsAbAABAAAAAAAEABkAGAABAAAAAAAFACIARgABAAAAAAAGABUAMQABAAAAAAAIAAQAhwABAAAAAAAJAA0AiwABAAAAAAAQABEAmAABAAAAAAARAAcAqQABAAAAAAATAD8AsAABAAAAAAAVABEA7wABAAAAAAAWAAcBAAADAAEECQAAAAgB5wADAAEECQABADIBBwADAAEECQACAA4BOQADAAEECQADADYB7wADAAEECQAEADIBRwADAAEECQAFAEQBowADAAEECQAGACoBeQADAAEECQAIAAgCJQADAAEECQAJABoCLQADAAEECQAQACICRwADAAEECQARAA4CaQADAAEECQATAH4CdwADAAEECQAVACIC9QADAAEECQAWAA4DF0Z5bmQgU2FucyBUZXN0IDA2Q29tcGFjdEZ5bmQgU2FucyBUZXN0IDA2IENvbXBhY3RGeW5kU2Fuc1Rlc3QwNkNvbXBhY3RWZXJzaW9uIDEuMD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P/9owAABQ6LDosOiw73ew73l/8AYXrh/wDTB64V/wABx67//+9mZv8ADgAA///za4X/ABCwpP8AAAAACP8AELMz/wAAAAD/AA4AAP8ADJR7/wABxR//ABCZmgj/AB2wpP8BFfhSBf8AAAUf/wAAMzP/AAACj/8AADCk/wAAAAD/AAAzMwj/AAAAAP8AxvhSBf8AAAAA/wADKPb///1zM/8AAozN///81wr/AAAAAAj//48Mzf8AAAAABf///NcK/wAAAAD///1zM////XCk/wAAAAD///zZmgj/AAAAAP//OQo9Bf8AAAAA////yj3/AAAAAP///9Hs/wAAB67////MzQj/AB2zM//+6geuBf8AJJ64//+k1woV///2rhT/AAAAAAX//9wzM/8AAAAA///jAAD//+MAAP8AAAAA///cMzMI/wAAAAD//9w4Uv8AHQAA///i/XH/ACPMzf8AAAAACP8ACVHs/wAAAAAF/wAjyj3/AAAAAP8AHQKP/wAdAo//AAAAAP8AI8euCP8AAAAA/wAjzM3//+L9cf8AHQAA///cNcP/AAAAAAgO+Cr/AHDRof8CvXWdFf//3L7B/wAAAAD//+Nvnv//42+e/wAAAAD//9zBugj/AAAAAP//9jsaBf8AAAAA///iJYn/ABgyQ///5828/wAd2nj/AAAAAAj/AAfgL/8AAAAABf8AAdLg/wAAAAD/AAGIiP///oNd/wAAAAD///4qJwj/AAAF8v//7RDV///7GRf//+4Hp///9iw7///vB2QI///2Rv7//+80AP//8blM///03DP//+0rmf//+n51CP///a1B////U4b///5Zu////fGn/wAAAAD///2YcAj/AAAAAP//0TvLBf8AAAAA///8gOn/AANGl////VQL/wADZ03/AADNMAj/ACLBYf8ACC2A/wAcVOn/ABCHm/8AFe5j/wAY5LAI/wAXUEP/ABp5Hf8AC/bv/wAgxN//AACjjv8AJxChCP8AAAAA/wA/0aEF/wAAAAD/ACM+Rv//42+e/wAckGL//9zBuv8AAAAACP8Ar+0G/wAAAAEV///8OYv/AAAAAAX//9zBuv8AAAAA///jb57//+Nvnv8AAAAA///cwboI/wAAAAD///Y7GgX/AAAAAP//4iWJ/wAYMkP//+fNvP8AHdp4/wAAAAAI/wAH4C//AAAAAAX/AAHS4P8AAAAA/wABiIj///6DXf8AAAAA///+KicI/wAABfL//+0Q1f//+xkX///uB6f///YsO///7wdkCP//9kb+///vNAD///G5TP//9Nwz///tK5n///p+dQj///2wO////1OG///+VsH///3xp/8AAAAA///9mHAI/wAAAAD//9E7ywX/AAAAAP///IDp/wADRpf///1UC/8AA2dN/wAAzTAI/wAiwWH/AAgtgP8AHFTp/wAQh5v/ABXuY/8AGOSwCP8AF1BD/wAaeR3/AAv27/8AIMTf/wAAo47/ACcQoQj/AAAAAP8AP9GhBf8AAAAA/wAjPkb//+Nvnv8AHJBi///cwbr/AAAAAAgO+OL/AhRMzf8B709cFf//vY9c/wAAAAAF///5Eez/AAAAAP//+qj2/wAGI9f/AAD9cf8ABt64CP8AGvXD/wCzlwoF/wAAfXH/AANwpP///VcK/wADEez///yHrv8AAAAACP//uzCk/wAAAAAF///9Jmb/AAAAAP///Zma///949f///+cKf///TCkCP//5UUf//9Ho9cF////OFL///pcKf//+y4U///7z1z///pPXP8AAAAACP//qP1x/wAAAAAF///5D1z/AAAAAP//+qj2/wAGI9f/AAD64f8ABt64CP8AGvXD/wCzlwoF/wAAfXH/AANwpP///VcK/wADEez///yFH/8AAAAACP//uzXD/wAAAAAF///9Jmb/AAAAAP///Zma///949f///+Zmv///TCkCP//5UUf//9Ho9cF////OFL///peuP//+y4U///7zM3///pPXP8AAAAACP//qH1x/wAAAAAF///83Cn/AAAAAP///XCk///9bhT/AAAAAP///NmaCP8AAAAA///BB64F/wAAAAD///zZmv8AAo9c///9cKT/AAMj1/8AAAAACP8ASnXD/wAAAAAF/wAG64X/AAAAAP8ABVHs///549f///8KPf//+SZmCP//8UzN//+MszMF////OuH///peuP//+y4U///7yj3///pPXP8AAAAACP//p3rh/wAAAAAF///82Zr/AAAAAP///XMz///9czP/AAAAAP///NmaCP8AAAAA///BAAAF/wAAAAD///zcKf8AAozN///9bhT/AAMmZv8AAAAACP8ASnMz/wAAAAAF/wAG64X/AAAAAP8ABVHs///549f///8Mzf//+Sj2CP//5euF//9DJmYF////h67///yR7P8AAqj2///88zP/AAN1w/8AAAAACP8AQ9wp/wAAAAAF/wAC1wr/AAAAAP8AAmZm/wACFwr/AABmZv8AAs9cCP8AG6Zm/wDBnCkF/wAAz1z/AAWcKf8ABM9c/wAEK4X/AAWuFP8AAAAACP8AViFI/wAAAAAF/wAG6Pb/AAAAAP8ABVR7///549f///8Mzf//+Sj2CP//5euF//9DI9cF////hR////yR7P8AAquF///88zP/AANzM/8AAAAACP8AQ9wp/wAAAAAF/wAC1wr/AAAAAP8AAmZm/wACFwr/AABo9v8AAs9cCP8AG6Zm/wDBnCkF/wAAzM3/AAWcKf8ABM9c/wAEK4X/AAWuFP8AAAAACP8ATqPX/wAAAAAF/wADJmb/AAAAAP8AAozN/wACkez/AAAAAP8AAyZmCP8AAAAA/wA+/XEF/wAAAAD/AAMmZv///XMz/wACjM3///zZmv8AAAAACP//vnhS/wAAAAAF///5FHv/AAAAAP//+q4U/wAGHCn/AADzM/8ABtwpCP8ABu4U/wAyDM0F/wAAfXH/AANrhf///VR7/wADD1z///yMzf8AAAAACP//vCZm/wAAAAAF///9KPb/AAAAAP///ZcK///95mb///+cKf///SuFCP//+Gj2///JQo8F////OuH///peuP//+y4U///7yj3///pPXP8AAAAACP//qOj2/wAAAAAF///5Eez/AAAAAP//+rCk/wAGHCn/AADwpP8ABtmaCP8ADrMz/wBzUewF/wAAx67/AAWeuP8ABNHs/wAENcP/AAWwpP8AAAAACP8BDQeu/wAAAAAF/wADJmb/AAAAAP8AAozN/wACj1z/AAAAAP8AAyZmCP8AAAAA/wA++FIF/wAAAAD/AAMmZv///XMz/wACkez///zZmv8AAAAACA741/8Bgi4U/wLb49cV///9h67/AAAAAP///ceu///+euH///8euP///bCkCP/+2gKP//0BxR8F///+gAD///wXCv8AAuFI///7zM3/AAQwpP8AAAAACP8AZJma/wAAAAAF/wACeFL/AAAAAP8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wAAJmb//+69cQX/AAAAAP//mHMz/wBT7hT//6wPXP8AZ49c/wAAAAAI/wBta4X/AAAAAAX/AGKZmv8AAAAA/wBYT1z/AEw64f8AB8Uf/wBgq4UI/wAAIUj/AAAAAAX/AAA9cf8AAqZmBf8AACPX/wACa4UF/wAAOuH/AAPFHwX////rhf8AbR64Bf8AAAAA/wAGaPb/AAUuFP8ABThS/wAGbhT/AAAAAAj/AFW9cf8AAAAABf8ABEeu/wAAAAD/AANzM/8AA3hS/wAAAAD/AARFHwj/AAAAAP8AUoeuBf8AAAAA/wAERR////yMzf8AA3XD///7uFL/AAAAAAj//zGFH///IUKPFf//9zMz///VYUj//9o64f//4CFI///Swo//AAAAAAj//6dmZv8AAAAABf//zD1x/wAAAAD//9YHrv8AKfhS/wAAAAD/ADPFHwj/AAAAAP8AC8UfBf8AAAAA/wAzxR//ACn4Uv8AKfhS/wAzwo//AAAAAAj/AKjMzf8AAAAABf8ABmj2/wAAAAD/AAUzM///+szN/wAAAAD///mXCggO93r/AHSYF/8CvXWdFf///DmL/wAAAAAF///cvsH/AAAAAP//42+e///jb57/AAAAAP//3MG6CP8AAAAA///2PhMF/wAAAAD//+Ilif8AGDJD///nzbz/AB3aeP8AAAAACP8AB+Av/wAAAAAF/wAB0uD/AAAAAP8AAYiI///+gGT/AAAAAP///i0gCP8AAAXy///tENX///sZF///7gqg///2LDv//+8Eagj///ZG/v//7zQA///xuUz///TcM///7SuZ///6fnUI///9rUH///9Thv///lm7///98af/AAAAAP///ZhwCP8AAAAA///RO8sF/wAAAAD///yA6f8AA0aX///9VAv/AANnTf8AAM0wCP8AIsFh/wAILYD/ABxU6f8AEIeb/wAV7mP/ABjksAj/ABdQQ/8AGnkd/wAL9u//ACDE3/8AAKOO/wAnE5oI/wAAAAD/AD/OqAX/AAAAAP8AIz5G///jb57/AByQYv//3MG6/wAAAAAIDvfA/wDVI9f//3czMxX/AFMeuP8AAAAABf8ABJcK/wAAAAD/AALMzf8ABPMz///9tcP/AAP4Ugj//9bwpP8AR3Ck///heuH/AEmo9v//7AUf/wBL49cI///rMKT/AE8Ue///9Zma/wBTPXH/AAAAAP8AV164CP8AAAAA/wBXYUj/AAruFP8AUw9c/wAV2Zr/AE64Ugj/ABT64f8AS6FI/wAeIUj/AEnj1/8AJz1x/wBIHrgI/wACKPb/AAP64f///TCk/wAE0ez///t64f8AAAAACP//rIzN/wAAAAAF///98KT/AAAAAP///hR7///+8KT///7hSP///keuCP//0QKP//+3T1z//9urhf//s5ma///mVwr//6/hSAj//+X9cf//rtma///y/XH//614Uv8AAAAA//+sFHsI/wAAAAD//84R7P8AA89c///RLhT/AAehSP//1E9cCP8AB564///UT1z/AAqUe///1oo9/wANh67//9jXCgj/AA2Hrv//2M9c/wAP8zP//9q4Uv8AEmFI///cnrgI/wAR1Hv//92j1/8AEwUf///enCn/ABQo9v//35maCP8AARma///+OFL/AAHuFP///vCk/wACFwr/AAAAAAgO977/AAEc1/8DNmZmFf//+2uF/wAAAAD///0zM///+xR7/wACRR////wFHwj/ACkXCv//t+Zm/wAej1z//7X64f8AE/rh//+0FHsI/wAUzM3//7DuFP8ACmj2//+swo//AAAAAP//qJ64CP8AAAAA//+onrj///UUe///rPCk///qI9f//7FKPQj//+sFH///tGZm///h5mb//7Z4Uv//2MUf//+4ij0I///90ez///wHrv8AAs9c///7K4X/AASHrv8AAAAACP8AU2j2/wAAAAAF/wACDM3/AAAAAP8AAe4U/wABCj3/AAEcKf8AAbXDCP8ALv1x/wBIAo//ACRR7P8ATBHs/wAZrhT/AFAcKQj/ABoFH/8AUSj2/wANAAD/AFKFH/8AAAAA/wBT7hQI/wAAAAD/ADHuFP///AUf/wAu0ez///gHrv8AK7CkCP//+AKP/wArsKT///VCj/8AKXCk///yeuH/ACcwpAj///J4Uv8AJyuF///wOFL/ACVzM///7fhS/wAjuuEI///ueFL/ACKzM///7S4U/wAhjM3//+vcKf8AIGuFCP///uZm/wABxR////4PXP8AARHs///96Pb/AAAAAAgO+Db/ADHXrv8CKse5Ff8AWZJg///hW1IF/wAHRY3///2Dn/8AAsDG///3Iw3///tmaP//+dT0CP//x6Z5//+0VSwF///+FVb///1uz/8AAJqi///8WkD/AAKgEP///ionCP8ALdZP///gFDYF/wAClCr///4zEv8AA4r9/wAAo47/AAHJ9P8AApQqCP8ANssN/wBO910F/wAEcvD/AAZseP8ACXqP/wAAF8r/AASWn///+atTCP8AOV83//+wzSkF/wAB2NL///1xyP8AA5Dv////cUL/AAKLP/8AAd7FCP8AKydh/wAfvy8F/wACiEX/AAHbzP8AAIjL/wADk+j///4eQv8AAoVMCP//x6Z5/wBLrc0F///7Y2//AAYz+P8AAsmx/wAI5d//AAdXZf8AAnN1CP8AXCaK/wAetoYF/wADCx7/AAECt/8AAZpg/wADVXX///7ihv8AAwIyCP//7FV9/wA1QoQF///+5X//AAL8P////KeR/wABf5z///0JtP///tOnCP//qUA+///dx2oF///4jdj///0Ppv//9+1D/wAFfpL/AAAAAP8ACADlCP8AAAAA/wBgK3MF/wAAAAD/AAMi6P///XTB/wACiz7///zdGf8AAAAACP//yC9E/wAAAAAF///83Rj/AAAAAP///XTC///9dMH/AAAAAP///N0ZCP8AAAAA//+fxa8F/wAAAAD///gCFP//9/Yv///6gW7///iN2P8AAupoCP//qGE3/wAiQYIF///8+tX/AAEvUv///Jus///+a5P///73V////O7wCP//7f67///KyWEF////AEP///0Js/8AAZRt///8yEf/AAL2TP///v1JCA747v8A+SFI/wJFWZoV/wAAAAD//0VKPQX/AAAAAP//+ZcK///6zM3///rMzf//+ZR7/wAAAAAI//9GTM3/AAAAAAX///zKPf8AAAAA///9Zmb///1mZv8AAAAA///8x64I/wAAAAD//6SKPQX/AAAAAP///Mo9/wACmZr///1mZv8AAzXD/wAAAAAI/wC5szP/AAAAAAX/AAZrhf8AAAAA/wAFMzP///rMzf8AAAAA///5lwoI/wAAAAD//0VHrgX/AAAAAP///Mo9/wACnCn///1mZv8AAzMz/wAAAAAI/wBbeFL/AAAAAAX/AAMzM/8AAAAA/w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AAAAAX//5/1w/8AAAAA//+xD1z//7e64f//9QzN//+i64UI////MzP///lMzf8ABTrh///6FHv/AAbAAP8AAAAACP8AWSPX/wAAAAAF/wAFGZr/AAAAAP8ABJHs/wADTM3/AAF64f8ABOj2CP8AC6Zm/wAmeuH/ACPCj/8AHAeu/wAqSj3/AAAAAAj/AKWwpP8AAAAABf8AM8Uf/wAAAAD/ACn1w///1go9/wAAAAD//8w4Ugj/AAAAAP///nMzBf8AAAAA///MOFL//9YKPf//1geu///MOuH/AAAAAAj//1jrhf8AAAAABf//+7rh/wAAAAD///yKPf///Io9/wAAAAD///u4Ugj/AAAAAP//rXhSBf8AAAAA///7uuH/AAN1w////Ieu/wAERR//AAAAAAj/AKcUe/8AAAAABf8AM8Uf/wAAAAD/ACn1w///1go9/wAAAAD//8w4Ugj/AAAAAP//9D1xBf8AAAAA///MOuH//9YKPf//1geu///MOuH/AAAAAAj//1pPXP8AAAAABf//1bMz/wAAAAD//9xAAP8AHAKP///0WZr/ACZ9cQj///6Cj/8ABOZm///7cKT/AANPXP//+uZm/wAAAAAI//+m3Cn/AAAAAAX///lAAP8AAAAA///6xR////oR7P8AAMzN///5T1wI/wAK8zP//6Lo9v8ATvMz//+3vXH/AGAHrv8AAAAACP8AxCj2/wAAAAAF/wBnij3/AAAAAP8AU/Ck/wBT8KT/AAAAAP8AZ4zNCP8AACZm/wARQo8F/wAAAAD/AAwPXAX////rhf8ANUKP///pR67/AC/o9v//289c/wAhhR8IDvll/wKYa/H/AT+UexX//6N64f8AAAAABf//+7hS/wAAAAD///yMzf8AA3Mz/wAAAAD/AARKPQj/AAAAAP8BZpR7Bf8AAAAA/wAER67///yHrv8AA3XD///7uuH/AAAAAAj//6KeuP8AAAAABf//+7rh/wAAAAD///yKPf///Io9/wAAAAD///u4Ugj/AAAAAP/+mWuFBf8AAAAA///7tcP///yKPf///IzN///7uuH/AAAAAAj//vMR7P8AAAAABf//+tma/wAAAAD///xKPf8ABO4U/wABbhT/AATzMwj/AGZKPf8BYko9Bf8AAWuF/wAE9cP///xKPf8ABO4U///62Zr/AAAAAAj//54rhf8AAAAABf///I9c/wAAAAD///z4Uv///bhS////Cj3///ywpAj//5Z1w//+ku4UBf//94AA///meuH/AARAAP//4xma/wAQKPb//+nmZgj/AA9Mzf//6d64/wAaXCn///NFH/8AGzXD/wAAAAAI/wE3h67/AAAAAAX/AARFH/8AAAAA/wADdcP///yFH/8AAAAA///7vXEI/wAAAAD//zvUewX/AAAAAP//+7hS/wADdcP///yKPf8ABEUf/wAAAAAI/wBdYUj/AAAAAAX/AARFH/8AAAAA/wADeFL/AAN1w/8AAAAA/wAER64I/wAAAAD/AMQrhQX/AAAAAP8ABEUf/wADczP/AAN4Uv8ABEeu/wAAAAAI/wBchR//AAAAAAX/AARFH/8AAAAA/wADeFL/AANzM/8AAAAA/wAERR8I/wAAAAD/AFyFHwX/AAAAAP8ABEUf///8h67/AAN4Uv//+7rh/wAAAAAIDvlE/wG/OFL/AcWKPRX//vLzM/8AAAAABf//+7hS/wAAAAD///yMzf8AA3Mz/wAAAAD/AARFHwj/AAAAAP8AegAABf8AAAAA/wAER67/AANzM/8AA3Mz/wAER67/AAAAAAj/AYjAAP8AAAAABf8ABEeu/wAAAAD/AAN1w/8AA3hS/wAAAAD/AARFHwj/AAAAAP8AVyuFBf8AAAAA/wAER67///yKPf8AA3XD///7uFL/AAAAAAj//i7rhf8AAAAABf//5q4U/wAAAAD//+t64f//63hS/wAAAAD//+awpAj/AAAAAP//KUKPBf8AAAAA///VRR//ACKj1///3V64/wAquFL/AAAAAAj/ASKMzf8AAAAABf8AM8KP/wAAAAD/ACn64f//1geu/wAAAAD//8w64Qj/AAAAAP//v964Bf8AAAAA///MOFL//9YFH///1go9///MQAD/AAAAAAj//1pR7P8AAAAABf//1bXD/wAAAAD//9w9cf8AHAKP///0Vwr/ACZ64Qj///6FH/8ABOj2///7cKT/AANPXP//+uPX/wAAAAAI//+m3rj/AAAAAAX///lAAP8AAAAA///6x67///oR7P8A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AAYMzf8AAAAA/wADtcP///lZmv///NHs///62ZoI//6nRR///dIwpAX///sKPf//9/Ck/wAFyj3///WhSP8ACXMz/wAAAAAI/wBjeFL/AAAAAAX/AAQwpP8AAAAA/wAD5mb/AAIrhf8AAjCk/wADkewI/wFOFwr/Ah3zMwX/ACcUe/8AP2Zm///SY9f/AFG1w///tYKP/wAAAAAIDvlV/wJD+FL/AWTo9hX/ACDKPf8AISZm/wAUT1z/AC2Mzf8AABR7/wAyVwoI/wAAAAD/AAwUewX////XCv8ACKFIBf8AAAAA/wBnij3//6wR7P8AU+4U//+YdcP/AAAAAAj//0UhSP8AAAAABf//mHMz/wAAAAD//6wPXP//rBHs/wAAAAD//5h1wwj////Zmv//9164Bf8AAAAA///z64UF/wAAFHv//82o9v8AFEzN///ScKT/ACDMzf//3twpCP//2Drh///eVwr//+ao9v//zco9////64X//8fFHwj/AAAAAP//8/CkBf8AACZm///uvXEF/wAAAAD//5h1w/8AU+4U//+sDM3/AGePXP8AAAAACP8A0uPX/wAAAAAF/wBnij3/AAAAAP8AU/Ck/wBT8zP/AAAAAP8AZ4o9CP8AACZm/wARQo8F/wAAAAD/AAwPXAX////rhf8AODrh///mqPb/ADI1w///2Drh/wAhqPYI//5wMKT/AJThSBX/AAAAAP8AM8KP/wAp+FL/ACFUe/8AM8KP/wAAAAAI/wCcaPb/AAAAAAX/ADPFH/8AAAAA/wAp9cP//96rhf8AAAAA///MPXEI/wAAAAD///Q4UgX/AAAAAP//zKZm///WszP//9ZZmv//zM9c////VHsI//9hI9f/AAAAAAX//8zPXP8AAK4U///WsKT/ACmmZv8AAAAA/wAzVwoI/wAAAAD/AAvHrgX/AWPcKf/+yzMzFf8AAAAA///MOuH//9YHrv//1geu///MOFL/AAAAAAj//0uZmv8AAAAABf//zDrh/wAAAAD//9YHrv8AKfhS/wAAAAD/ADPFHwj/AAAAAP8AC8UfBf8AAAAA/wAzXCn/AClMzf8AKaZm/wAzMKT/AACrhQj/ALbmZv8AAAAABf8AMz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iKPb/AB3XCv//2yuF/wAAAAAI///8D1z/AAAAAAX//9srhf8AAAAA///iJmb//+ImZv8AAAAA///bLhQI/wAAAAD//9srhf8AHdma///iJmb/ACTUe/8AAAAACA73gP8Ad564/wB7ij0V///8D1z/AAAAAAX//9srhf8AAAAA///iJmb//+ImZv8AAAAA///bLhQI/wAAAAD///XMzQX/AAAAAP//4M9c/wAZR67//+a1w/8AHzCk/wAAAAAI/wAGq4X/AAAAAP8ABUAA///6RR////94Uv//+V64CP///rMz///vdcP///r9cf//8DMz///3TM3///DzMwj///XUe///7nMz///xFwr///RcKf//7FcK///6PXEI///9kez///9Mzf///kUf///93Cn/AAAAAP///XrhCP8AAAAA///PIUgF/wAAAAD///xcKf8AA3XD///9MzP/AAOMzf8AANcKCP8AJE9c/wAIjM3/AB2Ue/8AEUKP/wAW64X/ABoCjwj/ABhcKf8AG6j2/wAMgAD/ACI9cf8AAKuF/wAo0ewI/wAAAAD/AEKuFAX/AAAAAP8AJNHs///iJmb/AB3Zmv//2yuF/wAAAAAI///8DM3/APkKPRX/AAPzM/8AAAAABf8AJNR7/wAAAAD/AB3Zmv8AHdma/wAAAAD/ACTUewj/AAAAAP8AJNHs///iJmb/AB3XCv//2yuF/wAAAAAI///8DM3/AAAAAAX//9suFP8AAAAA///iJmb//+ImZv8AAAAA///bLhQI/wAAAAD//9srhf8AHdma///iJmb/ACTR7P8AAAAACA741f8B9XhS/wHk8zMV//5BmZr//zpKPQX///nhSP///Uo9///8DM3///nwpP8AAAAA///5TM0I/wAAAAD//9H1wwX/AAAAAP//+U9c/wAD8zP///nuFP8ABh64///9TM0I/wG+aPb//zpHrgX/AAsuFP//+wzN/wAMlwr/AAguFP8AAAAA/wAMPXEI/wAAAAD/ADtAAAX/AAAAAP8ABseu///78KT/AAYhSP//+cKP/wACpmYI//7NXCn/AIJcKQX///JFH/8ABdcK/wAAAAD/ABN4Uv8ADbrh/wAF1HsI/wEyo9f/AIJcKQX/AAZCj/8AAqZm/wAECj3/AAYj1/8AAAAA/wAGyj0I/wAAAAD/ADs4UgX/AAAAAP8ADDhS///zaPb/AAgwpP//9NHs///7DM0IDvjy/wItWZr/AYyR7BX/AAAAAP8AW3hSBf8AAAAA/wADMzP///1mZv8AApwp///8zM3/AAAAAAj//g5Cj/8AAAAABf///Mo9/wAAAAD///1mZv///WPX/wAAAAD///zMzQj/AAAAAP//pIeuBf8AAAAA///8yj3/AAKZmv///Wj2/wADNcP/AAAAAAj/AfG9cf8AAAAABf8AAzMz/wAAAAD/AAKZmv8AApcK/wAAAAD/AAM1wwj/AAAAAP//M9wpFf8AAAAA/wBbeFIF/wAAAAD/AAMzM////WZm/wACnCn///zMzf8AAAAACP/+DkKP/wAAAAAF///8yj3/AAAAAP///WZm///9Y9f/AAAAAP///MzNCP8AAAAA//+kh64F/wAAAAD///zKPf8AApma///9aPb/AAM1w/8AAAAACP8B8b1x/wAAAAAF/wADMzP/AAAAAP8AApma/wAClwr/AAAAAP8AAzXDCA741f8CCSuF/wEfPXEV//5Blwr/AMW1wwX///TR7P8ABPMz///za4X///fPXP8AAAAA///zxR8I/wAAAAD//8TCjwX/AAAAAP//+TXD/wAEDM3///neuP8ABj1x///9WZoI/wEyo9f//32j1wX/AA29cf//+iuF/wAAAAD//+yFH///8kKP///6K4UI//7NXCn//32mZgX///nAAP///Vma///79cP///neuP8AAAAA///5OFII/wAAAAD//8TAAAX/AAAAAP//88Uf/wAMlHv///fPXP8ACy4U/wAE8zMI/wG+aPb/AMW1wwX/AAYeuP8AArXD/wAD8KT/AAYR7P8AAAAA/wAGsKQI/wAAAAD/AC4KPQX/AAAAAP8ABrCk///8DM3/AAYR7P//+ePX/wACtcMIDvkU/wD0LTz/AHXmZhX///w4Uv8AAAAABf//3MKP/wAAAAD//+NuFP//43Ck/wAAAAD//9zFHwj/AAAAAP//3MAA/wAckez//+NwpP8AIz1x/wAAAAAI/wADx67/AAAAAAX/ACM9cf8AAAAA/wAcj1z/AByPXP8AAAAA/wAjQAAI/wAAAAD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Pb/AAAAAP//+NHsCP///1ma//63K4UF/wAAI9f/AAAAAAX////AAP//s4UfBf///7XD///oFwr//+yR7P//7LCk///oB67/AAAAAAj//+feuP8AAAAA///sczP/ABOKPf////XD/wAYHrgI/wAAAAD/ASzo9gX/AAAAAP8ABJR7///8R67/AAO4Uv//+2uF/wAAAAAI///FwAD/AAAAAAX///to9v8AAAAA///8Sj3///xHrv8AAAAA///7a4UI/wAAAAD//+5XCgX/AAAAAP///FHs///7nCn///4o9v///Vwp/wACjM0I///zh67/AAv1w///8UAA/wAJmZr//++zM/8ABoo9CP///3Mz/wAAQAD///9uFP8AAEKP////Xrj/AABFHwj//9rMzf8AD4KP///Q1Hv///e9cf8AAAAA/wAAAAAI/wAAAAD////4UgX///VUe////l64///1Zmb///0wpP//9Yeu///8AAAI///uR67///k4Uv//8D1x///1YUj///IzM///8YzNCP//8jhS///xkez///TwpP//7Zwp///3sKT//+muFAj///ewpP//6auF///71wr//+WCj/8AAAAA///hYUgI/wAAAAD//+aZmv8AA0o9///oQo//AAaPXP//6ePXCP8ABo9c///p5mb/AAnZmv//7NcK/wANI9f//+/PXAj/AA0euP//78zN/wAQh67///MzM/8AE+4U///2lwoI/wAT5mb///aUe/8AF1Hs///7TM3/ABq1w/8AAAAACP8AAK4U/wAAAAD/AACrhf8AAAzN/wAArhT/AAAAAAj/AAEZmv////rh/wABFwr////4Uv8AARma/wAAAAAI/wAkgAD/AAAAAP8AISFI/wAOY9f/ABho9v8AF2uFCP8AAoo9/wACcKT/AAQXCv///ko9/wAAR67///yZmgj/AAAcKf//x4o9/wAuSj3//9GeuP8AOQeu////qPYI/wAGMzP/AAAAAAX/AAF9cf8AAAUfBf8AAaZm////+FIF/wABzM3/AAAAAAX/ADlmZv8AAAAA/wA9OFL/AC84Uv8AAAAA/wA4wo8I/wAAmZr/AFBMzQX/AAAo9v8BVWPXBf8AAAAA/wApSj3//96FH/8AIXrh///WtcP/AAAAAAj//1n64f/+czMzFf///EUf///xx67///pPXP//8zMz///4WZr///ScKQj///hR7P//9J64///2Jmb///bMzf//8/hS///5AAAI///z9cP///kAAP//8aj2///8gAD//+9hSP8AAAAACP//78o9/wAAAAD///IAAP8AA0eu///0LhT/AAaR7Aj///QwpP8ABo9c///2PXH/AAjFH///+Fwp/wAK8KQI///4Vwr/AAruFP//+ko9/wAMfXH///xKPf8ADgAACP///EUf/wAOAo////4mZv8ADj1x/wAAAAD/AA5wpAj/AAAAAP8AD09c/wABo9f/AA79cf8AA0zN/wAOq4UI/wADR67/AA6mZv8ABXXD/wANI9f/AAerhf8AC5maCP8AB6Zm/wALlwr/AAnZmv8ACWuF/wAMDM3/AAc64Qj/AAwHrv8ABzhS/wAOxR//AAOcKf8AEYUf/wAAAAAI/wAc4Uj/AAAAAP8AFt64///1fXH/ABDcKf//6wAACP8AENma///q/XH/AAhuFP//4quF/wAAAAD//9pcKQj/AAAAAP//8R64///+IUj///FuFP///Eo9///xx64IDvkz/wKUQh7/AA/KPRX//wwZmv8CeUUfBf//9aPX/wAa5mb//+Yj1/8AEcAA///jLhT/AAAAAAj//91Mzf8AAAAABf//4wo9/wAAAAD//+dFH///7dwp///2Qo///+ZzMwj//wyXCv/9hcKPBf///RcK///4Y9f/AAWcKf//99cK/wAIJmb/AAAAAAj/AGQ64f8AAAAABf8ABOj2/wAAAAD/AARj1/8AAxma/wABo9f/AASj1wj/ADucKf8AqCZmBf8AAaFI/wAEo9f/AARmZv8AAxcK/wAE64X/AAAAAAj/AQR64f8AAAAABf8ABOuF/wAAAAD/AARj1////Oj2/wABoUj///tcKQj/ADueuP//V9maBf8AAaZm///7XCn/AARhSP///OZm/wAE64X/AAAAAAj/AGkUe/8AAAAABf8ACCZm/wAAAAD/AAWeuP8ACC4U///9D1z/AAeZmgj//xJj1/8BBCPXFf//TPMz/wAAAAAF///4AAD/AAAAAP//+mFI/wAH6Pb/AAKrhf8AB49cCP8AWiuF/wEAUewF/wABq4X/AARMzf8ABCPX/wADEez/AAThSP8AAAAACP8ABPXD/wA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AAAAP//r3rhBf8AAAAA//9W1wr/AIkeuP//duFI/wCpK4X/AAAAAAj/AKreuP8AAAAABf8ABmuF/wAAAAD/AAUuFP8ABTCk/wAAAAD/AAZo9gj/AAAAAP8AUAo9Bf8AAAAA/wAGa4X///rR7P8ABTMz///5lHv/AAAAAAj//25wpP8AAAAABf//hRR7/wAAAAD//5xZmv8AY6FI/wAAAAD/AHrrhQj/AAAAAP8AMjCkBf8AAAAA/wB2BR//AF+uFP8AX64U/wB2BR//AAAAAAgO+Rj/ASshSP8CtRcKFf//ZAeu/wAAAAAF////yj3/AAAAAP///8eu////9cP////KPf////rhCP///4Uf/wAAAAD///+KPf8AAA9c////ij3/AAAAAAj//9RMzf8AAAAA///clHv//9yXCv8AAAAA///UTM0I/wAAAAD///8rhf8AABHs////MzP/AAAHrv///zCkCP////1x////mZr////o9v///5Hs/wAAAAD///+cKQj/AAAAAP/96+FIBf8AAAAA////a4X/AAAeuP///2FI/wAABR////9o9gj/AAFmZv//1q4U/wAhAAD//97Mzf8AKT1x///+R64I/wAAuuH////4Uv8AAMKP////3rj/AAC4Uv8AAAAACP8AnyPX/wAAAAAF/wCpK4X/AAAAAP8AiSFI/wCJIUj/AAAAAP8AqSuFCP8AAAAA/wBQgAAF/wAAAAD/AKkmZv//dt64/wCJI9f//1bUe/8AAAAACP8AxUAA//6QtcMV/wAAAAD//4UUe///nFwp//+cXrj//4UUe/8AAAAACP//pRHs/wAAAAAF///5lwr/AAAAAP//+szN/wAFLhT/AAAAAP8ABmuFCP8AAAAA/wHPOuEF/wAAAAD/AAZmZv8ABTMz/wAFMzP/AAZo9v8AAAAACP8AY89c/wAAAAAF/wB2Ao//AAAAAP8AX6uF//+gUez/AAAAAP//if1xCA74uf8B9zhS/wK1euEV//76Qo//AAAAAAX//5h1w/8AAAAA//+sD1z//6wR7P8AAAAA//+YczMI/wAAAAD//sGzMwX/AAAAAP//mHMz/wBT8KT//6wPXP8AZ4o9/wAAAAAI/wEFvXH/AAAAAAX/AA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uv8AAAAACP//LN64/wAAAAAF///5xR//AAAAAP//+vXD/wAFCj3/AAAAAP8ABjhSCP8AAAAA/wDDq4UF/wAAAAD/AAY64f8ABQo9/wAFCj3/AAY64f8AAAAACP8A0yZm/wAAAAAF/wAzxR//AAAAAP8AKfXD///WB67/AAAAAP//zDhSCP8AAAAA///hR64FDvlG/wKRLhT/ACoAABX//71cKf8AQqZmBf///Fma/wADo9f///9Mzf8ABYo9/wACaPb/AASKPQj/ABK4Uv8AIz1x/wAKq4X/ACgo9v8AAAAA/wAqrhQI/wAAAAD/ANOCjwX/AAAAAP8Ai5ma//+O1Hv/AHEo9v//dGuF/wAAAAAI//++1Hv/AAAAAAX//3THrv8AAAAA//+PJmb//48j1/8AAAAA//90yj0I/wAAAAD//yvMzQX/AAAAAP//dMeu/wBw3Cn//48mZv8AizXD/wAAAAAI/wBB1wr/AAAAAAX/ADWKPf8AAAAA/wAxnCn/ABCzM/8AKMzN/wAceFII/wAErhT/AAM9cf8ABj1x////mZr/AAQFH///+/rhCP8APWFI///CoUgF/wAEhR////t4Uv8AB164/wAAAAD/AASHrv8ABIeuCP8ANpHs/wA2lHsF/wAEij3/AASHrv8AAAAA/wAHXCn///t1w/8ABIeuCP//a9ma/wDPo9cV/wAAAAD///UhSP///tcK///1j1z///3Zmv//9gUfCP///hwp///3K4X///THrv///Q9c///5oUj/AAZeuAj//4hUe/8Ad6uFBf//+3Mz/wAEjM3///imZv8AAAAA///7euH///tzMwj//8lrhf//yW4UBf//+3hS///7czP/AAAAAP//+Kj2/wAEh67///t4Ugj/AIHMzf//fjMzBf8ABY9c///6bhT///6Ue///9pwp///5BR////xcKQj//+pXCv//9KuF///nh67///iPXP//5hma///9K4UI///c0ez/AAAAAAX//6iMzf8AAAAA//+5Hrj/AEbmZv8AAAAA/wBXbhQI/wAAAAD/AMEuFAX/AAAAAP8AV3Mz/wBG4Uj/AEbhSP8AV3Mz/wAAAAAI/wAjYUj/AAAAAAX/AFdzM/8AAAAA/wBG4Uj//7keuP8AAAAA//+ojM0IDvkr/wIqUNL/AUB/shX///tmaP8ABFgs////psr/AAb7Nf8ABCiX/wAEwzoI/wAcJVT/ACBCB/8AERNf/wAqLZb/AAAAAP8ALimSCP8AAAAA/wAwdl8F/wAAAAD/AGesef//q/Ue/wBUCuH//5hZev8AAAAACP/+8+xv/wAAAAAF///xS0T/AAAAAP//8kgJ///7403///Q1rP//995lCP//6P0O///xxTD///CJ+v//5rBD////taj//+MEkAj/AAAAAP/9pswGBf8AAAAA///5TyL/AAVsuv//+pY//wAGreT/AAAAAAj/AAAAAP////oOBf8AVObw/wAAAAAF/wAGsN7/AAAAAP8ABWnB/wAFacH/AAAAAP8ABrDeCP8AAAAA/wD7O6sF/wAAAAD/AAYNT/8ABObp/wAE6eL/AAYQSP8AAAAACP8A5wtX/wAAAAAF/wAAvlH/AAAAAP8AALhf/wAAGsP/AADBS/8AAAL6CP8AM0v1////OMP/AClpUv//yxmr/wAAAAD//8yNYgj/AAAAAP//YpoQBf8AAAAA///5Uhz/AAVsuv//+pNG/wAGreT/AAAAAAj/AE8p6/8AAAAABf8ABrDe/wAAAAD/AAVpwf8ABWy6/wAAAAD/AAat5Aj/AAAAAP8ArKlpBf8AAAAA/wA15hP//+lEbf8AMJEi///bnk3/ACI4lgj//79YQ/8AkN1LFf8AAAAA///MK0D//9X8DP//1fkT///MKEf/AAAAAAj//yycM/8AAAAABf//+cMc/wAAAAD///r1Z/8ABQqZ/wAAAAD/AAY85Aj/AAAAAP8Aw+fUBf8AAAAA/wAGPOT/AAUKmf8ABQqZ/wAGPOT/AAAAAAj/ANNmxv8AAAAABf8AM9TA/wAAAAD/ACoG7f//1fwM/wAAAAD//8woRwj/AAAAAP//4T2VBQ746/8CMydH/wDEB0gV/wAAAAD/ABGfI////VES/wARohz///qoFv8AEaIdCP//+qUd/wARnyP///fPhv8AEIeb///0/Or/AA9wFAj///T58P8AD20a///yTfv/AA2vDP//76IG/wAL+ekI///vnw3/AAvz9v//7Mxw/wAJcaP//+n50/8ABu9QCP//9yv4/wACglP///FdHP8AA/AY///ri0b/AAVa4wj//+uITf8ABVfq///rEVr/AAWEhf//6ppn/wAFqy0I///ql27/AAWrLf//7KLO/wAFMUH//+6xJ/8ABLdUCP//7q4u/wAEuk7///YUcf8AAqv1///9fa3/AACglQj//+gSIv8ABuxX///sos7/AAo44P//8TZ0/wANi1wI///xM3r/AA2IY///+Jm+/wASuaT/AAAAAP8AF+3eCP8AAAAA/wACEVP/AAA7ef8AAeex/wAAILb/AAH5iAj/AAAaw/8AAAAABf8AArfa/wAuWSf/ACOjYf8AIpTG/wAvoEP/AAAAAAj/AFgzef8AAAAABf8AKi2W/wAAAAD/ACS09///6/ZU/wAEySz//9NwzQj/AACglf//+jcW/wAFAa3///un1P8ABdHW/wAAAAAI/wBec1b/AAAAAAX/AAcY8v8AAAAA/wAFRhL/AAZLwv///ybr/wAHChMI///0uIT/AFy+M///sTg3/wBH51f//6A2sP8AAAAACP//iFS3/wAAAAAF//+Zkbf/AAAAAP//rOMF//+t0Or///45Bf//mf++CP///2hX///5eMX///+g1///+VIc/wAAAAD///kZnAj/AAAAAP//7l3k/wACW6r//+6xJ/8ABLpO///u/nkI/wAEuk7//+7+ef8ACAPf///v8lD/AAtWWv//8OYpCP8AC1Zb///w4zD/AA9Af///8lD0/wATNon///O1zQj/ABMzkP//87jH/wAYFIf///YUcf8AHPh3///4cxQI/wAulKD///Nlg/8AJzFX///1xyD/AB/ODf//+CLKCP8AH8gb///4H9H/ABvd9v//96je/wAX7d7///cu8gj/AA3Yrf//+vVn/wAMvi3///dYk/8AC6me///zu8AI/wAKYoL///ULx/8ABX6S///vVLb/AAEdev//6kcjCP//+ahZ///NQsj//+OHaP//2RMO//+/T1f/AAAAAAj//6BUbP8AAAAABf//1hnJ/wAAAAD//9gBef8AGViq///6SO7/ACeWcgj///8v1/8ABaU7///7Hwr/AAQlnv//+k7g/wAAAAAI//+lbeP/AAAAAAX///jnDv8AAAAA///6ue7///m0Pv8AANk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Cj/8AAAAABf//+xcK/wAAAAD///ueuP///Oj2///+WZr///teuAj//72XCv//RVmaBf////rh/wAAAAAF//++B67//0YHrgX//8FXCv//TePXBf///lR7///7szP///veuP///OuF///7Hrj/AAAAAAj///sKPf8AAAAA///7wo//AAMmZv///mFI/wAEZmYI///BXCn/ALO9cQX//6X1w/8BAWPXBf//16j2/wBxbhQF///+XCn/AAShSP//+5wp/wADFwr///sXCv8AAAAACP//lu4U/wAAAAAF///31wr/AAAAAP//+mFI///3z1z/AALwpP//+Gj2CP8A99R7//17/XEF/wAKXCn//+UZmv8AGdma///uQo//ABzUe/8AAAAACP8AIrMz/wAAAAAF/wAc8zP/AAAAAP8AGL1x/wASI9f/AAm9cf8AGYzNCP8A93XD/wKE+FIF/wAC6Pb/AAecKf//+mPX/wAIKPb///fZmv8AAAAACA75q/8CfqPX/wK1jM0V///8zM3/AAAAAP///WZm///9Zmb/AAAAAP///Mo9CP8AAAAA//5YPXEF/wAAAAD///zuFP///seu///9Cj3///3PXP///dHsCP//d9ma//93zM0F///90ez///3R7P///Gj2////z1z///264f8AAhwpCP//7YKP/wARHrj///Rrhf8AGHrh/wAAAAD/ABswpAj/AAAAAP8BIEKPBf////rh/wAdJmYF/wAAAAD/AAZo9v//+so9/wAFMKT///mXCv8AAAAACP//qkUf/wAAAAAF///5lwr/AAAAAP//+szN///6zM3/AAAAAP//+ZR7CP8AAAAA//8OJmYF/wAAAAD///zrhf///seu///9DM3///3PXP///c9cCP//eEAA//94MzMF///9z1z///3PXP///Gj2////0ez///29cf8AAhmaCP//7Yeu/wARHrj///RwpP8AGHhS/wAAAAD/ABso9gj/AAAAAP8B7o9cBf8AAAAA/wAGa4X///rMzf8ABTMz///5lHv/AAAAAAj//6pHrv8AAAAABf//+ZR7/wAAAAD///rMzf//+szN/wAAAAD///mUewj/AAAAAP/+B+uFBf8AAAAA//+xMKT/ADC9cf//vNR7/wBE7hT//+RcKQj/AAAKPf8AAAo9Bf8ABuuF///9FHv/AAecKf///l64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AKPf8AAAAACP8AAAzN/wAAAAAF/wAF+uH////mZv8ABNHs///7KPb/AAAAAP//+gKPCP8AAAAA///8+uH///7Hrv///UUf///+Cj3///4Hrgj////9cf////rhBf8AAAAA/wAAAAD/AAAAAP8AAAAA////+uH////9cQj//oBPXP/+kiuFBf//8GPX///xHrj///crhf//61ma/wAAAAD//+pwpAj/AAAAAP//unrhBf8AAAAA///Ua4X/ACNPXP//3LCk/wArlHv/AAAAAAj/Ad1euP8AAAAABf8ABmj2/wAAAAD/AAUwpP8ABTMz/wAAAAD/AAZmZgj/AAAAAP8AUNwpBf8AAAAA/wAGa4X///rPXP8ABTCk///5lwr/AAAAAAgO94f/AEEAAP8DMGuFFf8AAAAA//xMwo8F/wAAAAD///ywpP8AArCk///9VHv/AANKPf8AAAAACP8A3Ao9/wAAAAAF/wADUez/AAAAAP8AAquF/wACrhT/AAAAAP8AA0zNCP8AAAAA/wBRrhQF/wAAAAD/AANPXP///U9c/wACqPb///yzM/8AAAAACP//mk9c/wAAAAAF///5Zmb/AAAAAP//+qPX/wAFWZr/AAAAAP8ABpwpCP8AAAAA/wLsBR8F/wAAAAD/AAaZmv8ABVma/wAFWZr/AAacKf8AAAAACP8AZbCk/wAAAAAF/wADUez/AAAAAP8AAquF/wACsKT/AAAAAP8AA0zNCP8AAAAA/wBRq4UF/wAAAAD/AANMzf///U9c/wACrhT///yzM/8AAAAACP//I/XD/wAAAAAF///8sKT/AAAAAP///VR7///9Uez/AAAAAP///LMzCA74W/8BqZIN///RuuEV/wAEMKT/AAAAAP8AAuPX/wAENcP///6AAP8AA+ZmCP/+2gUf/wL+OFIF////HCn/AAJPXP///ceu/wABhR////2Hrv8AAAAACP//m2Zm/wAAAAAF///7z1z/AAAAAP///Rma///7yj3/AAGAAP///BcKCP8BJfhS//0Bx64F/wAA49f///2wpP8AAjrh///+euH/AAJ4Uv8AAAAACP8AZJma/wAAAAAFDveG/wClB67//3c4UhX/AAaZmv8AAAAA/wAFXCn/AAVUe/8AAAAA/wAGnrgI/wAAAAD/A6dFHwX/AAAAAP8ABpwp///6pmb/AAVZmv//+WPX/wAAAAAI//8v64X/AAAAAAX///lmZv8AAAAA///6pmb///qmZv8AAAAA///5Y9cI/wAAAAD//7pFHwX/AAAAAP//+Wj2/wAFVwr///qj1/8ABpwp/wAAAAAI/wBfuFL/AAAAAAX/AAaZmv8AAAAA/wAFXCn///qo9v8AAAAA///5Y9cI/wAAAAD//RP64QX/AAAAAP//+WZm///6pmb///qj1///+WPX/wAAAAAI//+gR67/AAAAAAX///lo9v8AAAAA///6o9f///qo9v8AAAAA///5ZmYI/wAAAAD//7pHrgX/AAAAAP//+WZm/wAFVwr///qmZv8ABpwp/wAAAAAIDvh3/wApAAD/AGbUexX/AAAAAP//nnXDBf8AAAAA///8zM3/AAOHrv///WZm/wAEXrj/AAAAAAj/AYA1w/8AAAAABf8ABF64/wAAAAD/AAOHrv8AApma/wAAAAD/AAMzMwj/AAAAAP8AYYo9Bf8AAAAA/wADMzP///x4Uv8AApma///7oUj/AAAAAAj//n/KPf8AAAAABf//+6FI/wAAAAD///x4Uv///WZm/wAAAAD///zMzQgO+N3/AgLZmv8B6oo9Ff//q3XD/wAAAAAF///5Vwr/AAAAAP//+pwp///6nCn/AAAAAP//+VcKCP8AAAAA///mWZoF/wAAAAD///quFP//+aFI///9VHv///wmZv8AA64UCP//7eZm/wARXrj//+qcKf8ADe4U///oVHv/AAmAAAj///81w/8AAF64////K4X/AABeuP///xma/wAAYUgI///KAAD/ABaAAP//u49c///0Cj3/AAAAAP8AAAAACP8AAAUf////8zMF///weFL///2euP//8KFI///78zP///DMzf//+i4UCP//5kUf///2Jmb//+khSP//8Jma///r/XH//+sHrgj//+wAAP//6weu///v8zP//+VR7P//8+4U///fmZoI///z64X//9+Zmv//+fhS///ZjM3/AAAAAP//04zNCP8AAAAA///bJmb/AATCj///3Yeu/wAJh67//9/wpAj/AAmFH///3+j2/wAOTM3//+QwpP8AEw9c///ohR8I/wATD1z//+h9cf8AF/hS///taPb/ABzrhf//8lmaCP8AHOZm///yWZr/ACHUe///+Sj2/wAmwAD/AAAAAAj/AAD9cf8AAAAA/wAA/XH/AAAPXP8AAPrh/wAAAo8I/wABlHv////1w/8AAZcK////+FL/AAGXCv8AAAAACP8ANPhS/wAAAAD/ADAUe/8AFOPX/wAjbhT/ACH64Qj/AAPR7P8AA6j2/wAGWZr///1KPf8AAAAA///6szMI/wAAAAD//+beuAX/AAAAAP//+Vma/wAFY9f///qZmv8ABqj2/wAAAAAI/wBOz1z/AAAAAAX/AAamZv8AAAAA/wAFaPb/AAVmZv8AAAAA/wAGpmYI/wAAAAD/AdT9cQX/AAAAAP8ABqZm///6nCn/AAVmZv//+VcK/wAAAAAI//+bI9f//spcKRX///qUe///61cK///3vXH//+1uFP//9OZm///veuEI///03rj//+964f//8bXD///yqPb//+6KPf//9dmaCP//7oUf///11Hv//+s1w///+uuF///n3Cn/AAAAAAj//+h9cf8AAAAA///rrhT/AATFH///7tma/wAJhR8I///u1wr/AAmHrv//8dwp/wAMtcP///Tj1/8AD+FICP//9N64/wAP3Cn///e9cf8AEhwp///6nCn/ABRXCgj///qZmv8AFFR7///9TM3/ABSj1/8AAAAA/wAU+FII/wAAAAD/ABY64f8AAmFI/wAVwo//AATFH/8AFUo9CP8ABMKP/wAVR67/AAfwpP8AEwzN/wALHrj/ABDZmgj/AAscKf8AENHs/wAOTM3/AA2rhf8AEXhS/wAKeuEI/wAReFL/AAp4Uv8AFW4U/wAFQAD/ABlo9v8AAAAACP8AKe4U/wAAAAD/ACEuFP//8MKP/wAYeuH//+GAAAj/ABhzM///4YKP/wAMOuH//9Vrhf8AAAAA///JXrgI/wAAAAD//+pmZv///UzN///q3rj///qcKf//6164CA743f8CD8o9/wFra4UV///z8KT/ACBmZv//7/Mz/wAarhT//+v64f8AFPhSCP//6/1x/wAU+FL//+kj1/8AD2PX///mRR//AAncKQj///DKPf8ABdHs///wo9f/AAQMzf//8HhS/wACYUgI/wAABR//AAAMzQX/AAAAAP8AAAAA//+7kez/AAv1w///ygAA///pgAAI////Fwr///+hSP///yj2////oUj///81w////564CP//6FHs///2gAD//+qR7P//8geu///t5mb//+6hSAj///wwpP///FHs///5o9f/AALAAP8AAAAA/wAFR64I/wAAAAD/AQcKPQX/AAAAAP8ABqZm///6mZr/AAVmZv//+Vma/wAAAAAI//+reuH/AAAAAAX///lXCv8AAAAA///6mZr///qcKf8AAAAA///5VwoI/wAAAAD//T2hSAX/AAAAAP//+Vma/wAFZmb///qZmv8ABqj2/wAAAAAI/wBOzM3/AAAAAAX/AAao9v8AAAAA/wAFZmb/AAVmZv8AAAAA/wAGpmYI/wAAAAD/ABkhSAX/AAAAAP8ABVHs/wAGWZr/AAKwpP8AA9cK///8UewI/wAjbhT//94KPf8AMBHs///rHCn/ADT1w/8AAAAACP8AAZcK/wAAAAD/AAGXCv8AAAeu/wABmZr/AAAKPQj/AAD64f8AAAAA/wAA+uH////uFP8AAP1x/wAAAAAI/wAmwo//AAAAAP8AIdR7/wAG1Hv/ABzmZv8ADaj2CP8AHOj2/wANpmb/ABf4Uv8AEpcK/wATEez/ABeCjwj/ABMPXP8AF3rh/wAOSj3/ABvPXP8ACYeu/wAgFwoI/wAJh67/ACAR7P8ABMKP/wAidcP/AAAAAP8AJNmaCP8AAAAA/wAseFL///n4Uv8AJm4U///z64X/ACBmZgj//51cKf//RjCkFf//+pwp///rqPb///e64f//7ePX///04Uj///AhSAj///TmZv//8Bwp///x2Zr///NPXP//7tcK///2eFII///u1wr///Z1w///67Ck///7QAD//+h9cf8AAAAACP//59wp/wAAAAD//+szM/8ABRR7///uhR//AAoo9gj//+6Hrv8ACiuF///xtcP/AA1Ue///9OPX/wAQh64I///049f/ABCCj///97rh/wASlHv///qZmv8AFKj2CP//+pwp/wAUoUj///1KPf8AFSPX/wAAAAD/ABWXCgj/AAAAAP8ANqFI/wAMQAD/ACqUe/8AGHCk/wAefXEI/wAYdcP/AB59cf8AITCk/wAPQAD/ACnuFP8AAAAACP8AGWuF/wAAAAD/ABVwpP//+sUf/wARdcP///WCjwj/ABF64f//9YUf/wAOSj3///JUe/8ACxwp///vLhQI/wALHrj//+8mZv8AB/Ck///s8zP/AATCj///6rhSCP8ABMKP///qtcP/AAJhSP//6j1x/wAAAAD//+nFHwj/AAAAAP//6weu///9T1z//+tZmv//+pma///rrhQIDviu/wDBcKT/AYKj1xX/AA1XCv8ADQUf/wAOoUj/AAjo9v8AD+Zm/wAExR8I/wAP4Uj/AATHrv8ADvMz/wACYUj/AA4AAP8AAAAACP8AHoKP/wAAAAD/ABlHrv//+DMz/wAUBR////BwpAj/ABHj1///8hR7/wALq4X//+wj1/8ABXhS///mLhQI/wABK4X///puFP8ABOj2///8B67/AAWzM/8AAAAACP8AVS4U/wAAAAAF/wAHTM3/AAAAAP8ABaZm/wAGdcP///79cf8ABzhSCP///IUf/wAYyj3///jhSP8AFdHs///1PXH/ABLcKQj///NCj/8AFkAA///vpmb/ABJuFP//6/hS/wAOo9cI///r+uH/AA6euP//6Rma/wAK+FL//+ZCj/8AB1HsCP//5kAA/wAHTM3//+TR7P8AA6j2///jYUj/AAAAAAj//9dPXP8AAAAA///cjM3///ko9v//4c9c///yVwoI///hzM3///JR7P//5rhS///tQo///+uo9v//6CZmCP//66Zm///oJmb///C9cf//4964///11Hv//9+Uewj///XUe///35R7///66Pb//91XCv8AAAAA///bIUgI/wAAAAD//9vAAP8ABUAA///eSj3/AAp9cf//4NwpCP8ACn1x///g2Zr/AA9o9v//5SFI/wAUXCn//+luFAj/ABRUe///6W4U/wAY+FL//+4wpP8AHY9c///y+FII/wAdj1z///L64f8AIi4U///5eFL/ACbHrv8AAAAACP8AP5R7/wAAAAD/ADMFH/8AEQAA/wAmeFL/ACIFHwj/ACOFH/8AH2j2/wAXczP/ACxKPf8AC2Zm/wA5K4UI/wABfXH/AAd64f//+lcK/wAHAAD///heuP8AAAAACP//q8o9/wAAAAAF///6OuH/AAAAAP//+xcK///73Cn///7rhf//+lR7CP//+g9c///hFHv///Oo9v//55wp///tSj3//+4j1wj//+tXCv//7Eo9///lxR////YmZv//4DXD/wAAAAAI///oeuH/AAAAAP//6/XD/wAE6Pb//+99cf8ACeFICP//73Mz/wAJ2Zr///KCj/8ADN64///1go//AA/mZgj///WCj/8AD+PX///4Xrj/ABIcKf//+zrh/wAUXCkI///7OuH/ABRXCv///Z64/wAUVwr/AAAAAP8AFFmaCP8AAAAA/wAlgo//AARzM/8AHlwp/wAI5mb/ABc4Ugj/AAjj1/8AFzCk/wALIUj/ABIhSP8ADVwp/wANCj0IDvjd/wGuT1z/AtjwpBX///lZmv8AAAAA///6lwr///qcKf8AAAAA///5VHsI/wAAAAD//vj1wwX/AAAAAP//+rMz///5qPb///1FH////DCk/wADq4UI///t5mb/ABFj1///6pHs/wAN8zP//+hR7P8ACYAACP///zXD/wAAXrj///8o9v8AAGFI////Fwr/AABhSAj//8oAAP8AFoAA//+7kez///QKPf8AAAAA/wAAAAAI/wAABR/////zMwX///B4Uv///Z64///wo9f///vwpP//8Mo9///6LhQI///mRR////YmZv//6SFI///wmZr//+wAAP//6weuCP//6/rh///rCj3//+/1w///5U9c///z7hT//9+cKQj///Prhf//35ma///5+FL//9mMzf8AAAAA///TjM0I/wAAAAD//9smZv8ABMKP///dhR//AAmHrv//3/CkCP8ACYeu///f64X/AA5KPf//5DMz/wATD1z//+iAAAj/ABMR7P//6H1x/wAX9cP//+1rhf8AHOuF///yWZoI/wAc6Pb///JZmv8AIdHs///5KPb/ACbCj/8AAAAACP8AAP1x/wAAAAD/AAD64f8AAAzN/wAA+uH/AAACjwj/AAGUe/////hS/wABmZr////4Uv8AAZma/wAAAAAI/wA09cP/AAAAAP8AMBR7/wAU3rj/ACNo9v8AIfrhCP8AA9cK/wADrhT/AAZZmv///Uo9/wAAAAD///qwpAj/AAAAAP//5uFIBf8AAAAA///5Vwr/AAVmZv//+pma/wAGqPb/AAAAAAj/AE7Mzf8AAAAABf8ABqj2/wAAAAD/AAVmZv8ABWZm/wAAAAD/AAao9gj/AAAAAP8Cwl64Bf8AAAAA/wAGqPb///qZmv8ABWZm///5Vwr/AAAAAAj//5shSP/93PXDFf//+pma///rWZr///e64f//7W4U///049f//+964Qj///TeuP//73hS///xtcP///Ko9v//7oeu///11woI///uhR////XUe///6zXD///67hT//+fcKf8AAAAACP//6H1x/wAAAAD//+urhf8ABMKP///u3Cn/AAmHrgj//+7XCv8ACYUf///x3Cn/AAy1w///9OZm/wAP4UgI///03rj/AA/euP//971x/wASHCn///qcKf8AFFcKCP//+pma/wAUUez///1Mzf8AFKZm/wAAAAD/ABT1wwj/AAAAAP8AFj1x/wACY9f/ABXAAP8ABMKP/wAVTM0I/wAEwo//ABVHrv8AB/Mz/wATDM3/AAscKf8AENcKCP8ACxwp/wAQ0ez/AA5Mzf8ADauF/wAReuH/AAp64Qj/ABF4Uv8ACnrh/wAVbhT/AAVAAP8AGWuF/wAAAAAI/wAp64X/AAAAAP8AITMz///wwo//ABh1w///4X1xCP8AGHMz///hgo//AAw9cf//1W4U/wAAAAD//8leuAj/AAAAAP//6mZm///9Sj3//+rcKf//+pwp///rXrgIDvi6/wCYRzn/ANEWUxX/AVreU/8AAAAABf8ABk67/wAAAAD/AAVAH/8ABNUS/wAAgtj/AAZIyQj/AALPpP8AIq+J///9PEH/ACfjw///96je/wAfYv8I///2uvj/ACLKTf//8SeV/wAe0Un//+uUMv8AGs9aCP//645A/wAaz1r//+ZOIP8AFYxB///hCwf/ABBJKAj//+EFFf8AEEYv///dDBL/AAgklP//2RAV/wAAAAAI///a98b/AAAAAP//3soh///49e3//+KlZ///8fe+CP//4p91///x9MX//+butf//7QH3///rQ+f//+gPKAj//+s99f//6Aww///wChv//+Q8zf//9NZA///gZIAI///00E7//+Bnev//+myd///eoH//AAAAAP//3OVpCP8AAAAA///ZsKr/AAVDGP//3OJw/wAKiSv//+AUNgj/AAqJK///4BE9/wAPoqH//+SQEv8AFMIL///pAwEI/wAUvBj//+kDAf8AGWGW///uH3H/AB4EGf//8zvhCP8AHgEg///zO+H/ACJ6Av//+Zx0/wAm8uT/AAAAAAj/ABrSU/8AAAAA/wAZseD/AAOuq/8AGJRm/wAHVGwI/wAYkWz/AAdUa/8AFjLI/wAK3G7/ABPLOf8ADl5/CP8AE8hA/wAOXn//ABDst/8AEbbt/wAODjT/ABUSVQj/AAtTYf8AEP6O/wAIoXn/ABLdU/8ABe+T/wAUvBgI/wACLw//AAektv//+hZg/wAHldf///gN+v8AAAAACP//sGIb/wAAAAAF///7GRf/AAAAAP//+5AK///9Brr///4tIf//+3JNCP//9nmM///oRK////Jov///7ezk///uWur///OPJAj//+yCGP//8kIW///mURr///klgf//4BQ1/wAAAAAI///pAwH/AAAAAP//7DTH/wAD+/z//+9mjf8AB/3sCP//72OU/wAH+vL///JICf8ACrLM///1Jor/AA1nrQj///Ujkv8ADWet///322z/AA+lm///+pY+/wAR4JAI///7MOH/AA/SNv///VES/wAJAKP///90Pf8ADyW8CP///+JD/wADZFT/AAK60/8AAtWX/wADZFT/AAAAAAj/APIFgv8AUSlmFf//DjAF/wAAAAAF///8j8f/AAAAAP///TBc/wAC52//AABBbP8AA20/CP8AASxZ/wAQH4f/AAOQ7/8ADx/K/wAF75P/AA4jBQj/AAaz1v8AD/Ls/wAI7sv/AA3hmf8ACyy5/wAL00AI/wALKb//AAvQR/8ADWqm/wAJQg7/AA+lm/8ABrPWCP8AD6Kh/wAGs9b/ABFmo/8AA1to/wATJ6v/AAAAAAj/ABKBJP8AAAAA/wAQwxX///xRVf8ADwIM///4q5QI/wAO/xP///iom/8ADMcY///2aq7/AAqJK///9DKzCP8ACokr///0L7n/AAhLPP//8htu/wAGE0L///ANFAj/AAVJC///8hKC/wADeST///GVnf8AAaZF///xG7AI/wAAZRv///x98P///Sdw///88en///x3/f8AAAAACA735/8BUPU//wK1e7QV///MabP/AAAAAAX//5h0Pf8AAAAA//+sD+L//6wP4v8AAAAA//+YdD0I/wAAAAD///Z8hQX/AAAAAP///i0g///+hlb///6GV////i0h/wAAAAAI///CBzH/AAAAAAX///mWgf8AAAAA///6y8b///rLxv8AAAAA///5loEI/wAAAAD//7U3LQX/AAAAAP//+ZaB/wAFNDr///rLxv8ABml//wAAAAAI/wA9+M//AAAAAAX/AAHS4P8AAAAA/wABean///6GVv8AAAAA///+LSEI/wAAAAD//oRupgX/AAAAAP//+VIc/wAFacH///qTRv8ABrDe/wAAAAAI/wBUyTP/AAAAAAX/AAat5P8AAAAA/wAFacH/AAVpwf8AAAAA/wAGreQI/wAAAAD/AXuUVAX/AAAAAP8AAdLg/wABear/AAF5qf8AAdLf/wAAAAAI/wBkWf3/AAAAAAX/AAZpf/8AAAAA/wAFNDr/AAU0Ov8AAAAA/wAGaX8I/wAAAAD/AErI0wX/AAAAAP8ABml////6y8b/AAU0Ov//+ZaB/wAAAAAI//+bpgP/AAAAAAX///4tIP8AAAAA///+hlf/AAF5qv8AAAAA/wAB0t8I/wAAAAD/ADPF4f8AKfgP/wAp+A//ADPF4f8AAAAACP8AJFjH/wAAAAAF/wAGreT/AAAAAP8ABWnB/wAFacH/AAAAAP8ABq3kCP8AAAAA/wBPEiEF/wAAAAD/AAat5P//+pY//wAFacH///lSHP8AAAAACA743f8CAtcK/wHth64V//+xMzP/AAAAAAX///lXCv8AAAAA///6mZr///qZmv8AAAAA///5WZoI/wAAAAD//+beuAX/AAAAAP//+rMz///5pmb///1KPf///DCk/wADq4UI///ckez/ACH4Uv//z+uF/wAU49f//8sHrv8AAAAACP///mj2/wAAAAD///5o9v////hS///+Zmb////1wwj///8FH/8AAAAA////BR//AAAR7P///wKP/wAAAAAI///ZPXH/AAAAAP//3i4U///5K4X//+MXCv//8lcKCP//4xcK///yWZr//+gHrv//7Wj2///s7hT//+h9cQj//+zwpP//6IAA///xtcP//+Q1w///9nhS///f6PYI///2eFL//9/uFP//+z1x///dij3/AAAAAP//2yZmCP8AAAAA///TjM3/AAYHrv//2YzN/wAMFHv//9+Zmgj/AAwPXP//35ma/wAQDM3//+VR7P8AFAUf///rB64I/wAUAo///+sHrv8AFt64///wnCn/ABm64f//9iPXCP8ADzXD///6LhT/AA9cKf//+/XD/wAPij3///2euAj////4Uv////MzBf8AAAAA/wAAAAD/AERuFP//9Ao9/wA2Ao//ABaAAAj/AADmZv8AAF64/wAA1wr/AABhSP8AAMo9/wAAXrgI/wAXqPb/AAl9cf8AFWj2/wAN7hT/ABIXCv8AEV64CP8AA9cK/wADsKT/AAZhSP///VR7/wAAAAD///qrhQj/AAAAAP//zVcKBf///+uF/wAAAAAF/wAAAAD//+suFAX/AAAAAP//zGPX///QeFL//9Uo9v//zGPX/wAAAAAI//8XXCn/AAAAAAX///lUe/8AAAAA///6lwr///qXCv8AAAAA///5VHsI/wAAAAD//7E64QX/AAAAAP//+VcK/wAFaPb///qUe/8ABquF/wAAAAAI/wD9oUj/AAAAAAX/AGcwpP8AAAAA/wBTqPb/AFOo9v8AAAAA/wBnOFII/wAAAAD/Ag1PXAX/AAAAAP8ABqZm///6mZr/AAVmZv//+VcK/wAAAAAI//9+jM3//omAABX//+eKPf//4YKP///ez1z///DAAP//1hR7/wAAAAAI///mlHv/AAAAAP//6o9c/wAFPXH//+6KPf8ACn1xCP//7oUf/wAKeFL///G1w/8ADa4U///04Uj/ABDR7Aj///Tj1/8AENcK///4DM3/ABMMzf//+z1x/wAVR64I///7PXH/ABVKPf///Z64/wAVwo//AAAAAP8AFjhSCP8AAAAA/wAU+FL/AAKwpP8AFKPX/wAFZmb/ABRUewj/AAVj1/8AFFcK/wAIQo//ABIcKf8ACyFI/wAP3CkI/wALGZr/AA/mZv8ADiZm/wAMsKT/ABEo9v8ACYeuCP8AESj2/wAJhR//ABRPXP8ABMeu/wAXgo//AAAAAAj/ABgj1/8AAAAA/wAUzM3///rrhf8AEXrh///10ewI/wAReFL///XZmv8ADko9///yqPb/AAseuP//73rhCP8ACxwp///vfXH/AAhFH///7WuF/wAFZmb//+tXCgj/AAVj1///61wp/wACtcP//+rhSP8AAAAA///qZmYI/wAAAAD//8leuP//88AA///VbhT//+ePXP//4Y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pR7P8AGlHs/wAAAAD/ACB1wwj/AAAAAP8AIHMz///lrhT/ABpPXP//34zN/wAAAAAI///fij3/AAAAAP//5a4U///lsKT/AAAAAP//34zNCP8AAAAA///fij3/ABpPXP//5a4U/wAgeFL/AAAAAAgO93b/AHEeuP8CZLCkFf8AII9c/wAAAAD/ABpj1/8AGmPX/wAAAAD/ACCR7Aj/AAAAAP8AIJHs///llwr/ABpeuP//33XD/wAAAAAI///fczP/AAAAAP//5ZcK///lnCn/AAAAAP//33CkCP8AAAAA///fcKT/ABpmZv//5Zma/wAgj1z/AAAAAAj//9S1w///iIAAFf//+VcK/wAAAAD///qUe///+o9c/wAAAAD///lMzQj/AAAAAP/+Gu4UBf8AABR7///1nrgF////7hT//+shSAX/AAAAAP//zDrh///QVHv//9UHrv//zD1x/wAAAAAI///jyj3/AAAAAAX///lMzf8AAAAA///6lHv///qR7P8AAAAA///5T1wI/wAAAAD//7D9cQX/AAAAAP//+U9c/wAFa4X///qR7P8ABrMz/wAAAAAI/wAxRR//AAAAAAX/AGeCj/8AAAAA/wBT64X/AFPrhf8AAAAA/wBnh64I/wAAAAD/Ag7cKQX/AAAAAP8ABrhS///6lHv/AAVrhf//+VcK/wAAAAAIDvit/wE2o33/ATOxCRX///5loP8AAmqJ/wAAXDD/AAM0v/8AAhdF/wACAnQI/wCjnOH/AJ0A1QX/AAfUSv8AB4QA///6rgn/AA04GP//9SaL/wAAAAAI//+deOP/AAAAAAX///zFTv8AAAAA///86/f///616////bwg///9szQI//9JUz7//0aqQwX///w8g////DCf///5gbH/AAKo/P8AAAAA/wAFWuMI/wAAAAD/AZdCtQX/AAAAAP8ABqfy///6nDH/AAVjz///+VgO/wAAAAAI//+rXXX/AAAAAAX///lYDv8AAAAA///6nDH///qcMf8AAAAA///5WA4I/wAAAAD//UBvlQX/AAAAAP//+VgO/wAFY8////qcMf8ABqfy/wAAAAAI/wBUoov/AAAAAAX/AAan8v8AAAAA/wAFY8//AAVjz/8AAAAA/wAGp/II/wAAAAD/AKHb2QX/AAAAAP8AAZ1Z/wAApof/AAGOe/8AASlf/wABIHMI/wA5u2b/ADgJPQX/AAK60/8AAqYC/wAEe9z///93Nf8AAgVt///8yEcI/wCPNA3//xx/pgX/AAI1Av///IDp/wAD2E3///3f0P8ABCKl/wAAAAAI/wBndvL/AAAAAAX/AAmbRf8AAAAA/wAFvQX/AAqyzP//+rEC/wAIAOUI//9AN9j/ASD/PQUO93X/AJquS////P7RFf8ABqcc/wAAAAD/AAVkpP8ABWSk/wAAAAD/AAanHAj/AAAAAP8CwyFZBf8AAAAA/wAGpxz///qbXP8ABWSk///5WOT/AAAAAAj//6tddf8AAAAABf//+Vjk/wAAAAD///qbXP//+ptc/wAAAAD///lY5Aj/AAAAAP/9PN6nBf8AAAAA///5WOT/AAVkpP//+ptc/wAGpxz/AAAAAAgO+c//Al9zM/8B+vrhFf//28AA/wAAAAD//+HHrv//+K4U///n1wr///FeuAj//+p9cf//8vrh///sx67//+6wpP//7wUf///qcKQI////+FL/AAAAAAX///7o9v///pR7///+R67///8Ue////g9c/wAAAAAI///9lwr/AAAAAP///fCk/wABa4X///8KPf8AAgo9CP////hS/wAAAAAF///06Pb/ABdMzf//7xHs/wARkez//+kzM/8AC9HsCP//54AA/wAMszP//+WeuP8ABqPX///jwo//AAChSAj///8hSP8AAAAABf///tcK/wAABR////7XCv8AAAeu///+1wr/AAAAAAj///7AAP8AAAAA///+yj3////1w////seu/////XEI/wAAT1z/AAAAAAX/AAAAAP////CkBf///8eu/wAAAAD////KPf8AAAAA////x67/AAAAAAj///6R7P8AAAo9///+kez/AAAHrv///o9c/wAAAAAI///LMKT/AAAAAP//0A9c///rLhT//9yrhf//3iFICP///DCk///8Vwr///mo9v8AArhS/wAAAAD/AAVKPQj/AAAAAP8AGQKPBf8AAAAA/wAGo9f///qhSP8ABWFI///5WZr/AAAAAAj//7EAAP8AAAAABf//+V64/wAAAAD///qeuP//+p64/wAAAAD///leuAj/AAAAAP/+Ks9cBf8AAAAA///5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AAAA/wAZD1wF/wAAAAD/AAao9v//+pma/wAFZmb///lXCv8AAAAACP//sTXD/wAAAAAF///5Vwr/AAAAAP//+pma///6mZr/AAAAAP//+VcKCP8AAAAA//4rdcMF/wAAAAD///lXCv8ABWZm///6mZr/AAao9v8AAAAACP8AVIUf/wAAAAAF/wAGpmb/AAAAAP8ABWZm/wAFZmb/AAAAAP8ABqj2CP8AAAAA/wEWkewF/wAAAAD/ABHKPf8AAtwp/wAQ1Hv/AAW4Uv8AD+PXCP8ABbXD/wAP3rj/AAfwpP8ADdHs/wAKK4X/AAvCjwj/AAomZv8AC71x/wAMZmb/AAk4Uv8ADpwp/wAGq4UI/wAOmZr/AAarhf8AEIUf/wADVHv/ABJwpP8AAAAACP8AIGPX/wAAAAD/ABfUe///90KP/wAPQAD//+6KPQj/AA89cf//7oKP/wAIQo///+Pj1/8AAUeu///ZQo8I/wAAAAD//tZcKQX/AAAAAP//+Vma/wAFZmb///qZmv8ABqZm/wAAAAAI/wBUhR//AAAAAAX/AAao9v8AAAAA/wAFZmb/AAVmZv8AAAAA/wAGpmYI/wAAAAD/AUZAAAX/AAAAAP8AN+Zm///wa4X/ACnrhf//4OFI/wAb9cMI///g3rj/ABvzM///1W4U/wAN/XH//8oFH/8AAAAACA740P8B1X1x/wGzNcMV///qszP/ABbhSP//5e4U/wAR9cP//+Erhf8ADQo9CP//4SZm/wANB67//9zhSP8ABoUf///Ylwr/AAAAAAj//9iXCv8AAAAA///c3Cn///l64f//4SuF///y+FII///hKPb///L4Uv//5e4U///uCj3//+q1w///6RwpCP//6rMz///pHCn//+/Hrv//5Kj2///04Uj//+A1wwj///TeuP//4DMz///6cKT//91Zmv8AAAAA///afXEI/wAAAAD//9ncKf8ABY9c///dBR//AAshSP//4DhSCP8ACx64///gMKT/ABA4Uv//5K4U/wAVTM3//+kcKQj/ABVKPf//6Rwp/wAaEez//+4FH/8AHtcK///y+uEI/wAe1Hv///L64f8AIx64///5eFL/ACduFP8AAAAACP8AJ2uF/wAAAAD/ACMeuP8ABoeu/wAe1wr/AA0FHwj/AB7Ue/8ADQUf/wAaEez/ABH4Uv8AFUzN/wAW5mYI/wAVSj3/ABbhSP8AEDhS/wAbVHv/AAshSP8AH89cCP8ACxwp/wAfx67/AAWUe/8AIvrh/wAAAAD/ACYj1wj/AAAAAP8AJYKP///6a4X/ACKmZv//9OPX/wAfzM0I///03rj/AB/KPf//78eu/wAbVHv//+q1w/8AFuZmCP//zIKP//8GnCkV///6lHv//+tXCv//95cK///tZmb///SMzf//73hSCP//9I9c///vdcP///FcKf//8qZm///uNcP///XXCgj//+4wpP//9dHs///rBR////ro9v//59cK/wAAAAAI///n1wr/AAAAAP//6wKP/wAFFwr//+4zM/8ACi4UCP//7jCk/wAKKPb///Fj1/8ADVma///0jM3/ABCKPQj///SMzf8AEIeu///3kez/ABKZmv//+pma/wAUqPYI///6lwr/ABSmZv///UzN/wAVJmb/AAAAAP8AFZ64CP8AAAAA/wAU+uH/AAKzM/8AFPrh/wAFaPb/ABT9cQj/AAVj1/8AFPrh/wAIbhT/ABKZmv8AC3XD/wAQNcMI/wALcKT/ABA4Uv8ADp64/wANLhT/ABHPXP8ACi4UCP8AEczN/wAKKPb/ABT64f8ABRma/wAYK4X/AAAAAAj/ABgrhf8AAAAA/wAU+FL///rmZv8AEc9c///11woI/wARyj3///XR7P8ADqFI///y0ez/AAtzM///78euCP8AC3Mz///vyj3/AAho9v//7WZm/wAFa4X//+sFHwj/AAVj1///6wUf/wACtcP//+sFH/8AAAAA///rAo8I/wAAAAD//+pj1////UzN///q1wr///qZmv//61maCA743f8B6LXD/wGthR8V///s8KT/ABeCj///6Ao9/wASlwr//+MR7P8ADaZmCP//4xma/wANpmb//94uFP8ABtcK///ZOuH/AAAAAAj///8FH/8AAAAA////BR/////wpP///wKP/////XEI///+aPb/AAAHrv///muF/wAACj3///5mZv8AAAAACP//ywo9/wAAAAD//8/rhf//6x64///clHv//94Hrgj///wrhf///FR7///5pmb/AAKwpP8AAAAA/wAFT1wI/wAAAAD/ABkhSAX/AAAAAP8ABqZm///6mZr/AAVmZv//+VcK/wAAAAAI//+xNcP/AAAAAAX///lXCv8AAAAA///6mZr///qZmv8AAAAA///5WZoI/wAAAAD//UKMzQX/AAAAAP//+VcK/wAFZmb///qZmv8ABqj2/wAAAAAI/wBUhR//AAAAAAX/AAamZv8AAAAA/wAFZmb/AAVmZv8AAAAA/wAGqPYI/wAAAAD/AQIhSAX/AAAAAP8ABUeu/wAGWZr/AALAAP8AA89c///8UewI/wASHCn//+6euP8AFWuF///yCj3/ABeuFP//9oAACP8AAMo9////oUj/AADXCv///6FI/wAA5mb///+euAj/ADYCj///6YAA/wBEbhT/AAv1w/8AAAAA/wAAAAAI////+FL/AAAMzQX/AA+Hrv8AAmFI/wAPXrj/AAQMzf8ADzXD/wAFz1wI/wAZuuH/AAncKf8AFt64/wAPY9f/ABQAAP8AFPhSCP8AFAUf/wAU+FL/ABAKPf8AGq4U/wAMEez/ACBmZgj/AAwR7P8AIGPX/wAGCj3/ACZzM/8AAAAA/wAsdcMI/wAAAAD/ACTcKf//+z1x/wAidcP///Z1w/8AIBHsCP//9nhS/wAgFwr///GzM/8AG8o9///s8KT/ABeAAAj//8Vo9v//DIeuFf//+z1x///quFL///gPXP//7PMz///04Uj//+8o9gj///Tj1///7y4U///xszP///JR7P//7oUf///1h64I///uh67///WFH///6pHs///6wAD//+aUe/8AAAAACP//1hHs/wAAAAD//97PXP8AD0AA///nij3/AB59cQj//+eKPf8AHn1x///zxR//ACqUe/8AAAAA/wA2nrgI/wAAAAD/ABWZmv8AArXD/wAVIUj/AAVj1/8AFKFICP8ABWZm/wAUqPb/AAhFH/8AEpHs/wALHCn/ABCFHwj/AAseuP8AEIeu/wAOSj3/AA1Ue/8AEXhS/wAKKPYI/wAReuH/AAoo9v8AFMzN/wAFFHv/ABgj1/8AAAAACP8AF4KP/wAAAAD/ABRPXP//+zrh/wARKPb///Z64Qj/ABEo9v//9nhS/wAOIUj///NKPf8ACxwp///wIUgI/wALIUj///AhSP8ACEKP///t49f/AAVj1///66j2CP8ABWZm///rq4X/AAKwpP//61ma/wAAAAD//+sKPQj/AAAAAP//6cUf///9nrj//+pAAP//+z1x///qtcMIDvjd/wG0D1z/Ae1FHxX///lZmv8AAAAA///6lwr///qXCv8AAAAA///5WZoI/wAAAAD//+beuAX/AAAAAP//+rCk///5pmb///1PXP///CuF/wADq4UI///ckez/ACH64f//z+uF/wAU3rj//8sKPf8AAAAACP///mj2/wAAAAD///5o9v////hS///+aPb////1wwj///8Cj/8AAAKP////BR//AAAPXP///wUf/wAAAAAI///ZOuH/AAAAAP//3i4U///5K4X//+MZmv//8lcKCP//4xR7///yWZr//+gHrv//7WuF///s8KT//+h64Qj//+zuFP//6IKP///xuFL//+QzM///9nXD///f6PYI///2eFL//9/uFP//+zrh///dij3/AAAAAP//2yPXCP8AAAAA///Tij3/AAYHrv//2Y9c/wAMFHv//9+Zmgj/AAwPXP//35ma/wAQDM3//+VR7P8AFAUf///rB64I/wAUAo///+sHrv8AFtwp///wnCn/ABm64f//9iPXCP8ADzCk///6LhT/AA9hSP//+/XD/wAPh67///2euAj////64f////MzBf8AAAAA/wAAAAD/AERuFP//9Ao9/wA2AAD/ABaAAAj/AADo9v8AAF64/wAA1wr/AABhSP8AAMo9/wAAXrgI/wAXrhT/AAmCj/8AFW4U/wAN8zP/ABIZmv8AEWPXCP8AA89c/wADqPb/AAZcKf///UUf/wAAAAD///q1wwj/AAAAAP/+/d64Bf8AAAAA///5Vwr/AAVmZv//+pma/wAGpmb/AAAAAAj/AFSFH/8AAAAABf8ABqj2/wAAAAD/AAVmZv8ABWZm/wAAAAD/AAao9gj/AAAAAP8CvXXDBf8AAAAA/wAGpmb///qZmv8ABWj2///5Vwr/AAAAAAj//36PXP/+iX1xFf//54o9///hgo///97PXP//8MAA///WEez/AAAAAAj//+aUe/8AAAAA///qj1z/AAU9cf//7oo9/wAKfXEI///uhR//AAp4Uv//8bXD/wANrhT///TmZv8AENHsCP//9N64/wAQ1wr///gPXP8AEwzN///7PXH/ABVHrgj///s9cf8AFUo9///9nrj/ABXCj/8AAAAA/wAWOFII/wAAAAD/ABT4Uv8AArCk/wAUo9f/AAVmZv8AFFR7CP8ABWPX/wAUVwr/AAhCj/8AEhma/wALIUj/AA/hSAj/AAscKf8AD+PX/wAOI9f/AAywpP8AESZm/wAJh64I/wARKPb/AAmFH/8AFE9c/wAExR//ABeCj/8AAAAACP8AGCPX/wAAAAD/ABTMzf//+uuF/wAReuH///XXCgj/ABF1w///9dcK/wAOTM3///Ko9v8ACxwp///veuEI/wALHCn//+964f8ACEUf///tbhT/AAVmZv//61cKCP8ABWPX///rXCn/AAK1w///6uFI/wAAAAD//+pmZgj/AAAAAP//yV64///zwAD//9Vrhf//549c///hhR8IDvf+/wFQeFL/AfjeuBX///6PXP8AADCk///+j1z/AAAzM////pR7/wAALhQI///7OuH/AAChSP//90Uf/wAAUez///NHrv8AAAAACP///u4U/wAAAAD///7wpP////rh///+8KT////64Qj/AAhmZv8AAAAABf8AAAAA////8KQF////x67/AAAAAP///8o9/wAAAAD////Hrv8AAAAACP///pHs/wAAB67///6R7P8AAAo9///+kez/AAAAAAj//8s1w/////1x///QEez//+suFP//3K4U///eJmYI///8MKT///xZmv//+auF/wACtcP/AAAAAP8ABUo9CP8AAAAA/wAY/XEF/wAAAAD/AAaj1///+p64/wAFY9f///lZmv8AAAAACP//sgAA/wAAAAAF///5Xrj/AAAAAP//+p64///6nrj/AAAAAP//+V64CP8AAAAA//4q+FIF/wAAAAD///leuP8ABWFI///6nrj/AAahSP8AAAAACP8AVLCk/wAAAAAF/wAGo9f/AAAAAP8ABWFI/wAFYUj/AAAAAP8ABqFICP8AAAAA/wDelwoF/wAAAAD/ABtUe/8AA3rh/wAYKPb/AAcAAP8AFP1xCP8ABwAA/wAU+uH/AAmHrv8AEaZm/wAMFHv/AA5PXAj/AAwR7P8ADkzN/wAOKPb/AArMzf8AEDXD/wAHUewI/wAQNcP/AAdPXP8AEU9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jM3///uHrv8AEtcK///3EewI/wAQlwr///gcKf8AC0eu///xa4X/AAXwpP//6rhSCP8AAXXD///6wAD/AAS9cf///FR7/wAFdcP/AAAAAAj/AFpZmv8AAAAABf8AB5R7/wAAAAD/AAWzM/8ABuZm///+mZr/AAd1wwj///wFH/8AFVma///45mb/ABKrhf//9ceu/wAQAAAI///zj1z/ABN4Uv//8FcK/wAPzM3//+0uFP8ADCFICP//7Sj2/wAMHrj//+rwpP8ACMeu///oszP/AAVwpAj//+iuFP8ABWuF///nlHv/AAK4Uv//5nhS/wAAAAAI///pqPb/AAAAAP//6Ieu///9wo///+duFP//+4o9CP//52j2///7h67//+mo9v//+CuF///r5mb///TUewj//+vj1///9NR7///vY9f///FR7P//8uuF///tz1wI///y6Pb//+3PXP//+XXD///peuH/AAAAAP//5TCkCP8AAAAA///nGZr/AAR1w///6xcK/wAI8KT//+8XCgj/AAjuFP//7xHs/wAL+FL///IeuP8ADwKP///1JmYI/wAO+uH///Uj1/8AEO4U///3YUj/ABLXCv//+Z64CP8AEtHs///5nCn/ABOhSP//+pR7/wAUcKT///uKPQj/ABPHrv//+4eu/wATeuH///vZmv8AEyj2///8K4UI/wATI9f///wuFP8AERR7///7WZr/AA8Cj///+pcKCP8ADv1x///6j1z/AAxMzf//+NHs/wAJlHv///cR7Aj/AAmR7P//9wzN/wAFHCn///SAAP8AAKPX///x+FII/wAAnrj///HzM////KZm///0q4X///irhf//92FICP//+Kj2///3YUj///aUe///+XMz///0go////uKPQj///SCj///+4eu///zszP///z4Uv//8uuF///+ZmYI///y6Pb///5mZv//9FR7////NcP///XPXP8AAAAACP//4p64/wAAAAD//+bKPf8ABmFI///q7hT/AAzHrgj//+04Uv8AC2FI///0Uez/ABL9cf//+24U/wAanCkI////Ao//AAXPXP//+vhS/wAEPXH///ocKf8AAAAACA733f8BIHGa/wBnAucV///hZD7/AAAAAAX//8xjwP8AAAAA///QeoH/ACrXF/8AAAAA/wAznD8I////7ij/ABTQ6QX/AAAR2P8ACladBf8AAAAA/wCbB0wF/wAAAAD/AAZpf/8ABTFB/wAFMUH/AAZpf/8AAAAACP8AYns4/wAAAAAF/wAGaX//AAAAAP8ABTFB/wAFMUH/AAAAAP8ABml/CP8AAAAA/wBKk0wF/wAAAAD/AAZpf///+s6//wAFMUH///mWgf8AAAAACP//nYTI/wAAAAAF///5loH/AAAAAP//+s6//wAFMUH/AAAAAP8ABml/CP8AAAAA/wBzSjIF/wAAAAD/AAan8v//+o1T/wAFcq3///lYDv8AAAAACP//q3JH/wAAAAAF///5WA7/AAAAAP//+pwx///6nDH/AAAAAP//+VgOCP8AAAAA//5O+ZQF/wAAAAD//5jKev8AU6u5//+sVEf/AGc1hv8AAAAACP8AM5Ba/wAAAAAF/wAGqur/AAAAAP8ABWnC/wAFZsj/AAAAAP8ABq3kCP8AAAAA/wBOxM8F/wAAAAD/AAaq6v//+pk4/wAFacL///lSHP8AAAAACA74tf8B2pHs/wHtMKQV//+reuH/AAAAAAX///lZmv8AAAAA///6mZr///qXCv8AAAAA///5WZoI/wAAAAD//ulrhQX/AAAAAP//7jhS///9I9f//+8o9v//+keu///wHCkI///6Sj3///Aj1///+A9c///yK4X///XUe///9EAACP//9dma///0QAD///OZmv//9seu///xY9f///lUewj///FmZv//+VcK///veuH///yo9v//7Y9c/wAAAAAI///fnCn/AAAAAP//6CuF/wAIwAD///DAAP8AEXXDCP//8MAA/wAReuH///fAAP8AHBwp///+uFL/ACa9cQj/AAAAAP8BKaFIBf8AAAAA/wAGpmb///qZmv8ABWj2///5WZr/AAAAAAj//6t64f8AAAAABf//+VcK/wAAAAD///qZmv//+pcK/wAAAAD///lZmgj/AAAAAP/+ucUfBf8AAAAA///IHCn/AA+Ue///1hHs/wAfHrj//+QKPQj/AB8hSP//5AzN/wAqkez///IFH/8ANfrh/wAAAAAI/wABfXH/AAAAAP8AAXXD/wAAB67/AAF64f8AAAo9CP8AAW4U////9cP/AAFwpP////hS/wABcKT/AAAAAAj/ADTuFP8AAAAA/wAwD1z/ABTcKf8AI2j2/wAh8KQI/wAD1wr/AAOrhf8ABlma///9T1z/AAAAAP//+rCkCP8AAAAA///m7hQF/wAAAAD///lZmv8ABWZm///6mZr/AAao9v8AAAAACP8ATszN/wAAAAAF/wAGqPb/AAAAAP8ABWZm/wAFZmb/AAAAAP8ABqZmCP8AAAAA/wHUij0F/wAAAAD/AAamZv//+pma/wAFaPb///lXCv8AAAAACA74hv8B0CaQ/wHmEewV//+hxR//AAAAAAX///rUe/8AAAAA///7go////x64f///sKP///6+uEI//+lSj3//pFZmgX///6PXP//9/hS///5BR////oo9v//99ma/wAAAAAI///55mb/AAAAAAX///fXCv8AAAAA///5BR//AAXXCv///o9c/wAIB64I//+lTM3/AW6mZgX///7Cj/8ABQUf///7go//AAOFH///+tcK/wAAAAAI//+hxR//AAAAAAX///iuFP8AAAAA///6pmb///keuP8AAcUf///45mYI/wBofXH//mEHrgX/AAcHrv//2t64/wAgbhT//+UeuP8AJco9/wAAAAAI/wBZOuH/AAAAAAX/ACXKPf8AAAAA/wAgbhT/ABreuP8ABweu/wAlI9cI/wBofXH/AZ74UgX/AAHHrv8ABxma///6o9f/AAbhSP//+K4U/wAAAAAIDvmI/wK0MzP/AenuFBX//6smZv8AAAAABf//+U9c/wAAAAD///qXCv//+pR7/wAAAAD///lPXAj/AAAAAP/+zso9Bf8AAAAA///aR67//+7Ue///4Cj2///iszP///FrhQj///YmZv//+49c///1HCn///1zM///9H1x/wAAAAAI///1Y9f/AAAAAP//9euF/wACIUj///bHrv8AA89cCP//4ceu/wAN5mb//+qmZv8AHYAA///9Y9f/ACLCjwj/AAAAAP8BODrhBf8AAAAA/wAGsKT///qR7P8ABWuF///5Uez/AAAAAAj//6qj1/8AAAAABf//+VHs/wAAAAD///qR7P//+pR7/wAAAAD///lPXAj/AAAAAP/+xcUfBf///XhS///eT1z//+99cf//4/rh///lGZr///KZmgj///YmZv//+49c///1HCn///1zM///9Hrh/wAAAAAI///1Zmb/AAAAAP//9euF/wACIUj///bFH/8AA89cCP//38KP/wAO1wr//+mMzf8AIIUf/wAAAAD/ACXR7Aj/AAAAAP8BMTXDBf8AAAAA/wAGsKT///qXCv8ABWuF///5T1z/AAAAAAj//6sj1/8AAAAABf//+VHs/wAAAAD///qUe///+pR7/wAAAAD///lPXAj/AAAAAP/+xUKPBf8AAAAA//+YY9f/AFQCj///snCk/wBnnCn/AAAAAAj/AAY1w/8AAAAABf8AM+Zm/wAAAAD/AC71w/8AE3Mz/wAh+FL/ACBzMwj/ACH1w///34zN/wAu+uH//+yMzf8AM+PX/wAAAAAI/wAGMzP/AAAAAAX/AGeeuP8AAAAA/wBUAAD/AE2Mzf8AAAAA/wBnnrgI/wAAAAD/ATq9cQX/AAAAAP8ABrCk///6lHv/AAVrhf//+VHs/wAAAAAIDvjA/wF1ZhT/AOvj1xX///0mZv8AA+4U/wAAAAD/AAVKPf8AAtma/wAD7hQI/wCgaPb/AN5mZgX/AAVZmv8AB2uF///6sKT/AAphSP//9tma/wAAAAAI//+hQAD/AAAAAAX///xhSP8AAAAA///8nrj///5FH////ePX///9EewI//98R67//0mPXAX///3j1////RR7///8nrj///5Cj////GPX/wAAAAAI///9LhT/AAAAAAX///xj1/8AAAAA///8nCn/AAG64f///ePX/wAC7hQI//98R67/ALZwpAX///3j1/8AAu4U///8nCn/AAG64f///GZm/wAAAAAI//+f+uH/AAAAAAX///bXCv8AAAAA///6szP///WeuP8ABVma///4lHsI/wCgaPb//yGZmgX/AALUe////BHs/////XH///q1w////S4U///8EewI//9fqPb//yJ4UgX///qeuP//+I9c/wAFT1z///WeuP8ACSuF/wAAAAAI/wBf+FL/AAAAAAX/AAOcKf8AAAAA/wADYUj/AAG64f8AAhwp/wAC7hQI/wCDuFL/ALZwpAX/AAIcKf8AAuuF/wADYUj/AAG9cf8AA564/wAAAAAI/wAC0ez/AAAAAAX/AAOcKf8AAAAA/wADYUj///5FH/8AAh64///9EewI/wCDtcP//0mPXAX/AAIeuP///RHs/wADYUj///5FH/8AA5wp/wAAAAAI/wBeszP/AAAAAAX/AAkrhf8AAAAA/wAFT1z/AApmZv//+p64/wAHa4UI//9fqPb/AN2HrgUO+LX/AYYMzf8B7FwpFf//+V64/wAAAAD///qXCv//+pcK/wAAAAD///lcKQj/AAAAAP/+6Wj2Bf8AAAAA///uOFL///0hSP//7yuF///6R67///AXCgj///pMzf//8CFI///4Cj3///I1w///9dcK///0OFII///13rj///RAAP//85cK///2yj3///FhSP//+VcKCP//8Wj2///5VHv//+94Uv///K4U///tlwr/AAAAAAj//9+XCv8AAAAA///oK4X/AAi1w///8MKP/wAReuEI///wwo//ABF1w///971x/wAcHCn///64Uv8AJr1xCP8AAAAA/wEpqPYF/wAAAAD/AAaj1///+p64/wAFaPb///lUe/8AAAAACP//q3rh/wAAAAAF///5VHv/AAAAAP//+pcK///6lwr/AAAAAP//+VwpCP8AAAAA//65wo8F/wAAAAD//8gcKf8AD5R7///WFwr/AB8euP//5AAACP8AHyZm///kDM3/ACqPXP//8go9/wA1/XH/AAAAAAj/AAF1w/8AAAAA/wABa4X////o9v8AAXhS/wAAB64I/wABT1z////64f8AAVma/wAAFwr/AAFPXP////1xCP8AMtcK/wABWZr/AC4KPf8AFJR7/wAiOuH/ACDR7Aj/AAPR7P8AA6j2/wAGWZr///1Hrv8AAAAA///6szMI/wAAAAD//82HrgX////uFP8AAAAABf8AAAAA///rLhQF/wAAAAD//8xj1///0Hrh///VKPb//8xhSP8AAAAACP//RZcK/wAAAAAF///5VHv/AAAAAP//+pcK///6mZr/AAAAAP//+VHsCP8AAAAA//+xOuEF/wAAAAD///lXCv8ABWj2///6lHv/AAarhf8AAAAACP8Az2j2/wAAAAAF/wBnLhT/AAAAAP8AU6j2/wBTqPb/AAAAAP8AZzhSCP8AAAAA/wINWZoF/wAAAAD/AAaj1///+pcK/wAFaPb///lcKf8AAAAACA74gv8Aqt64/wB73CkV/wD2zM3/ALmKPQX/ABY1w/8ADjhS/wANcKT/ABiPXP8AAAAA/wAaYUgI/wAAAAD/AChmZgX/AAAAAP8AKrhS///dXCn/ACKj1///1Ueu/wAAAAAI//63o9f/AAAAAAX///mXCv8AAAAA///6z1z///rPXP8AAAAA///5lwoI/wAAAAD//6/MzQX/AAAAAP//+ZcK/wAFMKT///rMzf8ABmj2/wAAAAAI/wEb/XH/AAAAAAX/AAtzM/8AAAAA/wAEij3///EwpP//9oUf///5lwoI//7z8KT//y2euAX//+q1w///8Z64///zQo///+f64f8AAAAA///mUewI/wAAAAD//+9euAX/AAAAAP//1UUf/wAio9f//91cKf8AKrhS/wAAAAAI/wFIXCn/AAAAAAX/AAZo9v8AAAAA/wAFMKT/AAUwpP8AAAAA/wAGaPYI/wAAAAD/AFAKPQX/AAAAAP8ABmj2///6z1z/AAUwpP//+ZcK/wAAAAAI//73aPb/AAAAAAX///RmZv8AAAAA///7lHv/AA8j1/8ACcAA/wAGQAAIDvfa/wAwAAD/AUTrhRX/AAAAAP//8GZm/wAK49f///KCj/8ADz1x///8q4UI/wAA6Pb////MzQX/AAsXCv///Y9c/wAKx67///uuFP8ACmPX///5wo8I/wAKZmb///nCj/8ACQKP///3VHv/AAehSP//9OZmCP8AB564///06Pb/AAPUe///8iFI/wAAAAD//+9Zmgj/AAAAAP//MgKPBf8AAAAA///nvXH/AATZmv//6tma/wAJtcP//+31wwj/AAmzM///7fhS/wALyj3///EXCv8ADeFI///0MzMI/wAN3rj///Q1w/8ADpHs///3WZr/AA9FH///+m4UCP8ADz1x///6dcP/AA0uFP///TXD/wALGZr/AAAAAAj/AFiwpP8AAAAABf8AA09c/wAAAAD/AAKuFP8AArCk/wAAAAD/AANMzQj/AAAAAP8AUauFBf8AAAAA/wADUez///1PXP8AAqj2///8szP/AAAAAAj//8zCj/8AAAAABf//8s9c/wAAAAD///WcKf8AAkKP///4Y9f/AASCjwj///hZmv8ABIUf///6Hrj/AAXhSP//+9R7/wAHSj0I///71wr/AAdFH////WPX/wAIAo////71w/8ACKZmCP///vXD/wAIq4X///964f8ACCj2/wAAAAD/AAecKQj/AAAAAP8AxKFIBf8AAAAA/wAY+FL///vXCv8AE+4U///3q4X/AA7rhQj///ezM/8ADuuF///2Fwr/AAtwpP//9I9c/wAH+uEI///0kez/AAf4Uv//9DMz/wAFYUj///PeuP8AAseuCP//89wp/wACwo////XFH/8AAb1x///3q4X/AACzMwj/AAAAAP8AAhR7Bf8ACFR7/wAAsKT/AAo64f8AAj1x/wAMI9f/AAPR7Aj/AAweuP8AA9Hs/wALz1z/AAXmZv8AC24U/wAH+uEI/wALcKT/AAf4Uv8ACeZm/wAK64X/AAhPXP8ADeFICP8ACFR7/wAN3rj/AAQo9v8AEVcK/wAAAAD/ABTMzQj/AAAAAP8Ayt64Bf8AAAAA/wAHnrj/AACHrv8ACCj2/wABB67/AAirhQj/AAEMzf8ACKuF/wACmZr/AAf64f8ABCj2/wAHR64I/wAEK4X/AAdKPf8ABeFI/wAF49f/AAemZv8ABIKPCP8AB5wp/wAEfXH/AApj1/8AAkUf/wANMKT/AAAAAAj/ADM9cf8AAAAABf8AA09c/wAAAAD/AAKuFP8AArCk/wAAAAD/AANMzQj/AAAAAP8AUauFBf8AAAAA/wADTM3///1PXP8AAq4U///8szP/AAAAAAj//6dPXP8AAAAABf//9OZm/wAAAAD///LR7P///ThS///wwo////p1wwj///C64f//+m4U///xcKT///dUe///8h64///0OuEI///yHrj///QwpP//9DXD///xFwr///ZMzf//7frhCP//9keu///t9cP///so9v//6tma/wAAAAD//+e64Qj/AAAAAP//KbMzBf8AAAAA///wuuH///wrhf//84Uf///4YUj///ZMzQj///heuP//9kUf///3AAD///g1w///9ZcK///6HCkI///1lwr///oZmv//9T1x///8Ao////To9v///euFCP//8FR7///9Eez///ShSP//8lHs/wAAAAD///AMzQgO94H/AEEAAP8C1ZmaFf8AAAAA//ymlwoF/wAAAAD///09cf8AArCk///9x67/AANKPf8AAAAACP8AXij2/wAAAAAF/wADUez/AAAAAP8AAqj2/wACOFL/AAAAAP8AAsKPCP8AAAAA/wNZaPYF/wAAAAD/AALCj////VR7/wACOuH///ywpP8AAAAACP//odcK/wAAAAAF///8sKT/AAAAAP///VR7///9xR//AAAAAP///T1xCA732v8BFaFI/wFmaPYV/wAAAAD/ABDAAP//9FR7/wAOgo///++hSP8AA5maCP////XD/wAAAAAF///049f/AAJo9v//9UKP/wAEWZr///WXCv8ABj1xCP//9ZcK/wAGOuH///co9v8ACKuF///4uuH/AAsZmgj///i1w/8ACxR7///8XCn/AA3hSP8AAAAA/wAQqPYI/wAAAAD/AM364QX/AAAAAP8AGEUf///7IUj/ABUmZv//9k9c/wASCj0I///2RR//ABIFH///9DXD/wAO6Pb///Ij1/8AC89cCP//8h64/wALyj3///FwpP8ACKZm///wvXH/AAWR7Aj///C64f8ABYo9///y1Hv/AALHrv//9Oj2/wAAAAAI//+nT1z/AAAAAAX///ywpP8AAAAA///9VHv///1R7P8AAAAA///8szMI/wAAAAD//65XCgX/AAAAAP///LCk/wACsKT///1R7P8AA0o9/wAAAAAI/wAzPXH/AAAAAAX/AA0o9v8AAAAA/wAKaPb///3AAP8AB6FI///7fXEI/wAHnrj///t64f8ABeZm///6Hrj/AAQrhf//+LXDCP8ABCj2///4uFL/AAKeuP//+AUf/wABBR////dUewj/AAEMzf//91R7/wAAh67///fXCv8AAAAA///4Y9cI/wAAAAD//ztj1wX/AAAAAP//5wUf/wAEKPb//+wPXP8ACFHs///xFwoI/wAIT1z///EUe/8ACeZm///0j1z/AAtwpP//+AeuCP8AC3Ck///4BR//AAvHrv//+p64/wAMJmb///064Qj/AAwhSP///Trh/wAKPXH///5Cj/8ACFHs////T1wI/wAAAAD///3rhQX///euFP///pwp///1wAD///2R7P//8+FI///8ij0I///z3Cn///yCj///9DXD///6Sj3///SPXP//+AeuCP//9I9c///4BR////YcKf//9RHs///3rhT///Ij1wj///euFP//8h64///71wr//+6rhf8AAAAA///rMKQI/wAAAAD//zUj1wX/AAAAAP//+GFI////dcP///fXCv///vXD///3VHsI///+9cP///dXCv///WZm///4BR////vXCv//+LXDCP//+9R7///4tcP///oZ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ACP//q29N/wAAAAAF///5WA7/AAAAAP//+pwx///6nDH/AAAAAP//+VgOCP8AAAAA//5O/I0F/wAAAAD//5jKev8AU6u5//+sVEf/AGc1hv8AAAAACP8AM5Ba/wAAAAAF/wAGqur/AAAAAP8ABWnC/wAFZsj/AAAAAP8ABq3kCP8AAAAA/wBOxM8F/wAAAAD/AAaq6v//+pY//wAFacL///lVFf8AAAAACP//4WQ+/wAAAAAF///MY8D/AAAAAP//0HqB/wAq1xf/AAAAAP8AM5w/CP///+4o/wAU0OkF/wAAEdj/AApWnQX/AAAAAP8AmSuBBf8AAAAA/wAGaX//AAUxQf8ABTFB/wAGaX//AAAAAAj/ALKQEP8AAAAABf8AAAAA//8xlPQF/wAAAAD//5jKev8AU6u5//+sVEf/AGc1hv8AAAAACP8AM5Ba/wAAAAAF/wAGqur/AAAAAP8ABWnC/wAFZsj/AAAAAP8ABq3kCP8AAAAA/wBOxM8F/wAAAAD/AAaq6v//+pY//wAFacL///lVFf8AAAAACA74xf8CBiOV/wFfGz4V///03yz/AB/LFP//78iv/wAbWCX//+q1K/8AFuI7CP//6rIy/wAW4jv//+Xu9/8AEfVg///hK73/AA0LfQj//+Ely/8ADQWL///c4nD/AAaHO///2JMw/wAAAAAI///YkzD/AAAAAP//3N92///5eMX//+Ervf//8vp1CP//4SjF///y93z//+Xu9///7gqg///qtSv//+kaywj//+qyMv//6R3F///vyK///+Sn2///9OIm///gNOwI///03yz//+Ax8///+m+W///dXFz/AAAAAP//2n3ZCP8AAAAA///Z2kz/AAWQav//3QYf/wALINT//+A35Qj/AAsd2v//4DHz/wAQN1H//+Stzv8AFU3O///pGssI/wAVStX//+kdxf8AGhEI///uBK3/AB7XPP//8vp1CP8AHtRD///y+nX/ACMgif//+XjF/wAnbNH/AAAAAAj/ACds0P8AAAAA/wAjHZD/AAaHO/8AHto1/wANBYsI/wAe1EP/AA0Fi/8AGhEI/wAR+Fn/ABVNz/8AFuU1CP8ADFwK/wANSfD/AAqYCf8ADtJ4/wAI5d//ABBMIgj/AAQ6b/8AB7x////6Udr/AAl9iP//9y7x/wAAAAAI//+eUfj/AAAAAAX///ySwf8AAAAA///80TP///5omf///cgF///9YuoI///1/6D///Qpx///9CnH///1/6D///Ibbv//+BDyCP//7jFI///10wX//+sFdf//+umD///n1qn/AAAAAAj//+fWqf8AAAAA///rAnz/AAUWff//7jRC/wAKLPsI///uMUj/AAoqAv//8WMP/wANWM7///SL6f8AEIqVCP///IzO/wAE+7r///zXJv8ABS5I///9HoT/AAVd3Aj///ySwf8ABl2Z/wADBSv/AAfyB/8ABteF/wACWLEI/wD4S1H/AFVvuwX/AAHG+/8AAJqiBf8AAAAA/wAAAAD/AAAAAP////Ei/wAAAAD////6Dgj/AGHXqv8AIanZBf8ABTFB/wAByfT/AANSfP8ABTQ6////TZT/AAVvtAj///1XBP8AFJti///7kAr/ABOwdf//+Xu+/wASodoI//6MmS3//9VwSBX/AAn9Z/8AJvjX/wAXcPj/ACJ8+/8AI5GK/wAUeqwI/wAnn17/ABbNa/8ANSTI/wADNL//AChXvP//6P0OCP8AEcu+///10wX/AA6i5P//8tDU/wALcR7//+/Irwj/AAXR1v//98Co/wAE8s7///cOPP8ABDd2///2f38I/wABXub///zo/v///lm7///8WkD///zLQf///uV/CP8AAAAA/wAAAAD//wH6pP//qJm2////Juv///+1qAj///JruP//+1SR/wAGjS7/AC6ak/8AAReH/wAG42sI/wAA3A7/AAVpwf8AARqB/wAFWuP/AAFY9P8ABUkLCA76O/8AExma/wK1rhQV///5T1z/AAAAAP//+pcK///6lwr/AAAAAP//+U9cCP8AAAAA//+vTM0F/wAAAAD///lR7P8ABWj2///6lHv/AAawpP8AAAAACP8Av24U/wAAAAAF/wAGOFL/AAAAAP8ABQo9///69cP/AAAAAP//+cUfCP8AAAAA//3Kyj0F/wAAAAD///lR7P8ABW4U///6kez/AAauFP8AAAAACP8AVOj2/wAAAAAF/wAGrhT/AAAAAP8ABW4U/wAFaPb/AAAAAP8ABrMzCP8AAAAA/wI1OFIF/wAAAAD/AAY64f8ABQo9/wAFCj3/AAY4Uv8AAAAACP8A+mj2/wAAAAAF/wAGOuH/AAAAAP8ABQo9///69cP/AAAAAP//+cUfCP8AAAAA//3Kyj0F/wAAAAD///lR7P8ABWj2///6kez/AAawpP8AAAAACP8AVOuF/wAAAAAF/wAGrhT/AAAAAP8ABWuF/wAFa4X/AAAAAP8ABrCkCP8AAAAA/wI1NcMF/wAAAAD/AAY64f8ABQzN/wAFCj3/AAY4Uv8AAAAACP8Av2uF/wAAAAAF/wAGrhT/AAAAAP8ABWuF/wAFbhT/AAAAAP8ABq4UCP8AAAAA/wBQrhQF/wAAAAD/AAauFP//+pcK/wAFa4X///lPXP8AAAAACA75iv8CzFcK/wK16PYV//+rJmb/AAAAAAX///mXCv8AAAAA///6zM3///rMzf8AAAAA///5lwoI/wAAAAD//2UrhQX/AAAAAP//9DCk///9/XH///RMzf///A9c///03rgI//96B67//oUj1wX///7cKf///QKP///9Hrj///3hSP///Jwp/wAAAAAI///7nCn/AAAAAP///HCk/wADjM3/AAAAAP8ABGPXCP8AAAAA/wDzoUgF/wAAAAD/ACZ9cf//4MzN/wAfMzP//9mCj/8AAAAACP//0Zma/wAAAAAF///idcP/AAAAAP//5a4U///tYUj///YmZv//5Cj2CP//oKuF//7yY9cF///+4Uj///z4Uv///RcK///91wr///yR7P8AAAAACP//+6PX/wAAAAD///x64f8AA4AA////9cP/AARZmgj/AAAAAP8CNZcKBf8AAAAA/wAGaPb///rKPf8ABTMz///5lwr/AAAAAAj//6smZv8AAAAABf//+ZR7/wAAAAD///rMzf//+szN/wAAAAD///mXCgj/AAAAAP/9kKuFBf8AAAAA///fx67/ABocKf//5ePX/wAgNcP/AAAAAAj/AFNo9v8AAAAABf8AGWZm/wAAAAD/ABWcKf8AEDrh/wAIAAD/ABao9gj/AAAKPf8AAAAABf8AX6PX/wEOY9cF/wAIzM3/AAAAAAX/AAAAAP//BIAABf8AAEzN///gCj3/ABnzM///5i4U/wAgB67/AAAAAAj/AFmo9v8AAAAABf8AGWZm/wAAAAD/ABWcKf8AEDrh/wAIAAD/ABao9gj/AAAHrv8AAAAABf8Alij2/wGoeuEF/wAIAAD/ABahSP8AAWj2/wAZkez/AAA1w/8AC2uFCP8AAAAA/wCeo9cF/wAAAAD/AAZwpP//+seu/wAFMzP///mUe/8AAAAACA75Xv8B/EUf/wK16PYV///mZmb/AAAAAP//6jXD///v0ez///eZmv//6VHsCP//pYAA//8AK4UF///+K4X///rZmv//+LMz/wAAAAD///4rhf8ABSZmCP//pVma/wEAR64F////+FL/AAAFHwX///d64f8AFnCk///qSj3/AA/zM///5pR7/wAAAAAI//+tY9f/AAAAAAX//9/uFP8AAAAA///l/XH//+X9cf8AAAAA///f7hQI/wAAAAD//YTPXAX/AGwZmv8AAAAABf8AAAAA/wJAvXEF/wAAAo//AAAAAAX/AAAAAP8ABGj2/wADlHv/AAOUe/8ABGj2/wAAAAAI/wADcKT/AAAAAP8AAu4U///91Hv/AAEhSP///PXDCP8ARxma//8264UF/wAP1wr//9KzMwX/AAnHrv//5Aeu/wAaYUj//+1FH/8AHaPX/wAAAAAI/wAgQAD/AAAAAAX/AB2Ue/8AAAAA/wAaWZr/ABKrhf8ACdHs/wAb5mYI/wAP49f/AC0mZgX/AEczM/8AyVR7Bf8AAR64/wADD1z/AALuFP8AAi4U/wADczP/AAAAAAj/AARo9v8AAAAA/wADlHv///xrhf8AAAAA///7lwoI/wAAAAD//b9CjwX/AGwZmv8AAAAABf8AAAAA/wJ7MKQF/wAAAAD/ACAR7P//5f1x/wAaAo///9/uFP8AAAAACA75Ev8B0mZm/wK16PYV/wAAAAD//b9CjwX////9cf8AAAAABf8AAAAA///7lwr///xrhf///GuF///7lwr/AAAAAAj///yPXP8AAAAA///9Eez/AAIrhf///uFI/wADDM0I//+JqPb/AU6o9gX////FH/8AAKZm////q4X/AACR7P///71x/wAAo9cI//+3nrj/AMyUewX////4Uv8AAAUfBf//93rh/wAWcKT//+pKPf8AD/Mz///mlHv/AAAAAAj//8SeuP8AAAAABf//0xcK/wAAAAD//9uZmv//25ma/wAAAAD//9MXCgj/AAAAAP/9nAo9Bf8AbBma/wAAAAAF/wAAAAD/AkC9cQX/AAACj/8AAAAABf8AAAAA/wAEaPb/AAOUe/8AA5R7/wAEaPb/AAAAAAj/AANwpP8AAAAA/wAC7hT///3Ue/8AASFI///89cMI/wB2VHv//rFXCgX/AAA64f///1ma/wAAVwr///9uFP8AAEAA////XCkI/wBIYUj//zNrhQX/AAAKPf////hSBf8ACIKP///pj1z/ABW1w///8AzN/wAZa4X/AAAAAAj/ADthSP8AAAAABf8ALOj2/wAAAAD/ACRmZv8AJGj2/wAAAAD/ACzmZgj/AAAAAP8CY/XDBQ75Gv8B8fxh/wK1ssoV////oNf/AAAAAP///6nE////6Db///+j0P////0HCP///7ub/wAAAAD////Bjf8AABrD////u5v/AAAAAAj///DOX/8AAAAABf//19Hl/wAAAAD//9q8TP//6wto///rHT///92voAj//5CCNv//SL6OBf8AACC2/wAAAAAF//72dLX//krlzQX///tLpf//+ECH/wAFk2P///YXav8ACQ+B/wAAAAAI/wBiy4L/AAAAAAX/AAQN1P8AAAAA/wADw33/AAIdOP8AAho+/wADdisI/wBpFEv/AKysYgX/AAIaPv8AA3Yr/wADw33/AAIdOP8ABA3U/wAAAAAI/wDdzzv/AAAAAAX/AAZpf/8AAAAA/wAFNDr///rLxv8AAAAA///5loEI/wAAAAD//1+gygX/AAAAAP//+ZaB/wAFNDr///rLxv8ABml//wAAAAAI/wBVwAX/AAAAAAX/AAZpf/8AAAAA/wAFNDr/AAU0Ov8AAAAA/wAGaX8I/wAAAAD/AmRvkQX/AAAAAP8AJhzI///gzJX/AB7mGv//2YEV/wAAAAAI///YsO3//mSsfhX/AAAAAP///MtB///9ZeP///1l4////MtB/wAAAAAI//9YXjf/AAAAAAX///t4QP8AAAAA///9Nk//AAT1yP8AAluq/wAD3kAI/wCjfCv/AQyoQAX/AAFqy/8AAkba/wACiz//AAGIiP8AAuR1/wAA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2Bv/wAAAAAF///5WOT/AAAAAP//+ptc///6m1z/AAAAAP//+VjkCP8AAAAA//083qcF/wAAAAD///lY5P8ABWSk///6m1z/AAanHP8AAAAACA76Pf8DDeEF/wHwkykV////3FH/AAAAAP///+U8////7ij////cUf////0HCP//Cu9h/wAAAAAF///51+7/AAAAAP//+wc//wAE+7r////6Dv8ABiUZCP////cU/wAEHLMF/wAAEdj/ABTiwQX/AAAAAP8AM8Xh/wAvrCj/ACr3zf8AM8Lo/wAAAAAI/wAcNyz/AAAAAAX/AAaw3v8AAAAA/wAFbLr/AAVsuv8AAAAA/wAGsN4I/wAAAAD/AE8ASQX/AAAAAP8ABrDe///6k0b/AAVsuv//+U8i/wAAAAAI///OuXj/AAAAAAX//5h9Kf8AAAAA//+sGM3//6wV1P8AAAAA//+YgCII/wAAAAD//9x3YgX////6Dv8AAAAABf8AAAAA///51+7///sBTf//+wFM///51+3/AAAAAAj//0QEQf8AAAAABf//+dfu/wAAAAD///sHP/8ABPu6////+g7/AAYlGQj////3FP8ABByzBf8AABHY/wAU4sEF/wAAAAD/ADPF4f8AL6wo/wAq9NP/ADPC6P8AAAAACP8AHDcs/wAAAAAF/wAGsN7/AAAAAP8ABWy6/wAFbLr/AAAAAP8ABrDeCP8AAAAA/wBPA0IF/wAAAAD/AAaw3v//+pNG/wAFbLr///lPIv8AAAAACP//zrl4/wAAAAAF//+Ygxz/AAAAAP//rBXU//+sFdT/AAAAAP//mH0pCP8AAAAA///cd2IF////+g7/AAAAAAX/AAAAAP//+dfu///7AU3///sBTP//+dft/wAAAAAI///L0gr/AAAAAAX///mWgf8AAAAA///6y8b///rLxv8AAAAA///5loEI/wAAAAD//7OT4gX/AAAAAP//+ZaB/wAFNDr///rLxv8ABml//wAAAAAI/wAzvPX/AAAAAAX/AAZpf/8AAAAA/wAFNDr///rLxv8AAAAA///5loEI/wAAAAD//ors9QX/AAAAAP//+VIc/wAFdab///qKWv8ABq3k/wAAAAAI/wBU1Rj/AAAAAAX/AAaq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AAAAAAAAAAAAAAAAAAP/6/9oAAAAAAAAAAAAAAAAAAAAAAAD/7//1//oAAAAAAAD/9QAA//n/+//3//v/+wAAAAD/7//wAAAAAAAAAAEASQAGAAoADwARABMAFQAWABcAGAAZABoAGwAcAB0AHgAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0AQQBDAEQARQBGAEcASQBKAEsATQBOAE8AUABRAFMAVABVAFcAWQBhAGIAYwBkAGUAZgBnAGgAaQBqAGsAbABtAAEAAABuAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAIAAAACAAAAAwAAAAQABQAGAAcACAAJAAUAAwAKAAoAAAAAAAAAAAAAAAsADAANAA4ADwAQABEAEgASABMAFAAVABIAEgAWABcAGAAZABoAGwATABwAHQAeABMAHwAAAAAAAAACAAAAIAAhABIAIgAjAAAAJAAlACUAAAASACYAJgAnACcAAAAoACkAKgAAACsAAAAsAAAAAAAAAAAAAAAAAAAAKgAtABsALgASABIAEgASAC8AMAAxABIAMQABAAAAbgAAAAAAAAAAAAAAAQACAAAAAAAAAAIAAwAEAAUAAAAGAAAABgAHAAgACQAKAAsADAANAAgADgAPABAAEQARAAAAAAAAABIAAAATABQAFQAUABoAFgAVABcAFwAYABcAGQAXABcAGgAXABoAFAAAABsAGQAAABkAAAAAAAAAAAAcAB0ABgAjABcAIwAeACMAHwAjABcAIAAhABcAFwAiACIAIwAiACMAIgAkACUAJgAnACgAKQAmACoAKwAAACwAAAAAACUAIwAbABcAFwAXAC0ALQAuAC4ALwAuAC4AAAABAAAACgA0AFAAAkRGTFQADmxhdG4AHAAEAAAAAP//AAIAAAABAAQAAAAA//8AAgAAAAEAAmFhbHQADmxpZ2EAFgAAAAIAAAABAAAAAQACAAMACAAqAEYAAQAAAAEACAACAA4ABABlAGYAZABiAAEABAAwADEAOgBGAAMAAAABAAgAAQAIAAEADgABAAEAJAACAGcAaAAEAAAAAQAIAAEATAADAAwAF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LDcwLDcyLDgyLDk4XSwiSUQiOjM1fSwiMTE1Ijp7ImdseXBocyI6Wzg0XSwiSUQiOjM2fSwiMTE2Ijp7ImdseXBocyI6Wzg1LDk3XSwiSUQiOjM3fSwiMTE3Ijp7ImdseXBocyI6Wzg2LDkwXSwiSUQiOjM4fSwiMTE4Ijp7ImdseXBocyI6Wzg3XSwiSUQiOjM5fSwiMTE5Ijp7ImdseXBocyI6Wzg4XSwiSUQiOjQwfSwiMTIwIjp7ImdseXBocyI6Wzg5XSwiSUQiOjQxfSwiMTIyIjp7ImdseXBocyI6WzkxXSwiSUQiOjQyfSwiMTIzIjp7ImdseXBocyI6WzkyXSwiSUQiOjQzfSwiMTI1Ijp7ImdseXBocyI6Wzk0XSwiSUQiOjQ0fSwiNjE0NTciOnsiZ2x5cGhzIjpbMTAzLDEwNF0sIklEIjo0NX0sIjYxNDU5Ijp7ImdseXBocyI6WzEwNSwxMDYsMTA4LDEwOV0sIklEIjo0Nn0sIjY0MjU3Ijp7ImdseXBocyI6WzEwN10sIklEIjo0N319fSwibWlzc2luZ0Nhc2VTdWJzdGl0dXRpb24iOjB9AAAA);src:Fynd-Sans}.fynd-intelligence__dashboard{width:100%;height:100%;position:relative;overflow:hidden}.fynd-intelligence__dashboard iframe{width:100%;height:100%;border:none}.fynd-intelligence__loading{display:none}.fynd-intelligence__reports{width:100%;height:100%;position:relative;overflow:hidden}.fynd-intelligence__reports iframe{width:100%;height:100%;border:none}.fynd-intelligence-error{height:100%;width:100%;position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-family:Fynd-Sans,sans-serif}.fynd-intelligence-error__image{width:192px;height:192px}.fynd-intelligence-error__title{font-size:32px;line-height:44px;font-weight:400;font-family:inherit;letter-spacing:-1.2px;margin:0;text-align:center;color:#101319}.fynd-intelligence-error__description{color:#101319;font-family:inherit;font-size:18px;font-weight:400;line-height:26.1px;margin:12px 0 0;text-align:center}")),document.head.appendChild(e)}}catch{}})();function Alt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var k8={exports:{}},QA={};var M8,Mre;function Fre(){if(Mre)return M8;Mre=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return M8=i()?Object.assign:function(o,s){for(var a,l=r(o),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var d in a)t.call(a,d)&&(l[d]=a[d]);if(e){u=e(a);for(var p=0;p<u.length;p++)n.call(a,u[p])&&(l[u[p]]=a[u[p]])}}return l},M8}var Bre;function mlt(){if(Bre)return QA;Bre=1,Fre();var e=C,t=60103;if(QA.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),QA.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,u){var c,d={},p=null,h=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(c in l)i.call(l,c)&&!o.hasOwnProperty(c)&&(d[c]=l[c]);if(a&&a.defaultProps)for(c in l=a.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:t,type:a,key:p,ref:h,props:d,_owner:r.current}}return QA.jsx=s,QA.jsxs=s,QA}var jre={};var $re;function glt(){return $re||($re=1,(function(e){process.env.NODE_ENV!=="production"&&(function(){var t=C,n=Fre(),r=60103,i=60106;e.Fragment=60107;var o=60108,s=60114,a=60109,l=60110,u=60112,c=60113,d=60120,p=60115,h=60116,A=60121,g=60122,m=60117,E=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;r=v("react.element"),i=v("react.portal"),e.Fragment=v("react.fragment"),o=v("react.strict_mode"),s=v("react.profiler"),a=v("react.provider"),l=v("react.context"),u=v("react.forward_ref"),c=v("react.suspense"),d=v("react.suspense_list"),p=v("react.memo"),h=v("react.lazy"),A=v("react.block"),g=v("react.server.block"),m=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),E=v("react.debug_trace_mode"),v("react.offscreen"),y=v("react.legacy_hidden")}var T=typeof Symbol=="function"&&Symbol.iterator,_="@@iterator";function x(De){if(De===null||typeof De!="object")return null;var it=T&&De[T]||De[_];return typeof it=="function"?it:null}var b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(De){{for(var it=arguments.length,ut=new Array(it>1?it-1:0),yt=1;yt<it;yt++)ut[yt-1]=arguments[yt];D("error",De,ut)}}function D(De,it,ut){{var yt=b.ReactDebugCurrentFrame,It=yt.getStackAddendum();It!==""&&(it+="%s",ut=ut.concat([It]));var Ft=ut.map(function(Lt){return""+Lt});Ft.unshift("Warning: "+it),Function.prototype.apply.call(console[De],console,Ft)}}var I=!1;function P(De){return!!(typeof De=="string"||typeof De=="function"||De===e.Fragment||De===s||De===E||De===o||De===c||De===d||De===y||I||typeof De=="object"&&De!==null&&(De.$$typeof===h||De.$$typeof===p||De.$$typeof===a||De.$$typeof===l||De.$$typeof===u||De.$$typeof===m||De.$$typeof===A||De[0]===g))}function k(De,it,ut){var yt=it.displayName||it.name||"";return De.displayName||(yt!==""?ut+"("+yt+")":ut)}function N(De){return De.displayName||"Context"}function L(De){if(De==null)return null;if(typeof De.tag=="number"&&w("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof De=="function")return De.displayName||De.name||null;if(typeof De=="string")return De;switch(De){case e.Fragment:return"Fragment";case i:return"Portal";case s:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof De=="object")switch(De.$$typeof){case l:var it=De;return N(it)+".Consumer";case a:var ut=De;return N(ut._context)+".Provider";case u:return k(De,De.render,"ForwardRef");case p:return L(De.type);case A:return L(De._render);case h:{var yt=De,It=yt._payload,Ft=yt._init;try{return L(Ft(It))}catch{return null}}}return null}var M=0,B,Q,V,q,F,G,W;function R(){}R.__reactDisabledLog=!0;function j(){{if(M===0){B=console.log,Q=console.info,V=console.warn,q=console.error,F=console.group,G=console.groupCollapsed,W=console.groupEnd;var De={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:De,log:De,warn:De,error:De,group:De,groupCollapsed:De,groupEnd:De})}M++}}function $(){{if(M--,M===0){var De={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},De,{value:B}),info:n({},De,{value:Q}),warn:n({},De,{value:V}),error:n({},De,{value:q}),group:n({},De,{value:F}),groupCollapsed:n({},De,{value:G}),groupEnd:n({},De,{value:W})})}M<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=b.ReactCurrentDispatcher,z;function H(De,it,ut){{if(z===void 0)try{throw Error()}catch(It){var yt=It.stack.trim().match(/\n( *(at )?)/);z=yt&&yt[1]||""}return`
|
|
653
|
+
`)}async function wat(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await _at(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function Iat(e,t={}){const{width:n,height:r}=hre(e,t),i=await Tx(e,t,!0);return await wat(i,t),await Sre(i,t),Tat(i,t),await Qst(i,n,r)}async function Dat(e,t={}){const{width:n,height:r}=hre(e,t),i=await Iat(e,t),o=await vx(i),s=document.createElement("canvas"),a=s.getContext("2d"),l=t.pixelRatio||Vst(),u=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=u*l,s.height=c*l,t.skipAutoScale||Gst(s),s.style.width=`${u}`,s.style.height=`${c}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(o,0,0,s.width,s.height),s}async function Rat(e,t={}){return(await Dat(e,t)).toDataURL()}const Ire=1024*2,Dre=768*2,Pat=({nodes:e,edges:t,open:n,onClose:r})=>{const i=ht.useDispatch(),o=O.useTheme(),{ENTITY_ID:s,WORKFLOW_URLS:a,analytics:l}=wi(),{captureEvent:u,WORKFLOW_EVENTS:c}=l||{},{VORTEX_MAIN_URL:d}=a,{canvasWorkflow:p}=ht.useSelector(w=>w.canvas),{share:h}=ht.useSelector(w=>w.workflows),A=C.useRef(),g=C.useMemo(()=>{const w=Il("nodes_update",e)||[],D=Il("edges_update",null,t)||[];return{...p,nodes:w,edges:D}},[p,e,t]),m=C.useCallback(()=>{!d||!s||i(Iue(d,s,g))},[i,d,s,g]),E=C.useCallback((w,D="success")=>{i({type:zn,payload:{open:!0,title:w,type:D}})},[i]),y=C.useCallback(async()=>{const w=h?.data?.url;if(w)try{await navigator.clipboard.writeText(w),E("Link copied to clipboard","success")}catch{const D=document.createElement("textarea");D.value=w,document.body.appendChild(D),D.select();try{document.execCommand("copy"),E("Link copied to clipboard","success")}catch{E("Failed to copy link","error")}finally{document.body.removeChild(D)}}},[E,h?.data?.url]),v=C.useCallback(async(w,D)=>{try{const I=await Tue(w),P=new Blob([JSON.stringify(I,null,2)],{type:"application/json"}),k=URL.createObjectURL(P),N=document.createElement("a");N.href=k,N.download=`${D||"workflow"}.json`,document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL(k),u?.(c?.WORKFLOW?.EXPORTED_JSON,{"console.product_account_id":s,message:"Workflow exported as JSON",workflow_name:D})}catch{E("Failed to download JSON","error")}},[E,u,c,s]),T=C.useCallback((w,D)=>{const I=document.createElement("a");I.setAttribute("download",`${D}.png`),I.setAttribute("href",w),I.click()},[]),_=C.useCallback(async()=>{try{if(!e?.length){E("No nodes to export","warning");return}const w=document.querySelector(".react-flow__viewport");if(!w){E("Canvas not found","error");return}const D=Dt.getNodesBounds(e),I=Dt.getViewportForBounds(D,Ire,Dre,.5,2,"12px"),P=await Rat(w,{backgroundColor:o.palette.white.smoke,width:Ire,height:Dre,style:{transform:`translate(${I.x}px, ${I.y}px) scale(${I.zoom})`}});T(P,p?.name||"workflow"),u?.(c?.WORKFLOW?.EXPORTED_IMAGE,{"console.product_account_id":s,message:"Workflow exported as PNG",workflow_name:p?.name})}catch{E("Failed to export image","error")}},[e,o,T,E,p?.name,u,c,s]);C.useEffect(()=>{n&&m()},[n,g]),C.useEffect(()=>{const w=h?.data?.url;!h.loading&&w&&w!==A.current&&(A.current=w,u?.(c?.WORKFLOW?.SHARED,{"console.product_account_id":s,message:"Workflow shared successfully",url:w}))},[h.loading,h?.data?.url,u,c,s]);const x=h?.data?.url||"",b=!!x&&!h.loading;return f.jsx(vo,{variant:"medium",open:n,handleClose:r,title:"Export workflow",content:f.jsxs(O.Stack,{alignItems:"center",justifyContent:"center",width:"100%",gap:2,children:[h.loading?f.jsx(O.Stack,{direction:"row",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",children:f.jsx(O.CircularProgress,{size:30})}):f.jsxs(O.Stack,{width:"100%",justifyContent:"flex-end",children:[f.jsx(io,{label:"Workflow link",fullWidth:!0,viewOnly:!0,variant:"outlined",disabled:!0,InputLabelProps:{shrink:!1},sx:{"& input":{px:1,height:40,fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},"&.MuiFormControl-root.MuiTextField-root label":{fontSize:14,color:o.palette.text.tertiary},"& .MuiOutlinedInput-root":{height:40,paddingRight:"8px !important"}},value:x||"No link generated",InputProps:{endAdornment:f.jsx(O.IconButton,{onClick:y,disabled:!b,children:f.jsx(Ue,{src:"ic_copy",width:20,height:20})})}}),f.jsx(O.Typography,{variant:"body2",sx:{color:w=>w.palette.text.tertiary},mt:1,children:"If the generated link expires after 7 days, you can copy it again from here."})]}),f.jsx(O.Divider,{orientation:"horizontal","aria-hidden":"true",flexItem:!0,children:"Or"}),f.jsxs(O.Stack,{direction:"row",width:"100%",gap:1.5,children:[f.jsx(O.Button,{sx:{width:"50%"},onClick:()=>v(g,p?.name||"workflow"),startIcon:f.jsx(Ue,{src:"ic_export",height:20,width:20,sx:{"& path":{fill:o.palette.neutral.solid.bg}}}),fullWidth:!0,variant:"outlined",color:"neutral",size:"large",children:"Export JSON"}),f.jsx(O.Button,{sx:{width:"50%"},onClick:_,startIcon:f.jsx(Ue,{src:"ic_export",height:20,width:20,sx:{"& path":{fill:o.palette.neutral.solid.bg}}}),fullWidth:!0,variant:"outlined",color:"neutral",size:"large",children:"Export PNG"})]})]})})},Nat=({editWorkflowName:e,setEditWorkflowName:t})=>{const{canvasWorkflow:n}=ht.useSelector(l=>l.canvas),r=Oo(),i=ht.useDispatch(),o=l=>{i({type:ac,payload:{...n,name:l}})},s=l=>l.length>50?(i({type:zn,payload:{open:!0,title:"Maximum Length is 50 characters",type:"error"}}),"Maximum Length is 50 characters"):l.length===0?(i({type:zn,payload:{open:!0,title:"Workflow Name can't be empty",type:"error"}}),"Workflow Name can't be empty"):null,a=()=>Ot(n)?!1:r!==kr.DRAFT;return f.jsx(Uz,{value:n.name,onSave:o,isEditing:e,setIsEditing:t,disabled:a(),maxLength:50,validate:s,variant:"lgBold",maxWidth:600,textSx:{color:l=>l.palette.grey.dark},inputSx:{".MuiInputBase-input":{py:.5,px:1,fontSize:"18px",fontWeight:700},"& .MuiInputBase-root.MuiOutlinedInput-root":{minHeight:32}},autoResize:!0,enableDoubleClick:!0,showEditIcon:!0})},Lat=({VORTEX_MAIN_URL:e,ENTITY_ID:t})=>{const n=ht.useDispatch(),{trigger_help:r,workflow:i,versions:o}=ht.useSelector(g=>g.workflows),[s,a]=C.useState(""),[l,u]=C.useState("get"),[c,d]=C.useState({}),p=Tr(Pn.VERSION),h=Tr(),A={URL:"https://cdn.pixelbin.io/v2/fyndcloud/original/url.svg",Python:"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/python.svg",cURL:"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/curl.svg",JavaScript:"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/javascript.svg"};return C.useEffect(()=>{n(Fb(p||h,e,t))},[]),C.useEffect(()=>{if(!Ot(r)){const g={},m=[];r?.items?.forEach(E=>{m.push(E.title),E.snippets.forEach(y=>{g[E.title]||(g[E.title]={}),g[E.title][y.title]=y.value})}),d({...g,methods:m}),u(m[0]),a(Object.keys(g[m[0]])[0])}},[r]),C.useEffect(()=>{if(!o){const g={page:1,per_page:10},m=Oo(),E=[Pn.PUBLISHED,Pn.SCHEDULED].includes(m)?p:i?.parent_id;E&&n(Of(g,E,e,t))}},[i?.parent_id,h]),f.jsxs(O.Box,{sx:{width:"100%"},children:[f.jsx(O.Stack,{justifyContent:"space-between",alignItems:"center",direction:"row",children:f.jsxs(O.Stack,{alignItems:"center",direction:"row",spacing:1,pb:2,children:[f.jsxs(O.FormControl,{sx:{minWidth:120},children:[f.jsx(O.InputLabel,{id:"method-select-label",children:"Method"}),f.jsx(O.Select,{labelId:"method-select-label",value:c?.methods?.includes(l)?l:"",label:"Method",onChange:g=>{const m=g.target.value;u(m);const E=Object.keys(c[m]||{});a(E[0])},children:c?.methods?.map(g=>f.jsx(O.MenuItem,{value:g,children:g.toUpperCase()},g))})]}),f.jsxs(O.FormControl,{sx:{minWidth:160},children:[f.jsx(O.InputLabel,{id:"language-select-label",children:"Language"}),f.jsx(O.Select,{labelId:"language-select-label",value:c?.[l]&&Object.keys(c[l]||{}).includes(s)?s:"",label:"Language",onChange:g=>a(g.target.value),renderValue:g=>f.jsxs(O.Stack,{direction:"row",alignItems:"center",children:[f.jsx(oh,{src:A[g],alt:g,asHtmlElement:!0,style:{marginRight:8}}),g]}),children:(Object.keys(c[l]||{})||[]).map(g=>f.jsx(O.MenuItem,{value:g,children:f.jsxs(O.Stack,{direction:"row",alignItems:"center",children:[f.jsx(oh,{src:A[g],alt:g,asHtmlElement:!0,style:{marginRight:8}}),g]})},g))})]})]})}),f.jsx(Do,{viewOnly:!0,height:"300px",language:s.toLowerCase()==="curl"?"bash":s.toLowerCase(),value:c?.[l]?.[s]||"",handleChange:()=>{},showCopyToClipboard:!0,size:"md"},G3())]})},kat=(e,t,n="")=>{const[r,i]=C.useState([]),[o,s]=C.useState(!1),a=C.useMemo(()=>({page:1,per_page:999}),[]),l=C.useCallback(async()=>{if(e){s(!0);try{if(n){const u=Yt(t,`/v1.0/${e}/workflows/${n}/versions`),{data:c}=await Xt.get(u,{params:a});i(c?.data||[])}}catch{}finally{s(!1)}}},[e,t,n,a]);return C.useEffect(()=>{l()},[e,n,t,a,l]),{versions:r,isLoading:o,fetchVersions:l}},Mat=(e,t,n)=>{const[r,i]=C.useState({}),[o,s]=C.useState(!1);return C.useEffect(()=>{(async()=>{const l=e.find(u=>u.status===kr.PUBLISHED||u.status===kr.SCHEDULED);if(!(!Array.isArray(e)||e.length===0||!l)){s(!0);try{const u=Yt(n,`/v1.0/${t}/`,`/workflows/${e[0].id}`),c=await Xt.get(u);i(c?.data?.data||{})}catch{}finally{s(!1)}}})()},[e,t,n]),{publishedData:r,isLoading:o}},Fat=({label:e,onClick:t,isDisabled:n,leftIcon:r,color:i,menuItemStyles:o,...s})=>{const a=O.useTheme();return f.jsxs(O.Grid,{container:!0,direction:"row",spacing:8,onClick:t,...s,sx:{justifyContent:"flex-start",alignItems:"center",paddingY:1.5,gap:1,px:1,py:.75,height:34,borderRadius:2,cursor:n?"not-allowed":"pointer",...o,"&:hover":{backgroundColor:n?"auto":a.palette.white.smoke,...n?{}:o?.["&:hover"]},"&:active":{backgroundColor:"primary.20",color:i||a.palette.primary.main,...o?.["&:active"]}},children:[r&&r,f.jsx(O.Typography,{variant:"mdNormal",sx:{color:l=>n?l.palette.neutral.main:i||l.palette.text.primary},children:e})]})},Rre=({menuItems:e,iconContainerStyles:t={},popoverContentStyles:n={},onIconClick:r,size:i="medium",isActive:o=!1,icon:s,sx:a={},menuItemStyles:l={}})=>{const u=O.useTheme(),[c,d]=C.useState(null),p={medium:{width:24,height:24},small:{width:16,height:16},large:{width:32,height:32}},h=E=>{E.stopPropagation(),E.preventDefault(),d(E.currentTarget),r?.()},A=()=>{d(null)},g=!!c,m=g?"simple-popover":void 0;return f.jsxs(f.Fragment,{children:[f.jsx(O.Box,{onClick:h,sx:{cursor:"pointer",width:"fit-content",float:"right",...t},"data-testid":"context-menu-icon",children:s?f.jsx(oh,{src:s,alt:"more-options",asHtmlElement:!0,sx:{...p[i],"& path":{fill:o?"primary.main":"gray.100"},"&:hover":{"& svg path":{fill:`${u.palette.text.primary}`}}}}):f.jsx(O.IconButton,{disableRipple:!0,sx:{...Nse,p:0,...p[i],"&:hover":{backgroundColor:u.palette.neutral[100],"&:hover":{"& .inline-svg svg path":{transition:"fill 0.2s ease"},"& svg path":{fill:`${u.palette.text.primary}`}}}},"data-testid":"button-context-menu",children:f.jsx(Ue,{src:"ic_context_menu",width:p[i],height:p[i],sx:{path:{fill:u.palette.text.icon}}})})}),f.jsx(O.Popover,{id:m,open:g,anchorEl:c,onClose:A,sx:{top:-2,left:8,"& .MuiPaper-root.MuiPopover-paper":{borderRadius:2,boxShadow:`0px 2px 8px -2px ${u.palette.secondary.main}, 0px 6px 12px -2px ${u.palette.secondary.main}`},margin:"10px 0",...a},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},"data-testid":"popover-context-menu",children:f.jsx(O.Stack,{sx:{p:1,gap:.5,...n},children:e.map(({label:E,onClick:y,isDisabled:v,icon:T,color:_,...x},b)=>f.jsx(Fat,{"data-testid":`menu-item-${b}`,label:E,isDisabled:v,onClick:w=>{w.stopPropagation(),w.preventDefault(),v||y(w),A()},leftIcon:T,color:_,sx:{width:"100%"},menuItemStyles:l,...x},`context-menu-${typeof E=="string"?E:"object"}-${b}`))})})]})},Bat=({nodes:e,draftWorkflow:t,setActiveMenu:n,setDeleteWorkflowPopup:r,GYRATE_MAIN_URL:i})=>{const o=O.useTheme(),{workflow:s}=ht.useSelector(h=>h.workflows),{viewOnly:a}=ht.useSelector(h=>h.canvas),l=Oo(),u=!e?.some(h=>h.type!==xt.PLACEHOLDER),c=l!==Pn.DRAFT&&t&&t.version!==s.version,d=e?.find(h=>h?.type===xt.TRIGGER),p=C.useMemo(()=>[{label:"Import",leftIcon:Gp("ic_import",o,a),isDisabled:a,onClick:()=>n("Import Workflow")},{label:"Export",isDisabled:u||!d,leftIcon:Gp("ic_export",o,u||!d),onClick:h=>{h.stopPropagation(),n("Export workflow")}},{label:"Help",isDisabled:u,leftIcon:Gp("ic_help",o),onClick:()=>{const h=Yt(i,"/workflow/intro");window.open(h,"_blank","noopener,noreferrer")}},{label:"Attach Workflow on Failed Executions",leftIcon:Gp("ic_try_again",o),onClick:h=>{h.stopPropagation(),n("Attach Workflow on Failed Executions")}}],[o,u,c,n,r]);return f.jsx(Rre,{size:"medium",iconContainerStyles:{m:0,width:"fit-content"},sx:{top:10,left:16},menuItemStyles:{...bi(o)},menuItems:p})},jat=({workflowType:e,openVersionPopup:t,handleOpenVersionPopup:n,versionId:r,publishedData:i={},isLoading:o=!1,nodes:s,edges:a,isActiveWorkflow:l,currentSubscription:u})=>{const c=ht.useDispatch(),d=O.useTheme(),{canvasWorkflow:p,selectedActivityId:h,publishLock:A}=ht.useSelector(L=>L.canvas),g=Array.isArray(u)?u[0]:u,m=g?.metricData?.creation?.remaining,E=g?.metricData?.execution?.remaining,y=g?.status==="EXPIRED",v=g?.status==="CANCELLED",T=m==null||m<=0,_=E==null||E<=0,x=y||v||T||_,b=C.useMemo(()=>s?.find(L=>L.type===xt.TRIGGER),[s]),w=C.useMemo(()=>b?g0(b,s):!1,[b,s]),D=C.useCallback(()=>{const L=GO(p4(i)),M=GO(p4({...p,nodes:Il("nodes_update",s),edges:Il("edges_update",null,a)}));return L===M},[i,p,s,a]),I=C.useCallback(()=>{setTimeout(()=>{const M=['[data-testid="plans-add-on-button"]','[data-test-id="plan-upgrade-button"]'].map(B=>document.querySelector(B)).find(B=>B);M&&M.click()},100)},[]),P=C.useCallback(()=>{if(T||y||v){I();return}if(!l&&e!==kr.DRAFT){c({type:zn,payload:{open:!0,title:"Please activate the workflow to publish it",type:"error"}});return}if(!b){c({type:zn,payload:{open:!0,title:"Please add the trigger",type:"error"}});return}if(!w){c({type:zn,payload:{open:!0,title:"Please complete all activities configurations and activate the workflow to publish it",type:"error"}});return}n(!t)},[T,y,v,l,e,b,w,t,n,c,I]),k=o||A||D()||h||!b||!w,N=!w&&!(x||T)?"Workflow not completed":"";return f.jsx(O.Stack,{direction:"row",gap:1,children:Ot(r)&&e===kr.DRAFT&&f.jsx(O.Tooltip,{disableHoverListener:w,arrow:!0,title:N,children:f.jsx("span",{children:f.jsx(O.Button,{sx:{height:32,borderRadius:"6px","&.Mui-disabled":{pointerEvents:"all",backgroundColor:`${d.palette.primary.main} !important`,color:"white !important",opacity:.4,cursor:"not-allowed","&:hover":{backgroundColor:`${d.palette.primary.main} !important`,opacity:.4}}},variant:"contained",onClick:P,disabled:k,size:"medium",children:f.jsx(O.Typography,{variant:"smSemiBold",children:"Publish"})})})})})},$at=({open:e,handlePublishWorkflow:t,savingWorkflow:n,onClose:r})=>{const i=O.useTheme(),{workflow:o}=ht.useSelector(p=>p.workflows),{version:s="0.0.1"}=o||{},a=()=>{const[p,h,A]=s.split(".").map(Number),g=`${p}.${h}.${A}`,m=`${p}.${h+1}.0`,E=`${p}.${h}.${A+1}`,y=`${p+1}.0.0`,v=[{value:E,label:"Feature update",description:"Add new features, backward compatible",icon:"ic_patch"},{value:m,label:"Minor fix",description:"Fix small issues no new features",icon:"ic_minor"},{value:y,label:"Major fix",description:"May break older versions, major update",icon:"ic_major"}];return g==="0.0.0"?v:[{value:g,label:"Current",description:"Overwrite this version",recommended:!0,icon:"ic_current"},...v]},[l,u]=C.useState(a().find(p=>p?.recommended)?.value??a()[0].value),[c,d]=C.useState("");return f.jsx(vo,{variant:"xlarge",open:e,handleClose:r,title:"Publish workflow",sx:{"&.MuiModal-root.MuiDialog-root.MuiModal-root.MuiDialog-root .MuiDialogTitle-root+.MuiDialogContent-root":{pb:0}},content:f.jsxs(O.Stack,{width:"100%",gap:2,children:[f.jsxs(O.Box,{children:[f.jsx(Or,{label:"Release type",required:!0}),f.jsx(O.Select,{value:l,onChange:p=>u(p.target.value),sx:{width:"100%",fontSize:14},IconComponent:p=>f.jsx(Ue,{src:"ic_arrow_down",width:"1.25rem",height:"1.25rem",sx:{"&.MuiSelect-icon":{top:"auto",mr:"0.25rem"}},...p}),MenuProps:{PaperProps:{sx:{p:1,"& .MuiList-root":{display:"flex",flexDirection:"column",gap:.5}}}},children:a().map(p=>f.jsx(O.MenuItem,{sx:{"&.Mui-selected":{color:i.palette.primary.main,"& path":{fill:i.palette.primary.main}}},value:p.value,children:f.jsxs(O.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{minHeight:"32px !important",height:"32px !important"},children:[f.jsx(Ue,{src:p.icon,sx:{}}),f.jsxs(O.Typography,{variant:"smNormal",color:"inherit",children:[p.label," (",p.value,") - ",p.description]}),p.recommended&&f.jsx(O.Stack,{alignItems:"center",sx:{height:20,minHeight:20,borderRadius:1,border:`1px solid ${i.palette.grey.outlined.border}`,bgcolor:i.palette.white.smoke,px:1},children:f.jsx(O.Typography,{variant:"xsNormal",sx:{fontWeight:500},color:i.palette.text.primary,children:"Recommended"})})]})},p.value))})]}),f.jsxs(O.Box,{children:[f.jsx(Or,{label:"Description",endItem:f.jsxs(O.Box,{sx:{fontSize:10,color:i.palette.grey.normal},children:[c.length,"/200"]})}),f.jsx(O.TextField,{fullWidth:!0,value:c,name:"description",multiline:!0,rows:3.4,inputProps:{maxLength:200},onChange:p=>{d(p.target.value.slice(0,200))},placeholder:"Add a short description of the workflow"})]})]}),footer:f.jsxs(O.Stack,{direction:"row",gap:1,justifyContent:"flex-end",children:[f.jsx(O.Button,{disabled:n,variant:"outlined",onClick:r,color:"neutral",children:"Cancel"}),f.jsx(O.Button,{variant:"contained",color:"primary",disabled:n,onClick:()=>t(l,c),children:n?f.jsx(O.CircularProgress,{size:20,sx:{color:"inherit"}}):"Publish"})]})})},Uat=e=>{const{editWorkflow:t,handleEditWorkflow:n}=e,r=()=>{n(!t)};return f.jsx(O.Button,{sx:{height:32,ml:1},variant:"contained",color:"primary",onClick:r,children:f.jsx(O.Typography,{variant:"smSemiBold",children:"Edit Workflow"})})},Hat=({open:e,onClose:t,navigate:n})=>{const r=O.useTheme(),i=ht.useDispatch(),{workflow:o}=ht.useSelector(y=>y.workflows),[s,a]=C.useState(!1),{ENTITY_ID:l,WORKFLOW_URLS:u,analytics:c}=wi(),{VORTEX_MAIN_URL:d}=u,{captureEvent:p,WORKFLOW_EVENTS:h}=c||{},A=()=>{const y=o?.meta?.draft_id;if(!y)return;i({type:BO});const v=`/accounts/${l}/workflow-builder/draft/${y}`;n?n(v,{replace:!0}):window.location.replace(dd(v))},g=Oo(),m=Tr(g),E=async()=>{const y={id:o.id};a(!0);const v=Yt(`${d}`,`v1.0/${l}/workflows`,"clone"),{data:T}=await Xt.post(v,{data:y});a(!1);const{id:_,status:x}=T?.data??{};_&&x&&(p?.(h.WORKFLOW.DUPLICATED,{"console.product_account_id":l,message:"Workflow duplicated successfully",workflow_id:m,new_workflow_id:_}),n?n(`/accounts/${l}/workflow-builder/${x}/${_}`):window.open(dd(`/accounts/${l}/workflow-builder/${x}/${_}`),"_blank")),t()};return f.jsx(vo,{variant:"large",open:e,handleClose:t,title:"How would you like to proceed?",content:f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.List,{sx:{"&.MuiList-root":{display:"flex",flexDirection:"column",gap:1.5,p:0,ml:2},listStyleType:"disc"},children:uue.map(y=>f.jsx(O.ListItem,{sx:{"&.MuiListItem-root":{p:0,display:"list-item"}},children:f.jsxs(O.Stack,{children:[f.jsx(O.Typography,{variant:"smMedium",color:r.palette.text.primary,children:y.title}),f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.tertiary,children:y.description})]})},y.title))}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,height:44,border:`1px solid ${r.palette.neutral.outlined.border}`,sx:{borderRadius:2,backgroundColor:r.palette.neutral.soft.bg,px:1.5,py:.75},children:[f.jsx(Ue,{width:20,height:20,src:"ic_info_filled"}),f.jsx(O.Typography,{variant:"smNormal",color:r.palette.text.tertiary,children:"Duplicating is recommended if the workflow is live or in use."})]})]}),footer:f.jsxs(O.Stack,{direction:"row",gap:1,justifyContent:"flex-end",pt:.5,children:[f.jsx(O.Button,{variant:"outlined",color:"primary",onClick:E,disabled:s,sx:{width:"9rem"},children:s?f.jsx(O.CircularProgress,{size:20}):"Duplicate & Edit"}),f.jsx(O.Button,{variant:"contained",onClick:A,color:"primary",disabled:s,children:"Edit Existing Draft"})]})})},Vat=({ALERT_TOP_BAR:e,source:t,saveWorkflow:n,WORKFLOW_URLS:r,ENTITY_ID:i,navigate:o,savingWorkflow:s,selectedNode:a,nodes:l,edges:u,currentSubscription:c})=>{const{VORTEX_MAIN_URL:d,GYRATE_MAIN_URL:p}=r,h=ht.useDispatch(),A=O.useTheme(),{analytics:g}=wi(),[m,E]=C.useState(!1),[y,v]=C.useState(!1),[T,_]=C.useState(!1),[x,b]=C.useState(!1),[w,D]=C.useState(""),[I,P]=C.useState(!1),[k,N]=C.useState(null),[L,M]=C.useState(!1),[B,Q]=C.useState(!1),[V,q]=C.useState(!1),[F,G]=C.useState({title:"",content:"",status:""}),[W,R]=C.useState(!1),j=new URLSearchParams(window.location.search),$=Oo(),{workflow:Y}=ht.useSelector(De=>De.workflows),{canvasWorkflow:z,viewOnly:H,showDebugLogs:U,autoSaving:X}=ht.useSelector(De=>De.canvas),J=l?.find(De=>De.type===xt.TRIGGER),[te,ae]=C.useState(""),re=Tr(),ue=Tr("version"),Oe=[Pn.PUBLISHED,Pn.SCHEDULED].includes($)?Y?.id||Y?.parent_id||"":Y?.parent_id||"",{versions:Te,isLoading:se,fetchVersions:ie}=kat(i,d,Oe),{publishedData:Z,isLoading:K}=Mat(Te,i,d),ne=l?.find(De=>De?.type===xt.TRIGGER),le=()=>{ne&&(g0(ne,l)||m?(G({title:m?"Deactivate Workflow?":"Activate Workflow?",content:m?"This will deactivate the workflow and it will no longer be triggered automatically.":"This will activate the workflow and it will be triggered based on the configured trigger.",status:m?"deactivate":"activate"}),Q(!0)):h({type:zn,payload:{open:!0,title:ne?.data?.blt_node_states?.node!=="completed"?"Please complete all activities configurations to activate this workflow.":"It looks like setup isn't finished yet. Please complete all configurations to continue.",type:"error"}}))},pe=()=>{L||Q(!1)},Ae=()=>{M(!0);const De=Y||z||{},it={active:!m,status:$!==Pn.DRAFT?$:De?.status,parent_id:De?.parent_id,version:De?.version},ut=ue||Y?.id;h(Mb(it,ut,d,i,g)).then(()=>{const yt=[Pn.PUBLISHED,Pn.SCHEDULED].includes($)&&Y?.id||Y?.parent_id;yt&&h(Of({page:1,per_page:999},yt,d,i)),Q(!1),M(!1)})},fe=()=>{const{meta:{draft_id:De}}=Y;if(o){const it=j.get("from_project");it?o(`/accounts/${i}/projects/${it}/?tab=workflows`):[Pn.PUBLISHED,Pn.SCHEDULED].includes($)?o(`/accounts/${i}/workflow/workflow-builder`):$===Pn.DRAFT?o(`/accounts/${i}/workflow/workflow-builder`):o(`/accounts/${i}/workflow-builder/draft/${De}`)}else window.history.back()},Se=(De,it)=>{if(it.length>200){h({type:zn,payload:{open:!0,title:"Description should be less than 200 characters",type:"error"}});return}if(!u?.some(yt=>{if(yt.type===Vn.PLACEHOLDER)return!1;const It=l?.find(Ft=>Ft.id===yt.target);return It&&It.type!==xt.PLACEHOLDER}))return h({type:zn,payload:{open:!0,title:"Please connect the trigger node to an activity node",type:"error"}}),h({type:Ab,payload:"error"});ne?g0(ne,l)&&(m||$===kr.DRAFT)?(n("published","edit",De,it),setTimeout(()=>{ie()},200)):h({type:zn,payload:{open:!0,title:"Please complete all activities configurations to publish this workflow",type:"error"}}):h({type:zn,payload:{open:!0,title:"Please add a trigger node",type:"error"}})},ge=De=>{v(De)},ye=De=>{_(De)};let $e="";t?.includes("pixelbin")?$e="pixelbin":t?.includes("catalog-cloud")?$e="catalog-cloud":t?.includes("copilot")&&($e="copilot"),C.useEffect(()=>{s||v(!1)},[s]),C.useEffect(()=>{const De=Y?.meta?.draft_id;[Pn.PUBLISHED,Pn.SCHEDULED].includes($)&&De!==void 0&&Xt.get(Yt(d,`/v1.0/${i}/workflows/${De}`)).then(it=>{N(it.data.data)}).catch(it=>{cn(it,h)})},[Y]),C.useEffect(()=>{const De=Y?.active!==void 0?Y.active:z?.active;E(De)},[Y?.active,z?.active]),C.useEffect(()=>{X||M(!1)},[X]);const Qe=()=>{const De=Ot(ue)?re:ue;d6(Y,De,J,h,d,i,ue,re,U,g)},je=async De=>{const it=Yt(d,`/v1.0/${i}/`,`workflows/${De}`);P(!0),await Xt.delete(it).then(()=>{re&&(P(!1),h({type:zn,payload:{open:!0,title:"Version Deleted Successfully",type:"success"}}),fe())}).catch(ut=>{cn(ut,h)})},et=()=>L?f.jsx(O.CircularProgress,{size:20}):m?"Deactivate":"Activate",rt=bt(O.Switch)(({theme:De})=>({"& .MuiSwitch-switchBase.Mui-checked":{color:De.palette.primary.main,"&:hover":{backgroundColor:za(De.palette.primary.main,De.palette.action.hoverOpacity)}},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:De.palette.primary.main},"& .Mui-disabled.MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:De.palette.primary.disabled},"& .Mui-disabled.MuiSwitch-switchBase.Mui-checked:hover + .MuiSwitch-track":{backgroundColor:De.palette.primary.disabled},"& .Mui-disabled.MuiSwitch-switchBase .MuiSwitch-thumb":{transform:"translateX(4px)"}})),nt=()=>$===Pn.DRAFT?Y.active?A.palette.warning[50]:A.palette.neutral.main:Y.active?A.palette.success[40]:A.palette.error[50],Ie=()=>$===Pn.DRAFT?Y.active?A.palette.warning[50]:A.palette.grey[300]:Y.active?A.palette.success[40]:A.palette.error[50],He=c?.[0],Ve=He?.status,Ee=He?.metricData?.execution?.remaining,_e=Ve==="EXPIRED",we=Ve==="CANCELLED",ee=Ee<=0,de=L||_e||we||ee,be=_e?"Your subscription has expired. Please renew your subscription to activate workflows.":we?"Your subscription has been cancelled. Please reactivate your subscription to activate workflows.":ee?"You have reached the maximum number of workflows you can execute. Please upgrade your plan to continue.":"",Ge=17672256e5,Ne=Te?.length&&Te.length>=2?Te[Te.length-2]?.created_at:void 0,Fe=typeof Ne=="string"?Date.parse(Ne):typeof Ne=="number"?Ne:NaN,St=Te?.[0]?.version!==void 0&&Te?.[0]?.version===Y?.version||Te?.length!==void 0&&Te.length>=2&&Number.isFinite(Fe)&&Ge>Fe?f.jsx("span",{children:f.jsx(O.FormControlLabel,{label:m?"Active":"Inactive",labelPlacement:"start",control:f.jsx(rt,{checked:m,disabled:de,onChange:le}),sx:{mr:0,cursor:de?"not-allowed":"pointer"},componentsProps:{typography:{variant:"smNormal",color:A.palette.text.primary}}})}):null;return f.jsxs(O.Stack,{sx:{zIndex:De=>De.zIndex.drawer+1,background:De=>De.palette.common.white,height:48},children:[f.jsxs(O.Stack,{flexDirection:"row",sx:{...di,height:"100%",p:1.5},children:[f.jsxs(O.Stack,{sx:{...s0},children:[f.jsx(O.Stack,{alignItems:"center",children:t?.includes("pixelbin")||t?.includes("catalog-cloud")||t?.includes("copilot")||t?.includes("commerce_")?f.jsx(O.Avatar,{variant:"rounded",sx:{width:32,height:32,mr:1,p:0},src:t?.includes("commerce_")?"https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/svgs/ic_fynd_black.svg":`https://cdn.pixelbin.io/v2/fyndcloud/fyndst/original/images/pngs/${$e}.png`,alt:"source-icon",children:t}):f.jsx(O.IconButton,{sx:{"&.MuiButtonBase-root.MuiIconButton-root":{p:0,opacity:W?.6:1},...bi(A)},onClick:fe,disabled:W,children:f.jsx(Ue,{src:"ic_back"})})}),f.jsx(O.Divider,{color:A.palette.grey.outlined.border,orientation:"vertical",sx:{mx:1.5,height:16}}),f.jsx(Nat,{editWorkflowName:W,setEditWorkflowName:R}),c4.includes($)&&Y&&f.jsx(O.Box,{sx:{marginLeft:1.5},children:f.jsx(O.Chip,{avatar:f.jsx(O.Box,{}),label:$===Pn.DRAFT?"Draft":`Previewing v${Y?.version}`,sx:{px:1,backgroundColor:A.palette.common.white,"&.MuiChip-root .MuiChip-avatar":{width:8,height:8,mx:0,borderRadius:"50%",backgroundColor:nt()},"&.MuiChip-root":{borderColor:Ie(),gap:.75,"& span":{p:0,fontWeight:500}}}})})]}),f.jsxs(O.Stack,{sx:{...s0},children:[X&&f.jsx(O.Chip,{sx:{backgroundColor:A.palette.white.smoke,color:A.palette.black.chinese,boxShadow:"none",borderRadius:"0.5rem",padding:"2px 12px",height:"fit-content",fontSize:"12px",marginRight:"10px",fontWeight:"500","& span":{p:0,letterSpacing:"0.5px"}},label:"...Saving"}),$!==Pn.DRAFT&&(be&&St?f.jsx(O.Tooltip,{title:be,arrow:!0,placement:"bottom",children:St}):St),$!==Pn.DRAFT&&f.jsx(O.Box,{sx:{position:"relative"},children:f.jsx(Uat,{editWorkflow:T,handleEditWorkflow:ye})}),f.jsx(O.Box,{sx:{position:"relative"},children:T&&f.jsx(Hat,{open:T,onClose:()=>{ye(!1)},navigate:o})}),f.jsx(O.Box,{sx:{position:"relative"},children:y&&f.jsx($at,{open:y,setActiveMenu:ae,savingWorkflow:s,onClose:()=>{ge(!1)},handlePublishWorkflow:Se})}),(!H||[Pn.PUBLISHED,Pn.SCHEDULED].includes($))&&f.jsx(O.Box,{sx:{position:"relative",ml:1.5},children:f.jsx(jat,{currentSubscription:c,ALERT_TOP_BAR:e,workflowType:$,openVersionPopup:y,handleOpenVersionPopup:ge,versionId:ue,workflowId:re,selectedNode:a,publishedData:Z,isLoading:K||se||X,workflowExecute:Qe,nodes:l,edges:u,isActiveWorkflow:m})}),f.jsx(O.Box,{ml:1.5,children:f.jsx(Bat,{nodes:l,draftWorkflow:k,setDeleteWorkflowPopup:b,setActiveMenu:ae,GYRATE_MAIN_URL:p})})]})]}),[Pn.PUBLISHED,Pn.SCHEDULED].includes($)&&f.jsx(vo,{variant:"medium",open:x,handleClose:()=>b(!1),title:"Are you sure?",content:f.jsxs(O.Stack,{gap:2,children:[f.jsx(O.Typography,{variant:"mdNormal",color:A.palette.text.tertiary,children:"This will delete the version and related execution history which cannot be undone."}),f.jsxs(O.Typography,{variant:"mdNormal",color:A.palette.text.tertiary,children:["To confirm, please type the name of the workflow:",f.jsxs(O.Typography,{variant:"mdBold",color:A.palette.text.secondary,children:[" ",Y?.name]})]}),f.jsx(O.TextField,{placeholder:"Enter workflow name",variant:"outlined",onChange:De=>D(De.target.value),value:w})]}),footer:f.jsxs(O.Stack,{gap:1,width:"100%",justifyContent:"flex-end",alignItems:"center",flexDirection:"row",children:[f.jsx(O.Button,{onClick:()=>b(!1),variant:"outlined",disabled:I,color:"neutral",children:"Cancel"}),f.jsx(O.Button,{color:"error",disabled:I||w!==Y?.name,onClick:()=>{w===Y?.name&&(je(ue||""),D(""),b(!1))},variant:"contained",children:I?f.jsx(O.CircularProgress,{size:16,sx:{color:"primary"}}):"Delete"})]})}),te==="Export workflow"&&f.jsx(Pat,{open:te==="Export workflow",onClose:()=>ae(""),nodes:l,edges:u}),f.jsx(Bst,{open:te==="Import Workflow",setActiveMenu:ae,onClose:()=>ae("")}),f.jsx(Fst,{open:te==="Attach Workflow on Failed Executions",onClose:()=>ae("")}),f.jsx(vo,{open:V,variant:"full",handleClose:()=>q(!1),title:"Use below code to trigger this workflow",content:f.jsx(Lat,{ENTITY_ID:i,VORTEX_MAIN_URL:d})}),f.jsx(vo,{variant:"medium",open:B,handleClose:pe,title:F.title,content:f.jsx(O.Stack,{gap:2,children:f.jsx(O.Typography,{variant:"smNormal",color:A.palette.text.tertiary,children:F.content})}),footer:f.jsx(O.Stack,{flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:f.jsxs(O.Box,{children:[f.jsx(O.Button,{color:"neutral",onClick:pe,variant:"outlined",disabled:L,children:"Cancel"}),f.jsx(O.Button,{color:F.status==="deactivate"?"error":"primary",sx:{ml:1,width:"8rem"},disabled:L,onClick:Ae,variant:"contained",children:et()})]})})})]})},Gat=e=>{const{onClose:t,setSelectedMenu:n}=e,r=ht.useDispatch(),i=O.useTheme(),{canvasWorkflow:o,viewOnly:s}=ht.useSelector(g=>g.canvas),{global_variables:a}=o,[l,u]=C.useState(a),[c,d]=C.useState(""),p=C.useMemo(()=>Zh(l),[l,Zh]);C.useEffect(()=>{p||d("")},[p]);const h=()=>{if(p){d("Keys should be unique and cannot be empty");return}r({type:ac,payload:{...o,global_variables:Ot(l)?{}:l}}),t()};return f.jsx(O.Box,{height:"100%",sx:{width:550,position:"absolute",top:0,left:48,p:.5,zIndex:100,mt:"0px !important",...qE},children:f.jsxs(O.Stack,{borderRadius:2.5,border:`1px solid ${i.palette.grey.outlined.border}`,height:"100%",gap:1,sx:{backgroundColor:i.palette.common.white,overflow:"auto",p:1},children:[f.jsx(O.Stack,{gap:.5,direction:"row",alignItems:"center",children:f.jsxs(O.Stack,{direction:"row",sx:{...di,width:"100%",marginBottom:"1.25rem"},children:[f.jsxs(O.Stack,{direction:"row",sx:{...hf,gap:"0.25rem"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:i.palette.text.primary},children:"Global variables"}),f.jsx(O.Tooltip,{PopperProps:{sx:{textAlign:"center"}},arrow:!0,title:"A global variable is a key-value pair that can be accessed and used throughout an entire workflow, ensuring consistency and reusability of data across different activities",children:f.jsx(O.Box,{component:"span",children:f.jsx(Ue,{src:"ic_info",sx:{...bi(i)}})})})]}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer",...bi(i)},onClick:()=>{n("")}})]})}),f.jsxs(O.Stack,{justifyContent:"space-between",height:"100%",children:[f.jsx(O.Box,{sx:{width:"100%",overflowY:"auto"},children:f.jsx(OX,{data:a,onChange:g=>{u(g)},viewOnly:s,id:"global-variables",errorMsg:c,fullScreen:!0,showSuggestions:!1})}),!s&&f.jsx(O.Button,{type:"submit",variant:"contained",fullWidth:!0,disabled:s,onClick:h,sx:{height:40,width:"100%"},children:"Save Global Variables"})]})]})})},P8=({type:e,name:t,label:n,required:r,multiplyValue:i=!1,viewOnly:o=!1,control:s,validationRules:a})=>f.jsx(En,{name:t,control:s,rules:{...a,valueAsNumber:!0},render:({field:l,formState:{errors:u}})=>{const c=d=>typeof d!="number"?d:i?l.value/1e3:l.value;return f.jsx(io,{...l,label:n,type:"number",fullWidth:!0,required:r,viewOnly:o,helperText:br(e,t),value:c(l.value),onChange:d=>{let p;d.target.value===""?l.onChange(d.target.value):(p=Number(d.target.value),isNaN(p)||(i&&(p=p*1e3),l.onChange(p)))},error:!!u[t],errorMsg:u[t]?.message})}}),Wat=({retryConfig:e,setRetryConfig:t,onClose:n,setSelectedMenu:r})=>{const i=O.useTheme(),{viewOnly:o}=ht.useSelector(u=>u.canvas),{handleSubmit:s,control:a}=L_({defaultValues:e}),l=async u=>{t(u),n()};return f.jsxs(O.Box,{height:"calc(100% - 8px)",borderRadius:2.5,border:`1px solid ${i.palette.grey.outlined.border}`,sx:{width:i.drawer.leftMenu,position:"absolute",top:4,left:52,p:1.5,zIndex:100,mt:"0px !important",backgroundColor:i.palette.common.white,overflow:"auto",...qE},children:[f.jsxs(O.Stack,{direction:"row",sx:{width:"100%",...di,marginBottom:"1.25rem"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:i.palette.text.primary},children:"Workflow configurations"}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer",...bi(i)},onClick:()=>{r("")}})]}),f.jsx(O.Stack,{height:"calc(100% - 50px)",gap:2,children:f.jsx("form",{noValidate:!0,style:{height:"100%"},autoComplete:"off",onSubmit:s(l),children:f.jsxs(O.Stack,{justifyContent:"space-between",height:"100%",children:[f.jsxs(O.Grid,{container:!0,gap:1.5,children:[f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(P8,{required:!0,type:"configurations",name:"maximum_attempts",label:"Maximum Number of Attempts",viewOnly:o,validationRules:{min:{value:1,message:"Value must be at least 1"},max:{value:10,message:"Value cannot exceed 10"},required:{value:!0,message:"Maximum Number of Attempts is required"}},control:a})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(En,{name:"backoff_coefficient",control:a,rules:{required:{value:!0,message:"Retry Backoff Rate is required"}},render:({field:u})=>f.jsx(Hz,{required:!0,title:"Retry Backoff Rate",name:u.name,value:Number(u.value)||"",onChange:c=>{u.onChange(Number(c.target.value))},viewOnly:o,helperText:br("configurations","backoff_coefficient"),children:s4.map(c=>f.jsx(O.MenuItem,{value:Number(c.value),children:c.title},c.value))})})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(P8,{required:!0,type:"configurations",name:"initial_interval",label:"Wait Time Before First Retry (seconds)",viewOnly:o,multiplyValue:!0,validationRules:{min:{value:1,message:"Value must be at least 1"},step:{value:1,message:"Value must be in increments of 1"},required:{value:!0,message:"Wait Time Before First Retry is required"}},control:a})}),f.jsx(O.Grid,{item:!0,xs:12,children:f.jsx(P8,{required:!0,multiplyValue:!0,type:"configurations",name:"maximum_interval",label:"Maximum Wait Between Retries (seconds)",viewOnly:o,validationRules:{min:{value:100,message:"Value must be at least 100"},step:{value:10,message:"Value must be in increments of 10"},required:{value:!0,message:"Maximum Wait Between Retries is required"}},control:a})})]}),f.jsx(O.Button,{sx:{height:40,width:"100%"},type:"submit",variant:"contained",fullWidth:!0,disabled:o,children:"Save Configuration"})]})})})]})},Qat=e=>{const{navigate:t,VORTEX_MAIN_URL:n,ENTITY_ID:r,setSelectedMenu:i,currentSubscription:o}=e,{versions:s,workflow:a}=ht.useSelector(G=>G.workflows),[l,u]=C.useState(!1),[c,d]=C.useState(!1),[p,h]=C.useState({data:[],pagination:{current_page:1,total_count:0,per_page:10}}),A=Oo(),g=Tr("workflow"),m=ht.useDispatch(),E=O.useTheme(),v=new URLSearchParams(window.location.search).get("source")?.toLowerCase(),[T,_]=C.useState(null),x={page:1,per_page:999},b=[Pn.PUBLISHED,Pn.SCHEDULED].includes(A)?a?.id||a?.parent_id||"":a?.parent_id||"";C.useEffect(()=>{b&&m(Of(x,b,n,r))},[b]),C.useEffect(()=>{s?.data?.data?.length>0?h(s.data):h({data:[],pagination:{current_page:1,total_count:0,per_page:10}})},[s?.data]);const[w,D]=C.useState(!1),[I,P]=C.useState(null),k=17672256e5,N=p?.data?.length&&p.data.length>=2?p.data[p.data.length-2]?.created_at:void 0,L=typeof N=="string"?Date.parse(N):typeof N=="number"?N:NaN,M=p?.data?.length!==void 0&&p.data.length>=2&&Number.isFinite(L)&&k>L,B=()=>{w&&P(null),D(!w)},Q=G=>[...G.version===p.data[0]?.version||M?[{label:G.active?"Deactivate":"Activate",leftIcon:Gp(G.active?"ic_flash_off":"ic_flash",E,!1,20),isDisabled:!G.active&&(G.status===kr.DRAFT||G.status===Pn.DRAFT)||!(o?.status==="ACTIVE"||o?.status==="PAST_DUE")||o?.metricData?.execution?.remaining<=0,onClick:W=>{W.stopPropagation(),W.preventDefault(),B(),P(G)}}]:[],...G.version!==p.data[0].version||p.pagination.current_page!==1?[{label:"Delete",color:E.palette.error.main,leftIcon:Gp("ic_delete",E,!1,20,E.palette.error.main),onClick:W=>{W.stopPropagation(),W.preventDefault(),u(!0)}}]:[]],V=()=>{const{meta:{draft_id:G}}=a;t?[Pn.PUBLISHED,Pn.SCHEDULED].includes(A)?t(`/accounts/${r}/workflow/workflow-builder`):A!==Pn.DRAFT&&t(`/accounts/${r}/workflow-builder/draft/${G}`):window.history.back()},q=async G=>{const W=Yt(n,`/v1.0/${r}/`,`workflows/${G}`);d(!0),await Xt.delete(W).then(()=>{g&&(d(!1),m({type:zn,payload:{open:!0,title:"Version Deleted Successfully",type:"success"}}),m(Of(x,b,n,r)),V())}).catch(R=>{cn(R,m)})},F=async G=>{const W={active:!G.active,version:G.version,status:G.status,parent_id:G.parent_id},R=Yt(n,`/v1.0/${r}/`,`workflows/${G.id}`);await Xt.patch(R,{data:W}).then(()=>{g&&m(Of(x,b,n,r))}).catch(j=>{cn(j,m)})};return f.jsxs(O.Box,{height:"calc(100% - 8px)",borderRadius:2.5,border:`1px solid ${E.palette.grey.outlined.border}`,sx:{width:E.drawer.leftMenu,position:"absolute",top:4,left:52,zIndex:100,p:2,mt:"0px !important",transform:"translateX(-100%)",backgroundColor:E.palette.common.white,overflowY:p?.data?.length>0?"auto":"hidden",overflowX:"hidden",...qE},children:[f.jsx(vo,{variant:"medium",open:w,handleClose:B,title:I?.active?"Deactivate Workflow":"Activate Workflow",content:f.jsx(O.Typography,{variant:"mdNormal",children:I?.active?"Are you sure you want to deactivate this workflow version? This action cannot be undone.":"Are you sure you want to activate this workflow version? This action cannot be undone."}),footer:f.jsx(O.Stack,{flexDirection:"row",width:"100%",justifyContent:"flex-end",alignItems:"center",children:f.jsxs(O.Box,{children:[f.jsx(O.Button,{color:"neutral",onClick:B,variant:"outlined",children:"Cancel"}),f.jsx(O.Button,{color:"error",sx:{ml:2},onClick:async()=>{B(),F(I)},variant:"contained",children:"Confirm"})]})})}),f.jsx(vo,{variant:"medium",open:l,handleClose:()=>u(!1),title:"Are you sure?",content:f.jsx(O.Stack,{gap:2,children:f.jsx(O.Typography,{variant:"mdNormal",color:E.palette.text.tertiary,children:"This will delete the version and related execution history which cannot be undone."})}),footer:f.jsxs(O.Stack,{gap:1,width:"100%",justifyContent:"flex-end",alignItems:"center",flexDirection:"row",children:[f.jsx(O.Button,{onClick:()=>u(!1),variant:"outlined",disabled:c,color:"neutral",children:"Cancel"}),f.jsx(O.Button,{color:"error",disabled:c,onClick:()=>{q(T||""),u(!1)},variant:"contained",children:c?f.jsx(O.CircularProgress,{size:16,sx:{color:"primary"}}):"Delete"})]})}),f.jsxs(O.Stack,{direction:"row",sx:{...di,width:"100%",marginBottom:"1.25rem"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:E.palette.text.primary},children:"Versions"}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer",...bi(E)},onClick:()=>{i("")}})]}),f.jsxs(O.Stack,{height:"calc(100% - 64px)",gap:1.5,children:[s.loading&&Array(8).fill(null).map((G,W)=>f.jsxs(O.Stack,{direction:"row",p:1.5,alignItems:"flex-start",justifyContent:"space-between",children:[f.jsxs(O.Stack,{direction:"row",gap:1,width:"100%",children:[f.jsx(O.Skeleton,{variant:"circular",sx:{flexShrink:0},width:20,height:20}),f.jsxs(O.Stack,{gap:.5,sx:{flex:1},children:[f.jsx(O.Skeleton,{width:120,variant:"text",sx:{fontSize:14}}),f.jsx(O.Skeleton,{width:160,variant:"text",sx:{fontSize:12}})]})]}),f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,children:[f.jsx(O.Skeleton,{variant:"circular",width:10,height:10}),f.jsx(O.Skeleton,{variant:"text",width:40,sx:{fontSize:12}})]})]},`version-skeleton-${W}`)),!s.loading&&p.data.length===0&&f.jsxs(O.Stack,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:[f.jsx(Ue,{src:"ic_no_data",width:75,height:75}),f.jsx(O.Typography,{variant:"lgSemiBold",color:"gray.100",children:"No Versions Found"})]}),!s.loading&&p.data.map((G,W)=>{const{active:R,version:j,updated_at:$,id:Y,status:z,modified_by:H}=G;let U=!1;return A===Pn.DRAFT?U=z===kr.DRAFT:j===a?.version&&(U=(p?.data||[]).filter(te=>te.version===j).some(te=>te.status===kr.PUBLISHED||te.status===Pn.PUBLISHED||te.status===kr.SCHEDULED||te.status===Pn.SCHEDULED)?z===kr.PUBLISHED||z===Pn.PUBLISHED||z===kr.SCHEDULED||z===Pn.SCHEDULED:!0),f.jsxs(O.Stack,{direction:"row",p:1.5,borderRadius:2,alignItems:"flex-start",justifyContent:"space-between",sx:{backgroundColor:U?E.palette.primary[5]:E.palette.common.white,border:`1px solid ${U?E.palette.primary[50]:"transparent"}`,"&:hover":{backgroundColor:U?E.palette.primary[5]:E.palette.neutral.soft.bg}},children:[f.jsxs(O.Stack,{direction:"row",gap:1,sx:{cursor:"pointer"},onClick:X=>{X.stopPropagation(),X.preventDefault();const J=`/accounts/${r}/workflow-builder`,te=z===Pn.DRAFT||z===Pn.PUBLISHED||z===Pn.SCHEDULED?z:Pn.DRAFT,ae=te===Pn.DRAFT?`${J}/${te}/${Y}`:`${J}/${te}/${g}/version/${Y}`,re=v?`${ae}?source=${v}`:ae;if(t)t(re);else{const ue=`${window.location.origin}${dd(re)}`;window.open(ue,"_blank","noopener")}},children:[f.jsx(O.Tooltip,{arrow:!0,title:H,children:f.jsx(O.Stack,{alignItems:"center",justifyContent:"center",sx:{borderRadius:"50%",width:20,height:20,backgroundColor:U?E.palette.primary[10]:E.palette.grey[300],color:U?E.palette.primary[60]:E.palette.grey[70],fontSize:12},children:H?.slice(0,1).toUpperCase()})}),f.jsxs(O.Stack,{gap:.5,children:[f.jsx(O.Typography,{lineHeight:"normal",variant:"smMedium",color:E.palette.text.primary,children:z===kr.DRAFT?"Draft":`Version ${j}`}),f.jsx(O.Typography,{variant:"xsNormal",color:E.palette.neutral.solid.bg,children:Sn($).format("DD MMM YYYY [at] h:mm:ss A")})]})]}),z!==kr.DRAFT&&z!==Pn.DRAFT&&f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,children:[f.jsx(O.Box,{sx:{width:10,height:10,borderRadius:"50%",backgroundColor:R?E.palette.success[40]:E.palette.error.main}}),f.jsx(O.Typography,{variant:"xsMedium",color:E.palette.text.primary,children:R?"Active":"Inactive"}),f.jsx(Rre,{size:"medium",iconContainerStyles:{m:0,width:"fit-content"},sx:{top:0,left:16},menuItems:Q(G),menuItemStyles:{"&:hover":{"& svg path":{fill:`${E.palette.text.primary}`}}},onIconClick:()=>_(Y)})]})]},`version-row-${G.id||W}`)})]})]})},zat=vn("MuiBox",["root"]),Xat=mN(),Sx=R9e({themeId:yg,defaultTheme:Xat,defaultClassName:zat.root,generateClassName:RY.generate});process.env.NODE_ENV!=="production"&&(Sx.propTypes={children:S.node,component:S.elementType,sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object])});const Yat=({onUpgradeToPro:e})=>{const t=O.useTheme();return f.jsxs(O.Stack,{gap:1,children:[f.jsx(O.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:1,children:f.jsxs(O.Stack,{direction:"row",alignItems:"center",gap:.75,children:[f.jsx(O.Box,{sx:{width:24,height:24,borderRadius:1.5,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n=>za(n.palette.common.white,.1)},children:f.jsx(Ue,{src:"ic_crown",width:14,height:14,sx:{"& svg":{color:"white"}}})}),f.jsx(O.Typography,{variant:"smSemiBold",color:t.palette.common.white,children:"Pro Integration"})]})}),f.jsx(O.Typography,{variant:"xsNormal",sx:{opacity:.9},color:t.palette.common.white,children:"Upgrade to Pro to use this integration in your workflow."}),f.jsx(O.Button,{variant:"contained",size:"small",onClick:n=>{n.stopPropagation(),e?.()},sx:{mt:.5,height:28,borderRadius:2,textTransform:"none",fontWeight:600,alignSelf:"flex-end",px:.8},children:"Upgrade"})]})},qat=({node:e,onDragStart:t,onClick:n,openingFromPlaceholder:r,droppingFromTrigger:i=!1,proIntegration:o=!1,onUpgradeToPro:s})=>{const a=O.useTheme(),l=c=>i?c?.description?.trigger:c?.description?.integration,u=f.jsx(Yat,{onUpgradeToPro:s});return f.jsx(O.Tooltip,{title:o?u:l(e),placement:"right",arrow:!0,disableInteractive:!o,componentsProps:{tooltip:{sx:{p:1.5,maxWidth:260,borderRadius:2,boxShadow:"0px 6px 18px rgba(0,0,0,0.22)",backgroundColor:c=>c.palette?.neutral?.plain}},arrow:{sx:{color:c=>c.palette?.neutral?.plain}}},children:f.jsx(O.ListItemButton,{component:"button",disableRipple:!0,disableGutters:!0,alignItems:"center",sx:{height:40,cursor:o?"not-allowed":e.active?"grab":"not-allowed",width:"100%",p:1,borderRadius:2,opacity:o?.5:1,"&:hover":{background:c=>c.palette.neutral.soft.bg,"& svg":{opacity:1}},"&:active":{background:c=>c.palette.primary[100],color:c=>c.palette.primary.main}},onClick:c=>{r&&e.active&&!o&&n?.(c,e,i)},onDragStart:c=>{e.active&&!o&&t?.(c,e)},draggable:e.active&&!o,onDragOver:c=>c.preventDefault(),children:f.jsxs(O.ListItem,{disablePadding:!0,disableGutters:!0,children:[f.jsx(O.ListItemAvatar,{sx:{display:"flex",justifyContent:"center",minWidth:0},children:e.icon?f.jsx("img",{style:{width:"20px",height:"20px",margin:0},alt:e.name,src:Yp(e.icon,"t.resize(h:24,w:24)")}):f.jsx(O.Avatar,{variant:"rounded",sx:{width:20,height:20},children:f.jsx(O.Typography,{color:a.palette.text.primary,variant:"mdNormal",children:e.name.slice(0,2).toUpperCase()})})}),f.jsx(O.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{ml:1},width:"100%",className:"list-item-content",children:f.jsxs(O.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f.jsx(O.Typography,{variant:"smNormal",children:jte(e.name)}),f.jsxs(O.Stack,{direction:"row",spacing:1,children:[e.status===jp.DRAFT&&f.jsx(O.Stack,{direction:"row",alignItems:"center",sx:{padding:"2px 8px",borderRadius:6,background:c=>c.palette.grey[200]},children:f.jsx(O.Typography,{variant:"xsNormal",sx:{textTransform:"capitalize"},children:e.status})}),e.pro&&f.jsx(Qd,{})]})]})}),f.jsx(Ue,{sx:{"& svg":{opacity:0}},src:"ic_drag",width:20,height:20})]})})},e.name)},Kat=O.styled(O.Box)(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",padding:"4px 8px",gap:4,height:28,borderRadius:4,cursor:"pointer",border:`1px solid ${e.palette.grey[300]}`,backgroundColor:e.palette.common.white,"&.active":{backgroundColor:e.palette.primary[5],borderColor:e.palette.primary.main,"& .MuiTypography-root":{color:e.palette.primary.main,fontWeight:600},":hover":{backgroundColor:e.palette.primary[5]},"& .icon-wrapper":{"& path":{fill:e.palette.primary.main}}},"&:hover":{backgroundColor:e.palette.grey[50]}})),Zat=O.styled(O.Box)({display:"flex",alignItems:"center",width:16,height:16}),Jat=({tabs:e,onTabChange:t,activeIndex:n})=>{const r=O.useTheme();return f.jsx(O.Stack,{direction:"row",alignItems:"flex-start",spacing:1,sx:{width:"100%",height:28},children:e.map((i,o)=>f.jsxs(Kat,{className:n===o?"active":"",onClick:()=>t(o),children:[f.jsx(Zat,{className:"icon-wrapper",children:f.jsx(Ue,{src:i.icon,sx:{path:{fill:n===o?r.palette.primary.main:r.palette.neutral.solid.bg}}})}),f.jsx(O.Typography,{variant:"smNormal",sx:{color:n===o?r.palette.primary.main:r.palette.neutral.solid.bg,lineHeight:"20px",textAlign:"center"},children:i.label}),i.count!==void 0&&i.count>0&&f.jsx(O.Box,{sx:{...Bi,padding:"2px 6px",backgroundColor:r.palette.grey[100],borderRadius:"12px",minWidth:"20px",height:"20px"},children:f.jsx(O.Typography,{variant:"caption",sx:{color:r.palette.grey[600]},children:i.count})})]},`tab-${i.label}-${o}`))})},elt=e=>{const{openingFromPlaceholder:t,setEdges:n,activityType:r,parentNodeId:i,currentNodeId:o,placeholder:s,droppingFromTrigger:a=!1,activitiesToHide:l=[],VORTEX_SYNC_DOMAIN:u,setSelectedMenu:c,pro_integration:d,openUpgradeModal:p}=e,h=O.useTheme(),A=ht.useDispatch(),g=Dt.useReactFlow(),[m,E]=C.useState({}),{setNodes:y}=Dt.useReactFlow(),[v,T]=C.useState(""),[_,x]=C.useState(!0),b=Tr()||"",w=[{icon:"ic_all",label:"All"},{icon:"ic_apps",label:"Integrations"},{icon:"ic_tools",label:"Built in tools"}],[D,I]=C.useState(0),P=Z=>{I(Z)},k=C.useRef(),N=C.useRef(null),{analytics:L,ENTITY_ID:M="",WORKFLOW_URLS:B={}}=wi(),{captureEvent:Q,WORKFLOW_EVENTS:V}=L||{},{getNodes:q,getEdges:F}=Dt.useReactFlow(),G=Dt.useUpdateNodeInternals(),W=q(),R=F(),{activities:j,triggers:$,activity_names:Y}=ht.useSelector(Z=>Z.activities),{selectedPlaceholderId:z,canvasWorkflow:H}=ht.useSelector(Z=>Z.canvas),[U,X]=C.useState([]),J=Z=>{const K=Z.filter(le=>le.active?D===0?!0:D===1?ud.includes(le.type):!ud.includes(le.type):!1);if(r==="triggers"){const le={Triggers:{activities:K}};x(!1),E(K.length?le:[]);return}const ne=K.reduce((le,pe)=>{const Ae=pe?.integration_group?.name||"Triggers";return le[Ae]=le[Ae]||{activities:[],description:pe.integration_group?.description},le[Ae].activities.push(pe),le},Object.create(null));x(!1),E(ne)},te=(Z,K)=>{if(!K)return!0;const ne=Z.name.toLowerCase()||"";if(ne.toLowerCase().includes(K)||Ds(ne).includes(K)||(Z.integration_group?.name||"").toLowerCase().includes(K))return!0;const fe=ne.replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().split(/[\s\-_]+/);return!!(fe.some(Se=>Se.includes(K))||fe.some(Se=>Se.startsWith(K)))},ae=Z=>{const K=Z.toLowerCase().trim();return K?U.filter(ne=>te(ne,K)):U},re=Z=>{T(Z),setTimeout(()=>{if(Z){const K=ae(Z);J(K),ue()}else Z===""&&(J(U),ue())},500)},ue=()=>{const Z=k.current;Z&&(Z.scrollTop=0)},Oe=()=>{typeof p=="function"&&p()},Te=Z=>!!Z.pro&&!d,se=(Z,K)=>{Te(K)||(Z.dataTransfer.setData("application/reactflow",JSON.stringify({...K,openingFromPlaceholder:t,parentNodeId:i,currentNodeId:o,isTrigger:!K?.integration_group?.name})),Z.dataTransfer.effectAllowed="move")},ie=(Z,K,ne=!1)=>{if(Te(K))return;const le=z&&typeof z=="object"&&z.edgeId&&z.sourceNodeId&&z.targetNodeId;z&&A({type:Up,payload:null});const pe=W.find(ye=>ye.id===o),Ae=pe?.type===xt.PLACEHOLDER,fe=le?wa(K?.name||"node",W.filter(ye=>ye.type!==xt.PLACEHOLDER)):ne||Ae?wa(K?.name||(ne?"trigger":"node"),ne?W.filter(ye=>ye.type!==xt.PLACEHOLDER):W||[]):o||wa(K?.name||(ne?"trigger":"node"),W||[]);let Se={x:pe?.position?.x,y:(pe?.position?.y||0)-16};if(le){const ye=W.find(Qe=>Qe.id===z.sourceNodeId),$e=W.find(Qe=>Qe.id===z.targetNodeId);ye&&$e&&(Se={x:(ye.position.x+$e.position.x)/2,y:(ye.position.y+$e.position.y)/2})}const ge=KO(Z,K,g,fe,W,b,u,le?[z.sourceNodeId]:i?[i]:[],Se);ne&&Ca(y,K,{setup_and_configure:"default",node:"",test:"default"}),LC(A,ge,ne,le?z.sourceNodeId:i,pe,le?fe:o,Y,n,y,W,R,Q,V,M||"",b||void 0,B?.VORTEX_MAIN_URL,le?z:null,H?.meta?.isHorizontal??!0?"LR":"TB",G)};return C.useEffect(()=>{const Z=q(),K=Z.some(Ae=>Ae?.type===xt.TRIGGER),le=Z.find(Ae=>Ae?.type===xt.TRIGGER)?.data?.name;let pe=[];if(r==="triggers"){const Ae=$?.data?.data||[];pe=le?Ae.filter(fe=>fe.name?.toLowerCase()!==le?.toLowerCase()):Ae}else if(!t&&!K){const Ae=j?.data?.data||[];pe=[...$?.data?.data||[],...Ae]}else pe=j?.data?.data||[];if(X(pe),pe.length>0){x(!1);const Ae=(v||"").toLowerCase().trim(),fe=Ae?pe.filter(Se=>te(Se,Ae)):pe;J(fe),ue()}else x(!1),E([])},[j,$,t,r,D]),f.jsx(O.Stack,{height:"calc(100% - 8px)",sx:{position:"absolute",top:4,left:52,zIndex:100,mt:"0px !important",transform:"translateX(-100%)",...qE},children:f.jsx(O.Stack,{height:"100%",py:0,children:f.jsxs(O.Stack,{p:1.5,height:"100%",gap:2,borderRadius:2,sx:{width:h.drawer.leftMenu,backgroundColor:h.palette.common.white,border:`1px solid ${h.palette.neutral.outlined.border}`},children:[f.jsxs(O.Stack,{direction:"row",sx:{...di,width:"100%"},children:[f.jsx(O.Typography,{variant:"mdSemiBold",sx:{color:h.palette.text.primary},children:"Apps"}),f.jsx(Ue,{src:"ic_close",sx:{cursor:"pointer"},onClick:()=>{c(""),A({type:Ks,payload:!1}),A({type:os,payload:{type:"",active:!1,nodeId:null}}),z&&A({type:Up,payload:null}),A({type:os,payload:{type:"",active:!1,nodeId:null,edgeId:null}})}})]}),f.jsx(Sx,{sx:{width:"100%","& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${h.palette.neutral.outlined.border}`},position:"sticky",top:0,zIndex:1,display:"block",justifyContent:"center"},children:f.jsx(O.OutlinedInput,{autoFocus:!0,inputRef:N,sx:{width:"100%",p:0,"&:hover":{borderColor:h.palette.neutral.main},"&:focus-visible":{borderColor:h.palette.grey[70]}},value:v,onChange:Z=>re(Z.target.value),placeholder:s||"Search for apps",startAdornment:f.jsx(O.InputAdornment,{position:"start",sx:{m:0,pl:1,pr:.5},children:f.jsx(Ue,{width:24,height:24,src:"ic_search",sx:{path:{fill:h.palette.neutral.solid.bg}}})}),endAdornment:v&&f.jsx(O.IconButton,{sx:{px:1},"aria-label":"clear field",onClick:()=>re(""),children:f.jsx(Ue,{src:"ic_close"})})})}),f.jsxs(O.Stack,{gap:1.5,overflow:"auto",height:"100%",children:[f.jsx(Jat,{tabs:w,activeIndex:D,onTabChange:P}),f.jsx(O.Stack,{gap:1,sx:{height:"100%",overflowY:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},children:_?f.jsx(O.Stack,{height:"100%",alignItems:"center",justifyContent:"center",p:3,children:f.jsx(hi,{size:30})}):Object.keys(m).length===0?f.jsxs(O.Stack,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:[f.jsx(Ue,{src:"ic_no_data",width:75,height:75}),f.jsx(O.Typography,{variant:"lgSemiBold",color:"gray.100",children:"No Apps Found"})]}):Object.keys(m).map(Z=>f.jsxs(Sx,{children:[f.jsx(Sx,{px:1,py:.75,sx:{color:h.palette.text.primary},children:f.jsxs(O.Typography,{color:h.palette.text.primary,variant:"mdSemiBold",children:[Z," (",m[Z].activities.filter(K=>!l.includes(K.name)).length,")"]})}),m[Z].activities.filter(K=>!l.includes(K.name)).map((K,ne)=>f.jsx(qat,{node:K,onDragStart:se,onClick:ie,openingFromPlaceholder:t,droppingFromTrigger:a,proIntegration:Te(K),onUpgradeToPro:Oe},K.name+ne))]},Z))})]})]})})})},tlt=C.memo(({menu:e,index:t,totalItems:n,isSelected:r,onSelect:i,disabled:o})=>{const s=O.useTheme();return f.jsxs(C.Fragment,{children:[f.jsx(O.Tooltip,{title:e.label,placement:"right",arrow:!0,children:f.jsx("span",{children:f.jsx(O.IconButton,{disabled:o,onClick:()=>i(e.value),"data-testid":"sidebar-menu-item",sx:{...Bi,p:1.2,width:32,height:32,bgcolor:r?s.palette.primary[100]:"transparent","&:hover":{bgcolor:r?s.palette.primary[100]:s.palette.grey[300],borderRadius:"6px"},borderRadius:"6px",transition:"all 0.2s ease"},children:f.jsx(Ue,{src:e.icon,width:24,height:24,sx:{"& path":{fill:o?s.palette.grey[500]:r?s.palette.primary.main:s.palette.neutral.solid.bg}}})})})}),t<n-1&&f.jsx(O.Divider,{sx:{my:.5,width:20,borderRadius:"8px"}})]},e.value)}),nlt=({navigate:e,ENTITY_ID:t,WORKFLOW_URLS:n,currentSubscription:r,pro_integration:i,openUpgradeModal:o})=>{const s=O.useTheme(),a=ht.useDispatch(),{getNodes:l,getEdges:u,setNodes:c,setEdges:d}=Dt.useReactFlow(),p=u(),h=l(),[A,g]=C.useState(""),{canvasWorkflow:m,showSideBar:E,selectedPlaceholderId:y}=ht.useSelector(q=>q.canvas),{retry_config:v}=m,{VORTEX_MAIN_URL:T,VORTEX_SYNC_DOMAIN:_}=n,x=Oo(),b=Tr(x),w=Tr(Pn.VERSION),{activitiesPopover:D}=ht.useSelector(q=>q.canvas),P=new URLSearchParams(window.location.search).get("source")?.toLowerCase(),k=()=>Ot(m)?!1:x!==Pn.DRAFT,N=C.useMemo(()=>[{label:"Add activity",value:"Add activity",icon:"ic_add_activity",visible:!0,disabled:k()},{label:"Executions",value:"Executions",icon:"ic_executions",visible:!0},{label:"Versions",value:"Versions",icon:"ic_versions",visible:!0},{label:"Global Variables",value:"Global Variables",icon:"ic_global_variables",visible:!0},{label:"Workflow Configurations",value:"Workflow Configurations",icon:"ic_configuration",visible:!0}],[h]),L=C.useCallback(q=>{if(q!=="Add activity"&&a({type:Ks,payload:!1}),q==="Executions"){const G=`/accounts/${t}/workflow-builder/workflow/${w||b}/executions${P?`?source=${P}`:""}`;e?e(G,{replace:!0}):window.location.replace(dd(G))}else q==="Add activity"&&(y&&a({type:Up,payload:null}),a({type:Ks,payload:!E}),D.active&&a({type:os,payload:{type:"",active:!1,nodeId:null,edgeId:null}}));g(F=>F===q?"":q)},[D,E]),M=C.useCallback(()=>g(""),[]),B=C.useCallback(q=>{a({type:ac,payload:{...m,retry_config:q}})},[m,a]);C.useEffect(()=>{D.active&&D.nodeId&&g("Add activity")},[D.active,D.nodeId]);const Q=C.useMemo(()=>N.filter(q=>q.visible),[N]),V=D?.edgeId?p.find(q=>q.id===D.edgeId):p.find(q=>q.target===D?.nodeId);return C.useEffect(()=>{g(E?"Add activity":"")},[E]),f.jsx(O.Box,{bgcolor:s.palette.background.paper,children:f.jsxs(O.Stack,{sx:{height:"100%",position:"relative",width:48},alignItems:"center",spacing:1,children:[Q.map((q,F)=>f.jsx(tlt,{menu:q,index:F,totalItems:Q.length,isSelected:A===q.value||q.value==="Add activity"&&E,onSelect:L,disabled:q?.disabled??!1},q.value)),A==="Add activity"&&f.jsx(elt,{placeholder:"Search for apps",activityType:D?.type,setCanvasNodes:D?.nodeId&&c,setEdges:D?.nodeId&&d,openingFromPlaceholder:!!D?.nodeId,parentNodeId:D?.sourceNodeId||D?.nodeId&&V?.source,currentNodeId:D?.nodeId,droppingFromTrigger:D?.type==="triggers",VORTEX_SYNC_DOMAIN:_,setSelectedMenu:g,pro_integration:i,openUpgradeModal:o}),A==="Versions"&&f.jsx(Qat,{currentSubscription:r,navigate:e,VORTEX_MAIN_URL:T,ENTITY_ID:t,setSelectedMenu:g}),A==="Global Variables"&&f.jsx(Gat,{onClose:M,setSelectedMenu:g}),A==="Workflow Configurations"&&f.jsx(Wat,{onClose:M,retryConfig:v,setRetryConfig:B,setSelectedMenu:g})]})})},rlt=C.memo(nlt),ilt=[],olt=[],slt=e=>{const{WORKFLOW_URLS:t,ENTITY_ID:n,navigate:r,openIntegrationDrawer:i,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,analytics:a,userData:l,ALERT_TOP_BAR:u,currentSubscription:c,pro_integration:d,allowedAccount:p,openUpgradeModal:h,openAddonModal:A}=e,[g,m]=Dt.useNodesState(ilt),[E,y,v]=Dt.useEdgesState(olt),T=O.useTheme(),_=C.useRef(!0),x=Dt.useNodesInitialized(),{VORTEX_MAIN_URL:b}=t,w=ht.useDispatch(),{canvasWorkflow:D,activityExecutionData:I={},nodesToFocus:P,showDebugLogs:k,autoSaving:N,viewOnly:L}=ht.useSelector(Ne=>Ne.canvas),{workflow:M,error:B,retry_config:Q}=ht.useSelector(Ne=>Ne.workflows),{activity_names:V}=ht.useSelector(Ne=>Ne.activities),q=D?.meta?.isHorizontal??!0,F=C.useCallback(Ne=>{m(Fe=>{if(!Array.isArray(Ne)||Ne.length===0)return Fe;const gt=new Map(Fe.map(it=>[it.id,it])),St=new Map;for(const it of Ne){if(it?.type!=="position"||!it?.id||!it?.position)continue;const ut=gt.get(it.id);if(!ut||ut?.type===xt.PLACEHOLDER&&!ut?.data?.isTriggerPlaceholder)continue;const yt=ut.position||{x:0,y:0},It=it.position,Ft=(It?.x??yt.x)-(yt?.x??0),Lt=(It?.y??yt.y)-(yt?.y??0);Ft===0&&Lt===0||St.set(it.id,{dx:Ft,dy:Lt})}let De=Dt.applyNodeChanges(Ne,Fe);return St.size===0||(De=De.map(it=>{if(it?.type!==xt.PLACEHOLDER)return it;const ut=it?.data?.sourceNodeId;if(!it?.data?.isActivityPlaceholder)return it;const It=ut&&St.get(ut)||(Array.isArray(it?.incomingPorts)?it.incomingPorts.map(Me=>St.get(Me)).find(Boolean):void 0);if(!It)return it;const Ft=it.position||{x:0,y:0},Lt=it.positionAbsolute;return{...it,position:{x:Ft.x+It.dx,y:Ft.y+It.dy},...Lt?{positionAbsolute:{x:Lt.x+It.dx,y:Lt.y+It.dy}}:null}})),De})},[m]),[G,W]=C.useState({...D,nodes:g,edges:E}),R=Tr(Pn.VERSION),j=Oo(),$=Tr(),[Y,z]=C.useState(!!$),[H,U]=C.useState(!1),[X,J]=C.useState(null),te=new URLSearchParams(window.location.search),ae=te.get("source")?.toLowerCase(),re=te.get("triggerType")?.toLowerCase(),[ue,Oe]=C.useState(null),[Te,se]=C.useState(!1),[ie,Z]=C.useState(!1),K=C.useRef(null),ne=g?.find(Ne=>Ne.type===xt.TRIGGER),le=()=>GO(M)===GO({...D,nodes:Il("nodes_update",g),edges:Il("edges_update",null,E)}),pe=Ne=>j===kr.PUBLISHED||j===kr.SCHEDULED?{...Ne,workflow_id:$,isHorizontal:q}:{...Ne,isHorizontal:q},Ae=C.useCallback(Ne=>Ne===jp.PUBLISHED&&ne?.data.type===Ke.SCHEDULE?kr.SCHEDULED:Ne,[D]),fe=C.useCallback(Ne=>{const Fe={...ae&&{source:ae},...re&&{triggerType:re}},gt=new URLSearchParams(Fe).toString(),St=gt?`?${gt}`:"",De=`/accounts/${n}/workflow-builder${Ne}${St}`;r&&r(De,{replace:!0}),(ae?.includes("pixelbin")||ae?.includes("catalogcloud")||ae?.includes("copilot")||ae?.includes("commerce_"))&&window.opener.postMessage({source:"boltic",payload:{event:"blt_wf_close",data:{workflow_id:$,organization_id:n}}},window.location.origin)},[ae,re,r,n,$]),Se=C.useCallback(()=>{const Ne=j===Pn.VERSION;w({type:d0,payload:Ne})},[j,w,d0]);C.useEffect(()=>(_.current=!0,()=>{_.current=!1}),[]);const ge=C.useCallback((Ne,Fe=!1)=>{try{if(U(!1),w({type:p0,payload:!1}),!Ne)throw new Error("Error saving workflow");const gt=Ne?.id;let St;Fe&&(St=`/${Ne?.status}/${gt}/version/${gt}`,_.current&&fe(St))}catch{}},[w,U,fe]),ye=C.useCallback((Ne,Fe,gt,St="")=>{const{retry_config:De,global_variables:it,meta:ut,name:yt,parent_id:It}=D;if(M?.status===Ne&&le()){w({type:zn,payload:{open:!0,title:"No changes detected",type:"info"}});return}const Ft={nodes:Il("nodes_update",g),edges:Il("edges_update",null,E),retry_config:De,global_variables:it||{},name:yt,meta:pe(ut),active:!0,version:gt,description:St,status:Ae(Ne),parent_id:It,...(ae||M?.source)&&{source:ae||M?.source}};if(U(!0),Fe==="edit"){Ft.parent_id=M.parent_id;const Lt=Ne==="published";w(Mb(Ft,M.id,b,n,a,Ne)).then(Me=>ge(Me,Lt))}},[w,D,M,b,n,le,Ae,r,g,E]),$e=()=>Ot(D)?!1:j!==Pn.DRAFT,Qe=()=>{w({type:f0,payload:null}),w({type:jO,payload:!k}),Oe(null),se(!0)},je=()=>{w(C4()),w({type:BO}),w({type:tb}),w({type:F5}),w({type:hb}),w({type:c0,payload:!0}),w({type:mb,payload:[]}),w({type:gb,payload:[]}),w({type:f0,payload:null}),w({type:vi.RESET_ACTIVITY_NAMES,payload:null})},et=()=>{if(!$e()&&G&&M&&P?.nodes?.length===0)if(le())w({type:p0,payload:!1});else{const{nodes:Ne,edges:Fe,retry_config:gt,global_variables:St,meta:De,name:it,description:ut,active:yt,version:It,parent_id:Ft}=G;if(!Fe?.some(Ye=>{if(Ye.type===Vn.PLACEHOLDER)return!1;const lt=Ne?.find(Ze=>Ze.id===Ye.target);return lt&<.type!==xt.PLACEHOLDER})){const lt=Ne?.find(Et=>Et.type===xt.TRIGGER)?.data?.type;if(!(lt===Ke.HTTP||lt===Ke.WEBHOOK)){w({type:p0,payload:!1});return}}const Me={nodes:Il("nodes_update",Ne),edges:Il("edges_update",null,Fe),retry_config:gt,global_variables:St||{},name:it,description:ut,meta:pe(De),active:yt,version:It,status:kr.DRAFT,parent_id:Ft,...ae&&{source:ae}};w({type:p0,payload:!0}),Me.parent_id=M.parent_id,w(Mb(Me,M.id,b,n,a)).then(ge)}},rt=ba(Ne=>{if(x){const Fe=JSON.stringify(Ne);localStorage.setItem(`viewport-${$}`,Fe)}},500),nt=async Ne=>{const Fe=Yt(b,`/v1.0/${n}/`,`workflows/${Ne}/suggestions`);return await Xt.get(Fe)};Dt.useOnViewportChange({onChange:rt}),C.useEffect(()=>(Se(),()=>{je()}),[j]),C.useEffect(()=>{g.length>0&&w({type:os,payload:{type:"",active:!1,nodeId:null}})},[Y]);const Ie=Ne=>{const Fe={};Object.keys(Ne.data).forEach(gt=>{const St=Object.values(Ne.data[gt]||Ne.data[gt])[0];Fe[gt]={data:St||{}}}),Ot(Fe)||w({type:sd,payload:{type:"replace",data:{...I,...Fe}}})};C.useEffect(()=>{const Ne=async()=>{if($)try{const St=(await nt($)).data;Ie(St)}catch(gt){cn(gt,w)}},Fe=window.location.pathname.includes("/executions");if(Ne(),$&&rb($)&&j){const gt=Tr(Pn.VERSION);K.current!==null&&K.current!==gt&&(w(C4()),w({type:BO}),w({type:hb}),w({type:mb,payload:[]}),w({type:gb,payload:[]}),m([]),y([])),K.current=gt,!Ot(gt)&&j!==Pn.DRAFT&&w({type:d0,payload:!0});const De=Ot(gt)?Tr(j):gt;w(b4(De,b,n))}else if(!Fe){w({type:zn,payload:{open:!0,title:"Workflow not found, Please check the workflow ID and try again.",type:"error"}});const gt=setTimeout(()=>{_.current&&r&&r(`/accounts/${n}/workflow/workflow-builder`,{replace:!0,state:{updatingFromCanvas:!0}})},2e3);return()=>clearTimeout(gt)}},[w,$,R,j,b,n]),C.useEffect(()=>{if(!Ot(M)){const Fe=Tr(Pn.VERSION)||Tr(j);if(Fe&&M?.id!==Fe)return;N||z(!0);const{name:gt,active:St,version:De,parent_id:it,status:ut,nodes:yt,edges:It,source:Ft,retry_config:Lt,global_variables:Me,meta:Ye,description:lt,workflow_id:Ze}=M,Et=It?.map(Re=>Re.type===Vn.SMOOTH?{...Re,markerEnd:{...Re.markerEnd&&typeof Re.markerEnd=="object"?Re.markerEnd:{},type:Dt.MarkerType.ArrowClosed,color:T.palette.neutral.main}}:Re.type===Vn.PLACEHOLDER?{...Re,data:{...Re.data||{},isStraight:!1},markerEnd:{...Re.markerEnd&&typeof Re.markerEnd=="object"?Re.markerEnd:{},type:Dt.MarkerType.ArrowClosed}}:Re.markerEnd?{...Re,markerEnd:{...Re.markerEnd&&typeof Re.markerEnd=="object"?Re.markerEnd:{},type:Dt.MarkerType.ArrowClosed}}:Re)||[];w({type:ac,payload:{...D,name:gt,meta:Ye,description:lt,active:St,version:De,status:ut,source:Ft,parent_id:it,global_variables:Me,retry_config:Lt,workflow_id:Ze}}),w({type:c0,payload:Ye?.isHorizontal??!0});const vt=yt?.map(Re=>Re.data.name)||[],kt=new Set([...V,...vt]);if(w({type:vi.SET_ACTIVITY_NAMES,payload:[...kt]}),!N){const Re=g.length>0&&yt.length>0,tt=g.filter(Pe=>Pe.type===xt.PLACEHOLDER&&Pe.data?.isActivityPlaceholder),Je=E.filter(Pe=>Pe.type===Vn.PLACEHOLDER).map(Pe=>({...Pe,data:{...Pe.data||{},isStraight:!1},markerEnd:{...Pe.markerEnd&&typeof Pe.markerEnd=="object"?Pe.markerEnd:{},type:Dt.MarkerType.ArrowClosed}}));if(Re){const Pe=new Map;g.forEach(At=>{Pe.set(At.id,At.position)});const st=yt.map(At=>{const Kt=Pe.get(At.id);return Kt?{...At,position:Kt}:At});m(No([...st,...tt])),y(No([...Et,...Je]))}else g.length===0&&Ve(),m(No(yt)),y(No(Et)),g.length===0&&yt.length>0&&Ee()}z(!1)}},[M]),C.useEffect(()=>{g.length>0&&m(Ne=>Ne.map(Fe=>({...Fe,data:{...Fe.data},pro_integration:d})))},[d]),C.useEffect(()=>{B&&z(!1)},[B]),C.useEffect(()=>{if(!Ot(Q)&&Ot(D.retry_config)){const Ne={};Q.forEach(Fe=>{Ne[Fe.key]=Fe.value}),w({type:ac,payload:{...D,retry_config:Ne}})}},[Q]),C.useEffect(()=>{const Ne=M?.nodes?.find(Fe=>Fe.type===xt.TRIGGER);if($&&Ne?.data?.type===Ke.SCHEDULE&&[kr.SCHEDULED,kr.PUBLISHED].includes(j)){const Fe=Ot(R)?$:R;w(_ue(Fe,b,n))}},[M]);const He=C.useMemo(()=>{const Ne=g.filter(De=>!(De.type===xt.PLACEHOLDER&&De.data?.isActivityPlaceholder)),Fe=E.filter(De=>De.type!==Vn.PLACEHOLDER),gt=Ne.map(De=>{let it=1;return De.data?.type===Ke.SWITCH?it=(De.data?.properties?.cases?.length||0)+1:De.data?.type===Ke.IF||De.data?.type===Ke.API||De.data?.type===Ke.GRAPHQL?it=De.data?.properties?.branches?.length||0:De.data?.type===Ke.PARALLEL?it=De.data?.properties?.no_of_parallel_threads||2:De.data?.type===Ke.RESPONSE?it=0:De.data?.properties?.continue_on_failure===!0&&(it=2),`${De.id}:${De.type}:${it}`}).sort().join("|"),St=Fe.map(De=>`${De.source}-${De.sourceHandle||"default"}->${De.target}`).sort().join("|");return`${gt}::${St}::${q}`},[g,E,q]),Ve=C.useCallback(()=>{Z(!0)},[Z]),Ee=C.useCallback(()=>{if(typeof window>"u"){Z(!1);return}requestAnimationFrame(()=>{requestAnimationFrame(()=>{Z(!1)})})},[Z]),_e=C.useRef(!1),we=C.useRef("");C.useEffect(()=>{if(Y||!x||L||_e.current)return;const Ne=g.filter(Ft=>!(Ft.type===xt.PLACEHOLDER&&Ft.data?.isActivityPlaceholder)&&!(Ft.type===xt.PLACEHOLDER&&Ft.data?.isTriggerPlaceholder)),Fe=E.filter(Ft=>Ft.type!==Vn.PLACEHOLDER);if(!Ne.some(Ft=>Ft.type!==xt.TRIGGER)){const Ft=g.some(Me=>Me.type===xt.PLACEHOLDER&&Me.data?.isActivityPlaceholder),Lt=E.some(Me=>Me.type===Vn.PLACEHOLDER);if(Ft||Lt){const Me=g.filter(lt=>!(lt.type===xt.PLACEHOLDER&<.data?.isActivityPlaceholder)),Ye=E.filter(lt=>lt.type!==Vn.PLACEHOLDER);m(Me),y(Ye)}return}const St=D?.meta?.isHorizontal??!0,{placeholderNodes:De,placeholderEdges:it}=vb(Ne,Fe,St),ut=Ft=>`${Ft.data?.sourceNodeId}:${Ft.data?.sourceHandle||"outHandle"}`,yt=Ft=>`${Ft.source}:${Ft.sourceHandle||"outHandle"}`,It=[...De.map(ut).sort(),...it.map(yt).sort()].join("|");It!==we.current&&(we.current=It,_e.current=!0,m([...Ne,...De]),y([...Fe,...it]),requestAnimationFrame(()=>{_e.current=!1}))},[He,Y,x,L,D?.meta?.isHorizontal]),C.useEffect(()=>{if(x&&ie&&!Y&&!L&&g.length>0){const Fe=setTimeout(()=>{Ee()},100);return()=>clearTimeout(Fe)}},[x,ie,Y,L,g.length,Ee]);const ee=C.useCallback(ba(()=>{G&&M&&P?.nodes?.length===0&&et()},M?.meta?.isHorizontal===D?.meta?.isHorizontal&&M?.active===D?.active&&M?.name===D?.name?1e3:0),[G,M,P]);C.useEffect(()=>{j===Pn.DRAFT&&x&&G&&!Ot(G)&&ee()},[G]);const de=C.useCallback(ba((Ne,Fe,gt)=>{W({...gt,nodes:Ne,edges:Fe}),w({type:d0,payload:j!==Pn.DRAFT})},300),[w]);C.useEffect(()=>(de(g,E,D),()=>{}),[g,E,JSON.stringify(D),de]);const be=!M&&!!B&&B.response?.status===403,Ge=window.location.pathname.includes("/executions");return f.jsx(y_,{WORKFLOW_URLS:t,ENTITY_ID:n,analytics:a,userData:l,openAddonModal:A,currentSubscription:c,allowedAccount:p,children:Y?f.jsx(hi,{minHeight:"100vh"}):be?f.jsx(Sue,{navigate:r}):Ge&&(!$||!rb($)||!j)?f.jsx(hi,{minHeight:"100vh"}):f.jsxs(O.Stack,{height:"100vh",sx:{"--focus-border":"transparent"},position:"relative",children:[f.jsx(O.Stack,{height:48,width:"100%",zIndex:T.zIndex.drawer,sx:{backgroundColor:T.palette.background.default},children:f.jsx(Vat,{currentSubscription:c,ALERT_TOP_BAR:u,source:ae,saveWorkflow:ye,WORKFLOW_URLS:t,ENTITY_ID:n,navigate:r,savingWorkflow:H,selectedNode:X,nodes:g,edges:E})}),f.jsx(O.Stack,{sx:{height:"calc(100% - 88px)"},direction:"row",children:f.jsxs(O.Stack,{direction:"row",sx:{height:"100%"},children:[f.jsx(rlt,{currentSubscription:c,navigate:r,ENTITY_ID:e.ENTITY_ID,WORKFLOW_URLS:t,pro_integration:d,openUpgradeModal:h}),f.jsx(hot,{currentSubscription:c,ALERT_TOP_BAR:u,openIntegrationDrawer:i,navigate:r,ENTITY_ID:e.ENTITY_ID,WORKFLOW_URLS:t,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,selectedNode:X,setSelectedNode:J,nodes:g,edges:E,setNodes:m,setEdges:y,onNodesChange:F,onEdgesChange:v,source:ae,showCanvasOverlay:ie,setShowCanvasOverlay:Z,pro_integration:d})]})}),f.jsx(O.Stack,{direction:"row",sx:{visibility:k?"visible":"hidden",position:"absolute",bottom:0,width:"100%"},children:f.jsx(Rst,{execFlag:Te,setExecFlag:se,selectedBlock:ue,setSelectedBlock:Oe,toggleDrawer:Qe,VORTEX_MAIN_URL:b,ENTITY_ID:n,navigate:r})}),f.jsx(O.Stack,{height:40,width:"100%",sx:{backgroundColor:T.palette.background.default,display:k?"none":"flex"},children:f.jsx(mot,{toggleDrawer:Qe})})]})})};function alt(e){return{MuiTypography:{styleOverrides:{root:{fontFamily:["Inter"]}}},MuiCssBaseline:{styleOverrides:{body:{position:"relative","&:before":{content:'""',width:8,height:8,position:"absolute",top:48,left:48,zIndex:10,backgroundImage:"url(https://cdn.pixelbin.io/v2/fyndcloud/original/Temporal/Uploads/bolt/undefined/images/ic_corner_left_1745557061067.svg)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"top"},scrollbarWidth:"thin",scrollbarColor:e?.customization?.isDarkMode?`${e.colors?.grey500} ${e.colors?.darkPrimaryMain}`:`${e.colors.grey[200]} transparent`,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{width:12,height:12,backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimaryMain:e.colors.grey[200]},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e?.customization?.isDarkMode?e.colors?.grey500:e.colors.grey[200],minHeight:24,border:`3px solid ${e?.customization?.isDarkMode?e.colors?.darkPrimaryMain:e.colors.grey[200]}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimary200:e.colors.grey[100]},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimary200:e.colors.grey[100]},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimary200:e.colors.grey[100]},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:e?.customization?.isDarkMode?e.colors?.darkPrimaryMain:e.colors.grey[200]},background:e.colors.white.smoke,height:"100%",width:"100%"},".reactflow-parent-wrapper":{display:"flex",flexGrow:1,width:"100%",height:"100%"},".reactflow-parent-wrapper .reactflow-wrapper":{flexGrow:1,height:"100%"},".react-flow__handle":{position:"absolute",minWidth:"8px",minHeight:"8px",zIndex:2,background:e.colors.common.white,"& .warning":{display:"none"},"&:hover":{background:"transparent",border:"none"}},".react-flow__handle-connecting:not(.valid)":{background:e.colors.error.main,"& .warning":{display:"block"}},".connectingto:not(.valid), .connectingfrom:not(.valid)":{background:e.colors.error.main,"& .warning":{display:"block"}},".Mui-required .MuiSvgIcon-root":{marginLeft:"10px"},".ripple-form-container":{alignItems:"start"},".ripple-footer-action .submit-button":{marginLeft:0},"footer-divider":{}}},MuiButton:{styleOverrides:{root:{fontWeight:600,borderRadius:"6px",fontSize:14,boxShadow:"none",lineHeight:1.5},contained:{border:"1px solid transparent"},outlined:{},text:{}}},MuiButtonBase:{styleOverrides:{root:{"&.MuiButton-root":{textTransform:"none",padding:"6px 12px"},"&.MuiButton-outlined":{color:e.colors.text.secondary,border:`1px solid ${e.colors.neutral.outlined.border}`,"& path":{fill:e.colors.text.secondary},"&:hover":{backgroundColor:e.colors.neutral.soft.bg,border:`1px solid ${e.colors.grey.outlined.border}`}},"&.MuiButton-root.Mui-disabled":{backgroundColor:e.colors.neutral.soft.bg,color:e.colors.grey[40]}}}},MuiPickersDay:{styleOverrides:{root:{borderRadius:"8px","&.Mui-selected":{backgroundColor:e.colors.primary.main,color:e.colors.common.white},"&:focus.Mui-selected":{backgroundColor:e.colors.primary.main}}}},MuiMultiSectionDigitalClockSection:{styleOverrides:{root:{},item:{width:36,minWidth:36,margin:"auto",borderRadius:8,"&.Mui-selected":{backgroundColor:e.colors.primary.main,color:e.colors.common.white}}}},MuiPickersPopper:{styleOverrides:{paper:{margin:"10px 0px",borderRadius:8,border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`}}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{"&.MuiPaper-rounded.MuiPopover-paper":{margin:"10px 0px"},backgroundImage:"none","&.MuiAccordion-root":{backgroundColor:"transparent"},".MuiMenu-list":{paddingTop:"0px",paddingBottom:"0px"},"&.MuiPickersPopper-paper":{margin:"10px 0px",borderRadius:8,border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`}},rounded:{borderRadius:"16px"}}},MuiCardHeader:{styleOverrides:{root:{color:e.colors?.textDark,padding:"24px"},title:{fontSize:"1.125rem"}}},MuiCardContent:{styleOverrides:{root:{padding:"24px"}}},MuiCardActions:{styleOverrides:{root:{padding:"24px"}}},MuiListItemButton:{styleOverrides:{root:{borderRadius:"6px",color:e.darkTextPrimary,paddingTop:"10px",paddingBottom:"10px","&.Mui-selected":{color:e.colors.primary,backgroundColor:e.colors.primary[200],"&:hover":{backgroundColor:e.menuSelectedBack},"& .MuiListItemIcon-root":{color:e.menuSelected}},"&:hover":{backgroundColor:e.menuSelectedBack,color:e.menuSelected,"& .MuiListItemIcon-root":{color:e.menuSelected}}}}},MuiListItemIcon:{styleOverrides:{root:{color:e.darkTextPrimary,minWidth:"36px"}}},MuiList:{styleOverrides:{root:{"& .MuiMenu-List":{p:1},"& .MuiCheckbox-root":{padding:0},"&.MuiMultiSectionDigitalClockSection-root:after":{height:"auto"},"& .MuiListSubheader-root":{paddingTop:12,paddingBottom:8,lineHeight:"inherit","& ~ .MuiMenuItem-root":{paddingLeft:24,fontSize:12}}}}},MuiDialogTitle:{styleOverrides:{root:{fontSize:"1.125rem",color:e.darkTextPrimary}}},MuiListItemText:{styleOverrides:{primary:{color:e.textDark},root:{margin:0}}},MuiInputBase:{styleOverrides:{root:{minHeight:"32px",height:"32px","&.MuiOutlinedInput-root.Mui-disabled":{backgroundColor:e.colors.neutral.soft.bg,color:e.colors.text.tertiary}},multiline:{height:"auto",minHeight:"32px"},input:{fontSize:14,fontWeight:"500",color:e.textDark,height:"32px",padding:"0 12px","&::placeholder":{color:e.colors.text.tertiary,fontSize:14,fontWeight:400},"&:disabled":{cursor:"not-allowed"}},disabled:{cursor:"not-allowed"}}},MuiFormControl:{styleOverrides:{root:{"& .MuiTextField-root":{width:"100%",borderRadius:"250px"},"& .MuiInputBase-root":{height:"32px",minHeight:"32px"},"& .MuiInputLabel-shrink":{top:"0px"},label:{position:"relative",fontSize:12,fontWeight:500,"&.MuiInputLabel-shrink":{top:"12px"}},"& .MuiAccordionSummary-content":{label:{fontSize:16}}}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:0,marginRight:0,"& .MuiFormControlLabel-label":{marginLeft:"5px",color:e.colors.grey900},"& .MuiSvgIcon-root":{color:_a(e.colors.common.black,65.1)},"&.MuiFormControlLabel-labelPlacementStart .MuiSwitch-root":{marginLeft:8,marginTop:2}}}},MuiFormLabel:{styleOverrides:{root:{fontSize:12,fontWeight:500,color:e.colors.text.tertiary,"& .MuiInputLabel-root":{top:0},"&.Mui-focused":{color:e.colors.text.tertiary}},shrink:{top:0},asterisk:{color:e.colors.primary[50]}}},MuiOutlinedInput:{styleOverrides:{root:{background:e?.customization?.isDarkMode?e.colors?.darkPrimary800:"transparent",borderRadius:"8px",height:"32px",minHeight:"32px","& .MuiOutlinedInput-notchedOutline":{borderColor:e.colors.neutral.outlined.border,borderRadius:"8px"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.colors.neutral.plain}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.colors.error.main}`},"&:hover:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderColor:e.colors.grey[40]},"&.MuiInputBase-multiline":{height:"auto",minHeight:"32px"},"& legend":{maxWidth:"0px"},"& .MuiBox-root":{gap:"8px"}},input:{fontWeight:400,fontSize:14,background:e?.customization?.isDarkMode?e.colors?.darkPrimary800:"transparent",padding:"0 12px",height:"32px",borderRadius:`${e.shape.borderRadius}px`,"&.MuiInputBase-inputSizeSmall":{padding:"0 12px",height:"32px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0}},"&.Mui-disabled":{cursor:"not-allowed",backgroundColor:e.colors.neutral.soft.bg,color:e.colors.text.tertiary}},inputAdornedStart:{paddingLeft:4},disabled:{cursor:"not-allowed"}}},MuiSlider:{styleOverrides:{root:{"&.Mui-disabled":{color:e.colors?.grey300}},mark:{backgroundColor:e.paper,width:"4px"},valueLabel:{color:e?.colors?.primaryLight}}},MuiDivider:{styleOverrides:{root:{borderColor:e.divider,opacity:1}}},MuiAvatar:{styleOverrides:{root:{color:e.colors?.text.primary,background:e.colors?.primary[200]}}},MuiChip:{styleOverrides:{root:{"&.MuiChip-deletable .MuiChip-deleteIcon":{color:"inherit"},background:e.colors.white.smoke,height:24,color:e.colors.text.primary,borderRadius:4,fontWeight:500,fontSize:12,border:`1px solid ${e.colors.neutral.outlined.border}`,"& span":{padding:"0 8px"}}}},MuiAccordion:{styleOverrides:{root:{backgroundColor:"transparent","&.Mui-expanded":{margin:"0px"},"&:before":{backgroundColor:"transparent"}}}},MuiAccordionSummary:{styleOverrides:{root:{paddingLeft:"16px",paddingRight:"16px","&, &.Mui-expanded":{minHeight:0},"& .MuiAccordionSummary-content":{display:"flex",alignItems:"center","&.Mui-expanded":{margin:0}},"&::before":{opacity:0}}}},MuiAccordionDetails:{styleOverrides:{root:{padding:0}}},MuiAutocomplete:{styleOverrides:{root:{"& .MuiFormControl-root":{"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,height:"32px",minHeight:"32px"}},"&.MuiAutocomplete-hasPopupIcon":{"&.MuiAutocomplete-hasClearIcon":{"& .MuiOutlinedInput-root":{paddingRight:"36px",position:"relative",height:"32px",minHeight:"32px","&:hover":{paddingRight:"56px"}},"&.Mui-focused .MuiOutlinedInput-root":{paddingRight:"56px"}}}},disabled:{cursor:"not-allowed"},popper:{marginTop:"8px",borderRadius:"8px",border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`,background:e.colors.common.white,translate:"0 8px","& .MuiAutocomplete-listbox":{padding:"4px 0"},"& .MuiAutocomplete-paper:first-of-type, & .MuiAutocomplete-paper:last-of-type":{borderRadius:"8px"},"& .MuiAutocomplete-option":{top:"20px",padding:"6px 8px",fontSize:"14px",fontWeight:400,minHeight:"32px",display:"flex",alignItems:"center","& span":{display:"flex",alignItems:"center"},color:e.typography.allVariants.color}}}},MuiTabs:{styleOverrides:{root:{"& .MuiTabs-indicator":{display:"none"},"& .MuiTabs-flexContainer":{gap:"8px"},display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",padding:4,borderRadius:8,background:e.colors.white.smoke}}},MuiTab:{styleOverrides:{root:{fontFamily:"Inter",color:e.colors.text.tertiary,fontSize:e.typography.smNormal.fontSize,fontWeight:e.typography.xsMedium.fontWeight,backgroundColor:"transparent",borderRadius:"6px",display:"flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",minWidth:"auto",minHeight:"auto",textTransform:"none",gap:"8px","&.Mui-selected":{backgroundColor:e.colors.common.white,color:`${e.colors.primary.main} !important`},"&.Mui-disabled":{opacity:.5,cursor:"not-allowed"}}}},MuiInputLabel:{styleOverrides:{root:{left:"-10px",top:"0px",fontSize:e.typography.mdNormal.fontSize,color:_a(e.colors.common.black,65.1)}}},MuiMenuItem:{styleOverrides:{root:{minWidth:100,display:"flex",alignItems:"center",gap:"8px",padding:"0 8px",fontSize:"14px",fontWeight:400,borderRadius:6},selected:{backgroundColor:e.colors.primary[200],color:e.colors.primary.main}}},MuiMenu:{styleOverrides:{root:{"& .MuiPopover-paper":{marginTop:16,marginLeft:4,background:e.colors.common.white,borderRadius:8,border:`1px solid ${e.colors.grey[200]}`,boxShadow:`0px 2px 8px -2px ${e.colors.secondary.main}, 0px 6px 12px -2px ${e.colors.secondary.main}`,"&:has(.MuiListSubheader-root)":{padding:0}}}}},MuiGrid:{styleOverrides:{root:{margin:0,width:"100%"},".MuiAccordion-root":{borderRadius:"16px"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.colors.neutral.plain,borderRadius:6,fontSize:12,fontWeight:500,padding:"2px 5px",textAlign:"left","& .MuiTooltip-arrow":{color:e.colors.neutral.plain,width:"1.2em",height:"1em"},"& .MuiTooltip-arrow::before":{borderRadius:2}},popper:{'&[data-popper-placement="bottom-end"] .MuiTooltip-arrow:before':{transformOrigin:"0 70%"},'&[data-popper-placement="bottom-start"] .MuiTooltip-arrow:before':{transformOrigin:"0 100%"},'&[data-popper-placement="top-end"] .MuiTooltip-arrow:before':{transformOrigin:"100% -10%"},'&[data-popper-placement="top-start"] .MuiTooltip-arrow:before':{transformOrigin:"100% 30%"}}}},MuiCheckbox:{styleOverrides:{root:{"&.Mui-checked":{"& .MuiSvgIcon-root":{color:e.colors.primary.main}}}}},MuiDataGridCell:{styleOverrides:{root:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},MuiDataGrid:{styleOverrides:{cell:{fontSize:14,color:e.typography.allVariants.color,"&:focus":{outline:0}},root:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},columnHeaderTitle:{textOverflow:"ellipsis"}}},MuiIconButton:{styleOverrides:{root:{padding:4,borderRadius:4,"&.Mui-disabled":{pointerEvents:"all",cursor:"not-allowed"}}}},MuiSnackbar:{styleOverrides:{root:{zIndex:1400,"& .MuiAlert-root":{borderRadius:"12px"}}}},MuiDialog:{styleOverrides:{paper:{borderRadius:12},paperFullScreen:{borderRadius:0}}},MuiFab:{styleOverrides:{root:{backgroundColor:e.colors.primary.main,boxShadow:e.shadows[4],outline:`1px solid ${_a(e.colors.common.black,5)}`,width:50,height:50}}},MuiSvgIcon:{styleOverrides:{root:{"&.sm":{width:"15px",height:"15px"}}}},MuiFormHelperText:{styleOverrides:{root:{marginLeft:5,fontSize:14,color:e.colors.grey.normal,lineHeight:"1.2"}}},MuiSwitch:{styleOverrides:{root:{width:36,height:20,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:12},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(12px)"}},"& .MuiSwitch-switchBase":{padding:4,"&.Mui-disabled":{"& .MuiSwitch-thumb":{backgroundColor:e.colors.grey[40]},"& + .MuiSwitch-track":{opacity:1,border:`1px solid ${e.colors.grey[40]}`}},"&.Mui-checked":{transform:"translateX(16px)",color:e.colors.common.white,"& .MuiSwitch-thumb":{width:12,height:12,borderRadius:16,backgroundColor:e.colors.common.white},"& + .MuiSwitch-track":{opacity:1,border:"none",backgroundColor:`${e.colors.primary[50]} !important`},"&.Mui-disabled":{transform:"translateX(12px)",color:_a(e.colors.primary[50],25),"& + .MuiSwitch-track":{opacity:.5,backgroundColor:e.colors.primary[50]}}}},"& .MuiSwitch-thumb":{width:12,height:12,borderRadius:16,backgroundColor:e.colors.grey[40]},"& .MuiSwitch-track":{borderRadius:16,opacity:1,backgroundColor:e.colors.common.white,boxSizing:"border-box",border:`1px solid ${e.colors.grey[40]}`}}}}}}const Pre={small:{padding:"2px 8px",height:"24px",minWidth:"3rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:600,borderRadius:"6px"},medium:{padding:"2px 12px",height:"32px",minWidth:"3rem",fontSize:"0.875rem",lineHeight:"1.125rem",fontWeight:600,borderRadius:"6px"},large:{padding:"2px 16px",height:"40px",minWidth:"3rem",fontSize:"0.875rem",lineHeight:"1.125rem",fontWeight:600,borderRadius:"6px"},extraLarge:{padding:"2px 16px",height:"48px",minWidth:"6rem",fontSize:"1rem",lineHeight:"1.1875rem",fontWeight:600,borderRadius:"6px"}},Nre={width:"fit-content",padding:"2px 12px",height:"32px",minWidth:"3rem",fontSize:"0.875rem",lineHeight:"1.125rem",border:"1px solid",boxShadow:"none",borderColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"6px",textTransform:"none",fontWeight:600,transition:"all 0.2s ease-in-out","&:hover":{},"&:focus-visible":{outline:0},"&:disabled":{cursor:"not-allowed",pointerEvents:"all"}},Lre=e=>({primary:{main:e.palette.primary.main,light:e.palette.primary[30],dark:e.palette.primary[60],contrast:e.palette.common.white,hover:e.palette.primary[60],active:e.palette.primary[60],disabled:e.palette.primary.main,disabledText:e.palette.common.white,border:e.palette.primary[30],outlinedHoverBackground:e.palette.primary[5]},neutral:{main:e.palette.text.secondary,light:e.palette.grey[40],dark:e.palette.text.tertiary,contrast:e.palette.common.white,hover:e.palette.text.tertiary,active:e.palette.text.tertiary,disabled:e.palette.text.secondary,disabledText:e.palette.common.white,border:e.palette.neutral.outlined.border,outlinedHoverBackground:e.palette.grey[300]},danger:{main:e.palette.error.main,light:e.palette.error[40],dark:e.palette.error[60],contrast:e.palette.common.white,hover:e.palette.error[60],active:e.palette.error[60],disabled:e.palette.error.main,disabledText:e.palette.common.white,border:e.palette.error.outlined.border,outlinedHoverBackground:e.palette.error.soft.bg},success:{main:e.palette.success[40],light:e.palette.success[40],dark:e.palette.success[60],contrast:e.palette.common.white,hover:e.palette.success[60],active:e.palette.success[60],disabled:e.palette.success[40],disabledText:e.palette.common.white,border:e.palette.success.outlined.border,outlinedHoverBackground:e.palette.success.soft.bg},warning:{main:e.palette.warning[40],light:e.palette.warning[40],dark:e.palette.warning[60],contrast:e.palette.common.white,hover:e.palette.warning[60],active:e.palette.warning[60],disabled:e.palette.warning[40],disabledText:e.palette.common.white,border:e.palette.warning.outlined.border,outlinedHoverBackground:e.palette.warning.soft.bg}}),llt=(e,t,n)=>{const i=Lre(n)[e],o={color:t==="contained"?i.contrast:i.main,backgroundColor:t==="contained"?i.main:"transparent",borderColor:t==="outlined"?i.border:"transparent"},s={"&:hover":{backgroundColor:t==="contained"?i.hover:t==="outlined"?`${i.outlinedHoverBackground}`:"transparent",borderColor:t==="outlined"?i.border:"transparent",...t==="text"&&{color:i.hover,backgroundColor:"transparent"}}},a={"&:active":{backgroundColor:t==="contained"?i.active:t==="outlined"?`${i.outlinedHoverBackground}`:"transparent",borderColor:t==="outlined"?i.border:"transparent",...t==="text"&&{color:i.active,backgroundColor:"transparent"},boxShadow:"none"}},l={"&:focus-visible":{outline:`2px solid ${i.outlinedHoverBackground}`,outlineOffset:"2px",borderColor:t==="outlined"?i.border:"transparent"}},u={"&:disabled":{backgroundColor:t==="outlined"?"transparent":i.disabled,color:t==="outlined"?i.main:i.disabledText,borderColor:t==="outlined"?i.disabled:"transparent",cursor:"not-allowed",opacity:.3}};return{...o,...s,...a,...l,...u}},ult=e=>{const t=Lre(e),n=Object.keys(t),r=["contained","outlined","text"],i=Object.keys(Pre),o=[];return n.forEach(s=>{r.forEach(a=>{i.forEach(l=>{const u=llt(s,a,e),c=Pre[l],d=a==="text"?{...u,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,borderRadius:c.borderRadius,backgroundColor:"transparent",padding:"0",height:"auto",minWidth:"auto","&:disabled":{backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},"&:focus-visible":{backgroundColor:"transparent"}}}:{...u,...c};o.push({props:{color:s,variant:a,size:l},style:d})})})}),o},clt=e=>({MuiButtonBase:{defaultProps:{disableRipple:!0}},MuiLoadingButton:{styleOverrides:{...Nre,root:{"&:hover":{color:"transparent !important"},".MuiLoadingButton-loadingIndicator":{color:"inherit"}}}},MuiButton:{styleOverrides:{root:{...Nre,"&.Mui-disabled":{cursor:"not-allowed",pointerEvents:"all"}}},variants:ult(e)}}),N8=e=>{const t=db,n={...t,customization:e},r={direction:"ltr",palette:t.colors,shadows:t.shadows,zIndex:t.zIndex,icons:t.icons,mixins:{toolbar:{minHeight:56,padding:"12px","@media (min-width: 600px)":{minHeight:56,padding:"12px"}}},drawer:t.drawer,shape:t.shape,input:t.input,tooltip:t.tooltip,typography:t.typography},i=mN(r),o=alt(n),s=clt(i);return i.components={...i.components,...o,...s},i};var L8,kre;function dlt(){if(kre)return L8;kre=1;var e="[object Symbol]",t="\\ud800-\\udfff",n="\\u0300-\\u036f\\ufe20-\\ufe23",r="\\u20d0-\\u20f0",i="\\ufe0e\\ufe0f",o="["+t+"]",s="["+n+r+"]",a="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+a+")",u="[^"+t+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",h=l+"?",A="["+i+"]?",g="(?:"+p+"(?:"+[u,c,d].join("|")+")"+A+h+")*",m=A+h+g,E="(?:"+[u+s+"?",s,c,d,o].join("|")+")",y=RegExp(a+"(?="+a+")|"+E+m,"g"),v=RegExp("["+p+t+n+r+i+"]"),T=typeof $n=="object"&&$n&&$n.Object===Object&&$n,_=typeof self=="object"&&self&&self.Object===Object&&self,x=T||_||Function("return this")();function b($){return $.split("")}function w($){return v.test($)}function D($){return w($)?I($):b($)}function I($){return $.match(y)||[]}var P=Object.prototype,k=P.toString,N=x.Symbol,L=N?N.prototype:void 0,M=L?L.toString:void 0;function B($,Y,z){var H=-1,U=$.length;Y<0&&(Y=-Y>U?0:U+Y),z=z>U?U:z,z<0&&(z+=U),U=Y>z?0:z-Y>>>0,Y>>>=0;for(var X=Array(U);++H<U;)X[H]=$[H+Y];return X}function Q($){if(typeof $=="string")return $;if(G($))return M?M.call($):"";var Y=$+"";return Y=="0"&&1/$==-1/0?"-0":Y}function V($,Y,z){var H=$.length;return z=z===void 0?H:z,!Y&&z>=H?$:B($,Y,z)}function q($){return function(Y){Y=W(Y);var z=w(Y)?D(Y):void 0,H=z?z[0]:Y.charAt(0),U=z?V(z,1).join(""):Y.slice(1);return H[$]()+U}}function F($){return!!$&&typeof $=="object"}function G($){return typeof $=="symbol"||F($)&&k.call($)==e}function W($){return $==null?"":Q($)}function R($){return j(W($).toLowerCase())}var j=q("toUpperCase");return L8=R,L8}var flt=dlt();const plt=Ur(flt),hlt=e=>{const{WORKFLOW_URLS:t,ENTITY_ID:n,navigate:r,openIntegrationDrawer:i,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,analytics:a,USER_DATA:l,ALERT_TOP_BAR:u,currentSubscription:c,pro_integration:d=!1,allowedAccount:p,openUpgradeModal:h,openAddonModal:A}=e,g=Tr("workflow"),{canvasWorkflow:{name:m="",version:E="",meta:y={},source:v=""}={}}=ht.useSelector(I=>I.canvas)??{},T=new URLSearchParams(window.location.search),_=T.get("from"),x=T.get("template_id"),b=ht.useSelector(I=>I.customization),[w,D]=C.useState(null);return C.useEffect(()=>{if(!(_==="express"||x))return;const I=window?.__wisper;if(I)return I?.showFeedback({position:"bottom-right",entity_type:x?"workflow_template":"workflow",entity_id:x||g,entity_name:m,feedback_type:x?"rating:star":"vote:thumbs",question:"Was this workflow helpful?",meta:{source:v,version:E,...y},source:window.location.href}),()=>{I?.hideFeedback()}},[g,m,v,x]),C.useEffect(()=>{if(l){const{first_name:I="",_id:P="",email:k="",profile_pic_url:N=""}=l??{},L={name:plt(I),hostId:P,email:k,profilePicUrl:N,additionalFields:{orgId:n}};D(L)}},[l]),f.jsx(O.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(O.ThemeProvider,{theme:N8(b),children:[f.jsx(O.CssBaseline,{}),f.jsx(Dt.ReactFlowProvider,{children:f.jsx(slt,{currentSubscription:c,ALERT_TOP_BAR:u,WORKFLOW_URLS:t,openIntegrationDrawer:i,ENTITY_ID:n,navigate:r,INTEGRATION_DATA:o,SET_INTEGRATION_DATA:s,analytics:a,userData:w,pro_integration:d,allowedAccount:p,openUpgradeModal:h,openAddonModal:A})}),f.jsx($3,{})]})})};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("@font-face{font-family:url(data:font/otf;base64,T1RUTwAMAIAAAwBAQ0ZGIDkMNPwAAA1QAAEDlkdQT1OphLsbAAEQ6AAAHGpHU1VCmCyHXQABLVQAAAD0T1MvMml2Lw0AAAEwAAAAYGNtYXAygSZ1AAAGDAAABWxoZWFkKaftRAAAAMwAAAA2aGhlYQa/AvoAAAEEAAAAJGhtdHjfxBDzAAALmAAAAbhtYXhwAG5QAAAAASgAAAAGbWV0YVwccuMAAS5IAAANyW5hbWV6rq1hAAABkAAABHtwb3N0AAMAAAAAC3gAAAAgAAEAAAABAADukoGzXw889QADA+gAAAAA451VCwAAAADjnVUL/67/FwOgAzYACAADAAIAAQAAAAAAAQAAAtv/GQAAA6n/rv/JBDMAAQ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I/wAAAAD//9w4Uv8AHQAA///i/XH/ACPMzf8AAAAACP8ACVHs/wAAAAAF/wAjyj3/AAAAAP8AHQKP/wAdAo//AAAAAP8AI8euCP8AAAAA/wAjzM3//+L9cf8AHQAA///cNcP/AAAAAAgO+Cr/AHDRof8CvXWdFf//3L7B/wAAAAD//+Nvnv//42+e/wAAAAD//9zBugj/AAAAAP//9jsaBf8AAAAA///iJYn/ABgyQ///5828/wAd2nj/AAAAAAj/AAfgL/8AAAAABf8AAdLg/wAAAAD/AAGIiP///oNd/wAAAAD///4qJwj/AAAF8v//7RDV///7GRf//+4Hp///9iw7///vB2QI///2Rv7//+80AP//8blM///03DP//+0rmf//+n51CP///a1B////U4b///5Zu////fGn/wAAAAD///2YcAj/AAAAAP//0TvLBf8AAAAA///8gOn/AANGl////VQL/wADZ03/AADNMAj/ACLBYf8ACC2A/wAcVOn/ABCHm/8AFe5j/wAY5LAI/wAXUEP/ABp5Hf8AC/bv/wAgxN//AACjjv8AJxChCP8AAAAA/wA/0aEF/wAAAAD/ACM+Rv//42+e/wAckGL//9zBuv8AAAAACP8Ar+0G/wAAAAEV///8OYv/AAAAAAX//9zBuv8AAAAA///jb57//+Nvnv8AAAAA///cwboI/wAAAAD///Y7GgX/AAAAAP//4iWJ/wAYMkP//+fNvP8AHdp4/wAAAAAI/wAH4C//AAAAAAX/AAHS4P8AAAAA/wABiIj///6DXf8AAAAA///+KicI/wAABfL//+0Q1f//+xkX///uB6f///YsO///7wdkCP//9kb+///vNAD///G5TP//9Nwz///tK5n///p+dQj///2wO////1OG///+VsH///3xp/8AAAAA///9mHAI/wAAAAD//9E7ywX/AAAAAP///IDp/wADRpf///1UC/8AA2dN/wAAzTAI/wAiwWH/AAgtgP8AHFTp/wAQh5v/ABXuY/8AGOSwCP8AF1BD/wAaeR3/AAv27/8AIMTf/wAAo47/ACcQoQj/AAAAAP8AP9GhBf8AAAAA/wAjPkb//+Nvnv8AHJBi///cwbr/AAAAAAgO+OL/AhRMzf8B709cFf//vY9c/wAAAAAF///5Eez/AAAAAP//+qj2/wAGI9f/AAD9cf8ABt64CP8AGvXD/wCzlwoF/wAAfXH/AANwpP///VcK/wADEez///yHrv8AAAAACP//uzCk/wAAAAAF///9Jmb/AAAAAP///Zma///949f///+cKf///TCkCP//5UUf//9Ho9cF////OFL///pcKf//+y4U///7z1z///pPXP8AAAAACP//qP1x/wAAAAAF///5D1z/AAAAAP//+qj2/wAGI9f/AAD64f8ABt64CP8AGvXD/wCzlwoF/wAAfXH/AANwpP///VcK/wADEez///yFH/8AAAAACP//uzXD/wAAAAAF///9Jmb/AAAAAP///Zma///949f///+Zmv///TCkCP//5UUf//9Ho9cF////OFL///peuP//+y4U///7zM3///pPXP8AAAAACP//qH1x/wAAAAAF///83Cn/AAAAAP///XCk///9bhT/AAAAAP///NmaCP8AAAAA///BB64F/wAAAAD///zZmv8AAo9c///9cKT/AAMj1/8AAAAACP8ASnXD/wAAAAAF/wAG64X/AAAAAP8ABVHs///549f///8KPf//+SZmCP//8UzN//+MszMF////OuH///peuP//+y4U///7yj3///pPXP8AAAAACP//p3rh/wAAAAAF///82Zr/AAAAAP///XMz///9czP/AAAAAP///NmaCP8AAAAA///BAAAF/wAAAAD///zcKf8AAozN///9bhT/AAMmZv8AAAAACP8ASnMz/wAAAAAF/wAG64X/AAAAAP8ABVHs///549f///8Mzf//+Sj2CP//5euF//9DJmYF////h67///yR7P8AAqj2///88zP/AAN1w/8AAAAACP8AQ9wp/wAAAAAF/wAC1wr/AAAAAP8AAmZm/wACFwr/AABmZv8AAs9cCP8AG6Zm/wDBnCkF/wAAz1z/AAWcKf8ABM9c/wAEK4X/AAWuFP8AAAAACP8AViFI/wAAAAAF/wAG6Pb/AAAAAP8ABVR7///549f///8Mzf//+Sj2CP//5euF//9DI9cF////hR////yR7P8AAquF///88zP/AANzM/8AAAAACP8AQ9wp/wAAAAAF/wAC1wr/AAAAAP8AAmZm/wACFwr/AABo9v8AAs9cCP8AG6Zm/wDBnCkF/wAAzM3/AAWcKf8ABM9c/wAEK4X/AAWuFP8AAAAACP8ATqPX/wAAAAAF/wADJmb/AAAAAP8AAozN/wACkez/AAAAAP8AAyZmCP8AAAAA/wA+/XEF/wAAAAD/AAMmZv///XMz/wACjM3///zZmv8AAAAACP//vnhS/wAAAAAF///5FHv/AAAAAP//+q4U/wAGHCn/AADzM/8ABtwpCP8ABu4U/wAyDM0F/wAAfXH/AANrhf///VR7/wADD1z///yMzf8AAAAACP//vCZm/wAAAAAF///9KPb/AAAAAP///ZcK///95mb///+cKf///SuFCP//+Gj2///JQo8F////OuH///peuP//+y4U///7yj3///pPXP8AAAAACP//qOj2/wAAAAAF///5Eez/AAAAAP//+rCk/wAGHCn/AADwpP8ABtmaCP8ADrMz/wBzUewF/wAAx67/AAWeuP8ABNHs/wAENcP/AAWwpP8AAAAACP8BDQeu/wAAAAAF/wADJmb/AAAAAP8AAozN/wACj1z/AAAAAP8AAyZmCP8AAAAA/wA++FIF/wAAAAD/AAMmZv///XMz/wACkez///zZmv8AAAAACA741/8Bgi4U/wLb49cV///9h67/AAAAAP///ceu///+euH///8euP///bCkCP/+2gKP//0BxR8F///+gAD///wXCv8AAuFI///7zM3/AAQwpP8AAAAACP8AZJma/wAAAAAF/wACeFL/AAAAAP8AAjrh/wABhR//AADhSP8AAk9cCP8BJgAA/wL+NcMF/wABgAD/AAPrhf///Rma/wAENcP///vR7P8AAAAACP/+jtR7//8UmZoV/wAk1Hv/AAAAAP8AHdcK/wAd2Zr/AAAAAP8AJNR7CP8AAAAA/wAk0ez//+Io9v8AHdma///bK4X/AAAAAAj///wPXP8AAAAABf//2yuF/wAAAAD//+ImZv//4iZm/wAAAAD//9suFAj/AAAAAP//2yuF/wAd2Zr//+ImZv8AJNR7/wAAAAAI/wFfoUj//tLeuBX///wMzf8AAAAABf//2y4U/wAAAAD//+Io9v//4iZm/wAAAAD//9suFAj/AAAAAP//2yuF/wAd1wr//+ImZv8AJNHs/wAAAAAI/wAD8zP/AAAAAAX/ACT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//zD1x/wAAAAD//9YHrv8AKfhS/wAAAAD/ADPFHwj/AAAAAP8AC8UfBf8AAAAA/wAzxR//ACn4Uv8AKfhS/wAzwo//AAAAAAj/AKjMzf8AAAAABf8ABmj2/wAAAAD/AAUzM///+szN/wAAAAD///mXCggO93r/AHSYF/8CvXWdFf///DmL/wAAAAAF///cvsH/AAAAAP//42+e///jb57/AAAAAP//3MG6CP8AAAAA///2PhMF/wAAAAD//+Ilif8AGDJD///nzbz/AB3aeP8AAAAACP8AB+Av/wAAAAAF/wAB0uD/AAAAAP8AAYiI///+gGT/AAAAAP///i0gCP8AAAXy///tENX///sZF///7gqg///2LDv//+8Eagj///ZG/v//7zQA///xuUz///TcM///7SuZ///6fnUI///9rUH///9Thv///lm7///98af/AAAAAP///ZhwCP8AAAAA///RO8sF/wAAAAD///yA6f8AA0aX///9VAv/AANnTf8AAM0wCP8AIsFh/wAILYD/ABxU6f8AEIeb/wAV7mP/ABjksAj/ABdQQ/8AGnkd/wAL9u//ACDE3/8AAKOO/wAnE5oI/wAAAAD/AD/OqAX/AAAAAP8AIz5G///jb57/AByQYv//3MG6/wAAAAAIDvfA/wDVI9f//3czMxX/AFMeuP8AAAAABf8ABJcK/wAAAAD/AALMzf8ABPMz///9tcP/AAP4Ugj//9bwpP8AR3Ck///heuH/AEmo9v//7AUf/wBL49cI///rMKT/AE8Ue///9Zma/wBTPXH/AAAAAP8AV164CP8AAAAA/wBXYUj/AAruFP8AUw9c/wAV2Zr/AE64Ugj/ABT64f8AS6FI/wAeIUj/AEnj1/8AJz1x/wBIHrgI/wACKPb/AAP64f///TCk/wAE0ez///t64f8AAAAACP//rIzN/wAAAAAF///98KT/AAAAAP///hR7///+8KT///7hSP///keuCP//0QKP//+3T1z//9urhf//s5ma///mVwr//6/hSAj//+X9cf//rtma///y/XH//614Uv8AAAAA//+sFHsI/wAAAAD//84R7P8AA89c///RLhT/AAehSP//1E9cCP8AB564///UT1z/AAqUe///1oo9/wANh67//9jXCgj/AA2Hrv//2M9c/wAP8zP//9q4Uv8AEmFI///cnrgI/wAR1Hv//92j1/8AEwUf///enCn/ABQo9v//35maCP8AARma///+OFL/AAHuFP///vCk/wACFwr/AAAAAAgO977/AAEc1/8DNmZmFf//+2uF/wAAAAD///0zM///+xR7/wACRR////wFHwj/ACkXCv//t+Zm/wAej1z//7X64f8AE/rh//+0FHsI/wAUzM3//7DuFP8ACmj2//+swo//AAAAAP//qJ64CP8AAAAA//+onrj///UUe///rPCk///qI9f//7FKPQj//+sFH///tGZm///h5mb//7Z4Uv//2MUf//+4ij0I///90ez///wHrv8AAs9c///7K4X/AASHrv8AAAAACP8AU2j2/wAAAAAF/wACDM3/AAAAAP8AAe4U/wABCj3/AAEcKf8AAbXDCP8ALv1x/wBIAo//ACRR7P8ATBHs/wAZrhT/AFAcKQj/ABoFH/8AUSj2/wANAAD/AFKFH/8AAAAA/wBT7hQI/wAAAAD/ADHuFP///AUf/wAu0ez///gHrv8AK7CkCP//+AKP/wArsKT///VCj/8AKXCk///yeuH/ACcwpAj///J4Uv8AJyuF///wOFL/ACVzM///7fhS/wAjuuEI///ueFL/ACKzM///7S4U/wAhjM3//+vcKf8AIGuFCP///uZm/wABxR////4PXP8AARHs///96Pb/AAAAAAgO+Db/ADHXrv8CKse5Ff8AWZJg///hW1IF/wAHRY3///2Dn/8AAsDG///3Iw3///tmaP//+dT0CP//x6Z5//+0VSwF///+FVb///1uz/8AAJqi///8WkD/AAKgEP///ionCP8ALdZP///gFDYF/wAClCr///4zEv8AA4r9/wAAo47/AAHJ9P8AApQqCP8ANssN/wBO910F/wAEcvD/AAZseP8ACXqP/wAAF8r/AASWn///+atTCP8AOV83//+wzSkF/wAB2NL///1xyP8AA5Dv////cUL/AAKLP/8AAd7FCP8AKydh/wAfvy8F/wACiEX/AAHbzP8AAIjL/wADk+j///4eQv8AAoVMCP//x6Z5/wBLrc0F///7Y2//AAYz+P8AAsmx/wAI5d//AAdXZf8AAnN1CP8AXCaK/wAetoYF/wADCx7/AAECt/8AAZpg/wADVXX///7ihv8AAwIyCP//7FV9/wA1QoQF///+5X//AAL8P////KeR/wABf5z///0JtP///tOnCP//qUA+///dx2oF///4jdj///0Ppv//9+1D/wAFfpL/AAAAAP8ACADlCP8AAAAA/wBgK3MF/wAAAAD/AAMi6P///XTB/wACiz7///zdGf8AAAAACP//yC9E/wAAAAAF///83Rj/AAAAAP///XTC///9dMH/AAAAAP///N0ZCP8AAAAA//+fxa8F/wAAAAD///gCFP//9/Yv///6gW7///iN2P8AAupoCP//qGE3/wAiQYIF///8+tX/AAEvUv///Jus///+a5P///73V////O7wCP//7f67///KyWEF////AEP///0Js/8AAZRt///8yEf/AAL2TP///v1JCA747v8A+SFI/wJFWZoV/wAAAAD//0VKPQX/AAAAAP//+ZcK///6zM3///rMzf//+ZR7/wAAAAAI//9GTM3/AAAAAAX///zKPf8AAAAA///9Zmb///1mZv8AAAAA///8x64I/wAAAAD//6SKPQX/AAAAAP///Mo9/wACmZr///1mZv8AAzXD/wAAAAAI/wC5szP/AAAAAAX/AAZrhf8AAAAA/wAFMzP///rMzf8AAAAA///5lwoI/wAAAAD//0VHrgX/AAAAAP///Mo9/wACnCn///1mZv8AAzMz/wAAAAAI/wBbeFL/AAAAAAX/AAMzM/8AAAAA/wACmZr/AAKZmv8AAAAA/wADNcMI/wAAAAD/ALq4UgX/AAAAAP8ABmj2/wAFNcP/AAUzM/8ABmZm/wAAAAAI/wC5uFL/AAAAAAX/AAMzM/8AAAAA/wACmZr/AAKZmv8AAAAA/wADNcMI/wAAAAD/AFt1wwX/AAAAAP8AAzhS///9Zmb/AAKZmv///MzN/wAAAAAI//9GR67/AAAAAAX///mZmv8AAAAA///6yj3/AAUzM/8AAAAA/wAGaPYI/wAAAAD/ALq1wwX/AAAAAP8AAzhS///9Zmb/AAKZmv///MzN/wAAAAAI//+kh67/AAAAAAX///zMzf8AAAAA///9Y9f///1mZv8AAAAA///8x64IDvdq/wBsmZr/AHXmZhX///w4Uv8AAAAABf//3L1x/wAAAAD//+NwpP//43Ck/wAAAAD//9zCjwj/AAAAAP//9j1xBf8AAAAA///iJmb/ABgwpP//58zN/wAd3Cn/AAAAAAj/AAfhSP8AAAAABf8AAdHs/wAAAAD/AAGHrv///oKP/wAAAAD///4rhQj/AAAHrv//7RHs///7GZr//+4Hrv//9iuF///vBR8I///2R67//+8zM///8bhS///03Cn//+0rhf//+oAACP///a4U////VHv///5Zmv///fCk/wAAAAD///2Zmgj/AAAAAP//0TrhBf8AAAAA///8gAD/AANHrv///VcK/wADZmb/AADKPQj/ACLAAP8ACC4U/wAcVHv/ABCHrv8AFfCk/wAY5mYI/wAXT1z/ABp4Uv8AC/XD/wAgxR//AACj1/8AJxHsCP8AAAAA/wA/z1wF/wAAAAD/ACM9cf//43Ck/wAcj1z//9zAAP8AAAAACA74Df8AKQAA/wF8QAAV/wAAAAD//554UgX/AAAAAP///Mo9/wACmZr///1o9v8AAzXD/wAAAAAI/wEaeFL/AAAAAAX/AAMzM/8AAAAA/wACmZr/AAKXCv8AAAAA/wADNcMI/wAAAAD/AGGHrgX/AAAAAP8AAzMz///9Zmb/AAKZmv///MzN/wAAAAAI//7lh67/AAAAAAX///zKPf8AAAAA///9Zmb///1mZv8AAAAA///8zM0IDvdo/wBrmZr/AHXmZhX///w4Uv8AAAAABf//3L1x/wAAAAD//+NwpP//43Ck/wAAAAD//9zCjwj/AAAAAP//3MKP/wAcj1z//+NuFP8AI0AA/wAAAAAI/wADxR//AAAAAAX/ACNAAP8AAAAA/wAcj1z/AByR7P8AAAAA/wAjPXEI/wAAAAD/ACM9cf//43Ck/wAcj1z//9zFH/8AAAAACA74W/8BPWP4/wLYD1wV//7aAo///QHFHwX///6AAP///BcK/wAC5mb///vMzf8ABDCk/wAAAAAI/wBkmZr/AAAAAAX/AAJ9cf8AAAAA/wACNcP/AAGFH/8AAOFI/wACT1wI/wEl/XH/Av41wwX/AAGAAP8AA+uF///9HCn/AAQ1w///+89c/wAAAAAI//+baPb/AAAAAAX///2Cj/8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AAAA/wAp+FL//9YHrv8AAAAA///MOuEI/wAAAAD///5zMwX/AAAAAP//07rh///hUez//9rj1///1r1x///2K4UI////6Pb////64f////Ck////9cP////o9v////hSCP//FiuF///LXCkF//+lwAD//+yuFP//v4Uf//+wQAD/AAAAAP//o7hSCP8AAAAA//+ekewF/wAAAAD//92FH/8AG/XD///kDM3/ACJ4Uv8AAAAACP8B82Zm/wAAAAAF/wAER67/AAAAAP8AA3hS/wADczP/AAAAAP8ABEo9CP8AAAAA/wBYh64F/wAAAAD/AARFH////Ieu/wADeFL///u4Uv8AAAAACP/+O3Mz/wAAAAAF///7uuH/AAAAAP///Io9/wADczP/AAAAAP8ABEeuCP8AAAAA/wAZ64UF/wAAAAD/AD7KPf8ALNHs/wA13Cn/AD3AAP8AC2ZmCP8Ax/hS/wAnKPYF/wAAAAD/AAAHrgX/AFsHrv8ACseu/wBGmZr/AE1hSP8AAAAA/wBd64UI/wAAAAD/ABM64QX/AAACj/8AZ4zN//+sD1z/AFPwpP//mHXD/wAAAAAIDvlA/wI0z5z/AWBZmhX/ACQrhf8AIX1x/wAWq4X/AC/hSP8AAAAA/wA1MzMI/wAAAAD/ABM64QX/AAAAAP8AZ4zN//+sD1z/AFPwpP//mHXD/wAAAAAI//871wr/AAAAAAX//5/1w/8AAAAA//+xD1z//7e64f//9QzN//+i64UI////MzP///lMzf8ABTrh///6FHv/AAbAAP8AAAAACP8AWSPX/wAAAAAF/wAFGZr/AAAAAP8ABJHs/wADTM3/AAF64f8ABOj2CP8AC6Zm/wAmeuH/ACPCj/8AHAeu/wAqSj3/AAAAAAj/AKWwpP8AAAAABf8AM8Uf/wAAAAD/ACn1w///1go9/wAAAAD//8w4Ugj/AAAAAP///nMzBf8AAAAA///MOFL//9YKPf//1geu///MOuH/AAAAAAj//1jrhf8AAAAABf//+7rh/wAAAAD///yKPf///Io9/wAAAAD///u4Ugj/AAAAAP//rXhSBf8AAAAA///7uuH/AAN1w////Ieu/wAERR//AAAAAAj/AKcUe/8AAAAABf8AM8Uf/wAAAAD/ACn1w///1go9/wAAAAD//8w4Ugj/AAAAAP//9D1xBf8AAAAA///MOuH//9YKPf//1geu///MOuH/AAAAAAj//1pPXP8AAAAABf//1bMz/wAAAAD//9xAAP8AHAKP///0WZr/ACZ9cQj///6Cj/8ABOZm///7cKT/AANPXP//+uZm/wAAAAAI//+m3Cn/AAAAAAX///lAAP8AAAAA///6xR////oR7P8AAMzN///5T1wI/wAK8zP//6Lo9v8ATvMz//+3vXH/AGAHrv8AAAAACP8AxCj2/wAAAAAF/wBnij3/AAAAAP8AU/Ck/wBT8KT/AAAAAP8AZ4zNCP8AACZm/wARQo8F/wAAAAD/AAwPXAX////rhf8ANUKP///pR67/AC/o9v//289c/wAhhR8IDvll/wKYa/H/AT+UexX//6N64f8AAAAABf//+7hS/wAAAAD///yMzf8AA3Mz/wAAAAD/AARKPQj/AAAAAP8BZpR7Bf8AAAAA/wAER67///yHrv8AA3XD///7uuH/AAAAAAj//6KeuP8AAAAABf//+7rh/wAAAAD///yKPf///Io9/wAAAAD///u4Ugj/AAAAAP/+mWuFBf8AAAAA///7tcP///yKPf///IzN///7uuH/AAAAAAj//vMR7P8AAAAABf//+tma/wAAAAD///xKPf8ABO4U/wABbhT/AATzMwj/AGZKPf8BYko9Bf8AAWuF/wAE9cP///xKPf8ABO4U///62Zr/AAAAAAj//54rhf8AAAAABf///I9c/wAAAAD///z4Uv///bhS////Cj3///ywpAj//5Z1w//+ku4UBf//94AA///meuH/AARAAP//4xma/wAQKPb//+nmZgj/AA9Mzf//6d64/wAaXCn///NFH/8AGzXD/wAAAAAI/wE3h67/AAAAAAX/AARFH/8AAAAA/wADdcP///yFH/8AAAAA///7vXEI/wAAAAD//zvUewX/AAAAAP//+7hS/wADdcP///yKPf8ABEUf/wAAAAAI/wBdYUj/AAAAAAX/AARFH/8AAAAA/wADeFL/AAN1w/8AAAAA/wAER64I/wAAAAD/AMQrhQX/AAAAAP8ABEUf/wADczP/AAN4Uv8ABEeu/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AAAAA///z64UF/wAAFHv//82o9v8AFEzN///ScKT/ACDMzf//3twpCP//2Drh///eVwr//+ao9v//zco9////64X//8fFHwj/AAAAAP//8/CkBf8AACZm///uvXEF/wAAAAD//5h1w/8AU+4U//+sDM3/AGePXP8AAAAACP8A0uPX/wAAAAAF/wBnij3/AAAAAP8AU/Ck/wBT8zP/AAAAAP8AZ4o9CP8AACZm/wARQo8F/wAAAAD/AAwPXAX////rhf8AODrh///mqPb/ADI1w///2Drh/wAhqPYI//5wMKT/AJThSBX/AAAAAP8AM8KP/wAp+FL/ACFUe/8AM8KP/wAAAAAI/wCcaPb/AAAAAAX/ADPFH/8AAAAA/wAp9cP//96rhf8AAAAA///MPXEI/wAAAAD///Q4UgX/AAAAAP//zKZm///WszP//9ZZmv//zM9c////VHsI//9hI9f/AAAAAAX//8zPXP8AAK4U///WsKT/ACmmZv8AAAAA/wAzVwoI/wAAAAD/AAvHrgX/AWPcKf/+yzMzFf8AAAAA///MOuH//9YHrv//1geu///MOFL/AAAAAAj//0uZmv8AAAAABf//zDrh/wAAAAD//9YHrv8AKfhS/wAAAAD/ADPFHwj/AAAAAP8AC8UfBf8AAAAA/wAzXCn/AClMzf8AKaZm/wAzMKT/AACrhQj/ALbmZv8AAAAABf8AMzCk////VHv/AClPXP//1lma/wAAAAD//8yj1wgO+ST/AZVeuP8CtaPXFf//XnXD/wAAAAAF//+YRR//AAAAAP//q+Zm//+r6Pb/AAAAAP//mEKPCP8AAAAA///VbhQF/wAAAAD///8PXP8AACFI////HCn/AAA1w////yFICP///8zN////IUj////cKf///xcK/wAAAAD///8PXAj/AAAAAP//4go9Bf8AAAAA//+YQo//AFQcKf//q+j2/wBnuFL/AAAAAAj/AKGKPf8AAAAABf8AHCFI/wAAAAD/ABqrhf8ABjrh/wAX+FL/AAsUewj/AAAAAP//w7hSBf8AAAAA///MMzP//9X9cf//1gAA///MMKT/AAAAAAj//wnXCv8AAAAABf//+VHs/wAAAAD///qR7P//+pR7/wAAAAD///lR7Aj/AAAAAP//sOFIBf8AAAAA///5T1z/AAVuFP//+pcK/wAGrhT/AAAAAAj/AQVrhf8AAAAABf8AZ5wp/wAAAAD/AFQAAP8AU/1x/wAAAAD/AGeeuAj/AAAAAP8BPkKPBf8AAAAA/wBnuuH//6vmZv8AVBma//+YR67/AAAAAAj/AE6j1//++hHsFf8AAAAA///MIUj//9XzM///1fMz///MIUj/AAAAAAj//30AAP8AAAAABf//zCPX/wAAAAD//9XzM/8AKgzN/wAAAAD/ADPeuAj/AAAAAP8AQI9cBf8AAAAA/wAz3Cn/ACoMzf8AKgzN/wAz3Cn/AAAAAAj/AIMAAP8AAAAABf8AM964/wAAAAD/ACoMzf//1fMz/wAAAAD//8wj1wgO94D/AHeeuP8Ae4o9Ff///A9c/wAAAAAF///bK4X/AAAAAP//4iZm///iJmb/AAAAAP//2y4UCP8AAAAA///bK4X/AB3Zmv//4iZm/wAk1Hv/AAAAAAj/AAPwpP8AAAAABf8AJNR7/wAAAAD/AB3XCv8AHdma/wAAAAD/ACTUewj/AAAAAP8AJNHs///iKPb/AB3Zmv//2yuF/wAAAAAI///8D1z/APkMzRX/AAPwpP8AAAAABf8AJNR7/wAAAAD/AB3XCv8AHdma/wAAAAD/ACTUewj/AAAAAP8AJNHs///iKPb/AB3XCv//2yuF/wAAAAAI///8D1z/AAAAAAX//9srhf8AAAAA///iJmb//+ImZv8AAAAA///bLhQI/wAAAAD//9srhf8AHdma///iJmb/ACTUe/8AAAAACA73gP8Ad564/wB7ij0V///8D1z/AAAAAAX//9srhf8AAAAA///iJmb//+ImZv8AAAAA///bLhQI/wAAAAD///XMzQX/AAAAAP//4M9c/wAZR67//+a1w/8AHzCk/wAAAAAI/wAGq4X/AAAAAP8ABUAA///6RR////94Uv//+V64CP///rMz///vdcP///r9cf//8DMz///3TM3///DzMwj///XUe///7nMz///xFwr///RcKf//7FcK///6PXEI///9kez///9Mzf///kUf///93Cn/AAAAAP///XrhCP8AAAAA///PIUgF/wAAAAD///xcKf8AA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AAAP///WZm///9Y9f/AAAAAP///MzNCP8AAAAA//+kh64F/wAAAAD///zKPf8AApma///9aPb/AAM1w/8AAAAACP8B8b1x/wAAAAAF/wADMzP/AAAAAP8AApma/wAClwr/AAAAAP8AAzXDCA741f8CCSuF/wEfPXEV//5Blwr/AMW1wwX///TR7P8ABPMz///za4X///fPXP8AAAAA///zxR8I/wAAAAD//8TCjwX/AAAAAP//+TXD/wAEDM3///neuP8ABj1x///9WZoI/wEyo9f//32j1wX/AA29cf//+iuF/wAAAAD//+yFH///8kKP///6K4UI//7NXCn//32mZgX///nAAP///Vma///79cP///neuP8AAAAA///5OFII/wAAAAD//8TAAAX/AAAAAP//88Uf/wAMlHv///fPXP8ACy4U/wAE8zMI/wG+aPb/AMW1wwX/AAYeuP8AArXD/wAD8KT/AAYR7P8AAAAA/wAGsKQI/wAAAAD/AC4KPQX/AAAAAP8ABrCk///8DM3/AAYR7P//+ePX/wACtcMIDvkU/wD0LTz/AHXmZhX///w4Uv8AAAAABf//3MKP/wAAAAD//+NuFP//43Ck/wAAAAD//9zFHwj/AAAAAP//3MAA/wAckez//+NwpP8AIz1x/wAAAAAI/wADx67/AAAAAAX/ACM9cf8AAAAA/wAcj1z/AByPXP8AAAAA/wAjQAAI/wAAAAD/ACM64f//43Ck/wAcj1z//9zCj/8AAAAACP8AnWFI/wI/jM0V//9Sgo//AAAAAAX//5/R7P8AAAAA//+w+FL//7eFH///9ThS//+itcMI////OFL///lPXP8ABUUf///6euH/AAa9cf8AAAAACP8AWSFI/wAAAAAF/wAE+FL/AAAAAP8ABKZm/wADFwr/AAFuFP8ABMUfCP8AC49c/wAmqPb/ACPUe/8AHDCk/wAqbhT/AAAAAAj/AI4Cj/8AAAAABf8ANmZm/wAAAAD/ACuwpP//0iPX///8bhT//8jXCgj///y9cf//zaj2///T8zP//9no9v//zY9c/wAAAAAI///vTM3/AAAAAAX//5q1w/8AAAAA//+9rhT//63j1/8AAAAA//+atcMI/wAAAAD//+YcKQX/AAAAAP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AAD////4UgX///VUe////l64///1Zmb///0wpP//9Yeu///8AAAI///uR67///k4Uv//8D1x///1YUj///IzM///8YzNCP//8jhS///xkez///TwpP//7Zwp///3sKT//+muFAj///ewpP//6auF///71wr//+WCj/8AAAAA///hYUgI/wAAAAD//+aZmv8AA0o9///oQo//AAaPXP//6ePXCP8ABo9c///p5mb/AAnZmv//7NcK/wANI9f//+/PXAj/AA0euP//78zN/wAQh67///MzM/8AE+4U///2lwoI/wAT5mb///aUe/8AF1Hs///7TM3/ABq1w/8AAAAACP8AAK4U/wAAAAD/AACrhf8AAAzN/wAArhT/AAAAAAj/AAEZmv////rh/wABFwr////4Uv8AARma/wAAAAAI/wAkgAD/AAAAAP8AISFI/wAOY9f/ABho9v8AF2uFCP8AAoo9/wACcKT/AAQXCv///ko9/wAAR67///yZmgj/AAAcKf//x4o9/wAuSj3//9GeuP8AOQeu////qPYI/wAGMzP/AAAAAAX/AAF9cf8AAAUfBf8AAaZm////+FIF/wABzM3/AAAAAAX/ADlmZv8AAAAA/wA9OFL/AC84Uv8AAAAA/wA4wo8I/wAAmZr/AFBMzQX/AAAo9v8BVWPXBf8AAAAA/wApSj3//96FH/8AIXrh///WtcP/AAAAAAj//1n64f/+czMzFf///EUf///xx67///pPXP//8zMz///4WZr///ScKQj///hR7P//9J64///2Jmb///bMzf//8/hS///5AAAI///z9cP///kAAP//8aj2///8gAD//+9hSP8AAAAACP//78o9/wAAAAD///IAAP8AA0eu///0LhT/AAaR7Aj///QwpP8ABo9c///2PXH/AAjFH///+Fwp/wAK8KQI///4Vwr/AAruFP//+ko9/wAMfXH///xKPf8ADgAACP///EUf/wAOAo////4mZv8ADj1x/wAAAAD/AA5wpAj/AAAAAP8AD09c/wABo9f/AA79cf8AA0zN/wAOq4UI/wADR67/AA6mZv8ABXXD/wANI9f/AAerhf8AC5maCP8AB6Zm/wALlwr/AAnZmv8ACWuF/wAMDM3/AAc64Qj/AAwHrv8ABzhS/wAOxR//AAOcKf8AEYUf/wAAAAAI/wAc4Uj/AAAAAP8AFt64///1fXH/ABDcKf//6wAACP8AENma///q/XH/AAhuFP//4quF/wAAAAD//9pcKQj/AAAAAP//8R64///+IUj///FuFP///Eo9///xx64IDvkz/wKUQh7/AA/KPRX//wwZmv8CeUUfBf//9aPX/wAa5mb//+Yj1/8AEcAA///jLhT/AAAAAAj//91Mzf8AAAAABf//4wo9/wAAAAD//+dFH///7dwp///2Qo///+ZzMwj//wyXCv/9hcKPBf///RcK///4Y9f/AAWcKf//99cK/wAIJmb/AAAAAAj/AGQ64f8AAAAABf8ABOj2/wAAAAD/AARj1/8AAxma/wABo9f/AASj1wj/ADucKf8AqCZmBf8AAaFI/wAEo9f/AARmZv8AAxcK/wAE64X/AAAAAAj/AQR64f8AAAAABf8ABOuF/wAAAAD/AARj1////Oj2/wABoUj///tcKQj/ADueuP//V9maBf8AAaZm///7XCn/AARhSP///OZm/wAE64X/AAAAAAj/AGkUe/8AAAAABf8ACCZm/wAAAAD/AAWeuP8ACC4U///9D1z/AAeZmgj//xJj1/8BBCPXFf//TPMz/wAAAAAF///4AAD/AAAAAP//+mFI/wAH6Pb/AAKrhf8AB49cCP8AWiuF/wEAUewF/wABq4X/AARMzf8ABCPX/wADEez/AAThSP8AAAAACP8ABPXD/wAAAAD/AAQ9cf///Nma/wABnrj///uZmgj/AFlKPf/+/9HsBf8AAqPX///4dcP///pj1///+Bwp///4AAD/AAAAAAgO+Tn/AjFwpP8BakUfFf8AHjCk/wAgsKT/ABKeuP8AK5Hs/wAAAAD/ADAFHwj/AAAAAP8AEzrhBf8AAAAA/wBnjM3//6wPXP8AU/Ck//+YczP/AAAAAAj//uchSP8AAAAABf//1GuF/wAAAAD//9ywpP//3K4U/wAAAAD//9RwpAj/AAAAAP/96H1xBf8AAAAA///UcKT/ACNPXP//3K4U/wArlHv/AAAAAAj/AAAAAP8AAAAA/wASB67/AAAAAP8AAAUf/wAAAAAI/wEkLhT/AAAAAAX/AGUcKf8AAAAA/wBR+FL/AFHzM/8A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/wADtcP/AAO1w/8AAAAA/wAEkewI/wAAAAD/AqS1wwX/AAAAAP8ABJR7///8Sj3/AAOzM///+24U/wAAAAAI//+jlHv/AAAAAAX///tuFP8AAAAA///8Sj3///xMzf8AAAAA///7a4UI/wAAAAD//VtKPQX/AAAAAP//+24U/wADtcP///xKPf8ABJHs/wAAAAAIDvgc/wFM4Uj/AqnZmhX/AAAAAP8ABrMz///6j1z/AAVwpP//+UzN/wAAAAAI//+q8KT/AAAAAAX///lMzf8AAAAA///6j1z///qPXP8AAAAA///5TM0I/wAAAAD//hvAAAX/AAAFH///zBHs///V5mb//9XmZv//zBHs/wAAAAAI//+SmZr/AAAAAAX///lMzf8AAAAA///6kez///qPXP8AAAAA///5T1wI/wAAAAD//7CwpAX/AAAAAP//+UzN/wAFcKT///qR7P8ABrCk/wAAAAAI/wB8rhT/AAAAAAX/AGfeuP8AAAAA/wBUNcP/AFQ1w/8AAAAA/wBn3rgI/wAAAAD/Ae3FHwUO+Pv/AcMVnf8BhwkLFf//+uaJ/wABuxb///4zEv8ABm9x/wADiv3/AAQQzgj/ACwYQP8AMrRM/wAavYL/AEItTP8AAAAA/wBIeQ4I/wAAAAD/AFmwHAX/AAAAAP8ABml////6zr//AAUxQf//+ZaB/wAAAAAI//+qOgn/AAAAAAX///mWgf8AAAAA///6zr////rOv/8AAAAA///5loEI/wAAAAD//6oxHQX/AAAAAP//lEWz//+oq47//6iuh///lEis/wAAAAAI///jDXz/AAAAAAX///mWgf8AAAAA///6zr//AAUxQf8AAAAA/wAGaX8I/wAAAAD/AQ1LzwX/AAAAAP8ABml////6zr//AAUxQf//+ZaB/wAAAAAI//+qOgn/AAAAAAX///mWgf8AAAAA///6zr////rOv/8AAAAA///5loEI/wAAAAD//WHvzAX/AAAAAP//+ZaB/wAFMUH///rOv/8ABml//wAAAAAI/wBVxff/AAAAAAX/AAZpf/8AAAAA/wAFMUH/AAUxQf8AAAAA/wAGaX8I/wAAAAD/ARfswwX/AAAAAP8ABml//wAFM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wAAAAAI//+x5LH/AAAAAAX///Op6P8AAAAA///0LMD///sZF///90m1///3RrwI//9V+aD//1XEGQX///t1Rv//+3VG///4paL/AAAAAP//+3VG/wAEiroI//9V+aD/AKoGYAX///dJtf8ACLlE///0L7r/AATj8P//86zh/wAAAAAI//+x4bj/AAAAAAX///mWgf8AAAAA///6y8b///rLxv8AAAAA///5loEIDvku/wBMnbn/AADxmBX/AFXF9/8AAAAABf8ABml//wAAAAD/AAU0Ov8ABTQ6/wAAAAD/AAZpfwj/AAAAAP8CJMSYBf8AAAAA/wAI8cT/AAmtHP8ABZZc/wAHv3n///uHHwj/ARS99v//YEdRBf8ADmF4///3tMP/AAjc8///8Ke3/wAAAAD//+9mjQj/AAAAAP/+mQQVBf8AAAAA///5omf/AAUfaf//+tG4/wAGXZr////uKQj/AFXABf///xUUBf8ABnhd////7ij/AAVGEv8ABTot/wAAAAD/AAZ1ZAj/AAAAAP8CnxLqBf8AAAAA/wAGaX////rLxv8ABTQ6///5loH/AAAAAAj//6o/+/8AAAAABf//+ZaB/wAAAAD///rLxv//+svG/////Qb///mWgQj/AAAAAP//aF0HBf8AAAAA///3Djz///ZS5P//+mmk///4QIf/AAR44Qj//t7IQ/8ApxYGBf//+O/6/wAEE8f///f8Iv8AAiYk///31Xn/AAAAAAj//6sZEP8AAAAABf//+ZaB/wAAAAD///rLxv//+svG/wAAAAD///mWgQj/AAAAAP/9YfW/Bf8AAAAA///5loH/AAU0Ov//+svG/wAGaX//AAAAAAgO+S7/AW064f8CwQUfFf//vtR7/wAAAAAF//90yj3/AAAAAP//jyZm//+PI9f/AAAAAP//dMzNCP8AAAAA//8ryj0F/wAAAAD//3TKPf8AcNma//+PI9f/AIs1w/8AAAAACP8AQdma/wAAAAAF/wCLOFL/AAAAAP8AcNcK/wBw3rj/AAAAAP8AizMzCP8AAAAA/wDThR8F/wAAAo//AIuXCv//jtcK/wBxKPb//3Ro9v8AAAAACP8Aj8eu//7bVwoV/wAAAAD//12UewX/AAAAAP//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AAAAA//90yj0I/wAAAAD//yvMzQX/AAAAAP//dMeu/wBw3Cn//48mZv8AizXD/wAAAAAI/wBB1wr/AAAAAAX/ADWKPf8AAAAA/wAxnCn/ABCzM/8AKMzN/wAceFII/wAErhT/AAM9cf8ABj1x////mZr/AAQFH///+/rhCP8APWFI///CoUgF/wAEhR////t4Uv8AB164/wAAAAD/AASHrv8ABIeuCP8ANpHs/wA2lHsF/wAEij3/AASHrv8AAAAA/wAHXCn///t1w/8ABIeuCP//a9ma/wDPo9cV/wAAAAD///UhSP///tcK///1j1z///3Zmv//9gUfCP///hwp///3K4X///THrv///Q9c///5oUj/AAZeuAj//4hUe/8Ad6uFBf//+3Mz/wAEjM3///imZv8AAAAA///7euH///tzMwj//8lrhf//yW4UBf//+3hS///7czP/AAAAAP//+Kj2/wAEh67///t4Ugj/AIHMzf//fjMzBf8ABY9c///6bhT///6Ue///9pwp///5BR////xcKQj//+pXCv//9KuF///nh67///iPXP//5hma///9K4UI///c0ez/AAAAAAX//6iMzf8AAAAA//+5Hrj/AEbmZv8AAAAA/wBXbhQI/wAAAAD/AMEuFAX/AAAAAP8AV3Mz/wBG4Uj/AEbhSP8AV3Mz/wAAAAAI/wAjYUj/AAAAAAX/AFdzM/8AAAAA/wBG4Uj//7keuP8AAAAA//+ojM0IDvkr/wIqUNL/AUB/shX///tmaP8ABFgs////psr/AAb7Nf8ABCiX/wAEwzoI/wAcJVT/ACBCB/8AERNf/wAqLZb/AAAAAP8ALimSCP8AAAAA/wAwdl8F/wAAAAD/AGesef//q/Ue/wBUCuH//5hZev8AAAAACP/+8+xv/wAAAAAF///xS0T/AAAAAP//8kgJ///7403///Q1rP//995lCP//6P0O///xxTD///CJ+v//5rBD////taj//+MEkAj/AAAAAP/9pswGBf8AAAAA///5TyL/AAVsuv//+pY//wAGreT/AAAAAAj/AAAAAP////oOBf8AVObw/wAAAAAF/wAGsN7/AAAAAP8ABWnB/wAFacH/AAAAAP8ABrDeCP8AAAAA/wD7O6sF/wAAAAD/AAYNT/8ABObp/wAE6eL/AAYQSP8AAAAACP8A5wtX/wAAAAAF/wAAvlH/AAAAAP8AALhf/wAAGsP/AADBS/8AAAL6CP8AM0v1////OMP/AClpUv//yxmr/wAAAAD//8yNYgj/AAAAAP//YpoQBf8AAAAA///5Uhz/AAVsuv//+pNG/wAGreT/AAAAAAj/AE8p6/8AAAAABf8ABrDe/wAAAAD/AAVpwf8ABWy6/wAAAAD/AAat5Aj/AAAAAP8ArKlpBf8AAAAA/wA15hP//+lEbf8AMJEi///bnk3/ACI4lgj//79YQ/8AkN1LFf8AAAAA///MK0D//9X8DP//1fkT///MKEf/AAAAAAj//yycM/8AAAAABf//+cMc/wAAAAD///r1Z/8ABQqZ/wAAAAD/AAY85Aj/AAAAAP8Aw+fUBf8AAAAA/wAGPOT/AAUKmf8ABQqZ/wAGPOT/AAAAAAj/ANNmxv8AAAAABf8AM9TA/wAAAAD/ACoG7f//1fwM/wAAAAD//8woRwj/AAAAAP//4T2VBQ746/8CMydH/wDEB0gV/wAAAAD/ABGfI////VES/wARohz///qoFv8AEaIdCP//+qUd/wARnyP///fPhv8AEIeb///0/Or/AA9wFAj///T58P8AD20a///yTfv/AA2vDP//76IG/wAL+ekI///vnw3/AAvz9v//7Mxw/wAJcaP//+n50/8ABu9QCP//9yv4/wACglP///FdHP8AA/AY///ri0b/AAVa4wj//+uITf8ABVfq///rEVr/AAWEhf//6ppn/wAFqy0I///ql27/AAWrLf//7KLO/wAFMUH//+6xJ/8ABLdUCP//7q4u/wAEuk7///YUcf8AAqv1///9fa3/AACglQj//+gSIv8ABuxX///sos7/AAo44P//8TZ0/wANi1wI///xM3r/AA2IY///+Jm+/wASuaT/AAAAAP8AF+3eCP8AAAAA/wACEVP/AAA7ef8AAeex/wAAILb/AAH5iAj/AAAaw/8AAAAABf8AArfa/wAuWSf/ACOjYf8AIpTG/wAvoEP/AAAAAAj/AFgzef8AAAAABf8AKi2W/wAAAAD/ACS09///6/ZU/wAEySz//9NwzQj/AACglf//+jcW/wAFAa3///un1P8ABdHW/wAAAAAI/wBec1b/AAAAAAX/AAcY8v8AAAAA/wAFRhL/AAZLwv///ybr/wAHChMI///0uIT/AFy+M///sTg3/wBH51f//6A2sP8AAAAACP//iFS3/wAAAAAF//+Zkbf/AAAAAP//rOMF//+t0Or///45Bf//mf++CP///2hX///5eMX///+g1///+VIc/wAAAAD///kZnAj/AAAAAP//7l3k/wACW6r//+6xJ/8ABLpO///u/nkI/wAEuk7//+7+ef8ACAPf///v8lD/AAtWWv//8OYpCP8AC1Zb///w4zD/AA9Af///8lD0/wATNon///O1zQj/ABMzkP//87jH/wAYFIf///YUcf8AHPh3///4cxQI/wAulKD///Nlg/8AJzFX///1xyD/AB/ODf//+CLKCP8AH8gb///4H9H/ABvd9v//96je/wAX7d7///cu8gj/AA3Yrf//+vVn/wAMvi3///dYk/8AC6me///zu8AI/wAKYoL///ULx/8ABX6S///vVLb/AAEdev//6kcjCP//+ahZ///NQsj//+OHaP//2RMO//+/T1f/AAAAAAj//6BUbP8AAAAABf//1hnJ/wAAAAD//9gBef8AGViq///6SO7/ACeWcgj///8v1/8ABaU7///7Hwr/AAQlnv//+k7g/wAAAAAI//+lbeP/AAAAAAX///jnDv8AAAAA///6ue7///m0Pv8AANkV///49e0I/wALR3z//6NBzf8ATsrC//+4G6L/AF/JUf8AAAAACP8AjVJO/wAAAAAF/wBni8P/AAAAAP8AU/Ae/wBT8B7/AAAAAP8AZ4vDCP8AAAAA/wAFcq0F/wAACOz/AAHP5v8AABrD/wABxAL/AAAAAP8AAdXZCA74vf8AExwp/wK1eFIV///5Uez/AAAAAP//+pHs///6lHv/AAAAAP//+VR7CP8AAAAA//+vSj0F/wAAAAD///lUe/8ABWuF///6lwr/AAawpP8AAAAACP8Av2Zm/wAAAAAF/wAGOuH/AAAAAP8ABQo9///69cP/AAAAAP//+cUfCP8AAAAA//3KzM0F/wAAAAD///lPXP8ABWuF///6lHv/AAarhf8AAAAACP8AVOuF/wAAAAAF/wAGq4X/AAAAAP8ABWuF/wAFaPb/AAAAAP8ABrMzCP8AAAAA/wI1LhQF/wAAAAD/AAY64f8ABQzN/wAFDM3/AAY4Uv8AAAAACP8Av2Zm/wAAAAAF/wAGrhT/AAAAAP8ABW4U/wAFaPb/AAAAAP8ABquFCP8AAAAA/wBQuFIF/wAAAAD/AAarhf//+pcK/wAFa4X///lMzf8AAAAACA75Kf8CTsUf/wK0czMV//+rHCn/AAAAAAX///lPXP8AAAAA///6lwr///qR7P8AAAAA///5UewI/wAAAAD//jmHrgX/AAAAAP//tbhS///Dx67//8PKPf//tbrh/wAAAAAI///GT1z/AAAAAAX//7W4Uv8AAAAA///Dyj3/ADw4Uv8AAAAA/wBKRR8I/wAAAAD/AcZ4UgX/AAAAAP8ABrCk///6lHv/AAVrhf//+VHs/wAAAAAI//+rFwr/AAAAAAX///lR7P8AAAAA///6lHv///qR7P8AAAAA///5UewI/wAAAAD//jACjwX/AAAAAP//gePX/wBmOuH//5nFH/8Afhwp/wAAAAAI/wBYMzP/AAAAAAX/AH4Zmv8AAAAA/wBmPXH/AGY64f8AAAAA/wB+HCkI/wAAAAD/Ac/9cQX/AAAAAP8ABrCk///6kez/AAVrhf//+VHs/wAAAAAIDvk7/wKRZqX/ArXo9hX//5vCj/8AAAAABf//+xcK/wAAAAD///ueuP///Oj2///+WZr///teuAj//72XCv//RVmaBf////rh/wAAAAAF//++B67//0YHrgX//8FXCv//TePXBf///lR7///7szP///veuP///OuF///7Hrj/AAAAAAj///sKPf8AAAAA///7wo//AAMmZv///mFI/wAEZmYI///BXCn/ALO9cQX//6X1w/8BAWPXBf//16j2/wBxbhQF///+XCn/AAShSP//+5wp/wADFwr///sXCv8AAAAACP//lu4U/wAAAAAF///31wr/AAAAAP//+mFI///3z1z/AALwpP//+Gj2CP8A99R7//17/XEF/wAKXCn//+UZmv8AGdma///uQo//ABzUe/8AAAAACP8AIrMz/wAAAAAF/wAc8zP/AAAAAP8AGL1x/wASI9f/AAm9cf8AGYzNCP8A93XD/wKE+FIF/wAC6Pb/AAecKf//+mPX/wAIKPb///fZmv8AAAAACA75q/8CfqPX/wK1jM0V///8zM3/AAAAAP///WZm///9Zmb/AAAAAP///Mo9CP8AAAAA//5YPXEF/wAAAAD///zuFP///seu///9Cj3///3PXP///dHsCP//d9ma//93zM0F///90ez///3R7P///Gj2////z1z///264f8AAhwpCP//7YKP/wARHrj///Rrhf8AGHrh/wAAAAD/ABswpAj/AAAAAP8BIEKPBf////rh/wAdJmYF/wAAAAD/AAZo9v//+so9/wAFMKT///mXCv8AAAAACP//qkUf/wAAAAAF///5lwr/AAAAAP//+szN///6zM3/AAAAAP//+ZR7CP8AAAAA//8OJmYF/wAAAAD///zrhf///seu///9DM3///3PXP///c9cCP//eEAA//94MzMF///9z1z///3PXP///Gj2////0ez///29cf8AAhmaCP//7Yeu/wARHrj///RwpP8AGHhS/wAAAAD/ABso9gj/AAAAAP8B7o9cBf8AAAAA/wAGa4X///rMzf8ABTMz///5lHv/AAAAAAj//6pHrv8AAAAABf//+ZR7/wAAAAD///rMzf//+szN/wAAAAD///mUewj/AAAAAP/+B+uFBf8AAAAA//+xMKT/ADC9cf//vNR7/wBE7hT//+RcKQj/AAAKPf8AAAo9Bf8ABuuF///9FHv/AAecKf///l64/wAH/XH/AAAAAAj/ABB1w/8AAAAA/wAO3rj/AAbhSP8ACoeu/wALB64I/wAABR//AAAAAAX/AG9hSP8AbIAABf8AEDMz///Hlwr/ACoMzf//0q4U/wA2NcP//+sAAAj/AAZcKf///ZcK/wAG3Cn///6KPf8ABzXD/wAAAAAI/wAQdcP/AAAAAP8ADtHs/wAG49f/AAqKPf8ACweuCP8AyDCk/wDC/XEF/wAIDM3/AAg64f8ABPrh/wALOuH/AAAAAP8ADGuFCP8AAAAA/wG6sKQF/wAAAAD/AAM1w////WZm/wACmZr///zMzf8AAAAACA75Mv8Bz1cB/wFFDM0V///3Fwr/AA3euP8AAAAA/wAP2Zr/AAjo9v8ADeFICP8Au3Ck/wEzaPYF/wAEuuH/AAe9cf//+m4U/wAJ6Pb///bwpP8AAAAACP//nHXD/wAAAAAF///78zP/AAAAAP///D1x///94Uj///3j1////IzNCP//ZNR7//8A7hQF///3FHv///IhSP//8CFI///3FHv//+4rhf8AAAAACP//7yj2/wAAAAD///Aj1/8ACOuF///3FHv/AA3euAj//2PXCv8A/xcKBf///eZm/wADcKT///xAAP8AAhwp///79cP/AAAAAAj//56o9v8AAAAABf//9u4U/wAAAAD///pwpP//9hHs/wAEvXH///hCjwj/ALxcKf/+zJwpBf8AB/Ck///yIUj/AAAAAP//8CZm///4D1z///IeuAj//0Oj1//+zJ64Bf//+0KP///4RR//AAWPXP//9hHs/wAJEez/AAAAAAj/AGFXCv8AAAAABf8ABAo9/wAAAAD/AAPAAP8AAhma/wACGZr/AAN1wwj/AJwo9v8A/xR7Bf8ACOuF/wAN3rj/AA/cKf8ACOuF/wAQ1wr/AAAAAAj/ABDXCv8AAAAA/wAQ3Cn///cUe/8ACOuF///yIUgI/wCbK4X//wDwpAX/AAIZmv///Ieu/wADwo////3j1/8ABA9c/wAAAAAI/wBjij3/AAAAAAX/AAkPXP8AAAAA/wAFkez/AAnrhf//+0Uf/wAHuFIIDvju/wISuuH/ArXo9hX//6pmZv8AAAAABf//+ZcK/wAAAAD///rMzf//+s9c/wAAAAD///mXCgj/AAAAAP//npcKBf///+FI///Lyj0F/wAAAAD//6BeuAX/AAAAAP//zEAA///WCj3//9YKPf//zEAA/wAAAAAI//+j7hT/AAAAAAX//8xAAP8AAAAA///WCj3/ACn1w/8AAAAA/wAzwAAI/wAAAAD/APUzMwX/AAAHrv8ABmZm///6zM3/AAU1w///+ZcK/wAAAAAI//+qRR//AAAAAAX///mXCv8AAAAA///6z1z///rKPf8AAAAA///5mZoI/wAAAAD//wFHrgX/AAAAAP//mIAA/wBT5mb//6wZmv8AZ4AA/wAAAAAI/wB6h67/AAAAAAX/ABZHrv8AAAAA/wAVTM3/AAQAAP8AE8zN/wAHLhQI/wAHZmb/AAKuFP8AB89c///6uuH/AAAAAP//+B64CP8AAAAA///VlHsF/wAAAAD//8xPXP//1hma///WGZr//8xPXP8AAAAACP//CeuF/wAAAAAF///5lHv/AAAAAP//+s9c///6z1z/AAAAAP//+ZR7CP8AAAAA//+wHrgF/wAAAAD///mXCv8ABTCk///6zM3/AAZrhf8AAAAACP8BBUzN/wAAAAAF/wBnYUj/AAAAAP8AU8zN/wBTz1z/AAAAAP8AZ2PXCP8AAAAA/wHtXrgF/wAAAAD/AAZo9v//+s9c/wAFMKT///mXCv8AAAAACA75Av8Aj1Hs/wBoFHsV///5x67/AAAAAP//+vXD/wAFCj3/AAAAAP8ABjhSCP8AAAAA/wATo9cF/wAAAAD/AAMPXP8AAUKP/wAC8KT/AAIzM/8AAhwpCP8BqSPX/wGYx64F/wAQ64X/ABBFH/8ACY9c/wAWczP/AAAAAP8AF3rhCP8AAAAA/wAro9f//9yeuP8AI164///UXrj/AAAAAAj//ku1w/8AAAAABf//+YUf/wAAAAD///rFH///+rCk/wAAHCn///mFHwj/AAFKPf//sCPXBf8AABma///5q4X/AAUo9v//+uuF/wAGVwr/AAAAAAj/AAAAAP8AAAAA/wFkOuH/AAAAAP8AAAo9/wAAAAAI/wAAB67/AAAAAP8AAAUf/wAAAAD/AAAKPf8AAAAACP8AAAzN/wAAAAAF/wAF+uH////mZv8ABNHs///7KPb/AAAAAP//+gKPCP8AAAAA///8+uH///7Hrv///UUf///+Cj3///4Hrgj////9cf////rhBf8AAAAA/wAAAAD/AAAAAP8AAAAA////+uH////9cQj//oBPXP/+kiuFBf//8GPX///xHrj///crhf//61ma/wAAAAD//+pwpAj/AAAAAP//unrhBf8AAAAA///Ua4X/ACNPXP//3LCk/wArlHv/AAAAAAj/Ad1euP8AAAAABf8ABmj2/wAAAAD/AAUwpP8ABTMz/wAAAAD/AAZmZgj/AAAAAP8AUNwpBf8AAAAA/wAGa4X///rPXP8ABTCk///5lwr/AAAAAAgO94f/AEEAAP8DMGuFFf8AAAAA//xMwo8F/wAAAAD///ywpP8AArCk///9VHv/AANKPf8AAAAACP8A3Ao9/wAAAAAF/wADUez/AAAAAP8AAquF/wACrhT/AAAAAP8AA0zNCP8AAAAA/wBRrhQF/wAAAAD/AANPXP///U9c/wACqPb///yzM/8AAAAACP//mk9c/wAAAAAF///5Zmb/AAAAAP//+qPX/wAFWZr/AAAAAP8ABpwpCP8AAAAA/wLsBR8F/wAAAAD/AAaZmv8ABVma/wAFWZr/AAacKf8AAAAACP8AZbCk/wAAAAAF/wADUez/AAAAAP8AAquF/wACsKT/AAAAAP8AA0zNCP8AAAAA/wBRq4UF/wAAAAD/AANMzf///U9c/wACrhT///yzM/8AAAAACP//I/XD/wAAAAAF///8sKT/AAAAAP///VR7///9Uez/AAAAAP///LMzCA74W/8BqZIN///RuuEV/wAEMKT/AAAAAP8AAuPX/wAENcP///6AAP8AA+ZmCP/+2gUf/wL+OFIF////HCn/AAJPXP///ceu/wABhR////2Hrv8AAAAACP//m2Zm/wAAAAAF///7z1z/AAAAAP///Rma///7yj3/AAGAAP///BcKCP8BJfhS//0Bx64F/wAA49f///2wpP8AAjrh///+euH/AAJ4Uv8AAAAACP8AZJma/wAAAAAFDveG/wClB67//3c4UhX/AAaZmv8AAAAA/wAFXCn/AAVUe/8AAAAA/wAGnrgI/wAAAAD/A6dFHwX/AAAAAP8ABpwp///6pmb/AAVZmv//+WPX/wAAAAAI//8v64X/AAAAAAX///lmZv8AAAAA///6pmb///qmZv8AAAAA///5Y9cI/wAAAAD//7pFHwX/AAAAAP//+Wj2/wAFVwr///qj1/8ABpwp/wAAAAAI/wBfuFL/AAAAAAX/AAaZmv8AAAAA/wAFXCn///qo9v8AAAAA///5Y9cI/wAAAAD//RP64QX/AAAAAP//+WZm///6pmb///qj1///+WPX/wAAAAAI//+gR67/AAAAAAX///lo9v8AAAAA///6o9f///qo9v8AAAAA///5ZmYI/wAAAAD//7pHrgX/AAAAAP//+WZm/wAFVwr///qmZv8ABpwp/wAAAAAIDvh3/wApAAD/AGbUexX/AAAAAP//nnXDBf8AAAAA///8zM3/AAOHrv///WZm/wAEXrj/AAAAAAj/AYA1w/8AAAAABf8ABF64/wAAAAD/AAOHrv8AApma/wAAAAD/AAMzMwj/AAAAAP8AYYo9Bf8AAAAA/wADMzP///x4Uv8AApma///7oUj/AAAAAAj//n/KPf8AAAAABf//+6FI/wAAAAD///x4Uv///WZm/wAAAAD///zMzQgO+N3/AgLZmv8B6oo9Ff//q3XD/wAAAAAF///5Vwr/AAAAAP//+pwp///6nCn/AAAAAP//+VcKCP8AAAAA///mWZoF/wAAAAD///quFP//+aFI///9VHv///wmZv8AA64UCP//7eZm/wARXrj//+qcKf8ADe4U///oVHv/AAmAAAj///81w/8AAF64////K4X/AABeuP///xma/wAAYUgI///KAAD/ABaAAP//u49c///0Cj3/AAAAAP8AAAAACP8AAAUf////8zMF///weFL///2euP//8KFI///78zP///DMzf//+i4UCP//5kUf///2Jmb//+khSP//8Jma///r/XH//+sHrgj//+wAAP//6weu///v8zP//+VR7P//8+4U///fmZoI///z64X//9+Zmv//+fhS///ZjM3/AAAAAP//04zNCP8AAAAA///bJmb/AATCj///3Yeu/wAJh67//9/wpAj/AAmFH///3+j2/wAOTM3//+QwpP8AEw9c///ohR8I/wATD1z//+h9cf8AF/hS///taPb/ABzrhf//8lmaCP8AHOZm///yWZr/ACHUe///+Sj2/wAmwAD/AAAAAAj/AAD9cf8AAAAA/wAA/XH/AAAPXP8AAPrh/wAAAo8I/wABlHv////1w/8AAZcK////+FL/AAGXCv8AAAAACP8ANPhS/wAAAAD/ADAUe/8AFOPX/wAjbhT/ACH64Qj/AAPR7P8AA6j2/wAGWZr///1KPf8AAAAA///6szMI/wAAAAD//+beuAX/AAAAAP//+Vma/wAFY9f///qZmv8ABqj2/wAAAAAI/wBOz1z/AAAAAAX/AAamZv8AAAAA/wAFaPb/AAVmZv8AAAAA/wAGpmYI/wAAAAD/AdT9cQX/AAAAAP8ABqZm///6nCn/AAVmZv//+VcK/wAAAAAI//+bI9f//spcKRX///qUe///61cK///3vXH//+1uFP//9OZm///veuEI///03rj//+964f//8bXD///yqPb//+6KPf//9dmaCP//7oUf///11Hv//+s1w///+uuF///n3Cn/AAAAAAj//+h9cf8AAAAA///rrhT/AATFH///7tma/wAJhR8I///u1wr/AAmHrv//8dwp/wAMtcP///Tj1/8AD+FICP//9N64/wAP3Cn///e9cf8AEhwp///6nCn/ABRXCgj///qZmv8AFFR7///9TM3/ABSj1/8AAAAA/wAU+FII/wAAAAD/ABY64f8AAmFI/wAVwo//AATFH/8AFUo9CP8ABMKP/wAVR67/AAfwpP8AEwzN/wALHrj/ABDZmgj/AAscKf8AENHs/wAOTM3/AA2rhf8AEXhS/wAKeuEI/wAReFL/AAp4Uv8AFW4U/wAFQAD/ABlo9v8AAAAACP8AKe4U/wAAAAD/ACEuFP//8MKP/wAYeuH//+GAAAj/ABhzM///4YKP/wAMOuH//9Vrhf8AAAAA///JXrgI/wAAAAD//+pmZv///UzN///q3rj///qcKf//6164CA743f8CD8o9/wFra4UV///z8KT/ACBmZv//7/Mz/wAarhT//+v64f8AFPhSCP//6/1x/wAU+FL//+kj1/8AD2PX///mRR//AAncKQj///DKPf8ABdHs///wo9f/AAQMzf//8HhS/wACYUgI/wAABR//AAAMzQX/AAAAAP8AAAAA//+7kez/AAv1w///ygAA///pgAAI////Fwr///+hSP///yj2////oUj///81w////564CP//6FHs///2gAD//+qR7P//8geu///t5mb//+6hSAj///wwpP///FHs///5o9f/AALAAP8AAAAA/wAFR64I/wAAAAD/AQcKPQX/AAAAAP8ABqZm///6mZr/AAVmZv//+Vma/wAAAAAI//+reuH/AAAAAAX///lXCv8AAAAA///6mZr///qcKf8AAAAA///5VwoI/wAAAAD//T2hSAX/AAAAAP//+Vma/wAFZmb///qZmv8ABqj2/wAAAAAI/wBOzM3/AAAAAAX/AAao9v8AAAAA/wAFZmb/AAVmZv8AAAAA/wAGpmYI/wAAAAD/ABkhSAX/AAAAAP8ABVHs/wAGWZr/AAKwpP8AA9cK///8UewI/wAjbhT//94KPf8AMBHs///rHCn/ADT1w/8AAAAACP8AAZcK/wAAAAD/AAGXCv8AAAeu/wABmZr/AAAKPQj/AAD64f8AAAAA/wAA+uH////uFP8AAP1x/wAAAAAI/wAmwo//AAAAAP8AIdR7/wAG1Hv/ABzmZv8ADaj2CP8AHOj2/wANpmb/ABf4Uv8AEpcK/wATEez/ABeCjwj/ABMPXP8AF3rh/wAOSj3/ABvPXP8ACYeu/wAgFwoI/wAJh67/ACAR7P8ABMKP/wAidcP/AAAAAP8AJNmaCP8AAAAA/wAseFL///n4Uv8AJm4U///z64X/ACBmZgj//51cKf//RjCkFf//+pwp///rqPb///e64f//7ePX///04Uj///AhSAj///TmZv//8Bwp///x2Zr///NPXP//7tcK///2eFII///u1wr///Z1w///67Ck///7QAD//+h9cf8AAAAACP//59wp/wAAAAD//+szM/8ABRR7///uhR//AAoo9gj//+6Hrv8ACiuF///xtcP/AA1Ue///9OPX/wAQh64I///049f/ABCCj///97rh/wASlHv///qZmv8AFKj2CP//+pwp/wAUoUj///1KPf8AFSPX/wAAAAD/ABWXCgj/AAAAAP8ANqFI/wAMQAD/ACqUe/8AGHCk/wAefXEI/wAYdcP/AB59cf8AITCk/wAPQAD/ACnuFP8AAAAACP8AGWuF/wAAAAD/ABVwpP//+sUf/wARdcP///WCjwj/ABF64f//9YUf/wAOSj3///JUe/8ACxwp///vLhQI/wALHrj//+8mZv8AB/Ck///s8zP/AATCj///6rhSCP8ABMKP///qtcP/AAJhSP//6j1x/wAAAAD//+nFHwj/AAAAAP//6weu///9T1z//+tZmv//+pma///rrhQIDviu/wDBcKT/AYKj1xX/AA1XCv8ADQUf/wAOoUj/AAjo9v8AD+Zm/wAExR8I/wAP4Uj/AATHrv8ADvMz/wACYUj/AA4AAP8AAAAACP8AHoKP/wAAAAD/ABlHrv//+DMz/wAUBR////BwpAj/ABHj1///8hR7/wALq4X//+wj1/8ABXhS///mLhQI/wABK4X///puFP8ABOj2///8B67/AAWzM/8AAAAACP8AVS4U/wAAAAAF/wAHTM3/AAAAAP8ABaZm/wAGdcP///79cf8ABzhSCP///IUf/wAYyj3///jhSP8AFdHs///1PXH/ABLcKQj///NCj/8AFkAA///vpmb/ABJuFP//6/hS/wAOo9cI///r+uH/AA6euP//6Rma/wAK+FL//+ZCj/8AB1HsCP//5kAA/wAHTM3//+TR7P8AA6j2///jYUj/AAAAAAj//9dPXP8AAAAA///cjM3///ko9v//4c9c///yVwoI///hzM3///JR7P//5rhS///tQo///+uo9v//6CZmCP//66Zm///oJmb///C9cf//4964///11Hv//9+Uewj///XUe///35R7///66Pb//91XCv8AAAAA///bIUgI/wAAAAD//9vAAP8ABUAA///eSj3/AAp9cf//4NwpCP8ACn1x///g2Zr/AA9o9v//5SFI/wAUXCn//+luFAj/ABRUe///6W4U/wAY+FL//+4wpP8AHY9c///y+FII/wAdj1z///L64f8AIi4U///5eFL/ACbHrv8AAAAACP8AP5R7/wAAAAD/ADMFH/8AEQAA/wAmeFL/ACIFHwj/ACOFH/8AH2j2/wAXczP/ACxKPf8AC2Zm/wA5K4UI/wABfXH/AAd64f//+lcK/wAHAAD///heuP8AAAAACP//q8o9/wAAAAAF///6OuH/AAAAAP//+xcK///73Cn///7rhf//+lR7CP//+g9c///hFHv///Oo9v//55wp///tSj3//+4j1wj//+tXCv//7Eo9///lxR////YmZv//4DXD/wAAAAAI///oeuH/AAAAAP//6/XD/wAE6Pb//+99cf8ACeFICP//73Mz/wAJ2Zr///KCj/8ADN64///1go//AA/mZgj///WCj/8AD+PX///4Xrj/ABIcKf//+zrh/wAUXCkI///7OuH/ABRXCv///Z64/wAUVwr/AAAAAP8AFFmaCP8AAAAA/wAlgo//AARzM/8AHlwp/wAI5mb/ABc4Ugj/AAjj1/8AFzCk/wALIUj/ABIhSP8ADVwp/wANCj0IDvjd/wGuT1z/AtjwpBX///lZmv8AAAAA///6lwr///qcKf8AAAAA///5VHsI/wAAAAD//vj1wwX/AAAAAP//+rMz///5qPb///1FH////DCk/wADq4UI///t5mb/ABFj1///6pHs/wAN8zP//+hR7P8ACYAACP///zXD/wAAXrj///8o9v8AAGFI////Fwr/AABhSAj//8oAAP8AFoAA//+7kez///QKPf8AAAAA/wAAAAAI/wAABR/////zMwX///B4Uv///Z64///wo9f///vwpP//8Mo9///6LhQI///mRR////YmZv//6SFI///wmZr//+wAAP//6weuCP//6/rh///rCj3//+/1w///5U9c///z7hT//9+cKQj///Prhf//35ma///5+FL//9mMzf8AAAAA///TjM0I/wAAAAD//9smZv8ABMKP///dhR//AAmHrv//3/CkCP8ACYeu///f64X/AA5KPf//5DMz/wATD1z//+iAAAj/ABMR7P//6H1x/wAX9cP//+1rhf8AHOuF///yWZoI/wAc6Pb///JZmv8AIdHs///5KPb/ACbCj/8AAAAACP8AAP1x/wAAAAD/AAD64f8AAAzN/wAA+uH/AAACjwj/AAGUe/////hS/wABmZr////4Uv8AAZma/wAAAAAI/wA09cP/AAAAAP8AMBR7/wAU3rj/ACNo9v8AIfrhCP8AA9cK/wADrhT/AAZZmv///Uo9/wAAAAD///qwpAj/AAAAAP//5uFIBf8AAAAA///5Vwr/AAVmZv//+pma/wAGqPb/AAAAAAj/AE7Mzf8AAAAABf8ABqj2/wAAAAD/AAVmZv8ABWZm/wAAAAD/AAao9gj/AAAAAP8Cwl64Bf8AAAAA/wAGqPb///qZmv8ABWZm///5Vwr/AAAAAAj//5shSP/93PXDFf//+pma///rWZr///e64f//7W4U///049f//+964Qj///TeuP//73hS///xtcP///Ko9v//7oeu///11woI///uhR////XUe///6zXD///67hT//+fcKf8AAAAACP//6H1x/wAAAAD//+urhf8ABMKP///u3Cn/AAmHrgj//+7XCv8ACYUf///x3Cn/AAy1w///9OZm/wAP4UgI///03rj/AA/euP//971x/wASHCn///qcKf8AFFcKCP//+pma/wAUUez///1Mzf8AFKZm/wAAAAD/ABT1wwj/AAAAAP8AFj1x/wACY9f/ABXAAP8ABMKP/wAVTM0I/wAEwo//ABVHrv8AB/Mz/wATDM3/AAscKf8AENcKCP8ACxwp/wAQ0ez/AA5Mzf8ADauF/wAReuH/AAp64Qj/ABF4Uv8ACnrh/wAVbhT/AAVAAP8AGWuF/wAAAAAI/wAp64X/AAAAAP8AITMz///wwo//ABh1w///4X1xCP8AGHMz///hgo//AAw9cf//1W4U/wAAAAD//8leuAj/AAAAAP//6mZm///9Sj3//+rcKf//+pwp///rXrgIDvi6/wCYRzn/ANEWUxX/AVreU/8AAAAABf8ABk67/wAAAAD/AAVAH/8ABNUS/wAAgtj/AAZIyQj/AALPpP8AIq+J///9PEH/ACfjw///96je/wAfYv8I///2uvj/ACLKTf//8SeV/wAe0Un//+uUMv8AGs9aCP//645A/wAaz1r//+ZOIP8AFYxB///hCwf/ABBJKAj//+EFFf8AEEYv///dDBL/AAgklP//2RAV/wAAAAAI///a98b/AAAAAP//3soh///49e3//+KlZ///8fe+CP//4p91///x9MX//+butf//7QH3///rQ+f//+gPKAj//+s99f//6Aww///wChv//+Q8zf//9NZA///gZIAI///00E7//+Bnev//+myd///eoH//AAAAAP//3OVpCP8AAAAA///ZsKr/AAVDGP//3OJw/wAKiSv//+AUNgj/AAqJK///4BE9/wAPoqH//+SQEv8AFMIL///pAwEI/wAUvBj//+kDAf8AGWGW///uH3H/AB4EGf//8zvhCP8AHgEg///zO+H/ACJ6Av//+Zx0/wAm8uT/AAAAAAj/ABrSU/8AAAAA/wAZseD/AAOuq/8AGJRm/wAHVGwI/wAYkWz/AAdUa/8AFjLI/wAK3G7/ABPLOf8ADl5/CP8AE8hA/wAOXn//ABDst/8AEbbt/wAODjT/ABUSVQj/AAtTYf8AEP6O/wAIoXn/ABLdU/8ABe+T/wAUvBgI/wACLw//AAektv//+hZg/wAHldf///gN+v8AAAAACP//sGIb/wAAAAAF///7GRf/AAAAAP//+5AK///9Brr///4tIf//+3JNCP//9nmM///oRK////Jov///7ezk///uWur///OPJAj//+yCGP//8kIW///mURr///klgf//4BQ1/wAAAAAI///pAwH/AAAAAP//7DTH/wAD+/z//+9mjf8AB/3sCP//72OU/wAH+vL///JICf8ACrLM///1Jor/AA1nrQj///Ujkv8ADWet///322z/AA+lm///+pY+/wAR4JAI///7MOH/AA/SNv///VES/wAJAKP///90Pf8ADyW8CP///+JD/wADZFT/AAK60/8AAtWX/wADZFT/AAAAAAj/APIFgv8AUSlmFf//DjAF/wAAAAAF///8j8f/AAAAAP///TBc/wAC52//AABBbP8AA20/CP8AASxZ/wAQH4f/AAOQ7/8ADx/K/wAF75P/AA4jBQj/AAaz1v8AD/Ls/wAI7sv/AA3hmf8ACyy5/wAL00AI/wALKb//AAvQR/8ADWqm/wAJQg7/AA+lm/8ABrPWCP8AD6Kh/wAGs9b/ABFmo/8AA1to/wATJ6v/AAAAAAj/ABKBJP8AAAAA/wAQwxX///xRVf8ADwIM///4q5QI/wAO/xP///iom/8ADMcY///2aq7/AAqJK///9DKzCP8ACokr///0L7n/AAhLPP//8htu/wAGE0L///ANFAj/AAVJC///8hKC/wADeST///GVnf8AAaZF///xG7AI/wAAZRv///x98P///Sdw///88en///x3/f8AAAAACA735/8BUPU//wK1e7QV///MabP/AAAAAAX//5h0Pf8AAAAA//+sD+L//6wP4v8AAAAA//+YdD0I/wAAAAD///Z8hQX/AAAAAP///i0g///+hlb///6GV////i0h/wAAAAAI///CBzH/AAAAAAX///mWgf8AAAAA///6y8b///rLxv8AAAAA///5loEI/wAAAAD//7U3LQX/AAAAAP//+ZaB/wAFNDr///rLxv8ABml//wAAAAAI/wA9+M//AAAAAAX/AAHS4P8AAAAA/wABean///6GVv8AAAAA///+LSEI/wAAAAD//oRupgX/AAAAAP//+VIc/wAFacH///qTRv8ABrDe/wAAAAAI/wBUyTP/AAAAAAX/AAat5P8AAAAA/wAFacH/AAVpwf8AAAAA/wAGreQI/wAAAAD/AXuUVAX/AAAAAP8AAdLg/wABear/AAF5qf8AAdLf/wAAAAAI/wBkWf3/AAAAAAX/AAZpf/8AAAAA/wAFNDr/AAU0Ov8AAAAA/wAGaX8I/wAAAAD/AErI0wX/AAAAAP8ABml////6y8b/AAU0Ov//+ZaB/wAAAAAI//+bpgP/AAAAAAX///4tIP8AAAAA///+hlf/AAF5qv8AAAAA/wAB0t8I/wAAAAD/ADPF4f8AKfgP/wAp+A//ADPF4f8AAAAACP8AJFjH/wAAAAAF/wAGreT/AAAAAP8ABWnB/wAFacH/AAAAAP8ABq3kCP8AAAAA/wBPEiEF/wAAAAD/AAat5P//+pY//wAFacH///lSHP8AAAAACA743f8CAtcK/wHth64V//+xMzP/AAAAAAX///lXCv8AAAAA///6mZr///qZmv8AAAAA///5WZoI/wAAAAD//+beuAX/AAAAAP//+rMz///5pmb///1KPf///DCk/wADq4UI///ckez/ACH4Uv//z+uF/wAU49f//8sHrv8AAAAACP///mj2/wAAAAD///5o9v////hS///+Zmb////1wwj///8FH/8AAAAA////BR//AAAR7P///wKP/wAAAAAI///ZPXH/AAAAAP//3i4U///5K4X//+MXCv//8lcKCP//4xcK///yWZr//+gHrv//7Wj2///s7hT//+h9cQj//+zwpP//6IAA///xtcP//+Q1w///9nhS///f6PYI///2eFL//9/uFP//+z1x///dij3/AAAAAP//2yZmCP8AAAAA///TjM3/AAYHrv//2YzN/wAMFHv//9+Zmgj/AAwPXP//35ma/wAQDM3//+VR7P8AFAUf///rB64I/wAUAo///+sHrv8AFt64///wnCn/ABm64f//9iPXCP8ADzXD///6LhT/AA9cKf//+/XD/wAPij3///2euAj////4Uv////MzBf8AAAAA/wAAAAD/AERuFP//9Ao9/wA2Ao//ABaAAAj/AADmZv8AAF64/wAA1wr/AABhSP8AAMo9/wAAXrgI/wAXqPb/AAl9cf8AFWj2/wAN7hT/ABIXCv8AEV64CP8AA9cK/wADsKT/AAZhSP///VR7/wAAAAD///qrhQj/AAAAAP//zVcKBf///+uF/wAAAAAF/wAAAAD//+suFAX/AAAAAP//zGPX///QeFL//9Uo9v//zGPX/wAAAAAI//8XXCn/AAAAAAX///lUe/8AAAAA///6lwr///qXCv8AAAAA///5VHsI/wAAAAD//7E64QX/AAAAAP//+VcK/wAFaPb///qUe/8ABquF/wAAAAAI/wD9oUj/AAAAAAX/AGcwpP8AAAAA/wBTqPb/AFOo9v8AAAAA/wBnOFII/wAAAAD/Ag1PXAX/AAAAAP8ABqZm///6mZr/AAVmZv//+VcK/wAAAAAI//9+jM3//omAABX//+eKPf//4YKP///ez1z///DAAP//1hR7/wAAAAAI///mlHv/AAAAAP//6o9c/wAFPXH//+6KPf8ACn1xCP//7oUf/wAKeFL///G1w/8ADa4U///04Uj/ABDR7Aj///Tj1/8AENcK///4DM3/ABMMzf//+z1x/wAVR64I///7PXH/ABVKPf///Z64/wAVwo//AAAAAP8AFjhSCP8AAAAA/wAU+FL/AAKwpP8AFKPX/wAFZmb/ABRUewj/AAVj1/8AFFcK/wAIQo//ABIcKf8ACyFI/wAP3CkI/wALGZr/AA/mZv8ADiZm/wAMsKT/ABEo9v8ACYeuCP8AESj2/wAJhR//ABRPXP8ABMeu/wAXgo//AAAAAAj/ABgj1/8AAAAA/wAUzM3///rrhf8AEXrh///10ewI/wAReFL///XZmv8ADko9///yqPb/AAseuP//73rhCP8ACxwp///vfXH/AAhFH///7WuF/wAFZmb//+tXCgj/AAVj1///61wp/wACtcP//+rhSP8AAAAA///qZmYI/wAAAAD//8leuP//88AA///VbhT//+ePXP//4YKPCA74tf8BPHXD/wH6aPYV////a4X/AAAAAP///24U////+uH///9rhf8AAAAACP///pcK/wAAAAAF///LD1z/AAAAAP//z+4U///rHrj//9yUe///3g9cCP///C4U///8Vwr///mo9v8AArhS/wAAAAD/AAVMzQj/AAAAAP8BBp64Bf8AAAAA/wAGpmb///qcKf8ABWPX///5Vwr/AAAAAAj//6teuP8AAAAABf//+VcK/wAAAAD///qcKf//+pwp/wAAAAD///lZmgj/AAAAAP/9PX1xBf8AAAAA///5WZr/AAVj1///+pwp/wAGqPb/AAAAAAj/AFShSP8AAAAABf8ABqj2/wAAAAD/AAVj1/8ABWPX/wAAAAD/AAamZgj/AAAAAP8BFtcKBf8AAAAA/wARyj3/AALZmv8AENwp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7hT//+shSAX/AAAAAP//zDrh///QVHv//9UHrv//zD1x/wAAAAAI///jyj3/AAAAAAX///lMzf8AAAAA///6lHv///qR7P8AAAAA///5T1wI/wAAAAD//7D9cQX/AAAAAP//+U9c/wAFa4X///qR7P8ABrMz/wAAAAAI/wAxRR//AAAAAAX/AGeCj/8AAAAA/wBT64X/AFPrhf8AAAAA/wBnh64I/wAAAAD/Ag7cKQX/AAAAAP8ABrhS///6lHv/AAVrhf//+VcK/wAAAAAIDvit/wE2o33/ATOxCRX///5loP8AAmqJ/wAAXDD/AAM0v/8AAhdF/wACAnQI/wCjnOH/AJ0A1QX/AAfUSv8AB4QA///6rgn/AA04GP//9SaL/wAAAAAI//+deOP/AAAAAAX///zFTv8AAAAA///86/f///616////bwg///9szQI//9JUz7//0aqQwX///w8g////DCf///5gbH/AAKo/P8AAAAA/wAFWuMI/wAAAAD/AZdCtQX/AAAAAP8ABqfy///6nDH/AAVjz///+VgO/wAAAAAI//+rXXX/AAAAAAX///lYDv8AAAAA///6nDH///qcMf8AAAAA///5WA4I/wAAAAD//UBvlQX/AAAAAP//+VgO/wAFY8////qcMf8ABqfy/wAAAAAI/wBUoov/AAAAAAX/AAan8v8AAAAA/wAFY8//AAVjz/8AAAAA/wAGp/II/wAAAAD/AKHb2QX/AAAAAP8AAZ1Z/wAApof/AAGOe/8AASlf/wABIHMI/wA5u2b/ADgJPQX/AAK60/8AAqYC/wAEe9z///93Nf8AAgVt///8yEcI/wCPNA3//xx/pgX/AAI1Av///IDp/wAD2E3///3f0P8ABCKl/wAAAAAI/wBndvL/AAAAAAX/AAmbRf8AAAAA/wAFvQX/AAqyzP//+rEC/wAIAOUI//9AN9j/ASD/PQUO93X/AJquS////P7RFf8ABqcc/wAAAAD/AAVkpP8ABWSk/wAAAAD/AAanHAj/AAAAAP8CwyFZBf8AAAAA/wAGpxz///qbXP8ABWSk///5WOT/AAAAAAj//6tddf8AAAAABf//+Vjk/wAAAAD///qbXP//+ptc/wAAAAD///lY5Aj/AAAAAP/9PN6nBf8AAAAA///5WOT/AAVkpP//+ptc/wAGpxz/AAAAAAgO+c//Al9zM/8B+vrhFf//28AA/wAAAAD//+HHrv//+K4U///n1wr///FeuAj//+p9cf//8vrh///sx67//+6wpP//7wUf///qcKQI////+FL/AAAAAAX///7o9v///pR7///+R67///8Ue////g9c/wAAAAAI///9lwr/AAAAAP///fCk/wABa4X///8KPf8AAgo9CP////hS/wAAAAAF///06Pb/ABdMzf//7xHs/wARkez//+kzM/8AC9HsCP//54AA/wAMszP//+WeuP8ABqPX///jwo//AAChSAj///8hSP8AAAAABf///tcK/wAABR////7XCv8AAAeu///+1wr/AAAAAAj///7AAP8AAAAA///+yj3////1w////seu/////XEI/wAAT1z/AAAAAAX/AAAAAP////CkBf///8eu/wAAAAD////KPf8AAAAA////x67/AAAAAAj///6R7P8AAAo9///+kez/AAAHrv///o9c/wAAAAAI///LMKT/AAAAAP//0A9c///rLhT//9yrhf//3iFICP///DCk///8Vwr///mo9v8AArhS/wAAAAD/AAVKPQj/AAAAAP8AGQKPBf8AAAAA/wAGo9f///qhSP8ABWFI///5WZr/AAAAAAj//7EAAP8AAAAABf//+V64/wAAAAD///qeuP//+p64/wAAAAD///leuAj/AAAAAP/+Ks9cBf8AAAAA///5Xrj/AAVhSP//+p64/wAGoUj/AAAAAAj/AFS64f8AAAAABf8ABqFI/wAAAAD/AAVhSP8ABWFI/wAAAAD/AAahSAj/AAAAAP8BGN64Bf8AAAAA/wAUVwr/AAMCj/8AEiFI/wAGDM3/AA/mZgj/AAYKPf8AD+PX/wAH8zP/AA1cKf8ACdwp/wAK0ewI/wAJ2Zr/AArMzf8AC3Mz/wAIRR//AA0Mzf8ABbrhCP8ADQeu/wAFuFL/AA2Cj/8AAtwp/wAOAAD/AAAAAAj/ACEPXP8AAAAA/wAWvXH///dAAP8ADGj2///uhR8I/wAMZmb//+6Cj/8ABjCk///mFHv/AAAAAP//3aj2CP8AAAAA//7PSj0F/wAAAAD///leuP8ABWFI///6nrj/AAaj1/8AAAAACP8AVLhS/wAAAAAF/wAGo9f/AAAAAP8ABV64/wAFYUj/AAAAAP8ABqFICP8AAAAA/wEVDM0F/wAAAAD/ACn1w/8ACEKP/wAgczP/ABCKPf8AFuPXCP8AEIeu/wAW5mb/ABq4Uv8AC3Mz/wAk49f/AAAAAAj/ABT9cf8AAAAA/wAQh67///zPXP8ADBma///5qPYI/wAMFHv///mhSP8ACQ9c///28KT/AAYMzf//9DrhCP8ABgo9///0OFL/AAOmZv//8geu/wABR67//+/Hrgj/AAFCj///78o9/wAAo9f//+4FH/8AAAAA///sSj0I/wAAAAD//uvo9gX/AAAAAP//+V64/wAFYUj///qeuP8ABqFI/wAAAAAI/wBUuuH/AAAAAAX/AAahSP8AAAAA/wAFYUj/AAVhSP8AAAAA/wAGoUgI/wAAAAD/AUiMzQX/AAAAAP8AO8eu///xh67/ACqcKf//4w9c/wAZczMI///jDM3/ABluFP//13XD/wAMuuH//8vcKf8AAAAACA74tf8BPD1x/wH6AAAV///+go//AAAAAP///oo9////9cP///6FH/////hSCP///pHs/wAAB67///6R7P8AAAo9///+jM3/AAAAAAj//8sR7P8AAAAA///P8KT//+shSP//3JR7///eD1wI///8K4X///xUe///+aZm/wACszP/AAAAAP8ABU9cCP8AAAAA/wAZD1wF/wAAAAD/AAao9v//+pma/wAFZmb///lXCv8AAAAACP//sTXD/wAAAAAF///5Vwr/AAAAAP//+pma///6mZr/AAAAAP//+VcKCP8AAAAA//4rdcMF/wAAAAD///lXCv8ABWZm///6mZr/AAao9v8AAAAACP8AVIUf/wAAAAAF/wAGpmb/AAAAAP8ABWZm/wAFZmb/AAAAAP8ABqj2CP8AAAAA/wEWkewF/wAAAAD/ABHKPf8AAtwp/wAQ1Hv/AAW4Uv8AD+PXCP8ABbXD/wAP3rj/AAfwpP8ADdHs/wAKK4X/AAvCjwj/AAomZv8AC71x/wAMZmb/AAk4Uv8ADpwp/wAGq4UI/wAOmZr/AAarhf8AEIUf/wADVHv/ABJwpP8AAAAACP8AIGPX/wAAAAD/ABfUe///90KP/wAPQAD//+6KPQj/AA89cf//7oKP/wAIQo///+Pj1/8AAUeu///ZQo8I/wAAAAD//tZcKQX/AAAAAP//+Vma/wAFZmb///qZmv8ABqZm/wAAAAAI/wBUhR//AAAAAAX/AAao9v8AAAAA/wAFZmb/AAVmZv8AAAAA/wAGpmYI/wAAAAD/AUZAAAX/AAAAAP8AN+Zm///wa4X/ACnrhf//4OFI/wAb9cMI///g3rj/ABvzM///1W4U/wAN/XH//8oFH/8AAAAACA740P8B1X1x/wGzNcMV///qszP/ABbhSP//5e4U/wAR9cP//+Erhf8ADQo9CP//4SZm/wANB67//9zhSP8ABoUf///Ylwr/AAAAAAj//9iXCv8AAAAA///c3Cn///l64f//4SuF///y+FII///hKPb///L4Uv//5e4U///uCj3//+q1w///6RwpCP//6rMz///pHCn//+/Hrv//5Kj2///04Uj//+A1wwj///TeuP//4DMz///6cKT//91Zmv8AAAAA///afXEI/wAAAAD//9ncKf8ABY9c///dBR//AAshSP//4DhSCP8ACx64///gMKT/ABA4Uv//5K4U/wAVTM3//+kcKQj/ABVKPf//6Rwp/wAaEez//+4FH/8AHtcK///y+uEI/wAe1Hv///L64f8AIx64///5eFL/ACduFP8AAAAACP8AJ2uF/wAAAAD/ACMeuP8ABoeu/wAe1wr/AA0FHwj/AB7Ue/8ADQUf/wAaEez/ABH4Uv8AFUzN/wAW5mYI/wAVSj3/ABbhSP8AEDhS/wAbVHv/AAshSP8AH89cCP8ACxwp/wAfx67/AAWUe/8AIvrh/wAAAAD/ACYj1wj/AAAAAP8AJYKP///6a4X/ACKmZv//9OPX/wAfzM0I///03rj/AB/KPf//78eu/wAbVHv//+q1w/8AFuZmCP//zIKP//8GnCkV///6lHv//+tXCv//95cK///tZmb///SMzf//73hSCP//9I9c///vdcP///FcKf//8qZm///uNcP///XXCgj//+4wpP//9dHs///rBR////ro9v//59cK/wAAAAAI///n1wr/AAAAAP//6wKP/wAFFwr//+4zM/8ACi4UCP//7jCk/wAKKPb///Fj1/8ADVma///0jM3/ABCKPQj///SMzf8AEIeu///3kez/ABKZmv//+pma/wAUqPYI///6lwr/ABSmZv///UzN/wAVJmb/AAAAAP8AFZ64CP8AAAAA/wAU+uH/AAKzM/8AFPrh/wAFaPb/ABT9cQj/AAVj1/8AFPrh/wAIbhT/ABKZmv8AC3XD/wAQNcMI/wALcKT/ABA4Uv8ADp64/wANLhT/ABHPXP8ACi4UCP8AEczN/wAKKPb/ABT64f8ABRma/wAYK4X/AAAAAAj/ABgrhf8AAAAA/wAU+FL///rmZv8AEc9c///11woI/wARyj3///XR7P8ADqFI///y0ez/AAtzM///78euCP8AC3Mz///vyj3/AAho9v//7WZm/wAFa4X//+sFHwj/AAVj1///6wUf/wACtcP//+sFH/8AAAAA///rAo8I/wAAAAD//+pj1////UzN///q1wr///qZmv//61maCA743f8B6LXD/wGthR8V///s8KT/ABeCj///6Ao9/wASlwr//+MR7P8ADaZmCP//4xma/wANpmb//94uFP8ABtcK///ZOuH/AAAAAAj///8FH/8AAAAA////BR/////wpP///wKP/////XEI///+aPb/AAAHrv///muF/wAACj3///5mZv8AAAAACP//ywo9/wAAAAD//8/rhf//6x64///clHv//94Hrgj///wrhf///FR7///5pmb/AAKwpP8AAAAA/wAFT1wI/wAAAAD/ABkhSAX/AAAAAP8ABqZm///6mZr/AAVmZv//+VcK/wAAAAAI//+xNcP/AAAAAAX///lXCv8AAAAA///6mZr///qZmv8AAAAA///5WZoI/wAAAAD//UKMzQX/AAAAAP//+VcK/wAFZmb///qZmv8ABqj2/wAAAAAI/wBUhR//AAAAAAX/AAamZv8AAAAA/wAFZmb/AAVmZv8AAAAA/wAGqPYI/wAAAAD/AQIhSAX/AAAAAP8ABUeu/wAGWZr/AALAAP8AA89c///8UewI/wASHCn//+6euP8AFWuF///yCj3/ABeuFP//9oAACP8AAMo9////oUj/AADXCv///6FI/wAA5mb///+euAj/ADYCj///6YAA/wBEbhT/AAv1w/8AAAAA/wAAAAAI////+FL/AAAMzQX/AA+Hrv8AAmFI/wAPXrj/AAQMzf8ADzXD/wAFz1wI/wAZuuH/AAncKf8AFt64/wAPY9f/ABQAAP8AFPhSCP8AFAUf/wAU+FL/ABAKPf8AGq4U/wAMEez/ACBmZgj/AAwR7P8AIGPX/wAGCj3/ACZzM/8AAAAA/wAsdcMI/wAAAAD/ACTcKf//+z1x/wAidcP///Z1w/8AIBHsCP//9nhS/wAgFwr///GzM/8AG8o9///s8KT/ABeAAAj//8Vo9v//DIeuFf//+z1x///quFL///gPXP//7PMz///04Uj//+8o9gj///Tj1///7y4U///xszP///JR7P//7oUf///1h64I///uh67///WFH///6pHs///6wAD//+aUe/8AAAAACP//1hHs/wAAAAD//97PXP8AD0AA///nij3/AB59cQj//+eKPf8AHn1x///zxR//ACqUe/8AAAAA/wA2nrgI/wAAAAD/ABWZmv8AArXD/wAVIUj/AAVj1/8AFKFICP8ABWZm/wAUqPb/AAhFH/8AEpHs/wALHCn/ABCFHwj/AAseuP8AEIeu/wAOSj3/AA1Ue/8AEXhS/wAKKPYI/wAReuH/AAoo9v8AFMzN/wAFFHv/ABgj1/8AAAAACP8AF4KP/wAAAAD/ABRPXP//+zrh/wARKPb///Z64Qj/ABEo9v//9nhS/wAOIUj///NKPf8ACxwp///wIUgI/wALIUj///AhSP8ACEKP///t49f/AAVj1///66j2CP8ABWZm///rq4X/AAKwpP//61ma/wAAAAD//+sKPQj/AAAAAP//6cUf///9nrj//+pAAP//+z1x///qtcMIDvjd/wG0D1z/Ae1FHxX///lZmv8AAAAA///6lwr///qXCv8AAAAA///5WZoI/wAAAAD//+beuAX/AAAAAP//+rCk///5pmb///1PXP///CuF/wADq4UI///ckez/ACH64f//z+uF/wAU3rj//8sKPf8AAAAACP///mj2/wAAAAD///5o9v////hS///+aPb////1wwj///8Cj/8AAAKP////BR//AAAPXP///wUf/wAAAAAI///ZOuH/AAAAAP//3i4U///5K4X//+MZmv//8lcKCP//4xR7///yWZr//+gHrv//7WuF///s8KT//+h64Qj//+zuFP//6IKP///xuFL//+QzM///9nXD///f6PYI///2eFL//9/uFP//+zrh///dij3/AAAAAP//2yPXCP8AAAAA///Tij3/AAYHrv//2Y9c/wAMFHv//9+Zmgj/AAwPXP//35ma/wAQDM3//+VR7P8AFAUf///rB64I/wAUAo///+sHrv8AFtwp///wnCn/ABm64f//9iPXCP8ADzCk///6LhT/AA9hSP//+/XD/wAPh67///2euAj////64f////MzBf8AAAAA/wAAAAD/AERuFP//9Ao9/wA2AAD/ABaAAAj/AADo9v8AAF64/wAA1wr/AABhSP8AAMo9/wAAXrgI/wAXrhT/AAmCj/8AFW4U/wAN8zP/ABIZmv8AEWPXCP8AA89c/wADqPb/AAZcKf///UUf/wAAAAD///q1wwj/AAAAAP/+/d64Bf8AAAAA///5Vwr/AAVmZv//+pma/wAGpmb/AAAAAAj/AFSFH/8AAAAABf8ABqj2/wAAAAD/AAVmZv8ABWZm/wAAAAD/AAao9gj/AAAAAP8CvXXDBf8AAAAA/wAGpmb///qZmv8ABWj2///5Vwr/AAAAAAj//36PXP/+iX1xFf//54o9///hgo///97PXP//8MAA///WEez/AAAAAAj//+aUe/8AAAAA///qj1z/AAU9cf//7oo9/wAKfXEI///uhR//AAp4Uv//8bXD/wANrhT///TmZv8AENHsCP//9N64/wAQ1wr///gPXP8AEwzN///7PXH/ABVHrgj///s9cf8AFUo9///9nrj/ABXCj/8AAAAA/wAWOFII/wAAAAD/ABT4Uv8AArCk/wAUo9f/AAVmZv8AFFR7CP8ABWPX/wAUVwr/AAhCj/8AEhma/wALIUj/AA/hSAj/AAscKf8AD+PX/wAOI9f/AAywpP8AESZm/wAJh64I/wARKPb/AAmFH/8AFE9c/wAExR//ABeCj/8AAAAACP8AGCPX/wAAAAD/ABTMzf//+uuF/wAReuH///XXCgj/ABF1w///9dcK/wAOTM3///Ko9v8ACxwp///veuEI/wALHCn//+964f8ACEUf///tbhT/AAVmZv//61cKCP8ABWPX///rXCn/AAK1w///6uFI/wAAAAD//+pmZgj/AAAAAP//yV64///zwAD//9Vrhf//549c///hhR8IDvf+/wFQeFL/AfjeuBX///6PXP8AADCk///+j1z/AAAzM////pR7/wAALhQI///7OuH/AAChSP//90Uf/wAAUez///NHrv8AAAAACP///u4U/wAAAAD///7wpP////rh///+8KT////64Qj/AAhmZv8AAAAABf8AAAAA////8KQF////x67/AAAAAP///8o9/wAAAAD////Hrv8AAAAACP///pHs/wAAB67///6R7P8AAAo9///+kez/AAAAAAj//8s1w/////1x///QEez//+suFP//3K4U///eJmYI///8MKT///xZmv//+auF/wACtcP/AAAAAP8ABUo9CP8AAAAA/wAY/XEF/wAAAAD/AAaj1///+p64/wAFY9f///lZmv8AAAAACP//sgAA/wAAAAAF///5Xrj/AAAAAP//+p64///6nrj/AAAAAP//+V64CP8AAAAA//4q+FIF/wAAAAD///leuP8ABWFI///6nrj/AAahSP8AAAAACP8AVLCk/wAAAAAF/wAGo9f/AAAAAP8ABWFI/wAFYUj/AAAAAP8ABqFICP8AAAAA/wDelwoF/wAAAAD/ABtUe/8AA3rh/wAYKPb/AAcAAP8AFP1xCP8ABwAA/wAU+uH/AAmHrv8AEaZm/wAMFHv/AA5PXAj/AAwR7P8ADkzN/wAOKPb/AArMzf8AEDXD/wAHUewI/wAQNcP/AAdPXP8AEU9c/wADqPb/ABJ1w/8AAAAACP8AB6FI/wAAAAD/AAfFH////4Uf/wAH9cP///8MzQj/AAM64f///5wp/wADNcP///+Ue/8AAy4U////j1wI/wAHQo////79cf8ABn1x/wAFmZr/AAAAAP8AB1R7CP8AAAAA/wBQR64F/wAAAAD/AAYMzf//+4KP/wAFGZr///oAAP8AAMo9CA74lv8AhwI+/wCf8KQV//+qGZr/AAAAAAX///jzM/8AAAAA///6a4X///oCj/8AAI9c///4+FII/wAB49f//+gUe/8ABbCk///q+uH/AAl64f//7dmaCP8ACyuF///qnCn/AA9R7P//7iFI/wATeuH///GhSAj/ABN4Uv//8aFI/wAW+uH///VMzf8AGoAA///4/XEI/wAafXH///j64f8AHOZm///8euH/AB9Hrv8AAAAACP8AGYeu/wAAAAD/ABncKf8AAt64/wAaLhT/AAXAAAj/ABorhf8ABcAA/wAXx67/AAlAAP8AFWZm/wAMxR8I/wAVYUj/AAzFH/8AEWZm/wAQlwr/AA1o9v8AFHCkCP8ADWZm/wAUa4X/AAa1w/8AGOZm/wAAAAD/AB1euAj/AAAAAP8AGEKP///7XCn/ABRrhf//9sAA/wAQnCkI///2uuH/ABCZmv//8+FI/wANuFL///EAAP8ACtwpCP//8QAA/wAK2Zr//+7uFP8ACJ64///s1wr/AAZj1wj//+zZmv8ABlwp///shR//AAVwpP//7DhS/wAEeFII///rj1z/AAR1w///7DhS/wAEKPb//+zZmv8AA9R7CP//7Nma/wAD1Hv//+7rhf8ABJ64///xAAD/AAVwpAj///D9cf8ABWj2///z3Cn/AAbcKf//9sKP/wAIT1wI///2vXH/AAhKPf//+2FI/wAK3Cn/AAAAAP8ADWj2CP8AAAAA/wAK2Zr/AAMuFP8ACMeu/wAGY9f/AAazMwj/AAZeuP8ABrXD/wAH1Hv/AAUXCv8ACUKP/wADhR8I/wAJQAD/AAOAAP8ACej2/wACY9f/AAqHrv8AAUo9CP8ACoo9/wABR67/AAkZmv8AAKPX/wAHqPb/AAAAAAj/ABhAAP8AAAAA/wAVjM3///uHrv8AEtcK///3EewI/wAQlwr///gcKf8AC0eu///xa4X/AAXwpP//6rhSCP8AAXXD///6wAD/AAS9cf///FR7/wAFdcP/AAAAAAj/AFpZmv8AAAAABf8AB5R7/wAAAAD/AAWzM/8ABuZm///+mZr/AAd1wwj///wFH/8AFVma///45mb/ABKrhf//9ceu/wAQAAAI///zj1z/ABN4Uv//8FcK/wAPzM3//+0uFP8ADCFICP//7Sj2/wAMHrj//+rwpP8ACMeu///oszP/AAVwpAj//+iuFP8ABWuF///nlHv/AAK4Uv//5nhS/wAAAAAI///pqPb/AAAAAP//6Ieu///9wo///+duFP//+4o9CP//52j2///7h67//+mo9v//+CuF///r5mb///TUewj//+vj1///9NR7///vY9f///FR7P//8uuF///tz1wI///y6Pb//+3PXP//+XXD///peuH/AAAAAP//5TCkCP8AAAAA///nGZr/AAR1w///6xcK/wAI8KT//+8XCgj/AAjuFP//7xHs/wAL+FL///IeuP8ADwKP///1JmYI/wAO+uH///Uj1/8AEO4U///3YUj/ABLXCv//+Z64CP8AEtHs///5nCn/ABOhSP//+pR7/wAUcKT///uKPQj/ABPHrv//+4eu/wATeuH///vZmv8AEyj2///8K4UI/wATI9f///wuFP8AERR7///7WZr/AA8Cj///+pcKCP8ADv1x///6j1z/AAxMzf//+NHs/wAJlHv///cR7Aj/AAmR7P//9wzN/wAFHCn///SAAP8AAKPX///x+FII/wAAnrj///HzM////KZm///0q4X///irhf//92FICP//+Kj2///3YUj///aUe///+XMz///0go////uKPQj///SCj///+4eu///zszP///z4Uv//8uuF///+ZmYI///y6Pb///5mZv//9FR7////NcP///XPXP8AAAAACP//4p64/wAAAAD//+bKPf8ABmFI///q7hT/AAzHrgj//+04Uv8AC2FI///0Uez/ABL9cf//+24U/wAanCkI////Ao//AAXPXP//+vhS/wAEPXH///ocKf8AAAAACA733f8BIHGa/wBnAucV///hZD7/AAAAAAX//8xjwP8AAAAA///QeoH/ACrXF/8AAAAA/wAznD8I////7ij/ABTQ6QX/AAAR2P8ACladBf8AAAAA/wCbB0wF/wAAAAD/AAZpf/8ABTFB/wAFMUH/AAZpf/8AAAAACP8AYns4/wAAAAAF/wAGaX//AAAAAP8ABTFB/wAFMUH/AAAAAP8ABml/CP8AAAAA/wBKk0wF/wAAAAD/AAZpf///+s6//wAFMUH///mWgf8AAAAACP//nYTI/wAAAAAF///5loH/AAAAAP//+s6//wAFMUH/AAAAAP8ABml/CP8AAAAA/wBzSjIF/wAAAAD/AAan8v//+o1T/wAFcq3///lYDv8AAAAACP//q3JH/wAAAAAF///5WA7/AAAAAP//+pwx///6nDH/AAAAAP//+VgOCP8AAAAA//5O+ZQF/wAAAAD//5jKev8AU6u5//+sVEf/AGc1hv8AAAAACP8AM5Ba/wAAAAAF/wAGqur/AAAAAP8ABWnC/wAFZsj/AAAAAP8ABq3kCP8AAAAA/wBOxM8F/wAAAAD/AAaq6v//+pk4/wAFacL///lSHP8AAAAACA74tf8B2pHs/wHtMKQV//+reuH/AAAAAAX///lZmv8AAAAA///6mZr///qXCv8AAAAA///5WZoI/wAAAAD//ulrhQX/AAAAAP//7jhS///9I9f//+8o9v//+keu///wHCkI///6Sj3///Aj1///+A9c///yK4X///XUe///9EAACP//9dma///0QAD///OZmv//9seu///xY9f///lUewj///FmZv//+VcK///veuH///yo9v//7Y9c/wAAAAAI///fnCn/AAAAAP//6CuF/wAIwAD///DAAP8AEXXDCP//8MAA/wAReuH///fAAP8AHBwp///+uFL/ACa9cQj/AAAAAP8BKaFIBf8AAAAA/wAGpmb///qZmv8ABWj2///5WZr/AAAAAAj//6t64f8AAAAABf//+VcK/wAAAAD///qZmv//+pcK/wAAAAD///lZmgj/AAAAAP/+ucUfBf8AAAAA///IHCn/AA+Ue///1hHs/wAfHrj//+QKPQj/AB8hSP//5AzN/wAqkez///IFH/8ANfrh/wAAAAAI/wABfXH/AAAAAP8AAXXD/wAAB67/AAF64f8AAAo9CP8AAW4U////9cP/AAFwpP////hS/wABcKT/AAAAAAj/ADTuFP8AAAAA/wAwD1z/ABTcKf8AI2j2/wAh8KQI/wAD1wr/AAOrhf8ABlma///9T1z/AAAAAP//+rCkCP8AAAAA///m7hQF/wAAAAD///lZmv8ABWZm///6mZr/AAao9v8AAAAACP8ATszN/wAAAAAF/wAGqPb/AAAAAP8ABWZm/wAFZmb/AAAAAP8ABqZmCP8AAAAA/wHUij0F/wAAAAD/AAamZv//+pma/wAFaPb///lXCv8AAAAACA74hv8B0CaQ/wHmEewV//+hxR//AAAAAAX///rUe/8AAAAA///7go////x64f///sKP///6+uEI//+lSj3//pFZmgX///6PXP//9/hS///5BR////oo9v//99ma/wAAAAAI///55mb/AAAAAAX///fXCv8AAAAA///5BR//AAXXCv///o9c/wAIB64I//+lTM3/AW6mZgX///7Cj/8ABQUf///7go//AAOFH///+tcK/wAAAAAI//+hxR//AAAAAAX///iuFP8AAAAA///6pmb///keuP8AAcUf///45mYI/wBofXH//mEHrgX/AAcHrv//2t64/wAgbhT//+UeuP8AJco9/wAAAAAI/wBZOuH/AAAAAAX/ACXKPf8AAAAA/wAgbhT/ABreuP8ABweu/wAlI9cI/wBofXH/AZ74UgX/AAHHrv8ABxma///6o9f/AAbhSP//+K4U/wAAAAAIDvmI/wK0MzP/AenuFBX//6smZv8AAAAABf//+U9c/wAAAAD///qXCv//+pR7/wAAAAD///lPXAj/AAAAAP/+zso9Bf8AAAAA///aR67//+7Ue///4Cj2///iszP///FrhQj///YmZv//+49c///1HCn///1zM///9H1x/wAAAAAI///1Y9f/AAAAAP//9euF/wACIUj///bHrv8AA89cCP//4ceu/wAN5mb//+qmZv8AHYAA///9Y9f/ACLCjwj/AAAAAP8BODrhBf8AAAAA/wAGsKT///qR7P8ABWuF///5Uez/AAAAAAj//6qj1/8AAAAABf//+VHs/wAAAAD///qR7P//+pR7/wAAAAD///lPXAj/AAAAAP/+xcUfBf///XhS///eT1z//+99cf//4/rh///lGZr///KZmgj///YmZv//+49c///1HCn///1zM///9Hrh/wAAAAAI///1Zmb/AAAAAP//9euF/wACIUj///bFH/8AA89cCP//38KP/wAO1wr//+mMzf8AIIUf/wAAAAD/ACXR7Aj/AAAAAP8BMTXDBf8AAAAA/wAGsKT///qXCv8ABWuF///5T1z/AAAAAAj//6sj1/8AAAAABf//+VHs/wAAAAD///qUe///+pR7/wAAAAD///lPXAj/AAAAAP/+xUKPBf8AAAAA//+YY9f/AFQCj///snCk/wBnnCn/AAAAAAj/AAY1w/8AAAAABf8AM+Zm/wAAAAD/AC71w/8AE3Mz/wAh+FL/ACBzMwj/ACH1w///34zN/wAu+uH//+yMzf8AM+PX/wAAAAAI/wAGMzP/AAAAAAX/AGeeuP8AAAAA/wBUAAD/AE2Mzf8AAAAA/wBnnrgI/wAAAAD/ATq9cQX/AAAAAP8ABrCk///6lHv/AAVrhf//+VHs/wAAAAAIDvjA/wF1ZhT/AOvj1xX///0mZv8AA+4U/wAAAAD/AAVKPf8AAtma/wAD7hQI/wCgaPb/AN5mZgX/AAVZmv8AB2uF///6sKT/AAphSP//9tma/wAAAAAI//+hQAD/AAAAAAX///xhSP8AAAAA///8nrj///5FH////ePX///9EewI//98R67//0mPXAX///3j1////RR7///8nrj///5Cj////GPX/wAAAAAI///9LhT/AAAAAAX///xj1/8AAAAA///8nCn/AAG64f///ePX/wAC7hQI//98R67/ALZwpAX///3j1/8AAu4U///8nCn/AAG64f///GZm/wAAAAAI//+f+uH/AAAAAAX///bXCv8AAAAA///6szP///WeuP8ABVma///4lHsI/wCgaPb//yGZmgX/AALUe////BHs/////XH///q1w////S4U///8EewI//9fqPb//yJ4UgX///qeuP//+I9c/wAFT1z///WeuP8ACSuF/wAAAAAI/wBf+FL/AAAAAAX/AAOcKf8AAAAA/wADYUj/AAG64f8AAhwp/wAC7hQI/wCDuFL/ALZwpAX/AAIcKf8AAuuF/wADYUj/AAG9cf8AA564/wAAAAAI/wAC0ez/AAAAAAX/AAOcKf8AAAAA/wADYUj///5FH/8AAh64///9EewI/wCDtcP//0mPXAX/AAIeuP///RHs/wADYUj///5FH/8AA5wp/wAAAAAI/wBeszP/AAAAAAX/AAkrhf8AAAAA/wAFT1z/AApmZv//+p64/wAHa4UI//9fqPb/AN2HrgUO+LX/AYYMzf8B7FwpFf//+V64/wAAAAD///qXCv//+pcK/wAAAAD///lcKQj/AAAAAP/+6Wj2Bf8AAAAA///uOFL///0hSP//7yuF///6R67///AXCgj///pMzf//8CFI///4Cj3///I1w///9dcK///0OFII///13rj///RAAP//85cK///2yj3///FhSP//+VcKCP//8Wj2///5VHv//+94Uv///K4U///tlwr/AAAAAAj//9+XCv8AAAAA///oK4X/AAi1w///8MKP/wAReuEI///wwo//ABF1w///971x/wAcHCn///64Uv8AJr1xCP8AAAAA/wEpqPYF/wAAAAD/AAaj1///+p64/wAFaPb///lUe/8AAAAACP//q3rh/wAAAAAF///5VHv/AAAAAP//+pcK///6lwr/AAAAAP//+VwpCP8AAAAA//65wo8F/wAAAAD//8gcKf8AD5R7///WFwr/AB8euP//5AAACP8AHyZm///kDM3/ACqPXP//8go9/wA1/XH/AAAAAAj/AAF1w/8AAAAA/wABa4X////o9v8AAXhS/wAAB64I/wABT1z////64f8AAVma/wAAFwr/AAFPXP////1xCP8AMtcK/wABWZr/AC4KPf8AFJR7/wAiOuH/ACDR7Aj/AAPR7P8AA6j2/wAGWZr///1Hrv8AAAAA///6szMI/wAAAAD//82HrgX////uFP8AAAAABf8AAAAA///rLhQF/wAAAAD//8xj1///0Hrh///VKPb//8xhSP8AAAAACP//RZcK/wAAAAAF///5VHv/AAAAAP//+pcK///6mZr/AAAAAP//+VHsCP8AAAAA//+xOuEF/wAAAAD///lXCv8ABWj2///6lHv/AAarhf8AAAAACP8Az2j2/wAAAAAF/wBnLhT/AAAAAP8AU6j2/wBTqPb/AAAAAP8AZzhSCP8AAAAA/wINWZoF/wAAAAD/AAaj1///+pcK/wAFaPb///lcKf8AAAAACA74gv8Aqt64/wB73CkV/wD2zM3/ALmKPQX/ABY1w/8ADjhS/wANcKT/ABiPXP8AAAAA/wAaYUgI/wAAAAD/AChmZgX/AAAAAP8AKrhS///dXCn/ACKj1///1Ueu/wAAAAAI//63o9f/AAAAAAX///mXCv8AAAAA///6z1z///rPXP8AAAAA///5lwoI/wAAAAD//6/MzQX/AAAAAP//+ZcK/wAFMKT///rMzf8ABmj2/wAAAAAI/wEb/XH/AAAAAAX/AAtzM/8AAAAA/wAEij3///EwpP//9oUf///5lwoI//7z8KT//y2euAX//+q1w///8Z64///zQo///+f64f8AAAAA///mUewI/wAAAAD//+9euAX/AAAAAP//1UUf/wAio9f//91cKf8AKrhS/wAAAAAI/wFIXCn/AAAAAAX/AAZo9v8AAAAA/wAFMKT/AAUwpP8AAAAA/wAGaPYI/wAAAAD/AFAKPQX/AAAAAP8ABmj2///6z1z/AAUwpP//+ZcK/wAAAAAI//73aPb/AAAAAAX///RmZv8AAAAA///7lHv/AA8j1/8ACcAA/wAGQAAIDvfa/wAwAAD/AUTrhRX/AAAAAP//8GZm/wAK49f///KCj/8ADz1x///8q4UI/wAA6Pb////MzQX/AAsXCv///Y9c/wAKx67///uuFP8ACmPX///5wo8I/wAKZmb///nCj/8ACQKP///3VHv/AAehSP//9OZmCP8AB564///06Pb/AAPUe///8iFI/wAAAAD//+9Zmgj/AAAAAP//MgKPBf8AAAAA///nvXH/AATZmv//6tma/wAJtcP//+31wwj/AAmzM///7fhS/wALyj3///EXCv8ADeFI///0MzMI/wAN3rj///Q1w/8ADpHs///3WZr/AA9FH///+m4UCP8ADz1x///6dcP/AA0uFP///TXD/wALGZr/AAAAAAj/AFiwpP8AAAAABf8AA09c/wAAAAD/AAKuFP8AArCk/wAAAAD/AANMzQj/AAAAAP8AUauFBf8AAAAA/wADUez///1PXP8AAqj2///8szP/AAAAAAj//8zCj/8AAAAABf//8s9c/wAAAAD///WcKf8AAkKP///4Y9f/AASCjwj///hZmv8ABIUf///6Hrj/AAXhSP//+9R7/wAHSj0I///71wr/AAdFH////WPX/wAIAo////71w/8ACKZmCP///vXD/wAIq4X///964f8ACCj2/wAAAAD/AAecKQj/AAAAAP8AxKFIBf8AAAAA/wAY+FL///vXCv8AE+4U///3q4X/AA7rhQj///ezM/8ADuuF///2Fwr/AAtwpP//9I9c/wAH+uEI///0kez/AAf4Uv//9DMz/wAFYUj///PeuP8AAseuCP//89wp/wACwo////XFH/8AAb1x///3q4X/AACzMwj/AAAAAP8AAhR7Bf8ACFR7/wAAsKT/AAo64f8AAj1x/wAMI9f/AAPR7Aj/AAweuP8AA9Hs/wALz1z/AAXmZv8AC24U/wAH+uEI/wALcKT/AAf4Uv8ACeZm/wAK64X/AAhPXP8ADeFICP8ACFR7/wAN3rj/AAQo9v8AEVcK/wAAAAD/ABTMzQj/AAAAAP8Ayt64Bf8AAAAA/wAHnrj/AACHrv8ACCj2/wABB67/AAirhQj/AAEMzf8ACKuF/wACmZr/AAf64f8ABCj2/wAHR64I/wAEK4X/AAdKPf8ABeFI/wAF49f/AAemZv8ABIKPCP8AB5wp/wAEfXH/AApj1/8AAkUf/wANMKT/AAAAAAj/ADM9cf8AAAAABf8AA09c/wAAAAD/AAKuFP8AArCk/wAAAAD/AANMzQj/AAAAAP8AUauFBf8AAAAA/wADTM3///1PXP8AAq4U///8szP/AAAAAAj//6dPXP8AAAAABf//9OZm/wAAAAD///LR7P///ThS///wwo////p1wwj///C64f//+m4U///xcKT///dUe///8h64///0OuEI///yHrj///QwpP//9DXD///xFwr///ZMzf//7frhCP//9keu///t9cP///so9v//6tma/wAAAAD//+e64Qj/AAAAAP//KbMzBf8AAAAA///wuuH///wrhf//84Uf///4YUj///ZMzQj///heuP//9kUf///3AAD///g1w///9ZcK///6HCkI///1lwr///oZmv//9T1x///8Ao////To9v///euFCP//8FR7///9Eez///ShSP//8lHs/wAAAAD///AMzQgO94H/AEEAAP8C1ZmaFf8AAAAA//ymlwoF/wAAAAD///09cf8AArCk///9x67/AANKPf8AAAAACP8AXij2/wAAAAAF/wADUez/AAAAAP8AAqj2/wACOFL/AAAAAP8AAsKPCP8AAAAA/wNZaPYF/wAAAAD/AALCj////VR7/wACOuH///ywpP8AAAAACP//odcK/wAAAAAF///8sKT/AAAAAP///VR7///9xR//AAAAAP///T1xCA732v8BFaFI/wFmaPYV/wAAAAD/ABDAAP//9FR7/wAOgo///++hSP8AA5maCP////XD/wAAAAAF///049f/AAJo9v//9UKP/wAEWZr///WXCv8ABj1xCP//9ZcK/wAGOuH///co9v8ACKuF///4uuH/AAsZmgj///i1w/8ACxR7///8XCn/AA3hSP8AAAAA/wAQqPYI/wAAAAD/AM364QX/AAAAAP8AGEUf///7IUj/ABUmZv//9k9c/wASCj0I///2RR//ABIFH///9DXD/wAO6Pb///Ij1/8AC89cCP//8h64/wALyj3///FwpP8ACKZm///wvXH/AAWR7Aj///C64f8ABYo9///y1Hv/AALHrv//9Oj2/wAAAAAI//+nT1z/AAAAAAX///ywpP8AAAAA///9VHv///1R7P8AAAAA///8szMI/wAAAAD//65XCgX/AAAAAP///LCk/wACsKT///1R7P8AA0o9/wAAAAAI/wAzPXH/AAAAAAX/AA0o9v8AAAAA/wAKaPb///3AAP8AB6FI///7fXEI/wAHnrj///t64f8ABeZm///6Hrj/AAQrhf//+LXDCP8ABCj2///4uFL/AAKeuP//+AUf/wABBR////dUewj/AAEMzf//91R7/wAAh67///fXCv8AAAAA///4Y9cI/wAAAAD//ztj1wX/AAAAAP//5wUf/wAEKPb//+wPXP8ACFHs///xFwoI/wAIT1z///EUe/8ACeZm///0j1z/AAtwpP//+AeuCP8AC3Ck///4BR//AAvHrv//+p64/wAMJmb///064Qj/AAwhSP///Trh/wAKPXH///5Cj/8ACFHs////T1wI/wAAAAD///3rhQX///euFP///pwp///1wAD///2R7P//8+FI///8ij0I///z3Cn///yCj///9DXD///6Sj3///SPXP//+AeuCP//9I9c///4BR////YcKf//9RHs///3rhT///Ij1wj///euFP//8h64///71wr//+6rhf8AAAAA///rMKQI/wAAAAD//zUj1wX/AAAAAP//+GFI////dcP///fXCv///vXD///3VHsI///+9cP///dXCv///WZm///4BR////vXCv//+LXDCP//+9R7///4tcP///oZmv//+h64///4YUj///t64Qj///heuP//+4AA///1lwr///264f//8tcK/wAAAAAI///Mwo//AAAAAAX///ywpP8AAAAA///9VHv///1Ue/8AAAAA///8szMI/wAAAAD//65R7AX/AAAAAP///LCk/wACsKT///1Ue/8AA0o9/wAAAAAI/wBYrhT/AAAAAAX/AAsXCv8AAAAA/wANK4X/AALHrv8AD0Uf/wAFjM0I/wAPQAD/AAWR7P8ADpHs/wAIqPb/AA3hSP8AC8euCP8ADdwp/wALzM3/AAvKPf8ADuZm/wAJtcP/ABIHrgj/AAm4Uv8AEgo9/wAE3Cn/ABUo9v8AAAAA/wAYQo8I/wAAAAD/ANZR7AX/AAAAAP8ADzrh/wADo9f/AAyAAP8AB0o9/wAJuF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5jKev8AU6u5//+sVEf/AGc1hv8AAAAACP8AM5Ba/wAAAAAF/wAGqur/AAAAAP8ABWnC/wAFZsj/AAAAAP8ABq3kCP8AAAAA/wBOxM8F/wAAAAD/AAaq6v//+pY//wAFacL///lVFf8AAAAACA74xf8CBiOV/wFfGz4V///03yz/AB/LFP//78iv/wAbWCX//+q1K/8AFuI7CP//6rIy/wAW4jv//+Xu9/8AEfVg///hK73/AA0LfQj//+Ely/8ADQWL///c4nD/AAaHO///2JMw/wAAAAAI///YkzD/AAAAAP//3N92///5eMX//+Ervf//8vp1CP//4SjF///y93z//+Xu9///7gqg///qtSv//+kaywj//+qyMv//6R3F///vyK///+Sn2///9OIm///gNOwI///03yz//+Ax8///+m+W///dXFz/AAAAAP//2n3ZCP8AAAAA///Z2kz/AAWQav//3QYf/wALINT//+A35Qj/AAsd2v//4DHz/wAQN1H//+Stzv8AFU3O///pGssI/wAVStX//+kdxf8AGhEI///uBK3/AB7XPP//8vp1CP8AHtRD///y+nX/ACMgif//+XjF/wAnbNH/AAAAAAj/ACds0P8AAAAA/wAjHZD/AAaHO/8AHto1/wANBYsI/wAe1EP/AA0Fi/8AGhEI/wAR+Fn/ABVNz/8AFuU1CP8ADFwK/wANSfD/AAqYCf8ADtJ4/wAI5d//ABBMIgj/AAQ6b/8AB7x////6Udr/AAl9iP//9y7x/wAAAAAI//+eUfj/AAAAAAX///ySwf8AAAAA///80TP///5omf///cgF///9YuoI///1/6D///Qpx///9CnH///1/6D///Ibbv//+BDyCP//7jFI///10wX//+sFdf//+umD///n1qn/AAAAAAj//+fWqf8AAAAA///rAnz/AAUWff//7jRC/wAKLPsI///uMUj/AAoqAv//8WMP/wANWM7///SL6f8AEIqVCP///IzO/wAE+7r///zXJv8ABS5I///9HoT/AAVd3Aj///ySwf8ABl2Z/wADBSv/AAfyB/8ABteF/wACWLEI/wD4S1H/AFVvuwX/AAHG+/8AAJqiBf8AAAAA/wAAAAD/AAAAAP////Ei/wAAAAD////6Dgj/AGHXqv8AIanZBf8ABTFB/wAByfT/AANSfP8ABTQ6////TZT/AAVvtAj///1XBP8AFJti///7kAr/ABOwdf//+Xu+/wASodoI//6MmS3//9VwSBX/AAn9Z/8AJvjX/wAXcPj/ACJ8+/8AI5GK/wAUeqwI/wAnn17/ABbNa/8ANSTI/wADNL//AChXvP//6P0OCP8AEcu+///10wX/AA6i5P//8tDU/wALcR7//+/Irwj/AAXR1v//98Co/wAE8s7///cOPP8ABDd2///2f38I/wABXub///zo/v///lm7///8WkD///zLQf///uV/CP8AAAAA/wAAAAD//wH6pP//qJm2////Juv///+1qAj///JruP//+1SR/wAGjS7/AC6ak/8AAReH/wAG42sI/wAA3A7/AAVpwf8AARqB/wAFWuP/AAFY9P8ABUkLCA76O/8AExma/wK1rhQV///5T1z/AAAAAP//+pcK///6lwr/AAAAAP//+U9cCP8AAAAA//+vTM0F/wAAAAD///lR7P8ABWj2///6lHv/AAawpP8AAAAACP8Av24U/wAAAAAF/wAGOFL/AAAAAP8ABQo9///69cP/AAAAAP//+cUfCP8AAAAA//3Kyj0F/wAAAAD///lR7P8ABW4U///6kez/AAauFP8AAAAACP8AVOj2/wAAAAAF/wAGrhT/AAAAAP8ABW4U/wAFaPb/AAAAAP8ABrMzCP8AAAAA/wI1OFIF/wAAAAD/AAY64f8ABQo9/wAFCj3/AAY4Uv8AAAAACP8A+mj2/wAAAAAF/wAGOuH/AAAAAP8ABQo9///69cP/AAAAAP//+cUfCP8AAAAA//3Kyj0F/wAAAAD///lR7P8ABWj2///6kez/AAawpP8AAAAACP8AVOuF/wAAAAAF/wAGrhT/AAAAAP8ABWuF/wAFa4X/AAAAAP8ABrCkCP8AAAAA/wI1NcMF/wAAAAD/AAY64f8ABQzN/wAFCj3/AAY4Uv8AAAAACP8Av2uF/wAAAAAF/wAGrhT/AAAAAP8ABWuF/wAFbhT/AAAAAP8ABq4UCP8AAAAA/wBQrhQF/wAAAAD/AAauFP//+pcK/wAFa4X///lPXP8AAAAACA75iv8CzFcK/wK16PYV//+rJmb/AAAAAAX///mXCv8AAAAA///6zM3///rMzf8AAAAA///5lwoI/wAAAAD//2UrhQX/AAAAAP//9DCk///9/XH///RMzf///A9c///03rgI//96B67//oUj1wX///7cKf///QKP///9Hrj///3hSP///Jwp/wAAAAAI///7nCn/AAAAAP///HCk/wADjM3/AAAAAP8ABGPXCP8AAAAA/wDzoUgF/wAAAAD/ACZ9cf//4MzN/wAfMzP//9mCj/8AAAAACP//0Zma/wAAAAAF///idcP/AAAAAP//5a4U///tYUj///YmZv//5Cj2CP//oKuF//7yY9cF///+4Uj///z4Uv///RcK///91wr///yR7P8AAAAACP//+6PX/wAAAAD///x64f8AA4AA////9cP/AARZmgj/AAAAAP8CNZcKBf8AAAAA/wAGaPb///rKPf8ABTMz///5lwr/AAAAAAj//6smZv8AAAAABf//+ZR7/wAAAAD///rMzf//+szN/wAAAAD///mXCgj/AAAAAP/9kKuFBf8AAAAA///fx67/ABocKf//5ePX/wAgNcP/AAAAAAj/AFNo9v8AAAAABf8AGWZm/wAAAAD/ABWcKf8AEDrh/wAIAAD/ABao9gj/AAAKPf8AAAAABf8AX6PX/wEOY9cF/wAIzM3/AAAAAAX/AAAAAP//BIAABf8AAEzN///gCj3/ABnzM///5i4U/wAgB67/AAAAAAj/AFmo9v8AAAAABf8AGWZm/wAAAAD/ABWcKf8AEDrh/wAIAAD/ABao9gj/AAAHrv8AAAAABf8Alij2/wGoeuEF/wAIAAD/ABahSP8AAWj2/wAZkez/AAA1w/8AC2uFCP8AAAAA/wCeo9cF/wAAAAD/AAZwpP//+seu/wAFMzP///mUe/8AAAAACA75Xv8B/EUf/wK16PYV///mZmb/AAAAAP//6jXD///v0ez///eZmv//6VHsCP//pYAA//8AK4UF///+K4X///rZmv//+LMz/wAAAAD///4rhf8ABSZmCP//pVma/wEAR64F////+FL/AAAFHwX///d64f8AFnCk///qSj3/AA/zM///5pR7/wAAAAAI//+tY9f/AAAAAAX//9/uFP8AAAAA///l/XH//+X9cf8AAAAA///f7hQI/wAAAAD//YTPXAX/AGwZmv8AAAAABf8AAAAA/wJAvXEF/wAAAo//AAAAAAX/AAAAAP8ABGj2/wADlHv/AAOUe/8ABGj2/wAAAAAI/wADcKT/AAAAAP8AAu4U///91Hv/AAEhSP///PXDCP8ARxma//8264UF/wAP1wr//9KzMwX/AAnHrv//5Aeu/wAaYUj//+1FH/8AHaPX/wAAAAAI/wAgQAD/AAAAAAX/AB2Ue/8AAAAA/wAaWZr/ABKrhf8ACdHs/wAb5mYI/wAP49f/AC0mZgX/AEczM/8AyVR7Bf8AAR64/wADD1z/AALuFP8AAi4U/wADczP/AAAAAAj/AARo9v8AAAAA/wADlHv///xrhf8AAAAA///7lwoI/wAAAAD//b9CjwX/AGwZmv8AAAAABf8AAAAA/wJ7MKQF/wAAAAD/ACAR7P//5f1x/wAaAo///9/uFP8AAAAACA75Ev8B0mZm/wK16PYV/wAAAAD//b9CjwX////9cf8AAAAABf8AAAAA///7lwr///xrhf///GuF///7lwr/AAAAAAj///yPXP8AAAAA///9Eez/AAIrhf///uFI/wADDM0I//+JqPb/AU6o9gX////FH/8AAKZm////q4X/AACR7P///71x/wAAo9cI//+3nrj/AMyUewX////4Uv8AAAUfBf//93rh/wAWcKT//+pKPf8AD/Mz///mlHv/AAAAAAj//8SeuP8AAAAABf//0xcK/wAAAAD//9uZmv//25ma/wAAAAD//9MXCgj/AAAAAP/9nAo9Bf8AbBma/wAAAAAF/wAAAAD/AkC9cQX/AAACj/8AAAAABf8AAAAA/wAEaPb/AAOUe/8AA5R7/wAEaPb/AAAAAAj/AANwpP8AAAAA/wAC7hT///3Ue/8AASFI///89cMI/wB2VHv//rFXCgX/AAA64f///1ma/wAAVwr///9uFP8AAEAA////XCkI/wBIYUj//zNrhQX/AAAKPf////hSBf8ACIKP///pj1z/ABW1w///8AzN/wAZa4X/AAAAAAj/ADthSP8AAAAABf8ALOj2/wAAAAD/ACRmZv8AJGj2/wAAAAD/ACzmZgj/AAAAAP8CY/XDBQ75Gv8B8fxh/wK1ssoV////oNf/AAAAAP///6nE////6Db///+j0P////0HCP///7ub/wAAAAD////Bjf8AABrD////u5v/AAAAAAj///DOX/8AAAAABf//19Hl/wAAAAD//9q8TP//6wto///rHT///92voAj//5CCNv//SL6OBf8AACC2/wAAAAAF//72dLX//krlzQX///tLpf//+ECH/wAFk2P///YXav8ACQ+B/wAAAAAI/wBiy4L/AAAAAAX/AAQN1P8AAAAA/wADw33/AAIdOP8AAho+/wADdisI/wBpFEv/AKysYgX/AAIaPv8AA3Yr/wADw33/AAIdOP8ABA3U/wAAAAAI/wDdzzv/AAAAAAX/AAZpf/8AAAAA/wAFNDr///rLxv8AAAAA///5loEI/wAAAAD//1+gygX/AAAAAP//+ZaB/wAFNDr///rLxv8ABml//wAAAAAI/wBVwAX/AAAAAAX/AAZpf/8AAAAA/wAFNDr/AAU0Ov8AAAAA/wAGaX8I/wAAAAD/AmRvkQX/AAAAAP8AJhzI///gzJX/AB7mGv//2YEV/wAAAAAI///YsO3//mSsfhX/AAAAAP///MtB///9ZeP///1l4////MtB/wAAAAAI//9YXjf/AAAAAAX///t4QP8AAAAA///9Nk//AAT1yP8AAluq/wAD3kAI/wCjfCv/AQyoQAX/AAFqy/8AAkba/wACiz//AAGIiP8AAuR1/wAAAAAI/wAEcvD/AAAAAP8AA5zU///8Yyz/AAAAAP//+40QCA75Qf8B4PHu/wK1ssoV///X1N7/AAAAAP//2rlT///rDmH//+sgOP//3aymCP//kII2//9Iu5UF/wAAILb/AAAAAAX//vZxvP/+SujHBf//+0ul///4QIf/AAWTY///9hdq/wAJD4H/AAAAAAj/AGLLgv8AAAAABf8ABA3U/wAAAAD/AAPDff8AAh04/wACGj7/AAN2Kwj/AGZThf8AqCSiBf8AAho+/wADdiv/AAPDff8AAh04/wAEDdT/AAAAAAj/AQfEUP8AAAAABf8ABml//wAAAAD/AAU0Ov//+svG/wAAAAD///mWgQj/AAAAAP//Y+0RBf8AAAAA///5loH/AAU0Ov//+svG/wAGaX//AAAAAAj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Bf////oO/wAAAAAF/wAAAAD///nX7v//+wFN///7AUz///nX7f8AAAAACP//y9IK/wAAAAAF///5loH/AAAAAP//+svG///6y8b/AAAAAP//+ZaBCP8AAAAA//+x/HsF/wAAAAD///mWgf8ABTQ6///6y8b/AAZpf/8AAAAACP8AM7z1/wAAAAAF/wAGaX//AAAAAP8ABTQ6///6y8b/AAAAAP//+ZaBCP8AAAAA//6MhFwF/wAAAAD///lSHP8ABXWm///6ilr/AAat5P8AAAAACP8AVNUY/wAAAAAF/wAGqur/AAAAAP8ABWnC/wAFZsj/AAAAAP8ABq3kCP8AAAAA/wFzjXwF/wAAAAD/AAZpf/8ABTQ6/wAFNDr/AAZpf/8AAAAACP8A3uy1/wAAAAAF/wAAAAD//zGU9AX/AAAAAP//mMp6/wBTq7n//6xUR/8AZzWG/wAAAAAI/wAzkFr/AAAAAAX/AAaq6v8AAAAA/wAFacL/AAVmyP8AAAAA/wAGreQI/wAAAAD/AE7EzwX/AAAAAP8ABqrq///6mTj/AAVpwv//+VIc/wAAAAAIDvks/wJgK/r/AttlOxX//5h9Kf8AAAAA//+sGM3//6wV1P8AAAAA//+YgCII/wAAAAD//9x3YgX////6Dv8AAAAABf8AAAAA///51+7///sBTf//+wFM///51+3/AAAAAAj//z+LXv8AAAAABf//+dfu/wAAAAD///sHP/8ABPu6////+g7/AAYlGQj////3FP8ABByzBf8AABHY/wAU4sEF/wAAAAD/ADPF4f8AL6wo/wAq983/ADPC6P8AAAAACP8AHDcs/wAAAAAF/wAGsN7/AAAAAP8ABWy6/wAFbLr/AAAAAP8ABrDeCP8AAAAA/wBPAEkF/wAAAAD/AAaw3v//+pNG/wAFbLr///lPIv8AAAAACP//zrl4/wAAAAAF//+YgCL/AAAAAP//rBXU//+sFdT/AAAAAP//mIAiCP8AAAAA///cd2IF////+g7/AAAAAAX/AAAAAP//+dfu///7AU3///sBTP//+dft/wAAAAAI///L0gr/AAAAAAX///mWgf8AAAAA///6y8b///rLxv8AAAAA///5loEI/wAAA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I/wAAAAD/AE79cQX/AAAAAP8ABrMz///6kez/AAVrhf//+U9c/wAAAAAI///OuFL/AAAAAAX//5iFH/8AAAAA//+sFHv//6wUe/8AAAAA//+Ygo8I/wAAAAD//9x1wwX////64f8AAAAABf8AAAAA///52Zr///sAAP//+wAA///52Zr/AAAAAAj//8vPXP8AAAAABf//+Zma/wAAAAD///rKPf//+szN/wAAAAD///mXCgj/AAAAAP//xfXDBf8AAAAA///5lHv/AAU1w///+so9/wAGZmb/AAAAAAj/ADPAAP8AAAAABf8ABmZm/wAAAAD/AAU1w///+szN/wAAAAD///mXCgj/AAAAAP/+eIzNBf8AAAAA///5Uez/AAV1w///+oo9/wAGrhT/AAAAAAj/AFTUe/8AAAAABf8ABqj2/wAAAAD/AAVrhf8ABWuF/wAAAAD/AAarhQj/AAAAAP8Bh4AABf8AAAAA/wAGaPb/AAU1w/8ABTMz/wAGaPb/AAAAAAj/AM4Ue/8AAAAABf8AAAAA//5s7hQF/wAAAAD///lMzf8ABWPX///6kez/AAamZv8AAAAACP8AVKPX/wAAAAAF/wAGqPb/AAAAAP8ABWPX/wAFcKT/AAAAAP8ABrCkCP8AAAAA/wHYTM0F/wAAAAD/AAazM///+pwp/wAFbhT///lXCv8AAAAACP//1a4U/wB0euEV/wAgczP/AAAAAP8AGlR7/wAaUez/AAAAAP8AIHXDCP8AAAAA/wAgeFL//+Wrhf8AGko9///fjM3/AAAAAAj//9+KPf8AAAAA///lsKT//+WzM/8AAAAA///fij0I/wAAAAD//9+Mzf8AGkzN///lq4X/ACB4Uv8AAAAACA741P8BTa1v/wLamBwV///OuXj/AAAAAAX//5h9Kf8AAAAA//+sFdT//6wV1P8AAAAA//+YfSkI/wAAAAD//9x3YgX////6Dv8AAAAABf8AAAAA///51+7///sBTf//+wFM///51+3/AAAAAAj//8vSCv8AAAAABf//+ZaB/wAAAAD///rLxv//+svG/wAAAAD///mWgQj/AAAAAP//sfx7Bf8AAAAA///5loH/AAU0Ov//+svG/wAGaX//AAAAA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AAAAX//5h9Kf8AAAAA//+sGM3//6wV1P8AAAAA//+YgCII/wAAAAD//9x3YgX////6Dv8AAAAABf8AAAAA///51+7///sBTf//+wFM///51+3/AAAAAAj//0QEQf8AAAAABf//+dfu/wAAAAD///sHP/8ABPu6////+g7/AAYlGQj////3FP8ABByzBf8AABHY/wAU4sEF/wAAAAD/ADPF4f8AL6wo/wAq9NP/ADPC6P8AAAAACP8AHDcs/wAAAAAF/wAGsN7/AAAAAP8ABWy6/wAFbLr/AAAAAP8ABrDeCP8AAAAA/wBPA0IF/wAAAAD/AAaw3v//+pNG/wAFbLr///lPIv8AAAAACP//zrl4/wAAAAAF//+Ygxz/AAAAAP//rBXU//+sFdT/AAAAAP//mH0pCP8AAAAA///cd2IF////+g7/AAAAAAX/AAAAAP//+dfu///7AU3///sBTP//+dft/wAAAAAI///L0gr/AAAAAAX///mWgf8AAAAA///6y8b///rLxv8AAAAA///5loEI/wAAAAD//7OT4gX/AAAAAP//+ZaB/wAFNDr///rLxv8ABml//wAAAAAI/wAzvPX/AAAAAAX/AAZpf/8AAAAA/wAFNDr///rLxv8AAAAA///5loEI/wAAAAD//ors9QX/AAAAAP//+VIc/wAFdab///qKWv8ABq3k/wAAAAAI/wBU1Rj/AAAAAAX/AAaq6v8AAAAA/wAFacL/AAVmyP8AAAAA/wAGreQI/wAAAAD/AXUk4gX/AAAAAP8ABml//wAFNDr/AAU0Ov8ABml//wAAAAAI/wC7BO7/AAAAAAX/AAZpf/8AAAAA/wAFNDr///rLxv8AAAAA///5loEI/wAAAAD//orp/AX/AAAAAP//+VIc/wAFdab///qKWv8ABq3k/wAAAAAI/wBU1Rj/AAAAAAX/AAaq6v8AAAAA/wAFacL/AAVmyP8AAAAA/wAGreQI/wAAAAD/AXUk4gX/AAAAAP8ABml//wAFNDr/AAU0Ov8ABml//wAAAAAI/wDdQ3f/AAAAAAX/AAZpf/8AAAAA/wAFNDr///rLxv8AAAAA///5loEI/wAAAAD//ornAwX/AAAAAP//+VUW/w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AAAsADAANAA4ADwAQABEAEgASABMAFAAVABIAEgAWABcAGAAZABoAGwATABwAHQAeABMAHwAAAAAAAAACAAAAIAAhABIAIgAjAAAAJAAlACUAAAASACYAJgAnACcAAAAoACkAKgAAACsAAAAsAAAAAAAAAAAAAAAAAAAAKgAtABsALgASABIAEgASAC8AMAAxABIAMQABAAAAbgAAAAAAAAAAAAAAAQACAAAAAAAAAAIAAwAEAAUAAAAGAAAABgAHAAgACQAKAAsADAANAAgADgAPABAAEQARAAAAAAAAABIAAAATABQAFQAUABoAFgAVABcAFwAYABcAGQAXABcAGgAXABoAFAAAABsAGQAAABkAAAAAAAAAAAAcAB0ABgAjABcAIwAeACMAHwAjABcAIAAhABcAFwAiACIAIwAiACMAIgAkACUAJgAnACgAKQAmACoAKwAAACwAAAAAACUAIwAbABcAFwAXAC0ALQAuAC4ALwAuAC4AAAABAAAACgA0AFAAAkRGTFQADmxhdG4AHAAEAAAAAP//AAIAAAABAAQAAAAA//8AAgAAAAEAAmFhbHQADmxpZ2EAFgAAAAIAAAABAAAAAQACAAMACAAqAEYAAQAAAAEACAACAA4ABABlAGYAZABiAAEABAAwADEAOgBGAAMAAAABAAgAAQAIAAEADgABAAEAJAACAGcAaAAEAAAAAQAIAAEATAADAAwAFgBCAAEABABjAAIANwAFAAwAFAAaACAAJgBtAAMARwBKAGkAAgBVAGoAAgBHAGsAAgBKAGwAAgBNAAEABABhAAIAVQABAAMANwBHAFUAAAABAAAAAAAAABwAAAABZnNsZgAAABwAAA2teyJleHRWZXJzaW9uIjoiMy41LjkiLCJzY2FsaW5nRmFjdG9yIjoxMS42MTYxMDMwMDgyNDg3MTQsInNwYWNpbmciOnsidXBwZXJjYXNlIjp7Im1vZGUiOiJzbWFydCIsImJlYXJpbmciOjY1LCJmb250U2xhbnQiOjB9LCJsb3dlcmNhc2UiOnsibW9kZSI6InNtYXJ0IiwiYmVhcmluZyI6NTgsImZvbnRTbGFudCI6MH0sImRpZ2l0cyI6eyJtb2RlIjoic21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wzk0XSwiSUQiOjQ0fSwiNjE0NTciOnsiZ2x5cGhzIjpbMTAzLDEwNF0sIklEIjo0NX0sIjYxNDU5Ijp7ImdseXBocyI6WzEwNSwxMDYsMTA4LDEwOV0sIklEIjo0Nn0sIjY0MjU3Ijp7ImdseXBocyI6WzEwN10sIklEIjo0N319fSwibWlzc2luZ0Nhc2VTdWJzdGl0dXRpb24iOjB9AAAA);src:Fynd-Sans}.fynd-intelligence__dashboard{width:100%;height:100%;position:relative;overflow:hidden}.fynd-intelligence__dashboard iframe{width:100%;height:100%;border:none}.fynd-intelligence__loading{display:none}.fynd-intelligence__reports{width:100%;height:100%;position:relative;overflow:hidden}.fynd-intelligence__reports iframe{width:100%;height:100%;border:none}.fynd-intelligence-error{height:100%;width:100%;position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-family:Fynd-Sans,sans-serif}.fynd-intelligence-error__image{width:192px;height:192px}.fynd-intelligence-error__title{font-size:32px;line-height:44px;font-weight:400;font-family:inherit;letter-spacing:-1.2px;margin:0;text-align:center;color:#101319}.fynd-intelligence-error__description{color:#101319;font-family:inherit;font-size:18px;font-weight:400;line-height:26.1px;margin:12px 0 0;text-align:center}")),document.head.appendChild(e)}}catch{}})();function Alt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var k8={exports:{}},QA={};var M8,Mre;function Fre(){if(Mre)return M8;Mre=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return M8=i()?Object.assign:function(o,s){for(var a,l=r(o),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var d in a)t.call(a,d)&&(l[d]=a[d]);if(e){u=e(a);for(var p=0;p<u.length;p++)n.call(a,u[p])&&(l[u[p]]=a[u[p]])}}return l},M8}var Bre;function mlt(){if(Bre)return QA;Bre=1,Fre();var e=C,t=60103;if(QA.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),QA.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,u){var c,d={},p=null,h=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(c in l)i.call(l,c)&&!o.hasOwnProperty(c)&&(d[c]=l[c]);if(a&&a.defaultProps)for(c in l=a.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:t,type:a,key:p,ref:h,props:d,_owner:r.current}}return QA.jsx=s,QA.jsxs=s,QA}var jre={};var $re;function glt(){return $re||($re=1,(function(e){process.env.NODE_ENV!=="production"&&(function(){var t=C,n=Fre(),r=60103,i=60106;e.Fragment=60107;var o=60108,s=60114,a=60109,l=60110,u=60112,c=60113,d=60120,p=60115,h=60116,A=60121,g=60122,m=60117,E=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;r=v("react.element"),i=v("react.portal"),e.Fragment=v("react.fragment"),o=v("react.strict_mode"),s=v("react.profiler"),a=v("react.provider"),l=v("react.context"),u=v("react.forward_ref"),c=v("react.suspense"),d=v("react.suspense_list"),p=v("react.memo"),h=v("react.lazy"),A=v("react.block"),g=v("react.server.block"),m=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),E=v("react.debug_trace_mode"),v("react.offscreen"),y=v("react.legacy_hidden")}var T=typeof Symbol=="function"&&Symbol.iterator,_="@@iterator";function x(De){if(De===null||typeof De!="object")return null;var it=T&&De[T]||De[_];return typeof it=="function"?it:null}var b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(De){{for(var it=arguments.length,ut=new Array(it>1?it-1:0),yt=1;yt<it;yt++)ut[yt-1]=arguments[yt];D("error",De,ut)}}function D(De,it,ut){{var yt=b.ReactDebugCurrentFrame,It=yt.getStackAddendum();It!==""&&(it+="%s",ut=ut.concat([It]));var Ft=ut.map(function(Lt){return""+Lt});Ft.unshift("Warning: "+it),Function.prototype.apply.call(console[De],console,Ft)}}var I=!1;function P(De){return!!(typeof De=="string"||typeof De=="function"||De===e.Fragment||De===s||De===E||De===o||De===c||De===d||De===y||I||typeof De=="object"&&De!==null&&(De.$$typeof===h||De.$$typeof===p||De.$$typeof===a||De.$$typeof===l||De.$$typeof===u||De.$$typeof===m||De.$$typeof===A||De[0]===g))}function k(De,it,ut){var yt=it.displayName||it.name||"";return De.displayName||(yt!==""?ut+"("+yt+")":ut)}function N(De){return De.displayName||"Context"}function L(De){if(De==null)return null;if(typeof De.tag=="number"&&w("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof De=="function")return De.displayName||De.name||null;if(typeof De=="string")return De;switch(De){case e.Fragment:return"Fragment";case i:return"Portal";case s:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof De=="object")switch(De.$$typeof){case l:var it=De;return N(it)+".Consumer";case a:var ut=De;return N(ut._context)+".Provider";case u:return k(De,De.render,"ForwardRef");case p:return L(De.type);case A:return L(De._render);case h:{var yt=De,It=yt._payload,Ft=yt._init;try{return L(Ft(It))}catch{return null}}}return null}var M=0,B,Q,V,q,F,G,W;function R(){}R.__reactDisabledLog=!0;function j(){{if(M===0){B=console.log,Q=console.info,V=console.warn,q=console.error,F=console.group,G=console.groupCollapsed,W=console.groupEnd;var De={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:De,log:De,warn:De,error:De,group:De,groupCollapsed:De,groupEnd:De})}M++}}function $(){{if(M--,M===0){var De={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},De,{value:B}),info:n({},De,{value:Q}),warn:n({},De,{value:V}),error:n({},De,{value:q}),group:n({},De,{value:F}),groupCollapsed:n({},De,{value:G}),groupEnd:n({},De,{value:W})})}M<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=b.ReactCurrentDispatcher,z;function H(De,it,ut){{if(z===void 0)try{throw Error()}catch(It){var yt=It.stack.trim().match(/\n( *(at )?)/);z=yt&&yt[1]||""}return`
|
|
654
654
|
`+z+De}}var U=!1,X;{var J=typeof WeakMap=="function"?WeakMap:Map;X=new J}function te(De,it){if(!De||U)return"";{var ut=X.get(De);if(ut!==void 0)return ut}var yt;U=!0;var It=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ft;Ft=Y.current,Y.current=null,j();try{if(it){var Lt=function(){throw Error()};if(Object.defineProperty(Lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Lt,[])}catch(Re){yt=Re}Reflect.construct(De,[],Lt)}else{try{Lt.call()}catch(Re){yt=Re}De.call(Lt.prototype)}}else{try{throw Error()}catch(Re){yt=Re}De()}}catch(Re){if(Re&&yt&&typeof Re.stack=="string"){for(var Me=Re.stack.split(`
|
|
655
655
|
`),Ye=yt.stack.split(`
|
|
656
656
|
`),lt=Me.length-1,Ze=Ye.length-1;lt>=1&&Ze>=0&&Me[lt]!==Ye[Ze];)Ze--;for(;lt>=1&&Ze>=0;lt--,Ze--)if(Me[lt]!==Ye[Ze]){if(lt!==1||Ze!==1)do if(lt--,Ze--,Ze<0||Me[lt]!==Ye[Ze]){var Et=`
|