PageSourceSearch

https://www.sogeti.ie/wp-content/plugins/cg-archive-shortcode/src/…shortcode-frontend.production.bundle.min.js

js sogeti.ie collected 2026-10-04 13:32:12 UTC 46,840 bytes, 2 lines download raw bytes

1(self.webpackChunkcg_archive_shortcode=self.webpackChunkcg_archive_shortcode||[]).push([[932],{873:(e,t,a)=>{var i=a(325).Symbol;e.exports=i},552:(e,t,a)=>{var i=a(873),n=a(659),r=a(350),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?n(e):r(e)}},128:(e,t,a)=>{var i=a(800),n=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(n,""):e}},840:(e,t,a)=>{var i="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g;e.exports=i},659:(e,t,a)=>{var i=a(873),n=Object.prototype,r=n.hasOwnProperty,s=n.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,o),a=e[o];try{e[o]=void 0;var i=!0}catch(e){}var n=s.call(e);return i&&(t?e[o]=a:delete e[o]),n}},350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},325:(e,t,a)=>{var i=a(840),n="object"==typeof self&&self&&self.Object===Object&&self,r=i||n||Function("return this")();e.exports=r},800:e=>{var t=/\s/;e.exports=function(e){for(var a=e.length;a--&&t.test(e.charAt(a)););return a}},221:(e,t,a)=>{var i=a(805),n=a(124),r=a(374),s=Math.max,o=Math.min;e.exports=function(e,t,a){var l,c,d,u,p,h,f=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var a=l,i=c;return l=c=void 0,f=t,u=e.apply(i,a)}function _(e){var a=e-h;return void 0===h||a>=t||a<0||m&&e-f>=d}function b(){var e=n();if(_(e))return k(e);p=setTimeout(b,function(e){var a=t-(e-h);return m?o(a,d-(e-f)):a}(e))}function k(e){return p=void 0,v&&l?y(e):(l=c=void 0,u)}function w(){var e=n(),a=_(e);if(l=arguments,c=this,h=e,a){if(void 0===p)return function(e){return f=e,p=setTimeout(b,t),g?y(e):u}(h);if(m)return clearTimeout(p),p=setTimeout(b,t),y(h)}return void 0===p&&(p=setTimeout(b,t)),u}return t=r(t)||0,i(a)&&(g=!!a.leading,d=(m="maxWait"in a)?s(r(a.maxWait)||0,t):d,v="trailing"in a?!!a.trailing:v),w.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},w.flush=function(){return void 0===p?u:k(n())},w}},805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},394:(e,t,a)=>{var i=a(552),n=a(346);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==i(e)}},124:(e,t,a)=>{var i=a(325);e.exports=function(){return i.Date.now()}},374:(e,t,a)=>{var i=a(128),n=a(805),r=a(394),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return NaN;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var a=o.test(e);return a||l.test(e)?c(e.slice(2),a?2:8):s.test(e)?NaN:+e}},895:(e,t,a)=>{"use strict";a.r(t);var n=a(669),r=a.n(n),s=a(221),o=a.n(s);r()(document).ready((function(){0===r()(".archive-pages .filters-tags-list").text().length&&r()(".archive-pages .filters-clear").hide();var e=new function(){var e=this;e.filterState={},e.filterMap={},e.resultsContainer={},e.noResultsNotice={},e.loadingNotice={},e.loadMoreBtn={},e.paginationBtn={},e.loadMoreBtnClicked,e.isLoading=!1,e.hasLoaded=!1,e.initialAutoSwitchDone=!1,e.currentRequest=null,e.requestId=0;const t="undefined"!=typeof window&&window.archive_var?window.archive_var:{},a=(t.translationStrings||{}).severalLocations||"Several locations";let n=void 0!==t.pathName&&null!==t.pathName&&""!==t.pathName?t.pathName:"";e.apiUrl=n+"/wp-json/macs/v1/press_release_search_results",e.init=function(){e.resultsContainer=r()(".filters-content"),e.noResultsNotice=r()(".js-no-results"),e.loadMoreBtn=r()(".filters-more"),e.paginationContainer=r()(".filters-pagination"),e.paginationBtn=r()(".filters-pagination-btn"),e.noResultsNotice.hide(),e.postType=e.resultsContainer.attr("data-type"),e.resultsContainer.length&&e.noResultsNotice.length&&("employee-testimonial"===e.postType||e.loadMoreBtn.length)&&(e.enableActivateButtons(),e.setApiUrl(),e.bindFiltersChange(),e.loadInitialState(),window.onhashchange=function(){e.refreshResults()},e.loadMoreBtn.off().on("click",(function(e){e.preventDefault()})),e.paginationBtn.off().on("click",(function(e){e.preventDefault()})),r()(window).on("scroll",(function(){r()(".js-with-select2").select2("close")})))},e.enableActivateButtons=function(){if("event"===e.postType){let t=new URLSearchParams(window.location.search);if(t.has("events")){let a=t.get("events");""!==a&&e.enableTabButton(a,"disable-button")}if(t.has("events_type")){let a=t.get("events_type").split("-");if(a.length)for(let t=0;t<a.length;t++)e.enableTabButton(a[t],"selected-event-type")}}},e.enableTabButton=function(e,t){let a=r()('a[data-value="'+e+'"]');a.length>0&&a.addClass(t)},e.setApiUrl=function(){e.postType||(e.apiUrl=""),e.apiUrl=n+"/wp-json/macs/v1/"+e.postType+"_search_results"},e.bindFiltersChange=function(){if(e.resultsContainer=r()(".filters-content"),e.postType=e.resultsContainer.attr("data-type"),"event"===e.postType&&(r()("body").addClass("all-events"),r()(".js-event-filter").on("click",(function(t){t.preventDefault(),r()(".js-event-filter.disable-button").each((function(){r()(this).removeClass("disable-button")}));let a=r()(this);a.toggleClass("disable-button");let i=a.data("value");e.filterState.events=i,e.refreshUrl()})),r()(".js-event-type-filter").on("click",(function(t){t.preventDefault(),r()(this).toggleClass("selected-event-type");let a="";r()(".filter-container .selected-event-type").each((function(){let e=r()(this).data("value");""!==a?a+="-"+e:a=e})),e.filterState.events_type=a,e.refreshUrl()}))),r()(".js-filter").on("change",(function(){let t=r()(this).val(),a=r()(this).attr("name");"employee-testimonial"==e.postType&&e.resultsContainer.attr("data-page",1);let i=!1;if(void 0===e.filterMap[a])i=!0,e.filterMap[a]=t;else if(Array.isArray(t)&&Array.isArray(e.filterMap[a])){if(t.length||e.filterMap[a].length){const n=t.slice().sort();e.filterMap[a].length===t.length&&e.filterMap[a].slice().sort().every((function(e,t){return e===n[t]}))||(i=!0,e.filterMap[a]=t)}}else e.filterMap[a]!==t&&(i=!0,e.filterMap[a]=t);e.filterState[a]=t,i&&e.refreshUrl()})),r()(".archive_phrase_search").on("keyup",o()((function(){""===r()(this).val()&&(e.filterState.search="",e.refreshUrl())}),200)),r()(".js-search-form").on("submit",(function(t){t.preventDefault();let a=r()(this).find("input[type=text]").first(),i=a.val(),n=a.attr("name");e.filterState[n]=i,e.refreshUrl()})),"podcast"===e.postType){let t=window.location.href,a=t.substring(t.indexOf("?")+1),i=new URLSearchParams(a);i.has("podcast_category")?r()(".podcast-tabs").each((function(e,t){r()(t).removeClass("active"),r()(t).attr("data-filter")===i.get("podcast_category")&&r()(t).addClass("active")})):(r()(".podcast-tabs").each((function(e,t){"technology-labs"===r()(t).attr("data-filter")&&r()(t).addClass("active")})),e.filterState.podcast_category="technology-labs",e.refreshUrl())}r()(".podcast-tabs").on("click",(function(t){t.preventDefault();let a=r()(this).attr("data-filter");e.filterState.podcast_category=a,e.refreshUrl()}))},e.loadInitialState=function(){e.getFiltersFromUrl(),e.setDOMFiltersValues(),e.refreshResults()},e.getFiltersFromUrl=function(){let t="";const a=window.location.hash.replace(/[^=#%+&\w-(?!\&)]/g,"");if(t=a?a.substring(1):window.location.search,!t)return;const i=new URLSearchParams(t).entries();for(const[t,a]of i)e.filterState[t]=a},e.setDOMFiltersValues=function(){for(const t in e.filterState){const a=r()('[name="'+t+'"]'),i=e.filterState[t].split(",");a.val(i),a.trigger("change")}},e.getRequestUrlFromHash=function(){return"event"===e.postType?(window.location.href,window.location.search?e.apiUrl+window.location.search:(window.history.replaceState({},"","?events=upcoming"),r()(".upcomingEventBtn").trigger("click"),e.apiUrl+"?events=upcoming")):e.apiUrl+window.location.search},e.refreshUrl=function(){let t=new URLSearchParams(e.filterState);e.postType&&(window.history.replaceState({},"","?"+t),e.refreshResults())},e.refreshUrlForEmployeeTestimonial=function(){if(0===r()(".filters-tags-list").children().length&&"employee-testimonial"===r()(".filters-content").attr("data-type")){let e=window.location.href;e=e.split("?"),e=e[0],window.location.href=e}},e.getCountAPIUrl=function(){const t=window.location.hash;if(t){let e=new URLSearchParams(t);window.history.replaceState({},"?"+e)}return n+"/wp-json/macs/v1/"+e.postType+"_search_results_count"+window.location.search},e.refreshResults=function(t=!1){let a=e.getRequestUrlFromHash();if(e.getCountAPIUrl(),e.resultsContainer=r()(".filters-content"),e.postType=e.resultsContainer.attr("data-type"),e.postsPerPage=e.resultsContainer.attr("data-ppp"),e.authorMetaKey=e.resultsContainer.attr("data-author-meta-key"),"event"==e.postType){var i=a.match("events=(.*)");if(null!=i){let e=i[1].replace(/\&.*/,"");e?(r()("body").addClass(e),r()("body").removeClass("all-events")):r()("body").addClass("all-events"),r()(".js-event-filter").on("click",(function(){r()("body").removeClass(e),r()(this).addClass(e)}))}}if(t){let t=e.resultsContainer.attr("data-page");a=a.includes("?")?a+"&page="+(parseInt(t,10)+1):a+"?page="+(parseInt(t,10)+1)}e.postsPerPage&&(a=a.includes("?")?a+"&ppp="+e.postsPerPage:a+"?ppp="+e.postsPerPage),e.authorMetaKey&&(a=a.includes("?")?a+"&author_meta_key="+e.authorMetaKey:a+"?author_meta_key="+e.authorMetaKey),e.fetchJobs(a,t)},e.fetchCount=function(e,t){r().ajax({type:"GET",url:e,success:function(e,t,a){e.filter_counts.length&&(r().each(e.filter_counts[0].grade,(function(e,t){var a=(e=_.unescape(e))+" ("+t+")";r()('select#select_et_grade option:contains("'+e+'")').first().text(a),r()('select#select_et_grade option:contains("'+e+'")').first().prop("disabled",!1),0==t&&r()('select#select_et_grade option:contains("'+e+'")').first().prop("disabled","disabled")})),r().each(e.filter_counts[0].profession,(function(e,t){var a=(e=_.unescape(e))+" ("+t+")";
1r()('select#select_et_profession option:contains("'+e+'")').first().text(a),r()('select#select_et_profession option:contains("'+e+'")').first().prop("disabled",!1),0==t&&r()('select#select_et_profession option:contains("'+e+'")').first().prop("disabled","disabled")})),r().each(e.filter_counts[0].jobfamily,(function(e,t){var a=(e=_.unescape(e))+" ("+t+")";r()('select#select_et_job_family option:contains("'+e+'")').first().text(a),r()('select#select_et_job_family option:contains("'+e+'")').first().prop("disabled",!1),0==t&&r()('select#select_et_job_family option:contains("'+e+'")').first().prop("disabled","disabled")})),r().each(e.filter_counts[0].brand,(function(e,t){var a=(e=_.unescape(e))+" ("+t+")";r()('select#select_et_brand option:contains("'+e+'")').first().text(a),r()('select#select_et_brand option:contains("'+e+'")').first().prop("disabled",!1),0==t&&r()('select#select_et_brand option:contains("'+e+'")').first().prop("disabled","disabled")})),r().each(e.filter_counts[0].country,(function(e,t){var a=(e=_.unescape(e))+" ("+t+")";r()('select#select_et_country option:contains("'+e+'")').first().text(a),r()('select#select_et_country option:contains("'+e+'")').first().prop("disabled",!1),0==t&&r()('select#select_et_country option:contains("'+e+'")').first().prop("disabled","disabled")})),s())}})},e.fetchJobs=function(t,i=!1){if(e.isLoading=!0,e.noResultsNotice.hide(),e.resultsContainer.addClass("loading"),e.currentRequest&&4!==e.currentRequest.readyState)try{e.currentRequest.abort()}catch(e){}const n=++e.requestId;e.currentRequest=r().ajax({type:"GET",url:t,success:function(t,s,o){if(n!==e.requestId)return;e.isLoading=!1,e.hasLoaded=!0;const l=r()("#search_result_item_template").html();if(l.length){if(!t.results||!t.results.length){if("event"===e.postType&&!e.initialAutoSwitchDone){const t=window.location.search||"";if("upcoming"===(new URLSearchParams(t).get("events")||"upcoming"))return e.initialAutoSwitchDone=!0,void r()(".pastEventBtn").trigger("click")}return i||(e.resultsContainer.empty(),e.hasLoaded&&!e.isLoading&&e.noResultsNotice.show()),e.loadMoreBtn.hide(),e.paginationContainer.hide(),void setTimeout((function(){e.resultsContainer.removeClass("loading")}),300)}if(e.paginationContainer.show(),e.noResultsNotice.hide(),i||e.resultsContainer.empty(),"training-session"===e.postType){const a={},i=[];t.results.forEach((e=>{const t=e.month||"Specified";a[t]||(a[t]=[]),a[t].push(e)}));let n="";Object.keys(a).forEach((e=>{const t=a[e].map((e=>{let t=e.button_url||"";"post"===e.button_method&&t&&i.push({url:t,fields:e.button_post_fields||{}});const a={title:e.title||"",url:e.url||"",trainingprice:e.training_price||"",trainingdateselement:e.training_dates_element||"",trainingdatetimeelement:e.training_dates_time_element||"",traininglanguage:e.training_language||"",traininglocation:e.training_location||"",month:e.month||"",featuredimagewithanchor:e.featured_image_with_anchor||"",buttonurl:t};return l.replace(/{{\s*([a-z]+)\s*}}/g,((e,t)=>a[t]||""))})).join("");n+=`\n                        <div class="expander-box">\n                          <div class="expander-title" tabindex="0" role="button" aria-expanded="false" aria-pressed="false" data-filter="#collapse-${e}">${e}</div>\n                          <div class="expander-content" id="collapse-${e}">\n                            <div class="row">${t}</div>\n                          </div>\n                        </div>\n                        `})),e.resultsContainer.html(n),i.forEach((t=>{const a=e.resultsContainer.find(`a[href="${t.url}"]:not([data-cg-post-bound="1"])`);if(!a.length)return;const i=a.first();i.attr("data-cg-post-bound","1"),i.on("click",(function(e){e.preventDefault();const a=document.createElement("form");a.method="post",a.action=t.url,a.style.display="none",Object.keys(t.fields).forEach((e=>{const i=t.fields[e];if(null==i||""===i)return;const n=document.createElement("input");n.type="hidden",n.name=e,n.value=String(i),a.appendChild(n)})),document.body.appendChild(a),a.submit()}))})),r()(document).trigger("expanders:ready")}else for(let i=0;i<t.results.length;i++){var c=t.results[i].type;
1"analyst-report"===e.postType&&(c=""!==t.results[i].analyst?t.results[i].analyst:""!==t.results[i].industry?t.results[i].industry:""!==t.results[i].service?t.results[i].service:""!==t.results[i].partner?t.results[i].partner:""),"client-story"===e.postType&&(c=-1!==c.indexOf(",")?c.split(",")[0]:c);var d=t.results[i].url,u=t.results[i].featured_image,p=t.results[i].featured_image_with_anchor,h={title:t.results[i].title||"",url:d||"",type:c||"",theme:t.results[i].primary_term||"",date:t.results[i].date||"",location:t.results[i].location||"",eventtype:t.results[i].event_type||"",eventtypeelement:t.results[i].event_type_element||"",eventlocation:function(){const e=t.results[i].event_type?.toLowerCase()||"",n=t.results[i].event_location||"";return e.includes("online")?"":e.includes("hybrid")?a:(e.includes("on site")||e.includes("on-site"),n)}(),eventblocktitle:t.results[i].event_block_title||"",year:t.results[i].event_block_title?"":t.results[i].year,month:t.results[i].event_block_title?"":t.results[i].month,day:t.results[i].event_block_title?"":t.results[i].day,datestring:t.results[i].date_string||"",timewithzone:t.results[i].time_with_zone||"",hour:t.results[i].hour||"",banner:t.results[i].banner||"",addtocalendstart:t.results[i].addtocalend_start||"",addtocalendend:t.results[i].addtocalend_end||"",addtocalendstartformatted:t.results[i].addtocalend_start_formatted||"",addtocalendendformatted:t.results[i].addtocalend_end_formatted||"",eventtimestart:t.results[i].event_time_start||"",eventtimeend:t.results[i].event_time_end||"",eventtimezone:t.results[i].event_timezone||"",addtocalmarkup:t.results[i].add_to_cal_markup||"",eventclass:t.results[i].event_class||"",fileurl:t.results[i].file_url||"",filename:t.results[i].file_name||"",filetype:t.results[i].file_type||"",filesize:t.results[i].file_size||"",featuredimage:u||"",featuredimagewithanchor:p||"",authorurl:t.results[i].author_url||"",authorimage:t.results[i].author_image_html||"",authorname:t.results[i].author_name||"",brandimg:t.results[i].brand_img||"",analyst:t.results[i].analyst||"",industry:t.results[i].industry||"",service:t.results[i].service||"",partner:t.results[i].partner||"",personimage:t.results[i].person_avatar||"",personimageselement:t.results[i].person_avatar||"",personname:t.results[i].person_name||"",grade:t.results[i].grade||"",profession:t.results[i].profession||"",jobfamily:t.results[i].jobfamily||"",country:t.results[i].country||"",brand:t.results[i].brand||"",testimonialtitle:t.results[i].testimonial_title||"",excerpt:t.results[i].excerpt||"",podcasturl:t.results[i].podcast_url||"",podcastoriginalurl:t.results[i].podcast_original_url||""},f=l.replace(/{{\s*([a-z]+)\s*}}/g,(function(e,t){return h[t]||""}));let n=r()(f);if("event"===e.postType&&(""!==h.addtocalendstart&&""!==h.addtocalendend||n.find(".addeventatc").remove()),"employee-testimonial"===e.postType){let t=n.find(".box-tags");e.addTags(h.grade,t),e.addTags(h.profession,t),e.addTags(h.jobfamily,t),e.addTags(h.country,t),e.addTags(h.brand,t)}if(h.fileurl||n.find(".link-download").remove(),"research-and-insight"!==e.postType||h.authorname||(n.find(".box-author-img").remove(),n.find(".box-author-name").remove()),e.resultsContainer.append(n),"employee-testimonial"===e.postType){var g=e.resultsContainer.parent(),m=g.length?g.offset().top:0;1===parseInt(e.resultsContainer.attr("data-employee-pagination")||0,10)&&r()("html, body").animate({scrollTop:m},1)}if("podcast"===e.postType){let e=window.location.href,t=e.substring(e.indexOf("?")+1),a=new URLSearchParams(t);a.has("podcast_category")&&"playing-with-reality"===a.get("podcast_category")&&r()(".podcast-box").each((function(e,t){r()(t).find(".box-img-wrapper").css("width","100%"),r()(t).find(".box-img-wrapper").css("height","390px"),r()(t).find(".box-inner").hide()})),a.has("podcast_category")&&"technology-labs"===a.get("podcast_category")&&(r()("#spotify_podcast_url").show(),r()("#apple_podcast_url").show(),r()("#sogeti_spotify_podcast_url").hide()),a.has("podcast_category")&&"sogeti-labs"===a.get("podcast_category")&&(r()("#spotify_podcast_url").hide(),r()("#apple_podcast_url").hide(),r()("#sogeti_spotify_podcast_url").show()),a.has("podcast_category")&&"playing-with-reality"===a.get("podcast_category")&&(r()("#spotify_podcast_url").hide(),r()("#apple_podcast_url").hide(),r()("#sogeti_spotify_podcast_url").hide())}}setTimeout((function(){e.resultsContainer.removeClass("loading"),"undefined"!=typeof addeventatc&&addeventatc.refresh()}),300),e.postType=e.resultsContainer.attr("data-type"),e.resultsContainer.attr("data-page",t.page),e.resultsContainer.attr("data-page-max",t.total_pages),e.updateLoadMoreBtn(),"employee-testimonial"===e.postType&&e.buildPagination(t),e.refreshHovers()}},error:function(t,a,i){"abort"!==a&&n===e.requestId&&(e.isLoading=!1,e.hasLoaded=!0,e.loadMoreBtn.hide(),e.isLoading||e.noResultsNotice.show())},complete:function(){n===e.requestId&&(e.isLoading=!1,e.currentRequest=null)}})}
1,r()(document).ready((function(){if(r()("section.campaign-archive").length){console.log("CA: Script is running on the campaign archive page");var e="/wp-json/macs/v1",t=!1;r()(".archive-pages .js-search-form").on("submit",(function(e){e.preventDefault(),r()(".archive-search-input").val(),n()})),r()(".archive-pages").on("change","#select_post_type, .js-filter",n),r()(".archive-pages .js-search-form").on("submit",(function(e){e.preventDefault(),console.log("Search form submitted."),n()})),r()(".archive-pages  .filters-clear").on("click",(function(){console.log("CA: Clear all filters clicked"),r()(".archive-pages .filters-selects-list select").val([]).trigger("change"),n()})),n()}function n(){if(t)console.log("CA: Fetch already in progress, ignoring new fetch request.");else{t=!0;var n=function(){var e={};r()(".archive-pages .js-filter").each((function(){var t=r()(this).attr("name"),a=r()(this).val();a&&a.length>0&&(e[t]=a.join(","))}));var t=r()(".archive-pages .archive-search-input").val();return t&&(e.search=t),e}(),s=function(e){var t=r()("#select_post_type").val();if(t&&t.length>0)return t;var a=[];return(e.topic||e["business-theme"])&&a.push("campaigns"),(e.industry||e.theme||e.research_and_insight_type||e.topic)&&a.push("research-and-insight"),a.length>0?a:["campaigns","research-and-insight","event"]}(n);r()(".archive-pages .filters-content-archive").empty();var o=s.map((t=>function(t,a={}){"event"===t&&(a.include_in_campaign_archive="1");var i=new URLSearchParams(a).toString(),n=`${e}/${t}_search_results/?${i}`;return console.log(`CA: Fetching data for ${t} with URL: ${n}`),r().ajax({type:"GET",url:n})}(t,n).then((e=>({postType:t,data:e})))));r().when(...o).then((function(...e){!function(e){console.log("CA: Received data for all results",e);var t="";e.forEach((e=>{if(console.log(`CA: Processing results for ${e.postType}`),"event"===e.postType&&(e.data.results=e.data.results.filter((e=>"1"===e.include_in_campaign))),e.data&&e.data.results.length>0){var n=`search_result_item_template_${e.postType}`,s=r()("#"+n).html();console.log(`CA: Using template for ${e.postType}:`,s),e.data.results.forEach((e=>{var n=e.url&&!e.url.includes("capgemini.com")?"_blank":"_self",r={title:e.title||"",url:e.url||"",urlTarget:n,type:e.type||"",theme:e.primary_term||"",date:e.date||"",location:e.location||"",eventtype:e.event_type||"",eventblocktitle:e.event_block_title||"",year:e.event_block_title?"":e.year,month:e.event_block_title?"":e.month,day:e.event_block_title?"":e.day,hour:e.hour||"",banner:e.banner||"",addtocalendstart:e.addtocalend_start||"",addtocalendend:e.addtocalend_end||"",addtocalendstartformatted:e.addtocalend_start_formatted||"",addtocalendendformatted:e.addtocalend_end_formatted||"",eventtimestart:e.event_time_start||"",eventtimeend:e.event_time_end||"",eventtimezone:e.event_timezone||"",addtocalmarkup:e.add_to_cal_markup||"",eventclass:e.event_class||"",fileurl:e.file_url||"",filename:e.file_name||"",filetype:e.file_type||"",filesize:e.file_size||"",primarytermcmp:e.primary_term||e.type,themescmp:e.themes_cmp||"",featuredimagecmp:e.featured_image||"",featuredimagewithanchorcmp:e.featured_image_with_anchor||"",eventtype:e.event_type||"",eventtypeelement:e.event_type_element||"",eventlocation:function(){const t=e.event_type?.toLowerCase()||"",i=e.event_location||"";return t.includes("online")?"":t.includes("hybrid")?a:(t.includes("on site")||t.includes("on-site"),i)}(),authorurlcmp:e.author_url||"",authorimagecmp:e.author_image_html||"",authornamecmp:e.author_name||"",brandimgcmp:e.brand_img||"",primarytermrni:e.primary_term||e.type,featuredimagewithanchor:e.featured_image_with_anchor||"",authorurl:e.author_url||"",authorimage:e.author_image_html||"",authorname:e.author_name||"",brandimg:e.brand_img||"",podcasturl:response.results[i].podcast_url||"",podcastoriginalurl:response.results[i].podcast_original_url||""},o=s.replace(/{{\s*([\w]+)\s*}}/g,((e,t)=>r[t]||""));t+=o}))}else console.log(`CA: No results found for ${e.postType}`)})),""===t?r()(".filters-content-archive").html("<p>No results found.</p>"):r()(".filters-content-archive").html(t)}(e),t=!1})).fail((function(){t=!1}))}}})),e.addTags=function(e,t){if(e.length>0)for(let a=0;a<e.length;a++)r()("<span />",{text:e[a].trim()}).appendTo(t)},e.updateLoadMoreBtn=function(){let t=parseInt(e.resultsContainer.attr("data-page"),10),a=parseInt(e.resultsContainer.attr("data-page-max"),10);!0===e.loadMoreBtnClicked&&(r()(".archive-pages .box.filter-box").eq((parseInt(e.resultsContainer.attr("data-page"),10)-1)*e.postsPerPage).find("a").first().focus(),e.loadMoreBtnClicked=!1),a>t?(e.loadMoreBtn.show(),e.loadMoreBtn.parent().show(),e.loadMoreBtn.off().on("click",(function(t){t.preventDefault(),e.refreshResults(!0),e.loadMoreBtnClicked=!0}))):e.loadMoreBtn.hide()},e.buildPagination=function(t){let a=parseInt(e.resultsContainer.attr("data-page"),10),i=parseInt(e.resultsContainer.attr("data-page-max"),10),n='<div class="slider-nav">',s="inactive",o="",l=parseInt(a)+1,c=parseInt(a)-1;a>1&&(s="active"),a===i&&(o="inactive");var d=[];if(i>9)if(a>5)if(i-a<4){var u=7-(i-a+1);for(let e=1;e<=u;e++)d.push(e);d.push("...");for(let e=a-1;e<=i;e++)d.push(e)}else{for(let e=1;e<=3;e++)d.push(e);d.push("..."),d.push(a-1),d.push(a),d.push(a+1),d.push("..."),d.push(i-1),d.push(i)}else if(5===a){for(let e=1;e<=6;e++)d.push(e);d.push("..."),d.push(i-1),d.push(i)}else{for(let e=1;e<=5;e++)d.push(e);d.push("..."),d.push(i-2),d.push(i-1),d.push(i)}else for(let e=1;e<=i;e++)d.push(e);if(d.length>1){n+="inactive"===s?'<button tabindex="-1" class="filters-pagination-btn slider-prev '+s+'" data-pageNo="'+c+'"><span class="sr-only">pagination previous</span></button>':'<button tabindex="0" class="filters-pagination-btn slider-prev '+s+'" data-pageNo="'+c+'"><span class="sr-only">pagination previous</span></button>',n+='<ul class="slider-paginator">';
1for(let e=0;e<d.length;e++){let t="",i='<a class="filters-pagination-btn" href="javascript:void(0)" aria-label="Page '+d[e]+'" data-pageNo="'+d[e]+'">'+d[e]+"</a>";"..."===d[e]&&(i=d[e]),a===d[e]&&(t="active",i=d[e]),n+='<li class="paginate-item '+t+'">'+i+"</li>"}n+="</ul>",n+="inactive"===o?'<button tabindex="-1" class="filters-pagination-btn slider-next '+o+'" data-pageNo="'+l+'"><span class="sr-only">pagination next</span></button>':'<button tabindex="0" class="filters-pagination-btn slider-next '+o+'" data-pageNo="'+l+'"><span class="sr-only">pagination next</span></button>',n+="</div>"}e.paginationContainer.html(n),e.paginationBtn=r()(".filters-pagination-btn"),e.paginationBtn.off().on("click",(function(t){t.preventDefault(),e.resultsContainer.attr("data-page",r()(this).attr("data-pageNo")),e.resultsContainer.attr("data-employee-pagination",1),e.refreshResults(!0)}))},e.refreshHovers=function(){r()("a.box-title, a.box-title2, .more, .more2, .more4").hover((function(){r()(this).parents(".box").find("a.box-title, a.box-title2, .more, .more2, .more4").addClass("hover")}),(function(){r()(this).parents(".box").find("a.box-title, a.box-title2, .more, .more2, .more4").removeClass("hover")}))}};function t(e){return new URLSearchParams(window.location.search).get(e)}e.init();let a=t("date-from"),n=t("date-to");function s(){r()(".archive-pages select, .section--searchPage select").each((function(){var e=r()(this).attr("placeholder"),t=r()(this).parent();if("multiple"==r()(this).attr("multiple")){r()(this).select2({placeholder:e,dropdownParent:t,closeOnSelect:!0});let a=t.find(".select2-selection");r()(`<div class="filters-option-dropdown">${e} </div>`).prependTo(a),r()(this).find("option").length<10?t.find(".select2-selection__rendered").hide():t.addClass("hasSearch"),r()("select").on("select2:open",(function(e){t.find(".select2-search__field").focus()})),r()(this).on("select2:open",(function(e){setTimeout((function(){r()(".select2-results__option").each((function(){"true"==r()(this).attr("aria-selected")?r()(this).attr("aria-label",r()(this).text()+" selected"):r()(this).attr("aria-label",r()(this).text())}))}),100),"employee-testimonial"===r()(".filters-content").attr("data-type")&&r()("ul#select2-select_et_brand-results").length})),r()("select").on("change",(function(a){t.find(".select2-search__field").focus().attr("placeholder",e),setTimeout((function(){r()(".select2-results__option").each((function(){"true"==r()(this).attr("aria-selected")?r()(this).attr("aria-label",r()(this).text()+" selected"):r()(this).attr("aria-label",r()(this).text())}))}),100)})),r()(this).on("select2:close",(function(e){e.preventDefault(),t.find(".filters-multiselect-dropdown").focus()})),r()(this).ready((function(){r()(".select2-search__field").hide()}))}else{var a=10;r()(this).find("option").length<10&&(a=-1),r()(this).select2({placeholder:e,dropdownParent:t,minimumResultsForSearch:a,closeOnSelect:!0})}t.find(".select2-search__field"),r()(document).ready((function(){setTimeout((function(){r()(".select2-results__option").each((function(){"true"==r()(this).attr("aria-selected")?r()(this).attr("aria-label",r()(this).text()+" selected"):r()(this).attr("aria-label",r()(this).text())}))}),100),r()(".select2-selection--multiple").attr("tabindex",0)}))}))}s(),r()(".form input, .form textarea").focusout((function(){""!=r()(this).val()?r()(this).addClass("full"):r()(this).removeClass("full")})),r()(".form--oneliner input").not(".noeffect-input").on("keyup",(function(){""!=r()(this).val()?r()(this).parents(".form--oneliner").addClass("full"):r()(this).parents(".form--oneliner").removeClass("full")}));var l=[];if(r()(".year-filter > option").each((function(){l.push(r()(this).text())})),0!==l.length){Math.min(...l);Math.max(...l)}else 0;function c(e,t){if(""!==r()(e).val()){var a=r()(e).parents(".filters");r()('.filter-date-tag[data-filter="'+e.id+'"]').remove();let t=r()('<span class="filters-tag filter-date-tag"><button class="filters-tag-remove" aria-label="close"><i class="icon-close" aria-hidden="true"></i></button>           <span></span></span>'),i=r()(t).find("span");i.text(r()(e).val()),i.attr("data-value",r()(e).val()),r()(t).attr("data-filter",e.id),"pr_datefrom"!==e.id&&"pr_dateto"!==e.id&&a.find(".filters-tags-list").append(r()(t))}a.find(".filters-tag")&&a.find("input[name=date-from]")&&a.find("input[name=date-to]")&&(a.find(".filters-tag").length>0||a.find("input[name=date-from]").val()||a.find("input[name=date-to]").val())&&a.find(".filters-clear").show()}const d=["January","February","March","April","May","June","July","August","September","October","November","December"];console.log("reacthed datapicker init"),r()("#pr_datefrom").datepicker({showOn:"both",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:a,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate");r()(this).datepicker("option","defaultDate",a);let i=d[r()(this).datepicker("getDate").getMonth()]+" "+r()(this).datepicker("getDate").getDate()+", "+r()(this).datepicker("getDate").getFullYear();r()("#pr_dateto").datepicker("option","minDate",e),r()(this).val(i),c(this),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_datefrom").attr("disabled",!1)}),100)},onClose:function(e){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a),r()("#ui-datepicker-div").find("a.ui-state-default").attr("href","javascript:void(0)"),r()("#pr_datefrom").attr("readonly","readonly"),r()("#pr_dateto").attr("readonly","readonly"),r()(document).keyup((function(e){40===e.which&&r()("#ui-datepicker-div").attr("tabindex","0").focus()}));
1const i=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],n=["January","February","March","April","May","June","July","August","September","October","November","December"];r()(".ui-datepicker-header .ui-datepicker-prev, .ui-datepicker-header .ui-datepicker-next").attr("href","javascript:void(0)"),r()(".ui-datepicker-calendar tbody tr td").each((function(e){let t=i[r()(this).index()],a=n[r()(this).attr("data-month")],s=r()(this).attr("data-year"),o=r()(this).find("a").html()+""+a+s+t;r()(this).find("a").attr("aria-label",o)})),r()(".ui-datepicker-month option").each((function(){r()(this).attr("aria-label",n[r()(this).index()])})),r()(".ui-datepicker-header > a.ui-state-disabled").attr("tabindex","-1"),localStorage.getItem("prevDateFocusItem")&&r()("."+localStorage.getItem("prevDateFocusItem")).focus()}});if(["#pr_datefrom","#pr_dateto","#ra_datefrom","#ra_dateto"].map((e=>document.querySelector(e))).forEach((e=>{e&&["click","keydown"].forEach((t=>{e.addEventListener(t,(t=>{((e,t)=>{"click"!==t.type&&"Enter"!==t.code&&13!==t.keyCode||(r()(e).datepicker("widget").is(":visible")?r()(e).datepicker("hide"):r()(e).datepicker("show"))})(e,t)}))}))})),r()("#ra_datefrom").datepicker({dateFormat:"dd/mm/yy",showOn:"none",changeMonth:!0,changeYear:!0,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){r()("#ra_dateto").datepicker("option","minDate",e),r()(this).trigger("change")},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}}),r()("#pr_dateto").datepicker({showOn:"both",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:n,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate"),i=d[a.getMonth()]+" "+a.getDate()+", "+a.getFullYear();r()(this).val(i),c(this),r()(this).datepicker("option","defaultDate",a),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_dateto").attr("disabled",!1)}),100)},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a),r()("#ui-datepicker-div").find("a.ui-state-default").attr("href","javascript:void(0)"),r()("#pr_datefrom").attr("readonly","readonly"),r()("#pr_dateto").attr("readonly","readonly"),r()(document).keyup((function(e){40===e.which&&r()("#ui-datepicker-div").attr("tabindex","0").focus()}));const i=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],n=["January","February","March","April","May","June","July","August","September","October","November","December"];r()(".ui-datepicker-header .ui-datepicker-prev, .ui-datepicker-header .ui-datepicker-next").attr("href","javascript:void(0)"),r()(".ui-datepicker-calendar tbody tr td").each((function(e){let t=i[r()(this).index()],a=n[r()(this).attr("data-month")],s=r()(this).attr("data-year"),o=r()(this).find("a").html()+""+a+s+t;r()(this).find("a").attr("aria-label",o)})),r()(".ui-datepicker-month option").each((function(){r()(this).attr("aria-label",n[r()(this).index()])})),r()(".ui-datepicker-header > a.ui-state-disabled").attr("tabindex","-1"),localStorage.getItem("prevDateFocusItem")&&r()("."+localStorage.getItem("prevDateFocusItem")).focus()}}),r()("#ra_dateto").datepicker({dateFormat:"dd/mm/yy",showOn:"none",changeMonth:!0,changeYear:!0,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}}),r()(".year-filter").on("change",(function(){let e=r()(this).val();0===e.length&&(e=[],r()(this).find("option").each((function(){e.push(r()(this).val())})));let t=Math.min(...e),i=Math.max(...e),s=r().datepicker.formatDate("mm/dd/yy",new Date);0!==t&&(s="01/01/"+t),r()("#pr_datefrom").datepicker("destroy"),r()("#ra_datefrom").datepicker("destroy"),r()("#pr_datefrom").datepicker({showOn:"none",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:a,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate");r()(this).datepicker("option","defaultDate",a);let i=d[r()(this).datepicker("getDate").getMonth()]+" "+r()(this).datepicker("getDate").getDate()+", "+r()(this).datepicker("getDate").getFullYear();r()("#pr_dateto").datepicker("option","minDate",e),r()(this).val(i),c(this),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_datefrom").attr("disabled",!1)}),100)},onClose:function(e){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a)}}),r()("#ra_datefrom").datepicker({showOn:"none",changeMonth:!0,changeYear:!0,yearRange:t+":"+i,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){r()("#ra_dateto").datepicker("option","minDate",e),r()(this).trigger("change")},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}}),r()("#pr_dateto").datepicker("destroy"),r()("#ra_dateto").datepicker("destroy"),r()("#pr_dateto").datepicker({showOn:"none",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:n,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate"),i=d[a.getMonth()]+" "+a.getDate()+", "+a.getFullYear();r()(this).val(i),c(this),r()(this).datepicker("option","defaultDate",a),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_dateto").attr("disabled",!1)}),100)},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a)}}),r()("#ra_dateto").datepicker({showOn:"none",changeMonth:!0,changeYear:!0,yearRange:t+":"+i,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}})})),r()("#clearDates").on("click",(function(){r()("#pr_datefrom").datepicker("destroy"),r()("#ra_datefrom").datepicker("destroy"),r()("#pr_dateto").datepicker("destroy"),r()("#ra_dateto").datepicker("destroy");var e=[];
1if(r()(".year-filter > option").each((function(){e.push(r()(this).text())})),0!==e.length)var t=Math.min(...e),i=Math.max(...e);else t=0,i=0;0!==t||r().datepicker.formatDate("mm/dd/yy",new Date),r()("#pr_datefrom").datepicker({showOn:"none",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:a,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate");r()(this).datepicker("option","defaultDate",a);let i=d[r()(this).datepicker("getDate").getMonth()]+" "+r()(this).datepicker("getDate").getDate()+", "+r()(this).datepicker("getDate").getFullYear();r()("#pr_dateto").datepicker("option","minDate",e),r()(this).val(i),c(this),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_datefrom").attr("disabled",!1)}),100)},onClose:function(e){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a)}}),r()("#ra_datefrom").datepicker({showOn:"none",changeMonth:!0,changeYear:!0,yearRange:t+":"+i,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){r()("#ra_dateto").datepicker("option","minDate",e),r()(this).trigger("change")},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}}),r()("#pr_dateto").datepicker({showOn:"none",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:n,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate"),i=d[a.getMonth()]+" "+a.getDate()+", "+a.getFullYear();r()(this).val(i),c(this),r()(this).datepicker("option","defaultDate",a),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_dateto").attr("disabled",!1)}),100)},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a)}}),r()("#ra_dateto").datepicker({showOn:"none",changeMonth:!0,changeYear:!0,yearRange:t+":"+i,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}})})),r()(".filters-tags-list").on("click",(function(){r()("#pr_datefrom").datepicker("destroy"),r()("#ra_datefrom").datepicker("destroy"),r()("#pr_dateto").datepicker("destroy"),r()("#ra_dateto").datepicker("destroy");var e=[];if(r()(".year-filter > option").each((function(){e.push(r()(this).text())})),0!==e.length)var t=Math.min(...e),i=Math.max(...e);else t=0,i=0;0!==t||r().datepicker.formatDate("mm/dd/yy",new Date),r()("#pr_datefrom").datepicker({showOn:"none",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:a,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate");r()(this).datepicker("option","defaultDate",a);let i=d[r()(this).datepicker("getDate").getMonth()]+" "+r()(this).datepicker("getDate").getDate()+", "+r()(this).datepicker("getDate").getFullYear();r()("#pr_dateto").datepicker("option","minDate",e),r()(this).val(i),c(this),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_datefrom").attr("disabled",!1)}),100)},onClose:function(e){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a)}}),r()("#ra_datefrom").datepicker({showOn:"none",changeMonth:!0,changeYear:!0,yearRange:t+":"+i,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){r()("#ra_dateto").datepicker("option","minDate",e),r()(this).trigger("change")},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}}),r()("#pr_dateto").datepicker({showOn:"none",dateFormat:"MM d, yy",changeMonth:!0,changeYear:!0,defaultDate:n,showButtonPanel:!0,closeText:"Clear",onSelect:function(e,t){let a=r()(this).datepicker("getDate"),i=d[a.getMonth()]+" "+a.getDate()+", "+a.getFullYear();r()(this).val(i),c(this),r()(this).datepicker("option","defaultDate",a),r()(this).trigger("change")},onChangeMonthYear:function(e){localStorage.setItem("prevDateFocusItem",document.activeElement.className),r()(this).attr("disabled",!0),setTimeout((function(){r()("#pr_dateto").attr("disabled",!1)}),100)},onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this)),r()(this).parent().removeClass("datefield-open")},beforeShow:function(e,t){r()(this).parent().addClass("datefield-open"),r()("#ui-datepicker-div").insertAfter(r()(this).parent()),r()(this).parent().parent().css("position","initial");let a=r()(this).datepicker("option","defaultDate");a&&r()(this).datepicker("setDate",a)}}),r()("#ra_dateto").datepicker({showOn:"none",changeMonth:!0,changeYear:!0,yearRange:t+":"+i,defaultDate:new Date,showButtonPanel:!0,closeText:"Clear",onClose:function(){r()("#ui-datepicker-div").html().indexOf("ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all ui-state-hover")>-1&&(r()(this).val("").trigger("change"),f(this))}})})),"event"==r()(".filters-content").attr("data-type")&&void 0===window.ifaddtocalendar){window.ifaddtocalendar=1;var u=document,p=u.createElement("script"),h=u.getElementsByTagName("body")[0];p.type="text/javascript",p.charset="UTF-8",p.async=!0,p.src=("https:"===window.location.protocol?"https":"http")+"://addevent.com/libs/atc/1.6.1/at
1c.min.js",h.appendChild(p)}function f(e){0==r()(e).parents(".filters").find(".filters-tag").length&&(null==r()(e).parents(".filters").find("input[name=date-from]").val()&&r()(e).parents(".filters").find(".filters-clear").hide(),""==r()(e).parents(".filters").find("input[name=date-from]").val()&&""==r()(e).parents(".filters").find("input[name=date-to]").val()&&r()(e).parents(".filters").find(".filters-clear").hide())}}))}}]);
2//# sourceMappingURL=archive-short-code-cg-archive-shortcode-frontend.production.bundle.min.js.map

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.