"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[6639],{86639:function(e,t,l){l.r(t),l.d(t,{default:function(){return x}});var s=l(66252),a=l(49963),i=l(3577);const n={class:"generalModel_btn"},o=(0,s._)("i",{class:"fi fi-rr-cross-small"},null,-1),c=[o],r={class:"habitSetStyle_content"},d={class:"modal_title_text"},m=(0,s._)("div",{class:"modal_title_text_intro"},null,-1),S={class:"habitSetStyle_content_bottom"},y={class:"content_bottom_item"},u=["onClick"],v={class:"habitSetStyle_ok"},_={class:"mark_loading"};function b(e,t,l,o,b,k){const h=(0,s.up)("a-spin"),p=(0,s.up)("a-modal"),w=(0,s.Q2)("hoverAnmi");return(0,s.wg)(),(0,s.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:e.habitSetStyleMask,keyboard:!1,destroyOnClose:!0,zIndex:1050},{default:(0,s.w5)((()=>[(0,s._)("div",n,[(0,s._)("div",{class:"generalModel_closeIcon",onClick:t[0]||(t[0]=(0,a.iM)((t=>e.cancelDsign()),["stop"]))},c)]),(0,s.wy)(((0,s.wg)(),(0,s.iD)("div",r,[(0,s._)("div",d,[(0,s._)("div",null,(0,i.zw)(e.$t("Habit.Style")),1),m]),(0,s._)("div",S,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.styleList,(t=>((0,s.wg)(),(0,s.iD)("div",y,[(0,s._)("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,s._)("div",v,[(0,s._)("div",{class:"started_btn",onClick:t[1]||(t[1]=t=>e.setClear())},(0,i.zw)(e.$t("Habit.Clear")),1),(0,s._)("div",{class:"started_btn",onClick:t[2]||(t[2]=t=>e.setOk())}," OK ")])])),[[w]]),(0,s.wy)((0,s._)("div",_,[(0,s.Wm)(h,{size:"large"})],512),[[a.F8,e.isShowMark]])])),_:1},8,["visible","mask"])}var k=l(2262),h=l(50327),p=l(88302),w=l(74961),g=l(8552),f=(0,s.aZ)({emits:["setParentData","setWorkspaceStyle"],setup(e,{emit:t}){let l=(0,k.iH)(!1),a=(0,k.iH)(!1),i="",n=(0,k.qj)({styleList:[],selectStyle:{name:"",id:""},selectStyleName:"",isShowMark:!1});const{t:o}=(0,g.QT)();let c=()=>{n.isShowMark=!0,w.V.axiosPost(w.V.httpUrls.getStyleList,{}).then((e=>{n.isShowMark=!1,e.forEach((e=>{let t=e.value;e.value=e.name,e.name=t})),n.styleList=e})).catch((e=>{n.isShowMark=!1}))},r=e=>{l.value=!0,0==n.styleList.length&&c(),i=e.styleId,n.selectStyle.id=e.styleId,n.selectStyle.name=e.styleName},d=e=>{n.subPublishDate.coverId=e.designOutfitId,n.selectDate.url=e.url},m=()=>{l.value=!1,n.isShowMark=!1},S=()=>{m()},y=()=>{let e={id:n.selectStyle.id,name:n.selectStyle.name,value:n.selectStyle.value,isRevampModel:!1};if(i==e.id)m();else{h.Z.confirm({title:o("Habit.jsContent3"),icon:(0,s.Wm)(p.Z),okText:"Yes",cancelText:"No",mask:!1,centered:!0,zIndex:1050,onOk(){e.isRevampModel=!0,t("setWorkspaceStyle",e),m()},onCancel(){t("setWorkspaceStyle",e),m()}})}},u=()=>{n.selectStyle.id="",n.selectStyle.name="",n.selectStyle.value=""},v=e=>{n.selectStyle=Object.assign({},e)};return{habitSetStyle:l,habitSetStyleMask:a,...(0,k.BK)(n),init:r,setCover:d,cancelDsign:S,setItemSelect:v,setOk:y,setClear:u}},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,s=e.pageY,a=0;a<t.length;a++){var i=t[a],n=i.getBoundingClientRect(),o=n.left+window.pageXOffset,c=n.top+window.pageYOffset,r=l-o,d=s-c;i.style.setProperty("--x",r+"px"),i.style.setProperty("--y",d+"px")}}))}}},mounted(){},methods:{}}),C=l(83744);const M=(0,C.Z)(f,[["render",b]]);var x=M}}]);