PageSourceSearch

https://www.rosebikes.com/_nuxt/QuoteStore-99cVcAjE.js

js rosebikes.com collected 2026-09-29 05:59:51 UTC 1,722 bytes, 1 lines download raw bytes

1import{at as I,f as o,xt as v}from"./runtime-core.esm-bundler-s8AntrsW.js";import{n as V}from"./pinia-C2EHZkDm.js";import{t as F}from"./useUrqlClient-BDqloh0K.js";import{$ as P,Et as f,Ht as r}from"./app/api/graphql/generated/graphql.ts-CstZYwUw.js";import{n as A,t as c}from"./BroadcastChannelMessageEnum-yG3tQLae.js";import{t as p}from"./fragment-masking-BkexAerc.js";import"./all-Drsx3IW_.js";import{t as B}from"./RouteEnum-CQbj0FUZ.js";import{o as S}from"./_sentry-UZGpaVio.js";var M=V("quoteStore",()=>{const y=F(),{currentTabId:Q,broadcastChannelData:s,postToBroadcastChannel:d,closeBroadcastChannel:h}=A(),a=v(!1),t=v();async function E(){const e=await y.query(P,{},{requestPolicy:"network-only"});if(e.error||!e.data?.quote){const l=e.error?e.error:new Error("Quote response empty");return S(l),!1}return t.value=p(f,e.data.quote),a.value=!0,!0}async function g(){return a.value&&t&&t.value||await E(),t}function D(){d(c.QUOTE_UPDATE),a.value=!1}function w(e){return d(c.QUOTE_UPDATE),t.value=p(f,e),a.value=!0,t.value}const n=o(()=>t.value?.validityFlags??[]),u=e=>n.value.includes(e),m=(e,l=!1)=>l?e.every(i=>n.value.includes(i)):e.some(i=>n.value.includes(i)),C=o(()=>n.value.length===0),T=o(()=>!m([r.ShippingAddressInvalid,r.BillingAddressInvalid])),U=o(()=>!u(r.PaymentInvalid)),q=o(()=>!u(r.PaymentDetailsInvalid));return I(()=>s.value,async()=>{s.value?.tabId!==Q.value&&s.value?.message===c.QUOTE_UPDATE&&window.location.pathname!==B.CheckoutSuccess&&(h(),window.location.reload())}),{internalQuoteValidDoNotUse:a,internalQuoteDoNotUse:t,allValid:C,addressesValid:T,paymentValid:U,paymentDetailsValid:q,getQuote:g,invalidateLocalQuote:D,updateQuote:w,hasInvalidFlag:u,hasInvalidFlags:m}});export{M 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.