PageSourceSearch

https://www.bondi.is/_next/static/chunks/6365.8cabcb01333678a9.js

js bondi.is collected 2026-09-24 23:50:22 UTC 2,836 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6365],{36365:(l,e,o)=>{o.r(e),o.d(e,{DefaultProductDetailsVariationSelector:()=>m,ProductDetailsVariationSelector:()=>h});var r=o(6029),n=o(97453),a=o(94661),i=o(73947),t=o(50556),s=o(55729),u=o(79427),c=o(32988),d=o.n(c),v=o(58633),p=o(42043);let x=()=>{var l,e;let{product:o}=(0,u.Wr)(),n=(0,p.useTranslations)("components.common.variations.color.color-variation"),a=(null==o||null==(l=o.color_options)?void 0:l.length)>0?null==o||null==(e=o.color_options)?void 0:e.sort((l,e)=>l.name.localeCompare(e.name)):[],i=null==a?void 0:a.find(l=>!!l.is_current),[t,c]=(0,s.useState)(null),x=(null==t?void 0:t.name)||(null==i?void 0:i.name);return(null==a?void 0:a.length)<=0||a.some(l=>""===l.slug_full)?null:(0,r.jsxs)("div",{className:"flex flex-col gap-2 kb-variation-select-color-options",children:[(0,r.jsxs)("div",{className:"kb-variation-select-color-options-label",children:[n("color")," - ",(0,r.jsx)("span",{children:x})]}),(0,r.jsx)("div",{className:"flex gap-4 mb-8 flex-wrap",children:a.map(l=>{var e,o;let{color:n,is_current:a,slug_full:i,name:t}=l,s=n.split(","),u=(null==s?void 0:s[0])||"",p=null!=(o=null!=(e=null==s?void 0:s[1])?e:null==s?void 0:s[0])?o:"";return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.A,{href:"/verslun/".concat(i),onMouseEnter:()=>c({name:t}),onMouseLeave:()=>c(null),className:"group kb-variation-select-color-options-link rotate-45",children:(0,r.jsx)("div",{className:d()("kb-variation-select-color-options-outer-circle rounded-full border border-[#777777] flex items-center justify-center group-hover:p-[3px]",{"p-[3px]":a}),children:(0,r.jsxs)("div",{style:{backgroundColor:u},className:d()("kb-variation-select-color-options-inner-circle h-[26px] w-[26px] rounded-full group-hover:!h-[20px] group-hover:!w-[20px] overflow-hidden flex",{"!h-[20px] !w-[20px]":a}),children:[(0,r.jsx)("div",{className:"flex-1",style:{backgroundColor:u}}),(0,r.jsx)("div",{className:"flex-1",style:{backgroundColor:p}})]})})},i)})})})]})},h=l=>{var e;let{block:o}=l,n=(0,t.a)(),a=null==n||null==(e=n.ProductPage)?void 0:e.variationSelector;return a?(0,r.jsx)(a,{block:o}):(0,r.jsx)(m,{block:o})},m=l=>{var e;let{block:o}=l,{hasVariations:t,currentVariation:s,product:c,sku:d,setCurrentVariation:v,variationCartData:p}=(0,u.Wr)(),{data:h}=(0,i.sz)(),{isGuest:m}=(0,a.J)(),b=(null==s?void 0:s.stock_status)==="contact";return t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{}),(0,r.jsx)(n.Z,{attributes:null==c?void 0:c.attributes,variations:b||(null==h||null==(e=h.wholesale)?void 0:e.hideAllPrices)&&m?null==c?void 0:c.variations:null==p?void 0:p.variations,currentVariation:d?s:null,setCurrentVariation:v,labelMap:null==c?void 0:c.attributes_label_map,noDefault:(null==c?void 0:c.disable_default_variation)||!s,tempVariation:d?null: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.