PageSourceSearch

https://www.canadiantire.ca/etc.clientlibs/ctcweb-core/clientlibs/…/js/assets/wishlist.BN9--9-o.chunk.js

js canadiantire.ca collected 2026-09-24 08:32:06 UTC 19,390 bytes, 2 lines download raw bytes

1import{j as t,r as a}from"./vendors.BAJps33Q.chunk.js";import{dr as la,c$ as Ve,d2 as ra,o,X as ca,c4 as da,p9 as ua,c6 as ma,aT as ha,oV as st,Bj as ga,c8 as dt,ac as ut,bt as ba,nA as pa,nB as Sa,c9 as ya,g0 as La,gM as fa,bq as va,bg as x,n as mt,cl as Ca,cm as Pa,aY as Ia,aZ as Ta,cj as ka,ck as wa,aj as Aa,cc as Wa,cd as Oa,dE as Te,aX as at,cO as Ra,cP as _e,d9 as Ea,da as Fa,db as Ue,nE as Ma,P as l,a_ as Le,oR as qe,cf as Na,f as ke,dn as xa,nN as Ba,ai as fe,Bk as it,hM as Da,al as we,hN as ja,nU as $a,sy as _a,a as Ua,g1 as ot,tT as Ha,tU as Ga,dl as Va,iS as qa,ds as za,dw as nt,ek as Qa,el as Ya,en as Xa,du as Ka,dv as Ja,tX as Za,aQ as ei,Bl as He,Bm as ti,Bn as si,Bo as ai,Bp as ii,et as oi,eu as ni,ev as li,Bq as ri,a2 as ci,Br as di,Bs as ui,_ as mi,ca as hi,j8 as gi,bm as bi,jj as pi,r as Si,bD as ve,e2 as lt,cC as yi,cD as Li,Bt as fi,cF as vi,cG as Ci,Bu as Pi,ap as Ce,aq as Pe,Bv as Ii,aA as Ti,Bw as ki,dc as wi,b6 as Ai,B as Ge,bB as Wi,iz as Oi,h6 as Ie,Bx as Ri,gO as Ei,By as Fi,d7 as rt,aL as Mi,d3 as Ni}from"./main.BhSogTmc.js";import{P as xi}from"./PDPGuestOfferBenefits.CfpNBKiE.chunk.js";import{P as Bi}from"./ProductRecommendationFlyoutComp.BuwzfLHV.chunk.js";import{c as Di}from"./Cart.analytics.hoc.634XWhH4.chunk.js";import{I as ct}from"./Interaction.D9F8TgEG.chunk.js";import"./Recommendations.constant.DoeFL7Co.chunk.js";import"./recommendationFiltering.helper.CiQkzfzA.chunk.js";const ji=({...d})=>{const{wishListProps:g,isLoggedIn:b,loginPageLink:w,cartPageLink:P,homePageLink:B,isCartEmpty:I,isGigyaLoaded:U,isWishlistPage:D=!1}=d,{guestCTA1Label:j,guestCTA2Label:$,guestHeading:A,guestSubHeading:H,loggedinCTA1Label:G,loggedinCTA2Label:V,loggedinHeading:q,loggedinSubHeading:f}=g,W=h=>{const r=new URL(window.location.href),u=r.origin+r.pathname;return ra(u,h)},v=h=>t.jsx("div",{dangerouslySetInnerHTML:{__html:h}}),O={title:v(b?q:A),subTitle:v(b?f:H),ctaPrimaryLabel:b?G:j,ctaContinueLabel:b?V:$,cta1Link:b?B:w,cta2Link:b?P:B,isCartEmpty:I,isLoggedIn:b,isWishlistPage:D,isGigyaLoaded:U},R=()=>Ve()?{...O,ssoHandler:W}:O;return t.jsx(la,{emptyScreenProps:R()})},$i=1,_i=4,Ui="ONLINEONLY",Hi=({...d})=>{const{productList:g,enableExtendedWishlistHandling:b,pteCTMoneyAmtLabel:w,potentialToEarn:P,isWishlist:B}=d,{accessibility:I={},product:U={},cart:D={},storeLocator:j={},automotive:$={},badges:A={},inImageBadge:H={},featureFlag:G={},saleMessagesRules:V,globalLinks:q={},general:f={},wishlist:W={},backInStock:v={},loyalty:O={}}=o(ca),R=new Oa,[h,r]=a.useState(!1),[u,T]=a.useState(!1),[z,E]=a.useState(document.activeElement),[F,Q]=a.useState(""),[Y,C]=a.useState(!1),[X,M]=a.useState(void 0),[ne,K]=a.useState(!1),[Ae,J]=a.useState(""),[S,k]=a.useState(!1),le=o(da),Z=o(ua),N=o(ma),re=o(ha),{getError:We}=ri,{userSubscriptionCreated:Oe}=st(o(ga)),y=o(dt),{email:m=""}=st(y),Re=y?.triangleType?.rewardsCardType,{isLoggedIn:ee,isAuthenticated:te}=ut(),se=ba(),ce=y?.linkedFlag===pa,de=Sa(ee,se,Re,ce),Ee=qa.loyaltyCard===de,ae=o(ya),ue=La(),{hasSubscription:me}=a.useMemo(()=>fa(ae,y),[ae,y]),{pteThresholdDollarValForGuest:Fe}=O,{preferredStoreDetails:{onlineOrdering:Me,geoPoint:he}}=o(va),ie=x.wishlistGuid.get(),c=mt(),ge=o(Ca),be=o(Pa),[Ne,xe]=a.useState(!1),[Be,i]=a.useState(""),L=Ia(Ta.mobileMaxWidth),{nowFromLabel:_,saveFromLabel:pe,wasFromLabel:ht,fromLabel:gt,inclCoreChargesLbl:bt,plusCoreChargesLbl:pt,coreChargesTooltipTitle:St,envFeeTooltipTitle:yt,inclEnvFeeLbl:Lt,plusEnvFeeLbl:ft,envFeeTooltipParagraph:vt,saveLabel:Ct,clearancePriceLabel:Pt,unitPriceLabel:It,coreChargesTooltipParagraph:Tt,inStockLabel:kt,addToCartLabel:ze,thresholdValue:wt,productSizeLabel:At,setOf4Label:Wt,fullCorporateAssortmentAvailableForOnlinePurchaseLabel:Ot,onlineAssortmentAvailableForOnlinePurchaseLabel:Rt,remainingQtyLabel:Et,viewItemsLabel:Ft}=U,{changeLabel:Mt,eachLabel:Nt,showDiscountedPrice:xt,highlightDiscountedPrice:Bt}=D,{maxRadiusToSearchStore:Dt,outOfStockLabel:jt,comingSoonStockLabel:$t,maxNumberOfStores:Qe}=j,{a11yStrikeOutPrice:_t,a11yStrikeOutPriceRange:Ut,a11yReviewRating:Ht,a11yRemoveLabel:Gt,a11yServiceInstallation:Vt,a11yQuantityInputAriaLabel:qt}=I,{roadRatedLabel:zt,cartSpecifications:Qt,unfinishedPkgSpecifications:Yt}=$,{enableRomanceCopyWithWasLabel:Xt,enableCTMoneyEarnSelect:Kt,supp
1ortOfCustomDisplayOrderForProductVariantsEnabled:Jt,enablePartialOrderCancellation:Zt,enableBackInStockAlert:es,displaySaleEndsSoonMsg:ts,enableSelectReplacementWishlistFlyout:ss,enableLightPdpLoading:as}=G,is=Jt||ka().banner===wa,{a11yWishlistIcon:os}=W,{event:{interaction:ns},eventParameters:{action:{storeLocator:ls},location:{nearByStores:rs},labels:{removeFromWishlist:cs,cartWishlist:Ye}}}=we,{rating_summary:{container:ds}}=$a,{shortNotifyMeWhenAvailableCTA:us,outOfStockLabelProductCard:ms,enableBackInStockAlertOnWishList:hs}=v,gs=y&&Aa(y)||!1,bs=!!(es&&hs),{iaDiscontinued1:ps,iaDiscontinued2:Ss,iaOutOfStock1:ys,iaOutOfStock2:Ls,iaOutOfStock3:fs,iaNoFulfillment1:vs,iaNoLongerAvailable1:Cs,discontinuedAtStoreMsg:Ps,disableAvailabilityMessages:Is,saleEndsSoonMessage:Ts,selectReplacementWishlistLabel:ks,wishlistReplacementSchemaId:oe,wishlistMaximumNumberOfReplacementRecommendations:ws,wishlistMinimumNumberOfReplacementRecommendations:De,wishlistSkeletonSize:As,wishlistReplacementNoProductsImageUrl:Ws,wishlistReplacementButtonLabel:Os,wishlistReplacementFlyoutTitle:Rs,wishlistReplacementItemsLabel:Es,wishlistReplacementSuccessToastMessage:Fs,wishlistReplacementMessageDescriptionOne:Ms,wishlistReplacementMessageDescriptionTwo:Ns,wishlistReplacementShowAllLabel:xs}=d,Bs=o(e=>e.target),{recommendationDataLoading:Se}=o(Wa),Xe=o(e=>R.selectRecommendation(e)),{isLoading:je,isSuccess:Ke}=Bs,Ds=Te(),$e=document.querySelector(`button[${at}]`),js=e=>{$s(e)},$s=a.useCallback(e=>{const s=x.wishlistGuid.get(),n=[];e&&n.push(e),c(Ra({req:{guid:s},addToWishlistPayLoad:_e(n,null),showSpinner:!0,setShowWishListSpinner:void 0,changeWishlistAvailabilityStatus:void 0,isStaggeredProduct:void 0,isFromSFL:!1,addToWishlistInactiveProductErrorMsg:void 0,isLight:!0,isAuthenticated:te,isFreeShippingEnabled:!0,compareProductsList:[],wishlistItemsSku:[],removeWishListData:void 0,isAddToWishlistPDPCart:!0}))},[c,te]),_s=e=>{const s={pcode:e?.code,action:cs,sku:e?.code,value:`${e?.currentPrice?.value||""}`,location:`${Ds} - ${Ye}`},n=_e([e?.code],e?.vehicleInformation??null);c(nt({req:{wishlistRequestPayload:n,guid:ie,analyticsParams:s},setShowWishListSpinner:void 0,changeWishlistAvailabilityStatus:void 0,isLight:!1,isFreeShippingEnabled:!1,compareProductsList:[],wishlistItemsSku:[]}))},Us=e=>{const s=_e([e],null);c(nt({req:{wishlistRequestPayload:s,guid:ie},setShowWishListSpinner:void 0,changeWishlistAvailabilityStatus:void 0,isLight:!1,isFreeShippingEnabled:!1,compareProductsList:[],wishlistItemsSku:[],removeWishListData:void 0,isWishlistClickedFromComparisonTool:void 0,isReplaceProduct:!0}))},Hs=()=>{const e=`.${l}-warning-toast`,n=document.activeElement.closest(e);if(n){const p=n.nextElementSibling;E(p)}},Je=()=>{r(!1),T(!1)},Gs=a.useCallback(e=>{const s=e?.promoMessages?.[0]?.label||"",n=e?.relatedSkus||[];i(s),c(Ea()),c(Fa({relatedSkuCodes:n,initiationSource:Ue.WISHLIST}))},[c]);a.useEffect(()=>{const e=ge&&be===Ue.WISHLIST;xe(e)},[ge,be]);const Vs={isOpen:h,closeFlyout:Je,isStoreSelectorModalUsed:!0},qs=e=>{c(Qa({requestPayload:{sku:e,maxCount:Qe,radius:Dt||0,latitude:he?.latitude,longitude:he?.longitude},option:Ya.SKU})),r(!0),T(!0),c(qe(e)),c(Xa({label:Mt,componentName:rs,eventName:ns,actionName:ls}))};a.useEffect(()=>{Ma(g,"images")},[g]);const zs=(e,s,n)=>{if(!ke(e))return!1;const p=xa(e,s);if(!p||!Array.isArray(p.options)||p.options.length===0)return!1;const ye=p.options[0].content;return((ye?JSON.parse(ye):null)?.items||[]).length>=(n||0)};a.useEffect(()=>{if(je||Se){M(void 0);return}if(Ke&&!Se){const e=Xe?.resonance?.schemes,s=zs(e,oe,De??0);M(s),K(!1)}},[S,Xe,Ke,Se,je,oe,De]),a.useEffect(()=>{S||K(!1)},[S]);const Ze=a.useCallback(()=>{const e=`${l}-shopping-cart__item`,s=`.${l}-shopping-cart__product__title a`,n=document.activeElement?.textContent===d.checkNearbyCTALabel,p=z?.querySelector(s),ye=z?.firstElementChild?.classList.contains(e);!n&&ye&&!u&&p.focus()},[z,d,u]);a.useEffect(()=>{Ze()},[le,Ze]),a.useEffect(()=>{h||u?document.body.classList.add(Le):(document.body.classList.remove(Le),c(qe("")),Hs())},[c,h,u]),a.useEffect(()=>{S?document.body.classList.add(Le):(document.body.classList.remove(Le),$e?.focus(),$e?.removeAttribute(at))},[S,$e]);const et=e=>e?.badges?.includes(Ui),Qs=e=>g.find(s=>
1s.code===e),Ys=e=>et(e)?Rt:Ot,Xs=e=>{const s=(e.fulfillment?.availability.quantity??0)===0,n=(e.fulfillment?.availability.Corporate?.Quantity??0)>0,p=e.fulfillment?.availability.Corporate?.orderableFromDC;return s&&n&&p},Ks=()=>h||u&&g?.length>0?t.jsx(oi,{...Vs,children:t.jsx(ni,{inStockDCOnlyEnabled:!0,maxNumberOfStores:Qe,isOnlineOnlyItem:et(Qs(Z)),closeFlyout:Je,selectedProductCodeWishList:Z,isShowAvailability:h||u&&g?.length===li,isOpen:h||u&&g?.length>0})}):null,Js=e=>Ka(e)||Ja(e),Zs=a.useCallback(()=>N?.breadcrumbList?N?.breadcrumbList[N.breadcrumbList.length-Na.TWO]?.url:"",[N]),ea=e=>()=>{Q(e)},ta=e=>t.jsx(Za,{...d,ptePreviewTextForAuthUser:w,earnedCTMoney:e,isNonInteractive:!0}),sa=(e,s)=>s>=e,aa=e=>fe(fe(!!P?.enablePteGuestUser,!ee)||fe(ee,!se),sa(Fe,e?.currentPrice?.value??0),!ei()),ia=(e,s)=>t.jsx(xi,{...P,pteOfferEndsLabel:"",pteExpiresLabel:"",showComponent:!1,pteConditionsAndDetails:[],bannerImageList:[],nppURL:"",isQuebecSnG:!1,showNppInOnline:!1,enablePteGuestUser:!!P?.enablePteGuestUser,masterCardRewards:He(s,ii),selectCardRewards:He(s,ai),rewardBoostValue:si(s,1),everydayRewards:He(s,ti),isWishlist:B,ptePreviewTextForAuthUser:w,earnedCTMoney:e,productPrice:s.currentPrice?.value,hasNonLoyalty:ue,pteFromWishlist:L?`${l}-pte-benefits--wishlist`:""}),oa=(e,s)=>{M(void 0),K(!0);const n={userProfileData:y,schemaIds:[oe],dispatch:c,categoryIdData:void 0,productData:void 0,codesFromCartOrderEntries:e};e&&oe&&R.fetchTargetProductRecommendationData(n),c(za({productCode:s,selectedPreferredStoreId:re,lightLoadingEnabled:as})),J(e),k(!0)},tt=(e,s)=>We({extendedWishlistHandling:b,itemData:e,messageObject:{discontinuedMsg:ps,tempDiscontinued:Ss,oosInStore:ys,oosStoreInStockDc:Ls,oosInStoreDC:fs,noFulfillmentMsg:vs,noLongerAvailableMsg:Cs},itemAvailabilityData:e?.fulfillment?.availability,...s&&{replacementFlow:s}}),na=()=>t.jsxs(t.Fragment,{children:[g.map((e,s)=>{const n=Ba(e,Ee,fe(me,Kt??!1));return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:`${l}-vehicle-context`,children:[it(e)&&t.jsx("div",{className:`${l}-automotive-card__car-mark-header`,children:it(e)}),t.jsx(Da,{...se?{ptePreviewComponent:ta(ot(n))}:aa(e)&&{ptePreviewComponent:ia(ot(n),e)},displaySaleEndsSoonMsg:ts,saleEndsSoonMessage:Ts,inStockOnlineLabel:Ys(e),isAvailableOnlyInDC:Xs(e),productData:e,accessibilityGlobalProps:I,isWishList:!0,plusCoreChargesLbl:pt,inclCoreChargesLbl:bt,inclEnvFeeLbl:Lt,plusEnvFeeLbl:ft,envFeeTooltipParagraph:vt,envFeeTooltipTitle:yt,coreChargesTooltipTitle:St,coreChargesTooltipParagraph:Tt,badgePriorities:A,inImageBadgePriorities:H,PDPLink:q.productDetailPageLink,inStockLabel:kt,addToCartLabel:ze,onRemoveWishlistItem:_s,reviewsContainerId:ds,a11yReviewRating:Ht,onlineOrdering:Me,language:Ua.getLanguage(),saveLabel:Ct,eachLabel:Nt,thresholdValue:wt,clearancePriceLabel:Pt,unitPriceLabel:It,a11yStrikeOutPrice:_t,a11yStrikeOutPriceRange:Ut,scrollToFooter:ja,nowFromLabel:_,saveFromLabel:pe,wasFromLabel:ht,fromLabel:gt,isWheelOrTire:Js(e),productSizeLabel:At,setOfFourLabel:Wt,roadRatedLabel:zt,outOfStockLabel:jt,comingSoonStockLabel:$t,discontinuedLabel:Ps,a11yRemoveLabel:Gt,nearbyAvailabilityCTALabel:d.checkNearbyCTALabel,disableAvailabilityMessages:Is,itemAvailabilityInfo:tt(e),itemAvailabilityInfoForReplacement:tt(e,!0),checkNearByCTAHandler:()=>qs(e.code),saleMessagesRules:V,...d,specificationsFromProps:[Qt,Yt],enableAddTireWheelsByFourFromWishlist:d.enableAddTireWheelsByFourFromWishlist,showDiscountedPrice:xt,highlightDiscountedPrice:Bt,isSelectedDeliveryAvailable:!0,a11yClickToReadFootnote:I.a11yClickToReadFootnote,a11yTooltipIcon:I.a11yTooltipIcon,plusMinusSymbol:f.plusMinusSymbol,displayRomanceCopyWithWasLabel:Xt,enableCustomOrder:is,a11yServiceInstallation:Vt,a11yQuantityInputAriaLabel:qt,a11yWishlistIcon:os,enablePartialOrderCancellation:Zt,limitedStockMessage:Et,notifyMeButtonLabel:us,enableBackInStockAlert:bs,outOfStockLabelProductCard:ms,productStatus:e.productStatus,handleNotifyMeButtonClick:p=>_a.handleNotifyMeBtnClick({event:p,dispatch:c,isToastNotDisplayed:!0,warningMessage:void 0,closeLabel:f?.closeLabel,userSubscriptionCreated:Oe,isLoggedIn:gs,email:m,onNotifyMeClick:ea(e.code),isCommunicationPreferencesFlowEnabled:!1}),rewardCentThresholdValue:A?.rewardCentThresholdValue,selectReplacementLabel:ks,enableSelectReplacementWishlistFlyout:ss,eligibleItemsLabel:Ft,onEligibleItemsLinkClick:()=>Gs(e),enableShowPromotionsAndRomanceCopy:!0,selectReplacementWishlistBtnClick:oa,selectReplacementWishlistLocation:Ye})]},`${e.code}-${s}`),e.code===F&&t.jsx(Ha,{isOpen:e.code===F,onClose:()=>{Q("")},isWishList:!0,title:e.name,image:e.images?.[0]?.url??"",sku:e.code,onSubscriptionError:()=>{C(!0)},options:e?.options})]})}),Y&&t.jsx(Ga,{isOpen:Y,onClose:()=>{C(!1)}}),Ks(),Ne&&t.jsx(Va,{initiationSource:Ue.WISHLIST,advancePromoFlyoutTitle:Be}),S&&t.jsx(Bi,{isOpen:S,isWishlistReplacementFlyout:S,replacedProductCode:Ae,setReplacedProductCode:J,enableCartAccessoriesFlyout:S,cartAccessoriesFlyOutTitle:Rs,recommendationsSchemaId:oe,minimumNumberOfRecommendations:De,maximumNumberOfRecommendations:ws,addToCartLabel:ze,setIsCartAccessoriesFlyout:k,optionsCTA:f.optionsCTA,skeletonSize:As,deliveryModeSelected:"",isRecommendationLoading:ne||je||Se||X===void 0,isRecommendationLoaded:!ne&&X!==void 0,isCartFlyoutRecommendationAvailable:X,replacementItemsLabel:Es,replacementButtonLabel:Os,replacementSuccessToastMessage:Fs,replacementMessageDescriptionOne:Ms,replacementMessageDescriptionTwo:Ns,replacementNoProductsImageUrl:Ws,replacementShowAllLabel:xs,onAddWishlistItem:js,onRemoveWishlistItem:Us,categoryURL:Zs()})]});return t.jsx(t.Fragment,{children:na()})},Gi=({...d})=>{const{title:g,salesAlertLabel:b,salesAlertAction:w,saveWishListLabel:P,enableSTHDeliveryModeForAddToCart:B,isShippingPostalCodeHide:I,disableSalesAlert:U,mergeMessage:D,wishlistRemoveItemMessage:j,wishlistRemoveItemMessageGuest:$,guestTitle:A,saveYourListLabel:H,saveYourListText:G,getMoreFromListLabel:V,getMoreFromListText:q,guestCTA1Label:f,triangleIDCta:W,wishlistReplacementSuccessToastMessage:v,wishlistReplacementSchemaId:O,wishlistReplacementFlyoutTitle:R}=d,h=o(dt),{wishlistItems:r,wishlistRemoveSuccess:u,mergeWishlistSuccess:T,wishlistLoadSuccess:z,wishlistReplacementSuccess:E}=o(ci),F=h?!!Object.keys(h).length:!1,Q=o(di),Y=o(ui),C=o(mi),X=o(hi),{loginPageLink:M,homePageLink:ne,cartPageLink:K,wishlistPageLink:Ae,myaccountPreferenceLink:J,registrationPageLink:S}=o(gi),{isAuthenticated:k}=ut(),{event:{interaction:le},linkTypes:{internal:Z}
1,eventParameters:{action:{clickOn:N,link:re,saveWishlist:We,mySalesAlert:Oe},labels:{cartWishlist:y}}}=we,m=mt(),[Re,ee]=a.useState(""),[te,se]=a.useState(!1),ce=Te()===bi.wishlist,[de]=pi(),Ee=de?"":`${l}-button2--mini`;a.useEffect(()=>{let i=0;r&&Object.keys(r).length&&(i=r?.products?.length||0),ee(Si(k?g:A,i.toString()))},[r,g,k,A]),a.useEffect(()=>{if(te&&ve(C)){const i=x.getCartGuid(),L=x.getProductSchemaId(),_=C.entry.code;Object.keys(L??{}).length>0&&L?.[_]?lt(C,i,Te(),we.eventParameters.labels.recommendationAddToCart.replace("[schemaId]",O),void 0,void 0,void 0,void 0,void 0,void 0,void 0,`${we.eventParameters.location.target} - ${R}`):lt(C,i,Te(),y),yi.logCustomEvent(Li.event.wishlistConversion,{...vi(Ci()),...fi(C)})}},[te,C,y,O,R]);const ae=a.useCallback(()=>({options:{toastSuccessMessage:v,toastErrorIcon:"ct-notification-caution",toastSuccessIcon:"ct-notification-success-green"},resetPageVariables:()=>{m(Pi()),Ce(!1,{},Pe.NONE,m)},success:E}),[E,v,m]),ue=a.useCallback(()=>{let i;return T?i=D:k?i=j:i=$,i},[T,k,D,j,$]),me=a.useCallback(()=>{if((u||Y&&T)&&ve(r)&&!E){m(Ii(!1));const L={options:{toastSuccessMessage:ue(),toastErrorIcon:"ct-notification-caution",toastSuccessIcon:"ct-notification-success-green"},resetPageVariables:()=>{m(Ti()),m(ki(!1)),Ce(!1,{},Pe.NONE,m)},success:u||T};Ce(!0,L,Pe.REMOVE_WISHLIST_ITEM,m)}E&&u&&Ce(!0,ae(),Pe.REPLACE_WISHLIST_ITEM,m)},[Y,T,u,r,E,m,ue,ae]);a.useEffect(()=>{me()},[me]);const Fe=i=>{m(qe(i))},Me=i=>{const L=x.getCartGuid(),_=i?.vehicleInformation?Fi(i?.vehicleInformation):null,pe={guid:L,entries:{orderEntries:[{deliveryMode:{code:B?rt.STH:rt.BOPIS},quantity:Mi(i?.productWheelType)?_i:$i,deliveryPointOfService:{name:x.preferredStoreId.get()},product:{code:i.code}}]}};_&&(pe.entries.orderEntries[0].vehicleInformation=_),m(Ni({requestPayload:pe,addServiceToCart:!1,showSpinner:!0,isBuybox:!1,postalCodeVal:"",vehicleInformation:void 0,isBulk:i.isBulk,isPackageFlow:!1,autoPackages:void 0,isStaggered:!1,isShippingPostalCodeHide:I}))},he=i=>{se(!0),Fe(i.code),Me(i)},ie=i=>{Ve()?Oi(window.location.href,i):Ie(`${M}?returnURL=${encodeURIComponent(Ae)}`)},c=()=>{Ve()?F?Ie(w):Ri(J,!0):F?Ie(w):Ie(`${M}?returnURL=${encodeURIComponent(J)}`)},ge=i=>{i.preventDefault();const L=window.location.origin+window.location.pathname;Ei(S,L)},be=()=>t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:`${l}-wishlistitem__item`,children:[t.jsx("h1",{children:Re}),ve(r)&&ke(r.products)&&t.jsxs("div",{children:[F?null:t.jsx("div",{className:`${l}-wishlistitem__analytics-button`,children:t.jsx(ct,{componentName:"wishlist",label:We,eventName:le,actionName:`${N} ${Z} ${re}`,children:t.jsx(Ge,{id:"verifyButton",type:"tertiary",size:"mini",ariaLabel:P,onClick:()=>ie(!0),children:P})})}),!U&&t.jsx("div",{className:`${l}-wishlistitem__analytics-button`,children:t.jsx(ct,{componentName:"wishlist",label:Oe,eventName:le,actionName:`${N} ${Z} ${re}`,children:t.jsx(Ge,{id:"redirectButton",type:"tertiary",size:"mini",ariaLabel:b,onClick:c,children:b})})})]})]}),ve(r)&&ke(r.products)&&!k&&t.jsxs("div",{className:`${l}-wishlistitem__savelist`,children:[t.jsx("h2",{children:H}),t.jsx("div",{className:`${l}-wishlistitem__subheader`,children:G}),t.jsx("h2",{children:V}),t.jsx("div",{className:`${l}-wishlistitem__salesalert`,children:q}),t.jsxs("div",{className:`${l}-wishlistitem__signin`,children:[t.jsx(Wi,{stringContent:W,children:i=>t.jsx("a",{href:"/#",title:W,onClick:ge,"data-link-value":W,className:`${l}-button2 ${l}-button2--primary ${l}-button2--primary-dark ${l}-wishlistitem__register ${Ee}`,dangerouslySetInnerHTML:{__html:i}})}),t.jsx(Ge,{onClick:()=>ie(!0),ariaLabel:f,ariaDescribedBy:f,type:"secondary",size:de?"medium":"mini",children:f})]})]})]}),Ne=()=>!(Q?.numberOfItems||Q?.updatedCart?.numberOfItems),xe=()=>ke(r.products)?t.jsx(Hi,{productList:r.products,addToCart:he,...d,isWishlist:ce}):t.jsx(ji,{wishListProps:d,isLoggedIn:F,loginPageLink:M,homePageLink:ne,cartPageLink:K,isCartEmpty:Ne(),isWishlistPage:ce,isGigyaLoaded:X}),Be=()=>z||!x.wishlistGuid.get()?t.jsx(wi,{headerChildren:be(),children:xe()}):t.jsx(Ai,{skeletonClass:`${l}-wishlistitem__skeleton`});return t.jsx("div",{className:`${l}-wishlistitem`,"data-testid":"wishlist",children:Be()})},Vi=Di(Gi),so={WishList:Vi};
1export{so as default};
2//# sourceMappingURL=wishlist.BN9--9-o.chunk.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.