import{_ as C,o as f,c as h,i as E,d as V,f as p,s as D,aa as F,F as $,g as O,n as P,a as o,A as w,t as T,a5 as B,r as m,ab as y,u as s,h as U,w as l,b as z,B as e,m as k,ac as I,ad as L,ae as N,af as R,ag as j,ah as q}from"./index.41141fd8.js";import{g as _}from"./right-fill-pano.vue_vue_type_style_index_0_scoped_4526d25b_lang.986cb39b.js";const H={},G={class:"right-pano strengthen-right"};function J(v,r){return f(),h("div",G,[E(v.$slots,"default",{},void 0,!0)])}const K=C(H,[["render",J],["__scopeId","data-v-4b2da5d7"]]),Q={class:"actions"},W=["onClick"],X=V({__name:"index",props:{items:null},setup(v){const r=(n,c)=>B(n)===B(c),a=p(null),M=n=>{a.value=r(a.value,n)?null:n};return D(n=>{if(a.value){const c=a.value.action();c&&n(c)}}),F(()=>{a.value=null}),(n,c)=>{const b=m("ui-icon");return f(),h("div",Q,[(f(!0),h($,null,O(v.items,(d,u)=>(f(),h("span",{class:P({active:r(a.value,d)}),key:d.key||u,onClick:t=>M(d)},[o(b,{type:d.icon},null,8,["type"]),w(" "+T(d.text),1)],10,W))),128))])}}});const Y=C(X,[["__scopeId","data-v-bf0b559e"]]),Z=w("\u6062\u590D\u9ED8\u8BA4"),oe=V({__name:"index",setup(v){const r=p(!0);y(()=>(r.value=!0,()=>r.value=!1));const a={show:!0,scale:1,opacity:1,bottom:0,position:{x:0,y:0,z:0},rotation:{x:0,y:0,z:0}},M={min:.01,max:1,step:.01},n={min:-101,max:100,step:.1},c={min:.01,max:1,step:.01},b=[{icon:"move",text:"\u79FB\u52A8",action:()=>{var u;return(u=_(e.currentModel))==null||u.enterMoveMode(),()=>{var t;console.log(_(e.currentModel),"leave"),(t=_(e.currentModel))==null||t.leaveTransform()}}},{icon:"flip",text:"\u65CB\u8F6C",action:()=>{var u;return(u=_(e.currentModel))==null||u.enterRotateMode(),()=>{var t;return(t=_(e.currentModel))==null?void 0:t.leaveTransform()}}}],d=()=>{e.currentModel&&(Object.assign(e.currentModel,a),I(()=>{e.currentModel&&(e.currentModel.bottom=0)}))};return y(()=>L([N.push(p(!1)),R.push(p(!0)),j.push(p(!0))])),y(q),(u,t)=>{const x=m("ui-input"),g=m("ui-group-option"),A=m("ui-button"),S=m("ui-group");return s(e).currentModel&&r.value?(f(),U(s(K),{key:0},{default:l(()=>[o(S,null,{header:l(()=>[o(Y,{class:"edit-header",items:b})]),default:l(()=>[o(g,{label:"\u7B49\u6BD4\u7F29\u653E"},{default:l(()=>[o(x,k({type:"range",modelValue:s(e).currentModel.scale,"onUpdate:modelValue":t[0]||(t[0]=i=>s(e).currentModel.scale=i)},c,{width:"100%"}),null,16,["modelValue"])]),_:1}),o(g,{label:"\u79BB\u5730\u9AD8\u5EA6"},{default:l(()=>[o(x,k({type:"range",modelValue:s(e).currentModel.bottom,"onUpdate:modelValue":t[1]||(t[1]=i=>s(e).currentModel.bottom=i)},n,{width:"100%"}),null,16,["modelValue"])]),_:1}),o(g,{label:"\u6A21\u578B\u4E0D\u900F\u660E\u5EA6"},{default:l(()=>[o(x,k({type:"range",modelValue:s(e).currentModel.opacity,"onUpdate:modelValue":t[2]||(t[2]=i=>s(e).currentModel.opacity=i)},M,{width:"100%"}),null,16,["modelValue"])]),_:1}),o(g,null,{default:l(()=>[o(A,{onClick:d},{default:l(()=>[Z]),_:1})]),_:1})]),_:1})]),_:1})):z("",!0)}}});export{oe as default};