1(function(){'use strict';var app=angular.module('RbsChangeApp');$('[data-toggle="tooltip"]').tooltip();$('html, body').bind('touchstart',function(){$('[data-toggle="tooltip"]').tooltip('hide');});app.directive('projectGlisshopPopover',['$timeout',projectGlisshopPopover]);function projectGlisshopPopover($timeout){return{restrict:'A',scope:{idPopoverContent:'=',hideCloseBtn:'=',popoverClass:'='},link:function(scope,element){let timer;let counter=200;$(element).popover({html:true,title:(scope.hideCloseBtn)?'':'<button type="button" class="close" onclick="$(".glisshop-popover").popover("hide");"><svg viewBox="0 0 14 14" aria-hidden="true" focusable="false">\n'+'\t<path d="M8.1,7l5.3-5.3c0.3-0.3,0.3-0.8,0-1.2c-0.3-0.3-0.8-0.3-1.2,0L7,5.9L1.7,0.6c-0.3-0.3-0.8-0.3-1.2,0\n'+'\t\tc-0.3,0.3-0.3,0.8,0,1.2L5.9,7l-5.3,5.3c-0.3,0.3-0.3,0.8,0,1.2c0.3,0.3,0.8,0.3,1.2,0L7,8.1l5.3,5.3c0.3,0.3,0.8,0.3,1.2,0\n'+'\t\tc0.3-0.3,0.3-0.8,0-1.2L8.1,7z"/>\n'+'</svg></button>',trigger:'manual',content:function(){return $('#'+scope.idPopoverContent).html();}}).on('mouseenter',function(event){timer=$timeout(function(){$('.glisshop-popover').popover('hide');$(element).popover('show');$timeout(function(){$('.popover').on('mouseleave',function(event){$(element).popover('hide');});},500);},counter);}).on('mouseleave',function(){$timeout.cancel(timer);}).on('show.bs.popover',function(){$timeout(function(){$('.popover').addClass(scope.popoverClass);});$('body').append('<div class="popover__overlay"></div>');}).on('hide.bs.popover',function(){$('.popover').removeClass(scope.popoverClass);$('.popover__overlay').remove();}) 2$('html, body').on('click',function(event){$(element).popover('hide');});}}} 3app.directive('projectGlisshopPopoverCustom',projectGlisshopPopoverCustom);function projectGlisshopPopoverCustom(){return{restrict:'A',link:function(scope,element,attrs){let country=document.documentElement.lang.split('-')[1];let language=document.documentElement.lang.split('-')[0].toUpperCase();let price=0;if(attrs.price){price=attrs.price}else if(scope.$root.currentPackPrice){price=scope.$root.currentPackPrice.amount} 4$(element).on('click',function(){let options={country:country,language:language,merchant_guid:attrs.guid,payment_amount:price,filter_by:"business_transaction_codes",business_transaction_codes:attrs.oneyWidgetBtc.split(',')};options.errorCallback=function(status,response){console.log(status+" - "+response);} 5loadOneyWidget(function(){oneyMerchantApp.loadSimulationPopin({options});});});}}} 6app.directive('projectOneyCheckout',projectOneyCheckout);function projectOneyCheckout(){return{restrict:'A',link:function(scope,element,attrs){let placeholder,businessCode;let country=document.documentElement.lang.split('-')[1];let language=document.documentElement.lang.split('-')[0].toUpperCase();if(scope.$parent.connector.common.sync==='ONEY_3X'){placeholder="#checkoutPlaceholder3";businessCode=attrs.codeThree;}else if(scope.$parent.connector.common.sync==='ONEY_4X'){placeholder="#checkoutPlaceholder4";businessCode=attrs.codeFour;}else if(scope.$parent.connector.common.sync==='ONEY_3X_FREE'){placeholder="#checkoutPlaceholder3free";businessCode=attrs.codeThreeFree;}else if(scope.$parent.connector.common.sync==='ONEY_4X_FREE'){placeholder="#checkoutPlaceholder4free";businessCode=attrs.codeFourFree;} 7let options={country:country,language:language,merchant_guid:attrs.guid,payment_amount:scope.$parent.connector.transaction.amount/100,filter_by:"business_transaction_code",business_transaction_code:businessCode,checkout_placeholder:placeholder};options.errorCallback=function(status,response){console.log(status+" - "+response);};loadOneyWidget(function(){oneyMerchantApp.loadCheckoutSection({options});});}}} 8app.directive('projectOneyCgv',projectOneyCgv);function projectOneyCgv(){return{restrict:'A',link:function(scope,element,attrs){let country=document.documentElement.lang.split('-')[1];let language=document.documentElement.lang.split('-')[0].toUpperCase();let options={country:country,language:language,merchant_guid:attrs.guid,payment_amount:500,free_bts:false,showAsModal:false,document_type:"3x4xCB",responseType:"html"};options.successCallback=function(status,response){document.getElementsByClassName("generalConditions")[0].innerHTML=response.html;};options.errorCallback=function(status,response){console.log(status+" - "+response);};loadOneyWidget(function(){oneyMerchantApp.loadGeneralConditions({options});});}}} 9app.directive('projectGlisshopMobileStyling',[projectGlisshopMobileStyling]);function projectGlisshopMobileStyling(){return{restrict:'A',scope:true,link:function(scope,element,attrs){let descriptionElement=element.find('.c-commercial-banner-custom__description');let descriptionElementColorCss=descriptionElement.css('color');
9let elementBackgroundCss=element.css('background');let attrBackgroundMobile=attrs['backgroundMobile'];let attrTextColorMobile=attrs['textColorMobile'];let initialBgColor=elementBackgroundCss?elementBackgroundCss:'inherit';let bgMobile=(attrBackgroundMobile)?attrBackgroundMobile:'#e9e9e9';let initialTxtColor=descriptionElementColorCss?descriptionElementColorCss:'inherit';let txtColorMobile=(attrTextColorMobile)?attrTextColorMobile:'#1C191C';$(window).resize(function(){setBgMobile();setTextColorMobile();});function setBgMobile(){if(element){if($(window).outerWidth()>1024){element.css('background',initialBgColor);}else{element.css('background',bgMobile);}}} 10function setTextColorMobile(){if(element){if($(window).outerWidth()>1024){descriptionElement.css('color',initialTxtColor);}else{descriptionElement.css('color',txtColorMobile);}}} 11setBgMobile();setTextColorMobile();}};} 12app.directive('projectGlisshopSkiAdvice',['$rootScope',projectGlisshopSkiAdvice]);function projectGlisshopSkiAdvice($rootScope){return{restrict:'A',scope:true,link:function(scope,element,attrs){var temp=angular.fromJson(localStorage.getItem('advice.ski.size')||'""');if(temp){scope.adviceSkiSize=''+temp.min+'/'+temp.max;} 13$rootScope.$on('advice.ski.size',function(_,size){scope.adviceSkiSize=''+size.min+'/'+size.max;});}}} 14app.directive('projectGlisshopCroppedText',['$window','$timeout',projectGlisshopCroppedText]);function projectGlisshopCroppedText($window,$timeout){return{restrict:'A',scope:true,link:function(scope,element,attrs){scope.isNeededToBeCropped=false;scope.isCropped=true;$timeout(function(){let targetText=element.find('.c-cropped__wrapper');let allPtext=$(targetText).find('p');if(allPtext.length>3){scope.isNeededToBeCropped=true;for(var i=0;i<allPtext.length;i++){if(i>3){$(allPtext[i]).addClass('is-cropped-more');}}}else{scope.isNeededToBeCropped=false;} 15scope.toggleCropText=function(){if(scope.isCropped){for(var i=0;i<allPtext.length;i++){if(i>3){$(allPtext[i]).removeClass('is-cropped-more');}} 16scope.isCropped=false;}else{for(var i=0;i<allPtext.length;i++){if(i>3){$(allPtext[i]).addClass('is-cropped-more');}} 17scope.isCropped=true;}}})}}} 18app.directive('projectGlisshopRedirection',['$window',projectGlisshopRedirection]);function projectGlisshopRedirection($window){return{restrict:'A',link(scope,element,attrs){let url=attrs['url'];scope.redirection=function(){$window.location.href=url;}}};} 19app.directive('projectGlisshopIsolateForm',[projectGlisshopIsolateForm]);function projectGlisshopIsolateForm(){return{restrict:'A',require:'?form',link:function(scope,elm,attrs,ctrl){if(!ctrl){return;} 20var ctrlCopy={};angular.copy(ctrl,ctrlCopy);var parent=elm.parent().controller('form');parent?.$removeControl(ctrl);}};} 21app.directive('elemReady',['$rootScope',elemReady]);function elemReady($rootScope){return{restrict:'A',link:function($scope,elem,attrs){elem.ready(function(){$rootScope.$broadcast('elemIsReady');})}}}})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.