import{d as b,a9 as c,c as n,o,b as e,t,F as i,f as d,g as u,v as _,h as p}from"./app-DJb_CRLj.js";const g={class:"modal fade ui-elements-modal",id:"topBannerModal",tabindex:"-1","aria-hidden":"true"},v={class:"modal-dialog modal-dialog-centered"},f={class:"modal-content"},k={class:"modal-header"},h={class:"modal-title lts-05 fs-5"},y={class:"modal-body"},$={class:"row"},B={class:"col-12 mb-4"},V={"data-bs-toggle":"modal","data-bs-target":"#mediaLibrary","data-bs-input":"top-banner-desktop",class:"btn btn-light fs-8 lts-05 me-2"},C={"data-bs-toggle":"modal","data-bs-target":"#mediaLibrary","data-bs-input":"top-banner-mobile",class:"btn btn-light fs-8 lts-05"},T={class:"col-12"},L={for:"eaTopBannerLink",class:"form-label"},M={class:"modal-footer"},w={class:"btn btn-primary","data-bs-dismiss":"modal","aria-label":"Close"},D=b({__name:"ChooseTopBanner",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(m){const a=c(m,"modelValue");return(s,l)=>(o(),n("div",g,[e("div",v,[e("div",f,[e("div",k,[e("div",h,t(s.$t("messages.sentence.select_top_banner")),1),l[2]||(l[2]=e("button",{type:"button",class:"btn modal-close","data-bs-dismiss":"modal","aria-label":"Close"},[e("i",{class:"ri-close-line"})],-1))]),e("div",y,[e("div",$,[e("div",B,[e("button",V,[a.value.desktop.file_id!=null?(o(),n(i,{key:0},[d(t(s.$t("messages.sentence.change_desktop_banner")),1)],64)):(o(),n(i,{key:1},[d(t(s.$t("messages.sentence.select_desktop_banner")),1)],64))]),e("button",C,[a.value.mobile.file_id!=null?(o(),n(i,{key:0},[d(t(s.$t("messages.sentence.change_mobile_banner")),1)],64)):(o(),n(i,{key:1},[d(t(s.$t("messages.sentence.select_mobile_banner")),1)],64))])]),e("div",T,[e("label",L,t(s.$t("messages.sentence.banner_link")),1),u(e("input",{"onUpdate:modelValue":l[0]||(l[0]=r=>a.value.link=r),type:"text",class:"form-control",style:{direction:"ltr"},id:"eaTopBannerLink"},null,512),[[_,a.value.link]])])])]),e("div",M,[a.value.desktop.file_id!=null||a.value.mobile.file_id!=null?(o(),n("button",{key:0,onClick:l[1]||(l[1]=r=>a.value={desktop:{file_id:null,image:null},mobile:{file_id:null,image:null},link:null}),class:"btn btn-danger"},t(s.$t("messages.sentence.delete_banner")),1)):p("",!0),e("button",w,t(s.$t("messages.word.finish")),1)])])])]))}});export{D as _};
