1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[899],{8899:(t,i,e)=>{e.r(i),e.d(i,{default:()=>w});var n=e(6826),o=e(2690),r=e(6495),s=e(7390);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function h(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var i=function(t,i){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==a(i)?i:i+""}function c(t,i){!function(t,i){if(i.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,i),i.add(t)}function d(t,i,e){if("function"==typeof t?t===i:t.has(i))return arguments.length<3?i:e;throw new TypeError("Private element is not present on this object")}var p=new WeakSet;function u(){var t=this;this.$options.click((function(i){i.preventDefault();var e=(0,o.A)(i.currentTarget);t.options.activatableOptions&&t.activateOption(e),t.eventer.fire("selected",[e])})),n.A.bindOutboundToggleable({element:this.$trigger,protect:this.options.hideOnSelect?null:this.$options,outboundEvent:"click"},(function(){return t.toggle()}),(function(){return t.hide()}),!1),d(p,this,g).call(this)}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=d(p,this,v).call(this),e=Math.ceil(this.$triggerText.outerWidth());this.originWidth=Math.ceil(this.$triggerText.outerWidth()),e<i?this.$triggerText.animate({width:i},80,(function(){t&&t(i)})):t&&t(i)}function g(){this.options.activeOptionAsTitle&&this.activeOption()&&this.$triggerText.length&&(this.$triggerText.text(this.activeOption().text()),this.isOpen?this.originWidth=this.activeOption().find("span").outerWidth():this.$triggerText.css("width","auto"))}function v(){n.A.$body.append(this.$dropdownClone.css({position:"fixed",bottom:"-100%",display:"block",visibility:"hidden",width:"auto"}).show());var t=0;return this.$dropdownClone.find("a").each((function(i,e){var n=(0,o.A)(e).find("span").outerWidth();n>t&&(t=n)})),this.$dropdownClone.remove(),Math.ceil(t)}const w=function(){return t=function t(i){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,p),this.name=i,this.$dropdown=n.A.$select("dropdown").filterBy("data-dropdown",i),this.$trigger=n.A.$select("dropdown-trigger").filterBy("data-dropdown",i),this.$options=this.$dropdown.find("a"),this.$triggerClone=this.$trigger.clone(),this.$dropdownClone=this.$dropdown.clone(),this.$triggerText=this.$trigger.find(n.A.$select("dropdown-trigger-text")),this.options=Object.assign({hideOnSelect:!0,activatableOptions:!1,activeOptionAsTitle:!1},e),this.eventer=new r.A(["open","close","selected"]),this.isOpen=!1,this.originWidth=this.$trigger.outerWidth(),this.inModal=s.default.getModalParent(this.$dropdown),this.classes={triggerOpen:"jd-fp-resource-details__toggle-dropdown-trigger--open",optionActive:"jd-fp-resource-details__toggle-item--dropdown-link-active"},d(p,this,u).call(this)},(i=[{key:"toggle",value:function(){this.isOpen?this.hide():this.show()}},{key:"show",value:function(){var t=this;this.isOpen||(this.isOpen=!0,this.$trigger.addClass(this.classes.triggerOpen).attr("aria-expanded","true"),d(p,this,f).call(this,(function(){t.$dropdown.stop().slideDown(200)})))}},{key:"hide",value:function(){var t=this;this.isOpen&&(this.isOpen=!1,this.$trigger.removeClass(this.classes.triggerOpen).attr("aria-expanded","false"),this.$dropdown.stop().slideUp(200,(function(){t.$triggerText.animate({width:t.originWidth},80)})))}},{key:"activateOption",value:function(t,i){var e=null;(e=void 0!==t.jquery||void 0!==t.nodeType?(0,o.A)(t):this.$options.filterBy(t,i))&&e.length&&(this.$options.removeClass(this.classes.optionActive),e.addClass(this.classes.optionActive),this.$options.removeAttr("aria-current"),e.attr("aria-current","true"),d(p,this,g).call(this))}},{key:"activeOption",value:function(){var t=this;return this.$options.filter((function(i,e){return(0,o.A)(e).hasClass(t.classes.optionActive)}))}},{key:"on",value:function(t,i){return this.eventer.on(t,i)}}
1])&&h(t.prototype,i),e&&h(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}()}}]);
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.