import{U as d}from"./Button4.js";import{_ as l,o as _,c as a,a as t,r as E,b as i,n as m}from"./index.js";/* empty css                                                      */const u={},A={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C=t("path",{d:"M13 16L7 10L13 4",stroke:"white","stroke-width":"2","stroke-linecap":"round"},null,-1),p=[C];function T(s,e){return _(),a("svg",A,p)}const v=l(u,[["render",T]]),N={class:"select-container"},f=t("div",{class:"select-container__after"},null,-1);function h(s,e,P,I,n,o){const c=E("IconArrow");return _(),a("div",{class:m(["select iface-container",{select_mobile:o.isMobile}])},[t("div",N,[f,t("div",{class:"select__button select-arrow",onClick:e[0]||(e[0]=r=>o.onAction(n.ACTION_TYPE.PREV))},[i(c)]),t("div",{class:"select__button",onClick:e[1]||(e[1]=r=>o.onAction(n.ACTION_TYPE.SELECT))},"Выбрать"),t("div",{class:"select__button",onClick:e[2]||(e[2]=r=>o.onAction(n.ACTION_TYPE.CANCEL))},"Отменить"),t("div",{class:"select__button select-arrow",onClick:e[3]||(e[3]=r=>o.onAction(n.ACTION_TYPE.NEXT))},[i(c)])])],2)}const w={props:["openParams"],components:{UIButton:d,IconArrow:v},data(){return{ACTION_TYPE:{NEXT:0,PREV:1,SELECT:2,CANCEL:3},METHOD_NAME:"OnSelectAction"}},computed:{isMobile(){return this.$root.isMobile}},created(){this.$data.noAdaptation=!0,this.openParams&&(this.METHOD_NAME=this.openParams[0])},methods:{onAction(s){sendClientEvent(gm.EVENT_EXECUTE_PUBLIC,this.METHOD_NAME,s)}}},O=l(w,[["render",h]]);export{O as default};
