import{_ as v}from"./ButtonDefault-CghIUDY0.js";import{_ as C}from"./SimpleCheckbox-D8m7Qqoe.js";import{_ as b}from"./ClausesKeeper-DVJgfLR3.js";import{_ as k}from"./BlockBalanceAgreement-2iQbaweR.js";import{c as V,b as n,a as e,w as _,E as y,F as S,r as d,f as h,g as T,o as x,e as u,t as B}from"./index-CipWZKo_.js";import{u as I}from"./contracts-CILh9uSu.js";import{_ as U}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./IconClose-ChC2G6HM.js";const w={async setup(){const s=I(),t=d(2),l=T(),o=d(!1),a=h(()=>s?.contractsList?.[l.params.id]);function c(){o.value=!0,s.contractEdit({ContractID:a.value?.ID,IsUponConsider:t.value}).then(()=>{o.value=!1})}return await s.fetchContracts().then(()=>{t.value=a.value?.IsUponConsider?1:0}),{reportType:t,getContract:a,isLoading:o,changeSettings:c}}},D={class:"section"},E={class:"container"},L={class:"section-header"},N={class:"breadcrumb"},F={class:"form"};function $(s,t,l,o,a,c){const p=k,i=y("router-link"),f=b,m=C,g=v;return x(),V(S,null,[n(p),e("div",D,[e("div",E,[e("div",L,[e("div",N,[n(i,{to:"/Contracts",class:"section-label"},{default:_(()=>t[3]||(t[3]=[u("Договора /",-1)])),_:1,__:[3]}),n(i,{to:`/ContractScheme/${s.$route.params.id}`,class:"section-label"},{default:_(()=>[u(B(o.getContract?.Customer),1)]),_:1},8,["to"])]),t[4]||(t[4]=e("h1",{class:"section-title"},"Настройки договора",-1))]),n(f),t[5]||(t[5]=e("div",{class:"section-header small-margin"},[e("h2",{class:"section-block_title"},"Способ отчетности")],-1)),e("div",F,[n(m,{label:"По факту",value:"0",modelValue:o.reportType,"onUpdate:modelValue":t[0]||(t[0]=r=>o.reportType=r)},null,8,["modelValue"]),n(m,{label:"Ежемесечно",value:"1",modelValue:o.reportType,"onUpdate:modelValue":t[1]||(t[1]=r=>o.reportType=r)},null,8,["modelValue"]),n(g,{class:"settings-button","is-loading":o.isLoading,label:"Сохранить",onClick:t[2]||(t[2]=r=>o.changeSettings())},null,8,["is-loading"])])])])],64)}const K=U(w,[["render",$],["__scopeId","data-v-3b6aca9a"]]);export{K as default};
