PageSourceSearch

https://www.canadasoccerstore.com/static/1.1.0-rc-20260923.183655/js/cart-summary-toast.js

js canadasoccerstore.com collected 2026-09-28 10:35:02 UTC 6,215 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkiris=self.webpackChunkiris||[]).push([[2616],{70326(t,e,a){a.r(e),a.d(e,{default:()=>b});var s=a(14041),n=a(1098);const r=JSON.parse('{"id":"CART_SUMMARY_TOAST","name":"Cart Summary Toast","description":"Cart Summary Toast","type":"object","properties":{"isToastEnabled":{"type":"boolean","name":"Is Toast Enabled","description":"Is the toast enabled","default":false},"cartSummaryTitle":{"type":"string","name":"Cart Summary Title","description":"This title will be applied when cart-total doesn\'t fall into any range given or for the cart having cart total greater than maximum of all the maxValues user provides.","default":"In Your Cart:","shouldTranslate":true},"cartTitlesByRange":{"type":"array","name":"Cart Total Range and Title","description":"Max value and Title corresponding to each range","items":{"type":"object","name":"Cart Total range and title","properties":{"maxValue":{"type":"number","name":"Max Value for Range","description":"Defines Max value for this range (Min value for this range is the last entered maxValue or 0 if this is first maxValue)"},"title":{"type":"string","name":"Title for Range","description":"Title for this range","shouldTranslate":true}},"required":["maxValue","title"]}},"cartItemCountText":{"type":"string","name":"Cart Item Count Text","description":"Text for Cart Item Count","default":"{cartCount} Items","exposeToTools":false,"shouldTranslate":true},"singleCartItemCountText":{"type":"string","name":"Text for 1 Cart Item","description":"Text for 1 Cart Item","default":"1 Item","exposeToTools":false,"shouldTranslate":true},"shouldDisplayCartTotal":{"type":"boolean","name":"Should Display Cart Total?","description":"Should we display cart total in the toast?","default":true},"cartTotalText":{"type":"string","name":"Cart Total Text","description":"Text for Cart Total","default":"Total: {cartTotal}","exposeToTools":false,"shouldTranslate":true},"checkoutButtonText":{"type":"string","name":"Checkout Button Text","description":"Text for Checkout button","default":"Checkout","shouldTranslate":true,"maxLength":18},"cartToastPosition":{"type":"string","name":"Cart Toast Position","description":"Where should the Cart toast be displayed?","enum":["TOP_RIGHT","BOTTOM_RIGHT"],"default":"BOTTOM_RIGHT"},"shouldFadeOut":{"type":"boolean","name":"Should Fade Out","description":"Should the toast fade out after a certain time","default":true},"shouldDisplayFanCash":{"type":"boolean","name":"Should Display FanCash","description":"Should we display FanCash in the toast?","default":false}},"dependencies":{"shouldFadeOut":{"oneOf":[{"properties":{"shouldFadeOut":{"enum":[true]},"fadeOutTime":{"type":"integer","name":"Fade Out Time","description":"Time in milliseconds after which the toast should fade out","default":10000}}}]},"shouldDisplayFanCash":{"oneOf":[{"properties":{"shouldDisplayFanCash":{"enum":[true]},"minFanCashAmount":{"type":"number","name":"Minimum FanCash Amount","description":"Minimum FanCash balance required to display the FanCash section in the toast","default":0},"fancashDisplayText":{"type":"string","name":"FanCash Display Text","description":"Text displayed immediately before the FanCash amount (e.g., \'You have {fancashAmount}\').","default":"You have","exposeToTools":false,"shouldTranslate":true}}}]}}}');var o=a(46341),i=a(70581),l=a(58003),u=a(3514),m=a.n(u),c=a(5765),d=a(12985),T=a(73118),h=a(64022),p=a(93486),f=a(68032),y=a(23985),C=a(64485),g=a(43159),x=a(4404),E=a(22622),A=a(84470),v=a(99870),S=a.n(v);const I=(0,n.A)((t=>{let{isToastEnabled:e,cartSummaryTitle:a,cartTitlesByRange:n=[],cartItemCountText:r,singleCartItemCountText:o,cartTotalText:u,checkoutButtonText:v,shouldFadeOut:I,fadeOutTime:b,cartCount:R,cartTotal:O,appContext:F,shouldDisplayCartTotal:D,shouldDisplayFanCash:N,cartToastPosition:_,minFanCashAmount:M,fancashDisplayText:k}=t;const P=(0,s.useContext)(h.A),[B,w]=(0,s.useState)(0),V=(0,d.Hd)(x.S_,!1),[G,U]=(0,s.useState)(""),Y=(0,x.UF)(O,n)||a,H=Y===a?x.E4.GENERIC:x.E4.RANGE_BASED;if((0,s.useEffect)((()=>{e&&!!R&&!V&&(0,T.I1)({notifyId:"cart-summary-toast",titleType:H})}),[R]),(0,s.useEffect)((()=>{R>0&&(0,A.Ji)({appContext:F,settingID:"CART_SUMMARY_TOAST",settings:["isToastEnabled","shouldDisplayCartTotal"]});if(e&&R&&!V&&P){const{platform:t}=P,{userStatus:{isLoggedIn:e=!1}={}}=t.getData("initialAppContext")||{};e&&(0,x.s)(t,w)}const t=(0,x.I)();if(!t||!(null===F||void 0===F?void 0:F.siteId))return;const a=(0,x.ot)();if(a.productId===t&&a.imagePath)return void U(a.imagePath);(async()=>{const e=await(0,x.aK)(t,F);e&&U(e)})()}),[]),(0,s.useEffect)((()=>{B>M&&(0,A.Ji)({appContext:F,settingID:"CART_SUMMARY_TOAST",settings:["shouldDisplayFanCash"]})}),[B]),!e||!R||V)return null;const L=1===R?o:(0,l.CK)(r,{cartCount:R}),q=D&&!m()(O)?(0,l.CK)(u,{cartTotal:O||""}):"",J=(0,x.eq)({appContext:F,imagePath:G}),K=(0,E.A)(B),j={[p.URL_PARAMS._ref.name]:"cart-summary-toast",[p.URL_PARAMS.qty.name]:R},z=`/cart?${(0,f.stringify)(j)}`;return s.createElement("div",{className:S()("cart-summary-toast",{"top-right":_===x.ZP.TOP_RIGHT})},s.createElement(i.A,{displaySnackbar:!0,duration:I?b:0,onDismiss:()=>{(0,d.J2)(x.S_,!0)}}
1,s.createElement("div",{className:"last-added-item-image"},s.createElement(c.A,{src:J,alt:"cart item"})),s.createElement("div",{className:"cart-summary-content"},s.createElement("div",{className:"cart-summary-main"},s.createElement("div",{className:"cart-summary-details"},s.createElement("div",{className:"cart-summary-title"},Y),s.createElement("div",{className:"cart-item-count"},L),q?s.createElement("div",{className:"cart-summary-total"},q):null),s.createElement(y.N,{variant:C.zi.BUTTON_SECONDARY,size:C.Vp.LARGE,className:"cart-summary-checkout-button","data-trk-id":"checkout-button",href:z,truncate:C.mv.WRAP},v)),N&&B>M?s.createElement("div",{className:"cart-summary-fancash-container"},s.createElement("hr",{className:"cart-summary-fancash-divider"}),s.createElement("div",{className:"cart-summary-fancash-text"},s.createElement("div",{className:"cart-summary-fancash-label"},k),s.createElement("div",{className:"cart-summary-fancash-amount"},K),s.createElement(g.A,null))):null)))}),[r]),b=(0,o.V4)(I,"cart-summary-toast")}}]);

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.