PageSourceSearch

https://bensoleimani.com/_next/static/chunks/5120-fcfa0ee5827a2e3d.js

js bensoleimani.com collected 2026-10-04 19:04:59 UTC 3,355 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5120],{18333:(e,n,r)=>{r.d(n,{a:()=>h,y:()=>l});var t=r(7620);let l="bs:customer-session-changed",o={isTrade:null,isLoggedIn:null,isLoading:!0},a=o,i=null,s=new Set;async function u(){return i||(i=(async()=>{try{let e=await fetch("/api/customer/session",{cache:"no-store",credentials:"same-origin",headers:{"Cache-Control":"no-cache"}}),n=await e.json();a=n.ok?{isTrade:!!n.isTrade,isLoggedIn:!!n.isLoggedIn,isLoading:!1}:{isTrade:!1,isLoggedIn:!1,isLoading:!1}}catch(e){console.error("Error fetching customer session:",e),a={isTrade:!1,isLoggedIn:!1,isLoading:!1}}finally{i=null,s.forEach(e=>e())}})())}function d(e){return s.add(e),()=>{s.delete(e)}}function c(){return a}function g(){return o}let f=!1;function h(){let e=(0,t.useSyncExternalStore)(d,c,g);return(0,t.useEffect)(()=>{f||(f=!0,window.addEventListener(l,()=>{u()}),document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&u()})),a===o&&u()},[]),e}},41523:(e,n,r)=>{r.d(n,{Dv:()=>a,ne:()=>i,ov:()=>o});let t=e=>"".concat("Made-to-order in approximately"," ").concat(e),l={"rugs-made-to-order":t("16-24 Weeks"),"upholstery-made-to-order":t("6-8 Weeks"),"casegood-made-to-order":"Made-to-Order | Contact for Lead Time"};function o(e){let{tags:n,variantInStock:r}=e;return r?null:function(e){var n,r;for(let t of null!=(n=null==e?void 0:e.tags)?n:[]){let e=l[null!=(r=null==t?void 0:t.trim().toLowerCase())?r:""];if(e)return e}return null}({tags:n})}function a(e){return(null==e?void 0:e.trim())||null}function i(e){if(!e||"object"!=typeof e)return!1;let{availableForSale:n,currentlyNotInStock:r,quantityAvailable:t}=e;return!1===n||!0===r||"number"==typeof t&&t<=0}},50527:(e,n,r)=>{r.d(n,{e7:()=>t}),r(41523);let t="OUTLET SALE"},63020:(e,n,r)=>{r.d(n,{Pj:()=>i,ao:()=>o,nj:()=>s,zC:()=>u});var t=r(50527);let l="TRADE PRICE",o=e=>{let{discountMessages:n,hasMessageColorAccent:r,hasCompare:l}=e;return!r&&(!n&&l||n===t.e7)},a=e=>!!e&&"$0"!==e,i=e=>{var n;let{price:r,comparePrice:t,discount:l}=e,i=a(null==r?void 0:r.cheap)?null==r?void 0:r.cheap:null,s=a(null==t?void 0:t.cheap)?null==t?void 0:t.cheap:null;return o({discountMessages:(null==l||null==(n=l.messages)?void 0:n.length)?l.messages.join(" "):null,hasMessageColorAccent:(null==l?void 0:l.messageColor)!=null&&"black"!==l.messageColor,hasCompare:!!i&&!!s&&s!==i})},s=e=>{let{hasStackable:n,stackableLabel:r,isSale:o,isTrade:a,hasCompare:i,discountMessages:s,hasTradeReference:u=!1}=e;return n?r:o?null!=s?s:t.e7:a&&i&&!u?l:s},u=e=>{let{isSale:n,baseIsSale:r=!1,isTradeBase:t=!1}=e;return t?l:n||r?"ORIGINAL PRICE":"LIST PRICE"}},70179:(e,n,r)=>{r.d(n,{ProductCardSettingsProvider:()=>s,U:()=>u});var t=r(54568),l=r(7620);let o={startingAtLabel:"STARTING AT",salePriceColor:"red",saleTagColor:"default",saleTagTextColor:"white"},a=["red","darker-red","black","blue"];[...a],[...a];let i=(0,l.createContext)(o),s=e=>{let{settings:n,children:r}=e;return(0,t.jsx)(i.Provider,{value:null!=n?n:o,children:r})},u=()=>(0,l.useContext)(i)},92119:(e,n,r)=>{r.d(n,{K7:()=>i,Te:()=>o,n_:()=>a,pm:()=>l});let t="#000000",l="#FFFFFF",o={red:"#b00","darker-red":"#800f0b",black:t,blue:"#16283E",white:l};function a(e){return e&&o[e]?o[e]:t}function i(e){if(!e||"default"===e)return null;let n=o[e];return n?{backgroundColor:n,color:l}:null}}}]);

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.