1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,194983,e=>{"use strict";let t=(0,e.i(475254).default)("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);e.s(["MessageCircle",0,t],194983)},716469,877504,e=>{"use strict";var t=e.i(95187);let r=(0,t.createServerReference)("4034d319c8ff93eb466f7be8bccdab6bb507acaae5",t.callServer,void 0,t.findSourceMapURL,"reportCouponNotWorking");e.s(["reportCouponNotWorking",0,r],716469);var a=e.i(843476),l=e.i(805899),s=e.i(531278),o=e.i(514764);e.s(["CouponReportForm",0,function({labels:e,message:t,onMessage:r,onCancel:n,onSubmit:i,reporting:d,compact:c=!1}){let p=t.trim().length>=3;return(0,a.jsxs)("div",{className:"mt-2 rounded-[18px] border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)] shadow-[0_8px_22px_rgba(25,15,50,.05)]",children:[(0,a.jsxs)("div",{className:`flex items-center gap-[13px] px-4 ${c?"pt-3":"pt-[15px]"}`,children:[(0,a.jsx)("div",{className:`inline-flex shrink-0 items-center justify-center rounded-full text-white ${c?"h-9 w-9":"h-11 w-11"}`,style:{background:"linear-gradient(135deg, #F43F5E, #BE123C)"},children:(0,a.jsx)(l.Flag,{size:c?15:19,strokeWidth:2.2})}),(0,a.jsxs)("div",{className:"min-w-0 flex flex-col gap-[2px]",children:[(0,a.jsx)("div",{className:"text-[10.5px] font-extrabold uppercase tracking-[.07em] text-[var(--dp-color-ink-3)]",children:e.reportLabel}),(0,a.jsx)("div",{className:`font-bold leading-tight tracking-tight ${c?"text-[13px]":"text-[14px]"}`,children:e.reportPrompt})]})]}),(0,a.jsxs)("div",{className:`px-4 ${c?"pb-3 pt-2.5":"pb-4 pt-3"}`,children:[(0,a.jsx)("textarea",{value:t,onChange:e=>r(e.target.value),placeholder:e.reportPlaceholder,rows:c?2:3,maxLength:300,autoFocus:!0,className:"w-full resize-none rounded-[14px] border-[1.5px] border-[var(--dp-color-border)] bg-[var(--dp-color-surface-2)] px-3.5 py-3 text-[13px] font-semibold leading-snug outline-none transition-colors placeholder:font-medium placeholder:text-[var(--dp-color-ink-3)] focus:border-[var(--dp-color-primary)] focus:bg-[var(--color-bg-elev)]"}),(0,a.jsxs)("div",{className:"mt-2.5 flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"num text-[10.5px] font-bold text-[var(--dp-color-ink-3)]",children:[t.length,"/300"]}),(0,a.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:n,className:"rounded-full px-4 py-2 text-[12.5px] font-bold text-[var(--dp-color-ink-3)] transition-colors hover:bg-black/5",children:e.reportCancel}),(0,a.jsxs)("button",{type:"button",disabled:d||!p,onClick:i,className:`inline-flex items-center gap-1.5 rounded-full px-4 py-2 text-[12.5px] font-extrabold text-white transition-all active:scale-[0.98] ${p?"shadow-[0_8px_20px_-8px_rgba(190,18,60,.7)]":"cursor-not-allowed opacity-35 saturate-50"}`,style:{background:"linear-gradient(135deg, #F43F5E, #BE123C)"},children:[d?(0,a.jsx)(s.Loader2,{size:13,className:"animate-spin"}):(0,a.jsx)(o.Send,{size:13,strokeWidth:2.4}),e.reportSubmit]})]})]})]})]})}],877504)},653323,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.s(["ActionTile",0,function({label:e,children:a}){let l=(0,r.useRef)(null);return(0,t.jsxs)("div",{ref:l,onClick:e=>{e.target.closest("button")||l.current?.querySelector("button")?.click()},className:"flex min-w-0 flex-1 basis-0 cursor-pointer flex-col items-center gap-2 rounded-[14px] px-1 py-3 transition-colors hover:bg-[var(--dp-color-surface-2)]",children:[a,(0,t.jsx)("span",{className:"text-[11px] font-bold text-[var(--dp-color-ink-2)]",children:e})]})}])},410894,e=>{"use strict";var t=e.i(843476),r=e.i(956961),a=e.i(271645),l=e.i(618566),s=e.i(643531),o=e.i(531278),n=e.i(208402),i=e.i(95187);let d=(0,i.createServerReference)("60daf7bd646d8cce3c5f9cbee667b3f16ff1dbdb68",i.callServer,void 0,i.findSourceMapURL,"addProductCoupon"),c={status:"idle"},p="rounded-[var(--radius-sm)] border border-[var(--color-border)] bg-[var(--color-bg-elev)] px-3 py-2 text-[12.5px] outline-none focus:border-[var(--color-brand-500)]";e.s(["AdminAddCouponBox",0,function({offerId:e,isAdmin:i}){let[x,u]=(0,a.useState)(!1),[m,h,b]=(0,a.useActionState)(d,c),g=(0,l.useRouter)();return((0,a.useEffect)(()=>{"success"===m.status&&g.refresh()},[m,g]),i||(0,r.useSession)().isAdmin)?x?(0,t.jsxs)("div",{className:"glass-strong mt-3 rounded-[var(--radius-md)] p-3",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,t.jsx)("h2",{className:"text-[13px] font-bold",children:"PridaÅ¥ kupón (admin)"}),(0,t.jsx)("span",{className:"text-[10.5px] text-[var(--color-fg-mute)]",children:"len pre tento produkt"})]}),(0,t.jsxs)("form",{action:h,className:"flex flex-wrap items-end gap-2",children:[(0,t.jsx)("input",{type:"hidden",name:"offerId",value:e}),(0,t.jsxs)("fieldset",{className:"flex w-full flex-wrap items-center gap-x-4 gap-y-1 text-[11px]",children:[(0,t.jsx)("legend",{className:"sr-only",children:"Ak už produkt kupón má"}),(0,t.jsx)("span",{className:"text-[10.5px] font-semibold text-[var(--color-fg-mute)]",children:"Ak už produkt kupón má:"}),(0,t.jsxs)("label",{className:"inline-flex cursor-pointer items-center gap-1.5",children:[(0,t.jsx)("input",{type:"radio",name:"mode",value:"compete",defaultChecked:!0,disabled:b,className:"accent-[var(--color-brand-500)]"}),"nechaÅ¥ lepšà podľa zľavy (druhý ostane ako alternatÃva)"]}),(0,t.jsxs)("label",{className:"inline-flex cursor-pointer items-center gap-1.5",children:[(0,t.jsx)("input",{type:"radio",name:"mode",value:"replace",disabled:b,className:"accent-[var(--color-brand-500)]"}),"prepÃsaÅ¥ existujúci"]})]}),(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 basis-36 flex-col gap-1 text-[10.5px] font-semibold text-[var(--color-fg-mute)]",children:["Kód kupónu",(0,t.jsx)("input",{type:"text",name:"code",required:!0,placeholder:"NAPR25OFF",disabled:b,className:`${p} mono uppercase`})]}),(0,t.jsxs)("label",{className:"flex w-24 flex-col gap-1 text-[10.5px] font-semibold text-[var(--color-fg-mute)]",children:["Zľava",(0,t.jsx)("input",{type:"number",name:"discountValue",required:!0,min:"0.01",step:"0.01",placeholder:"10",disabled:b,className:p})]}),(0,t.jsxs)("label",{className:"flex w-20 flex-col gap-1 text-[10.5px] font-semibold text-[var(--color-fg-mute)]",children:["Typ",(0,t.jsxs)("select",{name:"discountType",disabled:b,className:p,children:[(0,t.jsx)("option",{value:"money_off",children:"â â¬"}),(0,t.jsx)("option",{value:"percent_off",children:"â %"})]})]}),(0,t.jsxs)("label",{className:"flex w-28 flex-col gap-1 text-[10.5px] font-semibold text-[var(--color-fg-mute)]",children:["Min. nákup â¬",(0,t.jsx)("input",{type:"number",name:"minSpend",min:"0",step:"0.01",placeholder:"â",disabled:b,className:p})]}),(0,t.jsxs)("label",{className:"flex w-36 flex-col gap-1 text-[10.5px] font-semibold text-[var(--color-fg-mute)]",children:["Platà do (koniec dÅa)",(0,t.jsx)("input",{type:"date",name:"validUntil",disabled:b,className:p})]}),(0,t.jsxs)("button",{type:"submit",disabled:b,className:"inline-flex items-center gap-1.5 rounded-[var(--radius-sm)] bg-[var(--color-brand-500)] px-3 py-2 text-[12px] font-bold text-white disabled:opacity-60",children:[b?(0,t.jsx)(o.Loader2,{size:13,className:"animate-spin"}):(0,t.jsx)(s.Check,{size:13}),"UložiÅ¥"]})]}),"error"===m.status&&(0,t.jsx)("div",{className:"mt-2 rounded-[var(--radius-sm)] bg-[var(--color-danger)]/10 px-2 py-1.5 text-[11px] font-semibold text-[var(--color-danger)]",children:m.message}),"success"===m.status&&(0,t.jsxs)("div",{className:"mt-2 rounded-[var(--radius-sm)] border border-[var(--color-border)] bg-black/[0.02] px-3 py-2 text-[11.5px]",children:[(0,t.jsxs)("div",{className:"mb-1.5 flex items-center gap-1.5 font-bold",children:[(0,t.jsx)(s.Check,{size:12,className:"text-[var(--color-success)]"}),(0,t.jsx)("span",{className:"mono",children:m.code}),(0,t.jsx)("span",{className:"font-normal text-[var(--color-fg-mute)]",children:m.updatedExisting?"aktualizovaný":"uložený"})]}),m.prices.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-1.5",children:m.prices.map(e=>(0,t.jsxs)("li",{title:e.newApplied?"Nový kupón vyhral â je hlavný.":e.faceCode?`Hlavn\xfd ost\xe1va ${e.faceCode} â nov\xfd k\xf3d je alternat\xedva.`:"Nový kód sa do ceny nezarátal.",className:`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10.5px] font-semibold ${e.newApplied?"bg-[var(--color-success)]/15 text-[var(--color-success)]":"bg-[var(--color-fg-mute)]/15 text-[var(--color-fg-mute)]"}`,children:[e.country," ",e.finalPrice.toFixed(2)," â¬",e.saving>0?` (â${e.saving.toFixed(2)} â¬)`:"",!e.newApplied&&e.faceCode?(0,t.jsxs)("span",{className:"mono font-normal",children:["· ",e.faceCode]}):null]},e.country))}),m.note&&(0,t.jsx)("div",{className:"mt-1.5 text-[10.5px] text-[var(--color-fg-mute)]",children:m.note})]})]}):(0,t.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"mt-3 inline-flex items-center gap-1.5 rounded-[var(--radius-sm)] border-[1.5px] border-dashed border-[var(--color-brand-500)]/50 px-3 py-1.5 text-[11.5px] font-semibold text-[var(--color-brand-500)]",children:[(0,t.jsx)(n.Ticket,{size:12})," PridaÅ¥ kupón (admin)"]}):null}],410894)},649580,e=>{"use strict";var t=e.i(843476),r=e.i(956961),a=e.i(271645),l=e.i(618566),s=e.i(972520),o=e.i(643531),n=e.i(531278),i=e.i(107233),d=e.i(37727),c=e.i(95187);let p=(0,c.createServerReference)("60cfddc951b561d00a0c50dd3c79bad7f229a39249",c.callServer,void 0,c.findSourceMapURL,"addSellerOfferByUrl"),x={status:"idle"};e.s(["AdminAddSellerBox",0,function({offerId:e,isAdmin:c}){let[u,m]=(0,a.useState)(!1),[h,b,g]=(0,a.useActionState)(p,x),f=(0,l.useRouter)();return((0,a.useEffect)(()=>{"success"===h.status&&f.refresh()},[h,f]),c||(0,r.useSession)().isAdmin)?u?(0,t.jsxs)("div",{className:"glass-strong mt-3 rounded-[var(--radius-md)] p-3",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,t.jsx)("h2",{className:"text-[13px] font-bold",children:"PridaÅ¥ predajcu z URL (admin)"}),(0,t.jsx)("span",{className:"text-[10.5px] text-[var(--color-fg-mute)]",children:"AE URL / s.click / PID · trvá ~30 s"})]}),(0,t.jsxs)("form",{action:b,className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("input",{type:"hidden",name:"primaryOfferId",value:e}),(0,t.jsx)("input",{type:"text",name:"input",required:!0,placeholder:"https://www.aliexpress.com/item/1005005784770916.html",disabled:g,className:"min-w-0 flex-1 rounded-[var(--radius-sm)] border border-[var(--color-border)] bg-[var(--color-bg-elev)] px-3 py-2 text-[12.5px] outline-none focus:border-[var(--color-brand-500)]"}),(0,t.jsxs)("button",{type:"submit",disabled:g,className:"inline-flex items-center gap-1.5 rounded-[var(--radius-sm)] bg-[var(--color-brand-500)] px-3 py-2 text-[12px] font-bold text-white disabled:opacity-60",children:[g?(0,t.jsx)(n.Loader2,{size:13,className:"animate-spin"}):(0,t.jsx)(s.ArrowRight,{size:13}),"NaÄÃtaÅ¥"]})]}),"error"===h.status&&(0,t.jsx)("div",{className:"mt-2 rounded-[var(--radius-sm)] bg-[var(--color-danger)]/10 px-2 py-1.5 text-[11px] font-semibold text-[var(--color-danger)]",children:h.message}),"success"===h.status&&(0,t.jsxs)("div",{className:"mt-2 rounded-[var(--radius-sm)] border border-[var(--color-border)] bg-black/[0.02] px-3 py-2 text-[11.5px]",children:[(0,t.jsxs)("div",{className:"mb-1.5 min-w-0",children:[(0,t.jsx)("div",{className:"truncate font-bold",children:h.title??h.productId}),(0,t.jsxs)("div",{className:"mono text-[10px] text-[var(--color-fg-mute)]",children:[h.productId,h.note?` \xb7 ${h.note}
1`:""]})]}),h.countries.length>0&&(0,t.jsx)("ul",{className:"flex flex-wrap gap-1.5",children:h.countries.map(e=>(0,t.jsxs)("li",{title:e.message??"",className:`inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10.5px] font-semibold ${e.ok?"bg-[var(--color-success)]/15 text-[var(--color-success)]":"bg-[var(--color-danger)]/15 text-[var(--color-danger)]"}`,children:[e.ok?(0,t.jsx)(o.Check,{size:10}):(0,t.jsx)(d.X,{size:10}),e.country]},e.country))})]})]}):(0,t.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"mt-3 inline-flex items-center gap-1.5 rounded-[var(--radius-sm)] border-[1.5px] border-dashed border-[var(--color-brand-500)]/50 px-3 py-1.5 text-[11.5px] font-semibold text-[var(--color-brand-500)]",children:[(0,t.jsx)(i.Plus,{size:12})," PridaÅ¥ predajcu z URL (admin)"]}):null}],649580)},885527,e=>{"use strict";var t=e.i(843476),r=e.i(956961),a=e.i(271645),l=e.i(618566),s=e.i(643531),o=e.i(531278),n=e.i(270756);let i=(0,e.i(475254).default)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);var d=e.i(37727),c=e.i(713971);let p=["Early Bird","Flash Sale","SuperDeals","Choice Day"];e.s(["AdminDealLockBox",0,function({offerId:e,couponsBlocked:x,dealLabel:u,isAdmin:m}){let[h,b]=(0,a.useState)(!1),[g,f]=(0,a.useState)(x),[v,k]=(0,a.useState)(u??""),[y,j]=(0,a.useState)(null),[N,w]=(0,a.useTransition)(),S=(0,l.useRouter)(),C=(0,r.useSession)();if(!(m||C.isAdmin))return null;let z=(t,r)=>{w(async()=>{let a=await (0,c.setOfferDealLock)(e,t,r.trim()||null);a.ok?(f(t),j({ok:!0}),S.refresh()):j({ok:!1,msg:a.error})})};return h?(0,t.jsxs)("div",{className:`glass-strong mt-3 rounded-[var(--radius-md)] p-3 ${g?"ring-1 ring-[var(--color-brand-amber)]":""}`,children:[(0,t.jsxs)("div",{className:"mb-2 flex items-baseline justify-between gap-2",children:[(0,t.jsx)("h2",{className:"text-[13px] font-bold",children:"Deal lock (admin)"}),(0,t.jsx)("button",{type:"button",onClick:()=>b(!1),className:"text-[10.5px] text-[var(--color-fg-mute)] hover:underline",children:"zavrieÅ¥"})]}),(0,t.jsx)("p",{className:"mb-2 text-[11px] text-[var(--color-fg-mute)]",children:"Zamknutá ponuka nepoÄÃta žiadne kupóny â AE ich na tomto listingu v pokladni neuplatnà (Early Bird, Flash Sale, SuperDealsâ¦)."}),(0,t.jsxs)("label",{className:"mb-2 inline-flex cursor-pointer items-center gap-2 text-[12px] font-semibold",children:[(0,t.jsx)("input",{type:"checkbox",checked:g,disabled:N,onChange:e=>z(e.target.checked,v),className:"h-4 w-4 accent-[var(--color-brand-amber)]"}
1),"ð Kupóny vypnuté (deal lock)"]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("input",{type:"text",value:v,onChange:e=>k(e.target.value),onKeyDown:e=>{"Enter"===e.key&&z(g,v)},placeholder:"Deal label (Early Bird, Flash Saleâ¦)",disabled:N,className:"min-w-0 flex-1 basis-48 rounded-[var(--radius-sm)] border border-[var(--color-border)] bg-[var(--color-bg-elev)] px-3 py-1.5 text-[12px] outline-none focus:border-[var(--color-brand-500)]"}),(0,t.jsx)("button",{type:"button",disabled:N||(v.trim()||null)===(u?.trim()||null),onClick:()=>z(g,v),className:"rounded-[var(--radius-sm)] bg-[var(--color-brand-500)] px-3 py-1.5 text-[11.5px] font-semibold text-white disabled:opacity-40",children:"UložiÅ¥ label"}),(0,t.jsx)("span",{className:"inline-flex h-6 w-6 items-center justify-center",children:N?(0,t.jsx)(o.Loader2,{size:14,className:"animate-spin text-[var(--color-fg-mute)]"}):y?.ok?(0,t.jsx)(s.Check,{size:14,className:"text-[var(--color-success)]"}):y?(0,t.jsx)(d.X,{size:14,className:"text-[var(--color-danger)]"}):null})]}),(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:p.map(e=>(0,t.jsxs)("button",{type:"button",disabled:N,onClick:()=>{k(e),z(!0,e)},className:"rounded-full border border-[var(--color-border)] px-2 py-0.5 text-[10.5px] text-[var(--color-fg-soft)] hover:border-[var(--color-brand-amber)] hover:text-[var(--color-brand-700)]",children:["ð ",e]},e))}),y&&!y.ok&&y.msg&&(0,t.jsx)("p",{className:"mt-2 text-[11px] text-[var(--color-danger)]",children:y.msg})]}):(0,t.jsxs)("button",{type:"button",onClick:()=>b(!0),className:`mt-3 mr-2 inline-flex items-center gap-1.5 rounded-[var(--radius-sm)] border-[1.5px] border-dashed px-3 py-1.5 text-[11.5px] font-semibold ${g?"border-[var(--color-brand-amber)] bg-[var(--color-brand-amber)]/10 text-[var(--color-brand-700)]":"border-[var(--color-brand-500)]/50 text-[var(--color-brand-500)]"}`,children:[g?(0,t.jsx)(n.Lock,{size:12}):(0,t.jsx)(i,{size:12}),g?`Deal lock: ${v.trim()||"zapnutý"} (admin)`:"Deal lock (admin)"]})}],885527)},278571,e=>{"use strict";var t=e.i(843476),r=e.i(956961);e.s(["AdminOnly",0,function({children:e}){let{isAdmin:a}=(0,r.useSession)();return a?(0,t.jsx)(t.Fragment,{children:e}):null}])},303539,e=>{"use strict";var t=e.i(843476),r=e.i(956961),a=e.i(271645),l=e.i(618566),s=e.i(531278),o=e.i(16715),n=e.i(95187);let i=(0,n.createServerReference)("4041ed1569eeb3d24d166c93b919ff70ebea469cf0",n.callServer,void 0,n.findSourceMapURL,"triggerSingleProductRefresh");e.s(["AdminRefreshButton",0,function({offerId:e,isAdmin:n,marketplaceCode:d}){let[c,p]=(0,a.useTransition)(),[x,u]=(0,a.useState)(null),m=(0,l.useRouter)();return(n||(0,r.useSession)().isAdmin)&&"aliexpress"===d?(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{u(null),p(async()=>{let t=await i(e);if(t.ok){let e=t.retriesAttempted>0?` \xb7 â»${t.retriesOk}/${t.retriesAttempted}`:"";u({kind:"ok",label:`â ${t.pairsOk} OK${e} \xb7 ${t.durationSec.toFixed(1)}s`}),m.refresh()}else u({kind:"err",label:t.message??"refresh failed"});window.setTimeout(()=>u(null),3e3)})},disabled:c,title:"Admin: refresh cien pre tento produkt + jeho canonical members","aria-label":"Admin refresh prices",className:"glass-strong inline-flex h-9 w-9 items-center justify-center rounded-full border border-[var(--color-brand-500)]/40 text-[var(--color-brand-500)] disabled:opacity-60",children:c?(0,t.jsx)(s.Loader2,{size:16,className:"animate-spin"}):(0,t.jsx)(o.RefreshCw,{size:16})}),x&&(0,t.jsx)("div",{className:`absolute right-0 top-11 z-50 whitespace-nowrap rounded-full px-2.5 py-1 text-[10.5px] font-semibold shadow-lg ${"ok"===x.kind?"bg-[var(--color-success)] text-white":"bg-[var(--color-danger)] text-white"}`,children:x.label})]}):null}],303539)},254042,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566),l=e.i(531278);let s=(0,e.i(475254).default)("Unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]);var o=e.i(956961),n=e.i(95187);let i=(0,n.createServerReference)("40ddcd951a82ad295c2c356f7daa2ee6241d3ae1f9",n.callServer,void 0,n.findSourceMapURL,"detachOfferFromGroup");e.s(["AdminUnlinkOfferButton",0,function({offerId:e,vendor:n}){let{isAdmin:d}=(0,o.useSession)(),c=(0,a.useRouter)(),[p,x]=(0,r.useTransition)(),[u,m]=(0,r.useState)(null);return d?(0,t.jsxs)("span",{className:"ml-2 inline-flex items-center gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{p||window.confirm(`OdpojiÅ¥ ponuku â${n}" zo skupiny tohto produktu? 2 3Ponuka ostane v katal\xf3gu ako samostatn\xe1 karta a auto-merge ju už sp\xe4Å¥ nezl\xfaÄi (mergeExclude).`)&&(m(null),x(async()=>{let t=await i(e);t.ok?c.refresh():m(t.error)}))},disabled:p,title:"OdpojiÅ¥ od skupiny (admin)",className:"inline-flex items-center gap-1 rounded-[8px] border border-dashed border-[#
3E11D48]/60 px-2 py-[3px] text-[10.5px] font-extrabold text-[#E11D48] transition-colors hover:bg-[#E11D48]/10 disabled:opacity-60",children:[p?(0,t.jsx)(l.Loader2,{size:11,className:"animate-spin"}):(0,t.jsx)(s,{size:11,strokeWidth:2.6}),"OdpojiÅ¥"]}),u&&(0,t.jsx)("span",{className:"text-[10px] font-bold text-[#E11D48]",children:u})]}):null}],254042)},446423,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(643531),l=e.i(174886),s=e.i(751975);let o={EUR:"â¬",USD:"$",CZK:"KÄ",PLN:"zÅ"};e.s(["CouponCopyChip",0,function({code:e,saving:n,currency:i,label:d,copiedLabel:c}){let p=o[i]??i,[x,u]=(0,r.useState)(!1);async function m(){try{await navigator.clipboard.writeText(e),u(!0),window.setTimeout(()=>u(!1),1600)}catch{}}return(0,t.jsxs)("button",{type:"button",onClick:m,className:`inline-flex items-center gap-1.5 rounded-full px-[11px] py-[5px] text-[11px] font-bold transition-colors ${x?"bg-[var(--dp-color-success-soft)] text-[var(--dp-color-success)]":"bg-[var(--dp-color-surface-2)] text-[var(--dp-color-primary)] hover:brightness-[.97]"}`,"aria-label":`${d}: ${e}`,children:[x?(0,t.jsx)(a.Check,{size:11,strokeWidth:2.4}):(0,t.jsx)(s.Tag,{size:11,strokeWidth:2.2}),(0,t.jsx)("span",{children:x?c:d}),(0,t.jsx)("span",{className:"mono font-extrabold text-[var(--color-fg)]",children:e}),n>0&&(0,t.jsxs)("span",{className:"num font-extrabold text-[var(--dp-color-discount)]",children:["â",n.toFixed(2)," ",p]}),!x&&(0,t.jsx)(l.Copy,{size:10,className:"opacity-60"})]})}])},448190,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(878894),l=e.i(664659),s=e.i(174886),o=e.i(643531),n=e.i(805899),i=e.i(531278),d=e.i(751975),c=e.i(716469),p=e.i(877504);function x({alt:e,currency:r,labels:l,copied:c,reportState:u,reporting:m,formOpen:h,message:b,onMessage:g,onCopy:f,onReport:v,onSubmit:k,compact:y=!1}){let j=null!==u,N=l.overSpend,w=l.unverifiedNote;return(0,t.jsxs)("div",{className:`flex flex-col gap-2.5 rounded-[16px] border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)] px-[15px] transition-opacity ${y?"py-2.5":"py-[13px]"} ${j?"opacity-50":""}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(d.Tag,{size:16,className:"shrink-0 text-[var(--dp-color-primary)]",strokeWidth:2}),(0,t.jsxs)("button",{type:"button",onClick:f,disabled:j,className:"flex min-w-0 flex-1 flex-col gap-[1px] text-left leading-tight disabled:cursor-not-allowed",children:[(0,t.jsx)("span",{className:`mono font-bold tracking-[.02em] ${y?"text-[13px]":"text-[14px]"}`,children:e.code}),null!=e.minSpend&&(0,t.jsx)("span",{className:"text-[11.5px] font-semibold text-[var(--dp-color-ink-3)]",children:N.replace("{min}",`${e.minSpend.toFixed(2)}${r}`)})]}),(0,t.jsx)("button",{type:"button",onClick:f,disabled:j,"aria-label":l.copyAria.replace("{code}",e.code),className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-[9px] border transition-colors disabled:cursor-not-allowed ${c?"border-transparent bg-[var(--dp-color-success)] text-white":"border-[var(--dp-color-border)] text-[var(--dp-color-primary)] hover:bg-[var(--dp-color-surface-2)]"}`,children:c?(0,t.jsx)(o.Check,{size:14,strokeWidth:2.5}):(0,t.jsx)(s.Copy,{size:14,strokeWidth:2})}),(0,t.jsxs)("span",{className:`num min-w-[64px] shrink-0 text-right font-extrabold ${j?"text-[var(--color-fg-mute)] line-through":"text-[var(--dp-color-success)]"} ${y?"text-[13px]":"text-[15px]"}`,children:["â",e.saving.toFixed(2),r]}),(0,t.jsx)("button",{type:"button",onClick:v,disabled:m||j,title:j?l.reportedTitle:l.reportLabel,className:`inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-full transition-colors ${j?"text-[var(--color-success)]":"text-[var(--dp-color-ink-3)] hover:bg-black/5 hover:text-[var(--color-danger)] disabled:opacity-50"}`,children:m?(0,t.jsx)(i.Loader2,{size:12,className:"animate-spin"}):j?(0,t.jsx)(o.Check,{size:12}):(0,t.jsx)(n.Flag,{size:12})})]}),h&&!j&&(0,t.jsx)(p.CouponReportForm,{labels:l,message:b,onMessage:g,onCancel:v,onSubmit:k,reporting:m,compact:!0}),!1===e.eligibilityVerified&&(0,t.jsxs)("span",{className:"inline-flex w-fit items-center gap-1.5 rounded-[8px] bg-[var(--dp-color-warning-soft)] px-2.5 py-[5px] text-[11px] font-bold text-[var(--dp-color-warning)]",children:[(0,t.jsx)(a.AlertTriangle,{size:12,strokeWidth:2.2}),w]})]})}e.s(["DealAlternativeCoupons",0,function({alternatives:e,currency:a,country:s="SK",labels:o}){let[n,i]=(0,r.useState)(null),[d,p]=(0,r.useState)(!1),[u,m]=(0,r.useState)({}),[h,b]=(0,r.useState)(null),[g,f]=(0,r.useState)(""),[v,k]=(0,r.useTransition)();if(0===e.length)return null;let y="EUR"===a?"â¬":a,j=async e=>{try{await navigator.clipboard.writeText(e),i(e),window.setTimeout(()=>i(t=>t===e?null:t),1500)}catch{}},N=e=>{u[e]||v||(b(t=>t===e?null:e),f(""))},w=e=>{let t=g.trim();t.length<3||v||k(async()=>{let r=await (0,c.reportCouponNotWorking)({code:e,country:s,message:t});r.ok&&(m(t=>({...t,[e]:"auto_disabled"===r.status?"disabled":"done"})),b(null),f(""))})},S=e.slice(0,3),C=e.slice(3);return(0,t.jsxs)("div",{className:"mt-3.5 flex flex-col gap-2.5",children:[(0,t.jsx)("div",{className:"text-[10.5px] font-extrabold uppercase tracking-[.09em] text-[var(--dp-color-ink-3)]",children:o.alternativesTitle}),(0,t.jsx)("div",{className:"flex flex-col gap-2.5",children:S.map(e=>(0,t.jsx)(x,{alt:e,currency:y,labels:o,copied:n===e.code,reportState:u[e.code]??null,reporting:v&&!u[e.code],formOpen:h===e.code,message:g,onMessage:f,onCopy:()=>j(e.code),onReport:()=>N(e.code),onSubmit:()=>w(e.code)},e.code))}),C.length>0&&(0,t.jsxs)("details",{className:"mt-0.5 rounded-[14px] border border-[rgba(108,43,217,.14)] bg-[var(--dp-color-surface-2)]",open:d,onToggle:e=>p(e.target.open),children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer items-center justify-between px-4 py-3.5 text-[13px] font-extrabold text-[var(--dp-color-primary)]",children:[(0,t.jsxs)("span",{children:[o.tryThese," (",C.length,")"]}),(0,t.jsx)(l.ChevronDown,{size:18,strokeWidth:2.4,className:`transition-transform ${d?"rotate-180":""}`})]}),(0,t.jsx)("div",{className:"flex flex-col gap-2 px-2.5 pb-2.5 pt-0.5",children:C.map(e=>(0,t.jsx)(x,{alt:e,currency:y,labels:o,copied:n===e.code,reportState:u[e.code]??null,reporting:v&&!u[e.code],formOpen:h===e.code,message:g,onMessage:f,onCopy:()=>j(e.code),onReport:()=>N(e.code),onSubmit:()=>w(e.code),compact:!0},e.code))})]})]})}])},90800,e=>{"use strict";var t=e.i(843476),r=e.i(239578),a=e.i(643531),l=e.i(174886),s=e.i(805899),o=e.i(751975),n=e.i(271645),i=e.i(716469),d=e.i(877504);let c={reportLabel:"Kupón nefunguje?",reportThanks:"Äakujeme za nahlásenie",reportDisabled:"Komunita kupón oznaÄila ako nefunkÄný",confirmReport:"NahlásiÅ¥, že kupón {code} nefunguje?",reportPrompt:"Akú hlášku ti obchod zobrazil?",reportPlaceholder:"napr. Sorry, this coupon has been used up",reportSubmit:"OdoslaÅ¥ hlásenie",reportCancel:"ZruÅ¡iÅ¥",copyAria:"SkopÃrovaÅ¥ kupón {code}",copiedAria:"SkopÃrované: {code}"};function p({code:e,saving:r,variant:x,label:u,copyable:m=!0,country:h="SK",reportLabels:b=c}
3){let[g,f]=(0,n.useState)(!1),[v,k]=(0,n.useState)("idle"),[y,j]=(0,n.useState)(!1),[N,w]=(0,n.useState)(""),[S,C]=(0,n.useTransition)(),z=async()=>{if(m)try{await navigator.clipboard.writeText(e),f(!0),window.setTimeout(()=>f(!1),1500)}catch{let t=document.getElementById(`coupon-code-${e}`);if(t){let e=document.createRange();e.selectNodeContents(t);let r=window.getSelection();r?.removeAllRanges(),r?.addRange(e)}}},M=m?"button":"div",$=m?{type:"button",onClick:z,"aria-label":(g?b.copiedAria:b.copyAria).replace("{code}",e)}:{};return(0,t.jsxs)("div",{className:`flex flex-col ${"primary"===x?"mt-3":"mt-2"}`,children:[(0,t.jsxs)(M,{...$,className:`group flex w-full items-center gap-[13px] p-[15px] px-4 text-left ${m?"cursor-pointer transition-transform active:scale-[0.99]":""} rounded-[18px] border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)] shadow-[0_8px_22px_rgba(25,15,50,.05)]`,children:[(0,t.jsx)("div",{className:"inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-full text-white",style:{background:"primary"===x?"linear-gradient(135deg, #8B4DF0, #5B21B6)":"stacked"===x?"linear-gradient(135deg, #188A52, #52D68F)":"linear-gradient(135deg, #55505F, #8A8695)"},children:(0,t.jsx)(o.Tag,{size:19,strokeWidth:2})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[2px]",children:[(0,t.jsx)("div",{className:"text-[10.5px] font-extrabold uppercase tracking-[.07em] text-[var(--dp-color-ink-3)]",children:u}),(0,t.jsx)("div",{id:`coupon-code-${e}`,className:"mono truncate text-[16px] font-bold tracking-[.04em]",children:e})]}),(0,t.jsxs)("div",{className:"num text-[18px] font-extrabold text-[var(--dp-color-success)]",children:["â",r.toFixed(2),"â¬"]}),m&&(0,t.jsx)("div",{className:`inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-[12px] transition-colors ${g?"bg-[var(--dp-color-success)] text-white":"bg-[var(--dp-color-surface-2)] text-[var(--dp-color-primary)]"}`,"aria-hidden":!0,children:g?(0,t.jsx)(a.Check,{size:16,strokeWidth:2.5}):(0,t.jsx)(l.Copy,{size:16,strokeWidth:2})})]}),m&&"idle"===v&&!y&&(0,t.jsxs)("button",{type:"button",onClick:()=>j(!0),className:"mt-1.5 ml-auto flex items-center gap-1 text-[12px] font-semibold text-[var(--dp-color-ink-3)] hover:text-[var(--color-danger)]",children:[(0,t.jsx)(s.Flag,{size:11}),b.reportLabel]}),m&&"idle"===v&&y&&(0,t.jsx)(d.CouponReportForm,{labels:b,message:N,onMessage:w,onCancel:()=>{j(!1),w("")},onSubmit:()=>C(async()=>{let t=await (0,i.reportCouponNotWorking)({code:e,country:h,message:N.trim()});t.ok&&k("auto_disabled"===t.status?"disabled":"done")}),reporting:S}),m&&"idle"!==v&&(0,t.jsxs)("div",{className:"mt-1 ml-auto flex items-center gap-1 text-[10px] font-semibold text-[var(--color-success)]",children:[(0,t.jsx)(a.Check,{size:9}),"disabled"===v?b.reportDisabled:b.reportThanks]})]})}var x=e.i(480313);e.s(["DealCouponStack",0,function(e){let a=(0,x.useDetailVariant)(),l=a?.selected?.pricing??null,s="EUR"===e.currency?"â¬":e.currency;if(e.couponsBlocked)return(0,t.jsxs)("div",{className:"glass-strong relative mt-3 flex items-start gap-3 overflow-hidden rounded-[var(--radius-md)] p-3.5",style:{boxShadow:"inset 0 0 0 1.5px rgba(var(--brand-glow-amber),0.30)"},children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute -left-6 -top-8 h-24 w-24 rounded-full",style:{background:"radial-gradient(circle, rgba(var(--brand-glow-amber),0.22), transparent 70%)"}}),(0,t.jsx)("div",{className:"relative inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl text-white shadow-[0_8px_20px_-8px_rgba(var(--brand-glow-amber),0.7)]",style:{background:"linear-gradient(135deg, var(--color-brand-amber), var(--color-brand-bright))"},children:(0,t.jsx)(r.Bolt,{size:19,strokeWidth:2.2})}),(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("span",{className:"mb-1 inline-block rounded-full px-2 py-0.5 text-[9px] font-bold uppercase tracking-widest text-white",style:{background:"linear-gradient(135deg, var(--color-brand-amber), var(--color-brand-bright))"},children:e.dealLabel??e.labels.specialDeal}),(0,t.jsx)("div",{className:"text-[12.5px] font-extrabold leading-tight tracking-tight",children:e.labels.couponsBlockedTitle.replace("{label}
3",e.dealLabel??e.labels.specialDeal)}),(0,t.jsx)("div",{className:"mt-0.5 text-[11px] leading-snug text-[var(--color-fg-mute)]",dangerouslySetInnerHTML:{__html:e.labels.couponsBlockedBody.replace("{price}",`<span class="num font-semibold text-[var(--color-fg-soft)]">${(l?.finalPrice??e.finalPriceForBanner).toFixed(2)}${s}</span>`)}})]})]});let o=l?{code:l.bestCouponCode,saving:l.bestCouponSaving}:{code:e.defaultCoupon,saving:e.defaultCouponSaving},n=l?{code:l.stackedCouponCode,saving:l.stackedCouponSaving}:{code:e.defaultStackedCoupon,saving:e.defaultStackedCouponSaving},i=l?{code:l.sellerDiscountCode,saving:l.sellerDiscountSaving}:{code:e.defaultSellerDiscount,saving:e.defaultSellerDiscountSaving};return(0,t.jsxs)(t.Fragment,{children:[o.code&&(0,t.jsx)(p,{code:o.code,saving:o.saving,variant:"primary",label:e.labels.autoCoupon,country:e.country,reportLabels:e.reportLabels}),n.code&&(0,t.jsx)(p,{code:n.code,saving:n.saving,variant:"stacked",label:`+ ${e.labels.autoCoupon}`,country:e.country,reportLabels:e.reportLabels}),i.code&&(0,t.jsx)(p,{code:i.code,saving:i.saving,variant:"seller",label:e.labels.sellerDiscountLabel,copyable:!1,country:e.country})]})}],90800)},143527,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(972520),l=e.i(480313),s=e.i(38896);let o=()=>()=>{};e.s(["DealCtaButton",0,function({baseHref:e,label:n,lang:i,couponCode:d,marketplaceName:c}){var p,x;let u=(0,l.useDetailVariant)(),[m,h]=(0,r.useState)(null);(0,r.useEffect)(()=>{try{let e=new URLSearchParams(window.location.search).get("s");e&&/^[a-z0-9-]{1,24}$/.test(e)&&h(e)}catch{}},[]);let b=(0,r.useSyncExternalStore)(o,s.getOdchodSkip,()=>!1),g=u?.selected?.urlSkuId??u?.selected?.externalSkuId??null,f=u?.selected?.redirectSlug??null,v=f?e.replace(/^\/go\/[^?]+/,`/go/${f}`):e,k=m&&v.startsWith("/go/")&&!/[?&]campaign=/.test(v)?`${v}${v.includes("?")?"&":"?"}campaign=${encodeURIComponent(m)}`:v,y=g?(p=k,x=g,"#"===p?p:p.includes("?")?`${p}&sku=${encodeURIComponent(x)}`:`${p}?sku=${encodeURIComponent(x)}`):k,j=y.startsWith("/go/"),N=j&&!b?`/${i}/odchod?to=${encodeURIComponent(y)}${d?`&c=${encodeURIComponent(d)}`:""}${c?`&m=${encodeURIComponent(c)}`:""}`:y;return(0,t.jsxs)("a",{href:N,onClick:()=>{if(d)try{navigator.clipboard?.writeText(d)}catch{}},...j?{target:"_blank",rel:"sponsored noopener"}:{},className:"press flex h-[52px] flex-[2] items-center justify-center gap-2 rounded-full text-[15px] font-extrabold text-white lg:rounded-[16px] lg:text-[16px]",style:{background:"linear-gradient(135deg, #8B4DF0, #6C2BD9)",boxShadow:"0 10px 24px rgba(108,43,217,.3)"},children:[n,(0,t.jsx)(a.ArrowRight,{size:16,strokeWidth:2})]})}])},484747,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(373375),l=e.i(463059),s=e.i(710793),o=e.i(480313),n=e.i(549838);e.s(["DealHero",0,function({defaultImageUrl:e,galleryUrls:i=[],alt:d,imgKind:c,overlay:p,discountPercent:x=0,galleryLabels:u,unavailable:m=!1,unavailableLabel:h}){let b=(0,o.useDetailVariant)(),g=b?.selected?.imageUrl,f=(0,r.useMemo)(()=>{let t=[];for(let r of[g,e,...i])r&&!t.includes(r)&&t.push(r);return t},[g,e,i]),[v,k]=(0,r.useState)(0);(0,r.useEffect)(()=>{queueMicrotask(()=>k(0))},[g]);let y=v<f.length?v:0,j=f[y]??e,N=f.length>1,w=e=>{N&&k(t=>((t<f.length?t:0)+e+f.length)%f.length)},S="absolute top-1/2 z-[2] grid h-9 w-9 -translate-y-1/2 place-items-center rounded-full border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)]/90 text-[var(--color-fg)] shadow-sm backdrop-blur transition-opacity hover:opacity-100 opacity-90 lg:h-10 lg:w-10";return(0,t.jsxs)("div",{className:"relative mx-4 lg:mx-0",children:[x>0&&!m&&(0,t.jsxs)("span",{className:"num absolute left-3 top-3 z-[3] rounded-[9px] px-2.5 py-1 text-[11px] font-extrabold text-white lg:left-4 lg:top-4 lg:rounded-[12px] lg:px-3 lg:py-1.5 lg:text-[13px]",style:{background:"linear-gradient(135deg, #8B4DF0, #5B21B6)"},children:["â",x," %"]}),(0,t.jsxs)("div",{className:"relative",children:[m&&h&&(0,t.jsx)("span",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 whitespace-nowrap rounded-full bg-[#17151F]/90 px-4 py-1.5 text-[12px] font-extrabold uppercase tracking-[0.08em] text-white shadow-lg ring-1 ring-white/25 backdrop-blur lg:px-5 lg:py-2 lg:text-[13px]",children:h}),(0,t.jsx)("div",{className:(0,n.cn)("overflow-hidden rounded-[var(--radius-xl)] lg:hidden",m&&"grayscale opacity-65"),children:(0,t.jsx)(s.ProductImage,{kind:c,src:j,alt:d,height:260,radius:22,priority:!0})}),(0,t.jsx)("div",{className:(0,n.cn)("hidden overflow-hidden rounded-[24px] lg:block",m&&"grayscale opacity-65"),children:(0,t.jsx)(s.ProductImage,{kind:c,src:j,alt:d,aspect:"1 / 1",radius:24,priority:!0})}),N&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>w(-1),className:(0,n.cn)(S,"left-2 lg:left-3"),"aria-label":u.prev,children:(0,t.jsx)(a.ChevronLeft,{size:18,"aria-hidden":!0})}),(0,t.jsx)("button",{type:"button",onClick:()=>w(1),className:(0,n.cn)(S,"right-2 lg:right-3"),"aria-label":u.next,children:(0,t.jsx)(l.ChevronRight,{size:18,"aria-hidden":!0})}),(0,t.jsxs)("span",{className:"num absolute bottom-2 right-2 z-[2] rounded-full bg-black/55 px-2 py-0.5 text-[11px] font-bold text-white lg:bottom-3 lg:right-3",children:[y+1,"/",f.length]})]})]}),N&&(0,t.jsx)("div",{className:(0,n.cn)("mt-2 flex gap-2 overflow-x-auto pb-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",m&&"grayscale opacity-65"),children:f.map((e,r)=>(0,t.jsx)("button",{type:"button",onClick:()=>k(r),"aria-label":u.thumb.replace("{n}",String(r+1)),"aria-current":r===y,className:(0,n.cn)("press w-14 shrink-0 overflow-hidden rounded-[12px] border-2 transition-colors lg:w-16",r===y?"border-[var(--color-brand-500)]":"border-transparent opacity-70 hover:opacity-100"),children:(0,t.jsx)(s.ProductImage,{kind:c,src:e,alt:"",radius:10})},e))}),p]})}])},159189,e=>{"use strict";var t=e.i(843476),r=e.i(115057);let a=(0,e.i(475254).default)("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var l=e.i(423609),s=e.i(299023),o=e.i(635408),n=e.i(715788),i=e.i(480313),d=e.i(807232);function c({defaultShippingPrice:e,defaultShipDays:r,defaultShipFrom:a,labels:l}){let s=(0,i.useDetailVariant)(),o=s?.selected??null,d=o?.shippingFee??e??null,p=o?.shippingDays??r??null,x=o?.shipFromCountry??a??null;return(0,t.jsxs)("div",{className:"col-span-2 mt-1 flex items-center gap-1.5 text-[11px] text-[var(--color-fg-soft)]",children:[(0,t.jsx)(n.Truck,{size:12,className:"shrink-0 text-[var(--color-fg-mute)]"}),(null==d||d<=.01)&&(0,t.jsx)("span",{className:"font-semibold text-[var(--color-success)]",children:l.shippingFree}),(p||x)&&(0,t.jsx)("span",{className:"text-[10.5px] text-[var(--color-fg-mute)]",children:[p&&(l.shippingEta??"DoruÄenie {days}").replace("{days}",p),x&&(l.shippingFrom??"z {cc}").replace("{cc}
3",x)].filter(Boolean).join(" · ")})]})}e.s(["DealPriceCard",0,function({defaultFinalPrice:e,defaultOldPrice:n,vatRate:p,currency:x,hasCoupon:u,defaultShippingPrice:m,defaultShipDays:h,defaultShipFrom:b,regularPrice:g,bankTransferGuideUrl:f,defaultImportDuty:v,history30d:k,priceBase:y,offerId:j,marketplace:N,labels:w}){let S,C=(0,i.useDetailVariant)(),z=C?.selected?.pricing??null,M=(C?.selected?.currency??null??x)==="EUR"?"â¬":x,$=z?.finalPrice??e,D=C?.selected?.priceWithVat??null,R=null!=D&&D>$?D:n,L=R>$?Math.round((1-$/R)*100):0,A=C?.selected??null,F=A?.shippingFee??m??null,U=null==F||F<=.01,B=$+(U?0:F),T=R+(U?0:F),I=L<=0&&null!=k,P=null!=k&&k.max-k.min<=Math.max(.5,.02*k.min),W=null!=k&&$<=k.min+.01,E=L>0||I;return(0,t.jsxs)("div",{className:"relative mt-3.5 grid grid-cols-2 gap-2.5 overflow-hidden rounded-[var(--dp-radius-card-lg)] border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)] p-4 lg:grid-cols-[1.3fr_1fr] lg:p-5 lg:pt-6",style:{boxShadow:"var(--dp-shadow-card)"},children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 hidden h-[5px] lg:block",style:{background:"linear-gradient(90deg, var(--dp-color-ring), #8B4DF0 60%, var(--dp-color-primary-strong))"}}),(0,t.jsxs)("div",{className:E?"relative":"relative col-span-2",children:[(0,t.jsx)("div",{className:"dp-eyebrow text-[var(--dp-color-ink-3)]",children:w.inApp}),(0,t.jsxs)("div",{className:"num mt-1 text-[28px] font-black leading-none tracking-[-.02em] text-[var(--dp-color-price)] lg:text-[38px]",children:[B.toFixed(2),M]}),"â¬"===M&&(0,t.jsx)(d.LocalPrice,{eur:B,marketplace:N??"",base:C?.selected?.sellerOfferId&&C.selected.sellerOfferId!==j?null:y,className:"num mt-1 block text-[13px] font-bold text-[var(--color-fg-mute)]"}),!U&&(0,t.jsxs)("div",{className:"num mt-1 text-[10.5px] text-[var(--color-fg-mute)]",children:[$.toFixed(2),M,` + ${w.shippingPaid} ${F.toFixed(2)}${M}`]}),(0,t.jsxs)("div",{className:"mt-1.5 flex flex-wrap items-center gap-1.5",children:[L>0&&(0,t.jsxs)("span",{className:"num inline-flex items-center rounded-[8px] bg-[var(--dp-color-discount)] px-2 py-0.5 text-[10px] font-extrabold text-white",children:["â",L," %"]}),p>0&&(0,t.jsx)("span",{className:"text-[9.5px] font-semibold uppercase tracking-wider text-[var(--color-fg-mute)]",children:w.vatIncluded.replace("{rate}",String(p))}),(S=null!=A?A.importDuty??0:v??0)<=0?null:(0,t.jsx)("span",{className:"text-[9.5px] font-semibold uppercase tracking-wider text-[var(--color-fg-mute)]",children:(w.dutyIncluded??"vrátane cla {amount} â¬").replace("{amount}",S.toFixed(2))})]})]}),L>0?(0,t.jsxs)("div",{className:"relative border-l border-[var(--dp-color-border)] pl-3 lg:pl-5",children:[(0,t.jsx)("div",{className:"dp-eyebrow text-[var(--dp-color-ink-3)]",children:u?w.withoutOurCoupon:w.lowest30d}),(0,t.jsxs)("div",{className:"num mt-1 text-[18px] font-bold text-[var(--dp-color-ink-3)] line-through lg:text-[22px]",children:[T.toFixed(2),M]}),(0,t.jsxs)("div",{className:"mt-1.5 inline-flex items-center gap-1 rounded-full bg-[var(--dp-color-success-soft)] px-2 py-0.5 text-[10px] font-bold text-[var(--dp-color-success)]",children:[w.youSave," ",(0,t.jsxs)("span",{className:"num font-extrabold",children:[(R-$).toFixed(2),M]})]})]}):I&&k?(0,t.jsxs)("div",{className:"relative border-l border-[var(--dp-color-border)] pl-3",children:[(0,t.jsx)("div",{className:"dp-eyebrow text-[var(--dp-color-ink-3)]",children:w.priceHistory30d??"30-dÅová cenová história"}),P?(0,t.jsxs)("div",{className:"mt-0.5 inline-flex items-center gap-1.5 text-[15px] font-bold text-[var(--color-fg-soft)]",children:[(0,t.jsx)(s.Minus,{size:14,className:"text-[var(--color-fg-mute)]",strokeWidth:2.4}),w.priceStable??"stabilná"]}):W?(0,t.jsxs)("div",{className:"mt-0.5 inline-flex items-center gap-1.5 text-[14px] font-extrabold text-[var(--dp-color-success)]",children:[(0,t.jsx)(a,{size:15,strokeWidth:2.2}),w.priceLowestNow??"aktuálne najnižšia"]}):(0,t.jsxs)("div",{className:"mt-0.5 inline-flex items-center gap-1.5 text-[14px] font-bold text-[var(--color-fg-soft)]",children:[(0,t.jsx)(o.TrendingDown,{size:14,className:"text-[var(--color-fg-mute)]",strokeWidth:2.2}),(0,t.jsx)("span",{className:"num",children:(w.priceLow30d??"najnižšia {price}").replace("{price}",`${k.min.toFixed(2)}${M}`)})]})]}):null,(0,t.jsx)(c,{defaultShippingPrice:m,defaultShipDays:h,defaultShipFrom:b,sym:M,labels:w}),null!=g&&g>$&&(0,t.jsxs)("div",{className:"dp-bank-strip col-span-2 -mx-4 -mb-4 mt-2 flex items-center gap-3 px-[18px] py-[13px] pb-[15px] lg:-mx-5 lg:-mb-5 lg:px-[22px]",children:[(0,t.jsx)("span",{className:"dp-bank-chip flex h-[34px] w-[34px] flex-none items-center justify-center rounded-[10px]",children:(0,t.jsx)(l.Landmark,{size:16,strokeWidth:2})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-[1px]",children:[(0,t.jsx)("span",{className:"dp-bank-title text-[12.5px] font-extrabold leading-tight",children:w.bankTransferTitle??"Cena platà pri platbe bankovým prevodom"}),(0,t.jsxs)("span",{className:"text-[12px] font-semibold text-[var(--dp-color-ink-3)]",children:[w.bankTransferRegular??"BežnÃ
3¡ cena kartou"," ",(0,t.jsxs)("b",{className:"dp-bank-strong num font-extrabold",children:[(g+(U?0:F)).toFixed(2),M]})]})]}),f&&(0,t.jsxs)("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"dp-bank-link flex flex-none items-center gap-1 whitespace-nowrap text-[12px] font-extrabold",children:[w.bankTransferGuide??"Ako platiÅ¥ prevodom",(0,t.jsx)(r.ArrowUpRight,{size:13,strokeWidth:2.4})]})]})]})}],159189)},910374,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(174080),l=e.i(643531),s=e.i(664659),o=e.i(299023),n=e.i(870273),i=e.i(37727);let d=[100,200,220,250,300,350,480,500,640,800,960,1200];function c(e,t){let r=d.find(e=>e>=t)??d[d.length-1];return`${e}_${r}x${r}.jpg`}function p({rating:e}){let r=Math.max(0,Math.min(100,e/5*100)),a=e=>(0,t.jsx)("span",{className:"flex gap-[1px]","aria-hidden":"true",children:[0,1,2,3,4].map(r=>(0,t.jsx)(n.Star,{size:13,fill:e,stroke:"none"},r))});return(0,t.jsxs)("span",{className:"relative inline-flex",children:[a("var(--dp-color-border)"),(0,t.jsx)("span",{className:"absolute inset-0 overflow-hidden",style:{width:`${r}%`},children:a("var(--dp-color-ring)")})]})}function x({photos:e,labels:l,store:o}){let[d,p]=(0,r.useState)({}),[u,m]=(0,r.useState)(null),h=e.filter(e=>!d[e.u]);if((0,r.useEffect)(()=>{if(null==u)return;let e=e=>{"Escape"===e.key&&m(null),"ArrowRight"===e.key&&m(e=>null==e?e:(e+1)%h.length),"ArrowLeft"===e.key&&m(e=>null==e?e:(e-1+h.length)%h.length)};window.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=t}},[u,h.length]),0===h.length)return null;let b=null!=u?h[u]:null;return(0,t.jsxs)("div",{className:"mt-3.5 border-t border-[var(--dp-color-border)] pt-3.5",children:[(0,t.jsx)("div",{className:"dp-eyebrow mb-2 text-[var(--dp-color-ink-3)]",children:l.photos.replace("{count}",String(h.length))}),(0,t.jsx)("div",{className:"-mx-3.5 flex gap-2 overflow-x-auto px-3.5 pb-1 lg:-mx-4 lg:px-4 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:h.map((e,r)=>(0,t.jsxs)("button",{type:"button",onClick:()=>m(r),className:"press relative size-[74px] shrink-0 overflow-hidden rounded-[14px] border border-[var(--dp-color-border)] bg-[var(--color-bg)] lg:size-[86px]",children:[(0,t.jsx)("img",{src:c(e.u,220),alt:l.photoAlt.replace("{n}",String(r+1)),loading:"lazy",decoding:"async",width:220,height:220,onError:()=>p(t=>({...t,[e.u]:!0})),className:"size-full object-cover"}),null!=e.s&&(0,t.jsxs)("span",{className:"absolute bottom-1 left-1 inline-flex items-center gap-[2px] rounded-full bg-black/55 px-1.5 py-[1px] text-[9.5px] font-extrabold text-white backdrop-blur-sm",children:[e.s,(0,t.jsx)(n.Star,{size:8,fill:"currentColor",stroke:"none"})]})]},e.u))}),(0,t.jsx)("div",{className:"mt-2 text-[11px] font-medium leading-snug text-[var(--dp-color-ink-3)]",children:l.photosNote.replace("{store}",o??"")}),b&&(0,a.createPortal)((0,t.jsxs)("div",{role:"dialog","aria-modal":"true",onClick:()=>m(null),className:"fixed inset-0 z-[120] flex items-center justify-center bg-black/85 p-4 backdrop-blur-sm",children:[(0,t.jsx)("button",{type:"button","aria-label":l.close,onClick:()=>m(null),className:"absolute right-4 top-4 grid size-10 place-items-center rounded-full bg-white/10 text-white",children:(0,t.jsx)(i.X,{size:20,strokeWidth:2.4})}),h.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-label":"â",onClick:e=>{e.stopPropagation(),m(e=>null==e?e:(e-1+h.length)%h.length)},className:"absolute left-3 grid size-10 place-items-center rounded-full bg-white/10 text-white",children:(0,t.jsx)(s.ChevronDown,{size:20,strokeWidth:2.4,className:"rotate-90"})}),(0,t.jsx)("button",{type:"button","aria-label":"â",onClick:e=>{e.stopPropagation(),m(e=>null==e?e:(e+1)%h.length)},className:"absolute right-3 grid size-10 place-items-center rounded-full bg-white/10 text-white",children:(0,t.jsx)(s.ChevronDown,{size:20,strokeWidth:2.4,className:"-rotate-90"})})]}),(0,t.jsxs)("figure",{onClick:e=>e.stopPropagation(),className:"flex max-h-full flex-col items-center gap-3",children:[(0,t.jsx)("img",{src:c(b.u,1200),alt:l.photoAlt.replace("{n}",String((u??0)+1)),className:"max-h-[78vh] w-auto rounded-[16px] object-contain"}),(0,t.jsxs)("figcaption",{className:"flex items-center gap-2 text-[12px] font-bold text-white/80",children:[null!=b.s&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[b.s,(0,t.jsx)(n.Star,{size:11,fill:"var(--dp-color-ring)",stroke:"none"})]}),b.c&&(0,t.jsx)("span",{className:"uppercase",children:b.c}),(0,t.jsxs)("span",{className:"text-white/45",children:[(u??0)+1,"/",h.length]})]})]})]}),document.body)]})}e.s(["DealReviews",0,function({reviews:e,labels:a}){let[n,i]=(0,r.useState)(!1),d=e.countLabel??(null!=e.count?String(e.count):null),[c,...u]=e.summary,m=null!=e.rating||null!=d;return(0,t.jsxs)("section",{className:"mt-6",children:[(0,t.jsx)("div",{className:"mb-3 text-[10.5px] font-extrabold uppercase tracking-[.16em] text-[var(--dp-color-primary)]",children:a.title}),(0,t.jsxs)("div",{className:"rounded-[20px] border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)] p-3.5 lg:p-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3.5 lg:flex-row lg:gap-5",children:[m&&(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-[var(--dp-color-border)] pb-3.5 lg:w-[152px] lg:flex-col lg:items-start lg:gap-1.5 lg:border-b-0 lg:border-r lg:pb-0 lg:pr-5",children:[null!=e.rating&&(0,t.jsx)("div",{className:"text-[34px] font-extrabold leading-none tracking-[-.02em] text-[var(--color-fg)] lg:text-[42px]",children:e.rating.toFixed(1).replace(".",",")}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[null!=e.rating&&(0,t.jsx)(p,{rating:e.rating}),null!=d&&(0,t.jsx)("div",{className:"text-[11.5px] font-semibold leading-snug text-[var(--dp-color-ink-3)]",children:a.average.replace("{count}",d)})]})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"mb-1.5 text-[12.5px] font-extrabold text-[var(--color-fg)]",children:a.lead}),(0,t.jsx)("p",{className:"text-[12.5px] font-medium leading-[1.65] text-[var(--color-fg-soft)]",children:c}),u.length>0&&(0,t.jsx)("div",{style:n?void 0:{maxHeight:0,overflow:"hidden"},"aria-hidden":!n,children:u.map(e=>(0,t.jsx)("p",{className:"mt-2 text-[12.5px] font-medium leading-[1.65] text-[var(--color-fg-soft)]",children:e},e.slice(0,40)))}),(e.pros.length>0||e.cons.length>0)&&(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[e.pros.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1.5",children:[(0,t.jsx)("span",{className:"dp-eyebrow w-full text-[var(--dp-color-ink-3)]",children:a.pros}),e.pros.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2.5 py-[5px] text-[11.5px] font-bold",style:{background:"var(--dp-color-success-soft)",color:"var(--dp-color-success)"},children:[(0,t.jsx)(l.Check,{size:12,strokeWidth:3,className:"shrink-0"}),e]},e))]}),e.cons.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1.5",children:[(0,t.jsx)("span",{className:"dp-eyebrow w-full text-[var(--dp-color-ink-3)]",children:a.cons}),e.cons.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2.5 py-[5px] text-[11.5px] font-bold",style:{background:"var(--dp-color-warning-soft)",color:"var(--dp-color-warning)"},children:[(0,t.jsx)(o.Minus,{size:12,strokeWidth:3,className:"shrink-0"}),e]},e))]})]}),u.length>0&&(0,t.jsxs)("button",{type:"button",onClick:()=>i(e=>!e),"aria-expanded":n,className:"press mt-3 flex w-full items-center justify-center gap-1.5 rounded-full border border-[var(--color-border-strong)] bg-[var(--color-bg-elev)] px-4 py-2.5 text-[12.5px] font-extrabold text-[var(--color-fg)] transition-colors hover:border-[var(--dp-color-primary)]/50",children:[n?a.hideAll:a.showAll,(0,t.jsx)(s.ChevronDown,{size:15,strokeWidth:2.4,className:"transition-transform",style:{transform:n?"rotate(180deg)":void 0}})]}),"ai"===e.source&&(0,t.jsx)("div",{className:"mt-2.5 text-[11px] font-medium leading-snug text-[var(--dp-color-ink-3)]",children:a.aiNote.replace("{count}",d??"").replace("{store}",e.store??"")})]})]}),(0,t.jsx)(x,{photos:e.photos,labels:a,store:e.store??null})]})]})}],910374)},298015,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(844345),l=e.i(968553),s=e.i(664659),o=e.i(475254);let n=(0,o.default)("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}
3],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]),i=(0,o.default)("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]),d=(0,o.default)("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]),c=(0,o.default)("Fan",[["path",{d:"M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z",key:"484a7f"}],["path",{d:"M12 12v.01",key:"u5ubse"}]]),p=(0,o.default)("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var x=e.i(341240);let u=(0,o.default)("MemoryStick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]);var m=e.i(951445),h=e.i(488844);let b=(0,o.default)("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);var g=e.i(581418),f=e.i(826707),v=e.i(283086);let k=(0,o.default)("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]),y=(0,o.default)("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),j=(0,o.default)("Weight",[["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}],["path",{d:"M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z",key:"56o5sh"}]]),N=(0,o.default)("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);var w=e.i(195116),S=e.i(39312);let C={display:m.Monitor,chip:i,camera:l.Camera,battery:a.BatteryCharging,memory:u,durability:g.ShieldCheck,sound:y,connectivity:N,os:f.Smartphone,size:b,light:x.Lightbulb,power:S.Zap,speed:p,weight:j,water:d,temperature:k,tool:w.Wrench,capacity:h.Package,fan:c,motor:n};e.s(["DealSpecs",0,function({specs:e,labels:a}){let[l,o]=(0,r.useState)(!1);return(0,t.jsxs)("section",{className:"mt-6",children:[(0,t.jsxs)("div",{className:"mb-3 flex flex-col gap-[3px]",children:[(0,t.jsx)("div",{className:"text-[10.5px] font-extrabold uppercase tracking-[.16em] text-[var(--dp-color-primary)]",children:a.title}),"ai"===e.source&&(0,t.jsx)("div",{className:"text-[11px] font-medium leading-snug text-[var(--dp-color-ink-3)]",children:a.aiNote})]}),e.highlights.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2 lg:grid-cols-3 lg:gap-2.5",children:e.highlights.map(e=>{let r=C[e.icon]??v.Sparkles;return(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-[18px] border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)] p-3 px-3.5",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-[10px]",style:{background:"linear-gradient(135deg, rgba(139,77,240,.16), rgba(91,33,182,.10))",color:"var(--dp-color-primary)"},children:(0,t.jsx)(r,{size:16,strokeWidth:2.1})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[1px]",children:[(0,t.jsx)("span",{className:"dp-eyebrow text-[var(--dp-color-ink-3)]",children:e.label}),(0,t.jsx)("span",{className:"text-[12.5px] font-bold leading-snug text-[var(--color-fg)]",children:e.value})]})]},e.label)})}),e.groups.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(e=>!e),"aria-expanded":l,className:"press mt-2.5 flex w-full items-center justify-center gap-1.5 rounded-full border border-[var(--color-border-strong)] bg-[var(--color-bg-elev)] px-4 py-2.5 text-[12.5px] font-extrabold text-[var(--color-fg)] transition-colors hover:border-[var(--dp-color-primary)]/50",children:[l?a.hideAll:a.showAll,(0,t.jsx)(s.ChevronDown,{size:15,strokeWidth:2.4,className:"transition-transform",style:{transform:l?"rotate(180deg)":void 0}})]}),l&&(0,t.jsx)("div",{className:"mt-2.5 overflow-hidden rounded-[20px] border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)]",children:e.groups.map((e,r)=>(0,t.jsxs)("div",{className:r>0?"border-t border-[var(--dp-color-border)]":void 0,children:[(0,t.jsx)("div",{className:"px-4 pt-3.5 text-[11px] font-extrabold uppercase tracking-[.14em] text-[var(--dp-color-primary)]",children:e.title}),(0,t.jsx)("dl",{className:"px-4 pb-3.5 pt-1.5",children:e.rows.map(([e,r])=>(0,t.jsxs)("div",{className:"grid grid-cols-[110px_1fr] gap-3 py-[5px] text-[12.5px] leading-[1.55] lg:grid-cols-[150px_1fr]",children:[(0,t.jsx)("dt",{className:"font-semibold text-[var(--dp-color-ink-3)]",children:e}),(0,t.jsx)("dd",{className:"font-medium text-[var(--color-fg-soft)]",children:r})]},e))})]},e.title))})]})]})}],298015)},970578,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(643531),l=e.i(531278),s=e.i(124535),o=e.i(95187);let n=(0,o.createServerReference)("4044ab9daa79cb50a3431b645a8deb9ae0c5b26949",o.callServer,void 0,o.findSourceMapURL,"reportOfferUnavailable");e.s(["OfferUnavailableButton",0,function({offerId:e,country:o,labels:i}){let[d,c]=(0,r.useState)("idle"),[p,x]=(0,r.useTransition)();return"idle"!==d?(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-center gap-1.5 text-[11px] font-semibold text-[var(--color-success)]",children:[(0,t.jsx)(a.Check,{size:12}),"archived"===d?i.archived:i.thanks]}):(0,t.jsxs)("button",{type:"button",disabled:p,onClick:()=>{window.confirm(i.confirm)&&x(async()=>{let t=await n({offerId:e,country:o});t.ok&&c("auto_archived"===t.status?"archived":"done")})},className:"mt-2 flex w-full items-center justify-center gap-1.5 text-[11px] text-[var(--color-fg-mute)] hover:text-[var(--color-danger)] disabled:opacity-50",children:[p?(0,t.jsx)(l.L
3oader2,{size:12,className:"animate-spin"}):(0,t.jsx)(s.PackageX,{size:12}),i.report]})}],970578)},49593,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.s(["PriceUpdatedLabel",0,function({updatedAt:e,initial:a,labels:l,className:s}){let[o,n]=(0,r.useState)(a);return(0,r.useEffect)(()=>{let t=()=>n(function(e,t,r=Date.now()){let a=Math.floor((r-new Date(e).getTime())/36e5);return a<1?t.justNow:a<24?t.hours.replace("{n}",String(a)):t.days.replace("{n}",String(Math.floor(a/24)))}(e,l,Date.now()));t();let r=setInterval(t,6e4);return()=>clearInterval(r)},[e]),(0,t.jsx)("div",{className:s,children:o})}],49593)},111509,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(38896);let l=()=>()=>{};e.s(["SellerBuyLink",0,function({goHref:e,lang:s,couponCode:o,marketplaceName:n,className:i,children:d}){let c=(0,r.useSyncExternalStore)(l,a.getOdchodSkip,()=>!1)?e:`/${s}/odchod?to=${encodeURIComponent(e)}${o?`&c=${encodeURIComponent(o)}`:""}${n?`&m=${encodeURIComponent(n)}`:""}`;return(0,t.jsx)("a",{href:c,onClick:()=>{if(o)try{navigator.clipboard?.writeText(o)}catch{}},target:"_blank",rel:"sponsored noopener",className:i,children:d})}])},332321,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(643531),l=e.i(158524),s=e.i(531278),o=e.i(263488),n=e.i(194983),i=e.i(475254);let d=(0,i.default)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);var c=e.i(514764);let p=(0,i.default)("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);var x=e.i(37727),u=e.i(710793),m=e.i(252543),h=e.i(95187);let b=(0,h.createServerReference)("406ad2246f5842e9b1912e3f567c9a4160167faf8f",h.callServer,void 0,h.findSourceMapURL,"mintShareLink");var g=e.i(480313);e.s(["ShareSheet",0,function({product:e,locale:i,labels:h,appearance:f="photo"}){let v=h??{},[k,y]=(0,r.useState)(!1),[j,N]=(0,r.useState)(null),[w,S]=(0,r.useState)(!1),[C,z]=(0,r.useState)(null);(0,r.useEffect)(()=>{if(!k||C)return;let t=!0;return b({offerId:e.id,locale:i,origin:window.location.origin}).then(e=>{t&&e.ok&&z(e.url)}),()=>{t=!1}},[k,C,e.id,i]);let M=(0,g.useDetailVariant)(),$=(M?.variants.length??0)>1?M?.selected??null:null,D=$?`?v=${encodeURIComponent($.id)}`:"",R=`${window.location.origin}/${i}/deal/${e.slug}`,L=(C??R)+D,A=$?.pricing?.finalPrice??e.price,F=($?Math.max(0,($.priceWithVat??A)-A):e.oldPrice-e.price).toFixed(2),U=$?$.pricing?.bestCouponCode??null:e.coupon??e.stackedCoupon??e.sellerDiscount??null,B=U?(v.couponAuto??". Kupón {code} sa pridá automaticky").replace("{code}",U):"",T=(v.message??"ð¥ {title} za {price}⬠(uÅ¡etrÃÅ¡ {savings}â¬){coupon} â {url}").replace("{title}",e.title).replace("{price}",A.toFixed(2)).replace("{savings}",F).replace("{coupon}",B).replace("{url}",L),I=async(e,t)=>{try{await navigator.clipboard.writeText(e),N((v.copied??"{what}
3 skopÃrovaný do schránky").replace("{what}",t)),setTimeout(()=>N(null),1800)}catch{N(v.copyFailed??"KopÃrovanie zlyhalo")}},P=async()=>{await I(L,v.linkLabel??"Link"),S(!0),setTimeout(()=>S(!1),1800)},W=[{id:"whatsapp",label:"WhatsApp",bg:"#25D366",Icon:n.MessageCircle,run:()=>window.open(`https://wa.me/?text=${encodeURIComponent(T)}`,"_blank","noopener")},{id:"messenger",label:"Messenger",bg:"#0A7CFF",Icon:n.MessageCircle,run:()=>I(T,v.messageLabel??"Správa")},{id:"telegram",label:"Telegram",bg:"#229ED9",Icon:c.Send,run:()=>window.open(`https://t.me/share/url?url=${encodeURIComponent(L)}&text=${encodeURIComponent(T)}`,"_blank","noopener")},{id:"mail",label:"E-mail",bg:"#8A8695",Icon:o.Mail,run:()=>{window.location.href=`mailto:?subject=${encodeURIComponent(e.title)}&body=${encodeURIComponent(T)}`}},{id:"more",label:v.more??"Viac",bg:"#6C2BD9",Icon:d,run:async()=>{if(navigator.share)try{await navigator.share({title:e.title,text:T,url:L});return}catch{}else await I(T,v.messageLabel??"Správa")}}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>y(!0),"aria-label":v.title??"ZdieľaÅ¥ produkt",className:`inline-flex h-9 w-9 items-center justify-center rounded-full ${"surface"===f?"bg-[var(--dp-color-surface-2)] text-[var(--dp-color-primary)]":"chrome"===f?"border border-[var(--dp-color-border)] bg-[var(--color-bg-elev)] text-[var(--dp-color-ink-2)]":"border border-[rgba(25,20,40,.1)] bg-white text-[#191721]"}`,children:(0,t.jsx)(p,{size:15,strokeWidth:2})}),k&&(0,t.jsx)(m.ModalPortal,{children:(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-end justify-center bg-[rgba(20,15,35,.5)] pb-[88px] backdrop-blur-[3px] sm:items-center sm:pb-0",onClick:()=>y(!1),children:[(0,t.jsxs)("div",{className:"w-full max-h-[85vh] overflow-auto rounded-t-3xl bg-[var(--color-bg-elev)] shadow-[0_30px_80px_rgba(20,10,40,.4)] sm:max-w-[470px] sm:rounded-[24px]",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-[var(--dp-color-border)] px-6 py-5",children:[(0,t.jsx)("div",{className:"text-[19px] font-extrabold tracking-[-.01em]",children:v.title??"ZdieľaÅ¥ produkt"}),(0,t.jsx)("button",{onClick:()=>y(!1),"aria-label":v.close??"ZavrieÅ¥",className:"flex h-9 w-9 items-center justify-center rounded-full bg-[var(--dp-color-surface-2)] text-[var(--dp-color-primary)]",children:(0,t.jsx)(x.X,{size:15,strokeWidth:2.4})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[18px] px-6 py-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"w-[52px] flex-none overflow-hidden rounded-[12px]",children:(0,t.jsx)(u.ProductImage,{kind:e.imgKind,src:$?.imageUrl??e.imageUrl,alt:e.title,height:52,radius:12})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[3px]",children:[(0,t.jsx)("div",{className:"line-clamp-2 text-[13px] font-bold leading-[1.3]",children:e.title}),(0,t.jsxs)("div",{className:"num text-[14px] font-extrabold text-[var(--dp-color-price)]",children:[A.toFixed(2)," â¬"]})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-[14px] border border-[var(--dp-color-border)] bg-[var(--dp-color-bg)] py-1.5 pl-3.5 pr-1.5",children:[(0,t.jsx)(l.Link2,{size:15,strokeWidth:2,className:"shrink-0 text-[var(--dp-color-ink-3)]"}),(0,t.jsx)("div",{className:"mono min-w-0 flex-1 truncate text-[12px] font-semibold text-[var(--dp-color-ink-2)]",children:C?L.replace(/^https?:\/\//,""):v.generating??"Generujem krátky linkâ¦"}),(0,t.jsxs)("button",{onClick:P,disabled:!C,className:"flex items-center gap-1.5 whitespace-nowrap rounded-[10px] px-4 py-[9px] text-[12.5px] font-extrabold text-white disabled:opacity-60",style:{background:"linear-gradient(135deg, #8B4DF0, #6C2BD9)"},children:[C?w?(0,t.jsx)(a.Check,{size:12,strokeWidth:2.6}):null:(0,t.jsx)(s.Loader2,{size:12,className:"animate-spin"}),w?(v.copied??"SkopÃrované").split(" ")[0]:v.copy??"KopÃrovaÅ¥"]})]}),(0,t.jsx)("div",{className:"grid grid-cols-5 gap-2",children:W.map(e=>(0,t.jsxs)("button",{onClick:e.run,className:"press flex flex-col items-center gap-[7px]",children:[(0,t.jsx)("span",{className:"flex h-[50px] w-[50px] items-center justify-center rounded-full text-white",style:{background:e.bg},children:(0,t.jsx)(e.Icon,{size:22,strokeWidth:2})}),(0,t.jsx)("span",{className:"text-[10.5px] font-bold text-[var(--dp-color-ink-2)]",children:e.label})]},e.id))})]})]}),j&&(0,t.jsx)("div",{className:"fixed bottom-24 left-1/2 z-[110] -translate-x-1/2 roun
3ded-full bg-black/85 px-3.5 py-2 text-[12px] font-semibold text-white",children:j})]})})]})}],332321)},339007,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566),l=e.i(643531),s=e.i(16715),o=e.i(95187);let n=(0,o.createServerReference)("40dacca4cbea1e270fb466c759f83603ce8bbc84c2",o.callServer,void 0,o.findSourceMapURL,"refreshStalePrice");e.s(["StalePriceNotice",0,function({slug:e,country:o,priceUpdatedAt:i,staleAfterHours:d,checkingLabel:c,updatedLabel:p}){let x=(0,a.useRouter)(),[u,m]=(0,r.useState)("hidden"),h=(0,r.useRef)(!1);return((0,r.useEffect)(()=>{if(h.current||(h.current=!0,!((Date.now()-new Date(i).getTime())/36e5>d)))return;let t=!1;return m("checking"),(async()=>{try{let r=await n({slug:e,country:o});if(t)return;r.refreshed?(x.refresh(),m("updated"),setTimeout(()=>{t||m("hidden")},4e3)):m("hidden")}catch{t||m("hidden")}})(),()=>{t=!0}},[e,o,x,i,d]),"hidden"===u)?null:(0,t.jsx)("div",{role:"status","aria-live":"polite",className:"pointer-events-none fixed inset-x-0 bottom-24 z-40 flex justify-center px-4 lg:bottom-8",children:(0,t.jsxs)("div",{className:"stale-toast-enter flex items-center gap-2 rounded-full border border-[var(--color-border-strong)] bg-[var(--color-bg-elev)] px-4 py-2.5 text-[12.5px] font-medium text-[var(--color-fg-soft)] shadow-[0_8px_28px_-6px_rgba(0,0,0,0.25)]",children:["checking"===u?(0,t.jsx)(s.RefreshCw,{size:14,className:"shrink-0 animate-spin text-[var(--color-brand-700)]"}):(0,t.jsx)(l.Check,{size:14,className:"shrink-0 text-[var(--color-success)]"}),"checking"===u?c:p]})})}],339007)},229242,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(643531),l=e.i(480313),s=e.i(980815),o=e.i(549838);let n="Sklad",i={Color:"Farba",Colour:"Farba",RAM:"Pamäť",Storage:"Ãložisko",Bundle:"Balenie",Plug:"ZástrÄka",Size:"VeľkosÅ¥",Length:"Dĺžka",Config:"Konfigurácia",[n]:"Sklad / Doprava"};e.s(["VariantPicker",0,function({labels:e}){let d=(0,l.useDetailVariant)(),c=d?.variants,p=(0,r.useMemo)(()=>(c??[]).map(e=>{let t;return{...e,props:(t=function(e){if(!Array.isArray(e))return{};let t={};for(let r of e)if(r&&"object"==typeof r)for(let[e,a]of Object.entries(r))"string"==typeof a&&(t[e]=a);return t}(e.properties),e.shipFromCountry&&(t[n]=e.shipFromCountry),t)}}),[c]),x=(0,r.useMemo)(()=>{let e=new Set;for(let t of p)for(let r of Object.keys(t.props))e.add(r);let t=[];for(let r of e){let e=Array.from(new Set(p.map(e=>e.props[r]).filter(Boolean)));e.length>1&&t.push({name:r,values:e})}return t},[p]);if(!d||p.length<=1||0===x.length)return null;let u=p.find(e=>e.id===d.selectedId)??null,m=u?.props??{},h=new Set(p.map(e=>e.sellerOfferId).filter(Boolean)).size>1;return(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-2.5",children:[x.map(r=>{var l;return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("div",{className:"dp-eyebrow text-[var(--dp-color-ink-3)]",children:(l=r.name)===n?e?.warehouse??"Sklad / Doprava":e?({Color:e.color,Colour:e.color,RAM:e.memory,Storage:e.storage,Bundle:e.bundle,Plug:e.plug,Size:e.size,Length:e.length,Config:e.config})[l]??l:i[l]??l}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:r.values.map(l=>{var i,c,x,u,h,b,g;let f,v=(i=p,c=m,x=r.name,u=l,(f=i.find(e=>{if(e.props[x]!==u)return!1;for(let[t,r]of Object.entries(c))if(t!==x&&e.props[t]!==r)return!1;return!0}))||(i.find(e=>e.props[x]===u&&"active"===e.status)??i.find(e=>e.props[x]===u)??null)),k=m[r.name]===l,y=v?.status==="out_of_stock",j=!!v&&!y,N=r.name===n,w=N?(h=l,b=v,g=e?.free??"zdarma",b?.shippingFee!=null&&b.shippingFee>0?`${h} \xb7 +${b.shippingFee.toFixed(2)}â¬`:b?.shippingFee===0?`${h} \xb7 ${g}`:h):l,S=function(e){if(!e)return null;let t=[];return e.shippingDays&&t.push(e.shippingDays),e.warehouseCode&&t.push(e.warehouseCode),t.length>0?t.join(" · "):null}(v);return(0,t.jsxs)("button",{type:"button",onClick:()=>{j&&v&&d.selectVariant(v.id)},disabled:!j,"aria-pressed":k,title:y?`${l} â ${e?.soldOut??"vypredané"}`:S??l,className:(0,o.cn)("press relative inline-flex h-9 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full border px-3.5 text-[11.5px] font-bold transition-colors",k?"border-transparent text-white":y?"cursor-not-allowed border-[var(--dp-color-border)] bg-[var(--color-bg-elev)]/40 text-[var(--dp-color-ink-3)] line-through":"border-[var(--color-border-strong)] bg-[var(--color-bg-elev)] text-[var(--color-fg)] hover:border-[var(--dp-color-primary)]/50"),style:k?{background:"linear-gradient(135deg, #8B4DF0, #5B21B6)",boxShadow:"0 4px 12px -5px rgba(108,43,217,.45)"}:void 0,children:[k&&(0,t.jsx)(a.Check,{size:12,strokeWidth:2.8,className:"-ml-0.5"}),N&&(0,t.jsx)(s.CountryFlag,{country:l,width:17}),w]},l)})})]},r.name)}),h&&u?.sellerName&&(0,t.jsxs)("div",{className:"text-[11.5px] font-semibold text-[var(--dp-color-ink-3)]",children:[e?.soldBy??"Predáva",":"," ",(0,t.jsx)("span",{className:"text-[var(--color-fg)]",children:u.sellerName})]})]})}])},663533,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(956961),l=e.i(522016),s=e.i(664659),o=e.i(531278),n=e.i(194983),i=e.i(37727),d=e.i(95187);let c=(0,d.createServerReference)("40234c56f95ceb63e8c37362b141a49fac8cc7db52",d.callServer,void 0,d.findSourceMapURL,"addComment"),p=(0,d.createServerReference)("402414f9201174f4c96e1a360fb53353d52b171530",d.callServer,void 0,d.findSourceMapURL,"deleteComment"),x=(0,d.createServerReference)("40eb684686d37576a29a9fb4cce92dd1faf947664f",d.callServer,void 0,d.findSourceMapURL,"editComment"),u=(0,d.createServerReference)("405a7edf2631aaadc985369b35f8770b87ab0f783c",d.callServer,void 0,d.findSourceMapURL,"loadMoreComments"),m=(0,d.createServerReference)("40a6dfdaafd5c845f5d2368377a7c44194c51a1da7",d.callServer,void 0,d.findSourceMapURL,"reportComment"),h=(0,d.createServerReference)("40b7123597c97c534b923a9d70c4aac99d596ab054",d.callServer,void 0,d.findSourceMapURL,"toggleCommentLike");var b=e.i(514764),g=e.i(36136),f=e.i(160425),v=e.i(81520),k=e.i(380189);function y({placeholder:e,sendLabel:a,cancelLabel:l,initialValue:s="",autoFocus:n=!1,photoLabels:i=null,avatar:d=null,onSubmit:c,onCancel:p}){let[x,u]=(0,r.useState)(s),[m,h]=(0,r.useState)([]),[j,N]=(0,r.useState)(!1),[w,S]=(0,r.useState)(!1),[C,z]=(0,r.useState)(null);async function M(e){if(!i)return;let t=Array.from(e.clipboardData?.items??[]).find(e=>"file"===e.kind&&e.type.startsWith("image/")),r=t?.getAsFile();if(r){if(e.preventDefault(),z(null),m.length>=k.MAX_COMMUNITY_PHOTOS)return void z(i.photoLimit);S(!0);try{let e=await (0,v.uploadCommunityPhoto)(r);h(t=>t.length<k.MAX_COMMUNITY_PHOTOS?[...t,e]:t)}catch(t){let e=t instanceof Error?t.message:"";z("wrong_type"===e?i.photoWrongType:"too_large"===e?i.photoTooLarge:i.photoUploadFailed)}finally{S(!1)}}}async function $(){let e=x.trim();if(e&&!j){N(!0),z(null);try{let t=await c(e,m);if(t)return void z(t);u(""),h([])}finally{N(!1)}}}let D=2e3-x.length,R=null!=d;return(0,t.jsxs)("div",{className:R?"rounded-[18px] border border-[var(--color-border)] bg-[var(--color-bg-elev)] p-4 lg:rounded-[22px]":"rounded-[14px] border border-[var(--color-border)] bg-[var(--color-bg-elev)]/60 p-2",style:R?{boxSh
3adow:"0 14px 34px rgba(25,20,40,.06)"}:void 0,children:[(0,t.jsxs)("div",{className:R?"flex items-start gap-3":"",children:[R&&(0,t.jsx)("div",{className:"flex-none pt-0.5",children:(0,t.jsx)(f.UserAvatar,{avatarUrl:d.avatarUrl,seed:d.seed,size:42})}),(0,t.jsx)("textarea",{value:x,onChange:e=>u(e.target.value),onPaste:e=>void M(e),placeholder:e,rows:2,maxLength:2e3,disabled:j,autoFocus:n,className:R?"min-h-[52px] w-full resize-none bg-transparent pt-2 text-[14px] outline-none placeholder:text-[var(--color-fg-mute)] disabled:opacity-50":"w-full resize-none rounded-[10px] border border-[var(--color-border)] bg-[var(--color-bg-elev)] px-2.5 py-2 text-[13px] outline-none focus:border-[var(--dp-color-primary)] disabled:opacity-50"})]}),i&&(0,t.jsx)("div",{className:R?"mt-1 pl-[54px]":"mt-2",children:(0,t.jsx)(g.PhotoAttach,{urls:m,onChange:h,labels:i,disabled:j})}),(0,t.jsxs)("div",{className:`flex items-center justify-between gap-2 ${R?"mt-2.5":"mt-1.5"}`,children:[(0,t.jsx)("span",{className:"min-w-0 truncate text-[10.5px] font-semibold text-[var(--color-danger)]",children:C}),(0,t.jsxs)("div",{className:"flex flex-none items-center gap-2.5",children:[(0,t.jsx)("span",{className:`num text-[11px] font-semibold ${D<100?"text-[var(--color-danger)]":"text-[var(--color-fg-mute)] opacity-70"}`,children:D}),p&&l&&(0,t.jsx)("button",{type:"button",onClick:p,disabled:j,className:"press rounded-full border border-[var(--color-border-strong)] px-3.5 py-2 text-[11.5px] font-bold text-[var(--color-fg-mute)]",children:l}),(0,t.jsxs)("button",{type:"button",onClick:()=>void $(),disabled:j||w||!x.trim(),className:`press inline-flex items-center gap-1.5 text-white disabled:opacity-40 ${R?"rounded-[13px] px-[22px] py-[11px] text-[13.5px] font-extrabold":"rounded-full px-4 py-2 text-[11.5px] font-bold"}`,style:{background:"linear-gradient(135deg, #8B4DF0, #6C2BD9)",boxShadow:R?"0 12px 26px rgba(108,43,217,.32)":void 0},children:[j||w?(0,t.jsx)(o.Loader2,{size:13,className:"animate-spin"}):(0,t.jsx)(b.Send,{size:13}),a]})]})]})]})}var j=e.i(643531),N=e.i(923426),w=e.i(589872);let S="dp-nick-nudge-dismissed";function C({currentName:e,initialNickname:a="",labels:l}){let[s,n]=(0,r.useState)(!1),[d,c]=(0,r.useState)(a),[p,x]=(0,r.useState)("idle");(0,r.useEffect)(()=>{try{"1"!==localStorage.getItem(S)&&n(!0)}catch{n(!0)}},[]);let u=async()=>{let e=d.trim();if(e&&"saving"!==p){if(x("saving"),!(await (0,w.updateCommunityProfile)({nickname:e})).ok)return void x("error");x("saved");try{localStorage.setItem(S,"1")}catch{}setTimeout(()=>n(!1),2200)}};return s?(0,t.jsx)("div",{className:"anim-rise mb-2 rounded-[14px] border border-[var(--dp-color-primary)]/25 bg-[var(--dp-color-surface-2)] px-3 py-2.5",children:"saved"===p?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[11.5px] font-bold text-[var(--dp-color-success)]",children:[(0,t.jsx)(j.Check,{size:13,strokeWidth:2.6})," ",l.saved]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(N.UserRound,{size:13,strokeWidth:2.4,className:"mt-[1px] shrink-0 text-[var(--dp-color-primary)]"}),(0,t.jsx)("p",{className:"min-w-0 flex-1 text-[11.5px] leading-snug text-[var(--dp-color-ink-2)]",children:l.text.replace("{name}",e)}),(0,t.jsx)("button",{type:"button",onClick:()=>{try{localStorage.setItem(S,"1")}catch{}n(!1)},"aria-label":l.dismiss,className:"press -mr-1 -mt-0.5 inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-[var(--dp-color-ink-3)] hover:bg-black/5",children:(0,t.jsx)(i.X,{size:12,strokeWidth:2.6})})]}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-2 pl-[21px]",children:[(0,t.jsx)("input",{value:d,onChange:e=>c(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),u())},placeholder:l.placeholder,maxLength:30,className:"h-8 w-full max-w-[220px] rounded-[10px] border border-[var(--color-border)] bg-[var(--color-bg-elev)] px-2.5 text-[12px] font-semibold outline-none focus:border-[var(--color-brand-500)]"}),(0,t.jsxs)("button",{type:"button",onClick:()=>void u(),disabled:"saving"===p||!d.trim(),className:"press inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full px-3.5 text-[11.5px] font-bold text-white disabled:opacity-50",style:{background:"linear-gradient(135deg, #8B4DF0, #6C2BD9)"},children:["saving"===p&&(0,t.jsx)(o.Loader2,{size:11,className:"animate-spin"}),l.save]})]}),"error"===p&&(0,t.jsx)("p",{className:"mt-1.5 pl-[21px] text-[10.5px] font-semibold text-[var(--color-danger)]",children:l.error})]})}):null}var z=e.i(805899),M=e.i(790597),$=e.i(788699),D=e.i(329006),R=e.i(581418),L=e.i(727612);function A({comment:e,locale:a,viewerUserId:s,viewerIsAdmin:o,signedIn:n,isReply:i=!1,labels:d,onReply:c,onEdit:p,onDelete:x,onReport:u,onLike:m}){let[h,b]=(0,r.useState)(!1),[g,v]=(0,r.useState)(!1),k=null!=s&&s===e.userId,j=e.deleted||e.hidden,N=(0,r.useMemo)(()=>{let t=new Date(e.createdAt);return t.toLocaleDateString(a,{day:"numeric",month:"short",timeZone:"Europe/Bratislava"})+" "+t.toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit",timeZone:"Europe/Bratislava"})}
3,[e.createdAt,a]),w=(0,t.jsx)(f.UserAvatar,{avatarUrl:e.avatarUrl,seed:e.avatarSeed,size:i?30:38});return(0,t.jsxs)("div",{className:"flex items-start gap-2.5 sm:gap-3",children:[(0,t.jsx)("div",{className:"flex-none pt-0.5",children:e.username&&!j?(0,t.jsx)(l.default,{href:`/${a}/u/${e.username}`,className:"press block",children:w}):w}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:`rounded-[16px] rounded-tl-[5px] border px-[14px] py-[11px] sm:px-[17px] sm:py-[13px] ${e.isAdmin&&!j?"border-[rgba(139,77,240,.25)]":"border-[var(--color-border)] bg-[var(--color-bg-elev)]"}`,style:e.isAdmin&&!j?{background:"linear-gradient(180deg, color-mix(in srgb, #8B4DF0 9%, var(--color-bg-elev)), var(--color-bg-elev))"}:void 0,children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[e.username&&!j?(0,t.jsx)(l.default,{href:`/${a}/u/${e.username}`,className:"truncate text-[13.5px] font-extrabold hover:underline sm:text-[14.5px]",children:k?d.you:e.displayName}):(0,t.jsx)("span",{className:"truncate text-[13.5px] font-extrabold sm:text-[14.5px]",children:k?d.you:e.displayName}),e.isAdmin&&!j&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2 py-[3px] text-[9.5px] font-extrabold uppercase tracking-[.05em] text-white",style:{background:"linear-gradient(135deg, #8B4DF0, #6C2BD9)"},children:[(0,t.jsx)(R.ShieldCheck,{size:10,strokeWidth:2.4}),d.admin]}),(0,t.jsx)("span",{className:"text-[11px] font-semibold text-[var(--color-fg-mute)] sm:text-[11.5px]",children:N}),e.editedAt&&!j&&(0,t.jsx)("span",{className:"text-[10.5px] italic text-[var(--color-fg-mute)]",children:d.edited})]}),(0,t.jsx)("div",{className:"mt-1.5",children:j?(0,t.jsx)("div",{className:"text-[12.5px] italic opacity-60",children:e.deleted?d.deletedPlaceholder:d.hiddenPlaceholder}):h?(0,t.jsx)(y,{placeholder:d.placeholder,sendLabel:d.save,cancelLabel:d.cancel,initialValue:e.content??"",autoFocus:!0,onSubmit:async t=>{let r=await p(e.id,t);return r||b(!1),r},onCancel:()=>b(!1)}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-[1.6] text-[var(--color-fg-soft)] sm:text-[14px]",children:e.content}),e.imageUrls.length>0&&(0,t.jsx)("div",{className:"mt-2.5 flex flex-wrap gap-2",children:e.imageUrls.map(e=>(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("img",{src:e,alt:"",loading:"lazy",className:"h-[82px] w-[110px] rounded-[12px] border border-[var(--color-border)] object-cover"})},e))})]})})]}),!j&&!h&&(0,t.jsxs)("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 pl-1 sm:gap-x-5",children:[(0,t.jsx)(F,{label:`${d.like}${e.likeCount>0?` (${e.likeCount})`:""}`,Icon:M.Heart,active:e.likedByMe,disabled:!n,onClick:()=>{n&&m(e.id)}}),n&&c&&(0,t.jsx)(F,{label:d.reply,Icon:D.Reply,onClick:()=>c(e)}),k&&(0,t.jsx)(F,{label:d.edit,Icon:$.Pencil,onClick:()=>b(!0)}),(k||o)&&(0,t.jsx)(F,{label:d.delete,Icon:L.Trash2,danger:!0,onClick:()=>{window.confirm(d.deleteConfirm)&&x(e.id)}}),!k&&(g?(0,t.jsx)("span",{className:"text-[11px] font-bold text-[var(--dp-color-success)]",children:d.reportThanks}):(0,t.jsx)(F,{label:d.report,Icon:z.Flag,onClick:()=>{window.confirm(d.reportConfirm)&&(v(!0),u(e.id))}}))]})]})]})}function F({label:e,Icon:r,danger:a=!1,active:l=!1,disabled:s=!1,onClick:o}){return(0,t.jsxs)("button",{type:"button",onClick:o,disabled:s,className:`press inline-flex items-center gap-1.5 py-1 text-[11.5px] font-bold transition-colors sm:text-[12.5px] ${a?"text-[#D64027] hover:brightness-90":l?"text-[var(--dp-color-primary)]":"text-[var(--color-fg-mute)] hover:text-[var(--dp-color-primary)]"} ${s?"cursor-default opacity-60":""}`,children:[(0,t.jsx)(r,{size:13,strokeWidth:2.2,fill:l?"currentColor":"none"}),e]})}e.s(["CommentsSection",0,function({offerId:e,locale:d,viewer:b,initialComments:g,initialCursor:f,totalCount:v,labels:k}){let[j,N]=(0,r.useState)(g),[w,S]=(0,r.useState)(f),[z,M]=(0,r.useState)(v),[$,D]=(0,r.useState)(null),[R,L]=(0,r.useState)("newest"),[F,U]=(0,r.useState)(!1),[B,T]=(0,r.useTransition)(),I=(0,a.useSession)(),P="signed-in"===b.kind?b:I.user?{kind:"signed-in",userId:I.user.id,isAdmin:I.user.isAdmin,avatarUrl:I.user.avatarUrl,avatarSeed:I.user.email,nickname:I.user.nickname,fallbackName:I.user.username??(I.user.email.split("@")[0]||"User")}:{kind:"anonymous"},W=I.user?.id??null;(0,r.useEffect)(()=>
3{if(!W||"signed-in"===b.kind)return;let t=!1;return u({offerId:e,cursor:null,sort:R}).then(e=>{!t&&e.ok&&(N(e.comments),S(e.nextCursor))}),()=>{t=!0}},[W,e,b.kind]);let E="signed-in"===P.kind,_=E?P.userId:null,O=E&&P.isAdmin,V={newest:k.sortNewest,oldest:k.sortOldest,top:k.sortTop};function Z(e){return"too_fast"===e?k.errorTooFast:"too_long"===e?k.errorTooLong:"link"===e?k.errorLink:"profanity"===e?k.errorProfanity:k.errorGeneric}async function q(t,r){let a=await c({offerId:e,content:t,parentCommentId:$?.id??null,imageUrls:r});if(!a.ok)return Z(a.error);let l=a.comment;return N(e=>l.parentCommentId?e.map(e=>e.id===l.parentCommentId?{...e,replies:[...e.replies,l]}:e):[l,...e]),M(e=>e+1),D(null),null}async function K(e,t){let r=await x({commentId:e,content:t});if(!r.ok)return Z(r.error);let a=r.comment;return N(e=>e.map(e=>e.id===a.id?{...a,likeCount:e.likeCount,likedByMe:e.likedByMe,replies:e.replies}:e.replies.some(e=>e.id===a.id)?{...e,replies:e.replies.map(e=>e.id===a.id?{...a,likeCount:e.likeCount,likedByMe:e.likedByMe}:e)}:e)),null}async function H(e){(await p(e)).ok&&(N(t=>t.map(t=>t.id===e?t.replies.length>0?{...t,content:null,deleted:!0}:null:t.replies.some(t=>t.id===e)?{...t,replies:t.replies.filter(t=>t.id!==e)}:t).filter(e=>null!==e)),M(e=>Math.max(0,e-1)))}async function X(e){await m({commentId:e})}async function G(e){let t=t=>t.id===e?{...t,likedByMe:!t.likedByMe,likeCount:Math.max(0,t.likeCount+(t.likedByMe?-1:1))}:t;N(e=>e.map(e=>({...t(e),replies:e.replies.map(t)})));let r=await h({commentId:e});if(!r.ok)return void N(e=>e.map(e=>({...t(e),replies:e.replies.map(t)})));let a=t=>t.id===e?{...t,likedByMe:r.liked,likeCount:r.likeCount}:t;N(e=>e.map(e=>({...a(e),replies:e.replies.map(a)})))}let Y=Math.max(0,z-j.reduce((e,t)=>e+1+t.replies.length,0));return(0,t.jsxs)("section",{id:"komentare",className:"mt-7 scroll-mt-20",children:[(0,t.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,t.jsx)("span",{className:"flex h-10 w-10 flex-none items-center justify-center rounded-[13px] text-white",style:{background:"linear-gradient(135deg, #8B4DF0, #6C2BD9)",boxShadow:"0 10px 22px rgba(108,43,217,.32)"},children:(0,t.jsx)(n.MessageCircle,{size:20,strokeWidth:2.2})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[1px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("h2",{className:"text-[17px] font-extrabold tracking-[-.015em] lg:text-[22px]",children:k.title}),(0,t.jsx)("span",{className:"num rounded-full bg-[var(--dp-color-surface-2)] px-[11px] py-[2px] text-[12.5px] font-extrabold text-[var(--dp-color-primary)]",children:z})]}),(0,t.jsx)("p",{className:"hidden text-[12.5px] font-bold text-[var(--dp-color-ink-3)] lg:block",children:k.subtitle})]}),(0,t.jsxs)("div",{className:"relative flex-none",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>U(e=>!e),"aria-expanded":F,className:"press inline-flex items-center gap-1.5 rounded-full bg-[var(--dp-color-bg)] px-3.5 py-2 text-[12px] font-bold text-[var(--color-fg-soft)]",children:[V[R],(0,t.jsx)(s.ChevronDown,{size:13,strokeWidth:2.6,className:`text-[var(--dp-color-primary)] transition-transform ${F?"rotate-180":""}`})]}),F&&(0,t.jsx)("div",{className:"popover-solid absolute right-0 top-[calc(100%+6px)] z-20 min-w-[150px] overflow-hidden rounded-[14px] py-1",children:Object.keys(V).map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{U(!1),r!==R&&(L(r),T(async()=>{let t=await u({offerId:e,cursor:null,sort:r});t.ok&&(N(t.comments),S(t.nextCursor))}))},className:`block w-full px-3.5 py-2 text-left text-[12.5px] font-bold transition-colors hover:bg-[var(--dp-color-surface-2)] ${r===R?"text-[var(--dp-color-primary)]":""}`,children:V[r]},r))})]})]}),E?(0,t.jsxs)("div",{className:"mb-5",children:["signed-in"===P.kind&&(P.nickname||P.fallbackName)&&(0,t.jsx)(C,{currentName:(P.nickname?.trim()||P.fallbackName)??"",initialNickname:P.nickname??"",labels:{text:k.nickNudge,placeholder:k.nickNudgePlaceholder,save:k.nickNudgeSave,saved:k.nickNudgeSaved,dismiss:k.nickNudgeDismiss,error:k.nickNudgeError}}),$&&(0,t.jsxs)("div",{className:"mb-2 flex items-start gap-2 rounded-[12px] border-l-2 border-[var(--dp-color-primary)] bg-[var(--dp-color-surface-2)] px-3 py-2 text-[11.5px]",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"truncate font-extrabold text-[var(--dp-color-primary)]",children:k.replyingTo.replace("{nick}",$.displayName)}),(0,t.jsx)("div",{className:"truncate text-[11px] text-[var(--color-fg-mute)]",children:$.content?.slice(0,80)})]}),(0,t.jsx)("button",{type:"button",onClick:()=>D(null),"aria-label":k.cancel,className:"rounded p-0.5 hover:bg-black/5",children:(0,t.jsx)(i.X,{size:12})})]}),(0,t.jsx)(y,{placeholder:k.placeholder,sendLabel:k.send,avatar:{avatarUrl:"signed-in"===P.kind?P.avatarUrl??null:null,seed:"signed-in"===P.kind?P.avatarSeed??"viewer":"viewer"},photoLabels:{addPhoto:k.addPhoto,photoTooLarge:k.photoTooLarge,photoWrongType:k.photoWrongType,photoUploadFailed:k.photoUploadFailed,photoLimit:k.photoLimit,photoRemove:k.photoRemove},onSubmit:q})]}):(0,t.jsxs)("div",{className:"mb-5 flex items-center justify-between gap-3 rounded-[18px] border border-dashed border-[var(--color-border-strong)] bg-[var(--color-bg-elev)]/60 px-4 py-3.5 text-[12.5px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 font-semibold text-[var(--color-fg-soft)]",children:[(0,t.jsx)(n.MessageCircle,{size:15,className:"text-[var(--dp-color-primary)]"}),k.loginPrompt]}),(0,t.jsx)(l.default,{href:`/${d}/login`,className:"press flex-none rounded-full px-4 py-2 text-[12px] font-extrabold text-white",style:{background:"linear-gradient(135deg, #8B4DF0, #6C2BD9)",boxShadow:"0 8px 18px rgba(108,43,217,.3)"},children:k.loginCta})]}),0===j.length?(0,t.jsx)("div",{className:"rounded-[18px] border border-[var(--color-border)] bg-[var(--color-bg-elev)]/60 px-3 py-9 text-center text-[12.5px] font-semibold text-[var(--color-fg-mute)]",children:k.emptyState}):(0,t.jsx)("div",{className:`flex flex-col gap-[18px] ${B?"opacity-60":""}`,children:j.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(A,{comment:e,locale:d,viewerUserId:_,viewerIsAdmin:O,signedIn:E,labels:k,onReply:e=>D(e),onEdit:K,onDelete:H,onReport:X,onLike:G}),e.replies.length>0&&(0,t.jsx)("div",{className:"ml-[19px] mt-3 flex flex-col gap-3 border-l-2 border-[rgba(139,77,240,.16)] pl-[11px] sm:ml-[56px] sm:pl-[14px]",children:e.replies.map(e=>(0,t.jsx)(A,{comment:e,locale:d,viewerUserId:_,viewerIsAdmin:O,signedIn:E,isReply:!0,labels:k,onReply:null,onEdit:K,onDelete:H,onReport:X,onLike:G},e.id))})]},e.id))}),w&&(0,t.jsx)("div",{className:"mt-5 flex justify-center",children:(0,t.jsxs)("button",{type:"button",onClick:function(){w&&T(async()=>{let t=await u({offerId:e,cursor:w,sort:R});t.ok&&(N(e=>{let r=new Set(e.map(e=>e.id));return[...e,...t.comments.filter(e=>!r.has(e.id))]}),S(t.nextCursor))})},disabled:B,className:"press inline-flex items-center gap-2 rounded-full border border-[var(--color-border-strong)] bg-[var(--color-bg-elev)] px-[26px] py-3 text-[13px] font-extrabold transition-colors hover:bg-[var(--dp-color-bg)] disabled:opacity-50",children:[B&&(0,t.jsx)(o.Loader2,{size:13,className:"animate-spin"}),Y>0?k.loadMoreCount.replace("{n}",String(Y)):k.loadMore]})})]})}],663533)}]);
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.