1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[18373],{30658:function(e,t,n){var l=n(62540),a=(n(63696),n(85817));t.A=function(e){var t=e.SectionClassName,n=e.title,i=e.isBtnVisible,c=void 0!==i&&i,o=e.btnId,r=e.btnClassName,s=e.btnTitle,d=e.btnIcon;return(0,l.jsxs)("div",{className:"".concat(t," sectionTitleContainer flex align-items-center"),children:[(0,l.jsx)("h2",{className:"sectionTitle",children:n}),c&&(0,l.jsx)(a.A,{is:"emby-button",id:o,className:r,title:s,icon:d})]})}},42301:function(e,t,n){var l=n(62540),a=n(4452),i=n.n(a),c=n(63696),o=function(){return o=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)},r=(0,c.forwardRef)((function(e,t){var n=e.id,a=e.label,r=e.className,s=e.onBlur,d=e.onFocus,u=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)t.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(n[l[a]]=e[l[a]])}return n}(e,["id","label","className","onBlur","onFocus"]),h=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var l,a,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(l=i.next()).done;)c.push(l.value)}catch(e){a={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return c}((0,c.useState)(!1),2),y=h[0],b=h[1],v=(0,c.useCallback)((function(e){b(!1),null==s||s(e)}),[s]),m=(0,c.useCallback)((function(e){b(!0),null==d||d(e)}),[d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("label",{htmlFor:n,className:i()("inputLabel",{inputLabelUnfocused:!y,inputLabelFocused:y}),children:a}),(0,l.jsx)("input",o({ref:t,id:n,className:i()("emby-input",r),onBlur:v,onFocus:m},u))]})}));r.displayName="Input",t.A=r},50723:function(e,t,n){var l,a=n(62540),i=(n(63696),n(4452)),c=n.n(i),o=n(46782),r=function(){return r=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)};!function(e){e.RIGHT="RIGHT",e.LEFT="LEFT"}(l||(l={})),t.A=function(e){var t=e.className,n=e.title,i=e.icon,s=e.iconClassName,d=e.iconPos,u=e.onClick,h=function(e,t){var n={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(l=Object.getOwnPropertySymbols(e);a<l.length;a++)t.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(n[l[a]]=e[l[a]])}return n}(e,["className","title","icon","iconClassName","iconPos","onClick"]),y=c()("emby-button",t,{"show-focus":o.A.tv}),b=c()("material-icons",s,i);return(0,a.jsxs)("button",r({className:y,onClick:u},h,{children:[i&&d===l.LEFT&&(0,a.jsx)("span",{className:b,"aria-hidden":"true"}),(0,a.jsx)("span",{children:n}),i&&d===l.RIGHT&&(0,a.jsx)("span",{className:b,"aria-hidden":"true"})]}))}},58702:function(e,t,n){var l=n(62540),a=n(63696),i=n(5898),c=n(89100),o=n(84851);function r(e){return a.useCallback((function(){(0,c.navigate)(e,!0).catch((function(e){console.warn("Error navigating to dashboard url",e)}))}),[e])}t.A=function(e){var t=e.activeTab,n=r("/dashboard/users/profile"),a=r("/dashboard/users/access"),c=r("/dashboard/users/parentalcontrol"),s=r("/dashboard/users/password");return(0,l.jsxs)("div",{"data-role":"controlgroup","data-type":"horizontal",className:"localnav",children:[(0,l.jsx)(o.A,{href:"#","data-role":"button",className:"useredit"===t?"ui-btn-active":"",onClick:n,children:i.Ay.translate("Profile")}),(0,l.jsx)(o.A,{href:"#","data-role":"button",className:"userlibraryaccess"===t?"ui-btn-active":"",onClick:a,children:i.Ay.translate("TabAccess")}),(0,l.jsx)(o.A,{href:"#","data-role":"button",className:"userparentalcontrol"===t?"ui-btn-active":"",onClick:c,children:i.Ay.translate("TabParentalControl")}),(0,l.jsx)(o.A,{href:"#","data-role":"button",className:"userpassword"===t?"ui-btn-active":"",onClick:s,children:i.Ay.translate("HeaderPassword")})]})}},67692:function(e,t,n){var l=n(62540),a=(n(63696),n(5898)),i=function(e){var t=e.name,n=e.id,l=e.required,a=e.label,i=e.option;return{__html:'<select\n is="emby-select"\n '.concat(t,'\n id="').concat(n,'"\n ').concat(l,'\n label="').concat(a,'"\n >\n ').concat(i,"\n </select>")}};t.A=function(e){var t=e.name,n=e.id,c=e.required,o=e.label,r=e.children;return(0,l.jsx)("div",{dangerouslySetInnerHTML:i({name:t?"name='".concat(t,"'"):"",id:n,required:c?"required='".concat(c,"'"):"",label:a.Ay.translate(o),option:r})})}},71005:function(e,t,n){n.r(t);var l=n(62540),a=n(22696),i=n.n(a),c=n(63696),o=n(87404),r=n(9055),s=n(5898),d=n(50723),u=n(91281),h=n(84851),y=n(42301),b=n(30658),v=n(58702),m=n(8566),p=n(67692),f=n(65242),A=function(){return A=Object.assign||function(e){for(var t,n=1,l=arguments.length;n<l;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},A.apply(this,arguments)},k=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var l,a,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(l=i.next()).done;)c.push(l.value)}catch(e){a={error:e}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return c},x=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],l=0;if(n)return n.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&l>=e.length&&(e=void 0),{value:e&&e[l++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};t.default=function(){var e=(0,o.Zp)(),t=k((0,r.ok)(),1)[0].get("userId"),a=k((0,c.useState)(),2),P=a[0],S=a[1],g=k((0,c.useState)([]),2),N=g[0],j=g[1],C=k((0,c.useState)([]),2),w=C[0],L=C[1],E=k((0,c.useState)([]),2),O=E[0],I=E[1],D=(0,c.useMemo)((function(){return e=void 0,t=void 0,a=function(){return function(e,t){var n,l,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=o(0),c.throw=o(1),c.return=o(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function o(o){return function(r){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,o[0]&&(i=0)),i;)try{if(n=1,l&&(a=2&o[0]?l.return:o[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,o[1])).done)return a;switch(l=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,l=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],l=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,r])}}}(this,(function(e){switch(e.label){case 0:return[4,Promise.all([n.e(45642),n.e(45568),n.e(73233),n.e(68603)]).then(n.bind(n,73233))];case 1:return[2,e.sent().default]}}))},new((l=void 0)||(l=Promise))((function(n,i){function c(e){try{r(a.next(e))}catch(e){i(e)}}function o(e){try{r(a.throw(e))}catch(e){i(e)}}function r(e){var t;e.done?n(e.value):(t=e.value,t instanceof l?t:new l((function(e){e(t)}))).then(c,o)}r((a=a.apply(e,t||[])).next())}));var e,t,l,a}),[]),q=k((0,c.useState)(""),2),R=q[0],T=q[1],M=k((0,c.useState)(""),2),F=M[0],U=M[1],H=(0,c.useRef)(null),B=function(){if(!t)throw new Error("missing user id");return window.ApiClient.getUser(t)},V=(0,c.useCallback)((function(e,t,n){var l;e.querySelector(".fldSelectLoginProvider").classList.toggle("hide",n.length<=1),L(n);var a=(null===(l=t.Policy)||void 0===l?void 0:l.AuthenticationProviderId)||"";T(a)}),[]),G=(0,c.useCallback)((function(e,t,n){var l;e.querySelector(".fldSelectPasswordResetProvider").classList.toggle("hide",n.length<=1),I(n);var a=(null===(l=t.Policy)||void 0===l?void 0:l.PasswordResetProviderId)||"";U(a)}),[]),J=(0,c.useCallback)((function(e,t,n){window.ApiClient.getJSON(window.ApiClient.getUrl("Channels",{SupportsMediaDeletion:!0})).then((function(l){var a,i,c,o,r,s,d,u,h,y,b,v,m=[];try{for(var p=x(n),f=p.next();!f.done;f=p.next()){var k=f.value;v=(null===(r=t.Policy)||void 0===r?void 0:r.EnableContentDeletion)||-1!=(null===(d=null===(s=t.Policy)||void 0===s?void 0:s.EnableContentDeletionFromFolders)||void 0===d?void 0:d.indexOf(k.Id||""))?' checked="checked"':"",m.push(A(A({},k),{checkedAttribute:v}))}}catch(e){a={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(a)throw a.error}}try{for(var P=x(l.Items),S=P.next();!S.done;S=P.next()){var g=S.value;v=(null===(u=t.Policy)||void 0===u?void 0:u.EnableContentDeletion)||-1!=(null===(y=null===(h=t.Policy)||void 0===h?void 0:h.EnableContentDeletionFromFolders)||void 0===y?void 0:y.indexOf(g.Id||""))?' checked="checked"':"",m.push(A(A({},g),{checkedAttribute:v}))}}catch(e){c={error:e}}finally{try{S&&!S.done&&(o=P.return)&&o.call(P)}finally{if(c)throw c.error}}j(m);var N,C,w=e.querySelector(".chkEnableDeleteAllFolders");w.checked=(null===(b=t.Policy)||void 0===b?void 0:b.EnableContentDeletion)||!1,N=w,C=new Event("change",{bubbles:!1,cancelable:!0}),N.dispatchEvent(C)})).catch((function(e){console.error("[useredit] failed to fetch channels",e)}))}),[]),_=(0,c.useCallback)((function(e){var t,n,l,a,i,c,o,r,s,d,u,h,y,b,v,p,f,A,k,x,P,g,N,j,C=H.current;if(C){window.ApiClient.getJSON(window.ApiClient.getUrl("Auth/Providers")).then((function(t){V(C,e,t)})).catch((function(e){console.error("[useredit] failed to fetch auth providers",e)})),window.ApiClient.getJSON(window.ApiClient.getUrl("Auth/PasswordResetProviders")).then((function(t){G(C,e,t)})).catch((function(e){console.error("[useredit] failed to fetch password reset providers",e)})),window.ApiClient.getJSON(window.ApiClient.getUrl("Library/MediaFolders",{IsHidden:!1})).then((function(t){J(C,e,t.Items)})).catch((function(e){console.error("[useredit] failed to fetch media folders",e)}
1)),C.querySelector(".disabledUserBanner").classList.toggle("hide",!(null===(t=e.Policy)||void 0===t?void 0:t.IsDisabled));var w=C.querySelector("#txtUserName");w.disabled=!1,w.removeAttribute("disabled"),D.then((function(t){return t.setTitle(e.Name)})),S(e),C.querySelector("#txtUserName").value=e.Name||"",C.querySelector(".chkIsAdmin").checked=!!(null===(n=e.Policy)||void 0===n?void 0:n.IsAdministrator),C.querySelector(".chkDisabled").checked=!!(null===(l=e.Policy)||void 0===l?void 0:l.IsDisabled),C.querySelector(".chkIsHidden").checked=!!(null===(a=e.Policy)||void 0===a?void 0:a.IsHidden),C.querySelector(".chkEnableCollectionManagement").checked=!!(null===(i=e.Policy)||void 0===i?void 0:i.EnableCollectionManagement),C.querySelector(".chkEnableSubtitleManagement").checked=!!(null===(c=e.Policy)||void 0===c?void 0:c.EnableSubtitleManagement),C.querySelector(".chkRemoteControlSharedDevices").checked=!!(null===(o=e.Policy)||void 0===o?void 0:o.EnableSharedDeviceControl),C.querySelector(".chkEnableRemoteControlOtherUsers").checked=!!(null===(r=e.Policy)||void 0===r?void 0:r.EnableRemoteControlOfOtherUsers),C.querySelector(".chkEnableDownloading").checked=!!(null===(s=e.Policy)||void 0===s?void 0:s.EnableContentDownloading),C.querySelector(".chkManageLiveTv").checked=!!(null===(d=e.Policy)||void 0===d?void 0:d.EnableLiveTvManagement),C.querySelector(".chkEnableLiveTvAccess").checked=!!(null===(u=e.Policy)||void 0===u?void 0:u.EnableLiveTvAccess),C.querySelector(".chkEnableMediaPlayback").checked=!!(null===(h=e.Policy)||void 0===h?void 0:h.EnableMediaPlayback),C.querySelector(".chkEnableAudioPlaybackTranscoding").checked=!!(null===(y=e.Policy)||void 0===y?void 0:y.EnableAudioPlaybackTranscoding),C.querySelector(".chkEnableVideoPlaybackTranscoding").checked=!!(null===(b=e.Policy)||void 0===b?void 0:b.EnableVideoPlaybackTranscoding),C.querySelector(".chkEnableVideoPlaybackRemuxing").checked=!!(null===(v=e.Policy)||void 0===v?void 0:v.EnablePlaybackRemuxing),C.querySelector(".chkForceRemoteSourceTranscoding").checked=!!(null===(p=e.Policy)||void 0===p?void 0:p.ForceRemoteSourceTranscoding),C.querySelector(".chkRemoteAccess").checked=null==(null===(f=e.Policy)||void 0===f?void 0:f.EnableRemoteAccess)||(null===(A=e.Policy)||void 0===A?void 0:A.EnableRemoteAccess),C.querySelector("#txtRemoteClientBitrateLimit").value=(null===(k=e.Policy)||void 0===k?void 0:k.RemoteClientBitrateLimit)&&(null===(x=e.Policy)||void 0===x?void 0:x.RemoteClientBitrateLimit)>0?((null===(P=e.Policy)||void 0===P?void 0:P.RemoteClientBitrateLimit)/1e6).toLocaleString(void 0,{maximumFractionDigits:6}):"",C.querySelector("#txtLoginAttemptsBeforeLockout").value=String(null===(g=e.Policy)||void 0===g?void 0:g.LoginAttemptsBeforeLockout)||"-1",C.querySelector("#txtMaxActiveSessions").value=String(null===(N=e.Policy)||void 0===N?void 0:N.MaxActiveSessions)||"0",C.querySelector("#selectSyncPlayAccess").value=String(null===(j=e.Policy)||void 0===j?void 0:j.SyncPlayAccess),m.Ay.hide()}else console.error("[useredit] Unexpected null page reference")}),[V,G,J]),z=(0,c.useCallback)((function(){m.Ay.show(),B().then((function(e){_(e)})).catch((function(e){console.error("[useredit] failed to load data",e)}))}),[_]);(0,c.useEffect)((function(){var t=H.current;if(t){z();t.querySelector(".chkEnableDeleteAllFolders").addEventListener("change",(function(){t.querySelector(".deleteAccess").classList.toggle("hide",this.checked)})),window.ApiClient.getNamedConfiguration("network").then((function(e){t.querySelector(".fldRemoteAccess").classList.toggle("hide",!e.EnableRemoteAccess)})).catch((function(e){console.error("[useredit] failed to load network config",e)})),t.querySelector(".editUserProfileForm").addEventListener("submit",(function(n){return m.Ay.show(),B().then((function(n){!function(n){if(!n.Id||!n.Policy)throw new Error("Unexpected null user id or policy");var l;n.Name=t.querySelector("#txtUserName").value.trim(),n.Policy.IsAdm
1inistrator=t.querySelector(".chkIsAdmin").checked,n.Policy.IsHidden=t.querySelector(".chkIsHidden").checked,n.Policy.IsDisabled=t.querySelector(".chkDisabled").checked,n.Policy.EnableRemoteControlOfOtherUsers=t.querySelector(".chkEnableRemoteControlOtherUsers").checked,n.Policy.EnableLiveTvManagement=t.querySelector(".chkManageLiveTv").checked,n.Policy.EnableLiveTvAccess=t.querySelector(".chkEnableLiveTvAccess").checked,n.Policy.EnableSharedDeviceControl=t.querySelector(".chkRemoteControlSharedDevices").checked,n.Policy.EnableMediaPlayback=t.querySelector(".chkEnableMediaPlayback").checked,n.Policy.EnableAudioPlaybackTranscoding=t.querySelector(".chkEnableAudioPlaybackTranscoding").checked,n.Policy.EnableVideoPlaybackTranscoding=t.querySelector(".chkEnableVideoPlaybackTranscoding").checked,n.Policy.EnablePlaybackRemuxing=t.querySelector(".chkEnableVideoPlaybackRemuxing").checked,n.Policy.EnableCollectionManagement=t.querySelector(".chkEnableCollectionManagement").checked,n.Policy.EnableSubtitleManagement=t.querySelector(".chkEnableSubtitleManagement").checked,n.Policy.ForceRemoteSourceTranscoding=t.querySelector(".chkForceRemoteSourceTranscoding").checked,n.Policy.EnableContentDownloading=t.querySelector(".chkEnableDownloading").checked,n.Policy.EnableRemoteAccess=t.querySelector(".chkRemoteAccess").checked,n.Policy.RemoteClientBitrateLimit=Math.floor(1e6*parseFloat(t.querySelector("#txtRemoteClientBitrateLimit").value||"0")),n.Policy.LoginAttemptsBeforeLockout=parseInt(t.querySelector("#txtLoginAttemptsBeforeLockout").value||"0",10),n.Policy.MaxActiveSessions=parseInt(t.querySelector("#txtMaxActiveSessions").value||"0",10),n.Policy.AuthenticationProviderId=t.querySelector("#selectLoginProvider").value,n.Policy.PasswordResetProviderId=t.querySelector("#selectPasswordResetProvider").value,n.Policy.EnableContentDeletion=t.querySelector(".chkEnableDeleteAllFolders").checked,n.Policy.EnableContentDeletionFromFolders=n.Policy.EnableContentDeletion?[]:(l=t.querySelectorAll(".chkFolder"),Array.prototype.filter.call(l,(function(e){return e.checked})).map((function(e){return e.getAttribute("data-id")}))),n.Policy.SyncPlayAccess=t.querySelector("#selectSyncPlayAccess").value,window.ApiClient.updateUser(n).then((function(){return window.ApiClient.updateUserPolicy(n.Id||"",n.Policy||{PasswordResetProviderId:"",AuthenticationProviderId:""})})).then((function(){e("/dashboard/users",{state:{openSavedToast:!0}}),m.Ay.hide()})).catch((function(e){console.error("[useredit] failed to update user",e)}))}(n)})).catch((function(e){console.error("[useredit] failed to fetch user",e)})),n.preventDefault(),n.stopPropagation(),!1})),t.querySelector("#btnCancel").addEventListener("click",(function(){window.history.back()}))}else console.error("[useredit] Unexpected null page reference")}),[z]);var Z,K=w.map((function(e){var t=e.Id===R||w.length<2?" selected":"";return'<option value="'.concat(e.Id,'"').concat(t,">").concat(i()(e.Name),"</option>")})),Q=O.map((function(e){var t=e.Id===F||O.length<2?" selected":"";return'<option value="'.concat(e.Id,'"').concat(t,">").concat(i()(e.Name),"</option>")}));return(0,l.jsx)(f.A,{id:"editUserPage",className:"mainAnimatedPage type-interior",children:(0,l.jsxs)("div",{ref:H,className:"content-primary",children:[(0,l.jsx)("div",{className:"verticalSection",children:(0,l.jsx)(b.A,{title:(null==P?void 0:P.Name)||""})}),(0,l.jsx)(v.A,{activeTab:"useredit"}),(0,l.jsx)("div",{className:"lnkEditUserPreferencesContainer",style:{paddingBottom:"1em"},children:(0,l.jsx)(h.A,{className:"lnkEditUserPreferences button-link",href:(null==P?void 0:P.Id)?"mypreferencesmenu?userId=".concat(P.Id):void 0,children:s.Ay.translate("ButtonEditOtherUserPreferences")})}),(0,l.jsxs)("form",{className:"editUserProfileForm",children:[(0,l.jsx)("div",{className:"disabledUserBanner hide",children:(0,l.jsxs)("div",{className:"btn btnDarkAccent btnStatic",children:[(0,l.jsx)("div",{children:s.Ay.translate("HeaderThisUserIsCurrentlyDisabled")}),(0,l.jsx)("div",{style:{marginTop:5},children:s.Ay.translate("MessageReenableUser")})]})}),(0,l.jsx)("div",{id:"fldUserName",className:"inputContainer",children:(0,l.jsx)(y.A,{type:"text",id:"txtUserName",label:s.Ay.translate("LabelName"),required:!0})}),(0,l.jsxs)("div",{className:"selectContainer fldSelectLoginProvider hide",children:[(0,l.jsx)(p.A,{id:"selectLoginProvider",label:"LabelAuthProvider",children:K}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("AuthProviderHelp")})]}),(0,l.jsxs)("div",{className:"selectContainer fldSelectPasswordResetProvider hide",children:[(0,l.jsx)(p.A,{id:"selectPasswordResetProvider",label:"LabelPasswordResetProvider",children:Q}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("PasswordResetProviderHelp")})]}),(0,l.jsxs)("div",{className:"checkboxContainer checkboxContainer-withDescription fldRemoteAccess hide",children:[(0,l.jsx)(u.A,{className:"chkRemoteAccess",title:"AllowRemoteAccess"}),(0,l.jsx)("div",{className:"fieldDescription checkboxFieldDescription",children:s.Ay.translate("AllowRemoteAccessHelp")})]}),(0,l.jsx)(u.A,{labelClassName:"checkboxContainer",className:"chkIsAdmin",title:"OptionAllowUserToManageServer"}),(0,l.jsx)(u.A,{labelClassName:"checkboxContainer",className:"chkEnableCollectionManagement",title:"AllowCollectionManagement"}),(0,l.jsx)(u.A,{labelClassName:"checkboxContainer",className:"chkEnableSubtitleManagement",title:"AllowSubtitleManagement"}),(0,l.jsxs)("div",{id:"featureAccessFields",className:"verticalSection",children:[(0,l.jsx)("h2",{className:"paperListLabel",children:s.Ay.translate("HeaderFeatureAccess")}),(0,l.jsxs)("div",{className:"checkboxList paperList",style:{padding:".5em 1em"},children:[(0,l.jsx)(u.A,{className:"chkEnableLiveTvAccess",title:"OptionAllowBrowsingLiveTv"}),(0,l.jsx)(u.A,{className:"chkManageLiveTv",title:"OptionAllowManageLiveTv"})]})]}),(0,l.jsxs)("div",{className:"verticalSection",children:[(0,l.jsx)("h2",{className:"paperListLabel",children:s.Ay.translate("HeaderPlayback")}),(0,l.jsxs)("div",{className:"checkboxList paperList",style:{padding:".5em 1em"},children:[(0,l.jsx)(u.A,{className:"chkEnableMediaPlayback",title:"OptionAllowMediaPlayback"}),(0,l.jsx)(u.A,{className:"chkEnableAudioPlaybackTranscoding",title:"OptionAllowAudioPlaybackTranscoding"}),(0,l.jsx)(u.A,{className:"chkEnableVideoPlaybackTranscoding",title:"OptionAllowVideoPlaybackTranscoding"}),(0,l.jsx)(u.A,{className:"chkEnableVideoPlaybackRemuxing",title:"OptionAllowVideoPlaybackRemuxing"}),(0,l.jsx)(u.A,{className:"chkForceRemoteSourceTranscoding",title:"OptionForceRemoteSourceTranscoding"})]}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("OptionAllowMediaPlaybackTranscodingHelp")})]}),(0,l.jsx)("br",{}),(0,l.jsx)("div",{className:"verticalSection",children:(0,l.jsxs)("div",{className:"inputContainer",children:[(0,l.jsx)(y.A,{type:"number",id:"txtRemoteClientBitrateLimit",label:s.Ay.translate("LabelRemoteClientBitrateLimit"),inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",min:"0",step:".25"}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("LabelRemoteClientBitrateLimitHelp")}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("LabelUserRemoteClientBitrateLimitHelp")})]})}),(0,l.jsx)("div",{className:"verticalSection",children:(0,l.jsxs)("div",{className:"selectContainer fldSelectSyncPlayAccess",children:[(0,l.jsx)(p.A,{id:"selectSyncPlayAccess",label:"LabelSyncPlayAccess",children:(Z="",Z+="<option value='CreateAndJoinGroups'>".concat(s.Ay.translate("LabelSyncPlayAccessCreateAndJoinGroups"),"</option>"),Z+="<option value='JoinGroups'>".concat(s.Ay.translate("LabelSyncPlayAccessJoinGroups"),"</option>"),Z+="<option value='None'>".concat(s.Ay.translate("LabelSyncPlayAccessNone"),"</option>"))}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("SyncPlayAccessHelp")})]})}),(0,l.jsxs)("div",{className:"verticalSection",children:[(0,l.jsx)("h2",{className:"checkboxListLabel",style:{marginBottom:"1em"},children:s.Ay.translate("HeaderAllowMediaDeletionFrom")}),(0,l.jsxs)("div",{className:"checkboxList paperList checkboxList-paperList",children:[(0,l.jsx)(u.A,{labelClassName:"checkboxContainer",className:"chkEnableDeleteAllFolders",title:"AllLibraries"}
1),(0,l.jsx)("div",{className:"deleteAccess",children:N.map((function(e){return(0,l.jsx)(u.A,{className:"chkFolder",itemId:e.Id,itemName:e.Name,itemCheckedAttribute:e.checkedAttribute},e.Id)}))})]})]}),(0,l.jsxs)("div",{className:"verticalSection",children:[(0,l.jsx)("h2",{className:"checkboxListLabel",children:s.Ay.translate("HeaderRemoteControl")}),(0,l.jsxs)("div",{className:"checkboxList paperList",style:{padding:".5em 1em"},children:[(0,l.jsx)(u.A,{className:"chkEnableRemoteControlOtherUsers",title:"OptionAllowRemoteControlOthers"}),(0,l.jsx)(u.A,{className:"chkRemoteControlSharedDevices",title:"OptionAllowRemoteSharedDevices"})]}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("OptionAllowRemoteSharedDevicesHelp")})]}),(0,l.jsx)("h2",{className:"checkboxListLabel",children:s.Ay.translate("Other")}),(0,l.jsxs)("div",{className:"checkboxContainer checkboxContainer-withDescription",children:[(0,l.jsx)(u.A,{className:"chkEnableDownloading",title:"OptionAllowContentDownload"}),(0,l.jsx)("div",{className:"fieldDescription checkboxFieldDescription",children:s.Ay.translate("OptionAllowContentDownloadHelp")})]}),(0,l.jsxs)("div",{className:"checkboxContainer checkboxContainer-withDescription",id:"fldIsEnabled",children:[(0,l.jsx)(u.A,{className:"chkDisabled",title:"OptionDisableUser"}),(0,l.jsx)("div",{className:"fieldDescription checkboxFieldDescription",children:s.Ay.translate("OptionDisableUserHelp")})]}),(0,l.jsxs)("div",{className:"checkboxContainer checkboxContainer-withDescription",id:"fldIsHidden",children:[(0,l.jsx)(u.A,{className:"chkIsHidden",title:"OptionHideUser"}),(0,l.jsx)("div",{className:"fieldDescription checkboxFieldDescription",children:s.Ay.translate("OptionHideUserFromLoginHelp")})]}),(0,l.jsx)("br",{}),(0,l.jsx)("div",{className:"verticalSection",children:(0,l.jsxs)("div",{className:"inputContainer",id:"fldLoginAttemptsBeforeLockout",children:[(0,l.jsx)(y.A,{type:"number",id:"txtLoginAttemptsBeforeLockout",label:s.Ay.translate("LabelUserLoginAttemptsBeforeLockout"),min:-1,step:1}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("OptionLoginAttemptsBeforeLockout")}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("OptionLoginAttemptsBeforeLockoutHelp")})]})}),(0,l.jsx)("br",{}),(0,l.jsx)("div",{className:"verticalSection",children:(0,l.jsxs)("div",{className:"inputContainer",id:"fldMaxActiveSessions",children:[(0,l.jsx)(y.A,{type:"number",id:"txtMaxActiveSessions",label:s.Ay.translate("LabelUserMaxActiveSessions"),min:0,step:1}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("OptionMaxActiveSessions")}),(0,l.jsx)("div",{className:"fieldDescription",children:s.Ay.translate("OptionMaxActiveSessionsHelp")})]})}),(0,l.jsx)("br",{}),(0,l.jsxs)("div",{children:[(0,l.jsx)(d.A,{type:"submit",className:"raised button-submit block",title:s.Ay.translate("Save")}),(0,l.jsx)(d.A,{type:"button",id:"btnCancel",className:"raised button-cancel block",title:s.Ay.translate("ButtonCancel")})]})]})]})})}},85817:function(e,t,n){var l=n(62540),a=(n(63696),n(5898));t.A=function(e){var t=e.is,n=e.id,i=e.className,c=e.title,o=e.icon,r=e.dataIndex,s=e.dataTag,d=e.dataProfileid,u=e.onClick,h=function(e){var t=e.id,n=e.className,l=e.title,a=e.icon,i=e.dataIndex,c=e.dataTag,o=e.dataProfileid;return{__html:'<button\n is="'.concat(e.is,'"\n type="button"\n ').concat(t,'\n class="').concat(n,'"\n ').concat(l,"\n ").concat(i,"\n ").concat(c,"\n ").concat(o,'\n >\n <span class="material-icons ').concat(a,'" aria-hidden="true"></span>\n </button>')}}({is:t,id:n?'id="'.concat(n,'"'):"",className:i,title:c?'title="'.concat(a.Ay.translate(c),'"'):"",icon:o,dataIndex:r||0===r?'data-index="'.concat(r,'"'):"",dataTag:s?'data-tag="'.concat(s,'"'):"",dataProfileid:d?'data-profileid="'.concat(d,'"'):""});return void 0!==u?(0,l.jsx)("button",{style:{all:"unset"},dangerouslySetInnerHTML:h,onClick:u}):(0,l.jsx)("div",{dangerouslySetInnerHTML:h})}},91281:function(e,t,n){var l=n(62540),a=n(22696),i=n.n(a),c=(n(63696),n(5898)),o=function(e){var t=e.labelClassName,n=e.className,l=e.id,a=e.dataFilter,i=e.dataItemType,c=e.dataId,o=e.checkedAttribute,r=e.renderContent;return{__html:"<label ".concat(t,'>\n <input\n is="emby-checkbox"\n type="checkbox"\n class="').concat(n,'"\n ').concat(l,"\n ").concat(a,"\n ").concat(i,"\n ").concat(c,"\n ").concat(o,"\n />\n ").concat(r,"\n </label>")}};t.A=function(e){var t=e.labelClassName,n=e.className,a=e.elementId,r=e.dataFilter,s=e.itemType,d=e.itemId,u=e.itemCheckedAttribute,h=e.itemName,y=e.title,b="<span>".concat(h?i()(h):c.Ay.translate(y),"</span>");return(0,l.jsx)("div",{className:"sectioncheckbox",dangerouslySetInnerHTML:o({labelClassName:t?"class='".concat(t,"'"):"",className:n,id:a?"id='".concat(a,"'"):"",dataFilter:r?"data-filter='".concat(r,"'"):"",dataItemType:s?"data-itemtype='".concat(s,"'"):"",dataId:d?"data-id='".concat(i()(d),"'"):"",checkedAttribute:u||"",renderContent:b})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.