2020-08-05 19:37:36 +00:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1:function(e,t,n){"use strict";n.r(t),n.d(t,"isRTL",(function(){return a})),n.d(t,"isMobile",(function(){return o})),n.d(t,"isDarkMode",(function(){return s})),n.d(t,"formatDate",(function(){return i})),n.d(t,"getParameterByName",(function(){return r})),n.d(t,"adjustImageGallery",(function(){return c})),n.d(t,"managePostImages",(function(){return l})),n.d(t,"makeImagesZoomable",(function(){return d}));var a=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},s=function(){var e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)");return e&&e.matches},i=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},r=function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]".concat(e,"(=([^&#]*)|&|#|$)")).exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},c=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t<n;t++){var a=e[t].closest(".kg-gallery-image"),o=e[t].attributes.width.value/e[t].attributes.height.value;a.style.flex="".concat(o," 1 0%")}},l=function(e){e(".js-post-content").find("img").each((function(){e(this).closest("figure").hasClass("kg-bookmark-card")||e(this).parent().is("a")||e(this).addClass("js-zoomable");var t=e(this).parent().find("figcaption");t?e(this).attr("alt",t.text()):e(this).attr("alt","")}))},d=function(e,t){var n=t(".js-zoomable");n.on("open",(function(t){o()&&e(t.target).parent().hasClass("kg-gallery-image")&&setTimeout((function(){var t=e(".medium-zoom-image--opened"),n=t[0].style.transform,a=n.substr(0,n.indexOf(" ")),o=parseFloat(a.substr(a.indexOf("(")+1).split(")")[0]),s=n.substr(n.indexOf(" ")+1),i=parseFloat(s.split(",")[1]),r="scale(1) translate3d(0, ".concat(i<0?o*i+i:o*i-i,"px, 0)");t.addClass("medium-zoom-image-mobile"),t[0].style.transform=r}),10)})),n.on("close",(function(){o()&&e(event.target).parent().hasClass("kg-gallery-image")&&e(".medium-zoom-image").removeClass("medium-zoom-image-mobile")}))}},13:function(e,t,n){e.exports=n(14)},14:function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a),s=n(8),i=n.n(s),r=n(2),c=n(6),l=n(3),d=n(10),u=n.n(d),m=n(11),h=n(1);o()(document).ready((function(){Object(h.isRTL)()&&o()("html").attr("dir","rtl").addClass("rtl");var e,t,n=o()("body"),a=o()(".js-header"),s=o()(".js-open-menu"),d=o()(".js-close-menu"),f=o()(".js-menu"),g=o()(".js-toggle-submenu"),p=o()(".js-submenu-option")[0],v=o()(".js-submenu"),b=o()(".js-recent-slider"),w=o()(".js-open-secondary-menu"),j=o()(".js-open-search"),k=o()(".js-close-search"),y=o()(".js-search"),C=o()(".js-input-search"),O=o()(".js-search-results"),T=o()(".js-no-results"),x=o()(".js-toggle-darkmode"),S=o()(".js-notification-close"),M=o()(".js-main-nav"),_=o()(".js-main-nav-left"),I=localStorage.getItem("theme"),L=null,A=!1,D=null,z=function(){a.removeClass("submenu-is-active"),g.removeClass("active"),v.removeClass("opened").addClass("closed")},B=function(){n.toggleClass("no-scroll-y")},E=function(e,t){var n=new GhostContentAPI({url:e,key:t,version:"v2"}),a=[],o={shouldSort:!0,ignoreLocation:!0,findAllMatches:!0,includeScore:!0,minMatchCharLength:2,keys:["title","custom_excerpt","tags.name"]};n.posts.browse({limit:"all",include:"tags",fields:"id, title, url, published_at, custom_excerpt"}).then((function(e){for(var t=0,n=e.length;t<n;t++)a.push(e[t]);L=new m.a(a,o)})).catch((function(e){console.log(e)}))},H=function(e){var t=o()('.js-alert[data-notification="'.concat(e,'"]'));t.addClass("opened"),setTimeout((function(){P(t)}),5e3)},P=function(e){e.removeClass("opened");var t=window.location.toString();if(t.indexOf("?")>0){var n=t.substring(0,t.indexOf("?"));window.history.replaceState({},document.title,n)}},R=function(e){Object(h.isMobile)()||(e?(M.addClass("toggle-overflow"),_
|