PageSourceSearch

https://www.electrovoice.com/_nuxt/_X28BRf6.js

js electrovoice.com collected 2026-09-24 09:02:07 UTC 4,509 bytes, 2 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.SENTRY_RELEASE={id:`b979a1dd72c17209561bcc184e5e50b6a97d9243`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0148ba20-3a9e-4a33-ab59-6f9cc8633f5d`,e._sentryDebugIdIdentifier=`sentry-dbid-0148ba20-3a9e-4a33-ab59-6f9cc8633f5d`)}catch{}})();import{a as e}from"./DJ6kPw7i.js";import{L as t,S as n}from"./-0IMIAo4.js";import{r}from"./Dnyja5b0.js";import{i,o as a,t as o,w as s,y as c}from"./Ci6VYL1U.js";var l=(e,t)=>{typeof e==`string`&&(e=Number(e.replace(`,`,``)));let n={},r=o(),i=``;return(t||Number.isInteger(e))&&(n.maximumFractionDigits=0),r.getCurrency===`NOK`?i=` kr`:(n.style=`currency`,n.currency=r.getCurrency,n.currencyDisplay=`narrowSymbol`),new Intl.NumberFormat(r.getLocale,n).format(e)+i};function u(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function d(e){var t=e.toString().split(/[eE]/),n=(t[0].split(`.`)[1]||``).length-+(t[1]||0);return n>0?n:0}function f(e){if(e.toString().indexOf(`e`)===-1)return Number(e.toString().replace(`.`,``));var t=d(e);return t>0?u(Number(e)*10**t):Number(e)}function p(e){b&&(e>2**53-1||e<-(2**53-1))&&console.warn(e+` is beyond boundary when transfer to integer, the results may not be accurate`)}function m(e){return function(){var t=[...arguments],n=t[0];return t.slice(1).reduce(function(t,n){return e(t,n)},n)}}var h=m(function(e,t){var n=f(e),r=f(t),i=d(e)+d(t),a=n*r;return p(a),a/10**i}),g=m(function(e,t){var n=10**Math.max(d(e),d(t));return(h(e,n)+h(t,n))/n}),_=m(function(e,t){var n=10**Math.max(d(e),d(t));return(h(e,n)-h(t,n))/n}),v=m(function(e,t){var n=f(e),r=f(t);return p(n),p(r),h(n/r,u(10**(d(t)-d(e))))});function y(e,t){var n=10**t,r=v(Math.round(Math.abs(h(e,n))),n);return e<0&&r!==0&&(r=h(r,-1)),r}var b=!0;function x(e){e===void 0&&(e=!0),b=e}var S={strip:u,plus:g,minus:_,times:h,divide:v,round:y,digitLength:d,float2Fixed:f,enableBoundaryChecking:x};t();var{stripFlagSuffix:C,addFlagSuffix:w}=c();function T(t){let r=a(),o=i(),{$t:c,$toNumber:u}=e(),d=n(()=>t.activeVariant?t.activeVariant.percentageCampaigns:t.item.flags.filter(e=>e.groupCode===w(s.PercentageCampaigns))),f=n(()=>t.activeVariant?t.activeVariant.stepCampaigns:t.item.flags.find(e=>e.groupCode===w(s.StepCampaigns))),p=n(()=>t.activeVariant?t.activeVariant.giftCampaigns:t.item.flags.find(e=>e.groupCode===w(s.GiftCampaigns))),m=n(()=>t.activeVariant?t.activeVariant.partNo:t.item.partNo),h=n(()=>
1{if(!f.value)return[];let e=o.getPrice(m.value,!1),t=[];return(C(f.value.code)?.split(`-`)??[]).forEach((n,i)=>{let a=n.split(`get`).map(e=>parseInt(e)),o=``;try{if(e.status===`ok`&&e.price?.priceBeforeDiscountBeforeVat){let t=parseFloat(e.price.priceBeforeDiscountBeforeVat.replace(`,`,``));o=c(`buyMore.perItem`,{sum:l(S.times(t*a[0]/(a[0]+a[1])))})}let n=r.getQuantityFromPartNo(m.value)>=a[0];n&&i>0&&t[i-1]&&(t[i-1].reached=!1),t.push({text:c(`buyMore.steps`,{buy:a[0],get:a[1]}),savings:o,limit:a[0],gainedAmount:a[1],reached:n,description:f.value?.description||``})}catch(e){console.log(e)}}),t.sort((e,t)=>e.limit>t.limit?1:-1)}),g=n(()=>p.value?[{text:p.value.text,description:p.value.description}]:[]),_=n(()=>{let e=null;for(let t of h.value)if(r.getQuantityFromPartNo(m.value)<t.limit){e=t;break}return e}),v=n(()=>{if(!o.isLoggedIn||!d.value.length)return[];let e=[],t=o.getPrice(m.value,!1);return d.value.forEach((n,i)=>{let a=C(n.code).split(`-`)[0].split(`get`);if(a.length!==2)console.error(`percentageCampaigns not correct formated`);else{let o=``;if(t.status===`ok`&&t.price?.priceBeforeDiscountBeforeVat)try{let e=parseFloat(t.price.priceBeforeDiscountBeforeVat.replace(`,`,``)),n=(100-parseFloat(a[1]))/100,r=(S.times(e,parseFloat(a[0]),n)/parseFloat(a[0])).toFixed(2);o=c(`buyMore.perItem`,{sum:l(r,!1)})}catch(e){console.log(e)}let s=r.getQuantityFromPartNo(m.value,!0)>=parseInt(a[0]);s&&i>0&&e[i-1]&&(e[i-1].reached=!1),e.push({text:n.text||``,savings:o,limit:parseInt(a[0]),gainedAmount:parseInt(a[1]),reached:s,description:n.description||``})}}),e.sort((e,t)=>e.limit>t.limit?1:-1)});return{stepCampaigns:h,percentageCampaigns:v,nextStep:_,nextPercent:n(()=>{let e=null;for(let t of v.value)if(r.getQuantityFromPartNo(m.value)<t.limit){e=t;break}return e}),giftCampaigns:g,hasCampaign:n(()=>h.value.length>0||v.value.length>0||g.value.length>0)}}var E=r(`/icons/info.svg`);export{T as n,l as r,E as t};
2//# sourceMappingURL=_X28BRf6.js.map

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.