PageSourceSearch

https://formaideale.rs/_next/static/immutable/chunks/2938u2h-sltm1.js

js formaideale.rs collected 2026-10-02 15:24:29 UTC 41,212 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="6ed2fc72-0c13-792f-458b-f30ef349fec2")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,970883,e=>{"use strict";var t=e.i(843476),n=e.i(500932),i=e.i(387644),a=e.i(271645),l=e.i(689718),r=e.i(410820);function o(e){return e.promotion_name}function s(e,t){return{promotion_name:e.promotionName,creative_name:"Hero Banner",creative_slot:`Banner ${t+1}`,location_id:"homepage",index:t}}e.s(["default",0,function(e){let c,d,m,u,p=(0,n.c)(10),{rows:f}=e,h=(0,a.useRef)(null),g=(0,a.useRef)(!1),x=f?.columns;if(p[0]!==x?(c=()=>{let e=h.current;if(!e||!x||0===x.length)return;let t=x.map(s).filter(o);if(0===t.length)return;let n=new IntersectionObserver(e=>{let[a]=e;a.isIntersecting&&!g.current&&(g.current=!0,(0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"view_promotion",ecommerce:{items:t}}),n.disconnect())},{threshold:.5});return n.observe(e),()=>n.disconnect()},d=[x],p[0]=x,p[1]=c,p[2]=d):(c=p[1],d=p[2]),(0,a.useEffect)(c,d),!x||0===x.length)return null;let v=x.length;if(p[3]!==x){let e;p[5]!==x.length?(e=(e,n)=>(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-sm bg-gray-100 in-data-[count=2]:md:h-56 md:in-data-[count=2]:md:h-90 in-data-[count=3]:md:h-56",children:[(0,t.jsx)(l.default,{src:e.bannerImage,alt:"banner image",width:x?.length==3?448:768,className:"size-full! object-cover!"}),(0,t.jsx)(r.default,{link:e.bannerLink,className:"absolute inset-0 size-full opacity-0","aria-label":e.bannerLinkText??void 0,onNavigate:()=>{e.promotionName&&((0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"select_promotion",ecommerce:{items:[{promotion_name:e.promotionName,creative_name:"Hero Banner",creative_slot:`Banner ${n+1}`,location_id:"Home Page Hero",index:n}]}}))}})]},e.id),p[5]=x.length,p[6]=e):e=p[6],m=x.map(e),p[3]=x,p[4]=m}else m=p[4];return p[7]!==x.length||p[8]!==m?(u=(0,t.jsx)("div",{ref:h,"data-count":v,className:"col-span-full hidden grid-cols-1 gap-4 md:grid md:gap-6 md:data-[count=2]:grid-cols-2 md:data-[count=3]:grid-cols-3",children:m}),p[7]=x.length,p[8]=m,p[9]=u):u=p[9],u}])},848402,e=>{"use strict";var t=e.i(843476),n=e.i(500932);let i={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function a(e={}){let t,n,l,r,o=null,s=0,c=!1,d=!1,m=!1,u=!1;function p(){if(!l){if(g()){m=!0;return}c||n.emit("autoplay:play"),function(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(s),s=e.setTimeout(j,r[n.selectedScrollSnap()]),o=new Date().getTime(),n.emit("autoplay:timerset")}(),c=!0}}function f(){l||(c&&n.emit("autoplay:stop"),function(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(s),s=0,o=null,n.emit("autoplay:timerstopped")}(),c=!1)}function h(){if(g())return m=c,f();m&&p()}function g(){let{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function x(){d||f()}function v(){d||p()}function b(){d=!0,f()}function y(){d=!1,p()}function j(){let{index:e}=n.internalEngine(),i=e.clone().add(1).get(),a=n.scrollSnapList().length-1,l=t.stopOnLastSnap&&i===a;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),l)return f();p()}return{name:"autoplay",options:e,init:function(o,s){var c,d,m,g;let j,_;n=o;let{mergeOptions:N,optionsAtMedia:k}=s,w=N(i,a.globalOptions);if(t=k(N(w,e)),n.scrollSnapList().length<=1)return;u=t.jump,l=!1,c=n,d=t.delay,j=c.scrollSnapList(),r="number"==typeof d?j.map(()=>d):d(j,c);let{eventStore:S,ownerDocument:T}=n.internalEngine(),M=!!n.internalEngine().options.watchDrag,z=(m=n,g=t.rootNode,_=m.rootNode(),g&&g(_)||_);S.add(T,"visibilitychange",h),M&&n.on("pointerDown",x),M&&!t.stopOnInteraction&&n.on("pointerUp",v),t.stopOnMouseEnter&&S.add(z,"mouseenter",b),t.stopOnMouseEnter&&!t.stopOnInteraction&&S.add(z,"mouseleave",y),t.stopOnFocusIn&&n.on("slideFocusStart",f),t.stopOnFocusIn&&!t.stopOn
2Interaction&&S.add(n.containerNode(),"focusout",p),t.playOnInit&&p()},destroy:function(){n.off("pointerDown",x).off("pointerUp",v).off("slideFocusStart",f),f(),l=!0,c=!1},play:function(e){void 0!==e&&(u=e),p()},stop:function(){c&&f()},reset:function(){c&&p()},isPlaying:function(){return c},timeUntilNext:function(){return o?r[n.selectedScrollSnap()]-(new Date().getTime()-o):null}}}function l(e,t,n){return Math.min(Math.max(e,t),n)}function r(e){return"number"==typeof e&&!isNaN(e)}function o(e={}){let t,n,i,a,s=[],c=0,d=0,m=0,u=!1;function p(){x(t.selectedScrollSnap(),1)}function f(){u=!1}function h(){u=!1,c=0,d=0}function g(){let e=t.internalEngine().scrollBody.duration();d=+!e,u=!0,e||p()}function x(e,n){t.scrollSnapList().forEach((i,a)=>{let r=Math.abs(n),o=s[a],d=a===e,p=l(d?o+r:o-r,0,1);s[a]=p;let f=d&&u,h=t.previousScrollSnap();f&&(s[h]=1-p),d&&function(e,n){let{index:i,dragHandler:a,scrollSnaps:l}=t.internalEngine(),r=a.pointerDown(),o=1/(l.length-1),s=e,d=r?t.selectedScrollSnap():t.previousScrollSnap();if(r&&s===d){let e=-1*Math.sign(c);s=d,d=i.clone().set(d).add(e).get()}m=d*o+(s-d)*o*n}(e,p),function(e){let n=t.internalEngine().slideRegistry[e],{scrollSnaps:i,containerRect:a}=t.internalEngine(),l=s[e];n.forEach(n=>{let r=t.slideNodes()[n].style,o=parseFloat(l.toFixed(2)),s=o>0,c=function(e){let{axis:n}=t.internalEngine(),i=n.scroll.toUpperCase();return`translate${i}(${n.direction(e)}px)`}(s?i[e]:a.width+2);s&&(r.transform=c),r.opacity=o.toString(),r.pointerEvents=l>.5?"auto":"none",s||(r.transform=c)})}(a)})}function v(){let{dragHandler:e,index:n,scrollBody:i}=t.internalEngine(),a=t.selectedScrollSnap();if(!e.pointerDown())return a;let l=Math.sign(i.velocity()),r=Math.sign(c),o=n.clone().set(a).add(-1*l).get();return l&&r?r===l?o:a:null}function b(){let{target:e,location:i}=t.internalEngine(),a=Math.abs(e.get()-i.get())>=1,l=v(),o=!r(l);return!function(e){let{dragHandler:i,scrollBody:a}=e.internalEngine(),l=i.pointerDown(),o=a.velocity(),m=a.duration(),u=v(),p=!r(u);if(l){if(!o)return;c+=o,d=Math.abs(o/n),function(e){let{scrollSnaps:n,location:i,target:a}=t.internalEngine();r(e)&&!(s[e]<.5)&&(i.set(n[e]),a.set(i))}(u)}if(!l){if(!m||p)return;d+=(1-s[u])/m,d*=.68}p||x(u,d)}(t),!o&&!a&&s[l]>.999}function y(){return m}return{name:"fade",options:e,init:function(e){let r=(t=e).selectedScrollSnap(),{scrollBody:o,containerRect:c,axis:d}=t.internalEngine();n=l(.75*d.measureSize(c),200,500),u=!1,s=t.scrollSnapList().map((e,t)=>+(t===r)),i=o.settled,a=t.scrollProgress,o.settled=b,t.scrollProgress=y,t.on("select",g).on("slideFocus",p).on("pointerDown",h).on("pointerUp",f),function(){let{translate:e,slideLooper:n}=t.internalEngine();e.clear(),e.toggleActive(!1),n.loopPoints.forEach(({translate:e})=>{e.clear(),e.toggleActive(!1)})}(),p()},destroy:function(){let{scrollBody:e}=t.internalEngine();e.settled=i,t.scrollProgress=a,t.off("select",g).off("slideFocus",p).off("pointerDown",h).off("pointerUp",f),t.slideNodes().forEach(e=>{let t=e.style;t.opacity="",t.transform="",t.pointerEvents="",e.getAttribute("style")||e.removeAttribute("style")})}}}a.globalOptions=void 0,o.globalOptions=void 0;var s=e.i(551392),c=e.i(387644),d=e.i(271645);function m(e){let t,i,a,l=(0,n.c)(5),{slides:r}=e,{selectedIndex:o}=(0,s.useCarousel)();l[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Set,l[0]=t):t=l[0];let m=(0,d.useRef)(t);return l[1]!==o||l[2]!==r?(i=()=>{if(m.current.has(o))return;let e=r[o];e?.promotionName&&(m.current.add(o),(0,c.sendGTMEvent)({ecommerce:null}),(0,c.sendGTMEvent)({event:"view_promotion",ecommerce:{items:[{promotion_name:e.promotionName,creative_name:"hero_carousel",creative_slot:`slide_${o+1}`,location_id:"homepage",index:o}]}}))},a=[o,r],l[1]=o,l[2]=r,l[3]=i,l[4]=a):(i=l[3],a=l[4]),(0,d.useEffect)(i,a),null}var u=e.i(410820),p=e.i(40076),f=e.i(801944);function h(e){let i,a,l,r,o,s,d,m,h,g,x=(0,n.c)(25),{slide:v,index:b}=e;if(x[0]!==v.desktopSlideImage||x[1]!==v.mobileSlideImage){r=Symbol.for("react.early_return_sentinel");e:{let e=(0,p.extractPayloadMediaUrl)(v.desktopSlideImage),t=(0,p.extractPayloadMediaUrl)(v.mobileSlideImage);if(!e||!t){r=void 0;break e}i=`${(0,f.generateImgProxyUrl)({path:e,width:684})} 1x, ${(0,f.generateImgProxyUrl)({path:e,width:1368})} 2x`,a=(0,f.generateImgProxyUrl)({path:t,width:475}),l=(0,f.generateImgProxyUrl)({path:t,width:896})}x[0]=v.desktopSlideImage,x[1]=v.mobileSlideImage,x[2]=i,x[3]=a,x[4]=l,x[5]=r}else i=x[2],a=x[3],l=x[4],r=x[5];if(r!==Symbol.for("react.early_return_sentinel"))return r;let y=`${a} 1x, ${l} 2x`;x[6]!==i?(o=(0,t.jsx)("source",{media:"(min-width: 640px)",srcSet:i}),x[6]=i,x[7]=o):o=x[7],x[8]!==y?(s=(0,t.jsx)("source",{srcSet:y}),x[8]=y,x[9]=s):s=x[9];let j=0===b?"high":"auto",_=b<=1?"eager":"lazy";return x[10]!==j||x[11]!==_?(d=(0,t.jsx)("img",{src:void 0,alt:"slide image",fetchPriority:j,loading:_,className:"aspect-square size-full rounded-lg object-cover sm:aspect-221/157"}),x[10]=j,x[11]=_,x[12]=d):d=x[12],x[13]!==o||x[14]!==s||x[15]!==d?(m=(0,t.jsxs)("picture",{children:[o,s,d]}),x[13]=o,x[14]=s,x[15]=d,x[16]=m):m=x[16],x[17]!==b||x[18]!==v.linkTo||x[19]!==v.linkToText||x[20]!==v.promotionName?(h=v.linkTo&&(0,t.jsx)(u.default,{link:v.linkTo,className:"focus:outline-royal-500 absolute inset-0 opacity-0","aria-label":v.linkToText||"link to slide",onNavigate:()=>{v.promotionName&&((0,c.sendGTMEvent)({ecommerce:null}),(0,c.sendGTMEvent)({event:"select_promotion",ecommerce:{items:[{promotion_name:v.promotionName,creative_name:"hero_carousel",creative_slot:`slide_${b+1}`,location_id:"homepage",index:b}]}}))}}),x[17]=b,x[18]=v.linkTo,x[19]=v.linkToText,x[20]=v.promotionName,x[21]=h):h=x[21],x[22]!==h||x[23]!==m?(g=(0,t.jsxs)("div",{className:"relative h-full",children:[m,h]}),x[22]=h,x[23]=m,x[24]=g):g=x[24],g}function g(e,n){return(0,t.jsx)(s.CarouselItem,{children:(0,t.jsx)(h,{slide:e,index:n})},e.id)}e.s(["default",0,function(e){let i,l,r,c,d,u,p,f,h,x,v,b=(0,n.c)(18),{slides:y}=e;if(!y||0===y.length)return null;b[0]===Symbol.for("react.memo_cache_sentinel")?(i=a({delay:5e3,stopOn
2Interaction:!0,playOnInit:!1}),b[0]=i):i=b[0];let j=i;b[1]===Symbol.for("react.memo_cache_sentinel")?(l=o(),b[1]=l):l=b[1];let _=l;return b[2]===Symbol.for("react.memo_cache_sentinel")?(r={loop:!0},b[2]=r):r=b[2],b[3]!==j?(c=[j,_],b[3]=j,b[4]=c):c=b[4],b[5]!==y?(d=y.map(g),b[5]=y,b[6]=d):d=b[6],b[7]!==d?(u=(0,t.jsx)(s.CarouselContent,{className:"h-full px-0",children:d}),b[7]=d,b[8]=u):u=b[8],b[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(s.CarouselNext,{className:"grid size-11.5"}),f=(0,t.jsx)(s.CarouselPrevious,{className:"grid size-11.5"}),b[9]=p,b[10]=f):(p=b[9],f=b[10]),b[11]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(s.CarouselDots,{children:(0,t.jsx)(s.CarouselAutoPlay,{})}),b[11]=h):h=b[11],b[12]!==y?(x=(0,t.jsx)(m,{slides:y}),b[12]=y,b[13]=x):x=b[13],b[14]!==x||b[15]!==c||b[16]!==u?(v=(0,t.jsxs)(s.Carousel,{opts:r,plugins:c,className:"aspect-square overflow-hidden rounded-sm [--gap:0] sm:aspect-221/157 [&>.carousel-content]:h-full",children:[u,p,f,h,x]}),b[14]=x,b[15]=c,b[16]=u,b[17]=v):v=b[17],v}],848402)},644348,e=>{"use strict";var t=e.i(843476),n=e.i(500932),i=e.i(368356),a=e.i(402828);function l(e){let a,l,r,o,s,c=(0,n.c)(9),{collection:d}=e,{name:m,slug:u}=d,p=`/kolekcije/${u}`,f=`Pogledajte kolekciju ${m}`;return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("span",{className:"sm:hidden",children:"Istraži kolekciju"}),c[0]=a):a=c[0],c[1]!==m?(l=(0,t.jsxs)("h2",{className:"text-[15px]/6 font-normal sm:text-lg sm:font-semibold",children:[a,(0,t.jsx)("span",{className:"hidden sm:inline",children:m})]}),c[1]=m,c[2]=l):l=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("span",{className:"hidden whitespace-nowrap underline-offset-2 group-hover:underline sm:block",children:"Pogledajte kolekciju"}),c[3]=r):r=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)("div",{className:"group flex items-center gap-x-2 text-base font-medium",children:[r,(0,t.jsx)("div",{className:"grid size-6.5 place-items-center rounded bg-yellow-500 text-sm font-bold sm:size-5.5",children:(0,t.jsx)("span",{children:"→"})})]}),c[4]=o):o=c[4],c[5]!==p||c[6]!==f||c[7]!==l?(s=(0,t.jsxs)(i.default,{href:p,"aria-label":f,className:"group absolute right-4 bottom-4 flex h-10 items-center justify-between gap-x-2 rounded-sm bg-white px-4 py-2.5 sm:left-4 sm:gap-x-5 sm:px-6 sm:py-8",children:[l,o]}),c[5]=p,c[6]=f,c[7]=l,c[8]=s):s=c[8],s}e.s(["default",0,function(e){let i,r,o,s,c,d=(0,n.c)(11),{hotspot:m}=e,{selectCollection:u}=m;return d[0]!==m.mobileHotspot?(i=(0,t.jsx)(a.default,{imageWidth:475,hotspot:m.mobileHotspot,className:"rounded-lg sm:hidden"}),d[0]=m.mobileHotspot,d[1]=i):i=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(r={aspectRatio:"221/157"},d[2]=r):r=d[2],d[3]!==m.desktopHotspot?(o=(0,t.jsx)(a.default,{imageWidth:684,hotspot:m.desktopHotspot,className:"hidden rounded-lg sm:block",style:r}),d[3]=m.desktopHotspot,d[4]=o):o=d[4],d[5]!==u?(s=u&&"object"==typeof u&&(0,t.jsx)(l,{collection:u}),d[5]=u,d[6]=s):s=d[6],d[7]!==i||d[8]!==o||d[9]!==s?(c=(0,t.jsxs)("div",{className:"relative h-full overflow-hidden rounded-lg",children:[i,o,s]}),d[7]=i,d[8]=o,d[9]=s,d[10]=c):c=d[10],c}])},791055,e=>{"use strict";var t=e.i(843476),n=e.i(500932),i=e.i(387644),a=e.i(271645),l=e.i(689718),r=e.i(410820),o=e.i(187193),s=e.i(636665),c=e.i(919056);function d(e){let t,l,r,o=(0,n.c)(5),{slides:s,selectedIndex:c}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Set,o[0]=t):t=o[0];let d=(0,a.useRef)(t);return o[1]!==c||o[2]!==s?(l=()=>{if(d.current.has(c))return;let e=s[c];e?.promotionName&&(d.current.add(c),(0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"view_promotion",ecommerce:{items:[{promotion_name:e.promotionName,creative_name:"hero_carousel",creative_slot:`slide_${c+1}`,location_id:"homepage",index:c}]}}))},r=[c,s],o[1]=c,o[2]=s,o[3]=l,o[4]=r):(l=o[3],r=o[4]),(0,a.useEffect)(l,r),null}var m=e.i(402828);function u(e){let a,l,o,s,c,d=(0,n.c)(16),{slide:u,index:p,priority:f}=e,h=void 0!==f&&f;return d[0]!==p||d[1]!==u.linkTo||d[2]!==u.linkToText||d[3]!==u.promotionName?(a=u.linkTo&&(0,t.jsx)(r.default,{link:u.linkTo,"aria-label":u.linkToText||void 0,className:"focus:outline-royal-500 absolute inset-0 opacity-0",onNavigate:()=>{u.promotionName&&((0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"select_promotion",ecommerce:{items:[{promotion_name:u.promotionName,creative_name:"hero_carousel",creative_slot:`slide_${p+1}`,location_id:"homepage",index:p}]}}))}}),d[0]=p,d[1]=u.linkTo,d[2]=u.linkToText,d[3]=u.promotionName,d[4]=a):a=d[4],d[5]!==h||d[6]!==u.mobileHotspot?(l=(0,t.jsx)(m.default,{hotspot:u.mobileHotspot,imageWidth:475,priority:h,className:"sm:hidden"}),d[5]=h,d[6]=u.mobileHotspot,d[7]=l):l=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(o={aspectRatio:"1920/800"},d[8]=o):o=d[8],d[9]!==h||d[10]!==u.desktopHotspot?(s=(0,t.jsx)(m.default,{hotspot:u.desktopHotspot,imageWidth:1920,priority:h,className:"hidden sm:block",style:o}),d[9]=h,d[10]=u.desktopHotspot,d[11]=s):s=d[11],d[12]!==a||d[13]!==l||d[14]!==s?(c=(0,t.jsxs)("div",{className:"relative h-full",children:[a,l,s]}),d[12]=a,d[13]=l,d[14]=s,d[15]=c):c=d[15],c}var p=e.i(40076),f=e.i(801944);function h(e){let a,l,o,s,c,d,m,u,h,g,x=(0,n.c)(27),{slide:v,index:b,priority:y}=e,j=void 0!==y&&y;if(x[0]!==v.desktopSlideImage||x[1]!==v.mobileSlideImage){s=Symbol.for("react.early_return_sentinel");e:{let e=(0,p.extractPayloadMediaUrl)(v.desktopSlideImage),t=(0,p.extractPayloadMediaUrl)(v.mobileSlideImage);if(!e||!t){s=null;break e}a=`${(0,f.generateImgProxyUrl)({path:e,width:1920})} 1x, ${(0,f.generateImgProxyUrl)({path:e,width:2880})} 2x`,l=`${(0,f.generateImgProxyUrl)({path:t,width:475})} 1x, ${(0,f.generateImgProxyUrl)({path:t,width:896})} 2x`,o=(0,f.generateImgProxyUrl)({path:t,width:475})}x[0]=v.desktopSlideImage,x[1]=v.mobileSlideImage,x[2]=a,x[3]=l,x[4]=o,x[5]=s}else a=x[2],l=x[3],o=x[4],s=x[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let _=o;x[6]!==a?(c=(0,t.jsx)("source",{media:"(min-width: 40rem)",srcSet:a}),x[6]=a,x[7]=c):c=x[7],x[8]!==l?(d=(0,t.jsx)("source",{srcSet:l}),x[8]=l,x[9]=d):d=x[9];let N=j?"high":"auto",k=j?"eager":"lazy",w=j?"sync":"async";return x[10]!==_||x[11]!==N||x[12]!==k||x[13]!==w?(m=(0,t.jsx)("img",{src:_,alt:"slide image",fetchPriority:N,loading:k,decoding:w,className:"size-full object-cover"}),x[10]=_,x[11]=N,x[12]=k,x[13]=w,x[14]=m):m=x[14],x[15]!==c||x[16]!==d||x[17]!==m?(u=(0,t.jsxs)("picture",{children:[c,d,m]}),x[15]=c,x[16]=d,x[17]=m,x[18]=u):u=x[18],x[19]!==b||x[20]!==v.linkTo||x[21]!==v.linkToText||x[22]!==v.promotionName?(h=v.linkTo?(0,t.jsx)(r.default,{link:v.linkTo,className:"focus:outline-royal-500 absolute inset-0 opacity-0","aria-label":v.linkToText||"link to slide",onNavigate:()=>{v.promotionName&&((0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"select_promotion",ecommerce:{items:[{promotion_name:v.promotionName,creative_name:"hero_carousel",creative_slot:`slide_${b+1}`,location_id:"homepage",index:b}]}}))}}):null,x[19]=b,x[20]=v.linkTo,x[21]=v.linkToText,x[22]=v.promotionName,x[23]=h):h=x[23],x[24]!==u||x[25]!==h?(g=(0,t.jsxs)("div",{className:"relative size-full",children:[u,h]}),x[24]=u,x[25]=h,x[26]=g):g=x[26],g}function g(e){let i=(0,n.c)(8),{slide:a,index:l,priority:r}=e;if("largeCarouselHotspotBlock"===a.blockType){let e;return i[0]!==l||i[1]!==r||i[2]!==a?(e=(0,t.jsx)(u,{slide:a,index:l,priority:r}),i[0]=l,i[1]=r,i[2]=a,i[3]=e):e=i[3],e}if("largeCarouselImageBlock"===a.blockType){let e;return i[4]!==l||i[5]!==r||i[6]!==a?(e=(0,t.jsx)(h,{slide:a,index:l,priority:r}),i[4]=l,i[5]=r,i[6]=a,i[7]=e):e=i[7],e}}function x(e,t){return t<=7?0:Math.min(Math.max(e-Math.floor(3.5),0),t-7)}function v(e){let i,a,l,r,o,s,c,d,m=(0,n.c)(24),{count:u,current:p,trackId:f,onSelect:h}=e;m[0]!==u||m[1]!==p?(i=function(e,t){if(t<=7)return;let n=x(e,t),i={start:n>0,end:n<t-7};return i.start&&i.end?"linear-gradient(to right, transparent, black 18%, black 82%, transparent)":i.start?"linear-gradient(to right, transparent, black 18%, black)":i.end?"linear-gradient(to right, black, black 82%, transparent)":void 0}(p,u),m[0]=u,m[1]=p,m[2]=i):i=m[2];let g=i,v=`Slajd ${p+1} od ${u}`;m[3]!==v?(a=(0,t.jsx)("p",{"aria-live":"polite",className:"sr-only",children:v}),m[3]=v,m[4]=a):a=m[4];let b=24*Math.min(u,7);m[5]!==g||m[6]!==b?(l={width:b,maskImage:g,WebkitMaskImage:g},m[5]=g,m[6]=b,m[7]=l):l=m[7];let y=`translateX(-${24*x(p,u)}px)`;return m[8]!==y?(r={transform:y},m[8]=y,m[9]=r):r=m[9],m[10]!==u||m[11]!==p||m[12]!==h||m[13]!==f?(o=Array.from({length:u},(e,n)=>
2{let i=n===p;return(0,t.jsx)("button",{type:"button",onClick:()=>h(n),"aria-controls":f,"aria-current":i?"true":void 0,"data-current":i?"true":void 0,"aria-label":`Prikaži slajd ${n+1} od ${u}`,className:"group grid size-6 shrink-0 place-items-center focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-yellow-500",children:(0,t.jsx)("span",{className:"block size-2 rounded-full bg-white/70 transition-[scale,background-color] duration-200 ease-out group-hover:bg-white group-data-current:scale-175 group-data-current:bg-yellow-500! motion-reduce:transition-none"})},n)}),m[10]=u,m[11]=p,m[12]=h,m[13]=f,m[14]=o):o=m[14],m[15]!==r||m[16]!==o?(s=(0,t.jsx)("div",{className:"flex transition-transform duration-250 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none",style:r,children:o}),m[15]=r,m[16]=o,m[17]=s):s=m[17],m[18]!==l||m[19]!==s?(c=(0,t.jsx)("div",{className:"overflow-hidden",style:l,children:s}),m[18]=l,m[19]=s,m[20]=c):c=m[20],m[21]!==c||m[22]!==a?(d=(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-center",children:[a,c]}),m[21]=c,m[22]=a,m[23]=d):d=m[23],d}function b(e){let i,a,l,r,c,d,m,u=(0,n.c)(12),{isPlaying:p,progressKey:f,onToggle:h}=e;u[0]===Symbol.for("react.memo_cache_sentinel")?(i={"--fill-circle-duration":"5000ms"},u[0]=i):i=u[0];let g=i,x=p?"Pauziraj":"Pusti",v=p?"true":void 0;return u[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("circle",{className:"fill-none stroke-white/50 stroke-[2.5]",cx:"21",cy:"21",r:"15.915"}),u[1]=a):a=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("circle",{className:"fill-none stroke-yellow-500 stroke-[2.5] in-data-autoplay:animate-[fill-circle_var(--fill-circle-duration,5s)_linear_forwards]",cx:"21",cy:"21",r:"15.915",style:{strokeDasharray:"100",strokeDashoffset:"100"}}),u[2]=l):l=u[2],u[3]!==f?(r=(0,t.jsxs)("svg",{className:"absolute inset-0 size-10 -rotate-90",viewBox:"0 0 42 42",children:[a,l]},f),u[3]=f,u[4]=r):r=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(o.PauseIcon,{className:"hidden size-4 text-white in-data-autoplay:block",fill:"white",strokeWidth:0}),d=(0,t.jsx)(s.PlayIcon,{className:"block size-4 text-white in-data-autoplay:hidden",fill:"white",strokeWidth:0}),u[5]=c,u[6]=d):(c=u[5],d=u[6]),u[7]!==h||u[8]!==x||u[9]!==v||u[10]!==r?(m=(0,t.jsxs)("button",{type:"button","aria-label":x,onClick:h,"data-autoplay":v,style:g,className:"group relative hidden size-10 shrink-0 place-items-center md:grid",children:[r,c,d]}),u[7]=h,u[8]=x,u[9]=v,u[10]=r,u[11]=m):m=u[11],m}function y(e){let i,l,r,o,s,m,u,p,f,h=(0,n.c)(35),{slides:x,trackId:y}=e,N=x.length,[k,w]=(0,a.useState)(0),[S,T]=(0,a.useState)(!0),[M,z]=(0,a.useState)(0),I=`${k}-${M}`;h[0]!==N||h[1]!==S?(i=()=>{if(N<=1||!S||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=setTimeout(()=>w(e=>(e+1)%N),5e3);return()=>clearTimeout(e)},h[0]=N,h[1]=S,h[2]=i):i=h[2],h[3]!==N||h[4]!==k||h[5]!==S||h[6]!==M?(l=[k,N,S,M],h[3]=N,h[4]=k,h[5]=S,h[6]=M,h[7]=l):l=h[7],(0,a.useEffect)(i,l),h[8]===Symbol.for("react.memo_cache_sentinel")?(r=function(e){w(e),z(_)},h[8]=r):r=h[8];let E=r;h[9]!==S?(o=function(){S?T(!1):(T(!0),z(j))},h[9]=S,h[10]=o):o=h[10];let P=o;if(0===N)return null;if(h[11]!==N||h[12]!==k||h[13]!==x){let e;h[15]!==N||h[16]!==k?(e=(e,n)=>{let i=n===k;return(0,t.jsx)("div",{role:"group","aria-roledescription":"slide","aria-label":`${n+1} od ${N}`,"aria-hidden":!i||void 0,inert:!i||void 0,style:{transitionDuration:"350ms"},className:(0,c.twMerge)("absolute inset-0 transition-opacity","ease-[cubic-bezier(0.23,1,0.32,1)]","motion-reduce:transition-none",i?"z-1 opacity-100":"z-0 opacity-0"),children:(0,t.jsx)(g,{slide:e,index:n,priority:0===n})},e.id??n)},h[15]=N,h[16]=k,h[17]=e):e=h[17],s=x.map(e),h[11]=N,h[12]=k,h[13]=x,h[14]=s}else s=h[14];return h[18]!==s||h[19]!==y?(m=(0,t.jsx)("div",{id:y,className:"relative size-full",children:s}),h[18]=s,h[19]=y,h[20]=m):m=h[20],h[21]!==N||h[22]!==k||h[23]!==S||h[24]!==I||h[25]!==P||h[26]!==y?(u=N>1?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button","aria-label":"Prethodni slajd",onClick:()=>E((k-1+N)%N),className:"absolute top-1/2 left-6 z-10 grid size-11 -translate-y-1/2 place-items-center rounded-sm bg-white text-gray-700 shadow-md transition hover:bg-gray-50 hover:text-gray-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-500 active:scale-95",children:[(0,t.jsx)("div",{className:"text-[19px] font-medium","aria-hidden":!0,
2children:"❮"}),(0,t.jsx)("span",{className:"sr-only",children:"Prethodni slajd"})]}),(0,t.jsxs)("button",{type:"button","aria-label":"Sledeći slajd",onClick:()=>E((k+1)%N),className:"absolute top-1/2 right-6 z-10 grid size-11 -translate-y-1/2 place-items-center rounded-sm bg-white text-gray-700 shadow-md transition hover:bg-gray-50 hover:text-gray-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-500 active:scale-95",children:[(0,t.jsx)("div",{className:"text-[19px] font-medium","aria-hidden":!0,children:"❯"}),(0,t.jsx)("span",{className:"sr-only",children:"Sledeći slajd"})]}),(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-4 z-10 flex w-full items-center justify-center gap-2",children:[(0,t.jsx)(v,{count:N,current:k,trackId:y,onSelect:E}),(0,t.jsx)(b,{isPlaying:S,progressKey:I,onToggle:P})]})]}):null,h[21]=N,h[22]=k,h[23]=S,h[24]=I,h[25]=P,h[26]=y,h[27]=u):u=h[27],h[28]!==k||h[29]!==x?(p=(0,t.jsx)(d,{slides:x,selectedIndex:k}),h[28]=k,h[29]=x,h[30]=p):p=h[30],h[31]!==m||h[32]!==u||h[33]!==p?(f=(0,t.jsxs)("section",{"aria-roledescription":"carousel","aria-label":"Istaknuto",className:"relative aspect-square overflow-hidden bg-gray-100 sm:aspect-1920/800",children:[m,u,p]}),h[31]=m,h[32]=u,h[33]=p,h[34]=f):f=h[34],f}function j(e){return e+1}function _(e){return e+1}function N(e){let i,a,l=(0,n.c)(4),{rows:r}=e;return r&&0!==r.length?(l[0]!==r?(i=r.map(k),l[0]=r,l[1]=i):i=l[1],l[2]!==i?(a=(0,t.jsx)("div",{className:"mt-7.5 grid max-w-(--max-width) gap-y-2 px-(--px) md:hidden",children:i}),l[2]=i,l[3]=a):a=l[3],a):null}function k(e,n){return(0,t.jsxs)(r.default,{link:e.linkTo,className:"relative flex h-15.5 w-full items-center gap-x-2 rounded border border-gray-300 py-1 pr-2.5 pl-1",children:[(0,t.jsx)("div",{className:"aspect-75/56 max-h-14 max-w-20 overflow-hidden rounded",children:(0,t.jsx)(l.default,{src:e.mobileImage,alt:`Mobile row ${n}`,width:75,height:56,loading:"lazy",className:"size-full! object-cover! object-center!"})}),(0,t.jsx)("p",{className:"text-base",children:e.linkToText}),(0,t.jsx)("div",{className:"ml-auto grid size-6.5 place-items-center rounded bg-yellow-500 text-sm font-bold",children:(0,t.jsx)("span",{children:"→"})})]},e.id)}function w(e){let o,s,c,d,m=(0,n.c)(10),{banners:u}=e,p=(0,a.useRef)(null),f=(0,a.useRef)(!1);if(m[0]!==u?(o=()=>{let e=p.current;if(!e||!u||0===u.length)return;let t=u.map(T).filter(S);if(0===t.length)return;let n=new IntersectionObserver(e=>{let[a]=e;a.isIntersecting&&!f.current&&(f.current=!0,(0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"view_promotion",ecommerce:{items:t}}),n.disconnect())},{threshold:.5});return n.observe(e),()=>n.disconnect()},s=[u],m[0]=u,m[1]=o,m[2]=s):(o=m[1],s=m[2]),(0,a.useEffect)(o,s),!u||0===u.length)return null;let h=u.length;if(m[3]!==u){let e;m[5]!==u.length?(e=(e,n)=>(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-sm bg-gray-100 in-data-[count=2]:md:h-56 md:in-data-[count=2]:md:h-90 in-data-[count=3]:md:h-56",children:[(0,t.jsx)(l.default,{src:e.bannerImage,alt:"banner image",width:u?.length==3?448:768,className:"size-full! object-cover!"}),(0,t.jsx)(r.default,{link:e.bannerLink,className:"absolute inset-0 size-full opacity-0","aria-label":e.bannerLinkText??void 0,onNavigate:()=>{e.promotionName&&((0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"select_promotion",ecommerce:{items:[{promotion_name:e.promotionName,creative_name:"Hero Banner",creative_slot:`Banner ${n+1}`,location_id:"Home Page Hero",index:n}]}}))}})]},e.id),m[5]=u.length,m[6]=e):e=m[6],c=u.map(e),m[3]=u,m[4]=c}else c=m[4];return m[7]!==u.length||m[8]!==c?(d=(0,t.jsx)("div",{ref:p,"data-count":h,className:"mx-auto mt-4 grid max-w-(--max-width) grid-cols-1 gap-4 sm:mt-6 sm:gap-6 md:data-[count=2]:grid-cols-2 md:data-[count=3]:grid-cols-3",children:c}),m[7]=u.length,m[8]=c,m[9]=d):d=m[9],d}function S(e){return e.promotion_name}function T(e,t){return{promotion_name:e.promotionName,creative_name:"Hero Banner",creative_slot:`Banner ${t+1}`,location_id:"homepage",index:t}}e.s(["default",0,function(e){let i,a,l,r,o,s=(0,n.c)(13),{block:c}=e;s[0]!==c.slides?(i=c.slides||[],s[0]=c.slides,s[1]=i):i=s[1];
2let d=`large-carousel-track-${c.id??"0"}`;return s[2]!==i||s[3]!==d?(a=(0,t.jsx)(y,{slides:i,trackId:d}),s[2]=i,s[3]=d,s[4]=a):a=s[4],s[5]!==c.columns?(l=(0,t.jsx)(w,{banners:c.columns}),s[5]=c.columns,s[6]=l):l=s[6],s[7]!==c.mobileRows?(r=(0,t.jsx)(N,{rows:c.mobileRows}),s[7]=c.mobileRows,s[8]=r):r=s[8],s[9]!==a||s[10]!==l||s[11]!==r?(o=(0,t.jsxs)("section",{className:"mx-auto max-w-500 pt-8 md:pt-12 lg:pt-16 [h1+&]:pt-0",children:[a,l,r]}),s[9]=a,s[10]=l,s[11]=r,s[12]=o):o=s[12],o}],791055)},583616,e=>{"use strict";var t=e.i(843476),n=e.i(500932),i=e.i(304642),a=e.i(271645),l=e.i(919056),r=e.i(551392),o=e.i(410820),s=e.i(847468);function c(e){let t=new Map;for(let n of e){let e=n.group_tag;t.has(e)||t.set(e,{group_tag:e,group_key:"group_tag",products:[]}),t.get(e).products.push(n)}return Array.from(t.values())}function d(e){return e.products.length>1}function m(e){return void 0!==e}function u(e){return e.products.length>1}function p(e){return void 0!==e}function f(e){return[e.id,e]}e.s(["default",0,function(e){let h,g,x,v,b,y,j=(0,n.c)(28),{block:_,products:N,renderedAt:k}=e,{productGroups:w}=_,[S,T]=(0,a.useState)(w?.[0].id);if(j[0]!==S||j[1]!==_.productGroups||j[2]!==w||j[3]!==N||j[4]!==k){let e,n,a,b,y,M,z,I,E,P=new Map(N.map(f)),$=w?.find(e=>e.id===S),C=$?.enabledProductGrouping||!1,G=$?.productIds?.map(e=>P.get(e)).filter(p)||[],D=C?c(G):G;C&&(E=D.some(u)||void 0),x="mx-auto flex max-w-(--max-width) flex-col overflow-x-hidden py-8 pl-(--px) md:py-12 lg:max-w-[calc(var(--max-width)+8.75rem)] lg:items-center lg:px-(--px) lg:pt-12.5 lg:pb-7.5",j[9]===Symbol.for("react.memo_cache_sentinel")?(e={align:"start",slidesToScroll:"auto"},j[9]=e):e=j[9],j[10]!==S||j[11]!==_.productGroups?(n=_.productGroups?.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>T(e.id),"data-active":S===e.id||void 0,className:(0,l.twMerge)("flex items-center gap-x-2 rounded-md px-4 py-2 text-base font-medium transition-colors","default"===e.tabStyle&&"hover:bg-gray-100 data-active:bg-gray-200/50 data-active:text-gray-950","fresh"===e.tabStyle&&"text-lime-700 hover:bg-lime-100/60 data-active:bg-lime-100/60 data-active:text-lime-700!",("premium"===e.tabStyle||"promo"===e.tabStyle)&&"text-red-700 hover:bg-red-50 data-active:bg-red-100/60 data-active:text-red-700!","premium"===e.tabStyle&&"pr-3"),children:[e.name,"premium"===e.tabStyle&&(0,t.jsx)(i.BadgePercent,{className:"size-6 fill-red-600 text-white [&>path]:first:stroke-red-600"})]},e.id)),j[10]=S,j[11]=_.productGroups,j[12]=n):n=j[12],j[13]!==n?(a=(0,t.jsx)("div",{className:"flex items-center gap-x-2 lg:justify-center-safe",children:n}),j[13]=n,j[14]=a):a=j[14],j[15]!==k?(b=(e,n)=>(0,t.jsx)(r.CarouselItem,{className:"basis-[47%] lg:basis-1/3 xl:basis-[25%]",children:(0,t.jsx)(s.default,{product:e,listName:"Homepage Product Groups",loading:n<4?"eager":"lazy",renderedAt:k})},"products"in e?e.group_tag:e.id),j[15]=k,j[16]=b):b=j[16],j[17]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(r.CarouselPrevious,{className:"top-0 right-20 left-auto hidden size-11.5 translate-none md:grid lg:top-1/2 lg:right-auto lg:left-px lg:-translate-y-1/2"}),M=(0,t.jsx)(r.CarouselNext,{className:"top-0 right-5 hidden size-11.5 translate-none md:grid lg:top-1/2 lg:right-px lg:-translate-y-1/2"}),j[17]=y,j[18]=M):(y=j[17],M=j[18]),j[19]===Symbol.for("react.memo_cache_sentinel")?(z=(0,t.jsx)("span",{className:"underline-offset-2 group-hover:underline",children:"Pogledajte sve proizvode"}),j[19]=z):z=j[19],j[20]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsx)("div",{className:"grid size-5 place-items-center rounded bg-yellow-500 text-sm font-bold",children:(0,t.jsx)("span",{children:"→"})}),j[20]=I):I=j[20],v=(0,t.jsxs)(r.Carousel,{opts:e,"data-variants-present":E,className:"hidden w-full md:block lg:px-17.5",children:[a,(0,t.jsx)(r.CarouselContent,{className:"mt-10",children:D.map(b)}),y,M,(0,t.jsxs)(o.default,{link:$?.linkTo,className:"group mt-8 flex items-center gap-x-2 text-base/6 font-medium lg:mt-16 lg:justify-center",children:[z,I]})]}),h="space-y-14 md:hidden",g=w?.map((e,n)=>{let i,a=e?.enabledProductGrouping||!1,l=e?.productIds?.map(e=>P.get(e)).filter(m)||[],r=a?c(l):l;return a&&(i=r.some(d)||void 0),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-semibold",children:e.name}),(0,t.jsxs)(o.default,{link:e.linkTo,className:"group mt-4 flex items-center gap-x-2 text-[15px]/6 font-medium",children:[(0,t.jsx)("span",{className:"underline-offset-2 group-hover:underline",children:"Pogledajte sve proizvode"}),(0,t.jsx)("div",{className:"grid size-5 place-items-center rounded bg-yellow-500 text-sm font-bold",children:(0,t.jsx)("span",{children:"→"})})]}),(0,t.jsx)("div",{"data-variants-present":i,className:"-mx-(--px) mt-4 flex snap-x snap-mandatory scroll-px-(--px) [scrollbar-width:thin] items-stretch gap-x-2 overflow-x-auto px-(--px) pb-6 *:shrink-0 *:basis-[47.5%] *:snap-start [&_article]:last-of-type:mr-(--px)",children:r.map((e,i)=>(0,t.jsx)(s.default,{product:e,loading:0===n&&i<2?"eager":"lazy",renderedAt:k},"products"in e?e.group_tag:e.id))})]},e.id)}),j[0]=S,j[1]=_.productGroups,j[2]=w,j[3]=N,j[4]=k,j[5]=h,j[6]=g,j[7]=x,j[8]=v}else h=j[5],g=j[6],x=j[7],v=j[8];return j[21]!==h||j[22]!==g?(b=(0,t.jsx)("div",{className:h,children:g}),j[21]=h,j[22]=g,j[23]=b):b=j[23],j[24]!==x||j[25]!==v||j[26]!==b?(y=(0,t.jsxs)("section",{className:x,children:[v,b]}),j[24]=x,j[25]=v,j[26]=b,j[27]=y):y=j[27],y}])},73627,e=>{"use strict";var t=e.i(843476),n=e.i(500932),i=e.i(387644),a=e.i(271645);e.s(["default",0,function(e){let l,r,o,s=(0,n.c)(4),{promotionName:c}=e,d=(0,a.useRef)(null);return s[0]!==c?(l=()=>{let e=d.current;if(!e)return;let t=new IntersectionObserver(e=>{let[n]=e;n.isIntersecting&&((0,i.sendGTMEvent)({ecommerce:null}),(0,i.sendGTMEvent)({event:"view_promotion",ecommerce:{items:[{promotion_name:c,creative_slot:"promo_section",location_id:"homepage"}]}}),t.disconnect())},{threshold:0});return t.observe(e),()=>t.disconnect()},r=[c],s[0]=c,s[1]=l,s[2]=r):(l=s[1],r=s[2]),(0,a.useEffect)(l,r),s[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("div",{ref:d}),s[3]=o):o=s[3],o}])},291663,e=>{"use strict";var t=e.i(843476),n=e.i(500932),i=e.i(271645),a=e.i(689718),l=e.i(368356),r=e.i(933123),o=e.i(223975);function s(e){return(0,t.jsxs)("div",{className:"group relative w-52.5 shrink-0 rounded-md bg-white pb-4 shadow-xs ring ring-gray-950/10",children:[(0,t.jsxs)(l.default,{href:`/artikal/${e.handle}`,className:"flex h-[calc(100%-1.8rem)] shrink-0 flex-col items-center px-5 pt-2.5",children:[(0,t.jsx)("div",{className:"aspect-3/2 h-30 shrink-0 md:h-auto md:w-full",children:(0,t.jsx)(a.default,{width:180,src:e.studio_image_path||e.lifestyle_image_path,version:e.media_fingerprint||void 0,alt:"thumbnail img",className:"size-full object-contain"})}),(0,t.jsx)("p",{className:"mt-5 line-clamp-2 w-full text-[15px]/6 font-medium underline-offset-2 group-hover:underline",children:e.name}),(0,t.jsx)("div",{className:"mt-auto flex w-full flex-col justify-between",children:(0,t.jsxs)("div",{className:"mt-2",children:[e.original_price&&e.original_price!==e.price&&(0,t.jsx)("p",{className:"text-sm/5.25 text-gray-600 line-through",children:(0,o.formatPrice)(e.original_price)}),(0,t.jsxs)("p",{className:"text-sm/5.25 font-semibold",children:[(0,o.formatPriceWithoutSymbol)(e.price)," ",(0,t.jsx)("span",{className:"font-normal",children:"RSD"})]}),(0,t.jsx)("p",{className:"mb-2 text-[16px]/6.25 font-bold text-red-500 
2in-data-loyalty-inactive:hidden",children:(0,o.formatPrice)(e.loyalty_price)})]})})]}),(0,t.jsx)("div",{className:"w-full px-5",children:(0,t.jsx)(r.default,{startDate:e.sale_start_date,endDate:e.sale_end_date,percentage:e.loyalty_discount_percentage})})]},e.id)}e.s(["default",0,function(e){let a,l,r=(0,n.c)(4),{productsPromise:o}=e,c=(0,i.use)(o);return r[0]!==c?(a=c.map(s),r[0]=c,r[1]=a):a=r[1],r[2]!==a?(l=(0,t.jsx)("div",{className:"flex [scrollbar-width:thin] [scrollbar-color:var(--color-gray-500)_var(--color-gray-100)] flex-row gap-4 overflow-x-auto md:flex-wrap md:gap-5 lg:overflow-visible",children:a}),r[2]=a,r[3]=l):l=r[3],l}])},999986,e=>{"use strict";var t=e.i(843476),n=e.i(500932),i=e.i(33550);let a=(0,i.default)("outline","barcode","Barcode",[["path",{d:"M4 7v-1a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 17v1a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-1",key:"svg-3"}],["path",{d:"M5 11h1v2h-1l0 -2",key:"svg-4"}],["path",{d:"M10 11l0 2",key:"svg-5"}],["path",{d:"M14 11h1v2h-1l0 -2",key:"svg-6"}],["path",{d:"M19 11l0 2",key:"svg-7"}]]);var l=e.i(513932),r=e.i(770703),o=e.i(794527),s=e.i(453535);let c=(0,i.default)("outline","credit-card","CreditCard",[["path",{d:"M3 8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -8",key:"svg-0"}],["path",{d:"M3 10l18 0",key:"svg-1"}],["path",{d:"M7 15l.01 0",key:"svg-2"}],["path",{d:"M11 15l2 0",key:"svg-3"}]]);var d=e.i(617708),m=e.i(912598),u=e.i(522016),p=e.i(271645),f=e.i(308302),h=e.i(401858);function g(){let e,i,l,r,s,g,x,v,b,y,j,_,N,k,w=(0,n.c)(22),S=(0,m.useQueryClient)();w[0]===Symbol.for("react.memo_cache_sentinel")?(e={success:!1},w[0]=e):e=w[0];let[T,M,z]=(0,p.useActionState)(h.updateLoyaltyCard,e),I=T.errors?.loyalty_card_number?.[0];w[1]!==S||w[2]!==T.success?(i=()=>{T.success&&S.invalidateQueries({queryKey:["authenticated-user"]})},l=[T.success,S],w[1]=S,w[2]=T.success,w[3]=i,w[4]=l):(i=w[3],l=w[4]),(0,p.useEffect)(i,l),w[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(o.Drawer.Handle,{className:"w-12!"}),w[5]=r):r=w[5],w[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(a,{size:36,stroke:2,color:"white"}),w[6]=s):s=w[6],w[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsxs)("div",{"aria-hidden":!0,className:"bg-royal-600 relative grid size-16 place-items-center rounded-2xl",children:[s,(0,t.jsx)("div",{className:"absolute right-0 bottom-0 grid size-7 translate-x-1/3 translate-y-1/3 place-items-center rounded-full bg-yellow-600",children:(0,t.jsx)(d.IconPlus,{stroke:2,size:16})})]}),x=(0,t.jsx)(o.Drawer.Title,{className:"mt-6 text-xl font-medium text-gray-950",children:"Dodaj svoju karticu lojalnosti"}),v=(0,t.jsx)(o.Drawer.Description,{className:"mt-1 max-w-80 text-center text-[15px]/5.5 text-pretty text-gray-700",children:"Unesi broj sa poleđine kartice i ubuduće je skeniraj direktno sa telefona."}),w[7]=g,w[8]=x,w[9]=v):(g=w[7],x=w[8],v=w[9]),w[10]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("label",{htmlFor:"code",className:"text-sm",children:"Broj kartice"}),w[10]=b):b=w[10],w[11]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsxs)("div",{className:"relative mt-1.5",children:[(0,t.jsx)(c,{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 left-4 size-5 -translate-y-1/2 text-gray-500",stroke:1.5}),(0,t.jsx)(f.default,{id:"code",name:"loyalty_card_number",inputMode:"numeric",maxLength:8,autoComplete:"off",autoCorrect:"off",spellCheck:!1,placeholder:"npr. 12345678",className:"h-12 rounded-xl pl-11"})]}),w[11]=y):y=w[11],w[12]!==I?(j=I?(0,t.jsx)("p",{className:"mt-1.5 text-xs text-red-600",children:I}):(0,t.jsx)("p",{className:"mt-1.5 text-xs text-gray-600",children:"7–8 cifara, bez razmaka"}),w[12]=I,w[13]=j):j=w[13];let E=z?"Čuvanje...":"Sačuvaj karticu";return w[14]!==z||w[15]!==E?(_=(0,t.jsx)("button",{type:"submit",disabled:z,className:"mt-5 flex h-14 w-full items-center justify-center rounded-2xl bg-yellow-500 text-base font-medium text-gray-950 disabled:opacity-60",children:E}),w[14]=z,w[15]=E,w[16]=_):_=w[16],w[17]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(u.default,{href:"/servis-za-kupce/loyalty-program",className:"text-royal-700 mt-4 block text-center text-[15px] underline underline-offset-3",children:"Nemam karticu, kako da je dobijem?"}
2),w[17]=N):N=w[17],w[18]!==z||w[19]!==j||w[20]!==_?(k=(0,t.jsxs)("div",{className:"w-full rounded-t-3xl bg-white p-7 pt-4 pb-12",children:[r,(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-center",children:[g,x,v,(0,t.jsxs)("form",{action:M,inert:z,className:"mt-8 w-full max-w-90",children:[b,y,j,_,N]})]})]}),w[18]=z,w[19]=j,w[20]=_,w[21]=k):k=w[21],k}let x=(0,r.default)(()=>e.A(260077),{loadableGenerated:{modules:[217995]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"grid h-100 place-items-center",children:(0,t.jsx)(l.IconLoader2,{className:"size-6 animate-spin text-white"})})});e.s(["default",0,function(){let e,i,l,r,c,d=(0,n.c)(10),{user:m}=(0,s.useAuth)(),u=m?.metadata?.loyalty_card_number||void 0;if(!m)return null;let p=`${m.first_name??""} ${m.last_name??""}`;d[0]!==p?(e=p.trim(),d[0]=p,d[1]=e):e=d[1];let f=e;d[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)(o.Drawer.Trigger,{className:"fixed right-4 bottom-4 z-40 flex items-center gap-x-2 rounded-full bg-yellow-500 px-6 py-3 text-lg font-medium text-gray-950 ring ring-black/20 md:hidden",children:[(0,t.jsx)(a,{className:"size-6",strokeWidth:1.75}),"Kartica"]}),d[2]=i):i=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(o.Drawer.Overlay,{className:"fixed inset-0 z-60 bg-black/40"}),d[3]=l):l=d[3];let h=`fixed right-0 bottom-0 left-0 z-70 flex max-h-[82vh] flex-col rounded-t-3xl ${u?"bg-royal-600":"bg-white"}`;return d[4]!==u||d[5]!==f?(r=u?(0,t.jsx)(x,{fullName:f,cardNumber:u}):(0,t.jsx)(g,{}),d[4]=u,d[5]=f,d[6]=r):r=d[6],d[7]!==h||d[8]!==r?(c=(0,t.jsxs)(o.Drawer.Root,{children:[i,(0,t.jsxs)(o.Drawer.Portal,{children:[l,(0,t.jsx)(o.Drawer.Content,{className:h,children:r})]})]}),d[7]=h,d[8]=r,d[9]=c):c=d[9],c}],999986)}]);
3
4//# debugId=6ed2fc72-0c13-792f-458b-f30ef349fec2

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.