liebling/assets/js/helpers.js
2020-04-15 11:59:06 +02:00

1 line
1.1 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1:function(n,e,t){"use strict";t.r(e),t.d(e,"isRTL",(function(){return r})),t.d(e,"isMobile",(function(){return o})),t.d(e,"isDarkMode",(function(){return c})),t.d(e,"formatDate",(function(){return a})),t.d(e,"getParameterByName",(function(){return i}));var r=function(){var n=document.querySelector("html");return["ar","he","fa"].includes(n.getAttribute("lang"))},o=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(n,")")).matches},c=function(){var n=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return n&&n.matches},a=function(n){return n?new Date(n).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},i=function(n,e){e||(e=window.location.href),n=n.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]".concat(n,"(=([^&#]*)|&|#|$)")).exec(e);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}},15:function(n,e,t){t(1),n.exports=t(25)},25:function(n,e){}},[[15,0,1]]]);