PageSourceSearch

https://www.verkkokauppa.com/assets/build/6169.6b97ccfa5a.js

js verkkokauppa.com collected 2026-10-01 10:14:54 UTC 26,460 bytes, 2 lines download raw bytes

1"use strict";(globalThis["__LOADABLE_LOADED_CHUNKS__"]||=[]).push([[6169],{74609(e,t,i){var a=i(49937),n=i(14181),s=i(4400),r=i(14218),o=i(96540),c=i(6596),l=i(64779),d=i(74848);const p=(0,a.styled)(l.Ay,{base:{display:"flex",textAlign:"center",justifyContent:"center",color:"inherit"}}),m=(0,o.forwardRef)(({className:e,linkText:t,linkProps:i,showArrow:a=!1},n)=>(0,d.jsx)("div",{ref:n,className:e,role:"alert",children:(0,d.jsxs)(p,{...i,children:[(0,d.jsx)(r.EY.UI,{size:"large",weight:"semiBold",children:t}),a&&(0,d.jsx)(r.In,{iconName:"FaArrowRightSolid"})]})}));m.displayName="RibbonBanner";const h=(0,s.variant)({new:{backgroundColor:n.Z8.new,color:n.color.text.primary},secondary:{backgroundColor:n.Z8.secondary,color:n.color.text.primary},sale:{backgroundColor:n.Z8.sale,color:n.color.text.primary},black:{backgroundColor:n.Z8.black,color:n.color.text.inverted.primary},primary:{backgroundColor:n.Z8.primary,color:n.color.text.inverted.primary},brand:{backgroundColor:n.Z8.brand,color:n.color.text.inverted.primary},warning:{backgroundColor:n.Z8.warning,color:n.color.text.inverted.primary}},{defaultVariant:"primary",propName:"color"}),u=(0,c["default"])(m).withConfig({componentId:"sc-ree2zp-0"})({lineHeight:"1.5rem",transition:"none",padding:n.space.XXS,"[data-icon]":{flexShrink:0,fontSize:n.font.size.M,marginLeft:n.space.XXXS,marginRight:n.space.XXXS}},h);i.d(t,["A",0,u])},30789(e,t,i){i.r(t),i.d(t,{default:()=>pt});var a=i(17277),n=i(90377),s=i(14181),r=i(14218),o=i(71468),c=i(86532),l=i(6596),d=i(64779),p=i(74609),m=i(69442),h=i(55567),u=i(97809),x=i(96114),g=i(81267),j=i(5032),f=i(17644),y=i(41366),k=i(94410),v=i(77139),A=i(92790),E=i(28911),S=i(34999),I=i(61311),C=i(96540),w=i(60595),b=i(51223),N=i(74848);const q=({className:e})=>{const t=(0,h.A)(),i=(0,c.zy)(),a=(0,c.Zp)(),{buildPathWithLanguage:n}=(0,u.A)(),s=(0,o.d4)(v.ZK),l=j.q8.acceptQuote.matchPath(i.pathname)?.params.tid?.toString(),d=j.q8.acceptQuote.matchPath(i.pathname)?.params.ca?.toString(),p=j.q8.acceptQuote.matchPath(i.pathname)?.params.product?.toString();(0,C.useEffect)(()=>{if(!l||!d)return a(n(j.q8.search),{replace:!0});t(k.fo.started({tid:l,imei:"",serial:"",creditAccountCode:d,product:p}))},[t]);const m=(e=>{if(0!==Object.keys(e).length)return e.domain?.invalid_tid?"Tunniste on liian vanha":e.client?.address?"Osoitteen lähetys ei onnistunut":"Tuntematon virhe"})(s);return(0,N.jsxs)("div",{className:e,children:[(0,N.jsx)(b.A.NoCache,{title:"Vaihtokauppa | Vahvistetaan vaihtokauppaa"}),Object.keys(s).length?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(r.EY.H1,{css:{alignSelf:"center"},children:"Vaihtokaupan vahvistaminen epäonnistui"}),(0,N.jsx)(r.Eg,{appearance:"alert",children:(0,N.jsx)(r.Eg.Paragraph,{children:m})}),(0,N.jsx)(w.A,{appearance:"secondary",className:(0,I.css)({alignSelf:"center"}),slug:n(j.q8.search),children:"Yritä uudestaan"})]}):(0,N.jsx)(r.EY.H1,{css:{alignSelf:"center"},children:"Vahvistetaan Vaihtokauppaa..."})]})};q.displayName="AcceptQuote";const P=(0,l["default"])(q).withConfig({componentId:"sc-73w5cj-0"})({display:"flex",flexDirection:"column","> *":{marginBottom:s.space.M}});var T=i(49937),_=i(163),X=i(32355),L=i(53635),z=i(69252),Y=i(82947),U=i(51585),V=i(77168),D=i(1575),R=i(49785),B=i(24842),$=i(51176),H=(i(35492),i(26960)),O=i(44964),Z=i(57975);const F=({onValidChange:e,className:t})=>{const[i,a]=(0,C.useState)($.ws.Existing),{t:n}=(0,B.A)("common"),s=(0,$.Uj)((0,$.gS)(n)),r=(0,o.d4)((0,y.nc)({page:9999,type:"shipping"})),c=(0,R.mN)({resolver:(0,D.t)(s),mode:"onChange",defaultValues:{},context:{noAddresses:[$.ws.ExistingAddingNew,$.ws.NotExisting].includes(i)}});(0,C.useEffect)(()=>{e?.(c.formState.isValid)},[e,c.formState.isValid]);const l=(0,C.useCallback)(e=>{alert(JSON.stringify(e))},[]),d=c.watch();return(0,C.useEffect)(()=>{if(c.formState.isValid)if((0,H.zz)(d.addressId)){const e=r.find(({id:e})=>e.toString()===d.addressId?.toString());e&&(0,O.pj)(e)}else d.city&&d.postCode&&d.streetAddress&&(0,O.pj)({postCode:d.postCode,city:d.city,streetAddressLine1:d.streetAddress});else(0,O.pm)()},[d,c.formState.isValid,r]),(0,N.jsx)("form",{className:t,id:"postal",onSubmit:c.handleSubmit(l),children:(0,N.jsx)(Z.A,{formContext:c,onAddressStateChange:a})})};F.displayName="AddressForm";const K=(0,l["default"])(F).withConfig({componentId:"sc-1w7u2kl-0"})({"> *:not(:first-child)":{marginTop:s.space.XS}});var M=i(94152);const Q=(0,T.styled)(d.Ay,{base:{display:"inline-flex"}}),W=(0,T.styled)(r.Sc,{base:{marginBottom:"2xs"}}),J=(0,T.styled)(w.A,{base:{alignSelf:"center",marginTop:"xs"}}),G=(0,T.styled)(r.JU,{base:{display:"flex",gap:"3xs"}}),ee=["compensationEstimate_instructionsTitle","compensationEstimate_instructions","compensationEstimate_instructions_creditAccount","compensationEstimate_addressSelect_title","compensationEstimate_addressSelect_description","compensationEstimate_smallPrint","termsUrl","deviceClearingInstructionsUrl"],te=({className:e})=>{const{buildPathWithLanguage:t}=(0,u.A)(),[i,a]=(0,C.useState)(!1),[n,s]=(0,C.useState)(!1),[l,d]=(0,C.useState)(!1),p=(0,o.d4)(v.S4),m=(0,o.d4)(v.Mn),y=(0,o.d4)(v.Ng),A=(0,o.d4)(f.dc),E=(0,o.d4)(U.J0),S=(0,o.d4)(v.Rk),[{c
1ompensationEstimate_instructionsTitle:w,compensationEstimate_instructions:q,compensationEstimate_instructions_creditAccount:P,compensationEstimate_addressSelect_title:T,compensationEstimate_addressSelect_description:D,compensationEstimate_smallPrint:R,termsUrl:B,deviceClearingInstructionsUrl:$}]=(0,x.A)(ee),H=(0,o.d4)(v.m9),O=(0,o.d4)(v.Dy)?.answers,{data:Z}=(0,L.A)(),{openOpenAccountDrawer:F}=(0,X.A)(),te=(0,c.zy)(),ie=(0,c.Zp)(),ae=j.q8.compensationEstimate.matchPath(te.pathname)?.params.pid?.toString(),ne=j.q8.compensationEstimate.matchPath(te.pathname)?.params.answers?.toString(),se=j.q8.compensationEstimate.matchPath(te.pathname)?.params.product?.toString(),re=(0,o.d4)((0,v.qk)(se?(0,g.YR)(se):void 0)),oe=(0,h.A)(),ce=(0,C.useCallback)(()=>{a(!i)},[i]),le=(0,C.useCallback)(()=>{s(!n)},[n]),de=(0,C.useCallback)(e=>{d(e)},[]),pe=(0,C.useCallback)(()=>{void 0!==y&&oe((0,Y.bn)({price:y,newCreditAccount:!1}))},[oe,y]),me=(0,C.useCallback)(()=>{void 0!==y&&oe((0,Y.bn)({price:y,newCreditAccount:!0})),F({origin:z.fh.TradeIn,applicationStartedFrom:{type:"trade-in",url:window.location.toString(),price:H?.price.toString(),pid:ae?(0,g.YR)(ae):void 0,product:se,tid:m,deviceName:H?.title,campaignRebate:re?.rebateValueInCents?(re?.rebateValueInCents/100).toString():void 0}})},[re?.rebateValueInCents,H?.price,H?.title,oe,F,ae,y,se,m]);if((0,C.useEffect)(()=>{if(!ae||!ne)return ie(t(j.q8.search),{replace:!0});oe((0,k.pL)({pid:ae,answers:ne}))},[]),!ae||!ne)return null;const he=!("closedTemporarily"===Z?.state)&&!E&&void 0!==y&&m&&!S&&!O,ue=i&&n&&l,xe=Z?P:q;return(0,N.jsxs)("div",{className:e,children:[(0,N.jsx)(b.A.NoCache,{title:"Vaihtokauppa | Hyvitysarvio"}),p?(0,N.jsx)(r.y$,{className:(0,I.css)({alignSelf:"center"}),size:"xl"}):(0,N.jsx)(M.A,{newProductPid:(0,g.YR)(se),view:"compensationEstimate"}),O&&(0,N.jsx)(r.Eg,{appearance:"danger",children:(0,N.jsx)(r.Eg.Title,{children:"Tapahtui odottamaton virhe"})}),he?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(r.EY.H2,{size:"m",children:w}),(0,N.jsx)(r.EY.OL,{css:{padding:"none"},children:xe?.split("\n").map(e=>(0,N.jsx)("li",{children:e},e))}),A?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(r.EY.H2,{size:"m",children:T}),(0,N.jsx)(r.EY.UI,{size:"small",children:D}),(0,N.jsx)(V.A,{}),(0,N.jsx)(K,{onValidChange:de}),(0,N.jsxs)("div",{children:[(0,N.jsxs)(G,{htmlFor:"terms-agreed",children:[(0,N.jsx)(W,{checked:i,id:"terms-agreed",required:!0,onChange:ce}),(0,N.jsxs)(r.EY.UI,{children:["Hyväksyn hyvitysarvion ja palvelun"," ",(0,N.jsx)(Q,{href:B,openInNewTab:!0,children:"sopimusehdot."}),(0,N.jsx)(r.Tr,{})]})]}),(0,N.jsxs)(G,{htmlFor:"clean-device",children:[(0,N.jsx)(W,{checked:n,id:"clean-device",required:!0,onChange:le}),(0,N.jsxs)(r.EY.UI,{children:["Poistan laitteen käytöstä paikantamissovelluksessa ja tyhjennän laitteen."," ",(0,N.jsx)(Q,{href:$,openInNewTab:!0,children:"Lue lisää"}),(0,N.jsx)(r.Tr,{})]})]})]}),R?.split("\n").map((e,t)=>(0,N.jsx)(r.EY.UI,{appearance:"secondary",size:"small",children:e},t)),Z?(0,N.jsx)(J,{disabled:!ue,size:"L",slug:t(j.q8.acceptQuote,{tid:m,ca:"old",product:se}),onClick:pe,children:"Myy laite"}):(0,N.jsx)(_.A,{disabled:!ue,size:"L",onClick:me,children:"Hae Tiliä ja myy laite"})]}):(0,N.jsx)(J,{size:"L",slug:`${t(j.Om.main)}?next=${t(j.q8.compensationEstimate,{pid:ae,answers:ne,product:se})}`,children:"Myy laite kirjautumalla tai luomalla asiakkuus"})]}):(0,N.jsx)(N.Fragment,{children:S?(0,N.jsx)(J,{size:"L",slug:t(j.q8.conditionInspection,{pid:ae,product:se}),children:"Palaa kuntoarvioon"}):(0,N.jsx)(J,{size:"L",slug:t(j.Cg),children:"Siirry etusivulle"})})]})};te.displayName="CompensationEstimate";const ie=(0,l["default"])(te).withConfig({componentId:"sc-1ros4e2-0"})({display:"flex",flexDirection:"column","&& > *":{marginBottom:s.space.XS},[K]:{marginBottom:s.space.S}});var ae=i(48945),ne=i(25164),se=i(48082);const re=l["default"].div.withConfig({componentId:"sc-xoelhj-0"})({width:"100%"}),oe=l["default"].div.withConfig({componentId:"sc-xoelhj-1"})({display:"flex",justifyContent:"center",margin:`${s.space.XS} 0`,"& .stm-radio__root":{margin:`0 ${s.space.XXS}`}}),ce=(e,t)=>e.replace(t,""),le=({question:{uid:e,question:t,questionBody:i,answers:a},className:n})=>{const s=(0,o.d4)((0,v.J8)(e)),c=(0,h.A)(),l=(0,C.useCallback)(t=>()=>{c((0,k.JY)({questionUid:e,answerUid:t}))},[c,e]),d=(0,C.useCallback)(e=>{e&&"scrollIntoView"in e&&e.scrollIntoView({behavior:"smooth",block:"center"})},[]),p=a.map(i=>(0,N.jsx)(r.sx,{defaultChecked:s===i.uid,id:i.uid,label:ce(i.title,e),name:t,onChange:l(i.uid)},i.uid));return(0,N.jsxs)(r.az,{ref:d,appearance:"info",className:n,radius:"XS",children:[(0,N.jsx)(r.EY.UI,{children:t}),(0,N.jsx)(oe,{children:p}),(0,N.jsxs)(re,{children:[(0,N.jsx)(r.EY.UI,{children:i.prompt}),(0,N.jsx)(r.EY.UL,{css:{listStyleType:"none",padding:"none",marginTop:"2xs"},size:"small",children:i.criteria.map(e=>(0,N.jsx)("li",{children:e},e))})]})]},e)};le.displayName="Question";const de=(0,l["default"])(le).withConfig({componentId:"sc-xoelhj-2"})({display:"flex",flexDirection:"column",alignItems:"center",margin:`${s.space.XS} 0`}),pe=(0,l["default"])(w.A).withConfig({componentId:"sc-du3f3u-0"})({alignSelf:"center",marginBottom:"xs",marginTop:"2xs"}),me=(0,l["default"])(ae.P.div).withConfig({componentId:"sc-du3f3u-1"})({marginBottom:0}),he=["conditionInspection_title","conditionInspection_questionsTitle"],ue=({className:e})=>{const{buildPathWithLanguage:t}=(0,u.A)(),i=(0,o.d4)(v.qV),a=(0,o.d4)(v.S4),n=(0,o.d4)(v.aS),s=(0,o.d4)(v.Zb),[{conditionInspection_title:l,conditionInspection_questionsTitle:d}]=(0,x.A)(he),p=(0,c.zy)(),m=j.q8.conditionInspection.matchPath(p.pathname)?.params.pid?.toString(),f=j.q8.conditionInspection.matchPath(p.pathname)?.params.product?.toString(),y=(0,h.A)(),A=(0,C.useCallback)(()=>{m&&y((0,Y.OU)({pid:m}))},[y,m]);return(0,C.useEffect)(()=>{m&&y((0,k.Zy)({pid:m}))},[y,m]),(0,N.jsxs)("div",{className:e,children:[(0,N.jsx)(b.A.NoCache,{title:"Vaihtokauppa | Kuntoarvio"}),(0,N.jsx)(r.EY.H1,{children:l}),(0,N.jsx)(se.A,{}),(0,N.jsx)(M.A,{newProductPid:(0,g.YR)(f),view:"conditionInspection"}),Boolean(i.length)&&(0,N.jsx)(r.EY.H2,{css:{alignSelf:"center",marginBottom:"none"},children:d}),a?(0,N.jsx)(r.y$,{className:(0,I.css)({alignSelf:"center"}),size:"xl"}):(0,N.jsx)(ne.N,{children:i.map(e=>
1(0,N.jsx)(me,{animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},children:(0,N.jsx)(de,{question:e})},e.uid))}),n&&(0,N.jsx)(pe,{size:"L",slug:t(j.q8.compensationEstimate,{pid:m,answers:JSON.stringify(s),product:f}),onClick:A,children:"Tee hyvitysarvio"})]})};ue.displayName="ConditionInspection";const xe=(0,l["default"])(ue).withConfig({componentId:"sc-du3f3u-2"})({display:"flex",flexDirection:"column","> *":{marginBottom:s.space.XS}}),ge=["deviceSearch_title"],je=(0,l["default"])(({className:e})=>{const t=(0,h.A)(),[{deviceSearch_title:i}]=(0,x.A)(ge);return(0,C.useEffect)(()=>{t((0,k.Ed)()),t((0,k.ED)())},[t]),(0,N.jsxs)("div",{className:e,children:[(0,N.jsx)(b.A,{description:"Tee hyvitysarvio laitteestasi",title:"Vaihtokauppa | Hae laite"}),(0,N.jsx)(r.EY.H1,{css:{marginBottom:"xs"},children:i}),(0,N.jsx)(se.A,{})]})}).withConfig({componentId:"sc-d6pcf6-0"})({display:"flex",flexDirection:"column"}),fe=(0,T.styled)(d.Ay,{base:{display:"inline"}}),ye=({className:e})=>{const{data:t}=(0,L.A)(),i=(0,o.d4)(U.J0),a=(0,o.d4)(v.Rk),n=(0,o.d4)(v.EG),s=(0,o.d4)(v.xr),l=(0,c.zy)();return j.q8.ready.matchPath(l.pathname)?null:(0,N.jsxs)("div",{className:e,children:["closedTemporarily"===t?.state&&(0,N.jsxs)(r.Eg,{appearance:"alert",children:[(0,N.jsx)(r.Eg.Title,{children:"Vaihtokauppa ei juuri nyt onnistu, koska Tilisi on väliaikaisesti suljettu"}),(0,N.jsx)(r.Eg.Paragraph,{children:"Voit myydä meille laitteesi, kun olet maksanut laskun ja saat Tilin takaisin käyttöön."})]}),i&&(0,N.jsxs)(r.Eg,{appearance:"alert",children:[(0,N.jsx)(r.Eg.Title,{children:"Vaihtokauppa on henkilöasiakkaille"}),(0,N.jsxs)(r.Eg.Paragraph,{children:["Olet kirjautunut sisään yritysasiakastilillä. Kirjaudu henkilöasiakastilillesi, jos haluat tehdä Vaihtokaupan tai tutustu yritysmyynnin"," ",(0,N.jsx)(fe,{slug:"yritysmyynti/takaisinosto",children:"Takaisinosto-palveluun"}),"."]})]}),a&&(0,N.jsxs)(r.Eg,{appearance:"info",children:[(0,N.jsx)(r.Eg.Title,{children:"Vaihtokauppa ei onnistu, koska hyvityssumma on liian matala"}),(0,N.jsx)(r.Eg.Paragraph,{children:"Voit tuoda laitteesi Verkkis-myymälän SER-kierrätyspisteeseen. Kiitos, kun kierrätät!"})]}),n&&(0,N.jsx)(r.Eg,{appearance:"danger",children:"Haulla ei löytynyt Vaihtokauppaan hyväksyttävää laitetta."}),s.length>0&&(0,N.jsxs)(r.Eg,{appearance:"alert",children:[(0,N.jsx)(r.Eg.Title,{children:`Törmäsimme ${s.length>1?"odottamattomiin virheisiin":"odottamattomaan virheeseen"}:`}),(0,N.jsx)("ul",{children:s.map(e=>(0,N.jsx)(r.Eg.Paragraph,{children:(0,N.jsx)("li",{children:(0,N.jsx)("code",{children:e})})},e))}),(0,N.jsxs)(r.Eg.Paragraph,{children:["Odota pieni hetki ja ",(0,N.jsx)(fe,{children:"yritä uudelleen"}),"."]})]})]})};ye.displayName="Notifications";const ke=(0,l["default"])(ye).withConfig({componentId:"sc-hdpiia-0"})({"> *":{marginBottom:s.space.XS},"> *:last-child":{marginBottom:s.space.M}});var ve=i(7286),Ae=i(50600),Ee=i(26476);const Se=(0,l["default"])(r.y$).attrs({title:"Loading"}).withConfig({componentId:"sc-gun5dp-0"})({position:"absolute",left:`calc(50% - ${s.space.L} / 2)`,top:`calc(50% - ${s.space.L} / 2)`,fontSize:s.font.size.XXXXXXL,zIndex:1}),Ie=l["default"].div.withConfig({componentId:"sc-gun5dp-1"})(({isLoading:e})=>({filter:e?`blur(${s.space.XXXS})`:void 0,position:"relative"})),Ce=({title:e,isLoading:t,children:i})=>(0,N.jsxs)(r.M6,{css:{position:"relative"},iconName:"FaCreditCardBlankDuotone",title:e,children:[t&&(0,N.jsx)(Se,{}),(0,N.jsx)(Ie,{isLoading:t,children:i})]}),we=({className:e})=>(0,N.jsxs)(d.Ay,{className:e,href:"https://cdn.verkkokauppa.com/files/6438d/9e37a/bbb31/87a0f/e393.pdf",openInNewTab:!0,children:[(0,N.jsx)(r.In,{css:{marginRight:"2xs"},iconName:"FaDownload",size:"xs"}),"Tallenna ja tulosta Vaihtokaupan ehdot (pdf)"]}),be=(0,l["default"])(we).withConfig({componentId:"sc-ucpmad-0"})({marginTop:s.space.XS}),Ne=l["default"].div.withConfig({componentId:"sc-is1odi-0"}
1)({height:"6rem"}),qe=()=>{const{isLoading:e,isLoaded:t}=(0,L.A)({forceUpdate:!0}),{t:i}=(0,B.A)("trade-in.ondemand"),a=e||!t;return(0,N.jsxs)(Ce,{isLoading:a,title:i(e=>e.existingCreditAccountSummary.title),children:[a?(0,N.jsx)(Ne,{}):(0,N.jsx)(Ee.A,{showTotalLimit:!0}),(0,N.jsx)(be,{})]})};var Pe=i(34899);const Te=(0,T.styled)(d.Ay,{base:{display:"inline"}}),_e=(0,T.styled)(r.EY.UI,{base:{paddingRight:"2xs"}},{defaultProps:{size:"large",weight:"semiBold"}}),Xe=l["default"].div.withConfig({componentId:"sc-z9k6z0-0"})({display:"flex",marginTop:s.space.XS,marginBottom:s.space.XS,alignItems:"center"}),Le=["shipmentInstructionsUrl","deviceClearingInstructionsUrl"],ze=({className:e})=>{const[{shipmentInstructionsUrl:t,deviceClearingInstructionsUrl:i}]=(0,x.A)(Le),{buildPathWithLanguage:a}=(0,u.A)(),{t:n}=(0,B.A)("trade-in.ondemand");return(0,N.jsxs)(r.az,{appearance:"secondary",className:e,radius:"XS",children:[(0,N.jsx)(r.EY.H2,{children:n(e=>e.instructions.title)}),(0,N.jsxs)(Xe,{children:[(0,N.jsx)(_e,{children:"1."}),(0,N.jsx)(r.EY.UI,{children:n(e=>e.instructions.steps.step1.title)})]}),(0,N.jsx)(r.EY.UI,{appearance:"secondary",children:n(e=>e.instructions.steps.step1.description)}),(0,N.jsxs)(Xe,{children:[(0,N.jsx)(_e,{children:"2."}),(0,N.jsx)(r.EY.UI,{children:n(e=>e.instructions.steps.step2.title)})]}),(0,N.jsx)(r.EY.UI,{appearance:"secondary",children:(0,N.jsx)(Pe.x6,{components:{clearingLink:(0,N.jsx)(Te,{href:i,openInNewTab:!0,children:""})},i18nKey:e=>e.instructions.steps.step2.description,t:n})}),(0,N.jsx)(r.Eg,{appearance:"info",css:{marginTop:"xs"},children:(0,N.jsx)(r.Eg.Paragraph,{children:n(e=>e.instructions.clearingNotification)})}),(0,N.jsxs)(Xe,{children:[(0,N.jsx)(_e,{children:"3."}),(0,N.jsx)(r.EY.UI,{children:n(e=>e.instructions.steps.step3.title)})]}),(0,N.jsx)(r.EY.UI,{appearance:"secondary",children:(0,N.jsx)(Pe.x6,{components:{shippingLink:(0,N.jsx)(Te,{href:t,openInNewTab:!0,children:""})},i18nKey:e=>e.instructions.steps.step3.description,t:n})}),(0,N.jsxs)(Xe,{children:[(0,N.jsx)(_e,{children:"4."}),(0,N.jsx)(r.EY.UI,{children:n(e=>e.instructions.steps.step4.title)})]}),(0,N.jsx)(r.EY.UI,{appearance:"secondary",children:(0,N.jsx)(Pe.x6,{components:{},i18nKey:e=>e.instructions.steps.step4.description,t:n})}),(0,N.jsxs)(Xe,{children:[(0,N.jsx)(_e,{children:"5."}),(0,N.jsx)(r.EY.UI,{children:n(e=>e.instructions.steps.step5.title)})]}),(0,N.jsx)(r.EY.UI,{appearance:"secondary",children:(0,N.jsx)(Pe.x6,{components:{creditLink:(0,N.jsx)(Te,{slug:a(j.pw.main),children:""})},i18nKey:e=>e.instructions.steps.step5.description,t:n})})]})};ze.displayName="Instructions";const Ye=(0,l["default"])(ze).withConfig({componentId:"sc-z9k6z0-1"})({});var Ue=i(49869),Ve=i(86128),De=i(21799),Re=i(74115),Be=i(40238),$e=i(51525),He=i(86861);const Oe=(0,l["default"])(He.A).withConfig({componentId:"sc-13plqf4-0"})({display:"flex",marginTop:s.space.XXS,svg:{marginRight:s.space.XXS}}),Ze=(0,T.styled)(r.EY.UI,{base:{marginBlock:"3xs"}}),Fe=(0,l["default"])(Ee.A).withConfig({componentId:"sc-13plqf4-1"})({marginBottom:s.space.XXS}),Ke=l["default"].div.withConfig({componentId:"sc-13plqf4-2"})({height:"6rem"}),Me=["interestRate"],Qe=()=>{const[{interestRate:e}]=(0,Ue.A)(Me),t=(0,o.d4)(Be.Iy),i=(0,o.d4)(Be.ce),a=(0,o.d4)(Be.V1),{t:n}=(0,B.A)(["trade-in.ondemand","credit"]),s=(0,h.A)(),{limit:c}=t||{},l=(c||0)/100,d=a||!i;return(0,C.useEffect)(()=>{s(Re.uC.started())},[s]),(0,N.jsxs)(Ce,{isLoading:d,title:n(e=>e.newCreditAccountSummary.title,{ns:"trade-in.ondemand"}),children:[(0,N.jsxs)($e.A,{children:[(0,N.jsx)($e.A.Topic,{children:n(e=>e.newCreditAccountSummary.creditLimit,{ns:"trade-in.ondemand"})}),(0,N.jsx)($e.A.Data,{children:(0,Ve.up)(l)})]}),d?(0,N.jsx)(Ke,{}):(0,N.jsx)(Fe,{}),(0,N.jsxs)(r.ob,{gap:"none",children:[(0,N.jsxs)($e.A,{children:[(0,N.jsx)($e.A.Topic,{children:n(e=>e.newCreditAccountSummary.billingDueDate,{ns:"trade-in.ondemand"})}),(0,N.jsx)($e.A.Data,{children:n(e=>e.billingDueDate,{ns:"credit"})})]}),(0,N.jsxs)($e.A,{children:[(0,N.jsx)($e.A.Topic,{children:n(e=>e.newCreditAccountSummary.interest,{ns:"trade-in.ondemand"})}),(0,N.jsx)($e.A.Data,{children:e})]})]}),(0,N.jsx)(Ze,{appearance:"secondary",size:"small",children:n(e=>e.newCreditAccountSummary.freeAccountDescription,{ns:"trade-in.ondemand"})}),(0,N.jsx)(Oe,{context:"credit-account:contract",title:n(e=>e.newCreditAccountSummary.downloadContract,{ns:"trade-in.ondemand"}),url:`${De.dN}/api/v1/customer/financing/credit-account-contract`,asButtonLink:!0}),(0,N.jsx)(be,{})]})},We=["survey_linkText","survey_linkUrl","survey_text"],Je=({className:e})=>{const[{survey_linkText:t,survey_linkUrl:i,survey_text:a}]=(0,x.A)(We);return t?.trim()&&i?.trim()&&a?.trim()?(0,N.jsxs)(r.az,{appearance:"info",className:e,children:[(0,N.jsx)(r.EY.UI,{css:{marginBottom:"2xs"},size:"small",children:a}),(0,N.jsx)(w.A,{href:i,size:"L",openInNewTab:!0,children:t})]}):null};Je.displayName="SurveyLink";const Ge=(0,l["default"])(Je).withConfig({componentId:"sc-7vne62-0"})({display:"flex",flexDirection:"column",alignItems:"center"}),et=(0,l["default"])(Ae.A).withConfig({componentId:"sc-eubmu7-0"})({marginTop:s.space.XXS,alignSelf:"center"}),tt=(0,l["default"])(d.Ay).withConfig({componentId:"sc-eubmu7-1"})({marginTop:s.space.XXXS}),it=l["default"].div.withConfig({componentId:"sc-eubmu7-2"})({"> :not(:last-child)":{marginBottom:s.space.XS}}),at=({className:e})=>{const{buildPathWithLanguage:t}=(0,u.A)(),i=(0,c.zy)(),a=j.q8.ready.matchPath(i.pathname)?.params.id?.toString(),n=j.q8.ready.matchPath(i.pathname)?.params.ca?.toString(),s=j.q8.ready.matchPath(i.pathname)?.params.product?.toString(),l=(0,o.d4)((0,v.qk)(s?(0,g.YR)(s):0)),d=(0,o.d4)((0,v.lb)(Number.parseInt(a||"0"))),p=(0,o.d4)(v.wP),m=(0,o.d4)(v.Mk),x=(0,h.A)(),f="new"===n;if((0,C.useEffect)(()=>{a&&x((0,Y.EX)({tradeInId:a,newCreditAccount:f})),x(k.Rr.started()),d?.tradedDevicePid&&(x((0,k.xp)(d.tradedDevicePid)),x(k.E.started(d.tradedDevicePid.toString())))},[x,f,d,a]),(0,C.useEffect)(()=>{d||p||x(k.hA.started())},[x,d,p]),(0,C.useEffect)(()=>()=>{x((0,k.ED)())},[x]),p)return(0,N.jsx)("div",{className:e,children:(0,N.jsx)(r.y$,{className:(0,I.css)({alignSelf:"center"}),size:"xl"})});if(!d)return(0,N.jsx)(r.Eg,{appearance:"alert",children:(0,N.jsx)(r.Eg.Title,{children:"Vaihtokauppaa ei löytynyt"})});const y=m?.path||t(j.Cg);return(0,N.jsxs)("div",{className:e,children:[(0,N.jsx)(b.A.NoCache,{title:"Vaihtokauppa | Yhteenveto"}),(0,N.jsxs)(it,{children:[(0,N.jsxs)(r.Eg,{appearance:"success",children:[(0,N.jsx)(r.Eg.Title,{children:f?"Tili-hakemuksesi on hyväksytty ja arvioitu hyvityssumma on lisätty Tilillesi":"Laitteen arvioitu hyvityssumma on lisätty Tilillesi"}),(0,N.jsx)(r.Eg.Paragraph,{children:"Lue alta yhteenveto"})]}),l&&(0,N.jsxs)(r.Eg,{appearance:"info",children:["Huom! Saat lisähyvityksen ostamalla kampanjaan kuuluvan laitteen"," ",(0,ve.Yq)(l.endDate,"date")," mennessä.",(0,N.jsx)(tt,{slug:"vaihtokauppa/lisahyvitys",children:"Katso lisähyvityskampanjat"})]})]}),(0,N.jsx)(M.A,{newProductPid:(0,g.YR)(s),tradeInId:(0,g.YR)(a),view:"tradeInReady"}),f?(0,N.jsx)(Qe,{}):(0,N.jsx)(qe,{}),(0,N.jsx)(Ge,{}),(0,N.jsx)(Ye,{}),(0,N.jsx)(et,{size:"L",to:y,children:"Ostoksille"})]})};at.displayName="TradeInReady";const nt=(0,l["default"])(at).withConfig({componentId:"sc-eubmu7-3"})({display:"flex",flexDirection:"column","> *":{marginBottom:s.space.XS},"> .stm-box":{marginBottom:s.space.S}}),st=l["default"].section.withConfig({componentId:"sc-gq30e1-0"})({display:"flex",flexDirection:"column",alignItems:"left",maxWidth:"400px",
1width:"100%",[a.breakpoint.min.S]:{maxWidth:"440px"}}),rt=l["default"].div.withConfig({componentId:"sc-gq30e1-1"})({display:"flex",flexDirection:"column",alignItems:"center",minHeight:"800px",padding:s.space.XS,position:"relative"}),ot=l["default"].div.withConfig({componentId:"sc-gq30e1-2"})({position:"absolute",width:"100%",height:"100%",left:0,top:0,display:"flex",justifyContent:"center",background:"white",zIndex:100}),ct=l["default"].div.withConfig({componentId:"sc-gq30e1-3"})({position:"relative"}),lt=(0,l["default"])(p.A).withConfig({componentId:"sc-gq30e1-4"})({marginLeft:`-${s.space.XS}`,marginRight:`-${s.space.XS}`,marginBottom:"0.75rem",span:{...n.textStyle.ui.medium}}),dt=["campaignRebate_application_banner_text","campaignRebate_application_banner_link"],pt=()=>{const e=(0,o.d4)(f.dc),t=(0,o.d4)(y.es),{buildPathWithLanguage:i}=(0,u.A)(),[{campaignRebate_application_banner_text:a,campaignRebate_application_banner_link:n},{loaded:s}]=(0,x.A)(dt),l=(0,o.d4)(v.MC),p=(0,c.zy)(),{step:I,product:C}=(e=>j.q8.ready.matchPath(e)?{step:5,product:j.q8.ready.matchPath(e)?.params.product?.toString()}:j.q8.acceptQuote.matchPath(e)?{step:4,product:j.q8.acceptQuote.matchPath(e)?.params.product?.toString()}:j.q8.compensationEstimate.matchPath(e)?{step:2,product:j.q8.compensationEstimate.matchPath(e)?.params.product?.toString()}:j.q8.conditionInspection.matchPath(e)?{step:1,product:j.q8.conditionInspection.matchPath(e)?.params.product?.toString()}:(j.q8.search.matchPath(e),{step:0}))(p.pathname),w=(0,o.d4)((0,v.qk)(C?(0,g.YR)(C):void 0)),b=(0,h.A)();(0,m.A)(()=>{b(k.hA.started())},e),(0,m.A)(()=>{b(k.P.started())},!0);const q=Boolean(l&&a&&!w);return t?(0,N.jsx)(E.A,{variant:"standard",main:!0,children:(0,N.jsxs)(rt,{children:[(0,N.jsx)(S.A,{currentStep:I}),(0,N.jsxs)(st,{children:[q&&(0,N.jsx)(lt,{color:"sale",linkProps:{slug:n},linkText:a||"",showArrow:!0}),(0,N.jsx)(ke,{}),(0,N.jsxs)(ct,{children:[!s&&(0,N.jsx)(ot,{children:(0,N.jsx)(r.y$,{size:"xl"})}),(0,N.jsxs)(c.BV,{children:[(0,N.jsx)(c.qh,{element:(0,N.jsx)(je,{}),path:j.q8.search.fromParent}),(0,N.jsx)(c.qh,{element:(0,N.jsx)(xe,{}),path:j.q8.conditionInspection.fromParent}),(0,N.jsx)(c.qh,{element:(0,N.jsx)(ie,{}),path:j.q8.compensationEstimate.fromParent}),(0,N.jsx)(c.qh,{element:(0,N.jsx)(P,{}),path:j.q8.acceptQuote.fromParent}),(0,N.jsx)(c.qh,{element:(0,N.jsx)(A.A,{children:(0,N.jsx)(nt,{})}),path:j.q8.ready.fromParent})]})]})]})]})}):(0,N.jsx)(E.A,{variant:"standard",main:!0,children:(0,N.jsx)(rt,{children:(0,N.jsx)(st,{children:(0,N.jsxs)(r.Eg,{appearance:"alert",children:[(0,N.jsx)(r.Eg.Title,{children:"Vaihtokauppa on tilapäisesti poissa käytöstä"}),(0,N.jsx)(r.Eg.Paragraph,{children:(0,N.jsx)(d.Ay,{slug:i(j.q8.main),children:(0,N.jsx)(r.EY.UI,{children:"Lue lisää"})})})]})})})})}},92790(e,t,i){i.d(t,{A:()=>g});var a=i(71468),n=i(86532),s=i(97809),r=i(43955),o=i(5032),c=i(17644),l=i(86998),d=i(24842),p=i(56361),m=i(51223),h=i(28911),u=i(74848);const x=()=>{const{t:e}=(0,d.A)(),t=e(e=>e.loading);return(0,u.jsxs)("main",{className:(0,h.i)({variant:"standard"}),children:[(0,u.jsx)(m.A.NoCache,{title:t}),(0,u.jsx)(p.A,{message:t})]})},g=({children:e,fallback:t})=>{const i=(0,a.d4)(l.w),d=(0,a.d4)(c.dc),p=(0,r.A)(),{buildPathWithLanguage:m}=(0,s.A)(),h=(0,n.zy)();return i||!p?t?(0,u.jsx)(t,{}):(0,u.jsx)(x,{}):d?e:(0,u.jsx)(n.C5,{to:`${m(o.Om.main)}?next=${encodeURIComponent(h.pathname+h.search+h.hash)}`,replace:!0})}}}]);
2//# sourceMappingURL=/assets/maps/6169.cf0a4c2f48.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.