1"use strict";(self["webpackChunkdow_corp_ui_frontend"]=self["webpackChunkdow_corp_ui_frontend"]||[]).push([[187],{
1"./src/corp-platform/components/commerce/search/search.vue":function(e,o,t){function n(e,o,t,n,r,s){return null}t.r(o),t.d(o,{default:function(){return l}});var r=t("../../dow-platform/ui.frontend/src/dow-platform/components/core/CoreComponent.vue"),s=t("./src/store/index.js");function i(){var e=document.getElementById("corporate-search");Coveo.$$(e).on("afterInitialization",function(){var o=document.querySelector(".magic-box-clear");o.addEventListener("click",function(o){Coveo.state(e,"q",""),Coveo.executeQuery(e)});try{window.dowConsent&&"function"===typeof window.dowConsent.updateCoveoAnalytics&&window.dowConsent.updateCoveoAnalytics()}catch(t){console.log("Coveo Error:",t)}}),window.DowImage=function(e){function o(t,n,r,s){e.call(this,t,o.ID,r,s),this.type="DowImage",Coveo.Component.bindComponentToElement(t,this),this.element=t,this.options=n,this.bindings=r,this.result=s,this.element.classList.add("dow-icon"),this.result.raw.ogimage&&-1==this.result.raw.ogimage.indexOf("DOW-logo")?this.element.innerHTML='<img class="dow-image" src="'+this.result.raw.ogimage+'"/>':this.element.parentElement.classList.add("no-icon")}__extends(o,Coveo.Component),o.ID="DowImage",Coveo.Initialization.registerAutoCreateComponent(o)}(Coveo.Component),s.A.dispatch("search/fetchSearchToken",{hub:"CorporateDowComSearch"}).then(o=>{Coveo.SearchEndpoint.configureCloudV2Endpoint(o.data.org,o.data.token);var t=0;e=document.getElementById("corporate-search"),Coveo.$$(e).on("buildingQuery",function(e,o){const t=new Date,n=`${t.getFullYear()}/${c(t.getMonth()+1)}/${c(t.getDate())}`,r=`${c(t.getHours())}:${c(t.getMinutes())}:${c(t.getSeconds())}`,s=Granite.I18n.get("insert.query");document.querySelector('#corporate-search input[form="coveo-dummy-form"]').setAttribute("title",s),o.queryBuilder.advancedExpression.add(`(@commoncontenttype=="Job" AND @dow_jobenddate>${n}@${r}) OR NOT @commoncontenttype=="Job"`)}),Coveo.$$(e).on("preprocessResults",function(e,o){t=o.results.totalCount}),Coveo.$$(e).on("newResultsDisplayed",function(e,o){for(var n=document.querySelectorAll(".coveo-results-per-page-list-item-text"),r=document.querySelector(".corpSearch"),s=0;s<n.length;s++){var i="hidden-"+n[s].textContent;t>parseInt(n[s].textContent)?r.classList.remove(i):t<parseInt(n[s].textContent)&&r.classList.add(i)}}),Coveo.init(e)})}function c(e){return String(e).padStart(2,"0")}var a={extends:r.Ay,created(){i()}},d=t("./node_modules/@vue/cli-service/node_modules/vue-loader/dist/exportHelper.js");const u=(0,d.A)(a,[["render",n]]);var l=u}
1}]); 2//# sourceMappingURL=clientlib-dependencies/resources/search.d7a8eaaafaa3e6cf.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.