1var ce=Object.defineProperty,de=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var A=(e,r,a)=>r in e?ce(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,T=(e,r)=>{for(var a in r||(r={}))ue.call(r,a)&&A(e,a,r[a]);if(D)for(var a of D(r))me.call(r,a)&&A(e,a,r[a]);return e},N=(e,r)=>de(e,pe(r));import{j as t,P as F,e as z,A as he,C as xe,d as ge,B as _,b as X,I as Q,S as Se,c as P,av as fe,ad as be}from"./npm.sellpy-design-system.sUaPRvy7.bundle.js";import{a as f,u as Y,b as ye,c as je,N as U}from"./npm.react-router.eGoWS0aR.bundle.js";import{i as w}from"./npm.lodash.B-mb_ip_.bundle.js";import{g as m,f as Te}from"./npm.styled-components.CXmCnM24.bundle.js";import{S as Pe}from"./BreadCrumbs.CyHu54Xk.bundle.js";import{T as q,u as Ce,s as _e,a as V,f as we,S as K,b as ve,P as Fe,F as Me,c as Ee}from"./SearchWrapper.D54h-n3y.bundle.js";import{r as b}from"./npm.react-hook-form.C-gy3V91.bundle.js";import"./npm.apollo-client.D2roezfX.bundle.js";import{b as M,a_ as ke,dE as Le,dF as Be,dG as He,dH as Ie,dI as Oe,dJ as $e,al as De,am as Ae,dK as Ne,dL as J,bI as S,d as Ue,dp as Re,F as We,af as Ge,dM as ze,a1 as Xe,b3 as g,bt as R,dN as Qe,dO as Ye,aH as qe,R as Ve,E as Ke,dP as Je,bf as W,m as Ze,dQ as et,dR as v,dS as Z,dT as tt,dU as st,dV as rt,dW as at,dX as nt,dY as ot}from"./index.OKbXaoKY.bundle.js";import{V as it}from"./VerticalFilters.CPLthl8j.bundle.js";import{u as lt,a as ct,b as ee,T as dt}from"./useGetPLPTranslations.DX6-wHsw.bundle.js";import{u as x}from"./npm.react-i18next.DBIOEc1H.bundle.js";import{N as pt}from"./NotFound.DRdsYYBo.bundle.js";import{u as ut}from"./useSimilarBrands.MSVUzIyJ.bundle.js";import{a as mt}from"./useCopyToClipboard.Dd2FYDoY.bundle.js";import{u as ht}from"./TwoTileBanner.sifttanB.bundle.js";import{a as xt,c as gt}from"./index.vwllTy2D.bundle.js";import{u as St}from"./FilterHeader.DAmEQeot.bundle.js";import{M as ft}from"./MetaTagPlacer.DzHyTaDQ.bundle.js";import{s as G}from"./spaNavigate.BA2fU4na.bundle.js";import"./npm.react-dom.DRhp71ng.bundle.js";import"./npm.sellpy-commons.CqmbWWp3.bundle.js";import"./npm.immutable.3wsaRX37.bundle.js";import"./npm.luxon.3NOFZn7k.bundle.js";import"./getInternalLink.CW53TYiH.bundle.js";import"./MarketItemTile.wt4_JFSQ.bundle.js";import"./tools.QI2CxAu_.bundle.js";import"./utils.Bj4bPQRb.bundle.js";import"./errors.DbzKVgYe.bundle.js";import"./npm.sentry-react.D1FVWAhI.bundle.js";import"./itemStatus.ChCpFNqm.bundle.js";import"./ItemImage.BQUo4onz.bundle.js";import"./useImageAlt.CEA-7ZQ2.bundle.js";import"./npm.i18next.B74d65Th.bundle.js";import"./constants.C6kTmG7X.bundle.js";import"./npm.swr.CGFXCyXz.bundle.js";import"./useDebounce.uYIVzDkN.bundle.js";import"./SizeProfilesModal.D8Lc5e1W.bundle.js";import"./useSameSiteUprankingFilter.BGguM1U2.bundle.js";import"./SavedBrandsModal.BOanH0l3.bundle.js";import"./useSimilarBrandsFromBrands.DK08YQQ6.bundle.js";import"./requestSource.DVVvlAfs.bundle.js";import"./validateBrandExistence.DUH6Ohxa.bundle.js";import"./usePersonalisedSearch.DTxgTdH-.bundle.js";import"./featureConfig.B7udWyBA.bundle.js";import"./useCategoryIcons.CaC8WMcG.bundle.js";import"./getDefaultAlgoliaFilters.BROJKB2W.bundle.js";import"./npm.graphql.ClDiDpi3.bundle.js";import"./npm.zod.DEnjmUYT.bundle.js";import"./npm.parse.B9RAjAGR.bundle.js";import"./npm.algolia.BDObKZ-5.bundle.js";import"./translations.FODGUIZZ.bundle.js";import"./utils.ByO6efJv.bundle.js";import"./LayoutCenteredColumn.y-g3bwHe.bundle.js";import"./fetchSimilarBrands.6AV-qByW.bundle.js";import"./usePrevious.BvF0VTrl.bundle.js";try{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="cb8ac780-d0d1-47e9-8fba-c2bcf60dd93e",e._sentryDebugIdIdentifier="sentry-dbid-cb8ac780-d0d1-47e9-8fba-c2bcf60dd93e")}catch(e){}{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sellpy-market":!0})}const bt=m(F)` 2 color: ${({theme:e})=>e.color.grey.shade3}; 3`,te=Te` 4 text-decoration: underline; 5 color: ${({theme:e})=>e.color.grey.shade3}; 6 &:hover { 7 cursor: pointer; 8 text-decoration: none; 9 } 10`,yt=m(z)` 11 ${te} 12 display: block; 13`,jt=m(z)` 14 ${te} 15 display: inline-block; 16`,Tt=550,Pt=200,Ct=88,_t=({description:e})=>{e=e.slice(0,Tt);const{isMobile:r}=M(),a=r?Ct:Pt,n=e.length>=a,[s,o]=b.useState(n),{t:i}=x("common");return t.jsxs("div",{children:[t.jsxs(bt,{design:"body3",children:[s?e.slice(0,a).trim()+"⦠":e,n&&s&&t.jsx(jt,{design:"body3",onClick:()=>o(!1),children:i("readMore")})]}),n&&!s&&t.jsx(yt,{design:"body3",onClick:()=>o(!0),children:i("readLess")})]})},wt=({instagram:e})=>{const r=ke().android.device?`intent://instagram.com/_u/${e}/#Intent;package=com.instagram.android;scheme=https;S.browser_fallback_url=https://www.instagram.com/${e}/;end`:`https://www.instagram.com/${e}/`;return t.jsx(he,{href:r,children:t.jsx(xe,{title:`@${e}`,variant:"text",color:"blue",style:{marginLeft:-14}})})}
16,vt=({headline:e,subtitle:r,description:a,trackedSearch:n=!0,instagram:s})=>{const[o,i]=b.useState(!1),{isMobile:l}=M(),{t:c}=x(["storePage","search"]),d=()=>{l.any||navigator.share?navigator.share({text:c("search:storeHeader.shareMessageMobile"),url:document.URL}):navigator.clipboard.writeText(document.URL).then(()=>{De({header:c("search:storeHeader.shareMessageToast"),body:"",type:Ae.INFO})})};return t.jsxs(He,{children:[t.jsxs("div",{children:[t.jsx(ge,{design:"h4",noMargin:!0,children:e}),r&&t.jsx(Ie,{design:"body2",children:r})]}),a&&t.jsx(_t,{description:a}),t.jsxs(Oe,{children:[s&&t.jsx(wt,{instagram:s}),t.jsx($e,{children:t.jsx(_,{label:c("shareStore"),size:"small",color:"grey",rightIcon:t.jsx(X,{name:Q.SHARE}),onClick:d})})]}),n&&t.jsx(q,{open:o,onClose:()=>i(!1)})]})},se=({headline:e,subtitle:r,description:a,src:n,alt:s,trackedSearch:o=!0,instagram:i,hotspot:l,style:c})=>(l=l?{x:l.x*100,y:l.y*100}:{x:50,y:50},t.jsxs(Le,{style:c,children:[n&&t.jsx(Be,{src:n,alt:s,hotspot:l}),t.jsx(vt,{headline:e,subtitle:r,description:a,trackedSearch:o,instagram:i})]})),Ft=({headline:e,src:r,alt:a,description:n,trackedSearch:s=!0})=>{const[o,i]=b.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx(Ne,{headline:e,src:r,alt:a,description:n}),s&&t.jsx(q,{open:o,onClose:()=>i(!1)})]})},Mt=["material","brand"],Et=()=>{const{facet:e,value:r}=J(),{t:a}=x("search");return t.jsx(t.Fragment,{children:Mt.includes(e)?t.jsx(se,{headline:S(r),description:a(`storeHeader.placeholderDescriptions.${e}`,{[e]:S(r)})}):t.jsx(Ft,{headline:S(r)})})},re=e=>e&&e.replace(e[0],e[0].toUpperCase()),kt=()=>{const e=f(),{t:r}=x(["search","common"]),a=Y(),[n,s]=b.useState(!1),o=Ue();if(!(a.pathname.includes("/store")&&o&&o===e.value))return null;const l=a.search?"&":"?",c=window.location.href+`${l}utm_source=partner_free&utm_medium=referral_partner&utm_campaign=XX_cm_by_al_sellpysharestore&utm_content=${e.value}`;return[t.jsx(_,{fullWidth:!0,color:"grey",label:re(r("store.modal.headline")),leftIcon:t.jsx(X,{name:Q.SHARE}),onClick:()=>s(!0)},"shareButton"),t.jsxs(Se,{isOpen:n,headline:r("store.modal.headline"),onClose:()=>s(!1),children:[t.jsx(F,{design:"body1",children:r("store.modal.subHeadline")}),t.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1em"},children:[t.jsx(Re,{value:c,disabled:!0,style:{border:"1px solid lightgrey",padding:"0.75em"}}),t.jsx(_,{size:We.SMALL,label:r("common:copy"),onClick:()=>mt({textToCopy:c})})]})]},"testet")]},Lt=m.div` 17 display: flex; 18 justify-content: center; 19 width: 75%; 20 margin: auto; 21`,Bt=()=>t.jsx(Lt,{children:t.jsx(kt,{})}),ae=()=>{const{value:e}=f(),r=Ge();return r&&r.objectId===e},Ht=["brand","type","color","model","material","pattern","condition"],It=()=>{let{facet:e,value:r}=f();return r=S(r),{filters:`${S(Ht.includes(e)?`metadata.${e}`:e)}:"${r==null?void 0:r.replaceAll('"','\\"')}"`}},Ot=({type:e,owner:r,brand:a,user:n,isOwnStore:s})=>e?"categorySecondHand":r?"bannerWithOwner":a?"brandWithoutCategory":n?s?"ownStore":"genericUserStore":"categorySecondHand",ne=({type:e,owner:r,brand:a,user:n,url:s,imageUrl:o,description:i,title:l,material:c,instagram:d,SEODescriptionOverride:p})=>{const{t:u}=x("storePage"),{hasInitialResults:h}=Ce(),y=ae(),E=Ot({type:e,owner:r,brand:a,user:n,isOwnStore:y}),k={domain:Xe,category:e||re(c),owner:r,brand:a},L=[{url:s,name:e||r||a||n}],B=lt(),{translatePath:H,incomplete:I}=ze({skipQueryParams:!B});ct({translatePath:H,plpTranslationsEnabled:B,incomplete:I});const{results:j}=St(),O=l||u(`${E}.helmetMetaTags.title`,k),$=i||u(`${E}.helmetMetaTags.description`,k),le=h?xt({breadcrumbs:L,hits:(j==null?void 0:j.hits)||[],collectionTitle:O,collectionDescription:p||$,pageUrl:s,creatorName:r,instagram:d}):null;return t.jsxs(ft,{title:O,description:$,url:s,image:o,skipAlternates:I,translatePath:H,children:[gt(L),le]})},C=()=>Qe(Ye(window.location.pathname)),$t=e=>{switch(e){case"collab":return({data:r,t:a})=>{var u,h;const{title:n,image:s,description:o,urlSlug:i,ownerName:l,instagram:c,tags:d}=r,p=d&&d.includes("clearance-sale")?a("storeHeader.placeholderDescriptions.businessSale"):a("storeHeader.placeholderDescriptions.influencer",{name:l||n});return{metaTagProps:{owner:l||n,url:R(i==null?void 0:i.current),imageUrl:(u=s==null?void 0:s.asset)!=null&&u._ref?g.imageUrlFromAsset(s.asset):void 0,description:o,instagram:c},storeHeaderProps:{headline:n,alt:s==null?void 0:s.alt,src:(h=s==null?void 0:s.asset)!=null&&h._ref?g.imageUrlFromAsset(s.asset):void 0,hotspot:s==null?void 0:s.hotspot,description:o||p,instagram:c}}};case"brand":return({data:r,t:a})=>{var c,d;const{name:n,logoImage:s,description:o,SEOtitle:i,SEOdescription:l}=r;return{metaTagProps:{brand:n,imageUrl:(c=s==null?void 0:s.asset)!=null&&c._ref?g.imageUrlFromAsset(s.asset):void 0,url:C(),title:i||a("SEO.brandDefault",{brand:n}),description:l||o},storeHeaderProps:{headline:n,alt:s==null?void 0:s.alt,src:(d=s==null?void 0:s.asset)!=null&&d._ref?g.imageUrlFromAsset(s.asset):void 0,hotspot:s==null?void 0:s.hotspot,description:!w(o)&&o||a("storeHeader.placeholderDescriptions.brand",{brand:n})}}};case"type":return({data:r})=>{const{name:a,description:n,SEOtitle:s,SEOdescription:o}=r;return{metaTagProps:{owner:a,url:C(),description:o||n,title:s},storeHeaderProps:{headline:a,description:n}}};default:return({data:r,t:a})=>{var d,p;const{subtitle:n,image:s,description:o,urlSlug:i}=r,l=r.title||r.name||e,c=a("storeHeader.placeholderDescriptions.sanity",{storeName:l});return{metaTagProps:{owner:l,url:i?R(i==null?void 0:i.current):C(),imageUrl:(d=s==null?void 0:s.asset)!=null&&d._ref?g.imageUrlFromAsset(s.asset):void 0,description:o},storeHeaderProps:{headline:l,subtitle:n,alt:s==null?void 0:s.alt,src:(p=s==null?void 0:s.asset)!=null&&p._ref?g.imageUrlFromAsset(s.asset):void 0,hotspot:s==null?void 0:s.hotspot,description:o||c}}}}},Dt=e=>{const{data:r}=qe(Je,{$storeId:e,$region:Ke(),$locale:Ve},{skip:!e});return(r||[]).filter(a=>a.urlSlug&&a.title)},At=m.div` 22 display: flex; 23 flex-direction: column; 24 gap: ${({theme:e})=>e.spacing.gap.airy.m}px; 25 grid-area: sm; 26 margin: ${({theme:e})=>e.spacing.padding.airy.l}px 0; 27 padding: 0 ${({theme:e})=>e.spacing.padding.m}px; 28 29 ${Ze.largerThanTablet} { 30 padding: 0; 31 } 32`,Nt=m.div` 33 display: flex; 34 flex-direction: column; 35 gap: ${({theme:e})=>e.spacing.gap.m}px; 36 max-width: 600px; 37`,Ut=m.div` 38 display: flex; 39 flex-direction: column; 40 gap: ${({theme:e})=>e.spacing.gap.m}px; 41 max-width: 736px; 42`,Rt=m.div` 43 display: flex; 44 flex-direction: column; 45 gap: ${({theme:e})=>e.spacing.gap.m}px; 46 max-width: 600px; 47`,Wt=m.div` 48 display: flex; 49 flex-direction: column; 50 gap: ${({theme:e})=>e.spacing.gap.s}px; 51`,Gt=({seoTitle:e,seoDescription:r,similarBrands:a,storeId:n})=>{const{t:s}=x("storePage"),o=ye(),i=Dt(n),l=window.location.pathname,c=!!(e&&r),d=(a||[]).map((p,u)=>{const h=`/store/brand/${encodeURIComponent(p)}`;return{id:p,title:p,variant:"outlined",color:"black",href:h,onClick:y=>{W({sliderId:l,sliderType:"similarBrands",tileId:p,index:u,totalCount:a.length})(),G(y,o,h)}}});return!c&&d.length===0&&i.length===0?null:t.jsxs(At,{children:[c&&t.jsxs(Nt,{children:[t.jsx(P,{design:"h7",noMargin:!0,children:e}),t.jsx(F,{design:"body3",children:r})]}),d.length>0&&t.jsxs(Ut,{children:[t.jsx(P,{design:"h7",noMargin:!0,children:s("brandLanding.similarBrandsHeadline")}),t.jsx(fe,{variant:"static",ariaLabel:s("brandLanding.similarBrandsHeadline"),items:d})]}),i.length>0&&t.jsxs(Rt,{children:[t.jsx(P,{design:"h7",noMargin:!0,children:s("brandLanding.relatedContentHeadline")}),t.jsx(Wt,{children:i.map((p,u)=>t.jsx(be,{headline:p.title,subhead:p.description,href:p.urlSlug,onClick:h=>{W({sliderId:l,sliderType:"relatedContent",tileId:p._id,index:u,totalCount:i.length})(),G(h,o,p.urlSlug)}},p._id))})]})]})}
51,zt={selection:"SelectionStorePLP",edit:"EditStorePLP",collection:"CollectionStorePLP",user:"UserStorePLP",collab:"UserStorePLP",type:"FacetStorePLP",brand:"FacetStorePLP",curated:"FacetStorePLP"},Xt=m(Ee)` 52 grid-area: hf / hf / id / id; 53`,oe=({facet:e,title:r,description:a,SEOdescription:n,banner:s,storeId:o})=>{const{isTablet:i}=M(),l=ae(),c=zt[e]||"FacetStorePLP",d=Me.brand.includes(e),{data:p}=ut(d?r:null);return t.jsxs(tt,{children:[t.jsx(st,{className:"hide-scroll-bar",children:t.jsx(Pe,{baseFacet:e,storeTitle:r})}),t.jsx(rt,{children:s}),!i&&t.jsx(t.Fragment,{children:t.jsx(at,{children:t.jsx(it,{})})}),t.jsx(Xt,{enableFilterNudge:!0,withTrackedSearch:!0}),t.jsx(nt,{children:t.jsx(ve,{analyticsMetadata:{listId:c,listName:c}})}),t.jsxs(ot,{children:[l?t.jsx(Bt,{}):t.jsx(dt,{}),t.jsx(Fe,{padding:i?void 0:2})]}),t.jsx(Gt,{seoTitle:r,seoDescription:n?a:null,similarBrands:p,storeId:o})]})},ie=({facet:e})=>{const{filters:r}=It(),{facet:a,value:n}=J(),s=V();return ee({title:s}),t.jsxs(K,{customFilters:r,Skeleton:v,indexName:Z,analyticsTag:"Store",children:[t.jsx(ne,{[a]:S(n),url:`/store/${a}/${n}`}),t.jsx(oe,{facet:e,title:s,banner:t.jsx(Et,{})})]})},Qt=({facet:e})=>{const{t:r}=x("search"),{data:a,query:n,indexName:s,filters:o,isLoading:i}=ht(),l=V();ee({title:l});const c=Y(),[d]=je();if(i)return t.jsx(v,{});if(n&&!d.has("query"))return d.set("query",n),t.jsx(U,{to:`${c.pathname}?${d.toString()}`,replace:!0});if(!w(a)&&e==="user")return t.jsx(U,{to:c.pathname.replace("/user/","/collab/")+c.search,replace:!0});if(w(a))return we.includes(e)?t.jsx(ie,{facet:e}):t.jsx(pt,{});const{metaTagProps:p,storeHeaderProps:u}=$t(e)({data:a,t:r});return t.jsxs(K,{customFilters:o,Skeleton:v,indexName:s||Z,analyticsTag:"Store",children:[t.jsx(ne,N(T({},p),{SEODescriptionOverride:a==null?void 0:a.SEOdescription})),t.jsx(oe,{facet:e,title:l,description:a==null?void 0:a.description,SEOdescription:a==null?void 0:a.SEOdescription,banner:t.jsx(se,T({},u)),storeId:a==null?void 0:a._id})]})},Ks=()=>{const{facet:e}=f(),r=et();return t.jsx("div",{style:{minHeight:`calc(100vh - ${r}px)`},children:_e.includes(e)?t.jsx(Qt,{facet:e}):t.jsx(ie,{facet:e})})};export{Ks as default}; 54//# sourceMappingURL=Store.B8vxVpeP.bundle.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.