"use strict";(globalThis.webpackChunksprachportal_at=globalThis.webpackChunksprachportal_at||[]).push([[485],{685:(t,e,r)=>{var n=r(705),o=r(708),i=r(533);function a(t){return a="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},a(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){var n;return n=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function E(){}var L={};f(L,c,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(q([])));S&&S!==r&&n.call(S,c)&&(L=S);var O=E.prototype=b.prototype=Object.create(L);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,c,u){var l=p(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=A(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function q(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=E,o(O,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=f(E,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,f(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},j(P.prototype),f(P.prototype,u,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(O),f(O,l,"Generator"),f(O,c,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=q,F.prototype={constructor:F,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:q(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function f(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,c,"next",t)}function c(t){f(i,n,o,a,c,"throw",t)}a(void 0)}))}}n.A.plugin(o.A),n.A.plugin(i.A),document.addEventListener("alpine:init",(function(){n.A.data("learningMaterials",(function(){return{filters:[],filterAction:"?type=1655298540&tx_sprachportallearningmaterial_learningmaterial[action]=filteredList",filtersBaseCategory:"",filtersPaginationString:"&tx_sprachportallearningmaterial_learningmaterial[currentPage]=1",filtersString:"",sortBaseString:"&tx_sprachportallearningmaterial_learningmaterial[sorting]=",sorting:"",showInitialPage:!0,isLoading:!1,data:"",init:function(){this.filtersBaseCategory=this.$refs.lmtrls.getAttribute("data-category"),this.filtersDetailPageUid=this.$refs.lmtrls.getAttribute("data-detailpageuid")},fetchData:function(){var t=arguments,e=this;return h(s().mark((function r(){var n;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:e.filtersPaginationString,r.next=3,fetch("/".concat(e.filterAction).concat(e.filtersDetailPageUid).concat(e.filtersBaseCategory).concat(e.filtersString).concat(e.sortBaseString).concat(e.sorting).concat(n),{headers:{"Content-Type":"text/html"}}).then((function(t){return e.showInitialPage=!1,e.isLoading=!1,t.text()})).then((function(t){return e.data=t,!0})).catch((function(){return e.hasError=!0,!1}));case 3:case"end":return r.stop()}}),r)})))()},filterData:function(){this.isLoading=!0;var t=this.filters.reduce((function(t,e){var r=e.split("=")[0],n=e.split("=")[1];return u(u({},t),{},l({},r,t[r]?"".concat(t[r],",").concat(n):n))}),{});return this.filtersString=Object.keys(t).map((function(e){return"&tx_sprachportallearningmaterial_learningmaterial[filter][".concat(e,"]=").concat(t[e])})).join(""),this.fetchData()},paginate:function(t){return this.isLoading=!0,this.$refs.lmtrls.scrollIntoView(),this.fetchData(t)},resetFilter:function(){return this.filters=[],this.filtersString="",this.isLoading=!0,this.fetchData()}}})),n.A.data("audioFiles",(function(){return{showAudioFile:!1,hasError:!1,code:"",url:"",fetchData:function(t){var e=this;return h(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch("/?type=1652180774&item=".concat(t,"&itemtype=file&code=").concat(e.code),{headers:{"Content-Type":"application/javascript"}}).then((function(t){if(!t.ok)throw e.hasError=!0,Error(t.statusText);return t.json()})).then((function(t){return e.hasError=!1,e.showAudioFile=!0,e.url=t,!0})).catch((function(){return e.hasError=!0,!1}));case 2:case"end":return r.stop()}}),r)})))()}}})),n.A.data("protectedFiles",(function(){return{showFile:!1,hasError:!1,code:"",url:"",fetchData:function(t){var e=this;return h(s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch("/?type=1652180774&item=".concat(t,"&itemtype=file&code=").concat(e.code),{headers:{"Content-Type":"application/javascript"}}).then((function(t){if(!t.ok)throw e.hasError=!0,Error(t.statusText);return t.json()})).then((function(t){return e.hasError=!1,e.showFile=!0,e.url=t,!0})).catch((function(){return e.hasError=!0,!1}));case 2:case"end":return r.stop()}}),r)})))()}}}))})),n.A.start();document.addEventListener("click",(function(t){t.target.getAttribute("data-file")&&function(t,e){var r=document.querySelector(e),n=r.getAttribute("data-src");switch(t){case"mp4":var o=document.createElement("source");o.setAttribute("src",n),o.setAttribute("type","video/mp4"),r.appendChild(o),r.play();break;case"youtube":case"vimeo":r.setAttribute("src",n);break;default:return}r.parentElement.removeChild(r.parentElement.querySelector(".ls-video__overlay"))}(t.target.getAttribute("data-file"),t.target.getAttribute("data-load-video"))})),document.querySelectorAll(".audio-player").forEach((function(t){!function(t){var e=t.querySelector("[data-audio='play']"),r=t.querySelector("[data-audio='track']"),n=t.querySelector("[data-audio='volume']"),o=t.querySelector("[data-audio='mute']"),i="play",a="unmute",c=t.querySelector("[data-audio='audio']"),u=t.querySelector("[data-audio='total']"),l=t.querySelector("[data-audio='current']"),s=null;e.addEventListener("click",(function(){"play"===i?(c.play(),e.classList.add("on"),requestAnimationFrame(y),i="pause"):(c.pause(),e.classList.remove("on"),cancelAnimationFrame(s),i="play")})),o.addEventListener("click",(function(){"unmute"===a?(c.muted=!0,o.classList.add("on"),a="mute"):(c.muted=!1,o.classList.remove("on"),a="unmute")}));var f=function(e){e===r?t.style.setProperty("--seek-before-width",e.value/e.max*100+"%"):t.style.setProperty("--volume-before-width",e.value/e.max*100+"%")};r.addEventListener("input",(function(t){f(t.target)})),n.addEventListener("input",(function(t){f(t.target)}));var h=function(t){var e=Math.floor(t/60),r=Math.floor(t%60),n=r<10?"0".concat(r):"".concat(r);return"".concat(e,":").concat(n)},p=function(){u.textContent=h(c.duration)},d=function(){r.max=Math.floor(c.duration)},y=function e(){r.value=Math.floor(c.currentTime),l.textContent=h(r.value),t.style.setProperty("--seek-before-width","".concat(r.value/r.max*100,"%")),s=requestAnimationFrame(e)};c.readyState>0?(p(),d()):c.addEventListener("loadedmetadata",(function(){p(),d()})),c.addEventListener("ended",(function(){i="play",e.classList.remove("on")})),r.addEventListener("input",(function(){c.currentTime=r.value,l.textContent=h(r.value),c.paused||cancelAnimationFrame(s)})),r.addEventListener("change",(function(){c.paused||requestAnimationFrame(y)})),n.addEventListener("input",(function(t){var e=t.target.value;c.volume=e/100}))}(t)}));var p=document.querySelector(".page-banner__scroll-down");p&&p.click(),function(){var t=document.querySelector(".to-top-btn");if(t){t.onclick=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},window.onscroll=function(){document.body.scrollTop>20||document.documentElement.scrollTop>20?t.style.display="flex":t.style.display="none"}}}()},453:()=>{},718:()=>{}},t=>{var e=e=>t(t.s=e);t.O(0,[398,805,380],(()=>(e(685),e(453),e(718))));t.O()}]);