1"use strict";(globalThis["__LOADABLE_LOADED_CHUNKS__"]||=[]).push([[9196],{65374(e,t,i){i.r(t),i.d(t,{default:()=>$});var o=i(14181),n=i(14218),a=i(96540),s=i(71468),l=i(86532),c=i(6596),r=i(65760),d=i(77716),u=i(14574),p=i(8695),h=i(26960),m=i(51674),b=i(51223),k=i(28911),x=i(17277),f=i(2353),g=i(74848);const v=({className:e,title:t})=>(0,g.jsxs)("div",{className:e,children:[(0,g.jsx)(n.EY.H2,{children:t}),(0,g.jsx)("div",{className:"actions__product-list-share-buttons",children:(0,g.jsx)(f.A,{name:"Verkkokauppa.com - Katso tuotteet!",title:"Product List"})})]});v.displayName="Title";const y=(0,c["default"])(v).withConfig({componentId:"sc-mmdudb-0"})({alignItems:"center",background:o.color.background.secondary,boxShadow:`0 1px 0 ${o.color.fundaments.blackOpacities[100]}`,display:"flex",flexDirection:"column",gap:o.space.XS,paddingBlock:o.space.XS,justifyContent:"space-between",[x.breakpoint.min.S]:{flexDirection:"row"}}),w=(0,d.A)({resolved:{},chunkName:()=>"product-list",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&(1?!!i.m[t]:void 0)},importAsync:()=>Promise.all([i.e(4323),i.e(1121)]).then(i.bind(i,89969)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then(e=>(this.resolved[t]=!0,e))},requireSync(e){const t=this.resolve(e);if(1)return i(t)},resolve(){if(1)return 89969}}),C=(0,u.Du)([u.P5[612]]),j=c["default"].section.withConfig({componentId:"sc-pai4e7-0"})({backgroundColor:o.color.background.secondary,boxShadow:`0 0 1px ${o.color.fundaments.blackOpacities[600]}`}),S=()=>{const e=(0,l.zy)(),{placement:t,productList:i="",listTypeIndex:o}=(0,l.g)(),c=Number.parseInt(o||"0",10),d=(0,p.Jf)(c),u=(0,p.VP)(i),x=(0,s.d4)((0,m.kw)(u)),f=(0,a.useMemo)(()=>x.map(({imageUrl:e})=>C(e)?.imgSrc).filter(Boolean).slice(0,8).filter(h.R),[x]),v=1===x.length?"1 tuote":`${x.length} tuotetta`;if(u.length>100){const t=u.slice(0,100).join(","),o=e.pathname.replace(i,t);return(0,g.jsx)(l.C5,{to:o,replace:!0})}return(0,g.jsxs)(k.A,{pids:u,type:t?"home":"generic",variant:"standard",main:!0,children:[(0,g.jsx)(b.A.NoIndex,{description:"Verkkokauppa.com - todennäköisesti aina halvempi!",socialImages:f,socialTitle:"Katso tuotteet!",socialType:"product.group",socialUrl:`https://${r.A.host}${e.pathname}`,title:"Tuotelistaus"}),(0,g.jsx)(j,{children:(0,g.jsxs)(n.aP,{css:{gap:{md:"m"}},children:[(0,g.jsx)(n.mc,{size:"l",children:(0,g.jsx)(y,{title:v})}),(0,g.jsx)(w,{initialListType:d,productList:i,hideListType:!0})]})})]})},$=(0,a.memo)(S)},2353(e,t,i){i.d(t,{A:()=>$});var o=i(61311),n=i(85663),a=i(17277),s=i(90377),l=i(14181),c=i(14218),r=i(96540),d=i(71468),u=i(86532),p=i(6596),h=i(65760),m=i(66683);const b=(e,t,i)=>{const o=`https://${h.A.host}${i}`,n=encodeURIComponent(t),a=encodeURIComponent(e),s=encodeURIComponent(o);return(0,r.useMemo)(()=>({url:o,facebook:{accessibleText:"Jaa palvelussa Facebook. (Ulkoinen palvelu) (Avautuu uuteen välilehteen)",icon:{iconName:"FaFacebookSquare",iconColor:"#365899"},href:`${m.tE}${s}&title=${a}&description=${n}`,name:"Facebook",target:"_blank",title:e},linkedin:{accessibleText:"Jaa palvelussa LinkedIn. (Ulkoinen palvelu) (Avautuu uuteen välilehteen)",icon:{iconName:"FaLinkedin",iconColor:"#0274b3"},href:`${m.QY}${s}&summary=${n}&title=${a}`,name:"LinkedIn",target:"_blank",title:e},whatsapp:{accessibleText:"Jaa palvelussa WhatsApp. (Ulkoinen palvelu) (Avautuu sovellukseen)",icon:{iconName:"FaWhatsappSquare",iconColor:"#29b23d"},href:`${m.Wd}${s}`,name:"WhatsApp",target:"_top","data-action":"share/whatsapp/share",title:e},twitter:{accessibleText:"Jaa palvelussa X. (Ulkoinen palvelu) (Avautuu uuteen välilehteen)",icon:{iconName:"FaSquareXTwitter",iconColor:"#000000"},href:`${m.M3}${a}%0A${s}`,name:"Twitter",target:"_blank",title:e},email:{accessibleText:"Jaa sähköpostitse. (Ulkoinen palvelu) (Avautuu sovellukseen)",icon:{iconName:"FaEnvelopeSquareSolid",iconColor:l.color.text.link},href:`mailto:?subject=${a}&body=${n}%0A%0A${s}%0A`,name:"E-mail",target:"_top",title:e}}),[n,a,s,e,o])};var k=i(82947),x=i(74848);
1const f=({accessibleText:e,className:t,title:i,name:o,icon:n,socialTitle:a,...s})=>{const l=(0,d.wA)(),u=(0,r.useCallback)(()=>l((0,k.X8)({socialService:o,socialTitle:a})),[o,a,l]);return(0,x.jsxs)("a",{...s,className:t,onMouseDown:u,children:[e&&(0,x.jsx)(c.s6,{children:e}),(0,x.jsx)(c.In,{iconName:n.iconName,size:"sm",style:{color:n.iconColor}})]})};f.displayName="ShareButton";const g=(0,p["default"])(f).withConfig({componentId:"sc-woclgh-0"})({...s.Y$,display:"flex",justifyContent:"center",alignItems:"center",width:l.size.M,height:l.size.M,lineHeight:l.font.lineHeight.none,position:"relative","&:hover":{backgroundColor:l.color.background.secondary},[a.breakpoint.min.S]:{height:l.size.L}}),v=p["default"].input.withConfig({componentId:"sc-14fhipk-0"})({...s.resetInputStyle,border:0,backgroundColor:"inherit",zIndex:3,cursor:"pointer",width:"inherit"}),y=p["default"].span.attrs(({showCopyLink:e})=>({as:e?"a":"label"})).withConfig({componentId:"sc-14fhipk-1"})({...s.textStyle.ui.medium,boxSizing:"content-box",display:"flex",overflow:"hidden",alignItems:"center",justifyContent:"space-between",padding:`0 ${l.space.XXS}`,flex:1,width:"100%",backgroundColor:"inherit"},({showCopyLink:e})=>({[v]:{position:e?"absolute":"initial",opacity:e?.001:1,visibility:e?"hidden":void 0}})),w=p["default"].span.withConfig({componentId:"sc-14fhipk-2"})({width:"100%",display:"flex",alignItems:"center",gap:l.space.XXXS}),C=(0,p["default"])(c.az).withConfig({componentId:"sc-14fhipk-3"})({boxSizing:"border-box",display:"flex",alignItems:"stretch",justifyContent:"space-between",padding:0,width:"100%",[g]:{":last-of-type":{borderRadius:`0 ${l.border.radius.XXS} ${l.border.radius.XXS} 0`},[a.breakpoint.min.S]:{":last-of-type":{borderRadius:0}}},[y]:{textDecoration:"none",borderRadius:`${l.border.radius.XXS} 0 0 ${l.border.radius.XXS}`,":hover":{backgroundColor:l.color.background.secondary,textDecoration:"none"},...s.Y$}}),j=(0,n.boxRecipe)({padding:"none"}),S=({className:e,name:t,title:i,description:n="",path:a})=>{const[s,l]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),f=(0,d.wA)(),S=(0,u.zy)(),$=(0,r.useRef)(null),I=(0,r.useRef)(0),T=i??t;(0,r.useEffect)(()=>(h(!0),()=>{clearTimeout(I.current)}),[]);const A=(0,r.useCallback)(({target:e})=>{e.setSelectionRange(0,e.value.length)},[]),N=(0,r.useCallback)(e=>{if(e.preventDefault(),$.current)return window.clearTimeout(I.current),l(!0),(0,m.lW)($.current).then(()=>{I.current=window.setTimeout(()=>l(!1),2500),f((0,k.X8)({socialService:"Link",socialTitle:T}))}).catch(()=>l(!1))},[T,f]),{url:X,facebook:L,whatsapp:z,twitter:_,linkedin:R,email:D}=b(t,n,a??S.pathname);return(0,x.jsxs)("aside",{className:(0,o.cx)(j,e),children:[(0,x.jsx)(c.s6,{as:"h2",children:"Jakolinkit"}),(0,x.jsxs)(C,{children:[(0,x.jsxs)(y,{"aria-label":"Kopioi lyhyt linkki",href:X,name:t,showCopyLink:p,onClick:N,children:[(0,x.jsx)(v,{ref:$,name:t,type:"text",value:X,readOnly:!0,onFocus:A}),p&&(0,x.jsxs)(w,{children:[(0,x.jsx)(c.In,{iconName:s?"FaCheck":"FaCopy",isInline:!0,size:"xs"}),(0,x.jsx)("span",{children:s?"Kopioitu":"Kopioi linkki"})]})]}),(0,x.jsx)(g,{...L,socialTitle:T}),(0,x.jsx)(g,{...z,socialTitle:T}),(0,x.jsx)(g,{..._,socialTitle:T}),(0,x.jsx)(g,{...R,socialTitle:T}),(0,x.jsx)(g,{...D,socialTitle:T})]})]})};S.displayName="SocialShare";const $=(0,p["default"])(S).withConfig({componentId:"sc-14fhipk-4"})({boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"space-around",alignItems:"center",position:"relative"})}}]); 2//# sourceMappingURL=/assets/maps/9196.2e185a2844.js.map
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.