vault backup: 2026-11-06 08:29:08
This commit is contained in:
1 parent
432aaaa3dd
commit
3d71bd0088
2588 files changed
+554970
-23
No files matched your search
@@ -0,0 +1,8 @@
|
||||
!function(){"use strict";var e={5062:function(e,t,o){var a=o(2370),r=o(9247),i=o(5383);class n{static Create(e){let t=JSON.parse(atob(e));const o=[],a=new Map,n=t?.[0]?.Group;if(n){let e=n;for(const o of t)if(o){const t=o.Group;if(t&&r.ZP.IsOnPage(o.PageUrl,location.pathname)){e=t;break}}t=t.map((t=>{if(t.Group===e)return t}))}for(const e of t)if(e){const t=e.Type;t&&!a.has(t)&&(o.push(t),a.set(t,new i.Z(e.PageUrl,t,e.checkoutElements)))}return{map:a,array:o}}constructor(e){if((0,a.Z)(this,"DomainName",void 0),(0,a.Z)(this,"AllcheckoutCompletionPages",void 0),(0,a.Z)(this,"AllPageTypeArr",void 0),(0,a.Z)(this,"AllCheckoutCompletionPagesStr",void 0),(0,a.Z)(this,"IsExpressCheckoutEnabled",void 0),(0,a.Z)(this,"CheckoutPageUrl",void 0),e){this.DomainName=e.domainName,this.CheckoutPageUrl=e.checkoutPageUrl,this.IsExpressCheckoutEnabled=e.isExpressCheckoutEnabled;const t=e.allCheckoutCompletionPagesStr;if(this.AllCheckoutCompletionPagesStr=t,t){const{map:e,array:o}=n.Create(t);this.AllcheckoutCompletionPages=e,this.AllPageTypeArr=o}}}}(0,a.Z)(n,"PageTypeArr",[]),t.Z=n},5902:function(e,t,o){var a=o(2370);t.Z=class{constructor(e,t,o,r,i,n,s,c,l,d,u,m,h){(0,a.Z)(this,"Name",void 0),(0,a.Z)(this,"Type",void 0),(0,a.Z)(this,"Value",void 0),(0,a.Z)(this,"IsMandatory",void 0),(0,a.Z)(this,"Format",void 0),(0,a.Z)(this,"WaitForVisible",void 0),(0,a.Z)(this,"WaitForNotDisabled",void 0),(0,a.Z)(this,"WaitBefore",void 0),(0,a.Z)(this,"WaitAfter",void 0),(0,a.Z)(this,"WaitForNotVisible",void 0),(0,a.Z)(this,"NotAlwaysShown",void 0),(0,a.Z)(this,"DynamicFetch",void 0),(0,a.Z)(this,"ShouldValue",void 0),this.Name=e,this.Type=t,this.Value=o,this.IsMandatory=r,this.Format=i,this.WaitForVisible=n,this.WaitForNotDisabled=s,this.WaitBefore=c,this.WaitAfter=l,this.WaitForNotVisible=d,this.NotAlwaysShown=u,this.DynamicFetch=m,this.ShouldValue=h}}},5383:function(e,t,o){var a=o(2370),r=o(5902);t.Z=class{constructor(e,t,o){if((0,a.Z)(this,"PageUrl",void 0),(0,a.Z)(this,"Type",void 0),(0,a.Z)(this,"CheckoutElements",void 0),this.PageUrl=e,this.Type=t,this.CheckoutElements=new Map,o)for(const e of o)if(e){const t=e.Name;let o=e.Value;t&&this.CheckoutElements.set(t,new r.Z(t,e.Type,o,e.IsMandatory,e.Format,e.WaitForVisible,e.WaitForNotDisabled,e.WaitBefore,e.WaitAfter,e.WaitForNotVisble,e.NotAlwaysShown,e.DynamicFetch,e.ShouldValue))}}}},1775:function(e,t,o){o.d(t,{ZQ:function(){return S},tW:function(){return u},JL:function(){return C},BK:function(){return h},YO:function(){return m},st:function(){return f},Oh:function(){return g}});var a=o(4872),r=o(1656),i=o(3557),n=o(6529),s=JSON.parse('{"Vf":{"I":{"logBlockRules":[{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"ProductTrackingOutOfStockExtraction"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"PageHandlerInfo"},{"dotPathForJsonData":false,"dotPath":"Message","value":"resize_iframe"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"Status","value":"Popup origination blocked due to feature specific logic"},{"dotPathForJsonData":false,"dotPath":"Message","value":"BLOCKED POPUPORIGINATION"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":false,"dotPath":"EventType","value":"CheckoutPageValidation"},{"dotPathForJsonData":false,"dotPath":"Message","value":"Checkout Page is Invalid - Invalid Selectors"}]}]}}}');let c=function(e){return e.Vulnerable="Vulnerable",e.Campaign="Campaign",e}({});const l=new Map([[c.Vulnerable,a.H.shoppingCohortsVulnerable],[c.Campaign,a.H.shoppingCohortsReclaimed]]);function d(e){if(!r.R.isExperimentActive(e))return[];try{const t=r.R.getMultipleVariants(e);let o=r.R.getVariantStringValue(t,"allowedCohortIds","");return""===o&&(o=r.R.getVariantName(e)||""),""===o?[]:o.split(",").map((e=>parseInt(e)))}catch{return[]}}function u(){const e=new Set([]);for(const t of l.values())d(t)?.forEach((t=>e.add(t)));return e}function m(e){const t={userSettings:e};for(const[e,o]of l)t[`allowedCohortsFor${e}`]=d(o);return t}function h(e){const t=new Set;if(e?.cohortsConfig)for(const o of e.cohortsConfig)if(void 0!==o.cohortType){const e=l.get(o.cohortType);void 0===e||t.has(e)||t.add(e)}return[...t]}function p(e,t){if(t?.cohortsConfig)for(const o of t.cohortsConfig)if(void 0!==o.enabledPopupOriginations&&void 0!==o.cohortId&&e.has(o.cohortId))return o.enabledPopupOriginations}function g(e,t,o){const a=p(t,o);return void 0===a||a.findIndex((t=>t===e))>-1}function S(e,t,o,a){const r=p(t,a);if(void 0===r)return!0;const s=(void 0===o?[]:o).map((e=>(0,n.Pw)(e)||i.sR.AUTO_SHOW_COUPONS_CHECKOUT));0===s.length&&s.push(i.sR.AUTO_SHOW_COUPONS_CHECKOUT);const c=s.every((e=>r.includes(e)));if(!c){const t={pageValidations:o,popupOriginations:s,userSettings:a};e(JSON.stringify(t))}return c}function C(){return s.Vf.I}function f(e,t,o){return o?.logBlockRules?.some((o=>function(e,t,o){return!!(o?.blockedByMatchingKeyValuePairs&&o.blockedByMatchingKeyValLine truncated
|
||||
<path opacity="0.4" d="M5.4 6.6C5.4 6.26863 5.66863 6 6 6C6.33137 6 6.6 6.26863 6.6 6.6V8.4C6.6 8.73137 6.33137 9 6 9C5.66863 9 5.4 8.73137 5.4 8.4V6.6ZM6 3.3C5.50294 3.3 5.1 3.70294 5.1 4.2C5.1 4.69706 5.50294 5.1 6 5.1C6.49706 5.1 6.9 4.69706 6.9 4.2C6.9 3.70294 6.49706 3.3 6 3.3ZM0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6ZM6 1.2C3.34903 1.2 1.2 3.34903 1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2Z" fill="black" fill-opacity="0.83"/>
|
||||
</svg>`}getCommunityInsightsIcon(){return ue.Z.getTrustedHTML`<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path
|
||||
d="M2.25 7.09375C2.25 6.75846 2.28906 6.42806 2.36719 6.10254C2.44531 5.77702 2.56738 5.46615 2.7334 5.16992C2.75944 5.12435 2.78548 5.07715 2.81152 5.02832C2.83757 4.97949 2.86849 4.93392 2.9043 4.8916C2.9401 4.84603 2.97754 4.81185 3.0166 4.78906C3.05566 4.76628 3.10612 4.75326 3.16797 4.75C3.22005 4.75 3.27051 4.76302 3.31934 4.78906C3.36816 4.8151 3.4056 4.85091 3.43164 4.89648L4.08105 5.95605C4.11035 6.00488 4.14941 6.04232 4.19824 6.06836C4.24707 6.0944 4.30241 6.10905 4.36426 6.1123C4.47493 6.1123 4.5612 6.07161 4.62305 5.99023C4.6849 5.90885 4.71745 5.81608 4.7207 5.71191C4.7207 5.66634 4.71582 5.62565 4.70605 5.58984C4.69629 5.55404 4.68164 5.51497 4.66211 5.47266C4.52865 5.1862 4.4196 4.90462 4.33496 4.62793C4.25033 4.35124 4.20801 4.05013 4.20801 3.72461C4.20801 3.31445 4.27637 2.95475 4.41309 2.64551C4.5498 2.33626 4.74023 2.07096 4.98438 1.84961C5.22852 1.62826 5.51335 1.44922 5.83887 1.3125C6.16439 1.17578 6.5127 1.07324 6.88379 1.00488C6.89681 1.00163 6.91471 1 6.9375 1C7.01237 1 7.0791 1.02441 7.1377 1.07324C7.21256 1.13835 7.25 1.2181 7.25 1.3125C7.25 1.80078 7.33301 2.26628 7.49902 2.70898C7.66504 3.15169 7.89453 3.56673 8.1875 3.9541C8.36654 4.18848 8.5472 4.42448 8.72949 4.66211C8.91178 4.89974 9.07943 5.14714 9.23242 5.4043C9.38542 5.66146 9.50911 5.92839 9.60352 6.20508C9.69792 6.48177 9.74675 6.778 9.75 7.09375C9.75 7.44206 9.70768 7.7806 9.62305 8.10938C9.53841 8.43815 9.41471 8.7474 9.25195 9.03711C9.08919 9.32682 8.89714 9.5905 8.67578 9.82812C8.45443 10.0658 8.20378 10.2725 7.92383 10.4482C7.64388 10.624 7.34277 10.7591 7.02051 10.8535C6.69824 10.9479 6.35807 10.9967 6 11C5.64193 11 5.30176 10.9528 4.97949 10.8584C4.65723 10.764 4.35775 10.6289 4.08105 10.4531C3.80436 10.2773 3.55208 10.0706 3.32422 9.83301C3.09635 9.59538 2.9043 9.33008 2.74805 9.03711C2.5918 8.74414 2.46973 8.4349 2.38184 8.10938C2.29395 7.78385 2.25 7.44531 2.25 7.09375Z"
|
||||
fill="#D63600"
|
||||
style="fill:#D63600;fill:color(display-p3 0.8400 0.2100 0.0000);fill-opacity:1;"/>
|
||||
</svg>`}},he=o(4380);o(2265),o(4959),Object.freeze({prefix:"edgeshp",shadowRootMode:"open",registry:customElements});var pe=o(1775);o(815);var ge=o(2388);o(5255),o(2977);var Se=o(1687);function Ce(e){return[d.sR.AUTO_SHOW_REBATES_ORGANIC,d.sR.AUTO_SHOW_REBATES_ORGANIC_NEW,d.sR.AUTO_SHOW_REBATES_CHECKOUT,d.sR.AUTO_SHOW_REBATES_PDP].includes(e)}var fe=class{constructor(){(0,f.Z)(this,"value",void 0),(0,f.Z)(this,"id",void 0),(0,f.Z)(this,"description",void 0),(0,f.Z)(this,"brand",void 0),(0,f.Z)(this,"expiryDate",void 0),(0,f.Z)(this,"minQty",void 0),(0,f.Z)(this,"source",void 0),(0,f.Z)(this,"productUrl",void 0),(0,f.Z)(this,"productId",void 0),(0,f.Z)(this,"domain",void 0),(0,f.Z)(this,"isSpbOverlay",void 0),(0,f.Z)(this,"renderedPageType",void 0),(0,f.Z)(this,"quotientProductDetails",void 0),(0,f.Z)(this,"spbProductDetails",void 0),(0,f.Z)(this,"pcbProductDetails",void 0)}},be=o(7550),Ae=class{constructor(e,t){(0,f.Z)(this,"flyoutData",void 0),(0,f.Z)(this,"commonAssets",void 0),(0,f.Z)(this,"cashbackAssets",void 0),this.flyoutData=e,this.commonAssets=t,this.cashbackAssets=new me}styleDefaultState(e,t){e&&(e.disabled=!1,e.appearance="accent",e.textContent=t,e.setAttribute("aria-live","assertive"))}styleSeeMoreButton(e,t){const o=(0,le.Ux)("DIV");o.style.display="inline-block",o.style.paddingLeft="10px",o.style.verticalAlign="middle",o.style.paddingBottom="3px",o.innerHTML=this.commonAssets.getCaretDownIcon(),e.textContent=t?this.flyoutData.strings.cbOfferSeeLessButtonTitle:this.flyoutData.strings.cbOfferDetailsButtonTitle,t&&(o.style.transform="rotate(180deg)",o.style.paddingRight="10px",o.style.paddingLeft="0px"),e.appendChild(o)}styleProcessingState(e){const t=(0,le.Ux)("fluent-progress-ring",{id:"cashbackActivationProgress"});if(t.style.width="17px",t.style.height="17px",t.style.margin="0px",t.style.stroke="white",t.slot="start",t.setAttribute("aria-hidden","true"),e&&(e.textContent=this.flyoutData.strings.cbProcessing,e.style.backgroundColor="#0656F8",e.style.color="#FFFFFF",e.setAttribute("aria-live","assertive"),e.appendChild(t),(0,C.ru)(this.flyoutData))){e.textContent="",e.appendChild(t),e.style.cursor="default";const o=e.shadowRoot?.querySelector(".control");o&&(o.style.background="unset !important")}}styleActivatedState(e){const t=this.flyoutData.common.shopping.querySelector("#divErrorCashbackActivation");if(t&&t.remove(),e){e.style.backgroundColor="unset";const t=e.querySelector("fluent-progress-ring");t&&t.remove();const o=(0,le.Ux)("DIV");o.innerHTML=this.commonAssets.getGreenCheck(),o.slot="start",o.setAttribute("aria-hidden","true"),o.style.display="flex",o.style.alignItems="center",e.classList.add("activated");{const t=(0,le.Ux)("p");t.className="activatedText";const o=this.flyoutData.strings.cbActivatedButton;t.textContent=o,e.title=o,e.textContent="",e.appendChild(t)}e.appendChild(o)}}renderErrorState(e,t,o){if(this.flyoutData.common.shopping.querySelector("#divErrorCashbackActivation"))return;const a=(0,le.Ux)("DIV",{style:"display: flex; flex-direction: row;"});a.id="divErrorCashbackActivation";const r=(0,le.Ux)("DIV",{style:"align-self: center;"});r.innerHTML=this.cashbackAssets.getErrorIcon(),r.setAttribute("aria-label","hidden");const i=(0,le.Ux)("P");i.className="txtMedium",i.textContent=o??this.flyoutData.strings.cbErrorMessage,i.setAttribute("role","alert"),this.flyoutData.dataStoreModule.CashBackData?.shouldRenderCashBackNotification&&(i.style.fontSize="12px"),a.appendChild(r),a.appendChild(i),"actions"===t?(a.slot="header-content",this.flyoutData.common.shopping.prepend(a)):e&&e.parentElement&&e.parentElement.prepend(a)}},Pe=class{constructor(e,t,o,a){(0,f.Z)(this,"telemetryUtilities",void 0),(0,f.Z)(this,"flyoutData",void 0),(0,f.Z)(this,"pageHandlerModule",void 0),(0,f.Z)(this,"logModule",void 0),this.telemetryUtilities=e,this.flyoutData=t,this.pageHandlerModule=o,this.logModule=a}recordCashbackButtonClick(e,t,o,a,r,i,s){const c=this.createClickData(e,t,o,o.estimatedCashbackData);this.pageHandlerModule.RecordAsUserAction(a),this.pageHandlerModule.RecordAsUserEngagement(r,i),this.logModule.LogInfoEvent(n.R.ButtonClick,s,c,ie.g.CouponImpressionId)}recordCashBackOfferDetailsButtonClick(e,t){const o=t?"User clicked on cashback categories see less":"User clicked on cashback offer details",a=new ae.Z(n.$S.CashbackInfoOfferDetails,this.telemetryUtilities.setContentViewed(e));this.logModule.LogInfoEvent(n.R.ButtonClick,o,a,ie.g.CouponImpressionId),t?this.pageHandlerModule.RecordAsUserEngagement(se.FV.CASHBACK_MODULE_VIEW_OFFER_DETAILS_SEELESS_CLICK,this.flyoutData.common.popupOrigination):this.pageHandlerModule.RecordAsUserEngagement(se.FV.CASHBACK_MODULE_VIEW_OFFER_DETAILS_CLICK,this.flyoutData.common.popupOrigination)}recordDelayedCashbackActivateButton(e){const t=e?"User clicked on delayed Cashback Activate Button Ok":"User clicked on delayed Cashback Activate Button Sign up",o=this.createClickData(n.$S.ActivateCashBack,$.ModuleNames.CASHBACK_DELAYED_ENROLLMENT,this.flyouLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e={5062:function(e,t,o){var r=o(2370),a=o(9247),i=o(5383);class n{static Create(e){let t=JSON.parse(atob(e));const o=[],r=new Map,n=t?.[0]?.Group;if(n){let e=n;for(const o of t)if(o){const t=o.Group;if(t&&a.ZP.IsOnPage(o.PageUrl,location.pathname)){e=t;break}}t=t.map((t=>{if(t.Group===e)return t}))}for(const e of t)if(e){const t=e.Type;t&&!r.has(t)&&(o.push(t),r.set(t,new i.Z(e.PageUrl,t,e.checkoutElements)))}return{map:r,array:o}}constructor(e){if((0,r.Z)(this,"DomainName",void 0),(0,r.Z)(this,"AllcheckoutCompletionPages",void 0),(0,r.Z)(this,"AllPageTypeArr",void 0),(0,r.Z)(this,"AllCheckoutCompletionPagesStr",void 0),(0,r.Z)(this,"IsExpressCheckoutEnabled",void 0),(0,r.Z)(this,"CheckoutPageUrl",void 0),e){this.DomainName=e.domainName,this.CheckoutPageUrl=e.checkoutPageUrl,this.IsExpressCheckoutEnabled=e.isExpressCheckoutEnabled;const t=e.allCheckoutCompletionPagesStr;if(this.AllCheckoutCompletionPagesStr=t,t){const{map:e,array:o}=n.Create(t);this.AllcheckoutCompletionPages=e,this.AllPageTypeArr=o}}}}(0,r.Z)(n,"PageTypeArr",[]),t.Z=n},5902:function(e,t,o){var r=o(2370);t.Z=class{constructor(e,t,o,a,i,n,s,c,l,d,u,m,h){(0,r.Z)(this,"Name",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"Value",void 0),(0,r.Z)(this,"IsMandatory",void 0),(0,r.Z)(this,"Format",void 0),(0,r.Z)(this,"WaitForVisible",void 0),(0,r.Z)(this,"WaitForNotDisabled",void 0),(0,r.Z)(this,"WaitBefore",void 0),(0,r.Z)(this,"WaitAfter",void 0),(0,r.Z)(this,"WaitForNotVisible",void 0),(0,r.Z)(this,"NotAlwaysShown",void 0),(0,r.Z)(this,"DynamicFetch",void 0),(0,r.Z)(this,"ShouldValue",void 0),this.Name=e,this.Type=t,this.Value=o,this.IsMandatory=a,this.Format=i,this.WaitForVisible=n,this.WaitForNotDisabled=s,this.WaitBefore=c,this.WaitAfter=l,this.WaitForNotVisible=d,this.NotAlwaysShown=u,this.DynamicFetch=m,this.ShouldValue=h}}},5383:function(e,t,o){var r=o(2370),a=o(5902);t.Z=class{constructor(e,t,o){if((0,r.Z)(this,"PageUrl",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"CheckoutElements",void 0),this.PageUrl=e,this.Type=t,this.CheckoutElements=new Map,o)for(const e of o)if(e){const t=e.Name;let o=e.Value;t&&this.CheckoutElements.set(t,new a.Z(t,e.Type,o,e.IsMandatory,e.Format,e.WaitForVisible,e.WaitForNotDisabled,e.WaitBefore,e.WaitAfter,e.WaitForNotVisble,e.NotAlwaysShown,e.DynamicFetch,e.ShouldValue))}}}},1775:function(e,t,o){o.d(t,{ZQ:function(){return p},tW:function(){return u},JL:function(){return g},st:function(){return S},Oh:function(){return h}});var r=o(4872),a=o(1656),i=o(3557),n=o(6529),s=JSON.parse('{"Vf":{"I":{"logBlockRules":[{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"ProductTrackingOutOfStockExtraction"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"PageHandlerInfo"},{"dotPathForJsonData":false,"dotPath":"Message","value":"resize_iframe"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"Status","value":"Popup origination blocked due to feature specific logic"},{"dotPathForJsonData":false,"dotPath":"Message","value":"BLOCKED POPUPORIGINATION"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":false,"dotPath":"EventType","value":"CheckoutPageValidation"},{"dotPathForJsonData":false,"dotPath":"Message","value":"Checkout Page is Invalid - Invalid Selectors"}]}]}}}');let c=function(e){return e.Vulnerable="Vulnerable",e.Campaign="Campaign",e}({});const l=new Map([[c.Vulnerable,r.H.shoppingCohortsVulnerable],[c.Campaign,r.H.shoppingCohortsReclaimed]]);function d(e){if(!a.R.isExperimentActive(e))return[];try{const t=a.R.getMultipleVariants(e);let o=a.R.getVariantStringValue(t,"allowedCohortIds","");return""===o&&(o=a.R.getVariantName(e)||""),""===o?[]:o.split(",").map((e=>parseInt(e)))}catch{return[]}}function u(){const e=new Set([]);for(const t of l.values())d(t)?.forEach((t=>e.add(t)));return e}function m(e,t){if(t?.cohortsConfig)for(const o of t.cohortsConfig)if(void 0!==o.enabledPopupOriginations&&void 0!==o.cohortId&&e.has(o.cohortId))return o.enabledPopupOriginations}function h(e,t,o){const r=m(t,o);return void 0===r||r.findIndex((t=>t===e))>-1}function p(e,t,o,r){const a=m(t,r);if(void 0===a)return!0;const s=(void 0===o?[]:o).map((e=>(0,n.Pw)(e)||i.sR.AUTO_SHOW_COUPONS_CHECKOUT));0===s.length&&s.push(i.sR.AUTO_SHOW_COUPONS_CHECKOUT);const c=s.every((e=>a.includes(e)));if(!c){const t={pageValidations:o,popupOriginations:s,userSettings:r};e(JSON.stringify(t))}return c}function g(){return s.Vf.I}function S(e,t,o){return o?.logBlockRules?.some((o=>function(e,t,o){return!!(o?.blockedByMatchingKeyValuePairs&&o.blockedByMatchingKeyValuePairs.length>0)&&o.blockedByMatchingKeyValuePairs.every((o=>function(e,t,o){try{if(!o||""===o)throw"Invalid Condition - no value to match";if(!e||""===e)throw"Invalid Condition - no dotPath given";const r=e.split(".").reverse();let a=t;for(;r.length>0;){const e=r.pop();if("object"!=typeof a||!a?.hasOwnProperty(e))return!1;Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e={5062:function(e,t,o){var r=o(2370),a=o(9247),i=o(5383);class n{static Create(e){let t=JSON.parse(atob(e));const o=[],r=new Map,n=t?.[0]?.Group;if(n){let e=n;for(const o of t)if(o){const t=o.Group;if(t&&a.ZP.IsOnPage(o.PageUrl,location.pathname)){e=t;break}}t=t.map((t=>{if(t.Group===e)return t}))}for(const e of t)if(e){const t=e.Type;t&&!r.has(t)&&(o.push(t),r.set(t,new i.Z(e.PageUrl,t,e.checkoutElements)))}return{map:r,array:o}}constructor(e){if((0,r.Z)(this,"DomainName",void 0),(0,r.Z)(this,"AllcheckoutCompletionPages",void 0),(0,r.Z)(this,"AllPageTypeArr",void 0),(0,r.Z)(this,"AllCheckoutCompletionPagesStr",void 0),(0,r.Z)(this,"IsExpressCheckoutEnabled",void 0),(0,r.Z)(this,"CheckoutPageUrl",void 0),e){this.DomainName=e.domainName,this.CheckoutPageUrl=e.checkoutPageUrl,this.IsExpressCheckoutEnabled=e.isExpressCheckoutEnabled;const t=e.allCheckoutCompletionPagesStr;if(this.AllCheckoutCompletionPagesStr=t,t){const{map:e,array:o}=n.Create(t);this.AllcheckoutCompletionPages=e,this.AllPageTypeArr=o}}}}(0,r.Z)(n,"PageTypeArr",[]),t.Z=n},5902:function(e,t,o){var r=o(2370);t.Z=class{constructor(e,t,o,a,i,n,s,c,l,d,u,m,h){(0,r.Z)(this,"Name",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"Value",void 0),(0,r.Z)(this,"IsMandatory",void 0),(0,r.Z)(this,"Format",void 0),(0,r.Z)(this,"WaitForVisible",void 0),(0,r.Z)(this,"WaitForNotDisabled",void 0),(0,r.Z)(this,"WaitBefore",void 0),(0,r.Z)(this,"WaitAfter",void 0),(0,r.Z)(this,"WaitForNotVisible",void 0),(0,r.Z)(this,"NotAlwaysShown",void 0),(0,r.Z)(this,"DynamicFetch",void 0),(0,r.Z)(this,"ShouldValue",void 0),this.Name=e,this.Type=t,this.Value=o,this.IsMandatory=a,this.Format=i,this.WaitForVisible=n,this.WaitForNotDisabled=s,this.WaitBefore=c,this.WaitAfter=l,this.WaitForNotVisible=d,this.NotAlwaysShown=u,this.DynamicFetch=m,this.ShouldValue=h}}},5383:function(e,t,o){var r=o(2370),a=o(5902);t.Z=class{constructor(e,t,o){if((0,r.Z)(this,"PageUrl",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"CheckoutElements",void 0),this.PageUrl=e,this.Type=t,this.CheckoutElements=new Map,o)for(const e of o)if(e){const t=e.Name;let o=e.Value;t&&this.CheckoutElements.set(t,new a.Z(t,e.Type,o,e.IsMandatory,e.Format,e.WaitForVisible,e.WaitForNotDisabled,e.WaitBefore,e.WaitAfter,e.WaitForNotVisble,e.NotAlwaysShown,e.DynamicFetch,e.ShouldValue))}}}},1775:function(e,t,o){o.d(t,{ZQ:function(){return p},tW:function(){return u},JL:function(){return g},st:function(){return S},Oh:function(){return h}});var r=o(4872),a=o(1656),i=o(3557),n=o(6529),s=JSON.parse('{"Vf":{"I":{"logBlockRules":[{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"ProductTrackingOutOfStockExtraction"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"PageHandlerInfo"},{"dotPathForJsonData":false,"dotPath":"Message","value":"resize_iframe"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"Status","value":"Popup origination blocked due to feature specific logic"},{"dotPathForJsonData":false,"dotPath":"Message","value":"BLOCKED POPUPORIGINATION"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":false,"dotPath":"EventType","value":"CheckoutPageValidation"},{"dotPathForJsonData":false,"dotPath":"Message","value":"Checkout Page is Invalid - Invalid Selectors"}]}]}}}');let c=function(e){return e.Vulnerable="Vulnerable",e.Campaign="Campaign",e}({});const l=new Map([[c.Vulnerable,r.H.shoppingCohortsVulnerable],[c.Campaign,r.H.shoppingCohortsReclaimed]]);function d(e){if(!a.R.isExperimentActive(e))return[];try{const t=a.R.getMultipleVariants(e);let o=a.R.getVariantStringValue(t,"allowedCohortIds","");return""===o&&(o=a.R.getVariantName(e)||""),""===o?[]:o.split(",").map((e=>parseInt(e)))}catch{return[]}}function u(){const e=new Set([]);for(const t of l.values())d(t)?.forEach((t=>e.add(t)));return e}function m(e,t){if(t?.cohortsConfig)for(const o of t.cohortsConfig)if(void 0!==o.enabledPopupOriginations&&void 0!==o.cohortId&&e.has(o.cohortId))return o.enabledPopupOriginations}function h(e,t,o){const r=m(t,o);return void 0===r||r.findIndex((t=>t===e))>-1}function p(e,t,o,r){const a=m(t,r);if(void 0===a)return!0;const s=(void 0===o?[]:o).map((e=>(0,n.Pw)(e)||i.sR.AUTO_SHOW_COUPONS_CHECKOUT));0===s.length&&s.push(i.sR.AUTO_SHOW_COUPONS_CHECKOUT);const c=s.every((e=>a.includes(e)));if(!c){const t={pageValidations:o,popupOriginations:s,userSettings:r};e(JSON.stringify(t))}return c}function g(){return s.Vf.I}function S(e,t,o){return o?.logBlockRules?.some((o=>function(e,t,o){return!!(o?.blockedByMatchingKeyValuePairs&&o.blockedByMatchingKeyValuePairs.length>0)&&o.blockedByMatchingKeyValuePairs.every((o=>function(e,t,o){try{if(!o||""===o)throw"Invalid Condition - no value to match";if(!e||""===e)throw"Invalid Condition - no dotPath given";const r=e.split(".").reverse();let a=t;for(;r.length>0;){const e=r.pop();if("object"!=typeof a||!a?.hasOwnProperty(e))return!1;Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e={5062:function(e,t,o){var r=o(2370),a=o(9247),i=o(5383);class n{static Create(e){let t=JSON.parse(atob(e));const o=[],r=new Map,n=t?.[0]?.Group;if(n){let e=n;for(const o of t)if(o){const t=o.Group;if(t&&a.ZP.IsOnPage(o.PageUrl,location.pathname)){e=t;break}}t=t.map((t=>{if(t.Group===e)return t}))}for(const e of t)if(e){const t=e.Type;t&&!r.has(t)&&(o.push(t),r.set(t,new i.Z(e.PageUrl,t,e.checkoutElements)))}return{map:r,array:o}}constructor(e){if((0,r.Z)(this,"DomainName",void 0),(0,r.Z)(this,"AllcheckoutCompletionPages",void 0),(0,r.Z)(this,"AllPageTypeArr",void 0),(0,r.Z)(this,"AllCheckoutCompletionPagesStr",void 0),(0,r.Z)(this,"IsExpressCheckoutEnabled",void 0),(0,r.Z)(this,"CheckoutPageUrl",void 0),e){this.DomainName=e.domainName,this.CheckoutPageUrl=e.checkoutPageUrl,this.IsExpressCheckoutEnabled=e.isExpressCheckoutEnabled;const t=e.allCheckoutCompletionPagesStr;if(this.AllCheckoutCompletionPagesStr=t,t){const{map:e,array:o}=n.Create(t);this.AllcheckoutCompletionPages=e,this.AllPageTypeArr=o}}}}(0,r.Z)(n,"PageTypeArr",[]),t.Z=n},5902:function(e,t,o){var r=o(2370);t.Z=class{constructor(e,t,o,a,i,n,s,c,l,d,u,m,h){(0,r.Z)(this,"Name",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"Value",void 0),(0,r.Z)(this,"IsMandatory",void 0),(0,r.Z)(this,"Format",void 0),(0,r.Z)(this,"WaitForVisible",void 0),(0,r.Z)(this,"WaitForNotDisabled",void 0),(0,r.Z)(this,"WaitBefore",void 0),(0,r.Z)(this,"WaitAfter",void 0),(0,r.Z)(this,"WaitForNotVisible",void 0),(0,r.Z)(this,"NotAlwaysShown",void 0),(0,r.Z)(this,"DynamicFetch",void 0),(0,r.Z)(this,"ShouldValue",void 0),this.Name=e,this.Type=t,this.Value=o,this.IsMandatory=a,this.Format=i,this.WaitForVisible=n,this.WaitForNotDisabled=s,this.WaitBefore=c,this.WaitAfter=l,this.WaitForNotVisible=d,this.NotAlwaysShown=u,this.DynamicFetch=m,this.ShouldValue=h}}},5383:function(e,t,o){var r=o(2370),a=o(5902);t.Z=class{constructor(e,t,o){if((0,r.Z)(this,"PageUrl",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"CheckoutElements",void 0),this.PageUrl=e,this.Type=t,this.CheckoutElements=new Map,o)for(const e of o)if(e){const t=e.Name;let o=e.Value;t&&this.CheckoutElements.set(t,new a.Z(t,e.Type,o,e.IsMandatory,e.Format,e.WaitForVisible,e.WaitForNotDisabled,e.WaitBefore,e.WaitAfter,e.WaitForNotVisble,e.NotAlwaysShown,e.DynamicFetch,e.ShouldValue))}}}},1775:function(e,t,o){o.d(t,{ZQ:function(){return p},tW:function(){return u},JL:function(){return g},st:function(){return S},Oh:function(){return h}});var r=o(4872),a=o(1656),i=o(3557),n=o(6529),s=JSON.parse('{"Vf":{"I":{"logBlockRules":[{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"ProductTrackingOutOfStockExtraction"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"PageHandlerInfo"},{"dotPathForJsonData":false,"dotPath":"Message","value":"resize_iframe"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"Status","value":"Popup origination blocked due to feature specific logic"},{"dotPathForJsonData":false,"dotPath":"Message","value":"BLOCKED POPUPORIGINATION"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":false,"dotPath":"EventType","value":"CheckoutPageValidation"},{"dotPathForJsonData":false,"dotPath":"Message","value":"Checkout Page is Invalid - Invalid Selectors"}]}]}}}');let c=function(e){return e.Vulnerable="Vulnerable",e.Campaign="Campaign",e}({});const l=new Map([[c.Vulnerable,r.H.shoppingCohortsVulnerable],[c.Campaign,r.H.shoppingCohortsReclaimed]]);function d(e){if(!a.R.isExperimentActive(e))return[];try{const t=a.R.getMultipleVariants(e);let o=a.R.getVariantStringValue(t,"allowedCohortIds","");return""===o&&(o=a.R.getVariantName(e)||""),""===o?[]:o.split(",").map((e=>parseInt(e)))}catch{return[]}}function u(){const e=new Set([]);for(const t of l.values())d(t)?.forEach((t=>e.add(t)));return e}function m(e,t){if(t?.cohortsConfig)for(const o of t.cohortsConfig)if(void 0!==o.enabledPopupOriginations&&void 0!==o.cohortId&&e.has(o.cohortId))return o.enabledPopupOriginations}function h(e,t,o){const r=m(t,o);return void 0===r||r.findIndex((t=>t===e))>-1}function p(e,t,o,r){const a=m(t,r);if(void 0===a)return!0;const s=(void 0===o?[]:o).map((e=>(0,n.Pw)(e)||i.sR.AUTO_SHOW_COUPONS_CHECKOUT));0===s.length&&s.push(i.sR.AUTO_SHOW_COUPONS_CHECKOUT);const c=s.every((e=>a.includes(e)));if(!c){const t={pageValidations:o,popupOriginations:s,userSettings:r};e(JSON.stringify(t))}return c}function g(){return s.Vf.I}function S(e,t,o){return o?.logBlockRules?.some((o=>function(e,t,o){return!!(o?.blockedByMatchingKeyValuePairs&&o.blockedByMatchingKeyValuePairs.length>0)&&o.blockedByMatchingKeyValuePairs.every((o=>function(e,t,o){try{if(!o||""===o)throw"Invalid Condition - no value to match";if(!e||""===e)throw"Invalid Condition - no dotPath given";const r=e.split(".").reverse();let a=t;for(;r.length>0;){const e=r.pop();if("object"!=typeof a||!a?.hasOwnProperty(e))return!1;Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e={d:function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}};function t(e){return!e||!e.trim()}e.d({},{d2:function(){return re}});let i=function(e){return e.Opal="Opal",e.Extension="Extension",e.SafariExtension="SafariExtension",e.ChromeExtension="ChromeExtension",e.SafariIOSExtension="SafariIOSExtension",e.Edge="Edge",e.EdgeMobile="EdgeMobile",e.Sapphire="Sapphire",e.RBC="RBC",e.EdgeAndroid="EdgeAndroid",e.EdgeiOS="EdgeiOS",e.EdgeDiscover="EdgeDiscover",e}({});i.EdgeMobile,i.EdgeAndroid,i.EdgeiOS;i.Edge;let r=function(e){return e.ORDERED="Ordered",e.SHIPPED="Shipped",e.DELIVERED="Delivered",e.RETURNED="Returned",e.CANCELED="Canceled",e.ERROR="Error",e}({});new Set(["amazon.com","amazon.ca","amazon.co.uk","amazon.co.jp","alibaba.com"]),new Map(Object.entries({"etsy.com":"receipt_id","target.com":"referenceId","tmall.com":"bizOrderId"}));let n=function(e){return e.DELIVERED_REGEX="(delivered|配達しました|已完成|交易成功)",e.SHIPPED_REGEX="(arriv|(^((?!not).)*ship)|到着|正在出库)",e.RETURNED_REGEX="(return|戻る|返金)",e.CANCELED_REGEX="(cancel|closed|キャンセル|已取消|交易关闭)",e}({});const o="COMPONENT_TO_FOCUS_IN_SHORELINE";Object.keys({"bestbuy.com":{policyDays:15,supportPageUrl:"https://www.bestbuy.com/site/help-topics/price-match-guarantee/pcmcat290300050002.c?id=pcmcat290300050002"},"costco.com":{policyDays:30,supportPageUrl:"https://customerservice.costco.com/app/answers/detail/a_id/628/~/price-adjustment---costco.com-orders",useCartAtPathname:"/checkoutcartdisplayview"},"kohls.com":{policyDays:14,supportPageUrl:"https://cs.kohls.com/app/answers/detail/a_id/90/~/price-match-policy"},"target.com":{policyDays:14,supportPageUrl:"https://help.target.com/help/subcategoryarticle?childcat=Price+Match+Guarantee&parentcat=Policies+%26+Guidelines&searchQuery=search+help",useCartAtPathname:"/cart"},"dickssportinggoods.com":{policyDays:14,supportPageUrl:"https://www.dickssportinggoods.com/s/price-match-policy",useCartAtPathname:"/orderitemdisplay"},"jcpenney.com":{policyDays:14,supportPageUrl:"https://www.jcpenney.com/m/customer-service/our-lowest-price-guarantee"},"macys.com":{policyDays:10,supportPageUrl:"https://customerservice-macys.com/articles/how-can-i-get-a-price-adjustment",useCartAtPathname:"/my-bag",hasCsrError:!0},"ashleyfurniture.com":{policyDays:30,supportPageUrl:"https://www.ashleyfurniture.com/price-match/"},"gap.com":{policyDays:14,supportPageUrl:"https://www.gap.com/customerService/info.do?cid=1192378"},"staples.com":{policyDays:14,supportPageUrl:"https://www.staples.com/sbd/cre/marketing/pmg/index.html"}});let s=null;const a="test-shopping-localstorage";function p(e){let t=null;return function(){try{if(null!==s)return s;"undefined"!=typeof window&&window?.localStorage&&(window.localStorage.setItem(a,a),window.localStorage.getItem(a),window.localStorage.removeItem(a),s=!0)}catch(e){s=!1}return s}()&&(t=window.localStorage.getItem(e)),t}function c(e,t){try{if(null!=(i=e)&&i.length>0&&"null"!==i){const i=e.split(/,(?![^\[\]{}()]*[\]})])/),r=[".*","(.*)",".+","(.+)","^.*$","^(.*)$","^.+$","^(.+)$"];for(const e of i){const i=e.trim();if(!r.includes(i)&&i&&new RegExp(i).test(t.toLowerCase()))return!0}return!1}return!1}catch{return!1}var i}class l{static Sleep(e){return new Promise((t=>setTimeout(t,e)))}static StringifyMap(e,t){return t instanceof Map?{dataType:"Map",value:Array.from(t.entries())}:t}static parseBool(e){return"true"===e||!0===e}static ParseMap(e,t){return"object"==typeof t&&null!==t&&"Map"===t.dataType?new Map(t.value):t}static async WaitForCondition(e,t,i){const r=(new Date).getTime();for(;!await e()&&r+t>(new Date).getTime();)await l.Sleep(i??100);return await e()}static async WaitUntilCondition(e,t){const i=(new Date).getTime();for(;i+t>(new Date).getTime();){if(await e())return!0;await l.Sleep(100)}return!1}static async WaitForSyncCondition(e,t){const i=(new Date).getTime();for(;i+t>(new Date).getTime();){if(e())return!0;await l.Sleep(100)}return!1}static IsValidDataField(e){return null!=e&&e.length>0&&"null"!==e}static IsPageMatch(e,t,i,r){let n=!1;if(l.IsValidDataField(e)&&(n=l.IsOnPage(e,i),n||(n=c(e,i))),l.IsValidDataField(t))try{!r&&location.href?.toLocaleLowerCase()?.includes(i.toLocaleLowerCase())&&"chrome-untrusted://shopping/"!==location.href&&(r=location.href?.toLocaleLowerCase()),n=c(t,r??i)}catch{}return n}static IsOnPage(e,t){if(l.IsValidDataField(e)&&t){const i=e.toLowerCase().replace(/\s+/g,"").split(","),r=t.toLowerCase();let n=!1;for(const e of i)if(r.indexOf(e)>=0){n=!0;break}return n}return!1}static ObserveUntil(e,t){const i=new MutationObserver((async()=>{e()&&(i.disconnect(),t())}));i.observe(document.body,{attributeFilter:["offsetWidth","offsetHeight"],childList:!0,subtree:!0})}static async MeasureExecutionTime(e,t){const i=performance.now();return await e(),performance.now()-i}staticLine truncated
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"description": "Edge shopping component",
|
||||
"name": "Edge Shopping",
|
||||
"version": "2.1.114.0",
|
||||
"bundle_version": "2"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e={5062:function(e,t,o){var r=o(2370),a=o(9247),i=o(5383);class n{static Create(e){let t=JSON.parse(atob(e));const o=[],r=new Map,n=t?.[0]?.Group;if(n){let e=n;for(const o of t)if(o){const t=o.Group;if(t&&a.ZP.IsOnPage(o.PageUrl,location.pathname)){e=t;break}}t=t.map((t=>{if(t.Group===e)return t}))}for(const e of t)if(e){const t=e.Type;t&&!r.has(t)&&(o.push(t),r.set(t,new i.Z(e.PageUrl,t,e.checkoutElements)))}return{map:r,array:o}}constructor(e){if((0,r.Z)(this,"DomainName",void 0),(0,r.Z)(this,"AllcheckoutCompletionPages",void 0),(0,r.Z)(this,"AllPageTypeArr",void 0),(0,r.Z)(this,"AllCheckoutCompletionPagesStr",void 0),(0,r.Z)(this,"IsExpressCheckoutEnabled",void 0),(0,r.Z)(this,"CheckoutPageUrl",void 0),e){this.DomainName=e.domainName,this.CheckoutPageUrl=e.checkoutPageUrl,this.IsExpressCheckoutEnabled=e.isExpressCheckoutEnabled;const t=e.allCheckoutCompletionPagesStr;if(this.AllCheckoutCompletionPagesStr=t,t){const{map:e,array:o}=n.Create(t);this.AllcheckoutCompletionPages=e,this.AllPageTypeArr=o}}}}(0,r.Z)(n,"PageTypeArr",[]),t.Z=n},5902:function(e,t,o){var r=o(2370);t.Z=class{constructor(e,t,o,a,i,n,s,c,l,d,u,m,h){(0,r.Z)(this,"Name",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"Value",void 0),(0,r.Z)(this,"IsMandatory",void 0),(0,r.Z)(this,"Format",void 0),(0,r.Z)(this,"WaitForVisible",void 0),(0,r.Z)(this,"WaitForNotDisabled",void 0),(0,r.Z)(this,"WaitBefore",void 0),(0,r.Z)(this,"WaitAfter",void 0),(0,r.Z)(this,"WaitForNotVisible",void 0),(0,r.Z)(this,"NotAlwaysShown",void 0),(0,r.Z)(this,"DynamicFetch",void 0),(0,r.Z)(this,"ShouldValue",void 0),this.Name=e,this.Type=t,this.Value=o,this.IsMandatory=a,this.Format=i,this.WaitForVisible=n,this.WaitForNotDisabled=s,this.WaitBefore=c,this.WaitAfter=l,this.WaitForNotVisible=d,this.NotAlwaysShown=u,this.DynamicFetch=m,this.ShouldValue=h}}},5383:function(e,t,o){var r=o(2370),a=o(5902);t.Z=class{constructor(e,t,o){if((0,r.Z)(this,"PageUrl",void 0),(0,r.Z)(this,"Type",void 0),(0,r.Z)(this,"CheckoutElements",void 0),this.PageUrl=e,this.Type=t,this.CheckoutElements=new Map,o)for(const e of o)if(e){const t=e.Name;let o=e.Value;t&&this.CheckoutElements.set(t,new a.Z(t,e.Type,o,e.IsMandatory,e.Format,e.WaitForVisible,e.WaitForNotDisabled,e.WaitBefore,e.WaitAfter,e.WaitForNotVisble,e.NotAlwaysShown,e.DynamicFetch,e.ShouldValue))}}}},1775:function(e,t,o){o.d(t,{ZQ:function(){return p},tW:function(){return u},JL:function(){return g},st:function(){return S},Oh:function(){return h}});var r=o(4872),a=o(1656),i=o(3557),n=o(6529),s=JSON.parse('{"Vf":{"I":{"logBlockRules":[{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"ProductTrackingOutOfStockExtraction"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"EdgeFlyoutStatus","value":"PageHandlerInfo"},{"dotPathForJsonData":false,"dotPath":"Message","value":"resize_iframe"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":true,"dotPath":"Status","value":"Popup origination blocked due to feature specific logic"},{"dotPathForJsonData":false,"dotPath":"Message","value":"BLOCKED POPUPORIGINATION"}]},{"blockedByMatchingKeyValuePairs":[{"dotPathForJsonData":false,"dotPath":"EventType","value":"CheckoutPageValidation"},{"dotPathForJsonData":false,"dotPath":"Message","value":"Checkout Page is Invalid - Invalid Selectors"}]}]}}}');let c=function(e){return e.Vulnerable="Vulnerable",e.Campaign="Campaign",e}({});const l=new Map([[c.Vulnerable,r.H.shoppingCohortsVulnerable],[c.Campaign,r.H.shoppingCohortsReclaimed]]);function d(e){if(!a.R.isExperimentActive(e))return[];try{const t=a.R.getMultipleVariants(e);let o=a.R.getVariantStringValue(t,"allowedCohortIds","");return""===o&&(o=a.R.getVariantName(e)||""),""===o?[]:o.split(",").map((e=>parseInt(e)))}catch{return[]}}function u(){const e=new Set([]);for(const t of l.values())d(t)?.forEach((t=>e.add(t)));return e}function m(e,t){if(t?.cohortsConfig)for(const o of t.cohortsConfig)if(void 0!==o.enabledPopupOriginations&&void 0!==o.cohortId&&e.has(o.cohortId))return o.enabledPopupOriginations}function h(e,t,o){const r=m(t,o);return void 0===r||r.findIndex((t=>t===e))>-1}function p(e,t,o,r){const a=m(t,r);if(void 0===a)return!0;const s=(void 0===o?[]:o).map((e=>(0,n.Pw)(e)||i.sR.AUTO_SHOW_COUPONS_CHECKOUT));0===s.length&&s.push(i.sR.AUTO_SHOW_COUPONS_CHECKOUT);const c=s.every((e=>a.includes(e)));if(!c){const t={pageValidations:o,popupOriginations:s,userSettings:r};e(JSON.stringify(t))}return c}function g(){return s.Vf.I}function S(e,t,o){return o?.logBlockRules?.some((o=>function(e,t,o){return!!(o?.blockedByMatchingKeyValuePairs&&o.blockedByMatchingKeyValuePairs.length>0)&&o.blockedByMatchingKeyValuePairs.every((o=>function(e,t,o){try{if(!o||""===o)throw"Invalid Condition - no value to match";if(!e||""===e)throw"Invalid Condition - no dotPath given";const r=e.split(".").reverse();let a=t;for(;r.length>0;){const e=r.pop();if("object"!=typeof a||!a?.hasOwnProperty(e))return!1;Line truncated
|
||||
@@ -0,0 +1,45 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-16" />
|
||||
<script src="chrome://resources/mojo/mojo/public/js/mojo_bindings_lite.js"></script>
|
||||
<script src="chrome://resources/mojo/mojo/public/mojom/base/values.mojom-lite.js"></script>
|
||||
<script src="shopping.mojom-lite.js"></script>
|
||||
<script src="chrome://resources/js/cr.js"></script>
|
||||
<script src="chrome://resources/js/assert.js"></script>
|
||||
<script src="chrome://resources/js/load_time_data.js"></script>
|
||||
<script src="chrome://resources/js/util.js"></script>
|
||||
<script src="strings.js"></script>
|
||||
<script src="shopping.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<fluent-design-system-provider role="dialog" aria-modal="true" use-defaults>
|
||||
<div id="divContentWrapper"></div>
|
||||
</fluent-design-system-provider>
|
||||
<style>
|
||||
html {
|
||||
height: 50px;
|
||||
}
|
||||
msft-edge-shopping-section {
|
||||
margin-top: 10px;
|
||||
}
|
||||
msft-shopping-coupon,
|
||||
msft-shopping-link {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
msft-shopping-link:first-of-type,
|
||||
msft-shopping-coupon:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
fluent-anchor,
|
||||
fluent-button {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.footer-button {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
Whitespace-only changes.
@@ -0,0 +1,41 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-16" />
|
||||
<script src="chrome://resources/mojo/mojo/public/js/mojo_bindings_lite.js"></script>
|
||||
<script src="shopping.mojom-lite.js"></script>
|
||||
<script src="chrome://resources/js/cr.js"></script>
|
||||
<script src="chrome://resources/js/assert.js"></script>
|
||||
<script src="chrome://resources/js/load_time_data.js"></script>
|
||||
<script src="chrome://resources/js/util.js"></script>
|
||||
<script src="strings.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<fluent-design-system-provider role="dialog" aria-modal="true" use-defaults>
|
||||
<div id="divContentWrapper"></div>
|
||||
</fluent-design-system-provider>
|
||||
<style>
|
||||
msft-edge-shopping-section {
|
||||
margin-top: 10px;
|
||||
}
|
||||
msft-shopping-coupon,
|
||||
msft-shopping-link {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
msft-shopping-link:first-of-type,
|
||||
msft-shopping-coupon:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
fluent-anchor,
|
||||
fluent-button {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.footer-button {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";function e(t){return e="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},e(t)}function t(t,i,n){return(i=function(t){var i=function(t){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}let i=function(e){return e.Opal="Opal",e.Extension="Extension",e.SafariExtension="SafariExtension",e.ChromeExtension="ChromeExtension",e.SafariIOSExtension="SafariIOSExtension",e.Edge="Edge",e.EdgeMobile="EdgeMobile",e.Sapphire="Sapphire",e.RBC="RBC",e.EdgeAndroid="EdgeAndroid",e.EdgeiOS="EdgeiOS",e.EdgeDiscover="EdgeDiscover",e}({});i.EdgeMobile,i.EdgeAndroid,i.EdgeiOS;i.Edge,new Set(["amazon.com","amazon.ca","amazon.co.uk","amazon.co.jp","alibaba.com"]),new Map(Object.entries({"etsy.com":"receipt_id","target.com":"referenceId","tmall.com":"bizOrderId"}));const n="COMPONENT_TO_FOCUS_IN_SHORELINE";Object.keys({"bestbuy.com":{policyDays:15,supportPageUrl:"https://www.bestbuy.com/site/help-topics/price-match-guarantee/pcmcat290300050002.c?id=pcmcat290300050002"},"costco.com":{policyDays:30,supportPageUrl:"https://customerservice.costco.com/app/answers/detail/a_id/628/~/price-adjustment---costco.com-orders",useCartAtPathname:"/checkoutcartdisplayview"},"kohls.com":{policyDays:14,supportPageUrl:"https://cs.kohls.com/app/answers/detail/a_id/90/~/price-match-policy"},"target.com":{policyDays:14,supportPageUrl:"https://help.target.com/help/subcategoryarticle?childcat=Price+Match+Guarantee&parentcat=Policies+%26+Guidelines&searchQuery=search+help",useCartAtPathname:"/cart"},"dickssportinggoods.com":{policyDays:14,supportPageUrl:"https://www.dickssportinggoods.com/s/price-match-policy",useCartAtPathname:"/orderitemdisplay"},"jcpenney.com":{policyDays:14,supportPageUrl:"https://www.jcpenney.com/m/customer-service/our-lowest-price-guarantee"},"macys.com":{policyDays:10,supportPageUrl:"https://customerservice-macys.com/articles/how-can-i-get-a-price-adjustment",useCartAtPathname:"/my-bag",hasCsrError:!0},"ashleyfurniture.com":{policyDays:30,supportPageUrl:"https://www.ashleyfurniture.com/price-match/"},"gap.com":{policyDays:14,supportPageUrl:"https://www.gap.com/customerService/info.do?cid=1192378"},"staples.com":{policyDays:14,supportPageUrl:"https://www.staples.com/sbd/cre/marketing/pmg/index.html"}});let r=null;const o="test-shopping-localstorage";function s(e){let t=null;return function(){try{if(null!==r)return r;"undefined"!=typeof window&&window?.localStorage&&(window.localStorage.setItem(o,o),window.localStorage.getItem(o),window.localStorage.removeItem(o),r=!0)}catch(e){r=!1}return r}()&&(t=window.localStorage.getItem(e)),t}function a(e,t){try{if(null!=(i=e)&&i.length>0&&"null"!==i){const i=e.split(/,(?![^\[\]{}()]*[\]})])/),n=[".*","(.*)",".+","(.+)","^.*$","^(.*)$","^.+$","^(.+)$"];for(const e of i){const i=e.trim();if(!n.includes(i)&&i&&new RegExp(i).test(t.toLowerCase()))return!0}return!1}return!1}catch{return!1}var i}class l{static Sleep(e){return new Promise((t=>setTimeout(t,e)))}static StringifyMap(e,t){return t instanceof Map?{dataType:"Map",value:Array.from(t.entries())}:t}static parseBool(e){return"true"===e||!0===e}static ParseMap(e,t){return"object"==typeof t&&null!==t&&"Map"===t.dataType?new Map(t.value):t}static async WaitForCondition(e,t,i){const n=(new Date).getTime();for(;!await e()&&n+t>(new Date).getTime();)await l.Sleep(i??100);return await e()}static async WaitUntilCondition(e,t){const i=(new Date).getTime();for(;i+t>(new Date).getTime();){if(await e())return!0;await l.Sleep(100)}return!1}static async WaitForSyncCondition(e,t){const i=(new Date).getTime();for(;i+t>(new Date).getTime();){if(e())return!0;await l.Sleep(100)}return!1}static IsValidDataField(e){return null!=e&&e.length>0&&"null"!==e}static IsPageMatch(e,t,i,n){let r=!1;if(l.IsValidDataField(e)&&(r=l.IsOnPage(e,i),r||(r=a(e,i))),l.IsValidDataField(t))try{!n&&location.href?.toLocaleLowerCase()?.includes(i.toLocaleLowerCase())&&"chrome-untrusted://shopping/"!==location.href&&(n=location.href?.toLocaleLowerCase()),r=a(t,n??i)}catch{}return r}static IsOnPage(e,t){if(l.IsValidDataField(e)&&t){const i=e.toLowerCase().replace(/\s+/g,"").split(","),n=t.toLowerCase();let r=!1;for(const e of i)if(n.indexOf(e)>=0){r=!0;break}return r}return!1}static ObserveUntil(e,t){const i=new MutationObserver((async()=>{e()&&(i.disconnect(),t())}));i.observe(document.body,{attributeFilter:["offsetWidth","offsetHeight"],childList:!0,subtree:!0})}static async MeasureExecutionTime(e,t){const i=performance.now();return await e(),performance.now()-i}static DeepAssign(e,t){return Object.keys(t).forEach((i=Line truncated
|
||||
Reference in new issue
Block a user