PageSourceSearch

https://negosh.com/_next/static/chunks/5442-3aeadd2dfd54650b.js

js negosh.com collected 2026-10-10 00:11:48 UTC 32,092 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b2d53e66-cc10-4af6-ae77-e52f563f8dfb",e._sentryDebugIdIdentifier="sentry-dbid-b2d53e66-cc10-4af6-ae77-e52f563f8dfb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5442],{73821:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(87462),o=n(63366),i=n(67294),a=n(90512),s=n(94780),l=n(89262),d=n(36522),u=n(62191),c=n(1588),p=n(34867);function m(e){return(0,p.ZP)("MuiCard",e)}(0,c.Z)("MuiCard",["root"]);var g=n(85893);let x=["className","raised"],h=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"]},m,t)},y=(0,l.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"}));var f=i.forwardRef(function(e,t){let n=(0,d.i)({props:e,name:"MuiCard"}),{className:i,raised:s=!1}=n,l=(0,o.Z)(n,x),u=(0,r.Z)({},n,{raised:s}),c=h(u);return(0,g.jsx)(y,(0,r.Z)({className:(0,a.Z)(c.root,i),elevation:s?8:void 0,ref:t,ownerState:u},l))})},32136:function(e,t,n){n.d(t,{L:function(){return i},w:function(){return a}});var r=n(12946);let o="checklist/getUserChecklist",i=o,a=async e=>(await r.v_(o,{userUuid:e})).data},53722:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),o=n(14440),i=n(94246);n(67294);var a=n(67421),s=n(74209),l=n(64051),d=n(6293),u={description:{mt:3}},c=e=>{let{isOpen:t=!0,onClose:n,title:c,subtitle:p,description:m,children:g,maxWidth:x,headerDivider:h=!0,closeOnOverlayClick:y,zIndex:f,onKeyDown:C,"data-testid":v,onConfirm:b,action:Z,loading:j=!1,confirmLabel:k,confirmLoadingLabel:w,confirmIcon:S,confirmIconPosition:_,confirmChild:M,confirmDisabled:B,confirmVariant:E,confirmTestId:D,confirmSx:N,onCancel:I,cancelLabel:O,cancelDisabled:q,cancelVariant:A,cancelTestId:R,cancelSx:T,hideCancel:P=!1,hideCancelInMobile:Y=!1,inverseButtons:F=!1,descriptionTestId:U}=e,{t:H}=(0,a.$G)();return(0,r.jsx)(l.Z,{isOpen:t,closeModal:n,modalTitle:c,modalSubtitle:p,maxWidth:x,headerDivider:h,closeOnOverlayClick:y,zIndex:f,onKeyDown:C,"data-testid":v,footerContent:(0,r.jsx)(d.Z,{inverseButtons:F,hideSecondaryButtonInMobile:Y,primaryButtonChild:null!=M?M:(0,r.jsx)(s.Z,{action:Z,loading:j,label:k,loadingLabel:w,icon:S,iconPosition:_}),onPrimaryButtonClick:b,primaryButtonDisabled:B,primaryButtonCustomVariant:E,primaryButtonDataTestId:D,primaryButtonSx:N,...P?{}:{secondaryButtonChild:null!=O?O:H("cancel"),onSecondaryButtonClick:null!=I?I:n,secondaryButtonDisabled:q,secondaryButtonCustomVariant:A,secondaryButtonDataTestId:R,secondaryButtonSx:T}}),children:(0,r.jsxs)(r.Fragment,{children:[void 0!==m&&(0,r.jsx)(o.Z,{sx:u.description,children:(0,r.jsx)(i.Z,{"data-testid":U,children:m})}),g]})})}},11930:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(85893),o=n(49360),i=n(61730),a=n(14440),s=n(37887),l=n(67294),d=n(67421),u=n(68520),c=n(55130),p=n(36981),m=n(29973),g={fixedContainer:{position:"fixed",bottom:0,left:0,right:0,bgcolor:"white",zIndex:3},relativeContainer:{width:"100%",padding:"12px 16px",borderTop:"1px solid",borderColor:"border",display:"flex",flexDirection:"column",gap:1},filtersButton:{width:"100%",alignItems:"center"},badge:{position:"static",flexShrink:0,"& .MuiBadge-badge":{position:"relative",fontSize:"10px",height:"18px",minWidth:"18px",px:"6px",borderRadius:"999px",transform:"none",backgroundColor:"white",color:"primaryStrong",ml:1}},linkContainer:{textAlign:"center",fontSize:"14px"},topContent:{mb:"4px"}},x=e=>{let{onOpenFilters:t,filtersCount:n=0,feedbackHref:x,feedbackLabel:h,topContent:y}=e,{t:f}=(0,d.$G)(),{setBottomOffset:C}=(0,p.p)(),v=(0,o.Z)(),b=(0,i.Z)(v.breakpoints.down("md")),Z=(0,l.useRef)(null);return((0,l.useEffect)(()=>{if(!b)return C(0),()=>C(0);let e=()=>{Z.current&&C(Z.current.offsetHeight)};e();let t=new ResizeObserver(e);return Z.current&&t.observe(Z.current),()=>{t.disconnect(),C(0)}},[C,b]),b)?(0,r.jsx)(a.Z,{ref:Z,sx:g.fixedContainer,"data-testid":"mobile-filters-action-bar",children:(0,r.jsxs)(a.Z,{sx:g.relativeContainer,children:[y&&(0,r.jsx)(a.Z,{sx:g.topContent,children:y}),(0,r.jsxs)(u.Z,{sx:g.filtersButton,variant:"contained",onClick:t,startIcon:(0,r.jsx)(m.Z,{}),"data-testid":"filters-button",children:[f("filters"),n>0?(0,r.jsx)(s.Z,{badgeContent:n,sx:g.badge}):null]}),x&&(0,r.jsx)(a.Z,{sx:g.linkContainer,"data-testid":"mobile-feedback-link",children:(0,r.jsx)(c.Z,{variant:"secondary",href:x,showExternalIcon:!0,target:"_blank",children:h})})]})}):null}},13241:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(85893),o=n(9008),i=n.n(o);n(67294);var a=n(12001);function s(e){let{title:t,description:n,robots:o,canonical:s,ogUrl:l,ogTitle:d,ogDescription:u,ogImage:c=a.z,ogImageAlt:p="Negosh logo on a purple background"}=e,m=null!=d?d:t,g=null!=u?u:n,x=c===a.z;return(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:t}),n&&(0,r.jsx)("meta",{name:"description",content:n}),o&&(0,r.jsx)("meta",{name:"robots",content:o}),s&&(0,r.jsx)("link",{rel:"canonical",href:s}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:title",content:m}),g&&(0,r.jsx)("meta",{property:"og:description",content:g}),l&&(0,r.jsx)("meta",{property:"og:url",content:l}),(0,r.jsx)("meta",{property:"og:image",content:c}),(0,r.jsx)("meta",{property:"og:image:secure_url",content:c}),(0,r.jsx)("meta",{property:"og:image:alt",content:p}),x&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image:type",content:"image/png"}
1),(0,r.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,r.jsx)("meta",{property:"og:image:height",content:"630"})]}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:m}),g&&(0,r.jsx)("meta",{name:"twitter:description",content:g}),(0,r.jsx)("meta",{name:"twitter:image",content:c}),(0,r.jsx)("meta",{name:"twitter:image:alt",content:p})]})}},12001:function(e,t,n){n.d(t,{R:function(){return o},z:function(){return r}});let r="https://negosh.com/images/SEO/negosh/head/negosh.png",o={"@type":"Organization","@id":"https://negosh.com/#organization",name:"Negosh Inc.",url:"https://negosh.com",logo:r,address:{"@type":"PostalAddress",streetAddress:"127 W 26th St",addressLocality:"New York",addressRegion:"NY",postalCode:"10001",addressCountry:"US"}}},73018:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(85893),o=n(14440),i=n(37887);n(67294);var a=n(44850),s={container:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:0,width:"100%",gap:1},label:e=>({flex:1,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",...e&&{color:e}}),badge:{position:"static",flexShrink:0,"& .MuiBadge-badge":{position:"relative",fontSize:"10px",height:"18px",minWidth:"18px",px:"6px",borderRadius:"999px",transform:"none",backgroundColor:"primaryStrong",color:"white"}},checkIcon:(e,t)=>({color:e?t||"primaryStrong":"transparent"})};function l(e){let{label:t,count:n,hideBadge:l=!1,selected:d,color:u}=e,c=!!n&&n>0;return(0,r.jsxs)(o.Z,{sx:s.container,children:[void 0!==d&&(0,r.jsx)(a.Z,{sx:s.checkIcon(d,u)}),(0,r.jsx)(o.Z,{sx:s.label(u),children:t}),c&&!l?(0,r.jsx)(i.Z,{badgeContent:n,sx:s.badge}):null]})}},29973:function(e,t,n){var r=n(85893);let o=(0,n(57680).Z)((0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12 21C11.7167 21 11.4792 20.9042 11.2875 20.7125C11.0958 20.5208 11 20.2833 11 20V16C11 15.7167 11.0958 15.4792 11.2875 15.2875C11.4792 15.0958 11.7167 15 12 15C12.2833 15 12.5208 15.0958 12.7125 15.2875C12.9042 15.4792 13 15.7167 13 16V17H20C20.2833 17 20.5208 17.0958 20.7125 17.2875C20.9042 17.4792 21 17.7167 21 18C21 18.2833 20.9042 18.5208 20.7125 18.7125C20.5208 18.9042 20.2833 19 20 19H13V20C13 20.2833 12.9042 20.5208 12.7125 20.7125C12.5208 20.9042 12.2833 21 12 21ZM4 19C3.71667 19 3.47917 18.9042 3.2875 18.7125C3.09583 18.5208 3 18.2833 3 18C3 17.7167 3.09583 17.4792 3.2875 17.2875C3.47917 17.0958 3.71667 17 4 17H8C8.28333 17 8.52083 17.0958 8.7125 17.2875C8.90417 17.4792 9 17.7167 9 18C9 18.2833 8.90417 18.5208 8.7125 18.7125C8.52083 18.9042 8.28333 19 8 19H4ZM8 15C7.71667 15 7.47917 14.9042 7.2875 14.7125C7.09583 14.5208 7 14.2833 7 14V13H4C3.71667 13 3.47917 12.9042 3.2875 12.7125C3.09583 12.5208 3 12.2833 3 12C3 11.7167 3.09583 11.4792 3.2875 11.2875C3.47917 11.0958 3.71667 11 4 11H7V10C7 9.71667 7.09583 9.47917 7.2875 9.2875C7.47917 9.09583 7.71667 9 8 9C8.28333 9 8.52083 9.09583 8.7125 9.2875C8.90417 9.47917 9 9.71667 9 10V14C9 14.2833 8.90417 14.5208 8.7125 14.7125C8.52083 14.9042 8.28333 15 8 15ZM12 13C11.7167 13 11.4792 12.9042 11.2875 12.7125C11.0958 12.5208 11 12.2833 11 12C11 11.7167 11.0958 11.4792 11.2875 11.2875C11.4792 11.0958 11.7167 11 12 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H12ZM16 9C15.7167 9 15.4792 8.90417 15.2875 8.7125C15.0958 8.52083 15 8.28333 15 8V4C15 3.71667 15.0958 3.47917 15.2875 3.2875C15.4792 3.09583 15.7167 3 16 3C16.2833 3 16.5208 3.09583 16.7125 3.2875C16.9042 3.47917 17 3.71667 17 4V5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H17V8C17 8.28333 16.9042 8.52083 16.7125 8.7125C16.5208 8.90417 16.2833 9 16 9ZM4 7C3.71667 7 3.47917 6.90417 3.2875 6.7125C3.09583 6.52083 3 6.28333 3 6C3 5.71667 3.09583 5.47917 3.2875 5.2875C3.47917 5.09583 3.71667 5 4 5H12C12.2833 5 12.5208 5.09583 12.7125 5.2875C12.9042 5.47917 13 5.71667 13 6C13 6.28333 12.9042 6.52083 12.7125 6.7125C12.5208 6.90417 12.2833 7 12 7H4Z",fill:"currentColor"})}),"TuneIcon");t.Z=o},11633:function(e,t,n){n.d(t,{$9:function(){return u},H:function(){return d},JZ:function(){return o},UK:function(){return a},WG:function(){return s},ex:function(){return l},h3:function(){return i}});var r=n(5454);let o=e=>e===r.y_.ANY,i=e=>e===r.y_.RECOMMENDED,a=e=>e===r.y_.CUSTOM,s=(e,t,n)=>i(e)?t:o(e)?[]:n,l=(e,t)=>
1t(i(e)?"matching-your-profile":o(e)?"any":"custom"),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{customCount:e.length,hideCustomBadge:0===e.length}},u=e=>"minimum_guarantee_amount_asc"===e?"asc":"desc"},46995:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),o=n(14440);n(67294);var i=n(67421),a=n(82986),s=n(25952),l=n(73018),d=n(11633),u={display:"flex",gap:.5,flexDirection:"column"};function c(e){let{options:t,selectedFilterMode:n,selectedCustomOptions:c,setSelectedFilterMode:p,onOpenPicker:m}=e,{t:g}=(0,i.$G)();return(0,r.jsxs)(o.Z,{sx:u,children:[(0,r.jsx)(a.Z,{required:!0,label:g("channels-of-distribution"),options:t,value:(0,d.ex)(n,g),renderValue:()=>(0,r.jsx)(l.Z,{label:(0,d.ex)(n,g),count:c.length,hideBadge:(0,d.JZ)(n)||(0,d.h3)(n),color:(0,d.h3)(n)?"successStrong":void 0}),onChange:e=>{let t=e.target.value;p(t),(0,d.UK)(t)&&m()},inputProps:{"data-testid":"distribution-channels-dropdown"},truncateSize:32}),(0,d.UK)(n)&&(0,r.jsx)(s.Z,{isEmpty:0===c.length,onClick:m,dataTestId:"distribution-channels-custom-select"})]})}},14707:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),o=n(14440);n(67294);var i=n(67421),a=n(82986),s=n(25952),l=n(73018),d=n(11633),u={display:"flex",gap:.5,flexDirection:"column"};function c(e){let{options:t,selectedFilterMode:n,selectedCustomOptions:c,setSelectedFilterMode:p,onOpenPicker:m}=e,{t:g}=(0,i.$G)();return(0,r.jsxs)(o.Z,{sx:u,children:[(0,r.jsx)(a.Z,{required:!0,label:g("product-categories"),options:t,value:(0,d.ex)(n,g),renderValue:()=>(0,r.jsx)(l.Z,{label:(0,d.ex)(n,g),count:c.length,hideBadge:(0,d.JZ)(n)||(0,d.h3)(n),color:(0,d.h3)(n)?"successStrong":void 0}),onChange:e=>{let t=e.target.value;p(t),(0,d.UK)(t)&&m()},inputProps:{"data-testid":"product-categories-dropdown"},truncateSize:32}),(0,d.UK)(n)&&(0,r.jsx)(s.Z,{isEmpty:0===c.length,onClick:m,dataTestId:"product-categories-custom-select"})]})}},76270:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),o=n(14440);n(67294);var i=n(67421),a=n(82986),s=n(25952),l=n(73018),d=n(11633),u={display:"flex",gap:.5,flexDirection:"column"};function c(e){let{options:t,selectedFilterMode:n,selectedCustomOptions:c,setSelectedFilterMode:p,onOpenPicker:m}=e,{t:g}=(0,i.$G)();return(0,r.jsxs)(o.Z,{sx:u,children:[(0,r.jsx)(a.Z,{required:!0,label:g("territories"),options:t,value:(0,d.ex)(n,g),renderValue:()=>(0,r.jsx)(l.Z,{label:(0,d.ex)(n,g),count:c.length,hideBadge:(0,d.JZ)(n)||(0,d.h3)(n),color:(0,d.h3)(n)?"successStrong":void 0}),onChange:e=>{let t=e.target.value;p(t),(0,d.UK)(t)&&m()},inputProps:{"data-testid":"territories-dropdown"},truncateSize:32}),(0,d.UK)(n)&&(0,r.jsx)(s.Z,{isEmpty:0===c.length,onClick:m,dataTestId:"territories-custom-select"})]})}},45797:function(e,t,n){n.d(t,{Z:function(){return eb}});var r=n(85893),o=n(49360),i=n(61730),a=n(14440),s=n(94246),l=n(85945),d=n(17e3),u=n(11163),c=n(67294),p=n(32136),m=n(8864),g=n(85758),x=n(98924),h=n(68520),y=n(74209),f=n(19045),C=n(24966),v=n(11930),b=n(64051),Z=n(6293),j=n(55130),k=n(52785),w=n(73018),S=n(6577),_=n(5454),M=n(84118),B=n(36981),E=n(32885),D=n(4431),N=n(26658),I=n(3419),O=n(22011),q=n(57551),A=n(91639),R=n(13606),T=n(90963),P=n(11633),Y=n(56274),F=n(91799),U=n(60026),H=n(83355),W=n(67421),z=n(1974),L=n(82986),V=n(86352),G={container:{display:"flex",alignItems:"center",gap:1},icon:{fontSize:"22px",color:"neutralSubdued"}};function K(e){let{value:t,onChange:n}=e,{t:o}=(0,W.$G)(),{data:i}=(0,d.a)({queryKey:[z.t,"hideZeroCount"],queryFn:async()=>await (0,z.q)({hideZeroCount:!0}),cacheTime:0,staleTime:0,refetchOnMount:!0}),l=(0,c.useMemo)(()=>[{value:_.y_.ANY,label:o("any")},...(null!=i?i:[]).map(e=>{let t=V.u9[e.id];return{value:e.value,label:(0,r.jsxs)(a.Z,{sx:G.container,children:[t&&(0,r.jsx)(t,{sx:G.icon}),(0,r.jsx)(s.Z,{variant:"bodyS",children:e.valueTranslated||e.value})]})}})],[i,o]);return(0,r.jsx)(L.Z,{required:!0,label:o("brand-category"),options:l,value:t,onChange:e=>n(e.target.value),inputProps:{"data-testid":"brand-category-dropdown"},truncateSize:32})}var $=n(22076),J=n(51902),X={gridWrap:{flexGrow:1,minWidth:0},grid:{display:"grid",gap:2,gridTemplateColumns:{xs:"repeat(1, minmax(0, 1fr))",md:"repeat(2, minmax(0, 1fr))",lg:"repeat(3, minmax(0, 1fr))"},justifyItems:"stretch",alignItems:"stretch"},cardShell:{width:"100%",height:"315px",bgcolor:"white",borderRadius:"16px"},paginationWrap:{display:"flex",justifyContent:"center",pt:"24px",pb:{xs:"40px",md:0}}};function Q(e){var t;let{brands:n,isLoading:o,totalPages:i,page:s,onPageChange:l,take:d=15,categoriesFilterMode:u,favoriteItemUuids:c,onSaveToggle:p,searchTerm:m}=e,g=null!==(t=null==m?void 0:m.trim().toLowerCase())&&void 0!==t?t:"",x=e=>{let t=e.categoriesProductCanonical.map(e=>e.value);return g?[...t].sort((e,t)=>
1Number(t.toLowerCase().includes(g))-Number(e.toLowerCase().includes(g))):t};return(0,r.jsxs)(a.Z,{sx:X.gridWrap,children:[(0,r.jsx)(a.Z,{sx:X.grid,children:o?Array.from({length:d}).map((e,t)=>(0,r.jsx)(a.Z,{sx:X.cardShell},t)):n.map(e=>{var t,n;return(0,r.jsx)($.Z,{state:"default",viewHref:"/brand/".concat(e.uuid,"/").concat(e.name_slug),listingName:e.name,listingDescription:e.tagline||e.description,logoHref:e.image_logo,heroHref:e.image_banner,productCategory:(0,P.JZ)(u)?x(e)[0]:e.matchedProductCategoryName,extraCategoryCount:(0,P.JZ)(u)?e.categoriesProductCanonical.length-1:e.matchedProductCategoryOtherCount,minimumGuarantee:e.minimum_guarantee_amount,displayOpenChip:(null!==(t=e.licenseeProfileTerritoryOverlapCount)&&void 0!==t?t:0)>0&&(null!==(n=e.licenseeProfileProductCategoryOverlapCount)&&void 0!==n?n:0)>0,...e.featured?{type:"featured"}:{},mobileWidth:"100%",desktopWidth:"100%",truncateDescToTwoLines:!0,minHeight:"252px",tracking:{feed:"Marketplace - Grid",itemName:e.name,itemUuid:e.uuid,itemSlug:e.name_slug,itemOwnerUuid:e.user.uuid,itemOwnerName:e.user.company_name},...p?{saved:null==c?void 0:c.includes(e.uuid),onSaveToggle:t=>{t.preventDefault(),t.stopPropagation(),p(e.uuid,e)}}:{}},e.uuid)})}),i>1&&(0,r.jsx)(a.Z,{sx:X.paginationWrap,children:(0,r.jsx)(J.Z,{totalPages:i,selectedPage:s,onPageClick:l})})]})}var ee=n(46995),et=n(87071),en=n(18786);let er={bannerContainer:{...en.Ei,width:"100%",px:"16px",borderRadius:"12px"},bannerContent:{position:"relative",display:"flex",flexDirection:"column",alignItems:"flex-start",py:"16px",gap:"12px"},titleWrapper:{display:"flex",alignItems:"center",gap:"12px"},bannerTitle:{color:"white",textAlign:"left"},openWord:{color:"accent"},editButton:{width:"100%",minHeight:"40px !important",whiteSpace:"nowrap"}};var eo=e=>{let{onEditPreferences:t}=e,{t:n}=(0,W.$G)();return(0,r.jsx)(a.Z,{sx:er.bannerContainer,"data-testid":"matching-profile-banner",children:(0,r.jsxs)(a.Z,{sx:er.bannerContent,children:[(0,r.jsx)(a.Z,{sx:er.titleWrapper,children:(0,r.jsx)(s.Z,{variant:"bodyM",weight:"semibold",sx:er.bannerTitle,children:(0,r.jsx)(W.cC,{i18nKey:"brands-are-open-banner-title",t:n,components:[(0,r.jsx)(a.Z,{component:"span",sx:er.openWord})]})})}),(0,r.jsx)(h.Z,{customVariant:"whitePrimary",sx:er.editButton,onClick:t,startIcon:(0,r.jsx)(et.Z,{}),children:n("edit-your-preferences")})]})})},ei=n(77574),ea=n(83735),es=n(17632),el={alignSelf:"stretch"},ed={color:"primaryStrong",textDecoration:"underline",whiteSpace:"nowrap",cursor:"pointer"},eu=e=>{let{onResetFilters:t}=e,{t:n}=(0,W.$G)();return(0,r.jsx)(ea.Z,{borderless:!0,height:"auto",gutter:0,sx:el,icon:(0,r.jsx)(es.Z,{}),title:n("marketplace-page.no-results.title"),description:(0,r.jsx)(W.cC,{i18nKey:"no-results.description",components:[(0,r.jsx)(ei.Z,{"data-testid":"reset-filters-link",onClick:t,sx:ed},"reset-filters-link")]})})},ec=n(14707),ep=n(22021),em=n(76182),eg=n(96963),ex=n(96760),eh={searchIcon:{fontSize:20,opacity:.7},closeIcon:{fontSize:18,opacity:.7},inputAdornment:{cursor:"pointer"},input:{height:"40px"},requestBrandLinkContainer:e=>({mt:1,fontSize:"14px",lineHeight:"20px",...e&&{textAlign:"center"}}),requestBrandLink:e=>({textAlign:e?"center":"left"})},ey=function(e){let{value:t,onChange:n,onSubmit:o,onClear:i,onRequestBrand:s,centerRequestBrandLink:l=!1}=e,{t:d}=(0,W.$G)();return(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(em.Z,{placeholder:d("search"),value:t,autoComplete:"off",autoCorrect:"off",onChange:e=>n(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(null==o||o())},InputProps:{startAdornment:(0,r.jsx)(ep.Z,{position:"start",children:(0,r.jsx)(ex.Z,{sx:eh.searchIcon})}),endAdornment:t?(0,r.jsx)(ep.Z,{position:"end",onClick:i,sx:eh.inputAdornment,children:(0,r.jsx)(eg.Z,{sx:eh.closeIcon})}):null},"data-testid":"marketplace-search-input",sx:eh.input}),s&&t.trim()&&(0,r.jsx)(a.Z,{sx:eh.requestBrandLinkContainer(l),children:(0,r.jsx)(j.Z,{wrap:!0,onClick:s,sx:eh.requestBrandLink(l),children:d("dont-see-your-brand-2")})})]})};function ef(e){let{value:t,onChange:n}=e,{t:o}=(0,W.$G)(),i=(0,c.useMemo)(()=>[{value:"view_count",label:o("popular")},{value:"created_at",label:o("newest")},{value:"minimum_guarantee_amount",label:o("min-guarantee-highest-first")},{value:"minimum_guarantee_amount_asc",label:o("min-guarantee-lowest-first")}],[o]);return(0,r.jsx)(L.Z,{required:!0,label:o("sort-by"),options:i,value:t,onChange:e=>n(e.target.value),inputProps:{"data-testid":"sort-by-dropdown"},truncateSize:32})}var eC=n(76270);let ev={showRecommendationsButton:{background:en.oW,color:"accent","&:hover":{background:en.oW,filter:"brightness(1.2)"}},pageContainer:e=>({position:"relative",pb:{xs:"".concat(16+e,"px"),md:"64px"}}),contentWrap:{display:"flex",gap:2,flexDirection:"row",alignItems:"flex-start"},title:{mb:{xs:"16px",md:"24px"},mt:{xs:"16px",md:"40px"}},sidebarContainer:{display:{xs:"none",md:"flex"},flexShrink:0,width:"330px",flexDirection:"column",gap:"12px",position:"sticky",top:"24px",alignSelf:"flex-start"},whiteContainer:{display:"flex",p:2,gap:2,flexDirection:"column",backgroundColor:"white",zIndex:1,border:"2px s
1olid",borderColor:"neutralSoftBorder"},linkContainer:{textAlign:"center",fontSize:"14px"},mobileContent:{display:"flex",gap:2,flexDirection:"column",mt:3},requestBrandLinkContainer:{textAlign:"center",fontSize:"14px"}};function eb(e){var t,n,W,z,L;let{initialBrandCategory:V,initialBrands:G,variant:$="marketplace"}=e,{t:J}=(0,q.Z)(),X=(0,o.Z)(),et=(0,u.useRouter)(),en=(0,l.NL)(),er=(0,i.Z)(X.breakpoints.down("md")),{favoriteItemUuids:ei,handleSaveToggle:ea}=(0,O.Z)(),{data:es=[]}=(0,N.Py)(),{data:el=[]}=(0,N.sr)(),{data:ed=[]}=(0,N.vw)(),{bottomOffset:ep}=(0,B.p)(),em=(0,Y.Z)(),{isLicensee:eg,isLicensor:ex}=(0,I.Z)(),{isLogged:eh}=(0,E.J)(),{showNegoshElements:eb}=(0,D.ND)(),eZ="allBrands"===$,ej=eZ?M.Z.allBrands:M.Z.marketplace,ek="string"==typeof et.query.page&&parseInt(et.query.page,10)||1,ew="string"==typeof et.query.search?decodeURIComponent(et.query.search):"",eS="string"==typeof et.query.sortBy?et.query.sortBy:"view_count",e_=null!=V?V:_.y_.ANY,[eM]=(0,c.useState)(ek),[eB]=(0,c.useState)(e_),eE="string"==typeof et.query.categoriesFilterMode?et.query.categoriesFilterMode:_.y_.ANY,eD="string"==typeof et.query.territoriesFilterMode?et.query.territoriesFilterMode:_.y_.ANY,eN="string"==typeof et.query.channelsFilterMode?et.query.channelsFilterMode:_.y_.ANY,eI=(0,c.useMemo)(()=>"string"==typeof et.query.categoriesCustomOptions?et.query.categoriesCustomOptions.split(",").filter(Boolean).map(e=>decodeURIComponent(e)):[],[et.query.categoriesCustomOptions]),eO=(0,c.useMemo)(()=>"string"==typeof et.query.territoriesCustomOptions?et.query.territoriesCustomOptions.split(",").filter(Boolean).map(e=>decodeURIComponent(e)):[],[et.query.territoriesCustomOptions]),eq=(0,c.useMemo)(()=>"string"==typeof et.query.channelsCustomOptions?et.query.channelsCustomOptions.split(",").filter(Boolean).map(e=>decodeURIComponent(e)):[],[et.query.channelsCustomOptions]),[eA,eR]=(0,c.useState)(!1),[eT,eP]=(0,c.useState)(ek),[eY,eF]=(0,c.useState)(!1),eU=(eT-1)*15,[eH,eW]=(0,c.useState)(!1),[ez,eL]=(0,c.useState)(!1),[eV,eG]=(0,c.useState)(!1),[eK,e$]=(0,c.useState)(!1),[eJ,eX]=(0,c.useState)(!1),[eQ,e0]=(0,c.useState)(!1),[e1,e2]=(0,c.useState)(""),[e7,e3]=(0,c.useState)(ew),[e8,e5]=(0,c.useState)(ew),[e9,e4]=(0,c.useState)(eS),[e6,te]=(0,c.useState)(e_),[tt,tn]=(0,c.useState)(eE),[tr,to]=(0,c.useState)(eD),[ti,ta]=(0,c.useState)(eN),[ts,tl]=(0,c.useState)(eI),[td,tu]=(0,c.useState)(eO),[tc,tp]=(0,c.useState)(eq),{data:tm}=(0,d.a)({queryKey:[g.E,em],queryFn:async()=>await (0,g.P)(em),enabled:!!em,refetchOnMount:!0,staleTime:0}),{data:tg}=(0,d.a)({queryKey:[p.L],queryFn:async()=>await (0,p.w)(em),enabled:!!em,refetchOnMount:!0,staleTime:0});null==tg||tg.tasks.some(e=>"not_done"===e.status&&(e.key===R.wE.ADD_USER_PRODUCT_CATEGORIES||e.key===R.wE.ADD_USER_AVAILABLE_TERRITORIES||e.key===R.wE.ADD_USER_CHANNELS_OF_DISTRIBUTION));let[tx,th]=(0,c.useState)(!1);(0,c.useEffect)(()=>{et.isReady&&!tx&&(1!==ek&&eP(ek),ew&&(e3(ew),e5(ew)),"view_count"!==eS&&e4(eS),eE!==_.y_.ANY&&tn(eE),eD!==_.y_.ANY&&to(eD),eN!==_.y_.ANY&&ta(eN),eI.length>0&&tl(eI),eO.length>0&&tu(eO),eq.length>0&&tp(eq),th(!0))},[et.isReady,tx,ek,ew,eS,eE,eD,eN,eI,eO,eq]);let ty=c.useRef(null),tf=e=>{e3(e),ty.current&&clearTimeout(ty.current),ty.current=setTimeout(()=>{let t=e.trim();e5(t),eP(1),t.length>0&&(0,x.g)({event:"Brand Searched",additionalProperties:{"Search String":t}})},300)};(0,c.useEffect)(()=>()=>{ty.current&&clearTimeout(ty.current)},[]),(0,c.useEffect)(()=>{if(!tx)return;let e="string"==typeof et.query.search?decodeURIComponent(et.query.search):"";(e!==e7||e!==e8)&&(e3(e),e5(e),eP("string"==typeof et.query.page&&parseInt(et.query.page,10)||1))},[et.query.search,tx]);let tC=(0,c.useMemo)(()=>{var e;return(null!==(e=null==tm?void 0:tm.categoriesProductCanonical)&&void 0!==e?e:[]).map(e=>e.value).filter(Boolean)},[null==tm?void 0:tm.categoriesProductCanonical]),tv=(0,c.useMemo)(()=>{var e;return(null!==(e=null==tm?void 0:tm.territories)&&void 0!==e?e:[]).filter(Boolean)},[null==tm?void 0:tm.territories]),tb=(0,c.useMemo)(()=>{var e;return(null!==(e=null==tm?void 0:tm.distributionChannelsCanonical)&&void 0!==e?e:[]).map(e=>
1e.value).filter(Boolean)},[null==tm?void 0:tm.distributionChannelsCanonical]),tZ=(null!==(t=null==tC?void 0:tC.length)&&void 0!==t?t:0)===0,tj=(null!==(n=null==tv?void 0:tv.length)&&void 0!==n?n:0)===0,tk=(null!==(W=null==tb?void 0:tb.length)&&void 0!==W?W:0)===0,tw=!eh&&eT===eM&&"view_count"===e9&&e6===eB&&tt===_.y_.ANY&&tr===_.y_.ANY&&ti===_.y_.ANY&&0===ts.length&&0===td.length&&0===tc.length&&""===e8;(0,c.useEffect)(()=>{if(!eY){if(!(eg||ex)){eF(!0);return}em&&(!eg||tm)&&eF(!0)}},[em,eg,ex,tm,eY]),(0,c.useEffect)(()=>{if(!eY)return;let e={};e7&&(e.search=encodeURIComponent(e7)),1!==eT&&(e.page=String(eT)),"view_count"!==e9&&(e.sortBy=e9),tt!==_.y_.ANY&&(e.categoriesFilterMode=tt),tr!==_.y_.ANY&&(e.territoriesFilterMode=tr),ti!==_.y_.ANY&&(e.channelsFilterMode=ti),ts.length>0&&(e.categoriesCustomOptions=ts.map(e=>encodeURIComponent(e)).join(",")),td.length>0&&(e.territoriesCustomOptions=td.map(e=>encodeURIComponent(e)).join(",")),tc.length>0&&(e.channelsCustomOptions=tc.map(e=>encodeURIComponent(e)).join(",")),"string"==typeof et.query.category&&(e.category=et.query.category),et.replace({pathname:et.pathname,query:e},void 0,{shallow:!0})},[e7,eT,e9,tt,tr,ti,ts,td,tc,em,eY]);let tS=()=>{eP(1),e4("view_count"),te(_.y_.ANY),e3(""),e5(""),tl([]),tu([]),tp([]),tn(_.y_.ANY),to(_.y_.ANY),ta(_.y_.ANY),et.pathname!==ej&&et.push(ej)},t_=""===e7&&"view_count"===e9&&e6===_.y_.ANY&&tt===_.y_.ANY&&tr===_.y_.ANY&&ti===_.y_.ANY&&0===ts.length&&0===td.length&&0===tc.length,tM=e=>{let{text:t,count:n=0,hideBadge:o=!0,selected:i=!1,color:a}=e;return(0,r.jsx)(w.Z,{label:t,count:n,hideBadge:o,selected:i,color:a})},tB=(e,t)=>{let{customCount:n,hideCustomBadge:r}=(0,P.H)(t);return[...eg?[{value:_.y_.RECOMMENDED,label:tM({text:J("matching-your-profile"),selected:(0,P.h3)(e),color:"successStrong"})}]:[],{value:_.y_.ANY,label:tM({text:J("any"),selected:(0,P.JZ)(e)})},{value:_.y_.CUSTOM,label:tM({text:J("custom"),count:n,hideBadge:r,selected:(0,P.UK)(e)})}]},tE=(0,c.useMemo)(()=>{let e=(e,t)=>{if(e!==_.y_.CUSTOM)return 0;let{customCount:n,hideCustomBadge:r}=(0,P.H)(t);return r?0:n};return e(tt,ts)+e(tr,td)+e(ti,tc)},[tt,ts,tr,td,ti,tc]),tD=(0,c.useMemo)(()=>tB(tt,ts),[eg,tt,ts]),tN=(0,c.useMemo)(()=>tB(tr,td),[eg,tr,td]),tI=(0,c.useMemo)(()=>tB(ti,tc),[eg,ti,tc]),{data:tO,isLoading:tq}=(0,d.a)({queryKey:[m.j,e9,e6,eU,em,tt,ti,tr,ts,tc,td,e8,tb,tC,tv],queryFn:async()=>{let e={take:15,skip:eU,filterByName:e8,filterByProductCategories:(0,P.WG)(tt,tC,ts),filterByDistributionChannels:(0,P.WG)(ti,tb,tc),filterByTerritories:(0,P.WG)(tr,tv,td),orderField:e9.replace("_asc",""),orderDirection:(0,P.$9)(e9),filterByCategories:e6&&e6!==_.y_.ANY?[e6]:[]};return(0,m.t)(e)},initialData:tw?G:void 0,staleTime:tw?6e4:0,cacheTime:0,refetchOnMount:!tw,keepPreviousData:!0,onSuccess:()=>{eR(!0)}}),tA=null!==(z=null==tO?void 0:tO.itemCount)&&void 0!==z?z:0,tR=null!==(L=null==tO?void 0:tO.items)&&void 0!==L?L:[],tT=0===tR.length&&eA&&!tq,tP=()=>{tZ||tn(_.y_.RECOMMENDED),tj||to(_.y_.RECOMMENDED),tk||ta(_.y_.RECOMMENDED),tZ&&tj&&tk||(e4("created_at"),eP(1)),(tZ||tj)&&eL(!0)},tY=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ey,{value:e7,onChange:tf,onSubmit:()=>e5(e7.trim()),onClear:()=>tf("")}),eV&&(0,r.jsx)(f.Z,{modalTitle:J("product-categories"),groups:(0,T.Pm)((0,F.X)(es)),selectedIds:(0,T.At)(ts,es),onClose:()=>eG(!1),onSave:e=>{tl((0,T.Hq)(e,es)),eG(!1),eP(1)},searchPlaceholder:J("explore-opportunity.search-product-category"),chipOptions:!0,popularSection:{title:J("grouped-picker.most-popular"),otherTitle:J("grouped-picker.all-other-categories"),groupIds:(0,T.Cn)(es)},"data-testid":"product-categories-picker-modal"}),eK&&(0,r.jsx)(f.Z,{modalTitle:J("territories"),groups:(0,T.kL)(el),selectedIds:td,onClose:()=>e$(!1),onSave:e=>{tu(e),e$(!1),eP(1)},searchPlaceholder:J("explore-opportunity.search-territory"),chipOptions:!0,"data-testid":"territories-picker-modal"}),eJ&&(0,r.jsx)(f.Z,{modalTitle:J("channels-of-distribution"),groups:(0,T.Li)((0,F.X)(ed)),selectedIds:(0,T.At)(tc,ed),onClose:()=>eX(!1),onSave:e=>{tp((0,T.Hq)(e,ed)),eX(!1),eP(1)},searchPlaceholder:J("explore-opportunity.search-distribution-channels"),"data-testid":"distribution-channels-picker-modal"}),!eZ&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(ef,{value:e9,onChange:e=>{e4(e),eP(1)}}),(0,r.jsx)(K,{value:e6,onChange:e=>{te(e),eP(1);let t={...et.query};delete t.category,delete t.page;
1let n=e===_.y_.ANY?M.Z.marketplace:M.Z.marketplaceCategory,r=e===_.y_.ANY?t:{...t,category:(0,U.F)(e)};et.push({pathname:n,query:r})}})]}),(0,r.jsx)(ec.Z,{options:tD,selectedFilterMode:tt,setSelectedFilterMode:e=>{if(e===_.y_.RECOMMENDED&&tZ){eL(!0);return}tn(e),eP(1)},selectedCustomOptions:ts,onOpenPicker:()=>eG(!0)}),(0,r.jsx)(eC.Z,{options:tN,selectedFilterMode:tr,setSelectedFilterMode:e=>{if(e===_.y_.RECOMMENDED&&tj){eL(!0);return}to(e),eP(1)},selectedCustomOptions:td,onOpenPicker:()=>e$(!0)}),!eZ&&(0,r.jsx)(ee.Z,{options:tI,selectedFilterMode:ti,setSelectedFilterMode:e=>{if(e===_.y_.RECOMMENDED&&tk){eL(!0);return}ta(e),eP(1)},selectedCustomOptions:tc,onOpenPicker:()=>eX(!0)}),eg&&!eZ&&(0,r.jsx)(h.Z,{fullWidth:!0,variant:"contained",onClick:tP,sx:ev.showRecommendationsButton,children:J("show-recommendations")}),!er&&(0,r.jsx)(h.Z,{fullWidth:!0,customVariant:"neutralSecondary",onClick:()=>tS(),startIcon:(0,r.jsx)(A.Z,{}),disabled:t_,children:J("reset")})]}),tF=(0,P.h3)(tt)&&(0,P.h3)(tr);return(0,r.jsxs)(a.Z,{sx:ev.pageContainer(ep),children:[ez&&(0,r.jsx)(H.Z,{onClose:()=>eL(!1),onChange:()=>{var e,t,n,r,o,i;let a=en.getQueryData([g.E,em]),s=(null!==(r=null==a?void 0:null===(e=a.categoriesProductCanonical)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0,l=(null!==(o=null==a?void 0:null===(t=a.territories)||void 0===t?void 0:t.length)&&void 0!==o?o:0)>0,d=(null!==(i=null==a?void 0:null===(n=a.distributionChannelsCanonical)||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0;tn(s?_.y_.RECOMMENDED:_.y_.ANY),to(l?_.y_.RECOMMENDED:_.y_.ANY),ta(d?_.y_.RECOMMENDED:_.y_.ANY),eP(1)}}),(0,r.jsxs)(C.Z,{children:[(0,r.jsx)(s.Z,{variant:"headingM",sx:ev.title,"data-testid":"marketplace-title",children:eZ?J("all-brands"):J("marketplace")}),(0,r.jsx)(b.Z,{takeFullHeight:!0,isOpen:eH,closeModal:()=>eW(!1),"data-testid":"marketplace-filters-modal",modalTitle:J("filters"),headerDivider:!0,forceMobileVersion:!0,footerContent:(0,r.jsx)(Z.Z,{secondaryButtonChild:(0,r.jsx)(y.Z,{action:"reset"}),secondaryButtonCustomVariant:"neutralSecondary",onSecondaryButtonClick:()=>tS(),secondaryButtonDisabled:t_,primaryButtonChild:(0,r.jsx)(y.Z,{action:"confirm"}),primaryButtonDataTestId:"filters-done-button",onPrimaryButtonClick:()=>eW(!1)}),children:(0,r.jsx)(a.Z,{sx:ev.mobileContent,children:tY()})}),(0,r.jsxs)(a.Z,{sx:ev.contentWrap,children:[(0,r.jsxs)(a.Z,{sx:ev.sidebarContainer,children:[tF&&(0,r.jsx)(eo,{onEditPreferences:()=>eL(!0)}),(0,r.jsx)(S.Z,{sx:ev.whiteContainer,children:tY()}),(0,r.jsx)(a.Z,{sx:ev.requestBrandLinkContainer,children:(0,r.jsx)(j.Z,{wrap:!0,variant:"secondary",onClick:()=>{e2(""),e0(!0)},children:J("dont-see-your-brand-2")})}),em&&(0,r.jsx)(a.Z,{sx:ev.linkContainer,children:(0,r.jsx)(j.Z,{variant:"secondary",href:"".concat(M.Z.feedback,"?subject=marketplace"),showExternalIcon:!0,target:"_blank",children:J("marketplace-feedback-link")})})]}),tT?(0,r.jsx)(eu,{onResetFilters:tS}):(0,r.jsx)(Q,{brands:tR,isLoading:tq,totalPages:Math.ceil(tA/15),page:eT,onPageChange:e=>{eP(e),window.scrollTo({top:0,behavior:"smooth"})},take:15,categoriesFilterMode:tt,favoriteItemUuids:ei,onSaveToggle:ea,searchTerm:e8})]})]}),(0,r.jsx)(v.Z,{filtersCount:tE,onOpenFilters:()=>eW(!0),feedbackHref:em?"".concat(M.Z.feedback,"?subject=marketplace"):void 0,feedbackLabel:J("marketplace-feedback-link"),topContent:(0,r.jsx)(ey,{centerRequestBrandLink:!0,value:e7,onChange:tf,onSubmit:()=>e5(e7.trim()),onClear:()=>tf(""),onRequestBrand:()=>{e2(e8.trim()),e0(!0)}})}),eQ&&(0,r.jsx)(k.Z,{initialBrandName:e1,onClose:()=>e0(!1)})]})}}}]);

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.