PageSourceSearch

https://main.cdn.wish.com/web/ac80df1e8d74/dist/cozy/cozy_data_con…-cozy_shared-12ff32.38369f0cd892b027f8cc.js

js wish.com collected 2026-09-24 07:57:11 UTC 14,614 bytes, 2 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["cozy_data_constants_BrandConstants_tsx-cozy_data_selectors_BrandFeedSelectors_tsx-cozy_shared-12ff32"],{
1"./cozy/data/actions/BrandsActions.tsx":function(n,e,t){"use strict";t.d(e,{dY:function(){return c},Op:function(){return s},ky:function(){return u}});var r=t("./cozy/utils/Api.tsx"),o=async function(){const{data:n}=await(0,r.ZP)("brand/get-authorized");return n.items},i=async n=>{const{data:e}=await(0,r.ZP)("feed/get-filtered-feed-branded-filter",{request_id:n});let t="",o=[];return e.branded_filter&&(t=e.branded_filter.filter_id,e.branded_filter.branded_feed_header&&(o=e.branded_filter.branded_feed_header.brands_section.items)),{category:t,brands:o}},a=async function(){const{data:n}=await(0,r.ZP)("brand/get-learn-more");return n},d=t("./cozy/data/actions/actionNameConstants/BrandsActionNameConstants.tsx");const c=()=>({type:d.Wm,payload:o()}),s=n=>({type:d.jV,payload:i(n)}),u=()=>({type:d.xk,payload:a()})},
1"./cozy/data/actions/actionNameConstants/BrandsActionNameConstants.tsx":function(n,e,t){"use strict";t.d(e,{Wm:function(){return r},P:function(){return o},a:function(){return i},jV:function(){return a},CE:function(){return d},iC:function(){return c},xk:function(){return s},Wr:function(){return u},$:function(){return l}});const r="BRANDS_GET_ALL",o="BRANDS_GET_ALL_FULFILLED",i="BRANDS_GET_ALL_REJECTED",a="BRANDS_GET_BY_CATEGORY",d="BRANDS_GET_BY_CATEGORY_FULFILLED",c="BRANDS_GET_BY_CATEGORY_REJECTED",s="BRANDS_GET_LEARN_MORE",u="BRANDS_GET_LEARN_MORE_FULFILLED",l="BRANDS_GET_LEARN_MORE_REJECTED"},
1"./cozy/data/constants/BrandConstants.tsx":function(n,e,t){"use strict";t.d(e,{pF:function(){return r},yF:function(){return o},lJ:function(){return i},v1:function(){return a},AK:function(){return d},Jr:function(){return c},T1:function(){return s},Fb:function(){return u},Nf:function(){return l}});const r=30,o=65,i=90,a=26,d=100,c=35,s=60,u=16,l=11},
1"./cozy/data/selectors/BrandFeedSelectors.tsx":function(n,e,t){"use strict";t.d(e,{os:function(){return a},V_:function(){return d},JP:function(){return c},Vc:function(){return s},Mk:function(){return u},Kt:function(){return p},ws:function(){return m},BR:function(){return f},XY:function(){return _},H_:function(){return g},i5:function(){return y},cF:function(){return b},P_:function(){return B},wX:function(){return v},zv:function(){return P},wi:function(){return C},$8:function(){return I},FG:function(){return N},Y8:function(){return L},Nf:function(){return j},dE:function(){return E},jU:function(){return Z},uz:function(){return k}});var r=t("./cozy/data/selectors/DataSelectors.tsx"),o=t("./cozy/data/selectors/CategorySelectors.tsx"),i=t("./cozy/data/selectors/BrowserSelectors.tsx");const a=n=>(0,r.Ib)(n).nextOffset,d=n=>(0,r.Ib)(n).productIDs,c=n=>(0,r.Ib)(n).noMoreItems,s=n=>(0,r.Ib)(n).isLoading,u=n=>(0,r.Ib)(n).isInitialData,l=n=>(0,r.Ib)(n).brandHeader,p=n=>{const e=l(n);return null!=e&&e.brand&&e.brand.display_name?e.brand.display_name:e?e.brand.brand_name:""},m=n=>(0,r.Ib)(n).seenProductIDs,f=n=>{const e=l(n),t=e?e.brand:null;return t?t.logo_url:null},_=n=>{const e=l(n),t=e?e.brand:null;return t&&null!==t.logo_aspect_ratio&&void 0!==t.logo_aspect_ratio?t.logo_aspect_ratio:1},g=n=>{const e=l(n);return e?(0,i.LG)(n)?"".concat(e.description):"".concat(e.title,". ").concat(e.description):""},y=n=>{var e,t;return null!==(e=null===(t=l(n))||void 0===t?void 0:t.title)&&void 0!==e?e:""},x=n=>{const e=(0,o.Jk)(n);return e?e.branded_feed_header:null},h=n=>{var e;return null===(e=x(n))||void 0===e?void 0:e.top_section},b=n=>{var e;return null===(e=h(n))||void 0===e?void 0:e.title},B=n=>{var e;return null===(e=h(n))||void 0===e?void 0:e.subtitle},v=n=>{var e;return null===(e=h(n))||void 0===e?void 0:e.bg_image_url},P=n=>{var e;return null===(e=h(n))||void 0===e?void 0:e.desktop_bg_image_url},w=n=>{const e=x(n);return e?e.categories_section:null},C=n=>{const e=w(n);return e?e.title:""},I=n=>{const e=w(n);return e?e.action_text:""},N=n=>{const e=w(n);return e?e.items:null},z=n=>{const e=x(n);return e?e.brands_section:null},L=n=>{const e=z(n);return e?e.title:""},j=n=>{const e=z(n);return e?e.action_text:""},E=n=>{const e=z(n);return e?e.items:null},M=n=>(0,r.Ib)(n).promoDealSpec,Z=n=>{var e;return null===(e=(n=>{var e;return null===(e=M(n))||void 0===e?void 0:e.promo_spec})(n))||void 0===e?void 0:e.banner},k=n=>{var e;return null===(e=M(n))||void 0===e?void 0:e.promo_name}},
1"./cozy/data/selectors/BrandsSelectors.tsx":function(n,e,t){"use strict";t.d(e,{rv:function(){return o},xO:function(){return i},eZ:function(){return a}});var r=t("./cozy/data/selectors/DataSelectors.tsx");const o=n=>(0,r.so)(n).allBrands||[],i=n=>{const e=(0,r.so)(n).brandsByCategory;return e?e.brands:[]},a=n=>(0,r.so)(n).learnMoreData},
1"./cozy/shared/components/brand/BrandLearnMoreModal.tsx":function(n,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t("./node_modules/react-redux/es/index.js"),o=t("./cozy/data/selectors/BrowserSelectors.tsx"),i=t("./cozy/shared/components/hoc/BaseModalHOC.tsx"),a=t("./node_modules/react/index.js"),d=t("./cozy/coco/components/DotLoader/DotLoader.tsx"),c=t("./cozy/coco/components/DesignSpec/TextSpec.tsx"),s=t("./cozy/data/actions/BrandsActions.tsx"),u=t("./cozy/data/selectors/BrandsSelectors.tsx"),l=t("./cozy/shared/styles/brand/BrandPage.tsx"),p=t("./node_modules/react/jsx-runtime.js"),m=(0,r.$j)((n=>({brandsLearnMoreArray:(0,u.eZ)(n)})),(n=>({fetchBrandsLearnMore:()=>n((0,s.ky)())})))((n=>{let{brandsLearnMoreArray:e,fetchBrandsLearnMore:t}=n;return(0,a.useEffect)((()=>{t()}),[]),e?(0,p.jsx)(l.jx,{children:e.map((n=>{let{item_title:e,item_body:t}=n;return(0,p.jsxs)(l.tq,{children:[(0,p.jsx)(c.Z,{textSpec:e}),(0,p.jsx)(c.Z,{textSpec:t})]},e.text)}))}):(0,p.jsx)(d.Z,{})})),f=(0,i.Z)(m,{style:{width:"600px",padding:"32px"},showCloseButton:!0}),_=t("./cozy/mobile/components/common/StickyTitleSlidePanel.tsx"),g=t("./cozy/utils/i18n.tsx"),y=(0,r.$j)((n=>({shouldRenderMobile:(0,o.LG)(n)})))((n=>{let{shouldRenderMobile:e,closeModal:t}=n;return e?(0,p.jsx)(_.Z,{onClose:t,title:(0,g.ag)("Brand Deals"),children:(0,p.jsx)(m,{})}):(0,p.jsx)(f,{onClose:t})}))},
1"./cozy/shared/styles/brand/BrandPage.tsx":function(n,e,t){"use strict";t.d(e,{eA:function(){return g},T4:function(){return y},kM:function(){return x},rV:function(){return h},Wh:function(){return b},zE:function(){return B},W8:function(){return v},jx:function(){return P},tq:function(){return w}});var r,o,i,a,d,c,s,u,l,p=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),m=t("./cozy/shared/styles/Mixins.tsx"),f=t("./cozy/shared/styles/Utils.tsx");function _(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}const g=p.ZP.div.withConfig({displayName:"BrandPage__WidthWrapper",componentId:"sc-30ujgm-0"})(["display:flex;flex-direction:column;",";",""],(0,f.V8)("width"),f.cy.mobile(r||(r=_(["\n    width: 100%;\n    padding: 15px;\n  "])))),y=p.ZP.div.withConfig({displayName:"BrandPage__BrandHeader",componentId:"sc-30ujgm-1"})(["display:flex;overflow:hidden;justify-content:center;background-color:",";",""],(n=>{let{theme:e}=n;return e.white}),f.cy.desktop(o||(o=_(["\n    padding-bottom: 32px;\n  "])))),x=p.ZP.div.withConfig({displayName:"BrandPage__BrandDescriptionWrapper",componentId:"sc-30ujgm-2"})(["display:flex;flex-direction:column;margin-left:24px;",""],f.cy.mobile(i||(i=_(["\n    margin-left: 14px;\n  "])))),h=p.ZP.div.withConfig({displayName:"BrandPage__BrandName",componentId:"sc-30ujgm-3"})([""," "," color:",""],f.cy.mobile(a||(a=_(["\n    ","\n  "])),m.nf),f.cy.desktop(d||(d=_(["\n    ",";\n  "])),m._h),(n=>{let{theme:e}=n;return e.Grey1})),b=p.ZP.div.withConfig({displayName:"BrandPage__BrandDescription",componentId:"sc-30ujgm-4"})([""," "," color:",""],f.cy.desktop(c||(c=_(["\n    margin-top: 8px;\n    ","\n  "])),m.fb),f.cy.mobile(s||(s=_(["\n    margin-top: 3px;\n    ","\n  "])),m.Mc),(n=>{let{theme:e}=n;return e.Grey1})),B=p.ZP.div.withConfig({displayName:"BrandPage__BrandNameIconWrapper",componentId:"sc-30ujgm-5"})(["display:flex;align-items:center;"]),v=p.ZP.div.withConfig({displayName:"BrandPage__BrandLearnMoreButton",componentId:"sc-30ujgm-6"})(["margin-top:",";cursor:pointer;color:",";",";",";"],(n=>{let{isOnFeedPage:e}=n;return e?"10px":"8px"}),(n=>{let{theme:e}=n;return e.primaryColor}),f.cy.mobile(u||(u=_(["\n    margin-left: ",";\n  "])),(n=>{let{isOnFeedPage:e}=n;return e?"18px":"0px"})),(n=>{let{alignLeft:e}=n;return e&&"text-align: left"})),P=p.ZP.div.withConfig({displayName:"BrandPage__BrandLearnMoreModalWrapper",componentId:"sc-30ujgm-7"})(["margin:10px 0 0;text-align:left;",""],f.cy.mobile(l||(l=_(["\n    margin: 10px 16px 16px;\n  "])))),w=p.ZP.div.withConfig({displayName:"BrandPage__BrandLearnMoreEntryWrapper",componentId:"sc-30ujgm-8"})(["margin:14px 0 0;"])},
1"./cozy/shared/styles/brand/BrandsFeedPage.tsx":function(n,e,t){"use strict";t.d(e,{mL:function(){return L},kQ:function(){return j},g9:function(){return E},lP:function(){return M},q6:function(){return Z},JB:function(){return k},tI:function(){return A},v2:function(){return F},ti:function(){return D},$r:function(){return O},CQ:function(){return S},yU:function(){return R},AW:function(){return T},sN:function(){return G},qM:function(){return W},ZH:function(){return U},Os:function(){return q}});var r,o,i,a,d,c,s,u,l,p,m,f,_,g,y,x,h,b,B,v,P,w=t("./node_modules/styled-components/dist/styled-components.browser.esm.js"),C=t("./node_modules/react-router-dom/esm/react-router-dom.js"),I=t("./cozy/shared/styles/Mixins.tsx"),N=t("./cozy/shared/styles/Utils.tsx");function z(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}const L=w.ZP.div.withConfig({displayName:"BrandsFeedPage__OuterWrapper",componentId:"sc-26661r-0"})(["",";flex-direction:column;"],I.qO),j=w.ZP.div.withConfig({displayName:"BrandsFeedPage__FeedLabel",componentId:"sc-26661r-1"})([""," width:",";"],I.zb,(n=>{let{width:e}=n;return e})),E=w.ZP.div.withConfig({displayName:"BrandsFeedPage__FeedLabelText",componentId:"sc-26661r-2"})(["",""],N.cy.mobile(r||(r=z(["\n    padding: 20px 0px 10px 16px;\n  "])))),M=w.ZP.div.withConfig({displayName:"BrandsFeedPage__BrandsTopBanner",componentId:"sc-26661r-3"})(["background-image:url(",");background-repeat:no-repeat;background-color:",";width:100%;"," "," background-position:center bottom;flex-direction:column;"],(n=>{let{imageUrl:e}=n;return e}),(n=>{let{theme:e}=n;return e.white}),N.cy.desktop(o||(o=z(["\n    height: 150px;\n    ",";\n    background-size: contain;\n  "])),I.qO),N.cy.mobile(i||(i=z(["\n    height: 98px;\n    justify-content: center;\n    display:flex;\n    background-size: cover;\n  "])))),Z=w.ZP.div.withConfig({displayName:"BrandsFeedPage__BrandsHeaderWrapper",componentId:"sc-26661r-4"})([""," ",""],N.cy.desktop(a||(a=z(["\n    ",";\n  "])),I.qO),N.cy.mobile(d||(d=z(["\n    margin-left: 18px;\n  "])))),k=w.ZP.div.withConfig({displayName:"BrandsFeedPage__BrandsHeaderTitle",componentId:"sc-26661r-5"})(["color:",";"," ",""],(n=>{let{theme:e}=n;return e.Grey1}),N.cy.desktop(c||(c=z(["\n    ",";\n    margin-right: 10px;\n  "])),I.Wl),N.cy.mobile(s||(s=z(["\n    ",";\n    ",";\n  "])),I.tO,I.Mb)),A=w.ZP.div.withConfig({displayName:"BrandsFeedPage__BrandsHeaderText",componentId:"sc-26661r-6"})(["color:",";"," ",""],(n=>{let{theme:e}=n;return e.Grey1}),N.cy.desktop(u||(u=z(["\n    ",";\n    padding-top: 10px;\n  "])),I.F3),N.cy.mobile(l||(l=z(["\n    ",";\n    padding-top: 4px;\n    margin-left: 18px;\n  "])),I.Mc)),F=w.ZP.div.withConfig({displayName:"BrandsFeedPage__Menu",componentId:"sc-26661r-7"})([""," "," background-color:",";"],(0,N.V8)("width"),(0,N.V8)("padding"),(n=>{let{theme:e}=n;return e.white})),D=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuHeader",componentId:"sc-26661r-8"})(["display:flex;justify-content:space-between;align-items:center;"," ",""],N.cy.desktop(p||(p=z(["\n    margin: 30px 30px 15px 45px;\n  "]))),N.cy.mobile(m||(m=z(["\n    margin: 16px;\n    ","\n  "])),(0,N.V8)("marginTop","margin-top"))),O=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuViewAll",componentId:"sc-26661r-9"})(["color:",";"," ",""],(n=>{let{theme:e}=n;return e.primaryColor}),N.cy.desktop(f||(f=z(["\n    ",";\n  cursor: pointer;\n  "])),I.Mc),N.cy.mobile(_||(_=z(["\n    ",";\n  "])),I.Mc)),S=O.withComponent(C.rU),R=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuTitle",componentId:"sc-26661r-10"})([""," ",""],N.cy.desktop(g||(g=z(["\n    ",";\n  "])),I.tO),N.cy.mobile(y||(y=z(["\n    ",";\n  "])),I.zb)),T=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuItemsWrapper",componentId:"sc-26661r-11"})([""," ",""],N.cy.mobile(x||(x=z(["\n    ",";\n    margin: 0px 8px;\n    display: flex;\n  "])),I.zV),N.cy.desktop(h||(h=z(["\n    margin: 0 24px 32px 24px;\n    ",";\n  "])),I.qO)),G=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuItem",componentId:"sc-26661r-12"})(["display:flex;flex-direction:column;"," ",""],N.cy.desktop(b||(b=z(["\n    margin: 15px 15px 0 15px;\n    cursor: pointer;\n    height: 130px;\n    width: ",";\n    ",";\n  "])),(n=>{let{width:e}=n;return e||"100%"}),I.qO),N.cy.mobile(B||(B=z(["\n    margin-left: 8px;\n  "])))),W=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuItemText",componentId:"sc-26661r-13"})(["",";margin-top:12px;color:",";text-align:center;width:100%;height:30px;"],I.Mc,(n=>{let{theme:e}=n;return e.Grey2})),U=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuItemIcon",componentId:"sc-26661r-14"})(["background-image:url('","');background-size:contain;background-position:50% 50%;background-repeat:no-repeat;width:",";height:",";"],(n=>{let{src:e}=n;return encodeURI(e)||""}),(n=>{let{width:e}=n;return e||"100%"}),(n=>{let{height:e}=n;return e||"100%"})),q=w.ZP.div.withConfig({displayName:"BrandsFeedPage__MenuItemIconContainer",componentId:"sc-26661r-15"})([""," "," border:1px solid ",";background-color:",";border-radius:",";",";flex-direction:column;"],N.cy.mobile(v||(v=z(["\n    width: ",";\n    height: ",";\n  "])),(n=>{let{width:e}=n;return e||"75px"}),(n=>{let{height:e}=n;return e||"75px"})),N.cy.desktop(P||(P=z(["\n    width: ",";\n    height: ",";\n  "])),(n=>{let{width:e}=n;return e||"80px"}),(n=>{let{height:e}=n;return e||"80px"})),(n=>{let{theme:e}=n;return e.Grey5}),(n=>{let{theme:e}=n;return e.white}),(n=>{let{borderRadius:e}=n;return e||"50%"}),I.qO)}
1}]);
2//# sourceMappingURL=cozy_data_constants_BrandConstants_tsx-cozy_data_selectors_BrandFeedSelectors_tsx-cozy_shared-12ff32.38369f0cd892b027f8cc.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.