PageSourceSearch

https://puma.kz/_nuxt/statusCartEvent.957136fe.js

js puma.kz collected 2026-09-24 12:49:10 UTC 1,575 bytes, 1 lines download raw bytes

1import{ag as C}from"./entry.b1c6d1f2.js";function U(){return window.crypto&&window.crypto.randomUUID?window.crypto.randomUUID():function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,a=>(a^crypto.getRandomValues(new Uint8Array(1))[0]&15>>a/4).toString(16))}()}function v(n,a){let s=window.localStorage.getItem(a),u=null;return s&&s===n?u=!1:(u=!0,window.localStorage.setItem(a,n)),u}function h(n,a){if(a===3)return;const s="eSputnikGuid",u="eSputnikGuidKey",i="eSputnikUserCurrentCartStatus",l="eSputnikUserLastCartStatus";typeof n=="object"?w(n):console.warn("Wrong input data",n);function w(r){const o=[],t=[];Array.isArray(r)&&r.length?r.forEach(e=>{var S,g;const I={productKey:""+e.tradeOfferId,price:""+((g=(S=e==null?void 0:e.product)==null?void 0:S.price)==null?void 0:g.sale),quantity:""+e.quantity,currency:"KZT",other_tags:{product:e.product,productId:e.productId,statusLabel:e.statusLabel,informationMessage:e.informationMessage,tradeOffer:e.tradeOffer,tradeOfferId:e.tradeOfferId}};o.push(I),t.push(`${e.tradeOfferId}:${e.quantity}`)}):t.push("empty");const c=v(t.join(),u),f=d(o,y(c,o));window.localStorage.setItem(i,JSON.stringify(f)),C("StatusCart",f)}function d(r,o){return{StatusCart:r,GUID:o}}function p(r,o){const t=window.localStorage.getItem(i);if(t)window.localStorage.setItem(l,t);else{const c=d(r,o);window.localStorage.setItem(l,JSON.stringify(c))}}function y(r,o){let t=null;return r?(t=U(),p(o,t),window.localStorage.setItem(s,t)):(t=window.localStorage.getItem(s),t||console.error(`Should be window.localStorage.${s}`)),t}}export{h as s};

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.