//tealium universal tag - utag.loader ut4.0.202502271340, Copyright 2025 Tealium.com Inc. All Rights Reserved. var utag_condload=false;try{(function(){function ul(src,a,b){a=document;b=a.createElement('script');b.language='javascript';b.type='text/javascript';b.src=src;a.getElementsByTagName('head')[0].appendChild(b)};var match=(""+document.cookie).match("(^|;\\s)utag_env_adl_popular=(\/\/tags\.tiqcdn\.com\/utag\/adl\/[a-z0-9\\.-]{1,30}\\/[^\\s;]*)");if(match){if(match[2].indexOf("/prod/")===-1){var s=match[2];while(s.indexOf("%")!=-1){s=decodeURIComponent(s);}s=s.replace(/\.\./g,"");ul(s);utag_condload=true;__tealium_default_path='//tags.tiqcdn.com/utag/adl/popular/prod/';}}})();}catch(e){};try{try{window.Flickerlessly=window.Flickerlessly||{};!function(A){"use strict";var init=function(id,sel,callback,persist){var animationName='atNodeInserted'+id;var css=[],prefixes=['','-moz-','-webkit-','-ms-','-o-'];prefixes.forEach(function(prefix,index){css.push('@'+prefix+'keyframes '+animationName+' {from {opacity:0.99} to {opacity:1}}');});css.push(sel+'{');prefixes.forEach(function(prefix,index){css.push(prefix+'animation-duration:0.001s;'+prefix+'animation-name:'+animationName+';');});css.push('}');var head=document.getElementsByTagName("head")[0];if(head){var style=document.createElement("style");style.setAttribute("type","text/css");if(style.styleSheet) style.styleSheet.cssText=css.join('\n');else style.appendChild(document.createTextNode(css.join('\n')));head.insertBefore(style,head.firstChild)};var _removeListener=function(){['animationstart','MSAnimationStart','webkitAnimationStart'].forEach(function(item,index){document.removeEventListener(item,_insertListener,false);});if(style) style.parentNode.removeChild(style);};var _insertListener=function(event){if(event.animationName===animationName&&typeof event.target==='object'){var isExecute=((persist===true)||(persist===false&&event.target.getAttribute('data-flk-success')===null))?true:false;log("('"+sel+"') ready! Execute: "+isExecute,event.target);if(typeof callback==='function'&&isExecute){event.target.setAttribute('data-flk-success',animationName);if(persist!==true) _removeListener();callback(event.target,log);}else{log("Won't Callback",isExecute,callback);}}};['animationstart','MSAnimationStart','webkitAnimationStart'].forEach(function(item,index){document.addEventListener(item,_insertListener,false);});},log=((window.location.href.indexOf('Debug=1')!==-1)?function(){Array.prototype.unshift.call(arguments,'FLK:');console.info.apply(this,arguments);}:function(){}),rand=Math.floor((Math.random()*1000)+1);A.onReady=function(){for(var i=0;i{clearTimeout(timeOut);timeOut=setTimeout(()=>{document.cookie=`viewport_size=${viewportSize};Secure;SameSite=None;`;},500);});resizeObserver.observe(document.querySelector('html'));}catch(e){console.log(e)}}catch(e){console.log(e);}} if(!utag_condload){try{try{window.ADLStorage=class{constructor(key,value,expiryDays=30){if(typeof key!=='string'){throw new Error('ADL Storage: Key must be a string.');} this.key=key;this.expiryDays=expiryDays;this.expires=new Date();this.expires.setTime(this.expires.getTime()+(this.expiryDays*24*60*60*1000));this.data={data:value,expiry:this.expires.getTime()};} cookie(){const that=this;return{get:function(){const keyValue=document.cookie.match('(^|;)\\s*'+that.key+'\\s*=\\s*([^;]+)');return keyValue?JSON.parse(decodeURIComponent(keyValue.pop())):null;},set:function(){const cookieString=that.key+'='+encodeURIComponent(JSON.stringify(that.data))+';path=/;expires='+that.expires.toUTCString();document.cookie=cookieString;}};} local(){const that=this;return{get:function(){const itemStr=localStorage.getItem(that.key);if(!itemStr){return null;} const item=JSON.parse(itemStr);const now=new Date();if(now.getTime()>item.expiry){localStorage.removeItem(that.key);return null;} return item;},set:function(){localStorage.setItem(that.key,JSON.stringify(that.data));}};}};}catch(e){console.log(e)}}catch(e){console.log(e);}} if(!utag_condload){try{try{window.ADLSurvey=class{options={id:String(Date.now().toString(32)+Math.random().toString(16)).replace(/\./g,''),name:'adl-survey-v3',expiryDays:360,storage:'local',questions:[{text:'Question 1',type:'ratingScale',lowScoreLabel:'Very poor',highScoreLabel:'Excellent',scale:5,required:true},{text:'Question 2',type:'text',required:false}],zIndex:9999,theme:'popup',popupPosition:'right',color:{background:"#ffffff",text:"#000",button:"#e0e2e8",buttonActive:"#626a84",buttonActiveText:"#fff"},thanks:'¡Gracias por tu tiempo!',title:'Tu opinión es muy importante',feedback:'Sugerencias'};answers=[];css={_reset:" \ ",_colors:function(s){return" \ ";},_general:" \ ",modal:function(s){return" \ ";},popup:function(s){return" \ ";},button:function(s){let reversePosition=s.popupPosition=="right"?'left':'right';let direction=s.popupPosition=="right"?'-':'';return" \ ";}};render(){let that=this;const components={ratingScale:function(question,index){let inputs=``;for(let i=1;i<=question.scale;i++){inputs+=' \ \ ';} return' \
\
\ '+question.lowScoreLabel+' \ '+inputs+' \ '+question.highScoreLabel+' \
\
\ '+question.lowScoreLabel+' \ '+question.highScoreLabel+' \
\
\ ';},text:function(question,index){return'\
\ \
120
\
\ ';},reaction:function(question,index){return' \
\
\ '+question.lowScoreLabel+' \ \ \ \ \ \ \ \ \ \ \ '+question.highScoreLabel+' \
\
\ '+question.lowScoreLabel+' \ '+question.highScoreLabel+' \
\
\ ';},radioButtons:function(question,index){let inputs=``;for(let i=0;i';inputs+=' \ ';if(question.options[i].comment){inputs+='';} inputs+='';} return' \
\ '+inputs+' \
\ ';},checkboxButtons:function(question,index){let inputs=``;for(let i=0;i';inputs+=' \ ';if(question.options[i].comment){inputs+='';} inputs+='';} return' \
\ '+inputs+' \ \
\ ';},statement:function(question,index){return'\
\

\ '+question.description+' \

\ \
\ ';},};const renderComponent=(question,index)=>{return'\ \ ';} return'\
\
\
\
\
\ \
\
\
\ \
\
'+this.options.title+'
\ \
\
\ '+this.options.questions.map(renderComponent).join('')+' \
\ \
\
\
\
\ ';} constructor(opt){if(typeof opt==='object'){Object.assign(this.options,opt);} this.storage=new ADLStorage(this.options.name)[this.options.storage]().get()||{};} next(e,that){const currentIndex=Number(e.target.value);console.log("js-adlsurvey-form-"+this.options.name);console.log(this.options.name+"-q"+currentIndex);that.answers.push(document.forms["js-adlsurvey-form-"+this.options.name][this.options.name+"-q"+currentIndex].value);new ADLStorage(that.options.name,{"id":that.options.id,"answers":that.answers},that.options.expiryDays)[that.options.storage]().set();const $adlSurvey=document.getElementById(this.options.name);let elements=$adlSurvey.getElementsByClassName("js-adlsurvey-question");for(var i=0;i0){data.close=true;that.utagEventHandler();} new ADLStorage(that.options.name,data,that.options.expiryDays)[that.options.storage]().set();} utagEventHandler(){const event={"tealium_event":"send_survey","event_name":this.options.name,"id_sus":this.options.id,"data":[]};const questionAnswer=[];for(var i=0;i{const value=item[key];if(key==="text"){questionAnswer.push(JSON.stringify({key:value,value:this.answers[i]}));questionAnswer.push(JSON.stringify({key:`question_${i+1}`,value:item[key]}));questionAnswer.push(JSON.stringify({key:`answer_${i+1}`,value:this.answers[i]}));}else{questionAnswer.push(JSON.stringify({key:`${key}_${i+1}`,value:typeof value==="string"?value:JSON.stringify(value)}));}});} event.data=questionAnswer;if(typeof utag!='undefined'&&utag){utag.link(event);}else{console.log(this.options.name+": utag is undefined");console.log(event);}} show(){if(this.storage.data&&this.storage.data.close){return false;} const $checkAdlSurvey=document.getElementById(this.options.name);if(($checkAdlSurvey&&!this.storage.data)||($checkAdlSurvey&&this.storage.data&&this.storage.data.answers&&this.storage.data.answers.length===0)){$checkAdlSurvey.style.display="flex";return false;} if($checkAdlSurvey){$checkAdlSurvey.remove();}else{if(!document.getElementById('style-adlsurvey-reset')){document.head.insertAdjacentHTML('beforeend',this.css._reset);} if(!document.getElementById('style-adlsurvey-general')){document.head.insertAdjacentHTML('beforeend',this.css._general);} if(!document.getElementById('style-adlsurvey-colors-'+this.options.name)){document.head.insertAdjacentHTML('beforeend',this.css._colors(this.options));} document.head.insertAdjacentHTML('beforeend',this.css[this.options.theme](this.options));} document.body.insertAdjacentHTML('beforeend',this.render(this.options));const $adlSurvey=document.getElementById(this.options.name);this.answers=[];if(this.storage.data&&this.storage.data.answers&&this.storage.data.answers.length>0){this.answers=this.storage.data.answers;this.options.id=this.storage.data.id;for(let i=0;i{event.preventDefault();$adlSurvey.querySelector(".js-adlsurvey-btn-next").disabled=false;});$adlSurvey.querySelector(".js-adlsurvey-btn-next").addEventListener('click',evt=>this.next(evt,this));const closeButtons=$adlSurvey.querySelectorAll(".js-adlsurvey-close");closeButtons.forEach((closeButton)=>{closeButton.addEventListener("click",evt=>this.close(evt,this));});const textareaElements=$adlSurvey.querySelectorAll(".js-adlsurvey-input-textarea");textareaElements.forEach((textareaElement)=>{const maxlength=textareaElement.getAttribute("maxlength");textareaElement.addEventListener("input",()=>{textareaElement.parentElement.querySelector(".js-adlsurvey-input-textarea-character-counter").textContent=(maxlength-textareaElement.value.length);});});$adlSurvey.querySelector(".js-adlsurvey-popup-toggle").addEventListener('click',()=>{$adlSurvey.querySelector(".js-adlsurvey-position").classList.toggle("adlsurvey-popup-minimized");});return $adlSurvey;}};}catch(e){console.log(e)}}catch(e){console.log(e);}} if(typeof utag=="undefined"&&!utag_condload){var utag={id:"adl.popular",o:{},sender:{},send:{},rpt:{ts:{a:new Date()}},dbi:[],db_log:[],loader:{q:[],lc:0,f:{},p:0,ol:0,wq:[],lq:[],bq:{},bk:{},rf:0,ri:0,rp:0,rq:[],ready_q:[],sendq:{"pending":0},run_ready_q:function(){for(var i=0;i0){g.push(b);d++;}else{this.f[b.id]=1;}} for(a=0;a0?'&':'?')+'utv='+(a.v?utag.cfg.template+a.v:utag.cfg.v);utag.rpt['l_'+a.id]=a.src;b=document;this.f[a.id]=0;if(a.load==2){utag.DB("Attach sync: "+a.src);a.uid=a.id;b.write('