You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/static/js/async/6809.1319df31.js

2 lines
58 KiB

"use strict";(self.webpackChunk_coze_studio_app=self.webpackChunk_coze_studio_app||[]).push([["6809"],{430474:function(e,r,a){a.r(r),a.d(r,{default:()=>rN});var o,t,n,i,d,l,s,c,u,v,g,f,p,b=a("151064"),m=a("455069"),h=a("517465"),y=a.n(h),x=a("149528"),k=a("252237"),_=a.n(k),j=a("22916"),I=a("336205"),w=a("659596"),N=a("825955"),B=a("808549"),S=a("479886"),V=a.n(S),F=a("735114"),O=a("763055"),C=a("298203"),A=a("707107"),L=a("382534"),E=a("873183");function G(e){var r,a,{projectID:o,version:t}=e,{loading:n,data:i,refresh:d}=(0,F.Z)((0,N._)(function*(){var e;return null!==(e=(yield L.v6.GetPlayGroundMemory((0,B._)({project_id:o},t?{version:t}:{}))).memories)&&void 0!==e?e:[]}));var l=(r=(0,N._)(function*(e){if(!!e.keyword)(0,A.Gg)(A.Kg.memory_click_front,{project_id:o,resource_type:"variable",action:"reset",source:"app_detail_page",source_detail:"memory_preview"}),yield L.v6.DelProfileMemory({project_id:o,keywords:[e.keyword]}),d()}),function(e){return r.apply(this,arguments)});var s=(a=(0,N._)(function*(){(0,A.Gg)(A.Kg.memory_click_front,{project_id:o,resource_type:"variable",action:"reset",source:"app_detail_page",source_detail:"memory_preview"}),yield L.v6.DelProfileMemory({project_id:o}),d()}),function(){return a.apply(this,arguments)});return(0,b.jsx)("div",{className:_()("h-full p-4","[&_.semi-table-row]:!bg-transparent","[&_.semi-table-row-head]:!bg-transparent","[&_.semi-table-row-cell]:text-[14px]"),children:(0,b.jsx)(w.iA,{useHoverStyle:!1,empty:(0,b.jsx)(w.HY,{image:(0,b.jsx)(O.ts,{className:"w-[140px] h-[140px]"}),title:I.o.t("variables_user_data_empty")}),tableProps:{loading:n,dataSource:i,columns:[{title:I.o.t("variable_Table_Title_name"),dataIndex:"keyword",width:300},{title:(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)("span",{className:"mr-4px",children:I.o.t("variable_Table_Title_value")}),(0,b.jsx)(w.u,{theme:"dark",content:I.o.t("variable_Button_reset_variable"),children:(0,b.jsx)(w.hU,{color:"primary",icon:(0,b.jsx)(E.mxP,{}),size:"small",onClick:s})})]}),dataIndex:"value",render:(e,r)=>{var a=(0,C.f5)(null==r?void 0:r.schema);return(null==a?void 0:a.readonly)?e:(0,b.jsx)(w.Ph,{className:"w-full truncate",value:e,showArrow:!1,showClear:!0,emptyContent:null,onClear:()=>l(r),clearIcon:(0,b.jsx)(w.hU,{theme:"borderless",color:"secondary",icon:(0,b.jsx)(E.tdK,{}),size:"large"})})}},{title:I.o.t("variable_Table_Title_edit_time"),align:"left",dataIndex:"update_time",width:150,render:(e,r)=>r.value&&V().unix(e).format("YYYY-MM-DD HH:mm")}]}})})}var H=a("664319"),T=a("666781"),R=a("120454"),z=a("479910"),M=a("598208"),D=a("801815"),P=a("335740"),U=a("61111");function W(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,t=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;(Array.isArray(e)?e:[e]).forEach(e=>{if(r(e),t<o){var n,i=null!==(n=e[a])&&void 0!==n?n:[];(null==i?void 0:i.length)>0&&W(i,r,a,o,t+1)}})}var J=((o={}).Object="object",o.List="list",o.String="string",o.Integer="integer",o.Boolean="boolean",o.Float="float",o);var K=((t={})[t.String=1]="String",t[t.Integer=2]="Integer",t[t.Boolean=3]="Boolean",t[t.Number=4]="Number",t[t.Object=6]="Object",t[t.ArrayString=99]="ArrayString",t[t.ArrayInteger=100]="ArrayInteger",t[t.ArrayBoolean=101]="ArrayBoolean",t[t.ArrayNumber=102]="ArrayNumber",t[t.ArrayObject=103]="ArrayObject",t),q=[[1,99],[2,100],[3,101],[4,102],[6,103]];(n=K||(K={})).getComplement=function(e){return[...q.map(e=>e[0]),...q.map(e=>e[1])].filter(r=>!e.includes(r))},n.isArrayType=function(e){return q.map(e=>e[1]).includes(e)};var X=[6,103],Z=a("765377"),Q=e=>{var r,a,o,{type:t,arrayItemType:n}=function(e){switch(e){case 3:return{type:J.Boolean};case 2:return{type:J.Integer};case 4:return{type:J.Float};case 1:return{type:J.String};case 6:return{type:J.Object};case 101:return{type:J.List,arrayItemType:J.Boolean};case 100:return{type:J.List,arrayItemType:J.Integer};case 102:return{type:J.List,arrayItemType:J.Float};case 99:return{type:J.List,arrayItemType:J.String};case 103:return{type:J.List,arrayItemType:J.Object};default:return(0,Z.Sn)(e),(0,Z.Cj)("Unknown view variable type: ".concat(e)),{type:J.String}}}(e.type),i={name:e.name,enable:e.enabled,description:e.description||"",type:t,readonly:!!e.readonly,schema:""};return t===J.List&&n&&(n===J.Object?i.schema={type:J.Object,schema:null===(r=e.children)||void 0===r?void 0:r.map(e=>JSON.parse(Q(e).Schema||"{}"))}:i.schema={type:n}),t===J.Object&&(i.schema=null===(a=e.children)||void 0===a?void 0:a.map(e=>JSON.parse(Q(e).Schema||"{}"))),{Keyword:e.name,Channel:e.channel,VariableType:null!==(o=e.variableType)&&void 0!==o?o:1,DefaultValue:e.defaultValue,Description:e.description,EffectiveChannelList:e.effectiveChannelList,Enable:!!e.enabled,IsReadOnly:!!e.readonly,Schema:JSON.stringify(i,null,0)}},Y=e=>(null==e?void 0:e.map(e=>{var r=$(e),{groupId:a}=r,o=ee({group:e,groupId:a});return(0,R._)((0,B._)({},r),{varInfoList:o,subGroupList:er({group:e,groupId:a})})}))||[],$=e=>{var{GroupName:r="",GroupDesc:a="",GroupExtDesc:o="",IsReadOnly:t=!1,DefaultChannel:n=T.Qi.Custom}=e;return{groupId:(0,D.x0)(),groupName:r,groupDesc:a,groupExtDesc:o,channel:n,isReadOnly:t,raw:e}},ee=e=>{var r,{group:a,groupId:o}=e,{VarInfoList:t=[]}=a;return null!==(r=null==t?void 0:t.map(e=>ea(e,o)))&&void 0!==r?r:[]},er=e=>{var r,{group:a,groupId:o}=e,{SubGroupList:t=[]}=a;return null!==(r=null==t?void 0:t.map(e=>(0,R._)((0,B._)({},$((0,R._)((0,B._)({},e),{DefaultChannel:a.DefaultChannel}))),{groupId:o,varInfoList:ee({group:e,groupId:o}),subGroupList:[]})))&&void 0!==r?r:[]};function ea(e,r){var a=(0,C.f5)(e.Schema||"{}"),{type:o}=a,t=function(e){var r,a,o,t,n,i,d,l,{dtoVariable:s,groupId:c}=e;return{variableId:(0,D.x0)(),name:null!==(r=s.Keyword)&&void 0!==r?r:"",description:null!==(a=s.Description)&&void 0!==a?a:"",enabled:null===(o=s.Enable)||void 0===o||o,defaultValue:null!==(t=s.DefaultValue)&&void 0!==t?t:"",channel:null!==(n=s.Channel)&&void 0!==n?n:T.Qi.Custom,effectiveChannelList:null!==(i=s.EffectiveChannelList)&&void 0!==i?i:[],variableType:null!==(d=s.VariableType)&&void 0!==d?d:T.x9.KVVariable,readonly:null!==(l=s.IsReadOnly)&&void 0!==l&&l,groupId:c,parentId:"",meta:{isHistory:!0}}}({dtoVariable:e,groupId:r});return o===J.List?function(e,r){var{type:a}=r.schema;return a===J.Object?function(e,r){var a=r.schema;if(!a)throw Error("List object variable schema is invalid");var{type:o}=a;return(0,R._)((0,B._)({},e),{type:eo(J.List,{arrayItemType:o}),children:Array.isArray(a.schema)?a.schema.map(r=>et(r,{groupId:e.groupId,parentId:e.variableId})):[]})}(e,r):(0,R._)((0,B._)({},e),{type:eo(r.type,{arrayItemType:a}),children:[]})}(t,a):o===J.Object?function(e,r){var a=r.schema||[];return(0,R._)((0,B._)({},e),{type:eo(r.type),children:Array.isArray(a)?a.map(r=>et(r,{groupId:e.groupId,parentId:e.variableId})):[]})}(t,a):(0,R._)((0,B._)({},t),{type:eo(a.type),children:[]})}function eo(e){var{arrayItemType:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case J.Boolean:return K.Boolean;case J.Integer:return K.Integer;case J.Float:return K.Number;case J.String:return K.String;case J.Object:return K.Object;case J.List:if(!r)throw Error("Unkown variable DTO list need sub type but get ".concat(r));switch(r){case J.Boolean:return K.ArrayBoolean;case J.Integer:return K.ArrayInteger;case J.Float:return K.ArrayNumber;case J.String:return K.ArrayString;case J.Object:return K.ArrayObject;case J.List:return(0,Z.Cj)("List type variable can't have sub list type: ".concat(e,":").concat(r)),K.String;default:return(0,Z.Sn)(r),(0,Z.Cj)("Unknown variable DTO Type: ".concat(e,":").concat(r)),K.String}default:return(0,Z.Sn)(e),(0,Z.Cj)("Unknown variable DTO Type: ".concat(e,":").concat(r)),K.String}}function et(e,r){var{groupId:a,parentId:o}=r;return ea({Keyword:e.name,Description:e.description,Schema:JSON.stringify(e),Enable:!0,IsReadOnly:e.readonly},a)}var en=()=>({canEdit:!1,variableGroups:[]}),ei=(0,M.Ue)()((0,z.mW)((0,z.XR)((e,r)=>(0,R._)((0,B._)({},en()),{setVariableGroups:r=>e({variableGroups:r},!1,"setVariableGroups"),createVariable:e=>({variableId:(0,D.x0)(),type:e.variableType,name:"",enabled:!0,children:[],defaultValue:"",description:"",channel:e.channel,effectiveChannelList:[],variableType:T.x9.KVVariable,readonly:!1,groupId:e.groupId,parentId:e.parentId,meta:{isHistory:!1}}),addRootVariable:a=>{e((0,U.Uy)(e=>{var o=e.variableGroups.find(e=>e.groupId===a.groupId);if(!!o)o.varInfoList.push((0,R._)((0,B._)({},a),{channel:o.channel})),r().updateMeta({variables:o.varInfoList,level:0,parentId:""})}),!1,"addRootVariable")},addChildVariable:e=>{r().findAndModifyVariable(e.groupId,r=>r.variableId===e.parentId,{modifyVariable:a=>{a.children.push(e),r().updateMeta({variables:a.children,level:(a.meta.level||0)+1,parentId:a.variableId})},mark:"addChildVariable"})},deleteVariable:e=>{r().findAndModifyVariable(e.groupId,r=>r.variableId===e.variableId,{removeVariable:!0,mark:"deleteVariable"})},findAndModifyVariable:(r,a,o)=>{var t=null;return e((0,U.Uy)(e=>{var n=e=>{for(var t of e){var d;if(t.groupId===r&&i(t.varInfoList,a,o)||(null===(d=t.subGroupList)||void 0===d?void 0:d.length)&&n(t.subGroupList))return!0}return!1},i=(e,r,a)=>{for(var o,n=0;n<e.length;n++){if(r(e[n]))return t=(0,P.Z)(e[n]),(null==a?void 0:a.removeVariable)&&e.splice(n,1),(null==a?void 0:a.modifyVariable)&&a.modifyVariable(e[n]),!0;if((null===(o=e[n].children)||void 0===o?void 0:o.length)&&i(e[n].children,r,a))return!0}return!1};n(e.variableGroups)}),!1,(null==o?void 0:o.mark)||"findVariableInTree"),t},updateVariable:e=>{r().findAndModifyVariable(e.groupId,r=>r.variableId===e.variableId,{mark:"updateVariable",modifyVariable:a=>{Object.assign(a,e),r().updateMeta({variables:[a],level:a.meta.level,parentId:a.parentId})}})},updateMeta:e=>{var{variables:a,level:o=0,parentId:t=""}=e;a.forEach(e=>{var a;e.meta.level=o,e.meta.hasObjectLike=X.includes(e.type),e.parentId=t,(null===(a=e.children)||void 0===a?void 0:a.length)&&r().updateMeta({variables:e.children,level:o+1,parentId:e.variableId})})},saveHistory:()=>{e((0,U.Uy)(e=>{e.variableGroups.forEach(e=>{W(e.varInfoList,e=>{e.meta.isHistory=!0})})}),!1,"saveHistory")},getAllRootVariables:()=>{var{variableGroups:e}=r(),a=[];return W(e,e=>{a.push(...e.varInfoList)},"subGroupList"),a},getAllVariables:()=>{var{variableGroups:e}=r(),a=e.map(e=>e.varInfoList).flat(),o=[];return W(a,e=>{o.push(e)},"children"),o},transformDto2Vo:e=>{var a=Y(e);return a.forEach(e=>{r().updateMeta({variables:e.varInfoList})}),a},getDtoVariable:e=>Q(e),initStore:a=>{var{transformDto2Vo:o}=r();e({variableGroups:o(a.variableGroups),canEdit:a.canEdit},!1,"initStore")},clear:()=>{e((0,B._)({},en()),!1,"clear")}})),{enabled:!1,name:"knowledge.variableGroups"})),ed=a("157728"),el=()=>{var[e,r]=(0,m.useState)(!1),a=(0,ed.useLocation)(),o=(0,m.useRef)(a.pathname),t=(0,j.EV)();return(0,m.useEffect)(()=>{var r=a.pathname,n=o.current.includes("/variables"),i=r=>{e&&r.preventDefault()};return n&&!r.includes("/variables")&&e&&w.FN.warning({content:(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"text-sm font-medium coz-fg-plus mr-2",children:I.o.t("variable_config_toast_savetips")}),(0,b.jsx)(w.zx,{color:"primary",onClick:()=>{var e;null===(e=t.navigateTo)||void 0===e||e.call(t,"/variables")},children:I.o.t("variable_config_toast_return_button")})]})}),r.includes("/variables")&&e&&window.addEventListener("beforeunload",i),o.current=r,()=>{window.removeEventListener("beforeunload",i)}},[a,e]),{hasUnsavedChanges:e,setHasUnsavedChanges:r}},es=a("727914"),ec=(e,r)=>{var{data:a,loading:o}=eu(e,r),{initStore:t}=ei();return(0,m.useEffect)(()=>{if(!o){var{variableGroups:e,canEdit:n}=a;t({variableGroups:e,canEdit:n&&!r})}},[o]),{loading:o}},eu=(e,r)=>{var a,o,t,{data:n,loading:i,error:d}=(0,F.Z)((0,N._)(function*(){if(!e)throw new es.sH("useListDataSetReq_error","projectID cannot be empty");var{GroupConf:a,code:o,CanEdit:t,msg:n}=yield L.v6.GetProjectVariableList({ProjectID:e,version:r||void 0});return 0!==o?{error:n,data:{variableGroups:[],canEdit:!1},loading:!1}:a?{variableGroups:a,canEdit:t}:{data:{variableGroups:[],canEdit:t},loading:!1}}),{manual:!1,onError:()=>{w.FN.error({content:I.o.t("Network_error"),showClose:!1})}});return{data:{variableGroups:null!==(a=null==n?void 0:n.variableGroups)&&void 0!==a?a:[],canEdit:null!==(o=null==n?void 0:n.canEdit)&&void 0!==o&&o},loading:i,error:null!==(t=null==d?void 0:d.message)&&void 0!==t?t:""}},ev=()=>{var{clear:e}=ei();return(0,m.useEffect)(()=>()=>{e()},[e]),{clear:e}},eg=(0,m.createContext)({groups:[]}),ef=()=>(0,m.useContext)(eg),ep=(0,m.createContext)({groupId:"",variables:[]}),eb=e=>{var r=[];return W(e,e=>{r.push(e)},"children"),r};var em=((i={})[i.Update=0]="Update",i[i.Delete=1]="Delete",i[i.Append=2]="Append",i[i.UpdateEnabled=3]="UpdateEnabled",i[i.Replace=4]="Replace",i),eh=[K.Object,K.ArrayObject,K.ArrayBoolean,K.ArrayNumber,K.ArrayString,K.ArrayInteger],ey=a("550655"),ex={[K.String]:"String",[K.Integer]:"Integer",[K.Boolean]:"Boolean",[K.Number]:"Number",[K.Object]:"Object",[K.ArrayString]:"Array<String>",[K.ArrayInteger]:"Array<Integer>",[K.ArrayBoolean]:"Array<Boolean>",[K.ArrayNumber]:"Array<Number>",[K.ArrayObject]:"Array<Object>"},{Text:ek}=w.ZT,e_=e=>{var{value:r,className:a}=e;return(0,b.jsx)(ek,{className:_()("w-full coz-fg-primary text-sm !font-medium",a),ellipsis:!0,children:r})},ej=(e,r,a)=>({value:Number(e),label:r||ex[e],display:a||r||ex[e]}),eI=[ej(K.String),ej(K.Integer),ej(K.Boolean),ej(K.Number),ej(K.Object),ej(K.ArrayString),ej(K.ArrayInteger),ej(K.ArrayBoolean),ej(K.ArrayNumber),ej(K.ArrayObject)],ew=(e,r)=>{var{level:a}=r||{};return e.reduce((e,o)=>{var t=(0,B._)({},o);t.children&&(t.children=ew(t.children,r));var n=!!(a&&a>=3&&X.includes(Number(t.value)));return[...e,(0,R._)((0,B._)({},t),{disabled:n})]},[])},eN=e=>ew(eI,e),eB=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=[...a];return r.forEach(r=>{if(r.children){var a=eB(e,r.children,[...o,r.value]);if(a[a.length-1]===e){o=a;return}}else if(r.value===e){o.push(e);return}}),o},eS={[K.String]:(0,b.jsx)(E.ls7,{}),[K.Integer]:(0,b.jsx)(E.j$I,{}),[K.Boolean]:(0,b.jsx)(E.WbN,{}),[K.Number]:(0,b.jsx)(E.j$I,{}),[K.Object]:(0,b.jsx)(E.nCh,{}),[K.ArrayString]:(0,b.jsx)(E.mcR,{}),[K.ArrayInteger]:(0,b.jsx)(E.VNw,{}),[K.ArrayBoolean]:(0,b.jsx)(E.m5O,{}),[K.ArrayNumber]:(0,b.jsx)(E.VNw,{}),[K.ArrayObject]:(0,b.jsx)(E.yRc,{})};function eV(e){var{data:r,onSelectChange:a,level:o,readonly:t}=e,n=(0,m.useMemo)(()=>eN({level:o}),[o]),i=(0,m.useMemo)(()=>eB(r.type,eI),[r.type]);return t?(0,b.jsx)(e_,{className:"w-full",value:ex[r.type]}):(0,b.jsx)(w.vT,{placeholder:I.o.t("workflow_detail_start_variable_type"),disabled:t,onChange:e=>{var r=e;Array.isArray(e)&&(r=e[e.length-1]),null==a||a(r)},className:"w-full coz-stroke-plus",displayProp:"value",displayRender:e=>Array.isArray(e)?(0,b.jsxs)("div",{className:"flex items-center gap-1 text-xs",children:[eS[e[e.length-1]],(0,b.jsx)("div",{className:"truncate",children:ex[e[e.length-1]]})]}):null,treeData:n,value:i})}var eF=((d={}).VariableTreeDeleteBtn="variable.tree.delete.btn",d),eO=a("473980"),eC=a("44172");function eA(e){var{readonly:r,onClick:a,className:o,style:t,disabled:n,subitem:i=!1,size:d,color:l}=e,s=(0,eO._)(e,["readonly","onClick","className","style","disabled","subitem","size","color"]);return r?null:(0,b.jsx)(w.hU,{"data-testid":s["data-testid"],onClick:a,className:"".concat(n?"disabled:text-[rgb(28,31,35,0.35)]":"text-[#4d53e8]"," ").concat(o),style:t,icon:i?(0,b.jsx)(E.aCu,{}):(0,b.jsx)(eC.N_R,{className:"text-[#4d53e8] disabled:text-[rgb(28,31,35,0.35)]"}),disabled:n,size:d,color:l})}function eL(e){var{level:r,data:a,hasObjectLike:o,readonly:t,needRenderAppendChild:n=!0,onEnabledChange:i,onDelete:d,onAppend:l}=e,s=!t&&X.includes(a.type),{variablePageCanEdit:c}=ef();return(0,b.jsxs)("div",{className:"flex items-center h-[24px] flex-shrink-0 justify-start gap-x-2 w-[130px]",children:[(0,b.jsx)(w.rs,{size:"small",disabled:!c||0!==r,checked:a.enabled,onChange:i}),n?(0,b.jsx)("div",{className:"flex items-center justify-center",children:(0,b.jsx)(w.u,{content:I.o.t("workflow_detail_node_output_add_subitem"),theme:"dark",children:(0,b.jsx)("div",{children:(0,b.jsx)(eA,{color:"secondary",disabled:r>=3||!(!t&&o&&s&&n),className:"cursor-pointer",onClick:l,subitem:!0})})})}):null,(0,b.jsx)(w.hU,{"data-testid":eF.VariableTreeDeleteBtn,color:"secondary",onClick:d,disabled:!!t,icon:(0,b.jsx)(E.dVD,{})})]})}var eE={validate:e=>!!e.name,message:I.o.t("bot_edit_variable_field_required_error")},eG={validate:(e,r)=>{if(!e.name)return!0;var a=r.find(r=>r.groupId===e.groupId);if(!a)return!0;var o=(r,a)=>{var t,n=[];for(var i of r)i.parentId===a&&i.variableId!==e.variableId&&n.push(i),(null===(t=i.children)||void 0===t?void 0:t.length)&&(n=n.concat(o(i.children,a)));return n};return!(o(a.varInfoList,e.parentId).some(r=>r.name===e.name)||!e.parentId&&r.filter(r=>r.groupId!==e.groupId).flatMap(e=>{var r=e.varInfoList,a=e.subGroupList.flatMap(e=>e.varInfoList);return r.concat(a)}).some(r=>r.name===e.name))&&!0},message:I.o.t("workflow_detail_node_error_variablename_duplicated")},eH={validate:e=>/^(?!.*\b(true|false|and|AND|or|OR|not|NOT|null|nil|If|Switch)\b)[a-zA-Z_][a-zA-Z_$0-9]*$/.test(e.name),message:I.o.t("variables_app_name_limit")},eT=e=>{var r=(0,w.XQ)(),a=(0,m.useRef)(e.name);(0,m.useEffect)(()=>{var o=r.getValue("".concat(e.variableId,".name"));o?a.current=o:a.current&&r.setValue("".concat(e.variableId,".name"),a.current)},[e.variableId])},eR=e=>{var{data:r,onChange:a,readonly:o,validateExistKeyword:t=!1}=e,{groups:n}=ef(),i=(0,w.XQ)();return eT(r),(0,b.jsx)("div",{className:_()("w-full overflow-hidden","[&_.semi-form-field-error-message]:absolute","[&_.semi-form-field-error-message]:text-[12px]","[&_.semi-form-field-error-message]:font-[400]","[&_.semi-form-field-error-message]:leading-[16px]"),children:o?(0,b.jsx)(e_,{value:r.name}):(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(w.yt,{field:"".concat(r.variableId,".name"),placeholder:I.o.t("variable_name_placeholder"),maxLength:50,autoFocus:!r.name,noLabel:!0,rules:[{validator:(e,a)=>eE.validate((0,R._)((0,B._)({},r),{name:a})),message:eE.message},{validator:(e,a)=>!t||eH.validate((0,R._)((0,B._)({},r),{name:a})),message:eH.message},{validator:(e,a)=>eG.validate((0,R._)((0,B._)({},r),{name:a}),n),message:eG.message}],onChange:e=>{a(e),i.setValue("".concat(r.variableId,".name"),e)},className:"w-full truncate"})})})},ez=e=>{var r,{data:a,onChange:o,readonly:t}=e;return t?(0,b.jsx)(e_,{value:null!==(r=a.description)&&void 0!==r?r:""}):(0,b.jsx)("div",{className:"flex flex-col w-full relative overflow-hidden",children:(0,b.jsx)(w.II,{value:a.description,placeholder:I.o.t("workflow_detail_llm_output_decription"),maxLength:200,onChange:e=>{o(e)},className:"w-full"})})},eM=a("871873"),eD=e=>{try{return JSON.stringify(JSON.parse(e),null,4)}catch(r){return e}},eP=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(a>r)return[];var o=[];return Object.keys(e).forEach(t=>{var n=e[t];switch(typeof n){case"string":o.push({name:t,defaultValue:JSON.stringify(n),type:1});break;case"number":Number.isInteger(n)?o.push({name:t,defaultValue:JSON.stringify(n),type:2}):o.push({name:t,defaultValue:JSON.stringify(n),type:4});break;case"boolean":o.push({name:t,defaultValue:JSON.stringify(n),type:3});break;case"object":if(null===n)break;if(Array.isArray(n)){if(n.length>0)switch(typeof n[0]){case"string":default:o.push({name:t,defaultValue:JSON.stringify(n),type:99});break;case"number":Number.isInteger(n[0])?o.push({name:t,defaultValue:JSON.stringify(n),type:100}):o.push({name:t,defaultValue:JSON.stringify(n),type:102});break;case"boolean":o.push({name:t,defaultValue:JSON.stringify(n),type:101});break;case"object":o.push({name:t,defaultValue:JSON.stringify(n),type:103,children:eP(n[0],r,a+1)})}else o.push({name:t,defaultValue:JSON.stringify(n),type:99})}else o.push({name:t,defaultValue:JSON.stringify(n),type:6,children:eP(n,r,a+1)});break;default:throw Error("ContainsInvalidValue")}}),o},eU=a("407821"),eW=a.n(eU),eJ=a("472772"),eK=a.n(eJ),eq=a("395245"),eX=a.n(eq),eZ=a("297998"),eQ=a.n(eZ),eY=a("646576"),e$=a.n(eY),e0=a("606121"),e1=a.n(e0),e6=a("954797"),e2={};e2.styleTagTransform=e1(),e2.setAttributes=eQ(),e2.insert=eX().bind(null,"head"),e2.domAPI=eK(),e2.insertStyleElement=e$(),eW()(e6.Z,e2);var e4=e6.Z&&e6.Z.locals?e6.Z.locals:void 0,e3=(0,m.lazy)((0,N._)(function*(){var{Editor:e}=yield Promise.resolve().then(a.bind(a,966219));return{default:e}})),e5=e=>(0,b.jsx)(m.Suspense,{children:(0,b.jsx)(e3,(0,B._)({},e))}),e9={jsonValid:{message:I.o.t("variables_json_input_error"),validator:e=>{try{var r=JSON.parse(e);return"object"==typeof r}catch(e){return!1}}},jsonLength:{message:I.o.t("variables_json_input_limit"),validator:e=>!(e.length>30720)&&!0}},e8=e=>{var{id:r,value:a,setValue:o,visible:t,onCancel:n,onOk:i,readonly:d}=e,[l,s]=(0,m.useState)(),[c,u]=(0,m.useState)(),v=(0,m.useCallback)((0,N._)(function*(){if(!!l)return u(void 0),new Promise(e=>{w.u_.warning({title:I.o.t("workflow_json_node_update_tips_title"),content:I.o.t("workflow_json_node_update_tips_content"),okType:"warning",okText:I.o.t("Confirm"),cancelText:I.o.t("Cancel"),onOk:()=>{i(g(a)||[]),e(!0)},onCancel:()=>e(!1)})})}),[l]),g=e=>{if(!!e)try{var r=JSON.parse(e),a=eP(r);if(!a||!Array.isArray(a)||0===a.length)return;return a}catch(e){return}},f=e=>{for(var r of Object.values(e9))if(!r.validator(e))return u(r.message),!1;return u(void 0),!0},p=(0,m.useMemo)(()=>f(a),[a]);return(0,m.useEffect)(()=>{s(g(a))},[a]),(0,b.jsx)(w.u_,{visible:t,title:d?I.o.t("variables_json_input_readonly_title"):I.o.t("workflow_json_windows_title"),okText:I.o.t("Confirm"),cancelText:I.o.t("Cancel"),onOk:v,onCancel:n,height:530,okButtonProps:{disabled:!p||d},children:(0,b.jsxs)("div",{className:"w-full relative",children:[(0,b.jsxs)("div",{className:"w-full h-[48px] coz-bg-primary rounded-t-lg coz-fg-primary font-medium text-sm flex items-center justify-between px-4",children:[(0,b.jsx)("div",{className:"coz-fg-primary",children:"JSON"}),(0,b.jsx)(w.u,{content:I.o.t("workflow_exception_ignore_format"),children:(0,b.jsx)(w.hU,{className:"bg-transparent",disabled:d,icon:(0,b.jsx)(E.bGR,{}),onClick:()=>{o(eD(a))}})})]}),(0,b.jsx)("div",{className:"w-full h-[320px]",children:(0,b.jsx)(e5,{value:a,defaultLanguage:"json",className:e4.light,options:{fontSize:13,minimap:{enabled:!1},contextmenu:!1,scrollbar:{verticalScrollbarSize:10,alwaysConsumeMouseWheel:!1},lineNumbers:"on",lineNumbersMinChars:3,folding:!1,lineDecorationsWidth:2,renderLineHighlight:"none",glyphMargin:!1,scrollBeyondLastLine:!1,overviewRulerBorder:!1,wordWrap:"on",fixedOverflowWidgets:!0,readOnly:d},onChange:e=>{o(e||"")}},r)}),c?(0,b.jsx)("div",{className:"absolute top-full",children:(0,b.jsx)("span",{className:"coz-fg-hglt-red text-[12px] font-[400] leading-[16px] whitespace-nowrap",children:c})}):null]},r)})},e7=(e,r)=>{var a=Array.isArray(r)?e=>{r.forEach(r=>r(e))}:r;return p.traverseNodes({value:e},a),e};(l=p||(p={})).traverseNodes=(e,r)=>{var{value:a}=e;if(!!a){if("[object Object]"===Object.prototype.toString.call(a))Object.entries(a).forEach(o=>{var[t,n]=o;return l.traverseNodes({value:n,container:a,key:t,parent:e},r)});else if(Array.isArray(a))for(var o=a.length-1;o>=0;o--){var t=a[o];l.traverseNodes({value:t,container:a,index:o,parent:e},r)}r(s({node:e}))}},s=e=>{var{node:r}=e;return{node:r,setValue:e=>c(r,e),getParents:()=>u(r),getPath:()=>v(r),getStringifyPath:()=>g(r),deleteSelf:()=>f(r)}},c=(e,r)=>{if(!!r&&!!e){e.value=r;var{container:a,key:o,index:t}=e;o&&a?a[o]=r:"number"==typeof t&&(a[t]=r)}},u=e=>{for(var r=[],a=e;a;)r.unshift(a),a=a.parent;return r},v=e=>{var r=[];return u(e).forEach(e=>{e.key?r.unshift(e.key):e.index&&r.unshift(e.index)}),r},g=e=>v(e).reduce((e,r)=>"string"!=typeof r?"".concat(e,"[").concat(r,"]"):/\W/g.test(r)?"".concat(e,'["').concat(r,'"]'):"".concat(e,".").concat(r),""),f=e=>{var{container:r,key:a,index:o}=e;a&&r?delete r[a]:"number"==typeof o&&r.splice(o,1)};var re=e=>"object"==typeof e.node.value&&void 0!==e.node.value.type&&!0,rr=e=>r=>{if(!!re(r))r.node.value.name.length>e&&(r.node.value.name=r.node.value.name.slice(0,e))},ra=e=>r=>{if(!!re(r)&&r.node.value.level===e&&!![K.Object,K.ArrayObject].includes(r.node.value.type))r.deleteSelf()},ro=e=>{var{data:r,allowDepth:a,allowNameLength:o,maxVariableCount:t}=e;return e7(r.slice(0,t),[rr(o),ra(a)])},rt=(e,r,a)=>{var o=ei.getState(),t=function(e){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,d=o.createVariable({variableType:e.type,groupId:r.groupId,parentId:n,channel:r.channel});return i&&(d.variableId=i.variableId,d.description=i.description),d.name=e.name,d.defaultValue=e.defaultValue,(null===(a=e.children)||void 0===a?void 0:a.length)&&(d.children=e.children.map((e,r)=>{var a,o=null==i?void 0:null===(a=i.children)||void 0===a?void 0:a[r];return t(e,d.variableId,o)})),d},n=e.map(e=>t(e,"",a));return o.updateMeta({variables:n}),n},rn=e=>{switch(e){case K.String:return"";case K.Integer:case K.Number:return 0;case K.Boolean:return!1;case K.Object:return{};case K.ArrayString:return[""];case K.ArrayInteger:return[0];case K.ArrayBoolean:return[!0];case K.ArrayNumber:return[0];case K.ArrayObject:return[{}];default:return{}}},ri=e=>[K.ArrayString,K.ArrayInteger,K.ArrayBoolean,K.ArrayNumber,K.ArrayObject].includes(e),rd=e=>{var{defaultValue:r,type:a,name:o,children:t}=e;if(r)return eD(JSON.stringify({[o]:JSON.parse(r)}));if(!o)return"{}";var n=ri(a),i=(e,r)=>{if(!e||0===e.length)return rn(r||a);if(n&&!r){var o=e[0];if(!o)return[];var t={};return o.children&&o.children.length>0?t[o.name]=i(o.children,o.type):t[o.name]=rn(o.type),[t]}return e.reduce((e,r)=>{if(!r.name)return e;if(r.children&&r.children.length>0){var a=i(r.children,r.type);e[r.name]=ri(r.type)?[a]:a}else e[r.name]=rn(r.type);return e},{})};return eD(JSON.stringify({[o]:i(t)}))},rl=e=>{var{treeData:r,rules:a,visible:o,onCancel:t,onOk:n}=e,{jsonImport:i,readonly:d}=a,[l,s]=(0,m.useState)("");return((0,m.useEffect)(()=>{s(rd(r))},[r]),i)?(0,b.jsx)(e8,{id:r.variableId,groupId:r.groupId,value:l,readonly:d,setValue:e=>{s(e)},visible:o,onOk:e=>{var a=ro({data:rt(e,{groupId:r.groupId,channel:r.channel},r),allowDepth:3,allowNameLength:50,maxVariableCount:1}),o=(0,P.Z)(r);return n((0,eM.Z)(o,a[0]))},onCancel:t}):(0,b.jsx)(b.Fragment,{})},rs=e=>{var{data:r,onDefaultChange:a,onImportChange:o,readonly:t}=e,[n,i]=(0,m.useState)(!1),d=0===r.meta.level,l=d&&r.type===K.String,s=d&&(r.type===K.Number||r.type===K.Integer),c=d&&r.type===K.Boolean,u=eh.includes(r.type)&&d;return(0,b.jsx)("div",{className:"w-[144px] h-full flex items-center [&_.semi-input-number-suffix-btns]:!h-auto",children:(0,b.jsx)("div",{className:"flex flex-col w-full relative",children:t&&!u?(0,b.jsx)(e_,{className:"w-[144px]",value:r.defaultValue||"-"}):(0,b.jsxs)(b.Fragment,{children:[l?(0,b.jsx)(w.II,{value:r.defaultValue,onChange:e=>a(e),placeholder:I.o.t("workflow_detail_title_testrun_error_input",{a:r.name}),maxLength:1e3,disabled:t}):null,s?(0,b.jsx)(w.k7,{className:_()("h-full",{"[&_.semi-input-wrapper]:!coz-stroke-plus":!0}),value:r.defaultValue,onChange:e=>a(e),placeholder:I.o.t("workflow_detail_title_testrun_error_input",{a:r.name}),disabled:t}):null,c?(0,b.jsx)(w.rs,{checked:"true"===r.defaultValue,size:"small",onChange:e=>a(e),disabled:t}):null,u?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{onClick:()=>i(!0),className:_()("coz-mg-primary rounded cursor-pointer flex items-center justify-center h-[32px] gap-x-1",{"coz-fg-primary":!t,"coz-fg-dim":t}),children:[(0,b.jsx)(E.JAz,{}),(0,b.jsx)("span",{className:"text-sm font-medium",children:t?I.o.t("variables_json_input_readonly_button"):I.o.t("variable_button_input_json")})]}),(0,b.jsx)(rl,{visible:n,treeData:r,rules:{jsonImport:!0,readonly:!!t},onOk:e=>{o(e),i(!1)},onCancel:()=>i(!1)})]}):null]})})})},rc=e=>{var r,a,o,{value:t}=e;return(null===(r=t.effectiveChannelList)||void 0===r?void 0:r.length)?(0,b.jsx)("div",{className:"coz-stroke-primary text-[14px] font-[500] leading-[20px]",children:null!==(o=null===(a=t.effectiveChannelList)||void 0===a?void 0:a.join(","))&&void 0!==o?o:"--"}):null};function ru(e){var{data:r,className:a,level:o,readonly:t=!1,onChange:n,hasObjectLike:i,couldCollapse:d=!0,hideHeaderKeys:l,collapsed:s=!1,onCollapse:c,validateExistKeyword:u=!1}=e,v=(0,P.Z)(r),g=(0,m.useRef)(null),f=(0,m.useCallback)(e=>{if(v.description!==e)n(em.Update,(0,R._)((0,B._)({},v),{description:e}))},[n,v]),p=(0,m.useCallback)(e=>{n(em.UpdateEnabled,(0,R._)((0,B._)({},v),{enabled:e}))},[n,v]);return(0,b.jsx)("div",{className:_()("flex items-center",{[a]:!!a}),ref:g,children:(0,b.jsxs)("div",{className:"flex flex-1 my-3 gap-x-4 items-center w-full relative h-[32px]",children:[(0,b.jsxs)("div",{className:"flex flex-1 items-center flex-nowrap overflow-x-hidden overflow-y-visible",children:[(0,b.jsx)("div",{className:"flex items-center justify-end",style:{width:30*o}}),(0,b.jsx)(E.x5d,{className:_()("flex-none mr-2 w-[16px] h-[16px]",s?"rotate-90":"",d?"":"invisible","cursor-pointer",0!==o||d?"":"hidden"),onClick:()=>{null==c||c(!s)}}),(0,b.jsx)(eR,{readonly:t,data:v,onChange:e=>{if(v.name!==e)n(em.Update,(0,R._)((0,B._)({},v),{name:e}))},validateExistKeyword:u})]}),(0,b.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,b.jsx)(ez,{data:v,onChange:f,readonly:t})}),(null==l?void 0:l.includes("type"))?null:(0,b.jsx)("div",{className:"flex-none w-[166px] basis-[166px]",children:(0,b.jsx)(eV,{level:o,readonly:t,data:v,onSelectChange:e=>{if(void 0!==e&&!!(0,ey.Z)(e))v.defaultValue="",v.children=[],n(em.Update,(0,R._)((0,B._)({},v),{type:e}))}})}),(0,b.jsx)("div",{className:"flex-none w-[164px] basis-[164px]",children:(0,b.jsx)(rs,{readonly:t,data:v,onDefaultChange:e=>{n(em.Update,(0,R._)((0,B._)({},v),{defaultValue:e.toString()}))},onImportChange:e=>{n(em.Replace,e)}})}),(0,b.jsx)("div",{className:"flex-none w-[164px] basis-[164px] empty:hidden",children:(0,b.jsx)(rc,{value:v})}),(0,b.jsx)("div",{className:"flex-none w-[130px] basis-[130px]",children:(0,b.jsx)(eL,{data:v,readonly:t,level:o,onDelete:()=>{n(em.Delete,v)},onAppend:()=>{n(em.Append,v)},hasObjectLike:i,needRenderAppendChild:!(null==l?void 0:l.includes("type")),onEnabledChange:p})})]})})}var rv=m.forwardRef(function(e,r){var{readonly:a=!1,treeProps:o,className:t,style:n,value:i,defaultVariableType:d=K.String,defaultCollapse:l=!1,maxLimit:s,groupId:c,channel:u,hideHeaderKeys:v,validateExistKeyword:g=!1,onChange:f}=e,{createVariable:p,addRootVariable:h,addChildVariable:y,updateVariable:x,deleteVariable:k,findAndModifyVariable:j}=ei((0,H.N)(e=>({createVariable:e.createVariable,addRootVariable:e.addRootVariable,addChildVariable:e.addChildVariable,updateVariable:e.updateVariable,deleteVariable:e.deleteVariable,findAndModifyVariable:e.findAndModifyVariable}))),N=(0,w.XQ)(),S=!i||0===i.length,V=(0,m.useMemo)(()=>{var e=[];return W(i,r=>{var a;(null===(a=r.children)||void 0===a?void 0:a.length)>0&&e.push(r.variableId)}),e},[i]),F=(0,m.useMemo)(()=>eb(i),[i]),{expandedKeys:O,expandTreeNode:C,collapseTreeNode:L}=function(e,r){var[a,o]=(0,m.useState)(r?[]:e),t=(0,m.useCallback)(e=>{o(r=>[...new Set([...r,e])])},[]);return{expandedKeys:a,expandTreeNode:t,collapseTreeNode:(0,m.useCallback)(e=>{o(r=>r.filter(r=>r!==e))},[])}}(V,l),G=(0,ed.useParams)();(0,m.useImperativeHandle)(r,()=>({validate:()=>N.validate()}));var T=(0,m.useMemo)(()=>{var e;return void 0!==s&&(null!==(e=null==i?void 0:i.length)&&void 0!==e?e:0)>=s},[i,s]),z=!a&&!T,M=(e,r)=>{var a=j(c,e=>e.variableId===r.variableId);if(!a){w.FN.error(I.o.t("workflow_detail_node_output_parsingfailed"));return}switch(e){case em.Append:var{variableId:o,channel:t}=a;y(p({groupId:c,parentId:o,variableType:d,channel:t})),(null==a?void 0:a.variableId)&&C(a.variableId),(0,A.Gg)(A.Kg.memory_click_front,{project_id:(null==G?void 0:G.project_id)||"",resource_type:"variable",action:"add",source:"app_detail_page",source_detail:"memory_manage"});break;case em.Update:x(r),(0,A.Gg)(A.Kg.memory_click_front,{project_id:(null==G?void 0:G.project_id)||"",resource_type:"variable",action:"edit",source:"app_detail_page",source_detail:"memory_manage"});break;case em.Delete:k(r),(0,A.Gg)(A.Kg.memory_click_front,{project_id:(null==G?void 0:G.project_id)||"",resource_type:"variable",action:"delete",source:"app_detail_page",source_detail:"memory_manage"});break;case em.UpdateEnabled:if(a.enabled=r.enabled,W(a,e=>{!r.enabled&&(e.enabled=r.enabled)}),a.parentId&&a.enabled){var n=j(c,e=>e.variableId===a.parentId);n&&(n.enabled=a.enabled,x(n))}x(a),(0,A.Gg)(A.Kg.memory_click_front,{project_id:(null==G?void 0:G.project_id)||"",resource_type:"variable",action:r.enabled?"turn_on":"turn_off",source:"app_detail_page",source_detail:"memory_manage"});break;case em.Replace:x(r),C(a.variableId),(0,A.Gg)(A.Kg.memory_click_front,{project_id:(null==G?void 0:G.project_id)||"",resource_type:"variable",action:"edit",source:"app_detail_page",source_detail:"memory_manage"})}null==f||f(r)};return a&&S?null:(0,b.jsx)(ep.Provider,{value:{groupId:c,variables:F},children:(0,b.jsxs)("div",{className:_()("relative h-full",!a&&"cursor-default",t),style:n,children:[(0,b.jsx)(w.mp,(0,B._)({style:a?{}:{overflow:"inherit"},motion:!1,keyMaps:{key:"variableId"},disabled:a,className:_()("overflow-x-auto","[&_.semi-tree-option-list]:overflow-visible [&_.semi-tree-option-list]:p-0 [&_.semi-tree-option-list>div:first-child]:mt-0 [&_.semi-tree-option]:!pl-2",a?"[&_.semi-tree-option-list-block_.semi-tree-option:hover]:bg-inherit":"[&_.semi-tree-option-list-block_.semi-tree-option:hover]:bg-transparent [&_.semi-tree-option-list-block_.semi-tree-option:active]:bg-transparent"),renderFullLabel:e=>{var r,o,{data:t}=e,n=a||t.IsReadOnly;return(0,b.jsx)(ru,(0,R._)((0,B._)({},e),{hideHeaderKeys:v,validateExistKeyword:g,onChange:M,hasObjectLike:t.meta.hasObjectLike,readonly:n,couldCollapse:(null!==(o=null===(r=t.children)||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0,collapsed:e.expandStatus.expanded,onCollapse:r=>{var{variableId:a}=e.data;if(!!a)r?C(a):L(a)}}))},emptyContent:(0,b.jsx)(b.Fragment,{}),expandedKeys:[...O,(0,D.x0)()],treeData:i},o)),z?(0,b.jsx)("div",{className:"flex items-center my-3",children:(0,b.jsx)(w.hU,{icon:(0,b.jsx)(E.PwN,{}),onClick:()=>{var e=p({groupId:c,parentId:"",variableType:d,channel:u});h(e),null==f||f(e),(0,A.Gg)(A.Kg.memory_click_front,{project_id:(null==G?void 0:G.project_id)||"",resource_type:"variable",action:"add",source:"app_detail_page",source_detail:"memory_manage"})},children:I.o.t("workflow_detail_node_output_add_subitem")})}):null]})})}),rg=e=>{var{hideHeaderKeys:r}=e;return(0,b.jsxs)("div",{className:_()("flex w-full h-[28px] py-[6px] pl-8 items-center gap-x-4 justify-start","border border-solid coz-stroke-primary border-t-0 border-x-0"),children:[(0,b.jsx)("div",{className:"flex-1 h-full flex items-center",children:(0,b.jsxs)("div",{className:"coz-fg-secondary text-[12px] font-[500] leading-[16px]",children:[I.o.t("bot_edit_memory_title_filed"),(0,b.jsx)("span",{className:"coz-fg-hglt-red",children:"*"})]})}),(0,b.jsx)("div",{className:"flex-1 h-full flex items-center",children:(0,b.jsx)("div",{className:"coz-fg-secondary text-[12px] font-[500] leading-[16px]",children:I.o.t("bot_edit_memory_title_description")})}),(null==r?void 0:r.includes("type"))?null:(0,b.jsx)("div",{className:"flex-none w-[166px] basis-[166px] h-full flex items-center box-content",children:(0,b.jsx)("div",{className:"coz-fg-secondary text-[12px] font-[500] leading-[16px]",children:I.o.t("variable_Table_Title_type")})}),(0,b.jsx)("div",{className:"flex-none w-[164px] basis-[164px] h-full flex items-center box-content",children:(0,b.jsx)("div",{className:"coz-fg-secondary text-[12px] font-[500] leading-[16px]",children:I.o.t("bot_edit_memory_title_default")})}),(null==r?void 0:r.includes("channel"))?null:(0,b.jsx)("div",{className:"flex-none w-[164px] basis-[164px] h-full flex items-center box-content",children:(0,b.jsx)("div",{className:"coz-fg-secondary text-[12px] font-[500] leading-[16px]",children:I.o.t("variable_Table_Title_support_channels")})}),(0,b.jsx)("div",{className:"flex-none w-[130px] basis-[130px] h-full flex items-center box-content",children:(0,b.jsx)("div",{className:"coz-fg-secondary text-[12px] font-[500] leading-[16px]",children:I.o.t("bot_edit_memory_title_action")})})]})},rf=e=>{var r=[],a=(function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,a=[];return W(e,e=>{a.push(...e.varInfoList)},"subGroupList",r),a})([e]).filter(e=>{var r,a;return(null!==(a=null==e?void 0:null===(r=e.effectiveChannelList)||void 0===r?void 0:r.length)&&void 0!==a?a:0)>0}).length<=0,o=e.channel===T.Qi.Custom;return a&&r.push("channel"),o&&r.push("type"),r},rp=e=>{var{groupInfo:r,children:a,level:o=0}=e,[t,n]=(0,m.useState)(!0),i=0===o;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:_()("flex w-full flex-col cursor-pointer px-1 py-2",i?"hover:coz-mg-secondary-hovered hover:rounded-lg":""),onClick:()=>n(!t),children:[(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)("div",{className:"w-[22px] h-full flex items-center",children:(0,b.jsx)(E.x5d,{className:_()("w-[14px] h-[14px]",t?"rotate-90":"")})}),(0,b.jsx)("div",{className:"w-[370px] h-full flex items-center",children:(0,b.jsx)("div",{className:_()("coz-stroke-primary text-xxl font-medium",i?"":"!text-sm my-[10px]"),children:r.groupName})})]}),i?(0,b.jsx)("div",{className:"text-sm coz-fg-secondary pl-[22px]",children:r.groupDesc}):null]}),(0,b.jsx)(w.zF,{keepDOM:!0,isOpen:t,children:(0,b.jsx)("div",{className:_()("w-full h-full",i?"":"pl-[18px]"),children:a})})]})},rb=e=>{var r,a,{groupInfo:o,readonly:t=!0,validateExistKeyword:n=!1,onVariableChange:i}=e,d=rf(o);return(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(rp,{groupInfo:o,children:[(0,b.jsx)(rg,{hideHeaderKeys:d}),(0,b.jsx)("div",{className:"pl-6",children:null===(r=o.subGroupList)||void 0===r?void 0:r.map(e=>{var r;return(0,b.jsx)(rp,{groupInfo:e,level:1,children:(0,b.jsx)(rv,{hideHeaderKeys:d,groupId:o.groupId,value:null!==(r=e.varInfoList)&&void 0!==r?r:[],readonly:t,channel:e.channel,validateExistKeyword:n,onChange:i})})})}),(0,b.jsx)("div",{className:"flex flex-col pl-6",children:(0,b.jsx)(rv,{hideHeaderKeys:d,groupId:o.groupId,value:null!==(a=o.varInfoList)&&void 0!==a?a:[],readonly:t,channel:o.channel,validateExistKeyword:n,onChange:i})})]})})};function rm(){return(rm=(0,N._)(function*(e){var{getAllRootVariables:r,getDtoVariable:a}=ei.getState();0===(yield L.v6.UpdateProjectVariable({ProjectID:e,VariableList:r().map(e=>a(e))})).code&&w.FN.success(I.o.t("Update_success"))})).apply(this,arguments)}var rh=e=>"string"==typeof e&&e.length>0,ry=a("581997"),rx="coze-home-session-area-hidden-key",rk=e=>{var[r,a]=(0,m.useState)(r_(e));return{isSessionHidden:r,hideSession:()=>{if(!r_(e)){var r=ry.D.getValue(rx)||"";ry.D.setValue(rx,r?"".concat(r,",").concat(e):e),a(!0)}}}},r_=e=>{var r=ry.D.getValue(rx);return null==r?void 0:r.includes(e)},rj=()=>{var[e,r]=(0,m.useState)(!1),{isSessionHidden:a,hideSession:o}=rk("variable_config_change_banner_remind");return{isShowBanner:e&&!a,showBanner:()=>{r(!0)},hideBanner:()=>{r(!1)},hideBannerForever:()=>{o(),r(!1)}}},rI=e=>{var r,{projectID:a,version:o}=e,t=(0,m.useRef)(null),{loading:n}=ec(a,o);ev();var{setHasUnsavedChanges:i,hasUnsavedChanges:d}=el(),{variableGroups:l,canEdit:s,saveHistory:c,getAllVariables:u}=ei((0,H.N)(e=>({variableGroups:e.variableGroups,canEdit:e.canEdit,saveHistory:e.saveHistory,getAllVariables:e.getAllVariables}))),{isShowBanner:v,showBanner:g,hideBanner:f,hideBannerForever:p}=rj(),h=!l.length,y=e=>{var r;i(!0),(null===(r=e.meta)||void 0===r?void 0:r.isHistory)&&g()};var x=(r=(0,N._)(function*(){if(!rh(a))return;var e=t.current;if(!!e&&!!(yield e.validate()))c(),yield function(e){return rm.apply(this,arguments)}(a),i(!1)}),function(){return r.apply(this,arguments)}),k=u().reduce((e,r)=>(e[r.variableId]={name:r.name},e),{});return(0,m.useEffect)(()=>{var e;if(!n)null===(e=t.current)||void 0===e||e.setValues(k)},[n,k]),(0,b.jsx)(eg.Provider,{value:{variablePageCanEdit:s,groups:l},children:(0,b.jsx)("div",{className:"p-4 pb-[72px]",children:n?(0,b.jsx)("div",{className:"w-full h-full flex justify-center items-center",children:(0,b.jsx)(w.yC,{})}):h?(0,b.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,b.jsx)(w.HY,{image:(0,b.jsx)(O.ts,{className:"w-[140px] h-[140px]"}),title:I.o.t("card_builder_varpanel_var_empty")})}):(0,b.jsxs)(b.Fragment,{children:[v?(0,b.jsxs)("div",{className:"h-[36px] flex items-center justify-center coz-mg-hglt coz-fg-primary text-sm mb-4 mt-[-16px] mx-[-16px]",children:[(0,b.jsx)("div",{className:"flex items-center ml-auto",children:I.o.t("variable_config_change_banner")}),(0,b.jsxs)("div",{className:"flex items-center ml-auto cursor-pointer",children:[(0,b.jsx)("div",{className:"coz-fg-secondary text-xs",onClick:p,children:I.o.t("do_not_remind_again")}),(0,b.jsx)(w.hU,{className:"ml-2 !bg-transparent",onClick:f,icon:(0,b.jsx)(E.rmE,{})})]})]}):null,(0,b.jsx)(w.l0,{getFormApi:e=>{t.current=e},showValidateIcon:!1,autoScrollToError:!0,initValues:k,children:(0,b.jsx)("div",{className:"flex flex-col gap-2",children:l.map(e=>(0,b.jsx)(rb,{readonly:!s||e.isReadOnly,groupInfo:e,onVariableChange:y,validateExistKeyword:e.channel===T.Qi.APP}))})}),(0,b.jsx)("div",{className:_()("flex items-center justify-end","fixed bottom-[1px] right-[1px] left-[1px] pb-4 pt-6","bg-white mr-4 px-4"),children:(0,b.jsx)(w.zx,{onClick:x,disabled:!s||!d,children:I.o.t("edit_variables_modal_ok_text")})})]})})})},rw=()=>{var{projectID:e="",version:r}=(0,j.kF)();return(0,b.jsx)("div",{className:_()("h-full w-full overflow-hidden","border border-solid coz-stroke-primary coz-bg-max"),children:(0,b.jsxs)(w.nj,{lazyRender:!0,type:"text",className:_()("h-full flex flex-col","[&_.semi-tabs-content]:p-0 [&_.semi-tabs-content]:grow [&_.semi-tabs-content]:overflow-hidden","[&_.semi-tabs-pane-active]:h-full","[&_.semi-tabs-pane-motion-overlay]:h-full [&_.semi-tabs-pane-motion-overlay]:overflow-auto"),tabBarClassName:"flex items-center h-[56px] mx-[16px]",children:[(0,b.jsx)(w.Jm,{tab:I.o.t("db_optimize_033"),itemKey:"config",children:(0,b.jsx)(rI,{projectID:e,version:r})}),(0,b.jsx)(w.Jm,{tab:I.o.t("variable_Tabname_test_data"),itemKey:"values",children:(0,b.jsx)(G,{projectID:e,version:r})})]})})},rN=()=>{var e,r=(0,x.d0)(),{widget:a}=(0,x.BX)(),o=(0,x.vp)(),{version:t}=(0,x.jo)(),{uri:n}=(0,x.BX)(),i=null!==(e=null==n?void 0:n.path.name)&&void 0!==e?e:"";return(0,m.useEffect)(()=>{a.setTitle(I.o.t("dataide002")),a.setUIState("normal")},[]),(0,b.jsx)(j.S9,{params:{version:t,projectID:o,datasetID:i,biz:"project"},resourceNavigate:{toResource:(e,a,o,t)=>r("/".concat(e,"/").concat(a,"?").concat(y().stringify(o)),t),upload:(e,a)=>r("/knowledge/".concat(i,"?module=upload&").concat(y().stringify(e)),a),navigateTo:r},children:(0,b.jsx)(rw,{})})}},954797:function(e,r,a){var o=a(125161),t=a.n(o),n=a(404442),i=a.n(n)()(t());i.push([e.id,".light-X4nr3q .monaco-editor{--vscode-foreground:#616161;--vscode-disabledForeground:rgba(97,97,97,.5);--vscode-errorForeground:#a1260d;--vscode-descriptionForeground:#717171;--vscode-icon-foreground:#424242;--vscode-focusBorder:#0090f1;--vscode-textSeparator-foreground:rgba(0,0,0,.18);--vscode-textLink-foreground:#006ab1;--vscode-textLink-activeForeground:#006ab1;--vscode-textPreformat-foreground:#a31515;--vscode-textBlockQuote-background:rgba(127,127,127,.1);--vscode-textBlockQuote-border:rgba(0,122,204,.5);--vscode-textCodeBlock-background:rgba(220,220,220,.4);--vscode-widget-shadow:rgba(0,0,0,.16);--vscode-input-background:#fff;--vscode-input-foreground:#616161;--vscode-inputOption-activeBorder:#007acc;--vscode-inputOption-hoverBackground:rgba(184,184,184,.31);--vscode-inputOption-activeBackground:rgba(0,144,241,.2);--vscode-inputOption-activeForeground:#000;--vscode-input-placeholderForeground:rgba(97,97,97,.5);--vscode-inputValidation-infoBackground:#d6ecf2;--vscode-inputValidation-infoBorder:#007acc;--vscode-inputValidation-warningBackground:#f6f5d2;--vscode-inputValidation-warningBorder:#b89500;--vscode-inputValidation-errorBackground:#f2dede;--vscode-inputValidation-errorBorder:#be1100;--vscode-dropdown-background:#fff;--vscode-dropdown-foreground:#616161;--vscode-dropdown-border:#cecece;--vscode-button-foreground:#fff;--vscode-button-separator:rgba(255,255,255,.4);--vscode-button-background:#007acc;--vscode-button-hoverBackground:#0062a3;--vscode-button-secondaryForeground:#fff;--vscode-button-secondaryBackground:#5f6a79;--vscode-button-secondaryHoverBackground:#4c5561;--vscode-badge-background:#c4c4c4;--vscode-badge-foreground:#333;--vscode-scrollbar-shadow:#ddd;--vscode-scrollbarSlider-background:rgba(100,100,100,.4);--vscode-scrollbarSlider-hoverBackground:rgba(100,100,100,.7);--vscode-scrollbarSlider-activeBackground:rgba(0,0,0,.6);--vscode-progressBar-background:#0e70c0;--vscode-editorError-foreground:#e51400;--vscode-editorWarning-foreground:#bf8803;--vscode-editorInfo-foreground:#1a85ff;--vscode-editorHint-foreground:#6c6c6c;--vscode-sash-hoverBorder:#0090f1;--vscode-editor-background:#fffffe;--vscode-editor-foreground:#000;--vscode-editorStickyScroll-background:#fffffe;--vscode-editorStickyScrollHover-background:#f0f0f0;--vscode-editorWidget-background:#f3f3f3;--vscode-editorWidget-foreground:#616161;--vscode-editorWidget-border:#c8c8c8;--vscode-quickInput-background:#f3f3f3;--vscode-quickInput-foreground:#616161;--vscode-quickInputTitle-background:rgba(0,0,0,.06);--vscode-pickerGroup-foreground:#0066bf;--vscode-pickerGroup-border:#cccedb;--vscode-keybindingLabel-background:rgba(221,221,221,.4);--vscode-keybindingLabel-foreground:#555;--vscode-keybindingLabel-border:rgba(204,204,204,.4);--vscode-keybindingLabel-bottomBorder:rgba(187,187,187,.4);--vscode-editor-selectionBackground:#add6ff;--vscode-editor-inactiveSelectionBackground:#e5ebf1;--vscode-editor-selectionHighlightBackground:rgba(173,214,255,.3);--vscode-editor-findMatchBackground:#a8ac94;--vscode-editor-findMatchHighlightBackground:rgba(234,92,0,.33);--vscode-editor-findRangeHighlightBackground:rgba(180,180,180,.3);--vscode-searchEditor-findMatchBackground:rgba(234,92,0,.22);--vscode-search-resultsInfoForeground:#616161;--vscode-editor-hoverHighlightBackground:rgba(173,214,255,.15);--vscode-editorHoverWidget-background:#f3f3f3;--vscode-editorHoverWidget-foreground:#616161;--vscode-editorHoverWidget-border:#c8c8c8;--vscode-editorHoverWidget-statusBarBackground:#e7e7e7;--vscode-editorLink-activeForeground:#00f;--vscode-editorInlayHint-foreground:#969696;--vscode-editorInlayHint-background:rgba(196,196,196,.1);--vscode-editorInlayHint-typeForeground:#969696;--vscode-editorInlayHint-typeBackground:rgba(196,196,196,.1);--vscode-editorInlayHint-parameterForeground:#969696;--vscode-editorInlayHint-parameterBackground:rgba(196,196,196,.1);--vscode-editorLightBulb-foreground:#ddb100;--vscode-editorLightBulbAutoFix-foreground:#007acc;--vscode-diffEditor-insertedTextBackground:rgba(156,204,44,.25);--vscode-diffEditor-removedTextBackground:rgba(255,0,0,.2);--vscode-diffEditor-insertedLineBackground:rgba(155,185,85,.2);--vscode-diffEditor-removedLineBackground:rgba(255,0,0,.2);--vscode-diffEditor-diagonalFill:rgba(34,34,34,.2);--vscode-diffEditor-unchangedRegionBackground:#e4e4e4;--vscode-diffEditor-unchangedRegionForeground:#4d4c4c;--vscode-diffEditor-unchangedCodeBackground:rgba(184,184,184,.16);--vscode-list-focusOutline:#0090f1;--vscode-list-activeSelectionBackground:#0060c0;--vscode-list-activeSelectionForeground:#fff;--vscode-list-inactiveSelectionBackground:#e4e6f1;--vscode-list-hoverBackground:#f0f0f0;--vscode-list-dropBackground:#d6ebff;--vscode-list-highlightForeground:#0066bf;--vscode-list-focusHighlightForeground:#bbe7ff;--vscode-list-invalidItemForeground:#b89500;--vscode-list-errorForeground:#b01011;--vscode-list-warningForeground:#855f00;--vscode-listFilterWidget-background:#f3f3f3;--vscode-listFilterWidget-outline:transparent;--vscode-listFilterWidget-noMatchesOutline:#be1100;--vscode-listFilterWidget-shadow:rgba(0,0,0,.16);--vscode-list-filterMatchBackground:rgba(234,92,0,.33);--vscode-tree-indentGuidesStroke:#a9a9a9;--vscode-tree-inactiveIndentGuidesStroke:rgba(169,169,169,.4);--vscode-tree-tableColumnsBorder:rgba(97,97,97,.13);--vscode-tree-tableOddRowsBackground:rgba(97,97,97,.04);--vscode-list-deemphasizedForeground:#8e8e90;--vscode-checkbox-background:#fff;--vscode-checkbox-selectBackground:#f3f3f3;--vscode-checkbox-foreground:#616161;--vscode-checkbox-border:#cecece;--vscode-checkbox-selectBorder:#424242;--vscode-quickInputList-focusForeground:#fff;--vscode-quickInputList-focusBackground:#0060c0;--vscode-menu-foreground:#616161;--vscode-menu-background:#fff;--vscode-menu-selectionForeground:#fff;--vscode-menu-selectionBackground:#0060c0;--vscode-menu-separatorBackground:#d4d4d4;--vscode-toolbar-hoverBackground:rgba(184,184,184,.31);--vscode-toolbar-activeBackground:rgba(166,166,166,.31);--vscode-editor-snippetTabstopHighlightBackground:rgba(10,50,100,.2);--vscode-editor-snippetFinalTabstopHighlightBorder:rgba(10,50,100,.5);--vscode-breadcrumb-foreground:rgba(97,97,97,.8);--vscode-breadcrumb-background:#fffffe;--vscode-breadcrumb-focusForeground:#4e4e4e;--vscode-breadcrumb-activeSelectionForeground:#4e4e4e;--vscode-breadcrumbPicker-background:#f3f3f3;--vscode-merge-currentHeaderBackground:rgba(64,200,174,.5);--vscode-merge-currentContentBackground:rgba(64,200,174,.2);--vscode-merge-incomingHeaderBackground:rgba(64,166,255,.5);--vscode-merge-incomingContentBackground:rgba(64,166,255,.2);--vscode-merge-commonHeaderBackground:rgba(96,96,96,.4);--vscode-merge-commonContentBackground:rgba(96,96,96,.16);--vscode-editorOverviewRuler-currentContentForeground:rgba(64,200,174,.5);--vscode-editorOverviewRuler-incomingContentForeground:rgba(64,166,255,.5);--vscode-editorOverviewRuler-commonContentForeground:rgba(96,96,96,.4);--vscode-editorOverviewRuler-findMatchForeground:rgba(209,134,22,.49);--vscode-editorOverviewRuler-selectionHighlightForeground:rgba(160,160,160,.8);--vscode-minimap-findMatchHighlight:#d18616;--vscode-minimap-selectionOccurrenceHighlight:#c9c9c9;--vscode-minimap-selectionHighlight:#add6ff;--vscode-minimap-errorHighlight:rgba(255,18,18,.7);--vscode-minimap-warningHighlight:#bf8803;--vscode-minimap-foregroundOpacity:#000;--vscode-minimapSlider-background:rgba(100,100,100,.2);--vscode-minimapSlider-hoverBackground:rgba(100,100,100,.35);--vscode-minimapSlider-activeBackground:rgba(0,0,0,.3);--vscode-problemsErrorIcon-foreground:#e51400;--vscode-problemsWarningIcon-foreground:#bf8803;--vscode-problemsInfoIcon-foreground:#1a85ff;--vscode-charts-foreground:#616161;--vscode-charts-lines:rgba(97,97,97,.5);--vscode-charts-red:#e51400;--vscode-charts-blue:#1a85ff;--vscode-charts-yellow:#bf8803;--vscode-charts-orange:#d18616;--vscode-charts-green:#388a34;--vscode-charts-purple:#652d90;--vscode-diffEditor-move-border:rgba(139,139,139,.61);--vscode-diffEditor-moveActive-border:orange;--vscode-symbolIcon-arrayForeground:#616161;--vscode-symbolIcon-booleanForeground:#616161;--vscode-symbolIcon-classForeground:#d67e00;--vscode-symbolIcon-colorForeground:#616161;--vscode-symbolIcon-constantForeground:#616161;--vscode-symbolIcon-constructorForeground:#652d90;--vscode-symbolIcon-enumeratorForeground:#d67e00;--vscode-symbolIcon-enumeratorMemberForeground:#007acc;--vscode-symbolIcon-eventForeground:#d67e00;--vscode-symbolIcon-fieldForeground:#007acc;--vscode-symbolIcon-fileForeground:#616161;--vscode-symbolIcon-folderForeground:#616161;--vscode-symbolIcon-functionForeground:#652d90;--vscode-symbolIcon-interfaceForeground:#007acc;--vscode-symbolIcon-keyForeground:#616161;--vscode-symbolIcon-keywordForeground:#616161;--vscode-symbolIcon-methodForeground:#652d90;--vscode-symbolIcon-moduleForeground:#616161;--vscode-symbolIcon-namespaceForeground:#616161;--vscode-symbolIcon-nullForeground:#616161;--vscode-symbolIcon-numberForeground:#616161;--vscode-symbolIcon-objectForeground:#616161;--vscode-symbolIcon-operatorForeground:#616161;--vscode-symbolIcon-packageForeground:#616161;--vscode-symbolIcon-propertyForeground:#616161;--vscode-symbolIcon-referenceForeground:#616161;--vscode-symbolIcon-snippetForeground:#616161;--vscode-symbolIcon-stringForeground:#616161;--vscode-symbolIcon-structForeground:#616161;--vscode-symbolIcon-textForeground:#616161;--vscode-symbolIcon-typeParameterForeground:#616161;--vscode-symbolIcon-unitForeground:#616161;--vscode-symbolIcon-variableForeground:#007acc;--vscode-actionBar-toggledBackground:rgba(0,144,241,.2);--vscode-editor-lineHighlightBorder:#eee;--vscode-editor-rangeHighlightBackground:rgba(253,255,0,.2);--vscode-editor-symbolHighlightBackground:rgba(234,92,0,.33);--vscode-editorCursor-foreground:#000;--vscode-editorWhitespace-foreground:rgba(51,51,51,.2);--vscode-editorLineNumber-foreground:#237893;--vscode-editorIndentGuide-background:rgba(51,51,51,.2);--vscode-editorIndentGuide-activeBackground:rgba(51,51,51,.2);--vscode-editorIndentGuide-background1:#d3d3d3;--vscode-editorIndentGuide-background2:transparent;--vscode-editorIndentGuide-background3:transparent;--vscode-editorIndentGuide-background4:transparent;--vscode-editorIndentGuide-background5:transparent;--vscode-editorIndentGuide-background6:transparent;--vscode-editorIndentGuide-activeBackground1:#939393;--vscode-editorIndentGuide-activeBackground2:transparent;--vscode-editorIndentGuide-activeBackground3:transparent;--vscode-editorIndentGuide-activeBackground4:transparent;--vscode-editorIndentGuide-activeBackground5:transparent;--vscode-editorIndentGuide-activeBackground6:transparent;--vscode-editorActiveLineNumber-foreground:#0b216f;--vscode-editorLineNumber-activeForeground:#0b216f;--vscode-editorRuler-foreground:#d3d3d3;--vscode-editorCodeLens-foreground:#919191;--vscode-editorBracketMatch-background:rgba(0,100,0,.1);--vscode-editorBracketMatch-border:#b9b9b9;--vscode-editorOverviewRuler-border:rgba(127,127,127,.3);--vscode-editorGutter-background:#fffffe;--vscode-editorUnnecessaryCode-opacity:rgba(0,0,0,.47);--vscode-editorGhostText-foreground:rgba(0,0,0,.47);--vscode-editorOverviewRuler-rangeHighlightForeground:rgba(0,122,204,.6);--vscode-editorOverviewRuler-errorForeground:rgba(255,18,18,.7);--vscode-editorOverviewRuler-warningForeground:#bf8803;--vscode-editorOverviewRuler-infoForeground:#1a85ff;--vscode-editorBracketHighlight-foreground1:#0431fa;--vscode-editorBracketHighlight-foreground2:#319331;--vscode-editorBracketHighlight-foreground3:#7b3814;--vscode-editorBracketHighlight-foreground4:transparent;--vscode-editorBracketHighlight-foreground5:transparent;--vscode-editorBracketHighlight-foreground6:transparent;--vscode-editorBracketHighlight-unexpectedBracket-foreground:rgba(255,18,18,.8);--vscode-editorBracketPairGuide-background1:transparent;--vscode-editorBracketPairGuide-background2:transparent;--vscode-editorBracketPairGuide-background3:transparent;--vscode-editorBracketPairGuide-background4:transparent;--vscode-editorBracketPairGuide-background5:transparent;--vscode-editorBracketPairGuide-background6:transparent;--vscode-editorBracketPairGuide-activeBackground1:transparent;--vscode-editorBracketPairGuide-activeBackground2:transparent;--vscode-editorBracketPairGuide-activeBackground3:transparent;--vscode-editorBracketPairGuide-activeBackground4:transparent;--vscode-editorBracketPairGuide-activeBackground5:transparent;--vscode-editorBracketPairGuide-activeBackground6:transparent;--vscode-editorUnicodeHighlight-border:#cea33d;--vscode-editorUnicodeHighlight-background:rgba(206,163,61,.08);--vscode-editorOverviewRuler-bracketMatchForeground:#a0a0a0;--vscode-editor-linkedEditingBackground:rgba(255,0,0,.3);--vscode-editor-wordHighlightBackground:rgba(87,87,87,.25);--vscode-editor-wordHighlightStrongBackground:rgba(14,99,156,.25);--vscode-editor-wordHighlightTextBackground:rgba(87,87,87,.25);--vscode-editorOverviewRuler-wordHighlightForeground:rgba(160,160,160,.8);--vscode-editorOverviewRuler-wordHighlightStrongForeground:rgba(192,160,192,.8);--vscode-editorOverviewRuler-wordHighlightTextForeground:rgba(160,160,160,.8);--vscode-peekViewTitle-background:#f3f3f3;--vscode-peekViewTitleLabel-foreground:#000;--vscode-peekViewTitleDescription-foreground:#616161;--vscode-peekView-border:#1a85ff;--vscode-peekViewResult-background:#f3f3f3;--vscode-peekViewResult-lineForeground:#646465;--vscode-peekViewResult-fileForeground:#1e1e1e;--vscode-peekViewResult-selectionBackground:rgba(51,153,255,.2);--vscode-peekViewResult-selectionForeground:#6c6c6c;--vscode-peekViewEditor-background:#f2f8fc;--vscode-peekViewEditorGutter-background:#f2f8fc;--vscode-peekViewEditorStickyScroll-background:#f2f8fc;--vscode-peekViewResult-matchHighlightBackground:rgba(234,92,0,.3);--vscode-peekViewEditor-matchHighlightBackground:rgba(245,216,2,.87);--vscode-editorMarkerNavigationError-background:#e51400;--vscode-editorMarkerNavigationError-headerBackground:rgba(229,20,0,.1);--vscode-editorMarkerNavigationWarning-background:#bf8803;--vscode-editorMarkerNavigationWarning-headerBackground:rgba(191,136,3,.1);--vscode-editorMarkerNavigationInfo-background:#1a85ff;--vscode-editorMarkerNavigationInfo-headerBackground:rgba(26,133,255,.1);--vscode-editorMarkerNavigation-background:#fffffe;--vscode-editorHoverWidget-highlightForeground:#0066bf;--vscode-editorSuggestWidget-background:#f3f3f3;--vscode-editorSuggestWidget-border:#c8c8c8;--vscode-editorSuggestWidget-foreground:#000;--vscode-editorSuggestWidget-selectedForeground:#fff;--vscode-editorSuggestWidget-selectedBackground:#0060c0;--vscode-editorSuggestWidget-highlightForeground:#0066bf;--vscode-editorSuggestWidget-focusHighlightForeground:#bbe7ff;--vscode-editorSuggestWidgetStatus-foreground:rgba(0,0,0,.5);--vscode-editor-foldBackground:rgba(173,214,255,.3);--vscode-editorGutter-foldingControlForeground:#424242;background-color:#fff}.light-X4nr3q .monaco-editor .bracket-highlighting-0{color:#d5a00d}.light-X4nr3q .monaco-editor .bracket-highlighting-1{color:#8140e3}.light-X4nr3q .monaco-editor .mtk1{color:#000}.light-X4nr3q .monaco-editor .lines-content .core-guide-indent{box-shadow:1px 0 transparent!important}.light-X4nr3q .monaco-editor .lines-content .core-guide-indent.indent-active{box-shadow:1px 0 transparent!important}.light-X4nr3q .monaco-editor .line-numbers{color:#a7a7b0}.light-X4nr3q .monaco-editor .marker-widget{background-color:#fff!important}.light-X4nr3q .monaco-editor .find-widget{color:#000;background-color:#fff}.light-X4nr3q .monaco-editor .find-widget .monaco-sash{background-color:#fff}.light-X4nr3q .monaco-editor .find-widget .button:not(.disabled):hover{background-color:#f8f8f8!important}.light-X4nr3q .monaco-editor .find-widget .monaco-editor .find-widget .codicon-find-selection:hover{background-color:#f8f8f8!important}.light-X4nr3q .monaco-editor .find-widget .monaco-inputbox{border:1px solid #e4e3e4!important}",""]),i.locals={light:"light-X4nr3q"},r.Z=i}}]);
//# sourceMappingURL=6809.1319df31.js.map