(function(){"use strict";var n=angular.module("app",["ngAnimate","ngSanitize","ngFileUpload","ngCookies","ui.router","ui.bootstrap","ui.jq","ngTable","abp","mgcrea.ngStrap","xeditable","filters","angular.filter","chart.js","angularFileUpload","angularMoment","oc.lazyLoad"]);n.run(["$rootScope",function(n){n.env||(n.env={})}]);n.config(["$stateProvider","$urlRouterProvider",function(n,t){var i={loadMyCtrl:["$ocLazyLoad",function(n){return n.load(["/Content/selectize.css","/Scripts/select.min.js"])}]};t.otherwise("/");n.state("home",{url:"/",templateUrl:"/App/Main/views/home/home.cshtml",menu:"Home",resolve:i}).state("applicationBlank",{url:"/applicationBlank",templateUrl:"/App/Main/views/profile/applicationBlank.cshtml"}).state("accessionTreaty",{url:"/accessionTreaty",templateUrl:"/App/Main/views/profile/accessionTreaty.cshtml"}).state("news",{url:"/news",templateUrl:"/App/Main/views/news/news.cshtml"}).state("promodata",{url:"/promodata",templateUrl:"/App/Main/views/tenders/promodata.cshtml"}).state("organizationDetailes",{url:"/organizationDetailes/{tenantId}",templateUrl:"/App/Main/views/profile/organizationDetailesForApprove.cshtml"}).state("assetDetails",{url:"/assetDetails/{aId}",templateUrl:"/App/Main/views/assets/assetDetails.cshtml"}).state("lotDetails",{url:"/lotDetails/{aId}",templateUrl:"/App/Main/views/assets/lotDetails.cshtml"}).state("childOrganizations",{url:"/childOrganizations/",templateUrl:"/App/Main/views/profile/childOrganizations.cshtml"}).state("tenderDetailes",{url:"/tenderDetailes/{tId}",templateUrl:"/App/Main/views/tenders/tenderDetailes.cshtml"}).state("landLeaseDetails",{url:"/landLeaseDetails/{tId}",templateUrl:"/App/Main/views/tenders/landLeaseDetails.cshtml"}).state("updateTender",{url:"/updateTender/{tId}",templateUrl:"/App/Main/views/tenders/updateTender.cshtml"}).state("updateLandLease",{url:"/updateLandLease/{tId}",templateUrl:"/App/Main/views/tenders/updateLandLease.cshtml"}).state("updateDraft",{url:"/updateDraft/{tId}",templateUrl:"/App/Main/views/tenders/updateDraft.cshtml"}).state("updatePlan",{url:"/updatePlan/{tId}",templateUrl:"/App/Main/views/plans/updatePlan.cshtml"}).state("addQuestionCbd3",{url:"/addQuestion/{tId}/{type}/{cbd}",templateUrl:"/App/Main/views/tenders/addQuestion.cshtml"}).state("addQuestion",{url:"/addQuestion/{tId}/{type}",templateUrl:"/App/Main/views/tenders/addQuestion.cshtml"}).state("createTender",{url:"/createTender",templateUrl:"/App/Main/views/tenders/createTender.cshtml"}).state("createTenderType",{url:"/createTender/{type}",templateUrl:"/App/Main/views/tenders/createTender.cshtml"}).state("createAuctionTypeOrId",{url:"/createAuction/{typeOrId}",templateUrl:"/App/Main/views/tenders/createAuction.cshtml",resolve:i}).state("createAuctionTypeAndId",{url:"/createAuction/{typeOrId}/{objId}",templateUrl:"/App/Main/views/tenders/createAuction.cshtml",resolve:i}).state("updateAuctionId",{url:"/updateAuction/{id}",templateUrl:"/App/Main/views/tenders/updateAuction.cshtml",resolve:i}).state("createLandLease",{url:"/createLandLease",templateUrl:"/App/Main/views/tenders/createLandLease.cshtml",resolve:i}).state("createLandLeaseCopy",{url:"/createLandLease/{aId}",templateUrl:"/App/Main/views/tenders/createLandLease.cshtml"}).state("createLandLeaseType",{url:"/createLandLease/{aId}/{type}",templateUrl:"/App/Main/views/tenders/createLandLease.cshtml"}).state("createAsset",{url:"/createAsset",templateUrl:"/App/Main/views/assets/createAsset.cshtml",resolve:i}).state("updateAsset",{url:"/updateAsset/{aId}",templateUrl:"/App/Main/views/assets/updateAsset.cshtml",resolve:i}).state("createPlan",{url:"/createPlan",templateUrl:"/App/Main/views/plans/createPlan.cshtml"}).state("copyLot",{url:"/copyLot",templateUrl:"/App/Main/views/tenders/copyLot.cshtml"}).state("SystemState",{url:"/SystemState",templateUrl:"/App/Main/views/operator/systemState.cshtml"}).state("login",{url:"/login",templateUrl:"/App/Main/views/auth/loginNew.cshtml"}).state("logout",{url:"/logout",template:"",controller:"logoutController"}).state("register",{url:"/register",templateUrl:"/App/Main/views/auth/registerNew.cshtml"}).state("activate",{url:"/activate/{userId}/{code:.*}",templateUrl:"/App/Main/views/auth/activate.cshtml"}).state("changeEmail",{url:"/changeEmail/{userId}/{code:.*}",templateUrl:"/App/Main/views/auth/changeEmail.cshtml"}).state("resetPassword",{url:"/resetpassword/{userId}/{code:.*}",templateUrl:"/App/Main/views/auth/resetPassword.cshtml"}).state("sendPassword",{url:"/sendPassword",templateUrl:"/App/Main/views/auth/sendPassword.cshtml"}).state("profile",{url:"/profile",templateUrl:"/App/Main/views/profile/profile.cshtml",resolve:i}).state("subscription",{url:"/subscription",templateUrl:"/App/Main/views/profile/subscription.cshtml",resolve:i}).state("messages",{url:"/messages",templateUrl:"/App/Main/views/profile/messages.cshtml"}).state("createProfile",{url:"/createProfile",templateUrl:"/App/Main/views/profile/createProfileNew.cshtml",resolve:i}).state("contacts",{url:"/contacts",templateUrl:"/App/Main/views/contacts/contacts.cshtml"}).state("contracts",{url:"/contracts/{tId}/{cbd}",templateUrl:"/App/Main/views/contracts/contracts.cshtml"}).state("contracting",{url:"/contracting/{id}",templateUrl:"/App/Main/views/contracting/contracting.cshtml"}).state("contractingClose",{url:"/contractingClose/{id}",templateUrl:"/App/Main/views/contracting/contractingClose.cshtml"}).state("contractingBreaking",{url:"/contractingBreaking/{id}",templateUrl:"/App/Main/views/contracting/contractingBreaking.cshtml"}).state("help",{url:"/help",templateUrl:"/App/Main/views/help/help.cshtml",resolve:i}).state("profiles",{url:"/profiles",templateUrl:"/App/Main/views/profile/profilesList.cshtml"}).state("report",{url:"/report",templateUrl:"/App/Main/views/report/report.cshtml"}).state("tarifs",{url:"/tarifs",templateUrl:"/App/Main/views/tarifs/tarifs.cshtml"}).state("assetObjects",{url:"/assetObjects",templateUrl:"/App/Main/views/assets/assetObjects.cshtml"}).state("lotObjects",{url:"/lotObjects",templateUrl:"/App/Main/views/assets/lotObjects.cshtml"}).state("auctionObjects",{url:"/auctionObjects",templateUrl:"/App/Main/views/assets/auctionObjects.cshtml",resolve:i}).state("registryObjects",{url:"/registryObjects/{tab}",templateUrl:"/App/Main/views/registry/registryObjects.cshtml",resolve:i}).state("registryObjectDetailes",{url:"/registryObjectDetailes/{registryId}",templateUrl:"/App/Main/views/registry/registryObjectDetailes.cshtml",resolve:i}).state("tendersArchive",{url:"/tendersArchive",templateUrl:"/App/Main/views/tenders/tendersArchive.cshtml"}).state("createAssetInfoMsng",{url:"/createAssetInfoMsng/{id}/{lotType:.*}",templateUrl:"/App/Main/views/assets/createAssetInfoMsng.cshtml"}).state("updateAssetInfoMsng",{url:"/updateAssetInfoMsng/{aId}",templateUrl:"/App/Main/views/assets/updateAssetInfoMsng.cshtml"}).state("auctionDetails",{url:"/auctionDetails/{aId}",templateUrl:"/App/Main/views/assets/auctionDetails.cshtml"}).state("updateAuctionMp",{url:"/updateAuctionMp/{aId}",templateUrl:"/App/Main/views/assets/updateAuctionMp.cshtml"}).state("updateAuctionMpLot",{url:"/updateAuctionMp/{aId}/{lotId}",templateUrl:"/App/Main/views/assets/updateAuctionMp.cshtml"}).state("registerStage3",{url:"/registerStage3",templateUrl:"/App/Main/views/profile/registerStage3.cshtml"}).state("forestRequests",{url:"/forestRequests",params:{isForestRequestsTab:!0},templateUrl:"/App/Main/views/profile/profile.cshtml",resolve:i}).state("createRegistryObject",{url:"/createRegistryObject/{typeRegistryObj}",templateUrl:"/App/Main/views/registry/createRegistryObject.cshtml",resolve:i}).state("createRegistryObjectFromTemplate",{url:"/createRegistryObjectFromTemplate/{typeRegistryObj}/{fromTpl}",templateUrl:"/App/Main/views/registry/createRegistryObject.cshtml",resolve:i}).state("updateRegistryObject",{url:"/updateRegistryObject/{typeRegistryObj}",templateUrl:"/App/Main/views/registry/createRegistryObject.cshtml",resolve:i}).state("updateRegistryObjectForAuction",{url:"/updateRegistryObjectForAuction/{typeRegistryObj}/{forAuct}",templateUrl:"/App/Main/views/registry/createRegistryObject.cshtml",resolve:i}).state("createLeaseRequest",{url:"/createLeaseRequest/{regObjApiId}",templateUrl:"/App/Main/views/registry/createLeaseRequest.cshtml"}).state("updateLeaseRequest",{url:"/updateLeaseRequest/{regObjApiId}",templateUrl:"/App/Main/views/registry/createLeaseRequest.cshtml"}).state("leaseRequests",{url:"/leaseRequests",templateUrl:"/App/Main/views/registry/leaseRequests.cshtml",resolve:i}).state("leaseRequestDetailes",{url:"/leaseRequestDetailes/{leaseRequestId}",templateUrl:"/App/Main/views/registry/leaseRequestDetailes.cshtml"}).state("leaseActionDetailes",{url:"/leaseActionDetailes/{leaseActionId}",templateUrl:"/App/Main/views/registry/leaseActionDetailes.cshtml"}).state("createLeaseAction",{url:"/createLeaseAction/{registryObjectApiId}",templateUrl:"/App/Main/views/registry/createLeaseAction.cshtml",resolve:i}).state("updateLeaseAction",{url:"/updateLeaseAction/{leaseActionId}",templateUrl:"/App/Main/views/registry/createLeaseAction.cshtml",resolve:i}).state("leaseActions",{url:"/leaseActions",templateUrl:"/App/Main/views/registry/leaseActions.cshtml",resolve:i}).state("regContracts",{url:"/regContracts",templateUrl:"/App/Main/views/registry/regContracts.cshtml",resolve:i}).state("landSellPriorityCurrentTenantUpdate",{url:"/landSellPriorityCurrentTenantUpdate/{tenderId}",templateUrl:"/App/Main/views/tenders/landRental/landSellPriorityForm.cshtml",controller:"app.views.landSellPriorityForm"})}]).run(["$state","$rootScope","$location",function(n,t){t.$on("$locationChangeSuccess",function(i,r,u){var f=n.get("home");angular.forEach(n.get(),function(n){var t=new RegExp("/"+n.name+"($|/)","i");t.test(u)&&n.name.length>0&&(f=n)});t.env.isAuthorized?(/.*(login|accessionTreaty).*/i.test(r)||t.env.isAgreementSigned||localStorage.isAgreementSigned||!t.accessionTreatyOrgTypes.includes(t.typeOfOrganization||localStorage.typeOfOrganization)||(i.preventDefault(),n.go("accessionTreaty")),/createProfile/i.test(r)&&!/(login|activate|createProfile)/i.test(u)&&(i.preventDefault(),n.go(f)),/registerStage3/i.test(r)&&!/createProfile/i.test(u)&&(i.preventDefault(),n.go(f)),/accessionTreaty/i.test(r)&&(t.env.isAgreementSigned||localStorage.isAgreementSigned)&&(i.preventDefault(),n.go(f))):/(registerStage3|createProfile)/i.test(r)&&(i.preventDefault(),n.go(f))})}]);n.config(["$datepickerProvider",function(n){angular.extend(n.defaults,{dateFormat:"dd.MM.yyyy",startWeek:1})}]);n.value("localhost","localhost").value("eauction","e-auction.pro").value("eauctionUa","e-auction.ua").value("assetEauction","auction.e-tender.ua").value("uatAssetEauction","uatasset.e-auction.ua").value("qa","192.168.100.14").value("buildserver","192.168.100.14").value("prodserver","e-tender.biz").value("numberOfRecords","10").value("numberOfRecordsIframe","10");n.run(["editableOptions",function(n){n.theme="bs3"}]);moment.duration(2,"minutes");n.run(["$rootScope","$location","localhost","buildserver","prodserver","qa","eauction","eauctionUa","assetEauction","uatAssetEauction",function(n,t,i,r,u,f,e,o,s,h){var c,l;n.regex={login:/^(?:[A-Z\d][A-Z\d_-]{4,256}|[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,10})$/i,word:/^[A-Za-z]\s*\w*\s*$/i,wordAnyLanguage:/^[a-zA-Zа-яА-Яа-яА-ЯІіЇїЄєҐґЁё'`]+[`'-]?[a-zA-Zа-яА-Яа-яА-ЯІіЇїЄєҐґЁё'`]*$/i,wordAnyLanguageWithSpaces:/^[a-zA-Zа-яА-Яа-яА-ЯІіЇїЄєҐґЁё'`\s\.]+['`-]?[a-zA-Zа-яА-Яа-яА-ЯІіЇїЄєҐґЁё'`\.]*$/i,password:/(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z])/,organisationName:/^[^}{<!;:?*()_=+/\,!@[#^&|~>%$]*$/,number:/^\d+$/,floatNumber:/^[0-9]*\.?[0-9]+$/,floatNumber4Decimal:/^[0-9]*\.?[0-9]{1,4}$/,floatNumber2Decimal:/^[0-9]+((\.|\,)[0-9]{1,2})?$/,tenderName:/^[^}{<!;:?*_=+/\!@[#^&|~>%$]*$/,date:"^(0[1-9]|[1-2][0-9]|3[0-1]).(0[1-9]|1[0-2]).[0-9]{4}$",phone:/^[0-9-]+$/i,url:/^https?:\/\/(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?::\d+)?(?:\/?|[/?]\S+)$/i,email:/(^[-!#$%&'*+\/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+\/=?^_`{}|~0-9A-Z]+)*|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-011\013\014\016-\177])*")@(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,32}\.?$/i,cadastralNumber:/\d{10}:\d{2}:\d{3}:\d{4}/,passportUkraineOldFormat:/^([А-Яа-яІіЇїЄє]{1,2}[0-9]{6})$/,passportOldFormatOrIdCardUkraine:/^([А-Яа-яІіЇїЄє]{1,2}[0-9]{6})$|^[0-9]{9}$/,passportIdCardUkraine:/^[0-9]{9}$/,ipn:/^[0-9]{10}$/,edrpo:/^[0-9]{8}$/,lotIdTimberEnglish:/^([a-z]{3}[0-9]{3}-[a-z]{2}-[0-9]{8}-[0-9]{5}|[a-z]{2}-[a-z]{2}-[0-9]{4}-[0-9]{2}-[0-9]{2}-[0-9]{6}-\d)$/i,accountIBAN:/^[A-Z0-9]{5,34}$/,accountUAIBAN:/^UA\d{27}$/,universalOrgCode:/^([a-zа-еж-щюяїєі]{2}\d{6}|\d{8,10})$/i,edrpouCode:/^\d{8}$/,timeFormat:/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/,fopVatCode:/^(\d{10}|\d{12})$/,yurVatCode:/^\d{12}$/};n.fastTypesRegex={timberEnglish:/^timber-english/i,timberMultiAwards:/^timber-multiAwards/i,railwayCargo:/^railwayCargo/i,railwayCargoEnglish:/^railwayCargo-english/i,railwayCargoDutch:/^railwayCargo-dutch/i,subsoil:/^subsoil/i,subsoilEnglish:/^subsoil-english/i,subsoilDutch:/^subsoil-dutch/i,legitimatePropertyLease:/^legitimatePropertyLease/i,legitimatePropertyLeaseEnglish:/^legitimatePropertyLease-english/i,legitimatePropertyLeaseDutch:/^legitimatePropertyLease-dutch/i,legitimatePropertyLeasePriorityEnglish:/^legitimatePropertyLease-priorityEnglish/i,landRental:/^landRental/i,landRentalEnglish:/^landRental-english/i,landSell:/^landSell/i,landSellEnglish:/^landSell-english/i,landSellPriorityEnglish:/^landSell-priorityEnglish/i,basicSellEnglish:/^basicSell-english/i,basicSellDutch:/^basicSell-dutch/i,basicSell:/^basicSell/i,commercialSell:/^commercialSell/i,alienation:/^alienation/i,commercialSellEnglish:/^commercialSell-english/i,commercialSellDutch:/^commercialSell-dutch/i};n.source=abp.localization.getSource(abp.setting.get("LocalizationWebMode"));c=t.absUrl();c.indexOf(i)>-1&&(n.captchaSiteKey="6LfOlv8SAAAAAEw3dffSnHSz70qlET1qWRQ2ATns",n.captchaSecretKey="6LfOlv8SAAAAADhbj4ucaZP7Ed94ECkwnDu31Jll");c.indexOf(u)>-1&&(n.captchaSiteKey="6Ld8EAITAAAAAHaKysS48nHv__u44GEBjP761xMB",n.captchaSecretKey="6Ld8EAITAAAAAEI28wBto62a210POe0fXv5v0zJl");c.indexOf(f)>-1&&(n.captchaSiteKey="6Lf9ZBwTAAAAAMoM2i2HGIAsl-bQkSjSxQUg_v9a",n.captchaSecretKey="6Lf9ZBwTAAAAAJ-aw79ELwj_NZdh9ZgxNA-OACj4");c.indexOf(e)>-1&&(n.captchaSiteKey="6LcJASITAAAAACIWy2Oc8USOOq95c7sXJ39dKuf_",n.captchaSecretKey="6LcJASITAAAAACPTt-WxI1WXiHrIYnZSIzPD5uyZ");c.indexOf(o)>-1&&(n.captchaSiteKey="6LffNAoUAAAAAP4JIIWYP3TDYMtc_5Lm1hfUuh_0",n.captchaSecretKey="6LffNAoUAAAAAHl8iow2VzGyf9_AsBgOOW2oDS01");c.indexOf(s)>-1&&(n.captchaSiteKey="6Lengm4UAAAAAEd69-pdyp3qn6-SKAzFClIznP67",n.captchaSecretKey="6Lengm4UAAAAAHptD30VO0TYqZM4-kcwCT7LjAMh");c.indexOf(h)>-1&&(n.captchaSiteKey="6LdR6iIUAAAAAB8R3AOgfJlEcivaW9CHcxbU0ask",n.captchaSecretKey="6LdR6iIUAAAAAAomQt_A4v7Ax2F-tTZ5NZLJIFhK");l=function(n,t,i,r){r===!0?toastr[n](t,i,{closeButton:!0,timeOut:0,extendedTimeOut:0}):toastr[n](t,i)};abp.notify.success=function(n,t,i){l("success",n,t,i)};abp.notify.info=function(n,t,i){l("info",n,t,i)};abp.notify.warn=function(n,t,i){l("warning",n,t,i)};abp.notify.error=function(n,t,i){l("error",n,t,i)};n.accessionTreatyOrgTypes=[1,2,6,9,11,17];n.env.validation={invalidNumber2DecimalMsg:"Невірний формат суми. Дозволяється вводити числа з одним-двома знаками після розділового знаку"}}])})();var abp=abp||{};(function(){abp.message=abp.message||{};abp.message.info=function(n,t){abp.log.warn("abp.message.info is not implemented!");alert((t||"")+" "+n)};abp.message.warn=function(n,t){swal({title:t||"",text:n,type:"warning",confirmButtonColor:"#008000",confirmButtonText:"OK",closeOnConfirm:!0})};abp.message.error=function(n){abp.notify.error(n,"Помилка")}})();angular.module("app").directive("angucompleteAlt",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate",function(n,t,i,r,u,f,e){function tt(t,f,e,l){function ii(n,i){n&&(typeof n=="object"?(t.searchStr=vt(n),ht({originalObject:n})):typeof n=="string"&&n.length>0?t.searchStr=n:console&&console.error&&console.error("Tried to set "+(!i?"":"initial")+" value of angucomplete to",n,"which is an invalid value"),ut(!0))}function ri(n){rt=null;t.hideResults(n);document.body.removeEventListener("click",ri)}function ui(n){return n.which?n.which:n.keyCode}function ht(n){typeof t.selectedObject=="function"?t.selectedObject(n):t.selectedObject=n;n?ut(!0):ut(!1)}function wi(n){return function(i){return t[n]?t[n](i):i}}function bi(n){ht({originalObject:n});t.clearSelected&&(t.searchStr=null);et()}function vt(n){return t.titleField.split(",").map(function(t){return st(n,t)}).join(" ")}function st(n,t){var u,i,r;if(t)for(u=t.split("."),i=n,r=0;r<u.length;r++)i=i[u[r]];else i=n;return i}function fi(n,i){var e,u,f;if(f=new RegExp(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),n)return n.match&&n.replace||(n=n.toString()),u=n.match(f),e=u?n.replace(f,'<span class="'+t.matchClass+'">'+u[0]+"<\/span>"):n,r.trustAsHtml(e)}function ut(n){t.notEmpty=n;at=t.searchStr;t.fieldRequired&&l&&t.inputName&&l[t.inputName].$setValidity(wt,n)}function ki(n){var i=ui(n);if(i!==v&&i!==a)if(i===s||i===c)n.preventDefault();else if(i===o)n.preventDefault(),!t.showDropdown&&t.searchStr&&t.searchStr.length>=it&&(vi(),t.searching=!0,yi(t.searchStr));else if(i===h)et(),t.$apply(function(){ft.val(t.searchStr)});else{if(it===0&&!t.searchStr)return;t.searchStr&&t.searchStr!==""?t.searchStr.length>=it&&(vi(),lt&&u.cancel(lt),t.searching=!0,lt=u(function(){yi(t.searchStr)},t.pause)):t.showDropdown=!1;at&&at!==t.searchStr&&!t.clearSelected&&t.$apply(function(){ht()})}}function yt(n){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.searchStr||(n&&n.preventDefault(),u.cancel(lt),ct(),bi(t.searchStr))}function di(n){var t=getComputedStyle(n);return n.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function gi(){return tt.getBoundingClientRect().top+parseInt(getComputedStyle(tt).maxHeight,10)}function ei(){return f[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function nr(){return ei().getBoundingClientRect().top-(tt.getBoundingClientRect().top+parseInt(getComputedStyle(tt).paddingTop,10))}function oi(n){tt.scrollTop=tt.scrollTop+n}function si(){var n=t.results[t.currentIndex];t.matchClass?ft.val(vt(n.originalObject)):ft.val(n.title)}function tr(n){var i=ui(n),r=null,u=null;i===c&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(n.preventDefault(),t.selectResult(t.results[t.currentIndex])):(yt(n),et()),t.$apply()):i===o&&t.results?(n.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply(function(){t.currentIndex++;si()}),bt&&(r=ei(),gi()<r.getBoundingClientRect().bottom&&oi(di(r))))):i===s&&t.results?(n.preventDefault(),t.currentIndex>=1?(t.$apply(function(){t.currentIndex--;si()}),bt&&(u=nr(),u<0&&oi(u-1))):t.currentIndex===0&&t.$apply(function(){t.currentIndex=-1;ft.val(t.searchStr)})):i===y?t.results&&t.results.length>0&&t.showDropdown?t.currentIndex===-1&&t.overrideSuggestions?yt():(t.currentIndex===-1&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.searchStr&&t.searchStr.length>0&&yt():i===h&&n.preventDefault()}function hi(n){return function(i,r,u,f){r||u||f||!i.data||(i=i.data);t.searching=!1;kt(st(dt(i),t.remoteUrlDataField),n)}}function ci(n,i,r,u){i!==0&&i!==-1&&(i||r||u||(i=n.status),t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(n,i,r,u):console&&console.error&&console.error("http error"))}function ct(){ot&&ot.resolve()}function li(r){var u={},f=t.remoteUrl+encodeURIComponent(r);t.remoteUrlRequestFormatter&&(u={params:t.remoteUrlRequestFormatter(r)},f=t.remoteUrl);!t.remoteUrlRequestWithCredentials||(u.withCredentials=!0);ct();ot=n.defer();u.timeout=ot.promise;i.get(f,u).success(hi(r)).error(ci)}function ai(i){ct();ot=n.defer();t.remoteApiHandler(i,ot.promise).then(hi(i)).catch(ci)}function et(){t.showDropdown=!1;t.results=[];tt&&(tt.scrollTop=0)}function vi(){t.showDropdown=ni;t.currentIndex=t.focusFirst?0:-1;t.results=[]}function ir(n){var i,r,u,e,o=t.searchFields.split(","),f=[];for(typeof t.parseInput()!="undefined"&&(n=t.parseInput()(n)),i=0;i<t.localData.length;i++){for(r=!1,u=0;u<o.length;u++)e=st(t.localData[i],o[u])||"",r=r||e.toString().toLowerCase().indexOf(n.toString().toLowerCase())>=0;r&&(f[f.length]=t.localData[i])}t.searching=!1;kt(f,n)}function rr(n,i,r){if(!r)return!1;for(var u in i)if(i[u].toLowerCase()===r.toLowerCase())return t.selectResult(n),!0;return!1}function yi(n){!n||n.length<it||(t.localData?t.$apply(function(){ir(n)}):t.remoteApiHandler?ai(n):li(n))}function kt(n,i){var r,u,f,e,o,s;if(n&&n.length>0)for(t.results=[],r=0;r<n.length;r++)t.titleField&&t.titleField!==""&&(e=o=vt(n[r])),u="",t.descriptionField&&(u=s=st(n[r],t.descriptionField)),f="",t.imageField&&(f=st(n[r],t.imageField)),t.matchClass&&(o=fi(e,i),s=fi(u,i)),t.results[t.results.length]={title:o,description:s,image:f,originalObject:n[r]};else t.results=[];t.showDropdown=t.autoMatch&&t.results.length===1&&rr(t.results[0],{title:e,desc:u||""},t.searchStr)?!1:t.results.length!==0||ti?!0:!1}function pi(){t.localData?kt(t.localData,""):t.remoteApiHandler?ai(""):li("")}var ft=f.find("input"),it=p,lt=null,pt,wt=d,dt,at=null,ot=null,tt=f[0].querySelector(".angucomplete-dropdown"),bt=!1,rt=null,gt,ni,ti;f.on("mousedown",function(n){n.target.id?(rt=n.target.id,rt===t.id+"_dropdown"&&document.body.addEventListener("click",ri)):rt=n.target.className});t.currentIndex=t.focusFirst?0:null;t.searching=!1;gt=t.$watch("initialValue",function(n){n&&(gt(),ii(n,!0))});t.$watch("fieldRequired",function(n,i){n!==i&&(n?at&&t.currentIndex!==-1?ut(!0):ut(!1):l[t.inputName].$setValidity(wt,!0))});t.$on("angucomplete-alt:clearInput",function(n,i){i&&i!==t.id||(t.searchStr=null,ht(),ut(!1),et())});t.$on("angucomplete-alt:changeInput",function(n,i,r){!i||i!==t.id||ii(r)});t.onFocusHandler=function(){t.focusIn&&t.focusIn();it!==0||t.searchStr&&t.searchStr.length!==0||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,pi())};t.hideResults=function(){rt&&(rt===t.id+"_dropdown"||rt.indexOf("angucomplete")>=0)?rt=null:(pt=u(function(){et();t.$apply(function(){t.searchStr&&t.searchStr.length>0&&ft.val(t.searchStr)})},k),ct(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.searchStr&&t.searchStr.length>0&&t.currentIndex===-1&&yt())};t.resetHideResults=function(){pt&&u.cancel(pt)};t.hoverRow=function(n){t.currentIndex=n};t.selectResult=function(n){t.matchClass&&(n.title=vt(n.originalObject),n.description=st(n.originalObject,t.descriptionField));t.searchStr=t.clearSelected?null:n.title;ht(n);et()};t.inputChangeHandler=function(n){return n.length<it?(ct(),et()):n.length===0&&it===0&&(t.searching=!1,pi()),t.inputChanged&&(n=t.inputChanged(n)),n};t.fieldRequiredClass&&t.fieldRequiredClass!==""&&(wt=t.fieldRequiredClass);t.minlength&&t.minlength!==""&&(it=parseInt(t.minlength,10));t.pause||(t.pause=b);t.clearSelected||(t.clearSelected=!1);t.overrideSuggestions||(t.overrideSuggestions=!1);t.fieldRequired&&l&&(t.initialValue?ut(!0):ut(!1));t.inputType=e.type?e.type:"text";t.textSearching=e.textSearching?e.textSearching:g;t.textNoResults=e.textNoResults?e.textNoResults:nt;ni=t.textSearching==="false"?!1:!0;ti=t.textNoResults==="false"?!1:!0;t.maxlength=e.maxlength?e.maxlength:w;ft.on("keydown",tr);ft.on("keyup",ki);dt=wi("remoteUrlResponseFormatter");u(function(){var n=getComputedStyle(tt);bt=n.maxHeight&&n.overflowY==="auto"})}var o=40,a=39,s=38,v=37,h=27,c=13,y=9,p=3,w=524288,b=500,k=200,d="autocomplete-required",g="Searching...",nt="No results found",l="/angucomplete-alt/index.html";return f.put(l,'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}">  <input id="{{id}}_value" name="{{inputName}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/>  <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown">    <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"><\/div>    <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"><\/div>    <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}">      <div ng-if="imageField" class="angucomplete-image-holder">        <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/>        <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"><\/div>      <\/div>      <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"><\/div>      <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}<\/div>      <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"><\/div>      <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}<\/div>    <\/div>  <\/div><\/div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",disableInput:"=",initialValue:"=",localData:"=",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(n,t){return t.templateUrl||l},compile:function(n){var t=e.startSymbol(),i=e.endSymbol(),r;return t==="{{"&&i==="}}"||(r=n.html().replace(/\{\{/g,t).replace(/\}\}/g,i),n.html(r)),tt}}}]);angular.module("app").directive("awDatepickerPattern",function(){return{restrict:"A",require:"ngModel",link:function(n,t,i,r){var u=new RegExp(i.awDatepickerPattern);r.$parsers.unshift(function(n){if(typeof n=="string"&&n!=""){var t=u.test(n);if(r.$setValidity("date",t),!t)return undefined}return n})}}});angular.module("app").directive("clickAndBlock",["$q","$timeout",function(n,t){return{scope:{clickAndBlock:"&"},link:function(i,r){r.bind("click",function(){r.prop("disabled",!0);n.when(i.clickAndBlock()).finally(function(){i.clickAndBlock!=null?t(function(){r.prop("disabled",!1)},5e3):r.prop("disabled",!1)})})}}}]);angular.module("app").directive("ddTextCollapse",["$compile",function(n){return{restrict:"A",scope:!0,link:function(t,i,r){t.collapsed=!1;t.toggle=function(){t.collapsed=!t.collapsed};r.$observe("ddTextCollapseText",function(u){var f=t.$eval(r.ddTextCollapseMaxLength);if(u.length>f){var e=String(u).substring(0,f),o=String(u).substring(f,u.length),s=n("<span>"+e+"<\/span>")(t),h=n('<span ng-if="collapsed">'+o+"<\/span>")(t),c=n('<span ng-if="!collapsed"> ... <\/span>')(t),l=n('<br ng-if="collapsed">')(t),a=n('<span class="label label-info" ng-click="toggle()">{{collapsed ? "згорнути" : "розгорнути"}}<\/span>')(t);i.empty();i.append(s);i.append(h);i.append(c);i.append(l);i.append(a)}else i.empty(),i.append(u)})}}}]);angular.module("app").directive("downloadDoc",["abp.services.etender.tender",function(n){return{scope:{},link:function(t,i,r){i.bind("click",function(t){var u,o,f,e;i.prop("href")!=""?(t.preventDefault(),u=i.prop("innerHTML"),o=i.prop("href"),i.prop("innerHTML","Завантаження..."),i.removeAttr("href"),f={fileUri:r.href},e=n.getFile(f),e.success(function(n){console.log(n);var t=angular.element("<a/>");return t.attr({href:n.requestMessage.requestUri,target:"_self"})[0].click(),i.prop("innerHTML",u),i.prop("href",n.requestMessage.requestUri),n})):abp.notify.error("Документ ще не завантажився! Зачекайте, будь-ласка.")})}}}]);angular.module("app").directive("emailconfirmed",function(){return{require:"ngModel",link:function(n,t,i,r){r.$validators.emailconfirmed=function(n){return r.$isEmpty(n)||n}}}}),function(){"use strict";angular.module("app").directive("etMask",["$log","$timeout","MaskService",function(n,t,i){return{restrict:"A",require:"ngModel",compile:function(r,u){function s(n){typeof n=="number"&&(t.cancel(o),o=t(function(){var u=n+1,t=r[0],i;t.setSelectionRange?(t.focus(),t.setSelectionRange(n,u)):t.createTextRange&&(i=t.createTextRange(),i.collapse(!0),i.moveEnd("character",u),i.moveStart("character",n),i.select())}))}if(!u.etMask||!u.ngModel){n.info("Mask and ng-model attributes are required!");return}var f=i.create(),o,e;return{pre:function(n,t,i){e=f.generateRegex({mask:i.etMask,repeat:i.repeat||i.maskRepeat,clean:(i.clean||i.maskClean)==="true",limit:(i.limit||i.maskLimit||"true")==="true",restrict:i.restrict||i.maskRestrict||"select",validate:(i.validate||i.maskValidate||"true")==="true",model:i.ngModel,value:i.ngValue})},post:function(i,r,u,o){function c(t){var p=t,e,y,c;h=f.getOptions();t=t||"";var r=f.getViewValue(t),l=h.maskWithoutOptionals||"",i=r.withDivisors(!0),u=r.withoutDivisors(!0);try{var w=f.getRegex(i.length-1),a=f.getRegex(l.length-1),v=w.test(i)||a.test(i),b=t.length-i.length==1,k=l.length-i.length>0;h.restrict!=="accept"&&(h.restrict==="select"&&(!v||b)?(e=t[t.length-1],y=i[i.length-1],e!==y&&k&&(i=i+e),c=f.getFirstWrongPosition(i),angular.isDefined(c)&&s(c)):h.restrict!=="reject"||v||(r=f.removeWrongPositions(i),i=r.withDivisors(!0),u=r.withoutDivisors(!0)));h.limit||(i=r.withDivisors(!1),u=r.withoutDivisors(!1));h.validate&&o.$dirty&&(a.test(i)||o.$isEmpty(p)?o.$setValidity("mask",!0):o.$setValidity("mask",!1));t!==i&&(o.$setViewValue(angular.copy(i),"input"),o.$render())}catch(d){n.error("[mask - parseViewValue]");throw d;}return h.clean?u:i}var l,h=f.getOptions(),a=function(){c();o.$parsers.push(c);h.value&&i.$evalAsync(function(){o.$setViewValue(angular.copy(h.value),"input");o.$render()})},v;r.on("click input paste keyup",function(){l=t(function(){t.cancel(l);c(r.val());i.$apply()},100)});v=i.$watch(u.ngModel,function(n){angular.isDefined(n)&&(c(n),v())});i.$watch(function(){return[u.etMask]},function(){e=f.generateRegex({mask:u.etMask,repeat:u.repeat||u.maskRepeat,clean:(u.clean||u.maskClean)==="true",limit:(u.limit||u.maskLimit||"true")==="true",restrict:u.restrict||u.maskRestrict||"select",validate:(u.validate||u.maskValidate||"true")==="true",model:u.ngModel,value:u.ngValue}).then(function(){r.triggerHandler("click")});e.then(a)},!0);e.then(a)}}}}}])}(),function(){"use strict";angular.module("app").factory("MaskService",["$q","OptionalService","UtilService",function(n,t,i){function r(){function nt(n,t){var i;try{var r=e[n],o=g[r],s=w(n);o?i="("+o.source+")":(it(n)||(u.push(n),f[n]=r),i="(\\"+r+")")}catch(h){throw h;}return(s||t)&&(i+="?"),new RegExp(i)}function p(n,t){var u,f,i,e,r,o;try{i=nt(n,t);u=i;e=w(n);r=i.source;e&&n+1<h&&(o=p(n+1,!0).elementOptionalRegex(),r+=o.source);f=new RegExp(r)}catch(s){throw s;}return{elementRegex:function(){return u},elementOptionalRegex:function(){return f}}}function tt(i){var k=n.defer(),w,d,v,b;e=null;h=0;a=0;o=[];r={};s=[];u=[];f={};l=[];c=i;try{if(w=i.mask,d=i.repeat,!w)return;for(d&&(w=Array(parseInt(d)+1).join(w)),o=t.getOptionals(w).fromMaskWithoutOptionals(),c.maskWithoutOptionals=e=t.removeOptionals(w),h=e.length,b=0;b<h;b++){var nt=p(b),tt=nt.elementRegex(),it=nt.elementOptionalRegex(),g=v?v.source+it.source:it.source;g=new RegExp(g);v=v?v.source+tt.source:tt.source;v=new RegExp(v);l.push(g)}rt();a=y(e).length;k.resolve({options:c,divisors:u,divisorElements:f,optionalIndexes:o,optionalDivisors:r,optionalDivisorsCombinations:s})}catch(ut){k.reject(ut);throw ut;}return k.promise}function v(n){var t;try{t=l[n]?l[n].source:""}catch(i){throw i;}return new RegExp("^"+t+"$")}function w(n){return i.inArray(n,o)}function it(n){return i.inArray(n,u)}function rt(){function e(n,t){return n-t}for(var n,t,c,s=u.sort(e),h=o.sort(e),i=0;i<s.length;i++)for(n=s[i],t=1;t<=h.length;t++){if(c=h[t-1],c>=n)break;r[n]=r[n]?r[n].concat(n-t):[n-t];f[n-t]=f[n]}}function y(n){var e,t,r,o,s;n=n.toString();try{if(u.length>0&&n){for(e=Object.keys(f),t=[],r=e.length-1;r>=0;r--)o=f[e[r]],o&&t.push(o);return t=i.uniqueArray(t),s=new RegExp("[\\"+t.join("\\")+"]","g"),n.replace(s,"")}return n}catch(h){throw h;}}function b(n,t){function o(n,t){for(var i,r=t,u=0;u<n.length;u++)i=n[u],i<r.length&&r.splice(i,0,f[i]);return r}var e=n,s=u.filter(function(n){var u=Object.keys(r).map(function(n){return parseInt(n)});return!i.inArray(n,t)&&!i.inArray(n,u)});return!angular.isArray(n)||!angular.isArray(t)?e:(e=o(s,e),o(t,e))}function ut(n){var f=n.split(""),a=!0,c,l,y,t,h,p,w;if(o.length>0){for(c=[],l=Object.keys(r),t=0;t<l.length;t++)y=r[l[t]],c.push(y);for(s.length===0&&i.lazyProduct(c,function(){s.push(Array.prototype.slice.call(arguments))}),t=s.length-1;t>=0;t--)if(h=angular.copy(f),h=b(h,s[t]),p=h.join(""),w=v(e.length-1),w.test(p)){a=!1;f=h;break}}return a&&(f=b(f,u)),f.join("")}function ft(){return c}function k(n){try{var t=y(n),i=ut(t);return{withDivisors:function(n){return n?i.substr(0,h):i},withoutDivisors:function(n){return n?t.substr(0,a):t}}}catch(r){throw r;}}function d(n,t){var u=[],i,r,f;if(!n)return 0;for(i=0;i<n.length;i++)if(r=v(i),f=n.substr(0,i+1),r&&!r.test(f)&&(u.push(i),t))break;return u}function et(n){return d(n,!0)[0]}function ot(n){for(var f,i,r=d(n,!1),u=n,t=0;t<r.length;t++)f=r[t],i=n.split(""),i.splice(f,1),u=i.join("");return k(u)}var c,e,h=0,a=0,o=[],r={},s=[],u=[],f={},l=[],g={"9":/[0-9]/,"8":/[0-8]/,"7":/[0-7]/,"6":/[0-6]/,"5":/[0-5]/,"4":/[0-4]/,"3":/[0-3]/,"2":/[0-2]/,"1":/[0-1]/,"0":/[0]/,"*":/./,w:/\w/,W:/\W/,d:/\d/,D:/\D/,s:/\s/,S:/\S/,b:/\b/,A:/[A-Z]/,a:/[a-z]/,Z:/[A-ZÇÀÁÂÃÈÉÊẼÌÍÎĨÒÓÔÕÙÚÛŨ]/,z:/[a-zçáàãâéèêẽíìĩîóòôõúùũüû]/,"@":/[a-zA-Z]/,"#":/[a-zA-ZçáàãâéèêẽíìĩîóòôõúùũüûÇÀÁÂÃÈÉÊẼÌÍÎĨÒÓÔÕÙÚÛŨ]/,"%":/[0-9a-zA-ZçáàãâéèêẽíìĩîóòôõúùũüûÇÀÁÂÃÈÉÊẼÌÍÎĨÒÓÔÕÙÚÛŨ]/};return{getViewValue:k,generateRegex:tt,getRegex:v,getOptions:ft,removeDivisors:y,getFirstWrongPosition:et,removeWrongPositions:ot}}return{create:r}}])}(),function(){"use strict";angular.module("app").factory("OptionalService",[function(){function n(n){var i=[],u,r;try{for(u=/\?/g,r=[];(r=u.exec(n))!=null;)i.push(r.index-1)}catch(f){throw f;}return{fromMask:function(){return i},fromMaskWithoutOptionals:function(){return t(i)}}}function t(n){for(var i=[],t=0;t<n.length;t++)i.push(n[t]-t);return i}function i(n){var t;try{t=n.replace(/\?/g,"")}catch(i){throw i;}return t}return{removeOptionals:i,getOptionals:n}}])}(),function(){"use strict";angular.module("app").factory("UtilService",[function(){function n(n,t,i){function e(u){var h=n[u],c=f[u],s;if(u===o)for(s=0;s<c;++s)r[u]=h[s],t.apply(i,r);else for(s=0;s<c;++s)r[u]=h[s],e(u+1);r.pop()}var u;i||(i=this);var r=[],o=n.length-1,f=[];for(u=n.length;u--;)f[u]=n[u].length;e(0)}function t(n,t){var i;try{i=t.indexOf(n)>-1}catch(r){throw r;}return i}function i(n){for(var i={},r=[],t=0,u=n.length;t<u;++t)i.hasOwnProperty(n[t])||(r.push(n[t]),i[n[t]]=1);return r}return{lazyProduct:n,inArray:t,uniqueArray:i}}])}();angular.module("app").directive("hideOnAuction",function(){function n(n,t,i){t.env&&t.env.isAuctionMode&&i.hide()}return{link:n,restrict:"A"}});angular.module("app").directive("hideOnEtender",function(){function n(n,t,i){t.env&&t.env.isAuctionMode&&i.hide()}return{link:n,restrict:"A"}});angular.module("app").directive("maxnumber",function(){return{require:"ngModel",link:function(n,t,i,r){r.$validators.maxnumber=function(n){var f=i.maxnumber,u=!0,t;return r.$isEmpty(n)&&(u=!0),t=parseInt(n),(t||t===0)&&(u=t<f?!0:!1),u}}}});angular.module("app").directive("mindecimal",function(){return{require:"ngModel",link:function(n,t,i,r){r.$validators.mindecimal=function(n){var f=i.mindecimal,u=!0,t;return r.$isEmpty(n)&&(u=!0),t=parseInt(n),(t||t===0)&&(u=t>=f?!0:!1),u}}}});angular.module("app").directive("minmoney",function(){return{require:"ngModel",link:function(n,t,i,r){r.$validators.mindecimal=function(n){var f=i.minmoney,u=!0,t;return r.$isEmpty(n)&&(u=!0),t=parseFloat(n).toFixed(2),(t||t===0)&&(u=t>=f?!0:!1),u}}}});angular.module("app").directive("ngThumb",["$window",function(n){var t={support:!!(n.FileReader&&n.CanvasRenderingContext2D),isFile:function(t){return angular.isObject(t)&&t instanceof n.File},isImage:function(n){var t="|"+n.type.slice(n.type.lastIndexOf("/")+1)+"|";return"|jpg|png|jpeg|bmp|gif|".indexOf(t)!==-1}};return{restrict:"A",template:"<canvas/>",link:function(n,i,r){function o(n){var t=new Image;t.onload=s;t.src=n.target.result}function s(){var n=u.width||this.width/this.height*u.height,t=u.height||this.height/this.width*u.width;f.attr({width:n,height:t});f[0].getContext("2d").drawImage(this,0,0,n,t)}var u,f,e;t.support&&(u=n.$eval(r.ngThumb),t.isFile(u.file))&&t.isImage(u.file)&&(f=i.find("canvas"),e=new FileReader,e.onload=o,e.readAsDataURL(u.file))}}}]);angular.module("app").directive("onModelChange",["$parse",function(n){return{require:"ngModel",link:function(t,i,r){var u=n(r.onModelChange),f=function(){u&&typeof u=="function"&&u(t)};i.bind("keyup change paste cut",f)}}}]);angular.module("app").directive("osmap",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/osmap.cshtml",scope:{location:"=",address:"=",allRegionsCitiesByRegion:"=",index:"=",isDisabled:"=",isStreetRequired:"=",isUkraine:"="},controller:["$scope","$rootScope","abp.services.etender.openStreetMap","$timeout",function(n,t,i,r){r(function(){function h(t){var i,u;n.isDisabled||(i=confirm("Отримати адресу "+t.latlng),i)&&(n.address={country:{id:1,title:"Україна"}},u=new L.LatLng(t.latlng.lat,t.latlng.lng),r&&r.remove(),n.location={latitude:t.latlng.lat,longitude:t.latlng.lng},c(t.latlng.lat,t.latlng.lng),r=L.marker(u))}function c(f,e){n.isUkraine=!0;abp.ui.setBusy("#map"+n.index);var o=i.getAddressByLocation(f,e);o.success(function(i){abp.ui.clearBusy("#map"+n.index);console.log("location",i);t=i.address;t&&t.countryName&&t.countryName.uk_UA!=="Україна"&&t.countryName.uk_UA!=="Украина"&&(n.isUkraine=!1);t&&t.region&&t.region.uk_UA?r.addTo(u[n.index]).bindPopup(i.displayName).openPopup():r.addTo(u[n.index]);l(i.address);n.address.isDisabledRegion=!0}).error(function(){n.isUkraine=!0;abp.ui.clearBusy("#map"+n.index)})}function l(t){if(!t||!t.region){n.address.region=null;n.address.addressStr=null;n.address.postIndex=null;n.address.city=null;n.address.newCity=null;return}n.allRegionsCitiesByRegion&&n.allRegionsCitiesByRegion.allRegions&&n.allRegionsCitiesByRegion.allRegions.length>0&&t.region&&t.region.uk_UA&&(n.address.region&&n.address.region.title===t.region.uk_UA?o():(n.address.region=n.allRegionsCitiesByRegion.allRegions.find(n=>n.title===t.region.uk_UA||t.locality&&n.title===t.locality.uk_UA),o()));n.address.addressStr=t.streetAddress.uk_UA;n.address.postIndex=t.postalCode}function o(){t&&t.locality&&t.locality.uk_UA&&(n.allRegionsCitiesByRegion&&n.allRegionsCitiesByRegion.citiesByRegion&&n.allRegionsCitiesByRegion.citiesByRegion.length>0&&(n.address.city=n.allRegionsCitiesByRegion.citiesByRegion.find(n=>n.title===t.locality.uk_UA),n.address.city&&(n.address.newCity=null)),n.address.city||(n.address.newCity={title:t.locality.uk_UA,id:1},n.address.newCity&&(n.address.city=null)))}function a(){if(n.location){var t=new L.LatLng(n.location.latitude,n.location.longitude);r&&r.remove();r=L.marker(t);r.addTo(u[n.index]);u[n.index].panTo(t);u[n.index].setZoom(17)}}var t;n.isShowMap=n.location?!0:!1;var r=null,u={},s=new L.TileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18,minZoom:6}),e=n.location&&n.location.latitude&&n.location.longitude?n.location:{latitude:50.4470656,longitude:30.522058},f=new L.LatLng(e.latitude,e.longitude);u[n.index]=new L.Map("map"+n.index,{center:f,zoom:15,foo:"bar",attributionControl:!1,layers:[s],scrollWheelZoom:!n.isDisabled});n.location&&n.location.latitude&&n.location.longitude&&(r=L.marker(f),r.addTo(u[n.index]),n.address&&(n.address.isDisabledRegion=!0));u[n.index].on("click",h);t=null;n.showMap=function(){n.isShowMap=n.isShowMap?!1:!0};n.getLocationByAddress=function(){var t,r;abp.ui.setBusy("#map"+n.index);t=angular.copy(n.address);n.address&&!n.address.city&&n.address.newCity&&(t.city=t.newCity);t.city&&t.city.title==="Київ"&&(t.region.title=t.city.title);r=i.getLocationByAddress(t,!1);r.success(function(t){abp.ui.clearBusy("#map"+n.index);console.log("locationByAddress",t);t&&t.latitude&&t.longitude&&(n.location={latitude:t.latitude,longitude:t.longitude},a(),n.isShowMap=!0,n.address.isDisabledRegion=!0)}).error(function(){abp.ui.clearBusy("#map"+n.index)})};n.clear=function(){r&&r.remove();f=new L.LatLng(50.4470656,30.522058);u[n.index].panTo(f);u[n.index].setZoom(15);n.location=null;n.isUkraine=!0;n.address={country:{id:1,title:"Україна"}}};const v=document.getElementById("map"+n.index),y=new ResizeObserver(()=>{u[n.index].invalidateSize()});y.observe(v)},1e3)}]}});angular.module("app").directive("assetFormSpecified",function(){return{restrict:"AE",templateUrl:"~/App/Main/views/directives/asset/assetForm.cshtml",scope:{formname:"=",data:"=",showData:"=",titleDescRequired:"="},controller:["$rootScope","$scope","$location","abp.services.etender.asset","abp.services.etender.reference","datesHelper","tenderHelperService","ngTableParams","$timeout","cachingService",function(n,t,i,r,u,f,e,o,s,h){function w(n){n.minimalStep.amountPer&&(n.minimalStep.amount=(n.value.amount*n.minimalStep.amountPer/100).toFixed(2))}function b(n){n.minimalStep.amount&&(n.minimalStep.amountPer=(n.minimalStep.amount*100/n.value.amount).toFixed(2))}function k(n){var i=!1;return i||t.data.procurementMethodType!="propertyLease"||typeof n.classification=="undefined"||typeof n.classification.code=="undefined"||(i=n.classification.code.indexOf("04")==0||n.classification.code.indexOf("70")==0),i}function d(n){n.hasGuarantee=="0"&&(n.guarantee=null)}function g(n,t){p=angular.copy(n);y=angular.copy(t)}function nt(){t.data.items.push({description:"",descriptionEN:"",descriptionRU:"",quantity:null,unit:null,additionalClassifications:[],classification:{},address:null,location:null,registrationDetails:{status:"unknown",registrationID:"",registrationDate:null}})}function tt(){t.data.decisions.push({title:"",titleEN:"",titleRU:"",decisionDate:null,decisionID:""})}function it(n){t.data.decisions.splice(n,1)}function rt(){t.data.holder.identifier.apiId&&(abp.ui.setBusy("#findOrganization"),r.getAssetHolderByEdrpou(t.data.holder.identifier.apiId).success(function(n){abp.ui.clearBusy("#findOrganization");n?(t.data.holder=n,t.showData.address=t.data.holder.addressN!=null,t.showData.contactPoint=t.data.holder.contactPoint!=null,t.showData.contactPoint&&t.data.holder.contactPoint.name&&(t.data.holder.contactPoint.fio=e.parseName(t.data.holder.contactPoint.name))):abp.notify.warn("","Організацію з таким номером ЄДРПОУ не знайдено")}).error(function(){abp.notify.error("Oops. Something went wrong...")}))}function c(n){n.additionalClassifications.push({code:"",discription:""})}function ut(n){t.data.items.splice(n,1)}function ft(n,t){n.additionalClassifications.splice(t,1);t===0&&c(n)}function et(n,t,i){for(var r=0;r<n.length;r+=1)if(r!==i&&n[r].value===t)return!0;return!1}var l;t.vm={addItem:nt,addDecision:tt,removeDecision:it,addItemAdditionalClassification:c,removeItem:ut,removeItemAdditionalClassification:ft,findOrganization:rt,sameOptionValue:et,changeMinimalStep:w,changeMinimalStepPer:b,changeGuarantee:d,initElement:g,canBlockUnits:k,contactPointMainType:1};t.regexUrl=n.regex.url;var a="openMPC",v=t.vm,y=null,p=null;t.$parent.$watch("isDisabledOnUpdateByAuctionMode",function(){v.isDisabledOnUpdateByAuctionMode=t.$parent.isDisabledOnUpdateByAuctionMode});i.url().indexOf("create")>-1&&(t.vm.addItem(),t.vm.addDecision());t.numberRegex=n.regex.number;t.floatNumberRegex=n.regex.floatNumber;t.dateRegex=n.regex.date;t.floatNumber4Decimal=n.regex.floatNumber4Decimal;t.units=[];t.minDateForAuctionStart=new Date;t.minDateForAuctionStart.setDate(t.minDateForAuctionStart.getDate()+7);h.getDataFromCache("getAllAuctionUnits",u.getAllAuctionUnits,"asset").then(function(n){t.units=n.data.units});t.checkIsDate1970=function(n){if(n){var t=new Date;n.getMonth()==0&&n.getDate()==1&&n.getFullYear()==1970&&(n.setFullYear(t.getFullYear()),n.setMonth(t.getMonth()),n.setDate(t.getDate()))}};t.checkAllIsDate1970=function(){t.checkIsDate1970(t.data.auctionPeriod.endDate);t.checkIsDate1970(t.data.enquiryPeriod.endDate);t.checkIsDate1970(t.data.tenderPeriod.startDate);t.checkIsDate1970(t.data.tenderPeriod.endDate)};t.isStepValid=function(n,t){var r=!1,u,i;return n.minimalStep.amount&&n.value.amount&&(u=parseFloat(n.value.amount),i=parseFloat(n.minimalStep.amount),r=i&&i>=(u/100).toFixed(2)&&i<=(u/10).toFixed(2)?!0:!1),t&&t.$setValidity("isStepValid",r),r};t.isGuaranteeValid=function(n,t,i){var r=!1,f,u;return t&&(f=parseFloat(t),u=parseFloat(n),u&&f>=(u/50).toFixed(2)&&f<=(u/10).toFixed(2)?r=!0:u||(r=!0)),(t===undefined||t==="")&&(r=!0),i&&i.$setValidity("isGuaranteeValid",r),r};t.checkDate=function(n,t,i){var r=!1;return n&&(r=n.getTime()>(new Date).getTime()),i&&i.$setValidity(i.$name,r),r};t.isTenderPeriodEnough=function(n,i){var e,u,o,r;return localStorage.isProdMode&&(localStorage.isProdMode==="false"||localStorage.isProdMode===!1)?!0:(e=t.data.lots,u=!0,!i||!n||!e||e.length<1)?!0:(o=f.howManyDaysLeftBetweenDates(n,i),r=t.getLotMaximumSum(e),r>0&&r<5e4&&o<t.minimumDaysNeedForTenderPeriod(r)?u=!1:r>=5e4&&r<=15e5&&o<t.minimumDaysNeedForTenderPeriod(r)&&(u=!1),t.formname.startDate.$setValidity("isTenderPeriodEnough",u),u)};t.isWeekend=function(n,t){if(localStorage.isProdMode&&(localStorage.isProdMode==="false"||localStorage.isProdMode===!1))return!1;if(n){var i=f.isWeekend(n);return t&&t.$setValidity("isWeekend",!i),i}return!1};t.minimumDaysNeedForTenderPeriod=function(n){return n>0&&n<5e4?1:n>=5e4&&n<=15e5?2:void 0};t.minimumDaysNeedForEnquiryPeriod=function(n){return n>0&&n<5e4?1:n>=5e4&&n<=15e5?3:void 0};t.disableWeekEndsAndDayOffs=function(){var n=new Date;return{start:n.getTime()-1e3,end:n.getTime()+1e3}};t.getLotMaximumSum=function(n){var t=0;return angular.forEach(n,function(n){if(!n||!n.value||!n.value.amount)return 0;var i=parseInt(n.value.amount);i&&(t=i>t?i:t)}),t};t.lotInit=function(n,i){t.lotInd=n;t.itemIndex=i};t.openClassificationModal=function(n){t.itemIndex=n;a="openMPC";t.scheme="MPC";t.searchstring="";t.tableParamsClass.reload()};t.getRequired=function(n){return n?!1:!0};t.search=function(n){t.searchstring=n;s.cancel(l);l=s(function(){t.tableParamsClass.reload()},1e3)};t.changeSelection=function(n){for(var r=t.tableParamsClass.data,i=0;i<r.length;i+=1)r[i].$selected=!1;n.classifierScheme==="MPC"&&n.hasChildren===!1||n.code.length>3&&n.code.charAt(3)!=="0"?(n.$selected=!0,n.classifierScheme==="MPC"?(abp.ui.setBusy(".modal-body"),u.getMPClassification(n.code).success(function(n){t.selectedData=n;abp.ui.clearBusy(".modal-body")})):t.selectedData=n):(n.$selected=!1,t.selectedData=null)};t.loadOrDeleteChildItems=function(n){var i=t,f=u.getMPClassifications(n.id),r=0;if(i.tableParamsClass.data.some(function(t,i){if(t.id===n.id)return r=i,!0}),n.isOpen){while(i.tableParamsClass.data[r+1]!=undefined&&i.tableParamsClass.data[r+1].code!="08100000-7"&&i.tableParamsClass.data[r+1].rank>n.rank)i.tableParamsClass.data.splice(r+1,1);n.isOpen=!1;return}abp.ui.setBusy(".modal-body");f.success(function(t){n.isOpen=!0;for(var u=t.length;u--;u>=0)i.tableParamsClass.data.splice(r+1,0,t[u]);abp.ui.clearBusy(".modal-body")})};t.choose=function(){if(!t.data.items[0]){abp.notify.error("Спочатку додайте позицію закупівля до першого лоту");return}if(t.selectedData){var i={id:t.selectedData.id,code:t.selectedData.code,discription:t.selectedData.discription,scheme:t.scheme==="MPC"?t.selectedData.classifierScheme:t.scheme,isOptional:t.selectedData.isOptional},n=t.data.items[t.itemIndex];n.classification=i;n.additionalClassifications=[];t.selectedData.additionalClassifier&&(t.selectedData.additionalClassifier.id=t.selectedData.additionalClassifier.code,t.selectedData.additionalClassifier.discription=t.selectedData.additionalClassifier.description,n.additionalClassifications.push(t.selectedData.additionalClassifier))}};t.tableParamsClass=new o({page:1,count:999},{counts:[],getData:function(n,i){var r={};t.searchstring&&t.searchstring.length>0?(r=u.getSearchMPClassifications(t.searchstring),abp.ui.setBusy(".modal-body"),r.success(function(t){abp.ui.clearBusy(".modal-body");i.total(t.length);n.resolve(t)})):(r=u.getMPClassifications(""),abp.ui.setBusy(".modal-body"),r.success(function(t){abp.ui.clearBusy(".modal-body");i.total(t.length);n.resolve(t)}))}})}]}});angular.module("app").directive("assetFormCreateInfoMsng",function(){return{restrict:"E",templateUrl:"~/App/Main/views/directives/asset/assetFormCreateInfoMsng.cshtml",scope:{objectData:"=",formName:"="},controller:["$scope","$rootScope",function(n,t){n.dateRegex=t.regex.date}]}});angular.module("app").directive("auctionAwardsInfo",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/asset/auctionAwardsInfo.cshtml",scope:{tender:"=",reload:"=",changeAwardDoc:"=",updateAwardDoc:"="},controller:["$scope","$rootScope","abp.services.etender.document","abp.services.etender.award","abp.services.etender.contract","$http","Upload","$location","$timeout","documentService","lookupService",function(n,t,i,r,u,f,e,o,s,h,c){function l(t){var i=u.createContract({awardId:t});i.success(function(){var i="/contracts/"+t+"/"+n.tender.cbd;o.path(i)}).error(function(){abp.notify.error("Oops. Something went wrong...");n.reload()})}function a(n){switch(n.status){case"scheduled":n.statusDescription="Заплановано";break;case"processing":n.statusDescription="Виконується";break;case"met":case"partiallyMet":n.statusDescription="Виконано";break;case"notMet":n.statusDescription="Не виконано"}}function v(n){switch(n.type){case"financing":n.typeDescription="Очікування оплати";break;case"approval":n.typeDescription="Завершення приватизації";break;case"reporting":n.typeDescription="Виконання умов продажу"}}function y(n,t){return n.typeDescription>t.typeDescription?1:n.typeDescription<t.typeDescription?-1:0}n.regexPattern=t.regex.wordAnyLanguage;n.isopen=!1;n.isShowContract=function(n){return n.status=="active"&&n.contracts.length>0?!0:n.status!="active"&&n.contracts.length>0&&n.contracts[0].documents&&n.contracts[0].documents.length>0?!0:!1};n.selectedDocType=null;n.isCanLoadBidDocument=!1;n.isCanLoadOwnerDocument=!1;n.isBankrupt=!1;n.actText=n.isBankrupt?"акту":"договору";n.ActText=n.isBankrupt?"Акт":"Договір";n.$watch("tender.procurementMethodType",function(){if(n.tender&&n.tender.procurementMethodType){switch(n.tender.procurementMethodType){case"dgfBankrupt":case"bankrupt.insider":n.isCanLoadBidDocument=abp.auth.hasPermission("IsCanLoadBidDocument");n.isCanLoadOwnerDocument=abp.auth.hasPermission("IsCanLoadOwnerDocument");n.isBankrupt=!0}n.actText=n.isBankrupt?"акту":"договору";n.ActText=n.isBankrupt?"Акт":"Договір";n.tender.lots[0].awards&&n.tender.lots[0].awards.forEach(function(t){t.contracts&&t.contracts.forEach(function(t){t.statusName=c.getContractStatusName(t.status,n.ActText,n.tender.procurementMethodTypeOriginal)})})}});n.canModifyDocuments=function(t){return n.tender.status==="active.qualification"&&(t.isMy||n.isCanLoadBidDocument||n.tender.isEdit||n.isCanLoadOwnerDocument)};n.canUploadDocuments=function(t){return n.tender.cbd===2&&n.tender.status==="active.qualification"&&(t.isMy||n.isCanLoadBidDocument)};n.createContract=function(t){abp.ui.setBusy(".panel-default:first");var i={awardId:t,tenderId:n.tender.tenderNewId},u=r.acceptAward(i);u.success(function(){n.tender.hasPendingAwards=!1}).then(function(){return l(t)});abp.ui.clearBusy(".panel-default")};n.getContractingDate=function(n){return new Date(n)};n.sendCancelledStatus=function(t,i){abp.ui.setBusy(".panel-default:first");var f={awardId:t,tenderId:i,statusValue:"cancelled"},u;u=r.cancelAward(f);u.success(function(){abp.notify.success("Розмiр гарантiйного внеску забрано!");abp.ui.clearBusy(".panel-default");n.reload()})};n.getAwardStatusNameByStatusName=function(n){return c.getAwardStatusDescByStatus(n)};n.OpenContractings=function(n){n.milestones&&n.milestones.length>0&&!n.milestones[0].statusDescription&&(n.milestones.forEach(function(n){a(n);v(n)}),n.milestones=n.milestones.sort(y),n.milestones=n.milestones.reverse())};n.openContractingDocuments=function(){n.isopen=!n.isopen}}]}});angular.module("app").directive("objectTable",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/asset/objectTable.cshtml",scope:{mode:"@",user:"@",userId:"=",type:"="},controller:["$scope","abp.services.etender.asset","abp.services.etender.reference","$q","ngTableParams","$location","$timeout","tenderHelperService",function(n,t,i,r,u,f,e,o){function c(i){switch(n.type){case"asset":return t.getAssets(i);case"mpLot":return t.getMpLots(i);case"tender":return t.getMPTenders(i);default:return null}}var h=new Date,s;n.dateToDay=Date.parse(h);n.end=[];n.searchString="";n.search=function(){n.pagerSearchFilter={objectTitle:n.searchString,objectNumber:"",cuctodianName:""};n.tableParams.reload();n.tableParams.page(1)};n.searchChange=function(){if(!n.searchString){var t=e(function(){n.pagerSearchFilter={objectTitle:"",objectNumber:"",cuctodianName:""};n.tableParams.reload();n.tableParams.page(1)},1e3);t()}};n.tableParams=new u({page:1,count:10},{counts:[],getData:function(t,i){var r={Page:i.page(),PageSize:10,OrderColumn:"creationTime",OrderDirection:"desc",SearchFilter:n.pagerSearchFilter,CreatorUserId:n.userId||null},u=c(r);u.success(function(r){console.log(r);i.total(r.countAllRecords);for(var u=0;u<r.objects.length;u++)s=r.objects[u].rectificationPeriodEndDate,n.end[u]=Date.parse(s),r.objects[u].statusDescription=n.getObjectDescriptionByStatus(r.objects[u]),r.objects[u].labelClassByStatus=o.getLabelClassByStatus(r.objects[u].status);t.resolve(r.objects)})}});n.getObjectDescriptionByStatus=function(n){if(n.isAssetLotAuction==1)switch(n.status){case"pending":return"Опубліковано. Очікування інформаційного повідомлення.";case"verification":return"Публікація інформаційного повідомлення";case"deleted":return"Виключено з переліку";case"active":return"Інформаційне повідомлення опубліковано";case"complete":return"Аукціон завершено";case"draft":return"Чернетка";default:return"Зачекайте, об'єкт приватизації обробляється"}else if(n.isAssetLotAuction==2)switch(n.status){case"pending":return"Опубліковано";case"verification":return"Перевірка доступності об’єкту";case"invalid":return"Недійсний";case"deleted":case"pending.deleted":return"Об’єкт виключено";case"composing":return n.lotType==="yoke"?"Публікація інформаційного повідомлення":"Приватизація шляхом викупу";case"active.salable":return"Об’єкт виставлено на продаж";case"active.auction":return"Аукціон";case"active.contracting":return"Аукціон завершено. Кваліфікація";case"pending.sold":return"Аукціон завершено";case"pending.dissolution":return"Аукціон завершено. Об’єкт не продано";case"dissolved":return"Об’єкт не продано";case"sold":return"Об’єкт продано";case"draft":return"Чернетка";default:return"Зачекайте, інформаційне повідомлення обробляється"}else return o.getTenderDescriptionByStatus(n.status)};n.createInfoMsng=function(n,t){f.path("createAssetInfoMsng/"+n+"/"+t)}}]}});angular.module("app").directive("accountNumber",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/accountNumber.cshtml",scope:{formName:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.number}]}});angular.module("app").directive("address",function(){return{restrict:"E",templateUrl:function(n,t){return t.templateUrl||"/app/Main/views/directives/profile/address.cshtml"},scope:{formName:"=",data:"=",classificator:"=",index:"=",defaultAddress:"=",blockName:"=",isDisabled:"=",allRegionsCitiesByRegion:"=",isDisabledRegion:"=",forRegister:"=",isOptional:"="},controller:["$scope","abp.services.etender.reference","$rootScope","cachingService",function(n,t,i,r){n.regexPatternWord=i.regex.wordAnyLanguage;n.regexPatternNumber=i.regex.number;n.showCity=!0;n.$watch("data",function(){n.isAddressRequired=!n.isOptional;n.defaultAddress&&n.data&&(n.defaultAddress.addressStr&&(n.data.addressStr=n.defaultAddress.addressStr),n.defaultAddress.postIndex&&(n.data.postIndex=n.defaultAddress.postIndex))});n.$watch("classificator",function(i){i&&i.id&&i.scheme&&(i.isOptional===undefined||i.isOptional===null?t.getItemByCode({code:i.id,scheme:i.scheme}).success(function(t){t&&(i.isOptional=t.isOptional,n.isAddressRequired=!i.isOptional&&!n.isOptional)}):n.isAddressRequired=!i.isOptional&&!n.isOptional)});r.getDataFromCache("getAllRegions",t.getAllRegions).then(function(t){if(n.regions=t.data.regions,n.allRegionsCitiesByRegion&&(n.allRegionsCitiesByRegion.allRegions=angular.copy(t.data.regions)),n.data&&n.data.region){var i=n.regions.find(t=>t.title===n.data.region.title);i&&(n.data.region.id=i.id)}n.defaultAddress&&n.defaultAddress.region&&(n.data.region=t.data.regions.find(t=>t.id===n.defaultAddress.region.id))});n.isDisabledOnUpdateByAuctionMode=!0;n.$watch("data.region",function(i){if(i==undefined||i.id==undefined){n.isOptional||(n.data={country:{id:1,title:"Україна"}});return}if(n.isAddressRequired=!0,n.data&&n.regions&&(n.data.region=n.regions.find(n=>n.title===i.title)),i.title==="Київ"||i.title==="Севастополь"){n.data.city={title:i.title};n.showCity=!1;return}n.data.city&&(n.data.newCity=n.data.city,n.data.city=null);r.getDataFromCache("getCitiesByRegionId",t.getCitiesByRegionId,n.data.region.id).then(function(t){n.cities=t.data.cities;n.allRegionsCitiesByRegion&&(n.allRegionsCitiesByRegion.citiesByRegion=angular.copy(t.data.cities));n.defaultAddress&&n.defaultAddress.city&&(n.data.city=t.data.cities.find(t=>t.id===n.defaultAddress.city.id));n.showCity=!0})});n.onChangeCity=function(){n.data.newCity=null};n.changeRegion=function(){n.data.city=null;n.data.newCity=null;n.data.addressStr=null;n.data.postIndex=null}}]}});angular.module("app").directive("addressArea",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/profile/addressArea.cshtml",scope:{formName:"=",data:"=",index:"=",blockName:"=",isDisabled:"=",allRegionsCitiesByRegion:"=",isDisabledRegion:"=",isRequired:"=",isPartialRequired:"=",isOptional:"="},controller:["$scope","abp.services.etender.reference","$rootScope","cachingService",function(n,t,i,r){n.regexPatternWord=i.regex.wordAnyLanguage;n.regexPatternNumber=i.regex.number;n.showCity=!0;n.isCityRequired=!0;r.getDataFromCache("getAllRegions",t.getAllRegions).then(function(t){if(n.regions=t.data.regions,n.allRegionsCitiesByRegion&&(n.allRegionsCitiesByRegion.allRegions=angular.copy(t.data.regions)),n.data&&n.data.region){var i=n.regions.find(t=>t.title===n.data.region.title);i&&(n.data.region.id=i.id)}});n.isDisabledOnUpdateByAuctionMode=!0;n.$watch("data.region",function(i,u){if(i==undefined||i.id==undefined){n.isOptional||(n.data={country:{id:1,title:"Україна"}});n.isCityRequired=!1;return}if(n.isCityRequired=!0,i.title==="Київ"){n.data.newCity={title:"Київ"};n.showCity=!1;return}if(i.title==="Севастополь"){n.data.newCity={title:"Севастополь"};n.showCity=!1;return}u&&u.title&&u.title!==i.title&&(n.data.city=null,n.data.newCity=null,n.data.addressStr=null,n.data.postIndex=null);n.data&&n.regions&&(n.data.region=n.regions.find(n=>n.title===i.title));n.data.city&&(n.data.newCity=n.data.city);r.getDataFromCache("getCitiesByRegionId",t.getCitiesByRegionId,i.id).then(function(t){n.cities=t.data.cities;n.allRegionsCitiesByRegion&&(n.allRegionsCitiesByRegion.citiesByRegion=angular.copy(t.data.cities));n.showCity=!0})});n.changeRegion=function(){n.data.city=null;n.data.newCity=null;n.data.addressStr=null;n.data.postIndex=null}}]}});angular.module("app").directive("addressForeign",function(){return{restrict:"AE",templateUrl:"~/App/Main/views/directives/profile/addressForeign.cshtml",scope:{formName:"=",countryDisable:"=",data:"="},controller:["$scope","abp.services.etender.reference","$rootScope","cachingService",function(n,t,i,r){n.regexPatternNumber=i.regex.number;r.getDataFromCache("getAllCountries",t.getAllCountries).then(function(t){n.countries=t.data.countries;n.countries.shift()})}]}});angular.module("app").directive("addressRequired",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/addressRequired.cshtml",scope:{formName:"=",data:"=",scheme:"=",dataname:"@",persType:"=",opfType:"="},controller:["$scope","abp.services.etender.reference","$rootScope",function(n,t,i){var r,u;n.regexPatternWord=i.regex.wordAnyLanguage;n.regexPatternNumber=i.regex.number;n.language=abp.localization.currentLanguage;n.showCity=!0;(n.data==undefined||n.data.country==undefined)&&(n.data={country:{id:1,title:"Україна"}});n.minLength=5;n.maxLength=5;r=t.getAllRegions();r.success(function(t){n.regions=t.regions});u=t.getAllCountries();u.success(function(t){n.countries=t.countries});n.changeIndex=function(){n.data.country&&n.data.country.id!==1?(n.minLength=1,n.maxLength=20):(n.minLength=5,n.maxLength=5)};n.$watch("data.region",function(i){function u(){var r=n.data.city,i,t;if(r){for(i=n.cities,t=0;t<i.length;t+=1)if(i[t].id==r.id)return;n.data.newCity=n.data.city;n.data.city=null}}if(n.data.country.id===1){if(i==undefined||i.id==undefined){n.data={country:{id:1,title:"Україна"}};return}if(i.title==="Київ"){n.data.city={id:167,title:"Київ"};n.showCity=!1;return}if(i.title==="Севастополь"){n.data.city={id:340,title:"Севастополь"};n.showCity=!1;return}var r={regionId:i.id};t.getCitiesByRegionId(r).success(function(t){n.cities=t.cities;n.showCity=!0;u()})}})}]}});angular.module("app").directive("captcha",function(){return{restrict:"AE",templateUrl:"/app/main/views/directives/profile/captcha.cshtml",scope:{data:"="},controller:["$scope","$rootScope","tenderHelperService",function(n,t,i){n.isQA=i.isEnvironmentQA(document.location.host)||i.isEnvironmentLocalhost(document.location.host);n.captchaSiteKey=t.captchaSiteKey;var r=function(){n.gresponse=grecaptcha.getResponse();n.gresponse===""?n.data=!1:(n.data=!0,sessionStorage.countAttempts=0,clearInterval(t.timerC))};n.isQA||(t.timerC=setInterval(r,2e3))}]}});angular.module("app").directive("contactPerson",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/contactPerson.cshtml",scope:{formName:"=",blockTitle:"=",data:"=",isRequired:"=?",isDisabled:"=?",deleteContactFunction:"=",curContactIndex:"="},controller:["$scope","$rootScope",function(n,t){n.regexUrl=t.regex.url;n.regexEmail=t.regex.email;n.isRequired=n.isRequired?n.isRequired:!1;n.vm={};n.languages=[{title:"українська",code:"uk"},{title:"англійська",code:"en"},{title:"російська",code:"ru"}];n.$watch("data",function(t){t&&t.language&&(n.vm.language=n.languages.find(n=>n.code===t.language))});n.languageChange=function(t){n.data.language=t}}]}});angular.module("app").directive("director",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/director.cshtml",scope:{formName:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.wordAnyLanguageWithSpaces}]}});angular.module("app").directive("edrpou",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/edrpou.cshtml",scope:{formName:"=",data:"=",bank:"=",dsbl:"=",isPhysicalPerson:"=",title:"=",address:"=",isNotResident:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.number;n.minLength=n.isNotResident?1:8;n.maxLength=n.isNotResident?20:8;n.changeEdrpou=function(){n.address&&n.address.country&&n.address.country.id!==1||n.isNotResident?(n.minLength=1,n.maxLength=20):(n.minLength=8,n.maxLength=8)}}]}});angular.module("app").directive("fax",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/fax.cshtml",scope:{formName:"=",data:"=",placeholder:"@",isDisabled:"="},controller:["$scope","$rootScope",function(n,t){n.regexPhone=t.regex.phone;n.placeholder||(n.placeholder=abp.localization.localize("Fax","Etender"))}]}});angular.module("app").directive("fio",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/fio.cshtml",scope:{formName:"=",data:"=",isDisabled:"=",fullRequired:"=?"},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.wordAnyLanguageWithSpaces}]}});angular.module("app").directive("inn",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/inn.cshtml",scope:{formName:"=",data:"=",dsbl:"=",title:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.number}]}});angular.module("app").directive("isCustomer",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/isCustomer.cshtml",scope:{formName:"=",data:"=",dsbl:"="}}});angular.module("app").directive("isMainAccount",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/isMainAccount.cshtml",scope:{formName:"=",data:"="}}});angular.module("app").directive("login",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/login.cshtml",replace:!0,scope:{formName:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.login}]}});angular.module("app").directive("mfo",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/mfo.cshtml",scope:{formName:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.number}]}});angular.module("app").directive("nonResidentOrgCode",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/nonResidentOrgCode.cshtml",scope:{formName:"=",data:"=",dsbl:"="},controller:["$scope","$rootScope",function(){}]}});angular.module("app").directive("organisationFullName",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/organisationFullName.cshtml",scope:{formName:"=",data:"=",nameEn:"=",useNameEn:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.organisationName;n.regexEN=/^[\w\s\.'"())-\[\]]+$/}]}});angular.module("app").directive("organisationShortName",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/organisationShortName.cshtml",scope:{formName:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.organisationName}]}});angular.module("app").directive("passportIdCard",function(){return{restrict:"AE",templateUrl:"/App/Main/views/directives/profile/passportIdCard.cshtml",scope:{formName:"=",data:"=",dsbl:"=",title:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.passportOldFormatOrIdCardUkraine}]}});angular.module("app").directive("passwordForm",function(){return{restrict:"AE",templateUrl:"/App/Main/views/directives/profile/passwordForm.cshtml",scope:{formname:"=",password:"=",isPasswordsMatch:"="},controller:["$scope","$rootScope",function(n,t){"use strict";n.regexPattern=t.regex.password;n.$watchGroup(["password","password_c"],function(t){t[0]==t[1]?(n.isPasswordsMatch=!0,console.log("Совпадают")):(n.isPasswordsMatch=!1,console.log("НЕ совпадают!!!"))})}]}});angular.module("app").directive("passwordSingle",function(){return{restrict:"AE",templateUrl:"/App/Main/views/directives/profile/passwordSingle.cshtml",scope:{data:"=",formName:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.password}]}});angular.module("app").directive("personType",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/personType.cshtml",scope:{formName:"=",data:"=",dsbl:"=",persons:"="},controller:["$scope","lookupService",function(){}]}});angular.module("app").directive("phone",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/phone.cshtml",scope:{formName:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.regexPhone=t.regex.phone}]}});angular.module("app").directive("phoneListEditor",function(){return{templateUrl:"/app/Main/views/directives/profile/phoneListEditor.cshtml",restrict:"AE",scope:{formName:"=",data:"="},controller:["$scope",function(n){n.choices=[{id:"choice_0",name:"",valid:!1}];n.addNewChoice11=function(){var t=n.choices.length+1;for(n.choices.push({id:"choice"+t,name:"",valid:!0}),i=0;i<n.choices.length;i++)n.data+=","+n.choices[i].name};n.removeChoice=function(){var t=n.choices.length-1;n.choices.splice(t)};n.isValidPhone=function(n){return n.valid=!1,n.name===""&&(n.valid=!0),n.name.length===12&&(n.valid=!0),n.valid}}]}});angular.module("app").directive("phoneWithMask",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/phoneWithMask.cshtml",scope:{formName:"=",data:"=",isRequired:"=",placeholder:"@",isSendBid:"=",isSimpleMode:"=",index:"=",isDisabled:"="},controller:["$scope","$rootScope","$element","$attrs",function(n,t){n.regexPhone=t.regex.phone;n.validPhone=function(){return n.isValidPhone=!1,/^\+?[0-9]{5,}$/.test(n.data)&&(n.isValidPhone=!0),n.formName["phone_"+n.$id]&&n.formName["phone_"+n.$id].$setValidity("isValidPhone",n.isValidPhone),n.data||(n.isValidPhone=!0),n.isValidPhone};n.$watch("data",function(){n.validPhone()})}]}});angular.module("app").directive("phoneInput",["$filter","$browser",function(n,t){return{require:"ngModel",link:function(i,r,u,f){i.isRequired=i.isRequired===!1?!1:!0;i.placeholder||(i.placeholder=abp.localization.localize("TelExample","EtenderAuction"));var e=function(){var i=$(this),t=r.val().replace(/[^0-9\+]/g,"");r.val(n("tel")(t,!1))};f.$parsers.push(function(n){return n.replace(/[^0-9\+]/g,"")});f.$render=function(){r.val(n("tel")(f.$viewValue,!1))};r.bind("change",e);r.bind("keydown",function(n){var i=n.keyCode;i==91||15<i&&i<19||37<=i&&i<=40||t.defer(e)});r.bind("paste cut",function(){t.defer(e)})}}}]);angular.module("app").filter("tel",function(){return function(n){var u,t,i,r,f,e,o,s;if(!n)return"";if(u=n.toString().trim().replace(/^\+/,""),u.match(/[^0-9]/))return n;switch(u.length){default:t=u.slice(0,2);i=u.slice(2,5);r=u.slice(5,8);f=u.slice(8,10);e=u.slice(10,12);o=u.slice(12,14);s=u.slice(14,16)}return t&&i&&r&&f&&e&&o&&s?("+"+t+" ("+i+") "+r+"-"+f+"-"+e+"-"+o+"-"+s).trim():t&&i&&r&&f&&e&&o?("+"+t+" ("+i+") "+r+"-"+f+"-"+e+"-"+o).trim():t&&i&&r&&f&&e?("+"+t+" ("+i+") "+r+"-"+f+"-"+e).trim():t&&i&&r&&f?("+"+t+" ("+i+") "+r+"-"+f).trim():t&&i&&r?("+"+t+" ("+i+") "+r).trim():t&&i?("+"+t+" ("+i).trim():t?("+"+t).trim():void 0}});angular.module("app").directive("email",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/pochta.cshtml",replace:!0,scope:{formName:"=",data:"=",type:"@",isRequired:"=?",isDisabled:"=?",index:"="},controller:["$scope","$rootScope",function(n,t){n.regexEmail=t.regex.email;n.isRequired=n.isRequired===!1?!1:!0}]}});angular.module("app").directive("profTabset",function(){return{restrict:"E",replace:!0,transclude:!0,controller:["$scope","$rootScope","$location",function(n,t,i){var r,u,f;n.templateUrl="";r=n.tabs=[];u=this;this.selectTab=function(n,i){!n.selected&&n.url&&n.templateUrl&&n.templateUrl.includes("myOrganization")&&(t.isBtnMyOrganization=!0);angular.forEach(r,function(n){n.selected=!1});i&&(n.selected=!0)};this.setTabTemplate=function(n){t.templateTabUrl=n;i.path("/profile");t.$broadcast("onRefreshProfileTabUrl",n)};this.addTab=function(f){f.selectedByDefault&&u.selectTab(f,!0);r.push(f);n.$watch("location.hash()",function(){i.hash().indexOf("myTenders")>-1&&(t.env.isAdmin?u.selectTab(r[2]):u.selectTab(r[1]));i.hash().indexOf("bankOperations")>-1&&u.selectTab(r[3])})};u.url=i.path();n.goToHomePage=function(){localStorage.removeItem("templateTabUrl");location.href=""};n.toggleSidebar=function(){$("body").toggleClass("closed")};n.$on("$locationChangeSuccess",function(){var n=i.url();n.indexOf("subscription")>=0||n.length<=2||f(n)});n.$on("tabChangeEvent",function(){f(i.url())});f=function(n){n.indexOf("profile")===-1?angular.forEach(r,function(n){n.selected=!1}):angular.forEach(r,function(n){n.selected=n.templateUrl===localStorage.templateTabUrl?!0:!1})}}],templateUrl:"~/App/Main/scripts/directives/profile/sidebar.cshtml"}});angular.module("app").directive("profTab",["$location",function(){return{restrict:"E",replace:!0,require:"^profTabset",scope:{title:"@",templateUrl:"@",selectedByDefault:"=",href:"@",liClass:"@"},link:function(n,t,i,r){if(n.divider=!1,n.title==="divider"){n.divider=!0;return}r.addTab(n);n.select=function(){r.selectTab(n,!0)};n.$watch("selected",function(){n.selected&&(n.href?location.href=n.href:r.setTabTemplate(n.templateUrl))});n.url=r.url},template:'<li ng-class="{ active: selected&&!divider, closed_li:!divider, ht2: divider }" ><a ng-href="" ng-click="select()" ng-if="!divider"><i class="{{liClass}}"><\/i><span class="hidde_name">{{title}}<\/span><\/a><div class="divider fl" ng-if="divider"><\/div><\/li>'}}]);angular.module("app").directive("url",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/url.cshtml",scope:{formName:"=",data:"=",isDisabled:"=",index:"="},controller:["$scope","$rootScope",function(n,t){n.regexUrl=t.regex.url}]}});angular.module("app").directive("userName",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/profile/userName.cshtml",scope:{formName:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.wordAnyLanguageWithSpaces;n.language=abp.localization.currentLanguage}]}});angular.module("app").directive("jointPropertyComplexProps",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/jointPropertyComplexProps.cshtml",scope:{formname:"=",entity:"=",isDisabled:"=",index:"=",isCallFromRegObject:"=?"},controller:["$scope","$rootScope","lookupService",function(n,t,i){n.patternUrl=t.regex.url;n.landPropsOwnershipTypes=i.getLandPropsOwnershipTypes();n.encumbrancesTypes=i.getEncumbrancesTypes()}]}});angular.module("app").directive("jointPropertyComplexPropsDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/jointPropertyComplexPropsDetailes.cshtml",scope:{formname:"=",property:"="},controller:["$scope","lookupService",function(){}]}});angular.module("app").directive("landRentalProperty",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/landRentalProperty.cshtml",scope:{formname:"=",entity:"=",isLandRentalAuction:"=",isDisabled:"=",index:"="},controller:["$scope","$rootScope","lookupService",function(n,t,i){n.landPropsOwnershipTypes=i.getLandPropsOwnershipTypes();n.minLandArea=0;n.isLandRentalAuction&&(n.landPropsOwnershipTypes=n.landPropsOwnershipTypes.filter(n=>n.type!=="unknown"),n.minLandArea="0.0001");n.encumbrancesTypes=i.getEncumbrancesTypes();n.cadastralNumberRegex=t.regex.cadastralNumber;n.floatNumber4Decimal=t.regex.floatNumber4Decimal}]}});angular.module("app").directive("leaseActionSearch",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/leaseActionSearch.cshtml",scope:{filter:"=",reloadPage:"=",localStorageName:"=",isMy:"="},controller:["$scope","$rootScope","lookupService","abp.services.etender.reference","registryObjectService",function(n,t,i,r,u){n.dateRegex=t.regex.date;var f={};n.vModel=f;n.isClearBtnActive=!1;n.isFormOpened=0;n.actionTypes=angular.copy(i.getActionType());n.actionTypes.unshift({name:"Всі типи",type:""});n.isPM=localStorage.isProdMode&&localStorage.isProdMode.length>0?localStorage.isProdMode:!0;n.filter.isOpen?$("#searchParameters").collapse("show"):$("#searchParameters").collapse("hide");n.search=function(){localStorage[n.localStorageName]=JSON.stringify(n.filter);n.reloadPage(u.getLeaseActionSearchFilter(n.filter))};n.clear=function(){n.filter={leaseActionType:null,datePublishedFrom:"",datePublishedTo:"",searchString:"",propertyOwners:[],sellingEntitys:[],isShowOnlyCreatedOnOurSite:!1,isRegistryObjectCreateWithMyTenant:!1};n.search()};n.removeItem=function(t,i){var r=t.splice(i,1);n.filter.regions&&n.filter.regions.length===0&&(n.filter.regionInput=null)};n.toggleSearchForm=function(){n.filter.isOpen=!n.filter.isOpen;localStorage[n.localStorageName]=JSON.stringify(n.filter)};n.isDateIntervalGood=function(n,t){return n&&t?t>=n?!0:!1:!0}}]}});angular.module("app").directive("leaseRequestSearch",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/leaseRequestSearch.cshtml",scope:{filter:"=",reloadPage:"=",localStorageName:"=",isMy:"="},controller:["$scope","$rootScope","lookupService","abp.services.etender.reference","registryObjectService","cachingService",function(n,t,i,r,u,f){n.numberRegex=t.regex.number;n.floatNumberRegex=t.regex.floatNumber;n.dateRegex=t.regex.date;var e={};n.vModel=e;n.isClearBtnActive=!1;n.isFormOpened=0;n.listTypes=angular.copy(i.getListType());n.listTypes.unshift({name:"Всі типи",type:""});n.objectTypes=angular.copy(i.getobjectTypes());n.objectTypes.unshift({name:"Всі типи",type:""});n.leaseRequestTypes=angular.copy(i.getLeaseRequestTypes());n.leaseRequestTypes.unshift({name:"Всі типи",type:""});n.isPM=localStorage.isProdMode&&localStorage.isProdMode.length>0?localStorage.isProdMode:!0;n.filter.isOpen?$("#searchParameters").collapse("show"):$("#searchParameters").collapse("hide");n.search=function(){localStorage[n.localStorageName]=JSON.stringify(n.filter);n.reloadPage(u.getLeaseRequestSearchFilter(n.filter))};n.clear=function(){n.filter={listType:null,leaseRequestType:null,objectType:null,datePublishedFrom:"",datePublishedTo:"",searchString:"",regions:[],sellingEntitys:[],isShowOnlyCreatedOnOurSite:!1,isRegistryObjectCreateWithMyTenant:!1};n.search()};n.changeRegion=function(){var i=!0,t;if(!n.filter.regionInput||n.filter.regionInput&&n.filter.regionInput.id===0)return n.filter.regions=[];if(n.filter.regions&&n.filter.regions.length>0)for(t=0;t<n.filter.regions.length;t++)n.filter.regions[t].id===n.filter.regionInput.id&&(i=!1);i&&n.filter.regions.push(n.filter.regionInput)};f.getDataFromCache("getAllRegions",r.getAllRegions).then(function(t){n.regions=t.data.regions;n.regions.unshift({title:"Вся Україна",countryId:1,id:0})});n.removeItem=function(t,i){var r=t.splice(i,1);n.filter.regions&&n.filter.regions.length===0&&(n.filter.regionInput=null)};n.toggleSearchForm=function(){n.filter.isOpen=!n.filter.isOpen;localStorage[n.localStorageName]=JSON.stringify(n.filter)};n.isDateIntervalGood=function(n,t){return n&&t?t>=n?!0:!1:!0}}]}});angular.module("app").directive("leaseRules",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/leaseRules.cshtml",scope:{formname:"=",showData:"=",entity:"=",isDisabledRegistry:"="},controller:["$scope","lookupService","$rootScope","abp.services.etender.reference","cachingService",function(n,t,i,r,u){function f(n){if(n)return Number(n.replace(":",""))}function e(t,i){var u,r;return n.isTimeValid=!0,u=angular.copy(t),u.forEach(function(n){n.startTime&&(n.startTime=f(n.startTime));n.endTime&&(n.endTime=f(n.endTime))}),u.length>1&&(r=u.splice(i,1)[0],u.forEach(function(t){if(t.weekDay===r.weekDay&&t.startTime&&t.endTime&&r.startTime&&r.endTime&&(r.startTime>t.startTime&&r.startTime<t.endTime||r.endTime>t.startTime&&r.endTime<t.endTime||r.startTime<=t.startTime&&r.endTime>=t.endTime))return n.isTimeValid=!1})),n.isTimeValid}n.showData?n.showData.schedule=!1:n.showData={schedule:!1};n.numberRegex=i.regex.number;n.floatNumberRegex=i.regex.floatNumber;n.timeRegex=i.regex.timeFormat;n.isTimeValid=!0;n.isMinTimeInterval=!0;n.intendedUseRestrictionMethods=t.getIntendedUseRestrictionMethods();n.scheduleDays=t.getWeekDays();n.scheduleHoursBy=t.getScheduleHoursBy();n.scheduleDaysBy=t.getScheduleDaysBy();var o=function(){u.getDataFromCache("getIntendedUseTypes",r.getIntendedUseTypes,n.entity.objectType).then(function(t){n.intendedUseTypes=t.data})};n.$watch("entity",function(){n.entity&&n.entity.objectType&&(n.checkIntendedUse(),o(),n.entity.leaseRules&&n.entity.leaseRules.schedule&&n.entity.leaseRules.schedule.period&&n.entity.leaseRules.schedule.period.forEach(function(n){n.startDate=new Date(n.startDate);n.endDate=new Date(n.endDate)}))});n.checkIntendedUse=function(){n.entity&&n.entity.leaseRules&&(n.entity.leaseRules.intendedUseRestrictionMethod==="exceptDescribed"||n.entity.leaseRules.intendedUseRestrictionMethod==="onlyDescribed"?(n.isIntendedUseRequired=n.entity.leaseRules.intendedUseRestrictionMethod==="exceptDescribed"?!0:!1,n.entity.leaseRules.intendedUseTypes&&n.entity.leaseRules.intendedUseTypes.length>0&&(n.entity.leaseRules.intendedUseInput=n.entity.leaseRules.intendedUseTypes[n.entity.leaseRules.intendedUseTypes.length-1])):(n.isIntendedUseRequired=!1,n.entity.leaseRules.intendedUseTypes=null,n.entity.leaseRules.intendedUseInput=null,n.entity.leaseRules.intendedUseRestrictionDescription=null))};n.addIntendedUse=function(t){if(t&&n.entity&&n.entity.leaseRules){if(n.entity.leaseRules.intendedUseTypes||(n.entity.leaseRules.intendedUseTypes=[]),n.entity.leaseRules.intendedUseTypes.length===5)return;for(var i=0;i<n.entity.leaseRules.intendedUseTypes.length;i++)if(n.entity.leaseRules.intendedUseTypes[i].code===t.code)return;n.entity.leaseRules.intendedUseTypes.push(t)}};n.removeIntendedUseItem=function(t,i){n.entity&&n.entity.leaseRules&&(t.splice(i,1),n.entity.leaseRules.intendedUseInput=n.entity.leaseRules.intendedUseTypes&&n.entity.leaseRules.intendedUseTypes.length===0?null:n.entity.leaseRules.intendedUseTypes[n.entity.leaseRules.intendedUseTypes.length-1])};n.isDateSchedulePeriodGood=function(t,i,r,u){var e=!0,f;t.startDate&&t.endDate?t.endDate>=t.startDate?(f=angular.copy(n.entity.leaseRules.schedule.period),f&&f.length>1&&(f.splice(i,1),f.forEach(function(n){(n.startDate<=t.startDate&&t.startDate<=n.endDate||n.startDate===t.endDate||t.startDate<=n.startDate&&t.endDate>=n.startDate)&&(e=!1)})),e?(r.$setValidity(r.$name,!0),u.$setValidity(u.$name,!0)):(r.$setValidity(r.$name,!1),u.$setValidity(u.$name,!1))):(r.$setValidity(r.$name,!1),u.$setValidity(u.$name,!1)):!(t.startDate||t.endDate)||t.startDate&&t.endDate?(r.$setValidity(r.$name,!1),u.$setValidity(u.$name,!1)):(r.$setValidity(r.$name,!0),u.$setValidity(u.$name,!0))};n.isTimeSchedulePeriodGood=function(t,i,r,u,o){if(i.startTime&&i.startTime.length===5&&i.endTime&&i.endTime.length===5){var s=f(i.startTime)+5,h=f(i.endTime);h>=s?(u.$setValidity(u.$name,e(t,r)),o.$setValidity(o.$name,e(t,r))):(h&&s&&(n.isMinTimeInterval=!1),u.$setValidity(u.$name,!1),o.$setValidity(o.$name,!1))}else i.startTime&&i.startTime.length===5||i.endTime&&i.endTime.length===5?(u.$setValidity(u.$name,!0),o.$setValidity(o.$name,!0)):(u.$setValidity(u.$name,!1),o.$setValidity(o.$name,!1))};n.addDayToSchedule=function(n){n&&n.push({startTime:null,endTime:null,weekday:null})};n.removeWeekday=function(n,t){n&&n.length>1&&n.splice(t,1)};n.addPeriodToSchedule=function(n){n.period||(n.period=[]);n.period.push({startDate:null,endDate:null,weekdays:[{startTime:null,endTime:null,weekDay:null}]})};n.removePeriod=function(n,t){n&&n.length>1&&n.splice(t,1)};n.addScheduleAuct=function(n){n.schedule||(n.schedule={period:[]})};n.removeScheduleAuct=function(){n.entity.leaseRules.schedule=null;n.isDaySelected=[]};n.clearPeriod=function(n){n.other&&(n.period=null)};n.clearDayTime=function(n){n.startTime=null;n.endTime=null}}]}});angular.module("app").directive("leaseRulesDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/leaseRulesDetailes.cshtml",scope:{showTitle:"=",entity:"="},controller:["$scope","lookupService",function(n,t){n.getIntendedUseRestrictionMethodDiscription=function(n){return t.getIntendedUseRestrictionMethodDiscription(n)}}]}});angular.module("app").directive("placing",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/placing.cshtml",scope:{formname:"=",entity:"=",objectType:"=",isDisabled:"=",index:"=",isStreetRequired:"=",isPartialRequired:"=",isRequiredLocation:"="},controller:["$scope","$rootScope",function(n,t){n.numberRegex=t.regex.number;n.floatNumberRegex=t.regex.floatNumber;n.allRegionsCitiesByRegion={allRegions:[],citiesByRegion:[]};n.isUkraine=!0;n.objectType==="jointPropertyComplex"&&n.$watch("entity.property.jointPropertyComplexProps.landProps",function(){n.isRequiredLocation=n.entity.property.jointPropertyComplexProps&&n.entity.property.jointPropertyComplexProps.landProps&&(n.entity.property.jointPropertyComplexProps.landProps.cadastralNumber||n.entity.property.jointPropertyComplexProps.landProps.encumbrances||n.entity.property.jointPropertyComplexProps.landProps.jointOwnership||n.entity.property.jointPropertyComplexProps.landProps.landArea||n.entity.property.jointPropertyComplexProps.landProps.landIntendedUse||n.entity.property.jointPropertyComplexProps.landProps.ownershipType||n.entity.property.jointPropertyComplexProps.landProps.utilitiesAvailability)?!0:!1},!0)}]}});angular.module("app").directive("radioButtonProperty",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/radioButtonProperty.cshtml",scope:{entity:"=",entityName:"@",entityTitle:"@",isDisabled:"=",index:"="},controller:["$scope","$rootScope","lookupService",function(){}]}});angular.module("app").directive("realEstateDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/realEstateDetailes.cshtml",scope:{formname:"=",property:"="},controller:["$scope","lookupService",function(){}]}});angular.module("app").directive("realEstateProps",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/registry/realEstateProps.cshtml",scope:{formname:"=",entity:"=",isDisabled:"=",index:"="},controller:["$scope","lookupService",function(n,t){n.floorTypes=t.getFloorTypes();n.powerSupplyClasses=t.getPowerSupplyClasses();n.constructionTechnologyTypes=t.getConstructionTechnologyTypes();n.entity||(n.entity={serviceFireAlarm:null,serviceSecurityAlarm:null,serviceElevator:null,serviceInternet:null,serviceTV:null,servicePhone:null,serviceAirConditioning:null,serviceVentilation:null,serviceHeatingCounter:null,serviceAutonomousHeating:null,serviceCentralHeating:null,serviceGas:null,serviceSewerage:null,serviceWater:null,serviceElectricity:null})}]}});angular.module("app").directive("regContractSearch",function(){return{restrict:"АE",templateUrl:"/app/Main/views/directives/registry/regContractSearch.cshtml",scope:{objectType:"=",filter:"=",reloadPage:"=",localStorageName:"=",isMy:"="},controller:["$scope","$rootScope","lookupService","abp.services.etender.reference","cachingService",function(n,t,i,r,u){n.numberRegex=t.regex.number;n.floatNumberRegex=t.regex.floatNumber;n.dateRegex=t.regex.date;n.isPM=localStorage.isProdMode&&localStorage.isProdMode.length>0?localStorage.isProdMode:!0;n.vModel={};n.isClearBtnActive=!1;n.isFormOpened=0;n.contractStatuses=angular.copy(i.getContractStatus());n.contractStatuses.unshift({name:"Всі статуси",type:""});n.contractMethods=angular.copy(i.getContractMethod());n.contractMethods.unshift({name:"Всі методи укладання договору",type:""});u.getDataFromCache("getAllRegions",r.getAllRegions).then(function(t){n.regions=t.data.regions;n.regions.unshift({title:"Вся Україна",countryId:1,id:0})});n.removeItem=function(t,i){t.splice(i,1);n.filter.regionInput=null};n.filter.isOpen?$("#searchRegContracts").collapse("show"):$("#searchRegContracts").collapse("hide");n.search=function(){localStorage[n.localStorageName]=JSON.stringify(n.filter);n.reloadPage(n.filter)};n.clear=function(){n.filter={isOpen:!1,regions:[],sellingEntitys:[]};localStorage.removeItem(n.localStorageName);n.search()};n.toggleSearchForm=function(){n.filter.isOpen=!n.filter.isOpen};n.changeRegion=function(){var i=!0,t;if(!n.filter.regionInput||n.filter.regionInput&&n.filter.regionInput.id===0)return n.filter.regions=[];if(n.filter.regions&&n.filter.regions.length>0)for(t=0;t<n.filter.regions.length;t++)n.filter.regions[t].id===n.filter.regionInput.id&&(i=!1);i&&n.filter.regions.push(n.filter.regionInput)}}]}});angular.module("app").directive("registryContactPoint",function(){return{restrict:"AE",templateUrl:"/App/Main/views/directives/registry/registryContactPoint.cshtml",scope:{formName:"=",data:"=",mainProcedureType:"=",isDisabled:"="},controller:["$scope","$rootScope","abp.services.etender.user","tenderHelperService",function(n,t,i,r){function u(){i.getContacts(n.mainProcedureType).success(function(t){n.contactTable=t})}n.changeContactPoint=function(t){console.log("changeContactPoint",t);n.data={contactPointType:t.contactPointType,name:t.name,telephone:t.phone,phone:t.phone,email:t.email,faxnumber:t.faxnumber,url:t.url,fio:r.parseName(t.name)}};n.$watch("mainProcedureType",function(n){n&&u()});n.$watch("data",function(){n.data&&(n.contactPointItem=n.data.name+", "+n.data.phone+", "+n.data.email)})}]}});angular.module("app").directive("registryObjectSearch",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/registryObjectSearch.cshtml",scope:{objectType:"=",filter:"=",reloadPage:"=",localStorageName:"=",isMy:"="},controller:["$scope","$rootScope","lookupService","abp.services.etender.reference","registryObjectService","cachingService",function(n,t,i,r,u,f){n.numberRegex=t.regex.number;n.floatNumberRegex=t.regex.floatNumber;n.dateRegex=t.regex.date;n.vModel={};n.isClearBtnActive=!1;n.isFormOpened=0;n.showCurrentTenant=!1;n.listTypes=angular.copy(i.getListType());n.listTypes.unshift({name:"Без типу",type:"0"});n.listTypes.unshift({name:"Всі типи",type:""});n.statusInLists=angular.copy(i.getStatusInList());n.statusInLists.unshift({name:"Всі статуси",type:""});n.searchItems={cpvItems:n.filter.cpvCodes?n.filter.cpvCodes:[],cavItems:n.filter.cavCodes?n.filter.cavCodes:[]};n.searchType="registryObjectSearchCav";n.hideChild=!1;n.hideSearch=!1;n.isPM=localStorage.isProdMode&&localStorage.isProdMode.length>0?localStorage.isProdMode:!0;n.filter.isOpen||n.filter.regContract.isOpen?$("#searchParameters").collapse("show"):$("#searchParameters").collapse("hide");n.search=function(){localStorage[n.localStorageName]=JSON.stringify(n.filter);n.reloadPage(u.getRegistrySearchFilter(n.filter))};n.clear=function(){n.searchItems.cpvItems=[];n.searchItems.cavItems=[];n.filter={listType:null,statusInList:null,areaFrom:"",areaTo:"",searchString:"",regions:[],propertyOwners:[],sellingEntitys:[],currentTenants:[],classificationCpvs:[],classificationCavs:[],isShowOnlyCreatedOnOurSite:!1,regContract:{isOpen:!1}};localStorage.removeItem(n.localStorageName);n.setCurrentTenantVisibility();n.search()};n.changeRegion=function(){var i=!0,t;if(!n.filter.regionInput||n.filter.regionInput&&n.filter.regionInput.id===0)return n.filter.regions=[];if(n.filter.regions&&n.filter.regions.length>0)for(t=0;t<n.filter.regions.length;t++)n.filter.regions[t].id===n.filter.regionInput.id&&(i=!1);i&&n.filter.regions.push(n.filter.regionInput)};n.openClassificationModalNew=function(t){n.classificationType=t;n.hideChild=!0;n.hideSearch=!0;n.filter.classificationCpvs=n.searchItems.cpvItems;n.filter.classificationCavs=n.searchItems.cavItems;switch(n.classificationType){case"openCAV":n.searchType="registryObjectSearchCav";break;case"openCPV":n.searchType="registryObjectSearchCpv"}++n.isFormOpened};n.isIntervalGood=function(n,t){var i=0,r=0;return n&&t?(i=parseFloat(n),r=parseFloat(t),r>=i?!0:!1):!0};f.getDataFromCache("getAllRegions",r.getAllRegions).then(function(t){n.regions=t.data.regions;n.regions.unshift({title:"Вся Україна",countryId:1,id:0})});n.removeItem=function(t,i){var r=t.splice(i,1);n.filter.regions&&n.filter.regions.length===0&&(n.filter.regionInput=null)};n.toggleSearchForm=function(){n.filter.isOpen=!n.filter.isOpen;localStorage[n.localStorageName]=JSON.stringify(n.filter)};n.toggleSearchRegContractForm=function(){n.filter.regContract.isOpen=!n.filter.regContract.isOpen};n.changeListType=function(){n.setCurrentTenantVisibility()};n.setCurrentTenantVisibility=function(){n.filter.listType==="Second"?n.showCurrentTenant=!0:(n.showCurrentTenant=!1,n.filter.currentTenants=[])}}]}});angular.module("app").directive("registryOrganization",function(){return{restrict:"АE",templateUrl:"/app/Main/views/directives/registry/registryOrganization.cshtml",scope:{entity:"=",roTitle:"@",roBorder:"@",formname:"=",roIndex:"@",isRequired:"=",isDisabled:"=",withoutContacts:"=",maxlengthIdentifierApiid:"@",isAddressOptional:"="},controller:["$scope","abp.services.etender.registry","tenderHelperService","$rootScope",function(n,t,i,r){n.isOptionalAddress=n.isAddressOptional;n.patternUrl=r.regex.url;n.patternUniversalCode=r.regex.universalOrgCode;n.patternEdrpouCode=r.regex.edrpouCode;n.patternIdentifier=n.maxlengthIdentifierApiid===8?n.patternEdrpouCode:n.patternUniversalCode;n.changeIdentifierApiId=function(){n.entity&&n.entity.identifier&&n.entity.identifier.apiId&&n.entity.identifier.apiId.length>7?r.regex.edrpo.test(n.entity.identifier.apiId)?n.schemeLegalName="ЄДРПОУ":r.regex.ipn.test(n.entity.identifier.apiId)?n.schemeLegalName="ІПН/РНОКПП (ФОП)":r.regex.passportUkraineOldFormat.test(n.entity.identifier.apiId)?n.schemeLegalName="Паспорт":r.regex.passportIdCardUkraine.test(n.entity.identifier.apiId)&&(n.schemeLegalName="ID-карта"):n.schemeLegalName="Ідентифікатор організації"};n.changeIdentifierApiId();n.findOrganization=function(){n.entity&&n.entity.identifier&&n.entity.identifier.apiId&&(abp.ui.setBusy("#findOrganization"+n.roIndex),t.getHolderByEdrpou(n.entity.identifier.apiId).success(function(t){abp.ui.clearBusy("#findOrganization"+n.roIndex);t?(n.entity=t,n.entity.contactPoint.name&&(n.entity.contactPoint.fio=i.parseName(n.entity.contactPoint.name))):(n.entity={},n.entity.addressN={country:{id:1,title:"Україна"}},abp.notify.warn("","Організацію з таким номером ЄДРПОУ не знайдено"))}).error(function(){abp.notify.error("Oops. Something went wrong...")}))};n.removeAddress=function(t){t.addressN=null;n.isOptionalAddress=!0};n.createAddress=function(t){n.isOptionalAddress=!1;t.addressN={country:{id:1,title:"Україна"}}}}]}});angular.module("app").directive("scheduleRegObject",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/scheduleRegObject.cshtml",scope:{formname:"=",entity:"="},controller:["$scope","lookupService",function(){}]}});angular.module("app").directive("statusesDecisions",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/statusesDecisions.cshtml",scope:{formname:"=",entity:"="},controller:["$scope","lookupService",function(n,t){n.registrationStates=t.getRegistrationStates();n.listType=t.getListType();n.statusInList=t.getStatusInList()}]}});angular.module("app").directive("statusesDecisionsDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/statusesDecisionsDetailes.cshtml",scope:{forTender:"=",entity:"="},controller:["$scope","lookupService",function(n,t){n.$watch("entity",function(i){i&&(n.entity.listTypeDesc=t.getListTypeDiscription(n.entity.listType),n.entity.statusInListDesc=t.getStatusInListDiscription(n.entity.statusInList),n.entity.registrationStateDesc=t.getRegistrationStateDiscription(n.entity.registrationState),n.entity.governingEntityApproval&&(n.entity.governingEntityApprovalDesc=t.getVerificationPresenceDiscription(n.entity.governingEntityApproval.verificationPresence)),n.entity.heritageApproval&&(n.entity.heritageApprovalDesc=t.getVerificationPresenceDiscription(n.entity.heritageApproval.verificationPresence)))})}]}});angular.module("app").directive("valueCharacteristics",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/valueCharacteristics.cshtml",scope:{formname:"=",entity:"="},controller:["$scope","lookupService","$rootScope",function(n,t,i){n.dateRegex=i.regex.date;n.today=new Date;n.secondListPercentValueValid=!0;n.$watch("entity.secondListPercentValue",function(){n.entity&&n.changeSecondListPercentValue(n.entity.secondListPercentValue)});n.changeSecondListPercentValue=function(t){if(t){var i=Number(t);n.secondListPercentValueValid=i>0?!0:!1;n.entity.secondListPercentValue=i}else n.secondListPercentValueValid=!0}}]}});angular.module("app").directive("vehicleDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/vehicleDetailes.cshtml",scope:{formname:"=",property:"="},controller:["$scope","lookupService",function(){}]}});angular.module("app").directive("vehicleProps",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/registry/vehicleProps.cshtml",scope:{formname:"=",entity:"=",isDisabled:"=",index:"="},controller:["$scope","lookupService",function(n,t){n.fuelTypes=t.getFuelTypes();n.transmissionTypes=t.getTransmissionTypes();n.entity||(n.entity={damagePresence:null});n.changedamagePresence=function(){n.entity.damagedDescription=null}}]}});angular.module("app").directive("verificationInfo2",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/verificationInfo2.cshtml",scope:{entity:"=",title:"@",formname:"=",fieldRequired:"="},controller:["$scope",function(){}]}});angular.module("app").directive("verificationInfo3",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/verificationInfo3.cshtml",scope:{entity:"=",fieldRequired:"=",formname:"=",title:"@"},controller:["$scope","lookupService",function(n,t){n.verification3=t.getVerification3()}]}});angular.module("app").directive("accountDetailes",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/accountDetailes.cshtml",scope:{data:"="},controller:["$scope",function(){}]}});angular.module("app").directive("assetFamiliarization",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/assetFamiliarization.cshtml",scope:{tenderid:"=",canModifyDocuments:"=",documents:"=",status:"=",procurementmethodtype:"=",isEdit:"=",reload:"&",isMpLot:"="},controller:["$scope","abp.services.etender.document",function(n,t){function i(){n.vm={};n.vm.title="";n.vm.blockTitle="";n.vm.accessDetails="";n.$watch("documents",function(t){if(t)for(var i=0;i<t.length;i++)if(t[i].documentType&&t[i].documentType.type==="x_dgfAssetFamiliarization"&&(t[i].isOwn&&t[i].isExported||!t[i].isOwn)){n.vm.title=t[i].title;n.vm.accessDetails=t[i].accessDetails;break}});n.$watch("procurementmethodtype",function(t){if(t)switch(t){case"landLease":case"appraisal.insider":case"property.insider":case"propInsiderByZU":case"bankrupt.insider":case"carriage.insider":n.vm.blockTitle="Умови ознайомлення з майном";break;case"dgfOtherAssets":case"propertyLease":case"propLeaseByZU":case"propertyLeaseOld":case"carriageLease":case"dgfBankrupt":case"forestSale":n.vm.blockTitle="Порядок ознайомлення з майном";break;case"dgfFinancialAssets":n.vm.blockTitle="Порядок ознайомлення з активом у кімнаті даних";break;case"sellout.english":case"sellout.insider":n.vm.blockTitle="Час і місце проведення огляду об’єкта";break;default:n.vm.blockTitle=""}})}i();n.saveVdr=function(){abp.ui.setBusy(".panel-default:first");var r={accessDetails:n.vm.accessDetails,title:n.vm.blockTitle,tenderId:n.tenderid,documentType:"x_dgfAssetFamiliarization",isMpLotDocument:n.isMpLot};t.sendDocumentDirectly(r).success(function(){n.assetFamilForm.$setPristine();abp.ui.clearBusy(".panel-default");abp.notify.success("Порядку ознайомлення збережено!");n.reload();i()}).error(function(){abp.ui.clearBusy(".panel-default")})}}]}});angular.module("app").directive("awardsInfo",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/awardsInfo.cshtml",scope:{tender:"=",reload:"="},controller:["$scope","$rootScope","abp.services.etender.award","abp.services.etender.contract","$location","lookupService","tenderHelperService",function(n,t,i,r,u,f,e){function o(t){var i=r.createContract({awardId:t});i.success(function(i){if(i){var r="/contracts/"+t+"/"+n.tender.cbd;u.path(r)}else n.reload()}).error(function(){abp.notify.error("Oops. Something went wrong...");n.reload()})}function s(n){switch(n.status){case"scheduled":n.statusDescription="Заплановано";break;case"processing":n.statusDescription="Виконується";break;case"met":case"partiallyMet":n.statusDescription="Виконано";break;case"notMet":n.statusDescription="Не виконано"}}function h(n){switch(n.type){case"financing":n.typeDescription="Очікування оплати";break;case"approval":n.typeDescription="Завершення приватизації";break;case"reporting":n.typeDescription="Виконання умов продажу"}}function c(n,t){return n.typeDescription>t.typeDescription?1:n.typeDescription<t.typeDescription?-1:0}function l(){return r.completeContractCbd3(n.tender.id).success(function(){abp.notify.success("Аукціон завершено!");t.isStartReloadTimer=!0;n.reload()}).error(function(){abp.notify.warn("Запит не виконано..!")})}n.regexPattern=t.regex.wordAnyLanguage;n.isShowContract=function(n){return n.status==="active"&&n.contracts.length>0?!0:n.status!=="active"&&n.contracts.length>0&&n.contracts[0].documents&&n.contracts[0].documents.length>0?!0:!1};n.selectedDocType=null;n.isCanLoadBidDocument=!1;n.isCanLoadOwnerDocument=!1;n.isBankrupt=!1;n.actText=n.isBankrupt?"акту":"договору";n.ActText=n.isBankrupt?"Акт":"Договір";n.isopen=!1;n.openContractingDocuments=function(){n.isopen=!n.isopen};n.$watch("tender.procurementMethodType",function(){if(n.tender&&n.tender.procurementMethodType){switch(n.tender.procurementMethodType){case"dgfBankrupt":case"bankrupt.insider":n.isCanLoadBidDocument=abp.auth.hasPermission("IsCanLoadBidDocument");n.isCanLoadOwnerDocument=abp.auth.hasPermission("IsCanLoadOwnerDocument");n.isBankrupt=!0}n.actText=n.isBankrupt?"акту":"договору";n.ActText=n.isBankrupt?"Акт":"Договір";n.tender.lots[0].awards&&n.tender.lots[0].awards.forEach(function(t){t.contracts&&t.contracts.forEach(function(t){t.statusName=f.getContractStatusName(t.status,n.ActText,n.tender.procurementMethodTypeOriginal)})})}});n.canModifyDocuments=function(t){return n.tender.status==="active.qualification"&&(t.isMy||n.isCanLoadBidDocument||n.tender.isEdit||n.isCanLoadOwnerDocument)&&(t.status==="pending.verification"&&n.tender.procurementMethodType!=="landLease"||t.status==="pending"&&(n.tender.procurementMethodType==="landLease"||n.tender.cbd===3)||n.tender.isAppraisalInsider)};n.canUploadDocuments=function(t){return n.tender.cbd===2&&n.tender.status==="active.qualification"&&(t.isMy||n.isCanLoadBidDocument)&&(t.status==="pending.verification"&&n.tender.procurementMethodType!=="landLease"||t.status==="pending"&&n.tender.procurementMethodType==="landLease"||n.tender.isAppraisalInsider)};n.createContract=function(t){abp.ui.setBusy(".panel-default:first");var r={awardId:t,tenderId:n.tender.id},u=i.acceptAward(r);u.success(function(){n.tender.hasPendingAwards=!1}).then(function(){return o(t)});abp.ui.clearBusy(".panel-default")};n.sendCancelledStatus=function(t,r){abp.ui.setBusy(".panel-default:first");var f={awardId:t,tenderId:r,statusValue:"cancelled"},u;u=i.cancelAward(f);u.success(function(){abp.notify.success("Розмiр гарантiйного внеску забрано!");abp.ui.clearBusy(".panel-default");n.reload()})};n.getAwardStatusNameByStatusName=function(t,i){return n.tender.cbd===2?f.getAwardStatusDescByStatus(t):f.getAwardStatusDescByStatusCbd3(t,i)};n.OpenContractings=function(n){n.milestones&&n.milestones.length>0&&!n.milestones[0].statusDescription&&(n.milestones.forEach(function(n){s(n);h(n)}),n.milestones=n.milestones.sort(c),n.milestones=n.milestones.reverse())};n.completeContract=function(){e.sweetAlert({title:"Ви підтверджуєте завершення аукціону?",text:"Після завершення жодних дій в ньому неможливо зробити.",type:"warning",showCancelButton:!0,confirmButtonColor:"#48b168",confirmButtonText:"Так",cancelButtonText:"Ні",closeOnConfirm:!0},l,"alertCancelButtonRed")};n.getProcTypeForModalCbd2=function(n){return n==="landLease"?"landLease":n==="propertyLease"||n==="propLeaseByZU"?"property":n==="sellout.english"||n==="sellout.insider"?"privatization":_.contains(["appraisal.insider","property.insider","propInsiderByZU","bankrupt.insider","carriage.insider"],n)?"insider":"tender"}}]}});angular.module("app").directive("bankAccount",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/bankAccount.cshtml",scope:{account:"=",formname:"=",readOnly:"=",isRequired:"=",isShowDescription:"=",allowDelete:"=",bankIndex:"=",groupIndex:"=",data:"=",mustFilled:"=",isTimberEnglish:"=",isTimberMultiAwards:"=",isLegitimatePropertyLease:"=",isBasicSell:"=",accountsType:"@"},controller:["$rootScope","$scope",function(n,t){function r(n){if((t.isTimberEnglish||t.isTimberMultiAwards)&&!t.data.isOrganizationForm&&!t.data.isCreateOrganization){var i=n.accountIdentification.filter(n=>n.id);t.isRequiredCustom=i&&i.length===0?!0:!1}}var i=[{scheme:"UA-EDR",description:"ЄДРПОУ",order:1},{scheme:"UA-MFO",description:"МФО банку",order:2},{scheme:t.isTimberEnglish||t.isTimberMultiAwards?"UA-accountNumber":"accountNumber",description:"Банківський рахунок",order:3}];(t.isLegitimatePropertyLease||t.isBasicSell)&&(i=[{scheme:"UA-EDR",description:"ЄДРПОУ",order:1},{scheme:"UA-IBAN",description:"Міжнародний номер банківського рахунку IBAN",placeholder:"UA001234560000012345678910111",order:4}]);t.getPlaceholder=function(n){return n.scheme==="UA-IBAN"?"UA001234560000012345678910111":""};t.getDescriptionByScheme=function(n){var t=i.find(t=>t.scheme===n);return t&&t.description?t.description:n};(t.isTimberEnglish||t.isTimberMultiAwards)&&i.push({scheme:"UA-IBAN",description:"Міжнародний номер банківського рахунку IBAN",placeholder:"UA001234560000012345678910111",order:4});t.tooltipDelete=n.source("Remove");t.patterns={"UA-EDR":n.regex.edrpouCode,"UA-MFO":/^[0-9]+$/,accountNumber:/^[A-Z0-9]+$/,"UA-accountNumber":/^[0-9]+$/,"UA-IBAN":n.regex.accountUAIBAN};t.minLens={"UA-EDR":8,"UA-MFO":6,accountNumber:10,"UA-accountNumber":10,"UA-IBAN":29};t.maxLens={"UA-EDR":8,"UA-MFO":6,accountNumber:34,"UA-accountNumber":34,"UA-IBAN":29};t.isRequiredCustom=!1;t.changeValue=function(n){t.isRequiredCustom=!1;n.isFilled=!1;n.bankName&&!t.data&&(t.isRequiredCustom=!0);(n.bankName||t.mustFilled)&&(t.isRequiredCustom=!0);n.isFilled=n.bankName!=null&&typeof n.bankName!="undefined"&&n.bankName.length>0;n.accountIdentification.forEach(function(i){i.id&&!t.data&&(t.isRequiredCustom=!0);(i.id||t.mustFilled)&&(t.isRequiredCustom=!0);n.isFilled=i.id!==null&&typeof i.id!="undefined"&&i.id.length>0&&n.isFilled});t.isLegitimatePropertyLease&&t.data.changeRequiredTab(n.currency,(t.isRequiredCustom||t.isRequired)&&!n.isFilled);r(n)};(t.isTimberEnglish||t.isTimberMultiAwards)&&(t.isRequiredCustom=!0,r(t.account));t.data&&(t.data.isOrganizationForm||t.data.isCreateOrganization)&&(t.isRequiredCustom=!1);t.$watch("account.accountIdentification",function(n){n&&angular.forEach(i,function(i){var r=n.find(n=>n.scheme===i.scheme);r?r.placeholder=t.getPlaceholder(r):n.push(i)})});t.pattern=function(n){return t.patterns[n.scheme]};t.minLen=function(n){return t.minLens[n.scheme]};t.maxLen=function(n){return t.maxLens[n.scheme]}}]}});angular.module("app").directive("bankAccountDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/bankAccountDetailes.cshtml",scope:{titleAccount:"@",showCurrency:"=",entity:"="},controller:["$scope","lookupService",function(n){var t=[{scheme:"UA-EDR",description:"ЄДРПОУ"},{scheme:"UA-MFO",description:"МФО банку"},{scheme:"UA-accountNumber",description:"Банківський рахунок"},{scheme:"accountNumber",description:"Банківський рахунок"},{scheme:"UA-IBAN",description:"Міжнародний номер банківського рахунку IBAN"}];n.getDescriptionByScheme=function(n){var i=t.find(t=>t.scheme===n);return i&&i.description?i.description:n}}]}});angular.module("app").directive("carriageLeaseItemExtDetails",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/carriageLeaseItemExtDetails.cshtml",scope:{entity:"=",item:"="},controller:["$scope","$rootScope","tenderHelperService",function(n,t,i){function u(){n.entity&&(n.entity.isCarriageLease||n.entity.isRailwayCargoEnglish||n.entity.isRailwayCargoDutch)&&n.entity.lots&&n.entity.lots.length>0&&n.entity.lots.forEach(function(t){t.items&&t.items.length>0&&t.items.forEach(function(t){t.itemExt!==null&&(t.auctionTypeDesc=i.getCarriageAuctionTypeDesc(parseInt(t.itemExt.carriageItemExt.auctionType,10)),t.itemExt.carriageItemExt&&t.itemExt.carriageItemExt.carriageRoutes&&t.itemExt.carriageItemExt.carriageRoutes.length>0&&t.itemExt.carriageItemExt.carriageRoutes.forEach(function(t){(t.routeNpp||t.wagCount)&&(n.isShowCarriageRoute=!0)}),t.itemExt.carriageItemExt&&t.itemExt.carriageItemExt.carriageRestrictions&&t.itemExt.carriageItemExt.carriageRestrictions.length>0&&t.itemExt.carriageItemExt.carriageRestrictions.forEach(function(t){(t.load||t.loadCode||t.loadName||t.unload||t.unloadCode||t.unloadName)&&(n.isShowCarriageRestriction=!0);t.carriageRestrictionExcs&&t.carriageRestrictionExcs.length>0&&t.carriageRestrictionExcs.forEach(function(t){(t.type||t.exc||t.excCode||t.excName)&&(n.isShowCarriageRestrictionExc=!0)})}))})})}n.regexPattern=t.regex.wordAnyLanguage;n.isShowCarriageRoute=!1;n.isShowCarriageRestriction=!1;n.isShowCarriageRestrictionExc=!1;var r=i.getCarriagePoligonSignsWithCode();n.getCarriagePoligonSign=function(n){var t=r.filter(t=>t.code===n)[0];if(t)return t.name};n.$watch("entity",u);console.log(">>>>>>>>>>>>>>>><<<<<<<<<<<<<");console.log(n.entity)}]}});angular.module("app").directive("conditions",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/conditions.cshtml",scope:{formName:"=",data:"=",name:"@"},controller:["$scope",function(n){n.showDescription=1}]}});angular.module("app").directive("customerInfo",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/customerInfo.cshtml",scope:{customer:"=",organizationName:"="},controller:["$scope","$rootScope","tenderHelperService",function(n,t,i){function r(){n.$watch("customer",function(n){(u(n),n&&n.contactPoint)&&(i.replaceName(n.contactPoint),i.setLang(n.contactPoint))});t.$watch("organization",function(t){t!=null&&(n.codeOfOrganization=t.codeOfOrganization,n.typeOfOrganization=t.typeOfOrganization)})}function u(n){if(n&&n.identifier&&n.identifier.scheme)switch(n.identifier.scheme){case"UA-EDR":n.schemeLegalName="ЄДРПОУ";break;case"UA-IPN":n.schemeLegalName="ІПН/РНОКПП";break;case"UA-IPN-FOP":n.schemeLegalName="ІПН/РНОКПП (ФОП)";break;case"UA-PASSPORT":n.schemeLegalName="Паспорт";break;case"UA-ID-CARD":n.schemeLegalName="ID-карта";break;default:n.schemeLegalName="Ідентифікатор організації"}}r()}]}});angular.module("app").directive("description",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/description.cshtml",scope:{formName:"=",data:"=",name:"@",disabled:"="},controller:["$scope",function(n){n.showDescription=1}]}});angular.module("app").directive("forestTable",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/forestTable.cshtml",scope:{user:"@",procurementMethodType:"@"},controller:["$scope","$timeout","abp.services.etender.timberTender","abp.services.etender.reference","$rootScope","ngTableParams","tenderHelperService","numberOfRecords","abp.services.etender.tender","cachingService",function(n,t,i,r,u,f,e,o,s,h){function y(){n.timberDiametersAll=n.filter.forest&&n.filter.forest.assortment&&n.filter.forest.assortment.length?n._timberDiametersAll.filter(function(t){return t.relatedTo.includes(n.filter.forest.assortment)}):[]}function p(){n.timberClassesAll=n.filter.forest&&n.filter.forest.assortment&&n.filter.forest.assortment.length?n._timberClassesAll.filter(function(t){return t.relatedTo.includes(n.filter.forest.assortment)}):[]}function b(n){var t=[];return angular.forEach(n,function(n){var i=e.getTenderDescriptionByStatus(n);t.push({name:n,description:i})}),t.unshift({name:"allStatuses",description:"Всі статуси"}),t}function c(t,i){t!=i&&(n.pager.searchFilter.columnFilters.forEach(function(t){switch(t.Name){case"Title":t.Filter=n.filter.title;break;case"TitleOrOrganizationName":t.Filter=n.filter.titleOrOrganizationName;break;case"OrganizationName":t.Filter=n.filter.orgName;break;case"auctionPeriodStartFrom":t.Filter=n.filter.auctionPeriodStartFrom;break;case"auctionPeriodStartTo":t.Filter=n.filter.auctionPeriodStartTo}}),n.pager.searchFilter.auctionPeriodStartFrom=n.filter.auctionPeriodStartFrom,n.pager.searchFilter.auctionPeriodStartTo=n.filter.auctionPeriodStartTo,n.pager.searchFilter.statuses=n.filter.status!=="allStatuses"?n.filter.status?[n.filter.status]:undefined:undefined,n.filter.forest&&(n.pager.searchFilter.forest.quarter=n.filter.forest.quarter,n.pager.searchFilter.forest.productionDate=n.filter.forest.productionDate,n.pager.searchFilter.forest.assortment=n.filter.forest.assortment,n.pager.searchFilter.forest.storage=n.filter.forest.storage,n.pager.searchFilter.forest.speciesCode=n.filter.forest.speciesCode,n.pager.searchFilter.forest.className=n.filter.forest.className,n.pager.searchFilter.forest.diameter=n.filter.forest.diameter,n.pager.searchFilter.forest.minLength=n.filter.forest.minLength,n.pager.searchFilter.forest.maxLength=n.filter.forest.maxLength),n.reloadPage())}var w,l,a,v;n.isIframe=u.env.isIframe;n.categoryId=12;n.currentPage={pageName:"forestTableFilterPage"};n.tableHeaderFilterDebounce=1e3;n.forestYears=e.getForestYears();n.forestYears=n.forestYears.filter(function(n){return n.name});n.forestQuarters=e.getForestQuarters();n.forestQuarters=n.forestQuarters.filter(function(n){return n.name});n.currentTab="forest";t(function(){n.currentTab=localStorage.forestCurrentTab?localStorage.forestCurrentTab:"forest";n.$watch("currentTab",function(n){n&&n.length&&(localStorage.forestCurrentTab=n)})},0);n.customTendTitle=function(n){return n};h.getDataFromCache("getAllStorages",r.getAllStorages).then(function(t){n.timberStorages=t.data});h.getDataFromCache("getAllDiameters",r.getAllDiameters).then(function(t){n._timberDiametersAll=t.data;y();n.timberDiameters=[]});h.getDataFromCache("getAllSpecies",r.getAllSpecies).then(function(t){n.forestSpecies=t.data});h.getDataFromCache("getAllSortments",r.getAllSortments).then(function(t){n.timberSortments=t.data});h.getDataFromCache("getAllClasses",r.getAllClasses).then(function(t){n._timberClassesAll=t.data;p();n.timberClasses=[]});w=["active.tendering","active.auction","active.qualification","active.awarded","complete","active.rectification","active.enquiry","unsuccessful","cancelled"];n.statusDictionary=b(w);n.pager={searchFilter:{categoryId:n.categoryId,columnFilters:[{Name:"Title",Filter:""},{Name:"TitleOrOrganizationName",Filter:""},{Name:"Description",Filter:""},{Name:"OrganizationName",Filter:""},{Name:"auctionPeriodStartTo",Filter:""},{Name:"auctionPeriodStartFrom",Filter:""},{Name:"classificationCpv",Filter:""},{Name:"classificationCav",Filter:""},{Name:"classificationDkpp",Filter:""}],forest:{}}};n.filter={};localStorage[n.currentPage.pageName]&&localStorage[n.currentPage.pageName].length>0&&(l=JSON.parse(localStorage[n.currentPage.pageName]),l&&(n.pager.searchFilter=l),n.filter.forest=n.pager.searchFilter.forest,n.pager.searchFilter.statuses&&n.pager.searchFilter.statuses.length&&(n.filter.status=n.pager.searchFilter.statuses[0]),a=n.pager.searchFilter.columnFilters.find(function(n){return n.Name==="auctionPeriodStartTo"&&!!n.Filter}),v=n.pager.searchFilter.columnFilters.find(function(n){return n.Name==="auctionPeriodStartFrom"&&!!n.Filter}),a&&(n.filter.auctionPeriodStartTo=new Date(a.Filter)),v&&(n.filter.auctionPeriodStartFrom=new Date(v.Filter)));n.$watch("pager.searchFilter.statuses",function(t){t&&t.length?n.filter.status=t[0]:t===undefined&&(n.filter.status=undefined)});n.tableParams=new f({page:function(){return localStorage.forestCurrentPage&&localStorage.forestCurrentPage.length>0?localStorage.forestCurrentPage:1}(),count:u.env.isIframe?numberOfRecordsIframe:o,sorting:{tenderStartDate:"desc"}},{getData:function(t,r){n.pager.Page=r.page();localStorage.forestCurrentPage=n.pager.Page;n.pager.PageSize=r.count();n.pager.OrderColumn=r.orderBy()[0].slice(1);n.pager.OrderDirection=r.sorting()[r.orderBy()[0].slice(1)];n.pager.searchFilter.isProductionMode=localStorage.isProdMode;n.pager.searchIdentifier=n.pager.searchFilter.searchIdentifier;n.user&&(n.pager.searchFilter.UserName=n.user);localStorage[n.currentPage.pageName]=JSON.stringify(n.pager.searchFilter);abp.ui.setBusy("#forestTable");var u=i.getTendersTimber(n.pager);u.success(function(n){abp.ui.clearBusy("#forestTable");r.total(n.countAllRecords);n.tender.forEach(function(n){e.setTenderDescriptionByStatus(n)});t.resolve(n.tender)})}});n.$watch("filter.titleOrOrganizationName",c);n.$watch("filter.orgName",c);n.$watch("filter.auctionPeriodStartFrom",c);n.$watch("filter.auctionPeriodStartTo",c);n.$watch("filter.status",c);n.$watch("filter.forest.quarter",c);n.$watch("filter.forest.productionDate",c);n.$watch("filter.forest.storage",c);n.$watch("filter.forest.speciesCode",c);n.$watch("filter.forest.className",c);n.$watch("filter.forest.diameter",c);n.$watch("filter.forest.minLength",c);n.$watch("filter.forest.maxLength",c);n.$watch("filter.forest.assortment",function(t,i){if(!t||!t.length){n.timberClasses=[];n.timberDiameters=[];n.timberDiametersAll=[];n.timberClassesAll=[];n.filter.forest&&(n.filter.forest.assortment=null,n.pager.searchFilter.forest.assortment=n.filter.forest.assortment,n.reloadPage());return}if(t!=i&&t){y();p();var r=n.timberSortments.find(function(n){return n.code===t});if(!r)return;n.timberClasses=n.timberClassesAll.filter(function(n){return n.relatedTo.includes(r.code)});n.timberDiameters=n.timberDiametersAll.filter(function(n){return n.relatedTo.includes(r.code)})}c(t,i)});n.reloadPage=function(){n.pager.searchFilter.columnFilters&&n.pager.searchFilter.columnFilters.length&&n.pager.searchFilter.columnFilters.forEach(function(t){t.Name!=="auctionPeriodStartFrom"||t.Filter||(n.filter.auctionPeriodStartFrom=null);t.Name!=="auctionPeriodStartTo"||t.Filter||(n.filter.auctionPeriodStartTo=null)});n.tableParams.reload();n.tableParams.page(1)};n.AddTimberApplication=function(t){var r=n.tableParams.page(),u=i.addTimberApplication(t);u.success(function(){abp.notify.success("Аукціон додано до пулу Ваших заявок!");n.reloadPage();n.tableParams.page(r)})};n.goToRequests=function(){n.currentTab="requests"};n.toggleFavorite=function(n){e.toggleFavorite(n,s.createFavorite,s.deleteFavorite)}}]}});angular.module("app").directive("itemDocuments",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/itemDocuments.cshtml",scope:{tenderid:"=",itemid:"=",awardId:"@",contractId:"@",bidId:"@",cancellationId:"@",lot:"=",documents:"=",status:"=",doctype:"@",isEdit:"=",reload:"&",allowedExtensions:"=",documentTypes:"="},controller:["$scope","$rootScope","Upload","abp.services.etender.tender","$http","$timeout","$attrs","documentService",function(n,t,i,r,u,f,e,o){function h(n){var i,t;if(null==n||"object"!=typeof n)return n;i=n.constructor();for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}function s(t,r,u){o.validateDocName(t.name)!=0&&(t.upload=i.upload({url:"./api/files/upload",method:"POST",fields:{myObj:n.fileUploadObj,DocumentType:u,itemId:n.itemid},file:t}),t.upload.then(function(n){f(function(){t.result=n.data})},function(t){t.status>0&&(n.errorMsg=t.status+": "+t.data)}),t.upload.progress(function(n){t.progress=Math.min(100,parseInt(100*n.loaded/n.total))}),t.upload.success(function(t,i,u,f){console.log("file "+f.file.name+"is uploaded successfully. Response: "+t);abp.notify.success("Файл додано!");n.uploadFilesCounter++;n.uploadFilesCounter==r.length&&(r.splice(0,r.length),n.uploadFilesCounter=0,$("#modalDocNotification").modal("show"),n.reload());n.selectedDocType=null}).error(function(t){abp.notify.error(t.exceptionMessage||t.message);n.reload()}),t.upload.xhr(function(){}))}function c(t,i){n.errorMsg=null;n.fileUploadObj={tenderId:n.tenderid,documentId:""};var r=n.selectedDocType?n.selectedDocType.id:null;s(t,i,r)}n.fileUploadObj={tenderId:"",documentId:"",itemid:""};n.uploadFilesCounter=0;n.selectedDocType=null;n.init=function(){n.documents2=n.documents}();n.$watch("documents",function(n){if(n!=null)for(var t=0;t<n.length;t++)n[t].documentTypeForEditing=h(n[t].documentType)});n.$watch("files",function(t){if(n.formUpload=!1,t!=null)for(var i=0;i<t.length;i++)n.errorMsg=null,function(t){c(t,n.files)}(t[i])});n.$watch("documentsToUpdate",function(t){if(t!=null)for(var i=0;i<t.length;i++)n.errorMsg=null,function(t){n.update(t)}(t[i],i)});n.update=function(t,i){var u=i?i.id:null,r;if(n.fileUploadObj.tenderId=n.tenderid,t!=null)for(r=0;r<t.length;r++)n.errorMsg=null,function(n){s(n,t,u)}(t[r])};n.changeDoc=function(t){n.fileUploadObj.documentId=t.id;_(n.documents).each(function(n){n.ch=!1});t.ch=!0};n.clearDoc=function(){n.fileUploadObj.documentId=""};var l=function(t){if(confirm("Ви дійсно бажаєте видалити документ?")){var i=u.post("./api/files/DeleteDocument",t);i.success(function(t){console.log(t);n.reload()});i.error(function(n){console.log(n)})}};n.removeTenderDocument=function(n){var t={TenderDocumentId:n};l(t)}}]}});angular.module("app").directive("landSellPriority",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/landSellPriority.cshtml",scope:{data:"=",formname:"="},controller:["$scope","$rootScope","tenderHelperService",function(n,t,i){function r(t){t?(n.currentContractTimeMinEndDate=new Date(t),n.currentContractTimeMinEndDate.setDate(n.currentContractTimeMinEndDate.getDate()+1),n.currentContractTimeMinEndDate.setHours(0,0,0,0)):n.currentContractTimeMinEndDate=t}n.$watch("data.procurementMethodType",function(){n.data&&n.data.tenderNewExt&&n.data.tenderNewExt.landRentalExt&&n.data.tenderNewExt.landRentalExt.currentContractTime&&(r(n.data.tenderNewExt.landRentalExt.currentContractTime.startDate),n.data.tenderNewExt.landRentalExt.currentContractTime.startTime=n.data.tenderNewExt.landRentalExt.currentContractTime.startDate,n.data.tenderNewExt.landRentalExt.currentContractTime.endTime=n.data.tenderNewExt.landRentalExt.currentContractTime.endDate)});n.changeContractDateTime=function(n,t){n&&(t?(n.startDate=i.appendTimeToDate(n.startDate,n.startTime),r(n.startDate)):n.endDate=i.appendTimeToDate(n.endDate,n.endTime),n.startTime&&n.startDate&&(n.startTime=n.startDate))}}]}});angular.module("app").directive("leaseDuration",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/leaseDuration.cshtml",scope:{data:"=",formname:"=",isDisabled:"=",showDaysField:"=",isRequired:"="},controller:["$rootScope","$scope",function(n,t){t.numberRegex=n.regex.number;t.isRequiredLocal=t.isRequired;t.$watch("data",function(n){t.dataChanged(n)});t.dataChanged=function(n){n&&(t.data.years==0&&(t.data.years=""),t.data.months==0&&(t.data.months=""),t.data.days==0&&(t.data.days=""),t.isRequiredLocal=t.isRequired&&!(n.years>0||n.months>0||n.days>0))}}]}});angular.module("app").directive("leaseDurationDetailes",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/leaseDurationDetailes.cshtml",scope:{data:"=",title:"="},controller:["$rootScope","$scope",function(n,t){if(t.data){var i=moment.localeData();t.data.leaseDurationYears=i.relativeTime(t.data.years,!1,"yy",!1);t.data.leaseDurationMonths=i.relativeTime(t.data.months,!1,"MM",!1);t.data.leaseDurationDays=i.relativeTime(t.data.days,!1,"dd",!1)}}]}});angular.module("app").directive("lplTable",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/lplTable.cshtml",scope:{user:"@",procurementMethodType:"@"},controller:["$scope","$timeout","abp.services.etender.reference","$rootScope","ngTableParams","tenderHelperService","numberOfRecords","abp.services.etender.tender","tenderHelperService",function(n,t,i,r,u,f,e,o,s){function b(n){var t=[];return angular.forEach(n,function(n){var i=f.getTenderDescriptionByStatus(n);t.push({name:n,description:i})}),t.unshift({name:"allStatuses",description:"Всі статуси"}),t}function h(t,i){t!=i&&(n.pager.searchFilter.columnFilters.forEach(function(t){switch(t.Name){case"Title":t.Filter=n.filter.title;break;case"TitleOrOrganizationName":t.Filter=n.filter.titleOrOrganizationName;break;case"OrganizationName":t.Filter=n.filter.orgName;break;case"auctionPeriodStartFrom":t.Filter=n.filter.auctionPeriodStartFrom;break;case"auctionPeriodStartTo":t.Filter=n.filter.auctionPeriodStartTo}}),n.pager.searchFilter.auctionPeriodStartFrom=n.filter.auctionPeriodStartFrom,n.pager.searchFilter.auctionPeriodStartTo=n.filter.auctionPeriodStartTo,n.pager.searchFilter.statuses=n.filter.status!=="allStatuses"?n.filter.status?[n.filter.status]:undefined:undefined,n.reloadPage())}var v,c,l,a;n.isIframe=r.env.isIframe;n.categoryId=14;n.currentPage={pageName:"lplTableFilterPage"};n.tableHeaderFilterDebounce=1e3;n.currentTab="lpl";t(function(){n.currentTab=localStorage.lplCurrentTab?localStorage.lplCurrentTab:"lpl";n.$watch("currentTab",function(n){n&&n.length&&(localStorage.lplCurrentTab=n)})},0);var y=function(n){return n.match(/^railwayCargo-dutch/i)?"railwayCargo-dutch":n},p=function(n,t){for(var i,e,r=t.split(""),u=n.split(" "),f=0;f<u.length;f++)for(i=0;i<r.length;i++)e=r[i]=="."?new RegExp("%"+r[i],"gi"):new RegExp(r[i],"gi"),u[f]=u[f].replace(e,r[i]+" ");return u.join(" ")},w=function(n,t){var i,r;if(t<5)return console.log("Non valid parameter 'length' in function 'truncString'. It should be >4."),n;for(i=n.split(" "),r=0;r<i.length;r++)i[r].length>t&&(i[r]=i[r].substr(0,t-2)+"...");return i.join(" ")};n.customTendTitle=function(n){return n};v=["active.tendering","active.auction","active.qualification","active.awarded","complete","active.rectification","active.enquiry","unsuccessful","cancelled"];n.statusDictionary=b(v);n.pager={searchFilter:{categoryId:n.categoryId,columnFilters:[{Name:"Title",Filter:""},{Name:"TitleOrOrganizationName",Filter:""},{Name:"Description",Filter:""},{Name:"OrganizationName",Filter:""},{Name:"auctionPeriodStartTo",Filter:""},{Name:"auctionPeriodStartFrom",Filter:""},{Name:"classificationCpv",Filter:""},{Name:"classificationCav",Filter:""},{Name:"classificationDkpp",Filter:""}],lpl:{}}};n.filter={};localStorage[n.currentPage.pageName]&&localStorage[n.currentPage.pageName].length>0&&(c=JSON.parse(localStorage[n.currentPage.pageName]),c&&(n.pager.searchFilter=c),n.filter.lpl=n.pager.searchFilter.lpl,n.pager.searchFilter.statuses&&n.pager.searchFilter.statuses.length&&(n.filter.status=n.pager.searchFilter.statuses[0]),l=n.pager.searchFilter.columnFilters.find(function(n){return n.Name==="auctionPeriodStartTo"&&!!n.Filter}),a=n.pager.searchFilter.columnFilters.find(function(n){return n.Name==="auctionPeriodStartFrom"&&!!n.Filter}),l&&(n.filter.auctionPeriodStartTo=new Date(l.Filter)),a&&(n.filter.auctionPeriodStartFrom=new Date(a.Filter)));n.$watch("pager.searchFilter.statuses",function(t){t&&t.length?n.filter.status=t[0]:t===undefined&&(n.filter.status=undefined)});n.tableParams=new u({page:function(){return localStorage.lplCurrentPage&&localStorage.lplCurrentPage.length>0?localStorage.lplCurrentPage:1}(),count:r.env.isIframe?numberOfRecordsIframe:e,sorting:{tenderStartDate:"desc"}},{getData:function(t,i){n.pager.Page=i.page();localStorage.lplCurrentPage=n.pager.Page;n.pager.PageSize=i.count();n.pager.OrderColumn=i.orderBy()[0].slice(1);n.pager.OrderDirection=i.sorting()[i.orderBy()[0].slice(1)];n.pager.searchFilter.isProductionMode=localStorage.isProdMode;n.pager.searchIdentifier=n.pager.searchFilter.searchIdentifier;n.user&&(n.pager.searchFilter.UserName=n.user);localStorage[n.currentPage.pageName]=JSON.stringify(n.pager.searchFilter);abp.ui.setBusy("#lplTable");var r=o.getTenders(n.pager);r.success(function(n){abp.ui.clearBusy("#lplTable");i.total(n.countAllRecords);n.tender.forEach(function(n){n.procurementMethodTypeForDetailes=y(n.procurementMethodType);n.title=p(n.title,":;.,!");n.title=w(n.title,20);n.procurementMethodTypeName=s.getProcurementMethodTitle(n.procurementMethodType,n.tenderAttempts);n.labelClassByStatus=s.getLabelClassByStatus(n.status);s.setTenderDescriptionByStatus(n)});t.resolve(n.tender)})}});n.$watch("filter.titleOrOrganizationName",h);n.$watch("filter.orgName",h);n.$watch("filter.auctionPeriodStartFrom",h);n.$watch("filter.auctionPeriodStartTo",h);n.$watch("filter.status",h);n.reloadPage=function(){n.pager.searchFilter.columnFilters&&n.pager.searchFilter.columnFilters.length&&n.pager.searchFilter.columnFilters.forEach(function(t){t.Name!=="auctionPeriodStartFrom"||t.Filter||(n.filter.auctionPeriodStartFrom=null);t.Name!=="auctionPeriodStartTo"||t.Filter||(n.filter.auctionPeriodStartTo=null)});n.tableParams.reload();n.tableParams.page(1)};n.goToRequests=function(){n.currentTab="requests"};n.toggleFavorite=function(n){f.toggleFavorite(n,o.createFavorite,o.deleteFavorite)}}]}});angular.module("app").directive("operatorTenderFeatures",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/operatorTenderFeatures.cshtml",scope:{entity:"=",reload:"&",entityName:"@"},controller:["$scope","$rootScope","abp.services.etender.tender","abp.services.etender.asset","abp.services.etender.registry","$location",function(n,t,i,r,u,f){n.tenderEventLogs=null;var e;n.$watch("entity",function(){if(n.entity)switch(n.entityName){case"tender":case"auction":e=i.syncTender;break;case"asset":e=r.syncAsset;break;case"lotmp":e=r.syncLotMP;break;case"regobject":e=u.syncRegistryObject;break;case"leaserequest":e=u.syncLeaseRequest;break;case"leaseaction":e=u.syncLeaseAction}});n.syncEntity=function(){e===null&&abp.notify.error("Помилка спроби синхронізації");var t=n.entity.id;n.entityName==="auction"&&(t=n.entity.tenderNewId);e({id:t}).success(function(){n.reload();abp.notify.success("Об'єкт буде сiнхронiзовано позачергово! Це може зайняти декiлька хвилин.")})};n.getTenderEventLogs=function(){i.getEventLogs({id:n.entity.id,creationTime:n.entity.creationTime}).success(function(t){n.tenderEventLogs=t;abp.notify.success("Логи об'єкту отримані.")})};n.isOperatorNow=function(){return localStorage.isOperator===!0||localStorage.isOperator==="true"||f.search().operator123?!0:!1}}]}});angular.module("app").directive("procedureTitle",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/procedureTitle.cshtml",scope:{procedureType:"=",attempts:"=",tenderId:"=",detailes:"="},controller:["$scope","$rootScope","tenderHelperService",function(n,t,i){n.clean_uri=null;var r=i.getAttemptsProcedureTypes();n.$watch("attempts",function(t){t!==undefined&&(n.title=i.getProcurementMethodTitle(n.procedureType,t))});n.$watch("procedureType",function(t){if(t!==undefined){var u=i.getMainProcurementMethodType(t);r.includes(u)||(n.title=i.getProcurementMethodTitle(t,null));n.detailes&&(i.hrefToTender(n.detailes),n.toProzorro=n.clean_uri==null&&n.detailes.isMyTenant&&(n.detailes.isDgfOtherAssetsProcedure||n.detailes.isAppraisalInsider||n.detailes.isPropLease&&!n.detailes.isPropLeaseByZU))}});n.$watch("detailes.errorMessage",function(){if(n.detailes&&n.detailes.errorMessage){var i=new RegExp("Object with auction id ("+n.detailes.previousAuctionId+") was not found","i"),t=n.detailes.errorMessage.match(i);n.errorMessage=t?": не знайдено попередній аукціон за номером "+t[1]:""}});t.env.isFrame&&(n.uri=window.location.toString(),n.uri.indexOf("?")>0&&(n.clean_uri=n.uri.substring(0,n.uri.indexOf("?"))))}]}}),function(){function n(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/sign.cshtml",link:function(){},scope:{tenderId:"=",planId:"=",apiId:"=",contractOutOfTender:"="},controller:t}}function t(n,t,i,r,u){var f=t,s=u.apiUri,o="",e;f.init=function(){o="tenders";(f.planId||f.plansArray)&&(o="plans");f.plansArray?(e.apiResourceUrl=[],f.plansArray.forEach(function(n){e.apiResourceUrl.push(s+o+"/"+n.apiId)})):(e.apiResourceUrl=s+o+"/"+f.apiId,f.contractId&&(e.apiResourceUrl=f.contractOutOfTender===!0?s+"contracts/"+f.contractId+"/2":e.apiResourceUrl+"/contracts/"+f.contractId+"/2"),f.awardId&&(e.apiResourceUrl=e.apiResourceUrl+"/awards/"+f.awardId),f.qualificationId&&(e.apiResourceUrl=e.apiResourceUrl+"/qualifications/"+f.qualificationId));abp.ui.setBusy("#signPlaceholder");opSign.init(e)};$("#modalSignPlan").on("show.bs.modal",function(n,t){f.plansArray=null;t&&(t instanceof Array&&(f.plansArray=t),f.planId=t.id,f.apiId=t.apiId||t.id,f.init())});$("#modalSign").on("show.bs.modal",function(n,t){f.awardId=null;f.contractId=null;f.qualificationId=null;f.plansArray=null;t&&t.type&&(t.type=="contract"&&(f.contractId=t.id),t.type=="award"&&(f.awardId=t.id),t.type=="qualification"&&(f.qualificationId=t.id),f.init())});e={apiResourceUrl:s+o+"/"+f.apiId,placeholderId:"#signPlaceholder",verifySignOnInit:!0,ignoreVerifyError:!1,callbackRender:"renderJson",callbackPostSign:"postSign",callbackOnInit:"onInit",callbackBeforeInit:"beforeInit",callbackCheckSign:"checkSign",userJsonDiffHtml:!0};n.signDiff=!0;$(function(){e.customHtmlTemplate=$("#htmlTemplate").text()});n.onInit=function(){console.log("externalInit",arguments);localData.sign?(abp.ui.setBusy("#signPlaceholder"),console.log("signed")):(abp.ui.clearBusy("#signPlaceholder"),console.log("not signed"))};n.renderJson=function(n){abp.ui.setBusy("#signPlaceholder");console.log("renderJson",n)};n.checkSign=function(t,i,r){console.log("externalcheckSign",r);r?(n.signDiff=!0,$("#signPanel").show()):(n.signDiff=!1,$("#signPanel").hide());abp.ui.clearBusy("#signPlaceholder")};n.postSign=function(n){var t,i;if(console.log("sendSign",n),t={},f.plansArray){t.PlansListToSign=[];$.each(n,function(n,i){t.PlansListToSign.push({ApiId:n,SignString:i})});for(i in n)n.hasOwnProperty(i)&&t.PlansListToSign.push({ApiId:i,SignString:n[i]})}else t={signString:n},f.tenderId&&(t.tenderId=f.tenderId),f.planId&&(t.planId=f.planId),f.contractId&&(t.contractId=f.contractId),f.contractOutOfTender===!0&&(t.isContracting=!0),f.awardId&&(t.awardId=f.awardId),f.qualificationId&&(t.qualificationId=f.qualificationId);r({method:"POST",url:"./api/files/CreateFileFromString",data:t}).success(function(){setKeyStatus("Підпис успішно накладено та передано у ЦБД","success")}).error(function(){setKeyStatus("Помилка при передачі підпису до ЦБД","error")})}}angular.module("app").directive("sign",n);n.$inject=[];t.$inject=["$window","$scope","$element","$http","$rootScope"]}(),function(){function n(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/signCheck.cshtml",link:function(){},scope:{tenderId:"=",planId:"=",apiId:"=",contractId:"=",isSignatureFileExist:"=",contractOutOfTender:"=",isSigned:"="},controller:t}}function t(n,t,i,r,u){var f=t,s=u.apiUri,o="",e;f.init=function(){o="tenders";f.planId&&(o="plans");e.apiResourceUrl=s+o+"/"+f.apiId;f.contractId&&(e.apiResourceUrl=f.contractOutOfTender===!0?s+"contracts/"+f.contractId+"/2":e.apiResourceUrl+"/contracts/"+f.contractId+"/2");$.ajaxPrefilter(function(n){n.async=!0});opSign.init(e)};t.$watch("tenderId",function(n){t.formUpload=!1;n!=null&&(t.isSignatureFileExist===!0?f.init():f.isSigned=!1)});f.isSigned=undefined;t.isSignedDiff=!1;e={apiResourceUrl:s+o+"/"+f.apiId,callbackRender:"renderJson2",callbackCheckSign:"checkSign2",verifyOnly:!0};n.checkSign2=function(n,i,r){console.log("externalcheckSign",r);f.isSigned=n?!0:!1;r&&(f.isSigned=!1,t.isSignedDiff=!0)};n.renderJson2=function(n){console.log("renderJson2",n)}}angular.module("app").directive("signCheck",n);n.$inject=[];t.$inject=["$window","$scope","$element","$http","$rootScope"]}();angular.module("app").directive("tenderBids",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/tenderBids.cshtml",scope:{tender:"=",reload:"&",allowedExtensions:"="},controller:["$scope","$rootScope","abp.services.etender.bid","lookupService","tenderHelperService","bankOperationsService","abp.services.etender.timberTender","abp.services.etender.organization",function(n,t,i,r,u,f,e,o){function h(n){return r.getBidStatusDesc(n.status,n.isCanceledByModerator,!1)}function s(t){abp.ui.setBusy(".panel-default");var r={id:t.id,lotValue:{id:t.lotValueId,value:t.value},userId:n.UserId,quantity:t.quantity,isMPLot:n.tender.isMP};i.updateBid(r).success(function(){abp.notify.success("Пропозицію змінено!");n.isBidEdit=!1;abp.ui.clearBusy(".panel-default");n.reload()}).error(function(){abp.ui.clearBusy(".panel-default")})}function c(n){var t=null;return n.lotValues&&n.lotValues.length>0&&(t=n.lotValues[0]),{id:n.id,date:t?t.date:n.date,inactiveBidDate:n.inactiveBidDate,documents:n.documents,lotValueId:t?t.id:null,participationUrl:t?t.participationUrl:n.participationUrl,isInvalidStatus:n.status==="invalid"||n.status==="invalidDraft"||n.status==="inactive"||n.status==="inactiveDraft",isInactiveStatus:n.status==="inactive"||n.status==="inactiveDraft",isActiveStatus:n.status==="active",tenderers:n.tenderers,value:t?t.value:{},isMyBid:n.isMyBid,canLoadFiles:n.canLoadFiles,status:n.status,newValue:n.newValue,newValueDate:n.newValueDate,quantity:n.quantity,isPreviousAuctionBidDisqualified:n.isPreviousAuctionBidDisqualified,isCanceledByModerator:n.isCanceledByModerator,cancellationModeratorReason:n.cancellationModeratorReason,isNotifyBidSecondAndCouldBeFifrst:n.isNotifyBidSecondAndCouldBeFifrst,statusDesc:h(n),isCurrentTenant:n.isCurrentTenant,isAlreadyRegisteredCurrentTenant:n.isAlreadyRegisteredCurrentTenant}}function l(t){i.confirmBid({id:t.id}).success(function(t){t.isActivateSuccessfully?(abp.notify.success("Пропозицію підтверджено!"),n.reload()):abp.notify.error(t.errorMessage)})}function a(t){i.confirmBid({id:t}).success(function(t){t.isActivateSuccessfully?(abp.notify.success("Пропозицію підтверджено!"),t.isInvoicesChanged?$("#modalAddBidInvoice").modal({backdrop:"static",keyboard:!1}):n.reload()):abp.notify.warn("Організатор змінив стартову ціну аукціону. Вам необхідно скасувати наявну пропозицію та зареєструвати нову.","Увага!",!0)})}function v(t){var i=new Date,r;n.isActiveTendering=n.tender.status!=="cancelled"&&new Date(n.tender.tenderPeriod.startDate)<i&&new Date(n.tender.tenderPeriod.endDate)>i;t.bids.forEach(function(t){t.canLoadFiles=t.isMyBid&&n.isActiveTendering});t.procurementMethodType==="landLease"&&t.status==="active.qualification"&&t.bids.forEach(function(n){if(n.isMyBid)for(var i=0;i<t.lots[0].awards.length;i+=1)n.canLoadFiles=!1});t.cbd===3&&(t.status==="active.qualification"||t.status==="active.awarded"&&t.isCommercialSellEnglish)&&(r=t.status==="active.awarded"&&t.isCommercialSellEnglish,t.bids.forEach(function(u){var e,f;(u.isMyBid||n.isCanLoadBidDocumentRailwayCargo)&&(e=t.lots[0].awards.filter(n=>n.bidId===u.id),e.length===1&&(f=e[0],(f.isMy||n.isCanLoadBidDocumentRailwayCargo)&&(r?f.status==="active":f.status==="pending")&&(u.canLoadFiles=i<new Date(f.verificationPeriod.endDate))))}))}function y(t){var i,r;return n.tender.lots?n.tender.isTimberMultiAwards&&!t.bid.quantity?!0:t.bid&&n.userOrganization&&!t.bid.ibanUA?!0:!n.isInsider&&((i=parseFloat(t.bid.value.amount),isNaN(i))||(r=parseFloat(t.value.amount),i<r||i===0))?!0:!n.bidderAgreeChk.state||!n.bidderAgreeChk.state2||!n.bidderAgreeChk.state3?!0:!1:!0}function p(){return n.vm={isBidInvalid:y,confirmBid:a,activateBid:l},n.vm}function w(t){if(t&&t.bid&&t.bid.ibanUA){t.bid.accountantsEmail=t.bid.accountantsEmail?t.bid.accountantsEmail:null;var i=o.updateOrganizationExtFromBid(t.bid.ibanUA,t.bid.accountantsEmail);i.success(function(){localStorage.orgIbanUA=t.bid.ibanUA;localStorage.orgAccountantsEmail=t.bid.accountantsEmail;n.userOrganization.ibanUA=t.bid.ibanUA;n.userOrganization.accountantsEmail=t.bid.accountantsEmail})}}n.uploadFilesCounter=0;n.userTenantId=localStorage.userTenantId||null;n.isOperator=localStorage.isOperator&&(localStorage.isOperator==="true"||localStorage.isOperator===!0)||!1;n.regexNumber=t.regex.floatNumber;n.patternIBAN=t.typeOfOrganization===3?t.regex.accountIBAN:t.regex.accountUAIBAN;n.regexEmail=t.regex.email;n.userOrganization={ibanUA:localStorage.orgIbanUA&&localStorage.orgIbanUA!=="null"?localStorage.orgIbanUA:null,accountantsEmail:localStorage.orgAccountantsEmail&&localStorage.orgAccountantsEmail!=="null"?localStorage.orgAccountantsEmail:null,isRequiredEmail:localStorage.typeOfOrganization!=="1"&&localStorage.typeOfOrganization!=="3"&&localStorage.typeOfOrganization!=="23"&&localStorage.typeOfOrganization!=="24"};n.fileUploadObj={};n.bidderAgreeChk={state:!1,state2:!1,state3:!1};n.addBidModalState="confirm";n.UserId=abp.session.userId;n.insiderProcedures=["appraisal.insider","property.insider","propInsiderByZU","bankrupt.insider","carriage.insider","railwayCargo-dutch","subsoil-dutch","legitimatePropertyLease-dutch","basicSell-dutch","commercialSell-dutch"];n.selectDoctypeSelected_Value={};n.selecterChanged=function(t){n.selectDoctypeSelected_Value=t};n.getActualDocuments=function(n){var t=[];return _(n).each(function(n){n.isDeleted!=!0&&t.push(n)}),t};n.getOrganizationToolTipText=function(n){var t="";return n&&(n.identifier&&n.identifier.apiId&&(t+="<p><b>Код ЄДРПОУ: <\/b>"+n.identifier.apiId+"<\/p>"),n.contactPoint&&n.contactPoint.name&&(t+="<p><b>Конт'актна особа: <\/b>"+n.contactPoint.name+"<\/p>"),n.contactPoint&&n.contactPoint.telephone&&(t+="<p><b>Телефон: <\/b>"+n.contactPoint.telephone+"<\/p>"),n.contactPoint&&n.contactPoint.email&&(t+="<p><b>email: <\/b>"+n.contactPoint.email+"<\/p>")),t.replace("'","")};n.canModifyDocuments=function(t){return n.tender&&n.tender.isBidEdit&&n.userTenantId!=n.tender.organization.tenantId&&n.isLotActive(n.tender.lots[0])&&t&&t.isMyBid&&!t.isInvalidStatus&&t.canLoadFiles};n.canModifyDocumentsQualification=function(t){return n.tender&&n.tender.cbd===3&&t&&(t.isMyBid||n.isCanLoadBidDocumentRailwayCargo)&&t.status==="active"&&t.canLoadFiles};n.setRequireDocTypeCorrection=function(i,r){var f,u;(n.tender.isLegitimatePropertyLease||n.tender.isLandRentalOrSellEnglish)&&(f=n.tender.isLandRentalOrSellEnglish?"x_registerExtract":"x_tenderersRegisterExtract",u=i.find(n=>n.type===(t.env.isFisOrFOP?f:"x_passport")),u&&(u.isRequired=!1));n.tender.isLandRentalOrSellEnglish&&r.isPreviousAuctionBidDisqualified&&(u=i.find(n=>n.type==="admissionReason"),u&&(u.isRequired=!0))};n.reloadBids=function(){n.reload()};n.isLotActive=function(n){return!n.status||n.status==="active"||n.status==="active.auction"};n.canBid=function(t){if(n.currentLotToAddBid=t,n.addBid(t),n.tender.isTimberEnglish&&!n.tender.isCurrentUserHasTimberApplication){var i=e.addTimberApplication(n.tender.id);i.success(function(){abp.notify.success("Аукціон додано до пулу Ваших заявок!")})}};n.showOnlyOnTestHost=function(){return u.isEnvironmentQA()||u.isEnvironmentLocalhost()};n.addBid=function(r){abp.ui.setBusy(".panel-default");t.tenderNewId=n.tenderNewId;var u={tenderId:n.tenderNewId,lotValues:[],userId:abp.session.userId,isAgreeWith:n.bidderAgreeChk.state&&n.bidderAgreeChk.state2&&n.bidderAgreeChk.state3,quantity:r.bid.quantity,isMPLot:n.tender.isMP};u.lotValues.push({lotId:r.id,value:n.isInsider?null:r.bid.value});i.addBid(u).success(function(t){if(n.addBidModalState="addBid",n.tender.isLegitimatePropertyLeasePriorityEnglish&&(n.tender.isBidderCalculatedCurrentTenant=n.tender.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.identifier.apiId==t.tenderers[0].identifier.apiId),n.tender.isPreviousAuctionBidDisqualified=t.isPreviousAuctionBidDisqualified,abp.notify.success("Пропозицію зареєстровано!"),n.tender.procurementMethodType==="landLease")n.reload();else{var i={tenderNewId:n.tenderNewId,invoiceType:n.tender.isMP?1:n.tender.isBidderCalculatedCurrentTenant?7:3},u=f.generateInvoiceAddBidPromise(i);u.success(function(t){t.amount>0&&abp.notify.success(f.getInvoiceMessageName(t)+" успішно створено");i.invoiceType=n.tender.isMP?2:4;var r=f.generateInvoiceAddBidPromise(i);r.success(function(n){n.amount>0&&abp.notify.success(f.getInvoiceMessageName(n)+" успішно створено");$("#modalAddBidInvoice").modal({backdrop:"static",keyboard:!1})}).error(function(){abp.notify.error("Під час створення рахунку виникла непередбачена помилка.")})}).error(function(){abp.notify.error("Під час створення рахунку виникла непередбачена помилка.")})}abp.ui.clearBusy(".panel-default");n.userOrganization&&w(r)}).error(function(){abp.ui.clearBusy(".panel-default")})};n.updateBid=function(n){n.isMyBid&&(n.isActiveStatus?s(n):u.sweetAlert({title:"Ви дійсно бажаєте змінити закриту цінову пропозицію?",text:"",type:"warning",showCancelButton:!0,confirmButtonColor:"#48b168",confirmButtonText:"Так",cancelButtonText:"Ні",closeOnConfirm:!0},function(){s(n)},"alertCancelButtonRed"))};n.updateBidByEnterKeypress=function(t,i){i.which===13&&(n.updateBid(t),location.reload())};n.cancelBid=function(t){abp.ui.setBusy(".panel-default");var r={id:t,userId:n.UserId};i.cancelBid(r).success(function(t){n.bidFile=null;console.log(t);abp.notify.success("Пропозицію скасовано!");abp.ui.clearBusy(".panel-default");n.reload()}).error(function(){abp.ui.clearBusy(".panel-default")})};n.$watch("tender",function(t){t&&t.lots&&(n.isBankrupt=t.procurementMethodType==="dgfBankrupt"||t.procurementMethodType==="bankrupt.insider",n.isInsider=t.procurementMethodType==="sellout.insider"||_.contains(n.insiderProcedures,t.procurementMethodTypeOriginal),n.tenderNewId=t.isMP?t.tenderNewId:t.id,n.isCanLoadBidDocumentRailwayCargo=(t.isRailwayCargoEnglish||t.isRailwayCargoDutch)&&abp.auth.hasPermission("IsCanLoadBidDocumentRailwayCargo"),t.bids&&(v(t),t.lots=t.lots.map(function(n){var i,r;for(n.bids=[],i=0;i<t.bids.length;i+=1)r=c(t.bids[i],t),n.bids.push(r);return n})),t.lots=t.lots.map(function(t){return t.bid={value:{amount:n.tender.isLandLease?t.value.amount:"",currency:t.value.currency,valueAddedTaxIncluded:t.value.valueAddedTaxIncluded}},t.isLargeDifference=!1,t}))});n.isValidAmount=function(n,t){var i=parseFloat(n),r=t.value.amount;return i!==NaN&&i<r?!1:!0};n.isAnyBidEntered=function(){var t=!1;return n.tender&&n.tender.lots&&angular.forEach(n.tender.lots,function(n){if(n.bid&&n.bid.value&&n.bid.value.amount){t=!0;return}}),t};p();n.redirectParticipation=function(t){i.redirectByParticipationUrl(t.id,n.tender.id)}}]}});angular.module("app").directive("tenderDocuments",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/tenderDocuments.cshtml",scope:{tenderid:"=",auction:"=",awardId:"@",contractId:"@",bidId:"@",cancellationId:"@",canModifyDocuments:"=",documents:"=",status:"=",procurementmethodtype:"=",doctype:"@",isEdit:"=",reload:"&",allowedExtensions:"=",docBlockName:"=",objectDocType:"=",allowedDocumentTypes:"="},controller:["$scope","$rootScope","Upload","abp.services.etender.tender","abp.services.etender.document","$http","$timeout","$attrs","abp.services.etender.settings","documentService",function(n,t,i,r,u,f,e,o,s,h){function v(n){var i,t;if(null==n||"object"!=typeof n)return n;i=n.constructor();for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}function l(t,r,u){h.validateDocName(t.name)!=0&&(t.upload=i.upload({url:"./api/files/upload",method:"POST",fields:{myObj:n.fileUploadObj,DocumentType:u},file:t}),t.upload.then(function(n){e(function(){t.result=n.data})},function(t){t.status>0&&(n.errorMsg=t.status+": "+t.data)}),t.upload.progress(function(n){t.progress=Math.min(100,parseInt(100*n.loaded/n.total))}),t.upload.success(function(t,i,u,f){console.log("file "+f.file.name+"is uploaded successfully. Response: "+t);abp.notify.success("Файл додано!");n.uploadFilesCounter++;n.uploadFilesCounter==r.length&&(r.splice(0,r.length),n.uploadFilesCounter=0,h.notifyAboutExport(),n.reload());n.selectedDocType=null}).error(function(t){abp.notify.error(t.exceptionMessage||t.message);n.reload()}),t.upload.xhr(function(){}))}function y(t,i){n.errorMsg=null;n.fileUploadObj={tenderId:n.tenderid,documentId:"",cbdType:n.auction.cbd};var r=n.selectedDocType?n.selectedDocType.id:null;l(t,i,r)}var c,a;n.fileUploadObj={tenderId:"",documentId:""};n.uploadFilesCounter=0;n.imgDocType=138;n.doctype||(n.doctype="AuctionDocument");c=u.getDocumentTypes({ExportDocumentType:n.doctype});c.success(function(t){n.allowedDocumentTypes||(n.documentTypes=t)});n.imageLocations=[];n.init=function(){n.documents2=n.documents}();n.changeDocType=function(t){if(t.documentType!=t.documentTypeForEditing.type){var i={documentID:t.id,auctionId:n.tenderid,DocumentType:n.doctype,newDocType:t.documentTypeForEditing.type};u.updateDocumentType(i).success(function(i){abp.notify.success(i);t.ch=!1;n.reload()}).error(function(t){abp.notify.error(t);n.reload()})}};n.$watch("documents",function(t){var u,i,r;if(t!=null){for(console.dir(t),n.imageLocations=[],u=function(n,t){return n.sort(function(n,i){var r=n[t],u=i[t];return r<u?-1:r>u?1:0})},i=0;i<t.length;i++)t[i].documentTypeForEditing=v(t[i].documentType),r=t[i].title.slice(-4),(r===".png"||r===".jpg")&&n.imageLocations.push(t[i]);n.imageLocations=u(n.imageLocations,"index")}});n.$watch("allowedDocumentTypes",function(t){t&&(n.documentTypes=n.allowedDocumentTypes)});n.canModifyDoc=function(n){var t=!1;return n.isExported&&(t=n.url.indexOf("http://torgi.fg.gov.ua/prozorrosale")<0),t};n.$watch("files",function(t){if(n.formUpload=!1,t!=null)for(var i=0;i<t.length;i++)n.errorMsg=null,function(t){y(t,n.files)}(t[i])});n.docTypeSelectHundler=function(){var t=n.selectedDocType,i;t.type=="illustration"?(n.$parent.indexNum=1,n.$parent.illustrationArray=[],n.$parent.vm.selectedDocTypeObj=t,n.$parent.showHideUploadIllustrationPanel=!0):n.$parent.showHideUploadIllustrationPanel=!1;i=s.getDateAndTime();i.success(function(t){n.$parent.detailes.rectificationPeriod.endDate<t&&abp.message.warn("Ви завантажуєте документи після завершення відведеного терміну","Попередження")})};n.setAsMainPicture=function(t){var i=t.id;u.setAsMainPicture({DocumentId:i,Type:n.doctype}).success(function(){n.reload()})};n.showOnlyForCreator=function(t){var i=!0;return t.documentTypeId===n.imgDocType&&(i=localStorage.userId==n.auction.creatorUserId),i};n.setFile=function(t){n.files=[];n.files.push(t.files[0])};n.$watch("documentsToUpdate",function(t){if(t!=null)for(var i=0;i<t.length;i++)n.errorMsg=null,function(t){n.update(t)}(t[i],i)});n.update=function(t,i){var u=i?i.id:null,r;if(n.objectDocType)switch(n.objectDocType){case"assetId":n.fileUploadObj.assetId=n.tenderid;break;case"auctionId":n.fileUploadObj.auctionId=n.tenderid;break;case"mPLotId":n.fileUploadObj.mPLotId=n.tenderid;break;default:n.fileUploadObj.tenderId=n.tenderid}else n.fileUploadObj.tenderId=n.tenderid;if(t!=null)for(r=0;r<t.length;r++)n.errorMsg=null,function(n){l(n,t,u)}(t[r])};n.changeDoc=function(t){n.fileUploadObj.documentId=t.id;_(n.documents).each(function(n){n.ch=!1});t.ch=!0};n.clearDoc=function(){n.fileUploadObj.documentId=""};a=function(t){if(confirm("Ви дійсно бажаєте видалити документ?")){var i=f.post("./api/files/DeleteDocument",t);i.success(function(t){console.log(t);n.reload()});i.error(function(n){console.log(n)})}};n.removeTenderDocument=function(t){var i={};switch(n.objectDocType){case"assetId":i.assetDocumentId=t;break;case"mPLotId":i.mpLotDocumentId=t;break;default:i.tenderDocumentId=t}a(i)}}]}});angular.module("app").directive("tenderProcedureInfo",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/tenderProcedureInfo.cshtml",scope:{tender:"="},controller:["$scope","$rootScope",function(n,t){n.regexPattern=t.regex.wordAnyLanguage;t.env.isFrame&&(n.uri=window.location.toString(),n.uri.indexOf("#")>0&&(n.backUri=n.uri.substring(0,n.uri.indexOf("#"))),n.uri.indexOf("?")>0&&(n.clean_uri=n.uri.substring(0,n.uri.indexOf("?"))))}]}});angular.module("app").directive("tenderQuestions",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/tenderQuestions.cshtml",scope:{questions:"=",lots:"=",isEdit:"=",status:"=",procurementmethodtype:"=",reload:"&",ismp:"=",isPeriodAnswer:"="},controller:["$scope","$rootScope","abp.services.etender.tender",function(n,t,i){n.regexPattern=t.regex.wordAnyLanguage;n.addAnswer=function(t,r){i.addAnswer({questionId:t,answer:r}).success(function(){n.reload()})};n.saveEditQuestion=function(t){if(n.have2HoursPassedSinceCreation(t.updateUntilTime)){abp.notify.warn("Закінчився час на редагування запитання!");return}i.updateQuestion({id:t.questionId,title:t.titleQuestion,description:t.descriptionQuestion}).success(function(){n.reload()})};n.isEnquiries=function(){return n.status==="active.tendering"||n.isPeriodAnswer};n.have2HoursPassedSinceCreation=function(n){var t=new Date(n);return new Date>t};n.canAddAnswer=function(n){return t.env.isAuctionMode?n.isOwn?n.isExported:!0:!0};n.findLotById=function(t){var i=null;return t&&angular.forEach(n.lots,function(n){if(n.id==t){i=n;return}}),i};n.findItemById=function(t){var i=null;return t&&angular.forEach(n.lots,function(n){angular.forEach(n.items,function(n){if(n.id==t){i=n;return}})}),i};n.getQuestionErrorTooltip=function(n){var t="Увага! Виникли помилки експорту вiдповiдi до ЦБД<br/><br/><p>Звернiться до служби пiдтримки майданчику<\/p>";return n&&(n.errorMessage&&(t+="<br/><p><b>Текст помилки: <\/b>"+n.errorMessage.replace(/[`~!@#$%^&*()_|+\-='"<>\{\}\[\]\\\/]/gi,"")+"<\/p>"),n.exportVainAttemptCount&&(t+="<p><b>Кiлькiсть спроб експорту до ЦБД: <\/b>"+n.exportVainAttemptCount+"<\/p>")),t.replace("'","")};n.openModalEditQuestion=function(t){n.curQuestionForEdit={questionId:t.id,titleQuestion:t.title,descriptionQuestion:t.description,canUpdateUntil:t.canUpdateUntil};$("#modalEditQuestion").modal("show")}}]}});angular.module("app").directive("tenderSearch",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/tenderSearch.cshtml",scope:{searchFilter:"=",filterPage:"=",procurementMethodType:"=",reloadPage:"=",widget:"=",clear:"=?",isClearFilter:"=",categoryId:"="},controller:["$scope","$rootScope","tenderHelperService","abp.services.etender.reference","lookupService","cachingService",function(n,t,i,r,u,f){function l(n){switch(n){case"draftTab":return s.filter(n=>n==="draft");case"archiveTab":return s.filter(n=>n==="complete"||n==="unsuccessful"||n==="cancelled");case"activeTab":return s.filter(n=>n!=="draft"&&n!=="complete"&&n!=="unsuccessful"&&n!=="cancelled");default:return s}}function a(){var t=[],r=l(n.filterPage.currentTab);return angular.forEach(r,function(n){var r=i.getTenderDescriptionByStatus(n);t.push({name:n,description:r})}),t.unshift({name:"allStatuses",description:"Всі статуси"}),t}function h(){n.objTypes=angular.copy(u.getobjectTypes());n.objTypes.unshift({name:"Всі типи",type:""});n.searchFilter&&n.searchFilter.categoryId===14||n.filter.selectedProcurementMethodTypes&&n.filter.selectedProcurementMethodTypes.length>0&&n.filter.selectedProcurementMethodTypes.some(n=>n.procurementMethodType==="allLease"||n.procurementMethodType==="propLeaseByZULPLEnglish1"||n.procurementMethodType==="legitimatePropertyLease-english2"||n.procurementMethodType==="propInsiderByZULPLDutch3"||n.procurementMethodType==="legitimatePropertyLease-priorityEnglish")?(n.showObjType=!0,n.showDuration=!0,n.objTypes=n.objTypes.filter(function(n){return n.type!=="land"}),n.showLegitimatePriority=n.filter.selectedProcurementMethodTypes.some(n=>n.procurementMethodType==="legitimatePropertyLease-priorityEnglish")):n.filter.selectedProcurementMethodTypes&&n.filter.selectedProcurementMethodTypes.length>0&&n.filter.selectedProcurementMethodTypes.some(n=>n.procurementMethodType==="basicSellEnglish_dgfOtherAssets"||n.procurementMethodType==="basicSellDutch_appraisalInsider")?(n.objTypes=n.objTypes.filter(function(n){return n.type!=="otherProperty"}),n.showObjType=!0,n.showDuration=!1,n.showPerishable=!0):(n.showLegitimatePriority=!1,n.showObjType=!1,n.showDuration=!1,n.objTypeInput=null,n.filter.objType=null,n.filter.durationMonthFrom=null,n.filter.durationYearFrom=null,n.filter.durationMonthTo=null,n.filter.durationYearTo=null,n.showPerishable=!1,n.filter.isPerishable=!1);v();n.showLandSellPriority||n.showLegitimatePriority||(n.filter.currentTenants=[])}function v(){n.filterPage&&n.filterPage.pageName==="mainFilterPage"&&n.categoryId===5?n.showLandFilter=!0:n.filter.selectedProcurementMethodTypes&&n.filter.selectedProcurementMethodTypes.length>0?(n.showLandFilter=n.filter.selectedProcurementMethodTypes.some(n=>n.procurementMethodType==="landRental-english"||n.procurementMethodType==="landSell-english"||n.procurementMethodType==="landSell-priorityEnglish"),n.showLandSellPriority=n.filter.selectedProcurementMethodTypes.some(n=>n.procurementMethodType==="landSell-priorityEnglish")):(n.showLandSellPriority=!1,n.showLandFilter=!1,n.filter.addClassificationKvtspz=[],n.searchItems.kvtspzItems=[],n.cadastralNumber=null)}function y(){var t=localStorage[n.filterPage.pageName],i;if(t&&t.length>0&&n.searchFilter&&n.filterPage.pageName!=="isIframe"){if((n.filterPage.pageName==="mainFilterPage"||n.filterPage.pageName==="forestTableFilterPage")&&localStorage.lplTableFilterPage&&localStorage.lplTableFilterPage.length>0&&(localStorage.lplTableFilterPage=null),(n.filterPage.pageName==="mainFilterPage"||n.filterPage.pageName==="lplTableFilterPage")&&localStorage.forestTableFilterPage&&localStorage.forestTableFilterPage.length>0&&(localStorage.forestTableFilterPage=null),i=JSON.parse(t),!i)return;n.searchFilter=i;n.searchFilter.procurementMethodTypes&&n.searchFilter.procurementMethodTypes.length>0&&n.searchFilter.procurementMethodTypesFullData&&n.searchFilter.procurementMethodTypesFullData.length>0&&(n.filter.selectedProcurementMethodTypes=n.searchFilter.procurementMethodTypesFullData,n.procurementMethodType==="sellout"&&(n.filter.selectedProcurementMethodTypes=n.searchFilter.procurementMethodTypesFullData.filter(function(n){return n.procurementMethodType==="sellout.english2"||n.procurementMethodType==="sellout.english1"||n.procurementMethodType==="sellout.insider"})));n.searchFilter.cities&&(n.filter.cities=n.searchFilter.cities);n.searchFilter.regions&&n.regions.filter(function(t){n.searchFilter.regions.forEach(function(i){t.id===i&&n.filter.regions.push(t)})});n.searchFilter.statuses&&n.statusDictionary.filter(function(t){n.searchFilter.statuses.forEach(function(i){t.name===i&&(n.filter.statuses.push(t),n.statusInput=t)})});n.searchFilter.objType&&n.objTypes.filter(function(t){t.type==n.searchFilter.objType&&(n.filter.objType=t.type,n.objTypeInput=t)});n.isPrivateOnly=n.searchFilter.isPrivateOnly;n.isPerishable=n.searchFilter.isPerishable;n.filter.priceFrom=n.priceFrom=n.searchFilter.priceFrom;n.filter.priceTo=n.priceTo=n.searchFilter.priceTo;(n.searchFilter.unitFrom||n.searchFilter.unitTo)&&(n.filter.unitFrom=n.unitFrom=n.searchFilter.unitFrom,n.filter.unitTo=n.unitTo=n.searchFilter.unitTo,c());n.searchFilter.cpv&&n.searchFilter.cpv.length>0&&(n.filter.classificationCpvs=n.searchFilter.cpv,n.searchItems.cpvItems=n.searchFilter.cpv);n.searchFilter.dkpp&&n.searchFilter.dkpp.length>0&&(n.filter.classificationDkpps=n.searchFilter.dkpp,n.searchItems.cavItems=n.searchFilter.dkpp);n.searchFilter.addClassificationKvtspz&&n.searchFilter.addClassificationKvtspz.length>0&&(n.filter.addClassificationKvtspz=n.searchFilter.addClassificationKvtspz,n.searchItems.kvtspzItems=n.searchFilter.addClassificationKvtspz);n.searchFilter.columnFilters.forEach(function(t){t.Name==="tenderPeriodStartFrom"&&(n.filter.tenderPeriodStartFrom=t.Filter,n.tenderPeriodStartFrom=t.Filter);t.Name==="tenderPeriodEndTo"&&(n.filter.tenderPeriodEndTo=t.Filter,n.tenderPeriodEndTo=t.Filter);t.Name==="auctionPeriodStartFrom"&&(n.filter.auctionPeriodStartFrom=t.Filter);t.Name==="auctionPeriodStartTo"&&(n.filter.auctionPeriodStartTo=t.Filter)});n.searchString=n.searchFilter.searchIdentifier;n.searchFilter.codeEDRPOUs&&n.searchFilter.codeEDRPOUs.length>0&&n.searchFilter.selectedOrganization&&n.searchFilter.selectedOrganization.length>0&&(n.filter.codeEDRPOUs=n.searchFilter.codeEDRPOUs,n.filter.funder=n.searchFilter.selectedOrganization);n.searchFilter.currentTenants&&n.searchFilter.currentTenants.length>0&&(n.filter.currentTenants=n.searchFilter.currentTenants);n.searchFilter.forest&&(n.filter.forest.assortment=n.searchFilter.forest.assortment,n.filter.forest.storage=n.searchFilter.forest.storage,n.filter.forest.speciesItem=n.searchFilter.forest.speciesItem,n.filter.forest.classItem=n.searchFilter.forest.classItem,n.filter.forest.minDiameter=n.searchFilter.forest.minDiameter,n.filter.forest.maxDiameter=n.searchFilter.forest.maxDiameter,n.filter.forest.minLength=n.searchFilter.forest.minLength,n.filter.forest.maxLength=n.searchFilter.forest.maxLength,n.filter.forest.productionDate=n.searchFilter.forest.productionItemDate,n.filter.forest.quarter=n.searchFilter.forest.quarterItem,n.filter.forest.itemPrice=n.searchFilter.forest.itemPrice,n.filter.forest.lotPrice=n.searchFilter.forest.lotPrice);n.filter.durationMonthFrom=n.searchFilter.durationMonthFrom;n.filter.durationYearFrom=n.searchFilter.durationYearFrom;n.filter.durationMonthTo=n.searchFilter.durationMonthTo;n.filter.durationYearTo=n.searchFilter.durationYearTo;n.filter.searchDescription=n.searchFilter.searchDescription;e();h()}}function p(){var t=[],r=!1,i;n.procurementMethodType==="sellout"&&(t.push("sellout.insider","sellout.english1","sellout.english2"),n.searchFilter.procurementMethodTypes=n.procurementMethodTypeDictionary.filter(function(n){return t.includes(n.procurementMethodType)}));switch(n.categoryId){case 4:t.push("alienation-english","commercialSell-english","commercialSell-dutch");r=!0;break;case 5:t.push("dgfBankrupt1","landRental-english","dgfOtherAssets","appraisal.insider","propertyLease","landSell-english","property.insider","landSell-priorityEnglish");break;case 6:t.push("allLease","propLeaseByZULPLEnglish1","legitimatePropertyLease-english2","propInsiderByZULPLDutch3","legitimatePropertyLease-priorityEnglish","propertyLease","property.insider","landLease");break;case 7:t.push("subsoil-english","subsoil-dutch");break;case 8:t.push("railwayCargo-english","railwayCargo-dutch");break;case 12:t.push("timber-english");break;case 14:t.push("propLeaseByZULPLEnglish1","legitimatePropertyLease-english2","propInsiderByZULPLDutch3","legitimatePropertyLease-priorityEnglish","propLeaseByZU","propInsiderByZU")}i=u.modifyList(n.procurementMethodTypeDictionary,t,r,"procurementMethodType");i.length>0&&(n.procurementMethodTypeDictionary=i)}function w(){o.selecteFunderSettings&&(o.selecteFunderSettings.search="",o.selecteFunderSettings.selected=null,o.selecteFunderSettings.items=[])}function c(){n.isLease=!1;n.filter.selectedProcurementMethodTypes.length>0&&n.filter.selectedProcurementMethodTypes.forEach(function(t){return t.procurementMethodType==="propertyLease"||t.procurementMethodType==="landLease"||t.procurementMethodType==="property.insider"||t.procurementMethodType==="propLeaseByZU"||t.procurementMethodType==="propInsiderByZU"?n.isLease=!0:n.isLease})}function e(){n.isClearBtnActive=n.isPrivateOnly||n.isPerishable||n.unitFrom||n.unitTo||n.priceFrom||n.priceTo||n.tenderPeriodStartFrom||n.tenderPeriodEndTo||n.searchItems.cpvItems[0]||n.searchItems.cavItems[0]||n.searchItems.kvtspzItems[0]||n.filter.statuses[0]||n.filter.selectedProcurementMethodTypes[0]||n.filter.regions[0]||n.filter.cities[0]||n.tenderPeriodStartFrom||n.tenderPeriodEndTo||n.searchString||n.filter.funder[0]||n.filter.currentTenants[0]||n.isShowOnlyTendersCreatedOnOurSite||n.isLegitimatePropertyOwner||n.filter.objType||n.filter.auctionPeriodStartFrom||n.filter.auctionPeriodStartTo||n.filter.durationMonthFrom||n.filter.durationYearFrom||n.filter.durationMonthTo||n.filter.durationYearTo||n.filter.searchDescription||n.filter.cadastralNumber}var o,s;n.regexNumber=t.regex.number;n.cadastralNumberRegex=t.regex.cadastralNumber;n.dateRegex=t.regex.date;n.showCpvReference=n.categoryId!==5;n.isClearBtnActive=!1;n.isPrivateOnly=!1;n.isPerishable=!1;o={};n.vModel=o;n.isPM=localStorage.isProdMode&&localStorage.isProdMode.length>0?localStorage.isProdMode:!0;n.vModel.isOpen=!1;n.isOpenFilter=function(){n.vModel.isOpen=!n.vModel.isOpen;n.isIncludeAddClassificationForm=!0};n.classificationType="";n.isFormOpened=0;n.searchItems={cpvItems:[],cavItems:[],kvtspzItems:[]};n.isShowForestFilter=!1;n.procurementMethodTypeInput=null;n.regionInput=null;n.objTypeInput=null;n.procurementMethodTypeDictionary=i.getProcurementMethodsByFilter();n.showLegitimatePriority=!1;n.showLandSellPriority=!1;n.$watch("searchFilter.statuses",function(t){if(t&&t.length&&n.statusDictionary){var i=n.statusDictionary.find(function(n){return n.name===t[0]});i&&(n.statusInput=i,n.filter.statuses=t,e())}});n.$watch("searchFilter.auctionPeriodStartFrom",function(t){n.tenderPeriodStartFrom=t;n.changeTenderPeriodStartFrom()});n.$watch("searchFilter.auctionPeriodStartTo",function(t){n.tenderPeriodEndTo=t;n.changeTenderPeriodEndTo()});n.statusDictionaryForCurrentPage=function(){n.statusDictionary=a()};s=["active.tendering","active.auction","active.qualification","active.awarded","complete","active.rectification","active.enquiry","unsuccessful","cancelled","pending.payment"];n.filterPage.pageName==="mytrade"&&(s.push("draft"),n.isShowLegitimatePropertyOwner=t.env.isLandLordPropertyOwner);n.statusDictionaryForCurrentPage();n.filter={selectedProcurementMethodTypes:[],regions:[],cities:[],statuses:[],unitFrom:null,unitTo:null,isPrivateOnly:"",isPerishable:"",classificationCpvs:[],classificationDkpps:[],addClassificationKvtspz:[],isLease:"",priceFrom:null,priceTo:null,tenderPeriodStartFrom:"",tenderPeriodEndTo:"",auctionPeriodStartFrom:"",auctionPeriodStartTo:"",funder:[],currentTenants:[],tendersKind:"",codeEDRPOUs:[],forest:{assortment:null,storage:null,speciesItem:null,classItem:null,minDiameter:null,maxDiameter:null,minLength:null,maxLength:null,productionDate:null,quarter:null,itemPrice:null,lotPrice:null},objType:null,searchDescription:null,durationMonthFrom:null,durationYearFrom:null,durationMonthTo:null,durationYearTo:null};f.getDataFromCache("getAllRegions",r.getAllRegions).then(function(t){n.regions=t.data.regions;n.regions.unshift({title:"Вся Україна",countryId:1,id:0});y()});p();n.changeProcurementMethodType=function(){var i,t;if(n.procurementMethodTypeInput&&n.procurementMethodTypeInput.procurementMethodType!=="all"){for(i=!0,t=0;t<n.filter.selectedProcurementMethodTypes.length;t++)n.filter.selectedProcurementMethodTypes[t].procurementMethodType===n.procurementMethodTypeInput.procurementMethodType&&(i=!1);i&&(n.filter.selectedProcurementMethodTypes.push({name:n.procurementMethodTypeInput.name,procurementMethodType:n.procurementMethodTypeInput.procurementMethodType}),h());n.filter.selectedProcurementMethodTypes&&n.filter.selectedProcurementMethodTypes.length>0&&(n.procurementInputDescription="Оберіть процедуру")}else n.filter.selectedProcurementMethodTypes=[];c();e()};n.changeStatus=function(){!n.statusInput||n.statusInput&&n.statusInput.name==="allStatuses"?n.filter.statuses=[]:n.filter.statuses[0]=n.statusInput;e()};n.changeRegion=function(){var i,t;if(!n.regionInput||n.regionInput&&n.regionInput.id===0)return n.filter.regions=[];if(i=!0,n.filter.regions&&n.filter.regions.length>0)for(t=0;t<n.filter.regions.length;t++)n.filter.regions[t].id===n.regionInput.id&&(i=!1);i&&n.filter.regions.push(n.regionInput);e()};n.changeIsPrivateOnly=function(t){n.filter.isPrivateOnly=t;e()};n.changeIsPerishable=function(t){n.filter.isPerishable=t;e()};n.openClassificationModalNew=function(t){n.classificationType=t;++n.isFormOpened;n.filter.classificationCpvs=n.searchItems.cpvItems;n.filter.classificationDkpps=n.searchItems.cavItems};n.openAddClassificationModal=function(){n.filter.addClassificationKvtspz=n.searchItems.kvtspzItems;$("#addClassification").modal("toggle")};n.removeItem=function(t,i){t.splice(i,1);c();e();n.procurementMethodTypeInput=null;n.regionInput=null;h()};n.isIntervalGood=function(n,t){var i=0,r=0;return n&&t?(i=parseInt(n),r=parseInt(t),r>=i):!0};n.changePriceFrom=function(){n.filter.priceFrom=n.priceFrom;e()};n.changePriceTo=function(){n.filter.priceTo=n.priceTo;e()};n.changeTenderPeriodStartFrom=function(){n.filter.tenderPeriodStartFrom=n.tenderPeriodStartFrom;e()};n.changeTenderPeriodEndTo=function(){n.filter.tenderPeriodEndTo=n.tenderPeriodEndTo;e()};n.isDateIntervalGood=function(n,t){return n&&t?t>=n:!0};n.isAllDataGood=function(){return n.isIntervalGood(n.filter.priceFrom,n.filter.priceTo)&&n.isDateIntervalGood(n.filter.tenderPeriodStartFrom,n.filter.tenderPeriodEndTo)};n.search=function(){var t,i,r;if(n.widget){n.reloadPage(n.filter);return}n.filter.classificationCpvs.length>0&&(n.cpvCodesFromParams=[],n.filter.classificationCpvs.forEach(function(t){n.cpvCodesFromParams.push(t.code)}));n.filter.classificationDkpps.length>0&&(n.cavCodesFromParams=[],n.filter.classificationDkpps.forEach(function(t){n.cavCodesFromParams.push(t.code)}));n.searchFilter.cadastralNumber=n.filter.cadastralNumber;n.searchFilter.priceFrom=n.filter.priceFrom;n.searchFilter.priceTo=n.filter.priceTo;n.searchFilter.categoryId=n.categoryId;n.searchFilter.unitFrom=n.filter.unitFrom;n.searchFilter.unitTo=n.filter.unitTo;n.searchFilter.regions=n.filter.regions.map(function(n){return n.id});n.searchFilter.cities=n.filter.cities;n.searchFilter.objType=n.filter.objType;n.searchFilter.isPrivateOnly=n.filter.isPrivateOnly;n.searchFilter.isPerishable=n.filter.isPerishable;n.searchFilter.procurementMethodTypesFullData=n.filter.selectedProcurementMethodTypes;n.searchFilter.procurementMethodTypes=n.filter.selectedProcurementMethodTypes?n.filter.selectedProcurementMethodTypes.map(function(n){return n.procurementMethodType}):null;t=n.searchFilter.procurementMethodTypes.includes("timber-english");t&&n.searchFilter.procurementMethodTypes.push("forestSale");i=n.searchFilter.procurementMethodTypes.includes("railwayCargo-english");i&&n.searchFilter.procurementMethodTypes.push("carriageLease");r=n.searchFilter.procurementMethodTypes.includes("railwayCargo-dutch");r&&n.searchFilter.procurementMethodTypes.push("carriage.insider");n.searchFilter.cpvCodes=n.filter.classificationCpvs.map(function(n){return n.code});n.searchFilter.cavCodes=n.filter.classificationDkpps.map(function(n){return n.code});n.searchFilter.addClassificationKvtspz=n.filter.addClassificationKvtspz;n.searchFilter.kvtspzCodes=n.filter.addClassificationKvtspz.map(function(n){return n.code});n.searchFilter.currentTenants=n.filter.currentTenants?n.filter.currentTenants.map(function(n){return n.edrpouOrInn}):[];n.searchFilter.codeEDRPOUs=n.filter.funder?n.filter.funder.map(function(n){return n.edrpouOrInn}):[];n.searchFilter.selectedOrganization=n.filter.funder;n.searchFilter.columnFilters=n.searchFilter.columnFilters.map(function(t){return t.Name==="tenderPeriodStartFrom"?(t.Filter=n.filter.tenderPeriodStartFrom,t):t.Name==="tenderPeriodEndTo"?(t.Filter=n.filter.tenderPeriodEndTo,t):t.Name==="auctionPeriodStartFrom"?(t.Filter=n.filter.auctionPeriodStartFrom,t):t.Name==="auctionPeriodStartTo"?(t.Filter=n.filter.auctionPeriodStartTo,t):t});n.searchFilter.searchIdentifier=n.searchString;n.searchFilter.searchDescription=n.filter.searchDescription;n.filter.statuses&&n.filter.statuses.length>0&&n.filter.statuses[0].name?n.searchFilter.statuses=n.filter.statuses.map(function(n){return n.name}):n.filter.statuses&&n.filter.statuses.length!==0||(n.searchFilter.statuses=[]);n.searchFilter.forest&&(n.searchFilter.forest.assortment=n.filter.forest.assortment,n.searchFilter.forest.storage=n.filter.forest.storage,n.searchFilter.forest.speciesCode=n.filter.forest.speciesItem?n.filter.forest.speciesItem.code:null,n.searchFilter.forest.className=n.filter.forest.classItem?n.filter.forest.classItem.name:null,n.searchFilter.forest.minDiameter=n.filter.forest.minDiameter?n.filter.forest.minDiameter:null,n.searchFilter.forest.maxDiameter=n.filter.forest.maxDiameter?n.filter.forest.maxDiameter:null,n.searchFilter.forest.minLength=n.filter.forest.minLength?n.filter.forest.minLength:null,n.searchFilter.forest.maxLength=n.filter.forest.maxLength?n.filter.forest.maxLength:null,n.searchFilter.forest.productionDate=n.filter.forest.productionDate?n.filter.forest.productionDate.name:null,n.searchFilter.forest.quarter=n.filter.forest.quarter?n.filter.forest.quarter.name:null,n.searchFilter.forest.itemPrice=n.filter.forest.itemPrice?n.filter.forest.itemPrice:null,n.searchFilter.forest.lotPrice=n.filter.forest.lotPrice?n.filter.forest.lotPrice:null,n.searchFilter.forest.speciesItem=n.filter.forest.speciesItem?n.filter.forest.speciesItem:null,n.searchFilter.forest.classItem=n.filter.forest.classItem?n.filter.forest.classItem:null,n.searchFilter.forest.productionItemDate=n.filter.forest.productionDate?n.filter.forest.productionDate:null,n.searchFilter.forest.quarterItem=n.filter.forest.quarter?n.filter.forest.quarter:null);n.searchFilter.isShowOnlyTendersCreatedOnOurSite=n.isShowOnlyTendersCreatedOnOurSite;n.searchFilter.isLegitimatePropertyOwner=n.isLegitimatePropertyOwner;n.searchFilter.durationMonthFrom=n.filter.durationMonthFrom;n.searchFilter.durationYearFrom=n.filter.durationYearFrom;n.searchFilter.durationMonthTo=n.filter.durationMonthTo;n.searchFilter.durationYearTo=n.filter.durationYearTo;n.searchFilter.durationFrom=n.filter.durationMonthFrom*30+n.filter.durationYearFrom*365;n.searchFilter.durationTo=n.filter.durationMonthTo*30+n.filter.durationYearTo*365;localStorage[n.filterPage.pageName]=JSON.stringify(n.searchFilter);n.reloadPage()};n.clear=function(){n.searchItems.cpvItems=[];n.searchItems.cavItems=[];n.searchItems.kvtspzItems=[];n.selectedStatus=null;n.selectedRegion=null;n.isPrivateOnly=!1;n.isPerishable=!1;n.unitFrom=null;n.unitTo=null;n.priceFrom=null;n.priceTo=null;n.tenderPeriodStartFrom=null;n.tenderPeriodEndTo=null;n.searchString=null;n.regionInput=null;n.procurementMethodTypeInput=null;n.statusInput=null;n.isShowForestFilter=!1;n.isShowOnlyTendersCreatedOnOurSite=!1;n.isLegitimatePropertyOwner=!1;n.showLegitimatePriority=!1;n.showLandSellPriority=!1;n.searchFilter.columnFilters=[{Name:"Title",Filter:""},{Name:"TitleOrOrganizationName",Filter:""},{Name:"Description",Filter:""},{Name:"OrganizationName",Filter:""},{Name:"auctionPeriodStartTo",Filter:""},{Name:"auctionPeriodStartFrom",Filter:""},{Name:"tenderPeriodStartFrom",Filter:""},{Name:"tenderPeriodEndTo",Filter:""},{Name:"classificationCpv",Filter:""},{Name:"classificationCav",Filter:""},{Name:"classificationDkpp",Filter:""}];n.filter={selectedProcurementMethodTypes:[],regions:[],cities:[],statuses:[],unitFrom:"",unitTo:"",isPrivateOnly:"",isPerishable:"",classificationCpvs:[],classificationDkpps:[],addClassificationKvtspz:[],isLease:"",priceFrom:"",priceTo:"",tenderPeriodStartFrom:"",tenderPeriodEndTo:"",auctionPeriodStartFrom:"",auctionPeriodStartTo:"",funder:[],currentTenants:[],codeEDRPOUs:[],forest:{assortment:null,storage:null,speciesItem:null,classItem:null,minDiameter:null,maxDiameter:null,minLength:null,maxLength:null,productionDate:null,quarter:null,itemPrice:null,lotPrice:null},searchDescription:null};w();n.changeProcurementMethodType();e();h();localStorage[n.filterPage.pageName]=null;n.search();n.statusDictionaryForCurrentPage();n.isClearFilter=!1};n.$watch("isClearFilter",function(){n.isClearFilter&&n.clear()});n.changeUnitTo=function(){n.filter.unitTo=n.unitTo;e()};n.changeUnitFrom=function(){n.filter.unitFrom=n.unitFrom;e()};n.changeSelected=function(){e()};n.changeAuctionPeriod=function(){e()};n.changeSearchDescription=function(){e()};f.getDataFromCache("getAllSpecies",r.getAllSpecies).then(function(t){n.forestSpecies=t.data;n.forestSpecies.unshift({breed:"",latin:"",code:""})});n.forestQualityClasses=i.getForestQualityClasses();n.forestQualityClasses.unshift({value:"",name:""});n.forestYears=i.getForestYears();n.forestQuarters=i.getForestQuarters();n.changeObjType=function(){n.objTypeInput&&(n.filter.objType=n.objTypeInput.type);e()};n.isDurationIntervalGood=function(n,t,i,r){return(n>0||t>0)&&(i>0||r>0)?n*30+t*365<=i*30+r*365:!0}}]}});angular.module("app").directive("tenderSubjectInfo",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/tenderSubjectInfo.cshtml",scope:{subject:"=",clarify:"=",reload:"=",canModifyDocuments:"=",allowedExtensions:"=",getReasonTypeNameById:"="},controller:["$rootScope","$scope","lookupService","tenderHelperService",function(n,t,i,r){t.getDisplayTenderAttemptsText=function(n){if(t.subject.cbd===3)return i.getTenderAttemptDesc(parseInt(n,10));var r="";switch(n){case"1":r="Лот виставляється вперше";break;case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"10":r="Лот виставляється повторно";break;default:r=""}return r};t.$watch("subject",function(n){if(n){if(t.subject.cause=i.getCause(n.cause),t.quantityLabel="Кількість активів",t.subject.isLegitimatePropertyLease){switch(t.subject.tenderNewExt.legitimateDataExt.registryObject.objectType){case"realEstate":t.quantityLabel="Площа об'єкта, що здається в оренду";break;case"jointPropertyComplex":t.quantityLabel="Площа або кількість одиниць";break;case"vehicle":t.quantityLabel="Кількість одиниць"}t.subject.tenderNewExt.legitimateDataExt.registryObject.objectTypeDesc=i.getRegistryObjectItemDescByType(t.subject.tenderNewExt.legitimateDataExt.registryObject.objectType);t.subject.tenderNewExt.legitimateDataExt.listTypeDescription=i.getListTypeDiscription(t.subject.tenderNewExt.legitimateDataExt.listType);t.subject.tenderNewExt.legitimateDataExt.valuePeriodDescription=i.getValuePeriodDescription(t.subject.tenderNewExt.legitimateDataExt.valuePeriod)}t.subject.isLandRentalOrSellEnglish&&(t.subject.tenderNewExt.landRentalExt.leaseTypeDesc=i.getLeaseOrSellTypeDescription(t.subject.tenderNewExt.landRentalExt.saleOrLeaseType));t.tenderAttemptsDescription=t.subject.cbd===3?r.getTenderAttemptsText(t.subject.tenderAttempts):r.getTenderAttemptsDesc(t.subject.tenderAttempts);t.subject.lots[0].items.forEach(function(n){n.deliveryLocation&&n.deliveryLocation.latitude&&n.deliveryLocation.longitude&&!isNaN(n.deliveryLocation.latitude)&&!isNaN(n.deliveryLocation.longitude)&&(n.isShowMap=!0);n.itemExt&&n.itemExt.basicSellItemExt&&n.itemExt.basicSellItemExt.basicSellItemType&&(n.itemExt.basicSellItemExt.basicSellItemTypeDescription=i.getBasicSellItemTypesDescriptionByType(n.itemExt.basicSellItemExt.basicSellItemType))})}});t.hasUnsuccessfulAwards=function(n){var t=!1;return n.awards.forEach(function(n){if(n.status==="unsuccessful"){t=!0;return}}),t}}]}});angular.module("app").directive("tenderTable",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/tenderTable.cshtml",scope:{user:"@",procurementMethodType:"@",categoryId:"=",isClearFilter:"="},controller:["$scope","abp.services.etender.tender","abp.services.etender.reference","$q","ngTableParams","$rootScope","numberOfRecordsIframe","numberOfRecords","tenderHelperService","$location",function(n,t,i,r,u,f,e,o,s,h){function v(n){return n.match(/^railwayCargo-dutch/i)?"railwayCargo-dutch":n}n.dateToDay=Date.parse(new Date);n.currentPage={pageName:"mainFilterPage"};n.pager={};n.pager.searchFilter=localStorage[n.currentPage.pageName]&&localStorage[n.currentPage.pageName].length>0?JSON.parse(localStorage[n.currentPage.pageName]):{categoryId:n.categoryId,columnFilters:[{Name:"Title",Filter:""},{Name:"Description",Filter:""},{Name:"OrganizationName",Filter:""},{Name:"tenderPeriodStartFrom",Filter:""},{Name:"tenderPeriodEndTo",Filter:""},{Name:"auctionPeriodStartTo",Filter:""},{Name:"auctionPeriodStartFrom",Filter:""},{Name:"classificationCpv",Filter:""},{Name:"classificationCav",Filter:""},{Name:"classificationDkpp",Filter:""}]};n.end=[];n.edrpouFromParams="";n.cpvCodesFromParams="";n.pagerSearchFilter={};n.isPM=!0;n.isShowOnlyTendersCreatedOnOurSite=!1;n.isLegitimatePropertyOwner=!1;h.url().indexOf("isLease=true")>-1&&(n.pagerSearchFilter.isLease=!0);n.showData=function(){n.classificationItems={};var t=i.getGroupedCavs();t.success(function(t){n.classificationItems=t.cavCategories})};n.selectedIconClass="all";var l=function(n,t){for(var i,e,r=t.split(""),u=n.split(" "),f=0;f<u.length;f++)for(i=0;i<r.length;i++)e=r[i]=="."?new RegExp("%"+r[i],"gi"):new RegExp(r[i],"gi"),u[f]=u[f].replace(e,r[i]+" ");return u.join(" ")},a=function(n,t){var i,r;if(t<5)return console.log("Non valid parameter 'length' in function 'truncString'. It should be >4."),n;for(i=n.split(" "),r=0;r<i.length;r++)i[r].length>t&&(i[r]=i[r].substr(0,t-2)+"...");return i.join(" ")},c=function(n){var i,t;if(n&&n instanceof Array){for(i=[],t=0;t<n.length;t++)n[t]&&i.push(n[t]);return i}return[]};n.procurementMethodTypeDictionary=s.getProcurementMethodsByFilter();f.env.isIframe?(n.edrpouFromParams=f.siteSettings.codeEDRPOU&&f.siteSettings.codeEDRPOU.indexOf(",")>-1?c(f.siteSettings.codeEDRPOU.split(",")):f.siteSettings.codeEDRPOU?[f.siteSettings.codeEDRPOU]:null,n.cpvCodesFromParams=f.siteSettings.cpvCodes&&f.siteSettings.cpvCodes.indexOf(",")>-1?c(f.siteSettings.cpvCodes.split(",")):f.siteSettings.cpvCodes?[f.siteSettings.cpvCodes]:null,n.cavCodesFromParams=f.siteSettings.cavCodes&&f.siteSettings.cavCodes.indexOf(",")>-1?c(f.siteSettings.cavCodes.split(",")):f.siteSettings.cavCodes?[f.siteSettings.cavCodes]:null,n.procurementMethodTypesFromParams=f.siteSettings.procurementMethods&&f.siteSettings.procurementMethods.indexOf(",")>-1?c(f.siteSettings.procurementMethods.split(",")):f.siteSettings.procurementMethods?[f.siteSettings.procurementMethods]:null,n.statusesFromParams=f.siteSettings.statuses&&f.siteSettings.statuses.indexOf(",")>-1?c(f.siteSettings.statuses.split(",")):f.siteSettings.statuses?[f.siteSettings.statuses]:null,n.regionsFromParams=f.siteSettings.regions&&f.siteSettings.regions.indexOf(",")>-1?c(f.siteSettings.regions.split(",")):f.siteSettings.regions?[f.siteSettings.regions]:null,n.fundersFromParams=f.siteSettings.funders&&f.siteSettings.funders.indexOf(",")>-1?c(f.siteSettings.funders.split(",")):f.siteSettings.funders?[f.siteSettings.funders]:null,n.isPM=!0,n.pager.searchFilter.codeEDRPOUs=n.edrpouFromParams,n.pager.searchFilter.cpvCodes=n.cpvCodesFromParams,n.pager.searchFilter.cavCodes=n.cavCodesFromParams,n.pager.searchFilter.parentCodeEDRPOU=f.siteSettings.parentCodeEDRPOU,n.pager.searchFilter.procurementMethodTypes=n.procurementMethodTypesFromParams,n.pager.searchFilter.statuses=n.statusesFromParams?n.statusesFromParams:[],n.pager.searchFilter.regions=n.regionsFromParams?n.regionsFromParams:[],n.pager.searchFilter.priceFrom=f.siteSettings.priceFrom?f.siteSettings.priceFrom:null,n.pager.searchFilter.priceTo=f.siteSettings.priceTo?f.siteSettings.priceTo:null,n.pager.searchFilter.isPrivateOnly=f.siteSettings.isPrivateOnly?f.siteSettings.isPrivateOnly:null,n.pager.searchFilter.columnFilters=n.pager.searchFilter.columnFilters.map(function(n){return n.Name==="tenderPeriodStartFrom"?(n.Filter=f.siteSettings.tenderPeriodStartFrom,n):n.Name==="tenderPeriodEndTo"?(n.Filter=f.siteSettings.tenderPeriodEndTo,n):n}),n.pager.searchFilter.isProductionMode=n.isPM,n.pager.searchFilter.searchIdentifier="",f.siteSettings.procurementMethod&&(n.procurementMethodType=f.siteSettings.procurementMethod,n.selectedProcurementMethodType=n.procurementMethodTypeDictionary.filter(function(n){return n.procurementMethodType===f.siteSettings.procurementMethod})[0])):f.env.isAuthorized&&(n.isPM=localStorage.isProdMode);n.isOperator=function(){return localStorage.isOperator!==undefined&&localStorage.isOperator==="true"};n.selectedProcurementMethodType=n.procurementMethodTypeDictionary.find(t=>t.procurementMethodType===n.procurementMethodType);n.pagerSearchFilter.procurementMethodType=n.selectedProcurementMethodType?n.selectedProcurementMethodType.procurementMethodType:null;n.tenderLabelClass="label-default";n.toggleFavorite=function(n){s.toggleFavorite(n,t.createFavorite,t.deleteFavorite)};n.isIframe=f.env.isIframe;n.isIframe&&(n.currentPage.pageName="isIframe");n.tableParams=new u({page:function(){return localStorage.searchPage&&localStorage.searchPage.length>0?localStorage.searchPage:1}(),count:f.env.isIframe?e:o,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(i,r){n.pager.Page=r.page();n.pager.PageSize=r.count();n.pager.OrderColumn=r.orderBy()[0].slice(1);n.pager.OrderDirection=r.sorting()[r.orderBy()[0].slice(1)];n.pager.searchFilter.isProductionMode=n.isPM;n.pager.searchIdentifier=n.pager.searchFilter.searchIdentifier;n.pager.searchFilter.categoryId=n.categoryId;n.pager.Page=r.page();console.dir(n.pager);n.user&&(n.pager.searchFilter.UserName=n.user);n.procurementMethodType==="sellout"&&n.pager.searchFilter&&(!n.pager.searchFilter.procurementMethodTypes||n.pager.searchFilter.procurementMethodTypes.length===0)?n.pager.searchFilter.procurementMethodTypes=["sellout.english1","sellout.english2","sellout.insider"]:n.procurementMethodType==="sellout"&&n.pager.searchFilter&&n.pager.searchFilter.procurementMethodTypes&&n.pager.searchFilter.procurementMethodTypes.length!==0&&n.pager.searchFilter.procurementMethodTypes[0].procurementMethodType&&(n.pager.searchFilter.procurementMethodTypes=n.pager.searchFilter.procurementMethodTypes.map(function(n){return n.procurementMethodType}));var u=t.getTenders(n.pager);abp.ui.setBusy(".panel-default:first");u.success(function(t){var f,u;for(console.log(t),abp.ui.clearBusy(".panel-default"),r.total(t.countAllRecords),f=0;f<t.tender.length;f++)u=t.tender[f],t.tender[f].procurementMethodTypeForDetailes=v(t.tender[f].procurementMethodType),u.title=l(u.title,":;.,!"),u.title=a(u.title,20),end=u.tenderEndDate,n.end[f]=Date.parse(end),u.procurementMethodTypeName=s.getProcurementMethodTitle(u.procurementMethodType,u.tenderAttempts),u.labelClassByStatus=s.getLabelClassByStatus(u.status),s.setTenderDescriptionByStatus(u);i.resolve(t.tender)}).error(function(){abp.ui.clearBusy(".panel-default")})}});n.customTendTitle=function(n){return s.customTendTitle(n)};n.reloadPage=function(){n.tableParams.reload();n.tableParams.page(1)}}]}});angular.module("app").directive("titleDescription",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/titleDescription.cshtml",scope:{formName:"=",data:"=",name:"@",required:"=",disabled:"="},controller:["$scope",function(n){n.showTitle=1}]}});angular.module("app").directive("virtualDataRoom",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/virtualDataRoom.cshtml",scope:{tenderid:"=",canModifyDocuments:"=",documents:"=",status:"=",procurementmethodtype:"=",isEdit:"=",reload:"&"},controller:["$scope","$rootScope","abp.services.etender.document",function(n,t,i){function r(){n.vm={};n.vm.title="";n.vm.url="";n.vm.isUrlDocExist=!1;n.$watch("documents",function(t){if(t)for(var i=0;i<t.length;i++)if(t[i].documentType&&t[i].documentType.type==="virtualDataRoom"&&t[i].isExported){n.vm.isUrlDocExist=t[i].url&&t[i].url.length>1;n.vm.title=t[i].title;n.vm.url=t[i].url;n.documents.splice(i,1);break}})}r();t.buttonDisabled=!1;n.saveVdr=function(){abp.ui.setBusy(".panel-default:first");var u={url:n.vm.url,tenderId:n.tenderid,title:n.vm.title,documentType:"virtualDataRoom"};i.sendDocumentDirectly(u).success(function(){n.vdrForm.$setPristine();abp.ui.clearBusy(".panel-default");abp.notify.success("VDR збережено!");n.reload();t.buttonDisabled=!0;r()}).error(function(){abp.ui.clearBusy(".panel-default")})}}]}});angular.module("app").directive("dgfPublicAssetCertificate",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/dgfPublicAssetCertificate.cshtml",scope:{tenderid:"=",canModifyDocuments:"=",documents:"=",status:"=",procurementmethodtype:"=",isEdit:"=",reload:"&"},controller:["$scope","abp.services.etender.document",function(n,t){function r(n){if(n){var t=n.indexOf("?acc_token");if(t)return n.substring(t,0)}return n}function i(){n.vm={};n.vm.title="";n.vm.url="";n.vm.isUrlDocExist=!1;n.$watch("documents",function(t){if(t)for(var i=0;i<t.length;i++)if(t[i].documentType&&t[i].documentType.type==="x_dgfPublicAssetCertificate"&&t[i].isExported){n.vm.isUrlDocExist=t[i].url&&t[i].url.length>1;n.vm.title=t[i].title;n.vm.url=r(t[i].url);n.documents.splice(i,1);break}})}i();n.savexdgfPublicAssetCertificate=function(){abp.ui.setBusy(".panel-default:first");var r={url:n.vm.url,title:n.vm.title,tenderId:n.tenderid,documentType:"x_dgfPublicAssetCertificate"};t.sendDocumentDirectly(r).success(function(){n.dgfPublicAssetCertificateForm.$setPristine();abp.ui.clearBusy(".panel-default");abp.notify.success("Посилання на Публічний Паспорт Активу збережено!");n.reload();i()}).error(function(){abp.ui.clearBusy(".panel-default")})}}]}});angular.module("app").directive("presentationX",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/xPresentation.cshtml",scope:{tenderid:"=",canModifyDocuments:"=",documents:"=",status:"=",procurementmethodtype:"=",isEdit:"=",reload:"&"},controller:["$scope","abp.services.etender.document",function(n,t){function i(){n.vm={};n.vm.title="";n.vm.url="";n.$watch("documents",function(t){if(t)for(var i=0;i<t.length;i++)if(t[i].documentType&&t[i].documentType.type==="x_presentation"&&t[i].isExported){n.vm.title=t[i].title;n.vm.url=t[i].url;n.documents.splice(i,1);break}})}i();n.xPresentationSave=function(){abp.ui.setBusy(".panel-default:first");var r={url:n.vm.url,title:n.vm.title,tenderId:n.tenderid,documentType:"x_presentation"};t.sendDocumentDirectly(r).success(function(){n.xPresentationForm.$setPristine();abp.ui.clearBusy(".panel-default");abp.notify.success("Посилання на презентацію не збережено!");n.reload();i()}).error(function(){abp.ui.clearBusy(".panel-default")})}}]}});angular.module("app").directive("legitimateBankAccounts",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/legitimatePropertyLease/legitimateBankAccounts.cshtml",scope:{formname:"=",unitController:"="},controller:["$scope","tenderHelperService",function(n,t){n.addLegitimateBankAccount=function(n,i=null,r=null){t.addLegitimateBankAccount(n,i,r)}}]}});angular.module("app").directive("legitimateBankAccountsUnit",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/legitimatePropertyLease/legitimateBankAccountsUnit.cshtml",scope:{formname:"=",entity:"=",indexUnit:"@",isDisabled:"=",mustFilled:"=",controller:"="},controller:["$scope","$rootScope","lookupService",function(n,t,i){function r(t,i){switch(t){case"UAH":n.tabUah=i;break;case"USD":n.tabUsd=i;break;case"EUR":n.tabEur=i}}n.numberRegex=t.regex.number;n.floatNumberRegex=t.regex.floatNumber;n.tooltipDelete=t.source("Remove");n.tabUah=!1;n.tabUsd=!1;n.tabEur=!1;n.currencyTab="uah";n.isHolderPercentRequired=!1;n.redAdvanceNotify=!1;n.redLeaseNotify=!1;n.holderTypes=i.getHolderTypes();n.holderTypes.length===2&&n.holderTypes.unshift({name:"Оберіть кому оплачувати %",type:null});n.accountCurrencys=[{name:"UAH",type:"UAH"},{name:"USD",type:"USD"},{name:"EUR",type:"EUR"}];n.vm={changeRequiredTab:r,isOrganizationForm:!1,isCreateOrganization:!0};var u=n.vm;n.changeCurrencyTab=function(t){n.currencyTab=t};n.changeAccountType=function(t){if(t.accountType!==null){t.initShow=!1;t.isDisabled=t.isReadOnly;var i=n.controller.hasBankAccountType(n.controller.mainBankAccountsEntity,t.accountType);i.bankAccounts>1&&t.accountType==="lease"&&(n.controller.isHolderPercentRequired.isLeaseRequired=!0);i.bankAccounts>1&&t.accountType==="advancePayment"&&(n.controller.isHolderPercentRequired.isAdvancePaymentRequired=!0);n.isBankAccountShow=i.hasType?n.controller.isLandRentalOrSellEnglish||n.controller.isBasicSell?!0:!1:!0;t.accountType!=="advancePayment"&&t.accountType!=="lease"&&(t.holderType=null,t.percent=null);n.showAdvanceAccountMessage(t);n.controller.isAdvancedBankAccounts=!0}};n.showAdvanceAccountMessage=function(t){if(t.accountType){var i=n.controller.hasBankAccountType(n.controller.mainBankAccountsEntity,t.accountType);switch(t.accountType){case"advancePayment":n.controller.showAdvance=i.bankAccounts===3&&t.holderType&&t.percent?!1:!0;n.controller.redAdvanceNotify=i.bankAccounts>1&&t.holderType&&t.percent?!1:!0;i.bankAccounts===1&&(n.controller.showAdvance=!1,n.controller.redAdvanceNotify=!1,n.controller.isHolderPercentRequired.isAdvancePaymentRequired=!1);break;case"lease":n.controller.showLease=i.bankAccounts===3&&t.holderType&&t.percent?!1:!0;n.controller.redLeaseNotify=i.bankAccounts>1&&t.holderType&&t.percent?!1:!0;i.bankAccounts===1&&(n.controller.showLease=!1,n.controller.redLeaseNotify=!1,n.controller.isHolderPercentRequired.isLeaseRequired=!1)}}};n.$watch("entity",function(){n.entity&&(n.entity.index="IND"+n.indexUnit*1,n.changeAccountType(n.entity))});n.setHolderType=function(t){n.showAdvanceAccountMessage(t);n.controller.setHolderType(t)};n.setSharingPercent=function(t){n.showAdvanceAccountMessage(t);n.controller.setSharingPercent(t)};n.removeBankAccount=function(t,i,r){n.controller.removeBankAccount(i,r);var u=i.filter(n=>["advancePayment","lease"].includes(n.accountType));u.forEach(function(t){n.setSharingPercent(t);n.setHolderType(t);n.showAdvanceAccountMessage(t)})}}]}});angular.module("app").directive("legitimateBankAccountsUnitDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tender/legitimatePropertyLease/legitimateBankAccountsUnitDetailes.cshtml",scope:{blockTitle:"@",accountType:"@",hideUnit:"=",entity:"="},controller:["$scope","$rootScope","lookupService",function(n,t,i){n.isAdvancePayment=!1;n.$watch("entity",function(){(n.accounts=[],n.hideUnit)||n.entity.forEach(function(t){t.accountType===n.accountType&&((t.accountType==="advancePayment"||t.accountType==="lease")&&(t.accounts[0].holderType=i.getHolderTypesDescription(t.holderType),t.accounts[0].percent=t.percent),n.accounts=n.accounts.concat(t.accounts.reverse()));(t.accountType==="advancePayment"||t.accountType==="lease")&&(n.isAdvancePayment=!0)})})}]}});angular.module("filters",[]).filter("numberWithSpaces",[function(){return function(n){return isNaN(n)||!n?n:n.toLocaleString()}}]).filter("trustAsResourceUrl",["$sce",function(n){return function(t){return n.trustAsResourceUrl(t)}}]);angular.module("app").directive("funder",function(){return{restrict:"AE",templateUrl:"~/App/Main/scripts/filters/funder.cshtml",scope:{data:"=",isRequired:"=",formName:"=",vm:"=",productionMode:"=",onChooseChange:"="},controller:["$scope","abp.services.etender.reference","$timeout",function(n,t,i){function u(u){n.vm.selecteFunderSettings=u;u.resetSearchInput&&(u.resetSearchInput=!1);var f=u.search,e=angular.copy(u.items),o=-1;e=e.filter(function(n){return n.edrpouOrInn!==o});f?n.vm.lastSearch!==f&&(n.vm.lastSearch=f,i.cancel(r),r=i(function(){t.searchIdentifiersByFiltering(f,n.productionMode).success(function(t){t.forEach(function(n){n.name=n.edrpouOrInn+", "+n.organizationName});u.items=t;n.funders=t;var i={edrpouOrInn:o,name:f};u.items=[i].concat(u.items);u.selected=i})},500)):(i.cancel(r),u.items=[],u.selected=null)}n.funders=[];n.funder={};n.fundersInput=!0;n.vm.organisationList=[];n.vm||(n.vm={});n.vm.lastSearch="";n.vm.getFunders=function(t){n.getFunders(t)};n.getFunders=function(){return};n.data&&(n.funder.selected=n.data);n.$watch("funder.selected",function(){if(n.funder&&n.funder.selected&&n.funder.selected.edrpouOrInn!=="-1"&&n.funder.selected.organizationName){var t=!0;n.data&&n.data&&(n.vm.organisationList=n.data);n.vm.organisationList.forEach(function(i){i.edrpouOrInn===n.funder.selected.edrpouOrInn&&(t=!1)});t&&(n.vm.organisationList&&n.formName==="subscription"&&n.vm.organisationList.push(n.funder.selected),n.data&&n.data.push(n.funder.selected),n.onChooseChange&&n.onChooseChange())}});n.$on("clearFunder",function(t,i){i&&(n.funder.selected="undefined")});var r;n.vm.refreshResults=u}]}});angular.module("app").directive("otherCity",function(){return{restrict:"E",templateUrl:"~/App/Main/scripts/filters/otherCity.cshtml",scope:{data:"=",isRequired:"=",isDisabled:"=",formName:"=",index:"=",isAddressArea:"=",cities:"="},controller:["$scope","abp.services.etender.koatuuReference","cachingService",function(n,t,i){function r(r){if(r&&!n.isInputFocused&&r.title.length>2){var u=n.data.koatuuCode||r.title;i.getDataFromCache("getOtherCitiesByRegion",t.getOtherCitiesByRegion,n.data.region.title,u).then(function(t){t.data.length===0?(n.otherCity.selected=r.title,n.formName["othercity"+n.index].$setValidity("correctCity",!1),n.isCityCorrectSelection=!1):(n.otherCity.selected=t.data[0],n.formName["othercity"+n.index].$setValidity("correctCity",!0),n.isCityCorrectSelection=!0)})}else n.formName["othercity"+n.index].$setValidity("correctCity",!0),n.isCityCorrect=!0}n.otherCity={};n.isInputFocused=!1;n.isCityCorrect=n.isCityCorrectSelection=!n.isRequired;n.$watch("data.region",function(){n.otherCity&&n.otherCity.selected&&(n.otherCity.selected=null)});n.$watch("data.city",function(t){!n.isAddressArea&&t&&(n.otherCity.selected=null,n.data.koatuuCode=null,n.isCityCorrect=!0,n.formName["othercity"+n.index].$setValidity("correctCity",!0))});n.$watch("data.newCity",function(n){n&&!n.customTitle&&r(n)});n.$watch("otherCity.selected",function(){n.otherCity&&n.otherCity.selected&&n.otherCity.selected.title&&n.otherCity.selected.code&&n.otherCity.selected.code!=="-1"&&(n.isCityCorrect=!0,n.data&&!n.cities?(n.data.newCity=n.otherCity.selected,n.data.koatuuCode=n.data.newCity.code):n.cities&&!n.cities.some(t=>t.title===n.otherCity.selected.title&&t.code===n.otherCity.selected.code)&&n.cities.push(n.otherCity.selected));n.otherCity.selected?(n.formName["othercity"+n.index].$setValidity("correctCity",!!(n.otherCity.selected&&n.otherCity.selected.title)),n.isCityCorrectSelection=!!(n.otherCity.selected&&n.otherCity.selected.title)):(n.formName["othercity"+n.index].$setValidity("correctCity",!n.isRequired||n.isCityCorrect),n.isCityCorrectSelection=!n.isRequired||n.isCityCorrect)});n.getLocation=function(i){var r,u;return n.data.city=null,Array.isArray(n.data)?(u=n.data.map(function(n){return n.title}),r=t.getOtherCitiesByRegions(u,i)):r=t.getOtherCitiesByRegion(n.data.region.title,i),r.then(function(n){return n.data.forEach(function(n){n.title=n.title}),n.data})}}]}});angular.module("app").service("bankOperationsService",["abp.services.etender.invoice","tenderHelperService",function(n,t){return new function(){function e(n){return"Рахунок на оплату №"+n.number+" від "+n.creationTimeStr}function k(){return{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAACcCAYAAACQoXXqAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAJAqSURBVHhe7b2Hg1RVtj38/Qe/N28cUSSZcxjDOMYxi4gSBMkZSSIgIIgKiEQBiZJBQHLOOTQ5dTehc47VoXLVrbqxwvrWvgUzL+i8cURRqI3X6q6uuvfcc89ee+199tnn/0NSkpKUG1aSAJCUpNzAkgSApCTlBpYkACQlKTewJAHgskSjUfs1FoshHo/bPyclKde7JAHgsojim6ZpK38SAJJyo0gSAC5LMBi0QeAKE0hKUm4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AQ7Q9F0GRLGG9s1NHrTAwjsy0MOh1G2y0GvqiKod32ML4uimDSCR173FFk+EyEIhJEtKBZMkMgpb3JLMgUpB3yu12FWNYh2GyFDU3K3yUJAEn5zYgWi6FaNVEc0GjFY/BQV71mnO5BUml/KUkCQFJ+MyIJyTIdJ3Pwqkw6Spoy/yVp+y8nSQBIym9GJD5nzzLQb7cPMgIyd8lJSsovJP8yAIjvdCX/XA55QFd+TkpSkvL7lJ8EAP9T+a+8JiUpSfl9yk8GAGEBElmV1yuMIClJScrvU34SAIiI1fd4PEnFT0pSrgP5t4KAV5RfXpNAkJSk/H4lCQBJScoNLD8LAJKSlKT8vuXfAoCkJCUp14ckASApSbmBJQkASUnKDSxJAEhKUm5YAf5/kYYpSVPj45wAAAAASUVORK5CYII=",width:100,alignment:"right",margin:[0,40,0,0]}}var r="Гарантійний внесок за участь в аукціоні ",u="Реєстраційний внесок за участь в аукціоні ",o="Плата за участь в аукціоні ",s="Доплата за участь в аукціоні ",h="Гарантійний внесок чинного орендаря в аукціоні ",c="Рахунок на оплату № ",l="Рахунок на доплату № ",a="UA573052990000026000026207608",i="\n",v="Важливо! Внесок сплатіть з власного рахунку та у точній відповідності до суми і призначення платежу."+i+"Кошти мають бути зараховані на рахунок ТОВ “Е-Тендер” не пізніше ніж за 1 годину до закінчення періоду прийому пропозицій. Інакше ваша пропозиція не буде допущена до аукціону.",y="Зверніть увагу! Данний рахунок сформований в режимі навчання і "+i+"НЕ ПОТРЕБУЄ ОПЛАТИ!",p="Рахунок має бути сплачений до моменту підписання та публікації договору за результатами аукціону.",w=["railwayCargo-english","railwayCargo-dutch","subsoil-english","subsoil-dutch","dgfBankrupt","bankrupt.insider"],b=["landRental-english","landSell-english","landSell-priorityEnglish"],f=function(n){var tt="Код",g,nt;n.buyerCode.length==10?tt="ІПН":n.buyerCode.length==8&&(tt="ЄДРПОУ");var e=parseFloat(n.amount).toFixed(2),d=n.quantity,rt=a,f,it=c,ut=v,ft=t.getMainProcurementMethodType(n.tenderNew.procurementMethodType);switch(n.invoiceType){case 1:f=r;break;case 2:f=u;break;case 3:f=r;b.includes(ft)&&(rt="UA193052990000026008036224725");break;case 4:f=u;break;case 5:case 6:n.invoiceType===5?f=o:(f=s,it=l);ut=w.includes(ft)?"":p;break;case 7:f=h;break;default:f="";it=""}g={content:[{table:{headerRows:0,body:[[{alignment:"center",text:n.tenderNew.mode==="test"?y:ut,style:"header"}]]},margin:[0,10,0,0]},{text:it+n.number+" від "+n.creationTimeStr+" р.",alignment:"center",margin:[0,40,0,20],style:"header"},{columns:[{text:"Оператор:",width:100},{text:'Товариство з обмеженою відповідальністю  "Е-Тендер" \n IBAN '+rt+", \n в ПАТ КБ «ПРИВАТБАНК»,  МФО 305299 04119 м. Київ, вул. Дегтярівська, буд. 21 літ. «А», код ЄДРПОУ 39484263",width:"*"}]},{columns:[{text:"Учасник торгів:",width:100},{text:n.buyerName+", "+tt+": "+n.buyerCode,width:"*"}],margin:[0,10,0,0]},{table:{widths:[20,"*","auto","auto","auto"],headerRows:1,body:[[{text:"№",style:"tableHeader"},{text:"Найменування Послуг",style:"tableHeader"},{text:"Кількість",style:"tableHeader"},{text:"ПДВ    ",style:"tableHeader"},{text:n.withVat?"Сума з ПДВ":"Сума без ПДВ",style:"tableHeader"}],["1",{text:f+n.tenderNew.tenderId+i+"Учасник - "+n.buyerCode+" "+n.buyerName,style:"tableText"},""+d+"",{text:n.withVat?(e*.2/1.2).toFixed(2):"Без ПДВ",style:"tableText"},{text:e,style:"tableText"}]]},margin:[0,20,0,0]},{columns:[{text:"ПДВ:",width:105},{text:n.withVat?(e*d*.2/1.2).toFixed(2):"Без ПДВ",width:100}],margin:[300,5,0,0],alignment:"right"},{columns:[{text:n.withVat?"Усього з ПДВ:":"Усього без ПДВ:",width:105},{text:(e*d).toFixed(2)+"",width:100}],margin:[300,5,0,0],alignment:"right"},{text:"Всього найменувань "+d+", на суму "+n.amountInWords+(n.withVat?i+"У т.ч. ПДВ 20%: "+n.vatInWords:""),margin:[0,15,0,0],bold:"true"},{text:"",margin:[0,5,0,0]},{},{text:"Виписав: Діхтяр В.В.",alignment:"right",margin:[0,-75,50,0],bold:"true"},{text:"Підпис __________",alignment:"right",margin:[0,27,50,0],bold:"true"}],styles:{warning:{fontSize:8,bold:!0},alert:{fontSize:18,bold:!0},header:{fontSize:14,bold:!0},tableHeader:{fontSize:10,bold:!0},tableText:{fontSize:10}}};nt=g.content[0];nt.table.body[0][0].text===""&&(nt.table=null,nt.text="");g.content[9]=k();pdfMake.createPdf(g).download(n.fileName)};this.generateInvoiceAddBidPromise=function(t){return n.createInvoiceAddBid(t)};this.generateInvoiceAndCreatePdf=function(t){n.createInvoice(t).success(function(n){return n.messageName=e(n),abp.notify.success(n.messageName+" успішно створено"),t.andCreate===!0&&(n.fileName=getInvoiceFileName(n),n.quantity=1,f(n)),n})};this.invoiceToPdf=function(n){n.quantity=1;f(n)};this.getInvoiceFileName=function(n){return"Рахунок_на_оплату_№"+n.number+"_від_"+n.creationTimeStr+"р.pdf"};this.getInvoiceMessageName=function(n){return e(n)}}}]);angular.module("app").service("cachingService",["$timeout",function(n){return new function(){function t(n){return n?typeof n=="object"?JSON.stringify(n):""+n:"-"}function i(n,t,i){var r=new Date,u={value:t,expiry:r.setDate(r.getDate()+i)};localStorage.setItem(n,JSON.stringify(u))}function r(n){if(localStorage[n]&&localStorage[n].length>0){var t=JSON.parse(localStorage[n]),i=new Date;return i.getTime()>t.expiry?(localStorage.removeItem(n),null):t.value}return null}this.getDataFromCache=function(u,f,e,o){var s=""+u+t(e)+t(o),h=r(s),c;return h?n(function(){return{data:h}}):(c=o?f(e,o):e?f(e):f(),c.then(function(n){return i(s,n.data,7),n}))}}}]);angular.module("app").service("datesHelper",function(){return new function(){this.jsonStringToDate=function(n){function i(n){return parseInt(n,10)}var t;if(t=n.match(/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=i(t[9]+t[10]),f=i(t[9]+t[11]));e.call(r,i(t[1]),i(t[2])-1,i(t[3]));var s=i(t[4]||0)-u,h=i(t[5]||0)-f,c=i(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}return n};this.howManyDaysLeftBetweenDates=function(n,t,i){var u,f,e;if(i=typeof i!="undefined"?i:!0,!n||!t)return 0;n.getDay==undefined&&(n=this.jsonStringToDate(n));t.getDay==undefined&&(t=this.jsonStringToDate(t));var r=(t-n)/864e5,o=r;if(i&&r>=1)for(u=1;u<=o;u++)f=new Date(t),f.setDate(t.getDate()-u),e=f.getDay()%6==0,e&&r--;return r};this.disableWeekEndsAndDayOffs=function(n,t){return t==="day"&&(n.getDay()===0||n.getDay()===6)};this.howManyDaysLeftFromNow=function(n){if(!n)return 1;n=this.jsonStringToDate(n);var t=new Date;return(t-n)/864e5};this.isWeekend=function(n){return n?(n.getDay==undefined&&(n=this.jsonStringToDate(n)),n.getDay===undefined?new Date(n).getDay()%6==0:n.getDay()%6==0):!1};this.disableDayOffs=function(){return new Date};this.daysInMonth=function(n,t){return new Date(t,n,0).getDate()}}});angular.module("app").service("datesHelperService",function(){return new function(){this.jsonStringToDate=function(n){function i(n){return parseInt(n,10)}var t;if(t=n.match(/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=i(t[9]+t[10]),f=i(t[9]+t[11]));e.call(r,i(t[1]),i(t[2])-1,i(t[3]));var s=i(t[4]||0)-u,h=i(t[5]||0)-f,c=i(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}return n};this.howManyDaysLeftBetweenDates=function(n,t,i){var u,f,e;if(i=typeof i!="undefined"?i:!0,!n||!t)return 0;n.getDay==undefined&&(n=this.jsonStringToDate(n));t.getDay==undefined&&(t=this.jsonStringToDate(t));var r=(t-n)/864e5,o=r;if(i&&r>=1)for(u=1;u<=o;u++)f=new Date(t),f.setDate(t.getDate()-u),e=f.getDay()%6==0,e&&r--;return r};this.disableWeekEndsAndDayOffs=function(n,t){return t==="day"&&(n.getDay()===0||n.getDay()===6)};this.howManyDaysLeftFromNow=function(n){if(!n)return 1;n=this.jsonStringToDate(n);var t=new Date;return(t-n)/864e5};this.isWeekend=function(n){var t;if(n){if(n.getDay==undefined&&(n=this.jsonStringToDate(n)),n.getDay===undefined)t=new Date(n).getDay()%6==0;else{var i=n.getFullYear(),r=n.getMonth(),u=n.getDate();t=i==2018&&r==4&&u==5?!1:n.getDay()%6==0}return t}return!1};this.disableDayOffs=function(){return new Date};this.daysInMonth=function(n,t){return new Date(t,n,0).getDate()};this.minDateProposals=function(n,t,i,r){if(!n&&!t&&!i&&!r)return 1;var u=t.setDate(t.getDate()+i),f=t.setDate(t.getDate()+i-r);return u=new Date(u),f=new Date(f),f>n?u:(n=n.setDate(n.getDate()+r),new Date(n))};this.checkDate=function(n,t){return t=t?typeof t=="object"?t.toISOString():new Date(t).toISOString():(new Date).toISOString(),n=n?typeof n=="object"?n.toISOString():new Date(n).toISOString():(new Date).toISOString(),n>=t}}});angular.module("app").service("documentService",["$rootScope","abp.services.etender.document","$timeout","$sce","$http","$window",function(n,t,i,r,u,f){return new function(){function o(n,t,i){var r=new Date,u={value:t,expiry:r.setDate(r.getDate()+i)};localStorage.setItem(n,JSON.stringify(u))}function s(n){if(localStorage[n]&&localStorage[n].length>0){var t=JSON.parse(localStorage[n]),i=new Date;return i.getTime()>t.expiry?(localStorage.removeItem(n),null):t.value}return null}function e(n,t){n.documentTypes=t;t&&t.length>0&&(n.firstDocumentType=t[0])}function h(n){return n.substr(n.length-4)}function n(n){var t=h(n.title.trim()).toLowerCase();return t.indexOf("png")!==-1||t.indexOf("jpg")!==-1||t.indexOf("jpeg")!==-1?"img":t.indexOf("pdf")!==-1||n.format&&n.format.indexOf("pdf")!==-1?"pdf":t.indexOf("txt")!==-1?"txt":t.indexOf("xlsx")!==-1||t.indexOf("docx")!==-1||t.indexOf("doc")!==-1||t.indexOf("xls")!==-1||t.indexOf("ppt")!==-1||n.format&&(n.format.indexOf("officedocument")!==-1||n.format.indexOf("msword")!==-1)?"office":n.title.endsWith(".KVT.p7s")||n.title.endsWith(".XML.p7s")?"dfs":!1}this.sortListOfDocs=function(n){var t,i,u,r;if(!n)return[];for(t=[],i=0,u=n.length;i<u;i++)n[i].id in t||(t[n[i].id]=[]),n[i].isExportError?(n[i].id+"error"in t||(t[n[i].id+"error"]=[]),t[n[i].id+"error"].push(n[i])):t[n[i].id].push(n[i]);n=[];for(r in t)t[r].length>1&&(t[r].sort(function(n,t){return n.dateModified&&!t.dateModified?(n.isDeleted=!0,n.indent=!0,1):!n.dateModified&&t.dateModified?(t.isDeleted=!0,t.indent=!0,-1):n.dateModified&&t.dateModified?n.dateModified>t.dateModified?(t.isDeleted=!0,t.indent=!0,-1):(n.isDeleted=!0,n.indent=!0,1):0}),t[r][0].indent=!1),n=n.concat(t[r]);return n};this.validateDocName=function(n){return n.match(/(\\|\/|\:|\*|\?|\"|\<|\>|\|)/)!=null?(abp.notify.error("Некоректа назва документа. В назві файла не повинно бути символів  / : * ? <>|!"),0):1};this.checkIfDocExist=function(n,t,i=true,r=true){return t?t.some(t=>(t.isExported||t.datePublished||i===!1)&&(!t.isDeleted||r===!1)&&t.documentType&&t.documentType.type===n):!1};this.getDocumentTypes=function(n,r,u,f,h,c){var a=""+r+u+(f?f:"-")+(h?h:"-")+(c?c:"-"),l=s(a);return l?i(function(){return e(n,l),{data:l}}):t.getNewDocumentTypes({exportDocumentType:r,procedureType:u,entity:h,status:f,concretDocumentType:c}).then(function(t){return e(n,t.data),o(a,t.data,7),t})};this.notifyAboutExport=function(){abp.notify.warn("Час синхронізації файлів на ЦБД може зайняти до 20 хвилин. У випадку затримки синхронізації, обов’язково зверніться на службу технічної підтримки")};this.notifyAboutExportAfterPublish=function(){abp.notify.warn("Документи будуть завантажені після публікації аукціону")};this.previewDoc=function(t,r){function h(n){f.open(n.url,"_self")}function c(n,t){t.docPrevUrl={prevUrl:"https://view.officeapps.live.com/op/embed.aspx?src="+s(n.url),docUrl:n.url,type:"office",isOpen:!0};e(t.docPrevUrl)}function l(n,t){if(t.cbd===2){abp.ui.clearBusy();abp.notify.warn("Не вдалося відкрити попередній перегляд документу! Спробуйте його завантажити для перегляду");return}u.get(n.url).then(function(i){console.log(i);var r=i.data.replace(/(\r\n|\n|\r)/gm,"<br>");t.docPrevUrl={docUrl:n.url,type:"txt",data:r,isOpen:!0};e(t.docPrevUrl)},function(){abp.ui.clearBusy()})}function o(n,t){t.docPrevUrl={prevUrl:"https://docs.google.com/viewer?url="+s(n.url)+"&embedded=true",docUrl:n.url,type:"pdf",isOpen:!0};a(n,t);e(t.docPrevUrl)}function a(n,t){i(function(){var r=$("#iframePdf").contents().find("body").html();if(r==="")i(function(){var i=$("#iframePdf").contents().find("body").html();if(i==="")v(n,t);else{abp.ui.clearBusy();abp.ui.clearBusy(".modalDocPreview");return}},5e3);else{abp.ui.clearBusy();abp.ui.clearBusy(".modalDocPreview");return}},3e3)}function v(n,t){t.docPrevUrl.isOpen=!1;i(function(){var i=$("#modalDocPreview").data("bs.modal").isShown;i&&(t.docPrevUrl.isOpen=!0,o(n,t))},2e3)}function y(n){r.docPrevUrl={docUrl:n.url,type:"img",isOpen:!0};e(r.docPrevUrl)}function e(){i(function(){abp.ui.clearBusy();$("#modalDocPreview").modal("show")},2e3)}function s(n){return encodeURIComponent(n)}if(!t.url){abp.notify.warn("Неможливо відкрити приватний документ для перегляду");return}if(r.showPrevBlock=!0,r.bodyHeight=$(window).height(),n(t)==="office"){abp.ui.setBusy();c(t,r);return}if(n(t)==="pdf"){abp.ui.setBusy();o(t,r);return}if(n(t)==="img"){abp.ui.setBusy();y(t,r);return}if(n(t)==="txt"){abp.ui.setBusy();l(t,r);return}abp.notify.warn("Попередній перегляд даного формату недоступний");h(t)};this.trustSrcForDocLoad=function(n){return r.trustAsResourceUrl(n)};this.getUrlForIframeOfficeaApps=function(n){var t=abp.setting.values.CurrentSiteUrl;return r.trustAsResourceUrl("https://view.officeapps.live.com/op/embed.aspx?src="+t+n)}}}]),function(){"use strict";function n(n,t,i){var e=this,h=[{title:"cт. 35, п. 1",value:"artContestIP"},{title:"cт. 35, п. 2",value:"noCompetition"},{title:"cт. 35, п. 3",value:"quick"},{title:"cт. 35, п. 4",value:"twiceUnsuccessful"},{title:"cт. 35, п. 5",value:"additionalPurchase"},{title:"cт. 35, п. 6",value:"additionalConstruction"},{title:"cт. 35, п. 7",value:"stateLegalServices"}],pt=["Не відповідає кваліфікаційним критеріям","Наявні підстави, зазначені у статті 17","Не відповідає вимогам торговельної документації","Ненадання або несвоєчасне надання учасником одиниці товару на перевірку відповідності зразку-еталону","Невідповідність товарів, робіт чи послуг учасника технічним, якісним та кількісним характеристикам предмета закупівлі","Відсутність підтвердження подання забезпечення цінової пропозиції","Відмова або неучасть учасника відбору в переговорах, призначених замовником","Відмова учасника відбору від участі в переговорах з ціною/приведеною ціною, поданою ним за результатами проведеного аукціону","Неусунення учасником недоліків у поданих ним документах протягом наступних 24 годин з моменту ознайомлення учасника з такими недоліками під час проведення переговорів","Учасник протягом одного року до дати проведення електронного аукціону вчинив порушення в одного й того самого замовника"],wt=["Переможець торгів документально не підтвердив свою відповідність вимогам замовника","Переможець торгів не підписав та не опублікував протокол електронних торгів","Переможець торгів відмовився від укладення договору та/або здійснення його оплати у визначені Регламентом строки"],l,a,v,y,p,w,b,k,d,g,nt,tt,vt,it,rt,r,ut,ft,et,ot,st,f,ht,ct,lt,s,at,yt;this.getDisqualifyDefenseCauses=function(){return pt};this.getDisqualifyCauses=function(){return wt};this.getTerminationReasons=function(n,r){n&&r&&i.getDataFromCache("getTerminationReasons",t.getTerminationReasons,r).then(function(t){n.items=t.data})};this.getCancellationReasons=function(n,r,u=null){n&&r&&i.getDataFromCache("getCancellationReasons",t.getCancellationReasons,r).then(function(t){n.items=t.data;typeof u=="function"&&u()})};this.getCause=function(n){for(var t=0;t<h.length;t+=1)if(h[t].value===n)return{title:h[t].title,value:n};return null};this.getTenderProcedureType=function(t){switch(t){case"belowThreshold":return n.source("BelowThreshold");case"aboveThresholdUA":return n.source("OpenMarket");case"aboveThresholdEU":return n.source("OpenMarketEU");case"reporting":return n.source("Reporting");case"negotiation":return n.source("Negotiation");case"negotiation.quick":return n.source("NegotiationQuick");case"aboveThresholdUA.defense":return n.source("Defense");case"competitiveDialogueUA":return n.source("Dialogue");case"competitiveDialogueEU":return n.source("DialogueEU");case null:return n.source("WithoutProcurementMethodType");default:return null}};this.getBidStatusDesc=function(n,t,i){if(t===!0)return"Пропозиція відхилена";switch(n){case"draft":return"Очікує підтвердження";case"pending":return"Перевірка заяви на участь";case"invalid":return"Пропозиція не дійсна";case"invalidDraft":return"Пропозиція не дійсна, очікує підтвердження";case"deleted":return"Пропозиція відкликана учасником";case"active":return"Пропозиція підтверджена оператором";case"unsuccessfull":return"Пропозиція не успішна";case"inactive":return i?"Деактивовано підтверджену пропозицію":"Заява деактивована";case"inactiveDraft":return i?"Деактивовано чернетку пропозиції":"Заява деактивована";default:return""}};var bt=[{name:"Продаж або передача в оренду",type:1},{name:"Покупка або оренда майна",type:2}],c=[{name:"Юридична особа",type:11},{name:"Фізична особа-підприємець",type:12},{name:"Самозайнята особа",type:14},{name:"Фізична особа",type:13},{name:"Нерезидент (покупець)",type:15}],u=[{name:"Юридична особа",type:21,directionType:2,opfType:11},{name:"Фізична особа-підприємець",type:22,directionType:2,opfType:12},{name:"Фізична особа",type:23,directionType:2,opfType:13},{name:abp.localization.localize("StateCustomer","EtenderAuction"),type:24,directionType:1,opfType:null},{name:"Орган приватизації",type:25,directionType:1,opfType:null},{name:"Комерційний організатор",type:26,directionType:1,opfType:12},{name:abp.localization.localize("LandLeaseHolder","EtenderAuction"),type:27,directionType:1,opfType:12},{name:abp.localization.localize("CarriageOrganizer","EtenderAuction"),type:28,directionType:1,opfType:null},{name:"Замовник аукціонів з продажу майна банкрутів",type:29,directionType:1,opfType:12},{name:"Замовник аукціонів з продажу майна банкрутів",type:29,directionType:1,opfType:14},{name:abp.localization.localize("ForestSeller","EtenderAuction"),type:31,directionType:1,opfType:null},{name:abp.localization.localize("LandLord","EtenderAuction"),type:32,directionType:1,opfType:null},{name:abp.localization.localize("LandLordByReglament","EtenderAuction"),type:33,directionType:1,opfType:null},{name:abp.localization.localize("LandLordPropertyOwner","EtenderAuction"),type:34,directionType:1,opfType:null},{name:abp.localization.localize("LandLordGoverner","EtenderAuction"),type:35,directionType:1,opfType:null},{name:abp.localization.localize("LandLordHeritageController","EtenderAuction"),type:36,directionType:1,opfType:null},{name:abp.localization.localize("NonResident","EtenderAuction"),type:37,directionType:2,opfType:15}],o=[{typeName:abp.localization.localize("StateCustomer","EtenderAuction"),value:5,fiz:0},{typeName:abp.localization.localize("IndividualPerson","EtenderAuction"),value:1,fiz:1},{typeName:abp.localization.localize("LegalEntity","EtenderAuction"),value:2,fiz:0},{typeName:abp.localization.localize("NonResident","EtenderAuction"),value:3},{typeName:abp.localization.localize("IndividualPersonFOP","EtenderAuction"),value:6,fiz:1},{typeName:abp.localization.localize("AssetCustodian","EtenderAuction"),value:7,fiz:0},{typeName:abp.localization.localize("LandLeaseHolder","EtenderAuction"),value:8,fiz:0},{typeName:abp.localization.localize("LandLeaseHolderFOP","EtenderAuction"),value:10,fiz:1},{typeName:abp.localization.localize("PrivatePropertyOrganizer","EtenderAuction"),value:9,fiz:0},{typeName:abp.localization.localize("PrivatePropertyOrganizerFOP","EtenderAuction"),value:11,fiz:1},{typeName:abp.localization.localize("CarriageOrganizer","EtenderAuction"),value:12,fiz:0},{typeName:abp.localization.localize("BankruptCustomer","EtenderAuction"),value:13,fiz:0},{typeName:abp.localization.localize("BankruptCustomerFOP","EtenderAuction"),value:14,fiz:1},{typeName:abp.localization.localize("BankruptCustomerSO","EtenderAuction"),value:15,fiz:1},{typeName:abp.localization.localize("ForestSeller","EtenderAuction"),value:17,fiz:0},{typeName:abp.localization.localize("LandLord","EtenderAuction"),value:18,fiz:0},{typeName:abp.localization.localize("LandLordByReglament","EtenderAuction"),value:19,fiz:0},{typeName:abp.localization.localize("LandLordPropertyOwner","EtenderAuction"),value:20,fiz:0},{typeName:abp.localization.localize("LandLordGoverner","EtenderAuction"),value:21,fiz:0},{typeName:abp.localization.localize("LandLordHeritageController","EtenderAuction"),value:22,fiz:0},{typeName:abp.localization.localize("LandLeaseHolderFiz","EtenderAuction"),value:23,fiz:1},{typeName:abp.localization.localize("PrivatePropertyOrganizerFiz","EtenderAuction"),value:24,fiz:1}],kt=[{personVal:5,roleType:24,opfType:11},{personVal:1,roleType:23,opfType:13},{personVal:2,roleType:21,opfType:11},{personVal:3,roleType:37,opfType:15},{personVal:6,roleType:22,opfType:12},{personVal:7,roleType:25,opfType:11},{personVal:8,roleType:27,opfType:11},{personVal:10,roleType:27,opfType:12},{personVal:9,roleType:26,opfType:11},{personVal:11,roleType:26,opfType:12},{personVal:12,roleType:28,opfType:11},{personVal:13,roleType:29,opfType:11},{personVal:14,roleType:29,opfType:12},{personVal:15,roleType:29,opfType:14},{personVal:17,roleType:31,opfType:11},{personVal:18,roleType:32,opfType:11},{personVal:19,roleType:33,opfType:11},{personVal:20,roleType:34,opfType:11},{personVal:21,roleType:35,opfType:11},{personVal:22,roleType:36,opfType:11},{personVal:23,roleType:27,opfType:13},{personVal:24,roleType:26,opfType:13}];this.getPersons=function(n){return o.filter(t=>n?t.fiz===1:t.fiz===0)};this.getPersonsByValue=function(n){return o.filter(t=>t.value===n)};this.getDirectionTypes=function(){return bt};this.getOpfTypes=function(n){return n===2?c.filter(n=>n.type!==14):n===1?c.filter(n=>n.type!==15):c};this.getRoleTypes=function(n,t){return n===1&&(t===12||t===14)?u.filter(i=>i.directionType===n&&i.opfType===t):n===1&&t===13?u.filter(t=>t.directionType===n&&(t.type===27||t.type===26)):n===1&&t===15?u.filter(t=>t.directionType===n&&t.type===37):u.filter(t=>t.directionType===n&&t.opfType!==14)};this.getRoleType=function(n,t){return u.filter(i=>i.directionType===n&&i.opfType===t)[0]};this.getOrganizationType=function(n,t){var i=kt.filter(i=>i.roleType===n&&i.opfType===t)[0];return o.filter(n=>n.value===i.personVal)[0]};this.getOrganizationType2=function(n){return o.filter(t=>t.value===n)[0]};this.getAwardStatusDescByStatus=function(n){switch(n){case"active":case"pending.payment":return"Переможець";case"pending":return"Очікується протокол";case"unsuccessful":return"Дискваліфіковано";case"pending.waiting":return"Очікується рішення";case"pending.verification":return"Очікується протокол";case"pending.admission":return"Очікується рішення про викуп";case"cancelled":return"Відмова від очікування";default:return n}};this.getAwardStatusDescByStatusCbd3=function(t,i){switch(t){case"active":return i.match(n.fastTypesRegex.legitimatePropertyLease)||i.match(n.fastTypesRegex.landSell)||i.match(n.fastTypesRegex.basicSell)||i.match(n.fastTypesRegex.alienation)||i.match(n.fastTypesRegex.commercialSellEnglish)?"Переможець. Очікується договір":"Переможець. Договір підтверджено";case"pending":return"Очікується протокол";case"unsuccessful":return"Дискваліфіковано";case"pending.waiting":return"Очікується рішення";case"cancelled":return"Учасник не став переможцем";default:return t}};this.getContractingStatusDescByStatus=function(n){switch(n){case"active.confirmation":case"active.payment":return"Очікується оплата";case"active.approval":return"Договір оплачено. Очікується наказ";case"active":return"Період виконання умов продажу (період оскарження)";case"pending.terminated":case"terminated":return"Приватизація об’єкта завершена";case"pending.unsuccessful":case"unsuccessful":return"Приватизація об’єкта неуспішна";default:return n}};this.getContractStatusName=function(t,i,r){switch(t){case"pending":return r.match(n.fastTypesRegex.subsoil)||r.match(n.fastTypesRegex.legitimatePropertyLease)||r.match(n.fastTypesRegex.landRental)||r.match(n.fastTypesRegex.landSell)?"Очікується договір":r.match(n.fastTypesRegex.timberEnglish)||r.match(n.fastTypesRegex.railwayCargo)?"Очікується рішення":i+" поки що не опубліковано";case"pending.terminated":return i+" опубліковано";case"pending.unsuccessful":return"Цей "+i.toLowerCase()+" було скасовано до підписання";case"active":return r.match(n.fastTypesRegex.subsoil)?"Умови договору виконано":r.match(n.fastTypesRegex.timberEnglish)||r.match(n.fastTypesRegex.railwayCargo)?"Договір підписано":r.match(n.fastTypesRegex.legitimatePropertyLease)?"Переможець. Договір підписано":r.match(n.fastTypesRegex.landRental)||r.match(n.fastTypesRegex.landSell)?"Оплату за договором здійснено":r.match(n.fastTypesRegex.basicSell)||r.match(n.fastTypesRegex.alienation)||r.match(n.fastTypesRegex.commercialSellEnglish)?"Договір підтверджено":i+" опубліковано";case"cancelled":return i+" скасовано";case"signed":return r.match(n.fastTypesRegex.landRental)||r.match(n.fastTypesRegex.landSell)?"Договір підписано":"Договір підписано/завантажено";case"paid":return"Кошти до Бюджету сплачено";case"unsuccessful":return"Учасника дискваліфіковано";default:return t}};l=[{name:"Нерухоме майно",type:"realEstate"},{name:"ЄМК",type:"jointPropertyComplex"},{name:"Транспортний засіб",type:"vehicle"},{name:"Інше окреме індивідуально визначене майно",type:"otherProperty"},{name:"Земельні ділянки",type:"land"}];this.getobjectTypes=function(){return l};a=[{name:"Надземний",type:"aboveGround"},{name:"Цокольний",type:"pedimental"},{name:"Підвальний",type:"basement"},{name:"Технічний",type:"technical"},{name:"Мансардний",type:"attic"}];this.getFloorTypes=function(){return a};v=[{name:"Перший ступінь",type:"first"},{name:"Другий ступінь",type:"second"},{name:"Понад 50кВт",type:"over50"}];this.getPowerSupplyClasses=function(){return v};y=[{name:"Бензин",type:"gasoline"},{name:"Дизель",type:"diesel"},{name:"Газ",type:"naturalGas"},{name:"Зріджений нафтовий газ",type:"liquefiedPetroleumGas"},{name:"Електричний",type:"electric"},{name:"Гібридний",type:"hybrid"},{name:"Інше",type:"other"}];this.getFuelTypes=function(){return y};p=[{name:"Механічна",type:"manual"},{name:"Автоматична",type:"automatic"},{name:"Інше",type:"other"}];this.getTransmissionTypes=function(){return p};w=[{name:"Державна",type:"state"},{name:"Комунальна",type:"municipal"},{name:"Сумісна",type:"compatible"}];this.getOwnershipTypes=function(){return w};this.getOwnershipTypeDiscription=function(n){return r(w,n)};b=[{name:"Державна",type:"state"},{name:"Приватна",type:"private"},{name:"Комунальна",type:"municipal"},{name:"Сумісна",type:"compatible"},{name:"Невідомо",type:"unknown"}];this.getLandPropsOwnershipTypes=function(){return b};this.getLandPropsOwnershipTypesDescription=function(n){return r(b,n)};k=[{name:"Зареєстровано в Державному реєстрі речових прав на нерухоме майно",type:"properlyRegistered"},{name:"Зареєстровано до 1 січня 2013 р. відповідно до законодавства, що діяло на момент виникнення речового права на майно",type:"oldRegistration"},{name:"Не зареєстровано",type:"notRegistered"},{name:"Реєстрація не вимагається",type:"registrationIsNotRequired"}];this.getRegistrationStates=function(){return k};d=[{name:"Наявна",type:"present"},{name:"Відсутня",type:"absent"},{name:"Не вимагається",type:"notRequired"}];this.getVerification3=function(){return d};g=[{name:"Тільки зазначене",type:"onlyDescribed"},{name:"Окрім зазначеного",type:"exceptDescribed"},{name:"Без обмежень",type:"noRestrictions"}];this.getIntendedUseRestrictionMethods=function(){return g};nt=[{name:"Очікує включення в перелік",type:"waiting"},{name:"Включено в перелік",type:"approved"},{name:"Неактивний",type:"inactive"},{name:"Опубліковано оголошення",type:"active"},{name:"Визначення орендаря",type:"qualification"},{name:"Орендовано",type:"sold"}];this.getStatusInList=function(){return nt};tt=[{name:"Перелік першого типу",type:"First"},{name:"Перелік другого типу",type:"Second"},{name:"Не визначено",type:"Undefined"}];this.getListType=function(){return tt};vt=[{name:"Запит для отримання відповіді",type:"requestAnswer"},{name:"Повідомлення про намір",type:"intentionNotification"},{name:"Публікація рішення",type:"decisionPublication"},{name:"Зміна рішення",type:"decisionChange"},{name:"Клопотання",type:"petition"},{name:"Інформаційне повідомлення про передачу об’єкта оренди без проведення аукціону",type:"noAuctionNotification"}];this.getActionType=function(){return vt};it=[{name:"Балансоутримувач",type:"propertyOwner"},{name:"Орендодавець",type:"sellingEntity"},{name:"Уповноважений орган управління",type:"governer"},{name:"Орган охорони культурної спадщини",type:"heritageController"}];this.getActingEntityRole=function(){return it};rt=[{type:"newLease",name:"Заява про включення до переліку"},{type:"lease",name:"Заява на оренду об'єкта включеного в перелік"},{type:"agreementExtension",name:"Заява про продовження договору оренди"}];this.getLeaseRequestTypes=function(){return rt};r=function(n,t){var i=n.filter(n=>n.type===t);return i.length===1?i[0].name:t};this.getRegistryObjectItemDescByType=function(n){return r(l,n)};this.getRegistrationStateDiscription=function(n){return r(k,n)};this.getVerificationPresenceDiscription=function(n){return r(d,n)};this.getIntendedUseRestrictionMethodDiscription=function(n){return r(g,n)};this.getFuelTypeDiscription=function(n){return r(y,n)};this.getTransmissionDiscription=function(n){return r(p,n)};this.getListTypeDiscription=function(n){return r(tt,n)};this.getStatusInListDiscription=function(n){return r(nt,n)};this.getLocationInBuildingDiscription=function(n){return r(a,n)};this.getPowerSupplyClassDiscription=function(n){return r(v,n)};this.getActingEntityRoleDiscription=function(n){return r(it,n)};this.getLeaseRequestTypeDescription=function(n){return/agreem?ntExtension/.test(n)&&(n="agreementExtension"),r(rt,n)};this.getRegistryStatusDescription=function(n){switch(n){case"draft":return"Чернетка";case"active":return"Опубліковано";default:return n}};this.getLeaseActionTypeDiscription=function(n){switch(n){case"requestAnswer":return"Запит для отримання відповіді";case"intentionNotification":return"Повідомлення про намір";case"decisionPublication":return"Публікація рішення";case"decisionChange":return"Зміна рішення";case"petition":return"Клопотання";case"noAuctionNotification":return"Інформаційне повідомлення про передачу об’єкта оренди без проведення аукціону";default:return n}};this.getSubsoilCancelationReasonTitle=function(n){switch(n){case"1":return"Наявність рішення суду, яке набрало законної сили";case"2":return"Визнання в установленому законодавством порядку протиправними дій та/або скасування рішень стосовно пропозицій щодо визначення переліку ділянок надр, дозволи на користування якими виставляються на аукціон";default:return n}};this.getRegContractStatus=function(n){switch(n){case"pending":return"Очікує публікації";case"active":return"Діючий";case"inactive":return"Недіючий";case"cancelled":return"Розірвано";default:return n}};ut=[{name:"Очікує публікації",type:"pending"},{name:"Діючий",type:"active"},{name:"Недіючий",type:"inactive"},{name:"Розірвано",type:"cancelled"}];this.getContractStatus=function(){return ut};this.getContractStatusDescription=function(n){return r(ut,n)};ft=[{name:"Продовження договору",type:"extension"},{name:"Передача в оренду з переліку другого типу",type:"listTypeSecond"},{name:"Передача в оренду через аукціон",type:"auction"},{name:"Публікація договорів оренди укладених до введення в дію переліків в ЕТС",type:"signedBeforeETS"}];this.getContractMethod=function(){return ft};this.getContractMethodDescription=function(n){return r(ft,n)};et=[{name:"Стартова вартість за місяць",type:"month"},{name:"Стартова вартість за день",type:"day"},{name:"Стартова вартість за годину",type:"hour"}];this.getValuePeriod=function(){return et};this.getValuePeriodDescription=function(n){return r(et,n)};ot=[{name:"Арешт нерухомого майна",type:"arrest"},{name:"Податкова застава",type:"collateral"},{name:"Заборона відчуження",type:"restraintsOnAlienation"},{name:"Інші обтяження",type:"otherEncumbrances"},{name:"Обтяження відсутні",type:"noEncumbrances"}];this.getEncumbrancesTypes=function(){return ot};this.getEncumbrancesDescriptionByType=function(n){return r(ot,n)};st=[{name:"Монолітно-каркасна",type:"monolithicFrame"},{name:"Панель",type:"panel"},{name:"Утеплена панель",type:"insulatedPanel"},{name:"Цегла",type:"brick"},{name:"Iнше",type:"other"}];this.getConstructionTechnologyTypes=function(){return st};this.getConstructionTechnologyDescriptionByType=function(n){return r(st,n)};this.getCreationLegitimatePropertyLeaseFasts=function(n,t){return[{title:"LegitimatePropertyLease"+t+"Fast",url:"#/createAuction/legitimatePropertyLease"+t+"Fast/"+n},{title:"LegitimatePropertyLease"+t+"FastManual",url:"#/createAuction/legitimatePropertyLease"+t+"FastManual/"+n},{title:"LegitimatePropertyLease"+t+"FastAuctionManualQualification",url:"#/createAuction/legitimatePropertyLease"+t+"FastAuctionManualQualification/"+n},{title:"LegitimatePropertyLease"+t+"InitialAuction",url:"#/createAuction/legitimatePropertyLease"+t+"InitialAuction/"+n},{title:"LegitimatePropertyLease"+t+"InitialAuctionManual",url:"#/createAuction/legitimatePropertyLease"+t+"InitialAuctionManual/"+n},{title:"LegitimatePropertyLease"+t+"InitialQualification",url:"#/createAuction/legitimatePropertyLease"+t+"InitialQualification/"+n},{title:"LegitimatePropertyLease"+t+"InitialQualificationProd",url:"#/createAuction/legitimatePropertyLease"+t+"InitialQualificationProd/"+n}]};f=[{name:"Рахунки для реєстраційного внеску",type:"registrationFee"},{name:"Рахунки для гарантійного внеску",type:"guarantee"},{name:"Рахунки для забезпечувального депозиту",type:"securityDeposit"},{name:"Рахунки для компенсації невід'ємних поліпшень",type:"improvementCompensation"},{name:"Інші банківські рахунки",type:"other"},{name:"Рахунки для авансового внеску",type:"advancePayment"},{name:"Рахунки для сплати оренди",type:"lease"},{name:"Рахунки організатора",type:"organizer"},{name:"Рахунки для сплати за лот",type:"payment"},{name:"Рахунки для сплати за підготовку лота",type:"preparationPayment"},];this.getAccountTypes=function(){return e.modifyList(f,["payment","preparationPayment","organizer"],!0)};this.getAccountTypesForLandRental=function(){return e.modifyList(f,["payment","preparationPayment"])};this.getAccountTypesForBasicSell=function(){return e.modifyList(f,["registrationFee","guarantee","other"])};this.getAccountTypesDescription=function(n){return r(f,n)};ht=[{name:"Відсоток балансоутримувача",type:"balanceHolder"},{name:"Відсоток орендодавця",type:"landlord"},{name:"Бюджет",type:"budget"}];this.getHolderTypes=function(){return ht};this.getHolderTypesDescription=function(n){return r(ht,n)};this.getWeekDays=function(){return["Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота","Неділя"]};ct=[{type:"day",name:"День"},{type:"week",name:"Тиждень"},{type:"month",name:"Місяць"}];this.getScheduleHoursBy=function(){return ct};this.getScheduleHoursByDescription=function(n){return r(ct,n)};lt=[{type:"week",name:"Тиждень"},{type:"month",name:"Місяць"}];this.getScheduleDaysBy=function(){return lt};this.getScheduleDaysByDescription=function(n){return r(lt,n)};this.getContractButtonTitle=function(n,t){return n.procurementMethodType==="sellout.english"||n.procurementMethodType==="sellout.insider"?"Завершення приватизації":n.cbd===3?t.contracts[0]&&t.contracts[0].status==="active"?"Завершити аукціон":(n.isLandRentalOrSellEnglish||n.isLandSellPriorityEnglish)&&n.status==="pending.payment"?"Підтвердити сплату за лот":"Підтвердити договір":n.cbd===2&&!(n.isDgfBankrupt||n.isBankruptInsider)?"Контракт":"Завершення процедури"};s=[{name:"Продаж земельних ділянок",type:"landSale"},{name:"Оренда земельних ділянок",type:"landRental"},{name:"Продаж прав суперфіцію",type:"superficiesSale"},{name:"Продаж прав емфітевзису",type:"emphyteusisSale"}];this.getLeaseTypes=function(){return s};this.getLeaseOrSellTypeDescription=function(n){return r(s,n)};this.getSellTypes=function(){return e.modifyList(s,["landRental"],!0)};at=[{name:"Майно",type:"assets"},{name:"Права вимоги",type:"claimRights"}];this.getBasicSellItemTypes=function(){return at};this.getBasicSellItemTypesDescriptionByType=function(n){return r(at,n)};yt=["04","05","06","16","30","32","34","39","42"];this.getClassificatorsForAssetItemType=function(){return yt};this.modifyList=function(n,t,i=false,r="type"){for(var f=[],e=[],u=0,o=n.length;u<o;u++)t.includes(n[u][r])?f.push(n[u]):e.push(n[u]);return i?angular.copy(e):angular.copy(f)}}angular.module("app").service("lookupService",n);n.$inject=["$rootScope","abp.services.etender.reference","cachingService"]}();angular.module("app").service("registryObjectService",["$rootScope",function(n){return new function(){this.canCreateLeaseRequest=function(t){return t&&n.env.isAuthorized};this.canCreateLeaseAction=function(t){return t&&(n.env.isLandLord||n.env.isLandLordPropertyOwner||n.env.isLandLordGoverner||n.env.isLandLordHeritageController)&&n.env.isAuthorized};this.canCreateLegitimateAuction=function(t){return n.env.isAuthorized&&n.env.isLandLord&&t.apiId&&(t.isOwner||t.isSellingOwner)};this.getRegistrySearchFilter=function(n){var t=n.regions?n.regions.map(function(n){return n.id}):null,i=n.classificationCpvs.map(function(n){return n.code}),r=n.classificationCavs.map(function(n){return n.code}),u=i.concat(r),f=n.propertyOwners?n.propertyOwners.map(function(n){return n.edrpouOrInn}):[],e=n.sellingEntitys?n.sellingEntitys.map(function(n){return n.edrpouOrInn}):[],o=n.currentTenants?n.currentTenants.map(function(n){return n.edrpouOrInn}):[];return{listType:n.listType,statusInList:n.statusInList,areaFrom:n.areaFrom,areaTo:n.areaTo,searchString:n.searchString,regions:t,classificationCodes:u,propertyOwners:f,sellingEntitys:e,currentTenants:o,cpvCodes:n.classificationCpvs,cavCodes:n.classificationCavs,isShowOnlyCreatedOnOurSite:n.isShowOnlyCreatedOnOurSite,isRegistryObjectCreateWithMyTenant:n.isRegistryObjectCreateWithMyTenant}};this.getLeaseRequestSearchFilter=function(n){var t=n.regions?n.regions.map(function(n){return n.id}):null,i=n.sellingEntitys?n.sellingEntitys.map(function(n){return n.edrpouOrInn}):[];return{listType:n.listType,leaseRequestType:n.leaseRequestType,objectType:n.objectType,datePublishedFrom:n.datePublishedFrom,datePublishedTo:n.datePublishedTo,searchString:n.searchString,regions:t,sellingEntitys:i,isShowOnlyCreatedOnOurSite:n.isShowOnlyCreatedOnOurSite,isRegistryObjectCreateWithMyTenant:n.isRegistryObjectCreateWithMyTenant}};this.getLeaseActionSearchFilter=function(n){var t=n.propertyOwners?n.propertyOwners.map(function(n){return n.edrpouOrInn}):null,i=n.sellingEntitys?n.sellingEntitys.map(function(n){return n.edrpouOrInn}):[];return{leaseActionType:n.leaseActionType,datePublishedFrom:n.datePublishedFrom,datePublishedTo:n.datePublishedTo,searchString:n.searchString,propertyOwners:t,sellingEntitys:i,isShowOnlyCreatedOnOurSite:n.isShowOnlyCreatedOnOurSite,isRegistryObjectCreateWithMyTenant:n.isRegistryObjectCreateWithMyTenant}}}}]);angular.module("app").service("tenderHelperService",["datesHelper","$rootScope","$location","$interval",function(n,t,i,r){return new function(){function l(n,t,i,r=2){switch(n){case"active.rectification":return"Редагування доступне";case"active.enquiry":case"active.enquiries":return"Період уточнень";case"pending.activation":case"active.tendering":return"Прийняття заяв на участь";case"active.auction":return t&&(t.includes("landRental")||t.includes("landSell"))?"Земельні торги":"Аукціон";case"active.qualification":return r!==3||t&&(t.includes("subsoil")||t.includes("legitimate")||t.includes("basicSell")||t.includes("alienation")||t.includes("alienation")||t.includes("commercialSell"))?"Очікується опублікування протоколу":t&&(t.includes("landRental")||t.includes("landSell"))?"Очікується оприлюднення протоколу":"Очікується опублікування протоколу та завершення аукціону";case"active":return"Активна закупівля";case"active.awarded":return s.includes(t)?i?"Очікується завантаження акту":"Очікується завантаження акту (Очікується оплата)":t&&(t.includes("landRental")||t.includes("landSell"))?"Очікується підписання договору/акту":"Очікується підписання договору";case"pending.admission":return"Аукціон завершено. Очікується виконання умов договору";case"pending.payment":return!t||t.includes("landRental")||t.includes("landSell")?"Очікується оплата":"Очікується сплата до бюджету";case"unsuccessful":return t&&(t.includes("landRental")||t.includes("landSell"))?"Торги не відбулися":"Аукціон не відбувся";case"complete":if(t&&(t.includes("landRental")||t.includes("landSell")))return"Торги завершено. Договір/Акт підписано";var u="Аукціон завершено";return s.includes(t)||r===3?u:u+". Договір підписано";case"cancelled":return t&&(t.includes("landRental")||t.includes("landSell"))?"Торги скасовано":r!==3?"Аукціон скасовано":"Аукціон відмінено";case"scheduled":return"Аукціон заплановано";case"verification":return"Публікація інформаційного повідомлення";case"deleted":return"Видалено";case"draft":default:return"Чернетка"}}function h(n){var t=u.getMainProcurementMethodType(n);switch(t){case"sellout.english":case"sellout.insider":return"/auctionDetails/";case"landLease":case"appraisal.insider":case"property.insider":case"bankrupt.insider":case"carriage.insider":case"propInsiderByZU":case"railwayCargo-dutch":case"subsoil-dutch":return"/landLeaseDetails/";default:return"/tenderDetailes/"}}function a(n){switch(n){case"landLease":return t.source("LandLeaseAuction");case"appraisal.insider":return t.source("AppraisalInsiderAuction");case"property.insider":return t.source("PropertyInsiderAuction");case"carriageLease":return t.source("CarriageLeaseAuction");case"carriage.insider":return t.source("CarriageInsiderAuction");case"propertyLease":case"propertyLeaseOld":return t.source("PropertyLeaseAuction");case"propLeaseByZU":return t.source("PropLeaseAuctionByUkraineOrder");case"propInsiderByZU":return t.source("PropInsiderAuctionByUkraineOrder");case"dgfOtherAssets":return t.source("PropertySaleAuction");case"sellout.english1":return t.source("SelloutEnglishAuction1");case"sellout.english2":return t.source("SelloutEnglishAuction2");case"sellout.insider":return t.source("SelloutInsiderAuction");case"dgfBankrupt1":return t.source("BankruptSaleAuction1");case"dgfBankrupt2":return t.source("BankruptSaleAuction2");case"bankrupt.insider2":return t.source("BankruptSaleAuction3");case"bankrupt.insider3":return t.source("BankruptSaleAuction4");case"forestSale":case"timber-english":return t.source("ForestSaleAuction");case"renewables":return t.source("RenewableAuction");case"all":return t.source("AllProcedures");case"customsSale":return t.source("CustomsSales");case"railwayCargo-english":return t.source("RailwayCargoEnglishAuction");case"railwayCargo-dutch":return t.source("RailwayCargoDutchAuction");case"subsoil-english":return t.source("SubsoilEnglishAuction");case"subsoil-dutch":return t.source("SubsoilDutchAuction");case"legitimatePropertyLease-english1":return t.source("LegitimatePropertyLeaseEnglishAuction");case"allLease":return t.source("PropLeaseAuctionByUkraineOrder");case"propLeaseByZULPLEnglish1":return t.source("PropLeaseByZULPLEnglish");case"legitimatePropertyLease-english2":return t.source("LegitimatePropertyLeaseEnglish2");case"propInsiderByZULPLDutch3":return t.source("PropInsiderByZULPLDutch3");case"legitimatePropertyLease-dutch":return t.source("LegitimatePropertyLeaseDutchAuction");case"legitimatePropertyLease-priorityEnglish":return t.source("LegitimatePropertyLeasePriorityEnglish");case"landRental-english":return t.source("LandRentalEnglish");case"landSell-english":return t.source("LandSellEnglish");case"landSell-priorityEnglish":return t.source("LandSellPriorityEnglish");case"basicSell-english":case"basicSellEnglish_dgfOtherAssets":return t.source("BasicSellEnglish");case"basicSell-dutch":case"basicSellDutch_appraisalInsider":return t.source("BasicSellDutch");case"alienation-english":return t.source("AlienationEnglish");case"commercialSell-english":return t.source("CommercialSellEnglish");case"commercialSell-dutch":return t.source("CommercialSellDutch");default:return null}}function y(n,t){swal(n,function(){t&&t()})}function w(n){switch(n){case 7:return"/#/createAsset";case 8:case 10:return"/#/createAuction/landLease";case 12:return"/#/createAuction/carriageLease";case 16:return"/#/createAuction/renewables";default:return"/#/"}}function b(n){switch(n){case 5:case 8:case 10:case 12:case 16:return t.source("CreateAuction");case 9:case 11:return t.source("CreateAppraisalAuction");case 7:return t.source("CreateAsset");default:return""}}var u=this,s=["dgfBankrupt","bankrupt.insider"],c,v,f,p,e,o;this.isDeliveryStartDateGoodForAbove=function(t,i){return(t&&t.startDate&&t.startDate.getDay==undefined&&(t.startDate=n.jsonStringToDate(t.startDate)),i&&i.endDate&&i.endDate.getDay==undefined&&(i.endDate=n.jsonStringToDate(i.endDate)),t.startDate&&(t.startDate<i.endDate||t.startDate<i.endDate))?!1:!0};this.isDeliveryEndDateGoodForAbove=function(t,i){return(t&&t.startDate&&t.startDate.getDay==undefined&&(t.startDate=n.jsonStringToDate(t.startDate)),t&&t.endDate&&t.endDate.getDay==undefined&&(t.endDate=n.jsonStringToDate(t.endDate)),i&&i.endDate&&i.endDate.getDay==undefined&&(i.endDate=n.jsonStringToDate(i.endDate)),!i||!t||!t.endDate||t.startDate&&t.endDate<t.startDate||!t.startDate&&t.endDate<i.endDate)?!1:!0};this.isDeliveryDateGoodForAbove=function(n,t){return this.isDeliveryStartDateGoodForAbove(n,t)&&this.isDeliveryEndDateGoodForAbove(n,t)};this.customTendTitle=function(n){return n.length>250?n.substring(0,249)+"...":n};this.joinName=function(n){var t="";return n.lastName&&(t=n.lastName.trim().replaceAll(" ","+")),n.firstName&&(t+=" "+n.firstName.trim().replaceAll(" ","+")),n.patronymic&&(t+=" "+n.patronymic.trim().replaceAll(" ","+")),t};this.parseName=function(n){var t=n.split(" ");return{lastName:t.length>0?t[0].replaceAll("+"," "):null,firstName:t.length>1?t[1].replaceAll("+"," "):null,patronymic:t.length>2?t[2].replaceAll("+"," "):null}};this.replaceName=function(n){n.name=n.name.replaceAll("+"," ")};this.correctItemClassifications=function(n){n.forEach(function(n){n.classification&&(n.classification.discription=n.classification.description,n.classification.code=n.classification.id);n.additionalClassifications})};this.revertItemClassification=function(n){n.classification&&(n.classification.id=n.classification.code,n.classification.description=n.classification.discription);n.additionalClassifications&&n.additionalClassifications.length>0&&n.additionalClassifications.forEach(function(n){n.id=n.code})};this.getBankAccountModel=function(n){var t={accountIdentification:[],isFilled:!1};return n&&(t.currencies=n,n.length===1&&(t.currency=n[0])),t};this.isEnvironmentQA=function(){return window.location.href.indexOf("qa-asset.e-tender.ua")>-1||window.location.href.indexOf("uat-asset.e-tender.ua")>-1||window.location.href.indexOf("qa2-asset.e-tender.ua")>-1};this.isEnvironmentLocalhost=function(){return window.location.href.indexOf("localhost")>-1};this.getLabelClassByStatus=function(n){switch(n){case"active.rectification":case"active.tendering":case"active.enquiry":case"active.enquiries":case"pending":case"pending.activation":return"label-success";case"active.awarded":case"active.qualification":case"pending.admission":case"pending.payment":return"label-info";case"active":case"active.auction":case"verification":return"label-warning";case"complete":case"deleted":return"label-danger";case"cancelled":case"unsuccessful":case"scheduled":case"draft":return"label-primary";default:return"label-primary"}};this.getTenderDescriptionByStatus=function(n,t){return l(n,t,!0)};this.setTenderDescriptionByStatus=function(n){n.statusDescription=l(n.status,n.procurementMethodType,n.isActiveAwardedHasContractAnnexeStatus,n.cbd)};this.getProzorroDocumentLink=function(n,i,r){return _.contains(["active.qualification","active.awarded","unsuccessful","complete"],n)?r===2?{html:"https://prozorro.sale/auction/"+i+"/print/protocol/html",pdf:"https://prozorro.sale/auction/"+i+"/print/protocol/pdf"}:{html:t.proceduresUrl+"protocol/"+i+"/print",pdf:t.proceduresUrl+"protocol/"+i+"/download",doc:t.proceduresUrl+"protocol/"+i+"/doc"}:null};this.confirmAndActivate=function(n,t,i){_.contains(s,n.procurementMethodType)?i.checkIsCanCreateBankrupt({dgfId:n.dgfID,tenderAttempts:n.tenderAttempts}).success(function(n){n.isOk?t():y({title:"Увага!",text:n.message,type:"warning",showCancelButton:!0,confirmButtonColor:"#d33",confirmButtonText:"Всеодно продовжити",cancelButtonText:"Відміна",closeOnConfirm:!0},t)}):t()};this.hrefToTender=function(n){n.hrefToTender="#"+h(n.procurementMethodType)+n.id};this.redirectToAuctionPage=function(n,t){i.path(h(n)+t)};this.getAuctionUrl=function(n,t){return"#"+h(n)+t};c=["sellout.english","dgfBankrupt","bankrupt.insider","legitimatePropertyLease-english"];this.getAttemptsProcedureTypes=function(){return c};this.getProcurementMethodTitle=function(n,t){var i=this.getMainProcurementMethodType(n);return t&&_.contains(c,i)&&(i+=t),a(i)};v=["all","allLease","propLeaseByZULPLEnglish1","legitimatePropertyLease-english2","propInsiderByZULPLDutch3","legitimatePropertyLease-priorityEnglish","basicSellEnglish_dgfOtherAssets","basicSellDutch_appraisalInsider","landRental-english","landSell-english","landSell-priorityEnglish","alienation-english","commercialSell-english","commercialSell-dutch","propertyLease","property.insider","landLease","sellout.english1","sellout.english2","sellout.insider","dgfBankrupt1","dgfBankrupt2","bankrupt.insider2","bankrupt.insider3","customsSale","timber-english","railwayCargo-english","railwayCargo-dutch",,"subsoil-english","subsoil-dutch"];this.getProcurementMethodsByFilter=function(){return f||(f=[],v.forEach(function(n){f.push({name:a(n),procurementMethodType:n})})),f};this.getCarriageMovableValues=function(){return[{name:"Криті - 20",num:20},{name:"Платформи - 40",num:40},{name:"Платформа 2х ярусна для перевезення автомобілів - 41",num:41},{name:"Напіввагони - 60",num:60},{name:"Напіввагони глуходонні - 61",num:61},{name:"Цистерни - 70",num:70},{name:"Цистерни нафтоналивні інвентарного парку - 73",num:73},{name:"Цистерни інвентарного парку - 74",num:74},{name:"Цистерни для в'язких нафтопродуктів - 75",num:75},{name:"Цистерни для хімічних вантажів - 76",num:76},{name:"Цистерни для світлого наливу - 77",num:77},{name:"Цистерни для перевезення харчових вантажів - 78",num:78},{name:"Цистерни для темного наливу - 79",num:79},{name:"Ізотермічні - 80",num:80},{name:"Вагони-термоси - 82",num:82},{name:"Рефрижераторні - 87",num:87},{name:"Інші - 90",num:90},{name:"Криті для легковагових вантажів - 91",num:91},{name:"Мінераловози - 92",num:92},{name:"Цементовози - 93",num:93},{name:"Окатишевози - 94",num:94},{name:"Зерновози - 95",num:95},{name:"Платформи фітінгові - 96",num:96},{name:"Аппатітовози - 97",num:97},{name:"Транспортери - 99",num:99}]};this.getCarriageAuctionTypeDesc=function(n){switch(n){case 0:return"перевезення групами вагонів";case 1:return"перевезення маршрутами відправника";case 2:return"продаж обсягу перевезення";default:return n}};this.getCarriageAuctionTypes=function(){return[{name:"перевезення групами вагонів"},{name:"перевезення маршрутами відправника"},{name:"продаж обсягу перевезення"}]};this.getCarriagePoligonSigns=function(){return[{name:"Залізнична адміністрація"},{name:"Залізниця"},{name:"Станція"}]};this.getCarriagePoligonSignsWithCode=function(){return[{code:"1",name:"Залізнична адміністрація"},{code:"2",name:"Залізниця"},{code:"3",name:"Станція"}]};this.getCarriagePoligonSignTypes=function(){return[{name:"полігон навантаження"},{name:"полігон вивантаження"}]};this.getForestQualityClasses=function(){return[{value:"A",name:"A"},{value:"B",name:"B"},{value:"C",name:"C"},{value:"D",name:"D"},{value:"інший",name:"other"}]};this.getForestYears=function(){for(var t=[{name:""}],n=2e3;n<2100;n++)t.push({name:n});return t};this.getForestQuarters=function(){return[{value:"",name:""},{value:"I",name:1},{value:"II",name:2},{value:"III",name:3},{value:"IV",name:4}]};this.userMessageWithCloseBtn=function(n,t,i){var r={closeButton:!0,timeOut:0,extendedTimeOut:0};switch(n){case"warning":toastr.warning(i,t,r);break;case"success":toastr.success(i,t,r);break;case"info":toastr.info(i,t,r);break;case"error":toastr.error(i,t,r);break;default:toastr.warning(i,t,r)}};this.sweetAlert=function(n,i,r){t.sweetAlertButtonCancell=r?r:!1;y(n,i)};this.toggleFavorite=function(n,t,i,r=false){var u=t,f="Додано до обраного";n.isFavorite&&(f="Видалено з обраного",u=i);u({tenderId:r?n.tenderNewId:n.id}).success(function(t){t&&(n.isFavorite=!n.isFavorite,abp.notify.success(f))}).error(function(){abp.notify.error('Позначка "обране" не змінена')})};this.getMainProcurementMethodType=function(n){return n.match(t.fastTypesRegex.timberEnglish)?"timber-english":n.match(t.fastTypesRegex.railwayCargoEnglish)?"railwayCargo-english":n.match(t.fastTypesRegex.railwayCargoDutch)?"railwayCargo-dutch":n.match(t.fastTypesRegex.subsoilEnglish)?"subsoil-english":n.match(t.fastTypesRegex.subsoilDutch)?"subsoil-dutch":n.match(t.fastTypesRegex.timberMultiAwards)?"timber-multiAwards":n.match(t.fastTypesRegex.legitimatePropertyLeaseEnglish)?"legitimatePropertyLease-english":n.match(t.fastTypesRegex.legitimatePropertyLeaseDutch)?"legitimatePropertyLease-dutch":n.match(t.fastTypesRegex.legitimatePropertyLeasePriorityEnglish)?"legitimatePropertyLease-priorityEnglish":n.match(t.fastTypesRegex.landRentalEnglish)?"landRental-english":n.match(t.fastTypesRegex.landSellEnglish)?"landSell-english":n.match(t.fastTypesRegex.landSellPriorityEnglish)?"landSell-priorityEnglish":n.match(t.fastTypesRegex.basicSellEnglish)?"basicSell-english":n.match(t.fastTypesRegex.basicSellDutch)?"basicSell-dutch":n.match(t.fastTypesRegex.alienation)?"alienation-english":n.match(t.fastTypesRegex.commercialSellEnglish)?"commercialSell-english":n.match(t.fastTypesRegex.commercialSellDutch)?"commercialSell-dutch":n};this.getOrganizationAgreementData=function(n){switch(n){case 1:case 2:case 6:return{isCustomer:!1,personDocType:1,agreementDocument:"Договір_приєднання_для_учасника.docx"};case 9:case 11:return{isCustomer:!0,personDocType:2,agreementDocument:"Договір_приєднання_комерційний_організатор.docx"};case 17:return{isCustomer:!0,personDocType:3,agreementDocument:"Оферта_для_ораганізатора_деревина.docx"}}return{isCustomer:!0,personDocType:0,agreementDocument:""}};this.setEnvironmentRoles=function(n){t.env.isAdmin=n.indexOf("Admin")>-1;localStorage.isAdmin=t.env.isAdmin;t.env.isCustomer=n.indexOf("Customer")>-1;localStorage.isCustomer=t.env.isCustomer;t.env.isPreCustomer=n.indexOf("PreCustomer")>-1;t.env.isSubscriber=n.indexOf("Subscriber")>-1;localStorage.isSubscriber=t.env.isSubscriber;t.env.isPreSubscriber=n.indexOf("PreSubscriber")>-1;t.env.isAssetCustodian=n.indexOf("AssetHolder")>-1;t.env.isLandLeaseHolder=n.indexOf("LandLeaseHolder")>-1;localStorage.isLandLeaseHolder=t.env.isLandLeaseHolder;t.env.isPrivatePropertyOrganizer=n.indexOf("PrivatePropertyOrganizer")>-1;localStorage.isPrivatePropertyOrganizer=t.env.isPrivatePropertyOrganizer;t.env.isCarriageOrganizer=n.indexOf("CarriageOrganizer")>-1;localStorage.isCarriageOrganizer=t.env.isCarriageOrganizer;t.env.isBankruptCustomer=n.indexOf("BankruptCustomer")>-1;localStorage.isBankruptCustomer=t.env.isBankruptCustomer;t.env.isForestSeller=n.indexOf("ForestSeller")>-1;localStorage.isForestSeller=t.env.isForestSeller;t.env.isLandLord=n.indexOf("LandLord")>-1;localStorage.isLandLord=t.env.isLandLord;t.env.isLandLordByReglament=n.indexOf("LandLordByReglament")>-1;localStorage.isLandLordByReglament=t.env.isLandLordByReglament;t.env.isLandLordPropertyOwner=n.indexOf("LandLordPropertyOwner")>-1;localStorage.isLandLordPropertyOwner=t.env.isLandLordPropertyOwner;t.env.isLandLordGoverner=n.indexOf("LandLordGoverner")>-1;localStorage.isLandLordGoverner=t.env.isLandLordGoverner;t.env.isLandLordHeritageController=n.indexOf("LandLordHeritageController")>-1;localStorage.isLandLordHeritageController=t.env.isLandLordHeritageController;t.env.isLandLordPotential=!t.env.isLandLord&&!t.env.isLandLordPropertyOwner&&!t.env.isLandLordGoverner&&!t.env.isLandLordHeritageController;localStorage.isLandLordPotential=t.env.isLandLordPotential;t.env.isOperator=n.indexOf("Operator")>-1;localStorage.isOperator=t.env.isOperator;t.env.isAccountant=n.indexOf("Accountant")>-1;localStorage.isAccountant=t.env.isAccountant;t.env.isChiefAccountant=n.indexOf("ChiefAccountant")>-1;localStorage.isChiefAccountant=t.env.isChiefAccountant;t.env.isOnlyPresubscriber=n&&n.length===1&&t.env.isPreSubscriber;localStorage.isOnlyPresubscriber=t.env.isOnlyPresubscriber};this.setEnvironmentBase=function(n){t.env.isProductionMode=n.isProductionMode;localStorage.isProdMode=n.isProductionMode;localStorage.userTenantId=n.tenantId||null;t.userTenantId=localStorage.userTenantId;t.userId=n.id;localStorage.userId=n.id;t.env.isAwaitingForJoin=n.isAwaitingForJoin;localStorage.isAwaitingForJoin=n.isAwaitingForJoin;var i="";typeof n.patronymic!="undefined"&&n.patronymic!==null&&(i=" "+n.patronymic);t.userNameDisplay=n.surname+" "+n.name+i;localStorage.userNameDisplay=n.surname+" "+n.name+i;t.emailAddress=n.emailAddress;localStorage.emailAddress=n.emailAddress};this.setEnvironmentOrganization=function(n){t.organization=n;t.env.isAgreementSigned=n.isAgreementSigned;localStorage.isAgreementSigned=t.env.isAgreementSigned;t.typeOfOrganization=n.typeOfOrganization;localStorage.typeOfOrganization=t.typeOfOrganization;t.env.isFisOrFOP=n.isFisOrFOP;t.env.isOrganizationApproved=n.productionModeIsApproved;localStorage.isOrganizationApproved=t.env.isOrganizationApproved;t.env.isOrganizationReadyForApprovement=n.productionModeIsReadyForApprovement;localStorage.isOrganizationReadyForApprovement=t.env.isOrganizationReadyForApprovement;t.env.isOrganizationApprovedTest=n.testModeIsApproved;localStorage.isOrganizationApprovedTest=t.env.isOrganizationApprovedTest;t.env.isOrganizationReadyForApprovementTest=n.testModeIsReadyForApprovement;localStorage.isOrganizationReadyForApprovementTest=t.env.isOrganizationReadyForApprovementTest;t.env.isOrganizationProductionMode=n.isProductionMode;localStorage.isOrganizationProdMode=n.isProductionMode;t.createLink=w(n.typeOfOrganization);t.createButtonName=b(n.typeOfOrganization);t.organizationTenantId=n.tenantId;localStorage.organizationTenantId=n.tenantId;t.env.isRequiredContractNumber=n.isRequiredContractNumber;localStorage.isRequiredContractNumber=n.isRequiredContractNumber;localStorage.organizationId=n.id;localStorage.typeOfOrganization=n.typeOfOrganization;localStorage.orgNameEN=n.nameEN;localStorage["orgContactPoint.nameEN"]=n.contactPoint.nameEN;localStorage["orgIdentifier.legalNameEN"]=n.identifier.legalNameEN;localStorage.orgNonAnsweredQuestionsCount=n.nonAnsweredQuestionsCount;localStorage.orgNonAnsweredComplaintsCount=n.nonAnsweredComplaintsCount;localStorage.orgIbanUA=n.ibanUA;localStorage.orgAccountantsEmail=n.accountantsEmail;n.kind!==null&&n.kind!=="null"&&n.kind!==undefined&&(localStorage.orgKind=n.kind)};this.getUserAndOrganizationData=function(n,r,f){n({userName:localStorage.username||sessionStorage.username}).success(function(n){var e={};angular.copy(n,e);t.env.isEnvironmentReady=!1;u.setEnvironmentBase(n);u.setEnvironmentRoles(n.roles);t.env.isEmailAddressNew=n.emailAddressNew!=null;t.emailAddressNew=n.emailAddressNew;t.emailAddress=n.emailAddress;e.tenantId&&r({tenantId:e.tenantId}).success(function(n){localStorage.username=e.userName;sessionStorage.username=e.userName;u.setEnvironmentOrganization(n);t.env.isEnvironmentReady=!0;typeof f=="function"&&f()});t.env.isPreSubscriber&&(t.env.isAwaitingForJoin||!t.env.isOnlyPresubscriber||t.userTenantId&&t.userTenantId!=="null")||i.path("/createProfile")}).error(function(){i.path("/logout")})};p=[{title:"українська",code:"uk"},{title:"англійська",code:"en"},{title:"російська",code:"ru"}];this.setLang=function(n){if(n&&n.language){var t=p.find(t=>t.code===n.language);t&&(n.languageTitle=t.title)}};this.setBankAccountsNewLLE=function(n){for(var r,t,i=0,u=n.length;i<u;i++)r=[],t=n[i].accounts.find(n=>n.currency==="UAH"),t&&t.bankName!=null&&typeof t.bankName!="undefined"&&t.bankName.length>0&&r.push(t),t=n[i].accounts.find(n=>n.currency==="USD"),t&&t.bankName!=null&&typeof t.bankName!="undefined"&&t.bankName.length>0&&r.push(t),t=n[i].accounts.find(n=>n.currency==="EUR"),t&&t.bankName!=null&&typeof t.bankName!="undefined"&&t.bankName.length>0&&r.push(t),n[i].accounts=angular.copy(r);return n};this.checkIsExportedSuccessfully=function(n){return!n.isExported&&!n.notExport&&!n.isExportError&&!n.errorMessage||n.apiId&&!n.rectificationPeriod.startDate&&!n.procurementMethodType.includes("initial")};e=function(n,t){r.cancel(n);angular.element(".toploaderbase").hide();t.procTitleText=""};this.startExportReloadTimer=function(n,t,i){angular.element(".toploaderbase").show();t.procTitleText="дані оновлюються...";var u=10,f=r(function(){--u;angular.element(".toploaderbase").show();i(t.id).success(function(i){i.notExport||i.isExportError||i.errorMessage||i.apiId&&t.dateModified!==i.dateModified?(e(f,t),setTimeout(n,2e3)):u<=0&&e(f,t)}).error(function(n){console.log(n);e(f,t)})},5e3,u)};this.goToProfileSection=function(n){localStorage.templateTabUrl=t.templateTabUrl=n;i.path("/profile");t.$broadcast("tabChangeEvent",t.templateTabUrl)};this.roundForTwo=function(n){return Math.round((n+Number.EPSILON)*100)/100};this.isPossibleCancelTender=function(n){var t=n.isEdit&&n.status!=="unsuccessful"&&n.status!=="cancelled"&&n.status!=="complete"&&n.status!=="draft",i=n.status!=="active.qualification"&&n.status!=="active.awarded";return n.isBankrupt?t&&i:t};this.appendTimeToDate=function(n,t){return n&&(n=new Date(n.toString()),t=t?new Date(t.toString()):new Date,n.setHours(t.getHours()),n.setMinutes(t.getMinutes())),n};this.getBankAccountsNewLLE=function(n){for(var i,t=0,r=n.length;t<r;t++)i=[],i.push(o(n[t],"UAH")),i.push(o(n[t],"USD")),i.push(o(n[t],"EUR")),n[t].accounts=angular.copy(i),n[t].initShow=!0;return n};o=function(n,t="UAH"){var i={};return n.accounts.find(n=>n.currency===t)?(i=n.accounts.find(n=>n.currency===t),i.isFilled=!0):i=u.getBankAccountModel([t]),i};this.hasBankAccountType=function(n,t){if(!t)return{hasType:!0,bankAccounts:0};var i=0;return(n.forEach(function(n){n.accountType===t&&i++}),t.match(/^(lease|advancePayment)$/)&&i>3)?{hasType:!0,bankAccounts:i}:!t.match(/^(lease|advancePayment)$/)&&i>1?{hasType:!0,bankAccounts:i}:{hasType:!1,bankAccounts:i}};this.addLegitimateBankAccount=function(n,t=null,i=null){n.push({accountType:t,accounts:[u.getBankAccountModel(["UAH"]),u.getBankAccountModel(["USD"]),u.getBankAccountModel(["EUR"])],holderType:i,percent:null})};this.removeBankAccount=function(n,t){for(var i=0;i<n.length;i++)if(n[i].index===t){n.splice(i,1);break}n.length===0&&u.addLegitimateBankAccount(n)};this.getTenderAttemptsText=function(n){var t="";switch(n){case"1":t="Лот виставляється вперше";break;case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"10":t="Лот виставляється повторно";break;default:t=""}return t};this.getTenderAttemptsDesc=function(n){switch(n){case"1":return"Вперше";case"2":return"Вдруге";case"3":return"Втретє";case"4":return"Вчетверте";case"5":return"Вп'яте";case"6":return"Вшосте";case"7":return"Всьоме";case"8":return"Ввосьме";case"9":return"Вдев'яте";case"10":return"Вдесяте";default:return n}};this.getProcTypeWithDividers=function(n,t,i="-"){for(var f=n.split(/([A-Z][a-z]+)/).filter(n=>n.length>0),e=[],r=0,o=f.length,u;r<o;){if(u="",t.forEach(function(n){while(f.length>r&&n.toLowerCase().indexOf(f[r].toLowerCase())!==-1)u+=f[r].charAt(0).toUpperCase()+f[r].slice(1).toLowerCase(),r++;u.length>0&&(e.push(u.charAt(0).toLowerCase()+u.slice(1)),u="")}),f.length<=r)break;u.length===0?e.push(f[r].toLowerCase()):(e.push(u),u="",r--);r++}return console.log("*** PROCEDURE TYPE =",e.join(i)),e.join(i)};this.getCreateAuctionParams=function(n,t){var i={procedureType:null,type:null,aId:null,isForSecondaryAuctionCreation:null};return["bankrupt1","bankrupt2"].includes(n)?(i.procedureType="dgfBankrupt",i.type=n):["bankrupt3","bankrupt4"].includes(n)?(i.procedureType="bankrupt.insider",i.type=n):["appraisalInsider","propertyInsider"].includes(n)?i.procedureType=u.getProcTypeWithDividers(n,[],"."):["landLease","dgfOtherAssets","propInsiderByZU","propertyLease","propLeaseByZU","carriageLease","renewables","forestSale"].includes(n)?i.procedureType=n:n.indexOf("timberEnglish")===0||n.indexOf("alienation")===0?i.procedureType=u.getProcTypeWithDividers(n,[]):n.indexOf("timberMultiAwards")===0?i.procedureType=u.getProcTypeWithDividers(n,["multiAwards"]):n.indexOf("legitimatePropertyLeaseEnglish")===0||n.indexOf("legitimatePropertyLeaseDutch")===0?(i.procedureType=u.getProcTypeWithDividers(n,["legitimatePropertyLease"]),i.type=t):n.indexOf("legitimatePropertyLeasePriorityEnglish")===0?(i.procedureType=u.getProcTypeWithDividers(n,["legitimatePropertyLease","priorityEnglish"]),i.type=t):n.indexOf("landRentalEnglish")===0?i.procedureType=u.getProcTypeWithDividers(n,["landRental"]):n.indexOf("landSellEnglish")===0?i.procedureType=u.getProcTypeWithDividers(n,["landSell"]):n.indexOf("landSellPriorityEnglish")===0?i.procedureType=u.getProcTypeWithDividers(n,["landSell","priorityEnglish"]):n.indexOf("basicSellEnglish")===0||n.indexOf("basicSellDutch")===0?i.procedureType=u.getProcTypeWithDividers(n,["basicSell"]):n.indexOf("commercialSell")===0?i.procedureType=u.getProcTypeWithDividers(n,["commercialSell"]):(i.aId=n,i.isForSecondaryAuctionCreation=t),i}}}]);angular.module("app").controller("app.views.tabs",["$rootScope","$scope","$stateParams","$location",function(n,t,i,r){function u(n){return location.hash==="#/profile"?n===localStorage.templateTabUrl:!1}var e=this,f;t.createProfileFlag=!1;t.menu1=[1,2,6];t.menu3=[7];t.menu4=[18,20];t.menu5=[18,20,21,22];t.menu6=[20,21,22];f=abp.localization.getSource(abp.setting.get("LocalizationWebMode"));i&&i.isForestRequestsTab?t.templateTabUrl="/App/Main/views/profile/forestRequests.cshtml":location.hash==="#/profile"?localStorage.templateTabUrl&&localStorage.templateTabUrl.length&&(t.templateTabUrl=localStorage.templateTabUrl):localStorage.removeItem("templateTabUrl");e.setBaseMenu=function(i){t.profileTabs=[];var e=r.url();t.profileTabs.push({href:"/#/",heading:n.source("ListOfTenders"),liClass:"fa fa-indent",selected:e==="/",includedToView:!0});t.menu3.includes(i.orgType)&&(t.profileTabs.push({heading:f("MyAssets"),templateUrl:"/app/Main/views/assets/myAssets.cshtml",liClass:"fa fa-clipboard",selected:u("/app/Main/views/assets/myAssets.cshtml"),includedToView:!0}),t.profileTabs.push({heading:f("MyLots"),templateUrl:"/app/Main/views/assets/myLots.cshtml",liClass:"fa fa-edit",selected:u("/app/Main/views/assets/myLots.cshtml"),includedToView:!0}));t.menu1.includes(i.orgType)?t.profileTabs.push({heading:f("MyAuctions"),templateUrl:"/app/Main/views/profile/myTenders.cshtml",liClass:"fa fa-bookmark-o",selected:u("/app/Main/views/profile/myTenders.cshtml"),includedToView:!0}):t.profileTabs.push({heading:f("MyAuctions"),templateUrl:"/app/Main/views/profile/myTenders.cshtml",liClass:"fa fa-gavel",selected:"/app/Main/views/profile/myTenders.cshtml"==localStorage.templateTabUrl,includedToView:!0});t.menu4.includes(i.orgType)&&t.profileTabs.push({heading:f("MyObjectsRegistry"),templateUrl:"/app/Main/views/profile/myRegistry.cshtml",liClass:"fa fa-building-o",selected:u("/app/Main/views/profile/myRegistry.cshtml"),includedToView:!0});t.menu4.includes(i.orgType)&&t.profileTabs.push({heading:f("MyRegContracts"),templateUrl:"/app/Main/views/profile/myRegContracts.cshtml",liClass:"fa fa-clipboard",selected:u("/app/Main/views/profile/myRegContracts.cshtml"),includedToView:!0});t.profileTabs.push({heading:f("MyLeaseRequest"),templateUrl:"/app/Main/views/profile/myLeaseRequests.cshtml",liClass:"fa fa-list-alt",selected:u("/app/Main/views/profile/myLeaseRequests.cshtml"),includedToView:!0});t.menu5.includes(i.orgType)&&t.profileTabs.push({heading:f("MyActionRegistry"),templateUrl:"/app/Main/views/profile/myLeaseActions.cshtml",liClass:"fa fa-th-list",selected:u("/app/Main/views/profile/myLeaseActions.cshtml"),includedToView:!0});t.profileTabs.push({heading:f("ChoosedTenders"),templateUrl:"/app/Main/views/profile/myTendersFavorite.cshtml",liClass:"fa fa-star",selected:u("/app/Main/views/profile/myTendersFavorite.cshtml"),includedToView:!0});t.profileTabs.push({heading:"divider",templateUrl:"",liClass:"",includedToView:!0});t.menu3.includes(i.orgType)||t.profileTabs.push({heading:n.source("Invoices"),templateUrl:"/app/Main/views/profile/invoices.cshtml",liClass:"fa fa-money",selected:u("/app/Main/views/profile/invoices.cshtml"),includedToView:!0});t.profileTabs.push({heading:f("Messages"),templateUrl:"/app/Main/views/profile/messages.cshtml",liClass:"fa fa-envelope-square",selected:"/app/Main/views/profile/messages.cshtml"==localStorage.templateTabUrl,includedToView:!0});n.env.isOperator&&(t.profileTabs.push({heading:n.source("Profiles"),templateUrl:"/App/Main/views/profile/profilesList.cshtml",liClass:"fa fa-users",selected:u("/App/Main/views/profile/profilesList.cshtml"),includedToView:!0}),t.profileTabs.push({heading:n.source("UserHelp"),templateUrl:"/App/Main/views/profile/activateEmail.cshtml",liClass:"fa fa-user-md",selected:u("/App/Main/views/profile/activateEmail.cshtml"),includedToView:!0}),t.profileTabs.push({heading:n.source("Bids"),templateUrl:"/app/Main/views/profile/allBids.cshtml",liClass:"fa fa-bookmark-o",selected:u("/app/Main/views/profile/allBids.cshtml"),includedToView:!0}));t.profileTabs.push({href:"/#/subscription",heading:n.source("Subscribes"),liClass:"fa fa-bell-o",selected:e==="/subscription",includedToView:!0})};e.setSettingsMenu=function(i){t.profileTabs.push({heading:"divider",templateUrl:"",liClass:"",includedToView:!0});i.userTenantId&&t.profileTabs.push({heading:n.source("OrganizationData"),templateUrl:"/app/Main/views/profile/myOrganization.cshtml",liClass:"fa fa-briefcase",selected:u("/app/Main/views/profile/myOrganization.cshtml"),includedToView:!0});t.profileTabs.push({heading:n.source("UserData"),templateUrl:"/app/Main/views/profile/userDetailes.cshtml",liClass:"fa fa-user",selected:"/app/Main/views/profile/userDetailes.cshtml"==localStorage.templateTabUrl,includedToView:!0})};t.$watch("$root.env.isEnvironmentReady",function(i){i&&(t.userData={userNameDisplay:n.userNameDisplay,emailAddress:n.emailAddress,orgName:n.organization.name,orgType:n.typeOfOrganization,userTenantId:n.userTenantId},t.typeOfOrganization=t.userData.orgType,(typeof localStorage.templateTabUrl=="undefined"||localStorage.templateTabUrl===null||localStorage.templateTabUrl==="")&&(localStorage.templateTabUrl=n.templateTabUrl="/app/Main/views/profile/myOrganization.cshtml"),t.templateTabUrl=n.templateTabUrl,e.setBaseMenu(t.userData),e.setSettingsMenu(t.userData))});t.$on("onRefreshProfileTabUrl",function(n,i){localStorage.templateTabUrl=i;t.templateTabUrl=i})}]),function(){angular.module("app").controller("app.views.about",["$scope","$http",function(n,t){t.get("/App/Main/data/about.txt").success(function(t){n.text=t}).error(function(){n.text="Файл не знайдено"})}])}(),function(){angular.module("app").controller("app.views.assetDetails",["$rootScope","$scope","abp.services.etender.asset","$stateParams","$location","documentService","ngTableParams","FileUploader",function(n,t,i,r,u,f,e,o){function y(){abp.ui.setBusy();i.activate(t.detailes.id).success(function(){abp.ui.clearBusy();abp.notify.success("Об'єкт опубліковано у реєстрі!");t.reloadDetailes()}).error(function(){abp.ui.clearBusy()})}function p(n){return n.documentType.type=="cancellationDetails"&&n.isExported}function w(){if(t.detailes.documents)if(t.detailes.documents.some(p))abp.ui.setBusy(),i.deleteAsset(t.detailes.id).success(function(){abp.ui.clearBusy();abp.notify.success("Об'єкт видалено з реєстру!");t.reloadDetailes()}).error(function(){abp.ui.clearBusy()});else return abp.notify.error("Для видалення об'єкту потрібно завантажити документ &quot;Причини скасування&quot;!");else return}function b(){u.path("/updateAsset/"+r.aId)}var h=abp.setting.get("IsHideOnAuction").toLowerCase()==="true",c,l,s,a,v;t.isAuction=h;c=1;l=[];t.fileUploadObj={};s=t.uploader=new o({});s.filters.push({name:"imageFilter",fn:function(n){var t="|"+n.type.slice(n.type.lastIndexOf("/")+1)+"|";return"|jpg|png|jpeg|bmp|gif|".indexOf(t)!==-1}});s.onWhenAddingFileFailed=function(n,t,i){console.info("onWhenAddingFileFailed",n,t,i)};s.onAfterAddingFile=function(n){console.info("onAfterAddingFile",n)};s.onAfterAddingAll=function(n){console.info("onAfterAddingAll",n)};s.onBeforeUploadItem=function(n){l.push(n);c=l.length;formData=[{assetId:t.aId,control:"illustrate",documentType:t.vm.selectedDocTypeObj.id,index:c}];Array.prototype.push.apply(n.formData,formData);console.info("onBeforeUploadItem",n)};s.onProgressItem=function(n,t){console.info("onProgressItem",n,t)};s.onProgressAll=function(n){console.info("onProgressAll",n)};s.onSuccessItem=function(n,t,i,r){console.info("onSuccessItem",n,t,i,r)};s.onErrorItem=function(n,t,i,r){console.info("onErrorItem",n,t,i,r)};s.onCancelItem=function(n,t,i,r){console.info("onCancelItem",n,t,i,r)};s.onCompleteItem=function(n,t,i,r){console.info("onCompleteItem",n,t,i,r)};s.onCompleteAll=function(){console.info("onCompleteAll")};console.info("uploader",s);t.aId=r.aId;t.enableAddDocument=!0;t.cancelDocDescription="";t.statusDescription={};t.cancelTenderModel={};t.upload=[];t.showHideUploadIllustrationPanel=!1;t.userTenantId=localStorage.userTenantId||null;jQuery(document).ready(function(){jQuery(".go_back").click(function(){return parent.history.back(),!1})});t.docBlockName="Документи об'єкту приватизації";t.objectDocType="assetId";t.custodianBlockName="Розпорядник об'єкту";t.cancelTenderModel={reason:"",cancelFor:null};t.documentType={items:[]};a="";t.setDescriptionByStatus=function(n){switch(n){case"pending":return"Опубліковано. Очікування інформаційного повідомлення";case"verification":return"Публікація інформаційного повідомлення";case"active":return"Інформаційне повідомлення опубліковано";case"complete":return"Аукціон завершено";case"deleted":return"Виключено з переліку";case"draft":return"Чернетка"}};t.getRegistrationStatus=function(n){switch(n.registrationDetails.status){case"registering":return"об'єкт реєструється";case"complete":return"об'єкт зареєстровано";case"unknown":return"невідомо (не застосовується)"}};t.canModifyDocuments=function(){return!t.detailes||!t.detailes.isEdit?!1:t.detailes.status==="draft"||t.detailes.status==="pending"?!0:new Date(t.detailes.rectificationPeriod.endDate)>new Date};t.canEditAsset=function(){return!t.detailes||!t.detailes.isEdit||t.detailes.status==="deleted"?!1:t.detailes.status==="draft"||!t.detailes.rectificationPeriod.endDate?!0:new Date(t.detailes.rectificationPeriod.endDate)>new Date};t.createInfoMsng=function(n,t){u.path("createAssetInfoMsng/"+n+"/"+t)};t.goToUpdate=function(n,t){u.path("updateAssetInfoMsng/"+n+"/"+t)};t.cancelTenderDocumentToAdd={};t.setFile=function(n){t.files=n.files;var i=n.attributes["data-description"]?n.attributes["data-description"].nodeValue:null,r=n.attributes["data-doctype"].nodeValue;t.cancelTenderDocumentToAdd=n.files;t.addFiles(n.files,r,i)};v=function(n){var i=!0,t;if(n.awardDocuments&&n.awardDocuments.length>0)for(t=0;t<n.awardDocuments.length;t++)if(n.awardDocuments[t].url==null){i=!1;break}return i};t.getAssetType=function(){if(!t.detailes)return null;switch(t.detailes.procurementMethodType){case"bounce":return n.source("bounce")}return null};t.reasonTypes=[{id:"cancelled",title:"Торги були відмінені"},{id:"unsuccessful",title:"Торги не відбулися"}];t.reasonCancellationVariant=null;t.reasonCancellationVariants=[{reasonText:"Згідно рішення виконавчої дирекції Замовника"},{reasonText:"Порушення порядку публікації оголошення"}];t.reasonCancellationVariantsChange=function(n){t.reasonCancellationVariant=n};t.getReasonTypeNameById=function(n){var i=null;return n&&angular.forEach(t.reasonTypes,function(t){t.id==n&&(i=t.title)}),i};t.isShowReasonType=function(){return t.detailes&&isAbove()?!0:!1};t.reloadDetailes=function(){t.documentsToAdd=null;var n=i.getAsset(t.aId);abp.ui.setBusy();n.success(function(n){console.log("assetDetailes",n);t.detailes=n;f.getDocumentTypes(t.documentType,"AuctionDocument","asset",t.detailes.status);abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})};localStorage.getAwards=="true"?(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>2&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},3e3)}(),localStorage.getAwards="false",t.detailes&&(t.detailes.hasPendingAwards=!1)):(t.reloadDetailes(),localStorage.getAwards="false");t.beginCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();t.cancelTenderModel.reason=t.reasonCancellationVariant;tender.cancellationBegin(t.cancelTenderModel).success(function(n){var i=findLotById(t.cancelTenderModel.relatedLot);t.cancelTenderModel.relatedLot=null;n&&(i?i.cancellations=n:t.detailes.cancellations=n);abp.ui.clearBusy();t.openModalCancelTender(i)}).error(function(){abp.ui.clearBusy()})};t.endCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();tender.cancellationEnd({cancellationId:t.detailes.curCancellations[0].id}).success(function(n){n?(t.cancelTenderModel.relatedLot?abp.notify.success("Об’єкт скасовано!"):h?abp.notify.success("Торги скасовано!"):abp.notify.success("Закупівлю скасовано!"),abp.ui.clearBusy(),t.reloadDetailes()):t.cancelTenderModel.relatedLot?abp.notify.error("Вибачте, Об’єкт не може бути скасований саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування Об’єкта через деякий час."):h?abp.notify.error("Вибачте, торги не можуть бути скасовані саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування через деякий час."):abp.notify.error("Вибачте, закупівлю не може бути скасовно саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування закупівлі через деякий час.");abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})};t.tableParams=new e({page:1,count:10,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(n,t){var i={maxResultCount:900,skipCount:(t.page()-1)*t.count(),sorting:"CreationTime DESC"}}});t.vm={goToUpdate:b,activate:y,deleteAsset:w,selectedDocTypeObj:null}}])}(),function(){"use strict";angular.module("app").controller("app.views.assetObjects",["$scope","$rootScope",function(n,t){n.title="assets";n.userId=t.userId}])}(),function(){angular.module("app").controller("app.views.auctionDetails",["$rootScope","$scope","abp.services.etender.asset","$stateParams","$location","$timeout","documentService","ngTableParams","abp.services.etender.emailNotification","FileUploader","abp.services.etender.tender","tenderHelperService","lookupService",function(n,t,i,r,u,f,e,o,s,h,c,l,a){function nt(n){t.detailes.curCancellations=null;n?(t.detailes.curCancellations=n.cancellations,t.cancelTenderModel.cancelFor={lotId:n.id,title:"Лот "+n.title,type:"lot"}):(t.detailes.curCancellations=t.detailes.cancellations,t.cancelTenderModel.cancelFor={lotId:null,title:"Аукціон",type:"tender"});t.cancelTenderModel.relatedLot=null;t.cancelTenderModel.reason=null;t.reasonTypes&&t.reasonTypes.length>0&&t.isShowReasonType()&&(t.cancelTenderModel.reasonType=t.reasonTypes[0].id)}function tt(n){var i=null;return n&&angular.forEach(t.detailes.lots,function(t){t.id==n&&(i=t)}),i}function ut(){abp.ui.setBusy();c.activate({id:t.detailes.id}).success(function(){abp.ui.clearBusy();t.reloadDetailes()}).error(function(){abp.ui.clearBusy()})}function ft(){if(y){var n=it.belowThreshold+r.tId;u.path(n)}}function et(){localStorage.tenderId=t.tId;u.path("/copyLot")}function ot(n){switch(n){case"pending":return"Запит оформляється";case"active":return"Скасування активоване";default:return"-"}}function st(){return!t.detailes||t.detailes.isEdit?!1:new Date(t.detailes.enquiryPeriod.endDate)>new Date}function ht(){return!1}var y=abp.setting.get("IsHideOnAuction").toLowerCase()==="true",w,b,v,k,d,p,g,it,rt;t.isAuction=y;w=1;t.cancellationTypesContainer={documentTypes:[],firstDocumentType:{}};b=[];t.fileUploadObj={};v=t.uploader=new h({});v.filters.push({name:"imageFilter",fn:function(n){var t="|"+n.type.slice(n.type.lastIndexOf("/")+1)+"|";return"|jpg|png|jpeg|bmp|gif|".indexOf(t)!==-1}});v.onWhenAddingFileFailed=function(n,t,i){console.info("onWhenAddingFileFailed",n,t,i)};v.onAfterAddingFile=function(n){console.info("onAfterAddingFile",n)};v.onAfterAddingAll=function(n){console.info("onAfterAddingAll",n)};v.onBeforeUploadItem=function(n){b.push(n);w=b.length;formData=[{tenderId:t.tId,control:"illustrate",documentType:t.vm.selectedDocTypeObj.id,index:w}];Array.prototype.push.apply(n.formData,formData);console.info("onBeforeUploadItem",n)};v.onProgressItem=function(n,t){console.info("onProgressItem",n,t)};v.onProgressAll=function(n){console.info("onProgressAll",n)};v.onSuccessItem=function(n,t,i,r){console.info("onSuccessItem",n,t,i,r)};v.onErrorItem=function(n,t,i,r){console.info("onErrorItem",n,t,i,r)};v.onCancelItem=function(n,t,i,r){console.info("onCancelItem",n,t,i,r)};v.onCompleteItem=function(n,t,i,r){console.info("onCompleteItem",n,t,i,r)};v.onCompleteAll=function(){console.info("onCompleteAll")};console.info("uploader",v);t.tId=r.aId;t.enableAddDocument=!0;t.cancelDocDescription="";t.statusDescription={};t.cancelTenderModel={};t.upload=[];t.showHideUploadIllustrationPanel=!1;t.userTenantId=localStorage.userTenantId||null;jQuery(document).ready(function(){jQuery(".go_back").click(function(){return parent.history.back(),!1})});t.cancelTenderModel={reason:"",cancelFor:null};k={id:t.tId,userName:localStorage.username||sessionStorage.username||null,display:!0};t.docBlockName="Документи аукціону";t.objectDocType="tenderId";t.setDescriptionByStatus=function(n){switch(n){case"pending":return"Опубліковано. Очікування інформаційного повідомлення";case"verification":return"Публікація інформаційного повідомлення";case"active":return"Інформаційне повідомлення опубліковано";case"complete":return"Аукціон завершено";case"deleted":return"Виключено з переліку";case"draft":return"Чернетка"}};t.getRegistrationStatus=function(n){switch(n.registrationDetails.status){case"registering":return"об'єкт реєструється";case"complete":return"об'єкт зареєстровано";case"unknown":return}};t.canModifyDocuments=function(){return!t.detailes||!t.detailes.isEdit?!1:t.detailes.lotStatus==="pending"};t.canModifyCancellationDocuments=function(){return!t.detailes||!t.detailes.isEdit||!t.detailes.curCancellations||t.detailes.curCancellations.length===0?!1:!0};t.goToAsset=function(n){u.path("assetDetails/"+n)};d=function(n){switch(n){case 1:return"вперше";case 2:return"вдруге";case 3:return"втретє";case 4:return"вчетверте";default:return"невідомо"}};t.createInfoMsng=function(n,t){u.path("createAssetInfoMsng/"+n+"/"+t)};t.setFile=function(n){t.files=n.files;var i=n.attributes["data-description"]?n.attributes["data-description"].nodeValue:null,r=n.attributes["data-doctype"].nodeValue;t.cancelTenderDocumentToAdd=n.files;t.addFiles(n.files,r,i)};t.cancelTenderDocumentToAdd={};t.setFileCancelTender=function(n){var i,r;t.files=n.files;i=n.attributes["data-description"]?n.attributes["data-description"].nodeValue:null;t.cancelTenderDocumentToAdd=n.files;r=t.cancellationTypesContainer.firstDocumentType.id;t.addFiles(n.files,r,i,t.detailes.cancellations[0])};p=function(n){var i=!0,t;if(n.awardDocuments&&n.awardDocuments.length>0)for(t=0;t<n.awardDocuments.length;t++)if(n.awardDocuments[t].url==null){i=!1;break}return i};g=function(){var r,n,i;if(t.detailes.status==="active.qualification"){for(n=[],i=0;i<t.detailes.lots.length;i+=1)n=n.concat(t.detailes.lots[i].awards);n.forEach(function(n){n.status=="pending"&&n.suppliers.length>0&&(r=n.suppliers[0].name)});t.detailes.bids.forEach(function(n){n.canLoadFiles=n.tenderers&&r&&n.tenderers[0].name==r?!0:!1})}};t.getAssetType=function(){if(!t.detailes)return null;switch(t.detailes.procurementMethodType){case"bounce":return n.source("bounce")}return null};t.reasonTypes=[{id:"cancelled",title:"Торги були відмінені"},{id:"unsuccessful",title:"Торги не відбулися"}];t.reasonCancellationVariant=null;t.reasonCancellationVariants=[{reasonText:"Згідно рішення виконавчої дирекції Замовника"},{reasonText:"Порушення порядку публікації оголошення"}];t.reasonCancellationVariantsChange=function(n){t.reasonCancellationVariant=n};t.getReasonTypeNameById=function(n){var i=null;return n&&angular.forEach(t.reasonTypes,function(t){t.id==n&&(i=t.title)}),i};t.isShowReasonType=function(){return t.detailes&&ht()?!0:!1};t.isAllCancelDocumentsExported=function(n){var t=n.documents;return n.allRequireDocsUploaded&&t.some(n=>n.documentType.type==="cancellationDetails"&&n.isExported)};t.openModalCancelTender=function(n){nt(n);t.cancellationTypesContainer.firstDocumentType.id||e.getDocumentTypes(t.cancellationTypesContainer,"CancellationDocument",t.detailes.procurementMethodType);$("#modalCancelTender").modal("show")};t.reloadDetailes=function(){t.documentsToAdd=null;t.userIsProductionMode=localStorage.isProdMode==="true";var n=i.getAuctionTenderNew({auctionId:"",tenderNewId:t.tId});abp.ui.setBusy();n.success(function(n){var v,u,f,o,y,w,s,r,h,i;if(t.detailes=n,t.detailes.procurementMethodTypeOriginal=t.detailes.procurementMethodType,l.setTenderDescriptionByStatus(t.detailes),t.detailes.tenderAttemptsStr=d(t.detailes.tenderAttempts),t.detailes.isMP="assetId"in t.detailes?!0:!1,t.detailes.prozorroDocLink=l.getProzorroDocumentLink(t.detailes.status,t.detailes.auctionID,2),t.cancellationStatus=function(n){return n.length>0&&n[0].status==="active"?"Торги відмінено":"-----"},t.cancelTenderModel&&t.cancelTenderModel.cancelFor&&nt(tt(t.cancelTenderModel.cancelFor.lotId)),t.detailes.documents!=null&&t.detailes.documents instanceof Array&&(v=t.detailes.documents,v.forEach(function(n){n.title=="sign.p7s"&&(t.detailes.isSignatureFileExist=!0)}),t.detailes.documents=[],t.detailes.documents=e.sortListOfDocs(v)),t.detailes.cancellations.forEach(function(n){switch(n.status){case"pending":n.statusDesc="Запит оформляється";case"active":n.statusDesc="Скасування активоване";default:n.statusDesc="-"}}),localStorage.getAwards=="true"&&(t.detailes.hasPendingAwards=!1),abp.ui.clearBusy(),angular.forEach(t.detailes.bids,function(n){n.documents=e.sortListOfDocs(n.documents)}),n.bids!=null&&n.bids.length>0){for(t.isBidExist=!0,u=0;u<n.bids.length;u++)if((!n.bids[u].documents||n.bids[u].documents.length==0)&&(n.bids[u].documents=e.sortListOfDocs(n.bids[u].documents),n.bids[u].isMyBid))for(f=0;f<n.bids[u].documents.length;f++)o=n.bids[u].documents[f].url,o&&o!=""&&(y={fileUri:o},w=c.getFilePath(y),function(n,i,r){r.success(function(r){t.detailes.bids[n].documents[i].url=r})}(u,f,w))}else t.isBidExist=!1;for(s=0;s<t.detailes.lots.length;s+=1){if(r=t.detailes.lots[s],r.documents=[],r.items.forEach(function(n){var t=n.documents;t&&(n.documents=[],n.documents=e.sortListOfDocs(t))}),r.awards)for(h=0;h<r.awards.length;h+=1)i=r.awards[h],i.supplier=i.suppliers&&i.suppliers.length>0?i.suppliers[0]:null,i.contractButtonTitle=a.getContractButtonTitle(t.detailes,i),i.contractings&&i.contractings.length>0&&(i.contractings[0].statusDesc=a.getContractingStatusDescByStatus(i.contractings[0].status)),(i.status==="active"||i.status==="cancel")&&(r.awardId=i.id,r.activeAward=i,r.hasActiveAward=!0,r.winner={name:i.suppliers&&i.suppliers.length>0?i.suppliers[0].name:null},r.isExportedAwardDocs=p(r.activeAward),i.contracts.length>0&&(r.hasContract=!0,r.contractStatusKey=i.contracts[0].status)),i.status==="pending"&&i.cancelAwardId&&(r.awardIsReadyForAnnuled=!0,r.pendingAward=i,r.readyForAnulledAward=i,r.winner={name:i&&i.suppliers&&i.suppliers.length>0?i.suppliers[0].name:null},r.readyForAnulledAward.awardDocuments=r.readyForAnulledAward.awardDocuments.filter(function(n){return n.documentTypeId!=1}),r.isExportedAwardDocs=p(r.readyForAnulledAward)),i.bidDocuments&&i.bidDocuments.length>0&&(i.bidDocuments=e.sortListOfDocs(i.bidDocuments)),i.awardDocuments&&i.awardDocuments.length>0&&(i.awardDocuments=e.sortListOfDocs(i.awardDocuments)),i.status!=="pending"||i.cancelAwardId||(r.pendingAward=i,r.winner={name:i.suppliers&&i.suppliers.length>0?i.suppliers[0].name:null},r.isExportedAwardDocs=p(r.pendingAward)),i.status==="pending.admission"&&(i.isNeedPublishAdmissionProtocol=e.checkIfDocExist("admissionProtocol",i.awardDocuments));t.statusClarify=r.hasActiveAward&&t.detailes.status==="active.awarded"?"[Переможця визначено]":null}g()})};localStorage.getAwards=="true"?(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>2&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},3e3)}(),localStorage.getAwards="false",t.detailes&&(t.detailes.hasPendingAwards=!1)):(t.reloadDetailes(),localStorage.getAwards="false");t.cancelTender=function(){var n=c.cancelTender(k);n.success(function(n){console.log(n);abp.notify.success("Торги с id "+k.id+" видалено!");u.path("/profile")})};t.$watch("detailes",function(n){if(n!=null)for(var t=0;t<n.lots.length;t+=1)n.lots[t].qualifications&&n.lots[t].qualifications.forEach(function(n){n.eligible=!1;n.qualified=!1;switch(n.status){case"active":n.statusDesc="допущено до аукціону";break;case"unsuccessful":n.statusDesc="пропозицію відхилено";break;case"cancelled":n.statusDesc="кваліфікація відмінена";break;case"pending":n.statusDesc="очікується кваліфікація";break;default:n.statusDesc="очікується кваліфікація"}n.documents&&(n.isExportedDocs=!n.documents.some(function(n){return n.url==null}))})});t.beginCancelTender=function(){t.cancelTenderModel.isMP=!0;t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();c.cancellationBegin(t.cancelTenderModel).success(function(n){var i=tt(t.cancelTenderModel.relatedLot);t.cancelTenderModel.relatedLot=null;n&&(i?i.cancellations=n:t.detailes.cancellations=n);abp.ui.clearBusy();t.openModalCancelTender(i)}).error(function(){abp.ui.clearBusy()})};t.endCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();c.cancellationEnd({cancellationId:t.detailes.curCancellations[0].id}).success(function(n){n?(t.cancelTenderModel.relatedLot?abp.notify.success("Об’єкт скасовано!"):y?abp.notify.success("Торги скасовано!"):abp.notify.success("Закупівлю скасовано!"),abp.ui.clearBusy(),t.reloadDetailes()):t.cancelTenderModel.relatedLot?abp.notify.error("Вибачте, Об’єкт не може бути скасований саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування Об’єкта через деякий час."):y?abp.notify.error("Вибачте, торги не можуть бути скасовані саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування через деякий час."):abp.notify.error("Вибачте, закупівлю не може бути скасовно саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування закупівлі через деякий час.");abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})};t.includeInvitation=function(){return n.env.isAuthorized?!t.detailes||!t.detailes.isEdit?!1:t.detailes.status=="active.enquiries"||t.detailes.status=="active.tendering"?!0:!1:!1};t.switchInvitation=function(){$("#invitation").modal("toggle");$("#modalGroupsInvitation").modal("toggle")};t.tableParams=new o({page:1,count:10,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(n,t){var i={maxResultCount:900,skipCount:(t.page()-1)*t.count(),sorting:"CreationTime DESC"}}});t.inviteGroups=function(){var n=[],i;t.groups&&(t.groups.forEach(function(t){t.checked&&n.push(t.id)}),i=s.notifyInvitationForTender({groupIds:n,tenderId:t.tId}),i.success(function(){abp.notify.success("Повідомлення группам надіслано!");$("#modalGroupsInvitation").modal("toggle")}))};t.isGroupCheked=function(){if(!t.groups)return!1;var n=!1;return t.groups.forEach(function(t){t.checked&&(n=!0)}),n};t.showSignModal=function(){var n={};n.type="auction";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.vm={canAsk:st,getCancellationStatusDesc:ot,goToUpdate:ft,activate:ut,copyAuction:et,selectedDocTypeObj:null};it={belowThreshold:"/updateTender/"};t.exportDocumentAndSetStatus=function(n){var i=new Date,r=new Date(n.beginTime);if(i.getHours()-r.getHours()>3){localStorage.removeItem("exportAdmissionProtocol");return}f(function(){documentTypesService.isDocumentExported(n).success(function(data){data?eval(n.exeFunction)(n.functionParams):t.exportDocumentAndSetStatus(n)})},5e3)};localStorage.exportAdmissionProtocol!=null&&(rt=JSON.parse(localStorage.getItem("exportAdmissionProtocol")),t.exportDocumentAndSetStatus(rt));t.toggleFavorite=function(n){l.toggleFavorite(n,c.createFavorite,c.deleteFavorite,!0)}}])}(),function(){"use strict";angular.module("app").controller("app.views.auctionObjects",["$scope","$rootScope",function(n,t){n.title="auctions";n.userId=t.userId}])}(),function(){angular.module("app").controller("app.views.createAsset",["$scope","$rootScope","$location","$q","abp.services.etender.asset","abp.services.etender.reference","abp.services.etender.address","tenderHelperService",function(n,t,i,r,u,f,e,o){var s,h;t.env.isProductionMode||o.sweetAlert({title:"Ви створюєте об'єкт в режимі навчання!",text:"При переході в реальний режим - дані не переносяться!",type:"warning",showCancelButton:!0,confirmButtonColor:"#2fa4e7",confirmButtonText:"Відміна",cancelButtonText:"Продовжити",closeOnConfirm:!0},function(){parent.history.back()},"alertCancelButton");n.createAssetModel={title:null,titleEN:null,titleRU:null,description:null,descriptionEN:null,descriptionRU:null,items:[],decisions:[],holder:{name:"",nameEN:"",identifier:{apiId:"",legalName:"",legalNameEN:"",uri:""},addressN:null,contactPoint:{fio:{firstName:"",lastName:"",patronymic:""},name:"",nameEN:"",email:"",telephone:"",faxNumber:"",url:""}},userId:abp.session.userId};n.assetId="";n.findAssetMessage="";s={balance:!1,address:!1,contactPoint:!1};n.showData=s;h=[];n.submit=function(){function a(){var t=u.createAsset(n.createAssetModel);return t.success(function(n){abp.ui.clearBusy(".panel-default");abp.notify.success("Об'єкт приватизації створено");i.path("/assetDetails/"+n)}).error(function(n){console.log(n);abp.ui.clearBusy(".panel-default")}),t}var t,c,f,l,e;for(abp.ui.setBusy(".panel-default:first"),t=n.createAssetModel,s.balance===!1?t.holder=null:(s.address===!1&&(t.holder.addressN=null),s.contactPoint===!1&&(t.holder.contactPoint=null)),c=0;c<t.items.length;c++)if(f=t.items[c],f.classification.id=f.classification.code,f.classification.description=f.classification.discription,f.registrationDetails.status!=="complete"&&(f.registrationDetails.registrationID="",f.registrationDetails.registrationDate=null),f.additionalClassifications)for(l=0;l<f.additionalClassifications.length;l++)e=f.additionalClassifications[l],e.id=e.code,e.description=e.discription;if(t.holder&&t.holder.contactPoint&&t.holder.contactPoint.fio.firstName&&(t.holder.contactPoint.name=o.joinName(t.holder.contactPoint.fio),t.holder.contactPoint.url!=null&&t.holder.contactPoint.url.length>5&&t.holder.contactPoint.url.substring(0,5)=="https"&&(t.holder.contactPoint.url=t.holder.contactPoint.url.replace("https","http"))),h.length>0)r.all(h).then(function(){return a()});else return a()};n.isAllDataGood=function(n){var t,i;if(n.items.length===0)return!1;for(t=0;t<n.items.length;t+=1)if(i=n.items[t],!i.classification.id)return!1;return!0};n.findByAssetId=function(){n.assetId&&(abp.ui.setBusy("#findAssetId"),u.isAssetExistByAssetId(n.assetId).success(function(t){n.findAssetMessage=t===!0?"Об’єкт вже додано до переліку. Прохання використати існуючий об’єкт для публікації інформаційного повідомлення":"Об'єкт з даним номером не знайдено";abp.ui.clearBusy("#findAssetId")}).error(function(){abp.ui.clearBusy("#findAssetId")}))};n.resetAssetId=function(){n.findAssetMessage=""}}])}(),function(){angular.module("app").controller("app.views.createAssetInfoMsng",["$rootScope","$scope","$stateParams","abp.services.etender.asset","$location",function(n,t,i,r,u){function f(){if(!t.aID){t.objectData=null;return}t.objectData.assetId=t.aID;r.getAssetNumberById(t.aID).success(function(n){t.objectData.objectId=n;t.objectData.decision={};t.objectData.decision.showUA=!0})}t.aID=i.id;t.isYokeMode=i.lotType==="yoke";t.objectData={decision:null,assetId:"",objectId:"",lotType:i.lotType};f();t.createLot=function(n){abp.ui.setBusy(".panel-default");r.createLot(n).success(function(n){abp.ui.clearBusy(".panel-default");abp.notify.success("Інформаційне повідомлення створено");u.path("/lotDetails/"+n)}).error(function(n){console.log(n);abp.ui.clearBusy(".panel-default")})}}])}(),function(){angular.module("app").controller("app.views.lotDetails",["$rootScope","$scope","abp.services.etender.asset","$stateParams","$location","$timeout","Upload","documentService","ngTableParams","abp.services.etender.emails","FileUploader",function(n,t,i,r,u,f,e,o,s,h,c){function k(n,i){n.upload=e.upload({url:"./api/files/upload",method:"POST",fields:{myObj:t.fileUploadObj},file:n});n.upload.then(function(t){f(function(){n.result=t.data})},function(n){n.status>0&&(t.errorMsg=n.status+": "+n.data)});n.upload.progress(function(t){n.progress=Math.min(100,parseInt(100*t.loaded/t.total))});n.upload.success(function(n,r,u,e){console.log("file "+e.file.name+"is uploaded successfully. Response: "+n);abp.notify.success("Файл додано!");f(function(){t.cancelTenderDocumentToAdd={}},2e3);t.uploadFilesCounter++;t.uploadFilesCounter===i.length&&(t.uploadFilesCounter=0,t.reloadDetailes(),i=[])}).error(function(n){abp.notify.error(n.exceptionMessage||n.message);t.reloadDetailes()});n.upload.xhr(function(){})}function g(n,i,r,u){t.errorMsg=null;t.cancelDocDescription="";t.fileUploadObj={mPLotId:t.aId,documentId:"",type:r,description:u};k(n,i)}function nt(n){var i=null;return n&&angular.forEach(t.detailes.lots,function(t){t.id==n&&(i=t)}),i}function tt(n){return n.documentType!=null?n.documentType.type=="cancellationDetails"&&n.isExported:!1}function it(){return o.checkIfDocExist("clarifications",t.detailes.documents)}var a=abp.setting.get("IsHideOnAuction").toLowerCase()==="true",v,y,l,p,w,b,d;t.isAuction=a;v=1;y=[];t.fileUploadObj={};l=t.uploader=new c({});jQuery(document).ready(function(){jQuery(".go_back").click(function(){return parent.history.back(),!1})});l.filters.push({name:"imageFilter",fn:function(n){var t="|"+n.type.slice(n.type.lastIndexOf("/")+1)+"|";return"|jpg|png|jpeg|bmp|gif|".indexOf(t)!==-1}});l.onWhenAddingFileFailed=function(n,t,i){console.info("onWhenAddingFileFailed",n,t,i)};l.onAfterAddingFile=function(n){console.info("onAfterAddingFile",n)};l.onAfterAddingAll=function(n){console.info("onAfterAddingAll",n)};l.onBeforeUploadItem=function(n){y.push(n);v=y.length;formData=[{mPLotId:t.aId,control:"illustrate",documentType:t.vm.selectedDocTypeObj.id,index:v}];Array.prototype.push.apply(n.formData,formData);console.info("onBeforeUploadItem",n)};l.onProgressItem=function(n,t){console.info("onProgressItem",n,t)};l.onProgressAll=function(n){console.info("onProgressAll",n)};l.onSuccessItem=function(n,t,i,r){console.info("onSuccessItem",n,t,i,r)};l.onErrorItem=function(n,t,i,r){console.info("onErrorItem",n,t,i,r)};l.onCancelItem=function(n,t,i,r){console.info("onCancelItem",n,t,i,r)};l.onCompleteItem=function(n,t,i,r){console.info("onCompleteItem",n,t,i,r)};l.onCompleteAll=function(){console.info("onCompleteAll")};console.info("uploader",l);t.aId=r.aId;t.enableAddDocument=!0;t.cancelDocDescription="";t.statusDescription="";t.cancelTenderModel={};t.upload=[];t.showHideUploadIllustrationPanel=!1;t.userTenantId=localStorage.userTenantId||null;t.cancelTenderModel={reason:"",cancelFor:null};t.docBlockName="Документи інформаційного повідомлення";t.objectDocType="mPLotId";p=function(){switch(t.detailes.status){case"draft":t.statusDescription="Чернетка";break;case"composing":t.statusDescription="Публікація інформаційного повідомлення";break;case"verification":t.statusDescription="Перевірка доступності об’єкту";break;case"invalid":t.statusDescription="Недійсний";break;case"pending":t.statusDescription="Опубліковано";break;case"active.salable":t.statusDescription="Об’єкт виставлено на продаж";break;case"active.auction":t.statusDescription="Аукціон";break;case"active.contracting":t.statusDescription="Аукціон завершено. Кваліфікація";break;case"pending.sold":t.statusDescription="Аукціон завершено";break;case"pending.dissolution":t.statusDescription="Аукціон завершено. Об’єкт не продано";break;case"dissolved":t.statusDescription="Об’єкт не продано";break;case"sold":t.statusDescription="Об’єкт продано";break;case"deleted":case"pending.deleted":t.statusDescription="Об’єкт виключено"}};w=function(n){switch(n.status){case"scheduled":n.statusDescription="Заплановано";break;case"active":n.statusDescription="Приватизація";break;case"complete":n.statusDescription="Приватизацію завершено";break;case"cancelled":n.statusDescription="Торги відмінено";break;case"unsuccessful":n.statusDescription="Торги не відбулись";break;default:n.statusDescription=n.status}};t.getRegistrationStatus=function(n){switch(n.registrationDetails.status){case"registering":return"об'єкт реєструється";case"complete":return"об'єкт зареєстровано";case"unknown":return"невідомо (не застосовується)"}};t.canModifyDocuments=function(){if(!t.detailes||!t.detailes.isEdit||t.detailes&&t.detailes.status!=="pending"&&t.detailes.status!=="composing")return!1;if(t.isYokeMode&&t.detailes.status==="pending"){if(t.detailes.rectificationPeriod){var n=new Date,i=new Date(t.detailes.rectificationPeriod.endDate);return i>n}}else return!0;return!1};t.canEditLot=function(){if(t.detailes&&!t.detailes.isEdit)return!1;if(t.detailes&&t.detailes.status==="pending")if(t.isYokeMode){if(t.detailes.rectificationPeriod){var n=new Date,i=new Date(t.detailes.rectificationPeriod.endDate);return i>n}}else return!0;return!1};t.canEditAuction=function(){return t.detailes&&t.detailes.isEdit&&t.detailes.status==="composing"?!0:t.canEditLot()};t.isAuctionsNotNew=function(){for(var n=0;n<t.detailes.auctions.length;++n)if(t.detailes.auctions[n].isNewAuct===!0||t.detailes.auctions[n].isExportError===!0)return!1;return!0};t.goToUpdate=function(n){u.path("updateAssetInfoMsng/"+n)};t.goToUpdateAuction=function(n,t){u.path("updateAuctionMp/"+n+"/"+t)};t.setVerificationStatus=function(){abp.ui.setBusy();i.lotVerification(t.aId).success(function(n){abp.ui.clearBusy();n===!0?abp.notify.success("Інформаційне повідомлення успішно опубліковано!"):abp.notify.warn("Інформаційне повідомлення не пройшло перевірку");t.reloadDetailes()}).error(function(){abp.ui.clearBusy()})};t.isSendBidButton=function(){return!t.detailes||!abp.session.userId||t.detailes.isEdit?!1:t.detailes.auctions&&t.detailes.auctions.length>0&&t.detailes.auctions[0].tenderNewId?!1:!0};t.openModalSendBid=function(){t.sb={phone:""};i.getUserPhone().success(function(n){t.sb.phone=n});$("#modalSendBid").modal("show")};t.sendBidInfo=function(){var n={mpLotId:t.detailes.id,mpLotNumber:t.detailes.objectID,phoneNumber:t.sb.phone};abp.ui.setBusy();i.sendBidToSupport(n).success(function(n){abp.ui.clearBusy();n===!0?toastr.success("Дякуємо, Вашу заявку прийнято! Найближчим часом з Вами зв’яжеться відповідальний менеджер","",{closeButton:!0,timeOut:0,extendedTimeOut:0}):abp.notify.warn("Непередбачена помилка..");t.reloadDetailes()}).error(function(){abp.ui.clearBusy()})};t.cancelTenderDocumentToAdd={};t.setFile=function(n){t.files=n.files;var i=n.attributes["data-description"]?n.attributes["data-description"].nodeValue:null,r=n.attributes["data-doctype"].nodeValue;t.cancelTenderDocumentToAdd=n.files;t.addFiles(n.files,r,i)};b=function(){var r,n,i;if(t.detailes.status=="active.qualification"){for(n=[],i=0;i<t.detailes.lots.length;i+=1)n=n.concat(t.detailes.lots[i].awards);n.forEach(function(n){n.status=="pending"&&n.suppliers.length>0&&(r=n.suppliers[0].name)});t.detailes.bids.forEach(function(n){n.canLoadFiles=n.tenderers&&r&&n.tenderers[0].name==r?!0:!1})}};t.getAssetType=function(){if(!t.detailes)return null;switch(t.detailes.procurementMethodType){case"bounce":return n.source("bounce")}return null};t.reasonTypes=[{id:"cancelled",title:"Торги були відмінені"},{id:"unsuccessful",title:"Торги не відбулися"}];t.reasonCancellationVariant=null;t.reasonCancellationVariants=[{reasonText:"Згідно рішення виконавчої дирекції Замовника"},{reasonText:"Порушення порядку публікації оголошення"}];t.reasonCancellationVariantsChange=function(n){t.reasonCancellationVariant=n};t.getReasonTypeNameById=function(n){var i=null;return n&&angular.forEach(t.reasonTypes,function(t){t.id==n&&(i=t.title)}),i};t.isShowReasonType=function(){return t.detailes&&isAbove()?!0:!1};t.reloadDetailes=function(){t.documentsToAdd=null;var n=i.getMpLot(t.aId);abp.ui.setBusy();n.success(function(n){console.log("tenderDetailes",n);t.detailes=n;t.isYokeMode=n.objectType==="yoke";t.detailes.procurementMethodType="sellout.english";p();t.detailes.auctions.forEach(function(n){w(n)});abp.ui.clearBusy();t.detailes.hasClarificationDocs=it();angular.forEach(t.detailes.bids,function(n){n.documents=o.sortListOfDocs(n.documents)});b()}).error(function(){abp.ui.clearBusy()})};localStorage.getAwards=="true"?(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>2&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},3e3)}(),localStorage.getAwards="false",t.detailes&&(t.detailes.hasPendingAwards=!1)):(t.reloadDetailes(),localStorage.getAwards="false");t.abortUpload=function(n){t.upload[n].abort()};t.loadGetAwards=function(){t.getAwardsUrl="/App/Main/views/tenders/modalGetAwards.cshtml"};t.$watch("selectedDocType",function(n){n!=null});t.addFiles=function(n,i,r){if(t.formUpload=!1,n!=null)for(var u=0;u<n.length;u++)t.errorMsg=null,function(t){g(t,n,i,r)}(n[u])};t.$watch("documentsToUpdate",function(n){if(n!=null)for(var i=0;i<n.length;i++)t.errorMsg=null,function(n){t.update(n)}(n[i],i)});t.$watch("selected",function(n){if(n!=null)for(var i=0;i<n.length;i++)t.errorMsg=null,function(n){t.update(n)}(n[i],i)});t.uploadFilesCounter=0;t.update=function(n){if(t.fileUploadObj.mPLotId=t.aId,n!=null)for(var i=0;i<n.length;i++)t.errorMsg=null,function(t){k(t,n)}(n[i])};t.changeDoc=function(n){t.fileUploadObj.documentId=n.id;t.fileUploadObj.cancellationId=t.detailes.cancellations[0].id;_(t.detailes.cancellations[0].documents).each(function(n){n.ch=!1});n.ch=!0};t.clearDoc=function(){t.fileUploadObj.documentId=""};d=function(n){if(confirm("Ви дійсно бажаєте видалити документ?")){var i=$http.post("./api/files/DeleteDocument",n);i.success(function(n){console.log(n);t.reloadDetailes()});i.error(function(n){console.log(n)})}};t.removeTenderDocument=function(n){var t={TenderDocumentId:n};d(t)};t.beginCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();t.cancelTenderModel.reason=t.reasonCancellationVariant;tender.cancellationBegin(t.cancelTenderModel).success(function(n){var i=nt(t.cancelTenderModel.relatedLot);t.cancelTenderModel.relatedLot=null;n&&(i?i.cancellations=n:t.detailes.cancellations=n);abp.ui.clearBusy();t.openModalCancelTender(i)}).error(function(){abp.ui.clearBusy()})};t.endCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();tender.cancellationEnd({cancellationId:t.detailes.curCancellations[0].id}).success(function(n){n?(t.cancelTenderModel.relatedLot?abp.notify.success("Об’єкт скасовано!"):a?abp.notify.success("Торги скасовано!"):abp.notify.success("Закупівлю скасовано!"),abp.ui.clearBusy(),t.reloadDetailes()):t.cancelTenderModel.relatedLot?abp.notify.error("Вибачте, Об’єкт не може бути скасований саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування Об’єкта через деякий час."):a?abp.notify.error("Вибачте, торги не можуть бути скасовані саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування через деякий час."):abp.notify.error("Вибачте, закупівлю не може бути скасовно саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування закупівлі через деякий час.");abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})};t.deleteLot=function(){if(t.detailes.documents)if(t.detailes.documents.some(tt))abp.ui.setBusy(),i.deleteLot(t.detailes.id).success(function(){abp.ui.clearBusy();abp.notify.success("Інформаційне повідомлення видалено з реєстру!");t.reloadDetailes()}).error(function(){abp.ui.clearBusy()});else return abp.notify.error("Для видалення лоту потрібно завантажити документ &quot;Причини скасування&quot;!");else return};t.tableParams=new s({page:1,count:10,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(n,i){var r={maxResultCount:900,skipCount:(i.page()-1)*i.count(),sorting:"CreationTime DESC"},u=h.getEmailGroups(r);abp.ui.setBusy(".panel-default:first");u.success(function(r){abp.ui.clearBusy(".panel-default");i.total(r.countAllRecords);r.items.forEach(function(n){n.checked=!1});t.groups=r.items;n.resolve(r.items)}).error(function(){console.log("ERROR!!! Can't get groups!")})}})}])}(),function(){"use strict";angular.module("app").controller("app.views.lotObjects",["$scope","$rootScope",function(n,t){n.title="lots";n.userId=t.userId}])}(),function(){angular.module("app").controller("app.views.updateAsset",["$scope","$rootScope","$location","$q","$stateParams","abp.services.etender.asset","abp.services.etender.address","tenderHelperService",function(n,t,i,r,u,f,e,o){function v(){if(!n.aId){n.updateAssetModel=null;return}f.getAsset(n.aId).success(function(t){var u,i,f,r;for(n.updateAssetModel=t,n.updateAssetModel.holder&&(h.balance=!0,n.updateAssetModel.holder.addressN&&(h.address=!0),n.updateAssetModel.holder.contactPoint&&n.updateAssetModel.holder.contactPoint.name&&(n.updateAssetModel.holder.contactPoint.fio=o.parseName(n.updateAssetModel.holder.contactPoint.name),h.contactPoint=!0)),u=0;u<n.updateAssetModel.items.length;u++)if(i=n.updateAssetModel.items[u],i.classification.code=i.classification.id,i.classification.discription=i.classification.description,i.additionalClassifications)for(f=0;f<i.additionalClassifications.length;f++)r=i.additionalClassifications[f],r.code=r.id,r.discription=r.description;s=angular.copy(n.updateAssetModel);n.canValid=!0})}function l(t){return angular.isObject(n.updateAssetModel[t])||t==="objectHasChanged"?!1:(n.updateAssetModel[t]!=s[t]&&(console.log("old "+t+": "+s[t]),console.log("new "+t+": "+n.updateAssetModel[t])),n.updateAssetModel[t]!=s[t])}var h,s,a,c;n.aId=u.aId;n.canValid=!1;h={balance:!1,address:!1,contactPoint:!1};n.showData=h;v();s={};a=!1;n.isAllDataGood=function(t){var i,r;if(!n.canValid||t.items.length===0)return!1;for(i=0;i<t.items.length;i+=1)if(r=t.items[i],!r.classification.id)return!1;return!0};c=[];n.submit=function(){function y(){var t=f.updateAsset(n.updateAssetModel);return t.success(function(t){abp.ui.clearBusy(".panel-default");t===!0?(abp.notify.success("Об'єкт приватизації змінено"),i.path("/assetDetails/"+n.aId)):abp.notify.error("Під час збереження об'єкту виникла помилка")}).error(function(n){console.log(n);abp.ui.clearBusy(".panel-default")}),t}var t,a,u,v,e;for(abp.ui.setBusy(".panel-default:first"),t=n.updateAssetModel,n.updateAssetModel.objectHasChanged=!1,h.balance===!1?t.holder=null:(h.address===!1&&(t.holder.addressN=null),h.contactPoint===!1&&(t.holder.contactPoint=null)),a=0;a<t.items.length;a++)if(u=t.items[a],u.classification.id=u.classification.code,u.classification.description=u.classification.discription,u.registrationDetails.status!=="complete"&&(u.registrationDetails.registrationID="",u.registrationDetails.registrationDate=null),u.additionalClassifications)for(v=0;v<u.additionalClassifications.length;v++)e=u.additionalClassifications[v],e.id=e.code,e.description=e.discription;if(t.holder&&t.holder.contactPoint&&t.holder.contactPoint.fio.firstName&&(t.holder.contactPoint.name=o.joinName(t.holder.contactPoint.fio),t.holder.contactPoint.url!=null&&t.holder.contactPoint.url.length>5&&t.holder.contactPoint.url.substring(0,5)=="https"&&(t.holder.contactPoint.url=t.holder.contactPoint.url.replace("https","http"))),Object.keys(t).some(l)===!0?n.updateAssetModel.objectHasChanged=!0:t.items.some(function(n,t){return!angular.equals(n,s.items[t])})?n.updateAssetModel.objectHasChanged=!0:t.items.length!=s.items.length?n.updateAssetModel.objectHasChanged=!0:angular.isDefined(t.holder)&&t.holder!==null&&(Object.keys(t.holder).some(l)===!0?n.updateAssetModel.objectHasChanged=!0:s.holder==null?n.updateAssetModel.objectHasChanged=!0:angular.equals(t.holder.identifier,s.holder.identifier)?angular.equals(t.holder.addressN,s.holder.addressN)?angular.equals(t.holder.contactPoint,s.holder.contactPoint)||(n.updateAssetModel.objectHasChanged=!0):n.updateAssetModel.objectHasChanged=!0:n.updateAssetModel.objectHasChanged=!0),t.decisions.forEach(function(n,t){angular.equals(n,s.decisions[t])||(n.isChanged=!0)}),c.length>0)r.all(c).then(function(){return y()});else return y()}}])}(),function(){angular.module("app").controller("app.views.updateAssetInfoMsng",["$scope","$rootScope","$location","$q","$stateParams","abp.services.etender.asset","abp.services.etender.address","tenderHelperService",function(n,t,i,r,u,f,e,o){function a(){if(!n.aId){n.updateLotModel=null;return}f.getMpLotForUpdate(n.aId).success(function(t){var u,i,f,r;for(n.updateLotModel=t,n.updateLotModel.holder&&(h.balance=!0,n.updateLotModel.holder.addressN&&(h.address=!0),n.updateLotModel.holder.contactPoint&&n.updateLotModel.holder.contactPoint.name&&(n.updateLotModel.holder.contactPoint.fio=o.parseName(n.updateLotModel.holder.contactPoint.name),h.contactPoint=!0)),u=0;u<n.updateLotModel.items.length;u++)if(i=n.updateLotModel.items[u],i.classification.code=i.classification.id,i.classification.discription=i.classification.description,i.additionalClassifications)for(f=0;f<i.additionalClassifications.length;f++)r=i.additionalClassifications[f],r.code=r.id,r.discription=r.description;s=angular.copy(n.updateLotModel);n.canValid=!0;n.isYokeMode=t.objectType==="yoke"})}function l(t){return angular.isObject(n.updateLotModel[t])||t==="objectHasChanged"?!1:(n.updateLotModel[t]!=s[t]&&(console.log("old "+t+": "+s[t]),console.log("new "+t+": "+n.updateLotModel[t])),n.updateLotModel[t]!=s[t])}var h,s,c;n.aId=u.aId;n.canValid=!1;h={balance:!1,address:!1,contactPoint:!1};n.showData=h;a();s={};n.isAllDataGood=function(t){var i,r;if(!n.canValid||t.items.length===0)return!1;for(i=0;i<t.items.length;i+=1)if(r=t.items[i],!r.classification.id)return!1;return!0};c=[];n.submit=function(){function y(){var t=f.updateMpLot(n.updateLotModel);return t.success(function(t){abp.ui.clearBusy(".panel-default");t===!0?(abp.notify.success("Інформаційне повідомлення змінено"),i.path("/lotDetails/"+n.aId)):abp.notify.error("Під час збереження об'єкту виникла помилка")}).error(function(n){console.log(n);abp.ui.clearBusy(".panel-default")}),t}var t,a,u,v,e;for(abp.ui.setBusy(".panel-default:first"),t=n.updateLotModel,h.balance===!1?t.holder=null:(h.address===!1&&(t.holder.addressN=null),h.contactPoint===!1&&(t.holder.contactPoint=null)),a=0;a<t.items.length;a++)if(u=t.items[a],u.classification.id=u.classification.code,u.classification.description=u.classification.discription,u.registrationDetails.status!=="complete"&&(u.registrationDetails.registrationID="",u.registrationDetails.registrationDate=null),u.additionalClassifications)for(v=0;v<u.additionalClassifications.length;v++)e=u.additionalClassifications[v],e.id=e.code,e.description=e.discription;if(t.holder&&t.holder.contactPoint&&t.holder.contactPoint.fio.firstName&&(t.holder.contactPoint.name=o.joinName(t.holder.contactPoint.fio),t.holder.contactPoint.url!=null&&t.holder.contactPoint.url.length>5&&t.holder.contactPoint.url.substring(0,5)=="https"&&(t.holder.contactPoint.url=t.holder.contactPoint.url.replace("https","http"))),Object.keys(t).some(l)===!0?n.updateLotModel.objectHasChanged=!0:t.items.some(function(n,t){return!angular.equals(n,s.items[t])})?n.updateLotModel.objectHasChanged=!0:t.items.length!=s.items.length?n.updateLotModel.objectHasChanged=!0:angular.isDefined(t.holder)&&t.holder!==null&&(Object.keys(t.holder).some(l)===!0?n.updateLotModel.objectHasChanged=!0:angular.equals(t.holder.identifier,s.holder.identifier)?angular.equals(t.holder.addressN,s.holder.addressN)?angular.equals(t.holder.contactPoint,s.holder.contactPoint)||(n.updateLotModel.objectHasChanged=!0):n.updateLotModel.objectHasChanged=!0:n.updateLotModel.objectHasChanged=!0),t.decisions.forEach(function(n,t){angular.equals(n,s.decisions[t])||(n.isChanged=!0)}),c.length>0)r.all(c).then(function(){return y()});else return y()}}])}(),function(){angular.module("app").controller("app.views.updateAuctionMp",["$scope","$rootScope","$location","$q","$stateParams","abp.services.etender.asset","tenderHelperService",function(n,t,i,r,u,f,e){function s(){if(!n.aId){n.updateAuctionModel=null;return}f.getAuction(n.aId).success(function(t){t.tenderAttempts===1&&(t.auctionPeriod||(t.auctionPeriod={}),t.auctionPeriod.startDate&&(t.auctionPeriod.startDate=new Date(t.auctionPeriod.startDate.toString())),t.auctionPeriod.minDays=20,n.isDataMoreThanMinimal(t.auctionPeriod));n.updateAuctionModel=t;n.isStepValid(t);o=n.updateAuctionModel;n.oldAuction=angular.copy(t);o.tenderAttempts!==1&&o.tenderAttempts!==0||o.accountDetails&&o.accountDetails.accountIdentification&&(!o.accountDetails.accountIdentification||o.accountDetails.accountIdentification.length!==0)||(o.accountDetails?o.accountDetails.accountIdentification||(o.accountDetails.accountIdentification=[]):o.accountDetails={accountIdentification:[]});n.canValid=!0})}function h(){var t=f.getMpLot(n.lotId);abp.ui.setBusy();t.success(function(t){console.log("mpLot",t);n.isYokeMode=t.objectType==="yoke";abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})}function c(n,t){return JSON.stringify(n)===JSON.stringify(t)}jQuery(document).ready(function(){jQuery(".go_back").click(function(){return parent.history.back(),!1})});n.aId=u.aId;u.lotId&&(n.lotId=u.lotId);n.floatNumberRegex=t.regex.floatNumber;n.numberRegex=t.regex.number;n.dateRegex=t.regex.date;var o=n.updateAuctionModel;s();n.isYokeMode=!0;h();n.isDutchStepsValid=function(){return n.canValid?o.dutchSteps&&(o.dutchSteps<1||o.dutchSteps>99)?!1:!0:!1};n.isTenderingDurationValid=function(){return n.canValid?o.tenderAttempts===1?!0:o.tenderingDuration&&(o.tenderingDuration<20||o.tenderingDuration>35)?!1:!0:!1};n.isDataMoreThanMinimal=function(n){var i=Date.parse(n.startDate),t=new Date;t.setDate(t.getDate()+n.minDays);n.isGood=i>t};n.isAllDataGood=function(t){return!n.canValid||!n.isDutchStepsValid()||!n.isTenderingDurationValid()?!1:t.tenderAttempts===1&&(t.auctionPeriod.startDate==null||(e.isEnvironmentQA()?!1:!t.auctionPeriod.isGood))?!1:!c(n.oldAuction,o)};n.submit=function(){o.value&&(o.value.currency="UAH");o.minimalStep&&(o.minimalStep.currency="UAH");o.guarantee&&(o.guarantee.currency="UAH");o.registrationFee&&(o.registrationFee.currency="UAH");o.minimalStep&&(o.minimalStep.valueAddedTaxIncluded=o.value.valueAddedTaxIncluded);o.tenderAttempts===0&&(o.tenderingDuration=null,o.minimalStep=null,o.auctionPeriod=null,o.registrationFee=null,o.guarantee=null);abp.ui.setBusy(".panel-default:first");f.updateAuction(o).success(function(t){t===!0?(abp.notify.success("Аукціон змінено"),i.path("/lotDetails/"+n.lotId)):(s(),abp.notify.error("Під час збереження аукціону виникла помилка"));abp.ui.clearBusy(".panel-default")}).error(function(n){console.log(n);abp.ui.clearBusy(".panel-default")})};n.isStepValid=function(n){if(n.tenderAttempts<2){if(n.minimalStep!=null&&n.value!=null&&n.minimalStep.amount!=null&&n.value.amount!=null){var i=parseFloat(n.value.amount),t=parseFloat(n.minimalStep.amount),r=!1;t&&t>=(i/100).toFixed(2)&&t<=(i/10).toFixed(2)&&(r=!0);n.minimalStep.isStepValid=r}}else n.minimalStep||(n.minimalStep={}),n.minimalStep.isStepValid=!0};n.isGuaranteeValid=function(n,t,i){var r=!1,f,u;return t&&o.tenderAttempts<2&&(f=parseFloat(t),u=parseFloat(n),u&&f>=(u/50).toFixed(2)&&f<=(u/10).toFixed(2)?r=!0:u||(r=!0)),(t===undefined||t===""||o.tenderAttempts>1)&&(r=!0),i&&i.$setValidity("isGuaranteeValid",r),r}}])}(),function(){angular.module("app").controller("app.views.activate",["$scope","$rootScope","$http","$stateParams",function(n,t,i,r){var u={UserId:r.userId,Code:r.code},f=i.post("/Account/ConfirmEmail",u);f.success(function(t){!t||!t.result||!t.result.res?!t||!t.result||!t.result.err?abp.notify.error("Помилка","Не вдалося автивувати обліковий запис"):abp.notify.error(t.result.err):(n.isConfirmed=t.result.res,n.userNameResult=t.result.userName)})}])}(),function(){angular.module("app").controller("app.views.changeEmail",["$scope","$rootScope","$http","$stateParams",function(n,t,i,r){var u={UserId:r.userId,Code:r.code},f=i.post("/Account/ChangeEmail",u);f.success(function(t){!t||!t.result||!t.result.res?!t||!t.result||!t.result.err?abp.notify.error("Помилка","Не вдалося змінити поштову скриньку"):abp.notify.error(t.result.err):(n.isConfirmed=t.result.res,n.$emit("EmailAddressNewHandle"))})}])}(),function(){angular.module("app").controller("loginNewCtrl",["$scope","$http","$rootScope","$location","qa","abp.services.etender.user","abp.services.etender.organization","tenderHelperService",function(n,t,i,r,u,f,e,o){var s,c,h,l;dataLayer.push({event:"virtualPageView",virtualPageURL:"/login",virtualPageTitle:"login_access"});n.loginFormData={isShowCatcha:!1,isCaptchaGood:!0,login:null,password:null,rememberMe:!1};n.isQA=o.isEnvironmentQA(document.location.host)||o.isEnvironmentLocalhost(document.location.host);s=0;sessionStorage.countAttempts=0;c=2;i.env.isAuthorized&&r.path("/profile");h=function(n){i.env.isAuthorized=n};l=function(n){return abp.ajax({url:abp.appPath+"Account/Login",type:"POST",data:JSON.stringify(n),beforeSend:abp.ui.setBusy(".btn")})};n.submit=function(){n.isQA||(s=sessionStorage.countAttempts,sessionStorage.countAttempts=++s,sessionStorage.countAttempts>c&&(n.loginFormData.isCaptchaGood=!1,n.loginFormData.isShowCatcha=!0));var i={UsernameOrEmailAddress:n.loginFormData.login,Password:n.loginFormData.password,returnUrl:null},t=null;return t=l(i),t.fail(function(){abp.notify.error("Невірний логін або пароль.")}),t.then(function(){sessionStorage.countAttempts=0;abp.notify.success("Ви успішно увійшли в систему!");dataLayer.push({event:"virtualPageView",virtualPageURL:"/thankYouPageLogin",virtualPageTitle:"Success_login"});abp.ui.clearBusy(".btn");n.loginFormData.rememberMe?localStorage.username=i.UsernameOrEmailAddress:sessionStorage.username=i.UsernameOrEmailAddress;h(!0);var t=function(){localStorage.templateTabUrl="/app/Main/views/profile/myOrganization.cshtml";r.path("/profile")};o.getUserAndOrganizationData(f.getUser,e.getOrganization,t)},function(){abp.ui.clearBusy(".btn");h(!1)}),t};n.$watch("userNameResult",function(t){t&&(n.loginFormData.login=t)})}]);angular.module("app").controller("logoutController",["$rootScope","$scope","$location","$http",function(n,t,i,r){var u=function(){var u=r.post("/Account/Logout");u.success(function(r){r&&(n.env={},t.isAuthorized=!1,sessionStorage.clear(),localStorage.clear(),i.path("/login"))})};u()}])}();angular.module("app").controller("registerNewCtrl",["$rootScope","$scope","tenderHelperService","$cookies",function(n,t,i,r){t.isQA=i.isEnvironmentQA(document.location.host)||i.isEnvironmentLocalhost(document.location.host);t.profileForm={login:null,emailAddress:null,phone:"38",fax:null,name:null,isCaptchaGood:t.isQA};t.regexPattern=n.regex.wordAnyLanguageWithSpaces;var u=function(n){n&&dataLayer.push({event:"virtualPageView",virtualPageURL:"/thankYouPage1",virtualPageTitle:"First_Step_Registration"});t.isSendMessage=n},f=function(n){return n.Phone&&n.Phone.charAt(0)!=="+"&&(n.Phone="+"+n.Phone),abp.ajax({url:abp.appPath+"Account/Register",type:"POST",data:JSON.stringify(n),beforeSend:abp.ui.setBusy(".btn")})};t.submit=function(n){var i,e;if(!n.$valid){n.$setDirty();n.email_.$setDirty();n.name.$setDirty();n.password.$setDirty();n.phone_.$setDirty();n.surname.$setDirty();return}return i={UserName:t.profileForm.emailAddress,EmailAddress:t.profileForm.emailAddress,Password:t.password,FirstName:t.profileForm.name,LastName:t.profileForm.surname,Phone:n.phone_.$modelValue,RegistrationGATag:r.get("_ga")},console.log(i),e=f(i),e.then(function(n){n&&(n.success?abp.notify.success("Ви успішно зареєструвалися!"):(console.log("ERROR! ",n.message),abp.notify.error(n.message)),abp.ui.clearBusy(".btn"),t.$apply(u(n.success)))},function(){abp.ui.clearBusy(".btn");t.$apply(u(!1))}),e}}]),function(){angular.module("app").controller("app.views.resetPassword",["$scope","$stateParams","$http","$state",function(n,t,i,r){n.isChangedPassword=!1;n.submit=function(){var u={UserId:t.userId,Password:n.password,Code:t.code},f=i.post("/Account/ResetPassword",u);f.success(function(t){t?(n.isChangedPassword=!0,abp.notify.success("Пароль успішно змінено"),r.go("login")):abp.notify.error("Помилка","Не вдалося змінити пароль")})}}])}(),function(){angular.module("app").controller("app.views.sendPassword",["$scope","tenderHelperService",function(n,t){n.isCaptchaGood=!1;t.isEnvironmentQA()||!0?(n.isQA=!0,n.isCaptchaGood=!0):n.isQA=!1;var i=function(n){return abp.ajax({url:abp.appPath+"Account/ForgotPassword",type:"POST",data:JSON.stringify(n)})};n.submit=function(){var r={Email:n.email},t;n.isCaptchaGood&&(t=i(r),t.then(function(t){t.res&&(n.isSendMessage=!0)}))}}])}();angular.module("app").controller("userAgreementCtrl",function(n,t){abp.ui.setBusy(".modal-body");t.get("App/Main/data/userAgreement.txt").success(function(t){n.agreementDocument=t;abp.ui.clearBusy(".modal-body")})}),function(){angular.module("app").controller("app.views.awards",["$scope","$location","abp.services.etender.profile","abp.services.etender.award","$stateParams",function(){}])}(),function(){angular.module("app").controller("app.views.bankOperations",["$rootScope","$scope","abp.services.etender.address","abp.services.etender.internalAccount","abp.services.etender.allBanking","abp.services.etender.bank","ngTableParams","abp.services.etender.invoice","abp.services.etender.organization","abp.services.etender.act","$filter","abp.services.etender.settings","abp.services.etender.numberConverter","datesHelper","bankOperationsService",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){function k(n){var t={amount:n.amount,invoiceNumber:n.number,amountToStr:n.numberInWords,vatToStr:n.vatInWords,isVatPayer:new Date(n.creationTime)>=p.startVatDate,d:n.creationTime,quantity:1};s.getOrganization({tenantId:n.tenantId}).success(function(n){t.buyerName=n.name;t.buyerCode=n.codeOfOrganization;w(t)})}function d(){return{image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP8AAAC4CAYAAAAsVToeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9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==",width:100,alignment:"right",margin:[0,30,0,0]}}var p,w,b;t.invoiceInput={};t.regexNumber=n.regex.floatNumber;t.vm={invoiceToPdf:k,selDate:null,startActGenerateDate:null,startActGenerateYear:null,startVatDate:null,isActVatPayer:null,vatValue:null,actItems:null,actNumber:null,actDate:null,totalAmount:0,watchSingleAct:!1};p=t.vm;w=function(n){var e=n.invoiceNumber,u=new Date(n.d),o,f;o=n.buyerCode.length==10?"ІПН":n.buyerCode.length==8?"ЄДРПОУ":"Код організації";var h=n.buyerName,c=n.buyerCode,i=n.amount,r=n.quantity,s=n.amountToStr,l=n.vatToStr,t=n.isVatPayer,a=u.getDate(),v=u.getMonth()+1,y=u.getFullYear();u=a+"."+v+"."+y;i=parseFloat(i).toFixed(2);f={content:[{table:{headerRows:0,body:[[{text:"Увага! Оплата цього рахунку означає погодження з умовами поставки товарів. Повідомлення про оплату є обов'язковим, в іншому випадку не гарантується наявність товарів на складі. Товар відпускається за фактом надходження коштів на р/р Постачальника, самовивозом, за наявності довіреності та паспорта.",style:"warning"}]]}},{text:"Рахунок на оплату № "+e+" від "+u+" р.",alignment:"center",margin:[0,100,0,20],style:"header"},{columns:[{text:"Постачальник:",width:100},{text:t?'Товариство з обмеженою відповідальністю  "Е-Тендер" \n п/р 26007212003867, ПАТ АБ «Укргазбанк»,  МФО 320478 \n 04119 м. Київ, вул. Дегтярівська, буд. 21 літ. «А», \n код ЄДРПОУ 39484263':'Товариство з обмеженою відповідальністю  "Е-Тендер" \n п/р 26007212003867, ПАТ АБ «Укргазбанк»,  МФО 320478 \n 04119 м. Київ, вул. Дегтярівська, буд. 21 літ. «А», \n код ЄДРПОУ 39484263, Платник єдиного податку',width:"*"}]},{columns:[{text:"Покупець:",width:100},{text:h+", "+o+": "+c,width:"*"}],margin:[0,10,0,0]},{columns:[{text:"Платник:",width:100},{text:"той самий",width:"*"}],margin:[0,10,0,20]},{table:{widths:[20,"*","auto","auto","auto"],headerRows:1,body:[[{text:"№",style:"tableHeader"},{text:"Товари (роботи, послуги)",style:"tableHeader"},{text:"Кількість",style:"tableHeader"},{text:t?"Ціна з ПДВ":"Ціна без ПДВ",style:"tableHeader"},{text:t?"Сума з ПДВ":"Сума без ПДВ",style:"tableHeader"}],["1","Послуга з реєстрації пропозиції на участь у закупівлі",""+r+"",""+i+"",""+(i*r).toFixed(2)+""]]}},{columns:[{text:"Разом:",width:105},{text:(i*r).toFixed(2)+"",width:100}],margin:[300,10,0,0],alignment:"right"},{columns:[{text:t?"У тому числі ПДВ:":"Сума ПДВ:",width:105},{text:t?(i*r*(p.vatValue/100)).toFixed(2):"Без ПДВ",width:100}],margin:[300,5,0,0],alignment:"right"},{columns:[{text:t?"":"Усього без ПДВ:",width:105},{text:t?"":(i*r).toFixed(2)+"",width:100}],margin:[300,5,0,0],alignment:"right"},{text:t?"Всього найменувань "+r+", на суму "+s+" \n У т.ч. ПДВ: "+l:"Всього найменувань "+r+", на суму "+s,margin:[0,15,0,0],bold:"true"},{},{text:"Виписав(ла): Мельник І.І.",alignment:"right",margin:[0,-75,50,0],bold:"true"},{text:"Підпис __________",alignment:"right",margin:[0,10,50,0],bold:"true"},{table:{headerRows:0,body:[[{text:"Зверніть увагу! При здійсненні оплати необхідно вказати код ДРФО або ЄДРПОУ платника.  Якщо Ви не зазначите дану інформацію, кошти можуть бути повернені як нерозпізнані.",style:"alert"}]]},margin:[0,65,0,0]}],styles:{warning:{fontSize:8,bold:!0},alert:{fontSize:18,bold:!0},header:{fontSize:14,bold:!0},tableHeader:{fontSize:10,bold:!0}}};f.content[10]=d();pdfMake.createPdf(f).download("invoice"+e+".pdf")};t.generateInvoice=function(i,r){var u={tenantId:n.userTenantId,amount:parseInt(t.invoiceInput.amount),invoiceType:i,withVat:r,andCreate:!0};y.generateInvoiceAndCreatePdf(u)};b=function(){var n=l.getSetting();n.success(function(n){console.log("Settings: ",n);p.startActGenerateDate=new Date(new Date(n.startActGenerateDate).getFullYear(),new Date(n.startActGenerateDate).getMonth(),1,0,0,0,0);p.startActGenerateYear=new Date(new Date(n.startActGenerateDate).getFullYear(),0,1,0,0,0,0);p.startVatDate=new Date(n.startVatDate);p.vatValue=n.vatValue;console.log("startActGenerateDate="+p.startActGenerateDate)})};b()}])}(),function(){angular.module("app").controller("modalAddBidInvoice",["$rootScope","$scope","abp.services.etender.invoice","bankOperationsService",function(n,t,i,r){function f(n){t.invoices=n;t.invoices.forEach(function(n){n.fileName=r.getInvoiceFileName(n)})}function e(n){for(u.actNumbers=[];n<4;++n)u.actNumbers.push(n);return++u.actionNumber}var u={actionNumber:0,act0:0,act1:0,act2:0,actNumbers:[0,0,0]};t.vm=u;$("body").off("show.bs.modal","#modalAddBidInvoice").on("show.bs.modal","#modalAddBidInvoice",function(){t.tender.isPropLeaseAndInsiderByZU=t.tender.isPropLeaseByZU||t.tender.isPropInsiderByZU;u.actionNumber=0;e(t.tender.isPreviousAuctionBidDisqualified?1:0);n.invoices?(f(n.invoices),n.invoices=null):i.getInvoicesByTender(t.tenderNewId).success(function(n){f(n)})});t.generatePdf=function(n){r.invoiceToPdf(n)}}])}(),function(){angular.module("app").controller("app.views.contacts.additionalContactPoints",["$scope","abp.services.etender.organization","tenderHelperService",function(n,t,i){var r={isContactsEdit:!1,additionalContacts:[]},u;n.vm=r;u=function(){t.getAdditionalContacts().success(function(t){t.forEach(function(n){n.fio=i.parseName(n.name);i.replaceName(n)});n.vm.additionalContacts=t})};u();n.cancel=function(){u()};n.addIndexNum=function(n){return n+1};r.removeContact=function(n){r.additionalContacts.splice(n,1)};r.addContact=function(){r.additionalContacts.push({fio:{},nameEN:"",email:"",url:"",faxNumber:"",telephone:""})};r.updateContacts=function(){r.additionalContacts.forEach(function(n){n.name=i.joinName(n.fio);n.faxNumber&&n.faxNumber.charAt(0)!=="+"&&(n.faxNumber="+"+n.faxNumber);n.telephone&&n.telephone.charAt(0)!=="+"&&(n.telephone="+"+n.telephone)});var n=t.saveAdditionalContacts({additionalContactPoints:r.additionalContacts});return abp.ui.setBusy(),n.success(function(){abp.ui.clearBusy();abp.notify.success("Додаткові контактні дані змінено!");u();r.isContactsEdit=!1}),n.error(function(){abp.ui.clearBusy();abp.notify.error("Виникла непередбачена помилка")}),n}}])}(),function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h){function rt(n,i,r,u,f){t.errorMsg=null;t.cancelDocDescription="";t.fileUploadObj={contractingId:t.vm.contract.id,documentId:"",type:r,description:u};f&&(t.fileUploadObj.milestoneId=f);k(n,i)}function k(n,i){n.upload=e.upload({url:"./api/files/upload",method:"POST",fields:{myObj:t.fileUploadObj},file:n});n.upload.then(function(t){r(function(){n.result=t.data})},function(n){n.status>0&&(t.errorMsg=n.status+": "+n.data)});n.upload.progress(function(t){n.progress=Math.min(100,parseInt(100*t.loaded/t.total))});n.upload.success(function(n,u,f,e){console.log("file "+e.file.name+"is uploaded successfully. Response: "+n);abp.notify.success("Файл додано!");r(function(){t.cancelTenderDocumentToAdd={}},2e3);t.uploadFilesCounter++;t.uploadFilesCounter===i.length&&(t.uploadFilesCounter=0,a(),i=[])}).error(function(n){abp.notify.error(n.exceptionMessage||n.message);a()});n.upload.xhr(function(){})}function a(){abp.ui.setBusy();var n=f.getDocumentTypes({ExportDocumentType:"AuctionContractDocument"});n.success(function(n){t.documentTypes=n;u.get(o.id).success(function(n){abp.ui.clearBusy();c.contract=n;c.minDateSigned=new Date(c.contract.dateSigned);c.contract.dateModified=new Date(c.contract.dateModified);c.contract.contractOutOfTender=!0;c.contract.milestones.forEach(function(n){ot(n);st(n);ht(n)});vt(c.contract.status);c.contract.changes.length===0?g():(c.contract.changes.forEach(function(n){if(n.date=new Date(n.date),n.status!="pending"){var t=new Date(n.dateSigned);c.minDateSigned<t&&(c.minDateSigned=t)}}),yt(c.contract.changes));c.contract.documents!=null&&c.checkDocNotexported();c.contract.changes.length>0&&c.contract.changes.forEach(function(n){n.documents&&(n.documents=s.sortListOfDocs(n.documents))})})})}function ot(n){switch(n.status){case"scheduled":n.statusDescription="Заплановано";break;case"processing":n.statusDescription="Виконується";break;case"met":case"partiallyMet":n.statusDescription="Виконано";break;case"notMet":n.statusDescription="Не виконано"}}function st(n){switch(n.type){case"financing":n.typeDescription="Очікування оплати";break;case"approval":n.typeDescription="Завершення приватизації";break;case"reporting":n.typeDescription="Виконання умов продажу"}}function ht(n){switch(n.type){case"financing":n.documentTypes=t.documentTypes.filter(n=>["rejectionProtocol"].includes(n.type)&&["Документ про відсутність оплати"].includes(n.title)||["approvalProtocol"].includes(n.type)&&["Підтвердження оплати"].includes(n.title));n.metButtonName="Договір оплачено";n.notMetButtonName="Оплата відсутня";break;case"approval":n.documentTypes=t.documentTypes.filter(n=>["approvalProtocol"].includes(n.type)&&["Наказ про завершення приватизації"].includes(n.title)||["rejectionProtocol"].includes(n.type)&&["Документ про відсутність наказу про завершення приватизації"].includes(n.title));n.metButtonName="Приватизація об’єкта завершена";n.notMetButtonName="Наказ про завершення приватизації відсутній";break;case"reporting":n.documentTypes=t.documentTypes.filter(n=>["rejectionProtocol"].includes(n.type)&&["Документи, що підтверджують відхилення учасника"].includes(n.title)||["approvalProtocol"].includes(n.type)&&["Документи, що підтверджують виконання умов продажу"].includes(n.title));n.metButtonName="Умови продажу виконано";n.notMetButtonName="Умови продажу не виконано"}}function ct(){c.contract.documents=s.sortListOfDocs(c.contract.documents);c.contract.isAnyDocNotexported=c.contract.documents.some(function(n){return!n.isExported})}function lt(n,t){abp.ui.setBusy();u.get(o.id).then(function(i){c.contract.changes[n].documents=i.data.changes[n].documents;c.contract.documents=i.data.documents;c.checkDocNotexported();t.isSignatureExist=w(t);abp.ui.clearBusy()})}function g(){var i,n;for(t.shoOnlyButtonUpdate=!0,i=[],n=0;n<l.length;n+=1)i.push({selected:!1,title:l[n].title,value:l[n].value});c.contract.changes.push({rationale:null,sRationaleTypes:i})}function at(){function i(n){for(var t=0;t<n.sRationaleTypes.length;t+=1)if(n.sRationaleTypes[t].selected)return!0;return!1}var n,t;if(c.contract.changes.length==0)return!1;for(n=0;n<c.contract.changes.length;n+=1)if((t=c.contract.changes[n],!i(t))||t.status=="pending"&&!y(t))return!1;return!0}function vt(n){switch(n){case"active.confirmaition":case"active.payment":t.statusDesc="Очікується оплата";break;case"active.approval":t.statusDesc="Договір оплачено. Очікується наказ";break;case"active":t.statusDesc="Період виконання умов продажу (період оскарження)";break;case"pending.terminated":case"terminated":t.statusDesc="Приватизація об’єкта завершена";break;case"pending.unsuccessful":case"unsuccessful":t.statusDesc="Приватизація об’єкта неуспішна"}}function yt(n){for(var i,u,t,r=0;r<n.length;r+=1)for(i=n[r],i.sRationaleTypes=[],u=i.rationaleTypes.split(","),t=0;t<l.length;t+=1)u.indexOf(l[t].value)!=-1?i.sRationaleTypes.push({selected:!0,title:l[t].title,value:l[t].value}):i.sRationaleTypes.push({selected:!1,title:l[t].title,value:l[t].value})}var v,l,b,d,c;t.shoOnlyButtonUpdate=!1;t.showFooterButtons=!0;t.progect=window.projectOpen;v=!0;t.dateRegex=n.regex.date;l=[{title:"Зменшення обсягів закупівлі",value:"volumeCuts"},{title:"Зміна ціни за одиницю товару",value:"itemPriceVariation"},{title:"Покращення якості предмета закупівлі",value:"qualityImprovement"},{title:"Продовження строку дії договору",value:"durationExtension"},{title:"Узгоджене зменшення ціни",value:"priceReduction"},{title:"Зміна ціни у зв’язку із зміною ставок податків і зборів",value:"taxRate"},{title:"Зміна сторонніх показників",value:"thirdParty"},{title:"Продовження строку дії договору на наступний рік",value:"fiscalYearExtension"}];a();t.docBlockName="Документи майолстоуну";t.objectDocType="contractingId";var nt=function(n){abp.ui.setBusy();t.vm.isShowApplyChangesBtn=!0;u.activeChange({id:n.id,dateSigned:n.dateSigned}).then(function(){abp.ui.clearBusy();abp.notify.success("Статус змінено");a();t.showFooterButtons=!0},function(){abp.ui.clearBusy()})},p=function(n){return n.id?y(n)?n&&n.status&&n.status=="pending"?!0:!1:!1:!1},tt=function(){return c.contract&&c.contract.changes&&c.contract.changes.some(p)},y=function(n){return!c.minDateSigned||!n.dateSigned?!0:c.minDateSigned<new Date(n.dateSigned)},w=function(n){if(n.documents.length<2||t.vm.contract.isAnyDocNotexported)return!1;for(var i in n.documents)if(n.documents[i].title==="sign.p7s")return!0;return!1},it=function(n){return n.documents.length===0||t.vm.contract.isAnyDocNotexported?!1:!0};t.reloadDocuments=function(){abp.ui.setBusy();u.get(o.id).then(function(n){(c.contract.documents=n.data.documents,abp.ui.clearBusy(),c.contract.documents!=null)&&(c.contract.documents=s.sortListOfDocs(c.contract.documents))})};b=function(n){for(var t in n.changes)if(n.changes[t].status==="pending")return!0;return!1};t.selectedDocType=null;t.setFile=function(n){t.files=n.files;var i=n.attributes["data-description"]?n.attributes["data-description"].nodeValue:null,r=n.attributes["data-doctype"].nodeValue,u=n.attributes["data-doctype-id"].nodeValue,f=n.attributes["data-milestoneId"].nodeValue;t.cancelTenderDocumentToAdd=n.files;t.addFiles(n.files,u,i,r==="contractNotice"?null:f)};t.addFiles=function(n,i,r,u){if(t.formUpload=!1,n!=null)for(var f=0;f<n.length;f++)t.errorMsg=null,function(t){rt(t,n,i,r,u)}(n[f])};t.uploadFilesCounter=0;t.update=function(n){if(t.fileUploadObj.contractingId=t.vm.contract.id,n!=null)for(var i=0;i<n.length;i++)t.errorMsg=null,function(t){k(t,n)}(n[i])};var ut=function(n,i,r){if(n.length!=0){c.contract.isAnyDocNotexported=!0;var u=t.selectedDocType!=null?t.selectedDocType.id:null;return i&&(u=i),n.forEach(function(n){var i={tenderId:c.contract.tenderId,documentId:r,contractingId:c.contract.id};t.upload=e.upload({url:abp.appPath+"api/Files/Upload",fields:{myObj:i,DocumentType:u},file:n});t.upload.then(function(){abp.notify.success("Файл додано!");t.documentsToAdd=null;a()})}),t.upload}},ft=function(n){n.length!=0&&(t.changedDocument.documentOf==="change"?t.vm.addDocument(n,"null",t.changedDocument.id):t.vm.addDocument(n,t.changedDocument.documentTypeId,t.changedDocument.id))},et=function(n){t.changedDocument=n;_(t.documents).each(function(n){n.ch=!1});n.ch=!0};t.canModifyDocuments=function(){return!0};d=function(){var i,n;if(abp.ui.setBusy(),c.contract.changes.forEach(function(n){var t=n.sRationaleTypes.filter(function(n){return n.selected==!0}).map(function(n){return n.value});n.rationaleTypes=t.join(",")}),c.contract.amountPaid=null,c.contract.value&&(c.contract.value.currencyId=1,c.contract.value.valueAddedTaxIncluded=!1),i=null,c.contract.changes)for(n=0;n<c.contract.changes.length;n++)c.contract.changes[n].status==="pending"&&(i=c.contract.changes[n],i.dateSigned&&typeof i.dateSigned!="object"&&(c.contract.changes[n].dateSigned=h.jsonStringToDate(i.dateSigned)));u.update(c.contract).then(function(){abp.ui.clearBusy();abp.notify.success("Зміни внесено!");t.shoOnlyButtonUpdate=!1;v=!1;a()},function(){abp.ui.clearBusy()})};t.vm={activeChange:nt,activate:a,addChange:g,addDocument:ut,canActiveChange:p,isExistChangeCanBeActivated:tt,isValidDateSigned:y,contract:{changes:[],isAnyDocNotexported:!1},isShowApplyChangesBtn:!0,floatNumberRegex:n.regex.floatNumber,haveChanges:at,update:d,updateDocument:ft,setChangedDocument:et,stepActiveChange:w,havePendingChange:b,stepSignEcp:it,blockApplyBtn:v,updateDocumentStatus:lt,checkDocNotexported:ct};c=t.vm;t.showSignModalContract=function(n){n.type="contract";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.showSignModalChange=function(n){n.type="change";n.contractId=c.contract.id;$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.IsDateMetValid=function(n){n.dateMetNew||(n.isCanSetDate=!1);var t;switch(n.type){case"financing":t=c.contract.dateSigned;break;case"approval":t=c.contract.milestones[0].dateMet;break;case"reporting":t=c.contract.milestones[1].dateMet;break;default:t=new Date}t=new Date(t);n.isCanSetDate=n.dateMetNew>t};t.IsDueDateValid=function(n){n.dueDateReporting||(n.isDueDateValid=!1);var t=new Date;t.setFullYear(t.getFullYear()+3);n.isDueDateValid=n.dueDateReporting>t};t.SetDateMet=function(n){abp.ui.setBusy();var t={id:n.id,dateSigned:n.dateMetNew,dueDateReporting:n.dueDateReporting};u.setDateMet(t).then(function(t){abp.ui.clearBusy();t.data?(n.dateMet=n.dateMetNew,a()):abp.notify.error("Під час збереження данних виникла непередбачена помилка")})};t.SetNotMet=function(n){abp.ui.setBusy();var t={id:n.id};u.setNotMet(t).then(function(n){abp.ui.clearBusy();n.data&&a()})};t.IfDocumentExist=function(n,t){var u,r,i;if((n.type==="financing"||n.type==="reporting")&&t===0)return!0;if(!c.contract||!c.contract.documents||c.contract.documents.length===0)return!1;for(u=t===1?n.documentTypes.filter(n=>n.type==="rejectionProtocol")[0]:n.documentTypes.filter(n=>n.type==="approvalProtocol")[0],r=0;r<c.contract.documents.length;r++)if((i=c.contract.documents[r],i.documentType!==null)&&i.isExported===!0&&i.documentType.type===u.type&&i.documentType.title===u.title)return!0;return!1};t.checkDate=function(n,t,i){var r=!1;return t!==undefined&&t?typeof t=="object"&&(t=t.toISOString()):t=(new Date).toISOString(),n!==undefined&&n?typeof n=="object"&&(n=n.toISOString()):n=(new Date).toISOString(),r=n>=t?!0:!1,i&&i.$setValidity(i.$name,r),r};t.back=function(){window.history.back()}}angular.module("app").controller("contractingCtrl",n);n.$inject=["$rootScope","$scope","$location","$timeout","abp.services.etender.contracting","abp.services.etender.document","Upload","$stateParams","documentService","datesHelperService"]}(),function(){"use strict";function n(n,t,i,r,u){function h(){abp.ui.setBusy();u.get(r.id).success(function(n){abp.ui.clearBusy();f.contract=n;f.contract.contractOutOfTender=!0;var t=f.contract.amountPaid&&parseFloat(f.contract.amountPaid.amount)>=0;t&&f.contract.terminationDetails&&(f.contract.canSign=!0,f.canBreak=!0)})}var f;h();var e=function(){f.canBreak&&(abp.ui.setBusy(),f.contract.status="terminated",u.update(f.contract).success(function(){abp.ui.clearBusy();abp.notify.success("Договір розірвано!");i.hash("myTenders");i.path("/profile")}).error(function(){abp.ui.clearBusy()}))},o=function(){f.contract.amountPaid&&(f.contract.amountPaid.currency="UAH",f.contract.amountPaid.valueAddedTaxIncluded=!1);abp.ui.setBusy();u.update(f.contract).success(function(){abp.ui.clearBusy();abp.notify.success("Зміни внесено!");window.location.reload()}).error(function(){abp.ui.clearBusy()})},s=function(n){n.type="contract";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.vm={breaking:e,canBreak:!1,confirm:o,showSignModalContract:s,contract:{},floatNumberRegex:n.regex.floatNumber};f=t.vm}angular.module("app").controller("app.views.contractingBreaking",n);n.$inject=["$rootScope","$scope","$location","$stateParams","abp.services.etender.contracting"]}(),function(){"use strict";function n(n,t,i,r,u){function h(){abp.ui.setBusy();u.get(r.id).success(function(n){abp.ui.clearBusy();f.contract=n;f.contract.contractOutOfTender=!0;f.contract&&f.contract.amountPaid&&f.contract.amountPaid.amount&&(f.contract.canSign=!0,f.canClose=!0)})}var f;h();var e=function(){f.canClose&&(abp.ui.setBusy(),f.contract.status="terminated",u.update(f.contract).success(function(){abp.ui.clearBusy();abp.notify.success("Договір завершено!");i.hash("myTenders");i.path("/profile")}).error(function(){abp.ui.clearBusy()}))},o=function(){abp.ui.setBusy();f.contract.amountPaid&&(f.contract.amountPaid.currency="UAH",f.contract.amountPaid.valueAddedTaxIncluded=!1);u.update(f.contract).success(function(){abp.ui.clearBusy();abp.notify.success("Зміни внесено!");window.location.reload()}).error(function(){abp.ui.clearBusy()})},s=function(n){n.type="contract";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.vm={canClose:!1,confirm:o,showSignModalContract:s,contract:{},close:e,floatNumberRegex:n.regex.floatNumber};f=t.vm}angular.module("app").controller("app.views.contractingClose",n);n.$inject=["$rootScope","$scope","$location","$stateParams","abp.services.etender.contracting"]}(),function(){angular.module("app").controller("app.views.contracts2",["$rootScope","$scope","abp.services.etender.contract","abp.services.etender.settings","abp.services.etender.document","abp.services.etender.award","Upload","$stateParams","documentService","lookupService","tenderHelperService",function(n,t,i,r,u,f,e,o,s,h,c){function b(){return l("rejectionProtocol")}function k(){return l("act")}function d(){return l("contractSigned")}function g(){return l("contractAnnexe")}function l(n){return t.contract.documents&&t.contract.documents.length>0?s.checkIfDocExist(n,t.contract.documents):!1}var a,v;t.dateRegex=n.regex.date;t.description="";t.causes={};h.getTerminationReasons(t.causes,"otherCbd2TerminationReason");t.reasonData={reasonDisqualify:"",isCheckReason:!0,bankruptContractAnnexeDesc:""};t.showSignModalContract=function(n){n.type="contract";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};var y=["appraisal.insider","property.insider","propInsiderByZU","dgfOtherAssets","dgfBankrupt","propertyLease","propLeaseByZU","bankrupt.insider","carriage.insider","forestSale"],p=["dgfOtherAssets","propertyLease","propLeaseByZU","dgfBankrupt","forestSale"],w=["bankrupt.insider","dgfBankrupt"];t.isRequiredNumber=n.env.isRequiredContractNumber;t.isComplaining=!1;a={awardId:o.tId};t.floatNumberRegex=n.regex.floatNumber;t.actText="договору";t.ActText="Договір";t.status="";v=function(){switch(t.contract.status){case"active":t.status="Договір опубліковано";break;case"pending":t.status="Договір не опубліковано"}};t.reload=function(){abp.ui.setBusy();var n=i.getContract(a);n.success(function(n){var i,u;t.contract=n;t.contract.dateSignedGood=!1;t.contract.isCancelReasonsType=y.includes(t.contract.procurementMethodType);t.contract.isTenderProcurement=p.includes(t.contract.procurementMethodType);t.contract.isBankrupt=w.includes(t.contract.procurementMethodType);t.contract.isBankrupt&&h.getTerminationReasons(t.causes,"bankruptCbd2TerminationReason");t.maxDateSigned=new Date;t.minDateSigned=new Date(n.awardDate);t.actText=t.contract.isBankrupt?"акту":"договору";t.ActText=t.contract.isBankrupt?"Акт":"Договір";console.log(n);abp.ui.clearBusy();i=r.getDateAndTime();i.success(function(n){var u=Date.parse(n),i,r;t.contract.complaintPeriod&&t.contract.complaintPeriod.endDate&&(i=Date.parse(t.contract.complaintPeriod.endDate),r=Date.parse(t.contract.dateSigned),t.contract.dateSignedGood=r>i,i>u&&(t.isComplaining=!0))});v();t.contract.documents!=null&&t.contract.documents instanceof Array&&(u=t.contract.documents,t.contract.documents=[],t.contract.documents=s.sortListOfDocs(u));t.contract.hasRejectionProtocolDocs=b();t.contract.hasActDocs=k();t.contract.hasNegativeDocs=t.contract.hasActDocs||t.contract.hasRejectionProtocolDocs;t.contract.hasContractSignedDocs=d();t.contract.hasContractAnnexeDocs=g();t.isValueValid(t.contract)})};t.changeDateSigned=function(){if(t.contract.complaintPeriod&&t.contract.complaintPeriod.endDate){var n=Date.parse(t.contract.complaintPeriod.endDate);t.contract.dateSignedGood=t.contract.dateSigned>n}};t.reload();t.isValueValid=function(n){var i,r,u;n.value==null&&(n.value={currency:t.contract.awardValue.currency,valueAddedTaxIncluded:t.contract.awardValue.valueAddedTaxIncluded});n.value.amount?(r=parseFloat(n.value.amount),u=parseFloat(t.contract.awardValue.amount),i=r>=u):i=t.contract.hasNegativeDocs;n.value.isValid=i};t.canUpdate=function(){var r=!0,n=t.contract?t.contract.documents:null,i;if(n&&n.length>0)for(i=0;i<n.length;i++)if(r=n[i].isExported,!r)break;return r};t.getContractStatusName=function(n){return h.getContractStatusName(n,t.ActText,"")};t.save=function(){var r={id:t.contract.id,dateSigned:t.contract.dateSigned,description:t.contract.description,number:t.contract.number,value:t.contract.value},n=i.updateContract(r);return n.success(function(){abp.notify.success("Підтверджено!");t.redirectToAuctionPage()}).error(function(){abp.notify.warn("Запит не виконано..!")}),n};t.sign=function(){var r={id:t.contract.id,dateSigned:t.contract.dateSigned,description:t.contract.description,number:t.contract.number,title:t.contract.title,value:t.contract.value},n=i.signContract(r);return n.success(function(){abp.notify.success("Підтверджено!");t.redirectToAuctionPage()}).error(function(){abp.notify.warn("Запит не виконано..!")}),n};t.redirectToAuctionPage=function(){c.redirectToAuctionPage(t.contract.procurementMethodType,t.contract.tenderId)};t.sendCancelledStatus=function(){var n,r;return t.contract.isTenderProcurement?(r={awardId:a.awardId,tenderId:t.contract.tenderId,desc:t.reasonData.reasonDisqualify,contractId:t.contract.id},n=f.disqualifyAward(r)):(r={contractId:t.contract.id,description:t.reasonData.reasonDisqualify},n=i.sendCancelledStatus(r)),n.success(function(){abp.notify.success("Виконано успішно!");t.redirectToAuctionPage()}),n};t.isAllDocumentsExported=function(n){if(!n||!n.length)return!1;var t=n.some(function(n){return n.format!=="application/pkcs7-signature"});return t?n.every(function(n){return n&&n.url}):!1};t.checkDate=function(n,t,i){var r=!1;return t!==undefined&&t?typeof t=="object"&&(t=t.toISOString()):t=(new Date).toISOString(),n!==undefined&&n?typeof n=="object"&&(n=n.toISOString()):n=(new Date).toISOString(),r=n>=t?!0:!1,i&&i.$setValidity(i.$name,r),r};t.canModifyDocuments=function(){return!0}}])}(),function(){angular.module("app").controller("app.views.contracts3",["$rootScope","$scope","abp.services.etender.contract","$stateParams","tenderHelperService",function(n,t,i,r,u){t.dateRegex=n.regex.date;t.floatNumberRegex=n.regex.floatNumber;t.isEdit=!0;t.getContractDto={awardId:r.tId};t.reload=function(){abp.ui.setBusy();var r=i.getContract(t.getContractDto);r.success(function(i){t.contract=i;t.contract.procurementMethodTypeOriginal=u.getMainProcurementMethodType(t.contract.procurementMethodType);console.log("===CONTRACT",t.contract);t.isBasicSellOnly=n.fastTypesRegex.basicSell.test(t.contract.procurementMethodTypeOriginal);t.isCommercialSell=n.fastTypesRegex.commercialSellEnglish.test(t.contract.procurementMethodTypeOriginal)||n.fastTypesRegex.commercialSellDutch.test(t.contract.procurementMethodTypeOriginal);t.isLegitimatePropertyLease=n.fastTypesRegex.legitimatePropertyLease.test(t.contract.procurementMethodTypeOriginal);t.isLandSellEnglish=n.fastTypesRegex.landSellEnglish.test(t.contract.procurementMethodTypeOriginal);t.isLandSellPriorityEnglish=n.fastTypesRegex.landSellPriorityEnglish.test(t.contract.procurementMethodTypeOriginal);t.isLandRentalOrSell=n.fastTypesRegex.landRentalEnglish.test(t.contract.procurementMethodTypeOriginal)||t.isLandSellEnglish||t.isLandSellPriorityEnglish;t.isTimber=n.fastTypesRegex.timberEnglish.test(t.contract.procurementMethodTypeOriginal)||n.fastTypesRegex.timberMultiAwards.test(t.contract.procurementMethodTypeOriginal);t.showContractPeriod=!t.isLandSellEnglish&&!t.isLandSellPriorityEnglish;t.isContractSaved=!!t.contract.number;var r=new Date(t.contract.auctionPeriodEndDate);r.setDate(r.getDate()-1);t.auctionPeriodEndDate=r;t.setMinStartDate();t.setMinEndDate();t.maxDateSigned=new Date;t.isValueValid(t.contract);t.isPrepaymentValueValid(t.contract);t.contract.dateSigned&&(t.contract.dateSigned_time=t.contract.dateSigned);abp.ui.clearBusy()})};t.reload();var f=function(n){return{id:t.contract.id,dateSigned:t.contract.dateSigned,description:t.contract.description,number:t.contract.number,title:t.contract.title,totalValue:t.contract.totalValue,status:n?n:null,period:t.isLandSellEnglish||t.isLandSellPriorityEnglish||!t.contract.period?null:{startDate:t.contract.period.startDate,endDate:t.contract.period.endDate},prepaymentDetails:t.contract.prepaymentDetails}};t.save=function(){abp.ui.setBusy();i.updateContractCbd3(f()).success(function(){abp.ui.clearBusy();abp.notify.success("Дані договору збережено");t.reload()}).error(function(){abp.ui.clearBusy();abp.notify.warn("Запит не виконано!")})};t.signOrActiveContract=function(){abp.ui.setBusy();var r,u;t.isLandRentalOrSell?(r=i.setContractStatus(f("signed")),u="Договір підписано!"):(r=i.setContractStatus(f("active")),u="Договір підтверджено!");r.success(function(){abp.ui.clearBusy();abp.notify.success(u);n.isStartReloadTimer=!0;t.redirectToAuctionPage()}).error(function(){abp.ui.clearBusy();abp.notify.warn("Запит не виконано!")})};t.setLotPaymentConfirmation=function(n){abp.ui.setBusy();var r=f();return r.lotPaymentConfirmation=n,i.setLotPaymentConfirmation(r).success(function(){abp.ui.clearBusy();abp.notify.success(n?"Оплату лоту підтверджено!":"Відсутність оплати по лоту підтверджено!");t.redirectToAuctionPage()}).error(function(){abp.ui.clearBusy();abp.notify.warn("Запит не виконано!")})};t.canModifyDocuments=function(){return t.isContractSaved&&(t.isLandSellPriorityEnglish&&t.contract.status==="signed"||t.contract.status!=="active"&&t.contract.status!=="signed")};t.setRequireDocTypeCorrection=function(n){if(t.contract&&t.contract.isBidCurrentTenant){var i=n.find(n=>n.type==="transferAct");i&&(i.isRequired=!1)}};t.isValueValid=function(n){var i,r,u;n.totalValue==null&&(n.totalValue={currency:t.contract.awardValue.currency,valueAddedTaxIncluded:t.contract.awardValue.valueAddedTaxIncluded});n.totalValue.amount?(r=parseFloat(n.totalValue.amount),u=parseFloat(t.contract.awardValue.amount),i=r>=u):i=t.isBasicSellOnly;n.totalValue.isValid=i};t.isPrepaymentValueValid=function(n){var i,r,u;t.isTimber&&(i=!0,n.prepaymentDetails===null&&(n.prepaymentDetails={prepaymentValue:{currency:t.contract.awardValue.currency,valueAddedTaxIncluded:t.contract.awardValue.valueAddedTaxIncluded}}),n.prepaymentDetails.prepaymentValue.amount&&(r=parseFloat(n.prepaymentDetails.prepaymentValue.amount),u=parseFloat(n.totalValue.amount),i=r<=u),n.prepaymentDetails.prepaymentValue.isValid=i)};t.redirectToAuctionPage=function(){u.redirectToAuctionPage(t.contract.procurementMethodTypeOriginal,t.contract.tenderId)};t.setMinStartDate=function(){var n=new Date;n.setDate(n.getDate()-1);t.minDateFrom=t.contract.dateSigned?new Date(t.contract.dateSigned):n};t.setMinEndDate=function(){t.contract.period&&t.contract.period.startDate?(t.minDateTill=new Date(t.contract.period.startDate),t.minDateTill.setDate(t.minDateTill.getDate()+1)):t.minDateTill=new Date};t.setContractSignDateTime=function(n){n&&(n.dateSigned=u.appendTimeToDate(n.dateSigned,n.dateSigned_time),n.dateSigned_time=n.dateSigned,t.maxDateSigned=new Date)}}])}(),function(){angular.module("app").controller("app.views.basecontracts",["$scope","abp.services.etender.award","$stateParams",function(n,t,i){n.getContractDto={awardId:i.tId,cbd:parseInt(i.cbd,10)}}])}();angular.module("app").directive("currency",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/currency.cshtml",scope:{data:"=",isDisabledOnUpdateByAuctionMode:"&"},controller:["$scope",function(n){function r(){n.$watch("data",function(n){n&&f(n)})}function u(){n.data=i.sCurrency.code}function f(n){var i=t.find(t=>t.code===n);return i?i:null}var t=[{title:"грн",code:"UAH"},{title:"євро",code:"EUR"},{title:"американський долар",code:"USD"},{title:"англійський фунт стерлінгів",code:"GBP"},{title:"російський рубль",code:"RUB"},{title:"грн",code:"грн."}],i;n.vm={changeCurrency:u,currencies:t};i=n.vm;r()}]}});angular.module("app").directive("findOrganizationByEdrpou",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/findOrganizationByEdrpou.cshtml",scope:{complaint:"=currentComplaint",maxlength:"=",findedOrganization:"="},controller:["$rootScope","$scope","abp.services.etender.organization",function(n,t,i){t.filter={inputedEDRPOU:""};t.onlyNumbers=/^\d+$/;t.findedOrganization=null;t.getIdentifierByEdrpou=function(){abp.ui.setBusy("#findedOrganiz");i.getIdentifierByEdrpou({innOrEdrpou:t.filter.inputedEDRPOU}).success(function(n){n&&(t.findedOrganization=n,t.findedOrganization.notSaved=!0);console.log("finded organization:",n);abp.ui.clearBusy("#findedOrganiz")}).error(function(){t.findedOrganization=null;abp.ui.clearBusy("#findedOrganiz")})}}]}});angular.module("app").directive("tenderAttempts",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/tenderAttempts.cshtml",scope:{data:"=",formname:"=",procurementMethodType:"@",defaultValue:"=",changeValue:"=",isShow:"=",isExported:"="},controller:["$scope",function(n){n.vm={isDisabled:!1,isRequired:!1};var t=[{title:"Невідомо",value:null},{title:"Вперше",value:"1"},{title:"Вдруге",value:"2"},{title:"Втретє",value:"3"},{title:"Вчетверте",value:"4"},{title:"Вп'яте",value:"5"},{title:"Вшосте",value:"6"},{title:"Всьоме",value:"7"},{title:"Ввосьме",value:"8"},{title:"Вдев'яте",value:"9"},{title:"Вдесяте",value:"10"}];n.$watch("procurementMethodType",function(i){if(i){switch(i){case"landLease":n.vm.tenderAttemptsValues=t.splice(5,10);n.data=n.data?n.data:"1";break;case"dgfOtherAssets":case"carriageLease":n.vm.tenderAttemptsValues=t.splice(0,5);break;case"appraisal.insider":case"property.insider":case"propInsiderByZU":case"carriage.insider":n.vm.tenderAttemptsValues=t.splice(0,9);n.data=null;break;case"timber-english":case"landRental-english":case"landSell-english":case"basicSell-english":case"basicSell-dutch":case"commercialSell-english":case"commercialSell-dutch":case"legitimatePropertyLease-priorityEnglish":n.vm.tenderAttemptsValues=t.splice(1,10);n.vm.isRequired=!0;break;case"legitimatePropertyLease-english":n.vm.tenderAttemptsValues=t.splice(1,2);n.vm.isDisabled=!0;n.vm.isRequired=!0;break;case"legitimatePropertyLease-dutch":n.vm.tenderAttemptsValues=t.splice(1,3);n.vm.isDisabled=!0;n.vm.isRequired=!0;break;case"alienation-english":n.vm.tenderAttemptsValues=t.splice(1,2);n.vm.isRequired=!0;break;default:n.vm.tenderAttemptsValues=t}n.changeAttemptsValues(n.data)}});n.changeAttemptsValues=function(t){n.changeValue&&n.changeValue(t)}}]}});angular.module("app").directive("landPropsDetailes",function(){return{restrict:"E",templateUrl:"/app/Main/views/directives/registry/landPropsDetailes.cshtml",scope:{landProps:"="},controller:["$scope","lookupService",function(n,t){n.landProps.ownershipTypeDescription=t.getLandPropsOwnershipTypesDescription(n.landProps.ownershipType);n.landProps.encumbrancesDescription=t.getEncumbrancesDescriptionByType(n.landProps.encumbrances)}]}});angular.module("app").directive("leaseActionTable",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/registry/leaseActionTable.cshtml",scope:{isMy:"="},controller:["$scope","$rootScope","abp.services.etender.registry","ngTableParams","lookupService","registryObjectService",function(n,t,i,r,u,f){n.localStorageName=n.isMy?"leaseActionSearchMy":"leaseActionSearch";n.filter={leaseActionType:null,datePublishedFrom:"",datePublishedTo:"",searchString:"",propertyOwners:[],sellingEntitys:[],isShowOnlyCreatedOnOurSite:!1,isRegistryObjectCreateWithMyTenant:!1};n.searchFilter={};localStorage[n.localStorageName]&&localStorage[n.localStorageName].length>1&&(n.filter=JSON.parse(localStorage[n.localStorageName]),n.searchFilter=f.getLeaseActionSearchFilter(n.filter));n.ngTableParams=new r({page:1,count:10,sorting:null},{getData:function(t,r){var f={Page:r.page(),PageSize:r.count(),OrderColumn:"creationTime",OrderDirection:"desc",SearchFilter:n.searchFilter};n.searchFilter.isMy=n.isMy;abp.ui.setBusy(".table");i.getLeaseActions(f).success(function(n){console.log("leaseActions",n.leaseActions);n.leaseActions.forEach(function(n){n.typeDescription=u.getLeaseActionTypeDiscription(n.leaseActionType);n.statusDescription=u.getRegistryStatusDescription(n.status)});r.total(n.countRecords);t.resolve(n.leaseActions);abp.ui.clearBusy(".table")})}});n.reloadPage=function(t){n.searchFilter=angular.copy(t);n.ngTableParams.reload();n.ngTableParams.page(1)}}]}});angular.module("app").directive("leaseRequestTable",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/registry/leaseRequestTable.cshtml",scope:{isMy:"="},controller:["$scope","$rootScope","abp.services.etender.registry","ngTableParams","lookupService","registryObjectService",function(n,t,i,r,u,f){n.objectTypeLocal=typeof n.objectType=="undefined"?null:n.objectType;n.localStorageName=n.isMy?"leaseRequestSearchMy":"leaseRequestSearch";n.filter={searchString:null,listType:null,leaseRequestType:null,objectType:null,regionInput:null,datePublishedFrom:null,datePublishedTo:null,regions:[],sellingEntitys:[],isOpen:!1,isShowOnlyCreatedOnOurSite:!1,isRegistryObjectCreateWithMyTenant:!1};n.searchFilter={};localStorage[n.localStorageName]&&localStorage[n.localStorageName].length>1&&(n.filter=JSON.parse(localStorage[n.localStorageName]),n.searchFilter=f.getLeaseRequestSearchFilter(n.filter));n.ngTableParams=new r({page:1,count:10,sorting:null},{getData:function(t,r){var f={Page:r.page(),PageSize:r.count(),OrderColumn:"creationTime",OrderDirection:"desc",SearchFilter:n.searchFilter};n.searchFilter.isMy=n.isMy;abp.ui.setBusy(".table");i.getLeaseRequests(f).success(function(n){console.log("leaseRequests",n.leaseRequests);n.leaseRequests.forEach(function(n){n.typeDescription=u.getLeaseRequestTypeDescription(n.leaseRequestType);n.statusDescription=u.getRegistryStatusDescription(n.status)});r.total(n.countRecords);t.resolve(n.leaseRequests);abp.ui.clearBusy(".table")})}});n.reloadPage=function(t){n.searchFilter=angular.copy(t);n.ngTableParams.reload();n.ngTableParams.page(1)}}]}});angular.module("app").directive("regContractTable",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/registry/regContractTable.cshtml",scope:{isMy:"="},controller:["$scope","$rootScope","abp.services.etender.registry","ngTableParams","lookupService",function(n,t,i,r,u){n.localStorageName=n.isMy?"regContractSearchMy":"regContractSearch";n.filter={isOpen:!1,regions:[],sellingEntitys:[]};n.searchFilter={};localStorage[n.localStorageName]&&localStorage[n.localStorageName].length>1&&(n.filter=JSON.parse(localStorage[n.localStorageName]),n.searchFilter=angular.copy(n.filter));n.ngTableParams=new r({page:1,count:10,sorting:null},{getData:function(t,r){var f={Page:r.page(),PageSize:r.count(),OrderColumn:"creationTime",OrderDirection:"desc",SearchFilter:n.searchFilter};n.searchFilter.isMy=n.isMy;n.searchFilter.regions=n.searchFilter.regions?n.filter.regions.map(function(n){return n.id}):null;n.searchFilter.sellingEntitys=n.searchFilter.sellingEntitys?n.searchFilter.sellingEntitys.map(function(n){return n.edrpouOrInn}):[];abp.ui.setBusy(".table");i.getRegContracts(f).success(function(n){console.log("regContracts",n.regContracts);n.regContracts.forEach(function(n){n.contractMethodDescription=u.getContractMethodDescription(n.contractMethod);n.statusDescription=u.getContractStatusDescription(n.status)});r.total(n.countRecords);t.resolve(n.regContracts);abp.ui.clearBusy(".table")})}});n.reloadPage=function(t){n.searchFilter=angular.copy(t);n.ngTableParams.reload();n.ngTableParams.page(1)}}]}});angular.module("app").directive("registryTable",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/registry/registryTable.cshtml",scope:{isMy:"=",objectType:"="},controller:["$scope","$rootScope","abp.services.etender.registry","ngTableParams","lookupService","tenderHelperService","registryObjectService",function(n,t,i,r,u,f,e){n.objectTypeLocal=typeof n.objectType=="undefined"?null:n.objectType;n.localStorageName=n.isMy?"registryObjectFilterMy":"registryObjectFilter";n.filter={searchString:null,listType:null,statusInList:null,regionInput:null,areaFrom:null,areaTo:null,regions:[],sellingEntitys:[],propertyOwners:[],currentTenants:[],classificationCpvs:[],classificationCavs:[],isOpen:!1,isShowOnlyCreatedOnOurSite:!1,regContract:{isOpen:!1}};n.searchFilter={};localStorage[n.localStorageName]&&localStorage[n.localStorageName].length>1&&(n.filter=JSON.parse(localStorage[n.localStorageName]),n.searchFilter=e.getRegistrySearchFilter(n.filter));n.ngTableParams=new r({page:1,count:10,sorting:null},{getData:function(t,r){var f={Page:r.page(),PageSize:r.count(),OrderColumn:"creationTime",OrderDirection:"desc",SearchFilter:n.searchFilter};n.searchFilter.isMy=n.isMy;n.searchFilter.objectType=n.objectTypeLocal;abp.ui.setBusy(".new-table");i.getRegistryObjects(f).success(function(n){n.registryObjects.forEach(function(n){n.isOwner||(n.canCreateRequest=e.canCreateLeaseRequest(n.apiId));n.canCreateAction=e.canCreateLeaseAction(n.apiId);n.objectTypeDesc=u.getRegistryObjectItemDescByType(n.objectType);n.statusDesc=u.getRegistryStatusDescription(n.status);n.canCreateLegitimateAuction=e.canCreateLegitimateAuction(n)});console.log("registryObjects",n);r.total(n.countRecords);t.resolve(n.registryObjects);abp.ui.clearBusy(".new-table")})}});n.reloadPage=function(t){n.searchFilter=angular.copy(t);n.ngTableParams.reload();n.ngTableParams.page(1)};n.openModalFastLegetimate=function(t,i){n.fastLPLEs=u.getCreationLegitimatePropertyLeaseFasts(t,i);$("#modalFastLPLE").modal("show")}}]}});angular.module("app").directive("procedureReference",function(){return{restrict:"AE",templateUrl:"/app/Main/views/directives/tender/procedureReference.cshtml",scope:{data:"="},controller:["$scope","tenderHelperService",function(n,t){n.data&&(n.auctionUrl=t.getAuctionUrl(n.data.procurementMethodType,n.data.id));n.customTendTitle=function(n){return t.customTendTitle(n)}}]}});angular.module("app").directive("auctionDocuments",function(){return{restrict:"AE",templateUrl:"/app/Main/views/document/auctionDocuments.cshtml",scope:{canModifyDocuments:"=",canUploadDocuments:"=",correctRequireTypes:"=",mainEntity:"=",entityType:"=",procurementmethodtype:"=",modelType:"@",cbd:"=",isEdit:"=",reload:"=",procedureid:"=",showOnly:"=",disablePreview:"="},controller:["$scope","$rootScope","Upload","abp.services.etender.document","$http","$timeout","$interval","$attrs","abp.services.etender.settings","documentService",function(n,t,i,r,u,f,e,o,s,h){function p(n,t){return n.sort(function(n,i){var r=n[t],u=i[t];return r<u?-1:r>u?1:0})}function c(t){if(t!=null){console.dir(t);p(t,"index");for(var i=0;i<t.length;i++)t[i].documentTypeForEditing=k(t[i].documentType),n.entityType!=="bid"&&!t[i].isDeleted&&y.includes(t[i].format)?(t[i].url&&n.imageLocations.push(t[i]),t[i].forIllustrator=!0,t[i].showOnlyForCreator=t[i].isOwner):t[i].showOnlyForCreator=!0;n.imageLocations=p(n.imageLocations,"index")}return t}function l(n,t,i){var r=n.filter(n=>n.documentType&&n.documentType.type===t).sort(n=>n.dateModified).reverse().map(function(n){return n.id});return r.length>0&&n.forEach(function(n){r.includes(n.relatedDocumentApiId)&&r.push(n.id)}),n.filter(n=>i?!r.includes(n.id):r.includes(n.id))}function k(n){var i,t;if(null==n||"object"!=typeof n)return n;i=n.constructor();for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i}function d(){$("input[class = 'file_style'").filestyle("disabled",!0)}function g(t,i){n.errorMsg=null;var r=n.selectedDocType?n.selectedDocType.id:null;w(t,i,r)}function w(t,r,u){h.validateDocName(t.name)!=0&&(t.upload=i.upload({url:"./api/files/upload",method:"POST",fields:{myObj:n.fileUploadObj,DocumentType:u},file:t}),t.upload.then(function(n){f(function(){t.result=n.data})},function(t){t.status>0&&(n.errorMsg=t.status+": "+t.data)}),t.upload.progress(function(n){t.progress=Math.min(100,parseInt(100*n.loaded/n.total))}),t.upload.success(function(t,i,u,f){console.log("file "+f.file.name+" is uploaded successfully. Response: ");console.log(t);abp.notify.success("Файл додано!");n.clearDoc();n.selectedDocType&&n.selectedDocType.type==="admissionProtocol"&&nt();n.uploadFilesCounter++;n.uploadFilesCounter===r.length&&(r.splice(0,r.length),n.uploadFilesCounter=0,n.entityType!=="tender"||n.mainEntity.apiId?h.notifyAboutExport():h.notifyAboutExportAfterPublish(),n.reload(),!t.isError&&n.ifExistExported&&v(t.reply,t.apiId))}).error(function(t){abp.notify.error(t.exceptionMessage||t.message);n.reload()}),t.upload.xhr(function(){}))}function nt(){var t={docKind:"AwardDocument",mainEntityId:n.mainEntity.id,docType:"admissionProtocol",exeFunction:"setPendingStatusAuctionDetailes",functionParams:{awardId:n.mainEntity.id,tenderId:n.procedureid},beginTime:new Date};localStorage.setItem("exportAdmissionProtocol",JSON.stringify(t));n.$parent.exportDocumentAndSetStatus(t);abp.message.warn("Дочекайтеся експорту документа “Рішення про викуп”, не закриваючи сторінку браузера! Після цього статус зміниться автоматично.","Увага!")}var y,a,v,b;n.fileUploadObj={tenderId:"",documentId:""};n.typesContainer={documentTypes:[],firstDocumentType:{}};n.digitalSignatureContainer={documentTypes:[],firstDocumentType:{}};n.imageLocations=[];n.requireDocTypes=[];y=["image/bmp","image/gif","image/jpeg","image/pjpeg","image/png","image/tiff"];n.allowedExtensions=t.allowedFileExtensions;n.modelTypeOrig=n.modelType;n.ifExistExported=!0;n.exportToDocServiceIsEnough=!1;n.uploadFilesCounter=0;n.isSignaturable=!1;n.tooltip={signature:t.source("SignatureTooltip"),"delete":t.source("Remove"),edit:"Редагувати",localDel:"Видалити локально"};n.intervalStop=null;n.blockId="blockId_"+Math.floor(Math.random()*10000000000000000);n.$watch("mainEntity",function(i){if(i){n.mainEntity.allRequireDocsUploaded=!1;n.fileUploadObj.mainEntityId=i.id;n.fileUploadObj.cbdType=n.cbd;n.canModify=n.canModifyDocuments(i);n.canUpload=n.canUploadDocuments?n.canUploadDocuments(i):n.canModify;n.imageLocations=[];var r,u;switch(n.entityType){case"asset":n.docBlockName="Документи об'єкту приватизації";n.illustrationBlockName="Ілюстрації об'єкту приватизації";n.fileUploadObj.assetId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.modelTypeOrig="AssetDocument";n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status));break;case"mpLot":n.docBlockName="Документи інформаційного повідомлення";n.illustrationBlockName="Ілюстрації інформаційного повідомлення";n.fileUploadObj.mPLotId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.documents=l(n.documents,"x_dgfAssetFamiliarization",!0);n.modelTypeOrig="MPLotDocument";n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status));break;case"auction":n.fileUploadObj.auctionId=n.fileUploadObj.mainEntityId;break;case"tender":n.docBlockName="Документи аукціону";n.illustrationBlockName="Ілюстрації аукціону";n.fileUploadObj.tenderId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.cbd===2&&(n.documents=l(n.documents,"x_dgfAssetFamiliarization",!0));n.ifExistExported=i.isExported;n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status),r.then(function(){n.correctRequireTypes&&n.correctRequireTypes(n.typesContainer.documentTypes)}));break;case"bid":n.docBlockName="Документи пропозиції";n.illustrationBlockName="";n.fileUploadObj.bidId=n.fileUploadObj.mainEntityId;n.fileUploadObj.tenderId=n.procedureid;n.documents=c(i.documents);n.cbd===3&&i.isMyBid&&(n.documents=l(n.documents,"auctionProtocol",!0));n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status,n.entityType),r.then(function(){n.correctRequireTypes&&n.correctRequireTypes(n.typesContainer.documentTypes,i)}));break;case"bidQualif":n.docBlockName="";n.illustrationBlockName="";n.fileUploadObj.bidId=n.fileUploadObj.mainEntityId;n.fileUploadObj.tenderId=n.procedureid;n.documents=c(i.documents);n.documents=l(n.documents,"auctionProtocol",!1);n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status,n.entityType));break;case"award":n.docBlockName=t.source("BidDocuments");n.illustrationBlockName="Ілюстрації, додані до заявки";n.fileUploadObj.awardId=n.fileUploadObj.mainEntityId;n.documents=c(i.bidDocuments);n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status),(n.procurementmethodtype==="bankrupt.insider"||n.procurementmethodtype==="dgfBankrupt")&&r.then(function(){n.typesContainer.documentTypes=n.typesContainer.documentTypes.filter(n=>abp.auth.hasPermission("IsCanLoadOwnerDocument")?n.type==="auctionProtocol":n.type!=="auctionProtocol")}));break;case"awardBid":n.docBlockName=t.source("BidDocs");n.illustrationBlockName="Ілюстрації пропозиції";n.fileUploadObj.awardId=n.fileUploadObj.mainEntityId;n.documents=c(i.bidDocuments);break;case"awardSubscr":n.docBlockName=t.source("DecisionDocuments");n.illustrationBlockName="Ілюстрації рішення";n.fileUploadObj.awardId=n.fileUploadObj.mainEntityId;n.documents=c(i.awardDocuments);n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,null,n.entityType),(n.procurementmethodtype==="bankrupt.insider"||n.procurementmethodtype==="dgfBankrupt")&&r.then(function(){n.typesContainer.documentTypes=n.typesContainer.documentTypes.filter(n=>abp.auth.hasPermission("IsCanLoadBidDocument")?n.type==="auctionProtocol":n.type!=="auctionProtocol")}));break;case"awardDisqualify":case"awardReject":n.docBlockName=t.source("DecisionDocuments");n.illustrationBlockName="";n.fileUploadObj.awardId=n.fileUploadObj.mainEntityId;n.documents=c(i.awardDisqualifyDocuments);n.canModify&&!n.showOnly&&(r=n.entityType==="awardReject"?h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status,"awardDisqualify","rejectionProtocol"):h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status,n.entityType));break;case"awardQualify":n.docBlockName=t.source("DecisionDocuments");n.illustrationBlockName="";n.fileUploadObj.awardId=n.fileUploadObj.mainEntityId;n.documents=c(i.awardQualifyDocuments);n.documents=l(n.documents,"auctionProtocol",!1);n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status,n.entityType));break;case"contract":n.docBlockName=n.procurementmethodtype==="bankrupt.insider"||n.procurementmethodtype==="dgfBankrupt"?"Документи акту":"Документи договору";n.fileUploadObj.contractId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);(n.canModify&&!n.showOnly||i.status==="signed")&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,i.status),r.then(function(){n.cbd===2&&h.checkIfDocExist("contractSigned",n.documents,!1)&&(n.typesContainer.documentTypes=n.typesContainer.documentTypes.filter(n=>n.type!=="rejectionProtocol"&&n.type!=="act"));n.correctRequireTypes&&n.correctRequireTypes(n.typesContainer.documentTypes)}));break;case"regObject":n.docBlockName="Документи об'єкту реєстру";n.illustrationBlockName="Ілюстрації об'єкту реєстру";n.fileUploadObj.regObjectId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.ifExistExported=i.isExported;n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,null,n.entityType));break;case"leaseRequest":n.docBlockName="Документи заяви на оренду майна";n.illustrationBlockName="Ілюстрації заяви на оренду майна";n.fileUploadObj.leaseRequestId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.ifExistExported=i.isExported;n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype));break;case"leaseAction":n.docBlockName="Документи дії на оренду майна";n.illustrationBlockName="Ілюстрації дії на оренду майна";n.fileUploadObj.leaseActionId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.ifExistExported=i.isExported;n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype));break;case"regContract":n.docBlockName="Документи та додатки пов’язані з договором";n.illustrationBlockName="Ілюстрації пов’язані з договором";n.fileUploadObj.regContractId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.ifExistExported=i.isExported;n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype,null,n.entityType));break;case"cancell":n.docBlockName="Документи скасування";n.illustrationBlockName="";n.fileUploadObj.cancellationId=n.fileUploadObj.mainEntityId;n.documents=c(i.documents);n.exportToDocServiceIsEnough=n.cbd===3;n.ifExistExported=!n.exportToDocServiceIsEnough;n.canModify&&!n.showOnly&&(r=h.getDocumentTypes(n.typesContainer,n.modelType,n.procurementmethodtype));break;default:n.fileUploadObj.tenderId=n.fileUploadObj.mainEntityId}u=h.getDocumentTypes(n.digitalSignatureContainer,n.modelType,n.procurementmethodtype,null,null,"digitalSignature");u&&u.then(function(){n.digitalSignatureContainer.firstDocumentType&&n.digitalSignatureContainer.firstDocumentType.id&&n.entityType!=="cancell"&&(n.isSignaturable=!0,typeof n.documents!="undefined"&&n.documents!==null&&n.documents instanceof Array&&n.documents.forEach(function(t){!t.isDeleted&&t.documentType&&t.documentType.id===n.digitalSignatureContainer.firstDocumentType.id&&(t.isSignatureExists=!0,t.relatedDocumentApiId&&(t.relatedDocument=n.documents.find(n=>n.id===t.relatedDocumentApiId&&!n.isDeleted),t.relatedDocument&&(t.relatedDocument.isSignatureExists=!0)))}))});r&&r.then(function(){n.selectedDocTypeId=n.selectedDocType?n.selectedDocType.id+"":null;n.typesContainer.documentTypes&&(n.typesContainer.documentTypes.length===1?(n.selectedDocType=n.typesContainer.firstDocumentType,n.selectedDocTypeId=n.selectedDocType.id+"",n.docTypeSelectHandler()):d(),n.requireDocTypes=[],n.mainEntity.allRequireDocsUploaded=!1,n.typesContainer.documentTypes.forEach(function(t){t.isRequired!==!0||h.checkIfDocExist(t.type,n.documents,n.ifExistExported)||n.requireDocTypes.push(t.title)}),n.mainEntity.allRequireDocsUploaded=n.requireDocTypes.length===0)})}});n.docTypeSelectHandler=function(){var i,t;n.selectedDocType=n.typesContainer.documentTypes.find(function(t){return t.id==n.selectedDocTypeId});$("input[class = 'file_style'").filestyle("disabled",!n.selectedDocType||!n.selectedDocType.id);n.selectedDocType.type=="illustration"?(n.$parent.indexNum=1,n.$parent.illustrationArray=[],n.$parent.vm.selectedDocTypeObj=n.selectedDocType):n.$parent.showHideUploadIllustrationPanel=!1;n.entityType==="tender"&&n.mainEntity.cbd===2&&(i=s.getDateAndTime(),i.success(function(t){n.$parent.detailes.rectificationPeriod.endDate<t&&abp.message.warn("Ви завантажуєте документи після завершення відведеного терміну","Попередження")}));(n.entityType==="awardSubscr"||n.entityType==="award")&&n.selectedDocType.type==="auctionProtocol"&&(n.procurementmethodtype==="landLease"||n.procurementmethodtype==="propertyLease"||n.procurementmethodtype==="dgfBankrupt"||n.procurementmethodtype==="dgfOtherAssets"||n.procurementmethodtype==="carriageLease")&&(t=s.getDateAndTimeUtc(),t.success(function(t){(t<n.mainEntity.verificationPeriod.startDate||n.mainEntity.verificationPeriod.endDate<t)&&abp.message.warn("Ви завантажуєте протокол після завершення відведеного терміну","Попередження")}));n.entityType==="contract"&&(n.procurementmethodtype==="landLease"||n.procurementmethodtype==="propertyLease")&&(t=s.getDateAndTimeUtc(),t.success(function(t){n.mainEntity.signingPeriod&&(t<n.mainEntity.signingPeriod.startDate||t>n.mainEntity.signingPeriod.endDate)&&abp.message.warn("Ви завантажуєте документи після завершення відведеного терміну","Попередження")}))};a=function(t){n.curRefreshDocument&&(abp.ui.clearBusy("#liDocumentId_"+n.blockId+"_"+n.curRefreshDocument.id),n.curRefreshDocument.processText="",n.curRefreshRelatedDocument&&(abp.ui.clearBusy("#liDocumentId_"+n.blockId+"_"+n.curRefreshRelatedDocument.id),n.curRefreshRelatedDocument.processText=""));abp.ui.clearBusy("#"+n.blockId);e.cancel(t);n.intervalStop=null};v=function(t,i){n.intervalStop&&a(n.intervalStop);var u=10;abp.ui.setBusy("#"+n.blockId);n.intervalStop=e(function(){--u;n.curRefreshDocument=n.documents.find(n=>n.isDeleted||n.id!==t&&n.id!==i||!n.dateModified);n.curRefreshDocument&&(abp.ui.clearBusy("#"+n.blockId),abp.ui.setBusy("#liDocumentId_"+n.blockId+"_"+n.curRefreshDocument.id),n.curRefreshDocument.processText="дані оновлюються...",n.curRefreshRelatedDocument=n.documents.find(t=>t.isDeleted||(n.curRefreshDocument.relatedDocumentApiId&&t.id===n.curRefreshDocument.relatedDocumentApiId||t.relatedDocumentApiId===n.curRefreshDocument.id)),n.curRefreshRelatedDocument&&(abp.ui.setBusy("#liDocumentId_"+n.blockId+"_"+n.curRefreshRelatedDocument.id),n.curRefreshRelatedDocument.processText="дані оновлюються..."));r.getDocumentInfo({DocumentId:t,Type:n.modelTypeOrig}).success(function(t){t.isDeleted||t.isExportError||t.isExportedToDocService&&t.isExported&&t.url||n.exportToDocServiceIsEnough&&t.isExportedToDocService?(a(n.intervalStop),n.reload()):u<=0&&a(n.intervalStop)}).error(function(t){console.log(t);a(n.intervalStop)})},8e3,u)};n.setAsMainPicture=function(t){abp.ui.setBusy("#setAsMain_"+t.id);r.setAsMainPictureInline({DocumentId:t.id,Type:n.modelTypeOrig}).success(function(){abp.ui.clearBusy("#setAsMain_"+t.id);n.reload();n.ifExistExported&&v(t.id)})};n.showOnlyForCreator=function(n){return!n.forIllustrator||n.isOwner};n.setFile=function(t){n.files=[];for(var i=0;i<t.files.length;i++)n.files.push(t.files[i])};n.$watch("files",function(t){if(t!=null)for(var i=0;i<t.length;i++)n.errorMsg=null,function(t){g(t,n.files)}(t[i])});n.$watch("documentsToUpdate",function(t){if(t!=null)for(var i=0;i<t.length;i++)n.errorMsg=null,function(t){n.update(t)}(t[i],i)});n.update=function(t,i){var u=i?i.id:null,r;if(t!=null)for(r=0;r<t.length;r++)n.errorMsg=null,function(i){w(i,t,u,n.fileUploadObj.documentId)}(t[r])};n.addSignature=function(t){n.update(t,n.digitalSignatureContainer.firstDocumentType)};n.changeDoc=function(t){n.fileUploadObj.documentId=t.id;_(n.documents).each(function(n){n.ch=!1});t.ch=!0};n.addDigitalSignature=function(t){n.fileUploadObj.relatedDocumentApiId=t.id;_(n.documents).each(function(n){n.sg=!1});t.sg=!0};n.clearDoc=function(){n.fileUploadObj.documentId="";n.fileUploadObj.relatedDocumentApiId="";for(var t=0;t<n.documents.length;t++)n.documents[t].ch=!1,n.documents[t].sg=!1};b=function(t){if(confirm("Ви дійсно бажаєте видалити документ?")){var i=u.post("./api/files/DeleteDocument",t);i.success(function(t){t.deleted?(abp.notify.success(t.message),n.reload()):abp.notify.warn(t.message)});i.error(function(n){console.log(n)})}};n.removeLocalDocument=function(t){var i={};switch(n.entityType){case"asset":i.assetDocumentId=t;break;case"mpLot":i.mpLotDocumentId=t;break;case"tender":i.tenderDocumentId=t;break;case"bid":case"bidQualif":i.bidDocumentId=t;break;case"award":case"awardSubscr":case"awardDisqualify":case"awardQualify":case"awardReject":i.awardDocumentId=t;break;case"contract":i.contractDocumentId=t;break;case"regObject":case"leaseRequest":case"leaseAction":case"regContract":i.registryDocumentId=t;break;case"cancell":i.cancellationDocumentId=t}b(i)};n.removeCbdDocument=function(t,i){if(i||confirm("Ви дійсно бажаєте видалити документ?")){var u={procedureId:n.procedureid?n.procedureid:n.fileUploadObj.mainEntityId,documentId:t,entityId:n.mainEntity.id,entityType:n.entityType};r.deleteDocumentCbd3(u).success(function(t){t?(abp.notify.success("Документ успішно видалено"),n.reload()):abp.notify.error("Видалення документу неможливе")})}};n.checkDateVerificationPeriod=function(t,i){switch(n.tender.procurementMethodType){case"landLease":case"propertyLease":checkDateVerificationPeriodLandLease(t,i)}};n.previewDoc=function(t){if(n.cbd===2&&t.url.startsWith("https://lb")){abp.notify.warn("Переглянути документ можна завантаживши його. Для завантаження натисніть на ікнонку поряд з документом.");return}h.previewDoc(t,n)};n.trustSrc=function(n){return h.trustSrcForDocLoad(n)};n.goToUrl=function(n){window.location=n}}],link:function(){$("input[class = 'file_style'").filestyle({input:!1,buttonText:"Обрати файли",size:"sm",disabled:!0,badge:!1})}}}),function(){"use strict";function n(n,t,i,r){t.vm={tenderIdText:null};var u=t.vm,f=new r({page:1,count:10},{counts:[],getData:function(n,t){var r={maxResultCount:t.count(),skipCount:(t.page()-1)*t.count(),sorting:"CreationTime DESC",tenderIdText:u.tenderIdText,textOfId:u.textOfId},f=i.getNotExportedDocuments(r);abp.ui.setBusy(".panel-default:first");f.success(function(i){t.total(i.totalCount);console.log(i);u.documents=i.items;n.resolve(i.items);abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}});u.tableParams=f;u.search=function(){f.reload();f.page(1)};t.resetErrorForDocument=function(n,t){i.resetErrorForNotExportedDocument({id:n,exportDocumentType:t}).success(function(n){abp.notify.success("Помилки документа '"+n+"' видалені.");console.log("Помилки документа видалені:",n);u.tableParams.reload()}).error(function(){abp.notify.error(data)})};t.deleteDocument=function(n,t){confirm("Удалить документ?")&&(console.log("id, exportDocumentType:",n+"  "+t),i.deleteDocument({id:n,exportDocumentType:t}).success(function(){abp.notify.success("Документ видалено.");u.tableParams.reload()}).error(function(){abp.notify.error(data)}))}}angular.module("app").controller("app.views.document.notExportedDocuments",n);n.$inject=["$rootScope","$scope","abp.services.etender.document","ngTableParams"]}();angular.module("app").controller("app.views.callBackModal",["$q","$scope","$rootScope","abp.services.etender.emailNotification",function(n,t,i,r){t.callBack={name:null,number:"+38",request:null};t.regexPhone=i.regex.phone;t.validPhone=function(){return t.isValidPhone=!1,t.isValidPhone=/[0-9]/.test(t.callBack.number)&&t.callBack.number.length>12?!0:!1,t.isValidPhone};t.$watch("callBack",function(){t.validPhone()});t.sendEmail=function(){t.callBack.request||(t.callBack.request="Прошу мені зателефонувати");r.sendCallBackMessage(t.callBack.name,t.callBack.number,t.callBack.request).success(function(){abp.notify.success("Запит відправлено!");t.clearCallBack()})};t.clearCallBack=function(){t.callBack={name:null,number:"+38",request:null}}}]),function(){angular.module("app").controller("app.views.help",["$rootScope","$scope","$compile","$sce","tenderHelperService",function(n,t,i,r,u){var f,o,s,e;t.pager={searchFilter:{columnFilters:[{Name:"Title",Filter:""},{Name:"Description",Filter:""},{Name:"OrganizationName",Filter:""},{Name:"tenderPeriodEndFrom",Filter:""},{Name:"tenderPeriodEndTo",Filter:""},{Name:"tenderPeriodStartFrom",Filter:""},{Name:"tenderPeriodStartTo",Filter:""},{Name:"classificationCpv",Filter:""},{Name:"classificationCav",Filter:""},{Name:"classificationDkpp",Filter:""}],forest:{}}};t.widget=!0;t.currentPage={pageName:"isIframe"};t.regexPattern=n.regex.number;t.codeEDRPOUs=[];t.cpvCodes=[];t.cavCodes=[];t.procurementMethodTypes=[];f={cpvItems:[],cavItems:[],procurementMethodTypes:[],filter:null,statuses:[],regions:[],funder:[],priceFrom:null,priceTo:null,isPrivateOnly:null};t.wg=f;t.themes={value:{name:"Cerulean",url:"cerulean",width:1024},bootstraps:[{name:"Slate",url:"slate",width:1024},{name:"Cerulean",url:"cerulean",width:1024}]};t.procurementMethodTypeDictionary=u.getProcurementMethodsByFilter();t.changeProcurementMethodType=function(n){n||(f.procurementMethodTypes=[]);f.procurementMethodTypes.push(n)};n.env.isOperator=localStorage.isOperator||!1;o=document.location.protocol;s=document.location.host;t.host=r.trustAsResourceUrl(o+"//"+s);t.resizerUrl=t.host+"/Scripts/iframeResizer.min.js";e=function(){t.cpvCodes=[];t.cavCodes=[];t.procurementMethodTypes=[];t.statuses=[];t.regions=[];t.codeEDRPOUs=[];t.isPrivateOnly=null;t.wg.cpvItems.forEach(function(n){t.cpvCodes.push(n.code)});t.wg.cavItems.forEach(function(n){t.cavCodes.push(n.code)});t.wg.procurementMethodTypes.forEach(function(n){t.procurementMethodTypes.push(n.procurementMethodType)});t.wg.statuses.forEach(function(n){t.statuses.push(n)});t.wg.regions.forEach(function(n){t.regions.push(n)});t.wg.funder.forEach(function(n){t.codeEDRPOUs.push(n.edrpouOrInn)});t.priceFromWg=t.wg.priceFrom;t.priceToWg=t.wg.priceTo;f.tenderPeriodStartFrom&&(t.tenderPeriodStartFromWg=f.tenderPeriodStartFrom.toLocaleDateString());f.tenderPeriodEndTo&&(t.tenderPeriodEndToWg=f.tenderPeriodEndTo.toLocaleDateString());t.isPrivateOnly=f.isPrivateOnly;var n=t.codeEDRPOUs&&t.codeEDRPOUs instanceof Array&&t.codeEDRPOUs.length>0?"&edrpou="+t.codeEDRPOUs.join(","):"",i=t.parentCodeEDRPOU?"&parentEdrpou="+t.parentCodeEDRPOU:"",r=t.procurementMethodTypes&&t.procurementMethodTypes instanceof Array&&t.procurementMethodTypes.length>0?"&procurementMethods="+t.procurementMethodTypes.join(","):"",u=t.cpvCodes&&t.cpvCodes instanceof Array&&t.cpvCodes.length>0?"&cpvCodes="+t.cpvCodes.join(","):"",e=t.cavCodes&&t.cavCodes instanceof Array&&t.cavCodes.length>0?"&cavCodes="+t.cavCodes.join(","):"",o=t.statuses&&t.statuses instanceof Array&&t.statuses.length>0?"&statuses="+t.statuses.join(","):"",s=t.regions&&t.regions instanceof Array&&t.regions.length>0?"&regions="+t.regions.join(","):"",h=t.priceFromWg?"&priceFrom="+t.priceFromWg:"",c=t.priceToWg?"&priceTo="+t.priceToWg:"",l=t.isPrivateOnly?"&isPrivateOnly="+t.isPrivateOnly:"",a=t.tenderPeriodStartFromWg?"&tenderPeriodStartFrom="+t.tenderPeriodStartFromWg:"",v=t.tenderPeriodEndToWg?"&tenderPeriodEndTo="+t.tenderPeriodEndToWg:"";document.getElementById("module")&&t.themes.value&&setTimeout(function(){t.moduleCode='<script src="'+t.host+'/Scripts/jquery-1.11.3.min.js"><\/script><script src="'+t.host+'/Scripts/iframeResizer.min.js"><\/script><iframe src="'+t.host+"?theme="+t.themes.value.url+i+n+r+u+e+o+s+h+c+a+v+l+'" width="'+t.themes.value.width+'" scrolling="no" frameborder="0"><\/iframe><script>$("iframe").iFrameResize({log: false})<\/script>'},10)};t.$watchGroup(["themes.value","parentCodeEDRPOU"],e);t.addAdditionalCodeEDRPOU=function(){t.codeEDRPOUs.push("")};t.removeCodeEDRPOU=function(n){t.codeEDRPOUs.splice(n,1)};t.classificationType="";t.isFormOpened=0;t.openClassificationModalNew=function(n){t.classificationType=n;++t.isFormOpened};t.removeItem=function(n,t){n.splice(t,1)};t.reloadPage=function(n){f.procurementMethodTypes=n.selectedProcurementMethodTypes.filter(function(n){return n.procurementMethodType});f.statuses=n.statuses.map(function(n){return n.name});f.regions=n.regions.map(function(n){return n.id});f.cpvItems=n.classificationCpvs;f.cavItems=n.classificationDkpps;f.funder=n.funder;f.priceFrom=n.priceFrom;f.priceTo=n.priceTo;f.tenderPeriodStartFrom=n.tenderPeriodStartFrom;f.tenderPeriodEndTo=n.tenderPeriodEndTo;f.isPrivateOnly=n.isPrivateOnly;e()}}])}(),function(){angular.module("app").controller("app.views.home",["$scope","abp.services.etender.reference",function(n,t){function i(){n.carouselItemWidth=window.screen.availWidth<=600?84:144}n.carouselItemWidth=144;i();n.carouselOffset=parseInt(localStorage.carouselOffset)||0;n.selectedIconClass=localStorage.carouselSelectedItem||"all";n.selectedCategoryId=parseInt(localStorage.carouselSelectedId)||1;n.carousel=function(t){i();t=isNaN(t)?1:t;var u=$(".auction-carousel-container").width(),f=$(".auction-carousel-container ul").width(),r=n.carouselOffset+t*n.carouselItemWidth;r<=0&&Math.abs(r)<f-u+n.carouselItemWidth&&(n.carouselOffset=r)};n.classificationItems={};var r=t.getGroupedCavs();r.success(function(t){n.classificationItems=t.cavCategories});n.selectByCavItem=function(t){n.selectedIconClass=t.iconClass;n.selectedCategoryId=t.categoryId;n.isClearFilter=!0;localStorage.carouselSelectedItem=t.iconClass;localStorage.carouselSelectedId=t.categoryId;localStorage.carouselOffset=n.carouselOffset};n.isActive=function(t){return t===n.selectedIconClass}}])}(),function(){angular.module("app").controller("footerCtrl",["$rootScope","$scope",function(n,t){t.url=abp.setting.values;t.currentYear=moment().format("YYYY");t.isAuthorized=n.env.isAuthorized;t.$watch("$root.env.isAuthorized",function(){t.isAuthorized=n.env.isAuthorized})}])}(),function(){angular.module("app").controller("app.views.layout.header",["$rootScope","$scope","$state","$location","$http","$timeout","abp.services.etender.settings",function(n,t,i,r,u,f,e){var o=this,s,c,l,h;t.isAuthorized=n.env.isAuthorized;n.env.isAuthorized?e.getUserSetting({settingName:"theme"}).success(function(t){n.siteSettings.css=t.value?t.value:"cerulean"}).error(function(){n.siteSettings.css="cerulean"}):n.siteSettings.css="cerulean";n.logout=function(){r.path("/logout")};o.languages=abp.localization.languages;o.currentLanguage=abp.localization.currentLanguage;o.currentMenuName=i.current.menu;s=["createProfile","profile","profiles"];n.$on("$locationChangeStart",function(){n.env.isOrganizationProductionMode=localStorage.isOrganizationProdMode==="true"||!1;n.env.isOrganizationReadyForApprovement=localStorage.isOrganizationReadyForApprovement==="true"||!1;n.env.isOrganizationReadyForApprovementTest=localStorage.isOrganizationReadyForApprovementTest==="true"||!1;n.env.isOrganizationApproved=localStorage.isOrganizationApproved==="true"||!1;n.env.isOrganizationApprovedTest=localStorage.isOrganizationApprovedTest==="true"||!1});n.$on("$stateChangeSuccess",function(t,i,u,f){i.name=="home"&&f.name=="tenderDetailes"||i.name=="tenderDetailes"&&f.name=="home"||(delete localStorage.searchFilter,delete localStorage.searchPage);(s.indexOf(i.menu)>=0||s.indexOf(i.name))>=0&&!n.env.isAuthorized?(sessionStorage.clear(),localStorage.clear(),r.path("/logout")):o.currentMenuName=i.menu});t.clock="loading clock...";t.tickInterval=1e3;c=2e4;t.clock=Date.now();l=function(){if(sessionStorage.diffTime)t.clock=Date.now()-sessionStorage.diffTime;else{var n=e.getDateAndTime();n.success(function(n){var i=Date.parse(n),r=Date.now()-i;sessionStorage.diffTime=r;t.clock-=sessionStorage.diffTime})}};setInterval(l,c);h=function(){t.clock+=t.tickInterval;f(h,t.tickInterval)};f(h,t.tickInterval);t.broadcastClearSearch=function(){n.$broadcast("clearSearch")};$(window).scroll(function(){var n=$(window).scrollTop();n<=3&&$("#header").removeClass("navbar-resize");n>3&&$("#header").addClass("navbar-resize")});t.$watch("$root.env.isAuthorized",function(){t.isAuthorized=n.env.isAuthorized})}])}(),function(){angular.module("app").controller("app.views.layout",["$rootScope","$scope","$location","abp.services.etender.user","abp.services.etender.organization","abp.services.etender.settings","tenderHelperService",function(n,t,i,r,u,f,e){function c(){var u={},r,t,i;if(location.search){for(r=location.search.substr(1).split("&"),t=0;t<r.length;t++)i=r[t].split("="),u[i[0]]=i[1];i[0]!="__ga"&&(n.env.isIframe=!0)}return u}var h,o,s;t.tooltip={title:"В режимі навчання Ви можете створювати нові аукціони, приймати участь в аукціонах та користуватися іншими функціями майданчика в тестовому режимі. Це означає, що ці аукціони не є справжніми і відображаються лише в режимі навчання."};window.addEventListener("storage",function(t){t.key===null?i.path("/logout"):t.key==="userTenantId"&&t.newValue!==n.userTenantId&&location.reload()});n.env.isAuthorized="username"in localStorage?!0:"username"in sessionStorage?!0:!1;n.env.isAuthorized&&e.getUserAndOrganizationData(r.getUser,u.getOrganization);t.readyToChooseTheme=!1;n.siteSettings={css:"cerulean"};n.env.isIframe=!1;n.sweetAlertButtonCancell=!1;h=function(){var t=f.getSetting();t.success(function(t){n.allowedFileExtensions="."+t.allowedUploadFileExtensions.split(",").join(",.");n.apiUri=t.apiUri;n.apiVersion=t.apiUri.split("/api/")[1].replace("/","");n.env.isProductionSite=!(t.apiUri.indexOf("sandbox")>-1);n.googleAnalytic=t.googleAnalytic;n.auctionsSocketUrl=t.auctionsSocketUrl;n.proceduresUrl=t.proceduresUrl})};o=c();h();n.procurementMethodTypeSetSelected=function(n){localStorage.selectedProcurementMethodType=n};n.getProcurementMethodTypeSelected=function(){return localStorage.selectedProcurementMethodType};n.goToCreate=function(){n.procurementMethodTypeSetSelected("dgfOtherAssets");$("#procedureType").modal("hide");i.path("/createAuction")};n.env.isIframe&&(n.siteSettings.css=o.theme,n.siteSettings.parentCodeEDRPOU=o.parentEdrpou,n.siteSettings.codeEDRPOU=o.edrpou?o.edrpou:null,n.siteSettings.procurementMethods=o.procurementMethods?o.procurementMethods:null,n.siteSettings.cpvCodes=o.cpvCodes?o.cpvCodes:null,n.siteSettings.cavCodes=o.cavCodes?o.cavCodes:null,n.siteSettings.statuses=o.statuses?o.statuses:null,n.siteSettings.regions=o.regions?o.regions:null,n.siteSettings.priceFrom=o.priceFrom?o.priceFrom:null,n.siteSettings.priceTo=o.priceTo?o.priceTo:null,n.siteSettings.tenderPeriodStartFrom=o.tenderPeriodStartFrom?o.tenderPeriodStartFrom:null,n.siteSettings.tenderPeriodEndTo=o.tenderPeriodEndTo?o.tenderPeriodEndTo:null,n.siteSettings.isPrivateOnly=o.isPrivateOnly?o.isPrivateOnly:null);o.th&&(n.siteSettings.css=o.th);t.changeTheme=function(){localStorage.theme=n.siteSettings.css;t.readyToChooseTheme=!1;f.setUserSetting({settingName:"theme",settingValue:n.siteSettings.css}).success(function(){abp.notify.success("Тему змінено!")})};t.bootstraps=[{name:"Slate",url:"slate",width:1024},{name:"Cerulean",url:"cerulean",width:1024}];t.showThemes=function(){t.readyToChooseTheme=!0};n.organization={contactPoint:{},identifier:{}};n.env.isOrganizationProductionMode=localStorage.isOrganizationProdMode==="true"||!1;n.env.isProductionMode=localStorage.isProdMode==="true"||!1;n.env.isOrganizationReadyForApprovement=localStorage.isOrganizationReadyForApprovement==="true"||!1;n.env.isOrganizationReadyForApprovementTest=localStorage.isOrganizationReadyForApprovementTest==="true"||!1;n.env.isOrganizationApproved=localStorage.isOrganizationApproved==="true"||!1;n.env.isOrganizationApprovedTest=localStorage.isOrganizationApprovedTest==="true"||!1;n.env.isRequiredContractNumber=localStorage.isRequiredContractNumber==="true";n.organizationTenantId=localStorage.organizationTenantId||null;n.organization.isAgreementSigned=localStorage.isAgreementSigned==="true";n.organization.kind=localStorage.orgKind;console.log("orgKind layout");n.organization.contactPoint.nameEN=localStorage["orgContactPoint.nameEN"];n.organization.identifier.legalNameEN=localStorage["orgIdentifier.legalNameEN"];n.organization.nameEN=localStorage.orgNameEN;n.userTenantId=localStorage.userTenantId||null;n.env.isAdmin=localStorage.isAdmin||!1;n.env.isSubscriber=localStorage.isSubscriber||!1;n.env.isCustomer=localStorage.isCustomer||!1;n.env.isOperator=localStorage.isOperator||!1;n.env.isAccountant=localStorage.isAccountant||!1;n.env.isChiefAccountant=localStorage.isChiefAccountant||!1;s=abp.setting.get("IsHideOnAuction");n.env.isAuctionMode=typeof s!="undefined"&&s!==null?abp.setting.get("IsHideOnAuction").toLowerCase()==="true":!1;t.submitMode={moderationMessage:""};n.openReadyForApprovementDialog=function(t){$("#modalSubmitMode").modal("toggle");n.pm=t};n.setReadyForAprovement=function(i){var f={forProductionMode:i,requestModerationMessage:t.submitMode.moderationMessage},r=u.setOrganizationReadyForApprovement(f);return r.success(function(){i?(abp.notify.success("Ви подали заявку на модерацію для переходу в режим реальних торгів"),n.env.isOrganizationReadyForApprovement=!0,localStorage.isOrganizationReadyForApprovement=n.env.isOrganizationReadyForApprovement):(n.env.isOrganizationReadyForApprovementTest=!0,localStorage.isOrganizationReadyForApprovementTest=n.env.isOrganizationReadyForApprovementTest,abp.notify.success("Дані профіля надіслано на модерацію оператору. Після модерації Ви зможете користуватися системою."));t.submitMode.moderationMessage=""}),r};n.authClass=n.env.isAuthorized;n.noAuthClass=!n.env.isAuthorized;n.env.isCreateProfileUrl=!1;t.$on("$locationChangeSuccess",function(){var t=i.url();/.*(createProfile|accessionTreaty).*/.test(t)?(n.authClass=!1,n.noAuthClass=!0,n.env.isCreateProfileUrl=!0):(n.authClass=n.env.isAuthorized,n.noAuthClass=!n.env.isAuthorized,n.env.isCreateProfileUrl=!1)});t.changeModeOrganization=function(t){var i={isProductionMode:t},r=u.changeMode(i);r.success(function(){localStorage.isOrganizationProdMode=t;n.env.isOrganizationProductionMode=t;t?abp.notify.success("Ви перейшли в режим реальних торгів!"):abp.notify.success("Ви перейшли в режим навчання!")})};t.$on("EmailAddressNewHandle",function(){if(n.env.isAuthorized){var t={userName:localStorage.username||sessionStorage.username},i=r.getUser(t);i.success(function(t){n.env.isEmailAddressNew=t.emailAddressNew!=null;n.emailAddressNew=t.emailAddressNew;n.emailAddress=t.emailAddress})}})}])}(),function(){angular.module("app").controller("app.views.about",["$scope","$http",function(n,t){t.get("/App/Main/data/about.txt").success(function(t){n.text=t}).error(function(){n.text="Файл не знайдено"})}])}(),function(){angular.module("app").controller("app.views.notSendedMessagesApi",["$rootScope","$scope","abp.services.etender.emails","ngTableParams",function(n,t,i,r){t.searchString="";t.tableParams=new r({page:1,count:10},{counts:[],getData:function(n,r){var u={maxResultCount:r.count(),skipCount:(r.page()-1)*r.count(),sorting:"CreationTime DESC",emailFilter:t.searchString},f=i.getRejectedMessagesApi(u);abp.ui.setBusy(".panel-default:first");f.success(function(i){r.total(i.totalCount);console.log(i);t.messages=i.items;n.resolve(i.items);abp.ui.clearBusy(".panel-default")})}});t.search=function(){t.tableParams.reload()};t.deleteFromRejectList=function(n){var r=i.deleteRejectedMessagesApi({email:n}).success(function(i){!i.status&&i.deleted?(abp.notify.warn("Email '"+n+"' видалено з rejectList."),console.log("Email видалено з rejectList",i),t.tableParams.reload()):i.message&&abp.notify.warn(i.message)}).error(function(){})}}])}(),function(){angular.module("app").controller("app.views.setCreditLimit",["$rootScope","$scope","abp.services.etender.organization","abp.services.etender.allBanking",function(n,t,i,r){t.filter={inputedEDRPOU:"",maxCreditSum:"175",maxCreditSumActual:""};t.onlyNumbers=/^\d+$/;t.findedOrganization=null;t.getOperation=function(n){t.filter.inputedEDRPOU="";t.findedOrganization=null;t.operation=t.operations[n];console.log("Выводим операцию:",t.operation)};t.getOrganizationByEDRPOU=function(){console.log("inputedEDRPOU:",t.filter.inputedEDRPOU);abp.ui.setBusy("#findedOrganiz");i.getOrganizationsByInnOrEdrpou({innOrEdrpou:t.filter.inputedEDRPOU}).success(function(n){t.findedOrganization=n.organizations[0];t.filter.maxCreditSumActual=n.maxCreditAmmount;t.filter.maxCreditSum=n.maxCreditAmmount;console.log("finded organization:",t);abp.ui.clearBusy("#findedOrganiz")}).error(function(){t.findedOrganization=null;abp.ui.clearBusy("#findedOrganiz")})};t.changeCreditLimit=function(){abp.ui.setBusy("#findedOrganiz");i.updateMaxCreditAmmount({TenantId:t.findedOrganization.tenantId,MaxCreditAmmount:t.filter.maxCreditSum}).success(function(){abp.notify.success("Суму кредитного ліміту змінено");t.getOrganizationByEDRPOU();abp.ui.clearBusy("#findedOrganiz")}).error(function(){abp.ui.clearBusy("#findedOrganiz")})};t.resetEndDayBalanceForInnOrEdrpou=function(){abp.ui.setBusy("#findedOrganiz");r.resetEndDayBalanceForInnOrEdrpou({TenantId:t.findedOrganization.tenantId}).success(function(){abp.notify.success("Баланс перераховано");t.getOrganizationByEDRPOU();abp.ui.clearBusy("#findedOrganiz")}).error(function(){abp.ui.clearBusy("#findedOrganiz")})}}])}(),function(){angular.module("app").controller("app.views.operator.systemState",["$rootScope","$scope","abp.services.etender.systemInfo","ngTableParams",function(n,t,i,r){function e(){abp.ui.setBusy("#nonExp");i.getNotExportedEntities().success(function(n){u.nonExp=n;u.nonExp.forEach(function(n){n.isOpen=!1});u.isOpenedNonExp=!1;abp.ui.clearBusy("#nonExp")}).error(function(){abp.ui.clearBusy("#nonExp")})}function f(){abp.ui.setBusy("#stuckImp");i.getStuckOnImport().success(function(n){u.stuckImp=n.items;u.totalImpStuck=n.totalCount;u.isOpenedImpStuck=n.items!=null&&n.totalCount>0;u.isErrorImpStuck=u.isOpenedImpStuck;abp.ui.clearBusy("#stuckImp")}).error(function(){abp.ui.clearBusy("#stuckImp")})}function s(){abp.ui.setBusy("#noUrls");i.getNoAuctionUrls().success(function(n){u.noUrls=n.items;u.isOpenedNoUrls=n.items!=null&&n.totalCount>0;abp.ui.clearBusy("#noUrls")}).error(function(){abp.ui.clearBusy("#noUrls")})}var u=t.vm,o=new r({page:1,count:10},{counts:[],getData:function(n,t){var r={maxResultCount:t.count(),skipCount:(t.page()-1)*t.count()},f=i.getStuckAuctions(r);abp.ui.setBusy("#stuckExp");f.success(function(i){t.total(i.totalCount);u.stuckExp=i.items;u.isError=i.items!=null&&i.items.length>0;u.isOpened=u.isError;n.resolve(i.items);abp.ui.clearBusy("#stuckExp")}).error(function(){abp.ui.clearBusy("#stuckExp")})}});u.reload=function(){t.vm.tableParams.reload();t.vm.tableParams.page(1);e();f()};u.tableParams=o;u.getNonExpEntities=e;u.getStuckImpTenders=f;u.getNoUrls=s;u.isErrorNoUrls=!1;u.resetTenders=function(n){abp.message.confirm("Зміни, внесені під час останнього редагування, буде відхилено!","Увага!",function(t){t&&(abp.ui.setBusy("#stuckExp"),i.resetTender({tenderId:n}).success(function(){abp.notify.success("Успіх! Зміни скинуто.");abp.ui.clearBusy("#stuckExp");getStuckExpTenders()}).error(function(n){abp.notify.error("Ups... something went wrong: "+n.message);abp.ui.clearBusy("#stuckExp")}))})};u.resetAllImports=function(){abp.message.confirm("Буде перезапущено усі неімпортовані тендери!","Увага!",function(n){n&&(abp.ui.setBusy("#stuckImp"),i.resetAllImport().success(function(){abp.notify.success("Успіх! Тендери перезапущено.");abp.ui.clearBusy("#stuckImp");f()}).error(function(n){abp.notify.error("Ups... something went wrong: "+n.message);abp.ui.clearBusy("#stuckImp")}))})};u.resetImport=function(n){abp.ui.setBusy("#stuckImp");i.resetImpTender(n).success(function(){abp.notify.success("Успіх! Тендери перезапущено.");abp.ui.clearBusy("#stuckImp");f()}).error(function(n){abp.notify.error("Ups... something went wrong: "+n.message);abp.ui.clearBusy("#stuckImp")})};u.resetNonExps=function(n,t){abp.ui.setBusy("#nonExp");i.resetNonExportedEntity(n,t).success(function(){abp.notify.success("Успіх! Перезапущено на експорт.");abp.ui.clearBusy("#nonExp");e()}).error(function(n){abp.notify.error("Ups... something went wrong: "+n.message);abp.ui.clearBusy("#nonExp")})};u.reloadImp=function(){u.getStuckImpTenders()};u.reloadExp=function(){u.getNonExpEntities()};u.reloadNoUrls=function(){u.getNoUrls()};e();f()}])}(),function(){angular.module("app").controller("app.views.accessionTreaty",["$scope","$location","$rootScope","abp.services.etender.organization","$filter","tenderHelperService",function(n,t,i,r,u,f){n.agreedData=f.getOrganizationAgreementData(i.typeOfOrganization);n.agreementDocumentUrl="https://view.officeapps.live.com/op/embed.aspx?src=https://auction.e-tender.ua/Upload/"+n.agreedData.agreementDocument;n.signAgreement=function(){r.signAgreement(n.agreedData.agreementDocument).success(function(n){i.env.isAgreementSigned=n;localStorage.templateTabUrl="/app/Main/views/profile/myOrganization.cshtml";t.path("/profile")})}}])}(),function(){angular.module("app").controller("app.views.activateEmail",["$rootScope","$scope","$timeout","abp.services.etender.user","ngTableParams",function(n,t,i,r,u){t.isOperator=localStorage.isOperator&&(localStorage.isOperator==="true"||localStorage.isOperator===!0)||!1;t.pager={};t.tableParams=new u({page:1,count:10},{counts:[],getData:function(n,i){t.pager.page=i.page();t.pager.pageSize=i.count();var u=r.getUsersByEmailOrCodeOfOrganization(t.pager);abp.ui.setBusy();u.success(function(t){i.total(t.countRecords);n.resolve(t.users);t.users&&t.users.length===0&&abp.notify.warn("Жодного користувача не знайдено");abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})}});var f;t.search=function(){i.cancel(f);f=i(function(){t.tableParams.reload();t.tableParams.page(1)},1e3)};t.clear=function(){t.pager.userData=null;t.tableParams.reload();t.tableParams.page(1)};t.activateEmail=function(n){abp.ui.setBusy();var t=r.activateEmail(n.id);t.success(function(t){abp.ui.clearBusy();t&&(n.isEmailConfirmed=!0);abp.notify.success("Адресу електронної пошти підтверджено")}).error(function(){abp.ui.clearBusy()})};t.resetUserPassword=function(n){confirm("Ви дійсно бажаєте змінити пароль даного користувача?")&&(abp.ui.setBusy(),r.resetUserPassword(n).success(function(){abp.notify.success("Пароль змінено на стандартний");abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()}))}}])}(),function(){angular.module("app").controller("app.views.allBids",["$rootScope","$scope","abp.services.etender.bid","ngTableParams","tenderHelperService","lookupService","bankOperationsService",function(n,t,i,r,u,f,e){function o(n){n.statusDesc=u.getTenderDescriptionByStatus(n.status,n.procurementMethodType)}function s(n){n.procedureType=u.getProcurementMethodTitle(n.procurementMethodType,n.tenderAttempts)}function h(n){n.statusDesc=f.getBidStatusDesc(n.status,n.isCanceledByModerator,!0)}t.body="";t.numberRegex=n.regex.number;t.regexNumber=n.regex.floatNumber;t.dateRegex=n.regex.date;t.invoiceInput={};t.vModel={isOpen:!1};t.openFilter=function(){t.vModel.isOpen=!t.vModel.isOpen};t.procurementMethodTypeDictionary=u.getProcurementMethodsByFilter();t.invoicesFilterDictionary=[{name:"Оплачено",value:!0},{name:"Не оплачено",value:!1}];t.requiredDocumentFilterDictionary=[{name:"Завантажено",value:!0},{name:"Не завантажено",value:!1}];t.activeTab=1;t.stateColumnTitle="Підтвердження пропозиції";t.actionColumnTitle="Відхилення пропозиції";t.inProgress=!1;t.inputBids={sorting:"CreationTime desc",tabNumber:t.activeTab,searchFilter:{procurementMethodTypeObjs:[]}};t.tableParams=new r({page:1,count:10},{counts:[10,25,50,100,200,500],getData:function(n,r){r.orderBy().length>0&&(t.inputBids.OrderColumn=r.orderBy()[0].slice(1),t.inputBids.OrderDirection=r.sorting()[r.orderBy()[0].slice(1)],t.inputBids.sorting=t.inputBids.OrderColumn+" "+t.inputBids.OrderDirection);t.inputBids.maxResultCount=r.count();t.inputBids.skipCount=(r.page()-1)*r.count();var f=i.getAllBidsAuctionsForOperator(t.inputBids);abp.ui.setBusy(".panel-default:first");f.success(function(i){i.items.forEach(function(n){u.hrefToTender(n.tender);o(n.tender);h(n);s(n.tender)});r.total(i.totalCount);console.log(i);t.bids=i.items;n.resolve(i.items);abp.ui.clearBusy(".panel-default")})}});t.activateBid=function(r){i.confirmBid({id:r.id,bidNumber:r.bidNumber}).success(function(i){i.isActivateSuccessfully?(abp.notify.success("Пропозицію підтверджено!"),t.tableParams.reload()):(abp.notify.error(i.errorMessage),i.errorMessage===n.source("BidOfCurrentTenantAlreadyRegistered")&&(r.isAlreadyRegisteredCurrentTenant=!0))})};t.cancelBidByModerator=function(n,r){i.cancelBidByModerator({id:n.id,cancellationModeratorReason:r}).success(function(){abp.notify.warn("Пропозицію відхилено!");t.tableParams.reload()})};t.canConfirm=function(n){return!n.selfQualifiedChecked||n.tender.procurementMethodType==="dgfFinancialAssets"&&!n.selfEligibleChecked};t.changeTab=function(n){switch(n){case 1:case 2:case 3:t.stateColumnTitle="Підтвердження пропозиції";t.actionColumnTitle="Відхилення пропозиції";t.inputBids.sorting="CreationTime desc";t.inProgress=!1;break;default:t.stateColumnTitle="Стан рахунків / пропозиції / аукціону";t.actionColumnTitle="Дії оператора";t.inputBids.sorting="AuctionPeriodStartDate desc";t.inProgress=n!==5?!0:!1}t.activeTab=n;t.inputBids.tabNumber=n;t.clear();t.tableParams.reload();t.tableParams.page(1)};t.clear=function(){t.inputBids.searchFilter.periodFrom="";t.inputBids.searchFilter.periodTo="";t.inputBids.searchFilter.searchString="";t.inputBids.searchFilter.isAllInvoicesPaidObj=null;t.inputBids.searchFilter.isAllInvoicesPaid=null;t.inputBids.searchFilter.hasRequiredDocumentObj=null;t.inputBids.searchFilter.hasRequiredDocument=null;t.inputBids.searchFilter.procurementMethodTypeObjs=[];t.inputBids.searchFilter.procurementMethodTypes=[];t.procurementMethodTypeInput=null;t.tableParams.page(1);t.tableParams.reload()};t.search=function(){t.inputBids.searchFilter.procurementMethodTypes=t.inputBids.searchFilter.procurementMethodTypeObjs.map(function(n){return n.procurementMethodType});t.inputBids.searchFilter.hasRequiredDocument=t.inputBids.searchFilter.hasRequiredDocumentObj?t.inputBids.searchFilter.hasRequiredDocumentObj.value:null;t.inputBids.searchFilter.isAllInvoicesPaid=t.inputBids.searchFilter.isAllInvoicesPaidObj?t.inputBids.searchFilter.isAllInvoicesPaidObj.value:null;t.tableParams.reload();t.tableParams.page(1)};t.deleteFromInProgress=function(n){confirm('Ви дійсно бажаєте видалити цю пропозицію з вкладки "В роботі"? Відминити цю дію буде неможливо.')&&i.deleteFromInProgress(n.id).success(function(){t.tableParams.reload()})};t.setBidByInvoiceInput=function(n){t.invoiceInput.bid=n};t.createInvoice=function(n){var i={tenantId:t.invoiceInput.bid.tenderers[0].tenantId,tenderNewId:t.invoiceInput.bid.tender.id,amount:parseFloat(t.invoiceInput.amount),invoiceType:n,withVat:!0,andCreate:!1};e.generateInvoiceAndCreatePdf(i)};t.changeProcurementMethodType=function(){var i,n;if(t.procurementMethodTypeInput&&t.procurementMethodTypeInput.procurementMethodType!=="all"){for(i=!0,n=0;n<t.inputBids.searchFilter.procurementMethodTypeObjs.length;n++)t.inputBids.searchFilter.procurementMethodTypeObjs[n].procurementMethodType===t.procurementMethodTypeInput.procurementMethodType&&(i=!1);i&&t.inputBids.searchFilter.procurementMethodTypeObjs.push({name:t.procurementMethodTypeInput.name,procurementMethodType:t.procurementMethodTypeInput.procurementMethodType});t.inputBids.searchFilter.procurementMethodTypeObjs&&t.inputBids.searchFilter.procurementMethodTypeObjs.length>0&&(t.procurementInputDescription="Оберіть процедуру")}else t.inputBids.searchFilter.procurementMethodTypeObjs=[];t.isSelected()};t.removeItem=function(n,i){n.splice(i,1);t.isSelected();t.procurementMethodTypeInput=null};t.isDateIntervalGood=function(n,i){return t.isSelected(),n&&i?i>=n:!0};t.isSelected=function(){t.isClearBtnActive=t.inputBids.searchFilter.procurementMethodTypeObjs.length>0||t.inputBids.searchFilter.searchString||t.inputBids.searchFilter.periodFrom||t.inputBids.searchFilter.periodTo||t.inputBids.searchFilter.isAllInvoicesPaidObj&&t.inputBids.searchFilter.isAllInvoicesPaidObj.value!=null||t.inputBids.searchFilter.hasRequiredDocumentObj&&t.inputBids.searchFilter.hasRequiredDocumentObj.value!=null}}])}(),function(){angular.module("app").controller("app.views.auctions",["$scope","$rootScope","ngTableParams","abp.services.etender.timberTender","tenderHelperService","numberOfRecords",function(n,t,i,r,u,f){function p(n,i){var r,u;if(clearInterval(y),s&&s.close(),t.auctionsSocketUrl&&t.auctionsSocketUrl.length)r=t.auctionsSocketUrl;else{abp.notify.error("Відсутній auctionsSocketUrl. Не вдається створити кімнату.");console.error("No auctionsSocketUrl! Can not create room!");return}u=r+n+"/feed";s=new WebSocket(u);s.onmessage=function(n){var t=JSON.parse(n.data);t&&!t.error&&(t.length||(t=[t]),t.forEach(function(n){var t=i.find(function(t){return t.tenderId===n._id}),r;t.tenderInfo=n;r=n.public_meta.timeline.findIndex(function(n){var u=Date.parse(n.start),f=Date.parse(n.end),i=(new Date).getTime(),r=i>u&&i<f;return r&&console.log("Active!",t),r||console.log("Not Active: ",n.start,n.end,u,f,i),r});t.tenderInfoStatus=n.public_meta.timeline[r];t.nextTenderInfoStatus=n.public_meta.timeline[r+1];a(t)}),y=setInterval(function(){i.forEach(function(n){a(n)})},1e3))}}function a(n){var t,f,l,e,v,o;if(n&&n.tenderInfo){t=n.tenderInfo;n.maxBidAmount=0;angular.forEach(t.bids,function(t){t.amount>n.maxBidAmount&&(n.maxBidAmount=t.amount)});n.maxBidAmount===0&&angular.forEach(t.initialBids,function(t){t.amount>n.maxBidAmount&&(n.maxBidAmount=t.amount)});n.isCanDoBid=!1;f=t.bids&&t.bids[t.public_meta.current_bid_id];f&&(f.apiId===n.bid.apiId||f.id===n.bid.apiId)&&(n.isCanDoBid=!0,n.currentBidAmount=f.amount,l=t.bidsHistory[t.public_meta.round_counter-2],e=l&&l.filter(t=>t.id===n.bid.apiId)[0],n.myPreviousBidAmountMax=(e?e.amount:n.bid.lotValues[0].value.amount)*10,n.myBidMinAmount=(e?e.amount:n.bid.lotValues[0].value.amount)+n.minimalStep.amount,n.hint=t.bidsInfo[n.bid.apiId].hint.uk_UA);n.participantCount=t.bidCount;var y=n.bid.apiId,s=Object.keys(t.bids||{}).indexOf(y),i="Аукціон завершився",a;if(s===t.public_meta.current_bid_index?i="Ваш крок":s<t.public_meta.current_bid_index?(i="До завершення "+t.public_meta.round_counter+"-го раунду",a=t.bidCount-(t.public_meta.current_bid_index+1)):s>t.public_meta.current_bid_index&&(i="до вашого кроку залишилось",a=s-(t.public_meta.current_bid_index+1)),i=="Ваш крок"||i.includes("До завершення")?n.step="Раунд "+t.public_meta.round_counter:i=="Аукціон завершився"&&(n.step=null),v=Date.parse(t.public_meta.round_end_time),o=v-Date.now(),o>0&&(i=="Ваш крок"||i.includes("До завершення"))){var u=~~(o/1e3),r=u>=60?~~(u/60):0,h=r>=60?~~(r/60):0;u-=r*60;r-=h*60;n.roundRemains={h:c(h),m:c(r),s:c(u)}}else n.roundRemains=null;var p=moment.utc(t.timer).local(),w=moment(),o=p.diff(w);if(o>0&&(i=="Аукціон завершився"||i=="до вашого кроку залишилось"||i.includes("До завершення"))){var u=~~(o/1e3),r=u>=60?~~(u/60):0,h=r>=60?~~(r/60):0;u-=r*60;r-=h*60;n.bidRemains={h:c(h),m:c(r),s:c(u)}}else n.bidRemains=null}}function c(n){var t=n.toString();return t.length>1?t:"0"+t}function w(t){abp.ui.setBusy("#auctionsTable");r.addAuctionBid({auctionId:t.tenderId,bidApiId:t.bid.apiId,amount:t.newBidValue}).success(function(){n.reload();abp.notify.success("Ставку зроблено!");abp.ui.clearBusy("#auctionsTable")}).error(function(){abp.ui.clearBusy("#auctionsTable")})}function l(){o.timeToUpdate={seconds:0,minutes:1}}var o=n.vm={},e,h,s,y,v;n.customTendTitle=function(n){return n};n.pager={onlyActiveAuctions:!1,searchFilter:{categoryId:12,columnFilters:[{Name:"Title",Filter:""},{Name:"Description",Filter:""},{Name:"OrganizationName",Filter:""},{Name:"tenderPeriodEndFrom",Filter:""},{Name:"tenderPeriodEndTo",Filter:""},{Name:"tenderPeriodStartFrom",Filter:""},{Name:"tenderPeriodStartTo",Filter:""},{Name:"classificationCpv",Filter:""},{Name:"classificationCav",Filter:""},{Name:"classificationDkpp",Filter:""}],forest:{}}};n.vm.tableParams=n.tableParams=new i({page:function(){return localStorage.forestAuctionsCurrentPage&&localStorage.forestAuctionsCurrentPage.length>0?localStorage.forestAuctionsCurrentPage:1}(),count:t.env.isIframe?numberOfRecordsIframe:f,sorting:{tenderStartDate:"desc"}},{getData:function(t,i){n.pager.Page=i.page();localStorage.forestAuctionsCurrentPage=n.pager.Page;n.pager.PageSize=i.count();n.pager.OrderColumn=i.orderBy()[0].slice(1);n.pager.OrderDirection=i.sorting()[i.orderBy()[0].slice(1)];n.pager.searchFilter.isProductionMode=n.isPM;n.pager.searchIdentifier=n.pager.searchFilter.searchIdentifier;n.user&&(n.pager.searchFilter.UserName=n.user);abp.ui.setBusy("#auctionsTable");var f=r.getTendersTimberAuctions(n.pager);f.success(function(n){var f,o;abp.ui.clearBusy("#auctionsTable");abp.notify.warn("Кількість активних аукціонів на сьогодні складає "+n.activeCount,"Увага!");i.total(n.countAllRecords);f=[];n.tender.forEach(function(n){u.setTenderDescriptionByStatus(n);n.isCanDoBid=!1;a(n);var t=Date.parse(n.auctionStartDate),i=Date.now();i>=t&&n.status=="active.auction"&&n.bid&&f.push(n)});f.length?(o=!1,angular.forEach(e,function(n,t){f.some(function(n){return n.tenderId===t})||(console.log("Some tender in room is not in the activeTenders"),o=!0)}),angular.forEach(f,function(n){e&&!e[n.tenderId]&&(console.log("Some tender in activeTenders is not in the room"),o=!0)}),e||(o=!0),e&&!o&&console.log("Active tenders are the same as in the room"),o?(console.log("Some active auctions!"),e={},f.forEach(function(n){e[n.tenderId]={bidder_id:n.bid.apiId,acc_token:n.bid.token}}),r.createAuctionRoom(e).then(function(n){var t=JSON.parse(n.data);h=t.room_id;console.log("room created, roomId:",h);p(h,f)}).catch(function(){console.error("something went wrong...")})):(console.log("No active auctions, or no changes in it. Do not create room."),h&&p(h,f))):(console.log("No active auctions at all"),s&&s.close(),s=null,h=null,e=null);t.resolve(n.tender)})}});n.addBid=function(n){if(abp.ui.setBusy("#auctionsTable"),n.newBidValue<n.myBidMinAmount){abp.notify.error(n.hint);abp.ui.clearBusy("#auctionsTable");return}abp.ui.clearBusy("#auctionsTable");n.newBidValue>=n.myPreviousBidAmountMax?u.sweetAlert({title:"Ваша ставка ("+n.newBidValue+") відрізняється від попередньої більше ніж у 10 разів. \nВи підтверджуєте поточну ставку?",text:"",type:"warning",showCancelButton:!0,confirmButtonColor:"#48b168",confirmButtonText:"Підтвердити",cancelButtonText:"Скасувати",closeOnConfirm:!0},function(){w(n)},"alertCancelButtonRed"):w(n)};n.cancelBid=function(n){abp.ui.setBusy("#auctionsTable");r.cancelAuctionBid({auctionId:n.tenderId,bidApiId:n.bid.apiId}).success(function(){abp.notify.success("Ставку скасовано!");abp.ui.clearBusy("#auctionsTable")}).error(function(){abp.ui.clearBusy("#auctionsTable")})};n.reload=function(){var t=n.vm.tableParams.page();n.vm.tableParams.reload();n.vm.tableParams.page(t?t:1)};l();n.$watch("vm.autoUpdate",function(t){t?v=setInterval(function(){n.$parent.currentTab!=="auctions"&&(clearInterval(v),l());o.timeToUpdate.minutes<=0&&o.timeToUpdate.seconds<=0?(n.vm.tableParams.reload(),l()):o.timeToUpdate.seconds<=0?(o.timeToUpdate.minutes--,o.timeToUpdate.seconds=59):o.timeToUpdate.seconds--},1e3):(l(),clearInterval(v))})}])}(),function(){angular.module("app").controller("app.views.authorizedPersons",["$rootScope","$scope","ngTableParams","abp.services.etender.user","abp.services.etender.organization",function(n,t,i,r,u){t.reloadTenders=function(){};t.currentUserName="";t.roles={admin:{roleName:"Admin",isInRole:!1},subscriber:{roleName:"Subscriber",isInRole:!1},customer:{roleName:"Customer",isInRole:!1}};t.approveUserInput={tenantApprovementMessage:""};t.setApproveUser=function(n,i){var r,f,e;t.approveUserInput.tenantApprovementMessage||(t.approveUserInput.tenantApprovementMessage="");r=t.approveUserInput;r.roles=[];f=t.roles;for(e in f)f[e].isInRole&&r.roles.push(f[e].roleName);r.tenantId=sessionStorage.tenantId;r.userId=i;r.isApproved=n;u.setUserTenantApprovement(r).success(function(){abp.notify.success("Користувача успішно затверджено");t.tableUsersParams.reload()}).error(function(){})};t.tableUsersParams=new i({page:1,count:10,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(n,t){var i={maxResultCount:900,skipCount:(t.page()-1)*t.count(),sorting:"CreationTime DESC"},r=u.getUsersWantJoinToTenant(i);abp.ui.setBusy(".panel-default:first");r.success(function(t){abp.ui.clearBusy(".panel-default");console.log(t);n.resolve(t.items)})}});t.setUserRole=function(n,i){var r={admin:i.admin,subscriber:i.subscriber,customer:i.customer,userId:n.userId,tenantId:n.tenantId},f=u.setUserRoleByUserId(r);f.success(function(){abp.notify.success("Роль встановлена.");t.tableUsersParams.reload()}).error(function(){abp.notify.error("Роль не встановлена.")})};t.showUserInfo=function(n){var i,r,u;if(t.item=n,t.approveUserInput.tenantApprovementMessage=n.tenantApprovementMessage,i=n.user.roles,typeof i=="object"&&i instanceof Array)for(r in t.roles)u=t.roles[r].roleName,t.roles[r].isInRole=i.indexOf(u)>-1;$("#modalAuthorizedUser").modal("show")};t.showUserTenders=function(i){t.currentUserName=i;n.$broadcast("userNameChange",i);$("#modalUserTenders").modal("show")};t.setUserBlockStatus=function(n,i){var u=n?"Користувача заблоковано":"Користувача разблоковано",f=r.blockOrUnblockUser({userName:i,isBlock:n});f.success(function(){abp.notify.success(u);t.tableUsersParams.reload()}).error(function(){abp.notify.error("Не вдалося виконати операцію по блокуванню/розблокуванню користувача!")})}}])}(),function(){angular.module("app").controller("app.views.changePassword",["$scope","$state","$http","$location",function(n,t,i,r){var f=localStorage.username||sessionStorage.username,u;n.isChangedPassword=!1;u=function(n){return abp.ajax({url:abp.appPath+"Account/ChangePassword",type:"POST",data:JSON.stringify(n),beforeSend:abp.ui.setBusy("#changePasswordBtn")})};n.submit=function(){var e={UserName:f,OldPassword:n.oldPassword,NewPassword:n.newPassword},i=u(e);return i.then(function(){abp.notify.success("Ви успішно змінили пароль!");n.$apply(function(){r.path("/profile")});t.reload()}),abp.ui.clearBusy("#changePasswordBtn"),i}}])}(),function(){angular.module("app").controller("app.views.childOrganizations",["$rootScope","$scope","abp.services.etender.organization","ngTableParams",function(n,t,i,r){t.orgInput={page:1,pageSize:10,parentId:localStorage.organizationId,codeEdrpou:null};t.tableChildOrgs=new r({page:1,count:10},{counts:[],getData:function(n,r){t.orgInput.codeEdrpou=t.codeEdrpou;t.orgInput.maxResultCount=r.count();t.orgInput.skipCount=(r.page()-1)*r.count();t.orgInput.sorting="NameCPV ASC";t.orgInput.page=r.page();var u=i.getChildOrganizations(t.orgInput);abp.ui.setBusy(".panel-default:first");u.success(function(i){r.total(i.totalCount);n.resolve(i.items);t.isChildOrgExist=i.items.length>0;abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}});t.search=function(){t.tableChildOrgs.reload();t.tableChildOrgs.page(1)}}]).directive("backButton",function(){return{restrict:"A",link:function(n,t){function i(){history.back();n.$apply()}t.bind("click",i)}}})}(),function(){"use strict";function n(n,t,i,r){var u=n.vm,f;u.searchCpv=function(){i.cancel(f);f=i(function(){u.tableParamsCpv.reload();u.tableParamsCpv.page(1)},1e3)};n.init=function(n,t){u.tableParamsCpv=new r({page:1,count:10},{total:0,counts:[],getData:n});u.updateDataCpv=t}}angular.module("app").controller("classificationCpv",n);n.$inject=["$scope","$filter","$timeout","ngTableParams","abp.services.etender.reference"]}(),function(){"use strict";function n(n,t,i,r){var u=n.vm,f;u.searchDk=function(){i.cancel(f);f=i(function(){u.tableParamsDk.reload();u.tableParamsDk.page(1)},1e3)};n.init=function(n,t){u.tableParamsDk=new r({page:1,count:10},{total:0,counts:[],getData:n});u.updateDataDk=t}}angular.module("app").controller("classificationDk",n);n.$inject=["$scope","$filter","$timeout","ngTableParams","abp.services.etender.reference"]}(),function(){angular.module("app").controller("app.views.createProfile",["$rootScope","$scope","abp.services.etender.user","lookupService","abp.services.etender.address","abp.services.etender.organization","$location","tenderHelperService","$timeout","abp.services.etender.koatuuReference","$cookies",function(n,t,i,r,u,f,e,o,s,h,c){function v(){t.showDoc=!0;s(function(){var n=$("#iframe").contents().find("body").html();if(n==="")t.showDoc=!1,s(function(){v()},1e3);else return},2e3)}function y(n){abp.ui.setBusy();var i=f.getOrganizationFromYouScore(n);i.then(function(n){if(console.log(n),n&&n.data){if(n.data.name&&(t.profileData.name=n.data.name.fullName,t.profileData.shortName=n.data.name.shortName),t.profileData.organizationStatus=n.data.status,n.data.signers&&n.data.signers.length>0){var i=n.data.signers[0].name.split(" ");t.profileData.director.fio={lastName:i[0],firstName:i[1],patronymic:i[2]}}p(n.data)}});abp.ui.clearBusy()}function p(n){var i,r;if(n.address){i=n.address.split(", ");t.profileData.address.region=null;t.profileData.address.addressStr=null;t.profileData.address.newCity=null;t.profileData.address.postIndex=null;var u=null,s="місто Київ",e="село ",f="місто ",o="селище міського типу ",h="р-н";for(r=0;r<i.length;r++)i[r].match("Україна")&&i.splice(r,1);i.forEach(function(n,i){n.match("обл.")?t.profileData.address.region={title:n.replace("обл.","область"),id:0}:n.match(s)?t.profileData.address.region={title:n.substring(f.length),id:0}:n.match(e)?u=n.substring(e.length):n.match(f)?u=n.substring(f.length):n.match(o)?u=n.substring(o.length):i>0&&!n.match(h)&&(t.profileData.address.addressStr=t.profileData.address.addressStr?t.profileData.address.addressStr+", "+n:n)});t.profileData.address.newCity={title:u};w(t.profileData.address.region,t.profileData.address.newCity);t.profileData.address.postIndex=i[0]}}function w(n,i){if(i&&i.title)return h.getOtherCitiesByRegion(n.title,i.title).then(function(n){n.data.forEach(function(n){n.title.toLowerCase()===i.title.toLowerCase()&&(t.profileData.address.newCity=n)})})}var l,a;t.request={};t.patternUAIBAN=n.regex.accountUAIBAN;t.patternNumber=n.regex.number;t.request={reason:"Прошу зареєструвати мене як Працівника організації..."};t.isYurPhinComp=!1;t.isCheckNotHaveInn=!1;t.vm={isCreateOrganization:!0};t.profileData={directionType:null,opfType:null,roleType:null,address:{},postAddress:{},contactPoint:{fio:{}},director:{fio:{}},identifier:{},codeOfOrganization:null,name:null,nameEN:null,isCustomer:!0,shortName:null,typeOfOrganization:null,userName:localStorage.username||sessionStorage.username,isVatPayer:!1,vatNumber:null,bankAccount:{description:null,bankName:null,accountIdentification:[]},CompanyCreationGATag:c.get("_ga")};t.passFirstStep=function(n){t.profileData.directionType=n.type;t.step=2};t.directionTypes=function(){return r.getDirectionTypes()};t.opfTypes=function(n){return n?r.getOpfTypes(n):[]};t.roleTypes=function(n,t){return n?r.getRoleTypes(n,t):[]};l=function(){abp.ajax({url:"/account/IsLoggedJsonReturn",data:JSON.stringify({})}).done(function(n){if(n.isLogged){var r=i.getUser({userName:localStorage.username||sessionStorage.username});r.success(function(n){n&&(n.tenantId&&n.roles.length===0&&e.path("/registerStage3"),t.profileData.contactPoint.email=n.emailAddress,t.profileData.contactPoint.fio.lastName=n.surname,t.profileData.contactPoint.fio.firstName=n.name,t.profileData.contactPoint.telephone=n.phone)})}})};l();a=0;t.step=1;t.person={};t.personDocType=0;t.showMessage=!1;t.isRegistered=!0;t.isParentRegistered=!0;t.isPostAddressDiff=!1;t.$watch("hasMainOrganization",function(){t.hasMainOrganization||(t.profileData.parentCodeEDRPOU=null,t.isParentRegistered=!0,t.profileData.parentId=0);t.hasMainOrganization&&(!t.profileData.parentCodeEDRPOU||t.profileData.parentCodeEDRPOU=="")&&(t.profileData.parentId=0)});t.$watch("profileData.parentCodeEDRPOU",function(){if(t.isParentRegistered=!0,!t.profileData.parentCodeEDRPOU||t.profileData.parentCodeEDRPOU==""){t.profileData.parentId=0;return}var n=f.isOrganizationRegistered({tenantName:t.profileData.parentCodeEDRPOU});n&&n.success(function(n){t.isParentRegistered=n;t.isParentRegistered&&f.getOrganizationsByInnOrEdrpou({innOrEdrpou:t.profileData.parentCodeEDRPOU}).success(function(n){console.log("Parent Org:",n);t.profileData.parentId=n.organizations[0].id})})});t.$watch("profileData.codeOfOrganization",function(){if(t.profileData.codeOfOrganization==null||![11,12,13,14,15].includes(t.profileData.opfType)){t.showMessage=!1;t.profileData.opfType===15&&(t.isRegistered=!1);return}var n=f.isOrganizationRegistered({tenantName:t.profileData.codeOfOrganization});abp.ui.setBusy("#btnNextRegister");n.success(function(n){abp.ui.clearBusy("#btnNextRegister");t.showMessage=!0;t.isRegistered=n;t.profileData.directionType===2&&(t.profileData.roleType=t.isRegistered?null:r.getRoleType(t.profileData.directionType,t.profileData.opfType))})});t.$watch("person.value",function(){if(t.person&&t.person.value){var n=o.getOrganizationAgreementData(t.person.value);t.profileData.isCustomer=n.isCustomer;t.personDocType=n.personDocType;t.agreementDocument=n.agreementDocument}else{t.showMessage=!1;return}});t.logAgreeAndSubmit=function(n){abp.ui.setBusy(".panel-body");f.userRegistrationLogAgree(n).success(function(){t.profileData.isAgreementSigned=!0;abp.notify.success("ДОГОВІР ПРИЄДНАННЯ підтверджено!");abp.ui.clearBusy(".panel-body");t.submit()}).error(function(){abp.notify.error("Неможливо підтвердити ДОГОВІР ПРИЄДНАННЯ");abp.ui.clearBusy(".panel-body")})};t.submit=function(){a=2;abp.ui.setBusy(".panel-body");t.profileData.parentId||(t.profileData.parentId=0);t.profileData.typeOfOrganization=t.person.value;t.profileData.contactPoint.name=o.joinName(t.profileData.contactPoint.fio);t.profileData.contactPoint.telephone&&t.profileData.contactPoint.telephone.charAt(0)!=="+"&&(t.profileData.contactPoint.telephone="+"+t.profileData.contactPoint.telephone);t.profileData.contactPoint.faxNumber&&t.profileData.contactPoint.faxNumber.charAt(0)!=="+"&&(t.profileData.contactPoint.faxNumber="+"+t.profileData.contactPoint.faxNumber);(t.profileData.opfType===12||t.profileData.opfType===13||t.profileData.opfType===14)&&(t.profileData.director=null);t.profileData.director&&t.profileData.director.fio&&(t.profileData.director.name=o.joinName(t.profileData.director.fio.firstName&&t.profileData.director.fio.firstName!==""?t.profileData.director.fio:t.profileData.contactPoint.fio),t.profileData.director.email=t.profileData.contactPoint.email,t.profileData.director.telephone=t.profileData.contactPoint.telephone,t.profileData.director.faxNumber=t.profileData.contactPoint.faxNumber);(t.person.value===1||t.person.value===23||t.person.value===24)&&(t.profileData.shortName=t.profileData.contactPoint.fio.firstName,t.profileData.name=o.joinName(t.profileData.contactPoint.fio));t.person.value===15&&(t.profileData.shortName=t.profileData.contactPoint.fio.firstName.toUpperCase(),t.profileData.name=o.joinName(t.profileData.contactPoint.fio).toUpperCase());(t.person.value===6||t.person.value===10||t.person.value===11||t.person.value===14)&&(t.profileData.shortName=t.profileData.contactPoint.fio.firstName,t.profileData.name="ФОП "+o.joinName(t.profileData.contactPoint.fio).toUpperCase());t.person.value===1||t.person.value===6||t.person.value===10||t.person.value===11||t.person.value===14||t.person.value===15||t.person.value===23||t.person.value===24?t.profileData.identifier.scheme=t.profileData.codeOfOrganization&&n.regex.passportUkraineOldFormat.test(t.profileData.codeOfOrganization)?"UA-PASSPORT":t.profileData.codeOfOrganization&&n.regex.passportIdCardUkraine.test(t.profileData.codeOfOrganization)?"UA-ID-CARD":t.person.value===6||t.person.value===10||t.person.value===11||t.person.value===14?"UA-IPN-FOP":"UA-IPN":t.person.value===3?t.profileData.identifier.scheme==null:t.profileData.identifier.scheme="UA-EDR";t.profileData.identifier.apiId=t.profileData.codeOfOrganization;t.profileData.identifier.legalName=t.profileData.name;t.profileData.identifier.legalNameEN=t.profileData.nameEN;t.isPostAddressDiff||(t.profileData.postAddress=null);f.updateOrCreateOrganization(t.profileData).success(function(){abp.notify.success("Організацію успішно створено!");dataLayer.push({event:"virtualPageView",virtualPageURL:"/thankYouPage2",virtualPageTitle:"Second_Step_Registration"});var n=function(){e.path("/registerStage3");abp.ui.clearBusy(".panel-body")};o.getUserAndOrganizationData(i.getUser,f.getOrganization,n)}).error(function(){abp.notify.error("Неможливо створити організацію!");abp.ui.clearBusy(".panel-body")})};t.setRequest=function(){var n={edrpoyOrInn:t.profileData.codeOfOrganization,userId:t.profileData.userId,tenantRequestMessage:t.request.reason},i=f.createUserToTenantRequest(n);i.success(function(){abp.notify.success("Ви успішно подали запит на вступ до організації!");e.path("/profile")}).error(function(){abp.notify.error("Ви не змогли подали запит на вступ до організації!")})};t.reg1={value:!1};t.reg2={value:!1};t.reg3={value:!1};t.Offer2={value:!1};t.persData3={value:!1};t.isAllOfferChecked=function(n){switch(n){case 1:case 2:case 4:case 6:if(t.reg1.value&&t.Offer2.value&&t.reg2.value&&t.reg3.value)return!0;break;case 5:case 16:case 17:if(t.reg1.value&&t.reg2.value)return!0;break;case 7:case 8:case 10:case 13:case 14:case 15:return!0;case 9:case 11:if(t.reg1.value&&t.reg2.value)return!0}return!1};t.next=function(){t.step++;t.step===3&&(t.profileData.anotherCountry=t.profileData.opfType===15,t.person=r.getOrganizationType(t.profileData.roleType.type,t.profileData.opfType),t.profileData.opfType!==15&&t.profileData.opfType!==13&&y(t.profileData.codeOfOrganization));t.step===4&&v()};t.back=function(){t.step--};t.PostAddressDiffChange=function(){t.isPostAddressDiff||(t.postAddress={})};t.isCheckBoxNotHaveInn=function(n){t.isCheckNotHaveInn=n};t.changeOpfType=function(){t.profileData.codeOfOrganization=null;t.profileData.roleType=null;t.showMessage=!1;t.isRegistered=!0};t.vatPayerChanged=function(n){t.profileData.vatNumber=n?t.person.value===6?t.profileData.codeOfOrganization:"":""}}])}(),function(){angular.module("app").controller("app.views.createProfileOld",["$rootScope","$scope","abp.services.etender.user","abp.services.etender.reference","abp.services.etender.address","abp.services.etender.organization","$location","tenderHelperService",function(n,t,i,r,u,f,e,o){var l,h,a,v,c,s;t.request={};t.request={reason:"Прошу зареєструвати мене як Працівника організації..."};t.isYurPhinComp=!1;t.profileData={addressNId:null,codeOfOrganization:null,name:null,nameEN:null,isCustomer:!0,shortName:null,typeOfOrganization:null,userName:localStorage.username||sessionStorage.username,userId:abp.session.userId,isVatPayer:!1,numLicenseFinCompany:null,vatNumber:null,scheme:t.isYurPhinComp!==undefined&&t.isYurPhinComp===!0?"UA-FIN":"UA-EDR"};t.contactPoint={email:null};l=function(){abp.ajax({url:"/account/IsLoggedJsonReturn",data:JSON.stringify({})}).done(function(n){if(n.isLogged){var r=i.getUser({userName:localStorage.username||sessionStorage.username});r.success(function(n){n&&(t.contactPoint.email=n.emailAddress)})}})};l();c=0;t.step=1;t.director={};t.address={};t.person={};t.showMessage=!1;t.isRegistered=!1;t.isParentRegistered=!0;t.isPostAddressDiff=!1;t.$watch("profileData.name",function(){t.profileData.name!=null&&(t.person.value===2||t.person.value===4)&&(t.profileData.shortName=t.profileData.name)});t.$watch("profileData.shortName",function(){t.profileData.shortName!=null&&t.person.value===5&&(t.profileData.name=t.profileData.shortName)});t.$watch("hasMainOrganization",function(){t.hasMainOrganization||(t.profileData.parentCodeEDRPOU=null,t.isParentRegistered=!0,t.profileData.parentId=0);t.hasMainOrganization&&(!t.profileData.parentCodeEDRPOU||t.profileData.parentCodeEDRPOU=="")&&(t.profileData.parentId=0)});t.$watch("profileData.parentCodeEDRPOU",function(){if(t.isParentRegistered=!0,!t.profileData.parentCodeEDRPOU||t.profileData.parentCodeEDRPOU==""){t.profileData.parentId=0;return}var n=f.isOrganizationRegistered({tenantName:t.profileData.parentCodeEDRPOU});n&&n.success(function(n){t.isParentRegistered=n;t.isParentRegistered&&f.getOrganizationsByInnOrEdrpou({innOrEdrpou:t.profileData.parentCodeEDRPOU}).success(function(n){console.log("Parent Org:",n);t.profileData.parentId=n.organizations[0].id})})});t.$watch("profileData.codeOfOrganization",function(){if(t.profileData.codeOfOrganization==null||![1,2,3,4,5,6,7,8,9,10,11].includes(t.person.value)){t.showMessage=!1;return}var n=f.isOrganizationRegistered({tenantName:t.profileData.codeOfOrganization});n.success(function(n){t.showMessage=!0;t.isRegistered=n})});t.next=function(){t.step++};t.back=function(){t.step--};t.$watch(function(){return t.person},function(){if(!t.person){t.showMessage=!1;return}switch(t.person.value){case 1:t.profileData.codeEDRPOU=null;t.profileData.directorFirstName=null;t.profileData.directorLastName=null;t.profileData.directorPatronymic=null;t.isCustomer=!1;t.showMessage=!1;break;case 2:t.profileData.inn=null;t.showMessage=!1;break;case 6:t.profileData.inn=null;t.showMessage=!1;break;case 5:t.isCustomer=!0;t.profileData.isCustomer=!0}});s=function(){v&&h&&a&&(c++,c<2&&f.updateOrCreateOrganization(t.profileData).success(function(){abp.notify.success("Організацію успішно створено!");e.path("/profile")}).error(function(){abp.notify.error("Неможливо створити організацію!")}))};t.submit=function(){var n,i;t.profileData.parentId||(t.profileData.parentId=0);t.profileData.typeOfOrganization=t.person.value;t.contactPoint.name=o.joinName(t.contactPoint.fio);t.person.value==1&&(t.profileData.shortName=t.contactPoint.fio.firstName,t.profileData.name=o.joinName(t.contactPoint.fio));(t.person.value===6||t.person.value===10||t.person.value===11)&&(t.profileData.shortName=t.contactPoint.fio.firstName,t.profileData.name="ФОП "+o.joinName(t.contactPoint.fio).toUpperCase());delete t.contactPoint.fio;u.getOrCreateAddressN(t.address).success(function(n){v=n;t.profileData.addressNId=n.addressN.id;s()}).error(function(){abp.notify.error("Неможливо створити адресу")});t.postAddress!=null&&u.getOrCreateAddressN(t.postAddress).success(function(n){t.profileData.postAddressNId=n.addressN.id;s()}).error(function(){abp.notify.error("Неможливо створити адресу")});t.person.value!==1&&t.person.value!==6&&t.person.value!==10&&t.person.value!==11?(t.director.name=o.joinName(t.director.fio),delete t.director.fio,n={name:t.director.name,email:t.contactPoint.email,telephone:t.contactPoint.telephone,faxNumber:t.contactPoint.faxNumber},f.createOrUpdateContactPoint(n).success(function(n){h=n;t.profileData.directorId=n.id;s()}).error(function(){abp.notify.error("Неможливо створити керівника")})):(t.profileData.directorId=null,h=1);i=t.contactPoint;f.createOrUpdateContactPoint(i).success(function(n){a=n;t.profileData.contactPointId=n.id;s()}).error(function(){abp.notify.error("Неможливо створити контактну особу")});dataLayer.push({event:"virtualPageView",virtualPageURL:"/thankYouPage2",virtualPageTitle:"Second_Step_Registration"});e.path("/registerStage3");console.log("profile",t.profileData)};t.setRequest=function(){var i={},r;t.person.value==1?i.edrpoyOrInn=t.profileData.inn:t.person.value==2?i.edrpoyOrInn=t.profileData.codeEDRPOU:t.person.value==5&&(i.edrpoyOrInn=t.profileData.codeOfOrganization);t.person.value;i.userId=n.userId;i.tenantRequestMessage=t.request.reason;r=f.createUserToTenantRequest(i);r.success(function(){abp.notify.success("Ви успішно подали запит на вступ до організації!");e.path("/profile")}).error(function(){abp.notify.error("Ви не змогли подали запит на вступ до організації!")})};t.reg1={value:!1};t.reg2={value:!1};t.reg3={value:!1};t.Offer2={value:!1};t.persData3={value:!1};t.isAllOfferChecked=function(n){switch(n){case 1:case 2:case 4:case 6:if(t.reg1.value&&t.Offer2.value&&t.reg2.value&&t.reg3.value)return!0;break;case 5:if(t.reg1.value&&t.reg2.value)return!0;break;case 7:case 8:case 10:return!0;case 9:case 11:if(t.reg1.value&&t.reg2.value)return!0}return!1}}])}(),function(){angular.module("app").controller("app.views.emailGroups",["$rootScope","$scope","ngTableParams","abp.services.etender.emails",function(n,t,i,r){function u(){this.name="";this.isPrivate=!1}t.tableParams=new i({page:1,count:10,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(n,t){var i={maxResultCount:900,skipCount:(t.page()-1)*t.count(),sorting:"CreationTime DESC"},u=r.getEmailGroups(i);abp.ui.setBusy(".panel-default:first");u.success(function(i){abp.ui.clearBusy(".panel-default");t.total(i.countAllRecords);console.log("Email Groups: ",i);n.resolve(i.items)}).error(function(){console.log("ERROR!!! Can't get groups!")})}});t.showModalAddGroup=function(){t.groupDetailes=new u;t.isEditGroup=!1;$("#modalEmailGroupDetailes").modal("show")};t.showModalEditGroup=function(n){$("#modalEmailGroupDetailes").modal("show");t.isEditGroup=!0;abp.ui.setBusy("#modalEmailGroupDetailes");var i=r.getEmailGroup({id:n});i.success(function(n){t.groupDetailes=n;abp.ui.clearBusy("#modalEmailGroupDetailes")})};t.showModalEmailGroupUsers=function(n,i){t.groupName=i;t.groupId=n;$("#modalEmailGroupUsers").modal("show");abp.ui.setBusy("#modalEmailGroupUsers");var u=r.getGroupOrganization({id:n});u.success(function(n){t.users=n;abp.ui.clearBusy("#modalEmailGroupUsers")})};t.createOrUpdateGroup=function(n){var i,u;console.log(n);n.id&&(i=!0);u=r.createOrUpdateEmailGroup(n);u.success(function(){i?abp.notify.success("Групу змінено!"):abp.notify.success("Групу створено!");t.tableParams.reload()})};t.deleteGroup=function(n){var i=r.deleteEmailGroup({id:n});i.success(function(){abp.notify.success("Групу видалено!");t.tableParams.reload()})};t.addUser=function(n){var i=r.addOrganizationExtToGroup({groupId:t.groupId,codeEdrpouOrINN:n});i.success(function(){abp.notify.success("Користувача додано!");t.showModalEmailGroupUsers(t.groupId,t.groupName)})};t.deleteUser=function(n,i){var u=r.deleteOrganizationExtFromGroup({groupId:t.groupId,organizationExtId:n});u.success(function(){abp.notify.success("Користувача видалено!");t.users.splice(i,1)})}}])}(),function(){angular.module("app").controller("app.views.forestRequests",["$scope","$rootScope","ngTableParams","abp.services.etender.timberTender","abp.services.etender.bid","abp.services.etender.invoice","tenderHelperService","bankOperationsService","numberOfRecords","documentService","Upload","$timeout",function(n,t,i,r,u,f,e,o,s,h,c,l){function p(t,i,r){h.validateDocName(t.name)!=0&&(t.upload=c.upload({url:"./api/files/upload",method:"POST",fields:{myObj:n.fileUploadObj,DocumentType:r},file:t}),t.upload.then(function(n){l(function(){t.result=n.data})},function(t){t.status>0&&(n.errorMsg=t.status+": "+t.data)}),t.upload.progress(function(n){t.progress=Math.min(100,parseInt(100*n.loaded/n.total))}),t.upload.success(function(){abp.notify.success("Файл додано!");n.uploadFilesCounter++;n.uploadFilesCounter>=i.length&&(i.splice(0,i.length),n.uploadFilesCounter=0,h.notifyAboutExport(),n.reload());n.selectedDocType=null}).error(function(t){abp.notify.error(t.exceptionMessage||t.message);n.reload()}),t.upload.xhr(function(){}))}var a,v,y;n.vm={};a=n.vm;n.vm.isAllSelected=!1;n.vm.selectedRequests=[];n.vm.atLeastOneRequestSelected=!1;n.vm.tooltipDocs="Дії з документами";v={};y=h.getDocumentTypes(v,"BidDocument","timber-english","active","bid");y.then(function(t){n.documentTypes=t.data;var i=t.data.find(function(n){return n.type==="x_nonSanctionedStatement"});i&&(n.selectedDocType=i)});n.pager={searchFilter:{categoryId:12,columnFilters:[{Name:"Title",Filter:""},{Name:"Description",Filter:""},{Name:"OrganizationName",Filter:""},{Name:"tenderPeriodEndFrom",Filter:""},{Name:"tenderPeriodEndTo",Filter:""},{Name:"tenderPeriodStartFrom",Filter:""},{Name:"tenderPeriodStartTo",Filter:""},{Name:"classificationCpv",Filter:""},{Name:"classificationCav",Filter:""},{Name:"classificationDkpp",Filter:""}],forest:{}}};n.$watch("vm.isAllSelected",function(t){console.log("vm.isAllSelected",t);for(var i=0;i<n.vm.selectedRequests.length;i++)n.vm.selectedRequests[i]=!!t});n.$watchCollection("vm.selectedRequests",function(n){n&&n.length&&(a.atLeastOneRequestSelected=n.some(function(n){return n}))});n.vm.tableParams=n.tableParams=new i({page:function(){return localStorage.forestRequestsCurrentPage&&localStorage.forestRequestsCurrentPage.length>0?localStorage.forestRequestsCurrentPage:1}(),count:t.env.isIframe?numberOfRecordsIframe:s,sorting:{tenderStartDate:"desc"}},{getData:function(t,i){n.pager.Page=i.page();localStorage.forestRequestsCurrentPage=n.pager.Page;n.pager.PageSize=i.count();n.pager.OrderColumn=i.orderBy()[0].slice(1);n.pager.OrderDirection=i.sorting()[i.orderBy()[0].slice(1)];n.pager.searchFilter.isProductionMode=n.isPM;n.pager.searchIdentifier=n.pager.searchFilter.searchIdentifier;n.pager.Page=i.page();n.user&&(n.pager.searchFilter.UserName=n.user);abp.ui.setBusy("#timberBidsTable");var u=r.getTendersTimberBids(n.pager);u.success(function(r){abp.ui.clearBusy("#timberBidsTable");i.total(r.countAllRecords);r.tender.forEach(function(t){e.setTenderDescriptionByStatus(t);t.isExportedError=!!(t.bid&&t.bid.documents&&t.bid.documents.some(function(n){return n.isExported===!1}));t.invoices&&t.invoices.length&&t.invoices.forEach(function(n){n.fileName=o.getInvoiceFileName(n)});t.showCancelButton=t.bid&&t.status!=="active.qualification"&&t.status!=="active_qualification"&&t.status!=="active.awarded"&&t.status!=="active_awarded"&&t.status!=="complete"&&t.status!=="unsuccessful"&&t.status!=="cancelled";var i="#/tenderDetailes/";switch(t.procurementMethodTypeForDetailes){case"sellout.english":case"sellout.insider":i="#/auctionDetails/";break;case"railwayCargo-dutch":case"subsoil-dutch":case"carriage.insider":case"bankrupt.insider":case"property.insider":case"propInsiderByZU":case"appraisal.insider":case"landLease":i="#/landLeaseDetails/"}t.linkToDocs=i+t.id;a.curBid&&a.curBid.tenderId&&a.curBid.tenderId===t.id&&n.setCurBid(t)});n.vm.selectedRequests=Array(r.tender.length);t.resolve(r.tender)})}});n.reload=function(){var t=n.vm.tableParams.page();n.vm.tableParams.reload();n.vm.tableParams.page(t?t:1)};n.setCurBid=function(n){a.curBid=n.bid;a.curBid.tenderId=n.id};n.customTendTitle=function(n){return n};n.addBid=function(i,r){if(!(a.isETC&&a.isResponsibility)){abp.notify.error("Перед публікацією заявок необхідно погодитись з умовами регламенту ЕТС та відповідальністю учасника");return}if(i.value.newAmount*i.itemQuantity<i.value.amount){abp.notify.error("Ваша цінова пропозиція має бути більшою за стартову ціну лота");return}abp.ui.setBusy(".panel-default");var f={tenderId:i.id,lotValues:[],userId:abp.session.userId,isAutotestStr:r,isAgreeWith:!0};f.lotValues.push({lotId:i.lotId,value:{amount:i.value.newAmount*i.itemQuantity,currency:i.value.currency,valueAddedTaxIncluded:i.value.valueAddedTaxIncluded}});u.addBid(f).success(function(){if(n.addBidModalState="addBid",abp.notify.success("Пропозицію зареєстровано!"),abp.notify.warn('Завантажте обов\'язковий документ "Заява про непоширення обмежувальних заходів(санкції)"',"Увага!",!0),i.procurementMethodType!=="landLease"){var r={tenderNewId:i.id,invoiceType:3},u=o.generateInvoiceAddBidPromise(r);u.success(function(n){n.amount>0&&abp.notify.success(o.getInvoiceMessageName(n)+" успішно створено");r.invoiceType=4;var u=o.generateInvoiceAddBidPromise(r);u.success(function(n){n.amount>0&&abp.notify.success(o.getInvoiceMessageName(n)+" успішно створено");t.tenderNewId=i.id;abp.notify.success("Сплатіть сформовані рахунки, отримайте підтвердження пропозицій та повідомлення від менеджера майданчику.")}).error(function(){abp.notify.error("Під час створення рахунку виникла непередбачена помилка.")})}).error(function(){abp.notify.error("Під час створення рахунку виникла непередбачена помилка.")})}n.reload();abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})};n.cancelBid=function(t){if(confirm("Ви погоджуєте скасування обраних заявок?")){abp.ui.setBusy(".panel-default");var i={id:t,userId:abp.session.userId};u.cancelBid(i).success(function(){abp.notify.success("Пропозицію скасовано!");abp.ui.clearBusy(".panel-default");n.reload()}).error(function(){abp.ui.clearBusy(".panel-default")})}};n.addBids=function(){if(!(a.isETC&&a.isResponsibility)){abp.notify.error("Перед публікацією заявок необхідно погодитись з умовами регламенту ЕТС та відповідальністю учасника");return}abp.ui.setBusy();var t=!1,i=a.selectedRequests.map(function(n,t){return n?{tenderId:a.tableParams.data[t].id,lotValues:[{lotId:a.tableParams.data[t].lotId,value:{amount:a.tableParams.data[t].value.newAmount*a.tableParams.data[t].itemQuantity,currency:a.tableParams.data[t].value.currency,valueAddedTaxIncluded:a.tableParams.data[t].value.valueAddedTaxIncluded}}],userId:abp.session.userId}:null}).filter(function(n){if(n){var i=a.tableParams.data.find(function(t){return t.id===n.tenderId});return i?isNaN(n.lotValues[0].value.amount)||n.lotValues[0].value.amount<i.value.amount?(t=!0,!1):!0:!1}return!1});if(t){abp.notify.error("Ваша цінова пропозиція має бути більшою за стартову ціну лота");abp.ui.clearBusy();return}abp.notify.info("Виконується подання заявок. Для коректного формування рахунків, будь ласка, не закривайте сторінку браузера та дочекайтесь завершення публікації!",_,!0);u.bulkAddBid({createBidInputs:i}).success(function(){abp.notify.success("Пропозицію зареєстровано!");var t=a.selectedRequests.map(function(n,t){return n?{tenderNewId:a.tableParams.data[t].id,invoiceType:3}:null}).filter(function(n){return!!n}),i=f.bulkCreateInvoiceAddBid({invoiceAddBidInputs:t});i.success(function(n){var t=n.length;n.forEach(function(n){n.amount>0&&abp.notify.success(o.getInvoiceMessageName(n)+" успішно створено");var i={tenderNewId:n.tenderNew.id,invoiceType:4},r=o.generateInvoiceAddBidPromise(i);r.success(function(n){n.amount>0&&abp.notify.success(o.getInvoiceMessageName(n)+" успішно створено");t--}).error(function(){t--;abp.notify.error("Під час створення рахунку виникла непередбачена помилка.")})}),function i(){t<=0?abp.notify.success("Сплатіть сформовані рахунки, отримайте підтвердження пропозицій та повідомлення від менеджера майданчику."):setTimeout(i,500)}()}).error(function(){abp.notify.error("Під час створення рахунку виникла непередбачена помилка.")});n.reload();abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})};n.deleteTimberApp=function(t){confirm("Ви погоджуєте видалення запису з таблиці?")&&(abp.ui.setBusy(".panel-default"),r.deleteTimberApplication(t).success(function(){n.reload();abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")}))};n.deleteTimberApps=function(){if(confirm("Ви погоджуєте видалення запису з таблиці?")){var t=a.selectedRequests.map(function(n,t){return n?a.tableParams.data[t].id:null}).filter(function(n){return!!n});abp.ui.setBusy(".panel-default");r.bulkDeleteTimberApplication({tenderIds:t}).success(function(){n.reload();abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}};n.cancelBids=function(){if(confirm("Ви погоджуєте скасування обраних заявок?")){abp.ui.setBusy(".panel-default");var t=a.selectedRequests.map(function(n,t){return n&&a.tableParams.data[t].bid?{id:a.tableParams.data[t].bid.id,userId:abp.session.userId}:null}).filter(function(n){return!!n});u.bulkCancelBids({cancelBidInputs:t}).success(function(){n.reload();abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}};n.setCurBid=function(n){a.curBid=n.bid;a.curBid.tenderId=n.id};n.canModifyDocs=function(){return!0};n.addDocuments=function(){var e,i;if(a.documentsToAdd&&a.documentsToAdd.length){var r,u=!1,f=!1,t=a.selectedRequests.map(function(n,t){return n&&a.tableParams.data[t].bid?(r=a.tableParams.data[t].id,a.tableParams.data[t].status!=="active.tendering"&&(f=!0),a.tableParams.data[t].bid.id):(u=!0,null)}).filter(function(n){return!!n});if(f){abp.notify.error('Помилка. Аукціон не знаходиться в статусі "Очікування пропозиції"');return}t.length&&(n.fileUploadObj={listBidIds:t,tenderId:r,cbdType:3},e=n.selectedDocType&&n.selectedDocType.id,a.documentsToAdd.forEach(function(n){p(n,a.documentsToAdd,e)}));u&&(i="Спочатку подайте цінові пропозицій, а далі завантажте документи",t.length?abp.notify.warn(i):abp.notify.error(i))}};n.isBidHasRequiredDocument=function(n){return h.checkIfDocExist("x_nonSanctionedStatement",n.documents)};n.generatePdf=function(n){o.invoiceToPdf(n)};n.uploadFilesCounter=0}])}(),function(){"use strict";function n(n,t,i){function u(){r.tableParams=new t({page:1,count:10},{total:0,counts:[],getData:f})}function f(n,t){abp.ui.setBusy();var u={maxResultCount:t.count(),messageType:1,showToUserOrFromUserOrAll:2,skipCount:(t.page()-1)*t.count(),sorting:"CreationTime DESC"};i.getMessages(u).success(function(i){abp.ui.clearBusy();r.messages=i.items;t.total(i.totalCount);n.resolve(i.items)})}function e(n){var t={id:r.messages[n].id};i.deleteMessage(t).success(function(){abp.notify.success("Повідомлення видалено!")});r.messages.splice(n,1);r.selectedMessage=null}function o(n){for(var i,t=0;t<r.messages.length;t+=1)r.messages[t].$selected=!1;i=r.messages[n];i.$selected=!0;r.selectedMessage=i}n.vm={deleteMessage:e,setMessage:o,selectedMessage:null,messages:[]};var r=n.vm;u()}angular.module("app").controller("app.views.invationList",n);n.$inject=["$scope","ngTableParams","abp.services.etender.emails"]}(),function(){angular.module("app").controller("app.views.invoices",["$rootScope","$scope","$timeout","abp.services.etender.invoice","ngTableParams","tenderHelperService","bankOperationsService","abp.services.etender.bid",function(n,t,i,r,u,f,e,o){function l(n){switch(n.invoiceType){case 1:case 3:n.invoceTypeStr="Гарантійний внесок";break;case 2:case 4:n.invoceTypeStr="Реєстраційний внесок";break;case 5:n.invoceTypeStr="Плата за участь";break;case 6:n.invoceTypeStr="Доплата за участь";break;case 7:n.invoceTypeStr="Гарантійний внесок чинного орендаря";break;default:n.invoceTypeStr=""}}var s,h,c;t.isOperator=localStorage.isOperator&&(localStorage.isOperator==="true"||localStorage.isOperator===!0)||!1;t.invoiceInput={};t.regexNumber=n.regex.floatNumber;t.dateRegex=n.regex.date;t.pager={defaultSorting:"CreationTime desc",orderColumn:"CreationTime",orderDirection:"desc",searchIdentifier:"",searchFilter:{}};s=new u({page:1,count:10},{counts:[10,25,50,100,200,500],getData:function(n,i){i.orderBy().length>0&&(t.pager.orderColumn=i.orderBy()[0].slice(1),t.pager.orderDirection=i.sorting()[i.orderBy()[0].slice(1)]);t.pager.page=i.page();t.pager.pageSize=i.count();var u=r.getInvoices(t.pager);abp.ui.setBusy(".panel-default:first");u.success(function(t){t.items.forEach(function(n){f.hrefToTender(n.tenderNew);l(n);n.fileName=e.getInvoiceFileName(n);n.tenderNew&&n.tenderNew.procurementMethodType&&(n.tenderNew.procurementMethodTypeTitle=f.getProcurementMethodTitle(n.tenderNew.procurementMethodType,n.tenderNew.tenderAttempts))});i.total(t.totalCount);n.resolve(t.items);abp.ui.clearBusy(".panel-default")})}});h=new u({page:0,count:0},{counts:[],paginationMaxBlocks:0,total:0,getData:function(){}});t.isOperator?(t.tableParams=h,t.tableParamsOperator=s):(t.tableParams=s,t.tableParamsOperator=h);t.search=function(){i.cancel(c);c=i(function(){s.reload();s.page(1)},1e3)};t.clear=function(){t.pager.searchIdentifier="";t.pager.searchFilter.periodFrom="";t.pager.searchFilter.periodTo="";s.reload();s.page(1)};t.generatePdf=function(n){e.invoiceToPdf(n)};t.payInvoice=function(n){confirm("Ви впевнені що цей рахунок оплачений?")&&(abp.ui.setBusy(".panel-default:first"),r.payInvoice(n.id).success(function(t){n.isPayed=!0;t&&t.length>0?o.confirmBid({id:t}).success(function(n){abp.ui.clearBusy(".panel-default");n.isActivateSuccessfully?abp.notify.success("Пропозицію підтверджено!","",!0):abp.notify.error(n.errorMessage)}):abp.ui.clearBusy(".panel-default")}))};t.setInvoiceInput=function(n){t.invoiceInput.id=n.id;t.invoiceInput.amount=n.amount;t.invoiceInput.number=n.number};t.updateInvoice=function(){var n={id:t.invoiceInput.id,amount:t.invoiceInput.amount};r.updateInvoice(n).success(function(){s.reload()})}}])}(),function(){angular.module("app").controller("app.views.messages",["$rootScope","$scope","abp.services.etender.emails","ngTableParams",function(n,t,i,r){t.body="";t.tableParams=new r({page:1,count:10},{counts:[],getData:function(n,r){var u={maxResultCount:r.count(),skipCount:(r.page()-1)*r.count(),sorting:"CreationTime DESC"},f=i.getMessages(u);abp.ui.setBusy(".panel-default:first");f.success(function(i){r.total(i.totalCount);console.log(i);t.messages=i.items;n.resolve(i.items);abp.ui.clearBusy(".panel-default")})}});t.getMessage=function(n){clearTimeout(t.timerId);t.timerId=setTimeout(function(){var r={id:t.messages[n].id},u=i.getMessage(r);u.success(function(i){t.messages[n].isRead=i.isRead})},2e3);t.message=t.messages[n];console.log("Письмо:",t.message)};t.deleteMessage=function(n){var r={id:t.messages[n].id},u=i.deleteMessage(r);u.success(function(){abp.notify.success("Повідомлення видалено!")});t.messages.splice(n,1);t.message={}}}])}(),function(){angular.module("app").controller("modalAddSettlementAccountCtrl",["$rootScope","$scope","$location","abp.services.etender.address","abp.services.etender.settlementAccount","abp.services.etender.bank",function(n,t,i,r,u,f){t.createAccount=function(){var i=t.$$childHead,e=r.getOrCreateAddressN(i.bankAddress);return e.success(function(r){i.addBankModel.addressId=r.addressN.id;f.createOrUpdateBank(i.addBankModel).success(function(r){console.log("Creation of bank:",r);i.addAccount.userId=n.userId;i.addAccount.bankId=r.id;i.addAccount.currencyId=1;i.addAccount.isEtender=!1;i.addAccount.isMain||(i.addAccount.isMain=!1);u.createOrUpdateSettlementAccount(i.addAccount).success(function(){abp.notify.success("Рахунок успішно створено");$("#modalAddSettlementAccount").modal("toggle");t.tableParams.reload()})})}),e}}])}(),function(){angular.module("app").controller("app.views.myAccounts",["$rootScope","$scope","abp.services.etender.settlementAccount","abp.services.etender.bank","ngTableParams",function(n,t,i,r,u){t.reloadAccountsList=function(){var r={userName:localStorage.username||sessionStorage.username},n=i.getSettlementAccounts(r);return n.success(function(n){console.log("Список рахунків:",n);t.accountsList=n.settlementAccounts}),n};t.tableParams=new u({page:1,count:10},{counts:[],getData:function(n,r){var u={userName:localStorage.username||sessionStorage.username},f=i.getSettlementAccounts(u);abp.ui.setBusy(".panel-default:first");f.success(function(i){console.log("Список рахунків:",i);r.total(i.settlementAccounts.length);t.accountsList=i.settlementAccounts;n.resolve(i.settlementAccounts);abp.ui.clearBusy(".panel-default")})}});t.reloadAccountsList()}])}(),function(){angular.module("app").controller("app.views.mycontracts",["$rootScope","$scope","abp.services.etender.contract","ngTableParams","$timeout",function(n,t,i,r,u){t.operationsInput={sorting:"Id DESC",tenderIdUa:null,contractId:null,number:null,dateSignedFrom:null,dateSignedTo:null};t.tableParams=new r({page:1,count:10},{counts:[],getData:function(n,r){t.operationsInput.maxResultCount=r.count();t.operationsInput.skipCount=(r.page()-1)*r.count();t.operationsInput.sorting="Id DESC";var u=i.getContracts(t.operationsInput);abp.ui.setBusy(".panel-default:first");u.success(function(i){r.total(i.totalCount);console.log(i);t.contracts=i.items;n.resolve(i.items);abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}});t.search=function(){t.tableParams.reload();t.tableParams.page(1)};var f;t.searchChange=function(){u.cancel(f);f=u(function(){t.search()},1e3)};t.isDateIntervalGood=function(n,t){return n&&t?t>=n?!0:!1:!0};t.clear=function(){t.operationsInput.tenderIdUa=null;t.operationsInput.contractId=null;t.operationsInput.number=null;t.operationsInput.dateSignedFrom=null;t.operationsInput.dateSignedTo=null;t.search()}}])}(),function(){angular.module("app").controller("app.views.profile.myOrganization",["$rootScope","$scope","ngTableParams","abp.services.etender.user","abp.services.etender.organization","lookupService","tenderHelperService",function(n,t,i,r,u,f,e){function o(){t.tableParams=new i({page:1,count:100},{counts:[],getData:function(n){var t=r.getUsersWantJoinToTenant();abp.ui.setBusy(".panel-default");t.success(function(t){n.resolve(t);abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}})}function s(){if(n.organization.allowableOrganizationTypes&&n.organization.allowableOrganizationTypes.length>0){t.isOneRoleAvailable=n.organization.allowableOrganizationTypes.length===1;var u=t.organizationTypes.find(t=>t.value==n.organization.allowableOrganizationTypes[0]);u&&(t.firstRoleName=u.typeName)}t.userTableParams=new i({page:1,count:1e3},{counts:[],getData:function(n){var i=r.getOrganizationUsers();abp.ui.setBusy(".panel-default");i.success(function(i){i.forEach(function(n){n.isChangeRoleMode=!1;n.organizationTypeValue=n.typeOfOrganization>0?f.getOrganizationType2(n.typeOfOrganization).value:null;n.organizationTypeValueStr=n.organizationTypeValue+"";var i=t.organizationTypes.find(t=>t.value===n.typeOfOrganization);i&&(n.typeOfOrganizationStr=i.typeName)});n.resolve(i);abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}})}function h(n){abp.ui.setBusy(".panel-default");r.deleteUser(n).success(function(n){n===!0&&abp.notify.success("Користувача успішно видалено!");abp.ui.clearBusy(".panel-default");t.userTableParams.reload()}).error(function(){abp.ui.clearBusy(".panel-default")})}function c(n){abp.ui.setBusy(".panel-default");r.unjoinUserFromTenant(n).success(function(n){n===!0&&abp.notify.success("Користувача успішно видалено!");abp.ui.clearBusy(".panel-default");t.userTableParams.reload()}).error(function(){abp.ui.clearBusy(".panel-default")})}t.isOrganizationDataTab=!0;t.isOneRoleAvailable=!1;t.pager={};t.organizationTypes=n.typeOfOrganization===3?f.getPersonsByValue(n.typeOfOrganization):f.getPersons(n.organization.isFisOrFOP);t.select=function(n){t.isOrganizationDataTab=!1;t.isContactPersonsTab=!1;t.isRequestToTenantTab=!1;t.isOrganizationUsersTab=!1;switch(n){case"organizationDataTab":t.isOrganizationDataTab=!0;break;case"contactPersonsTab":t.isContactPersonsTab=!0;break;case"requestToTenantTab":t.isRequestToTenantTab=!0;t.tableParams?t.tableParams.reload():o();break;case"organizationUsersTab":t.isOrganizationUsersTab=!0;t.userTableParams?t.userTableParams.reload():s()}};t.isRequestToTenantTab===!0&&o();t.addUserToTenant=function(n){var u=confirm("Ви дійсно бажаєте приєднати даного користувача до Вашої Організації?"),i;u&&(i=r.joinUserToTenant(n),abp.ui.setBusy(".panel-default"),i.success(function(){abp.notify.success("Запит користувача підтверджено");abp.ui.clearBusy(".panel-default");t.tableParams.reload();t.getCountUsersWantJoinToTenant()}).error(function(){abp.ui.clearBusy(".panel-default")}))};t.rejectUserToTenant=function(n){var i=r.rejectUserToTenant(n);abp.ui.setBusy(".panel-default");i.success(function(){abp.notify.success("Запит користувача скасовано");abp.ui.clearBusy(".panel-default");t.tableParams.reload();t.getCountUsersWantJoinToTenant()}).error(function(){abp.ui.clearBusy(".panel-default")})};t.getCountUsersWantJoinToTenant=function(){var n=r.getCountUsersWantJoinToTenant();n.success(function(n){t.countUsersWantJoinToTenant=n}).error(function(){abp.ui.clearBusy(".panel-default")})};t.getCountUsersWantJoinToTenant();t.isOrganizationUsersTab===!0&&s();t.setChangeRoleMode=function(n){n.isChangeRoleMode=!0};t.changeUserOrganizationType=function(n){abp.ui.setBusy(".panel-default");var i={userId:n.userId,typeOfOrganization:n.organizationTypeValueStr};u.setUserOrganizationType(i).success(function(n){n===!0&&abp.notify.success("Роль користувача успішно змінено!");abp.ui.clearBusy(".panel-default");t.userTableParams.reload()}).error(function(){abp.ui.clearBusy(".panel-default")})};t.deleteUser=function(n){e.sweetAlert({title:"Ви дійсно бажаєте видалити користувача "+n.fullName+"?",text:"Відмінити цю дію буде неможливо!",type:"warning",showCancelButton:!0,confirmButtonColor:"#48b168",confirmButtonText:"Так",cancelButtonText:"Ні",closeOnConfirm:!0},function(){h(n.userId)},"alertCancelButtonRed")};t.unjoinUserFromTenant=function(n){e.sweetAlert({title:"Ви дійсно бажаєте видалити користувача "+n.fullName+"з Вашої організації?",text:"Відмінити цю дію буде неможливо!",type:"warning",showCancelButton:!0,confirmButtonColor:"#48b168",confirmButtonText:"Так",cancelButtonText:"Ні",closeOnConfirm:!0},function(){c(n.userId)},"alertCancelButtonRed")}}])}(),function(){"use strict";function n(n,t,i,r,u,f,e){function c(){o.tableParams=new u({page:1,count:10,sorting:{tenderStartDate:"desc"}},{total:0,counts:[],getData:l});o.procedureTypes=[{title:t.source("BelowThreshold"),href:"/createAuction"}]}function l(t,i){abp.ui.setBusy();var u=i.orderBy(),c=i.sorting(),r=u.length>0?u[0].substring(1):"tenderStartDate",l=c[r]?c[r]:"desc";o.pager.page=i.page();o.pager.pageSize=i.count();o.pager.orderColumn=r;o.pager.orderDirection=l;o.pager.searchFilter=o.pager.searchFilter?o.pager.searchFilter:a();o.pager.searchIdentifier=o.pager.searchFilter.searchIdentifier;o.pager.searchFilter.tendersKind=o.filter.tendersKind;o.pager.searchFilter.currentTab=n.currentPage.currentTab;f.getTenders(o.pager).success(function(r){var u,f;for(abp.ui.clearBusy(),console.log(r),u=0;u<r.tender.length;u++)s=r.tender[u].tenderEndDate,n.end[u]=Date.parse(s),f=r.tender[u],f.procurementMethodTypeName=e.getProcurementMethodTitle(f.procurementMethodType,f.tenderAttempts),e.setTenderDescriptionByStatus(f),f.labelClass=e.getLabelClassByStatus(f.status),r.tender[u].procurementMethodTypeForDetailes=h(r.tender[u].procurementMethodType);i.total(r.countAllRecords);t.resolve(r.tender)})}function a(){return{isProductionMode:localStorage.isProdMode,userName:sessionStorage.username,tendersKind:o.filter.tendersKind,columnFilters:[{Name:"Title",Filter:o.filter.title},{Name:"Description",Filter:o.filter.description},{Name:"OrganizationName",Filter:o.filter.organisation},{Name:"tenderPeriodEndFrom",Filter:o.filter.tenderPeriodEndFrom},{Name:"tenderPeriodEndTo",Filter:o.filter.tenderPeriodEndTo},{Name:"tenderPeriodStartFrom",Filter:o.filter.tenderPeriodStartFrom},{Name:"tenderPeriodStartTo",Filter:o.filter.tenderPeriodStartTo}],statuses:[]}}var s,o,h;n.end=[];n.currentPage={pageName:"mytrade",currentTab:"activeTab"};n.vm={};o=n.vm;o.pager={};localStorage[n.currentPage.pageName]&&localStorage[n.currentPage.pageName].length>0&&(o.pager.searchFilter=JSON.parse(localStorage[n.currentPage.pageName]),o.pager.searchFilter.currentTab!==n.currentPage.currentTab&&(o.pager.searchFilter.statuses=[]));o.filter={description:null,classificationCpv:null,classificationDkpp:null,organisation:null,parentCodeEDRPOU:null,priceFrom:null,priceTo:null,unitFrom:null,unitTo:null,tenderPeriodStartFrom:"",tenderPeriodStartTo:"",tenderPeriodEndFrom:"",tenderPeriodEndTo:"",title:null,isLease:"",procurementMethodType:"",tendersKind:""};o.isOperator=function(){return t.env.isOperator};n.procurementMethodTypeDictionary=e.getProcurementMethodsByFilter();n.isPM=localStorage.isProdMode;c();n.reloadPage=function(){o.tableParams.reload();o.tableParams.page(1)};h=function(n){return n.match(/^railwayCargo-dutch/i)?"railwayCargo-dutch":n};n.customTendTitle=function(n){return e.customTendTitle(n)}}angular.module("app").controller("app.views.profile.myTenders",n);n.$inject=["$scope","$rootScope","$timeout","$location","ngTableParams","abp.services.etender.tender","tenderHelperService"]}(),function(){"use strict";function n(n,t,i,r,u,f){function c(){o.tableParams=new r({page:1,count:10,sorting:{tenderEndDate:"asc"}},{total:0,counts:[],getData:l})}function l(t,i){abp.ui.setBusy();var o=i.orderBy(),h=i.sorting(),r=o.length>0?o[0].substring(1):"tenderEndDate",c=h[r]?h[r]:"desc",l={page:i.page(),pageSize:i.count(),orderColumn:r,orderDirection:c,searchFilter:s};u.getFavorites(l).success(function(r){var o,u;if(abp.ui.clearBusy(),console.log(r),r.tenders)for(o=0;o<r.tenders.length;o++)u=r.tenders[o],e=u.tenderEndDate,n.end[o]=Date.parse(e),u.procurementMethodTypeName=f.getProcurementMethodTitle(u.procurementMethodType,u.tenderAttempts),u.labelClassByStatus=f.getLabelClassByStatus(u.status),f.setTenderDescriptionByStatus(u);i.total(r.countAll);t.resolve(r.tenders)})}var h=new Date,e,o,s;n.dateToDay=Date.parse(h);n.end=[];n.vm={};o=n.vm;c();s={isProductionMode:localStorage.isProdMode};n.toggleFavorite=function(n){f.toggleFavorite(n,u.createFavorite,u.deleteFavorite)};n.customTendTitle=function(n){return f.customTendTitle(n)}}angular.module("app").controller("app.views.profile.myTendersFavorite",n);n.$inject=["$scope","$rootScope","$timeout","ngTableParams","abp.services.etender.tender","tenderHelperService"]}(),function(){angular.module("app").controller("app.views.profile.organizationDetailes",["$rootScope","$scope","abp.services.etender.organization","abp.services.etender.user","abp.services.etender.address","abp.services.etender.reference","$location","ngTableParams","Upload","$stateParams","documentService","$http","tenderHelperService","lookupService",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v){function it(i){return i&&i.identifier&&(i.typeOfOrganization!==3&&(t.organizationDetailes.isFisOrFOP?i.codeOfOrganization&&n.regex.passportOldFormatOrIdCardUkraine.test(i.codeOfOrganization)?n.regex.passportUkraineOldFormat.test(i.codeOfOrganization)?i.identifier.scheme="UA-PASSPORT":n.regex.passportIdCardUkraine.test(i.codeOfOrganization)&&(i.identifier.scheme="UA-ID-CARD"):i.identifier.scheme="UA-IPN":i.identifier.scheme="UA-EDR"),i.identifier.apiId=i.codeOfOrganization,i.identifier.legalName=i.name,i.identifier.legalNameEN=i.nameEN),i}function g(){return t.isShowSendToModerationButton()?"":" Організація повторно відправлена на модерацію"}function rt(){t.$watch("organizationDetailes",function(n){n&&(console.log("organizationDetailes",t.organizationDetailes),et(n.kind))})}function ut(n){t.organizationDetailes.ibanUAPrev&&n==""&&(t.organizationDetailes.ibanUA=t.organizationDetailes.ibanUAPrev)}function ft(){t.organizationDetailes.kind=y.sKind.code}function et(n){switch(n){case"general":y.sKind=p[0];y.kindTitle=p[0].title;break;case"special":y.sKind=p[1];y.kindTitle=p[1].title;break;case"defense":y.sKind=null;y.kindTitle="Замовник, що здійснює закупівлі для потреб оборони";break;case"other":y.sKind=p[2];y.kindTitle=p[2].title;break;default:y.sKind=null;y.kindTitle=null}}var k,b,w,d,p,nt,tt,y;if(t.isProfileEdit=!1,t.isParentRegistered=!0,t.show={},t.isCheckNotHaveInn=!1,t.isForestOffertaConfirm=!1,t.vm={},t.patternUAIBAN=n.regex.accountUAIBAN,t.patternIBAN=n.typeOfOrganization===3?n.regex.accountIBAN:n.regex.accountUAIBAN,t.regexEmail=n.regex.email,t.accountTypes=[{name:"Рахунки для гарантійного внеску",type:"guarantee"}],t.hasAdvancedBankAccounts=function(){return!0},t.unitController={mainBankAccountsEntity:null,hideAddButton:!0,hasBankAccountType:a.hasBankAccountType,hasAdvancedBankAccounts:t.hasAdvancedBankAccounts,isAdvancedBankAccounts:null,accountTypes:t.accountTypes},k=function(n){n.contactPoint.fio=a.parseName(n.contactPoint.name);a.replaceName(n.contactPoint);a.setLang(n.contactPoint);n.director&&(t.show.director=!0,n.director.fio=a.parseName(n.director.name),a.replaceName(n.director),a.setLang(n.director))},b=function(r){var u=angular.copy(r);t.profileData=t.organizationDetailes=u;t.organizationDetailes.parentCodeEDRPOU&&(t.hasMainOrganization=!0);t.organizationDetailes.postAddress&&(t.show.postAddress=!0);t.organizationDetailes.address.country.id!==1&&(t.show.anotherCountry=!0);t.organizationTypeValue=t.organizationDetailes.typeOfOrganization>0?v.getOrganizationType2(t.organizationDetailes.typeOfOrganization).value:null;t.organizationTypeValueStr=t.organizationTypeValue+"";t.isDisabledCuctomerCheck=!1;(n.env.isOrganizationReadyForApprovementTest||n.env.isOrganizationReadyForApprovement)&&(t.isDisabledCuctomerCheck=!0);u&&u.identifier&&u.identifier.apiId&&(t.isCheckNotHaveInn=n.regex.passportOldFormatOrIdCardUkraine.test(u.identifier.apiId)?!0:!1);t.organizationDetailes.ibanUAPrev=t.organizationDetailes.ibanUA;t.tableChildOrgs=new o({page:1,count:10},{counts:[],getData:function(n,r){var f=i.getChildOrganizations({parentId:u.id});f.success(function(i){t.isChildOrgExist=i.items.length>0;t.childOrganizationsOutput=i;console.log("childs: ",t.childOrganizationsOutput);r.total(i.countAllRecords);n.resolve(i.organizations)})}});t.persons=n.typeOfOrganization===3?v.getPersonsByValue(n.typeOfOrganization):v.getPersons(t.organizationDetailes.isFisOrFOP);t.isCustomer=t.profileData.isCustomer;k(u);t.vm.isAllowDocumentManipulations=t.organizationDetailes.documents.length>0;t.unitController.mainBankAccountsEntity=t.organizationDetailes.bankAccountsNew;t.unitController.isAdvancedBankAccounts=!0;t.vatPattern=t.organizationDetailes.isFisOrFOP?n.regex.fopVatCode:n.regex.yurVatCode;t.vatValidationMsgPart=t.organizationDetailes.isFisOrFOP?"10 чи 12":"12"},b(n.organization),t.$watch("hasMainOrganization",function(){t.hasMainOrganization||(t.organizationDetailes&&(t.organizationDetailes.parentCodeEDRPOU=null),t.isParentRegistered=!0,t.organizationDetailes&&(t.organizationDetailes.parentId=0));t.hasMainOrganization&&(!t.organizationDetailes.parentCodeEDRPOU||t.organizationDetailes.parentCodeEDRPOU=="")&&(t.organizationDetailes.parentId=0)}),t.$watch("organizationDetailes.parentCodeEDRPOU",function(){if(t.isParentRegistered=!0,t.organizationDetailes&&(!t.organizationDetailes.parentCodeEDRPOU||t.organizationDetailes.parentCodeEDRPOU=="")){t.organizationDetailes.parentId=0;return}var n=!1;t.organizationDetailes&&(n=i.isOrganizationRegistered({tenantName:t.organizationDetailes.parentCodeEDRPOU}));n&&n.success(function(n){t.isParentRegistered=n;t.isParentRegistered&&i.getOrganizationsByInnOrEdrpou({innOrEdrpou:t.organizationDetailes.parentCodeEDRPOU}).success(function(n){console.log("Parent Org:",n);t.organizationDetailes.parentId=n.organizations[0].id})})}),!(localStorage.username||sessionStorage.username)){e.path("/logout");return}w=function(){abp.ajax({url:"/account/IsLoggedJsonReturn",data:JSON.stringify({})}).done(function(t){if(t.isLogged){var u=function(){b(n.organization)};a.getUserAndOrganizationData(r.getUser,i.getOrganization,u)}else e.path("/logout")})};n.isBtnMyOrganization&&(w(),n.isBtnMyOrganization=!1);d=function(n){var r=i.updateOrCreateOrganization(n);abp.ui.setBusy();r.success(function(){abp.ui.clearBusy();abp.notify.success("Організацію успішно оновлено!");w();t.isProfileEdit=!1}).error(function(){abp.ui.clearBusy();abp.notify.error("Не вдалося оновити організацію!")})};t.updateProfile=function(){t.organizationDetailes.parentId||(t.organizationDetailes.parentId=0);var i=t.organizationDetailes;i.userId=n.userId;i.tenantId=n.userTenantId;i.typeOfOrganization=t.organizationTypeValue;i.contactPoint.name=a.joinName(i.contactPoint.fio);i.contactPoint.telephone&&i.contactPoint.telephone.charAt(0)!=="+"&&(i.contactPoint.telephone="+"+i.contactPoint.telephone);i.contactPoint.faxNumber&&i.contactPoint.faxNumber.charAt(0)!=="+"&&(i.contactPoint.faxNumber="+"+i.contactPoint.faxNumber);t.show.director&&i.director?(i.director.name=a.joinName(i.director.fio),i.director.telephone&&i.director.telephone.charAt(0)!=="+"&&(i.director.telephone="+"+i.director.telephone),i.director.faxNumber&&i.director.faxNumber.charAt(0)!=="+"&&(i.director.faxNumber="+"+i.director.faxNumber)):i.director=null;t.show.postAddress||(i.postAddress=null);i.isCustomer=i.typeOfOrganization&&i.typeOfOrganization!==1&&i.typeOfOrganization!==2&&i.typeOfOrganization!==6?!0:!1;(i.typeOfOrganization===1||i.typeOfOrganization===23||i.typeOfOrganization===24)&&(i.name=t.organizationDetailes.contactPoint.name);i.typeOfOrganization===15&&(i.name=t.organizationDetailes.contactPoint.name.toUpperCase());(i.typeOfOrganization===6||i.typeOfOrganization===10||i.typeOfOrganization===11||i.typeOfOrganization===14)&&(i.name="ФОП "+t.organizationDetailes.contactPoint.name.toUpperCase());i.ibanUA=i.ibanUA?i.ibanUA:null;i.accountantsEmail=i.accountantsEmail?i.accountantsEmail:null;i=it(i);t.organizationDetailes.bankAccountsNew=a.setBankAccountsNewLLE(t.organizationDetailes.bankAccountsNew);d(i)};t.cancel=function(){t.show={};w()};t.edit=function(){t.organizationDetailes.bankAccountsNew=a.getBankAccountsNewLLE(t.organizationDetailes.bankAccountsNew)};t.changeOrganizationType=function(){var n=t.organizationDetailes.allowableOrganizationTypes.includes(t.organizationTypeValue+"");a.sweetAlert({title:"При редагуванні типу організації будуть змінені можливості створення ауціонів або об'єктів приватизації",text:n?"":"Нові можливості будуть активовані після підтвердження змін Оператором майданчика!",type:"warning",showCancelButton:!0,confirmButtonColor:"#48b168",confirmButtonText:"Змінити",cancelButtonText:"Відміна",closeOnConfirm:!0},t.updateProfile)};p=[{title:"Замовник (загальний)",code:"general"},{title:"Замовник, що здійснює діяльність в окремих сферах господарювання",code:"special"},{title:"Замовник, що здійснює закупівлі для потреб оборони",code:"defense"},{title:"Державні та комунальні підприємства, які не є замовниками в розумінні Закону",code:"other"}];t.isShowSendToModerationButton=function(){return!n.env.isOrganizationReadyForApprovementTest&&!n.env.isProductionMode&&!n.env.isOrganizationApprovedTest};nt=function(n){if(n.length!=0)return n.forEach(function(n){c.validateDocName(n.name)!=0&&(t.upload=s.upload({url:"./api/files/uploadOrganizationDocument",fields:{myObj:{},isOrganizationDocument:!0},file:n}),t.upload.success(function(){abp.notify.success("Файл додано!"+g());w()}))}),t.upload};tt=function(n){if(confirm("Ви дійсно бажаєте видалити документ?")){var i={OrganizationDocumentId:n},t=l.post("./api/files/DeleteDocument",i);t.success(function(){abp.notify.success("Файл видалено!"+g());w()});t.error(function(n){console.log(n)})}};t.vm={changeKind:ft,changeIban:ut,kinds:p,kindTitle:null,languageTitle:null,sLang:null,sKind:null,isAllowDocumentManipulations:t.organizationDetailes.documents.length>0?!0:!1,addDocument:nt,deleteDocument:tt,isOrganizationForm:!0};y=t.vm;rt();t.changeNotHaveInn=function(t,i){n.$broadcast("changeCheckBoxNotHaveInn",t,i)};t.changeForestOffertaConfirm=function(n){t.isForestOffertaConfirm=n?!0:!1};t.changeSelectOrganizationType=function(n){t.organizationTypeValue=parseInt(n);t.organizationTypeValue===17&&t.organizationTypeValue!==t.organizationDetailes.typeOfOrganization?t.isShowForestOfferta=!0:(t.isForestOffertaConfirm=!1,t.isShowForestOfferta=!1)};t.changeShowPostAddress=function(n){t.organizationDetailes&&!n&&(t.organizationDetailes.postAddress=null)}}])}(),function(){angular.module("app").controller("app.views.profile.detailesForApprove",["$scope","abp.services.etender.organization","$stateParams","$location","tenderHelperService","lookupService",function(n,t,i,r,u,f){n.profileDetailes={};var e=function(){var o={tenantId:i.tenantId},e;n.accountTypes=[{name:"Рахунки для гарантійного внеску",type:"guarantee"}];e=t.getOrganization(o);e.success(function(t){t||r.path("/profiles");console.log("Організація:");console.log(t);n.isCustomer=t.isCustomer;n.organizationTypeName=f.getPersonsByValue(t.typeOfOrganization)[0].typeName;n.firstModeration=t.testModeIsReadyForApprovement;n.secondModeration=t.productionModeIsReadyForApprovement;n.approveInput={id:t.id,forProductionMode:t.productionModeIsReadyForApprovement&&t.testModeIsApproved,approvementMessage:"",notInfoModerationUser:!1};n.profileDetailes=t;n.address=t.address;n.organizationDetailes=t;n.organizationDetailes.isFisOrFOP=u.isFisOrFOP(n.organizationDetailes.typeOfOrganization);u.replaceName(n.organizationDetailes.contactPoint);u.replaceName(n.organizationDetailes.director);u.setLang(n.organizationDetailes.contactPoint);u.setLang(n.organizationDetailes.director),function(){if(n.profileDetailes.typeOfPerson){var t=n.profileDetailes.typeOfPerson;switch(t){case 1:n.person={value:t,typeName:"Фізична особа"};break;case 2:n.person={value:t,typeName:"Юридична особа"}}return!0}return!1}()});e.error(function(){r.path("/profile")})};e();n.cancel=function(){e()};n.setApprove=function(i){n.approveInput.isApproved=i;var u=t.setOrganizationApprovement(n.approveInput);u.success(function(){abp.notify.success("Рішення прийнято");r.path("/profile")})}}])}(),function(){angular.module("app").controller("app.views.profile",["$rootScope","$scope","$location","$stateParams","abp.services.etender.user","abp.services.etender.settings","abp.services.etender.emails","abp.services.etender.tender","tenderHelperService","abp.services.etender.organization",function(n,t,i,r,u,f,e,o,s){function l(){h.procurementType=null;n.env.isBankruptCustomer?(h.createAuctionTypes=[{value:"bankrupt1",type:"Аукціон - без можливості зниження початкової ціни"},{value:"bankrupt2",type:"Перший повторний аукціон - без можливості зниження початкової ціни"},{value:"bankrupt3",type:"Перший повторний аукціон - з можливістю зниження початкової ціни"},{value:"bankrupt4",type:"Другий повторний аукціон - з можливістю зниження початкової ціни"}],h.colspan=2):(h.createAuctionTypes=[],n.env.isForestSeller?(h.canCreateOnlyEnglish=!0,h.createAuctionTypes.push({value:"timberEnglish",type:t.timberEnglishTitle})):n.env.isLandLeaseHolder?(h.canCreateOnlyEnglish=!0,h.createAuctionTypes.push({value:"landRentalEnglish",type:t.landRentalEnglishTitle}),h.createAuctionTypes.push({value:"landRentalEnglishFast",type:t.landRentalEnglishTitle+" Fast"}),h.createAuctionTypes.push({value:"landRentalEnglishFastManual",type:t.landRentalEnglishTitle+" FastManual"}),h.createAuctionTypes.push({value:"landRentalEnglishFastAuctionManualQualification",type:t.landRentalEnglishTitle+" FastAuctionManualQualification"}),h.createAuctionTypes.push({value:"landRentalEnglishInitialAuction",type:t.landRentalEnglishTitle+" InitialAuction"}),h.createAuctionTypes.push({value:"landRentalEnglishInitialAuctionManual",type:t.landRentalEnglishTitle+" InitialAuctionManual"}),h.createAuctionTypes.push({value:"landRentalEnglishInitialQualification",type:t.landRentalEnglishTitle+" InitialQualification"}),h.createAuctionTypes.push({value:"landRentalEnglishInitialQualificationProd",type:t.landRentalEnglishTitle+" InitialQualificationProd"}),h.createAuctionTypes.push({value:"landSellEnglish",type:t.landSellEnglishTitle}),h.createAuctionTypes.push({value:"landSellEnglishFast",type:t.landSellEnglishTitle+" Fast"}),h.createAuctionTypes.push({value:"landSellEnglishFastManual",type:t.landSellEnglishTitle+" FastManual"}),h.createAuctionTypes.push({value:"landSellEnglishFastAuctionManualQualification",type:t.landSellEnglishTitle+" FastAuctionManualQualification"}),h.createAuctionTypes.push({value:"landSellEnglishInitialAuction",type:t.landSellEnglishTitle+" InitialAuction"}),h.createAuctionTypes.push({value:"landSellEnglishInitialAuctionManual",type:t.landSellEnglishTitle+" InitialAuctionManual"}),h.createAuctionTypes.push({value:"landSellEnglishInitialQualification",type:t.landSellEnglishTitle+" InitialQualification"}),h.createAuctionTypes.push({value:"landSellEnglishInitialQualificationProd",type:t.landSellEnglishTitle+" InitialQualificationProd"}),h.createAuctionTypes.push({value:"landSellPriorityEnglish",type:t.landSellPriorityEnglishTitle}),h.createAuctionTypes.push({value:"landSellPriorityEnglishFast",type:t.landSellPriorityEnglishTitle+" Fast"}),h.createAuctionTypes.push({value:"landSellPriorityEnglishFastManual",type:t.landSellPriorityEnglishTitle+" FastManual"}),h.createAuctionTypes.push({value:"landSellPriorityEnglishFastAuctionManualQualification",type:t.landSellPriorityEnglishTitle+" FastAuctionManualQualification"}),h.createAuctionTypes.push({value:"landSellPriorityEnglishInitialAuction",type:t.landSellPriorityEnglishTitle+" InitialAuction"}),h.createAuctionTypes.push({value:"landSellPriorityEnglishInitialAuctionManual",type:t.landSellPriorityEnglishTitle+" InitialAuctionManual"}),h.createAuctionTypes.push({value:"landSellPriorityEnglishInitialQualification",type:t.landSellPriorityEnglishTitle+" InitialQualification"}),h.createAuctionTypes.push({value:"landSellPriorityEnglishInitialQualificationProd",type:t.landSellPriorityEnglishTitle+" InitialQualificationProd"}),t.isQA||(h.createAuctionTypes=[])):n.env.isPrivatePropertyOrganizer?(h.createAuctionTypes.push({value:"propertyLease",type:"Оренда майна"}),h.createAuctionTypes.push({value:"commercialSellEnglish",type:t.commercialSellEnglishTitle}),t.isQA&&(h.createAuctionTypes.push({value:"dgfOtherAssets",type:"Продаж майна ЦБД2"}),h.createAuctionTypes.push({value:"commercialSellEnglishFast",type:t.commercialSellEnglishTitle+" Fast"}),h.createAuctionTypes.push({value:"commercialSellEnglishFastManual",type:t.commercialSellEnglishTitle+" FastManual"}),h.createAuctionTypes.push({value:"commercialSellEnglishFastAuctionManualQualification",type:t.commercialSellEnglishTitle+" FastAuctionManualQualification"}),h.createAuctionTypes.push({value:"commercialSellEnglishInitialQualification",type:t.commercialSellEnglishTitle+" InitialQualification"}),h.createAuctionTypes.push({value:"commercialSellEnglishInitialAuction",type:t.commercialSellEnglishTitle+" InitialAuction"}),h.createAuctionTypes.push({value:"commercialSellEnglishInitialAuctionManual",type:t.commercialSellEnglishTitle+" InitialAuctionManual"}),h.createAuctionTypes.push({value:"commercialSellEnglishInitialQualificationProd",type:t.commercialSellEnglishTitle+" InitialQualificationProd"}))):(h.createAuctionTypes.push({value:"propertyLease",type:"Оренда майна"}),t.isQA&&h.createAuctionTypes.push({value:"dgfOtherAssets",type:"Продаж майна"}),h.createAuctionTypes.push({value:"basicSellEnglish",type:t.basicSellEnglishTitle}),t.isQA&&(h.createAuctionTypes.push({value:"basicSellEnglishFast",type:t.basicSellEnglishTitle+" Fast"}),h.createAuctionTypes.push({value:"basicSellEnglishFastManual",type:t.basicSellEnglishTitle+" FastManual"}),h.createAuctionTypes.push({value:"basicSellEnglishFastAuctionManualQualification",type:t.basicSellEnglishTitle+" FastAuctionManualQualification"}),h.createAuctionTypes.push({value:"basicSellEnglishInitialQualification",type:t.basicSellEnglishTitle+" InitialQualification"}),h.createAuctionTypes.push({value:"basicSellEnglishInitialAuction",type:t.basicSellEnglishTitle+" InitialAuction"}),h.createAuctionTypes.push({value:"basicSellEnglishInitialAuctionManual",type:t.basicSellEnglishTitle+" InitialAuctionManual"}),h.createAuctionTypes.push({value:"basicSellEnglishInitialQualificationProd",type:t.basicSellEnglishTitle+" InitialQualificationProd"})),h.createAuctionTypes.push({value:"alienationEnglish",type:t.alienationEnglishTitle}),t.isQA&&(h.createAuctionTypes.push({value:"alienationEnglishFast",type:t.alienationEnglishTitle+" Fast"}),h.createAuctionTypes.push({value:"alienationEnglishFastManual",type:t.alienationEnglishTitle+" FastManual"}),h.createAuctionTypes.push({value:"alienationEnglishFastAuctionManualQualification",type:t.alienationEnglishTitle+" FastAuctionManualQualification"}),h.createAuctionTypes.push({value:"alienationEnglishInitialQualification",type:t.alienationEnglishTitle+" InitialQualification"}),h.createAuctionTypes.push({value:"alienationEnglishInitialAuction",type:t.alienationEnglishTitle+" InitialAuction"}),h.createAuctionTypes.push({value:"alienationEnglishInitialAuctionManual",type:t.alienationEnglishTitle+" InitialAuctionManual"}),h.createAuctionTypes.push({value:"alienationEnglishInitialQualificationProd",type:t.alienationEnglishTitle+" InitialQualificationProd"}))),h.colspan=1);n.env.isLandLordByReglament&&(h.createAuctionTypes=[{value:"propertyLease",type:"Оренда майна"}]);(n.env.isLandLord||n.env.isLandLordPropertyOwner)&&(h.createAuctionTypes=[{value:"propLeaseByZU",type:"Оренда майна"}])}var h,c;t.isQA=s.isEnvironmentQA(document.location.host)||s.isEnvironmentLocalhost(document.location.host);t.userData={};t.createProfileFlag=!1;h={};t.data=h;t.timberEnglishTitle=abp.localization.localize("TimberEnglishAuction","EtenderAuction");t.timberMultiAwardsEnglishTitle=abp.localization.localize("TimberMultiAwardsAuction","EtenderAuction");t.landRentalEnglishTitle=abp.localization.localize("LandRentalEnglish","EtenderAuction");t.landSellEnglishTitle=abp.localization.localize("LandSellEnglish","EtenderAuction");t.landSellPriorityEnglishTitle=abp.localization.localize("LandSellPriorityEnglish","EtenderAuction");t.basicSellEnglishTitle=abp.localization.localize("BasicSellEnglish","EtenderAuction");t.basicSellDutchTitle=abp.localization.localize("BasicSellDutch","EtenderAuction");t.alienationEnglishTitle=abp.localization.localize("AlienationEnglish","EtenderAuction");t.commercialSellEnglishTitle=abp.localization.localize("CommercialSellEnglish","EtenderAuction");t.commercialSellDutchTitle=abp.localization.localize("CommercialSellDutch","EtenderAuction");t.forCreateAuctionButton=[5,9,8,10,11,13,14,15,17,18,19,20,23,24];t.$watch("$root.env.isEnvironmentReady",function(t){t&&(n.env.isAuthorized&&n.accessionTreatyOrgTypes.includes(n.typeOfOrganization)&&!n.env.isAgreementSigned&&i.path("/accessionTreaty"),n.env.isPreSubscriber&&(n.env.isAwaitingForJoin||!n.env.isOnlyPresubscriber||n.userTenantId)||i.path("/createProfile"),l())});t.resetEmail=function(){var n=u.getUser({userName:localStorage.username||sessionStorage.username});abp.ui.setBusy();n.success(function(n){var i=u.updateUser(n);return i.success(function(){abp.ui.clearBusy();t.$emit("EmailAddressNewHandle")}),i.error(function(){abp.ui.clearBusy()}),i}).error(function(){abp.notify.success("Помилка запиту");abp.ui.clearBusy()})};$("body").off("show.bs.modal","#modalCreateAuctionSelect").on("show.bs.modal","#modalCreateAuctionSelect",function(){h.procurementType=h.createAuctionTypes.length===1?h.createAuctionTypes[0]:null});t.redirectToCreateAuction=function(t){$("#modalCreateAuctionSelect").modal("hide");var r=h.procurementType.value;if(!(t===1||n.env.isBankruptCustomer&&["bankrupt1","bankrupt2"].includes(h.procurementType.value)))switch(h.procurementType.value){case"propertyLease":r="propertyInsider";break;case"dgfOtherAssets":r="appraisalInsider";break;case"propLeaseByZU":r="propInsiderByZU";break;default:(h.procurementType.value.match(n.fastTypesRegex.basicSell)||h.procurementType.value.match(n.fastTypesRegex.commercialSell))&&(r=h.procurementType.value.replace("English","Dutch"))}i.path("/createAuction/"+r)};t.createLandSellOrLeaseAuction=function(n){h.procurementType={value:n};t.redirectToCreateAuction(1)};t.checkIsCanCreate=function(n){h.warnMessage=null;h.successMessage=null;var t=0;switch(h.procurementType.value){case"bankrupt1":t=1;break;case"bankrupt2":case"bankrupt3":t=2;break;case"bankrupt4":t=3}o.checkIsCanCreateBankrupt({dgfId:n,tenderAttempts:t}).success(function(n){n.isOk?h.successMessage="Тип аукціону обрано коректно":h.warnMessage=n.message})};t.changeAuctionTypesSelected=function(){h.warnMessage=null;t.data.canCreateOnlyEnglish=t.data.procurementType.value.indexOf("alienation")===0?!0:!1};t.changeMode=function(t){u.changeMode({isProductionMode:t}).success(function(i){localStorage.isProdMode=i;n.env.isProductionMode=i;t?abp.notify.success("Ви перейшли в режим реальних торгів!"):abp.notify.success("Ви перейшли в режим навчання!")})};t.showCreateAuctionButton=function(){return n.typeOfOrganization===17&&!n.env.isProductionMode?!1:t.forCreateAuctionButton.includes(n.typeOfOrganization)};c=function(){var n=e.getNotReadMessage();n.success(function(n){n&&n.isRead===!1&&!sessionStorage.notReadMessagesExistAlertShowed&&(abp.notify.warn("У вас є не прочитані повідомлення. Перейдіть в розділ приватних повідомлень!","Непрочитанi повiдомлення!"),sessionStorage.notReadMessagesExistAlertShowed=!0)})};c();t.goToMyRegObject=function(){localStorage.templateTabUrl=n.templateTabUrl="/app/Main/views/profile/myRegistry.cshtml";i.path("/profile");n.$broadcast("tabChangeEvent",n.templateTabUrl)}}])}(),function(){angular.module("app").controller("app.views.profilesList",["$scope","abp.services.etender.organization","$q","ngTableParams","$timeout","$rootScope","$location","lookupService",function(n,t,i,r,u,f,e,o){if(!f.env.isOperator){abp.notify.error("Недостатньо прав!");e.path("#");return}n.pagerSearchFilter={testModeIsReadyForApprovement:!0,productionModeIsReadyForApprovement:!0};var s;n.search=function(){u.cancel(s);s=u(function(){n.pagerSearchFilter={testModeIsReadyForApprovement:!0};n.tableParams.reload();n.tableParams.page(1)},1e3)};n.tableParams=new r({page:1,count:10,sorting:{lastModificationTime:"desc",isBankingConfirmed:"desc",shortName:"asc"}},{counts:[],getData:function(i,r){var u={Page:r.page(),PageSize:r.count(),OrderColumn:r.orderBy()[0].slice(1),OrderDirection:r.sorting()[r.orderBy()[0].slice(1)],SearchFilter:n.pagerSearchFilter},f;n.searchString&&n.searchString!=""&&(u.searchIdentifier=n.searchString);f=t.getOrganizations(u);abp.ui.setBusy(".panel-default:first");f.success(function(n){console.log("List of profiles");console.log(n);abp.ui.clearBusy(".panel-default");r.total(n.countAllRecords);i.resolve(n.organizations);n.organizations.forEach(function(n){n.typeOfOrganization=o.getPersonsByValue(n.typeOfOrganization)[0]})}).error(function(){abp.ui.clearBusy(".panel-default")})}});n.search()}])}(),function(){angular.module("app").controller("registerStage3Ctrl",["$scope","$location","$window",function(n,t){n.submit=function(){localStorage.templateTabUrl="/app/Main/views/profile/myOrganization.cshtml";t.path("/profile")}}])}(),function(){"use strict";function n(n,t,i,r,u,f,e,o){function y(){abp.ui.setBusy();o.getDataFromCache("getAllRegions",f.getAllRegions).then(function(n){s.regions=n.data.regions;s.regions.splice(0,0,l);abp.ui.clearBusy()});n.isAuthorized?(abp.ui.setBusy(),u.getUserSubscription().success(function(n){c(n);abp.ui.clearBusy()})):s.subscribeCaption=abp.localization.localize("Subscribe","EtenderAuction")}function p(){if(n.vm.findedOrganization){var t=n.vm.changedSubscription.organizations.some(function(t){return t?t.apiId==n.vm.findedOrganization.apiId:!1});t?abp.notify.warn("Такий ЄДРПОУ вже додано"):n.vm.changedSubscription.organizations.push(n.vm.findedOrganization);n.vm.findedOrganization=null}}function w(t){t&&t.apiId&&(n.vm.changedSubscription.organizations=n.vm.changedSubscription.organizations.filter(function(n){return n?n.apiId!==t.apiId:!1}))}function c(t){function i(){s.subscribeCaption=t.cpvItems.length>0||t.cavItems.length>0||t.regionIds.length>0?abp.localization.localize("SubscribeChange","EtenderAuction"):abp.localization.localize("Subscribe","EtenderAuction")}i();t.cpvItems.forEach(function(n){n.discription=n.desc});t.cavItems.forEach(function(n){n.discription=n.desc});t.procedureTypes.forEach(function(t){n.procurementMethodTypeDictionary.forEach(function(n){n.procurementMethodType===t.procurementMethodType&&(t.name=n.name)})});s.changedSubscription=t;n.currentSubscription={cpvIds:t.cpvItems.map(function(n){return n.id}),cavIds:t.cavItems.map(function(n){return n.id}),regionIds:t.regionIds.map(function(n){return n}),organizations:t.organizations.map(function(n){if(n&&n.apiId)return n.apiId}),procedureTypes:t.procedureTypes.map(function(n){return{name:"",procurementMethodType:n.procurementMethodType}}),amountMin:t.amountMin,amountMax:t.amountMax};h.organisationList=[];s.changedSubscription.organizations.length>0&&s.changedSubscription.organizations[0].apiId&&s.changedSubscription.organizations.forEach(function(n){if(n.apiId){var t=n.apiId+", "+n.legalName;h.organisationList.push({id:n.id,edrpouOrInn:n.apiId,organizationName:n.legalName,name:t})}})}function b(){s.sregions.forEach(function(n){if(n.id===0){var t=n;s.sregions=[];s.sregions.push(t);return}})}function k(){function i(n,t){for(var r,u,i=[],f=[],e=0;e<n.length;e+=1)i[n[e]]=!0;for(r=0;r<t.length;r+=1)i[t[r]]?delete i[t[r]]:i[t[r]]=!1;for(u in i)i[u]?f.push({id:u,state:"Deleted"}):f.push({id:u,state:"Added"});return f}function f(n,t){return!n&&!t||n===t?null:t?t:0}var t,r;abp.ui.setBusy();var e=s.changedSubscription.cpvItems.map(function(n){return n.id}),o=n.currentSubscription.cpvIds,l=i(o,e),a=s.changedSubscription.cavItems.map(function(n){return n.id}),v=n.currentSubscription.cavIds,y=i(v,a);s.changedSubscription.funder&&s.changedSubscription.funder.edrpouOrInn&&(s.changedSubscription.organizations.length===0&&s.changedSubscription.organizations.push({}),s.changedSubscription.organizations[0].apiId=s.changedSubscription.funder.edrpouOrInn);t=s.changedSubscription.organizations.map(function(n){if(n&&n.apiId)return n.apiId});h.organisationList&&h.organisationList.length>0&&(r=h.organisationList.map(function(n){if(n.edrpouOrInn)return n.edrpouOrInn}),r&&r.length&&r.forEach(function(n){var i=!0;t.forEach(function(t){t===n&&(i=!1)});i&&(t=t.concat(n))}));var p=n.currentSubscription.organizations,w=i(p,t),b=n.currentSubscription.procedureTypes.map(function(n){if(n&&n.procurementMethodType)return n.procurementMethodType}),k=s.changedSubscription.procedureTypes.map(function(n){if(n&&n.procurementMethodType)return n.procurementMethodType}),d=i(b,k),g=n.currentSubscription.regionIds.map(function(n){return n}),nt=s.changedSubscription.regionIds.map(function(n){if(n)return n}),tt=i(g,nt),it={cpvs:l,cavs:y,regions:tt,edrpous:w,amountMin:f(n.currentSubscription.amountMin,s.changedSubscription.amountMin),amountMax:f(n.currentSubscription.amountMax,s.changedSubscription.amountMax),isExcludeEmptyRegions:s.changedSubscription.isExcludeEmptyRegions,isCpvAndDk:s.changedSubscription.isCpvAndDk,isDaily:s.changedSubscription.isDaily,procedureTypes:d};u.postUserSubscription(it).success(function(n){c(n);abp.ui.clearBusy();abp.notify.success("Підписка оформлена")})}function a(t){(s.changedSubscription.procedureTypes&&s.changedSubscription.procedureTypes.length===0||t)&&(n.selectedProcurementMethodType=null)}function d(){u.delUserSubscription().success(function(){c({cpvItems:[],cavItems:[],regionIds:[],organizations:[],amountMin:null,amountMax:null,procedureTypes:[],isDaily:!0});s.subscribeCaption=abp.localization.localize("Subscribe","EtenderAuction")});a(!0);v(!0)}function v(t){(s.changedSubscription.regionIds&&s.changedSubscription.regionIds.length===0||t)&&(n.selectedRegion=null)}var s,h,l;n.vm={regions:[],sregions:[],changedSubscription:{},subscribe:k,subscribeCaption:"",delSubscribe:d,findedOrganization:null,addEdrpou:p,deleteEdrpou:w,regionClick:b,procedureTypes:[]};s=n.vm;h={};n.vModel=h;n.subscriptionForm="subscription";n.isAuthorizedFunction=function(){n.isAuthorized=t.env.isAuthorized===!0||t.env.isAuthorized==="true";n.isPM=!0};n.isAuthorizedFunction();l={title:"Вся Україна",countryId:1,id:0};n.procurementMethodTypeDictionary=e.getProcurementMethodsByFilter();y();n.currentSubscription={};n.classificationType="";n.isFormOpened=0;n.openClassificationModalNew=function(t){n.classificationType=t;++n.isFormOpened};n.removeItem=function(n,t){n.splice(t,1);a();v()};n.removeItemOrganization=function(n,t){var i=n.splice(t,1);s.changedSubscription.organizations.splice(t)};n.selectedProcedureList=[];n.selectedProcurementMethodType=n.procurementMethodTypeDictionary.find(t=>t.procurementMethodType===n.procurementMethodType);n.changeProcurementMethodType=function(t){var r,i;if(t&&t.procurementMethodType){if(t.procurementMethodType==="all"){s.changedSubscription.procedureTypes=[];n.selectedProcurementMethodType=null;return}for(r=!0,i=0;i<n.vm.changedSubscription.procedureTypes.length;i++)n.vm.changedSubscription.procedureTypes[i].procurementMethodType===t.procurementMethodType&&(r=!1);r&&s.changedSubscription.procedureTypes.push({name:t.name,procurementMethodType:t.procurementMethodType})}};n.skipChangeProcurementMethodType=function(){s.changedSubscription.procedureTypes=[];n.selectedProcurementMethodType={name:"Всі"}};n.changeRegion=function(t){var r,i;if(t&&t.id===0&&(s.changedSubscription.regionIds=[],n.selectedRegion=null),t&&t.id!==0){for(r=!0,i=0;i<n.vm.changedSubscription.regionIds.length;i++)n.vm.changedSubscription.regionIds[i]===t.id&&(r=!1);r&&s.changedSubscription.regionIds.push(t.id)}}}angular.module("app").controller("app.views.subscription",n);n.$inject=["$scope","$rootScope","$controller","abp.services.etender.reference","abp.services.etender.emails","abp.services.etender.reference","tenderHelperService","cachingService"]}(),function(){angular.module("app").controller("app.views.operations",["$rootScope","$scope","abp.services.etender.bankOperationLogAdmin","abp.services.etender.organization","ngTableParams",function(n,t,i,r,u){t.filter={inputedEDRPOU:""};t.findedOrganization=null;t.tableParams=new u({page:1,count:10},{counts:[],getData:function(n,r){var u={maxResultCount:r.count(),skipCount:(r.page()-1)*r.count(),sorting:"PostDate DESC"},f=i.getBankOperationLogs(u);abp.ui.setBusy(".panel-default:first");f.success(function(i){r.total(i.totalCount);console.log(i);t.operations=i.items;n.resolve(i.items);abp.ui.clearBusy(".panel-default")}).error(function(){abp.ui.clearBusy(".panel-default")})}});t.getOperation=function(n){t.filter.inputedEDRPOU="";t.findedOrganization=null;t.operation=t.operations[n];console.log("Выводим операцию:",t.operation)};t.getOrganizationByEDRPOU=function(){console.log("inputedEDRPOU:",t.filter.inputedEDRPOU);r.getOrganizationsByInnOrEdrpou({innOrEdrpou:t.filter.inputedEDRPOU}).success(function(n){t.findedOrganization=n.organizations[0];console.log("finded organization:",t.findedOrganization)})};t.submitPayment=function(){var n=t.findedOrganization.codeEDRPOU||t.findedOrganization.inn;if(!n){abp.notify.error("ЄДРПОУ та IНН не мають значень");return}i.putUnmappedOpereationToSystemByEDRPOU({OrganizationEDRPOU:n,BankOperationLogId:t.operation.id}).success(function(n){abp.notify.success("Платіж проведено");console.log("Платіж проведено:",n);t.filter.inputedEDRPOU="";t.findedOrganization=null;t.operation=null;t.tableParams.reload()}).error(function(){})}}])}(),function(){angular.module("app").controller("app.views.profile.userDetailes",["$rootScope","$scope","abp.services.etender.user","abp.services.etender.address","abp.services.etender.reference","$location",function(n,t,i,r,u,f){if(t.profileDetailes={},t.profileData={},t.fio={},t.isProfileEdit=!1,t.userDetailes={},!(localStorage.username||sessionStorage.username)){f.path("/logout");return}var e=function(){abp.ajax({url:"/account/IsLoggedJsonReturn",data:JSON.stringify({})}).done(function(r){if(r.isLogged){var u=i.getUser({userName:localStorage.username||sessionStorage.username});u.success(function(i){if(i){localStorage.isProdMode=i.isProductionMode;n.env.isProductionMode=i.isProductionMode;n.userTenantId=i.tenantId;localStorage.userTenantId=i.tenantId;sessionStorage.username=i.userName;n.userId=i.id;t.isPreCustomer=!1;t.userDetailes=i;var r=t.userDetailes.roles&&t.userDetailes.roles.length==1&&t.userDetailes.roles.indexOf("PreSubscriber")>-1;t.userDetailes.tenantId||n.env.isPreSubscriber&&(t.userDetailes.isAwaitingForJoin||!r||t.userDetailes.tenantId)||f.path("/createProfile");console.log("User:",i);t.fio.surname=i.surname;t.fio.name=i.name;t.fio.patronymic=i.patronymic}else f.path("/createProfile"),localStorage.isProdMode=!1}).error(function(){f.path("/createProfile")})}else f.path("/logout")})};e();t.updateUser=function(){var n={},r;return n.name=t.fio.name,n.surname=t.fio.surname,n.patronymic=t.fio.patronymic,n.emailAddress=t.userDetailes.emailAddress,n.phone=t.userDetailes.phone,n.fax=t.userDetailes.fax,n.userName=localStorage.username||sessionStorage.username,n.isProductionMode=localStorage.isProdMode,n.phone&&n.phone.charAt(0)!=="+"&&(n.phone="+"+n.phone),n.fax&&n.fax.charAt(0)!=="+"&&(n.fax="+"+n.fax),r=i.updateUser(n),abp.ui.setBusy(),r.success(function(){abp.ui.clearBusy();t.$emit("EmailAddressNewHandle");abp.notify.success("Дані користувача змінено!");e();t.isProfileEdit=!1}),r.error(function(){abp.ui.clearBusy()}),r};t.cancel=function(){e()}}])}(),function(){angular.module("app").controller("app.views.createLeaseAction",["$scope","$rootScope","$location","$q","abp.services.etender.registry","abp.services.etender.reference","tenderHelperService","$stateParams","lookupService","abp.services.etender.address",function(n,t,i,r,u,f,e,o,s){function c(){h?u.updateLeaseAction(n.entity).success(function(){abp.notify.success("Виконано успішно!");abp.ui.clearBusy();i.path("leaseActionDetailes/"+n.entity.id)}).error(function(n){console.log(n);abp.ui.clearBusy()}):u.createLeaseAction(n.entity).success(function(n){abp.notify.success("Виконано успішно!");abp.ui.clearBusy();i.path("leaseActionDetailes/"+n)}).error(function(n){console.log(n);abp.ui.clearBusy()})}n.entity={};n.saveButtonTitle="Зберегти як чернетку";n.contactPointMainType=1;var h=!1;n.actionTypes=s.getActionType();n.actingEntityRoles=s.getActingEntityRole();n.getLeaseAction=function(){o.registryObjectApiId?u.getNewLeaseAction(o.registryObjectApiId).success(function(t){n.entity=angular.copy(t);n.entity.actingEntity&&n.entity.actingEntity.contactPoint&&n.entity.actingEntity.contactPoint.name&&(n.entity.actingEntity.contactPoint.fio=e.parseName(n.entity.actingEntity.contactPoint.name))}).error(function(){i.path("/")}):u.getLeaseAction(o.leaseActionId).success(function(t){n.entity=angular.copy(t);h=!0;n.saveButtonTitle="Зберегти";n.entity.actingEntity&&n.entity.actingEntity.contactPoint&&n.entity.actingEntity.contactPoint.name&&(n.entity.actingEntity.contactPoint.fio=e.parseName(n.entity.actingEntity.contactPoint.name))}).error(function(){i.path("/")})};n.getLeaseAction();n.saveLeaseAction=function(){abp.ui.setBusy();c()};n.changeRelatedEntity=function(t,i){return n.entity[i]=t?{number:number}:null,n.entity[i]}}])}(),function(){angular.module("app").controller("app.views.createLeaseRequest",["$scope","$rootScope","$location","$q","abp.services.etender.registry","abp.services.etender.reference","tenderHelperService","$stateParams","lookupService",function(n,t,i,r,u,f,e,o,s){n.entity={};n.ownershipTypes=s.getOwnershipTypes();n.isEditLeaseRequest=!1;n.getLeaseRequest=function(){u.getOrSetLeaseRequest(o.regObjApiId).success(function(t){n.entity=angular.copy(t);n.entity.id!==null&&n.entity.id!==""&&(n.isEditLeaseRequest=!0);n.entity.requestor&&(n.entity.requestor.phone=n.entity.requestor.telephone,n.entity.requestor.fio=e.parseName(n.entity.requestor.name))}).error(function(){i.path("/")})};n.getLeaseRequest();n.getLeaseRequestTypes=function(){n.requestTypes=s.getLeaseRequestTypes()};n.getLeaseRequestTypes();n.saveLeaseRequest=function(){n.entity.requestor.telephone=n.entity.requestor.phone;abp.ui.setBusy();n.isEditLeaseRequest?u.updateLeaseRequest(n.entity).success(function(){abp.notify.success("Виконано успішно!");abp.ui.clearBusy();i.path("leaseRequestDetailes/"+n.entity.id)}).error(function(n){console.log(n);abp.ui.clearBusy()}):u.createLeaseRequest(n.entity).success(function(n){abp.notify.success("Виконано успішно!");abp.ui.clearBusy();i.path("leaseRequestDetailes/"+n)}).error(function(n){console.log(n);abp.ui.clearBusy()})}}])}(),function(){angular.module("app").controller("app.views.createRegistryContract",["$scope","$rootScope","$location","$q","$window","abp.services.etender.registry","abp.services.etender.reference","abp.services.etender.address","tenderHelperService","$stateParams","lookupService","documentService",function(n,t,i,r,u,f,e,o,s,h,c,l){function v(n){n&&n.fio&&n.fio.firstName&&(n.name=s.joinName(n.fio))}function y(){console.log("RegistryContract CRE",n.entity);f.createRegistryContract(n.entity).success(function(t){abp.notify.success("Виконано успішно!");abp.ui.clearBusy("#createRegistryContractForm");n.isNew=!1;n.registryContractId=n.entity.id=t;n.originalEntity=angular.copy(n.entity);a();typeof n.reloadDetailesForContract=="function"&&n.reloadDetailesForContract()}).error(function(n){console.log(n);abp.ui.clearBusy("#createRegistryContractForm")})}function p(){console.log("RegistryContract UPD",n.entity);f.updateRegistryContract(n.entity).success(function(){abp.notify.success("Виконано успішно!");abp.ui.clearBusy("#createRegistryContractForm");n.originalEntity=angular.copy(n.entity);a();typeof n.reloadDetailesForContract=="function"&&n.reloadDetailesForContract()}).error(function(n){console.log(n);abp.ui.clearBusy("#createRegistryContractForm")})}function a(){n.isView=!0;n.isEdit=!1;n.isShow=!1}n.dateRegex=t.regex.date;n.isView=!1;n.entity={};n.contractStatuses=c.getContractStatus();n.contractMethods=c.getContractMethod();$("body").on("show.bs.modal","#modalRegistryContractForm",function(t){n.registryObjectId=t.relatedTarget.attributes["data-registryObjectId"]?t.relatedTarget.attributes["data-registryObjectId"].nodeValue:"";n.registryContractId=t.relatedTarget.attributes["data-registryContractId"]?t.relatedTarget.attributes["data-registryContractId"].nodeValue:"";n.isNew=n.registryContractId.length===0;n.isView=n.registryContractId.length>0;n.isEdit=n.isShow=!1;n.isMaxWidth=u.innerWidth>1200;n.getRegistryContract()});n.getRegistryContract=function(){n.isNew?f.getNewRegistryContract(n.registryObjectId).success(function(t){n.entity=angular.copy(t);console.log("RegistryContract NEW",n.entity);n.saveButtonTitle="Зберегти чернетку";n.isShow=!0}).error(function(){i.path("/")}):f.getRegistryContract(n.registryContractId).success(function(t){n.entity=angular.copy(t);n.originalEntity=angular.copy(n.entity);console.log("RegistryContract",n.entity);console.log("RegistryContract ORIG",n.originalEntity);n.saveButtonTitle=n.entity.apiId?"Опублікувати зміни":"Зберегти чернетку";n.entity.buyers&&n.entity.buyers[0].contactPoint&&n.entity.buyers[0].contactPoint.name&&(n.entity.buyers[0].contactPoint.fio=s.parseName(n.entity.buyers[0].contactPoint.name))}).error(function(){i.path("/")})};n.editRegistryContract=function(){console.log("e RegistryContract",n.entity);n.isView=!1;n.isEdit=!0;n.isShow=!0};n.cancelChanges=function(){console.log("c RegistryContract ORIG",n.originalEntity);n.entity=angular.copy(n.originalEntity);n.entity.buyers[0].contactPoint.fio=s.parseName(n.entity.buyers[0].contactPoint.name);console.log("c RegistryContract",n.entity);n.isView=!0;n.isEdit=!1;n.isShow=!1};n.saveRegistryContract=function(){abp.ui.setBusy("#createRegistryContractForm");n.entity.buyers.length>0&&v(n.entity.buyers[0].contactPoint);n.isEdit?p():y()};n.removeRegistryContract=function(){confirm("Ви дійсно бажаєте видалити договір?")&&f.removeRegistryContract(n.entity.id).success(function(){abp.notify.success("Виконано успішно!");typeof n.reloadDetailesForContract=="function"&&n.reloadDetailesForContract();$("#modalRegistryContractForm").modal("hide")})};n.publishRegistryContract=function(){abp.ui.setBusy("#createRegistryContractForm");f.publishRegistryContract(n.entity.id).success(function(){abp.notify.success("Виконано успішно!");n.getRegistryContract();typeof n.reloadDetailesForContract=="function"&&n.reloadDetailesForContract();abp.ui.clearBusy("#createRegistryContractForm")}).error(function(n){console.log(n);abp.ui.clearBusy("#createRegistryContractForm")})};n.getContractMethodDescription=function(n){return c.getContractMethodDescription(n)};n.getContractStatusDescription=function(n){return c.getContractStatusDescription(n)};n.canModifyDocuments=function(){return!n.entity||!n.entity.isOwner?!1:!0};n.isDateIntervalGood=function(n,t){if(n&&t){var i,r;return i=typeof n=="string"?new Date(n):n,r=typeof t=="string"?new Date(t):t,r>=i?!0:!1}return!0};n.isHasContractRequiredDocument=function(){return!n.entity||!n.entity.documents||n.entity.documents.length<1?!1:l.checkIfDocExist("contractSigned",n.entity.documents,!1,!0)}}])}(),function(){angular.module("app").controller("app.views.createRegistryObject",["$scope","$rootScope","$location","$q","abp.services.etender.registry","abp.services.etender.reference","abp.services.etender.address","tenderHelperService","$stateParams","lookupService","$anchorScroll",function(n,t,i,r,u,f,e,o,s,h,c){function a(n){n&&n.fio&&n.fio.firstName&&(n.name=o.joinName(n.fio))}var l={isEdit:!1},v=null;n.isFormOpened=0;n.entity={};n.showData={governer:!1,currentTenant:!1,leaseRules:!1};n.saveButtonTitle="Зберегти як чернетку";n.ownershipTypes=h.getOwnershipTypes();l.setRegistryObject=function(){u.getRegistryObjectNew(s.typeRegistryObj).success(function(t){n.entity=angular.copy(t);v=t;console.log("getRegistryObjectNew",n.entity);n.classificationType=n.entity.objectType==="jointPropertyComplex"||n.entity.objectType==="realEstate"?"openCAV":"openCPV";n.isRequiredLocation=n.entity.objectType==="realEstate"?!0:!1;n.entity.items[0].isAddressRequired=!0;n.entity.id&&n.entity.id.length>1||(n.entity.items[0].classification={code:"",description:"",classificationType:n.classificationType,classificationTitle:"CAV"});n.entity.id&&n.entity.id.length>1&&!(s.fromTpl&&s.fromTpl==="template")&&(l.isEdit=!0,n.isEdit=!0,n.saveButtonTitle="Зберегти");n.entity.leaseRules&&n.entity.leaseRules.schedule&&(n.showData.schedule=!0);n.entity.relatedOrganizations&&(n.entity.relatedOrganizations.propertyOwner&&n.entity.relatedOrganizations.propertyOwner.contactPoint&&n.entity.relatedOrganizations.propertyOwner.contactPoint.name&&(n.entity.relatedOrganizations.propertyOwner.contactPoint.fio=o.parseName(n.entity.relatedOrganizations.propertyOwner.contactPoint.name)),n.entity.relatedOrganizations.sellingEntity&&n.entity.relatedOrganizations.sellingEntity.contactPoint&&n.entity.relatedOrganizations.sellingEntity.contactPoint.name&&(n.entity.relatedOrganizations.sellingEntity.contactPoint.fio=o.parseName(n.entity.relatedOrganizations.sellingEntity.contactPoint.name)),n.entity.relatedOrganizations.governer&&(n.showData.governer=!0,n.entity.relatedOrganizations.governer.contactPoint&&n.entity.relatedOrganizations.governer.contactPoint.name&&(n.entity.relatedOrganizations.governer.contactPoint.fio=o.parseName(n.entity.relatedOrganizations.governer.contactPoint.name))),n.entity.relatedOrganizations.currentTenant&&(n.showData.currentTenant=!0,n.entity.relatedOrganizations.currentTenant.contactPoint&&n.entity.relatedOrganizations.currentTenant.contactPoint.name&&(n.entity.relatedOrganizations.currentTenant.contactPoint.fio=o.parseName(n.entity.relatedOrganizations.currentTenant.contactPoint.name))));s.forAuct&&s.forAuct==="ok"&&$("#listType").focus();c()})};l.setRegistryObject();n.addRegistryObjectItem=function(){var i=n.entity.objectType==="jointPropertyComplex"||n.entity.objectType==="realEstate"?"openCAV":"openCPV",r=n.entity.objectType==="jointPropertyComplex"||n.entity.objectType==="realEstate"?"CAV-PS":"CPV",t=angular.copy(v.items[0]);t.title=null;t.description=null;t.property.realEstateProps=null;t.property.jointPropertyComplexProps=n.entity.objectType==="jointPropertyComplex"?t.property.jointPropertyComplexProps.landProps=null:t.property.jointPropertyComplexProps=null;t.property.vehicleProps=null;t.classification={code:"",description:"",classificationType:i,classificationTitle:r};t.additionalClassifications=[];t.location=null;t.address=null;t.addressId=null;t.id=0;n.entity.items.push(t)};n.delRegistryObjectItem=function(t){for(var r=[],i=0,u=n.entity.items.length;i<u;i++)i!==t&&r.push(n.entity.items[i]);n.entity.items=angular.copy(r)};n.saveRegistryObject=function(){if(l.createAddressPromises=[],l.isAllAddressesGood=!0,abp.ui.setBusy(),n.entity.items.forEach(function(n){(!n.address&&n.addressId||n.address&&(n.address.region===null||typeof n.address.region=="undefined"))&&(n.address=null);n.addressId=null}),n.entity.relatedOrganizations){var t=n.entity.relatedOrganizations;n.showData.governer===!1&&(t.governer=null);n.showData.currentTenant===!1&&(t.currentTenant=null);t.propertyOwner&&a(t.propertyOwner.contactPoint);t.sellingEntity&&a(t.sellingEntity.contactPoint);t.governer&&a(t.governer.contactPoint);t.currentTenant&&a(t.currentTenant.contactPoint)}if(l.createAddressPromises.length>0)r.all(l.createAddressPromises).then(function(){if(l.isAllAddressesGood===!0)return l.isEdit?l.updateObject():l.createObject()});else return l.isEdit?l.updateObject():l.createObject()};l.createObject=function(){for(var t=0,r=n.entity.items.length;t<r;t++)n.entity.items[t].id=0;abp.ui.setBusy();u.createRegistryObject(n.entity).success(function(n){abp.notify.success("Виконано успішно!");abp.ui.clearBusy();i.path("registryObjectDetailes/"+n)}).error(function(n){console.log(n);abp.ui.clearBusy()})};n.clearData=function(t){t==="governer"&&n.entity.relatedOrganizations&&(n.entity.relatedOrganizations.governer=null);t==="currentTenant"&&n.entity.relatedOrganizations&&(n.entity.relatedOrganizations.currentTenant=null)};l.updateObject=function(){abp.ui.setBusy();u.updateRegistryObject(n.entity).success(function(){abp.notify.success("Виконано успішно!");abp.ui.clearBusy();i.path("registryObjectDetailes/"+n.entity.id)}).error(function(n){console.log(n);abp.ui.clearBusy()})};n.showDataChange=function(t){t==="governer"&&n.showData.governer&&n.entity.relatedOrganizations&&!n.entity.relatedOrganizations.governer&&(n.entity.relatedOrganizations.governer={addressN:null});t==="currentTenant"&&n.showData.currentTenant&&n.entity.relatedOrganizations&&!n.entity.relatedOrganizations.currentTenant&&(n.entity.relatedOrganizations.currentTenant={addressN:null})};n.openClassificationModalNew=function(t){n.curItem=n.entity.items[t];n.isAdditional=!1;n.isFormOpened++};n.disableRegistryObjectButton=function(t){var r,i,u;if(n.entity.items===null||typeof n.entity.items=="undefined")return!0;for(r=0,i=0,u=n.entity.items.length;i<u;i++)n.entity.items[i].classification&&n.entity.items[i].classification.code&&n.entity.items[i].classification.code.length>0&&r++;return n.entity.items.length!==r?!0:!t.$valid};n.goBack=function(){i.path("registryObjectDetailes/"+n.entity.id)}}])}(),function(){angular.module("app").controller("app.views.leaseActionDetailes",["$scope","abp.services.etender.registry","$stateParams","lookupService","$location",function(n,t,i,r,u){n.entity={};n.getLeaseActionDetailes=function(){t.getLeaseAction(i.leaseActionId).success(function(t){n.entity=angular.copy(t);n.entity.actingEntityRoleDescription=r.getActingEntityRoleDiscription(n.entity.actingEntityRole);n.entity.leaseActionTypeDescription=r.getLeaseActionTypeDiscription(n.entity.type);n.entity.leaseActionStatusDescription=r.getRegistryStatusDescription(n.entity.status);console.log("leaseAction:",n.entity)}).error(function(n){console.log(n);abp.ui.clearBusy();u.path("/")})};n.getLeaseActionDetailes();n.canModifyDocuments=function(){return!n.entity||!n.entity.isEdit?!1:!0};n.goToUpdate=function(){u.path("updateLeaseAction/"+n.entity.id)};n.activate=function(){abp.ui.setBusy();t.activateLeaseAction(i.leaseActionId).success(function(){abp.ui.clearBusy();abp.notify.success("Відправлено на публікацію");n.getLeaseActionDetailes();console.log("leaseAction:",n.entity)}).error(function(n){console.log(n);abp.ui.clearBusy()})};n.removeLeaseAction=function(){confirm("Ви дійсно бажаєте видалити чернетку?")&&(abp.ui.setBusy(),t.removeLeaseAction(n.entity.id).success(function(){abp.ui.clearBusy();abp.notify.success("Виконано успішно!");u.path("/")}).error(function(){abp.ui.clearBusy();abp.notify.error("Oops. Something went wrong...")}))}}])}(),function(){angular.module("app").controller("app.views.leaseRequestDetailes",["$scope","abp.services.etender.registry","$stateParams","lookupService","$location",function(n,t,i,r,u){n.entity={};n.oferta={approve:!1};n.getLeaseRequest=function(){t.getLeaseRequest(i.leaseRequestId).success(function(t){n.entity=angular.copy(t);console.log("leaseRequest:",n.entity)})};n.getLeaseRequest();n.getRegistryStatusDescription=function(n){return r.getRegistryStatusDescription(n)};n.canModifyDocuments=function(n){return n.isOwner&&!n.apiId};n.goToUpdate=function(){u.path("updateLeaseRequest/"+n.entity.id)};n.activate=function(){abp.ui.setBusy();t.activateLeaseRequest({registryEntityId:i.leaseRequestId,offerPersDataApprove:n.oferta.approve}).success(function(){abp.ui.clearBusy();abp.notify.success("Заявку відправлено на публікацію");n.getLeaseRequest();console.log("leaseRequest:",n.entity)}).error(function(n){console.log(n);abp.ui.clearBusy()})};n.removeLeaseRequest=function(){confirm("Ви дійсно бажаєте видалити чернетку?")&&(abp.ui.setBusy(),t.removeLeaseRequest(n.entity.id).success(function(){abp.ui.clearBusy();abp.notify.success("Виконано успішно!");u.path("/")}).error(function(){abp.ui.clearBusy();abp.notify.error("Oops. Something went wrong...")}))};n.getLeaseRequestTypeDescription=function(n){return r.getLeaseRequestTypeDescription(n)}}])}(),function(){angular.module("app").controller("app.views.registryObjectDetailes",["$rootScope","$scope","$stateParams","ngTableParams","abp.services.etender.registry","lookupService","$location","tenderHelperService","registryObjectService",function(n,t,i,r,u,f,e,o,s){function l(n){for(var r,i=0,u=t.detailes.tenders.length;i<u;i++)c=t.detailes.tenders[i].tenderEndDate,t.end[i]=Date.parse(c),r=t.detailes.tenders[i],r.procurementMethodTypeName=o.getProcurementMethodTitle(r.procurementMethodType,r.tenderAttempts),o.setTenderDescriptionByStatus(r),r.labelClass=o.getLabelClassByStatus(r.status),t.detailes.tenders[i].procurementMethodTypeForDetailes=t.detailes.tenders[i].procurementMethodType;n.resolve(t.detailes.tenders)}var h=i.registryId,c;t.oferta={approve:!1};t.currentTab="regObject";t.vm={};t.end=[];t.reloadDetailes=function(){var n=u.getRegistryObject(h);abp.ui.setBusy();n.success(function(n){console.log("registryObjectDetailes",n);t.detailes=n;t.detailes.isOwner||(t.detailes.canCreateRequest=s.canCreateLeaseRequest(t.detailes.apiId));t.detailes.canCreateAction=s.canCreateLeaseAction(t.detailes.apiId);t.detailes.canCreateLegitimateAuction=s.canCreateLegitimateAuction(t.detailes);t.detailes.relatedOrganizations&&(t.detailes.relatedOrganizations.ownershipTypeDiscription=f.getOwnershipTypeDiscription(t.detailes.relatedOrganizations.ownershipType));t.detailes.isJointPropertyComplex&&t.detailes.items.forEach(function(n){n.property&&n.property.jointPropertyComplexProps&&n.property.jointPropertyComplexProps.landProps&&(n.property.jointPropertyComplexProps.landProps.ownershipTypeDescription=f.getLandPropsOwnershipTypesDescription(n.property.jointPropertyComplexProps.landProps.ownershipType),n.property.jointPropertyComplexProps.landProps.encumbrancesDescription=f.getEncumbrancesDescriptionByType(n.property.jointPropertyComplexProps.landProps.encumbrances))});t.detailes.isRealEstate&&t.detailes.items.forEach(function(n){n.property&&n.property.realEstateProps&&(n.property.realEstateProps.constructionTechnologyDescription=f.getConstructionTechnologyDescriptionByType(n.property.realEstateProps.constructionTechnology),n.property.realEstateProps.locationInBuildingDescription=f.getLocationInBuildingDiscription(n.property.realEstateProps.locationInBuilding),n.property.realEstateProps.powerSupplyClassDescription=f.getPowerSupplyClassDiscription(n.property.realEstateProps.powerSupplyClass))});t.detailes.isVehicle&&t.detailes.items.forEach(function(n){n.property&&n.property.vehicleProps&&(n.property.vehicleProps.fuelTypeDescription=f.getFuelTypeDiscription(n.property.vehicleProps.fuelType),n.property.vehicleProps.transmissionDescription=f.getTransmissionDiscription(n.property.vehicleProps.transmission))});t.detailes.contracts&&t.detailes.contracts.length>0&&t.detailes.contracts.forEach(function(n){n.statusDescription=f.getRegContractStatus(n.status)});t.detailes.leaseRules.schedule&&(t.detailes.leaseRules.schedule.hoursByDescription=t.detailes.leaseRules.schedule.hoursBy?f.getScheduleHoursByDescription(t.detailes.leaseRules.schedule.hoursBy).toLowerCase():null,t.detailes.leaseRules.schedule.daysByDescription=t.detailes.leaseRules.schedule.daysBy?f.getScheduleDaysByDescription(t.detailes.leaseRules.schedule.daysBy).toLowerCase():null);t.tableParams=new r({page:1,sorting:{tenderStartDate:"desc"}},{total:0,counts:[],getData:l});abp.ui.clearBusy()}).error(function(n){console.log(n);abp.ui.clearBusy();e.path("/")})};t.customTendTitle=function(n){return o.customTendTitle(n)};t.reloadDetailes();t.activate=function(){var n=u.activateRegistryObject({registryEntityId:h,offerPersDataApprove:t.oferta.approve});abp.ui.setBusy();n.success(function(){abp.ui.clearBusy();abp.notify.success("Об'єкт відправлено на публікацію");t.reloadDetailes()}).error(function(n){console.log(n);abp.ui.clearBusy()})};t.goToUpdate=function(){e.path("updateRegistryObject/"+t.detailes.id)};t.getRegistryObjectItemDescByType=function(n){return f.getRegistryObjectItemDescByType(n)};t.canModifyDocuments=function(){return!t.detailes||!t.detailes.isOwner?!1:!0};t.getRegistryStatusDescription=function(n){return f.getRegistryStatusDescription(n)};t.getRegistrationStateDiscription=function(n){return f.getRegistrationStateDiscription(n)};t.getVerificationPresenceDiscription=function(n){return f.getVerificationPresenceDiscription(n)};t.getFuelTypeDiscription=function(n){return f.getFuelTypeDiscription(n)};t.getTransmissionDiscription=function(n){return f.getTransmissionDiscription(n)};t.getLocationInBuildingDiscription=function(n){return f.getLocationInBuildingDiscription(n)};t.getPowerSupplyClassDiscription=function(n){return f.getPowerSupplyClassDiscription(n)};t.removeRegistryObject=function(){confirm("Ви дійсно бажаєте видалити чернетку?")&&(abp.ui.setBusy(),u.removeRegistryObject(t.detailes).success(function(){abp.ui.clearBusy();abp.notify.success("Виконано успішно!");e.path("/")}).error(function(){abp.ui.clearBusy();abp.notify.error("Oops. Something went wrong...")}))};t.createFromTemplate=function(){e.path("createRegistryObjectFromTemplate/"+t.detailes.id+"/template")};t.reloadDetailesForContract=function(){t.reloadDetailes()};t.openModalFastLegetimate=function(n,i){t.fastLPLEs=f.getCreationLegitimatePropertyLeaseFasts(n,i);$("#modalFastLPLE").modal("show")}}])}(),function(){angular.module("app").controller("app.views.registryObjects",["$scope","$stateParams","$location",function(n,t,i){function r(){n.carouselItemWidth=window.screen.availWidth<=600?84:144}n.carouselItemWidth=144;r();n.carouselOffset=0;n.currentTab=t.tab;n.carouselItems=[{categoryName:"Всі",tab:"all"},{categoryName:"Нерухомість",tab:"realEstate"},{categoryName:"Єдиний майновий комплекс",tab:"jointPropertyComplex"},{categoryName:"Транспорт",tab:"vehicle"},{categoryName:"Інше",tab:"otherProperty"}];n.selectCarouselItem=function(t){n.currentTab=t.tab;i.path("registryObjects/"+t.tab)};n.carousel=function(t){r();t=isNaN(t)?1:t;var u=$(".auction-carousel-container").width(),f=$(".auction-carousel-container ul").width(),i=n.carouselOffset+t*n.carouselItemWidth;i<=0&&(n.carouselOffset=i)}}])}(),function(){angular.module("app").controller("app.views.report",["$rootScope","$scope","abp.services.etender.report",function(n,t,i){t.dateRegex=n.regex.date;t.isChiefAccountant=n.env.isChiefAccountant;var u,f,e,o,p,s,r=function(n){return{startDay:n.filter.startDay,endDay:n.filter.endDay}},h=function(n){if(abp.ui.setBusy(".panel-default:first"),t.isSubProposalsItems===undefined||n==="reload"){u=!0;var f=i.getSubProposalsItems(r(t));f.success(function(n){t.subProposalsItemsResult=n.proposalItems})}abp.ui.clearBusy(".panel-default")},c=function(n){if(abp.ui.setBusy(".panel-default:first"),t.declaredProceduresItems===undefined||n==="reload"){f=!0;var u=i.getDeclaredProcedureItems(r(t));u.success(function(n){t.declaredProcedures=n.itemsByGroup})}abp.ui.clearBusy(".panel-default")},l=function(n){if(t.сompletedProcedureItems===undefined||n==="reload"){e=!0;var u=i.getComletedProcedureItems(r(t));u.success(function(n){t.completedProcedureItems=n.itemsByGroup})}},a=function(n){if(abp.ui.setBusy(".panel-default:first"),t.detailProcedureByOrgs===undefined||n==="reload"){o=!0;var u=i.getDetailProcedureByOrgsItems(r(t));u.success(function(n){t.detailProcedureByOrgs=n.items})}abp.ui.clearBusy(".panel-default")},v=function(n){if(abp.ui.setBusy(".panel-default:first"),abp.ui.setBusy(".panel-default:first"),t.performedProcEkoPercentItems===undefined||n==="reload"){p=!0;var r={startDay:t.filter.startDay,endDay:t.filter.endDay,tenantId:-1},u=i.getPerformedProcEkoPercentItems(r);u.success(function(n){t.servicePerformedProcEkoPercentItems=n.items})}abp.ui.clearBusy(".panel-default")},y=function(n){if(abp.ui.setBusy(".panel-default:first"),t.detailProcedureByOrgs===undefined||n==="reload"){s=!0;var u=i.getAccTransactBidsQtyItems(r(t));u.success(function(n){t.accTransactBidsQtyItems=n.accTransactBidsQtyItems})}abp.ui.clearBusy(".panel-default")},w=function(){var p=i.getReportHeaderUsersInfoItems(r(t)),n;p.success(function(n){t.headerUsersInfoItemsResult=n.items});n=i.getBillingsReceiptsItems(r(t));n.success(function(n){t.billingsReceiptsItemsResult=n.items});u&&h("reload");f&&c("reload");e&&l("reload");o&&a("reload");s&&y("reload");v("reload")};t.loadSubProposals=h;t.loadReport=w;t.loadDeclaredProcedures=c;t.loadCompletedProcedures=l;t.loadDetailProcedureByOrgs=a;t.loadPerformedProcEkoPercent=v;t.loadAccTransactBidsQtyItems=y}])}(),function(){angular.module("app").controller("app.views.tarifs",["$scope",function(){}])}();angular.module("app").controller("additionalClassificationCtrl",["$scope","ngTableParams","abp.services.etender.reference","$timeout","cachingService",function(n,t,i,r,u){var e,f;n.dkScheme={value:"kvtspz",showData:!1};n.$watch("data",function(t){t&&n.data.isBasicSell&&n.data.lots[0].items.forEach(function(n){n.additionalClassifications=[]})});$("body").off("show.bs.modal","#addClassification").on("show.bs.modal","#addClassification",function(){n.selectedData=null;n.additionalScheme&&(n.dkScheme.value=n.additionalScheme);n.dkScheme.showData=n.data&&(n.data.isLandLease||n.data.isLandRentalOrSellEnglish)||!!n.searchItems.kvtspzItems;n.tableParams.reload()});n.search=function(t){n.searchstring=t;r.cancel(e);e=r(function(){n.tableParams.reload();n.tableParams.page(1)},1e3)};n.changeSelection=function(t){for(var r=n.tableParams.data,i=0;i<r.length;i+=1)r[i].$selected=!1;t.$selected=!0;n.selectedData=t};n.choose=function(){n.selectedData&&(n.selectedData.scheme=f,n.data&&(n.addClassificatorInd===0?n.data.lots[0].items[n.itemInd].additionalClassifications[n.addClassificatorInd]=n.selectedData:n.data.lots[0].items[n.itemInd].additionalClassifications.some(t=>t.code===n.selectedData.code)||n.data.lots[0].items[n.itemInd].additionalClassifications.push(n.selectedData),n.formname.$dirty=!0),n.searchItems&&n.searchItems.kvtspzItems&&n.searchItems.kvtspzItems.push(n.selectedData))};n.changeDk=function(){if(n.dkScheme.value=="Не визначено"){n.changeSelection({id:"-",code:"000",description:"Не визначено",scheme:"NONE"});return}n.tableParams.reload()};n.tableParams=new t({page:1,count:10},{counts:[],getData:function(t,r){var e,o={Page:r.page(),PageSize:r.count(),SearchIdentifier:n.searchstring,OrderColumn:"",OrderDirection:""};if(n.dkScheme.showData){switch(n.dkScheme.value){case"kvtspz":e=u.getDataFromCache("getKvtspzsClassifiers",i.getKvtspzsClassifiers,o);f="kvtspz";break;case"CVZU":e=u.getDataFromCache("getCvzuClassifiers",i.getCvzuClassifiers,o);f="CVZU";break;default:e=i.getCurrentDkRef(o)}abp.ui.setBusy(".modal-body");e.then(function(n){abp.ui.clearBusy(".modal-body");r.total(n.data.countAllRecords);t.resolve(n.data.items)})}}})}]),function(){"use strict";function n(n,t,i,r){function f(){r.getTenderItems({tenderId:i.tId,cbd:i.cbd}).success(function(n){u.items=n;u.questionsTo=[{id:1,title:"Аукціону"}];i.cbd==="3"&&(u.isOneChooseQuestionsTo=!0);i.type!=="3"&&i.cbd!=="3"&&u.questionsTo.push({id:3,title:"Предмет аукціону"})})}function e(){r.addQuestion({description:u.question.description,lotId:u.question.lot.id,itemId:u.question.item.id,tenderId:i.tId,title:u.question.title}).success(function(){abp.notify.success("Запитання відправлено!");switch(i.type){case"1":t.path("/tenderDetailes/"+i.tId);break;case"2":t.path("/auctionDetails/"+i.tId);break;case"3":case"4":t.path("/landLeaseDetails/"+i.tId)}})}function o(){var n=u.questionTo;(u.lotsVisible=!1,u.itemsVisible=!1,n)&&(n.id===2&&(u.lotsVisible=!0),n.id===3?u.itemsVisible=!0:u.question.lot={id:null})}function s(){return!u.question.description||!u.question.title||u.itemsVisible&&!u.question.item.id?!0:!1}n.vm={lots:[],lotsVisible:!1,itemsVisible:!1,onselect:o,questionTo:{id:1},questionsTo:[],question:{description:"",title:"",item:{id:null},lot:{id:null}},submit:e,isEmptyQ:s};var u=n.vm;f()}angular.module("app").controller("app.views.addQuestion",n);n.$inject=["$scope","$location","$stateParams","abp.services.etender.tender"]}();angular.module("app").directive("auctionForm",function(){return{restrict:"AE",templateUrl:"/App/Main/views/tenders/auctionForm.cshtml",scope:{formname:"=",data:"=",showData:"="},controller:["$rootScope","$scope","abp.services.etender.reference","abp.services.etender.tender","tenderHelperService","lookupService","cachingService",function(n,t,i,r,u,f,e){function a(){t.data.tenderNewExt&&t.data.tenderNewExt.cbd3DataExt&&t.data.tenderNewExt.cbd3DataExt.discount&&t.data.tenderNewExt.cbd3DataExt.discount.isDiscount&&(t.isShowDiscount=!0)}function b(n){if(n.items&&n.items[0]){var t=n.items[0],i={additionalClassifications:angular.copy(t.additionalClassifications),unit:t.unit};n.items.push(i)}}function k(n){t.data.lots.splice(n,1)}function d(n,i){n.items.splice(i,1);t.data.isBasicSell&&t.showBseItemExt.splice(i,1)}function g(n,t){n.additionalClassifications.splice(t,1)}function nt(){var n=angular.copy(t.data.tenderNewExt.cbd3DataExt.bankAccount[0]);t.data.tenderNewExt.cbd3DataExt.bankAccount.push(n)}function tt(n){t.data.tenderNewExt.cbd3DataExt.bankAccount.splice(n,1)}function it(){var n=t.data.tenderNewExt.landLeaseExt.lotHolder.identifier.apiId;n&&r.getHolderByEdrpou(n).success(function(n){n?(t.data.tenderNewExt.landLeaseExt.lotHolder=n,t.data.tenderNewExt.landLeaseExt.lotHolder.contactPoint.name&&(t.data.tenderNewExt.landLeaseExt.lotHolder.contactPoint.fio=u.parseName(t.data.tenderNewExt.landLeaseExt.lotHolder.contactPoint.name))):abp.notify.warn("","Організацію з таким номером ЄДРПОУ не знайдено")}).error(function(){abp.notify.error("Oops. Something went wrong...")})}function rt(n){var i=n.value.valueAddedTaxIncluded;n.minimalStep&&(n.minimalStep.valueAddedTaxIncluded=i);t.data.tenderNewExt&&t.data.tenderNewExt.landLeaseExt&&(t.data.tenderNewExt.landLeaseExt.budgetSpent.valueAddedTaxIncluded=i)}function s(n,i){return t.data.isLandRentalOrSellEnglish&&i==="guarantee"?n==="min"?30:100:t.data.isBankRuptcyDutch&&i==="minStep"?n==="min"?1:1:t.data.isLandRentalOrSellEnglish&&i==="minStep"?n==="min"?1:100:t.data.isLegitimatePropertyLease?n==="min"?1:10:t.data.isForestSale||t.data.isTimberEnglish||t.data.isTimberMultiAwards?i==="guarantee"?5:n==="min"?1:10:t.data.isGeoNadra?i==="guarantee"?20:n==="min"?1:10:t.data.isBankrupt?i==="guarantee"?10:t.data.isAppraisalInsider?0:n==="min"?1:10:t.data.isPropLease?i==="guarantee"?0:n==="min"?1:10:t.data.isBasicSellOnly||t.data.isAlienationEnglish?i==="guarantee"?n==="min"?5:10:n==="min"?1:10:(t.data.isSale||t.data.isAppraisalInsider)&&!t.data.isBankrupt?i==="guarantee"?n==="min"?5:10:0:t.data.isLandLease?i==="guarantee"?5:.5:t.data.isCarriageLease?i==="guarantee"?0:1:0}function h(n,i){return i==="guarantee"?n==="min"?(t.data.minGuaranteePercentage==null&&(t.data.minGuaranteePercentage=s(n,i)),t.data.minGuaranteePercentage):(t.data.maxGuaranteePercentage==null&&(t.data.maxGuaranteePercentage=s(n,i)),t.data.maxGuaranteePercentage):n==="min"?(t.data.minStepPercentage==null&&(t.data.minStepPercentage=s(n,i)),t.data.minStepPercentage):(t.data.maxStepPercentage==null&&(t.data.maxStepPercentage=s(n,i)),t.data.maxStepPercentage)}function c(n,i,r){var u=h("min",r);if(r==="minStep"&&(i.amountPer=u),i.amount=o(n*u/100),t.data.isLandRentalOrSellEnglish&&r==="guarantee"&&i.amount>t.maxGuaranteeForLandSell){i.amount=t.maxGuaranteeForLandSell;return}}function o(n){return Math.round((Math.round((n+Number.EPSILON)*1e3)/1e3+Number.EPSILON)*100)/100}function ut(){var n,i;for(t.vm.canBePerishable=!1,n=0;n<t.data.lots[0].items.length;++n)if(i=t.data.lots[0].items[n],i.classification.code.substring(0,2)==="03"||i.classification.code.substring(0,2)==="15"){t.vm.canBePerishable=!0;break}!t.vm.canBePerishable&&t.data.tenderNewExt.cbd3DataExt.isPerishable&&(t.data.tenderNewExt.cbd3DataExt.isPerishable=!1,t.setPerishable(t.formname.auctionPerioddate))}function ft(n){t.curLotItem.isRequiredLocation=!1;n.code.substring(0,2)==="04"||n.code==="07121000-3"||n.code==="07121000-3"?(t.showBseItemExt[t.curLotItem.itemIndex]={isShowBseRealEstateProps:!0},n.code.substring(0,2)==="04"&&(t.curLotItem.isRequiredLocation=!0)):n.code.substring(0,2)==="05"||n.code==="07122000-0"||n.code==="07222000-1"?t.showBseItemExt[t.curLotItem.itemIndex]={isJointPropertyComplexProps:!0}:n.code.substring(0,2)==="06"||n.code==="07123000-7"||n.code==="07223000-8"?t.showBseItemExt[t.curLotItem.itemIndex]={isLandProps:!0}:n.code.substring(0,2)==="34"||n.code==="07126000-8"||n.code==="07226000-9"?t.showBseItemExt[t.curLotItem.itemIndex]={isVehicleProps:!0}:t.showBseItemExt=[];t.data.lots[0].items.forEach(function(n){n.itemExt&&n.itemExt.basicSellItemExt||(n.itemExt={basicSellItemExt:{}});n.itemIndex===t.curLotItem.itemIndex&&(t.showBseItemExt[t.curLotItem.itemIndex]?(n.itemExt.basicSellItemExt.property||(n.itemExt.basicSellItemExt.property={realEstateProps:null,jointPropertyComplexProps:null,vehicleProps:null,landProp:null}),t.showBseItemExt[t.curLotItem.itemIndex].isShowBseRealEstateProps?(n.itemExt.basicSellItemExt.itemType="realEstate",n.itemExt.basicSellItemExt.property.jointPropertyComplexProps=null,n.itemExt.basicSellItemExt.property.vehicleProps=null,n.itemExt.basicSellItemExt.property.landProps=null,n.unit=t.availableUnits.find(n=>n.code==="MTK")):t.showBseItemExt[t.curLotItem.itemIndex].isJointPropertyComplexProps?(n.itemExt.basicSellItemExt.itemType="jointPropertyComplex",n.itemExt.basicSellItemExt.property.realEstateProps=null,n.itemExt.basicSellItemExt.property.vehicleProps=null,n.itemExt.basicSellItemExt.property.landProps=null,n.unit=t.availableUnits.find(n=>n.code==="MTK")):t.showBseItemExt[t.curLotItem.itemIndex].isVehicleProps?(n.itemExt.basicSellItemExt.itemType="vehicle",n.itemExt.basicSellItemExt.property.realEstateProps=null,n.itemExt.basicSellItemExt.property.jointPropertyComplexProps=null,n.itemExt.basicSellItemExt.property.landProps=null,n.unit=t.availableUnits.find(n=>n.code==="H87")):t.showBseItemExt[t.curLotItem.itemIndex].isLandProps&&(n.itemExt.basicSellItemExt.itemType="land",n.itemExt.basicSellItemExt.property.realEstateProps=null,n.itemExt.basicSellItemExt.property.jointPropertyComplexProps=null,n.itemExt.basicSellItemExt.property.vehicleProps=null,n.unit=t.availableUnits.find(n=>n.code==="HAR"))):(n.itemExt.basicSellItemExt.property=null,n.itemExt.basicSellItemExt.itemType="otherProperty"))})}function et(n){var i=new Date,t=i.getDay();return n?ot(t):st(t)-1}function ot(n){switch(n){case 5:return 3;case 6:return 2;default:return 1}}function st(n){switch(n){case 6:return 10;case 4:case 5:return 11;default:return 9}}function v(n){n.auctionPeriod.minDays=n.isCarriageLease||n.isBankrupt&&n.tenderAttempts==="3"?0:n.isAppraisalInsider?et(n.tenderNewExt.insiderExt.isSpoilQuickly):n.isLandLease?30:7}function y(n){t.timberDiameters=t.timberDiametersAll.filter(function(t){return n.timberSortmentItem&&t.relatedTo.includes(n.timberSortmentItem.code)?t:n.itemExt&&n.itemExt.forestItemExt&&t.relatedTo.includes(n.itemExt.forestItemExt.timberSortment.code)?t:void 0})}function p(n){t.timberClasses=t.timberClassesAll.filter(function(t){return n.timberSortmentItem&&t.relatedTo.includes(n.timberSortmentItem.code)?t:n.itemExt&&n.itemExt.forestItemExt&&t.relatedTo.includes(n.itemExt.forestItemExt.timberSortment.code)?t:void 0})}var l,w;t.vm={addLotItem:b,removeLot:k,removeLotItem:d,removeItemAdditionalClassification:g,findOrganization:it,valueAddedTaxIncludedChanged:rt,isQaUrl:!1,addBankAccount:nt,removeBankAccount:tt,canBePerishable:!1};l=t.vm;t.isValidMinMaxNum=!0;t.regexUrl=n.regex.url;t.numberRegex=n.regex.number;t.dateRegex=n.regex.date;t.cadastralNumberRegex=n.regex.cadastralNumber;t.emailAddress=n.emailAddress;t.lotIdTimberEnglishRegex=n.regex.lotIdTimberEnglish;t.isShowDiscount=!1;t.isDiscountValueValid=!0;t.isDisabledRegistry=!1;t.classificationMinRank=3;t.showBseItemExt=[];e.getDataFromCache("maxGuaranteeForLandSell",i.getMaxGuaranteeForLandSell).then(function(n){t.maxGuaranteeForLandSell=n.data});t.removeItem=function(n,t){n.splice(t,1)};t.addNewItem=function(n){n.push({})};t.addNewRestriction=function(n){n.push({carriageRestrictionExcs:[]})};t.classificationType="";t.isFormOpened=0;t.curLotItem={};t.openClassificationModalNew=function(n,i){if(!t.data.lots[0].items[n]){abp.notify.error("Спочатку додайте позицію закупівля до першого лоту");return}t.classificationType=i;var r=t.data.lots[0];t.curLotItem=r.items[n];t.curLotItem.itemIndex=n;++t.isFormOpened};t.customChoose=function(){return t.curLotItem?!0:(abp.notify.error("Спочатку додайте позицію закупівля до першого лоту"),!1)};t.openAddClassificationModal=function(n,i,r){t.itemInd=n;t.addClassificatorInd=i;t.additionalScheme=r;$("#addClassification").modal("toggle")};t.cadastralNumberChange=function(n){if(n&&n.cadastralNumber){for(var i=n.cadastralNumber.replace(/[^0-9]/g,""),i=[i.slice(0,10),":",i.slice(10,12),":",i.slice(12,15),":",i.slice(15,19)].join("");i.slice(-1)===":";)i=i.slice(0,-1);(i.length===10||i.length===13||i.length===17)&&(i+=":");n.cadastralNumber=i;n.isCadastralNumberValid=t.cadastralNumberRegex.test(n.cadastralNumber)}};t.durationRequired=function(n){if(n.years||n.months||n.days){n.isNotRequired=!0;var t=Number(n.years),i=Number(n.months),r=Number(n.days);n.isLessThanOne=t>0||i>0||r>0?!1:!0}else n.isNotRequired=!1,n.isLessThanOne=!1};t.isSchemeValid=function(n){var i,r;if(t.data.tenderNewExt.landLeaseExt.bankAccount&&t.data.tenderNewExt.landLeaseExt.bankAccount.accountIdentification.length>0)if(i=t.data.tenderNewExt.landLeaseExt.bankAccount.accountIdentification,n!=undefined){if(i[n].scheme==="unknown")return!1}else for(r=0;r<i.length;r++)if(i[r].scheme==="unknown")return!1;return!0};t.getRequired=function(n){return n?!1:!0};t.onValueChanged=function(n,i,r=false,u=false){var f=t.data.lots[0].value.amount;if(!f||!n.amount||t.data.isPropLeaseByZU||t.data.isPropInsiderByZU||t.data.isLegitimatePropertyLease&&i==="guarantee"){n.isValid=!0;n.isCorrect=!0;return}var c=h("min",i),l=h("max",i),e=o(f*c/100)>t.maxGuaranteeForLandSell?t.maxGuaranteeForLandSell:o(f*c/100),s=t.data.isLandRentalOrSellEnglish&&i==="guarantee"?t.maxGuaranteeForLandSell:o(f*l/100);n.isValid=e&&s?n.amount>=e&&n.amount<=s:!0;t.data.isBankrupt&&i==="guarantee"&&(n.isCorrect=n.isValid,n.isValid=!0);(r||u)&&i==="minStep"&&(n.amountPer=o(n.amount/f*100));n.showMinStepWarningForLandRentalOrSellEnglish=t.data.isLandRentalOrSellEnglish&&i==="minStep"&&n.amount>e&&n.amount<=s};t.onMinStepPercentageChanged=function(n){var i=t.data.lots[0].value.amount;if(i){n.amount=o(i*n.amountPer/100);t.onValueChanged(n,"minStep")}};t.valueAmountChanged=function(n){if(n?(t.data.isLegitimatePropertyLeasePriorityEnglish&&t.changeCurrentTenantGuaranteeFee(t.data.tenderNewExt.legitimateDataExt,n),(t.data.isLandLease||t.data.isCarriageLease||t.data.isLegitimatePropertyLeasePriorityEnglish||t.data.isLegitimatePropertyLeaseEnglish||t.data.isLandRentalOrSellEnglish||t.data.isBasicSellEnglish)&&c(n,t.data.lots[0].minimalStep,"minStep"),(t.data.isLandLease||t.data.isBankrupt||t.data.isGeoNadra||t.data.isForestSale||t.data.isTimberEnglish||t.data.isTimberMultiAwards||t.data.isLandRentalOrSellEnglish||t.data.isBasicSellOnly||t.data.isAlienationEnglish)&&c(n,t.data.guarantee,"guarantee")):t.data.isAppraisalInsider||(t.data.lots[0].minimalStep.amountPer=null),!t.data.isCbd3Dutch&&!t.data.isAppraisalInsider)t.onValueChanged(t.data.lots[0].minimalStep,"minStep");t.onValueChanged(t.data.guarantee,"guarantee")};t.classificationChanged=function(n){if(n&&n.code&&(t.data.isGeoNadra=n.code==="14212420-0"),t.data.minGuaranteePercentage=null,t.data.maxGuaranteePercentage=null,t.data.isGeoNadra){var i=t.data.lots[0].value.amount;i&&c(i,t.data.guarantee,"guarantee");u.userMessageWithCloseBtn("warning","Зверніть увагу!",'При виборі класифікатору "Надра 14212420-0", розмір гарантійного внеску складає 20% від стартової вартості лоту і розраховується автоматично!')}t.onValueChanged(t.data.guarantee,"guarantee");t.data.isBasicSellOnly&&ut();t.data.isBasicSell&&ft(n)};t.setTenderPeriodEndLimited=function(n){var i,r;t.data.auctionPeriod.startDate&&t.data.isPropLease&&t.data.isNewOrDraft&&(i=new Date(t.data.auctionPeriod.startDate),i.setDate(i.getDate()-(t.data.tenderPeriodLimit?4:1)),localStorage.isProdMode&&(localStorage.isProdMode==="true"||localStorage.isProdMode===!0)&&(r=i.getDay(),!t.data.tenderPeriodLimit||r!==0&&r!==6||i.setDate(i.getDate()-(r===0?2:1))),t.data.tenderPeriod.endDate=i);!!t.data.tenderPeriodLimit&&n&&u.userMessageWithCloseBtn("warning","",'При виборі даного параметру період прийому пропозицій завершиться за 3 робочих дні до дати проведення аукціону. Застосовувати тільки для аукціонів, для яких така вимога передбачена Законом України "Про оренду державного та комунального майна"')};t.setSpoilQuickly=function(){t.isDataMoreThanMinimal(t.data.auctionPeriod)};t.setPerishable=function(n){t.data.tenderNewExt.cbd3DataExt.isPerishable&&(t.data.auctionPeriod=null,n.$setValidity("min",!0),n.$setValidity("max",!0),n.$setValidity("date",!0));t.data.auctionPeriodRequired=!t.data.tenderNewExt.cbd3DataExt.isPerishable};t.isDataMoreThanMinimal=function(n){var r,u,i;if(v(t.data),t.data.isNewOrDraft?(i=Date.parse(n.startDate),r=new Date,r.setDate(r.getDate()+n.minDays),n.isGood=i>r):n.isGood=!0,t.data.isPropLease&&t.setTenderPeriodEndLimited(),t.data.cbd===3&&n){if(t.data.procurementMethodTypeOriginal!==t.data.procurementMethodType){t.data.auctionPeriod.isGood=!0;return}u=new Date(t.data.auctionPeriodMinStartDate);i=new Date(n.startDate);n.isGood=i>=u?!0:!1}};t.tenderAttemptsChange=function(n){t.data&&((t.data.isTimberEnglish||t.data.isTimberMultiAwards||t.data.isLegitimatePropertyLease)&&n==="1"?(t.data.tenderNewExt.cbd3DataExt.discount&&(t.data.tenderNewExt.cbd3DataExt.discount.discountValue=null,t.data.tenderNewExt.cbd3DataExt.discount.percentDiscount=null,t.data.tenderNewExt.cbd3DataExt.discount.isDiscount=null,t.isDiscountRequired=!1),t.data.previousAuctionId=null):(t.data.isTimberEnglish||t.data.isTimberMultiAwards||t.data.isLegitimatePropertyLease)&&n>1&&!t.data.tenderNewExt.cbd3DataExt.discount&&(t.data.tenderNewExt.cbd3DataExt.discount={isDiscount:!1}),t.data.isLandLease)&&(n==="1"?(t.data.minNumberOfQualifiedBidsOneDisabled=!0,t.data.minNumberOfQualifiedBidsIsValid=t.data.minNumberOfQualifiedBids==1?!1:!0):(t.data.minNumberOfQualifiedBidsIsValid=!0,t.data.minNumberOfQualifiedBidsOneDisabled=!1))};t.setTwoNumberOfQualifiedBids=function(){t.data.minNumberOfQualifiedBidsIsValid=!0};t.$watch("data.procurementMethodType",function(n){var o,s,r;if(n){if(t.state=t.data.state,t.data.minGuaranteePercentage=null,t.data.maxGuaranteePercentage=null,t.data.minStepPercentage=null,t.data.maxStepPercentage=null,t.data.isNewOrDraft=t.data.status==="draft"||t.data.status==="newAuction",t.data.basicSellRectificationPeriod=t.data.isRectificationPeriod&&t.data.isBasicSell,t.data.minNumberOfQualifiedBidsOneDisabled=!1,t.data.minNumberOfQualifiedBidsIsValid=!0,t.isStreetRequired=t.data.isLandRentalOrSellEnglish||t.data.isBasicSell?!1:!0,t.data.procurementMethodTypeOriginal=u.getMainProcurementMethodType(t.data.procurementMethodType),t.data.auctionPeriodRequired=!0,o=t.data.procurementMethodTypeOriginal,t.data.tenderNewExt&&t.data.tenderNewExt.cbd3DataExt&&t.data.tenderNewExt.cbd3DataExt.bankAccountsNew&&(t.data.tenderNewExt.cbd3DataExt.bankAccountsNew=u.getBankAccountsNewLLE(t.data.tenderNewExt.cbd3DataExt.bankAccountsNew),t.unitController.mainBankAccountsEntity=t.data.tenderNewExt.cbd3DataExt.bankAccountsNew),t.data.lots[0].items.forEach(function(n){n.address=n.deliveryAddress;n.location=n.deliveryLocation;n.isAddressRequired=t.data.isBasicSell&&n.classification?!n.classification.isOptional:!0}),t.data.isLegitimatePropertyLease&&(l.isCreateOrganization=!0,o="LL-"+t.data.tenderNewExt.legitimateDataExt.registryObject.objectType,t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner.contactPoint.name&&(t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner.contactPoint.fio=u.parseName(t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner.contactPoint.name)),t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity.contactPoint.name&&(t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity.contactPoint.fio=u.parseName(t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity.contactPoint.name)),t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant&&t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint&&t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint.name&&(t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint.fio=u.parseName(t.data.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint.name))),s=function(){t.data.lots[0].items.forEach(function(n){n.classification&&t.classificationChanged(n.classification)})},e.getDataFromCache("getAllAuctionUnits",i.getAllAuctionUnits,o).then(function(n){t.availableUnits=n.data.units;s(t.availableUnits)}),t.data.isAppraisalInsider&&(t.isDutchStepsValid(t.data.tenderNewExt.insiderExt),t.data.tenderNewExt.insiderExt.bankAccount||(t.data.tenderNewExt.insiderExt.bankAccount=u.getBankAccountModel())),t.data.isLandLease&&(t.data.lots[0].items.forEach(function(n){var t=n.additionalClassifications.find(n=>n.scheme==="cadastralNumber");t&&(n.cadastralNumber=t.id,n.additionalClassifications=n.additionalClassifications.filter(n=>n.scheme!=="cadastralNumber"),n.additionalClassifications.forEach(function(n){n.code=n.id}))}),t.data.tenderNewExt.landLeaseExt&&t.data.tenderNewExt.landLeaseExt.lotHolder&&t.data.tenderNewExt.landLeaseExt.lotHolder.contactPoint&&t.data.tenderNewExt.landLeaseExt.lotHolder.contactPoint.name&&(t.data.tenderNewExt.landLeaseExt.lotHolder.contactPoint.fio=u.parseName(t.data.tenderNewExt.landLeaseExt.lotHolder.contactPoint.name)),t.data.tenderNewExt.landLeaseExt.bankAccount||(t.data.tenderNewExt.landLeaseExt.bankAccount=u.getBankAccountModel())),t.data.isPropLease&&localStorage.isLandLord&&(localStorage.isLandLord==="true"||localStorage.isLandLord===!0)&&(t.data.minNumberOfQualifiedBidsTwoDisabled=!0),t.data.isAlienationEnglish&&(t.data.minNumberOfQualifiedBidsOneDisabled=!0,t.data.minNumberOfQualifiedBidsTwoDisabled=!0),t.contactPointMainType=t.data.isLandLease?3:1,t.vm.isQaUrl=u.isEnvironmentQA(),t.data.auctionPeriod&&(v(t.data),t.data.auctionPeriod.isGood||t.isDataMoreThanMinimal(t.data.auctionPeriod)),t.data.isPropLease&&t.data.lots[0].items.forEach(function(n){if(n.contractPeriod)t.onChangePeriod(n.contractPeriod)}),t.data.isCarriageLease){if(t.carriageMovableValues=u.getCarriageMovableValues(),t.carriageAuctionTypes=u.getCarriageAuctionTypes(),t.carriagePoligonSigns=u.getCarriagePoligonSigns(),t.carriagePoligonSignTypes=u.getCarriagePoligonSignTypes(),r=t.data.lots[0].items[0].itemExt.carriageItemExt,r.descriptionExt&&(t.data.lots[0].items[0].description=r.descriptionExt),r.carriageSubmissionPeriod)t.onChangePeriod(r.carriageSubmissionPeriod);if(r.electronicApplicationPeriod)t.onChangePeriod(r.electronicApplicationPeriod);r.movableWarehouse&&(r.movableWarehouseItem=t.carriageMovableValues.filter(n=>n.name===r.movableWarehouse)[0]);r.auctionType&&(r.auctionTypeItem=t.carriageAuctionTypes.filter(n=>n.name===r.auctionType)[0]);r.carriageRestrictions&&r.carriageRestrictions.forEach(function(n){n.load&&(n.loadItem=t.carriagePoligonSigns.filter(t=>t.name===n.load)[0]);n.unload&&(n.unloadItem=t.carriagePoligonSigns.filter(t=>t.name===n.unload)[0]);n.carriageRestrictionExcs&&n.carriageRestrictionExcs.forEach(function(n){n.type&&(n.typeItem=t.carriagePoligonSignTypes.filter(t=>t.name===n.type)[0]);n.exc&&(n.excItem=t.carriagePoligonSigns.filter(t=>t.name===n.exc)[0])})})}(t.data.isForestSale||t.data.isTimberEnglish||t.data.isTimberMultiAwards)&&(t.forestQualityClasses=u.getForestQualityClasses(),t.forestYears=u.getForestYears(),t.forestYears=t.forestYears.filter(n=>n.name),t.forestQuarters=u.getForestQuarters(),t.forestQuarters=t.forestQuarters.filter(n=>n.name),e.getDataFromCache("getAllSpecies",i.getAllSpecies).then(function(n){t.forestSpecies=n.data;t.data.lots[0].items.forEach(function(n){var i=n.itemExt.forestItemExt;i.species&&(i.speciesItem=t.forestSpecies.filter(n=>n.id===i.species.id)[0]);i.productionDate&&(i.productionDateItem=t.forestYears.filter(n=>n.name===i.productionDate)[0]);i.quarter&&(i.quarterItem=t.forestQuarters.filter(n=>n.name===i.quarter)[0])})}),e.getDataFromCache("getAllSortments",i.getAllSortments).then(function(n){t.timberSortmets=n.data;t.data.lots[0].items.forEach(function(n){var i=n.itemExt.forestItemExt;n.itemExt.forestItemExt.timberSortment&&(i.timberSortmentItem=t.timberSortmets.filter(t=>t.id===n.itemExt.forestItemExt.timberSortment.id)[0])})}),e.getDataFromCache("getAllStorages",i.getAllStorages).then(function(n){t.timberStorages=n.data;t.data.lots[0].items.forEach(function(n){var i=n.itemExt.forestItemExt;n.itemExt.forestItemExt.timberStorage&&(i.timberStorageItem=t.timberStorages.filter(t=>t.id===n.itemExt.forestItemExt.timberStorage.id)[0])})}),e.getDataFromCache("getAllDiameters",i.getAllDiameters).then(function(n){t.timberDiametersAll=n.data;t.timberDiameters=n.data;t.data.lots[0].items.forEach(function(n){var i=n.itemExt.forestItemExt;n.itemExt.forestItemExt.timberDiameter&&(i.timberDiameterItem=t.timberDiametersAll.filter(t=>t.id===n.itemExt.forestItemExt.timberDiameter.id)[0]);i.timberDiameterItem&&y(n)})}),e.getDataFromCache("getAllClasses",i.getAllClasses).then(function(n){t.timberClassesAll=n.data;t.timberClasses=n.data;t.data.lots[0].items.forEach(function(n){var i=n.itemExt.forestItemExt;n.itemExt.forestItemExt.timberClass&&(i.timberClassItem=t.timberClassesAll.filter(t=>t.id===n.itemExt.forestItemExt.timberClass.id)[0]);i.timberClassItem&&p(n)})}));t.data.isLegitimatePropertyLease&&(w(t.data),t.unitController.accountTypes=f.getAccountTypes(),t.data.lots[0].items.forEach(function(n){n.property=n.itemExt.legitimateItemExt.property}),t.isDisabledRegistry=t.isDisabledRegistryCurrentTenant=!t.data.apiId&&t.data.tenderAttempts==="1",t.leaseRulesShowData={forTender:!0},t.data.isLegitimatePropertyLeasePriorityEnglish&&!t.data.tenderNewExt.legitimateDataExt.registryObject.relatedOrganizations.currentTenant&&(t.isDisabledRegistryCurrentTenant=!1));(t.data.isPropLeaseByZU||t.data.isPropInsiderByZU)&&t.$watch("data.tenderAttempts",function(n){n*1==1&&$("#modalWarningLegitimate").modal("toggle")});t.data.isLandRentalOrSellEnglish&&(t.unitController.accountTypes=f.getAccountTypesForLandRental(),t.unitController.isLandRentalOrSellEnglish=!0);t.data.isLegitimatePropertyLease&&t.data.lots[0].items.forEach(function(n){(t.data.tenderNewExt.legitimateDataExt.registryObject.isVehicle||t.data.tenderNewExt.legitimateDataExt.registryObject.isOtherProperty)&&(n.isAddressRequired=!1)});t.data.isBasicSell&&(a(),t.classificationMinRank=0,t.unitController.accountTypes=f.getAccountTypesForBasicSell(),t.unitController.isBasicSell=!0,t.data.isBasicSellOnly&&t.data.tenderNewExt.cbd3DataExt.isPerishable&&t.setPerishable(t.formname.auctionPerioddate));a();t.showData.unitController=t.unitController}});t.isDutchStepsValid=function(n){n.isDutchStepsValid=n.dutchSteps&&(n.dutchSteps<1||n.dutchSteps>99)?!1:!0};t.onChangePeriod=function(n){if(!n.startDate||!n.endDate){n.invalid=!1;return}var t=Date.parse(n.startDate),i=Date.parse(n.endDate),r=new Date((new Date).setHours(0,0,0,0));n.invalid=!(r<=t&&t<i)};t.changeDropDownValue=function(n,t,i){n[t]=n[i].name};t.changeDropDownValueId=function(n,t,i){n[t]=n[i].id};t.changeDiameter=function(n){n&&(n.diameter=diameter)};t.changeLenght=function(n){n.minLength&&n.maxLength&&(t.isValidMinMaxNum=n.minLength<n.maxLength)};t.changeDropDownAssortment=function(n){t.changeDropDownValueId(n,"timberSortmentId","timberSortmentItem");y(n);p(n);n.timberDiameterItem=null;n.timberDiameter=null;n.timberClass=null;n.timberClassItem=null};t.changeDropDownStorage=function(n,t){t&&(n.storage=t.code)};t.changeDropDownDiameter=function(n,t){t&&(n.diameter=t.code)};t.changeDropDownClass=function(n,t){t&&(n.class=t.code)};t.changeItemDescription=function(n){n.itemExt&&n.itemExt.carriageItemExt&&(n.carriageItemExt.descriptionExt=n.description)};t.setUnitValue=function(n){n.itemExt.forestItemExt.unitValue||(n.itemExt.forestItemExt.unitValue={currency:"UAH"});n.itemExt.forestItemExt.unitValue.amount=n.itemExt.forestItemExt.itemPrice};t.changeDiscount=function(){t.isDiscountRequired=t.data.tenderNewExt.cbd3DataExt.discount.discountValue.amount>0||t.data.tenderNewExt.cbd3DataExt.discount.percentDiscount>0?!0:!1;t.data.tenderNewExt.cbd3DataExt.discount.discountValue.amount>0&&t.data.tenderNewExt.cbd3DataExt.discount.percentDiscount>0?(t.data.tenderNewExt.cbd3DataExt.discount.isDiscount=!0,t.data.tenderNewExt.cbd3DataExt.discount.discountValue&&!t.data.tenderNewExt.cbd3DataExt.discount.discountValue.currency&&(t.data.tenderNewExt.cbd3DataExt.discount.discountValue.currency="UAH")):t.data.tenderNewExt.cbd3DataExt.discount.isDiscount=!1;t.isDiscountValueValid=t.data.lots[0].value&&t.data.lots[0].value.amount&&t.data.tenderNewExt.cbd3DataExt.discount&&t.data.tenderNewExt.cbd3DataExt.discount.discountValue&&t.data.tenderNewExt.cbd3DataExt.discount.discountValue.amount?t.data.lots[0].value.amount<t.data.tenderNewExt.cbd3DataExt.discount.discountValue.amount:!0};t.changeShowDiscount=function(){t.isShowDiscount=t.isShowDiscount?!1:!0};t.ownershipTypes=f.getOwnershipTypes();t.intendedUseRestrictionMethods=f.getIntendedUseRestrictionMethods();t.valuePeriods=f.getValuePeriod();t.requiredAccountsLeaseHolder=!1;t.requiredAccountsBalanceHolder=!1;t.isFilledBalanceHolder=!0;t.isFilledLeaseHolder=!0;w=function(){e.getDataFromCache("getIntendedUseTypes",i.getIntendedUseTypes,t.data.tenderNewExt.legitimateDataExt.registryObject.objectType).then(function(n){t.intendedUseTypes=n.data})};t.getLocationOsmUrl=function(n){var t=parseFloat(n.deliveryLocation.longitude)-.001,i=parseFloat(n.deliveryLocation.longitude)+.001,r=parseFloat(n.deliveryLocation.latitude)+.001,u=parseFloat(n.deliveryLocation.latitude)-.001;return"https://www.openstreetmap.org/export/embed.html?bbox="+t+"%2C"+r+"%2C"+i+"%2C"+u+"&layer=mapnik&marker="+n.deliveryLocation.latitude+"%2C"+n.deliveryLocation.longitude};t.registrationStates=f.getRegistrationStates();t.setSharingPercent=function(n){var i=t.unitController.hasBankAccountType(t.unitController.mainBankAccountsEntity,n.accountType),u=t.data.tenderNewExt.cbd3DataExt.bankAccountsNew.filter(t=>t.accountType===n.accountType),r=0;u.forEach(function(n){r+=n.percent});n.accountType==="lease"&&(i.bankAccounts>1&&(t.unitController.isHolderPercentValid.isLeaseValid=r>100?!1:i.bankAccounts===2?!0:r<100?!1:!0),i.bankAccounts===1&&(n.percent=n.holderType=null));n.accountType==="advancePayment"&&(i.bankAccounts>1&&n.accountType==="advancePayment"&&(t.unitController.isHolderPercentValid.isAdvancePaymentValid=r>100?!1:i.bankAccounts===2?!0:r<100?!1:!0),i.bankAccounts===1&&(n.percent=n.holderType=null))};t.setHolderType=function(n){if(t.data.tenderNewExt.cbd3DataExt.bankAccountsNew.find(t=>t.accountType===n.accountType&&t.holderType===n.holderType&&t.index!==n.index))for(var i=0,r=t.data.tenderNewExt.cbd3DataExt.bankAccountsNew.length;i<r;i++)t.data.tenderNewExt.cbd3DataExt.bankAccountsNew[i].index!==n.index&&t.data.tenderNewExt.cbd3DataExt.bankAccountsNew[i].accountType===n.accountType&&(t.data.tenderNewExt.cbd3DataExt.bankAccountsNew[i].holderType=null)};t.unitController={mainBankAccountsEntity:null,hasBankAccountType:u.hasBankAccountType,removeBankAccount:u.removeBankAccount,setSharingPercent:t.setSharingPercent,setHolderType:t.setHolderType,isAdvancedBankAccounts:null,accountTypes:null,showAdvance:null,showLease:null,redAdvanceNotify:null,redLeaseNotify:null,isHolderPercentRequired:{isLeaseRequired:!1,isAdvancePaymentRequired:!1},isHolderPercentValid:{isLeaseValid:!0,isAdvancePaymentValid:!0},isLandRentalOrSellEnglish:!1,isBasicSell:!1};t.setCurrentTenantGuaranteeFeeCoef=function(n,i){n.CurrentTenantGuaranteeFeeCoef=n.valuePeriod==="month"?.5:1;i&&t.changeCurrentTenantGuaranteeFee(n,i)};t.changeCurrentTenantGuaranteeFee=function(n,t){n.currentTenantGuaranteeFee||(n.currentTenantGuaranteeFee={});n.currentTenantGuaranteeFee.amount=t*n.CurrentTenantGuaranteeFeeCoef};t.goToMyRegObject=function(){u.goToProfileSection("/app/Main/views/profile/myRegistry.cshtml")};t.leaseTypes=f.getLeaseTypes();t.sellTypes=f.getSellTypes();t.handlePatternFloatNumber4Decimal=function(){var i=n.regex.floatNumber4Decimal;return{test:function(n){return t.data.isBasicSell||t.data.isTimberEnglish||t.data.isTimberMultiAwards?i.test(n):!0}}}()}]}});angular.module("app").directive("cancelAwardReasons",function(){return{restrict:"AE",templateUrl:"/app/Main/views/tenders/cancelAwardReasons.cshtml",scope:{causes:"=",reasonData:"=",cbd:"=",singleCause:"="},controller:["$scope","$timeout",function(n,t){n.otherReason="";var i;n.compileReason=function(t){n.singleCause&&n.causes.items.forEach(function(n){n.code!==t&&(n.check=!1)});n.reasonData.reasonDisqualify="";n.causes&&n.causes.items&&n.causes.items.forEach(function(t){t.check&&(n.reasonData.reasonDisqualify+=(n.reasonData.reasonDisqualify?", ":"")+(t.code?t.code:t.name))});n.otherReason!=""&&(n.reasonData.reasonDisqualify+=(n.reasonData.reasonDisqualify?", ":"")+n.otherReason);n.reasonData.isCheckReason=n.reasonData.reasonDisqualify!=""};n.compileReason();n.otherReasonChanged=function(){n.reasonData.isCheckReason=!1;t.cancel(i);i=t(function(){n.compileReason()},1e3)}}]}});angular.module("app").controller("classificationCtrl",["$scope","ngTableParams","$filter","abp.services.etender.reference","$timeout",function(n,t,i,r,u){var e,f="openCPV";$("body").on("show.bs.modal","#classification",function(){f=n.classificationType;switch(f){case"openCAV":n.scheme="CAV-PS";break;case"openCPV":n.scheme="CPV";break;case"openMPC":n.scheme="MPC"}n.searchstring="";n.tableParams.reload()});n.search=function(t){n.searchstring=t;u.cancel(e);e=u(function(){n.tableParams.reload()},1e3)};n.changeSelection=function(t){for(var u=n.tableParams.data,i=0;i<u.length;i+=1)u[i].$selected=!1;f!=="openMPC"&&t.rank>3||f==="openMPC"&&(t.classifierScheme==="MPC"&&t.hasChildren===!1||t.code.length>3&&t.code.charAt(3)!=="0")?(t.$selected=!0,t.classifierScheme==="MPC"?(abp.ui.setBusy(".modal-body"),r.getMPClassification(t.code).success(function(t){n.selectedData=t;abp.ui.clearBusy(".modal-body")})):n.selectedData=t):(t.$selected=!1,n.selectedData=null)};n.loadOrDeleteChildItems=function(t){var u=n,e,i;switch(f){case"openCAV":e=r.getCavClassification(n.procurementMethodType,t.id);break;case"openCPV":e=r.getClassificationRef(n.procurementMethodType,t.id);break;case"openMPC":e=r.getMPClassifications(t.id)}if(i=0,u.tableParams.data.some(function(n,r){if(n.id===t.id)return i=r,!0}),t.isOpen){while(u.tableParams.data[i+1]!=undefined&&u.tableParams.data[i+1].code!="08100000-7"&&u.tableParams.data[i+1].rank>t.rank)u.tableParams.data.splice(i+1,1);t.isOpen=!1;return}abp.ui.setBusy(".modal-body");e.success(function(n){t.isOpen=!0;for(var r=n.length;r--;r>=0)u.tableParams.data.splice(i+1,0,n[r]);abp.ui.clearBusy(".modal-body")})};n.choose=function(){var t,r,u,i;if(n.data.lots&&n.data.lots.length>0){if(r=n.data.lots[0],!r.items[0]){abp.notify.error("Спочатку додайте позицію закупівля до першого лоту");return}if(!n.selectedData)return;t={id:n.selectedData.id,code:n.selectedData.code,discription:n.selectedData.discription,scheme:n.scheme,isOptional:n.selectedData.isOptional};u=n.data.lots[n.lotInd];u.items[n.itemIndex].classification=t}else{if(!n.data.items[0]){abp.notify.error("Спочатку додайте позицію закупівля до першого лоту");return}if(!n.selectedData)return;t={id:n.selectedData.id,code:n.selectedData.code,discription:n.selectedData.discription,scheme:n.scheme==="MPC"?n.selectedData.classifierScheme:n.scheme,isOptional:n.selectedData.isOptional};i=n.data.items[n.itemIndex];i.classification=t;i.additionalClassifications=[];n.selectedData.additionalClassifier&&(n.selectedData.additionalClassifier.id=n.selectedData.additionalClassifier.code,n.selectedData.additionalClassifier.discription=n.selectedData.additionalClassifier.description,i.additionalClassifications.push(n.selectedData.additionalClassifier))}};n.tableParams=new t({page:1,count:999},{counts:[],getData:function(t,i){var e={Page:i.page(),PageSize:i.count(),SearchIdentifier:n.searchstring,OrderColumn:"",OrderDirection:""},u={};if(abp.setting.get("IsHideOnAuction").toLowerCase()==="true")if(n.searchstring&&n.searchstring.length>0){switch(f){case"openCAV":u=r.getSearchCavClassifications(n.searchstring,n.procurementMethodType);break;case"openCPV":u=r.getSearchClassificationsRef(n.searchstring,n.procurementMethodType);break;case"openMPC":u=r.getSearchMPClassifications(n.searchstring)}abp.ui.setBusy(".modal-body");u.success(function(n){abp.ui.clearBusy(".modal-body");i.total(n.length);t.resolve(n)})}else{switch(f){case"openCAV":u=r.getCavClassification(n.procurementMethodType);break;case"openCPV":u=r.getClassificationRef(n.procurementMethodType);break;case"openMPC":u=r.getMPClassifications("")}abp.ui.setBusy(".modal-body");u.success(function(n){abp.ui.clearBusy(".modal-body");i.total(n.length);t.resolve(n)})}else u=r.getCurrentCpvRef(e),abp.ui.setBusy(".modal-body"),u.success(function(n){abp.ui.clearBusy(".modal-body");i.total(n.countAllRecords);t.resolve(n.cpv)})}})}]);angular.module("app").directive("classificationDirective",function(){return{restrict:"AE",templateUrl:"/App/Main/views/tenders/classificationDirective.cshtml",scope:{classificationType:"=",classificationEntity:"=",lotItem:"=",searchItems:"=",procurementMethodType:"=",isFormOpened:"=",customChoose:"=",onChooseChange:"=",minRank:"=",formName:"=",fakeChoose:"=",isAdditional:"=",hideChild:"=",hideSearchForm:"="},controller:["$scope","ngTableParams","abp.services.etender.reference","$timeout","cachingService",function(n,t,i,r,u){n.$watch("isFormOpened",function(t){if(t){switch(n.classificationType){case"openCAV":n.scheme="CAV-PS";break;case"openCPV":n.scheme="CPV";break;case"openCAVNew":n.scheme="CAV"}n.searchstring="";n.tableParamsClass.reload();n.selectedData=null}});n.tableParamsClass=new t({page:1,count:999},{counts:[],getData:function(t,r){var f;if(n.classificationType){if(n.searchstring&&n.searchstring.length>0)switch(n.classificationType){case"openCAV":f=i.getSearchCavClassifications(n.searchstring,n.procurementMethodType);break;case"openCPV":f=i.getSearchClassificationsRef(n.searchstring,n.procurementMethodType);break;case"openCAVNew":f=i.getSearchCavNewClassifications(n.searchstring,n.procurementMethodType)}else switch(n.classificationType){case"openCAV":f=u.getDataFromCache("getCavClassification",i.getCavClassification,n.procurementMethodType);break;case"openCPV":f=u.getDataFromCache("getClassificationRef",i.getClassificationRef,n.procurementMethodType);break;case"openCAVNew":f=u.getDataFromCache("getCavClassification",i.getCavClassification,n.procurementMethodType)}abp.ui.setBusy(".modal-body");f.then(function(n){abp.ui.clearBusy(".modal-body");r.total(n.data.length);t.resolve(n.data)})}}});var f;n.search=function(t){n.searchstring=t;r.cancel(f);f=r(function(){n.tableParamsClass.reload()},1e3)};n.changeSelection=function(t){for(var r=n.tableParamsClass.data,i=0;i<r.length;i+=1)r[i].$selected=!1;t.rank>n.minRank?(t.$selected=!0,n.selectedData=t):(t.$selected=!1,n.selectedData=null)};n.loadOrDeleteChildItems=function(t){var r,e,f;if(t.hasChildren&&!n.hideChild){r=n;switch(n.classificationType){case"openCAV":e=u.getDataFromCache("getCavClassification",i.getCavClassification,n.procurementMethodType,t.id);break;case"openCPV":e=u.getDataFromCache("getClassificationRef",i.getClassificationRef,n.procurementMethodType,t.id);break;case"openCAVNew":e=u.getDataFromCache("getCavClassification",i.getCavClassification,n.procurementMethodType,t.id)}if(f=0,r.tableParamsClass.data.some(function(n,i){if(n.id===t.id)return f=i,!0}),t.isOpen){while(r.tableParamsClass.data[f+1]!=undefined&&r.tableParamsClass.data[f+1].code!="08100000-7"&&r.tableParamsClass.data[f+1].rank>t.rank)r.tableParamsClass.data.splice(f+1,1);t.isOpen=!1;return}abp.ui.setBusy(".modal-body");e.then(function(n){t.isOpen=!0;for(var i=n.data.length;i--;i>=0)r.tableParamsClass.data.splice(f+1,0,n.data[i]);abp.ui.clearBusy(".modal-body")})}};n.choose=function(){var t;if((!n.customChoose||n.customChoose())&&n.selectedData){if(t={id:n.selectedData.id,code:n.selectedData.code,discription:n.selectedData.discription,description:n.selectedData.discription,scheme:n.scheme,isOptional:n.selectedData.isOptional},n.fakeChoose){abp.notify.warn("Для налаштування підписки увійдіть у свій кабінет або зареєструйтеся.");return}if(n.lotItem?(n.isAdditional?n.lotItem.additionalClassifications.push(t):(n.lotItem.classification=t,n.lotItem.isAddressRequired=!t.isOptional),n.formName&&(n.formName.$dirty=!0)):n.classificationEntity?(n.classificationEntity=t,n.formName&&(n.formName.$dirty=!0)):n.searchItems&&(n.scheme==="CPV"?n.searchItems.cpvItems.push(t):n.searchItems.cavItems.push(t)),n.onChooseChange)n.onChooseChange(t)}}}]}});angular.module("app").directive("contactPoint",function(){return{restrict:"AE",templateUrl:"/App/Main/views/tenders/contactPoint.cshtml",scope:{formName:"=",data:"=",mainProcedureType:"="},controller:["$scope","$rootScope","abp.services.etender.user",function(n,t,i){function r(){i.getContacts(n.mainProcedureType).success(function(t){var i=1;t.forEach(function(n){switch(n.contactPointType){case 1:n.description="Дані користувача";break;case 2:n.description="Контактна особа";break;case 3:n.description="Керівник";break;case 4:n.description="Додаткова контактна особа "+i;++i}});n.contactTable=t})}n.getContactPointInfo=function(t){abp.ui.setBusy();var r=i.getContactPointInfo({contactPointType:t.contactPointType,mainProcedureType:n.mainProcedureType,additContactId:t.additContactId});r.success(function(t){abp.ui.clearBusy();t.phone&&(t.phone=t.phone);n.contactPointData=t})};n.changeContactPoint=function(t){n.data.contactPointType=t.contactPointType;n.data.additContactId=t.additContactId;n.getContactPointInfo(t)};n.$watch("mainProcedureType",function(n){n&&r()})}]}});angular.module("app").directive("contractTerms",function(){return{restrict:"AE",templateUrl:"/App/Main/views/tenders/contractTerms.cshtml",scope:{formname:"=",data:"="},controller:["$scope","$rootScope",function(n,t){n.showDataLease={taxHolidays:!1,escalationClauses:!1};n.isPercentageMoreThanOne=function(n){n.escalationStepPercentage>=0&&n.escalationStepPercentage<1?(n.isEscalationStepPercentageValid=!0,this.formname.$setValidity("isEscalationStepPercentage",!0)):(n.isEscalationStepPercentageValid=!1,this.formname.$setValidity("isEscalationStepPercentage",!1))};n.$watch("data.tenderNewExt.leaseTerms",function(t){t&&(t.taxHolidays&&t.taxHolidays.length>0?n.showDataLease.taxHolidays=!0:t.taxHolidays=[{}],t.escalationClauses&&t.escalationClauses.length>0?(n.isPercentageMoreThanOne(t.escalationClauses[0]),n.showDataLease.escalationClauses=!0):t.escalationClauses=[{}],t.taxHolidays[0].showConditions=1,t.escalationClauses[0].showConditions=1)});n.$on("contractTermsLoad",function(t,i){i.isPropLease&&(n.showDataLease.taxHolidays===!1&&(i.tenderNewExt.leaseTerms.taxHolidays=[]),n.showDataLease.escalationClauses===!1&&(i.tenderNewExt.leaseTerms.escalationClauses=[]))});n.numberRegex=t.regex.number;n.floatNumberRegex=t.regex.floatNumber}]}}),function(){angular.module("app").controller("app.views.createAuction",["$scope","$rootScope","$location","$q","abp.services.etender.tender","abp.services.etender.reference","abp.services.etender.address","tenderHelperService","$stateParams","$anchorScroll",function(n,t,i,r,u,f,e,o,s,h){function y(t,i){var f={id:t,isForSecondaryAuctionCreation:!!i||null,display:!1},r;abp.ui.setBusy();r=u.getTender(f);r.success(function(t){console.log("tenderDetailes",t);n.createTenderModel=t;n.createTenderModel.auctionPeriod={};n.createTenderModel.awardPeriod={};n.createTenderModel.enquiryPeriod={};n.createTenderModel.tenderPeriod={};n.createTenderModel.rectificationPeriod={};n.createTenderModel.status="newAuction";n.createTenderModel.bids=null;n.createTenderModel.cancellations=null;n.createTenderModel.creationTime=null;n.createTenderModel.dateModified=null;n.createTenderModel.documents=null;n.createTenderModel.errorMessage=null;n.createTenderModel.exportVainAttemptCount=null;n.createTenderModel.lastExportTime=null;n.createTenderModel.lastModificationTime=null;n.createTenderModel.questions=null;n.createTenderModel.url=null;n.createTenderModel.organisation=null;n.createTenderModel.lots[0].awards=null;n.createTenderModel.isExported=null;n.createTenderModel.isActiveQualificationStatus=null;n.createTenderModel.isActiveAwardedStatus=null;n.createTenderModel.hasPendingAwards=null;n.createTenderModel.isActiveAwardedHasContractAnnexeStatus=null;n.createTenderModel.isFavorite=null;n.createTenderModel.isEnquiryPeriod=null;n.createTenderModel.apiId=null;n.createTenderModel.tenderNewExt&&n.createTenderModel.tenderNewExt.cbd3DataExt&&(n.createTenderModel.tenderNewExt.cbd3DataExt.qualificationPeriod=null,n.createTenderModel.tenderNewExt.cbd3DataExt.questionPeriod=null,n.createTenderModel.isBasicSell||n.createTenderModel.isLegitimatePropertyLease||(n.createTenderModel.tenderNewExt.cbd3DataExt.valueAddedTaxCharged=null));o.correctItemClassifications(n.createTenderModel.lots[0].items);h();abp.ui.clearBusy()}).error(function(n){console.log(n);abp.ui.clearBusy()})}function p(t,i){var r=u.getAuctionEmpty(t,i);r.success(function(t){if(n.createTenderModel=t,o.correctItemClassifications(n.createTenderModel.lots[0].items),console.log("getAuctionEmpty",n.createTenderModel),i&&["bankrupt1","bankrupt2","bankrupt3","bankrupt4"].includes(i))switch(i){case"bankrupt1":n.createTenderModel.tenderAttempts="1";break;case"bankrupt2":case"bankrupt3":n.createTenderModel.tenderAttempts="2";break;case"bankrupt4":n.createTenderModel.tenderAttempts="3"}n.createTenderModel.isLegitimatePropertyLease&&n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations&&(n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner&&n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner.contactPoint&&n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner.contactPoint.name&&(n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner.contactPoint.fio=o.parseName(n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.propertyOwner.contactPoint.name)),n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity&&n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity.contactPoint&&n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity.contactPoint.name&&(n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity.contactPoint.fio=o.parseName(n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.sellingEntity.contactPoint.name)),n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant&&n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint&&n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint.name&&(n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint.fio=o.parseName(n.createTenderModel.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint.name)))}).error(function(){abp.ui.clearBusy();history.back()})}var c,l,a,v;t.env.isProductionMode||o.sweetAlert({title:"Ви створюєте аукціон в режимі навчання!",text:"При переході в реальний режим - дані не переносяться!",type:"warning",showCancelButton:!0,confirmButtonColor:"#2fa4e7",confirmButtonText:"Відміна",cancelButtonText:"Продовжити",closeOnConfirm:!0},function(){parent.history.back()},"alertCancelButton");c=o.getCreateAuctionParams(s.typeOrId,s.objId);c.aId?y(c.aId,c.isForSecondaryAuctionCreation):p(c.procedureType,c.type);l={landLeaseExt:{lotHolder:{addressN:!0,contactPoint:!0}}};n.showData=l;n.canFullUpdate=!0;a={taxHolidays:!1,escalationClauses:!1};n.showDataLease=a;n.isAllAddressesGood=!0;n.createDraft=function(){n.submit(!0)};n.submit=function(t){var i,f,u,e,r;for(abp.ui.setBusy(),i=n.createTenderModel,i.NotExport=t,n.isAllAddressesGood=!0,n.$broadcast("contractTermsLoad",i),i.isPropLease&&!i.tenderPeriodLimit&&(i.tenderPeriod.endDate=null),f=0;f<i.lots.length;f+=1)for(u=i.lots[f],i.isCbd3Dutch||i.isAppraisalInsider||(u.minimalStep.valueAddedTaxIncluded=u.value.valueAddedTaxIncluded),e=0;e<u.items.length;e++)r=u.items[e],o.revertItemClassification(r),i.isCarriageLease&&r.itemExt&&(r.itemExt.carriageItemExt.carriageSubmissionPeriod.startDate=new Date(r.itemExt.carriageItemExt.carriageSubmissionPeriod.startDate),r.itemExt.carriageItemExt.carriageSubmissionPeriod.endDate=new Date(r.itemExt.carriageItemExt.carriageSubmissionPeriod.endDate),r.contractPeriod=r.itemExt.carriageItemExt.carriageSubmissionPeriod),r.deliveryAddress&&!r.deliveryAddress.region&&(r.deliveryAddress=null);return i.tenderNewExt&&i.tenderNewExt.landLeaseExt&&i.tenderNewExt.landLeaseExt.lotHolder&&i.tenderNewExt.landLeaseExt.lotHolder.contactPoint&&i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.fio.firstName&&(i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.name=o.joinName(i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.fio),i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.url!=null&&i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.url.length>5&&i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.url.substring(0,5)=="https"&&(i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.url=i.tenderNewExt.landLeaseExt.lotHolder.contactPoint.url.replace("https","http"))),i.tenderNewExt&&i.tenderNewExt.cbd3DataExt&&(i.tenderNewExt.cbd3DataExt.bankAccountsNew=o.setBankAccountsNewLLE(i.tenderNewExt.cbd3DataExt.bankAccountsNew)),i.isCbd3Dutch&&(u.minimalStep=null),i.auctionPeriod&&!i.auctionPeriod.startDate&&(i.auctionPeriod=null),v()};v=function(){var r=n.createTenderModel.NotExport,t;return n.createTenderModel.lots[0].items.forEach(function(t){t.deliveryAddress=t.address&&!t.address.region?null:t.address;t.deliveryLocation=t.location;n.createTenderModel.isLegitimatePropertyLease&&(t.itemExt.legitimateItemExt.property=t.property)}),t=u.createAuction(n.createTenderModel),console.log("createTenderModel",n.createTenderModel),t.success(function(t){abp.notify.success(r?"Чернетку створено!":"Аукціон створено!");n.createTenderModel.isLandLease||n.createTenderModel.isAppraisalInsider?i.path("/landLeaseDetails/"+t):i.path("/tenderDetailes/"+t)}).error(function(n){console.log(n);abp.ui.clearBusy()}),t};n.isAllDataGood=function(t){var r,u,f,i;if(!t||(!t.auctionPeriod||!t.auctionPeriod.startDate)&&t.auctionPeriodRequired||(o.isEnvironmentQA()?!1:t.auctionPeriod&&t.auctionPeriod.startDate&&!t.auctionPeriod.isGood)||t.lots.length===0||t.tenderNewExt&&t.tenderNewExt.insiderExt&&!t.tenderNewExt.insiderExt.isDutchStepsValid||!t.isCbd3Dutch&&!t.isAppraisalInsider&&!t.lots[0].minimalStep.isValid)return!1;for(r=0;r<t.lots.length;r+=1){if(u=t.lots[r],u.items.length===0)return!1;for(f=0;f<u.items.length;f+=1)if((i=u.items[f],!t.isLandRentalOrSellEnglish&&(!i.classification||!i.classification.code))||i.itemExt&&i.itemExt.carriageItemExt&&(i.itemExt.carriageItemExt.carriageSubmissionPeriod&&i.itemExt.carriageItemExt.carriageSubmissionPeriod.invalid||i.itemExt.carriageItemExt.electronicApplicationPeriod&&i.itemExt.carriageItemExt.electronicApplicationPeriod.invalid)||t.isPropLease&&i.contractPeriod&&i.contractPeriod.invalid||t.isLandRentalOrSellEnglish&&i.additionalClassifications.length<2)return!1}return t.lots[0].value&&t.tenderNewExt&&t.tenderNewExt.cbd3DataExt&&t.tenderNewExt.cbd3DataExt.discount&&t.tenderNewExt.cbd3DataExt.discount.discountValue&&t.tenderNewExt.cbd3DataExt.discount.discountValue.amount&&t.tenderAttempts>1&&t.lots[0].value.amount>=t.tenderNewExt.cbd3DataExt.discount.discountValue.amount?!1:(t.isLegitimatePropertyLease||t.isLandRentalOrSellEnglish)&&n.showData&&n.showData.unitController&&(n.showData.unitController.redAdvanceNotify&&n.showData.unitController.showAdvance||n.showData.unitController.redLeaseNotify&&n.showData.unitController.showLease||!n.showData.unitController.isAdvancedBankAccounts)?!1:t.minNumberOfQualifiedBidsIsValid&&t.guarantee.isValid}}])}(),function(){"use strict";function n(n,t){function r(){abp.ui.setBusy("#btnInvite");var r={codeEdrpouOrINN:i.code,emailAddress:i.email,tenderId:n.tId};t.notifyInvitationForTender(r).success(function(){i.code="";i.email="";abp.ui.clearBusy("#btnInvite");abp.notify.success("Запрошення надіслано")}).error(function(n){abp.ui.clearBusy("#btnInvite");var t=n.validationErrors.map(function(n){return n.message}).join(";");abp.notify.error(t)})}n.vm={code:"",email:"",invite:r};var i=n.vm}angular.module("app").controller("invitation",n);n.$inject=["$scope","abp.services.etender.emailNotification"]}(),function(){angular.module("app").controller("app.views.landLeaseDetails",["$rootScope","$scope","$window","abp.services.etender.tender","$stateParams","$location","$timeout","abp.services.etender.bid","abp.services.etender.award","Upload","documentService","ngTableParams","abp.services.etender.emails","abp.services.etender.emailNotification","datesHelper","FileUploader","abp.services.etender.document","tenderHelperService","lookupService",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k){function ut(n){t.detailes.curCancellations=null;n?(t.detailes.curCancellations=n.cancellations,t.cancelTenderModel.cancelFor={lotId:n.id,title:"Лот "+n.title,type:"lot"}):(t.detailes.curCancellations=t.detailes.cancellations,t.cancelTenderModel.cancelFor={lotId:null,title:"Аукціон",type:"tender"});t.cancelTenderModel.relatedLot=null;t.cancelTenderModel.reason=null;t.reasonTypes&&t.reasonTypes.length>0&&t.isShowReasonType()&&(t.cancelTenderModel.reasonType=t.reasonTypes[0].id)}function et(n){var i=null;return n&&angular.forEach(t.detailes.lots,function(t){t.id==n&&(i=t)}),i}function ht(){b.confirmAndActivate(t.detailes,ct,r)}function ct(){abp.ui.setBusy();r.activate({id:t.detailes.id}).success(function(){abp.ui.clearBusy();t.reloadDetailes()}).error(function(){abp.ui.clearBusy()})}function lt(){confirm("Ви дійсно бажаєте видалити чернетку?")&&(abp.ui.setBusy(),r.deleteDraft({id:t.detailes.id}).success(function(){abp.ui.clearBusy();abp.notify.success("Чернетку видалено");f.path("/profile")}).error(function(){abp.ui.clearBusy();abp.notify.error("Oops. Something went wrong...")}))}function at(){t.detailes.hasClarificationDocs?ot():abp.notify.warn(t.state.clarificationsTooltip.title)}function ot(){f.path("updateAuction/"+t.tId)}function vt(){f.path("createAuction/"+t.tId)}function yt(n){switch(n){case"pending":return"Запит оформляється";case"active":return"Скасування активоване";default:return"-"}}function pt(){return!1}function wt(){return c.checkIfDocExist("clarifications",t.detailes.documents)||!0}function bt(){return c.checkIfDocExist("x_dgfAssetFamiliarization",t.detailes.documents)}function kt(n,i){var r={documentTypes:[],firstDocumentType:{}};c.getDocumentTypes(r,"AuctionDocument",n,i,null,"clarifications").then(function(){r.firstDocumentType&&r.firstDocumentType.title&&t.state&&(t.state.clarificationsTitle=r.firstDocumentType.title,t.state.clarificationsTooltip={title:'Для редагування необхідно завантажити документ "'+t.state.clarificationsTitle+'"'})})}var tt=1,it=[],d,g,nt,rt,ft,st;t.cancellationTypesContainer={documentTypes:[],firstDocumentType:{}};t.fileUploadObj={};d=t.uploader=new p({});d.filters.push({name:"imageFilter",fn:function(n){var t="|"+n.type.slice(n.type.lastIndexOf("/")+1)+"|";return"|jpg|png|jpeg|bmp|gif|".indexOf(t)!==-1}});d.onWhenAddingFileFailed=function(n,t,i){console.info("onWhenAddingFileFailed",n,t,i)};d.onAfterAddingFile=function(n){console.info("onAfterAddingFile",n)};d.onAfterAddingAll=function(n){console.info("onAfterAddingAll",n)};d.onBeforeUploadItem=function(n){it.push(n);tt=it.length;formData=[{tenderId:t.tId,control:"illustrate",documentType:t.vm.selectedDocTypeObj.id,index:tt}];Array.prototype.push.apply(n.formData,formData);console.info("onBeforeUploadItem",n)};d.onProgressItem=function(n,t){console.info("onProgressItem",n,t)};d.onProgressAll=function(n){console.info("onProgressAll",n)};d.onSuccessItem=function(n,t,i,r){console.info("onSuccessItem",n,t,i,r)};d.onErrorItem=function(n,t,i,r){console.info("onErrorItem",n,t,i,r)};d.onCancelItem=function(n,t,i,r){console.info("onCancelItem",n,t,i,r)};d.onCompleteItem=function(n,t,i,r){console.info("onCompleteItem",n,t,i,r)};d.onCompleteAll=function(){console.info("onCompleteAll")};console.info("uploader",d);t.tId=u.tId;t.enableAddDocument=!0;t.cancelDocDescription="";t.statusDescription={};t.cancelTenderModel={};t.upload=[];t.showHideUploadIllustrationPanel=!1;t.userTenantId=localStorage.userTenantId||null;t.cancelTenderModel={reason:"",cancelFor:null};g={id:t.tId,userName:localStorage.username||sessionStorage.username||null,display:!0};t.canModifyDocuments=function(){if(!t.detailes||!t.detailes.isEdit)return!1;if(t.detailes.status==="draft")return!0;if(t.detailes.status==="active.tendering"||t.detailes.status==="active.rectification"||t.detailes.status==="active.enquiry"){var n=new Date,i=new Date(t.detailes.enquiryPeriod.endDate);return i>n}return!1};t.canModifyCancellationDocuments=function(){return!t.detailes||!t.detailes.isEdit||!t.detailes.curCancellations||t.detailes.curCancellations.length===0?!1:!0};t.cancelTenderDocumentToAdd={};t.setFileCancelTender=function(n){var i,r;t.files=n.files;i=n.attributes["data-description"]?n.attributes["data-description"].nodeValue:null;t.cancelTenderDocumentToAdd=n.files;r=t.cancellationTypesContainer.firstDocumentType.id;t.addFiles(n.files,t.detailes.cancellations[0],i,r)};nt=function(n){var i=!0,t;if(n.awardDocuments&&n.awardDocuments.length>0)for(t=0;t<n.awardDocuments.length;t++)if(n.awardDocuments[t].url==null){i=!1;break}return i};rt=function(){var r,n,i;if(t.detailes.status=="active.qualification"){for(n=[],i=0;i<t.detailes.lots.length;i+=1)n=n.concat(t.detailes.lots[i].awards);n.forEach(function(n){n.status=="pending"&&n.suppliers.length>0&&(r=n.suppliers[0].name)});t.detailes.bids.forEach(function(n){n.canLoadFiles=n.tenderers&&r&&n.tenderers[0].name==r?!0:!1})}};t.getTenderProcedureType=function(){return n.source("LandLease")};t.reasonTypes=[{id:"cancelled",title:"Торги були відмінені"},{id:"unsuccessful",title:"Торги не відбулися"}];t.reasonCancellationVariant=null;t.reasonCancellationVariants=[{reasonText:"Згідно рішення виконавчої дирекції Замовника"},{reasonText:"Порушення порядку публікації оголошення"}];t.reasonCancellationVariantsChange=function(n){t.reasonCancellationVariant=n};t.getReasonTypeNameById=function(n){var i=null;return n&&angular.forEach(t.reasonTypes,function(t){t.id==n&&(i=t.title)}),i};t.isShowReasonType=function(){return t.detailes&&pt()?!0:!1};t.isAllCancelDocumentsExported=function(n){var t=n.documents;return n.allRequireDocsUploaded&&(t.length>0&&!t.some(n=>!n.isExported)||!1)};t.openModalCancelTender=function(n){ut(n);t.cancellationTypesContainer.firstDocumentType.id||c.getDocumentTypes(t.cancellationTypesContainer,"CancellationDocument",t.detailes.procurementMethodType);$("#modalCancelTender").modal("show")};t.reloadDetailes=function(){t.documentsToAdd=null;var n=r.getTender(g);t.userIsProductionMode=localStorage.isProdMode==="true";abp.ui.setBusy();n.success(function(n){var a,e,o,s,v,y,h,f,l,u,p;if(console.log("tenderDetailes",n),n.lots[0].items.forEach(function(n){var t=n.additionalClassifications.find(n=>n.scheme==="cadastralNumber");t&&(n.cadastralNumber=t.id,n.additionalClassifications=n.additionalClassifications.filter(n=>n.scheme!=="cadastralNumber"))}),t.hasSign=i.signDiff,t.detailes=n,t.state=n.state,t.detailes.procurementMethodTypeOriginal=b.getMainProcurementMethodType(t.detailes.procurementMethodType),n.isEdit&&kt(t.detailes.procurementMethodTypeOriginal,t.detailes.status),t.cancellationStatus=function(n){return n.length>0&&n[0].status==="active"?"Торги відмінено":"-----"},n.tenderNewExt.landLeaseExt?(t.detailes.additionalDataExt=n.tenderNewExt.landLeaseExt,t.questionType=3):(t.questionType=4,n.tenderNewExt.insiderExt&&(t.detailes.additionalDataExt=n.tenderNewExt.insiderExt)),b.setTenderDescriptionByStatus(t.detailes),t.detailes.prozorroDocLink=b.getProzorroDocumentLink(t.detailes.status,t.detailes.tenderId,t.detailes.cbd),t.cancelTenderModel&&t.cancelTenderModel.cancelFor&&ut(et(t.cancelTenderModel.cancelFor.lotId)),t.detailes.documents!=null&&t.detailes.documents instanceof Array&&(a=t.detailes.documents,a.forEach(function(n){n.title=="sign.p7s"&&(t.detailes.isSignatureFileExist=!0)}),t.detailes.documents=[],t.detailes.documents=c.sortListOfDocs(a)),t.detailes.cancellations.forEach(function(n){switch(n.status){case"pending":n.statusDesc="Запит оформляється";case"active":n.statusDesc="Скасування активоване";default:n.statusDesc="-"}(t.detailes.isSubsoilEnglish||t.detailes.isSubsoilDutch)&&(n.reasonDesc=k.getSubsoilCancelationReasonTitle(n.reason))}),localStorage.getAwards=="true"&&(t.detailes.hasPendingAwards=!1),abp.ui.clearBusy(),t.detailes.hasClarificationDocs=wt(),t.detailes.hasAssetFamiliarizationDocs=bt(),angular.forEach(t.detailes.bids,function(n){n.documents=c.sortListOfDocs(n.documents)}),n.bids!=null&&n.bids.length>0){for(t.isBidExist=!0,e=0;e<n.bids.length;e++)if((!n.bids[e].documents||n.bids[e].documents.length==0)&&(n.bids[e].documents=c.sortListOfDocs(n.bids[e].documents),n.bids[e].isMyBid))for(o=0;o<n.bids[e].documents.length;o++)s=n.bids[e].documents[o].url,s&&s!=""&&(v={fileUri:s},y=r.getFilePath(v),function(n,i,r){r.success(function(r){t.detailes.bids[n].documents[i].url=r})}(e,o,y))}else t.isBidExist=!1;for(h=0;h<t.detailes.lots.length;h+=1){for(f=t.detailes.lots[h],f.documents=[],f.items.forEach(function(n){var i=n.documents;n.documents=[];n.documents=c.sortListOfDocs(i);t.detailes.isCarriageLease&&n.itemExt&&n.itemExt.carriageItemExt&&(n.auctionTypeDesc=b.getCarriageAuctionTypeDesc(parseInt(n.itemExt.carriageItemExt.auctionType,10)),n.itemExt.carriageItemExt.descriptionExt&&(n.description=n.itemExt.carriageItemExt.descriptionExt))}),l=0;l<f.awards.length;l+=1)u=f.awards[l],u.supplier=u.suppliers&&u.suppliers.length>0?u.suppliers[0]:null,u.contractButtonTitle=k.getContractButtonTitle(t.detailes,u),(u.status=="active"||u.status=="cancel")&&(f.awardId=u.id,f.activeAward=u,f.hasActiveAward=!0,f.winner={name:u.suppliers&&u.suppliers.length>0?u.suppliers[0].name:null},f.isExportedAwardDocs=nt(f.activeAward),u.contracts.length>0&&(f.hasContract=!0,f.contractStatusKey=u.contracts[0].status)),u.status=="pending"&&u.cancelAwardId&&(f.awardIsReadyForAnnuled=!0,f.pendingAward=u,f.readyForAnulledAward=u,f.winner={name:u&&u.suppliers&&u.suppliers.length>0?u.suppliers[0].name:null},f.readyForAnulledAward.awardDocuments=f.readyForAnulledAward.awardDocuments.filter(function(n){return n.documentTypeId!=1}),f.isExportedAwardDocs=nt(f.readyForAnulledAward)),u.status!="pending"||u.cancelAwardId||(f.pendingAward=u,f.winner={name:u.suppliers&&u.suppliers.length>0?u.suppliers[0].name:null},f.isExportedAwardDocs=nt(f.pendingAward)),u.bidDocuments&&u.bidDocuments.length>0&&(u.bidDocuments=c.sortListOfDocs(u.bidDocuments)),u.awardDocuments&&u.awardDocuments.length>0&&(u.awardDocuments=c.sortListOfDocs(u.awardDocuments));t.statusClarify=f.hasActiveAward&&t.detailes.status=="active.awarded"?"[Переможця визначено]":null;p=t.detailes.additionalDataExt&&t.detailes.additionalDataExt.dutchSteps?t.detailes.additionalDataExt.dutchSteps:t.detailes.tenderNewExt.cbd3DataExt.dutchStep.dutchStepQuantity;f.minimalValue=f.value.amount-b.roundForTwo(f.value.amount/100)*p}t.detailes.isOwn&&b.checkIsExportedSuccessfully(t.detailes)&&b.startExportReloadTimer(t.reloadDetailes,t.detailes,r.getTenderNewExportInfo);rt();t.isPossibleCancelTender=b.isPossibleCancelTender(t.detailes);t.tenderAttemptsDescription=b.getTenderAttemptsText(t.detailes.tenderAttempts)}).error(function(n){console.log(n);abp.ui.clearBusy();f.path("/")})};t.isHasContractProformaDoc=function(){var i,n;if(t.detailes.isAppraisalInsider)return!0;if(!t.detailes||!t.detailes.documents||t.detailes.documents.length<1)return!1;for(i=t.detailes.documents,n=0;n<i.length;++n)if(i[n].documentType&&i[n].documentType.type==="contractProforma")return!0;return!1};ft=r.getCadastralNumberUrl();ft.success(function(n){t.cadastralNumberUrl=n});localStorage.getAwards=="true"?(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>2&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},3e3)}(),localStorage.getAwards="false",t.detailes&&(t.detailes.hasPendingAwards=!1)):(t.reloadDetailes(),localStorage.getAwards="false");t.cancelTender=function(){var n=r.cancelTender(g);n.success(function(n){console.log(n);abp.notify.success("Торги с id "+g.id+" видалено!");f.path("/profile")})};t.beginCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();t.cancelTenderModel.reason=t.reasonCancellationVariant;r.cancellationBegin(t.cancelTenderModel).success(function(n){var i=et(t.cancelTenderModel.relatedLot);t.cancelTenderModel.relatedLot=null;n&&(i?i.cancellations=n:t.detailes.cancellations=n);abp.ui.clearBusy();t.openModalCancelTender(i)}).error(function(){abp.ui.clearBusy()})};t.endCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();r.cancellationEnd({cancellationId:t.detailes.curCancellations[0].id}).success(function(n){n?(t.cancelTenderModel.relatedLot?abp.notify.success("Лот скасовано!"):abp.notify.success("Торги скасовано!"),abp.ui.clearBusy(),t.reloadDetailes()):t.cancelTenderModel.relatedLot?abp.notify.error("Вибачте, лот не може бути скасований саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування лота через деякий час."):abp.notify.error("Вибачте, торги не можуть бути скасовані саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування через деякий час.");abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})};t.includeInvitation=function(){return n.env.isAuthorized?!t.detailes||!t.detailes.isEdit?!1:t.detailes.status=="active.enquiry"||t.detailes.status=="active.tendering"?!0:!1:!1};t.switchInvitation=function(){$("#invitation").modal("toggle");$("#modalGroupsInvitation").modal("toggle")};t.tableParams=new l({page:1,count:10,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(n,i){var r={maxResultCount:900,skipCount:(i.page()-1)*i.count(),sorting:"CreationTime DESC"},u=a.getEmailGroups(r);abp.ui.setBusy(".panel-default:first");u.success(function(r){abp.ui.clearBusy(".panel-default");i.total(r.countAllRecords);r.items.forEach(function(n){n.checked=!1});t.groups=r.items;n.resolve(r.items)}).error(function(){console.log("ERROR!!! Can't get groups!")})}});t.inviteGroups=function(){var n=[],i;t.groups&&(t.groups.forEach(function(t){t.checked&&n.push(t.id)}),i=v.notifyInvitationForTender({groupIds:n,tenderId:t.tId}),i.success(function(){abp.notify.success("Повідомлення группам надіслано!");$("#modalGroupsInvitation").modal("toggle")}))};t.isGroupCheked=function(){if(!t.groups)return!1;var n=!1;return t.groups.forEach(function(t){t.checked&&(n=!0)}),n};t.showSignModal=function(){var n={};n.type="auction";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.vm={getCancellationStatusDesc:yt,checkBeforUpdate:at,goToUpdate:ot,activate:ht,deleteDraft:lt,copyAuction:vt,selectedDocTypeObj:null};t.getDisplayTenderAttemptsText=function(n){var t="";switch(n){case"1":t="Лот виставляється вперше";break;case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"10":t="Лот виставляється повторно";break;default:t=""}return t};st=b.getCarriagePoligonSignsWithCode();t.getCarriagePoligonSign=function(n){var t=st.filter(t=>t.code===n)[0];if(t)return t.name};t.getAuctionTypeDesc=function(n){return b.getCarriageAuctionTypeDesc(parseInt(n,10))};t.toggleFavorite=function(n){b.toggleFavorite(n,r.createFavorite,r.deleteFavorite)}}])}();angular.module("app").controller("modalCancelAwardCtrl",["$rootScope","$scope","$timeout","abp.services.etender.award","Upload","documentService",function(n,t,i,r,u,f){var e,o,s;t.fileUploadObj={tenderId:"",documentId:"",awardId:""};t.cancelAwardModel={description:null};$("body").on("show.bs.modal","#modalCancelAward",function(n){var u=n.relatedTarget.attributes["data-lotid"].nodeValue,i,r;for(e=null,o.ca.activeAward={},o.ca.readyForAnulledAward={},i=0;i<t.detailes.lots.length;i+=1)if(r=t.detailes.lots[i],r.id==u){e=r;o.ca.activeAward=e.activeAward;o.ca.readyForAnulledAward=e.readyForAnulledAward;o.ca.isExportedDocs=e.isExportedAwardDocs;break}});t.cancelAward=function(){var n={awardId:e.awardId,tenderId:t.tId,description:t.cancelAwardModel.description},u;t.vm&&t.vm.ca&&t.vm.ca.activeAward&&t.vm.ca.activeAward.status=="active"&&(n.isReturnToQualification=!0);u=r.cancelAward(n);u.success(function(n){console.log("CancelAwardData:",n)});i(function(){location.reload()},5e3);t.reloadDetailes()};t.downloadCancelDocs=function(n){s(n,e.readyForAnulledAward.id).then(function(){abp.notify.success("Документи завантажено!");t.reloadDetailes()})};t.disqualifyAward=function(){var n,i;return $("#disqualifyAward").replaceWith('<p class="text-danger">Зачекайте синхронізації з ЦБД. Натисніть F5 через 30 секунд<\/p>'),n={awardId:e.readyForAnulledAward.cancelAwardId,tenderId:t.tId},o.ca.causeTitles&&(n.title=o.ca.causeTitles.join(", ")),i=r.disqualifyAward(n),i.success(function(){abp.notify.success("Кандидата дискваліфіковано!"),function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>5&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},2e3)}()}),i};t.vm.ca={activeAward:{},readyForAnulledAward:{},isExportedDocs:!1,causes:["Відмовився від підписання договору","Не надав документи по ст.17"]};o=t.vm;s=function(n,i){return n.forEach(function(n){(t.fileUploadObj={tenderId:t.tId,documentId:"",awardId:i},f.validateDocName(n.name)!=0)&&(t.upload=u.upload({url:"./api/files/upload",fields:{myObj:t.fileUploadObj},file:n}),t.upload.progress(function(n){console.log("progress: "+parseInt(100*n.loaded/n.total)+"% file :"+n.config.file.name)}).success(function(n,t,i,r){console.log("file "+r.file.name+"is uploaded successfully. Response: "+n);abp.notify.success("Файл додано!")}))}),t.upload}}]),function(){angular.module("app").controller("modalDisqualifyAward3Ctrl",["$rootScope","$scope","$q","$location","abp.services.etender.award","$stateParams","Upload","$timeout","lookupService","documentService","abp.services.etender.settings","abp.services.etender.document",function(n,t,i,r,u,f,e,o,s,h){function v(){var n=t.mode==="disqualification"?t.award.bidDocuments.filter(n=>n.documentTypeNew&&(n.documentTypeNew.type==="rejectionProtocol"||n.documentTypeNew.type==="act"||n.documentTypeNew.type==="digitalSignature")):t.award.bidDocuments.filter(n=>n.documentTypeNew&&(n.documentTypeNew.type==="rejectionProtocol"||n.documentTypeNew.type==="digitalSignature")),i=[];return n.forEach(t=>{t.isDeleted||t.documentTypeNew.type!=="digitalSignature"?i.push(t):t.relatedDocumentApiId&&(t.relatedDocument=n.find(n=>n.id===t.relatedDocumentApiId),t.relatedDocument&&i.push(t))}),n=angular.copy(i)}function y(n){return h.checkIfDocExist("act",n,!0,!0)}function p(n){return h.checkIfDocExist("auctionProtocol",n,!0,!0)}function w(n){return h.checkIfDocExist("rejectionProtocol",n,!0,!0)}var l,a,c;t.doctype="AwardDocument";t.data={selectedDocTypeAward:null};t.reasonData={reasonDisqualify:"",isCheckReason:!0};t.lists={};t.tId=f.tId;l={tenderId:f.tId||f.aId};t.activateFromLocalStorage=!1;a=["bankrupt.insider","dgfBankrupt"];t.vm.ga={eligible:!1,qualified:!1,causes:{items:[]},isHasAuctionProtocol:!1,isHasRejectionProtocol:!1,isHasDisqulificationActDoc:!1};c=t.vm;t.reloadAward=function(){t.awardGetAward(t.lotId,t.curAwardId,t.statusVariant);t.reloadDetailes()};t.awardGetAward=function(n,i,r){var f=u.getAward({lotId:n,awardId:i,statusVariant:r});return f.success(function(n){t.award=n;t.award.bidDocuments&&(t.award.awardDisqualifyDocuments=v(),t.award.bidDocuments=h.sortListOfDocs(t.award.bidDocuments),t.vm.ga.isHasAuctionProtocol=p(t.award.bidDocuments),t.vm.ga.isHasRejectionProtocol=w(t.award.bidDocuments),t.vm.ga.isHasDisqulificationActDoc=y(t.award.bidDocuments));t.isExportedAwardDocs=t.award.isExportedAwardDocs}),f};$("body").on("show.bs.modal","#modalDisqualifyAward3",function(i){t.procType="tender";t.mode="disqualification";t.isBankrupt=!1;t.isCanLoadOwnerDocument=!1;i.relatedTarget.attributes["data-mode"]&&(t.mode=i.relatedTarget.attributes["data-mode"].nodeValue);i.relatedTarget.attributes["data-procType"]&&(t.procType=i.relatedTarget.attributes["data-procType"].nodeValue);i.relatedTarget.attributes["data-procurementMethodType"]&&(t.procurementMethodType=i.relatedTarget.attributes["data-procurementMethodType"].nodeValue,t.isBankrupt=a.includes(t.procurementMethodType),t.isLegitimatePropertyLease=t.procurementMethodType.match(n.fastTypesRegex.legitimatePropertyLease),t.isBasicSell=t.procurementMethodType.match(n.fastTypesRegex.basicSell)||t.procurementMethodType.match(n.fastTypesRegex.alienation)||t.procurementMethodType.match(n.fastTypesRegex.commercialSellEnglish)||t.procurementMethodType.match(n.fastTypesRegex.commercialSellDutch),t.isLandRentalOrSellEnglish=t.procurementMethodType.match(n.fastTypesRegex.landRentalEnglish)||t.procurementMethodType.match(n.fastTypesRegex.landSellEnglish)||t.procurementMethodType.match(n.fastTypesRegex.landSellPriorityEnglish),t.isBankrupt&&(t.isCanLoadOwnerDocument=abp.auth.hasPermission("IsCanLoadOwnerDocument")));t.lotId=i.relatedTarget.attributes["data-lotid"].nodeValue;t.curAwardId=i.relatedTarget.attributes["data-awardid"].nodeValue;t.statusVariant="";i.relatedTarget.attributes["data-statusVariant"]!==undefined&&(t.statusVariant=i.relatedTarget.attributes["data-statusVariant"].nodeValue);i.relatedTarget.attributes["data-tenderStatus"]&&(t.tenderStatus=i.relatedTarget.attributes["data-tenderStatus"].nodeValue);t.awardGetAward(t.lotId,t.curAwardId,t.statusVariant);t.isBasicSell?s.getTerminationReasons(c.ga.causes,"basicSellTerminationReason"):t.isLegitimatePropertyLease?s.getTerminationReasons(c.ga.causes,"legitimatePropertyLeaseTerminationReason"):t.isLandRentalOrSellEnglish?s.getTerminationReasons(c.ga.causes,"landRentalTerminationReason"):s.getTerminationReasons(c.ga.causes,"timberTerminationReason");_.contains(["tender","property","insider"],t.procType)&&(t.reasonData.isCheckReason=!1)});$("body").on("hidden.bs.modal","#modalDisqualifyAward3",function(){});t.showSignModalAward=function(n){n.type="award";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.reasonDisqualifyChange=function(n){t.reasonData.reasonDisqualify=n};t.setDecision=function(n){var i={awardId:t.award.id,tenderId:l.tenderId},f,e;n==="unsuccessful"?(c.ga.causes.items&&(i.desc=t.reasonData.reasonDisqualify),f=u.disqualifyAward(i),e="Кандидата дискваліфіковано!"):n==="cancelled"&&(f=u.cancelAward(i),e="Кандидата відхилено!");f.success(function(){abp.notify.success(e);localStorage.getAwards="true";console.log("redirect from modalGetAward to "+t.procType);switch(t.procType){case"tender":case"property":r.path("/tenderDetailes/"+l.tenderId);break;case"privatization":r.path("/auctionDetails/"+l.tenderId);break;case"landLease":case"insider":r.path("/landLeaseDetails/"+l.tenderId)}(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>3&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},1e3)})();$("#modalDisqualifyAward3").modal("toggle");t.getAwardsUrl=""}).error(function(){t.reloadDetailes()});o(function(){abp.notify.success("Кандидата ухвалено!");location.reload()},5e3);t.reloadDetailes()};t.canModifyDocuments=function(n){return!(t.tenderStatus==="active.qualification"&&n.status==="pending.payment")};t.isVerificationPeriod=function(n){var t=new Date;return t<new Date(n.verificationPeriod.endDate)}}])}(),function(){angular.module("app").controller("modalDocNotificationCtrl",["$rootScope","$scope","$location","abp.services.etender.award","$stateParams","Upload","$timeout",function(n,t){var i=t;i.dismissModal=function(){$("#modalDocNotification").modal("hide")}}])}(),function(){angular.module("app").controller("modalGetAwardsCtrl",["$rootScope","$scope","$q","$location","abp.services.etender.award","$stateParams","Upload","$timeout","lookupService","documentService","abp.services.etender.settings","abp.services.etender.document",function(n,t,i,r,u,f,e,o,s,h){function y(n){return h.checkIfDocExist("rejectionProtocol",n)||h.checkIfDocExist("act",n)}function p(n){return h.checkIfDocExist("auctionProtocol",n)}function w(n){return h.checkIfDocExist("rejectionProtocol",n)}function b(){var n=t.award.bidDocuments,i=0;return n.length>0&&n.forEach(function(n){n.documentType!=null&&n.isExported&&n.documentType.type==="admissionProtocol"&&i++}),i>0}function k(){var n=a.ga.pendingAward.awardDocuments,t=0;return n&&n.length>0&&n.forEach(function(n){n.documentType!=null&&n.documentType.type=="winningBid"&&t++}),t>0}function d(){$("#modalDisqualifyAward").modal("toggle");t.setDecision("unsuccessful")}function g(){return l?l.isExportedAwardDocs:!1}function nt(){return!l||!l.pendingAward?!1:l.pendingAward.awardDocuments.length>0}var c,l,v,a;t.doctype="AwardDocument";t.data={selectedDocTypeAward:null};t.reasonData={reasonDisqualify:"",isCheckReason:!0};t.lists={};t.tId=f.tId;c={tenderId:f.tId||f.aId};t.activateFromLocalStorage=!1;v=["bankrupt.insider","dgfBankrupt"];t.vm.ga={eligible:!1,qualified:!1,canReject:k,canSendMpPendingStatus:b,reject:d,isExportedAwardDocs:g,hasAwardDocs:nt,pendingAward:{},causes:{items:[]},isHasAuctionProtocol:!1,isHasRejectionProtocol:!1,isHasDisqulificationDoc:!1};a=t.vm;t.awardGetAward=function(n,i,r){var f=u.getAward({lotId:n,awardId:i,statusVariant:r});return f.success(function(n){t.award=n;t.award.bidDocuments&&(t.award.bidDocuments=h.sortListOfDocs(t.award.bidDocuments),t.vm.ga.isHasAuctionProtocol=p(t.award.bidDocuments),t.vm.ga.isHasRejectionProtocol=w(t.award.bidDocuments),t.vm.ga.isHasDisqulificationDoc=y(t.award.bidDocuments))}),f};$("body").on("show.bs.modal","#modalGetAwards",function(n){var i,r;t.procType="tender";t.isBankrupt=!1;t.isCanLoadOwnerDocument=!1;n.relatedTarget.attributes["data-procType"]&&(t.procType=n.relatedTarget.attributes["data-procType"].nodeValue);n.relatedTarget.attributes["data-procurementMethodType"]&&(t.procurementMethodType=n.relatedTarget.attributes["data-procurementMethodType"].nodeValue,t.isBankrupt=v.includes(t.procurementMethodType),t.isBankrupt&&(t.isCanLoadOwnerDocument=abp.auth.hasPermission("IsCanLoadOwnerDocument")));t.getAwardsStep=1;var u=n.relatedTarget.attributes["data-lotid"].nodeValue,f=n.relatedTarget.attributes["data-awardid"].nodeValue,e="";for(n.relatedTarget.attributes["data-statusVariant"]!==undefined&&(e=n.relatedTarget.attributes["data-statusVariant"].nodeValue),l=null,a.ga.pendingAward={},i=0;i<t.detailes.lots.length;i+=1)if(r=t.detailes.lots[i],r.id==u){l=r;r.awards.forEach(function(n){n.id==f&&(a.ga.pendingAward=n)});break}t.awardGetAward(u,f,e);s.getTerminationReasons(a.ga.causes,t.detailes.cbd===2?t.isBankrupt?"bankruptCbd2TerminationReason":"otherCbd2TerminationReason":"timberTerminationReason");_.contains(["tender","property","insider"],t.procType)&&(t.reasonData.isCheckReason=!1)});$("body").on("hidden.bs.modal","#modalGetAwards",function(){});t.showSignModalAward=function(n){n.type="award";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.awardsNextStepDisabled=function(){var n,i,r;if(t.award!=null){if(t.award.bidDocuments){if(n=t.award.bidDocuments,n.length>1)for(i=0;i<n.length;i+=1)if(r=n[i],!r.isExported&&r.isExported!==null)return!0;if(n.length==1||t.award.bidDocuments.length==0)return!1}return!1}return!0};t.getAwardsNextStep=function(){t.getAwardsStep++;a.ga.causes.items.forEach(function(n){n.check=!1})};t.getAwardsPrevStep=function(){t.getAwardsStep--};t.setPendingStatus=function(){var n={awardId:t.award.id,tenderId:c.tenderId},i=u.setPendingStatus(n);abp.ui.setBusy(".panel-default");i.success(function(){abp.ui.clearBusy(".panel-default");abp.notify.success("Рішення про викуп опубліковане!");$("#modalGetAwards").modal("toggle");t.getAwardsUrl="";t.reloadDetailes()})};t.setPendingPaymentStatus=function(){var n={awardId:t.award.id,tenderId:c.tenderId},i=u.setPendingPaymentStatus(n);abp.ui.setBusy(".panel-default");i.success(function(){abp.ui.clearBusy(".panel-default");t.setDecision("accept")})};t.reasonDisqualifyChange=function(n){t.reasonData.reasonDisqualify=n};t.setDecision=function(n){var i={awardId:t.award.id,tenderId:c.tenderId},f,e;n==="accept"?(f=u.acceptAward(i),e="Кандидата ухвалено!"):n==="unsuccessful"?(a.ga.causes.items&&(i.desc=t.reasonData.reasonDisqualify),f=u.disqualifyAward(i),e="Кандидата дискваліфіковано!"):(f=u.cancelAward(i),e="Кандидата відхилено!");f.success(function(){abp.notify.success(e);localStorage.getAwards="true";t.detailes.hasPendingAwards=!1;console.log("redirect from modalGetAward to "+t.procType);switch(t.procType){case"tender":case"property":r.path("/tenderDetailes/"+c.tenderId);break;case"privatization":r.path("/auctionDetails/"+c.tenderId);break;case"landLease":case"insider":r.path("/landLeaseDetails/"+c.tenderId)}(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>3&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},1e3)})();$("#modalGetAwards").modal("toggle");t.getAwardsUrl=""}).error(function(){t.reloadDetailes()});o(function(){abp.notify.success("Кандидата ухвалено!");location.reload()},5e3);t.reloadDetailes()};t.canModifyDocuments=function(n){return t.getAwardsStep===1&&!(t.detailes.status==="active.qualification"&&n.status==="pending.payment")};t.isVerificationPeriod=function(n){var t=new Date;return t<new Date(n.verificationPeriod.endDate)}}])}();angular.module("app").controller("modalParticipiantApplication",["$rootScope","$scope","$timeout","abp.services.etender.award","Upload","documentService",function(n,t){$("body").on("show.bs.modal","#modalParticipiantApplication",function(n){t.index=n.relatedTarget.attributes["data-award-index"].nodeValue;t.award=t.tender.lots[0].awards[t.index];t.tender.lots[0].bids.forEach(function(n){n.id===t.award.bidId&&(t.bidValue=n.value)});t.tender.bids.forEach(function(n){n.id===t.award.bidId&&(t.bidInitialValue=n.initialValueAmount)});t.documents=t.award.bidDocuments.filter(n=>n.relatedDocumentApiId===null&&!n.isDeleted);t.signatures=t.award.bidDocuments.filter(n=>n.relatedDocumentApiId!==null&&!n.isDeleted);t.signatures.length>0&&t.documents.forEach(function(n){n.signature=t.signatures.find(t=>t.relatedDocumentApiId===n.id)})})}]),function(){angular.module("app").controller("modalQualifyAward3Ctrl",["$rootScope","$scope","$q","$location","abp.services.etender.award","$stateParams","Upload","$timeout","lookupService","documentService","abp.services.etender.settings","abp.services.etender.document",function(n,t,i,r,u,f,e,o,s,h){function y(n){return h.checkIfDocExist("auctionProtocol",n,!1,!0)}function p(){return c?c.isExportedAwardDocs:!1}function w(){return!c||!c.pendingAward?!1:c.pendingAward.awardDocuments.length>0}var l,c,v,a;t.doctype="AwardDocument";t.data={selectedDocTypeAward:null};t.reasonData={reasonDisqualify:"",isCheckReason:!0};t.lists={};t.tId=f.tId;l={tenderId:f.tId||f.aId};t.activateFromLocalStorage=!1;v=["bankrupt.insider","dgfBankrupt"];t.vm.ga={eligible:!1,qualified:!1,isExportedAwardDocs:p,hasAwardDocs:w,pendingAward:{},causes:{items:[]},isHasAuctionProtocol:!1,isHasRejectionProtocol:!1,isHasDisqulificationDoc:!1};a=t.vm;t.reloadAward=function(){t.awardGetAward(t.lotId,t.curAwardId,t.statusVariant);t.reloadDetailes()};t.awardGetAward=function(n,i,r){var f=u.getAward({lotId:n,awardId:i,statusVariant:r});return f.success(function(n){t.award=n;t.award.bidDocuments&&(t.award.bidDocuments=h.sortListOfDocs(t.award.bidDocuments),t.award.awardQualifyDocuments=t.award.bidDocuments,t.vm.ga.isHasAuctionProtocol=y(t.award.bidDocuments))}),f};$("body").on("show.bs.modal","#modalQualifyAward3",function(n){var i,r;for(t.procType="tender",t.isBankrupt=!1,t.isCanLoadOwnerDocument=!1,n.relatedTarget.attributes["data-procType"]&&(t.procType=n.relatedTarget.attributes["data-procType"].nodeValue),n.relatedTarget.attributes["data-procurementMethodType"]&&(t.procurementMethodType=n.relatedTarget.attributes["data-procurementMethodType"].nodeValue,t.isBankrupt=v.includes(t.procurementMethodType),t.isBankrupt&&(t.isCanLoadOwnerDocument=abp.auth.hasPermission("IsCanLoadOwnerDocument"))),t.lotId=n.relatedTarget.attributes["data-lotid"].nodeValue,t.curAwardId=n.relatedTarget.attributes["data-awardid"].nodeValue,t.statusVariant="",n.relatedTarget.attributes["data-statusVariant"]!==undefined&&(t.statusVariant=n.relatedTarget.attributes["data-statusVariant"].nodeValue),c=null,a.ga.pendingAward={},i=0;i<t.detailes.lots.length;i+=1)if(r=t.detailes.lots[i],r.id==t.lotId){c=r;r.awards.forEach(function(n){n.id==t.curAwardId&&(a.ga.pendingAward=n)});break}t.awardGetAward(t.lotId,t.curAwardId,t.statusVariant);s.getTerminationReasons(a.ga.causes,"timberTerminationReason");_.contains(["tender","property","insider"],t.procType)&&(t.reasonData.isCheckReason=!1)});$("body").on("hidden.bs.modal","#modalQualifyAward3",function(){});t.showSignModalAward=function(n){n.type="award";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.reasonDisqualifyChange=function(n){t.reasonData.reasonDisqualify=n};t.setDecision=function(n){var f,i,e;if(n==="accept"){if(f=new Date,i=f.getDay(),i===0||i===6){abp.notify.warn("Неможливо затвердити протокол у вихідний день. Повторіть дію у робочий час.");return}e={awardId:t.award.id,tenderId:l.tenderId};u.acceptAward(e).success(function(){abp.notify.success("Кандидата ухвалено!");localStorage.getAwards="true";t.detailes.hasPendingAwards=!1;console.log("redirect from modalGetAward to "+t.procType);switch(t.procType){case"tender":case"property":r.path("/tenderDetailes/"+l.tenderId);break;case"privatization":r.path("/auctionDetails/"+l.tenderId);break;case"landLease":case"insider":r.path("/landLeaseDetails/"+l.tenderId)}(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>3&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},1e3)})();$("#modalQualifyAward3").modal("toggle");t.getAwardsUrl=""}).error(function(){t.reloadDetailes()});o(function(){location.reload()},5e3);t.reloadDetailes()}};t.canModifyDocuments=function(n){return!(t.detailes.status==="active.qualification"&&n.status==="pending.payment")};t.isVerificationPeriod=function(n){var t=new Date;return t<new Date(n.verificationPeriod.endDate)}}])}(),function(){angular.module("app").controller("app.views.tenderDetailes",["$rootScope","$scope","$window","abp.services.etender.tender","$stateParams","$location","$timeout","abp.services.etender.bid","abp.services.etender.award","Upload","documentService","ngTableParams","abp.services.etender.emails","abp.services.etender.emailNotification","datesHelper","FileUploader","abp.services.etender.document","tenderHelperService","lookupService",function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k){function ft(n){t.detailes.curCancellations=null;n?(t.detailes.curCancellations=n.cancellations,t.cancelTenderModel.cancelFor={lotId:n.id,title:"Лот "+n.title,type:"lot"}):(t.detailes.curCancellations=t.detailes.cancellations,t.cancelTenderModel.cancelFor={lotId:null,title:"Аукціон",type:"tender"},t.cancelTenderModel.datePublished=t.detailes.cancellations&&t.detailes.cancellations.length>0?t.detailes.cancellations[0].date:null,t.cancelTenderModel.datePublished_time=t.cancelTenderModel.datePublished,t.detailes.isLegitimatePropertyLease&&t.detailes.curCancellations.length===0&&k.getCancellationReasons(t.reasonsCancellation,"legitimatePropertyLeaseCancellationReason",function(){t.reasonCancellationVariants=t.getReasonCancellationVariants()}));t.cancelTenderModel.relatedLot=null;t.cancelTenderModel.reason=null;t.reasonTypes&&t.reasonTypes.length>0&&t.isShowReasonType()&&(t.cancelTenderModel.reasonType=t.reasonTypes[0].id)}function rt(n){n&&(n.ownershipTypeDescription=k.getOwnershipTypeDiscription(n.ownershipType),n.encumbrancesDescription=k.getEncumbrancesDescriptionByType(n.encumbrances))}function et(n){n&&(n.fuelTypeDescription=k.getFuelTypeDiscription(n.fuelType),n.transmissionDescription=k.getTransmissionDiscription(n.transmission))}function ot(n){n&&(n.constructionTechnologyDescription=k.getConstructionTechnologyDescriptionByType(n.constructionTechnology),n.locationInBuildingDescription=k.getLocationInBuildingDiscription(n.locationInBuilding),n.powerSupplyClassDescription=k.getPowerSupplyClassDiscription(n.powerSupplyClass))}function st(n){var i=null;return n&&angular.forEach(t.detailes.lots,function(t){t.id==n&&(i=t)}),i}function ht(n){return c.checkIfDocExist(n,t.detailes.documents)}function vt(){(t.detailes.isPropLeaseByZU||t.detailes.isPropInsiderByZU)&&t.detailes.tenderAttempts*1==1?$("#modalWarningLegitimate").modal("toggle"):b.confirmAndActivate(t.detailes,yt,r)}function yt(){abp.ui.setBusy();r.activate({id:t.detailes.id}).success(function(){abp.ui.clearBusy();t.reloadDetailes()}).error(function(){abp.ui.clearBusy()})}function pt(){confirm("Ви дійсно бажаєте видалити чернетку?")&&(abp.ui.setBusy(),r.deleteDraft({id:t.detailes.id}).success(function(){abp.ui.clearBusy();abp.notify.success("Чернетку видалено");f.path("/profile")}).error(function(){abp.ui.clearBusy();abp.notify.error("Oops. Something went wrong...")}))}function wt(){t.detailes.hasClarificationDocs||t.detailes.isTimberEnglish||t.detailes.isTimberMultiAwards||t.detailes.isLegitimatePropertyLease?ct():abp.notify.warn(t.state.clarificationsTooltip.title)}function ct(){f.path("updateAuction/"+t.tId)}function bt(){f.path("createAuction/"+t.tId)}function kt(n){switch(n){case"pending":return"Запит оформляється";case"active":return"Скасування активоване";default:return"-"}}function dt(){return!1}function gt(n,i){var r={documentTypes:[],firstDocumentType:{}};c.getDocumentTypes(r,"AuctionDocument",n,i,null,"clarifications").then(function(){r.firstDocumentType&&r.firstDocumentType.title&&t.state&&(t.state.clarificationsTitle=r.firstDocumentType.title,t.state.clarificationsTooltip={title:'Для редагування необхідно завантажити документ "'+t.state.clarificationsTitle+'"'})})}var lt=abp.setting.get("IsHideOnAuction").toLowerCase()==="true",tt,it,d,g,nt,ut,at;t.isAuction=lt;tt=1;it=[];t.fileUploadObj={};t.allowedDocumentTypes={items:[]};d=t.uploader=new p({});d.filters.push({name:"imageFilter",fn:function(n){var t="|"+n.type.slice(n.type.lastIndexOf("/")+1)+"|";return"|jpg|png|jpeg|bmp|gif|".indexOf(t)!==-1}});d.onWhenAddingFileFailed=function(n,t,i){console.info("onWhenAddingFileFailed",n,t,i)};d.onAfterAddingFile=function(n){console.info("onAfterAddingFile",n)};d.onAfterAddingAll=function(n){console.info("onAfterAddingAll",n)};d.onBeforeUploadItem=function(n){it.push(n);tt=it.length;formData=[{tenderId:t.tId,control:"illustrate",documentType:t.vm.selectedDocTypeObj.id,index:tt}];Array.prototype.push.apply(n.formData,formData);console.info("onBeforeUploadItem",n)};d.onProgressItem=function(n,t){console.info("onProgressItem",n,t)};d.onProgressAll=function(n){console.info("onProgressAll",n)};d.onSuccessItem=function(n,t,i,r){console.info("onSuccessItem",n,t,i,r)};d.onErrorItem=function(n,t,i,r){console.info("onErrorItem",n,t,i,r)};d.onCancelItem=function(n,t,i,r){console.info("onCancelItem",n,t,i,r)};d.onCompleteItem=function(n,t,i,r){console.info("onCompleteItem",n,t,i,r)};d.onCompleteAll=function(){console.info("onCompleteAll")};console.info("uploader",d);t.tId=u.tId;t.enableAddDocument=!0;t.cancelDocDescription="";t.statusDescription={};t.cancelTenderModel={};t.upload=[];t.showHideUploadIllustrationPanel=!1;t.userTenantId=localStorage.userTenantId||null;t.cancellationTypesContainer={documentTypes:[],firstDocumentType:{}};t.forestQualityClasses=b.getForestQualityClasses();t.forestQuarters=b.getForestQuarters();t.dateRegex=n.regex.date;t.cancelTenderModel={reason:"",cancelFor:null};g={id:t.tId,userName:localStorage.username||sessionStorage.username||null,display:!0};t.canModifyDocuments=function(){if(!t.detailes||!t.detailes.isEdit)return!1;if(t.detailes.status==="draft")return t.detailes.notExport;if(t.detailes.isLandSellPriorityEnglish&&t.detailes.tenderNewExt.landRentalExt.isTransferPriorityPeriod)return!0;if(t.detailes.status==="active.tendering"||t.detailes.status==="active.rectification"){var n=new Date,i=t.detailes.isCommercialSellDutch||t.detailes.isCommercialSellEnglish?new Date(t.detailes.tenderPeriod.endDate):new Date(t.detailes.rectificationPeriod.endDate);return i>n}return!1};t.canModifyCancellationDocuments=function(){return!t.detailes||!t.detailes.isEdit||!t.detailes.curCancellations||t.detailes.curCancellations.length===0?!1:!0};t.cancelTenderDocumentToAdd={};t.setFileCancelTender=function(n){t.files=n.files;var i=n.attributes["data-description"]?n.attributes["data-description"].nodeValue:null;t.cancelTenderDocumentToAdd=n.files;t.addFiles(n.files,t.detailes.cancellations[0],i)};nt=function(n){var i=!0,t;if(n.awardDocuments&&n.awardDocuments.length>0)for(t=0;t<n.awardDocuments.length;t++)if(n.awardDocuments[t].url==null){i=!1;break}return i};ut=function(){var r,n,i;if(t.detailes.status=="active.qualification"){for(n=[],i=0;i<t.detailes.lots.length;i+=1)n=n.concat(t.detailes.lots[i].awards);n.forEach(function(n){n.status=="pending"&&n.suppliers.length>0&&(r=n.suppliers[0].name)});t.detailes.bids.forEach(function(n){n.canLoadFiles=n.tenderers&&r&&n.tenderers[0].name==r?!0:!1})}};t.reasonTypes=[{id:"cancelled",title:"Торги були відмінені"},{id:"unsuccessful",title:"Торги не відбулися"}];t.reasonCancellationVariant=null;t.getReasonCancellationVariants=function(){return reasons=[],angular.forEach(t.reasonsCancellation.items,function(n){reasons.push({reasonText:n.name,id:n.code})}),reasons};t.reasonCancellationVariants=[{reasonText:"Згідно рішення виконавчої дирекції Замовника",id:"1"},{reasonText:"Порушення порядку публікації оголошення",id:"2"}];t.reasonsCancellation=[];t.reasonCancellationVariantsChange=function(n){t.reasonCancellationVariant=n;t.detailes.isLegitimatePropertyLease&&(t.cancelTenderModel.reason=n)};t.getReasonTypeNameById=function(n){var i=null;return n&&angular.forEach(t.reasonTypes,function(t){t.id==n&&(i=t.title)}),i};t.isShowReasonType=function(){return t.detailes&&dt()?!0:!1};t.isAllCancelDocumentsExported=function(n){var i=n.documents;return n.allRequireDocsUploaded&&i.length>0&&!i.some(n=>t.detailes&&t.detailes.cbd===2?!n.isExported:!n.isExportedToDocService)};t.openModalCancelTender=function(n){ft(n);t.cancellationTypesContainer.firstDocumentType.id||c.getDocumentTypes(t.cancellationTypesContainer,"CancellationDocument",t.detailes.procurementMethodType);t.detailes.cbd===3&&(t.maxDatePublish=new Date,t.minDatePublish=new Date(t.detailes.tenderNewExt.cbd3DataExt.datePublished),t.minDatePublish.setDate(t.minDatePublish.getDate()-1));$("#modalCancelTender").modal("show")};t.setRequireDocTypeCorrection=function(n){var i,r;t.detailes&&t.detailes.isLegitimatePropertyLease&&!t.detailes.tenderNewExt.legitimateDataExt.registryObject.isRealEstate&&(i=n.find(n=>n.type==="x_itemPlan"),i&&(i.isRequired=!1));t.detailes&&(t.detailes.isCommercialSellEnglish||t.detailes.isCommercialSellDutch)&&(i=n.find(n=>n.type==="illustration"),r=k.getClassificatorsForAssetItemType(),t.detailes.lots.forEach(function(n){n.items.forEach(function(n){i&&r.indexOf(n.classification.code.substring(0,2))!==-1&&(i.isRequired=!0)})}))};t.reloadDetailes=function(){t.documentsToAdd=null;t.userIsProductionMode=localStorage.isProdMode==="true";var u=r.getTender(g);abp.ui.setBusy();u.success(function(u){var v,o,s,h,y,p,l,e,a,f;if(console.log("tenderDetailes",u),t.hasSign=i.signDiff,t.detailes=u,t.state=u.state,t.detailes.procurementMethodTypeOriginal=b.getMainProcurementMethodType(t.detailes.procurementMethodType),u.isEdit&&gt(t.detailes.procurementMethodTypeOriginal,t.detailes.status),t.cancellationStatus=function(n){return n.length>0&&n[0].status==="active"?"Торги відмінено":"-----"},b.setTenderDescriptionByStatus(t.detailes),t.detailes.prozorroDocLink=b.getProzorroDocumentLink(t.detailes.status,t.detailes.tenderId,t.detailes.cbd),t.cancelTenderModel&&t.cancelTenderModel.cancelFor&&ft(st(t.cancelTenderModel.cancelFor.lotId)),t.detailes.documents!=null&&t.detailes.documents instanceof Array&&(v=t.detailes.documents,v.forEach(function(n){n.title=="sign.p7s"&&(t.detailes.isSignatureFileExist=!0)}),t.detailes.documents=[],t.detailes.documents=c.sortListOfDocs(v)),t.detailes.cancellations.forEach(function(n){switch(n.status){case"pending":n.statusDesc="Запит оформляється";case"active":n.statusDesc="Скасування активоване";default:n.statusDesc="-"}(t.detailes.isSubsoilEnglish||t.detailes.isSubsoilDutch)&&(n.reasonDesc=k.getSubsoilCancelationReasonTitle(n.reason))}),localStorage.getAwards=="true"&&(t.detailes.hasPendingAwards=!1),abp.ui.clearBusy(),angular.forEach(t.detailes.bids,function(n){n.documents=c.sortListOfDocs(n.documents)}),u.bids!=null&&u.bids.length>0){for(t.isBidExist=!0,o=0;o<u.bids.length;o++)if((!u.bids[o].documents||u.bids[o].documents.length==0)&&(u.bids[o].documents=c.sortListOfDocs(u.bids[o].documents),u.bids[o].isMyBid))for(s=0;s<u.bids[o].documents.length;s++)h=u.bids[o].documents[s].url,h&&h!=""&&(y={fileUri:h},p=r.getFilePath(y),function(n,i,r){r.success(function(r){t.detailes.bids[n].documents[i].url=r})}(o,s,p))}else t.isBidExist=!1;for(t.detailes.hasClarificationDocs=ht("clarifications"),t.detailes.hasAssetFamiliarizationDocs=ht("x_dgfAssetFamiliarization"),l=0;l<t.detailes.lots.length;l+=1){for(e=t.detailes.lots[l],e.documents=[],e.items.forEach(function(n){var r=n.documents,i;n.documents=[];n.documents=c.sortListOfDocs(r);t.detailes.isCarriageLease&&n.itemExt&&n.itemExt.carriageItemExt&&n.itemExt.carriageItemExt.descriptionExt&&(n.description=n.itemExt.carriageItemExt.descriptionExt);t.detailes.isForestSale&&n.itemExt&&n.itemExt.forestItemExt&&(i=n.itemExt.forestItemExt,i.class&&(i.classItem=t.forestQualityClasses.filter(n=>n.name===i.class)[0]),i.quarter&&(i.quarterItem=t.forestQuarters.filter(n=>n.name===i.quarter)[0]));t.detailes.isLegitimatePropertyLease&&n.itemExt&&n.itemExt.legitimateItemExt&&n.itemExt.legitimateItemExt.property&&(ot(n.itemExt.legitimateItemExt.property.realEstateProps),et(n.itemExt.legitimateItemExt.property.vehicleProps),n.itemExt.legitimateItemExt.property.jointPropertyComplexProps&&rt(n.itemExt.legitimateItemExt.property.jointPropertyComplexProps.landProps));t.detailes.isBasicSell&&n.itemExt&&n.itemExt.basicSellItemExt&&n.itemExt.basicSellItemExt.property&&(rt(n.itemExt.basicSellItemExt.property.landProps),et(n.itemExt.basicSellItemExt.property.vehicleProps),ot(n.itemExt.basicSellItemExt.property.realEstateProps),n.itemExt.basicSellItemExt.property.jointPropertyComplexProps&&rt(n.itemExt.basicSellItemExt.property.jointPropertyComplexProps.landProps))}),a=0;a<e.awards.length;a+=1)f=e.awards[a],f.supplier=f.suppliers&&f.suppliers.length>0?f.suppliers[0]:null,f.contractButtonTitle=k.getContractButtonTitle(t.detailes,f),(f.status=="active"||f.status=="cancel")&&(e.awardId=f.id,e.activeAward=f,e.hasActiveAward=!0,e.winner={name:f.suppliers&&f.suppliers.length>0?f.suppliers[0].name:null},e.isExportedAwardDocs=nt(e.activeAward),f.contracts.length>0&&(e.hasContract=!0,e.contractStatusKey=f.contracts[0].status)),f.status=="pending"&&f.cancelAwardId&&(e.awardIsReadyForAnnuled=!0,e.pendingAward=f,e.readyForAnulledAward=f,e.winner={name:f&&f.suppliers&&f.suppliers.length>0?f.suppliers[0].name:null},e.readyForAnulledAward.awardDocuments=e.readyForAnulledAward.awardDocuments.filter(function(n){return n.documentTypeId!=1}),e.isExportedAwardDocs=nt(e.readyForAnulledAward)),f.status!="pending"||f.cancelAwardId||(e.pendingAward=f,e.winner={name:f.suppliers&&f.suppliers.length>0?f.suppliers[0].name:null},e.isExportedAwardDocs=nt(e.pendingAward)),f.bidDocuments&&f.bidDocuments.length>0&&(f.bidDocuments=c.sortListOfDocs(f.bidDocuments)),f.awardDocuments&&f.awardDocuments.length>0&&(f.awardDocuments=c.sortListOfDocs(f.awardDocuments));t.statusClarify=!t.detailes.isLandRentalOrSellEnglish&&e.hasActiveAward&&t.detailes.status=="active.awarded"?"[Переможця визначено]":null}ut();t.numBidsInitialAuction=t.detailes.bids.length;t.detailes.isLegitimatePropertyLease&&t.detailes.tenderNewExt.legitimateDataExt&&t.detailes.tenderNewExt.legitimateDataExt.leaseRules&&t.detailes.tenderNewExt.legitimateDataExt.leaseRules.schedule&&(t.detailes.tenderNewExt.legitimateDataExt.leaseRules.schedule.hoursByDescription=t.detailes.tenderNewExt.legitimateDataExt.leaseRules.schedule.hoursBy?k.getScheduleHoursByDescription(t.detailes.tenderNewExt.legitimateDataExt.leaseRules.schedule.hoursBy).toLowerCase():null,t.detailes.tenderNewExt.legitimateDataExt.leaseRules.schedule.daysByDescription=t.detailes.tenderNewExt.legitimateDataExt.leaseRules.schedule.daysBy?k.getScheduleDaysByDescription(t.detailes.tenderNewExt.legitimateDataExt.leaseRules.schedule.daysBy).toLowerCase():null);t.detailes.isLegitimatePropertyLease&&t.detailes.tenderNewExt.legitimateDataExt&&t.detailes.tenderNewExt.legitimateDataExt.relatedOrganizations&&t.detailes.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant&&t.detailes.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint&&(t.detailes.tenderNewExt.legitimateDataExt.relatedOrganizations.currentTenant.contactPoint=null);t.detailes.IsOwner&&t.detailes.isLegitimatePropertyLeaseEnglish&&t.detailes.isRectificationPeriod&&t.detailes.tenderNewExt.legitimateDataExt&&t.detailes.tenderNewExt.legitimateDataExt.isBaseObjectModified&&abp.notify.warn("Увага дані об’єкта було змінено!","Для оновлення даних об’єкта у аукціоні необхідно відкрити Оголошення для редагування і натиснути на кнопку «Зберегти».",!0);t.detailes.isOwn&&(b.checkIsExportedSuccessfully(t.detailes)||n.isStartReloadTimer)&&(n.isStartReloadTimer=!1,b.startExportReloadTimer(t.reloadDetailes,t.detailes,r.getTenderNewExportInfo));t.detailes.isLandSellPriorityEnglish&&t.detailes.tenderNewExt.landRentalExt&&t.detailes.tenderNewExt.landRentalExt.currentTenant.contactPoint&&(t.detailes.tenderNewExt.landRentalExt.currentTenant.contactPoint=null);t.isPossibleCancelTender=b.isPossibleCancelTender(t.detailes);t.accountTypes=t.detailes.isLandRentalOrSellEnglish?k.getAccountTypesForLandRental():t.detailes.isBasicSell?k.getAccountTypesForBasicSell():k.getAccountTypes()}).error(function(n){console.log(n);abp.ui.clearBusy();f.path("/")})};localStorage.getAwards=="true"?(function(){var n=0,i=setInterval(function(){n++;t.reloadDetailes();console.log("Перезагрузка "+n);n>2&&(clearInterval(i),console.log("Таймер с ID: "+i+" остановлен!"))},3e3)}(),localStorage.getAwards="false",t.detailes&&(t.detailes.hasPendingAwards=!1)):(t.reloadDetailes(),localStorage.getAwards="false");t.cancelTender=function(){var n=r.cancelTender(g);n.success(function(n){console.log(n);abp.notify.success("Торги с id "+g.id+" видалено!");f.path("/profile")})};t.beginCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();t.cancelTenderModel.reason=t.reasonCancellationVariant||t.cancelTenderModel.reason;r.cancellationBegin(t.cancelTenderModel).success(function(n){var i=st(t.cancelTenderModel.relatedLot);t.cancelTenderModel.relatedLot=null;n&&(i?i.cancellations=n:t.detailes.cancellations=n);abp.ui.clearBusy();t.openModalCancelTender(i)}).error(function(){abp.ui.clearBusy()})};t.endCancelTender=function(){t.cancelTenderModel.tenderId=t.tId;t.cancelTenderModel.relatedLot=t.cancelTenderModel.cancelFor.type=="lot"?t.cancelTenderModel.cancelFor.lotId:null;abp.ui.setBusy();r.cancellationEnd({cancellationId:t.detailes.curCancellations[0].id,datePublished:t.cancelTenderModel.datePublished}).success(function(n){n?(t.cancelTenderModel.relatedLot?abp.notify.success("Лот скасовано!"):abp.notify.success("Торги скасовано!"),abp.ui.clearBusy(),t.reloadDetailes()):t.cancelTenderModel.relatedLot?abp.notify.error("Вибачте, лот не може бути скасований саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування лота через деякий час."):abp.notify.error("Вибачте, торги не можуть бути скасовані саме зараз. Триває синхронізація даних з ЦБД. Поверніться до скасування через деякий час.");abp.ui.clearBusy()}).error(function(){abp.ui.clearBusy()})};t.includeInvitation=function(){return n.env.isAuthorized?!t.detailes||!t.detailes.isEdit?!1:t.detailes.status=="active.enquiries"||t.detailes.status=="active.tendering"?!0:!1:!1};t.switchInvitation=function(){$("#invitation").modal("toggle");$("#modalGroupsInvitation").modal("toggle")};t.tableParams=new l({page:1,count:10,sorting:{tenderStartDate:"desc"}},{counts:[],getData:function(n,i){var r={maxResultCount:900,skipCount:(i.page()-1)*i.count(),sorting:"CreationTime DESC"},u=a.getEmailGroups(r);abp.ui.setBusy(".panel-default:first");u.success(function(r){abp.ui.clearBusy(".panel-default");i.total(r.countAllRecords);r.items.forEach(function(n){n.checked=!1});t.groups=r.items;n.resolve(r.items)}).error(function(){console.log("ERROR!!! Can't get groups!")})}});t.inviteGroups=function(){var n=[],i;t.groups&&(t.groups.forEach(function(t){t.checked&&n.push(t.id)}),i=v.notifyInvitationForTender({groupIds:n,tenderId:t.tId}),i.success(function(){abp.notify.success("Повідомлення группам надіслано!");$("#modalGroupsInvitation").modal("toggle")}))};t.isGroupCheked=function(){if(!t.groups)return!1;var n=!1;return t.groups.forEach(function(t){t.checked&&(n=!0)}),n};t.showSignModal=function(){var n={};n.type="auction";$("#modalSign").modal("toggle");$("#modalSign").trigger("show.bs.modal",[n])};t.vm={getCancellationStatusDesc:kt,checkBeforUpdate:wt,goToUpdate:ct,activate:vt,deleteDraft:pt,copyAuction:bt,selectedDocTypeObj:null};at={belowThreshold:"/updateTender/"};t.addProposition=function(){var n={userLogin:t.detailes.timberEmail,lotId:t.detailes.lots[0].id,value:{amount:t.detailes.timberValue}};abp.ui.setBusy();o.addBidTimberEnglishAuction({tenderId:t.detailes.id,userBidValueInput:n,quantity:t.detailes.timberQuantity}).success(function(){t.numBidsInitialAuction=t.numBidsInitialAuction+1;abp.ui.clearBusy();t.reloadDetailes()}).error(function(){abp.ui.clearBusy();abp.notify.error("Oops. Something went wrong...")})};t.timberValueValidation=function(){t.detailes.isTimberEnglish||(t.isTimberValueValid=!0);return};t.timberQuantityValidation=function(n){if(t.detailes&&t.detailes.tenderNewExt&&t.detailes.tenderNewExt.cbd3DataExt&&t.detailes.tenderNewExt.cbd3DataExt.minQuantity&&n){var i=n%t.detailes.tenderNewExt.cbd3DataExt.minQuantity;if(i===0)return t.isTimberQuantityValid=!0}return t.isTimberQuantityValid=!1};t.toggleFavorite=function(n){b.toggleFavorite(n,r.createFavorite,r.deleteFavorite)};t.openModalFastLegetimate=function(n,i){t.fastLPLEs=k.getCreationLegitimatePropertyLeaseFasts(n,i);$("#modalFastLPLE").modal("show")};t.goToMyRegObject=function(){b.goToProfileSection("/app/Main/views/profile/myRegistry.cshtml")};t.createSecondAuction=function(){f.path("createAuction/"+t.tId+"/1")};t.setCancelTenderDateTime=function(n){n&&(n.datePublished=b.appendTimeToDate(n.datePublished,n.datePublished_time),n.datePublished_time=n.datePublished,t.maxDatePublish=new Date)}}])}(),function(){angular.module("app").controller("app.views.tenders",["$scope","abp.services.etender.tender","$q","ngTableParams",function(){}])}(),function(){"use strict";function n(n,t,i,r,u,f){function a(){t.env.isAuthorized&&(o.isProductionMode=localStorage.isProdMode);e.tableParams=new r({page:1,count:10,sorting:{tenderStartDate:"desc"}},{total:0,counts:[],getData:g});e.statuses=tt()}function v(){e.searchIdentifier=null;e.filter={description:null,classificationCpv:null,classificationDkpp:null,organisation:null,parentCodeEDRPOU:null,priceFrom:null,priceTo:null,tenderPeriodStartFrom:"",tenderPeriodStartTo:"",tenderPeriodEndFrom:"",tenderPeriodEndTo:"",title:null};c()}function h(n){switch(n){case"unsuccessful":return"label-primary";case"complete":return"label-danger";case"cancelled":return"label-primary";default:return""}}function y(){var n=e.filter.tenderPeriodEndFrom,t=e.filter.tenderPeriodEndTo;return!n||!t?!0:n<=t?!0:!1}function p(){var n=e.filter.tenderPeriodStartFrom,t=e.filter.tenderPeriodStartTo;return!n||!t?!0:n<=t?!0:!1}function w(){var n=parseInt(e.filter.priceFrom),t=parseInt(e.filter.priceTo);return isNaN(n)||isNaN(t)?!0:n<=t?!0:!1}function b(){$("#searchParameters").collapse("toggle");$("#paramsCaret").toggleClass("fa-caret-up")}function c(n){o.statuses=n?[n.name]:s;e.selectedStatus=n}function k(){e.tableParams.reload();e.tableParams.page(1)}function d(){i.cancel(l);l=i(function(){e.tableParams.reload();e.tableParams.page(1)},1e3)}function g(n,t){abp.ui.setBusy(".panel-default");var r=t.orderBy(),o=t.sorting(),i=r.length>0?r[0].substring(1):"tenderStartDate",s=o[i]?o[i]:"desc",h={page:t.page(),pageSize:t.count(),orderColumn:i,orderDirection:s,searchFilter:nt(),searchIdentifier:e.searchIdentifier};u.getTenders(h).success(function(i){i.tender&&i.tender.forEach(function(n){f.setTenderDescriptionByStatus(n)});abp.ui.clearBusy(".panel-default");t.total(i.countAllRecords);n.resolve(i.tender)})}function nt(){return o.cpv=e.filter.classificationCpv,o.dkpp=e.filter.classificationDkpp,o.priceFrom=e.filter.priceFrom,o.priceTo=e.filter.priceTo,o.columnFilters=[{Name:"Title",Filter:e.filter.title},{Name:"Description",Filter:e.filter.description},{Name:"OrganizationName",Filter:e.filter.organisation},{Name:"tenderPeriodEndFrom",Filter:e.filter.tenderPeriodEndFrom},{Name:"tenderPeriodEndTo",Filter:e.filter.tenderPeriodEndTo},{Name:"tenderPeriodStartFrom",Filter:e.filter.tenderPeriodStartFrom},{Name:"tenderPeriodStartTo",Filter:e.filter.tenderPeriodStartTo}],o.isShowOnlyTendersCreatedOnOurSite=e.isShowOnlyTendersCreatedOnOurSite,o}function tt(){for(var t=[],n=0;n<s.length;n+=1)t.push({name:s[n],desc:f.getTenderDescriptionByStatus(s[n]),labelClass:h(s[n])});return t}var e,s,o,l;n.vm={clear:v,getLabelClass:h,isDateEndIntervalValid:y,isDateStartIntervalValid:p,isPriceIntervalValid:w,paramsToggle:b,regex:{number:t.regex.number},search:k,searchChange:d,searchIdentifier:null,setSelected:c,selectedStatus:null,statuses:[],isShowOnlyTendersCreatedOnOurSite:!1};e=n.vm;e.filter={description:null,classificationCpv:null,classificationDkpp:null,organisation:null,parentCodeEDRPOU:null,priceFrom:null,priceTo:null,tenderPeriodStartFrom:"",tenderPeriodStartTo:"",tenderPeriodEndFrom:"",tenderPeriodEndTo:"",title:null};s=["unsuccessful","complete","cancelled"];o={isProductionMode:!0,statuses:s};n.getTenderProcedureType=function(n){if(!n)return null;switch(n.procurementMethodType){case"belowThreshold":return t.source("BelowThreshold");case"aboveThresholdUA":return t.source("OpenMarket");case"aboveThresholdEU":return t.source("OpenMarketEU");case"reporting":return t.source("Reporting");case"negotiation":return t.source("Negotiation");case"negotiation.quick":return t.source("Negotiation");case"aboveThresholdUA.defense":return t.source("Defense");case"dgfOtherAssets":return t.source("DgfOtherAssets");case"dgfFinancialAssets":return t.source("DgfFinancialAssets")}return null};a()}angular.module("app").controller("app.views.tenders.tendersArchive",n);n.$inject=["$scope","$rootScope","$timeout","ngTableParams","abp.services.etender.tender","tenderHelperService"]}(),function(){angular.module("app").controller("app.views.updateAuction",["$rootScope","$scope","$location","$q","abp.services.etender.tender","abp.services.etender.reference","abp.services.etender.address","$stateParams","tenderHelperService",function(n,t,i,r,u,f,e,o,s){var h={id:o.id,display:!1,isForEdit:!0},l={landLeaseExt:{lotHolder:{addressN:!0,contactPoint:!0}}},c;abp.ui.setBusy();u.getTender(h).success(function(n){n.apiId&&(n.auctionPeriodMinStartDate=null,n.auctionPeriodMaxStartDate=null);t.createTenderModel=n;t.showData=l;s.correctItemClassifications(t.createTenderModel.lots[0].items);console.log(n);abp.ui.clearBusy()});t.submit=function(){var n,u,r,f,i;for(abp.ui.setBusy(),n=t.createTenderModel,t.$broadcast("contractTermsLoad",n),n.isPropLease&&n.isNewOrDraft&&!n.tenderPeriodLimit&&(n.tenderPeriod.endDate=null),u=0;u<n.lots.length;u+=1)for(r=n.lots[u],n.isCbd3Dutch||n.isAppraisalInsider||(r.minimalStep.valueAddedTaxIncluded=r.value.valueAddedTaxIncluded),n.tenderNewExt&&n.tenderNewExt.landLeaseExt&&n.tenderNewExt.landLeaseExt.lotHolder&&n.tenderNewExt.landLeaseExt.lotHolder.contactPoint&&n.tenderNewExt.landLeaseExt.lotHolder.contactPoint.fio.firstName&&(n.tenderNewExt.landLeaseExt.lotHolder.contactPoint.name=s.joinName(n.tenderNewExt.landLeaseExt.lotHolder.contactPoint.fio)),f=0;f<r.items.length;f+=1)i=r.items[f],s.revertItemClassification(i),n.isCarriageLease&&i.itemExt&&(i.itemExt.carriageItemExt.carriageSubmissionPeriod.startDate=new Date(i.itemExt.carriageItemExt.carriageSubmissionPeriod.startDate),i.itemExt.carriageItemExt.carriageSubmissionPeriod.endDate=new Date(i.itemExt.carriageItemExt.carriageSubmissionPeriod.endDate),i.contractPeriod=i.itemExt.carriageItemExt.carriageSubmissionPeriod),i.deliveryAddress&&!i.deliveryAddress.region&&(i.deliveryAddress=null),n.isCbd3Dutch&&(r.minimalStep=null);return n.tenderNewExt&&n.tenderNewExt.cbd3DataExt&&(n.tenderNewExt.cbd3DataExt.bankAccountsNew=s.setBankAccountsNewLLE(n.tenderNewExt.cbd3DataExt.bankAccountsNew)),n.auctionPeriod&&!n.auctionPeriod.startDate&&(n.auctionPeriod=null),c()};c=function(){t.createTenderModel.lots[0].items.forEach(function(n){n.deliveryAddress=n.address&&!n.address.region?null:n.address;n.deliveryLocation=n.location;t.createTenderModel.isLegitimatePropertyLease&&(n.itemExt.legitimateItemExt.property=n.property)});console.log("updateTenderFinally",t.createTenderModel);var n=u.updateAuction(t.createTenderModel);return n.success(function(){abp.notify.success("Аукціон змінено!");t.navigateToAuctionPage()}).error(function(){abp.ui.clearBusy();console.log(arguments)}),n};t.navigateToAuctionPage=function(){t.createTenderModel.isLandLease||t.createTenderModel.isAppraisalInsider?i.path("/landLeaseDetails/"+h.id):i.path("/tenderDetailes/"+h.id)};t.isAllDataGood=function(n){var u,f,r,i;if(!n||n.isNewOrDraft==null||n.isNewOrDraft==undefined||(u=new Date,f=n.isNewOrDraft?u:new Date(n.rectificationPeriod.endDate),!n.minNumberOfQualifiedBidsIsValid||!n.guarantee.isValid||n.auctionPeriodRequired&&(!n.auctionPeriod||!n.auctionPeriod.startDate)||u>f||n.lots[0].items.length===0)||!n.isCbd3Dutch&&!n.isAppraisalInsider&&!n.lots[0].minimalStep.isValid||n.isNewOrDraft&&(s.isEnvironmentQA()?!1:n.auctionPeriod&&n.auctionPeriod.startDate&&!n.auctionPeriod.isGood)||n.isAppraisalInsider&&!n.tenderNewExt.insiderExt.isDutchStepsValid)return!1;for(r=0;r<n.lots[0].items.length;r+=1)if((i=n.lots[0].items[r],!n.isLandRentalOrSellEnglish&&(!i.classification||!i.classification.code))||i.itemExt&&i.itemExt.carriageItemExt&&(i.itemExt.carriageItemExt.carriageSubmissionPeriod&&i.itemExt.carriageItemExt.carriageSubmissionPeriod.invalid||i.itemExt.carriageItemExt.electronicApplicationPeriod&&i.itemExt.carriageItemExt.electronicApplicationPeriod.invalid)||n.isPropLease&&i.contractPeriod&&i.contractPeriod.invalid||n.isLandRentalOrSellEnglish&&i.additionalClassifications.length<2)return!1;return n.lots[0].value&&n.tenderNewExt&&n.tenderNewExt.cbd3DataExt&&n.tenderNewExt.cbd3DataExt.discount&&n.tenderNewExt.cbd3DataExt.discount.discountValue&&n.tenderNewExt.cbd3DataExt.discount.discountValue.amount&&n.tenderAttempts>1&&n.lots[0].value.amount>=n.tenderNewExt.cbd3DataExt.discount.discountValue.amount?!1:(n.isLegitimatePropertyLease||n.isLandRentalOrSellEnglish)&&t.showData&&t.showData.unitController&&(t.showData.unitController.redAdvanceNotify&&t.showData.unitController.showAdvance||t.showData.unitController.redLeaseNotify&&t.showData.unitController.showLease||!t.showData.unitController.isAdvancedBankAccounts)?!1:!0}}])}();angular.module("app").directive("registrationDetails",function(){return{restrict:"E",templateUrl:"/app/Main/views/tenders/basicSell/registrationDetails.cshtml",scope:{registration:"="},controller:["$scope","lookupService",function(n,t){n.registration.statusDesc=t.getRegistrationStateDiscription(n.registration.status)}]}}),function(){angular.module("app").controller("app.views.landSellPriorityForm",["$scope","abp.services.etender.tender","$stateParams","tenderHelperService",function(n,t,i,r){n.tenderId=i.tenderId;n.formname="landSellPriorityForm";n.procurementMethodType="landSell-priorityEnglish";abp.ui.setBusy();t.getLandRentalExt(n.tenderId).success(function(t){abp.ui.clearBusy();t&&(n.data={id:n.tenderId,tenderNewExt:{landRentalExt:{currentTenant:t.currentTenant,currentContractTime:t.currentContractTime,currentTenantValue:t.currentTenantValue}},lots:[{}],procurementMethodType:n.procurementMethodType,isLandSellPriorityEnglish:!0,IsLandRentalOrSellEnglish:!0})}).error(function(n){abp.ui.clearBusy();console.log(n)});n.save=function(){abp.ui.setBusy();t.updateLandRentalExt(n.data).success(function(){abp.notify.success("Аукціон змінено!");n.redirectToAuctionPage()}).error(function(n){abp.ui.clearBusy();console.log(n)})};n.redirectToAuctionPage=function(){r.redirectToAuctionPage(n.procurementMethodType,n.tenderId)}}])}()