"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[24357,26472,40501,62882,73405,96084],{36720:function(e,t,n){n.d(t,{_r:function(){return l},t5:function(){return o}});var a=n(94732),r=n(80401),i=n(69410),o="Configuration",l=function(){var e=(0,i.gf)().api;return(0,r.I)({queryKey:[o],queryFn:function(t){var n=t.signal;return function(e,t){return n=void 0,r=void 0,o=function(){return function(e,t){var n,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]"+i.DisplayName+""}e.innerHTML=n}(e.querySelector("#selectLanguage"),n),function(e,t){var n="";n+="";for(var a=0,r=t.length;a"+i.DisplayName+""}e.innerHTML=n}(e.querySelector("#selectCountry"),r),e.querySelector("#selectLanguage").value=t.PreferredMetadataLanguage,e.querySelector("#selectCountry").value=t.MetadataCountryCode,a.Ay.hide()}(e,t[0],t[1],t[2])}))}(this)})),e.addEventListener("viewhide",(function(){document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")}))}n(10353),n(77157),n(63001)},62882:function(e,t,n){n.r(t),n.d(t,{show:function(){return d}});var a=n(22696),r=n.n(a),i=n(79754),o=n(46782),l=n(5898),c=n(36300),s=(n(10353),function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")});function u(e,t,a){Promise.resolve().then(n.bind(n,10838)).then((function(n){var r=a?"on":"off";n.centerFocus[r](e,t)})).catch((function(e){console.warn("Error in centerFocus",e)}))}function d(e){var t,n,a,d={removeOnClose:!0,enableHistory:e.enableHistory,scrollY:!1};o.A.tv?(d.size="fullscreen",a=!0,d.autoFocus=!0):(d.modal=!1,d.entryAnimation=e.entryAnimation,d.exitAnimation=e.exitAnimation,d.entryAnimationDuration=e.entryAnimationDuration||140,d.exitAnimationDuration=e.exitAnimationDuration||100,d.autoFocus=!1);var f=i.default.createDialog(d);a?f.classList.add("actionsheet-fullscreen"):f.classList.add("actionsheet-not-fullscreen"),f.classList.add("actionSheet"),e.dialogClass&&f.classList.add(e.dialogClass);var h="",v=o.A.tv?"scrollY smoothScrollY hiddenScrollY":"scrollY",y="";e.items.length>20&&(y+="min-width:"+(c.Ay.getWindowSize().innerWidth>=300?240:200)+"px;");var p,b=!1,m=[];try{for(var g=s(e.items),A=g.next();!A.done;A=g.next())(p=(L=A.value).icon||(L.selected?"check":null))&&(b=!0),m.push(p||"")}catch(e){t={error:e}}finally{try{A&&!A.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}o.A.tv&&(h+=''));var S=e.title&&!b;S||o.A.tv?h+='
':h+='
',e.title&&(h+='

'+r()(e.title)+"

"),e.text&&(h+='

'+r()(e.text)+"

");var x="actionSheetScroller";o.A.tv&&(x+=" actionSheetScroller-tv focuscontainer-x focuscontainer-y"),h+='
';var w="listItem listItem-button actionSheetMenuItem";(e.border||e.shaded)&&(w+=" listItem-border"),e.menuItemClass&&(w+=" "+e.menuItemClass),o.A.tv&&(w+=" listItem-focusscale"),o.A.mobile&&(w+=" actionsheet-xlargeFont");for(var C=0;C
':(h+="',(p=m[C])?h+=''):b&&!S&&(h+=''),h+='
',h+='
',h+=r()(L.name||L.textContent||L.innerText),h+="
",L.secondaryText&&(h+='
'.concat(r()(L.secondaryText),"
")),h+="
",L.asideText&&(h+='
'.concat(r()(L.asideText),"
")),h+="")}if(e.showCancel&&(h+='
',h+='"),h+="
"),h+="
",f.innerHTML=h,o.A.tv){var k=f.querySelector(".actionSheetScroller");k&&u(k,!1,!0)}var I=f.querySelector(".btnCloseActionSheet");I&&I.addEventListener("click",(function(){i.default.close(f)}));var P,T=null;return e.timeout&&(P=setTimeout((function(){i.default.close(f)}),e.timeout)),new Promise((function(t,n){var a=!1;f.addEventListener("click",(function(n){var r=c.Ay.parentWithClass(n.target,"actionSheetMenuItem");r&&(T=r.getAttribute("data-id"),e.resolveOnClick&&(Array.isArray(e.resolveOnClick)?-1!==e.resolveOnClick.indexOf(T)&&(t(T),a=!0):(t(T),a=!0)),i.default.close(f))})),f.addEventListener("close",(function(){if(o.A.tv){var r=f.querySelector(".actionSheetScroller");r&&u(r,!1,!1)}P&&(clearTimeout(P),P=void 0),a||(null!=T?(e.callback&&e.callback(T),t(T)):n(new Error("ActionSheet closed without resolving")))})),i.default.open(f).catch((function(e){console.warn("DialogHelper.open error",e)}));var r=e.positionTo&&"fullscreen"!==d.size?function(e,t,n){var a=c.Ay.getWindowSize(),r=a.innerHeight,i=a.innerWidth,o=function(e){var t,n,a=[];if(!document)return a;try{for(var r=s(e),i=r.next();!i.done;i=r.next()){var o=i.value.getBoundingClientRect();a.push({top:o.top,left:o.left,width:o.width,height:o.height})}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return a}([e])[0];"top"!==t.positionY&&(o.top+=(o.height||0)/2),o.left+=(o.width||0)/2;var l=n.offsetHeight||300,u=n.offsetWidth||160;o.top-=l/2,o.left-=u/2;var d=o.left+u-i,f=o.top+l-r;return d>0&&(o.left-=d+20),f>0&&(o.top-=f+20),o.top+=t.offsetTop||0,o.left+=t.offsetLeft||0,o.top=Math.max(o.top,10),o.left=Math.max(o.left,10),o}(e.positionTo,e,f):null;r&&(f.style.position="fixed",f.style.margin="0",f.style.left=r.left+"px",f.style.top=r.top+"px")}))}t.default={show:d}},63001:function(e,t,n){var a=n(46782),r=n(34789),i=n(62882),o=(n(69177),Object.create(HTMLSelectElement.prototype));function l(){return!(r.A.edgeUwp||r.A.xboxOne||r.A.tizen||r.A.orsay||r.A.web0s||!r.A.tv&&a.A.tv)}function c(e){var t=s(e),n=t?t.textContent||t.innerText:null;i.default.show({items:e.options,positionTo:e,title:n}).then((function(t){!function(e,t){e.value=t}(e,t),function(e){var t=new Event("change",{bubbles:!1,cancelable:!0});e.dispatchEvent(t)}(e)}))}function s(e){for(var t=e.previousSibling;t&&"LABEL"!==t.tagName;)t=t.previousSibling;return t}function u(){var e=s(this);e&&e.classList.add("selectLabelFocused")}function d(){var e=s(this);e&&e.classList.remove("selectLabelFocused")}function f(e){e.button||l()||(e.preventDefault(),c(this))}function h(e){13!==e.keyCode&&195!==e.keyCode||l()||(e.preventDefault(),c(this))}var v=0;o.createdCallback=function(){this.id||(this.id="embyselect"+v,v++),this.classList.add("emby-select-withcolor"),a.A.tv&&this.classList.add("emby-select-focusscale"),this.addEventListener("mousedown",f),this.addEventListener("keydown",h),this.addEventListener("focus",u),this.addEventListener("blur",d)},o.attachedCallback=function(){var e;if(!this.classList.contains("emby-select")){this.classList.add("emby-select");var t,n=this.ownerDocument.createElement("label");n.innerText=this.getAttribute("label")||"",n.classList.add("selectLabel"),n.htmlFor=this.id,null===(e=this.parentNode)||void 0===e||e.insertBefore(n,this),this.classList.contains("emby-select-withcolor")&&(null===(t=this.parentNode)||void 0===t||t.insertAdjacentHTML("beforeend",'
0
'))}},o.setLabel=function(e){var t;(null===(t=this.parentNode)||void 0===t?void 0:t.querySelector("label")).innerText=e},document.registerElement("emby-select",{prototype:o,extends:"select"})},78963:function(e,t,n){n.r(t),n.d(t,{Component:function(){return O},action:function(){return N}});var a=n(62540),r=n(47891),i=n(92779),o=n(75487),l=n(85637),c=n(70140),s=n(57836),u=n(89348),d=n(99193),f=n(80401),h=n(69410),v=function(){var e=(0,h.gf)().api;return(0,f.I)({queryKey:["LocalizationOptions"],queryFn:function(t){var n=t.signal;return function(e,t){return n=void 0,a=void 0,i=function(){return function(e,t){var n,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]0)&&!(a=i.next()).done;)o.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},N=function(e){return t=void 0,n=[e],r=function(e){var t,n,a,r,i,o,l,c,s,u,d=e.request;return function(e,t){var n,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]