1function _extends(){_extends=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};return _extends.apply(this,arguments)} 2var careerService=_extends({},function(){return{searchJobs:function(a,b,c,d){a=encodeURIComponent(a);b=encodeURIComponent(b);c=encodeURIComponent(c);return this.get("/bin/nncorp/careersearch?keyword\x3d".concat(a,"\x26country\x3d").concat(b,"\x26category\x3d").concat(c,"\x26locale\x3d").concat(d)).then(function(e){return e.data})},getCareerContent:function(a){return this.get("/bin/nncorp/careercontent?content\x3djobCountDictionary\x26locale\x3d".concat(a)).then(function(b){return b.data})},getInternalUserStatus:function(){return this.get("/bin/nncorp/careersearch?checkuser\x3dtrue\x26keyword\x3d\x26category\x3d\x26country\x3d\x26locale\x3d").then(function(a){return a.data})}}}(), 3baseHttp());Vue.directive("click-outside",{bind:function(a,b,c){a.clickOutsideEvent=function(d){if(a!=d.target&&!a.contains(d.target))c.context[b.expression](d)};document.addEventListener("click",a.clickOutsideEvent)},unbind:function(a){document.removeEventListener("click",a.clickOutsideEvent)}}); 4function _extends(){_extends=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};return _extends.apply(this,arguments)} 5Vue.component("input-field",{template:'\x3cdiv class\x3d"form-control" :class\x3d"{\'no-p-left\': noPaddingLeft }"\x3e\n \x3ch4 v-if\x3d"showLabel" class\x3d"h4 label" :id\x3d"labelId"\x3e{{label}}\x3c/h4\x3e\n \x3cbutton type\x3d"button" class\x3d"left-button" v-if\x3d"showLeftIcon" tabindex\x3d"-1"\x3e\n \x3cslot\x3e\x3c/slot\x3e\n \x3c/button\x3e\n \x3cinput type\x3d"text" autocomplete\x3d"off" class\x3d"textbox" :name\x3d"name" v-on\x3d"inputListeners" :placeholder\x3d"placeholder" :value\x3d"value" :class\x3d"{\'has-left-icon\': showLeftIcon}" :aria-label\x3d\'getString(ariaLabel)\'/\x3e\n \x3c/div\x3e',computed:{inputListeners:function(){var a= 6this;return _extends({},this.$listeners,{input:function(b){a.$emit("input",b.target.value)}})}},props:{label:String,value:String,name:String,showLabel:{type:Boolean,"default":!0},noPaddingLeft:{type:Boolean,"default":!0},showLeftIcon:{type:Boolean},placeholder:{type:String},labelId:{type:String,"default":""},ariaLabel:String},methods:{getString:function(a){return Granite.I18n.get(a)}}}); 7function _typeof(a){"@babel/helpers - typeof";_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"===typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b};return _typeof(a)} 8function _extends(){_extends=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};return _extends.apply(this,arguments)}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}));c.push.apply(c,d)}return c} 9function _objectSpread(a){for(var b=1;b<arguments.length;b++){var c=null!=arguments[b]?arguments[b]:{};b%2?ownKeys(Object(c),!0).forEach(function(d){_defineProperty(a,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(c)):ownKeys(Object(c)).forEach(function(d){Object.defineProperty(a,d,Object.getOwnPropertyDescriptor(c,d))})}return a} 10function _defineProperty(a,b,c){b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c;return a}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");} 11function _unsupportedIterableToArray(a,b){if(a){if("string"===typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);"Object"===c&&a.constructor&&(c=a.constructor.name);if("Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _arrayLikeToArray(a,b)}}function _iterableToArray(a){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)} 12function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d}function asyncGeneratorStep(a,b,c,d,e,h,g){try{var f=a[h](g),k=f.value}catch(l){c(l);return}f.done?b(k):Promise.resolve(k).then(d,e)} 13function _asyncToGenerator(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function h(k){asyncGeneratorStep(f,d,e,h,g,"next",k)}function g(k){asyncGeneratorStep(f,d,e,h,g,"throw",k)}var f=a.apply(b,c);h(void 0)})}} 14Vue.component("multiselect",{data:function(){return{showDropdown:null,allOptions:[],selectedOptions:[],inputValue:"",translatedLabel:this.getString(this.label),translatedPlaceholder:this.getString(this.placeholder),filledInData:!1}},model:{prop:"selected",event:"input"},template:'\x3cdiv v-click-outside\x3d"clickOutside" class\x3d"multi-select-wrapper form-control" :class\x3d"{\'show\': showDropdown, \'hide\': showDropdown \x3d\x3d\x3d false, \'active\': selectedOptions.length \x3e 0, \'no-p-left\': noPaddingLeft}" :aria-label\x3d"ariaLabel"\x3e\n \x3ch4 v-if\x3d"label \x26\x26 showLabel" class\x3d"h4 label" :id\x3d"translatedLabel"\x3e{{translatedLabel}}\x3c/h4\x3e\n \x3cdiv class\x3d"dropdown-wrapper"\x3e\n \x3cinput type\x3d"text" class\x3d"input-hide" :value\x3d"getValue" :name\x3d"name"/\x3e\n \x3cinput type\x3d"text" autocomplete\x3d"on" v-model\x3d"inputValue" @click\x3d"toggleDropdown" :placeholder\x3d"showDropdown ? \'\' : translatedPlaceholder" class\x3d"textbox" :class\x3d"{\'has-left-icon\': showLeftIcon}" :aria-describedby\x3d"ariaDescribedby" tabindex\x3d"-1"/\x3e\n \x3cbutton @click\x3d"toggleDropdown" type\x3d"button" class\x3d"dropdown-btn left-button" v-if\x3d"showLeftIcon" tabindex\x3d"0" :aria-label\x3d"getAriaLabel()"\x3e\n \x3cslot\x3e\x3c/slot\x3e\n \x3c/button\x3e\n \x3cbutton type\x3d"button" @click\x3d"toggleDropdown" class\x3d"dropdown-btn" v-if\x3d"!showLeftIcon" :aria-label\x3d"getAriaLabel()" tabindex\x3d"0"\x3e\x3cspan class\x3d"icon icon-dropdown"\x3e\x3c/span\x3e\x3c/button\x3e\n \x3cdiv class\x3d"dropdown-listbox" v-if\x3d"allOptions.length !\x3d 0" :aria-hidden\x3d"[!showDropdown]" @keydown\x3d"trapFocus"\x3e\n \x3cdiv class\x3d"dropdown-listbox-content" v-if\x3d"showDropdown"\x3e\n \x3cdiv class\x3d"top-control"\x3e\n \x3cdiv class\x3d"head"\x3e\n \x3ch2 class\x3d"h1-s color-white" :id\x3d"getString(placeholder)"\x3e{{getString(placeholder)}}\x3c/h2\x3e\n \x3cbutton class\x3d"arrow-button" type\x3d"button" @click\x3d"toggleDropdown" :aria-label\x3d"getString(\'Hide overlay\')" :tabindex\x3d"showDropdown ? 0 : -1"\x3e\x3cspan class\x3d"icon icon-right-arrow-white"\x3e\x3c/span\x3e\x3c/button\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"actions"\x3e\n \x3cbutton class\x3d"control-btn paragraph-s" type\x3d"button" @click\x3d"selectAll" :tabindex\x3d"showDropdown ? 0 : -1"\x3e{{getString(\'Select all\')}}\x3c/button\x3e\n \x3cspan class\x3d"slash paragraph-s"\x3e/\x3c/span\x3e\n \x3cbutton class\x3d"control-btn paragraph-s" type\x3d"button" @click\x3d"deselectAll" :tabindex\x3d"showDropdown ? 0 : -1"\x3e{{getString(\'Deselect all\')}}\x3c/button\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"list-options" role\x3d"group" :aria-labelledby\x3d"getString(placeholder)"\x3e\n \x3cdiv class\x3d"option" v-for\x3d"(item, index) in filteredAllOptions" :key\x3d"index"\x3e \n \x3cinput :id\x3d"name + item.value" class\x3d"checkbox" type\x3d"checkbox" v-model\x3d"item.tick" :checked\x3d"item.tick" tabindex\x3d"-1"/\x3e\n \x3clabel :for\x3d"name + item.value" class\x3d"label" @click.prevent\x3d"nestedOptions ? selectAllChildren(item) : chooseItem(item, $event)" :tabindex\x3d"showDropdown ? 0 : -1" @keydown.enter.prevent\x3d"nestedOptions ? selectAllChildren(item) : chooseItem(item)"\x3e{{item.text}} \x3cspan v-if\x3d"item.total"\x3e({{item.total}}) \x3c/span\x3e\x3c/label\x3e \n \x3ctemplate v-if\x3d"item.filteredChildren \x26\x26 nestedOptions"\x3e\n \x3cdiv class\x3d"child-option" v-for\x3d"(child, childIndex) in item.filteredChildren" :key\x3d"childIndex"\x3e \n \x3cinput :id\x3d"name + child.value" class\x3d"checkbox" type\x3d"checkbox" v-model\x3d"child.tick" :checked\x3d"child.tick" tabindex\x3d"-1"/\x3e\n \x3clabel :for\x3d"name + child.value" class\x3d"label" @click.prevent\x3d"chooseItem(child, item, $event)" :tabindex\x3d"showDropdown ? 0 : -1" @keydown.enter.prevent\x3d"chooseItem(child, item)" \x3e{{child.text}} \x3cspan v-if\x3d"child.total"\x3e({{child.total}}) \x3c/span\x3e\x3c/label\x3e\n \x3c/div\x3e\n \x3c/template\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv v-else class\x3d"dropdown-listbox" :aria-hidden\x3d"[!showDropdown]"\x3e\n \x3cdiv class\x3d"dropdown-listbox-content"\x3e\n \x3cdiv class\x3d"top-control"\x3e\n \x3cdiv class\x3d"head"\x3e\n \x3ch2 class\x3d"h1-s color-white"\x3e{{getString(placeholder)}}\x3c/h2\x3e\n \x3cbutton type\x3d"button" class\x3d"arrow-button" @click\x3d"toggleDropdown" :aria-label\x3d"getString(\'Hide overlay\')" :tabindex\x3d"showDropdown ? 0 : -1"\x3e\x3cspan class\x3d"icon icon-right-arrow-white"\x3e\x3c/span\x3e\x3c/button\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"actions"\x3e\n \x3cbutton class\x3d"control-btn paragraph-s" type\x3d"button" @click\x3d"selectAll" :tabindex\x3d"showDropdown ? 0 : -1"\x3e{{getString(\'Select all\')}}\x3c/button\x3e\n \x3cspan class\x3d"slash paragraph-s"\x3e/\x3c/span\x3e\n \x3cbutton class\x3d"control-btn paragraph-s" type\x3d"button" @click\x3d"deselectAll" :tabindex\x3d"showDropdown ? 0 : -1"\x3e{{getString(\'Deselect all\')}}\x3c/button\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv v-if\x3d"showDropdown \x26\x26 allOptions.length \x3d\x3d\x3d 0" class\x3d"list-options no-options"\x3e\n \x3cspan class\x3d"color-white"\x3e \n {{getString(\'There is no option\')}}\n \x3c/span\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv v-if\x3d"showResults \x26\x26 selectedOptions.length \x3e 0" class\x3d"result-box m-xs-top"\x3e\n \x3cdiv v-for\x3d"(option, index) in selectedOptions" class\x3d"result-item infotext"\x3e\n \x3cspan\x3e{{option.text}}\x3c/span\x3e \n \x3cspan class\x3d"icon icon-times-white" @click\x3d"removeItem(option)"\x3e\n \x3cspan class\x3d"path1"\x3e\x3c/span\x3e\x3cspan class\x3d"path2"\x3e\x3c/span\x3e\x3cspan class\x3d"path3"\x3e\x3c/span\x3e\x3cspan class\x3d"path4"\x3e\x3c/span\x3e\n \x3c/span\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3c/div\x3e', 15computed:{getValue:function(){return this.selectedOptions&&this.selectedOptions.map(function(a){return a.value}).join(",")},filteredAllOptions:function(){var a=this,b=function(c){return-1!==c.text.toLowerCase().indexOf(a.inputValue.toLowerCase())};return this.allOptions.reduce(function h(d,e){var g=b(e),f=e.children&&e.children.some(b);e.children&&(e.filteredChildren=e.children.reduce(h,[]));(g||f)&&d.push(e);return d},[])}},methods:{onBlur:function(){this.$emit("blur")},toggleDropdown:function(){(this.showDropdown= 16!this.showDropdown)&&1280>
16=window.innerWidth?VueBus.preventBodyScroll():VueBus.allowBodyScroll()},updateTick:function(a,b){a.tick!==b&&this.$set(a,"tick",b)},chooseItem:function(a,b){var c=arguments,d=this;return _asyncToGenerator(regeneratorRuntime.mark(function h(){var g,f;return regeneratorRuntime.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return(g=2<c.length&&void 0!==c[2]?c[2]:null)&&g.preventDefault(),d.selectedOptions||(d.selectedOptions=[]),f=d.selectedOptions.findIndex(function(l){return l.value=== 17a.value}),-1===f?(d.updateTick(a,!0),d.selectedOptions.push(a)):(d.updateTick(a,!1),d.selectedOptions.splice(f,1),b&&d.updateTick(b,!1)),k.next=7,d.$nextTick();case 7:d.settingPlaceholder(),d.returnValueOnly?(d.$emit("input",d.selectedOptions.map(function(l){return l.value})),d.$emit("change",d.selectedOptions.map(function(l){return l.value}))):(d.$emit("input",d.selectedOptions),d.$emit("change",d.selectedOptions));case 9:case "end":return k.stop()}},h)}))()},removeItem:function(a){var b=this.selectedOptions.findIndex(function(f){return f.value=== 18a.value}),c=this.allOptions.findIndex(function(f){return f.value===a.value}),d;if(-1===c)for(var e=0;e<this.allOptions.length;e++){var h=this.allOptions[e];if(h.children){var g=h.children.findIndex(function(f){return f.value===a.value});-1!==g&&(d=e)}}this.selectedOptions[b].tick=!1;-1===c?(this.allOptions[d].children[g]=!1,this.allOptions[d].tick=!1):this.allOptions[c].tick=!1;this.selectedOptions.splice(b,1);this.settingPlaceholder();this.$emit("input",this.selectedOptions);this.$emit("change", 19this.selectedOptions)},clickOutside:function(){this.showDropdown&&1280<window.innerWidth&&(this.showDropdown=!1,VueBus.allowBodyScroll())},setAllOptions:function(a){this.allOptions.forEach(function(b){b.tick=a;b.children&&b.children.forEach(function(c){c.tick=a})})},selectAll:function(){this.selectedOptions=[].concat(_toConsumableArray(this.allOptions),_toConsumableArray(this.allOptions.flatMap(function(a){return a.children||[]})));this.returnValueOnly?(this.$emit("input",this.selectedOptions.map(function(a){return a.value})), 20this.$emit("change",this.selectedOptions.map(function(a){return a.value}))):(this.$emit("input",this.selectedOptions),this.$emit("change",this.selectedOptions));this.setAllOptions(!0);this.settingPlaceholder()},deselectAll:function(){this.selectedOptions.splice(0,this.selectedOptions.length);this.$emit("input",[]);this.$emit("change",this.selectedOptions);this.setAllOptions(!1);this.settingPlaceholder()},handleEscape:function(a){this.showDropdown&&"Escape"===a.key&&(this.showDropdown=!1)},trapFocus:function(a){if(this.showDropdown){var b= 21this.$el.querySelector(".dropdown-listbox-content");if(b){var c=b.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex\x3d"-1"])');if(0!==c.length){var d=1280<window.innerWidth?c[1]:c[0];c=c[c.length-1];var e="Tab"===a.key;"Tab"===a.key&&(a.shiftKey&&document.activeElement===d?(c.focus(),a.preventDefault()):a.shiftKey||document.activeElement!==c||(d.focus(),a.preventDefault()));e||this.labelsNavigation(b,a)}}}},labelsNavigation:function(a,b){a=a.querySelectorAll("label"); 22if(0!==a.length){a=Array.from(a);var c=a.indexOf(document.activeElement);if("ArrowDown"===b.key||"ArrowRight"===b.key){var d=(c+1)%a.length;a[d].focus();b.preventDefault()}if("ArrowUp"===b.key||"ArrowLeft"===b.key)d=(c-1+a.length)%a.length,a[d].focus(),b.preventDefault()}},selectAllChildren:function(a){var b=this;return _asyncToGenerator(regeneratorRuntime.mark(function d(){var e,h;return regeneratorRuntime.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return(e=a.tick)?(a.tick=!1,a.children&& 23a.children.forEach(function(f){f.tick=!1}),b.selectedOptions=b.selectedOptions.filter(function(f){return f.value!==a.value&&!(a.children&&a.children.some(function(k){return k.value===f.value}))})):(a.tick=!0,a.children&&a.children.forEach(function(f){f.tick=!0;b.selectedOptions.some(function(k){return k.value===f.value})||b.selectedOptions.push(f)}),(h=b.selectedOptions.some(function(f){return f.value===a.value}))||b.selectedOptions.push(a)),b.$forceUpdate(),g.next=5,b.$nextTick();case 5:b.settingPlaceholder(), 24b.$emit("input",b.selectedOptions),b.$emit("change",b.selectedOptions);case 8:case "end":return g.stop()}},d)}))()},getString:function(a){return Granite.I18n.get(a)},handleOptions:function(){var a=this;this.allOptions=this.options.filter(function(b){return b.value}).map(function(b){var c=a.selected&&!!a.selected.some(function(d){return d.value===b.value});b.children&&(b.children=_toConsumableArray(b.children.filter(function(d){return d.value}).map(function(d){var e=!!a.selected.some(function(h){return h.value=== 25d.value});return d=_objectSpread(_objectSpread({},d),{},{tick:e})})));return _extends({},b,{tick:c})});this.allOptions=this.sorting?this.sort(this.allOptions):this.allOptions;this.selectedOptions=this.allOptions.filter(function(b){return!0===b.tick});this.allOptions.forEach(function(b){b.children&&b.children.length&&b.children.forEac
25h(function(c){c.tick&&a.selectedOptions.push(c)})});this.selectedOption&&0<this.selectedOption.length&&this.$emit("input",this.selectedOptions)},mountedData:function(){var a= 26this;this.apiUrl?findCountryContactService.getDropdownDataByUrl(this.apiUrl).then(function(b){a.allOptions=a.sorting?a.sort(b.data):a.res.data;a.handleOptions()}):(this.allOptions=this.options.filter(function(b){return b.value}).map(function(b){var c=a.selected&&a.selected.some(function(d){return"object"===_typeof(d)?d.value===b.value:d===b.value})?!0:!1;return _extends({},b,{tick:c})}),this.handleOptions());this.settingPlaceholder()},settingPlaceholder:function(){switch(this.selectedOptions.length){case 0:this.translatedPlaceholder= 27this.getString(this.placeholder);break;case 1:this.translatedPlaceholder=this.selectedOptions[0].text;break;default:this.translatedPlaceholder=this.getString(this.translatedLabel)+" (".concat(this.selectedOptions.length,")")}this.selectedOptions.length===this.allOptions.length&&this.selectedOptions.length&&(this.translatedPlaceholder=this.getString(this.placeholder)+" (".concat(this.allLabel,")"))},sort:function(a){return a.length?a.sort(function(b,c){b=b.text&&b.text.toUpperCase();c=c.text&&c.text.toUpperCase(); 28return b<c?-1:b>c?1:0}):[]},getAriaLabel:function(){var a="";if(this.ariaLabelledby){var b=document.getElementById(this.ariaLabelledby);b&&(a=b.textContent.trim())}else a=this.ariaLabel?this.ariaLabel:this.translatedLabel;b="function"===typeof this.getValue?this.getValue():this.getValue;return this.selectedOptions.length?"".concat(a,": ").concat(decodeURIComponent(b)):a}},props:{label:String,name:String,showLabel:{type:Boolean,"default":!0},apiUrl:{type:String,"default":""},allLabel:{type:String, 29"default":Granite.I18n.get("All")},placeholder:{type:String,"default":Granite.I18n.get("Select option")},options:{type:Array,"default":function(){return[]}},nestedOptions:!1,selected:{type:Array,"default":[]},showLeftIcon:{type:Boolean},noPaddingLeft:{type:Boolean,"default":!1},ariaLabel:{type:String,"default":""},sorting:{type:Boolean,"default":!1},showResults:{type:Boolean,"default":!1},returnValueOnly:{type:Boolean,"default":!1},isForm:{type:Boolean,"default":!1},ariaLabelledby:{type:String,required:!1}, 30ariaDescribedby:{type:String,required:!1}},watch:{options:function(a,b){this.isForm?this.isForm&&a&&b&&JSON.stringify(a)!==JSON.stringify(b)&&this.mountedData():this.mountedData()}},unmounted:function(){window.removeEventListener("keydown",this.handleEscape)},mounted:function(){this.mountedData();window.addEventListener("keydown",this.handleEscape)},updated:function(){var a=this;this.filledInData||(this.filledInData=!0,this.selectedOptions=this.selected,this.selectedOptions.length&&this.selectedOptions.forEach(function(b){a.allOptions.forEach(function e(d){d.id=== 31b.id?d.tick=!0:d.children&&(d.children.forEach(e),d.children.every(function(h){return h.tick})&&(d.tick=!0))})}))}});function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");} 32function _unsupportedIterableToArray(a,b){if(a){if("string"===typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);"Object"===c&&a.constructor&&(c=a.constructor.name);if("Map"===c||"Set"===c)return Array.from(a);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return _arrayLikeToArray(a,b)}}function _iterableToArray(a){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)} 33function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){if(null==b||b>a.length)b=a.length;for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d} 34VueBus.resourceReady(function(){var a=matchMedia("(max-width: 525px)");Array.from(document.getElementsByClassName("career-search-wrapper")).forEach(function(b){b.__vue__||new Vue({name:"Career search",data:{categories:[],countries:[],allData:[],domloaded:!1,isMobile:!1,isInternalUser:!1,fullImageLoaded:!1,formModel:{url:"",searchText:"",countryModel:[],categoryModel:[]}},el:"#".concat(b.id),methods:{getCareerContent:function(){var c=this,d=document.getElementsByTagName("html")[0].lang;careerService.getCareerContent(d).then(function(e){200=== 35e.status&&(c.allData=e.data,c.allData.forEach(function(h){var g=h.jobCountry;
35c.countries.some(function(f){return f.value===g.value})||c.countries.push({text:g.label,value:g.value,total:c.allData.filter(function(f){return f.jobCountry.value===g.value}).map(function(f){return f.jobCount}).reduce(function(f,k){return k+f})})}),VueBus.getParamsFromUrl("countries")||(c.formModel.countryModel=_toConsumableArray(c.countries)),c.$nextTick(function(){0<c.formModel.countryModel.length&&(c.countrySelected(), 36c.formModel.categoryModel=_toConsumableArray(c.categories))}))})},getInternalUserStatus:function(){var c=this;careerService.getInternalUserStatus().then(function(d){200===d.status&&(c.isInternalUser=d.data)})},countrySelected:function(){var c=this;this.categories=[];this.formModel.categoryModel=[];var d=this.allData.filter(function(e){return c.formModel.countryModel.some(function(h){return h.value===e.jobCountry.value})});d.forEach(function(e){var h=e.jobCategory;c.categories.some(function(g){return g.value=== 37h.value})||c.categories.push({text:h.label,value:h.value,total:d.filter(function(g){return g.jobCategory.value===h.value}).map(function(g){return g.jobCount}).reduce(function(g,f){return f+g})})});this.categories.forEach(function(e){e.value=escape(e.value)})},onMobileChange:function(c){this.isMobile=c.matches}},mixins:[utilitiesMixin],mounted:function(){this.formModel.url=this.$refs.jobResultPage.value;this.domloaded=!0;this.getCareerContent();this.getInternalUserStatus();this.isMobile=a.matches; 38a.addListener(this.onMobileChange)},beforeDestroy:function(){a.removeListener(this.onMobileChange)}})})});
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.