import{_ as A}from"./EmptyStateBlock-D6U_EDq6.js";import{u as B,n as L}from"./bootstrap-vue-next-3DpAa4tb.js";import{_ as y}from"./ServiceListOrderSelection-CxiE4waM.js";import{_ as g}from"./ClausesKeeper-DVJgfLR3.js";import{u as w}from"./services-Dmz4Qt8q.js";import{_ as x}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{M,N as P,r as I,f as D,m as V,c as k,o as r,b,C as p,w as h,F as U,i as O}from"./index-CipWZKo_.js";const j={class:"tw-mt-8"},C={__name:"BlockAdditionalServices",props:M(["serviceSearchParams"],{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(v){const s=w(),n=v,N=P(v,"modelValue"),c=I({}),i=I({}),f=D(()=>s?.ServicesList?Object.keys(s.ServicesList).map(e=>({...s.ServicesList[e],value:s.ServicesList[e]?.ID})).filter(e=>{const o=e?.ServicesGroupID!=1e3,l=e?.IsActive,u=!e?.IsHidden,m=Number(e?.ID)>=5e4,d=s.DependServicesList?.includes(e?.ID);return o&&l&&u&&m&&d}).sort((e,o)=>Number(e?.SortID)<Number(o?.SortID)?-1:Number(e?.SortID)>Number(o?.SortID)?1:0):[]),S=D(()=>Object.keys(c.value).filter(a=>c.value[a]).map(a=>i.value[a]));return V(S,()=>{N.value=S.value}),V(()=>n.serviceSearchParams,()=>{n.serviceSearchParams&&s.fetchDependServices(n.serviceSearchParams)},{deep:!0,immediate:!0}),(a,e)=>{const o=g,l=y,u=B,m=L,d=A;return r(),k("div",j,[b(o),f.value?(r(),p(m,{key:0,free:"",class:"services__list"},{default:h(()=>[(r(!0),k(U,null,O(f.value,(t,E)=>(r(),p(u,{key:t.ID,title:t?.Name,modelValue:c.value[t.ID],"onUpdate:modelValue":_=>c.value[t.ID]=_,class:"profile-notification__collapse"},{default:h(()=>[b(l,{sectionID:t.ID,sectionData:t,modelValue:i.value[t.ID],"onUpdate:modelValue":_=>i.value[t.ID]=_,"update-with-page-transition":!1,"is-inline":""},null,8,["sectionID","sectionData","modelValue","onUpdate:modelValue"])]),_:2},1032,["title","modelValue","onUpdate:modelValue"]))),128))]),_:1})):(r(),p(d,{key:1,label:"Дополнительные услуги не найденыы"}))])}}},J=x(C,[["__scopeId","data-v-723ad33e"]]);export{J as _};
