hzzt-kfb-slide 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/components/{annotateCPG0T3zR.js → annotateFlT59Ud8.js} +1 -1
  2. package/dist/components/annotateJzE3toJV.js +1 -0
  3. package/dist/components/{annotateBZhYifBy.js → annotateR7c0LCw2.js} +1 -1
  4. package/dist/components/annotatemJxZMVPO.js +123 -0
  5. package/dist/components/{arrowDFlQxMKW.js → arrowDHcko1dw.js} +1 -1
  6. package/dist/components/{arrowBJ1_uQ_E.js → arrowDRio3eqx.js} +1 -1
  7. package/dist/components/{arrowDownUoENEig7.js → arrowDownByED8CSr.js} +1 -1
  8. package/dist/components/{arrowDownNi-pK4NR.js → arrowDownDRpTqVDK.js} +1 -1
  9. package/dist/components/{arrowLeftDNerwLPi.js → arrowLeftCl2XVnFB.js} +1 -1
  10. package/dist/components/{arrowLeftBjlKltMm.js → arrowLeftDjcuA_pb.js} +1 -1
  11. package/dist/components/{arrowRightMPKmxcZ8.js → arrowRightClSGs6Mb.js} +1 -1
  12. package/dist/components/{arrowRight44qqQj9S.js → arrowRightDSkHKM4y.js} +1 -1
  13. package/dist/components/{arrowUpDNv09R_q.js → arrowUpCgzq2L8A.js} +1 -1
  14. package/dist/components/{arrowUpu-KhVqDz.js → arrowUpQVIPK_NQ.js} +1 -1
  15. package/dist/components/{channelDTeDAbXs.js → channelCTQgwZV_.js} +1 -1
  16. package/dist/components/{channelCzSNjDqs.js → channelD-dojSaC.js} +1 -1
  17. package/dist/components/{checkDg1XwTUE.js → checkCBxyasVc.js} +1 -1
  18. package/dist/components/{checkD58Lt_t9.js → checkCqCYDYr4.js} +1 -1
  19. package/dist/components/{configFTiUKUAQ.js → configGeQGhW9C.js} +1 -1
  20. package/dist/components/{configDTj11Wdw.js → configP_8ZVyfi.js} +1 -1
  21. package/dist/components/customB1-3lgH0.js +1 -0
  22. package/dist/components/customBr26z068.js +39 -0
  23. package/dist/components/{deleteCeXlMQda.js → deleteBNIxfTCo.js} +1 -1
  24. package/dist/components/{deleteBIUy0hW2.js → deleteuibq0KAI.js} +1 -1
  25. package/dist/components/{dotBcz-OP0B.js → dotBJ-lSESE.js} +1 -1
  26. package/dist/components/dotBucEP5Z8.js +113 -0
  27. package/dist/components/dotDc-QmqaE.js +1 -0
  28. package/dist/components/{dotDpCmvPJC.js → dotDhjymv7s.js} +1 -1
  29. package/dist/components/{downloadBs4QK_IT.js → downloadB5STpOaR.js} +1 -1
  30. package/dist/components/{downloadnu9isJ53.js → downloadBrpaJY3x.js} +1 -1
  31. package/dist/components/downloadDh6wiado.js +1 -0
  32. package/dist/components/downloadDnWeuVMn.js +79 -0
  33. package/dist/components/{flipBwR2T8Rs.js → flipD7XBmACU.js} +1 -1
  34. package/dist/components/{flipvyz7dJPZ.js → flipDlTFW9pO.js} +1 -1
  35. package/dist/components/fullscreenBGej63GA.js +51 -0
  36. package/dist/components/{fullscreenCVgGTPtD.js → fullscreenCxtySrDu.js} +1 -1
  37. package/dist/components/fullscreenOKvUhCk1.js +1 -0
  38. package/dist/components/{fullscreenyNOuxxJv.js → fullscreenoNyXD8h3.js} +1 -1
  39. package/dist/components/indexB0v3MpmE.js +2937 -0
  40. package/dist/components/indexBkFttmTs.js +4 -0
  41. package/dist/components/{infoC4fRWu15.js → infoBjk0dOPE.js} +1 -1
  42. package/dist/components/{infoCDweeRWp.js → infoCA6EWNF3.js} +1 -1
  43. package/dist/components/{levelDjuyEKmz.js → levelCG93ncZs.js} +1 -1
  44. package/dist/components/{levelDjZ5vvyy.js → levelbRjS_tcK.js} +1 -1
  45. package/dist/components/{microscopeDCINdehp.js → microscopeD-EjOdf2.js} +1 -1
  46. package/dist/components/{microscopeDptxRPdj.js → microscopeD-FrVKRB.js} +1 -1
  47. package/dist/components/microscopeDd_Bl9hM.js +1 -0
  48. package/dist/components/microscopey8VfYeuX.js +132 -0
  49. package/dist/components/moveCCkgUb-0.js +74 -0
  50. package/dist/components/{moveB-QJFdLP.js → moveDYmvf7k8.js} +1 -1
  51. package/dist/components/moveQ5bEeY1C.js +1 -0
  52. package/dist/components/{moveCNc2f0wf.js → movebJvf1oPR.js} +1 -1
  53. package/dist/components/{next-o3fIifP.js → nextC6ATDCIW.js} +1 -1
  54. package/dist/components/{nextBX5bmT1e.js → nextDdiDIgB2.js} +1 -1
  55. package/dist/components/{prevDRvSbFTC.js → prevC43MjkJW.js} +1 -1
  56. package/dist/components/{prevkbxOICn5.js → prevD3zqAMQc.js} +1 -1
  57. package/dist/components/{processh0Wf3Q99.js → processCDMD34sa.js} +1 -1
  58. package/dist/components/processD1w3RPEQ.js +1 -0
  59. package/dist/components/{processBHqsEap8.js → processDR1VlciH.js} +65 -62
  60. package/dist/components/{processD06c6uax.js → processDq-wdwXj.js} +1 -1
  61. package/dist/components/{rotateCxZ7Z2pw.js → rotateB2TKrdOd.js} +1 -1
  62. package/dist/components/{rotateCm7bVQY_.js → rotateCVpCm-tK.js} +1 -1
  63. package/dist/components/rotateDEPrY9R8.js +1 -0
  64. package/dist/components/rotateD_vW_yY0.js +131 -0
  65. package/dist/components/{settingCzWjOOeH.js → settingB6ugQHJp.js} +1 -1
  66. package/dist/components/settingCqgEfv1i.js +147 -0
  67. package/dist/components/settingDCqhAo43.js +1 -0
  68. package/dist/components/{settinghh-xgIto.js → settingDgfjjrts.js} +1 -1
  69. package/dist/components/{tailorBalVOrgz.js → tailorCBjKU02K.js} +1 -1
  70. package/dist/components/{tailorCvZYsl2H.js → tailorDzvy19FE.js} +1 -1
  71. package/dist/components/{useCommonDs02MG_d.js → useCommonBD-xKHu3.js} +1 -1
  72. package/dist/components/{useCommonBBhfDvWF.js → useCommonBD90FQd0.js} +1 -1
  73. package/dist/components/zoomB5HF8Hai.js +63 -0
  74. package/dist/components/zoomBcO2XFbA.js +1 -0
  75. package/dist/components/{zoomIn8-tgvQFE.js → zoomInBrNwgimx.js} +1 -1
  76. package/dist/components/{zoomInBFjk_aLI.js → zoomInC3EAqFg-.js} +1 -1
  77. package/dist/components/{zoomOutC4Ami8gE.js → zoomOutDafuMDlQ.js} +1 -1
  78. package/dist/components/{zoomOutD3_PopeU.js → zoomOutGi1JWbc1.js} +1 -1
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.css +1 -1
  81. package/dist/index.es.js +1 -1
  82. package/package.json +3 -4
  83. package/types/components/KfbSlideList.vue.d.ts +6 -3
  84. package/types/components/KfbView/index.d.ts +4 -1
  85. package/types/components/KfbView/index.vue.d.ts +5 -1
  86. package/types/components/KfbView/useLabel.d.ts +3 -84
  87. package/types/components/KfbView/useVoice.d.ts +88 -3
  88. package/types/components/toolbox/useCommon.d.ts +1 -1
  89. package/types/index.d.ts +41 -23
  90. package/types/index.vue.d.ts +15 -8
  91. package/types/instances.d.ts +3 -0
  92. package/types/plugins/i18n.d.ts +2 -2
  93. package/dist/components/annotateCqAOjkGt.js +0 -132
  94. package/dist/components/annotateDfW6BtgB.js +0 -1
  95. package/dist/components/customLw3nDjEr.js +0 -48
  96. package/dist/components/customSv562l99.js +0 -1
  97. package/dist/components/dotC4Q5qfQ3.js +0 -122
  98. package/dist/components/dotDO8OTl1O.js +0 -1
  99. package/dist/components/downloadCyOnwVa8.js +0 -1
  100. package/dist/components/downloadGCe-OpHT.js +0 -88
  101. package/dist/components/fullscreenBeGbvwYS.js +0 -1
  102. package/dist/components/fullscreenDvfoQFJX.js +0 -60
  103. package/dist/components/indexCBVjt8NT.js +0 -4
  104. package/dist/components/indexDOcglE90.js +0 -2948
  105. package/dist/components/microscopeB6hcfWtD.js +0 -1
  106. package/dist/components/microscopeD4o4Sywm.js +0 -129
  107. package/dist/components/moveBM4KQ8bE.js +0 -83
  108. package/dist/components/movemH2hKtp1.js +0 -1
  109. package/dist/components/processBqhO-55V.js +0 -1
  110. package/dist/components/rotateBdsvaWJ_.js +0 -140
  111. package/dist/components/rotateCyw4Ggca.js +0 -1
  112. package/dist/components/settingC3yidTns.js +0 -156
  113. package/dist/components/settingDDEEOrtI.js +0 -1
  114. package/dist/components/zoomCWKzKF3-.js +0 -1
  115. package/dist/components/zoomcWHR4OY6.js +0 -72
@@ -0,0 +1,4 @@
1
+ "use strict";var st=Object.defineProperty,ct=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Te=(d,t,a)=>t in d?st(d,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[t]=a,L=(d,t)=>{for(var a in t||(t={}))dt.call(t,a)&&Te(d,a,t[a]);if(Be)for(var a of Be(t))ft.call(t,a)&&Te(d,a,t[a]);return d},O=(d,t)=>ct(d,ut(t));var Q=(d,t,a)=>new Promise((o,y)=>{var v=m=>{try{s(a.next(m))}catch(g){y(g)}},c=m=>{try{s(a.throw(m))}catch(g){y(g)}},s=m=>m.done?o(m.value):Promise.resolve(m.value).then(v,c);s((a=a.apply(d,t)).next())});const e=require("vue"),C=require("element-plus"),I=require("kfb-view"),vt=require("v-lazy-image");function U(){const d=e.inject("i18n"),t=a=>a;return{locale:d==null?void 0:d.locale,t:(d==null?void 0:d.t)||t}}const mt={install(d,t){d.provide("i18n",t==null?void 0:t.global)}},W=e.ref({annotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateR7c0LCw2.js")))),arrow:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowDHcko1dw.js")))),check:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./checkCBxyasVc.js")))),dot:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotDhjymv7s.js")))),flip:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./flipDlTFW9pO.js")))),info:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./infoCA6EWNF3.js")))),microscope:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopeD-EjOdf2.js")))),move:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveDYmvf7k8.js")))),next:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./nextC6ATDCIW.js")))),prev:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./prevD3zqAMQc.js")))),process:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processDq-wdwXj.js")))),rotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateCVpCm-tK.js")))),fullscreen:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenoNyXD8h3.js")))),setting:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingDgfjjrts.js")))),tailor:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./tailorCBjKU02K.js")))),download:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadBrpaJY3x.js")))),config:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./configP_8ZVyfi.js")))),arrowDown:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowDownByED8CSr.js")))),arrowUp:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowUpQVIPK_NQ.js")))),arrowLeft:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowLeftCl2XVnFB.js")))),arrowRight:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowRightClSGs6Mb.js")))),zoomIn:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomInBrNwgimx.js")))),zoomOut:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomOutDafuMDlQ.js")))),level:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./levelbRjS_tcK.js")))),channel:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./channelD-dojSaC.js")))),delete:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./deleteuibq0KAI.js"))))}),R=e.defineComponent({__name:"KfbIcon",props:{name:{type:[String,Number],required:!0}},setup(d){return(t,a)=>(e.openBlock(),e.createBlock(e.unref(C.ElIcon),e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(W)[d.name])))]),_:1},16))}}),pt={class:"hzzt-kfb-tool-config"},ht={class:"hzzt-kfb-tool-config__title margin-b-2"},gt={class:"hzzt-kfb-tool-config__block flex align-items-center"},wt={class:"hzzt-kfb-tool-config__icon flex align-items-center justify-content-center"},yt={class:"margin-l-4 flex-1"},kt={class:"hzzt-kfb-tool-config__title"},_t={class:"flex align-items-center"},bt={class:"margin-t-2 margin-b-2",style:{width:"160px"}},Ct={class:"flex align-items-center"},Vt={class:"margin-t-2 margin-b-2",style:{width:"160px"}},Et=e.defineComponent({name:"KfbToolConfig",__name:"KfbToolConfig",props:{menus:{default:()=>[]},menusModifiers:{},showText:{type:Boolean},showTextModifiers:{}},emits:["update:menus","update:showText"],setup(d){const t=e.useModel(d,"menus"),a=e.useModel(d,"showText"),{t:o}=U(),y=e.computed(()=>t.value.filter(g=>g.name!=="line"&&g.name!=="config"&&g.name!=="zoom")),v={fullscreen:o("全屏"),next:o("上一张"),prev:o("上一张"),flip:o("镜像翻转"),setting:o("工具"),rotate:o("旋转"),dot:o("打点"),annotate:o("标注"),tailor:o("截图"),process:o("图像处理"),microscope:o("镜下"),move:o("快速移动"),info:o("信息"),download:o("下载")},c=e.inject("show-keyboard",e.ref(!1));function s(g){return g in v}function m(g){var h;return((h=g.props)==null?void 0:h.text)||(s(g.name)?v[g.name]:"")}return(g,h)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("h3",ht,e.toDisplayString(e.unref(o)("显示管理")),1),e.createVNode(e.unref(C.ElRow),{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,n=>(e.openBlock(),e.createBlock(e.unref(C.ElCol),{key:n.name,span:8},{default:e.withCtx(()=>{var l,u;return[e.createElementVNode("div",gt,[e.createElementVNode("div",wt,[(l=n.props)!=null&&l.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((u=n.props)==null?void 0:u.component),{key:1,size:24})):(e.openBlock(),e.createBlock(R,{key:0,size:24,name:n.name},null,8,["name"]))]),e.createElementVNode("p",yt,e.toDisplayString(m(n)),1),e.createVNode(e.unref(C.ElSwitch),{modelValue:n.show,"onUpdate:modelValue":r=>n.show=r,"active-text":"","inactive-text":""},null,8,["modelValue","onUpdate:modelValue"])])]}),_:2},1024))),128))]),_:1}),e.createElementVNode("div",null,[e.createElementVNode("h3",kt,e.toDisplayString(e.unref(o)("其他设置")),1),e.createElementVNode("div",_t,[e.createElementVNode("p",bt,e.toDisplayString(e.unref(o)("工具列表显示切换")),1),e.createVNode(e.unref(C.ElRadioGroup),{modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=n=>a.value=n)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("显示工具名称")),1)]),_:1}),e.createVNode(e.unref(C.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("隐藏工具名称")),1)]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",Ct,[e.createElementVNode("p",Vt,e.toDisplayString(e.unref(o)("小键盘显示切换")),1),e.createVNode(e.unref(C.ElRadioGroup),{modelValue:e.unref(c),"onUpdate:modelValue":h[1]||(h[1]=n=>e.isRef(c)?c.value=n:null)},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("显示小键盘")),1)]),_:1}),e.createVNode(e.unref(C.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("隐藏小键盘")),1)]),_:1})]),_:1},8,["modelValue"])])])]))}}),xt={class:"hzzt-kfb-toolbox"},zt={class:"hzzt-kfb-toolbox__component"},J=e.defineComponent({name:"KfbToolbox",__name:"KfbToolbox",props:{menu:{},process:{},microscope:{},showMenuText:{type:Boolean}},emits:["tool"],setup(d,{emit:t}){const a=d,o=t,{t:y}=U(),v={prev:y("上一张"),next:y("下一张"),config:y("配置"),info:y("信息"),flip:y("镜像"),tailor:y("截图")},c=e.inject("kfbViewRef"),s=e.ref(!1),m=e.ref(a.showMenuText),g=e.ref(l(a.menu)),h={fullscreen:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenOKvUhCk1.js"))),line:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./lineCzuS7Giu.js"))),setting:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingDCqhAo43.js"))),rotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateDEPrY9R8.js"))),dot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotDc-QmqaE.js"))),annotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateJzE3toJV.js"))),process:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processD1w3RPEQ.js"))),microscope:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopeDd_Bl9hM.js"))),move:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveQ5bEeY1C.js"))),custom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./customB1-3lgH0.js"))),zoom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomBcO2XFbA.js"))),download:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadDh6wiado.js")))},n=e.computed(()=>g.value.filter(r=>r.show!==!1).map(r=>({component:h[r.name],props:r.props,slots:r.slots})));e.watch(()=>a.menu,r=>{g.value=l(r)});function l(r){return r.map(i=>{const p=typeof i=="string"?i:i.name;return v[p]?{name:"custom",show:typeof i=="string"?!0:i.show!==!1,props:O(L({text:v[p]},typeof i=="string"?{}:i.props),{name:p,component:e.h(R,{name:p})})}:p==="process"?{name:p,props:typeof i=="string"?{process:a.process}:L({process:a.process},i.props),slots:typeof i=="string"?void 0:i.slots,show:typeof i=="string"?!0:i.show!==!1}:p==="microscope"?{name:p,props:typeof i=="string"?{process:a.process}:L({microscope:a.microscope},i.props),slots:typeof i=="string"?void 0:i.slots,show:typeof i=="string"?!0:i.show!==!1}:{name:p,props:typeof i=="string"?{}:i.props,slots:typeof i=="string"?void 0:i.slots,show:typeof i=="string"?!0:i.show!==!1}})}function u(r,i){const p={annotate:()=>c.value.startDraw(i),tailor:()=>c.value.shotScreen(i),process:()=>c.value.forceRedraw(i),microscope:()=>c.value.scopeChange(i),move:()=>c.value.fastMove(i),endDraw:()=>c.value.endDraw(),info:()=>c.value.info(),zoom:()=>c.value.zoomTo(i),flip:()=>c.value.toggleFlip(i),config:()=>s.value=!0,grid:()=>c.value.updateGrid(i),ruler:()=>c.value.updateGrid(i),graduation:()=>c.value.updateGraduation(i),navigator:()=>c.value.updateNavigator(i),tool:()=>{c.value.updateGrid({show:i}),c.value.updateGraduation({show:i}),c.value.updateGrid({ruler:i}),c.value.updateNavigator(i)}};p[r]?p[r]():o("tool",r,i)}return e.provide("show-text",m),(r,i)=>(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(r.$slots,"left"),e.createElementVNode("div",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(p,w)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.component),e.mergeProps({ref_for:!0},p.props,{key:w,onTool:u}),{default:e.withCtx(()=>[p.slots?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.slots,k=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k)))),256)):e.createCommentVNode("",!0)]),_:2},1040))),128))]),e.renderSlot(r.$slots,"right"),e.createVNode(e.unref(C.ElDialog),{modelValue:s.value,"onUpdate:modelValue":i[2]||(i[2]=p=>s.value=p),width:"800px",title:e.unref(y)("阅片工具设置中心")},{default:e.withCtx(()=>[e.createVNode(Et,{menus:g.value,"onUpdate:menus":i[0]||(i[0]=p=>g.value=p),showText:m.value,"onUpdate:showText":i[1]||(i[1]=p=>m.value=p)},null,8,["menus","showText"])]),_:1},8,["modelValue","title"])]))}}),se="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3e%3cpath%20d='M556.45%20126.8H904.7c31.31%200%2056.26%2025.47%2057.3%2056.78v656.85c-0.68%2031.26-26.03%2056.35-57.3%2056.72H617.28l74.32-291.24-77.38-56.14%2032.3-27.32c8.28-6.66%2015.51-11.46%2025.7-11.46%209.96%200.24%2019.33%204.77%2025.7%2012.45h-0.06l198.87%20214.09-0.58-522.46c-0.75-13.7-12.21-24.35-25.93-24.08H542.45l14-64.19z%20m-118.47%200l-14.01%2064.24H152.41c-13.6%200-24.31%209.84-26.22%2023.44v522.63l242.33-292.28-13.08%2060.14%20204.6%20148.46-62.22%20243.77H118.15a56.398%2056.398%200%200%201-39.86-16.73A56.35%2056.35%200%200%201%2062%20840.43V183.57c0-31.25%2024.89-56.72%2056.14-56.72h319.83v-0.05z%20m203.67%20224.68c-0.86-34.98%2017.31-67.68%2047.47-85.42%2030.16-17.74%2067.56-17.74%2097.73%200%2030.16%2017.74%2048.33%2050.44%2047.47%2085.42%200%2053.22-43.15%2096.37-96.37%2096.37-53.22%200-96.37-43.14-96.37-96.37h0.07z%20m0%200'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e",ce={shape:"50%",width:.3,color:"#FA0404",borderWidth:5},me={r:0,g:0,b:0,c:0,s:0,l:0,ga:1};function Nt(d){const t=e.reactive(L(L({},me),d.process));e.watch(()=>d.process,v=>{y(v)});const a=e.computed(()=>{const v=[1+t.r+t.l+.5*t.c,0,0,0,-.25*t.c],c=[0,1+t.g+t.l+.5*t.c,0,0,-.25*t.c],s=[0,0,1+t.b+t.l+.5*t.c,0,-.25*t.c],m=[0,0,0,1,0];return`${v.join(" ")}
2
+ ${c.join(" ")}
3
+ ${s.join(" ")}
4
+ ${m.join(" ")}`}),o=e.computed(()=>String(1+t.s));function y(v){v&&Object.assign(t,v)}return{imageProcess:t,matrixValues:a,saturateValues:o,forceRedraw:y}}function Bt(d,t){function a(){t.value.$on(I.KfbView.events.EVENT_TAILORING_SCREENSHOT,o)}function o({base64:c,region:s}){if(window.ClipboardItem&&(navigator!=null&&navigator.clipboard)){const m=y(c,"image/png");navigator.clipboard.write([new window.ClipboardItem({[m.type]:m})])}d("tool","screen-shot",{base64:c,region:s})}function y(c,s){var l,u;const m=c.split(",");(u=(l=m[0])==null?void 0:l.match(/:(.*?);/))==null||u[1];const g=atob(m==null?void 0:m[1]);let h=g.length;const n=new Uint8Array(h);for(;h--;)n[h]=g.charCodeAt(h);return new Blob([n],{type:s})}function v(c){const{width:s,height:m}=t.value.$options;c?s>m?t.value.tailoring.init({left:(s-m)/2,top:0,height:m,width:m,now:!0}):t.value.tailoring.init({left:0,top:(m-s)/2,height:s,width:s,now:!0}):t.value.tailoring.init({left:s/2-100,top:m/2-100,height:200,width:200,color:"#ff0000"})}return{tailorEvent:a,shotScreen:v}}const Se="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e@font-face%20{%20font-family:%20feedback-iconfont;%20src:%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944')%20format('woff2'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944')%20format('woff'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944')%20format('truetype');%20}%20%3c/style%3e%3c/defs%3e%3cpath%20fill='currentColor'%20d='M848%20432a80.064%2080.064%200%200%200-73.216%2048H217.216A80.096%2080.096%200%200%200%20144%20432%2080.096%2080.096%200%200%200%2064%20512c0%2044.128%2035.904%2080%2080%2080A80%2080%200%200%200%20217.216%20544h557.536a80%2080%200%200%200%2073.216%2048c44.128%200%2080-35.872%2080-80a80.032%2080.032%200%200%200-79.968-80z'%20%3e%3c/path%3e%3c/svg%3e",Le="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e@font-face%20{%20font-family:%20feedback-iconfont;%20src:%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944')%20format('woff2'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944')%20format('woff'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944')%20format('truetype');%20}%20%3c/style%3e%3c/defs%3e%3cpath%20fill='currentColor'%20d='M462%20881V81c0-27.6%2022.4-50%2050-50s50%2022.4%2050%2050v800c0%2027.6-22.4%2050-50%2050s-50-22.4-50-50z'%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M483.3%20907.6l212.1-212.1c19.5-19.5%2051.2-19.5%2070.7%200s19.5%2051.2%200%2070.7L554%20978.4c-19.5%2019.5-51.2%2019.5-70.7%200-19.6-19.6-19.6-51.2%200-70.8z'%20%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M328.6%20695.5l212.1%20212.1c19.5%2019.5%2019.5%2051.2%200%2070.7s-51.2%2019.5-70.7%200L257.9%20766.2c-19.5-19.5-19.5-51.2%200-70.7s51.2-19.5%2070.7%200z'%20%3e%3c/path%3e%3c/svg%3e",$e="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e@font-face%20{%20font-family:%20feedback-iconfont;%20src:%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944')%20format('woff2'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944')%20format('woff'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944')%20format('truetype');%20}%20%3c/style%3e%3c/defs%3e%3cpath%20fill='currentColor'%20d='M474.3%20480.7L113.9%20836.6c-20.2%2019-21.2%2050.7-2.3%2071%200.7%200.8%201.5%201.5%202.3%202.3%209.5%2010.4%2023%2016.1%2037.1%2015.7%2014.1%200.4%2027.6-5.3%2037.1-15.7l323.3-319.1%20323.3%20319.1c9.5%2010.4%2023.1%2016.1%2037.1%2015.7%2014.1%200.4%2027.6-5.3%2037.1-15.7%2020.2-19%2021.2-50.7%202.3-71-0.7-0.8-1.5-1.5-2.3-2.3L548.5%20480.7c-19.9-20.5-52.6-21-73.1-1.1-0.4%200.3-0.8%200.7-1.1%201.1z%20m0-366.3L113.9%20470.2c-20.2%2019-21.2%2050.7-2.3%2071%200.7%200.8%201.5%201.5%202.3%202.3%209.5%2010.4%2023%2016.1%2037.1%2015.7%2014.1%200.4%2027.6-5.3%2037.1-15.6l323.3-319.2%20323.3%20319.2c9.5%2010.4%2023.1%2016.1%2037.1%2015.6%2014%200.4%2027.6-5.3%2037.1-15.6%2020.2-19%2021.2-50.7%202.3-71-0.7-0.8-1.5-1.5-2.3-2.3L548.5%20114.4c-19.9-20.5-52.6-21-73.1-1.1l-1.1%201.1z'%3e%3c/path%3e%3c/svg%3e",Me="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='333.426'%20height='331.939'%20viewBox='0%200%20333.426%20331.939'%3e%3cg%20id='_10矩形'%20transform='translate(-63.7%20-66.2)'%3e%3cpath%20fill='currentColor'%20id='路径_2'%20d='M205.976,168.3H378.8v13.786H205.976Zm0,242.015H378.8V424.1H205.976ZM165.812,381.07V208.245H179.6V381.07Zm243.5,0V208.244H423.1V381.07Z'%20transform='translate(-64.168%20-64.161)'/%3e%3cpath%20fill='currentColor'%20id='路径_3'%20d='M108.662,66.2a44.962,44.962,0,1,0,44.962,44.962A44.975,44.975,0,0,0,108.662,66.2Zm-.037,75.618a30.73,30.73,0,1,1,30.73-30.73A30.718,30.718,0,0,1,108.625,141.818Zm.037,166.4a44.962,44.962,0,1,0,44.962,44.962,44.975,44.975,0,0,0-44.962-44.962Zm-.037,75.655a30.73,30.73,0,1,1,30.73-30.73A30.718,30.718,0,0,1,108.625,383.87Zm243.539-75.655a44.962,44.962,0,1,0,44.962,44.962A44.975,44.975,0,0,0,352.164,308.215Zm-.037,75.655a30.73,30.73,0,1,1,30.73-30.73A30.718,30.718,0,0,1,352.126,383.87Zm.037-317.67a44.962,44.962,0,1,0,44.962,44.962A44.975,44.975,0,0,0,352.164,66.2Zm-.037,75.618a30.73,30.73,0,1,1,30.73-30.73A30.718,30.718,0,0,1,352.126,141.818Z'/%3e%3c/g%3e%3c/svg%3e",Pe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='333'%20height='332'%20viewBox='0%200%20333%20332'%3e%3cg%20id='椭圆_1'%20fill='none'%20stroke='currentColor'%20stroke-width='30'%3e%3cellipse%20cx='166.5'%20cy='166'%20rx='156.5'%20ry='156'%20stroke='none'/%3e%3cellipse%20cx='166.5'%20cy='166'%20rx='149'%20ry='148.5'%20fill='none'/%3e%3c/g%3e%3c/svg%3e",Ie="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='322.663'%20height='322.663'%20viewBox='0%200%20322.663%20144.368'%3e%3cg%20id='组_1'%20transform='translate(-17.337%20-208.632)'%3e%3cpath%20id='路径_1'%20d='M21,254.606s69.664-74.994,139.621-8.395'%20fill='none'%20stroke='currentColor'%20stroke-width='20'/%3e%3cg%20id='椭圆_2'%20transform='translate(153%20233)'%20fill='%23fff'%20stroke='currentColor'%20stroke-width='20'%3e%3ccircle%20cx='22.5'%20cy='22.5'%20r='25.5'%20stroke='none'/%3e%3ccircle%20cx='22.5'%20cy='22.5'%20r='22.5'%20fill='none'/%3e%3c/g%3e%3cpath%20id='路径_2'%20d='M187.5,274.23s15.48,96.483,113.05,65.285'%20transform='translate(-4.814%20-5.239)'%20fill='none'%20stroke='currentColor'%20stroke-width='20'/%3e%3cg%20id='椭圆_3'%20transform='translate(295%20308)'%20fill='%23fff'%20stroke='currentColor'%20stroke-width='20'%3e%3ccircle%20cx='12.5'%20cy='12.5'%20r='22.5'%20stroke='none'/%3e%3ccircle%20cx='12.5'%20cy='12.5'%20r='22.5'%20fill='none'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",De="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e@font-face%20{%20font-family:%20feedback-iconfont;%20src:%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944')%20format('woff2'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944')%20format('woff'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944')%20format('truetype');%20}%20%3c/style%3e%3c/defs%3e%3cpath%20fill='currentColor'%20d='M575.852903%20115.426402L661.092435%20288.054362c10.130509%2020.465674%2029.675227%2034.689317%2052.289797%2037.963825l190.433097%2027.62866c56.996902%208.288598%2079.7138%2078.281203%2038.475467%20118.496253l-137.836314%20134.35715c-16.372539%2015.963226-23.84251%2038.987109-19.954032%2061.49935l32.540421%20189.716799c9.721195%2056.792245-49.833916%20100.077146-100.793444%2073.267113L545.870691%20841.446188a69.491196%2069.491196%200%200%200-64.67153%200l-170.376737%2089.537324c-50.959528%2026.810033-110.51464-16.474868-100.793444-73.267113L242.569401%20667.9996c3.888478-22.512241-3.581493-45.536125-19.954032-61.49935L84.779055%20472.245428c-41.238333-40.215049-18.521435-110.207655%2038.475467-118.496252l190.433097-27.62866c22.61457-3.274508%2042.159288-17.498151%2052.289797-37.963826L451.319277%20115.426402c25.479764-51.675827%2099.053862-51.675827%20124.533626%200z'%20%3e%3c/path%3e%3c/svg%3e",Ae="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='320.756'%20height='350.074'%20viewBox='0%200%20320.756%20350.074'%3e%3cpath%20fill='currentColor'%20id='排除_1'%20d='M21.624,350.074a22.1,22.1,0,0,1-7.779-1.492A24.658,24.658,0,0,1,6.9,344.519,20.489,20.489,0,0,1,1.912,338.5,15.465,15.465,0,0,1,0,331.144V18.933a15.279,15.279,0,0,1,1.952-7.376A20.6,20.6,0,0,1,7.032,5.54,25.191,25.191,0,0,1,14.07,1.486,22.529,22.529,0,0,1,21.9,0a22.226,22.226,0,0,1,7.777,1.488,24.613,24.613,0,0,1,6.944,4.054,20.429,20.429,0,0,1,4.989,6.017,15.515,15.515,0,0,1,1.912,7.376v312.2a15.216,15.216,0,0,1-1.956,7.358,20.7,20.7,0,0,1-5.085,6.019,25.282,25.282,0,0,1-7.039,4.064A22.421,22.421,0,0,1,21.624,350.074ZM320.756,205.783H60.764L61.02,17.351l259.736,1.585v.728l-63.48,96.82,63.48,88.425v.873h0Z'%20transform='translate(0)'/%3e%3c/svg%3e",Re="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e@font-face%20{%20font-family:%20feedback-iconfont;%20src:%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944')%20format('woff2'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944')%20format('woff'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944')%20format('truetype');%20}%20%3c/style%3e%3c/defs%3e%3cpath%20fill='currentColor'%20d='M512%20690a112%20112%200%201%200%200-350%20112%20112%200%200%200%200%20350z'%3e%3c/path%3e%3c/svg%3e",He="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e@font-face%20{%20font-family:%20feedback-iconfont;%20src:%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944')%20format('woff2'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944')%20format('woff'),%20url('//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944')%20format('truetype');%20}%20%3c/style%3e%3c/defs%3e%3cpath%20d='M563.2%20281.6V870.4a51.2%2051.2%200%200%201-102.4%200V281.6H179.2a51.2%2051.2%200%201%201%200-102.4h665.6a51.2%2051.2%200%200%201%200%20102.4H563.2z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",Fe="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%3e%3cpath%20d='M515.041727%20670.617766c91.584167%200%20166.095647-74.504255%20166.095647-166.095646V229.350568c0-91.584167-74.51148-166.095647-166.095647-166.095647-91.598617%200-166.102872%2074.51148-166.102871%20166.095647V504.52212c0%2091.591392%2074.504255%20166.095647%20166.102871%20166.095646z'%20fill='currentColor'%3e%3c/path%3e%3cpath%20d='M801.643237%20874.001665H558.391759v-45.423608c161.507768-21.313766%20286.60151-159.788217%20286.60151-327.01819a43.350032%2043.350032%200%200%200-86.700064%200c0%20134.124998-109.12648%20243.251478-243.258703%20243.251479-134.124998%200-243.244253-109.12648-243.244253-243.251479a43.350032%2043.350032%200%200%200-86.700063%200c0%20167.229972%20125.100967%20305.711649%20286.601509%20327.01819v45.423608H228.440217a43.350032%2043.350032%200%200%200%200%2086.700064h573.20302a43.350032%2043.350032%200%200%200%200-86.700064z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",Tt=["onClick"],St=["src"],Lt={key:2,style:{width:"18px"},class:"margin-r-3"},$t={key:1,class:"hzzt-kfb-sub-menu"},Mt=["onClick"],Pt={class:"flex align-items-center"},It=["src"],Dt={key:2,style:{width:"18px"},class:"margin-r-2"},At=e.defineComponent({__name:"KfbMenu",props:{menus:{}},emits:["tool"],setup(d,{emit:t}){const a=e.ref({top:"0",left:"0",display:"none"}),o=e.inject("kfbView",e.ref({})),y=e.inject("currentLabel"),v=d,c=t,{t:s}=U(),m=[{label:s("直线"),value:"line",icon:Se},{label:s("箭头"),value:"arrow",icon:Le},{label:s("双箭头"),value:"bilateral",icon:$e},{label:s("矩形"),value:"rectangle",icon:Me},{label:s("圆形"),value:"ellipse",icon:Pe},{label:s("曲线"),value:"polygon",icon:Ie},{label:s("星星"),value:"star",icon:De},{label:s("旗帜"),value:"flag",icon:Ae},{label:s("点"),value:"dot",icon:Re},{label:s("文字"),value:"font",icon:He},{label:s("语音"),value:"voice",icon:Fe}],g=e.computed(()=>{var r;return y!=null&&y.value?[{label:s("删除"),value:"delete",icon:W.value.delete}]:(r=v.menus)!=null&&r.length?v.menus.map(i=>i.value==="annotate"?O(L({},i),{children:m}):O(L({},i),{icon:i.icon||W.value[i.value]})):[{label:s("上一张"),value:"prev"},{label:s("下一张"),value:"next"},{label:s("标注"),value:"annotate",icon:W.value.annotate,children:m},{label:s("一键截图"),value:"tailor_now",icon:W.value.tailor},{label:s("区域截图"),value:"tailor"},{label:s("镜像翻转"),value:"flip",icon:W.value.flip},{label:s("切片信息"),value:"info",icon:W.value.info}]});e.watch(()=>o.value,(r,i)=>{i!=null&&i.viewer&&(i.viewer.removeHandler("canvas-contextmenu",h),i.viewer.removeHandler("canvas-click",n)),r!=null&&r.viewer&&(r.viewer.addHandler("canvas-contextmenu",h),r.viewer.addHandler("canvas-click",n))}),e.onMounted(()=>{var r;(r=o.value)!=null&&r.viewer&&(o.value.viewer.addHandler("canvas-contextmenu",h),o.value.viewer.addHandler("canvas-click",n)),document.body.addEventListener("click",n)}),e.onBeforeUnmount(()=>{var r;(r=o.value)!=null&&r.viewer&&(o.value.viewer.removeHandler("canvas-contextmenu",h),o.value.viewer.removeHandler("canvas-click",n)),document.body.removeEventListener("click",n)});function h(r){r.preventDefault=!0,a.value.top=`${r.position.y}px`,a.value.left=`${r.position.x}px`,a.value.display==="block"?a.value.display="none":a.value.display="block"}function n(){a.value.display="none"}function l(r,i){r.children||((i==null?void 0:i.value)==="annotate"?c("tool","annotate",{tool:r.value.substring(0,1).toLocaleUpperCase()+r.value.substring(1),once:!0}):r.value==="tailor_now"?c("tool","tailor",!0):c("tool",r.value),n())}function u(r){return r==null||typeof r!="object"&&typeof r!="function"?!1:typeof r=="function"||"render"in r||"setup"in r}return(r,i)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-menu",style:e.normalizeStyle(a.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(p,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"hzzt-kfb-menu-item"},[e.createElementVNode("div",{class:"flex align-items-center",onClick:k=>l(p)},[u(p.icon)?(e.openBlock(),e.createBlock(e.unref(C.ElIcon),{key:0,class:"margin-r-3",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon)))]),_:2},1024)):p.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:p.icon},null,8,St)):(e.openBlock(),e.createElementBlock("div",Lt)),e.createElementVNode("span",null,e.toDisplayString(p.label),1)],8,Tt),p.children?(e.openBlock(),e.createBlock(R,{key:0,name:"arrowRight",class:"margin-r-2",size:14})):e.createCommentVNode("",!0),p.children?(e.openBlock(),e.createElementBlock("div",$t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.children,(k,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"hzzt-kfb-menu-item",onClick:V=>l(k,p)},[e.createElementVNode("div",Pt,[u(k.icon)?(e.openBlock(),e.createBlock(e.unref(C.ElIcon),{key:0,class:"margin-r-2",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.icon)))]),_:2},1024)):k.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:k.icon},null,8,It)):(e.openBlock(),e.createElementBlock("div",Dt)),e.createElementVNode("span",null,e.toDisplayString(k.label),1)])],8,Mt))),128))])):e.createCommentVNode("",!0)]))),128))],4))}}),Z=(d,t)=>{const a=d.__vccOpts||d;for(const[o,y]of t)a[o]=y;return a},Rt=Z(At,[["__scopeId","data-v-739aad62"]]),Ht={key:0,class:"hzzt-kfb-microscope"},Ft=e.defineComponent({__name:"KfbMicroscope",props:e.mergeDefaults({shape:{},width:{},color:{},borderWidth:{}},L({},ce)),setup(d,{expose:t}){const a=d,o=e.reactive(L(L({},ce),a));e.watch(()=>a,n=>{h({name:"change",value:n})});const y=e.ref("200px"),v=e.ref(!1),c=e.computed(()=>({borderRadius:o.shape,borderColor:o.color,borderWidth:o.borderWidth+"px",width:y.value,height:y.value})),s=e.inject("kfbView",e.ref({}));e.watch(()=>s.value,(n,l)=>{l!=null&&l.viewer&&l.viewer.removeHandler("zoom",m),n!=null&&n.viewer&&n.viewer.addHandler("zoom",m)}),e.onMounted(()=>{var n;(n=s.value)!=null&&n.viewer&&s.value.viewer.addHandler("zoom",m)}),e.onBeforeUnmount(()=>{var n;(n=s.value)!=null&&n.viewer&&s.value.viewer.removeHandler("zoom",m)});function m(){setTimeout(()=>{h({name:"change",value:o})},100)}function g(n){let{x:l,y:u}=s.value.viewer.viewport.getCenter(!0);n==="top"?u-=.006:n==="bottom"?u+=.006:n==="left"?l-=.006:n==="right"&&(l+=.006),s.value.area.moveToLabel({x:l,y:u})}function h({name:n,value:l}){var r,i;const u=(i=(r=s.value.$options)==null?void 0:r.pxConversion)==null?void 0:i.imageCapRes;if(n==="visible"){if(v.value=l,l){const p=s.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/u,height:o.width*1e3/u});y.value=p.width+"px"}}else if(n==="change"){Object.assign(o,l);const p=s.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/u,height:o.width*1e3/u});y.value=p.width+"px"}}return t({scopeChange:h}),(n,l)=>v.value?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("div",{class:"hzzt-kfb-microscope__container",style:e.normalizeStyle(c.value)},null,4),e.createElementVNode("div",{class:"hzzt-kfb-microscope__top",onClick:l[0]||(l[0]=u=>g("top"))},[e.createVNode(R,{size:"24",name:"arrowUp"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__bottom",onClick:l[1]||(l[1]=u=>g("bottom"))},[e.createVNode(R,{size:"24",name:"arrowDown"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__left",onClick:l[2]||(l[2]=u=>g("left"))},[e.createVNode(R,{size:"24",name:"arrowLeft"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__right",onClick:l[3]||(l[3]=u=>g("right"))},[e.createVNode(R,{size:"24",name:"arrowRight"})])])):e.createCommentVNode("",!0)}}),qt=Z(Ft,[["__scopeId","data-v-e8b36101"]]),Ut={class:"hzzt-kfb-label flex column"},Kt={class:"hzzt-kfb-label__img flex justify-content-center"},jt=["src"],Ot={class:"ellipsis flex-1"},Zt={class:"flex margin-b-4",style:{width:"100%"}},Gt={class:"flex margin overflow-hidden",style:{height:"132px"}},Wt=["src"],Yt=["src"],Xt=e.defineComponent({__name:"KfbLabel",props:{info:{},slide:{},pathologyHandle:{type:Function}},emits:["tool"],setup(d,{emit:t}){const{t:a}=U(),o=d,y=t,v=e.ref(!0),c=e.ref(!1),s=e.computed(()=>o.slide.pathology_id?a("修改病理号"):a("绑定病理号"));function m(){o.slide.angle||(o.slide.angle=0),o.slide.angle+=90,o.slide.angle>360&&(o.slide.angle=o.slide.angle%360),y("tool","rotate",o.slide.angle)}function g(){c.value=!0}function h(){o.pathologyHandle&&o.pathologyHandle(o.slide).then(()=>{c.value=!1})}return(n,l)=>(e.openBlock(),e.createElementBlock("div",Ut,[e.withDirectives(e.createElementVNode("div",{class:"hzzt-kfb-label__title"},e.toDisplayString(e.unref(a)(`点击标签旋转${n.pathologyHandle?",点击病理号重绑":""}`)),513),[[e.vShow,v.value]]),e.withDirectives(e.createElementVNode("div",Kt,[e.createElementVNode("img",{src:n.info.labelImg,style:e.normalizeStyle({transform:`rotate(${n.slide.angle}deg)`}),onClick:m},null,12,jt)],512),[[e.vShow,v.value]]),n.pathologyHandle?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"hzzt-kfb-label__pathology flex align-items-center justify-content-between",onClick:g},[e.createElementVNode("span",Ot,e.toDisplayString(n.slide.pathology_number),1),e.createVNode(R,{size:"14",name:"annotate"})],512)),[[e.vShow,v.value]]):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:l[0]||(l[0]=u=>v.value=!v.value),style:e.normalizeStyle({transform:`translateY(${v.value?"-50%":0})`}),class:"hzzt-kfb-label__expend flex align-items-center justify-content-center"},[v.value?(e.openBlock(),e.createBlock(R,{key:0,size:"10",name:"arrowLeft"})):(e.openBlock(),e.createBlock(R,{key:1,size:"10",name:"arrowRight"}))],4),e.createVNode(e.unref(C.ElDialog),{modelValue:c.value,"onUpdate:modelValue":l[5]||(l[5]=u=>c.value=u),"append-to-body":!0,title:s.value,width:"450px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{onClick:l[4]||(l[4]=u=>c.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("取消")),1)]),_:1}),e.createVNode(e.unref(C.ElButton),{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("确认")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Zt,[e.createElementVNode("div",Gt,[e.createElementVNode("img",{src:n.slide.labelImg},null,8,Wt),e.createElementVNode("img",{src:n.slide.previewImg},null,8,Yt)])]),e.createVNode(e.unref(C.ElForm),{class:"margin-t-2"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElFormItem),{label:e.unref(a)("病理号")},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:n.slide.pathology_number,"onUpdate:modelValue":l[1]||(l[1]=u=>n.slide.pathology_number=u),placeholder:e.unref(a)("输入病理号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(a)("蜡块号")},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:n.slide.paraffin_block_number,"onUpdate:modelValue":l[2]||(l[2]=u=>n.slide.paraffin_block_number=u),placeholder:e.unref(a)("输入蜡块号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),n.slide.slide_id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0,label:e.unref(a)("试剂")},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElInput),{modelValue:n.slide.reagent,"onUpdate:modelValue":l[3]||(l[3]=u=>n.slide.reagent=u),placeholder:e.unref(a)("输入试剂"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]))]),_:1})]),_:1},8,["modelValue","title"])]))}}),Qt=Z(Xt,[["__scopeId","data-v-7397de48"]]);function Jt(d,t){const a=e.ref(1),o=e.ref(null),y=e.ref(null);function v(){d.value.viewer.addHandler("canvas-drag",s=>{o.value||(o.value=s.position)}),d.value.viewer.addHandler("canvas-drag-end",s=>{if(a.value!==1){y.value=s.position;const m=d.value.viewer.viewport.containerSize.x,g=d.value.viewer.viewport.containerSize.y,h=(y.value.x-o.value.x)/(m*t.value)*(a.value-1),n=(y.value.y-o.value.y)/(g*t.value)*(a.value-1),l=d.value.viewer.viewport.getCenter(),u=new I.OpenSeadragon.Point(l.x-h,l.y-n);d.value.viewer.viewport.panTo(u),o.value=null}})}function c({name:s,value:m}){s==="ratio"&&(a.value=m/1)}return{moveEvent:v,fastMove:c}}function eo(d,t,a,o,y){const v=e.ref(void 0),c=e.ref([]);e.watch(()=>d.aiLabelList,h);function s(){a.value.$on(I.KfbView.events.EVENT_END_PAINTING,m("add")),a.value.$on(I.KfbView.events.EVENT_AREA_MOVE_END,m("move")),a.value.$on(I.KfbView.events.EVENT_ADD_POLYGON_POINT,m("add-point")),a.value.$on(I.KfbView.events.EVENT_DELETE_POLYGON_POINT,m("delete-point")),a.value.$on(I.KfbView.events.EVENT_DELETE_LABEL,m("delete")),a.value.$on(I.KfbView.events.EVENT_SELECT_LABEL,u=>{var i,p,w,k;v.value=u,(((i=v.value)==null?void 0:i.subType)||((w=(p=v.value)==null?void 0:p.__data__)==null?void 0:w.subType))==="voice"&&((k=v.value)!=null&&k.src)&&new Audio(v.value.src).play(),t("tool","select-label",v.value)}),a.value.$on(I.KfbView.events.EVENT_CANCEL_SELECT_LABEL,()=>{v.value=void 0,t("tool","cancel-select-label",v.value)}),m("list")()}function m(u){return r=>g(u,r)}function g(u,r){var i;if(u==="add"&&r&&((r==null?void 0:r.subType)||((i=r==null?void 0:r.__data__)==null?void 0:i.subType))==="voice")o(r);else return d.labelHandle(u,d.slide,r).then(p=>{c.value=p,h()}).catch(()=>{h()})}function h(){var u;if((u=a.value)!=null&&u.initLabelList){const r=[...c.value,...d.aiLabelList||[]];r.find(({id:i})=>{var p;return i===((p=v.value)==null?void 0:p.id)})||(v.value=void 0),a.value.initLabelList(r)}}function n(u,r){var p;v.value&&(v.value.select=!1);const i=(a.value.labelList||[]).findIndex(w=>w.id===u.id);if(i>-1){v.value=(p=a.value.labelList)==null?void 0:p[i],v.value.select=!0;const w=a.value.area.getCenterPoint(u.region);a.value.area.moveToLabel(w)}r&&y(r)}function l(u){return d.labelHandle("add",d.slide,u).then(r=>{c.value=r,h()}).catch(()=>{h()})}return{currentLabel:v,initLabel:s,jumpToLabel:n,reloadLabelList:h,eventHandel:m,addHandle:l}}function to(){function d(t,a){t.save(),t.strokeStyle="rgba(0,0,0,0)",t.miterLimit=4,t.font="15px",t.fillStyle=a,t.font="15px",t.scale(.02734375,.02734375),t.save(),t.font="15px",t.beginPath(),t.moveTo(512,427.023),t.moveTo(422,427.023),t.translate(512,427.023),t.rotate(0),t.arc(0,0,90,3.141592653589793,6.283185307179586,!0),t.rotate(0),t.translate(-512,-427.023),t.translate(512,427.023),t.rotate(0),t.arc(0,0,90,0,3.141592653589793,!0),t.rotate(0),t.translate(-512,-427.023),t.fill(),t.stroke(),t.restore(),t.save(),t.font="15px",t.beginPath(),t.moveTo(512,910.402),t.bezierCurveTo(492.86,910.402,474.51800000000003,904.548,458.95799999999997,893.4730000000001),t.bezierCurveTo(444.895,883.4630000000001,434.032,869.8770000000001,427.36899999999997,854.013),t.lineTo(255.043,585.177),t.lineTo(254.889,584.927),t.bezierCurveTo(225.522,537.209,210,482.605,210,427.021),t.bezierCurveTo(210,346.35400000000004,241.414,270.515,298.454,213.47500000000002),t.bezierCurveTo(355.494,156.43500000000006,431.333,125.021,512,125.021),t.bezierCurveTo(592.6669999999999,125.021,668.506,156.435,725.546,213.475),t.bezierCurveTo(782.587,270.515,814,346.354,814,427.021),t.bezierCurveTo(814,482.87,798.345,537.692,768.726,585.56),t.lineTo(768.462,585.9789999999999),t.lineTo(596.381,854.6949999999999),t.bezierCurveTo(589.626,870.4209999999999,578.721,883.871,564.677,893.7499999999999),t.bezierCurveTo(549.192,904.6449999999999,530.977,910.4019999999999,512,910.4019999999999),t.closePath(),t.moveTo(309.246,551.141),t.lineTo(484.74,824.9209999999999),t.lineTo(485.934,828.1179999999999),t.bezierCurveTo(490.083,839.2249999999999,500.31500000000005,846.4019999999999,512,846.4019999999999),t.bezierCurveTo(523.584,846.4019999999999,533.791,839.3309999999999,538.004,828.387),t.lineTo(539.169,825.3589999999999),t.lineTo(714.43,551.678),t.bezierCurveTo(737.701,513.983,750,470.884,750,427.021),t.bezierCurveTo(750,363.449,725.244,303.682,680.2909999999999,258.72900000000004),t.bezierCurveTo(635.3389999999999,213.77800000000005,575.5719999999999,189.02100000000004,511.99999999999994,189.02100000000004),t.bezierCurveTo(448.428,189.02100000000004,388.66099999999994,213.77700000000004,343.70799999999997,258.72900000000004),t.bezierCurveTo(298.755,303.68100000000004,274,363.449,274,427.021),t.bezierCurveTo(274,470.661,286.186,513.573,309.246,551.1410000000001),t.closePath(),t.fill(),t.stroke(),t.restore(),t.restore()}return{drawDot:d}}function oo(d,t){const{t:a}=U(),o=e.ref(!1),y=e.ref();let v=null;const c=e.ref(!1),s=e.ref(0);let m=0;const g=e.ref([]),h=e.ref(void 0);let n=!1;function l(f,V){f.save(),f.strokeStyle="rgba(0,0,0,0)",f.miterLimit=4,f.font="15px ''",f.fillStyle=V,f.font=" 15px ''",f.scale(.03125,.03125),f.save(),f.font=" 15px ''",f.beginPath(),f.moveTo(515.041727,670.617766),f.bezierCurveTo(606.625894,670.617766,681.137374,596.113511,681.137374,504.52212),f.lineTo(681.137374,229.350568),f.bezierCurveTo(681.137374,137.76640100000003,606.625894,63.254920999999996,515.041727,63.254920999999996),f.bezierCurveTo(423.44311000000005,63.254920999999996,348.93885500000005,137.766401,348.93885600000004,229.350568),f.lineTo(348.93885600000004,504.52212),f.bezierCurveTo(348.93885600000004,596.113512,423.44311100000004,670.617767,515.041727,670.617766),f.closePath(),f.fill(),f.stroke(),f.restore(),f.save(),f.font=" 15px ''",f.beginPath(),f.moveTo(801.643237,874.001665),f.lineTo(558.391759,874.001665),f.lineTo(558.391759,828.578057),f.bezierCurveTo(719.899527,807.264291,844.993269,668.7898399999999,844.993269,501.55986699999994),f.translate(801.643237,501.55986699999994),f.rotate(0),f.arc(0,0,43.350032,0,3.141592653589793,!0),f.rotate(0),f.translate(-801.643237,-501.55986699999994),f.bezierCurveTo(758.2932050000001,635.684865,649.166725,744.811345,515.0345020000001,744.811346),f.bezierCurveTo(380.9095040000001,744.811346,271.79024900000013,635.6848659999999,271.79024900000013,501.55986699999994),f.translate(228.44021750000013,501.5664510740879),f.rotate(0),f.arc(0,0,43.350032,-.00015188164315591997,-3.1414407719461273,!0),f.rotate(0),f.translate(-228.44021750000013,-501.5664510740879),f.bezierCurveTo(185.09018600000013,668.7898389999999,310.1911530000001,807.271516,471.69169500000015,828.578057),f.lineTo(471.69169500000015,874.001665),f.lineTo(228.440217,874.001665),f.translate(228.440217,917.3516970000001),f.rotate(0),f.arc(0,0,43.350032,-1.5707963267948966,1.5707963267948966,!0),f.rotate(0),f.translate(-228.440217,-917.3516970000001),f.lineTo(801.643237,960.701729),f.translate(801.643237,917.3516970000001),f.rotate(0),f.arc(0,0,43.350032,1.5707963267948966,4.71238898038469,!0),f.rotate(0),f.translate(-801.643237,-917.3516970000001),f.closePath(),f.fill(),f.stroke(),f.restore(),f.restore()}function u(){return Q(this,null,function*(){try{y.value=yield navigator.mediaDevices.getUserMedia({audio:!0}),v=new MediaRecorder(y.value),g.value=[],v.addEventListener("dataavailable",f=>{g.value.push(f.data)}),v.addEventListener("stop",()=>Q(this,null,function*(){if(h.value){const f=new Blob(g.value,{type:d.audioType||"audio/wav"});h.value.src=URL.createObjectURL(f)}c.value=!1,n&&(yield k())})),v.start(),c.value=!0,m=window.setInterval(()=>{s.value++},1e3)}catch(f){C.ElMessage.error(a("麦克风启用失败,请确认是否开启麦克风权限"))}})}function r(){y.value&&v?(v.stop(),y.value.getTracks().forEach(f=>f.stop()),v=null,y.value=void 0):(v=null,y.value=void 0),c.value=!1,m&&(clearInterval(m),m=0),s.value=0}function i(f){o.value=!0,h.value=f,g.value=[],n=!1}function p(){c.value&&r(),o.value=!1,c.value=!1,n=!1}function w(){return Q(this,null,function*(){if(!c.value&&!g.value.length){C.ElMessage.error(a("请先录音"));return}c.value&&r(),c.value=!1,n=!0,g.value.length&&(yield k()),o.value=!1})}function k(){return Q(this,null,function*(){if(d.uploadHandle&&h.value){const f=C.ElLoading.service({text:a("录音上传中")}),V=new Blob(g.value,{type:d.audioType||"audio/wav"});g.value=[];try{yield d.uploadHandle(d.slide,h.value,V).then(z=>{h.value.src=z}),f.close(),t(h.value)}catch(z){f.close()}}})}return{voiceVisible:o,voiceForm:h,recordTime:s,isRecording:c,drawVoice:l,startRecording:u,stopRecording:r,initVoice:i,cancelRecord:p,confirmRecord:w}}function no(d,t){const a=e.ref([]),o=e.ref(0),y=e.ref(!1);let v=null;e.watch(()=>{var l;return(l=d.hotmap)==null?void 0:l.enable},()=>{var l,u;if((u=(l=t.value)==null?void 0:l.viewer)!=null&&u.world){o.value=0;const r=t.value.viewer.world.getItemAt(0);r&&(r.tilesMatrix={},r.draw())}}),e.onMounted(()=>{window.addEventListener("mousemove",m),window.addEventListener("mouseup",h)}),e.onBeforeUnmount(()=>{window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",h)});function c(l,u,r){var p,w,k,f,V,z;const i=O(L({},u),{file:(p=d.hotmap)==null?void 0:p.file});if((w=d.hotmap)!=null&&w.info){if(r[u.x+"_"+u.y+"_"+Number(u.scale)]){if(((k=d.hotmap)==null?void 0:k.type)==="switch")return d.tileHandle(i);if(((f=d.hotmap)==null?void 0:f.type)==="drag")return s(l,i),l}}else return((V=d.hotmap)==null?void 0:V.type)==="switch"?d.tileHandle(i):(((z=d.hotmap)==null?void 0:z.type)==="drag"&&s(l,i),l)}function s(l,u){const r=a.value.find(i=>i.url===l)||{url:l,x:u.x,y:u.y,img:void 0,load:""};if(!(r!=null&&r.img)&&(a.value.push(r),r.load!=="success")){const i=new Image;i.src=d.tileHandle(u),i.onload=()=>{r.load="success"},r.img=i}}function m(l){y.value&&v&&(o.value+=l.x-v.x,o.value<0?o.value=0:o.value>t.value.$options.width&&(o.value=t.value.$options.width,y.value=!1),t.value.viewer.forceRedraw()),v={x:l.x,y:l.y}}function g(l){const{x:u,y:r}=l;y.value=!0,v={x:u,y:r}}function h(){y.value=!1,v=null}function n(l){const{context:u,sourceWidth:r,sourceHeight:i,position:p,size:w,initRendered:k,tile:f,pixelDensityRatio:V}=l,z=f.getUrl(),E=o.value*V,A=p.original.x;if(A<E&&A+w.x>E){const D=E-A,K=w.x-D,H=a.value.find(ee=>ee.url===z),G=(H==null?void 0:H.load)==="success"?H.img:k.canvas;u.drawImage(G,0,0,r*D/w.x,i,p.x,p.y,D,w.y),u.drawImage(k.canvas,r*D/w.x,0,r*K/w.x,i,p.x+D,p.y,K,w.y)}else if(A+w.x<=E){const D=a.value.find(H=>H.url===z),K=(D==null?void 0:D.load)==="success"?D.img:k.canvas;u.drawImage(K,0,0,r,i,p.x,p.y,w.x,w.y)}else A>=E&&u.drawImage(k.canvas,0,0,r,i,p.x,p.y,w.x,w.y)}return{getHotmapUrl:c,hotmapImgs:a,handlerImage:n,hotmapLine:o,lineMouseDown:g}}function lo(d,t,a){const o=e.getCurrentInstance(),y=e.ref(!1),v=new BroadcastChannel("sync_kfb_view");v.onmessage=n=>{const l=n.data;g(l)},e.onMounted(()=>{var n,l,u;(n=a.value)==null||n.addEventListener("mouseenter",c),(l=a.value)==null||l.addEventListener("mousemove",c),(u=a.value)==null||u.addEventListener("mouseleave",s)}),e.onBeforeUnmount(()=>{var n,l,u;(n=a.value)==null||n.removeEventListener("mouseenter",c),(l=a.value)==null||l.removeEventListener("mousemove",c),(u=a.value)==null||u.removeEventListener("mouseleave",s),v.close()});function c(){y.value=!0}function s(){y.value=!1}function m(){let n;t.value.viewer.addHandler("pan",l=>{var i,p,w,k;if(!n){n=(p=(i=l.center)==null?void 0:i.clone)==null?void 0:p.call(i);return}const u=l.center,r=(w=u==null?void 0:u.minus)==null?void 0:w.call(u,n);n=(k=u==null?void 0:u.clone)==null?void 0:k.call(u),d.syncPosition&&h({position:r,type:"sync_position"})}),t.value.viewer.addHandler("zoom",l=>{d.syncZoom&&h({zoom:l.zoom,type:"sync_zoom"})}),t.value.viewer.addHandler("animation-finish",()=>{var r;if(d.syncZoom&&h({zoom:t.value.viewer.viewport.getZoom(!0),type:"sync_zoom"}),!n)return;const l=t.value.viewer.viewport.getCenter(!0),u=(r=l==null?void 0:l.minus)==null?void 0:r.call(l,n);n=void 0,d.syncPosition&&h({position:u,type:"sync_position"})})}function g(n){n.uuid&&n.type==="sync_position"&&n.uuid!==(o==null?void 0:o.uid)?t.value&&t.value.viewer.viewport.panBy(n.position,!0):n.uuid&&n.type==="sync_zoom"&&n.uuid!==(o==null?void 0:o.uid)&&t.value&&t.value.viewer.viewport.zoomTo(n.zoom)}function h(n){var l;y.value&&v.postMessage(O(L({},n),{uuid:o==null?void 0:o.uid,fileName:(l=d.slide)==null?void 0:l.file}))}return{initSync:m}}const ao={class:"hzzt-kfb-keyword flex wrap"},ro=["onMouseenter"],io=e.defineComponent({__name:"KfbKeyword",setup(d){const t=e.ref([{code:"Q",icon:"zoomIn"},{code:"W",icon:"arrowUp"},{code:"E",icon:"zoomOut"},{code:"A",icon:"arrowLeft"},{code:"S",icon:"arrowDown"},{code:"D",icon:"arrowRight"}]),a=e.inject("kfbView",e.ref({}));let o=null;function y(c,s){c.preventDefault(),o&&clearTimeout(o),o=setInterval(()=>{s==="E"&&(a.value.viewer.viewport.zoomBy(1.1),a.value.viewer.viewport.applyConstraints()),s==="Q"&&(a.value.viewer.viewport.zoomBy(.9),a.value.viewer.viewport.applyConstraints()),s==="W"&&(a.value.viewer.viewport.panBy(a.value.viewer.viewport.deltaPointsFromPixels(new I.OpenSeadragon.Point(0,-40))),a.value.viewer.viewport.applyConstraints()),s==="S"&&(a.value.viewer.viewport.panBy(a.value.viewer.viewport.deltaPointsFromPixels(new I.OpenSeadragon.Point(0,40))),a.value.viewer.viewport.applyConstraints()),s==="A"&&(a.value.viewer.viewport.panBy(a.value.viewer.viewport.deltaPointsFromPixels(new I.OpenSeadragon.Point(-40,0))),a.value.viewer.viewport.applyConstraints()),s==="D"&&(a.value.viewer.viewport.panBy(a.value.viewer.viewport.deltaPointsFromPixels(new I.OpenSeadragon.Point(40,0))),a.value.viewer.viewport.applyConstraints())},120)}function v(){o&&(clearInterval(o),o=null)}return e.onBeforeUnmount(()=>{clearTimeout(o)}),(c,s)=>(e.openBlock(),e.createElementBlock("div",ao,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,m=>(e.openBlock(),e.createElementBlock("div",{key:m.code,class:"hzzt-kfb-keyword__code flex column align-items-center justify-content-center",onMouseenter:g=>y(g,m.code),onMouseleave:v},[e.createElementVNode("p",null,e.toDisplayString(m.code),1),e.createVNode(R,{size:"14",name:m.icon},null,8,["name"])],40,ro))),128))]))}}),so=Z(io,[["__scopeId","data-v-c8d940f0"]]);function co(d,t,a={}){const{panSensitivity:o=.2,zoomSensitivity:y=1.1,damping:v=.6,minThreshold:c=.05}=a;let s=!1,m=null,g=0,h=0,n=!1;const l=()=>{s=document.pointerLockElement===t.value,s||u()},u=()=>{g=0,h=0,m&&(cancelAnimationFrame(m),m=null),n=!1},r=f=>Q(this,null,function*(){try{f.key==="l"&&t.value&&(document.pointerLockElement?(document.exitPointerLock(),console.log("鼠标已解锁!")):(yield t.value.requestPointerLock(),console.log("鼠标已锁定!")))}catch(V){console.error("无法锁定鼠标:",V)}}),i=f=>{if(s){f.preventDefault();const V=Math.pow(y,Math.sign(f.deltaY)*-1);d.value.viewer.viewport.zoomBy(V),d.value.viewer.viewport.applyConstraints()}},p=f=>{s&&(g+=f.movementX*o,h+=f.movementY*o,!n&&(Math.abs(g)>1||Math.abs(h)>1)&&(n=!0,m=requestAnimationFrame(w)))},w=()=>{const f=d.value.viewer.viewport;if(Math.abs(g)>c||Math.abs(h)>c){const V=f.deltaPointsFromPixels(new I.OpenSeadragon.Point(g,h));f.panBy(V),f.applyConstraints()}g*=v,h*=v,Math.abs(g)>c||Math.abs(h)>c?m=requestAnimationFrame(w):u()},k=()=>{s&&document.exitPointerLock()};return e.onMounted(()=>{var f;(f=t.value)==null||f.addEventListener("keydown",r),document.addEventListener("wheel",i,{passive:!1}),document.addEventListener("click",k),document.addEventListener("mousemove",p),document.addEventListener("pointerlockchange",l)}),e.onBeforeUnmount(()=>{var f;(f=t.value)==null||f.removeEventListener("keydown",r),document.removeEventListener("click",k),document.removeEventListener("wheel",i),document.removeEventListener("mousemove",p),document.removeEventListener("pointerlockchange",l),u()}),{setConfig:f=>{Object.assign(a,f)}}}const uo=e.defineComponent({__name:"KfbLevel",props:e.mergeModels({slides:{default:()=>[]}},{"model-value":{default:0},"model-valueModifiers":{}}),emits:["update:model-value"],setup(d){const t=d,a=e.useModel(d,"model-value"),o=e.inject("kfbView",e.ref({})),y=e.computed(()=>Array.from(new Array(t.slides.length+1)).map((c,s)=>s));function v(){const c=o.value.viewer.world.getItemAt(0),s=Object.keys(c.tilesMatrix);s.forEach((m,g)=>{g>s.length-4&&(c.tilesMatrix[m]={})}),c.draw()}return(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-level flex column align-items-center",c.slides.length>5?"hzzt-kfb-level--large":""])},[e.createVNode(R,{name:"level",size:"24",class:"margin-b-4 margin-t-2"}),e.createVNode(e.unref(C.ElSlider),{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=m=>a.value=m),vertical:"",min:y.value[0],step:1,max:y.value[y.value.length-1],"show-stops":"","show-tooltip":!0,placement:"left",height:c.slides.length>5?"180px":"130px",onInput:v},null,8,["modelValue","min","max","height"])],2))}}),fo={key:0,class:"flex hzzt-kfb-channel"},vo=["onClick"],mo=e.defineComponent({__name:"KfbChannel",props:e.mergeModels({info:{}},{"model-value":{default:()=>[]},"model-valueModifiers":{}}),emits:e.mergeModels(["load"],["update:model-value"]),setup(d,{emit:t}){const a=d,o=t,y=e.useModel(d,"model-value"),v=[{key:"DAPI",color:"#4A6CF7"},{key:"480",color:"#00BFFF"},{key:"520",color:"#32CD32"},{key:"570",color:"#FFAA33"},{key:"620",color:"#FF6347"},{key:"670",color:"#DC143C"},{key:"780",color:"#4B0082"}],c=e.computed(()=>{var m;return(((m=a.info)==null?void 0:m.channel)||[]).map(g=>{const h=v.find(n=>n.key===g.eqt_num);return{label:g.eqt_num,color:g.r?`rgb(${g.r}, ${g.g}, ${g.b})`:h==null?void 0:h.color}})});function s(m){y.value.includes(m)?y.value=y.value.filter(g=>g!==m):y.value.push(m),o("load")}return(m,g)=>c.value.length>0?(e.openBlock(),e.createElementBlock("div",fo,[e.createVNode(R,{name:"channel",size:"32"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,h=>(e.openBlock(),e.createElementBlock("div",{key:h.label,style:e.normalizeStyle({background:h.color}),class:e.normalizeClass(["hzzt-kfb-channel__box",y.value.includes(h.label)?"":"hzzt-kfb-channel__box--unactive"]),onClick:n=>s(h.label)},e.toDisplayString(h.label),15,vo))),128))])):e.createCommentVNode("",!0)}}),po=["element-loading-text"],ho={key:1,class:"hzzt-kfb-view__main flex align-items-center justify-content-center"},go={class:"hzzt-kfb-view__filter",height:"0",width:"0"},wo={id:"colorMatrixFilter"},yo=["values"],ko=["values"],_o=["exponent"],bo=["exponent"],Co=["exponent"],Vo={class:"flex nowrap justify-content-center overflow-hidden"},Eo=["src"],xo=["src"],zo={class:"flex-1"},No={class:"flex-1"},Bo={class:"flex-1"},To={class:"flex-1"},So={class:"flex-1"},Lo={class:"flex-1"},$o=["src"],Mo={key:2,class:"margin-l-2"},Y=e.defineComponent({name:"HzztKfbView",__name:"index",props:{slide:{},fileHandle:{},labelHandle:{},tileHandle:{},navigatorHandle:{},pathologyHandle:{},uploadHandle:{},options:{},labelDrawing:{},process:{default:()=>L({},me)},microscope:{default:()=>L({},ce)},menus:{},aiLabelList:{},hotmap:{},syncPosition:{type:Boolean},syncZoom:{type:Boolean},audioType:{}},emits:["tool"],setup(d,{expose:t,emit:a}){const o=d,y=a,{t:v,locale:c}=U(),s=e.ref(),m=e.ref(),g=e.ref(),h=e.ref(!1),n=e.ref({}),l=e.ref(!1),u=e.ref(0),r=e.ref(0),i=e.ref(0),p=e.ref([]),w=e.ref({width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}}),k=e.inject("show-kfb-label",e.ref(!0)),f=e.inject("show-keyboard",e.ref(!1)),V=e.inject("hidden-all-label",e.ref(!1)),z=C.ElLoading.directive;e.watch(()=>{var _;return(_=o.slide)==null?void 0:_.file},()=>{nt(),setTimeout(()=>{ge()},100)}),e.onMounted(()=>{ge()});const{imageProcess:E,matrixValues:A,saturateValues:D,forceRedraw:K}=Nt(o),{tailorEvent:H,shotScreen:G}=Bt(y,n),{moveEvent:ee,fastMove:ue}=Jt(n,r),{initSync:de}=lo(o,n,s);co(n,s);const{drawDot:fe}=to(),{voiceVisible:te,voiceForm:oe,drawVoice:b,recordTime:N,isRecording:S,startRecording:q,stopRecording:ne,initVoice:qe,cancelRecord:Ue,confirmRecord:Ke}=oo(o,Ye),{currentLabel:pe,initLabel:je,jumpToLabel:Oe,reloadLabelList:Ze,eventHandel:Ge,addHandle:We}=eo(o,y,n,qe,ve);function Ye(_){We(_)}const{getHotmapUrl:Xe,handlerImage:Qe,hotmapLine:Je,lineMouseDown:he,hotmapImgs:et}=no(o,n);function ge(){var _;(_=o.slide)!=null&&_.file&&o.fileHandle&&(l.value||(l.value=!0,o.fileHandle(o.slide).then(x=>{var $,F,j,M;w.value=x,p.value=((($=w.value)==null?void 0:$.channel)||[]).map(T=>T.eqt_num),n.value=new I.KfbView(L({el:m.value,fileName:(F=o.slide)==null?void 0:F.file,scale:w.value.scanScale,lang:(c==null?void 0:c.value)==="en-US"?"en":c==null?void 0:c.value,navigator:{style:"left: 0;bottom: 0",thumbnail:w.value.thumbnailImg,width:200,height:180},grid:{show:!1,ruler:!1,pxConversion:!0},thumb:{bgColor:"rgba(0,0,0,0)"},graduation:{show:!0,right:120,bottom:(M=(j=w.value)==null?void 0:j.channel)!=null&&M.length?120:30,tick:{number:3,height:8}},pxConversion:{units:["um","mm"],binary:1e3,imageCapRes:w.value.imageCapRes||w.value.scanResolution||1},openSeadragonOptions:{maxZoomLevel:w.value.scanScale*20,pixelsPerArrowPress:200,animationTime:0,tileSources:we()},tileDrawing:Qe,label:{drawing:(T,B,X)=>{var re;if(B!=null&&B.custom){const P=T.getContext("2d");P.save(),P.beginPath();const le=(B==null?void 0:B.subType)||((re=B==null?void 0:B.__data__)==null?void 0:re.subType);le==="count"?(P.translate(X.x-14,X.y-22),fe(P,(B==null?void 0:B.strokeStyle)||"")):le==="voice"?(P.translate(X.x-16,X.y-18),b(P,(B==null?void 0:B.strokeStyle)||"")):o.labelDrawing&&o.labelDrawing(P,B),P.restore()}}}},o.options||{})),n.value.viewer.drawer.canvas.style.filter="url(#colorMatrixFilter)",je(),ot(),de()}).finally(()=>{l.value=!1,V.value&&(be({show:!1,ruler:!1}),Ce({show:!1}),setTimeout(()=>{Ve(!1)},100))})))}function tt(){const _=n.value.viewer;if(_.world){const x=_.world.getItemAt(0),$=_.viewport.getZoom(),F=_.viewport.getCenter();_.world.removeItem(x),_.addTiledImage({tileSource:we(),success:function(){_.viewport.zoomTo($),_.viewport.panTo(F)}})}}function we(){var j,M;const _=w.value.tileWidth||w.value.imageBlockLen||256,x=w.value.tileHeight||w.value.imageBlockLen||256,$={};(j=o.hotmap)!=null&&j.enable&&(((M=o.hotmap)==null?void 0:M.info)||[]).forEach(T=>{$[T[0]/_+"_"+T[1]/x+"_"+T[2]]=!0});let F=10;return Object.keys(w.value.ratiomap).forEach(T=>{const B=w.value.fileNum-Math.sqrt(w.value.scanScale/Number(T));B>0&&(F=F?Math.min(F,B):B)}),{height:w.value.height,width:w.value.width,tileWidth:_,tileHeight:x,minLevel:Math.floor(F||8),getTileUrl:(T,B,X)=>{var Ee,xe,ze,Ne;const re=T,P={file:((Ee=o.slide)==null?void 0:Ee.file)||"",x:B,y:X,scale:"0",level:T,channel:JSON.stringify(p.value)};w.value.fileNum===T?(T=w.value.scanScale,P.scale=T.toFixed(6)):(T=w.value.scanScale/Math.pow(2,w.value.fileNum-T),P.scale=T.toFixed(6)),P.level=re,P.file=i.value===0?P.file:((ze=(xe=o.slide)==null?void 0:xe.children)==null?void 0:ze[i.value-1])||"";const le=o.tileHandle(P);return(Ne=o.hotmap)!=null&&Ne.enable?Xe(le,P,$):le}}}function ot(){n.value.viewer.addHandler("rotate",_=>{u.value=_.degrees||0}),n.value.viewer.addHandler("zoom",_=>{const x=n.value.viewer.viewport.viewportToImageZoom(_.zoom||0)*Number(n.value.$options.scale);r.value=Number(x.toFixed(2))}),n.value.$on(I.KfbView.events.EVENT_NAVIGATOR_VESTIGE,_=>{o.navigatorHandle&&o.navigatorHandle("add",o.slide,_)}),o.navigatorHandle&&o.navigatorHandle("list",o.slide).then(_=>{var x,$;($=(x=n.value.navigator)==null?void 0:x.drawPointList)==null||$.call(x,_)}),H(),ee()}function nt(){var _;(_=n.value)!=null&&_.destroy&&(n.value.destroy(),n.value={},w.value={width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}},et.value=[],p.value=[],r.value=0,u.value=0,i.value=0)}function ye(_,x){_==="annotate"?ke(x):_==="tailor"?G(x):_==="info"?h.value=!0:_==="flip"?_e():_==="delete"?Ge("delete")(pe.value):y("tool",_,x)}function ke(_){_.tool==="Voice"&&(_.subType="voice",_.tool="Dot",_.custom=!0),n.value.board.startDraw(_)}function lt(){n.value.board.endDraw()}function _e(){n.value.viewer.viewport.toggleFlip()}function at(_){var x,$;($=(x=g.value)==null?void 0:x.scopeChange)==null||$.call(x,_)}function rt(){h.value=!0}function be(_){n.value.grid.updated(_)}function Ce(_){n.value.graduation.updated(_)}function Ve(_){n.value.navigator.element.style.display=_?"flex":"none"}function ve(_){const x=n.value.viewer.viewport.imageToViewportZoom(Number(_/n.value.$options.scale));n.value.viewer.viewport.zoomTo(x)}function it(_,x){n.value.area&&(n.value.area.moveToLabel(n.value.viewer.viewport.imageToViewportCoordinates(_.x+_.width/2,_.y+_.height/2)),ve(x))}return e.provide("kfbView",n),e.provide("currentLabel",pe),t({kfbView:n,degrees:u,zoom:r,forceRedraw:K,toggleFlip:_e,startDraw:ke,endDraw:lt,shotScreen:G,info:rt,scopeChange:at,updateGrid:be,updateGraduation:Ce,updateNavigator:Ve,fastMove:ue,zoomTo:ve,jumpToLabel:Oe,jumpToPosition:it,reloadLabelList:Ze}),(_,x)=>{var $,F,j;return e.openBlock(),e.createElementBlock("div",{ref_key:"mainKfbViewRef",ref:s,class:"hzzt-kfb-view"},[_.slide.file?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"kfbViewMainRef",ref:m,class:"hzzt-kfb-view__main","element-loading-text":e.unref(v)("加载中"),"element-loading-background":"rgba(0, 0, 0, 0.8)"},null,8,po)),[[e.unref(z),l.value]]):(e.openBlock(),e.createElementBlock("div",ho,x[4]||(x[4]=[e.createElementVNode("img",{style:{width:"50%"},src:se},null,-1)]))),_.slide.analysis&&_.slide.analysis.result?(e.openBlock(),e.createBlock(e.unref(C.ElTag),{key:2,class:"hzzt-kfb-view__tag"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.slide.analysis.result),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",go,[e.createElementVNode("filter",wo,[e.createElementVNode("feColorMatrix",{values:e.unref(A),type:"matrix"},null,8,yo),e.createElementVNode("feColorMatrix",{values:e.unref(D),type:"saturate"},null,8,ko),e.createElementVNode("feComponentTransfer",null,[e.createElementVNode("feFuncR",{id:"feFuncR",type:"gamma",exponent:e.unref(E).ga,amplitude:"1",offset:"0"},null,8,_o),e.createElementVNode("feFuncG",{id:"feFuncG",type:"gamma",exponent:e.unref(E).ga,amplitude:"1",offset:"0"},null,8,bo),e.createElementVNode("feFuncB",{id:"feFuncB",type:"gamma",exponent:e.unref(E).ga,amplitude:"1",offset:"0"},null,8,Co)])])])),e.createVNode(Rt,{menus:_.menus,onTool:ye},null,8,["menus"]),e.createVNode(qt,e.mergeProps(_.microscope,{ref_key:"microscopeRef",ref:g}),null,16),e.unref(k)&&_.slide.file?(e.openBlock(),e.createBlock(Qt,{key:3,info:w.value,slide:_.slide,pathologyHandle:_.pathologyHandle,onTool:ye},null,8,["info","slide","pathologyHandle"])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createBlock(so,{key:4})):e.createCommentVNode("",!0),($=_.slide.children)!=null&&$.length?(e.openBlock(),e.createBlock(uo,{key:5,modelValue:i.value,"onUpdate:modelValue":x[0]||(x[0]=M=>i.value=M),slides:_.slide.children},null,8,["modelValue","slides"])):e.createCommentVNode("",!0),(j=(F=w.value)==null?void 0:F.channel)!=null&&j.length?(e.openBlock(),e.createBlock(mo,{key:6,modelValue:p.value,"onUpdate:modelValue":x[1]||(x[1]=M=>p.value=M),info:w.value,onLoad:tt},null,8,["modelValue","info"])):e.createCommentVNode("",!0),e.createVNode(e.unref(C.ElDialog),{modelValue:h.value,"onUpdate:modelValue":x[2]||(x[2]=M=>h.value=M),"append-to-body":!0,title:e.unref(v)("图像信息"),width:"700px",top:"5vh"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElForm),{"label-position":"left"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ElFormItem),{class:"flex","label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",Vo,[e.createElementVNode("img",{src:w.value.labelImg,style:{height:"180px"}},null,8,Eo),e.createElementVNode("img",{src:w.value.previewImg,style:{height:"180px"},class:"flex-1"},null,8,xo)])]),_:1}),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(v)("文件名")},{default:e.withCtx(()=>[e.createElementVNode("span",zo,e.toDisplayString(w.value.fileName),1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(v)("图像像素")},{default:e.withCtx(()=>[e.createElementVNode("span",No,e.toDisplayString(w.value.width)+"Pixel - "+e.toDisplayString(w.value.height)+"Pixel",1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(v)("扫描倍率")},{default:e.withCtx(()=>[e.createElementVNode("span",Bo,e.toDisplayString(w.value.scanScale),1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(v)("扫描时刻")},{default:e.withCtx(()=>[e.createElementVNode("span",To,e.toDisplayString(w.value.scanTime),1)]),_:1},8,["label"]),e.createVNode(e.unref(C.ElFormItem),{label:e.unref(v)("扫描时间")},{default:e.withCtx(()=>[e.createElementVNode("span",So,e.toDisplayString(w.value.scanDuration||0)+"s",1)]),_:1},8,["label"]),w.value.ext?(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0,label:e.unref(v)("扫描设备")},{default:e.withCtx(()=>[e.createElementVNode("span",Lo,e.toDisplayString(w.value.ext.machineNum||""),1)]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"]),e.createVNode(e.unref(C.ElDialog),{modelValue:e.unref(te),"onUpdate:modelValue":x[3]||(x[3]=M=>e.isRef(te)?te.value=M:null),"append-to-body":!0,title:e.unref(v)("语音输入"),width:"500px",top:"5vh"},{footer:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{onClick:e.unref(Ue)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)("取消")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(C.ElButton),{type:"primary",onClick:e.unref(Ke)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)("确定")),1)]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(e.unref(C.ElForm),{"label-position":"left"},{default:e.withCtx(()=>{var M;return[e.createVNode(e.unref(C.ElFormItem),null,{default:e.withCtx(()=>{var T;return[(T=e.unref(oe))!=null&&T.src?(e.openBlock(),e.createElementBlock("audio",{key:0,class:"width-100%",src:e.unref(oe).src,controls:"",preload:"auto"},null,8,$o)):e.createCommentVNode("",!0)]}),_:1}),(M=e.unref(oe))!=null&&M.src?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(C.ElFormItem),{key:0},{default:e.withCtx(()=>[e.unref(S)?(e.openBlock(),e.createBlock(e.unref(C.ElButton),{key:1,type:"danger",onClick:e.unref(ne)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)("结束录音")),1)]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(C.ElButton),{key:0,type:"primary",onClick:e.unref(q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(v)("开始录音")),1)]),_:1},8,["onClick"])),e.unref(S)?(e.openBlock(),e.createElementBlock("span",Mo,e.toDisplayString(e.unref(v)("录音时长"))+":"+e.toDisplayString(e.unref(N))+"s",1)):e.createCommentVNode("",!0)]),_:1}))]}),_:1})]),_:1},8,["modelValue","title"]),_.hotmap&&_.hotmap.enable&&_.hotmap.type!=="switch"?(e.openBlock(),e.createElementBlock("div",{key:7,class:"hzzt-kfb-view__hotmap",style:e.normalizeStyle({left:e.unref(Je)+"px"})},[e.createVNode(e.unref(C.ElIcon),{class:"icon-caret-left",size:"30",onMousedown:e.unref(he)},{default:e.withCtx(()=>x[5]||(x[5]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})],-1)])),_:1,__:[5]},8,["onMousedown"]),e.createVNode(e.unref(C.ElIcon),{class:"icon-caret-right",size:"30",onMousedown:e.unref(he)},{default:e.withCtx(()=>x[6]||(x[6]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})],-1)])),_:1,__:[6]},8,["onMousedown"])],4)):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"default")],512)}}});function Po(d,t){var h,n;const a=e.ref(!!((h=d.ai)!=null&&h.default)),o=e.ref(!!((n=d.ai)!=null&&n.default)),y=e.ref([]),v=e.computed(()=>{var l,u,r,i;return(u=(l=t.value)==null?void 0:l.analysis)!=null&&u.id?((i=(r=t.value)==null?void 0:r.analysis)==null?void 0:i.class)||"auto":""});e.watch(()=>{var l;return(l=d.ai)==null?void 0:l.default},l=>{a.value=!!l,o.value=!!l}),e.watch(()=>{var l;return(l=t==null?void 0:t.value)==null?void 0:l.id},c),e.onMounted(()=>{var l,u;a.value=!!((l=d.ai)!=null&&l.default),o.value=!!((u=d.ai)!=null&&u.default),c()});function c(){var l;(l=t.value)!=null&&l.id&&v.value?a.value||o.value?s():y.value=[]:y.value=[]}function s(){d.ai.handle(v.value,t.value).then(l=>{y.value=l}).catch(()=>{y.value=[],v.value==="IQC"?o.value=!1:a.value=!1})}function m(){o.value=!1,c()}function g(){a.value=!1,c()}return{analysisClass:v,aiLabelList:y,enableAi:a,enableIqc:o,toggleIqc:g,toggleAi:m}}const Io=["src","fit"],Do=["src","fit"],ie=e.defineComponent({name:"KfbImage",__name:"KfbImage",props:{src:{type:String,required:!0,default:""},fit:{type:String,validator:d=>["","contain","cover","fill","none","scale-down"].includes(d),default:""},retryTimes:{type:Number,default:0},load:{type:Function,default:()=>({})}},setup(d){const t=d;let a=0;const o=e.ref(!1),y=e.reactive({x:0,y:0}),v=e.computed(()=>({top:`${y.y+10}px`,left:`${y.x}px`,transform:"translateY(-50%)",width:`${4*300/3}px`,height:"300px",background:"rgba(0,0,0,0.8)",zIndex:"10000"}));function c(h){const n=h.target;a<t.retryTimes?(n.src=t.src,a++):n.src=se}function s(h){if(h.target){const i=h.target,p=i.tagName;let w="";if(i.tagName==="IMG"?w=i.src||"":p==="DIV"&&(w=i.children[0].src||""),w.indexOf(se)>-1)return}const{x:n,y:l}=m(h),u=4*300/3,r=300;y.x=Math.min(Math.max(n,u/2),window.innerWidth-u/2),y.y=Math.min(Math.max(l,r/2),window.innerHeight-r/2),o.value=!0}function m(h){const n=h.target,l=h.offsetX,u=h.offsetY,r=n.clientWidth,i=n.clientHeight;return{x:h.clientX+r-l,y:h.clientY-u+i/2}}function g(){o.value=!1}return(h,n)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",onMouseenter:s,onMouseleave:g},[e.createElementVNode("img",{src:d.src,fit:d.fit,onError:c,style:{height:"100%",width:"100%"}},null,40,Io),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed hzzt-kfb-img-triangle-left",style:e.normalizeStyle(v.value)},[e.createElementVNode("img",{src:d.src,fit:d.fit,style:{objectFit:"contain",height:"100%",width:"100%"},onMouseenter:n[0]||(n[0]=()=>{o.value=!0}),onMouseleave:g},null,40,Do)],4)):e.createCommentVNode("",!0)]))],32))}}),Ao={},Ro={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function Ho(d,t){return e.openBlock(),e.createElementBlock("svg",Ro,t[0]||(t[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"},null,-1)]))}const Fo=Z(Ao,[["render",Ho]]),qo={},Uo={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ko(d,t){return e.openBlock(),e.createElementBlock("svg",Uo,t[0]||(t[0]=[e.createElementVNode("g",{id:"Frame"},[e.createElementVNode("path",{id:"Vector",d:"M5.33333 2.66659H14V3.99992H5.33333V2.66659ZM2 2.33325H4V4.33325H2V2.33325ZM2 6.99992H4V8.99992H2V6.99992ZM2 11.6666H4V13.6666H2V11.6666ZM5.33333 7.33325H14V8.66659H5.33333V7.33325ZM5.33333 11.9999H14V13.3333H5.33333V11.9999Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const jo=Z(qo,[["render",Ko]]),Oo={class:"hzzt-kfb-slides"},Zo={class:"hzzt-kfb-slides__row"},Go={class:"hzzt-kfb-slides__top"},Wo={class:"text-primary"},Yo={class:"flex align-items-center"},Xo={key:0},Qo=["data-index","onClick"],Jo={class:"hzzt-kfb-slides__gallery"},en=["onClick"],tn={key:0,class:"hzzt-kfb-slides__read"},on=["onClick"],nn={key:1,class:"flex column"},ln={class:"hzzt-kfb-slides__header"},an={class:"w-30%"},rn={class:"w-40%"},sn={class:"w-20%"},cn=["data-index","onClick"],un={class:"w-30% flex"},dn={class:"hzzt-kfb-slides__gallery"},fn={key:0,class:"hzzt-kfb-slides__read"},vn={class:"w-40% flex"},mn=["onClick"],pn=["onClick"],hn={key:0,class:"flex column py-2"},gn={class:"flex align-items-center justify-content-center"},wn={class:"margin-r-1"},yn={key:0,class:"margin-r-1 margin-l-2"},kn=e.defineComponent({__name:"KfbSlideList",props:{slides:{}},emits:["select","tool"],setup(d,{expose:t,emit:a}){const o=d,y=a,v=e.inject("file-index",{value:0}),c=e.inject("divide",{value:!1}),s=e.inject("sync",{value:!1}),m=e.ref(!1),g=e.ref(),h=e.computed(()=>o.slides.filter(({read:p})=>p)),n=e.computed(()=>o.slides.filter(({check:p})=>p)),{t:l}=U();function u(p){v.value=p,y("select",p)}function r(p){p.check=!p.check}function i(p){var k,f,V;const w=((V=(f=(k=g.value.querySelector('[data-index="0"]'))==null?void 0:k.getBoundingClientRect)==null?void 0:f.call(k))==null?void 0:V.y)||0;g.value.scrollTop=g.value.querySelector(`[data-index="${p}"]`).getBoundingClientRect().y-w}return t({jumpToSlide:i}),(p,w)=>(e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("div",Zo,[e.createElementVNode("div",Go,[e.createElementVNode("span",null,[w[4]||(w[4]=e.createTextVNode("已读:")),e.createElementVNode("span",Wo,e.toDisplayString(h.value.length),1),e.createTextVNode("/"+e.toDisplayString(p.slides.length),1)]),e.createElementVNode("div",Yo,[e.createVNode(e.unref(C.ElIcon),{class:"margin-r-2 pointer",size:"16",color:m.value?"#999":"#000",onClick:w[0]||(w[0]=k=>m.value=!m.value)},{default:e.withCtx(()=>[e.createVNode(Fo)]),_:1},8,["color"]),e.createVNode(e.unref(C.ElIcon),{class:"pointer",name:"cus-list",size:"16",color:m.value?"#000":"#999",onClick:w[1]||(w[1]=k=>m.value=!m.value)},{default:e.withCtx(()=>[e.createVNode(jo)]),_:1},8,["color"])])]),e.createElementVNode("div",{class:"flex-1 overflow-auto",style:{width:"100%"},ref_key:"slidesRef",ref:g},[m.value?(e.openBlock(),e.createElementBlock("ul",nn,[e.createElementVNode("li",ln,[w[5]||(w[5]=e.createElementVNode("div",{class:"w-10%"},null,-1)),e.createElementVNode("div",an,e.toDisplayString(e.unref(l)("缩略图")),1),e.createElementVNode("div",rn,e.toDisplayString(e.unref(l)("切片名")),1),e.createElementVNode("div",sn,e.toDisplayString(e.unref(l)("评分")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.slides,(k,f)=>(e.openBlock(),e.createElementBlock("li",{key:f,"data-index":f,class:"flex align-items-center overflow-hidden",style:e.normalizeStyle({backgroundColor:e.unref(v)===f?"rgba(6, 85, 195, 0.1)":"#fff"}),onClick:V=>u(f)},[e.createElementVNode("div",{class:"w-10% text-center",onClick:e.withModifiers(()=>{},["stop"])},[e.createVNode(e.unref(C.ElCheckbox),{modelValue:k.check,"onUpdate:modelValue":V=>k.check=V,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",un,[e.createElementVNode("div",dn,[e.createVNode(ie,{style:e.normalizeStyle([{transform:`rotate(${k.angle}deg)`},{height:"45px"}]),"retry-times":1,src:k.labelImg,fit:"cover",class:"flex-1"},null,8,["style","src"]),e.createVNode(ie,{"retry-times":1,fit:"cover",src:k.previewImg,style:{height:"45px"},class:"flex-1"},null,8,["src"]),k.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fn,e.toDisplayString(e.unref(l)("未读")),1))])]),e.createElementVNode("div",vn,[e.createVNode(e.unref(C.ElTooltip),{effect:"dark",placement:"bottom",content:`${k.name}`},{default:e.withCtx(()=>[e.createElementVNode("span",{style:{"line-height":"16px"},class:"margin-l-1 ellipsis hzzt-kfb-slides__text",dir:"rtl",onClick:e.withModifiers(V=>r(k),["stop"])},e.toDisplayString(k.name),9,mn)]),_:2},1032,["content"])]),e.createElementVNode("div",{class:"w-20% flex text-center pointer",style:e.normalizeStyle({color:k.gradeColor}),onClick:V=>y("tool","grade",k)},e.toDisplayString(k.grade),13,pn)],12,cn))),128))])):(e.openBlock(),e.createElementBlock("div",Xo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.slides,(k,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["hzzt-kfb-slides__box",e.unref(v)===f?"hzzt-kfb-slides__box--active":""]),"data-index":f,onClick:V=>u(f)},[e.createElementVNode("div",Jo,[e.createVNode(ie,{style:e.normalizeStyle({transform:`rotate(${k.angle}deg)`}),"retry-times":1,src:k.labelImg,class:"hzzt-kfb-slides__img",fit:"cover"},null,8,["style","src"]),e.createVNode(ie,{"retry-times":1,src:k.previewImg,class:"flex-1 hzzt-kfb-slides__img1",fit:"cover"},null,8,["src"])]),e.createElementVNode("div",{class:"flex justify-content-between align-items-center",onClick:e.withModifiers(()=>{},["stop"])},[e.createVNode(e.unref(C.ElCheckbox),{modelValue:k.check,"onUpdate:modelValue":V=>k.check=V,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(C.ElTooltip),{effect:"dark",placement:"bottom",content:`${k.name}`},{default:e.withCtx(()=>[e.createElementVNode("span",{style:{"line-height":"16px","text-align":"center",width:"calc(100% - 14px)"},class:"margin-l-1 ellipsis",dir:"rtl",onClick:e.withModifiers(V=>r(k),["stop"])},e.toDisplayString(k.name),9,en)]),_:2},1032,["content"])]),k.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",tn,e.toDisplayString(e.unref(l)("未读")),1)),k.grade?(e.openBlock(),e.createElementBlock("div",{key:1,class:"hzzt-kfb-slides__grade",style:e.normalizeStyle({background:k.gradeColor}),onClick:V=>y("tool","grade",k)},e.toDisplayString(k.grade),13,on)):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"slide",{slide:k},void 0,!0)],10,Qo))),128))]))],512),n.value.length>1?(e.openBlock(),e.createElementBlock("div",hn,[e.createElementVNode("div",gn,[e.createElementVNode("span",wn,e.toDisplayString(e.unref(l)("分屏")),1),e.createVNode(e.unref(C.ElSwitch),{modelValue:e.unref(c),"onUpdate:modelValue":w[2]||(w[2]=k=>e.isRef(c)?c.value=k:null)},null,8,["modelValue"]),e.unref(c)?(e.openBlock(),e.createElementBlock("span",yn,e.toDisplayString(e.unref(l)("同步")),1)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createBlock(e.unref(C.ElSwitch),{key:1,modelValue:e.unref(s),"onUpdate:modelValue":w[3]||(w[3]=k=>e.isRef(s)?s.value=k:null)},null,8,["modelValue"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])]))}}),_n=Z(kn,[["__scopeId","data-v-25dae76d"]]),bn={class:"hzzt-kfb-ai overflow-hidden"},Cn={class:"flex align-items-center margin-t-1"},Vn={style:{color:"var(--el-color-success)"}},En={class:"flex-1 flex overflow-auto wrap margin-t-1"},xn=["onClick"],zn={key:0,style:{"margin-left":"2px"}},Nn=e.defineComponent({name:"KfbAiList",__name:"list",props:{data:{default:()=>[]},slide:{default:()=>({})}},setup(d,{expose:t}){const a=d,{t:o}=U(),y=e.inject("kfbViewRef"),v=e.ref(-1),c=e.ref(1),s=e.ref(100),m=e.ref(!0),g=e.ref([]),h=e.computed(()=>a.data.filter(V=>g.value.includes(V.cls||""))),n=e.computed(()=>h.value.slice((c.value-1)*s.value,c.value*s.value)),l=e.computed(()=>{var z,E;const V=((E=(z=a.slide)==null?void 0:z.analysis)==null?void 0:E.result)||"";return V.indexOf("疑似阳性")>-1?{type:"warning",name:V}:V.indexOf("阳性")>-1?{type:"danger",name:V}:V.indexOf("阴性")>-1?{type:"success",name:V}:{type:"info",name:V||o("未知")}}),u=e.computed(()=>{const V=new Set;return a.data.forEach(z=>{const E=z.cls||"";E&&!V.has(E)&&V.add(E)}),Array.from(V)}),r=e.computed(()=>g.value.length!==0&&g.value.length!==u.value.length);e.watch(()=>u.value,V=>{i(),g.value=[...V]}),e.onMounted(()=>{g.value=[...u.value]});function i(){v.value=-1,c.value=1,s.value=100,m.value=!0}function p(V){const z=h.value.findIndex(E=>E.id===V.id);v.value=z,y.value.jumpToLabel(V,5)}function w(V){const z=a.data.filter(E=>E.cls===V);return z.length?`(${z.length})`:""}function k(){v.value=-1,m.value=g.value.length==u.value.length}function f(V){g.value=V?[...u.value]:[],v.value=-1}return t({labelList:h}),(V,z)=>(e.openBlock(),e.createElementBlock("div",bn,[e.createElementVNode("div",Cn,[e.createVNode(e.unref(C.ElPopover),{placement:"bottom",trigger:"click",width:"160"},{reference:e.withCtx(()=>[e.createVNode(e.unref(C.ElButton),{class:"margin-r-1",type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("分类"))+" ",1),e.createVNode(R,{name:"arrowDown"})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(C.ElCheckbox),{modelValue:m.value,"onUpdate:modelValue":z[0]||(z[0]=E=>m.value=E),indeterminate:r.value,onChange:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("全选")),1)]),_:1},8,["modelValue","indeterminate"]),e.createVNode(e.unref(C.ElCheckboxGroup),{modelValue:g.value,"onUpdate:modelValue":z[1]||(z[1]=E=>g.value=E),class:"flex column",onChange:k},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,E=>(e.openBlock(),e.createBlock(e.unref(C.ElCheckbox),{key:E,value:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E)+" ",1),e.createElementVNode("span",Vn,e.toDisplayString(w(E)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(e.unref(C.ElTag),{type:l.value.type,class:"margin-l-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.name),1)]),_:1},8,["type"])]),e.createElementVNode("div",En,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(E,A)=>(e.openBlock(),e.createElementBlock("div",{key:A+(c.value-1)*s.value,class:e.normalizeClass(`hzzt-kfb-ai__img ${v.value===A+(c.value-1)*s.value?"hzzt-kfb-ai__img--active":""}`),onClick:D=>p(E)},[e.createVNode(e.unref(vt),{"retry-times":1,src:E.imageUrl,"error-src":e.unref(se)},null,8,["src","error-src"]),e.createElementVNode("div",{style:e.normalizeStyle({color:E.strokeStyle}),class:"ellipsis"},[e.createTextVNode(e.toDisplayString(E.cls)+" ",1),E.score?(e.openBlock(),e.createElementBlock("span",zn,e.toDisplayString(E.score),1)):e.createCommentVNode("",!0)],4)],10,xn))),128))]),e.createVNode(e.unref(C.ElPagination),{class:"wrap","current-page":c.value,"onUpdate:currentPage":z[2]||(z[2]=E=>c.value=E),"page-size":s.value,"onUpdate:pageSize":z[3]||(z[3]=E=>s.value=E),"page-sizes":[100,200,300,400],layout:"total, sizes, prev, pager, next",total:h.value.length},null,8,["current-page","page-size","total"])]))}}),Bn={class:"hzzt-kfb-slide"},Tn={class:"flex flex-1 overflow-hidden"},Sn={class:"flex flex-1"},Ln={key:0,style:{height:"100%",width:"100%"},class:"flex wrap"},$n=["onClick"],ae=e.defineComponent({name:"HzztKfbSlide",__name:"index",props:e.mergeModels({menus:{default:()=>[]},kfb:{},slides:{default:()=>[]},ai:{},teleport:{type:Boolean,default:!1},process:{},microscope:{},showList:{type:Boolean,default:!0},showKfbLabel:{type:Boolean,default:!0},showKeyboard:{type:Boolean,default:!1},showMenuText:{type:Boolean,default:!0}},{index:{default:0},indexModifiers:{}}),emits:e.mergeModels(["tool"],["update:index"]),setup(d,{expose:t,emit:a}){const o=d,y=a,v=e.useModel(d,"index"),c=e.computed(()=>o.slides[v.value]),s=e.computed(()=>o.slides.filter(({check:b})=>b)),m=e.ref(),g=e.ref(),h=e.ref(),n=e.ref(),l=e.ref(o.showKeyboard),u=e.ref(o.showKfbLabel),r=e.ref(!1),i=e.ref(!1),p=e.ref(!1),{t:w}=U(),k=e.computed(()=>{var b;if(r.value){const N=s.value.findIndex(({id:S})=>{var q;return S===((q=c.value)==null?void 0:q.id)});return((b=h.value)==null?void 0:b[N])||g.value}else return g.value}),f=e.computed(()=>s.value.length<=1?{height:"100%",width:"100%"}:s.value.length<=2?{height:"100%",width:"calc((100% - 4px) / 2)"}:s.value.length<=4?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px) / 2)"}:s.value.length<=6?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px * 2) / 3)"}:s.value.length<=9?{height:"calc((100% - 4px * 2) / 3)",width:"calc((100% - 4px * 2) / 3)"}:{height:"100%",width:"100%"});e.watch(()=>s.value,b=>{r.value&&b.length<=1&&(r.value=!1)}),e.watch(()=>c.value,b=>{if(b){const N=b.read;b.read=!0,y("tool","choose",{slide:b,read:N})}});const{analysisClass:V,aiLabelList:z,enableAi:E,enableIqc:A,toggleIqc:D,toggleAi:K}=Po(o,c);function H(b,N){b==="next"&&o.slides[v.value+1]&&v.value++,b==="prev"&&o.slides[v.value-1]&&v.value--,(b==="label"||b==="tool")&&(u.value=N),y("tool",b,N)}function G(b){var S,q,ne;const N=O(L({},o.kfb),{process:o.process,microscope:o.microscope,slide:b,aiLabelList:c.value.id===b.id?((S=n.value)==null?void 0:S.labelList)||[]:[],hotmap:(q=b==null?void 0:b.hotmap)!=null&&q.file?O(L({},(b==null?void 0:b.hotmap)||{}),{enable:E.value}):void 0,syncPosition:i.value,syncZoom:i.value,handle:void 0});return(ne=o.kfb)!=null&&ne.handle?o.kfb.handle(b,N):N}function ee(b){v.value=o.slides.findIndex(N=>N.id===b.id)}function ue(b){r.value&&(o.slides[b].check=!0)}function de(){var b;u.value=!p.value,(b=r.value?h.value:[g.value])==null||b.forEach(N=>{p.value&&(N.updateGrid({show:!p.value,ruler:!p.value}),l.value=!p.value),N.updateGraduation({show:!p.value}),N.updateNavigator(!p.value)})}function fe(b){v.value=b,m.value&&m.value.jumpToSlide(b)}function te(b,N){k.value&&k.value.jumpToLabel(b,N)}function oe(b,N){k.value&&k.value.jumpToPosition(b,N)}return e.provide("kfbViewRef",k),e.provide("show-keyboard",l),e.provide("show-kfb-label",u),e.provide("hidden-all-label",p),e.provide("file-index",v),e.provide("divide",r),e.provide("sync",i),t({divide:r,slide:c,kfbViewRef:k,jumpToSlide:fe,jumpToLabel:te,jumpToPosition:oe,enableAI:e.computed(()=>{var b;return((b=o.ai)==null?void 0:b.enable)&&z.value.length})}),(b,N)=>(e.openBlock(),e.createElementBlock("div",Bn,[b.menus.length?(e.openBlock(),e.createBlock(J,{key:0,menu:b.menus,"show-menu-text":b.showMenuText,process:b.process,microscope:b.microscope,onTool:H},{left:e.withCtx(()=>[e.renderSlot(b.$slots,"left")]),right:e.withCtx(()=>[e.createVNode(e.unref(C.ElSwitch),{modelValue:p.value,"onUpdate:modelValue":N[0]||(N[0]=S=>p.value=S),"active-text":e.unref(w)("隐藏标签"),class:"margin-r-2",onChange:de},null,8,["modelValue","active-text"]),b.ai&&b.ai.enable&&e.unref(V)==="IQC"?(e.openBlock(),e.createBlock(e.unref(C.ElSwitch),{key:0,modelValue:e.unref(A),"onUpdate:modelValue":N[1]||(N[1]=S=>e.isRef(A)?A.value=S:null),"active-text":e.unref(w)("AI质控"),class:"margin-r-2",onChange:e.unref(D)},null,8,["modelValue","active-text","onChange"])):b.ai&&b.ai.enable&&e.unref(V)?(e.openBlock(),e.createBlock(e.unref(C.ElSwitch),{key:1,modelValue:e.unref(E),"onUpdate:modelValue":N[2]||(N[2]=S=>e.isRef(E)?E.value=S:null),"active-text":e.unref(w)("AI分析"),class:"margin-r-2",onChange:e.unref(K)},null,8,["modelValue","active-text","onChange"])):e.createCommentVNode("",!0),e.renderSlot(b.$slots,"right")]),_:3},8,["menu","show-menu-text","process","microscope"])):e.createCommentVNode("",!0),e.createElementVNode("div",Tn,[b.showList?(e.openBlock(),e.createBlock(e.Teleport,{key:0,defer:"",to:"#kfb-slide-list",disabled:!b.teleport},[e.createVNode(_n,{ref_key:"slidesRef",ref:m,style:e.normalizeStyle(b.teleport?"":"width: 250px"),slides:b.slides,onSelect:ue,onTool:H},{slide:e.withCtx(({slide:S})=>[e.renderSlot(b.$slots,"list",{slide:S})]),_:3},8,["style","slides"])],8,["disabled"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Teleport,{defer:"",to:"#kfb-slide-view",disabled:!b.teleport},[e.createElementVNode("div",Sn,[s.value.length&&r.value?(e.openBlock(),e.createElementBlock("ul",Ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(S,q)=>(e.openBlock(),e.createElementBlock("li",{key:q,style:e.normalizeStyle(f.value),class:e.normalizeClass(c.value.id===S.id?"hzzt-kfb-view-screen-active":""),onClick:ne=>ee(S)},[(e.openBlock(),e.createBlock(Y,e.mergeProps({ref_for:!0,ref_key:"kfbViewRefs",ref:h,key:`kfb-${q}`},{ref_for:!0},G(S),{onTool:H}),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"kfb",{slide:S})]),_:2},1040))],14,$n))),128))])):c.value?(e.openBlock(),e.createBlock(Y,e.mergeProps({key:1,ref_key:"kfbViewRef",ref:g},G(c.value),{onTool:H}),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"kfb",{slide:c.value})]),_:3},16)):e.createCommentVNode("",!0)])],8,["disabled"])),b.ai&&b.ai.enable&&e.unref(z).length?(e.openBlock(),e.createBlock(e.Teleport,{key:1,defer:"",to:"#kfb-slide-ai",disabled:!b.teleport},[e.createVNode(Nn,{style:e.normalizeStyle(b.teleport?"":"width: 350px"),ref_key:"kfbAiRef",ref:n,data:e.unref(z),slide:c.value},null,8,["style","data","slide"])],8,["disabled"])):e.createCommentVNode("",!0),e.renderSlot(b.$slots,"default")])]))}});ae.name="HzztKfbSlide";Y.name="HzztKfbView";J.name="HzztKfbToolbox";const Mn=(d,t)=>{d.use(mt,t==null?void 0:t.i18n),d.component(ae.name,ae),d.component(Y.name,Y),d.component(J.name,J)},Pn={install:Mn,HzztKfbSlide:ae,HzztKfbView:Y,HzztKfbToolbox:J};exports.DEFAULT_MICROSCOPE=ce;exports.DEFAULT_PROCESS=me;exports._export_sfc=Z;exports._sfc_main=ae;exports._sfc_main$1=Y;exports._sfc_main$2=J;exports.arrow=Le;exports.bilateral=$e;exports.dot=Re;exports.ellipse=Pe;exports.flag=Ae;exports.font=He;exports.index=Pn;exports.line=Se;exports.polygon=Ie;exports.rectangle=Me;exports.star=De;exports.useLocalI18n=U;exports.voice=Fe;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as r, createElementVNode as t } from "vue";
2
- import { _ as n } from "./indexDOcglE90.js";
2
+ import { _ as n } from "./indexB0v3MpmE.js";
3
3
  const C = {}, c = {
4
4
  viewBox: "0 0 24 24",
5
5
  xmlns: "http://www.w3.org/2000/svg"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexCBVjt8NT.js"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(C,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/提示"},[e.createElementVNode("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.48013 6.47433 2 12 2C17.5201 2 22 6.48013 22 12C22 17.5257 17.5201 22 12 22C6.47991 22 2 17.5257 2 12ZM12.168 15.2761C11.8141 16.152 12.2581 17.082 13.1461 17.352C14.0339 17.6222 14.0161 18.03 13.1102 18.2517L12.4083 18.4256C11.4963 18.6534 10.2302 18.6295 9.60024 18.3776C8.97024 18.1256 8.74219 17.2017 9.09024 16.3317L10.6622 12.4137C11.0161 11.5378 10.5602 10.6198 9.65414 10.3678L9.35414 10.2839C8.44805 10.032 8.4661 9.70195 9.3961 9.55195L10.2961 9.40804C11.22 9.25805 12.4981 9.34219 13.128 9.59414C13.7641 9.84609 13.992 10.77 13.6381 11.64L12.168 15.2761ZM11.52 7.05C11.52 6.36586 12.0722 5.8139 12.7561 5.8139C13.44 5.8139 13.9981 6.36609 13.9922 7.05C13.9922 7.73414 13.44 8.28609 12.7561 8.28609C12.072 8.28609 11.52 7.7339 11.52 7.05Z"})],-1)]))}const d=n._export_sfc(o,[["render",c]]);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexBkFttmTs.js"),o={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(C,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/提示"},[e.createElementVNode("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 12C2 6.48013 6.47433 2 12 2C17.5201 2 22 6.48013 22 12C22 17.5257 17.5201 22 12 22C6.47991 22 2 17.5257 2 12ZM12.168 15.2761C11.8141 16.152 12.2581 17.082 13.1461 17.352C14.0339 17.6222 14.0161 18.03 13.1102 18.2517L12.4083 18.4256C11.4963 18.6534 10.2302 18.6295 9.60024 18.3776C8.97024 18.1256 8.74219 17.2017 9.09024 16.3317L10.6622 12.4137C11.0161 11.5378 10.5602 10.6198 9.65414 10.3678L9.35414 10.2839C8.44805 10.032 8.4661 9.70195 9.3961 9.55195L10.2961 9.40804C11.22 9.25805 12.4981 9.34219 13.128 9.59414C13.7641 9.84609 13.992 10.77 13.6381 11.64L12.168 15.2761ZM11.52 7.05C11.52 6.36586 12.0722 5.8139 12.7561 5.8139C13.44 5.8139 13.9981 6.36609 13.9922 7.05C13.9922 7.73414 13.44 8.28609 12.7561 8.28609C12.072 8.28609 11.52 7.7339 11.52 7.05Z"})],-1)]))}const d=n._export_sfc(o,[["render",c]]);exports.default=d;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as t, openBlock as e, createElementVNode as f } from "vue";
2
- import { _ as l } from "./indexDOcglE90.js";
2
+ import { _ as l } from "./indexB0v3MpmE.js";
3
3
  const o = {}, n = {
4
4
  t: "1751700110518",
5
5
  class: "icon",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./indexCBVjt8NT.js"),f={},l={t:"1751700110518",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1574",width:"32",height:"32"};function n(i,t){return e.openBlock(),e.createElementBlock("svg",l,t[0]||(t[0]=[e.createElementVNode("path",{d:"M979.776 260.032c-2.496-2.816-4.992-5.696-7.808-8.064-7.488-6.272-15.488-11.712-24.384-16.064-130.816-64.192-261.504-128.64-392.32-192.832C544 37.632 532.096 33.6 519.552 32h-12.16c-30.4 5.568-56.512 21.696-83.584 34.88-118.592 57.472-236.992 115.136-355.2 173.376-18.304 9.088-32.576 23.488-35.904 45.504-0.128 0.768-0.448 1.472-0.704 2.176v9.344c1.92 10.048 5.12 19.584 11.904 27.584 2.368 2.688 4.608 5.568 7.36 7.808 7.232 5.824 14.528 11.456 22.976 15.616 131.776 64.704 263.36 129.664 395.264 194.176 11.136 5.504 22.592 10.88 35.456 12.032 13.056 1.216 25.28-1.024 36.8-6.656a771854.477 771854.477 0 0 0 399.936-195.712c4.48-2.24 9.152-4.096 13.376-6.72 12.48-7.488 24.192-16.128 30.784-29.632 2.816-5.76 4.096-12.288 6.144-18.496v-9.344c-2.048-10.176-5.312-19.904-12.224-27.904z","p-id":"1575",fill:"#ffffff"},null,-1),e.createElementVNode("path",{d:"M934.848 454.976c-14.336-2.496-28.352-1.088-41.536 5.44-25.344 12.608-50.496 25.728-76.032 38.016-100.224 48.128-200.64 96-300.928 144.064-2.88 1.344-5.184 1.536-8.192 0.128-122.88-59.584-245.696-119.04-368.512-178.56-20.608-9.984-42.432-12.992-64.704-8.832-22.848 4.352-38.72 23.232-41.92 47.232-0.192 1.28-0.704 2.624-1.024 3.904v12.16c1.92 9.856 5.12 19.2 11.584 27.2 6.144 7.552 13.312 13.76 21.952 17.984 134.976 66.944 270.016 133.952 405.184 200.512 10.816 5.312 22.016 10.56 34.624 11.584 12.672 1.024 24.704-1.088 35.968-6.464 138.816-66.432 277.632-132.8 416.256-199.552 18.624-8.96 29.184-24.832 33.408-44.864 0.384-1.472 0.704-3.008 1.088-4.48v-11.264c-1.28-4.096-2.112-8.448-3.776-12.352-9.792-24.128-28.288-37.376-53.44-41.856z","p-id":"1576",fill:"#ffffff"},null,-1),e.createElementVNode("path",{d:"M934.784 670.656c-14.272-2.496-28.352-1.088-41.536 5.44-25.664 12.736-51.136 25.984-76.928 38.464-99.776 47.872-199.552 95.424-299.328 143.296-3.648 1.664-6.464 1.6-9.92-0.128C384.96 798.464 262.784 739.328 140.608 680c-18.88-9.152-38.72-11.84-59.2-10.24-23.808 1.792-42.176 19.136-47.36 43.264-0.704 3.008-1.408 5.952-2.048 8.96v12.16c1.92 9.664 4.992 18.88 11.264 26.816 6.272 7.872 13.696 14.208 22.656 18.624C200.704 846.4 335.552 913.28 470.528 979.776c11.52 5.696 23.616 10.944 36.8 12.16h9.344c10.816-1.728 20.992-5.12 30.848-10.112 12.672-6.4 26.048-11.52 38.848-17.664 123.2-59.2 246.336-118.528 369.344-177.792 19.52-9.408 30.848-25.28 35.2-46.272 0.32-1.344 0.64-2.688 1.024-4.032V724.8c-1.28-4.096-2.112-8.448-3.776-12.352-9.664-24.128-28.224-37.376-53.376-41.792z","p-id":"1577",fill:"#ffffff"},null,-1)]))}const o=c._export_sfc(f,[["render",n]]);exports.default=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./indexBkFttmTs.js"),f={},l={t:"1751700110518",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1574",width:"32",height:"32"};function n(i,t){return e.openBlock(),e.createElementBlock("svg",l,t[0]||(t[0]=[e.createElementVNode("path",{d:"M979.776 260.032c-2.496-2.816-4.992-5.696-7.808-8.064-7.488-6.272-15.488-11.712-24.384-16.064-130.816-64.192-261.504-128.64-392.32-192.832C544 37.632 532.096 33.6 519.552 32h-12.16c-30.4 5.568-56.512 21.696-83.584 34.88-118.592 57.472-236.992 115.136-355.2 173.376-18.304 9.088-32.576 23.488-35.904 45.504-0.128 0.768-0.448 1.472-0.704 2.176v9.344c1.92 10.048 5.12 19.584 11.904 27.584 2.368 2.688 4.608 5.568 7.36 7.808 7.232 5.824 14.528 11.456 22.976 15.616 131.776 64.704 263.36 129.664 395.264 194.176 11.136 5.504 22.592 10.88 35.456 12.032 13.056 1.216 25.28-1.024 36.8-6.656a771854.477 771854.477 0 0 0 399.936-195.712c4.48-2.24 9.152-4.096 13.376-6.72 12.48-7.488 24.192-16.128 30.784-29.632 2.816-5.76 4.096-12.288 6.144-18.496v-9.344c-2.048-10.176-5.312-19.904-12.224-27.904z","p-id":"1575",fill:"#ffffff"},null,-1),e.createElementVNode("path",{d:"M934.848 454.976c-14.336-2.496-28.352-1.088-41.536 5.44-25.344 12.608-50.496 25.728-76.032 38.016-100.224 48.128-200.64 96-300.928 144.064-2.88 1.344-5.184 1.536-8.192 0.128-122.88-59.584-245.696-119.04-368.512-178.56-20.608-9.984-42.432-12.992-64.704-8.832-22.848 4.352-38.72 23.232-41.92 47.232-0.192 1.28-0.704 2.624-1.024 3.904v12.16c1.92 9.856 5.12 19.2 11.584 27.2 6.144 7.552 13.312 13.76 21.952 17.984 134.976 66.944 270.016 133.952 405.184 200.512 10.816 5.312 22.016 10.56 34.624 11.584 12.672 1.024 24.704-1.088 35.968-6.464 138.816-66.432 277.632-132.8 416.256-199.552 18.624-8.96 29.184-24.832 33.408-44.864 0.384-1.472 0.704-3.008 1.088-4.48v-11.264c-1.28-4.096-2.112-8.448-3.776-12.352-9.792-24.128-28.288-37.376-53.44-41.856z","p-id":"1576",fill:"#ffffff"},null,-1),e.createElementVNode("path",{d:"M934.784 670.656c-14.272-2.496-28.352-1.088-41.536 5.44-25.664 12.736-51.136 25.984-76.928 38.464-99.776 47.872-199.552 95.424-299.328 143.296-3.648 1.664-6.464 1.6-9.92-0.128C384.96 798.464 262.784 739.328 140.608 680c-18.88-9.152-38.72-11.84-59.2-10.24-23.808 1.792-42.176 19.136-47.36 43.264-0.704 3.008-1.408 5.952-2.048 8.96v12.16c1.92 9.664 4.992 18.88 11.264 26.816 6.272 7.872 13.696 14.208 22.656 18.624C200.704 846.4 335.552 913.28 470.528 979.776c11.52 5.696 23.616 10.944 36.8 12.16h9.344c10.816-1.728 20.992-5.12 30.848-10.112 12.672-6.4 26.048-11.52 38.848-17.664 123.2-59.2 246.336-118.528 369.344-177.792 19.52-9.408 30.848-25.28 35.2-46.272 0.32-1.344 0.64-2.688 1.024-4.032V724.8c-1.28-4.096-2.112-8.448-3.776-12.352-9.664-24.128-28.224-37.376-53.376-41.792z","p-id":"1577",fill:"#ffffff"},null,-1)]))}const o=c._export_sfc(f,[["render",n]]);exports.default=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexCBVjt8NT.js"),n={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/显微镜"},[e.createElementVNode("path",{id:"Vector",d:"M10.3277 17.3171C10.7838 17.3171 11.1554 16.9691 11.1554 16.5419C11.1554 16.1148 10.7838 15.7667 10.3277 15.7667H4.5C4.04392 15.7667 3.6723 16.1148 3.6723 16.5419C3.6723 16.9691 4.04392 17.3171 4.5 17.3171H5.3277V18.8834H2.8277C2.37162 18.8834 2 19.2314 2 19.6586V21.2248C2 21.652 2.37162 22 2.8277 22H21.1723C21.6284 22 22 21.652 22 21.2248V19.6586C22 19.2314 21.6284 18.8834 21.1723 18.8834H18.8074C20.0912 14.5644 19.4493 10.8624 16.8818 7.84069L15.5135 10.0714C17.152 12.4761 17.3885 15.387 16.2061 18.8834H9.51689V17.3171H10.3277ZM10.3615 3.58498L7.43919 8.3153L7.08446 8.12546C6.47635 7.80905 5.71622 7.99889 5.37838 8.56843C5.04054 9.12214 5.24324 9.83407 5.83446 10.1505L12.3209 13.6626C12.9122 13.9948 13.6892 13.805 14.027 13.2513C14.3818 12.6976 14.1791 11.9698 13.5878 11.6534H13.5709L13.2162 11.4636L16.1385 6.70161C17.0676 5.21449 16.5439 3.30022 14.9561 2.43009C13.3682 1.55996 11.3243 2.0504 10.3953 3.53752C10.3784 3.55334 10.3615 3.56916 10.3615 3.58498Z"})],-1)]))}const C=o._export_sfc(n,[["render",c]]);exports.default=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexBkFttmTs.js"),n={},r={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("g",{id:"24*24/显微镜"},[e.createElementVNode("path",{id:"Vector",d:"M10.3277 17.3171C10.7838 17.3171 11.1554 16.9691 11.1554 16.5419C11.1554 16.1148 10.7838 15.7667 10.3277 15.7667H4.5C4.04392 15.7667 3.6723 16.1148 3.6723 16.5419C3.6723 16.9691 4.04392 17.3171 4.5 17.3171H5.3277V18.8834H2.8277C2.37162 18.8834 2 19.2314 2 19.6586V21.2248C2 21.652 2.37162 22 2.8277 22H21.1723C21.6284 22 22 21.652 22 21.2248V19.6586C22 19.2314 21.6284 18.8834 21.1723 18.8834H18.8074C20.0912 14.5644 19.4493 10.8624 16.8818 7.84069L15.5135 10.0714C17.152 12.4761 17.3885 15.387 16.2061 18.8834H9.51689V17.3171H10.3277ZM10.3615 3.58498L7.43919 8.3153L7.08446 8.12546C6.47635 7.80905 5.71622 7.99889 5.37838 8.56843C5.04054 9.12214 5.24324 9.83407 5.83446 10.1505L12.3209 13.6626C12.9122 13.9948 13.6892 13.805 14.027 13.2513C14.3818 12.6976 14.1791 11.9698 13.5878 11.6534H13.5709L13.2162 11.4636L16.1385 6.70161C17.0676 5.21449 16.5439 3.30022 14.9561 2.43009C13.3682 1.55996 11.3243 2.0504 10.3953 3.53752C10.3784 3.55334 10.3615 3.56916 10.3615 3.58498Z"})],-1)]))}const C=o._export_sfc(n,[["render",c]]);exports.default=C;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as C, createElementVNode as t } from "vue";
2
- import { _ as r } from "./indexDOcglE90.js";
2
+ import { _ as r } from "./indexB0v3MpmE.js";
3
3
  const n = {}, c = {
4
4
  viewBox: "0 0 24 24",
5
5
  xmlns: "http://www.w3.org/2000/svg"
@@ -0,0 +1 @@
1
+ "use strict";var x=Object.defineProperty,N=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var V=(i,o,l)=>o in i?x(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,m=(i,o)=>{for(var l in o||(o={}))h.call(o,l)&&V(i,l,o[l]);if(v)for(var l of v(o))w.call(o,l)&&V(i,l,o[l]);return i},g=(i,o)=>N(i,C(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./microscopeD-EjOdf2.js"),s=require("element-plus"),E=require("./useCommonBD90FQd0.js"),p=require("./indexBkFttmTs.js"),y={class:"flex align-items-center margin-t-2"},I={style:{"min-width":"120px"}},P={class:"flex align-items-center margin-t-2"},S={style:{"min-width":"120px"}},k={class:"flex align-items-center margin-t-2"},z={style:{"min-width":"120px"}},D=e.defineComponent({name:"ToolMicroscope",__name:"microscope",props:e.mergeDefaults({scope:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},g(m({},E.defaultProps),{scope:()=>m({},p.DEFAULT_MICROSCOPE)})),emits:["tool"],setup(i,{emit:o}){const l=i,n=e.reactive(m(m({},p.DEFAULT_MICROSCOPE),l.scope));e.watch(()=>l.scope,a=>{Object.assign(n,a)});const f=o,{t:d,textClass:b}=E.useCommon(),u=e.ref(!1);function c(a,t){a==="visible"?(u.value=!u.value,f("tool","microscope",{name:a,value:u.value})):f("tool","microscope",{name:a,value:t})}return(a,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{visible:u.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"300px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[8]||(t[8]=r=>c("visible",u.value))},[e.createVNode(e.unref(s.ElIcon),{size:a.size},{default:e.withCtx(()=>[e.createVNode(_.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(b))},e.toDisplayString(e.unref(d)(a.text||"镜下")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never",header:e.unref(d)("镜下视野")},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(s.ElRadioGroup),{modelValue:n.shape,"onUpdate:modelValue":t[0]||(t[0]=r=>n.shape=r),onChange:t[1]||(t[1]=r=>c("change",n))},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElRadio),{value:"50%",label:e.unref(d)("圆形")},null,8,["label"]),e.createVNode(e.unref(s.ElRadio),{value:"0",label:e.unref(d)("矩形")},null,8,["label"])]),_:1},8,["modelValue"]),e.createElementVNode("div",y,[e.createElementVNode("p",I,e.toDisplayString(e.unref(d)("视野直径(mm)"))+": ",1),e.createVNode(e.unref(s.ElInputNumber),{class:"flex-1",modelValue:n.width,"onUpdate:modelValue":t[2]||(t[2]=r=>n.width=r),onInput:t[3]||(t[3]=r=>c("change",n))},null,8,["modelValue"])]),e.createElementVNode("div",P,[e.createElementVNode("p",S,e.toDisplayString(e.unref(d)("边框宽度"))+"(px): ",1),e.createVNode(e.unref(s.ElInputNumber),{class:"flex-1",modelValue:n.borderWidth,"onUpdate:modelValue":t[4]||(t[4]=r=>n.borderWidth=r),onInput:t[5]||(t[5]=r=>c("change",n))},null,8,["modelValue"])]),e.createElementVNode("div",k,[e.createElementVNode("p",z,e.toDisplayString(e.unref(d)("边框颜色"))+": ",1),e.createVNode(e.unref(s.ElColorPicker),{modelValue:n.color,"onUpdate:modelValue":t[6]||(t[6]=r=>n.color=r),onChange:t[7]||(t[7]=r=>c("change",n))},null,8,["modelValue"])])])]),_:1},8,["header"])]),_:1},8,["visible"]))}}),O=p._export_sfc(D,[["__scopeId","data-v-fe8098cc"]]);exports.default=O;
@@ -0,0 +1,132 @@
1
+ var w = Object.defineProperty, k = Object.defineProperties;
2
+ var z = Object.getOwnPropertyDescriptors;
3
+ var b = Object.getOwnPropertySymbols;
4
+ var I = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
5
+ var x = (i, l, t) => l in i ? w(i, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[l] = t, c = (i, l) => {
6
+ for (var t in l || (l = {}))
7
+ I.call(l, t) && x(i, t, l[t]);
8
+ if (b)
9
+ for (var t of b(l))
10
+ P.call(l, t) && x(i, t, l[t]);
11
+ return i;
12
+ }, V = (i, l) => k(i, z(l));
13
+ import { defineComponent as U, mergeDefaults as $, reactive as y, watch as B, ref as D, createBlock as N, openBlock as O, unref as o, withCtx as v, createVNode as a, createElementVNode as r, toDisplayString as f, normalizeClass as R } from "vue";
14
+ import F from "./microscopeD-FrVKRB.js";
15
+ import { ElPopover as M, ElCard as S, ElRadioGroup as T, ElRadio as h, ElInputNumber as C, ElColorPicker as W, ElIcon as j } from "element-plus";
16
+ import { u as A, d as G } from "./useCommonBD-xKHu3.js";
17
+ import { g as E, _ as L } from "./indexB0v3MpmE.js";
18
+ const q = { class: "flex align-items-center margin-t-2" }, H = { style: { "min-width": "120px" } }, J = { class: "flex align-items-center margin-t-2" }, K = { style: { "min-width": "120px" } }, Q = { class: "flex align-items-center margin-t-2" }, X = { style: { "min-width": "120px" } }, Y = /* @__PURE__ */ U({
19
+ name: "ToolMicroscope",
20
+ __name: "microscope",
21
+ props: /* @__PURE__ */ $({
22
+ scope: {},
23
+ size: {},
24
+ text: {},
25
+ name: {},
26
+ component: {},
27
+ isPrevent: { type: Boolean },
28
+ callback: { type: Function }
29
+ }, V(c({}, G), {
30
+ scope: () => c({}, E)
31
+ })),
32
+ emits: ["tool"],
33
+ setup(i, { emit: l }) {
34
+ const t = i, n = y(c(c({}, E), t.scope));
35
+ B(() => t.scope, (d) => {
36
+ Object.assign(n, d);
37
+ });
38
+ const g = l, { t: m, textClass: _ } = A(), p = D(!1);
39
+ function u(d, e) {
40
+ d === "visible" ? (p.value = !p.value, g("tool", "microscope", {
41
+ name: d,
42
+ value: p.value
43
+ })) : g("tool", "microscope", {
44
+ name: d,
45
+ value: e
46
+ });
47
+ }
48
+ return (d, e) => (O(), N(o(M), {
49
+ visible: p.value,
50
+ "popper-class": "el-popover-padding-0",
51
+ placement: "bottom",
52
+ width: "300px",
53
+ trigger: "click"
54
+ }, {
55
+ reference: v(() => [
56
+ r("div", {
57
+ class: "hzzt-kfb-toolbox__icon",
58
+ onClick: e[8] || (e[8] = (s) => u("visible", p.value))
59
+ }, [
60
+ a(o(j), { size: d.size }, {
61
+ default: v(() => [
62
+ a(F)
63
+ ]),
64
+ _: 1
65
+ }, 8, ["size"]),
66
+ r("div", {
67
+ class: R(o(_))
68
+ }, f(o(m)(d.text || "镜下")), 3)
69
+ ])
70
+ ]),
71
+ default: v(() => [
72
+ a(o(S), {
73
+ shadow: "never",
74
+ header: o(m)("镜下视野")
75
+ }, {
76
+ default: v(() => [
77
+ r("div", null, [
78
+ a(o(T), {
79
+ modelValue: n.shape,
80
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => n.shape = s),
81
+ onChange: e[1] || (e[1] = (s) => u("change", n))
82
+ }, {
83
+ default: v(() => [
84
+ a(o(h), {
85
+ value: "50%",
86
+ label: o(m)("圆形")
87
+ }, null, 8, ["label"]),
88
+ a(o(h), {
89
+ value: "0",
90
+ label: o(m)("矩形")
91
+ }, null, 8, ["label"])
92
+ ]),
93
+ _: 1
94
+ }, 8, ["modelValue"]),
95
+ r("div", q, [
96
+ r("p", H, f(o(m)("视野直径(mm)")) + ": ", 1),
97
+ a(o(C), {
98
+ class: "flex-1",
99
+ modelValue: n.width,
100
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => n.width = s),
101
+ onInput: e[3] || (e[3] = (s) => u("change", n))
102
+ }, null, 8, ["modelValue"])
103
+ ]),
104
+ r("div", J, [
105
+ r("p", K, f(o(m)("边框宽度")) + "(px): ", 1),
106
+ a(o(C), {
107
+ class: "flex-1",
108
+ modelValue: n.borderWidth,
109
+ "onUpdate:modelValue": e[4] || (e[4] = (s) => n.borderWidth = s),
110
+ onInput: e[5] || (e[5] = (s) => u("change", n))
111
+ }, null, 8, ["modelValue"])
112
+ ]),
113
+ r("div", Q, [
114
+ r("p", X, f(o(m)("边框颜色")) + ": ", 1),
115
+ a(o(W), {
116
+ modelValue: n.color,
117
+ "onUpdate:modelValue": e[6] || (e[6] = (s) => n.color = s),
118
+ onChange: e[7] || (e[7] = (s) => u("change", n))
119
+ }, null, 8, ["modelValue"])
120
+ ])
121
+ ])
122
+ ]),
123
+ _: 1
124
+ }, 8, ["header"])
125
+ ]),
126
+ _: 1
127
+ }, 8, ["visible"]));
128
+ }
129
+ }), se = /* @__PURE__ */ L(Y, [["__scopeId", "data-v-fe8098cc"]]);
130
+ export {
131
+ se as default
132
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as b, mergeDefaults as _, ref as u, createBlock as C, openBlock as g, unref as o, withCtx as s, createVNode as i, createElementVNode as r, toDisplayString as v, normalizeClass as x } from "vue";
2
+ import { u as z, d as k } from "./useCommonBD-xKHu3.js";
3
+ import E from "./movebJvf1oPR.js";
4
+ import { ElPopover as V, ElCard as I, ElInputNumber as w, ElIcon as B } from "element-plus";
5
+ import { _ as M } from "./indexB0v3MpmE.js";
6
+ const N = { class: "margin-b-1" }, P = /* @__PURE__ */ b({
7
+ name: "ToolMove",
8
+ __name: "move",
9
+ props: /* @__PURE__ */ _({
10
+ size: {},
11
+ text: {},
12
+ name: {},
13
+ component: {},
14
+ isPrevent: { type: Boolean },
15
+ callback: { type: Function }
16
+ }, k),
17
+ emits: ["tool"],
18
+ setup($, { emit: d }) {
19
+ const f = d, { t: p, textClass: c } = z(), l = u(!1), a = u(1);
20
+ function m(t, e) {
21
+ t === "visible" ? l.value = !l.value : f("tool", "move", {
22
+ name: t,
23
+ value: e
24
+ });
25
+ }
26
+ return (t, e) => (g(), C(o(V), {
27
+ visible: l.value,
28
+ "popper-class": "el-popover-padding-0",
29
+ placement: "bottom",
30
+ width: "200px",
31
+ trigger: "click"
32
+ }, {
33
+ reference: s(() => [
34
+ r("div", {
35
+ class: "hzzt-kfb-toolbox__icon",
36
+ onClick: e[3] || (e[3] = (n) => m("visible", l.value))
37
+ }, [
38
+ i(o(B), { size: t.size }, {
39
+ default: s(() => [
40
+ i(E)
41
+ ]),
42
+ _: 1
43
+ }, 8, ["size"]),
44
+ r("div", {
45
+ class: x(o(c))
46
+ }, v(o(p)(t.text || "快速移动")), 3)
47
+ ])
48
+ ]),
49
+ default: s(() => [
50
+ i(o(I), { shadow: "never" }, {
51
+ default: s(() => [
52
+ r("div", null, [
53
+ r("p", N, v(o(p)("图像移动倍率")) + ":", 1),
54
+ i(o(w), {
55
+ modelValue: a.value,
56
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => a.value = n),
57
+ step: 0.2,
58
+ min: 1,
59
+ max: 10,
60
+ onChange: e[1] || (e[1] = (n) => m("ratio", a.value)),
61
+ onInput: e[2] || (e[2] = (n) => m("ratio", a.value))
62
+ }, null, 8, ["modelValue"])
63
+ ])
64
+ ]),
65
+ _: 1
66
+ })
67
+ ]),
68
+ _: 1
69
+ }, 8, ["visible"]));
70
+ }
71
+ }), T = /* @__PURE__ */ M(P, [["__scopeId", "data-v-aa10a89d"]]);
72
+ export {
73
+ T as default
74
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexCBVjt8NT.js"),o={},r={t:"1716452230517",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5203",width:"128",height:"128"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{d:"M682.666667 341.333333V170.666667l341.333333 341.333333-341.333333 341.333333v-170.666666h-213.333334V341.333333h213.333334zM384 341.333333H298.666667v341.333334h85.333333V341.333333zM212.736 341.333333H128v341.333334h84.736V341.333333zM42.666667 341.333333H0v341.333334h42.666667V341.333333z","p-id":"5204"},null,-1)]))}const i=n._export_sfc(o,[["render",c]]);exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexBkFttmTs.js"),o={},r={t:"1716452230517",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5203",width:"128",height:"128"};function c(s,t){return e.openBlock(),e.createElementBlock("svg",r,t[0]||(t[0]=[e.createElementVNode("path",{d:"M682.666667 341.333333V170.666667l341.333333 341.333333-341.333333 341.333333v-170.666666h-213.333334V341.333333h213.333334zM384 341.333333H298.666667v341.333334h85.333333V341.333333zM212.736 341.333333H128v341.333334h84.736V341.333333zM42.666667 341.333333H0v341.333334h42.666667V341.333333z","p-id":"5204"},null,-1)]))}const i=n._export_sfc(o,[["render",c]]);exports.default=i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./useCommonBD90FQd0.js"),c=require("./moveDYmvf7k8.js"),r=require("element-plus"),p=require("./indexBkFttmTs.js"),f={class:"margin-b-1"},b=e.defineComponent({name:"ToolMove",__name:"move",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},u.defaultProps),emits:["tool"],setup(g,{emit:m}){const d=m,{t:i,textClass:v}=u.useCommon(),n=e.ref(!1),l=e.ref(1);function s(o,t){o==="visible"?n.value=!n.value:d("tool","move",{name:o,value:t})}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"200px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[3]||(t[3]=a=>s("visible",n.value))},[e.createVNode(e.unref(r.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(c.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(o.text||"快速移动")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",f,e.toDisplayString(e.unref(i)("图像移动倍率"))+":",1),e.createVNode(e.unref(r.ElInputNumber),{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),step:.2,min:1,max:10,onChange:t[1]||(t[1]=a=>s("ratio",l.value)),onInput:t[2]||(t[2]=a=>s("ratio",l.value))},null,8,["modelValue"])])]),_:1})]),_:1},8,["visible"]))}}),C=p._export_sfc(b,[["__scopeId","data-v-aa10a89d"]]);exports.default=C;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as o, createElementVNode as n } from "vue";
2
- import { _ as r } from "./indexDOcglE90.js";
2
+ import { _ as r } from "./indexB0v3MpmE.js";
3
3
  const s = {}, c = {
4
4
  t: "1716452230517",
5
5
  class: "icon",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexCBVjt8NT.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",{id:"上一例"},[e.createElementVNode("path",{id:"Subtract",d:"M12.9012 6.09942C13.2648 5.91152 13.6903 6.0067 14.0204 6.24493C16.6043 8.10984 18.3663 10.1237 19.2186 11.2049C19.5935 11.6804 19.5935 12.3192 19.2186 12.7947C18.3663 13.8759 16.6043 15.8897 14.0204 17.7547C13.6903 17.9929 13.2648 18.0881 12.9012 17.9002C12.6792 17.7854 12.4124 17.6134 12.1327 17.3553C11.9272 17.1657 11.7725 16.9887 11.6561 16.8328C11.3717 16.4518 11.5019 15.9679 11.8377 15.6277C13.3236 14.1225 14.8063 12.6746 15.3153 12.1795C15.3392 12.1562 15.3579 12.1282 15.3709 12.0975C15.384 12.0666 15.3905 12.0333 15.3905 11.9998C15.3905 11.9663 15.384 11.933 15.3709 11.9022C15.3579 11.8714 15.3392 11.8434 15.3153 11.8201C14.8063 11.325 13.3237 9.87706 11.8377 8.37188C11.5019 8.03166 11.3717 7.5478 11.6561 7.1668C11.7725 7.01089 11.9272 6.83394 12.1327 6.64434C12.4125 6.38625 12.6792 6.21425 12.9012 6.09942Z",fill:"currentColor","fill-opacity":"0.9"}),e.createElementVNode("path",{id:"Subtract_2",d:"M6.40122 6.09942C6.76477 5.91152 7.1903 6.0067 7.52036 6.24493C10.1043 8.10984 11.8663 10.1237 12.7186 11.2049C13.0935 11.6804 13.0935 12.3192 12.7186 12.7947C11.8663 13.8759 10.1043 15.8897 7.52036 17.7547C7.19029 17.9929 6.76478 18.0881 6.40122 17.9002C6.17924 17.7854 5.91243 17.6134 5.63266 17.3553C5.42717 17.1657 5.27248 16.9887 5.1561 16.8328C4.87166 16.4518 5.00188 15.9679 5.33774 15.6277C6.82361 14.1225 8.30629 12.6746 8.81528 12.1795C8.83919 12.1562 8.85793 12.1282 8.87094 12.0975C8.88399 12.0666 8.89047 12.0333 8.89047 11.9998C8.89047 11.9663 8.88399 11.933 8.87094 11.9022C8.85793 11.8714 8.83919 11.8434 8.81528 11.8201C8.30629 11.325 6.82371 9.87706 5.33774 8.37188C5.00193 8.03166 4.87171 7.5478 5.1561 7.1668C5.27252 7.01089 5.42718 6.83394 5.63266 6.64434C5.91247 6.38625 6.17924 6.21425 6.40122 6.09942Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const l=C._export_sfc(r,[["render",n]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexBkFttmTs.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",{id:"上一例"},[e.createElementVNode("path",{id:"Subtract",d:"M12.9012 6.09942C13.2648 5.91152 13.6903 6.0067 14.0204 6.24493C16.6043 8.10984 18.3663 10.1237 19.2186 11.2049C19.5935 11.6804 19.5935 12.3192 19.2186 12.7947C18.3663 13.8759 16.6043 15.8897 14.0204 17.7547C13.6903 17.9929 13.2648 18.0881 12.9012 17.9002C12.6792 17.7854 12.4124 17.6134 12.1327 17.3553C11.9272 17.1657 11.7725 16.9887 11.6561 16.8328C11.3717 16.4518 11.5019 15.9679 11.8377 15.6277C13.3236 14.1225 14.8063 12.6746 15.3153 12.1795C15.3392 12.1562 15.3579 12.1282 15.3709 12.0975C15.384 12.0666 15.3905 12.0333 15.3905 11.9998C15.3905 11.9663 15.384 11.933 15.3709 11.9022C15.3579 11.8714 15.3392 11.8434 15.3153 11.8201C14.8063 11.325 13.3237 9.87706 11.8377 8.37188C11.5019 8.03166 11.3717 7.5478 11.6561 7.1668C11.7725 7.01089 11.9272 6.83394 12.1327 6.64434C12.4125 6.38625 12.6792 6.21425 12.9012 6.09942Z",fill:"currentColor","fill-opacity":"0.9"}),e.createElementVNode("path",{id:"Subtract_2",d:"M6.40122 6.09942C6.76477 5.91152 7.1903 6.0067 7.52036 6.24493C10.1043 8.10984 11.8663 10.1237 12.7186 11.2049C13.0935 11.6804 13.0935 12.3192 12.7186 12.7947C11.8663 13.8759 10.1043 15.8897 7.52036 17.7547C7.19029 17.9929 6.76478 18.0881 6.40122 17.9002C6.17924 17.7854 5.91243 17.6134 5.63266 17.3553C5.42717 17.1657 5.27248 16.9887 5.1561 16.8328C4.87166 16.4518 5.00188 15.9679 5.33774 15.6277C6.82361 14.1225 8.30629 12.6746 8.81528 12.1795C8.83919 12.1562 8.85793 12.1282 8.87094 12.0975C8.88399 12.0666 8.89047 12.0333 8.89047 11.9998C8.89047 11.9663 8.88399 11.933 8.87094 11.9022C8.85793 11.8714 8.83919 11.8434 8.81528 11.8201C8.30629 11.325 6.82371 9.87706 5.33774 8.37188C5.00193 8.03166 4.87171 7.5478 5.1561 7.1668C5.27252 7.01089 5.42718 6.83394 5.63266 6.64434C5.91247 6.38625 6.17924 6.21425 6.40122 6.09942Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const l=C._export_sfc(r,[["render",n]]);exports.default=l;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as o, createElementVNode as C } from "vue";
2
- import { _ as r } from "./indexDOcglE90.js";
2
+ import { _ as r } from "./indexB0v3MpmE.js";
3
3
  const i = {}, l = {
4
4
  width: "24",
5
5
  height: "24",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as o, createElementVNode as C } from "vue";
2
- import { _ as r } from "./indexDOcglE90.js";
2
+ import { _ as r } from "./indexB0v3MpmE.js";
3
3
  const i = {}, l = {
4
4
  width: "24",
5
5
  height: "24",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexCBVjt8NT.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",{id:"上一例"},[e.createElementVNode("path",{id:"Subtract",d:"M11.0988 6.09942C10.7352 5.91152 10.3097 6.0067 9.97964 6.24493C7.39574 8.10984 5.63367 10.1237 4.7814 11.2049C4.40654 11.6804 4.40654 12.3192 4.7814 12.7947C5.63366 13.8759 7.39572 15.8897 9.97964 17.7547C10.3097 17.9929 10.7352 18.0881 11.0988 17.9002C11.3208 17.7854 11.5876 17.6134 11.8673 17.3553C12.0728 17.1657 12.2275 16.9887 12.3439 16.8328C12.6283 16.4518 12.4981 15.9679 12.1623 15.6277C10.6764 14.1225 9.19371 12.6746 8.68472 12.1795C8.66081 12.1562 8.64207 12.1282 8.62906 12.0975C8.61601 12.0666 8.60953 12.0333 8.60953 11.9998C8.60953 11.9663 8.61601 11.933 8.62906 11.9022C8.64207 11.8714 8.66081 11.8434 8.68472 11.8201C9.19371 11.325 10.6763 9.87706 12.1623 8.37188C12.4981 8.03166 12.6283 7.5478 12.3439 7.1668C12.2275 7.01089 12.0728 6.83394 11.8673 6.64434C11.5875 6.38625 11.3208 6.21425 11.0988 6.09942Z",fill:"currentColor","fill-opacity":"0.9"}),e.createElementVNode("path",{id:"Subtract_2",d:"M17.5988 6.09942C17.2352 5.91152 16.8097 6.0067 16.4796 6.24493C13.8957 8.10984 12.1337 10.1237 11.2814 11.2049C10.9065 11.6804 10.9065 12.3192 11.2814 12.7947C12.1337 13.8759 13.8957 15.8897 16.4796 17.7547C16.8097 17.9929 17.2352 18.0881 17.5988 17.9002C17.8208 17.7854 18.0876 17.6134 18.3673 17.3553C18.5728 17.1657 18.7275 16.9887 18.8439 16.8328C19.1283 16.4518 18.9981 15.9679 18.6623 15.6277C17.1764 14.1225 15.6937 12.6746 15.1847 12.1795C15.1608 12.1562 15.1421 12.1282 15.1291 12.0975C15.116 12.0666 15.1095 12.0333 15.1095 11.9998C15.1095 11.9663 15.116 11.933 15.1291 11.9022C15.1421 11.8714 15.1608 11.8434 15.1847 11.8201C15.6937 11.325 17.1763 9.87706 18.6623 8.37188C18.9981 8.03166 19.1283 7.5478 18.8439 7.1668C18.7275 7.01089 18.5728 6.83394 18.3673 6.64434C18.0875 6.38625 17.8208 6.21425 17.5988 6.09942Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const l=C._export_sfc(r,[["render",n]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexBkFttmTs.js"),r={},o={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function n(c,t){return e.openBlock(),e.createElementBlock("svg",o,t[0]||(t[0]=[e.createElementVNode("g",{id:"上一例"},[e.createElementVNode("path",{id:"Subtract",d:"M11.0988 6.09942C10.7352 5.91152 10.3097 6.0067 9.97964 6.24493C7.39574 8.10984 5.63367 10.1237 4.7814 11.2049C4.40654 11.6804 4.40654 12.3192 4.7814 12.7947C5.63366 13.8759 7.39572 15.8897 9.97964 17.7547C10.3097 17.9929 10.7352 18.0881 11.0988 17.9002C11.3208 17.7854 11.5876 17.6134 11.8673 17.3553C12.0728 17.1657 12.2275 16.9887 12.3439 16.8328C12.6283 16.4518 12.4981 15.9679 12.1623 15.6277C10.6764 14.1225 9.19371 12.6746 8.68472 12.1795C8.66081 12.1562 8.64207 12.1282 8.62906 12.0975C8.61601 12.0666 8.60953 12.0333 8.60953 11.9998C8.60953 11.9663 8.61601 11.933 8.62906 11.9022C8.64207 11.8714 8.66081 11.8434 8.68472 11.8201C9.19371 11.325 10.6763 9.87706 12.1623 8.37188C12.4981 8.03166 12.6283 7.5478 12.3439 7.1668C12.2275 7.01089 12.0728 6.83394 11.8673 6.64434C11.5875 6.38625 11.3208 6.21425 11.0988 6.09942Z",fill:"currentColor","fill-opacity":"0.9"}),e.createElementVNode("path",{id:"Subtract_2",d:"M17.5988 6.09942C17.2352 5.91152 16.8097 6.0067 16.4796 6.24493C13.8957 8.10984 12.1337 10.1237 11.2814 11.2049C10.9065 11.6804 10.9065 12.3192 11.2814 12.7947C12.1337 13.8759 13.8957 15.8897 16.4796 17.7547C16.8097 17.9929 17.2352 18.0881 17.5988 17.9002C17.8208 17.7854 18.0876 17.6134 18.3673 17.3553C18.5728 17.1657 18.7275 16.9887 18.8439 16.8328C19.1283 16.4518 18.9981 15.9679 18.6623 15.6277C17.1764 14.1225 15.6937 12.6746 15.1847 12.1795C15.1608 12.1562 15.1421 12.1282 15.1291 12.0975C15.116 12.0666 15.1095 12.0333 15.1095 11.9998C15.1095 11.9663 15.116 11.933 15.1291 11.9022C15.1421 11.8714 15.1608 11.8434 15.1847 11.8201C15.6937 11.325 17.1763 9.87706 18.6623 8.37188C18.9981 8.03166 19.1283 7.5478 18.8439 7.1668C18.7275 7.01089 18.5728 6.83394 18.3673 6.64434C18.0875 6.38625 17.8208 6.21425 17.5988 6.09942Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))}const l=C._export_sfc(r,[["render",n]]);exports.default=l;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as o, openBlock as C, createElementVNode as t } from "vue";
2
- import { _ as r } from "./indexDOcglE90.js";
2
+ import { _ as r } from "./indexB0v3MpmE.js";
3
3
  const n = {}, c = {
4
4
  viewBox: "0 0 24 24",
5
5
  xmlns: "http://www.w3.org/2000/svg"