PageSourceSearch

https://swixsport.com/_next/static/chunks/4271.809bbfae5ff830a0.js

js swixsport.com collected 2026-10-02 07:05:48 UTC 3,284 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4271],{76799:function(e,a,r){var t,s,i=r(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var t in r)({}).hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(null,arguments)}var n=(0,i.forwardRef)(function(e,a){return i.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:a},e),t||(t=i.createElement("path",{d:"M11.968 12.885a1.02 1.02 0 0 1-.72-.291L3.001 4.441l1.473-1.456L12 10.426l7.527-7.441L21 4.441l-8.247 8.153q-.393.291-.785.291"})),s||(s=i.createElement("path",{d:"M12.033 10.815a1.02 1.02 0 0 1 .72.291L21 19.259l-1.473 1.456L12 13.274l-7.527 7.441L3 19.259l8.247-8.153q.393-.291.785-.291z"})))}),u=(0,i.memo)(n);a.Z=u},4271:function(e,a,r){r.r(a),r.d(a,{default:function(){return v}});var t=r(52322),s=r(58234),i=r(8318),l=r(58963),n=r(63679),u=r(48538),d=r(54151),c=r(75980),o=r(2784),m=r(60087),g=r(76799),v=e=>{let{omniumRatingKey:a}=e,[r,v]=(0,o.useState)(!1),{setToast:p}=(0,u.e)(),[h,x]=(0,o.useState)({}),{translate:f}=(0,c.Kr)(),{data:b,isFetching:y}=m.hi.reviews.ratingForm.useQuery({key:a},{onSuccess:e=>{(null==e?void 0:e.omniumRatings.length)&&v(!0)}}),w={displayOnlyFirstName:null==b?void 0:b.displayOnlyFirstName,key:null==b?void 0:b.key,languageCode:null==b?void 0:b.languageCode,raterDisplayName:null==b?void 0:b.raterDisplayName,raterId:null==b?void 0:b.raterId,raterName:null==b?void 0:b.raterName},{mutate:j}=m.hi.reviews.addRating.useMutation(),N=(e,a)=>{x(a=>({...a,[e.id]:!0})),j({...e},{onSuccess:()=>{x(a=>({...a,[e.id]:!1})),a(!0),p({id:"publish-review-success",type:"success",message:f("a11y.rating.success"),duration:d.u})},onError:a=>{p({id:"publish-review-error",type:"error",message:f("a11y.rating.error"),duration:d.u}),x(a=>({...a,[e.id]:!1}))}})};return(0,t.jsxs)(i.u,{open:r,onClose:()=>
1v(!1),children:[(0,t.jsx)(i.u.Backdrop,{className:"bg-black/10 backdrop-blur-lg dark:bg-white/10",enter:"duration-300",leave:"duration-200"}),(0,t.jsxs)(i.u.Panel,{className:"bg-background-paper relative max-h-[calc(var(--small-viewport-height)-var(--grid-gap)*2)] w-full max-w-screen-md rounded-t-lg pb-16 sm:rounded-lg",enter:"duration-300",leave:"duration-200",children:[(0,t.jsxs)("div",{className:"sticky right-1 top-1 z-20 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(s.z,{className:"rounded-lg p-1 text-black","aria-label":f("a11y.rating.close"),onClick:()=>v(!1),children:(0,t.jsx)(g.Z,{className:"h-6 w-6","aria-hidden":!0})})]}),(0,t.jsx)("div",{className:"px-grid-gap sm:py-grid-gap text-default z-10 flex items-center justify-between",children:(0,t.jsx)(i.u.Title,{className:"text-h4 md:text-h4 mb-4 w-full text-center",children:f("a11y.rating.title")})}),(0,t.jsx)("div",{className:"mx-grid-gap mb-4"}),null==b?void 0:b.omniumRatings.map(e=>{let a=h[e.id]||!1;return(0,t.jsxs)("div",{className:"relative",children:[a&&(0,t.jsx)("div",{className:"absolute inset-0 z-10 flex items-center justify-center rounded-lg bg-white/80",children:(0,t.jsx)(n.$,{size:30,color:"black",thickness:2})}),(0,t.jsx)(l.Y,{customerInfo:w,omniumRating:e,submitRating:N,isLoading:a})]},e.id)})]})]})}}}]);

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.