1(globalThis.webpackChunksitebuilder_client=globalThis.webpackChunksitebuilder_client||[]).push([[8741],{512111:(t,e,i)=>{"use strict";i(944741);var s,n=i(274692),a=i.n(n),r=(i(762125),i(81694),i(79162)),o=(i(989756),i(890779),i(92116),i(972445),i(93290)),h=i(812747),d=i(797777),l=i(367131),c=i(566401),u=i(847004),g=function(t,e,i,s){var n,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(e,i,r):n(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r},v=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};class p{constructor(t,e,i,s,n,a,r,o,h,d,l,c){this.domainId=t,this.date=e,this.lang=i,this.pageId=s,this.ip=n,this.newSession=a,this.newStatsUser=r,this.statsSessionId=o,this.statsUserId=h,this.utmSource=d,this.utmMedium=l,this.utmCampaign=c,this.duration=0,this.uuid=this.generateUUID(),this.engaged=!1}get notEmptyUrl(){return(0,c.A)(this.url)?(0,o.t)("homePage").toString():this.url}get hasAllBaseParams(){return[this.domainId,this.date,this.lang,this.pageId,this.ip,this.newSession,this.newStatsUser,this.statsSessionId,this.statsUserId].every(t=>null!=t)}generateUUID(){return btoa(`${this.pageId}-${this.date}`)}static convertFromWindow(t){return new p(null==t?void 0:t.domainId,null==t?void 0:t.date,null==t?void 0:t.lang,null==t?void 0:t.pageId,null==t?void 0:t.ip,null==t?void 0:t.newSession,null==t?void 0:t.newStatsUser,null==t?void 0:t.statsSessionId,null==t?void 0:t.statsUserId,null==t?void 0:t.utmSource,null==t?void 0:t.utmMedium,null==t?void 0:t.utmCampaign)}}g([(0,u.Z)(()=>Date),v("design:type","function"==typeof(s="undefined"!=typeof Date&&Date)?s:Object)],p.prototype,"date",void 0);var w=i(48595),m=i(866026),I=i(843986),T=i(972949),f=i(992629),A=function(t,e,i,s){var n,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(e,i,r):n(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};let y=class{constructor(){this.CONTROLLER="stats"}updateDuration(t){if(!t.hasAllBaseParams)return f.resolve();const e=T.z.getUrl(this.CONTROLLER,"updateDuration",{},bowweConfig.pageLang),i=(new I.M).setLoaderMask(m.A.NO_LOADER),s=Object.assign({},t);return d.W.post(e,s,i)}registerUserDevice(t,e,i){if(0!==r.default.getCookie("screenRes").length||!t||!e||!i.hasAllBaseParams)return f.resolve();const s=T.z.getUrl(this.CONTROLLER,"registerUserDevice",{},bowweConfig.pageLang),n=(new I.M).setLoaderMask(m.A.MASK_LOADER),a=Object.assign(Object.assign({},i),{screenRes:`${t}x${e}`});return d.W.post(s,a,n)}};y=A([(0,w.Gr)()],y);var R=i(147386),E=i(374241),b=i(906561);const D=new class{constructor(){this.realtimeStatsClient=w.kL.resolve(y),this.MAX_DURATION_MS=1728e6,this.dynamicIntervals=[500,1e3,3e3,5e3,1e4,15e3,2e4,25e3,3e4,6e4,9e4,15e4],this.intervalIndex=0,this.INACTIVITY_INTERVAL=3e5,this.MAX_INACTIVE_TIME=18e5,this.isActive=!1,this.keyPressed=!1,this.startTime=0,this.totalTimeSpent=0,this.lastActivity=Date.now()}init(t){this.pageRequest=t,this.isActive=!0,this.startTime=Date.now(),this.lastActivity=Date.now(),this.intervalIndex=0,this.scheduleNextUpdate(),this.addEventListeners()}startTracking(){this.isActive||(this.startTime=Date.now(),this.isActive=!0,this.lastActivity=Date.now(),this.intervalIndex=0)}stopTracking(){this.isActive&&(this.updateTimeSpent(),this.checkEngagement(),this.isActive=!1)}updateTimeSpent(){const t=Date.now(),e=t-this.startTime;t-this.lastActivity<this.MAX_INACTIVE_TIME&&(this.totalTimeSpent=Math.min(this.totalTimeSpent+e,this.MAX_DURATION_MS))}checkEngagement(){!this.pageRequest.engaged&&this.keyPressed&&(this.pageRequest.engaged=!0)}addEventListeners(){window.addEventListener("beforeunload",this.handleBeforeUnload.bind(this)),document.addEventListener("visibilitychange",this.handleVisibilityChange.bind(this)),document.addEventListener("click",this.handleKeyEvent.bind(this)),document.addEventListener("keydown",this.handleKeyEvent.bind(this))}handleVisibilityChange(){document.hidden?this.stopTracking():this.startTracking()}handleBeforeUnload(){this.stopTracking(),this.updateDuration()}handleKeyEvent(){this.keyPressed=!0,this.checkEngagement(),this.lastActivity=Date.now(),this.isActive||(this.totalTimeSpent=0,this.startTracking())}scheduleNextUpdate(){const t=Date.now()-this.lastActivity;let e;this.isActive?(e=this.dynamicIntervals[this.intervalIndex],this.intervalIndex<this.dynamicIntervals.length-1&&(this.intervalIndex+=1)):e=t>=this.MAX_INACTIVE_TIME?this.MAX_INACTIVE_TIME:t>=this.INACTIVITY_INTERVAL?this.INACTIVITY_INTERVAL:this.dynamicIntervals[this.intervalIndex],this.updateTimeoutId=window.setTimeout(()=>{this.isActive&&(this.updateTimeSpent(),this.startTime=Date.now()),this.checkEngagement(),this.updateDuration(),this.scheduleNextUpdate()},e)}updateDuration(){this.pageRequest.date&&this.pageRequest.duration<this.totalTimeSpent&&(this.pageRequest.duration=this.totalTimeSpent,this.realtimeStatsClient.updateDuration(this.pageRequest))}};var S=i(339154);i(313442),i(674959);
1if(o.r.get(h.t,h.tc),l._.setInstance(d.W),window.$=a(),window.jQuery=a(),window.globalEventBus=S.g,D.init(p.convertFromWindow(window.pageRequest)),bowweConfig.viewMode===b.Q.VIEW&&!E.v.isTemplatePageURL(window.location.href)){w.kL.resolve(y).registerUserDevice(window.screen.width,window.screen.height,p.convertFromWindow(window.pageRequest))}R.Q.init(window.widgetParams)},972445:()=>{}},t=>{t.O(0,[5981,4692,7823,9162,7052,4193,2116,1411,3872,1694,779],()=>{return e=512111,t(t.s=e);var e});t.O()}]); 2//# sourceMappingURL=https://bowwe.preprod/static/build/showPage.6deb5135f5d1c60bacf9.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.