This repository was archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathselect.min.js
More file actions
9 lines (9 loc) · 52.4 KB
/
select.min.js
File metadata and controls
9 lines (9 loc) · 52.4 KB
1
2
3
4
5
6
7
8
9
/*!
* ui-select-bs4
* https://github.com/bmontgomery/ui-select
* Version: 0.19.8 - 2019-08-12T21:29:30.322Z
* License: MIT
*/
!function(){"use strict";function e(e){return angular.isUndefined(e)||null===e}var t={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(e){var s=e.which;switch(s){case t.COMMAND:case t.SHIFT:case t.CTRL:case t.ALT:return!0}return!!(e.metaKey||e.ctrlKey||e.altKey)},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&e<=123},isVerticalMovement:function(e){return~[t.UP,t.DOWN].indexOf(e)},isHorizontalMovement:function(e){return~[t.LEFT,t.RIGHT,t.BACKSPACE,t.DELETE].indexOf(e)},toSeparator:function(e){var s={ENTER:"\n",TAB:"\t",SPACE:" "}[e];return s?s:t[e]?void 0:e}};void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],s=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(s.bind(t)(e))return t;t=t.parentElement}return!1});var s=0,l=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return s++},appendToBody:!1,spinnerEnabled:!1,spinnerClass:"glyphicon glyphicon-refresh ui-select-spin",backspaceReset:!0}).service("uiSelectMinErr",function(){var e=angular.$$minErr("ui.select");return function(){var t=e.apply(this,arguments),s=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(s)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,s,l,c){c(e,function(e){t.append(e)})}}}).filter("highlight",function(){function e(e){return(""+e).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,s){return s&&t?(""+t).replace(new RegExp(e(s),"gi"),'<span class="ui-select-highlight">$&</span>'):t}}).factory("uisOffset",["$document","$window",function(e,t){return function(s){var l=s[0].getBoundingClientRect();return{width:l.width||s.prop("offsetWidth"),height:l.height||s.prop("offsetHeight"),top:l.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:l.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}]);l.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(e,t,s,l,c){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-choices");var s=t.parent().attr("theme")||e.theme;return s+"/choices.tpl.html"},compile:function(l,i){if(!i.repeat)throw s("repeat","Expected 'repeat' expression.");var n=i.groupBy,a=i.groupFilter;if(n){var r=l.querySelectorAll(".ui-select-choices-group");if(1!==r.length)throw s("rows","Expected 1 .ui-select-choices-group but got '{0}'.",r.length);r.attr("ng-repeat",t.getGroupNgRepeatExpression())}var o=t.parse(i.repeat),u=l.querySelectorAll(".ui-select-choices-row");if(1!==u.length)throw s("rows","Expected 1 .ui-select-choices-row but got '{0}'.",u.length);u.attr("ng-repeat",o.repeatExpression(n)).attr("ng-if","$select.open");var d=l.querySelectorAll(".ui-select-choices-row-inner");if(1!==d.length)throw s("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",d.length);d.attr("uis-transclude-append","");var p=c.document.addEventListener?u:d;return p.attr("ng-click","$select.select("+o.itemName+",$select.skipFocusser,$event)"),function(t,s,c,i){i.parseRepeatAttr(c.repeat,n,a),i.disableChoiceExpression=c.uiDisableChoice,i.onHighlightCallback=c.onHighlight,i.minimumInputLength=parseInt(c.minimumInputLength)||0,i.dropdownPosition=c.position?c.position.toLowerCase():e.dropdownPosition,t.$watch("$select.search",function(e){e&&!i.open&&i.multiple&&i.activate(!1,!0),i.activeIndex=i.tagging.isActivated?-1:0,!c.minimumInputLength||i.search.length>=c.minimumInputLength?i.refresh(c.refresh):i.items=[]}),c.$observe("refreshDelay",function(){var s=t.$eval(c.refreshDelay);i.refreshDelay=void 0!==s?s:e.refreshDelay}),t.$watch("$select.open",function(e){e?(l.attr("role","listbox"),i.refresh(c.refresh)):s.removeAttr("role")})}}}}]),l.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(s,l,c,i,n,a,r,o,u,d,p){function h(e,t,s){if(e.findIndex)return e.findIndex(t,s);for(var l,c=Object(e),i=c.length>>>0,n=0;n<i;n++)if(l=c[n],t.call(s,l,n,c))return n;return-1}function g(){x.resetSearchInput&&(x.search=y,x.selected&&x.items.length&&!x.multiple&&(x.activeIndex=h(x.items,function(e){return angular.equals(this,e)},x.selected)))}function f(e,t){var s,l,c=[];for(s=0;s<t.length;s++)for(l=0;l<e.length;l++)e[l].name==[t[s]]&&c.push(e[l]);return c}function v(e,t){var s=S.indexOf(e);t&&s===-1&&S.push(e),!t&&s>-1&&S.splice(s,1)}function $(e){return S.indexOf(e)>-1}function m(e){function t(e,t){var s=l.indexOf(e);t&&s===-1&&l.push(e),!t&&s>-1&&l.splice(s,1)}function s(e){return l.indexOf(e)>-1}if(e){var l=[];x.isLocked=function(e,l){var c=!1,i=x.selected[l];return i&&(e?(c=!!e.$eval(x.lockChoiceExpression),t(i,c)):c=s(i)),c}}}function b(e){var s=!0;switch(e){case t.DOWN:if(!x.open&&x.multiple)x.activate(!1,!0);else if(x.activeIndex<x.items.length-1)for(var l=++x.activeIndex;$(x.items[l])&&l<x.items.length;)x.activeIndex=++l;break;case t.UP:var c=0===x.search.length&&x.tagging.isActivated?-1:0;if(!x.open&&x.multiple)x.activate(!1,!0);else if(x.activeIndex>c)for(var i=--x.activeIndex;$(x.items[i])&&i>c;)x.activeIndex=--i;break;case t.TAB:x.multiple&&!x.open||x.select(x.items[x.activeIndex],!0);break;case t.ENTER:x.open&&(x.tagging.isActivated||x.activeIndex>=0)?x.select(x.items[x.activeIndex],x.skipFocusser):x.activate(!1,!0);break;case t.ESC:x.close();break;default:s=!1}return s}function w(){var e=l.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw r("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(x.activeIndex<0)){var s=t[x.activeIndex],c=s.offsetTop+s.clientHeight-e[0].scrollTop,i=e[0].offsetHeight;c>i?e[0].scrollTop+=c-i:c<s.clientHeight&&(x.isGrouped&&0===x.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=s.clientHeight-c)}}var x=this,y="";if(x.placeholder=o.placeholder,x.searchEnabled=o.searchEnabled,x.sortable=o.sortable,x.refreshDelay=o.refreshDelay,x.paste=o.paste,x.resetSearchInput=o.resetSearchInput,x.refreshing=!1,x.spinnerEnabled=o.spinnerEnabled,x.spinnerClass=o.spinnerClass,x.removeSelected=o.removeSelected,x.closeOnSelect=!0,x.skipFocusser=!1,x.search=y,x.activeIndex=0,x.items=[],x.open=!1,x.focus=!1,x.disabled=!1,x.selected=void 0,x.dropdownPosition="auto",x.focusser=void 0,x.multiple=void 0,x.disableChoiceExpression=void 0,x.tagging={isActivated:!1,fct:void 0},x.taggingTokens={isActivated:!1,tokens:void 0},x.lockChoiceExpression=void 0,x.clickTriggeredSelect=!1,x.$filter=i,x.$element=l,x.$animate=function(){try{return d.get("$animate")}catch(e){return null}}(),x.searchInput=l.querySelectorAll("input.ui-select-search"),1!==x.searchInput.length)throw r("searchInput","Expected 1 input.ui-select-search but got '{0}'.",x.searchInput.length);x.isEmpty=function(){return e(x.selected)||""===x.selected||x.multiple&&0===x.selected.length},x.activate=function(e,t){if(x.disabled||x.open)x.open&&!x.searchEnabled&&x.close();else{t||g(),s.$broadcast("uis:activate"),x.open=!0,x.activeIndex=x.activeIndex>=x.items.length?0:x.activeIndex,x.activeIndex===-1&&x.taggingLabel!==!1&&(x.activeIndex=0);var i=l.querySelectorAll(".ui-select-choices-content"),n=l.querySelectorAll(".ui-select-search");if(x.$animate&&x.$animate.on&&x.$animate.enabled(i[0])){var a=function(t,s){"start"===s&&0===x.items.length?(x.$animate.off("removeClass",n[0],a),c(function(){x.focusSearchInput(e)})):"close"===s&&(x.$animate.off("enter",i[0],a),c(function(){x.focusSearchInput(e)}))};x.items.length>0?x.$animate.on("enter",i[0],a):x.$animate.on("removeClass",n[0],a)}else c(function(){x.focusSearchInput(e),!x.tagging.isActivated&&x.items.length>1&&w()})}},x.focusSearchInput=function(e){x.search=e||x.search,x.searchInput[0].focus()},x.findGroupByName=function(e){return x.groups&&x.groups.filter(function(t){return t.name===e})[0]},x.parseRepeatAttr=function(e,t,l){function c(e){var c=s.$eval(t);if(x.groups=[],angular.forEach(e,function(e){var t=angular.isFunction(c)?c(e):e[c],s=x.findGroupByName(t);s?s.items.push(e):x.groups.push({name:t,items:[e]})}),l){var i=s.$eval(l);angular.isFunction(i)?x.groups=i(x.groups):angular.isArray(i)&&(x.groups=f(x.groups,i))}x.items=[],x.groups.forEach(function(e){x.items=x.items.concat(e.items)})}function i(e){x.items=e||[]}x.setItemsFn=t?c:i,x.parserResult=a.parse(e),x.isGrouped=!!t,x.itemProperty=x.parserResult.itemName;var n=x.parserResult.source,o=function(){var e=n(s);s.$uisSource=Object.keys(e).map(function(t){var s={};return s[x.parserResult.keyName]=t,s.value=e[t],s})};x.parserResult.keyName&&(o(),x.parserResult.source=u("$uisSource"+x.parserResult.filters),s.$watch(n,function(e,t){e!==t&&o()},!0)),x.refreshItems=function(e){e=e||x.parserResult.source(s);var t=x.selected;if(x.isEmpty()||angular.isArray(t)&&!t.length||!x.multiple||!x.removeSelected)x.setItemsFn(e);else if(void 0!==e&&null!==e){var l=e.filter(function(e){return angular.isArray(t)?t.every(function(t){return!angular.equals(e,t)}):!angular.equals(e,t)});x.setItemsFn(l)}"auto"!==x.dropdownPosition&&"up"!==x.dropdownPosition||s.calculateDropdownPos(),s.$broadcast("uis:refresh")},s.$watchCollection(x.parserResult.source,function(e){if(void 0===e||null===e)x.items=[];else{if(!angular.isArray(e))throw r("items","Expected an array but got '{0}'.",e);x.refreshItems(e),angular.isDefined(x.ngModel.$modelValue)&&(x.ngModel.$modelValue=null)}})};var E;x.refresh=function(e){void 0!==e&&(E&&c.cancel(E),E=c(function(){if(s.$select.search.length>=s.$select.minimumInputLength){var t=s.$eval(e);t&&angular.isFunction(t.then)&&!x.refreshing&&(x.refreshing=!0,t["finally"](function(){x.refreshing=!1}))}},x.refreshDelay))},x.isActive=function(e){if(!x.open)return!1;var t=x.items.indexOf(e[x.itemProperty]),s=t==x.activeIndex;return!(!s||t<0)&&(s&&!angular.isUndefined(x.onHighlightCallback)&&e.$eval(x.onHighlightCallback),s)};var k=function(e){return x.selected&&angular.isArray(x.selected)&&x.selected.filter(function(t){return angular.equals(t,e)}).length>0},S=[];x.isDisabled=function(e){if(x.open){var t=e[x.itemProperty],s=x.items.indexOf(t),l=!1;if(s>=0&&(angular.isDefined(x.disableChoiceExpression)||x.multiple)){if(t.isTag)return!1;x.multiple&&(l=k(t)),!l&&angular.isDefined(x.disableChoiceExpression)&&(l=!!e.$eval(x.disableChoiceExpression)),v(t,l)}return l}},x.select=function(t,l,c){if(e(t)||!$(t)){if(!x.items&&!x.search&&!x.tagging.isActivated)return;if(!t||!$(t)){if(x.clickTriggeredSelect=!1,c&&("click"===c.type||"touchend"===c.type)&&t&&(x.clickTriggeredSelect=!0),x.tagging.isActivated&&x.clickTriggeredSelect===!1){if(x.taggingLabel===!1)if(x.activeIndex<0){if(void 0===t&&(t=void 0!==x.tagging.fct?x.tagging.fct(x.search):x.search),!t||angular.equals(x.items[0],t))return}else t=x.items[x.activeIndex];else if(0===x.activeIndex){if(void 0===t)return;if(void 0!==x.tagging.fct&&"string"==typeof t){if(t=x.tagging.fct(t),!t)return}else"string"==typeof t&&(t=t.replace(x.taggingLabel,"").trim())}if(k(t))return void x.close(l)}g(),s.$broadcast("uis:select",t),x.closeOnSelect&&x.close(l)}}},x.close=function(e){x.open&&(x.ngModel&&x.ngModel.$setTouched&&x.ngModel.$setTouched(),x.open=!1,g(),s.$broadcast("uis:close",e))},x.setFocus=function(){x.focus||x.focusInput[0].focus()},x.clear=function(e){x.select(null),e.stopPropagation(),c(function(){x.focusser[0].focus()},0,!1)},x.toggle=function(e){x.open?(x.close(),e.preventDefault(),e.stopPropagation()):x.activate()},x.isLocked=function(){return!1},s.$watch(function(){return angular.isDefined(x.lockChoiceExpression)&&""!==x.lockChoiceExpression},m);var C=null,I=!1;x.sizeSearchInput=function(){var e=x.searchInput[0],t=x.$element[0],l=function(){return t.clientWidth*!!e.offsetParent},i=function(t){if(0===t)return!1;var s=t-e.offsetLeft-1-20;return s<50&&(s=t),x.searchInput.css("width",s+"px"),!0};x.searchInput.css("width","10px"),c(function(){null!==C||i(l())||(C=s.$watch(function(){I||(I=!0,s.$$postDigest(function(){I=!1,i(l())&&(C(),C=null)}))},angular.noop))})},x.searchInput.on("keydown",function(e){var l=e.which;~[t.ENTER,t.ESC].indexOf(l)&&(e.preventDefault(),e.stopPropagation()),s.$apply(function(){var s=!1;if((x.items.length>0||x.tagging.isActivated)&&(b(l)||x.searchEnabled||(e.preventDefault(),e.stopPropagation()),x.taggingTokens.isActivated)){for(var i=0;i<x.taggingTokens.tokens.length;i++)x.taggingTokens.tokens[i]===t.MAP[e.keyCode]&&x.search.length>0&&(s=!0);s&&c(function(){x.searchInput.triggerHandler("tagged");var s=x.search.replace(t.MAP[e.keyCode],"").trim();x.tagging.fct&&(s=x.tagging.fct(s)),s&&x.select(s,!0)})}}),t.isVerticalMovement(l)&&x.items.length>0&&w(),l!==t.ENTER&&l!==t.ESC||(e.preventDefault(),e.stopPropagation())}),x.searchInput.on("paste",function(e){var s;if(s=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(e.originalEvent||e).clipboardData.getData("text/plain"),s=x.search+s,s&&s.length>0)if(x.taggingTokens.isActivated){for(var l=[],c=0;c<x.taggingTokens.tokens.length;c++){var i=t.toSeparator(x.taggingTokens.tokens[c])||x.taggingTokens.tokens[c];if(s.indexOf(i)>-1){l=s.split(i);break}}0===l.length&&(l=[s]);var n=x.search;angular.forEach(l,function(e){var t=x.tagging.fct?x.tagging.fct(e):e;t&&x.select(t,!0)}),x.search=n||y,e.preventDefault(),e.stopPropagation()}else x.paste&&(x.paste(s),x.search=y,e.preventDefault(),e.stopPropagation())}),x.searchInput.on("tagged",function(){c(function(){g()})});var A=n(function(){x.sizeSearchInput()},50);angular.element(p).bind("resize",A),s.$on("$destroy",function(){x.searchInput.off("keyup keydown tagged blur paste"),angular.element(p).off("resize",A)}),s.$watch("$select.activeIndex",function(e){e&&l.find("input").attr("aria-activedescendant","ui-select-choices-row-"+x.generatedId+"-"+e)}),s.$watch("$select.open",function(e){e||l.find("input").removeAttr("aria-activedescendant")})}]),l.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(e,t,s,l,c,i,n){return{restrict:"EA",templateUrl:function(e,s){var l=s.theme||t.theme;return l+(angular.isDefined(s.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(c,a){var r=/{(.*)}\s*{(.*)}/.exec(a.ngClass);if(r){var o="{"+r[1]+", "+r[2]+"}";a.ngClass=o,c.attr("ng-class",o)}return angular.isDefined(a.multiple)?c.append("<ui-select-multiple/>").removeAttr("multiple"):c.append("<ui-select-single/>"),a.inputId&&(c.querySelectorAll("input.ui-select-search")[0].id=a.inputId),function(c,a,r,o,u){function d(e){if(g.open){var t=!1;if(t=window.jQuery?window.jQuery.contains(a[0],e.target):a[0].contains(e.target),!t&&!g.clickTriggeredSelect){var s;if(g.skipFocusser)s=!0;else{var l=["input","button","textarea","select"],i=angular.element(e.target).controller("uiSelect");s=i&&i!==g,s||(s=~l.indexOf(e.target.tagName.toLowerCase()))}g.close(s),c.$digest()}g.clickTriggeredSelect=!1}}function p(){var t=l(a);$=angular.element('<div class="ui-select-placeholder"></div>'),$[0].style.width=t.width+"px",$[0].style.height=t.height+"px",a.after($),m=a[0].style.width,e.find("body").append(a),a[0].style.position="absolute",a[0].style.left=t.left+"px",a[0].style.top=t.top+"px",a[0].style.width=t.width+"px"}function h(){null!==$&&($.replaceWith(a),$=null,a[0].style.position="",a[0].style.left="",a[0].style.top="",a[0].style.width=m,g.setFocus())}var g=o[0],f=o[1];g.generatedId=t.generateId(),g.baseTitle=r.title||"Select box",g.focusserTitle=g.baseTitle+" focus",g.focusserId="focusser-"+g.generatedId,g.closeOnSelect=function(){return angular.isDefined(r.closeOnSelect)?i(r.closeOnSelect)():t.closeOnSelect}(),c.$watch("skipFocusser",function(){var e=c.$eval(r.skipFocusser);g.skipFocusser=void 0!==e?e:t.skipFocusser}),g.onSelectCallback=i(r.onSelect),g.onRemoveCallback=i(r.onRemove),g.ngModel=f,g.choiceGrouped=function(e){return g.isGrouped&&e&&e.name},r.tabindex&&r.$observe("tabindex",function(e){g.focusInput.attr("tabindex",e),a.removeAttr("tabindex")}),c.$watch(function(){return c.$eval(r.searchEnabled)},function(e){g.searchEnabled=void 0!==e?e:t.searchEnabled}),c.$watch("sortable",function(){var e=c.$eval(r.sortable);g.sortable=void 0!==e?e:t.sortable}),r.$observe("backspaceReset",function(){var e=c.$eval(r.backspaceReset);g.backspaceReset=void 0===e||e}),r.$observe("limit",function(){g.limit=angular.isDefined(r.limit)?parseInt(r.limit,10):void 0}),c.$watch("removeSelected",function(){var e=c.$eval(r.removeSelected);g.removeSelected=void 0!==e?e:t.removeSelected}),r.$observe("disabled",function(){g.disabled=void 0!==r.disabled&&r.disabled}),r.$observe("resetSearchInput",function(){var e=c.$eval(r.resetSearchInput);g.resetSearchInput=void 0===e||e}),r.$observe("paste",function(){g.paste=c.$eval(r.paste)}),r.$observe("tagging",function(){if(void 0!==r.tagging){var e=c.$eval(r.tagging);g.tagging={isActivated:!0,fct:e!==!0?e:void 0}}else g.tagging={isActivated:!1,fct:void 0}}),r.$observe("taggingLabel",function(){void 0!==r.tagging&&("false"===r.taggingLabel?g.taggingLabel=!1:g.taggingLabel=void 0!==r.taggingLabel?r.taggingLabel:"(new)")}),r.$observe("taggingTokens",function(){if(void 0!==r.tagging){var e=void 0!==r.taggingTokens?r.taggingTokens.split("|"):[",","ENTER"];g.taggingTokens={isActivated:!0,tokens:e}}}),r.$observe("spinnerEnabled",function(){var e=c.$eval(r.spinnerEnabled);g.spinnerEnabled=void 0!==e?e:t.spinnerEnabled}),r.$observe("spinnerClass",function(){var e=r.spinnerClass;g.spinnerClass=void 0!==e?r.spinnerClass:t.spinnerClass}),angular.isDefined(r.autofocus)&&n(function(){g.setFocus()}),angular.isDefined(r.focusOn)&&c.$on(r.focusOn,function(){n(function(){g.setFocus()})}),e.on("click",d),c.$on("$destroy",function(){e.off("click",d)}),u(c,function(e){var t=angular.element("<div>").append(e),l=t.querySelectorAll(".ui-select-match");if(l.removeAttr("ui-select-match"),l.removeAttr("data-ui-select-match"),1!==l.length)throw s("transcluded","Expected 1 .ui-select-match but got '{0}'.",l.length);a.querySelectorAll(".ui-select-match").replaceWith(l);var c=t.querySelectorAll(".ui-select-choices");if(c.removeAttr("ui-select-choices"),c.removeAttr("data-ui-select-choices"),1!==c.length)throw s("transcluded","Expected 1 .ui-select-choices but got '{0}'.",c.length);a.querySelectorAll(".ui-select-choices").replaceWith(c);var i=t.querySelectorAll(".ui-select-no-choice");i.removeAttr("ui-select-no-choice"),i.removeAttr("data-ui-select-no-choice"),1==i.length&&a.querySelectorAll(".ui-select-no-choice").replaceWith(i)});var v=c.$eval(r.appendToBody);(void 0!==v?v:t.appendToBody)&&(c.$watch("$select.open",function(e){e?p():h()}),c.$on("$destroy",function(){h()}));var $=null,m="",b=null,w="direction-up";c.$watch("$select.open",function(){"auto"!==g.dropdownPosition&&"up"!==g.dropdownPosition||c.calculateDropdownPos()});var x=function(e,t){e=e||l(a),t=t||l(b),b[0].style.position="absolute",b[0].style.top=t.height*-1+"px",a.addClass(w)},y=function(e,t){a.removeClass(w),e=e||l(a),t=t||l(b),b[0].style.position="",b[0].style.top=""},E=function(){n(function(){if("up"===g.dropdownPosition)x();else{a.removeClass(w);var t=l(a),s=l(b),c=e[0].documentElement.scrollTop||e[0].body.scrollTop;t.top+t.height+s.height>c+e[0].documentElement.clientHeight?x(t,s):y(t,s)}b[0].style.opacity=1})},k=!1;c.calculateDropdownPos=function(){if(g.open){if(b=angular.element(a).querySelectorAll(".ui-select-dropdown"),0===b.length)return;if(""!==g.search||k||(b[0].style.opacity=0,k=!0),!l(b).height&&g.$animate&&g.$animate.on&&g.$animate.enabled(b)){var e=!0;g.$animate.on("enter",b,function(t,s){"close"===s&&e&&(E(),e=!1)})}else E()}else{if(null===b||0===b.length)return;b[0].style.opacity=0,b[0].style.position="",b[0].style.top="",a.removeClass(w)}}}}}}]),l.directive("uiSelectMatch",["uiSelectConfig",function(e){function t(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(s){s.addClass("ui-select-match");var l=s.parent(),c=t(l,"theme")||e.theme,i=angular.isDefined(t(l,"multiple"));return c+(i?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,s,l,c){function i(e){c.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}c.lockChoiceExpression=l.uiLockChoice,l.$observe("placeholder",function(t){c.placeholder=void 0!==t?t:e.placeholder}),l.$observe("allowClear",i),i(l.allowClear),c.multiple&&c.sizeSearchInput()}}}]),l.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(s,l){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(e,t){var s,l=this,c=e.$select;angular.isUndefined(c.selected)&&(c.selected=[]),e.$evalAsync(function(){s=e.ngModel}),l.activeMatchIndex=-1,l.updateModel=function(){s.$setViewValue(Date.now()),l.refreshComponent()},l.refreshComponent=function(){c.refreshItems&&c.refreshItems(),c.sizeSearchInput&&c.sizeSearchInput()},l.removeChoice=function(s){if(c.isLocked(null,s))return!1;var i=c.selected[s],n={};return n[c.parserResult.itemName]=i,c.selected.splice(s,1),l.activeMatchIndex=-1,c.sizeSearchInput(),t(function(){c.onRemoveCallback(e,{$item:i,$model:c.parserResult.modelMapper(e,n)})}),l.updateModel(),!0},l.getPlaceholder=function(){if(!c.selected||!c.selected.length)return c.placeholder}}],controllerAs:"$selectMultiple",link:function(c,i,n,a){function r(e){return angular.isNumber(e.selectionStart)?e.selectionStart:e.value.length}function o(e){function s(){switch(e){case t.LEFT:return~g.activeMatchIndex?u:n;case t.RIGHT:return~g.activeMatchIndex&&a!==n?o:(p.activate(),!1);case t.BACKSPACE:return~g.activeMatchIndex?g.removeChoice(a)?u:a:n;case t.DELETE:return!!~g.activeMatchIndex&&(g.removeChoice(g.activeMatchIndex),a)}}var l=r(p.searchInput[0]),c=p.selected.length,i=0,n=c-1,a=g.activeMatchIndex,o=g.activeMatchIndex+1,u=g.activeMatchIndex-1,d=a;return!(l>0||p.search.length&&e==t.RIGHT)&&(p.close(),d=s(),p.selected.length&&d!==!1?g.activeMatchIndex=Math.min(n,Math.max(i,d)):g.activeMatchIndex=-1,!0)}function u(e){if(void 0===e||void 0===p.search)return!1;var t=e.filter(function(e){return void 0!==p.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===p.search.toUpperCase()}).length>0;return t}function d(e,t){var s=-1;if(angular.isArray(e))for(var l=angular.copy(e),c=0;c<l.length;c++)if(void 0===p.tagging.fct)l[c]+" "+p.taggingLabel===t&&(s=c);else{var i=l[c];angular.isObject(i)&&(i.isTag=!0),angular.equals(i,t)&&(s=c)}return s}var p=a[0],h=c.ngModel=a[1],g=c.$selectMultiple;p.multiple=!0,p.focusInput=p.searchInput,h.$isEmpty=function(e){return!e||0===e.length},h.$parsers.unshift(function(){for(var e,t={},s=[],l=p.selected.length-1;l>=0;l--)t={},t[p.parserResult.itemName]=p.selected[l],e=p.parserResult.modelMapper(c,t),s.unshift(e);return s}),h.$formatters.unshift(function(e){var t,s=p.parserResult&&p.parserResult.source(c,{$select:{search:""}}),l={};if(!s)return e;var i=[],n=function(e,s){if(e&&e.length){for(var n=e.length-1;n>=0;n--){if(l[p.parserResult.itemName]=e[n],t=p.parserResult.modelMapper(c,l),p.parserResult.trackByExp){var a=/(\w*)\./.exec(p.parserResult.trackByExp),r=/\.([^\s]+)/.exec(p.parserResult.trackByExp);if(a&&a.length>0&&a[1]==p.parserResult.itemName&&r&&r.length>0&&t[r[1]]==s[r[1]])return i.unshift(e[n]),!0}if(angular.equals(t,s))return i.unshift(e[n]),!0}return!1}};if(!e)return i;for(var a=e.length-1;a>=0;a--)n(p.selected,e[a])||n(s,e[a])||i.unshift(e[a]);return i}),c.$watchCollection(function(){return h.$modelValue},function(e,t){t!=e&&(angular.isDefined(h.$modelValue)&&(h.$modelValue=null),g.refreshComponent())}),h.$render=function(){if(!angular.isArray(h.$viewValue)){if(!e(h.$viewValue))throw s("multiarr","Expected model value to be array but got '{0}'",h.$viewValue);h.$viewValue=[]}p.selected=h.$viewValue,g.refreshComponent(),c.$evalAsync()},c.$on("uis:select",function(e,t){if(!(p.selected.length>=p.limit)){p.selected.push(t);var s={};s[p.parserResult.itemName]=t,l(function(){p.onSelectCallback(c,{$item:t,$model:p.parserResult.modelMapper(c,s)})}),g.updateModel()}}),c.$on("uis:activate",function(){g.activeMatchIndex=-1}),c.$watch("$select.disabled",function(e,t){t&&!e&&p.sizeSearchInput()}),p.searchInput.on("keydown",function(e){var s=e.which;c.$apply(function(){var l=!1;t.isHorizontalMovement(s)&&(l=o(s)),l&&s!=t.TAB&&(e.preventDefault(),e.stopPropagation())})}),p.searchInput.on("keyup",function(e){if(t.isVerticalMovement(e.which)||c.$evalAsync(function(){p.activeIndex=p.taggingLabel===!1?-1:0}),p.tagging.isActivated&&p.search.length>0){if(e.which===t.TAB||t.isControl(e)||t.isFunctionKey(e)||e.which===t.ESC||t.isVerticalMovement(e.which))return;if(p.activeIndex=p.taggingLabel===!1?-1:0,p.taggingLabel===!1)return;var s,l,i,n,a=angular.copy(p.items),r=angular.copy(p.items),o=!1,h=-1;if(void 0!==p.tagging.fct){if(i=p.$filter("filter")(a,{isTag:!0}),i.length>0&&(n=i[0]),a.length>0&&n&&(o=!0,a=a.slice(1,a.length),r=r.slice(1,r.length)),s=p.tagging.fct(p.search),r.some(function(e){return angular.equals(e,s)})||p.selected.some(function(e){return angular.equals(e,s)}))return void c.$evalAsync(function(){p.activeIndex=0,p.items=a});s&&(s.isTag=!0)}else{if(i=p.$filter("filter")(a,function(e){return e.match(p.taggingLabel)}),i.length>0&&(n=i[0]),l=a[0],void 0!==l&&a.length>0&&n&&(o=!0,a=a.slice(1,a.length),r=r.slice(1,r.length)),s=p.search+" "+p.taggingLabel,d(p.selected,p.search)>-1)return;if(u(r.concat(p.selected)))return void(o&&(a=r,c.$evalAsync(function(){p.activeIndex=0,p.items=a})));if(u(r))return void(o&&(p.items=r.slice(1,r.length)))}o&&(h=d(p.selected,s)),h>-1?a=a.slice(h+1,a.length-1):(a=[],s&&a.push(s),a=a.concat(r)),c.$evalAsync(function(){if(p.activeIndex=0,p.items=a,p.isGrouped){var e=s?a.slice(1):a;p.setItemsFn(e),s&&(p.items.unshift(s),p.groups.unshift({name:"",items:[s],tagging:!0}))}})}}),p.searchInput.on("blur",function(){l(function(){g.activeMatchIndex=-1})})}}}]),l.directive("uiSelectNoChoice",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-no-choice");var s=t.parent().attr("theme")||e.theme;return s+"/no-choice.tpl.html"}}}]),l.directive("uiSelectSingle",["$timeout","$compile",function(s,l){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(c,i,n,a){var r=a[0],o=a[1];o.$parsers.unshift(function(t){if(e(t))return t;var s,l={};return l[r.parserResult.itemName]=t,s=r.parserResult.modelMapper(c,l)}),o.$formatters.unshift(function(t){if(e(t))return t;var s,l=r.parserResult&&r.parserResult.source(c,{$select:{search:""}}),i={};if(l){var n=function(e){return i[r.parserResult.itemName]=e,s=r.parserResult.modelMapper(c,i),s===t};if(r.selected&&n(r.selected))return r.selected;for(var a=l.length-1;a>=0;a--)if(n(l[a]))return l[a]}return t}),c.$watch("$select.selected",function(e){o.$viewValue!==e&&o.$setViewValue(e)}),o.$render=function(){r.selected=o.$viewValue},c.$on("uis:select",function(t,l){r.selected=l;var i={};i[r.parserResult.itemName]=l,s(function(){r.onSelectCallback(c,{$item:l,$model:e(l)?l:r.parserResult.modelMapper(c,i)})})}),c.$on("uis:close",function(e,t){s(function(){r.focusser.prop("disabled",!1),t||r.focusser[0].focus()},0,!1)}),c.$on("uis:activate",function(){u.prop("disabled",!0)});var u=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");l(u)(c),r.focusser=u,r.focusInput=u,i.parent().append(u),u.bind("focus",function(){c.$evalAsync(function(){r.focus=!0})}),u.bind("blur",function(){c.$evalAsync(function(){r.focus=!1})}),u.bind("keydown",function(e){return e.which===t.BACKSPACE&&r.backspaceReset!==!1?(e.preventDefault(),e.stopPropagation(),r.select(void 0),void c.$apply()):void(e.which===t.TAB||t.isControl(e)||t.isFunctionKey(e)||e.which===t.ESC||(e.which!=t.DOWN&&e.which!=t.UP&&e.which!=t.ENTER&&e.which!=t.SPACE||(e.preventDefault(),e.stopPropagation(),r.activate()),c.$digest()))}),u.bind("keyup input",function(e){e.which===t.TAB||t.isControl(e)||t.isFunctionKey(e)||e.which===t.ESC||e.which==t.ENTER||e.which===t.BACKSPACE||(r.activate(u.val()),u.val(""),c.$digest())})}}}]),l.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(e,t,s){return{require:["^^uiSelect","^ngModel"],link:function(t,l,c,i){if(null===t[c.uiSelectSort])throw s("sort","Expected a list to sort");var n=i[0],a=i[1],r=angular.extend({axis:"horizontal"},t.$eval(c.uiSelectSortOptions)),o=r.axis,u="dragging",d="dropping",p="dropping-before",h="dropping-after";t.$watch(function(){return n.sortable},function(e){e?l.attr("draggable",!0):l.removeAttr("draggable")}),l.on("dragstart",function(e){l.addClass(u),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",t.$index.toString())}),l.on("dragend",function(){v(u)});var g,f=function(e,t){this.splice(t,0,this.splice(e,1)[0])},v=function(e){angular.forEach(n.$element.querySelectorAll("."+e),function(t){angular.element(t).removeClass(e)})},$=function(e){e.preventDefault();var t="vertical"===o?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0);t<this["vertical"===o?"offsetHeight":"offsetWidth"]/2?(v(h),l.addClass(p)):(v(p),l.addClass(h))},m=function(t){t.preventDefault();var s=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);e.cancel(g),g=e(function(){b(s)},20)},b=function(e){var s=t.$eval(c.uiSelectSort),i=s[e],n=null;n=l.hasClass(p)?e<t.$index?t.$index-1:t.$index:e<t.$index?t.$index:t.$index+1,f.apply(s,[e,n]),a.$setViewValue(Date.now()),t.$apply(function(){t.$emit("uiSelectSort:change",{array:s,item:i,from:e,to:n})}),v(d),v(p),v(h),l.off("drop",m)};l.on("dragenter",function(){l.hasClass(u)||(l.addClass(d),l.on("dragover",$),l.on("drop",m))}),l.on("dragleave",function(e){e.target==l&&(v(d),v(p),v(h),l.off("dragover",$),l.off("drop",m))})}}}]),l.factory("$$uisDebounce",["$timeout",function(e){return function(t,s){var l;return function(){var c=this,i=Array.prototype.slice.call(arguments);l&&e.cancel(l),l=e(function(){t.apply(c,i)},s)}}}]),l.directive("uisOpenClose",["$parse","$timeout",function(e,t){return{restrict:"A",require:"uiSelect",link:function(s,l,c,i){i.onOpenCloseCallback=e(c.uisOpenClose),s.$watch("$select.open",function(e,l){e!==l&&t(function(){i.onOpenCloseCallback(s,{isOpen:e
})})})}}}]),l.service("uisRepeatParser",["uiSelectMinErr","$parse",function(e,t){var s=this;s.parse=function(s){var l;if(l=s.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),!l)throw e("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",s);var c=l[5],i="";if(l[3]){c=l[5].replace(/(^\()|(\)$)/g,"");var n=l[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);n&&n[1].trim()&&(i=n[1],c=c.replace(i,""))}return{itemName:l[4]||l[2],keyName:l[3],source:t(c),filters:i,trackByExp:l[6],modelMapper:t(l[1]||l[4]||l[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},s.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)"> ×</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap4/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),e.put("bootstrap4/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-secondary btn-sm" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)"> ×</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap4/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-secondary dropdown-toggle form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted pull-left">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><span class="fa fa-times" aria-hidden="true"></span></a></span></div>'),e.put("bootstrap4/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap4/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap4 dropdown form-control" ng-class="{show: $select.open}"><div><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap4/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap4 dropdown" ng-class="{show: $select.open}"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap4-1/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0" ng-class="{show: $select.open}"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),e.put("bootstrap4-1/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-light border border-dark btn-sm" tabindex="-1" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)"> ×</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap4-1/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" role="button" class="btn btn-light border dropdown-toggle form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0; background-color: white"><span ng-show="$select.isEmpty()" class="ui-select-placeholder pull-left text-muted"><span>{{$select.placeholder}}</span></span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right">×</a></span></div>'),e.put("bootstrap4-1/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap4-1/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap ui-select-bootstrap4-1 dropdown form-control" ng-class="{open: $select.open}"><div class="ui-select-container-margin"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap4-1/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap4 ui-select-bootstrap4-1 dropdown"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" tabindex="-1" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-class="{\'select2-active\': $select.refreshing}" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown" ng-class="{\'single\': !$select.multiple, \'multi\': $select.multiple}"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match-multiple.tpl.html",'<div class="ui-select-match" data-value="" ng-repeat="$item in $select.selected track by $index" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'active\':$selectMultiple.activeMatchIndex === $index}" ui-select-sort="$select.selected"><span class="ui-select-match-item" ng-class="{\'select-locked\':$select.isLocked(this, $index)}"><span uis-transclude-append=""></span> <span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">×</span></span></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""></span></div>'),e.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("selectize/select-multiple.tpl.html",'<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-model="$select.search" ng-disabled="$select.disabled" aria-expanded="{{$select.open}}" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>')}]);
//# sourceMappingURL=select.min.js.map