PageSourceSearch

https://www.weroad.com/_nuxt/qNDXqVjW2.js

js weroad.com collected 2026-09-24 10:12:21 UTC 3,782 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?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(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:weroad":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b8bd563f-69ec-4655-ac9d-3c20dbe56cd2`,e._sentryDebugIdIdentifier=`sentry-dbid-b8bd563f-69ec-4655-ac9d-3c20dbe56cd2`)}catch{}})();import{J as e,Qt as t,W as n,X as r,Yt as i,d as a,f as o,kt as s,l as c,lt as l,p as u,q as d,r as f,u as p,v as m,x as h,y as g}from"./BSXR3eMi.js";import{t as _}from"./Fc3yw33_.js";import{m as v}from"./CSQlDpKi.js";import{t as y}from"./DqMzMQNk2.js";import{t as b}from"./Cus8pwtw2.js";var x=[`data-fill`],S=[`textContent`],C=[`textContent`],w={key:0,class:`text-gray-500`,"data-testid":`rating-count`},T=20,E=56,D=h({name:`wr-rating-badge`,__name:`index`,props:{reviewsRating:{},reviewsCount:{},reviewsBelowThreshold:{type:Boolean,default:!1},size:{default:`base`},multipleStars:{type:Boolean,default:!1},layout:{default:`row`},showCount:{type:Boolean,default:!0},to:{default:void 0}},setup(h){let D=h,O=_(),k=b(),A=c(()=>Math.round((D.reviewsRating??0)*2)/2),j=c(()=>Number(D.reviewsRating??0).toLocaleString(k,{maximumFractionDigits:1})),M={en:`,`,it:`.`,es:`.`,de:`.`,fr:` `},N=c(()=>{let e=M[k.split(`-`)[0]??``]??`,`;return Math.round(Number(D.reviewsCount??0)).toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)}),P=c(()=>D.multipleStars&&!D.reviewsBelowThreshold),F=c(()=>D.layout===`column`&&!D.reviewsBelowThreshold),I=c(()=>Array.from({length:5},(e,t)=>{let n=t+1;return A.value>=n?`full`:A.value>=n-.5?`half`:`empty`})),L=c(()=>D.size===`sm`?`text-sm`:`text-base`),R=c(()=>D.to?`text-default`:``),z=e=>{if(!D.to?.startsWith(`#`))return;let t=document.getElementById(D.to.slice(1));if(!t)return;e.preventDefault();let n=Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue(`--pm-bar-offset`),10)||E;v(t,{offset:n+T}),window.history.replaceState(window.history.state,``,D.to)};return(c,_)=>{let v=y;return n(),a(r(h.to?`a`:`span`),{href:h.to||void 0,class:i([`inline-flex`,[s(L),s(F)?`flex-col items-start gap-2.5`:`items-end gap-1`]]),"data-testid":`rating-badge`,onClick:z},{default:l(()=>[s(P)?(n(),u(`span`,{key:0,class:i([`inline-flex items-center gap-0.5`,{"-translate-y-px":h.size===`base`}]),"data-testid":`rating-stars`},[(n(!0),u(f,null,d(s(I),(e,t)=>(n(),u(`span`,{key:t,class:`relative inline-flex`,"data-fill":e,"data-testid":`rating-star`},[g(v,{name:`common:star`,class:`size-4 text-gray-300`,"aria-hidden":`true`}),e===`full`?(n(),a(v,{key:0,name:`common:star`,class:`absolute inset-0 size-4`,"aria-hidden":`true`})):e===`half`?(n(),a(v,{key:1,name:`common:star-half`,class:`absolute inset-0 size-4`,"aria-hidden":`true`})):o(``,!0)],8,x))),128))],2)):(n(),a(v,{key:1,name:`common:star`,class:i([`size-4`,[s(R),{"-translate-y-px":h.size===`base`}]]),"aria-hidden":`true`,"data-testid":`rating-star-single`},null,8,[`class`])),p(`span`,{class:i([`inline-flex items-center gap-1 leading-none`,s(R)])},[h.reviewsBelowThreshold?(n(),u(`span`,{key:0,class:`font-semibold`,"data-testid":`rating-new`,textContent:t(s(O).t(`reviews.NEW`))},null,8,S)):(n(),u(f,{key:1},[p(`span`,{class:`font-semibold`,"data-testid":`rating-score`,textContent:t(s(j))},null,8,C),h.showCount&&h.reviewsCount!=null?(n(),u(`span`,w,[_[0]||=m(`(`,-1),e(c.$slots,`brackets`,{count:s(N)},()=>[m(t(s(N)),1)]),_[1]||=m(`)`,-1)])):o(``,!0)],64))],2)]),_:3},8,[`href`,`class`])}}});export{D as 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.