1(function($,{tabbable,isTabbable}){$.widget('ui.dialog',$.ui.dialog,{options:{buttonClass:'button',buttonPrimaryClass:'button--primary',},_createButtons(){const opts=this.options;let primaryIndex;let index;const il=opts.buttons.length;for(index=0;index<il;index++){if(opts.buttons[index].primary&&opts.buttons[index].primary===!0){primaryIndex=index;delete opts.buttons[index].primary;break}} 2this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined'){$buttons.eq(index).addClass(opts.buttonPrimaryClass)}},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus){hasFocus=this.element.find('[autofocus]').get(0)} 3if(!hasFocus){const $elements=[this.element,this.uiDialogButtonPane];for(let i=0;i<$elements.length;i++){const element=$elements[i].get(0);if(element){const elementTabbable=tabbable(element);hasFocus=elementTabbable.length?elementTabbable[0]:null} 4if(hasFocus){break}}} 5if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null} 6if(!hasFocus){hasFocus=this.uiDialog.get(0)} 7$(hasFocus).eq(0).trigger('focus')},})})(jQuery,window.tabbable)
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.