"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[24],{305:(e,t,s)=>{s.d(t,{a:()=>o,b:()=>n,c:()=>c,d:()=>u,e:()=>r,f:()=>d,g:()=>a});const n="rbx_wishlist",o="rbx_wishlist_ids",i="rbx_wishlist_pending",r=()=>{if("undefined"==typeof localStorage)return[];try{const e=localStorage.getItem(n);return e?JSON.parse(e):[]}catch(e){return[]}},a=e=>{if("undefined"!=typeof localStorage&&(localStorage.setItem(n,JSON.stringify(e)),"undefined"!=typeof document)){const t=e.map((e=>encodeURIComponent(e.productId))).join(",");document.cookie=`${o}=${t}; path=/; max-age=31536000; SameSite=Lax`}},u=()=>{if("undefined"==typeof sessionStorage)return null;try{const e=sessionStorage.getItem(i);return e?JSON.parse(e):null}catch(e){return null}},d=(e,t)=>{"undefined"!=typeof sessionStorage&&sessionStorage.setItem(i,JSON.stringify({item:e,returnUrl:t}))},c=()=>{"undefined"!=typeof sessionStorage&&sessionStorage.removeItem(i)}},364:(e,t,s)=>{function n(e){const t=e((e=>e.wishlistItems)),s=e((e=>e.addToWishlist)),n=e((e=>e.removeFromWishlist));return{items:t,add:s,remove:n,isInWishlist:e=>t.some((t=>t.productId===e))}}function o(e,t,s,n){return e.getState().syncWishlistOnLogin(t,s,n)}s.d(t,{a:()=>o,b:()=>n})}}]);