Files
pgsql-jellyfin/Jellyfin.Server/wwwroot/remote.13c314ccaa6e08b64d03.chunk.js
T
2026-07-08 13:13:46 -04:00

1 line
8.1 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[40501,62882,96084,96697],{33432:function(t,e,n){n.r(e),n.d(e,{default:function(){return r}});var i=n(8566),o=n(67430),s=n(89100);function a(t){return function(t){i.Ay.show();var e=o.tF.currentApiClient(),n={EnableRemoteAccess:t.querySelector("#chkRemoteAccess").checked};e.ajax({type:"POST",data:JSON.stringify(n),url:e.getUrl("Startup/RemoteAccess"),contentType:"application/json"}).then((function(){i.Ay.hide(),s.default.navigate("wizard/finish")}))}(this),t.preventDefault(),!1}function r(t){t.querySelector(".wizardSettingsForm").addEventListener("submit",a),t.addEventListener("viewshow",(function(){document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")})),t.addEventListener("viewhide",(function(){document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")}))}n(77157),n(10353),n(63001)},62882:function(t,e,n){n.r(e),n.d(e,{show:function(){return u}});var i=n(22696),o=n.n(i),s=n(79754),a=n(46782),r=n(5898),l=n(36300),c=(n(10353),function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")});function d(t,e,i){Promise.resolve().then(n.bind(n,10838)).then((function(n){var o=i?"on":"off";n.centerFocus[o](t,e)})).catch((function(t){console.warn("Error in centerFocus",t)}))}function u(t){var e,n,i,u={removeOnClose:!0,enableHistory:t.enableHistory,scrollY:!1};a.A.tv?(u.size="fullscreen",i=!0,u.autoFocus=!0):(u.modal=!1,u.entryAnimation=t.entryAnimation,u.exitAnimation=t.exitAnimation,u.entryAnimationDuration=t.entryAnimationDuration||140,u.exitAnimationDuration=t.exitAnimationDuration||100,u.autoFocus=!1);var h=s.default.createDialog(u);i?h.classList.add("actionsheet-fullscreen"):h.classList.add("actionsheet-not-fullscreen"),h.classList.add("actionSheet"),t.dialogClass&&h.classList.add(t.dialogClass);var v="",f=a.A.tv?"scrollY smoothScrollY hiddenScrollY":"scrollY",m="";t.items.length>20&&(m+="min-width:"+(l.Ay.getWindowSize().innerWidth>=300?240:200)+"px;");var y,b=!1,p=[];try{for(var A=c(t.items),S=A.next();!S.done;S=A.next())(y=(C=S.value).icon||(C.selected?"check":null))&&(b=!0),p.push(y||"")}catch(t){e={error:t}}finally{try{S&&!S.done&&(n=A.return)&&n.call(A)}finally{if(e)throw e.error}}a.A.tv&&(v+='<button is="paper-icon-button-light" class="btnCloseActionSheet hide-mouse-idle-tv" tabindex="-1" title="'.concat(r.Ay.translate("ButtonBack"),'">\n <span class="material-icons arrow_back" aria-hidden="true"></span>\n </button>'));var w=t.title&&!b;w||a.A.tv?v+='<div class="actionSheetContent actionSheetContent-centered">':v+='<div class="actionSheetContent">',t.title&&(v+='<h1 class="actionSheetTitle">'+o()(t.title)+"</h1>"),t.text&&(v+='<p class="actionSheetText">'+o()(t.text)+"</p>");var x="actionSheetScroller";a.A.tv&&(x+=" actionSheetScroller-tv focuscontainer-x focuscontainer-y"),v+='<div class="'+x+" "+f+'" style="'+m+'">';var L="listItem listItem-button actionSheetMenuItem";(t.border||t.shaded)&&(L+=" listItem-border"),t.menuItemClass&&(L+=" "+t.menuItemClass),a.A.tv&&(L+=" listItem-focusscale"),a.A.mobile&&(L+=" actionsheet-xlargeFont");for(var g=0;g<t.items.length;g++){var C;(C=t.items[g]).divider?v+='<div class="actionsheetDivider"></div>':(v+="<button"+(C.selected&&a.A.tv?" autoFocus":"")+' is="emby-button" type="button" class="'+L+'" data-id="'+(null==C.id||""===C.id?C.value:C.id)+'">',(y=p[g])?v+='<span class="actionsheetMenuItemIcon listItemIcon listItemIcon-transparent material-icons '.concat(y,'" aria-hidden="true"></span>'):b&&!w&&(v+='<span class="actionsheetMenuItemIcon listItemIcon listItemIcon-transparent material-icons check" aria-hidden="true" style="visibility:hidden;"></span>'),v+='<div class="listItemBody actionsheetListItemBody">',v+='<div class="listItemBodyText actionSheetItemText">',v+=o()(C.name||C.textContent||C.innerText),v+="</div>",C.secondaryText&&(v+='<div class="listItemBodyText secondary">'.concat(o()(C.secondaryText),"</div>")),v+="</div>",C.asideText&&(v+='<div class="listItemAside actionSheetItemAsideText">'.concat(o()(C.asideText),"</div>")),v+="</button>")}if(t.showCancel&&(v+='<div class="buttons">',v+='<button is="emby-button" type="button" class="btnCloseActionSheet">'.concat(r.Ay.translate("ButtonCancel"),"</button>"),v+="</div>"),v+="</div>",h.innerHTML=v,a.A.tv){var I=h.querySelector(".actionSheetScroller");I&&d(I,!1,!0)}var T=h.querySelector(".btnCloseActionSheet");T&&T.addEventListener("click",(function(){s.default.close(h)}));var k,E=null;return t.timeout&&(k=setTimeout((function(){s.default.close(h)}),t.timeout)),new Promise((function(e,n){var i=!1;h.addEventListener("click",(function(n){var o=l.Ay.parentWithClass(n.target,"actionSheetMenuItem");o&&(E=o.getAttribute("data-id"),t.resolveOnClick&&(Array.isArray(t.resolveOnClick)?-1!==t.resolveOnClick.indexOf(E)&&(e(E),i=!0):(e(E),i=!0)),s.default.close(h))})),h.addEventListener("close",(function(){if(a.A.tv){var o=h.querySelector(".actionSheetScroller");o&&d(o,!1,!1)}k&&(clearTimeout(k),k=void 0),i||(null!=E?(t.callback&&t.callback(E),e(E)):n(new Error("ActionSheet closed without resolving")))})),s.default.open(h).catch((function(t){console.warn("DialogHelper.open error",t)}));var o=t.positionTo&&"fullscreen"!==u.size?function(t,e,n){var i=l.Ay.getWindowSize(),o=i.innerHeight,s=i.innerWidth,a=function(t){var e,n,i=[];if(!document)return i;try{for(var o=c(t),s=o.next();!s.done;s=o.next()){var a=s.value.getBoundingClientRect();i.push({top:a.top,left:a.left,width:a.width,height:a.height})}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}([t])[0];"top"!==e.positionY&&(a.top+=(a.height||0)/2),a.left+=(a.width||0)/2;var r=n.offsetHeight||300,d=n.offsetWidth||160;a.top-=r/2,a.left-=d/2;var u=a.left+d-s,h=a.top+r-o;return u>0&&(a.left-=u+20),h>0&&(a.top-=h+20),a.top+=e.offsetTop||0,a.left+=e.offsetLeft||0,a.top=Math.max(a.top,10),a.left=Math.max(a.left,10),a}(t.positionTo,t,h):null;o&&(h.style.position="fixed",h.style.margin="0",h.style.left=o.left+"px",h.style.top=o.top+"px")}))}e.default={show:u}},63001:function(t,e,n){var i=n(46782),o=n(34789),s=n(62882),a=(n(69177),Object.create(HTMLSelectElement.prototype));function r(){return!(o.A.edgeUwp||o.A.xboxOne||o.A.tizen||o.A.orsay||o.A.web0s||!o.A.tv&&i.A.tv)}function l(t){var e=c(t),n=e?e.textContent||e.innerText:null;s.default.show({items:t.options,positionTo:t,title:n}).then((function(e){!function(t,e){t.value=e}(t,e),function(t){var e=new Event("change",{bubbles:!1,cancelable:!0});t.dispatchEvent(e)}(t)}))}function c(t){for(var e=t.previousSibling;e&&"LABEL"!==e.tagName;)e=e.previousSibling;return e}function d(){var t=c(this);t&&t.classList.add("selectLabelFocused")}function u(){var t=c(this);t&&t.classList.remove("selectLabelFocused")}function h(t){t.button||r()||(t.preventDefault(),l(this))}function v(t){13!==t.keyCode&&195!==t.keyCode||r()||(t.preventDefault(),l(this))}var f=0;a.createdCallback=function(){this.id||(this.id="embyselect"+f,f++),this.classList.add("emby-select-withcolor"),i.A.tv&&this.classList.add("emby-select-focusscale"),this.addEventListener("mousedown",h),this.addEventListener("keydown",v),this.addEventListener("focus",d),this.addEventListener("blur",u)},a.attachedCallback=function(){var t;if(!this.classList.contains("emby-select")){this.classList.add("emby-select");var e,n=this.ownerDocument.createElement("label");n.innerText=this.getAttribute("label")||"",n.classList.add("selectLabel"),n.htmlFor=this.id,null===(t=this.parentNode)||void 0===t||t.insertBefore(n,this),this.classList.contains("emby-select-withcolor")&&(null===(e=this.parentNode)||void 0===e||e.insertAdjacentHTML("beforeend",'<div class="selectArrowContainer"><div style="visibility:hidden;display:none;">0</div><span class="selectArrow material-icons keyboard_arrow_down" aria-hidden="true"></span></div>'))}},a.setLabel=function(t){var e;(null===(e=this.parentNode)||void 0===e?void 0:e.querySelector("label")).innerText=t},document.registerElement("emby-select",{prototype:a,extends:"select"})}}]);