PageSourceSearch

https://www.decathlon.co.jp/_next/static/chunks/6729.c1872bba513baab0.js

js decathlon.co.jp collected 2026-09-26 04:54:26 UTC 13,093 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:apac-chopper-web-id":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bbda18bf-d585-4be8-8031-297c89697e22",e._sentryDebugIdIdentifier="sentry-dbid-bbda18bf-d585-4be8-8031-297c89697e22")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6729],{36729:(e,t,n)=>{n.r(t),n.d(t,{ContentReview:()=>C,LikeAndReportSection:()=>E,ReplySectionV4:()=>L,ReviewComments:()=>A,SingleReviewComment:()=>D,default:()=>M,returnRatingReviewCount:()=>Y,shouldShowReply:()=>z});var r=n(37876),i=n(14232),o=n(94323),s=n(56557),l=n.n(s),a=n(85549),d=n(45160),c=n(46042),u=n(74208),p=n(97025),x=n(31753),h=n(6876),m=n(37735),v=n(79016);let f=e=>{let{text:t}=e,{t:n}=(0,x.Bd)(),[o,s]=(0,i.useState)(!1),[l,a]=(0,i.useState)(!1),[d,c]=(0,i.useState)(0),u=(0,i.useRef)(null),p=()=>{let e=u.current;if(e){let t=window.getComputedStyle(e),n=parseFloat(t.fontSize),r=t.lineHeight;c(r="normal"===r?1.2*n:parseFloat(r));let i=3*r;a(e.scrollHeight>i+10)}};return(0,i.useEffect)(()=>(p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)),[]),(0,r.jsxs)("div",{style:{position:"relative",fontSize:"14px",fontWeight:500},children:[(0,r.jsx)("div",{"data-testid":"expand-text",dangerouslySetInnerHTML:{__html:t},ref:u,style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o?"unset":3,overflow:o?"visible":"hidden",textOverflow:"ellipsis"}}),l&&!o&&(0,r.jsxs)("div",{style:{display:"flex",width:"auto",position:"absolute",backgroundColor:"white",bottom:0,right:0,height:d},children:[(0,r.jsx)("div",{style:{display:"flex",alignItems:"flex-end"},children:"..."}),(0,r.jsx)(v.x,{variant:"primary",onClick:()=>s(!0),style:{cursor:"pointer",background:"none",border:"none",padding:0,textDecoration:"underline",fontSize:"14px"},children:n("app_read_more_label")})]})]})};var w=n(49259),g=n(89099),b=n(48459),j=n(39324),y=n.n(j),_=n(81381);let{publicRuntimeConfig:S}=y()(),{ALL:k}=p.qf,E=e=>{let{comment:t,t:n}=e,i=(0,w.L1)(),s="https://reviews-collect-eu.satisphere.decathlon.net/collect/abuse/".concat(i,"/").concat(t.id);return(0,r.jsx)(o.so,{sx:{mt:"22px",mb:"16px"},children:(0,r.jsx)(o.so,{sx:{mt:2},children:(0,r.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:(0,r.jsx)(o.EY,{ml:0,sx:{fontSize:"14px",cursor:"pointer",color:"var(--vp-semantic-color-content-brand)"},children:n("web_reviews_report_an_abuse")})})})})},C=e=>{var t;let{comment:n,t:s}=e,[l,a]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),[p,x]=(0,i.useState)(n),h=(0,w.L1)(),[m,v]=(0,i.useState)(n);(0,i.useEffect)(()=>{x(n),v(n)},[n]);let g=async()=>{if(!d)if(l)a(!1),x({...m});else try{u(!0);let e=await (0,c.ai)({id:p.id,locale:h});a(!0),x({...m,comment:e.message})}catch(e){a(!1)}finally{u(!1)}};return(0,r.jsxs)(o.so,{"data-testid":"content-review-test",sx:{flexGrow:1,flexDirection:"column",position:["relative","relative","static"]},children:[p.title?(0,r.jsx)(o.EY,{"data-testid":"comment-title",sx:{fontSize:"16px",fontWeight:"600",lineHeight:"24px",mb:"4px"},children:p.title}):null,(0,r.jsx)(f,{text:p.comment}),m.locale!==h?(0,r.jsx)("div",{style:{fontSize:"var(--vp-semantic-typography-screen-s-caption-font-size)",lineHeight:"var(--vp-component-sticker-typography-small-label-line-height)",cursor:"pointer",color:"var(--vp-semantic-color-content-quiet)",userSelect:"none"},onClick:()=>{g()},children:s(l?"app_see_original_label":"app_translate_the_review_label")}):null,(0,r.jsx)(E,{comment:p,t:s}),(null==(t=p.answers)?void 0:t[0])!==void 0&&z(p)?(0,r.jsx)(L,{answer:p.answers[0],t:s}):null]})},z=e=>{var t,n,r,i;
1let o=null==e||null==(i=e.answers)||null==(r=i[0])||null==(n=r.locale)||null==(t=n.slice(-2))?void 0:t.toUpperCase();if(!o)return!1;let s=(0,b.A)(S.NEXT_PUBLIC_COUNTRY_CODE_ALPHA_TWO);return o===(null==s?void 0:s.toUpperCase())},L=e=>{let{answer:t,t:n}=e,[s,l]=(0,i.useState)(!1);if(!t)return(0,r.jsx)(r.Fragment,{});let a=n("web_reviews_reply_from_decathlon");return(0,r.jsx)(o.az,{sx:{width:"100%",marginTop:3,marginBottom:3,padding:"15px 21px",backgroundColor:"var(--vp-semantic-color-background-alternative)",cursor:"pointer"},onClick:()=>l(!s),children:s?(0,r.jsxs)(o.so,{sx:{justifyContent:"space-between",flexDirection:"column"},children:[(0,r.jsx)(o.so,{sx:{justifyContent:"flex-end"},children:(0,r.jsx)(h.m,{name:"chevron-up",size:36})}),(0,r.jsx)(o.EY,{sx:{color:"var(--vp-semantic-color-content-neutral)",marginTop:3},dangerouslySetInnerHTML:{__html:t.message}})]}):(0,r.jsxs)(o.so,{sx:{justifyContent:"space-between",alignItems:"center",flexGrow:1},children:[(0,r.jsxs)(o.EY,{sx:{color:"var(--vp-semantic-color-content-neutral)",cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[a," ",(e=>{var t;let n=null!=(t=null==e?void 0:e.indexOf("<p>"))?t:-1;if(-1===n)return"";let r=e.indexOf("</p>",n+3);return -1===r?"":e.substring(n+3,r).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").trim()})(t.message)]}),(0,r.jsx)(h.m,{name:"chevron-down",size:36})]})},"tablet-".concat(t.reviewId))},D=e=>{var t,n,i,s;let{givenComment:a,index:c,t:p,isMobile:x}=e,h=(0,u.a)();return a?(0,r.jsxs)(o.az,{"data-testid":"single-review-comment",children:[h!=u.L.MOBILE&&h!=u.L.TABLET&&(0,r.jsxs)(o.az,{sx:{display:["none","none","none","flex"],pl:"18px",pr:"18px",mt:"24px",borderBottom:"1px solid var(--vp-semantic-color-border-quiet)"},children:[(0,r.jsxs)(o.so,{sx:{width:["unset","unset","unset",180,217],flexDirection:"column"},children:[(0,r.jsx)(o.EY,{sx:{fontSize:16,fontWeight:700,lineHeight:"24px"},"data-testid":"single-review-username",children:null==(t=a.author)?void 0:t.username}),(0,r.jsx)(d.A,{isReviewComment:!0,rating:a.rating.code}),(0,r.jsxs)(o.EY,{sx:{color:"var(--vp-semantic-color-content-quiet)",mt:2,fontSize:14},children:[null==(n=a.country)?void 0:n.label," |"," ",l()(a.publisherDate).format("DD/MM/YYYY")]})]}),(0,r.jsx)(o.so,{sx:{maxWidth:"645px",flexDirection:"column",flexGrow:1},children:(0,r.jsx)(C,{comment:a,t:p})})]},"desktop-".concat(a.id,"-").concat(c)),(h===u.L.TABLET||h===u.L.MOBILE)&&(0,r.jsxs)(o.az,{sx:{display:["block","block","block","none"],mb:x?void 0:"24px",borderBottom:"1px solid var(--vp-semantic-color-border-quiet)"},children:[(0,r.jsxs)(o.so,{sx:{flexDirection:"row",position:"relative",pb:"16px",justifyContent:"space-between"},children:[(0,r.jsxs)(o.so,{sx:{flexDirection:"column"},children:[(0,r.jsx)(o.EY,{sx:{fontSize:18,fontWeight:700,lineHeight:"24px"},children:null==(i=a.author)?void 0:i.username}),(0,r.jsx)(d.A,{isReviewComment:!0,rating:a.rating.code})]}),(0,r.jsxs)(o.EY,{sx:{color:"var(--vp-semantic-color-content-quiet)",mt:2,fontSize:14},children:[null==(s=a.country)?void 0:s.label," |"," ",l()(a.publisherDate).format("DD/MM/YYYY")]})]}),(0,r.jsx)(C,{comment:a,t:p})]},"tablet-".concat(a.id))]},a.id):(0,r.jsx)(r.Fragment,{})},I=e=>{let{reviews:t,t:n,isMobile:s}=e,l=(0,i.useRef)(null);return(0,r.jsx)(o.so,{ref:l,id:"review-list-group",sx:{flexDirection:"column",width:"100%"},children:t.length?(0,r.jsx)(o.az,{sx:{mt:"24px"},children:t.map((e,t)=>(0,r.jsx)(D,{givenComment:e,index:t,t:n,isMobile:s},e.id))}):(0,r.jsx)(o.so,{sx:{color:"var(--vp-semantic-color-content-quiet)",fontWeight:"400",fontSize:"16px",lineHeight:"24px",justifyContent:"center"},children:n("web_reviews_no_language_reviews")})})},A=()=>{var e;let[t,n]=(0,i.useState)(0),[s,l]=(0,i.useState)(!1),{productReview:d,selectedReviewRating:v}=(0,p.Aw)(),{modelId:f,selectedSku:w,isDecathlonProduct:b}=d,j=(0,u.a)()===u.L.MOBILE,{data:y,isLoading:S}=(0,c.Eo)({modelId:f,skuId:w,isDecathlonProduct:b,page:t,rating:v===k?void 0:v}),{t:E}=(0,x.Bd)(),C=null!=(e=null==y?void 0:y.reviews)?e:[],[z,L]=(0,i.useState)(0),D=(0,i.useRef)(v),A=null==d?void 0:d.stats,M=(0,_._)({code:v,data:null==y?void 0:y.stats});(0,i.useEffect)(()=>
1{if(v){let t=e=>{L((0,_.Q)(e)),D.current=v};if(z<1&&t(M),D.current!==v){var e;t(null!=(e=Y(A)[Number.parseInt(v)-1])?e:M)}}},[M,v,z,A]),(0,i.useEffect)(()=>{0!==t&&n(0)},[v]),(0,i.useEffect)(()=>{s&&R("all-reviews-title")},[null==y?void 0:y.reviews]);let P=(0,g.useRouter)(),B=window.location.href.includes("/r/"),R=e=>{let t=document.getElementById(e);t?t.scrollIntoView({behavior:"smooth"}):console.error("Element with ID '".concat(e,"' not found."))};return(0,r.jsxs)(o.so,{"data-testid":"review-comments-container",sx:{flexDirection:"column",width:"100%"},children:[(0,r.jsx)(o.so,{sx:{width:"100%"},children:S?(0,r.jsx)(o.so,{sx:{width:"100%"},children:(0,r.jsx)(a.a,{})}):(0,r.jsx)(I,{t:E,reviews:C,isMobile:j})}),!B&&M>3&&(0,r.jsx)(o.so,{sx:{display:"flex",justifyContent:"center"},children:(0,r.jsx)(o.EY,{"data-testid":"reviewComments-open-all-reviews-page",sx:{fontSize:j?"12px":"14px",color:"#3643BA",cursor:"pointer",height:j?"48px":"80px",textAlign:"center",display:"flex",alignItems:"center"},onClick:()=>{let e=(()=>{let{asPath:e}=P,t=e.substring(3);return t?"/r/".concat(w,"_").concat(t):""})();return e?void P.push(e):void 0},children:E("web_reviews_view_all")})}),B&&(0,r.jsxs)(o.so,{"data-testid":"popup-review-comments",sx:{position:"relative",bottom:0,width:"100%",background:"var(--vp-semantic-color-background-main)",height:100,justifyContent:"center",padding:"0 48px",alignItems:"center"},children:[(0,r.jsx)(m.A,{size:"medium","data-testid":"previous-page",variant:"secondary",disabled:t<1,onClick:()=>{n(t-1)},children:(0,r.jsx)(h.m,{name:"chevron-left"})}),(0,r.jsx)(o.EY,{sx:{margin:"24px"},children:"".concat(t+1," of ").concat(z+1)}),(0,r.jsx)(m.A,{size:"medium","data-testid":"next-page",variant:"secondary",disabled:t===z||S,onClick:()=>{n(t+1),l(!0)},children:(0,r.jsx)(h.m,{name:"chevron-right"})})]})]})},M=A,Y=e=>{let t=[];if(e)for(let n=1;n<=5;n++){let r=n.toString(),i=(0,_._)({code:r,data:e});t.push(Number.parseInt(String(i),10))}return t}},79016:(e,t,n)=>{n.d(t,{x:()=>_});var r=n(99387),i=n(30613),o=n(12604),s=(0,o.q)("VpLink"),l=(0,o.N)(s),a=n(37876),d=n(17491),c=e=>{let{children:t,startSlot:n,arrowSlot:r,endSlot:i}=e,{api:o}=l();return(0,a.jsxs)(a.Fragment,{children:[o.showStartSlot&&(0,a.jsx)("span",{...o.getStartSlotProps(),children:n}),t,o.showArrow&&(r??(0,a.jsx)(d.A,{...o.getArrowProps()})),o.showEndSlot&&(0,a.jsx)("span",{...o.getEndSlotProps(),children:i})]})},u=n(40775),p=n(72705),x=n(14232),h=n(28057),m=e=>(0,h.O)({id:"VpLink",initial:"ready",context:{...e},states:{ready:{}}}),v=n(2912),f=n(84161),w=n(4036),g=n(69241),b=n(62943),j="vp-link",y=n(24036),_=e=>{let{api:t,frameworkProps:{as:n,asChild:o,children:l,startSlot:d,arrowSlot:h,endSlot:_},spreadableProps:S}=(e=>{let{logicProps:t,frameworkProps:n,spreadableProps:r}=function(e,t){let{arrowOnHover:n,arrowSlot:r,startSlot:i,endSlot:o,asChild:s,children:l,underlined:a,disabled:d,isFocusable:c,href:u,id:p=t,size:x,variant:h,variantStyle:m,onClick:v,...f}=e;return{logicProps:{_hasStartSlot:!!i,_hasEndSlot:!!o,arrowOnHover:n,disabled:d,underlined:a,isFocusable:c,href:u,id:p,size:x,variant:h,variantStyle:m,onClick:v},frameworkProps:{arrowSlot:r,as:s?void 0:u?"a":"button",asChild:s,children:l,startSlot:i,endSlot:o},spreadableProps:f}}(e,(0,x.useId)()),[i,o]=(0,p.z)(m,t);return{api:function(e,t){let{snapshot:n,send:r}=e,{id:i,size:o="medium",variant:s="primary",variantStyle:l="regular",disabled:a=!1,isFocusable:d,underlined:c=!1,hovered:u=!1,href:p,arrowOnHover:x=!1,onClick:h,_hasStartSlot:m,_hasEndSlot:y}=n.context,_="string"==typeof p&&void 0!==p&&""!==p,S=a&&!d,k=a&&d,E=y&&!x,C=c||"caption"===o,z=(0,f.nz)(n.context,{"data-arrow-on-hover":(0,b.s)(x),"data-start-slot":(0,b.s)(m),"data-end-slot":(0,b.s)(E)}),L={...(0,w.f$)(r,a),...(0,w.FP)(r,a)};return{isDisabled:a,isHovered:u,hasArrowOnHover:x,showArrow:x&&u,showStartSlot:m,showEndSlot:E,getLinkProps:()=>t({...z,...L,id:i,class:(0,g.A)(j,{[`${j}--${o}`]:o&&"medium"!==o,[`${j}--${s}`]:s&&"primary"!==s,[`${j}--${l}`]:l&&"regular"!==l,[`${j}--underlined`]:C}),"data-part":"link",onClick:(0,v.H)(a,h),..._?{}:{type:"button",disabled:(0,b.J)(S),"aria-disabled":(0,b.J)(k)},...!_?{}:{href:S?void 0:p,role:a?"link":void 0,"aria-disabled":(0,b.s)(a)}}),getArrowProps:()=>t({class:`${j}__arrow`,"aria-hidden":!0,"data-part":"arrow","data-show":u??void 0}),getStartSlotProps:()=>t({id:`link-start-slot-${i}`,"data-part":"start-slot"}),getEndSlotProps:()=>t({id:`link-end-slot-${i}`,"data-part":"end-slot"})}}({snapshot:i,send:o},u._),frameworkProps:n,spreadableProps:r}})(e),k=!o&&!(0,r.T)(l);return(0,a.jsx)(s.Provider,{value:{api:t},children:(0,a.jsx)(i.J,{asChild:o,...(0,y.v)(t.getLinkProps(),S),as:n,children:k?(0,a.jsx)(c,{startSlot:d,arrowSlot:h,endSlot:_,children:l}):(0,r.J)(l,t)})})}}}]);

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.