(()=>{var __webpack_modules__={21148:()=>{"use strict";angular.module("ui.router.stateHelper",["ui.router"]).provider("stateHelper",["$stateProvider",function($stateProvider){var self=this;this.state=function(state){var args=Array.prototype.slice.apply(arguments),options={keepOriginalNames:!1,siblingTraversal:!1};return"boolean"==typeof args[1]?options.keepOriginalNames=args[1]:"object"==typeof args[1]&&angular.extend(options,args[1]),options.keepOriginalNames||function(state){state.parent&&(state.name=(angular.isObject(state.parent)?state.parent.name:state.parent)+"_"+state.name)}(state),$stateProvider.state(state),state.children&&state.children.length&&(state.children.forEach(function(childState){childState.parent=state,self.state(childState,options)}),options.siblingTraversal)&&function(state){state.children.forEach(function(childState,idx,array){array[idx+1]&&(childState.nextSibling=array[idx+1].name),array[idx-1]&&(childState.previousSibling=array[idx-1].name)})}(state),self},this.setNestedState=this.state,self.$get=angular.noop}])},79771:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";__webpack_require__=__webpack_require__(13638);__webpack_require__.lowercase=__webpack_require__.$$lowercase,module.exports=__webpack_require__.module("app.common",[])},88016:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}},exports=(Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771)));__importDefault(__webpack_require__(13638));__webpack_require__(36912),__webpack_require__(42016),__webpack_require__(33951),__webpack_require__(98357),__webpack_require__(61139),exports.default.config(["$httpProvider","flowFactoryProvider","$logProvider","$locationProvider","$qProvider",function($httpProvider,flowFactoryProvider,$logProvider,$locationProvider,$qProvider){$locationProvider.hashPrefix(""),$locationProvider.html5Mode({enabled:!0,requireBase:!1}),$httpProvider.defaults.headers.get||($httpProvider.defaults.headers.get={});$httpProvider.defaults.cache=!1,$logProvider.debugEnabled(!0),flowFactoryProvider.factory=function(opts){return new(__webpack_require__(46679))(opts)},$httpProvider.defaults.headers.get["If-Modified-Since"]="0",$qProvider.errorOnUnhandledRejections(!0)}])},61139:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}},exports=(Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771))),moment_1=__importDefault(__webpack_require__(58289)),underscore_1=__importDefault(__webpack_require__(52095));exports.default.filter("sanitize",["$sce",function($sce){return function(htmlCode){return $sce.trustAsHtml(htmlCode)}}]),exports.default.filter("ncTranslate",["i18n",function(i18n){return function(input,defaultValue){if(underscore_1.default.isArray(input)){var translatedItem=underscore_1.default.find(input,function(x){return x.localeEnum==i18n.language()&&x.value});if(translatedItem)return translatedItem.value;if(!0===defaultValue&&0=data.length)return"";c2=data[i+1],result+=String.fromCharCode((31&c)<<6|63&c2),i+=2}else{if(i+2>=data.length)return"";c2=data[i+1],c3=data[i+2],result+=String.fromCharCode((15&c)<<12|(63&c2)<<6|63&c3),i+=3}return result}}),exports.default.filter("filesize",function(){var units=["b","KB","MB","GB","TB","PB"];return function(bytes,precision){if(isNaN(parseFloat(bytes))||!isFinite(bytes))return"-";void 0===precision&&(precision=2);for(var unit=0;1e3<=bytes;)bytes/=1e3,unit++;return bytes.toFixed(+(precision="b"==units[unit]?0:precision))+" "+units[unit]}}),exports.default.filter("propsFilter",function(){return function(items,props){var out=[];return angular.isArray(items)?items.forEach(function(item){for(var itemMatches=!1,keys=Object.keys(props),i=0;iarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i"+transition.name),$rootScope.states.previous=from.name,$rootScope.states.current=transition.name,document.body.scrollTop=document.documentElement.scrollTop=0}),$transitions.onStart({},function(transition){var roles,to=transition.$to(),transition=transition.$from();if($rootScope.registration&&"userRegistration"===transition.name)return $q.resolve(!1);console.log("state transition start from "+transition.name+" ->"+to.name),to&&to.data&&to.data.roles&&(roles=to.data.roles,$rootScope.userRoleListPromise.then(function(roleList){0===underscore_1.default.intersection($rootScope.userRoleList,roles).length&&$state.go("start_home")}))}),$transitions.onError({},function(transition){var to=transition.$to(),from=transition.$from(),transition=(transition.toParams,transition.error());transition.type!==angular_ui_router_1.RejectType.IGNORED&&console.log("state transition error from "+from.name+" ->"+to.name+"\n("+JSON.stringify(to.params)+")\n Error: \n"+transition)}),$state.defaultErrorHandler(function(error){console.log(error)}),$rootScope.user={},$rootScope.representative={},$rootScope.userRoleList=[],$rootScope.refreshUser=function(){return $rootScope.userPromise=userService.getUser(!0).then(function(user){var dFormat,tFormat,ext;return $rootScope.user={},angular_1.default.extend($rootScope.user,user),angular_1.default.extend($rootScope.representative,user.representativeDetailsList?user.representativeDetailsList[0]:{id:user.id}),($rootScope.user.dateFormat||$rootScope.user.timeFormat)&&(dFormat=$rootScope.user.dateFormat?settings.USER_DATE_FORMATS[$rootScope.user.dateFormat].format:"YYYY-MM-DD",tFormat=$rootScope.user.timeFormat?settings.USER_HOURS_FORMATS[$rootScope.user.timeFormat].format:"HH:mm",ext=$rootScope.user.timeFormat&&settings.USER_HOURS_FORMATS[$rootScope.user.timeFormat].ext?" "+settings.USER_HOURS_FORMATS[$rootScope.user.timeFormat].ext:"",setDatesFormat(dFormat,dFormat&&tFormat?"".concat(dFormat," ").concat(tFormat,":ss").concat(ext):void 0,dFormat&&tFormat?"".concat(dFormat," ").concat(tFormat).concat(ext):void 0)),$rootScope.user.numberFormat&&setNumbersFormat(settings.USER_NUMBERS_FORMATS[$rootScope.user.numberFormat].separator,settings.USER_NUMBERS_FORMATS[$rootScope.user.numberFormat].commaType),user}),$rootScope.userPromise},$rootScope.refreshUser(),$rootScope.userPromise.then(function(user){return user.locale&&!i18n.savedLanguage()&&i18n.setLanguage(user.locale),user}),$rootScope.loggedIn=function(user){return 0(limit||200)&&(-1!==text.lastIndexOf(" ",limit||200)?text=text.substring(0,text.lastIndexOf(" ",limit||200)):text.lastIndexOf(String.fromCharCode(160),limit||200)&&(text=text.substring(0,text.lastIndexOf(String.fromCharCode(160),limit||200))),text+="..."),text},$rootScope.partsOfSpeech=["bdv.","dkt.","dll.","dlv.","išt.","įv.","jng.","jst.","pdlv.","pol.","prv.","psdlv.","sktv.","vksm.","none"],$rootScope.stateGo=function(name,params){$state.go(name,params).then(function(result){return result},function(error){console.log(error)})},$rootScope.cutBeforeLimit=function(text,length){var nonBreakingSpace,cutIndex;return text=text.length>(length=length||200)&&((cutIndex=text.lastIndexOf(" ",length))<0&&(nonBreakingSpace=String.fromCharCode(160),cutIndex=text.lastIndexOf(nonBreakingSpace,length)),0<=cutIndex)?text.substring(0,cutIndex)+"...":text},$rootScope.cutHtml=function(text,length){length=length||200;var filteredParts,cleanText=(text=text||"").match(/]+>?/g),cleanText=underscore_1.default.map(cleanText,function(element){return{isHtml:element.startsWith("<"),value:element}}),plainTextLength=0,finalText=(cleanText.forEach(function(element){element.isHtml||(plainTextLength+=element.value.length),element.wholePlainTextLength=plainTextLength}),"");return length=length?(value=item.value,startIndex=length+value.length-item.wholePlainTextLength,(cutIndex=value.lastIndexOf(" ",startIndex))<0&&(nonBreakingSpace=String.fromCharCode(160),cutIndex=value.lastIndexOf(nonBreakingSpace,startIndex)),finalText+=0<=cutIndex?value.substring(0,cutIndex)+"...":value):finalText+=item.value})):finalText=text,finalText},$rootScope.htmlToPlaintext=function(text){return text?String(text).replace(/<[^>]+>/gm,""):""},$rootScope.getCategoryListConfig=function(selectId){return{setLevel:function(list,level){var _this2=this,orderedList=(level=level||0,[]);return underscore_1.default.each(list,function(x){orderedList.push(x),x.level=level,x.childList&&0length?value.substring(0,length-1)+"...":value},$rootScope.logAction=function(resourceUuid,caseUuid,resourceType,type){if($rootScope.isAccessibleByUser("USER"))return documentService.events.save([{type:type,resourceType:resourceType,resourceUuid:resourceUuid,action:"ACTIVE",caseUuid:caseUuid}]).then(function(data){return data.details})}}])},42016:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}},exports=(Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771))),__importDefault={DOCUMENT:{MAIN:1,DOCUMENT_TYPE:2,LEVEL:4,FIELDS:8,USER:16,PARENT:32,CATEGORY:64,FILE_CONTENT:128,CHILD:256,ELASTIC:2048},EVENT_VIEW_TYPES:{MAIN:0,USER:1,DOCUMENT:2,REPRESENTATIVE:4},CHAT:{MAIN:0,MESSAGE:1,MESSAGE_OWNER:2,ASSIGNED_USER:4},CATEGORY:{HEADER:1,CHILD:2,USER:4},CASE:{MAIN:0,CREDITOR:1,MANAGER:2,DOCUMENT:4,COURT:8,REQUIREMENT:16,PROPERTY:32,ESTIMATE_AND_COST_REPORT:64,DEBTOR:128,FIRST_CREDITOR_MEETING:256,SAVE_MAIN:512,ELASTIC:2048,ADDITIONAL_DOCUMENT:4096,FIELDS_DOCUMENT:8192,EDIT_FIELDS_DOCUMENT:16384,MASK:{CALENDAR:1,REPRESENTATIVE:2,PARTY:4,DOCUMENT:8,FIELD:16,ESTIMATE:32,PROPERTY:64,COMMENT:128,CASE_LOG:256,CASE_MESSAGES:512,MANAGEMENT:1024,DOCUMENT_VIEW:2048}},CASE_PARTY:{MAIN:0,USER:1},MANAGER:{MAIN:0,USER:1,INSURANCE:2,SANCTION:4,EMPLOYER:8},DEBTOR:{MAIN:0,USER:1},CALENDAR_EVENT:{MAIN:0,OWNER:8,CASE:16,RECIPIENT:32},PROPERTY:{MAIN:0,CASE:1,CATEGORY:2},PROPERTY_EVENT:{MAIN:0,PROPERTY:1},ESTIMATE_AND_COST_REPORT:{MAIN:0,DATE_TILL:1},CASE_MESSAGE:{MAIN:0,ATTACHMENT:1,SENDER:2},PROPERTY_REPORT:{MAIN:0,USER:1,FILE:2},SANCTION:{MAIN:0,MANAGER:1},REQUIREMENT:{MAIN:0,CREDITOR:1,CASE:2,EVENT:4,UPDATE_TOTAL:2048},REQUIREMENT_EVENT:{MAIN:0,REQUIREMENT:1,RECEIVING_CREDITOR:2},CASE_ATTACHMENT:{MAIN:0,CONTENT:1},REPRESENTATIVE:{MAIN:1,ROLE:2,REPRESENTED_USER:4,FILE:16},IMPORT_TASK:{EXECUTION:1,LOG:2},ADVERT:{MAIN:0,ONLY_STATUS:-1,ONLY_COUNT:-2,CASE:2},ES_RESOURCE:{CASE:1,MANAGER:2},USER:{MAIN:1,REPRESENTATIVE:2,USER_GROUP:4,NOTIFICATIONTYPE:8,LOGIN:16,MESSAGE_TYPE:32},JOB:{HISTORY:1}},__webpack_require__={LOGOUT_URL:"./",DATE_FORMAT:"yyyy-MM-dd",DATE_MONTH_DF_FORMAT:"yyyy-MM",DATE_TIME__INPUT_FORMAT:"YYYY-MM-DD HH:mm:ss",DATE_TIME_MINUTE__INPUT_FORMAT:"YYYY-MM-DD HH:mm",DATE__INPUT_FORMAT:"YYYY-MM-DD",DATE_TIME_FORMAT:"yyyy-MM-dd HH:mm:ss",DATE_TIME_MINUTE_FORMAT:"yyyy-MM-dd HH:mm",DATE_MONTH_FORMAT:"YYYY-MM",TIME_FORMAT:"HH:mm",USER_DATE_FORMATS:{YEAR_FIRST:{format:"YYYY-MM-DD"},DAY_FIRST:{format:"DD-MM-YYYY"},MONTH_FIRST:{format:"MM-DD-YYYY"}},USER_HOURS_FORMATS:{"12_HOUR":{format:"hh:mm",ext:"A"},"24_HOUR":{format:"HH:mm"}},USER_NUMBERS_FORMATS:{DECIMAL_COMMA_THOUSANDS_DOT:{separator:".",commaType:","},DECIMAL_DOT_THOUSANDS_COMMA:{separator:",",commaType:"."},DECIMAL_COMMA:{separator:"",commaType:","}},TABLE_PAGE_SIZE:10,TABLE_PAGE_COUNT:5,TABLE_START_PAGE:1,TABLE_PAGE_COUNTS:[10,20,50,100],SELECT_PAGE_SIZE:5,PUBLIC_APP_HTML:"public",VALUE_PLACEHOLDER:"{value}",KEYWORD_SEPARATOR:";",LAST_LOGIN_COOKIE:"showlastlogin",DOCUMENT_TEMPLATES:{field_info:"html/document/document-info-field.html",field_info_no_label:"html/document/document-info-field-no-label.html"},GALLERY_CONFIG:{template:"modules/gallery/view/gallery-list-modal.html",listController:"GalleryListModalController"},DOCUMENT_CONFIG:{attachmentField:"attachment"},NEWS_CONFIG:{titleField:"Title",bodyField:"Body",headerImageField:"HeaderImage",galleryImageField:"GalleryImage"},TYPEAHEAD_WAIT_MS:400,LANGUAGES:[{name:"lt"},{name:"en"},{name:"de"},{name:"fr"},{name:"ru"}],HOME_PATH:"/home/main",MAX_FILE_SIZE_IN_KB:20480,ACCEPTED_FILE_TYPES:".gif, .tiff, .jpg, .png, .doc, .docx, .pdf, .mp3",IMPORT_TYPE_LIST:["CASE_PARTY","REQUIREMENT","PROPERTY"],DOCUMENT_TYPE_VIEW_TYPES:{MAIN:1,GROUP:2,STRUCTURE:4},DOCUMENT_GROUP:{EDITABLE_LIST:["MSA","MPR","MPA"],ADMIN_EDITABLE_LIST:["MSA","MSP","MSU","MPR","MPA"],REQUEST:"REQUEST",CASE_ATTACHMENT:"CASE_ATTACHMENT"},DOCUMENT_TYPE:{AREA:"Teisinio reguliavimo sritis",TASK_TYPE:"Užduočių klasifikatorius",ATTACHMENT:"Priedas",ACTION_TYPE:"Įvykių tipai",PORTAL_CONTENT:"Portalo informacija",THEME:"Temos aprašymas",LEGAL:"Teisės aktas",FAQ:"DUK",LINK:"Nuoroda",BRANCHES:"Struktūriniai padaliniai",NEWS:"Naujiena",VIOLATION:"Pažeidimas",COURT_HOUSE:"Teismo rūmų klasifikatorius",CREDITOR_MEETING_TYPE:"Kreditorių susirinkimo tipas",PROPERTY_CATEGORY:"Turto kategorija",POSITION:"Pareigos",TERRITORY:"Teritorijos",SALE_TYPE:"Pardavimo būdas",PROPERTY_TYPE:"Turto tipas",ACCOUNTED_TYPE:"Įkeitimo požymis",CASE_REPORT_TYPE:"Bylos ataskaitos tipas",CASE_REPORT_PERIOD:"Bylos ataskaitos periodas",ORGANIZATION_TYPE:"Įmonių tipai",ACTIVITY:"Veikla",COUNTY:"Apskritys",MUNICIPALITY:"Savivaldybės"},ACTION_TYPE_CLASSIF:{MEDIATION:"MEDIATION"},MESSAGE_VIEW_TYPES:{MAIN:1,NOTIFICATION:2,FILE:4,SENDER:8},MENU_VIEW_TYPES:{MAIN:1,PERMISSION:2,CHILDREN:4},MESSAGE_TYPE_LIST:["CASE_ADMINISTRATION","ATA_CASE_REPORTS","BYL_CASE_PARTICIPANTS","DOK_CASE_DOCUMENTS","KAL_CASE_CALENDAR_EVENTS","TEI_CASE_COURT_DECISIONS","TUR_CASE_PROPERTY_ADMINISTRATION","ADM_CASE_ESTIMATE_AND_COST_ADMINISTRATION","CASE_ADMINISTRATOR_MESSAGE"],REQUIREMENT_QUEUE_TYPE:{COLLATERAL_HOLDER:"Įkaito turėtojas",QUEUE_1:"I eilė",QUEUE_2:"II eilė",QUEUE_3:"III eilė"},DOCUMENT_PRIVATE_NAME_PREFIX:"PR-",DOCUMENT_EDIT_SETTING:{SIMPLE:{HIDE_BREADCRUMB:!0,HIDE_HEADER:!0,HIDE_DATE:!0},NEWS:{HIDE_BREADCRUMB:!1,HIDE_HEADER:!1,HIDE_DATE:!0},FULL:{HIDE_BREADCRUMB:!1,HIDE_HEADER:!1,HIDE_DATE:!1}},DOCUMENT_SETTING:{DEFAULT:{CATEGORY:!0,USER:!0,DATE:!0,STATE:!0,NAME:!0,CHILDREN_INDICATOR:!1,VIEW_TYPE:__importDefault.DOCUMENT.MAIN,HIDE_SIGN_BUTTON:!0},CLASSIF:{CATEGORY:!1,USER:!1,DATE:!1,STATE:!1,NAME:!0,CHILDREN_INDICATOR:!0,VIEW_TYPE:__importDefault.DOCUMENT.MAIN+__importDefault.DOCUMENT.CHILD},CONTENT:{CATEGORY:!0,USER:!1,DATE:!1,STATE:!1,NAME:!0,VIEW_TYPE:__importDefault.DOCUMENT.MAIN+__importDefault.DOCUMENT.DOCUMENT_TYPE+__importDefault.DOCUMENT.FIELDS,HIDE_SIGN_BUTTON:!0}},COLLECTABLE_DEBT_LIST:["TEMPORARY_PROPERTY_SUMS_RECEIVED_IN_ONE_YEAR","PERMANENT_PROPERTY_FINANCIAL_SUMS_RECEIVED_AFTER_ONE_YEAR"],ATTACHMENT_TYPE_LIST:["Asmens tapatybę patvirtinančio dokumento kopija","Dokumentas, įrodantis, kad pagal Europos Sąjungos valstybės narės ar Europos ekonominės erdvės valstybės teisės aktus tos valstybės kompetentinga institucija yra suteikusi teisę teikti mediacijos paslaugas","Aukštojo universitetinio išsilavinimo diplomas","Mokymų mediacijos tema išklausymą patvirtinantis dokumentas","Patvirtinimas, kad asmuo atitinka nepriekaištingos reputacijos reikalavimą","Vestus mokymus mediacijos tema patvirtinantis dokumentas","Dokumentas, patvirtinantis valstybės rinkliavos už įrašymą į lobistų sąrašą sumokėjimą","Notarų, advokatų, antstolių pažymėjimai, paskyrimo įsakymai, kiti panašūs dokumentai","Kiti, su įrašymu į lobistų sąrašą susiję dokumentai"],USER_TYPE:{SITE:"SITE",CLIENT:"CLIENT"},LOCALE:{LT:"lt"},RESOURCE_STATUS:{NEW:"NEW",REJECTED:"REJECTED",SUBMITTED:"SUBMITTED",ACTIVE:"ACTIVE",DELETED:"DELETED",ARCHIVE:"ARCHIVE",ERROR:"ERROR"},ROLES:{},ACCESS_RIGHT:{NO_RIGHT:"NO_RIGHT",VIEW:"VIEW",UPLOAD:"UPLOAD",EDIT:"EDIT"},VIEW_TYPES:__importDefault,DEFAULT_GUEST_UUID:"00000000-0000-0000-0000-000000000001",KIBANA:{DASHBOARD:{LEGAL_CASES:"JADashboard",INDIVIDUAL_CASES:"FADashboard",RESTRUCTURIZATION_CASES:"RESTRUCTURIZATIONDashboard",PROPERTY_DYNAMIC:"PropertyDashboard",REQUIREMENT_DYNAMIC:"RequirementDashboard",COST_DYNAMIC_YEARLY:"CostYearlyDashboard",COST_DYNAMIC_MONTHLY:"CostDashboard",INDIVIDUAL_INFOGRAPHICS:"INDIVIDUAL_INFOGRAPHICS",LEGAL_INFOGRAPHICS:"LEGAL_INFOGRAPHICS",RESTRUCTURIZATION_INFOGRAPHICS:"RESTRUCTURIZATION_INFOGRAPHICS"},BASE_URL:"/kibana/app/dashboards?auth_provider_hint=anonymous1#/view/"}};exports.default.constant("settings",__webpack_require__),__importDefault.CASE.FOR_LIST=__importDefault.CASE.MAIN+__importDefault.CASE.DEBTOR+__importDefault.CASE.MANAGER+__importDefault.CASE.COURT,__importDefault.CASE.FOR_EDIT=__importDefault.CASE.FOR_LIST+__importDefault.CASE.CREDITOR+__importDefault.CASE.REQUIREMENT+__importDefault.CASE.DOCUMENT+__importDefault.CASE.PROPERTY+__importDefault.CASE.ESTIMATE_AND_COST_REPORT+__importDefault.CASE.FIELDS_DOCUMENT+__importDefault.CASE.EDIT_FIELDS_DOCUMENT+__importDefault.CASE.FIRST_CREDITOR_MEETING},23191:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}},exports=(Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771)));__importDefault(__webpack_require__(52095));__webpack_require__(72656),__webpack_require__(93363),__webpack_require__(2775),__webpack_require__(77777),__webpack_require__(73501),exports.default.controller("MainController",["$scope","$rootScope","i18n","authenticationService","$stateParams","$location","$state","$log","customerService","loginTypeService","socketService","timeService",function($scope,$rootScope,i18n,authenticationService,$stateParams,$location,$state,$log,customerService,loginTypeService,socketService,timeService){$scope.openUserInfoPage=function(){$rootScope.router.openUserInfoPage()},$scope.chatList=[],$rootScope.$state=$state,$rootScope.$stateParams=$stateParams}])},32009:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771)).default.directive("bindWithCompile",["$compile",function($compile){return{link:function(scope,element,attrs){scope.$watch(attrs.bindWithCompile,function(html){element.html(html),$compile(element.contents(),null,-1/0)(scope)})}}}])},70645:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}},exports=(Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771))),angular_1=__importDefault(__webpack_require__(13638)),underscore_1=__importDefault(__webpack_require__(52095));exports.default.provider("dialog",[function(){function getParameters(controller,template,options,_data){options=underscore_1.default.isString(options)?{size:options}:options;var modalOptions={};return angular_1.default.extend(modalOptions,defaultOptions,{controller:controller,template:template,resolve:{data:function(){return _data}}},options),modalOptions}var defaultOptions={animation:!0,backdrop:!0,size:"lg",windowTopClass:"inmodal"},configController=["$scope","$uibModalInstance","data",function($scope,$modalInstance,data){$scope.data=data,$scope.submit=function(message){$modalInstance.close(message||!0)},$scope.close=function(){$modalInstance.close(!1)}}],reportTypeSelectController=["$scope","$uibModalInstance",function($scope,$uibModalInstance){$scope.reportTypes=["PDF","DOCX","XLSX"],$scope.selected=null,$scope.select=function(){$uibModalInstance.close($scope.selected)},$scope.close=function(){$uibModalInstance.dismiss()}}],reportNumberController=["$scope","$uibModalInstance",function($scope,$uibModalInstance){$scope.params={reportNumber:null},$scope.select=function(){$uibModalInstance.close($scope.params.reportNumber)},$scope.close=function(){$uibModalInstance.dismiss()}}];this.$get=["$uibModal","$q",function($modal,$q){return{create:function(templateUrl,controller,data,options){controller=getParameters(controller,templateUrl,options,data);return $modal.open(controller).result},createNoEscape:function(templateUrl,controller,data,options){return this.create(templateUrl,controller,data,angular_1.default.extend({},options,{backdrop:"static",keyboard:!1}))},createWithResolve:function(templateUrl,controller,resolve,options){return this.create(templateUrl,controller,null,angular_1.default.extend({},options,{resolve:resolve}))},createWithResolveNoEscape:function(templateUrl,controller,resolve,options){return this.create(templateUrl,controller,null,angular_1.default.extend({},options,{resolve:resolve,backdrop:"static",keyboard:!1}))},confirm:function(legend,translated,options,additionalParameters){return this.confirmWithHtml(legend,translated,options,__webpack_require__(99948),additionalParameters)},confirmWithHtml:function(legend,translated,options,html,additionalParameters){console.log(legend);var defer=$q.defer(),legend=angular_1.default.extend({legend:legend,translated:translated},angular_1.default.isObject(additionalParameters)?additionalParameters:{}),translated=getParameters(configController,html,options,legend);return $modal.open(translated).result.then(function(response){defer.resolve(response)},function(){defer.reject(!1)}),defer.promise},confirmWithMessage:function(message,fn,translated,additionalParameters){this.confirm(message,translated,"sm",additionalParameters).then(function(result){result&&fn()})},confirmWithMessageLg:function(message,fn){this.confirm(message,!1,"lg").then(function(result){result&&fn()})},confirmWithMessageAndPromise:function(message,additionalParameters){return this.confirm(message,!1,"sm",additionalParameters).then(function(result){return!!result})},confirmDelete:function(fn){this.confirmWithMessage("msg.confirm.delete",fn)},confirmPropertyDelete:function(fn){this.confirmWithMessage("msg.confirm.delete.property",fn)},confirmPropertyEventDelete:function(fn){this.confirmWithMessage("msg.confirm.delete.propertyEvent",fn)},confirmDocumentNotRelevant:function(fn){this.confirmWithMessage("msg.confirm.document.markNotRelevant",fn)},confirmReturnWithNoSave:function(fn){this.confirmWithMessage("msg.confirm.returnWithNoSave",fn)},confirmEventCancel:function(fn){this.confirmWithMessage("msg.confirm.cancel.event",fn)},selectReportType:function(){var defer=$q.defer(),modalOptions=getParameters(reportTypeSelectController,__webpack_require__(24979),"sm",null);return $modal.open(modalOptions).result.then(function(reportType){defer.resolve(reportType)},function(){defer.reject()}),defer.promise},enterReportNumber:function(){var defer=$q.defer(),modalOptions=getParameters(reportNumberController,__webpack_require__(62458),"sm",null);return $modal.open(modalOptions).result.then(function(reportType){defer.resolve(reportType)},function(){defer.reject()}),defer.promise}}}]}])},55339:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}},exports=(Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771))),helpers_1=(__importDefault(__webpack_require__(52095)),__importDefault(__webpack_require__(38594))),blueimp_gallery_1=__importDefault(__webpack_require__(3012));exports.default.directive("ncPicture",["$rootScope","$timeout",function($rootScope,$timeout){return{restrict:"E",link:function($scope,element,attrs){$scope.maxSize&&($scope.maxSize=parseInt($scope.maxSize)),$scope.disabled=$scope.$eval(attrs.ngDisabled),$scope.pictures=[],$scope.newPictures=[],$scope.open=function(index){(0,blueimp_gallery_1.default)($scope.pictures,{container:"#blueimp-gallery",index:index,hidePageScrollbars:!1,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,urlProperty:"link"})},$scope.remove=function(pic){pic=$scope.pictureList.indexOf(pic);-1$scope.maxSize?$rootScope.addErrorMessage("msg.file.picture.tooBig",[helpers_1.default.formatSize($scope.maxSize)]):((reader=new window.FileReader).readAsDataURL(file),reader.onloadend=function(){var base64data=reader.result,base64data=base64data.substr(base64data.indexOf(",")+1),base64data={name:file.name,type:file.type,content:{bytes:base64data}};$scope.pictureList.push(base64data),$timeout(function(){$scope.$apply()})}))},$scope.$watch("pictureList",function(){for(var i in $scope.pictures.length=0,$scope.newPictures.length=0,$scope.pictureList){var link,i=$scope.pictureList[i];i.id?(link=$scope.link.uriExpand({id:i.id}),$scope.pictures.push({link:link,pic:i})):$scope.newPictures.push(i)}},!0)},template:'\t
  • \t\t{{ pic.name }} \t
\t\t\t\t\t\t\t\t\t\t\t
',scope:{pictureList:"=ngModel",link:"@",maxSize:"@"}}}])},82330:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var $=__webpack_require__(71959),__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),__importDefault(__webpack_require__(79771)).default.directive("fileDownload",["$compile",function($compile){return{restrict:"A",link:function(scope,iElement,iAttrs){scope.$on("downloadFile",function(e,url){var iFrame=iElement.find("iframe");iFrame&&0