local na rede Internet:Sobre a Amazôniacontente
//Thisisyourdomain,asin,howyouwhoarecallingtheAPIwishtobeidentified. varMY_DOMAIN=document.domain; varREQUIRE_USER_EXPRESSED_PERMISSION=true; var_STATE={}; /** *DifferentpesaddtheConsentManerindifferentlocations,soallcallersoftheAPImustwaittill *theAPIisloaded.TheAPIisloadedintwostes: *1)Thefirststeiswherethe"PrivacyManerAPI"objectexistsonthepeandwheredefaultand *pe/domainspecificsettingscanbeobtained.Ifyourrequirementsdemanduserconsent,youmustwait *forthesecondsteload,butitisalwaysrecommendedtowaitforthesecondstenomatterwhat. *The"loading"parameterwillbeaddedtoallAPIresponseswhentheAPIisinthisstate. *2)Thesecondsteloadstheuserpreferencesandthedomainspecificinformation.Ifyoumadea *postMesseAPIcallduringthefirstste,thentheAPIwillautomaticallysendyouanother,updated, *responseiftheresulthaschanged. */ functionrunOnce(){ //CHECK:forAPIexistsonthepe if(!_STATE.hasRunOnce&&window.PrivacyManerAPI){ console.log("doingrunonce"); //RegisterwiththeAPIforautomaticupdatesofuserpreferences(forthesettingsyoucareabout) //--OR--iftheAPIisloading,thenthiswillsendanupdatewhentheAPIisdoneandhasloadedtheuserpreferences. window.addEventListener("messe",function(e){ try{ varjson=JSON.parse(e.data); json.PrivacyManerAPI&&handleAPIResponse(json.PrivacyManerAPI); }catch(e){ e.name!='SyntaxError'&&console.log(e); } },false); varapiObject={PrivacyManerAPI:{self:MY_DOMAIN,action:"getConsent",timestamp:newDate().getTime(),type:"functional"}}; window.top.postMesse(JSON.stringify(apiObject),"*"); apiObject={PrivacyManerAPI:{self:MY_DOMAIN,action:"getConsent",timestamp:newDate().getTime(),type:"advertising"}}; window.top.postMesse(JSON.stringify(apiObject),"*"); _STATE.hasRunOnce=true; _STATE.i&&clearInterval(_STATE.i); } } /***Thisfunctionreturnsvalueofnotice_behiorcookietodeterminelocationandbehiormanerbasedondomain. *Whennonotice_behiorcookieexists,thisreturnsablankstring. */ functiongetBehior(){ varresult=""; varrx=newRegExp("\\s*notice_behior\\s*=\\s*([^;]*)").exec(document.cookie); if(rx&&rx.length>1){ result=rx[1]; } returnresult; } /** *Thisfunctioniscalledwheneverauserpreferenceisinitiallyset,isretrievedforthefirsttimeonthispe,orisupdated. *Thisisthegatewayfunctionwhichshouldbecustomizedbyeachclient(you)todeterminewhenandhowtohandletheAPIresponse. * *ThesecondhalfofthefunctiondeterminessettingsfromtheCMAPI,anddecideswhichelementsonthepeshouldbe"activated"baseduponthosesettings. *Elementscanonlybeactivatedonce.Elementscannotbedeactivated,onceactivated. */ functionhandleAPIResponse(response){ //CHECK:makesurethisresponseistoYOU.YouwillactuallygetthemessestoallAPIcallersonthispe,notjusttoyou. if(!response.source||response.self!=MY_DOMAIN)return; console.log("userdecision",response); //Requiredtrackers/cookiesarealwaysallowed,noneedtoaskpermission. if(!_STATE.hasLoadedRequired){ activateElement(document.querySelectorAll(".trustecm[trackertype=required]")); _STATE.hasLoadedRequired=true; } //CheckifbehiormanerisEU varisEU=/.*(,|)eu/i.test(getBehior()); //Casewherewedon'twanttodoanythingtilltheuserhasmadeapreference. if(isEU&&REQUIRE_USER_EXPRESSED_PERMISSION&&response.source!="asserted")return; //Step1)GetConsentManersettings(userprefs) //TheseAPIcallsareDIFFERENTthantheoriginalAPIcall("response"parameter)sotheymustbecalledseparately. //Step2)Applythesettingsaftercheckingifapproved varsetting=null; if(!_STATE.hasLoadedAdvertising){ setting=PrivacyManerAPI.callApi("getConsent",MY_DOMAIN,null,null,"advertising"); if(setting.consent=="approved"){ activateElement(document.querySelectorAll(".trustecm[trackertype=advertising]")); _STATE.hasLoadedAdvertisingSobre a Amazônia=true; }console.log(setting); } if(!_STATE.hasLoadedFunctional){ setting=PrivacyManerAPI.callApi("getConsent",MY_DOMAIN,null,null,"functional"); if(setting.consent=="approved"){ activateElement(document.querySelectorAll(".trustecm[trackertype=functional]")); _STATE.hasLoadedFunctional=true; }console.log(setting); }//Noadditionalchecking,thisalwaysfires,butonlyafterauserhasconsented if(!_STATE.hasLoadedAnyConsent){ activateElement(document.querySelectorAll(".trustecm[trackertype=any]")); _STATE.hasLoadedAnyConsent=true; } //checkofvendordomainandfiresifthatdomainisapproved,whichisbasedonhowthatdomainwascategorizedonthebackend varvendors=document.querySelectorAll(".trustecm[trackertype=vendor]"); for(vari=0;i0;){ item=list[i]; item.class="trustecm_done"; switch(item.nodeName.toLowerCase()){ case"script": varz=item.getAttribute("thesrc"); if(z){ vary=document.createElement("script"); y.src=z; y.async=item.async; item.parentNode.insertBefore(y,item); }elseeval(item.text||item.textContent||item.innerText); } } } _STATE.i=setInterval(runOnce,10); @mediaonlyscreenand(min-width:768px){.TourRegistrationForm[data-step="1"].TourRegistrationFieldsetOne{min-height:480px!important;}}@mediaonlyscreenand(max-width:568px){.TourRegistrationForm-promos-promo{margin-top:10px;}}@mediaonlyscreenand(min-width:568px){.TourRegistrationForm-promos-promo{margin-top:30px;}}@mediaonlyscreenand(min-width:1051pxSobre a Amazônia){.TourRegistrationFieldsetThree-items-item-row.CheckboxInput-label{width:calc(100%+30px);}}@mediaonlyscreenand(min-width:768px){.TourRegistrationFieldsetThree-items{width:672px;max-width:672px;}}@mediaonlyscreenand(max-width:568px){.TourRegistrationCalendarComingSoon.left{left:25%;width:100%;margin-left:-25%;}}@mediaonlyscreenand(min-width:568px){.TourRegistrationCalendarComingSoon.left{left:0;width:auto;margin-left:0;}}@mediaonlyscreenand(min-width:1200px){.MapPe-locationPromos{height:calc(100%-125px);}}.MapPe-mainContent[data-map-hide-legend="true"].MapPe-map-legend-wrapper{display:none;}AboutAmazonItalia(function(){'usestrict';(()=>{'usestrict';if(!window.customElements)return;consta=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=newMap,e=newMap;letf=!1,g=!1;window.HTMLElement=function(){if(!f){consta=d.get(this.constructor),b=c.call(window.customElements,a);g=!0;conste=newb;returne}f=!1;},window.HTMLElement.prototype=a.prototype;Object.defineProperty(window,'customElements',{value:window.customElements,configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'define',{value:(c,h)=>{consti=h.prototype,j=classextendsa{constructor(){super(),Object.setPrototypeOf(this,i),g||(f=!0,h.call(this)),g=!1;}},k=j.prototype;j.observedAttributes=h.observedAttributes,k.connectedCallback=i.connectedCallback,k.disconnectedCallback=i.disconnectedCallback,k.attributeChangedCallback=i.attributeChangedCallback,k.adoptedCallback=i.adoptedCallback,d.set(h,c),e.set(c,h),b.call(window.customElements,c,j);},configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'get',{value:(a)=>e.get(a),configurable:!0,writable:!0});})();/**@license(c)2017ThePolymerProjectAuthors.Allrightsreserved.ThiscodemayonlybeusedundertheBSDstylelicensefoundathttppolymer.github.io/LICENSE.txtThecompletesetofauthorsmaybefoundathttppolymer.github.io/AUTHORS.txtThecompletesetofcontributorsmaybefoundathttppolymer.github.io/CONTRIBUTORS.txtCodedistributedbyGoogleaspartofthepolymerprojectisalsosubjecttoanadditionalIPrightsgrantfoundathttppolymer.github.io/PATENTS.txt*/}());/**Forthefastestloadtimesdevelopers.google.com/speed/docs/insights/BlockingJSandtopreventanyFOUC,aswellaspreventanyraceconditionsforbrowsersthatalsorelyontheCSSvariablespolyfill,thisisinlined.**/if(!window.customElements){(function(){'usestrict';varh=newfunction(){};varaa=newSet("annotation-xmlcolor-profilefont-facefont-face-srcfont-face-urifont-face-formatfont-face-namemissing-glyph".split(""));functionm(b){vara=aa.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}functionn(b){vara=b.isConnected;if(void0!==a)returna;for(;b&&!(b.__CE_isImportDocument||binstanceofDocument);)b=b.parentNode||(window.ShadowRoot&&binstanceofShadowRoot?b.host:void0);return!(!b||!(b.__CE_isImportDocument||binstanceofDocument))}functionp(b,a){for(;a&&a!==b&&!a.nextSibling;)a=a.parentNode;returna&&a!==b?a.nextSibling:null}functiont(b,a,c){c=c?c:newSet;for(vard=b;d;){if(d.nodeType===Node.ELEMENT_NODE){vare=d;a(e);varf=e.localName;if("link"===f&&"import"===e.getAttribute("rSobre a Amazôniael")){d=e.import;if(dinstanceofNode&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)t(d,a,c);d=p(b,e);continue}elseif("template"===f){d=p(b,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)t(e,a,c)}d=d.firstChild?d.firstChild:p(b,d)}}functionu(b,a,c){b[a]=c};functionv(){this.a=newMap;this.s=newMap;this.f=[];this.b=!1}functionba(b,a,c){b.a.set(a,c);b.s.set(c.constructor,c)}functionw(b,a){b.b=!0;b.f.push(a)}functionx(b,a){b.b&&t(a,function(a){returny(b,a)})}functiony(b,a){if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(varc=0;c