',infowindow=new google.maps.InfoWindow({content:contentString,maxWidth:350}),newCreatedMarker=new google.maps.Marker({map:this.map,position:getGoogleLatitudeLongitude(newMarker.position),title:location});if(location){newCreatedMarker.addListener('click',function(){if(activeInfoWindow){activeInfoWindow.close();}\ninfowindow.open(this.map,newCreatedMarker);activeInfoWindow=infowindow;},this);}\nthis.markers.push(newCreatedMarker);this.bounds.push(getGoogleLatitudeLongitude(newMarker.position));},this);}\nif(this.bounds.length>1){this.bounds.forEach(function(bound){latitudeLongitudeBounds.extend(bound);});this.map.fitBounds(latitudeLongitudeBounds);}\nif(this.bounds.length===1){this.map.setCenter(this.bounds[0]);this.map.setZoom(8);}};this.setMarkers(markers);};});","Magento_OfflineShipping/js/model/shipping-rates-validation-rules/tablerate.min.js":"define([],function(){'use strict';return{getRules:function(){return{'postcode':{'required':true},'country_id':{'required':true},'region_id':{'required':true},'region_id_input':{'required':true}};}};});","Magento_OfflineShipping/js/model/shipping-rates-validation-rules/flatrate.min.js":"define([],function(){'use strict';return{getRules:function(){return{'country_id':{'required':true}};}};});","Magento_OfflineShipping/js/model/shipping-rates-validation-rules/freeshipping.min.js":"define([],function(){'use strict';return{getRules:function(){return{'country_id':{'required':true}};}};});","Magento_OfflineShipping/js/model/shipping-rates-validator/tablerate.min.js":"define(['jquery','mageUtils','../shipping-rates-validation-rules/tablerate','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message,regionFields;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');regionFields=['region','region_id','region_id_input'];if($.inArray(field,regionFields)===-1||utils.isEmpty(address.region)&&utils.isEmpty(address['region_id'])){self.validationErrors.push(message);}}});return!this.validationErrors.length;}};});","Magento_OfflineShipping/js/model/shipping-rates-validator/flatrate.min.js":"define(['jquery','mageUtils','../shipping-rates-validation-rules/flatrate','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Magento_OfflineShipping/js/model/shipping-rates-validator/freeshipping.min.js":"define(['jquery','mageUtils','../shipping-rates-validation-rules/freeshipping','mage/translate'],function($,utils,validationRules,$t){'use strict';return{validationErrors:[],validate:function(address){var self=this;this.validationErrors=[];$.each(validationRules.getRules(),function(field,rule){var message;if(rule.required&&utils.isEmpty(address[field])){message=$t('Field ')+field+$t(' is required.');self.validationErrors.push(message);}});return!this.validationErrors.length;}};});","Magento_OfflineShipping/js/view/shipping-rates-validation/tablerate.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','../../model/shipping-rates-validator/tablerate','../../model/shipping-rates-validation-rules/tablerate'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,tablerateShippingRatesValidator,tablerateShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('tablerate',tablerateShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('tablerate',tablerateShippingRatesValidationRules);return Component;});","Magento_OfflineShipping/js/view/shipping-rates-validation/flatrate.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','../../model/shipping-rates-validator/flatrate','../../model/shipping-rates-validation-rules/flatrate'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,flatrateShippingRatesValidator,flatrateShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('flatrate',flatrateShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('flatrate',flatrateShippingRatesValidationRules);return Component;});","Magento_OfflineShipping/js/view/shipping-rates-validation/freeshipping.min.js":"define(['uiComponent','Magento_Checkout/js/model/shipping-rates-validator','Magento_Checkout/js/model/shipping-rates-validation-rules','../../model/shipping-rates-validator/freeshipping','../../model/shipping-rates-validation-rules/freeshipping'],function(Component,defaultShippingRatesValidator,defaultShippingRatesValidationRules,freeshippingShippingRatesValidator,freeshippingShippingRatesValidationRules){'use strict';defaultShippingRatesValidator.registerValidator('freeshipping',freeshippingShippingRatesValidator);defaultShippingRatesValidationRules.registerRules('freeshipping',freeshippingShippingRatesValidationRules);return Component;});","Magento_CardinalCommerce/js/cardinal-factory.min.js":"define(['jquery'],function($){'use strict';return function(environment){var deferred=$.Deferred(),dependency='cardinaljs';if(environment==='sandbox'){dependency='cardinaljsSandbox';}\nrequire([dependency],function(Cardinal){deferred.resolve(Cardinal);},deferred.reject);return deferred.promise();};});","Magento_CardinalCommerce/js/cardinal-client.min.js":"define(['jquery','uiClass','Magento_CardinalCommerce/js/cardinal-factory','Magento_Checkout/js/model/quote','mage/translate'],function($,Class,cardinalFactory,quote,$t){'use strict';return{startAuthentication:function(cardData){var deferred=$.Deferred();if(this.cardinalClient){this._startAuthentication(deferred,cardData);}else{cardinalFactory(this.getEnvironment()).done(function(client){this.cardinalClient=client;this._startAuthentication(deferred,cardData);}.bind(this));}\nreturn deferred.promise();},_startAuthentication:function(deferred,cardData){this.cardinalClient.on('payments.validated',function(data,jwt){if(data.ErrorNumber!==0){deferred.reject(data.ErrorDescription);}else if($.inArray(data.ActionCode,['FAILURE','ERROR'])!==-1){deferred.reject($t('Authentication Failed. Please try again with another form of payment.'));}else{deferred.resolve(jwt);}\nthis.cardinalClient.off('payments.validated');}.bind(this));this.cardinalClient.on('payments.setupComplete',function(){this.cardinalClient.start('cca',this.getRequestOrderObject(cardData));this.cardinalClient.off('payments.setupComplete');}.bind(this));this.cardinalClient.setup('init',{jwt:this.getRequestJWT()});},getRequestOrderObject:function(cardData){var totalAmount=quote.totals()['base_grand_total'],currencyCode=quote.totals()['base_currency_code'],billingAddress=quote.billingAddress(),requestObject;requestObject={OrderDetails:{Amount:totalAmount*100,CurrencyCode:currencyCode},Consumer:{Account:{AccountNumber:cardData.accountNumber,ExpirationMonth:cardData.expMonth,ExpirationYear:cardData.expYear,CardCode:cardData.cardCode},BillingAddress:{FirstName:billingAddress.firstname,LastName:billingAddress.lastname,Address1:billingAddress.street[0],Address2:billingAddress.street[1],City:billingAddress.city,State:billingAddress.region,PostalCode:billingAddress.postcode,CountryCode:billingAddress.countryId,Phone1:billingAddress.telephone}}};return requestObject;},getRequestJWT:function(){return window.checkoutConfig.cardinal.requestJWT;},getEnvironment:function(){return window.checkoutConfig.cardinal.environment;}};});","Magento_Reports/js/recently-viewed.min.js":"define(['jquery','jquery-ui-modules/widget'],function($){'use strict';$.widget('mage.recentlyViewedProducts',{options:{localStorageKey:'recently-viewed-products',productBlock:'#widget_viewed_item',viewedContainer:'ol'},_create:function(){var productHtml=$(this.options.productBlock).html(),productSku=$(this.options.productBlock).data('sku'),products=JSON.parse(window.localStorage.getItem(this.options.localStorageKey)),productsLength,maximum,showed,index;if(products){productsLength=products.sku.length;maximum=$(this.element).data('count');showed=0;for(index=0;index<=productsLength;index++){if(products.sku[index]==productSku||showed>=maximum){products.sku.splice(index,1);products.html.splice(index,1);}else{$(this.element).find(this.options.viewedContainer).append(products.html[index]);$(this.element).show();showed++;}}\n$(this.element).find(this.options.productBlock).show();}else{products={};products.sku=[];products.html=[];}\nproducts.sku.unshift(productSku);products.html.unshift(productHtml);window.localStorage.setItem(this.options.localStorageKey,JSON.stringify(products));}});return $.mage.recentlyViewedProducts;});","Magento_ReCaptchaCheckout/js/model/place-order-mixin.min.js":"define(['jquery','mage/utils/wrapper','Magento_ReCaptchaWebapiUi/js/webapiReCaptchaRegistry'],function($,wrapper,recaptchaRegistry){'use strict';return function(placeOrder){return wrapper.wrap(placeOrder,function(originalAction,serviceUrl,payload,messageContainer){var recaptchaDeferred;if(recaptchaRegistry.triggers.hasOwnProperty('recaptcha-checkout-place-order')){recaptchaDeferred=$.Deferred();recaptchaRegistry.addListener('recaptcha-checkout-place-order',function(token){payload.xReCaptchaValue=token;originalAction(serviceUrl,payload,messageContainer).done(function(){recaptchaDeferred.resolve.apply(recaptchaDeferred,arguments);}).fail(function(){recaptchaDeferred.reject.apply(recaptchaDeferred,arguments);});});recaptchaRegistry.triggers['recaptcha-checkout-place-order']();return recaptchaDeferred;}\nreturn originalAction(serviceUrl,payload,messageContainer);});};});","Magento_CheckoutAddressSearch/js/modal-component.min.js":"define(['Magento_Ui/js/modal/modal-component'],function(Modal){'use strict';return Modal.extend({initModal:function(element){this.modal=null;this._super(element);return this;}});});","Magento_CheckoutAddressSearch/js/view/billing-address.min.js":"define(['underscore','jquery','mage/translate','Magento_Checkout/js/view/billing-address','Magento_Checkout/js/model/quote','Magento_Checkout/js/action/select-billing-address','Magento_Checkout/js/checkout-data','Magento_Ui/js/modal/modal','Magento_Checkout/js/action/create-billing-address','Magento_Customer/js/model/address-list','Magento_Ui/js/lib/view/utils/async'],function(_,$,$t,Component,quote,selectBillingAddress,checkoutData,modal,createBillingAddress,addressList){'use strict';var lastSelectedBillingAddress=null;return Component.extend({defaults:{template:'Magento_CheckoutAddressSearch/billing-address',detailsTemplate:'Magento_CheckoutAddressSearch/billing-address/details',selectBillingAddressProvider:'',isNewAddressAdded:false,newCustomerBillingAddress:null,popUpButtons:{save:{text:$t('Save Address'),class:'action primary action-save-address'},cancel:{text:$t('Cancel'),class:'action secondary action-hide-popup'}},popUpForm:{element:'.new-billing-address-form',options:{type:'popup',responsive:true,innerScroll:true,title:$t('Billing Address')}},modules:{selectBillingAddress:'${ $.selectBillingAddressProvider }'},noAddressMessage:$t('No address selected')},initialize:function(){this._super();this.isNewAddressAdded(!!checkoutData.getNewCustomerBillingAddress());if(this.isNewAddressAdded()){this.newCustomerBillingAddress(createBillingAddress(checkoutData.getNewCustomerBillingAddress()));}\nquote.billingAddress.subscribe(function(addressOption){if(!addressOption){_.each(addressList(),function(address){if(address.isDefaultBilling&&address.isDefaultBilling()){selectBillingAddress(address);checkoutData.setSelectedBillingAddress(address.getKey());}},this);}},this);$.async({component:this,selector:this.popUpForm.element},this.initPopup.bind(this));return this;},initObservable:function(){this._super().observe('isNewAddressAdded newCustomerBillingAddress');quote.billingAddress.subscribe(function(){this.isAddressFormVisible(false);},this);return this;},useShippingAddress:function(){if(this.isAddressSameAsShipping()){lastSelectedBillingAddress=quote.billingAddress();selectBillingAddress(quote.shippingAddress());checkoutData.setSelectedBillingAddress(quote.shippingAddress().getKey());this.updateAddresses();}else if(lastSelectedBillingAddress&&lastSelectedBillingAddress.getCacheKey()!==quote.billingAddress().getCacheKey()){selectBillingAddress(lastSelectedBillingAddress);checkoutData.setSelectedBillingAddress(lastSelectedBillingAddress.getKey());this.updateAddresses();}\nreturn true;},editAddress:function(){this.showFormPopUp();},cancelAddressEdit:function(){checkoutData.setBillingAddressFromData($.extend(true,{},this.temporaryAddress));this.closeFormPopUp();},initPopup:function(element){this.popUpForm.options.buttons=[{text:this.popUpButtons.save.text,class:this.popUpButtons.save.class,click:function(){this.updateAddress();if(!this.source.get('params.invalid')){this.isNewAddressAdded(true);this.closeFormPopUp();}}.bind(this)},{text:this.popUpButtons.cancel.text,class:this.popUpButtons.cancel.class,click:this.cancelAddressEdit.bind(this)}];this.popUpForm.options.modalCloseBtnHandler=this.cancelAddressEdit.bind(this);this.popUpForm.options.keyEventHandlers={escapeKey:this.cancelAddressEdit.bind(this)};this.popUpForm.options.opened=function(){this.temporaryAddress=$.extend(true,{},checkoutData.getBillingAddressFromData());}.bind(this);this.popUp=modal(this.popUpForm.options,$(element));},showFormPopUp:function(){this.isAddressFormVisible(true);this.popUp.openModal();},closeFormPopUp:function(){this.isAddressFormVisible(false);this.popUp.closeModal();},openAddressSelection:function(){this.selectBillingAddress().openModal();},updateAddress:function(){this._super();if(!this.selectedAddress()||this.isAddressFormVisible()){this.newCustomerBillingAddress(createBillingAddress(checkoutData.getNewCustomerBillingAddress()));}},isAddressEditable:function(address){if(address){return address.getType()==='new-customer-billing-address';}}});});","Magento_CheckoutAddressSearch/js/view/shipping-address/ui-select.min.js":"define(['underscore','Magento_Ui/js/form/element/ui-select','Magento_Checkout/js/action/select-shipping-address','Magento_Checkout/js/checkout-data','Magento_Customer/js/model/customer/address','Magento_Customer/js/model/address-list','Magento_Customer/js/customer-data','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/shipping-address/form-popup-state'],function(_,Select,selectShippingAddressAction,checkoutData,Address,addressList,customerData,quote,formPopUpState){'use strict';var countryData=customerData.get('directory-data');return Select.extend({defaults:{addressTmpl:'Magento_CheckoutAddressSearch/shipping-address/address-renderer/item',modalProvider:'${ $.parentName }',quantityPlaceholder:'addresses',modules:{modal:'${ $.modalProvider }'},newAddressInSearchResult:false},initialize:function(){this._super();this._setItemsQuantity(this.total);},initConfig:function(){var existingOptions=[];this._super();_.each(this.options,function(option){existingOptions.push(new Address(option));});this.options=this.sortAddresses(existingOptions);return this;},initObservable:function(){this._super();this.onShippingAddressChange(quote.shippingAddress());quote.shippingAddress.subscribe(this.onShippingAddressChange,this);addressList.subscribe(function(changes){_.each(changes,function(change){if(change.status==='added'&&change.value.getType()==='new-customer-address'){this.options().push(change.value);this.options(this.sortAddresses(this.options()));}},this);},this,'arrayChange');return this;},onShippingAddressChange:function(address){if(address){this.options(this.sortAddresses(this.options()));}\nthis.value(address);},selectShippingAddress:function(option){delete option.level;delete option.isVisited;delete option.path;this.value(option);this.modal().closeModal();selectShippingAddressAction(option);checkoutData.setSelectedShippingAddress(option.getKey());},editAction:function(){this.modal().closeModal();formPopUpState.isVisible(true);},success:function(response){var existingOptions=this.options();_.each(response.options,function(opt){if(!_.findWhere(existingOptions,{customerAddressId:opt.id})){existingOptions.push(new Address(opt));}});this.total=response.total;this.newAddressInSearchResult=false;this.options(this.sortAddresses(existingOptions));},sortAddresses:function(existingOptions){var resultOptions=[],defaultAddress,newAddress;newAddress=_.find(addressList(),function(address){return address.getType()==='new-customer-address';});if(!_.isEmpty(newAddress)&&this.canShowNewAddress(newAddress,this.currentSearchKey)){if(this.newAddressInSearchResult===false){this._setItemsQuantity(++this.total);}\nthis.newAddressInSearchResult=true;resultOptions.push(newAddress);}\ndefaultAddress=_.find(existingOptions,function(address){return address.isDefaultShipping();});!_.isEmpty(defaultAddress)&&resultOptions.push(defaultAddress);return resultOptions.concat(_.filter(existingOptions,function(address){return address.getType()!=='new-customer-address'&&!address.isDefaultShipping();}));},canShowNewAddress:function(address,searchKey){var searchFields=['city','postcode','region',['street']],filteredResults=[],value='';if(!searchKey){return true;}\nfilteredResults=searchFields.filter(function(elem){value=address[elem];if(_.isArray(value)){value=value.join(' ');}\nreturn value.toLowerCase().indexOf(searchKey.toLowerCase())!==-1;});return!!filteredResults.length;},getCountryName:function(countryId){return countryData()[countryId]!==undefined?countryData()[countryId].name:'';},isAddressSelected:function(address){return!_.isEmpty(this.value())&&this.value().getKey()===address.getKey();},getItemsPlaceholder:function(data){var prefix='';if(this.lastSearchKey){prefix='Found ';}\nreturn prefix+data+' '+this.quantityPlaceholder;},onScrollDown:function(data,event){if(this.loading()||this.options().length>=this.total){return;}\nthis._super(data,event);}});});","Magento_CheckoutAddressSearch/js/view/shipping-address/selected.min.js":"define(['uiComponent','mage/translate','Magento_Customer/js/customer-data','Magento_Checkout/js/model/shipping-address/form-popup-state','Magento_Checkout/js/model/quote'],function(Component,$t,customerData,formPopUpState,quote){'use strict';var countryData=customerData.get('directory-data');return Component.extend({defaults:{template:'Magento_CheckoutAddressSearch/shipping-address/selected',selectShippingAddressProvider:'',defaultAddress:quote.shippingAddress(),isChangeAddressVisible:true,modules:{selectionModal:'${ $.selectShippingAddressProvider }'},noAddressMessage:$t('No address selected')},initObservable:function(){this._super().observe('defaultAddress');quote.shippingAddress.subscribe(this.onShippingAddressUpdate,this);return this;},getCountryName:function(countryId){return countryData()[countryId]!==undefined?countryData()[countryId].name:'';},editAddress:function(){formPopUpState.isVisible(true);},openAddressSelection:function(){this.selectionModal().openModal();},onShippingAddressUpdate:function(address){this.defaultAddress(address);}});});","Magento_CheckoutAddressSearch/js/view/billing-address/ui-select.min.js":"define(['underscore','Magento_Ui/js/form/element/ui-select','Magento_Checkout/js/action/select-billing-address','Magento_Checkout/js/checkout-data','Magento_Customer/js/model/customer/address','Magento_Customer/js/customer-data','Magento_Checkout/js/model/quote'],function(_,Select,selectBillingAddress,checkoutData,Address,customerData,quote){'use strict';var countryData=customerData.get('directory-data');return Select.extend({defaults:{addressTmpl:'Magento_CheckoutAddressSearch/billing-address/address-renderer/item',modal:'${$.parentName}',quantityPlaceholder:'addresses',value:{},billingAddressProvider:'',isNewAddressAdded:false,imports:{isNewAddressAdded:'${ $.billingAddressProvider }:isNewAddressAdded',newCustomerBillingAddress:'${ $.billingAddressProvider }:newCustomerBillingAddress'},listens:{newCustomerBillingAddress:'onChangeNewCustomerBillingAddress'},modules:{modal:'${ $.modal }',billingAddress:'${ $.billingAddressProvider }'},newAddressInSearchResult:false},initialize:function(){this._super();this._setItemsQuantity(this.total);},initConfig:function(){var existingOptions=[];this._super();if(this.newCustomerBillingAddress){existingOptions.push(this.newCustomerBillingAddress);}\n_.each(this.options,function(option){existingOptions.push(new Address(option));});this.options=this.sortAddresses(existingOptions);return this;},initObservable:function(){this._super().observe('isNewAddressAdded');quote.billingAddress.subscribe(function(address){if(address){this.value(address);}},this);return this;},selectBillingAddress:function(option){delete option.level;delete option.isVisited;delete option.path;this.value(option);this.modal().closeModal();selectBillingAddress(option);checkoutData.setSelectedBillingAddress(option.getKey());},editAction:function(){this.modal().closeModal();this.billingAddress().editAddress();},success:function(response){var existingOptions=this.options();_.each(response.options,function(opt){var address=new Address(opt);if(!_.findWhere(existingOptions,{customerAddressId:address.id})){existingOptions.push(address);}});this.total=response.total;this.newAddressInSearchResult=false;if(this.newCustomerBillingAddress){existingOptions.push(this.newCustomerBillingAddress);}\nthis.options(this.sortAddresses(existingOptions));},sortAddresses:function(existingOptions){var resultOptions=[],defaultAddress;if(!_.isEmpty(this.newCustomerBillingAddress)&&this.canShowNewAddress(this.newCustomerBillingAddress,this.currentSearchKey)){if(this.newAddressInSearchResult===false){this._setItemsQuantity(++this.total);}\nthis.newAddressInSearchResult=true;resultOptions.push(this.newCustomerBillingAddress);}\ndefaultAddress=_.find(existingOptions,function(address){return address.isDefaultShipping();});!_.isEmpty(defaultAddress)&&resultOptions.push(defaultAddress);return resultOptions.concat(_.filter(existingOptions,function(address){return address.getType()!=='new-customer-billing-address'&&!address.isDefaultShipping();}));},canShowNewAddress:function(address,searchKey){var searchFields=['city','postcode','region',['street']],filteredResults=[],value='';if(!searchKey){return true;}\nfilteredResults=searchFields.filter(function(elem){value=address[elem];if(_.isArray(value)){value=value.join(' ');}\nreturn value.toLowerCase().indexOf(searchKey.toLowerCase())!==-1;});return!!filteredResults.length;},getCountryName:function(countryId){return countryData()[countryId]!==undefined?countryData()[countryId].name:'';},isAddressSelected:function(address){return!_.isEmpty(this.value())&&this.value().getKey()===address.getKey();},isAddressEditable:function(address){return address.getType()==='new-customer-billing-address';},onChangeNewCustomerBillingAddress:function(address){var options=_.filter(this.options(),function(option){return option.getType()!=='new-customer-billing-address';});options.push(address);this.options(this.sortAddresses(options));},getItemsPlaceholder:function(data){var prefix='';if(this.lastSearchKey){prefix='Found ';}\nreturn prefix+data+' '+this.quantityPlaceholder;},onScrollDown:function(data,event){if(this.loading()||this.options().length>=this.total){return;}\nthis._super(data,event);}});});","Movistar_Andreani/js/view/shipping-information/address-renderer/default.min.js":"define(['jquery','uiRegistry','Magento_Checkout/js/model/quote','mage/translate'],function($,registry,quote,$t){'use strict';return function(AddressRenderer){return AddressRenderer.extend({defaults:{template:'Movistar_Andreani/shipping-information/address-renderer/default'},getAndreaniStreetAttributes:function(customAttributes){var andreaniAttributes=['altura','piso','departamento'];var attributeLabels='';for(let pos in andreaniAttributes){let attributeCode=andreaniAttributes[pos];if(attributeCode in customAttributes&&customAttributes[attributeCode].value!==''){if(attributeCode==='altura'){attributeLabels+=' '+customAttributes[attributeCode].value+', ';}\nelse{attributeLabels+=attributeCode.charAt(0).toUpperCase()+attributeCode.slice(1)+': '+customAttributes[attributeCode].value+', ';}}\nelse if(Array.isArray(customAttributes)){for(let arrayPos in customAttributes){let attribute=customAttributes[arrayPos];if(attributeCode===attribute.attribute_code){if(attributeCode==='altura'){attributeLabels+=' '+attribute.value+', ';}\nelse{if(attributeCode==='piso'&&attribute.value!=''){attributeLabels+=attributeCode.charAt(0).toUpperCase()+attributeCode.slice(1)+': '+attribute.value+', ';}\nif(attributeCode==='departamento'&&attribute.value!=''){attributeLabels+=attributeCode.charAt(0).toUpperCase()+attributeCode.slice(1)+': '+attribute.value+', ';}}\nbreak;}}}}\nreturn attributeLabels.slice(0,-2);},getCustomerAttributesDni:function(customAttributes){var customerAttributes=['dni'];var attributesHtml='';for(let pos in customerAttributes){let attributeCode=customerAttributes[pos];if(Array.isArray(customAttributes)){for(let arrayPos in customAttributes){let attribute=customAttributes[arrayPos];if(attributeCode===attribute.attribute_code&&attribute.value!==''){if(attributeCode==='dni'){attributesHtml+=$t('DNI')+\" \"+attribute.value;}\nbreak;}}}}\nreturn attributesHtml.slice(0);},getCustomerAttributesCelPhone:function(customAttributes){var customerAttributes=['celular'];var attributesHtml='';for(let pos in customerAttributes){let attributeCode=customerAttributes[pos];if(Array.isArray(customAttributes)){for(let arrayPos in customAttributes){let attribute=customAttributes[arrayPos];if(attributeCode===attribute.attribute_code&&attribute.value!==''){if(attributeCode==='celular'){attributesHtml+=$t('Cell Phone')+' '+attribute.value;}\nbreak;}}}}\nreturn attributesHtml.slice(0);},getCustomerAttributesGender:function(customAttributes){var attributesHtml='';let gender=\"\";if($.inArray('customer_gender',customAttributes)){if(customAttributes.customer_gender!=undefined){gender=customAttributes.customer_gender=='male'?'Masculino':'Femenino';attributesHtml+=gender;}\nelse if(localStorage.hasOwnProperty('genderStorage')){gender=localStorage.getItem('genderStorage')=='male'?'Masculino':'Femenino';attributesHtml=gender;}}\nreturn attributesHtml.slice(0);},getCustomerAttributesBirthdate:function(customAttributes){var attributesHtml='';if($.inArray('customer_birthdate',customAttributes)){if(customAttributes.customer_birthdate){if(customAttributes.customer_birthdate!=undefined){attributesHtml=this.dateFormat(customAttributes.customer_birthdate);}}\nelse if(localStorage.hasOwnProperty('birthdateStorage')){attributesHtml=this.dateFormat(localStorage.getItem('birthdateStorage'));}}\nreturn attributesHtml.slice(0);},getCity:function(address){var attributesHtml='';if(localStorage.hasOwnProperty('cityStorage')){attributesHtml=localStorage.getItem('cityStorage');}\nelse{attributesHtml=address.city;}\nreturn attributesHtml.slice(0);},getStreet:function(street){var attributesHtml='';if(localStorage.hasOwnProperty('streetStorage')){attributesHtml=localStorage.getItem('streetStorage');}\nelse{attributesHtml=street;}\nreturn attributesHtml.slice(0);},getName:function(address){var attributesHtml='';if(localStorage.hasOwnProperty('firstnameStorage')&&localStorage.hasOwnProperty('lastnameStorage')){attributesHtml=localStorage.getItem('firstnameStorage')+' '+localStorage.getItem('lastnameStorage');}\nelse{attributesHtml=address.firstname+' '+address.lastname;}\nreturn attributesHtml.slice(0);},dateFormat:function(birthdate){let formatToDate=birthdate.split('/');let year=formatToDate[0];let month=formatToDate[1];let day=formatToDate[2];let dateBirthdate=$t('Date of Birthday')+\" \"+day+\"/\"+month+\"/\"+year;return dateBirthdate;},getPostal:function(postcode){var attributesHtml='';if(localStorage.hasOwnProperty('postcode')){attributesHtml=localStorage.getItem('postcode');}\nelse{attributesHtml=postcode;}\nreturn attributesHtml.slice(0);}});};});","Movistar_Andreani/js/view/checkout/pickup/pickup-andreani.min.js":"define(['jquery','ko','uiComponent','mage/url','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/shipping-service','mage/translate','Magento_Catalog/js/price-utils'],function($,ko,Component,url,quote,shippingService,t,priceUtils){'use strict';return Component.extend({defaults:{template:'Movistar_Andreani/checkout/pickup/pickup-andreani'},initialize:function(config){this.provinces=ko.observableArray();this.provinces(Object.keys(checkoutConfig.andreani.stores));this.selectedProvince=ko.observable();this.cities=ko.observableArray();this.selectedCity=ko.observable();this.stores=ko.observableArray();this.selectedStore=ko.observable();this.andreaniErrorMessage=ko.observable();this._super();},initObservable:function(){this._super();this.showProvinceSection=ko.computed(function(){let provinces=this.provinces();if(provinces.length!=0){provinces.sort();}\nreturn provinces;},this);this.showCitySection=ko.computed(function(){let cities=this.cities();if(cities.length!=0){cities.sort();}\nreturn cities;},this);this.showStoreSection=ko.computed(function(){let storeSection=this.stores();if(storeSection.length!=0){storeSection.sort();}\nstoreSection.sort();return storeSection;},this);this.selectedMethod=ko.computed(function(){var method=quote.shippingMethod();return method!=null?method.carrier_code+'_'+method.method_code:null;},this);return this;},getCotizacionStore:function(){storeService.getCotizacionStore(quote.shippingAddress(),this);},provinceChange:function(obj,event){if(this.selectedProvince()&&this.selectedProvince()in checkoutConfig.andreani.stores){this.cities(Object.keys(checkoutConfig.andreani.stores[this.selectedProvince()]));}\nelse{this.cities([]);}\nthis.selectedCity(null);},cityChange:function(obj,event){if(this.selectedProvince()&&this.selectedCity()&&this.selectedProvince()in checkoutConfig.andreani.stores&&this.selectedCity()in checkoutConfig.andreani.stores[this.selectedProvince()]){this.stores(Object.keys(checkoutConfig.andreani.stores[this.selectedProvince()][this.selectedCity()]));}\nelse{this.stores([]);}\nthis.selectedStore(null);},storeChange:async function(obj,event){if(this.selectedStore()){var self=this;$.ajax({url:url.build('andreani/checkout/pickuprates'),type:'POST',dataType:'json',showLoader:true,data:{store_id:checkoutConfig.andreani.stores[this.selectedProvince()][this.selectedCity()][this.selectedStore()].codigo,store_name:this.selectedStore(),quote_id:quote.getQuoteId(),address_zip:quote.shippingAddress().postcode,address:checkoutConfig.andreani.stores[this.selectedProvince()][this.selectedCity()][this.selectedStore()].direccion},complete:function(response){if(response.status==200&&response.responseJSON.status){let costoEnvio=priceUtils.formatPrice(response.responseJSON.price,quote.getPriceFormat());jQuery('#label_method_sucursal_andreanisucursal').siblings('.col-price').children('span').text(costoEnvio);self.andreaniErrorMessage('');}\nelse{self.andreaniErrorMessage('No se encontraron cotizaciones para la sucursal seleccionada');}},error:function(xhr,status,errorThrown){}});}},});});","Magento_CustomerBalance/js/action/use-balance.min.js":"define(['jquery','ko','Magento_Checkout/js/model/quote','Magento_Checkout/js/model/url-builder','Magento_Checkout/js/model/error-processor','mage/storage','Magento_Ui/js/model/messageList','mage/translate','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/get-payment-information','Magento_Checkout/js/model/totals'],function($,ko,quote,urlBuilder,errorProcessor,storage,messageList,$t,fullScreenLoader,getPaymentInformationAction,totals){'use strict';return function(){var message=$t('Your store credit was successfully applied');messageList.clear();fullScreenLoader.startLoader();return storage.post(urlBuilder.createUrl('/carts/mine/balance/apply',{})).done(function(response){var deferred;if(response){deferred=$.Deferred();totals.isLoading(true);getPaymentInformationAction(deferred);$.when(deferred).done(function(){totals.isLoading(false);});messageList.addSuccessMessage({'message':message});}}).fail(function(response){totals.isLoading(false);errorProcessor.process(response);}).always(function(){fullScreenLoader.stopLoader();});};});","Magento_CustomerBalance/js/action/remove-balance.min.js":"define(['jquery','mage/url','Magento_Checkout/js/model/error-processor','Magento_Checkout/js/model/quote','mage/storage','Magento_Ui/js/model/messageList','mage/translate','Magento_Checkout/js/model/full-screen-loader','Magento_Checkout/js/action/get-payment-information','Magento_Checkout/js/model/totals'],function($,urlBuilder,errorProcessor,quote,storage,messageList,$t,fullScreenLoader,getPaymentInformationAction,totals){'use strict';return function(){var message=$t('The store credit payment has been removed from shopping cart.');messageList.clear();fullScreenLoader.startLoader();$.ajax({url:urlBuilder.build('storecredit/cart/unapply/'),type:'POST',dataType:'json',data:{cartId:quote.getQuoteId()}}).done(function(response){var deferred;if(response){deferred=$.Deferred();totals.isLoading(true);getPaymentInformationAction(deferred);$.when(deferred).done(function(){totals.isLoading(false);});messageList.addSuccessMessage({'message':message});}}).fail(function(response){totals.isLoading(false);errorProcessor.process(response);}).always(function(){fullScreenLoader.stopLoader();});};});","Magento_CustomerBalance/js/view/payment/customer-balance.min.js":"define(['ko','uiComponent','Magento_Checkout/js/model/quote','Magento_Catalog/js/price-utils','Magento_CustomerBalance/js/action/use-balance'],function(ko,component,quote,priceUtils,useBalanceAction){'use strict';var amountSubstracted=ko.observable(window.checkoutConfig.payment.customerBalance.amountSubstracted),isActive=ko.pureComputed(function(){var totals=quote.getTotals();return!amountSubstracted()&&totals()['grand_total']>0;});return component.extend({defaults:{template:'Magento_CustomerBalance/payment/customer-balance',isEnabled:true},isAvailable:window.checkoutConfig.payment.customerBalance.isAvailable,amountSubstracted:window.checkoutConfig.payment.customerBalance.amountSubstracted,usedAmount:window.checkoutConfig.payment.customerBalance.usedAmount,balance:window.checkoutConfig.payment.customerBalance.balance,initObservable:function(){this._super().observe('isEnabled');return this;},isActive:function(){return isActive();},formatBalance:function(){return priceUtils.formatPrice(this.balance,quote.getPriceFormat());},setAmountSubstracted:function(isAmountSubstracted){amountSubstracted(isAmountSubstracted);return this;},sendRequest:function(){amountSubstracted(true);useBalanceAction();}});});","Magento_CustomerBalance/js/view/summary/customer-balance.min.js":"define(['Magento_Checkout/js/view/summary/abstract-total','Magento_Checkout/js/model/totals','Magento_CustomerBalance/js/action/remove-balance','Magento_CustomerBalance/js/view/payment/customer-balance'],function(Component,totals,removeCustomerBalance,customerBalance){'use strict';return Component.extend({defaults:{template:'Magento_CustomerBalance/summary/customer-balance',storeCreditFormName:'checkout.steps.billing-step.payment.afterMethods.storeCredit',modules:{storeCreditForm:'${ $.storeCreditFormName }'}},totals:totals.totals(),getPureValue:function(){var price=0,segment;if(this.totals){segment=totals.getSegment('customerbalance');if(segment){price=segment.value;}}\nreturn price;},getValue:function(){return this.getFormattedPrice(this.getPureValue());},isAvailable:function(){return this.isFullMode()&&this.getPureValue()!=0;},sendRequest:function(){removeCustomerBalance();this.storeCreditForm().setAmountSubstracted(false);customerBalance();}});});","Magento_CustomerBalance/js/view/cart/summary/customer-balance.min.js":"define(['Magento_CustomerBalance/js/view/summary/customer-balance'],function(Component){'use strict';var balanceRemoveUrl=window.checkoutConfig.payment.customerBalance.balanceRemoveUrl;return Component.extend({getRemoveUrl:function(){return balanceRemoveUrl;},isFullMode:function(){return true;}});});","Movistar_ChangeOffer/js/landingpage.min.js":"define(['jquery','Magento_Ui/js/modal/modal','mage/url','mage/translate','slick','accordion'],function($,modal,url,$t){\"use strict\";$(document).ready(function(){const checklinenumber='cambiodeplan/ajax/checkinglinenumber';const verifyotpurl='cambiodeplan/ajax/verificationcodevalidation';const tocheckouturl='cambiodeplan/checkout/index';const inputnputLine=$('#filteredLines');const btnLogin=$('#ldpcdpmovileline');const filteredLines2=$('#filteredLines2');const btnexclusive=$('#ldpcdpMovileLineVerification');const validationsText=$('#js-validation-text');const validations=$('#js-validations');const validatonInput=$('#js-input-Validation');const validationsTextOTP=$('#js-validation-text-otp');const validationsOTP=$('#js-validations-otp');const validatonInputOTP=$('#js-input-Validation-otp');const newOTP=$('#js-validations-otp p span');const otpModal=$('#otpModal');const exclusiveOffer=$('#exclusiveOffer');const btnLineModal=$('#btnLine');const inputLineModal=$('#inputLine');const smalltext=$('#otpModal .text-validation');const smallVerify=$('#otpModal .text-verify');const lineModal=$('.line');const loginModal=$('.login');const otpSectionModal=$('.otp');const otpCodeModal=$('#codeOTP');const btnOTPModal=$('#btnOTP');const inputLineAssisted=$('#inputLineAssisted');const newCode=$('#newCode');const newCodeOTP=$('#newCodeOTP');const homeUrl='/'+$t('changeofplan');const genericModals=$('#warningModals');const gmTitle=$('#warningModals h3');const gmText=$('#warningModals p');const gmButton=$('#warningModals div');const linkResend=$('#linkResend');const mdAssisted=$('#assistedModals');const btnLineAssisted=$('#btnLineAssisted');const sectionLineAssisted=$('#assistedModals .line');const sectionConfirmationAssisted=$('#assistedModals .confirmation');const btnConfirmationAssisted=$('#assistedConfirmation');const assistendValidation=$('#assistendValidation');inputnputLine.on('keypress',function(){if(event.which<48||event.which>57||this.value.length===10){return false;}});inputnputLine.on('keyup',function(){if($(this).val()==''){btnLogin.prop('disabled',true);}else{btnLogin.prop('disabled',false);}});inputLineModal.on('keyup',function(){if($(this).val()==''){btnLineModal.prop('disabled',true);}else{btnLineModal.prop('disabled',false);}});inputnputLine.on('focus',function(){$(this).closest(\".input-group\").addClass(\"focused\");});inputnputLine.on('blur',function(){$(this).closest(\".input-group\").removeClass(\"focused\");});filteredLines2.on('focus',function(){$(this).closest(\".input-group\").addClass(\"focused\");});filteredLines2.on('blur',function(){$(this).closest(\".input-group\").removeClass(\"focused\");});inputLineModal.on('keypress',function(){if(event.which<48||event.which>57||this.value.length===10){return false;}});otpCodeModal.on('keypress',function(){if(event.which<48||event.which>57||this.value.length===8){return false;}});btnOTPModal.on('click',function(){let val=otpCodeModal.val().toString().length;if(val>=4){verifyOTP(otpCodeModal.val());}else{smallVerify.addClass('warning').text($t('The code you entered is incorrect. Try again.'));otpCodeModal.addClass('warning').val('');btnOTPModal.text($t('Retry'));}\nreturn false;});filteredLines2.on('keypress',function(){if(event.which<48||event.which>57||this.value.length===8){return false;}});filteredLines2.on('keyup',function(){let val=filteredLines2.val().toString().length;if(val>=4){btnexclusive.prop(\"disabled\",false);}\nelse{btnexclusive.prop(\"disabled\",true);}});btnexclusive.on('click',function(){verifyOTP(filteredLines2.val());return false;});newOTP.on('click',function(){codeOTP(inputnputLine.val(),true);validationsTextOTP.removeClass('hidden');validationsOTP.addClass('hidden');validatonInputOTP.removeClass('warning');filteredLines2.val('');});newCode.on('click',function(){codeOTP(inputnputLine.val(),true);validationsTextOTP.removeClass('hidden');validationsOTP.addClass('hidden');validatonInputOTP.removeClass('warning');filteredLines2.val('');newCode.addClass('hidden');btnexclusive.text($t('View my exclusive offer'));btnexclusive.removeClass('hidden');});newCodeOTP.on('click',function(){codeOTP(inputLineModal.val(),true);otpCodeModal.val('');newCodeOTP.addClass('hidden');linkResend.removeClass('hidden');btnOTPModal.text($t('View my exclusive offer'));btnOTPModal.removeClass('hidden');smallVerify.removeClass('warning').text($t('Enter the code we sent you by text message so we can validate your line'));});btnLogin.on('click',function(){let val=inputnputLine.val().toString().length;if(val>=10){codeOTP(inputnputLine.val());}\nif(val>=1&&val<10){btnLogin.text($t('Retry'));validationsText.addClass('hidden');validations.removeClass('hidden');validatonInput.addClass('warning');}\nreturn false;});btnLineModal.on('click',function(){smallVerify.removeClass('warning').text('');let val=inputLineModal.val().toString().length;if(val>=10){inputLineModal.removeClass('warning');lineModal.addClass('hidden');otpSectionModal.removeClass('hidden');codeOTP(inputLineModal.val());}\nif(val>=1&&val<10){btnLineModal.text($t('Retry'));inputLineModal.addClass('warning');smalltext.addClass('warning').text($t('The number must have 10 digits. Write it with area code, without 0 or 15.'));}\nreturn false;});function codeOTP(inputval,isresend=false){$.ajax({url:url.build(checklinenumber),data:{phone:inputval,isResend:isresend},type:'POST',dataType:'json',showLoader:true}).done(function(response){if(response.status===200){btnexclusive.text($t('View my exclusive offer'));btnOTPModal.text($t('View my exclusive offer'));$('.login-otp .otp').removeClass('hidden');$('.login-otp .login').addClass('hidden');}else{ajaxResponse(response);$('.login-otp .otp').addClass('hidden');$('.login-otp .login').removeClass('hidden');}}).fail(function(response){genericModal($t('At this time we cannot continue with your plan change'),'warning',$t('Try again later or call us at 0800-666-6196 and we will help you.'),'#','button-second-360 accept',$t('Accept'));genericModals.on('modalclosed',function(){window.location.href=homeUrl;});});}\nfunction verifyOTP(inputval){$.ajax({url:url.build(verifyotpurl),data:{validation:inputval},type:'POST',dataType:'json',showLoader:true}).done(function(response){if(response.status==200){window.location.href=url.build(tocheckouturl);}else{showErrorOTP();ajaxResponse(response);}}).fail(function(response){genericModal($t('At this time we cannot continue with your plan change'),'warning',$t('Try again later or call us at 0800-666-6196 and we will help you.'),'#','button-second-360 accept',$t('Accept'));genericModals.on('modalclosed',function(){window.location.href=homeUrl;});});}\nfunction showErrorOTP(){btnOTPModal.text($t('Retry'));otpCodeModal.val('');validationsTextOTP.addClass('hidden');validationsOTP.removeClass('hidden');validatonInputOTP.addClass('warning');}\nfunction ajaxResponse(resp){let error=resp.error.error;const helpUrl='https://ayuda.movistar.com.ar/?_gl=1*1lqnlpj*_ga*MTIzOTU3ODA4MC4xNjMwNjA4OTc4*_ga_2DD04EL9KJ*MTY2OTMxMDI5NC40NzYuMC4xNjY5MzEwMjk0LjYwLjAuMA..';const plansUrl='https://www.movistar.com.ar/productos-y-servicios/portabilidad?_gl=1*1jf8zu4*_ga*MTIzOTU3ODA4MC4xNjMwNjA4OTc4*_ga_2DD04EL9KJ*MTY2OTMxMDI5NC40NzYuMS4xNjY5MzEwMzg2LjYwLjAuMA..';const fluxCheck=~window.location.href.indexOf('migra');const whatsUrl=fluxCheck?'https://wa.me/message/EIM2UIHZBE5HI1':'https://wa.me/message/65ZW7VKSGAMNL1';if(error==='Mobile number format not valid'){showErrorFails(error);}else if(error==='Not Movistar number'){genericModal($t('The line you entered is not Movistar'),'warning',$t('If you want to switch to Movistar, you can see our plans and choose the best one for you.'),plansUrl,'button-second-360 view-plans',$t('View plans'));}else if(error==='Suspended Account'){genericModal($t('The line you entered is suspended'),'warning',$t('Check information about the status of your account in the Help section.'),helpUrl,'button-second-360 help',$t('Go to help'));}else if(error==='Max Requests for mobile number reached'){genericModal($t('At this time we cannot continue with your plan change'),'warning',$t('Try again later or call us at 0800-666-6196 and we will help you.'),'#','button-second-360 accept',$t('Accept'));genericModals.on('modalclosed',function(){window.location.href=homeUrl;});}else if(error==='You cannot access this resource'){genericModal($t('At this moment we have problems to send you the code'),'',$t('Try again in a few minutes or continue the process via WhatsApp'),whatsUrl,'button-second-360 whats',$t('Hire by WhatsApp'));genericModals.on('modalclosed',function(){window.location.href=homeUrl;});}else if(error==='Token'){genericModal($t('At this moment we have problems to send you the code'),'',$t('Try again in a few minutes or continue the process via WhatsApp'),whatsUrl,'button-second-360 whats',$t('Hire by WhatsApp'));genericModals.on('modalclosed',function(){window.location.href=homeUrl;});}else if(error==='Max Attempts reached'){showErrorFails(error);}else if(error==='Token or Attemp Fails'){showErrorFails(error);}else{genericModal($t('At this time we cannot continue with your plan change'),'warning',$t('Try again later or call us at 0800-666-6196 and we will help you.'),'#','button-second-360 accept',$t('Accept'));genericModals.on('modalclosed',function(){window.location.href=homeUrl;});}}\nfunction showErrorFails(error){let msg='';let btnTxt='';if(error==='Mobile number format not valid'){msg=$t('The number must have 10 digits. Write it with area code, without 0 or 15.');btnTxt=$t('Retry');loginModal.removeClass('hidden');lineModal.removeClass('hidden');otpSectionModal.addClass('hidden');btnexclusive.removeClass('hidden');}else if(error==='Max Attempts reached'){msg=$t('The code you entered is incorrect, attempts have been exhausted. Ask for a new one.');btnexclusive.addClass('hidden');newCode.removeClass('hidden');newCodeOTP.removeClass('hidden');linkResend.addClass('hidden');btnOTPModal.addClass('hidden');loginModal.addClass('hidden');lineModal.addClass('hidden');otpSectionModal.removeClass('hidden');}else if(error==='Token or Attemp Fails'){msg=$t('The code you entered is incorrect. Try again.');btnTxt=$t('Retry');loginModal.addClass('hidden');lineModal.addClass('hidden');otpSectionModal.removeClass('hidden');btnexclusive.removeClass('hidden');}\n$('#js-validations p').text(msg);$('#js-validations-otp p').text(msg);btnLogin.html(btnTxt);btnLineModal.html(btnTxt);btnexclusive.html(btnTxt);validationsText.addClass('hidden');validations.removeClass('hidden');validatonInput.addClass(\"warning\");validations.addClass(\"warning\");inputLineModal.addClass('warning');smallVerify.addClass('warning').text(msg);smalltext.addClass('warning').text(msg);}\nf();$(window).resize(function(){f();});function f(){let w=$(window).width();if(w<=766){$('.plans, .benefits').css('width',w);}\nif(w>767){$('.plans, .benefits').css('width','770');}}\n$('.slider-products').slick({dots:true,infinite:false,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1023,settings:{slidesToShow:1,slidesToScroll:1,}}]});$('.slider-benefits').slick({dots:false,infinite:false,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1023,settings:{slidesToShow:1,slidesToScroll:1,}}]});$(\"#FAQ\").accordion({\"collapsible\":true,\"openedState\":\"active\",});$('#FAQ div:eq(0) .title').trigger('click');exclusiveOffer.on('click',function(){otpModal.modal('openModal');});linkResend.on('click',function(){codeOTP(inputLineModal.val(),true);});inputLineAssisted.on('keypress',function(){if(event.which<48||event.which>57||this.value.length===10){return false;}});btnLineAssisted.on('click',function(){let val=inputLineAssisted.val().toString().length;if(val<10){inputLineAssisted.addClass('warning');assistendValidation.addClass('warning').text($t('The number must have 10 digits. Write it with area code, without 0 or 15.'));}\nelse{sectionLineAssisted.addClass('hidden');sectionConfirmationAssisted.removeClass('hidden');}\nreturn false;});btnConfirmationAssisted.on('click',function(){mdAssisted.modal('closeModal');});let optionsOTPModal={type:'popup',responsive:true,modalClass:'otp-modal',innerScroll:true};modal(optionsOTPModal,otpModal);function genericModal(title,titleClass,text,ctaLink,ctaClass,ctaText){let optionsGnlModal={type:'popup',responsive:true,modalClass:'generic-modal',innerScroll:true};modal(optionsGnlModal,genericModals);gmTitle.text(title).addClass(titleClass);gmText.text(text);let cta='';if(ctaLink&&ctaClass&&ctaText){cta=` ${ctaText} `;}\ngmButton.html(cta);genericModals.modal('openModal');const btnAccept=$(\".accept\");btnAccept.on('click',function(){genericModals.modal('closeModal');});}});});","Movistar_ChangeOffer/js/thankyou.min.js":"define(['jquery','Magento_Ui/js/modal/modal','mage/translate'],function($,modal,$t){\"use strict\";$(document).ready(function(){const userName=$(\".userName\");const gigas=$(\".gigas\");const socialMedia=$(\".plan-detail\");const orderNumber=$(\".orderNumber\");const genericModals=$('#warningModals');const gmTitle=$('#warningModals h3');const gmText=$('#warningModals p');const gmButton=$('#warningModals div');let optionsGnlModal={type:'popup',responsive:true,modalClass:'generic-modal',innerScroll:true};modal(optionsGnlModal,$('#warningModals'));function genericModal(title,titleClass,text,ctaLink,ctaClass,ctaText){gmTitle.text(title).addClass(titleClass);gmText.text(text);let cta='';if(ctaLink&&ctaClass&&ctaText){cta=` ${ctaText} `;}\ngmButton.html(cta);genericModals.modal('openModal');const btnAccept=$(\".accept\");btnAccept.on('click',function(){genericModals.modal('closeModal');});}\nfunction failFlow(){genericModal($t('At this time we cannot continue with your plan change'),'warning',$t('Try again later or call us at 0800-666-6196 and we will help you.'),'#','button-second-360 accept',$t('Accept'));genericModals.on('modalclosed',function(){let redirect='/cambiodeplan/';window.location.href=redirect;});}\nlet url='/cambiodeplan/ajax/createorder';$.ajax({url:url,data:'createOrder',method:'post',showLoader:true}).done(function(response){if(response.status==true){userName.text($t('\u00a1Congratulations, %1! You contrated the plan:').replace('%1',response.customer_name));gigas.text(response.product_name);orderNumber.text($t('Your transaction number is #%1').replace('%1',response.increment_id));socialMedia.html(response.social_media);let planName=response.product_name;let flowType=response.flow_type;dataLayer.push({'event':'virtualPageView','pageName':'/'+flowType+'_oferta_exclusiva/'+planName+'/gracias'});}else{failFlow();}}).fail(function(){failFlow();});});});","Movistar_ChangeOffer/js/checkout.min.js":"define(['jquery','Magento_Ui/js/modal/modal','mage/translate','slick','accordion',],function($,modal,$t){\"use strict\";return function(config){const allplans=config.allplans;$(document).ready(function(){const toggle=$(\"#toggle-checkout\");const planmeta=$(\".plan-meta\");toggle.click(function(){if(planmeta.css('display')=='none'){planmeta.slideDown();}else{planmeta.slideUp();}\ntoggle.toggleClass('rotate');});if($(window).width()<1024){$('.miniCollapse').mage('collapsible',{animate:500});}\nf();$(window).resize(function(){f();});function f(){let w=$(window).width();if(w<=766){$('.plans, .benefits').css('width',w);}\nif(w>767){$('.plans, .benefits').css('width','770');}}\n$('.slider-products').slick({dots:true,infinite:false,slidesToShow:2,slidesToScroll:1,responsive:[{breakpoint:1023,settings:{slidesToShow:1,slidesToScroll:1,}}]});$('.slider-benefits').slick({dots:false,infinite:false,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1023,settings:{slidesToShow:1,slidesToScroll:1,}}]});const genericModals=$('#warningModals');const gmTitle=$('#warningModals h3');const gmText=$('#warningModals p');const gmSpan=$('#warningModals p span');const gmButton=$('#warningModals div');let optionsGnlModal={type:'popup',responsive:true,modalClass:'generic-modal',innerScroll:true};modal(optionsGnlModal,$('#warningModals'));function genericModal(title,titleClass,text,span,ctaLink,ctaClass,ctaText){gmText.css(\"width\",\"87%\")\ngmSpan.css({\"fontWeight\":\"700\",\"color\":\"#019DF4\",\"cursor\":\"pointer\"});gmSpan.on('click',function(){let movistarApp=\"https://mov.is/ymHU\";window.location.href=movistarApp;});let cta='';if(ctaLink&&ctaClass&&ctaText){cta=` ${ctaText} `;}\ngmButton.html(cta);genericModals.modal('openModal');}\nif(allplans==''){let url='/'+$t('changeofplan');genericModal('','','','',url,'button-second-360',$t('Accept'));genericModals.on('modalclosed',function(){window.location.href=url;});}});}});","Movistar_ChangeOffer/js/inactiveModal.min.js":"define(['jquery','Magento_Ui/js/modal/modal'],function($,modal){\"use strict\";$(document).ready(function(){let recordInactivity=function(){let time;window.onload=resetTime;document.onmousemove=resetTime;document.onkeypress=resetTime;document.onload=resetTime;document.onmousemove=resetTime;document.onmousedown=resetTime;document.ontouchstart=resetTime;document.onclick=resetTime;document.onscroll=resetTime;document.onkeypress=resetTime;function tiempoExcedido(){let urlArray=window.location.href.split('/');const link=$('#inactiveModal a');let href='/';if(urlArray.includes('migra')){href='https://wa.me/message/CYOBR7PVK6A7J1';}else{href='https://wa.me/message/EWFTWSFDSEBUD1\\n';}\nlink.attr('href',href);$('#inactiveModal').modal('openModal');}\nfunction resetTime(){clearTimeout(time);time=setTimeout(tiempoExcedido,60000)}};recordInactivity();let optionsInactiveModal={type:'popup',responsive:true,modalClass:'inactive-modal',innerScroll:true,keyEventHandlers:null};modal(optionsInactiveModal,$('#inactiveModal'));});});","Movistar_ChangeOffer/js/form_migra.min.js":"define(['mage/translate','jquery','Magento_Ui/js/modal/modal'],function($t,$,modal){\"use strict\";$(document).ready(function(){var today=new Date();var day=String(today.getDate()).padStart(2,'0');var month=String(today.getMonth()+1).padStart(2,'0');var year=today.getFullYear();var regexEmail=/^([a-zA-Z0-9_\\.\\-\\+])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$/;const genderradioserror=$('#error_format_gender');const inputemail=$(\"#email\");const inputemailerror=$(\"#error_format_email\");const inputdate=$(\"#date\");const inputdateerror=$(\"#error_format_date\");const dni=$(\"#dni\");const dnierror=$(\"#error_format_dni\");const step1=$(\".step1\");const step2=$(\".step2\");const nextstep=$(\".next-step\");const firststep=$(\".first-step\");const steptextone=$(\".step-text-one\");const steptexttwo=$(\".step-text-two\");const end=$(\"#end\");const nextQ=$(\"#nextQ\");const back=$(\"#back\");const back1=$(\"#back1\");const next1=$(\"#next-1\");const questions=$(\"#questions\");const toggle=$(\"#toggle\");const planmeta=$(\".plan-meta\");const gigasCurrentPlan=$(\".gigas\");const price=$(\".price\");const bonifText=$(\".bonifText\");const bonifDisc=$(\".bonifDisc\");const gbsGift=$(\".gbsGift\");const gbsGiftStatus=$(\".gbsGiftStatus\");const productTotal=$(\".productTotal\");const cellphone=$(\".cellphone\");back1.on('click',function(e){e.preventDefault();window.history.back();});let challengeId='';let questionsLength=0;let numberQuestion=0;let url='/cambiodeplan/ajax/productdata';$.ajax({url:url,data:'getPrincipalData',method:'post',}).done(function(response){if(response.phone!==''){gigasCurrentPlan.text(response.current_plan);price.text(response.price);bonifText.html(response.bonification_text);bonifDisc.text(response.bonification_discount);if(response.bonification_discount==='-$0'||response.bonification_discount===''){$(\"#bonifications\").remove();}\ngbsGift.html(response.social_media);gbsGiftStatus.html(response.gbs_gift_status);productTotal.text(response.total);cellphone.text(response.phone);}else{genericModal($t('Right now we have problems. Please try again later.'),'','','','','');}});end.hide();inputdate.attr('max',(year-18)+'-'+month+'-'+day);toggle.click(function(){if(planmeta.css('display')=='none'){planmeta.slideDown();}else{planmeta.slideUp();}\ntoggle.toggleClass('rotate');});dni.on('keypress',function(){if(event.which<48||event.which>57||this.value.length===8){return false;}});$(\":input\").on('focus',function(){$(this).closest(\".input-group\").addClass(\"focused\");});$(\":input\").on('blur',function(){$(this).closest(\".input-group\").removeClass(\"focused\");if($(this).val()){$(this).closest(\".input-group\").addClass(\"filled\");}else{$(this).closest(\".input-group\").removeClass(\"filled\");}});next1.on('click',function(e){let haveErrors=0;if(!regexEmail.test(inputemail.val())){haveErrors=true;inputemailerror.show();$(\"#emaillabel\").addClass(\"error\");}else{inputemailerror.hide();$(\"#emaillabel\").removeClass(\"error\");}\nif(!(dni.val().length>=7&&dni.val().length<=8)){haveErrors=true;dnierror.show();$(\"#dnilabel\").addClass(\"error\");}else{dnierror.hide();$(\"#dnilabel\").removeClass(\"error\");}\nif(!(inputdate.val()<=((year-18)+'-'+month+'-'+day)&&Date.parse(inputdate.val()))){haveErrors=true;inputdateerror.show();$(\"#datelabel\").addClass(\"error\");}else{inputdateerror.hide();$(\"#datelabel\").removeClass(\"error\");}\nif(!($(\"#radioM\").is(\":checked\")||$(\"#radioF\").is(\":checked\")||$(\"#radioB\").is(\":checked\"))){haveErrors=true;genderradioserror.show();}else{genderradioserror.hide();}\nif(!haveErrors){sendStep1();}});nextQ.on(\"click\",function(){back.removeClass('leave');if(numberQuestion<(questionsLength-1)){numberQuestion++;}\n$(\"#questions div\").hide();$('#questions div:eq('+numberQuestion+')').show();if(numberQuestion>0){back.show();nextQ.attr(\"disabled\",true);end.attr(\"disabled\",true);}\nif(numberQuestion===(questionsLength-1)){$(this).hide();end.show();}\nreturn false;});back.on(\"click\",function(){if($(this).hasClass('leave')){genericModal($t('Do you want to abandon your plan change?'),'warning',$t('You have limited attempts to answer, leaving this screen would lose one.'),'#','button-second-360 accept',$t('Keep answering'));const abandon=$('a.abandon');abandon.removeClass('hidden');abandon.on('click',function(e){e.preventDefault();genericModals.modal('closeModal');window.location.href='/cambiodeplan/migra/form';});genericModals.on('modalclosed',function(){abandon.addClass('hidden');});}\nif(numberQuestion>0){numberQuestion--;}\nif(numberQuestion<1){back.addClass('leave');}\nif(numberQuestion===(questionsLength-2)){back.removeClass('leave');nextQ.show();end.hide();}\n$(\"#questions div\").hide();$('#questions div:eq('+numberQuestion+')').show();return false;});end.on(\"click\",function(){let questionsArray=questions.serializeArray();let newQuestionArray=[];$.each(questionsArray,function(k,v){newQuestionArray[k]={'question_id':v.name,'option_id':v.value}})\nsendAnswers(newQuestionArray,challengeId);});const genericModals=$('#warningModals');const gmTitle=$('#warningModals h3');const gmText=$('#warningModals p');const gmButton=$('#warningModals div');let optionsGnlModal={type:'popup',responsive:true,modalClass:'generic-modal',innerScroll:true};modal(optionsGnlModal,$('#warningModals'));function genericModal(title,titleClass,text,ctaLink,ctaClass,ctaText,closeRedirect){gmTitle.text(title).addClass(titleClass);gmText.text(text);let cta='';if(ctaLink&&ctaClass&&ctaText){cta=` ${ctaText} `;}\nif(closeRedirect){genericModals.on('modalclosed',function(){window.location.href=closeRedirect;});}\ngmButton.html(cta);genericModals.modal('openModal');const btnAccept=$(\".accept\");btnAccept.on('click',function(){genericModals.modal('closeModal');});}\nfunction sendStep1(){const dniVal=dni.val();const birthdate=$(\"#date\").val();const email=$(\"#email\").val();const gender=$(\"input[name=gender]:checked\").val();back.addClass('leave');$.ajax({url:'/cambiodeplan/ajax/formmigra',data:{\"nationalId\":dniVal,\"birthdate\":birthdate,\"email\":email,\"gender\":gender},type:'POST',dataType:'json',showLoader:true}).done(function(response){if(response.challenge_id!==''){nextQ.prop('disabled',true);end.prop('disabled',true);generate(response.nosis_questions);challengeId=response.challenge_id;step1.hide();firststep.addClass(\"pass\");nextstep.addClass(\"active\");step2.show();}\nelse if(response.challenge_id==''&&typeof(response.text)!='undefined'&&response.text!=null&&response.text.includes($t('Blocked'))){genericModal($t('You have no more attempts to answer'),'warning no-attempts',$t('Do the procedure by WhatsApp or try again in 24 hours.'),'https://wa.me/message/MSICDTFTGMMUH1','button-second-360 whats',$t('Hire by WhatsApp'));let url='/'+$t('changeofplan');genericModals.on('modalclosed',function(){window.location.href=url;});}else{genericModal($t('To switch to a plan with an invoice, you must be the owner of the line'),'warning',$t('Check your data and enter it again.'),'/cambiodeplan/migra/form','button-second-360 accept',$t('Accept'),'/cambiodeplan/migra/form');}}).fail(function(response){genericModal($t('At this time we cannot continue with your plan change'),'warning',$t('Try again later or call us at 0800-666-6196 and we will help you.'),'#','button-second-360 accept',$t('Accept'));});}\nfunction sendAnswers(answares,challengeId){let data=JSON.stringify(answares);let url='/cambiodeplan/ajax/nosisqa';$.ajax({url:url,data:{answares,challengeId},type:'POST',dataType:'json',showLoader:true}).done(function(response){if(response.status===true){window.location.href='/cambiodeplan/thankyou/index';}\nelse if(response.status==='NOOK'){genericModal($t('Some of the answers you entered are incorrect'),'warning',$t('You have limited attempts to answer.'),'/cambiodeplan/migra/form','button-second-360 retry',$t('Retry'));genericModals.on('modalclosed',function(){window.location.href='/cambiodeplan/migra/form';});}\nelse{genericModal($t('Right now we have problems. Please try again later.'),'warning','','/cambiodeplan','button-second-360 retry',$t('Retry'));}}).fail(function(response){genericModal($t('Right now we have problems. Please try again later.'),'warning','','/cambiodeplan','button-second-360 retry',$t('Retry'));});}\nfunction generate(questions){let HTML='';questionsLength=questions.length;$.each(questions,function(key,value){let question_id=value.question_id;let question_text=value.text;let answers_options=value.answers_options;let qnumber=key+1;HTML+='