PageSourceSearch

https://www.umassglobal.edu/sites/default/files/minifyjs/core/misc/dialog/dialog.position.min.js?v=10.6.17

js umassglobal.edu collected 2026-10-02 05:04:44 UTC 2,275 bytes, 12 lines download raw bytes

1(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:!0,maxHeight:'95%'},drupalSettings.dialog,);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${
2      (left > 0 ? '+' : '-') + Math.abs(Math.round(left / 2))
3    }px`;const topString=`${
4      (top > 0 ? '+' : '-') + Math.abs(Math.round(top / 2))
5    }px`;options.position={my:`center${left !== 0 ? leftString : ''} center${
6        top !== 0 ? topString : ''
7      }`,of:window,};return options}
8function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position',];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue){if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10,);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue){adjustedValue='auto'}
9adjustedOptions[option]=adjustedValue}}}
10if(!event.data.settings.modal){adjustedOptions=resetPosition(adjustedOptions)}
11event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:!0}),)}
12window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const{settings}=e;const eventData={settings,$element};if(settings.autoResize===!0||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:!1,draggable:!1}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize,)}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize')})})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace)

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.