Tesla price target raised to $551 from $482 at Canaccord
- by Yahoo | Business Finance
- Dec 24, 2025
- 0 Comments
- 0 Likes Flag 0 Of 5
40959)&&(i<13312||i>19903)&&(i<44032||i>55215))return!1}return!0},ve={navBeaconFired:!1},ye=["ready","navigation"],he=function(){function e(e){var t=this;this.triggerEvent=s,this.addEventListener=c,this.logError=l,this.logPerformance=u,this.getConfig=d,this.getPerformanceMetrics=p,this.rapidRefresh=ne,this.state=m({},ve),this.modules=e,this.userEmail="",window.YBAR&&(ye.forEach((function(e){var n="on".concat(e),o=window.YBAR[n];o&&(t[n]=o)})),window.YBAR.wssid&&(this.wssid=window.YBAR.wssid),window.YBAR.appid&&(this.appid=window.YBAR.appid)),ye.forEach((function(e){var n="on".concat(e);c(e,(function(){for(var o,i=[],a=0;a
90&&Te("performance",e)}catch(e){}}),1e3)})),le(),c("error",(function(e){var t=e&&e.detail||{},n=t.error||{},o=t.message||n.message||n.toString();try{var i={code:n.name,file:n.fileName||"",line:n.lineNumber||"",message:o};Te("error",i)}catch(e){}}));var Be="_yb_a80o30",De="_yb_1348ffh",Pe="_yb_2wm7zv",Re="_yb_daionv";if("undefined"!=typeof Element&&!Element.prototype.matches){var He=Element.prototype;He.matches=He.matchesSelector||He.mozMatchesSelector||He.msMatchesSelector||He.oMatchesSelector||He.webkitMatchesSelector}var Ue=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}};function je(e,t,n,o,i){var a=Ye.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function Ye(e,t,n,o){return function(n){n.delegateTarget=Ue(n.target,t),n.delegateTarget&&o.call(e,n)}}var Fe,ze=function(e,t,n,o,i){return"function"==typeof e.addEventListener?je.apply(null,arguments):"function"==typeof n?je.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return je(e,t,n,o,i)})))},We=function(e){this.data=e,this.next=null,this.prev=null},Ge=function(){function e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var t=new We(e);return this.head?this.tail?(t.prev=this.tail,this.tail.next=t,this.tail=t):(this.tail=t,this.tail.prev=this.head,this.head.next=this.tail):(this.head=t,t.next=this.tail),t},e.prototype.size=function(){for(var e=0,t=this.head;t;)e+=1,t=t.next;return e},e.prototype.getHead=function(){return this.head},e.prototype.getTail=function(){return this.tail},e.prototype.get=function(e){if(e>=this.size())return null;for(var t=0,n=this.head;(null==n?void 0:n.next)&&t
=200&&i.status<=299,status:i.status,text:function(){return Promise.resolve(i.responseText)},json:function(){return new Promise((function(e,t){try{e(JSON.parse(i.responseText))}catch(e){t(e)}}))}})},i.send(t.body)}))]}))}))},Ot=function(e,t){return void 0===t&&(t={}),("function"==typeof window.fetch?fetch:Tt)(e,t)},Bt=function(e,t){var n=e.url,o=e.headers,i=void 0===o?{}:o;return i["X-Requested-With"]="XMLHttpRequest",Ot(n,{headers:i,credentials:"include"}).then((function(e){return e.text().then((function(n){qt({status:e.status,responseText:n},t)}))}))};!function(e){e[e.COUNT=0]="COUNT"}(tt||(tt={})),function(e){e[e.PENDING=0]="PENDING",e[e.COMPLETE=1]="COMPLETE"}(nt||(nt={}));var Dt={0:0,1:1,9:9,99:99,150:150},Pt=new Map,Rt=function(){function e(){}return Object.defineProperty(e.prototype,"wssid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.wssid;return n||(n=(null===(t=document.querySelector('input[name="mail_wssid"]'))||void 0===t?void 0:t.value)||"",this.wssid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.wssid=e||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appid",{get:function(){var e,t,n=null===(e=window.YBAR)||void 0===e?void 0:e.appid;return n||(n=(null===(t=document.querySelector('input[name="mail_appid"]'))||void 0===t?void 0:t.value)||"",this.appid=n),n},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.appid=e||""},enumerable:!1,configurable:!0}),e.prototype.fetchCount=function(e){return v(this,void 0,void 0,(function(){var t,n,o,i,a=this;return y(this,(function(r){return t=function(e){var t=Pt.get(e);if(t){if(t.status===nt.PENDING)return t.promise;var n=Date.now()-12e4;return t.data&&t.lastRequested>n?Promise.resolve(t.data):void 0}}(tt.COUNT),(n=this._checkForMockData())?[2,n]:!e&&t?[2,t]:(1,o={data:{responseType:"json",requests:[{id:"GetMailboxId",uri:"/ws/v3/mailboxes/",method:"GET",filters:{select:{mailboxId:"$..mailboxes[?(@.isPrimary==true)].id"}},suppressResponse:!0,requests:[{id:"ListDecos",uri:"/ws/v3/mailboxes/@.id==$(mailboxId)/decos",method:"GET"}]}]}},i=this._fetch(o,1,(function(e){var t=a._normalizerCountResponse(e);return function(e,t){var n={lastRequested:Date.now(),status:nt.COMPLETE,promise:Promise.resolve(t),data:t};Pt.set(e,n)}(tt.COUNT,t),t})),s=tt.COUNT,c=i,l={lastRequested:Date.now(),status:nt.PENDING,promise:c},Pt.set(s,l),[2,i]);var s,c,l}))}))},e.prototype._fetch=function(e,t,n){var o,i;return v(this,void 0,void 0,(function(){var a,r,s,c,u,d,p,f,v,h,b,g,w,_,L,E;return y(this,(function(y){switch(y.label){case 0:if(a=e.data,r=void 0===a?{}:a,s=e.params,c=void 0===s?{}:s,u="EC-4008",d="EC-4003",p=this._getYmreqid(),!this.appid)throw new Error("No appId, user is logged out");f=m({appId:this.appid},c),this.wssid&&"mail_wssid"!==this.wssid&&(f.wssid=this.wssid),e.params=f,v=[],Object.keys(f).forEach((function(e){var t=f[e];t&&v.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t)))})),h=v.length?"?".concat(v.join("&")):"",b="https://apis.mail.yahoo.com/ws/v3/batch".concat(h),y.label=1;case 1:return y.trys.push([1,4,,5]),[4,Ot(b,{method:"POST",body:JSON.stringify(r),credentials:"include",headers:{"Content-Type":"application/json","X-Oath-YmReqId":p}})];case 2:return[4,(g=y.sent()).json()];case 3:if(w=y.sent(),g.ok)return[2,n(null===(i=w.result)||void 0===i?void 0:i.responses)];if((_=null===(o=null==w?void 0:w.error)||void 0===o?void 0:o.code)===d)return[2,this._handleWssidApiError(w,e,t,n)];throw _===u?new Error("Session has expired"):new Error("Mail Api Responded with an Error");case 4:throw L=y.sent(),l("JWS: ".concat((E=L).message),E),L;case 5:return[2]}}))}))},e.prototype._checkForMockData=function(){var e=document.getElementById("ybar");if(e&&e.hasAttribute("data-mc")){var t=e.getAttribute("data-mc");if(t&&Dt[t])return Dt[t]}},e.prototype._normalizerCountResponse=function(e){var t,n,o,i,a,r;if(!e)return 0;var s=((null===(o=null===(n=null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.response)||void 0===n?void 0:n.result)||void 0===o?void 0:o.decos)||[]).find((function(e){return"FTI"===(null==e?void 0:e.id)}));return s&&null!==(r=null===(a=null===(i=null==s?void 0:s.counts)||void 0===i?void 0:i[0])||void 0===a?void 0:a.unseen)&&void 0!==r?r:0},e.prototype._handleWssidApiError=function(e,t,n,o){var i,a,r=null===(a=null===(i=null==e?void 0:e.error)||void 0===i?void 0:i.details)||void 0===a?void 0:a.wssid,s=t.params,c=(void 0===s?{}:s).wssid;if(r){if(c&&r===c)throw new Error("API provided same invalid WSSID");if(void 0!==n&&n>0)return n-=1,this.wssid=r,this._fetch(t,n,o);throw new Error("Max retries with invalid WSSID reached")}throw new Error("valid WSSID missing from API Response")},e.prototype._getYmreqid=function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-xxxx-09xx-xxxxxxxxxx00".replace(new RegExp("x","g"),(function(){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),t.toString(16)}))},e}(),Ht={add:[{itemId:"ybar-mail-banner",reactions:["SHOWN"]}]};ge("ybar-mod-sidenav",(function(e){var t,n={sidenavBtn:document.getElementById("_yb_sidenav-btn"),sidenav:document.querySelector(".".concat(wt)),menu:document.querySelector(".".concat(Lt)),sections:document.querySelectorAll(".".concat(yt)),closeBtn:document.querySelector(".".concat(it)),panels:document.querySelectorAll(".".concat(vt)),backBtn:document.querySelector(".".concat(ot)),footer:document.querySelector(".".concat(ut)),copyright:document.querySelector(".".concat(rt)),selectedSectionLinks:document.querySelectorAll(".".concat(bt," a")),focusedElement:document.querySelector(".".concat(bt," .").concat(lt)),editionsDropdown:document.querySelector(".".concat(st)),mailUnread:document.querySelector(".".concat(kt)),mailTooltip:document.getElementById("_yb_mail-tooltip"),tooltipClose:document.getElementById("_yb_mail-tooltip-close")},o=window.location.href.split("?")[0]?window.location.href.split("?")[0].replace(/\/$/,""):window.location.href,i=b([],h(n.selectedSectionLinks),!1);if(!n.focusedElement)for(var a=0;a
li > a[href]",":scope > li > button"].join(","));if(0!==n.length){var o=n[0],i=n[n.length-1];t.addEventListener("keydown",a),e.onDestroy((function(){t.removeEventListener("keydown",a)})),document.activeElement!==o&&o.focus()}function a(e){"Tab"===e.key&&(e.shiftKey||document.activeElement!==i?e.shiftKey&&document.activeElement===o&&(e.preventDefault(),i.focus()):(e.preventDefault(),o.focus()))}},f=function(e,t){e.classList.remove("".concat(ft)),t.style.height=""},v=function(e,t){e.classList.add("".concat(ft)),t.style.height=t.scrollHeight+"px"},y=function(e){var t=e.mailTooltip;null==t||t.classList.remove("".concat(Mt)),null==t||t.classList.add("".concat(xt)),setTimeout((function(){null==t||t.remove()}),400)},g=function(){Bt({url:"https://graviton-user-gateway.media.yahoo.com/api/auth/v2/crumb?appId=yahoo_fp"},(function(e,t){e?y(n):t&&t.crumb&&function(e,t){var n=e.url,o=e.ymreqid,i=e.crumb,a=e.body;Ot(n,{method:"POST",headers:m(m({"Content-Type":"application/json"},"string"==typeof i?{"X-CSRF-Token":i}:{}),"string"==typeof o?{"X-Oath-YmReqId":o}:{}),body:void 0!==a?JSON.stringify(a):null,credentials:"include"}).then((function(e){return e.text().then((function(n){qt({status:e.status,responseText:n,ymreqid:o},t)}))}))}({url:"https://graviton-user-gateway.media.yahoo.com/api/user/v1/declared/reactions/TOOLTIP/DIALOG?appId=yahoo_fp",crumb:t.crumb,body:Ht},(function(){console.log("record updated")}))}))};if(n.tooltipClose&&n.mailTooltip&&(Bt({url:"https://graviton-user-gateway.media.yahoo.com/api/user/v1/declared/reactions/TOOLTIP?appId=yahoo_fp&reactionGroups=DIALOG&itemIds=ybar-mail-banner"},(function(e,t){var o,i,a=null===(o=document.getElementById("ybar"))||void 0===o?void 0:o.hasAttribute("data-mc");if(null==t?void 0:t.userReactions[0]){var r=n.mailTooltip;(null==t?void 0:t.userReactions[0]).reactionList.length&&!a?null==r||r.remove():(null==r||r.classList.add("".concat(Mt)),g(),(null===(i=n.mailTooltip)||void 0===i?void 0:i.classList.contains("no-fade"))||setTimeout((function(){y(n)}),1e4))}})),n.tooltipClose.addEventListener("click",(function(){y(n)}))),n.sidenavBtn&&n.closeBtn){if(function(e,t,n,o,i){var a,r;void 0===i&&(i=!1);var s=e||document.body,c=document.createElement("div");c.classList.add(It.overlay),c.setAttribute("data-hidden","true"),i&&c.classList.add(It["fade-in-out"]),null===(r=null===(a=s.parentNode)||void 0===a?void 0:a.parentNode)||void 0===r||r.appendChild(c),s.classList.add(It.animation);var l=document.documentElement,u=!0,d=0,p=function(){u=!u,c.setAttribute("data-hidden","".concat(u)),null==l||l.classList.toggle("ybar-overlay"),document.body.classList.toggle(It.noscroll,!u),s.classList.toggle(It[t+"-open"],!u),u?(c.scrollTop=0,n.triggerEvent("yb-overlay-closed")):null==o||o.focus(),0===d&&(d=1,setTimeout((function(){ne()}),300))};n.onDestroy((function(){var e,t;null===(t=null===(e=s.parentNode)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(c),s.classList.remove(It.animation),u||p()})),n.addElementListener(s,"toggle-overlay",(function(){p()})),n.addElementListener(c,"mousedown",(function(){p()}))}(n.menu,"left",e,void 0,!0),e.addEventListener("yb-overlay-closed",(function(){c(n,!1)})),e.addElementListener(n.sidenavBtn,"click",(function(){document.getElementById("_yb_mail-tooltip")&&y(n),function(e){var t=e.menu,n=e.sidenavBtn,o=e.sidenav,i={sec:"ybar",slk:"hamburger",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};if(t&&n&&o){o.style.display="flex",t.dispatchEvent(new CustomEvent("toggle-overlay")),n.setAttribute("aria-expanded","true"),i.elm="expand",te("ybar",i.slk,"",i);var a=t.querySelector(".".concat(bt)),r=null==a?void 0:a.querySelector("ul");a&&r&&v(r,a),o.scrollTop=0}}(n)})),e.addElementListener(n.closeBtn,"click",(function(){c(n,!0)})),n.sections)Array.from(n.sections).forEach((function(t){var o=t.querySelector("h3"),i=t.querySelector("ul"),a=null==o?void 0:o.querySelector("a"),r=null==o?void 0:o.classList.contains("".concat(_t)),s=null==o?void 0:o.getElementsByClassName("".concat(Et))[0],c=function(e){f(e,t),t.classList.remove("".concat(ct)),setTimeout((function(){t.classList.contains("".concat(ct))||t.classList.add("".concat(at))}),0)},d=function(e){t.classList.remove("".concat(at)),t.classList.add("".concat(ct)),v(e,t)};o&&i&&e.addElementListener(s,"click",(function(){var e={sec:"ybar",slk:o.innerText,pkgt:"side-nav",elm:"close",subsec:"navrail",itc:"1"};if(t.classList.contains("".concat(ct)))return c(i),void te("ybar",e.slk,"",e);d(i),e.elm="expand",te("ybar",e.slk,"",e)})),o&&i&&r&&e.addElementListener(o,"click",(function(){var e={sec:"ybar",slk:o.innerText,pkgt:"side-nav",elm:"close",subsec:"navrail",itc:"1"};if(t.classList.contains("".concat(ct)))return c(i),void te("ybar",e.slk,"",e);d(i),e.elm="expand",te("ybar",e.slk,"",e)})),o&&i&&r&&e.addElementListener(o,"keydown",(function(e){13===e.keyCode&&o.click()})),o&&i&&e.addElementListener(s,"keydown",(function(e){var n=e.keyCode;e.stopPropagation();var a={sec:"ybar",slk:o.innerText,pkgt:"side-nav",elm:"close",subsec:"navrail",itc:"1"};if(13===n&&t.classList.contains("".concat(ct)))return c(i),void te("ybar",a.slk,"",a);13===n&&(d(i),a.elm="expand",te("ybar",a.slk,"",a))})),o&&i&&!r&&e.addElementListener(o,"keydown",(function(e){13===e.keyCode&&(null==a||a.click())}));var p=t.querySelectorAll(".".concat(dt));p&&Array.from(p).forEach((function(t){var o=t.querySelector(".".concat(vt)),i=t.querySelector(".".concat(mt)),a=t.querySelector(".".concat(ht)),r=t.querySelector(".".concat(ot)),s=(null==a?void 0:a.innerText)||"",c=t.querySelector("button.".concat(ht)),d=function(e){var t=e.sections;t&&Array.from(t).forEach((function(e){var t=e.classList.contains("".concat(st)),n=e.classList.contains("".concat(ct));if(t&&n){e.classList.replace("".concat(ct),"".concat(at));var o=e.querySelector("ul.".concat(ft));o&&f(o,e)}}))};o&&r&&i&&(e.addElementListener(i,"click",(function(){i.classList.contains("".concat(Nt))?u(o,0,s):(l(o,n,s),d(n))})),e.addElementListener(c,"click",(function(){l(o,n,s),d(n)})),e.addElementListener(r,"click",(function(){r.classList.contains("".concat(Nt))?u(o,0,s):(l(o,n,"close-back-btn"),d(n)),function(e){var t=e.closest(".".concat(dt));if(t){var n=t.querySelector(".".concat(Et));n&&n.focus()}}(o)})))}))}));window.addEventListener("keyup",(function(e){27===e.keyCode&&c(n,!0)}))}n.mailUnread&&function(e,t){var o=n.mailUnread,i=n.sidenavBtn;t.fetchCount().then((function(t){if(o&&t>0){if(o&&i){var n=t>99;o.classList.add("".concat(At)),i.classList.add("count-loaded"),o.textContent=n?"99+":t+"",n?o.classList.add("".concat(Ct)):t>=10&&o.classList.add("".concat(St))}e.onDestroy((function(){o&&(o.textContent="")}))}})).catch((function(){}))}(e,s)}));var Ut="_yb_1e46uhr",jt=function(e,t){var n;t.logoImages&&(n=t.logoImages).length>0&&Array.prototype.forEach.call(n,(function(e){e.onerror=function(){e.onerror=null,e.style.display="none"}})),t.wrapper&&(function(e,t){e&&(xe("#ybar-logo","#ybar-logo",t),t.onDestroy((function(){e.classList.remove("ybar-show-outline"),e.classList.remove("ybar-hide-outline")})))}(t.wrapper,e),function(e,t){t&&e.addElementListener(t,"click",(function(){e.triggerEvent("logo-click")}))}(e,t.wrapper))};ge("ybar-mod-logo",(function(e){var t={wrapper:document.getElementById("ybar-logo"),logoImages:document.querySelectorAll(".".concat(Ut))};jt(e,t)}));var Yt={"dropdown-open":"_yb_1qr55t8","merchant-is-selected":"_yb_hpfgev",overlay:"_yb_1t4opbo","selected-merchant-clear-button":"_yb_sdzekv","shops-buttons":"_yb_1gmhi8h","styled-select":"_yb_1fed2vs",tooltip:"_yb_156j5sr","tooltip--show":"_yb_t94u7s",tooltip__text:"_yb_149d3c6",tooltip__voice:"_yb_rkldcd",tooltip__web:"_yb_1bze76z",dark:"_yb_of9a42",darker:"_yb_1br2rz9",light:"_yb_p0373k","search-border-gradient":"_yb_109k2ga","search-border-gradient-hover":"_yb_vljmzl",midnight60:"_yb_1o792pg","search-input-uh3-hover":"_yb_15ox84z","search-input-uh3-focus-visible":"_yb_1e6541m","sa-btn-bar":"_yb_1axm66t","searchbox-icon-uh3":"_yb_1uef33k",empty:"_yb_owcm9n"},Ft=function(e,t){var n=Math.max(e,t),o=Math.min(e,t),i=Math.abs(n-o);return b([],h(new Array(i+1)),!1).map((function(e,t){return o+t}))},zt=function(e,t,n){var o=e.getConfig().bucketConfig,i=(void 0===o?{}:o).enable_search_ui,a=void 0!==i&&i;if(t.ybar){t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.add("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");te("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"}),setTimeout((function(){t.searchInput instanceof HTMLInputElement&&(n&&(t.searchInput.value=n),t.searchInput.focus(),a&&window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view&&!window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.show())}))}},Wt=function(e){var t;null===(t=e.ybar)||void 0===t||t.classList.remove("ybar-searchbox-assist-fullscreen"),document.documentElement.classList.remove("ybar-overlay"),document.body.classList.remove("ybar-overlay-noscroll"),e.searchInput instanceof HTMLInputElement&&(e.searchInput.value="",e.searchInput.blur())},Gt=function(e,t){var n=e.getConfig();"smartphone"===n.device&&("finance"===n.property&&"crunch"===n.ytheme&&e.addElementListener(t.searchInput,"click",(function(){var n,o;n="search_input_focus_click",null!==(o=re())&&(oe[n]||(oe[n]=o)),e.addElementListener(t.searchForm,"click",(function(){if(t.ybar){if(t.ybar.classList.contains("ybar-searchbox-assist-fullscreen"))return;t.ybar.classList.add("ybar-searchbox-assist-fullscreen"),t.ybar.classList.add("ybar-searchbox-assist-fadein")}if(!document.documentElement.classList.contains("ybar-overlay")){document.documentElement.classList.toggle("ybar-overlay"),document.body.classList.add("ybar-overlay-noscroll");te("ybar","websrch","",{elm:"expand",subsec:"searchbox",itc:"1"})}}))})),e.addElementListener(t.searchBoxPlaceholder,"click",(function(){zt(e,t)})),e.addElementListener(t.searchBoxPlaceholder,"keydown",(function(n){var o=n,i=o.keyCode,a=o.key,r=Ft(65,90),s=b(b([],h(Ft(58,57)),!1),h(Ft(96,105)),!1),c=b(b([],h(r),!1),h(s),!1).includes(i);(32===i||13===i||c)&&(n.preventDefault(),n.stopPropagation(),zt(e,t,c?a:""))})),t.searchBoxBackButton&&(e.addElementListener(t.searchBoxBackButton,"click",(function(e){e.stopPropagation(),window.YAHOO&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&(window.YAHOO.SA.apps[0].view.resetQuery(),window.YAHOO.SA.apps[0].view.hide()),Wt(t);te("ybar","back-close-srch","",{elm:"btn",subsec:"searchbox",itc:"1"})})),e.addElementListener(t.searchInput,"keyup",(function(e){e.stopPropagation();27===e.keyCode&&(e.stopPropagation(),Wt(t))}))),e.addEventListener("viewerClosed",(function(){Wt(t)})),e.onDestroy((function(){Wt(t)})))},Kt=function(){function e(e,t,n){t&&(this.ybar=e,this.elem=t,this.options=n,this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.addEventListeners())}return Object.defineProperty(e.prototype,"tooltip",{get:function(){var e=this;return this.tooltipMarkup||(this.tooltipMarkup=this.createTooltip(),(this.options.tooltipParentElm||this.elem).appendChild(this.tooltipMarkup),this.ybar.onDestroy((function(){var t,n;null===(n=null===(t=e.tooltipMarkup)||void 0===t?void 0:t.parentNode)||void 0===n||n.removeChild(e.tooltipMarkup)}))),this.tooltipMarkup},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.tooltip.classList.add(this.options.showClass)},e.prototype.hide=function(){this.tooltip.classList.remove(this.options.showClass)},e.prototype.addEventListeners=function(){this.ybar.addElementListener(this.elem,"mouseenter",this.show),this.ybar.addElementListener(this.elem,"focus",this.show),this.ybar.addElementListener(this.elem,"mouseleave",this.hide),this.ybar.addElementListener(this.elem,"blur",this.hide)},e.prototype.createTooltip=function(){var e=document.createElement("div");e.className=this.options.containerClass||"";var t=document.createElement("p");return t.textContent=this.options.label,t.className=this.options.textClass||"",e.appendChild(t),e},e}(),Jt={containerClass:Yt.tooltip,textClass:Yt.tooltip__text,showClass:Yt["tooltip--show"]};ge("ybar-mod-searchbox",(function(e){var t,n=e.getConfig(),o={ybar:document.getElementById("ybar"),searchInput:document.getElementById("ybar-sbq"),buttonBar:document.querySelector(".".concat(Yt["sa-btn-bar"])),searchForm:document.getElementById("ybar-sf"),searchBoxIcon:document.querySelector(".".concat(Yt["searchbox-icon-uh3"])),searchBoxPlaceholder:document.getElementById("ybar-smartphone-searchbox-placeholder"),searchBoxBackButton:document.getElementById("ybar-search-back-btn"),shopsButtonsWrap:document.querySelector(".".concat(Yt["shops-buttons"])),categorySelect:document.getElementById("shops-category-select"),selectedMerchantInput:document.getElementById("selected-merchant-input"),selectedMerchantClearButton:document.querySelector(".".concat(Yt["selected-merchant-clear-button"])),submitSearchBtn:document.getElementById("ybar-search"),clearSearchBtn:document.getElementById("ybar-sbq-x"),searchGradientBorder:document.querySelector(".".concat(Yt["search-border-gradient"]))};if(function(e,t){var n,o,i,a=e.getConfig();if(t.ybar&&["desktop","tablet"].includes(a.device)&&(null===(n=a.bucketConfig)||void 0===n?void 0:n.highlight_searchassist)&&(null===(o=a.bucketConfig)||void 0===o?void 0:o.overlay_class)){t.ybar.setAttribute("data-ovrly-bkt",a.bucketConfig.overlay_class),null===(i=t.searchForm)||void 0===i||i.classList.add(Yt[a.bucketConfig.overlay_class]);var r=document.createElement("div");r.classList.add(Yt.overlay,Yt[a.bucketConfig.overlay_class]),document.body.appendChild(r),e.onDestroy((function(){document.body.removeChild(r)})),e.addElementListener(t.searchForm,"focusout",(function(e){if(t.searchForm&&t.searchInput){var n=e.relatedTarget;n&&!t.searchForm.contains(n)&&window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown&&window.YAHOO.SA.apps[0].view.hide()}}))}}(e,o),Gt(e,o),o.searchGradientBorder){var i=!1;o.searchInput.addEventListener("keydown",(function(e){var t=e.code,n=e.key,a=t.startsWith("Key"),r=t.startsWith("Digit"),s=/^[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?`~]$/.test(n);(a||r||s)&&!i&&(o.searchGradientBorder.classList.add("".concat(Yt["search-border-gradient-hover"])),i=!0)})),e.addElementListener(o.searchForm,"mouseover",(function(){i||o.searchGradientBorder.classList.add("".concat(Yt["search-border-gradient-hover"]))})),e.addElementListener(o.searchForm,"mouseout",(function(){i||o.searchGradientBorder.classList.remove("".concat(Yt["search-border-gradient-hover"]))})),e.addElementListener(o.searchInput,"click",(function(){i=!0})),e.addElementListener(o.searchInput,"blur",(function(){o.searchGradientBorder.classList.remove("".concat(Yt["search-border-gradient-hover"]))}))}o.searchForm&&(e.addElementListener(o.searchBoxIcon,"mouseover",(function(){o.searchForm.classList.add("".concat(Yt["search-input-uh3-hover"]))})),e.addElementListener(o.searchBoxIcon,"mouseout",(function(){o.searchForm.classList.remove("".concat(Yt["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseover",(function(){o.searchForm.classList.add("".concat(Yt["search-input-uh3-hover"]))})),e.addElementListener(o.buttonBar,"mouseout",(function(){o.searchForm.classList.remove("".concat(Yt["search-input-uh3-hover"]))})),e.addElementListener(o.searchInput,"keyup",(function(e){"Tab"===e.key&&o.searchForm.classList.add("".concat(Yt["search-input-uh3-focus-visible"])),o.searchInput.classList.toggle("".concat(Yt.empty),""===o.searchInput.value)})),e.addElementListener(o.searchInput,"keydown",(function(){o.searchForm.classList.remove("".concat(Yt["search-input-uh3-focus-visible"]))})),e.addElementListener(o.searchInput,"focusout",(function(){o.searchForm.classList.remove("".concat(Yt["search-input-uh3-focus-visible"]))})),e.addElementListener(o.submitSearchBtn,"click",(function(e){""===o.searchInput.value.trim()&&e.preventDefault()})),e.addElementListener(o.clearSearchBtn,"click",(function(){o.searchInput.classList.add("".concat(Yt.empty))}))),o.submitSearchBtn&&"crunch"===n.ytheme&&new Kt(e,o.submitSearchBtn,m(m({},Jt),{label:null!==(t=n.i18n.root.SEARCH_TOOLTIP_WEB)&&void 0!==t?t:"Search the web",containerClass:"".concat(Yt.tooltip," ").concat(Yt.tooltip__web),tooltipParentElm:o.clearSearchBtn.parentElement}))}));var Vt="_yb_tdk4ba",$t="_yb_hkd17a",Xt="_yb_rtzclf",Zt="_yb_tdbhj6",Qt="_yb_de52ef",en="_yb_9hwrey",tn="_yb_slc8ta",nn="_yb_bf0svp",on="_yb_hjic9z";ge("ybar-mod-adaptivenav",(function(e){var t=document.querySelector("#ybar-l1-more-menu ul"),n={moreDropDown:document.querySelector(".".concat(Vt)),moreBtn:document.querySelector(".".concat($t)),wrap:document.querySelector(".".concat(Zt)),moreSectionTitle:document.querySelectorAll(".".concat(Qt)),editionsCtaBtn:document.querySelector(".".concat(en)),editionsMenu:document.querySelector(".".concat(tn)),closeBtn:document.querySelector(".".concat(nn)),moreMenuDropDownHeight:t?"".concat(t.offsetHeight+48,"px"):"0"};new Ke(e,{adaptiveNavBtn:n.moreBtn,containerElm:n.moreDropDown,innerContainerElm:n.editionsMenu,isAdaptiveNav:!0});var o=!1,i=function(t,n){var o=t.moreDropDown,i=t.moreBtn,a=t.wrap,r={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"};o&&i&&a&&o.classList.contains("".concat(Vt))&&(o.style.height=t.moreMenuDropDownHeight,o.classList.remove("".concat(Vt)),a.classList.add("".concat(Xt)),i.setAttribute("aria-expanded","true"),r.elm="expand",e.triggerEvent("adapnav:more:show",{event:n}),te("ybar",r.slk,"",r))},a=function(e,t){void 0===t&&(t=!1);var n=e.moreDropDown,i=e.moreBtn,a=e.wrap,r={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};n&&i&&a&&(n.classList.contains("".concat(Vt))||(n.classList.add("".concat(Vt)),n.style.height="0",a.classList.remove("".concat(Xt)),i.setAttribute("aria-expanded","false"),o||t||te("ybar",r.slk,"",r)))},r=function(e,t){void 0===t&&(t=!1);var n=e.editionsMenu,o={sec:"ybar",slk:"More",elm:"close",pkgt:"top",subsec:"navrail",itc:"1"};null==n||n.close(),null==n||n.classList.remove("".concat(on)),t||te("ybar",o.slk,"",o)},s=function(){var e;window.innerWidth<1024&&(null===(e=n.editionsMenu)||void 0===e||e.close())};n.moreBtn&&(e.addElementListener(n.moreBtn.parentNode,"keydown",(function(e){!function(e){var t,o=e.key;switch(o){case" ":case"ArrowDown":case"Enter":if(document.activeElement===n.moreBtn)i(n,e),setTimeout((function(){var e;null===(e=n.moreDropDown)||void 0===e||e.querySelectorAll("a")[0].focus()}),300);else if(document.activeElement===n.editionsCtaBtn){var r=null===(t=n.editionsMenu)||void 0===t?void 0:t.querySelectorAll("a, button")[0];setTimeout((function(){r.focus()}),100)}break;case"Tab":if(console.log(o),document.activeElement===n.moreBtn)return;a(n),setTimeout((function(){var e;null===(e=n.moreBtn)||void 0===e||e.focus()}),300);break;case"Escape":a(n),setTimeout((function(){var e;null===(e=n.moreBtn)||void 0===e||e.focus()}),300)}}(e)})),e.addElementListener(n.moreBtn,"mouseenter",(function(e){var t;window.YAHOO.SA&&window.YAHOO.SA.apps&&window.YAHOO.SA.apps[0]&&window.YAHOO.SA.apps[0].view.shown?window.YAHOO.SA.apps[0].view.hide():null===(t=n.moreBtn)||void 0===t||t.click(),i(n,e)})),e.addElementListener(n.moreBtn.parentNode,"mouseleave",(function(){a(n)})),e.addElementListener(n.moreBtn.parentNode,"click",(function(e){n.moreDropDown&&n.moreDropDown.classList.contains("".concat(Vt))&&i(n,e)})),e.addElementListener(n.moreBtn,"keydown",(function(e){var t;27===e.keyCode&&(null===(t=n.moreBtn)||void 0===t||t.blur())}))),n.moreSectionTitle&&Array.from(n.moreSectionTitle).forEach((function(t){e.addElementListener(t,"mouseover",(function(){o=!0})),e.addElementListener(t,"mouseout",(function(){o=!1}))})),n.editionsCtaBtn&&n.editionsMenu&&"function"==typeof HTMLDialogElement&&(n.editionsMenu.setAttribute("style",""),e.addElementListener(n.editionsCtaBtn,"click",(function(){var e,t;n.editionsMenu&&(e=n.editionsMenu,t={sec:"ybar",slk:"More",elm:"expand",pkgt:"top",subsec:"navrail",itc:"1"},e&&(e.showModal(),e.classList.add("".concat(on)),te("ybar",t.slk,"",t)))})),e.addElementListener(n.closeBtn,"click",(function(){r(n)})),n.editionsMenu.addEventListener("click",(function(e){var t,o=null===(t=n.editionsMenu)||void 0===t?void 0:t.getBoundingClientRect();(e.clientX
o.right||e.clientY
Please first to comment
Related Post
The Most Efficient EV In America Isn't A Tesla
- Dec 24, 2025
Stay Connected
Tweets by elonmuskTo get the latest tweets please make sure you are logged in on X on this browser.
Energy





