PageSourceSearch

https://parkplaceliquordeli.com/assets/route-Byb_g5Kh.js

js parkplaceliquordeli.com collected 2026-09-29 21:30:58 UTC 14,944 bytes, 1 lines download raw bytes

1import{r as c,j as t}from"./jsx-runtime-D2HyDbKh.js";import{D as L}from"./CartProvider-DRDkNzgb.js";import{e as E,a as O,u as U}from"./components-SDhFL-zL.js";import{P as V,Q as B,R as K,t as Z,y as q,u as H,g as z}from"./root-CXZO2Jif.js";import{S as G}from"./shopping-bag-BqYu4B-m.js";import{u as W}from"./useScrollToTop-BZbeTjC4.js";import{c as _}from"./Button-DBEEMpOP.js";import{C as I}from"./CatalogSkeleton-BmzWpN0n.js";import{P as Q}from"./PaginationControls-Cyhllp02.js";import{I as X,V as D}from"./ItemPreview-BjiPKV57.js";import{D as J}from"./Divider-DTIW_4YD.js";import{F as Y}from"./ChevronUpIcon-CcvVYZ9f.js";import{a as ee,d as te,e as re}from"./index-OGzYKti1.js";import{S as ot}from"./ErrorBoundary-DACVTAgK.js";import"./index.esm--4BB0KQy.js";import"./firebase.client-CKNaDRR2.js";import"./index-DXqQCM1T.js";import"./useFirstRender-BfqRfFrL.js";import"./index-DC6ceLyG.js";import"./createLucideIcon-iJ9pEJd7.js";import"./check-DLhAKf5E.js";import"./circle-alert-9e1ZjEZ4.js";import"./formatProductVariantAttributes-B4dzlm21.js";import"./performance-0E6KhFrC.js";import"./hub-lKrYKKAf.js";import"./node-5jBVRjIE.js";import"./index-C9Ymd-py.js";import"./motion-FGmiHZpJ.js";import"./scroll-restoration-z6xYfQi5.js";import"./Input-CFBhGkuO.js";import"./arrow-left-6qDR8OYQ.js";import"./loader-circle-BAWtFUMP.js";import"./Loader-B3AeGKAp.js";import"./index-nfDcHKdK.js";import"./chevron-up-kucDNAQk.js";import"./chevron-down-BbSbu0kf.js";import"./shopping-cart-CgbSuC5_.js";import"./ChevronRightIcon-BtKbYLSv.js";import"./StockIndicator-DktI9Z7o.js";import"./errors-2D5e8SUx.js";const se=({message:e,duration:s=3500})=>{const[r,i]=c.useState("enter");return c.useEffect(()=>{const a=requestAnimationFrame(()=>i("visible")),o=setTimeout(()=>i("exit"),s),n=setTimeout(()=>i("gone"),s+300);return()=>{cancelAnimationFrame(a),clearTimeout(o),clearTimeout(n)}},[s]),r==="gone"?null:t.jsx("div",{className:_("fixed left-1/2 -translate-x-1/2 z-40","bg-white shadow-lg rounded-lg px-4 py-2 text-sm text-gray-700 border border-gray-200","transition-all duration-300 ease-out",r==="enter"&&"opacity-0 -translate-y-2",r==="visible"&&"opacity-100 translate-y-0",r==="exit"&&"opacity-0 -translate-y-2"),style:{top:"calc(var(--header-height, 80px) + 8px)"},role:"status","aria-live":"polite",children:e})};function ie({title:e,titleId:s,...r},i){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":s},r),e?c.createElement("title",{id:s},e):null,c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const ne=c.forwardRef(ie);function ae({title:e,titleId:s,...r},i){return c.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":s},r),e?c.createElement("title",{id:s},e):null,c.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"}))}const oe=c.forwardRef(ae),le=({count:e,viewMode:s,pageSize:r,page:i,onViewChange:a})=>{const o=i*r,u=`${o-r+1} - ${o>e?e:o} of ${e}`;return t.jsxs("div",{className:"flex items-center justify-between my-4",children:[t.jsxs("div",{className:"text-foreground text-sm font-light leading-tight",children:[u," products"]}),t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsx(ce,{viewMode:s,onViewChange:a}),t.jsx("div",{className:"Line11 h-8 w-px border border-gray-300"}),t.jsx(me,{})]})]})}
1,ce=({viewMode:e,onViewChange:s})=>{const r=()=>{s("grid")},i=()=>{s("list")};return t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("button",{name:"viewMode",value:"grid","aria-label":"grid-mode button",onClick:r,children:t.jsx(ne,{"data-testid":"grid-mode-button",className:`h-8 w-8 cursor-pointer ${e==="grid"?"text-foreground":"text-gray-500"}`})}),t.jsx("button",{name:"viewMode",value:"list","aria-label":"list-mode button",onClick:i,children:t.jsx(oe,{"data-testid":"list-mode-button",style:{transform:"rotate(90deg)"},className:`h-8 w-8 cursor-pointer ml-2 ${e==="list"?"text-foreground":"text-gray-500"}`})})]})},me=()=>{const[e,s]=E(),r=[{sortKey:"PRICE",sortOrder:"asc",display:"Price: Low - High",shortHandDisplay:"$ → $$$"},{sortKey:"PRICE",sortOrder:"desc",display:"Price: High - Low",shortHandDisplay:"$$$ → $"},{sortKey:"NAME",sortOrder:"asc",display:"Alphabetical",shortHandDisplay:"A → Z"},{sortKey:"NAME",sortOrder:"desc",display:"Reverse Alphabetical",shortHandDisplay:"Z → A"}],i=({sortKey:a,sortOrder:o})=>{const n=new URLSearchParams(e);if(a===n.get("sortKey")&&o===n.get("sortOrder")){n.delete("sortKey"),n.delete("sortOrder"),s(n);return}n.set("sortKey",a),n.set("sortOrder",o),s(n)};return t.jsxs(V,{as:"div",className:"relative inline-block text-left",children:[t.jsx(V.Button,{className:"inline-flex items-center justify-start h-5 gap-2 Frame837",children:({open:a})=>t.jsxs("div",{className:"inline-flex items-center gap-2 text-foreground text-base font-medium",children:[t.jsx("span",{children:"Sort by"}),a?t.jsx(Y,{className:"w-5 h-5"}):t.jsx(B,{className:"h-5 w-5 text-primary"})]})}),t.jsx(K,{as:c.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:t.jsx(V.Items,{className:"absolute right-0 z-10 inline-flex flex-col items-end justify-center w-56 gap-3 p-2 mt-2 origin-top-right bg-white border divide-gray-100 shadow-lg top-8 border-neutral-100 ring-1 ring-black/5 focus:outline-none",children:r==null?void 0:r.map((a,o)=>{const{shortHandDisplay:n,display:u,sortKey:m,sortOrder:g}=a,d=o!==r.length-1,p=m===e.get("sortKey")&&g===e.get("sortOrder"),l=()=>i({sortKey:m,sortOrder:g});return t.jsxs(c.Fragment,{children:[t.jsx(V.Item,{children:t.jsxs("button",{type:"button",className:`PriceHighLow text-primary text-base font-medium text-right w-full p-2 transition-all  hover:cursor-pointer ${p?"bg-primary-50 hover:bg-primary-75":"hover:bg-primary-50"}`,onClick:l,children:[t.jsx("p",{className:"text-sm",children:n}),t.jsx("p",{className:"text-sm mb-1",children:u})]})}),d&&t.jsx(J,{className:"bg-[#f2e9db]"})]},`${o}-${m}-${g}`)})})})]})},de=e=>{const s=e.defaultAvailableVariant;return s?{variant:s,isAvailable:!0}:{variant:void 0,isAvailable:!1}},F=c.memo(({product:e,collectionType:s,viewType:r,CollectionCardConfig:i,index:a,itemListId:o,itemListName:n})=>{const u=s?`/collections/${s}/${e.node.slug}`:`/products/${e.node.slug}`,{variant:m,isAvailable:g}=c.useMemo(()=>de(e.node),[e.node]);return t.jsx(X,{to:u,product:{id:e.node.id,name:e.node.name,slug:e.node.slug,description:e.node.description,modifierGroup:e.node.modifierGroup,defaultAvailableVariant:m,variants:e.node.variants,isAvailable:g,storeAvailability:e.node.storeAvailability},viewType:r,CollectionCardConfig:i,itemListId:o,itemListName:n,index:a},`${a}-${e.node.id}`)});F.displayName="ProductItem";const ue=({collectionType:e,collectionName:s,products:r,pageInfo:i})=>{var P,$,M;const[a,o]=E(),n=ee(),u=te(),m=re(),d=u.state==="loading"&&((P=u.location)==null?void 0:P.pathname)===n.pathname||m.state==="loading",p=Z(),{selectedStore:l,openSelector:f}=q(),{siteConfigs:x}=H(),[h,y]=c.useState(null),S=c.useRef(0),w=c.useRef(l==null?void 0:l.storeId);c.useEffect(()=>{l&&w.current!==l.storeId&&!d&&r.length>0?(S.current+=1,y(`Showing ${r.length} products at ${l.storeName}`),w.current=l.storeId):l||(w.current=void 0)},[l==null?void 0:l.storeId,l==null?void 0:l.storeName,d,r.length]),c.useEffect(()=>{if(h){const b=setTimeout(()=>y(null),4e3);return()=>clearTimeout(b)}},[h]);const v=a.get("viewMode")??"grid",C=b=>b==="grid"?D.GRID:D.LIST,A=c.useCallback(b=>{const T=new URLSearchParams(a);T.set("viewMode",b),o(T,{replace:!0})},[a,o]),j=`${n.pathname}${n.search?n.search:""}`,k=j.includes("?")?j.replace(/(&|\?)page=\d+/,""):j,R=c.useMemo(()=>C(v),[v]),N=c.useMemo(()=>({count:(i==null?void 0:i.totalEdges)??r.length,pageSize:(i==null?void 0:i.pageSize)??0,page:(i==null?void 0:i.page)??1,viewMode:v,onViewChange:A}),[i,r.length,v,A]);return t.jsxs(t.Fragment,{children:[h&&t.jsx(se,{message:h},S.current),p&&!l&&t.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-gray-600 mb-2",children:[t.jsx("span",{children:"Showing products from all stores"}),t.jsx("span",{children:"·"}),t.jsx("button",{type:"button",onClick:f,className:"font-medium text-blue-600 hover:text-blue-700 underline",children:"Select a store"})]}),t.jsxs("div",{children:[t.jsx(le,{...N}),t.jsx("div",{className:_("transition-opacity duration-200",d&&r.length>0?"opacity-50 pointer-events-none":"opacity-100"),children:d&&r.length===0?t.jsx(I,{count:6}):t.jsx("ul",{className:`grid ${v==="grid"?"lg:grid-cols-3 grid-cols-2 gap-collection-grid-gap":"grid-cols-1 gap-collection-grid-gap"}`,"aria-label":"Product List",children:r==null?void 0:r.map((b,T)=>
1t.jsx(F,{product:b,collectionType:e,viewType:R,CollectionCardConfig:x==null?void 0:x.CollectionCardConfig,index:T,itemListId:e,itemListName:s},`${T}-${b.node.id}`))})}),i&&!((M=($=x==null?void 0:x.customConfigurations)==null?void 0:$.collections)!=null&&M.disablePagination)&&t.jsx(Q,{pageInfo:i,baseUrl:k})]})]})},he=()=>t.jsx("div",{className:"flex w-full min-h-[50vh]",children:t.jsxs("div",{className:"flex gap-3 flex-col items-center justify-center w-full text-neutral-400",children:[t.jsx(G,{className:"lg:h-24 lg:w-24 h-16 w-16"}),t.jsxs("div",{className:"flex flex-col items-center",children:[t.jsx("h3",{className:"lg:text-2xl text-xl font-bold",children:"No items available"}),t.jsx("span",{className:"text-center",children:"This collection is currently empty or items are not available."}),t.jsx("span",{className:"text-center",children:"Please check back later."})]})]})}),ge=({trail:e=[]})=>e.length===0?null:t.jsx("nav",{"aria-label":"Breadcrumb",className:"mb-4 text-sm text-gray-500",children:t.jsx("ol",{className:"p-0 list-none flex flex-wrap",children:e==null?void 0:e.map((s,r)=>t.jsxs("li",{className:"flex items-center",children:[r>0&&t.jsx("span",{className:"mx-2",children:"/"}),r===e.length-1?t.jsx("span",{className:"font-bold text-foreground truncate max-w-[220px]",children:s.label}):t.jsx(O,{to:s.href,className:"text-gray-500 hover:text-gray-700",children:s.label})]},s.href))})}),pe=ge,tt=({currentUrl:e,nextUrl:s,defaultShouldRevalidate:r})=>e.pathname!==s.pathname||e.search!==s.search?!0:r,rt={breadcrumb:({data:e})=>`${e==null?void 0:e.title}`},st=({data:e,matches:s})=>{var S,w,v,C,A,j,k,R,N,P;const r=(e==null?void 0:e.title)??"Collection",i=(e==null?void 0:e.description)??"",a=(e==null?void 0:e.metaTitle)??r,o=e==null?void 0:e.platformName,n=((A=(C=(v=(w=(S=e==null?void 0:e.products)==null?void 0:S[0])==null?void 0:w.node)==null?void 0:v.defaultAvailableVariant)==null?void 0:C.image)==null?void 0:A.scale1x)??"",u=((R=(k=(j=s==null?void 0:s[0])==null?void 0:j.data)==null?void 0:k.siteConfigs)==null?void 0:R.storeName)??"Home",m=(e==null?void 0:e.currentUrl)??"",g=`Shop ${a} Collection ${o?`| ${o}`:`| ${u}`}`;let d="";e!=null&&e.metaDescription&&(e==null?void 0:e.metaDescription)!==r?d=e.metaDescription:i&&i!==r?d=i:a?d=`Shop ${a} collection at ${o||u}.`:r?d=`Shop ${r} collection at ${o||u}.`:d=`Shop collections at ${o||u}.`;const p=d.length>160?`${d.substring(0,157)}...`:d;let l="",f="",x=!1,h;try{h=new URL(m??""),l=m.replace("http://","https://"),f=l,x=h.searchParams.get("page")==="1"}catch($){console.error("Invalid URL in meta function:",$)}const y=[{title:g},{name:"description",content:p},{property:"og:title",content:a},{property:"og:description",content:p},{property:"og:type",content:"website"},{property:"og:url",content:l},{property:"og:site_name",content:u},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:a},{name:"twitter:description",content:p}];if(n&&y.push({property:"og:image",content:n},{property:"og:image:alt",content:`${a} collection image`},{property:"og:image:width",content:"400"},{property:"og:image:height",content:"400"},{name:"twitter:image",content:n},{name:"twitter:image:alt",content:`${a} collection image`}),x&&h){(P=(N=h==null?void 0:h.searchParams)==null?void 0:N.delete)==null||P.call(N,"page");const $=h.toString().replace("http://","https://");y.push({tagName:"link",rel:"canonical",href:$})}else f&&y.push({tagName:"link",rel:"canonical",href:f});return y};function it(){W();const{title:e,slug:s,products:r,pageInfo:i}=U(),{siteConfigs:a}=H();c.useEffect(()=>{if(!(r!=null&&r.length))return;const u={event:"view_item_list",ecommerce:{currency:"USD",value:Number((r==null?void 0:r.reduce((m,g)=>{var d,p,l;return m+new L(((l=(p=(d=g==null?void 0:g.node)==null?void 0:d.defaultAvailableVariant)==null?void 0:p.price)==null?void 0:l.amount)??0).toDecimalPlaces(2).toNumber()},0))??0),item_list_id:s,item_list_name:e,items:r==null?void 0:r.map((m,g)=>{var p,l,f,x,h;const d=((p=m.node.defaultAvailableVariant)==null?void 0:p.id)??m.node.id;return{id:d,item_id:d,item_name:((l=m.node.defaultAvailableVariant)==null?void 0:l.name)??"Not provided",price:new L(((x=(f=m.node.defaultAvailableVariant)==null?void 0:f.price)==null?void 0:x.amount)??0).toDecimalPlaces(2).toNumber(),item_variant:((h=m.node.defaultAvailableVariant)==null?void 0:h.size)??void 0,index:g+1,quantity:1,google_business_vertical:"retail"}})}};z(u)},[i==null?void 0:i.page,r,s,e]);const o=c.useMemo(()=>{var u,m;const n=(m=(u=a==null?void 0:a.customConfigurations)==null?void 0:u.collections)==null?void 0:m.rootCrumb;return[{label:(n==null?void 0:n.label)??"Home",href:(n==null?void 0:n.href)??"/"},{label:e,href:`/collections/${s}`}]}
1,[a,e,s]);return t.jsxs("section",{className:"container max-w-[1440px] mx-auto p-4 py-10","aria-label":`Product Collection: ${e}`,children:[t.jsx(pe,{trail:o??[]}),t.jsx("h1",{className:"text-2xl font-bold text-foreground",id:"collection-title",children:e}),r!=null&&r.length?t.jsx(ue,{products:r,collectionType:s,collectionName:e,pageInfo:i}):t.jsx(he,{})]})}export{ot as ErrorBoundary,it as default,rt as handle,st as meta,tt as shouldRevalidate};

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.