PageSourceSearch

https://comounamarmota.com/_nuxt/C2aNkfP_.js

js comounamarmota.com collected 2026-10-04 15:37:58 UTC 878 bytes, 1 lines download raw bytes

1const s=u=>Math.round(u*100)/100,m=()=>{const u=t=>{var i;const e=(i=t==null?void 0:t.discount_rule)==null?void 0:i.value;if(!e)return null;try{const n=typeof e=="string"?JSON.parse(e):e,r=Number(n==null?void 0:n.value);return!(n!=null&&n.code)||!(n!=null&&n.type)||!isFinite(r)||r<=0||n.type!=="percentage"&&n.type!=="fixed"?null:{type:n.type,value:r,code:String(n.code)}}catch{return null}},c=(t,e)=>{const i=Number(t);if(!e||!isFinite(i))return 0;const n=e.type==="percentage"?i*e.value/100:e.value;return s(Math.min(Math.max(n,0),i))};return{parseDiscountRule:u,discountAmount:c,priceWithDiscount:(t,e)=>{const i=Number(t);return isFinite(i)?s(i-c(i,e)):0},discountLabel:t=>t?t.type==="percentage"?`${t.value}%`:`${t.value} €`:"",withDiscountParam:(t,e)=>{if(!e)return t;const i=t.includes("?")?"&":"?";return`${t}${i}discount=${encodeURIComponent(e)}`}}};export{m as u};

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.