PageSourceSearch

https://petwellhk.com/assets/priceReviewPricing-BlvAWvXm.js

js petwellhk.com collected 2026-10-06 05:23:53 UTC 1,376 bytes, 1 lines download raw bytes

1function c(r){return Math.round(r*10)/10}function l(r){return`HK$${c(r).toLocaleString("zh-HK",{minimumFractionDigits:0,maximumFractionDigits:1})}`}function u(r){return typeof r.unitPrice=="number"&&r.unitPrice>0}function i(r){return u(r)?r.unitPrice:r.price}function P(r){return i(r)}function s(r){const e=r.topOffers||[];if(e.length===0)return{usesUnitPricing:!1,lowestPrice:r.lowestPrice,highestPrice:r.highestPrice,bestOffer:null,worstOffer:null};const t=e.map(n=>({offer:n,comparable:i(n)})).sort((n,o)=>n.comparable-o.comparable);return{usesUnitPricing:e.some(u),lowestPrice:t[0].comparable,highestPrice:t[t.length-1].comparable,bestOffer:t[0].offer,worstOffer:t[t.length-1].offer}}function m(r){const{lowestPrice:e,highestPrice:t}=s(r);return!t||t<=e?0:Math.round((t-e)/t*100)}function g(r){const{lowestPrice:e,highestPrice:t}=s(r);return t<=e?0:c(t-e)}function f(r){return Number.isInteger(r)?String(r):String(c(r))}function h(r){return r.priceUnitLabel||r.priceUnit||"ä»¶"}function p(r){if(!u(r))return null;const e=r.unitsInPrice??1;if(e<=1)return null;const t=r.priceUnit||"ä»¶";return`è²·${f(e)}${t} HK$${c(r.price)}`}function b(r){return[...r].sort((e,t)=>i(e)-i(t))}function w(r,e){return[...r].sort((n,o)=>{const a=s(n).lowestPrice-s(o).lowestPrice;return e==="asc"?a:-a})}export{g as a,w as b,h as c,P as d,b as e,p as f,s as g,u as h,i,l as j,c as r,m as s};

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.