vendor: 4,506 bytes, lines 1-2
1/*! For license information please see PeopleGrid-chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2949],{6953:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});r(5374),r(3238),r(5849),r(1418),r(8217),r(7471),r(2077),r(911),r(3938),r(5163),r(9785),r(5901),r(2189),r(1047),r(5769),r(7460),r(4078),r(8521),r(6798),r(2923),r(1897),r(4374),r(2274),r(3352),r(987),r(190),r(2410);var n=r(4360),o=r(9357);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=b(a,r);if(l){if(l===u)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=p;var u={};function h(){}function f(){}function v(){}var m={};c(m,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(x([])));g&&g!==t&&r.call(g,o)&&(m=g);var _=v.prototype=h.prototype=Object.create(m);function L(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,l,s){var c=d(e[o],e,a);if("throw"!==c.type){var p=c.arg,u=p.value;return u&&"object"==i(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(u).then((function(e){p.value=e,l(p)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function b(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=v,c(_,"constructor",v),c(v,"constructor",f),f.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},L(E.prototype),c(E.prototype,l,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(_),c(_,s,"Generator"),c(_,o,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=x,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function l(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,s,"next",e)}function s(e){l(i,n,o,a,s,"throw",e)}a(void 0)}))}}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=p((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"handleSorter",(function(){r.filterList=r.$el.querySelectorAll(".filter-tags--sortoptions>li"),r.filterList&&r.filterList.forEach((function(e){e.addEventListener("click",(function(){var t=e.dataset.valueSortOrder,n=e.dataset.valueSortby;r.sortOrder=t,r.sortBy=n,r.filterSel.textContent=null==e?void 0:e.textContent,r.peopleApi()}))}))})),d(this,"handleEditPeople",(function(){o.gT.checkForElement(r.clearFilter)&&(r.peopleCards=r.$el.querySelectorAll(".people__card"),"true"===r.isSavePeople&&(r.editContentTxt=r.clearFilter.dataset.editcontentLabel,r.finishContentTxt=r.clearFilter.dataset.finishcontentLabel,r.clearFilter.textContent=r.editContentTxt,r.clearFilter.classList.remove("visible-hidden"),r.clearFilter.addEventListener("click",(function(){r.clearFilter.textContent===r.finishContentTxt?(r.clearFilter.textContent=r.editContentTxt,r.peopleCards.forEach((function(e){e.querySelector(".people__card--cross").classList.add("visible-hidden")}))):(r.clearFilter.textContent=r.finishContentTxt,console.log("this.articleCards...",r.peopleCards),r.peopleCards.forEach((function(e){var t=e.querySelector(".people__card--cross");console.log("btn cross...",t),t.classList.remove("visible-hidden")})))}))))}
2)),d(this,"handleDeleteContent",function(){var e=s(a().mark((function e(t){var n,i,l,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i={itemids:[t],language:(0,o.pJ)()},l="",1!==o.gT.showMockData){e.next=8;break}return e.next=5,fetch("../../assets/people-data.json",{method:"GET",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"}});case 5:l=e.sent,e.next=11;break;case 8:return e.next=10,fetch(r.deletePeopleApiUrl,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});case 10:l=e.sent;case 11:return e.next=13,null===(n=l)||void 0===n?void 0:n.json();case 13:s=e.sent,console.log("save people...",s),s&&(window.itemids.splice(window.itemids.indexOf(t)),r.peopleApi());case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),d(this,"peopleApi",s(a().mark((function e(){var t,n,i,l,s,c,p,d;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l={search:"",currentPage:r.currentPage,pageSize:r.pageSize,sortBy:r.sortBy,sortOrder:r.sortOrder,filters:r.selectedFilters,language:(0,o.pJ)()},r.isSavePeople&&(l.itemids=window.itemids),s="",e.prev=3,1!==o.gT.showMockData){e.next=10;break}return e.next=7,fetch("../../assets/people-data.json",{method:"GET",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"}});case 7:s=e.sent,e.next=13;break;case 10:return e.next=12,fetch(r.peopleApiUrl,{method:"POST",mode:"cors",cache:"no-store",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});case 12:s=e.sent;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),console.log("Exception: ",e.t0);case 18:return e.next=20,s.json();case 20:c=e.sent,r.paging=c.paging,r.results=c.results,r.totalRecord=null===(t=r.paging)||void 0===t?void 0:t.totalRecord,r.emitObj={eventSource:o.Jw.PEOPLE_GRID,eventType:o.GM.PAGE_CONFIG,pageSize:r.pageSize,totalRecord:r.totalRecord,currentPage:r.currentPage},o.Xk.next(r.emitObj),r.results&&r.totalRecord>r.pageSize?r.paginator.classList.add("display-element"):r.paginator.classList.remove("display-element"),r.results&&r.totalRecord>0?r.filterTags.classList.add("enabled"):r.filterTags.classList.remove("enabled"),p=null===(n=r.peopleHeaderCount)||void 0===n?void 0:n.dataset.peopleCountPlaceholder,p=null===(i=p)||void 0===i?void 0:i.replace("{0}",r.totalRecord),console.log(" resulttxt ",p),r.peopleHeaderCount.textContent=p,console.log("results..",r.results),r.peopleGridUl.replaceChildren(),console.log("is save..people.. ",r.isSavePeople),0===r.results.length&&((d=document.createElement("li")).classList.add("people__grid__li"),d.textContent="No results found.",r.peopleGridUl.append(d)),r.results.forEach((function(e){var t=document.createElement("li");t.classList.add("people__grid__li");var n=document.createElement("div");if(n.classList.add("people__card"),n.setAttribute("itemId",null==e?void 0:e.itemId),"true"===r.isSavePeople){var i=document.createElement("button");i.classList.add("people__card--cross"),i.classList.add("hide-element"),i.addEventListener("click",(function(){o.gT.checkForElement(r.removePopup)&&r.handleRemoveConfirmationPopup(n.getAttribute("itemId"))})),n.append(i)}var a=document.createElement("div");a.classList.add("people__card__content");var l=document.createElement("div");l.classList.add("people__card__cta");var s=document.createElement("div");s.classList.add("people__card--btn"),l.append(s),a.append(l);var c=document.createElement("div");c.classList.add("people__card__header");var p=document.createElement("p");p.classList.add("people__card--title"),p.textContent="".concat(e.firstName," ").concat(e.lastName);var d=document.createElement("div");d.classList.add("people__card--label");var u=document.createElement("p");u.classList.add("people__card--partner"),u.textContent=e.role;var h=document.createElement("p");h.classList.add("people__card--divider");var f=document.createElement("p");f.classList.add("people__card--place"),f.textContent=null==e?void 0:e.location,d.append(u),d.append(h),d.append(f),c.append(p),c.append(d),a.append(c),n.append(a),n.style.background="url(".concat(e.image,")");var v=document.createElement("div");v.classList.add("people__cardopen");var m=document.createElement("div");m.classList.add("people__cardopen__header");var y=document.createElement("div");y.classList.add("people__cardopen__cta");var g=document.createElement("button");g.classList.add("people__cardopen--closebtn"),y.append(g),m.append(y);var _=document.createElement("div");_.classList.add("people__cardopen__content");var L=document.createElement("p");L.classList.add("people__cardopen--title"),L.textContent="".concat(e.firstName," ").concat(e.lastName);var E=document.createElement("div");E.classList.add("people__cardopen--label");var b=document.createElement("p");b.classList.add("people__cardopen--partner"),b.textContent=e.role;var w=document.createElement("p");w.classList.add("people__cardopen--divider");var C=document.createElement("p");C.classList.add("people__cardopen--place"),C.textContent=e.location,E.append(b),E.append(w),E.append(C),_.append(L),_.append(E);var S=document.createElement("p");S.classList.add("people__cardopen--contact"),S.textContent=e.Phone;var x=document.createElement("p");x.classList.add("people__cardopen--email"),x.textContent=e.email;var P=document.createElement("p");P.classList.add("people__cardopen--vcard"),P.textContent="V-card",_.append(S),_.append(x);var O=document.createElement("div");O.classList.add("people__cardopen--profile");var T=document.createElement("a");T.href=e.itemurl,T.textContent="View Profile",O.append(T),_.append(O),v.append(m),v.append(_),t.append(n),t.append(v),r.peopleGridUl.append(t),l.addEventListener("click",(function(){console.log("click...."),v.classList.contains("display-element")?(v.classList.remove("display-element"),v.style.translateY="translateY(100%)"):(v.classList.add("display-element"),v.style.transform="translateY(0)",_.style.transform="translateY(0)"),n.classList.contains("hide-element")?n.classList.remove("hide-element"):n.classList.add("hide-element")})),y.addEventListener("click",(function(){v.classList.contains("display-element")?v.classList.remove("display-element"):v.classList.add("display-element"),n.classList.contains("hide-element")?n.classList.remove("hide-element"):n.classList.add("hide-element")}))})),r.handleEditPeople();case 38:case"end":return e.stop()}}),e,null,[[3,15]])})))),d(this,"handleRemoveConfirmationPopup",(function(e){console.log("popupCta...",r.popupCta),r.removePopup.classList.add("display-element"),r.removePopupBg.classList.add("display-element"),o.gT.checkForElement(r.popupCross)&&r.popupCross.addEventListener("click",(function(){r.removePopup.classList.remove("display-element"),r.removePopupBg.classList.remove("display-element")})),o.gT.checkForElement(r.popupCta)&&r.popupCta.addEventListener("click",(function(){r.handleDeleteContent(e),r.removePopup.classList.remove("display-element"),r.removePopupBg.classList.remove("display-element")}))})),this.$el=t,this.peopleGridUl=this.$el.querySelector(".people__grid"),this.peopleHeaderCount=this.$el.querySelector(".people__header--count"),this.filterCta=this.$el.querySelector(".filter__filsort--ctafilter"),this.sortCta=this.$el.querySelector(".filter__filsort--ctasort"),this.sortContainer=this.$el.querySelector(".sorting-container"),this.sortContainerOverlay=this.$el.querySelector(".sorting-container--overlay"),this.clearFilter=this.$el.querySelector(".filter-tags__clear"),this.paginator=this.$el.querySelector(".paginator"),this.filterTags=this.$el.querySelector(".filter-tags"),this.filterS
2ortBy=this.$el.querySelector(".filter-tags__sortby"),this.filterOptions=this.$el.querySelector(".filter-tags--sortoptions"),this.filterSel=this.$el.querySelector(".filter-tags--sortsel"),this.filterTagOptionLi=this.$el.querySelectorAll(".filter-tags--sortoptions>li")[0],o.gT.checkForElement(this.filterTagOptionLi)&&(console.log("this.filterTagOptionLi.dataset.valueSortOrder..",this.filterTagOptionLi.dataset.valueSortOrder),this.sortOrder=this.filterTagOptionLi.dataset.valueSortOrder,this.sortBy=this.filterTagOptionLi.dataset.valueSortby),this.selectedFilters=[],this.currentPage=1,(0,n.PC)(this.selectedFilters,this.clearFilter),o.gT.checkForElement(this.peopleGridUl)&&(this.isSavePeople=this.peopleGridUl.dataset.savePeople||"false",this.deletePeopleApiUrl=this.peopleGridUl.dataset.deletePeopleApiUrl,this.peopleApiUrl=this.peopleGridUl.dataset.peopleApiUrl||"".concat(window.location.origin,"/api/people/"),this.pageSize=Number(this.peopleGridUl.dataset.pageSize),console.log(this.pageSize,".... people url...",this.peopleApiUrl)),this.filterContainer=this.$el.querySelector(".filter-container"),this.filterContainerOverlay=this.$el.querySelector(".filter-container--overlay"),this.filterAside=this.$el.querySelector("#filterContainer"),o.gT.checkForElement(this.filterCta)&&this.filterCta.addEventListener("click",(function(){(0,n.wE)(r.filterAside,r.filterContainer,r.filterContainerOverlay)})),o.gT.checkForElement(this.sortCta)&&this.sortCta.addEventListener("click",(function(){(0,n.Og)(r.sortContainer,r.sortContainerOverlay)})),window.addEventListener("load",(function(){o.Xk.next({eventSource:o.Jw.PEOPLE_GRID,eventType:o.GM.PAGE_CONFIG,pageSize:r.pageSize,totalRecord:r.totalRecord,currentPage:r.currentPage})})),o.Xk.subscribe({next:function(e){e.eventType===o.GM.APPLY_SORTING&&(r.sortBy=e.selectedSorting,r.sortOrder=e.selectedSortOrder,r.peopleApi()),e.eventType===o.GM.PAGINATION&&(r.currentPage=e.currentPage,r.peopleApi()),e.eventType!==o.GM.APPLY_FILTER&&e.eventType!==o.GM.CLEAR_FILTER||(r.selectedFilters=e.selectedFilters,(0,n.PC)(r.selectedFilters,r.clearFilter),r.peopleApi())}}),this.peopleApi(),this.removePopupBg=this.$el.querySelector(".people__popupbg"),this.removePopup=this.$el.querySelector(".people__remove-popup"),this.popupCross=this.$el.querySelector(".people__remove-popup__cross"),this.popupCta=this.$el.querySelector(".people__remove-popup--cta"),this.handleSorter()}))}}]);
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.