Files
pgsql-jellyfin/publish_test4/wwwroot/start.68923e2b7ee4440c751a.chunk.js
2026-07-08 13:46:27 -04:00

1 line
9.8 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[40501,62882,92445,96084],{62882:function(t,e,n){n.r(e),n.d(e,{show:function(){return d}});var i=n(22696),o=n.n(i),r=n(79754),a=n(46782),l=n(5898),s=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 u(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 d(t){var e,n,i,d={removeOnClose:!0,enableHistory:t.enableHistory,scrollY:!1};a.A.tv?(d.size="fullscreen",i=!0,d.autoFocus=!0):(d.modal=!1,d.entryAnimation=t.entryAnimation,d.exitAnimation=t.exitAnimation,d.entryAnimationDuration=t.entryAnimationDuration||140,d.exitAnimationDuration=t.exitAnimationDuration||100,d.autoFocus=!1);var f=r.default.createDialog(d);i?f.classList.add("actionsheet-fullscreen"):f.classList.add("actionsheet-not-fullscreen"),f.classList.add("actionSheet"),t.dialogClass&&f.classList.add(t.dialogClass);var v="",h=a.A.tv?"scrollY smoothScrollY hiddenScrollY":"scrollY",m="";t.items.length>20&&(m+="min-width:"+(s.Ay.getWindowSize().innerWidth>=300?240:200)+"px;");var y,p=!1,b=[];try{for(var S=c(t.items),A=S.next();!A.done;A=S.next())(y=(C=A.value).icon||(C.selected?"check":null))&&(p=!0),b.push(y||"")}catch(t){e={error:t}}finally{try{A&&!A.done&&(n=S.return)&&n.call(S)}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(l.Ay.translate("ButtonBack"),'">\n <span class="material-icons arrow_back" aria-hidden="true"></span>\n </button>'));var g=t.title&&!p;g||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 w="actionSheetScroller";a.A.tv&&(w+=" actionSheetScroller-tv focuscontainer-x focuscontainer-y"),v+='<div class="'+w+" "+h+'" style="'+m+'">';var x="listItem listItem-button actionSheetMenuItem";(t.border||t.shaded)&&(x+=" listItem-border"),t.menuItemClass&&(x+=" "+t.menuItemClass),a.A.tv&&(x+=" listItem-focusscale"),a.A.mobile&&(x+=" actionsheet-xlargeFont");for(var L=0;L<t.items.length;L++){var C;(C=t.items[L]).divider?v+='<div class="actionsheetDivider"></div>':(v+="<button"+(C.selected&&a.A.tv?" autoFocus":"")+' is="emby-button" type="button" class="'+x+'" data-id="'+(null==C.id||""===C.id?C.value:C.id)+'">',(y=b[L])?v+='<span class="actionsheetMenuItemIcon listItemIcon listItemIcon-transparent material-icons '.concat(y,'" aria-hidden="true"></span>'):p&&!g&&(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(l.Ay.translate("ButtonCancel"),"</button>"),v+="</div>"),v+="</div>",f.innerHTML=v,a.A.tv){var I=f.querySelector(".actionSheetScroller");I&&u(I,!1,!0)}var T=f.querySelector(".btnCloseActionSheet");T&&T.addEventListener("click",(function(){r.default.close(f)}));var k,E=null;return t.timeout&&(k=setTimeout((function(){r.default.close(f)}),t.timeout)),new Promise((function(e,n){var i=!1;f.addEventListener("click",(function(n){var o=s.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)),r.default.close(f))})),f.addEventListener("close",(function(){if(a.A.tv){var o=f.querySelector(".actionSheetScroller");o&&u(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")))})),r.default.open(f).catch((function(t){console.warn("DialogHelper.open error",t)}));var o=t.positionTo&&"fullscreen"!==d.size?function(t,e,n){var i=s.Ay.getWindowSize(),o=i.innerHeight,r=i.innerWidth,a=function(t){var e,n,i=[];if(!document)return i;try{for(var o=c(t),r=o.next();!r.done;r=o.next()){var a=r.value.getBoundingClientRect();i.push({top:a.top,left:a.left,width:a.width,height:a.height})}}catch(t){e={error:t}}finally{try{r&&!r.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 l=n.offsetHeight||300,u=n.offsetWidth||160;a.top-=l/2,a.left-=u/2;var d=a.left+u-r,f=a.top+l-o;return d>0&&(a.left-=d+20),f>0&&(a.top-=f+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,f):null;o&&(f.style.position="fixed",f.style.margin="0",f.style.left=o.left+"px",f.style.top=o.top+"px")}))}e.default={show:d}},63001:function(t,e,n){var i=n(46782),o=n(34789),r=n(62882),a=(n(69177),Object.create(HTMLSelectElement.prototype));function l(){return!(o.A.edgeUwp||o.A.xboxOne||o.A.tizen||o.A.orsay||o.A.web0s||!o.A.tv&&i.A.tv)}function s(t){var e=c(t),n=e?e.textContent||e.innerText:null;r.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 u(){var t=c(this);t&&t.classList.add("selectLabelFocused")}function d(){var t=c(this);t&&t.classList.remove("selectLabelFocused")}function f(t){t.button||l()||(t.preventDefault(),s(this))}function v(t){13!==t.keyCode&&195!==t.keyCode||l()||(t.preventDefault(),s(this))}var h=0;a.createdCallback=function(){this.id||(this.id="embyselect"+h,h++),this.classList.add("emby-select-withcolor"),i.A.tv&&this.classList.add("emby-select-focusscale"),this.addEventListener("mousedown",f),this.addEventListener("keydown",v),this.addEventListener("focus",u),this.addEventListener("blur",d)},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"})},85518:function(t,e,n){n.r(e),n.d(e,{default:function(){return c}}),n(29305),n(32733),n(84701),n(69892),n(44962),n(86584),n(89336),n(78557),n(90076),n(95021),n(73687),n(83994),n(82367);var i=n(8566),o=n(67430),r=n(89100),a=n(36300);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function s(t){t.preventDefault(),function(t){i.Ay.show();var e=o.tF.currentApiClient();e.getJSON(e.getUrl("Startup/Configuration")).then((function(n){n.ServerName=t.querySelector("#txtServerName").value,n.UICulture=t.querySelector("#selectLocalizationLanguage").value,e.ajax({type:"POST",data:JSON.stringify(n),url:e.getUrl("Startup/Configuration"),contentType:"application/json"}).then((function(){r.default.navigate("wizard/user")}))}))}(a.Ay.parentWithClass(this,"page"))}function c(t){t.querySelector(".wizardStartForm").addEventListener("submit",s),t.addEventListener("viewshow",(function(){document.querySelector(".skinHeader").classList.add("noHomeButtonHeader"),i.Ay.show();var t=this,e=o.tF.currentApiClient();Promise.all([e.getPublicSystemInfo(),e.getJSON(e.getUrl("Startup/Configuration")),e.getJSON(e.getUrl("Localization/Options"))]).then((function(e){var n,o,r=(o=3,function(t){if(Array.isArray(t))return t}(n=e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,l=[],s=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=r.call(n)).done)&&(l.push(i.value),l.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,o)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.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)?l(t,e):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],s=r[1],c=r[2];!function(t,e,n,o){t.querySelector("#txtServerName").value=n.ServerName||e.ServerName;var r=t.querySelector("#selectLocalizationLanguage");r.innerHTML=o.map((function(t){return'<option value="'+t.Value+'">'+t.Name+"</option>"})).join(""),r.value=n.UICulture,i.Ay.hide()}(t,a,s,c)}))})),t.addEventListener("viewhide",(function(){document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")}))}n(10353),n(63001)}}]);