PageSourceSearch

https://www.cavalinho.com/plugins/search_meilisearch/rcc_search_js.php

js cavalinho.com collected 2026-09-26 16:09:45 UTC 79,760 bytes, 1 lines download raw bytes

1window.RCC_PHP_VARS = {"data-config-version":1787822680,"data-user-id":0,"data-lang":"en","data-market":7,"data-price-list":6,"data-country":232,"data-country-code":"US","data-currency":"EUR","data-catalog":1,"data-device":"desktop","data-user-seg":[],"data-user-reg":false,"data-site-channel":true,"data-disable-log":0,"data-banner":{"title":"","src":"","url":""},"data-banner-mobile":{"title":"","src":"","url":""},"data-site-version":26,"data-allow-ngrams":0,"data-product-limit-colors":4,"data-logo-file":"https:\/\/1900480730.rsc.cdn77.org\/images\/logo.svg?1726128080","data-layout-version":"rcc-search-layout-v1","data-product-tags":[{"id":"10","nome":"","cor":"000000","cor_text":"FFFFFF"},{"id":"9","nome":"LIMITED EDITION","cor":"df008f","cor_text":"df008f"},{"id":"8","nome":"SPECIAL COLLECTION","cor":"204785","cor_text":"204785"},{"id":"7","nome":"PREMIUM COLLECTION","cor":"b7a56a","cor_text":"b7a56a"},{"id":"6","nome":"COMING SOON","cor":"b4a7d6","cor_text":"b4a7d6"},{"id":"5","nome":"SPECIAL EDITION","cor":"e6c2d2","cor_text":"e6c2d2"},{"id":"4","nome":"BEST SELLER","cor":"d9d9d9","cor_text":"d9d9d9"},{"id":"3","nome":"EXCLUSIVE","cor":"999999","cor_text":"999999"},{"id":"2","nome":"NEW","cor":"333333","cor_text":"333333"},{"id":"1","nome":"PROMO","cor":"cf1317","cor_text":"cf1317"}],"data-product-promo-tags":[{"id":"25","nome":"","type_tag":"1","cor":"000000","cor_text":"000000"},{"id":"24","nome":"","type_tag":"1","cor":"000000","cor_text":"000000"}],"data-request-quote":0};window.RCC_JS_VARS = {"EXPRESSIONS":{"pt":{"EXP1":"Pesquise aqui...","EXP2":"Fechar","EXP3":"Hist\u00f3rico de pesquisas","EXP4":"Top Pesquisas","EXP5":"Recomendados para si","EXP6":"Anterior","EXP7":"Seguinte","EXP8":"Produtos Encontrados","EXP9":"Pesquisa sem resultados","EXP10":"Carregar mais","EXP11":"Ver mais","EXP12":"Ver menos","EXP13":"Limpar Filtros","EXP14":"","EXP15":"","EXP16":"Voltar","EXP17":"Filtrar","EXP18":"Cores","EXP19":"Dispon\u00edvel sob consulta ","EXP20":"Indispon\u00edvel","EXP21":"","EXP22":"Dep.","EXP23":"Desde:"},"en":{"EXP1":"Search here...","EXP2":"Close","EXP3":"Search history","EXP4":"Top Searches","EXP5":"Recommended for s","EXP6":"Previous","EXP7":"Next","EXP8":"Products Found","EXP9":"No search results","EXP10":"Load more","EXP11":"View more","EXP12":"View less","EXP13":"Clear Filters","EXP14":"","EXP15":"","EXP16":"Back","EXP17":"Filter","EXP18":"Colors","EXP19":"Available","EXP20":"Not Available","EXP21":"","EXP22":"Dep.","EXP23":"Since:"},"fr":{"EXP1":"Rechercher ici...","EXP2":"Fermer","EXP3":"Historique des recherches","EXP4":"Principales recherches","EXP5":"Recommand\u00e9 pour s","EXP6":"Pr\u00e9c\u00e9dent","EXP7":"Suivant","EXP8":"Produits trouv\u00e9s","EXP9":"R\u00e9sultats de recherche","EXP10":"Charger plus","EXP11":"Voir plus","EXP12":"Afficher moins","EXP13":"Effacer les filtres","EXP14":"","EXP15":"","EXP16":"Retour","EXP17":"Filtre","EXP18":"Couleurs","EXP19":"Disponible","EXP20":"Non disponible","EXP21":"","EXP22":"D\u00e9p.","EXP23":"Depuis:"}},"CURRENCIES":{"AED":{"prefix":"","sufix":"AED"},"BAM":{"prefix":"","sufix":"BAM"},"BHD":{"prefix":"","sufix":"BHD"},"CYP":{"prefix":"","sufix":"CYP"},"CZK":{"prefix":"","sufix":"CZK"},"EGP":{"prefix":"","sufix":"EGP"},"EUR":{"prefix":"","sufix":"€"},"HRK":{"prefix":"","sufix":"HRK"},"JOD":{"prefix":"","sufix":"JOD"},"KWD":{"prefix":"","sufix":"KWD"},"KZT":{"prefix":"","sufix":"KZT"},"MTL":{"prefix":"","sufix":"MTL"},"OMR":{"prefix":"","sufix":"OMR"},"PHP":{"prefix":"","sufix":"PHP"},"PLN":{"prefix":"","sufix":"PLN"},"RON":{"prefix":"","sufix":"RON"},"RUB":{"prefix":"","sufix":"RUB"},"SAR":{"prefix":"","sufix":"SAR"},"UAH":{"prefix":"","sufix":"UAH"},"USD":{"prefix":"","sufix":"$"},"BGN":{"prefix":"","sufix":"BGN"},"QAR":{"prefix":"","sufix":"QAR"},"ALL":{"prefix":"","sufix":"ALL"},"RSD":{"prefix":"","sufix":"RSD"},"MAD":{"prefix":"","sufix":"MAD"},"HUF":{"prefix":"","sufix":"HUF"},"LVL":{"prefix":"","sufix":"LVL"},"MKD":{"prefix":"","sufix":"MKD"},"GBP":{"prefix":"\u00a3","sufix":""},"AFN":{"prefix":"","sufix":"AFN"},"AMD":{"prefix":"","sufix":"AMD"},"ANG":{"prefix":"","sufix":"ANG"},"AOA":{"prefix":"Kz","sufix":""},"ARS":{"prefix":"","sufix":"ARS"},"ATS":{"prefix":"","sufix":"ATS"},"AUD":{"prefix":"","sufix":"AUD"},"AWG":{"prefix":"","sufix":"AWG"},"AZN":{"prefix":"","sufix":"AZN"},"BBD":{"prefix":"","sufix":"BBD"},"BDT":{"prefix":"","sufix":"BDT"},"BEF":{"prefix":"","sufix":"BEF"},"BIF":{"prefix":"","sufix":"BIF"},"BMD":{"prefix":"","sufix":"BMD"},"BND":{"prefix":"","sufix":"BND"},"BOB":{"prefix":"","sufix":"BOB"},"BRL":{"prefix":"","sufix":"BRL"},"BSD":{"prefix":"","sufix":"BSD"},"BTN":{"prefix":"","sufix":"BTN"},"BWP":{"prefix":"","sufix":"BWP"},"BYN":{"prefix":"","sufix":"BYN"},"BZD":{"prefix":"","sufix":"BZD"},"CAD":{"prefix":"","sufix":"CAD"},"CDF":{"prefix":"","sufix":"CDF"},"CHF":{"prefix":"","sufix":"CHF"},"CLP":{"prefix":"","sufix":"CLP"},"CNY":{"prefix":"","sufix":"CNY"},"COP":{"prefix":"","sufix":"COP"},"CRC":{"prefix":"","sufix":"CRC"},"CSD":{"prefix":"","sufix":"CSD"},"CUP":{"prefix":"","sufix":"CUP"},"CVE":{"prefix":"","sufix":"CVE"},"DEM":{"prefix":"","sufix":"DEM"},"DJF":{"prefix":"","sufix":"DJF"},"DKK":{"prefix":"","sufix":"DKK"},"DOP":{"prefix":"","sufix":"DOP"},"ADP":{"prefix":"","sufix":"ADP"},"DZD":{"prefix":"","sufix":"DZD"},"EEK":{"prefix":"","sufix":"EEK"},"ERN":{"prefix":"","sufix":"ERN"},"ESP":{"prefix":"","sufix":"ESP"},"ETB":{"prefix":"","sufix":"ETB"},"FIM":{"prefix":"","sufix":"FIM"},"FJD":{"prefix":"","sufix":"FJD"},"FKP":{"prefix":"","sufix":"FKP"},"FRF":{"prefix":"","sufix":"FRF"},"GEL":{"prefix":"","sufix":"GEL"},"GHS":{"prefix":"","sufix":"GHS"},"GIP":{"prefix":"","sufix":"GIP"},"GMD":{"prefix":"","sufix":"GMD"},"GNF":{"prefix":"","sufix":"GNF"},"GRD":{"prefix":"","sufix":"GRD"},"GTQ":{"prefix":"","sufix":"GTQ"},"GWP":{"prefix":"","sufix":"GWP"},"GYD":{"prefix":"","sufix":"GYD"},"HKD":{"prefix":"","sufix":"HKD"},"HNL":{"prefix":"","sufix":"HNL"},"HTG":{"prefix":"","sufix":"HTG"},"IDR":{"prefix":"","sufix":"IDR"},"IEP":{"prefix":"","sufix":"IEP"},"ILS":{"prefix":"","sufix":"ILS"},"INR":{"prefix":"","sufix":"INR"},"IQD":{"prefix":"","sufix":"IQD"},"IRR":{"prefix":"","sufix":"IRR"},"ISK":{"prefix":"","sufix":"ISK"},"ITL":{"prefix":"","sufix":"ITL"},"JMD":{"prefix":"","sufix":"JMD"},"JPY":{"prefix":"","sufix":"JPY"},"KES":{"prefix":"","sufix":"KES"},"KGS":{"prefix":"","sufix":"KGS"},"KHR":{"prefix":"","sufix":"KHR"},"KMF":{"prefix":"","sufix":"KMF"},"KPW":{"prefix":"","sufix":"KPW"},"KRW":{"prefix":"","sufix":"KRW"},"KYD":{"prefix":"","sufix":"KYD"},"LAK":{"prefix":"","sufix":"LAK"},"LBP":{"prefix":"","sufix":"LBP"},"LKR":{"prefix":"","sufix":"LKR"},"LRD":{"prefix":"","sufix":"LRD"},"LSL":{"prefix":"","sufix":"LSL"},"LTL":{"prefix":"","sufix":"LTL"},"LUF":{"prefix":"","sufix":"LUF"},"LYD":{"prefix":"","sufix":"LYD"},"MDL":{"prefix":"","sufix":"MDL"},"MGA":{"prefix":"","sufix":"MGA"},"MMK":{"prefix":"","sufix":"MMK"},"MNT":{"prefix":"","sufix":"MNT"},"MOP":{"prefix":"","sufix":"MOP"},"MRU":{"prefix":"","sufix":"MRU"},"MUR":{"prefix":"","sufix":"MUR"},"MVR":{"prefix":"","sufix":"MVR"},"MWK":{"prefix":"","sufix":"MWK"},"MXN":{"prefix":"","sufix":"MXN"},"MXV":{"prefix":"","sufix":"MXV"},"MYR":{"prefix":"","sufix":"MYR"},"MZN":{"prefix":"","sufix":"MZN"},"NAD":{"prefix":"","sufix":"NAD"},"NGN":{"prefix":"","sufix":"NGN"},"NIO":{"prefix":"","sufix":"NIO"},"NLG":{"prefix":"","sufix":"NLG"},"NOK":{"prefix":"","sufix":"NOK"},"NPR":{"prefix":"","sufix":"NPR"},"NZD":{"prefix":"","sufix":"NZD"},"PAB":{"prefix":"","sufix":"PAB"},"PEN":{"prefix":"","sufix":"PEN"},"PGK":{"prefix":"","sufix":"PGK"},"PKR":{"prefix":"","sufix":"PKR"},"PTE":{"prefix":"","sufix":"PTE"},"PYG":{"prefix":"","sufix":"PYG"},"ROL":{"prefix":"","sufix":"ROL"},"RUR":{"prefix":"","sufix":"RUR"},"RWF":{"prefix":"","sufix":"RWF"},"SBD":{"prefix":"","sufix":"SBD"},"SCR":{"prefix":"","sufix":"SCR"},"SDD":{"prefix":"","sufix":"SDD"},"SDG":{"prefix":"","sufix":"SDG"},"SEK":{"prefix":"","sufix":"SEK"},"SGD":{"prefix":"","sufix":"SGD"},"SHP":{"prefix":"","sufix":"SHP"},"SIT":{"prefix":"","sufix":"SIT"},"SKK":{"prefix":"","sufix":"SKK"},"SLL":{"prefix":"","sufix":"SLL"},"SOS":{"prefix":"","sufix":"SOS"},"SRD":{"prefix":"","sufix":"SRD"},"SSP":{"prefix":"","sufix":"SSP"},"STN":{"prefix":"","sufix":"STN"},"SVC":{"prefix":"","sufix":"SVC"},"SYP":{"prefix":"","sufix":"SYP"},"SZL":{"prefix":"","sufix":"SZL"},"THB":{"prefix":"","sufix":"THB"},"TJS":{"prefix":"","sufix":"TJS"},"TMT":{"prefix":"","sufix":"TMT"},"TND":{"prefix":"","sufix":"TND"},"TOP":{"prefix":"","sufix":"TOP"},"TRY":{"prefix":"","sufix":"TRY"},"TTD":{"prefix":"","sufix":"TTD"},"TWD":{"prefix":"","sufix":"TWD"},"TZS":{"prefix":"","sufix":"TZS"},"UGX":{"prefix":"","sufix":"UGX"},"USN":{"prefix":"","sufix":"USN"},"USS":{"prefix":"","sufix":"USS"},"UYU":{"prefix":"","sufix":"UYU"},"UZS":{"prefix":"","sufix":"UZS"},"VEB":{"prefix":"","sufix":"VEB"},"VES":{"prefix":"","sufix":"VES"},"VND":{"prefix":"","sufix":"VND"},"VUV":{"prefix":"","sufix":"VUV"},"WST":{"prefix":"","sufix":"WST"},"XAF":{"prefix":"","sufix":"XAF"},"XCD":{"prefix":"","sufix":"XCD"},"XOF":{"prefix":"","sufix":"XOF"},"XPF":{"prefix":"","sufix":"XPF"},"YER":{"prefix":"","sufix":"YER"},"ZAR":{"prefix":"","sufix":"ZAR"},"ZMW":{"prefix":"","sufix":"ZMW"},"ZWD":{"prefix":"","sufix":"ZWD"}},"CSS_FILE":["https:\/\/1900480730.rsc.cdn77.org\/plugins\/search_meilisearch\/css\/rcc_search.base.min.css","https:\/\/1900480730.rsc.cdn77.org\/style\/rcc_search.custom.min.css"],"SIZES_SORT":["170 cm","\u00danico","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","75 cm","80 cm","85 cm","90 cm","95 cm","100 cm","105 cm","110 cm","115 cm","120 cm","125 cm","130 cm","135 cm","140 cm","145 cm","150 cm","155 cm","160 cm","165 cm","50 ml","60 ml","75 ml","90 ml","100 ml","150 ml","161 ml","165 ml","200 ml","500 ml","60 gr","12\"","14\"","15\"","16\"","19\"","20\"","24\"","28\"","M","L"],"FACETS":[],"FACETS_INFO":[{"name":"generic24","type":"checkbox","label":{"pt":"G\u00e9nero","en":"Gender","fr":"Genre"}},{"name":"category","type":"checkbox","label":{"pt":"Tipo de Produto","en":"Product Type","fr":"Type de produit"}}
1,{"name":"color","type":"checkbox","label":{"pt":"Cor","en":"Color","fr":"Couleur"}},{"name":"price","type":"price","label":{"pt":"Pre\u00e7o","en":"Price","fr":"Prix"}}],"FACETS_BY_TERM":[],"SORTING":{"pt":{"relevance":"Relev\u00e2ncia","title:asc":"Nome (A a Z)","title:desc":"Nome (Z a A)","best_prices_by_country:asc":"Pre\u00e7o Asc.","best_prices_by_country:desc":"Pre\u00e7o Desc."},"en":{"relevance":"Relevance","title:asc":"Name (A to Z)","title:desc":"Name (Z to A)","best_prices_by_country:asc":"Asc. Price","best_prices_by_country:desc":"Desc. Price"},"fr":{"relevance":"Pertinence","title:asc":"Nom (A \u00e0 Z)","title:desc":"Nom (Z \u00e0 A)","best_prices_by_country:asc":"Prix Croiss","best_prices_by_country:desc":"Prix D\u00e9croiss."}},"CONFIG_RESULTS_PAGE":12,"CONFIG_RESULTS_SUGGESTIONS":4,"CONFIG_FILTER_ITEMS":5,"CONFIG_RECENT_RESULTS":6,"CONFIG_POPULAR_RESULTS":6,"CONFIG_RESULTS_SCROLL_TYPE":1,"CONFIG_SUGGESTED_PRODUCTS":6,"PAGE_TITLE":"Cavalinho","RCC_TRACKING":"https:\/\/www.cavalinho.com\/plugins\/search_meilisearch\/rcc_search_track.php","CONFIG_MATCHING_STRATEGY":"all","CONFIG_SEARCH_MIN_LENGTH":0,"CONFIG_SEARCH_REFERENCE_MIN_LENGTH":4,"CONFIG_ITEM_COLOR_FORMAT":0,"CONFIG_LAYOUT_VERSION":"rcc-search-layout-v1","CONFIG_ALLOW_NGRAMS":0,"CONFIG_ITEM_LIMIT_COLORS":4,"CONFIG_ITEM_TAGS_DISPOSITION":1,"CONFIG_ITEM_PROMO_DISCOUNT_INFO":0,"CONFIG_ITEM_HIDE_SALES_UNITS":1,"CONFIG_ITEM_SHOW_ITEM_REFERENCE":0,"CONFIG_ITEM_SHOW_ITEM_AVAILABILITY":0,"CONFIG_DISABLE_SPEECH_RECOGNITION":0,"CONFIG_DISABLE_SPEECH_RECOGNITION_MARKET":[],"CONFIG_PRODUCTS_BOOSTING":0,"CONFIG_PRODUCTS_BOOSTING_LIST":[]};!function(){if(window.searchWidgetInjected)return;window.searchWidgetInjected=!0;document.currentScript;const e=`best_prices_by_country.${parseInt(RCC_PHP_VARS["data-country"])||176}`,t={host:"wss://search.redicom.net/ws",expressions:{},config_file_version:parseInt(RCC_PHP_VARS["data-config-version"]),lang:RCC_PHP_VARS["data-lang"]||"en",user_id:parseInt(RCC_PHP_VARS["data-user-id"])||0,country:parseInt(RCC_PHP_VARS["data-country"])||176,country_code:RCC_PHP_VARS["data-country-code"]||"PT",catalog_id:parseInt(RCC_PHP_VARS["data-catalog"])||0,market_id:parseInt(RCC_PHP_VARS["data-market"])||0,price_list:parseInt(RCC_PHP_VARS["data-price-list"])||0,device:RCC_PHP_VARS["data-device"].toLowerCase()||!1,currency:{prefix:"",sufix:""},sortOptions:{},loadByScroll:!0,sizes_sort:{},suggested_products:{},resultsPerPage:12,resultsPerPageSuggestions:4,MAX_FILTER_ITEMS:5,resultsRecent:5,resultsPopular:10,resultsSuggestedProducts:10,rcc_track_endpoint:null,matchingStrategy:"last",query_min_length:parseInt(RCC_JS_VARS.CONFIG_SEARCH_MIN_LENGTH)||3,query_ref_min_length:9,disable_log_ch:parseInt(RCC_PHP_VARS["data-disable-log"])||0,speech_recognition_regions:{pt:"pt-PT",en:"en-GB",es:"es-ES",fr:"fr-FR",de:"de-DE",it:"it-IT",nl:"nl-NL",us:"en-US"},allow_ngrams_search:parseInt(RCC_JS_VARS.CONFIG_ALLOW_NGRAMS)||0,product_item_limit_colors:parseInt(RCC_JS_VARS.CONFIG_ITEM_LIMIT_COLORS)||0,product_item_color_format:0,layout_version:RCC_JS_VARS.CONFIG_LAYOUT_VERSION||"rcc-search-layout-v1",product_tags_layout:parseInt(RCC_JS_VARS.CONFIG_ITEM_TAGS_DISPOSITION)||0,hide_sales_units:parseInt(RCC_JS_VARS.CONFIG_ITEM_HIDE_SALES_UNITS)||0,show_product_reference:parseInt(RCC_JS_VARS.CONFIG_ITEM_SHOW_ITEM_REFERENCE)||0,show_product_availability:parseInt(RCC_JS_VARS.CONFIG_ITEM_SHOW_ITEM_AVAILABILITY)||0,request_quote:parseInt(RCC_PHP_VARS["data-request-quote"])||0,disable_speech_recognition:parseInt(RCC_JS_VARS.CONFIG_DISABLE_SPEECH_RECOGNITION)||0,product_boosting:parseInt(RCC_JS_VARS.CONFIG_PRODUCTS_BOOSTING)||0},r={user_seg:RCC_PHP_VARS["data-user-seg"]||[],user_reg:parseInt(RCC_PHP_VARS["data-user-reg"])||0,site_channel:parseInt(RCC_PHP_VARS["data-site-channel"])||1};if(t.device||(t.device="desktop",window.innerWidth<768&&(t.device="mobile")),RCC_JS_VARS&&RCC_JS_VARS.CONFIG_DISABLE_SPEECH_RECOGNITION_MARKET){const e=RCC_JS_VARS.CONFIG_DISABLE_SPEECH_RECOGNITION_MARKET;Array.isArray(e)&&t.market_id&&e.includes(t.market_id)&&(t.disable_speech_recognition=1)}function c(){o=document.createElement("div"),o.className="rcc-search-widget-wrapper "+t.layout_version,o.style.display="none",l=document.createElement("div"),l.className="rcc-search-overlay",o.innerHTML=`\n        <div class="rcc-search-widget-header">        \n          <a href="${window.location.origin}"><img src="" class="rcc-search-logo" alt="" title="" /></a>\n          <div class="rcc-search-input-container">\n            <button class="rcc-search-back-button" aria-label="" alt="" title=""></button>\n            <div class="rcc-search-widget-input-wrapper">\n                <div class="rcc-search-widget-input" contenteditable="plaintext-only" role="textbox" aria-autocomplete="both" aria-haspopup="listbox" spellcheck="false"></div>\n                <div class="rcc-search-mic-button"></div>\n            </div>\n          </div>\n          <button class="rcc-search-close-button" aria-label="" alt="" title=""></button>\n          <div class="rcc-search-suggestions"></div>\n          <div class="rcc-search-start-screen scroll-y" id="rcc-search-start-screen">\n            <div class="rcc-search-start-grid">\n              <div class="rcc-search-start-col rcc-search-start-recent">\n                  <p></p>\n                  <div class="rcc-search-suggestion-item-recents"></div>\n              </div>\n            \n              <div class="rcc-search-start-col rcc-search-start-popular">\n                <p></p>\n                <div class="rcc-search-popular-terms"></div>\n              </div>\n              \n              <div class="rcc-search-start-col rcc-search-start-no-results">\n                <p></p>\n              </div>\n\n              <div class="rcc-search-start-col rcc-search-start-suggested-products">\n                <p></p>\n                <div class="rcc-search-products-slider-container">\n                  <button class="rcc-search-slider-arrow rcc-search-left" aria-label="" alt="" title=""></button>\n                  <div class="rcc-search-products-slider">\n                    <div class="rcc-search-products-list"></div>\n                  </div>\n                  <button class="rcc-search-slider-arrow rcc-search-right" aria-label="" alt="" title=""></button>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n\n        <div class="rcc-search-widget-body" style="display: none;">\n          <div class="rcc-search-filters-column">\n            <div class="rcc-search-filters">\n              <div id="rcc-search-filters-container"></div>\n            </div>\n            <a href="#clearFilters" class="rcc-search-clear-filters-button" rel="nofollow" aria-hidden="true" tabindex="-1"></a>\n          </div>  \n          <div class="rcc-search-results-column scroll-y">\n            <div class="rcc-search-results-header">\n              <div class="rcc-search-results-count"></div>\n              <select class="rcc-search-sort-select"></select>\n            </div>\n            <div class="rcc-search-promo-banner"></div>\n            <main class="rcc-search-results"></main>\n            <div class="rcc-search-load-more-container">\n              <button class="rcc-search-load-more-button" style="display: none;"></button>\n            </div>\n            <button class="rcc-search-filters-mobile-button" aria-expanded="true" aria-label="" alt="" title=""><span id="rcc-search-filters-mobile-button-label"></span> <span class="rcc-search-filters-mobile-button-count"></span></button>\n          </div>\n        </div>\n        <button class="rcc-search-back-to-top-button" aria-label="" alt="" title=""></button>\n        <div class="rcc-search-filters-mobile">\n            <button class="rcc-search-filters-mobile-close-button" aria-label="" alt="" title=""></button>\n            <div class="rcc-search-filters-mobile-content">\n                <div class="rcc-search-filters-mobile-title">\n                    <p><span id="rcc-search-filters-mobile-overlay-label"></span> <span class="rcc-search-filters-mobile-count"></span></p>\n                </div>\n                <div id="rcc-search-filters-container-mobile" class="scroll-y"></div>\n                <div class="rcc-search-clear-filters-mobile">\n                    <a href="#clearFilters" class="rcc-search-clear-filters-button" rel="nofollow" aria-hidden="true" tabindex="-1"></a>\n                </div>\n            </div>\n        </div>\n      `,"app"==t.device?(document.querySelector("pwa-nav.active pwa-page.active page[ng-controller]").appendChild(o),document.querySelector("pwa-nav.active pwa-page.active page[ng-controller]").appendChild(l)):(document.body.appendChild(o),document.body.appendChild(l)),H=o.querySelector(".rcc-search-close-button"),O=o.querySelector(".rcc-search-back-button"),M=o.querySelector(".rcc-search-widget-input"),V=o.querySelector(".rcc-search-suggestions"),F=o.querySelector(".rcc-search-results"),X="mobile"===t.device||"app"===t.device?o.querySelector("#rcc-search-filters-container-mobile"):o.querySelector("#rcc-search-filters-container"),J=o.querySelector(".rcc-search-results-count"),G=o.querySelector(".rcc-search-sort-select"),D=o.querySelector(".rcc-search-load-more-button"),U=o.querySelector(".rcc-search-widget-body"),W="mobile"===t.device||"app"===t.device?o.querySelector(".rcc-search-clear-filters-mobile .rcc-search-clear-filters-button"):o.querySelector(".rcc-search-clear-filters-button"),j="mobile"===t.device||"app"===t.device?o.querySelector(".rcc-search-clear-filters-mobile"):o.querySelector(".rcc-search-clear-filters-button"),B=o.querySelector(".rcc-search-results-column"),z=o.querySelector(".rcc-search-back-to-top-button"),K=o.querySelector("#rcc-search-filters-container-mobile"),Y=o.querySelector(".rcc-search-filters-mobile-button"),Z=o.querySelector(".rcc-search-filters-mobile"),Q=o.querySelector(".rcc-search-filters-mobile-close-button"),ee=o.querySelector(".rcc-search-filters-mobile-button-count"),te=o.querySelector(".rcc-search-filters-mobile-count"),re=o.querySelector(".rcc-search-start-no-results"),ae=o.querySelector(".rcc-search-mic-button"),ne=o.querySelector(".rcc-search-promo-banner"),ie=o.querySelector(".rcc-search-filters-column"),H.addEventListener("click",ue),O.addEventListener("click",ue),l.addEventListener("click",ue),document.addEventListener("keydown",e=>{"Escape"===e.key&&"grid"===o.style.display&&ue()}),M.addEventListener("input",()=>{const e=we(M);u=e,Oe();const r=/\d/.test(e)&&/^[a-zA-Z0-9.\-_]+$/.test(e);let c=t.query_min_length;if(r&&(c=t.query_ref_min_length),e.length<c)return V.classList.remove("active"),V.innerHTML="",0===e.length?ve():X.innerHTML="",re.style.display="none",Ae(),pe(),void clearTimeout(a);
1xe(),setTimeout(Me,0),clearTimeout(a),a=setTimeout(()=>{p=1,me(e,p,0),ge(e),Fe(e,p,"")},300)}),X.addEventListener("change",e=>{e.target.matches('input[type="checkbox"][data-filter]')&&(p=1,me(u,1,0),Fe(u,1,""),Re(),Le())}),V.addEventListener("click",e=>{const r=e.target.closest(".rcc-search-suggestion-item");if(r&&!r.classList.contains("disabled")){const e=r.getAttribute("data-name");M.textContent=e,u=e,V.classList.remove("active"),p=1,xe(),me(e,p,0),Fe(e,p,""),ge(e),He(),"desktop"!=t.device&&M.blur()}}),M.addEventListener("blur",()=>{setTimeout(()=>V.classList.remove("active"),150),qe()}),V.addEventListener("mousedown",e=>{e.preventDefault()}),M.addEventListener("focus",()=>{V.innerHTML&&V.classList.contains("active")&&V.classList.add("active");const e=M.querySelector(".rcc-search-input-placeholder");e&&e.remove(),He()}),M.addEventListener("mousedown",function(e){e.target,window.getSelection(),document.createRange();setTimeout(()=>{if(e.target.classList&&e.target.classList.contains("rcc-search-input-ghost"))return e.preventDefault(),void He();const t=M.querySelector(".rcc-search-input-ghost");if(!t)return;const r=document.caretRangeFromPoint?.(e.clientX,e.clientY);if(!r||!M.contains(r.startContainer))return;const c=r.startContainer,s=r.startOffset;if((c===t||c===t.firstChild)&&s>0)return e.preventDefault(),void He();let a=c;for(;a&&a.parentNode!==M;)a=a.parentNode;if(a){const r=Array.from(M.childNodes),c=r.indexOf(t),n=r.indexOf(a);(n>c||n===c&&s>0)&&(e.preventDefault(),He())}else He()},1)}),M.addEventListener("keyup",e=>{["Backspace","Delete","ArrowUp","ArrowDown"].includes(e.key)&&Oe()}),M.addEventListener("keydown",e=>{const t=we(M),r=["ArrowUp","ArrowDown","Backspace","Delete","Home","End","Tab","Escape","Enter","Shift","Control","Alt","Meta"].includes(e.key);t.length>=se&&!r&&!e.ctrlKey&&!e.metaKey&&e.preventDefault(),"Enter"===e.key&&e.preventDefault(),"Tab"===e.key&&(e.preventDefault(),function(){const e=Ne(we(M));if(!e)return!1;M.textContent=e;const t=document.createRange(),r=window.getSelection();t.selectNodeContents(M),t.collapse(!1),r.removeAllRanges(),r.addRange(t),p=1,me(e,p,0),Fe(e,p,""),ge(e)}())}),M.addEventListener("paste",e=>{e.preventDefault();const t=(e.clipboardData||window.clipboardData).getData("text");document.execCommand("insertText",!1,t),setTimeout(Me,0)}),M.addEventListener("cut",()=>setTimeout(Me,0)),M.addEventListener("drop",()=>setTimeout(Me,0)),G.addEventListener("change",()=>{p=1,me(u,p,0),Fe(u,p,"")}),D.addEventListener("click",()=>{Ce()}),W.addEventListener("click",Ee),B.addEventListener("scroll",()=>{t.loadByScroll&&!C&&h&&(clearTimeout(i),i=setTimeout(()=>{(function(e,t=100){return e.scrollHeight-e.scrollTop-e.clientHeight<t})(B,200)&&Ce()},100),z.style.display=B.scrollTop>100?"flex":"none")}),z.addEventListener("click",()=>{ke(),z.style.display="none"}),Y.addEventListener("click",()=>{Z.style.display="block"}),Q.addEventListener("click",()=>{Z.style.display="none"});const e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e||t.disable_speech_recognition)ae.style.display="none";else{ae.style.display="block";const r=new e;r.lang=t.speech_recognition_regions[t.lang]||"pt-PT",r.interimResults=!1,r.maxAlternatives=1,ae&&(ae.addEventListener("click",e=>{if(ae.classList.contains("active"))r.stop();else try{r.start(),ae.classList.add("active")}catch(e){}}),r.addEventListener("result",e=>{const r=e.results[0][0].transcript.trim();r&&(M.textContent=r,p=1,xe(),me(r,p,1),Fe(r,p,""),ge(r),He(),"desktop"!=t.device&&M.blur())}),r.addEventListener("end",()=>{ae.classList.remove("active")}))}window.innerWidth<768&&(["input","keydown","keyup","keypress","touchstart"].forEach(e=>{M.addEventListener(e,()=>{Ve()})}),M.addEventListener("focus",()=>{Ve()}),M.addEventListener("blur",()=>{clearTimeout(n)}))}function s(){if("undefined"!=typeof RCC_JS_VARS){if(RCC_JS_VARS.CSS_FILE.length>0&&RCC_JS_VARS.CSS_FILE.forEach(e=>{!function(e){if(""==e.trim())return!1;const r=document.createElement("link");r.rel="stylesheet",r.href=e+"?"+t.config_file_version,r.type="text/css",document.head.appendChild(r)}(e)}),RCC_JS_VARS.EXPRESSIONS[RCC_PHP_VARS["data-lang"]])for(const[e,t]of Object.entries(RCC_JS_VARS.EXPRESSIONS[RCC_PHP_VARS["data-lang"]]))""!=t.trim()&&(RCC_JS_VARS.EXPRESSIONS[RCC_PHP_VARS["data-lang"]][e]=Xe(t));if(RCC_JS_VARS.FACETS[RCC_PHP_VARS["data-lang"]])for(const[e,t]of Object.entries(RCC_JS_VARS.FACETS[RCC_PHP_VARS["data-lang"]]))""!=t.trim()&&(RCC_JS_VARS.FACETS[RCC_PHP_VARS["data-lang"]][e]=Xe(t));if(RCC_JS_VARS.SORTING[RCC_PHP_VARS["data-lang"]])for(const[e,t]of Object.entries(RCC_JS_VARS.SORTING[RCC_PHP_VARS["data-lang"]]))""!=t.trim()&&(RCC_JS_VARS.SORTING[RCC_PHP_VARS["data-lang"]][e]=Xe(t));t.currency=RCC_JS_VARS.CURRENCIES[RCC_PHP_VARS["data-currency"]],t.expressions=RCC_JS_VARS.EXPRESSIONS[RCC_PHP_VARS["data-lang"]],t.rcc_track_endpoint=RCC_JS_VARS.RCC_TRACKING,H.setAttribute("aria-label",t.expressions.EXP2),H.setAttribute("alt",t.expressions.EXP2),H.setAttribute("title",t.expressions.EXP2),O.setAttribute("aria-label",t.expressions.EXP2),O.setAttribute("alt",t.expressions.EXP2),O.setAttribute("title",t.expressions.EXP2),Q.setAttribute("aria-label",t.expressions.EXP2),Q.setAttribute("alt",t.expressions.EXP2),Q.setAttribute("title",t.expressions.EXP2),o.querySelector(".rcc-search-start-recent p").innerHTML=t.expressions.EXP3,o.querySelector(".rcc-search-start-popular p").innerHTML=t.expressions.EXP4,o.querySelector(".rcc-search-start-suggested-products p").innerHTML=t.expressions.EXP5,o.querySelector(".rcc-search-slider-arrow.rcc-search-left").setAttribute("aria-label",t.expressions.EXP6
1),o.querySelector(".rcc-search-slider-arrow.rcc-search-left").setAttribute("alt",t.expressions.EXP6),o.querySelector(".rcc-search-slider-arrow.rcc-search-left").setAttribute("title",t.expressions.EXP6),o.querySelector(".rcc-search-slider-arrow.rcc-search-right").setAttribute("aria-label",t.expressions.EXP7),o.querySelector(".rcc-search-slider-arrow.rcc-search-right").setAttribute("alt",t.expressions.EXP7),o.querySelector(".rcc-search-slider-arrow.rcc-search-right").setAttribute("title",t.expressions.EXP7),o.querySelector(".rcc-search-start-no-results p").innerHTML=t.expressions.EXP9,D.innerHTML=t.expressions.EXP10,W.innerHTML=t.expressions.EXP13,z.setAttribute("aria-label",t.expressions.EXP16),z.setAttribute("alt",t.expressions.EXP16),z.setAttribute("title",t.expressions.EXP16),Y.setAttribute("aria-label",t.expressions.EXP17),Y.setAttribute("alt",t.expressions.EXP17),Y.setAttribute("title",t.expressions.EXP17),o.querySelector("#rcc-search-filters-mobile-button-label").innerHTML=t.expressions.EXP17,o.querySelector("#rcc-search-filters-mobile-overlay-label").innerHTML=t.expressions.EXP17,t.sizes_sort=RCC_JS_VARS.SIZES_SORT,t.sortOptions=RCC_JS_VARS.SORTING[RCC_PHP_VARS["data-lang"]],t.resultsPerPage=parseInt(RCC_JS_VARS.CONFIG_RESULTS_PAGE)>0?RCC_JS_VARS.CONFIG_RESULTS_PAGE:t.resultsPerPage,t.resultsPerPageSuggestions=RCC_JS_VARS.CONFIG_RESULTS_SUGGESTIONS,t.MAX_FILTER_ITEMS=RCC_JS_VARS.CONFIG_FILTER_ITEMS,t.resultsRecent=RCC_JS_VARS.CONFIG_RECENT_RESULTS,t.resultsPopular=RCC_JS_VARS.CONFIG_POPULAR_RESULTS,t.loadByScroll=1==parseInt(RCC_JS_VARS.CONFIG_RESULTS_SCROLL_TYPE),t.resultsSuggestedProducts=RCC_JS_VARS.CONFIG_SUGGESTED_PRODUCTS,t.suggested_products=RCC_JS_VARS.CONFIG_SUGGESTED_PRODUCTS_LIST,o.querySelector(".rcc-search-logo").setAttribute("src",RCC_PHP_VARS["data-logo-file"]),o.querySelector(".rcc-search-logo").setAttribute("alt",RCC_JS_VARS.PAGE_TITLE),o.querySelector(".rcc-search-logo").setAttribute("title",RCC_JS_VARS.PAGE_TITLE),""!=RCC_JS_VARS.CONFIG_MATCHING_STRATEGY.trim()&&(t.matchingStrategy=RCC_JS_VARS.CONFIG_MATCHING_STRATEGY),void 0!==RCC_JS_VARS.CONFIG_SEARCH_REFERENCE_MIN_LENGTH&&parseInt(RCC_JS_VARS.CONFIG_SEARCH_REFERENCE_MIN_LENGTH)>0&&(t.query_ref_min_length=parseInt(RCC_JS_VARS.CONFIG_SEARCH_REFERENCE_MIN_LENGTH)),void 0!==RCC_JS_VARS.CONFIG_ITEM_COLOR_FORMAT&&parseInt(RCC_JS_VARS.CONFIG_ITEM_COLOR_FORMAT)>0&&(t.product_item_color_format=parseInt(RCC_JS_VARS.CONFIG_ITEM_COLOR_FORMAT))}}null!=typeof window.config&&parseInt(window.config?.app)>0&&(t.device="app",t.layout_version="rcc-search-layout-app");let a,n,i,o=null,l=null,d=null,u="",p=1,h=!1,m=!1,_=null,g="",f=!1,y=null,S=null,v=null,C=!1,b=null,E=[],R=[],I=[],P=null,A=null,x=null,$=!1,k=null,L=null,T=!1,w="",q=["___ratingbadge_0","_2chat-whatsapp-widget"],N=[],H=null,O=null,M=null,V=null,F=null,X=null,J=null,G=null,D=null,U=null,W=null,j=null,B=null,z=null,K=null,Y=null,Z=null,Q=null,ee=null,te=null,re=null,ce=e=>(e??"").normalize("NFC").toLowerCase(),se=50,ae=null,ne=null,ie=null;function oe(){(!d||d.readyState!==WebSocket.OPEN&&d.readyState!==WebSocket.CONNECTING)&&t.host&&(d=new WebSocket(t.host),d.addEventListener("open",()=>{de(),x&&function(){if(x){x.urlParams;const e=x.searchParam,r=x.pageParam,c=x.skugroup,s=x.filtersParam,a=x.orderParam;w=c,x=null,e&&e.length>=t.query_min_length&&(function(e,t,r){r&&G.querySelector(`option[value="${r}"]`)&&(G.value=r),t&&(P={},atob(t).split("|").forEach(e=>{const[t,r]=e.split(":").map(decodeURIComponent);t.endsWith("_min")||t.endsWith("_max")?P[t]=r:(P[t]||(P[t]=[]),P[t].push(r))}),A=P,M.textContent=e,g=e,_e(e,1))}(e,s,a),setTimeout(()=>{M.textContent=e,u=e,p=1,xe();const t=()=>{if(p>=r||!h)return Fe(u,p,""),void setTimeout(()=>{A=null,w=""},1e3);Ce(),setTimeout(t,400)};me(e,1,0),ge(e),r>1?setTimeout(t,600):(Fe(u,p,""),setTimeout(()=>{A=null,w=""},1e3))},500))}}()}),d.addEventListener("error",e=>{setTimeout(oe,5e3)}),d.addEventListener("close",e=>{e.wasClean||setTimeout(oe,5e3)}),window.addEventListener("pagehide",le),d.addEventListener("message",e=>{const c=JSON.parse(e.data);if("search"===c.action){if(C=!1,D.disabled=!1,h=parseInt(c.estimatedTotalHits)>c.page*t.resultsPerPage,h?t.loadByScroll||(D.style.display="block",D.disabled=!1,D.textContent=t.expressions.EXP10):D.style.display="none",function(e){if(e.hits.length>0){m||(m||(o.classList.remove("rcc-search-minimal"),o.classList.add("rcc-search-expanded"),U.style.display="flex",m=!0),t.loadByScroll?D.style.display="none":D.style.display="block"),1===p&&(F.innerHTML="",u.trim()&&function(e){if(!e||!u.trim())return;const r=t.lang,c=t.country,s=parseInt(t.resultsRecent)||5,a=Date.now(),n=`rcc_search_recent_${r}_${c}`;let i=[];try{const e=localStorage.getItem(n);e&&(i=JSON.parse(e).filter(e=>"object"==typeof e&&e.query&&"number"==typeof e.timestamp))}catch(e){}i=i.filter(t=>t.query!==e),i.unshift({query:e,timestamp:a});const o=a-864e5;i=i.filter(e=>e.timestamp>=o),i=i.slice(0,s);try{localStorage.setItem(n,JSON.stringify(i))}catch(e){}}(u.trim()));const c=document.createDocumentFragment();
1e.hits.forEach(s=>{const a=document.createElement("div");a.className="rcc-search-result-item product";const n=document.createElement("div");n.className="rcc-search-result-item-img-wrapper";let i=null;"app"==t.device?(i=document.createElement("div"),i.setAttribute("data-linkurl",s.url)):(i=document.createElement("a"),i.href=s.url),i.dataset.skugroup=s.sku_group,i.dataset.page=parseInt(e.page);const l=document.createElement("img");l.src=s.images[0],l.alt=s.title,l.title=s.title;const d=document.createElement("figure");d.className="productMask loader";const h=document.createElement("figcaption");h.innerHTML=s.title,d.appendChild(l),d.appendChild(h),i.appendChild(d),n.appendChild(i);let m={},_="",g="",f="",y="",S=[];s.skus.forEach(e=>{e.prices.forEach(c=>{if(parseInt(t.price_list)>0&&parseInt(c.price_list)>0&&parseInt(t.price_list)!=parseInt(c.price_list))return;const s=atob(c.key_price).split("||"),a=parseInt(s[1])||0,n=s[2].split(",")||[],i=s[3].split(",")||[],o=s[4].split(",").map(Number)||[],l=parseInt(s[5]),d=parseInt(s[6])||0,u=btoa(e.sku+"||"+n+"||"+i+"||"+o+"||"+l);if(c.promo_id=a,c.order_by=a<1?9999:d,c.sku=e.sku,c.pais_id==t.country&&c.key_price){let e=1;""!=s[2]&&n&&r.user_seg&&!n.some(e=>r.user_seg.includes(e))&&(e=0),""!=s[3]&&i&&r.user_seg&&i.some(e=>r.user_seg.includes(e))&&(e=0),""!=s[4]&&o&&r.site_channel&&!o.includes(r.site_channel)&&(e=0),l>0&&(2==l&&r.user_reg<1||l>2&&l<r.user_reg)&&(e=0),e>0&&(Object.keys(S).includes(u)?a>0&&(d<S[u].order_by||d==S[u].order_by&&a>S[u].promo_id)&&(S[u]=c):S[u]=c)}})});let v=0,C=new Set;if(Object.keys(S).length>0){for(const[e,t]of Object.entries(S))m.regular||(m=t),m.best_price>t.best_price&&(m=t),C.has(t.regular)||C.add(t.regular);C.size>1&&(v=1)}if(m.regular>0){let e="";void 0!==s.sales_unit&&""!=s?.sales_unit.trim()&&parseInt(t.hide_sales_units)<1&&(e=`<span class="rcc-search-price-sales-unit"> /${s.sales_unit}</span>`);let r="";if(v>0&&void 0!==t.expressions.EXP23&&""!=t.expressions.EXP23.trim()&&(r=`<div class="rcc-search-price-variation">${t.expressions.EXP23}</div>`),m.discount>0){let c=`${m.discount_value}%`;m.regular>m.discount&&parseInt(RCC_JS_VARS.CONFIG_ITEM_PROMO_DISCOUNT_INFO)>0&&(c=`${t.currency.prefix} ${(m.regular-m.discount).toFixed(2).replace(".",",")}${t.currency.sufix}`),_=`\n              <div class="rcc-search-price-info-wrapper">\n                ${r}  \n                <div class="rcc-search-price-info-normal rcc-search-price-promo">\n                  <span class="rcc-search-old-price">${t.currency.prefix} ${m.regular.toFixed(2).replace(".",",")}${t.currency.sufix}</span>\n                  <span class="rcc-search-discount-value">${c}</span>\n                  <span class="rcc-search-price">${t.currency.prefix} ${m.discount.toFixed(2).replace(".",",")}${t.currency.sufix}${e}</span>\n                </div>\n              </div>\n            `}else _=`\n              <div class="rcc-search-price-info-wrapper">\n                ${r}\n                <div class="rcc-search-price-info-normal rcc-search-price-promo">  \n                  <span class="rcc-search-price">${t.currency.prefix} ${m.regular.toFixed(2).replace(".",",")}${t.currency.sufix}${e}</span>\n                </div>  \n              </div>\n            `}else parseInt(t.request_quote)>0&&void 0!==t.expressions.EXP21&&""!=t.expressions.EXP21.trim()&&(_=`\n              <div class="rcc-search-price-info-wrapper">\n                <div class="rcc-search-price-info-normal rcc-search-price-promo">  \n                  <span class="rcc-search-price rcc-search-price-request-quote">${t.expressions.EXP21}</span>\n                </div>  \n              </div>\n            `);if(parseInt(s.deposit_add_value)>0&&(g=`<div class="rcc-search-info-product-deposit-add-value"><p>+${t.currency.prefix} ${s.deposit_add_value.toFixed(2).replace(".",",")}${t.currency.sufix} / ${t.expressions.EXP22}</p></div>`),s.available_colors.length>0){let e=[];s.available_colors.forEach(t=>{let r=1;void 0!==t.markets&&(r=0,parseInt(RCC_PHP_VARS["data-market"])>0&&t.markets.includes(parseInt(RCC_PHP_VARS["data-market"]))&&(r=1)),r>0&&e.push(t)}),2==t.product_item_color_format?e.length>1&&(f=`<span class='rcc-search-info-color-dot rcc-search-info-total-colors'>+${e.length} ${t.expressions.EXP18}</span>`):(f=(parseInt(t.product_item_limit_colors)>0?e.slice(0,t.product_item_limit_colors):e).map(e=>e.image_url&&""!==e.image_url.trim()?`<span class="rcc-search-info-color-dot" style="background-image:url('${e.image_url}');" alt="${e.name}" title="${e.name}"></span>`:`<span class="rcc-search-info-color-dot" style="background-color:#${e.hex};" alt="${e.name}" title="${e.name}"></span>`).join(""),parseInt(t.product_item_limit_colors)>0&&e.length-t.product_item_limit_colors>0&&(f+=`<span class='rcc-search-info-color-dot rcc-search-info-more-colors'>+${e.length-t.product_item_limit_colors}</span>`)),""!=f.trim()&&(f=`<div class="rcc-search-info-product-colors">${f}</div>`)}let E=0,R={id:0,nome:""};const I=document.createElement("div");if(I.className="app"==t.device?`rcc-search-item-tags rcc-search-tag-layout${t.product_tags_layout} product__tags`:`rcc-search-item-tags rcc-search-tag-layout${t.product_tags_layout} flags`,RCC_PHP_VARS["data-product-tags"]&&RCC_PHP_VARS["data-product-tags"].forEach(e
1=>{let r=0,c=e;if(1==parseInt(e.id)&&m.discount>0?R=e:(2==parseInt(e.id)&&parseInt(s.new_product)>0&&""!=e.nome.trim()||parseInt(e.id)>2&&s.tags.includes(parseInt(e.id))&&""!=e.nome.trim())&&(r=1),r>0){E++;let e=document.createElement("div");e.className="app"==t.device?`rcc-search-item-tag rcc-search-tag-${c.id} product__tagsitem`:`rcc-search-item-tag rcc-search-tag-${c.id} flag`,e.style.backgroundColor="#"+c.cor,e.style.color="#"+c.cor_text,e.innerHTML=c.nome,I.appendChild(e)}}),m.discount>0&&RCC_PHP_VARS["data-product-promo-tags"]){let e={},r={},c=0;if(RCC_PHP_VARS["data-product-promo-tags"].forEach(t=>{parseInt(m.promo_id)>0&&parseInt(t.id)==parseInt(m.promo_id)&&(e=t)}),parseInt(e.id)>0)if(3==parseInt(e.type_tag)){c=1;let s=m.regular-m.discount;r.id=1,r.nome=`-${t.currency.prefix} ${s.toFixed(2).replace(".",",")}${t.currency.sufix}`,r.cor=e.cor,r.cor_text=e.cor_text}else 2!=parseInt(e.type_tag)&&0!=parseInt(e.type_tag)||""==e.nome.trim()?(1==parseInt(e.type_tag)||0==parseInt(e.type_tag))&&parseInt(R.id)>0&&""!=R.nome.trim()&&(c=1,r.id=R.id,r.nome=R.nome,r.cor=R.cor,r.cor_text=R.cor_text):(c=1,r.id=1,r.nome=e.nome,r.cor=e.cor,r.cor_text=e.cor_text);if(c>0){E++;let e=document.createElement("div");e.className="app"==t.device?`rcc-search-item-tag rcc-search-tag-${r.id} product__tagsitem`:`rcc-search-item-tag rcc-search-tag-${r.id} flag`,e.style.backgroundColor="#"+r.cor,e.style.color="#"+r.cor_text,e.innerHTML=r.nome,I.appendChild(e)}}E>0&&[1,2,3,4].includes(parseInt(t.product_tags_layout))&&n.appendChild(I),a.appendChild(n);const P=document.createElement("div");if(P.className="rcc-search-info clearfix",E>0&&[5].includes(parseInt(t.product_tags_layout))&&P.appendChild(I),parseInt(t.show_product_reference)>0){let e=document.createElement("div");e.className="rcc-search-item-reference",e.innerHTML=`<span>Ref: </span>${s.sku_group}`,P.appendChild(e)}if(""===s.brand.trim()&&(s.brand="&nbsp;"),"function"==typeof window.RCC_Search_Item_Extra_Info){try{result_html_custom=RCC_Search_Item_Extra_Info(s)}catch(e){result_html_custom=""}""!=result_html_custom.trim()&&(y=result_html_custom)}if(P.innerHTML+=`\n            <div class="rcc-search-item-brand"><b>${s.brand}</b></div>  \n            <div class="rcc-search-item-title"><p>${s.title}</p></div>\n            ${_}\n            ${g}\n            ${f}\n            ${y}\n        `,E>0&&[6].includes(parseInt(t.product_tags_layout))&&P.appendChild(I),parseInt(t.show_product_availability)>0){let e=document.createElement("div");e.className="rcc-search-stock-info",parseInt(s.stock_by_market)>0?e.innerHTML=`<span class="rcc-search-stock-available">${t.expressions.EXP19}</span>`:e.innerHTML=`<span class="rcc-search-stock-unavailable">${t.expressions.EXP20}</span>`,P.appendChild(e)}a.appendChild(P),i.addEventListener("click",function(e){if(e.ctrlKey||e.metaKey||e.shiftKey||1===e.button)return;e.preventDefault();const r=this.href,c=parseInt(this.dataset.page),s=Date.now(),a=[];let n=Math.round((s-b)/1e3);[...o.querySelectorAll(`.rcc-search-results .rcc-search-result-item [data-page='${c}']`)].forEach(e=>{a.push(e.dataset.skugroup)});const i={page:window.location.pathname+window.location.hash,page_title:btoa(unescape(encodeURIComponent(document.title))),timeSpent:n,skus:[this.dataset.skugroup],skus_related:a||[],pagination:c,section:"PRP",device:t.device,search_terms:btoa(u.trim())};if(Te(),"app"!=t.device){const e=btoa(this.dataset.skugroup),t=new URL(window.location);t.searchParams.set("term",u),t.searchParams.set("page",p),t.searchParams.set("skugroup",e);const r=Ie(),c=[];for(const e in r)Array.isArray(r[e])?r[e].forEach(t=>{c.push(`${encodeURIComponent(e)}:${encodeURIComponent(t)}`)}):(e.endsWith("_min")||e.endsWith("_max"))&&c.push(`${encodeURIComponent(e)}:${encodeURIComponent(r[e])}`);c.length>0&&t.searchParams.set("filters",btoa(unescape(encodeURIComponent(c.join("|")))));const s=G.value;s&&""!==s&&t.searchParams.set("order",btoa(s)),window.history.pushState({},"",t)}void 0!==t.rcc_track_endpoint&&""!=t.rcc_track_endpoint.trim()&&parseInt(t.disable_log_ch)<1?fetch(t.rcc_track_endpoint,{method:"POST",headers:{"Content-Type":"text/plain"},body:btoa(unescape(encodeURIComponent(JSON.stringify(i))))}).then(()=>{"app"!=t.device&&(window.location.href=r)}
1).catch(()=>{"app"!=t.device&&(window.location.href=r)}):setTimeout(()=>{"app"!=t.device&&(window.location.href=r)},50)}),c.appendChild(a)}),F.appendChild(c),Fe(u,p,""),t.resultsPerPage,e.hits.length,J.textContent=`${e.estimatedTotalHits} ${t.expressions.EXP8}`,1===p&&t.loadByScroll&&function(){const e=o.querySelector(".rcc-search-results-column");if(!e||1!==p||!h)return;const t=e.scrollHeight>e.clientHeight;t||setTimeout(()=>{Ce()},500)}()}else{const e=Ie();0!==Object.keys(e).length?1===p&&(F.innerHTML="",J.textContent=`0 ${t.expressions.EXP8}`):(pe(),Ae(),re.style.display="block",g="")}}(c),1===p&&c.hits.length>0&&ke(),""!=w.trim()){const e=F.querySelector(`[data-skugroup="${w}"]`);e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",block:"center"}),w=""},300)}}else"start_facets"===c.action?1===parseInt(c.page)&&c.hits.length>0&&function(e,r,c){const s=we(M);if(k=e,L=r,s===g&&_&&parseInt(c)<1)Se(k,L);else if(_=e,g=s,function(e,r){X.innerHTML="",ie.style.display="none",Y.style.display="none",Je().forEach(c=>{const s=fe(c);if("price"===c.type||"slider"===c.type)ye(c,s,Math.floor(r[s].min),Math.ceil(r[s].max));else{const r=e[s],a=parseInt(RCC_PHP_VARS["data-site-version"])>=0?"magic-checkbox":"";let n=Object.entries(r);if(n.length>1){"available_sizes"===s&&n.sort((e,r)=>{const c=t.sizes_sort.indexOf(e[0]),s=t.sizes_sort.indexOf(r[0]);return-1===c&&-1===s?0:-1===c?1:-1===s?-1:c-s});const e=document.createElement("p");e.className="list-nav-title",e.textContent=c.label&&c.label[t.lang]||be(s),X.appendChild(e);const r=document.createElement("div");if(r.className="rcc-search-filter-group",n.slice(0,t.MAX_FILTER_ITEMS).forEach(([e,t])=>{const c=document.createElement("div");var n=Math.floor(999*Math.random())+1;c.className="rcc-search-filter-item",c.innerHTML=`\n                    <input id="${s}_${e}_${n}" type="checkbox" class="${a}" data-filter="${s}" value="${e}" />\n                    <label for="${s}_${e}_${n}" ${RCC_PHP_VARS["data-site-version"]>27?'style="padding-left:0 !important;"':""}>\n                      ${e} <span class="rcc-search-count">${t}</span>\n                    </label>\n                  `,r.appendChild(c)}),n.length>t.MAX_FILTER_ITEMS){const e=document.createElement("div");e.className="rcc-search-filter-item rcc-search-load-more-trigger paragraph",e.innerHTML=`<a href="#" class="rcc-search-show-more">${t.expressions.EXP11} (${n.length-t.MAX_FILTER_ITEMS})</a>`,r.appendChild(e),e.addEventListener("click",c=>{c.preventDefault(),e.remove(),n.slice(t.MAX_FILTER_ITEMS).forEach(([e,t])=>{const c=document.createElement("div");var n=Math.floor(999*Math.random())+1;c.className="rcc-search-filter-item",c.innerHTML=`\n                        <input id="${s}_${e}_${n}" type="checkbox" class="${a}" data-filter="${s}" value="${e}" />\n                        <label for="${s}_${e}_${n}" ${RCC_PHP_VARS["data-site-version"]>27?'style="padding-left:0 !important;"':""}>\n                          ${e} <span class="rcc-search-count">${t}</span>\n                        </label>\n                      `,r.appendChild(c)});const i=document.createElement("div");i.className="rcc-search-filter-item rcc-search-load-more-trigger paragraph",i.innerHTML=`<a href="#" class="rcc-search-show-less">${t.expressions.EXP12}</a>`,r.appendChild(i),i.addEventListener("click",c=>{for(c.preventDefault();r.children.length>t.MAX_FILTER_ITEMS;)r.removeChild(r.lastChild);r.appendChild(e)}),Se(k,L)})}r.setAttribute("data-filter-field",s),X.appendChild(r)}}}),""!==X.innerHTML.trim()&&("mobile"==t.device||"app"==t.device?Y.style.display="block":ie.style.display="block"),Re()}(e,r),parseInt(c)>0){let e=null;if(P){for(const t in P)t.endsWith("_min")||t.endsWith("_max")?(e||(e={}),e[t]=P[t]):P[t].forEach(e=>{const r=X.querySelector(`input[type="checkbox"][data-filter="${t}"][value="${e}"]`);r&&(r.checked=!0)});Re(),P=null}e&&(Je().forEach(t=>{if("price"!==t.type&&"slider"!==t.type)return;const r=fe(t),c="price"===t.type?"price_min":`${r}_min`,s="price"===t.type?"price_max":`${r}_max`;if(!(c in e)&&!(s in e))return;const a=X.querySelector(`.rcc-search-price-filter[data-filter-field="${r}"]`),n=a?a.querySelector(".rcc-search-price-slider-min"):null,i=a?a.querySelector(".rcc-search-price-slider-max"):null;if(n&&i){const t=void 0!==e[c]?e[c]:parseInt(n.min),r=void 0!==e[s]?e[s]:parseInt(i.max);t>=parseInt(n.min)&&t<=parseInt(i.max)&&(n.value=t),r<=parseInt(i.max)&&r>=parseInt(n.min)&&(i.value=r);const a=new Event("input");n.dispatchEvent(a),i.dispatchEvent(a)}}),e=null),A=null}}(c.facetDistribution,c.facetStats,c.refresh):"autocomplete"===c.action?c.hits&&function(e){const r=[...new Set(e)].slice(0,t.resultsPerPageSuggestions);if(E=r,function(){const e=new Set;for(const t of E){const r=t.split(/\s+/);for(const t of r){const r=ce(t);r.length>1&&e.add(r)}}R=[...e].sort()}(),r.length>0){V.innerHTML=r.map(e=>`\n        <div class="rcc-search-suggestion-item" data-name="${e}">\n          ${e}\n        </div>\n      `).join(""),V.classList.add("active");let e="";const t=we(M);r.map(r=>{""==e.trim()&&r.includes(t)&&(e=r)})}else V.innerHTML="",V.classList.add("active")}(c.hits.map(e=>e.suggestion)):"start_recent"===c.action?(y=c,function(){if(!y)return;const e=y.recent?.data?.map(e=>e.query)||[];var r="",c="";e.length>0?(r=e.map(e=>`\n                                  <div class="rcc-search-suggestion-item-recent" data-query="${e}">\n                                    ${e}\n                                  </div>\n                                `).join(""),c=e.map(e=>`\n                                  <div class="rcc-search-suggestion-item" data-name="${e}">\n                                    ${e}\n                                  </div>\n                                `).join(""),V.innerHTML=`\n        <div class="rcc-search-suggestions-header">\n          <p>${t.expressions.EXP3}</p>\n        </div>\n        <div class="rcc-search-suggestions-list">\n          ${c}\n        </div>\n      `,o.querySelector(".rcc-search-suggestion-item-recents").innerHTML=r):(V.innerHTML="",o.querySelector(".rcc-search-start-recent").innerHTML=""),o.querySelectorAll(".rcc-search-suggestion-item-recent").forEach(e
1=>{e.addEventListener("click",()=>{const r=e.getAttribute("data-query");M.textContent=r,u=r,V.classList.remove("active"),p=1,xe(),me(r,p,0),Fe(r,p,""),ge(r),He(),"desktop"!=t.device&&M.blur()})})}()):"start_popular"===c.action?(S=c,$e()):"start_suggested"===c.action&&(v=c,function(){if(!v)return;const e=o.querySelector(".rcc-search-products-list"),c=v.suggested_products?.hits||[];let s=[];if(c.length>0){e.innerHTML="";const a=document.createDocumentFragment();c.map(e=>{const c=document.createElement("div");c.className="rcc-search-suggested-product product";const n=document.createElement("div");n.className="rcc-search-result-item-img-wrapper",s.push(e.sku_group);let i=null;"app"==t.device?(i=document.createElement("div"),i.setAttribute("data-linkurl",e.url)):(i=document.createElement("a"),i.href=e.url),i.dataset.skugroup=e.sku_group;const o=document.createElement("img");o.src=e.images[0],o.alt=e.title,o.title=e.title;const l=document.createElement("figure");l.className="productMask loader";const d=document.createElement("figcaption");d.innerHTML=e.title,l.appendChild(o),l.appendChild(d),i.appendChild(l),n.appendChild(i);let u={},p="",h="",m="",_="",g=[];e.skus.forEach(e=>{e.prices.forEach(c=>{if(parseInt(t.price_list)>0&&parseInt(c.price_list)>0&&parseInt(t.price_list)!=parseInt(c.price_list))return;const s=atob(c.key_price).split("||"),a=parseInt(s[1])||0,n=s[2].split(",")||[],i=s[3].split(",")||[],o=s[4].split(",").map(Number)||[],l=parseInt(s[5]),d=parseInt(s[6])||0,u=btoa(e.sku+"||"+n+"||"+i+"||"+o+"||"+l);if(c.promo_id=a,c.order_by=a<1?9999:d,c.sku=e.sku,c.pais_id==t.country&&c.key_price){let e=1;""!=s[2]&&n&&r.user_seg&&!n.some(e=>r.user_seg.includes(e))&&(e=0),""!=s[3]&&i&&r.user_seg&&i.some(e=>r.user_seg.includes(e))&&(e=0),""!=s[4]&&o&&r.site_channel&&!o.includes(r.site_channel)&&(e=0),l>0&&(2==l&&r.user_reg<1||l>2&&l<r.user_reg)&&(e=0),e>0&&(Object.keys(g).includes(u)?a>0&&(d<g[u].order_by||d==g[u].order_by&&a>g[u].promo_id)&&(g[u]=c):g[u]=c)}})});let f=0,y=new Set;if(Object.keys(g).length>0){for(const[e,t]of Object.entries(g))u.regular||(u=t),u.best_price>t.best_price&&(u=t),y.has(t.regular)||y.add(t.regular);y.size>1&&(f=1)}if(u.regular>0){let r="";void 0!==e.sales_unit&&""!=e?.sales_unit.trim()&&parseInt(t.hide_sales_units)<1&&(r=`<span class="rcc-search-price-sales-unit"> /${e.sales_unit}</span>`);let c="";if(f>0&&void 0!==t.expressions.EXP23&&""!=t.expressions.EXP23.trim()&&(c=`<div class="rcc-search-price-variation">${t.expressions.EXP23}</div>`),u.discount>0){let e=`${u.discount_value}%`;u.regular>u.discount&&parseInt(RCC_JS_VARS.CONFIG_ITEM_PROMO_DISCOUNT_INFO)>0&&(e=`${t.currency.prefix} ${(u.regular-u.discount).toFixed(2).replace(".",",")}${t.currency.sufix}`),p=`\n              <div class="rcc-search-price-info-wrapper">  \n                ${c}\n                <div class="rcc-search-price-info-normal rcc-search-price-promo">\n                  <span class="rcc-search-old-price">${t.currency.prefix} ${u.regular.toFixed(2).replace(".",",")}${t.currency.sufix}</span>\n                  <span class="rcc-search-discount-value">${e}</span>\n                  <span class="rcc-search-price">${t.currency.prefix} ${u.discount.toFixed(2).replace(".",",")}${t.currency.sufix}${r}</span>\n                </div>\n              </div>  \n            `}else p=`\n              <div class="rcc-search-price-info-wrapper">  \n                ${c}\n                <div class="rcc-search-price-info-normal rcc-search-price-promo">  \n                  <span class="rcc-search-price">${t.currency.prefix} ${u.regular.toFixed(2).replace(".",",")}${t.currency.sufix}${r}</span>\n                </div>  \n              </div>  \n            `}else parseInt(t.request_quote)>0&&void 0!==t.expressions.EXP21&&""!=t.expressions.EXP21.trim()&&(p=`\n              <div class="rcc-search-price-info-wrapper">\n                <div class="rcc-search-price-info-normal rcc-search-price-promo">  \n                  <span class="rcc-search-price rcc-search-price-request-quote">${t.expressions.EXP21}</span>\n                </div>  \n              </div>\n            `);if(parseInt(e.deposit_add_value)>0&&(h=`<div class="rcc-search-info-product-deposit-add-value"><p>+${t.currency.prefix} ${e.deposit_add_value.toFixed(2).replace(".",",")}${t.currency.sufix} / ${t.expressions.EXP22}</p></div>`),e.available_colors.length>0){let r=[];
1e.available_colors.forEach(e=>{let t=1;void 0!==e.markets&&(t=0,parseInt(RCC_PHP_VARS["data-market"])>0&&e.markets.includes(parseInt(RCC_PHP_VARS["data-market"]))&&(t=1)),t>0&&r.push(e)}),2==t.product_item_color_format?r.length>1&&(m=`<span class='rcc-search-suggested-color-dot rcc-search-info-total-colors'>+${r.length} ${t.expressions.EXP18}</span>`):(m=(parseInt(t.product_item_limit_colors)>0?r.slice(0,t.product_item_limit_colors):r).map(e=>e.image_url&&""!==e.image_url.trim()?`<span class="rcc-search-suggested-color-dot" style="background-image:url('${e.image_url}');" alt="${e.name}" title="${e.name}"></span>`:`<span class="rcc-search-suggested-color-dot" style="background-color:#${e.hex};" alt="${e.name}" title="${e.name}"></span>`).join(""),parseInt(t.product_item_limit_colors)>0&&r.length-t.product_item_limit_colors>0&&(m+=`<span class='rcc-search-suggested-color-dot rcc-search-info-more-colors'>+${r.length-t.product_item_limit_colors}</span>`)),""!=m.trim()&&(m=`<div class="rcc-search-suggested-product-colors">${m}</div>`)}let S=0,v={id:0,nome:""};const C=document.createElement("div");if(C.className="app"==t.device?`rcc-search-item-tags rcc-search-tag-layout${t.product_tags_layout} product__tags`:`rcc-search-item-tags rcc-search-tag-layout${t.product_tags_layout} flags`,RCC_PHP_VARS["data-product-tags"]&&RCC_PHP_VARS["data-product-tags"].forEach(r=>{let c=0,s=r;if(1==parseInt(r.id)&&u.discount>0?v=r:(2==parseInt(r.id)&&parseInt(e.new_product)>0&&""!=r.nome.trim()||parseInt(r.id)>2&&e.tags.includes(parseInt(r.id))&&""!=r.nome.trim())&&(c=1),c>0){S++;let e=document.createElement("div");e.className="app"==t.device?`rcc-search-item-tag rcc-search-tag-${s.id} product__tagsitem`:`rcc-search-item-tag rcc-search-tag-${s.id} flag`,e.style.backgroundColor="#"+s.cor,e.style.color="#"+s.cor_text,e.innerHTML=s.nome,C.appendChild(e)}}),u.discount>0&&RCC_PHP_VARS["data-product-promo-tags"]){let e={},r={},c=0;if(RCC_PHP_VARS["data-product-promo-tags"].forEach(t=>{parseInt(u.promo_id)>0&&parseInt(t.id)==parseInt(u.promo_id)&&(e=t)}),parseInt(e.id)>0)if(3==parseInt(e.type_tag)){c=1;let s=u.regular-u.discount;r.id=1,r.nome=`-${t.currency.prefix} ${s.toFixed(2).replace(".",",")}${t.currency.sufix}`,r.cor=e.cor,r.cor_text=e.cor_text}else 2!=parseInt(e.type_tag)&&0!=parseInt(e.type_tag)||""==e.nome.trim()?(1==parseInt(e.type_tag)||0==parseInt(e.type_tag))&&parseInt(v.id)>0&&""!=v.nome.trim()&&(c=1,r.id=v.id,r.nome=v.nome,r.cor=v.cor,r.cor_text=v.cor_text):(c=1,r.id=1,r.nome=e.nome,r.cor=e.cor,r.cor_text=e.cor_text);if(c>0){S++;let e=document.createElement("div");e.className="app"==t.device?`rcc-search-item-tag rcc-search-tag-${r.id} product__tagsitem`:`rcc-search-item-tag rcc-search-tag-${r.id} flag`,e.style.backgroundColor="#"+r.cor,e.style.color="#"+r.cor_text,e.innerHTML=r.nome,C.appendChild(e)}}S>0&&[1,2,3,4].includes(parseInt(t.product_tags_layout))&&n.appendChild(C),c.appendChild(n);const E=document.createElement("div");if(E.className="rcc-search-suggested-product-wrapper",S>0&&[5].includes(parseInt(t.product_tags_layout))&&E.appendChild(C),parseInt(t.show_product_reference)>0){let t=document.createElement("div");t.className="rcc-search-item-reference",t.innerHTML=`<span>Ref: </span>${e.sku_group}`,E.appendChild(t)}if(""===e.brand.trim()&&(e.brand="&nbsp;"),"function"==typeof window.RCC_Search_Item_Extra_Info){try{result_html_custom=RCC_Search_Item_Extra_Info(e)}catch(e){result_html_custom=""}""!=result_html_custom.trim()&&(_=result_html_custom)}if(E.innerHTML+=`\n              <div class="rcc-search-item-brand"><b>${e.brand}</b></div>  \n              <div class="rcc-search-item-title"><p>${e.title}</p></div>\n              ${p}\n              ${h}\n              ${m}\n              ${_}\n        `,S>0&&[6].includes(parseInt(t.product_tags_layout))&&E.appendChild(C),parseInt(t.show_product_availability)>0){let r=document.createElement("div");r.className="rcc-search-stock-info",parseInt(e.stock_by_market)>0?r.innerHTML=`<span class="rcc-search-stock-available">${t.expressions.EXP19}</span>`:r.innerHTML=`<span class="rcc-search-stock-unavailable">${t.expressions.EXP20}</span>`,E.appendChild(r)}c.appendChild(E),void 0!==t.rcc_track_endpoint&&""!=t.rcc_track_endpoint.trim()&&parseInt(t.disable_log_ch)<1&&i.addEventListener("click",function(e){if(e.ctrlKey||e.metaKey||e.shiftKey||1===e.button)return;e.preventDefault();const r=this.href,c=Date.now();let a=Math.round((c-b)/1e3);const n={page:window.location.pathname+window.location.hash,page_title:btoa(unescape(encodeURIComponent(document.title))),timeSpent:a,skus:[this.dataset.skugroup],skus_related:s||[],pagination:0,section:"PRP",device:t.device};Te(),fetch(t.rcc_track_endpoint,{method:"POST",headers:{"Content-Type":"text/plain"},body:btoa(unescape(encodeURIComponent(JSON.stringify(n))))}).then(()=>{"app"!=t.device&&(window.location.href=r)}
1).catch(()=>{"app"!=t.device&&(window.location.href=r)})}),a.appendChild(c)}),e.appendChild(a),function(e){const t=e.parentElement,r=t.parentElement.querySelector(".rcc-search-slider-arrow.rcc-search-left"),c=t.parentElement.querySelector(".rcc-search-slider-arrow.rcc-search-right"),s=300;let a=0;function n(){const s=e.scrollWidth-t.clientWidth;r.style.display=a<=0?"none":"flex",c.style.display=a>=s?"none":"flex"}r.addEventListener("click",()=>{a=Math.max(0,a-s),e.style.transform=`translateX(-${a}px)`,n()}),c.addEventListener("click",()=>{const r=e.scrollWidth-t.clientWidth;a=Math.min(r,a+s),e.style.transform=`translateX(-${a}px)`,n()}),n(),window.addEventListener("resize",()=>{n()})}(e)}else o.querySelector(".rcc-search-start-suggested-products").innerHTML=""}())}))}function le(){d&&d.readyState===WebSocket.OPEN&&(d.close(),d=null)}function de(){if(o.style.display="grid",o.classList.add("rcc-search-minimal"),l.style.display="block",M.focus(),setTimeout(function(){M.focus()},50),document.body.classList.add("rcc-search-no-scroll"),q.forEach(e=>{let t=document.body.querySelector("#"+e);if(t){let r=t.style.zIndex;if(parseInt(r)>0)N.push({element:e,zindex:r}),t.style.zIndex=0;else{let r=t.style.display||"block";N.push({element:e,display:r}),t.style.display="none"}}}),$)return m&&(xe(),o.classList.remove("rcc-search-minimal"),o.classList.add("rcc-search-expanded"),U.style.display="flex"),void($=!1);f?(y||S||v)&&Ae():function(){if(f||d.readyState!==WebSocket.OPEN)return;(async function(){if(parseInt(t.resultsPopular)<1)return!1;const e=t.rcc_track_endpoint+"?a=1&l="+t.resultsPopular;try{const t=await fetch(e),r=await t.text(),c=atob(r),s=JSON.parse(c);I=S=s,$e()}catch(e){}})(),d.send(JSON.stringify({action:"start_suggested",domain:window.location.hostname,lang:t.lang,country:t.country,catalog_id:t.catalog_id,market_id:t.market_id,price_list:t.price_list,request_quote:t.request_quote,suggested_products:t.suggested_products,limit:t.resultsSuggestedProducts})),f=!0}(),function(){const e=function(){const e=t.lang,r=t.country,c=`rcc_search_recent_${e}_${r}`,s=Date.now()-864e5;try{const e=localStorage.getItem(c);if(e){const t=JSON.parse(e);if(Array.isArray(t))return t.filter(e=>"object"==typeof e&&e.query&&"number"==typeof e.timestamp&&e.timestamp>=s).map(e=>e.query)}}catch(e){}return[]}();e.length>0?(y=e,suggestionsBoxRecent_html=e.map(e=>`\n                                    <div class="rcc-search-suggestion-item-recent" data-query="${e}">\n                                      ${e}\n                                    </div>\n                                  `).join(""),suggestionsBox_html=e.map(e=>`\n                                    <div class="rcc-search-suggestion-item" data-name="${e}">\n                                      ${e}\n                                    </div>\n                                  `).join(""),V.innerHTML=`\n          <div class="rcc-search-suggestions-header">\n            <p>${t.expressions.EXP3}</p>\n          </div>\n          <div class="rcc-search-suggestions-list">\n            ${suggestionsBox_html}\n          </div>\n        `,o.querySelector(".rcc-search-suggestion-item-recents").innerHTML=suggestionsBoxRecent_html):(V.innerHTML="",o.querySelector(".rcc-search-start-recent").innerHTML="")}(),function(){const r=o.querySelector(".rcc-search-sort-select");r.innerHTML="";const c=t.sortOptions;Object.keys(c).forEach(t=>{const s=document.createElement("option");var a=String(t);"relevance"==a?a="":a.includes("best_prices_by_country")&&(a=a.replace("best_prices_by_country",e)),s.value=a,s.textContent=c[t],r.appendChild(s)})}(),Te(),function(){let e={};window.innerWidth<768&&void 0!==RCC_PHP_VARS["data-banner-mobile"]?e=RCC_PHP_VARS["data-banner-mobile"]:window.innerWidth>=768&&void 0!==RCC_PHP_VARS["data-banner"]&&(e=RCC_PHP_VARS["data-banner"]);if(void 0!==e&&""!=e.src.trim()){ne.innerHTML="";const t=document.createElement("img");if(t.src=e.src,t.alt=e.title,t.title=e.title,""!=e.url.trim()){const r=document.createElement("a");r.href=e.url,r.target="_blank",r.appendChild(t),ne.appendChild(r)}else ne.appendChild(t);ne.style.display="block"}}()}function ue(){if(o.querySelector(".rcc-search-start-screen").scrollTop=0,"app"==t.device){const e=document.body.querySelector(".pwa-sr-btn-cl");e&&e.click()}o.style.display="none",l.style.display="none",z.style.display="none",re.style.display="none",M.textContent="",g="",p=1,h=!1,ve(),document.body.classList.remove("rcc-search-no-scroll"),Te(),"function"==typeof window.lockWindowScroll&&lockWindowScroll.islock()&&lockWindowScroll.unlock(!0),le(),clearTimeout(n),N.forEac
1h(e=>{let t=document.body.querySelector("#"+e.element);t&&parseInt(e.zindex)>0?t.style.zIndex=e.zindex:t&&""!=e.display.trim()&&(t.style.display=e.display)}),N=[],function(){const e=new URL(window.location);e.searchParams.delete("term"),e.searchParams.delete("page"),e.searchParams.delete("skugroup"),e.searchParams.delete("filters"),e.searchParams.delete("order"),window.history.replaceState({},"",e)}()}function pe(){m&&(o.classList.remove("rcc-search-expanded"),o.classList.add("rcc-search-minimal"),U.style.display="none",m=!1)}function he(){if(d&&d.readyState===WebSocket.CONNECTING)return;if(d&&d.readyState===WebSocket.OPEN)return void de();const e=[];t.host||e.push("host"),t.lang||e.push("lang"),t.country||e.push("country"),e.length>0||(null!=typeof angular&&(null!=angular.element("[ng-controller=headerSearchController]").scope()&&"function"==typeof angular.element("[ng-controller=headerSearchController]").scope().closeSearchBar&&angular.element("[ng-controller=headerSearchController]").scope().closeSearchBar(),null!=angular.element("[ng-controller=HeaderController]").scope()&&"function"==typeof angular.element("[ng-controller=HeaderController]").scope().defaultValues&&angular.element("[ng-controller=HeaderController]").scope().defaultValues()),oe(),"function"!=typeof window.lockWindowScroll||lockWindowScroll.islock()||lockWindowScroll.lock())}function me(e,r=1,c=0){if(d.readyState===WebSocket.OPEN){const s=Ie(),a=Pe();let n=0;/\d/.test(e)&&/^[a-zA-Z0-9.\-_]+$/.test(e)&&parseInt(t.allow_ngrams_search)>0&&(n=1),d.send(JSON.stringify({action:"search",domain:window.location.hostname,user_id:t.user_id,lang:t.lang,query:e,country:t.country,country_code:t.country_code,catalog_id:t.catalog_id,market_id:t.market_id,price_list:t.price_list,request_quote:t.request_quote,device:t.device,limit:t.resultsPerPage,offset:(r-1)*t.resultsPerPage,page:r,facets:[],filters_applied:s,order_by:a,matchingStrategy:t.matchingStrategy,disable_log_ch:t.disable_log_ch,ngrams_search:n,speech_recognition:c})),1==r&&_e(e,0)}}function _e(e,r){if(d.readyState===WebSocket.OPEN){let c=0;/\d/.test(e)&&/^[a-zA-Z0-9.\-_]+$/.test(e)&&parseInt(t.allow_ngrams_search)>0&&(c=1);let s=Ie();parseInt(r)>0&&(s={}),d.send(JSON.stringify({action:"start_facets",domain:window.location.hostname,lang:t.lang,query:e,country:t.country,country_code:t.country_code,catalog_id:t.catalog_id,market_id:t.market_id,price_list:t.price_list,request_quote:t.request_quote,device:t.device,limit:1,offset:0,page:1,facets:Je().map(fe),filters_applied:s,order_by:[],matchingStrategy:t.matchingStrategy,disable_log_ch:t.disable_log_ch,ngrams_search:c,refresh:r}))}}function ge(e){d.readyState===WebSocket.OPEN&&d.send(JSON.stringify({action:"autocomplete",domain:window.location.hostname,user_id:t.user_id,lang:t.lang,query:e,country:t.country,country_code:t.country_code,catalog_id:t.catalog_id,market_id:t.market_id,price_list:t.price_list,request_quote:t.request_quote,device:t.device,limit:4*t.resultsPerPageSuggestions,offset:0,page:1,matchingStrategy:t.matchingStrategy,disable_log_ch:t.disable_log_ch}))}function fe(t){return"price"===t.type?e:t.name}function ye(e,r,c,s){const a=X.querySelector(`.rcc-search-price-filter[data-filter-field="${r}"]`);if("number"!=typeof c||"number"!=typeof s)return void(a&&a.remove());const n=e.label&&e.label[t.lang]||be(r),i="price"===e.type,o=i?`${t.currency.prefix} <span class="rcc-search-price-min-value">${c}</span>${t.currency.sufix}`:`<span class="rcc-search-price-min-value">${c}</span>`,l=i?`${t.currency.prefix} <span class="rcc-search-price-max-value">${s}</span>${t.currency.sufix}`:`<span class="rcc-search-price-max-value">${s}</span>`,d=document.createElement("div");d.className="rcc-search-price-filter",d.setAttribute("data-filter-field",r),d.setAttribute("data-filter-type",e.type),d.innerHTML=`\n      <p class="list-nav-title">${n}</p>\n      <div class="rcc-search-price-slider-container">\n        <div class="rcc-search-price-slider-track"></div>\n        <input type="range" min="${c}" max="${s}" value="${c}" class="rcc-search-price-slider-min">\n        <input type="range" min="${c}" max="${s}" value="${s}" class="rcc-search-price-slider-max">\n        <div class="rcc-search-price-slider-handles">\n          <div class="rcc-search-handle rcc-search-min"></div>\n          <div class="rcc-search-handle rcc-search-max"></div>\n        </div>\n      </div>\n      <div class="rcc-search-price-values">
1\n        <span>${t.expressions.EXP14} ${o} </span>\n        <span>${t.expressions.EXP15} ${l} </span>\n      </div>\n    `,a?a.replaceWith(d):X.appendChild(d);const h=d.querySelector(".rcc-search-price-slider-min"),m=d.querySelector(".rcc-search-price-slider-max"),_=d.querySelector(".rcc-search-price-min-value"),g=d.querySelector(".rcc-search-price-max-value"),f=d.querySelector(".rcc-search-price-slider-track"),y=d.querySelector(".rcc-search-handle.rcc-search-min"),S=d.querySelector(".rcc-search-handle.rcc-search-max");function v(){let e=parseInt(h.value),t=parseInt(m.value);e>=t&&(h.value=t-1),t<=e&&(m.value=e+1),e=parseInt(h.value),t=parseInt(m.value),_.textContent=e,g.textContent=t;const r=(e-c)/(s-c)*100,a=(t-c)/(s-c)*100;f.style.background=`linear-gradient(to right, var(--rcc-search-price-slider-background-color) ${r}%, var(--rcc-search-price-slider-range-background-color) ${r}%, var(--rcc-search-price-slider-range-background-color) ${a}%, var(--rcc-search-price-slider-background-color) ${a}%)`,y.style.left=`${r}%`,S.style.left=`${a}%`,Le()}function C(){p=1,me(u,1,0),Fe(u,1,""),j.style.display="inline-block"}h.addEventListener("input",v),m.addEventListener("input",v),h.addEventListener("change",C),m.addEventListener("change",C),v()}function Se(e,t){if(!e)return;const r=Ie();X.querySelectorAll(".rcc-search-filter-group").forEach(t=>{const c=t.getAttribute("data-filter-field"),s=e[c];r[c]&&r[c].length>0||s&&t.querySelectorAll(".rcc-search-filter-item:not(.rcc-search-load-more-trigger)").forEach(e=>{const t=e.querySelector('input[type="checkbox"]').value,r=e.querySelector(".rcc-search-count");if(r){const c=s[t]||0;r.textContent=c;const a=e.querySelector('input[type="checkbox"]'),n=e.querySelector("label");0===c?(a.disabled=!0,a.checked=!1,n.style.opacity="0.5",n.style.pointerEvents="none"):(a.disabled=!1,n.style.opacity="1",n.style.pointerEvents="auto")}})}),Je().forEach(e=>{if("price"!==e.type&&"slider"!==e.type)return;const r=fe(e),c=t[r];if(!c)return;const s=X.querySelector(`.rcc-search-price-filter[data-filter-field="${r}"]`),a=s?s.querySelector(".rcc-search-price-slider-min"):null,n=s?s.querySelector(".rcc-search-price-slider-max"):null,i=a?parseInt(a.min):null,o=n?parseInt(n.max):null,l=Math.floor(c.min),d=Math.ceil(c.max);if(i!==l||o!==d){a&&parseInt(a.value)>i||n&&parseInt(n.value)<o||ye(e,r,l,d)}})}function ve(){F.innerHTML="",X.innerHTML="",ie.style.display="none",Y.style.display="none",V.classList.remove("active"),m&&pe(),xe()}function Ce(){if(C||!h)return;C=!0,D.disabled=!0,p++;const e=p,r=Ie(),c=Pe();let s=0;/\d/.test(u)&&/^[a-zA-Z0-9.\-_]+$/.test(u)&&parseInt(t.allow_ngrams_search)>0&&(s=1),d.send(JSON.stringify({action:"search",domain:window.location.hostname,user_id:t.user_id,lang:t.lang,query:u,country:t.country,country_code:t.country_code,catalog_id:t.catalog_id,market_id:t.market_id,price_list:t.price_list,request_quote:t.request_quote,device:t.device,limit:t.resultsPerPage,offset:(e-1)*t.resultsPerPage,page:e,facets:[],filters_applied:r,order_by:c,matchingStrategy:t.matchingStrategy,disable_log_ch:t.disable_log_ch,ngrams_search:s}))}function be(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ee(e){e.preventDefault();X.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.checked=!1}),X.querySelectorAll(".rcc-search-price-filter").forEach(e=>{const t=e.querySelector(".rcc-search-price-slider-min"),r=e.querySelector(".rcc-search-price-slider-max");if(t&&r){const c=parseInt(t.min),s=parseInt(r.max);t.value=c,r.value=s;const a=e.querySelector(".rcc-search-price-slider-track"),n=e.querySelector(".rcc-search-handle.rcc-search-min"),i=e.querySelector(".rcc-search-handle.rcc-search-max"),o=e.querySelector(".rcc-search-price-min-value"),l=e.querySelector(".rcc-search-price-max-value");o.textContent=c,l.textContent=s;const d=0,u=100;a.style.background=`linear-gradient(to right, var(--rcc-search-price-slider-background-color) ${d}%, var(--rcc-search-price-slider-range-background-color) ${d}%, var(--rcc-search-price-slider-range-background-color) ${u}%, var(--rcc-search-price-slider-background-color) ${u}%)`,n.style.left=`${d}%`,i.style.left=`${u}%`}}),p=1,me(u,1,0),Fe(u,1,""),j.style.display="none",Le()}function Re(){const e=X.querySelector('input[type="checkbox"][data-filter]:checked'),t=Array.from(X.querySelectorAll(".rcc-search-price-filter")).some(e=>{const t=e.querySelector(".rcc-search-price-slider-min"),r=e.querySelector(".rcc-search-price-slider-max");return t&&r&&(parseInt(t.value)>parseInt(t.min)||parseInt(r.value)<parseInt(r.max))});j.style.display=e||t?"inline-block":"none"}function Ie(){const e={};if(A){for(const t in A)if(e[t]||(e[t]=[]),t.endsWith("_min")||t.endsWith("_max"))e[t]=A[t];else{A[t].forEach(r=>{e[t].push(r)})}return e}return X.querySelectorAll('input[type="checkbox"][data-filter]:checked').forEach(t=>{const r=t.getAttribute("data-filter"),c=t.value;e[r]||(e[r]=[]),e[r].push(c)}),X.querySelectorAll(".rcc-search-price-filter[data-filter-field]").forEach(t=>{const r=t.getAttribute("data-filter-field"),c="price"===t.getAttribute("data-filter-type"),s=t.querySelector(".rcc-search-price-slider-min"),a=t.querySelector(".rcc-search-price-slider-max");if(s&&a){const t=parseInt(s.value),n=parseInt(a.value),i=parseInt(s.min),o=parseInt(a.max),l=c?"price_max":`${r}_max`;void 0!==t&&t>i&&(e[c?"price_min":`${r}_min`]=t),void 0!==n&&n<o&&(e[l]=n)}}),e}function Pe(){const e=G.value.trim();if(""!=e)return[e];if(""==e&&t.product_boosting>0){let e=function(){let e=[];const r=RCC_JS_VARS.CONFIG_PRODUCTS_BOOSTING_LIST||[];if(!Array.isArray(r)||r.length<1)return e;let c=[],s=[],a=u.toLowerCase().replace(/[^\p{L}\p{N}
1\s]+/gu," ").trim().split(/\s+/).filter(Boolean);if(a.length<1)return e;if(r.forEach(e=>{if((!(e.pais.length>0)||e.pais.includes(t.country))&&(""==e.idioma.trim()||e.idioma==t.lang)){if(1==parseInt(e.tipo)&&e.termo.length>0){let t=new Set(a);if(1==parseInt(e.condicao)&&!e.termo.every(e=>t.has(e)))return;if(0==parseInt(e.condicao)&&!e.termo.some(e=>t.has(e)))return}1==parseInt(e.tipo)?c.push(e):s.push(e)}}),c.length>0||s.length>0){let t=null;c.length>0?t=c.shift():s.length>0&&(t=s.shift()),null!==t&&e.push("product_boosting."+t.id+":desc")}return e}();if(e.length>0)return e}return[]}function Ae(){const e=document.getElementById("rcc-search-start-screen");e&&(e.style.display="block")}function xe(){const e=document.getElementById("rcc-search-start-screen");e&&(e.style.display="none")}function $e(){if(!S)return;let e=[];S.popular?.data?.length>0&&S.popular?.data?.map(t=>e.push(t.query));let r=e.concat(I).slice(0,t.resultsPopular);if(r.length>0){var c=r.map(e=>`\n                                      <div class="rcc-search-popular-term" data-query="${e}">${e}</div>\n                                    `).join("");o.querySelector(".rcc-search-popular-terms").innerHTML=c,o.querySelectorAll(".rcc-search-popular-term").forEach(e=>{e.addEventListener("click",()=>{const r=e.getAttribute("data-query");M.textContent=r,u=r,V.classList.remove("active"),p=1,xe(),me(r,p,0),Fe(r,p,""),ge(r),He(),"desktop"!=t.device&&M.blur()})})}else o.querySelector(".rcc-search-start-popular").innerHTML=""}function ke(){let e=null;const t=B.scrollTop;window.requestAnimationFrame(function r(c){e||(e=c);const s=c-e,a=Math.min(s/200,1),n=1-Math.pow(1-a,2);B.scrollTop=t*(1-n),a<1&&window.requestAnimationFrame(r)})}function Le(){let e=0;const t=X.querySelectorAll('input[type="checkbox"][data-filter]:checked');return e+=t.length,X.querySelectorAll(".rcc-search-price-filter").forEach(t=>{const r=t.querySelector(".rcc-search-price-slider-min"),c=t.querySelector(".rcc-search-price-slider-max");if(r&&c){const t=parseInt(r.min),s=parseInt(c.max),a=parseInt(r.value),n=parseInt(c.value);a>t&&e++,n<s&&e++}}),e>0?(ee.innerHTML=`(${e})`,te.innerHTML=`(${e})`):(ee.innerHTML="",te.innerHTML=""),e}function Te(){b=Date.now()}function we(e){const t=e.cloneNode(!0);return t.querySelectorAll(".rcc-search-input-placeholder, .rcc-search-input-ghost").forEach(e=>e.remove()),t.textContent}function qe(){const e=we(M).trim(),r=M.querySelector(".rcc-search-input-placeholder");if(r&&r.remove(),!e){const e=document.createElement("span");e.className="rcc-search-input-placeholder",e.textContent=t.expressions.EXP1||"",e.setAttribute("aria-hidden","true"),e.contentEditable="false",M.appendChild(e)}}function Ne(e){if(!e)return null;if(/\d/.test(e)&&/^[a-zA-Z0-9.\-_]+$/.test(e))return null;const t=ce(e);let r=E.find(e=>ce(e).startsWith(t));return r||(r=function(e){const t=ce(e);if(!t||!t.trim())return null;const r=t.trim().split(/\s+/).filter(e=>e.length>0);if(0===r.length)return null;const c=[];for(const e of r){let t=null;for(const r of R)if(r.startsWith(e)){t=r;break}t?c.push(t):c.push(e)}return 0===c.length?null:c.join(" ")}(e)),r?ce(r)===t?null:r:null}function He(){if(T)return;const e=M.querySelector(".rcc-search-input-ghost");try{if(T=!0,!e){const e=document.createRange(),t=window.getSelection();return e.selectNodeContents(M),e.collapse(!1),t.removeAllRanges(),void t.addRange(e)}const t=document.createRange(),r=window.getSelection();if(e===M.firstChild)t.setStart(M,0);else{const r=e.previousSibling;r&&r.nodeType===Node.TEXT_NODE?t.setStart(r,r.textContent.length):r?t.setStartAfter(r):t.setStart(M,0)}t.collapse(!0),r.removeAllRanges(),r.addRange(t)}
1finally{T=!1}}function Oe(){const e=we(M),t=Ne(e);M.querySelectorAll(".rcc-search-input-ghost").forEach(e=>e.remove()),t&&function(e){const t=we(M).length,r=e.slice(t);if(M.querySelectorAll(".rcc-search-input-ghost").forEach(e=>e.remove()),!r)return;const c=document.createElement("span");c.className="rcc-search-input-ghost",c.contentEditable="false",c.setAttribute("aria-hidden","true"),c.textContent=r,M.appendChild(c),He()}(t),e.trim()||(M.innerHTML=""),qe()}function Me(){const e=we(M);if(e.length<=se)return!1;const t=e.slice(0,se),r=window.getSelection(),c=r.anchorNode===M&&r.anchorOffset===M.childNodes.length;return M.innerHTML="",M.appendChild(document.createTextNode(t)),Oe(),c&&function(e){const t=window.getSelection(),r=document.createRange();r.selectNodeContents(e),r.collapse(!1),t.removeAllRanges(),t.addRange(r)}(),!0}function Ve(){clearTimeout(n),n=setTimeout(()=>{document.activeElement===M&&M.blur()},5e3)}function Fe(e,r=1,c=""){if("app"==t.device)return!1;const s=new URL(window.location);e.trim()?s.searchParams.set("term",e.trim()):s.searchParams.delete("term"),r>1?s.searchParams.set("page",r):s.searchParams.delete("page"),c.trim()?s.searchParams.set("skugroup",btoa(c.trim())):s.searchParams.delete("skugroup");const a=Ie(),n=[];for(const e in a)Array.isArray(a[e])?a[e].forEach(t=>{n.push(`${encodeURIComponent(e)}:${encodeURIComponent(t)}`)}):(e.endsWith("_min")||e.endsWith("_max"))&&n.push(`${encodeURIComponent(e)}:${encodeURIComponent(a[e])}`);n.length>0?s.searchParams.set("filters",btoa(unescape(encodeURIComponent(n.join("|"))))):s.searchParams.delete("filters");const i=G.value;i&&""!==i?s.searchParams.set("order",btoa(i)):s.searchParams.delete("order"),window.history.replaceState({},"",s)}function Xe(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}function Je(){return function(){const e=RCC_JS_VARS.FACETS_BY_TERM||[];if(!Array.isArray(e)||e.length<1)return null;let r=u.toLowerCase().replace(/[^\p{L}\p{N}\s]+/gu," ").trim().split(/\s+/).filter(Boolean);if(r.length<1)return null;let c=new Set(r),s=null;return e.some(e=>!(e.pais.length>0&&!e.pais.includes(t.country)||""!=e.idioma.trim()&&e.idioma!=t.lang||!Array.isArray(e.termo)||e.termo.length<1||1==parseInt(e.condicao)&&!e.termo.every(e=>c.has(e))||0==parseInt(e.condicao)&&!e.termo.some(e=>c.has(e))||!(Array.isArray(e.FACETS)&&e.FACETS.length>0)||(s=e.FACETS,0))),s}()||RCC_JS_VARS.FACETS_INFO}o||"desktop"!=t.device&&"mobile"!=t.device||(c(),s()),document.querySelector("header")&&document.querySelector("header").addEventListener("focusin",function(e){e.target&&e.target.matches("input[name='term']")&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),he())}),document.addEventListener("click",e=>{let r=0;if("true"===e.target.getAttribute("meilisearch-disabled"))return!1;"search"!==e.target.type&&"text"!==e.target.type||"term"!==e.target.name||(r=1),(e.target.classList.contains("toggle-button-search")||e.target.classList.contains("header-shop-search")||e.target.parentElement.classList.contains("toggle-button-search")||e.target.parentElement.classList.contains("header-shop-search")||e.target.classList.contains("rdc-icon-search")&&"A"==e.target.parentElement.nodeName||e.target.parentElement.classList.contains("search")&&"LI"==e.target.parentElement.nodeName||"A"==e.target.nodeName&&e.target.parentElement.classList.contains("search")&&e.target.parentElement.parentElement.classList.contains("shop-icons")||"svg"==e.target.nodeName&&e.target.parentElement.classList.contains("rdc-icon-search")||e.target.previousSibling?.classList?.contains("rdc-icon-search")&&"A"==e.target.previousSibling?.parentElement.nodeName||e.target.parentElement?.previousSibling?.classList?.contains("rdc-icon-search")||e.target.classList.contains("icon-search")&&e.target.parentElement.classList.contains("right-header")||e.target.classList.contains("toggle-search")&&e.target.parentElement.classList.contains("mobile-icons"))&&(r=1),null!==angular&&"app"==t.device&&"search"===e.target.type&&"search"===e.target.name&&(r=1,o||(c(),s())),r>0&&(e.preventDefault(),e.stopImmediatePropagation(),he())},!0),function(){if("app"==t.device)return!1;const e=new URLSearchParams(window.location.search),r=e.get("term"),c=parseInt(e.get("page"))||1,s=atob(e.get("skugroup")),a=e.get("filters")||"",n=atob(e.get("order"));r&&r.length>
1=t.query_min_length&&(x={urlParams:e,searchParam:r,pageParam:c,skugroup:s,filtersParam:a,orderParam:n},he())}(),window.addEventListener("popstate",()=>{}),window.addEventListener("pageshow",e=>{e.persisted&&(d&&(d.close(),d=null),o.classList.contains("rcc-search-expanded")?setTimeout(()=>{$=!0,oe()},500):o.classList.contains("rcc-search-minimal")&&ue())})}();

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.