1function frymoFormsInitSelectize($scope){var $=jQuery;$scope.find('select.frymo-select-single').each(function(){var $select=$(this);$select.selectize({allowEmptyOption:!0,hideSelected:!1,openOnFocus:!1,dropdownParent:'body',respect_word_boundaries:!1,onInitialize:function(){var self=this;if($select.hasClass('no-type-to-search')){this.$control_input.attr('inputmode','none')} 2if(this.options.hasOwnProperty('')&&this.getValue()===''){this.addItem('');this.setValue('')} 3if($select.hasClass('frymo-inner-select')){setTimeout(function(){frymoAdjustSelectizeWidthToWidestItem(self)},100)} 4this.$control_input.on('focus',function(){self.$wrapper.closest('fieldset').addClass('frymo-focused');self.open()}) 5this.$control_input.on('blur',function(){self.$wrapper.closest('fieldset').removeClass('frymo-focused')})},onFocus:function(){this.$wrapper.closest('fieldset').addClass('frymo-focused')},onBlur:function(){this.$wrapper.closest('fieldset').removeClass('frymo-focused')},onDropdownOpen:function(){this.$wrapper.closest('fieldset').find('input.frymo-input').attr('disabled',!0);if($select.hasClass('frymo-inner-select')){this.$dropdown.css('margin-top','0px');this.$wrapper.css('z-index','99')}else{this.$dropdown.css('margin-top','1px')} 6frymoCloseAllSelctizesExceptCurrent(this);if(window.innerWidth<=768){var wrapperOffsetTop=this.$wrapper.offset().top;window.scrollTo({top:wrapperOffsetTop-100,behavior:'auto'})} 7var $dropdownContent=this.$dropdown.find('.selectize-dropdown-content')[0];if($dropdownContent&&window.innerWidth<=768){var touchStartY=0;var handleTouchStart=function(e){touchStartY=e.touches[0].clientY};var handleTouchMove=function(e){var touchY=e.touches[0].clientY;var touchDelta=touchY-touchStartY;var contentScrollTop=$dropdownContent.scrollTop;var maxScrollTop=$dropdownContent.scrollHeight-$dropdownContent.clientHeight;var isScrollable=maxScrollTop>1;var isAtTop=contentScrollTop<=1&&touchDelta>0;var isAtBottom=contentScrollTop>=maxScrollTop-1&&touchDelta<0;if(!isScrollable||isAtTop||isAtBottom){e.preventDefault()} 8e.stopPropagation();touchStartY=touchY};$dropdownContent.addEventListener('touchstart',handleTouchStart,{passive:!0});$dropdownContent.addEventListener('touchmove',handleTouchMove,{passive:!1});this.$dropdown.data('touchHandlers',{handleTouchStart:handleTouchStart,handleTouchMove:handleTouchMove})}},onDropdownClose:function(){if($select.hasClass('frymo-inner-select')){this.$wrapper.css('z-index','')} 9this.$wrapper.closest('fieldset').find('input.frymo-input').removeAttr('disabled');var touchHandlers=this.$dropdown.data('touchHandlers');if(touchHandlers){var $dropdownContent=this.$dropdown.find('.selectize-dropdown-content')[0];if($dropdownContent){$dropdownContent.removeEventListener('touchstart',touchHandlers.handleTouchStart);$dropdownContent.removeEventListener('touchmove',touchHandlers.handleTouchMove)} 10this.$dropdown.removeData('touchHandlers')}},})})}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.