rkOnScreen",void 0),(0,l.gn)([L.LO],M.prototype,"hasCoachmark",void 0),(0,l.gn)([L.LO],M.prototype,"coachmarkHeight",void 0),(0,l.gn)([L.LO],M.prototype,"coachmarkName",void 0),(0,l.gn)([L.LO],M.prototype,"coachmarkPosition",void 0),(0,l.gn)([L.LO],M.prototype,"isAlwaysMode",void 0),(0,l.gn)([L.LO],M.prototype,"scrollCoachmarkDisplayed",void 0),(0,l.gn)([L.LO],M.prototype,"displayStickyPeek",void 0);var O=i(39181),N=i(13988);const w=O.d`
${(0,N.g)((e=>e.displayStickyPeek),O.d`<div id="stickyPeek"></div>`)}
`;const B=i(53046).i``,E={experienceConfigSchema:s}},90042:function(e,t,i){i.d(t,{S:function(){return s}});var n=i(33940),a=i(65135),o=i(17440),r=i(75192),c=i(26415);const s=new class{constructor(e){this.userNurturingManager=e}getAllLocalCoachmarkCampaignsByKey(e){return(0,n.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return this.sendClientLogEvent(`User's preference for local campaign ${e} could not be fetched.`),this.buildKeyErrorResponse();const t=yield this.userNurturingManager.getPreferenceSetting(e);return t&&t.value}))}getLocalCoachmarkCampaignByKeyAndName(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return this.sendClientLogEvent(`User's preference for local campaign ${e} and name ${t} could not be fetched.`),this.buildErrorResponse();const i=yield this.userNurturingManager.getPreferenceSetting(e),n=i&&i.value;return n&&n.find((e=>e&&e.name===t))}))}setLocalCoachmarkCampaignByKeyAndName(e,t,i,a){return(0,n.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return void this.sendClientLogEvent(`User's preference for local campaign key ${e} and name ${t} could not be set.`);const n=yield this.userNurturingManager.getPreferenceSetting(e),o=n&&n.value?n.value:[],r=o.find((e=>e&&e.name===t)),c=o.indexOf(r),s=r&&r.count||0,l={name:t,count:s+1,source:i,time:a||(new Date).getTime()};c>-1?o[c]=l:o.push(l),this.userNurturingManager.savePreferenceSetting(e,o)}))}clearLocalCoachmarkCampaignByKeyAndName(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){if(!(yield this.userNurturingManager.isApiAvailableToUse()))return void this.sendClientLogEvent(`User's preference for local campaign ${e} and name ${t} could not be cleared.`);const i=yield this.userNurturingManager.getPreferenceSetting(e),n=i&&i.value,a=n&&n.filter((e=>e&&e.name!==t));a&&this.userNurturingManager.savePreferenceSetting(e,a)}))}clearAllLocalCoachmarkCampaignsByKey(e){return(0,n.mG)(this,void 0,void 0,(function*(){(yield this.userNurturingManager.isApiAvailableToUse())?this.userNurturingManager.deleteKeyValueFromPSL(e):this.sendClientLogEvent(`User's preference for local campaign ${e} could not be cleared.`)}))}sendClientLogEvent(e,t){const i={message:e,type:"information",pb:Object.assign(Object.assign({},(0,c.mnt)()),{customMessage:t})};a.M0.sendClientLogEvent(i)}buildKeyErrorResponse(){return[this.buildErrorResponse(!0)]}buildErrorResponse(e=!1){const t=e?"getAllLocalCoachmarkCampaignsByKey":"clearLocalCoachmarkCampaignByKeyAndName";return{count:-1,name:r.rr.apiError,source:t,time:(new Date).getTime()}}}(o.U)},35618:function(e,t,i){i.d(t,{Ar:function(){return c},He:function(){return m},L$:function(){return u},Pg:function(){return g},VU:function(){return a},Y0:function(){return r},gn:function(){return o},rp:function(){return n},t9:function(){return d},u3:function(){return l},xG:function(){return h},xn:function(){return s}});const n="myfeed",a="OnLoadAutoScrollPromptSeen",o=760,r=300,c="OptInStickPromptLoad",s="OnLoadAutoScrollPrompt",l="OptInStickMetadata",u="OnLoadAutoScrollMetadata",m="sticky_peek",d=3,h=30,g=new Set([c,s])},53146:function(e,t,i){i.d(t,{H:function(){return v},Ie:function(){return A},Ms:function(){return S},Qb:function(){return b},WL:function(){return x},Wi:function(){return k},Wr:function(){return f},cj:function(){return P},cs:function(){return L},mX:function(){return C},oW:function(){return h},pS:function(){return g}});var n=i(33940),a=i(90042),o=i(58155),r=i(70694),c=i(65337),s=i(16517),l=i(35618),u=i(61366),m=i(65135),d=i(12884);function h(e,t){return function(e){return l.Pg.has(e)}(e)&&t<=l.gn}function g(e,t){if(!e||void 0===(null==t?void 0:t.selectedFeedDisplaySetting))return l.Ar;return e&&e.find((e=>e&&e.name===l.Ar))&&"peek"!==(null==t?void 0:t.selectedFeedDisplaySetting)?l.xn:l.Ar}function k(e,t,i,n,a){if("always"===(null==t?void 0:t.selectedFeedDisplaySetting))return!1;if(!o.c.getQueryParameterByName("vptest",(0,d.zp)())&&!i&&a<l.t9)return!1;const s=null==i?void 0:i.find((e=>e&&e.name===l.Ar)),u=null==i?void 0:i.find((e=>e&&e.name===l.xn)),m=((null==s?void 0:s.count)||0)+((null==u?void 0:u.count)||0);if(!p(s)||!p(u)||m>2)return!1;const h=innerHeight>l.gn;return!(!t||r.p.isDhpPage()||!h||n&&n.toLocaleLowerCase()!==l.rp)&&function(e,t,i){const n=(0,c.$o)().getObject(y(e));if(!n)return!0;return n.nextEligible<t&&n.timesSeen<i}(e,(new Date).getTime(),3)}function p(e){if(!e)return!0;return(new Date).getTime()>new Date(e.time+24*l.xG*60*60*1e3).getTime()}function y(e){return e===l.xn?l.L$:l.u3}function f(e){const t=y(e);let i=(0,c.$o)().getObject(t);i||(i={nextEligible:0,timesSeen:0});const n=i&&i.timesSeen+1,a=(new Date).getTime(),o=new Date(a+24*l.xG*60*60*1e3).getTime();i.timesSeen=n,i.nextEligible=o,(0,c.$o)().setObject(t,i)}function v(){let e=(0,c.$o)().getItem("spVisitsMetadata")?+(0,c.$o)().getItem("spVisitsMetadata"):0;return e++,(0,c.$o)().setItem("spVisitsMetadata",e.toString()),e}function C(e){(0,c.$o)().setItem(e,"true")}function S(){return(0,n.mG)(this,void 0,void 0,(function*(){return a.S.getAllLocalCoachmarkCampaignsByKey(l.He)}))}function T(){return(0,n.mG)(this,void 0,void 0,(function*(){yield a.S.clearAllLocalCoachmarkCampaignsByKey(l.He)}))}function b(e){if(!e)return;const t=`${e}Seen`;(0,c.$o)().getItem(t)&&m.M0.addOrUpdateTmplProperty(t,"1")}function L(e){if(!e)return;const t=`${e}Seen`;m.M0.addOrUpdateTmplProperty(t,"1")}function P(){return"1"===o.c.getQueryParameterByName("forceImageTest",(0,d.zp)())||"1"===o.c.getQueryParameterByName("vptest",(0,d.zp)())||"vp"===o.c.getQueryParameterByName("reqsrc",(0,d.zp)())}function x(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=o.c.getQueryParameterByName("clearStickyPeekPref",(0,d.zp)());e?yield function(e){return(0,n.mG)(this,void 0,void 0,(function*(){yield a.S.clearLocalCoachmarkCampaignByKeyAndName(l.He,e)}))}(e):"1"===o.c.getQueryParameterByName("clearAllStickyPeekPrefs",(0,d.zp)())&&(yield T());o.c.getQueryParameterByName("isAutoScrollTest",(0,d.zp)())&&((0,c.$o)().removeItem(l.u3),(0,c.$o)().removeItem(l.L$),yield T(),yield a.S.setLocalCoachmarkCampaignByKeyAndName(l.He,l.Ar,"ntp",1))}))}function A(){var e;return(null===(e=null===s.jG||void 0===s.jG?void 0:s.jG.CurrentRequestTargetScope)||void 0===e?void 0:e.audienceMode)===u.F.Enterprise}}}]);A
Eo