Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 832
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
import{i as E,r as A,j as H,B as I,q as Z,S as T,s as R,C as V,o as f,v as M,e as t,c as C,y,x as v,g as r,m as S,J as q,T as N}from"./CQhRy8FD.js";import{u as O}from"./DVBD-IR_.js";const P={class:"ask-red-hat-button-container"},G=["icon"],$=["id"],z={__name:"AskRedHatButton",props:["component"],setup(u){const{openAskRedHatChat:k,closeAskRedHatChat:d,askRedHatChatOpenState:i}=O(),o=A(null),e=A(!1),g=H(),_=g.path,B=`https://chat.openai.com/?hints=search&prompt=Summarize+this+page,+and+I+will+ask+questions+about+it+afterward:https://docs.redhat.com${_}`,x=`https://claude.ai/new?q=Summarize+this+page,+and+I+will+ask+questions+about+it+afterward:https://docs.redhat.com${_}`;function h(s){return g.path.includes(s)}const L=I(()=>u.component==="footer"?e.value?"caret-up-fill":"caret-down-fill":e.value?"caret-up":"caret-down");function c(){e.value=!e.value}function w(s){e!=null&&e.value&&!s.target.closest(".ask-red-hat-button-container")&&c()}return Z(()=>{const{$keycloak:s}=T(),a=n=>{const l=document.getElementById("askToggle"),b=document.querySelector(".pf-chatbot__message-bar textarea");n.key===" "&&o.value&&document.activeElement===o.value&&(n.preventDefault(),i.value!==!0?(k(),l.classList.add("active"),s.authenticated?s.authenticated&&b.focus():setTimeout(()=>{document.getElementById("login-container__close").focus()},300)):(d(),l.classList.remove("active"))),n.key==="Escape"&&i.value==!0&&(l.focus(),d())},m=n=>{const l=document.querySelector(".pf-chatbot__message-bar-input textarea");n.target===o.value&&i.value===!1?(k(),s.authenticated&&(l.focus(),l.focus())):n.target===o.value&&i.value==!0&&d(),!s.authenticated&&n.target===o.value&&setTimeout(()=>{document.getElementById("login-container__close").focus()},100)},p=n=>{e!=null&&e.value&&!document.getElementById("ask-red-hat-llm-popover").contains(n.relatedTarget)&&c()};document.addEventListener("keydown",a),document.addEventListener("click",m),document.addEventListener("click",w),document.addEventListener("focusout",p)}),R(()=>{document.removeEventListener("keydown",handleButtonPressActivity),document.removeEventListener("click",handleButtonClickActivity),document.removeEventListener("click",w),document.removeEventListener("focusout",handleTabOutside)}),(s,a)=>{const m=N;return f(),V(m,null,{default:M(()=>[t("div",P,[t("button",{id:"askToggle",ref_key:"buttonRef",ref:o,"aria-label":"Ask Red Hat AI Assistant",class:v({"ask-red-hat-button full":h("/documentation"),"ask-red-hat-button half":!h("/documentation"),active:r(i)}),onClick:a[0]||(a[0]=(...p)=>s.handleButtonClickActivity&&s.handleButtonClickActivity(...p))},a[1]||(a[1]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[t("path",{d:"m30.155 17.267-9.422-2-2-9.422a.75.75 0 0 0-1.466 0l-2 9.422-9.422 2a.75.75 0 0 0 0 1.466l9.422 2 2 9.422a.75.75 0 0 0 1.466 0l2-9.422 9.422-2a.75.75 0 0 0 0-1.466ZM6 11.75a.75.75 0 0 0 .733-.595l.775-3.647 3.647-.775a.75.75 0 0 0 0-1.466l-3.647-.775L6.733.845a.75.75 0 0 0-1.466 0l-.775 3.647-3.647.775a.75.75 0 0 0 0 1.466l3.647.775.775 3.647A.75.75 0 0 0 6 11.75Z"})],-1),S(" Ask Red Hat ")]),2),h("/documentation")?(f(),C("button",{key:0,class:v(r(e)?"ask-red-hat-button ask-llm-toggle open":"ask-red-hat-button ask-llm-toggle"),variant:"tertiary","aria-label":"Toggle AI Options","icon-set":"ui",label:"Toggle AI Options",onClick:c,onKeydown:q(c,["esc"])},[t("rh-icon",{set:"microns",icon:r(L)},null,8,G)],34)):y("",!0),r(e)?(f(),C("nav",{key:1,id:u.component==="footer"?"footer-ask-red-hat-llm-popover":"ask-red-hat-llm-popover",class:v(["popover-container",u.component==="footer"?"footer-popover-container":""])},[t("ul",{id:"ai-link-list",class:"ask-red-hat-assitant-list-container"},[a[4]||(a[4]=t("li",{class:"ask-red-hat-assitant-list-item__desc"}," Ask an AI assistant about this page ",-1)),t("li",{class:"ask-red-hat-assitant-list-item claude-link"},[t("a",{href:x,target:"_blank","aria-label":"Ask Claude AI Assistant about current page"},a[2]||(a[2]=[t("span",{class:"ask-red-hat-assitant-list-item__icon-text-container"},[t("span",{class:"ask-red-hat-assitant-list-item__icon"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none"},[t("path",{fill:"url(#a)",d:"m4.586 10.307 2.755-1.545.046-.134-.046-.075h-.134l-.46-.028-1.575-.043-1.365-.057-1.322-.07-.333-.072-.312-.41.032-.206.28-.188.4.035.886.06 1.33.093.964.056 1.428.149h.227l.032-.092-.077-.057-.061-.056-1.376-.932-1.489-.985-.78-.568-.421-.287-.213-.27-.092-.587.383-.422.515.035.13.035.522.4 1.113.862 1.453 1.07.212.177.085-.06.01-.043-.095-.16-.79-1.428-.843-1.453-.375-.603-.1-.361a1.756 1.756 0 0 1-.06-.425l.436-.592.24-.078.582.078.245.212.361.827.586 1.3.907 1.769.266.525.142.486.053.148h.091v-.085l.075-.996.138-1.224.134-1.574.047-.443.219-.531.436-.288.34.163.28.4-.039.26-.166 1.082-.326 1.694-.213 1.134h.124l.142-.142.574-.762.964-1.205.425-.478.497-.529.318-.251h.603l.443.659-.198.68-.62.787-.515.667-.737.992-.46.794.042.064.11-.01 1.665-.355.9-.163 1.075-.184.486.227.052.23-.19.472-1.15.284-1.346.269-2.006.475-.025.018.028.035.904.085.387.02h.946l1.762.132.46.304.276.372-.046.284-.71.36-.956-.226-2.233-.531-.766-.191h-.106v.063l.638.624 1.17 1.056 1.464 1.361.075.337-.188.265-.2-.028-1.286-.968-.496-.435-1.124-.947H11v.1l.26.379 1.367 2.056.071.63-.1.205-.354.124-.39-.07-.8-1.125-.826-1.266-.666-1.134-.082.046-.393 4.237-.184.216-.426.163-.354-.27-.188-.435.188-.861.227-1.125.184-.893.166-1.11.1-.368-.007-.025-.081.01-.837 1.149-1.272 1.72-1.007 1.077-.241.096-.418-.217.039-.386.233-.345 1.394-1.772.84-1.099.543-.634-.004-.092H7.95L4.25 11.824l-.66.085-.283-.266.035-.435.135-.142 1.112-.766-.003.004v.003Z"}),t("defs",null,[t("linearGradient",{id:"a",x1:"8.84",x2:"8.84",y1:".992",y2:"15.001",gradientUnits:"userSpaceOnUse"},[t("stop",{"stop-color":"#D97757"}),t("stop",{offset:"1","stop-color":"#DB5B32"})])])])]),t("span",{class:"ask-red-hat-assitant-list-item__text"},"Claude")],-1),t("span",{class:"ask-red-hat-assitant-list-item__icon external-icon"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"14",fill:"none"},[t("path",{fill:"inherit",d:"M14.75.438H9.5c-.275 0-.5.196-.5.437 0 .24.225.438.5.438h4.295L6.65 7.564a.398.398 0 0 0 0 .617.53.53 0 0 0 .355.127c.13 0 .255-.044.355-.127l7.145-6.252v3.758c0 .241.225.438.5.438s.5-.197.5-.438V1.095c0-.363-.335-.657-.75-.657h-.005Z"}),t("path",{fill:"inherit",d:"M15 8.313c-.275 0-.5.196-.5.437v3.938h-13V1.312H6c.275 0 .5-.196.5-.437 0-.24-.225-.438-.5-.438H1.25C.835.438.5.732.5 1.095v11.812c0 .363.335.656.75.656h13.5c.415 0 .75-.293.75-.656V8.75c0-.24-.225-.438-.5-.438Z"})])],-1)]))]),t("li",{class:"ask-red-hat-assitant-list-item chatgpt-link"},[t("a",{href:B,target:"_blank","aria-label":"Ask ChatGPT AI Assistant about current page"},a[3]||(a[3]=[t("span",{class:"ask-red-hat-assitant-list-item__icon-text-container"},[t("span",{class:"ask-red-hat-assitant-list-item__icon light-dark-theme-icon"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none"},[t("path",{fill:"#fff",d:"M15.368 8.181a3.307 3.307 0 0 0-.93-1.556 2.96 2.96 0 0 0-.155-2.636 3.311 3.311 0 0 0-2.024-1.552 3.308 3.308 0 0 0-1.814.028 2.95 2.95 0 0 0-2.359-1.184A3.335 3.335 0 0 0 4.85 3.838h-.01a2.934 2.934 0 0 0-2.196 1.455 3.308 3.308 0 0 0-.333 2.528c.163.606.486 1.138.931 1.557a2.955 2.955 0 0 0 .155 2.635 3.311 3.311 0 0 0 2.023 1.552c.287.077.578.115.868.115.32 0 .638-.051.946-.144a2.941 2.941 0 0 0 2.36 1.185 3.336 3.336 0 0 0 3.238-2.56 2.947 2.947 0 0 0 2.205-1.452 3.31 3.31 0 0 0 .332-2.528Zm-3.274-5.126a2.673 2.673 0 0 1 1.634 1.254 2.32 2.32 0 0 1 .182 1.91c-.032-.02-.062-.042-.094-.061l-2.934-1.694a.322.322 0 0 0-.323.002L7.295 6.399 7.28 4.924l2.772-1.6a2.677 2.677 0 0 1 2.043-.269Zm-1.739 4.049.02 1.76-1.516.899-1.535-.864-.02-1.761 1.515-.898 1.536.864Zm-4.96-2.49A2.695 2.695 0 0 1 8.086 1.92c.675 0 1.31.293 1.747.796-.034.018-.069.033-.102.053L6.797 4.464a.321.321 0 0 0-.16.28l.042 3.793-1.284-.723v-3.2ZM2.928 7.655a2.675 2.675 0 0 1 .27-2.043c.339-.587.903-.983 1.562-1.111-.001.037-.005.073-.005.111v3.388a.32.32 0 0 0 .163.28l3.305 1.858-1.268.752-2.772-1.6a2.673 2.673 0 0 1-1.255-1.635Zm2.657 5.292a2.673 2.673 0 0 1-1.634-1.255 2.315 2.315 0 0 1-.184-1.91c.033.02.063.043.096.062l2.934 1.694a.32.32 0 0 0 .323-.002l3.264-1.933.016 1.474-2.772 1.6a2.671 2.671 0 0 1-2.043.27Zm6.7-1.559a2.695 2.695 0 0 1-2.693 2.692c-.678 0-1.31-.294-1.747-.798.034-.018.07-.031.103-.05l2.934-1.694a.321.321 0 0 0 .16-.281L11 7.466l1.285.722v3.201Zm2.196-1a2.31 2.31 0 0 1-1.563 1.115c.002-.039.006-.076.006-.115V8.001a.32.32 0 0 0-.163-.279L9.456 5.863l1.268-.751 2.772 1.6c.623.36 1.068.94 1.254 1.635.186.694.09 1.42-.269 2.042Z"})])]),t("span",{class:"ask-red-hat-assitant-list-item__text"},"ChatGPT")],-1),t("span",{class:"ask-red-hat-assitant-list-item__icon external-icon"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"14",fill:"none"},[t("path",{fill:"inherit",d:"M14.75.438H9.5c-.275 0-.5.196-.5.437 0 .24.225.438.5.438h4.295L6.65 7.564a.398.398 0 0 0 0 .617.53.53 0 0 0 .355.127c.13 0 .255-.044.355-.127l7.145-6.252v3.758c0 .241.225.438.5.438s.5-.197.5-.438V1.095c0-.363-.335-.657-.75-.657h-.005Z"}),t("path",{fill:"inherit",d:"M15 8.313c-.275 0-.5.196-.5.437v3.938h-13V1.312H6c.275 0 .5-.196.5-.437 0-.24-.225-.438-.5-.438H1.25C.835.438.5.732.5 1.095v11.812c0 .363.335.656.75.656h13.5c.415 0 .75-.293.75-.656V8.75c0-.24-.225-.438-.5-.438Z"})])],-1)]))])])],10,$)):y("",!0)])]),_:1})}}},j=E(z,[["__scopeId","data-v-bd9c5573"]]);export{j as _};