vue-data-ui 2.3.76 → 2.3.78
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/{Arrow-DY9RKUmG.js → Arrow-BCYtOwX7.js} +1 -1
- package/dist/{Arrow-D7M4-bW7.cjs → Arrow-DWkvIpW8.cjs} +1 -1
- package/dist/{BaseIcon-rwm-10Hu.js → BaseIcon-BIQXWVMS.js} +1 -1
- package/dist/{BaseIcon-DB7Apwv_.cjs → BaseIcon-Bcpzfk34.cjs} +1 -1
- package/dist/{DataTable-CsNozyz7.cjs → DataTable-C5TOiC61.cjs} +1 -1
- package/dist/{DataTable-e2fnfjXV.js → DataTable-y1lX5jVj.js} +2 -2
- package/dist/{Legend-5cQ0xZjK.js → Legend-BLXcdrri.js} +1 -1
- package/dist/{Legend-DgFd-O0m.cjs → Legend-CGGD8NhP.cjs} +1 -1
- package/dist/{Shape-CiTElr_0.js → Shape-CsoTtJx6.js} +1 -1
- package/dist/{Shape-yPECDLiP.cjs → Shape-qJYTY2BC.cjs} +1 -1
- package/dist/{Slicer-DaZgCKV7.cjs → Slicer-CZJXKSeE.cjs} +1 -1
- package/dist/{Slicer-DwBBu3kB.js → Slicer-DzJZ4axa.js} +12 -12
- package/dist/{Title-3EduyW4p.cjs → Title-BSpa3uge.cjs} +1 -1
- package/dist/{Title-gUz6GDA3.js → Title-Bx-VO3md.js} +1 -1
- package/dist/{Tooltip-DfSM1mNP.js → Tooltip-Dk-cimhQ.js} +23 -23
- package/dist/Tooltip-rmhZhv96.cjs +1 -0
- package/dist/index-CzjC8LfY.cjs +4 -0
- package/dist/{index-CaV1s-yZ.js → index-DP8dqFNd.js} +1147 -1145
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tWCzZrLx.js → useNestedProp-B-oZxD4x.js} +1 -1
- package/dist/{useNestedProp-CisbRRo_.cjs → useNestedProp-CY7DebVH.cjs} +1 -1
- package/dist/{usePrinter-DzTaA1eh.cjs → usePrinter-DiLM6jav.cjs} +1 -1
- package/dist/{usePrinter-rvJyT65A.js → usePrinter-DiuHo4LO.js} +1 -1
- package/dist/{vue-data-ui-BGkWRPUY.cjs → vue-data-ui-Ce5IFSYA.cjs} +1 -1
- package/dist/{vue-data-ui-BO89gTtq.js → vue-data-ui-Ct7n5wkM.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/vue-ui-3d-bar-B_i2EoFu.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CcTMIHiB.js → vue-ui-3d-bar-O3fB5J7V.js} +342 -342
- package/dist/{vue-ui-accordion-CpzGQ63y.js → vue-ui-accordion-Dl8zkZPk.js} +3 -3
- package/dist/{vue-ui-accordion-7e4Myhcg.cjs → vue-ui-accordion-DpI7fTKZ.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-D71ZLkVV.js → vue-ui-age-pyramid-BeiREI6d.js} +22 -22
- package/dist/vue-ui-age-pyramid-BsAfxkN4.cjs +1 -0
- package/dist/{vue-ui-annotator-B8Iu6cYt.js → vue-ui-annotator-0yje27Qq.js} +39 -39
- package/dist/{vue-ui-annotator-BKQrweqm.cjs → vue-ui-annotator-DpN-6IwB.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bx4QVkY0.js → vue-ui-candlestick-D9UteVvx.js} +34 -34
- package/dist/{vue-ui-candlestick-DAc1FQ-i.cjs → vue-ui-candlestick-lv78wnpS.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-uFRqkghO.cjs → vue-ui-carousel-table-Br6FwMKM.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-xuQG6bcH.js → vue-ui-carousel-table-jxZ3h5pq.js} +31 -31
- package/dist/{vue-ui-chestnut-Bo6rDcU7.js → vue-ui-chestnut-DXuHRJy4.js} +291 -288
- package/dist/vue-ui-chestnut-DbYHeNaL.cjs +6 -0
- package/dist/{vue-ui-cursor-C0KOqEOq.js → vue-ui-cursor-BzPbdVRJ.js} +20 -20
- package/dist/vue-ui-cursor-iss6SJ1Y.cjs +1 -0
- package/dist/{vue-ui-dashboard-BT71xS7P.js → vue-ui-dashboard-CGjWuFrI.js} +2 -2
- package/dist/{vue-ui-dashboard-0Hsjx-bO.cjs → vue-ui-dashboard-DKT82yQ4.cjs} +1 -1
- package/dist/{vue-ui-digits-BRqpKYvD.js → vue-ui-digits-BCguvLxB.js} +2 -2
- package/dist/{vue-ui-digits-C2ReH6w0.cjs → vue-ui-digits-BfwDCfYp.cjs} +1 -1
- package/dist/{vue-ui-donut-NQW-3prf.js → vue-ui-donut-DJTeGLVG.js} +209 -212
- package/dist/{vue-ui-donut-evolution-jbXQQGTc.js → vue-ui-donut-evolution-BaLDZNDG.js} +106 -106
- package/dist/vue-ui-donut-evolution-Bil1AIhX.cjs +1 -0
- package/dist/vue-ui-donut-uVPdO4UH.cjs +1 -0
- package/dist/{vue-ui-dumbbell-Dyz8xdtC.js → vue-ui-dumbbell-BqtDdV5w.js} +17 -17
- package/dist/{vue-ui-dumbbell-DXQSg6wa.cjs → vue-ui-dumbbell-DiL3xhKY.cjs} +1 -1
- package/dist/{vue-ui-flow-UqSNwH9d.cjs → vue-ui-flow-BVTbbsCK.cjs} +1 -1
- package/dist/{vue-ui-flow-BL3JWW1m.js → vue-ui-flow-zfTGon4s.js} +28 -28
- package/dist/{vue-ui-galaxy-Dx9nsOuM.js → vue-ui-galaxy-5iRb5sQ-.js} +22 -22
- package/dist/{vue-ui-galaxy-DTQWGvRH.cjs → vue-ui-galaxy-GSO_6KIe.cjs} +1 -1
- package/dist/vue-ui-gauge-Bz7oLa51.cjs +1 -0
- package/dist/{vue-ui-gauge-CLaKGi0-.js → vue-ui-gauge-DljHYdCS.js} +101 -110
- package/dist/{vue-ui-gizmo-of-4s5HG.js → vue-ui-gizmo-B-fxFOZy.js} +2 -2
- package/dist/{vue-ui-gizmo-Kitfqu0J.cjs → vue-ui-gizmo-KL0OJY2K.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BIzjOMXO.js → vue-ui-heatmap-ketn_NV3.js} +17 -17
- package/dist/{vue-ui-heatmap-DUw2350O.cjs → vue-ui-heatmap-thMJPCfo.cjs} +1 -1
- package/dist/{vue-ui-kpi-By3YPwgo.js → vue-ui-kpi-Bxu8uZ21.js} +3 -3
- package/dist/{vue-ui-kpi-DyL2Hcz-.cjs → vue-ui-kpi-e1QWa8D4.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DnK3V2z2.js → vue-ui-mini-loader-BZ_2aV8O.js} +2 -2
- package/dist/{vue-ui-mini-loader-C048-8Kd.cjs → vue-ui-mini-loader-paRZQU8H.cjs} +1 -1
- package/dist/{vue-ui-molecule-BfhbIqa5.js → vue-ui-molecule-Bpp5unvI.js} +33 -33
- package/dist/{vue-ui-molecule-D-ahly6R.cjs → vue-ui-molecule-VOBL4Osc.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DXxEKr3x.js → vue-ui-mood-radar-BY8XP_Q5.js} +129 -132
- package/dist/vue-ui-mood-radar-CwtMLwP8.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BdUdHFd-.js → vue-ui-nested-donuts-5uuLi3If.js} +98 -98
- package/dist/{vue-ui-nested-donuts-C7qM_FRw.cjs → vue-ui-nested-donuts-CLnVnAiD.cjs} +2 -2
- package/dist/{vue-ui-onion-DX3gofXZ.cjs → vue-ui-onion-CMSPSSSG.cjs} +1 -1
- package/dist/{vue-ui-onion-D0vF5jBt.js → vue-ui-onion-zDy4ecPl.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs → vue-ui-parallel-coordinate-plot-1PFxiI__.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CTZY-pY8.js → vue-ui-parallel-coordinate-plot-BeEkL7Dq.js} +24 -24
- package/dist/vue-ui-quadrant-Cx5z_c90.cjs +1 -0
- package/dist/{vue-ui-quadrant-ByY8GP3y.js → vue-ui-quadrant-MCIlbbsW.js} +35 -35
- package/dist/{vue-ui-quick-chart-DWZEgUJF.cjs → vue-ui-quick-chart-Xn-47NQG.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DTxJ__7j.js → vue-ui-quick-chart-r6Qa7qg_.js} +69 -69
- package/dist/{vue-ui-radar-DEED0rTz.cjs → vue-ui-radar-ANQ1wXFc.cjs} +1 -1
- package/dist/{vue-ui-radar-5UBmAU6W.js → vue-ui-radar-DFV5cFkl.js} +39 -39
- package/dist/{vue-ui-rating-Ce_Ewqtl.cjs → vue-ui-rating-BVzCbQbv.cjs} +1 -1
- package/dist/{vue-ui-rating-Dr6jquxh.js → vue-ui-rating-DYu1EuJF.js} +6 -6
- package/dist/{vue-ui-relation-circle-BU8i2miI.js → vue-ui-relation-circle-BAcmDQB_.js} +29 -29
- package/dist/vue-ui-relation-circle-DEM6C6Or.cjs +1 -0
- package/dist/{vue-ui-rings-Ctl3Jywh.js → vue-ui-rings-BiLlYpgu.js} +31 -31
- package/dist/{vue-ui-rings-OQ8a1Ruw.cjs → vue-ui-rings-Ce4G4hat.cjs} +2 -2
- package/dist/{vue-ui-scatter-BwJ_koWT.js → vue-ui-scatter-D2ndYfkQ.js} +95 -95
- package/dist/vue-ui-scatter-OtlcTCUF.cjs +1 -0
- package/dist/{vue-ui-screenshot-BS3L5vhN.js → vue-ui-screenshot-CKCNPn-e.js} +4 -4
- package/dist/{vue-ui-screenshot-bAVk3EPl.cjs → vue-ui-screenshot-DTQx4VsM.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CvFX_ExX.js → vue-ui-skeleton-B30ZhUV7.js} +96 -96
- package/dist/vue-ui-skeleton-CwqzJlQf.cjs +41 -0
- package/dist/{vue-ui-smiley-CGYZpNt9.js → vue-ui-smiley-DzLvZR1k.js} +2 -2
- package/dist/{vue-ui-smiley-sF8QIso1.cjs → vue-ui-smiley-L6o24M6h.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B4XSSKl9.js → vue-ui-spark-trend-BKsmENbH.js} +21 -21
- package/dist/vue-ui-spark-trend-BoWeviHk.cjs +1 -0
- package/dist/{vue-ui-sparkbar-BbsJGDMZ.js → vue-ui-sparkbar-DNzZkp8z.js} +10 -10
- package/dist/vue-ui-sparkbar-DY3iOLo4.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D4w_i_QJ.js → vue-ui-sparkgauge-B2DngjVP.js} +8 -8
- package/dist/{vue-ui-sparkgauge-BKyQoI7C.cjs → vue-ui-sparkgauge-BlZ-lJm4.cjs} +1 -1
- package/dist/vue-ui-sparkhistogram-BUBewgdH.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CYybrW-6.js → vue-ui-sparkhistogram-Co9N3BeQ.js} +111 -101
- package/dist/vue-ui-sparkline-BhL0mxXD.cjs +1 -0
- package/dist/{vue-ui-sparkline-DjN1SVdO.js → vue-ui-sparkline-Dpqo4aRJ.js} +34 -34
- package/dist/{vue-ui-sparkstackbar-BZ2bESBi.cjs → vue-ui-sparkstackbar-DtNbx3EV.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BLMhJxaN.js → vue-ui-sparkstackbar-_JwfRxF8.js} +5 -5
- package/dist/{vue-ui-stackbar-BTKOHUYc.js → vue-ui-stackbar-BtN7ZM7-.js} +202 -200
- package/dist/{vue-ui-stackbar-DRHaJFR8.cjs → vue-ui-stackbar-C7AWHP6m.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-o6GTsGAT.js → vue-ui-strip-plot-6L9a7BSw.js} +26 -26
- package/dist/{vue-ui-strip-plot-DxQxFbWg.cjs → vue-ui-strip-plot-cgOFTunJ.cjs} +1 -1
- package/dist/{vue-ui-table-BFIj1Rgh.cjs → vue-ui-table-4Pf9tmFg.cjs} +1 -1
- package/dist/{vue-ui-table-CnquiTpr.js → vue-ui-table-BFYHRMCS.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CZRIwv-Q.js → vue-ui-table-heatmap--kPCu8mA.js} +24 -24
- package/dist/{vue-ui-table-heatmap-CCGK12Fa.cjs → vue-ui-table-heatmap-CltKb2V9.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DYmgfHz4.cjs → vue-ui-table-sparkline-B5OjJud8.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B3zEeq6Z.js → vue-ui-table-sparkline-CsWx1Ksy.js} +26 -26
- package/dist/{vue-ui-thermometer-CzPRBt6c.cjs → vue-ui-thermometer-62_4QovL.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BopiohUh.js → vue-ui-thermometer-nTD7sp8r.js} +40 -40
- package/dist/{vue-ui-timer-Bonw69Lt.cjs → vue-ui-timer-BU0s7Vt9.cjs} +1 -1
- package/dist/{vue-ui-timer-C7WkW8hK.js → vue-ui-timer-DMFHjnzA.js} +8 -8
- package/dist/{vue-ui-tiremarks-BurRtFv4.js → vue-ui-tiremarks-1X9B1VKM.js} +18 -18
- package/dist/{vue-ui-tiremarks-DkIGfq8t.cjs → vue-ui-tiremarks-mwBeBMJY.cjs} +1 -1
- package/dist/{vue-ui-treemap-DWy4voIr.js → vue-ui-treemap-CVTwqPFA.js} +29 -29
- package/dist/{vue-ui-treemap-CalhJmnp.cjs → vue-ui-treemap-DQmBbm7e.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BXiy8KRC.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CJW1YhtY.js → vue-ui-vertical-bar-Br6Z0A3F.js} +14 -14
- package/dist/{vue-ui-waffle-faQMBYNx.cjs → vue-ui-waffle-CLCsHw9j.cjs} +1 -1
- package/dist/{vue-ui-waffle-DB7X6nTS.js → vue-ui-waffle-DEXMh07q.js} +84 -84
- package/dist/{vue-ui-wheel-CryKap2E.js → vue-ui-wheel-CwjuVi6U.js} +24 -24
- package/dist/{vue-ui-wheel-BzjbGP6a.cjs → vue-ui-wheel-DSFKKX65.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-COqUkvei.js → vue-ui-word-cloud-BKeD3fHb.js} +19 -19
- package/dist/{vue-ui-word-cloud-DJN9I4q4.cjs → vue-ui-word-cloud-DZS4hCeR.cjs} +1 -1
- package/dist/vue-ui-xy-B5aCogSL.cjs +3 -0
- package/dist/{vue-ui-xy-b1Z_HPsx.js → vue-ui-xy-DA3qqL8u.js} +351 -350
- package/dist/{vue-ui-xy-canvas-BgbLnY5B.js → vue-ui-xy-canvas-B7DH4RK5.js} +18 -18
- package/dist/vue-ui-xy-canvas-heCdqh5X.cjs +9 -0
- package/package.json +1 -1
- package/dist/Tooltip-DScSrYXJ.cjs +0 -1
- package/dist/index-BTgtr0F8.cjs +0 -4
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +0 -19
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +0 -1
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +0 -6
- package/dist/vue-ui-cursor-BQbeuW-k.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +0 -1
- package/dist/vue-ui-donut-v81suIOX.cjs +0 -1
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +0 -1
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +0 -1
- package/dist/vue-ui-quadrant-CgApzie6.cjs +0 -1
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +0 -1
- package/dist/vue-ui-scatter-B8StSjt8.cjs +0 -1
- package/dist/vue-ui-skeleton-CMQzFTs9.cjs +0 -41
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +0 -1
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +0 -1
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +0 -1
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +0 -4
- package/dist/vue-ui-xy-BmA0tspd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./html2canvas.esm-BA_v9SIU.cjs"),I=require("./jspdf.es.min-DLYY9DTT.cjs"),u=require("./index-CzjC8LfY.cjs"),o=require("vue"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},data(){return{activeShape:void 0,strokeSize:1,currentPointer:{start:{x:0,y:0},end:{x:0,end:0}},currentTarget:void 0,hoveredShapeId:void 0,isBold:!1,isBulletTextMode:!1,isDash:!1,isDeleteMode:!1,isDrawing:!1,isDrawingNewShape:!0,isDrawMode:!1,isItalic:!1,isMouseDown:!1,isMoveMode:!1,isPrinting:!1,isResizeMode:!1,isSelectMode:!1,isSummaryOpen:!1,isTextMode:!1,isUnderline:!1,isWriting:!1,lastSelectedShape:this.dataset.lastSelectedShape,pointerDownId:-1,pointerPosition:{x:0,y:0},preventEdit:!0,selectedGroup:[],shapes:this.dataset.shapes?this.dataset.shapes:[],shapesOrder:[],step:Math.round(Math.random())*1e5,svgHeight:1e3,svgWidth:1e3,options:{arrow:{color:"grey",filled:!0},circle:{color:"grey",filled:!1,radius:3,strokeWidth:2},rect:{color:"grey",filled:!1,strokeWidth:2,height:12,width:12}},selectedColor:"#000000",showCaret:!1,sizeRatio:1,slottedSvg:void 0,sourceWidth:1,sourceHeight:1,textAlign:"start",textFont:20,transparency:100,transparencyCodes:u.opacity}},watch:{shapes:{handler(e){e.length===0&&(this.lastSelectedShape=void 0)}}},computed:{FINAL_CONFIG(){const e=u.useConfig().vue_ui_annotator;if(!Object.keys(this.config||{}).length)return e;const l=this.treeShake({defaultConfig:e,userConfig:this.config});return this.convertConfigColors(l)},canSelect(){return this.shapes.filter(e=>!["line","group"].includes(e.type)).length>1},colorTransparency(){return this.transparencyCodes[this.transparency>98?98:this.transparency]},cursorClass(){switch(!0){case this.isDeleteMode:return"default";case this.isMoveMode:return"move";case this.isTextMode:return"text";case this.isResizeMode:return"se-resize";default:return""}},records(){return this.shapes},userShapes(){return this.records.map(e=>{switch(!0){case(e&&e.type==="arrow"):const l=e.strokeWidth>3?5:10,s=e.strokeWidth>3?2.5:5;return`
|
|
2
2
|
<defs>
|
|
3
3
|
<marker
|
|
4
4
|
id="${e.id}"
|
|
@@ -368,4 +368,4 @@
|
|
|
368
368
|
${this.showCaret&&this.lastSelectedShape&&this.lastSelectedShape.id===e.id?this.computeCaretPosition(e):""}
|
|
369
369
|
${this.includeDeleteButton(e)}
|
|
370
370
|
</g>
|
|
371
|
-
`;default:return""}},copy(e){return JSON.parse(JSON.stringify(e))},clickShape(e){const l=e.target.id;switch(!0){case this.isDeleteMode:this.shapes=[...this.shapes].filter(s=>s.id!==l),this.lastSelectedShape=void 0;break;default:this.lastSelectedShape=this.shapes.find(s=>s.id===l);break}},deleteEmptyTextElement(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("text")||this.lastSelectedShape.textContent===""&&(this.shapes=this.shapes.filter(e=>e.id!==this.lastSelectedShape.id),this.lastSelectedShape=this.shapes.at(-1))},drawUp(e=!1){if(!this.activeShape||!this.isDrawing)return;this.currentPointer.end={x:this.pointerPosition.x,y:this.pointerPosition.y};let l;this.shapes.length>0&&this.currentTarget&&(l=[...this.shapes].find(d=>d.id===this.currentTarget.id));let s,n,i;l&&(s=l.x-this.currentPointer.end.x,n=l.y-this.currentPointer.end.y,i=Math.sqrt(s*s+n*n));let t,r;e?(t=Math.max(this.currentPointer.end.x,l.x),r=Math.min(this.currentPointer.end.x,l.x),Math.max(this.currentPointer.end.y,l.y),Math.min(this.currentPointer.end.y,l.y)):(t=Math.max(this.currentPointer.end.x,this.currentPointer.start.x),r=Math.min(this.currentPointer.end.x,this.currentPointer.start.x),Math.max(this.currentPointer.end.y,this.currentPointer.start.y),Math.min(this.currentPointer.end.y,this.currentPointer.start.y)),this.$nextTick(()=>{switch(!0){case this.activeShape==="arrow":this.shapes.at(-1).endX=this.currentPointer.end.x,this.shapes.at(-1).endY=this.currentPointer.end.y;break;case this.activeShape==="circle":const d=20;this.shapes.at(-1).circleRadius=this.isDrawingNewShape?this.copy(t-r)+d:i+d;break;case this.activeShape==="line":this.shapes.at(-1).path+=` ${this.pointerPosition.x} ${this.pointerPosition.y} `;break;case["rect","group"].includes(this.activeShape):const c=20;this.shapes.at(-1).rectWidth=this.copy(this.currentPointer.end.x-this.shapes.at(-1).x)>0?this.copy(this.currentPointer.end.x-this.shapes.at(-1).x):c,this.shapes.at(-1).rectHeight=this.copy(this.currentPointer.end.y-this.shapes.at(-1).y)>0?this.copy(this.currentPointer.end.y-this.shapes.at(-1).y):c}})},drawDown(){if(this.isDrawing=!0,!this.activeShape&&!this.isSelectMode||!this.isDrawing)return;this.isDrawingNewShape=!0,this.currentPointer.start={x:this.pointerPosition.x,y:this.pointerPosition.y};let e=`${this.isSelectMode?"group":this.activeShape}_${Math.random()*1e4}_${Date.now()}`;switch(!0){case this.activeShape==="arrow":this.shapes.push({id:e,x:this.pointerPosition.x,y:this.pointerPosition.y,endX:this.pointerPosition.x,endY:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="circle":this.shapes.push({alpha:this.options.circle.filled?this.colorTransparency:"",id:e,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.circle.filled),circleRadius:this.copy(this.options.circle.radius),circleStrokeWidth:this.copy(this.options.circle.strokeWidth),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="line":this.shapes.push({alpha:this.copy(this.colorTransparency),id:e,x:this.pointerPosition.x,y:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash),path:`${this.pointerPosition.x} ${this.pointerPosition.y}`}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="rect":this.shapes.push({alpha:this.options.rect.filled?this.colorTransparency:"",id:e,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.rect.filled),rectStrokeWidth:this.copy(this.options.rect.strokeWidth),rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="group":this.shapes.push({alpha:1,id:`group_${Math.random()*1e4}_${Date.now()}`,x:this.pointerPosition.x,y:this.pointerPosition.y,isFilled:!1,rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),rectStrokeWidth:1,type:"group",color:"grey",strokeWidth:1,isDash:!0,content:""});break}if((this.pointerDownId!==-1||!this.isDrawing)&&(clearInterval(this.pointerDownId),this.pointerDownId=-1),this.pointerDownId===-1&&this.isDrawing){this.pointerDownId=setInterval(this.drawUp,1);return}},move(e){if(!(!e||!e.id||e.type==="line"))switch(this.lastSelectedShape=e,!0){case e.type==="arrow":e.x=this.copy(this.pointerPosition.x),e.y=this.copy(this.pointerPosition.y);break;case e.type==="circle":e.x=this.copy(this.pointerPosition.x),e.y=this.copy(this.pointerPosition.y);break;case e.type==="group":this.moveGroup(e);break;case e.type==="rect":e.x=this.copy(this.pointerPosition.x-e.rectWidth/2),e.y=this.copy(this.pointerPosition.y-e.rectHeight/2);break;case e.type==="text":const l=Array.from(document.getElementsByTagName("text")).find(r=>r.id===e.id);if(!l)return;const{x:s,y:n,width:i,height:t}=l.getBBox();e.textAlign==="start"&&(e.x=this.copy(this.pointerPosition.x-i/2)),e.textAlign==="middle"&&(e.x=this.copy(this.pointerPosition.x)),e.textAlign==="end"&&(e.x=this.copy(this.pointerPosition.x+i/2)),e.lines>1?e.y=this.copy(this.pointerPosition.y-t/3):e.y=this.copy(this.pointerPosition.y+e.fontSize/2);break}},moveDown(){if(!this.currentTarget||!this.currentTarget.id)return;const e=this.currentTarget.id,l=this.shapes.find(s=>s.id===e);this.shapes=this.shapes.filter(s=>s.id!==e),this.shapes.push(l),this.pointerDownId===-1&&e&&this.move(l)},print(){this.isPrinting=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.isSelectMode=!1,this.activeShape=void 0,this.showCaret=!1,this.$nextTick(()=>{const e=this.$refs.drawSvgContainer,l={height:851.89,width:595.28};this.walkTheDOM(e,s=>{s&&s.nodeType===1&&(s.setAttribute("font-family","Helvetica"),s.style.fontFamily="Helvetica",s.replaceWith(s))}),I.default(e).then(s=>{const n=s.width,i=s.height,t=n/l.width*l.height;let r=i,d=0;const c=l.width,y=582.28/n*i,N=s.toDataURL("image/png",1),h=new b.E("","pt","a4");if(r<t)h.addImage(N,"PNG",0,0,c,y,"","FAST");else for(;r>0;)h.addImage(N,"PNG",0,d,c,y,"","FAST"),r-=t,d-=l.height-24,r>0&&h.addPage();h.save(`${new Date().toLocaleDateString()}_annotations.pdf`)}).finally(()=>{this.isPrinting=!1,this.walkTheDOM(e,s=>{s&&s.nodeType===1&&(s.setAttribute("font-family",this.FINAL_CONFIG.style.fontFamily),s.style.fontFamily=this.FINAL_CONFIG.style.fontFamily,s.replaceWith(s))})})})},resetDraw(){this.isDrawing=!1,this.isMouseDown=!1,this.pointerDownId=-1,this.isSelectMode&&this.groupShapes(),clearInterval(this.pointerDownId)},resize(){this.isDrawingNewShape=!1;const e=this.currentTarget.id;if(!e)return;this.isDrawing=!0;const l=this.shapes.find(s=>s.id===e);this.activeShape=l.type,this.shapes=this.shapes.filter(s=>s.id!==e),this.shapes.push(l),this.drawUp(!0)},setFillOfSelectedRect(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("rect")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setFillOfSelectedCircle(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("circle")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setColorOfSelectedShape(){this.lastSelectedShape&&(this.lastSelectedShape.color=this.copy(this.selectedColor),!["arrow","text"].includes(this.lastSelectedShape.id)&&(this.lastSelectedShape.alpha=this.copy(this.colorTransparency)))},setSelectedShapeToDash(){!this.lastSelectedShape||this.lastSelectedShape.type==="text"||(this.lastSelectedShape.isDash=this.copy(this.isDash))},setTransparencyOfSelectedShape(){!this.lastSelectedShape||["arrow","text"].includes(this.lastSelectedShape.id)||(this.lastSelectedShape.alpha=this.copy(this.colorTransparency))},setStrokeWidthOfSelectedShape(){!this.lastSelectedShape||!["arrow","circle","rect","line"].includes(this.lastSelectedShape.type)||(this.lastSelectedShape.strokeWidth=this.copy(Math.abs(this.strokeSize)))},setCurrentStyleOfSelectedText(){!this.lastSelectedShape||this.lastSelectedShape.type!=="text"||(this.lastSelectedShape.isBold=this.copy(this.isBold),this.lastSelectedShape.isItalic=this.copy(this.isItalic),this.lastSelectedShape.isUnderline=this.copy(this.isUnderline),this.lastSelectedShape.fontSize=this.copy(this.textFont),this.lastSelectedShape.isBulletTextMode=this.copy(this.isBulletTextMode))},setPointer(e){e.preventDefault();const s=this.$refs.mainSvg.getBoundingClientRect();let n,i;e.touches&&e.touches.length>0?(n=e.touches[0].clientX,i=e.touches[0].clientY):(n=e.clientX,i=e.clientY),this.pointerPosition.x=(n-s.left)/s.width*this.svgWidth,this.pointerPosition.y=(i-s.top)/s.height*this.svgHeight},setShapeTo(e){if(this.showCaret=!1,this.deleteEmptyTextElement(),e===this.activeShape){this.activeShape=void 0,this.isDrawMode=!1;return}this.isDrawMode=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.activeShape=e},toggleSummary(){this.isSummaryOpen=!this.isSummaryOpen,this.isSummaryOpen||(this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.activeShape=void 0,this.showCaret=!1,this.isDeleteMode=!1,this.isWriting=!1),this.$emit("toggleOpenState",{isOpen:this.isSummaryOpen})},walkTheDOM(e,l){for(l(e),e=e.firstChild;e;)this.walkTheDOM(e,l),e=e.nextSibling},save(){this.$emit("saveAnnotations",{shapes:this.shapes,lastSelectedShape:this.lastSelectedShape})}}},a=e=>(o.pushScopeId("data-v-3611298e"),e=e(),o.popScopeId(),e),S={class:"vue-ui-annotator"},x={"data-html2canvas-ignore":""},f={class:"tool-selection",style:{"margin-top":"24px"}},k=["disabled"],g=o.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M18 9l3 3l-3 3" data-v-3611298e></path><path d="M15 12h6" data-v-3611298e></path><path d="M6 9l-3 3l3 3" data-v-3611298e></path><path d="M3 12h6" data-v-3611298e></path><path d="M9 18l3 3l3 -3" data-v-3611298e></path><path d="M12 15v6" data-v-3611298e></path><path d="M15 6l-3 -3l-3 3" data-v-3611298e></path><path d="M12 3v6" data-v-3611298e></path></svg>',1),m=["disabled"],p=a(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1"}),o.createElementVNode("path",{d:"M4 12h7a1 1 0 0 1 1 1v7"})],-1)),_=["disabled"],v=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 7l16 0" data-v-3611298e></path><path d="M10 11l0 6" data-v-3611298e></path><path d="M14 11l0 6" data-v-3611298e></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-3611298e></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-3611298e></path></svg>',1),w=["disabled"],A={style:{width:"80%"},viewBox:"0 0 24 24"},M=a(()=>o.createElementVNode("path",{fill:"currentColor",d:"M1,1V5H2V19H1V23H5V22H19V23H23V19H22V5H23V1H19V2H5V1M5,4H19V5H20V19H19V20H5V19H4V5H5M6,6V14H9V18H18V9H14V6M8,8H12V12H8M14,11H16V16H11V14H14"},null,-1)),O=[M],L=["disabled"],G={style:{width:"80%"},viewBox:"0 0 24 24"},z=a(()=>o.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V6H9V4H4V9H6V11H2V2M22,13V22H13V18H15V20H20V15H18V13H22M8,8H16V16H8V8Z"},null,-1)),B=[z],T=["disabled"],D={style:{width:"80%"},viewBox:"0 0 24 24"},V=a(()=>o.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z"},null,-1)),E=[V],R=["disabled"],H=a(()=>o.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M7 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"}),o.createElementVNode("path",{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"})],-1)),W=["disabled"],P=a(()=>o.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M9 14l-4 -4l4 -4"}),o.createElementVNode("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})],-1)),X=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2" data-v-3611298e></path><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4" data-v-3611298e></path><path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z" data-v-3611298e></path></svg>',1),U=o.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" data-v-3611298e></path><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" data-v-3611298e></path><path d="M14 4l0 4l-6 0l0 -4" data-v-3611298e></path></svg>',1),Y={class:"tool-selection",style:{"margin-top":"6px"}},j={viewBox:"0 0 12 12",style:{width:"100%"}},q=["fill"],Z={key:0,class:"tool-input"},J={for:"circleFill"},K=["checked"],Q={viewBox:"0 0 12 12",style:{width:"100%"}},$=["fill"],ee={key:1,class:"tool-input"},te={for:"rectFill"},oe=["checked"],ie={viewBox:"0 0 24 24",style:{width:"100%"}},le=["stroke"],se=a(()=>o.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M3 15c2 3 4 4 7 4s7 -3 7 -7s-3 -7 -6 -7s-5 1.5 -5 4s2 5 6 5s8.408 -2.453 10 -5"})],-1)),re={key:2},ne={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},de={for:"textFont",style:{"font-size":"0.7em"}},ce={key:3},ae={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},he={for:"dashStyle",style:{"font-size":"0.7em"}},ue={viewBox:"0 0 24 24",height:"24",width:"24",style:{"margin-bottom":"-5px","margin-top":"-10px"}},ye=a(()=>o.createElementVNode("line",{x1:"0",x2:"24",y1:"12",y2:"12","stroke-width":"2",stroke:"black","stroke-dasharray":"3"},null,-1)),Ne=[ye],Ie=["checked"],be={style:{width:"80%"},viewBox:"0 0 24 24",fill:"currentColor"},Fe=a(()=>o.createElementVNode("path",{d:"M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z"},null,-1)),Ce=[Fe],Se={key:4},xe={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},fe={for:"textFont",style:{"font-size":"0.7em"}},ke={key:5},ge=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M4 12l10 0" data-v-3611298e></path><path d="M4 18l14 0" data-v-3611298e></path></svg>',1),me={key:6},pe=["disabled"],_e=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M8 12l8 0" data-v-3611298e></path><path d="M6 18l12 0" data-v-3611298e></path></svg>',1),ve={key:7},we=["disabled"],Ae=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M4 6l16 0" data-v-3611298e></path><path d="M10 12l10 0" data-v-3611298e></path><path d="M6 18l14 0" data-v-3611298e></path></svg>',1),Me={key:8},Oe=o.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M9 6l11 0" data-v-3611298e></path><path d="M9 12l11 0" data-v-3611298e></path><path d="M9 18l11 0" data-v-3611298e></path><path d="M5 6l0 .01" data-v-3611298e></path><path d="M5 12l0 .01" data-v-3611298e></path><path d="M5 18l0 .01" data-v-3611298e></path></svg>',1),Le={key:9},Ge=a(()=>o.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"3",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),o.createElementVNode("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})],-1)),ze={key:10},Be=o.createStaticVNode('<svg width="100%" height="44" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-3611298e><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3611298e></path><path d="M11 5l6 0" data-v-3611298e></path><path d="M7 19l6 0" data-v-3611298e></path><path d="M14 5l-4 14" data-v-3611298e></path></svg>',1),Te={key:11},De=a(()=>o.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),o.createElementVNode("path",{d:"M5 19h14"})],-1)),Ve={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"},class:"tooltip"},Ee={style:{display:"flex","flex-direction":"column","align-items":"start","justify-content":"center"}},Re={for:"colorTransparency",style:{"font-size":"0.7em"}},He={class:"annotator annotator__wrapper",ref:"drawSvgContainer",style:{position:"relative"}},We=["viewBox","width","height"],Pe=["id","innerHTML"],Xe=["height","viewBox","width"],Ue=["cx","cy"];function Ye(e,l,s,n,i,t){return o.openBlock(),o.createElementBlock("div",S,[o.createElementVNode("div",x,[o.createElementVNode("details",{class:"vue-ui-annotator-summary",onToggle:l[36]||(l[36]=(...r)=>t.toggleSummary&&t.toggleSummary(...r)),style:o.normalizeStyle(`${i.isSummaryOpen?"padding-bottom: 12px":""}; background: ${t.FINAL_CONFIG.style.backgroundColor}; color:${t.FINAL_CONFIG.style.color}; ${t.FINAL_CONFIG.style.fixedTools&&i.isSummaryOpen?"position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;":""}`)},[o.createElementVNode("summary",null,o.toDisplayString(t.FINAL_CONFIG.translations.title),1),o.createElementVNode("div",f,[o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:i.isMoveMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isMoveMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isMoveMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isMoveMode,tooltip:!0}),onClick:l[0]||(l[0]=r=>{t.deleteEmptyTextElement(),i.isMoveMode=!i.isMoveMode,i.activeShape=void 0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isResizeMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1})},[g,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipMove),5)):o.createCommentVNode("",!0)],14,k),o.createElementVNode("button",{disabled:i.shapes.length===0||i.activeShape==="line",style:o.normalizeStyle({background:i.isResizeMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isResizeMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isResizeMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isResizeMode,tooltip:!0}),onClick:l[1]||(l[1]=r=>{t.deleteEmptyTextElement(),i.isResizeMode=!i.isResizeMode,i.isMoveMode=!1,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape=void 0,i.showCaret=!1})},[p,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipResize),5)):o.createCommentVNode("",!0)],14,m),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:i.isDeleteMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isDeleteMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isDeleteMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isDeleteMode,tooltip:!0}),onClick:l[2]||(l[2]=r=>{t.deleteEmptyTextElement(),i.isDeleteMode=!i.isDeleteMode,i.isMoveMode=!1,i.isResizeMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape=void 0,i.showCaret=!1})},[v,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipDelete),5)):o.createCommentVNode("",!0)],14,_),o.createElementVNode("button",{disabled:!t.canSelect,style:o.normalizeStyle({background:i.isSelectMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isSelectMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isSelectMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isSelectMode,tooltip:!0}),onClick:l[3]||(l[3]=r=>{t.deleteEmptyTextElement(),t.setShapeTo("group"),i.isSelectMode=!i.isSelectMode,i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape="group",i.showCaret=!1})},[(o.openBlock(),o.createElementBlock("svg",A,O)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipGroup),5)):o.createCommentVNode("",!0)],14,w),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[4]||(l[4]=r=>{i.isResizeMode=!1,i.isMoveMode=!0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1,t.bringShapeTo("front")})},[(o.openBlock(),o.createElementBlock("svg",G,B)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipBringToFront),5)):o.createCommentVNode("",!0)],12,L),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[5]||(l[5]=r=>{i.isResizeMode=!1,i.isMoveMode=!0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1,t.bringShapeTo("back")})},[(o.openBlock(),o.createElementBlock("svg",D,E)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipBringToBack),5)):o.createCommentVNode("",!0)],12,T),o.createElementVNode("button",{disabled:i.shapes.length===0||i.activeShape==="line",style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[6]||(l[6]=r=>{t.deleteEmptyTextElement(),i.isResizeMode=!1,i.isMoveMode=!0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1,t.copyPaste()})},[H,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipDuplicate),5)):o.createCommentVNode("",!0)],12,R),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--one-shot":!0,tooltip:!0}),onClick:l[7]||(l[7]=r=>{i.isResizeMode=!1,i.isMoveMode=!1,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape=void 0,i.showCaret=!1,t.undoLastShape()})},[P,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipUndo),5)):o.createCommentVNode("",!0)],12,W),t.FINAL_CONFIG.style.showPrint?(o.openBlock(),o.createElementBlock("button",{key:0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[8]||(l[8]=(...r)=>t.print&&t.print(...r))},[X,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipPdf),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),t.FINAL_CONFIG.style.showSave?(o.openBlock(),o.createElementBlock("button",{key:1,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[9]||(l[9]=(...r)=>t.save&&t.save(...r))},[U,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipSave),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Y,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="circle",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="circle"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="circle"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="circle"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[10]||(l[10]=r=>{t.setShapeTo("circle"),i.isSelectMode=!1})},[(o.openBlock(),o.createElementBlock("svg",j,[o.createElementVNode("circle",{cx:6,cy:6,r:"4",fill:i.options.circle.filled?(i.activeShape==="circle",i.selectedColor+t.colorTransparency):"none",stroke:"currentColor"},null,8,q)])),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeCircle),5)):o.createCommentVNode("",!0)],6),i.activeShape==="circle"?(o.openBlock(),o.createElementBlock("div",Z,[o.createElementVNode("label",J,o.toDisplayString(t.FINAL_CONFIG.translations.filled),1),o.withDirectives(o.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":l[11]||(l[11]=r=>i.options.circle.filled=r),onChange:l[12]||(l[12]=(...r)=>t.setFillOfSelectedCircle&&t.setFillOfSelectedCircle(...r)),checked:i.options.circle.filled},null,40,K),[[o.vModelCheckbox,i.options.circle.filled]])])):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="rect",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="rect"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="rect"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="rect"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[13]||(l[13]=r=>{t.setShapeTo("rect"),i.isSelectMode=!1})},[(o.openBlock(),o.createElementBlock("svg",Q,[o.createElementVNode("rect",{x:"3",y:"3",style:{rx:"0 !important",ry:"0 !important"},height:"6",width:"6",fill:i.options.rect.filled?(i.activeShape==="rect",i.selectedColor+t.colorTransparency):"none",stroke:"currentColor"},null,8,$)])),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeRect),5)):o.createCommentVNode("",!0)],6),i.activeShape==="rect"?(o.openBlock(),o.createElementBlock("div",ee,[o.createElementVNode("label",te,o.toDisplayString(t.FINAL_CONFIG.translations.filled),1),o.withDirectives(o.createElementVNode("input",{id:"rectFill",type:"checkbox","onUpdate:modelValue":l[14]||(l[14]=r=>i.options.rect.filled=r),onChange:l[15]||(l[15]=(...r)=>t.setFillOfSelectedRect&&t.setFillOfSelectedRect(...r)),checked:i.options.rect.filled},null,40,oe),[[o.vModelCheckbox,i.options.rect.filled]])])):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="arrow",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="arrow"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="arrow"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="arrow"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[16]||(l[16]=r=>{t.setShapeTo("arrow"),i.isSelectMode=!1})},[(o.openBlock(),o.createElementBlock("svg",ie,[o.createElementVNode("path",{stroke:i.options.arrow.filled?i.activeShape==="arrow"?"white":"grey":"none","stroke-width":"2",d:"M5,19 19,5 14,5 19,10.5 19,5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le)])),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeArrow),5)):o.createCommentVNode("",!0)],6),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="line",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="line"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="line"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="line"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[17]||(l[17]=r=>{t.setShapeTo("line"),i.isSelectMode=!1})},[se,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeFreehand),5)):o.createCommentVNode("",!0)],6),["arrow","circle","rect","line"].includes(i.activeShape)?(o.openBlock(),o.createElementBlock("div",re,[o.createElementVNode("div",ne,[o.createElementVNode("label",de,o.toDisplayString(t.FINAL_CONFIG.translations.thickness),1),o.withDirectives(o.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":l[18]||(l[18]=r=>i.strokeSize=r),onInput:l[19]||(l[19]=(...r)=>t.setStrokeWidthOfSelectedShape&&t.setStrokeWidthOfSelectedShape(...r)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[o.vModelText,i.strokeSize]])])])):o.createCommentVNode("",!0),["arrow","circle","rect"].includes(i.activeShape)?(o.openBlock(),o.createElementBlock("div",ce,[o.createElementVNode("div",ae,[o.createElementVNode("label",he,o.toDisplayString(t.FINAL_CONFIG.translations.dashedLines),1),(o.openBlock(),o.createElementBlock("svg",ue,Ne)),o.withDirectives(o.createElementVNode("input",{id:"dashStyle",name:"dashStyle",type:"checkbox","onUpdate:modelValue":l[20]||(l[20]=r=>i.isDash=r),onChange:l[21]||(l[21]=(...r)=>t.setSelectedShapeToDash&&t.setSelectedShapeToDash(...r)),checked:i.isDash},null,40,Ie),[[o.vModelCheckbox,i.isDash]])])])):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isTextMode,tooltip:!0}),style:o.normalizeStyle({background:i.isTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[22]||(l[22]=r=>{t.deleteEmptyTextElement(),i.isTextMode=!i.isTextMode,i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isSelectMode=!1,i.isDrawMode=!1,i.activeShape=void 0})},[(o.openBlock(),o.createElementBlock("svg",be,Ce)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeText),5)):o.createCommentVNode("",!0)],6),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Se,[o.createElementVNode("div",xe,[o.createElementVNode("label",fe,o.toDisplayString(t.FINAL_CONFIG.translations.fontSize),1),o.withDirectives(o.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":l[23]||(l[23]=r=>i.textFont=r),onInput:l[24]||(l[24]=(...r)=>t.setCurrentStyleOfSelectedText&&t.setCurrentStyleOfSelectedText(...r)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[o.vModelText,i.textFont]])])])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",ke,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.textAlign==="start",tooltip:!0}),style:o.normalizeStyle({background:i.textAlign==="start"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.textAlign==="start"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.textAlign==="start"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[25]||(l[25]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.textAlign="start",t.setSelectedTextAlignTo("start")})},[ge,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextLeft),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",me,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.textAlign==="middle",tooltip:!0}),style:o.normalizeStyle({background:i.textAlign==="middle"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.textAlign==="middle"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.textAlign==="middle"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:i.isBulletTextMode,onClick:l[26]||(l[26]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.textAlign="middle",t.setSelectedTextAlignTo("middle")})},[_e,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextCenter),5)):o.createCommentVNode("",!0)],14,pe)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",ve,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.textAlign==="end",tooltip:!0}),style:o.normalizeStyle({background:i.textAlign==="end"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.textAlign==="end"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.textAlign==="end"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:i.isBulletTextMode,onClick:l[27]||(l[27]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.textAlign="end",t.setSelectedTextAlignTo("end")})},[Ae,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextRight),5)):o.createCommentVNode("",!0)],14,we)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Me,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isBulletTextMode,tooltip:!0}),style:o.normalizeStyle({background:i.isBulletTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isBulletTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isBulletTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[28]||(l[28]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isBulletTextMode=!i.isBulletTextMode,i.textAlign="start",t.setSelectedTextAlignTo("start"),t.setCurrentStyleOfSelectedText()})},[Oe,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextBullet),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Le,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isBold,tooltip:!0}),style:o.normalizeStyle({background:i.isBold?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isBold?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isBold?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[29]||(l[29]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isBold=!i.isBold,t.setCurrentStyleOfSelectedText()})},[Ge,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextBold),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",ze,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isItalic,tooltip:!0}),style:o.normalizeStyle({background:i.isItalic?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isItalic?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isItalic?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[30]||(l[30]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isItalic=!i.isItalic,t.setCurrentStyleOfSelectedText()})},[Be,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextItalic),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Te,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isUnderline,tooltip:!0}),style:o.normalizeStyle({background:i.isUnderline?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isUnderline?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isUnderline?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[31]||(l[31]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isUnderline=!i.isUnderline,t.setCurrentStyleOfSelectedText()})},[De,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextUnderline),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),o.createElementVNode("div",Ve,[o.withDirectives(o.createElementVNode("input",{type:"color",id:"colorPicker",name:"colorPicker","onUpdate:modelValue":l[32]||(l[32]=r=>i.selectedColor=r),onInput:l[33]||(l[33]=(...r)=>t.setColorOfSelectedShape&&t.setColorOfSelectedShape(...r)),style:o.normalizeStyle(`height: 30px; width: 30px; border-radius: ${t.FINAL_CONFIG.style.buttons.borderRadius}px; cursor: pointer`)},null,36),[[o.vModelText,i.selectedColor]]),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeColor),5)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ee,[o.createElementVNode("label",Re,o.toDisplayString(t.FINAL_CONFIG.translations.colorAlpha)+": "+o.toDisplayString(i.transparency>98?100:i.transparency)+" % ",1),o.withDirectives(o.createElementVNode("input",{id:"colorTransparency",name:"colorTransparency",type:"range","onUpdate:modelValue":l[34]||(l[34]=r=>i.transparency=r),onInput:l[35]||(l[35]=(...r)=>t.setTransparencyOfSelectedShape&&t.setTransparencyOfSelectedShape(...r)),min:0,max:100,style:{width:"100px"}},null,544),[[o.vModelText,i.transparency]])])])],36)]),o.createElementVNode("div",He,[o.renderSlot(e.$slots,"default",{},void 0,!0),i.isSummaryOpen?(o.openBlock(),o.createElementBlock("svg",{id:"annotatorSvg",key:i.step,ref:"mainSvg",class:o.normalizeClass({draw:!0,"draw--free":i.activeShape==="line"}),style:o.normalizeStyle([`cursor:${t.cursorClass}; font-family: Helvetica; z-index: 100000000;`,{position:"absolute",top:"0",left:"0"}]),viewBox:`0 0 ${i.svgWidth} ${i.svgHeight}`,width:i.sourceWidth,height:i.sourceHeight,onPointerdown:l[38]||(l[38]=r=>t.chooseAction(r)),onPointerup:l[39]||(l[39]=(...r)=>t.resetDraw&&t.resetDraw(...r)),onTouchend:l[40]||(l[40]=(...r)=>t.resetDraw&&t.resetDraw(...r)),onTouchstart:l[41]||(l[41]=r=>{t.setPointer(r),t.clickSvg(r)}),onPointermove:l[42]||(l[42]=r=>{t.setPointer(r),t.chooseMove(r)}),onPointerout:l[43]||(l[43]=r=>{i.preventEdit=!0,i.hoveredShapeId=void 0}),onPointerover:l[44]||(l[44]=r=>t.allowEditAndHoverShapes(r)),onClick:l[45]||(l[45]=r=>t.clickSvg(r))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.userShapes,(r,d)=>(o.openBlock(),o.createElementBlock("g",{key:`shape_${d}`,id:r.id,innerHTML:r,onClick:l[37]||(l[37]=c=>{t.clickShape(c),i.isMoveMode=!1})},null,8,Pe))),128))],46,We)):o.createCommentVNode("",!0),i.isPrinting?(o.openBlock(),o.createElementBlock("svg",{key:1,style:{position:"absolute",top:"0",left:"0"},height:i.sourceHeight,viewBox:`0 0 ${i.svgWidth} ${i.svgHeight}`,width:i.sourceWidth},[o.createElementVNode("circle",{class:"animated-circle-print",cx:i.svgWidth/2,cy:i.svgHeight/2,r:"50",stroke:"#6376DD","stroke-width":"10",fill:"none"},null,8,Ue)],8,Xe)):o.createCommentVNode("",!0)],512)])}const je=F._export_sfc(C,[["render",Ye],["__scopeId","data-v-3611298e"]]);exports.default=je;
|
|
371
|
+
`;default:return""}},copy(e){return JSON.parse(JSON.stringify(e))},clickShape(e){const l=e.target.id;switch(!0){case this.isDeleteMode:this.shapes=[...this.shapes].filter(s=>s.id!==l),this.lastSelectedShape=void 0;break;default:this.lastSelectedShape=this.shapes.find(s=>s.id===l);break}},deleteEmptyTextElement(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("text")||this.lastSelectedShape.textContent===""&&(this.shapes=this.shapes.filter(e=>e.id!==this.lastSelectedShape.id),this.lastSelectedShape=this.shapes.at(-1))},drawUp(e=!1){if(!this.activeShape||!this.isDrawing)return;this.currentPointer.end={x:this.pointerPosition.x,y:this.pointerPosition.y};let l;this.shapes.length>0&&this.currentTarget&&(l=[...this.shapes].find(d=>d.id===this.currentTarget.id));let s,n,i;l&&(s=l.x-this.currentPointer.end.x,n=l.y-this.currentPointer.end.y,i=Math.sqrt(s*s+n*n));let t,r;e?(t=Math.max(this.currentPointer.end.x,l.x),r=Math.min(this.currentPointer.end.x,l.x),Math.max(this.currentPointer.end.y,l.y),Math.min(this.currentPointer.end.y,l.y)):(t=Math.max(this.currentPointer.end.x,this.currentPointer.start.x),r=Math.min(this.currentPointer.end.x,this.currentPointer.start.x),Math.max(this.currentPointer.end.y,this.currentPointer.start.y),Math.min(this.currentPointer.end.y,this.currentPointer.start.y)),this.$nextTick(()=>{switch(!0){case this.activeShape==="arrow":this.shapes.at(-1).endX=this.currentPointer.end.x,this.shapes.at(-1).endY=this.currentPointer.end.y;break;case this.activeShape==="circle":const d=20;this.shapes.at(-1).circleRadius=this.isDrawingNewShape?this.copy(t-r)+d:i+d;break;case this.activeShape==="line":this.shapes.at(-1).path+=` ${this.pointerPosition.x} ${this.pointerPosition.y} `;break;case["rect","group"].includes(this.activeShape):const c=20;this.shapes.at(-1).rectWidth=this.copy(this.currentPointer.end.x-this.shapes.at(-1).x)>0?this.copy(this.currentPointer.end.x-this.shapes.at(-1).x):c,this.shapes.at(-1).rectHeight=this.copy(this.currentPointer.end.y-this.shapes.at(-1).y)>0?this.copy(this.currentPointer.end.y-this.shapes.at(-1).y):c}})},drawDown(){if(this.isDrawing=!0,!this.activeShape&&!this.isSelectMode||!this.isDrawing)return;this.isDrawingNewShape=!0,this.currentPointer.start={x:this.pointerPosition.x,y:this.pointerPosition.y};let e=`${this.isSelectMode?"group":this.activeShape}_${Math.random()*1e4}_${Date.now()}`;switch(!0){case this.activeShape==="arrow":this.shapes.push({id:e,x:this.pointerPosition.x,y:this.pointerPosition.y,endX:this.pointerPosition.x,endY:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="circle":this.shapes.push({alpha:this.options.circle.filled?this.colorTransparency:"",id:e,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.circle.filled),circleRadius:this.copy(this.options.circle.radius),circleStrokeWidth:this.copy(this.options.circle.strokeWidth),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="line":this.shapes.push({alpha:this.copy(this.colorTransparency),id:e,x:this.pointerPosition.x,y:this.pointerPosition.y,type:this.activeShape,color:this.copy(this.selectedColor),strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash),path:`${this.pointerPosition.x} ${this.pointerPosition.y}`}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="rect":this.shapes.push({alpha:this.options.rect.filled?this.colorTransparency:"",id:e,color:this.copy(this.selectedColor),isFilled:this.copy(this.options.rect.filled),rectStrokeWidth:this.copy(this.options.rect.strokeWidth),rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),type:this.activeShape,x:this.pointerPosition.x,y:this.pointerPosition.y,strokeWidth:this.copy(Math.abs(this.strokeSize)),isDash:this.copy(this.isDash)}),this.lastSelectedShape=this.shapes.at(-1);break;case this.activeShape==="group":this.shapes.push({alpha:1,id:`group_${Math.random()*1e4}_${Date.now()}`,x:this.pointerPosition.x,y:this.pointerPosition.y,isFilled:!1,rectHeight:this.copy(this.options.rect.height),rectWidth:this.copy(this.options.rect.width),rectStrokeWidth:1,type:"group",color:"grey",strokeWidth:1,isDash:!0,content:""});break}if((this.pointerDownId!==-1||!this.isDrawing)&&(clearInterval(this.pointerDownId),this.pointerDownId=-1),this.pointerDownId===-1&&this.isDrawing){this.pointerDownId=setInterval(this.drawUp,1);return}},move(e){if(!(!e||!e.id||e.type==="line"))switch(this.lastSelectedShape=e,!0){case e.type==="arrow":e.x=this.copy(this.pointerPosition.x),e.y=this.copy(this.pointerPosition.y);break;case e.type==="circle":e.x=this.copy(this.pointerPosition.x),e.y=this.copy(this.pointerPosition.y);break;case e.type==="group":this.moveGroup(e);break;case e.type==="rect":e.x=this.copy(this.pointerPosition.x-e.rectWidth/2),e.y=this.copy(this.pointerPosition.y-e.rectHeight/2);break;case e.type==="text":const l=Array.from(document.getElementsByTagName("text")).find(r=>r.id===e.id);if(!l)return;const{x:s,y:n,width:i,height:t}=l.getBBox();e.textAlign==="start"&&(e.x=this.copy(this.pointerPosition.x-i/2)),e.textAlign==="middle"&&(e.x=this.copy(this.pointerPosition.x)),e.textAlign==="end"&&(e.x=this.copy(this.pointerPosition.x+i/2)),e.lines>1?e.y=this.copy(this.pointerPosition.y-t/3):e.y=this.copy(this.pointerPosition.y+e.fontSize/2);break}},moveDown(){if(!this.currentTarget||!this.currentTarget.id)return;const e=this.currentTarget.id,l=this.shapes.find(s=>s.id===e);this.shapes=this.shapes.filter(s=>s.id!==e),this.shapes.push(l),this.pointerDownId===-1&&e&&this.move(l)},print(){this.isPrinting=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.isSelectMode=!1,this.activeShape=void 0,this.showCaret=!1,this.$nextTick(()=>{const e=this.$refs.drawSvgContainer,l={height:851.89,width:595.28};this.walkTheDOM(e,s=>{s&&s.nodeType===1&&(s.setAttribute("font-family","Helvetica"),s.style.fontFamily="Helvetica",s.replaceWith(s))}),b.default(e).then(s=>{const n=s.width,i=s.height,t=n/l.width*l.height;let r=i,d=0;const c=l.width,y=582.28/n*i,N=s.toDataURL("image/png",1),h=new I.E("","pt","a4");if(r<t)h.addImage(N,"PNG",0,0,c,y,"","FAST");else for(;r>0;)h.addImage(N,"PNG",0,d,c,y,"","FAST"),r-=t,d-=l.height-24,r>0&&h.addPage();h.save(`${new Date().toLocaleDateString()}_annotations.pdf`)}).finally(()=>{this.isPrinting=!1,this.walkTheDOM(e,s=>{s&&s.nodeType===1&&(s.setAttribute("font-family",this.FINAL_CONFIG.style.fontFamily),s.style.fontFamily=this.FINAL_CONFIG.style.fontFamily,s.replaceWith(s))})})})},resetDraw(){this.isDrawing=!1,this.isMouseDown=!1,this.pointerDownId=-1,this.isSelectMode&&this.groupShapes(),clearInterval(this.pointerDownId)},resize(){this.isDrawingNewShape=!1;const e=this.currentTarget.id;if(!e)return;this.isDrawing=!0;const l=this.shapes.find(s=>s.id===e);this.activeShape=l.type,this.shapes=this.shapes.filter(s=>s.id!==e),this.shapes.push(l),this.drawUp(!0)},setFillOfSelectedRect(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("rect")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setFillOfSelectedCircle(){!this.lastSelectedShape||!this.lastSelectedShape.id.includes("circle")||(this.lastSelectedShape.isFilled=!this.lastSelectedShape.isFilled)},setColorOfSelectedShape(){this.lastSelectedShape&&(this.lastSelectedShape.color=this.copy(this.selectedColor),!["arrow","text"].includes(this.lastSelectedShape.id)&&(this.lastSelectedShape.alpha=this.copy(this.colorTransparency)))},setSelectedShapeToDash(){!this.lastSelectedShape||this.lastSelectedShape.type==="text"||(this.lastSelectedShape.isDash=this.copy(this.isDash))},setTransparencyOfSelectedShape(){!this.lastSelectedShape||["arrow","text"].includes(this.lastSelectedShape.id)||(this.lastSelectedShape.alpha=this.copy(this.colorTransparency))},setStrokeWidthOfSelectedShape(){!this.lastSelectedShape||!["arrow","circle","rect","line"].includes(this.lastSelectedShape.type)||(this.lastSelectedShape.strokeWidth=this.copy(Math.abs(this.strokeSize)))},setCurrentStyleOfSelectedText(){!this.lastSelectedShape||this.lastSelectedShape.type!=="text"||(this.lastSelectedShape.isBold=this.copy(this.isBold),this.lastSelectedShape.isItalic=this.copy(this.isItalic),this.lastSelectedShape.isUnderline=this.copy(this.isUnderline),this.lastSelectedShape.fontSize=this.copy(this.textFont),this.lastSelectedShape.isBulletTextMode=this.copy(this.isBulletTextMode))},setPointer(e){e.preventDefault();const s=this.$refs.mainSvg.getBoundingClientRect();let n,i;e.touches&&e.touches.length>0?(n=e.touches[0].clientX,i=e.touches[0].clientY):(n=e.clientX,i=e.clientY),this.pointerPosition.x=(n-s.left)/s.width*this.svgWidth,this.pointerPosition.y=(i-s.top)/s.height*this.svgHeight},setShapeTo(e){if(this.showCaret=!1,this.deleteEmptyTextElement(),e===this.activeShape){this.activeShape=void 0,this.isDrawMode=!1;return}this.isDrawMode=!0,this.isDeleteMode=!1,this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.activeShape=e},toggleSummary(){this.isSummaryOpen=!this.isSummaryOpen,this.isSummaryOpen||(this.isMoveMode=!1,this.isResizeMode=!1,this.isTextMode=!1,this.isWriting=!1,this.activeShape=void 0,this.showCaret=!1,this.isDeleteMode=!1,this.isWriting=!1),this.$emit("toggleOpenState",{isOpen:this.isSummaryOpen})},walkTheDOM(e,l){for(l(e),e=e.firstChild;e;)this.walkTheDOM(e,l),e=e.nextSibling},save(){this.$emit("saveAnnotations",{shapes:this.shapes,lastSelectedShape:this.lastSelectedShape})}}},a=e=>(o.pushScopeId("data-v-14ebd65f"),e=e(),o.popScopeId(),e),C={class:"vue-ui-annotator"},S={"data-html2canvas-ignore":""},x={class:"tool-selection",style:{"margin-top":"24px"}},k=["disabled"],g=o.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M18 9l3 3l-3 3" data-v-14ebd65f></path><path d="M15 12h6" data-v-14ebd65f></path><path d="M6 9l-3 3l3 3" data-v-14ebd65f></path><path d="M3 12h6" data-v-14ebd65f></path><path d="M9 18l3 3l3 -3" data-v-14ebd65f></path><path d="M12 15v6" data-v-14ebd65f></path><path d="M15 6l-3 -3l-3 3" data-v-14ebd65f></path><path d="M12 3v6" data-v-14ebd65f></path></svg>',1),m=["disabled"],p=a(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1"}),o.createElementVNode("path",{d:"M4 12h7a1 1 0 0 1 1 1v7"})],-1)),_=["disabled"],v=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M4 7l16 0" data-v-14ebd65f></path><path d="M10 11l0 6" data-v-14ebd65f></path><path d="M14 11l0 6" data-v-14ebd65f></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-14ebd65f></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-14ebd65f></path></svg>',1),w=["disabled"],A={style:{width:"80%"},viewBox:"0 0 24 24"},M=a(()=>o.createElementVNode("path",{fill:"currentColor",d:"M1,1V5H2V19H1V23H5V22H19V23H23V19H22V5H23V1H19V2H5V1M5,4H19V5H20V19H19V20H5V19H4V5H5M6,6V14H9V18H18V9H14V6M8,8H12V12H8M14,11H16V16H11V14H14"},null,-1)),O=[M],L=["disabled"],G={style:{width:"80%"},viewBox:"0 0 24 24"},z=a(()=>o.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V6H9V4H4V9H6V11H2V2M22,13V22H13V18H15V20H20V15H18V13H22M8,8H16V16H8V8Z"},null,-1)),B=[z],T=["disabled"],D={style:{width:"80%"},viewBox:"0 0 24 24"},V=a(()=>o.createElementVNode("path",{fill:"currentColor",d:"M2,2H11V11H2V2M9,4H4V9H9V4M22,13V22H13V13H22M15,20H20V15H15V20M16,8V11H13V8H16M11,16H8V13H11V16Z"},null,-1)),E=[V],R=["disabled"],H=a(()=>o.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M7 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"}),o.createElementVNode("path",{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"})],-1)),W=["disabled"],P=a(()=>o.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M9 14l-4 -4l4 -4"}),o.createElementVNode("path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"})],-1)),X=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2" data-v-14ebd65f></path><path d="M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4" data-v-14ebd65f></path><path d="M7 13m0 2a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2z" data-v-14ebd65f></path></svg>',1),U=o.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2" data-v-14ebd65f></path><path d="M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" data-v-14ebd65f></path><path d="M14 4l0 4l-6 0l0 -4" data-v-14ebd65f></path></svg>',1),Y={class:"tool-selection",style:{"margin-top":"6px"}},j={viewBox:"0 0 12 12",style:{width:"100%"}},q=["fill"],Z={key:0,class:"tool-input"},J={for:"circleFill"},K=["checked"],Q={viewBox:"0 0 12 12",style:{width:"100%"}},$=["fill"],ee={key:1,class:"tool-input"},te={for:"rectFill"},oe=["checked"],ie={viewBox:"0 0 24 24",style:{width:"100%"}},le=["stroke"],se=a(()=>o.createElementVNode("svg",{width:"80%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M3 15c2 3 4 4 7 4s7 -3 7 -7s-3 -7 -6 -7s-5 1.5 -5 4s2 5 6 5s8.408 -2.453 10 -5"})],-1)),re={key:2},ne={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},de={for:"textFont",style:{"font-size":"0.7em"}},ce={key:3},ae={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},he={for:"dashStyle",style:{"font-size":"0.7em"}},ue={viewBox:"0 0 24 24",height:"24",width:"24",style:{"margin-bottom":"-5px","margin-top":"-10px"}},ye=a(()=>o.createElementVNode("line",{x1:"0",x2:"24",y1:"12",y2:"12","stroke-width":"2",stroke:"black","stroke-dasharray":"3"},null,-1)),Ne=[ye],be=["checked"],Ie={style:{width:"80%"},viewBox:"0 0 24 24",fill:"currentColor"},Fe=a(()=>o.createElementVNode("path",{d:"M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z"},null,-1)),fe=[Fe],Ce={key:4},Se={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},xe={for:"textFont",style:{"font-size":"0.7em"}},ke={key:5},ge=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M4 6l16 0" data-v-14ebd65f></path><path d="M4 12l10 0" data-v-14ebd65f></path><path d="M4 18l14 0" data-v-14ebd65f></path></svg>',1),me={key:6},pe=["disabled"],_e=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M4 6l16 0" data-v-14ebd65f></path><path d="M8 12l8 0" data-v-14ebd65f></path><path d="M6 18l12 0" data-v-14ebd65f></path></svg>',1),ve={key:7},we=["disabled"],Ae=o.createStaticVNode('<svg width="80%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M4 6l16 0" data-v-14ebd65f></path><path d="M10 12l10 0" data-v-14ebd65f></path><path d="M6 18l14 0" data-v-14ebd65f></path></svg>',1),Me={key:8},Oe=o.createStaticVNode('<svg width="100%" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M9 6l11 0" data-v-14ebd65f></path><path d="M9 12l11 0" data-v-14ebd65f></path><path d="M9 18l11 0" data-v-14ebd65f></path><path d="M5 6l0 .01" data-v-14ebd65f></path><path d="M5 12l0 .01" data-v-14ebd65f></path><path d="M5 18l0 .01" data-v-14ebd65f></path></svg>',1),Le={key:9},Ge=a(()=>o.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"3",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),o.createElementVNode("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"})],-1)),ze={key:10},Be=o.createStaticVNode('<svg width="100%" height="44" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" data-v-14ebd65f><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-14ebd65f></path><path d="M11 5l6 0" data-v-14ebd65f></path><path d="M7 19l6 0" data-v-14ebd65f></path><path d="M14 5l-4 14" data-v-14ebd65f></path></svg>',1),Te={key:11},De=a(()=>o.createElementVNode("svg",{width:"100%",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[o.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),o.createElementVNode("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),o.createElementVNode("path",{d:"M5 19h14"})],-1)),Ve={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"},class:"tooltip"},Ee={style:{display:"flex","flex-direction":"column","align-items":"start","justify-content":"center"}},Re={for:"colorTransparency",style:{"font-size":"0.7em"}},He={class:"annotator annotator__wrapper",ref:"drawSvgContainer",style:{position:"relative"}},We=["viewBox","width","height"],Pe=["id","innerHTML"],Xe=["height","viewBox","width"],Ue=["cx","cy"];function Ye(e,l,s,n,i,t){return o.openBlock(),o.createElementBlock("div",C,[o.createElementVNode("div",S,[o.createElementVNode("details",{class:"vue-ui-annotator-summary",onToggle:l[36]||(l[36]=(...r)=>t.toggleSummary&&t.toggleSummary(...r)),style:o.normalizeStyle(`${i.isSummaryOpen?"padding-bottom: 12px":""}; background: ${t.FINAL_CONFIG.style.backgroundColor}; color:${t.FINAL_CONFIG.style.color}; ${t.FINAL_CONFIG.style.fixedTools&&i.isSummaryOpen?"position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;":""}`)},[o.createElementVNode("summary",null,o.toDisplayString(t.FINAL_CONFIG.translations.title),1),o.createElementVNode("div",x,[o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:i.isMoveMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isMoveMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isMoveMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isMoveMode,tooltip:!0}),onClick:l[0]||(l[0]=r=>{t.deleteEmptyTextElement(),i.isMoveMode=!i.isMoveMode,i.activeShape=void 0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isResizeMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1})},[g,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipMove),5)):o.createCommentVNode("",!0)],14,k),o.createElementVNode("button",{disabled:i.shapes.length===0||i.activeShape==="line",style:o.normalizeStyle({background:i.isResizeMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isResizeMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isResizeMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isResizeMode,tooltip:!0}),onClick:l[1]||(l[1]=r=>{t.deleteEmptyTextElement(),i.isResizeMode=!i.isResizeMode,i.isMoveMode=!1,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape=void 0,i.showCaret=!1})},[p,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipResize),5)):o.createCommentVNode("",!0)],14,m),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:i.isDeleteMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isDeleteMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isDeleteMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isDeleteMode,tooltip:!0}),onClick:l[2]||(l[2]=r=>{t.deleteEmptyTextElement(),i.isDeleteMode=!i.isDeleteMode,i.isMoveMode=!1,i.isResizeMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape=void 0,i.showCaret=!1})},[v,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipDelete),5)):o.createCommentVNode("",!0)],14,_),o.createElementVNode("button",{disabled:!t.canSelect,style:o.normalizeStyle({background:i.isSelectMode?t.FINAL_CONFIG.style.buttons.controls.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:i.isSelectMode?t.FINAL_CONFIG.style.buttons.controls.selected.border:t.FINAL_CONFIG.style.buttons.controls.border,color:i.isSelectMode?t.FINAL_CONFIG.style.buttons.controls.selected.color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isSelectMode,tooltip:!0}),onClick:l[3]||(l[3]=r=>{t.deleteEmptyTextElement(),t.setShapeTo("group"),i.isSelectMode=!i.isSelectMode,i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape="group",i.showCaret=!1})},[(o.openBlock(),o.createElementBlock("svg",A,O)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipGroup),5)):o.createCommentVNode("",!0)],14,w),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[4]||(l[4]=r=>{i.isResizeMode=!1,i.isMoveMode=!0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1,t.bringShapeTo("front")})},[(o.openBlock(),o.createElementBlock("svg",G,B)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipBringToFront),5)):o.createCommentVNode("",!0)],12,L),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[5]||(l[5]=r=>{i.isResizeMode=!1,i.isMoveMode=!0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1,t.bringShapeTo("back")})},[(o.openBlock(),o.createElementBlock("svg",D,E)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipBringToBack),5)):o.createCommentVNode("",!0)],12,T),o.createElementVNode("button",{disabled:i.shapes.length===0||i.activeShape==="line",style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[6]||(l[6]=r=>{t.deleteEmptyTextElement(),i.isResizeMode=!1,i.isMoveMode=!0,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.showCaret=!1,t.copyPaste()})},[H,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipDuplicate),5)):o.createCommentVNode("",!0)],12,R),o.createElementVNode("button",{disabled:i.shapes.length===0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,"button-tool--one-shot":!0,tooltip:!0}),onClick:l[7]||(l[7]=r=>{i.isResizeMode=!1,i.isMoveMode=!1,i.isDeleteMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.isTextMode=!1,i.isWriting=!1,i.activeShape=void 0,i.showCaret=!1,t.undoLastShape()})},[P,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipUndo),5)):o.createCommentVNode("",!0)],12,W),t.FINAL_CONFIG.style.showPrint?(o.openBlock(),o.createElementBlock("button",{key:0,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[8]||(l[8]=(...r)=>t.print&&t.print(...r))},[X,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipPdf),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),t.FINAL_CONFIG.style.showSave?(o.openBlock(),o.createElementBlock("button",{key:1,style:o.normalizeStyle({background:t.FINAL_CONFIG.style.buttons.controls.backgroundColor,border:t.FINAL_CONFIG.style.buttons.controls.border,color:t.FINAL_CONFIG.style.buttons.controls.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),class:o.normalizeClass({"button-tool":!0,tooltip:!0}),onClick:l[9]||(l[9]=(...r)=>t.save&&t.save(...r))},[U,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipSave),5)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Y,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="circle",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="circle"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="circle"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="circle"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[10]||(l[10]=r=>{t.setShapeTo("circle"),i.isSelectMode=!1})},[(o.openBlock(),o.createElementBlock("svg",j,[o.createElementVNode("circle",{cx:6,cy:6,r:"4",fill:i.options.circle.filled?(i.activeShape==="circle",i.selectedColor+t.colorTransparency):"none",stroke:"currentColor"},null,8,q)])),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeCircle),5)):o.createCommentVNode("",!0)],6),i.activeShape==="circle"?(o.openBlock(),o.createElementBlock("div",Z,[o.createElementVNode("label",J,o.toDisplayString(t.FINAL_CONFIG.translations.filled),1),o.withDirectives(o.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":l[11]||(l[11]=r=>i.options.circle.filled=r),onChange:l[12]||(l[12]=(...r)=>t.setFillOfSelectedCircle&&t.setFillOfSelectedCircle(...r)),checked:i.options.circle.filled},null,40,K),[[o.vModelCheckbox,i.options.circle.filled]])])):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="rect",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="rect"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="rect"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="rect"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[13]||(l[13]=r=>{t.setShapeTo("rect"),i.isSelectMode=!1})},[(o.openBlock(),o.createElementBlock("svg",Q,[o.createElementVNode("rect",{x:"3",y:"3",style:{rx:"0 !important",ry:"0 !important"},height:"6",width:"6",fill:i.options.rect.filled?(i.activeShape==="rect",i.selectedColor+t.colorTransparency):"none",stroke:"currentColor"},null,8,$)])),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeRect),5)):o.createCommentVNode("",!0)],6),i.activeShape==="rect"?(o.openBlock(),o.createElementBlock("div",ee,[o.createElementVNode("label",te,o.toDisplayString(t.FINAL_CONFIG.translations.filled),1),o.withDirectives(o.createElementVNode("input",{id:"rectFill",type:"checkbox","onUpdate:modelValue":l[14]||(l[14]=r=>i.options.rect.filled=r),onChange:l[15]||(l[15]=(...r)=>t.setFillOfSelectedRect&&t.setFillOfSelectedRect(...r)),checked:i.options.rect.filled},null,40,oe),[[o.vModelCheckbox,i.options.rect.filled]])])):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="arrow",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="arrow"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="arrow"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="arrow"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[16]||(l[16]=r=>{t.setShapeTo("arrow"),i.isSelectMode=!1})},[(o.openBlock(),o.createElementBlock("svg",ie,[o.createElementVNode("path",{stroke:i.options.arrow.filled?i.activeShape==="arrow"?"white":"grey":"none","stroke-width":"2",d:"M5,19 19,5 14,5 19,10.5 19,5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le)])),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeArrow),5)):o.createCommentVNode("",!0)],6),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.activeShape==="line",tooltip:!0}),style:o.normalizeStyle({background:i.activeShape==="line"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.activeShape==="line"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.activeShape==="line"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[17]||(l[17]=r=>{t.setShapeTo("line"),i.isSelectMode=!1})},[se,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeFreehand),5)):o.createCommentVNode("",!0)],6),["arrow","circle","rect","line"].includes(i.activeShape)?(o.openBlock(),o.createElementBlock("div",re,[o.createElementVNode("div",ne,[o.createElementVNode("label",de,o.toDisplayString(t.FINAL_CONFIG.translations.thickness),1),o.withDirectives(o.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":l[18]||(l[18]=r=>i.strokeSize=r),onInput:l[19]||(l[19]=(...r)=>t.setStrokeWidthOfSelectedShape&&t.setStrokeWidthOfSelectedShape(...r)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[o.vModelText,i.strokeSize]])])])):o.createCommentVNode("",!0),["arrow","circle","rect"].includes(i.activeShape)?(o.openBlock(),o.createElementBlock("div",ce,[o.createElementVNode("div",ae,[o.createElementVNode("label",he,o.toDisplayString(t.FINAL_CONFIG.translations.dashedLines),1),(o.openBlock(),o.createElementBlock("svg",ue,Ne)),o.withDirectives(o.createElementVNode("input",{id:"dashStyle",name:"dashStyle",type:"checkbox","onUpdate:modelValue":l[20]||(l[20]=r=>i.isDash=r),onChange:l[21]||(l[21]=(...r)=>t.setSelectedShapeToDash&&t.setSelectedShapeToDash(...r)),checked:i.isDash},null,40,be),[[o.vModelCheckbox,i.isDash]])])])):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isTextMode,tooltip:!0}),style:o.normalizeStyle({background:i.isTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[22]||(l[22]=r=>{t.deleteEmptyTextElement(),i.isTextMode=!i.isTextMode,i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isSelectMode=!1,i.isDrawMode=!1,i.activeShape=void 0})},[(o.openBlock(),o.createElementBlock("svg",Ie,fe)),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeText),5)):o.createCommentVNode("",!0)],6),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Ce,[o.createElementVNode("div",Se,[o.createElementVNode("label",xe,o.toDisplayString(t.FINAL_CONFIG.translations.fontSize),1),o.withDirectives(o.createElementVNode("input",{id:"textFont",type:"number","onUpdate:modelValue":l[23]||(l[23]=r=>i.textFont=r),onInput:l[24]||(l[24]=(...r)=>t.setCurrentStyleOfSelectedText&&t.setCurrentStyleOfSelectedText(...r)),style:{padding:"0 4px",width:"40px",border:"1px solid #dadada","border-radius":"3px"}},null,544),[[o.vModelText,i.textFont]])])])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",ke,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.textAlign==="start",tooltip:!0}),style:o.normalizeStyle({background:i.textAlign==="start"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.textAlign==="start"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.textAlign==="start"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[25]||(l[25]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.textAlign="start",t.setSelectedTextAlignTo("start")})},[ge,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextLeft),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",me,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.textAlign==="middle",tooltip:!0}),style:o.normalizeStyle({background:i.textAlign==="middle"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.textAlign==="middle"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.textAlign==="middle"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:i.isBulletTextMode,onClick:l[26]||(l[26]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.textAlign="middle",t.setSelectedTextAlignTo("middle")})},[_e,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextCenter),5)):o.createCommentVNode("",!0)],14,pe)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",ve,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.textAlign==="end",tooltip:!0}),style:o.normalizeStyle({background:i.textAlign==="end"?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.textAlign==="end"?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.textAlign==="end"?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),disabled:i.isBulletTextMode,onClick:l[27]||(l[27]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.textAlign="end",t.setSelectedTextAlignTo("end")})},[Ae,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextRight),5)):o.createCommentVNode("",!0)],14,we)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Me,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isBulletTextMode,tooltip:!0}),style:o.normalizeStyle({background:i.isBulletTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isBulletTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isBulletTextMode?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[28]||(l[28]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isBulletTextMode=!i.isBulletTextMode,i.textAlign="start",t.setSelectedTextAlignTo("start"),t.setCurrentStyleOfSelectedText()})},[Oe,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextBullet),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Le,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isBold,tooltip:!0}),style:o.normalizeStyle({background:i.isBold?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isBold?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isBold?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[29]||(l[29]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isBold=!i.isBold,t.setCurrentStyleOfSelectedText()})},[Ge,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextBold),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",ze,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isItalic,tooltip:!0}),style:o.normalizeStyle({background:i.isItalic?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isItalic?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isItalic?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[30]||(l[30]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isItalic=!i.isItalic,t.setCurrentStyleOfSelectedText()})},[Be,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextItalic),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),i.isTextMode?(o.openBlock(),o.createElementBlock("div",Te,[o.createElementVNode("button",{class:o.normalizeClass({"button-tool":!0,"button-tool--selected":i.isUnderline,tooltip:!0}),style:o.normalizeStyle({background:i.isUnderline?t.FINAL_CONFIG.style.buttons.shapes.selected.backgroundColor:t.FINAL_CONFIG.style.buttons.shapes.backgroundColor,border:i.isUnderline?t.FINAL_CONFIG.style.buttons.shapes.selected.border:t.FINAL_CONFIG.style.buttons.shapes.border,color:i.isUnderline?t.FINAL_CONFIG.style.buttons.shapes.selected.color:t.FINAL_CONFIG.style.buttons.shapes.color,borderRadius:`${t.FINAL_CONFIG.style.buttons.borderRadius}px`}),onClick:l[31]||(l[31]=r=>{i.isDeleteMode=!1,i.isMoveMode=!1,i.isResizeMode=!1,i.isDrawMode=!1,i.isSelectMode=!1,i.activeShape=void 0,i.isUnderline=!i.isUnderline,t.setCurrentStyleOfSelectedText()})},[De,t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeTextUnderline),5)):o.createCommentVNode("",!0)],6)])):o.createCommentVNode("",!0),o.createElementVNode("div",Ve,[o.withDirectives(o.createElementVNode("input",{type:"color",id:"colorPicker",name:"colorPicker","onUpdate:modelValue":l[32]||(l[32]=r=>i.selectedColor=r),onInput:l[33]||(l[33]=(...r)=>t.setColorOfSelectedShape&&t.setColorOfSelectedShape(...r)),style:o.normalizeStyle(`height: 30px; width: 30px; border-radius: ${t.FINAL_CONFIG.style.buttons.borderRadius}px; cursor: pointer`)},null,36),[[o.vModelText,i.selectedColor]]),t.FINAL_CONFIG.style.showTooltips?(o.openBlock(),o.createElementBlock("span",{key:0,class:"tooltiptext",style:o.normalizeStyle({backgroundColor:t.FINAL_CONFIG.style.tooltips.backgroundColor,color:t.FINAL_CONFIG.style.tooltips.color,border:t.FINAL_CONFIG.style.tooltips.border,borderRadius:`${t.FINAL_CONFIG.style.tooltips.borderRadius}px`,boxShadow:t.FINAL_CONFIG.style.tooltips.boxShadow})},o.toDisplayString(t.FINAL_CONFIG.translations.tooltipShapeColor),5)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Ee,[o.createElementVNode("label",Re,o.toDisplayString(t.FINAL_CONFIG.translations.colorAlpha)+": "+o.toDisplayString(i.transparency>98?100:i.transparency)+" % ",1),o.withDirectives(o.createElementVNode("input",{id:"colorTransparency",name:"colorTransparency",type:"range","onUpdate:modelValue":l[34]||(l[34]=r=>i.transparency=r),onInput:l[35]||(l[35]=(...r)=>t.setTransparencyOfSelectedShape&&t.setTransparencyOfSelectedShape(...r)),min:0,max:100,style:{width:"100px"}},null,544),[[o.vModelText,i.transparency]])])])],36)]),o.createElementVNode("div",He,[o.renderSlot(e.$slots,"default",{},void 0,!0),i.isSummaryOpen?(o.openBlock(),o.createElementBlock("svg",{id:"annotatorSvg",key:i.step,ref:"mainSvg",class:o.normalizeClass({draw:!0,"draw--free":i.activeShape==="line"}),style:o.normalizeStyle([`cursor:${t.cursorClass}; font-family: Helvetica; z-index: 100000000;`,{position:"absolute",top:"0",left:"0"}]),viewBox:`0 0 ${i.svgWidth} ${i.svgHeight}`,width:i.sourceWidth,height:i.sourceHeight,onPointerdown:l[38]||(l[38]=r=>t.chooseAction(r)),onPointerup:l[39]||(l[39]=(...r)=>t.resetDraw&&t.resetDraw(...r)),onTouchend:l[40]||(l[40]=(...r)=>t.resetDraw&&t.resetDraw(...r)),onTouchstart:l[41]||(l[41]=r=>{t.setPointer(r),t.clickSvg(r)}),onPointermove:l[42]||(l[42]=r=>{t.setPointer(r),t.chooseMove(r)}),onPointerout:l[43]||(l[43]=r=>{i.preventEdit=!0,i.hoveredShapeId=void 0}),onPointerover:l[44]||(l[44]=r=>t.allowEditAndHoverShapes(r)),onClick:l[45]||(l[45]=r=>t.clickSvg(r))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.userShapes,(r,d)=>(o.openBlock(),o.createElementBlock("g",{key:`shape_${d}`,id:r.id,innerHTML:r,onClick:l[37]||(l[37]=c=>{t.clickShape(c),i.isMoveMode=!1})},null,8,Pe))),128))],46,We)):o.createCommentVNode("",!0),i.isPrinting?(o.openBlock(),o.createElementBlock("svg",{key:1,style:{position:"absolute",top:"0",left:"0"},height:i.sourceHeight,viewBox:`0 0 ${i.svgWidth} ${i.svgHeight}`,width:i.sourceWidth},[o.createElementVNode("circle",{class:"animated-circle-print",cx:i.svgWidth/2,cy:i.svgHeight/2,r:"50",stroke:"#6376DD","stroke-width":"10",fill:"none"},null,8,Ue)],8,Xe)):o.createCommentVNode("",!0)],512)])}const je=F._export_sfc(f,[["render",Ye],["__scopeId","data-v-14ebd65f"]]);exports.default=je;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as h, ref as v, watch as fe, onMounted as Ie, onBeforeUnmount as
|
|
2
|
-
import { u as
|
|
1
|
+
import { computed as h, ref as v, watch as fe, onMounted as Ie, onBeforeUnmount as Oe, openBlock as u, createElementBlock as s, normalizeClass as be, normalizeStyle as q, createBlock as N, createCommentVNode as c, unref as p, createSlots as Be, withCtx as b, renderSlot as x, normalizeProps as L, guardReactiveProps as R, createElementVNode as n, Fragment as S, renderList as z, toDisplayString as V, createVNode as Pe, createTextVNode as Me, nextTick as Ue } from "vue";
|
|
2
|
+
import { u as Ee, c as De, t as We, o as Ge, e as C, C as Xe, v as I, X as je, w as D, D as He, s as Ye, x as qe, y as Je, q as Ke, r as Qe, E as xe } from "./index-DP8dqFNd.js";
|
|
3
3
|
import { t as Ze, u as et } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as tt } from "./Title-
|
|
5
|
-
import { u as lt, U as ot } from "./usePrinter-
|
|
6
|
-
import { _ as at } from "./Tooltip-
|
|
7
|
-
import { D as ut } from "./DataTable-
|
|
8
|
-
import st from "./vue-ui-skeleton-
|
|
9
|
-
import { S as it } from "./Slicer-
|
|
10
|
-
import nt from "./vue-ui-accordion-
|
|
11
|
-
import { u as me } from "./useNestedProp-
|
|
4
|
+
import { _ as tt } from "./Title-Bx-VO3md.js";
|
|
5
|
+
import { u as lt, U as ot } from "./usePrinter-DiuHo4LO.js";
|
|
6
|
+
import { _ as at } from "./Tooltip-Dk-cimhQ.js";
|
|
7
|
+
import { D as ut } from "./DataTable-y1lX5jVj.js";
|
|
8
|
+
import st from "./vue-ui-skeleton-B30ZhUV7.js";
|
|
9
|
+
import { S as it } from "./Slicer-DzJZ4axa.js";
|
|
10
|
+
import nt from "./vue-ui-accordion-Dl8zkZPk.js";
|
|
11
|
+
import { u as me } from "./useNestedProp-B-oZxD4x.js";
|
|
12
12
|
import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], ft = ["id"], bt = ["stop-color"], xt = ["stop-color"], mt = ["stop-color"], kt = { key: 0 }, wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = { key: 1 }, Ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nt = ["x", "y", "font-size", "fill", "font-weight"], St = { key: 2 }, zt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = { key: 0 }, Ft = ["cx", "cy", "r", "fill"], Lt = ["cx", "cy", "r", "fill"], Rt = { key: 1 }, Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"],
|
|
13
|
+
const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht = ["stop-color"], pt = ["stop-color"], gt = ["stop-color"], ft = ["id"], bt = ["stop-color"], xt = ["stop-color"], mt = ["stop-color"], kt = { key: 0 }, wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = { key: 1 }, Ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nt = ["x", "y", "font-size", "fill", "font-weight"], St = { key: 2 }, zt = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = { key: 0 }, Ft = ["cx", "cy", "r", "fill"], Lt = ["cx", "cy", "r", "fill"], Rt = { key: 1 }, Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ot = ["x", "y", "height", "width", "fill", "rx"], Bt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Pt = ["x", "y", "height", "width", "fill", "onMouseover"], Mt = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
}, Ut = ["innerHTML"],
|
|
16
|
+
}, Ut = ["innerHTML"], Et = {
|
|
17
17
|
__name: "vue-ui-candlestick",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,7 +30,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
setup($, { expose: ke }) {
|
|
33
|
-
const k = $, { vue_ui_candlestick: we } =
|
|
33
|
+
const k = $, { vue_ui_candlestick: we } = Ee(), T = h(() => !!k.dataset && k.dataset.length), m = v(De()), $e = v(null), W = v(!1), G = v(""), X = v(void 0), J = v(0), A = v(null), K = v(null), Q = v(null), Z = v(null), O = v(0), ee = v(0), te = v(0), e = h({
|
|
34
34
|
get: () => le(),
|
|
35
35
|
set: (t) => t
|
|
36
36
|
});
|
|
@@ -47,16 +47,16 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
47
47
|
} : t;
|
|
48
48
|
}
|
|
49
49
|
fe(() => k.config, (t) => {
|
|
50
|
-
e.value = le(), oe(),
|
|
50
|
+
e.value = le(), oe(), O.value += 1, te.value += 1, ee.value += 1;
|
|
51
51
|
}, { deep: !0 }), fe(() => k.dataset, (t) => {
|
|
52
|
-
y.value.start = 0, y.value.end = t.length,
|
|
52
|
+
y.value.start = 0, y.value.end = t.length, O.value += 1;
|
|
53
53
|
}, { deep: !0 });
|
|
54
54
|
const d = v({
|
|
55
55
|
height: e.value.style.height,
|
|
56
56
|
width: e.value.style.width,
|
|
57
57
|
xAxisFontSize: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
|
|
58
58
|
yAxisFontSize: e.value.style.layout.grid.yAxis.dataLabels.fontSize
|
|
59
|
-
}),
|
|
59
|
+
}), B = v(null);
|
|
60
60
|
Ie(() => {
|
|
61
61
|
oe();
|
|
62
62
|
});
|
|
@@ -86,11 +86,11 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
86
86
|
fallback: 6
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
|
-
|
|
89
|
+
B.value = new ResizeObserver(t), B.value.observe(A.value.parentNode);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
Oe(() => {
|
|
93
|
+
B.value && B.value.disconnect();
|
|
94
94
|
});
|
|
95
95
|
const { isPrinting: ae, isImaging: ue, generatePdf: se, generateImage: ie } = lt({
|
|
96
96
|
elementId: `vue-ui-candlestick_${m.value}`,
|
|
@@ -163,7 +163,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
const g = h(() => H.value.map((t, a) => {
|
|
166
|
-
const l = P(t.open, a), o = P(t.high, a), f = P(t.low, a), U = P(t.last, a),
|
|
166
|
+
const l = P(t.open, a), o = P(t.high, a), f = P(t.low, a), U = P(t.last, a), E = t.last > t.open;
|
|
167
167
|
return {
|
|
168
168
|
period: t.period,
|
|
169
169
|
open: l,
|
|
@@ -171,7 +171,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
171
171
|
low: f,
|
|
172
172
|
last: U,
|
|
173
173
|
volume: t.volume,
|
|
174
|
-
isBullish:
|
|
174
|
+
isBullish: E
|
|
175
175
|
};
|
|
176
176
|
}));
|
|
177
177
|
function _e(t) {
|
|
@@ -203,9 +203,9 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
203
203
|
});
|
|
204
204
|
else if (e.value.style.tooltip.show) {
|
|
205
205
|
let o = "";
|
|
206
|
-
const { period: f, open: U, high:
|
|
206
|
+
const { period: f, open: U, high: E, low: ce, last: he, volume: pe, isBullish: ge } = g.value[t], { period: Dt, open: Ae, high: Fe, low: Le, last: Re, volume: Ve } = e.value.translations;
|
|
207
207
|
o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
|
|
208
|
-
fill="${e.value.style.layout.candle.gradient.show ? ge ? `url(#bullish_gradient_${m.value})` : `url(#bearish_gradient_${m.value})` : ge ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${f}</div>`, o += `${Ve} : <b>${isNaN(pe) ? "-" : Number(pe.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, o += `<div>${Ae}: <b>${e.value.style.tooltip.prefix} ${isNaN(U.value) ? "-" : Number(U.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += `<div>${Fe}: <b>${e.value.style.tooltip.prefix} ${isNaN(
|
|
208
|
+
fill="${e.value.style.layout.candle.gradient.show ? ge ? `url(#bullish_gradient_${m.value})` : `url(#bearish_gradient_${m.value})` : ge ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${f}</div>`, o += `${Ve} : <b>${isNaN(pe) ? "-" : Number(pe.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, o += `<div>${Ae}: <b>${e.value.style.tooltip.prefix} ${isNaN(U.value) ? "-" : Number(U.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += `<div>${Fe}: <b>${e.value.style.tooltip.prefix} ${isNaN(E.value) ? "-" : Number(E.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += `<div>${Le}: <b>${e.value.style.tooltip.prefix} ${isNaN(ce.value) ? "-" : Number(ce.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += `<div>${Re}: <b>${e.value.style.tooltip.prefix} ${isNaN(he.value) ? "-" : Number(he.value.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()} ${e.value.style.tooltip.suffix}</b></div>`, o += "</div>", G.value = `<div style="text-align:right">${o}</div>`;
|
|
209
209
|
}
|
|
210
210
|
W.value = !0;
|
|
211
211
|
}
|
|
@@ -213,7 +213,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
213
213
|
y.value = {
|
|
214
214
|
start: 0,
|
|
215
215
|
end: j.value
|
|
216
|
-
},
|
|
216
|
+
}, O.value += 1;
|
|
217
217
|
}
|
|
218
218
|
function ve() {
|
|
219
219
|
Ue(() => {
|
|
@@ -325,7 +325,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
325
325
|
onGenerateImage: p(ie),
|
|
326
326
|
onToggleTable: de,
|
|
327
327
|
onToggleTooltip: ye
|
|
328
|
-
},
|
|
328
|
+
}, Be({ _: 2 }, [
|
|
329
329
|
t.$slots.optionTooltip ? {
|
|
330
330
|
name: "optionTooltip",
|
|
331
331
|
fn: b(() => [
|
|
@@ -389,11 +389,11 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
389
389
|
}, null, 8, ht),
|
|
390
390
|
n("stop", {
|
|
391
391
|
offset: "50%",
|
|
392
|
-
"stop-color": `${p(
|
|
392
|
+
"stop-color": `${p(D)(e.value.style.layout.candle.colors.bearish, 0.02)}DE`
|
|
393
393
|
}, null, 8, pt),
|
|
394
394
|
n("stop", {
|
|
395
395
|
offset: "100%",
|
|
396
|
-
"stop-color": `${p(
|
|
396
|
+
"stop-color": `${p(D)(e.value.style.layout.candle.colors.bearish, 0.05)}66`
|
|
397
397
|
}, null, 8, gt)
|
|
398
398
|
], 8, ct),
|
|
399
399
|
n("linearGradient", {
|
|
@@ -407,11 +407,11 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
407
407
|
}, null, 8, bt),
|
|
408
408
|
n("stop", {
|
|
409
409
|
offset: "50%",
|
|
410
|
-
"stop-color": `${p(
|
|
410
|
+
"stop-color": `${p(D)(e.value.style.layout.candle.colors.bullish, 0.02)}DE`
|
|
411
411
|
}, null, 8, xt),
|
|
412
412
|
n("stop", {
|
|
413
413
|
offset: "100%",
|
|
414
|
-
"stop-color": `${p(
|
|
414
|
+
"stop-color": `${p(D)(e.value.style.layout.candle.colors.bullish, 0.05)}66`
|
|
415
415
|
}, null, 8, mt)
|
|
416
416
|
], 8, ft)
|
|
417
417
|
]),
|
|
@@ -525,7 +525,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
525
525
|
fill: e.value.style.layout.candle.gradient.underlayer,
|
|
526
526
|
rx: e.value.style.layout.candle.borderRadius,
|
|
527
527
|
stroke: "none"
|
|
528
|
-
}, null, 8,
|
|
528
|
+
}, null, 8, Ot))), 256)),
|
|
529
529
|
(u(!0), s(S, null, z(g.value, (l, o) => (u(), s("rect", {
|
|
530
530
|
x: l.open.x - r.value / 2 + r.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
531
531
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
@@ -537,7 +537,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
537
537
|
"stroke-width": e.value.style.layout.candle.strokeWidth,
|
|
538
538
|
"stroke-linecap": "round",
|
|
539
539
|
"stroke-linejoin": "round"
|
|
540
|
-
}, null, 8,
|
|
540
|
+
}, null, 8, Bt))), 256))
|
|
541
541
|
]),
|
|
542
542
|
n("g", null, [
|
|
543
543
|
(u(!0), s(S, null, z(g.value, (l, o) => (u(), s("rect", {
|
|
@@ -545,7 +545,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
545
545
|
y: i.value.top,
|
|
546
546
|
height: i.value.height <= 0 ? 1e-4 : i.value.height,
|
|
547
547
|
width: r.value <= 0 ? 1e-4 : r.value,
|
|
548
|
-
fill: X.value === o ?
|
|
548
|
+
fill: X.value === o ? p(Ye)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
|
|
549
549
|
onMouseover: (f) => Se(o, l),
|
|
550
550
|
onMouseleave: a[0] || (a[0] = (f) => {
|
|
551
551
|
X.value = void 0, W.value = !1;
|
|
@@ -581,7 +581,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
581
581
|
ref: Z
|
|
582
582
|
}, [
|
|
583
583
|
(u(), N(it, {
|
|
584
|
-
key: `slicer_${
|
|
584
|
+
key: `slicer_${O.value}`,
|
|
585
585
|
background: e.value.style.zoom.color,
|
|
586
586
|
borderColor: e.value.style.backgroundColor,
|
|
587
587
|
fontSize: e.value.style.zoom.fontSize,
|
|
@@ -675,7 +675,7 @@ const vt = ["id"], dt = ["xmlns", "viewBox"], yt = { key: 0 }, ct = ["id"], ht =
|
|
|
675
675
|
}, 8, ["config"])) : c("", !0)
|
|
676
676
|
], 14, vt));
|
|
677
677
|
}
|
|
678
|
-
}, tl = /* @__PURE__ */ rt(
|
|
678
|
+
}, tl = /* @__PURE__ */ rt(Et, [["__scopeId", "data-v-b23b9d6f"]]);
|
|
679
679
|
export {
|
|
680
680
|
tl as default
|
|
681
681
|
};
|