aibox-custom-component-packages 0.0.7 → 0.0.8
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/es/AddOrEditSupplierDialog.mjs +309 -259
- package/es/ApplicationTypeTag.mjs +14 -14
- package/es/AuthSection.mjs +11 -11
- package/es/AutoShowTooltip.mjs +1 -1
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +9 -5
- package/es/CodeView.mjs +1 -1
- package/es/CommonTagsList.mjs +5 -5
- package/es/CreateMcpForm.mjs +13 -12
- package/es/CustomSidebar.mjs +159 -154
- package/es/CustomTitle.mjs +1 -1
- package/es/CustomToggle.mjs +131 -77
- package/es/DocSyncSelect.mjs +2661 -0
- package/es/FileDisplay.mjs +2 -4
- package/es/FilePreview.mjs +16 -16
- package/es/FileUploader.mjs +71 -74
- package/es/Logo.mjs +72 -0
- package/es/McpFormDialog.mjs +1 -1
- package/es/McpParamsSet.mjs +34 -34
- package/es/MdEditor.mjs +2 -2
- package/es/PageContainer.mjs +438 -216
- package/es/ParameterTable.mjs +23 -21
- package/es/PublishRecord.mjs +58 -57
- package/es/RadioGroup.mjs +1 -1
- package/es/SourcePublish.mjs +95 -93
- package/es/Table.mjs +2 -2
- package/es/assets/AddOrEditSupplierDialog.css +1 -1
- package/es/assets/AiboxTable.css +1 -1
- package/es/assets/ApplicationTypeTag.css +1 -1
- package/es/assets/AuthSection.css +1 -1
- package/es/assets/AutoShowTooltip.css +1 -1
- package/es/assets/CommonTagsList.css +1 -1
- package/es/assets/CreateMcpForm.css +1 -1
- package/es/assets/CustomSidebar.css +1 -1
- package/es/assets/CustomToggle.css +1 -1
- package/es/assets/DocSyncSelect.css +1 -0
- package/es/assets/FilePreview.css +1 -1
- package/es/assets/Logo.css +1 -0
- package/es/assets/McpParamsSet.css +1 -1
- package/es/assets/MdEditor.css +1 -1
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/ParameterTable.css +1 -1
- package/es/assets/PublishRecord.css +1 -1
- package/es/assets/RadioGroup.css +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/index.css +1 -1
- package/es/assets/index2.css +1 -1
- package/es/assets/index3.css +1 -1
- package/es/assets/index4.css +1 -1
- package/es/assets/layout.css +1 -1
- package/es/chunks/{BackBar.B5Er8ZdJ.js → AiboxTable.CF4T_OCu.js} +122 -122
- package/es/chunks/enums.WrpwbF4w.js +14 -0
- package/es/chunks/index.BDd6hHiU.js +172 -0
- package/es/chunks/{index.CLyfh6p1.js → index.CF_YHLP5.js} +16 -16
- package/es/chunks/index.DdD1VsH1.js +396 -0
- package/es/chunks/index.Dx-mCS4E.js +1298 -0
- package/es/chunks/layout.CygCXa6s.js +26 -0
- package/es/chunks/{usePreview.C36fNlVd.js → usePreview.BHvXwaNi.js} +82 -78
- package/es/index.mjs +409 -325
- package/index.css +1 -1
- package/lib/AddOrEditSupplierDialog.js +1 -1
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AuthSection.js +1 -1
- package/lib/AutoShowTooltip.js +1 -1
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CodeView.js +1 -1
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -1
- package/lib/CustomSidebar.js +1 -1
- package/lib/CustomTitle.js +1 -1
- package/lib/CustomToggle.js +1 -1
- package/lib/DocSyncSelect.js +2 -0
- package/lib/FileDisplay.js +1 -1
- package/lib/FilePreview.js +1 -1
- package/lib/FileUploader.js +1 -1
- package/lib/Logo.js +1 -0
- package/lib/McpFormDialog.js +1 -1
- package/lib/McpParamsSet.js +1 -1
- package/lib/MdEditor.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/ParameterTable.js +1 -1
- package/lib/PublishRecord.js +2 -2
- package/lib/RadioGroup.js +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -1
- package/lib/assets/AiboxTable.css +1 -1
- package/lib/assets/ApplicationTypeTag.css +1 -1
- package/lib/assets/AuthSection.css +1 -1
- package/lib/assets/AutoShowTooltip.css +1 -1
- package/lib/assets/CommonTagsList.css +1 -1
- package/lib/assets/CreateMcpForm.css +1 -1
- package/lib/assets/CustomSidebar.css +1 -1
- package/lib/assets/CustomToggle.css +1 -1
- package/lib/assets/DocSyncSelect.css +1 -0
- package/lib/assets/FilePreview.css +1 -1
- package/lib/assets/Logo.css +1 -0
- package/lib/assets/McpParamsSet.css +1 -1
- package/lib/assets/MdEditor.css +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/ParameterTable.css +1 -1
- package/lib/assets/PublishRecord.css +1 -1
- package/lib/assets/RadioGroup.css +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/index.css +1 -1
- package/lib/assets/index2.css +1 -1
- package/lib/assets/index3.css +1 -1
- package/lib/assets/index4.css +1 -1
- package/lib/assets/layout.css +1 -1
- package/lib/chunks/AiboxTable.CJOPGJtU.js +1 -0
- package/lib/chunks/enums.DpU2er5r.js +1 -0
- package/lib/chunks/index.BNivYbtq.js +1 -0
- package/lib/chunks/{index.DME62Yfo.js → index.B_keI1Aq.js} +1 -1
- package/lib/chunks/index.C7aZx6RG.js +6 -0
- package/lib/chunks/index.CJFk1R2u.js +59 -0
- package/lib/chunks/layout.DbBSbLgm.js +1 -0
- package/lib/chunks/usePreview.BojIDW7Z.js +1 -0
- package/lib/index.js +2 -1
- package/package.json +2 -2
- package/es/ExampleComponent.mjs +0 -35
- package/es/assets/BackBar.css +0 -1
- package/es/assets/ExampleComponent.css +0 -1
- package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
- package/es/chunks/BackBar.Cv1wxUcM.js +0 -645
- package/es/chunks/BackBar.DJV4JaUM.js +0 -645
- package/es/chunks/config.8htFF04x.js +0 -325
- package/es/chunks/config.BPp4hMBq.js +0 -325
- package/es/chunks/config.BU21Gda2.js +0 -49
- package/es/chunks/config.BzCGum_W.js +0 -49
- package/es/chunks/config.CFWGjEdA.js +0 -49
- package/es/chunks/config.CfWAdyUH.js +0 -325
- package/es/chunks/config.DTMcCH58.js +0 -325
- package/es/chunks/config.DqhQdkz7.js +0 -325
- package/es/chunks/enums.CfSBDD6u.js +0 -83
- package/es/chunks/enums.DuBbLcd-.js +0 -83
- package/es/chunks/i18n.DmqkiK-h.js +0 -444
- package/es/chunks/i18n.Vhq-tZPw.js +0 -94
- package/es/chunks/i18n.ro9yz7rE.js +0 -94
- package/es/chunks/index.BSA3IKSF.js +0 -111
- package/es/chunks/index.CgbxJCEU.js +0 -265
- package/es/chunks/index.CuDwuRO7.js +0 -265
- package/es/chunks/index.DB0ayMv8.js +0 -257
- package/es/chunks/index.DWR4lc30.js +0 -203
- package/es/chunks/index.GuEzdh6b.js +0 -257
- package/es/chunks/index.aMb6IVQD.js +0 -257
- package/es/chunks/index.ml5i7aB5.js +0 -257
- package/es/chunks/index.s-YxIOfq.js +0 -301
- package/es/chunks/index.uOZzvHrF.js +0 -135
- package/es/chunks/publish.BCb7nCo9.js +0 -50
- package/es/chunks/publish.D6friivo.js +0 -50
- package/es/chunks/publish.Dqzn7qEl.js +0 -50
- package/es/i18n.mjs +0 -17
- package/lib/ExampleComponent.js +0 -1
- package/lib/assets/BackBar.css +0 -1
- package/lib/assets/ExampleComponent.css +0 -1
- package/lib/chunks/BackBar.C8Xrc6qW.js +0 -1
- package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
- package/lib/chunks/BackBar.s5_vN6jt.js +0 -1
- package/lib/chunks/config.B0XKkp1w.js +0 -1
- package/lib/chunks/config.BCAuBVxV.js +0 -1
- package/lib/chunks/config.Bs7sh3aP.js +0 -1
- package/lib/chunks/config.C1w4hgfw.js +0 -1
- package/lib/chunks/config.ClERt2RF.js +0 -1
- package/lib/chunks/enums.Dmq4PdUc.js +0 -1
- package/lib/chunks/i18n.CL5L6nx6.js +0 -1
- package/lib/chunks/i18n.aAXi5igh.js +0 -1
- package/lib/chunks/index.BNqTEn3K.js +0 -1
- package/lib/chunks/index.BZcSlgOO.js +0 -1
- package/lib/chunks/index.Bk-RwmaH.js +0 -1
- package/lib/chunks/index.BsN4urmi.js +0 -1
- package/lib/chunks/index.D7wBInWr.js +0 -1
- package/lib/chunks/index.DWohILMv.js +0 -1
- package/lib/chunks/index.LK2ulXTE.js +0 -1
- package/lib/chunks/index.qDAoOzk9.js +0 -1
- package/lib/chunks/index.s8vGOJKG.js +0 -1
- package/lib/chunks/publish.Bw1acrSu.js +0 -1
- package/lib/chunks/publish.CA1uSVnm.js +0 -1
- package/lib/chunks/usePreview.E5SeS2uw.js +0 -1
- package/lib/i18n.js +0 -1
- /package/es/assets/{index6.css → legacy.css} +0 -0
- /package/lib/assets/{index6.css → legacy.css} +0 -0
package/lib/SourcePublish.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/SourcePublish.css');const re=require("./chunks/index.CkihWzK6.js"),e=require("vue"),B=require("./chunks/i18n.DgOp_D7R.js"),Y=require("vue-router"),r=require("element-plus"),H=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),Q=require("./chunks/publish.3TrK3fZf.js"),t=require("./chunks/config.BF7MO0O5.js"),ue=require("./AvailableRangeSetting.js"),Z=require("color-message-aibox-vue"),J=require("./chunks/AiboxTable.BnoHJ7xL.js"),w=require("color-star-custom-components"),ce=require("./chunks/config.1oaIKLGn.js"),de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbeSURBVHic7ZztbxRFHMc/s3vX60FrTynSAi09KIK0aJEY8I32pfFVeYeJ0fIn+BeAfwFvfOE7S2JijDH62kQD7yCK1CAF5OEOigWBwvHUe77xxXDpdXfnbndvr/V6+0muk5md/c3Od3/zsLvTgZCQ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Block("div",fe,[e.renderSlot(a.$slots,"default",{},void 0,!0)])}const z=H._export_sfc(Se,[["render",pe],["__scopeId","data-v-57d98e1c"]]),_e={},Te={class:"card-container"};function he(a,m){return e.openBlock(),e.createElementBlock("div",Te,[e.renderSlot(a.$slots,"default",{},void 0,!0)])}const j=H._export_sfc(_e,[["render",he],["__scopeId","data-v-639f8796"]]),ve={__name:"PublishIcon",props:{publishType:{type:[String,Number],default:""},size:{type:[String,Number],default:30}},setup(a){const m=a,_=Object.keys(t.CHANNEL_ICON_CONFIG).reduce((N,I)=>{const v=t.CHANNEL_ICON_CONFIG[I];return N[I]={...v,icon:e.shallowRef(v.icon)},N},{}),f=e.ref({});return e.onMounted(()=>{const N=t.PUBLISH_TYPE_ICON_MAPPING[m.publishType]||"h5";f.value=_[N]}),(N,I)=>(e.openBlock(),e.createElementBlock("div",{class:"channel-icon flex items-center justify-center radius-8",style:e.normalizeStyle({background:f.value?.backgroundColor})},[e.createVNode(e.unref(r.ElIcon),{size:a.size,color:f.value?.iconColor},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value?.icon)))]),_:1},8,["size","color"])],4))}},$=H._export_sfc(ve,[["__scopeId","data-v-cd6ad511"]]),Ce={class:"permission-setting"},Ae={key:1,class:"flex items-center gap-12 pd-t-16 pd-b-16"},Ne={class:"min-w-110 fz-14 text-left flex-shrink-0",style:{color:"var(--el-text-color-primary)"}},me={class:"flex items-center gap-6"},ye={class:"flex flex-col lh-18",style:{"align-items":"flex-start"}},Ie={class:"fz-12",style:{color:"var(--el-text-color-secondary)"}},ge={__name:"PermissionSetting",props:{showAvailableRange:{type:Boolean,default:!0},showPermissionSetting:{type:Boolean,default:!0},detail:{type:Object,default:()=>({})},authType:{type:String,default:""}},emits:["update:detail"],setup(a,{expose:m,emit:_}){const{t:f}=B.useI18n(),N=a,I=_,v=e.ref(null),T=C=>{const c={...N.detail,openStatus:C};I("update:detail",c)},b=C=>{const c={...N.detail,allVisible:C};I("update:detail",c)},y=C=>{const c={...N.detail,visibleScope:C};I("update:detail",c)};return m({validateVisibleRange:()=>{if(N.authType==="0")return{isValid:!0,data:{visibleScope:[],allVisible:!0,openStatus:1}};if(!N.showAvailableRange)return{isValid:!0,data:{openStatus:N.detail.openStatus??0}};if(!v.value)return{isValid:!0,data:null};const C=v.value.getSelectedItems();return C?.allVisible===void 0?(r.ElMessage.warning(f("MESSAGE_REMIND.SELECT_VISIBLE_RANGE")),{isValid:!1,data:null}):{isValid:!0,data:{...C,openStatus:N.detail.openStatus??0}}}}),(C,c)=>(e.openBlock(),e.createElementBlock("div",Ce,[a.showAvailableRange?(e.openBlock(),e.createBlock(e.unref(ue.AvailableRangeSetting),{key:0,"all-visible":a.detail.allVisible,"model-value":a.detail.visibleScope,class:e.normalizeClass(["pd-t-16",{"pd-b-16":!a.showPermissionSetting}]),ref_key:"availableRangeSettingRef",ref:v,"onUpdate:allVisible":b,"onUpdate:modelValue":y},null,8,["all-visible","model-value","class"])):e.createCommentVNode("",!0),a.showPermissionSetting?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",Ne,[c[0]||(c[0]=e.createElementVNode("span",{class:"mg-r-2",style:{color:"var(--el-color-danger)"}},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING"))+" ",1),e.createVNode(e.unref(r.ElTooltip),{content:e.unref(f)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{class:"mg-l-4",size:"14px"},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.IconTip))]),_:1})]),_:1},8,["content"])]),e.createElementVNode("div",me,[e.createVNode(e.unref(r.ElCheckbox),{"model-value":a.detail.openStatus,"onUpdate:modelValue":T,"true-value":e.unref(t.OPEN_STATUS_VALUE).TRUE,"false-value":e.unref(t.OPEN_STATUS_VALUE).FALSE,class:"mg-r-0"},{default:e.withCtx(()=>[e.createElementVNode("div",ye,e.toDisplayString(e.unref(f)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")),1)]),_:1},8,["model-value","true-value","false-value"]),e.createElementVNode("span",Ie,e.toDisplayString(e.unref(f)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")),1)])])):e.createCommentVNode("",!0)]))}},ee=H._export_sfc(ge,[["__scopeId","data-v-3adfc427"]]),te={__name:"FeishuTooltip",props:{channelType:{type:[String,Number],required:!0}},setup(a){const{t:m}=B.useI18n();return(_,f)=>a.channelType===e.unref(t.RELEASE_CHANNEL_TYPE).FEISHU_WEB?(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),{key:0,placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("SOURCE_PUBLISH.FEISHU_WEB_TOOLTIP")),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}},le={__name:"ApiTooltip",props:{channelType:{type:[String,Number],required:!0},isAuth:{type:Boolean,required:!0}},setup(a){const{t:m}=B.useI18n();return(_,f)=>e.unref(t.API_CHANNEL_TYPES).includes(a.channelType)?(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),{key:0,placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.isAuth?e.unref(m)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG")||"请先完成授权":e.unref(m)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG")||"调用需要创建访问凭证"),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}},Le={class:"publish-settings"},be={class:"channel-name flex items-center overflow-hidden w-full"},Re={class:"channel-title flex-1 overflow-hidden"},Pe={class:"channel-title__name"},Be={class:"channel-title__desc"},Ve={key:0,class:"expand-content"},Ue={class:"select-label"},Oe={class:"select-label"},He={class:"select-label"},ke={class:"action-container"},we={class:"select-label"},xe={__name:"PublishSettings",props:{modelValue:{type:Array,default:()=>[]},sourceType:{type:String,default:w.SOURCE_TYPE.AGENT},channelManagement:{type:Array,default:()=>[]},isBackendSystem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},authType:{type:String,default:""}},emits:["validateField","update:modelValue"],setup(a,{expose:m,emit:_}){const f=e.inject(t.STORE_DETAIL_TYPE),N=e.getCurrentInstance(),I=Y.useRouter();Y.useRoute();const v=_,T=a,{checkToken:b}=Q.getPublishApis(),y=e.ref(null),L=e.ref(null),C=e.ref(!1),c=e.ref(""),p=e.ref({}),{t:A}=B.useI18n(),x=e.ref([]),R=e.computed(()=>{const o=t.getChannelsByType(T.sourceType,T.channelManagement)||[];return T.isBackendSystem?o.filter(n=>n.channelType!=="3"):o}),D=o=>x.value?.find(n=>n.id===o.id)?.id?t.INACTIVE_ENUM.PUBLISHED:t.INACTIVE_ENUM.UNPUBLISHED,S={bakInt:[{required:!0,trigger:"change"}]},G=e.computed(()=>[{type:"selection",selectable:n=>T.disabled||n.id==t.RELEASE_CHANNEL_TYPE.AIBox?!1:t.API_CHANNEL_TYPES.includes(n.id)?C.value:!0,show:!T.isBackendSystem},{label:A("SOURCE_PUBLISH.PUBLISH_CHANNEL")||"发布渠道",prop:"name",slot:"name",show:!0},{type:"expand",prop:"expand",width:1,show:!0},{label:"",prop:"status",slot:"status",width:100,show:!T.isBackendSystem},{label:"",prop:"action",slot:"action",show:!0},{label:"",prop:"inActive",slot:"inActive",width:100,show:T.isBackendSystem}].filter(n=>n.show)),M=[{label:A("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1")||"专享服务",value:"PRIVATE"},{label:A("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2")||"开发者计算",value:"DEVELOPER"}],V=e.ref(!1),U=e.ref([]),k=o=>{if(x.value=o,V.value){V.value=!1,U.value=o,v("update:modelValue",o),v("validateField");return}const n=o.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB),s=o.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.H5),i=U.value.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB),se=U.value.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.H5),oe=n&&!i,ie=!s&&se;if(oe&&!s){const g=R.value.find(W=>W.id===t.RELEASE_CHANNEL_TYPE.H5);if(g){V.value=!0,r.ElMessage.warning(A("SOURCE_PUBLISH.FEISHU_H5_LINKAGE_SELECT")),e.nextTick(()=>{y.value?.handleToggleRowSelection(g,!0)});return}}if(ie&&n){const g=R.value.find(W=>W.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB);if(g){V.value=!0,r.ElMessage.warning(A("SOURCE_PUBLISH.H5_FEISHU_LINKAGE_DESELECT")),e.nextTick(()=>{y.value?.handleToggleRowSelection(g,!1)});return}}U.value=o,v("update:modelValue",o),v("validateField")},K=o=>{const n=D(o);y.value?.handleToggleRowSelection(o,n)},X=(o,n)=>{o.allVisible=n.allVisible,o.visibleScope=n.visibleScope,o.openStatus=n.openStatus},F=async()=>{const o=await b();C.value=o.data||!1},O=(o,n)=>{n&&(p.value.bakInt=n.bakInt,c.value=n.serviceType,l.value=n.currency);const s=R.value.filter(i=>o.includes(i.id));s.forEach(i=>{y.value?.handleToggleRowSelection(i,!0)}),e.nextTick(()=>{k(s)})},q=()=>"no-expand",E=()=>{I.push({name:"ApiManage"})},l=e.ref(""),d=e.ref([]),u=e.ref(!1);e.watch(()=>T.modelValue,o=>{const n=[];if(o&&o.find(s=>t.STORE_CHANNEL_TYPES.includes(s.id))){const s=o.find(i=>t.STORE_CHANNEL_TYPES.includes(i.id));s&&n.push(s.id),u.value=!0}else u.value=!1;o&&o.find(s=>s.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB)&&n.push(t.RELEASE_CHANNEL_TYPE.FEISHU_WEB),d.value=n},{immediate:!0,deep:!0});const P=o=>{const n=`permissionSettingRef_${o}`,s=N?.refs?.[n];if(s){const i=s.validateVisibleRange();return i.isValid?i.data:null}return null},h=async()=>L.value?(L.value.scrollToField("bakInt"),L.value.validate().catch(()=>(r.ElMessage.warning(A("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")),Promise.reject(!1)))):!0;return e.onMounted(()=>{F()}),m({get bakInt(){return p.value.bakInt},serviceType:c,currency:l,channels:R,categoryForm:p,handleToggleRowSelection:O,getVisibleRangeData:P,validateCategory:h}),(o,n)=>(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(J.AiboxTable,{columns:G.value,data:R.value,"on-row-key":s=>s.id,total:R.value.length,style:{width:"100%"},hasPage:!1,"show-handle-nums":1,onRowClassName:q,"expand-row-keys":d.value,"default-expand-all":!1,onOnMultiSelection:k,ref_key:"aiboxTableRef",ref:y},{name:e.withCtx(({row:s})=>[e.createElementVNode("div",be,[e.createVNode($,{"publish-type":s.id,size:24},null,8,["publish-type"]),e.createElementVNode("div",Re,[e.createElementVNode("p",Pe,[e.createTextVNode(e.toDisplayString(s.name(a.sourceType))+" ",1),e.createVNode(le,{"channel-type":s.id,"is-auth":C.value},null,8,["channel-type","is-auth"]),e.createVNode(te,{"channel-type":s.id},null,8,["channel-type"])]),e.createElementVNode("p",Be,e.toDisplayString(s.description),1)])])]),expand:e.withCtx(({row:s})=>[s.id===e.unref(t.RELEASE_CHANNEL_TYPE).PLUGIN_STORE?(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(e.unref(r.ElSelect),{modelValue:p.value.bakInt,"onUpdate:modelValue":n[0]||(n[0]=i=>p.value.bakInt=i),placeholder:e.unref(A)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"},disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",Ue,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),n[4]||(n[4]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),i=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"]),T.authType=="1"?(e.openBlock(),e.createBlock(e.unref(r.ElSelect),{key:0,modelValue:c.value,"onUpdate:modelValue":n[1]||(n[1]=i=>c.value=i),placeholder:e.unref(A)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"},disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",Oe,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.SERVICE_TYPE")||"服务类型"),1),n[5]||(n[5]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(M,i=>e.createVNode(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","disabled"])):e.createCommentVNode("",!0),c.value===o.q.CURRENCY?(e.openBlock(),e.createBlock(e.unref(r.ElInputNumber),{key:1,modelValue:l.value,"onUpdate:modelValue":n[2]||(n[2]=i=>l.value=i),precision:2,style:{width:"200px"},"controls-position":"right",disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",He,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CONSUME_VALUE")||"消费值"),1),n[6]||(n[6]=e.createElementVNode("div",{class:"divider"},null,-1))]),_:1},8,["modelValue","disabled"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),[e.unref(t.RELEASE_CHANNEL_TYPE).FEISHU_WEB,e.unref(t.RELEASE_CHANNEL_TYPE).AGENT_STORE,e.unref(t.RELEASE_CHANNEL_TYPE).MCP_STORE].includes(s.id)?(e.openBlock(),e.createBlock(ee,{key:1,"show-permission-setting":s.id===e.unref(t.RELEASE_CHANNEL_TYPE).MCP_STORE&&T.authType!=="0","show-available-range":T.authType!=="0","auth-type":T.authType,detail:s,ref:`permissionSettingRef_${s.id}`,"onUpdate:detail":i=>X(s,i)},null,8,["show-permission-setting","show-available-range","auth-type","detail","onUpdate:detail"])):e.createCommentVNode("",!0)]),status:e.withCtx(({row:s})=>[e.unref(t.AUTHORIZED_CHANNEL_TYPES).includes(s.id)?(e.openBlock(),e.createBlock(e.unref(r.ElTag),{key:0,type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权"),1)]),_:1})):e.unref(t.API_CHANNEL_TYPES).includes(s.id)?(e.openBlock(),e.createBlock(e.unref(r.ElTag),{key:1,type:C.value?"success":"info"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.value?e.unref(A)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权":e.unref(A)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS")||"未授权"),1)]),_:1},8,["type"])):e.createCommentVNode("",!0)]),inActive:e.withCtx(({row:s})=>[e.createVNode(e.unref(r.ElSelect),{"model-value":D(s),disabled:a.disabled,onChange:i=>K(s)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.INACTIVE_LIST),i=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["model-value","disabled","onChange"])]),action:e.withCtx(({row:s})=>[e.createElementVNode("div",ke,[e.unref(t.API_CHANNEL_TYPES).includes(s.id)&&!a.isBackendSystem?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,type:"primary",link:"",onClick:i=>E()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CONFIG")||"配置"),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(t.STORE_CHANNEL_TYPES).slice(0,3).includes(s.id)&&a.sourceType!=e.unref(w.SOURCE_TYPE).PLUGIN&&u.value?(e.openBlock(),e.createBlock(e.unref(r.ElForm),{key:1,ref_key:"categoryFormRef",ref:L,model:p.value,rules:S},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"bakInt"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSelect),{modelValue:p.value.bakInt,"onUpdate:modelValue":n[3]||(n[3]=i=>p.value.bakInt=i),placeholder:e.unref(A)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"150px"},disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",we,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),n[7]||(n[7]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),i=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["model"])):e.createCommentVNode("",!0)])]),_:1},8,["columns","data","on-row-key","total","expand-row-keys"])]))}},ae=H._export_sfc(xe,[["__scopeId","data-v-a56e8ff6"]]),De={class:"publish-container__back"},Fe={class:"publish-container__config"},Ye={class:"publish-container__config"},Ge={__name:"layout",props:{showPublishConfig:{type:Boolean,default:!0},propsSourceBnid:{type:String,default:""},propsSourceType:{type:String,default:""},propsAuthType:{type:String,default:""},businessSpace:{type:String,default:""},isBackendSystem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rowBnid:{type:String,default:""},isShowBack:{type:Boolean,default:!0},isRepublish:{type:Boolean,default:!1},isOfficialRelease:{type:Boolean,default:!1}},setup(a,{expose:m}){const _=e.ref(null),f=e.ref(null),N=Y.useRoute(),I=Y.useRouter(),v=e.ref(!1),T=e.ref(!1),b=e.ref(!1),y=e.ref(""),L=e.ref(""),C=e.ref(""),{t:c}=B.useI18n(),p=a,{sourcePublish:A,checkVersion:x,getPublishVersionDetail:R,sourceRePublish:D}=Q.getPublishApis(),S=e.ref({versionNumber:"0.0.1",selectedData:[],showExec:1}),G=e.ref({versionNumber:[{required:!0,message:c("SOURCE_PUBLISH.VERSION_NUMBER_MSG")||"请输入版本号",trigger:"blur"},{pattern:/^\d+\.\d+\.\d+$/,message:"版本号格式必须为数字.数字.数字,如:1.0.0",trigger:"blur"},{validator:async(E,l,d)=>{if(T.value)return;T.value=!0;const{data:u}=await x({sourceType:y.value,sourceId:L.value,versionNumber:S.value.versionNumber}).finally(()=>{T.value=!1});if(u){const P=c("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG")||"版本号已存在";d(new Error(P))}else d()},trigger:"blur"}],selectedData:[{required:!p.isBackendSystem,message:c("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道",trigger:"change"},{validator:(E,l,d)=>{if(S.value.selectedData.length===0){p.isBackendSystem&&d();const u=c("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道";d(new Error(u))}else d()},trigger:"change"}]}),M=()=>{f.value?.validateField("selectedData")},V=E=>{const l=E.replace(/[^0-9.]/g,""),d=l.split(".");d.length>3?S.value.versionNumber=d.slice(0,3).join("."):S.value.versionNumber=l},U=async()=>{k(()=>{const E=window.history.state;E&&I.replace({path:E.back,query:{active:"publish",from:N.query.from}})})},k=async E=>{const l=await X();if(!l)return;v.value=!0;const d=p.isRepublish?D:A;try{const{code:u}=await d(l);u===0&&typeof E=="function"&&E()}finally{v.value=!1}},K=E=>{O.value,O.value.forEach(l=>{E.find(u=>u.channelType===l.channelType)||E.push({channelType:l.channelType,inActive:0,allVisible:l.allVisible||!1,visibleScope:l.visibleScope||null})})},X=async()=>{if(await f.value.validate()){let l={};const d=[];for(const h of S.value.selectedData){const o={channelType:Number(h.id)},n=[t.RELEASE_CHANNEL_TYPE.FEISHU_WEB,t.RELEASE_CHANNEL_TYPE.AGENT_STORE,t.RELEASE_CHANNEL_TYPE.MCP_STORE],s=_.value.getVisibleRangeData(h.id);if(n.includes(h.id)&&!s)return!1;s&&Object.keys(s).length>0&&(o.visibleScope=s.visibleScope,o.allVisible=s.allVisible,o.openStatus=s.openStatus),p.isRepublish&&(o.inActive=1,o.visibleScope=s?.visibleScope||null,o.allVisible=s?.allVisible||!1),d.push(o)}if(p.isBackendSystem){const h=Number(t.RELEASE_CHANNEL_TYPE.AIBox);d.some(n=>n.channelType===h)||d.push({channelType:h})}p.isRepublish&&K(d),p.isRepublish?(d.forEach(h=>{h.visibleScope||(h.visibleScope=null),h.allVisible||(h.allVisible=!1),t.STORE_CHANNEL_TYPES.includes((h.channelType||"").toString())&&(h.bakInt=_.value.bakInt)}),l={channels:d,bnid:p.rowBnid,sourceType:y.value,sourceId:L.value,serviceType:"2"}):l={...S.value,channels:d,sourceType:y.value,sourceId:L.value,workspaceBnid:p.businessSpace||""},y.value==w.SOURCE_TYPE.WORKFLOW&&(l.forcePublish=!0);let u=!1;const P=S.value.selectedData.map(h=>h.id);if(u=P.find(h=>[t.RELEASE_CHANNEL_TYPE.AGENT_STORE,t.RELEASE_CHANNEL_TYPE.WORKFLOW_STORE,t.RELEASE_CHANNEL_TYPE.PLUGIN_STORE,t.RELEASE_CHANNEL_TYPE.MCP_STORE].includes(h)),u){if(await _.value?.validateCategory?.()===!1)return!1;if(l.bakInt=_.value.bakInt,P.includes(t.RELEASE_CHANNEL_TYPE.PLUGIN_STORE)&&C.value=="1"&&(l.serviceType=_.value.serviceType,!l.serviceType)){const o=c("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG")||"请选择服务类型";return r.ElMessage.warning(o),!1}}return l.official=p.isOfficialRelease,delete l.selectedData,l}else return console.log("error submit!"),!1},F=e.ref({}),O=e.ref([]),q=async()=>{b.value=!0;const{data:E}=await R(y.value,L.value);if(b.value=!1,E){const l=E.versionNumber.split(".");l.length===3?l[2]=parseInt(l[2])+1:l.push("1"),F.value=E,S.value.versionNumber=l.join("."),S.value.versionDesc=E.versionDesc,S.value.showExec=E.showExec,S.value.showKnowledge=E.showKnowledge,_.value&&(_.value.categoryForm.bakInt=E?.bakInt||"")}O.value=E?.channels||[],e.nextTick(()=>{let l=[];const d={};if(E?.channels.forEach(u=>{l.push(String(u.channelType)),(u.bakInt||u.bakInt==0)&&(d.bakInt=String(u.bakInt)),(u.serviceType||u.serviceType==0)&&(d.serviceType=String(u.serviceType)),(u.currency||u.currency==0)&&(d.currency=u.currency)}),l.length==0)y.value==w.SOURCE_TYPE.AGENT?l=[t.RELEASE_CHANNEL_TYPE.AGENT_STORE,t.RELEASE_CHANNEL_TYPE.AIBox]:l=[t.RELEASE_CHANNEL_TYPE.AIBox];else{const u=l.find(P=>P==t.RELEASE_CHANNEL_TYPE.AIBox);y.value==w.SOURCE_TYPE.AGENT&&!u&&l.push(t.RELEASE_CHANNEL_TYPE.AIBox)}_.value?.handleToggleRowSelection(l,d)})};return e.onMounted(()=>{y.value=p.propsSourceType,C.value=p.propsAuthType,L.value=p.propsSourceBnid,q()}),m({handleSourcePublish:k,publishData:F,submitLoading:v}),(E,l)=>{const d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["publish-container",a.isBackendSystem?"backend-system":""]),id:"source-publish-container"},[a.isBackendSystem?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J._sfc_main,{key:0,"back-bar-style":"#f7f8fa"},{default:e.withCtx(()=>[e.createElementVNode("div",De,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH")||"发布"),1),e.createVNode(e.unref(r.ElButton),{type:"primary",class:"publish-container__sure",onClick:U,loading:v.value,disabled:a.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.SURE_PUBLISH")||"确认发布"),1)]),_:1},8,["loading","disabled"])])]),_:1})),e.createVNode(e.unref(r.ElForm),{ref_key:"formRef",ref:f,model:S.value,"label-width":"80px",class:"publish-container__form",rules:G.value,"label-position":"top",disabled:a.disabled,onSubmit:l[5]||(l[5]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[a.isRepublish?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(z,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH_RECORD")||"发布记录"),1)]),_:1})),a.isRepublish?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j,{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{label:e.unref(c)("SOURCE_PUBLISH.VERSION_NUMBER")||"版本号",prop:"versionNumber"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:S.value.versionNumber,"onUpdate:modelValue":l[0]||(l[0]=u=>S.value.versionNumber=u),placeholder:e.unref(c)("SOURCE_PUBLISH.VERSION_PLACEHOLDER")||"版本示例:0.0.1",onInput:V},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(c)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述",prop:"versionDesc"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{type:"textarea",modelValue:S.value.versionDesc,"onUpdate:modelValue":l[1]||(l[1]=u=>S.value.versionDesc=u),rows:4,maxlength:"2000","show-word-limit":"",placeholder:e.unref(c)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})),a.showPublishConfig&&!a.isRepublish?(e.openBlock(),e.createBlock(z,{key:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH_CONFIG")||"发布配置"),1)]),_:1})):e.createCommentVNode("",!0),a.showPublishConfig&&!a.isRepublish?(e.openBlock(),e.createBlock(j,{key:3},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"showExec"},{default:e.withCtx(()=>[e.createElementVNode("div",Fe,[e.createElementVNode("p",null,[l[6]||(l[6]=e.createElementVNode("img",{src:de,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS")||"展示执行过程"),1)]),e.createVNode(e.unref(r.ElSwitch),{modelValue:S.value.showExec,"onUpdate:modelValue":l[2]||(l[2]=u=>S.value.showExec=u),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1}),e.createVNode(e.unref(r.ElFormItem),{prop:"showKnowledge"},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[e.createElementVNode("p",null,[l[7]||(l[7]=e.createElementVNode("img",{src:Ee,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE")||"展示召回的知识库内容"),1)]),e.createVNode(e.unref(r.ElSwitch),{modelValue:S.value.showKnowledge,"onUpdate:modelValue":l[3]||(l[3]=u=>S.value.showKnowledge=u),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1})]),_:1})):e.createCommentVNode("",!0),a.isRepublish?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(z,{key:4},{default:e.withCtx(()=>[l[8]||(l[8]=e.createElementVNode("span",{class:"publish-container__required"},"*",-1)),e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH_SETTING")||"发布设置"),1)]),_:1})),e.createVNode(j,null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"selectedData"},{default:e.withCtx(()=>[e.createVNode(ae,{ref_key:"publishSettingsRef",ref:_,"source-type":y.value,"channel-management":O.value,modelValue:S.value.selectedData,"onUpdate:modelValue":l[4]||(l[4]=u=>S.value.selectedData=u),"is-backend-system":a.isBackendSystem,disabled:a.disabled,"auth-type":C.value,onValidateField:M},null,8,["source-type","channel-management","modelValue","is-backend-system","disabled","auth-type"])]),_:1})]),_:1})]),_:1},8,["model","rules","disabled"])],2)),[[d,b.value]])}}},Me=H._export_sfc(Ge,[["__scopeId","data-v-d37f49c4"]]),Ke=()=>{const{t:a}=B.useI18n();return{serviceType:[{get label(){return a("COMMON_DICT.SERVICE_TYPE.PRIVATE")},value:t.serviceTypeMap.PRIVATE},{get label(){return a("COMMON_DICT.SERVICE_TYPE.DEVELOPER")},value:t.serviceTypeMap.DEVELOPER}],serviceStatus:[{get label(){return a("COMMON_DICT.SERVICE_STATUS.IN_CALL")},value:"IN_CALL"},{get label(){return a("COMMON_DICT.SERVICE_STATUS.NO_CONFIG")},value:"NO_CONFIG"}]}},Xe=()=>{const{getStoreDetailType:a}=Q.getPublishApis(),{t:m}=B.useI18n(),_=e.ref([]),f=e.ref([]);return{storeDetailType:_,allStoreDetailType:f,fetchStoreDetailType:async()=>{await a().then(I=>{const v=I?.data?.map(b=>({label:b.desc,value:String(b.code)})),T={value:"0",label:m("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")};_.value=v,f.value=[T,...v]})}}},ne=re.withInstall(Me);exports.API_CHANNEL_TYPES=t.API_CHANNEL_TYPES;exports.AUTHORIZED_CHANNEL_TYPES=t.AUTHORIZED_CHANNEL_TYPES;exports.CHANNEL_ICON_CONFIG=t.CHANNEL_ICON_CONFIG;exports.INACTIVE_ENUM=t.INACTIVE_ENUM;exports.INACTIVE_LIST=t.INACTIVE_LIST;exports.LIBRARY_PAGE=t.LIBRARY_PAGE;exports.OFFICIAL_LABEL=t.OFFICIAL_LABEL;exports.OPEN_STATUS_VALUE=t.OPEN_STATUS_VALUE;exports.PUBLISH_STATUS_COLORS=t.PUBLISH_STATUS_COLORS;exports.PUBLISH_STATUS_ICONS=t.PUBLISH_STATUS_ICONS;exports.PUBLISH_STATUS_TEXT=t.PUBLISH_STATUS_TEXT;exports.PUBLISH_STATUS_TYPE=t.PUBLISH_STATUS_TYPE;exports.PUBLISH_TYPE_ICON_MAPPING=t.PUBLISH_TYPE_ICON_MAPPING;exports.RELEASE_CHANNEL_CONFIG=t.RELEASE_CHANNEL_CONFIG;exports.RELEASE_CHANNEL_TYPE=t.RELEASE_CHANNEL_TYPE;exports.STORE_CHANNEL_TYPES=t.STORE_CHANNEL_TYPES;exports.STORE_DETAIL_TYPE=t.STORE_DETAIL_TYPE;exports.getChannelsByType=t.getChannelsByType;exports.serviceTypeMap=t.serviceTypeMap;exports.PUBLISH_STATUS=ce.PUBLISH_STATUS;exports.ApiTooltip=le;exports.FeishuTooltip=te;exports.PermissionSetting=ee;exports.PublishIcon=$;exports.PublishSettings=ae;exports.SourcePublish=ne;exports.default=ne;exports.useServiceConfig=Ke;exports.useStoreDetailType=Xe;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/SourcePublish.css');const re=require("./chunks/index.CkihWzK6.js"),e=require("vue"),B=require("./chunks/i18n.DgOp_D7R.js"),Y=require("vue-router"),r=require("element-plus"),H=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),Q=require("./chunks/publish.3TrK3fZf.js"),t=require("./chunks/config.BF7MO0O5.js"),ue=require("./AvailableRangeSetting.js"),Z=require("color-message-aibox-vue"),J=require("./chunks/AiboxTable.CJOPGJtU.js"),w=require("color-star-custom-components"),ce=require("./chunks/config.1oaIKLGn.js"),de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAbeSURBVHic7ZztbxRFHMc/s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f6vzxmVVT63Hp1S8E+IsNM+sJR6Hl4bI9m9Zuy1FIyIiIiIiIrzyPx3JLklkX69sAAAAAElFTkSuQmCC",Se={},fe={class:"style-title"};function pe(a,m){return e.openBlock(),e.createElementBlock("div",fe,[e.renderSlot(a.$slots,"default",{},void 0,!0)])}const z=H._export_sfc(Se,[["render",pe],["__scopeId","data-v-58195e4c"]]),_e={},Te={class:"card-container"};function he(a,m){return e.openBlock(),e.createElementBlock("div",Te,[e.renderSlot(a.$slots,"default",{},void 0,!0)])}const j=H._export_sfc(_e,[["render",he],["__scopeId","data-v-d8a76b28"]]),ve={__name:"PublishIcon",props:{publishType:{type:[String,Number],default:""},size:{type:[String,Number],default:30}},setup(a){const m=a,_=Object.keys(t.CHANNEL_ICON_CONFIG).reduce((N,I)=>{const v=t.CHANNEL_ICON_CONFIG[I];return N[I]={...v,icon:e.shallowRef(v.icon)},N},{}),p=e.ref({});return e.onMounted(()=>{const N=t.PUBLISH_TYPE_ICON_MAPPING[m.publishType]||"h5";p.value=_[N]}),(N,I)=>(e.openBlock(),e.createElementBlock("div",{class:"channel-icon flex items-center justify-center radius-8",style:e.normalizeStyle({background:p.value?.backgroundColor})},[e.createVNode(e.unref(r.ElIcon),{size:a.size,color:p.value?.iconColor},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.value?.icon)))]),_:1},8,["size","color"])],4))}},$=H._export_sfc(ve,[["__scopeId","data-v-197d4379"]]),Ce={class:"permission-setting"},Ae={key:1,class:"flex items-center gap-12 pd-t-16 pd-b-16"},Ne={class:"min-w-110 fz-14 text-left flex-shrink-0",style:{color:"var(--el-text-color-primary)"}},me={class:"flex items-center gap-6"},ye={class:"flex flex-col lh-18",style:{"align-items":"flex-start"}},Ie={class:"fz-12",style:{color:"var(--el-text-color-secondary)"}},ge={__name:"PermissionSetting",props:{showAvailableRange:{type:Boolean,default:!0},showPermissionSetting:{type:Boolean,default:!0},detail:{type:Object,default:()=>({})},authType:{type:String,default:""}},emits:["update:detail"],setup(a,{expose:m,emit:_}){const{t:p}=B.useI18n(),N=a,I=_,v=e.ref(null),T=C=>{const c={...N.detail,openStatus:C};I("update:detail",c)},L=C=>{const c={...N.detail,allVisible:C};I("update:detail",c)},y=C=>{const c={...N.detail,visibleScope:C};I("update:detail",c)};return m({validateVisibleRange:()=>{if(N.authType==="0")return{isValid:!0,data:{visibleScope:[],allVisible:!0,openStatus:1}};if(!N.showAvailableRange)return{isValid:!0,data:{openStatus:N.detail.openStatus??0}};if(!v.value)return{isValid:!0,data:null};const C=v.value.getSelectedItems();return C?.allVisible===void 0?(r.ElMessage.warning(p("MESSAGE_REMIND.SELECT_VISIBLE_RANGE")),{isValid:!1,data:null}):{isValid:!0,data:{...C,openStatus:N.detail.openStatus??0}}}}),(C,c)=>(e.openBlock(),e.createElementBlock("div",Ce,[a.showAvailableRange?(e.openBlock(),e.createBlock(e.unref(ue.AvailableRangeSetting),{key:0,"all-visible":a.detail.allVisible,"model-value":a.detail.visibleScope,class:e.normalizeClass(["pd-t-16",{"pd-b-16":!a.showPermissionSetting}]),ref_key:"availableRangeSettingRef",ref:v,"onUpdate:allVisible":L,"onUpdate:modelValue":y},null,8,["all-visible","model-value","class"])):e.createCommentVNode("",!0),a.showPermissionSetting?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",Ne,[c[0]||(c[0]=e.createElementVNode("span",{class:"mg-r-2",style:{color:"var(--el-color-danger)"}},"*",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING"))+" ",1),e.createVNode(e.unref(r.ElTooltip),{content:e.unref(p)("PUTRESOURCEONSHELFDIALOG_TEXT.RESOURCE_PERMISSION_SETTING_TOOLTIP"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{class:"mg-l-4",size:"14px"},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.IconTip))]),_:1})]),_:1},8,["content"])]),e.createElementVNode("div",me,[e.createVNode(e.unref(r.ElCheckbox),{"model-value":a.detail.openStatus,"onUpdate:modelValue":T,"true-value":e.unref(t.OPEN_STATUS_VALUE).TRUE,"false-value":e.unref(t.OPEN_STATUS_VALUE).FALSE,class:"mg-r-0"},{default:e.withCtx(()=>[e.createElementVNode("div",ye,e.toDisplayString(e.unref(p)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE")),1)]),_:1},8,["model-value","true-value","false-value"]),e.createElementVNode("span",Ie,e.toDisplayString(e.unref(p)("PUTRESOURCEONSHELFDIALOG_TEXT.FREE_RESOURCE_MCPKEY")),1)])])):e.createCommentVNode("",!0)]))}},ee=H._export_sfc(ge,[["__scopeId","data-v-637dc461"]]),te={__name:"FeishuTooltip",props:{channelType:{type:[String,Number],required:!0}},setup(a){const{t:m}=B.useI18n();return(_,p)=>a.channelType===e.unref(t.RELEASE_CHANNEL_TYPE).FEISHU_WEB?(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),{key:0,placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("SOURCE_PUBLISH.FEISHU_WEB_TOOLTIP")),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}},le={__name:"ApiTooltip",props:{channelType:{type:[String,Number],required:!0},isAuth:{type:Boolean,required:!0}},setup(a){const{t:m}=B.useI18n();return(_,p)=>e.unref(t.API_CHANNEL_TYPES).includes(a.channelType)?(e.openBlock(),e.createBlock(e.unref(r.ElTooltip),{key:0,placement:"top"},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.isAuth?e.unref(m)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_MSG")||"请先完成授权":e.unref(m)("SOURCE_PUBLISH.PUBLISH_ACCESS_TOKEN_MSG")||"调用需要创建访问凭证"),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{size:"14px",color:"#999",style:{"margin-left":"5px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.IconTip))]),_:1})]),_:1})):e.createCommentVNode("",!0)}},be={class:"publish-settings"},Le={class:"channel-name flex items-center overflow-hidden w-full"},Re={class:"channel-title flex-1 overflow-hidden"},Pe={class:"channel-title__name"},Be={class:"channel-title__desc"},Ve={key:0,class:"expand-content"},Ue={class:"select-label"},Oe={class:"select-label"},He={class:"select-label"},ke={class:"action-container"},we={class:"select-label"},xe={__name:"PublishSettings",props:{modelValue:{type:Array,default:()=>[]},sourceType:{type:String,default:w.SOURCE_TYPE.AGENT},channelManagement:{type:Array,default:()=>[]},isBackendSystem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},authType:{type:String,default:""}},emits:["validateField","update:modelValue"],setup(a,{expose:m,emit:_}){const p=e.inject(t.STORE_DETAIL_TYPE),N=e.getCurrentInstance(),I=Y.useRouter();Y.useRoute();const v=_,T=a,{checkToken:L}=Q.getPublishApis(),y=e.ref(null),b=e.ref(null),C=e.ref(!1),c=e.ref(""),f=e.ref({}),{t:A}=B.useI18n(),x=e.ref([]),R=e.computed(()=>{const o=t.getChannelsByType(T.sourceType,T.channelManagement)||[];return T.isBackendSystem?o.filter(n=>n.channelType!=="3"):o}),D=o=>x.value?.find(n=>n.id===o.id)?.id?t.INACTIVE_ENUM.PUBLISHED:t.INACTIVE_ENUM.UNPUBLISHED,S={bakInt:[{required:!0,trigger:"change"}]},G=e.computed(()=>[{type:"selection",selectable:n=>T.disabled||n.id==t.RELEASE_CHANNEL_TYPE.AIBox?!1:t.API_CHANNEL_TYPES.includes(n.id)?C.value:!0,show:!T.isBackendSystem},{label:A("SOURCE_PUBLISH.PUBLISH_CHANNEL")||"发布渠道",prop:"name",slot:"name",show:!0},{type:"expand",prop:"expand",width:1,show:!0},{label:"",prop:"status",slot:"status",width:100,show:!T.isBackendSystem},{label:"",prop:"action",slot:"action",show:!0},{label:"",prop:"inActive",slot:"inActive",width:100,show:T.isBackendSystem}].filter(n=>n.show)),M=[{label:A("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_1")||"专享服务",value:"PRIVATE"},{label:A("COMMON_HOOKS.SERVICE_TYPE_ENUMLIST.LABEL_2")||"开发者计算",value:"DEVELOPER"}],V=e.ref(!1),U=e.ref([]),k=o=>{if(x.value=o,V.value){V.value=!1,U.value=o,v("update:modelValue",o),v("validateField");return}const n=o.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB),s=o.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.H5),i=U.value.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB),se=U.value.some(g=>g.id===t.RELEASE_CHANNEL_TYPE.H5),oe=n&&!i,ie=!s&&se;if(oe&&!s){const g=R.value.find(W=>W.id===t.RELEASE_CHANNEL_TYPE.H5);if(g){V.value=!0,r.ElMessage.warning(A("SOURCE_PUBLISH.FEISHU_H5_LINKAGE_SELECT")),e.nextTick(()=>{y.value?.handleToggleRowSelection(g,!0)});return}}if(ie&&n){const g=R.value.find(W=>W.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB);if(g){V.value=!0,r.ElMessage.warning(A("SOURCE_PUBLISH.H5_FEISHU_LINKAGE_DESELECT")),e.nextTick(()=>{y.value?.handleToggleRowSelection(g,!1)});return}}U.value=o,v("update:modelValue",o),v("validateField")},K=o=>{const n=D(o);y.value?.handleToggleRowSelection(o,n)},X=(o,n)=>{o.allVisible=n.allVisible,o.visibleScope=n.visibleScope,o.openStatus=n.openStatus},F=async()=>{const o=await L();console.log(o,"res"),C.value=o.data||!1},O=(o,n)=>{n&&(f.value.bakInt=n.bakInt,c.value=n.serviceType,l.value=n.currency);const s=R.value.filter(i=>o.includes(i.id));s.forEach(i=>{y.value?.handleToggleRowSelection(i,!0)}),e.nextTick(()=>{k(s)})},q=()=>"no-expand",E=()=>{I.push({name:"ApiManage"})},l=e.ref(""),d=e.ref([]),u=e.ref(!1);e.watch(()=>T.modelValue,o=>{const n=[];if(o&&o.find(s=>t.STORE_CHANNEL_TYPES.includes(s.id))){const s=o.find(i=>t.STORE_CHANNEL_TYPES.includes(i.id));s&&n.push(s.id),u.value=!0}else u.value=!1;o&&o.find(s=>s.id===t.RELEASE_CHANNEL_TYPE.FEISHU_WEB)&&n.push(t.RELEASE_CHANNEL_TYPE.FEISHU_WEB),d.value=n},{immediate:!0,deep:!0});const P=o=>{const n=`permissionSettingRef_${o}`,s=N?.refs?.[n];if(s){const i=s.validateVisibleRange();return i.isValid?i.data:null}return null},h=async()=>b.value?(b.value.scrollToField("bakInt"),b.value.validate().catch(()=>(r.ElMessage.warning(A("SOURCE_PUBLISH.PUBLISH_CATEGORY_MSG")),Promise.reject(!1)))):!0;return e.onMounted(()=>{F()}),m({get bakInt(){return f.value.bakInt},serviceType:c,currency:l,channels:R,categoryForm:f,handleToggleRowSelection:O,getVisibleRangeData:P,validateCategory:h}),(o,n)=>(e.openBlock(),e.createElementBlock("div",be,[e.createVNode(J.AiboxTable,{columns:G.value,data:R.value,"on-row-key":s=>s.id,total:R.value.length,style:{width:"100%"},hasPage:!1,"show-handle-nums":1,onRowClassName:q,"expand-row-keys":d.value,"default-expand-all":!1,onOnMultiSelection:k,ref_key:"aiboxTableRef",ref:y},{name:e.withCtx(({row:s})=>[e.createElementVNode("div",Le,[e.createVNode($,{"publish-type":s.id,size:24},null,8,["publish-type"]),e.createElementVNode("div",Re,[e.createElementVNode("p",Pe,[e.createTextVNode(e.toDisplayString(s.name(a.sourceType))+" ",1),e.createVNode(le,{"channel-type":s.id,"is-auth":C.value},null,8,["channel-type","is-auth"]),e.createVNode(te,{"channel-type":s.id},null,8,["channel-type"])]),e.createElementVNode("p",Be,e.toDisplayString(s.description),1)])])]),expand:e.withCtx(({row:s})=>[s.id===e.unref(t.RELEASE_CHANNEL_TYPE).PLUGIN_STORE?(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(e.unref(r.ElSelect),{modelValue:f.value.bakInt,"onUpdate:modelValue":n[0]||(n[0]=i=>f.value.bakInt=i),placeholder:e.unref(A)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"},disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",Ue,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),n[4]||(n[4]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),i=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"]),T.authType=="1"?(e.openBlock(),e.createBlock(e.unref(r.ElSelect),{key:0,modelValue:c.value,"onUpdate:modelValue":n[1]||(n[1]=i=>c.value=i),placeholder:e.unref(A)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"200px"},disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",Oe,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.SERVICE_TYPE")||"服务类型"),1),n[5]||(n[5]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(M,i=>e.createVNode(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","placeholder","disabled"])):e.createCommentVNode("",!0),c.value===o.q.CURRENCY?(e.openBlock(),e.createBlock(e.unref(r.ElInputNumber),{key:1,modelValue:l.value,"onUpdate:modelValue":n[2]||(n[2]=i=>l.value=i),precision:2,style:{width:"200px"},"controls-position":"right",disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",He,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CONSUME_VALUE")||"消费值"),1),n[6]||(n[6]=e.createElementVNode("div",{class:"divider"},null,-1))]),_:1},8,["modelValue","disabled"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),[e.unref(t.RELEASE_CHANNEL_TYPE).FEISHU_WEB,e.unref(t.RELEASE_CHANNEL_TYPE).AGENT_STORE,e.unref(t.RELEASE_CHANNEL_TYPE).MCP_STORE].includes(s.id)?(e.openBlock(),e.createBlock(ee,{key:1,"show-permission-setting":s.id===e.unref(t.RELEASE_CHANNEL_TYPE).MCP_STORE&&T.authType!=="0","show-available-range":T.authType!=="0","auth-type":T.authType,detail:s,ref:`permissionSettingRef_${s.id}`,"onUpdate:detail":i=>X(s,i)},null,8,["show-permission-setting","show-available-range","auth-type","detail","onUpdate:detail"])):e.createCommentVNode("",!0)]),status:e.withCtx(({row:s})=>[e.unref(t.AUTHORIZED_CHANNEL_TYPES).includes(s.id)?(e.openBlock(),e.createBlock(e.unref(r.ElTag),{key:0,type:"success"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权"),1)]),_:1})):e.unref(t.API_CHANNEL_TYPES).includes(s.id)?(e.openBlock(),e.createBlock(e.unref(r.ElTag),{key:1,type:C.value?"success":"info"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.value?e.unref(A)("SOURCE_PUBLISH.PUBLISH_AUTHORIZE_STATUS")||"已授权":e.unref(A)("SOURCE_PUBLISH.PUBLISH_UNAUTHORIZE_STATUS")||"未授权"),1)]),_:1},8,["type"])):e.createCommentVNode("",!0)]),inActive:e.withCtx(({row:s})=>[e.createVNode(e.unref(r.ElSelect),{"model-value":D(s),disabled:a.disabled,onChange:i=>K(s)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t.INACTIVE_LIST),i=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["model-value","disabled","onChange"])]),action:e.withCtx(({row:s})=>[e.createElementVNode("div",ke,[e.unref(t.API_CHANNEL_TYPES).includes(s.id)&&!a.isBackendSystem?(e.openBlock(),e.createBlock(e.unref(r.ElButton),{key:0,type:"primary",link:"",onClick:i=>E()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CONFIG")||"配置"),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(t.STORE_CHANNEL_TYPES).slice(0,3).includes(s.id)&&a.sourceType!=e.unref(w.SOURCE_TYPE).PLUGIN&&u.value?(e.openBlock(),e.createBlock(e.unref(r.ElForm),{key:1,ref_key:"categoryFormRef",ref:b,model:f.value,rules:S},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"bakInt"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSelect),{modelValue:f.value.bakInt,"onUpdate:modelValue":n[3]||(n[3]=i=>f.value.bakInt=i),placeholder:e.unref(A)("SOURCE_PUBLISH.DEFAULT_SELECT_MSG")||"请选择",style:{width:"150px"},disabled:a.disabled},{prefix:e.withCtx(()=>[e.createElementVNode("div",we,e.toDisplayString(e.unref(A)("SOURCE_PUBLISH.CATEGORY")||"分类"),1),n[7]||(n[7]=e.createElementVNode("div",{class:"divider"},null,-1))]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),i=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),_:1})]),_:1},8,["model"])):e.createCommentVNode("",!0)])]),_:1},8,["columns","data","on-row-key","total","expand-row-keys"])]))}},ae=H._export_sfc(xe,[["__scopeId","data-v-5cc3cfd2"]]),De={class:"publish-container__back"},Fe={class:"publish-container__config"},Ye={class:"publish-container__config"},Ge={__name:"layout",props:{showPublishConfig:{type:Boolean,default:!0},propsSourceBnid:{type:String,default:""},propsSourceType:{type:String,default:""},propsAuthType:{type:String,default:""},businessSpace:{type:String,default:""},isBackendSystem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rowBnid:{type:String,default:""},isShowBack:{type:Boolean,default:!0},isRepublish:{type:Boolean,default:!1},isOfficialRelease:{type:Boolean,default:!1}},setup(a,{expose:m}){const _=e.ref(null),p=e.ref(null),N=Y.useRoute(),I=Y.useRouter(),v=e.ref(!1),T=e.ref(!1),L=e.ref(!1),y=e.ref(""),b=e.ref(""),C=e.ref(""),{t:c}=B.useI18n(),f=a,{sourcePublish:A,checkVersion:x,getPublishVersionDetail:R,sourceRePublish:D}=Q.getPublishApis(),S=e.ref({versionNumber:"0.0.1",selectedData:[],showExec:1}),G=e.ref({versionNumber:[{required:!0,message:c("SOURCE_PUBLISH.VERSION_NUMBER_MSG")||"请输入版本号",trigger:"blur"},{pattern:/^\d+\.\d+\.\d+$/,message:"版本号格式必须为数字.数字.数字,如:1.0.0",trigger:"blur"},{validator:async(E,l,d)=>{if(T.value)return;T.value=!0;const{data:u}=await x({sourceType:y.value,sourceId:b.value,versionNumber:S.value.versionNumber}).finally(()=>{T.value=!1});if(u){const P=c("SOURCE_PUBLISH.VERSION_NUMBER_EXIST_MSG")||"版本号已存在";d(new Error(P))}else d()},trigger:"blur"}],selectedData:[{required:!f.isBackendSystem,message:c("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道",trigger:"change"},{validator:(E,l,d)=>{if(S.value.selectedData.length===0){f.isBackendSystem&&d();const u=c("SOURCE_PUBLISH.PUBLISH_CHANNEL_MSG")||"请至少选择一个发布渠道";d(new Error(u))}else d()},trigger:"change"}]}),M=()=>{p.value?.validateField("selectedData")},V=E=>{const l=E.replace(/[^0-9.]/g,""),d=l.split(".");d.length>3?S.value.versionNumber=d.slice(0,3).join("."):S.value.versionNumber=l},U=async()=>{k(()=>{const E=window.history.state;E&&I.replace({path:E.back,query:{active:"publish",from:N.query.from}})})},k=async E=>{const l=await X();if(!l)return;v.value=!0;const d=f.isRepublish?D:A;try{const{code:u}=await d(l);u===0&&typeof E=="function"&&E()}finally{v.value=!1}},K=E=>{O.value,O.value.forEach(l=>{E.find(u=>u.channelType===l.channelType)||E.push({channelType:l.channelType,inActive:0,allVisible:l.allVisible||!1,visibleScope:l.visibleScope||null})})},X=async()=>{if(await p.value.validate()){let l={};const d=[];for(const h of S.value.selectedData){const o={channelType:Number(h.id)},n=[t.RELEASE_CHANNEL_TYPE.FEISHU_WEB,t.RELEASE_CHANNEL_TYPE.AGENT_STORE,t.RELEASE_CHANNEL_TYPE.MCP_STORE],s=_.value.getVisibleRangeData(h.id);if(n.includes(h.id)&&!s)return!1;s&&Object.keys(s).length>0&&(o.visibleScope=s.visibleScope,o.allVisible=s.allVisible,o.openStatus=s.openStatus),f.isRepublish&&(o.inActive=1,o.visibleScope=s?.visibleScope||null,o.allVisible=s?.allVisible||!1),d.push(o)}if(f.isBackendSystem){const h=Number(t.RELEASE_CHANNEL_TYPE.AIBox);d.some(n=>n.channelType===h)||d.push({channelType:h})}f.isRepublish&&K(d),f.isRepublish?(d.forEach(h=>{h.visibleScope||(h.visibleScope=null),h.allVisible||(h.allVisible=!1),t.STORE_CHANNEL_TYPES.includes((h.channelType||"").toString())&&(h.bakInt=_.value.bakInt)}),l={channels:d,bnid:f.rowBnid,sourceType:y.value,sourceId:b.value,serviceType:"2"}):l={...S.value,channels:d,sourceType:y.value,sourceId:b.value,workspaceBnid:f.businessSpace||""},y.value==w.SOURCE_TYPE.WORKFLOW&&(l.forcePublish=!0);let u=!1;const P=S.value.selectedData.map(h=>h.id);if(u=P.find(h=>[t.RELEASE_CHANNEL_TYPE.AGENT_STORE,t.RELEASE_CHANNEL_TYPE.WORKFLOW_STORE,t.RELEASE_CHANNEL_TYPE.PLUGIN_STORE,t.RELEASE_CHANNEL_TYPE.MCP_STORE].includes(h)),u){if(await _.value?.validateCategory?.()===!1)return!1;if(l.bakInt=_.value.bakInt,P.includes(t.RELEASE_CHANNEL_TYPE.PLUGIN_STORE)&&C.value=="1"&&(l.serviceType=_.value.serviceType,!l.serviceType)){const o=c("SOURCE_PUBLISH.PUBLISH_SERVICE_TYPE_MSG")||"请选择服务类型";return r.ElMessage.warning(o),!1}}return l.official=f.isOfficialRelease,delete l.selectedData,l}else return console.log("error submit!"),!1},F=e.ref({}),O=e.ref([]),q=async()=>{L.value=!0;const{data:E}=await R(y.value,b.value);if(L.value=!1,E){const l=E.versionNumber.split(".");l.length===3?l[2]=parseInt(l[2])+1:l.push("1"),F.value=E,S.value.versionNumber=l.join("."),S.value.versionDesc=E.versionDesc,S.value.showExec=E.showExec,S.value.showKnowledge=E.showKnowledge,_.value&&(_.value.categoryForm.bakInt=E?.bakInt||"")}O.value=E?.channels||[],e.nextTick(()=>{let l=[];const d={};if(E?.channels.forEach(u=>{l.push(String(u.channelType)),(u.bakInt||u.bakInt==0)&&(d.bakInt=String(u.bakInt)),(u.serviceType||u.serviceType==0)&&(d.serviceType=String(u.serviceType)),(u.currency||u.currency==0)&&(d.currency=u.currency)}),l.length==0)y.value==w.SOURCE_TYPE.AGENT?l=[t.RELEASE_CHANNEL_TYPE.AGENT_STORE,t.RELEASE_CHANNEL_TYPE.AIBox]:l=[t.RELEASE_CHANNEL_TYPE.AIBox];else{const u=l.find(P=>P==t.RELEASE_CHANNEL_TYPE.AIBox);y.value==w.SOURCE_TYPE.AGENT&&!u&&l.push(t.RELEASE_CHANNEL_TYPE.AIBox)}_.value?.handleToggleRowSelection(l,d)})};return e.onMounted(()=>{console.log("props",f),y.value=f.propsSourceType,C.value=f.propsAuthType,b.value=f.propsSourceBnid,q()}),m({handleSourcePublish:k,publishData:F,submitLoading:v}),(E,l)=>{const d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["publish-container",a.isBackendSystem?"backend-system":""]),id:"source-publish-container"},[a.isBackendSystem?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J._sfc_main,{key:0,"back-bar-style":"#f7f8fa"},{default:e.withCtx(()=>[e.createElementVNode("div",De,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH")||"发布"),1),e.createVNode(e.unref(r.ElButton),{type:"primary",class:"publish-container__sure",onClick:U,loading:v.value,disabled:a.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.SURE_PUBLISH")||"确认发布"),1)]),_:1},8,["loading","disabled"])])]),_:1})),e.createVNode(e.unref(r.ElForm),{ref_key:"formRef",ref:p,model:S.value,"label-width":"80px",class:"publish-container__form",rules:G.value,"label-position":"top",disabled:a.disabled,onSubmit:l[5]||(l[5]=e.withModifiers(()=>{},["prevent"]))},{default:e.withCtx(()=>[a.isRepublish?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(z,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH_RECORD")||"发布记录"),1)]),_:1})),a.isRepublish?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(j,{key:1},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{label:e.unref(c)("SOURCE_PUBLISH.VERSION_NUMBER")||"版本号",prop:"versionNumber"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:S.value.versionNumber,"onUpdate:modelValue":l[0]||(l[0]=u=>S.value.versionNumber=u),placeholder:e.unref(c)("SOURCE_PUBLISH.VERSION_PLACEHOLDER")||"版本示例:0.0.1",onInput:V},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(c)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述",prop:"versionDesc"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{type:"textarea",modelValue:S.value.versionDesc,"onUpdate:modelValue":l[1]||(l[1]=u=>S.value.versionDesc=u),rows:4,maxlength:"2000","show-word-limit":"",placeholder:e.unref(c)("SOURCE_PUBLISH.VERSION_DESC")||"版本描述"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})),a.showPublishConfig&&!a.isRepublish?(e.openBlock(),e.createBlock(z,{key:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH_CONFIG")||"发布配置"),1)]),_:1})):e.createCommentVNode("",!0),a.showPublishConfig&&!a.isRepublish?(e.openBlock(),e.createBlock(j,{key:3},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"showExec"},{default:e.withCtx(()=>[e.createElementVNode("div",Fe,[e.createElementVNode("p",null,[l[6]||(l[6]=e.createElementVNode("img",{src:de,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.SHOW_EXECUTE_PROCESS")||"展示执行过程"),1)]),e.createVNode(e.unref(r.ElSwitch),{modelValue:S.value.showExec,"onUpdate:modelValue":l[2]||(l[2]=u=>S.value.showExec=u),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1}),e.createVNode(e.unref(r.ElFormItem),{prop:"showKnowledge"},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[e.createElementVNode("p",null,[l[7]||(l[7]=e.createElementVNode("img",{src:Ee,width:"20",height:"20",alt:""},null,-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.SHOW_RECALL_KNOWLEDGE")||"展示召回的知识库内容"),1)]),e.createVNode(e.unref(r.ElSwitch),{modelValue:S.value.showKnowledge,"onUpdate:modelValue":l[3]||(l[3]=u=>S.value.showKnowledge=u),"active-value":1,"inactive-value":0},null,8,["modelValue"])])]),_:1})]),_:1})):e.createCommentVNode("",!0),a.isRepublish?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(z,{key:4},{default:e.withCtx(()=>[l[8]||(l[8]=e.createElementVNode("span",{class:"publish-container__required"},"*",-1)),e.createTextVNode(e.toDisplayString(e.unref(c)("SOURCE_PUBLISH.PUBLISH_SETTING")||"发布设置"),1)]),_:1})),e.createVNode(j,null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"selectedData"},{default:e.withCtx(()=>[e.createVNode(ae,{ref_key:"publishSettingsRef",ref:_,"source-type":y.value,"channel-management":O.value,modelValue:S.value.selectedData,"onUpdate:modelValue":l[4]||(l[4]=u=>S.value.selectedData=u),"is-backend-system":a.isBackendSystem,disabled:a.disabled,"auth-type":C.value,onValidateField:M},null,8,["source-type","channel-management","modelValue","is-backend-system","disabled","auth-type"])]),_:1})]),_:1})]),_:1},8,["model","rules","disabled"])],2)),[[d,L.value]])}}},Me=H._export_sfc(Ge,[["__scopeId","data-v-a4ba5929"]]),Ke=()=>{const{t:a}=B.useI18n();return{serviceType:[{get label(){return a("COMMON_DICT.SERVICE_TYPE.PRIVATE")},value:t.serviceTypeMap.PRIVATE},{get label(){return a("COMMON_DICT.SERVICE_TYPE.DEVELOPER")},value:t.serviceTypeMap.DEVELOPER}],serviceStatus:[{get label(){return a("COMMON_DICT.SERVICE_STATUS.IN_CALL")},value:"IN_CALL"},{get label(){return a("COMMON_DICT.SERVICE_STATUS.NO_CONFIG")},value:"NO_CONFIG"}]}},Xe=()=>{const{getStoreDetailType:a}=Q.getPublishApis(),{t:m}=B.useI18n(),_=e.ref([]),p=e.ref([]);return{storeDetailType:_,allStoreDetailType:p,fetchStoreDetailType:async()=>{await a().then(I=>{const v=I?.data?.map(L=>({label:L.desc,value:String(L.code)})),T={value:"0",label:m("STOREDETAILTYPE_STORECONTENTLAYOUT.LABEL_ALL")};_.value=v,p.value=[T,...v]})}}},ne=re.withInstall(Me);exports.API_CHANNEL_TYPES=t.API_CHANNEL_TYPES;exports.AUTHORIZED_CHANNEL_TYPES=t.AUTHORIZED_CHANNEL_TYPES;exports.CHANNEL_ICON_CONFIG=t.CHANNEL_ICON_CONFIG;exports.INACTIVE_ENUM=t.INACTIVE_ENUM;exports.INACTIVE_LIST=t.INACTIVE_LIST;exports.LIBRARY_PAGE=t.LIBRARY_PAGE;exports.OFFICIAL_LABEL=t.OFFICIAL_LABEL;exports.OPEN_STATUS_VALUE=t.OPEN_STATUS_VALUE;exports.PUBLISH_STATUS_COLORS=t.PUBLISH_STATUS_COLORS;exports.PUBLISH_STATUS_ICONS=t.PUBLISH_STATUS_ICONS;exports.PUBLISH_STATUS_TEXT=t.PUBLISH_STATUS_TEXT;exports.PUBLISH_STATUS_TYPE=t.PUBLISH_STATUS_TYPE;exports.PUBLISH_TYPE_ICON_MAPPING=t.PUBLISH_TYPE_ICON_MAPPING;exports.RELEASE_CHANNEL_CONFIG=t.RELEASE_CHANNEL_CONFIG;exports.RELEASE_CHANNEL_TYPE=t.RELEASE_CHANNEL_TYPE;exports.STORE_CHANNEL_TYPES=t.STORE_CHANNEL_TYPES;exports.STORE_DETAIL_TYPE=t.STORE_DETAIL_TYPE;exports.getChannelsByType=t.getChannelsByType;exports.serviceTypeMap=t.serviceTypeMap;exports.PUBLISH_STATUS=ce.PUBLISH_STATUS;exports.ApiTooltip=le;exports.FeishuTooltip=te;exports.PermissionSetting=ee;exports.PublishIcon=$;exports.PublishSettings=ae;exports.SourcePublish=ne;exports.default=ne;exports.useServiceConfig=Ke;exports.useStoreDetailType=Xe;
|
package/lib/Table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./chunks/index.CkihWzK6.js"),e=require("./chunks/AiboxTable.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./chunks/index.CkihWzK6.js"),e=require("./chunks/AiboxTable.CJOPGJtU.js"),t=a.withInstall(e.AiboxTable);exports.BackBar=e._sfc_main;exports.TableBtns=e.TableBtns;exports.AiboxTable=t;exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.delete-title[data-v-
|
|
1
|
+
.ai-box-tabs[data-v-fd75e38a]{display:inline-block;height:32px}.ai-box-tabs ul[data-v-fd75e38a]{display:flex;align-items:center}.ai-box-tabs ul li[data-v-fd75e38a]{padding:6px 16px;border-radius:4px;margin-right:8px;color:#606266;font-size:14px;cursor:pointer;transition:all .3s;white-space:nowrap}.ai-box-tabs ul li[data-v-fd75e38a]:hover{color:var(--el-color-primary);background-color:#f0f2f5}.ai-box-tabs ul .current[data-v-fd75e38a]{background:#f5f7fa;color:#262626;font-weight:500}.style-2[data-v-fd75e38a]{background-color:#f5f5f5!important;padding:0 4px;height:32px;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:8px;overflow:hidden}.style-2 li[data-v-fd75e38a]{color:#666!important;display:flex;align-items:center;height:26px;border-radius:14px;padding:0 16px!important}.style-2 li[data-v-fd75e38a]:hover{border-radius:8px;background-color:#e1edf7!important}.style-2 li.current[data-v-fd75e38a]{border-radius:8px;color:#262626!important;background:#fff!important}.style-3[data-v-fd75e38a]{background:#ffffff80;border:1px solid rgba(255,255,255,.2);padding:0 4px;height:36px;display:inline-flex;align-items:center;box-sizing:border-box;border-radius:18px;overflow:hidden}.style-3 li[data-v-fd75e38a]{color:#7f8387!important;display:flex;align-items:center;height:28px;border-radius:14px;padding:0 16px!important}.style-3 li[data-v-fd75e38a]:hover{background-color:#e1edf7!important;border-radius:14px}.style-3 li.current[data-v-fd75e38a]{color:#262626!important;background:#fff!important;border-radius:14px}.delete-title[data-v-42e471bc]{color:var(--color-text-base);display:flex;align-items:center}.delete-title .warning-icon[data-v-42e471bc]{color:var(--el-color-warning);margin-right:12px;font-size:18px}.delete-tabs[data-v-42e471bc]{margin-top:8px;padding:14px;background:#fafafa;border-radius:8px}.delete-tabs[data-v-42e471bc] .ai-box-tabs{display:inline-block;height:auto!important;padding:2px;height:32px;box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f;background:#f5f5f5;border-radius:4px}.delete-tabs[data-v-42e471bc] .ai-box-tabs ul li{margin-right:0}.delete-tabs[data-v-42e471bc] .ai-box-tabs ul li.current{background:#fff!important;box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f}.delete-tabs .resource-list[data-v-42e471bc]{margin-top:12px}.delete-tabs .resource-list .resource-item[data-v-42e471bc]:hover{background-color:#f5f5f5}.delete-tabs .resource-list .resource-item[data-v-42e471bc]{display:flex;align-items:center;cursor:pointer;padding:12px;border-radius:8px;height:56px;margin-bottom:4px}.delete-tabs .resource-list .resource-item .flow-name__icon[data-v-42e471bc],.delete-tabs .resource-list .resource-item .flow-name__icon-placeholder[data-v-42e471bc]{width:32px;height:32px;margin-right:8px;background-color:#f0f0f0;border-radius:4px}.delete-tabs .resource-list .resource-item .item-title[data-v-42e471bc]{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;font-size:14px;color:#262626;line-height:20px}.cursor-pointer[data-v-e1555473]{cursor:pointer}.vertical-form[data-v-e1555473]{max-height:60vh;width:100%;overflow-y:auto;padding-right:24px}.vertical-form[data-v-e1555473]::-webkit-scrollbar{width:6px;height:6px}.vertical-form[data-v-e1555473]::-webkit-scrollbar-thumb{border-radius:3px;background:#0003}.vertical-form[data-v-e1555473]::-webkit-scrollbar-track{border-radius:3px;background:#0000001a}.vertical-form[data-v-e1555473] .el-form-item{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:20px}.vertical-form[data-v-e1555473] .el-form-item:last-child{margin-bottom:0}.vertical-form[data-v-e1555473] .el-form-item .el-form-item__label{text-align:left;padding:0;margin-bottom:4px}.vertical-form[data-v-e1555473] .el-form-item .el-form-item__label-wrap{margin-left:0!important}.vertical-form[data-v-e1555473] .el-form-item .el-form-item__content{width:100%;margin-left:0!important}.dialog-footer[data-v-e1555473]{padding-right:24px}[data-v-e1555473] .el-textarea__inner::-webkit-scrollbar{width:6px}[data-v-e1555473] .el-textarea__inner::-webkit-scrollbar-thumb{border-radius:3px}.custom-model-dialog{padding-right:0!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.back-bar{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:12px 20px;height:64px;background:#f7f8fa;border-bottom:1px solid #f0f0f0}.back-bar__icon{display:flex;align-items:center;justify-content:center;height:18px;width:18px;border-radius:4px;margin-right:10px;cursor:pointer}.back-bar__icon:hover{background:#f0f0f0}.back-bar .back-bar__title{font-weight:700;font-size:16px;color:#262626;line-height:22px}.back-bar__tip{margin-left:10px;display:flex;align-items:center;cursor:help}.table-btns[data-v-
|
|
1
|
+
@charset "UTF-8";.back-bar{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:12px 20px;height:64px;background:#f7f8fa;border-bottom:1px solid #f0f0f0}.back-bar__icon{display:flex;align-items:center;justify-content:center;height:18px;width:18px;border-radius:4px;margin-right:10px;cursor:pointer}.back-bar__icon:hover{background:#f0f0f0}.back-bar .back-bar__title{font-weight:700;font-size:16px;color:#262626;line-height:22px}.back-bar__tip{margin-left:10px;display:flex;align-items:center;cursor:help}.table-btns[data-v-552341e3]{display:flex;align-items:center;cursor:pointer;color:var(--el-color-primary)}.table-btns[data-v-552341e3]>*:not(:first-child){margin-left:10px}.table-btns .btn-box[data-v-552341e3]{display:flex;justify-content:center;align-items:center;width:24px;height:24px;outline:none;border-radius:4px}.table-btns .btn-box[data-v-552341e3]:hover{background:#ecedee}.custom-dropdown{border-radius:8px;background:#fff;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.custom-dropdown .el-dropdown-menu{min-width:106px;padding:5px 4px!important;border-radius:8px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item{font-size:14px;color:var(--color-text-base);border-radius:4px}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):hover,.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item:not(.is-disabled):focus{background-color:#f5f5f5}.custom-dropdown .el-dropdown-menu .el-dropdown-menu__item.is-delete{color:#f5222d}.aibox-table[data-v-1d0bcb93]{background:#fff;border-radius:4px;position:relative}.aibox-table__handle[data-v-1d0bcb93]{height:54px;box-sizing:border-box;padding:0 20px 18px;display:flex;justify-content:space-between;align-items:center}.aibox-table__handle .handle-left[data-v-1d0bcb93],.aibox-table__handle .handle-right[data-v-1d0bcb93]{display:flex;align-items:center}.aibox-table__pages[data-v-1d0bcb93]{position:absolute;bottom:-45px;right:0}.aibox-table__page[data-v-1d0bcb93]{margin-top:10px;display:flex;justify-content:end;margin-bottom:10px}.aibox-table__header[data-v-1d0bcb93]{height:55px;line-height:55px;font-family:"Alibaba PuHuiTi 3-55";font-weight:700;font-size:14px;color:var(--color-text-base)}.aibox-table__header.secondary-header .el-table__cell[data-v-1d0bcb93]{background-color:#fafafa!important}.aibox-table .el-table__cell[data-v-1d0bcb93]{padding:0}.aibox-table__slot-wrapper[data-v-1d0bcb93]{width:100%}.el-table[data-v-1d0bcb93]{--el-table-row-hover-bg-color: #fafafa}.el-table .cell[data-v-1d0bcb93]{padding:16px;line-height:1.5;min-height:48px}.row-click-style .el-table__row[data-v-1d0bcb93]:hover{cursor:pointer}.aibox-table.no-pagination .el-table--border[data-v-1d0bcb93]:after,.aibox-table.no-pagination .el-table--border[data-v-1d0bcb93]:before,.aibox-table.no-pagination .el-table--border .el-table__inner-wrapper[data-v-1d0bcb93]:after,.aibox-table.no-pagination .el-table__inner-wrapper[data-v-1d0bcb93]:before{background-color:transparent!important}[data-v-1d0bcb93] .aibox-table__select-all-disabled .el-checkbox{pointer-events:none}[data-v-1d0bcb93] .aibox-table__select-all-disabled .el-checkbox__input{cursor:not-allowed}[data-v-1d0bcb93] .aibox-table__select-all-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialogue[data-v-
|
|
1
|
+
.dialogue[data-v-d97d0a0a],.autonomously[data-v-d97d0a0a]{height:22px;line-height:22px;border-radius:4px;text-align:center;font-weight:400;font-size:12px;white-space:nowrap}.dialogue[data-v-d97d0a0a]{width:52px;background:#f4ffee;border:1px solid #aeed96;color:#389e0d}.autonomously[data-v-d97d0a0a]{background:#e5ebff;border:1px solid #99b0ff;width:64px;color:var(--el-color-primary)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.auth-section[data-v-
|
|
1
|
+
.auth-section[data-v-6b26c051]{height:100%;overflow:auto;display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.auth-section .auth-input-field[data-v-6b26c051]{display:flex;flex-direction:column;gap:8px}.auth-section .auth-input-field .field-label[data-v-6b26c051]{display:flex;align-items:center;font-size:14px;font-weight:500;color:#262626;white-space:nowrap}.auth-section .auth-input-field .field-label .required[data-v-6b26c051]{color:#ff4d4f;margin-right:4px}.auth-section .error-input[data-v-6b26c051] .el-input__wrapper{border:1px solid #f00!important;box-shadow:none!important;height:32px!important}.auth-section .error-message[data-v-6b26c051]{color:red;font-size:12px;margin-left:12px;white-space:nowrap}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.auto-show-tooltip[data-v-
|
|
1
|
+
@charset "UTF-8";.auto-show-tooltip[data-v-1eb5133e]{width:100%;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;word-break:break-all}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.status-tag-content[data-v-
|
|
1
|
+
.status-tag-content[data-v-1efeeed8]{gap:4px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
[data-v-b8579cd8] .el-input .el-input__inner,[data-v-b8579cd8] .el-input .el-input__wrapper,[data-v-b8579cd8] .el-select .el-input__inner,[data-v-b8579cd8] .el-select .el-input__wrapper{border-color:#d9d9d9!important}[data-v-b8579cd8] .el-input .el-input__inner:hover,[data-v-b8579cd8] .el-input .el-input__inner:focus,[data-v-b8579cd8] .el-input .el-input__wrapper:hover,[data-v-b8579cd8] .el-input .el-input__wrapper:focus,[data-v-b8579cd8] .el-select .el-input__inner:hover,[data-v-b8579cd8] .el-select .el-input__inner:focus,[data-v-b8579cd8] .el-select .el-input__wrapper:hover,[data-v-b8579cd8] .el-select .el-input__wrapper:focus{border-color:#d9d9d9!important}[data-v-b8579cd8] .el-select{width:100%}[data-v-b8579cd8] .el-select .el-input__wrapper{border-color:#d9d9d9!important}.scrollable-form[data-v-b8579cd8]{max-height:500px;width:100%;overflow-y:auto;padding-right:24px}.scrollable-form .el-radio-group .el-radio[data-v-b8579cd8] .radio-item{min-width:80px!important}.scrollable-form[data-v-b8579cd8]::-webkit-scrollbar{width:6px;height:6px}.scrollable-form[data-v-b8579cd8]::-webkit-scrollbar-thumb{border-radius:3px;background:#0003}.scrollable-form[data-v-b8579cd8]::-webkit-scrollbar-track{border-radius:3px;background:#0000001a}.scrollable-form[data-v-b8579cd8] .el-form-item__label{color:var(--color-text-base)!important}.label-with-icon[data-v-b8579cd8]{display:inline-flex;align-items:center;gap:3px}.label-with-icon[data-v-b8579cd8] .el-icon{font-size:14px}.auth-section-wrapper[data-v-b8579cd8]{margin-top:16px;margin-bottom:16px}.auth-section-wrapper[data-v-b8579cd8] .radio-item{min-width:0px}[data-v-b8579cd8] .radio-item{min-width:0px;margin-right:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nav-title[data-v-
|
|
1
|
+
.nav-title[data-v-52011bbe]{height:72px;padding-left:2px;display:flex;align-items:center;justify-content:space-between;padding-right:8px}.nav-title .title-text[data-v-52011bbe]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nav-title .collapse-unfold-icon[data-v-52011bbe]{cursor:pointer;flex-shrink:0;transition:transform .2s ease;display:flex;justify-content:center}.custom-tree[data-v-cf335707]{background-color:transparent}.custom-tree[data-v-cf335707] .el-tree-node__expand-icon{display:none}.custom-tree[data-v-cf335707] .el-tree-node__content{height:var(--item-height)!important;min-height:calc(var(--item-height, 36px) - 8px)!important;box-sizing:border-box}.custom-tree[data-v-cf335707] .el-tree-node.is-current .el-tree-node__content{background:var(--select-menu-bg, #eaf0fe);border-radius:8px}.custom-tree .tree-node-content-custom[data-v-cf335707]{display:flex;align-items:center;transition:all .3s ease;border-radius:8px;font-weight:400;font-size:14px;color:#262626;width:100%;height:calc(var(--item-height) - 8px)!important;min-height:calc(var(--item-height, 36px) - 8px)!important;padding:9px 12px;box-sizing:border-box;cursor:pointer}.custom-tree .tree-node-content-custom.is-current[data-v-cf335707]{color:#3271fe}.custom-tree .tree-node-content-custom.is-parent-active[data-v-cf335707]{color:#3271fe;border-radius:8px;background:transparent}.custom-tree .tree-node-content-custom .expand-arrow[data-v-cf335707]{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .3s ease;flex-shrink:0}.custom-tree .tree-node-content-custom .node-icon[data-v-cf335707]{width:24px;justify-content:flex-start;flex-shrink:0}.custom-tree .tree-node-content-custom .node-label[data-v-cf335707]{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-info-card[data-v-00216c75]{display:flex;align-items:center}.user-info-card__avatar[data-v-00216c75]{border-radius:50%;background:#3965ff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.user-info-card__avatar-text[data-v-00216c75]{font-weight:500;color:#fff}.user-info-card__details[data-v-00216c75]{flex:1;overflow:hidden}.user-info-card__name[data-v-00216c75],.user-info-card__bnid[data-v-00216c75]{font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.user-info-card--popup .user-info-card__avatar[data-v-00216c75]{width:30px;height:30px;margin-right:14px}.user-info-card--popup .user-info-card__avatar-text[data-v-00216c75]{font-size:16px}.user-info-card--popup .user-info-card__name[data-v-00216c75]{line-height:16px;font-size:14px;color:#262626}.user-info-card--popup .user-info-card__bnid[data-v-00216c75]{line-height:18px;font-size:12px;color:#a8abb2}.user-info-card--footer[data-v-00216c75]{gap:6px}.user-info-card--footer .user-info-card__avatar[data-v-00216c75]{width:22px;height:22px}.user-info-card--footer .user-info-card__avatar-text[data-v-00216c75]{font-size:12px}.user-popup-content[data-v-4c9300a2]{padding:8px}.user-popup-content .user-info-card[data-v-4c9300a2]{padding:8px 3px 12px}.user-popup-content .popup-list[data-v-4c9300a2]{padding-top:12px;border-top:1px solid #eff2f5}.user-popup-content .list__item[data-v-4c9300a2]{cursor:pointer;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:8px;font-weight:400;font-size:14px;color:#262626;height:42px;transition:background-color .2s ease}.user-popup-content .list__item[data-v-4c9300a2]:hover{background:#f0f0f0}.user-popup-content .list__item-icon[data-v-4c9300a2]{text-align:center;display:flex;align-items:center}.navbar-box__footer[data-v-2b4a0a2b]{width:100%;cursor:pointer;position:relative;bottom:0;padding:10px 8px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f0f0f0;overflow:hidden}.navbar-box__footer__left[data-v-2b4a0a2b]{display:flex;align-items:center;flex:1;overflow:hidden}.footer-popup[data-v-2b4a0a2b]{position:fixed;bottom:0;z-index:2001;width:300px}.footer-popup .footer-popup__content[data-v-2b4a0a2b]{width:100%;height:100%}.content-bg[data-v-2b4a0a2b]{background:#f7f7f7b3;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:12px;border:1px solid rgba(255,255,255,.8)}.fade-enter-from[data-v-2b4a0a2b],.fade-leave-to[data-v-2b4a0a2b]{opacity:0}.fade-enter-active[data-v-2b4a0a2b],.fade-leave-active[data-v-2b4a0a2b]{transition:opacity .3s ease}.fade-enter-to[data-v-2b4a0a2b],.fade-leave-from[data-v-2b4a0a2b]{opacity:1}.sidebar[data-v-b8991280]{min-width:240px;transition:width .3s ease;position:relative}.sidebar[data-v-b8991280] .el-tree{--el-tree-node-hover-bg-color: transparent !important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.toggle-
|
|
1
|
+
@charset "UTF-8";.visible-options[data-v-380c0444]::-webkit-scrollbar{height:0}.toggle-item[data-v-380c0444]{color:var(--text-color-3);background:var(--background-color-3);border-bottom:1px solid var(--border-color);height:48px;line-height:48px}.toggle-item.active[data-v-380c0444]{color:var(--primary-color-1);background:var(--background-color-2);border-bottom:none;border-left:1px solid var(--border-color);border-right:1px solid var(--border-color)}.toggle-item.active .order-number[data-v-380c0444]{background:var(--primary-color-1);color:var(--background-color-2)}.toggle-item.first-active[data-v-380c0444]{border-left:none}.toggle-item.last-active[data-v-380c0444]{border-right:none}.toggle-item.toggle-action[data-v-380c0444]{color:var(--text-color-3);border-left:1px solid var(--border-color);width:48px}.order-number[data-v-380c0444]{border-radius:50%;line-height:20px;background:var(--text-color-4);color:var(--text-color-2)}.divider[data-v-380c0444]{color:var(--border-color);position:absolute;right:0}.toggle-style-2[data-v-380c0444]{width:auto!important;height:32px;display:inline-flex;align-items:center}.toggle-style-2 .visible-options[data-v-380c0444]{overflow:visible;display:inline-flex;align-items:center;flex:unset}.toggle-style-2 .toggle-item[data-v-380c0444]{color:#606266;background:transparent;border:none;height:auto;line-height:normal;border-radius:4px;padding:6px 16px;font-size:14px;white-space:nowrap;width:auto!important;transition:all .3s}.toggle-style-2 .toggle-item[data-v-380c0444]:hover{color:var(--el-color-primary);background-color:#f0f2f5}.toggle-style-2 .toggle-item.active[data-v-380c0444]{background:#f5f7fa;color:#262626;font-weight:500;border:none}.toggle-style-2 .divider[data-v-380c0444]{display:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.right-wrap[data-v-6736cdb6]{height:100%;flex:1;display:flex;flex-direction:column}.right-wrap .content[data-v-6736cdb6]{padding:12px;overflow-y:auto}.right-wrap .content .empty-state[data-v-6736cdb6]{color:#86909c;text-align:center;padding-top:60px}.right-wrap .content .selected-list[data-v-6736cdb6]{height:100%;overflow-y:auto}.right-wrap .content .selected-list .selected-item[data-v-6736cdb6]{margin-bottom:8px;cursor:pointer}.right-wrap .content .selected-list .selected-item .item-content[data-v-6736cdb6]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:8px;background:#fff}.right-wrap .content .selected-list .selected-item .item-content[data-v-6736cdb6]:hover{background:#eaf0fe}.right-wrap .content .selected-list .selected-item .item-content .item-main[data-v-6736cdb6]{flex:1;display:flex;align-items:center;gap:8px}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-icon[data-v-6736cdb6]{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:4px}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-info[data-v-6736cdb6]{flex:1}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-info .doc-name[data-v-6736cdb6]{font-size:14px;font-weight:400;color:#1f2329;line-height:20px}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-info .doc-suffix[data-v-6736cdb6]{font-size:12px;color:#bbbfc4;line-height:16px;margin-top:2px}.right-wrap .content .selected-list .selected-item .item-content .delete-btn[data-v-6736cdb6]{padding:4px;border:none;background:transparent;cursor:pointer}.right-wrap .content .selected-list .selected-item .item-content .delete-btn:hover svg[data-v-6736cdb6]{color:#f53f3f!important}.right-wrap .content .selected-list .selected-item.is-selected .item-content[data-v-6736cdb6]{border-radius:8px}.el-tree .el-tree-node__content{position:relative}.element-tree-node-label-wrapper{flex:1;display:flex;align-items:center}.element-tree-node-label{font-size:12px}.element-tree-node-line-ver{display:block;position:absolute;top:0;left:0;height:100%;border-left:1px dashed #dcdfe6}.element-tree-node-line-ver.last-node-isLeaf-line{height:50%}.element-tree-node-line-hor{display:block;position:absolute;top:50%;left:0;height:0;border-bottom:1px dashed #dcdfe6}.element-tree-node-label-line{flex:1;border-top:1px dashed #dcdfe6;align-self:center;margin:0 10px}[data-v-258f00ca] .el-tree-node__label{line-height:22px}[data-v-258f00ca] .el-tree-node:focus>.el-tree-node__content{background-color:transparent}[data-v-258f00ca] .el-tree-node__content{border-radius:8px}[data-v-258f00ca] .el-tree-node__content:hover{background-color:var(--primary-color-5)}[data-v-258f00ca] .element-tree-node-label{font-size:14px}[data-v-258f00ca] .element-tree-node-line-ver,[data-v-258f00ca] .element-tree-node-line-hor{border-color:var(--neutral-color-19)}.hide-false-child-checkbox[data-v-258f00ca] .el-tree-node__content:has(.false-child-node) .el-checkbox{display:none!important}.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.scroll-list[data-v-37e01654]{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative}.scroller[data-v-37e01654]{flex:1;overflow:hidden}.scroller[data-v-37e01654]::-webkit-scrollbar{width:6px}.scroller[data-v-37e01654]::-webkit-scrollbar-track{background:transparent}.scroller[data-v-37e01654]::-webkit-scrollbar-thumb{background-color:#0000001a;border-radius:3px}.scroller[data-v-37e01654]::-webkit-scrollbar-thumb:hover{background-color:#0003}.load-more-trigger[data-v-37e01654]{padding:16px 0;text-align:center}.loading-indicator[data-v-37e01654]{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--color-text-light1);font-size:var(--font-size-m)}.loading-indicator .is-loading[data-v-37e01654]{animation:rotating-37e01654 2s linear infinite}.no-more-tip[data-v-37e01654]{padding:16px 0;text-align:center;color:var(--color-text-light1);font-size:var(--font-size-m)}.empty-state[data-v-37e01654]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 16px;min-height:300px}.empty-state .empty-icon[data-v-37e01654]{font-size:48px;margin-bottom:16px;opacity:.5}.empty-state .empty-text[data-v-37e01654]{font-size:var(--font-size-m);color:var(--color-text-light1)}@keyframes rotating-37e01654{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.search-wrap[data-v-9b7f5847]{height:100%}.search-wrap .list-item[data-v-9b7f5847]{border-bottom:1px solid transparent}.search-wrap .list-item .search-item[data-v-9b7f5847]{display:flex;align-items:center;padding:8px 12px;min-height:50px;cursor:pointer;transition:background-color .2s}.search-wrap .list-item .search-item[data-v-9b7f5847]:hover{background-color:#eaf0fe}.search-wrap .list-item .search-item[data-v-9b7f5847] .el-checkbox,.search-wrap .list-item .search-item .file-type-icon[data-v-9b7f5847]{margin-right:8px}.search-wrap .list-item .search-item .node-info[data-v-9b7f5847]{flex:1;display:flex;flex-direction:column;padding-left:8px}.search-wrap .list-item .search-item .node-info .node-label[data-v-9b7f5847]{font-size:14px;font-weight:400;color:#1f2329;line-height:20px}.search-wrap .list-item .search-item .node-info .node-suffix[data-v-9b7f5847]{font-size:12px;color:#bbbfc4;line-height:16px}.left-wrap[data-v-6bf8c501]{height:100%;width:50%;display:flex;flex-direction:column}.left-wrap .content[data-v-6bf8c501]{height:100%;padding:12px;border-right:1px solid #dee0e3;display:flex;flex-direction:column}.left-wrap .content .input-wrap[data-v-6bf8c501]{margin-bottom:14px}.left-wrap .content .input-wrap[data-v-6bf8c501] .el-input__wrapper{border-radius:4px}.left-wrap .content[data-v-6bf8c501] .el-segmented{width:fit-content!important;display:inline-flex!important;margin-bottom:16px}.left-wrap .content .tree-container[data-v-6bf8c501]{flex:1;overflow:hidden;position:relative}.left-wrap .content .tree-container .loading-wrapper[data-v-6bf8c501]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10}.left-wrap .content .tree-container[data-v-6bf8c501] .element-tree-node-line-ver,.left-wrap .content .tree-container[data-v-6bf8c501] .element-tree-node-line-hor{border-color:#dee0e3!important;border-style:solid!important}.left-wrap .content .tree-container[data-v-6bf8c501] .el-tree-node__content:hover,.left-wrap .content .tree-container[data-v-6bf8c501] .element-tree-node:hover{background-color:#eaf0fe!important}.left-wrap .content .tree-container[data-v-6bf8c501] .el-tree-node__content.is-current{background-color:transparent!important}.left-wrap .content .tree-container .tree-node-content[data-v-6bf8c501]{display:flex;align-items:center;width:100%}.left-wrap .content .tree-container .tree-node-content .node-info[data-v-6bf8c501]{flex:1;display:flex;flex-direction:column;padding-left:8px}.left-wrap .content .tree-container .tree-node-content .node-info .node-label[data-v-6bf8c501]{font-size:14px;font-weight:400;color:#1f2329;line-height:20px}.left-wrap .content .tree-container .tree-node-content .node-info .node-suffix[data-v-6bf8c501]{font-size:12px;color:#bbbfc4;line-height:16px}.doc-sync-select[data-v-c45c2d8e]{width:100%;height:100%;border-radius:4px;border:1px solid #d0d3d6;display:flex;flex-direction:row}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.upload-preview[data-v-
|
|
1
|
+
.upload-preview[data-v-d6028d96]{display:flex;flex-wrap:wrap}.upload-preview .preview-item[data-v-d6028d96]{position:relative;width:64px;height:64px;margin-right:10px;display:inline-block;cursor:pointer}.upload-preview .preview-item__img[data-v-d6028d96]{width:64px;height:64px;display:block;border:1px dashed #ccc;border-radius:5px;cursor:pointer}.upload-preview .preview-item__mask[data-v-d6028d96]{display:none;width:100%;height:100%;position:absolute;border-radius:5px;left:0;top:0;background:#000;opacity:.6;text-align:center;line-height:75px}.upload-preview .preview-item__mask--view[data-v-d6028d96]{font-size:18px;color:#fff;cursor:pointer;margin-right:10px}.upload-preview .preview-item__mask--delete[data-v-d6028d96]{font-size:18px;color:#fff;cursor:pointer}.upload-preview .preview-item:hover .preview-item__mask[data-v-d6028d96]{display:block}.panel-preview[data-v-d6028d96]{background-color:#fff;width:100%}.panel-preview__row[data-v-d6028d96]{margin:10px 0}.panel-preview__box[data-v-d6028d96]{display:flex;width:calc(100% - 70px);align-items:center;cursor:pointer}.panel-preview__item[data-v-d6028d96]{padding:15px;box-sizing:border-box;border-radius:4px;border:1px solid #f0f0f0;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}.panel-preview__item>div[data-v-d6028d96]{display:flex}.panel-preview__name[data-v-d6028d96]{font-family:"Alibaba PuHuiTi 3-55";font-weight:400;font-size:14px;color:var(--el-color-primary);margin-left:5px}.panel-preview__img[data-v-d6028d96]{width:32px;height:32px;border-radius:4px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.logo-container[data-v-9581ca1c]{display:inline-flex;flex-shrink:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-nav[data-v-
|
|
1
|
+
.header-nav[data-v-f291c753]{display:flex;align-items:center;max-width:40%}.header-nav__icon[data-v-f291c753]{width:36px;height:36px;border-radius:4px;overflow:hidden;flex-shrink:0;background-color:#f5f7fa}.header-nav__icon[data-v-f291c753] .el-image__inner{border-radius:8px!important}.text-name[data-v-f291c753]{font-weight:700;font-size:14px;color:var(--color-text-base);margin-left:8px;flex:1;min-width:0}.text-name .text-name-nav[data-v-f291c753]{display:flex;align-items:center}.text-name .text-name-nav>div[data-v-f291c753]{min-width:0;cursor:pointer}.text-name .text-name-nav .edit-icon[data-v-f291c753]{display:flex;justify-content:center;align-items:center;width:16px;height:16px;margin-right:10px;color:#999;cursor:pointer}.text-name .text-name-nav .edit-icon[data-v-f291c753]:hover{background:#f0f0f0}.text-name .text-name-desc[data-v-f291c753]{font-weight:400;font-size:12px;color:#999;cursor:pointer}.results-warp[data-v-85dcff2e]{width:100%;display:flex;background:#fafafa;border:1px solid #f0f0f0;border-top-left-radius:4px;border-top-right-radius:4px;margin-top:11px;height:52px;align-items:center}.results-warp .results-warp__left_box[data-v-85dcff2e]{flex:1;padding:0 16px;box-sizing:border-box;border-right:1px solid #f0f0f0;display:flex;align-items:center;height:100%}.results-warp .results-warp__left_box_title[data-v-85dcff2e]{font-size:14px;color:var(--color-text-base);flex:1}.results-warp .results-warp__left_box_copy[data-v-85dcff2e]{width:1em;display:block;cursor:pointer}.results-warp .results-warp__left_box_button[data-v-85dcff2e]{margin-left:9px;border:1px dashed #d9d9d9}.code-view__box[data-v-85dcff2e]{width:100%;min-height:138px;max-height:calc(100% - 125px);display:flex;flex:1}.code-view__box .code-view__box_left[data-v-85dcff2e]{flex:1;min-height:208px;border:1px solid #f0f0f0;border-right:none;border-top:none;width:50%}.header-nav-box[data-v-385912ff]{position:relative;width:100%;display:flex;align-items:center;justify-content:space-between}.tool-created[data-v-385912ff]{width:100%;display:flex;flex-direction:column;height:calc(100% - 61.5px)}.tool-created .parameter-settings[data-v-385912ff]{background:#fff;padding:20px 24px;box-sizing:border-box}.tool-created .parameter-settings .parameter-title[data-v-385912ff]{font-weight:700;font-size:14px;color:#262626;margin-bottom:8px}.tool-created .parameter-input-box[data-v-385912ff]{width:100%;margin-top:14px;overflow:auto;position:relative;min-height:130px}.tool-created .resize-handle[data-v-385912ff]{width:100%;height:14px;background:#f0f0f0;cursor:row-resize;position:relative;flex-shrink:0}.tool-created .resize-handle[data-v-385912ff]:hover{background:#e0e0e0}.tool-created .resize-handle[data-v-385912ff]:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:80px;height:2px;background:#999;border-radius:1px}.tool-created .response-results[data-v-385912ff]{padding:20px 24px;background:#fff;flex:1;display:flex;flex-direction:column}.tool-created .response-results .response-title[data-v-385912ff]{font-weight:700;font-size:14px;color:#262626}.backend-system[data-v-385912ff]{height:100%}
|