PageSourceSearch

https://kidsbrandstore.no/_next/static/chunks/4104-e937f151fd93365c.js?dpl=dpl_6kGmw5QaysCcHcF5XgwoLSCK6D4Y

js kidsbrandstore.no collected 2026-09-26 21:30:42 UTC 10,711 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4104],{44104:(t,e,a)=>{a.d(e,{Ai:()=>y,Ht:()=>d,JS:()=>G,Kg:()=>p,P$:()=>P,PF:()=>f,PN:()=>k,PV:()=>V,Q2:()=>q,Qz:()=>x,XA:()=>I,XY:()=>z,XZ:()=>R,Xj:()=>l,YU:()=>O,_d:()=>E,a5:()=>N,ce:()=>T,dT:()=>v,e2:()=>w,fk:()=>m,r3:()=>A,uZ:()=>g,vN:()=>C,yW:()=>b,zO:()=>D});var o=a(35600),r=a(46733),n=a(31032),i=a(13030),s=a(29602);a(2818).env.NEXT_PUBLIC_BRINK_STOREGROUP_MEMBER;let c=async t=>{let{cache:e="force-cache",headers:a,query:o,tags:r,endpoint:n,method:s}=t;try{let t=await fetch("".concat("https://shopper.eu-west-1.kidsbrandstore.brinkcommerce.io/shopper").concat(n),{method:s,headers:{"Content-Type":"application/json",...a},body:o,cache:e,...r&&{next:{tags:r}}});if(!t.ok){let e=await t.json();if(403===t.status&&"checkout already confirmed"!==e.error&&(0,i.deleteCookie)("cartToken"),404===t.status&&"out of stock error"===e.error&&e.productVariantIDs&&e.productVariantIDs.length>0)throw Error(e.error,{cause:{error:e.error,requestId:e.requestId,statusCode:t.status,productVariantIDs:e.productVariantIDs}});throw Error(e.error,{cause:{statusCode:t.status,body:e}})}if(204===t.status)return{data:{}};return{data:await t.json()}}catch(t){throw console.log(t),t}},u=async function(t){var e,a;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ECOM",r=(null===(e=n.A[t])||void 0===e?void 0:e.language)||"en",i=(null===(a=n.A[t])||void 0===a?void 0:a.country)||"en",s=await c({query:JSON.stringify({storeGroupId:o,countryCode:i,languageCode:r}),endpoint:"/sessions/start",method:"POST",cache:"no-store"});return s.data.token&&J(s.data.token,s.data.cart.storeGroupId),s.data},d=async()=>{let t=await _();return t?(await c({query:null,headers:{Authorization:t},endpoint:"/sessions",method:"GET",tags:[r.gp.cart],cache:"no-store"})).data:null},l=async()=>{let t=await _("checkout");return t?(await c({query:null,headers:{Authorization:t},endpoint:"/sessions/checkout",method:"GET",tags:[r.gp.checkout],cache:"no-store"})).data:null},h=async t=>{let{productVariantId:e,quantity:a,token:o,isCheckout:r=!1,options:n}=t,s=await c({query:JSON.stringify({productVariantId:e,quantity:a,options:n}),headers:{Authorization:o},endpoint:"/sessions/items",method:"POST",cache:"no-store"});if((0,i.deleteCookie)("checkoutToken"),r&&s.data.capabilities){let t={paymentProvider:s.data.capabilities.paymentProviders[0],shippingProvider:s.data.capabilities.shippingProviders[0]};await v(t)}return s.data},p=async t=>{let{productVariantId:e,quantity:a,market:o,store:r,options:n}=t,i=await _();return i||(i=(await u(o,r)).token),await h({token:i,productVariantId:e,quantity:a,isCheckout:!1,options:n})},y=async t=>{let e=await _();if(!e)return;let a=await c({query:null,headers:{Authorization:e},endpoint:"/sessions/items/".concat(t),method:"DELETE",cache:"no-store"});return(0,i.deleteCookie)("checkoutToken"),a.data},m=async(t,e)=>{let a=await _();if(!a)return;let o=await c({query:JSON.stringify({quantity:e}),headers:{Authorization:a},endpoint:"/sessions/items/".concat(t),method:"PUT",cache:"no-store"});return(0,i.deleteCookie)("checkoutToken"),o.data},g=async t=>{let e=await _();if(e)return(await c({query:JSON.stringify({discountCode:t}),headers:{Authorization:e},endpoint:"/sessions/discount-codes",method:"POST",cache:"no-store"})).data},k=async t=>{let e=await _();if(e)return(await c({query:null,headers:{Authorization:e},endpoint:"/sessions/discount-codes/".concat(t),method:"DELETE",cache:"no-store"})).data},w=async t=>{let{giftCardCode:e,amount:a,pin:o}=t,r=await _("checkout");if(r)return await c({query:JSON.stringify({pin:o}),headers:{Authorization:r},endpoint:"-retain24/gift-cards/".concat(e),method:"PUT",cache:"no-store"}),"success"},f=async t=>{let e=await _("checkout");if(e)return await c({query:null,headers:{Authorization:e},endpoint:"-retain24/gift-cards/".concat(t),method:"DELETE",cache:"no-store"}),"success"},A=async t=>{let{productParentId:e,storeGroupId:a,countryCode:o,cache:r="no-store"}=t,n=e.toUpperCase();return(await c({query:null,endpoint:"/prices/product-parents/".concat(n,"/store-groups/").concat(a,"/markets/").concat(o),method:"GET",cac
1he:r})).data},b=async t=>{let{productParentId:e,storeGroupId:a,countryCode:o,cache:r="no-store"}=t,n=e.toUpperCase();return(await c({query:null,endpoint:"/stocks/product-parents/".concat(n,"/store-groups/").concat(a,"/markets/").concat(o),method:"GET",cache:r})).data},v=async t=>{let e=await _();if(!e)return;let a=await c({query:JSON.stringify(t),headers:{Authorization:e},endpoint:"/sessions/checkout/start",method:"POST",cache:"no-store"});return J(a.data.token,"",!1,"checkout"),a.data},P=async()=>{let t=await _("checkout");if(!t)throw Error("No token");return(await c({query:JSON.stringify({}),headers:{Authorization:t},endpoint:"-ingrid/sessions/sync",method:"POST",cache:"no-store"})).data},T=async t=>{let{postalCode:e,locale:a,prefillAddress:o}=t,r=await _("checkout");if(!r)throw Error("No token");return(await c({query:JSON.stringify({ingrid:{locales:a?[a]:["en-US"],postalCode:e,search_address:o}}),headers:{Authorization:r},endpoint:"-ingrid/sessions/create",method:"POST",cache:"no-store"})).data},S=(t,e)=>{let a="false"!==window.localStorage.getItem("klarna_newsletter"),r="1"===window.localStorage.getItem("memberTermsApproved"),n=(0,o.A)({txKey:"klarna.newsletter",locale:e});return t?[]:[{id:"news",text:n,checked:"de"!==e&&a,required:"de"!==e&&r}]},E=async t=>{let{props:e,acceptsEmailSMS:a,market:o}=t,r=await _("checkout");if(!r)throw Error("No token");let n=S(a,o);return e.klarna.options={...e.klarna.options,additional_checkboxes:n},(await c({query:JSON.stringify(e),headers:{Authorization:r},endpoint:"-kco/orders",method:"POST",cache:"no-store"})).data},I=async t=>{let{props:e,acceptsEmailSMS:a,market:o}=t,r=await _("checkout");if(!r)throw Error("No token");let n=S(a,o);return e.klarna.options={...e.klarna.options,additional_checkboxes:n},(await c({query:JSON.stringify(e),headers:{Authorization:r},endpoint:"-kco/orders/sync",method:"POST",cache:"no-store"})).data},q=async()=>{let t=await _("checkout");if(t)return(await c({query:null,headers:{Authorization:t},endpoint:"-kco/orders",method:"GET",cache:"no-store"})).data},C=async t=>{let e=await _();if(e)return(await c({query:JSON.stringify({promotionInstanceId:t}),headers:{Authorization:e},endpoint:"-voyado/promotions",method:"POST",cache:"no-store"})).data},O=async t=>{let e=await _();if(e)return(await c({query:JSON.stringify({checkNumber:t}),headers:{Authorization:e},endpoint:"-voyado/vouchers",method:"POST",cache:"no-store"})).data},z=async t=>{let e=await _();if(e)return(await c({query:JSON.stringify({contactId:t}),headers:{Authorization:e},endpoint:"-voyado/start",method:"POST",cache:"no-store"})).data},N=async function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"promotions",a=await _();if(a)return(await c({query:JSON.stringify({}),headers:{Authorization:a},endpoint:"-voyado/".concat(e,"/").concat(t),method:"DELETE",cache:"no-store"})).data},_=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cart";return await (0,i.getCookie)("cart"===t?"cartToken":"checkoutToken")},J=function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2];let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"cart";(0,i.setCookie)("cart"===a?"cartToken":"checkoutToken",t,{maxAge:31536e3,path:"/"})},D=t=>{if(!t.productParent.productVariants.length)return;let e=t.productParent.productVariants[0];return{variantId:e.id,parentId:t.productParent.id,priceListId:t.productParent.storeGroupId,basePrice:e.basePriceAmount,discountAmount:e.discountAmount,discountPercentage:e.discountAmount?e.discountAmount/e.basePriceAmount*100:0,salePrice:e.salePriceAmount,currency:t.productParent.currencyCode,lowestPriceRecord:e.lowestPriceRecord?{price:e.lowestPriceRecord.salePriceAmount,endDate:e.lowestPriceRecord.endDate}:void 0}},G=t=>t.productParent.productVariants.length?t.productParent.productVariants.map(t=>({id:t.id,name:t.id,sku:t.id,stock:t.availableQuantity,isAvailable:t.isAvailable})):[],V=t=>{var e,a,o,r;return{id:t.cart.sessionId,items:t.cart.items.map(e=>R(e,t.cart.languageCode,t.cart.currencyCode)),attributes:{attributes:t.attributes,capabilities:t.capabilities,cartCapabilities:t.cartCapabilities,cartProviders:t.cartProviders},token:t.token,country:t.cart.countryCode,currency:t.cart.currencyCode,language:t.cart.languageCode,createdAt:t.cart.created,updatedAt:t.cart.updated,market:t.cart.storeGroupId,discountCodes:t.cart.discountCodes.map(t=>t.code),giftCards:(null===(e=t.checkout)||void 0===e?void 0:e.giftCards)||[],vouchers:(null===(a=t.cart)||void 0===a?void 0:a.vouchers)||[],promotions:(null===(r=t.cart)||void 0===r?void 0:null===(o=r.discountExternals)||void 0===o?void 0:o.map(t=>({id:t.reference,amount:t.discountAmount})))||[],totalQuantity:t.cart.items.reduce((t,e)=>t+e.quantity,0),totals:{bonus:0,grandtotal:t.cart.totals.grandTotal,subtotal:t.cart.totals.subTotal,shipping:t.cart.totals.shippingTotal,discount:t.cart.totals.discountTotal,tax:t.cart.totals.taxTotal}}},R=(t,e,a)=>{let o=e.split("-")[1]||e,r="true"===t.options.clone?t.customAttributes["slug_clone_"+o]:t.customAttributes["slug_"+o];return{id:r&&r.split("-").pop()||"",lineId:t.id,quantity:t.quantity,options:{},attributes:{trustpilotId:"",testfreaksFamilys:"",clone:"true"===t.options.clone,sizeFitment:"",levColor:"",secondModelSize:"",washSymbols:[],tags:t.tags},name:t.displayName.split(" - ")[0],slug:r,parentId:t.productParentId,variantId:t.productVariantId,fullSlug:"true"===t.options.clone?t.customAttributes["slug_clone_".concat(o)]:t.customAttributes["slug_"+o],translatedSlugs:[],price:t.basePriceAmount,salePrice:t.salePriceAmount,sku:t.productParentId,available:!0,gender:"true"===t.options.clone?t.customAttributes["gender_clone_"+o]:t.customAttributes["gender_"+o],currency:a,longDescription:"",shortDe
1scription:"",media:[{imageSrc:"true"===t.options.clone?t.customAttributes.cloneImage:t.imageUrl,altText:t.name}],brand:{name:t.customAttributes.brand||t.customAttributes["brand_"+o]||"",slug:(0,s.Yv)(t.customAttributes.brand||t.customAttributes["brand_"+o]||"")},details:[],material:"",materialIcons:[],color:t.customAttributes["color_".concat(o)],sizes:[{id:t.options.variantId||"",name:U(t.displayName),sku:t.productVariantId,stock:0,sizeDescription:""}],sizeGuide:[],variants:[],categories:[],related:[],productType:"REGULAR",status:"ACTIVE",marketsExclude:[],labels:[]}},U=t=>t.includes(":")?t.split(":")[1]:"",x=(t,e,a,o)=>{if(!o||a.Montering)return!1;let r=o.items.find(e=>e.variantId===t&&e.attributes&&String(e.attributes.clone)===a.clone);return!!r&&{id:r.lineId,quantity:r.quantity+e}}}}]);

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.