8 lines
1.2 MiB
JavaScript
8 lines
1.2 MiB
JavaScript
!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 S
|
|||
|
|
<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.l
|