var e=Object.defineProperty,t=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,a,l)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[a]=l;import{u as r,_ as n}from"./index-Cc7iUtpa.js";import{d as c,k as d,r as y,H as m,a7 as v,a8 as S,x as b,a1 as p,a3 as u,v as h,B as f,a0 as g,aa as _,F as w,af as k,a6 as x,f as O,A as C}from"./vendor-C4fU48ba.js";import{M as j,S as I}from"./antd-31u6eFi9.js";const M=c({emits:["setParentData","setWorkspaceStyle"],props:{mannequinStyle:{type:Array,default:()=>[]}},setup(e,{emit:n}){let c=d(!1),v=d(!1),S="",b=y({styleList:[],selectStyle:{name:"",id:""},selectStyleName:"",isShowMark:!1});const{t:p}=r();let u=()=>{c.value=!1,b.isShowMark=!1};return h=((e,t)=>{for(var a in t||(t={}))s.call(t,a)&&o(e,a,t[a]);if(l)for(var a of l(t))i.call(t,a)&&o(e,a,t[a]);return e})({habitSetStyle:c,habitSetStyleMask:v},m(b)),t(h,a({init:e=>{c.value=!0,S=e.styleId,b.selectStyle.id=e.styleId,b.selectStyle.name=e.styleName},setCover:e=>{b.subPublishDate.coverId=e.designOutfitId,b.selectDate.url=e.url},cancelDsign:()=>{u()},setItemSelect:e=>{b.selectStyle=Object.assign({},e)},setOk:()=>{let e={id:b.selectStyle.id,name:b.selectStyle.name,value:b.selectStyle.value,isRevampModel:!1};S==e.id||n("setWorkspaceStyle",e),u()},setClear:()=>{b.selectStyle.id="",b.selectStyle.name="",b.selectStyle.value=""}}));var h},data:()=>({}),directives:{hoverAnmi:{updated(e){var t=document.querySelectorAll(".habitSetStyle_modal .content_bottom_item");e.addEventListener("mousemove",function(e){for(var a=e.pageX,l=e.pageY,s=0;s<t.length;s++){var i=t[s],o=i.getBoundingClientRect(),r=a-(o.left+window.pageXOffset),n=l-(o.top+window.pageYOffset);i.style.setProperty("--x",r+"px"),i.style.setProperty("--y",n+"px")}})}}},mounted(){},methods:{}}),P={class:"generalModel_btn"},D={class:"habitSetStyle_content"},A={class:"modal_title_text"},H={class:"habitSetStyle_content_bottom"},q={class:"content_bottom_item"},B=["onClick"],$={class:"habitSetStyle_ok"},z={class:"mark_loading"};const E=n(M,[["render",function(e,t,a,l,s,i){const o=I,r=j,n=b("hoverAnmi");return p(),v(r,{class:"habitSetStyle_modal generalModel",visible:e.habitSetStyle,"onUpdate:visible":t[3]||(t[3]=t=>e.habitSetStyle=t),footer:null,width:"50%",maskClosable:!1,centered:!0,closable:!1,mask:!0,keyboard:!1,destroyOnClose:!0,zIndex:1e3},{default:S(()=>[u("div",P,[u("div",{class:"generalModel_closeIcon",onClick:t[0]||(t[0]=f(t=>e.cancelDsign(),["stop"]))},t[4]||(t[4]=[u("svg",{width:"100%",height:"100%",viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("circle",{cx:"23",cy:"23",r:"23",fill:"white","fill-opacity":"0.3"}),u("rect",{x:"32.5063",y:"12",width:"3",height:"29",rx:"1.5",transform:"rotate(45 32.5063 12)",fill:"white"}),u("rect",{x:"34.6274",y:"32.5059",width:"3",height:"29",rx:"1.5",transform:"rotate(135 34.6274 32.5059)",fill:"white"})],-1)]))]),h((p(),g("div",D,[u("div",A,[u("div",null,_(e.$t("Habit.Style")),1),t[5]||(t[5]=u("div",{class:"modal_title_text_intro"},null,-1))]),u("div",H,[(p(!0),g(w,null,k(e.mannequinStyle,t=>(p(),g("div",q,[u("div",{class:x(["content_bottom_item_border",{active:t.name==e.selectStyle.name}]),onClick:a=>e.setItemSelect(t)},_(t.name),11,B)]))),256))]),u("div",$,[u("div",{class:"started_btn",onClick:t[1]||(t[1]=t=>e.setClear())},_(e.$t("Habit.Clear")),1),u("div",{class:"started_btn",onClick:t[2]||(t[2]=t=>e.setOk())},_(e.$t("Habit.ok")),1)])])),[[n]]),h(u("div",z,[O(o,{size:"large"})],512),[[C,e.isShowMark]])]),_:1},8,["visible"])}]]);export{E as h};
