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]="3c8dec6c-ae74-14ed-e560-47032a5a23e6")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,820616,e=>{"use strict";var r=e.i(843476);e.s(["default",0,({size:e="md"})=>(0,r.jsxs)("div",{role:"status",children:[(0,r.jsxs)("svg",{"aria-hidden":"true",className:`text-primary-300 animate-spin fill-primary-400 ${"sm"===e?"w-4 h-4":"md"===e?"w-8 h-8":"w-12 h-12"}`,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,r.jsx)("span",{className:"sr-only",children:"Ladataan..."})]})])},956720,e=>{"use strict";var r=e.i(95187);let t=(0,r.createServerReference)("4085c76728787c1e13598bc7a989c038b9c4563f7d",r.callServer,void 0,r.findSourceMapURL,"fetchProductCardsForFavourites");e.s(["fetchProductCardsForFavourites",()=>t])},271526,e=>{"use strict";var r=e.i(843476),t=e.i(95187);let n=(0,t.createServerReference)("006380b2b64b0bbd72b9d446dccb226d2a6af38ce4",t.callServer,void 0,t.findSourceMapURL,"doLogout");var s=e.i(174080),i=e.i(118319);let l=({secondary:e=!0,white:t=!1})=>{let{pending:n}=(0,s.useFormStatus)();return(0,r.jsx)(i.default,{secondary:e,white:t,type:"submit",children:n?"Kirjaudutaan ulos...":"Kirjaudu ulos"})};function a({secondary:e=!0,white:t=!1}){let s=async()=>{await n()};return(0,r.jsx)("div",{className:"w-full",children:(0,r.jsx)("form",{action:s,className:"flex flex-col",children:(0,r.jsx)(l,{secondary:e,white:t})})})}e.s(["LogOutButton",()=>a],271526)},176352,e=>{"use strict";var r=e.i(843476);e.s(["default",0,({onClick:e,outline:t=!1,bgColor:n="white",dir:s="right",notButton:i})=>{let l=(0,r.jsx)("svg",{className:`size-4 md:size-6 ${"up"===s?"-rotate-90":"down"===s?"rotate-90":"left"===s?"rotate-180":"rotate-0"}`,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12.726 7.9998L12.1948 8.53105L6.19788 14.5311L5.66663 15.0623L4.60725 13.9998L5.1385 13.4686L10.6073 7.9998L5.13538 2.53105L4.60413 1.9998L5.66663 0.94043L6.19788 1.47168L12.1979 7.46855L12.7291 7.9998H12.726Z",className:`${"black"===n?"fill-white":"fill-primary-800"}`})}),a=`size-8 md:size-10 rounded-max flex justify-center items-center ${t?"border border-primary-800":""} ${"white"===n?"bg-white md:hover:bg-primary-300":"black"===n?"bg-primary-800 md:hover:bg-primary-600":"bg-primary-300"} transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-opacity-50`;return(0,r.jsx)(r.Fragment,{children:i?(0,r.jsx)("div",{className:a,onClick:e,children:l}):(0,r.jsx)("button",{className:a,onClick:e,"aria-label":`Liiku ${"up"===s?"ylös":"down"===s?"alas":"left"===s?"vasemmalle":"oikealle"}`,children:l})})}])},549620,e=>{"use strict";var r=e.i(843476),t=e.i(271645);e.s(["default",0,({show:e,duration:n=3e3,onClose:s,successMessage:i,errorMessage:l,warningMessage:a,children:c,relative:u,title:o})=>((0,t.useEffect)(()=>
2{if(e){let e=setTimeout(()=>{s()},n);return()=>clearTimeout(e)}},[e,n,s]),e&&(0,r.jsxs)("div",{className:`${u?"relative w-100":"fixed bottom-5 right-5"} p-8 md:p-5 rounded-xs z-[110] ${i?"bg-success-background text-success-text":l?"bg-error-background text-error-text border border-error-border":"bg-warning-background text-warning-text border border-warning-border"} animate-fadeInOut z-100`,children:[o&&(0,r.jsx)("span",{className:"text-inherit font-bold",children:o}),(0,r.jsx)("p",{className:`text-inherit ${o?"text-sm":""}`,children:i||l||a}),c]}))])},463748,e=>{"use strict";var r=e.i(843476),t=e.i(549620),n=e.i(271645);e.s(["default",0,({message:e})=>{let[s,i]=(0,n.useState)(!0);return(0,r.jsx)(t.default,{errorMessage:e,onClose:()=>i(!1),show:s})}])},673588,e=>{"use strict";var r=e.i(843476);e.s(["default",0,({type:e,value:t,onChange:n,tight:s=!1,placeholder:i,onBlur:l,error:a})=>(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("input",{type:e,placeholder:i,value:t,onChange:e=>{n(e.target.value)},onBlur:()=>{l&&l()},className:`w-full ${s?"py-2":"py-4"} px-3 border rounded-sm text-sm ${a?"border-error-border bg-error-background":"border-black bg-white"} focus:outline-none`}),a&&(0,r.jsx)("p",{className:"text-xs font-medium text-error-text",children:a})]})])},389463,779815,e=>{"use strict";var r=e.i(843476),t=e.i(882841),n=e.i(825233),s=e.i(670545),i=e.i(271645);let l=({onClick:e,className:t})=>{let n="fill-black origin-center transition-transform transform-gpu group-hover:fill-white";return(0,r.jsx)("button",{"arial-label":"Close",className:`group bg-white relative rounded-max size-4 md:size-4 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-opacity-50 hover:bg-black ${t}`,onClick:e,children:(0,r.jsxs)("svg",{className:"size-full absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M23.6426 23.6477C23.1777 24.1176 22.418 24.1176 21.9481 23.6477C17.9053 19.6049 16.6691 18.3663 15.4133 17.108C14.1174 15.8096 12.8006 14.4902 8.35737 10.047C7.88751 9.58211 7.89251 8.82235 8.35737 8.3525C8.82222 7.88264 9.58198 7.88264 10.0518 8.3525C14.1134 12.4141 15.3426 13.6457 16.5908 14.8963C17.8782 16.1863 19.1857 17.4964 23.6426 21.9532C24.1124 22.4181 24.1074 23.1779 23.6426 23.6477Z",className:n}),(0,r.jsx)("path",{d:"M23.6476 8.35741C24.1174 8.82227 24.1174 9.58203 23.6476 10.0519C19.6048 14.0947 18.3662 15.3309 17.1079 16.5867C15.8095 17.8826 14.4902 19.1993 10.0468 23.6426C9.58199 24.1125 8.82223 24.1075 8.35237 23.6426C7.88252 23.1778 7.88252 22.418 8.35237 21.9482C12.4139 17.8866 13.6456 16.6574 14.8962 15.4093C16.1861 14.1218 17.4962 12.8143 21.9531 8.35741C22.418 7.88756 23.1777 7.89256 23.6476 8.35741Z",className:n})]})})};var a=e.i(968673),c=e.i(374793),u=e.i(335266),o=e.i(522016),d=e.i(477425),f=e.i(590987),m=e.i(597346);let x=({lineItem:e,size:t})=>(0,r.jsx)(m.default,{src:e.featuredImage?.url||"/images/placeholders/product-placeholder.png",alt:e.featuredImage?.altText||"product image",width:t,height:t,className:"rounded-2xs aspect-square object-contain"}),h=({lineItem:e})=>{let t=e.cost.amountPerQuantity;if(!t)return null;let i=e.cost.maxAmountPerQuantity,{isDiscounted:l}=(0,s.calculatePriceAndDiscount)({price:t,compareAtPrice:i});return(0,r.jsxs)("div",{className:"flex gap-1 items-center",children:[l&&i&&(0,r.jsx)("span",{className:"text-2xs md:text-xs leading-none line-through",children:(0,n.moneyToString)(i)}),(0,r.jsx)("span",{className:"text-base font-bold text-primary-800 leading-none",children:(0,n.moneyToString)(t)}),(0,r.jsx)("span",{className:"text-2xs md:text-xs font-normal text-primary-600",children:"[alv 0%]"})]})},b=({lineItem:e})=>{let{updateCartItem:t}=(0,u.useCart)(),n=e.quantity,s=e.merchandise.product?.sales_unit||1,l=(0,a.useDebouncedCallback)(r=>{t(e.merchandise.product,r,!0,!1)},3e3);return(0,i.useEffect)(()=>()=>{l.flush()},[l]),(0,r.jsx)(c.default,{increment:s,quantity:n,onQuantityChange:r=>{t(e.merchandise.product,r,!1),l(r)},small:!0})};e.s(["QuantityPill",0,b,"default",0,({lineItem:e,closeCart:n})=>
2{let{deleteCartItem:s}=(0,u.useCart)(),i=(0,f.useGeoStore)(e=>e.originIsBlocked);if(!e)return null;let a=e.merchandise.product;if(!a)return null;let c=a?.variants[0];return(0,r.jsx)("div",{className:"flex justify-between items-center p-2 w-full gap-2 border-b border-primary-300 last:border-b-0",children:(0,r.jsxs)("div",{className:"flex items-start gap-2 w-full overflow-hidden",children:[(0,r.jsx)(o.default,{href:`/${d.PRODUCT_PATH}/${a.handle}`,onClick:n,children:(0,r.jsx)(x,{lineItem:a,size:96})}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 w-full overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.default,{href:`/${d.PRODUCT_PATH}/${a.handle}`,onClick:n,className:"font-bold text-primary-800 truncate leading-none flex-1",children:a?.title}),(0,r.jsx)(l,{onClick:()=>{s(a)}})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("span",{className:"text-2xs md:text-xs font-normal text-primary-600 leading-none",children:["Tuotekoodi:"," ",(0,t.isProductCardVariant)(c)&&c.sku]}),(0,r.jsxs)("span",{className:"text-2xs md:text-xs font-normal text-primary-600 leading-none",children:["Myyntierä: ",a?.sales_unit," kpl"]})]}),(0,r.jsxs)("div",{className:"flex justify-between w-full",children:[i&&a.block_price_from_foreign_users?null:(0,r.jsx)(h,{lineItem:e}),(0,r.jsx)(b,{lineItem:e})]})]})]})})}],389463);var v=e.i(95187);let p=(0,v.createServerReference)("002e359dc79eed5f0a7abc52927c7329f2cb778452",v.callServer,void 0,v.findSourceMapURL,"redirectToCheckout");e.s(["redirectToCheckout",()=>p],779815)},968673,e=>{"use strict";var r=e.i(271645);function t(t,n,s,i){var l=this,a=(0,r.useRef)(null),c=(0,r.useRef)(0),u=(0,r.useRef)(0),o=(0,r.useRef)(null),d=(0,r.useRef)([]),f=(0,r.useRef)(),m=(0,r.useRef)(),x=(0,r.useRef)(t),h=(0,r.useRef)(!0),b=(0,r.useRef)(),v=(0,r.useRef)();x.current=t;var p="undefined"!=typeof window,g=!n&&0!==n&&p;if("function"!=typeof t)throw TypeError("Expected a function");n=+n||0;var w=!!(s=s||{}).leading,j=!("trailing"in s)||!!s.trailing,C=!!s.flushOnExit&&j,y="maxWait"in s,N="debounceOnServer"in s&&!!s.debounceOnServer,k=y?Math.max(+s.maxWait||0,n):null,$=(0,r.useMemo)(function(){var r=function(e){var r=d.current,t=f.current;return d.current=f.current=null,c.current=e,u.current=u.current||e,m.current=x.current.apply(t,r)},t=function(e,r){g&&cancelAnimationFrame(o.current),o.current=g?requestAnimationFrame(e):setTimeout(e,r)},s=function(e){if(!h.current)return!1;var r=e-a.current;return!a.current||r>=n||r<0||y&&e-c.current>=k},$=function(e){return o.current=null,j&&d.current?r(e):(d.current=f.current=null,m.current)},L=function e(){var r=Date.now();if(w&&u.current===c.current&&z(),s(r))return $(r);if(h.current){var i=n-(r-a.current);t(e,y?Math.min(i,k-(r-c.current)):i)}},z=function(){i&&i({})},R=function(){if(p||N){var i,u=Date.now(),x=s(u);if(d.current=[].slice.call(arguments),f.current=l,a.current=u,C&&!b.current&&(b.current=function(){var r;"hidden"===(null==(r=e.g.document)?void 0:r.visibilityState)&&v.current.flush()},null==(i=e.g.document)||null==i.addEventListener||i.addEventListener("visibilitychange",b.current)),x){if(!o.current&&h.current)return c.current=a.current,t(L,n),w?r(a.current):m.current;if(y)return t(L,n),r(a.current)}return o.current||t(L,n),m.current}};return R.cancel=function(){var e=o.current;e&&(g?cancelAnimationFrame(o.current):clearTimeout(o.current)),c.current=0,d.current=a.current=f.current=o.current=null,e&&i&&i({})},R.isPending=function(){return!!o.current},R.flush=function(){return o.current?$(Date.now()):m.current},R},[w,y,n,k,j,C,g,p,N,i]);return v.current=$,(0,r.useEffect)(function(){return h.current=!0,function(){var r;C&&v.current.flush(),b.current&&(null==(r=e.g.document)||null==r.removeEventListener||r.removeEventListener("visibilitychange",b.current),b.current=null),h.current=!1}},[C]),$}e.s(["useDebouncedCallback",()=>t])},522206,e=>{"use strict";var r=e.i(843476);e.s(["default",0,({onClick:e,bgColor:t,small:n=!1,large:s=!1})=>{let i=`${"black"===t?"fill-white":"fill-primary-800"} origin-center transition-transform transform-gpu`;return(0,r.jsx)("button",{"arial-label":"Close",className:`group ${"white"===t?"bg-white":"black"===t?"bg-primary-800":"bg-primary-300"} relative rounded-max ${n?"size-4 md:size-4":s?"size-8 md:size-10":"size-6 md:size-8"} focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-opacity-50`,onClick:e,children:(0,r.jsxs)("svg",{className:"size-full absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M23.6426 23.6477C23.1777 24.1176 22.418 24.1176 21.9481 23.6477C17.9053 19.6049 16.6691 18.3663 15.4133 17.108C14.1174 15.8096 12.8006 14.4902 8.35737 10.047C7.88751 9.58211 7.89251 8.82235 8.35737 8.3525C8.82222 7.88264 9.58198 7.88264 10.0518 8.3525C14.1134 12.4141 15.3426 13.6457 16.5908 14.8963C17.8782 16.1863 19.1857 17.4964 23.6426 21.9532C24.1124 22.4181 24.1074 23.1779 23.6426 23.6477Z",className:`${i} group-hover:-rotate-45`}),(0,r.jsx)("path",{d:"M23.6476 8.35741C24.1174 8.82227 24.1174 9.58203 23.6476 10.0519C19.6048 14.0947 18.3662 15.3309 17.10
279 16.5867C15.8095 17.8826 14.4902 19.1993 10.0468 23.6426C9.58199 24.1125 8.82223 24.1075 8.35237 23.6426C7.88252 23.1778 7.88252 22.418 8.35237 21.9482C12.4139 17.8866 13.6456 16.6574 14.8962 15.4093C16.1861 14.1218 17.4962 12.8143 21.9531 8.35741C22.418 7.88756 23.1777 7.89256 23.6476 8.35741Z",className:`${i} group-hover:rotate-45`})]})})}])},881384,e=>{"use strict";var r=e.i(843476),t=e.i(522206);e.s(["default",0,({children:e,isOpen:n,title:s,onClose:i})=>{let l=`fixed bottom-0 left-0 md:left-auto md:right-0 md:inset-y-0 w-full md:max-w-md max-h-[85vh] md:max-h-none bg-white z-100 rounded-t-xl md:rounded-none overflow-y-auto custom-scrollbar ${n?"transition duration-300 ease-in-out transform translate-y-0 md:translate-x-0":"translate-y-full md:translate-y-0 md:translate-x-full"}`;return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)("div",{className:"fixed inset-0 bg-primary-600 bg-opacity-30 z-100",onClick:i}),(0,r.jsxs)("div",{className:l,children:[s&&(0,r.jsxs)("div",{className:"h-full flex flex-col justify-start",children:[(0,r.jsxs)("div",{className:"flex justify-between items-center py-6 px-6 border-b border-primary-300",children:[(0,r.jsx)("h3",{className:"text-xl font-bold leading-none mt-2",children:s}),(0,r.jsx)("div",{className:"flex justify-center items-center",children:(0,r.jsx)(t.default,{onClick:i})})]}),e]}),!s&&(0,r.jsxs)("div",{className:"h-full flex flex-col justify-between pt-6",children:[(0,r.jsx)("div",{className:"flex justify-end absolute right-0 mr-6",children:(0,r.jsx)(t.default,{onClick:i})}),e]})]})]})}])},374793,e=>{"use strict";var r=e.i(843476),t=e.i(41646);e.s(["default",0,({increment:e,quantity:n,onQuantityChange:s,small:i,disabled:l,disabledTooltip:a,allowZeroQuantity:c=!1})=>(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsxs)("div",{className:`flex ${i?"w-24":"min-w-32 w-full"} items-center justify-between rounded-max text-nowrap border ${i?"py-1 px-[0.125rem]":"py-3 px-2"} border-primary-300 ${l?"opacity-50 cursor-not-allowed":"hover:border-black"} leading-none`,children:[(0,r.jsx)("button",{"aria-label":"Vähennä määrää",className:`text-black ${c?n<=0?"opacity-50 cursor-not-allowed":"":n<=e?"opacity-50 cursor-not-allowed":""}`,onClick:()=>{if(!l){if(c)return void s(Math.max(0,n-e));n>e&&s(n-e)}},disabled:l||(c?n<=0:n<=e),children:(0,r.jsx)("svg",{className:"size-5 md:size-6",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M17.7999 12.4923H17.1538H7.2461H6.59995V11.2H7.2461H17.1538H17.7999V12.4923Z",fill:"black"})})}),(0,r.jsx)("span",{className:`${i?"text-sm":"text-base"} font-bold`,children:n}),(0,r.jsx)("button",{"aria-label":"Lisää määrää",className:"text-black",onClick:()=>{s(n+e)},disabled:l,children:(0,r.jsx)("svg",{className:"size-5 md:size-6",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M12.8461 7.04615V6.39999H11.5538V7.04615V11.3538H7.2461H6.59995V12.6461H7.2461H11.5538V16.9538V17.6H12.8461V16.9538V12.6461H17.1538H17.7999V11.3538H17.1538H12.8461V7.04615Z",fill:"black"})})})]}),l&&a&&(0,r.jsx)(t.default,{text:a})]})])},882841,e=>{"use strict";function r(e){return void 0!==e.sku}function t(e){return void 0!==e.additional_products}e.s(["isProduct",()=>t,"isProductCardVariant",()=>r])}]); 3 4//# debugId=3c8dec6c-ae74-14ed-e560-47032a5a23e6
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.