1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a06558-377b-0000-fcee-d845e2d0a792";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="19cc9185-4a93-571c-9a62-694b07ec0743")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,899738,e=>{"use strict";let t=(0,e.i(456420).default)("shopping-cart",[["path",{d:"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18",key:"uebgi3"}],["path",{d:"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25",key:"1j7c9p"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]]);e.s(["ShoppingCart",0,t],899738)},90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return c}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let o=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class a{disable(){throw o}getStore(){}run(){throw o}exit(){throw o}enterWith(){throw o}static bind(e){return e}}let i="u">typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return i?new i:new a}function u(e){return i?i.bind(e):a.bind(e)}function c(){return i?i.snapshot():function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}}},242344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},563599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(242344)},309885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let n=e.r(132061);function l(e){let{reason:t,children:r}=e;if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(843476),l=e.r(174080),o=e.r(563599),a=e.r(309885),i=e.r(543369);function s(e){let{moduleIds:t}=e;if("u">typeof window)return null;let r=o.workAsyncStorage.getStore();if(void 0===r)return null;let s=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files;s.push(...t)}}if(0===s.length)return null;let u=(0,i.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:s.map(e=>{let t=`${r.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style",nonce:r.nonce},e):((0,l.preload)(t,{as:"script",fetchPriority:"low",nonce:r.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(843476),l=e.r(271645),o=e.r(667585),a=e.r(652157);function i(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},r=(0,l.lazy)(()=>t.loader().then(i)),u=t.loading;function c(e){let i=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,c=s?l.Suspense:l.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...s?{fallback:i}:{},children:d})}return c.displayName="LoadableComponent",c}},770703,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(555682)._(e.r(869093));function l(e,t){let r={};"function"==typeof e&&(r.loader=e);let l={...r,...t};return(0,n.default)({...l,modules:l.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},166351,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0jpckprs1woz2.js","static/immutable/chunks/1z5hadyw8fwuq.js"].map(t=>e.l(t))).then(()=>t(489642)))},834258,e=>{e.v(t=>Promise.all(["static/immutable/chunks/27etmzmqt5bzy.js","static/immutable/chunks/09nrnl30b0af0.js","static/immutable/chunks/1sn37nuk47d2u.js"].map(t=>e.l(t))).then(()=>t(325828)))},308449,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n={state:"",city:"",postcode:""},l={handUnload:!1,tailgate:!1,heightRestriction:!1},o=(0,r.createContext)(void 0),a="method-freight";function i(e,t){try{if(e&&t){let r=Date.now()+864e5;localStorage.setItem(a,JSON.stringify({result:e,details:t,expiresAt:r}))}else localStorage.removeItem(a)}catch(e){console.error("Failed to save freight to localStorage:",e)}}e.s(["EMPTY_FREIGHT_SELECTION",0,n,"FreightProvider",0,function(e){let{children:s}=e,[u,c]=(0,r.useState)({result:null,details:null,loading:!1,error:null}),[d,f]=(0,r.useState)(n),[m,g]=(0,r.useState)(l),[p,h]=(0,r.useState)(null),[y,b]=(0,r.useState)("idle"),S=(0,r.useRef)(!1),v=(0,r.useRef)(""),j=(0,r.useRef)(0);(0,r.useEffect)(()=>{let e=function(){try{let e=localStorage.getItem(a);if(!e)return{result:null,details:null};let t=JSON.parse(e);if(t.expiresAt&&Date.now()>t.expiresAt||t.details&&!t.details.marketSlug)return localStorage.removeItem(a),{result:null,details:null};return{result:t.result||null,details:t.details||null}}catch(e){return console.error("Failed to parse freight from localStorage:",e),localStorage.removeItem(a),{result:null,details:null}}}();if((e.result||e.details)&&c(t=>({...t,result:e.result,details:e.details})),e.details){let{state:t,city:r,postcode:n}=e.details;f(e=>e.city||e.postcode||e.state?e:{state:t??"",city:r,postcode:n})}},[]);let P=(0,r.useCallback)(e=>{c(t=>(i(e,t.details),{...t,result:e}))},[]),k=(0,r.useCallback)(e=>{c(t=>(i(t.result,e),{...t,details:e}))},[]),w=(0,r.useCallback)(e=>{c(t=>({...t,loading:e}))},[]),C=(0,r.useCallback)(e=>{c(t=>({...t,error:e}))},[]),O=(0,r.useCallback)(()=>{c({result:null,details:null,loading:!1,error:null}),f(n),v.current="",localStorage.removeItem(a)},[]),_=(0,r.useCallback)(()=>{S.current||(S.current=!0,b("loading"),fetch("/api/freight/metadata").then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(e=>{h(e),b("ready")}).catch(()=>{b("error")}).finally(()=>{S.current=!1}))},[]),x=(0,r.useCallback)(()=>{"idle"===y&&_()},[y,_]),E=(0,r.useMemo)(()=>({result:u.result,details:u.details,loading:u.loading,error:u.error,setResult:P,setDetails:k,setLoading:w,setError:C,clearFreight:O,selection:d,setSelection:f,options:m,setOptions:g,metadata:p,metadataError:"error"===y,metadataLoading:"idle"===y||"loading"===y,ensureMetadata:x,retryMetadata:_,quoteKeyRef:v,quoteSeqRef:j}),[u,P,k,w,C,O,d,m,p,y,x,_]);return(0,t.jsx)(o.Provider,{value:E,children:s})},"useFreightContext",0,function(){let e=(0,r.useContext)(o);if(void 0===e)throw Error("useFreightContext must be used within a FreightProvider");return e}])},87774,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n=(0,r.createContext)({assistantPrompts:[],cartSignageBenefits:[]});e.s(["SiteCopyProvider",0,function(e){let{children:r,copy:l}=e;return(0,t.jsx)(n.Provider,{value:l,children:r})},"useSiteCopy",0,function(){return(0,r.useContext)(n)}],87774)},409992,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(392726),l=e.i(227032);let o="solutions-finder-suggested-streams",a=(0,r.createContext)(void 0);e.s(["SolutionsFinderProvider",0,function(e){let{children:i}=e,s=(0,n.useMarketRouter)();return(0,r.useEffect)(()=>{let e=e=>
1{e.detail?.suggestedStreams?.length&&function(e){try{sessionStorage.setItem(o,JSON.stringify(e))}catch{}}(e.detail.suggestedStreams),s.push("/build-my-station")},t=e=>{e.detail?.prompt&&(0,l.stashSignageHandoff)({prompt:e.detail.prompt,source:"home-assistant"}),s.push("/shop")};return window.addEventListener("open-solutions-finder",e),window.addEventListener("open-signage-builder",t),()=>{window.removeEventListener("open-solutions-finder",e),window.removeEventListener("open-signage-builder",t)}},[s]),(0,t.jsx)(a.Provider,{value:{openModal:()=>{s.push("/build-my-station")}},children:i})},"getSuggestedStreams",0,function(){try{let e=sessionStorage.getItem(o);if(e)return sessionStorage.removeItem(o),JSON.parse(e)}catch{}return[]},"useSolutionsFinder",0,function(){let e=(0,r.useContext)(a);return void 0!==e?e:{openModal:()=>{window.dispatchEvent(new Event("open-solutions-finder"))}}}])},539675,e=>{"use strict";var t=e.i(271645),r=e.i(338968),n=e.i(674675);e.s(["useCartSession",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cart",l=arguments.length>1?arguments[1]:void 0,{slug:o}=(0,r.useMarket)(),a=(0,n.useCartStore)(e=>e._hasHydrated),i=(0,n.useCartStore)(e=>e.items),s=(0,t.useRef)(null),u=l?.enabled??!0,c=l?.email??null,d=l?.name??null,f=l?.emailSource,m=l?.marketingConsent;(0,t.useEffect)(()=>{if(!(u&&a))return;let t={market:o,stage:e,items:i.map(e=>({productCode:e.variantId,quantity:e.quantity})),...c?{email:c,emailSource:f??"checkout_form"}:{},...d?{name:d}:{},...void 0===m?{}:{marketingConsent:m}},r=JSON.stringify([t.market,t.stage,t.email??"",t.name??"",t.marketingConsent??null,t.items.map(e=>`${e.productCode}:${e.quantity}`).sort((e,t)=>e.localeCompare(t))]);if(r===s.current)return;let n=setTimeout(()=>{s.current=r,fetch("/api/cart/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0}).catch(()=>{s.current=null})},5e3);return()=>clearTimeout(n)},[u,a,i,o,e,c,d,f,m])}])},886515,e=>{"use strict";e.s(["clientStorage",0,{getItem(e){try{return localStorage.getItem(e)}catch{return null}},setItem(e,t){try{localStorage.setItem(e,t)}catch{}},removeItem(e){try{localStorage.removeItem(e)}catch{}}}])}]); 2 3//# chunkId=19cc9185-4a93-571c-9a62-694b07ec0743
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.