!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=194)}([function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbstractValidator=void 0;var AbstractValidator=function(_super){function AbstractValidator(inputElement,validateParam){var _this=_super.call(this)||this;return _this.inputElement=null,_this.validateParam=null,_this.errorMessage=null,_this.ignoreValidation=!1,_this.inputElement=inputElement,_this.validateParam=validateParam,_this}return __extends(AbstractValidator,_super),AbstractValidator.prototype.getIgnoreValidation=function(){return this.ignoreValidation},AbstractValidator.prototype.validate=function(){throw new Error("You need to implement the validate() method on the ("+this.constructor.name+") class!")},AbstractValidator.prototype.getFunctionName=function(fn){var f="function"==typeof fn,s=f&&(fn.name&&["",fn.name]||fn.toString().match(/function ([^\(]+)/));return f?s&&s[1]||"anonymous":"not a function"},AbstractValidator.prototype.getErrorMessage=function(){var validatorClassName=void 0!==this.constructor.name?this.constructor.name:this.getFunctionName(this.constructor),validatorName=this.constructor.validatorName,message=this.getProduct().getConfig().getByPath("validation:errorMessage:"+validatorClassName);if(!message)throw new Error("Error message has not been set in config (phuse:text:global:validation:messages) for the validator: ("+validatorClassName+")");var rawOverrideMessages=this.inputElement.attr("form-error-messages");if(void 0!==rawOverrideMessages)try{var overrideMessage=JSON.parse(rawOverrideMessages)[validatorName];if(void 0!==overrideMessage)return overrideMessage}catch(e){throw new Error("Issue with parsing error message override json: "+e)}return message},AbstractValidator}(__webpack_require__(4).ProductAware);exports.AbstractValidator=AbstractValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbstractComponent=void 0;var AbstractComponent=function(_super){function AbstractComponent(componentElement,product,instanceNumber){void 0===instanceNumber&&(instanceNumber=null);var _this=_super.call(this)||this;return _this.setProduct(product),_this.componentElement=componentElement,_this.componentElement.attr("ss-component",!0),_this.getComponentParameter(),instanceNumber&&_this.setInstanceNumber(instanceNumber),_this}return __extends(AbstractComponent,_super),AbstractComponent.prototype.init=function(){},AbstractComponent.prototype.getId=function(){return this.componentElement.attr(this.constructor.selector)},AbstractComponent.prototype.setInstanceNumber=function(instanceNumber){return this.instanceNumber=instanceNumber,this},AbstractComponent.prototype.getInstanceNumber=function(){return this.instanceNumber},AbstractComponent.prototype.getComponentParameter=function(){this.componentParam=this.componentElement.attr(this.constructor.selector),this.componentParam=this.componentParam.replace(this.constructor.selector+"_","")},AbstractComponent.prototype.setupDataActionEventHandlers=function(){var componentElementId=this.componentElement.attr("id"),dataActionElements=$("[data-action]",this.componentElement);dataActionElements=dataActionElements.filter(function(){return $(this).closest("[ss-component]").attr("id")===componentElementId}),this.componentElement.attr("data-action")&&dataActionElements.push(this.componentElement);for(var _i=0,dataActionElements_1=dataActionElements;_i')):this.componentElement.append($('
')),$(window).on("load",function(){this.googleRecaptchaId=grecaptcha.render(this.googleRecaptchaHashId,{sitekey:this.googleRecaptchaApiKey,callback:this.recaptchaSubmitCallback.bind(this),badge:"inline",size:"invisible"})}.bind(this))},AbstractFormComponent.prototype.isAjaxEnabled=function(){return void 0!==this.componentElement.attr("form-component-ajax")&&(this.ajaxEnabled=!0,!0)},AbstractFormComponent.prototype.setupAjaxSubmission=function(){var callbacks=this.componentElement.attr("form-component-ajax");if(this.ajaxMethod=this.componentElement.attr("method")||"POST",this.ajaxAction=this.componentElement.attr("action"),""!==callbacks){try{callbacks=JSON.parse(callbacks)}catch(error){console.error(error)}if("function"!=typeof this[callbacks.success])throw new Error('Ajax success callback method "'+callbacks.success+'()" does not exist on '+this.constructor.name);if("function"!=typeof this[callbacks.failed])throw new Error('Ajax failed callback method "'+callbacks.success+'()" does not exist on '+this.constructor.name);this.ajaxCallbacks=callbacks}},AbstractFormComponent.prototype.triggerAjaxSubmit=function(){if(this.ajaxEnabled){var formData=this.componentElement.serializeArray();$.ajax(__assign({method:this.ajaxMethod,url:this.ajaxAction,data:formData},this.getAjaxOptions())).done(this[this.ajaxCallbacks.success].bind(this)).fail(this[this.ajaxCallbacks.failed].bind(this))}},AbstractFormComponent.prototype.ajaxSuccess=function(response){this.resetForm(),this.componentElement[0].reset()},AbstractFormComponent.prototype.ajaxFailed=function(error){this.setProcessing(!1)},AbstractFormComponent.prototype.getAjaxOptions=function(){return{}},AbstractFormComponent.prototype.isForm=function(){return!0},AbstractFormComponent.prototype.recaptchaSubmitCallback=function(e){this.recaptchaResponse=e,this.googleRecaptchaPassed=!0,this.handleFormSubmission()},AbstractFormComponent.prototype.getValidationElementsAndSetFormState=function(allElements){void 0===allElements&&(allElements=!1);var inputElements=$(this.elementSelectors,this.componentElement);if(!allElements){var allFormFieldsToIgnore=this.getAllFormFieldsToIgnore(inputElements);if(allFormFieldsToIgnore.length)for(var _i=0,inputElements_1=inputElements;_i").addClass(this.bemBaseClass+this.bemMessageHolderElementClass)).find("."+this.bemBaseClass+this.bemMessageHolderElementClass)).html(""),validators)if(validators.hasOwnProperty(validatorIndex)){var validator=validators[validatorIndex],errorMessage=inputLabel.find('[form-error-num="'+validatorIndex+'"]');validator.validate()?errorMessage.addClass(this.bemBaseClass+this.bemVisibilityModifierClass):errorMessage.length?errorMessage.removeClass(this.bemBaseClass+this.bemVisibilityModifierClass):(inputMessages.append($("").addClass(this.bemBaseClass+this.bemMessageElementClass).attr("form-error-num",validatorIndex).text(validator.getErrorMessage())),void 0===this.errorsShown[inputId]&&(this.errorsShown[inputId]=[]),this.errorsShown[inputId].push(validator.getErrorMessage()))}return this},AbstractFormComponent.prototype.resetForm=function(){for(var _i=0,inputElements_5=this.getValidationElementsAndSetFormState();_i1)submitButton=clickedButton;else if(1===submitButton.length&&submitButton!==clickedButton&&hasAttr)return this;return button&&(submitButton=button),submitButton?(!processing&&submitButton.filter("[processing]").length&&(submitButton=submitButton.filter("[processing]")),processing&&(this.buttonData={original:submitButton.html(),width:submitButton.width(),processing:this.getProcessingText()}),processing?(void 0!==submitButton.attr("data-submit-width-auto")&&!1!==submitButton.attr("data-submit-width-auto")?submitButton.html(this.buttonData.processing).css("width","auto").attr("processing",!0):submitButton.width(this.buttonData.width).html(this.buttonData.processing).attr("processing",!0),disableButton&&(this.preventFormSubmission=!0)):(this.buttonData&&submitButton.html(this.buttonData.original).removeAttr("processing"),this.preventFormSubmission=!1),this):(this.preventFormSubmission=processing,void console.warn("No submit button found on form this may cause issues"))},AbstractFormComponent.prototype.getProcessingText=function(){var submitButton=this.componentElement.find('input[type="submit"], button[type="submit"], button[type="button"], [form-submit]');if(submitButton.length>0){var processingMessage=submitButton.first().attr("processing-message");if(void 0!==processingMessage)return processingMessage}return this.processingText},AbstractFormComponent.prototype.detectUserCloseRecaptchaWindow=function(){this.recaptchaCloseListener=!1;var recaptchaWindow=$('iframe[src*="google.com/recaptcha/api2/bframe"]').parent("div").parent();return new MutationObserver(function(mutation){recaptchaWindow&&"hidden"===recaptchaWindow.css("visibility")&&(this.setProcessing(!1),this.recaptchaCloseListener=!0)}.bind(this)).observe(recaptchaWindow[0],{attributes:!0,attributeFilter:["style"]}),this.recaptchaCloseListener},AbstractFormComponent.prototype.onBeforeUnload=function(enabled){void 0===enabled&&(enabled=!0),enabled&&this.isChargeHiveEnabled()?window.onbeforeunload=function(e){var message=this.getProduct().getConfig().getByPath("FormComponent:onbeforeunloadMessage");return message||"There is potentially unsaved data on the page. Are you sure you want to navigate away?"}.bind(this):window.onbeforeunload=null},AbstractFormComponent.prototype.isChargeHiveEnabled=function(){var chargeHiveEnabled=this.componentElement.attr("charge-hive-enabled");return void 0!==chargeHiveEnabled&&!1!==chargeHiveEnabled&&"undefined"!=typeof ChargeHive},AbstractFormComponent.prototype.setFormSent=function(bool){this.formSent=bool},AbstractFormComponent}(AbstractComponent_1.AbstractComponent);exports.AbstractFormComponent=AbstractFormComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.FormComponent=void 0;var FormComponent=function(_super){function FormComponent(componentElement,product){return _super.call(this,componentElement,product)||this}return __extends(FormComponent,_super),FormComponent.selector="form-component",FormComponent}(__webpack_require__(7).AbstractFormComponent);exports.FormComponent=FormComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbstractMyHandler=void 0;var AbstractMyHandler=function(_super){function AbstractMyHandler(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(AbstractMyHandler,_super),AbstractMyHandler.prototype.shouldRun=function(){return!0},AbstractMyHandler}(__webpack_require__(3).AbstractHandler);exports.AbstractMyHandler=AbstractMyHandler},function(module,exports,__webpack_require__){(function(global,setImmediate){var t;t=function(){"use strict";function r(e,t){for(var n=0;n0?2===q.length?"function"==typeof q[1]?this[q[0]]=q[1].call(this,match):this[q[0]]=q[1]:3===q.length?"function"!=typeof q[1]||q[1].exec&&q[1].test?this[q[0]]=match?match.replace(q[1],q[2]):void 0:this[q[0]]=match?q[1].call(this,match,q[2]):void 0:4===q.length&&(this[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):void 0):this[q]=match||void 0;i+=2}},strMapper=function(str,map){for(var i in map)if("object"==typeof map[i]&&map[i].length>0){for(var j=0;j350?trim(ua,350):ua,this},this.setUA(_ua),this};UAParser.VERSION="0.7.32",UAParser.BROWSER=enumerize([NAME,VERSION,"major"]),UAParser.CPU=enumerize(["architecture"]),UAParser.DEVICE=enumerize([MODEL,VENDOR,TYPE,"console",MOBILE,SMARTTV,TABLET,"wearable","embedded"]),UAParser.ENGINE=UAParser.OS=enumerize([NAME,VERSION]),void 0!==exports?(void 0!==module&&module.exports&&(exports=module.exports=UAParser),exports.UAParser=UAParser):__webpack_require__(36)?void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return UAParser}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__):void 0!==window&&(window.UAParser=UAParser);var $=void 0!==window&&(window.jQuery||window.Zepto);if($&&!$.ua){var parser=new UAParser;$.ua=parser.getResult(),$.ua.get=function(){return parser.getUA()},$.ua.set=function(ua){parser.setUA(ua);var result=parser.getResult();for(var prop in result)$.ua[prop]=result[prop]}}}("object"==typeof window?window:this)},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.TranslationEditorComponent=void 0;var TranslationEditorComponent=function(_super){function TranslationEditorComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.translationEditorConsoleAttribute="data-phuse-bem-translate-editor",_this.translationEditorSpanAttribute="data-phuse-translate",_this.translationCloseAttribute="data-phuse-bem-translate-exit",_this.translationFormAttribute="data-phuse-translate-form",_this.translationDisableAttribute="data-phuse-translate-disable",_this.translationKeyHolderAttribute="data-phuse-bem-translate-key",_this.uneditableTextArrayAttribute="data-phuse-translate-uneditable-text-array",_this.translateSearchAttribute="phuse-translate-search-input",_this.translateSearchDropdownAttribute="phuse-translate-search-dropdown",_this.modalAvailablePlaceholders=$("[data-phuse-translate-available-placeholders]"),_this.modalPreviousTextContainer=$("#phuseTranslatePreviousText","["+_this.translationEditorConsoleAttribute+"]"),_this.disableConsoleElement=$("["+_this.translationDisableAttribute+"]"),_this.modalCurrentRawTextInput=$("#phuseTranslateCurrentRawText","["+_this.translationEditorConsoleAttribute+"]"),_this.modalTextArea=$("#phuseTranslateText","["+_this.translationEditorConsoleAttribute+"]"),_this.modalKeyInput=$("#phuseTranslateKey","["+_this.translationEditorConsoleAttribute+"]"),_this.modalIsoCodeInput=$("#phuseTranslateLanguageIsoCode","["+_this.translationEditorConsoleAttribute+"]"),_this.modalPlaceholdersInput=$("#phuseTranslatePlaceholders","["+_this.translationEditorConsoleAttribute+"]"),_this.consoleModalTab="data-phuse-translate-console-tab",_this.consoleModalTabContent="data-phuse-translate-console-tab-content",_this.displayModalClass="console--show",_this.isUneditableText=!1,_this.skipLanguageDetectionCheckInput=$("#phuseTranslateSkipLanguageDetection","["+_this.translationEditorConsoleAttribute+"]"),_this.errorContainerElement=$("[data-error-container]","["+_this.translationEditorConsoleAttribute+"]"),_this.setUpClickHandlers(),_this.formSubmit(),_this.setupSearchChange(),_this.errorContainerElement.hide(),_this}return __extends(TranslationEditorComponent,_super),TranslationEditorComponent.prototype.setUpClickHandlers=function(){var self=this;$(document).on("click","button, a",function(event){var clickedLink=$(this);if(0==clickedLink.find("[data-phuse-translate]").length)return!0;if(event.altKey&&event.shiftKey){var revealId=clickedLink.data("reveal-id");if(void 0!==revealId)return event.stopPropagation(),event.preventDefault(),$("#"+revealId).foundation("reveal","open"),!0;if(clickedLink.is("button"))return clickedLink.closest("form").submit(),!0;if(clickedLink.is("a")){event.stopPropagation(),event.preventDefault();var target=clickedLink.attr("target"),url=clickedLink.attr("href");if("_blank"==target)window.open(url,"_blank").location;else window.location.href=url}}return event.stopPropagation(),event.preventDefault(),!0}),$(document).on("click","[data-phuse-translate] > button, [data-phuse-translate] > a",function(event){var clickedLink=$(this);if(event.altKey&&event.shiftKey){event.preventDefault(),event.stopPropagation(),event.stopImmediatePropagation();var revealId=clickedLink.data("reveal-id");if(void 0!==revealId)return $("#"+revealId).foundation("reveal","open"),!0;if(void 0!==clickedLink.data("modal-reveal-selector"))return clickedLink.trigger("triggerModal"),!1;var target=clickedLink.attr("target"),url=clickedLink.attr("href");if("_blank"==target)window.open(url,"_blank").location;else window.location.href=url}else{event.preventDefault(),event.stopPropagation(),event.stopImmediatePropagation();var translateSpan=clickedLink.closest("[data-phuse-translate]"),rawText=translateSpan.data("phuse-translate-raw-text");rawText=decodeURIComponent(rawText);var key=translateSpan.data("phuse-translate-key"),placeholderArray=translateSpan.data("phuse-translate-placeholder-array"),currentLanguageIsoCode=translateSpan.data("phuse-translate-language-iso");if(self.hydrateConsole(key,rawText,placeholderArray,currentLanguageIsoCode),self.isUneditableText=!1,self.openTranslationConsole(),void 0!==clickedLink.data("modal-reveal-selector"))return!1}return!0}),$(document).ready(function(){$("["+self.translationEditorSpanAttribute+"]").on("click",function(event){if(!event.altKey||!event.shiftKey){self.openTranslationConsole();var key=$(this).data("phuse-translate-key"),rawText=decodeURIComponent($(this).data("phuse-translate-raw-text")),placeHolderArray=$(this).data("phuse-translate-placeholder-array"),IsoCode=$(this).data("phuse-translate-language-iso");self.hydrateConsole(key,rawText,placeHolderArray,IsoCode)}})}),$(document).on("click","["+this.consoleModalTab+"]",function(e){self.switchTab(e)})},TranslationEditorComponent.prototype.openTranslationConsole=function(){$("["+this.translationEditorConsoleAttribute+"]").addClass(this.displayModalClass),this.addBodyPadding()},TranslationEditorComponent.prototype.addBodyPadding=function(){var modalHeight=$("["+this.translationEditorConsoleAttribute+"]").height();$("body").css({height:"auto","padding-bottom":modalHeight})},TranslationEditorComponent.prototype.hydrateConsole=function(key,rawText,placeholderArray,languageIsoCode,uneditableText){for(var placeholderKey in void 0===uneditableText&&(uneditableText=!1),this.modalPreviousTextContainer.text(rawText),this.modalCurrentRawTextInput.val(rawText),this.modalTextArea.val(rawText),this.modalKeyInput.val(key),this.modalIsoCodeInput.val(languageIsoCode),this.isUneditableText||(placeholderArray=JSON.stringify(JSON.parse(decodeURIComponent(placeholderArray)))),this.modalPlaceholdersInput.val(),$("["+this.translationKeyHolderAttribute+"]").html(key),this.isUneditableText||(placeholderArray=JSON.parse(decodeURIComponent(placeholderArray))),this.modalAvailablePlaceholders.html(""),placeholderArray)if(placeholderArray.hasOwnProperty(placeholderKey)){var placeholder="%"+placeholderKey+"%";this.modalAvailablePlaceholders.append($("
  • ").append($("").text(placeholder)).append($('').val(placeholder)))}return!0},TranslationEditorComponent.prototype.hydrateErrorContainerAndShow=function(errorMessage){var self=this;return this.disableConsoleElement.delay(1e3).queue(function(){self.errorContainerElement.text(errorMessage),self.errorContainerElement.show(),$(this).css("display","none").dequeue()}),this},TranslationEditorComponent.prototype.disableConsole=function(){return this.disableConsoleElement.css("display","block"),this.disableConsoleElement.html(''),!0},TranslationEditorComponent.prototype.formSubmit=function(){var self=this;return $("["+this.translationFormAttribute+"]").submit(function(e){e.preventDefault(),e.returnValue=!1,self.disableConsole();var ajaxDest=$(this).data("phuse-translate-ajax-dest"),formData={key:$(this).find("#phuseTranslateKey").val(),text:$(this).find("#phuseTranslateText").val(),languageIsoCode:$(this).find("#phuseTranslateLanguageIsoCode").val(),skipLanguageDetection:self.skipLanguageDetectionCheckInput.is(":checked")};console.log("Translation editor form data: ",formData),$.ajax({method:"POST",url:ajaxDest,data:formData}).done(function(response){return response.hasOwnProperty("success")&&1==response.success?self.formSubmitSuccessHandler(formData):response.hasOwnProperty("languageDetectionError")&&1==response.languageDetectionError?self.hydrateErrorContainerAndShow("Language detected doesn't match the target language: "+self.modalIsoCodeInput.val()+". Check the box below to ignore this check and save anyway."):(console.log("form error"),self.formSubmitFailureHandler(response))}).fail(function(response){console.log("ajax fail"),self.formSubmitFailureHandler(response)})}),!0},TranslationEditorComponent.prototype.formSubmitSuccessHandler=function(formData){this.errorContainerElement.text(""),this.errorContainerElement.hide(),this.skipLanguageDetectionCheckInput.prop("checked",!1),this.disableConsoleElement.html('');var key=formData.key,unfilteredText=formData.text;this.isUneditableText||$("[data-phuse-translate-key='"+key+"']").html(this.replacePlaceholders(unfilteredText,key));var spanElements=$("[data-phuse-translate-key="+key+"]"),updatedRawText=formData.text,encodedUpdatedRawText=encodeURI(updatedRawText),base64PlaceholderArray=spanElements.data("phuse-translate-placeholder-array"),decodedPlaceholderArray=decodeURIComponent(base64PlaceholderArray),placeholderArrayObject=JSON.parse(decodedPlaceholderArray),compiledText=this.getCompiledText(updatedRawText,placeholderArrayObject);return spanElements.each(function(){var spanElement=$(this);spanElement.html(compiledText),spanElement.data("phuse-translate-raw-text",encodedUpdatedRawText),spanElement.data("phuse-translate-placeholder-array",base64PlaceholderArray)}),this.disableConsoleElement.delay(1e3).queue(function(){$(this).css("display","none").dequeue()}),!0},TranslationEditorComponent.prototype.getCompiledText=function(rawText,placeholderArray){var compiledText=rawText;for(var key in placeholderArray)if(placeholderArray.hasOwnProperty(key)){var value=placeholderArray[key],stringToReplace="%"+key+"%";compiledText=compiledText.replace(stringToReplace,value)}return compiledText},TranslationEditorComponent.prototype.formSubmitFailureHandler=function(response){return console.log(response),this.disableConsoleElement.html(''),this.disableConsoleElement.delay(1e3).queue(function(){$(this).css("display","none").dequeue()}),!0},TranslationEditorComponent.prototype.replacePlaceholders=function(text,key){var placeHoldersArray=JSON.parse(decodeURIComponent($("[data-phuse-translate-key='"+key+"']").data("phuse-translate-placeholder-array")));for(key in placeHoldersArray){var value=placeHoldersArray[key],regexString=new RegExp("%"+key+"%","g");text=text.replace(regexString,value)}return text},TranslationEditorComponent.prototype.hideConsole=function(){$("["+this.translationEditorConsoleAttribute+"]").removeClass(this.displayModalClass),$("body").css({height:"auto","padding-bottom":0})},TranslationEditorComponent.prototype.switchTab=function(event,tabToOpen){void 0===tabToOpen&&(tabToOpen=null),null==tabToOpen&&(tabToOpen=$(event.currentTarget).attr(this.consoleModalTab)),$("["+this.consoleModalTabContent+"]").removeClass("console--active-tab"),$("["+this.consoleModalTabContent+"='"+tabToOpen+"']").addClass("console--active-tab"),console.log($("["+this.consoleModalTabContent+"='"+tabToOpen+"']")),tabToOpen=null,this.addBodyPadding()},TranslationEditorComponent.prototype.setupSearchChange=function(){var self=this;$(document).on("keyup","["+self.translateSearchAttribute+"]",function(){self.searchUneditableText()})},TranslationEditorComponent.prototype.searchUneditableText=function(){for(var uneditableTextArray=this.getProduct().getConfig().getByPath("translationEditor").toArray(),searchTerm=$("["+this.translateSearchAttribute+"]").val().toLowerCase(),searchResults=[],i=0;i0||uneditableTextObject.key.indexOf(searchTerm)>0)&&searchResults.push(uneditableTextObject)}this.fillSearchDropDown(searchResults)},TranslationEditorComponent.prototype.fillSearchDropDown=function(searchResults){var self=this,searchDropdown=$("["+self.translateSearchDropdownAttribute+"]");searchDropdown.html(""),searchDropdown.append($(""));for(var i=0;i"+searchResult.text+"").val(JSON.stringify(searchResult)))}searchDropdown.on("change",function(e){var currentDropdownVal=$.parseJSON(searchDropdown.val());self.isUneditableText=!0,self.hydrateConsole(currentDropdownVal.key,currentDropdownVal.text,currentDropdownVal.placeHolders,currentDropdownVal.isoCode),self.switchTab(event,1)})},TranslationEditorComponent.selector="data-phuse-bem-translate-editor",TranslationEditorComponent}(__webpack_require__(1).AbstractComponent);exports.TranslationEditorComponent=TranslationEditorComponent},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Product=void 0;var CookieModule_1=__webpack_require__(14),BrowserHistoryModule_1=__webpack_require__(16),ConfigModule_1=__webpack_require__(17),LocalStorageModule_1=__webpack_require__(19),UtilityModule_1=__webpack_require__(21),EnvironmentModule_1=__webpack_require__(24),ModalModule_1=__webpack_require__(28),BreakpointModule_1=__webpack_require__(29),EqualizerModule_1=__webpack_require__(30),ViewModule_1=__webpack_require__(31),PixelModule_1=__webpack_require__(32),ResizeObserverModule_1=__webpack_require__(33),UserAgentParserModule_1=__webpack_require__(35),Product=function(){function Product(){}return Product.prototype.getApp=function(){return this.app},Product.prototype.setApp=function(app){return this.app=app,this},Product.prototype.getBrowserHistoryModule=function(){return this.browserHistoryModule||(this.browserHistoryModule=new BrowserHistoryModule_1.BrowserHistoryModule(this)),this.browserHistoryModule},Product.prototype.getCookieModule=function(){return this.cookieModule||(this.cookieModule=new CookieModule_1.CookieModule(this)),this.cookieModule},Product.prototype.getConfig=function(){return this.getConfigModule().getConfig()},Product.prototype.getConfigModule=function(){return this.configModule||(this.configModule=new ConfigModule_1.ConfigModule(this)),this.configModule},Product.prototype.getEnvironmentModule=function(){return this.environmentModule||(this.environmentModule=new EnvironmentModule_1.EnvironmentModule(this)),this.environmentModule},Product.prototype.getLocalStorageModule=function(){return this.localStorageModule||(this.localStorageModule=new LocalStorageModule_1.LocalStorageModule(this)),this.localStorageModule},Product.prototype.getModalModule=function(){return this.modalModule||(this.modalModule=new ModalModule_1.ModalModule(this)),this.modalModule},Product.prototype.getBreakpointModule=function(){return this.breakpointModule||(this.breakpointModule=new BreakpointModule_1.BreakpointModule(this)),this.breakpointModule},Product.prototype.getEqualizerModule=function(){return this.equalizerModule||(this.equalizerModule=new EqualizerModule_1.EqualizerModule(this)),this.equalizerModule},Product.prototype.getPixelModule=function(){return this.pixelModule||(this.pixelModule=new PixelModule_1.PixelModule(this)),this.pixelModule},Product.prototype.getUtilityModule=function(){return this.utilityModule||(this.utilityModule=new UtilityModule_1.UtilityModule(this)),this.utilityModule},Product.prototype.getViewModule=function(){return this.viewModule||(this.viewModule=new ViewModule_1.ViewModule(this)),this.viewModule},Product.prototype.getResizeObserverModule=function(){return this.resizeObserverModule||(this.resizeObserverModule=new ResizeObserverModule_1.ResizeObserverModule(this)),this.resizeObserverModule},Product.prototype.getUserAgentParserModule=function(){return this.userAgentParserModule||(this.userAgentParserModule=new UserAgentParserModule_1.UserAgentParserModule(this)),this.userAgentParserModule},Product}();exports.Product=Product},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CookieModule=void 0;var AbstractModule_1=__webpack_require__(2),Cookie_1=__webpack_require__(15),CookieModule=function(_super){function CookieModule(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(CookieModule,_super),CookieModule.prototype.set=function(key,value,domain,expiryDate,path){void 0===domain&&(domain=null),void 0===expiryDate&&(expiryDate=null),void 0===path&&(path=null);var cookieString=key+"="+value;if(!domain){var hostParts=location.host.split(".");domain="."+hostParts.slice(1,hostParts.length).join(".")}(cookieString+=";domain="+domain,path&&(cookieString+=";path="+path),expiryDate)&&(cookieString+=";expires="+expiryDate.toUTCString());return document.cookie=cookieString,this},CookieModule.prototype.remove=function(key,path){return void 0===path&&(path=null),this.set(key,null,null,new Date(1970,1,1),path)},CookieModule.prototype.getByKey=function(key){var cookie=this.getAll()[key];return void 0!==cookie?cookie:null},CookieModule.prototype.create=function(key,value){return new Cookie_1.Cookie(key,value)},CookieModule.prototype.getAll=function(){for(var cookieEntityConfig={},_i=0,cookieStrings_1=document.cookie.split(";");_iexpiryUnix},LocalStorageItem.prototype.getKey=function(){return this.key},LocalStorageItem.prototype.setKey=function(key){return this.key=key,this},LocalStorageItem.prototype.getValue=function(){return this.value},LocalStorageItem.prototype.setValue=function(value){return this.value=value,this},LocalStorageItem}();exports.LocalStorageItem=LocalStorageItem},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.UtilityModule=void 0;var AbstractModule_1=__webpack_require__(2),DateTimeUtility_1=__webpack_require__(22),UtilityModule=function(_super){function UtilityModule(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(UtilityModule,_super),UtilityModule.prototype.getDateTime=function(){return this.dateTimeUtility||(this.dateTimeUtility=new DateTimeUtility_1.DateTimeUtility),this.dateTimeUtility},UtilityModule}(AbstractModule_1.AbstractModule);exports.UtilityModule=UtilityModule},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.DateTimeUtility=void 0;var DateTimeUtility=function(_super){function DateTimeUtility(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(DateTimeUtility,_super),DateTimeUtility.prototype.getTimeInSecondsFromTimeString=function(timeString){for(var timeInSeconds=0,_i=0,parts_1=timeString.split(":");_i0?2==q.length?"function"==typeof q[1]?result[q[0]]=q[1].call(this,match):result[q[0]]=q[1]:3==q.length?"function"!=typeof q[1]||q[1].exec&&q[1].test?result[q[0]]=match?match.replace(q[1],q[2]):void 0:result[q[0]]=match?q[1].call(this,match,q[2]):void 0:4==q.length&&(result[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):void 0):result[q]=match||void 0;break}if(matches)break}return result},str:function(str,map){for(var i in map)if("object"==typeof map[i]&&map[i].length>0){for(var j in map[i])if(util.has(map[i][j],str))return"?"===i?void 0:i}else if(util.has(map[i],str))return"?"===i?void 0:i;return str}},maps={browser:{oldsafari:{major:{1:["/8","/1","/3"],2:"/4","?":"/"},version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",RT:"ARM"}}}},regexes={browser:[[/(opera\smini)\/((\d+)?[\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i,/(opera).+version\/((\d+)?[\w\.]+)/i,/(opera)[\/\s]+((\d+)?[\w\.]+)/i],[NAME,VERSION,MAJOR],[/\s(opr)\/((\d+)?[\w\.]+)/i],[[NAME,"Opera"],VERSION,MAJOR],[/(kindle)\/((\d+)?[\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?((\d+)?[\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i,/(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i,/(rekonq)((?:\/)[\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt)\/((\d+)?[\w\.-]+)/i],[NAME,VERSION,MAJOR],[/(yabrowser)\/((\d+)?[\w\.]+)/i],[[NAME,"Yandex"],VERSION,MAJOR],[/(comodo_dragon)\/((\d+)?[\w\.]+)/i],[[NAME,/_/g," "],VERSION,MAJOR],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?((\d+)?[\w\.]+)/i],[NAME,VERSION,MAJOR],[/(dolfin)\/((\d+)?[\w\.]+)/i],[[NAME,"Dolphin"],VERSION,MAJOR],[/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i],[[NAME,"Chrome"],VERSION,MAJOR],[/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i],[VERSION,MAJOR,[NAME,"Mobile Safari"]],[/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i],[VERSION,MAJOR,NAME],[/webkit.+?(mobile\s?safari|safari)((\/[\w\.]+))/i],[NAME,[MAJOR,mapper.str,maps.browser.oldsafari.major],[VERSION,mapper.str,maps.browser.oldsafari.version]],[/(konqueror)\/((\d+)?[\w\.]+)/i,/(webkit|khtml)\/((\d+)?[\w\.]+)/i],[NAME,VERSION,MAJOR],[/(navigator|netscape)\/((\d+)?[\w\.-]+)/i],[[NAME,"Netscape"],VERSION,MAJOR],[/(swiftfox)/i,/(iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?((\d+)?[\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/((\d+)?[\w\.-]+)/i,/(mozilla)\/((\d+)?[\w\.]+).+rv\:.+gecko\/\d+/i,/(uc\s?browser|polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?((\d+)?[\w\.]+)/i,/(links)\s\(((\d+)?[\w\.]+)/i,/(gobrowser)\/?((\d+)?[\w\.]+)*/i,/(ice\s?browser)\/v?((\d+)?[\w\._]+)/i,/(mosaic)[\/\s]((\d+)?[\w\.]+)/i],[NAME,VERSION,MAJOR]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/(ia64(?=;)|68k(?=\))|arm(?=v\d+;)|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],["architecture",util.lowerize]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[MODEL,VENDOR,[TYPE,"tablet"]],[/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[VENDOR,MODEL,[TYPE,"tablet"]],[/\((ip[honed]+);.+(apple)/i],[MODEL,VENDOR,[TYPE,MOBILE]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/\((bb10);\s(\w+)/i],[[VENDOR,"BlackBerry"],MODEL,[TYPE,MOBILE]],[/android.+((transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+))/i],[[VENDOR,"Asus"],MODEL,[TYPE,"tablet"]],[/(sony)\s(tablet\s[ps])/i],[VENDOR,MODEL,[TYPE,"tablet"]],[/(nintendo)\s([wids3u]+)/i],[VENDOR,MODEL,[TYPE,"console"]],[/((playstation)\s[3portablevi]+)/i],[[VENDOR,"Sony"],MODEL,[TYPE,"console"]],[/(sprint\s(\w+))/i],[[VENDOR,mapper.str,maps.device.sprint.vendor],[MODEL,mapper.str,maps.device.sprint.model],[TYPE,MOBILE]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[VENDOR,[MODEL,/_/g," "],[TYPE,MOBILE]],[/\s((milestone|droid[2x]?))[globa\s]*\sbuild\//i,/(mot)[\s-]?(\w+)*/i],[[VENDOR,"Motorola"],MODEL,[TYPE,MOBILE]],[/android.+\s((mz60\d|xoom[\s2]{0,2}))\sbuild\//i],[[VENDOR,"Motorola"],MODEL,[TYPE,"tablet"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9))/i],[[VENDOR,"Samsung"],MODEL,[TYPE,"tablet"]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[VENDOR,"Samsung"],MODEL,[TYPE,MOBILE]],[/(sie)-(\w+)*/i],[[VENDOR,"Siemens"],MODEL,[TYPE,MOBILE]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[VENDOR,"Nokia"],MODEL,[TYPE,MOBILE]],[/android\s3\.[\s\w-;]{10}((a\d{3}))/i],[[VENDOR,"Acer"],MODEL,[TYPE,"tablet"]],[/android\s3\.[\s\w-;]{10}(lg?)-([06cv9]{3,4})/i],[[VENDOR,"LG"],MODEL,[TYPE,"tablet"]],[/((nexus\s4))/i,/(lg)[e;\s-\/]+(\w+)*/i],[[VENDOR,"LG"],MODEL,[TYPE,MOBILE]],[/(mobile|tablet);.+rv\:.+gecko\//i],[TYPE,VENDOR,MODEL]],engine:[[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[NAME,VERSION],[/rv\:([\w\.]+).*(gecko)/i],[VERSION,NAME]],os:[[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[NAME,[VERSION,mapper.str,maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[NAME,"Windows"],[VERSION,mapper.str,maps.os.windows.version]],[/\((bb)(10);/i],[[NAME,"BlackBerry"],VERSION],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)\/([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego)[\/\s-]?([\w\.]+)*/i],[NAME,VERSION],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[NAME,"Symbian"],VERSION],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[NAME,"Firefox OS"],VERSION],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[NAME,VERSION],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[NAME,"Chromium OS"],VERSION],[/(sunos)\s?([\w\.]+\d)*/i],[[NAME,"Solaris"],VERSION],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[NAME,VERSION],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[NAME,"iOS"],[VERSION,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i],[NAME,[VERSION,/_/g,"."]],[/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos)/i,/(unix)\s?([\w\.]+)*/i],[NAME,VERSION]]};module.exports=function UAParser(uastring){if(!(this instanceof UAParser))return new UAParser(uastring).getResult();var ua=uastring||(window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:"");if(!(this instanceof UAParser))return new UAParser(uastring).getResult();this.getBrowser=function(){return mapper.rgx.apply(this,regexes.browser)},this.getCPU=function(){return mapper.rgx.apply(this,regexes.cpu)},this.getDevice=function(){return mapper.rgx.apply(this,regexes.device)},this.getEngine=function(){return mapper.rgx.apply(this,regexes.engine)},this.getOS=function(){return mapper.rgx.apply(this,regexes.os)},this.getResult=function(){return{browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ua},this.setUA=function(uastring){return ua=uastring,this},this.setUA(ua)}}(this)},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModalModule=void 0;var ModalModule=function(_super){function ModalModule(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.modalSelector=".modal",_this.modalVisibleModifier="modal--visible",_this.hideAutoFillElementsSelector="modal-hide-auto-fill-elements",_this.modalReopenParent="modal-reopen-parent",_this.modalReopenTarget="modal-reopen-target",_this}return __extends(ModalModule,_super),ModalModule.prototype.revealModalByModalElement=function(modalElement){return modalElement.length<1?(console.error("Cannot reveal modal - not found in DOM.",modalElement),this):(this.closeAllModals(),this.handleModalPositioning(modalElement),modalElement.addClass(this.modalVisibleModifier),this)},ModalModule.prototype.revealModalByModalSelector=function(targetModalSelector){var _this=this,openModal=$("."+this.modalVisibleModifier);this.closeAllModals();var modalElement=$(targetModalSelector);if(this.handleModalPositioning(modalElement),modalElement.length<1)return console.error("Cannot reveal modal with selector: "+targetModalSelector+". Modal not found in DOM."),this;1==openModal.length&&"undefined"!=openModal.attr(""+this.modalReopenParent)&&modalElement.attr(""+this.modalReopenTarget,openModal.get(0).id),modalElement.addClass(this.modalVisibleModifier);var focusedElement=document.activeElement.tagName;return"INPUT"!==focusedElement&&"IFRAME"!==focusedElement||!$("["+this.hideAutoFillElementsSelector+"]",targetModalSelector)||$("["+this.hideAutoFillElementsSelector+"]",targetModalSelector).focus(),void 0!==modalElement.attr("data-scrollable-inner-content")&&(this.handleScrollableInnerContent(modalElement),$(window).on("resize",function(){_this.handleScrollableInnerContent(modalElement)})),this},ModalModule.prototype.handleModalPositioning=function(modalElement){var _this=this;this.isModalTallerThanViewPort(modalElement)?(modalElement.removeAttr("style"),modalElement.addClass("modal--scrollable"),$._data(modalElement.siblings(".modal__overlay")[0],"events").click.filter(function(event){return"enablePageScroll"==event.data}).length||(modalElement.siblings(".modal__overlay").on("click",null,"enablePageScroll",function(){return _this.enablePageScroll()}),$("[data-modal-close]",modalElement).on("click",function(){return _this.enablePageScroll()}))):(this.enablePageScroll(),modalElement.removeClass("modal--scrollable"),this.isTallModal(modalElement)&&this.setModalPositionCloseToTop(modalElement))},ModalModule.prototype.setModalPositionCloseToTop=function(modalElement){return modalElement.css({top:"2%"}),this},ModalModule.prototype.handleScrollableInnerContent=function(modalElement){var modalHeight=modalElement.height(),childElements=modalElement.children(),childElementHeight=0;modalElement.find("[data-inner-content]").css("overflowY","scroll"),childElements.each(function(){void 0===$(this).attr("data-inner-content")&&(childElementHeight+=$(this).height())});var innerContentHeight=modalHeight-childElementHeight;return modalElement.find("[data-inner-content]").css("maxHeight",innerContentHeight+"px"),this},ModalModule.prototype.setModalPositionToCenterViewPort=function(modalElement){var top,modalPosition=modalElement.attr("data-modal-position-top"),windowTop=$(document).scrollTop();return modalPosition?(top=modalPosition,"true"==modalPosition&&(top=windowTop+100),modalElement.css({top:top+"px"}),this):(top=(top=window.innerHeight/2-modalElement.outerHeight()/2)<12?12:top,modalElement.css({top:top}),this)},ModalModule.prototype.closeAllModals=function(){return $(this.modalSelector).removeClass(this.modalVisibleModifier),this.enablePageScroll(),this},ModalModule.prototype.isModalTallerThanViewPort=function(modalElement){var windowHeight=window.innerHeight;return modalElement.outerHeight()>windowHeight},ModalModule.prototype.isTallModal=function(modalElement){var windowHeight=window.innerHeight;return modalElement.outerHeight()>=windowHeight-200},ModalModule.prototype.disablePageScroll=function(){return $("body").css("overflow","hidden").css("height","100vh"),this},ModalModule.prototype.enablePageScroll=function(){return $("body").css("overflow","initial").css("height","unset"),this},ModalModule}(__webpack_require__(2).AbstractModule);exports.ModalModule=ModalModule},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.BreakpointModule=void 0;var BreakpointModule=function(_super){function BreakpointModule(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(BreakpointModule,_super),BreakpointModule.prototype.getCurrentBreakpoint=function(){var breakpoint,width=$(window).width();switch(!0){case width>1024:breakpoint="large-up";break;case width>640:breakpoint="medium-up";break;default:breakpoint="small-up"}return breakpoint},BreakpointModule.prototype.breakpoint=function(breakpoint){var width=$(window).width();return"small-up"===breakpoint||("medium-up"===breakpoint?width>640:"large-up"===breakpoint?width>1024:"small-only"===breakpoint?width>0&&width<=640:"medium-only"===breakpoint&&(width>0&&width<=1024))},BreakpointModule.prototype.onWindowResize=function(callback,delay){void 0===delay&&(delay=0);var delayedCallback,self=this;return $(window).resize(function(){clearTimeout(delayedCallback),delayedCallback=setTimeout(function(){"function"==typeof callback&&callback(self.getCurrentBreakpoint())},delay)}),this},BreakpointModule}(__webpack_require__(2).AbstractModule);exports.BreakpointModule=BreakpointModule},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.EqualizerModule=void 0;var EqualizerModule=function(_super){function EqualizerModule(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.tallestColumn=0,_this.currentRowItems=[],_this}return __extends(EqualizerModule,_super),EqualizerModule.prototype.equalizeRow=function(row,columnSelector){var column,offsetTop,self=this,currentOffsetTop=0;return row.find(columnSelector).each(function(index){column=$(this),offsetTop=column.offset().top,0==index&&(currentOffsetTop=offsetTop),offsetTop!==currentOffsetTop&&(self.currentRowItems.length>0&&(self.setColumnCollectionHeight().resetTallestColumn().resetColumnCollection(),offsetTop=column.offset().top),currentOffsetTop=offsetTop),self.trySetTallestColumn(column).addColumnToCollection(column)}),self.currentRowItems.length>0&&column&&(self.setColumnCollectionHeight().resetTallestColumn().resetColumnCollection(),offsetTop=column.offset().top),this},EqualizerModule.prototype.resetRow=function(row){return this.resetColumnCollection().resetTallestColumn(),row.find(".columns").each(function(){$(this).height("")}),this},EqualizerModule.prototype.setColumnCollectionHeight=function(){var self=this;return $.each(this.currentRowItems,function(index,value){self.tallestColumn&&0!==self.tallestColumn&&value.height(self.tallestColumn)}),this},EqualizerModule.prototype.resetEqualizer=function(rows){var self=this;return rows.each(function(){self.resetRow($(this))}),this},EqualizerModule.prototype.equalizeRows=function(rows){var breakpointModule=this.getProduct().getBreakpointModule(),equalizerModule=this.getProduct().getEqualizerModule();return rows.each(function(){var row=$(this),selectorToEqualize=row.attr("ui-equalizer-selector")||".columns",breakpoint=row.attr("ui-equalizer");!breakpoint||breakpointModule.breakpoint(breakpoint)?equalizerModule.equalizeRow(row,selectorToEqualize):$(selectorToEqualize).css("height","initial")}),this},EqualizerModule.prototype.resetColumnCollection=function(){return this.currentRowItems=[],this},EqualizerModule.prototype.addColumnToCollection=function(column){return this.currentRowItems.push(column),this},EqualizerModule.prototype.resetTallestColumn=function(){return this.tallestColumn=0,this},EqualizerModule.prototype.trySetTallestColumn=function(column){var columnHeight=column.actual("height");return columnHeight>this.tallestColumn&&(this.tallestColumn=columnHeight),this},EqualizerModule}(__webpack_require__(2).AbstractModule);exports.EqualizerModule=EqualizerModule},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ViewModule=void 0;var ViewModule=function(_super){function ViewModule(product){var _this=_super.call(this,product)||this;return _this.componentIdentifier={},_this}return __extends(ViewModule,_super),ViewModule.prototype.addComponent=function(component,selector){var value=$(component.componentElement).attr(selector);if(""!==value){if(void 0!==this.componentIdentifier[value])throw new Error("This component unique identifier string has been used before! Please name space.");this.componentIdentifier[value]=component}return this},ViewModule.prototype.getComponent=function(componentIdentifier){var component=this.componentIdentifier[componentIdentifier];return component||null},ViewModule}(__webpack_require__(2).AbstractModule);exports.ViewModule=ViewModule},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PixelModule=void 0;var PixelModule=function(_super){function PixelModule(product){var _this=_super.call(this,product)||this;return _this.componentIdentifier={},_this}return __extends(PixelModule,_super),PixelModule.prototype.track=function(event){var pixelConfigs=this.getAllPixelConfigsByEvent(event);if(!pixelConfigs)return!0;for(var key in pixelConfigs){var pixelConfig=pixelConfigs[key];this.firePixel(pixelConfig)}return!0},PixelModule.prototype.getAllPixelConfigsByEvent=function(event){event||console.error("Cannot get pixel configs for event: ",event);var eventPixelConfigs=this.getProduct().getConfig().getByPath("pixels:"+event);return eventPixelConfigs?eventPixelConfigs.toArray():null},PixelModule.prototype.firePixel=function(pixelConfig){switch(pixelConfig.type){case"facebook":var action=pixelConfig.action,event_1=pixelConfig.event;if(!action||!event_1){console.error("Cannot fire pixel. Invalid pixel config. 'action' and 'event' properties required.",pixelConfig);break}try{fbq(action,event_1)}catch(e){return console.error("Failed to fire Facebook pixel. Make sure required code is rendered in document head."),!1}return!0;default:return console.error("Cannot fire pixel. Unrecognised pixel type: ",pixelConfig.type),!1}return!0},PixelModule}(__webpack_require__(2).AbstractModule);exports.PixelModule=PixelModule},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ResizeObserverModule=void 0;var AbstractModule_1=__webpack_require__(2),resize_observer_polyfill_1=__webpack_require__(34),ResizeObserverModule=function(_super){function ResizeObserverModule(product){return _super.call(this,product)||this}return __extends(ResizeObserverModule,_super),ResizeObserverModule.prototype.observe=function(element,callback){try{return new ResizeObserver(callback).observe(element)}catch(error){return new resize_observer_polyfill_1.default(callback).observe(element)}},ResizeObserverModule}(AbstractModule_1.AbstractModule);exports.ResizeObserverModule=ResizeObserverModule},function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0}),function(global){var MapShim=function(){if("undefined"!=typeof Map)return Map;function getIndex(arr,key){var result=-1;return arr.some(function(entry,index){return entry[0]===key&&(result=index,!0)}),result}return function(){function class_1(){this.__entries__=[]}return Object.defineProperty(class_1.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),class_1.prototype.get=function(key){var index=getIndex(this.__entries__,key),entry=this.__entries__[index];return entry&&entry[1]},class_1.prototype.set=function(key,value){var index=getIndex(this.__entries__,key);~index?this.__entries__[index][1]=value:this.__entries__.push([key,value])},class_1.prototype.delete=function(key){var entries=this.__entries__,index=getIndex(entries,key);~index&&entries.splice(index,1)},class_1.prototype.has=function(key){return!!~getIndex(this.__entries__,key)},class_1.prototype.clear=function(){this.__entries__.splice(0)},class_1.prototype.forEach=function(callback,ctx){void 0===ctx&&(ctx=null);for(var _i=0,_a=this.__entries__;_i<_a.length;_i++){var entry=_a[_i];callback.call(ctx,entry[1],entry[0])}},class_1}()}(),isBrowser="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,global$1=void 0!==global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),requestAnimationFrame$1="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(global$1):function(callback){return setTimeout(function(){return callback(Date.now())},1e3/60)},trailingTimeout=2;var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported="undefined"!=typeof MutationObserver,ResizeObserverController=function(){function ResizeObserverController(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(callback,delay){var leadingCall=!1,trailingCall=!1,lastCallTime=0;function resolvePending(){leadingCall&&(leadingCall=!1,callback()),trailingCall&&proxy()}function timeoutCallback(){requestAnimationFrame$1(resolvePending)}function proxy(){var timeStamp=Date.now();if(leadingCall){if(timeStamp-lastCallTime0},ResizeObserverController.prototype.connect_=function(){isBrowser&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ResizeObserverController.prototype.disconnect_=function(){isBrowser&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ResizeObserverController.prototype.onTransitionEnd_=function(_a){var _b=_a.propertyName,propertyName=void 0===_b?"":_b;transitionKeys.some(function(key){return!!~propertyName.indexOf(key)})&&this.refresh()},ResizeObserverController.getInstance=function(){return this.instance_||(this.instance_=new ResizeObserverController),this.instance_},ResizeObserverController.instance_=null,ResizeObserverController}(),defineConfigurable=function(target,props){for(var _i=0,_a=Object.keys(props);_i<_a.length;_i++){var key=_a[_i];Object.defineProperty(target,key,{value:props[key],enumerable:!1,writable:!1,configurable:!0})}return target},getWindowOf=function(target){return target&&target.ownerDocument&&target.ownerDocument.defaultView||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(value){return parseFloat(value)||0}function getBordersSize(styles){for(var positions=[],_i=1;_i0},ResizeObserverSPI}(),observers="undefined"!=typeof WeakMap?new WeakMap:new MapShim,ResizeObserver=function(){return function ResizeObserver(callback){if(!(this instanceof ResizeObserver))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var controller=ResizeObserverController.getInstance(),observer=new ResizeObserverSPI(callback,controller,this);observers.set(this,observer)}}();["observe","unobserve","disconnect"].forEach(function(method){ResizeObserver.prototype[method]=function(){var _a;return(_a=observers.get(this))[method].apply(_a,arguments)}});var index=void 0!==global$1.ResizeObserver?global$1.ResizeObserver:ResizeObserver;__webpack_exports__.default=index}.call(__webpack_exports__,__webpack_require__(6))},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserAgentParserModule=void 0;var ua_parser_js_1=__webpack_require__(11),UserAgentParserModule=function(_super){function UserAgentParserModule(product){var _this=_super.call(this,product)||this,userAgentParserObject=new ua_parser_js_1.UAParser(navigator.userAgent).getResult();return _this.deviceType=userAgentParserObject.device.type,_this.browserName=userAgentParserObject.browser.name,_this.browserMajorVersion=parseInt(userAgentParserObject.browser.major),_this.osName=userAgentParserObject.os.name,_this.osVersion=userAgentParserObject.os.version,_this}return __extends(UserAgentParserModule,_super),UserAgentParserModule.prototype.getBrowserName=function(){return this.browserName},UserAgentParserModule.prototype.getMajorBrowserVersion=function(){return this.browserMajorVersion},UserAgentParserModule.prototype.getOsName=function(){return this.osName},UserAgentParserModule.prototype.getOsVersion=function(){return this.osVersion},UserAgentParserModule.prototype.isChrome=function(){var regex=new RegExp("^.*(Chrome|chrome)(?!.*(Edge|edge|edg)).*$","g");return!!regex.test(navigator.userAgent)&&(regex=new RegExp("Chrome|chrome")).test(this.browserName)},UserAgentParserModule.prototype.isEdge=function(){return new RegExp("^.*(Edge|edge).*$","g").test(navigator.userAgent)},UserAgentParserModule.prototype.isSafari=function(){return new RegExp("^((?!chrome|android).)*safari/","ig").test(navigator.userAgent)},UserAgentParserModule.prototype.isChromiumEdge=function(){return new RegExp("^.*(Edg|edg).*$","g").test(navigator.userAgent)},UserAgentParserModule.prototype.isFirefox=function(){return new RegExp("Firefox|firefox").test(this.browserName)},UserAgentParserModule.prototype.isOpera=function(){return new RegExp("Opera|opera").test(this.browserName)},UserAgentParserModule.prototype.isInternetExplorer=function(){return navigator.userAgent.indexOf("MSIE ")>-1||navigator.userAgent.indexOf("Trident/")>-1},UserAgentParserModule.prototype.isMac=function(){return new RegExp("Mac OS").test(this.osName)},UserAgentParserModule.prototype.isMobile=function(){return"mobile"===this.deviceType},UserAgentParserModule.prototype.isTablet=function(){return"tablet"===this.deviceType},UserAgentParserModule.prototype.isIphone=function(){var regex=new RegExp("iPhone"),regexTwo=new RegExp("iOS");return this.isMobile()&&(regex.test(this.osName)||regexTwo.test(this.osName))},UserAgentParserModule.prototype.isAndroid=function(){return new RegExp("Android").test(this.osName)},UserAgentParserModule.prototype.isWindows=function(){return new RegExp("Windows|windows").test(this.osName)},UserAgentParserModule}(__webpack_require__(2).AbstractModule);exports.UserAgentParserModule=UserAgentParserModule},function(module,exports){(function(__webpack_amd_options__){module.exports=__webpack_amd_options__}).call(exports,{})},function(module,exports){(function(){var $,Range,Trie,indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i=ref1;n=ref<=ref1?++k:--k)trie.push(n);else{if(!range.match(/^\d+$/))throw Error("Invalid range '"+r+"'");trie.push(range)}return new Range(trie)},Range.prototype.match=function(number){return this.trie.find(number)},Range}(),($=jQuery).fn.validateCreditCard=function(callback,options){var bind,card,card_type,card_types,get_card_type,is_valid_length,is_valid_luhn,j,len,normalize,ref,validate,validate_number,_this;for(card_types=[{name:"amex",range:"34,37",valid_length:[15]},{name:"diners_club_carte_blanche",range:"300-305",valid_length:[14]},{name:"diners_club_international",range:"36",valid_length:[14]},{name:"jcb",range:"3528-3589",valid_length:[16]},{name:"laser",range:"6304, 6706, 6709, 6771",valid_length:[16,17,18,19]},{name:"visa_electron",range:"4026, 417500, 4508, 4844, 4913, 4917",valid_length:[16]},{name:"visa",range:"4",valid_length:[13,14,15,16,17,18,19]},{name:"mastercard",range:"51-55,2221-2720",valid_length:[16]},{name:"discover",range:"6011, 622126-622925, 644-649, 65",valid_length:[16]},{name:"dankort",range:"5019",valid_length:[16]},{name:"maestro",range:"50, 56-69",valid_length:[12,13,14,15,16,17,18,19]},{name:"uatp",range:"1",valid_length:[15]}],bind=!1,callback&&("object"==typeof callback?(options=callback,bind=!1,callback=null):"function"==typeof callback&&(bind=!0)),null==options&&(options={}),null==options.accept&&(options.accept=function(){var j,len,results;for(results=[],j=0,len=card_types.length;j=0&&results.push(card);return results}(),k=0,len1=ref1.length;k=0},validate_number=function(number){var length_valid,luhn_valid;return luhn_valid=!1,length_valid=!1,null!=(card_type=get_card_type(number))&&(luhn_valid=is_valid_luhn(number),length_valid=is_valid_length(number,card_type)),{card_type:card_type,valid:luhn_valid&&length_valid,luhn_valid:luhn_valid,length_valid:length_valid}},_this=this,validate=function(){var number;return number=normalize($(_this).val()),validate_number(number)},normalize=function(number){return number.replace(/[ -]/g,"")},bind?(this.on("input.jccv",function(_this){return function(){return $(_this).off("keyup.jccv"),callback.call(_this,validate())}}(this)),this.on("keyup.jccv",function(_this){return function(){return callback.call(_this,validate())}}(this)),callback.call(this,validate()),this):validate()}}).call(this)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrderFormLogStatusEnum=void 0,function(OrderFormLogStatusEnum){OrderFormLogStatusEnum.INVALID="invalid",OrderFormLogStatusEnum.VALID="valid",OrderFormLogStatusEnum.ERROR="error"}(exports.OrderFormLogStatusEnum||(exports.OrderFormLogStatusEnum={}))},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChargeHiveFormComponent=void 0;var ChargeHiveFormComponent=function(_super){function ChargeHiveFormComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.orderId="",_this.status=null,_this.errorMessages=[],_this.paymentMethodMap={1:"PLACEMENT_CAPABILITY_CARD_FORM",2:"PLACEMENT_CAPABILITY_CARD_FORM",6:"PLACEMENT_CAPABILITY_APPLE_PAY",8:"PLACEMENT_CAPABILITY_GOOGLE_PAY"},_this.isChargeHiveEnabled()&&(_this.setupChargeHive(),_this.setupEventListeners()),$(window).on("mousewheel DOMMouseScroll",function(e){$("body, html").stop(!0)}),_this.setupPageLeaveWarning(),_this.setupClickListeners(),_this.componentElement.on("click","[data-tab-name]",function(e){$(e.currentTarget).parent().find('[name="billing-paymentType"]').prop("checked",!0)}),_this.componentElement.on("click touch",'[name="billing-terms"][linked]',function(e){var terms=_this.componentElement.find('[name="billing-terms"][linked]'),checked=$(e.currentTarget).prop("checked");terms.prop("checked",checked)}),_this}return __extends(ChargeHiveFormComponent,_super),ChargeHiveFormComponent.prototype.setupClickListeners=function(){var _this=this;this.componentElement.on("click",".page-orderform__form-wrapper",function(e){_this.updateCardRadioSelection()}),this.componentElement.on("keydown",'[type="text"]',function(e){_this.updateCardRadioSelection()})},ChargeHiveFormComponent.prototype.updateCardRadioSelection=function(){var cardRadio=this.componentElement.find('[payment-method-trigger="card"]').find('[id="radio-card"]');cardRadio.checked||(cardRadio.removeAttr("unchecked"),cardRadio.attr("checked",!0))},ChargeHiveFormComponent.prototype.getMerchantIdentifier=function(currencyCode){void 0===currencyCode&&(currencyCode="GBP");var config=this.getProduct().getConfig(),defaultMerchant=config.getByPath("ChargeHive:ApplePay:MerchantID:default"),currencySpecificMerchant=config.getByPath("ChargeHive:ApplePay:MerchantID:byCurrency:"+currencyCode);if(currencySpecificMerchant)return currencySpecificMerchant;if(defaultMerchant)return defaultMerchant;throw new DOMException("No ApplePay merchant found")},ChargeHiveFormComponent.prototype.setupPageLeaveWarning=function(){var _this=this;this.componentElement.find("input:not([type=hidden]):not(#radio-paypal),select, textarea").on("focus change",function(e){""!==$(e.currentTarget).val()&&_this.onBeforeUnload()})},ChargeHiveFormComponent.prototype.getValueFromFormField=function(fieldName,extraOperation){return void 0===extraOperation&&(extraOperation="$"),this.componentElement.find("[name"+extraOperation+'="'+fieldName+'"]').val()},ChargeHiveFormComponent.prototype.setupFormSubmitEventListener=function(){var _this=this;return this.componentElement.on("submit",function(e){_this.isAjaxEnabled()&&e.preventDefault();var submit=!1;try{submit=_this.handleFormSubmission()}catch(e){var data={};return data.error=e,data.project=_this.componentElement.attr("charge-hive-project"),_this.trackFormSubmissions(data,!0),_this.setProcessing(!1),!1}return _this.isAjaxEnabled()||_this.onBeforeUnload(!submit),submit}),this},ChargeHiveFormComponent.prototype.handleFormSubmission=function(){var _this=this;if(this.preventFormSubmission)return!1;if($(":focus",this.componentElement).blur(),!this.isChargeHiveEnabled())return this.defaultFormSubmission();if("complete"===this.status)return!0;var config=this.getProduct().getConfig(),usePaypalPopup=config.getByPath("PayPal:usePopup"),paypal=window.paypal,buttonValue=this.getClickedButton().val();buttonValue&&this.setHiddenFieldValue("billing-paymentType",buttonValue,!1),this.requestTime=Math.round((new Date).getTime()/1e3),this.setHiddenFieldValue("requestTime",this.requestTime),this.orderId=this.getValueFromFormField("orderId");var inputElementWrappers=this.getFormFieldWrapperElements();if(this.validateAll(),this.formValid){var paymentType_1=this.getPaymentType();ChargeHive.setPaymentMethodType(this.paymentMethodMap[this.getPaymentType()]),this.forceShowErrorOnSubmit&&inputElementWrappers.removeClass("show-error"),this.setProcessing(!0),"6"!=paymentType_1&&"8"!=paymentType_1||setTimeout(function(){_this.setProcessing(!1)},5e3);for(var _i=0,_a=this.componentElement.serializeArray();_i<_a.length;_i++){var fieldData=_a[_i];if("billing-paymentType"===fieldData.name&&"2"===fieldData.value){if(!usePaypalPopup)return this.onBeforeUnload(!1),!0;var merchantId=config.getByPath("PayPal:merchantId"),environment=config.getByPath("PayPal:environment");paypal.checkout.setup(merchantId,{environment:environment}),paypal.checkout.initXO()}}if(void 0===this.orderId||""===this.orderId||"2"===paymentType_1){var data=this.componentElement.serialize();try{$.ajax({url:this.componentElement.attr("action"),data:data,type:"POST",dataType:"json"}).done(function(data){if(usePaypalPopup&&"2"===paymentType_1){_this.onBeforeUnload(!1);var isMobile=_this.getProduct().getUserAgentParserModule().isMobile()||_this.getProduct().getUserAgentParserModule().isTablet();if(_this.checkPaypalIframeIsStillOnPage(data,isMobile),$(".paypal-checkout-sandbox").length>0||isMobile){if(void 0===data.token)return _this.setHiddenFieldValue("orderId",data.orderId),void _this.complete();paypal.checkout.startFlow(data.token)}else{var error={error:"Tried to start PayPal flow without iframe"};error.isMobile=isMobile,_this.trackFormSubmissions(error,!0),window.location="/paypal/cancel?"+data.token}}else if("object"==typeof data)if(data.hasOwnProperty("orderId")){"NA"!=data.state||6!=paymentType_1&&8!=paymentType_1||(data.state=""),"NA"!=data.city||6!=paymentType_1&&8!=paymentType_1||(data.city=""),_this.orderId=data.orderId;var state=data.state,city=data.city,country=data.country;delete data.orderId,delete data.state,delete data.city,delete data.country,_this.setHiddenFieldValue("orderId",_this.orderId),_this.setHiddenFieldValue("state",state),_this.setHiddenFieldValue("city",city),_this.setHiddenFieldValue("country",country),_this.setHiddenFieldValue("data",JSON.stringify(data),!1),_this.handleChargeHiveSubmission(_this.orderId,state,data,!1)}else{(logData={error:"No orderId returned"}).project=_this.componentElement.attr("charge-hive-project"),_this.trackFormSubmissions(logData,!0),_this.setProcessing(!1),_this.addChargeHiveError(data.error).displayChargeHiveErrors()}else{var logData;(logData={}).error="Invalid ajax response type: "+typeof data,logData.project=_this.componentElement.attr("charge-hive-project"),_this.trackFormSubmissions(logData,!0),_this.setProcessing(!1)}}).fail(function(data,status,errorThrown){usePaypalPopup&&"2"===paymentType_1&&paypal.checkout.closeFlow();var logData={error:"Ajax call failed"};logData.errorThrown=errorThrown,logData.project=_this.componentElement.attr("charge-hive-project"),_this.trackFormSubmissions(logData,!0),console.error("some networking error has occurred - try resubmitting the form"),_this.setProcessing(!1)})}catch(e){this.orderId=this.getValueFromFormField("orderId");var state=this.getValueFromFormField("state"),data_1=JSON.parse(this.getValueFromFormField("data"));this.handleChargeHiveSubmission(this.orderId,state,data_1,!1)}}else{this.orderId=this.getValueFromFormField("orderId");state=this.getValueFromFormField("state"),data=JSON.parse(this.getValueFromFormField("data"));this.handleChargeHiveSubmission(this.orderId,state,data,!1)}return!1}return this.forceShowErrorOnSubmit&&(inputElementWrappers.addClass("show-error"),setTimeout(function(){inputElementWrappers.removeClass("show-error")},1500)),this.setProcessing(!1),!1},ChargeHiveFormComponent.prototype.getFormFieldWrapperElements=function(){return $("."+this.bemBaseClass+this.bemWrapperElementClass,this.componentElement)},ChargeHiveFormComponent.prototype.setupChargeHive=function(){try{ChargeHive.initialize(this.componentElement.attr("charge-hive-token"),this.componentElement.attr("charge-hive-project"),{country:this.getValueFromFormField("country"),currency:this.getValueFromFormField("currency")})}catch(e){var data={};throw data.error=e,data.project=this.componentElement.attr("charge-hive-project"),data.token=this.componentElement.attr("charge-hive-token"),this.trackFormSubmissions(data,!0),e}ChargeHive.setStyle(JSON.parse(this.componentElement.attr("charge-hive-styling")))},ChargeHiveFormComponent.prototype.setupEventListeners=function(){var _this=this;ChargeHive.addEventListener(ChargeHive.events.ON_CANCEL,function(event){_this.setProcessing(!1);var data={};data.project=_this.componentElement.attr("charge-hive-project"),data.event="cancel",data.status="valid",_this.trackFormSubmissions(data)}),ChargeHive.addEventListener(ChargeHive.events.ON_INIT,function(event){document.querySelectorAll("[capability]").forEach(function(e){var attribute=e.getAttribute("capability");if(void 0!==event.detail.Capabilities){var number=event.detail.Capabilities.indexOf(attribute);"PLACEMENT_CAPABILITY_APPLE_PAY"===attribute?number>-1&&window.ApplePaySession&&window.ApplePaySession.canMakePaymentsWithActiveCard(_this.getMerchantIdentifier()).then(function(canMakePayments){canMakePayments&&(e.classList.remove("hide"),-1===document.cookie.indexOf("APPLE_PAY_INIT")&&($.ajax({url:window.location.protocol+"//"+window.location.hostname+"/log/shown",data:{type:6},type:"POST",dataType:"json"}),document.cookie="APPLE_PAY_INIT=1"))}):"PLACEMENT_CAPABILITY_GOOGLE_PAY"===attribute?number>-1&&(e.classList.remove("hide"),-1===document.cookie.indexOf("GOOGLE_PAY_INIT")&&($.ajax({url:window.location.protocol+"//"+window.location.hostname+"/log/shown",data:{type:8},type:"POST",dataType:"json"}),document.cookie="GOOGLE_PAY_INIT=1")):number>-1&&e.classList.remove("hide")}});var chargeId="";""===(chargeId=_this.getValueFromFormField("chargeId"))&&(chargeId=_this.getValueFromFormField("retryCharge")),_this.prepareCharge(chargeId)}),ChargeHive.addEventListener(ChargeHive.events.ON_FOCUS,function(event){_this.componentElement.find('[data-chargehive="'+event.detail+'"]').parents("."+_this.bemBaseClass+_this.bemWrapperElementClass).addClass("show-error"),_this.updateCardRadioSelection()}),ChargeHive.addEventListener(ChargeHive.events.ON_BLUR,function(event){var element=_this.componentElement.find('[data-chargehive="'+event.detail+'"]'),wrapper=element.parents("."+_this.bemBaseClass+_this.bemWrapperElementClass);_this.handleElementFocusout(element),wrapper.removeClass("show-error")}),ChargeHive.addEventListener(ChargeHive.events.ON_SUCCESS,function(event){if(_this.getProduct().getCookieModule().getByKey("METHOD")&&"card_discover"===_this.getProduct().getCookieModule().getByKey("METHOD").getValue()&&"scanguard"===_this.getProduct().getEnvironmentModule().getBrandName().toLowerCase())return _this.showScanguardDiscoverError();console.log("ON SUCCESS: ",event),_this.complete()}),ChargeHive.addEventListener(ChargeHive.events.ON_DECLINED,function(event){console.log("ON DECLINED: ",event),_this.handleDecline(event,"decline")}),ChargeHive.addEventListener(ChargeHive.events.ON_ERROR,function(event){console.log("ON ERROR: ",event),void 0!==event.detail&&_this.logErrorResponse(event.detail),_this.handleDecline(event,"error")}),ChargeHive.addEventListener(ChargeHive.events.ON_VERIFY,function(event){console.log("ON VERIFY: ",event),_this.onBeforeUnload();var data={};data.project=_this.componentElement.attr("charge-hive-project"),data.event="verify",data.status="valid",_this.trackFormSubmissions(data)}),ChargeHive.addEventListener(ChargeHive.events.CHARGE_ID,function(e){_this.getValueFromFormField("chargeId")?_this.getValueFromFormField("retryCharge")||_this.getValueFromFormField("chargeId")==e.detail||(_this.setHiddenFieldValue("retryCharge",e.detail),_this.sendChargeId()):(_this.setHiddenFieldValue("chargeId",e.detail),_this.sendChargeId())}),ChargeHive.addEventListener(ChargeHive.events.ON_PENDING,function(event){}),ChargeHive.addEventListener(ChargeHive.events.ON_READY,function(event){}),ChargeHive.addEventListener(ChargeHive.events.ON_FOCUS,function(event){}),ChargeHive.addEventListener(ChargeHive.events.ON_TOKEN,function(event){if(void 0!==event.detail.Scheme){var expiry=new Date;expiry=new Date(expiry.getTime()+12e5),_this.getProduct().getCookieModule().set("METHOD",event.detail.Scheme,null,expiry)}}),ChargeHive.addEventListener(ChargeHive.events.ON_METHOD_TYPE_CHANGE,function(event){}),ChargeHive.addEventListener(ChargeHive.events.ON_FIELD_CHANGE,function(event){if(void 0!==event.detail){var source=event.detail.source,value=event.detail.value;if(("cardName"==source||"cardExpiry"==source)&&void 0!==value){var currentElement=_this.getValidationElementsAndSetFormState().filter('[chargehive-link="'+source+'"]'),processPattern=currentElement.attr("chargehive-link-process-pattern"),currentElementValue=currentElement.val();processPattern&&(value=processPattern.exec(value)),currentElementValue!==value&¤tElement.val(value)}}})},ChargeHiveFormComponent.prototype.handleChargeHiveSubmission=function(orderId,state,data,isRetry){var chargeId="";chargeId=isRetry?this.getValueFromFormField("retryCharge"):this.getValueFromFormField("chargeId"),this.prepareCharge(chargeId);var paymentType=this.getPaymentType();if("object"==typeof data&&data.hasOwnProperty("customer")){try{ChargeHive.setCustomerInfo(data.customer)}catch(e){e.includes("phone:")&&(delete data.customer.phone,ChargeHive.setCustomerInfo(data.customer))}delete data.customer}("object"==typeof data&&data.hasOwnProperty("items")&&(ChargeHive.setOrderItems(data.items[paymentType]?data.items[paymentType]:data.items.default),delete data.items),ChargeHive.updateCharge(data))||((dataToLog={}).error=data,dataToLog.project=this.componentElement.attr("charge-hive-project"),dataToLog.token=this.componentElement.attr("charge-hive-token"),this.trackFormSubmissions(dataToLog,!0),console.error("failed to update charge! ",data));ChargeHive.setBillingAddress({address1:this.getValueFromFormField("address"),city:this.getValueFromFormField("city"),country:this.getValueFromFormField("country"),county:state,postal:this.getValueFromFormField("zipcode")});try{ChargeHive.authorizeCharge()}catch(e){var dataToLog;(dataToLog={}).error=e,dataToLog.project=this.componentElement.attr("charge-hive-project"),dataToLog.token=this.componentElement.attr("charge-hive-token"),this.trackFormSubmissions(dataToLog,!0),console.error(e)}},ChargeHiveFormComponent.prototype.addChargeHiveError=function(errorMessage){return this.errorMessages.push(errorMessage),this},ChargeHiveFormComponent.prototype.displayChargeHiveErrors=function(){var _this=this;if("6"===this.getClickedButton().attr("value"))return this.getClickedButton().parents("[virtual-form]").find("[apple-errors-container]").removeClass("hide"),this;if("8"==this.getClickedButton().attr("value"))return this.getClickedButton().parents(["virtual-form"]).find("[google-pay-errors-container]").removeClass("hide"),this;var errorContainer=this.componentElement.find("[virtual-form] [data-tab-active] [errors-container]");errorContainer.length||(errorContainer=this.componentElement.find("[errors-container]"));var errorList=errorContainer.find("[error-list]");errorList.empty(),this.componentElement.find("[apple-errors-container]").hide();var errorMessages=this.errorMessages;for(var error in errorMessages.length>1&&(errorMessages=this.errorMessages.filter(function(item,index){return _this.errorMessages.indexOf(item)===index&&"An unknown error has occurred, please try again"!==item})),errorMessages)""!=error&&errorList.append($('
    ').html(""+errorMessages[error]));return this.errorMessages=[],errorContainer.removeClass("hide"),this},ChargeHiveFormComponent.prototype.getErrorMessageFromResponse=function(response,override){void 0===override&&(override=!0);var responseBreakdown=response.detail.response_breakdown,chargehiveOverride=this.getProduct().getConfig().getByPath("chargehive-override");if(responseBreakdown&&void 0!==responseBreakdown.response_message){if(void 0!==chargehiveOverride.configArray&&override)for(var _i=0,_a=chargehiveOverride.configArray;_i<_a.length;_i++){var override_1=_a[_i],category=void 0!==override_1.category?override_1.category:null,message=void 0!==override_1.message?override_1.message:"",code=void 0!==override_1.response_code?override_1.response_code:null;if(category&&code&&responseBreakdown.category==category&&responseBreakdown.response_code==code||category&&!code&&responseBreakdown.category==category||!category&&code&&responseBreakdown.response_code==code)return message}return responseBreakdown.response_message}return this.getProduct().getConfig().getByPath("chargehive-default")},ChargeHiveFormComponent.prototype.getResponseCode=function(response){return void 0!==response.detail.response_breakdown&&void 0!==response.detail.response_breakdown.response_code?response.detail.response_breakdown.response_code:0},ChargeHiveFormComponent.prototype.handleDecline=function(event,status){void 0===status&&(status="decline"),this.status=status,this.requestOnDecline(event)},ChargeHiveFormComponent.prototype.requestOnDecline=function(event){var _this=this;$.ajax({url:this.genUrl(window.location.protocol+"//",window.location.hostname,window.location.pathname,this.status),data:this.componentElement.serialize()+"&declineReason="+this.getErrorMessageFromResponse(event,!1)+"&declineCode="+this.getResponseCode(event),type:"POST",dataType:"json"}).done(function(data){if(void 0!==data.orderId){var orderId=data.orderId;delete data.orderId,void 0!==typeof data.city&&(_this.setHiddenFieldValue("city",data.city),delete data.city),void 0!==typeof data.country&&(_this.setHiddenFieldValue("country",data.country),delete data.country),void 0!==typeof data.state&&(_this.setHiddenFieldValue("state",data.state),delete data.state),_this.setHiddenFieldValue("retryId",orderId),_this.handleChargeHiveSubmission(orderId,_this.getValueFromFormField("state"),data,!0)}else{try{ChargeHive.clearField("cardCvv"),ChargeHive.clearField("cardNum")}catch(e){console.error(e)}var expMonth=_this.componentElement.find("#billing-expiryMonth"),expYear=_this.componentElement.find("#billing-expiryYear");if(_this.componentElement.find("#billing-cardNum").parent().removeClass("form-validation--success"),_this.componentElement.find("#billing-cardCvv").parent().removeClass("form-validation--success"),expMonth.val("month"),expMonth.parent().removeClass("form-validation--success"),expYear.val(0),expYear.parent().removeClass("form-validation--success"),_this.componentElement.find("[name=retryId]").length&&_this.setHiddenFieldValue("retryId",""),"error"===status&&console.error("ChargeHive Error Occurred: ",event),_this.addChargeHiveError(_this.getErrorMessageFromResponse(event)).displayChargeHiveErrors(),void 0!==data.reloadRequired)return _this.onBeforeUnload(!1),location.reload(),!1;_this.setProcessing(!1),$("html, body").animate({scrollTop:_this.componentElement.find("[errors-container]").offset().top-20},750)}}).fail(function(){_this.setProcessing(!1),_this.addChargeHiveError(_this.getErrorMessageFromResponse(event)).displayChargeHiveErrors()})},ChargeHiveFormComponent.prototype.genUrl=function(){for(var urlChunks=[],_i=0;_i span").text("Unsupported Card Type"),this.getProduct().getCookieModule().getByKey("METHOD").getValue()&&this.getProduct().getCookieModule().set("METHOD",null)},ChargeHiveFormComponent.prototype.prepareCharge=function(chargeId,data){var prepareCharge;if(void 0===chargeId&&(chargeId=""),void 0===data&&(data=null),!(prepareCharge=""!==chargeId?null!=data?ChargeHive.prepareChargeWithId(chargeId,data):ChargeHive.prepareChargeWithId(chargeId):ChargeHive.prepareCharge((new Date).getDate().toString(),{currency:this.getValueFromFormField("currency")}))){var dataToLog={};dataToLog.error=prepareCharge,dataToLog.project=this.componentElement.attr("charge-hive-project"),dataToLog.token=this.componentElement.attr("charge-hive-token"),this.trackFormSubmissions(dataToLog,!0),console.error("failed to prepare charge! ",prepareCharge)}},ChargeHiveFormComponent.prototype.checkPaypalIframeIsStillOnPage=function(data,isMobile){setInterval(function(){0!=$(".paypal-checkout-sandbox").length||isMobile||(window.location="/paypal/cancel?"+data.token)},1e3)},ChargeHiveFormComponent.prototype.sendChargeId=function(){$.ajax({url:this.genUrl(window.location.protocol+"//",window.location.hostname,window.location.pathname,"chargeId"),data:this.componentElement.serialize(),type:"POST",dataType:"json"})},ChargeHiveFormComponent.prototype.complete=function(){this.onBeforeUnload(!1),this.status="complete",this.componentElement.attr("action",this.genUrl(window.location.protocol+"//",window.location.hostname,window.location.pathname,this.status)),this.trackFormSubmissions({}),this.preventFormSubmission=!1,this.componentElement.submit()},ChargeHiveFormComponent.prototype.setProcessing=function(processing,button,disableButton){void 0===processing&&(processing=!0),void 0===button&&(button=null),void 0===disableButton&&(disableButton=!0);var submitButton=this.componentElement.find('input[type="submit"], button[type="submit"], button[type="button"], [form-submit]').filter(":not(["+this.buttonNonProcessing+"])"),clickedButton=this.getClickedButton(!0),hasAttr=!1;return clickedButton&&(hasAttr=""===clickedButton.attr(this.buttonNonProcessing)),1!==submitButton.length||submitButton.is(clickedButton)?(submitButton=clickedButton,hasAttr?this:(button&&(submitButton=button),!processing&&submitButton.filter("[processing]").length&&(submitButton=submitButton.filter("[processing]")),processing&&(this.buttonData={original:submitButton.html(),width:submitButton.width(),processing:this.getProcessingText()}),processing?(void 0!==submitButton.attr("data-submit-width-auto")&&!1!==submitButton.attr("data-submit-width-auto")?submitButton.html(this.buttonData.processing).css("width","auto").attr("processing",!0):submitButton.width(this.buttonData.width).html(this.buttonData.processing).attr("processing",!0),disableButton&&(this.preventFormSubmission=!0)):(this.buttonData&&submitButton.html(this.buttonData.original).removeAttr("processing"),this.preventFormSubmission=!1),this)):this},ChargeHiveFormComponent.selector="charge-hive-form-component",ChargeHiveFormComponent}(__webpack_require__(7).AbstractFormComponent);exports.ChargeHiveFormComponent=ChargeHiveFormComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.BillingLocalisationHandler=void 0;var BillingLocalisationHandler=function(_super){function BillingLocalisationHandler(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.targetCurrencySymbolAttribute="data-currency-symbol",_this.selectAttribute="ui-billing-localisation",_this.countriesData=null,_this.currenciesData=null,_this.defaultRegion="US",_this.postCodeAttribute="ui-postal-code",_this.vatPriceAttribute="[vat-modal-price]",_this.vatMultiplierAttribute="vat-modal-multiplier",_this.updatablePriceAttribute="[data-updatable-price]",_this.planBlockRawPrice="data-full-price-raw",_this.discountPercentageAttribute="data-discount-percentage",_this.vatRateAttribute="[vat-modal-vat-rate]",_this.excludingVatTextAttribute="[excluding-vat-link]",_this}return __extends(BillingLocalisationHandler,_super),BillingLocalisationHandler.prototype.shouldRun=function(){return $("["+this.selectAttribute+"]").length>0},BillingLocalisationHandler.prototype.run=function(){this.addCountrySelectOnChangeListener(),this.runBillingLocalisation()},BillingLocalisationHandler.prototype.addCountrySelectOnChangeListener=function(){var self=this;$("["+this.selectAttribute+"]").on("change",function(){self.runBillingLocalisation()}),$("[plan-selector-component]").length>0&&$("[plan]").on("click",function(){self.runBillingLocalisation(),self.updateBillingValues(event)})},BillingLocalisationHandler.prototype.updateBillingValues=function(event){var currentTarget=$(event.currentTarget);if(currentTarget.attr(this.selectAttribute))this.runBillingLocalisation();else if(currentTarget.attr("plan")){var currentPrice=currentTarget.attr(this.planBlockRawPrice),discountPercentage=currentTarget.attr(this.discountPercentageAttribute);this.setVatModalPrice(currentPrice,discountPercentage)}},BillingLocalisationHandler.prototype.runBillingLocalisation=function(){var value=$("["+this.selectAttribute+"]").val();this.updateCurrencySymbolsByCountryCode(value),this.updatePostalCodeFieldByCountryCode(value),this.updateVatRateFromCountryCode(value),this.setVatModalPrice()},BillingLocalisationHandler.prototype.updateVatRateFromCountryCode=function(countryCode){var vatPrice=$(this.vatPriceAttribute),vatRateSelector=$(this.vatRateAttribute),vatRates=this.getProduct().getConfig().getByPath("app:orderform:block:billing:vatRates");if(!vatRates||0==vatRates.toArray().length)return console.error("No VAT rates found in json config."),!1;var matchingVatRates=(vatRates=vatRates.toArray()).filter(function(vatRateItem){return void 0!==vatRateItem[countryCode]});if(!matchingVatRates.length)return this.hideVatModal(),!0;this.showVatModal();var vatRate=matchingVatRates[0][countryCode];return vatPrice.attr(this.vatMultiplierAttribute,vatRate),vatRateSelector.text(vatRate),!0},BillingLocalisationHandler.prototype.hideVatModal=function(){$(this.excludingVatTextAttribute).hide()},BillingLocalisationHandler.prototype.showVatModal=function(){$(this.excludingVatTextAttribute).show()},BillingLocalisationHandler.prototype.updatePostalCodeFieldByCountryCode=function(countryCode){var postcodeField=$("["+this.postCodeAttribute+"]");return"GB"==countryCode||"CA"==countryCode?postcodeField.attr("placeholder","Post Code"):postcodeField.attr("placeholder","Zip Code"),this},BillingLocalisationHandler.prototype.getCountriesData=function(){if(!this.countriesData){var config=this.getProduct().getConfig();this.countriesData=config.getByPath("app:orderform:block:billing:countries")}return this.countriesData},BillingLocalisationHandler.prototype.getCurrenciesData=function(){if(!this.currenciesData){var config=this.getProduct().getConfig();this.currenciesData=config.getByPath("currencies")}return this.currenciesData},BillingLocalisationHandler.prototype.getRegionByCountryCode=function(countryCode){return this.getCountriesData().getByPath(countryCode+":region")},BillingLocalisationHandler.prototype.getCurrencySymbolByRegionCode=function(regionCode){return this.getCurrenciesData().getByPath(regionCode+":symbol")},BillingLocalisationHandler.prototype.updateCurrencySymbolsByCountryCode=function(countryCode){var region=this.getRegionByCountryCode(countryCode),currencySymbol=this.getCurrencySymbolByRegionCode(region);currencySymbol||(currencySymbol=this.getCurrencySymbolByRegionCode(this.defaultRegion)),$("["+this.targetCurrencySymbolAttribute+"]").html(currencySymbol)},BillingLocalisationHandler.prototype.getCurrentSelectedPlanPrice=function(){var currentPlanBlock=$("[plan].plan-grid-card--active");return!!currentPlanBlock.length&¤tPlanBlock.attr(this.planBlockRawPrice)},BillingLocalisationHandler.prototype.getCurrentSelectedPlanDiscount=function(){var currentPlanBlock=$("[plan].plan-grid-card--active");return!!currentPlanBlock.length&¤tPlanBlock.attr(this.discountPercentageAttribute)},BillingLocalisationHandler.prototype.setVatModalPrice=function($currentPrice,discountPercentage){void 0===$currentPrice&&($currentPrice=null),void 0===discountPercentage&&(discountPercentage=null),null!=$currentPrice&&null!=discountPercentage||($currentPrice=this.getCurrentSelectedPlanPrice(),discountPercentage=this.getCurrentSelectedPlanDiscount());var vatPriceSelector=$(this.vatPriceAttribute),updatablePrice=$(this.updatablePriceAttribute),vatMultiplier=1+parseInt(vatPriceSelector.attr(this.vatMultiplierAttribute))/100,vatPriceRounded=(parseFloat($currentPrice)*(1-discountPercentage/100)*vatMultiplier).toFixed(2);updatablePrice.each(function(){$(this).text(vatPriceRounded)})},BillingLocalisationHandler}(__webpack_require__(3).AbstractHandler);exports.BillingLocalisationHandler=BillingLocalisationHandler},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CopyToClipboardComponent=void 0;var CopyToClipboardComponent=function(_super){function CopyToClipboardComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.buttonAttribute="[copy-to-clipboard-button]",_this.noButton="copy-to-clipboard-no-button",_this.displayText="copy-to-clipboard-display-text",_this.textToCopyAttribute="copy-to-clipboard-text",_this.copyOnload="copy-to-clipboard-on-load",void 0!==_this.componentElement.attr(_this.noButton)?(_this.textToCopy=_this.componentElement.attr(_this.textToCopyAttribute),_this.originalButtonText=_this.componentElement.text(),_this.componentElement.on("click",_this.handleCopyMethod.bind(_this))):(_this.originalButtonText=_this.getCopyButton().text(),_this.textToCopy=_this.getCopyButton().attr(_this.textToCopyAttribute),void 0!==_this.getCopyButton().attr(_this.copyOnload)?_this.bindAutoCopyEventListeners():_this.getCopyButton().on("click",_this.handleCopyMethod.bind(_this))),_this}return __extends(CopyToClipboardComponent,_super),CopyToClipboardComponent.prototype.getCopyButton=function(){var buttonElement;return buttonElement||(buttonElement=$(""+this.buttonAttribute,this.componentElement)),buttonElement},CopyToClipboardComponent.prototype.handleCopyMethod=function(e){var _this=this;try{this.navigator.permissions.query({name:"clipboard-read"}).then(function(status){if("denied"===status.state||"prompt"===status.state)throw new Error("clipboard read not allowed, use fallback!");navigator.clipboard.readText().then(function(value){value!==_this.textToCopy&&navigator.clipboard.writeText(_this.textToCopy).then(_this.copySuccess.bind(_this))})}).catch(this.fallbackCopyMethod.bind(this))}catch(_a){this.fallbackCopyMethod()}return this.updateButtonText(),this},CopyToClipboardComponent.prototype.fallbackCopyMethod=function(){var $input=$("');$("body").append($input);var input=$input.get(0);return $input.css({position:"fixed",left:"-100%",top:"-100%"}),this.selectText(input)&&(document.execCommand("copy")?this.copySuccess():this.bufferText=null),$input.remove(),this},CopyToClipboardComponent.prototype.selectText=function(copyField){if(this.bufferText!==this.textToCopy){var range=document.createRange();range.selectNodeContents(copyField);var selection=window.getSelection();return selection.removeAllRanges(),selection.addRange(range),copyField.setSelectionRange(0,999999),this.bufferText=selection.toString(),""===selection.toString()&&(copyField.select(),this.bufferText=copyField.value),!0}return!1},CopyToClipboardComponent.prototype.bindAutoCopyEventListeners=function(){return $(window,document).on("ready.copy-to-clipboard-component unload.copy-to-clipboard beforeunload.copy-to-clipboard ",this.handleCopyMethod.bind(this)),$("body, body *").on("click.copy-to-clipboard touchstart.copy-to-clipboard touch.copy-to-clipboard touchmove.copy-to-clipboard touchend.copy-to-clipboard tap.copy-to-clipboard swipe.copy-to-clipboard taphold.copy-to-clipboard mouseenter.copy-to-clipboard keypress.copy-to-clipboard",this.handleCopyMethod.bind(this)),this},CopyToClipboardComponent.prototype.copySuccess=function(){this.unbindAutoCopyEventListeners(),console.log("successfully copied to clipboard: '"+this.textToCopy+"'")},CopyToClipboardComponent.prototype.unbindAutoCopyEventListeners=function(){return $(window,document).off(".copy-to-clipboard"),$("body, body *").off(".copy-to-clipboard"),this},CopyToClipboardComponent.prototype.updateButtonText=function(){var _this=this,displayTextAttribute=this.getCopyButton().attr(this.displayText);void 0!==displayTextAttribute&&displayTextAttribute.length>0&&(this.getCopyButton().empty(),this.getCopyButton().text(displayTextAttribute),setTimeout(function(){_this.getCopyButton().text(_this.originalButtonText)},5e3))},CopyToClipboardComponent.selector="copy-to-clipboard-component",CopyToClipboardComponent}(__webpack_require__(1).AbstractComponent);exports.CopyToClipboardComponent=CopyToClipboardComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbstractApp=void 0;var ProductAware_1=__webpack_require__(4),ModalHandler_1=__webpack_require__(43),SetCookieOnClickHandler_1=__webpack_require__(44),EqualizerHandler_1=__webpack_require__(45),BillingLocalisationHandler_1=__webpack_require__(40),VimeoHandler_1=__webpack_require__(46),FlashMessageHandler_1=__webpack_require__(50),FormComponent_1=__webpack_require__(8),SupportModalFormComponent_1=__webpack_require__(85),ProgressBarComponent_1=__webpack_require__(86),CopyToClipboardComponent_1=__webpack_require__(41),ShowHideComponent_1=__webpack_require__(88),ForceLinkHandler_1=__webpack_require__(89),ShowMoreComponent_1=__webpack_require__(90),BillingFormComponent_1=__webpack_require__(91),ModalHashHandler_1=__webpack_require__(92),InlineInstallExtensionComponent_1=__webpack_require__(93),TranslationEditorComponent_1=__webpack_require__(12),ChargeHiveFormComponent_1=__webpack_require__(39),BrowserNavigatorInfoCookie_1=__webpack_require__(95),PasswordRevealHandler_1=__webpack_require__(96),ClickToRevealHandler_1=__webpack_require__(97),ConfettiComponent_1=__webpack_require__(98),TypeToRevealHandler_1=__webpack_require__(100),AbstractApp=function(_super){function AbstractApp(product){var _this=_super.call(this)||this;return _this.componentInstanceConfig=[],product.setApp(_this),_this.setProduct(product),_this}return __extends(AbstractApp,_super),AbstractApp.prototype.getComponentInstanceConfig=function(){return this.componentInstanceConfig},AbstractApp.prototype.getGlobalHandlers=function(){var product=this.getProduct();return[new EqualizerHandler_1.EqualizerHandler(product),new ModalHandler_1.ModalHandler(product),new ModalHashHandler_1.ModalHashHandler(product),new SetCookieOnClickHandler_1.SetCookieOnClickHandler(product),new BillingLocalisationHandler_1.BillingLocalisationHandler(product),new VimeoHandler_1.VimeoHandler(product),new FlashMessageHandler_1.FlashMessageHandler(product),new ForceLinkHandler_1.ForceLinkHandler(product),new BrowserNavigatorInfoCookie_1.BrowserNavigatorInfoCookie(product),new PasswordRevealHandler_1.PasswordRevealHandler(product),new ClickToRevealHandler_1.ClickToRevealHandler(product),new TypeToRevealHandler_1.TypeToRevealHandler(product)]},AbstractApp.prototype.getAppHandlers=function(){return[]},AbstractApp.prototype.getAllHandlers=function(){var globalHandlers=this.getGlobalHandlers(),appHandlers=this.getAppHandlers();return this.removeArrayDuplicates(globalHandlers.concat(appHandlers))},AbstractApp.prototype.getGlobalComponents=function(){return[FormComponent_1.FormComponent,ChargeHiveFormComponent_1.ChargeHiveFormComponent,SupportModalFormComponent_1.SupportModalFormComponent,TranslationEditorComponent_1.TranslationEditorComponent,BillingFormComponent_1.BillingFormComponent,ProgressBarComponent_1.ProgressBarComponent,CopyToClipboardComponent_1.CopyToClipboardComponent,SupportModalFormComponent_1.SupportModalFormComponent,ShowHideComponent_1.ShowHideComponent,ShowMoreComponent_1.ShowMoreComponent,InlineInstallExtensionComponent_1.InlineInstallExtensionComponent,ShowMoreComponent_1.ShowMoreComponent,SupportModalFormComponent_1.SupportModalFormComponent,TranslationEditorComponent_1.TranslationEditorComponent,ConfettiComponent_1.ConfettiComponent]},AbstractApp.prototype.getAppComponents=function(){return[]},AbstractApp.prototype.getAllComponents=function(){var globalComponents=this.getGlobalComponents(),appComponents=this.getAppComponents();return this.removeArrayDuplicates(globalComponents.concat(appComponents))},AbstractApp.prototype.bootstrap=function(onDocumentReady){var _this=this;void 0===onDocumentReady&&(onDocumentReady=!0),onDocumentReady?$(document).ready(function(){_this.registerComponents(),_this.runHandlers(),_this.runComponents()}):this.runHandlers()},AbstractApp.prototype.runHandlers=function(){var self=this;$(document).ready(function(){for(var _i=0,blockHandlers_1=self.getAllHandlers();_i1){var modalIds_1=[];return modals.each(function(){modalIds_1.push($(this).attr("id"))}),console.error("Only 1 modal can auto fire. You are currently trying to auto fire "+numberOfModals+" modals: "+modalIds_1),this}return this.getProduct().getModalModule().revealModalByModalSelector(modals),this},ModalHandler.prototype.assignUniqueIdToAllModalsWithoutAnId=function(){var self=this,modalCount=0;return this.getModals().each(function(){var modal=$(this);if(self.moveModalToBody(modal),void 0===modal.attr("id")){var newModalId="modal"+modalCount.toString();modal.attr("id",newModalId)}modalCount++}),!0},ModalHandler.prototype.moveModalToBody=function(modalElement){modalElement.parent().is("body")||void 0===$(modalElement).attr("modal-maintain-parent")&&modalElement.appendTo("body")},ModalHandler.prototype.addOverlayElementsForAllModals=function(){var self=this;return this.getModals().each(function(){var modal=$(this);if(0==modal.siblings(self.overlaySelector).length){var modalClass=self.overlaySelector.replace(/^\./,"");$('
    ').appendTo(modal.parent())}}),!0},ModalHandler.prototype.setupRevealModalClickHandlers=function(){var self=this,triggerElementSelector=this.triggerRevealElementSelector;return $(document).on("click triggerModal",this.triggerRevealElementSelector,function(event){var triggerElement=$(this),dataAttributeName=triggerElementSelector.replace(/^\[/,"").replace(/]$/,""),targetModalSelector=triggerElement.attr(dataAttributeName);("#"==triggerElement.attr("href")||triggerElement.is("button"))&&event.preventDefault(),self.getProduct().getModalModule().revealModalByModalSelector(targetModalSelector)}),!0},ModalHandler.prototype.setupRevealModalHoverHandlers=function(){var self=this,triggerElementSelector=this.triggerRevealOnHoverElementSelector;return $(document).on("mouseover",this.triggerRevealOnHoverElementSelector,function(event){var triggerElement=$(this),dataAttributeName=triggerElementSelector.replace(/^\[/,"").replace(/]$/,""),targetModalSelector=triggerElement.attr(dataAttributeName);self.getProduct().getModalModule().revealModalByModalSelector(targetModalSelector)}),!0},ModalHandler.prototype.getCurrentUrlHash=function(){return window.location.hash},ModalHandler.prototype.getModalSelectorByHash=function(hash){hash=hash.replace(/^#/,"");var configuredModalSelector=this.modalHashConfig[hash];return void 0!==configuredModalSelector?configuredModalSelector:null},ModalHandler.prototype.setupHashChangeListener=function(){var self=this;$(window).on("hashchange",function(){var currentUrlHash=self.getCurrentUrlHash(),configuredModalSelector=self.getModalSelectorByHash(currentUrlHash);configuredModalSelector&&self.getProduct().getModalModule().revealModalByModalSelector(configuredModalSelector)})},ModalHandler.prototype.setupEscapeCharacterKeyupEventHandler=function(){var self=this;$(document).keyup(function(e){27==e.keyCode&&$("."+self.modalVisibleModifier).each(function(){var modal=$(this);modal.attr(self.unclosableAttribute)||self.handleModalCloseMethod(modal)})})},ModalHandler.prototype.setupCloseModalClickHandlers=function(){var self=this;return $(window).on("modal-close",function(){var openModal=$(".modal--visible");self.handleModalCloseMethod(openModal)}),this.getModals().each(function(){var modal=$(this),modalId=modal.attr("id");$(modal).on("click","[data-modal-close]:not(#"+modalId+" .modal .live-chat-maximise), .live-chat-maximise:not(#"+modalId+" .modal .live-chat-maximise)",function(event){event.preventDefault(),self.handleModalCloseMethod(modal)})}),$(this.overlaySelector).each(function(){var modalOverlay=$(this);modalOverlay.on("click",function(event){event.preventDefault(),modalOverlay.siblings("."+self.modalVisibleModifier).each(function(){var modal=$(this);void 0===modal.attr(self.unclosableAttribute)&&self.handleModalCloseMethod(modal)})})}),!0},ModalHandler.prototype.handleModalCloseMethod=function(modal){var modalId=modal.attr("modal-component");if($("body").removeClass("fchat-modal-open"),this.hasAddIntervalAttribute(modal)&&this.incrementNextDisplayTime(modal),modalId){var modalComponent=this.getProduct().getViewModule().getComponent(modalId);"function"==typeof modalComponent.onClose&&modalComponent.onClose()}return modal.removeClass(this.modalVisibleModifier),null!=modal.attr("modal-reopen-target")&&(this.getProduct().getModalModule().revealModalByModalSelector("#"+modal.attr("modal-reopen-target")),modal.attr("modal-reopen-target",null)),this},ModalHandler.prototype.getModals=function(){return this.modals||(this.modals=$(this.modalSelector)),this.modals},ModalHandler.prototype.setupExitModalEventListener=function(){var exitModal=$("[data-open-on-mouseleave]");if(exitModal.length>1)throw new Error("ERROR! More than one [data-open-on-mouseleave] on this page");1===exitModal.length&&$(document).on("mouseleave",function(e){if(!($('[data-chargehive="verify"].challenge').length>0||void 0!==$('button[type="submit"]').attr("processing")||e.clientY>5)){var downloadOverlay=$("#download-overlay");if(downloadOverlay.length>0&&downloadOverlay.hasClass("vis"))this.getProduct().getCookieModule().set("exitCook",String(3));else if("select"!==e.target.nodeName.toLowerCase()&&this.isAddIntervalWaitOver(exitModal)&&e.pageY-$(window).scrollTop()<5&&!1===exitModal.hasClass("modal--visible")&&this.exitCookieCheck(exitModal)){var modalModule=this.getProduct().getModalModule();this.incrementExitCookie(exitModal),modalModule.setModalPositionToCenterViewPort(exitModal),modalModule.revealModalByModalSelector(this.exitPopAttribute),$(":focus").blur()}}}.bind(this))},ModalHandler.prototype.setupTimeoutModalEventListener=function(){var timeoutModal=$("["+this.timeoutPopAttribute+"]"),timeoutValue=parseInt(timeoutModal.attr(this.timeoutPopAttribute));timeoutModal.length>0&&timeoutModal.length<2&&(this.setupTimer(timeoutValue),$(window).on("click",function(){void 0==timeoutModal.attr("data-auto-modal-shown")&&(this.resetTimer(),this.setupTimer(timeoutValue))}.bind(this)))},ModalHandler.prototype.setupTimer=function(timeoutValue){var modalModule=this.getProduct().getModalModule();this.timer=window.setTimeout(function(){modalModule.revealModalByModalSelector("["+this.timeoutPopAttribute+"]"),$("["+this.timeoutPopAttribute+"]").attr("data-auto-modal-shown",!0)}.bind(this),timeoutValue)},ModalHandler.prototype.resetTimer=function(){window.clearTimeout(this.timer)},ModalHandler.prototype.incrementNextDisplayTime=function(modal){var nextInterval=Date.now()+this.getSetIntervalValue(modal);$(modal).attr(this.nextIntervalAttribute,nextInterval)},ModalHandler.prototype.hasSetIntervalAttribute=function(modal){return this.elementHasAttribute(modal,this.setIntervalAttribute)},ModalHandler.prototype.hasAddIntervalAttribute=function(modal){return this.elementHasAttribute(modal,this.addIntervalAttribute)},ModalHandler.prototype.hasIgnoreExitCookieAttribute=function(modal){return this.elementHasAttribute(modal,this.ignoreExitCookieAttribute)},ModalHandler.prototype.elementHasAttribute=function(element,attrName){return!!$(element).get(0).hasAttribute(attrName)},ModalHandler.prototype.isAddIntervalWaitOver=function(modal){if(this.hasAddIntervalAttribute(modal)){var interval=$(modal).attr(this.nextIntervalAttribute);return void 0==interval&&(interval=0),interval0},EqualizerHandler.prototype.run=function(){var rows=this.getRows(),breakpointModule=this.getProduct().getBreakpointModule(),equalizerModule=this.getProduct().getEqualizerModule();equalizerModule.equalizeRows(rows),breakpointModule.onWindowResize(function(){equalizerModule.resetEqualizer(rows),equalizerModule.equalizeRows(rows)},200)},EqualizerHandler.prototype.getRows=function(){return this.equalizerRow||(this.equalizerRow=$("["+this.equalizerAttribute+"]")),this.equalizerRow},EqualizerHandler}(__webpack_require__(3).AbstractHandler);exports.EqualizerHandler=EqualizerHandler},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.VimeoHandler=void 0;var Player=__webpack_require__(10),VimeoHandler=function(_super){function VimeoHandler(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.vimeoAttribute="ui-vimeo",_this.equalizerAttribute="ui-equalizer",_this}return __extends(VimeoHandler,_super),VimeoHandler.prototype.shouldRun=function(){return $("["+this.vimeoAttribute+"]").length>0},VimeoHandler.prototype.getRowsToEqualize=function(){return this.equalizerRow||(this.equalizerRow=$("["+this.equalizerAttribute+"]")),this.equalizerRow},VimeoHandler.prototype.run=function(){var equalize,self=this,videos=$("["+this.vimeoAttribute+"]"),equalizerModule=self.getProduct().getEqualizerModule(),rows=this.getRowsToEqualize();videos.each(function(){var video=$(this),id=video.attr("id"),player=new Player(id,self.getPlayerOptions(video));equalize&&clearTimeout(equalize),equalize=setTimeout(function(){player.on("loaded",function(){rows.each(function(index){equalizerModule.equalizeRow(rows.eq(index),".columns")})})},50)})},VimeoHandler.prototype.getPlayerOptions=function(container){return{}},VimeoHandler}(__webpack_require__(9).AbstractMyHandler);exports.VimeoHandler=VimeoHandler},function(module,exports,__webpack_require__){(function(global){var scope=void 0!==global&&global||"undefined"!=typeof self&&self||window,apply=Function.prototype.apply;function Timeout(id,clearFn){this._id=id,this._clearFn=clearFn}exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,scope,arguments),clearTimeout)},exports.setInterval=function(){return new Timeout(apply.call(setInterval,scope,arguments),clearInterval)},exports.clearTimeout=exports.clearInterval=function(timeout){timeout&&timeout.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(scope,this._id)},exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId),item._idleTimeout=msecs},exports.unenroll=function(item){clearTimeout(item._idleTimeoutId),item._idleTimeout=-1},exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;msecs>=0&&(item._idleTimeoutId=setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))},__webpack_require__(48),exports.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==global&&global.setImmediate||this&&this.setImmediate,exports.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==global&&global.clearImmediate||this&&this.clearImmediate}).call(exports,__webpack_require__(6))},function(module,exports,__webpack_require__){(function(global,process){!function(global,undefined){"use strict";if(!global.setImmediate){var registerImmediate,html,channel,messagePrefix,onGlobalMessage,nextHandle=1,tasksByHandle={},currentlyRunningATask=!1,doc=global.document,attachTo=Object.getPrototypeOf&&Object.getPrototypeOf(global);attachTo=attachTo&&attachTo.setTimeout?attachTo:global,"[object process]"==={}.toString.call(global.process)?registerImmediate=function(handle){process.nextTick(function(){runIfPresent(handle)})}:!function(){if(global.postMessage&&!global.importScripts){var postMessageIsAsynchronous=!0,oldOnMessage=global.onmessage;return global.onmessage=function(){postMessageIsAsynchronous=!1},global.postMessage("","*"),global.onmessage=oldOnMessage,postMessageIsAsynchronous}}()?global.MessageChannel?((channel=new MessageChannel).port1.onmessage=function(event){runIfPresent(event.data)},registerImmediate=function(handle){channel.port2.postMessage(handle)}):doc&&"onreadystatechange"in doc.createElement("script")?(html=doc.documentElement,registerImmediate=function(handle){var script=doc.createElement("script");script.onreadystatechange=function(){runIfPresent(handle),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}):registerImmediate=function(handle){setTimeout(runIfPresent,0,handle)}:(messagePrefix="setImmediate$"+Math.random()+"$",onGlobalMessage=function(event){event.source===global&&"string"==typeof event.data&&0===event.data.indexOf(messagePrefix)&&runIfPresent(+event.data.slice(messagePrefix.length))},global.addEventListener?global.addEventListener("message",onGlobalMessage,!1):global.attachEvent("onmessage",onGlobalMessage),registerImmediate=function(handle){global.postMessage(messagePrefix+handle,"*")}),attachTo.setImmediate=function(callback){"function"!=typeof callback&&(callback=new Function(""+callback));for(var args=new Array(arguments.length-1),i=0;i1)for(var i=1;i0},FlashMessageHandler.prototype.run=function(){this.onCloseButtonClickEventListener()},FlashMessageHandler.prototype.getFlashMessageCount=function(){if(!this.flashMessageCount){this.flashMessageCount=0;var flashMessageCountAttribute=$("["+this.flashMessageCountAttribute+"]");flashMessageCountAttribute.length>0&&(this.flashMessageCount=flashMessageCountAttribute.first().attr(this.flashMessageCountAttribute))}return this.flashMessageCount},FlashMessageHandler.prototype.decreaseFlashMessageCount=function(){--this.flashMessageCount},FlashMessageHandler.prototype.removeFlashMessageContainer=function(){$("["+this.flashMessageContainerArribute+"]").remove()},FlashMessageHandler.prototype.onCloseButtonClickEventListener=function(){var self=this;$("["+this.flashMessageCloseAttribute+"]").on("click",function(e){e.preventDefault(),$(this).closest("["+self.flashMessageArribute+"]").remove(),self.decreaseFlashMessageCount(),self.getFlashMessageCount()<1&&self.removeFlashMessageContainer()})},FlashMessageHandler}(__webpack_require__(3).AbstractHandler);exports.FlashMessageHandler=FlashMessageHandler},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PostalCodeValidator=void 0;var PostalCodeValidator=function(_super){function PostalCodeValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Not a valid postal code",_this}return __extends(PostalCodeValidator,_super),PostalCodeValidator.prototype.validate=function(){this.inputValue=this.inputElement.val().replace(/\s/g,"");var inputLength=this.inputValue.length;return!inputLength||inputLength>=3&&inputLength<=10},PostalCodeValidator.prototype.isValidUk=function(){return new RegExp("^"+"[A-Z]{1,2}"+"[0-9]"+"[0-9A-Z]?"+"[0-9]"+"[A-Z]{2}"+"$","gi").test(this.inputValue)},PostalCodeValidator.prototype.isValidUs=function(){return new RegExp("^"+"d{5}"+"$","gi").test(this.inputValue)},PostalCodeValidator.validatorName="postalCode",PostalCodeValidator}(__webpack_require__(0).AbstractValidator);exports.PostalCodeValidator=PostalCodeValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.RequiredValidator=void 0;var RequiredValidator=function(_super){function RequiredValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="This field is required",_this}return __extends(RequiredValidator,_super),RequiredValidator.prototype.validate=function(){if("checkbox"===this.inputElement.attr("type")||"radio"===this.inputElement.attr("type"))return!!this.inputElement.is(":checked");var tagName=void 0!==this.inputElement[0].localName?this.inputElement[0].localName:this.inputElement[0].nodeName,currentValue=this.inputElement.val().trim();return"select"===tagName.toLowerCase()?this.validateParam!==currentValue:!0!==Boolean(this.validateParam)||(!this.inputElement.attr("placeholder")||currentValue!=this.inputElement.attr("placeholder"))&&""!==currentValue},RequiredValidator.validatorName="required",RequiredValidator}(__webpack_require__(0).AbstractValidator);exports.RequiredValidator=RequiredValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.MinLengthValidator=void 0;var MinLengthValidator=function(_super){function MinLengthValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Minimum character length not hit",_this}return __extends(MinLengthValidator,_super),MinLengthValidator.prototype.validate=function(){var inputLength=this.inputElement.val().length;return!inputLength||inputLength>=parseInt(this.validateParam)},MinLengthValidator.validatorName="minLength",MinLengthValidator}(__webpack_require__(0).AbstractValidator);exports.MinLengthValidator=MinLengthValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.MaxLengthValidator=void 0;var MaxLengthValidator=function(_super){function MaxLengthValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Maximum character length hit",_this}return __extends(MaxLengthValidator,_super),MaxLengthValidator.prototype.validate=function(){var inputLength=this.inputElement.val().length;return!inputLength||inputLength<=parseInt(this.validateParam)},MaxLengthValidator.validatorName="maxLength",MaxLengthValidator}(__webpack_require__(0).AbstractValidator);exports.MaxLengthValidator=MaxLengthValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmailValidator=void 0;var EmailValidator=function(_super){function EmailValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Not a valid email",_this}return __extends(EmailValidator,_super),EmailValidator.prototype.validate=function(){var inputValue=this.inputElement.val();return!inputValue.length||new RegExp('^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([\\p{Letter}\\-0-9]+\\.)+[a-zA-Z]{2,}))$',"muig").test(inputValue)},EmailValidator.validatorName="email",EmailValidator}(__webpack_require__(0).AbstractValidator);exports.EmailValidator=EmailValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PhoneValidator=void 0;var PhoneValidator=function(_super){function PhoneValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Not a valid phone number",_this}return __extends(PhoneValidator,_super),PhoneValidator.prototype.validate=function(){var placeholder=this.inputElement.attr("placeholder"),value=this.inputElement.val(),validators=JSON.parse(this.inputElement.attr("form-validate"));if(void 0!==validators.required&&!1===validators.required&&placeholder&&value==placeholder)return!0;var inputValue=value.replace(/\s/g,""),inputLength=inputValue.length,regEx=new RegExp("^"+"(\\+?)"+"([^D]+)"+"$");if(0===inputLength)return!0;var validPhoneNumberLength=inputLength<=20&&inputLength>=6,phoneNumberMatchRegex=regEx.test(inputValue);return validPhoneNumberLength&&phoneNumberMatchRegex},PhoneValidator.validatorName="phone",PhoneValidator}(__webpack_require__(0).AbstractValidator);exports.PhoneValidator=PhoneValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardValidValidator=void 0;var AbstractValidator_1=__webpack_require__(0),CardValidValidator=(__webpack_require__(37),function(_super){function CardValidValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.errorMessage="Card number invalid",_this.valid=!1,_this.inputElement=inputElement,_this.validateParam=validateParam,_this.inputElement.validateCreditCard(_this.cardValidator.bind(_this)),_this}return __extends(CardValidValidator,_super),CardValidValidator.prototype.validate=function(){return this.valid},CardValidValidator.prototype.cardValidator=function(result){""==this.inputElement.val().replace(/\s/g,"")&&(this.valid=!1),result.luhn_valid&&result.valid&&result.length_valid?this.valid=!(null===result.card_type||""==result.card_type.name):this.valid=!1},CardValidValidator.validatorName="cardValid",CardValidValidator}(AbstractValidator_1.AbstractValidator));exports.CardValidValidator=CardValidValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardTypeValidator=void 0;var CardTypeValidator=function(_super){function CardTypeValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.cardTypeValid=!1,_this.inputElement.validateCreditCard(_this.cardTypeChecker.bind(_this)),_this}return __extends(CardTypeValidator,_super),CardTypeValidator.prototype.validate=function(){return this.cardTypeValid},CardTypeValidator.prototype.cardTypeChecker=function(result){var inputElement=this.inputElement,cardType=inputElement.parents("form").find(this.validateParam);result.card_type&&cardType.val(result.card_type.name),""==inputElement.val()&&(this.cardTypeValid=!1),this.cardTypeValid=null!==result.card_type},CardTypeValidator.validatorName="cardType",CardTypeValidator}(__webpack_require__(0).AbstractValidator);exports.CardTypeValidator=CardTypeValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.MatchValueValidator=void 0;var MatchValueValidator=function(_super){function MatchValueValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Field doesn't match",_this.classAttr="cancel-validation-repeat-check-class",_this}return __extends(MatchValueValidator,_super),MatchValueValidator.prototype.validate=function(){var element=this.inputElement,elementToMatch=$(this.validateParam),returnValue=this.getValueFromElement(elementToMatch)===this.getValueFromElement(element),hasClass=element.hasClass(this.classAttr);return returnValue?hasClass&&(element.removeClass(this.classAttr),elementToMatch.trigger("focusout")):hasClass||(element.addClass(this.classAttr),elementToMatch.trigger("focusout")),returnValue},MatchValueValidator.prototype.getValueFromElement=function(el){return void 0!==el.val()?el.val():el.text()},MatchValueValidator.validatorName="matchValue",MatchValueValidator}(__webpack_require__(0).AbstractValidator);exports.MatchValueValidator=MatchValueValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.NumericOnlyValidator=void 0;var NumericOnlyValidator=function(_super){function NumericOnlyValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="This field can only contain numbers",_this}return __extends(NumericOnlyValidator,_super),NumericOnlyValidator.prototype.validate=function(){var inputValue=this.inputElement.val(),inputLength=inputValue.length,regEx=new RegExp("^"+"[0-9]+"+"$");return!(0!==inputLength)||regEx.test(inputValue)},NumericOnlyValidator.validatorName="numericOnly",NumericOnlyValidator}(__webpack_require__(0).AbstractValidator);exports.NumericOnlyValidator=NumericOnlyValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.NoSpacesValidator=void 0;var NoSpacesValidator=function(_super){function NoSpacesValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="This field cannot contain spaces",_this}return __extends(NoSpacesValidator,_super),NoSpacesValidator.prototype.validate=function(){var inputValue=this.inputElement.val(),inputLength=inputValue.length,regEx=new RegExp("^"+"[^\\ ]+"+"$");return!(0!==inputLength)||regEx.test(inputValue)},NoSpacesValidator.validatorName="noSpaces",NoSpacesValidator}(__webpack_require__(0).AbstractValidator);exports.NoSpacesValidator=NoSpacesValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PhoneNumberConstraint=void 0;var PhoneNumberConstraint=function(_super){function PhoneNumberConstraint(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.constraintRegex=/^\+*[0-9|\ ]*$/,_this}return __extends(PhoneNumberConstraint,_super),PhoneNumberConstraint.constraintName="phone",PhoneNumberConstraint}(__webpack_require__(5).AbstractConstraint);exports.PhoneNumberConstraint=PhoneNumberConstraint},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.NumericConstraint=void 0;var NumericConstraint=function(_super){function NumericConstraint(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.constraintRegex=/^[0-9]+$/,_this}return __extends(NumericConstraint,_super),NumericConstraint.prototype.handleKeypress=function(self,e,inputElement,constraintRegex){var charCode=this.getCharCode(e);if(8!==charCode&&37!==charCode&&39!==charCode&&46!==charCode&&9!==charCode)return _super.prototype.handleKeypress.call(this,self,e,inputElement,constraintRegex)},NumericConstraint.constraintName="numeric",NumericConstraint}(__webpack_require__(5).AbstractConstraint);exports.NumericConstraint=NumericConstraint},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.MaxLengthConstraint=void 0;var MaxLengthConstraint=function(_super){function MaxLengthConstraint(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(MaxLengthConstraint,_super),MaxLengthConstraint.prototype.getConstraintRegex=function(){return"number"!=typeof this.constraintParam?(console.error("maxLength constraint value must be a number"),this.constraintRegex):new RegExp("^[0-9|/]{0,"+this.constraintParam+"}$")},MaxLengthConstraint.constraintName="maxLength",MaxLengthConstraint}(__webpack_require__(5).AbstractConstraint);exports.MaxLengthConstraint=MaxLengthConstraint},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.UrlValidator=void 0;var UrlValidator=function(_super){function UrlValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Not a valid url",_this}return __extends(UrlValidator,_super),UrlValidator.prototype.validate=function(){var inputValue=this.inputElement.val();return!inputValue.length||new RegExp("[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)","i").test(inputValue)},UrlValidator.validatorName="url",UrlValidator}(__webpack_require__(0).AbstractValidator);exports.UrlValidator=UrlValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardNumberValidator=void 0;var CardNumberValidator=function(_super){function CardNumberValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.isValid=!1,ChargeHive.addEventListener(ChargeHive.events.ON_FIELD_CHANGE,function(event){event.detail.source===inputElement.data("chargehive")&&(_this.isValid=event.detail.isValid)}),_this}return __extends(CardNumberValidator,_super),CardNumberValidator.prototype.validate=function(){return this.isValid},CardNumberValidator.validatorName="cardNumber",CardNumberValidator}(__webpack_require__(0).AbstractValidator);exports.CardNumberValidator=CardNumberValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardCvvValidator=void 0;var CardCvvValidator=function(_super){function CardCvvValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.isValid=!1,ChargeHive.addEventListener(ChargeHive.events.ON_FIELD_CHANGE,function(event){event.detail.source===inputElement.data("chargehive")&&(_this.isValid=event.detail.isValid)}),_this}return __extends(CardCvvValidator,_super),CardCvvValidator.prototype.validate=function(){return this.isValid},CardCvvValidator.validatorName="cardCvv",CardCvvValidator}(__webpack_require__(0).AbstractValidator);exports.CardCvvValidator=CardCvvValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardHolderNameValidator=void 0;var CardHolderNameValidator=function(_super){function CardHolderNameValidator(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(CardHolderNameValidator,_super),CardHolderNameValidator.prototype.validate=function(){return"true"==this.inputElement.attr("valid")&&"undefined"!=typeof ChargeHive&&ChargeHive.setNameOnCard(this.inputElement.val().replace(/\d+/g,"")),!0},CardHolderNameValidator.validatorName="cardHolderName",CardHolderNameValidator}(__webpack_require__(0).AbstractValidator);exports.CardHolderNameValidator=CardHolderNameValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardExpValidator=void 0;var CardExpValidator=function(_super){function CardExpValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.isValid=!1,ChargeHive.addEventListener(ChargeHive.events.ON_FIELD_CHANGE,function(event){event.detail.source===inputElement.data("chargehive")&&(_this.isValid=event.detail.isValid)}),_this}return __extends(CardExpValidator,_super),CardExpValidator.prototype.validate=function(){return this.isValid},CardExpValidator.validatorName="cardExp",CardExpValidator}(__webpack_require__(0).AbstractValidator);exports.CardExpValidator=CardExpValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardExpMonthValidator=void 0;var CardExpMonthValidator=function(_super){function CardExpMonthValidator(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(CardExpMonthValidator,_super),CardExpMonthValidator.prototype.validate=function(){var form=this.inputElement.parents("form"),monthInput=this.inputElement,yearInput=form.find(this.validateParam),monthValue=monthInput.val(),monthDefaultValue=null,yearValue=yearInput.val(),yearDefaultValue=null,monthInputValidators=JSON.parse(monthInput.attr("form-validate"));for(var validator in monthInputValidators)"required"===validator&&(monthDefaultValue=monthInputValidators[validator]);var yearInputValidators=JSON.parse(yearInput.attr("form-validate"));for(var validator in yearInputValidators)"required"===validator&&(yearDefaultValue=yearInputValidators[validator]);if("true"==monthInput.attr("valid")&&"true"==yearInput.attr("valid")){if(!this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1)))return!1;"undefined"!=typeof ChargeHive&&ChargeHive.setCardExpiry(monthValue,yearValue)}else if(null!==monthDefaultValue&&monthValue!==monthDefaultValue&&null!==yearDefaultValue&&yearValue!==yearDefaultValue){if(!this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1)))return"true"==yearInput.attr("valid")&&setTimeout(function(){yearInput.trigger("blur")},0),!1;"true"!=yearInput.attr("valid")&&setTimeout(function(){yearInput.trigger("blur")},0),"undefined"!=typeof ChargeHive&&ChargeHive.setCardExpiry(monthValue,yearValue)}return!0},CardExpMonthValidator.prototype.isValidDate=function(dateParameter){var today=new Date,currentYear=today.getFullYear(),year=dateParameter.getFullYear();if(year>currentYear)return!0;var month=dateParameter.getMonth(),currentMonth=today.getMonth();return year===currentYear&&month>=currentMonth},CardExpMonthValidator.validatorName="cardExpMonth",CardExpMonthValidator}(__webpack_require__(0).AbstractValidator);exports.CardExpMonthValidator=CardExpMonthValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardExpYearValidator=void 0;var CardExpYearValidator=function(_super){function CardExpYearValidator(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(CardExpYearValidator,_super),CardExpYearValidator.prototype.validate=function(){var form=this.inputElement.parents("form"),yearInput=this.inputElement,monthInput=form.find(this.validateParam),monthDefaultValue=null,monthValue=monthInput.val(),yearValue=yearInput.val(),yearDefaultValue=null,yearInputValidators=JSON.parse(yearInput.attr("form-validate"));for(var validator in yearInputValidators)"required"===validator&&(yearDefaultValue=yearInputValidators[validator]);var monthInputValidators=JSON.parse(monthInput.attr("form-validate"));for(var validator in monthInputValidators)"required"===validator&&(monthDefaultValue=monthInputValidators[validator]);if("true"==monthInput.attr("valid")&&"true"==yearInput.attr("valid")){if(!this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1)))return!1;"undefined"!=typeof ChargeHive&&ChargeHive.setCardExpiry(monthValue,yearValue)}else if(null!==yearDefaultValue&&yearValue!==yearDefaultValue&&null!==monthDefaultValue&&monthValue!==monthDefaultValue){if(!this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1)))return"true"==monthInput.attr("valid")&&setTimeout(function(){monthInput.trigger("blur")},0),!1;"true"!=monthInput.attr("valid")&&setTimeout(function(){monthInput.trigger("blur")},0),"undefined"!=typeof ChargeHive&&ChargeHive.setCardExpiry(monthValue,yearValue)}return!0},CardExpYearValidator.prototype.isValidDate=function(dateParameter){var today=new Date,currentYear=today.getFullYear(),year=dateParameter.getFullYear();if(year>currentYear)return!0;var month=dateParameter.getMonth(),currentMonth=today.getMonth();return year===currentYear&&month>=currentMonth},CardExpYearValidator.validatorName="cardExpYear",CardExpYearValidator}(__webpack_require__(0).AbstractValidator);exports.CardExpYearValidator=CardExpYearValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.IncludedFreeValidator=void 0;var IncludedFreeValidator=function(_super){function IncludedFreeValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Select now to add free gift now, no additional charge!",_this}return __extends(IncludedFreeValidator,_super),IncludedFreeValidator.prototype.validate=function(){var element=this.inputElement,planCode=element.data("identifier");if("checkbox"==element[0].type)return $(element).is(":checked")?($(document).find('[data-update-from-checkbox="'+planCode+'"]').html(element.data("checked")),!0):($(document).find('[data-update-from-checkbox="'+planCode+'"]').html(element.data("unchecked")),!1)},IncludedFreeValidator.validatorName="includedFree",IncludedFreeValidator}(__webpack_require__(0).AbstractValidator);exports.IncludedFreeValidator=IncludedFreeValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.DummyValidator=void 0;var DummyValidator=function(_super){function DummyValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="This will never be shown",_this}return __extends(DummyValidator,_super),DummyValidator.prototype.validate=function(){return!0},DummyValidator.validatorName="dummy",DummyValidator}(__webpack_require__(0).AbstractValidator);exports.DummyValidator=DummyValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.AlphaConstraint=void 0;var AlphaConstraint=function(_super){function AlphaConstraint(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.constraintRegex=/^[a-zA-Z\ ]*$/,_this}return __extends(AlphaConstraint,_super),AlphaConstraint.constraintName="alpha",AlphaConstraint}(__webpack_require__(5).AbstractConstraint);exports.AlphaConstraint=AlphaConstraint},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.NonNumericConstraint=void 0;var NonNumericConstraint=function(_super){function NonNumericConstraint(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.constraintRegex=/^[^0-9]*$/,_this}return __extends(NonNumericConstraint,_super),NonNumericConstraint.constraintName="nonNumeric",NonNumericConstraint}(__webpack_require__(5).AbstractConstraint);exports.NonNumericConstraint=NonNumericConstraint},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PcibCardNameValidator=void 0;var PcibCardNameValidator=function(_super){function PcibCardNameValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.isValid=!1,inputElement.on("pcib-field-validation",function(event){var state=event.detail.validationState;"none"==state?_this.isValid=!1:"invalid"==state?_this.isValid=!1:"valid"==state&&(_this.isValid=!0)}),_this}return __extends(PcibCardNameValidator,_super),PcibCardNameValidator.prototype.validate=function(){return this.isValid},PcibCardNameValidator.validatorName="pcibCardName",PcibCardNameValidator}(__webpack_require__(0).AbstractValidator);exports.PcibCardNameValidator=PcibCardNameValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PcibCardNumberValidator=void 0;var PcibCardNumberValidator=function(_super){function PcibCardNumberValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.isValid=!1,inputElement.on("pcib-field-validation",function(event){if(event.detail.field===inputElement.attr("pcib-field")){var state=event.detail.validationState;"none"==state?_this.isValid=!1:"invalid"==state?_this.isValid=!1:"valid"==state&&(_this.isValid=!0)}}),_this}return __extends(PcibCardNumberValidator,_super),PcibCardNumberValidator.prototype.validate=function(){return this.isValid},PcibCardNumberValidator.validatorName="pcibCardNumber",PcibCardNumberValidator}(__webpack_require__(0).AbstractValidator);exports.PcibCardNumberValidator=PcibCardNumberValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PcibCardExpiryValidator=void 0;var PcibCardExpiryValidator=function(_super){function PcibCardExpiryValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.isValid=!1,inputElement.on("pcib-field-validation",function(event){if(event.detail.field===inputElement.attr("pcib-field")){var state=event.detail.validationState;"none"==state?_this.isValid=!1:"invalid"==state?_this.isValid=!1:"valid"==state&&(_this.isValid=!0)}}),_this}return __extends(PcibCardExpiryValidator,_super),PcibCardExpiryValidator.prototype.validate=function(){return this.isValid},PcibCardExpiryValidator.validatorName="pcibCardExpiry",PcibCardExpiryValidator}(__webpack_require__(0).AbstractValidator);exports.PcibCardExpiryValidator=PcibCardExpiryValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PcibCardCvvValidator=void 0;var PcibCardCvvValidator=function(_super){function PcibCardCvvValidator(inputElement,validateParam){var _this=_super.call(this,inputElement,validateParam)||this;return _this.isValid=!1,inputElement.on("pcib-field-validation",function(event){if(event.detail.field===inputElement.attr("pcib-field")){var state=event.detail.validationState;"none"==state?_this.isValid=!1:"invalid"==state?_this.isValid=!1:"valid"==state&&(_this.isValid=!0)}}),_this}return __extends(PcibCardCvvValidator,_super),PcibCardCvvValidator.prototype.validate=function(){return this.isValid},PcibCardCvvValidator.validatorName="pcibCardCvv",PcibCardCvvValidator}(__webpack_require__(0).AbstractValidator);exports.PcibCardCvvValidator=PcibCardCvvValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PcibCardExpMonthValidator=void 0;var PcibCardExpMonthValidator=function(_super){function PcibCardExpMonthValidator(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(PcibCardExpMonthValidator,_super),PcibCardExpMonthValidator.prototype.validate=function(){var form=this.inputElement.parents("form"),monthInput=this.inputElement,yearInput=form.find(this.validateParam),monthValue=monthInput.val(),monthDefaultValue=null,yearValue=yearInput.val(),yearDefaultValue=null,monthInputValidators=JSON.parse(monthInput.attr("form-validate"));for(var validator in monthInputValidators)"required"===validator&&(monthDefaultValue=monthInputValidators[validator]);var yearInputValidators=JSON.parse(yearInput.attr("form-validate"));for(var validator in yearInputValidators)"required"===validator&&(yearDefaultValue=yearInputValidators[validator]);if("true"==monthInput.attr("valid")&&"true"==yearInput.attr("valid"))return!!this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1));if(null!==monthDefaultValue&&monthValue!==monthDefaultValue&&null!==yearDefaultValue&&yearValue!==yearDefaultValue){if(!this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1)))return"true"==yearInput.attr("valid")&&setTimeout(function(){yearInput.trigger("blur")},0),!1;"true"!=yearInput.attr("valid")&&setTimeout(function(){yearInput.trigger("blur")},0)}return!0},PcibCardExpMonthValidator.prototype.isValidDate=function(dateParameter){var today=new Date,currentYear=today.getFullYear(),year=dateParameter.getFullYear();if(year>currentYear)return!0;var month=dateParameter.getMonth(),currentMonth=today.getMonth();return year===currentYear&&month>=currentMonth},PcibCardExpMonthValidator.validatorName="pcibCardExpMonth",PcibCardExpMonthValidator}(__webpack_require__(0).AbstractValidator);exports.PcibCardExpMonthValidator=PcibCardExpMonthValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.PcibCardExpYearValidator=void 0;var PcibCardExpYearValidator=function(_super){function PcibCardExpYearValidator(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(PcibCardExpYearValidator,_super),PcibCardExpYearValidator.prototype.validate=function(){var form=this.inputElement.parents("form"),yearInput=this.inputElement,monthInput=form.find(this.validateParam),monthDefaultValue=null,monthValue=monthInput.val(),yearValue=yearInput.val(),yearDefaultValue=null,yearInputValidators=JSON.parse(yearInput.attr("form-validate"));for(var validator in yearInputValidators)"required"===validator&&(yearDefaultValue=yearInputValidators[validator]);var monthInputValidators=JSON.parse(monthInput.attr("form-validate"));for(var validator in monthInputValidators)"required"===validator&&(monthDefaultValue=monthInputValidators[validator]);return"true"==monthInput.attr("valid")&&"true"==yearInput.attr("valid")?!!this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1)):null===yearDefaultValue||yearValue===yearDefaultValue||null===monthDefaultValue||monthValue===monthDefaultValue||(this.isValidDate(new Date(parseInt(yearValue),parseInt(monthValue)-1))?("true"!=monthInput.attr("valid")&&setTimeout(function(){monthInput.trigger("blur")},0),!0):("true"==monthInput.attr("valid")&&setTimeout(function(){monthInput.trigger("blur")},0),!1))},PcibCardExpYearValidator.prototype.isValidDate=function(dateParameter){var today=new Date,currentYear=today.getFullYear(),year=dateParameter.getFullYear();if(year>currentYear)return!0;var month=dateParameter.getMonth(),currentMonth=today.getMonth();return year===currentYear&&month>=currentMonth},PcibCardExpYearValidator.validatorName="pcibCardExpYear",PcibCardExpYearValidator}(__webpack_require__(0).AbstractValidator);exports.PcibCardExpYearValidator=PcibCardExpYearValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.NonNumericValidator=void 0;var NonNumericValidator=function(_super){function NonNumericValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="This field can't contain numbers",_this}return __extends(NonNumericValidator,_super),NonNumericValidator.prototype.validate=function(){var inputValue=this.inputElement.val(),inputLength=inputValue.length,regEx=new RegExp("[&0-9]");return!!(0===inputLength)||!regEx.test(inputValue)},NonNumericValidator.validatorName="nonNumeric",NonNumericValidator}(__webpack_require__(0).AbstractValidator);exports.NonNumericValidator=NonNumericValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfirmPasswordValidator=void 0;var ConfirmPasswordValidator=function(_super){function ConfirmPasswordValidator(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.errorMessage="Passwords do not match",_this}return __extends(ConfirmPasswordValidator,_super),ConfirmPasswordValidator.prototype.validate=function(){var inputValue=this.inputElement.val();return $(this.inputElement).parents("form").find("[name='password']").val()==inputValue},ConfirmPasswordValidator.validatorName="confirmPassword",ConfirmPasswordValidator}(__webpack_require__(0).AbstractValidator);exports.ConfirmPasswordValidator=ConfirmPasswordValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardExpDateValidator=void 0;var CardExpDateValidator=function(_super){function CardExpDateValidator(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(CardExpDateValidator,_super),CardExpDateValidator.prototype.validate=function(){var dateArray=this.inputElement.val().split("/"),value=dateArray[0]+"/01/"+dateArray[1],date=Date.parse(value),expiryDate=new Date(date);return this.isValidDate(expiryDate)},CardExpDateValidator.prototype.isValidDate=function(dateParameter){var today=new Date,currentYear=today.getFullYear(),month=dateParameter.getMonth()+1,year=dateParameter.getFullYear();if(ChargeHive.setCardExpiry(month,year),year>currentYear)return year-currentYear<=10;var currentMonth=today.getMonth();return year===currentYear&&month>=currentMonth},CardExpDateValidator.validatorName="cardExpDate",CardExpDateValidator}(__webpack_require__(0).AbstractValidator);exports.CardExpDateValidator=CardExpDateValidator},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.SupportModalFormComponent=void 0;var SupportModalFormComponent=function(_super){function SupportModalFormComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.showContactBlock="data-show-content-block",_this.showBackArrowAttribute="data-show-back-arrow",_this.backArrowAttribute="data-modal-back-arrow",_this.closeButtonAttribute="data-modal-close",_this.contactModalAttribute="data-contact-modal",$(document,_this.componentElement).on("click","["+_this.backArrowAttribute+"],["+_this.closeButtonAttribute+"]",_this.fullFormReset.bind(_this)),_this}return __extends(SupportModalFormComponent,_super),SupportModalFormComponent.prototype.fullFormReset=function(){this.clearForm(),this.resetForm()},SupportModalFormComponent.prototype.ajaxSuccess=function(response){console.log("ajax success");try{response=JSON.parse(response)}catch(error){console.error(error),console.error("response: ",response)}if(response&&!0===response.success){var allPages=this.componentElement.parents("[data-reveal]").find(".modal-content"),successPage=allPages.filter('[data-support-modal-page="success"]');allPages.hide(),successPage.show(),this.goToBlock("[data-modal-content-block-success]"),this.fullFormReset()}else this.ajaxFailed("")},SupportModalFormComponent.prototype.ajaxFailed=function(error){this.goToBlock("[data-modal-content-block-failed]")},SupportModalFormComponent.prototype.goToBlock=function(targetBlock){this.resetForm();var targetBlockSelector=$(targetBlock),showBlockSelector=$("[data-show-content-block]"),contactModalSelector=$("["+this.contactModalAttribute+"]"),backArrowSelector=$("["+this.backArrowAttribute+"]");return showBlockSelector.each(function(){showBlockSelector.removeAttr(this.showContactBlock)}.bind(this)),targetBlockSelector.attr(this.showContactBlock,!0),contactModalSelector.attr("data-current-block",targetBlock),backArrowSelector.removeAttr(this.showBackArrowAttribute),"[data-modal-content-block-select-method]"!=targetBlock&&backArrowSelector.attr(this.showBackArrowAttribute,!0),!0},SupportModalFormComponent.selector="support-modal-form-component",SupportModalFormComponent}(__webpack_require__(8).FormComponent);exports.SupportModalFormComponent=SupportModalFormComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ProgressBarComponent=void 0;var ProgressBarComponent=function(_super){function ProgressBarComponent(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(ProgressBarComponent,_super),ProgressBarComponent.selector="progress-bar-component",ProgressBarComponent}(__webpack_require__(87).AbstractProgressBarComponent);exports.ProgressBarComponent=ProgressBarComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbstractProgressBarComponent=void 0;var AbstractProgressBarComponent=function(_super){function AbstractProgressBarComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.steps=10,_this.initStep=0,_this.setProgressBarSteps(),_this.setProgressBarInitialPosition(),_this.buildComponentMarkup(),_this}return __extends(AbstractProgressBarComponent,_super),AbstractProgressBarComponent.prototype.setProgressBarSteps=function(){var componentElement=this.componentElement;void 0!==componentElement.attr("progress-bar-steps")&&(this.steps=componentElement.attr("progress-bar-steps"))},AbstractProgressBarComponent.prototype.setProgressBarInitialPosition=function(){var componentElement=this.componentElement;void 0!==componentElement.attr("progress-bar-init-step")&&(this.initStep=componentElement.attr("progress-bar-init-step"))},AbstractProgressBarComponent.prototype.buildComponentMarkup=function(){for(var componentElement=this.componentElement,stepPercentage=100/this.steps,step=0;step<=this.steps;step++){var dot=$("
    ").addClass("progress__checkpoint").css("left",stepPercentage*step+"%");componentElement.append(dot)}var progressBar=$("
    ").addClass("progress__bar").css("width",stepPercentage*this.initStep+"%");componentElement.append(progressBar)},AbstractProgressBarComponent}(__webpack_require__(1).AbstractComponent);exports.AbstractProgressBarComponent=AbstractProgressBarComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShowHideComponent=void 0;var ShowHideComponent=function(_super){function ShowHideComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.group="[show-hide-group]",_this.block="[block]",_this.show="[show]",_this.secondaryBlock="[secondary-block]",_this.setupClickHandler(),_this}return __extends(ShowHideComponent,_super),ShowHideComponent.prototype.setupClickHandler=function(){$(this.show,this.componentElement).on("click",this.handleShowBlock.bind(this))},ShowHideComponent.prototype.handleShowBlock=function(event){event.stopPropagation();var currentGroup=$(event.currentTarget),blocks=this.componentElement.find(this.block),secondaryBlocks=this.componentElement.find(this.secondaryBlock),showElementValue=currentGroup.attr("show");this.componentElement.find(this.show).addClass("link--inactive"),currentGroup.removeClass("link--inactive"),blocks.addClass("hide"),secondaryBlocks.addClass("requirements-card--disable"),this.componentElement.find('[block~="'+showElementValue+'"]').removeClass("hide"),this.componentElement.find('[secondary-block~="'+showElementValue+'"]').removeClass("requirements-card--disable")},ShowHideComponent.selector="show-hide-component",ShowHideComponent}(__webpack_require__(1).AbstractComponent);exports.ShowHideComponent=ShowHideComponent},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ForceLinkHandler=void 0;var ForceLinkHandler=function(_super){function ForceLinkHandler(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(ForceLinkHandler,_super),ForceLinkHandler.prototype.shouldRun=function(){return!0},ForceLinkHandler.prototype.run=function(){this.setupForceHrefListener()},ForceLinkHandler.prototype.setupForceHrefListener=function(){var keydown=null;return $(document).on("keydown keypress",function(e){keydown=e.which}).on("keyup",function(){keydown=null}).on("click","[force-href]",function(e){e.stopPropagation();var element=$(e.currentTarget),delayAttr=element.attr("force-delay"),delay=void 0===delayAttr?0:parseInt(delayAttr),url=element.attr("force-href"),target=element.attr("force-target")?element.attr("force-target"):"_self";setTimeout(function(){91==keydown||17==keydown?window.open(url,"_blank"):window.open(url,target)},delay)}.bind(this)),!0},ForceLinkHandler}(__webpack_require__(3).AbstractHandler);exports.ForceLinkHandler=ForceLinkHandler},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShowMoreComponent=void 0;var ShowMoreComponent=function(_super){function ShowMoreComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.trigger="show-more-trigger",_this.element="show-more-element",_this.count="show-more-min",_this.hidden="hidden",_this.shouldShowTrigger(),_this.setupClickHandler(),_this}return __extends(ShowMoreComponent,_super),ShowMoreComponent.prototype.getElementCount=function(){return $(this.componentElement).attr(this.count)},ShowMoreComponent.prototype.shouldShowTrigger=function(){var element=$("["+this.element+"]",this.componentElement),trigger=$("["+this.trigger+"]",this.componentElement),minElement=parseInt(this.getElementCount());element.length").addClass("pass-reveal__icon"),parentElement.addClass("pass-reveal"),parentElement.append(_this.icon)),void 0!==input.attr("pass-reveal-on-load")&&_this.toggleShowPassword(parentElement,!0)}),$(document).on("click",".pass-reveal__icon",function(e){var parentElement=$(e.currentTarget).parent();_this.toggleShowPassword(parentElement)})},PasswordRevealHandler.prototype.toggleShowPassword=function(element,onLoad){void 0===onLoad&&(onLoad=!1);var input=element.find("input"),type="password"==input.attr("type")?"text":"password";input.attr("type",type),input.attr("autocapitalize","off"),element.toggleClass("pass-reveal--revealed"),onLoad||input.trigger("focus")},PasswordRevealHandler}(__webpack_require__(3).AbstractHandler);exports.PasswordRevealHandler=PasswordRevealHandler},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickToRevealHandler=void 0;var ClickToRevealHandler=function(_super){function ClickToRevealHandler(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.clickToRevealElementDataAttributeName="click-to-reveal",_this.clickToRevealActiveAttribute="click-to-reveal-active",_this}return __extends(ClickToRevealHandler,_super),ClickToRevealHandler.prototype.shouldRun=function(){return!0},ClickToRevealHandler.prototype.run=function(){this.addEventListeners()},ClickToRevealHandler.prototype.addEventListeners=function(){var self=this;$(document).on("click","[data-"+this.clickToRevealElementDataAttributeName+"]",function(event){var dataAttributeValue=$(event.target).data(self.clickToRevealElementDataAttributeName);$(dataAttributeValue).attr("data-"+self.clickToRevealActiveAttribute,"")})},ClickToRevealHandler}(__webpack_require__(3).AbstractHandler);exports.ClickToRevealHandler=ClickToRevealHandler},function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfettiComponent=void 0;var AbstractComponent_1=__webpack_require__(1),canvas_confetti_1=__webpack_require__(99),ConfettiComponent=function(_super){function ConfettiComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.frame(),_this}return __extends(ConfettiComponent,_super),ConfettiComponent.prototype.randomInRange=function(min,max){return Math.random()*(max-min)+min},ConfettiComponent.prototype.frame=function(){var skew=1,timeLeft=Date.now()+15e3-Date.now();skew=Math.max(.8,skew-.001),canvas_confetti_1.default({particleCount:1,startVelocity:0,spread:70,origin:{x:Math.random(),y:Math.random()*skew-.2},colors:[this.confettiColor()],shapes:[this.confettiShape()],gravity:this.randomInRange(.4,.6),scalar:this.randomInRange(.4,1),drift:this.randomInRange(-.4,.4)}),timeLeft>0&&requestAnimationFrame(this.frame.bind(this))},ConfettiComponent.prototype.confettiColor=function(){var colorsArray=["#1e90ff","#6b8e23","#ffd700","#ffc0cb","#6a5acd","#add8e6","#ee82ee","#98fb98","#4682b4","#f4a460","#d2691e","#dc143c"];return colorsArray[Math.floor(Math.random()*colorsArray.length)]},ConfettiComponent.prototype.confettiShape=function(){return"square"},ConfettiComponent.selector="confetti-component",ConfettiComponent}(AbstractComponent_1.AbstractComponent);exports.ConfettiComponent=ConfettiComponent},function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0}),__webpack_require__.d(__webpack_exports__,"create",function(){return create});module={};!function main(global,module,isWorker,workerSize){var canUseWorker=!!(global.Worker&&global.Blob&&global.Promise&&global.OffscreenCanvas&&global.OffscreenCanvasRenderingContext2D&&global.HTMLCanvasElement&&global.HTMLCanvasElement.prototype.transferControlToOffscreen&&global.URL&&global.URL.createObjectURL);function noop(){}function promise(func){var ModulePromise=module.exports.Promise,Prom=void 0!==ModulePromise?ModulePromise:global.Promise;return"function"==typeof Prom?new Prom(func):(func(noop,noop),null)}var frame,cancel,TIME,frames,lastFrameTime,defaultFire,raf=(TIME=Math.floor(1e3/60),frames={},lastFrameTime=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(frame=function(cb){var id=Math.random();return frames[id]=requestAnimationFrame(function onFrame(time){lastFrameTime===time||lastFrameTime+TIME-1=1&&elementToReveal.show()}),inputElement.keyup(function(event){$(event.target).val().length>=1?elementToReveal.show():elementToReveal.hide()})},TypeToRevealHandler.prototype.getTypeToRevealInput=function(){return this.typeToRevealInput?this.typeToRevealInput:this.typeToRevealInput=$("[data-"+this.typeToRevealInputAttr+"]")},TypeToRevealHandler.prototype.getTypeToRevealElement=function(){return this.typeToRevealElement?this.typeToRevealElement:this.typeToRevealElement=$("[data-"+this.typeToRevealElementAttr+"]")},TypeToRevealHandler}(__webpack_require__(3).AbstractHandler);exports.TypeToRevealHandler=TypeToRevealHandler},,function(module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])})(d,b)},function(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)});Object.defineProperty(exports,"__esModule",{value:!0}),exports.FortifiChatComponent=void 0;var FortifiChatComponent=function(_super){function FortifiChatComponent(componentElement,product){var _this=_super.call(this,componentElement,product)||this;return _this.blockName="fortifi-chat",_this.externalFortifiScript="https://chat.fortifi.io/js/chatManager.js",_this.initialDistanceFromBottom=[],_this.isMobile=_this.getProduct().getEnvironmentModule().getUserAgent().isMobile(),setTimeout(function(){_this.setupHoverEventListeners().getFooterHeight().loadFortifiScript().initFortifiScript().setupEventListeners()},2e3),_this.isOpenChatPresent()&&_this.forceMaximize(),setTimeout(function(){this.hideTextBubble()}.bind(_this),2e3),_this}return __extends(FortifiChatComponent,_super),FortifiChatComponent.prototype.loadFortifiScript=function(){return $("body",document).prepend($('