1;(function($,_,undefined){"use strict";ips.templates.set('filmtemplate.personSelector.item','<li data-id="{{id}}">'+ 2'<button type="button" class="filmtemplate_personRemove" data-action="delete" data-ipsTooltip '+ 3'title="{{#lang}}filmtemplate_person_remove{{/lang}}" aria-label="{{#lang}}filmtemplate_person_remove{{/lang}}">'+ 4'<i class="fa-solid fa-xmark" aria-hidden="true"></i>'+ 5'</button>{{{html}}}'+ 6'</li>');ips.controller.register('filmtemplate.front.topicItem.searchState',{initialize:function(){this._setupAttempts=0;this._pendingSearch=false;this._setup();},_setup:function(){var self=this;var wrapper=this.scope.closest('.ipsField_autocomplete');if(!wrapper.length){this._retrySetup();return;} 7this._wrapper=wrapper;this._input=wrapper.find('[id$="_dummyInput"]').first();this._results=wrapper.find('.ipsAutocompleteMenu').first();this._minLength=parseInt(this.scope.attr('data-ipsContentItem-minAjaxLength'),10)||1;if(!this._input.length||!this._results.length){this._retrySetup();return;} 8this._input.on('input.filmtemplateTopicSearch',function(){self._inputChanged();});this._observer=new MutationObserver(function(mutations){self._resultsChanged(mutations);});this._observer.observe(this._results.get(0),{attributes:true,attributeFilter:['aria-busy']});},_retrySetup:function(){var self=this;if(this._setupAttempts++>=20){return;} 9setTimeout(function(){self._setup();},50);},_inputChanged:function(){var query=$.trim(this._input.val());if(query.length<this._minLength){this._pendingSearch=false;this._closeState();return;} 10this._pendingSearch=true;this._showState('loading');},_resultsChanged:function(){if(!this._pendingSearch){return;} 11if(this._results.attr('aria-busy')==='true'){this._showState('loading');return;} 12if(this._results.find('[data-id]').length){this._pendingSearch=false;return;} 13this._pendingSearch=false;this._showState('empty');},_showState:function(state){var loading=state==='loading';var icon=loading?'fa-spinner fa-spin':'fa-magnifying-glass';var text=ips.getString(loading?'loading':'no_results');this._results.html("<div class='i-padding_2 i-color_soft i-text-align_center' "+ 14"data-role='filmtemplateTopicSearchState' role='status' aria-live='polite'>"+ 15"<i class='fa-solid "+icon+" i-margin-end_icon' aria-hidden='true'></i>"+ 16"<span>"+_.escape(text)+"</span>"+ 17"</div>").show().attr('aria-expanded','true');this._positionResults();},_closeState:function(){if(!this._results||!this._results.find('[data-role="filmtemplateTopicSearchState"]').length){return;} 18this._results.empty().hide().attr('aria-expanded','false');},_positionResults:function(){var position=ips.utils.position.positionElem({trigger:this._wrapper,targetContainer:this._wrapper,target:this._results,center:false});this._results.css({width:this._wrapper.outerWidth()+'px',left:'0px',top:position.top+'px',position:position.fixed?'fixed':'absolute',zIndex:ips.ui.zIndex()});}});}(jQuery,_));;
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.