PageSourceSearch

https://www.jumbo.com/_nuxt/CFkb9LMM.js

js jumbo.com collected 2026-09-24 08:52:15 UTC 1,487 bytes, 37 lines download raw bytes

1import{dC as n,aZ as o,ap as s,at as i,b as r}from"./CelG4gE-.js";const l=n(o(`
2  query GetProfile {
3    getProfile {
4      customerId
5      type
6      name {
7        givenName
8      }
9      birthDate
10      email
11      termsAndConditions {
12        general
13      }
14      loyaltyCard {
15        number
16      }
17      checkoutPreferences {
18        printReceipt
19        promotionStamps
20      }
21      digitalStamps {
22        optIn
23      }
24      buyingStampsPreference
25      localState @client {
26        savingStampsCheckoutPreference
27        printReceiptCheckoutPreference
28      }
29    }
30  }
31`)),c=n(o(`
32  mutation UpdateProfile($req: UpdateLoyaltyProfileRequest!) {
33    updateLoyaltyProfile(request: $req) {
34      status
35    }
36  }
37`)),f=s("profile",{state:()=>({error:void 0,profile:void 0,loading:!1}),actions:{async fetch(){const{client:e}=i(),{isAuthenticated:a}=r();if(!a.value)return;const{data:t}=await e.query({query:l,fetchPolicy:"no-cache"});!t||!t.getProfile||(this.profile={...t.getProfile})},async update(e){const{client:a}=i(),{isAuthenticated:t}=r();if(t.value){this.loading=!0;try{await a.mutate({mutation:c,variables:{req:{...e}}}),this.profile={...this.profile,...e}}catch{this.error="Failed to update"}finally{this.loading=!1}}}},getters:{isExtrasOptedIn:e=>!!e.profile?.termsAndConditions?.general,isSavingStampsOptedIn:e=>!!e.profile?.digitalStamps?.optIn,buyingStampsPreference:e=>e.profile?.buyingStampsPreference,firstname:e=>e.profile?.name.givenName}});export{f as u};

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.