import{Q as M}from"./chunk-BmZ_dvqz.js";import{D as d,E as h,aC as X,q as c,as as y,F as g,ah as b,ab as S,an as a,V as e,a as R,u as i,X as D,Z as z,at as u,a4 as W,au as w,a3 as q,B as $}from"./chunk-DhYw-kuD.js";import{D as K,M as P,T as U,S as B}from"./chunk-CY8SI6Xr.js";import{_ as k,b as I,t as l,Q as v,h as E,q as O,g as ee,T as te}from"./app-CPb3bToC.js";import{Q as x}from"./chunk-DyHcsQzx.js";import{C as T}from"./chunk-CsOl3O8E.js";import{m as V}from"./chunk-DtbgphQc.js";import{Q as C}from"./chunk-3al9Gynt.js";import{Q as J}from"./chunk-DrJmlqou.js";import{Q as H}from"./chunk-DS5GqSEZ.js";import{Q as se}from"./chunk-Cp7NrLS3.js";import{Q as oe}from"./chunk-CUANlmUG.js";import"./chunk-DKMcZRgE.js";import"./chunk-8e5kB75k.js";import"./chunk-CusLMHK2.js";import"./chunk-D3Pjrapm.js";import"./chunk-DbbZ0htz.js";import"./chunk-DOJZQpJk.js";import"./chunk-DBKH8df9.js";import"./chunk-DfTn_VfD.js";import"./chunk-DIiNYqqq.js";import"./chunk-BjYP5sR0.js";import"./chunk-CCQf9h9p.js";import"./chunk-xwEmqXCW.js";import"./chunk-R5hIhmoz.js";import"./chunk-CoZXVP_c.js";import"./chunk-BD0IzKkO.js";import"./chunk-D-EdmasP.js";import"./chunk-C3G_4NHG.js";import"./chunk-Bzmka5Fh.js";import"./chunk-GYMadCV3.js";import"./chunk-GGPowwzA.js";import"./chunk-C_9zYcUo.js";const ie={data(){}},ne={id:"layer_0","data-name":"layer_0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",focusable:"false"};function le(o,t,s,n,_,r){return d(),h("svg",ne,t[0]||(t[0]=[X('',1)]))}const G=k(ie,[["render",le]]),ae={data(){}},re={id:"layer_0","data-name":"layer_0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",focusable:"false"};function de(o,t,s,n,_,r){return d(),h("svg",re,t[0]||(t[0]=[X('',1)]))}const Q=k(ae,[["render",de]]),ce={data(){return{bind_keys:[],bind_keys_worker:null,keys:{}}},created(){document.addEventListener("keydown",this.on_key_down),document.addEventListener("keyup",this.on_key_up),this.bind_keys_worker=setInterval(()=>{let o=new Date().getTime();for(let t in this.keys)Number(this.keys[t].end+500)[(d(!0),h(g,null,b(_.bind_keys,m=>(d(),h("div",{class:"bind-keys",style:S({opacity:m.action==="up"?"0.5":"1"})},a(m.name),5))),256))]),_:1})])}const ve=k(ce,[["render",he],["__scopeId","data-v-041f5200"]]),ye={props:["color"],data(){return{}}},me={viewBox:"0 0 500 500",focusable:"false"},ue=["fill"],pe=["fill"],fe=["fill"],ke=["fill"],ge=["fill"],be=["fill"],we=["fill"],$e=["fill"],De=["fill"],Ce=["fill"];function Se(o,t,s,n,_,r){return d(),h("svg",me,[e("g",null,[e("g",null,[e("path",{fill:s.color,d:`M117.44,487.21c-57.7,0-104.65-46.95-104.65-104.65V117.44c0-57.71,46.94-104.65,104.65-104.65h265.13\r c57.7,0,104.65,46.95,104.65,104.65v265.12c0,57.71-46.94,104.65-104.65,104.65H117.44z M117.44,33.16\r c-46.47,0-84.27,37.81-84.27,84.28v265.12c0,46.47,37.8,84.28,84.27,84.28h265.13c46.47,0,84.27-37.81,84.27-84.28V117.44\r c0-46.47-37.8-84.28-84.27-84.28H117.44z`},null,8,ue),e("path",{fill:s.color,d:`M382.56,484.21H117.44c-56.05,0-101.65-45.6-101.65-101.65V117.44c0-56.05,45.6-101.65,101.65-101.65h265.13\r c56.05,0,101.64,45.6,101.64,101.65v265.12C484.21,438.61,438.61,484.21,382.56,484.21z M117.44,30.16\r c-48.12,0-87.27,39.15-87.27,87.28v265.12c0,48.13,39.15,87.28,87.27,87.28h265.13c48.12,0,87.27-39.15,87.27-87.28V117.44\r c0-48.12-39.15-87.28-87.27-87.28H117.44z`},null,8,pe)]),e("g",null,[e("path",{fill:s.color,d:`M250,360.06c-5.62,0-10.19-4.57-10.19-10.19V195.45c0-5.62,4.57-10.19,10.19-10.19s10.19,4.57,10.19,10.19\r v154.42C260.19,355.49,255.62,360.06,250,360.06z`},null,8,fe),e("path",{fill:s.color,d:`M250,357.06c-3.97,0-7.19-3.21-7.19-7.19V195.45c0-3.97,3.21-7.19,7.19-7.19s7.19,3.21,7.19,7.19v154.42\r C257.19,353.85,253.98,357.06,250,357.06z`},null,8,ke)]),e("g",null,[e("path",{fill:s.color,d:`M250,360.06c-2.72,0-5.28-1.06-7.2-2.98c-3.97-3.97-3.97-10.43,0-14.41l46.43-46.44\r c1.92-1.92,4.48-2.98,7.2-2.98c2.72,0,5.28,1.06,7.2,2.98c3.97,3.97,3.97,10.43,0,14.4l-46.43,46.44\r C255.28,359,252.72,360.06,250,360.06z`},null,8,ge),e("path",{fill:s.color,d:`M250,357.06c-1.84,0-3.68-0.7-5.08-2.11c-2.81-2.81-2.81-7.36,0-10.16l46.43-46.44\r c2.81-2.81,7.36-2.81,10.16,0s2.81,7.36,0,10.16l-46.43,46.44C253.68,356.36,251.84,357.06,250,357.06z`},null,8,be)]),e("g",null,[e("path",{fill:s.color,d:`M250,360.06c-2.72,0-5.28-1.06-7.2-2.98l-46.44-46.44c-1.92-1.92-2.98-4.48-2.98-7.2\r c0-2.72,1.06-5.28,2.98-7.2c1.92-1.92,4.48-2.98,7.2-2.98s5.28,1.06,7.2,2.98l46.44,46.44c3.97,3.97,3.97,10.43,0,14.41\r C255.28,359,252.72,360.06,250,360.06z`},null,8,we),e("path",{fill:s.color,d:`M250,357.06c-1.84,0-3.68-0.7-5.08-2.11l-46.44-46.44c-2.81-2.81-2.81-7.36,0-10.16\r c2.81-2.81,7.36-2.81,10.16,0l46.44,46.44c2.81,2.81,2.81,7.36,0,10.16C253.68,356.36,251.84,357.06,250,357.06z`},null,8,$e)]),e("g",null,[e("path",{fill:s.color,d:`M209.83,160.31c-5.62,0-10.19-4.57-10.19-10.19s4.57-10.19,10.19-10.19h80.34c5.62,0,10.19,4.57,10.19,10.19\r s-4.57,10.19-10.19,10.19H209.83z`},null,8,De),e("path",{fill:s.color,d:`M290.17,157.31h-80.34c-3.97,0-7.19-3.21-7.19-7.19c0-3.97,3.21-7.19,7.19-7.19h80.34\r c3.97,0,7.19,3.21,7.19,7.19C297.36,154.1,294.14,157.31,290.17,157.31z`},null,8,Ce)])])])}const Z=k(ye,[["render",Se]]),Me={props:["color"],data(){return{}}},xe={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ne(o,t,s,n,_,r){return d(),h("svg",xe,t[0]||(t[0]=[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.207 6.207a1 1 0 0 0-1.414-1.414L12 10.586 6.207 4.793a1 1 0 0 0-1.414 1.414L10.586 12l-5.793 5.793a1 1 0 1 0 1.414 1.414L12 13.414l5.793 5.793a1 1 0 0 0 1.414-1.414L13.414 12l5.793-5.793z",fill:"currentColor"},null,-1)]))}const N=k(Me,[["render",Ne]]),Oe={class:"row",style:{height:"100%","user-select":"none"}},ze={class:"col-4",style:{"border-right":"1px solid var(--color-85)",height:"100%"}},Te={style:{height:"100%"}},je={class:"row",style:{"margin-left":"2rem","margin-top":"1rem",color:"var(--color-55)","font-size":"1.2rem","font-weight":"600"}},Le={class:"row",style:{"margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)","font-size":"0.7rem"}},Ee={class:"popover-card-inner"},Je={style:{width:"3rem"}},He={style:{width:"25rem",display:"flex","flex-direction":"column","justify-content":"center"}},Ve={style:{color:"var(--text-primary)"}},Ie={style:{color:"var(--color-65)","font-size":"0.7rem"}},Ke={style:{width:"3rem"}},Pe={style:{width:"25rem",display:"flex","flex-direction":"column","justify-content":"center"}},Ue={style:{color:"var(--text-primary)"}},Be={style:{color:"var(--color-65)","font-size":"0.7rem"}},Ge={style:{width:"3rem"}},Qe={style:{width:"25rem",display:"flex","flex-direction":"column","justify-content":"center"}},Ze={style:{color:"var(--text-primary)"}},Ae={style:{color:"var(--color-65)","font-size":"0.7rem"}},Ye={style:{width:"3rem"}},Fe={style:{width:"25rem",display:"flex","flex-direction":"column","justify-content":"center"}},Xe={style:{color:"var(--text-primary)"}},qe={style:{color:"var(--color-65)","font-size":"0.7rem"}},Re={style:{width:"3rem"}},We={style:{width:"25rem",display:"flex","flex-direction":"column","justify-content":"center"}},et={style:{color:"var(--text-primary)"}},tt={style:{color:"var(--color-65)","font-size":"0.7rem"}},st={style:{width:"3rem"}},ot={style:{width:"25rem",display:"flex","flex-direction":"column","justify-content":"center"}},it={style:{color:"var(--text-primary)"}},nt={style:{color:"var(--color-65)","font-size":"0.7rem"}},lt={class:"col-4",style:{"border-right":"1px solid var(--color-85)",height:"100%"}},at={class:"row",style:{"margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)","font-size":"1.2rem","font-weight":"600"}},rt={style:{"margin-left":"24rem",color:"var(--color-55)","font-size":"0.7rem","margin-top":"0.5rem"}},dt=["onClick"],ct={key:0,class:"row",style:{height:"100%",width:"100%"}},_t={class:"row"},ht={key:0,class:"row item-advanced-wrapper"},vt={class:"item-advanced-inner"},yt={key:1,class:"row item-advanced-wrapper"},mt={class:"item-advanced-inner"},ut={key:2,class:"row item-advanced-wrapper"},pt={class:"item-advanced-inner"},ft={key:3,class:"row item-advanced-wrapper"},kt={class:"item-advanced-inner"},gt={key:4,class:"row item-advanced-wrapper"},bt={class:"item-advanced-inner"},wt={key:5,class:"row item-advanced-wrapper"},$t={class:"item-advanced-inner"},Dt={key:0,class:"row item-advanced-key-wrapper"},Ct={class:"row item-advanced-key-inner"},St={key:1,class:"row",style:{"margin-left":"1rem","align-items":"center",gap:"5px"}},Mt={class:"bind-item-value"},xt={class:"bind-item-value"},Nt={class:"bind-item-value"},Ot={class:"bind-item-value"},zt={key:2,class:"row",style:{"margin-left":"1rem","align-items":"center",gap:"5px"}},Tt={class:"bind-item-value"},jt={class:"bind-item-value"},Lt={key:3,class:"row",style:{"margin-left":"1rem","align-items":"center",gap:"5px"}},Et={class:"bind-item-value"},Jt={key:4,class:"row",style:{"margin-left":"1rem","align-items":"center",gap:"5px"}},Ht={class:"item-advanced-key-inner"},Vt={class:"item-advanced-key-inner"},It={key:5,class:"row",style:{"margin-left":"1rem","align-items":"center",gap:"5px"}},Kt={class:"item-advanced-key-inner"},Pt={class:"item-advanced-key-inner"},Ut={class:"item-advanced-key-inner"},Bt={key:6,class:"row",style:{"margin-left":"1rem","align-items":"center",gap:"5px"}},Gt={class:"item-advanced-key-inner"},Qt={class:"row",style:{"justify-content":"flex-end","margin-left":"auto","align-items":"center"}},Zt=["onClick"],At={class:"col-4",style:{"border-right":"1px solid var(--color-85)",height:"100%"}},Yt={class:"row",style:{"margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)","font-size":"1.2rem","font-weight":"600"}},Ft={props:["status","bind_item"],emits:["update:value","update:status","delete","on_select"],data(){return{_bind_item:[]}},created(){this._bind_item=this.$props.bind_item,this.filter_bind_item()},methods:{on_select(o){this.$emit("on_select",o)},filter_bind_item(){for(let o=0;o({TGL:t.advanced_feature.includes(0),MT:t.advanced_feature.includes(1),DKS:t.advanced_feature.includes(2),SOCD:t.advanced_feature.includes(3),MPT:t.advanced_feature.includes(4),END:t.advanced_feature.includes(5)}));return(n,_)=>(d(),h("div",Oe,[e("div",ze,[e("div",Te,[e("div",je,a(i(l)("advanced_keys")),1),e("div",Le,[D(a(i(l)("select_bar_desc_0"))+" ",1),_[6]||(_[6]=e("br",null,null,-1)),D(" "+a(i(l)("select_bar_desc_1")),1)]),_[7]||(_[7]=e("div",{style:{"margin-left":"2rem","margin-top":"0.5rem","border-bottom":"1px solid var(--color-85)"}},null,-1)),c(x,{style:{"margin-left":"2rem","padding-top":"1rem",height:"18rem",width:"30rem"}},{default:y(()=>[e("div",Ee,[s.value.DKS?z((d(),h("div",{key:0,class:"row items-center advance-item",onClick:_[0]||(_[0]=r=>n.on_type_select(i(v).DKS))},[e("div",Je,[c(K)]),e("div",He,[e("div",Ve,a(i(l)("DKS_label")),1),e("div",Ie,a(i(l)("DKS_label_desc")),1)])])),[[T]]):u("",!0),s.value.MT?z((d(),h("div",{key:1,class:"row items-center advance-item",onClick:_[1]||(_[1]=r=>n.on_type_select(i(v).MT))},[e("div",Ke,[c(P)]),e("div",Pe,[e("div",Ue,a(i(l)("MT_label")),1),e("div",Be,a(i(l)("MT_label_desc")),1)])])),[[T]]):u("",!0),s.value.TGL?z((d(),h("div",{key:2,class:"row items-center advance-item",onClick:_[2]||(_[2]=r=>n.on_type_select(i(v).TGL))},[e("div",Ge,[c(U)]),e("div",Qe,[e("div",Ze,a(i(l)("TGL_label")),1),e("div",Ae,a(i(l)("TGL_label_desc")),1)])])),[[T]]):u("",!0),s.value.SOCD?z((d(),h("div",{key:3,class:"row items-center advance-item",onClick:_[3]||(_[3]=r=>n.on_type_select(i(v).SOCD))},[e("div",Ye,[c(B)]),e("div",Fe,[e("div",Xe,a(i(l)("SOCD_label")),1),e("div",qe,a(i(l)("SOCD_label_desc")),1)])])),[[T]]):u("",!0),s.value.MPT?z((d(),h("div",{key:4,class:"row items-center advance-item",onClick:_[4]||(_[4]=r=>n.on_type_select(i(v).MPT))},[e("div",Re,[c(G)]),e("div",We,[e("div",et,a(i(l)("MPT_label")),1),e("div",tt,a(i(l)("MPT_label_desc")),1)])])),[[T]]):u("",!0),s.value.END?z((d(),h("div",{key:5,class:"row items-center advance-item",onClick:_[5]||(_[5]=r=>n.on_type_select("END"))},[e("div",st,[c(Q)]),e("div",ot,[e("div",it,a(i(l)("END_label")),1),e("div",nt,a(i(l)("END_label_desc")),1)])])),[[T]]):u("",!0)])]),_:1})])]),e("div",lt,[e("div",at,[e("div",null,a(i(l)("bind_item")),1),e("div",rt,a(i(l)("current_bind"))+a(n._bind_item.length)+"/40 ",1)]),_[8]||(_[8]=e("div",{style:{"margin-top":"0.5rem","border-bottom":"1px solid var(--color-85)"}},null,-1)),e("div",null,[c(x,{style:{width:"100%",height:"22rem"}},{default:y(()=>[c(W,{name:"list"},{default:y(()=>[(d(!0),h(g,null,b(n._bind_item,(r,m)=>(d(),h("div",{class:"bind-item",onClick:f=>n.on_select(r)},[r.advanced_key!==void 0&&r.advanced_key!==null?(d(),h("div",ct,[e("div",_t,[r.advanced_key.type===i(v).DKS?(d(),h("div",ht,[e("div",vt,[c(K,{style:{width:"3rem",height:"3rem"}})])])):u("",!0),r.advanced_key.type===i(v).MT?(d(),h("div",yt,[e("div",mt,[c(P,{style:{width:"3rem",height:"3rem"}})])])):u("",!0),r.advanced_key.type===i(v).TGL?(d(),h("div",ut,[e("div",pt,[c(U,{style:{width:"3rem",height:"3rem"}})])])):u("",!0),r.advanced_key.type===i(v).SOCD?(d(),h("div",ft,[e("div",kt,[c(B,{style:{width:"3rem",height:"3rem"}})])])):u("",!0),r.advanced_key.type===i(v).MPT?(d(),h("div",gt,[e("div",bt,[c(G,{style:{width:"3rem",height:"3rem"}})])])):u("",!0),r.advanced_key.type===i(v).END?(d(),h("div",wt,[e("div",$t,[c(Q,{style:{width:"3rem",height:"3rem"}})])])):u("",!0)]),r.advanced_key.type!==i(v).SOCD?(d(),h("div",Dt,[e("div",Ct,a(r.name),1)])):u("",!0),r.advanced_key.type===i(v).DKS?(d(),h("div",St,[e("div",Mt,a(i(l)(n.get_text(r,0))),1),e("div",xt,a(i(l)(n.get_text(r,1))),1),e("div",Nt,a(i(l)(n.get_text(r,2))),1),e("div",Ot,a(i(l)(n.get_text(r,3))),1)])):u("",!0),r.advanced_key.type===i(v).MT?(d(),h("div",zt,[e("div",Tt,a(i(l)(n.get_text(r,0))),1),e("div",jt,a(i(l)(n.get_text(r,1))),1)])):u("",!0),r.advanced_key.type===i(v).TGL?(d(),h("div",Lt,[e("div",Et,a(i(l)(n.get_text(r,0))),1)])):u("",!0),r.advanced_key.type===i(v).SOCD?(d(),h("div",Jt,[e("div",Ht,a(i(l)(n.get_text(r,0))),1),e("div",Vt,a(i(l)(n.get_text(r,1))),1)])):u("",!0),r.advanced_key.type===i(v).MPT?(d(),h("div",It,[e("div",Kt,a(i(l)(n.get_text(r,0))),1),e("div",Pt,a(i(l)(n.get_text(r,1))),1),e("div",Ut,a(i(l)(n.get_text(r,2))),1)])):u("",!0),r.advanced_key.type===i(v).END?(d(),h("div",Bt,[e("div",Gt,a(i(l)(n.get_text(r,0))),1)])):u("",!0),e("div",Qt,[e("div",{class:"row item-advanced-delete",onClick:f=>n.on_delete(m)},[c(N,{style:{width:"2rem",height:"2rem"}})],8,Zt)])])):u("",!0)],8,dt))),256))]),_:1})]),_:1})])]),e("div",At,[e("div",Yt,[e("div",null,a(i(l)("test_bind")),1)]),_[9]||(_[9]=e("div",{style:{"margin-top":"0.5rem","border-bottom":"1px solid var(--color-85)"}},null,-1)),c(ve,{style:{height:"calc(100% - 15rem)",margin:"1rem"}})])]))}}),qt=k(Xt,[["__scopeId","data-v-06d52b81"]]),Rt=""+new URL("app-BuEKv6T_.css",import.meta.url).href,Wt={props:["color"],data(){return{}}},es={viewBox:"0 0 500 500",focusable:"false"},ts=["fill"],ss=["fill"],os=["fill"],is=["fill"],ns=["fill"],ls=["fill"],as=["fill"],rs=["fill"],ds=["fill"],cs=["fill"];function _s(o,t,s,n,_,r){return d(),h("svg",es,[e("g",null,[e("g",null,[e("path",{fill:s.color,d:`M117.85,486.47c-57.52,0-104.31-46.8-104.31-104.33V117.86c0-57.53,46.8-104.33,104.31-104.33h264.29\r c57.53,0,104.33,46.8,104.33,104.33v264.28c0,57.53-46.8,104.33-104.33,104.33H117.85z M117.85,33.86\r c-46.31,0-83.99,37.68-83.99,84v264.28c0,46.32,37.68,84,83.99,84h264.29c46.32,0,84-37.68,84-84V117.86c0-46.32-37.68-84-84-84\r H117.85z`},null,8,ts),e("path",{fill:s.color,d:`M382.14,483.47H117.85c-55.87,0-101.31-45.46-101.31-101.33V117.86c0-55.87,45.45-101.33,101.31-101.33\r h264.29c55.87,0,101.33,45.46,101.33,101.33v264.28C483.47,438.01,438.01,483.47,382.14,483.47z M117.85,30.86\r c-47.96,0-86.99,39.02-86.99,87v264.28c0,47.98,39.02,87,86.99,87h264.29c47.98,0,87-39.02,87-87V117.86c0-47.98-39.02-87-87-87\r H117.85z`},null,8,ss)]),e("g",null,[e("path",{fill:s.color,d:`M250,322.89c-5.6,0-10.16-4.56-10.16-10.16V158.8c0-5.6,4.56-10.16,10.16-10.16s10.16,4.56,10.16,10.16\r v153.92C260.16,318.33,255.6,322.89,250,322.89z`},null,8,os),e("path",{fill:s.color,d:`M250,319.89c-3.96,0-7.16-3.2-7.16-7.16V158.8c0-3.96,3.2-7.16,7.16-7.16c3.96,0,7.16,3.2,7.16,7.16v153.92\r C257.16,316.68,253.96,319.89,250,319.89z`},null,8,is)]),e("g",null,[e("path",{fill:s.color,d:`M250,322.89c-2.71,0-5.27-1.06-7.19-2.98c-3.96-3.96-3.96-10.41,0-14.37l46.28-46.29\r c1.92-1.92,4.47-2.98,7.19-2.98s5.27,1.06,7.19,2.98c3.96,3.96,3.96,10.41,0,14.37l-46.29,46.29\r C255.27,321.83,252.71,322.89,250,322.89z`},null,8,ns),e("path",{fill:s.color,d:`M250,319.89c-1.83,0-3.67-0.7-5.07-2.1c-2.8-2.8-2.8-7.33,0-10.13l46.28-46.28c2.8-2.8,7.33-2.8,10.13,0\r c2.8,2.8,2.8,7.33,0,10.13l-46.28,46.28C253.67,319.19,251.83,319.89,250,319.89z`},null,8,ls)]),e("g",null,[e("path",{fill:s.color,d:`M250,322.89c-2.71,0-5.27-1.06-7.19-2.98l-46.3-46.28c-1.92-1.92-2.98-4.47-2.98-7.19s1.06-5.27,2.98-7.19\r c1.92-1.92,4.47-2.98,7.19-2.98c2.71,0,5.27,1.06,7.19,2.98l46.3,46.28c1.92,1.92,2.98,4.47,2.98,7.19s-1.06,5.27-2.98,7.19\r C255.27,321.83,252.71,322.89,250,322.89z`},null,8,as),e("path",{fill:s.color,d:`M250,319.89c-1.83,0-3.67-0.7-5.07-2.1l-46.3-46.28c-2.8-2.8-2.8-7.33,0-10.13c2.8-2.8,7.33-2.8,10.13,0\r l46.3,46.28c2.8,2.8,2.8,7.33,0,10.13C253.67,319.19,251.83,319.89,250,319.89z`},null,8,rs)]),e("g",null,[e("path",{fill:s.color,d:`M209.96,351.36c-5.6,0-10.16-4.56-10.16-10.16c0-5.6,4.56-10.16,10.16-10.16h80.09\r c5.6,0,10.16,4.56,10.16,10.16c0,5.6-4.56,10.16-10.16,10.16H209.96z`},null,8,ds),e("path",{fill:s.color,d:`M290.04,348.36h-80.09c-3.96,0-7.16-3.2-7.16-7.16s3.2-7.16,7.16-7.16h80.09c3.96,0,7.16,3.2,7.16,7.16\r S294,348.36,290.04,348.36z`},null,8,cs)])])])}const A=k(Wt,[["render",_s]]),hs={props:["color"],data(){return{}}},vs={viewBox:"0 0 500 500",focusable:"false"},ys=["fill"],ms=["fill"],us=["fill"],ps=["fill"],fs=["fill"],ks=["fill"],gs=["fill"],bs=["fill"],ws=["fill"],$s=["fill"];function Ds(o,t,s,n,_,r){return d(),h("svg",vs,[e("g",null,[e("g",null,[e("path",{fill:s.color,d:`M117.86,486.47c-57.53,0-104.33-46.8-104.33-104.33V117.86c0-57.53,46.8-104.33,104.33-104.33h264.29\r c57.52,0,104.31,46.8,104.31,104.33v264.28c0,57.53-46.79,104.33-104.31,104.33H117.86z M117.86,33.86c-46.32,0-84,37.68-84,84\r v264.28c0,46.32,37.68,84,84,84h264.29c46.31,0,83.99-37.68,83.99-84V117.86c0-46.32-37.68-84-83.99-84H117.86z`},null,8,ys),e("path",{fill:s.color,d:`M382.15,483.47H117.86c-55.87,0-101.33-45.46-101.33-101.33V117.86c0-55.87,45.46-101.33,101.33-101.33\r h264.29c55.87,0,101.31,45.46,101.31,101.33v264.28C483.47,438.01,438.02,483.47,382.15,483.47z M117.86,30.86\r c-47.98,0-87,39.02-87,87v264.28c0,47.98,39.02,87,87,87h264.29c47.96,0,86.99-39.02,86.99-87V117.86c0-47.98-39.02-87-86.99-87\r H117.86z`},null,8,ms)]),e("g",null,[e("path",{fill:s.color,d:`M250,322.89c-5.6,0-10.16-4.56-10.16-10.16V158.8c0-5.6,4.56-10.16,10.16-10.16c5.6,0,10.16,4.56,10.16,10.16\r v153.92C260.16,318.33,255.6,322.89,250,322.89z`},null,8,us),e("path",{fill:s.color,d:`M250,319.89c-3.96,0-7.16-3.2-7.16-7.16V158.8c0-3.96,3.2-7.16,7.16-7.16s7.16,3.2,7.16,7.16v153.92\r C257.16,316.68,253.96,319.89,250,319.89z`},null,8,ps)]),e("g",null,[e("path",{fill:s.color,d:`M203.72,215.25c-2.71,0-5.27-1.06-7.19-2.98c-3.96-3.96-3.96-10.41,0-14.37l46.28-46.28\r c1.92-1.92,4.47-2.98,7.19-2.98s5.27,1.06,7.19,2.98c3.96,3.96,3.96,10.41,0,14.37l-46.29,46.28\r C208.98,214.19,206.43,215.25,203.72,215.25z`},null,8,fs),e("path",{fill:s.color,d:`M203.72,212.25c-1.83,0-3.67-0.7-5.07-2.1c-2.8-2.8-2.8-7.33,0-10.13l46.28-46.28c2.8-2.8,7.33-2.8,10.13,0\r c2.8,2.8,2.8,7.33,0,10.13l-46.28,46.28C207.38,211.55,205.55,212.25,203.72,212.25z`},null,8,ks)]),e("g",null,[e("path",{fill:s.color,d:`M296.3,215.25c-2.71,0-5.27-1.06-7.19-2.98l-46.3-46.28c-1.92-1.92-2.98-4.47-2.98-7.19s1.06-5.27,2.98-7.19\r c1.92-1.92,4.47-2.98,7.19-2.98s5.27,1.06,7.19,2.98l46.3,46.28c1.92,1.92,2.98,4.47,2.98,7.19s-1.06,5.27-2.98,7.19\r C301.57,214.19,299.01,215.25,296.3,215.25z`},null,8,gs),e("path",{fill:s.color,d:`M296.3,212.25c-1.83,0-3.67-0.7-5.07-2.1l-46.3-46.28c-2.8-2.8-2.8-7.33,0-10.13c2.8-2.8,7.33-2.8,10.13,0\r l46.3,46.28c2.8,2.8,2.8,7.33,0,10.13C299.96,211.55,298.13,212.25,296.3,212.25z`},null,8,bs)]),e("g",null,[e("path",{fill:s.color,d:`M209.96,351.36c-5.6,0-10.16-4.56-10.16-10.16s4.56-10.16,10.16-10.16h80.09c5.6,0,10.16,4.56,10.16,10.16\r s-4.56,10.16-10.16,10.16H209.96z`},null,8,ws),e("path",{fill:s.color,d:`M290.04,348.36h-80.09c-3.96,0-7.16-3.2-7.16-7.16s3.2-7.16,7.16-7.16h80.09c3.96,0,7.16,3.2,7.16,7.16\r S294,348.36,290.04,348.36z`},null,8,$s)])])])}const Y=k(hs,[["render",Ds]]),Cs={props:["color"],data(){return{}}},Ss={viewBox:"0 0 500 500",focusable:"false"},Ms=["fill"],xs=["fill"],Ns=["fill"],Os=["fill"],zs=["fill"],Ts=["fill"],js=["fill"],Ls=["fill"],Es=["fill"],Js=["fill"];function Hs(o,t,s,n,_,r){return d(),h("svg",Ss,[e("g",null,[e("g",null,[e("path",{fill:s.color,d:`M117.86,486.47c-57.53,0-104.33-46.8-104.33-104.33V117.86c0-57.53,46.8-104.33,104.33-104.33h264.28\r c57.53,0,104.33,46.8,104.33,104.33v264.28c0,57.53-46.8,104.33-104.33,104.33H117.86z M117.86,33.86c-46.32,0-84,37.68-84,84\r v264.28c0,46.32,37.68,84,84,84h264.28c46.32,0,84-37.68,84-84V117.86c0-46.32-37.68-84-84-84H117.86z`},null,8,Ms),e("path",{fill:s.color,d:`M382.14,483.47H117.86c-55.87,0-101.33-45.46-101.33-101.33V117.86c0-55.87,45.46-101.33,101.33-101.33\r h264.28c55.87,0,101.33,45.46,101.33,101.33v264.28C483.47,438.01,438.01,483.47,382.14,483.47z M117.86,30.86\r c-47.98,0-87,39.02-87,87v264.28c0,47.98,39.02,87,87,87h264.28c47.98,0,87-39.02,87-87V117.86c0-47.98-39.02-87-87-87H117.86z`},null,8,xs)]),e("g",null,[e("path",{fill:s.color,d:`M250,359.73c-5.6,0-10.16-4.56-10.16-10.16V195.63c0-5.6,4.56-10.16,10.16-10.16\r c5.6,0,10.16,4.56,10.16,10.16v153.94C260.16,355.17,255.6,359.73,250,359.73z`},null,8,Ns),e("path",{fill:s.color,d:`M250,356.73c-3.96,0-7.16-3.2-7.16-7.16V195.63c0-3.96,3.2-7.16,7.16-7.16s7.16,3.2,7.16,7.16v153.94\r C257.16,353.52,253.96,356.73,250,356.73z`},null,8,Os)]),e("g",null,[e("path",{fill:s.color,d:`M203.72,252.08c-2.71,0-5.27-1.06-7.19-2.98c-3.96-3.96-3.96-10.41,0-14.37l46.28-46.28\r c1.92-1.92,4.47-2.98,7.19-2.98s5.27,1.06,7.19,2.98c3.96,3.96,3.96,10.41,0,14.37L210.9,249.1\r C208.98,251.02,206.43,252.08,203.72,252.08z`},null,8,zs),e("path",{fill:s.color,d:`M203.72,249.08c-1.83,0-3.67-0.7-5.07-2.1c-2.8-2.8-2.8-7.33,0-10.13l46.28-46.28c2.8-2.8,7.33-2.8,10.13,0\r s2.8,7.33,0,10.13l-46.28,46.28C207.38,248.38,205.55,249.08,203.72,249.08z`},null,8,Ts)]),e("g",null,[e("path",{fill:s.color,d:`M296.3,252.08c-2.71,0-5.27-1.06-7.19-2.98l-46.3-46.28c-1.92-1.92-2.98-4.47-2.98-7.19s1.06-5.27,2.98-7.19\r c1.92-1.92,4.47-2.98,7.19-2.98s5.27,1.06,7.19,2.98l46.3,46.28c1.92,1.92,2.98,4.47,2.98,7.19s-1.06,5.27-2.98,7.19\r C301.57,251.02,299.01,252.08,296.3,252.08z`},null,8,js),e("path",{fill:s.color,d:`M296.3,249.08c-1.83,0-3.67-0.7-5.07-2.1l-46.3-46.28c-2.8-2.8-2.8-7.33,0-10.13c2.8-2.8,7.33-2.8,10.13,0\r l46.3,46.28c2.8,2.8,2.8,7.33,0,10.13C299.96,248.38,298.13,249.08,296.3,249.08z`},null,8,Ls)]),e("g",null,[e("path",{fill:s.color,d:`M209.96,160.61c-5.6,0-10.16-4.56-10.16-10.16c0-5.6,4.56-10.16,10.16-10.16h80.09\r c5.6,0,10.16,4.56,10.16,10.16c0,5.6-4.56,10.16-10.16,10.16H209.96z`},null,8,Es),e("path",{fill:s.color,d:`M290.04,157.61h-80.09c-3.96,0-7.16-3.2-7.16-7.16s3.2-7.16,7.16-7.16h80.09c3.96,0,7.16,3.2,7.16,7.16\r S294,157.61,290.04,157.61z`},null,8,Js)])])])}const F=k(Cs,[["render",Hs]]),Vs={props:["vertical","thickness"],data(){return{}}};function Is(o,t,s,n,_,r){return d(),w(q,null,{default:y(()=>[s.vertical?(d(),h("div",{key:0,style:S({height:"100%",width:s.thickness})},null,4)):(d(),h("div",{key:1,style:S({width:"100%",height:s.thickness})},null,4))]),_:1})}const j=k(Vs,[["render",Is]]),Ks={props:["color"],data(){return{}}},Ps={viewBox:"0 0 24 24",focusable:"false","aria-hidden":"true"},Us=["fill"];function Bs(o,t,s,n,_,r){return d(),h("svg",Ps,[e("path",{fill:s.color,d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z"},null,8,Us)])}const Gs=k(Ks,[["render",Bs]]),Qs={props:["color"],data(){return{}}},Zs={version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 500 500",style:{"enable-background":"new 0 0 500 500"},"xml:space":"preserve"},As=["fill"];function Ys(o,t,s,n,_,r){return d(),h("svg",Zs,[e("g",null,[e("path",{fill:s.color,d:`M341.09,396.5c-1.5,0-3.04-0.24-4.54-0.78c-7.14-2.49-10.91-10.32-8.4-17.48\r c13.33-38.06,20.09-77.94,20.09-118.59c0-47.21-9.03-93.07-26.87-136.33c-2.88-7.01,0.46-15.02,7.46-17.92\r c6.98-2.8,15.02,0.47,17.92,7.46c19.2,46.58,28.93,95.97,28.93,146.79c0,43.73-7.28,86.69-21.64,127.65\r C352.07,392.96,346.76,396.5,341.09,396.5z`},null,8,As)])])}const Fs=k(Qs,[["render",Ys]]),p=1.5*16,Xs={props:["max","val"],emits:["update:val"],data(){return{value:this.val,width_min:p,width_max:p*this.max,width:p,width_slider:p,state:this.val===0?"NONE":"CLICK",slider_show:!1,moved:!1,origin_x:0,origin_y:0}},mounted(){this.width_slider=this.width_min,this.value=this.val,this.width=p*this.value,this.width=this.width===0?this.width_min:this.width,this.width_slider=this.width,this.value!==0&&(this.state="CLICK")},methods:{on_click(){if(this.state==="CLICK"){this.state="NONE",this.slider_show=!1,this.width=this.width_min,this.width_slider=this.width_min,this.value=0,this.$emit("update:val",this.value);return}this.state==="NONE"&&(this.width=this.width_min,this.state="CLICK")},on_reset(o){o.preventDefault(),this.reset()},on_mouse_down(o){this.origin_x=o.clientX,this.origin_y=o.clientY,this.moved=!1;let t=0;this.slider_show=!0;let s=()=>{Number(this.width_slider)<=Number(this.width_min)&&(this.width_slider=this.width_min),Number(this.width_slider)>=Number(p*this.max)&&(this.width_slider=p*this.max)};document.onmousemove=n=>{this.state="CLICK",this.moved=!0,t=Number(n.clientX-this.origin_x),this.origin_x=n.clientX,this.width_slider+=t,t=0,s(),this.width=this.width_slider,p*10<=this.width&&(this.width=p*12,this.value=12),p*6<=this.width&&this.width{if(document.onmousemove=null,document.onmouseup=null,s(),this.width=this.width_slider,!this.moved){if(this.state==="CLICK"){this.state="NONE",this.slider_show=!1,this.width=this.width_min,this.width_slider=this.width_min,this.value=0,this.$emit("update:val",this.value);return}this.state==="NONE"&&(this.width=this.width_min,this.state="CLICK")}this.slider_show=!1,p*10<=this.width&&(this.width=p*12,this.value=12),p*6<=this.width&&this.width(d(),h("div",{onMousedown:s[0]||(s[0]=n=>t.on_mouse_down(n)),onContextmenu:s[1]||(s[1]=n=>t.on_reset(n)),class:"center wrapper"},[c(Gs,{color:"var(--color-90)",style:{width:"1rem","z-index":"1"}}),t.state==="CLICK"?(d(),h("div",{key:0,class:"circle_bar",style:S({width:t.width+"px","z-index":t.widthMath.round(o/this.rtPrecision)),this.key_map=E(),this.from_advanced_key(),O.on("on_key_select",o=>{this.name=o.name,this.pos=o.pos})},methods:{toDisplayDistance(o){return(o/100/(10/this.rtPrecision)).toFixed(2)+" mm"},on_click(o){for(let t=0;t{const n=$("n-button");return d(),h("div",Rs,[e("div",Ws,[e("div",eo,a(i(l)("select_dks_desc_0")),1),e("div",to,[c(n,{type:"error",ghost:"",onClick:s[0]||(s[0]=_=>t.on_cancel()),style:{"margin-right":"1rem"}},{default:y(()=>[e("div",so,a(i(l)("cancel")),1)]),_:1}),c(n,{type:"info",onClick:s[1]||(s[1]=_=>t.on_save()),disabled:t.pos===0},{default:y(()=>[e("div",oo,a(i(l)("save")),1)]),_:1},8,["disabled"])])]),s[13]||(s[13]=e("div",{class:"row",style:{"border-bottom":"1px solid var(--color-80)","margin-top":"0.5rem"}},null,-1)),e("div",io,[e("div",no,[e("div",lo,[e("div",ao,a(i(l)("select_dks_desc_1")),1),e("div",ro,a(i(l)("select_dks_desc_2")),1)]),e("div",co,[e("div",_o,a(i(l)("select_dks_desc_3")),1),e("div",ho,[e("div",vo,a(i(l)(t.name)),1)]),e("div",yo,a(i(l)("select_dks_desc_4")),1)])]),e("div",mo,[e("div",uo,[e("div",po,[e("div",fo,[e("div",ko,[s[9]||(s[9]=e("div",{class:"col"},null,-1)),e("div",{class:"col center",style:{color:"var(--color-65)","text-decoration":"underline"},onClick:s[2]||(s[2]=_=>t.on_range_set(0))},a(t.toDisplayDistance(t.distance[0])),1),e("div",{class:"col center",style:{color:"var(--color-65)","text-decoration":"underline"},onClick:s[3]||(s[3]=_=>t.on_range_set(1))},a(t.toDisplayDistance(t.distance[1])),1),e("div",{class:"col center",style:{color:"var(--color-65)","text-decoration":"underline"},onClick:s[4]||(s[4]=_=>t.on_range_set(2))},a(t.toDisplayDistance(t.distance[2])),1),e("div",{class:"col center",style:{color:"var(--color-65)","text-decoration":"underline"},onClick:s[5]||(s[5]=_=>t.on_range_set(3))},a(t.toDisplayDistance(t.distance[3])),1)]),e("div",go,[s[10]||(s[10]=e("div",{class:"col"},null,-1)),e("div",bo,[e("div",wo,[c(Z,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_5")),1)]),_:1})]),c(j,{style:{"background-color":"var(--color-80)",position:"absolute",height:"12rem",top:"5rem"},vertical:!0,thickness:"1px"})]),e("div",$o,[e("div",Do,[c(A,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_6")),1)]),_:1})]),c(j,{style:{"background-color":"var(--color-80)",position:"absolute",height:"12rem",top:"5rem"},vertical:!0,thickness:"1px"})]),e("div",Co,[e("div",So,[c(Y,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_7")),1)]),_:1})]),c(j,{style:{"background-color":"var(--color-80)",position:"absolute",height:"12rem",top:"5rem"},vertical:!0,thickness:"1px"})]),e("div",Mo,[e("div",xo,[c(F,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_8")),1)]),_:1})]),c(j,{style:{"background-color":"var(--color-80)",position:"absolute",height:"12rem",top:"5rem"},vertical:!0,thickness:"1px"})])]),(d(!0),h(g,null,b(t.keys,(_,r)=>(d(),h("div",No,[e("div",Oo,[e("div",{class:"item-bind-key",onDrop:m=>t.on_drag_end(m,r),onDragover:m=>t.on_drag_over(m,r)},[e("div",null,a(i(l)(_.name)),1),_.name!==""?(d(),h("div",{key:0,class:"item-bind-key-close-wrapper",onClick:()=>{t.keys[r].name="",t.keys[r].value=""}},[c(N,{class:"item-bind-key-close"})],8,To)):u("",!0)],40,zo)]),e("div",jo,[c(L,{max:_.sets[1]!==0?4:_.sets[2]!==0?8:12,val:_.sets[0],"onUpdate:val":m=>_.sets[0]=m},null,8,["max","val","onUpdate:val"])]),e("div",Lo,[c(L,{max:_.sets[2]===0?8:4,val:_.sets[1],"onUpdate:val":m=>_.sets[1]=m},null,8,["max","val","onUpdate:val"])]),e("div",Eo,[c(L,{max:4,val:_.sets[2],"onUpdate:val":m=>_.sets[2]=m},null,8,["val","onUpdate:val"])]),e("div",Jo,[c(L,{max:1,val:_.sets[3],"onUpdate:val":m=>_.sets[3]=m},null,8,["val","onUpdate:val"])])]))),256))]),s[11]||(s[11]=e("div",null,null,-1))])])]),e("div",Ho,[c(x,{style:{width:"100%",height:"22rem"}},{default:y(()=>[c(H,null,{default:y(()=>[(d(!0),h(g,null,b(t.key_map,_=>(d(),w(J,{"dense-toggle":"","expand-separator":"",label:i(l)(_.item),style:{color:"var(--text-primary)"}},{default:y(()=>[c(M,{style:{"background-color":"var(--color-95)"}},{default:y(()=>[e("div",Vo,[(d(!0),h(g,null,b(_.data,r=>(d(),h("div",{class:"menu-item",draggable:"true",onClick:m=>t.on_click(r),onDragstart:m=>t.on_drag_start(m,r)},a(i(l)(r.name)),41,Io))),256))])]),_:2},1024)]),_:2},1032,["label"]))),256))]),_:1})]),_:1})])]),c(oe,{modelValue:t.popover_start,"onUpdate:modelValue":s[8]||(s[8]=_=>t.popover_start=_),persistent:!0},{default:y(()=>[c(M,{style:{width:"24rem",height:"14rem","background-color":"var(--color-94)","user-select":"none"}},{default:y(()=>[e("div",{class:"popover-close",onClick:s[6]||(s[6]=_=>t.on_popover_range_close())},[c(N,{style:{color:"var(--white)"}})]),e("div",Ko,[s[12]||(s[12]=e("div",{style:{"justify-content":"center","align-items":"center"}},[e("img",{alt:"switch",style:{width:"8rem"},draggable:"false",src:Rt})],-1)),e("div",null,[c(se,{style:{height:"10rem"},"model-value":t.value/(10/t.rtPrecision),min:10,max:400,step:10/t.rtPrecision,vertical:"","label-value":t.toDisplayDistance(t.value),"label-always":"","onUpdate:modelValue":s[7]||(s[7]=_=>{t.value=Math.round(_*(10/t.rtPrecision))})},null,8,["model-value","step","label-value"])]),e("div",Po,[e("div",Uo,a(i(l)("select_dks_desc_9")),1),e("div",Bo,[e("div",Go,[t.range_idx===0?(d(),h("div",Qo,[c(Z,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_10")),1)]),_:1})])):u("",!0),t.range_idx===1?(d(),h("div",Zo,[c(A,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_11")),1)]),_:1})])):u("",!0),t.range_idx===2?(d(),h("div",Ao,[c(Y,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_12")),1)]),_:1})])):u("",!0),t.range_idx===3?(d(),h("div",Yo,[c(F,{color:"var(--color-72)"}),c(C,{class:"bg-amber text-dark text-body2"},{default:y(()=>[D(a(i(l)("select_dks_desc_13")),1)]),_:1})])):u("",!0)])])])])]),_:1})]),_:1},8,["modelValue"])])}}}),qo=k(Xo,[["__scopeId","data-v-248be408"]]),Ro={class:"col"},Wo={class:"row",style:{"justify-content":"space-between"}},ei={style:{"font-size":"1.2rem","font-weight":"bold","margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)"}},ti={class:"row",style:{"margin-top":"0.5rem","margin-right":"2rem"}},si={style:{color:"red"}},oi={style:{color:"white"}},ii={class:"row",style:{height:"22rem","user-select":"none"}},ni={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},li={class:"col",style:{"margin-left":"2rem","border-bottom":"1px solid var(--color-80)"}},ai={class:"row",style:{"margin-top":"1rem","font-size":"1.1rem","font-weight":"bold",color:"var(--color-55)"}},ri={class:"row",style:{"margin-top":"0.5rem",color:"var(--color-55)"}},di={class:"col",style:{"align-items":"center"}},ci={class:"row",style:{"justify-content":"center","margin-top":"4rem"}},_i={class:"row",style:{"justify-content":"center","margin-top":"0.5rem"}},hi={class:"row bind-key",style:{border:"1px solid var(--color-80)"}},vi={class:"row",style:{"justify-content":"center","margin-top":"0.5rem",color:"var(--color-55)"}},yi={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},mi={class:"col"},ui={class:"row",style:{"justify-content":"center","margin-top":"3rem"}},pi={class:"row",style:{width:"12rem",gap:"2rem"}},fi={class:"col"},ki={class:"row",style:{"justify-content":"center",width:"6rem"}},gi={class:"col"},bi={class:"row",style:{"justify-content":"center",width:"6rem"}},wi={class:"row",style:{"justify-content":"center","font-weight":"bold","margin-top":"2rem"}},$i={class:"row",style:{"justify-content":"center","font-size":"0.7rem","margin-top":"0.5rem"}},Di={class:"row",style:{"justify-content":"center","margin-top":"1rem"}},Ci={class:"col col-4"},Si={class:"row menu-item-wrapper"},Mi=["onClick","onDragstart"],xi={props:["status","advanced_keys_context"],emits:["update:status","save"],data(){return{key_map:[],delay_time:200,name:"",pos:0,bind_keys:[{name:"",value:""},{name:"",value:""}]}},created(){this.key_map=E(),this.load_from_advanced(),O.on("on_key_select",o=>{this.name=o.name,this.pos=o.pos})},methods:{load_from_advanced(){try{if(this.$props.advanced_keys_context===null)return;this.name=this.$props.advanced_keys_context.name,this.pos=this.$props.advanced_keys_context.pos,this.delay_time=this.$props.advanced_keys_context.delay_time,this.bind_keys=this.$props.advanced_keys_context.keys}catch{}},on_drag_start(o,t){o.dataTransfer.setData("data",JSON.stringify(t))},on_cancel(){this.$emit("update:status",v.IDLE)},on_save(){this.$emit("save",{pos:this.pos,name:this.name,type:v.MT,keys:JSON.parse(JSON.stringify(this.bind_keys)),delay_time:this.delay_time}),this.$emit("update:status",v.IDLE)},on_drag_over(o){o.preventDefault()},on_click(o){for(let t=0;t{const n=$("n-button"),_=$("n-slider");return d(),h("div",Ro,[e("div",Wo,[e("div",ei,a(i(l)("select_mt_desc_0")),1),e("div",ti,[c(n,{type:"error",ghost:"",onClick:s[0]||(s[0]=r=>t.on_cancel()),style:{"margin-right":"1rem"}},{default:y(()=>[e("div",si,a(i(l)("cancel")),1)]),_:1}),c(n,{type:"info",onClick:s[1]||(s[1]=r=>t.on_save()),disabled:t.pos===0},{default:y(()=>[e("div",oi,a(i(l)("save")),1)]),_:1},8,["disabled"])])]),s[9]||(s[9]=e("div",{class:"row",style:{"border-bottom":"1px solid var(--color-80)","margin-top":"0.5rem"}},null,-1)),e("div",ii,[e("div",ni,[e("div",li,[e("div",ai,a(i(l)("select_mt_desc_1")),1),e("div",ri,a(i(l)("select_mt_desc_2")),1)]),e("div",di,[e("div",ci,a(i(l)("select_mt_desc_3")),1),e("div",_i,[e("div",hi,a(i(l)(t.name)),1)]),e("div",vi,a(i(l)("select_mt_desc_4")),1)])]),e("div",yi,[e("div",mi,[e("div",ui,[e("div",pi,[e("div",fi,[e("div",ki,a(i(l)("press")),1),e("div",{class:"bind-key",style:{"margin-top":"0.5rem"},onDragover:s[3]||(s[3]=r=>t.on_drag_over(r)),onDrop:s[4]||(s[4]=r=>t.on_drag_end(r,0))},[e("div",null,a(i(l)(t.bind_keys[0].name)),1),t.bind_keys[0].name!==""?(d(),h("div",{key:0,class:"item-bind-key-close-wrapper",onClick:s[2]||(s[2]=()=>{t.bind_keys[0].name="",t.bind_keys[0].value=""})},[c(N,{color:"var(--white)",class:"item-bind-key-close"})])):u("",!0)],32)]),e("div",gi,[e("div",bi,a(i(l)("single_click")),1),e("div",{class:"bind-key",style:{"margin-top":"0.5rem"},onDragover:s[6]||(s[6]=r=>t.on_drag_over(r)),onDrop:s[7]||(s[7]=r=>t.on_drag_end(r,1))},[e("div",null,a(i(l)(t.bind_keys[1].name)),1),t.bind_keys[1].name!==""?(d(),h("div",{key:0,class:"item-bind-key-close-wrapper",onClick:s[5]||(s[5]=()=>{t.bind_keys[1].name="",t.bind_keys[1].value=""})},[c(N,{color:"var(--white)",class:"item-bind-key-close"})])):u("",!0)],32)])])]),e("div",wi,a(i(l)("select_mt_desc_5")),1),e("div",$i,a(i(l)("select_mt_desc_6")),1),e("div",Di,[c(_,{value:t.delay_time,"onUpdate:value":s[8]||(s[8]=r=>t.delay_time=r),style:{width:"20rem"},"show-tooltip":"",min:0,max:"1000","format-tooltip":r=>r+"ms",placement:"bottom"},null,8,["value","format-tooltip"])])])]),e("div",Ci,[c(x,{style:{width:"100%",height:"22rem"}},{default:y(()=>[c(H,null,{default:y(()=>[(d(!0),h(g,null,b(t.key_map,r=>(d(),w(J,{"dense-toggle":"","expand-separator":"",label:i(l)(r.item),style:{color:"var(--text-primary)"}},{default:y(()=>[c(M,{style:{"background-color":"var(--color-95)"}},{default:y(()=>[e("div",Si,[(d(!0),h(g,null,b(r.data,m=>(d(),h("div",{class:"menu-item",draggable:"true",onClick:f=>t.on_click(m),onDragstart:f=>t.on_drag_start(f,m)},a(i(l)(m.name)),41,Mi))),256))])]),_:2},1024)]),_:2},1032,["label"]))),256))]),_:1})]),_:1})])])])}}}),Oi=k(Ni,[["__scopeId","data-v-7e7c7f80"]]),zi={class:"col"},Ti={class:"row",style:{"justify-content":"space-between"}},ji={style:{"font-size":"1.2rem","font-weight":"bold","margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)"}},Li={class:"row",style:{"margin-top":"0.5rem","margin-right":"2rem"}},Ei={style:{color:"red"}},Ji={style:{color:"white"}},Hi={class:"row",style:{height:"22rem","user-select":"none"}},Vi={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},Ii={class:"col",style:{"margin-left":"2rem","border-bottom":"1px solid var(--color-80)"}},Ki={class:"row",style:{"margin-top":"1rem","font-size":"1.1rem","font-weight":"bold",color:"var(--color-55)"}},Pi={class:"row",style:{"margin-top":"0.5rem",color:"var(--color-55)"}},Ui={class:"col",style:{"align-items":"center"}},Bi={class:"row",style:{"justify-content":"center","margin-top":"4rem"}},Gi={class:"row",style:{"justify-content":"center",width:"20%"}},Qi={class:"row",style:{"justify-content":"center"}},Zi={class:"row bind-key",style:{border:"1px solid var(--color-80)"}},Ai={class:"row",style:{"justify-content":"center",width:"20%"}},Yi={class:"row bind-key",style:{border:"1px solid var(--color-80)"}},Fi={class:"row",style:{"justify-content":"center","margin-top":"0.5rem",color:"var(--color-55)"}},Xi={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},qi={class:"col",style:{width:"100%","border-bottom":"1px solid var(--color-80)"}},Ri={style:{"margin-top":"1rem","margin-left":"2rem","font-size":"1.1rem","font-weight":"bold",color:"var(--color-55)"}},Wi={style:{"margin-top":"0.5rem",color:"var(--color-60)"}},en={style:{"margin-left":"2rem"}},tn={style:{"margin-left":"2rem","margin-top":"3rem"}},sn={class:"row"},on={style:{"font-weight":"bold"}},nn={style:{"margin-left":"1rem"}},ln={props:["status","advanced_keys_context"],emits:["update:status","save"],data(){return{socd_type:1,socd_type_options:[{label:l("select_socd_desc_7"),desc:l("select_socd_desc_8"),value:1},{label:l("select_socd_desc_9"),desc:l("select_socd_desc_10"),value:3},{label:l("select_socd_desc_11"),desc:l("select_socd_desc_12"),value:4},{label:l("select_socd_desc_13"),desc:l("select_socd_desc_14"),value:0}],bind_keys:[{name:"",value:0},{name:"",value:0}]}},created(){this.load_from_advanced(),O.on("on_key_select",o=>{console.log(o),this.on_select({name:o.name,value:o.pos})})},methods:{load_from_advanced(){try{if(this.$props.advanced_keys_context===null)return;this.bind_keys=this.$props.advanced_keys_context.keys,this.socd_type=this.$props.advanced_keys_context.socd_type}catch{}},on_cancel(){this.$emit("update:status",v.IDLE)},on_save(){this.$emit("save",{type:v.SOCD,keys:JSON.parse(JSON.stringify(this.bind_keys)),socd_type:this.socd_type}),this.$emit("update:status",v.IDLE)},on_select(o){for(let t=0;t{const n=$("n-button"),_=$("n-radio"),r=$("n-space"),m=$("n-radio-group");return d(),h("div",zi,[e("div",Ti,[e("div",ji,a(i(l)("select_socd_desc_0")),1),e("div",Li,[c(n,{type:"error",ghost:"",onClick:s[0]||(s[0]=f=>t.on_cancel()),style:{"margin-right":"1rem"}},{default:y(()=>[e("div",Ei,a(i(l)("cancel")),1)]),_:1}),c(n,{type:"info",onClick:s[1]||(s[1]=f=>t.on_save()),disabled:t.bind_keys[0].value===0||t.bind_keys[1].value===0||t.bind_keys[0].value===t.bind_keys[1].value},{default:y(()=>[e("div",Ji,a(i(l)("save")),1)]),_:1},8,["disabled"])])]),s[4]||(s[4]=e("div",{class:"row",style:{"border-bottom":"1px solid var(--color-80)","margin-top":"0.5rem"}},null,-1)),e("div",Hi,[e("div",Vi,[e("div",Ii,[e("div",Ki,a(i(l)("select_socd_desc_1")),1),e("div",Pi,a(i(l)("select_socd_desc_2")),1)]),e("div",Ui,[e("div",Bi,[e("div",Gi,[e("div",Qi,a(i(l)("select_socd_desc_3"))+"1 ",1),e("div",Zi,a(i(l)(t.bind_keys[0].name)),1)]),e("div",Ai,[e("div",null,a(i(l)("select_socd_desc_3"))+"2",1),e("div",Yi,a(i(l)(t.bind_keys[1].name)),1)])]),e("div",Fi,a(i(l)("select_socd_desc_4")),1)])]),e("div",Xi,[e("div",qi,[e("div",Ri,a(i(l)("select_socd_desc_5")),1),e("div",Wi,[e("div",en,a(i(l)("select_socd_desc_6")),1)])]),e("div",tn,[c(m,{value:t.socd_type,"onUpdate:value":s[2]||(s[2]=f=>t.socd_type=f),name:"radiogroup"},{default:y(()=>[c(r,{style:{display:"flex","flex-direction":"column",gap:"1rem"}},{default:y(()=>[(d(!0),h(g,null,b(t.socd_type_options,f=>(d(),w(_,{key:f.value,value:f.value},{default:y(()=>[e("div",sn,[e("div",on,a(f.label),1),e("div",nn,a(f.desc),1)])]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["value"])])]),s[3]||(s[3]=e("div",{class:"col col-4"},null,-1))])])}}}),rn=k(an,[["__scopeId","data-v-7ab66f24"]]),dn={class:"col"},cn={class:"row",style:{"justify-content":"space-between"}},_n={style:{"font-size":"1.2rem","font-weight":"bold","margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)"}},hn={class:"row",style:{"margin-top":"0.5rem","margin-right":"2rem"}},vn={style:{color:"red"}},yn={style:{color:"white"}},mn={class:"row",style:{height:"22rem","user-select":"none"}},un={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},pn={class:"col",style:{"margin-left":"2rem","border-bottom":"1px solid var(--color-80)"}},fn={class:"row",style:{"margin-top":"1rem","font-size":"1.1rem","font-weight":"bold",color:"var(--color-55)"}},kn={class:"row",style:{"margin-top":"0.5rem",color:"var(--color-55)"}},gn={class:"col",style:{"align-items":"center"}},bn={class:"row",style:{"justify-content":"center","margin-top":"4rem"}},wn={class:"row",style:{"justify-content":"center","margin-top":"0.5rem"}},$n={class:"row bind-key",style:{border:"1px solid var(--color-80)"}},Dn={class:"row",style:{"justify-content":"center","margin-top":"0.5rem",color:"var(--color-55)"}},Cn={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},Sn={class:"row",style:{height:"22rem",width:"100%"}},Mn={class:"col"},xn={class:"row",style:{"justify-content":"center","margin-top":"5rem"}},Nn={class:"row",style:{"justify-content":"center","margin-top":"1rem","font-weight":"bold"}},On={class:"row",style:{"justify-content":"center","margin-top":"0.5rem"}},zn={style:{"font-size":"0.7rem",width:"60%"}},Tn={class:"row",style:{"justify-content":"center","margin-top":"1rem"}},jn={class:"col col-4"},Ln={class:"row menu-item-wrapper"},En=["onDragstart","onClick"],Jn={props:["status","advanced_keys_context"],emits:["update:status","save"],data(){return{key_map:[],delay_time:200,name:"",pos:0,bind_keys:[{name:"",value:""}]}},created(){this.key_map=E(),this.load_from_advanced(),O.on("on_key_select",o=>{this.name=o.name,this.pos=o.pos})},methods:{load_from_advanced(){try{if(this.$props.advanced_keys_context===null)return;this.name=this.$props.advanced_keys_context.name,this.pos=this.$props.advanced_keys_context.pos,this.delay_time=this.$props.advanced_keys_context.delay_time,this.bind_keys=this.$props.advanced_keys_context.keys}catch{}},on_drag_start(o,t){o.dataTransfer.setData("data",JSON.stringify(t))},on_cancel(){this.$emit("update:status",v.IDLE)},on_save(){this.$emit("save",{pos:this.pos,name:this.name,type:v.TGL,keys:JSON.parse(JSON.stringify(this.bind_keys)),delay_time:this.delay_time}),this.$emit("update:status",v.IDLE)},on_drag_over(o){o.preventDefault()},on_click(o){this.bind_keys[0].name=o.name,this.bind_keys[0].value=o.data},on_drag_end(o){let t=JSON.parse(o.dataTransfer.getData("data"));this.bind_keys[0].name=t.name,this.bind_keys[0].value=t.data}}},Hn=Object.assign(Jn,{__name:"SelectTGL",setup(o){return(t,s)=>{const n=$("n-button"),_=$("n-slider");return d(),h("div",dn,[e("div",cn,[e("div",_n,a(i(l)("select_tgl_desc_0")),1),e("div",hn,[c(n,{type:"error",ghost:"",onClick:s[0]||(s[0]=r=>t.on_cancel()),style:{"margin-right":"1rem"}},{default:y(()=>[e("div",vn,a(i(l)("cancel")),1)]),_:1}),c(n,{type:"info",onClick:s[1]||(s[1]=r=>t.on_save()),disabled:t.pos===0},{default:y(()=>[e("div",yn,a(i(l)("save")),1)]),_:1},8,["disabled"])])]),s[6]||(s[6]=e("div",{class:"row",style:{"border-bottom":"1px solid var(--color-80)","margin-top":"0.5rem"}},null,-1)),e("div",mn,[e("div",un,[e("div",pn,[e("div",fn,a(i(l)("select_tgl_desc_1")),1),e("div",kn,a(i(l)("select_tgl_desc_2")),1)]),e("div",gn,[e("div",bn,a(i(l)("select_tgl_desc_3")),1),e("div",wn,[e("div",$n,a(i(l)(t.name)),1)]),e("div",Dn,a(i(l)("select_tgl_desc_4")),1)])]),e("div",Cn,[e("div",Sn,[e("div",Mn,[e("div",xn,[e("div",{class:"bind-key",onDragover:s[3]||(s[3]=r=>t.on_drag_over(r)),onDrop:s[4]||(s[4]=r=>t.on_drag_end(r))},[e("div",null,a(i(l)(t.bind_keys[0].name)),1),t.bind_keys[0].name!==""?(d(),h("div",{key:0,class:"item-bind-key-close-wrapper",onClick:s[2]||(s[2]=()=>{t.bind_keys[0].name="",t.bind_keys[0].value=""})},[c(N,{color:"var(--white)",class:"item-bind-key-close"})])):u("",!0)],32)]),e("div",Nn,a(i(l)("select_tgl_desc_5")),1),e("div",On,[e("div",zn,a(i(l)("select_tgl_desc_6")),1)]),e("div",Tn,[c(_,{value:t.delay_time,"onUpdate:value":s[5]||(s[5]=r=>t.delay_time=r),"show-tooltip":"",placement:"bottom","format-tooltip":r=>r+"ms",style:{width:"60%"},min:0,max:1e3},null,8,["value","format-tooltip"])])])])]),e("div",jn,[c(x,{style:{width:"100%",height:"22rem"}},{default:y(()=>[c(H,null,{default:y(()=>[(d(!0),h(g,null,b(t.key_map,r=>(d(),w(J,{"dense-toggle":"","expand-separator":"",label:i(l)(r.item),style:{color:"var(--text-primary)"}},{default:y(()=>[c(M,{style:{"background-color":"var(--color-95)"}},{default:y(()=>[e("div",Ln,[(d(!0),h(g,null,b(r.data,m=>(d(),h("div",{class:"menu-item",draggable:"true",onDragstart:f=>t.on_drag_start(f,m),onClick:f=>t.on_click(m)},a(i(l)(m.name)),41,En))),256))])]),_:2},1024)]),_:2},1032,["label"]))),256))]),_:1})]),_:1})])])])}}}),Vn=k(Hn,[["__scopeId","data-v-f0a5bcc0"]]),In={class:"col"},Kn={class:"row",style:{"justify-content":"space-between"}},Pn={style:{"font-size":"1.2rem","font-weight":"bold","margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)"}},Un={class:"row",style:{"margin-top":"0.5rem","margin-right":"2rem"}},Bn={style:{color:"red"}},Gn={style:{color:"white"}},Qn={class:"row",style:{height:"22rem","user-select":"none"}},Zn={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},An={class:"col",style:{"margin-left":"2rem","border-bottom":"1px solid var(--color-80)"}},Yn={class:"row",style:{"margin-top":"1rem","font-size":"1.1rem","font-weight":"bold",color:"var(--color-55)"}},Fn={class:"row",style:{"margin-top":"0.5rem",color:"var(--color-55)"}},Xn={class:"col",style:{"align-items":"center"}},qn={class:"row",style:{"justify-content":"center","margin-top":"4rem"}},Rn={class:"row",style:{"justify-content":"center",width:"20%"}},Wn={class:"row",style:{"justify-content":"center"}},el={class:"row bind-origin-key",style:{border:"1px solid var(--color-80)"}},tl={class:"row",style:{"justify-content":"center","margin-top":"0.5rem",color:"var(--color-55)"}},sl={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},ol={class:"row bind-item",style:{"margin-top":"1rem"}},il={class:"col col-4"},nl={class:"row",style:{"justify-content":"center"}},ll=["onDragover","onDrop"],al={class:"row",style:{"justify-content":"center","align-items":"center",width:"100%",height:"100%"}},rl=["onClick"],dl={class:"col col-6",style:{"align-items":"center"}},cl={class:"row",style:{"justify-content":"center"}},_l={class:"col col-4"},hl={class:"row menu-item-wrapper"},vl=["onDragstart","onClick"],yl={props:["status","advanced_keys_context"],emits:["update:status","save"],data(){return{name:"",pos:0,key_map:[],bind_keys:[{name:"",value:"",distance:500},{name:"",value:"",distance:1e3},{name:"",value:"",distance:1500}]}},computed:{rtPrecision(){return I().precision_rt}},created(){this.bind_keys=[{name:"",value:"",distance:500/this.rtPrecision},{name:"",value:"",distance:1e3/this.rtPrecision},{name:"",value:"",distance:1500/this.rtPrecision}],this.load_from_advanced(),this.key_map=E(),O.on("on_key_select",o=>{this.name=o.name,this.pos=o.pos})},methods:{toDisplayDistance(o){return(o/100/(10/this.rtPrecision)).toFixed(2)+" mm"},on_drag_start(o,t){o.dataTransfer.setData("data",JSON.stringify(t))},on_click(o){for(let t=0;t{const n=$("n-button"),_=$("n-slider");return d(),h("div",In,[e("div",Kn,[e("div",Pn,a(i(l)("select_mpt_desc_0")),1),e("div",Un,[c(n,{type:"error",ghost:"",onClick:s[0]||(s[0]=r=>t.on_cancel()),style:{"margin-right":"1rem"}},{default:y(()=>[e("div",Bn,a(i(l)("cancel")),1)]),_:1}),c(n,{type:"info",onClick:s[1]||(s[1]=r=>t.on_save()),disabled:t.pos===0||t.bind_keys[0].value===""&&t.bind_keys[1].value===""&&t.bind_keys[2].value===""},{default:y(()=>[e("div",Gn,a(i(l)("save")),1)]),_:1},8,["disabled"])])]),s[4]||(s[4]=e("div",{class:"row",style:{"border-bottom":"1px solid var(--color-80)","margin-top":"0.5rem"}},null,-1)),e("div",Qn,[e("div",Zn,[e("div",An,[e("div",Yn,a(i(l)("select_mpt_desc_1")),1),e("div",Fn,a(i(l)("select_mpt_desc_2")),1)]),e("div",Xn,[e("div",qn,[e("div",Rn,[e("div",Wn,a(i(l)("select_mpt_desc_3")),1),e("div",el,a(i(l)(t.name)),1)])]),e("div",tl,a(i(l)("select_mpt_desc_4")),1)])]),e("div",sl,[(d(!0),h(g,null,b(t.bind_keys,(r,m)=>(d(),h("div",ol,[e("div",il,[e("div",nl,[e("div",{class:"bind-key",onDragover:f=>t.on_drag_over(f,m),onDrop:f=>t.on_drag_end(f,m)},[e("div",al,a(i(l)(t.bind_keys[m].name)),1),t.bind_keys[m].name!==""?(d(),h("div",{key:0,class:"item-bind-key-close-wrapper",onClick:()=>{t.bind_keys[m].name="",t.bind_keys[m].value=""}},[c(N,{color:"var(--white)",class:"item-bind-key-close"})],8,rl)):u("",!0)],40,ll)])]),e("div",dl,[e("div",cl,a(i(l)("select_mpt_desc_5"))+" "+a(t.toDisplayDistance(r.distance)),1),c(_,{style:{width:"18rem"},value:r.distance/(10/t.rtPrecision),max:400,min:10,step:10/t.rtPrecision,"onUpdate:value":f=>{r.distance=Math.round(f*(10/t.rtPrecision))}},null,8,["value","step","onUpdate:value"])])]))),256)),s[2]||(s[2]=e("div",{class:"row"},null,-1)),s[3]||(s[3]=e("div",{class:"row"},null,-1))]),e("div",_l,[c(x,{style:{width:"100%",height:"22rem"}},{default:y(()=>[c(H,null,{default:y(()=>[(d(!0),h(g,null,b(t.key_map,r=>(d(),w(J,{"dense-toggle":"","expand-separator":"",label:i(l)(r.item),style:{color:"var(--text-primary)"}},{default:y(()=>[c(M,{style:{"background-color":"var(--color-95)"}},{default:y(()=>[e("div",hl,[(d(!0),h(g,null,b(r.data,m=>(d(),h("div",{class:"menu-item",draggable:"true",onDragstart:f=>t.on_drag_start(f,m),onClick:f=>t.on_click(m)},a(i(l)(m.name)),41,vl))),256))])]),_:2},1024)]),_:2},1032,["label"]))),256))]),_:1})]),_:1})])])])}}}),ul=k(ml,[["__scopeId","data-v-49652095"]]),pl={class:"col"},fl={class:"row",style:{"justify-content":"space-between"}},kl={style:{"font-size":"1.2rem","font-weight":"bold","margin-left":"2rem","margin-top":"0.5rem",color:"var(--color-55)"}},gl={class:"row",style:{"margin-top":"0.5rem","margin-right":"2rem"}},bl={style:{color:"red"}},wl={style:{color:"white"}},$l={class:"row",style:{height:"22rem","user-select":"none"}},Dl={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},Cl={class:"col",style:{"margin-left":"2rem","border-bottom":"1px solid var(--color-80)"}},Sl={class:"row",style:{"margin-top":"1rem","font-size":"1.1rem","font-weight":"bold",color:"var(--color-55)"}},Ml={class:"row",style:{"margin-top":"0.5rem",color:"var(--color-55)"}},xl={class:"col",style:{"align-items":"center"}},Nl={class:"row",style:{"justify-content":"center","margin-top":"4rem"}},Ol={class:"row",style:{"justify-content":"center",width:"20%"}},zl={class:"row",style:{"justify-content":"center"}},Tl={class:"row bind-key",style:{border:"1px solid var(--color-80)"}},jl={class:"row",style:{"justify-content":"center","margin-top":"0.5rem",color:"var(--color-55)"}},Ll={class:"col col-4",style:{"border-right":"1px solid var(--color-80)"}},El={class:"row",style:{height:"22rem",width:"100%"}},Jl={class:"col"},Hl={class:"row",style:{"justify-content":"center","margin-top":"6rem",position:"relative"}},Vl={class:"row",style:{"justify-content":"center","margin-top":"1rem","font-weight":"bold"}},Il={class:"row",style:{"justify-content":"center","margin-top":"0.5rem"}},Kl={class:"col col-4"},Pl={class:"row menu-item-wrapper"},Ul=["onDragstart","onClick"],Bl={props:["status","advanced_keys_context"],emits:["update:status","save"],data(){return{key_map:[],name:"",pos:0,bind_keys:[{name:"",value:0}]}},created(){this.load_from_advanced(),this.key_map=E(),O.on("on_key_select",o=>{this.name=o.name,this.pos=o.pos})},methods:{on_drag_start(o,t){o.dataTransfer.setData("data",JSON.stringify(t))},on_click(o){this.bind_keys[0].name=o.name,this.bind_keys[0].value=o.data},on_drag_end(o){console.log(o);let t=JSON.parse(o.dataTransfer.getData("data"));this.bind_keys[0].name=t.name,this.bind_keys[0].value=t.data},on_drag_over(o){o.preventDefault()},load_from_advanced(){try{if(this.$props.advanced_keys_context===null)return;this.name=this.$props.advanced_keys_context.name,this.pos=this.$props.advanced_keys_context.pos,this.bind_keys=this.$props.advanced_keys_context.keys}catch{}},on_cancel(){this.$emit("update:status",v.IDLE)},on_save(){this.$emit("save",{pos:this.pos,name:this.name,type:v.END,keys:JSON.parse(JSON.stringify(this.bind_keys))}),this.$emit("update:status",v.IDLE)}}},Gl=Object.assign(Bl,{__name:"SelectEND",setup(o){return(t,s)=>{const n=$("n-button");return d(),h("div",pl,[e("div",fl,[e("div",kl,a(i(l)("select_end_desc_0")),1),e("div",gl,[c(n,{type:"error",ghost:"",onClick:s[0]||(s[0]=_=>t.on_cancel()),style:{"margin-right":"1rem"}},{default:y(()=>[e("div",bl,a(i(l)("cancel")),1)]),_:1}),c(n,{type:"info",onClick:s[1]||(s[1]=_=>t.on_save()),disabled:t.bind_keys[0].value===0},{default:y(()=>[e("div",wl,a(i(l)("save")),1)]),_:1},8,["disabled"])])]),s[5]||(s[5]=e("div",{class:"row",style:{"border-bottom":"1px solid var(--color-80)","margin-top":"0.5rem"}},null,-1)),e("div",$l,[e("div",Dl,[e("div",Cl,[e("div",Sl,a(i(l)("select_end_desc_1")),1),e("div",Ml,a(i(l)("select_end_desc_2")),1)]),e("div",xl,[e("div",Nl,[e("div",Ol,[e("div",zl,a(i(l)("select_end_desc_3")),1),e("div",Tl,a(i(l)(t.name)),1)])]),e("div",jl,a(i(l)("select_end_desc_4")),1)])]),e("div",Ll,[e("div",El,[e("div",Jl,[e("div",Hl,[e("div",{class:"bind-key",onDragover:s[3]||(s[3]=_=>t.on_drag_over(_)),onDrop:s[4]||(s[4]=_=>t.on_drag_end(_))},[e("div",null,a(i(l)(t.bind_keys[0].name)),1),t.bind_keys[0].name!==""?(d(),h("div",{key:0,class:"item-bind-key-close-wrapper",onClick:s[2]||(s[2]=()=>{t.bind_keys[0].name="",t.bind_keys[0].value=""})},[c(N,{color:"var(--white)",class:"item-bind-key-close"})])):u("",!0)],32)]),e("div",Vl,a(i(l)("select_end_desc_5")),1),e("div",Il,a(i(l)("select_end_desc_6")),1)])])]),e("div",Kl,[c(x,{style:{width:"100%",height:"22rem"}},{default:y(()=>[c(H,null,{default:y(()=>[(d(!0),h(g,null,b(t.key_map,_=>(d(),w(J,{"dense-toggle":"","expand-separator":"",label:i(l)(_.item),style:{color:"var(--text-primary)"}},{default:y(()=>[c(M,{style:{"background-color":"var(--color-95)"}},{default:y(()=>[e("div",Pl,[(d(!0),h(g,null,b(_.data,r=>(d(),h("div",{class:"menu-item",draggable:"true",onDragstart:m=>t.on_drag_start(m,r),onClick:m=>t.on_click(r)},a(i(l)(r.name)),41,Ul))),256))])]),_:2},1024)]),_:2},1032,["label"]))),256))]),_:1})]),_:1})])])])}}}),Ql=k(Gl,[["__scopeId","data-v-e4c04cb3"]]),Zl={class:"flex-col"},Al=["src"],Yl=["onClick"],Fl={style:{position:"absolute"}},Xl={key:0},ql={key:0},Rl={key:1},Wl={key:2},ea={key:3},ta={key:4},sa={key:5},oa={key:1},ia={data(){return{status:v.IDLE,layer:0,kb_wrapper_config:{},keys:[],bind_item:[],advanced_keys_context:null}},async created(){await I().fetch_feature_key_precision(),this.bind_item=[],this.kb_wrapper_config=ee();const t=V();await t.fetch_advanced_keys(this.layer),await t.fetch_keys(this.layer),this.keys=t.get_layer_keys(this.layer),this.reload_item()},methods:{on_key_select(o){try{if(o.type===te.MACRO)return;if(o.advanced_key.type!==void 0&&o.advanced_key.type!==null){this.advanced_keys_context=o.advanced_key,this.advanced_keys_context.pos=o.pos,this.status=o.advanced_key.type;return}}catch{}O.emit("on_key_select",{pos:o.pos,name:o.name,value:o.value})},filter_socd(){this.bind_item=this.bind_item.filter((o,t,s)=>t===s.findIndex(n=>JSON.stringify(n.advanced_key.keys)===JSON.stringify(o.advanced_key.keys)))},reload_item(){this.bind_item=[];for(let o=0;o(d(),h("div",Zl,[c(M,{bordered:"",style:{margin:"0.5rem",height:"27rem",width:"103rem","background-color":"rgb(255, 255, 255, 0.3)","user-select":"none"}},{default:y(()=>[e("div",{class:"keyboard",id:"content",style:S({position:"absolute",left:t.kb_wrapper_config.x,top:t.kb_wrapper_config.y})},[e("img",{alt:"bg",src:t.kb_wrapper_config.backgroundImage,style:S({width:t.kb_wrapper_config.width,height:t.kb_wrapper_config.height,position:"absolute"}),draggable:"false"},null,12,Al),(d(!0),h(g,null,b(t.keys,(n,_)=>(d(),h("div",{class:"key",onClick:r=>t.on_key_select(n),style:S({border:"2px solid rgba(255,255,255,0)",display:n.display?"":"none",width:Number(n.width)+"px",height:Number(n.height)+"px",left:Number(n.x)+"px",top:Number(n.y)+"px",cursor:(t.status===i(v).IDLE||n.advanced_key!==void 0&&n.advanced_key!==null,"pointer")})},[e("div",Fl,[n.advanced_key?(d(),h("div",Xl,[n.advanced_key.type===i(v).DKS?(d(),h("div",ql,[c(K,{style:{width:"2rem"}})])):u("",!0),n.advanced_key.type===i(v).MT?(d(),h("div",Rl,[c(P,{style:{width:"2rem"}})])):u("",!0),n.advanced_key.type===i(v).TGL?(d(),h("div",Wl,[c(U,{style:{width:"2rem"}})])):u("",!0),n.advanced_key.type===i(v).SOCD?(d(),h("div",ea,[c(B,{style:{width:"2rem"}})])):u("",!0),n.advanced_key.type===i(v).MPT?(d(),h("div",ta,[c(G,{style:{width:"2rem"}})])):u("",!0),n.advanced_key.type===i(v).END?(d(),h("div",sa,[c(Q,{style:{width:"2rem"}})])):u("",!0)])):(d(),h("div",oa,a(i(l)(n.name)),1))])],12,Yl))),256))],4)]),_:1}),c(M,{bordered:"",class:"bottom-bar"},{default:y(()=>[c(q,{name:"advanced-keys-page"},{default:y(()=>[t.status===i(v).IDLE?(d(),w(qt,{key:0,keys:t.keys,status:t.status,"onUpdate:status":s[0]||(s[0]=n=>t.status=n),bind_item:t.bind_item,onOn_select:s[1]||(s[1]=n=>{t.on_key_select(n)}),onDelete:s[2]||(s[2]=async n=>{await t.on_delete(n)})},null,8,["keys","status","bind_item"])):u("",!0)]),_:1}),t.status===i(v).DKS?(d(),w(qo,{key:0,keys:t.keys,status:t.status,"onUpdate:status":s[3]||(s[3]=n=>t.status=n),advanced_keys_context:t.advanced_keys_context,onSave:s[4]||(s[4]=async n=>{await t.on_save(n)})},null,8,["keys","status","advanced_keys_context"])):u("",!0),t.status===i(v).MT?(d(),w(Oi,{key:1,keys:t.keys,status:t.status,"onUpdate:status":s[5]||(s[5]=n=>t.status=n),advanced_keys_context:t.advanced_keys_context,onSave:s[6]||(s[6]=async n=>{await t.on_save(n)})},null,8,["keys","status","advanced_keys_context"])):u("",!0),t.status===i(v).TGL?(d(),w(Vn,{key:2,keys:t.keys,status:t.status,"onUpdate:status":s[7]||(s[7]=n=>t.status=n),advanced_keys_context:t.advanced_keys_context,onSave:s[8]||(s[8]=async n=>{await t.on_save(n)})},null,8,["keys","status","advanced_keys_context"])):u("",!0),t.status===i(v).SOCD?(d(),w(rn,{key:3,keys:t.keys,status:t.status,"onUpdate:status":s[9]||(s[9]=n=>t.status=n),advanced_keys_context:t.advanced_keys_context,onSave:s[10]||(s[10]=async n=>{await t.on_save(n)})},null,8,["keys","status","advanced_keys_context"])):u("",!0),t.status===i(v).MPT?(d(),w(ul,{key:4,keys:t.keys,status:t.status,"onUpdate:status":s[11]||(s[11]=n=>t.status=n),advanced_keys_context:t.advanced_keys_context,onSave:s[12]||(s[12]=async n=>{await t.on_save(n)})},null,8,["keys","status","advanced_keys_context"])):u("",!0),t.status===i(v).END?(d(),w(Ql,{key:5,keys:t.keys,status:t.status,"onUpdate:status":s[13]||(s[13]=n=>t.status=n),advanced_keys_context:t.advanced_keys_context,onSave:s[14]||(s[14]=async n=>{await t.on_save(n)})},null,8,["keys","status","advanced_keys_context"])):u("",!0)]),_:1})]))}}),Ia=k(na,[["__scopeId","data-v-3efaf455"]]);export{Ia as default};