import{_ as a,bx as t,Z as e,d as s,e as i,a7 as l,F as d,l as n,al as o,g as r,h as g,am as _,an as c}from"./index.286e9b79.js";const v={class:"navigation-image-item__cover"},m=["src"],y=a({__name:"widget",props:{data:{type:[Object,Array],default:{}}},setup(a){const y=t.base_url.replace("/adminapi",""),u=a,p=e((()=>1!=u.data.nav_style?100/u.data.nav_line_mun+"%":1==u.data.style?u.data.list.length>5?"24%":100/u.data.list.length+"%":2==u.data.style?u.data.list.length>4?"30%":100/u.data.list.length+"%":void 0));return(a,t)=>(s(),i("div",{class:"navigation",style:o({"background-color":u.data.background_color,margin:u.data.margin_vertical+"px "+u.data.margin_horizontal+"px","border-radius":u.data.border_radius+"px"})},[2==u.data.style?(s(),i("div",{key:0,class:l(["navigation-text",{one:1==u.data.nav_style,two:2==u.data.nav_style}])},[(s(!0),i(d,null,n(u.data.list,((a,t)=>(s(),i("div",{class:"navigation-text-item",key:t,style:o({width:r(p)})},[g("span",{class:"navigation-text-item__title",style:o({color:u.data.text_color})},_(a.title),5)],4)))),128))],2)):c("",!0),1==u.data.style?(s(),i("div",{key:1,class:l(["navigation-image",{one:1==u.data.nav_style,two:2==u.data.nav_style}])},[(s(!0),i(d,null,n(u.data.list,((a,t)=>{return s(),i("div",{class:"navigation-image-item",key:t,style:o({width:r(p)})},[g("div",v,[g("img",{src:(e=a.image,""!=e?e:y+"/static/images/menu/empty.png"),style:o({"border-radius":u.data.image_border_radius+"px"})},null,12,m)]),g("div",{class:"navigation-image-item__title",style:o({color:u.data.text_color})},_(a.title),5)],4);var e})),128))],2)):c("",!0)],4))}},[["__scopeId","data-v-7d4b35a6"]]);export{y as default};
