diff --git a/assets/js/app.js b/assets/js/app.js index 5c1a03b..cb65ac2 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1 +1 @@ -(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[773],{480:(t,e,n)=>{"use strict";var r=n(755),o=n.n(r),i=n(631),a=n.n(i),c=n(488),l=(n(418),n(433)),s=n(414),u=n(911),f=(n(350),n(769)),d=n(360),h=n.n(d);n(531);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===u)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function f(){}function d(){}function h(){}var v={};c(v,o,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(L([])));g&&g!==e&&n.call(g,o)&&(v=g);var b=h.prototype=f.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var l=s(t[o],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==p(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(c&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}function v(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n div > iframe")[0],I=localStorage.getItem("theme"),N=null,M=!1,q=null,Z=function(){e.removeClass("submenu-is-active"),p.removeClass("active"),b.removeClass("opened").addClass("closed")},G=function(){t.toggleClass("no-scroll-y")},H=function(){var t,e=(t=m().mark((function t(e,n){var r,o,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new s.Z({url:e,key:n,version:"v5.0"}),t.prev=1,t.next=4,r.posts.browse({limit:"all",include:"tags",fields:"id, title, url, published_at, plaintext"});case 4:return o=t.sent,t.next=7,r.pages.browse({limit:"all",include:"tags",fields:"id, title, url, published_at, plaintext"});case 7:i=t.sent,N=[].concat(v(i),v(o)),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[1,11]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){g(i,r,o,a,c,"next",t)}function c(t){g(i,r,o,a,c,"throw",t)}a(void 0)}))});return function(t,n){return e.apply(this,arguments)}}(),F=function(t){(0,f.tq)()||(t?(_.addClass("toggle-overflow"),O.addClass("toggle-overflow")):(_.removeClass("toggle-overflow"),O.removeClass("toggle-overflow")))};(r.on("click",(function(){e.addClass("mobile-menu-opened"),d.addClass("opened"),G()})),i.on("click",(function(){e.removeClass("mobile-menu-opened"),d.removeClass("opened"),G()})),p.on("click",(function(){(M=!M)?(e.addClass("submenu-is-active"),p.addClass("active"),b.removeClass("closed").addClass("opened")):Z()})),x.on("click",(function(){S.addClass("opened"),setTimeout((function(){E.trigger("focus")}),400),G()})),k.on("click",(function(){E.trigger("blur"),S.removeClass("opened"),G()})),E.on("keyup",(function(){if(E.val().length>0&&N){var t=h().go(E.val(),N,{keys:["title","plaintext"],limit:4}),e="";if(t.length>0){for(var n=0,r=t.length;n")-48;u>0&&(l="..."+l.slice(u)),l.length>c&&(l=l.slice(0,c),s=!0)}else l=t[n].obj.plaintext.slice(0,c),t[n].obj.plaintext.length>c&&(l=l.split(" ").slice(0,-1).join(" "),s=!0);(null===(o=l.match(//g))||void 0===o?void 0:o.length)>(null===(i=l.match(/<\/b>/g))||void 0===i?void 0:i.length)&&(l+=""),s&&(l+="..."),e+='\n ")}C.hide(),L.html(e),L.show()}else L.html(""),L.hide(),C.show()}else L.html(""),L.hide(),C.hide()})),A.on("change",(function(){A.is(":checked")?(o()("html").attr("data-theme","dark"),localStorage.setItem("theme","dark")):(o()("html").attr("data-theme","light"),localStorage.setItem("theme","light")),P&&P.contentDocument.location.reload(!0)})),A.on("mouseenter",(function(){F(!0)})),A.on("mouseleave",(function(){F(!1)})),o()(window).on("click",(function(t){M&&y&&!y.contains(t.target)&&(M=!1,Z())})),o()(document).on("keyup",(function(t){"Escape"===t.key&&S.hasClass("opened")&&k.trigger("click")})),I&&"dark"===I&&A.each((function(){o()(this).attr("checked",!0)})),e.length>0)&&new(a())(e[0],{tolerance:{down:10,up:20},offset:15,onUnpin:function(){if(!(0,f.tq)()&&q){var t=q[0];t&&t.state.isVisible&&t.hide()}}}).init();if(n.length>0){e.addClass("with-announcement-bar"),setTimeout((function(){e.removeAttr("data-animate")}),500);var z=new MutationObserver((function(t){if(t[0].addedNodes.length){n.detach().prependTo(e);var r=n.height();document.documentElement.style.setProperty("--announcement-bar-height","".concat(r,"px"))}t[0].removedNodes.length&&document.documentElement.style.setProperty("--announcement-bar-height","0px")})),R=new ResizeObserver((function(t){t.forEach((function(t){var e=t.contentRect.height;document.documentElement.style.setProperty("--announcement-bar-height","".concat(e,"px"))}))}));z.observe(n[0],{childList:!0}),R.observe(n[0])}else setTimeout((function(){e.removeAttr("data-animate")}),500);if(w.length>0)new u.ZP(".js-recent-slider",{modules:[u.Rv,u.s5],freeMode:!0,slidesPerView:"auto",a11y:!0,on:{init:function(){(0,l.Z)(".js-recent-article-title",50)}}});if(j.length>0){var U=document.getElementById("secondary-navigation-template");q=(0,c.ZP)(".js-open-secondary-menu",{appendTo:document.body,content:U.innerHTML,allowHTML:!0,arrow:!0,trigger:"click",interactive:!0,onShow:function(){F(!0)},onHidden:function(){F(!1)}})}(0,c.ZP)(".js-tooltip",{allowHTML:!0}),(0,l.Z)(".js-article-card-title",100),(0,l.Z)(".js-article-card-title-no-image",250),"undefined"!=typeof disableNewsletter&&disableNewsletter&&T.remove(),"undefined"!=typeof ghostSearchApiKey&&"undefined"==typeof nativeSearchEnabled?H(ghostHost,ghostSearchApiKey):(x.css("visibility","hidden"),k.remove(),S.remove())}))},769:(t,e,n)=>{"use strict";n.d(e,{dZ:()=>r,e:()=>i,eS:()=>a,ej:()=>c,tq:()=>o});var r=function(){var t=document.querySelector("html");return["ar","he","fa"].includes(t.getAttribute("lang"))},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(t,")")).matches},i=function(){for(var t=document.querySelectorAll(".kg-gallery-image img"),e=0,n=t.length;e1&&e.last().hide()}),10)}))}},531:()=>{function t(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw a}}}}function e(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n'),n=i('
');c(e,(function(){return v(t,1)})),c(n,(function(){return v(t,-1)})),t.append(n,e)};for(g.s();!(y=g.n()).done;)b()}catch(t){g.e(t)}finally{g.f()}c(f,(function(){console.log({cart:r,items:s.map((function(t){return{id:t.dataset.id,count:h(t)}}))}),d&&d.style.setProperty("display","flex")}))};document.addEventListener("DOMContentLoaded",(function(){var e,n=t(document.querySelectorAll(".paypal-cart"));try{for(n.s();!(e=n.n()).done;){var r=e.value;l(r)}}catch(t){n.e(t)}finally{n.f()}}))}},t=>{t.O(0,[898],(()=>{return e=480,t(t.s=e);var e}));t.O()}]); \ No newline at end of file +"use strict";(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[773],{480:(e,t,n)=>{var o=n(755),s=n.n(o),a=n(631),i=n.n(a),l=n(488),c=(n(418),n(433)),r=n(414),u=n(125),d=n(911),m=(n(350),n(769));s()((function(){(0,m.dZ)()&&s()("html").attr("dir","rtl").addClass("rtl");var e=s()("body"),t=s()(".js-header"),n=s()("#announcement-bar-root"),o=s()(".js-open-menu"),a=s()(".js-close-menu"),h=s()(".js-menu"),g=s()(".js-toggle-submenu"),f=s()(".js-submenu-option")[0],v=s()(".js-submenu"),p=s()(".js-recent-slider"),b=s()(".js-open-secondary-menu"),k=s()(".js-open-search"),w=s()(".js-close-search"),y=s()(".js-search"),j=s()(".js-input-search"),C=s()(".js-search-results"),S=s()(".js-no-results"),Z=s()(".js-toggle-darkmode"),_=s()(".js-main-nav"),T=s()(".js-main-nav-left"),x=s()(".js-newsletter"),E=s()(".js-native-comments > div > iframe")[0],M=localStorage.getItem("theme"),A=null,L=!1,P=null,q=function(){t.removeClass("submenu-is-active"),g.removeClass("active"),v.removeClass("opened").addClass("closed")},H=function(){e.toggleClass("no-scroll-y")},z=function(e,t){var n=new r.Z({url:e,key:t,version:"v5.0"}),o=[],s={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;t0&&A){var e=A.search(j.val()).filter((function(e){if(e.score<=.5)return e})),t="";if(e.length>0){for(var n=0,o=e.length;n

').concat(e[n].item.title,'

').concat((0,m.p6)(e[n].item.published_at),"
");S.hide(),C.html(t),C.show()}else C.html(""),C.hide(),S.show()}else C.html(""),C.hide(),S.hide()})),Z.on("change",(function(){Z.is(":checked")?(s()("html").attr("data-theme","dark"),localStorage.setItem("theme","dark")):(s()("html").attr("data-theme","light"),localStorage.setItem("theme","light")),E&&E.contentDocument.location.reload(!0)})),Z.on("mouseenter",(function(){I(!0)})),Z.on("mouseleave",(function(){I(!1)})),s()(window).on("click",(function(e){L&&f&&!f.contains(e.target)&&(L=!1,q())})),s()(document).on("keyup",(function(e){"Escape"===e.key&&y.hasClass("opened")&&w.trigger("click")})),M&&"dark"===M&&Z.each((function(){s()(this).attr("checked",!0)})),t.length>0)&&new(i())(t[0],{tolerance:{down:10,up:20},offset:15,onUnpin:function(){if(!(0,m.tq)()&&P){var e=P[0];e&&e.state.isVisible&&e.hide()}}}).init();if(n.length>0){t.addClass("with-announcement-bar"),setTimeout((function(){t.removeAttr("data-animate")}),500);var N=new MutationObserver((function(e){if(e[0].addedNodes.length){n.detach().prependTo(t);var o=n.height();document.documentElement.style.setProperty("--announcement-bar-height","".concat(o,"px"))}e[0].removedNodes.length&&document.documentElement.style.setProperty("--announcement-bar-height","0px")})),O=new ResizeObserver((function(e){e.forEach((function(e){var t=e.contentRect.height;document.documentElement.style.setProperty("--announcement-bar-height","".concat(t,"px"))}))}));N.observe(n[0],{childList:!0}),O.observe(n[0])}else setTimeout((function(){t.removeAttr("data-animate")}),500);if(p.length>0)new d.ZP(".js-recent-slider",{modules:[d.Rv,d.s5],freeMode:!0,slidesPerView:"auto",a11y:!0,on:{init:function(){(0,c.Z)(".js-recent-article-title",50)}}});if(b.length>0){var D=document.getElementById("secondary-navigation-template");P=(0,l.ZP)(".js-open-secondary-menu",{appendTo:document.body,content:D.innerHTML,allowHTML:!0,arrow:!0,trigger:"click",interactive:!0,onShow:function(){I(!0)},onHidden:function(){I(!1)}})}(0,l.ZP)(".js-tooltip",{allowHTML:!0}),(0,c.Z)(".js-article-card-title",100),(0,c.Z)(".js-article-card-title-no-image",250),"undefined"!=typeof disableNewsletter&&disableNewsletter&&x.remove(),"undefined"!=typeof ghostSearchApiKey&&"undefined"==typeof nativeSearchEnabled?z(ghostHost,ghostSearchApiKey):(k.css("visibility","hidden"),w.remove(),y.remove())}))},769:(e,t,n)=>{n.d(t,{dZ:()=>o,e:()=>i,eS:()=>l,ej:()=>c,p6:()=>a,tq:()=>s});var o=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},a=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},i=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t1&&t.last().hide()}),10)}))}}},e=>{e.O(0,[898],(()=>{return t=480,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/helpers.js b/assets/js/helpers.js index 5847796..6876530 100644 --- a/assets/js/helpers.js +++ b/assets/js/helpers.js @@ -1 +1 @@ -"use strict";(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[151],{769:(e,t,a)=>{a.d(t,{dZ:()=>i,e:()=>n,eS:()=>l,ej:()=>o,tq:()=>s});var i=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},n=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,a=e.length;t1&&t.last().hide()}),10)}))}},214:()=>{},550:()=>{},823:()=>{},140:()=>{},521:()=>{},305:()=>{},672:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[459,698,724,449,170,87,882],(()=>(t(769),t(823),t(140),t(521),t(305),t(672),t(214),t(550))));e.O()}]); \ No newline at end of file +"use strict";(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[151],{769:(e,t,a)=>{a.d(t,{dZ:()=>n,e:()=>o,eS:()=>l,ej:()=>c,p6:()=>s,tq:()=>i});var n=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},s=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},o=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,a=e.length;t1&&t.last().hide()}),10)}))}},214:()=>{},550:()=>{},823:()=>{},140:()=>{},521:()=>{},305:()=>{},672:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[459,698,724,449,170,87,882],(()=>(t(769),t(823),t(140),t(521),t(305),t(672),t(214),t(550))));e.O()}]); \ No newline at end of file diff --git a/assets/js/page.js b/assets/js/page.js index 341aea6..912903d 100644 --- a/assets/js/page.js +++ b/assets/js/page.js @@ -1 +1 @@ -"use strict";(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[321],{769:(e,t,a)=>{a.d(t,{dZ:()=>n,e:()=>i,eS:()=>o,ej:()=>l,tq:()=>s});var n=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},i=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,a=e.length;t1&&t.last().hide()}),10)}))}},209:(e,t,a)=>{var n=a(755),s=a.n(n),i=a(729),o=a.n(i),l=a(557),r=a(769);s()((function(){o()(".js-post-content"),(0,r.e)(),(0,r.eS)(s()),(0,r.ej)(s(),l.Z)}))}},e=>{e.O(0,[898],(()=>{return t=209,e(e.s=t);var t}));e.O()}]); \ No newline at end of file +"use strict";(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[321],{769:(e,t,n)=>{n.d(t,{dZ:()=>a,e:()=>s,eS:()=>l,ej:()=>r,p6:()=>o,tq:()=>i});var a=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},o=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},s=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t1&&t.last().hide()}),10)}))}},209:(e,t,n)=>{var a=n(755),i=n.n(a),o=n(729),s=n.n(o),l=n(557),r=n(769);i()((function(){s()(".js-post-content"),(0,r.e)(),(0,r.eS)(i()),(0,r.ej)(i(),l.Z)}))}},e=>{e.O(0,[898],(()=>{return t=209,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/post.js b/assets/js/post.js index f6afac7..c166786 100644 --- a/assets/js/post.js +++ b/assets/js/post.js @@ -1 +1 @@ -"use strict";(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[571],{769:(e,t,n)=>{n.d(t,{dZ:()=>i,e:()=>a,eS:()=>s,ej:()=>l,tq:()=>o});var i=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},a=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t1&&t.last().hide()}),10)}))}},717:(e,t,n)=>{var i=n(755),o=n.n(i),a=n(557),s=n(729),l=n.n(s),r=n(433),c=n(911),u=(n(350),n(769)),d=null,h=null,f=window.pageYOffset,m=0,p=0,v=0,g=!1,w=function(){f=window.pageYOffset,b()},y=function(e){(0,u.tq)("1023px")?(o()("body").addClass("share-menu-displayed"),setTimeout((function(){d.removeAttr("data-animate")}),e)):o()("body").removeClass("share-menu-displayed")},k=function(){C(),y(100),setTimeout((function(){x(),b()}),200)},b=function(){g||requestAnimationFrame(j),g=!0},j=function(){var e=p-m,t=Math.ceil(f/e*100);t<=100&&T(t),g=!1},C=function(){m=window.innerHeight,p=o()(document).height()},x=function(){var e,t;if(null!==(e=h)&&void 0!==e&&null!==(t=e[0])&&void 0!==t&&t.style){var n=h.parent().width(),i=n/2,o=(0,u.tq)()?2:3;h.parent().attr("viewBox","0 0 ".concat(n," ").concat(n)),h.attr("stroke-width",o),h.attr("r",i-(o-1)),h.attr("cx",i),h.attr("cy",i),v=2*i*Math.PI,h[0].style.strokeDasharray="".concat(v," ").concat(v),h[0].style.strokeDashoffset=v}},T=function(e){var t,n;if(null!==(t=h)&&void 0!==t&&null!==(n=t[0])&&void 0!==n&&n.style&&e<=100){var i=v-e/100*v;h[0].style.strokeDashoffset=i}};o()((function(){d=o()(".js-animation-wrapper");var e=o()(".js-scrolltop"),t=o()(".js-recommended-slider");if(l()(".js-post-content"),(0,u.e)(),y(1e3),t.length>0)new c.ZP(".js-recommended-slider",{modules:[c.W_,c.s5],navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},slidesPerView:1,allowTouchMove:!0,loop:!0,a11y:!0,breakpoints:{720:{slidesPerView:2,allowTouchMove:!0,loop:!0},1024:{slidesPerView:3,allowTouchMove:!1,loop:!1}},on:{init:function(){(0,r.Z)(".js-article-card-title",100),(0,r.Z)(".js-article-card-title-no-image",250)}}});(0,r.Z)(".js-article-card-title",100),(0,r.Z)(".js-article-card-title-no-image",250),e.on("click",(function(){o()("html, body").animate({scrollTop:0},500)})),(0,u.eS)(o()),(0,u.ej)(o(),a.Z),window.addEventListener("scroll",w,{passive:!0}),window.addEventListener("resize",k,{passive:!0})})),o()(window).on("load",(function(){(h=o()(".js-progress"))&&(C(),x(),j(),setTimeout((function(){h.parent().css("opacity",1)}),300))}))}},e=>{e.O(0,[898],(()=>{return t=717,e(e.s=t);var t}));e.O()}]); \ No newline at end of file +"use strict";(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[571],{769:(e,t,n)=>{n.d(t,{dZ:()=>o,e:()=>s,eS:()=>r,ej:()=>l,p6:()=>a,tq:()=>i});var o=function(){var e=document.querySelector("html");return["ar","he","fa"].includes(e.getAttribute("lang"))},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"768px";return window.matchMedia("(max-width: ".concat(e,")")).matches},a=function(e){return e?new Date(e).toLocaleDateString(document.documentElement.lang,{year:"numeric",month:"long",day:"numeric"}):""},s=function(){for(var e=document.querySelectorAll(".kg-gallery-image img"),t=0,n=e.length;t1&&t.last().hide()}),10)}))}},717:(e,t,n)=>{var o=n(755),i=n.n(o),a=n(557),s=n(729),r=n.n(s),l=n(433),c=n(911),u=(n(350),n(769)),d=null,m=null,h=window.pageYOffset,f=0,g=0,p=0,v=!1,w=function(){h=window.pageYOffset,b()},y=function(e){(0,u.tq)("1023px")?(i()("body").addClass("share-menu-displayed"),setTimeout((function(){d.removeAttr("data-animate")}),e)):i()("body").removeClass("share-menu-displayed")},k=function(){C(),y(100),setTimeout((function(){x(),b()}),200)},b=function(){v||requestAnimationFrame(j),v=!0},j=function(){var e=g-f,t=Math.ceil(h/e*100);t<=100&&T(t),v=!1},C=function(){f=window.innerHeight,g=i()(document).height()},x=function(){var e,t;if(null!==(e=m)&&void 0!==e&&null!==(t=e[0])&&void 0!==t&&t.style){var n=m.parent().width(),o=n/2,i=(0,u.tq)()?2:3;m.parent().attr("viewBox","0 0 ".concat(n," ").concat(n)),m.attr("stroke-width",i),m.attr("r",o-(i-1)),m.attr("cx",o),m.attr("cy",o),p=2*o*Math.PI,m[0].style.strokeDasharray="".concat(p," ").concat(p),m[0].style.strokeDashoffset=p}},T=function(e){var t,n;if(null!==(t=m)&&void 0!==t&&null!==(n=t[0])&&void 0!==n&&n.style&&e<=100){var o=p-e/100*p;m[0].style.strokeDashoffset=o}};i()((function(){d=i()(".js-animation-wrapper");var e=i()(".js-scrolltop"),t=i()(".js-recommended-slider");if(r()(".js-post-content"),(0,u.e)(),y(1e3),t.length>0)new c.ZP(".js-recommended-slider",{modules:[c.W_,c.s5],navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},slidesPerView:1,allowTouchMove:!0,loop:!0,a11y:!0,breakpoints:{720:{slidesPerView:2,allowTouchMove:!0,loop:!0},1024:{slidesPerView:3,allowTouchMove:!1,loop:!1}},on:{init:function(){(0,l.Z)(".js-article-card-title",100),(0,l.Z)(".js-article-card-title-no-image",250)}}});(0,l.Z)(".js-article-card-title",100),(0,l.Z)(".js-article-card-title-no-image",250),e.on("click",(function(){i()("html, body").animate({scrollTop:0},500)})),(0,u.eS)(i()),(0,u.ej)(i(),a.Z),window.addEventListener("scroll",w,{passive:!0}),window.addEventListener("resize",k,{passive:!0})})),i()(window).on("load",(function(){(m=i()(".js-progress"))&&(C(),x(),j(),setTimeout((function(){m.parent().css("opacity",1)}),300))}))}},e=>{e.O(0,[898],(()=>{return t=717,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/vendor.js b/assets/js/vendor.js index a05de37..129bb0d 100644 --- a/assets/js/vendor.js +++ b/assets/js/vendor.js @@ -1,18 +1,18 @@ -(self.webpackChunkliebling=self.webpackChunkliebling||[]).push([[898],{414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>yl});var r=n(764).lW,i=n(155);var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function s(e,t){return e(t={exports:{}},t.exports),t.exports}var a,l,c=function(e){return e&&e.Math==Math&&e},u=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof o&&o)||function(){return this}()||Function("return this")(),f=function(e){try{return!!e()}catch(e){return!0}},d=!f((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=!f((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),h=Function.prototype.call,m=p?h.bind(h):function(){return h.apply(h,arguments)},g={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y=v&&!g.call({1:2},1)?function(e){var t=v(this,e);return!!t&&t.enumerable}:g,b={f:y},w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x=Function.prototype,E=x.bind,T=x.call,A=p&&E.bind(T,T),C=p?function(e){return e&&A(e)}:function(e){return e&&function(){return T.apply(e,arguments)}},S=C({}.toString),O=C("".slice),k=function(e){return O(S(e),8,-1)},L=Object,j=C("".split),M=f((function(){return!L("z").propertyIsEnumerable(0)}))?function(e){return"String"==k(e)?j(e,""):L(e)}:L,P=TypeError,N=function(e){if(null==e)throw P("Can't call method on "+e);return e},D=function(e){return M(N(e))},R=function(e){return"function"==typeof e},B=function(e){return"object"==typeof e?null!==e:R(e)},I=function(e){return R(e)?e:void 0},z=function(e,t){return arguments.length<2?I(u[e]):u[e]&&u[e][t]},H=C({}.isPrototypeOf),_=z("navigator","userAgent")||"",q=u.process,$=u.Deno,U=q&&q.versions||$&&$.version,F=U&&U.v8;F&&(l=(a=F.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!l&&_&&(!(a=_.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=_.match(/Chrome\/(\d+)/))&&(l=+a[1]);var W=l,G=!!Object.getOwnPropertySymbols&&!f((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=Object,X=V?function(e){return"symbol"==typeof e}:function(e){var t=z("Symbol");return R(t)&&H(t.prototype,Y(e))},Q=String,Z=function(e){try{return Q(e)}catch(e){return"Object"}},J=TypeError,K=function(e){if(R(e))return e;throw J(Z(e)+" is not a function")},ee=function(e,t){var n=e[t];return null==n?void 0:K(n)},te=TypeError,ne=Object.defineProperty,re=function(e,t){try{ne(u,e,{value:t,configurable:!0,writable:!0})}catch(n){u[e]=t}return t},ie="__core-js_shared__",oe=u[ie]||re(ie,{}),se=s((function(e){(e.exports=function(e,t){return oe[e]||(oe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ae=Object,le=function(e){return ae(N(e))},ce=C({}.hasOwnProperty),ue=Object.hasOwn||function(e,t){return ce(le(e),t)},fe=0,de=Math.random(),pe=C(1..toString),he=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pe(++fe+de,36)},me=se("wks"),ge=u.Symbol,ve=ge&&ge.for,ye=V?ge:ge&&ge.withoutSetter||he,be=function(e){if(!ue(me,e)||!G&&"string"!=typeof me[e]){var t="Symbol."+e;G&&ue(ge,e)?me[e]=ge[e]:me[e]=V&&ve?ve(t):ye(t)}return me[e]},we=TypeError,xe=be("toPrimitive"),Ee=function(e,t){if(!B(e)||X(e))return e;var n,r=ee(e,xe);if(r){if(void 0===t&&(t="default"),n=m(r,e,t),!B(n)||X(n))return n;throw we("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&R(n=e.toString)&&!B(r=m(n,e)))return r;if(R(n=e.valueOf)&&!B(r=m(n,e)))return r;if("string"!==t&&R(n=e.toString)&&!B(r=m(n,e)))return r;throw te("Can't convert object to primitive value")}(e,t)},Te=function(e){var t=Ee(e,"string");return X(t)?t:t+""},Ae=u.document,Ce=B(Ae)&&B(Ae.createElement),Se=function(e){return Ce?Ae.createElement(e):{}},Oe=!d&&!f((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),ke=Object.getOwnPropertyDescriptor,Le={f:d?ke:function(e,t){if(e=D(e),t=Te(t),Oe)try{return ke(e,t)}catch(e){}if(ue(e,t))return w(!m(b.f,e,t),e[t])}},je=d&&f((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Me=String,Pe=TypeError,Ne=function(e){if(B(e))return e;throw Pe(Me(e)+" is not an object")},De=TypeError,Re=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Ie="enumerable",ze="configurable",He="writable",_e={f:d?je?function(e,t,n){if(Ne(e),t=Te(t),Ne(n),"function"==typeof e&&"prototype"===t&&"value"in n&&He in n&&!n.writable){var r=Be(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:ze in n?n.configurable:r.configurable,enumerable:Ie in n?n.enumerable:r.enumerable,writable:!1})}return Re(e,t,n)}:Re:function(e,t,n){if(Ne(e),t=Te(t),Ne(n),Oe)try{return Re(e,t,n)}catch(e){}if("get"in n||"set"in n)throw De("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},qe=d?function(e,t,n){return _e.f(e,t,w(1,n))}:function(e,t,n){return e[t]=n,e},$e=Function.prototype,Ue=d&&Object.getOwnPropertyDescriptor,Fe=ue($e,"name"),We={EXISTS:Fe,PROPER:Fe&&"something"===function(){}.name,CONFIGURABLE:Fe&&(!d||d&&Ue($e,"name").configurable)},Ge=C(Function.toString);R(oe.inspectSource)||(oe.inspectSource=function(e){return Ge(e)});var Ve,Ye,Xe,Qe=oe.inspectSource,Ze=u.WeakMap,Je=R(Ze)&&/native code/.test(Qe(Ze)),Ke=se("keys"),et=function(e){return Ke[e]||(Ke[e]=he(e))},tt={},nt="Object already initialized",rt=u.TypeError,it=u.WeakMap;if(Je||oe.state){var ot=oe.state||(oe.state=new it),st=C(ot.get),at=C(ot.has),lt=C(ot.set);Ve=function(e,t){if(at(ot,e))throw new rt(nt);return t.facade=e,lt(ot,e,t),t},Ye=function(e){return st(ot,e)||{}},Xe=function(e){return at(ot,e)}}else{var ct=et("state");tt[ct]=!0,Ve=function(e,t){if(ue(e,ct))throw new rt(nt);return t.facade=e,qe(e,ct,t),t},Ye=function(e){return ue(e,ct)?e[ct]:{}},Xe=function(e){return ue(e,ct)}}var ut={set:Ve,get:Ye,has:Xe,enforce:function(e){return Xe(e)?Ye(e):Ve(e,{})},getterFor:function(e){return function(t){var n;if(!B(t)||(n=Ye(t)).type!==e)throw rt("Incompatible receiver, "+e+" required");return n}}},ft=s((function(e){var t=We.CONFIGURABLE,n=ut.enforce,r=ut.get,i=Object.defineProperty,o=d&&!f((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),a=e.exports=function(e,r,a){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(r="get "+r),a&&a.setter&&(r="set "+r),(!ue(e,"name")||t&&e.name!==r)&&(d?i(e,"name",{value:r,configurable:!0}):e.name=r),o&&a&&ue(a,"arity")&&e.length!==a.arity&&i(e,"length",{value:a.arity});try{a&&ue(a,"constructor")&&a.constructor?d&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=n(e);return ue(l,"source")||(l.source=s.join("string"==typeof r?r:"")),e};Function.prototype.toString=a((function(){return R(this)&&r(this).source||Qe(this)}),"toString")})),dt=function(e,t,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:t;if(R(n)&&ft(n,o,r),r.global)i?e[t]=n:re(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:_e.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},pt=Math.ceil,ht=Math.floor,mt=Math.trunc||function(e){var t=+e;return(t>0?ht:pt)(t)},gt=function(e){var t=+e;return t!=t||0===t?0:mt(t)},vt=Math.max,yt=Math.min,bt=Math.min,wt=function(e){return e>0?bt(gt(e),9007199254740991):0},xt=function(e){return wt(e.length)},Et=function(e){return function(t,n,r){var i,o=D(t),s=xt(o),a=function(e,t){var n=gt(e);return n<0?vt(n+t,0):yt(n,t)}(r,s);if(e&&n!=n){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===n)return e||a||0;return!e&&-1}},Tt={includes:Et(!0),indexOf:Et(!1)},At=Tt.indexOf,Ct=C([].push),St=function(e,t){var n,r=D(e),i=0,o=[];for(n in r)!ue(tt,n)&&ue(r,n)&&Ct(o,n);for(;t.length>i;)ue(r,n=t[i++])&&(~At(o,n)||Ct(o,n));return o},Ot=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kt=Ot.concat("length","prototype"),Lt={f:Object.getOwnPropertyNames||function(e){return St(e,kt)}},jt={f:Object.getOwnPropertySymbols},Mt=C([].concat),Pt=z("Reflect","ownKeys")||function(e){var t=Lt.f(Ne(e)),n=jt.f;return n?Mt(t,n(e)):t},Nt=function(e,t,n){for(var r=Pt(t),i=_e.f,o=Le.f,s=0;ss;)_e.f(e,n=i[s++],r[n]);return e},sn={f:on},an=z("document","documentElement"),ln=et("IE_PROTO"),cn=function(){},un=function(e){return"