PageSourceSearch

https://roteirofacil.bonitour.com.br/api/widget/xpert-search-widget/%230D0C0C

js bonitour.com.br collected 2026-09-29 12:12:58 UTC 31,736 bytes, 1 lines download raw bytes

1 var XPERT_WIDGET_CONSTS = {"CACHE":3600,"LANG":"pt-BR","REGEX":{"rgb":/^rgba?\(\s*((\d+)\s*,\s*){2}(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?\)$/i,"hex":/^#[a-fA-F0-9]{6}$|^#[a-fA-F0-9]{8}$/,"shortHex":/^#[a-fA-F0-9]{3,4}$/}}; function buildWidget() { (function m(a,b,c,d,e,f,g,h){let i=window.matchMedia("(max-width: 1024px)"),j={colorToRgbaArray:function(a){return a.match(g.REGEX.rgb)?a.match(/\d*\.?\d+/g).map(function(a,b){return 3===b?parseFloat(a||1):parseInt(a)}):a.match(g.REGEX.hex)?a.match(/[a-fA-F0-9]{2}/g).map(function(a,b){return 3===b?parseInt(a||"ff",16)/255:parseInt(a,16)}):a.match(g.REGEX.shortHex)?a.match(/[0-9a-fA-F]/g).map(function(a,b){return 3===b?parseInt(""+a+a||"ff",16)/255:parseInt(""+a+a,16)}):[100,100,100,1]},transparentize:function(a,b){let c=j.colorToRgbaArray(a),d=c[0],e=c[1],f=c[2],g=c[3];return"rgba("+d+","+e+","+f+","+(g||1)*b+")"},applyStyles:function(a,b){a instanceof HTMLElement&&"object"==typeof b&&Object.keys(b).forEach(function(c){a.style[c]=b[c]})},applyCssWithSelector:function(a,b,c){if(a instanceof HTMLElement&&"string"==typeof c){let e=`_${d}_${Math.round(1e15*Math.random())}`;a.classList.add(e);let f=document.createElement("style");try{document.head.appendChild(f).sheet.insertRule("."+e+b+"{"+c+"}",0)}catch(a){}}},applyCssVars:function(a,b){a instanceof HTMLElement&&"object"==typeof k&&Object.keys(b).forEach(function(c){a.style.setProperty(c,b[c])})},applyMediaQuery:function(a,b,c){function d(d){d.matches?j.applyStyles(a,c):j.applyStyles(a,b)}i.addEventListener?i.addEventListener("change",d):i.addListener(d),d(i)},import:{widgetFonts:function(){if("Lato, Sans-Serif"!==f)return;let a=document.createElement("link");a.rel="preconnect",a.href="https://fonts.gstatic.com",document.getElementsByTagName("head")[0].appendChild(a);let b=document.createElement("link");b.rel="stylesheet",b.href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap",document.getElementsByTagName("head")[0].appendChild(b)},litepicker:function(a){function b(){let b=document.createElement("script");b.type="text/javascript",b.src="https://cdn.jsdelivr.net/npm/[email protected]/dist/litepicker.js",b.onload=function(){let b=document.createElement("script");b.type="text/javascript",b.src="https://cdn.jsdelivr.net/npm/[email protected]/dist/plugins/mobilefriendly.js",b.onload=a,document.getElementsByTagName("head")[0].appendChild(b)},document.getElementsByTagName("head")[0].appendChild(b)}if(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1){let a=document.createElement("script");a.type="text/javascript",a.src="https://cdn.jsdelivr.net/npm/litepicker-polyfills-ie11/dist/index.js",a.onload=b,document.getElementsByTagName("head")[0].appendChild(a)}else b()}},parseLitepickerDates:function(a){let b="",c="",d=a.split("-");return d.length>=2&&d.forEach(function(a,d){if(d>1)return;let e=a.trim().split("/");if(e.length>=3){let a=e[2]+"-"+e[1]+"-"+e[0];d?c=a:b=a}}),{initial:b,final:c}},drawAttention:function(a,b){for(let c=0;c<3;c++)setTimeout(b,2*c*75),setTimeout(a,(2*c+1)*75)},buildSelector:function(a){let b={setQty:function(b){if(!isNaN(parseInt(b))&&!(b<0)){if(this.control.qtyLabel.mounted.innerText=b,"child"!==a)this.input.mounted.value=b;else{let a=this.input.mounted.value.split(",").filter(function(a){return a.length});a.length<b?this.input.mounted.value=a.concat(Array(b-a.length+1).join("1").split("")).join(","):this.input.mounted.value=a.slice(0,b).join(","),this.mounted&&this.updateAgeSelectors()}l.widget.peopleSelector.updateHeadLabel()}},increase:function(){let b="child"!==a?parseInt(this.input.mounted.value):this.input.mounted.value?.split(",").filter(function(a){return a.length}).length;this.setQty(b+1)},decrease:function(){let b="child"!==a?parseInt(this.input.mounted.value):this.input.mounted.value?.split(",").filter(function(a){return a.length}).length;this.setQty(b-1)},updateAgeSelectors:function(){this.agesWrapper&&this.mounted.removeChild(this.agesWrapper);let a=this.input,b=document.createElement("div");j.applyStyles(b,k.peopleSelector.agesWrapper),this.input.mounted.value?.split(",").forEach(function(c,d){if(c){let f=document.createElement("div");function e(b){let e=b?parseInt(c)+1:parseInt(c)-1;if(isNaN(e)||e<0||e>12)return;c=e,f.innerText=e;let g=a.mounted.value?.split(",");g[d]=e,a.mounted.value=g.join(",")}f.innerText=c;let h=document.createElement("div");j.applyStyles(h,k.peopleSelector.ageRow);let i=document.createElement("div"),m=l.widget.peopleSelector.messages[g.LANG].childAge.replace(/ /g,"\xa0").split("<<AGE>>").map(a=>document.createTextNode(a));i.appendChild(m[0]),i.appendChild(f),i.appendChild(m[1]);let n=document.createElement("div");n.innerText="+",n.onclick=function(){e(!0)},j.applyStyles(n,k.peopleSelector.editAgeButton(!0));let o=document.createElement("div");o.onclick=function(){e(!1)},o.innerText="-",j.applyStyles(o,k.peopleSelector.editAgeButton(!1)),j.applyStyles(i,k.peopleSelector.ageLabel),j.applyStyles(f,k.peopleSelector.ageValue),h.appendChild(i),h.appendChild(o),h.appendChild(n),b.appendChild(h)}}),this.mounted.appendChild(b),this.agesWrapper=b},input:{mount:function(a){let b=document.createElement("input");b.readOnly=!0,b.type="hidden",j.applyStyles(b,k.hidden),a.appendChild(b),this.mounted=b}},label:{mount:function(b){let c=document.createElement("div");j.applyStyles(c,k.peopleSelector.mainSelectorLabel),b.appendChild(c),c.innerText=l.widget.peopleSelector.messages[g.LANG][a].other,this.mounted=c}},control:{addButton:{mount:function(a){let c=document.createElement("div");c.innerText="+",c.onclick=b.increase.bind(b),j.applyStyles(c,k.peopleSelector.editButton),a.appendChild(c),this.mounted=c}},qtyLabel:{mount:function(c){let d=document.createElement("span");d.innerText="0",c.appendChild(d),this.mounted=d,b.setQty(+("adult"===a))}},removeButton:{mount:function(a){let c=document.createElement("div");c.innerText="-",c.onclick=b.decrease.bind(b),j.applyStyles(c,k.peopleSelector.editButton),a.appendChild(c),this.mounted=c}},mount:function(a){let b=document.createElement("div");this.removeButton.mount(b),this.qtyLabel.mount(b),this.addButton.mount(b),j.applyStyles(b,k.peopleSelector.controlWrapper),a.appendChild(b),this.mounted=b}},mount:function(b){let c=document.createElement("div");this.input.mount(c),this.label.mount(c),this.control.mount(c),j.applyStyles(c,k.peopleSelector.selectorRow),b.appendChild(c),this.mounted=c,"child"===a&&(j.applyStyles(c,k.peopleSelector.lastSelectorRow),this.updateAgeSelectors())}};return b}},k={widget:{base:{backgroundColor:"#FFFFFF",boxShadow:"0px 0px 10px rgba(0, 0, 0, 0.15)",opacity:1,width:"100%",position:"relative",fontFamily:f,color:"#959595",boxSizing:"border-box",margin:0,textShadow:"none"},desktop:{height:"55px",borderRadius:"12px",display:"flex",marginBottom:0,padding:0},mobile:{height:"140px",borderRadius:"10px",marginBottom:"50px",display:"block",padding:"10px 0"}},button:{base:{border:"none",outline:"none",padding:0,margin:0,appearance:"none",display:"block",backgroundColor:c,borderRadius:"10px",position:"absolute",color:"#FFFFFF",textAlign:"center",fontFamily:f,fontWeight:700,cursor:"pointer"},desktop:{height:"45px",boxShadow:"0px 0px 5px rgba(0, 0, 0, 0.2)",width:"150px",top:"5px",bottom:null,right:"5
1px",left:null,fontSize:"15px",lineHeight:"18px"},mobile:{height:"40px",width:"100%",boxShadow:"0px 3px 8px rgba(0, 0, 0, 0.16)",top:null,bottom:"-50px",right:0,left:0,fontSize:"19px",lineHeight:"23px"}},icons:{desktop:{margin:"1px 12px"},mobile:{margin:"0 22px 0 10px"}},arrows:{base:{height:"5px",width:"5px",minHeight:"5px",minWidth:"5px",display:"block",borderWidth:"0 1px 1px 0",borderStyle:"solid",borderColor:"#4D4D4D",margin:"5px 12px 5px auto",transition:"transform 200ms"},down:{transform:"rotate(45deg)"},up:{transform:"rotate(225deg)"}},labels:{marginRight:"10px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},dividers:{height:"30px",width:0,marginTop:"12px",borderRight:"1px solid #E6E6E6"},dropdown:{wrapper:{base:{boxSizing:"border-box",position:"relative"},desktop:{fontSize:"15px",lineHeight:"18px",padding:"18px 18px 18px 22px",width:"calc(33% - 160px/3)"},mobile:{fontSize:"14px",lineHeight:"17px",padding:"10px 9px",width:"100%"}},head:{display:"flex",flexDirecrion:"row",cursor:"pointer"},optionsWrapper:{base:{backgroundColor:"#FFFFFF",padding:"10px",borderRadius:"10px",marginTop:"8px",boxShadow:"0px 0px 25px 0px rgba(0,0,0,0.2)",zIndex:99,position:"absolute",right:"10px",maxHeight:"50vh",overflow:"auto"},desktop:{left:"36px"},mobile:{left:"34px"}},options:{input:{wrapper:{backgroundColor:"#FFFFFF",position:"sticky",top:"-10px",marginTop:"-10px",paddingTop:"10px"},input:{width:"100%",boxSizing:"border-box",marginBottom:"5px",padding:"8px 12px",borderRadius:"5px",border:"1px solid #E6E6E6",outline:"none",fontSize:"14px",fontFamily:"inherit",color:"#959595"}},default:{padding:"10px 15px",backgroundColor:"#FFFFFF",borderRadius:"5px",cursor:"pointer"},selected:{backgroundColor:"#f5f5f5"},empty:{padding:"5px",color:"#FF6461",textAlign:"center"},".xpert-region-hidden":"display: none;"}},calendar:{wrapper:{base:{boxSizing:"border-box",position:"relative",display:"flex",flexDirecrion:"row",cursor:"pointer"},desktop:{fontSize:"15px",lineHeight:"18px",padding:"18px 18px 8px 16px",width:"calc(33% - 160px/3)",height:"55px"},mobile:{fontSize:"14px",lineHeight:"17px",padding:"10px 9px 0",width:"100%",height:"39px"}},input:{padding:"0 0 10px",margin:0,border:"none",outline:"none",boxShadow:"none",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit",width:"100%",marginRight:"10px",color:"#959595",bordee:"1px solid red",backgroundColor:"#FFFFFF",overflow:"hidden",textOverflow:"ellipsis",height:"auto"}},peopleSelector:{wrapper:{base:{boxSizing:"border-box",position:"relative"},desktop:{fontSize:"15px",lineHeight:"18px",padding:"18px 18px 18px 22px",width:"calc(33% - 160px/3)"},mobile:{fontSize:"14px",lineHeight:"17px",padding:"10px 9px",width:"100%"}},head:{display:"flex",flexDirecrion:"row",cursor:"pointer"},selectorsWrapper:{base:{backgroundColor:"#FFFFFF",padding:"5px",borderRadius:"10px",margin:"8px auto 0",boxShadow:"0px 0px 25px 0px rgba(0,0,0,0.2)",zIndex:99,position:"absolute",boxSizing:"border-box",width:"calc(100% - 20px)",maxWidth:"310px",right:"10px"},desktop:{left:"36px",minWidth:"310px"},mobile:{left:"10px",minWidth:"auto"}},selectorRow:{display:"flex",flexDirection:"row",justifyContent:"space-between",flexWrap:"wrap",fontSize:"15px",textAlign:"center",userSelect:"none",gap:"5px",margin:"10px",borderBottom:"1px solid #E6E6E6",paddingBottom:"10px"},lastSelectorRow:{borderBottom:"none",paddingBottom:"0",marginBottom:"5px"},mainSelectorLabel:{display:"flex",alignItems:"center",margin:"0 3px",borderRadius:"40px",width:"auto",height:"auto",boxSizing:"border-box",textTransform:"capitalize"},editButton:{display:"flex",alignItems:"center",justifyContent:"center",margin:"0",width:"32px",minWidth:"32px",height:"40px",boxSizing:"border-box",cursor:"pointer",fontSize:"24px"},editAgeButton(a){let b=Object.assign({},this.editButton);return Object.assign(b,{height:"32px",width:"36px",minWidth:"36px",borderLeft:a?"1px solid #E6E6E6":"none"}),b},controlWrapper:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",border:"1px solid #E6E6E6",borderRadius:"10px",minWidth:"100px"},agesWrapper:{width:"100%",overflowY:"auto",maxHeight:"240px"},ageLabel:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",width:"100%",lineHeight:"40px",padding:"0"},ageValue:{borderRadius:"5px",backgroundColor:j.transparentize(c,.25),color:c,lineHeight:"32px",height:"32px",minWidth:"32px",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"700",boxSizing:"border-box"},ageRow:{display:"flex",flexDirection:"row",flexWrap:"nowrap",fontSize:"14px",textAlign:"center",userSelect:"none",alignItems:"center",margin:"10px 5px 5px"}},block:{display:"block"}
1,hidden:{display:"none"},litepicker:{"--litepicker-container-months-box-shadow-color":"rgba(0,0,0,0.4)","--litepicker-footer-box-shadow-color":"rgba(0,0,0,0.4)","--litepicker-month-header-color":"#888","--litepicker-button-prev-month-color":"#aaa","--litepicker-button-next-month-color":"#aaa","--litepicker-button-prev-month-color-hover":c,"--litepicker-button-next-month-color-hover":c,"--litepicker-day-color":"#888","--litepicker-day-color-hover":c,"--litepicker-is-in-range-color":j.transparentize(c,.25),"--litepicker-is-locked-color":"#ccc","--litepicker-is-start-color-bg":c,"--litepicker-is-end-color-bg":c,"--litepicker-button-apply-color-bg":c,"--litepicker-button-reset-color-hover":c},".litepicker":{base:`font-size: 0.9em; text-transform: capitalize; Font-family: ${f};`,".container__tooltip":"font-size: 0.8em; text-transform: none;",".container__main > *":"box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.2); border-radius: 10px; padding: 0 6px 10px 4px;"},"::placeholder":"opacity: 1; color: #959595;"},l={widget:{search:function(b){let c=this.regionsDropdown.idInput.mounted?.value,d=this.regionsDropdown.nameInput.mounted?.value,e=j.parseLitepickerDates(this.dateSelector.input.mounted?.value),f=this.peopleSelector.selectors.adults.input.mounted?.value,g=this.peopleSelector.selectors.seniors.input.mounted?.value,i=this.peopleSelector.selectors.children.input.mounted?.value;return c&&d?e?.initial&&e?.final?parseInt(f)||parseInt(g)?void window.open(a+"/create?regionId="+encodeURIComponent(c)+"&regionName="+encodeURIComponent(d)+"&initialDate="+encodeURIComponent(e.initial)+"&finalDate="+encodeURIComponent(e.final)+"&adults="+encodeURIComponent(f)+"&seniors="+encodeURIComponent(g)+"&children="+encodeURIComponent(i)+(h?"&affiliate_code="+encodeURIComponent(h):""),"_blank").focus():void j.drawAttention(function(){l.widget.peopleSelector.setDropdownOpenState(!0)},function(){l.widget.peopleSelector.setDropdownOpenState(!1)}):void j.drawAttention(function(){l.widget.dateSelector.input.litepicker.mounted?.show()},function(){l.widget.dateSelector.input.litepicker.mounted?.hide()}):void j.drawAttention(function(){l.widget.regionsDropdown.setDropdownOpenState(!0)},function(){l.widget.regionsDropdown.setDropdownOpenState(!1)})},divider:{mount:function(a){let b=document.createElement("div");j.applyStyles(b,k.dividers),j.applyMediaQuery(b,k.block,k.hidden),a.appendChild(b),this.mounted||(this.mounted=[]),this.mounted.push(b)}},regionsDropdown:{setDropdownOpenState:function(a){j.applyStyles(this.options.mounted,a?k.block:k.hidden),j.applyStyles(this.head.arrow.mounted,a?k.arrows.up:k.arrows.down)},onclickOutside:function(a){a.target.closest(".xpert-widget-popup-trigger")!==this.mounted&&this.setDropdownOpenState(!1)},onclick:function(){this.setDropdownOpenState("none"===this.options.mounted.style.display)},onclickOption:function(a,b){return(function(c){this.setDropdownOpenState(!1),this.idInput.mounted.value=a.id,this.nameInput.mounted.value=a.name,this.head.label.mounted.innerText=a.name,this.options.optionValues.mounted?.length&&this.options.optionValues.mounted.forEach(function(a){j.applyStyles(a,k.dropdown.options.default)}),j.applyStyles(b,k.dropdown.options.selected)}).bind(this)},idInput:{mount:function(a){let b=document.createElement("input");b.readOnly=!0,b.type="hidden",b.id="xpert-widget-region-id",j.applyStyles(b,k.hidden),a.appendChild(b),this.mounted=b}},nameInput:{mount:function(a){let b=document.createElement("input");b.readOnly=!0,b.type="hidden",b.id="xpert-widget-region-name",j.applyStyles(b,k.hidden),a.appendChild(b),this.mounted=b}},head:{icon:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#BABABA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-map-pin"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>',mount:function(a){let b=document.createElement("div");b.innerHTML=this.svg,j.applyMediaQuery(b,k.icons.desktop,k.icons.mobile),a.appendChild(b),this.mounted=b}}
1,label:{initial:{"pt-BR":"Selecione a regi\xe3o","en-US":"Select a destination","es-ES":"Seleccione regi\xf3n"},mount:function(a){let b=document.createElement("span");j.applyStyles(b,k.labels),b.innerText=this.initial[g.LANG],a.appendChild(b),this.mounted=b}},arrow:{mount:function(a){let b=document.createElement("div");j.applyStyles(b,k.arrows.base),j.applyStyles(b,k.arrows.down),a.appendChild(b),this.mounted=b}},mount:function(a){let b=document.createElement("div");this.icon.mount(b),this.label.mount(b),this.arrow.mount(b),j.applyStyles(b,k.dropdown.head),a.appendChild(b),this.mounted=b}},options:{debouncedDelay:500,debouncedTimeout:null,onInputEvent:function(a){this.mounted&&this.optionValues?.mounted?.length&&(this.debouncedTimeout&&clearTimeout(this.debouncedTimeout),this.debouncedTimeout=setTimeout((function(){let b=a.target.value.toLowerCase().trim().split(" ");this.optionValues.mounted.forEach(function(a){let c=a.innerText.toLowerCase(),d=b.every(function(a){return c.includes(a)});a.classList.remove(d?"xpert-region-hidden":"xpert-region-visible"),a.classList.add(d?"xpert-region-visible":"xpert-region-hidden")})}).bind(this),this.debouncedDelay))},searchInput:{hideWhenRegionsCountBelow:2,placeholder:{"pt-BR":"Pesquisar regi\xe3o","en-US":"Search region","es-ES":"Buscar regi\xf3n"},mount:function(a){let c=document.createElement("div"),d=document.createElement("input");d.type="text",d.placeholder=this.placeholder[g.LANG],j.applyStyles(c,k.dropdown.options.input.wrapper),j.applyStyles(d,k.dropdown.options.input.input),b.length<this.hideWhenRegionsCountBelow&&j.applyStyles(c,k.hidden),c.appendChild(d),a.appendChild(c),j.applyCssWithSelector(c," input::placeholder",k["::placeholder"]),this.mounted=d}},optionValues:{mount:function(a){b.forEach((function(b){let c=document.createElement("div");c.appendChild(document.createTextNode(b.name)),c.onclick=l.widget.regionsDropdown.onclickOption(b,c),j.applyStyles(c,k.dropdown.options.default),a.appendChild(c),c.classList.add("xpert-widget-region-option"),c.classList.add("xpert-region-visible"),this.mounted||(this.mounted=[]),this.mounted.push(c)}).bind(this)),1===b.length&&l.widget.regionsDropdown.onclickOption(b[0],this.mounted[0])()}},emptyLabel:{label:{"pt-BR":"Nenhuma regi\xe3o encontrada","en-US":"No region found","es-ES":"Ninguna regi\xf3n encontrada"},mount:function(a){let b=document.createElement("div");b.innerText=this.label[g.LANG],b.classList.add("xpert-no-regions-label"),j.applyStyles(b,k.dropdown.options.empty),a.appendChild(b),this.mounted=b}},mount:function(a){let b=document.createElement("div");this.searchInput.mount(b),this.optionValues.mount(b),this.emptyLabel.mount(b),b.querySelector("input").addEventListener("input",this.onInputEvent.bind(this)),b.onclick=function(a){a.stopPropagation()},j.applyStyles(b,k.dropdown.optionsWrapper.base),j.applyMediaQuery(b,k.dropdown.optionsWrapper.desktop,k.dropdown.optionsWrapper.mobile),j.applyStyles(b,k.hidden),j.applyCssWithSelector(b," .xpert-region-hidden",k.dropdown.options[".xpert-region-hidden"]),j.applyCssWithSelector(b," .xpert-region-visible ~ .xpert-no-regions-label",k.dropdown.options[".xpert-region-hidden"]),a.appendChild(b),this.mounted=b}},mount:function(a){let b=document.createElement("div");this.idInput.mount(b),this.nameInput.mount(b),this.head.mount(b),this.options.mount(b),b.classList.add("xpert-widget-popup-trigger"),b.onclick=this.onclick.bind(this),window.addEventListener("click",this.onclickOutside.bind(this)),j.applyStyles(b,k.dropdown.wrapper.base),j.applyMediaQuery(b,k.dropdown.wrapper.desktop,k.dropdown.wrapper.mobile),a.appendChild(b),this.mounted=b}},dateSelector:{icon:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#BABABA" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>',mount:function(a){let b=document.createElement("div");b.innerHTML=this.svg,j.applyMediaQuery(b,k.icons.desktop,k.icons.mobile),a.appendChild(b),this.mounted=b}}
1,input:{placeholder:{"pt-BR":"Selecione as datas","en-US":"Select the dates","es-ES":"Seleccione fechas"},litepicker:{toggle:function(a){a.target.closest("input")||(a.target.classList.contains("litepicker-backdrop")||this.visible?this.mounted?.hide():this.mounted?.show())},onshow:function(){setTimeout(function(){l.widget.dateSelector.input.litepicker.visible=!0,j.applyStyles(l.widget.dateSelector.arrow.mounted,k.arrows.up)},0)},onhide:function(){setTimeout(function(){l.widget.dateSelector.input.litepicker.visible=!1,j.applyStyles(l.widget.dateSelector.arrow.mounted,k.arrows.down)},0)},mount:function(a){let b=new Date;b.setUTCHours(0,0,0,0),b.setDate(b.getDate());let c=new Litepicker({element:a,singleMode:!1,lang:g.LANG,tooltipText:l.widget.peopleSelector.messages[g.LANG].tooltipText,format:"DD/MM/YYYY",lockDaysFormat:"YYYY-MM-DD",minDate:b.toISOString().split("T")[0],minDays:e,splitView:!1,plugins:["mobilefriendly"]});j.applyCssVars(document.documentElement,k.litepicker),j.applyCssWithSelector(document.documentElement," .litepicker",k[".litepicker"].base),j.applyCssWithSelector(document.documentElement," .litepicker .container__tooltip",k[".litepicker"][".container__tooltip"]),j.applyCssWithSelector(document.documentElement," .litepicker .container__main > *",k[".litepicker"][".container__main > *"]),this.visible=!1,c.on("before:show",this.onshow),c.on("hide",this.onhide),this.mounted=c}},mount:function(a){let b=document.createElement("input");b.type="text",b.placeholder=this.placeholder[g.LANG],b.id="xpert-widget-date-selector",j.applyStyles(b,k.calendar.input),j.applyCssWithSelector(b,"::placeholder",k["::placeholder"]),j.import.litepicker((function(){this.litepicker.mount(b),document.querySelectorAll(".litepicker").forEach(function(a){a.classList.add("notranslate")})}).bind(this)),a.appendChild(b),this.mounted=b}},arrow:{mount:function(a){let b=document.createElement("div");j.applyStyles(b,k.arrows.base),j.applyStyles(b,k.arrows.down),a.appendChild(b),this.mounted=b}},mount:function(a){let b=document.createElement("div");this.icon.mount(b),this.input.mount(b),this.arrow.mount(b),b.onclick=this.input.litepicker.toggle.bind(this.input.litepicker),j.applyStyles(b,k.calendar.wrapper.base),j.applyMediaQuery(b,k.calendar.wrapper.desktop,k.calendar.wrapper.mobile),a.appendChild(b),this.mounted=b}},peopleSelector:{setDropdownOpenState:function(a){j.applyStyles(this.selectors.mounted,a?k.block:k.hidden),j.applyStyles(this.head.arrow.mounted,a?k.arrows.up:k.arrows.down)},onclickOutside:function(a){a.target.closest(".xpert-widget-popup-trigger")!==this.mounted&&this.setDropdownOpenState(!1)},onclick:function(a){a.target.closest(".xpert-widget-selector-popup")||this.setDropdownOpenState("none"===this.selectors.mounted.style.display)},updateHeadLabel:function(){let a=this.selectors.adults.input.mounted?.value,b=this.selectors.seniors.input.mounted?.value,c=this.selectors.children.input.mounted?.value.split(",").filter(function(a){return a.length}).length,d=[];parseInt(a)&&d.push(a+" "+this.messages.pluralize(a,g.LANG,"adult")),parseInt(b)&&d.push(b+" "+this.messages.pluralize(b,g.LANG,"senior")),parseInt(c)&&d.push(c+" "+this.messages.pluralize(c,g.LANG,"child")),this.head.label.mounted.innerText=d.length?d.join(", "):this.messages[g.LANG].empty},messages:{pluralize:function(a,b,c){return a>-1&&a<1?this?.[b]?.[c].none||this?.[b]?.[c].other:(-1===a||1===a||"-1"===a||"1"===a)&&this?.[b]?.[c].one||this?.[b]?.[c].other},"pt-BR":{empty:"Selecione os viajantes",childAge:"Crian\xe7a de <<AGE>> anos",adult:{one:"Adulto",none:"Adulto",other:"Adultos"},child:{one:"Crian\xe7a",none:"Crian\xe7a",other:"Crian\xe7as"},senior:{one:"S\xeanior",none:"S\xeanior",other:"Seniores"},tooltipText:{one:"dia",other:"dias"}},"en-US":{empty:"Select the travelers",childAge:"<<AGE>> year old child",adult:{one:"Adult",none:"Adult",other:"Adults"},child:{one:"Child",none:"Children",other:"Children"},senior:{one:"Senior",none:"Seniors",other:"Seniors"},tooltipText:{one:"day",other:"days"}},"es-ES":{empty:"Seleccione los viajeros",childAge:"Ni\xf1o de <<AGE>> an\xf5s",adult:{one:"Adulto",none:"Adulto",other:"Adultos"},child:{one:"Ni\xf1o",none:"Ni\xf1o",other:"Ni\xf1os"},senior:{one:"S\xe9nior",none:"S\xe9nior",other:"Seniors"},tooltipText:{one:"d\xeda",other:"d\xedas"}}},head:{icon:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M7.987 0c-.547 0-1.07.102-1.553.286V.29s-.287.117-.423.192a7.263 7.263 0 00-.765.5c-.021.017-.04.036-.062.051-.084.071-.166.144-.245.22a5.59 5.59 0 00-.814 1.089v.002l-.002.003a3.573 3.573 0 00-.165.35c-.02.048-.042.095-.06.144a4.02 4.02 0 00-.114.356l-.029.097c-.093.377-.13.768-.137 1.157.001.154.012.305.036.453.097.645.184.89.654 1.817l.01.019c.058.09.122.172.184.256.075.095.135.176.167.215.327.387.713.713 1.15.961l.022.012a7.813 7.813 0 00-4.926 4.395l-.02.05c-.142.304-.2.534-.318.884-.073.246-.14.55-.187.861l-.005.04a1.377 1.377 0 00.325 1.115c.25.29.616.472 1.026.472h12.527c.41 0 .776-.182 1.024-.47l.003-.001a1.375 1.375 0 00.324-1.116l-.001-.004a7.186 7.186 0 00-.191-.897c-.115-.487-.166-.575-.31-.884-.915-2.147-2.704-3.769-4.908-4.438l-.054-.015c.466-.27.87-.611 1.203-1.01l.023-.03a4.43 4.43 0 00.292-.397l.01-.018c.474-.935.559-1.174.657-1.831l-.015-.01.015.009c.019-.144.03-.31.03-.479v-.024-.01a5.217 5.217 0 00-.126-1.034 4.322 4.322 0 00-.12-.41c-.003-.006-.004-.013-.006-.019l-.001-.003a4.24 4.24 0 00-.142-.336c-.026-.056-.05-.112-.078-.167-.02-.04-.045-.078-.067-.118a5.599 5.599 0 00-.752-1.005 4.383 4.383 0 00-.325-.294L10.74.982A7.263 7.263 0 009.975.48 4.231 4.231 0 008.003 0H7.99zm-.002.886h.016c.646 0 1.251.183 1.765.496.333.193.615.431.851.71l.005.005c.49.552.803 1.27.848 2.06v.009c.005.051.008.111.008.172v.041c0 .316-.046.62-.129.909a3.203 3.203 0 01-.297.74c-.157.29-.342.539-.557.759-.295.315-.651.57-1.05.745l-.02.008c-.264.13-.569.229-.89.278l-.018.003a2.917 2.917 0 01-.511.043h-.062c-.15 0-.297-.013-.44-.039.004 0 .006.002.01.003l-.015-.003h.005a3.27 3.27 0 01-.842-.229l.002.003-.02-.01.018.007-.005-.005a3.455 3.455 0 01-1.245-.868L5.41 6.72a3.551 3.551 0 01-.5-.704l-.01-.02a3.741 3.741 0 01-.267-.678l-.006-.028a3.256 3.256 0 01-.126-.906v-.002-.037c0-.055.003-.109.008-.162a3.45 3.45 0 01.863-2.105l.003-.004c.241-.277.522-.511.837-.694l.016-.01v-.003a3.423 3.423 0 011.757-.48zm-.039 7.868l.038.001h.018c.089 0 .178 0 .267.007h.03c.044 0 .078.007.125.007.148.008.285.024.419.047a6.833 6.833 0 015.276 3.775l.017.04c.074.148.149.295.207.443.06.147.104.295.
1148.443.1.293.186.64.239 1l.004.033a.504.504 0 01-.12.406.463.463 0 01-.35.163H1.746h-.003a.475.475 0 01-.358-.162v-.001a.502.502 0 01-.12-.405v-.003c.054-.374.14-.71.253-1.032l.004-.012.007-.024c.041-.136.088-.27.136-.406.051-.148.125-.295.199-.443 1.013-2.064 2.976-3.525 5.304-3.82l.033-.004c.177-.015.356-.03.532-.037h.022c.058-.01.123-.016.191-.016z" fill="#bababa"/></svg>',mount:function(a){let b=document.createElement("div");b.innerHTML=this.svg,j.applyMediaQuery(b,k.icons.desktop,k.icons.mobile),a.appendChild(b),this.mounted=b}},label:{mount:function(a){let b=document.createElement("span");j.applyStyles(b,k.labels),b.innerText=l.widget.peopleSelector.messages[g.LANG].empty,a.appendChild(b),this.mounted=b}},arrow:{mount:function(a){let b=document.createElement("div");j.applyStyles(b,k.arrows.base),j.applyStyles(b,k.arrows.down),a.appendChild(b),this.mounted=b}},mount:function(a){let b=document.createElement("div");this.icon.mount(b),this.label.mount(b),this.arrow.mount(b),j.applyStyles(b,k.peopleSelector.head),a.appendChild(b),this.mounted=b}},selectors:{adults:j.buildSelector("adult"),seniors:j.buildSelector("senior"),children:j.buildSelector("child"),mount:function(a){let b=document.createElement("div");this.adults.mount(b),this.seniors.mount(b),this.children.mount(b),this.adults.input.mounted.setAttribute("id","xpert-widget-adults"),this.seniors.input.mounted.setAttribute("id","xpert-widget-seniors"),this.children.input.mounted.setAttribute("id","xpert-widget-children"),b.classList.add("xpert-widget-selector-popup"),j.applyStyles(b,k.peopleSelector.selectorsWrapper.base),j.applyMediaQuery(b,k.peopleSelector.selectorsWrapper.desktop,k.peopleSelector.selectorsWrapper.mobile),j.applyStyles(b,k.hidden),a.appendChild(b),this.mounted=b}},mount:function(a){let b=document.createElement("div");this.head.mount(b),this.selectors.mount(b),b.classList.add("xpert-widget-popup-trigger"),b.onclick=this.onclick.bind(this),window.addEventListener("click",this.onclickOutside.bind(this)),j.applyStyles(b,k.peopleSelector.wrapper.base),j.applyMediaQuery(b,k.peopleSelector.wrapper.desktop,k.peopleSelector.wrapper.mobile),a.appendChild(b),this.mounted=b}},searchButtons:{labels:{"pt-BR":{mobile:"Buscar",desktop:"Montar roteiro"},"en-US":{mobile:"Search",desktop:"Build route"},"es-ES":{mobile:"Buscar",desktop:"Montar ruta"}},mount:function(a){let b=document.createElement("button");j.applyStyles(b,k.button.base);let c=b.cloneNode();b.id="xpert-widget-button-desktop",c.id="xpert-widget-button-mobile",j.applyStyles(b,k.button.desktop),j.applyMediaQuery(b,k.block,k.hidden),b.appendChild(document.createTextNode(this.labels[g.LANG].desktop)),b.onclick=l.widget.search.bind(l.widget),a.appendChild(b),j.applyStyles(c,k.button.mobile),j.applyMediaQuery(c,k.hidden,k.block),c.appendChild(document.createTextNode(this.labels[g.LANG].mobile)),c.onclick=l.widget.search.bind(l.widget),a.appendChild(c),this.mounted={desktop:b,mobile:c}}},mount:function(a){let b=document.createElement("div");j.import.widgetFonts(),j.applyStyles(b,k.widget.base),j.applyMediaQuery(b,k.widget.desktop,k.widget.mobile),this.regionsDropdown.mount(b),this.divider.mount(b),this.dateSelector.mount(b),this.divider.mount(b),this.peopleSelector.mount(b),this.searchButtons.mount(b),a.appendChild(b),this.mounted=b}}}
1,m=document.getElementById(d);m&&(m.innerHTML="",m.classList.add("notranslate"),l.widget.mount(m))}) ( 'https://roteirofacil.bonitour.com.br', JSON.parse('[{"id":"958ddd7c-cafa-499c-9974-6c1778581acb","name":"Bonito/Bodoquena/Pantanal"},{"id":"8f6d7e66-2b46-4699-aec3-e8f573e7dcdf","name":"Fortaleza e Jericoacoara"},{"id":"6a47fd85-ea08-4b64-9643-7681b65bf5e7","name":"Fernando de Noronha"},{"id":"94753a9c-226f-4be7-b459-3f509bb82e98","name":"Serra Gaúcha"}]'), '#0D0C0C', 'xpert-search-widget', 1, 'Lato, Sans-Serif', XPERT_WIDGET_CONSTS, 'undefined' ); } function updateLang() { if (document.documentElement.lang) { var XP_WDGT_CURRENT_LANG = XPERT_WIDGET_CONSTS.LANG.split('-')[0]; var XP_WDGT_DOCUMENT_LANG = document.documentElement.lang.split('-')[0]; if (['pt', 'en', 'es'].includes(XP_WDGT_CURRENT_LANG) && XP_WDGT_CURRENT_LANG !== XP_WDGT_DOCUMENT_LANG) { XPERT_WIDGET_CONSTS.LANG = { 'pt': 'pt-BR', 'en': 'en-US', 'es': 'es-ES' }[XP_WDGT_DOCUMENT_LANG] || 'pt-BR'; console.log('Reloading widget with new language'); buildWidget(); } } } function onWidgetLoad() { buildWidget(); if (typeof window.MutationObserver === 'function') { var XP_WDGT_OBSERVER = new MutationObserver((mutationsList) => { for (const mutation of mutationsList) { if (mutation.type === 'attributes' && mutation.attributeName === 'lang') { updateLang(); } } }); XP_WDGT_OBSERVER.observe(document.documentElement, { attributes: true, attributeFilter: ['lang'] }); } else { setInterval(updateLang, 3000); } } if (document.readyState === 'complete') { onWidgetLoad(); } else { window.addEventListener('load', onWidgetLoad); } 

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.