1/* 2 regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ 3function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)({}).hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},_extends.apply(null,arguments)} 4var baseHttpSerivce=baseHttp(),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})}, 5getInternalUserStatus:function(){return this.get("/bin/nncorp/careersearch?checkuser\x3dtrue\x26keyword\x3d\x26category\x3d\x26country\x3d\x26locale\x3d").then(function(a){return a.data})}}}(),baseHttpSerivce);baseHttpSerivce={};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)}}); 6function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)({}).hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},_extends.apply(null,arguments)} 7Vue.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"\x3e{{label}}\x3c/h4\x3e\n \x3cbutton type\x3d"button" class\x3d"left-button" v-if\x3d"showLeftIcon"\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}" /\x3e\n \x3c/div\x3e',computed:{inputListeners:function(){var a= 8this;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}}}); 9function _typeof(a){"@babel/helpers - typeof";return _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},_typeof(a)} 10function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;for(d in c)({}).hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},_extends.apply(null,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} 11function _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} 12function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){a=_toPrimitive(a,"string");return"symbol"==_typeof(a)?a:a+""} 13function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){a=c.call(a,b||"default");if("object"!=_typeof(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===b?String:Number)(a)}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()} 14function _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.");} 15function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c={}.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)} 16function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d} 17function _regenerator(){function a(v,z,G,H){z=Object.create((z&&z.prototype instanceof b?z:b).prototype);return _regeneratorDefine2(z,"_invoke",function(I,J,K){function B(r,n){l=r;p=n;for(k=0;!A&&C&&!x&&k<F.length;k++){var x,q=F[k],E=u.p,D=q[2];3<r?(x=D===n)&&(p=q[(l=q[4])?5:(l=3,3)],q[4]=q[5]=g):q[0]<=E&&((x=2>r&&E<q[1])?(l=0,u.v=n,u.n=q[1]):E<D&&(x=3>r||q[0]>n||n>D)&&(q[4]=r,q[5]=n,u.n=D,l=0))}if(x||1<r)return t;throw A=!0,n;}var w,l,p,C=0,F=K||[],A=!1,u={p:0,n:0,v:g,a:B,f:B.bind(g,4),d:function(r, 18n){return w=r,l=0,p=g,u.n=n,t}};return function(r,n,x){if(1<C)throw TypeError("Generator is already running");A&&1===n&&B(n,x);l=n;for(p=x;(k=2>l?g:p)||!A;
18){w||(l?3>l?(1<l&&(u.n=-1),B(l,p)):u.n=p:u.v=p);try{if(C=2,w){if(l||(r="next"),k=w[r]){if(!(k=k.call(w,p)))throw TypeError("iterator result is not an object");if(!k.done)return k;p=k.value;2>l&&(l=0)}else 1===l&&(k=w["return"])&&k.call(w),2>l&&(p=TypeError("The iterator does not provide a '"+r+"' method"),l=1);w=g}else if((k=(A=0>u.n)?p:I.call(J, 19u))!==t)break}catch(q){w=g,l=1,p=q}finally{C=1}}return{value:k,done:A}}}(v,G,H),!0),z}function b(){}function c(){}function d(){}function e(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,d):(v.__proto__=d,_regeneratorDefine2(v,m,"GeneratorFunction")),v.prototype=Object.create(y),v}var g,f="function"==typeof Symbol?Symbol:{},h=f.iterator||"@@iterator",m=f.toStringTag||"@@toStringTag",t={};var k=Object.getPrototypeOf;f=[][h]?k(k([][h]())):(_regeneratorDefine2(k={},h,function(){return this}), 20k);var y=d.prototype=b.prototype=Object.create(f);return c.prototype=d,_regeneratorDefine2(y,"constructor",d),_regeneratorDefine2(d,"constructor",c),c.displayName="GeneratorFunction",_regeneratorDefine2(d,m,"GeneratorFunction"),_regeneratorDefine2(y),_regeneratorDefine2(y,m,"Generator"),_regeneratorDefine2(y,h,function(){return this}),_regeneratorDefine2(y,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:a,m:e}})()} 21function _regeneratorDefine2(a,b,c,d){var e=Object.defineProperty;try{e({},"",{})}catch(g){e=0}_regeneratorDefine2=function(g,f,h,m){function t(k,y){_regeneratorDefine2(g,k,function(v){return this._invoke(k,y,v)})}f?e?e(g,f,{value:h,enumerable:!m,configurable:!m,writable:!m}):g[f]=h:(t("next",0),t("throw",1),t("return",2))};_regeneratorDefine2(a,b,c,d)}function asyncGeneratorStep(a,b,c,d,e,g,f){try{var h=a[g](f),m=h.value}catch(t){return void c(t)}h.done?b(m):Promise.resolve(m).then(d,e)} 22function _asyncToGenerator(a){return function(){var b=this,c=arguments;return new Promise(function(d,e){function g(m){asyncGeneratorStep(h,d,e,g,f,"next",m)}function f(m){asyncGeneratorStep(h,d,e,g,f,"throw",m)}var h=a.apply(b,c);g(void 0)})}} 23Vue.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"\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" v-model\x3d"inputValue" @blur\x3d"onBlur()" @click\x3d"toggleDropdown" :placeholder\x3d"showDropdown ? \'\' : translatedPlaceholder" class\x3d"textbox" :class\x3d"{\'has-left-icon\': showLeftIcon}"/\x3e\n \x3cbutton @click\x3d"toggleDropdown" type\x3d"button" class\x3d"dropdown-btn left-button" v-if\x3d"showLeftIcon"\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"getString(\'Toggle dropdown\')"\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]"\x3e\n \x3cdiv class\x3d"dropdown-listbox-content"\x3e\n \x3cdiv class\x3d"top-control"\x3e\n \x3cdiv class\x3d"head"\x3e\n \x3cp class\x3d"h1-s color-white"\x3e{{getString(placeholder)}}\x3c/p\x3e\n \x3cbutton class\x3d"arrow-button" type\x3d"button" @click\x3d"toggleDropdown" :aria-label\x3d"getString(\'Hide overlay\')"\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"\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"\x3e{{getString(\'Deselect all\')}}\x3c/button\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"list-options"\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" /\x3e\n \x3clabel :for\x3d"name + item.value" class\x3d"label" @click\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" /\x3e\n \x3clabel :for\x3d"name + child.value" class\x3d"label" @click\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 \x3cp class\x3d"h1-s color-white"\x3e{{getString(placeholder)}}\x3c/p\x3e\n \x3cbutton type\x3d"button" class\x3d"arrow-button" @click\x3d"toggleDropdown" :aria-label\x3d"getString(\'Hide overlay\')"\x3e\x3cspan class\x3d"icon icon-right-arrow-white"\x3e\x3c/span\x3e\x3c/button\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"list-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', 24computed:{getValue:function(){return this.selectedOptions&&this.selectedOptions.map(function(a){return a.value}).join(",")},filteredAllOptions:function(){var a=this,b=function(d){return-1!==d.text.toLowerCase().indexOf(a.inputValue.toLowerCase())},c=function(d,e){var g=b(e),f=e.children&&e.children.some(b);e.children&&(e.filteredChildren=e.children.reduce(c,[]));(g||f)&&d.push(e);return d};return this.allOptions.reduce(c,[])}},methods:{onBlur:function(){this.$emit("blur")},toggleDropdown:function(){(this.showDropdown= 25!this.showDropdown)&&1280>
25=window.innerWidth?VueBus.preventBodyScroll():VueBus.allowBodyScroll()},chooseItem:function(a,b){var c=this;return _asyncToGenerator(_regenerator().m(function e(){var g;return _regenerator().w(function(f){for(;;)switch(f.n){case 0:return c.selectedOptions||(c.selectedOptions=[]),g=c.selectedOptions&&c.selectedOptions.findIndex(function(h){return h.value===a.value}),-1===g?c.selectedOptions.push(a):(c.selectedOptions.splice(g,1),b&&(b.tick=!1)),f.n=1,c.$nextTick();case 1:c.settingPlaceholder(), 26c.returnValueOnly?(c.$emit("input",c.selectedOptions.map(function(h){return h.value})),c.$emit("change",c.selectedOptions.map(function(h){return h.value}))):(c.$emit("input",c.selectedOptions),c.$emit("change",c.selectedOptions));case 2:return f.a(2)}},e)}))()},removeItem:function(a){var b=this.selectedOptions.findIndex(function(h){return h.value===a.value}),c=this.allOptions.findIndex(function(h){return h.value===a.value}),d;if(-1===c)for(var e=0;e<this.allOptions.length;e++){var g=this.allOptions[e]; 27if(g.children){var f=g.children.findIndex(function(h){return h.value===a.value});-1!==f&&(d=e)}}this.selectedOptions[b].tick=!1;-1===c?(this.allOptions[d].children[f]=!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",this.selectedOptions)},clickOutside:function(){this.showDropdown&&1280<window.innerWidth&&(this.showDropdown=!1,VueBus.allowBodyScroll())},setAllOptions:function(a){this.allOptions.forEach(function(b){b.tick= 28a;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})),this.$emit("change",this.selectedOptions.map(function(a){return a.value}))):(this.$emit("input",this.selectedOptions),this.$emit("change",this.selectedOptions));this.setAllOptions(!0); 29this.settingPlaceholder()},deselectAll:function(){this.selectedOptions.splice(0,this.selectedOptions.length);this.$emit("input",[]);this.$emit("change",this.selectedOptions);this.setAllOptions(!1);this.settingPlaceholder()},selectAllChildren:function(a){var b=this;return _asyncToGenerator(_regenerator().m(function d(){var e;return _regenerator().w(function(g){for(;;)switch(g.n){case 0:return(e=a.tick)?(a.children&&a.children.forEach(function(f){f.tick=!1}),b.selectedOptions=b.selectedOptions.filter(function(f){var h= 30f.value===a.value,m=!!a.children&&a.children.some(function(t){return t.value===f.value});return!(h||m)})):a.children&&a.children.forEach(function(f){f.tick=!0;-1<b.selectedOptions.findIndex(function(h){return h.value===f.value})||b.selectedOptions.push(f)}),b.$forceUpdate(),g.n=1,b.$nextTick();case 1:b.settingPlaceholder(),b.$emit("input",b.selectedOptions),b.$emit("change",b.selectedOptions);case 2:return g.a(2)}},d)}))()},getString:function(a){return Granite.I18n.get(a)},handleOptions:function(){var a= 31this;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(g){return g.value===d.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= 32this.allOptions.filter(function(b){return!0===b.tick});this.allOptions.forEach(function(b){b.children&&b.children.length&&b.children.forEach(function(c){c.tick&&a.selectedOptions.push(c)})});this.selectedOption&&0<this.selectedOption.length&&this.$emit("input",this.selectedOptions)},mountedData:function(){var a=this;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= 33a.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=this.getString(this.placeholder);break;case 1:this.translatedPlaceholder=this.selectedOptions[0].text;break;default:this.translatedPlaceholder=this.getString(this.translatedLabel)+" (".concat(this.selectedOptions.length, 34")")}this.selectedOptions.length===this.allOptions.length&&this.selectedOptions.length&&(this.translatedPlaceholder=this.getString(this.placeholder)+" (".concat(this.getString("All"),")"))}
34,sort:function(a){return a.length?a.sort(function(b,c){b=b.text&&b.text.toUpperCase();c=c.text&&c.text.toUpperCase();return b<c?-1:b>c?1:0}):[]}},props:{label:String,name:String,showLabel:{type:Boolean,"default":!0},apiUrl:{type:String,"default":""},placeholder:{type:String,"default":Granite.I18n.get("Select option")}, 35options:{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}},watch:{options:function(a,b){this.isForm?this.isForm&&a&&b&&JSON.stringify(a)!==JSON.stringify(b)&&this.mountedData():this.mountedData()}}, 36mounted:function(){this.mountedData()},updated:function(){var a=this;this.filledInData||(this.filledInData=!0,this.selectedOptions=this.selected,this.selectedOptions.length&&this.selectedOptions.forEach(function(b){var c=function(d){d.id===b.id?d.tick=!0:d.children&&(d.children.forEach(c),d.children.every(function(e){return e.tick})&&(d.tick=!0))};a.allOptions.forEach(c)}))}}); 37function _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.");} 38function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c={}.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)} 39function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c<b;c++)d[c]=a[c];return d} 40VueBus.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=== 41e.status&&(c.allData=e.data,c.allData.forEach(function(g){var f=g.jobCountry;c.countries.some(function(h){return h.value===f.value})||c.countries.push({text:f.label,value:f.value,total:c.allData.filter(function(h){return h.jobCountry.value===f.value}).map(function(h){return h.jobCount}).reduce(function(h,m){return m+h})})}),VueBus.getParamsFromUrl("countries")||(c.formModel.countryModel=_toConsumableArray(c.countries)),c.$nextTick(function(){0<c.formModel.countryModel.length&&(c.countrySelected(), 42c.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(g){return g.value===e.jobCountry.value})});d.forEach(function(e){var g=e.jobCategory;c.categories.some(function(f){return f.value=== 43g.value})||c.categories.push({text:g.label,value:g.value,total:d.filter(function(f){return f.jobCategory.value===g.value}).map(function(f){return f.jobCount}).reduce(function(f,h){return h+f})})});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; 44a.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.