1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2var WssCache=function(storage,key_add_date,key_language){var self=this;var settings={storage:'sessionStorage',key_add_date:true,key_language:false,storage_available:false};storage=storage||settings.storage;key_add_date=typeof key_add_date!='undefined'?key_add_date:settings.key_add_date;key_language=typeof key_language!='undefined'?key_language:settings.key_language;try{settings.storage_available=storage in window&&window[storage]!==null;settings.storage=storage;settings.key_add_date=key_add_date;settings.key_language=key_language;}catch(e){}self.read=function(key){if(!settings.storage_available||!JSON)return false;var normalized_key=normalizeKey(key);var storage=window[settings.storage];if(settings.key_add_date){var updatedDate=storage.getItem(normalized_key+'_updated');if(updatedDate!==getDateFormatted())return false;}return JSON.parse(storage.getItem(normalized_key));};self.update=function(key,value,removeOldData){removeOldData=removeOldData||false;if(!settings.storage_available||!JSON)return false;var normalized_key=normalizeKey(key);var stringified_value=JSON.stringify(value);try{window[settings.storage].setItem(normalized_key,stringified_value);if(settings.key_add_date)window[settings.storage].setItem(normalized_key+'_updated',getDateFormatted());}catch(e){switch(e.name){case 'QuotaExceededError':self.flush();break;}}if(removeOldData)self.flushOldData(key);};self.flush=function(key){if(!settings.storage_available||!JSON)return false;key=key||false;if(!key){window[settings.storage].clear();return;}var normalized_key=normalizeKey(key);window[settings.storage].removeItem(normalized_key);};self.flushOldData=function(key){if(!settings.storage_available||!JSON)return false;key=key||false;if(!key){window[settings.storage].clear();return;}var normalized_key=normalizeKey(key);for(var i in window[settings.storage])if(window[settings.storage].hasOwnProperty(i))if(~i.indexOf(key)&&i!==normalized_key)window[settings.storage].removeItem(i);};self.keyFromRequest=function(url,request){request=request||false;var key=url;if(request){key+='?';for(var property in request)key+=property+'='+request[property]+'&';}return key;};self.getSettings=function(){return settings;};self.available=function(){return settings.storage_available;};var getDateFormatted=function(){return new Date().toISOString().slice(0,10);};var normalizeKey=function(key){var elements=[key];if(settings.key_language)elements.unshift(drupalSettings.jysk.language);return elements.join('_');};};; 3var WssRequest=function(url,caller,data,callback,requestType,cache_settings,dataType){JyskAjaxThrobber('show');new WssRequestEvent().trigger(new WssRequestExceptionRequestSent(),caller,url);data=data||[];requestType=requestType||'GET';cache_settings=cache_settings||false;dataType=dataType||'json';var cache_defaults={storage:null,flush:false,validator:null,key:null};jQuery.extend(cache_defaults,cache_settings);var cache=new WssCache(cache_defaults.storage);if(cache_settings&&cache.available()){var key=cache_defaults.key?cache_defaults.key:cache.keyFromRequest(url,data);var cached_data=cache.read(key);var cache_outdated=false;if(typeof cache_defaults.validator=='function'&&cached_data)cache_outdated=cache_defaults.validator(cached_data);if(cached_data&&!cache_settings.flush&&!cache_outdated){ajaxSuccess(cached_data);return;}}jQuery.ajax({url,data,dataType,type:requestType,cache:false,success:function(response_data){var update_cache=cache_settings?true:false;ajaxSuccess(response_data,update_cache,data);},error:function(jqXHR,textStatus,errorThrown){JyskAjaxThrobber('hide');var e=new WssRequestExceptionAjaxError(jqXHR,textStatus,errorThrown);new WssRequestEvent().trigger(e,caller,url);},complete:function(jqXHR,textStatus){ajaxComplete(jqXHR,textStatus);},beforeSend:function(jqXHR,settings){settings.error=function(jqXHR,textStatus,errorThrown){if(textStatus=="error"){JyskAjaxThrobber('hide');var e=new WssRequestExceptionAjaxError(jqXHR,textStatus,errorThrown);new WssRequestEvent().trigger(e,caller,url);}};}});function ajaxComplete(jqXHR,textStatus){JyskAjaxThrobber('hide');if(typeof callback=='function')callback(jqXHR,textStatus);}function ajaxSuccess(response_data,update_cache,request_data){new WssRequestEvent().trigger(new WssRequestExceptionReceived(),caller,url,response_data,cache_settings,request_data);var result=false;update_cache=update_cache||false;JyskAjaxThrobber('hide');try{result=caller.validate(response_data);}catch(e){if(e.message)logError(e.message);else logError(e);
3if(e.name==='No Data')if(update_cache){var key=cache_defaults.key?cache_defaults.key:cache.keyFromRequest(url,data);cache.flush(key);}new WssRequestEvent().trigger(e,caller,url,response_data,null,request_data);return;}caller.parse(response_data);if(update_cache){var key=cache_defaults.key?cache_defaults.key:cache.keyFromRequest(url,data);cache.update(key,response_data);}if(result===true)new WssRequestEvent().trigger(new WssRequestExceptionSuccess(),caller,url,response_data,cache_settings);}function logError(message){if(window.console&&drupalSettings.environment!='prod')console.error(url+' '+caller.toString()+': '+message);}};var WssRequestEvent=function(){var _self=this;WssRequestEvent=function(){return _self;};var listeners={};this.addListener=function(objectName,listener){if(!listeners[objectName])listeners[objectName]=[];listeners[objectName].push(listener);};this.trigger=function(e,object,url,response_data,cache_settings,request_data){response_data=response_data||null;cache_settings=cache_settings||null;var callback=e.callback;if(!callback)return false;var objectName=object.toString();if(!listeners[objectName])return false;for(var listener in listeners[objectName])if(listeners[objectName][listener][callback])listeners[objectName][listener][callback](object,e,url,response_data,cache_settings,request_data);};};function WssRequestExceptionRequestSent(){return {name:'Request Sent',message:'The request has been sent.',callback:'sent'};}function WssRequestExceptionReceived(){return {name:'Received',message:'The data has been received.',callback:'received'};}function WssRequestExceptionSuccess(){return {name:'Success',message:'The data is being parsed.',callback:'success'};}function WssRequestExceptionAjaxError(jqXHR,textStatus,errorThrown){var message=textStatus;if(jqXHR.status)message+=', '+jqXHR.status;if(jqXHR.statusText)message+=', '+jqXHR.statusText;if(errorThrown)message+=', '+errorThrown;return {name:'Ajax Error',message,callback:'error',jqXHR};}function WssRequestExceptionNoData(){return {name:'No Data',message:'No data in received message.',callback:'empty'};}function WssRequestExceptionErrors(errors){var messages='';var userMessages='';var errorCodes=[];for(var i in errors){messages+=errors[i].errorCode+': '+errors[i].systemMessage+"\n";if(errors[i].userMessage)userMessages+=errors[i].userMessage;if(errors[i].errorCode)errorCodes.push(errors[i].errorCode);}return {name:'No Data',message:messages,userMessage:userMessages,callback:'error',errorCodes};}function WssRequestExceptionDestroyed(){return {name:'Destroyed',message:'Current payment has been destroyed.',callback:'destroy'};}; 4((Drupal)=>{Drupal.behaviors.lazy={attach(context,settings){const utils={extend(obj,src){Object.keys(src).forEach((key)=>{obj[key]=src[key];});return obj;},once(selector){return (context||document).querySelector(selector);},loadScript(url){if(document.querySelectorAll(`script[src="${url}"]`).length===0){const script=document.createElement('script');const scripts=document.getElementsByTagName('script')[0];script.src=url;script.async=true;scripts.parentNode.insertBefore(script,scripts);}}};if(utils.once('body',context)){const lazysizes=settings.lazy.lazysizes||{};if(!settings.lazy.preferNative){window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig=utils.extend(window.lazySizesConfig,lazysizes);if(!Object.entries)Object.entries=(obj)=>{const ownProps=Object.keys(obj);let i=ownProps.length;const resArray=new Array(i);while(i--)resArray[i]=[ownProps[i],obj[ownProps[i]]];return resArray;};const min=settings.lazy.minified?'.min':'';Object.entries(lazysizes.plugins).forEach((path)=>{utils.loadScript(`${settings.lazy.libraryPath}/plugins/${path[1]}${min}.js`);});utils.loadScript(`${settings.lazy.libraryPath}/lazysizes${min}.js`);}}}};})(Drupal);; 5(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});
5const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;document.querySelectorAll(`[data-offset-${edge}]`).forEach((el)=>{if(el.style.display==='none')return;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);});return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);; 6(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));window.addEventListener('dialog:beforecreate',(event)=>{const dialog=event.target;$(dialog).on('dialogButtonsChange.dialogDeprecation',(e)=>{if(!e?.originalEvent){Drupal.deprecationError({message:`jQuery event dialogButtonsChange is deprecated in 11.2.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3464202`});dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));}});});window.addEventListener('dialog:beforeclose',(event)=>{const dialog=event.target;$(dialog).off(`dialogButtonsChange.dialogDeprecation`);});}})(jQuery,Drupal,once);; 7class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);if(settings.dialogClass)Drupal.deprecationError({message:'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.'});const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>
7{openDialog({modal:false,uiDialogTitleHeadingLevel:2});};dialog.showModal=()=>{openDialog({modal:true,uiDialogTitleHeadingLevel:1});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);; 8(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,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=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function 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';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).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);; 9(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===true){primaryIndex=index;delete opts.buttons[index].primary;break;}this._super();const $buttons=this.uiButtonSet.children().addClass(opts.buttonClass);if(typeof primaryIndex!=='undefined')$buttons.eq(index).addClass(opts.buttonPrimaryClass);},_createWrapper(){this.uiDialog=$('<div>
9').hide().attr({tabIndex:-1,role:'dialog','aria-modal':this.options.modal?'true':null}).appendTo(this._appendTo());this._addClass(this.uiDialog,'ui-dialog','ui-widget ui-widget-content ui-front');this._on(this.uiDialog,{keydown(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return;}if(event.keyCode!==$.ui.keyCode.TAB||event.isDefaultPrevented())return;const tabbableElements=tabbable(this.uiDialog[0]);if(tabbableElements.length){const first=tabbableElements[0];const last=tabbableElements[tabbableElements.length-1];if((event.target===last||event.target===this.uiDialog[0])&&!event.shiftKey){this._delay(function(){$(first).trigger('focus');});event.preventDefault();}else{if((event.target===first||event.target===this.uiDialog[0])&&event.shiftKey){this._delay(function(){$(last).trigger('focus');});event.preventDefault();}}}},mousedown(event){if(this._moveToTop(event))this._focusTabbable();}});if(!this.element.find('[aria-describedby]').length)this.uiDialog.attr({'aria-describedby':this.element.uniqueId().attr('id')});},_focusTabbable(){let hasFocus=this._focusedElement?this._focusedElement.get(0):null;if(!hasFocus)hasFocus=this.element.find('[autofocus]').get(0);if(!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;}if(hasFocus)break;}}if(!hasFocus){const closeBtn=this.uiDialogTitlebarClose.get(0);hasFocus=closeBtn&&isTabbable(closeBtn)?closeBtn:null;}if(!hasFocus)hasFocus=this.uiDialog.get(0);$(hasFocus).eq(0).trigger('focus');}});})(jQuery,window.tabbable);; 10(($)=>{$.widget('ui.dialog',$.ui.dialog,{_allowInteraction(event){if(event.target.classList===undefined)return this._super(event);return event.target.classList.contains('ck')||this._super(event);}});})(jQuery);; 11(function($,Drupal,{focusable}){Drupal.behaviors.dialog={attach(context,settings){if(!document.querySelector('#drupal-modal'))document.body.insertAdjacentHTML('beforeend','<div id="drupal-modal" class="ui-front" style="display:none"></div>');if(context!==document){const dialog=context.closest('.ui-dialog-content');if(dialog){if($(dialog).dialog('option','drupalAutoButtons'))dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));setTimeout(function(){if(!dialog.contains(document.activeElement)){const autoFocusElement=dialog?.querySelector('[autofocus]');if(autoFocusElement){autoFocusElement.focus();return;}const focusableElements=focusable(dialog);if(focusableElements.length>0){focusableElements[0].focus();return;}const dialogWrapper=dialog.closest('.ui-dialog');const buttonPane=dialogWrapper?.querySelector('.ui-dialog-buttonpane');const focusableButtons=focusable(buttonPane);if(focusableButtons.length>0){focusableButtons[0].focus();return;}const closeButton=dialogWrapper?.querySelector('.ui-dialog-titlebar-close');if(closeButton){closeButton.focus();return;}dialog.focus();}},0);}}const originalClose=settings.dialog.close;settings.dialog.close=function(event,...args){originalClose.apply(settings.dialog,[event,...args]);const $element=$(event.target);const ajaxContainer=$element.data('uiDialog')?$element.data('uiDialog').opener.closest('[data-drupal-ajax-container]'):[];if(ajaxContainer.length&&(document.activeElement===document.body||$(document.activeElement).not(':visible'))){const focusableChildren=focusable(ajaxContainer[0]);if(focusableChildren.length>0)setTimeout(()=>{focusableChildren[0].focus();},0);}$(event.target).remove();};},prepareDialogButtons($dialog){const buttons=[];const buttonSelectors='.form-actions input[type=submit], .form-actions a.button, .form-actions a.action-link';const buttonElements=$dialog[0].querySelectorAll(buttonSelectors);buttonElements.forEach((button)=>{button.style.display='none';buttons.push({text:button.innerHTML||button.getAttribute('value'),class:button.getAttribute('class'),'data-once':button.dataset.once,click(e){if(button.tagName==='A')button.click();else ['mousedown','mouseup','click'].forEach((event)=>button.dispatchEvent(new MouseEvent(event)));e.preventDefault();}});});return buttons;}};Drupal.AjaxCommands.prototype.openDialog=function(ajax,response,status){if(!response.selector)return false;let dialog=document.querySelector(response.selector);if(!dialog){dialog=document.createElement('div');dialog.id=response.selector.replace(/^#/,'');dialog.classList.add('ui-front');document.body.appendChild(dialog);}if(!ajax.wrapper)ajax.wrapper=dialog.id;response.command='insert';response.method='html';ajax.commands.insert(ajax,response,status);response.dialogOptions=response.dialogOptions||{};if(typeof response.dialogOptions.drupalAutoButtons==='undefined')response.dialogOptions.drupalAutoButtons=true;else if(response.dialogOptions.drupalAutoButtons==='false')response.dialogOptions.drupalAutoButtons=false;else response.dialogOptions.drupalAutoButtons=!!response.dialogOptions.drupalAutoButtons;if(!response.dialogOptions.buttons&&response.dialogOptions.drupalAutoButtons)response.dialogOptions.buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));const dialogButtonsChange=()=>{const buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));$(dialog).dialog('option','buttons',buttons);};dialog.addEventListener('dialogButtonsChange',dialogButtonsChange);dialog.addEventListener('dialog:beforeclose',(event)=>{dialog.removeEventListener('dialogButtonsChange',dialogButtonsChange);});const createdDialog=Drupal.dialog(dialog,response.dialogOptions);if(response.dialogOptions.modal)createdDialog.showModal();else createdDialog.show();dialog.parentElement?.querySelector('.ui-dialog-buttonset')?.classList.add('form-actions');};Drupal.AjaxCommands.prototype.closeDialog=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog){Drupal.dialog(dialog).close();if(!response.persist)dialog.remove();}};Drupal.AjaxCommands.prototype.setDialogOption=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog)$(dialog).dialog('option',response.optionName,response.optionValue);};window.addEventListener('dialog:aftercreate',(event)=>{const dialog=event.dialog;const cancelButton=event.target.querySelector('.dialog-cancel');const cancelClick=(e)=>{dialog.close('cancel');e.preventDefault();e.stopPropagation();};cancelButton?.removeEventListener('click',cancelClick);cancelButton?.addEventListener('click',cancelClick);});Drupal.AjaxCommands.prototype.openModalDialogWithUrl=function(ajax,response){const dialogOptions=response.dialogOptions||{};const elementSettings={progress:{type:'throbber'},dialogType:'modal',dialog:dialogOptions,url:response.url,httpMethod:'GET'};Drupal.ajax(elementSettings).execute();};})(jQuery,Drupal,window.tabbable);; 12(function($,Drupal,Bootstrap){Drupal.behaviors.dialog.ajaxCurrentButton=null;Drupal.behaviors.dialog.ajaxOriginalButton=null;var success=Drupal.Ajax.prototype.success;Drupal.Ajax.prototype.success=function(response,status){if(this.dialogType)for(var i=0,l=response.length;i<l;i++)if(response[i].dialogOptions){response[i].dialogType=response[i].dialogOptions.dialogType=this.dialogType;response[i].$trigger=response[i].dialogOptions.$trigger=$(this.element);}return success.apply(this,[response,status]);};var beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.dialogType){options.data['ajax_page_state[dialogType]']=this.dialogType;var id=$(this.element).parents('.js-drupal-dialog:first').attr('id');
12if(id)options.data['ajax_page_state[dialogId]']=id;}return beforeSerialize.apply(this,arguments);};Drupal.behaviors.dialog.ajaxUpdateButtons=function(reset){if(this.ajaxCurrentButton&&this.ajaxOriginalButton){this.ajaxCurrentButton.html(this.ajaxOriginalButton.html()||this.ajaxOriginalButton.attr('value'));this.ajaxCurrentButton.prop('disabled',this.ajaxOriginalButton.prop('disabled'));}if(reset){this.ajaxCurrentButton=null;this.ajaxOriginalButton=null;}};$(document).ajaxSend(function(){Drupal.behaviors.dialog.ajaxUpdateButtons();}).ajaxComplete(function(){Drupal.behaviors.dialog.ajaxUpdateButtons(true);});;Drupal.behaviors.dialog.prepareDialogButtons=function prepareDialogButtons($dialog){var _this=this;var buttons=[];var $buttons=$dialog.find('.form-actions').find('button, input[type=submit], a.button, .btn');$buttons.each(function(){var $originalButton=$(this).attr('tabindex',-1).css({display:'block',width:0,height:0,padding:0,border:0,overflow:'hidden'});buttons.push({text:Bootstrap.stripHtml($originalButton)||$originalButton.attr('value'),class:$originalButton.attr('class').replace('use-ajax-submit',''),click:function click(e){e.preventDefault();e.stopPropagation();_this.ajaxCurrentButton=$(e.target);_this.ajaxOriginalButton=$originalButton;Bootstrap.simulate($originalButton,['mousedown','mouseup','click']);},create:function(){_this.ajaxCurrentButton=$(this);_this.ajaxOriginalButton=$originalButton;_this.ajaxUpdateButtons(true);}});});return buttons;};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);; 13(function($,Drupal,once,tabbable){if($.ui&&$.ui.dialog&&$.ui.dialog.prototype._allowInteraction){var _allowInteraction=$.ui.dialog.prototype._allowInteraction;$.ui.dialog.prototype._allowInteraction=function(event){if($(event.target).closest('.cke_dialog').length)return true;return _allowInteraction.apply(this,arguments);};}Drupal.behaviors.webformDialogEvents={attach:function(){if(once('webform-dialog','html').length)$(window).on({'dialog:aftercreate':function(event,dialog,$element,settings){setTimeout(function(){const tabbableElements=tabbable.tabbable($element.get(0));var hasFocus=$element.find("[autofocus]");if(!hasFocus.length){hasFocus=tabbableElements.filter((element)=>{return (element.tagName.toLowerCase()==="input"&&element.type!=="button");});hasFocus=$(hasFocus);}if(!hasFocus.length)hasFocus=$element.parent().find('.ui-dialog-titlebar-close');hasFocus.eq(0).trigger('focus');});}});}};})(jQuery,Drupal,once,tabbable);; 14(function($,Drupal,drupalSettings,once){Drupal.webform=Drupal.webform||{};Drupal.webform.dialog=Drupal.webform.dialog||{};Drupal.webform.dialog.options=Drupal.webform.dialog.options||{};Drupal.webformOpenDialog=function(url,type){var $div=$('<div><a href="'+url+'" class="webform-dialog '+type+'"></a></div>');Drupal.behaviors.webformDialog.attach($div.get(0));$div.find('a').trigger('click');};Drupal.behaviors.webformDialog={attach(context){$(once('webform-dialog','a.webform-dialog',context)).each(function(){var $a=$(this);var options=$.extend({},Drupal.webform.dialog.options);if($a.attr('class').match(/webform-dialog-([a-z0-9_]+)/)){var dialogOptionsName=RegExp.$1;if(drupalSettings.webform.dialog.options[dialogOptionsName]){options=drupalSettings.webform.dialog.options[dialogOptionsName];delete options.title;}}if($(this).data('dialog-options'))$.extend(options,$(this).data('dialog-options'));var href=$a.attr('href');if(href.indexOf('?source_entity_type=ENTITY_TYPE&source_entity_id=ENTITY_ID')!==-1){if(drupalSettings.webform.dialog.entity_type&&drupalSettings.webform.dialog.entity_id){href=href.replace('ENTITY_TYPE',encodeURIComponent(drupalSettings.webform.dialog.entity_type));href=href.replace('ENTITY_ID',encodeURIComponent(drupalSettings.webform.dialog.entity_id));}else href=href.replace('?source_entity_type=ENTITY_TYPE&source_entity_id=ENTITY_ID','');$a.attr('href',href);}href+=(href.indexOf('?')===-1?'?':'&')+'_webform_dialog=1';var element_settings={};element_settings.progress={type:'fullscreen'};element_settings.url=href;element_settings.event='touchstart click';element_settings.dialogType=$a.data('dialog-type')||'modal';element_settings.dialog=options;element_settings.element=this;element_settings.error=function error(xmlhttp,uri){if(xmlhttp.status===403)window.location.replace(href.split('?')[0]);};Drupal.ajax(element_settings);});}};})(jQuery,Drupal,drupalSettings,once);; 15(function($){$.B2bOrder=function(uuid,object){if(!uuid||typeof (object)==='undefined')return;var object_name=object.toString();return $.ajax({type:'POST',data:{uuid,object:object_name},url:Drupal.url('b2b/order/mark'),dataType:'json',global:false,success:function(response){if(response.marked)if(object_name==='WssClickCollectOrder')object.update(false,true);else object.read(null,false,true);}});};})(jQuery);; 16(function($){this.WssPaymentProductLabels=function(elements){this.elements=elements;this.hasUndefinedStatuses=false;};WssPaymentProductLabels.prototype.getElements=function(){return this.elements;};WssPaymentProductLabels.prototype.needATPCheck=function(){return this.hasUndefinedStatuses;};WssPaymentProductLabels.prototype.processProducts=function(settings){settings=settings||drupalSettings;var isWSSPaymentEnabled=false;if(typeof settings.wss_payment!=='undefined')isWSSPaymentEnabled=settings.wss_payment.enabled;if(!isWSSPaymentEnabled)return this;var self=this;this.getElements().each(function(){var label='';var attr={id:$(this).data('wss_id'),statusCode:$(this).data('statuscode'),storeSales:$(this).data('storesales'),onlineSales:$(this).data('onlinesales')};$.each(attr,function(key,value){if(typeof value=="undefined"||value=='')attr[key]=0;});if((isWSSPaymentEnabled&&!attr.onlineSales&&attr.statusCode!=drupalSettings.productStatus.onlineOnly)||(!isWSSPaymentEnabled&&attr.statusCode!=drupalSettings.productStatus.discontinued))label='store';if(isWSSPaymentEnabled&&((attr.onlineSales&&!attr.storeSales)||attr.statusCode==drupalSettings.productStatus.onlineOnly||attr.statusCode==drupalSettings.productStatus.dropShipment))label='online';if(isWSSPaymentEnabled&&label==''){label='?';self.hasUndefinedStatuses=true;}$(this).data('productLabel',label);});return this;};WssPaymentProductLabels.prototype.processProductsAtpNumbers=function(atpNumbers){$.each(this.getElements(),function(){var label=$(this).data('productLabel');var id=$(this).data('wss_id');if(typeof label!=="undefined"&&label=='?'){$.each(atpNumbers,function(key,value){if(key==id){if(parseInt(value)<0)label='store';return;}});if(label=='?')label='';$(this).data('productLabel',label);}});return this;};WssPaymentProductLabels.prototype.getProductsWssIdForAtpRequest=function(){var result=[];$.each(this.getElements(),function(){var label=$(this).data('productLabel'),id=$(this).data('wss_id');if(typeof label!=="undefined"&&label=='?')result.push(id);});return result;};WssPaymentProductLabels.prototype.setLabels=function(){$.each(this.getElements(),function(){var label=$(this).data('productLabel');var labelObj=$('<div>');switch(label){case 'online':if(!$(this).find('.product-sticker.online-only').length){labelObj.addClass('product-sticker online-only').html(Drupal.t('Only online'));$(this).find('.product-stickers').append(labelObj);$(this).find('.product-sticker.store-only').remove();}break;case 'store':if(!$(this).find('.product-sticker.store-only').length){labelObj.addClass('product-sticker store-only').html(Drupal.t('Only in store'));$(this).find('.product-stickers').append(labelObj);$(this).find('.product-sticker.online-only').remove();}break;default:break;}});return this;};}(jQuery));; 17/* @license Fingerprintjs https://github.com/fingerprintjs/fingerprintjs/blob/master/LICENSE */ 18;(function(name,context,definition){if(typeof module!=='undefined'&&module.exports)module.exports=definition();else if(typeof define==='function'&&define.amd)define(definition);else context[name]=definition();})('Fingerprint',this,function(){'use strict';var Fingerprint=function(options){var nativeForEach,nativeMap;nativeForEach=Array.prototype.forEach;nativeMap=Array.prototype.map;this.each=function(obj,iterator,context){if(obj===null)return;
18if(nativeForEach&&obj.forEach===nativeForEach)obj.forEach(iterator,context);else if(obj.length===+obj.length){for(var i=0,l=obj.length;i<l;i++)if(iterator.call(context,obj[i],i,obj)==={})return;}else{for(var key in obj)if(obj.hasOwnProperty(key))if(iterator.call(context,obj[key],key,obj)==={})return;}};this.map=function(obj,iterator,context){var results=[];if(obj==null)return results;if(nativeMap&&obj.map===nativeMap)return obj.map(iterator,context);this.each(obj,function(value,index,list){results[results.length]=iterator.call(context,value,index,list);});return results;};if(typeof options=='object'){this.hasher=options.hasher;this.screen_resolution=options.screen_resolution;this.screen_orientation=options.screen_orientation;this.canvas=options.canvas;this.ie_activex=options.ie_activex;}else{if(typeof options=='function')this.hasher=options;}};Fingerprint.prototype={get:function(){var keys=[];keys.push(navigator.userAgent);keys.push(navigator.language);keys.push(screen.colorDepth);if(this.screen_resolution){var resolution=this.getScreenResolution();if(typeof resolution!=='undefined')keys.push(this.getScreenResolution().join('x'));}keys.push(new Date().getTimezoneOffset());keys.push(this.hasSessionStorage());keys.push(this.hasLocalStorage());keys.push(!!window.indexedDB);if(document.body)keys.push(typeof (document.body.addBehavior));else keys.push(typeof undefined);keys.push(typeof (window.openDatabase));keys.push(navigator.cpuClass);keys.push(navigator.platform);keys.push(navigator.doNotTrack);keys.push(this.getPluginsString());if(this.canvas&&this.isCanvasSupported())keys.push(this.getCanvasFingerprint());if(this.hasher)return this.hasher(keys.join('###'),31);else return this.murmurhash3_32_gc(keys.join('###'),31);},murmurhash3_32_gc:function(key,seed){var remainder,bytes,h1,h1b,c1,c2,k1,i;remainder=key.length&3;bytes=key.length-remainder;h1=seed;c1=0xcc9e2d51;c2=0x1b873593;i=0;while(i<bytes){k1=((key.charCodeAt(i)&0xff))|((key.charCodeAt(++i)&0xff)<<8)|((key.charCodeAt(++i)&0xff)<<16)|((key.charCodeAt(++i)&0xff)<<24);++i;k1=((((k1&0xffff)*c1)+((((k1>>>16)*c1)&0xffff)<<16)))&0xffffffff;k1=(k1<<15)|(k1>>>17);k1=((((k1&0xffff)*c2)+((((k1>>>16)*c2)&0xffff)<<16)))&0xffffffff;h1^=k1;h1=(h1<<13)|(h1>>>19);h1b=((((h1&0xffff)*5)+((((h1>>>16)*5)&0xffff)<<16)))&0xffffffff;h1=(((h1b&0xffff)+0x6b64)+((((h1b>>>16)+0xe654)&0xffff)<<16));}k1=0;switch(remainder){case 3:k1^=(key.charCodeAt(i+2)&0xff)<<16;case 2:k1^=(key.charCodeAt(i+1)&0xff)<<8;case 1:k1^=(key.charCodeAt(i)&0xff);k1=(((k1&0xffff)*c1)+((((k1>>>16)*c1)&0xffff)<<16))&0xffffffff;k1=(k1<<15)|(k1>>>17);k1=(((k1&0xffff)*c2)+((((k1>>>16)*c2)&0xffff)<<16))&0xffffffff;h1^=k1;}h1^=key.length;h1^=h1>>>16;h1=(((h1&0xffff)*0x85ebca6b)+((((h1>>>16)*0x85ebca6b)&0xffff)<<16))&0xffffffff;h1^=h1>>>13;h1=((((h1&0xffff)*0xc2b2ae35)+((((h1>>>16)*0xc2b2ae35)&0xffff)<<16)))&0xffffffff;h1^=h1>>>16;return h1>>>0;},hasLocalStorage:function(){try{return !!window.localStorage;}catch(e){return true;}},hasSessionStorage:function(){try{return !!window.sessionStorage;}catch(e){return true;}},isCanvasSupported:function(){var elem=document.createElement('canvas');return !!(elem.getContext&&elem.getContext('2d'));},isIE:function(){if(navigator.appName==='Microsoft Internet Explorer')return true;else{if(navigator.appName==='Netscape'&&/Trident/.test(navigator.userAgent))return true;}return false;},getPluginsString:function(){if(this.isIE()&&this.ie_activex)return this.getIEPluginsString();else return this.getRegularPluginsString();},getRegularPluginsString:function(){return this.map(navigator.plugins,function(p){var mimeTypes=this.map(p,function(mt){return [mt.type,mt.suffixes].join('~');}).join(',');return [p.name,p.description,mimeTypes].join('::');},this).join(';');},getIEPluginsString:function(){if(window.ActiveXObject){var names=['ShockwaveFlash.ShockwaveFlash','AcroPDF.PDF','PDF.PdfCtrl','QuickTime.QuickTime','rmocx.RealPlayer G2 Control','rmocx.RealPlayer G2 Control.1','RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)','RealVideo.RealVideo(tm) ActiveX Control (32-bit)','RealPlayer','SWCtl.SWCtl','WMPlayer.OCX','AgControl.AgControl','Skype.Detection'];return this.map(names,function(name){try{new ActiveXObject(name);return name;}catch(e){return null;}}).join(';');}else return "";},getScreenResolution:function(){var resolution;if(this.screen_orientation)resolution=(screen.height>screen.width)?[screen.height,screen.width]:[screen.width,screen.height];else resolution=[screen.height,screen.width];return resolution;},getCanvasFingerprint:function(){var canvas=document.createElement('canvas');var ctx=canvas.getContext('2d');var txt='http://valve.github.io';ctx.textBaseline="top";ctx.font="14px 'Arial'";ctx.textBaseline="alphabetic";ctx.fillStyle="#f60";ctx.fillRect(125,1,62,20);ctx.fillStyle="#069";ctx.fillText(txt,2,15);ctx.fillStyle="rgba(102, 204, 0, 0.7)";ctx.fillText(txt,4,17);return canvas.toDataURL();}};return Fingerprint;});;
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.