"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[5026],{25026:function(e,t,l){l.r(t),l.d(t,{default:function(){return k}});var a=l(66252),s=l(49963),i=l(3577);const n={class:"generalModel_btn"},o=(0,a._)("svg",{width:"46",height:"46",viewBox:"0 0 46 46",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,a._)("circle",{cx:"23",cy:"23",r:"23",fill:"white","fill-opacity":"0.3"}),(0,a._)("rect",{x:"32.5063",y:"12",width:"3",height:"29",rx:"1.5",transform:"rotate(45 32.5063 12)",fill:"white"}),(0,a._)("rect",{x:"34.6274",y:"32.5059",width:"3",height:"29",rx:"1.5",transform:"rotate(135 34.6274 32.5059)",fill:"white"})],-1),c=[o],r={class:"habitSetStyle_content"},d={class:"modal_title_text"},y=(0,a._)("div",{class:"modal_title_text_intro"},null,-1),m={class:"habitSetStyle_content_bottom"},S={class:"content_bottom_item"},u=["onClick"],_={class:"habitSetStyle_ok"},v={class:"mark_loading"};function h(e,t,l,o,h,w){const b=(0,a.up)("a-spin"),p=(0,a.up)("a-modal"),g=(0,a.Q2)("hoverAnmi");return(0,a.wg)(),(0,a.j4)(p,{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:(0,a.w5)((()=>[(0,a._)("div",n,[(0,a._)("div",{class:"generalModel_closeIcon",onClick:t[0]||(t[0]=(0,s.iM)((t=>e.cancelDsign()),["stop"]))},c)]),(0,a.wy)(((0,a.wg)(),(0,a.iD)("div",r,[(0,a._)("div",d,[(0,a._)("div",null,(0,i.zw)(e.$t("Habit.Style")),1),y]),(0,a._)("div",m,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.mannequinStyle,(t=>((0,a.wg)(),(0,a.iD)("div",S,[(0,a._)("div",{class:(0,i.C_)(["content_bottom_item_border",{active:t.name==e.selectStyle.name}]),onClick:l=>e.setItemSelect(t)},(0,i.zw)(t.name),11,u)])))),256))]),(0,a._)("div",_,[(0,a._)("div",{class:"started_btn",onClick:t[1]||(t[1]=t=>e.setClear())},(0,i.zw)(e.$t("Habit.Clear")),1),(0,a._)("div",{class:"started_btn",onClick:t[2]||(t[2]=t=>e.setOk())}," OK ")])])),[[g]]),(0,a.wy)((0,a._)("div",v,[(0,a.Wm)(b,{size:"large"})],512),[[s.F8,e.isShowMark]])])),_:1},8,["visible"])}var w=l(2262),b=(l(74961),l(8552)),p=(0,a.aZ)({emits:["setParentData","setWorkspaceStyle"],props:{mannequinStyle:{type:Array,default:()=>[]}},setup(e,{emit:t}){let l=(0,w.iH)(!1),a=(0,w.iH)(!1),s="",i=(0,w.qj)({styleList:[],selectStyle:{name:"",id:""},selectStyleName:"",isShowMark:!1});const{t:n}=(0,b.QT)();let o=e=>{l.value=!0,s=e.styleId,i.selectStyle.id=e.styleId,i.selectStyle.name=e.styleName},c=e=>{i.subPublishDate.coverId=e.designOutfitId,i.selectDate.url=e.url},r=()=>{l.value=!1,i.isShowMark=!1},d=()=>{r()},y=()=>{let e={id:i.selectStyle.id,name:i.selectStyle.name,value:i.selectStyle.value,isRevampModel:!1};s==e.id||t("setWorkspaceStyle",e),r()},m=()=>{i.selectStyle.id="",i.selectStyle.name="",i.selectStyle.value=""},S=e=>{i.selectStyle=Object.assign({},e)};return{habitSetStyle:l,habitSetStyleMask:a,...(0,w.BK)(i),init:o,setCover:c,cancelDsign:d,setItemSelect:S,setOk:y,setClear:m}},data(){return{}},directives:{hoverAnmi:{updated(e){var t=document.querySelectorAll(".habitSetStyle_modal .content_bottom_item");e.addEventListener("mousemove",(function(e){for(var l=e.pageX,a=e.pageY,s=0;s<t.length;s++){var i=t[s],n=i.getBoundingClientRect(),o=n.left+window.pageXOffset,c=n.top+window.pageYOffset,r=l-o,d=a-c;i.style.setProperty("--x",r+"px"),i.style.setProperty("--y",d+"px")}}))}}},mounted(){},methods:{}}),g=l(83744);const f=(0,g.Z)(p,[["render",h]]);var k=f}}]);