PageSourceSearch

https://team.blue/cache-0152f83a4a/js/minified/modules/one-showroom/one-showroom-knowledge-base.js

js team.blue collected 2026-10-02 07:48:21 UTC 4,100 bytes, 11 lines download raw bytes

1var __tip_one = __tip_one||{}; (function(_) {
2'use strict';var jt=function(a){return _.zk&&void 0!=a.children?a.children:(0,_.yg)(a.childNodes,function(b){return 1==b.nodeType})},kt=function(a,b){if("undefined"!==typeof window.Map){_.hh.call(this,a);this.options={yi:!1,input:_.F("js-instant-results-input",a),$k:!1,rt:_.F("js-results-size-source",a),je:!0,nr:250};_.rq(this.options,b||{});this.yi=this.options.yi;this.ot=_.X(a,"instantResultsService")||a.action;this.Va=this.options.input;this.$k=this.options.$k;this.je=this.options.je;this.Rn=_.F("js-instant-results-control",
3a);this.Xg=_.F("js-instant-results-form-group",a);this.sk=_.F("js-instant-results-wrapper",a);this.Wg=_.F("js-instant-results-container",a);this.Sn=this.options.rt;this.qo=new _.Yp(this.Va);this.qo.Fj=this.options.nr;this.Wt=new _.th;this.yp=new _.sh(this.Wt,50);this.nc=null;this.ea=_.Ah.M();this.Xt=_.wh;this.isEnabled=!0;this.Ml=new Map;this.yr=5E3;this.yg=null;try{this.gt=new _.qp("js-instant-results-result-template",a)}catch(c){return}this.Wn=_.X(this.b(),"searchableTypes");this.Xl=_.X(this.b(),
4"currentCategories");this.init()}},nt=function(a,b){var c="";lt(a);let d=1;(0,_.B)(b,(0,_.x)(function(e){e.resultCount=d;d+=1;c+=_.sp(this.gt,e)},a));a.Wg.innerHTML=c;mt(a,!0)},mt=function(a,b){_.W(a.sk,"hidden",!b);a.Rn&&_.W(a.Rn,"is-open",b);b?(!1!==a.je&&(a.hm=_.M(document,"focus",a.Tj,!0,a),a.gm=_.M(document,"click",a.Sj,!0,a)),ot(a),a.fireEvent(pt)):(!1!==a.je&&(a.hm&&_.R(a.hm),a.gm&&_.R(a.gm)),a.fireEvent(qt))},lt=function(a){a.fireEvent(rt);a.Wg.innerHTML=""},ot=function(a){var b=jt(a.Wg);
5(0,_.B)(b,function(c){_.M(c,"click",this.Zj,!1,this)},a)},st=function(a,b){_.L.call(this,a,b);this.O=b};_.y(kt,_.hh);_.h=kt.prototype;_.h.init=function(){!0===this.je&&_.M(this.Va,"focus",this.kd,!1,this);_.M(this.qo,"input",this.Gm,!1,this);_.M(this.ea,_.Fh,this.bo,!1,this);this.bo();_.Ig(this.sk,"js-size-as-input")&&(this.zo(),_.M(this.yp,"resize",(0,_.x)(this.zo,this)));1<=(this.Va.value||"").length&&this.Gm()};_.h.Tj=function(a){this.kd(a)};_.h.Sj=function(a){this.kd(a)};
6_.h.kd=function(a){_.Qc(this.b(),a.target)?0<(this.Va.value||"").length&&0<jt(this.Wg).length&&mt(this,!0):mt(this,!1)};_.h.zo=function(){this.sk.style.width=_.Dm((this.Sn?this.Sn:this.Va).offsetWidth)};_.h.bo=function(){this.yi?this.isEnabled=!0:(this.isEnabled=_.Bh(this.ea,this.Xt),!this.isEnabled&&this.nc&&(this.nc.abort(),this.nc=null))};
7_.h.Gm=function(){this.nc&&(this.nc.abort(),this.nc=null);if(1>(this.Va.value||"").length)return mt(this,!1),!1;if(!this.isEnabled)return!1;const a=this.Ml.get(this.Va.value||"");"undefined"===typeof a?(setTimeout((0,_.x)(this.eq,this),0),this.nc=_.wi(this.ot,(0,_.x)(this.Os,this,this.Va.value||""),"POST","query\x3d"+encodeURIComponent(this.Va.value||"")+(null===this.Wn?"":"\x26searchableTypes\x3d"+encodeURIComponent(this.Wn))+(null===this.Xl?"":"\x26currentCategories\x3d"+encodeURIComponent(this.Xl)))):
81<=a.length?nt(this,a):mt(this,!1);return!0};_.h.Os=function(a,b){this.cm();b.success&&"undefined"!==typeof b.data.results&&(b=b.data.results,this.Ml.set(a,b),1<=b.length?nt(this,b):mt(this,!1));this.nc=null};_.h.Ck=function(){this.enabled=!1};_.h.Zn=function(){this.enabled=!0};_.h.eq=function(){_.W(this.b(),"is-loading",!0);this.Xg&&_.W(this.Xg,"is-loading",!0);this.yg&&clearTimeout(this.yg);this.yg=setTimeout((0,_.x)(this.cm,this),this.yr)};
9_.h.cm=function(){clearTimeout(this.yg);_.W(this.b(),"is-loading",!1);this.Xg&&_.W(this.Xg,"is-loading",!1)};_.h.Zj=function(){this.fireEvent(tt)};_.h.fireEvent=function(a){if(!this.$k)return!1;this.dispatchEvent(new st(a,this));return!0};var pt="open",qt="close",rt="clear",tt="click";_.y(st,_.L);var ut=class{constructor(){this.Z()}Z(){const a=new _.Wg({"instant-input-auto-complete-results":kt});_.vp(new _.Eq(a,_.Ac("js-knowledge-base-module")))}};_.Na(function(a){ut.prototype.Z=a(ut.prototype.Z)});_.Bg(_.rg(),"one-showroom-knowledge-base");var vt=class extends _.jg{constructor(){super()}nd(){new ut}};_.rg().Za(vt);_.rg().Mc();
10//# sourceURL=/js/minified/modules/one-showroom/one-showroom-knowledge-base.js
11})(__tip_one);

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.