1import{Q as R}from"./QSeparator-Ls3iNipH.js";import{C as T}from"./CDialog-D66ajRFA.js";import{Q as C}from"./QImg-DouI1QNB.js";import{R as _}from"./RoundedSelector-DlolCHzj.js";import{_ as b,ai as S,$ as n,a0 as m,a3 as l,aj as r,a1 as p,a4 as h,ak as k,a5 as A,ad as q,N as f,ax as Q,ap as j,U as g,j as v,a8 as $,ag as w,ah as D,a9 as M,aD as O,ea as U}from"./index--s6NDqxB.js";import{C as E}from"./CButton-MXjsw052.js";import"./focus-manager-2Tj_cRjd.js";import"./QBtn-CB6dNghi.js";import"./QIcon-BJFzJrqY.js";import"./QCard-Bz0Mt6Oo.js";import"./QDialog-Co9hNFbi.js";import"./use-timeout-asPMro-2.js";import"./focusout-CNMg2MhP.js";import"./CIcon-Cv_6yHZA.js";const F=b({__name:"CompanyRow",props:{item:{},selected:{type:Boolean}},setup(d){return(e,t)=>{const i=S("AppTitle");return n(),m("div",{class:"row items-center no-wrap border-radius cursor-pointer py-md-4 px-md-6 gap-6",style:h(e.$q.screen.lt.md?"":e.selected?`outline: 2px #${e.$uiSettings.item?.primaryColor.color} solid`:`outline: 1px #${e.$uiSettings.item?.secondaryColor.color} solid`)},[l(C,{height:e.$q.screen.lt.md?"44px":"54px",width:e.$q.screen.lt.md?"44px":"54px",style:h(`min-height: ${e.$q.screen.lt.md?"44px":"54px"} ; min-width: ${e.$q.screen.lt.md?"44px":"54px"}`),class:"border-radius",fit:"cover",src:e.item.image?.thumbnail||e.$store.images.empty()},{error:r(()=>[p("span",null,[l(C,{class:"border-radius",fit:"cover",width:e.$q.screen.lt.md?"44px":"54px",height:e.$q.screen.lt.md?"44px":"54px",src:e.$store.images.empty()},null,8,["width","height","src"])])]),_:1},8,["height","width","style","src"]),l(i,{size:"md",weight:"semibold",class:"row no-wrap justify-between col items-center text-on-background-color"},{default:r(()=>[k(A(e.item.name)+" ",1),l(_,{"model-value":e.selected,check:"",height:"22px",width:"22px","icon-size":"13px"},null,8,["model-value"])]),_:1})],4)}}}),G=q(F,[["__file","CompanyRow.vue"]]),I={class:"column full-width"},K={class:"column no-wrap full-width gap-md-10 gap-xs-6"},L=b({__name:"SelectCompanyModal",props:{modelValue:{type:Boolean},noClose:{type:Boolean},selectedCompany:{},closeOnSelect:{type:Boolean}},emits:["update:modelValue","select"],setup(d,{emit:e}){const t=d,i=e,a=f(t.selectedCompany||null),c=f(!1),V=Q(),B=j();g(()=>t.modelValue,o=>{o&&t.selectedCompany&&(a.value=t.selectedCompany)}),g(()=>t.modelValue,o=>{o&&v.cartCompany&&(a.value=v.cartCompany),!o&&!c.value&&(V.clearCartConfigTab(),B.onOpenCategory())});const x=o=>{a.value=o},N=()=>{c.value=!0,O(U).emit({company:a.value}),i("select",a.value),t.closeOnSelect&&i("update:modelValue",!1)};return(o,u)=>{const z=S("AppTitle");return n(),$(T,{"hide-close":o.$q.screen.lt.md||o.noClose,maximize:o.$q.screen.lt.md,"model-value":o.modelValue,position:o.$q.screen.lt.md?"bottom":void 0,width:o.$q.screen.lt.md?"100%":"400px","onUpdate:modelValue":u[0]||(u[0]=s=>o.$emit("update:modelValue",s))},{default:r(()=>[p("div",I,[l(z,{size:"xl",weight:"semibold",class:"mb-md-15 mb-xs-10 text-on-background-color"},{default:r(()=>[k(" ÐÑбеÑиÑе заведение ")]),_:1}),p("div",K,[(n(!0),m(w,null,D(o.$companyGroup.item?.companies,(s,y)=>(n(),m(w,{key:y},[y&&o.$q.screen.lt.md?(n(),$(R,{key:0,color:"divider-color"})):M("",!0),l(G,{item:s,selected:a.value?.id===s.id,onClick:P=>x(s)},null,8,["item","selected","onClick"])],64))),128))]),l(E,{disabled:!a.value,label:o.$q.screen.lt.md?"ÐÑбÑаÑÑ":"ÐÑбÑаÑÑ Ð·Ð°Ð²ÐµÐ´ÐµÐ½Ð¸Ðµ",class:"text-lg font-medium mt-15",width:"100%",onClick:N},null,8,["disabled","label"])])]),_:1},8,["hide-close","maximize","model-value","position","width"])}}}),re=q(L,[["__file","SelectCompanyModal.vue"]]);export{re 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.