Blame view

public/js/dist/vendors.df9e.96acc1efc6d3eed35d45.js 4.59 KB
e77200db5   nologostudio.ru   Initial commit
1
  (window.webpackJsonp=window.webpackJsonp||[]).push([["df9e"],{c1MJ:function(e,r){!function(e,r){"use strict";function t(e,t,n){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,o,i,c,l){function u(){$&&(n.cancel($),$=null),f&&(f.$destroy(),f=null),h&&(($=n.leave(h)).done(function(e){!1!==e&&($=null)}),h=null)}function s(){var i=e.current&&e.current.locals;if(r.isDefined(i&&i.$template)){i=a.$new();var c=e.current;h=l(i,function(e){n.enter(e,null,h||o).done(function(e){!1===e||!r.isDefined(d)||d&&!a.$eval(d)||t()}),u()}),(f=c.scope=i).$emit("$viewContentLoaded"),f.$eval(p)}else u()}var f,h,$,d=i.autoscroll,p=i.onload||"";a.$on("$routeChangeSuccess",s),s()}}}function n(e,r,t){return{restrict:"ECA",priority:-400,link:function(n,a){var o=t.current,i=o.locals;a.html(i.$template);var c=e(a.contents());if(o.controller){i.$scope=n;var l=r(o.controller,i);o.controllerAs&&(n[o.controllerAs]=l),a.data("$ngControllerController",l),a.children().data("$ngControllerController",l)}n[o.resolveAs||"$resolve"]=i,c(n)}}}var a,o,i=r.module("ngRoute",["ng"]).provider("$route",function(){function e(e,t){return r.extend(Object.create(e),t)}function t(e,r){var t=r.caseInsensitiveMatch,n={originalPath:e,regexp:e},a=n.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(e,r,t,n){return e="?"===n||"*?"===n?"?":null,n="*"===n||"*?"===n?"*":null,a.push({name:t,optional:!!e}),r=r||"",(e?"":r)+"(?:"+(e?r:"")+(n?"(.+?)":"([^/]+)")+(e||"")+")"+(e||"")}).replace(/([\/$*])/g,"\\$1"),n.regexp=new RegExp("^"+e+"$",t?"i":""),n}a=r.isArray,o=r.isObject;var n={};this.when=function(e,i){var c;if(c=void 0,a(i)){c=c||[];for(var l=0,u=i.length;l<u;l++)c[l]=i[l]}else if(o(i))for(l in c=c||{},i)"$"===l.charAt(0)&&"$"===l.charAt(1)||(c[l]=i[l]);return c=c||i,r.isUndefined(c.reloadOnSearch)&&(c.reloadOnSearch=!0),r.isUndefined(c.caseInsensitiveMatch)&&(c.caseInsensitiveMatch=this.caseInsensitiveMatch),n[e]=r.extend(c,e&&t(e,c)),e&&(l="/"===e[e.length-1]?e.substr(0,e.length-1):e+"/",n[l]=r.extend({redirectTo:e},t(l,c))),this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(t,a,o,i,l,u,s){function f(o){var i=g.current;(v=(p=function(){var t,o;return r.forEach(n,function(n,i){var c;if(c=!o){var l=a.path();c=n.keys;var u={};if(n.regexp)if(l=n.regexp.exec(l)){for(var s=1,f=l.length;s<f;++s){var h=c[s-1],$=l[s];h&&$&&(u[h.name]=$)}c=u}else c=null;else c=null;c=t=c}c&&((o=e(n,{params:r.extend({},a.search(),t),pathParams:t})).$$route=n)}),o||n.null&&e(n.null,{params:{},pathParams:{}})}())&&i&&p.$$route===i.$$route&&r.equals(p.pathParams,i.pathParams)&&!p.reloadOnSearch&&!m)||!i&&!p||t.$broadcast("$routeChangeStart",p,i).defaultPrevented&&o&&o.preventDefault()}function h(){var e=g.current,n=p;v?(e.params=n.params,r.copy(e.params,o),t.$broadcast("$routeUpdate",e)):(n||e)&&(m=!1,(g.current=n)&&n.redirectTo&&(r.isString(n.redirectTo)?a.path(d(n.redirectTo,n.params)).search(n.params).replace():a.url(n.redirectTo(n.pathParams,a.path(),a.search())).replace()),i.when(n).then($).then(function(a){n===g.current&&(n&&(n.locals=a,r.copy(n.params,o)),t.$broadcast("$routeChangeSuccess",n,e))},function(r){n===g.current&&t.$broadcast("$routeChangeError",n,e,r)}))}function $(e){if(e){var t=r.extend({},e.resolve);return r.forEach(t,function(e,n){t[n]=r.isString(e)?l.get(e):l.invoke(e,null,null,n)}),e=function(e){var t,n;return r.isDefined(t=e.template)?r.isFunction(t)&&(t=t(e.params)):r.isDefined(n=e.templateUrl)&&(r.isFunction(n)&&(n=n(e.params)),r.isDefined(n)&&(e.loadedTemplateUrl=s.valueOf(n),t=u(n))),t}(e),r.isDefined(e)&&(t.$template=e),i.all(t)}}function d(e,t){var n=[];return r.forEach((e||"").split(":"),function(e,r){if(0===r)n.push(e);else{var a=e.match(/(\w+)(?:[?*])?(.*)/),o=a[1];n.push(t[o]),n.push(a[2]||""),delete t[o]}}),n.join("")}var p,v,m=!1,g={routes:n,reload:function(){m=!0;var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,m=!1}};t.$evalAsync(function(){f(e),e.defaultPrevented||h()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw c("norout");e=r.extend({},this.current.params,e),a.path(d(this.current.$$route.originalPath,e)),a.search(e)}};return t.$on("$locationChangeStart",f),t.$on("$locationChangeSuccess",h),g}]}),c=r.$$minErr("ngRoute");i.provider("$routeParams",function(){this.$get=function(){return{}}}),i.directive("ngView",t),i.directive("ngView",n),t.$inject=["$route","$anchorScroll","$animate"],n.$inject=["$compile","$controller","$route"]}(window,window.angular)}}]);