hzzt-kfb-slide 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dist/components/annotateCPG0T3zR.js → components/annotate2o-1dfLI.js} +1 -1
- package/dist/components/annotateAI-JWSH6.js +1 -0
- package/dist/{dist/components/annotateBZhYifBy.js → components/annotateC9P_HUni.js} +1 -1
- package/dist/components/annotateCvQBDtIU.js +123 -0
- package/dist/{dist/components/arrowBJ1_uQ_E.js → components/arrowBciNhKeC.js} +1 -1
- package/dist/{dist/components/arrowDownNi-pK4NR.js → components/arrowDownCQ4SyfeE.js} +1 -1
- package/dist/{dist/components/arrowDownUoENEig7.js → components/arrowDownClJawdrb.js} +1 -1
- package/dist/{dist/components/arrowLeftBjlKltMm.js → components/arrowLeftBfE-rUOd.js} +1 -1
- package/dist/{dist/components/arrowLeftDNerwLPi.js → components/arrowLeftDXKznfa7.js} +1 -1
- package/dist/{dist/components/arrowRight44qqQj9S.js → components/arrowRightBFIf561u.js} +1 -1
- package/dist/{dist/components/arrowRightMPKmxcZ8.js → components/arrowRightDD_81Jxi.js} +1 -1
- package/dist/{dist/components/arrowUpDNv09R_q.js → components/arrowUpBWJ4tPxX.js} +1 -1
- package/dist/{dist/components/arrowUpu-KhVqDz.js → components/arrowUpCW9dIkdT.js} +1 -1
- package/dist/{dist/components/arrowDFlQxMKW.js → components/arrowqYc4Vwqs.js} +1 -1
- package/dist/{dist/components/channelDTeDAbXs.js → components/channelB-5CsDgJ.js} +1 -1
- package/dist/{dist/components/channelCzSNjDqs.js → components/channelDQ0dcclf.js} +1 -1
- package/dist/{dist/components/checkD58Lt_t9.js → components/checkDCUaoqtc.js} +1 -1
- package/dist/{dist/components/checkDg1XwTUE.js → components/checkDv3SyUAt.js} +1 -1
- package/dist/{dist/components/configFTiUKUAQ.js → components/configBG9sz92K.js} +1 -1
- package/dist/{dist/components/configDTj11Wdw.js → components/configD1oGPTSe.js} +1 -1
- package/dist/components/customBiZeClOe.js +39 -0
- package/dist/components/customDNmw3TmQ.js +1 -0
- package/dist/{dist/components/deleteBIUy0hW2.js → components/deleteAeZFc9Ps.js} +1 -1
- package/dist/{dist/components/deleteCeXlMQda.js → components/deletet8ykhJaO.js} +1 -1
- package/dist/{dist/components/dotBcz-OP0B.js → components/dotB2osXT1L.js} +1 -1
- package/dist/{dist/components/dotDpCmvPJC.js → components/dotBXbuJdtx.js} +1 -1
- package/dist/components/dotBi8Aw3pw.js +113 -0
- package/dist/components/dotCj7nxagF.js +1 -0
- package/dist/{dist/components/downloadnu9isJ53.js → components/downloadBPXmLTeR.js} +1 -1
- package/dist/components/downloadBsgfGz04.js +79 -0
- package/dist/components/downloadDqEDdAXm.js +1 -0
- package/dist/{dist/components/downloadBs4QK_IT.js → components/downloadpQ-y7WlA.js} +1 -1
- package/dist/{dist/components/flipvyz7dJPZ.js → components/flipRSac65ir.js} +1 -1
- package/dist/{dist/components/flipBwR2T8Rs.js → components/flipi9yEEtLG.js} +1 -1
- package/dist/components/fullscreenBZwo5K13.js +1 -0
- package/dist/{dist/components/fullscreenyNOuxxJv.js → components/fullscreenBnIlw4_E.js} +1 -1
- package/dist/{dist/components/fullscreenCVgGTPtD.js → components/fullscreenDS7i-f5F.js} +1 -1
- package/dist/components/fullscreenhc8QDZIL.js +51 -0
- package/dist/components/indexCbr7K6Yq.js +2843 -0
- package/dist/components/indexMzBpWXyM.js +4 -0
- package/dist/{dist/components/infoC4fRWu15.js → components/infoBNq0rH3E.js} +1 -1
- package/dist/{dist/components/infoCDweeRWp.js → components/infoCU8_TgkY.js} +1 -1
- package/dist/{dist/components/levelDjuyEKmz.js → components/levelC0LnNmSP.js} +1 -1
- package/dist/{dist/components/levelDjZ5vvyy.js → components/levelDYvedJFa.js} +1 -1
- package/dist/{dist/components/microscopeDCINdehp.js → components/microscopeBr8-XStr.js} +1 -1
- package/dist/{dist/components/microscopeDptxRPdj.js → components/microscopeCiYvQsyw.js} +1 -1
- package/dist/components/microscopeDMLPoAJp.js +132 -0
- package/dist/components/microscopeE9Kqv-Pu.js +1 -0
- package/dist/components/moveB-HST0mB.js +74 -0
- package/dist/{dist/components/moveB-QJFdLP.js → components/moveBASWwKjj.js} +1 -1
- package/dist/components/moveBu-wHLhg.js +1 -0
- package/dist/{dist/components/moveCNc2f0wf.js → components/moveNyavIpT3.js} +1 -1
- package/dist/{dist/components/nextBX5bmT1e.js → components/nextDsMto_p-.js} +1 -1
- package/dist/{dist/components/next-o3fIifP.js → components/nextcOKttjz3.js} +1 -1
- package/dist/{dist/components/prevDRvSbFTC.js → components/prevB1Bq4rF3.js} +1 -1
- package/dist/{dist/components/prevkbxOICn5.js → components/prevnbS-kjx3.js} +1 -1
- package/dist/{dist/components/processh0Wf3Q99.js → components/processBAx9XRyY.js} +1 -1
- package/dist/components/processBM18h6Qd.js +1 -0
- package/dist/{dist/components/processD06c6uax.js → components/processD9bf999H.js} +1 -1
- package/dist/{dist/components/processBHqsEap8.js → components/processQaCeq-7y.js} +65 -62
- package/dist/{dist/components/rotateCm7bVQY_.js → components/rotateANr_UwKh.js} +1 -1
- package/dist/{dist/components/rotateCxZ7Z2pw.js → components/rotateBseHg5iL.js} +1 -1
- package/dist/components/rotateC63rgVZz.js +1 -0
- package/dist/components/rotateDG77ULy7.js +131 -0
- package/dist/{dist/components/settingCzWjOOeH.js → components/settingCDSCrpW7.js} +1 -1
- package/dist/components/settingCrFlPK23.js +1 -0
- package/dist/components/settingDxud32Gv.js +147 -0
- package/dist/{dist/components/settinghh-xgIto.js → components/settingN7OnPn3C.js} +1 -1
- package/dist/{dist/components/tailorBalVOrgz.js → components/tailorCIVAqMFR.js} +1 -1
- package/dist/{dist/components/tailorCvZYsl2H.js → components/tailorDwORSrp6.js} +1 -1
- package/dist/{dist/components/useCommonDs02MG_d.js → components/useCommonBCMuQZUh.js} +1 -1
- package/dist/{dist/components/useCommonBBhfDvWF.js → components/useCommonDf_LQLq6.js} +1 -1
- package/dist/components/zoom5nzfwbaS.js +1 -0
- package/dist/components/zoomBUaHoVgA.js +63 -0
- package/dist/{dist/components/zoomInBFjk_aLI.js → components/zoomInCML6d0KQ.js} +1 -1
- package/dist/{dist/components/zoomIn8-tgvQFE.js → components/zoomInCQuBW71J.js} +1 -1
- package/dist/{dist/components/zoomOutC4Ami8gE.js → components/zoomOutBWAYvxae.js} +1 -1
- package/dist/{dist/components/zoomOutD3_PopeU.js → components/zoomOutDFjiTeeB.js} +1 -1
- package/dist/{dist/index.cjs.js → index.cjs.js} +1 -1
- package/dist/index.css +1 -0
- package/dist/{dist/index.es.js → index.es.js} +1 -1
- package/package.json +4 -4
- package/{dist/types → types}/components/KfbView/useLabel.d.ts +2 -1
- package/README.md +0 -5
- package/dist/dist/components/annotateCqAOjkGt.js +0 -132
- package/dist/dist/components/annotateDfW6BtgB.js +0 -1
- package/dist/dist/components/customLw3nDjEr.js +0 -48
- package/dist/dist/components/customSv562l99.js +0 -1
- package/dist/dist/components/dotC4Q5qfQ3.js +0 -122
- package/dist/dist/components/dotDO8OTl1O.js +0 -1
- package/dist/dist/components/downloadCyOnwVa8.js +0 -1
- package/dist/dist/components/downloadGCe-OpHT.js +0 -88
- package/dist/dist/components/fullscreenBeGbvwYS.js +0 -1
- package/dist/dist/components/fullscreenDvfoQFJX.js +0 -60
- package/dist/dist/components/indexCBVjt8NT.js +0 -4
- package/dist/dist/components/indexDOcglE90.js +0 -2948
- package/dist/dist/components/microscopeB6hcfWtD.js +0 -1
- package/dist/dist/components/microscopeD4o4Sywm.js +0 -129
- package/dist/dist/components/moveBM4KQ8bE.js +0 -83
- package/dist/dist/components/movemH2hKtp1.js +0 -1
- package/dist/dist/components/processBqhO-55V.js +0 -1
- package/dist/dist/components/rotateBdsvaWJ_.js +0 -140
- package/dist/dist/components/rotateCyw4Ggca.js +0 -1
- package/dist/dist/components/settingC3yidTns.js +0 -156
- package/dist/dist/components/settingDDEEOrtI.js +0 -1
- package/dist/dist/components/zoomCWKzKF3-.js +0 -1
- package/dist/dist/components/zoomcWHR4OY6.js +0 -72
- package/dist/dist/index.css +0 -1
- package/dist/package.json +0 -39
- /package/dist/{dist/components → components}/lineBIoJpzbf.js +0 -0
- /package/dist/{dist/components → components}/lineCzuS7Giu.js +0 -0
- /package/{dist/types → types}/components/KfbIcon.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbImage.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbSlideList.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbToolConfig.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbToolbox.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbChannel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbKeyword.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbLabel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbLevel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbMenu.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/KfbMicroscope.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/index.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/index.vue.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useDot.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useHotmap.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useImageProcess.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useMove.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/usePointer.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useSync.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useTailor.d.ts +0 -0
- /package/{dist/types → types}/components/KfbView/useVoice.d.ts +0 -0
- /package/{dist/types → types}/components/ai/list.vue.d.ts +0 -0
- /package/{dist/types → types}/components/ai/useAi.d.ts +0 -0
- /package/{dist/types → types}/components/icon/annotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrow.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowDown.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowLeft.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowRight.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/arrowUp.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/channel.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/check.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/config.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/delete.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/dot.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/download.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/flip.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/fullscreen.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/index.d.ts +0 -0
- /package/{dist/types → types}/components/icon/info.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/level.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/list.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/menu.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/microscope.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/move.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/next.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/prev.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/process.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/rotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/setting.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/tailor.vue.d.ts +0 -0
- /package/{dist/types → types}/components/icon/zoomIn.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/annotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/custom.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/dot.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/download.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/fullscreen.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/instances.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/microscope.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/move.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/process.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/rotate.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/setting.vue.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/useCommon.d.ts +0 -0
- /package/{dist/types → types}/components/toolbox/zoom.vue.d.ts +0 -0
- /package/{dist/types → types}/index.d.ts +0 -0
- /package/{dist/types → types}/index.vue.d.ts +0 -0
- /package/{dist/types → types}/instances.d.ts +0 -0
- /package/{dist/types → types}/plugins/i18n.d.ts +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var ot=Object.defineProperty,nt=Object.defineProperties;var lt=Object.getOwnPropertyDescriptors;var Ce=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var Ve=(d,t,r)=>t in d?ot(d,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):d[t]=r,$=(d,t)=>{for(var r in t||(t={}))at.call(t,r)&&Ve(d,r,t[r]);if(Ce)for(var r of Ce(t))rt.call(t,r)&&Ve(d,r,t[r]);return d},j=(d,t)=>nt(d,lt(t));var ie=(d,t,r)=>new Promise((o,v)=>{var m=n=>{try{u(r.next(n))}catch(h){v(h)}},f=n=>{try{u(r.throw(n))}catch(h){v(h)}},u=n=>n.done?o(n.value):Promise.resolve(n.value).then(m,f);u((r=r.apply(d,t)).next())});const e=require("vue"),_=require("element-plus"),D=require("kfb-view"),it=require("v-lazy-image");function K(){const d=e.inject("i18n"),t=r=>r;return{locale:d==null?void 0:d.locale,t:(d==null?void 0:d.t)||t}}const st={install(d,t){d.provide("i18n",t==null?void 0:t.global)}},G=e.ref({annotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateC9P_HUni.js")))),arrow:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowqYc4Vwqs.js")))),check:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./checkDv3SyUAt.js")))),dot:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotBXbuJdtx.js")))),flip:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./flipRSac65ir.js")))),info:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./infoCU8_TgkY.js")))),microscope:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopeBr8-XStr.js")))),move:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveBASWwKjj.js")))),next:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./nextcOKttjz3.js")))),prev:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./prevnbS-kjx3.js")))),process:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processD9bf999H.js")))),rotate:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateANr_UwKh.js")))),fullscreen:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenBnIlw4_E.js")))),setting:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingN7OnPn3C.js")))),tailor:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./tailorCIVAqMFR.js")))),download:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadBPXmLTeR.js")))),config:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./configD1oGPTSe.js")))),arrowDown:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowDownClJawdrb.js")))),arrowUp:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowUpCW9dIkdT.js")))),arrowLeft:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowLeftDXKznfa7.js")))),arrowRight:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./arrowRightDD_81Jxi.js")))),zoomIn:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomInCQuBW71J.js")))),zoomOut:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoomOutBWAYvxae.js")))),level:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./levelDYvedJFa.js")))),channel:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./channelDQ0dcclf.js")))),delete:e.markRaw(e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./deleteAeZFc9Ps.js"))))}),A=e.defineComponent({__name:"KfbIcon",props:{name:{type:[String,Number],required:!0}},setup(d){return(t,r)=>(e.openBlock(),e.createBlock(e.unref(_.ElIcon),e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(G)[d.name])))]),_:1},16))}}),ct={class:"hzzt-kfb-tool-config"},ut={class:"hzzt-kfb-tool-config__title margin-b-2"},dt={class:"hzzt-kfb-tool-config__block flex align-items-center"},ft={class:"hzzt-kfb-tool-config__icon flex align-items-center justify-content-center"},vt={class:"margin-l-4 flex-1"},mt={class:"hzzt-kfb-tool-config__title"},pt={class:"flex align-items-center"},ht={class:"margin-t-2 margin-b-2",style:{width:"160px"}},gt={class:"flex align-items-center"},wt={class:"margin-t-2 margin-b-2",style:{width:"160px"}},yt=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"),r=e.useModel(d,"showText"),{t:o}=K(),v=e.computed(()=>t.value.filter(h=>h.name!=="line"&&h.name!=="config"&&h.name!=="zoom")),m={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("下载")},f=e.inject("show-keyboard",e.ref(!1));function u(h){return h in m}function n(h){var p;return((p=h.props)==null?void 0:p.text)||(u(h.name)?m[h.name]:"")}return(h,p)=>(e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("h3",ut,e.toDisplayString(e.unref(o)("显示管理")),1),e.createVNode(e.unref(_.ElRow),{gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,a=>(e.openBlock(),e.createBlock(e.unref(_.ElCol),{key:a.name,span:8},{default:e.withCtx(()=>{var i,s;return[e.createElementVNode("div",dt,[e.createElementVNode("div",ft,[(i=a.props)!=null&&i.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((s=a.props)==null?void 0:s.component),{key:1,size:24})):(e.openBlock(),e.createBlock(A,{key:0,size:24,name:a.name},null,8,["name"]))]),e.createElementVNode("p",vt,e.toDisplayString(n(a)),1),e.createVNode(e.unref(_.ElSwitch),{modelValue:a.show,"onUpdate:modelValue":c=>a.show=c,"active-text":"","inactive-text":""},null,8,["modelValue","onUpdate:modelValue"])])]}),_:2},1024))),128))]),_:1}),e.createElementVNode("div",null,[e.createElementVNode("h3",mt,e.toDisplayString(e.unref(o)("其他设置")),1),e.createElementVNode("div",pt,[e.createElementVNode("p",ht,e.toDisplayString(e.unref(o)("工具列表显示切换")),1),e.createVNode(e.unref(_.ElRadioGroup),{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=a=>r.value=a)},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("显示工具名称")),1)]),_:1}),e.createVNode(e.unref(_.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("隐藏工具名称")),1)]),_:1})]),_:1},8,["modelValue"])]),e.createElementVNode("div",gt,[e.createElementVNode("p",wt,e.toDisplayString(e.unref(o)("小键盘显示切换")),1),e.createVNode(e.unref(_.ElRadioGroup),{modelValue:e.unref(f),"onUpdate:modelValue":p[1]||(p[1]=a=>e.isRef(f)?f.value=a:null)},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElRadio),{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("显示小键盘")),1)]),_:1}),e.createVNode(e.unref(_.ElRadio),{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("隐藏小键盘")),1)]),_:1})]),_:1},8,["modelValue"])])])]))}}),kt={class:"hzzt-kfb-toolbox"},_t={class:"hzzt-kfb-toolbox__component"},Q=e.defineComponent({name:"KfbToolbox",__name:"KfbToolbox",props:{menu:{},process:{},microscope:{},showMenuText:{type:Boolean}},emits:["tool"],setup(d,{emit:t}){const r=d,o=t,{t:v}=K(),m={prev:v("上一张"),next:v("下一张"),config:v("配置"),info:v("信息"),flip:v("镜像"),tailor:v("截图")},f=e.inject("kfbViewRef"),u=e.ref(!1),n=e.ref(r.showMenuText),h=e.ref(i(r.menu)),p={fullscreen:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./fullscreenBZwo5K13.js"))),line:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./lineCzuS7Giu.js"))),setting:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./settingCrFlPK23.js"))),rotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./rotateC63rgVZz.js"))),dot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./dotCj7nxagF.js"))),annotate:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./annotateAI-JWSH6.js"))),process:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./processBM18h6Qd.js"))),microscope:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./microscopeE9Kqv-Pu.js"))),move:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./moveBu-wHLhg.js"))),custom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./customDNmw3TmQ.js"))),zoom:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./zoom5nzfwbaS.js"))),download:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./downloadDqEDdAXm.js")))},a=e.computed(()=>h.value.filter(c=>c.show!==!1).map(c=>({component:p[c.name],props:c.props,slots:c.slots})));e.watch(()=>r.menu,c=>{h.value=i(c)});function i(c){return c.map(l=>{const g=typeof l=="string"?l:l.name;return m[g]?{name:"custom",show:typeof l=="string"?!0:l.show!==!1,props:j($({text:m[g]},typeof l=="string"?{}:l.props),{name:g,component:e.h(A,{name:g})})}:g==="process"?{name:g,props:typeof l=="string"?{process:r.process}:$({process:r.process},l.props),slots:typeof l=="string"?void 0:l.slots,show:typeof l=="string"?!0:l.show!==!1}:g==="microscope"?{name:g,props:typeof l=="string"?{process:r.process}:$({microscope:r.microscope},l.props),slots:typeof l=="string"?void 0:l.slots,show:typeof l=="string"?!0:l.show!==!1}:{name:g,props:typeof l=="string"?{}:l.props,slots:typeof l=="string"?void 0:l.slots,show:typeof l=="string"?!0:l.show!==!1}})}function s(c,l){const g={annotate:()=>f.value.startDraw(l),tailor:()=>f.value.shotScreen(l),process:()=>f.value.forceRedraw(l),microscope:()=>f.value.scopeChange(l),move:()=>f.value.fastMove(l),endDraw:()=>f.value.endDraw(),info:()=>f.value.info(),zoom:()=>f.value.zoomTo(l),flip:()=>f.value.toggleFlip(l),config:()=>u.value=!0,grid:()=>f.value.updateGrid(l),ruler:()=>f.value.updateGrid(l),graduation:()=>f.value.updateGraduation(l),navigator:()=>f.value.updateNavigator(l),tool:()=>{f.value.updateGrid({show:l}),f.value.updateGraduation({show:l}),f.value.updateGrid({ruler:l}),f.value.updateNavigator(l)}};g[c]?g[c]():o("tool",c,l)}return e.provide("show-text",n),(c,l)=>(e.openBlock(),e.createElementBlock("div",kt,[e.renderSlot(c.$slots,"left"),e.createElementVNode("div",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(g,w)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.component),e.mergeProps({ref_for:!0},g.props,{key:w,onTool:s}),{default:e.withCtx(()=>[g.slots?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(g.slots,x=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x)))),256)):e.createCommentVNode("",!0)]),_:2},1040))),128))]),e.renderSlot(c.$slots,"right"),e.createVNode(e.unref(_.ElDialog),{modelValue:u.value,"onUpdate:modelValue":l[2]||(l[2]=g=>u.value=g),width:"800px",title:e.unref(v)("阅片工具设置中心")},{default:e.withCtx(()=>[e.createVNode(yt,{menus:h.value,"onUpdate:menus":l[0]||(l[0]=g=>h.value=g),showText:n.value,"onUpdate:showText":l[1]||(l[1]=g=>n.value=g)},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",ae={shape:"50%",width:.3,color:"#FA0404",borderWidth:5},ce={r:0,g:0,b:0,c:0,s:0,l:0,ga:1};function bt(d){const t=e.reactive($($({},ce),d.process));e.watch(()=>d.process,m=>{v(m)});const r=e.computed(()=>{const m=[1+t.r+t.l+.5*t.c,0,0,0,-.25*t.c],f=[0,1+t.g+t.l+.5*t.c,0,0,-.25*t.c],u=[0,0,1+t.b+t.l+.5*t.c,0,-.25*t.c],n=[0,0,0,1,0];return`${m.join(" ")}
|
|
2
|
+
${f.join(" ")}
|
|
3
|
+
${u.join(" ")}
|
|
4
|
+
${n.join(" ")}`}),o=e.computed(()=>String(1+t.s));function v(m){m&&Object.assign(t,m)}return{imageProcess:t,matrixValues:r,saturateValues:o,forceRedraw:v}}function Ct(d,t){function r(){t.value.$on(D.KfbView.events.EVENT_TAILORING_SCREENSHOT,o)}function o({base64:f,region:u}){if(window.ClipboardItem&&(navigator!=null&&navigator.clipboard)){const n=v(f,"image/png");navigator.clipboard.write([new window.ClipboardItem({[n.type]:n})])}d("tool","screen-shot",{base64:f,region:u})}function v(f,u){var i,s;const n=f.split(",");(s=(i=n[0])==null?void 0:i.match(/:(.*?);/))==null||s[1];const h=atob(n==null?void 0:n[1]);let p=h.length;const a=new Uint8Array(p);for(;p--;)a[p]=h.charCodeAt(p);return new Blob([a],{type:u})}function m(f){const{width:u,height:n}=t.value.$options;f?u>n?t.value.tailoring.init({left:(u-n)/2,top:0,height:n,width:n,now:!0}):t.value.tailoring.init({left:0,top:(n-u)/2,height:u,width:u,now:!0}):t.value.tailoring.init({left:u/2-100,top:n/2-100,height:200,width:200,color:"#ff0000"})}return{tailorEvent:r,shotScreen:m}}const Ee="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",xe="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",ze="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",Ne="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",Be="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",Te="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",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='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",Le="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",$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='M512%20690a112%20112%200%201%200%200-350%20112%20112%200%200%200%200%20350z'%3e%3c/path%3e%3c/svg%3e",Me="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",Pe="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",Vt=["onClick"],Et=["src"],xt={key:2,style:{width:"18px"},class:"margin-r-3"},zt={key:1,class:"hzzt-kfb-sub-menu"},Nt=["onClick"],Bt={class:"flex align-items-center"},Tt=["src"],St={key:2,style:{width:"18px"},class:"margin-r-2"},Lt=e.defineComponent({__name:"KfbMenu",props:{menus:{}},emits:["tool"],setup(d,{emit:t}){const r=e.ref({top:"0",left:"0",display:"none"}),o=e.inject("kfbView",e.ref({})),v=e.inject("currentLabel"),m=d,f=t,{t:u}=K(),n=[{label:u("直线"),value:"line",icon:Ee},{label:u("箭头"),value:"arrow",icon:xe},{label:u("双箭头"),value:"bilateral",icon:ze},{label:u("矩形"),value:"rectangle",icon:Ne},{label:u("圆形"),value:"ellipse",icon:Be},{label:u("曲线"),value:"polygon",icon:Te},{label:u("星星"),value:"star",icon:Se},{label:u("旗帜"),value:"flag",icon:Le},{label:u("点"),value:"dot",icon:$e},{label:u("文字"),value:"font",icon:Me},{label:u("语音"),value:"voice",icon:Pe}],h=e.computed(()=>{var c;return v!=null&&v.value?[{label:u("删除"),value:"delete",icon:G.value.delete}]:(c=m.menus)!=null&&c.length?m.menus.map(l=>l.value==="annotate"?j($({},l),{children:n}):j($({},l),{icon:l.icon||G.value[l.value]})):[{label:u("上一张"),value:"prev"},{label:u("下一张"),value:"next"},{label:u("标注"),value:"annotate",icon:G.value.annotate,children:n},{label:u("一键截图"),value:"tailor_now",icon:G.value.tailor},{label:u("区域截图"),value:"tailor"},{label:u("镜像翻转"),value:"flip",icon:G.value.flip},{label:u("切片信息"),value:"info",icon:G.value.info}]});e.watch(()=>o.value,(c,l)=>{l!=null&&l.viewer&&(l.viewer.removeHandler("canvas-contextmenu",p),l.viewer.removeHandler("canvas-click",a)),c!=null&&c.viewer&&(c.viewer.addHandler("canvas-contextmenu",p),c.viewer.addHandler("canvas-click",a))}),e.onMounted(()=>{var c;(c=o.value)!=null&&c.viewer&&(o.value.viewer.addHandler("canvas-contextmenu",p),o.value.viewer.addHandler("canvas-click",a)),document.body.addEventListener("click",a)}),e.onBeforeUnmount(()=>{var c;(c=o.value)!=null&&c.viewer&&(o.value.viewer.removeHandler("canvas-contextmenu",p),o.value.viewer.removeHandler("canvas-click",a)),document.body.removeEventListener("click",a)});function p(c){c.preventDefault=!0,r.value.top=`${c.position.y}px`,r.value.left=`${c.position.x}px`,r.value.display==="block"?r.value.display="none":r.value.display="block"}function a(){r.value.display="none"}function i(c,l){c.children||((l==null?void 0:l.value)==="annotate"?f("tool","annotate",{tool:c.value.substring(0,1).toLocaleUpperCase()+c.value.substring(1),once:!0}):c.value==="tailor_now"?f("tool","tailor",!0):f("tool",c.value),a())}function s(c){return c==null||typeof c!="object"&&typeof c!="function"?!1:typeof c=="function"||"render"in c||"setup"in c}return(c,l)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-menu",style:e.normalizeStyle(r.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(g,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"hzzt-kfb-menu-item"},[e.createElementVNode("div",{class:"flex align-items-center",onClick:x=>i(g)},[s(g.icon)?(e.openBlock(),e.createBlock(e.unref(_.ElIcon),{key:0,class:"margin-r-3",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.icon)))]),_:2},1024)):g.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:g.icon},null,8,Et)):(e.openBlock(),e.createElementBlock("div",xt)),e.createElementVNode("span",null,e.toDisplayString(g.label),1)],8,Vt),g.children?(e.openBlock(),e.createBlock(A,{key:0,name:"arrowRight",class:"margin-r-2",size:14})):e.createCommentVNode("",!0),g.children?(e.openBlock(),e.createElementBlock("div",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.children,(x,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"hzzt-kfb-menu-item",onClick:V=>i(x,g)},[e.createElementVNode("div",Bt,[s(x.icon)?(e.openBlock(),e.createBlock(e.unref(_.ElIcon),{key:0,class:"margin-r-2",size:18},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.icon)))]),_:2},1024)):x.icon?(e.openBlock(),e.createElementBlock("img",{key:1,style:{width:"18px"},class:"margin-r-2",src:x.icon},null,8,Tt)):(e.openBlock(),e.createElementBlock("div",St)),e.createElementVNode("span",null,e.toDisplayString(x.label),1)])],8,Nt))),128))])):e.createCommentVNode("",!0)]))),128))],4))}}),Z=(d,t)=>{const r=d.__vccOpts||d;for(const[o,v]of t)r[o]=v;return r},$t=Z(Lt,[["__scopeId","data-v-739aad62"]]),Mt={key:0,class:"hzzt-kfb-microscope"},Pt=e.defineComponent({__name:"KfbMicroscope",props:e.mergeDefaults({shape:{},width:{},color:{},borderWidth:{}},$({},ae)),setup(d,{expose:t}){const r=d,o=e.reactive($($({},ae),r));e.watch(()=>r,a=>{p({name:"change",value:a})});const v=e.ref("200px"),m=e.ref(!1),f=e.computed(()=>({borderRadius:o.shape,borderColor:o.color,borderWidth:o.borderWidth+"px",width:v.value,height:v.value})),u=e.inject("kfbView",e.ref({}));e.watch(()=>u.value,(a,i)=>{i!=null&&i.viewer&&i.viewer.removeHandler("zoom",n),a!=null&&a.viewer&&a.viewer.addHandler("zoom",n)}),e.onMounted(()=>{var a;(a=u.value)!=null&&a.viewer&&u.value.viewer.addHandler("zoom",n)}),e.onBeforeUnmount(()=>{var a;(a=u.value)!=null&&a.viewer&&u.value.viewer.removeHandler("zoom",n)});function n(){setTimeout(()=>{p({name:"change",value:o})},100)}function h(a){let{x:i,y:s}=u.value.viewer.viewport.getCenter(!0);a==="top"?s-=.006:a==="bottom"?s+=.006:a==="left"?i-=.006:a==="right"&&(i+=.006),u.value.area.moveToLabel({x:i,y:s})}function p({name:a,value:i}){var c,l;const s=(l=(c=u.value.$options)==null?void 0:c.pxConversion)==null?void 0:l.imageCapRes;if(a==="visible"){if(m.value=i,i){const g=u.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/s,height:o.width*1e3/s});v.value=g.width+"px"}}else if(a==="change"){Object.assign(o,i);const g=u.value.area.imageToViewerElementRectangle({x:0,y:0,width:o.width*1e3/s,height:o.width*1e3/s});v.value=g.width+"px"}}return t({scopeChange:p}),(a,i)=>m.value?(e.openBlock(),e.createElementBlock("div",Mt,[e.createElementVNode("div",{class:"hzzt-kfb-microscope__container",style:e.normalizeStyle(f.value)},null,4),e.createElementVNode("div",{class:"hzzt-kfb-microscope__top",onClick:i[0]||(i[0]=s=>h("top"))},[e.createVNode(A,{size:"24",name:"arrowUp"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__bottom",onClick:i[1]||(i[1]=s=>h("bottom"))},[e.createVNode(A,{size:"24",name:"arrowDown"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__left",onClick:i[2]||(i[2]=s=>h("left"))},[e.createVNode(A,{size:"24",name:"arrowLeft"})]),e.createElementVNode("div",{class:"hzzt-kfb-microscope__right",onClick:i[3]||(i[3]=s=>h("right"))},[e.createVNode(A,{size:"24",name:"arrowRight"})])])):e.createCommentVNode("",!0)}}),Dt=Z(Pt,[["__scopeId","data-v-e8b36101"]]),It={class:"hzzt-kfb-label flex column"},At={class:"hzzt-kfb-label__img flex justify-content-center"},Ht=["src"],Rt={class:"ellipsis flex-1"},Ft={class:"flex margin-b-4",style:{width:"100%"}},qt={class:"flex margin overflow-hidden",style:{height:"132px"}},Ut=["src"],Kt=["src"],Ot=e.defineComponent({__name:"KfbLabel",props:{info:{},slide:{},pathologyHandle:{type:Function}},emits:["tool"],setup(d,{emit:t}){const{t:r}=K(),o=d,v=t,m=e.ref(!0),f=e.ref(!1),u=e.computed(()=>o.slide.pathology_id?r("修改病理号"):r("绑定病理号"));function n(){o.slide.angle||(o.slide.angle=0),o.slide.angle+=90,o.slide.angle>360&&(o.slide.angle=o.slide.angle%360),v("tool","rotate",o.slide.angle)}function h(){f.value=!0}function p(){o.pathologyHandle&&o.pathologyHandle(o.slide).then(()=>{f.value=!1})}return(a,i)=>(e.openBlock(),e.createElementBlock("div",It,[e.withDirectives(e.createElementVNode("div",{class:"hzzt-kfb-label__title"},e.toDisplayString(e.unref(r)(`点击标签旋转${a.pathologyHandle?",点击病理号重绑":""}`)),513),[[e.vShow,m.value]]),e.withDirectives(e.createElementVNode("div",At,[e.createElementVNode("img",{src:a.info.labelImg,style:e.normalizeStyle({transform:`rotate(${a.slide.angle}deg)`}),onClick:n},null,12,Ht)],512),[[e.vShow,m.value]]),a.pathologyHandle?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"hzzt-kfb-label__pathology flex align-items-center justify-content-between",onClick:h},[e.createElementVNode("span",Rt,e.toDisplayString(a.slide.pathology_number),1),e.createVNode(A,{size:"14",name:"annotate"})],512)),[[e.vShow,m.value]]):e.createCommentVNode("",!0),e.createElementVNode("span",{onClick:i[0]||(i[0]=s=>m.value=!m.value),style:e.normalizeStyle({transform:`translateY(${m.value?"-50%":0})`}),class:"hzzt-kfb-label__expend flex align-items-center justify-content-center"},[m.value?(e.openBlock(),e.createBlock(A,{key:0,size:"10",name:"arrowLeft"})):(e.openBlock(),e.createBlock(A,{key:1,size:"10",name:"arrowRight"}))],4),e.createVNode(e.unref(_.ElDialog),{modelValue:f.value,"onUpdate:modelValue":i[5]||(i[5]=s=>f.value=s),"append-to-body":!0,title:u.value,width:"450px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(_.ElButton),{onClick:i[4]||(i[4]=s=>f.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("取消")),1)]),_:1}),e.createVNode(e.unref(_.ElButton),{type:"primary",onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("确认")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Ft,[e.createElementVNode("div",qt,[e.createElementVNode("img",{src:a.slide.labelImg},null,8,Ut),e.createElementVNode("img",{src:a.slide.previewImg},null,8,Kt)])]),e.createVNode(e.unref(_.ElForm),{class:"margin-t-2"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElFormItem),{label:e.unref(r)("病理号")},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElInput),{modelValue:a.slide.pathology_number,"onUpdate:modelValue":i[1]||(i[1]=s=>a.slide.pathology_number=s),placeholder:e.unref(r)("输入病理号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(e.unref(_.ElFormItem),{label:e.unref(r)("蜡块号")},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElInput),{modelValue:a.slide.paraffin_block_number,"onUpdate:modelValue":i[2]||(i[2]=s=>a.slide.paraffin_block_number=s),placeholder:e.unref(r)("输入蜡块号"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a.slide.slide_id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:0,label:e.unref(r)("试剂")},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElInput),{modelValue:a.slide.reagent,"onUpdate:modelValue":i[3]||(i[3]=s=>a.slide.reagent=s),placeholder:e.unref(r)("输入试剂"),clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]))]),_:1})]),_:1},8,["modelValue","title"])]))}}),jt=Z(Ot,[["__scopeId","data-v-7397de48"]]);function Zt(d,t){const r=e.ref(1),o=e.ref(null),v=e.ref(null);function m(){d.value.viewer.addHandler("canvas-drag",u=>{o.value||(o.value=u.position)}),d.value.viewer.addHandler("canvas-drag-end",u=>{if(r.value!==1){v.value=u.position;const n=d.value.viewer.viewport.containerSize.x,h=d.value.viewer.viewport.containerSize.y,p=(v.value.x-o.value.x)/(n*t.value)*(r.value-1),a=(v.value.y-o.value.y)/(h*t.value)*(r.value-1),i=d.value.viewer.viewport.getCenter(),s=new D.OpenSeadragon.Point(i.x-p,i.y-a);d.value.viewer.viewport.panTo(s),o.value=null}})}function f({name:u,value:n}){u==="ratio"&&(r.value=n/1)}return{moveEvent:m,fastMove:f}}function Gt(d,t,r){const o=e.ref(!1),v=e.ref(void 0),m=e.ref(void 0),f=e.ref([]);e.watch(()=>d.aiLabelList,p);function u(){r.value.$on(D.KfbView.events.EVENT_END_PAINTING,n("add")),r.value.$on(D.KfbView.events.EVENT_AREA_MOVE_END,n("move")),r.value.$on(D.KfbView.events.EVENT_ADD_POLYGON_POINT,n("add-point")),r.value.$on(D.KfbView.events.EVENT_DELETE_POLYGON_POINT,n("delete-point")),r.value.$on(D.KfbView.events.EVENT_DELETE_LABEL,n("delete")),r.value.$on(D.KfbView.events.EVENT_SELECT_LABEL,s=>{var l,g,w,x;v.value=s,(((l=v.value)==null?void 0:l.subType)||((w=(g=v.value)==null?void 0:g.__data__)==null?void 0:w.subType))==="voice"&&((x=v.value)!=null&&x.src)&&new Audio(v.value.src).play(),t("tool","select-label",v.value)}),r.value.$on(D.KfbView.events.EVENT_CANCEL_SELECT_LABEL,()=>{v.value=void 0,t("tool","cancel-select-label",v.value)}),n("list")()}function n(s){return c=>h(s,c)}function h(s,c){var l;if(s==="add"&&((c==null?void 0:c.subType)||((l=c==null?void 0:c.__data__)==null?void 0:l.subType))==="voice")m.value=c,o.value=!0;else return d.labelHandle(s,d.slide,c).then(g=>{f.value=g,p()}).catch(()=>{p()})}function p(){var s;if((s=r.value)!=null&&s.initLabelList){const c=[...f.value,...d.aiLabelList||[]];c.find(({id:l})=>{var g;return l===((g=v.value)==null?void 0:g.id)})||(v.value=void 0),r.value.initLabelList(c)}}function a(s){var l;v.value&&(v.value.select=!1);const c=(r.value.labelList||[]).findIndex(g=>g.id===s.id);if(c>-1){v.value=(l=r.value.labelList)==null?void 0:l[c],v.value.select=!0;const g=r.value.area.getCenterPoint(s.region);r.value.area.moveToLabel(g)}}function i(s){return o.value=!1,d.labelHandle("add",d.slide,s).then(c=>{f.value=c,p()}).catch(()=>{p()})}return{currentLabel:v,voiceVisible:o,labelForm:m,initLabel:u,selectLabel:a,reloadLabelList:p,eventHandel:n,addHandle:i}}function Wt(){function d(t,r){t.save(),t.strokeStyle="rgba(0,0,0,0)",t.miterLimit=4,t.font="15px",t.fillStyle=r,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 Yt(d,t){const r=e.ref();let o=null;const v=e.ref(!1);function m(n,h){n.save(),n.strokeStyle="rgba(0,0,0,0)",n.miterLimit=4,n.font="15px ''",n.fillStyle=h,n.font=" 15px ''",n.scale(.03125,.03125),n.save(),n.font=" 15px ''",n.beginPath(),n.moveTo(515.041727,670.617766),n.bezierCurveTo(606.625894,670.617766,681.137374,596.113511,681.137374,504.52212),n.lineTo(681.137374,229.350568),n.bezierCurveTo(681.137374,137.76640100000003,606.625894,63.254920999999996,515.041727,63.254920999999996),n.bezierCurveTo(423.44311000000005,63.254920999999996,348.93885500000005,137.766401,348.93885600000004,229.350568),n.lineTo(348.93885600000004,504.52212),n.bezierCurveTo(348.93885600000004,596.113512,423.44311100000004,670.617767,515.041727,670.617766),n.closePath(),n.fill(),n.stroke(),n.restore(),n.save(),n.font=" 15px ''",n.beginPath(),n.moveTo(801.643237,874.001665),n.lineTo(558.391759,874.001665),n.lineTo(558.391759,828.578057),n.bezierCurveTo(719.899527,807.264291,844.993269,668.7898399999999,844.993269,501.55986699999994),n.translate(801.643237,501.55986699999994),n.rotate(0),n.arc(0,0,43.350032,0,3.141592653589793,!0),n.rotate(0),n.translate(-801.643237,-501.55986699999994),n.bezierCurveTo(758.2932050000001,635.684865,649.166725,744.811345,515.0345020000001,744.811346),n.bezierCurveTo(380.9095040000001,744.811346,271.79024900000013,635.6848659999999,271.79024900000013,501.55986699999994),n.translate(228.44021750000013,501.5664510740879),n.rotate(0),n.arc(0,0,43.350032,-.00015188164315591997,-3.1414407719461273,!0),n.rotate(0),n.translate(-228.44021750000013,-501.5664510740879),n.bezierCurveTo(185.09018600000013,668.7898389999999,310.1911530000001,807.271516,471.69169500000015,828.578057),n.lineTo(471.69169500000015,874.001665),n.lineTo(228.440217,874.001665),n.translate(228.440217,917.3516970000001),n.rotate(0),n.arc(0,0,43.350032,-1.5707963267948966,1.5707963267948966,!0),n.rotate(0),n.translate(-228.440217,-917.3516970000001),n.lineTo(801.643237,960.701729),n.translate(801.643237,917.3516970000001),n.rotate(0),n.arc(0,0,43.350032,1.5707963267948966,4.71238898038469,!0),n.rotate(0),n.translate(-801.643237,-917.3516970000001),n.closePath(),n.fill(),n.stroke(),n.restore(),n.restore()}function f(){return ie(this,null,function*(){try{r.value=yield navigator.mediaDevices.getUserMedia({audio:!0}),o=new MediaRecorder(r.value);const n=[];o.addEventListener("dataavailable",h=>{n.push(h.data)}),o.addEventListener("stop",()=>{const h=new Blob(n,{type:"audio/wav"});t.value&&(t.value.src=URL.createObjectURL(h)),d.uploadHandle&&t.value&&d.uploadHandle(d.slide,t.value,h).then(p=>{t.value.src=p}),v.value=!1}),o.start(),v.value=!0}catch(n){console.error("录音错误:",n)}})}function u(){r.value&&o?(o.stop(),r.value.getTracks().forEach(n=>n.stop()),o=null,r.value=void 0):(o=null,r.value=void 0),v.value=!1}return{drawVoice:m,isRecording:v,startRecording:f,stopRecording:u}}function Xt(d,t){const r=e.ref([]),o=e.ref(0),v=e.ref(!1);let m=null;e.watch(()=>{var i;return(i=d.hotmap)==null?void 0:i.enable},()=>{var i,s;if((s=(i=t.value)==null?void 0:i.viewer)!=null&&s.world){o.value=0;const c=t.value.viewer.world.getItemAt(0);c&&(c.tilesMatrix={},c.draw())}}),e.onMounted(()=>{window.addEventListener("mousemove",n),window.addEventListener("mouseup",p)}),e.onBeforeUnmount(()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",p)});function f(i,s,c){var g,w,x,E,V,z;const l=j($({},s),{file:(g=d.hotmap)==null?void 0:g.file});if((w=d.hotmap)!=null&&w.info){if(c[s.x+"_"+s.y+"_"+Number(s.scale)]){if(((x=d.hotmap)==null?void 0:x.type)==="switch")return d.tileHandle(l);if(((E=d.hotmap)==null?void 0:E.type)==="drag")return u(i,l),i}}else return((V=d.hotmap)==null?void 0:V.type)==="switch"?d.tileHandle(l):(((z=d.hotmap)==null?void 0:z.type)==="drag"&&u(i,l),i)}function u(i,s){const c=r.value.find(l=>l.url===i)||{url:i,x:s.x,y:s.y,img:void 0,load:""};if(!(c!=null&&c.img)&&(r.value.push(c),c.load!=="success")){const l=new Image;l.src=d.tileHandle(s),l.onload=()=>{c.load="success"},c.img=l}}function n(i){v.value&&m&&(o.value+=i.x-m.x,o.value<0?o.value=0:o.value>t.value.$options.width&&(o.value=t.value.$options.width,v.value=!1),t.value.viewer.forceRedraw()),m={x:i.x,y:i.y}}function h(i){const{x:s,y:c}=i;v.value=!0,m={x:s,y:c}}function p(){v.value=!1,m=null}function a(i){const{context:s,sourceWidth:c,sourceHeight:l,position:g,size:w,initRendered:x,tile:E,pixelDensityRatio:V}=i,z=E.getUrl(),b=o.value*V,H=g.original.x;if(H<b&&H+w.x>b){const I=b-H,F=w.x-I,q=r.value.find(J=>J.url===z),Y=(q==null?void 0:q.load)==="success"?q.img:x.canvas;s.drawImage(Y,0,0,c*I/w.x,l,g.x,g.y,I,w.y),s.drawImage(x.canvas,c*I/w.x,0,c*F/w.x,l,g.x+I,g.y,F,w.y)}else if(H+w.x<=b){const I=r.value.find(q=>q.url===z),F=(I==null?void 0:I.load)==="success"?I.img:x.canvas;s.drawImage(F,0,0,c,l,g.x,g.y,w.x,w.y)}else H>=b&&s.drawImage(x.canvas,0,0,c,l,g.x,g.y,w.x,w.y)}return{getHotmapUrl:f,hotmapImgs:r,handlerImage:a,hotmapLine:o,lineMouseDown:h}}function Qt(d,t,r){const o=e.getCurrentInstance(),v=e.ref(!1),m=new BroadcastChannel("sync_kfb_view");m.onmessage=a=>{const i=a.data;h(i)},e.onMounted(()=>{var a,i,s;(a=r.value)==null||a.addEventListener("mouseenter",f),(i=r.value)==null||i.addEventListener("mousemove",f),(s=r.value)==null||s.addEventListener("mouseleave",u)}),e.onBeforeUnmount(()=>{var a,i,s;(a=r.value)==null||a.removeEventListener("mouseenter",f),(i=r.value)==null||i.removeEventListener("mousemove",f),(s=r.value)==null||s.removeEventListener("mouseleave",u),m.close()});function f(){v.value=!0}function u(){v.value=!1}function n(){let a;t.value.viewer.addHandler("pan",i=>{var l,g,w,x;if(!a){a=(g=(l=i.center)==null?void 0:l.clone)==null?void 0:g.call(l);return}const s=i.center,c=(w=s==null?void 0:s.minus)==null?void 0:w.call(s,a);a=(x=s==null?void 0:s.clone)==null?void 0:x.call(s),d.syncPosition&&p({position:c,type:"sync_position"})}),t.value.viewer.addHandler("zoom",i=>{d.syncZoom&&p({zoom:i.zoom,type:"sync_zoom"})}),t.value.viewer.addHandler("animation-finish",()=>{var c;if(d.syncZoom&&p({zoom:t.value.viewer.viewport.getZoom(!0),type:"sync_zoom"}),!a)return;const i=t.value.viewer.viewport.getCenter(!0),s=(c=i==null?void 0:i.minus)==null?void 0:c.call(i,a);a=void 0,d.syncPosition&&p({position:s,type:"sync_position"})})}function h(a){a.uuid&&a.type==="sync_position"&&a.uuid!==(o==null?void 0:o.uid)?t.value&&t.value.viewer.viewport.panBy(a.position,!0):a.uuid&&a.type==="sync_zoom"&&a.uuid!==(o==null?void 0:o.uid)&&t.value&&t.value.viewer.viewport.zoomTo(a.zoom)}function p(a){var i;v.value&&m.postMessage(j($({},a),{uuid:o==null?void 0:o.uid,fileName:(i=d.slide)==null?void 0:i.file}))}return{initSync:n}}const Jt={class:"hzzt-kfb-keyword flex wrap"},eo=["onMouseenter"],to=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"}]),r=e.inject("kfbView",e.ref({}));let o=null;function v(f,u){f.preventDefault(),o&&clearTimeout(o),o=setInterval(()=>{u==="E"&&(r.value.viewer.viewport.zoomBy(1.1),r.value.viewer.viewport.applyConstraints()),u==="Q"&&(r.value.viewer.viewport.zoomBy(.9),r.value.viewer.viewport.applyConstraints()),u==="W"&&(r.value.viewer.viewport.panBy(r.value.viewer.viewport.deltaPointsFromPixels(new D.OpenSeadragon.Point(0,-40))),r.value.viewer.viewport.applyConstraints()),u==="S"&&(r.value.viewer.viewport.panBy(r.value.viewer.viewport.deltaPointsFromPixels(new D.OpenSeadragon.Point(0,40))),r.value.viewer.viewport.applyConstraints()),u==="A"&&(r.value.viewer.viewport.panBy(r.value.viewer.viewport.deltaPointsFromPixels(new D.OpenSeadragon.Point(-40,0))),r.value.viewer.viewport.applyConstraints()),u==="D"&&(r.value.viewer.viewport.panBy(r.value.viewer.viewport.deltaPointsFromPixels(new D.OpenSeadragon.Point(40,0))),r.value.viewer.viewport.applyConstraints())},120)}function m(){o&&(clearInterval(o),o=null)}return e.onBeforeUnmount(()=>{clearTimeout(o)}),(f,u)=>(e.openBlock(),e.createElementBlock("div",Jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n.code,class:"hzzt-kfb-keyword__code flex column align-items-center justify-content-center",onMouseenter:h=>v(h,n.code),onMouseleave:m},[e.createElementVNode("p",null,e.toDisplayString(n.code),1),e.createVNode(A,{size:"14",name:n.icon},null,8,["name"])],40,eo))),128))]))}}),oo=Z(to,[["__scopeId","data-v-c8d940f0"]]);function no(d,t,r={}){const{panSensitivity:o=.2,zoomSensitivity:v=1.1,damping:m=.6,minThreshold:f=.05}=r;let u=!1,n=null,h=0,p=0,a=!1;const i=()=>{u=document.pointerLockElement===t.value,u||s()},s=()=>{h=0,p=0,n&&(cancelAnimationFrame(n),n=null),a=!1},c=E=>ie(this,null,function*(){try{E.key==="l"&&t.value&&(document.pointerLockElement?(document.exitPointerLock(),console.log("鼠标已解锁!")):(yield t.value.requestPointerLock(),console.log("鼠标已锁定!")))}catch(V){console.error("无法锁定鼠标:",V)}}),l=E=>{if(u){E.preventDefault();const V=Math.pow(v,Math.sign(E.deltaY)*-1);d.value.viewer.viewport.zoomBy(V),d.value.viewer.viewport.applyConstraints()}},g=E=>{u&&(h+=E.movementX*o,p+=E.movementY*o,!a&&(Math.abs(h)>1||Math.abs(p)>1)&&(a=!0,n=requestAnimationFrame(w)))},w=()=>{const E=d.value.viewer.viewport;if(Math.abs(h)>f||Math.abs(p)>f){const V=E.deltaPointsFromPixels(new D.OpenSeadragon.Point(h,p));E.panBy(V),E.applyConstraints()}h*=m,p*=m,Math.abs(h)>f||Math.abs(p)>f?n=requestAnimationFrame(w):s()},x=()=>{u&&document.exitPointerLock()};return e.onMounted(()=>{var E;(E=t.value)==null||E.addEventListener("keydown",c),document.addEventListener("wheel",l,{passive:!1}),document.addEventListener("click",x),document.addEventListener("mousemove",g),document.addEventListener("pointerlockchange",i)}),e.onBeforeUnmount(()=>{var E;(E=t.value)==null||E.removeEventListener("keydown",c),document.removeEventListener("click",x),document.removeEventListener("wheel",l),document.removeEventListener("mousemove",g),document.removeEventListener("pointerlockchange",i),s()}),{setConfig:E=>{Object.assign(r,E)}}}const lo=e.defineComponent({__name:"KfbLevel",props:e.mergeModels({slides:{default:()=>[]}},{"model-value":{default:0},"model-valueModifiers":{}}),emits:["update:model-value"],setup(d){const t=d,r=e.useModel(d,"model-value"),o=e.inject("kfbView",e.ref({})),v=e.computed(()=>Array.from(new Array(t.slides.length+1)).map((f,u)=>u));function m(){const f=o.value.viewer.world.getItemAt(0),u=Object.keys(f.tilesMatrix);u.forEach((n,h)=>{h>u.length-4&&(f.tilesMatrix[n]={})}),f.draw()}return(f,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hzzt-kfb-level flex column align-items-center",f.slides.length>5?"hzzt-kfb-level--large":""])},[e.createVNode(A,{name:"level",size:"24",class:"margin-b-4 margin-t-2"}),e.createVNode(e.unref(_.ElSlider),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=n=>r.value=n),vertical:"",min:v.value[0],step:1,max:v.value[v.value.length-1],"show-stops":"","show-tooltip":!0,placement:"left",height:f.slides.length>5?"180px":"130px",onInput:m},null,8,["modelValue","min","max","height"])],2))}}),ao={key:0,class:"flex hzzt-kfb-channel"},ro=["onClick"],io=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 r=d,o=t,v=e.useModel(d,"model-value"),m=[{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"}],f=e.computed(()=>{var n;return(((n=r.info)==null?void 0:n.channel)||[]).map(h=>{const p=m.find(a=>a.key===h.eqt_num);return{label:h.eqt_num,color:h.r?`rgb(${h.r}, ${h.g}, ${h.b})`:p==null?void 0:p.color}})});function u(n){v.value.includes(n)?v.value=v.value.filter(h=>h!==n):v.value.push(n),o("load")}return(n,h)=>f.value.length>0?(e.openBlock(),e.createElementBlock("div",ao,[e.createVNode(A,{name:"channel",size:"32"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p.label,style:e.normalizeStyle({background:p.color}),class:e.normalizeClass(["hzzt-kfb-channel__box",v.value.includes(p.label)?"":"hzzt-kfb-channel__box--unactive"]),onClick:a=>u(p.label)},e.toDisplayString(p.label),15,ro))),128))])):e.createCommentVNode("",!0)}}),so=["element-loading-text"],co={key:1,class:"hzzt-kfb-view__main flex align-items-center justify-content-center"},uo={class:"hzzt-kfb-view__filter",height:"0",width:"0"},fo={id:"colorMatrixFilter"},vo=["values"],mo=["values"],po=["exponent"],ho=["exponent"],go=["exponent"],wo={class:"flex nowrap justify-content-center overflow-hidden"},yo=["src"],ko=["src"],_o={class:"flex-1"},bo={class:"flex-1"},Co={class:"flex-1"},Vo={class:"flex-1"},Eo={class:"flex-1"},xo={class:"flex-1"},zo=["src"],W=e.defineComponent({name:"HzztKfbView",__name:"index",props:{slide:{},fileHandle:{},labelHandle:{},tileHandle:{},navigatorHandle:{},pathologyHandle:{},uploadHandle:{},options:{},labelDrawing:{},process:{default:()=>$({},ce)},microscope:{default:()=>$({},ae)},menus:{},aiLabelList:{},hotmap:{},syncPosition:{type:Boolean},syncZoom:{type:Boolean}},emits:["tool"],setup(d,{expose:t,emit:r}){const o=d,v=r,{t:m,locale:f}=K(),u=e.ref(),n=e.ref(),h=e.ref(),p=e.ref(!1),a=e.ref({}),i=e.ref(!1),s=e.ref(0),c=e.ref(0),l=e.ref(0),g=e.ref([]),w=e.ref({width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}}),x=e.inject("show-kfb-label",e.ref(!0)),E=e.inject("show-keyboard",e.ref(!1)),V=e.inject("hidden-all-label",e.ref(!1)),z=_.ElLoading.directive;e.watch(()=>{var y;return(y=o.slide)==null?void 0:y.file},()=>{Xe(),setTimeout(()=>{de()},100)}),e.onMounted(()=>{de()});const{imageProcess:b,matrixValues:H,saturateValues:I,forceRedraw:F}=bt(o),{tailorEvent:q,shotScreen:Y}=Ct(v,a),{moveEvent:J,fastMove:re}=Zt(a,c),{currentLabel:k,voiceVisible:N,labelForm:B,initLabel:U,selectLabel:ee,reloadLabelList:De,eventHandel:Ie,addHandle:Ae}=Gt(o,v,a),{initSync:He}=Qt(o,a,u);no(a,u);const{drawDot:Re}=Wt(),{drawVoice:Fe,isRecording:qe,startRecording:Ue,stopRecording:Ke}=Yt(o,B),{getHotmapUrl:Oe,handlerImage:je,hotmapLine:Ze,lineMouseDown:ue,hotmapImgs:Ge}=Xt(o,a);function de(){var y;(y=o.slide)!=null&&y.file&&o.fileHandle&&(i.value||(i.value=!0,o.fileHandle(o.slide).then(C=>{var M,R,O,S;w.value=C,g.value=(((M=w.value)==null?void 0:M.channel)||[]).map(L=>L.eqt_num),a.value=new D.KfbView($({el:n.value,fileName:(R=o.slide)==null?void 0:R.file,scale:w.value.scanScale,lang:(f==null?void 0:f.value)==="en-US"?"en":f==null?void 0:f.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:(S=(O=w.value)==null?void 0:O.channel)!=null&&S.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:fe()},tileDrawing:je,label:{drawing:(L,T,X)=>{var ne;if(T!=null&&T.custom){const P=L.getContext("2d");P.save(),P.beginPath();const te=(T==null?void 0:T.subType)||((ne=T==null?void 0:T.__data__)==null?void 0:ne.subType);te==="count"?(P.translate(X.x-14,X.y-22),Re(P,(T==null?void 0:T.strokeStyle)||"")):te==="voice"?(P.translate(X.x-16,X.y-18),Fe(P,(T==null?void 0:T.strokeStyle)||"")):o.labelDrawing&&o.labelDrawing(P,T),P.restore()}}}},o.options||{})),a.value.viewer.drawer.canvas.style.filter="url(#colorMatrixFilter)",U(),Ye(),He()}).finally(()=>{i.value=!1,V.value&&(he({show:!1,ruler:!1}),ge({show:!1}),setTimeout(()=>{we(!1)},100))})))}function We(){const y=a.value.viewer;if(y.world){const C=y.world.getItemAt(0),M=y.viewport.getZoom(),R=y.viewport.getCenter();y.world.removeItem(C),y.addTiledImage({tileSource:fe(),success:function(){y.viewport.zoomTo(M),y.viewport.panTo(R)}})}}function fe(){var O,S;const y=w.value.tileWidth||w.value.imageBlockLen||256,C=w.value.tileHeight||w.value.imageBlockLen||256,M={};(O=o.hotmap)!=null&&O.enable&&(((S=o.hotmap)==null?void 0:S.info)||[]).forEach(L=>{M[L[0]/y+"_"+L[1]/C+"_"+L[2]]=!0});let R=10;return Object.keys(w.value.ratiomap).forEach(L=>{const T=w.value.fileNum-Math.sqrt(w.value.scanScale/Number(L));T>0&&(R=R?Math.min(R,T):T)}),{height:w.value.height,width:w.value.width,tileWidth:y,tileHeight:C,minLevel:Math.floor(R||8),getTileUrl:(L,T,X)=>{var ye,ke,_e,be;const ne=L,P={file:((ye=o.slide)==null?void 0:ye.file)||"",x:T,y:X,scale:"0",level:L,channel:JSON.stringify(g.value)};w.value.fileNum===L?(L=w.value.scanScale,P.scale=L.toFixed(6)):(L=w.value.scanScale/Math.pow(2,w.value.fileNum-L),P.scale=L.toFixed(6)),P.level=ne,P.file=l.value===0?P.file:((_e=(ke=o.slide)==null?void 0:ke.children)==null?void 0:_e[l.value-1])||"";const te=o.tileHandle(P);return(be=o.hotmap)!=null&&be.enable?Oe(te,P,M):te}}}function Ye(){a.value.viewer.addHandler("rotate",y=>{s.value=y.degrees||0}),a.value.viewer.addHandler("zoom",y=>{const C=a.value.viewer.viewport.viewportToImageZoom(y.zoom||0)*Number(a.value.$options.scale);c.value=Number(C.toFixed(2))}),a.value.$on(D.KfbView.events.EVENT_NAVIGATOR_VESTIGE,y=>{o.navigatorHandle&&o.navigatorHandle("add",o.slide,y)}),o.navigatorHandle&&o.navigatorHandle("list",o.slide).then(y=>{var C,M;(M=(C=a.value.navigator)==null?void 0:C.drawPointList)==null||M.call(C,y)}),q(),J()}function Xe(){var y;(y=a.value)!=null&&y.destroy&&(a.value.destroy(),a.value={},w.value={width:0,height:0,fileNum:0,scanScale:1,fileName:"",ratiomap:{}},Ge.value=[],g.value=[],c.value=0,s.value=0,l.value=0)}function ve(y,C){y==="annotate"?me(C):y==="tailor"?Y(C):y==="info"?p.value=!0:y==="flip"?pe():y==="delete"?Ie("delete")(k.value):v("tool",y,C)}function me(y){y.tool==="Voice"&&(y.subType="voice",y.tool="Dot",y.custom=!0),a.value.board.startDraw(y)}function Qe(){a.value.board.endDraw()}function pe(){a.value.viewer.viewport.toggleFlip()}function Je(y){var C,M;(M=(C=h.value)==null?void 0:C.scopeChange)==null||M.call(C,y)}function et(){p.value=!0}function he(y){a.value.grid.updated(y)}function ge(y){a.value.graduation.updated(y)}function we(y){a.value.navigator.element.style.display=y?"flex":"none"}function tt(y){const C=a.value.viewer.viewport.imageToViewportZoom(Number(y/a.value.$options.scale));a.value.viewer.viewport.zoomTo(C)}return e.provide("kfbView",a),e.provide("currentLabel",k),t({kfbView:a,degrees:s,zoom:c,forceRedraw:F,toggleFlip:pe,startDraw:me,endDraw:Qe,shotScreen:Y,info:et,scopeChange:Je,updateGrid:he,updateGraduation:ge,updateNavigator:we,fastMove:re,zoomTo:tt,selectLabel:ee,reloadLabelList:De}),(y,C)=>{var M,R,O;return e.openBlock(),e.createElementBlock("div",{ref_key:"mainKfbViewRef",ref:u,class:"hzzt-kfb-view"},[y.slide.file?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"kfbViewMainRef",ref:n,class:"hzzt-kfb-view__main","element-loading-text":e.unref(m)("加载中"),"element-loading-background":"rgba(0, 0, 0, 0.8)"},null,8,so)),[[e.unref(z),i.value]]):(e.openBlock(),e.createElementBlock("div",co,C[6]||(C[6]=[e.createElementVNode("img",{style:{width:"50%"},src:se},null,-1)]))),y.slide.analysis&&y.slide.analysis.result?(e.openBlock(),e.createBlock(e.unref(_.ElTag),{key:2,class:"hzzt-kfb-view__tag"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.slide.analysis.result),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",uo,[e.createElementVNode("filter",fo,[e.createElementVNode("feColorMatrix",{values:e.unref(H),type:"matrix"},null,8,vo),e.createElementVNode("feColorMatrix",{values:e.unref(I),type:"saturate"},null,8,mo),e.createElementVNode("feComponentTransfer",null,[e.createElementVNode("feFuncR",{id:"feFuncR",type:"gamma",exponent:e.unref(b).ga,amplitude:"1",offset:"0"},null,8,po),e.createElementVNode("feFuncG",{id:"feFuncG",type:"gamma",exponent:e.unref(b).ga,amplitude:"1",offset:"0"},null,8,ho),e.createElementVNode("feFuncB",{id:"feFuncB",type:"gamma",exponent:e.unref(b).ga,amplitude:"1",offset:"0"},null,8,go)])])])),e.createVNode($t,{menus:y.menus,onTool:ve},null,8,["menus"]),e.createVNode(Dt,e.mergeProps(y.microscope,{ref_key:"microscopeRef",ref:h}),null,16),e.unref(x)&&y.slide.file?(e.openBlock(),e.createBlock(jt,{key:3,info:w.value,slide:y.slide,pathologyHandle:y.pathologyHandle,onTool:ve},null,8,["info","slide","pathologyHandle"])):e.createCommentVNode("",!0),e.unref(E)?(e.openBlock(),e.createBlock(oo,{key:4})):e.createCommentVNode("",!0),(M=y.slide.children)!=null&&M.length?(e.openBlock(),e.createBlock(lo,{key:5,modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=S=>l.value=S),slides:y.slide.children},null,8,["modelValue","slides"])):e.createCommentVNode("",!0),(O=(R=w.value)==null?void 0:R.channel)!=null&&O.length?(e.openBlock(),e.createBlock(io,{key:6,modelValue:g.value,"onUpdate:modelValue":C[1]||(C[1]=S=>g.value=S),info:w.value,onLoad:We},null,8,["modelValue","info"])):e.createCommentVNode("",!0),e.createVNode(e.unref(_.ElDialog),{modelValue:p.value,"onUpdate:modelValue":C[2]||(C[2]=S=>p.value=S),"append-to-body":!0,title:e.unref(m)("图像信息"),width:"700px",top:"5vh"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElForm),{"label-position":"left"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElFormItem),{class:"flex","label-width":"0px"},{default:e.withCtx(()=>[e.createElementVNode("div",wo,[e.createElementVNode("img",{src:w.value.labelImg,style:{height:"180px"}},null,8,yo),e.createElementVNode("img",{src:w.value.previewImg,style:{height:"180px"},class:"flex-1"},null,8,ko)])]),_:1}),e.createVNode(e.unref(_.ElFormItem),{label:e.unref(m)("文件名")},{default:e.withCtx(()=>[e.createElementVNode("span",_o,e.toDisplayString(w.value.fileName),1)]),_:1},8,["label"]),e.createVNode(e.unref(_.ElFormItem),{label:e.unref(m)("图像像素")},{default:e.withCtx(()=>[e.createElementVNode("span",bo,e.toDisplayString(w.value.width)+"Pixel - "+e.toDisplayString(w.value.height)+"Pixel",1)]),_:1},8,["label"]),e.createVNode(e.unref(_.ElFormItem),{label:e.unref(m)("扫描倍率")},{default:e.withCtx(()=>[e.createElementVNode("span",Co,e.toDisplayString(w.value.scanScale),1)]),_:1},8,["label"]),e.createVNode(e.unref(_.ElFormItem),{label:e.unref(m)("扫描时刻")},{default:e.withCtx(()=>[e.createElementVNode("span",Vo,e.toDisplayString(w.value.scanTime),1)]),_:1},8,["label"]),e.createVNode(e.unref(_.ElFormItem),{label:e.unref(m)("扫描时间")},{default:e.withCtx(()=>[e.createElementVNode("span",Eo,e.toDisplayString(w.value.scanDuration||0)+"s",1)]),_:1},8,["label"]),w.value.ext?(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:0,label:e.unref(m)("扫描设备")},{default:e.withCtx(()=>[e.createElementVNode("span",xo,e.toDisplayString(w.value.ext.machineNum||""),1)]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","title"]),e.createVNode(e.unref(_.ElDialog),{modelValue:e.unref(N),"onUpdate:modelValue":C[5]||(C[5]=S=>e.isRef(N)?N.value=S:null),"append-to-body":!0,title:e.unref(m)("语音输入"),width:"500px",top:"5vh"},{footer:e.withCtx(()=>[e.createVNode(e.unref(_.ElButton),{onClick:C[3]||(C[3]=S=>N.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("取消")),1)]),_:1}),e.createVNode(e.unref(_.ElButton),{type:"primary",onClick:C[4]||(C[4]=S=>e.unref(Ae)(e.unref(B)))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("确定")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(_.ElForm),{"label-position":"left"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElFormItem),null,{default:e.withCtx(()=>{var S;return[(S=e.unref(B))!=null&&S.src?(e.openBlock(),e.createElementBlock("audio",{key:0,class:"width-100%",src:e.unref(B).src,controls:"",preload:"auto"},null,8,zo)):e.createCommentVNode("",!0)]}),_:1}),e.createVNode(e.unref(_.ElFormItem),null,{default:e.withCtx(()=>[e.unref(qe)?(e.openBlock(),e.createBlock(e.unref(_.ElButton),{key:1,type:"danger",onClick:e.unref(Ke)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("结束录音")),1)]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(e.unref(_.ElButton),{key:0,type:"primary",onClick:e.unref(Ue)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)("开始录音")),1)]),_:1},8,["onClick"]))]),_:1})]),_:1})]),_:1},8,["modelValue","title"]),y.hotmap&&y.hotmap.enable&&y.hotmap.type!=="switch"?(e.openBlock(),e.createElementBlock("div",{key:7,class:"hzzt-kfb-view__hotmap",style:e.normalizeStyle({left:e.unref(Ze)+"px"})},[e.createVNode(e.unref(_.ElIcon),{class:"icon-caret-left",size:"30",onMousedown:e.unref(ue)},{default:e.withCtx(()=>C[7]||(C[7]=[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,__:[7]},8,["onMousedown"]),e.createVNode(e.unref(_.ElIcon),{class:"icon-caret-right",size:"30",onMousedown:e.unref(ue)},{default:e.withCtx(()=>C[8]||(C[8]=[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,__:[8]},8,["onMousedown"])],4)):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"default")],512)}}});function No(d,t){var p,a;const r=e.ref(!!((p=d.ai)!=null&&p.default)),o=e.ref(!!((a=d.ai)!=null&&a.default)),v=e.ref([]),m=e.computed(()=>{var i,s,c,l;return(s=(i=t.value)==null?void 0:i.analysis)!=null&&s.id?((l=(c=t.value)==null?void 0:c.analysis)==null?void 0:l.class)||"auto":""});e.watch(()=>{var i;return(i=d.ai)==null?void 0:i.default},i=>{r.value=!!i,o.value=!!i}),e.watch(()=>{var i;return(i=t==null?void 0:t.value)==null?void 0:i.id},f),e.onMounted(()=>{var i,s;r.value=!!((i=d.ai)!=null&&i.default),o.value=!!((s=d.ai)!=null&&s.default),f()});function f(){var i;(i=t.value)!=null&&i.id&&m.value?r.value||o.value?u():v.value=[]:v.value=[]}function u(){d.ai.handle(m.value,t.value).then(i=>{v.value=i}).catch(()=>{v.value=[],m.value==="IQC"?o.value=!1:r.value=!1})}function n(){o.value=!1,f()}function h(){r.value=!1,f()}return{analysisClass:m,aiLabelList:v,enableAi:r,enableIqc:o,toggleIqc:h,toggleAi:n}}const Bo=["src","fit"],To=["src","fit"],le=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 r=0;const o=e.ref(!1),v=e.reactive({x:0,y:0}),m=e.computed(()=>({top:`${v.y+10}px`,left:`${v.x}px`,transform:"translateY(-50%)",width:`${4*300/3}px`,height:"300px",background:"rgba(0,0,0,0.8)",zIndex:"10000"}));function f(p){const a=p.target;r<t.retryTimes?(a.src=t.src,r++):a.src=se}function u(p){const{x:a,y:i}=n(p),s=4*300/3,c=300;v.x=Math.min(Math.max(a,s/2),window.innerWidth-s/2),v.y=Math.min(Math.max(i,c/2),window.innerHeight-c/2),o.value=!0}function n(p){const a=p.target,i=p.offsetX,s=p.offsetY,c=a.clientWidth,l=a.clientHeight;return{x:p.clientX+c-i,y:p.clientY-s+l/2}}function h(){o.value=!1}return(p,a)=>(e.openBlock(),e.createElementBlock("div",{class:"relative",onMouseenter:u,onMouseleave:h},[e.createElementVNode("img",{src:d.src,fit:d.fit,onError:f,style:{height:"100%",width:"100%"}},null,40,Bo),(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(m.value)},[e.createElementVNode("img",{src:d.src,fit:d.fit,style:{objectFit:"contain",height:"100%",width:"100%"},onMouseenter:a[0]||(a[0]=()=>{o.value=!0}),onMouseleave:h},null,40,To)],4)):e.createCommentVNode("",!0)]))],32))}}),So={},Lo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function $o(d,t){return e.openBlock(),e.createElementBlock("svg",Lo,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 Mo=Z(So,[["render",$o]]),Po={},Do={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Io(d,t){return e.openBlock(),e.createElementBlock("svg",Do,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 Ao=Z(Po,[["render",Io]]),Ho={class:"hzzt-kfb-slides"},Ro={class:"hzzt-kfb-slides__row"},Fo={class:"hzzt-kfb-slides__top"},qo={class:"text-primary"},Uo={class:"flex align-items-center"},Ko={class:"flex-1 overflow-auto",style:{width:"100%"}},Oo={key:0},jo=["onClick"],Zo={class:"hzzt-kfb-slides__gallery"},Go=["onClick"],Wo={key:0,class:"hzzt-kfb-slides__read"},Yo=["onClick"],Xo={key:1,class:"flex column"},Qo={class:"hzzt-kfb-slides__header"},Jo={class:"w-30%"},en={class:"w-40%"},tn={class:"w-20%"},on=["onClick"],nn={class:"w-30% flex"},ln={class:"hzzt-kfb-slides__gallery"},an={key:0,class:"hzzt-kfb-slides__read"},rn={class:"w-40% flex"},sn=["onClick"],cn=["onClick"],un={key:0,class:"flex column py-2"},dn={class:"flex align-items-center justify-content-center"},fn={class:"margin-r-1"},vn={key:0,class:"margin-r-1 margin-l-2"},mn=e.defineComponent({__name:"KfbSlideList",props:{slides:{}},emits:["select","tool"],setup(d,{emit:t}){const r=d,o=t,v=e.inject("file-index",{value:0}),m=e.inject("divide",{value:!1}),f=e.inject("sync",{value:!1}),u=e.ref(!1),n=e.computed(()=>r.slides.filter(({read:s})=>s)),h=e.computed(()=>r.slides.filter(({check:s})=>s)),{t:p}=K();function a(s){v.value=s,o("select",s)}function i(s){s.check=!s.check}return(s,c)=>(e.openBlock(),e.createElementBlock("div",Ho,[e.createElementVNode("div",Ro,[e.createElementVNode("div",Fo,[e.createElementVNode("span",null,[c[4]||(c[4]=e.createTextVNode("已读:")),e.createElementVNode("span",qo,e.toDisplayString(n.value.length),1),e.createTextVNode("/"+e.toDisplayString(s.slides.length),1)]),e.createElementVNode("div",Uo,[e.createVNode(e.unref(_.ElIcon),{class:"margin-r-2 pointer",size:"16",color:u.value?"#999":"#000",onClick:c[0]||(c[0]=l=>u.value=!u.value)},{default:e.withCtx(()=>[e.createVNode(Mo)]),_:1},8,["color"]),e.createVNode(e.unref(_.ElIcon),{class:"pointer",name:"cus-list",size:"16",color:u.value?"#000":"#999",onClick:c[1]||(c[1]=l=>u.value=!u.value)},{default:e.withCtx(()=>[e.createVNode(Ao)]),_:1},8,["color"])])]),e.createElementVNode("div",Ko,[u.value?(e.openBlock(),e.createElementBlock("ul",Xo,[e.createElementVNode("li",Qo,[c[5]||(c[5]=e.createElementVNode("div",{class:"w-10%"},null,-1)),e.createElementVNode("div",Jo,e.toDisplayString(e.unref(p)("缩略图")),1),e.createElementVNode("div",en,e.toDisplayString(e.unref(p)("切片名")),1),e.createElementVNode("div",tn,e.toDisplayString(e.unref(p)("评分")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.slides,(l,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,class:"flex align-items-center overflow-hidden",style:e.normalizeStyle({backgroundColor:e.unref(v)===g?"rgba(6, 85, 195, 0.1)":"#fff"}),onClick:w=>a(g)},[e.createElementVNode("div",{class:"w-10% text-center",onClick:e.withModifiers(()=>{},["stop"])},[e.createVNode(e.unref(_.ElCheckbox),{modelValue:l.check,"onUpdate:modelValue":w=>l.check=w,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",nn,[e.createElementVNode("div",ln,[e.createVNode(le,{"retry-times":1,src:l.labelImg,fit:"cover",style:{height:"45px"},class:"flex-1"},null,8,["src"]),e.createVNode(le,{"retry-times":1,fit:"cover",src:l.previewImg,style:{height:"45px"},class:"flex-1"},null,8,["src"]),l.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(e.unref(p)("未读")),1))])]),e.createElementVNode("div",rn,[e.createVNode(e.unref(_.ElTooltip),{effect:"dark",placement:"bottom",content:`${l.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(w=>i(l),["stop"])},e.toDisplayString(l.name),9,sn)]),_:2},1032,["content"])]),e.createElementVNode("div",{class:"w-20% flex text-center pointer",style:e.normalizeStyle({color:l.gradeColor}),onClick:w=>o("tool","grade",l)},e.toDisplayString(l.grade),13,cn)],12,on))),128))])):(e.openBlock(),e.createElementBlock("div",Oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.slides,(l,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:e.normalizeClass(["hzzt-kfb-slides__box",e.unref(v)===g?"hzzt-kfb-slides__box--active":""]),onClick:w=>a(g)},[e.createElementVNode("div",Zo,[e.createVNode(le,{"retry-times":1,src:l.labelImg,class:"hzzt-kfb-slides__img",fit:"cover"},null,8,["src"]),e.createVNode(le,{"retry-times":1,src:l.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(_.ElCheckbox),{modelValue:l.check,"onUpdate:modelValue":w=>l.check=w,style:{width:"14px",height:"16px"}},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(_.ElTooltip),{effect:"dark",placement:"bottom",content:`${l.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(w=>i(l),["stop"])},e.toDisplayString(l.name),9,Go)]),_:2},1032,["content"])]),l.read?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wo,e.toDisplayString(e.unref(p)("未读")),1)),l.grade?(e.openBlock(),e.createElementBlock("div",{key:1,class:"hzzt-kfb-slides__grade",style:e.normalizeStyle({background:l.gradeColor}),onClick:w=>o("tool","grade",l)},e.toDisplayString(l.grade),13,Yo)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"slide",{slide:l},void 0,!0)],10,jo))),128))]))]),h.value.length>1?(e.openBlock(),e.createElementBlock("div",un,[e.createElementVNode("div",dn,[e.createElementVNode("span",fn,e.toDisplayString(e.unref(p)("分屏")),1),e.createVNode(e.unref(_.ElSwitch),{modelValue:e.unref(m),"onUpdate:modelValue":c[2]||(c[2]=l=>e.isRef(m)?m.value=l:null)},null,8,["modelValue"]),e.unref(m)?(e.openBlock(),e.createElementBlock("span",vn,e.toDisplayString(e.unref(p)("同步")),1)):e.createCommentVNode("",!0),e.unref(m)?(e.openBlock(),e.createBlock(e.unref(_.ElSwitch),{key:1,modelValue:e.unref(f),"onUpdate:modelValue":c[3]||(c[3]=l=>e.isRef(f)?f.value=l:null)},null,8,["modelValue"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)])]))}}),pn=Z(mn,[["__scopeId","data-v-c2a1a22e"]]),hn={class:"hzzt-kfb-ai overflow-hidden"},gn={class:"flex align-items-center margin-t-1"},wn={style:{color:"var(--el-color-success)"}},yn={class:"flex-1 flex overflow-auto wrap margin-t-1"},kn=["onClick"],_n={key:0,style:{"margin-left":"2px"}},bn=e.defineComponent({name:"KfbAiList",__name:"list",props:{data:{default:()=>[]},slide:{default:()=>({})}},setup(d,{expose:t}){const r=d,{t:o}=K(),v=e.inject("kfbViewRef"),m=e.ref(-1),f=e.ref(1),u=e.ref(100),n=e.ref(!0),h=e.ref([]),p=e.computed(()=>r.data.filter(V=>h.value.includes(V.cls||""))),a=e.computed(()=>p.value.slice((f.value-1)*u.value,f.value*u.value)),i=e.computed(()=>{var z,b;const V=((b=(z=r.slide)==null?void 0:z.analysis)==null?void 0:b.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("未知")}}),s=e.computed(()=>{const V=new Set;return r.data.forEach(z=>{const b=z.cls||"";b&&!V.has(b)&&V.add(b)}),Array.from(V)}),c=e.computed(()=>h.value.length!==0&&h.value.length!==s.value.length);e.watch(()=>s.value,V=>{l(),h.value=[...V]}),e.onMounted(()=>{h.value=[...s.value]});function l(){m.value=-1,f.value=1,u.value=100,n.value=!0}function g(V){const z=p.value.findIndex(b=>b.id===V.id);m.value=z,v.value.selectLabel(V)}function w(V){const z=r.data.filter(b=>b.cls===V);return z.length?`(${z.length})`:""}function x(){m.value=-1,n.value=h.value.length==s.value.length}function E(V){h.value=V?[...s.value]:[],m.value=-1}return t({labelList:p}),(V,z)=>(e.openBlock(),e.createElementBlock("div",hn,[e.createElementVNode("div",gn,[e.createVNode(e.unref(_.ElPopover),{placement:"bottom",trigger:"click",width:"160"},{reference:e.withCtx(()=>[e.createVNode(e.unref(_.ElButton),{class:"margin-r-1",type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("分类"))+" ",1),e.createVNode(A,{name:"arrowDown"})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(_.ElCheckbox),{modelValue:n.value,"onUpdate:modelValue":z[0]||(z[0]=b=>n.value=b),indeterminate:c.value,onChange:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("全选")),1)]),_:1},8,["modelValue","indeterminate"]),e.createVNode(e.unref(_.ElCheckboxGroup),{modelValue:h.value,"onUpdate:modelValue":z[1]||(z[1]=b=>h.value=b),class:"flex column",onChange:x},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,b=>(e.openBlock(),e.createBlock(e.unref(_.ElCheckbox),{key:b,value:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b)+" ",1),e.createElementVNode("span",wn,e.toDisplayString(w(b)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])]),_:1}),e.createVNode(e.unref(_.ElTag),{type:i.value.type,class:"margin-l-1"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.name),1)]),_:1},8,["type"])]),e.createElementVNode("div",yn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(b,H)=>(e.openBlock(),e.createElementBlock("div",{key:H+(f.value-1)*u.value,class:e.normalizeClass(`hzzt-kfb-ai__img ${m.value===H+(f.value-1)*u.value?"hzzt-kfb-ai__img--active":""}`),onClick:I=>g(b)},[e.createVNode(e.unref(it),{"retry-times":1,src:b.imageUrl,"error-src":e.unref(se)},null,8,["src","error-src"]),e.createElementVNode("div",{style:e.normalizeStyle({color:b.strokeStyle}),class:"ellipsis"},[e.createTextVNode(e.toDisplayString(b.cls)+" ",1),b.score?(e.openBlock(),e.createElementBlock("span",_n,e.toDisplayString(b.score),1)):e.createCommentVNode("",!0)],4)],10,kn))),128))]),e.createVNode(e.unref(_.ElPagination),{class:"wrap","current-page":f.value,"onUpdate:currentPage":z[2]||(z[2]=b=>f.value=b),"page-size":u.value,"onUpdate:pageSize":z[3]||(z[3]=b=>u.value=b),"page-sizes":[100,200,300,400],layout:"total, sizes, prev, pager, next",total:p.value.length},null,8,["current-page","page-size","total"])]))}}),Cn={class:"hzzt-kfb-slide"},Vn={class:"flex flex-1 overflow-hidden"},En={class:"flex flex-1"},xn={key:0,style:{height:"100%",width:"100%"},class:"flex wrap"},zn=["onClick"],oe=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:r}){const o=d,v=r,m=e.useModel(d,"index"),f=e.computed(()=>o.slides[m.value]),u=e.computed(()=>o.slides.filter(({check:k})=>k)),n=e.ref(),h=e.ref(),p=e.ref(),a=e.ref(o.showKeyboard),i=e.ref(o.showKfbLabel),s=e.ref(!1),c=e.ref(!1),l=e.ref(!1),{t:g}=K(),w=e.computed(()=>{var k;if(s.value){const N=u.value.findIndex(({id:B})=>{var U;return B===((U=f.value)==null?void 0:U.id)});return((k=h.value)==null?void 0:k[N])||n.value}else return n.value}),x=e.computed(()=>u.value.length<=1?{height:"100%",width:"100%"}:u.value.length<=2?{height:"100%",width:"calc((100% - 4px) / 2)"}:u.value.length<=4?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px) / 2)"}:u.value.length<=6?{height:"calc((100% - 4px) / 2)",width:"calc((100% - 4px * 2) / 3)"}:u.value.length<=9?{height:"calc((100% - 4px * 2) / 3)",width:"calc((100% - 4px * 2) / 3)"}:{height:"100%",width:"100%"});e.watch(()=>u.value,k=>{s.value&&k.length<=1&&(s.value=!1)}),e.watch(()=>f.value,k=>{if(k){const N=k.read;k.read=!0,v("tool","choose",{slide:k,read:N})}});const{analysisClass:E,aiLabelList:V,enableAi:z,enableIqc:b,toggleIqc:H,toggleAi:I}=No(o,f);function F(k,N){k==="next"&&o.slides[m.value+1]&&m.value++,k==="prev"&&o.slides[m.value-1]&&m.value--,(k==="label"||k==="tool")&&(i.value=N),v("tool",k,N)}function q(k){var B,U,ee;const N=j($({},o.kfb),{process:o.process,microscope:o.microscope,slide:k,aiLabelList:f.value.id===k.id?((B=p.value)==null?void 0:B.labelList)||[]:[],hotmap:(U=k==null?void 0:k.hotmap)!=null&&U.file?j($({},(k==null?void 0:k.hotmap)||{}),{enable:z.value}):void 0,syncPosition:c.value,syncZoom:c.value,handle:void 0});return(ee=o.kfb)!=null&&ee.handle?o.kfb.handle(k,N):N}function Y(k){m.value=o.slides.findIndex(N=>N.id===k.id)}function J(k){s.value&&(o.slides[k].check=!0)}function re(){var k;i.value=!l.value,(k=s.value?h.value:[n.value])==null||k.forEach(N=>{l.value&&(N.updateGrid({show:!l.value,ruler:!l.value}),a.value=!l.value),N.updateGraduation({show:!l.value}),N.updateNavigator(!l.value)})}return e.provide("kfbViewRef",w),e.provide("show-keyboard",a),e.provide("show-kfb-label",i),e.provide("hidden-all-label",l),e.provide("file-index",m),e.provide("divide",s),e.provide("sync",c),t({divide:s,slide:f,kfbViewRef:w,enableAI:e.computed(()=>{var k;return((k=o.ai)==null?void 0:k.enable)&&V.value.length})}),(k,N)=>(e.openBlock(),e.createElementBlock("div",Cn,[k.menus.length?(e.openBlock(),e.createBlock(Q,{key:0,menu:k.menus,"show-menu-text":k.showMenuText,process:k.process,microscope:k.microscope,onTool:F},{left:e.withCtx(()=>[e.renderSlot(k.$slots,"left")]),right:e.withCtx(()=>[e.createVNode(e.unref(_.ElSwitch),{modelValue:l.value,"onUpdate:modelValue":N[0]||(N[0]=B=>l.value=B),"active-text":e.unref(g)("隐藏标签"),class:"margin-r-2",onChange:re},null,8,["modelValue","active-text"]),k.ai&&k.ai.enable&&e.unref(E)==="IQC"?(e.openBlock(),e.createBlock(e.unref(_.ElSwitch),{key:0,modelValue:e.unref(b),"onUpdate:modelValue":N[1]||(N[1]=B=>e.isRef(b)?b.value=B:null),"active-text":e.unref(g)("AI质控"),class:"margin-r-2",onChange:e.unref(H)},null,8,["modelValue","active-text","onChange"])):k.ai&&k.ai.enable&&e.unref(E)?(e.openBlock(),e.createBlock(e.unref(_.ElSwitch),{key:1,modelValue:e.unref(z),"onUpdate:modelValue":N[2]||(N[2]=B=>e.isRef(z)?z.value=B:null),"active-text":e.unref(g)("AI分析"),class:"margin-r-2",onChange:e.unref(I)},null,8,["modelValue","active-text","onChange"])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"right")]),_:3},8,["menu","show-menu-text","process","microscope"])):e.createCommentVNode("",!0),e.createElementVNode("div",Vn,[k.showList?(e.openBlock(),e.createBlock(e.Teleport,{key:0,defer:"",to:"#kfb-slide-list",disabled:!k.teleport},[e.createVNode(pn,{style:e.normalizeStyle(k.teleport?"":"width: 250px"),slides:k.slides,onSelect:J,onTool:F},{slide:e.withCtx(({slide:B})=>[e.renderSlot(k.$slots,"list",{slide:B})]),_:3},8,["style","slides"])],8,["disabled"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Teleport,{defer:"",to:"#kfb-slide-view",disabled:!k.teleport},[e.createElementVNode("div",En,[u.value.length&&s.value?(e.openBlock(),e.createElementBlock("ul",xn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(B,U)=>(e.openBlock(),e.createElementBlock("li",{key:U,style:e.normalizeStyle(x.value),class:e.normalizeClass(f.value.id===B.id?"hzzt-kfb-view-screen-active":""),onClick:ee=>Y(B)},[(e.openBlock(),e.createBlock(W,e.mergeProps({ref_for:!0,ref_key:"kfbViewRefs",ref:h,key:`kfb-${U}`},{ref_for:!0},q(B),{onTool:F}),{default:e.withCtx(()=>[e.renderSlot(k.$slots,"kfb",{slide:B})]),_:2},1040))],14,zn))),128))])):f.value?(e.openBlock(),e.createBlock(W,e.mergeProps({key:1,ref_key:"kfbViewRef",ref:n},q(f.value),{onTool:F}),{default:e.withCtx(()=>[e.renderSlot(k.$slots,"kfb",{slide:f.value})]),_:3},16)):e.createCommentVNode("",!0)])],8,["disabled"])),k.ai&&k.ai.enable&&e.unref(V).length?(e.openBlock(),e.createBlock(e.Teleport,{key:1,defer:"",to:"#kfb-slide-ai",disabled:!k.teleport},[e.createVNode(bn,{style:e.normalizeStyle(k.teleport?"":"width: 350px"),ref_key:"kfbAiRef",ref:p,data:e.unref(V),slide:f.value},null,8,["style","data","slide"])],8,["disabled"])):e.createCommentVNode("",!0),e.renderSlot(k.$slots,"default")])]))}});oe.name="HzztKfbSlide";W.name="HzztKfbView";Q.name="HzztKfbToolbox";const Nn=(d,t)=>{d.use(st,t==null?void 0:t.i18n),d.component(oe.name,oe),d.component(W.name,W),d.component(Q.name,Q)},Bn={install:Nn,HzztKfbSlide:oe,HzztKfbView:W,HzztKfbToolbox:Q};exports.DEFAULT_MICROSCOPE=ae;exports.DEFAULT_PROCESS=ce;exports._export_sfc=Z;exports._sfc_main=oe;exports._sfc_main$1=W;exports._sfc_main$2=Q;exports.arrow=xe;exports.bilateral=ze;exports.dot=$e;exports.ellipse=Be;exports.flag=Le;exports.font=Me;exports.index=Bn;exports.line=Ee;exports.polygon=Te;exports.rectangle=Ne;exports.star=Se;exports.useLocalI18n=K;exports.voice=Pe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexMzBpWXyM.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./indexMzBpWXyM.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("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./indexMzBpWXyM.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;
|
|
@@ -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 "./microscopeCiYvQsyw.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 "./useCommonBCMuQZUh.js";
|
|
17
|
+
import { g as E, _ as L } from "./indexCbr7K6Yq.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 @@
|
|
|
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("./microscopeBr8-XStr.js"),s=require("element-plus"),E=require("./useCommonDf_LQLq6.js"),p=require("./indexMzBpWXyM.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,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 "./useCommonBCMuQZUh.js";
|
|
3
|
+
import E from "./moveNyavIpT3.js";
|
|
4
|
+
import { ElPopover as V, ElCard as I, ElInputNumber as w, ElIcon as B } from "element-plus";
|
|
5
|
+
import { _ as M } from "./indexCbr7K6Yq.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("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./indexMzBpWXyM.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("./useCommonDf_LQLq6.js"),c=require("./moveBASWwKjj.js"),r=require("element-plus"),p=require("./indexMzBpWXyM.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexMzBpWXyM.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./indexMzBpWXyM.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;
|