1import v from"./C1T4AniJ.js";import{b,a8 as g,$ as k,o as a,e as r,q as p,w as y,g as s,H as c,ae as w,I as t,ah as B,ai as P,aB as S,ab as x,ac as l,bz as I,bB as $,c as d,a7 as L}from"./D5rHXhro.js";import{u as N}from"./CNJOFliU.js";import{I as V}from"./CJmU8GG6.js";const z={class:"cities-popup"},A={class:"cities-popup__header"},O={class:"cities-popup__list"},T=["onClick"],j={class:"cities-popup__city-badges"},q={key:0,class:"cities-popup__admin-badge"},D=b({__name:"CitiesPopup",setup(E){const i=g(),_=k(),{chooseCity:m}=N(),f=d(()=>_.user?.role==="admin"||_.user?.role==="editor"),C=d(()=>i.cities.filter(n=>n.is_frontend_active||f.value));function h(n){m(n.slug)}return(n,o)=>{const u=v;return a(),r($,{to:"body"},[p(I,{name:"cities-fade"},{default:y(()=>[s(i).isPopupOpen?(a(),c("div",{key:0,class:"cities-overlay",onClick:o[1]||(o[1]=w(e=>s(i).closePopup(),["self"]))},[t("div",z,[t("div",A,[p(s(V),{width:"20",height:"20",class:"cities-popup__icon"}),o[2]||(o[2]=t("span",{class:"cities-popup__title"},"ÐÑбеÑиÑе гоÑод",-1)),t("button",{class:"cities-popup__close",onClick:o[0]||(o[0]=e=>s(i).closePopup())},[p(u,{name:"ic:baseline-close",class:"w-5 h-5"})])]),t("ul",O,[(a(!0),c(B,null,P(s(C),e=>(a(),c("li",{key:e.slug,class:S(["cities-popup__city",{"cities-popup__city--active":e.slug===s(i).selectedCitySlug,"cities-popup__city--admin-only":!e.is_frontend_active}]),onClick:F=>h(e)},[t("span",null,x(e.title),1),t("span",j,[e.is_frontend_active?l("",!0):(a(),c("span",q,"Ðе видно полÑзоваÑелÑм")),e.slug===s(i).selectedCitySlug?(a(),r(u,{key:1,name:"ic:baseline-check",class:"w-4 h-4 cities-popup__check"})):l("",!0)])],10,T))),128))])])])):l("",!0)]),_:1})])}}}),K=Object.assign(L(D,[["__scopeId","data-v-0ad447fb"]]),{__name:"LayoutCitiesPopup"});export{K as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.