china-mobile-international-custom-components 0.1.23 → 0.1.25

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.
Files changed (62) hide show
  1. package/es/AddOrEditSupplierDialog.mjs +2 -2
  2. package/es/AgentDetail.mjs +5 -5
  3. package/es/ApplicationTypeTag.mjs +3 -3
  4. package/es/AuthSection.mjs +2 -2
  5. package/es/AutoShowTooltip.mjs +1 -1
  6. package/es/AvailableRangePreview.mjs +1 -1
  7. package/es/AvailableRangeSetting.mjs +5 -5
  8. package/es/CodeView.mjs +1 -1
  9. package/es/CommonTagsList.mjs +62 -62
  10. package/es/CreateMcpForm.mjs +6 -6
  11. package/es/CustomSidebar.mjs +1 -1
  12. package/es/CustomTitle.mjs +1 -1
  13. package/es/CustomToggle.mjs +11 -11
  14. package/es/DialogContainer.mjs +5 -5
  15. package/es/DocSyncSelect.mjs +4 -4
  16. package/es/FileDisplay.mjs +1 -1
  17. package/es/FilePreview.mjs +9 -9
  18. package/es/FileUploader.mjs +2 -2
  19. package/es/ImageComponent.mjs +5 -0
  20. package/es/Logo.mjs +2 -2
  21. package/es/McpFormDialog.mjs +1 -1
  22. package/es/McpParamsSet.mjs +4 -4
  23. package/es/MdEditor.mjs +3 -3
  24. package/es/PageContainer.mjs +2 -2
  25. package/es/ParameterTable.mjs +2 -2
  26. package/es/PublishRecord.mjs +6 -6
  27. package/es/RadioGroup.mjs +5 -5
  28. package/es/SourcePublish.mjs +6 -6
  29. package/es/Table.mjs +2 -2
  30. package/es/WorkFlowDialog.mjs +3 -3
  31. package/es/WorkflowComponent.mjs +1 -1
  32. package/es/assets/DocSyncSelect.css +1 -1
  33. package/es/assets/ImageComponent.css +0 -0
  34. package/es/chunks/AddAgentDialog.BEDSZ4er.js +244 -0
  35. package/es/chunks/AddDialog.RuOrCghd.js +1969 -0
  36. package/es/chunks/BackBar.Ck5CV5ZM.js +629 -0
  37. package/es/chunks/CreatePluginDialog.DbQIt3Mz.js +775 -0
  38. package/es/chunks/CreateWorkflow.CIYJ3nGZ.js +268 -0
  39. package/es/chunks/ImageComponent.BgYVT3ZJ.js +74 -0
  40. package/es/chunks/ToolList.2k07ztsY.js +106 -0
  41. package/es/chunks/config.B_uTnClF.js +47 -0
  42. package/es/chunks/config.e_OOovlY.js +358 -0
  43. package/es/chunks/i18n.9cHOVn6X.js +4049 -0
  44. package/es/chunks/index.BGLAHzZm.js +398 -0
  45. package/es/chunks/index.CCNAKdQj.js +1279 -0
  46. package/es/chunks/index.CXIY0q5X.js +172 -0
  47. package/es/chunks/index.Cv9pn5nk.js +4 -0
  48. package/es/chunks/index.CyiNa6lr.js +256 -0
  49. package/es/chunks/index.JG8-HCzk.js +29609 -0
  50. package/es/chunks/layout.BAvYghmE.js +650 -0
  51. package/es/chunks/layout.Iob_aYQ7.js +26 -0
  52. package/es/chunks/view.BSjGhafy.js +824 -0
  53. package/es/index.mjs +66 -66
  54. package/lib/CommonTagsList.js +1 -1
  55. package/lib/DocSyncSelect.js +1 -1
  56. package/lib/ImageComponent.js +1 -0
  57. package/lib/assets/DocSyncSelect.css +1 -1
  58. package/lib/assets/ImageComponent.css +0 -0
  59. package/lib/chunks/ImageComponent.CdPLM_LX.js +1 -0
  60. package/lib/chunks/index.Cbkv4rXa.js +1 -0
  61. package/lib/index.js +1 -1
  62. package/package.json +4 -4
package/es/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { CustomToggle as t } from "./CustomToggle.mjs";
2
2
  import { CustomTitle as r } from "./CustomTitle.mjs";
3
3
  import { PageContainer as i } from "./PageContainer.mjs";
4
- import { l as n, a as m, n as l, M as p, N as T, S as f, T as S, d as g, e as u, f as E, h as c, k as d, m as A, g as P, j as _, c as C, b as I, i as L, p as N, t as M } from "./chunks/layout.BGxsktpj.js";
4
+ import { l as n, M as m, a as l, b as p, N as T, S as f, T as S, c as g, e as u, f as E, d as c, g as d, h as A, i as P, j as _, k as C, m as I, n as L, p as N, t as M } from "./chunks/layout.BAvYghmE.js";
5
5
  import { AvailableRangeSetting as O } from "./AvailableRangeSetting.mjs";
6
- import { A as F, T as h } from "./chunks/index.C3QfeHLU.js";
6
+ import { A as F, T as h } from "./chunks/index.CyiNa6lr.js";
7
7
  import { ApplicationTypeTag as y, useApplicationTypeTag as D } from "./ApplicationTypeTag.mjs";
8
8
  import { ApiTooltip as R, FeishuTooltip as b, PermissionSetting as B, PublishIcon as U, PublishSettings as H, SourcePublish as x, useServiceConfig as Y, useStoreDetailType as w } from "./SourcePublish.mjs";
9
9
  import { DocSyncSelect as v, FileTypeIcon as k } from "./DocSyncSelect.mjs";
@@ -14,8 +14,8 @@ import { AutoShowTooltip as oa } from "./AutoShowTooltip.mjs";
14
14
  import { DialogContainer as sa, useDialog as ta } from "./DialogContainer.mjs";
15
15
  import { CommonTagsList as ra, StatusTag as ia } from "./CommonTagsList.mjs";
16
16
  import { AddOrEditSupplierDialog as na, AiboxTabs as ma, DeleteResourceDialog as la, modelTypeOptions as pa, toolCallingMap as Ta, toolCallingOptions as fa } from "./AddOrEditSupplierDialog.mjs";
17
- import { M as Sa, c as ga, p as ua } from "./chunks/index.N2EqNvlE.js";
18
- import { a as ro, u as io } from "./chunks/index.N2EqNvlE.js";
17
+ import { M as Sa, c as ga, p as ua } from "./chunks/index.BGLAHzZm.js";
18
+ import { a as ro, u as io } from "./chunks/index.BGLAHzZm.js";
19
19
  import { CreateMcpForm as Ea } from "./CreateMcpForm.mjs";
20
20
  import { AuthSection as ca } from "./AuthSection.mjs";
21
21
  import { RadioGroup as da } from "./RadioGroup.mjs";
@@ -26,18 +26,18 @@ import { defineAsyncComponent as o } from "vue";
26
26
  import { McpParamsSet as Ia, TextLeft as La } from "./McpParamsSet.mjs";
27
27
  import { FilePreview as Na } from "./FilePreview.mjs";
28
28
  import { MdEditor as Ma } from "./MdEditor.mjs";
29
- import { F as Oa } from "./chunks/index.BLHuw7qe.js";
30
- import { d as mo, f as lo, g as po, i as To, m as fo, a as So, r as go, c as uo, s as Eo, t as co, b as Ao } from "./chunks/index.BLHuw7qe.js";
31
- import { _ as Fa, T as ha } from "./chunks/BackBar.DF5pYI3o.js";
32
- import { C as ya, D as Da, M as Ra } from "./chunks/field-types.CPnMOjle.js";
33
- import { D as ba, M as Ba, P as Ua, R as Ha, a as xa, r as Ya } from "./chunks/config.wjPi9AZN.js";
34
- import { A as wa, a as va, C as ka, I as Ga, b as Wa, L as ja, O as Va, c as za, P as Ka, d as Za, e as $a, f as Ja, g as Xa, R as qa, h as Qa, S as ae, i as ee, s as oe } from "./chunks/config.CVYCnWlD.js";
29
+ import { F as Oa } from "./chunks/index.CCNAKdQj.js";
30
+ import { d as mo, f as lo, g as po, i as To, m as fo, r as So, a as go, s as uo, b as Eo, t as co, c as Ao } from "./chunks/index.CCNAKdQj.js";
31
+ import { _ as Fa, T as ha } from "./chunks/BackBar.Ck5CV5ZM.js";
32
+ import { A as ya, a as Da, C as Ra, I as ba, b as Ba, L as Ua, O as Ha, c as xa, P as Ya, d as wa, e as va, f as ka, g as Ga, R as Wa, h as ja, S as Va, i as za, s as Ka } from "./chunks/config.e_OOovlY.js";
33
+ import { C as Za, D as $a, M as Ja } from "./chunks/field-types.CPnMOjle.js";
34
+ import { D as Xa, M as qa, P as Qa, R as ae, a as ee, r as oe } from "./chunks/config.B_uTnClF.js";
35
35
  import { d as se, i as te, a as re, b as ie, c as ne, e as me, f as le, g as pe, h as Te, j as fe, k as Se, l as ge, m as ue, u as Ee } from "./chunks/usePreview.K_Ffcf49.js";
36
36
  import { n as _o } from "./chunks/usePreview.K_Ffcf49.js";
37
37
  import { dayjs as ce } from "element-plus";
38
- import { u as Io } from "./chunks/index.DrxYDdRR.js";
38
+ import { u as Io } from "./chunks/index.CXIY0q5X.js";
39
39
  import { f as No, a as Mo, t as Oo } from "./chunks/numberFormatter.BRGqfWO4.js";
40
- import { j as ho, c as yo, i as Do, h as Ro, b as bo, d as Bo, e as Uo, f as Ho, g as xo, l as Yo, a as wo, s as vo, t as ko, u as Go } from "./chunks/i18n.3X53o1Ks.js";
40
+ import { c as ho, a as yo, b as Do, d as Ro, e as bo, f as Bo, h as Uo, i as Ho, g as xo, l as Yo, j as wo, s as vo, t as ko, u as Go } from "./chunks/i18n.9cHOVn6X.js";
41
41
  const de = o(
42
42
  () => import("./WorkflowComponent.mjs").then(
43
43
  (a) => a.default || a.WorkflowComponent || a
@@ -50,9 +50,9 @@ const de = o(
50
50
  () => import("./AgentDetail.mjs").then((a) => a.default || a.AgentDetail || a)
51
51
  ), e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52
52
  __proto__: null,
53
- API_CHANNEL_TYPES: wa,
53
+ API_CHANNEL_TYPES: ya,
54
54
  ARRAYTYPES: W,
55
- AUTHORIZED_CHANNEL_TYPES: va,
55
+ AUTHORIZED_CHANNEL_TYPES: Da,
56
56
  AddOrEditSupplierDialog: na,
57
57
  AgentDetail: Pe,
58
58
  AiboxTable: G,
@@ -64,16 +64,16 @@ const de = o(
64
64
  AvailableRangePreview: F,
65
65
  AvailableRangeSetting: O,
66
66
  BackBar: Fa,
67
- CHANNEL_ICON_CONFIG: ka,
68
- COLUMN_TYPES: ya,
67
+ CHANNEL_ICON_CONFIG: Ra,
68
+ COLUMN_TYPES: Za,
69
69
  CodeView: Aa,
70
70
  CommonTagsList: ra,
71
71
  CreateMcpForm: Ea,
72
72
  CustomSidebar: n,
73
73
  CustomTitle: r,
74
74
  CustomToggle: t,
75
- DEFAULT_SHOW_COUNT: ba,
76
- DIRECTION: Da,
75
+ DEFAULT_SHOW_COUNT: Xa,
76
+ DIRECTION: $a,
77
77
  DeleteResourceDialog: la,
78
78
  DialogContainer: sa,
79
79
  DocSyncSelect: v,
@@ -82,42 +82,42 @@ const de = o(
82
82
  FilePreview: Na,
83
83
  FileTypeIcon: k,
84
84
  FileUploader: X,
85
- INACTIVE_ENUM: Ga,
86
- INACTIVE_LIST: Wa,
87
- LIBRARY_PAGE: ja,
85
+ INACTIVE_ENUM: ba,
86
+ INACTIVE_LIST: Ba,
87
+ LIBRARY_PAGE: Ua,
88
88
  LOGO_CONFIG: _a,
89
89
  Logo: Ca,
90
- MEMBER_DEPARTMENT_TYPES: Ba,
90
+ MEMBER_DEPARTMENT_TYPES: qa,
91
91
  MENU_COLOR_STRATEGY: m,
92
92
  MENU_LOADING_STATES: l,
93
93
  MENU_TYPE: p,
94
94
  METHODSOPTIONS: j,
95
- MODES: Ra,
95
+ MODES: Ja,
96
96
  McpFormDialog: Sa,
97
97
  McpParamsSet: Ia,
98
98
  MdEditor: Ma,
99
99
  NOBODYMETHOD: V,
100
100
  NODE_CLICK_TYPES: T,
101
- OFFICIAL_LABEL: Va,
102
- OPEN_STATUS_VALUE: za,
103
- PUBLISH_STATUS: Ua,
104
- PUBLISH_STATUS_COLORS: Ka,
105
- PUBLISH_STATUS_ICONS: Za,
106
- PUBLISH_STATUS_TEXT: $a,
107
- PUBLISH_STATUS_TYPE: Ja,
108
- PUBLISH_TYPE_ICON_MAPPING: Xa,
101
+ OFFICIAL_LABEL: Ha,
102
+ OPEN_STATUS_VALUE: xa,
103
+ PUBLISH_STATUS: Qa,
104
+ PUBLISH_STATUS_COLORS: Ya,
105
+ PUBLISH_STATUS_ICONS: wa,
106
+ PUBLISH_STATUS_TEXT: va,
107
+ PUBLISH_STATUS_TYPE: ka,
108
+ PUBLISH_TYPE_ICON_MAPPING: Ga,
109
109
  PageContainer: i,
110
110
  ParameterTable: z,
111
111
  PermissionSetting: B,
112
112
  PublishIcon: U,
113
113
  PublishRecord: Pa,
114
114
  PublishSettings: H,
115
- RANGE_TYPES: Ha,
116
- RELEASE_CHANNEL_CONFIG: qa,
117
- RELEASE_CHANNEL_TYPE: Qa,
115
+ RANGE_TYPES: ae,
116
+ RELEASE_CHANNEL_CONFIG: Wa,
117
+ RELEASE_CHANNEL_TYPE: ja,
118
118
  RadioGroup: da,
119
119
  SPECIAL_ROUTES: f,
120
- STORE_CHANNEL_TYPES: ae,
120
+ STORE_CHANNEL_TYPES: Va,
121
121
  SourcePublish: x,
122
122
  StatusTag: ia,
123
123
  TREE_PROPS: S,
@@ -129,7 +129,7 @@ const de = o(
129
129
  UploadTypesEnum: q,
130
130
  WorkFlowDialog: Ae,
131
131
  WorkflowComponent: de,
132
- availableRangeTreeProps: xa,
132
+ availableRangeTreeProps: ee,
133
133
  collapseNodeKeys: g,
134
134
  convertChildrenToDebugValue: $,
135
135
  createMcpDeleteHandler: ga,
@@ -140,7 +140,7 @@ const de = o(
140
140
  findExpandPathById: c,
141
141
  findMenuByPath: d,
142
142
  getAcceptType: aa,
143
- getChannelsByType: ee,
143
+ getChannelsByType: za,
144
144
  getFirstLeafMenu: A,
145
145
  getMenuIconColorById: P,
146
146
  getParentNodeIdsById: _,
@@ -164,8 +164,8 @@ const de = o(
164
164
  modelTypeOptions: pa,
165
165
  platformMap: ua,
166
166
  processMenuTreeWithLeaf: N,
167
- rangeOptions: Ya,
168
- serviceTypeMap: oe,
167
+ rangeOptions: oe,
168
+ serviceTypeMap: Ka,
169
169
  toolCallingMap: Ta,
170
170
  toolCallingOptions: fa,
171
171
  transformMenuData: M,
@@ -183,9 +183,9 @@ const _e = (a) => {
183
183
  install: _e
184
184
  };
185
185
  export {
186
- wa as API_CHANNEL_TYPES,
186
+ ya as API_CHANNEL_TYPES,
187
187
  W as ARRAYTYPES,
188
- va as AUTHORIZED_CHANNEL_TYPES,
188
+ Da as AUTHORIZED_CHANNEL_TYPES,
189
189
  na as AddOrEditSupplierDialog,
190
190
  Pe as AgentDetail,
191
191
  G as AiboxTable,
@@ -197,16 +197,16 @@ export {
197
197
  F as AvailableRangePreview,
198
198
  O as AvailableRangeSetting,
199
199
  Fa as BackBar,
200
- ka as CHANNEL_ICON_CONFIG,
201
- ya as COLUMN_TYPES,
200
+ Ra as CHANNEL_ICON_CONFIG,
201
+ Za as COLUMN_TYPES,
202
202
  Aa as CodeView,
203
203
  ra as CommonTagsList,
204
204
  Ea as CreateMcpForm,
205
205
  n as CustomSidebar,
206
206
  r as CustomTitle,
207
207
  t as CustomToggle,
208
- ba as DEFAULT_SHOW_COUNT,
209
- Da as DIRECTION,
208
+ Xa as DEFAULT_SHOW_COUNT,
209
+ $a as DIRECTION,
210
210
  la as DeleteResourceDialog,
211
211
  sa as DialogContainer,
212
212
  v as DocSyncSelect,
@@ -215,42 +215,42 @@ export {
215
215
  Na as FilePreview,
216
216
  k as FileTypeIcon,
217
217
  X as FileUploader,
218
- Ga as INACTIVE_ENUM,
219
- Wa as INACTIVE_LIST,
220
- ja as LIBRARY_PAGE,
218
+ ba as INACTIVE_ENUM,
219
+ Ba as INACTIVE_LIST,
220
+ Ua as LIBRARY_PAGE,
221
221
  _a as LOGO_CONFIG,
222
222
  Ca as Logo,
223
- Ba as MEMBER_DEPARTMENT_TYPES,
223
+ qa as MEMBER_DEPARTMENT_TYPES,
224
224
  m as MENU_COLOR_STRATEGY,
225
225
  l as MENU_LOADING_STATES,
226
226
  p as MENU_TYPE,
227
227
  j as METHODSOPTIONS,
228
- Ra as MODES,
228
+ Ja as MODES,
229
229
  Sa as McpFormDialog,
230
230
  Ia as McpParamsSet,
231
231
  Ma as MdEditor,
232
232
  V as NOBODYMETHOD,
233
233
  T as NODE_CLICK_TYPES,
234
- Va as OFFICIAL_LABEL,
235
- za as OPEN_STATUS_VALUE,
236
- Ua as PUBLISH_STATUS,
237
- Ka as PUBLISH_STATUS_COLORS,
238
- Za as PUBLISH_STATUS_ICONS,
239
- $a as PUBLISH_STATUS_TEXT,
240
- Ja as PUBLISH_STATUS_TYPE,
241
- Xa as PUBLISH_TYPE_ICON_MAPPING,
234
+ Ha as OFFICIAL_LABEL,
235
+ xa as OPEN_STATUS_VALUE,
236
+ Qa as PUBLISH_STATUS,
237
+ Ya as PUBLISH_STATUS_COLORS,
238
+ wa as PUBLISH_STATUS_ICONS,
239
+ va as PUBLISH_STATUS_TEXT,
240
+ ka as PUBLISH_STATUS_TYPE,
241
+ Ga as PUBLISH_TYPE_ICON_MAPPING,
242
242
  i as PageContainer,
243
243
  z as ParameterTable,
244
244
  B as PermissionSetting,
245
245
  U as PublishIcon,
246
246
  Pa as PublishRecord,
247
247
  H as PublishSettings,
248
- Ha as RANGE_TYPES,
249
- qa as RELEASE_CHANNEL_CONFIG,
250
- Qa as RELEASE_CHANNEL_TYPE,
248
+ ae as RANGE_TYPES,
249
+ Wa as RELEASE_CHANNEL_CONFIG,
250
+ ja as RELEASE_CHANNEL_TYPE,
251
251
  da as RadioGroup,
252
252
  f as SPECIAL_ROUTES,
253
- ae as STORE_CHANNEL_TYPES,
253
+ Va as STORE_CHANNEL_TYPES,
254
254
  x as SourcePublish,
255
255
  ia as StatusTag,
256
256
  S as TREE_PROPS,
@@ -262,7 +262,7 @@ export {
262
262
  q as UploadTypesEnum,
263
263
  Ae as WorkFlowDialog,
264
264
  de as WorkflowComponent,
265
- xa as availableRangeTreeProps,
265
+ ee as availableRangeTreeProps,
266
266
  ho as cancelLanguageChangeListener,
267
267
  g as collapseNodeKeys,
268
268
  $ as convertChildrenToDebugValue,
@@ -284,7 +284,7 @@ export {
284
284
  aa as getAcceptType,
285
285
  Ro as getBackendLanguage,
286
286
  bo as getBrowserLanguage,
287
- ee as getChannelsByType,
287
+ za as getChannelsByType,
288
288
  Bo as getCurrentLocale,
289
289
  Uo as getFeishuInternationalizedFields,
290
290
  A as getFirstLeafMenu,
@@ -317,10 +317,10 @@ export {
317
317
  pa as modelTypeOptions,
318
318
  ua as platformMap,
319
319
  N as processMenuTreeWithLeaf,
320
- Ya as rangeOptions,
320
+ oe as rangeOptions,
321
321
  So as removeSessionStorage,
322
322
  go as removeSessionStorageById,
323
- oe as serviceTypeMap,
323
+ Ka as serviceTypeMap,
324
324
  uo as setIframeRef,
325
325
  Eo as setSessionStorage,
326
326
  vo as setupLanguageChangeListener,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CommonTagsList.css');const B=require("./chunks/index.CkihWzK6.js"),e=require("vue"),u=require("element-plus"),y=require("./chunks/i18n.BZ85a0V6.js"),n=require("./chunks/config.mPIl66vf.js"),N=require("./chunks/index.DxE9b25t.js"),d=require("./chunks/config.DgLqhgX9.js"),v=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),E={class:"status-tag-content flex items-center"},C={class:"status-text fz-12"},L={__name:"StatusTag",props:{channelStatus:{type:[String,Number],default:null},inActive:{type:[String,Number],default:null},statusText:{type:String,default:null},showIcon:{type:Boolean,default:!1}},setup(c){const i=c,o=e.computed(()=>i.inActive===n.INACTIVE_ENUM.UNPUBLISHED?d.PUBLISH_STATUS.UNPUBLISHED:i.channelStatus),_=e.computed(()=>n.PUBLISH_STATUS_TYPE[o.value]),p=e.computed(()=>n.PUBLISH_STATUS_TEXT[o.value]),r=e.computed(()=>n.PUBLISH_STATUS_ICONS[o.value]),S=e.computed(()=>n.PUBLISH_STATUS_COLORS[o.value]);return(a,t)=>(e.openBlock(),e.createBlock(e.unref(u.ElTag),{type:_.value},{default:e.withCtx(()=>[e.createElementVNode("div",E,[c.showIcon&&r.value?(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:0,color:S.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value)))]),_:1},8,["color"])):e.createCommentVNode("",!0),e.createElementVNode("span",C,e.toDisplayString(c.statusText||p.value),1)])]),_:1},8,["type"]))}},f=v._export_sfc(L,[["__scopeId","data-v-6ce5660c"]]),k={class:"commont-status-box"},I={class:"common-content w-full overflow-y-auto",style:{"max-height":"200px"}},b={key:0,class:"content-item"},U={class:"content-item-top flex items-center"},A={class:"item-bottom-box mg-l-4 pd-t-8 flex flex-wrap"},x={key:1,class:"icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea",style:{height:"1px"}},P={key:0,class:"all-visible-ranges-section mg-t-12"},V={class:"channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center"},H={key:0,class:"range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea",style:{height:"1px"}},O=Object.assign({name:"CommonTagsList"},{__name:"layout",props:{publishChannelList:{type:Array,default:()=>[]},sourceType:{type:[String,Number],default:null}},setup(c){const{t:i}=y.useI18n(),o=c,_=e.computed(()=>o.publishChannelList||[]),p=e.computed(()=>{if(!o.publishChannelList?.length)return[];const a=o.publishChannelList.reduce((t,s)=>{const m=s.inActive===n.INACTIVE_ENUM.UNPUBLISHED?d.PUBLISH_STATUS.UNPUBLISHED:s.channelStatus;return t[m]||(t[m]=[]),t[m].push(s),t},{});return Object.entries(a).map(([t,s])=>({status:parseInt(t),channels:s})).sort((t,s)=>s.status-t.status)}),r=e.computed(()=>{if(!o.publishChannelList?.length)return[];const a=i("COMMON_TAGS_LIST.UNKNOWN_CHANNEL");return o.publishChannelList.filter(t=>t.visibleScope&&t.visibleScope.length>0).map(t=>({channelName:n.RELEASE_CHANNEL_CONFIG[t.channelType]?.name(o.sourceType)||a,channelType:t.channelType,visibleScope:t.visibleScope,allVisible:t.allVisible}))}),S=a=>{const t=n.PUBLISH_TYPE_ICON_MAPPING[a];return n.CHANNEL_ICON_CONFIG[t]};return(a,t)=>(e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(s,m)=>(e.openBlock(),e.createBlock(e.unref(u.ElPopover),{key:m,placement:"bottom",trigger:"click",width:"300"},{reference:e.withCtx(()=>[e.createVNode(f,{onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"])),"channel-status":s.channelStatus,"in-active":s.inActive,"status-text":e.unref(n.RELEASE_CHANNEL_CONFIG)?.[s.channelType]?.name(c.sourceType),"show-icon":!0,class:"mg-r-4 mg-b-4"},null,8,["channel-status","in-active","status-text"])]),default:e.withCtx(()=>[e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.status},[l.channels.length>0?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("div",U,[e.createVNode(e.unref(u.ElIcon),{style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.PUBLISH_STATUS_ICONS)[l.status])))]),_:2},1032,["style"]),e.createElementVNode("div",{class:"content-item-name fz-14 mg-l-4",style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[l.status])+"("+e.toDisplayString(l.channels.length)+") ",5)]),e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.channels,T=>(e.openBlock(),e.createElementBlock("div",{class:"b-item-box mg-r-8 radius-4 fz-12 pd-t-4 pd-b-4 pd-l-8 pd-r-8 mg-b-8 text-1f2329 bg-f5f6f7",key:T.channelType},e.toDisplayString(e.unref(n.RELEASE_CHANNEL_CONFIG)?.[T.channelType]?.name(c.sourceType)),1))),128))])])):e.createCommentVNode("",!0),h<p.value.length-1?(e.openBlock(),e.createElementBlock("div",x)):e.createCommentVNode("",!0)],64))),128)),r.value.length>0?(e.openBlock(),e.createElementBlock("div",P,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(l,h)=>(e.openBlock(),e.createElementBlock("div",{key:l.channelType,class:"channel-visible-range"},[e.createElementVNode("div",V,[e.createVNode(e.unref(u.ElIcon),{class:"mg-r-2",size:"14",color:S(l.channelType)?.iconColor},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(l.channelType)?.icon)))]),_:2},1032,["color"]),e.createTextVNode(" "+e.toDisplayString(l.channelName)+" "+e.toDisplayString(e.unref(i)("COMMON_TAGS_LIST.AVAILABLE_SCOPE")),1)]),e.createVNode(e.unref(N.AvailableRangePreview),{"all-visible":l.allVisible,"model-value":l.visibleScope,"tree-list":[],readonly:!0},null,8,["all-visible","model-value"]),h<r.value.length-1?(e.openBlock(),e.createElementBlock("div",H)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])]),_:2},1024))),128)),c.publishChannelList?.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(u.ElTag),{key:0,type:e.unref(n.PUBLISH_STATUS_TYPE)[e.unref(d.PUBLISH_STATUS).UNPUBLISHED]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[e.unref(d.PUBLISH_STATUS).UNPUBLISHED]),1)]),_:1},8,["type"]))]))}}),g=B.withInstall(O);exports.CommonTagsList=g;exports.StatusTag=f;exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/CommonTagsList.css');const B=require("./chunks/index.CkihWzK6.js"),e=require("vue"),i=require("element-plus"),E=require("./chunks/i18n.BZ85a0V6.js"),n=require("./chunks/config.mPIl66vf.js"),N=require("./chunks/index.DxE9b25t.js"),m=require("./chunks/config.DgLqhgX9.js"),y=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),v={class:"status-tag-content flex items-center"},C={class:"status-text fz-12"},L={__name:"StatusTag",props:{channelStatus:{type:[String,Number],default:null},inActive:{type:[String,Number],default:null},statusText:{type:String,default:null},showIcon:{type:Boolean,default:!1}},setup(c){const S=c,s=e.computed(()=>S.inActive===n.INACTIVE_ENUM.UNPUBLISHED?m.PUBLISH_STATUS.UNPUBLISHED:S.channelStatus),h=e.computed(()=>n.PUBLISH_STATUS_TYPE[s.value]),p=e.computed(()=>n.PUBLISH_STATUS_TEXT[s.value]),r=e.computed(()=>n.PUBLISH_STATUS_ICONS[s.value]),d=e.computed(()=>n.PUBLISH_STATUS_COLORS[s.value]);return(a,t)=>(e.openBlock(),e.createBlock(e.unref(i.ElTag),{type:h.value},{default:e.withCtx(()=>[e.createElementVNode("div",v,[c.showIcon&&r.value?(e.openBlock(),e.createBlock(e.unref(i.ElIcon),{key:0,color:d.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value)))]),_:1},8,["color"])):e.createCommentVNode("",!0),e.createElementVNode("span",C,e.toDisplayString(c.statusText||p.value),1)])]),_:1},8,["type"]))}},f=y._export_sfc(L,[["__scopeId","data-v-6ce5660c"]]),I={class:"commont-status-box"},U={class:"common-content w-full overflow-y-auto",style:{"max-height":"200px"}},k={key:0,class:"content-item"},b={class:"content-item-top flex items-center"},A={class:"item-bottom-box mg-l-4 pd-t-8 flex flex-wrap"},P={key:1,class:"icon-placeholder w-full mg-t-4 mg-b-8 bg-e6e8ea",style:{height:"1px"}},x={key:0,class:"all-visible-ranges-section mg-t-12"},H={class:"channel-name fz-12 weight-500 mg-b-4 text-1f2329 flex items-center"},V={key:0,class:"range-separator w-full mg-t-8 mg-b-8 bg-e6e8ea",style:{height:"1px"}},O=Object.assign({name:"CommonTagsList"},{__name:"layout",props:{publishChannelList:{type:Array,default:()=>[]},sourceType:{type:[String,Number],default:null}},setup(c){const{t:S}=E.useI18n(),s=c,h=e.computed(()=>s.publishChannelList||[]),p=e.computed(()=>{if(!s.publishChannelList?.length)return[];const a=s.publishChannelList.reduce((t,o)=>{const u=o.inActive===n.INACTIVE_ENUM.UNPUBLISHED?m.PUBLISH_STATUS.UNPUBLISHED:o.channelStatus;return t[u]||(t[u]=[]),t[u].push(o),t},{});return Object.entries(a).map(([t,o])=>({status:parseInt(t),channels:o})).sort((t,o)=>o.status-t.status)}),r=e.computed(()=>{if(!s.publishChannelList?.length)return[];const a=S("COMMON_TAGS_LIST.UNKNOWN_CHANNEL");return s.publishChannelList.filter(t=>!t.visibleScope||t.visibleScope.length===0?!1:!(t.inActive===n.INACTIVE_ENUM.UNPUBLISHED)&&t.channelStatus===m.PUBLISH_STATUS.PUBLISHED).map(t=>({channelName:n.RELEASE_CHANNEL_CONFIG[t.channelType]?.name(s.sourceType)||a,channelType:t.channelType,visibleScope:t.visibleScope,allVisible:t.allVisible}))}),d=a=>{const t=n.PUBLISH_TYPE_ICON_MAPPING[a];return n.CHANNEL_ICON_CONFIG[t]};return(a,t)=>(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,u)=>(e.openBlock(),e.createBlock(e.unref(i.ElPopover),{key:u,placement:"bottom",trigger:"click",width:"300"},{reference:e.withCtx(()=>[e.createVNode(f,{onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"])),"channel-status":o.channelStatus,"in-active":o.inActive,"status-text":e.unref(n.RELEASE_CHANNEL_CONFIG)?.[o.channelType]?.name(c.sourceType),"show-icon":!0,class:"mg-r-4 mg-b-4"},null,8,["channel-status","in-active","status-text"])]),default:e.withCtx(()=>[e.createElementVNode("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.status},[l.channels.length>0?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",b,[e.createVNode(e.unref(i.ElIcon),{style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.PUBLISH_STATUS_ICONS)[l.status])))]),_:2},1032,["style"]),e.createElementVNode("div",{class:"content-item-name fz-14 mg-l-4",style:e.normalizeStyle({color:e.unref(n.PUBLISH_STATUS_COLORS)[l.status]})},e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[l.status])+"("+e.toDisplayString(l.channels.length)+") ",5)]),e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.channels,T=>(e.openBlock(),e.createElementBlock("div",{class:"b-item-box mg-r-8 radius-4 fz-12 pd-t-4 pd-b-4 pd-l-8 pd-r-8 mg-b-8 text-1f2329 bg-f5f6f7",key:T.channelType},e.toDisplayString(e.unref(n.RELEASE_CHANNEL_CONFIG)?.[T.channelType]?.name(c.sourceType)),1))),128))])])):e.createCommentVNode("",!0),_<p.value.length-1?(e.openBlock(),e.createElementBlock("div",P)):e.createCommentVNode("",!0)],64))),128)),r.value.length>0?(e.openBlock(),e.createElementBlock("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(l,_)=>(e.openBlock(),e.createElementBlock("div",{key:l.channelType,class:"channel-visible-range"},[e.createElementVNode("div",H,[e.createVNode(e.unref(i.ElIcon),{class:"mg-r-2",size:"14",color:d(l.channelType)?.iconColor},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d(l.channelType)?.icon)))]),_:2},1032,["color"]),e.createTextVNode(" "+e.toDisplayString(l.channelName)+" "+e.toDisplayString(e.unref(S)("COMMON_TAGS_LIST.AVAILABLE_SCOPE")),1)]),e.createVNode(e.unref(N.AvailableRangePreview),{"all-visible":l.allVisible,"model-value":l.visibleScope,"tree-list":[],readonly:!0},null,8,["all-visible","model-value"]),_<r.value.length-1?(e.openBlock(),e.createElementBlock("div",V)):e.createCommentVNode("",!0)]))),128))])):e.createCommentVNode("",!0)])]),_:2},1024))),128)),c.publishChannelList?.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(i.ElTag),{key:0,type:e.unref(n.PUBLISH_STATUS_TYPE)[e.unref(m.PUBLISH_STATUS).UNPUBLISHED]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n.PUBLISH_STATUS_TEXT)[e.unref(m.PUBLISH_STATUS).UNPUBLISHED]),1)]),_:1},8,["type"]))]))}}),g=B.withInstall(O);exports.CommonTagsList=g;exports.StatusTag=f;exports.default=g;
@@ -1,2 +1,2 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/DocSyncSelect.css');const ke=require("./chunks/index.CkihWzK6.js"),t=require("vue"),U=require("element-plus"),K=require("color-message-aibox-vue"),ue=require("color-star-custom-components"),Z=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),Oe=require("mitt"),Ae=require("./chunks/i18n.BZ85a0V6.js"),Y={label:"name",children:"children",value:"id"},G={FRONTEND:"frontend",BACKEND:"backend"},_e=["sheet","bitable","doc","docx","wiki"],Me=34,W={MY_FILES:"myFiles",FEISHU_KNOWLEDGE:"feishuKnowledge"},ie=Object.assign({name:"FileTypeIcon"},{__name:"FileTypeIcon",props:{fileType:{type:String,required:!1,default:""},size:{type:Number,default:26}},setup(e){return(s,i)=>e.fileType&&t.unref(_e).includes(e.fileType)?(t.openBlock(),t.createBlock(t.unref(U.ElIcon),{key:0,size:e.size},{default:t.withCtx(()=>[["sheet"].includes(e.fileType)?(t.openBlock(),t.createBlock(t.unref(K.IconFeishuExcel),{key:0})):["bitable"].includes(e.fileType)?(t.openBlock(),t.createBlock(t.unref(K.IconFeishuMulitTable),{key:1})):["doc","docx"].includes(e.fileType)?(t.openBlock(),t.createBlock(t.unref(K.IconFeishuDoc),{key:2})):["wiki"].includes(e.fileType)?(t.openBlock(),t.createBlock(t.unref(K.IconFeishuKnowledge),{key:3})):t.createCommentVNode("",!0)]),_:1},8,["size"])):t.createCommentVNode("",!0)}}),Be={class:"right-wrap"},Le={class:"content"},Re={key:0,class:"empty-state"},Pe={key:1,class:"selected-list"},Fe=["onClick"],je={class:"item-content"},He={class:"item-main"},Ue={class:"doc-icon"},Ke={class:"doc-info"},qe={class:"doc-name"},We={key:0,class:"doc-suffix"},Ye=["onClick"],Xe=Object.assign({name:"RightLayout"},{__name:"RightLayout",props:{selectedDocuments:{type:Array,default:()=>[]},treeProps:{type:Object,default:()=>Y}},emits:["delete-node"],setup(e,{emit:s}){const i=e,n=s,r=t.ref(-1),o=t.computed(()=>i.selectedDocuments.filter(l=>_e.includes(l.type))),c=l=>{r.value=r.value===l?-1:l},a=l=>{n("delete-node",l),r.value=-1};return(l,d)=>(t.openBlock(),t.createElementBlock("div",Be,[t.createElementVNode("div",Le,[o.value.length===0?(t.openBlock(),t.createElementBlock("div",Re,[t.createVNode(t.unref(ue.IconEmpty))])):(t.openBlock(),t.createElementBlock("div",Pe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,(u,p)=>(t.openBlock(),t.createElementBlock("div",{key:u[e.treeProps.value],class:t.normalizeClass(["selected-item",{"is-selected":r.value===p}]),onClick:$=>c(p)},[t.createElementVNode("div",je,[t.createElementVNode("div",He,[t.createElementVNode("div",Ue,[t.createVNode(ie,{"file-type":u.type,size:24},null,8,["file-type"])]),t.createElementVNode("div",Ke,[t.createElementVNode("div",qe,t.toDisplayString(u[e.treeProps.label]),1),u.suffix?(t.openBlock(),t.createElementBlock("div",We,t.toDisplayString(u.suffix),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",{class:"flex items-center",onClick:t.withModifiers($=>a(u),["stop"])},[t.createVNode(t.unref(U.ElIcon),{size:14,color:"var(--neutral-color-5)"},{default:t.withCtx(()=>[t.createVNode(t.unref(K.IconDelete))]),_:1})],8,Ye)])],10,Fe))),128))]))])]))}}),Ge=Z._export_sfc(Xe,[["__scopeId","data-v-3a0b5f7d"]]);function Ze(e){return{name:"element-tree-line",props:{node:{type:Object,required:!0},data:{type:Object},treeData:{type:Array},indent:{type:Number,default(){return 16}},showLabelLine:{type:Boolean,default:!0}},render(s){const i=e||s,n=this.getScopedSlot("default"),r=this.getScopedSlot("node-label"),o=this.getScopedSlot("after-node-label"),c=n?this.getScopedSlotValue(n,{node:this.node,data:this.data}):[r?this.getScopedSlotValue(r,{node:this.node,data:this.data}):i("span",{class:"element-tree-node-label"},this.node.label),this.showLabelLine?i("span",{class:"element-tree-node-label-line"}):null,this.getScopedSlotValue(o,{node:this.node,data:this.data})],a=[];let l=this.node;for(;l;){let u=l.parent;if(l.level===1&&!l.parent){if(!this.treeData||!Array.isArray(this.treeData))throw Error("if you using el-tree-v2 (Virtualized Tree) of element-plus,element-tree-line required data.");u={children:Array.isArray(this.treeData)?this.treeData.map(p=>({...p,key:p.id})):[],level:0,key:"node-0",parent:null}}if(u){const p=(u.children||u.childNodes).findIndex($=>($.key||$.id)===(l.key||l.id));a.unshift(p===(u.children||u.childNodes).length-1)}l=u}const d=[];for(let u=0;u<this.node.level;u++)a[u]&&this.node.level-1!==u||d.push(i("span",{class:{"element-tree-node-line-ver":!0,"last-node-isLeaf-line":a[u]&&this.node.level-1===u},style:{left:this.indent*u+"px"}}));return i("span",{class:"element-tree-node-label-wrapper"},[c].concat(d).concat([i("span",{class:"element-tree-node-line-hor",style:{width:(this.node.isLeaf?24:8)+"px",left:(this.node.level-1)*this.indent+"px"}})]))},methods:{getScopedSlot(s){if(!s)return null;const i=s.split("||");let n=null;for(let r=0;r<i.length;r++){const o=i[r],c=(this.$slots||{})[o];if(c){n=c;break}if(n=(this.$scopedSlots||{})[o],n)break}return n},getScopedSlotValue(s,i,n=null){return typeof s=="function"?s(i)||n:s||n}}}}function he(e){const s=Ze(e);return e&&(s.methods.getScopedSlot=function(n){if(!n)return null;const r=n.split("||");let o=null;for(let c=0;c<r.length;c++){const a=r[c],l=(this.$slots||{})[a];if(l){o=l;break}}return o}),s}he();var Q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ne,ve;function Qe(){if(ve)return ne;ve=1;var e="Expected a function",s=NaN,i="[object Symbol]",n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt,l=typeof Q=="object"&&Q&&Q.Object===Object&&Q,d=typeof self=="object"&&self&&self.Object===Object&&self,u=l||d||Function("return this")(),p=Object.prototype,$=p.toString,v=Math.max,_=Math.min,f=function(){return u.Date.now()};function y(b,A,m){var N,w,g,x,C,O,R=0,H=!1,B=!1,j=!0;if(typeof b!="function")throw new TypeError(e);A=k(A)||0,V(m)&&(H=!!m.leading,B="maxWait"in m,g=B?v(k(m.maxWait)||0,A):g,j="trailing"in m?!!m.trailing:j);function T(L){var F=N,J=w;return N=w=void 0,R=L,x=b.apply(J,F),x}function h(L){return R=L,C=setTimeout(E,A),H?T(L):x}function S(L){var F=L-O,J=L-R,pe=A-F;return B?_(pe,g-J):pe}function z(L){var F=L-O,J=L-R;return O===void 0||F>=A||F<0||B&&J>=g}function E(){var L=f();if(z(L))return M(L);C=setTimeout(E,S(L))}function M(L){return C=void 0,j&&N?T(L):(N=w=void 0,x)}function P(){C!==void 0&&clearTimeout(C),R=0,N=O=w=C=void 0}function X(){return C===void 0?x:M(f())}function q(){var L=f(),F=z(L);if(N=arguments,w=this,O=L,F){if(C===void 0)return h(O);if(B)return C=setTimeout(E,A),T(O)}return C===void 0&&(C=setTimeout(E,A)),x}return q.cancel=P,q.flush=X,q}function V(b){var A=typeof b;return!!b&&(A=="object"||A=="function")}function I(b){return!!b&&typeof b=="object"}function D(b){return typeof b=="symbol"||I(b)&&$.call(b)==i}function k(b){if(typeof b=="number")return b;if(D(b))return s;if(V(b)){var A=typeof b.valueOf=="function"?b.valueOf():b;b=V(A)?A+"":A}if(typeof b!="string")return b===0?b:+b;b=b.replace(n,"");var m=o.test(b);return m||c.test(b)?a(b.slice(2),m?2:8):r.test(b)?s:+b}return ne=y,ne}var et=Qe();const tt=Je(et),Te=e=>e&&Array.isArray(e)&&e.length===1&&e[0]&&typeof e[0]=="object"&&e[0].falseChild===!0,it=e=>!e||!e.children?!0:!Te(e.children),st=(e,s=800)=>tt(i=>{e("search",{keyword:i})},s),ze=(e,s,i)=>!e||!Array.isArray(e)?[]:e.reduce((n,r)=>{const o=r[i.label]?.toLowerCase().includes(s.toLowerCase()),c=r.suffix?.toLowerCase().includes(s.toLowerCase());if(o||c)n.push({...r});else if(r[i.children]){const a=ze(r[i.children],s,i);a.length>0&&n.push({...r,[i.children]:a})}return n},[]),le=(e,s)=>{let i=[];if(!e)return i;const n=e[s.children];if(n&&Array.isArray(n))for(const r of n)i.push(r),i=i.concat(le(r,s));return i},nt=(e,s,i=!1)=>{let n=0;function r(o){for(const c of o){const a=c[s.children]&&c[s.children].length>0;i?n++:a||n++,a&&r(c[s.children])}}return r(e),n},rt=(e,s,i)=>{const n=new Map;function r(o,c=[]){for(const a of o){const l=[...c,a];a.children&&a.children.length>0?r(a.children,l):s.includes(a[i])&&c.forEach(d=>{n.has(d[i])||n.set(d[i],{...d})})}}return r(e),Array.from(n.values())},lt=(e,s)=>{const i=s?.value||"id",n=s?.children||"children",r=new Set,o=c=>{if(Array.isArray(c))for(const a of c){a&&a[i]!=null&&r.add(a[i]);const l=a?.[n];l&&Array.isArray(l)&&l.length>0&&o(l)}};return o(e),r},ye=({tabKey:e,currentSelectedDocs:s,hasSelectToRightDocList:i,treeData:n,treeProps:r})=>{const o=Array.isArray(i)?i:[],c=r?.value,a=(n&&Array.isArray(n[e])?n[e]:[])||[],l=lt(a,r),d=o.filter(u=>!l.has(u?.[c]));return[...s,...d]},ot=(e,s,i)=>{if(!Array.isArray(e)||s==null)return null;const n=i?.value||"id",r=i?.children||"children",o=c=>{for(const a of c){if(a&&a[n]===s)return a;const l=a?.[r];if(Array.isArray(l)&&l.length>0){const d=o(l);if(d)return d}}return null};return o(e)},$e=(e,s)=>{if(!e)return!1;const i=s?.children||"children";if(Te(e[i]))return!0;const n=e[i];if(n&&Array.isArray(n)){for(const r of n)if($e(r,s))return!0}return!1},ge=(e,s)=>e===W.MY_FILES?s?.myFilesHasMore||!1:e===W.FEISHU_KNOWLEDGE&&s?.feishuKnowledgeHasMore||!1,at={class:"w-full h-full flex flex-col overflow-hidden"},ct=Object.assign({name:"TreeSelectLayout"},{__name:"TreeSelectLayout",props:{modelValue:{type:Object,default:()=>[]},treeProps:{type:Object,default:()=>Y},apiConfig:{type:Function},loadNode:{type:Function},reqParams:{type:Object,default:()=>({})},autoLoad:{type:Boolean,default:!0},isMultiple:{type:Boolean,default:!0},hasFilter:{type:Boolean,default:!1},treeList:{type:Array,default:()=>[]},hasTreeLine:{type:Boolean,default:!0},includeParentSelected:{type:Boolean,default:!1},textConfig:{type:Object,default:()=>({searchPlaceholder:""})},getTabSelectedDocuments:{type:Function,default:()=>()=>[]}},emits:["handleCheck","initFinish","node-expand"],setup(e,{expose:s,emit:i}){const n=he(t.h),r=e,o=i,c=t.useAttrs(),a=()=>t.h(K.CaretRight,{style:{color:"var(--text-color-2)",fontSize:"16px"}}),l=r.isMultiple?20:10,d=r.isMultiple?15:11,u=t.ref([]),p=t.ref(null),$=t.ref(null),v=t.computed(()=>r.treeProps.value),_=t.computed(()=>r.treeProps.label),f=t.computed(()=>r.treeProps.children),y=t.ref(!1),V=t.computed(()=>!r.isMultiple&&y.value),I=t.computed(()=>typeof r.apiConfig=="function"),D=()=>{let T=p.value?.getCheckedNodes(),h=T.map(z=>z[v.value]),S=[];return r.includeParentSelected&&(S=rt(u.value,h,v.value)),{selectedNodeValues:h,selectedNodes:T,selectedParentNodes:S}},k=(T,h)=>{w(T,h)},b=T=>{o("node-expand",T)},A=(T,h)=>{r.isMultiple||(y.value=!0,$.value=h.key,o("handleCheck",{selectedValue:[$.value],selectedNode:[h.data]}))};t.ref("");const m=(T,h)=>h[_.value].includes(T),N=t.computed(()=>nt(u.value,r.treeProps,r.includeParentSelected));function w(T=null,h=null){const{selectedNodeValues:S,selectedNodes:z,selectedParentNodes:E}=D();let M=null;if(T&&h){const P=T[v.value];M=h.checkedKeys.includes(P)}o("handleCheck",{selectedValue:S,selectedNode:z,selectedParentNodes:E,checkedNode:T,isChecked:M})}const g=(T,h)=>{p.value?.setChecked(T,h),w()},x=()=>{c["default-checked-keys"]&&t.nextTick(()=>{w()})},C=T=>{p.value&&(!T||T.length===0?p.value?.setCheckedKeys([]):p.value?.setCheckedKeys(T))},O=(T,h)=>{const S=z=>{for(let E=0;E<z.length;E++){const M=z[E];if(M[v.value]===T){const P=R(h);return M[f.value]=P,M.isLeaf=!h||h.length===0,console.log("节点更新后:",{nodeKey:T,childrenLength:P.length,isLeaf:M.isLeaf}),u.value=[...u.value],!0}if(M[f.value]&&M[f.value].length>0&&S(M[f.value]))return!0}return!1};S(u.value)},R=T=>T?.map(h=>({...h,[f.value]:h[f.value]?.length?R(h[f.value]):void 0})),H=async()=>{I.value?r.apiConfig(r.reqParams)?.then(T=>{u.value=R(T?.data?.orgOptionSoList||T?.data||[]),x(),j(r.modelValue),o("initFinish",u.value)}):B()},B=()=>{u.value=R(r.treeList||[]),u.value.length&&(x(),j(r.modelValue))},j=T=>{const h=T&&T.length&&T.map(S=>S[r.treeProps.value]);t.nextTick(()=>{p.value?.setCheckedKeys(h)})};return t.watch(()=>r.treeList,()=>{B()},{deep:!0}),t.watch(()=>r.modelValue,T=>{t.nextTick(()=>{j(T)})},{deep:!0}),t.onMounted(()=>{H()}),s({allNodeNumbers:N,loadData:H,setNodeCheckStatus:g,updateNodeChildren:O,syncSelectedNodes:C}),(T,h)=>(t.openBlock(),t.createElementBlock("div",at,[t.createElementVNode("div",{class:t.normalizeClass([e.hasFilter?"pd-l-8 pd-r-8":"","flex-1 overflow-hidden"])},[t.createVNode(t.unref(U.ElAutoResizer),null,{default:t.withCtx(({width:S,height:z})=>[t.createVNode(t.unref(U.ElTreeV2),t.mergeProps({ref_key:"treeRef",ref:p,height:z,width:S,"check-strictly":!0,data:u.value,props:e.treeProps,"node-key":v.value,"show-checkbox":!0,"item-size":t.unref(Me),indent:t.unref(l),"highlight-current":V.value,icon:a,"filter-method":m,lazy:"",load:e.loadNode},t.unref(c),{onNodeClick:A,onCheck:k,onNodeExpand:b,class:["hide-false-child-checkbox"]}),{default:t.withCtx(({node:E})=>[t.createElementVNode("div",{class:t.normalizeClass(["tree-node-content",{"false-child-node":E.data?.falseChild}])},[t.renderSlot(T.$slots,"node",{node:E,data:E.data},()=>[e.hasTreeLine?(t.openBlock(),t.createBlock(t.unref(n),{key:0,node:E,treeData:u.value,showLabelLine:!1,indent:t.unref(d)},null,8,["node","treeData","indent"])):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(E.data[_.value]),1)],!0)],2)]),empty:t.withCtx(()=>[t.createVNode(t.unref(ue.IconEmpty))]),_:3},16,["height","width","data","props","node-key","item-size","indent","highlight-current","load"])]),_:3})],2)]))}}),dt=Z._export_sfc(ct,[["__scopeId","data-v-258f00ca"]]);function ut(){var e=window.navigator.userAgent,s=e.indexOf("MSIE ");if(s>0)return parseInt(e.substring(s+5,e.indexOf(".",s)),10);var i=e.indexOf("Trident/");if(i>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let ee;function oe(){oe.init||(oe.init=!0,ee=ut()!==-1)}var se={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){oe(),t.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",ee&&this.$el.appendChild(e),e.data="about:blank",ee||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!ee&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ht=t.withScopeId("data-v-b329ee4c");t.pushScopeId("data-v-b329ee4c");const ft={class:"resize-observer",tabindex:"-1"};t.popScopeId();const mt=ht((e,s,i,n,r,o)=>(t.openBlock(),t.createBlock("div",ft)));se.render=mt;se.__scopeId="data-v-b329ee4c";se.__file="src/components/ResizeObserver.vue";function te(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(s){return typeof s}:te=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},te(e)}function pt(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function vt(e,s){for(var i=0;i<s.length;i++){var n=s[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yt(e,s,i){return s&&vt(e.prototype,s),e}function be(e){return gt(e)||bt(e)||St(e)||kt()}function gt(e){if(Array.isArray(e))return ae(e)}function bt(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function St(e,s){if(e){if(typeof e=="string")return ae(e,s);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ae(e,s)}}function ae(e,s){(s==null||s>e.length)&&(s=e.length);for(var i=0,n=new Array(s);i<s;i++)n[i]=e[i];return n}function kt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _t(e){var s;return typeof e=="function"?s={callback:e}:s=e,s}function Tt(e,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,r,o,c=function(l){for(var d=arguments.length,u=new Array(d>1?d-1:0),p=1;p<d;p++)u[p-1]=arguments[p];if(o=u,!(n&&l===r)){var $=i.leading;typeof $=="function"&&($=$(l,r)),(!n||l!==r)&&$&&e.apply(void 0,[l].concat(be(o))),r=l,clearTimeout(n),n=setTimeout(function(){e.apply(void 0,[l].concat(be(o))),n=0},s)}};return c._clear=function(){clearTimeout(n),n=null},c}function Ne(e,s){if(e===s)return!0;if(te(e)==="object"){for(var i in e)if(!Ne(e[i],s[i]))return!1;return!0}return!1}var zt=(function(){function e(s,i,n){pt(this,e),this.el=s,this.observer=null,this.frozen=!1,this.createObserver(i,n)}return yt(e,[{key:"createObserver",value:function(i,n){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=_t(i),this.callback=function(a,l){r.options.callback(a,l),a&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},c=o.leading;this.callback=Tt(this.callback,this.options.throttle,{leading:function(l){return c==="both"||c==="visible"&&l||c==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(a){var l=a[0];if(a.length>1){var d=a.find(function(p){return p.isIntersecting});d&&(l=d)}if(r.callback){var u=l.isIntersecting&&l.intersectionRatio>=r.threshold;if(u===r.oldResult)return;r.oldResult=u,r.callback(u,l)}},this.options.intersection),t.nextTick(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Ie(e,s,i){var n=s.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new zt(e,n,i);e._vue_visibilityState=r}}function $t(e,s,i){var n=s.value,r=s.oldValue;if(!Ne(n,r)){var o=e._vue_visibilityState;if(!n){Ce(e);return}o?o.createObserver(n,i):Ie(e,{value:n},i)}}function Ce(e){var s=e._vue_visibilityState;s&&(s.destroyObserver(),delete e._vue_visibilityState)}var Nt={beforeMount:Ie,updated:$t,unmounted:Ce},It={itemsLimit:1e3},Ct=/(auto|scroll)/;function we(e,s){return e.parentNode===null?s:we(e.parentNode,s.concat([e]))}var re=function(s,i){return getComputedStyle(s,null).getPropertyValue(i)},wt=function(s){return re(s,"overflow")+re(s,"overflow-y")+re(s,"overflow-x")},Dt=function(s){return Ct.test(wt(s))};function Se(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var s=we(e.parentNode,[]),i=0;i<s.length;i+=1)if(Dt(s[i]))return s[i];return document.scrollingElement||document.documentElement}}function ce(e){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ce(e)}var De={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(s){return["vertical","horizontal"].includes(s)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Ee(){return this.items.length&&ce(this.items[0])!=="object"}var de=!1;if(typeof window<"u"){de=!1;try{var Et=Object.defineProperty({},"passive",{get:function(){de=!0}});window.addEventListener("test",null,Et)}catch{}}let xt=0;var fe={name:"RecycleScroller",components:{ResizeObserver:se},directives:{ObserveVisibility:Nt},props:{...De,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},s=this.items,i=this.sizeField,n=this.minItemSize;let r=1e4,o=0,c;for(let a=0,l=s.length;a<l;a++)c=s[a][i]||n,c<r&&(r=c),o+=c,e[a]={accumulator:o,size:c};return this.$_computedMinItemSize=r,e}return[]},simpleArray:Ee,itemIndexByKey(){const{keyField:e,items:s}=this,i={};for(let n=0,r=s.length;n<r;n++)i[s[n][e]]=n;return i}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,s,i,n,r){const o=t.markRaw({id:xt++,index:s,used:!0,key:n,type:r}),c=t.shallowReactive({item:i,position:0,nr:o});return e.push(c),c},unuseView(e,s=!1){const i=this.$_unusedViews,n=e.nr.type;let r=i.get(n);r||(r=[],i.set(n,r)),r.push(e),s||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const s=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:i}=this.updateVisibleItems(!1,!0);i||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});s(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&s()},this.updateInterval))}},handleVisibilityChange(e,s){this.ready&&(e||s.boundingClientRect.width!==0||s.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,s=!1){const i=this.itemSize,n=this.gridItems||1,r=this.itemSecondarySize||i,o=this.$_computedMinItemSize,c=this.typeField,a=this.simpleArray?null:this.keyField,l=this.items,d=l.length,u=this.sizes,p=this.$_views,$=this.$_unusedViews,v=this.pool,_=this.itemIndexByKey;let f,y,V,I,D;if(!d)f=y=I=D=V=0;else if(this.$_prerender)f=I=0,y=D=Math.min(this.prerender,l.length),V=null;else{const g=this.getScroll();if(s){let O=g.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),i===null&&O<o||O<i)return{continuous:!0}}this.$_lastUpdateScrollPosition=g.start;const x=this.buffer;g.start-=x,g.end+=x;let C=0;if(this.$refs.before&&(C=this.$refs.before.scrollHeight,g.start-=C),this.$refs.after){const O=this.$refs.after.scrollHeight;g.end+=O}if(i===null){let O,R=0,H=d-1,B=~~(d/2),j;do j=B,O=u[B].accumulator,O<g.start?R=B:B<d-1&&u[B+1].accumulator>g.start&&(H=B),B=~~((R+H)/2);while(B!==j);for(B<0&&(B=0),f=B,V=u[d-1].accumulator,y=B;y<d&&u[y].accumulator<g.end;y++);for(y===-1?y=l.length-1:(y++,y>d&&(y=d)),I=f;I<d&&C+u[I].accumulator<g.start;I++);for(D=I;D<d&&C+u[D].accumulator<g.end;D++);}else{f=~~(g.start/i*n);const O=f%n;f-=O,y=Math.ceil(g.end/i*n),I=Math.max(0,Math.floor((g.start-C)/i*n)),D=Math.floor((g.end-C)/i*n),f<0&&(f=0),y>d&&(y=d),I<0&&(I=0),D>d&&(D=d),V=Math.ceil(d/n)*i}}y-f>It.itemsLimit&&this.itemsLimitError(),this.totalSize=V;let k;const b=f<=this.$_endIndex&&y>=this.$_startIndex;if(b)for(let g=0,x=v.length;g<x;g++)k=v[g],k.nr.used&&(e&&(k.nr.index=_[k.item[a]]),(k.nr.index==null||k.nr.index<f||k.nr.index>=y)&&this.unuseView(k));const A=b?null:new Map;let m,N,w;for(let g=f;g<y;g++){m=l[g];const x=a?m[a]:m;if(x==null)throw new Error(`Key is ${x} on item (keyField is '${a}')`);if(k=p.get(x),!i&&!u[g].size){k&&this.unuseView(k);continue}N=m[c];let C=$.get(N),O=!1;if(!k)b?C&&C.length?k=C.pop():k=this.addView(v,g,m,x,N):(w=A.get(N)||0,(!C||w>=C.length)&&(k=this.addView(v,g,m,x,N),this.unuseView(k,!0),C=$.get(N)),k=C[w],A.set(N,w+1)),p.delete(k.nr.key),k.nr.used=!0,k.nr.index=g,k.nr.key=x,k.nr.type=N,p.set(x,k),O=!0;else if(!k.nr.used&&(k.nr.used=!0,O=!0,C)){const R=C.indexOf(k);R!==-1&&C.splice(R,1)}k.item=m,O&&(g===l.length-1&&this.$emit("scroll-end"),g===0&&this.$emit("scroll-start")),i===null?(k.position=u[g-1].accumulator,k.offset=0):(k.position=Math.floor(g/n)*i,k.offset=g%n*r)}return this.$_startIndex=f,this.$_endIndex=y,this.emitUpdate&&this.$emit("update",f,y,I,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let e=Se(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:s}=this,i=s==="vertical";let n;if(this.pageMode){const r=e.getBoundingClientRect(),o=i?r.height:r.width;let c=-(i?r.top:r.left),a=i?window.innerHeight:window.innerWidth;c<0&&(a+=c,c=0),c+a>o&&(a=o-c),n={start:c,end:c+a}}else i?n={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:n={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,de?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let s;const i=this.gridItems||1;this.itemSize===null?s=e>0?this.sizes[e-1].accumulator:0:s=Math.floor(e/i)*this.itemSize,this.scrollToPosition(s)},scrollToPosition(e){const s=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let i,n,r;if(this.pageMode){const o=Se(this.$el),c=o.tagName==="HTML"?0:o[s.scroll],a=o.getBoundingClientRect(),d=this.$el.getBoundingClientRect()[s.start]-a[s.start];i=o,n=s.scroll,r=e+c+d}else i=this.$el,n=s.scroll,r=e;i[n]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,s)=>e.nr.index-s.nr.index)}}};const Vt={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Ot={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function At(e,s,i,n,r,o){const c=t.resolveComponent("ResizeObserver"),a=t.resolveDirective("observe-visibility");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue-recycle-scroller",{ready:r.ready,"page-mode":i.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:s[0]||(s[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Vt,[t.renderSlot(e.$slots,"before")],512)):t.createCommentVNode("v-if",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.listTag),{ref:"wrapper",style:t.normalizeStyle({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:t.normalizeClass(["vue-recycle-scroller__item-wrapper",i.listClass])},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.pool,l=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.itemTag),t.mergeProps({key:l.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${l.position}px) translate${e.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:i.gridItems?`${e.direction==="vertical"&&i.itemSecondarySize||i.itemSize}px`:void 0,height:i.gridItems?`${e.direction==="horizontal"&&i.itemSecondarySize||i.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[i.itemClass,{hover:!i.skipHover&&r.hoverKey===l.nr.key}]]},t.toHandlers(i.skipHover?{}:{mouseenter:()=>{r.hoverKey=l.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),t.renderSlot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Ot,[t.renderSlot(e.$slots,"after")],512)):t.createCommentVNode("v-if",!0),t.createVNode(c,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[a,o.handleVisibilityChange]])}fe.render=At;fe.__file="src/components/RecycleScroller.vue";var me={name:"DynamicScroller",components:{RecycleScroller:fe},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const s of e)if(s.target&&s.target.$_vs_onResize){let i,n;if(s.borderBoxSize){const r=s.borderBoxSize[0];i=r.inlineSize,n=r.blockSize}else i=s.contentRect.width,n=s.contentRect.height;s.target.$_vs_onResize(s.target.$_vs_id,i,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...De,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Ee,itemsWithSize(){const e=[],{items:s,keyField:i,simpleArray:n}=this,r=this.vscrollData.sizes,o=s.length;for(let c=0;c<o;c++){const a=s[c],l=n?c:a[i];let d=r[l];typeof d>"u"&&!this.$_undefinedMap[l]&&(d=0),e.push({item:a,id:l,size:d})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,s){const i=this.$el.scrollTop;let n=0,r=0;const o=Math.min(e.length,s.length);for(let a=0;a<o&&!(n>=i);a++)n+=s[a].size||this.minItemSize,r+=e[a].size||this.minItemSize;const c=r-n;c!==0&&(this.$el.scrollTop+=c)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=Oe()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const s=this.$refs.scroller;s&&s.scrollToItem(e)},getItemSize(e,s=void 0){const i=this.simpleArray?s??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[i]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const s=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(s)})};requestAnimationFrame(s)})}}};function Mt(e,s,i,n,r,o){const c=t.resolveComponent("RecycleScroller");return t.openBlock(),t.createBlock(c,t.mergeProps({ref:"scroller",items:o.itemsWithSize,"min-item-size":i.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:t.withCtx(({item:a,index:l,active:d})=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({item:a.item,index:l,active:d,itemWithSize:a})))]),before:t.withCtx(()=>[t.renderSlot(e.$slots,"before")]),after:t.withCtx(()=>[t.renderSlot(e.$slots,"after")]),empty:t.withCtx(()=>[t.renderSlot(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}me.render=Mt;me.__file="src/components/DynamicScroller.vue";var xe={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,s){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const i=this.vscrollData.sizes[s],n=this.vscrollData.sizes[e];i!=null&&i!==n&&this.applySize(i)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const s=this.$el.offsetWidth,i=this.$el.offsetHeight;this.applyWidthHeight(s,i)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,s){const i=~~(this.vscrollParent.direction==="vertical"?s:e);i&&this.size!==i&&this.applySize(i)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,s,i){this.id===e&&this.applyWidthHeight(s,i)}},render(){return t.h(this.tag,this.$slots.default())}};xe.__file="src/components/DynamicScrollerItem.vue";const Bt={key:0,class:"loading-indicator"},Lt={class:"loading-text"},Rt={key:1,class:"no-more-tip"},Pt={key:1,class:"empty-state"},Ft={class:"empty-text"},jt={__name:"ScrollList",props:{items:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},loadingText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"没有更多了"},emptyText:{type:String,default:"暂无数据"},height:{type:String,default:"auto"},minItemSize:{type:Number,default:60},buffer:{type:Number,default:200},threshold:{type:Number,default:100},keyField:{type:String,default:"id"}},emits:["load-more","scroll"],setup(e,{expose:s,emit:i}){const n=e,r=i,o=t.ref(null),c=t.ref(null),a=t.ref(!1);let l=null;const d=t.computed(()=>({height:n.height})),u=()=>{console.log("loadMore triggered----",a.value||!n.hasMore||n.loading),!(a.value||!n.hasMore||n.loading)&&(a.value=!0,r("load-more"))},p=()=>{a.value=!1,$()},$=()=>{o.value&&o.value.scrollToPosition(0)},v=()=>{if(o.value){const I=o.value.$el;I&&(I.scrollTop=I.scrollHeight)}},_=I=>{o.value&&o.value.scrollToItem(I)},f=()=>{if(!c.value||!o.value)return;const I=o.value.$el;if(!I)return;const D={root:I,rootMargin:`${n.threshold}px`,threshold:.1};l=new IntersectionObserver(k=>{k.forEach(b=>{console.log("Setting up Intersection Observer-----",b.isIntersecting,n.hasMore,!a.value,!n.loading),b.isIntersecting&&n.hasMore&&!a.value&&!n.loading&&u()})},D),l.observe(c.value)},y=()=>{l&&(l.disconnect(),l=null)},V=I=>{const D=I.target;r("scroll",{scrollTop:D.scrollTop,scrollHeight:D.scrollHeight,clientHeight:D.clientHeight})};return t.watch(()=>n.loading,I=>{I||(a.value=!1)}),t.watch(()=>n.items.length,async()=>{await t.nextTick(),y(),n.hasMore&&f()}),t.onMounted(async()=>{await t.nextTick(),n.hasMore&&f()}),t.onUnmounted(()=>{y()}),s({reset:p,scrollToTop:$,scrollToBottom:v,scrollToItem:_,loadMore:u}),(I,D)=>{const k=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:"scroll-list",style:t.normalizeStyle(d.value)},[e.items.length>0?(t.openBlock(),t.createBlock(t.unref(me),{key:0,ref_key:"scrollerRef",ref:o,items:e.items,"min-item-size":e.minItemSize,buffer:e.buffer,"key-field":e.keyField,class:"scroller",onScroll:V},{default:t.withCtx(({item:b,index:A,active:m})=>[t.createVNode(t.unref(xe),{item:b,active:m,"data-index":A,"size-dependencies":[b]},{default:t.withCtx(()=>[t.renderSlot(I.$slots,"default",{item:b,index:A,active:m},void 0,!0)]),_:2},1032,["item","active","data-index","size-dependencies"])]),after:t.withCtx(()=>[e.hasMore?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"loadMoreTriggerRef",ref:c,class:"load-more-trigger"},[a.value?(t.openBlock(),t.createElementBlock("div",Bt,[t.createVNode(t.unref(U.ElIcon),{class:"is-loading"},{default:t.withCtx(()=>[t.createVNode(k)]),_:1}),t.createElementVNode("span",Lt,t.toDisplayString(e.loadingText),1)])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),!e.hasMore&&e.items.length>0?(t.openBlock(),t.createElementBlock("div",Rt,t.toDisplayString(e.noMoreText),1)):t.createCommentVNode("",!0)]),_:3},8,["items","min-item-size","buffer","key-field"])):t.createCommentVNode("",!0),e.items.length===0&&!a.value?(t.openBlock(),t.createElementBlock("div",Pt,[t.renderSlot(I.$slots,"empty",{},()=>[t.createVNode(t.unref(U.ElIcon),{class:"empty-icon",size:80},{default:t.withCtx(()=>[t.createVNode(t.unref(K.Empty))]),_:1}),t.createElementVNode("div",Ft,t.toDisplayString(e.emptyText),1)],!0)])):t.createCommentVNode("",!0)],4)}}},Ht=Z._export_sfc(jt,[["__scopeId","data-v-37e01654"]]),Ut={class:"search-wrap"},Kt={class:"list-item"},qt=["onClick"],Wt={class:"node-info"},Yt={class:"node-label"},Xt={key:0,class:"node-suffix"},Gt={__name:"index",props:{items:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},height:{type:String,default:"100%"},minItemSize:{type:Number,default:50},buffer:{type:Number,default:100},treeProps:{type:Object,default:()=>({label:"label",value:"value"})},selectedDocuments:{type:Array,default:()=>[]}},emits:["load-more","item-check"],setup(e,{emit:s}){const{t:i}=Ae.useI18n(),n=e,r=t.computed(()=>n.items.map(l=>{const d=(n.selectedDocuments||[]).some(u=>u.id===l.id);return{...l,isSelected:d}})),o=s,c=(l,d)=>{o("item-check",l,d)},a=()=>{o("load-more")};return(l,d)=>(t.openBlock(),t.createElementBlock("div",Ut,[t.createVNode(Ht,{items:r.value,loading:e.loading,"key-field":"id","has-more":e.hasMore,"loading-text":t.unref(i)("FEISHU_SEARCH_TEXT.LOADING_TEXT"),"no-more-text":t.unref(i)("FEISHU_SEARCH_TEXT.NO_MORE_TEXT"),"empty-text":t.unref(i)("FEISHU_SEARCH_TEXT.EMPTY_TEXT"),height:e.height,"min-item-size":e.minItemSize,buffer:e.buffer,onLoadMore:a},{default:t.withCtx(({item:u})=>[t.createElementVNode("div",Kt,[t.renderSlot(l.$slots,"default",{item:u},()=>[t.createElementVNode("div",{class:"search-item",onClick:()=>c(u,!u.isSelected)},[t.createVNode(t.unref(U.ElCheckbox),{"model-value":u.isSelected},null,8,["model-value"]),t.createVNode(ie,{"file-type":u.type},null,8,["file-type"]),t.createElementVNode("div",Wt,[t.createElementVNode("span",Yt,t.toDisplayString(u[e.treeProps.label]),1),u.suffix?(t.openBlock(),t.createElementBlock("span",Xt,t.toDisplayString(u.suffix),1)):t.createCommentVNode("",!0)])],8,qt)],!0)])]),_:3},8,["items","loading","has-more","loading-text","no-more-text","empty-text","height","min-item-size","buffer"])]))}},Zt=Z._export_sfc(Gt,[["__scopeId","data-v-2133f12b"]]),Jt={class:"left-wrap"},Qt={class:"content"},ei={class:"input-wrap"},ti={class:"tree-container"},ii={class:"tree-node-content"},si={class:"node-info"},ni={class:"node-label"},ri={key:0,class:"node-suffix"},li=15,oi=Object.assign({name:"LeftLayout"},{__name:"LeftLayout",props:{tabs:{type:Array,default:()=>[]},treeData:{type:Object,default:()=>({})},treeProps:{type:Object,default:()=>Y},selectedDocuments:{type:Array,default:()=>[]},currentTab:{type:String,default:""},searchType:{type:String,default:G.FRONTEND,validator:e=>Object.values(G).includes(e)},textConfig:{type:Object,default:()=>({searchPlaceholder:""})},getTabSelectedDocuments:{type:Function,default:()=>()=>[]},responseSearchHook:{type:Object,default:()=>{}}},emits:["node-check","tab-change","search","node-expand","load-more","node-check-search"],setup(e,{expose:s,emit:i}){const n=e,r=i,o=he(t.h),c=t.ref(),a=t.ref(""),l=t.ref(n.currentTab||n.tabs[0]?.value||W.MY_FILES),d=t.ref([]),u=t.ref(!1),p=t.ref(!1),$=t.computed(()=>n.tabs.map(m=>({label:m.label,value:m.value}))),v=t.computed(()=>n.treeData[l.value]||[]);t.watch(()=>n.responseSearchHook,(m,N)=>{p.value=ge(n.currentTab,m),u.value=!1},{deep:!0,immediate:!0});const _=st(r,800),f=t.computed(()=>{if(n.searchType===G.BACKEND)return v.value;const m=a.value?.trim();return m?ze(v.value,m,n.treeProps):v.value}),y=m=>n.getTabSelectedDocuments(l.value).some(w=>w[n.treeProps.value]===m),V=t.computed(()=>{if(!a.value?.trim())return[];const m=(N,w=0)=>{let g=[];return N.forEach(x=>{g.push({...x,level:w,isSelected:y(x[n.treeProps.value])}),x[n.treeProps.children]&&x[n.treeProps.children].length>0&&(g=g.concat(m(x[n.treeProps.children],w+1)))}),g};return m(f.value)}),I=m=>{r("node-check",m)},D=(m,N)=>{const w={selectedNode:n.getTabSelectedDocuments(l.value),checkedNode:m,isChecked:N};r("node-check-search",w)};t.watch(l,m=>{p.value=ge(m,n.responseSearchHook),r("tab-change",m)}),t.watch(()=>n.treeData,()=>{u.value=!1,c.value&&c.value.syncSelectedNodes&&t.nextTick(()=>{const m=(n.selectedDocuments||[]).map(N=>N[n.treeProps.value]);c.value.syncSelectedNodes(m)})},{deep:!0});const k=m=>{it(m)||r("node-expand",{node:m,tabKey:l.value})},b=()=>{u.value=!0,r("load-more")},A=(m,N)=>{c.value&&c.value?.updateNodeChildren&&c.value.updateNodeChildren(m,N)};return t.watch(a,m=>{n.searchType===G.BACKEND?(m&&m.trim()&&(u.value=!0),_(m||"")):u.value=!1}),t.watch(()=>n.currentTab,m=>{m&&m!==l.value&&(l.value=m)},{immediate:!0}),t.watch(()=>n.selectedDocuments,m=>{d.value=m||[]},{immediate:!0,deep:!0}),s({setNodeCheckStatus:(m,N)=>{c.value?.setNodeCheckStatus(m,N)},updateNodeChildren:A,syncSelectedNodes:m=>{c.value?.syncSelectedNodes(m)}}),(m,N)=>(t.openBlock(),t.createElementBlock("div",Jt,[t.createElementVNode("div",Qt,[t.createElementVNode("div",ei,[t.createVNode(t.unref(U.ElInput),{modelValue:a.value,"onUpdate:modelValue":N[0]||(N[0]=w=>a.value=w),placeholder:n.textConfig.searchPlaceholder,"prefix-icon":t.unref(K.Seach),clearable:""},null,8,["modelValue","placeholder","prefix-icon"])]),t.createVNode(t.unref(U.ElSegmented),{modelValue:l.value,"onUpdate:modelValue":N[1]||(N[1]=w=>l.value=w),options:$.value},null,8,["modelValue","options"]),t.createElementVNode("div",ti,[!f.value||f.value.length===0?(t.openBlock(),t.createBlock(t.unref(ue.IconEmpty),{key:0})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.value.trim()!==""?(t.openBlock(),t.createBlock(Zt,{key:0,items:V.value,loading:u.value,"has-more":p.value,"min-item-size":50,buffer:100,"tree-props":e.treeProps,"selected-documents":e.selectedDocuments,onItemCheck:D,onLoadMore:b},null,8,["items","loading","has-more","tree-props","selected-documents"])):(t.openBlock(),t.createBlock(dt,{key:1,modelValue:d.value,"onUpdate:modelValue":N[2]||(N[2]=w=>d.value=w),ref_key:"treeSelectRef",ref:c,"tree-list":f.value,"tree-props":e.treeProps,"filter-keyword":a.value,itemSize:50,hasTreeLine:!0,"text-config":e.textConfig,includeParentSelected:!0,onHandleCheck:I,onNodeExpand:k,getTabSelectedDocuments:e.getTabSelectedDocuments},{node:t.withCtx(({node:w,data:g})=>[t.renderSlot(m.$slots,"node",{node:w,data:g},()=>[t.createVNode(t.unref(o),{node:w,treeData:f.value,showLabelLine:!0,indent:li},{default:t.withCtx(()=>[t.createElementVNode("div",ii,[t.createVNode(ie,{"file-type":g.type,size:24},null,8,["file-type"]),t.createElementVNode("div",si,[t.createElementVNode("span",ni,t.toDisplayString(g[e.treeProps.label]),1),g.suffix?(t.openBlock(),t.createElementBlock("span",ri,t.toDisplayString(g.suffix),1)):t.createCommentVNode("",!0)])])]),_:2},1032,["node","treeData"])],!0)]),_:3},8,["modelValue","tree-list","tree-props","filter-keyword","text-config","getTabSelectedDocuments"]))],64))])])]))}}),ai=Z._export_sfc(oi,[["__scopeId","data-v-9785f33c"]]);function ci(e={}){const{valueKey:s="id"}=e,i=t.ref(new Map),n=t.computed(()=>{const v=[],_=new Set;return i.value.forEach(f=>{f.forEach(y=>{const V=y[s];_.has(V)||(v.push(y),_.add(V))})}),v});return{allSelectedDocuments:n,selectionMap:i,getTabSelectedDocuments:v=>{const _=i.value.get(v);return _?Array.from(_.values()):[]},updateTabSelection:(v,_=[])=>{i.value.has(v)||i.value.set(v,new Map);const f=new Map;_.forEach(y=>{y&&y[s]!=null&&f.set(y[s],y)}),i.value.set(v,f),i.value=new Map(i.value)},removeDocument:v=>{const _=v[s];let f=null;return i.value.forEach((y,V)=>{y.has(_)&&(y.delete(_),f=V)}),f&&(i.value=new Map(i.value)),f},toggleDocument:(v,_,f)=>{i.value.has(v)||i.value.set(v,new Map);const y=i.value.get(v),V=_[s];f?y.set(V,_):y.delete(V),i.value=new Map(i.value)},clearTabSelection:v=>{i.value.has(v)&&(i.value.get(v).clear(),i.value=new Map(i.value))},clearAllSelection:()=>{i.value.clear(),i.value=new Map(i.value)},isDocumentSelected:(v,_)=>{const f=i.value.get(v);return f?f.has(_):!1},setAllDocuments:(v=[],_="")=>{i.value.clear(),v.forEach(f=>{const y=f.tabKey||_;if(!y)return;i.value.has(y)||i.value.set(y,new Map),i.value.get(y).set(f[s],f)}),i.value=new Map(i.value)},getStatistics:()=>{const v={total:n.value.length,byTab:{}};return i.value.forEach((_,f)=>{v.byTab[f]=_.size}),v}}}function di(e={}){const{valueKey:s=Y.value,childrenKey:i=Y.children}=e,n=t.ref(new Map),r=t.ref({}),o=t.computed(()=>{const p={};return n.value.forEach(($,v)=>{p[v]=$}),p});return{allTabDocList:n,allTabTreeDataObject:o,responseSearchHook:r,setAllTabsTreeData:(p={})=>{const $=new Map;p&&typeof p=="object"&&Object.keys(p).forEach(v=>{const _=Array.isArray(p[v])?p[v]:[];$.set(v,_)}),n.value=$},getTabTreeData:p=>n.value.get(p)||[],setTabTreeData:(p,$=[])=>{const v=new Map(n.value);v.set(p,Array.isArray($)?$:[]),n.value=v},updateNodeChildren:(p,$,v=[])=>{const _=n.value.get(p);if(!_||!Array.isArray(_))return;const f=I=>I.map(D=>{if(D[s]===$)return{...D,[i]:v};const k=D[i];return Array.isArray(k)&&k.length>0?{...D,[i]:f(k)}:D}),y=f(_),V=new Map(n.value);V.set(p,y),n.value=V},setResponseSearchHook:p=>{r.value=p}}}const ui={class:"doc-sync-select"},hi=Object.assign({name:"DocSyncSelect"},{__name:"layout",props:{modelValue:{type:Array,default:()=>[]},treeData:{type:Object,default:()=>({})},updateMeta:{type:Object,default:()=>({updateId:"",operation:null,context:{}})},treeProps:{type:Object,default:()=>Y},tabs:{type:Array,default:()=>[]},searchType:{type:String,default:G.FRONTEND,validator:e=>Object.values(G).includes(e)},textConfig:{type:Object,default:()=>({searchPlaceholder:""})}},emits:["update:modelValue","change","search","load-node","recursive-load","load-more"],setup(e,{expose:s,emit:i}){const n=e,r=i,o=t.computed(()=>({...Y,...n.treeProps})),c=t.computed(()=>o.value.value),a=t.computed(()=>o.value.children),l=t.ref(),d=t.ref(n.tabs[0]?.value||""),{allSelectedDocuments:u,getTabSelectedDocuments:p,updateTabSelection:$,removeDocument:v,setAllDocuments:_}=ci({valueKey:o.value.value}),f=(h=u.value)=>{r("update:modelValue",h),r("change",h)},{allTabTreeDataObject:y,setAllTabsTreeData:V,updateNodeChildren:I,responseSearchHook:D,setResponseSearchHook:k}=di({valueKey:c.value,childrenKey:a.value});t.watch(()=>n.treeData,h=>{V(h||{})},{deep:!0,immediate:!0}),t.watch(()=>n.updateMeta,(h,S)=>{if(!h||!h.updateId||h.updateId===(S?.updateId||""))return;const{operation:z,context:E}=h;switch(z){case"node-children-update":R(E);break;case"recursive-load":H(E);break;case"search":case"load-more":B(E);break}},{deep:!0,immediate:!1});const b=t.computed(()=>p(d.value)),A=h=>{d.value=h;const S=p(h);l.value&&l.value.syncSelectedNodes&&t.nextTick(()=>{const z=S.map(E=>E[o.value.value]);l.value.syncSelectedNodes(z)})},m=(h,S,z)=>{t.nextTick(()=>{const E=S||[],P=[...le(h,o.value),h,...E];$(z,P),f()})},N=h=>{let{selectedNode:S,checkedNode:z,isChecked:E}=h;const M=p(d.value);if(S=ye({tabKey:d.value,currentSelectedDocs:[z],treeData:y.value,treeProps:o.value,hasSelectToRightDocList:M}),!E){$(d.value,M.filter(P=>P.id!==z.id)),f();return}$(d.value,[...M,...S]),f()},w=h=>{let{selectedNode:S,checkedNode:z,isChecked:E}=h;const M=p(d.value);if(S=ye({tabKey:d.value,currentSelectedDocs:S,treeData:y.value,treeProps:o.value,hasSelectToRightDocList:M}),!z?.hasChildren){$(d.value,S),f();return}if(!E){const P=le(z,o.value),X=new Set([z[c.value],...P.map(F=>F[c.value])]),L=p(d.value).filter(F=>!X.has(F[c.value]));$(d.value,L),X.forEach(F=>{l.value?.setNodeCheckStatus&&l.value.setNodeCheckStatus(F,!1)}),f();return}if(E&&z&&$e(z,o.value)){C(z);return}else m(z,S||[],d.value)},g=h=>{const S=o.value.value;v(h)===d.value&&l.value&&l.value.setNodeCheckStatus&&l.value.setNodeCheckStatus(h[S],!1),f()},x=({node:h,tabKey:S})=>{let z={};S===W.FEISHU_KNOWLEDGE?z={spaceId:h?.spaceId,parentNodeToken:h?.nodeToken}:S===W.MY_FILES&&(z={folderToken:h?.folderToken}),r("load-node",{nodeKey:h[o.value?.value],nodeData:h,tabKey:S,requestParams:z})},C=h=>{let S={};d.value===W.FEISHU_KNOWLEDGE?S={spaceId:h?.spaceId,parentNodeToken:h?.nodeToken,recursive:!0}:d.value===W.MY_FILES&&(S={folderToken:h?.folderToken,recursive:!0}),r("recursive-load",{nodeKey:h[o.value?.value],nodeData:h,tabKey:d.value,requestParams:S})},O=(h,S)=>{l.value&&l.value.updateNodeChildren&&l.value.updateNodeChildren(h,S),d.value&&I(d.value,h,S)},R=h=>{const{nodeKey:S,newChildren:z}=h;l.value?.updateNodeChildren&&l.value.updateNodeChildren(S,z)},H=h=>{const{nodeKey:S,tabKey:z,newChildren:E,originalNode:M,nodeData:P,error:X}=h;if(X)return;const q=ot(n.treeData[z]||[],M?.id||S,o.value);if(!q)return;const L=p(z||d.value);m(q,L,z||d.value)},B=h=>{const{responseSearch:S}=h;k(S)},j=({keyword:h})=>{r("search",{keyword:h})},T=()=>{r("load-more")};return t.onMounted(()=>{n.modelValue&&n.modelValue.length>0&&_(n.modelValue,d.value)}),t.watch(()=>n.modelValue,(h,S)=>{if(!h||h.length===0){S&&S.length>0&&_([]);return}const z=u.value;z.length===h.length&&h.every(M=>z.some(P=>P[o.value.value]===M[o.value.value]))||_(h,d.value)},{deep:!0}),s({clearSelection:()=>{_([]),f([])},getSelectedDocuments:()=>u.value,setSelectedDocuments:h=>{_(h,d.value),f()},updateNodeChildren:O}),(h,S)=>(t.openBlock(),t.createElementBlock("div",ui,[t.createVNode(ai,{tabs:e.tabs,"tree-data":t.unref(y),"tree-props":o.value,"selected-documents":b.value,"current-tab":d.value,"search-type":e.searchType,"text-config":e.textConfig,"response-search-hook":t.unref(D),ref_key:"leftLayoutRef",ref:l,onNodeCheck:w,onNodeCheckSearch:N,onTabChange:A,onSearch:j,onNodeExpand:x,onLoadMore:T,getTabSelectedDocuments:t.unref(p)},null,8,["tabs","tree-data","tree-props","selected-documents","current-tab","search-type","text-config","response-search-hook","getTabSelectedDocuments"]),t.createVNode(Ge,{"selected-documents":t.unref(u),"tree-props":o.value,onDeleteNode:g},null,8,["selected-documents","tree-props"])]))}}),fi=Z._export_sfc(hi,[["__scopeId","data-v-10c14caa"]]),Ve=ke.withInstall(fi),mi=ke.withInstall(ie);exports.DocSyncSelect=Ve;exports.FileTypeIcon=mi;exports.default=Ve;
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _t(e){var s;return typeof e=="function"?s={callback:e}:s=e,s}function Tt(e,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,r,o,c=function(l){for(var d=arguments.length,u=new Array(d>1?d-1:0),p=1;p<d;p++)u[p-1]=arguments[p];if(o=u,!(n&&l===r)){var $=i.leading;typeof $=="function"&&($=$(l,r)),(!n||l!==r)&&$&&e.apply(void 0,[l].concat(be(o))),r=l,clearTimeout(n),n=setTimeout(function(){e.apply(void 0,[l].concat(be(o))),n=0},s)}};return c._clear=function(){clearTimeout(n),n=null},c}function Ne(e,s){if(e===s)return!0;if(te(e)==="object"){for(var i in e)if(!Ne(e[i],s[i]))return!1;return!0}return!1}var zt=(function(){function e(s,i,n){pt(this,e),this.el=s,this.observer=null,this.frozen=!1,this.createObserver(i,n)}return yt(e,[{key:"createObserver",value:function(i,n){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=_t(i),this.callback=function(a,l){r.options.callback(a,l),a&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},c=o.leading;this.callback=Tt(this.callback,this.options.throttle,{leading:function(l){return c==="both"||c==="visible"&&l||c==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(a){var l=a[0];if(a.length>1){var d=a.find(function(p){return p.isIntersecting});d&&(l=d)}if(r.callback){var u=l.isIntersecting&&l.intersectionRatio>=r.threshold;if(u===r.oldResult)return;r.oldResult=u,r.callback(u,l)}},this.options.intersection),t.nextTick(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Ie(e,s,i){var n=s.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new zt(e,n,i);e._vue_visibilityState=r}}function $t(e,s,i){var n=s.value,r=s.oldValue;if(!Ne(n,r)){var o=e._vue_visibilityState;if(!n){Ce(e);return}o?o.createObserver(n,i):Ie(e,{value:n},i)}}function Ce(e){var s=e._vue_visibilityState;s&&(s.destroyObserver(),delete e._vue_visibilityState)}var Nt={beforeMount:Ie,updated:$t,unmounted:Ce},It={itemsLimit:1e3},Ct=/(auto|scroll)/;function we(e,s){return e.parentNode===null?s:we(e.parentNode,s.concat([e]))}var re=function(s,i){return getComputedStyle(s,null).getPropertyValue(i)},wt=function(s){return re(s,"overflow")+re(s,"overflow-y")+re(s,"overflow-x")},Dt=function(s){return Ct.test(wt(s))};function Se(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var s=we(e.parentNode,[]),i=0;i<s.length;i+=1)if(Dt(s[i]))return s[i];return document.scrollingElement||document.documentElement}}function ce(e){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},ce(e)}var De={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(s){return["vertical","horizontal"].includes(s)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Ee(){return this.items.length&&ce(this.items[0])!=="object"}var de=!1;if(typeof window<"u"){de=!1;try{var Et=Object.defineProperty({},"passive",{get:function(){de=!0}});window.addEventListener("test",null,Et)}catch{}}let xt=0;var fe={name:"RecycleScroller",components:{ResizeObserver:se},directives:{ObserveVisibility:Nt},props:{...De,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},s=this.items,i=this.sizeField,n=this.minItemSize;let r=1e4,o=0,c;for(let a=0,l=s.length;a<l;a++)c=s[a][i]||n,c<r&&(r=c),o+=c,e[a]={accumulator:o,size:c};return this.$_computedMinItemSize=r,e}return[]},simpleArray:Ee,itemIndexByKey(){const{keyField:e,items:s}=this,i={};for(let n=0,r=s.length;n<r;n++)i[s[n][e]]=n;return i}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,s,i,n,r){const o=t.markRaw({id:xt++,index:s,used:!0,key:n,type:r}),c=t.shallowReactive({item:i,position:0,nr:o});return e.push(c),c},unuseView(e,s=!1){const i=this.$_unusedViews,n=e.nr.type;let r=i.get(n);r||(r=[],i.set(n,r)),r.push(e),s||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const s=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:i}=this.updateVisibleItems(!1,!0);i||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});s(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&s()},this.updateInterval))}},handleVisibilityChange(e,s){this.ready&&(e||s.boundingClientRect.width!==0||s.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,s=!1){const i=this.itemSize,n=this.gridItems||1,r=this.itemSecondarySize||i,o=this.$_computedMinItemSize,c=this.typeField,a=this.simpleArray?null:this.keyField,l=this.items,d=l.length,u=this.sizes,p=this.$_views,$=this.$_unusedViews,v=this.pool,_=this.itemIndexByKey;let f,y,V,I,D;if(!d)f=y=I=D=V=0;else if(this.$_prerender)f=I=0,y=D=Math.min(this.prerender,l.length),V=null;else{const g=this.getScroll();if(s){let O=g.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),i===null&&O<o||O<i)return{continuous:!0}}this.$_lastUpdateScrollPosition=g.start;const x=this.buffer;g.start-=x,g.end+=x;let C=0;if(this.$refs.before&&(C=this.$refs.before.scrollHeight,g.start-=C),this.$refs.after){const O=this.$refs.after.scrollHeight;g.end+=O}if(i===null){let O,R=0,H=d-1,B=~~(d/2),j;do j=B,O=u[B].accumulator,O<g.start?R=B:B<d-1&&u[B+1].accumulator>g.start&&(H=B),B=~~((R+H)/2);while(B!==j);for(B<0&&(B=0),f=B,V=u[d-1].accumulator,y=B;y<d&&u[y].accumulator<g.end;y++);for(y===-1?y=l.length-1:(y++,y>d&&(y=d)),I=f;I<d&&C+u[I].accumulator<g.start;I++);for(D=I;D<d&&C+u[D].accumulator<g.end;D++);}else{f=~~(g.start/i*n);const O=f%n;f-=O,y=Math.ceil(g.end/i*n),I=Math.max(0,Math.floor((g.start-C)/i*n)),D=Math.floor((g.end-C)/i*n),f<0&&(f=0),y>d&&(y=d),I<0&&(I=0),D>d&&(D=d),V=Math.ceil(d/n)*i}}y-f>It.itemsLimit&&this.itemsLimitError(),this.totalSize=V;let k;const b=f<=this.$_endIndex&&y>=this.$_startIndex;if(b)for(let g=0,x=v.length;g<x;g++)k=v[g],k.nr.used&&(e&&(k.nr.index=_[k.item[a]]),(k.nr.index==null||k.nr.index<f||k.nr.index>=y)&&this.unuseView(k));const A=b?null:new Map;let m,N,w;for(let g=f;g<y;g++){m=l[g];const x=a?m[a]:m;if(x==null)throw new Error(`Key is ${x} on item (keyField is '${a}')`);if(k=p.get(x),!i&&!u[g].size){k&&this.unuseView(k);continue}N=m[c];let C=$.get(N),O=!1;if(!k)b?C&&C.length?k=C.pop():k=this.addView(v,g,m,x,N):(w=A.get(N)||0,(!C||w>=C.length)&&(k=this.addView(v,g,m,x,N),this.unuseView(k,!0),C=$.get(N)),k=C[w],A.set(N,w+1)),p.delete(k.nr.key),k.nr.used=!0,k.nr.index=g,k.nr.key=x,k.nr.type=N,p.set(x,k),O=!0;else if(!k.nr.used&&(k.nr.used=!0,O=!0,C)){const R=C.indexOf(k);R!==-1&&C.splice(R,1)}k.item=m,O&&(g===l.length-1&&this.$emit("scroll-end"),g===0&&this.$emit("scroll-start")),i===null?(k.position=u[g-1].accumulator,k.offset=0):(k.position=Math.floor(g/n)*i,k.offset=g%n*r)}return this.$_startIndex=f,this.$_endIndex=y,this.emitUpdate&&this.$emit("update",f,y,I,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let e=Se(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:s}=this,i=s==="vertical";let n;if(this.pageMode){const r=e.getBoundingClientRect(),o=i?r.height:r.width;let c=-(i?r.top:r.left),a=i?window.innerHeight:window.innerWidth;c<0&&(a+=c,c=0),c+a>o&&(a=o-c),n={start:c,end:c+a}}else i?n={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:n={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,de?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let s;const i=this.gridItems||1;this.itemSize===null?s=e>0?this.sizes[e-1].accumulator:0:s=Math.floor(e/i)*this.itemSize,this.scrollToPosition(s)},scrollToPosition(e){const s=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let i,n,r;if(this.pageMode){const o=Se(this.$el),c=o.tagName==="HTML"?0:o[s.scroll],a=o.getBoundingClientRect(),d=this.$el.getBoundingClientRect()[s.start]-a[s.start];i=o,n=s.scroll,r=e+c+d}else i=this.$el,n=s.scroll,r=e;i[n]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,s)=>e.nr.index-s.nr.index)}}};const Vt={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Ot={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function At(e,s,i,n,r,o){const c=t.resolveComponent("ResizeObserver"),a=t.resolveDirective("observe-visibility");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue-recycle-scroller",{ready:r.ready,"page-mode":i.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:s[0]||(s[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Vt,[t.renderSlot(e.$slots,"before")],512)):t.createCommentVNode("v-if",!0),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.listTag),{ref:"wrapper",style:t.normalizeStyle({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:t.normalizeClass(["vue-recycle-scroller__item-wrapper",i.listClass])},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.pool,l=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.itemTag),t.mergeProps({key:l.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${l.position}px) translate${e.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:i.gridItems?`${e.direction==="vertical"&&i.itemSecondarySize||i.itemSize}px`:void 0,height:i.gridItems?`${e.direction==="horizontal"&&i.itemSecondarySize||i.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[i.itemClass,{hover:!i.skipHover&&r.hoverKey===l.nr.key}]]},t.toHandlers(i.skipHover?{}:{mouseenter:()=>{r.hoverKey=l.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),t.renderSlot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Ot,[t.renderSlot(e.$slots,"after")],512)):t.createCommentVNode("v-if",!0),t.createVNode(c,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[a,o.handleVisibilityChange]])}fe.render=At;fe.__file="src/components/RecycleScroller.vue";var me={name:"DynamicScroller",components:{RecycleScroller:fe},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const s of e)if(s.target&&s.target.$_vs_onResize){let i,n;if(s.borderBoxSize){const r=s.borderBoxSize[0];i=r.inlineSize,n=r.blockSize}else i=s.contentRect.width,n=s.contentRect.height;s.target.$_vs_onResize(s.target.$_vs_id,i,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...De,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Ee,itemsWithSize(){const e=[],{items:s,keyField:i,simpleArray:n}=this,r=this.vscrollData.sizes,o=s.length;for(let c=0;c<o;c++){const a=s[c],l=n?c:a[i];let d=r[l];typeof d>"u"&&!this.$_undefinedMap[l]&&(d=0),e.push({item:a,id:l,size:d})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,s){const i=this.$el.scrollTop;let n=0,r=0;const o=Math.min(e.length,s.length);for(let a=0;a<o&&!(n>=i);a++)n+=s[a].size||this.minItemSize,r+=e[a].size||this.minItemSize;const c=r-n;c!==0&&(this.$el.scrollTop+=c)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=Oe()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const s=this.$refs.scroller;s&&s.scrollToItem(e)},getItemSize(e,s=void 0){const i=this.simpleArray?s??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[i]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const s=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(s)})};requestAnimationFrame(s)})}}};function Mt(e,s,i,n,r,o){const c=t.resolveComponent("RecycleScroller");return t.openBlock(),t.createBlock(c,t.mergeProps({ref:"scroller",items:o.itemsWithSize,"min-item-size":i.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:t.withCtx(({item:a,index:l,active:d})=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({item:a.item,index:l,active:d,itemWithSize:a})))]),before:t.withCtx(()=>[t.renderSlot(e.$slots,"before")]),after:t.withCtx(()=>[t.renderSlot(e.$slots,"after")]),empty:t.withCtx(()=>[t.renderSlot(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}me.render=Mt;me.__file="src/components/DynamicScroller.vue";var xe={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,s){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const i=this.vscrollData.sizes[s],n=this.vscrollData.sizes[e];i!=null&&i!==n&&this.applySize(i)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const s=this.$el.offsetWidth,i=this.$el.offsetHeight;this.applyWidthHeight(s,i)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,s){const i=~~(this.vscrollParent.direction==="vertical"?s:e);i&&this.size!==i&&this.applySize(i)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,s,i){this.id===e&&this.applyWidthHeight(s,i)}},render(){return t.h(this.tag,this.$slots.default())}};xe.__file="src/components/DynamicScrollerItem.vue";const Bt={key:0,class:"loading-indicator"},Lt={class:"loading-text"},Rt={key:1,class:"no-more-tip"},Pt={key:1,class:"empty-state"},Ft={class:"empty-text"},jt={__name:"ScrollList",props:{items:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},loadingText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"没有更多了"},emptyText:{type:String,default:"暂无数据"},height:{type:String,default:"auto"},minItemSize:{type:Number,default:60},buffer:{type:Number,default:200},threshold:{type:Number,default:100},keyField:{type:String,default:"id"}},emits:["load-more","scroll"],setup(e,{expose:s,emit:i}){const n=e,r=i,o=t.ref(null),c=t.ref(null),a=t.ref(!1);let l=null;const d=t.computed(()=>({height:n.height})),u=()=>{console.log("loadMore triggered----",a.value||!n.hasMore||n.loading),!(a.value||!n.hasMore||n.loading)&&(a.value=!0,r("load-more"))},p=()=>{a.value=!1,$()},$=()=>{o.value&&o.value.scrollToPosition(0)},v=()=>{if(o.value){const I=o.value.$el;I&&(I.scrollTop=I.scrollHeight)}},_=I=>{o.value&&o.value.scrollToItem(I)},f=()=>{if(!c.value||!o.value)return;const I=o.value.$el;if(!I)return;const D={root:I,rootMargin:`${n.threshold}px`,threshold:.1};l=new IntersectionObserver(k=>{k.forEach(b=>{console.log("Setting up Intersection Observer-----",b.isIntersecting,n.hasMore,!a.value,!n.loading),b.isIntersecting&&n.hasMore&&!a.value&&!n.loading&&u()})},D),l.observe(c.value)},y=()=>{l&&(l.disconnect(),l=null)},V=I=>{const D=I.target;r("scroll",{scrollTop:D.scrollTop,scrollHeight:D.scrollHeight,clientHeight:D.clientHeight})};return t.watch(()=>n.loading,I=>{I||(a.value=!1)}),t.watch(()=>n.items.length,async()=>{await t.nextTick(),y(),n.hasMore&&f()}),t.onMounted(async()=>{await t.nextTick(),n.hasMore&&f()}),t.onUnmounted(()=>{y()}),s({reset:p,scrollToTop:$,scrollToBottom:v,scrollToItem:_,loadMore:u}),(I,D)=>{const k=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:"scroll-list",style:t.normalizeStyle(d.value)},[e.items.length>0?(t.openBlock(),t.createBlock(t.unref(me),{key:0,ref_key:"scrollerRef",ref:o,items:e.items,"min-item-size":e.minItemSize,buffer:e.buffer,"key-field":e.keyField,class:"scroller",onScroll:V},{default:t.withCtx(({item:b,index:A,active:m})=>[t.createVNode(t.unref(xe),{item:b,active:m,"data-index":A,"size-dependencies":[b]},{default:t.withCtx(()=>[t.renderSlot(I.$slots,"default",{item:b,index:A,active:m},void 0,!0)]),_:2},1032,["item","active","data-index","size-dependencies"])]),after:t.withCtx(()=>[e.hasMore?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"loadMoreTriggerRef",ref:c,class:"load-more-trigger"},[a.value?(t.openBlock(),t.createElementBlock("div",Bt,[t.createVNode(t.unref(U.ElIcon),{class:"is-loading"},{default:t.withCtx(()=>[t.createVNode(k)]),_:1}),t.createElementVNode("span",Lt,t.toDisplayString(e.loadingText),1)])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),!e.hasMore&&e.items.length>0?(t.openBlock(),t.createElementBlock("div",Rt,t.toDisplayString(e.noMoreText),1)):t.createCommentVNode("",!0)]),_:3},8,["items","min-item-size","buffer","key-field"])):t.createCommentVNode("",!0),e.items.length===0&&!a.value?(t.openBlock(),t.createElementBlock("div",Pt,[t.renderSlot(I.$slots,"empty",{},()=>[t.createVNode(t.unref(U.ElIcon),{class:"empty-icon",size:80},{default:t.withCtx(()=>[t.createVNode(t.unref(K.Empty))]),_:1}),t.createElementVNode("div",Ft,t.toDisplayString(e.emptyText),1)],!0)])):t.createCommentVNode("",!0)],4)}}},Ht=Z._export_sfc(jt,[["__scopeId","data-v-37e01654"]]),Ut={class:"search-wrap"},Kt={class:"list-item"},qt=["onClick"],Wt={class:"node-info"},Yt={class:"node-label"},Xt={key:0,class:"node-suffix"},Gt={__name:"index",props:{items:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},height:{type:String,default:"100%"},minItemSize:{type:Number,default:50},buffer:{type:Number,default:100},treeProps:{type:Object,default:()=>({label:"label",value:"value"})},selectedDocuments:{type:Array,default:()=>[]}},emits:["load-more","item-check"],setup(e,{emit:s}){const{t:i}=Ae.useI18n(),n=e,r=t.computed(()=>n.items.map(l=>{const d=(n.selectedDocuments||[]).some(u=>u.id===l.id);return{...l,isSelected:d}})),o=s,c=(l,d)=>{o("item-check",l,d)},a=()=>{o("load-more")};return(l,d)=>(t.openBlock(),t.createElementBlock("div",Ut,[t.createVNode(Ht,{items:r.value,loading:e.loading,"key-field":"id","has-more":e.hasMore,"loading-text":t.unref(i)("FEISHU_SEARCH_TEXT.LOADING_TEXT"),"no-more-text":t.unref(i)("FEISHU_SEARCH_TEXT.NO_MORE_TEXT"),"empty-text":t.unref(i)("FEISHU_SEARCH_TEXT.EMPTY_TEXT"),height:e.height,"min-item-size":e.minItemSize,buffer:e.buffer,onLoadMore:a},{default:t.withCtx(({item:u})=>[t.createElementVNode("div",Kt,[t.renderSlot(l.$slots,"default",{item:u},()=>[t.createElementVNode("div",{class:"search-item",onClick:()=>c(u,!u.isSelected)},[t.createVNode(t.unref(U.ElCheckbox),{"model-value":u.isSelected},null,8,["model-value"]),t.createVNode(ie,{"file-type":u.type},null,8,["file-type"]),t.createElementVNode("div",Wt,[t.createElementVNode("span",Yt,t.toDisplayString(u[e.treeProps.label]),1),u.suffix?(t.openBlock(),t.createElementBlock("span",Xt,t.toDisplayString(u.suffix),1)):t.createCommentVNode("",!0)])],8,qt)],!0)])]),_:3},8,["items","loading","has-more","loading-text","no-more-text","empty-text","height","min-item-size","buffer"])]))}},Zt=Z._export_sfc(Gt,[["__scopeId","data-v-2133f12b"]]),Jt={class:"left-wrap"},Qt={class:"content"},ei={class:"input-wrap"},ti={class:"tree-container"},ii={class:"tree-node-content"},si={class:"node-info"},ni={class:"node-label"},ri={key:0,class:"node-suffix"},li=15,oi=Object.assign({name:"LeftLayout"},{__name:"LeftLayout",props:{tabs:{type:Array,default:()=>[]},treeData:{type:Object,default:()=>({})},treeProps:{type:Object,default:()=>Y},selectedDocuments:{type:Array,default:()=>[]},currentTab:{type:String,default:""},searchType:{type:String,default:G.FRONTEND,validator:e=>Object.values(G).includes(e)},textConfig:{type:Object,default:()=>({searchPlaceholder:""})},getTabSelectedDocuments:{type:Function,default:()=>()=>[]},responseSearchHook:{type:Object,default:()=>{}}},emits:["node-check","tab-change","search","node-expand","load-more","node-check-search"],setup(e,{expose:s,emit:i}){const n=e,r=i,o=he(t.h),c=t.ref(),a=t.ref(""),l=t.ref(n.currentTab||n.tabs[0]?.value||W.MY_FILES),d=t.ref([]),u=t.ref(!1),p=t.ref(!1),$=t.computed(()=>n.tabs.map(m=>({label:m.label,value:m.value}))),v=t.computed(()=>n.treeData[l.value]||[]);t.watch(()=>n.responseSearchHook,(m,N)=>{p.value=ge(n.currentTab,m),u.value=!1},{deep:!0,immediate:!0});const _=st(r,800),f=t.computed(()=>{if(n.searchType===G.BACKEND)return v.value;const m=a.value?.trim();return m?ze(v.value,m,n.treeProps):v.value}),y=m=>n.getTabSelectedDocuments(l.value).some(w=>w[n.treeProps.value]===m),V=t.computed(()=>{if(!a.value?.trim())return[];const m=(N,w=0)=>{let g=[];return N.forEach(x=>{g.push({...x,level:w,isSelected:y(x[n.treeProps.value])}),x[n.treeProps.children]&&x[n.treeProps.children].length>0&&(g=g.concat(m(x[n.treeProps.children],w+1)))}),g};return m(f.value)}),I=m=>{r("node-check",m)},D=(m,N)=>{const w={selectedNode:n.getTabSelectedDocuments(l.value),checkedNode:m,isChecked:N};r("node-check-search",w)};t.watch(l,m=>{p.value=ge(m,n.responseSearchHook),r("tab-change",m)}),t.watch(()=>n.treeData,()=>{u.value=!1,c.value&&c.value.syncSelectedNodes&&t.nextTick(()=>{const m=(n.selectedDocuments||[]).map(N=>N[n.treeProps.value]);c.value.syncSelectedNodes(m)})},{deep:!0});const k=m=>{it(m)||r("node-expand",{node:m,tabKey:l.value})},b=()=>{u.value=!0,r("load-more")},A=(m,N)=>{c.value&&c.value?.updateNodeChildren&&c.value.updateNodeChildren(m,N)};return t.watch(a,m=>{n.searchType===G.BACKEND?(m&&m.trim()&&(u.value=!0),_(m||"")):u.value=!1}),t.watch(()=>n.currentTab,m=>{m&&m!==l.value&&(l.value=m)},{immediate:!0}),t.watch(()=>n.selectedDocuments,m=>{d.value=m||[]},{immediate:!0,deep:!0}),s({setNodeCheckStatus:(m,N)=>{c.value?.setNodeCheckStatus(m,N)},updateNodeChildren:A,syncSelectedNodes:m=>{c.value?.syncSelectedNodes(m)}}),(m,N)=>(t.openBlock(),t.createElementBlock("div",Jt,[t.createElementVNode("div",Qt,[t.createElementVNode("div",ei,[t.createVNode(t.unref(U.ElInput),{modelValue:a.value,"onUpdate:modelValue":N[0]||(N[0]=w=>a.value=w),placeholder:n.textConfig.searchPlaceholder,"prefix-icon":t.unref(K.Seach),clearable:""},null,8,["modelValue","placeholder","prefix-icon"])]),t.createVNode(t.unref(U.ElSegmented),{modelValue:l.value,"onUpdate:modelValue":N[1]||(N[1]=w=>l.value=w),options:$.value},null,8,["modelValue","options"]),t.createElementVNode("div",ti,[!f.value||f.value.length===0?(t.openBlock(),t.createBlock(t.unref(ue.IconEmpty),{key:0})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.value.trim()!==""?(t.openBlock(),t.createBlock(Zt,{key:0,items:V.value,loading:u.value,"has-more":p.value,"min-item-size":50,buffer:100,"tree-props":e.treeProps,"selected-documents":e.selectedDocuments,onItemCheck:D,onLoadMore:b},null,8,["items","loading","has-more","tree-props","selected-documents"])):(t.openBlock(),t.createBlock(dt,{key:1,modelValue:d.value,"onUpdate:modelValue":N[2]||(N[2]=w=>d.value=w),ref_key:"treeSelectRef",ref:c,"tree-list":f.value,"tree-props":e.treeProps,"filter-keyword":a.value,itemSize:50,hasTreeLine:!0,"text-config":e.textConfig,includeParentSelected:!0,onHandleCheck:I,onNodeExpand:k,getTabSelectedDocuments:e.getTabSelectedDocuments},{node:t.withCtx(({node:w,data:g})=>[t.renderSlot(m.$slots,"node",{node:w,data:g},()=>[t.createVNode(t.unref(o),{node:w,treeData:f.value,showLabelLine:!0,indent:li},{default:t.withCtx(()=>[t.createElementVNode("div",ii,[t.createVNode(ie,{"file-type":g.type,size:24},null,8,["file-type"]),t.createElementVNode("div",si,[t.createElementVNode("span",ni,t.toDisplayString(g[e.treeProps.label]),1),g.suffix?(t.openBlock(),t.createElementBlock("span",ri,t.toDisplayString(g.suffix),1)):t.createCommentVNode("",!0)])])]),_:2},1032,["node","treeData"])],!0)]),_:3},8,["modelValue","tree-list","tree-props","filter-keyword","text-config","getTabSelectedDocuments"]))],64))])])]))}}),ai=Z._export_sfc(oi,[["__scopeId","data-v-9785f33c"]]);function ci(e={}){const{valueKey:s="id"}=e,i=t.ref(new Map),n=t.computed(()=>{const v=[],_=new Set;return i.value.forEach(f=>{f.forEach(y=>{const V=y[s];_.has(V)||(v.push(y),_.add(V))})}),v});return{allSelectedDocuments:n,selectionMap:i,getTabSelectedDocuments:v=>{const _=i.value.get(v);return _?Array.from(_.values()):[]},updateTabSelection:(v,_=[])=>{i.value.has(v)||i.value.set(v,new Map);const f=new Map;_.forEach(y=>{y&&y[s]!=null&&f.set(y[s],y)}),i.value.set(v,f),i.value=new Map(i.value)},removeDocument:v=>{const _=v[s];let f=null;return i.value.forEach((y,V)=>{y.has(_)&&(y.delete(_),f=V)}),f&&(i.value=new Map(i.value)),f},toggleDocument:(v,_,f)=>{i.value.has(v)||i.value.set(v,new Map);const y=i.value.get(v),V=_[s];f?y.set(V,_):y.delete(V),i.value=new Map(i.value)},clearTabSelection:v=>{i.value.has(v)&&(i.value.get(v).clear(),i.value=new Map(i.value))},clearAllSelection:()=>{i.value.clear(),i.value=new Map(i.value)},isDocumentSelected:(v,_)=>{const f=i.value.get(v);return f?f.has(_):!1},setAllDocuments:(v=[],_="")=>{i.value.clear(),v.forEach(f=>{const y=f.tabKey||_;if(!y)return;i.value.has(y)||i.value.set(y,new Map),i.value.get(y).set(f[s],f)}),i.value=new Map(i.value)},getStatistics:()=>{const v={total:n.value.length,byTab:{}};return i.value.forEach((_,f)=>{v.byTab[f]=_.size}),v}}}function di(e={}){const{valueKey:s=Y.value,childrenKey:i=Y.children}=e,n=t.ref(new Map),r=t.ref({}),o=t.computed(()=>{const p={};return n.value.forEach(($,v)=>{p[v]=$}),p});return{allTabDocList:n,allTabTreeDataObject:o,responseSearchHook:r,setAllTabsTreeData:(p={})=>{const $=new Map;p&&typeof p=="object"&&Object.keys(p).forEach(v=>{const _=Array.isArray(p[v])?p[v]:[];$.set(v,_)}),n.value=$},getTabTreeData:p=>n.value.get(p)||[],setTabTreeData:(p,$=[])=>{const v=new Map(n.value);v.set(p,Array.isArray($)?$:[]),n.value=v},updateNodeChildren:(p,$,v=[])=>{const _=n.value.get(p);if(!_||!Array.isArray(_))return;const f=I=>I.map(D=>{if(D[s]===$)return{...D,[i]:v};const k=D[i];return Array.isArray(k)&&k.length>0?{...D,[i]:f(k)}:D}),y=f(_),V=new Map(n.value);V.set(p,y),n.value=V},setResponseSearchHook:p=>{r.value=p}}}const ui={class:"doc-sync-select"},hi=Object.assign({name:"DocSyncSelect"},{__name:"layout",props:{modelValue:{type:Array,default:()=>[]},treeData:{type:Object,default:()=>({})},updateMeta:{type:Object,default:()=>({updateId:"",operation:null,context:{}})},treeProps:{type:Object,default:()=>Y},tabs:{type:Array,default:()=>[]},searchType:{type:String,default:G.FRONTEND,validator:e=>Object.values(G).includes(e)},textConfig:{type:Object,default:()=>({searchPlaceholder:""})}},emits:["update:modelValue","change","search","load-node","recursive-load","load-more"],setup(e,{expose:s,emit:i}){const n=e,r=i,o=t.computed(()=>({...Y,...n.treeProps})),c=t.computed(()=>o.value.value),a=t.computed(()=>o.value.children),l=t.ref(),d=t.ref(n.tabs[0]?.value||""),{allSelectedDocuments:u,getTabSelectedDocuments:p,updateTabSelection:$,removeDocument:v,setAllDocuments:_}=ci({valueKey:o.value.value}),f=(h=u.value)=>{r("update:modelValue",h),r("change",h)},{allTabTreeDataObject:y,setAllTabsTreeData:V,updateNodeChildren:I,responseSearchHook:D,setResponseSearchHook:k}=di({valueKey:c.value,childrenKey:a.value});t.watch(()=>n.treeData,h=>{V(h||{})},{deep:!0,immediate:!0}),t.watch(()=>n.updateMeta,(h,S)=>{if(!h||!h.updateId||h.updateId===(S?.updateId||""))return;const{operation:z,context:E}=h;switch(z){case"node-children-update":R(E);break;case"recursive-load":H(E);break;case"search":case"load-more":B(E);break}},{deep:!0,immediate:!1});const b=t.computed(()=>p(d.value)),A=h=>{d.value=h;const S=p(h);l.value&&l.value.syncSelectedNodes&&t.nextTick(()=>{const z=S.map(E=>E[o.value.value]);l.value.syncSelectedNodes(z)})},m=(h,S,z)=>{t.nextTick(()=>{const E=S||[],P=[...le(h,o.value),h,...E];$(z,P),f()})},N=h=>{let{selectedNode:S,checkedNode:z,isChecked:E}=h;const M=p(d.value);if(S=ye({tabKey:d.value,currentSelectedDocs:[z],treeData:y.value,treeProps:o.value,hasSelectToRightDocList:M}),!E){$(d.value,M.filter(P=>P.id!==z.id)),f();return}$(d.value,[...M,...S]),f()},w=h=>{let{selectedNode:S,checkedNode:z,isChecked:E}=h;const M=p(d.value);if(S=ye({tabKey:d.value,currentSelectedDocs:S,treeData:y.value,treeProps:o.value,hasSelectToRightDocList:M}),!z?.hasChildren){$(d.value,S),f();return}if(!E){const P=le(z,o.value),X=new Set([z[c.value],...P.map(F=>F[c.value])]),L=p(d.value).filter(F=>!X.has(F[c.value]));$(d.value,L),X.forEach(F=>{l.value?.setNodeCheckStatus&&l.value.setNodeCheckStatus(F,!1)}),f();return}if(E&&z&&$e(z,o.value)){C(z);return}else m(z,S||[],d.value)},g=h=>{const S=o.value.value;v(h)===d.value&&l.value&&l.value.setNodeCheckStatus&&l.value.setNodeCheckStatus(h[S],!1),f()},x=({node:h,tabKey:S})=>{let z={};S===W.FEISHU_KNOWLEDGE?z={spaceId:h?.spaceId,parentNodeToken:h?.nodeToken}:S===W.MY_FILES&&(z={folderToken:h?.folderToken}),r("load-node",{nodeKey:h[o.value?.value],nodeData:h,tabKey:S,requestParams:z})},C=h=>{let S={};d.value===W.FEISHU_KNOWLEDGE?S={spaceId:h?.spaceId,parentNodeToken:h?.nodeToken,recursive:!0}:d.value===W.MY_FILES&&(S={folderToken:h?.folderToken,recursive:!0}),r("recursive-load",{nodeKey:h[o.value?.value],nodeData:h,tabKey:d.value,requestParams:S})},O=(h,S)=>{l.value&&l.value.updateNodeChildren&&l.value.updateNodeChildren(h,S),d.value&&I(d.value,h,S)},R=h=>{const{nodeKey:S,newChildren:z}=h;l.value?.updateNodeChildren&&l.value.updateNodeChildren(S,z)},H=h=>{const{nodeKey:S,tabKey:z,newChildren:E,originalNode:M,nodeData:P,error:X}=h;if(X)return;const q=ot(n.treeData[z]||[],M?.id||S,o.value);if(!q)return;const L=p(z||d.value);m(q,L,z||d.value)},B=h=>{const{responseSearch:S}=h;k(S)},j=({keyword:h})=>{r("search",{keyword:h})},T=()=>{r("load-more",d.value)};return t.onMounted(()=>{n.modelValue&&n.modelValue.length>0&&_(n.modelValue,d.value)}),t.watch(()=>n.modelValue,(h,S)=>{if(!h||h.length===0){S&&S.length>0&&_([]);return}const z=u.value;z.length===h.length&&h.every(M=>z.some(P=>P[o.value.value]===M[o.value.value]))||_(h,d.value)},{deep:!0}),s({clearSelection:()=>{_([]),f([])},getSelectedDocuments:()=>u.value,setSelectedDocuments:h=>{_(h,d.value),f()},updateNodeChildren:O}),(h,S)=>(t.openBlock(),t.createElementBlock("div",ui,[t.createVNode(ai,{tabs:e.tabs,"tree-data":t.unref(y),"tree-props":o.value,"selected-documents":b.value,"current-tab":d.value,"search-type":e.searchType,"text-config":e.textConfig,"response-search-hook":t.unref(D),ref_key:"leftLayoutRef",ref:l,onNodeCheck:w,onNodeCheckSearch:N,onTabChange:A,onSearch:j,onNodeExpand:x,onLoadMore:T,getTabSelectedDocuments:t.unref(p)},null,8,["tabs","tree-data","tree-props","selected-documents","current-tab","search-type","text-config","response-search-hook","getTabSelectedDocuments"]),t.createVNode(Ge,{"selected-documents":t.unref(u),"tree-props":o.value,onDeleteNode:g},null,8,["selected-documents","tree-props"])]))}}),fi=Z._export_sfc(hi,[["__scopeId","data-v-c45c2d8e"]]),Ve=ke.withInstall(fi),mi=ke.withInstall(ie);exports.DocSyncSelect=Ve;exports.FileTypeIcon=mi;exports.default=Ve;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/ImageComponent.CdPLM_LX.js");exports.ImageComponent=e.ImageComponent;exports.default=e.ImageComponent;
@@ -1 +1 @@
1
- @charset "UTF-8";.right-wrap[data-v-3a0b5f7d]{height:100%;flex:1;display:flex;flex-direction:column}.right-wrap .content[data-v-3a0b5f7d]{padding:12px;overflow-y:auto}.right-wrap .content .empty-state[data-v-3a0b5f7d]{color:#86909c;text-align:center;padding-top:60px}.right-wrap .content .selected-list[data-v-3a0b5f7d]{height:100%;overflow-y:auto}.right-wrap .content .selected-list .selected-item[data-v-3a0b5f7d]{margin-bottom:8px;cursor:pointer}.right-wrap .content .selected-list .selected-item .item-content[data-v-3a0b5f7d]{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-3a0b5f7d]:hover{background:#eaf0fe}.right-wrap .content .selected-list .selected-item .item-content .item-main[data-v-3a0b5f7d]{flex:1;display:flex;align-items:center;gap:8px}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-icon[data-v-3a0b5f7d]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:4px}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-info[data-v-3a0b5f7d]{flex:1}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-info .doc-name[data-v-3a0b5f7d]{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-3a0b5f7d]{font-size:12px;color:#bbbfc4;line-height:16px;margin-top:2px}.right-wrap .content .selected-list .selected-item .item-content .delete-btn[data-v-3a0b5f7d]{padding:4px;border:none;background:transparent;cursor:pointer}.right-wrap .content .selected-list .selected-item .item-content .delete-btn:hover svg[data-v-3a0b5f7d]{color:#f53f3f!important}.right-wrap .content .selected-list .selected-item.is-selected .item-content[data-v-3a0b5f7d]{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-2133f12b]{height:100%}.search-wrap .list-item[data-v-2133f12b]{border-bottom:1px solid transparent}.search-wrap .list-item .search-item[data-v-2133f12b]{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-2133f12b]:hover{background-color:#eaf0fe}.search-wrap .list-item .search-item[data-v-2133f12b] .el-checkbox,.search-wrap .list-item .search-item .file-type-icon[data-v-2133f12b]{margin-right:8px}.search-wrap .list-item .search-item .node-info[data-v-2133f12b]{flex:1;display:flex;flex-direction:column;padding-left:8px}.search-wrap .list-item .search-item .node-info .node-label[data-v-2133f12b]{font-size:14px;font-weight:400;color:#1f2329;line-height:20px}.search-wrap .list-item .search-item .node-info .node-suffix[data-v-2133f12b]{font-size:12px;color:#bbbfc4;line-height:16px}.left-wrap[data-v-9785f33c]{height:100%;width:50%;display:flex;flex-direction:column}.left-wrap .content[data-v-9785f33c]{height:100%;padding:12px;border-right:1px solid #dee0e3;display:flex;flex-direction:column}.left-wrap .content .input-wrap[data-v-9785f33c]{margin-bottom:14px}.left-wrap .content .input-wrap[data-v-9785f33c] .el-input__wrapper{border-radius:4px}.left-wrap .content[data-v-9785f33c] .el-segmented{width:fit-content!important;display:inline-flex!important;margin-bottom:16px}.left-wrap .content .tree-container[data-v-9785f33c]{flex:1;overflow:hidden;position:relative}.left-wrap .content .tree-container .loading-wrapper[data-v-9785f33c]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10}.left-wrap .content .tree-container[data-v-9785f33c] .element-tree-node-line-ver,.left-wrap .content .tree-container[data-v-9785f33c] .element-tree-node-line-hor{border-color:#dee0e3!important;border-style:solid!important}.left-wrap .content .tree-container[data-v-9785f33c] .el-tree-node__content:hover,.left-wrap .content .tree-container[data-v-9785f33c] .element-tree-node:hover{background-color:#eaf0fe!important}.left-wrap .content .tree-container[data-v-9785f33c] .el-tree-node__content.is-current{background-color:transparent!important}.left-wrap .content .tree-container .tree-node-content[data-v-9785f33c]{display:flex;align-items:center;width:100%}.left-wrap .content .tree-container .tree-node-content .node-info[data-v-9785f33c]{flex:1;display:flex;flex-direction:column;padding-left:8px}.left-wrap .content .tree-container .tree-node-content .node-info .node-label[data-v-9785f33c]{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-9785f33c]{font-size:12px;color:#bbbfc4;line-height:16px}.doc-sync-select[data-v-10c14caa]{width:100%;height:100%;border-radius:4px;border:1px solid #d0d3d6;display:flex;flex-direction:row}
1
+ @charset "UTF-8";.right-wrap[data-v-3a0b5f7d]{height:100%;flex:1;display:flex;flex-direction:column}.right-wrap .content[data-v-3a0b5f7d]{padding:12px;overflow-y:auto}.right-wrap .content .empty-state[data-v-3a0b5f7d]{color:#86909c;text-align:center;padding-top:60px}.right-wrap .content .selected-list[data-v-3a0b5f7d]{height:100%;overflow-y:auto}.right-wrap .content .selected-list .selected-item[data-v-3a0b5f7d]{margin-bottom:8px;cursor:pointer}.right-wrap .content .selected-list .selected-item .item-content[data-v-3a0b5f7d]{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-3a0b5f7d]:hover{background:#eaf0fe}.right-wrap .content .selected-list .selected-item .item-content .item-main[data-v-3a0b5f7d]{flex:1;display:flex;align-items:center;gap:8px}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-icon[data-v-3a0b5f7d]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:4px}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-info[data-v-3a0b5f7d]{flex:1}.right-wrap .content .selected-list .selected-item .item-content .item-main .doc-info .doc-name[data-v-3a0b5f7d]{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-3a0b5f7d]{font-size:12px;color:#bbbfc4;line-height:16px;margin-top:2px}.right-wrap .content .selected-list .selected-item .item-content .delete-btn[data-v-3a0b5f7d]{padding:4px;border:none;background:transparent;cursor:pointer}.right-wrap .content .selected-list .selected-item .item-content .delete-btn:hover svg[data-v-3a0b5f7d]{color:#f53f3f!important}.right-wrap .content .selected-list .selected-item.is-selected .item-content[data-v-3a0b5f7d]{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-2133f12b]{height:100%}.search-wrap .list-item[data-v-2133f12b]{border-bottom:1px solid transparent}.search-wrap .list-item .search-item[data-v-2133f12b]{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-2133f12b]:hover{background-color:#eaf0fe}.search-wrap .list-item .search-item[data-v-2133f12b] .el-checkbox,.search-wrap .list-item .search-item .file-type-icon[data-v-2133f12b]{margin-right:8px}.search-wrap .list-item .search-item .node-info[data-v-2133f12b]{flex:1;display:flex;flex-direction:column;padding-left:8px}.search-wrap .list-item .search-item .node-info .node-label[data-v-2133f12b]{font-size:14px;font-weight:400;color:#1f2329;line-height:20px}.search-wrap .list-item .search-item .node-info .node-suffix[data-v-2133f12b]{font-size:12px;color:#bbbfc4;line-height:16px}.left-wrap[data-v-9785f33c]{height:100%;width:50%;display:flex;flex-direction:column}.left-wrap .content[data-v-9785f33c]{height:100%;padding:12px;border-right:1px solid #dee0e3;display:flex;flex-direction:column}.left-wrap .content .input-wrap[data-v-9785f33c]{margin-bottom:14px}.left-wrap .content .input-wrap[data-v-9785f33c] .el-input__wrapper{border-radius:4px}.left-wrap .content[data-v-9785f33c] .el-segmented{width:fit-content!important;display:inline-flex!important;margin-bottom:16px}.left-wrap .content .tree-container[data-v-9785f33c]{flex:1;overflow:hidden;position:relative}.left-wrap .content .tree-container .loading-wrapper[data-v-9785f33c]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10}.left-wrap .content .tree-container[data-v-9785f33c] .element-tree-node-line-ver,.left-wrap .content .tree-container[data-v-9785f33c] .element-tree-node-line-hor{border-color:#dee0e3!important;border-style:solid!important}.left-wrap .content .tree-container[data-v-9785f33c] .el-tree-node__content:hover,.left-wrap .content .tree-container[data-v-9785f33c] .element-tree-node:hover{background-color:#eaf0fe!important}.left-wrap .content .tree-container[data-v-9785f33c] .el-tree-node__content.is-current{background-color:transparent!important}.left-wrap .content .tree-container .tree-node-content[data-v-9785f33c]{display:flex;align-items:center;width:100%}.left-wrap .content .tree-container .tree-node-content .node-info[data-v-9785f33c]{flex:1;display:flex;flex-direction:column;padding-left:8px}.left-wrap .content .tree-container .tree-node-content .node-info .node-label[data-v-9785f33c]{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-9785f33c]{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}