1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3819],{26592:function(e,t,l){l.d(t,{g:function(){return useBadgeData}});var n=l(2784),o=l(28898);let useBadgeData=()=>{let[e,t]=(0,n.useState)(null),[l,a]=(0,n.useState)(!0),[i,r]=(0,n.useState)(null),c=(0,n.useCallback)(()=>{let e={};return{get:t=>e[t],set:(t,l)=>{e[t]=l}}},[]);return(0,n.useEffect)(()=>{let fetchData=async()=>{a(!0),r(null);let e=c().get("badge");if(e){t(e),a(!1);return}try{let e=await o.P.getProductBadges();t(e.data.data),c().set("badge",e.data.data)}catch(e){r(e)}finally{a(!1)}};fetchData()},[]),(0,n.useMemo)(()=>({data:e,loading:l,error:i}),[e,l,i])}},28898:function(e,t,l){l.d(t,{P:function(){return o}});var n=l(77229);let SharedLayoutService=class SharedLayoutService extends n.Z{getLayout(e,t){return this.client.get("/layout?type=".concat(e),t)}getLayoutV2(e,t){return this.client.get("/layout/v2?type=".concat(e),t)}getFallbackLayout(e){return this.client.get("/layout/fallback/".concat(e))}getHomeLayout(){return this.client.get("/layout?type=HOME_WEB")}getSeoContent(e){return this.client.get("/layout/key/".concat(e))}getKeys(e){return this.client.get("/layout/key/".concat(e))}getProductBadges(){return this.client.get("/layout/key/Badge_V1")}constructor(){super({serviceName:"layout",platform:"auto"})}};let o=new SharedLayoutService},51165:function(e,t,l){l.d(t,{Z:function(){return ProductListingPageV2}});var n,o,a=l(52903),i=l(86263),r=l(2784);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var checked_box_V2=function(e){return r.createElement("svg",_extends({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=r.createElement("rect",{width:16,height:16,rx:4,fill:"#047992"})),o||(o=r.createElement("path",{d:"M11.906 5.202a.781.781 0 0 0-1.063.02L7.425 9.308l-2.06-1.933a.766.766 0 0 0-.517-.186.763.763 0 0 0-.509.203.672.672 0 0 0-.216.477.67.67 0 0 0 .198.484l2.605 2.445c.07.065.153.117.245.152a.78.78 0 0 0 .817-.17l3.929-4.608a.67.67 0 0 0 .206-.487.672.672 0 0 0-.216-.483Z",fill:"#fff"})))},c=l(69692),atomic_components_CheckboxV2=e=>(0,a.tZ)(c.Z,{className:"cursor-pointer",onClick:()=>e.onChange&&e.onChange(!e.checked),children:e.checked?(0,a.tZ)(c.Z,{sx:{width:"16px",height:"16px"},children:(0,a.tZ)(checked_box_V2,{})}):(0,a.tZ)(c.Z,{children:(0,a.tZ)(c.Z,{sx:{width:"16px",height:"16px",border:"1px solid #161616",borderRadius:"4px"}})})}),filter_section_v2=function(e){let{title:t,options:l,filterKey:n,selectedFilters:o,onFilterSelect:c,isLoading:s}=e,d=null==o?void 0:o.some(e=>e.key===n),[u,p]=(0,r.useState)(d);return((0,r.useEffect)(()=>{d&&p(!0)},[d]),s)?(0,a.BX)("div",{className:"py-4 pl-5 pr-2",children:[(0,a.tZ)("div",{className:"h-5 w-24 bg-neutral-2 animate-pulse rounded mb-4"}),[1,2,3].map(e=>(0,a.BX)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.tZ)("div",{className:"h-4 w-4 bg-neutral-2 animate-pulse rounded"}),(0,a.tZ)("div",{className:"h-5 w-20 bg-neutral-2 animate-pulse rounded"})]},e))]}):(0,a.BX)("div",{className:"py-4 pl-5 pr-2",children:[(0,a.BX)("button",{className:"flex items-center justify-between w-full cursor-pointer",onClick:()=>p(!u),children:[(0,a.tZ)("span",{className:"text-sm leading-5 font-extrabold text-black uppercase",children:t}),(0,a.tZ)(i.G$p,{className:"w-5 h-5 transition-transform duration-300 ease-in-out ".concat(u?"rotate-180":"")})]}),(0,a.tZ)("div",{className:"grid transition-all duration-300 ease-in-out ".concat(u?"grid-rows-[1fr] opacity-100 mt-4":"grid-rows-[0fr] opacity-0 mt-0"),children:(0,a.tZ)("div",{className:"overflow-hidden",children:(0,a.tZ)("div",{className:"flex flex-col gap-4",children:null==l?void 0:l.map(e=>{let t=null==o?void 0:o.some(t=>t.key===n&&t.val===e.label);return(0,a.BX)("div",{className:"flex items-center gap-3 cursor-pointer transition-opacity duration-150",onClick:()=>c(n,e.label),children:[(0,a.tZ)(atomic_components_CheckboxV2,{checked:t||!1}),(0,a.tZ)("span",{className:"font-body text-base text-black",children:e.label})]},e.label)})})})})]})},s=l(75350);let d=[{category:"CATEGORY_RENT",label:"Rent"},{category:"CATEGORY_UNLMTD",label:"UNLMTD",lop:"UNLMTD"},{category:"CATEGORY_BUY",lop:"BUY_NEW",label:"Buy New"},{category:"CATEGORY_BUY",lop:"BUY_REFURBISHED",label:"Buy Refurbished"}];var search_header_v2=function(e){let{searchQuery:t,selectedLOP:l,onLOPChange:n,totalResults:o}=e;return(0,a.BX)("div",{className:"flex items-center justify-between bg-white w-full",children:[(0,a.BX)("div",{className:"flex items-center gap-3",children:[(0,a.tZ)("h1",{className:"text-xl font-extrabold text-black leading-7",children:t}),void 0!==o&&o>0&&(0,a.BX)("span",{className:"text-sm text-neutral-6",children:[o," ",1===o?"item":"items"]})]}),(0,a.tZ)("div",{className:"flex items-center gap-3",children:d.map(e=>{let t=l===(e.lop||e.category);return e.category,(0,a.tZ)(i.r0F,{onClick:()=>n(e),bg:t?"secondary":"neutral",className:(0,s.cn)(t&&"CATEGORY_RENT"===e.category&&"bg-[var(--rent-7)] hover:bg-[var(--rent-8)]",t&&"CATEGORY_BUY"===e.category&&"bg-[var(--buy-7)] hover:bg-[var(--buy-8)]"),size:"sm",children:e.label},e.lop||e.category)})})]})},u=l(16059),p=l(82876),m=l(18374),h=l(28898),v=l(94449),g=l(21590),f=l(17928),y=l(26592),b=l(66236),x=l(74575),N=l(22516),w=l(79336),Z=l(58772),P=l(11371),C=l(7970),_=l(15446),T=l(26116),k=l(8204),B=l(91909),S=l(10204),O=l(20344),ErrorScreenV2=function(e){return(0,O.p)(),(0,r.useEffect)(()=>{},[]),(0,a.BX)(c.Z,{sx:{textAlign:"center"},...e.wrapperProps,children:[(0,a.tZ)(c.Z,{sx:{width:"100%",margin:"48px 0",display:"flex",justifyContent:"center",alignItems:"center"},children:e.image?(0,a.tZ)(e.image,{}):(0,a.tZ)(S.Z,{})}),(0,a.BX)(c.Z,{sx:{margin:"30px 0"},children:[(0,a.tZ)(B.x,{sx:{...(0,T.C2)("H14_Medium"),color:(0,_.L)("Gray 0"),margin:"12px 0"},children:e.title||"Something Went Wrong"}),(0,a.tZ)(B.x,{sx:{...(0,T.C2)("P_Medium"),color:(0,_.L)("Gray -2")}
1,children:e.subtitle||"Please try again after sometime"})]}),(0,a.tZ)(c.Z,{children:!(null==e?void 0:e.canRefresh)&&(0,a.tZ)(k.Z,{variant:"outlined",onClick:()=>{var t,l;(null==e?void 0:e.onRefresh)?null==e||e.onRefresh():null===(l=window)||void 0===l||null===(t=l.location)||void 0===t||t.reload()},children:(null==e?void 0:e.refreshText)?null==e?void 0:e.refreshText:"Refresh"})})]})},L=l(42613);function PLPRecommendationsWidget(e){var t;let{data:l}=e,n=(0,C._)();if(!(null==l?void 0:null===(t=l.products)||void 0===t?void 0:t.length))return null;let o=l.products.map(e=>(0,s.FU)({data:e,useDesktopMedia:n}));return(0,a.BX)("div",{className:"flex flex-col gap-3 w-full py-5 pl-5 bg-neutral-2 my-4",children:[(0,a.tZ)("p",{className:"text-lg font-extrabold leading-7 text-neutral-10",children:l.title}),(0,a.tZ)(i.V6l,{pl:0,children:o.map(e=>(0,a.tZ)("div",{children:(0,a.tZ)(i.AIC,{...e,width:220,borderRadius:0,hideDelivery:!0,impressionScreenName:"PLP Recommendations"})},e.deeplinkPath))})]})}function SearchRecommendationsWidget(e){var t;let{data:l}=e,n=(0,C._)();if(!(null==l?void 0:null===(t=l.products)||void 0===t?void 0:t.length))return null;let o=l.products.map(e=>(0,s.FU)({data:e,useDesktopMedia:n}));return(0,a.BX)("div",{className:"flex flex-col gap-3 w-full py-5 pl-5 bg-neutral-2 my-4",children:[(0,a.tZ)("p",{className:"text-lg font-extrabold leading-7 text-neutral-10",children:l.title}),(0,a.tZ)(i.V6l,{pl:0,children:o.map(e=>(0,a.tZ)("div",{children:(0,a.tZ)(i.AIC,{...e,width:220,borderRadius:0,hideDelivery:!0,impressionScreenName:"Search Recommendations"})},e.deeplinkPath))})]})}var ProductListingPageV2=function(e){var t,l,n,o,c,d;let{enableScrollOnHover:_=!0,isUnlmtd:T=!1,onProductAddToCart:k,getItemCountInCart:B,onProductRemoveFromCart:S,selectedPlan:O,totalCartItems:A,onChangePlan:E,initialSearchParams:R}=e,U=(0,C._)(),{selectedLocation:X}=(0,N.T)(),{isLoggedIn:Y}=(0,v.v9)(e=>e.user),D=(0,p.useRouter)(),G=(0,p.useSearchParams)(),{appConfigActions:I}=(0,b.M)(),M=(0,r.useMemo)(()=>{var e;return{...null!=R?R:{},...Object.fromEntries(null!==(e=null==G?void 0:G.entries())&&void 0!==e?e:[])}},[R,G]),{state:F,actions:H}=function(e){var t;let[l,n]=(0,r.useState)([]),[o,a]=(0,r.useState)([]),[i,c]=(0,r.useState)([]),[d,u]=(0,r.useState)([]),[v,g]=(0,r.useState)(null),[f,y]=(0,r.useState)(null),[b,x]=(0,r.useState)(!0),[N,w]=(0,r.useState)(null),[Z,P]=(0,r.useState)([]),C=(0,p.useRouter)(),_=(0,p.usePathname)(),T=(0,p.useSearchParams)(),k={...null!=e?e:{},...Object.fromEntries(null!==(t=null==T?void 0:T.entries())&&void 0!==t?t:[])};(0,r.useEffect)(()=>{let e=(0,s.r4)(k);P(e)},[T]);let B=(0,r.useCallback)(e=>{x(!0),w(null),m.o.getProductListings(null==e?void 0:e.query).then(e=>{var t,l,o,i,r,s;let d=null===(t=e.data)||void 0===t?void 0:t.data;null==d||null===(l=d.filterOptions)||void 0===l||l.filter(e=>"sub_category"!==e.value),n(null!==(o=null==d?void 0:d.products)&&void 0!==o?o:[]),a(null!==(i=null==d?void 0:d.categories)&&void 0!==i?i:[]),c(null!==(r=null==d?void 0:d.sortOptions)&&void 0!==r?r:[]),u(null!==(s=null==d?void 0:d.filterOptions)&&void 0!==s?s:[])}).catch(e=>{var t,l,n;console.error(e),w((null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(l=n.data)||void 0===l?void 0:null===(t=l.error)||void 0===t?void 0:t.message)||"Failed to load products")}).finally(()=>{x(!1)})},[]),S=(0,r.useCallback)(e=>{m.o.getListingMeta(e.category).then(t=>{var l,n,o,a;let i=null===(n=t.data)||void 0===n?void 0:null===(l=n.data)||void 0===l?void 0:l.collectionMeta;g({title:e.cityName?null==i?void 0:null===(o=i.title)||void 0===o?void 0:o.replaceAll("[City]",e.cityName):null==i?void 0:i.title,description:null==i?void 0:i.description,footer:e.cityName?null==i?void 0:null===(a=i.footer)||void 0===a?void 0:a.replaceAll("[City]",e.cityName):null==i?void 0:i.footer,schemas:null==i?void 0:i.schemas})}).catch(e=>{console.error(e)})},[]),O=(0,r.useCallback)(e=>m.o.getProductAddons({filters:{collection_id:e}}),[]),L=(0,r.useCallback)(e=>m.o.getBulkRelatedProduct({permalinks:e}),[]),A=(0,r.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ACQ_PLP_WEB_";y(null),h.P.getLayoutV2("".concat(t).concat(e),{skipSentryCapture:!0}).then(e=>{var t;(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data)&&y(e.data.data)}).catch(e=>{console.error(e)})},[]),E=(0,r.useCallback)((e,t)=>{let l=k.collectionType,n=(0,s.vu)({collectionType:l,name:e,sortBy:null==k?void 0:k.sortBy,lineOfProduct:null==k?void 0:k.lineOfProduct,isSubCategory:!0});C.push(n),window.scrollTo({top:0,behavior:"smooth"})},[C,k]),R=(0,r.useCallback)((e,t)=>{let l=k.collectionType,n=(0,s.vu)({collectionType:l,name:e,sortBy:null==k?void 0:k.sortBy,lineOfProduct:null==k?void 0:k.lineOfProduct,isSubCategory:!0});C.push(n),window.scrollTo({top:0,behavior:"smooth"})},[C,k]),U=(0,r.useCallback)((e,t)=>{let l=new URLSearchParams({});k.collectionType&&l.append("collectionType",k.collectionType),k.collection&&l.append("collection",k.collection),k.lineOfProduct&&l.append("lineOfProduct",k.lineOfProduct),k.q&&l.append("q",k.q),(0,s.mB)(l,t),l.append("sortBy",e),window.scrollTo({top:0,behavior:"smooth"}),C.push("".concat(_,"?").concat(l.toString()))},[C,_,k]),X=(0,r.useCallback)(e=>{P(e);let t=new URLSearchParams({});k.collectionType&&t.append("collectionType",k.collectionType),k.collection&&t.append("collection",k.collection),k.lineOfProduct&&t.append("lineOfProduct",k.lineOfProduct),k.sortOptions&&t.append("sortBy",k.sortOptions),k.q&&t.append("q",k.q),(0,s.mB)(t,e),window.scrollTo({top:0,behavior:"smooth"}),C.push("".concat(_,"?").concat(t.toString()))},[C,_,k]),Y=(0,r.useCallback)((e,t)=>{let l=Z.find(l=>l.key===e&&l.val===t);X(l?Z.filter(l=>!(l.key===e&&l.val===t)):[...Z,{key:e,val:t}])},[Z,X]),D=(0,r.useCallback)(e=>{let t=new URLSearchParams;k.collection&&t.append("collection",k.collection),k.sortBy&&t.append("sortBy",k.sortBy),"RENT"===e?t.append("collectionType","CATEGORY_RENT"):"BUY_ALL"===e?t.append("collectionType","CATEGORY_BUY"):("BUY_NEW"===e||"BUY_REFURBISHED"===e)&&(t.append("collectionType","CATEGORY_BUY"),t.append("lineOfProduct",e)),C.push("/listing?".concat(t.toString()))},[C,k]),G=(0,r.useCallback)(()=>{let e=new URLSearchParams({collectionType:k.collectionType});k.collection&&e.append("collection",k.collection),k.lineOfProduct&&e.append("lineOfProduct",k.lineOfProduct),k.q&&e.append("q",k.q),C.push("".concat(_,"?").concat(e.toString()))},[C,_,k]);return{actions:{getProducts:B,getListingMeta:S,getProductAddons:O,getBulkRelatedProducts:L,getPlpLayout:A,navigateToCategory:E,navigateToSubcategory:R,navigateToSort:U,applyFilters:X,toggleFilter:Y,switchLOP:D,clearAllFilters:G},state:{products:l,categories:o,sortOptions:i,filterOptions:d,plpSeoContent:v,layoutData:f,isLoading:b,error:N,selectedFilters:Z}}}(R),{actions:W}=function(){let e=(0,v.I0)(),t=(0,v.v9)(e=>{var t,l;return null!==(l=null===(t=e.seo)||void 0===t?void 0:t.storeState)&&void 0!==l?l:g.pq.LOADING}),l=(0,v.v9)(e=>{var t,l;
1return null!==(l=null===(t=e.seo)||void 0===t?void 0:t.title)&&void 0!==l?l:""}),n=(0,v.v9)(e=>{var t,l;return null!==(l=null===(t=e.seo)||void 0===t?void 0:t.description)&&void 0!==l?l:""}),o=(0,v.v9)(e=>{var t,l;return null!==(l=null===(t=e.seo)||void 0===t?void 0:t.schemas)&&void 0!==l?l:[]}),a=(0,v.v9)(e=>{var t;return null===(t=e.seo)||void 0===t?void 0:t.footerData}),i=(0,v.v9)(e=>{var t;return null===(t=e.seo)||void 0===t?void 0:t.image}),c=(0,r.useCallback)(t=>{e((0,f.E5)(t))},[e]),s=(0,r.useCallback)(()=>{e((0,f.o3)())},[e]),d=(0,r.useCallback)(()=>{e((0,f.mq)())},[e]);return{state:{seoState:t,title:l,description:n,schemas:o,footerData:a,image:i},actions:{updateSeoData:c,clearSeoData:s,setSeoErrorState:d}}}(),{products:q,plpSeoContent:V}=F,j=(0,y.g)(),J=F.isLoading||j.loading,z=M.q||"",Q=M.collection||void 0,$="CATEGORY_BUY"===M.collectionType?"BUY":"RENTAL",{strip:K}=(0,L.tG)(z?void 0:Q,$,null==X?void 0:X.cityId,T),{searchStrip:ee}=(0,L.h2)(z||void 0,null==X?void 0:X.cityId),et=F.categories&&F.categories.length>0&&!z.length,[el,en]=(0,r.useState)(""),[eo,ea]=(0,r.useState)(null),[ei,er]=(0,r.useState)(),[ec,es]=(0,r.useState)(),[ed,eu]=(0,r.useState)([]),[ep,em]=(0,r.useState)(!1),[eh,ev]=(0,r.useState)(!0),eg=T?{category:"top-[80px]",subCategory:et?"top-[176px]":"top-[80px]",sidebar:et?"top-[230px] h-[calc(100vh-230px)]":"top-[134px] h-[calc(100vh-134px)]"}:{category:"top-[68px]",subCategory:et?"top-[108px]":"top-[68px]",sidebar:et?"top-[162px] h-[calc(100vh-162px)]":"top-[122px] h-[calc(100vh-122px)]"},ef=F.isLoading||(null!==(c=null===(t=F.filterOptions)||void 0===t?void 0:t.length)&&void 0!==c?c:0)>0||(null!==(d=null===(l=F.sortOptions)||void 0===l?void 0:l.length)&&void 0!==d?d:0)>0,ey=ep||!ef,eb=(0,r.useMemo)(()=>{var e;let t=((null===(e=F.layoutData)||void 0===e?void 0:e.widgets)||[]).filter(e=>{var t,l;return(null===(l=e.data)||void 0===l?void 0:null===(t=l.template)||void 0===t?void 0:t.type)==="AD_TILE"}),getGridPosition=(e,t)=>e&&t?(e-1)*4+(t-1):-1,l=t.map(e=>{var t,l;return{widget:e,gridPosition:getGridPosition(null===(t=e.data)||void 0===t?void 0:t.row,null===(l=e.data)||void 0===l?void 0:l.col)}}).filter(e=>e.gridPosition>=0).sort((e,t)=>e.gridPosition-t.gridPosition);return l.map((e,t)=>{var l,n;let o=null===(n=e.widget.data)||void 0===n?void 0:null===(l=n.components)||void 0===l?void 0:l[0];return{adComponent:o,adPosition:e.gridPosition-t,AdTile:o?(0,P.E)(o):null}}).filter(e=>e.adPosition>=0&&null!==e.AdTile)},[F.layoutData]),getAdTileAtPosition=e=>eb.find(t=>t.adPosition===e),ex=eb.filter(e=>e.adPosition<12).length,eN=12-ex,updatePlpSeoContent=()=>{let e=M.collection;X&&e&&H.getListingMeta({category:e,cityName:X.cityName})};(0,r.useEffect)(()=>{F.plpSeoContent&&W.updateSeoData({title:F.plpSeoContent.title,description:F.plpSeoContent.description,footerData:"",schemas:F.plpSeoContent.schemas})},[F.plpSeoContent]),(0,r.useEffect)(()=>{updatePlpSeoContent()},[M.collection,X.cityName]),(0,r.useEffect)(()=>{if(F.categories.length>0&&M.collection){let e=M.collection,t=(0,s.gA)(F.categories,e);eu(t.subCategories),ea(t.selectedCategoryName)}else eu([]);M.collectionType&&en(s.vC[M.collectionType]),M.lineOfProduct&&en(s.vC[M.lineOfProduct]),M.sortBy?er(M.sortBy):er(void 0),es((0,s.r4)(M))},[F.categories,F.sortOptions,M]);let getListing=()=>{H.getProducts({query:(0,s.Wz)(M)})};(0,r.useEffect)(()=>{eo&&H.getPlpLayout(eo||"","ACQ_PLP_WEB_NEW_")},[eo]),(0,r.useEffect)(()=>{if(X.cityId&&M.collectionType){var e;(null===(e=M.q)||void 0===e?void 0:e.length)?T?(0,s.Jh)("UNLMTD Search Page Opened",{search_term:M.q,plan:null==O?void 0:O.label}):(0,s.Sk)("moe_event",{moe_event_name:"Search Results Loaded",moe_event_data:{search_term:M.q,experiment_new_desktop:(0,s.hB)("experiment_new_desktop")}}):("CATEGORY_RENT"==M.collectionType&&(0,s.Jh)("PLP Page Loaded",{collection:M.collection,ab_experiement:"a"}),"CATEGORY_BUY"==M.collectionType&&(0,s.Jh)("Buy PLP Page Loaded",{collection:M.collection,buy_type:M.lineOfProduct?M.lineOfProduct:"ALL",ab_experiement:"a"}),"GENERIC_COLLECTION"==M.collectionType&&(0,s.Jh)("Custom PLP Page Loaded",{collection:M.collection,ab_experiement:"a"}),T&&(0,s.Jh)("UNLMTD Product Catalogue Loaded",{plp_collection_name:M.collection,plp_lop:"UNLMTD",collection:M.collection,plan:null==O?void 0:O.label,product_category:M.collection,collectionType:M.collectionType,flow:"checkout"}
1)),getListing()}triggerPlpView()},[M,Y,X]);let triggerPlpView=()=>{let e;if("CATEGORY_RENT"===M.collectionType||"CATEGORY_BUY"===M.collectionType){let t=M.lineOfProduct;e="CATEGORY_RENT"===M.collectionType&&"RENT"||t||"BUY_ALL"}(0,s.Sk)("plp_viewed",{plp_lop:e,plp_collection_name:M.collection,ab_experiement:"a"})};return(0,a.BX)("div",{className:"-mt-[40px] max-w-[1440px] mx-auto",children:[et&&(0,a.tZ)("div",{className:"sticky z-30 ".concat(eg.category),children:(0,a.BX)("div",{className:"bg-neutral-1 ",children:[O&&(0,a.BX)("div",{className:"relative w-full h-14 flex items-center justify-center gap-4 px-4",style:{background:"linear-gradient(142deg, #5A1A85 -116.61%, #1A1A1A 248.02%)"},children:[T&&(0,a.tZ)(i.r0F,{variant:"textOnly",className:"absolute left-4 top-1/2 -translate-y-1/2 !p-0 text-white hover:bg-transparent",onClick:()=>I.goBackOrGoHome(),"aria-label":"Go back",children:(0,a.tZ)("span",{style:{transform:"rotate(180deg)"},children:(0,a.tZ)(u.AD,{})})}),(0,a.tZ)("p",{className:"text-white",children:"".concat(O.label," | ").concat(A,"/").concat(O.totalProductCount," products")}),(0,a.tZ)(i.kod,{className:"w-[360px]",value:100*(A||0)/O.totalProductCount}),(0,a.tZ)(i.r0F,{variant:"textOnly",className:"text-white h-fit hover:bg-transparent underline cursor-pointer",onClick:E,children:"Change Plan"})]}),(0,a.tZ)("div",{className:"flex gap-12 items-center justify-between overflow-x-auto scrollbar-hide",children:!F.isLoading||F.categories.length>0?null===(n=F.categories)||void 0===n?void 0:n.map(e=>(0,a.tZ)(i.WLM,{data:e,selectedCategory:eo,lineOfProduct:el,cityName:null==X?void 0:X.cityName,isUnlmtd:T,plan:null==O?void 0:O.label},e.label)):(0,a.tZ)(a.HY,{children:[1,2,3,4,5,6,7,8,9].map(e=>(0,a.BX)("div",{className:"flex items-center gap-1 pl-2 pr-3 py-2.5 flex-shrink-0",children:[(0,a.tZ)("div",{className:"h-[18px] w-[18px] bg-neutral-2 rounded animate-pulse"}),(0,a.tZ)("div",{className:"h-5 w-16 bg-neutral-2 rounded animate-pulse"})]},e))})})]})}),M.collection&&F.layoutData?(0,a.tZ)("div",{className:"w-full",children:(0,a.tZ)(Z.Z,{...F.layoutData,noPadding:!0})}):null,(0,a.BX)("div",{className:"flex items-center sticky bg-white z-20 ".concat(eg.subCategory),children:[(0,a.tZ)("div",{className:"shrink-0 w-[250px] flex items-center pl-5 pr-2 py-4",children:(0,a.BX)("button",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>em(!ep),children:[(0,a.tZ)("span",{className:"text-md font-extrabold leading-[22px] text-black whitespace-nowrap",children:ep?"Show filters":"Hide filters"}),(0,a.tZ)(i.G$p,{className:"w-4 h-4 transition-transform duration-300 ease-in-out ".concat(ep?"rotate-90":"-rotate-90")})]})}),ed&&ed.length>0&&(0,a.tZ)("div",{className:"flex gap-3 items-center overflow-x-auto scrollbar-hide p-4",children:F.isLoading&&0===ed.length?(0,a.tZ)(a.HY,{children:[1,2,3,4,5,6,7,8,9].map(e=>(0,a.tZ)("div",{className:"h-8 w-24 bg-neutral-2 animate-pulse rounded-lg shrink-0"},e))}):ed.map(e=>{var t;let l=(null===(t=M.collection)||void 0===t?void 0:t.toLowerCase())===e.name.toLowerCase();return(0,a.tZ)(i.CAE,{variant:"filled",size:"md",selected:l,onClick:()=>{l&&eo?H.navigateToCategory(eo,null==X?void 0:X.cityName):H.navigateToSubcategory(e.name,null==X?void 0:X.cityName),T&&(0,s.Jh)("UNLMTD Product Sub-Category Clicked",{product_category:M.collection,route:"checkout",flow:"checkout",plan:null==O?void 0:O.label,product_sub_category:e.name})},children:e.label},e.name)})}),z.length>0&&(0,a.tZ)("div",{className:"flex gap-3 items-center overflow-x-auto scrollbar-hide p-4 w-full",children:(0,a.tZ)(search_header_v2,{searchQuery:z,selectedLOP:M.lineOfProduct||M.collectionType,onLOPChange:e=>{let t=new URLSearchParams(M);if(t.delete("collectionType"),t.delete("lineOfProduct"),"CATEGORY_RENT"===e.category?t.set("collectionType","CATEGORY_RENT"):(t.set("collectionType",e.category),t.set("lineOfProduct",e.lop||"BUY_NEW")),"CATEGORY_UNLMTD"===e.category){D.push("/unlmtd/search/results?".concat(t.toString()));return}D.push("/search/results?".concat(t.toString()))},totalResults:null==q?void 0:q.length})})]}),(0,a.tZ)("div",{className:"flex flex-col flex-1",children:F.error&&(!ec||0===ec.length)?(0,a.tZ)(ErrorScreenV2,{title:"Something Went Wrong",subt
1itle:"We are unable to load the page"}):(0,a.tZ)(a.HY,{children:(0,a.BX)("div",{className:"flex flex-1",children:[(0,a.tZ)("div",{className:"shrink-0 bg-white transition-all duration-300 ease-in-out sticky self-start flex flex-col ".concat(eg.sidebar," ").concat(ey?"w-0 overflow-hidden":"w-[250px]"),children:(0,a.BX)("div",{className:"w-[250px] transition-opacity duration-300 ease-in-out flex flex-col h-full ".concat(ey?"opacity-0":"opacity-100"),children:[(ec&&ec.length>0||ei)&&(0,a.tZ)("div",{className:"pt-2 pb-4 pl-5 pr-2 shrink-0 bg-white",children:(0,a.tZ)("button",{className:"text-md font-extrabold leading-6 text-primary-7 underline cursor-pointer",onClick:()=>{T&&(0,s.Jh)("UNLMTD Filters Clear All Tapped ",{plan:null==O?void 0:O.label}),H.clearAllFilters()},children:"Clear all"})}),"CATEGORY_BUY"===M.collectionType&&!z.length&&(0,a.tZ)("div",{className:"px-4 pb-4 shrink-0 bg-white",children:(0,a.BX)(i.tXp,{variant:"filled",size:"md",value:el,onValueChange:e=>{en(e),H.switchLOP(e)},children:[(0,a.tZ)(i.GXR,{value:"BUY_ALL",className:"flex-1",children:"All"}),(0,a.tZ)(i.GXR,{value:"BUY_NEW",className:"flex-1",children:"New"}),(0,a.tZ)(i.GXR,{value:"BUY_REFURBISHED",className:"flex-1",children:"Refurbished"})]})}),(0,a.BX)("div",{className:"flex-1 overflow-y-auto",children:[!F.isLoading&&F.sortOptions.length>0&&(0,a.BX)("div",{className:"py-4 pl-5 pr-2",children:[(0,a.BX)("button",{className:"flex items-center justify-between w-full cursor-pointer",onClick:()=>ev(!eh),children:[(0,a.tZ)("span",{className:"text-base font-extrabold text-black uppercase",children:"SORT BY"}),(0,a.tZ)(i.G$p,{className:"w-5 h-5 transition-transform duration-300 ease-in-out ".concat(eh?"rotate-180":"")})]}),(0,a.tZ)("div",{className:"grid transition-all duration-300 ease-in-out ".concat(eh?"grid-rows-[1fr] opacity-100 mt-4":"grid-rows-[0fr] opacity-0 mt-0"),children:(0,a.tZ)("div",{className:"overflow-hidden",children:(0,a.tZ)("div",{className:"flex flex-col gap-4",children:F.sortOptions.map(e=>(0,a.BX)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,a.tZ)("input",{type:"radio",name:"sortBy",checked:ei===e.label,onChange:()=>H.navigateToSort(e.label,ec||[]),className:"w-4 h-4 appearance-none rounded-full border border-neutral-10 bg-white checked:bg-primary-7 checked:border-primary-7 checked:shadow-[inset_0_0_0_2px_white]"}),(0,a.tZ)("span",{className:"text-base text-black",children:e.label})]},e.label))})})})]}),F.isLoading?(0,a.BX)(a.HY,{children:[(0,a.BX)("div",{className:"py-4 pl-5 pr-2",children:[(0,a.BX)("div",{className:"flex items-center justify-between w-full mb-4",children:[(0,a.tZ)("div",{className:"h-5 w-16 bg-neutral-2 animate-pulse"}),(0,a.tZ)("div",{className:"h-5 w-5 bg-neutral-2 animate-pulse"})]}),[1,2,3,4,5].map(e=>(0,a.BX)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.tZ)("div",{className:"h-4 w-4 bg-neutral-2 rounded-full animate-pulse"}),(0,a.tZ)("div",{className:"h-4 w-24 bg-neutral-2 animate-pulse"})]},e))]}),[1,2,3,4].map(e=>(0,a.BX)("div",{className:"py-4 pl-5 pr-2",children:[(0,a.BX)("div",{className:"flex items-center justify-between w-full mb-4",children:[(0,a.tZ)("div",{className:"h-5 w-20 bg-neutral-2 animate-pulse"}),(0,a.tZ)("div",{className:"h-5 w-5 bg-neutral-2 animate-pulse"})]}),[1,2,3].map(e=>(0,a.BX)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.tZ)("div",{className:"h-4 w-4 bg-neutral-2 animate-pulse"}),(0,a.tZ)("div",{className:"h-4 w-20 bg-neutral-2 animate-pulse"})]},e))]},e))]}):null===(o=F.filterOptions)||void 0===o?void 0:o.map(e=>(0,a.tZ)(filter_section_v2,{title:e.label,options:e.options,filterKey:e.value,selectedFilters:ec||[],onFilterSelect:(e,t)=>{T?(0,s.Jh)("UNLMTD Filters Applied ",{plan:null==O?void 0:O.label}):(0,s.Jh)("PLP Filter Selected",{filter_attribute_name:e,filter_attribute_value:t,vertical:"CATEGORY_RENT"===M.collectionType?"rent":"buy",experiment_new_desktop:(0,s.hB)("experiment_new_desktop")}),H.toggleFilter(e,t)}},e.value))]})]})}),(0,a.tZ)("div",{className:"flex-1 min-w-0 px-5 pb-10 bg-white",children:J?(0,a.tZ)("div",{className:"grid gap-4 grid-cols-4",children:[1,2,3,4,5,6,7,8,9,10,11,12].map(e=>(0,a.BX)("div",{className:"flex flex-col items-start",children:[(0,a.tZ)("div",{className:"w-full bg-neutral-2 animate-pulse ".concat(U?"aspect-[5/4]":"aspect-square")}),(0,a.BX)("div",{className:"flex flex-col gap-2 py-3 w-full",children:[(0,a.tZ)("div",{className:"h-5 w-4/5 bg-neutral-2 animate-pulse"}),(0,a.BX)("div",{className:"flex gap-2 items-center",children:[(0,a.tZ)("div",{className:"h-[22px] w-16 bg-neutral-2 animate-pulse"}),(0,a.tZ)("div",{className:"h-4 w-12 bg-neutral-2 animate-pulse"})]}),(0,a.BX)("div",{className:"flex gap-1 items-center",children:[(0,a.tZ)("div",{className:"h-4 w-4 bg-neutral-2 animate-pulse"}),(0,a.tZ)("div",{className:"h-4 w-14 bg-neutral-2 animate-pulse"})]})]})]},e))}):q&&q.length>0?(0,a.BX)(a.HY,{children:[(0,a.tZ)("div",{className:"grid gap-4 grid-cols-4",children:q.slice(0,eN).map((e,t)=>{var l;let n=(0,s.FU)({data:{...e,showBadge:!0},badgeConfig:null==j?void 0:null===(l=j.data)||void 0===l?void 0:l.badge,maxImages:4,useDesktopMedia:U});return(0,a.BX)(r.Fragment,{children:[(()=>{let e=getAdTileAtPosition(t);return e&&e.AdTile?(0,a.tZ)("div",{className:"rounded-sm overflow-hidden",children:(0,a.tZ)(e.AdTile.component,{...e.AdTile.transformer(e.adComponent)})}):null})(),(0,a.tZ)("div",{className:"transition-shadow duration-200 hover:shadow-lg rounded-sm",children:T?(0,a.tZ)(i.nH1,{...n,width:"100%",borderRadius:0,contentPaddingX:!0,enableScrollOnHover:_,showProductInfo:!T,priority:t<8,countInCart:B?B(e.id):0,onCTAClick:()=>{null==k||k(e.id),(0,s.Jh)("UNLMTD Product Added to Cart",{screen_name:"PLP",product_id:e.id,plan:null==O?void 0:O.label,flow:"checkout"})},onProductRemoveFromCart:()=>{null==S||S(e.id),(0,s.Jh)("UNLMTD Product Removed from Cart",{screen_name:"PLP",product_id:e.id,plan:null==O?void 0:O.label,flow:"checkout"})}}):(0,a.tZ)(i.AIC,{...n,width:"100%",borderRadius:0,impressionScreenName:"PLP",contentPaddingX:!0,enableScrollOnHover:_,showProductInfo:!T,priority:t<8})})]},"".concat(e.permalink,"-").concat(t))})}),T?null:z?(0,a.tZ)(a.HY,{children:ee&&(0,a.tZ)(SearchRecommendationsWidget,{data:ee})}):(0,a.tZ)(a.HY,{children:K&&(0,a.tZ)(PLPRecommendationsWidget,{data:K})}),q.length>eN&&(0,a.tZ)("div",{className:"grid gap-4 grid-cols-4",children:q.slice(eN).map((e,t)=>{var l;let n=t+eN,o=(0,s.FU)({data:{...e,showBadge:!0},badgeConfig:null==j?void 0:null===(l=j.data)||void 0===l?void 0:l.badge,maxImages:4,useDesktopMedia:U});return(0,a.BX)(r.Fragment,{children:[(()=>{let e=getAdTileAtPosition(n);return e&&e.AdTile?(0,a.tZ)("div",{className:"rounded-sm overflow-hidden",children:(0,a.tZ)(e.AdTile.component,{...e.AdTile.transformer(e.adComponent)})}):null})(),(0,a.tZ)("div",{className:"transition-shadow duration-200 hover:shadow-lg rounded-sm",children:T?(0,a.tZ)(i.nH1,{...o,width:"100%",borderRadius:0,contentPaddingX:!0,enableScrollOnHover:_,showProductInfo:!T,priority:t<8,countInCart:B?B(e.id):0,onCTAClick:()=>{null==k||k(e.id),(0,s.Jh)("UNLMTD Product Added to Cart",{screen_name:"PLP",product_id:e.id,plan:null==O?void 0:O.label,flow:"checkout"})},onProductRemoveFromCart:()=>{null==S||S(e.id),(0,s.Jh)("UNLMTD Product Removed from Cart",{screen_name:"PLP",product_id:e.id,plan:null==O?void 0:O.label,flow:"checkout"})}}):(0,a.tZ)(i.AIC,{...o,width:"100%",borderRadius:0,impressionScreenName:"PLP",contentPaddingX:!0,enableScrollOnHover:_,showProductInfo:!T,priority:t<8})})]},e.permalink)})}),V&&Object.keys(V).length>0&&(0,a.tZ)(x.G,{seoContent:V,collapsed:!1})]}):(0,a.tZ)(ErrorScreenV2,{title:"No Products Found",subtitle:"Clear these filters for available furniture"})})]})})}),(0,a.tZ)(w.Z,{})]})}},74575:function(e,t,l){l.d(t,{G:function(){return PlpFooter}});var n=l(52903),o=l(86263),a=l(26116),i=l(15446),r=l(69692),c=l(2784);let PlpFooter=e=>{var t;let{seoContent:l,collapsed:s}=e,[d,u]=(0,c.useState)("82.8px"),[p,m]=(0,c.useState)(s);return(0,n.BX)(r.Z,{sx:{padding:"16px",color:(0,i.L)("Gray 0")},children:[(0,n.BX)(r.Z,{sx:{...(0,a.C2)("Tiny-Regular"),color:"#333333",overflow:"hidden"},children:[(0,n.tZ)("hr",{style:{marginTop:"16px",marginBottom:"16
1px",border:"1px solid whitesmoke"}}),(0,n.BX)(r.Z,{sx:{height:d,overflow:"hidden",transition:"height 0.3s ease"},children:[(0,n.tZ)(o.xOw,{data:l.footer}),(null==l?void 0:null===(t=l.schemas)||void 0===t?void 0:t.length)>0&&l.schemas.map((e,t)=>(0,n.tZ)(o.xOw,{data:e},t))]})]}),!p&&(0,n.tZ)(r.Z,{onClick:()=>{u("auto"),m(!0)},sx:{...(0,a.C2)("Small-SemiBold"),color:(0,i.L)("Minty 0"),margin:"10px 0 24px 0",fontFamily:"Recline",cursor:"pointer",display:"inline-block"},children:"See more >"})]})}},34180:function(e,t,l){l.d(t,{Z:function(){return Autoplay}});let n={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Autoplay(e={}){let t,l,o,a;let i=null,r=0,c=!1,s=!1,d=!1,u=!1;function startAutoplay(){if(!o){if(documentIsHidden()){d=!0;return}c||l.emit("autoplay:play"),function(){let{ownerWindow:e}=l.internalEngine();e.clearTimeout(r),r=e.setTimeout(next,a[l.selectedScrollSnap()]),i=new Date().getTime(),l.emit("autoplay:timerset")}(),c=!0}}function stopAutoplay(){o||(c&&l.emit("autoplay:stop"),function(){let{ownerWindow:e}=l.internalEngine();e.clearTimeout(r),r=0,i=null,l.emit("autoplay:timerstopped")}(),c=!1)}function visibilityChange(){if(documentIsHidden())return d=c,stopAutoplay();d&&startAutoplay()}function documentIsHidden(){let{ownerDocument:e}=l.internalEngine();return"hidden"===e.visibilityState}function pointerDown(){s||stopAutoplay()}function pointerUp(){s||startAutoplay()}function mouseEnter(){s=!0,stopAutoplay()}function mouseLeave(){s=!1,startAutoplay()}function next(){let{index:e}=l.internalEngine(),n=e.clone().add(1).get(),o=l.scrollSnapList().length-1,a=t.stopOnLastSnap&&n===o;if(l.canScrollNext()?l.scrollNext(u):l.scrollTo(0,u),l.emit("autoplay:select"),a)return stopAutoplay();startAutoplay()}return{name:"autoplay",options:e,init:function(i,r){l=i;let{mergeOptions:c,optionsAtMedia:s}=r,d=c(n,Autoplay.globalOptions),p=c(d,e);if(t=s(p),l.scrollSnapList().length<=1)return;u=t.jump,o=!1,a=function(e,t){let l=e.scrollSnapList();return"number"==typeof t?l.map(()=>t):t(l,e)}(l,t.delay);let{eventStore:m,ownerDocument:h}=l.internalEngine(),v=!!l.internalEngine().options.watchDrag,g=function(e,t){let l=e.rootNode();return t&&t(l)||l}(l,t.rootNode);m.add(h,"visibilitychange",visibilityChange),v&&l.on("pointerDown",pointerDown),v&&!t.stopOnInteraction&&l.on("pointerUp",pointerUp),t.stopOnMouseEnter&&m.add(g,"mouseenter",mouseEnter),t.stopOnMouseEnter&&!t.stopOnInteraction&&m.add(g,"mouseleave",mouseLeave),t.stopOnFocusIn&&l.on("slideFocusStart",stopAutoplay),t.stopOnFocusIn&&!t.stopOnInteraction&&m.add(l.containerNode(),"focusout",startAutoplay),t.playOnInit&&startAutoplay()},destroy:function(){l.off("pointerDown",pointerDown).off("pointerUp",pointerUp).off("slideFocusStart",stopAutoplay),stopAutoplay(),o=!0,c=!1},play:function(e){void 0!==e&&(u=e),startAutoplay()},stop:function(){c&&stopAutoplay()},reset:function(){c&&startAutoplay()},isPlaying:function(){return c},timeUntilNext:function(){if(!i)return null;let e=a[l.selectedScrollSnap()],t=new Date().getTime()-i;return e-t}}}Autoplay.globalOptions=void 0}}]);
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.