1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[612,899],{8899:(t,e,i)=>{i.r(e),i.d(e,{default:()=>w});var n=i(6826),r=i(2690),o=i(6495),s=i(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 l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function h(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function d(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var u=new WeakSet;function f(){var t=this;this.$options.click((function(e){e.preventDefault();var i=(0,r.A)(e.currentTarget);t.options.activatableOptions&&t.activateOption(i),t.eventer.fire("selected",[i])})),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(u,this,p).call(this)}function g(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=d(u,this,v).call(this),i=Math.ceil(this.$triggerText.outerWidth());this.originWidth=Math.ceil(this.$triggerText.outerWidth()),i<e?this.$triggerText.animate({width:e},80,(function(){t&&t(e)})):t&&t(e)}function p(){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(e,i){var n=(0,r.A)(i).find("span").outerWidth();n>t&&(t=n)})),this.$dropdownClone.remove(),Math.ceil(t)}const w=function(){return t=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,u),this.name=e,this.$dropdown=n.A.$select("dropdown").filterBy("data-dropdown",e),this.$trigger=n.A.$select("dropdown-trigger").filterBy("data-dropdown",e),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},i),this.eventer=new o.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(u,this,f).call(this)},(e=[{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(u,this,g).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,e){var i=null;(i=void 0!==t.jquery||void 0!==t.nodeType?(0,r.A)(t):this.$options.filterBy(t,e))&&i.length&&(this.$options.removeClass(this.classes.optionActive),i.addClass(this.classes.optionActive),this.$options.removeAttr("aria-current"),i.attr("aria-current","true"),d(u,this,p).call(this))}},{key:"activeOption",value:function(){var t=this;return this.$options.filter((function(e,i){return(0,r.A)(i).hasClass(t.classes.optionActive)}))}},{key:"on",value:function(t,e){return this.eventer.on(t,e)}}])&&l(t.prototype,e),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i}()},2612:(t,e,i)=>{i.r(e),i.d(e,{default:()=>v});var n,r=i(6826),o=i(2690),s=i(6495),a=i(8899),l=i(6031);function h(t){return h="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},h(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function d(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==h(e)?e:e+""}function u(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}var f=new WeakSet,g=function(){return t=function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,f),this.setName=e,this.$triggers=r.A.$select("toggle-trigger").filterBy("data-toggle-set",this.setName),this.$sets=r.A.$select("toggle-set").filterBy("data-toggle-set",this.setName),this.$dropdown=r.A.$select("dropdown").filterBy("data-dropdown",this.setName),this.eventer=new s.A(["init","change"]),this.dropdown=null,this.sets={},this.classes={triggerActive:"jd-fp-resource-details__toggle-item--active"},n.on)for(var o in n.on)this.eventer.on(o,n.on[o]);this.$dropdown.length&&(this.dropdown=new a.default(this.$dropdown.data("dropdown"),{hideOnSelect:!1,activeOptionAsTitle:!0}),this.dropdown.on("selected",(function(t){var e=t.data("toggle-id");i.showSet(e)}))),function(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}(f,this,p).call(this)},(e=[{key:"showSet",value:function(t){this.sets[t]&&(this.$triggers.removeClass(this.classes.triggerActive),this.$sets.hide(),this.sets[t].$trigger.addClass(this.classes.triggerActive),this.sets[t].$set.show(),this.$triggers.filter('[role="tab"]').attr({"aria-selected":"false",tabindex:"-1"}),this.sets[t].$trigger.filter('[role="tab"]').attr({"aria-selected":"true",tabindex:"0"}),this.dropdown&&this.dropdown.activateOption("data-toggle-id",this.sets[t].name),this.eventer.fire("change",[this.sets[t]]))}}])&&c(t.prototype,e),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i}();function p(){var t=this;if(this.$sets.length){var e={};this.$sets.each((function(i,s){var a=(0,o.A)(s),l=a.data("toggle-id"),h=t.$triggers.filterBy("data-toggle-id",l),c=a.find(r.A.$select("toggle-set")),d=[];c.length&&c.each((function(t,e){var i=(0,o.A)(e).data("toggle-set");d.indexOf(i)<=-1&&d.push(i)})),t.sets[l]={name:l,$set:a,$trigger:h,children:d.map((function(t){return new n(t)}))},a.is(":visible")&&(e=t.sets[l])})),e&&this.eventer.fire("init",[e]),this.$triggers.click((function(e){e.preventDefault(),t.showSet((0,o.A)(e.currentTarget).data("toggle-id"))})),(0,l.q)(this.$triggers.filter('[role="tab"]'))}}n=g;const v=g},6031:(t,e,i)=>{function n(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).onFocus,i=void 0===e?null:e;if(t&&t.length){var n=function(e){t.attr("tabindex","-1"),t.eq(e).attr("tabindex","0")},r=t.index(t.filter('[aria-selected="true"]').first());n(r<0?0:r),t.on("keydown",(function(e){var r,o=t.index(e.currentTarget),s=t.length-1;switch(e.key){case"ArrowRight":case"ArrowDown":r=o===s?0:o+1;break;case"ArrowLeft":case"ArrowUp":r=0===o?s:o-1;break;case"Home":r=0;break;case"End":r=s;break;default:return}e.preventDefault(),function(e){n(e),t.eq(e).focus(),i&&i(e,t.eq(e))}(r)}))}}i.d(e,{q:()=>n})}}]);
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.