$("#searchForm div").addClass("divSearch"),$("#searchForm div").addClass("input-group"),$("#textToSearch").addClass("input"),$("#textToSearch").attr("placeholder","Search"),$("#searchForm").append('<input type="hidden" id="searchMode" name="searchMode" value="fullText">');const searchModeWrapper=$('<div class="search-mode-wrapper"></div>'),searchModeControl=$('\n  <div class="search-mode-control">\n    <button type="button" class="search-mode-btn active" id="fullTextSearchBtn">\n      <span class="search-btn-text">Search</span>\n    </button>\n    <button type="button" class="search-mode-btn" id="aiChatBtn">\n      <span class="search-btn-text">Ask AI</span>\n    </button>\n  </div>\n');searchModeWrapper.append(searchModeControl),$("#searchForm div").after(searchModeWrapper),searchModeWrapper.css({display:"flex","align-items":"center","margin-left":"10px",height:"34px"}),$(".search-mode-control").css({display:"flex",border:"1px solid #ccc","border-radius":"4px",overflow:"hidden"}),$(".search-mode-btn").css({background:"#eaeaea",border:"none","border-right":"1px solid #ccc",padding:"6px 12px",cursor:"pointer",height:"100%",color:"#333","font-weight":"normal","min-width":"70px","text-align":"center"}),$(".search-mode-btn:last-child").css("border-right","none"),$(".search-mode-btn.active").css({"background-color":"#007ac3",color:"white"}),document.querySelector('link[href*="bootstrap-icons"]')||$("head").append('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">'),$(".wh_search_input").css({display:"flex","flex-direction":"row","align-items":"center"}),$("#searchForm").appendTo(".wh_header_flex_container"),$("#wh_top_menu_and_indexterms_link").insertAfter(".wh_header_flex_container"),$(".divSearch").css({display:"inline-block !important","margin-right":"10px"}),$(".wh-tooltip").remove(),setTimeout((function(){}),1e3),Variables.IsAuthoring&&$("img").each((function(){$(this).css({border:"none"})})),$("img").each((function(){$(this).width()<=50&&($(this).css("border","none"),$(this).css("margin-bottom","0"))}));