import{al as O,am as b,ao as A,cg as h,ch as P}from"./entry.2eaa703d.js";const j=()=>({totalCount:0,contractDocuments:[],filters:[],availableFilters:[],query:A(),initialLoading:!0,isLoading:!1,isExportLoading:!1}),M=x("contractDocumentStore");function x(n){return O(n,{state:()=>j(),actions:{getContractDocuments(){return this.isLoading=!0,b.contractDocument.getContractDocuments().then(a=>(this.contractDocuments=a.data,this.totalCount=a.headers.total,a)).finally(()=>{this.initialLoading=!1,this.isLoading=!1})},getContractDocument(a){return this.isLoading=!0,b.contractDocument.getContractDocument(a,"html").then(e=>e).finally(()=>{this.initialLoading=!1,this.isLoading=!1})},createDraftContractDocument(a){return this.isLoading=!0,b.contractDocument.createDraftContractDocument(a).then(e=>e).finally(()=>{this.isLoading=!1})},signContractDocument(a){return this.isLoading=!0,b.contractDocument.signContractDocument(a).then(e=>e).finally(()=>{this.isLoading=!1})}}})}var v={},m={},y={},p={},E=h&&h.__awaiter||function(n,a,e,i){function c(t){return t instanceof e?t:new e(function(o){o(t)})}return new(e||(e=Promise))(function(t,o){function u(s){try{r(i.next(s))}catch(f){o(f)}}function l(s){try{r(i.throw(s))}catch(f){o(f)}}function r(s){s.done?t(s.value):c(s.value).then(u,l)}r((i=i.apply(n,a||[])).next())})},T=h&&h.__generator||function(n,a){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},i,c,t,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(r){return function(s){return l([r,s])}}function l(r){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,c&&(t=r[0]&2?c.return:r[0]?c.throw||((t=c.return)&&t.call(c),0):c.next)&&!(t=t.call(c,r[1])).done)return t;switch(c=0,t&&(r=[r[0]&2,t.value]),r[0]){case 0:case 1:t=r;break;case 4:return e.label++,{value:r[1],done:!1};case 5:e.label++,c=r[1],r=[0];continue;case 7:r=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!t||r[1]>t[0]&&r[1]<t[3])){e.label=r[1];break}if(r[0]===6&&e.label<t[1]){e.label=t[1],t=r;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(r);break}t[2]&&e.ops.pop(),e.trys.pop();continue}r=a.call(n,e)}catch(s){r=[6,s],c=0}finally{i=t=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(p,"__esModule",{value:!0});p.ReCaptchaInstance=void 0;var k=function(){function n(a,e,i){this.siteKey=a,this.recaptchaID=e,this.recaptcha=i,this.styleContainer=null}return n.prototype.execute=function(a){return E(this,void 0,void 0,function(){return T(this,function(e){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:a}):this.recaptcha.execute(this.recaptchaID,{action:a})]})})},n.prototype.getSiteKey=function(){return this.siteKey},n.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},n.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},n}();p.ReCaptchaInstance=k;Object.defineProperty(y,"__esModule",{value:!0});y.getInstance=y.load=void 0;var $=p,d;(function(n){n[n.NOT_LOADED=0]="NOT_LOADED",n[n.LOADING=1]="LOADING",n[n.LOADED=2]="LOADED"})(d||(d={}));var L=function(){function n(){}return n.load=function(a,e){if(e===void 0&&(e={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(n.getLoadingState()===d.LOADED)return n.instance.getSiteKey()===a?Promise.resolve(n.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(n.getLoadingState()===d.LOADING)return a!==n.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(c,t){n.successfulLoadingConsumers.push(function(o){return c(o)}),n.errorLoadingRunnable.push(function(o){return t(o)})});n.instanceSiteKey=a,n.setLoadingState(d.LOADING);var i=new n;return new Promise(function(c,t){i.loadScript(a,e.useRecaptchaNet||!1,e.useEnterprise||!1,e.renderParameters?e.renderParameters:{},e.customUrl).then(function(){n.setLoadingState(d.LOADED);var o=i.doExplicitRender(grecaptcha,a,e.explicitRenderParameters?e.explicitRenderParameters:{},e.useEnterprise||!1),u=new $.ReCaptchaInstance(a,o,grecaptcha);n.successfulLoadingConsumers.forEach(function(l){return l(u)}),n.successfulLoadingConsumers=[],e.autoHideBadge&&u.hideBadge(),n.instance=u,c(u)}).catch(function(o){n.errorLoadingRunnable.forEach(function(u){return u(o)}),n.errorLoadingRunnable=[],t(o)})})},n.getInstance=function(){return n.instance},n.setLoadingState=function(a){n.loadingState=a},n.getLoadingState=function(){return n.loadingState===null?d.NOT_LOADED:n.loadingState},n.prototype.loadScript=function(a,e,i,c,t){var o=this;e===void 0&&(e=!1),i===void 0&&(i=!1),c===void 0&&(c={}),t===void 0&&(t="");var u=document.createElement("script");u.setAttribute("recaptcha-v3-script","");var l="https://www.google.com/recaptcha/api.js";e&&(i?l="https://recaptcha.net/recaptcha/enterprise.js":l="https://recaptcha.net/recaptcha/api.js"),i&&(l="https://www.google.com/recaptcha/enterprise.js"),t&&(l=t),c.render&&(c.render=void 0);var r=this.buildQueryString(c);return u.src=l+"?render=explicit"+r,new Promise(function(s,f){u.addEventListener("load",o.waitForScriptToLoad(function(){s(u)},i),!1),u.onerror=function(I){n.setLoadingState(d.NOT_LOADED),f(I)},document.head.appendChild(u)})},n.prototype.buildQueryString=function(a){var e=Object.keys(a);return e.length<1?"":"&"+Object.keys(a).filter(function(i){return!!a[i]}).map(function(i){return i+"="+a[i]}).join("&")},n.prototype.waitForScriptToLoad=function(a,e){var i=this;return function(){window.grecaptcha===void 0?setTimeout(function(){i.waitForScriptToLoad(a,e)},n.SCRIPT_LOAD_DELAY):e?window.grecaptcha.enterprise.ready(function(){a()}):window.grecaptcha.ready(function(){a()})}},n.prototype.doExplicitRender=function(a,e,i,c){var t={sitekey:e,badge:i.badge,size:i.size,tabindex:i.tabindex};return i.container?c?a.enterprise.render(i.container,t):a.render(i.container,t):c?a.enterprise.render(t):a.render(t)},n.loadingState=null,n.instance=null,n.instanceSiteKey=null,n.successfulLoadingConsumers=[],n.errorLoadingRunnable=[],n.SCRIPT_LOAD_DELAY=25,n}();y.load=L.load;y.getInstance=L.getInstance;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.ReCaptchaInstance=n.getInstance=n.load=void 0;var a=y;Object.defineProperty(n,"load",{enumerable:!0,get:function(){return a.load}}),Object.defineProperty(n,"getInstance",{enumerable:!0,get:function(){return a.getInstance}});var e=p;Object.defineProperty(n,"ReCaptchaInstance",{enumerable:!0,get:function(){return e.ReCaptchaInstance}})})(m);var D=h&&h.__awaiter||function(n,a,e,i){function c(t){return t instanceof e?t:new e(function(o){o(t)})}return new(e||(e=Promise))(function(t,o){function u(s){try{r(i.next(s))}catch(f){o(f)}}function l(s){try{r(i.throw(s))}catch(f){o(f)}}function r(s){s.done?t(s.value):c(s.value).then(u,l)}r((i=i.apply(n,a||[])).next())})},R=h&&h.__generator||function(n,a){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},i,c,t,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(r){return function(s){return l([r,s])}}function l(r){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,c&&(t=r[0]&2?c.return:r[0]?c.throw||((t=c.return)&&t.call(c),0):c.next)&&!(t=t.call(c,r[1])).done)return t;switch(c=0,t&&(r=[r[0]&2,t.value]),r[0]){case 0:case 1:t=r;break;case 4:return e.label++,{value:r[1],done:!1};case 5:e.label++,c=r[1],r=[0];continue;case 7:r=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!t||r[1]>t[0]&&r[1]<t[3])){e.label=r[1];break}if(r[0]===6&&e.label<t[1]){e.label=t[1],t=r;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(r);break}t[2]&&e.ops.pop(),e.trys.pop();continue}r=a.call(n,e)}catch(s){r=[6,s],c=0}finally{i=t=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(v,"__esModule",{value:!0});var F=v.useReCaptcha=N=v.VueReCaptcha=void 0,G=m,_=P,S=Symbol("VueReCaptchaInjectKey"),g={loadedWaiters:[],error:null},N=v.VueReCaptcha={install:function(n,a){var e=_.ref(!1),i=_.ref(void 0);n.config.globalProperties.$recaptchaLoaded=C(e),K(a).then(function(c){e.value=!0,i.value=c,n.config.globalProperties.$recaptcha=w(i),n.config.globalProperties.$recaptchaInstance=i,g.loadedWaiters.forEach(function(t){return t.resolve(!0)})}).catch(function(c){g.error=c,g.loadedWaiters.forEach(function(t){return t.reject(c)})}),n.provide(S,{instance:i,isLoaded:e,executeRecaptcha:w(i),recaptchaLoaded:C(e)})}};function V(){return _.inject(S)}F=v.useReCaptcha=V;function K(n){return D(this,void 0,void 0,function(){return R(this,function(a){switch(a.label){case 0:return[4,G.load(n.siteKey,n.loaderOptions)];case 1:return[2,a.sent()]}})})}function C(n){return function(){return new Promise(function(a,e){if(g.error!==null)return e(g.error);if(n.value)return a(!0);g.loadedWaiters.push({resolve:a,reject:e})})}}function w(n){var a=this;return function(e){return D(a,void 0,void 0,function(){var i;return R(this,function(c){switch(c.label){case 0:return[4,(i=n.value)===null||i===void 0?void 0:i.execute(e)];case 1:return[2,c.sent()]}})})}}export{N as V,F as a,M as u};
