PageSourceSearch

https://designerrooms.lovable.app/assets/_handle-BGACg0Yv.js

js designerrooms.lovable.app collected 2026-10-03 03:25:38 UTC 5,114 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_handle-zpVDwKE1.js","assets/jsx-runtime-BkSabwWG.js","assets/react-DHmoMYoq.js","assets/createServerFn-Bv-kR5Ru.js","assets/useRouter-DuLJE_CW.js","assets/link-fwq2w_8q.js","assets/preload-helper-SE8kXSy2.js","assets/useBaseQuery-Bt74lWur.js","assets/useQuery-BkkCjpW0.js","assets/analytics-B1X4c3VF.js","assets/shopify.functions-CR0bm20A.js","assets/createLucideIcon-CaYjXmwE.js","assets/arrow-left-_A1zP_tg.js","assets/ProductCard-DavqhKXF.js","assets/v12-DW5SNcZk.js","assets/ProductCardFinance-BJltMbbR.js","assets/utils-B6KiDbIe.js","assets/v12.functions-DE1EAJky.js","assets/useAutomaticDiscounts-oskDHT3f.js","assets/queryOptions-Dfvzj6n2.js","assets/shopifyImage-W-l-ULDU.js","assets/loader-circle-B3P9CMc5.js","assets/button-bNNoVc7r.js","assets/dist-DWED_6wH.js","assets/react-dom-BxDpUDHg.js","assets/dist-C1RJhgYD.js","assets/menuQuery-DwwUAxY6.js","assets/shopify.server-Bmoln41s.js","assets/sheet-DIJYdHJF.js","assets/x-B4dPDCkW.js","assets/dist-DRzpid-G.js","assets/_handle-DWTh95Tw.js","assets/_handle-CC5ww3TW.js"])))=>i.map(i=>d[i]);
2import{l as e}from"./createServerFn-Bv-kR5Ru.js";import{w as t}from"./link-fwq2w_8q.js";import{n,r,t as i}from"./preload-helper-SE8kXSy2.js";import{t as a}from"./queryOptions-Dfvzj6n2.js";import{a as o}from"./shopify.functions-CR0bm20A.js";import{t as s}from"./useAutomaticDiscounts-oskDHT3f.js";function c(e){return(({search:n,next:r,meta:i})=>{if(e===!0)return Object.keys(n).forEach(e=>{i&&(i.removedAny||=new Set).add(e)}),{};let a={...r(n)};return Array.isArray(e)?e.forEach(e=>{delete a[e],i&&(i.removedAny||=new Set).add(e)}):Object.entries(e).forEach(([e,n])=>{t(a[e],n)&&(delete a[e],i&&(i.removed||=new Map).set(e,n))}),a})}var l=[{value:`manual`,label:`Featured`,sortKey:`MANUAL`,reverse:!1},{value:`best-selling`,label:`Best selling`,sortKey:`BEST_SELLING`,reverse:!1},{value:`newest`,label:`Newest`,sortKey:`CREATED`,reverse:!0},{value:`price-asc`,label:`Price: low to high`,sortKey:`PRICE`,reverse:!1},{value:`price-desc`,label:`Price: high to low`,sortKey:`PRICE`,reverse:!0},{value:`title-asc`,label:`Alphabetical: A-Z`,sortKey:`TITLE`,reverse:!1},{value:`title-desc`,label:`Alphabetical: Z-A`,sortKey:`TITLE`,reverse:!0}];function u(e){return l.find(t=>t.value===e)??l[0]}function d(e){return e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function f(e){return e.map(e=>{try{return JSON.parse(e)}catch{return null}}).filter(Boolean)}var p=()=>i(()=>import(`./_handle-zpVDwKE1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])),m=()=>i(()=>import(`./_handle-DWTh95Tw.js`),__vite__mapDeps([31,1,5,2,4])),h=()=>i(()=>import(`./_handle-CC5ww3TW.js`),__vite__mapDeps([32,1])),g=(e,t,n=`newest`,r=[])=>{let i=u(n);return a({queryKey:[`shopify-collection`,e,t,i.value,r],queryFn:()=>o({data:{handle:e,first:24,after:t??void 0,sortKey:i.sortKey,reverse:i.reverse,filters:f(r)}})})},_=r(`/collections/$handle`)({validateSearch:e=>{let t=Array.isArray(e.filters)?e.filters.filter(e=>typeof e==`string`):typeof e.filters==`string`?[e.filters]:[];return{sort:typeof e.sort==`string`?e.sort:`newest`,...t.length>0?{filters:t}:{}}},search:{middlewares:[c({sort:`newest`})]},loaderDeps:({search:e})=>({sort:e.sort,filters:e.filters??[]}),loader:async({context:t,params:n,deps:r})=>{let i;try{[,i]=await Promise.all([t.queryClient.ensureQueryData(s),t.queryClient.ensureQueryData(g(n.handle,null,r.sort,r.filters))])}catch(e){return console.error(`[collection] SSR load failed for ${n.handle}:`,e?.message),t.queryClient.removeQueries({queryKey:g(n.handle,null,r.sort,r.filters).queryKey}),null}if(!i.collection)throw e();return i},head:({params:e,loaderData:t})=>{let n=t?.collection,r=n?.title??d(e.handle),i=n?.description?.trim()||`Shop the ${r} collection at The Designer Rooms.`,a=`https://thedesignerrooms.com/collections/${e.handle}`,o=t?.products??[],s={"@context":`https://schema.org`,"@type":`ItemList`,name:`${r} | The Designer Rooms`,url:a,numberOfItems:t?.productCount??o.length,itemListElement:o.map((e,t)=>{let n=e.node,r=n.priceRange.minVariantPrice;return{"@type":`ListItem`,position:t+1,item:{"@type":`Product`,name:n.title,url:`https://thedesignerrooms.com/products/${n.handle}`,...n.images.edges[0]?.node.url?{image:n.images.edges[0].node.url}:{},offers:{"@type":`Offer`,price:r.amount,priceCurrency:r.currencyCode,availability:n.variants.edges.some(e=>e.node.availableForSale)?`https://schema.org/InStock`:`https://schema.org/OutOfStock`}}}})};return{meta:[{title:`${r} | The Designer Rooms`},{name:`description`,content:i},{property:`og:title`,content:`${r} | The Designer Rooms`},{property:`og:description`,content:i},{property:`og:type`,content:`website`},{property:`og:url`,content:a},{name:`twitter:card`,content:`summary_large_image`}],links:[{rel:`canonical`,href:a}],scripts:[{type:`application/ld+json`,children:JSON.stringify(s)}]}},errorComponent:n(h,`errorComponent`),notFoundComponent:n(m,`notFoundComponent`),component:n(p,`component`)});export{u as a,f as i,l as n,d as r,_ as t};

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.