"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[7998],{17998:function(e,s,t){t.r(s),t.d(s,{default:function(){return f}});var l=t(66252),i=t(49963),c=t(3577);const a={class:"generalModel_btn"},n=(0,l._)("i",{class:"fi fi-rr-cross-small"},null,-1),o=[n],d={class:"selectImgList_content"},r={class:"modal_title_text"},m=(0,l._)("div",{class:"modal_title_text_intro"},null,-1),g={class:"selectImgList_content_bottom"},_=["onClick"],k=["src"],u={class:"selectImgList_ok"},v={class:"mark_loading"};function I(e,s,t,n,I,C){const L=(0,l.up)("a-spin"),h=(0,l.up)("a-modal");return(0,l.wg)(),(0,l.j4)(h,{class:"selectImgList_modal generalModel",visible:e.selectImgList,"onUpdate:visible":s[3]||(s[3]=s=>e.selectImgList=s),footer:null,width:"50%",maskClosable:!1,centered:!0,closable:!1,mask:e.selectImgListMask,keyboard:!1,destroyOnClose:!0,zIndex:1050},{default:(0,l.w5)((()=>[(0,l._)("div",a,[(0,l._)("div",{class:"generalModel_closeIcon",onClick:s[0]||(s[0]=(0,i.iM)((s=>e.cancelDsign()),["stop"]))},o)]),(0,l._)("div",d,[(0,l._)("div",r,[(0,l._)("div",null,(0,c.zw)(e.$t("selectImgList.SelectImg")),1),m]),(0,l._)("div",g,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e.imgList,(s=>((0,l.wg)(),(0,l.iD)("div",{class:"content_bottom_item",onClick:t=>e.setItemSelect(s)},[(0,l._)("img",{src:s.imgUrl,alt:"",class:(0,c.C_)({active:s.isChecked})},null,10,k)],8,_)))),256))]),(0,l._)("div",u,[(0,l._)("div",{class:"started_btn",onClick:s[1]||(s[1]=s=>e.cancelDsign())},(0,c.zw)(e.$t("selectImgList.Clear")),1),(0,l._)("div",{class:"started_btn",onClick:s[2]||(s[2]=s=>e.setOk())}," OK ")])]),(0,l.wy)((0,l._)("div",v,[(0,l.Wm)(L,{size:"large"})],512),[[i.F8,e.isShowMark]])])),_:1},8,["visible","mask"])}var C=t(2262),L=t(8552),h=(0,l.aZ)({emits:["setImgGetColor"],setup(e,{emit:s}){let t=(0,C.iH)(!1),l=(0,C.iH)(!1),i=(0,C.qj)({imgList:[],isShowMark:!1});const{t:c}=(0,L.QT)();let a=e=>{t.value=!0,i.imgList=e},n=()=>{t.value=!1,i.isShowMark=!1},o=()=>{n()},d=()=>{let e=i.imgList.filter((e=>e.isChecked));e.length>0&&s("setImgGetColor",e[0]),n()},r=e=>{i.imgList.forEach((e=>{e.isChecked=!1})),e.isChecked=!0};return{selectImgList:t,selectImgListMask:l,...(0,C.BK)(i),init:a,cancelDsign:o,setItemSelect:r,setOk:d}},data(){return{}},mounted(){},methods:{}}),b=t(83744);const w=(0,b.Z)(h,[["render",I]]);var f=w}}]);