PageSourceSearch

https://main.cdn.wish.com/web/ac80df1e8d74/dist/cozy/cozy_data_act…er_tsx-cozy_-db3f10.5e2f7448dcb117ba9a0f.js

js wish.com collected 2026-10-01 08:19:01 UTC 15,327 bytes, 2 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["cozy_data_actions_BrandFeedActions_tsx-cozy_shared_components_brand_BrandInfoBanner_tsx-cozy_-db3f10"],{
1"./cozy/data/actions/BrandFeedActions.tsx":function(e,n,t){"use strict";t.r(n),t.d(n,{clearFeed:function(){return l},clearIsInitialData:function(){return u},getFeedProducts:function(){return m},loadBrandInitial:function(){return p}});var o=t("./cozy/utils/Api.tsx"),r=t("./cozy/data/builders/GenericFeedService.tsx"),i=t("./cozy/data/constants/BrandConstants.tsx"),a=t("./cozy/data/constants/FeedConstants.tsx"),d=t("./cozy/data/selectors/BrandFeedSelectors.tsx"),s=t("./cozy/data/actions/actionNameConstants/BrandFeedActionNameConstants.tsx");const c=(e,n)=>{const t={...(0,d.ws)(n)};return(0,r.Z)(e,a.vQ.OUTLET,{productsFieldName:"products",nextOffsetFieldName:"next_offset",noMoreItemsFieldName:"feed_ended",seenProductIDs:t})},l=()=>({type:s.Ut}),p=(e,n)=>{const{header_spec:t,promo_deal_spec:o,...r}=e,i=c(r,n);return{type:s.kt,payload:{...i,brandHeader:t,isInitialData:!0,promoDealSpec:o}}},u=()=>({type:s.HL}),m=(e,n)=>async(t,r)=>t({type:s.TQ,payload:async()=>{const t=await(async(e,n)=>{let{offset:t,count:r,collectionID:i}=n;const{data:a}=await(0,o.ZP)("brand/get-authorized-products",{brand_name:e,offset:t,count:r,collection_id:i});return a})(e,{...n,count:i.pF}),{header_spec:a,promo_deal_spec:d,...s}=t;return{...c(s,r()),brandHeader:a,isInitialData:!1,promoDealSpec:d}}})},
1"./cozy/data/actions/actionNameConstants/BrandFeedActionNameConstants.tsx":function(e,n,t){"use strict";t.d(n,{TQ:function(){return o},kt:function(){return r},v4:function(){return i},jW:function(){return a},Ut:function(){return d},HL:function(){return s}});const o="BRAND_FEED_GET_FEED_PRODUCTS",r="BRAND_FEED_GET_FEED_PRODUCTS_FULFILLED",i="BRAND_FEED_GET_FEED_PRODUCTS_PENDING",a="BRAND_FEED_GET_FEED_PRODUCTS_REJECTED",d="BRAND_FEED_CLEAR_FEED",s="BRAND_FEED_CLEAR_INITIAL_DATA"},
1"./cozy/data/constants/PromotionConstants.tsx":function(e,n,t){"use strict";t.d(n,{jT:function(){return o},$l:function(){return r},Ul:function(){return i},X1:function(){return a},Fi:function(){return d},uE:function(){return s},Wy:function(){return c}});const o={COUPON:0,NO_COUPON:1,ROTATING:2,VAT:4,PROMOTION_HORIZONTAL_CARDS:8},r={THEME_LIGHT:0,THEME_DARK:1},i=176,a=900,d=160,s="PRODUCT_DETAIL_PAGE",c="show_wss_premier_merchant_modal"},
1"./cozy/desktop/components/brand/BrandBreadCrumbs.tsx":function(e,n,t){"use strict";var o=t("./node_modules/react-router/esm/react-router.js"),r=t("./cozy/data/constants/FeedConstants.tsx"),i=t("./cozy/routes/RouteGenerators.tsx"),a=t("./cozy/routes/RouteTesters.tsx"),d=t("./cozy/utils/i18n.tsx"),s=t("./cozy/desktop/styles/orderHistory/OrderHistory.tsx"),c=t("./cozy/desktop/styles/brand/BrandPage.tsx"),l=t("./cozy/utils/URL.tsx"),p=t("./cozy/data/services/AnalyticsService.tsx"),u=t("./node_modules/react/jsx-runtime.js");n.Z=()=>{const e=(0,o.TH)(),n=(0,o.k6)(),{brandName:t,filterID:m}=(0,o.UO)(),h=[{name:(0,d.ag)("Brands"),onClick:()=>{n.push((0,i.pR)(r.vQ.OUTLET))}}],x=(0,l.re)("category",e),f=m||(0,l.re)("categoryID",e);return x&&f&&h.push({name:x,onClick:()=>{n.push((0,i.NX)(f)),(0,l.oe)("category",x,n)}}),(0,a.Udl)(e)&&h.push({name:decodeURIComponent(t),onClick:()=>{n.push("".concat((0,i.Z_)(t)).concat(e.search))}}),(0,u.jsx)(c.ST,{children:h.map(((e,n)=>{let{name:t,onClick:o}=e;return(0,u.jsxs)(s.q9,{children:[(0,u.jsx)(s.cI,{isselected:n===h.length-1?1:0,onClick:()=>{o(),(0,p.y)("CLICK_WEB_BRAND_BREADCRUMBS")},children:t}),n<h.length-1&&(0,u.jsx)(s.wY,{children:"/"})]},t)}))})}},
1"./cozy/desktop/styles/brand/BrandPage.tsx":function(e,n,t){"use strict";t.d(n,{im:function(){return a},T4:function(){return d},eA:function(){return s},ST:function(){return p}});var o,r=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),i=t("./cozy/shared/styles/Utils.tsx");const a=r.ZP.div.withConfig({displayName:"BrandPage__Wrapper",componentId:"sc-1fgp67d-0"})(["flex:1 1 auto;background-color:",";"],(e=>{let{theme:n}=e;return n.Grey7})),d=r.ZP.div.withConfig({displayName:"BrandPage__BrandHeader",componentId:"sc-1fgp67d-1"})(["display:flex;overflow:hidden;justify-content:center;background-color:#fff;padding-bottom:32px;"]),s=r.ZP.div.withConfig({displayName:"BrandPage__WidthWrapper",componentId:"sc-1fgp67d-2"})(["display:flex;flex-direction:column;",";",""],(0,i.V8)("width"),i.cy.mobile(o||(c=["\n    width: 100%;\n  "],l||(l=c.slice(0)),o=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(l)}})))));var c,l;const p=r.ZP.div.withConfig({displayName:"BrandPage__BrandsBreadCrumbsWrapper",componentId:"sc-1fgp67d-3"})(["display:flex;margin:30px 0 32px 5px;"])},
1"./cozy/shared/components/brand/BrandInfoBanner.tsx":function(e,n,t){"use strict";t("./node_modules/core-js/modules/web.dom-collections.iterator.js");var o=t("./node_modules/react-redux/es/index.js"),r=t("./node_modules/react-router/esm/react-router.js"),i=t("./cozy/coco/components/Icons/ShieldIcon.tsx"),a=t("./cozy/data/selectors/BrandFeedSelectors.tsx"),d=t("./cozy/data/selectors/FeedSelectors.tsx"),s=t("./cozy/data/selectors/BrowserSelectors.tsx"),c=t("./cozy/shared/styles/brand/BrandPage.tsx"),l=t("./cozy/shared/styles/brand/BrandsFeedPage.tsx"),p=t("./cozy/desktop/components/brand/BrandBreadCrumbs.tsx"),u=t("./cozy/shared/components/brand/BrandLearnMoreModal.tsx"),m=t("./cozy/routes/RouteTesters.tsx"),h=t("./cozy/utils/hooks/UseModal.tsx"),x=t("./cozy/utils/i18n.tsx"),f=t("./node_modules/react/jsx-runtime.js");n.Z=(0,o.$j)((e=>({logo:(0,a.BR)(e),brandName:(0,a.Kt)(e),title:(0,a.i5)(e),description:(0,a.H_)(e),bannerWidth:(0,d.nq)(e),aspectRatio:(0,a.XY)(e),shouldRenderMobile:(0,s.LG)(e)})))((e=>{let{logo:n,brandName:t,title:o,description:a,bannerWidth:d,aspectRatio:s,shouldRenderMobile:g}=e;const _=(0,r.TH)(),[y,b,B]=(0,h.Z)(),C=(0,m._PK)(_);return(0,f.jsxs)(f.Fragment,{children:[t&&(0,f.jsx)(c.T4,{children:(0,f.jsxs)(c.eA,{width:"".concat(d,"px"),children:[!g&&(0,f.jsx)(p.Z,{}),(0,f.jsxs)(c.zE,{children:[(0,f.jsx)(l.Os,{width:"90px",height:"90px",children:(0,f.jsx)(l.ZH,{src:n,width:"".concat(40*s>63?63:40*s,"px"),height:"".concat(40*s>63?63:40*s,"px")})}),(0,f.jsxs)(c.kM,{children:[(0,f.jsxs)(c.zE,{children:[(0,f.jsx)(c.rV,{children:g?o:t}),(0,f.jsx)(i.ZP,{size:i.RY.SMALL,overrideStyle:{marginLeft:"8px"}})]}),(0,f.jsxs)(c.Wh,{children:[a,C&&(0,f.jsx)(c.W8,{onClick:b,alignLeft:!0,children:(0,x.ag)("Learn More")})]})]})]})]})}),y&&(0,f.jsx)(u.Z,{closeModal:B})]})}))},
1"./cozy/shared/components/promotionBanner/PromotionBannerDetailsModalSwitch.tsx":function(e,n,t){"use strict";var o=t("./cozy/data/constants/PromotionConstants.tsx"),r=t("./cozy/shared/components/wishSellerStandards/PremierMerchantInfoModalSwitch.tsx"),i=t("./node_modules/react/jsx-runtime.js");n.Z=e=>{let{actionID:n}=e;return n&&n===o.Wy?(0,i.jsx)(r.Z,{}):null}},
1"./cozy/shared/styles/promotionBanner/PromotionBanner.tsx":function(e,n,t){"use strict";t.d(n,{WG:function(){return l},CR:function(){return p},Zl:function(){return m},F:function(){return h},K1:function(){return x},eV:function(){return f},VC:function(){return g},xG:function(){return _},dw:function(){return y},Mb:function(){return b},Jw:function(){return B},JT:function(){return C},zt:function(){return P},pn:function(){return z},lb:function(){return w},UK:function(){return E},xu:function(){return I},ll:function(){return N},vU:function(){return v}});var o,r=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),i=t("./node_modules/react-router-dom/esm/react-router-dom.js"),a=t("./cozy/shared/styles/Mixins.tsx"),d=t("./cozy/shared/styles/Utils.tsx"),s=t("./cozy/data/constants/PromotionConstants.tsx"),c=t("./cozy/data/constants/AppConstants.tsx");const l=r.ZP.div.withConfig({displayName:"PromotionBanner__BaseBannerWrapperStyle",componentId:"sc-1i5qndq-0"})(["color:",";background-image:url(",");",";background-position:center;background-repeat:no-repeat;"],(e=>{let{color:n}=e;return n}),(e=>{let{imageUrl:n}=e;return n}),(0,d.V8)("backgroundColor","background-color")),p=r.ZP.div.withConfig({displayName:"PromotionBanner__BaseActionText",componentId:"sc-1i5qndq-1"})(["",";color:",";"],a.fb,(e=>{let{theme:n,color:t}=e;return t||n.Grey1})),u=(0,r.ZP)(l).withConfig({displayName:"PromotionBanner__BannerWrapperStyle",componentId:"sc-1i5qndq-2"})(["margin:20px auto 0 auto;"]),m=(0,r.ZP)(i.rU).withConfig({displayName:"PromotionBanner__BaseFeedRotatingActionText",componentId:"sc-1i5qndq-3"})(["display:flex;align-items:center;color:",";margin-top:10px;"],(e=>{let{theme:n,color:t}=e;return t||n.Grey1})),h=(0,r.ZP)(u).withConfig({displayName:"PromotionBanner__FeedBannerWrapper",componentId:"sc-1i5qndq-4"})(["width:",";height:","px;background-size:"," ","px;display:flex;position:relative;"],(e=>{let{bannerWidth:n}=e;return n}),(e=>{let{bannerHeight:n}=e;return n}),(e=>{let{bannerWidth:n}=e;return n}),(e=>{let{bannerHeight:n}=e;return n})),x=r.ZP.div.withConfig({displayName:"PromotionBanner__FeedBannerAnimationContainer",componentId:"sc-1i5qndq-5"})(["width:",";height:","px;position:absolute;top:0;"],(e=>{let{bannerWidth:n}=e;return n}),(e=>{let{bannerHeight:n}=e;return n})),f=r.ZP.div.withConfig({displayName:"PromotionBanner__FeedBannerExtraInfo",componentId:"sc-1i5qndq-6"})(["display:flex;flex-direction:column;align-items:inherit;"]),g=r.ZP.div.withConfig({displayName:"PromotionBanner__ExpiryText",componentId:"sc-1i5qndq-7"})(["",";color:",";",";",";gap:16px;"],a.fb,(e=>{let{theme:n,color:t}=e;return t||n.Grey1}),(0,d.V8)("fontSize","font-size"),(0,d.V8)("fontWeight","font-weight")),_=r.ZP.div.withConfig({displayName:"PromotionBanner__DisclaimerText",componentId:"sc-1i5qndq-8"})(["",";color:",";",";",";gap:16px;"],a.qM,(e=>{let{theme:n,color:t}=e;return t||n.Grey1}),(0,d.V8)("fontSize","font-size"),(0,d.V8)("fontWeight","font-weight")),y=r.ZP.div.withConfig({displayName:"PromotionBanner__ActionText",componentId:"sc-1i5qndq-9"})(["",";",";",";",";",";",";",";cursor:pointer;display:flex;align-items:center;color:",";margin-top:14px;margin-bottom:14px;",";text-align:center;width:max-content;background-color:",";background-size:contain;border-radius:999px;padding:10px 16px;:hover{text-decoration:underline;}"],a.Lp,(0,d.V8)("paddingbottom","padding-bottom"),(0,d.V8)("paddingleft","padding-left"),(0,d.V8)("paddingright","padding-right"),(0,d.V8)("paddingtop","padding-top"),(0,d.V8)("fontSize","font-size"),(0,d.V8)("fontWeight","font-weight"),(e=>{let{theme:n,color:t}=e;return t||n.Grey1}),(e=>{let{gravity:n}=e;return"center"===n&&"justify-content: center"}),(e=>{let{theme:n,backgroundColor:t}=e;return t||n.black})),b=r.ZP.div.withConfig({displayName:"PromotionBanner__FeedBannerDescription",componentId:"sc-1i5qndq-10"})(["margin:0 ",";display:flex;justify-content:center;flex-direction:column;align-self:center;",";width:",";height:",";z-index:",";"],(e=>{let{source:n}=e;return n===s.uE?"32px":"64px"}),(e=>{let{source:n}=e;return n===s.uE&&"align-self: center"}),(e=>{let{hasCouponCode:n,source:t}=e;return t===s.uE?n?"91.5%":"81%":n?"80.7%":"60%"}),(e=>{let{hasCouponCode:n,source:t}=e;return t===s.uE?n?"51.3%":"64.1%":n?"55%":"87%"}),(e=>{let{theme:n,hasAnimation:t}=e;return t&&n.zIndexBase1})),B=r.ZP.div.withConfig({displayName:"PromotionBanner__FeedBannerTitle",componentId:"sc-1i5qndq-11"})(["",";",";",";",";",";",";",";",";",";"],a.Wl,(0,d.V8)("color"),(0,d.V8)("fontSize","font-size"),(0,d.V8)("fontWeight","font-weight"),(0,d.V8)("paddingBottom","padding-bottom"),(0,d.V8)("paddingLeft","padding-left"),(0,d.V8)("paddingRight","padding-right"),(0,d.V8)("paddingTop","padding-top"),(0,d.
1V8)("gravity","text-align")),C=r.ZP.div.withConfig({displayName:"PromotionBanner__FeedBannerSubtitle",componentId:"sc-1i5qndq-12"})(["",";",";margin:2px 0 4px 0;",";",";",";",";",";",";",";"],a.F3,(0,d.V8)("color"),(0,d.V8)("fontSize","font-size"),(0,d.V8)("fontWeight","font-weight"),(0,d.V8)("paddingBottom","padding-bottom"),(0,d.V8)("paddingLeft","padding-left"),(0,d.V8)("paddingRight","padding-right"),(0,d.V8)("paddingTop","padding-top"),(0,d.V8)("gravity","text-align")),P=r.ZP.div.withConfig({displayName:"PromotionBanner__FeedBannerActionSection",componentId:"sc-1i5qndq-13"})(["display:flex;align-items:center;"]),z=r.ZP.div.withConfig({displayName:"PromotionBanner__HorizontalCardsWrapper",componentId:"sc-1i5qndq-14"})(["",";padding-bottom:10px;display:flex;flex-direction:column;",";"],(e=>{let{shouldRenderMobileComponent:n,theme:t}=e;return"background-color: ".concat(n?t.white:t.Grey7)}),(e=>{let{shouldRenderMobileComponent:n}=e;return!n&&"align-items: center"})),w=r.ZP.div.withConfig({displayName:"PromotionBanner__HorizontalCardsTitleSection",componentId:"sc-1i5qndq-15"})(["display:flex;justify-content:space-between;align-items:center;padding:0 16px 0 12px;"]),E=(0,r.ZP)(i.rU).withConfig({displayName:"PromotionBanner__CardWrapper",componentId:"sc-1i5qndq-16"})(["width:",";height:",";margin-right:",";",";border-radius:",";display:flex;flex-direction:column;"],(e=>{let{shouldRenderMobileComponent:n}=e;return n?"96px":"180px"}),(e=>{let{shouldRenderMobileComponent:n}=e;return n?"132px":"138px"}),(e=>{let{shouldRenderMobileComponent:n}=e;return n?"8px":"12px"}),(e=>{let{shouldRenderMobileComponent:n,theme:t}=e;return!n&&"border: 1px solid ".concat(t.Grey5)}),(e=>{let{shouldRenderMobileComponent:n}=e;return n?"4px":"6px"})),I=r.ZP.img.attrs((e=>{let{image:n}=e;return(0,a.kd)(n,"cover")})).withConfig({displayName:"PromotionBanner__CardImage",componentId:"sc-1i5qndq-17"})(["width:100%;height:88px;border-radius:",";"],(e=>{let{shouldRenderMobileComponent:n}=e;return n?"4px 4px 0 0":"5px 5px 0 0"})),N=r.ZP.div.withConfig({displayName:"PromotionBanner__CardTitle",componentId:"sc-1i5qndq-18"})(["height:",";background-color:",";border-radius:",";overflow:hidden;text-overflow:ellipsis;"],(e=>{let{shouldRenderMobileComponent:n}=e;return n?"44px":"50px"}),(e=>{let{theme:n}=e;return n.Grey6}),(e=>{let{shouldRenderMobileComponent:n}=e;return n?"0 0 4px 4px":"0 0 5px 5px"})),v=r.ZP.div.withConfig({displayName:"PromotionBanner__PromoBannerCarouselWrapper",componentId:"sc-1i5qndq-19"})(["width:100%;"," "," @media(min-width:768px) and (max-width:1080px){width:",";}"],(e=>{let{shouldUseMaxWidth:n}=e;return n&&"max-width: ".concat(c._Y,"px;")}),d.cy.desktop(o||(D=["\n    width: ",";\n    border-radius: 8px;\n    margin: 24px auto 0;\n  "],R||(R=D.slice(0)),o=Object.freeze(Object.defineProperties(D,{raw:{value:Object.freeze(R)}}))),(e=>{let{bannerWidth:n}=e;return n&&n>0?"".concat(n,"px"):"900px"})),(e=>{let{bannerWidth:n}=e;return n&&n>0?"".concat(n,"px"):"675px"}));var D,R},
1"./cozy/utils/logger/LogBannerImpression.tsx":function(e,n,t){"use strict";t.d(n,{z:function(){return r}});var o=t("./cozy/data/services/AnalyticsService.tsx");const r=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.y)("IMPRESSION_PROMO_BANNER_FEED",{promo_name:null==e?void 0:e.promo_name,rotating_banner:n.rotatingBanner,animated_banner:Boolean(null==e?void 0:e.animated_banner_url),...n.rotatingBanner&&{position:n.position},...n.rotatingBanner&&{carousel_length:n.carouselLength}})}}
1}]);
2//# sourceMappingURL=cozy_data_actions_BrandFeedActions_tsx-cozy_shared_components_brand_BrandInfoBanner_tsx-cozy_-db3f10.5e2f7448dcb117ba9a0f.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.