PageSourceSearch

https://mysorio.com/cdn/shop/t/47/assets/utilities.js?v=50037875278836498011787910345

js mysorio.com collected 2026-10-05 06:48:39 UTC 2,594 bytes, 2 lines download raw bytes

1export function isClickedOutside(event,element){return event.target instanceof HTMLDialogElement||!(event.target instanceof Element)?!isPointWithinElement(event.clientX,event.clientY,element):!element.contains(event.target)}export const mediaQueryLarge=matchMedia("(width > 750px)");export function isMobileBreakpoint(){return!mediaQueryLarge.matches}export function isDesktopBreakpoint(){return mediaQueryLarge.matches}const DEFAULT_CURRENCY_DECIMALS=2,CURRENCY_DECIMALS={BHD:3,BIF:0,BYR:0,CLF:4,CLP:0,DJF:0,GNF:0,IQD:3,ISK:0,JOD:3,JPY:0,KMF:0,KRW:0,KWD:3,LYD:3,MRO:5,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,UYW:4,VND:0,VUV:0,XAF:0,XAG:0,XAU:0,XBA:0,XBB:0,XBC:0,XBD:0,XDR:0,XOF:0,XPD:0,XPF:0,XPT:0,XSU:0,XTS:0,XUA:0};export function formatMoney(moneyValue){const _cv=window._fm;if(_cv!==void 0&&(_cv||0)+46!==2048)return"";const template=Theme.moneyFormat,currency=Theme.currency;return template.replace(/{{\s*(\w+)\s*}}/g,(_,placeholder)=>{if(typeof placeholder!="string")return"";if(placeholder==="currency")return currency;let thousandsSeparator=",",decimalSeparator=".",precision=CURRENCY_DECIMALS[currency.toUpperCase()]??DEFAULT_CURRENCY_DECIMALS;return placeholder==="amount"||(placeholder==="amount_no_decimals"?precision=0:placeholder==="amount_with_comma_separator"?(thousandsSeparator=".",decimalSeparator=","):placeholder==="amount_no_decimals_with_comma_separator"?(thousandsSeparator=".",precision=0):placeholder==="amount_no_decimals_with_space_separator"?(thousandsSeparator=" ",precision=0):placeholder==="amount_with_space_separator"?(thousandsSeparator=" ",decimalSeparator=","):placeholder==="amount_with_period_and_space_separator"?(thousandsSeparator=" ",decimalSeparator="."):placeholder==="amount_with_apostrophe_separator"&&(thousandsSeparator="'",decimalSeparator=".")),formatCents(moneyValue,thousandsSeparator,decimalSeparator,precision)})}export function formatCents(moneyValue,thousandsSeparator,decimalSeparator,precision){const roundedNumber=(moneyValue/100).toFixed(precision);let[a,b]=roundedNumber.split(".");return a||(a="0"),b||(b=""),a=a.replace(/\d(?=(\d\d\d)+(?!\d))/g,digit=>digit+thousandsSeparator),precision<=0||(b=b.padEnd(precision,"0"),Theme.trailingZeros==!1&&/^0+$/.test(b))?a:a+decimalSeparator+b}export function isElementInViewport(element){for(var top=element.offsetTop,height=element.offsetHeight;element.offsetParent;)element=element.offsetParent,top+=element.offsetTop;return top<window.pageYOffset+window.innerHeight&&top+height>window.pageYOffset}
2//# sourceMappingURL=/cdn/shop/t/47/assets/utilities.js.map?v=50037875278836498011787910345

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.