"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[38245,96084],{54790:function(a,n,t){t.r(n);var e=t(62540),r=t(63696),s=t(87159),c=t(41600),i=t(95154),o=t(85757),l=t(7397),u=t(56869);n.default=function(){var a=(0,i.E)("userId"),n=function(a,n){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var e,r,s=t.call(a),c=[];try{for(;(void 0===n||n-- >0)&&!(e=s.next()).done;)c.push(e.value)}catch(a){r={error:a}}finally{try{e&&!e.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}return c}((0,r.useState)(""),2),t=n[0],d=n[1],b=(0,r.useCallback)((function(){u.Ay.show(),window.ApiClient.getUser(a).then((function(a){if(!a.Name)throw new Error("Unexpected null user.Name");d(a.Name),u.Ay.hide()})).catch((function(a){console.error("[userpassword] failed to fetch user",a)}))}),[a]);return(0,r.useEffect)((function(){b()}),[b]),(0,e.jsx)(l.A,{id:"userPasswordPage",className:"mainAnimatedPage type-interior userPasswordPage",children:(0,e.jsxs)("div",{className:"content-primary",children:[(0,e.jsx)("div",{className:"verticalSection",children:(0,e.jsx)(o.A,{title:t,url:"https://jellyfin.org/docs/general/server/users/"})}),(0,e.jsx)(s.A,{activeTab:"userpassword"}),(0,e.jsx)("div",{className:"readOnlyContent",children:(0,e.jsx)(c.A,{userId:a})})]})})}},87159:function(a,n,t){var e=t(62540),r=(t(63696),t(9482)),s=function(a){return{__html:'<a href="#"\n        is="emby-linkbutton"\n        data-role="button"\n        class="'.concat("useredit"===a?"ui-btn-active":"",'"\n        onclick="Dashboard.navigate(\'/dashboard/users/profile\', true);">\n        ').concat(r.Ay.translate("Profile"),'\n    </a>\n    <a href="#"\n        is="emby-linkbutton"\n        data-role="button"\n        class="').concat("userlibraryaccess"===a?"ui-btn-active":"",'"\n        onclick="Dashboard.navigate(\'/dashboard/users/access\', true);">\n        ').concat(r.Ay.translate("TabAccess"),'\n    </a>\n    <a href="#"\n        is="emby-linkbutton"\n        data-role="button"\n        class="').concat("userparentalcontrol"===a?"ui-btn-active":"",'"\n        onclick="Dashboard.navigate(\'/dashboard/users/parentalcontrol\', true);">\n        ').concat(r.Ay.translate("TabParentalControl"),'\n    </a>\n    <a href="#"\n        is="emby-linkbutton"\n        data-role="button"\n        class="').concat("userpassword"===a?"ui-btn-active":"",'"\n        onclick="Dashboard.navigate(\'/dashboard/users/password\', true);">\n        ').concat(r.Ay.translate("HeaderPassword"),"\n    </a>")}};n.A=function(a){var n=a.activeTab;return(0,e.jsx)("div",{"data-role":"controlgroup","data-type":"horizontal",className:"localnav",dangerouslySetInnerHTML:s(n)})}},96268:function(a,n,t){var e=t(62540),r=(t(63696),t(9482)),s=function(a){var n=a.is,t=a.id,e=a.className,r=a.title,s=a.icon,c=a.dataIndex,i=a.dataTag,o=a.dataProfileid;return{__html:'<button\n        is="'.concat(n,'"\n        type="button"\n        ').concat(t,'\n        class="').concat(e,'"\n        ').concat(r,"\n        ").concat(c,"\n        ").concat(i,"\n        ").concat(o,'\n    >\n        <span class="material-icons ').concat(s,'" aria-hidden="true"></span>\n    </button>')}};n.A=function(a){var n=a.is,t=a.id,c=a.className,i=a.title,o=a.icon,l=a.dataIndex,u=a.dataTag,d=a.dataProfileid;return(0,e.jsx)("div",{dangerouslySetInnerHTML:s({is:n,id:t?'id="'.concat(t,'"'):"",className:c,title:i?'title="'.concat(r.Ay.translate(i),'"'):"",icon:o,dataIndex:l?'data-index="'.concat(l,'"'):"",dataTag:u?'data-tag="'.concat(u,'"'):"",dataProfileid:d?'data-profileid="'.concat(d,'"'):""})})}},85757:function(a,n,t){t.d(n,{A:function(){return o}});var e=t(62540),r=(t(63696),t(96268)),s=t(9482),c=function(a){var n=a.className,t=a.title,e=a.href;return{__html:'<a\n        is="emby-linkbutton"\n        rel="noopener noreferrer"\n        class="'.concat(n,'"\n        target="_blank"\n        href="').concat(e,'"\n        >\n        ').concat(t,"\n    </a>")}},i=function(a){var n=a.className,t=a.title,r=a.url;return(0,e.jsx)("div",{dangerouslySetInnerHTML:c({className:n,title:s.Ay.translate(t),href:r})})},o=function(a){var n=a.SectionClassName,t=a.title,s=a.isBtnVisible,c=void 0!==s&&s,o=a.btnId,l=a.btnClassName,u=a.btnTitle,d=a.btnIcon,b=a.isLinkVisible,f=void 0===b||b,h=a.url;return(0,e.jsxs)("div",{className:"".concat(n," sectionTitleContainer flex align-items-center"),children:[(0,e.jsx)("h2",{className:"sectionTitle",children:t}),c&&(0,e.jsx)(r.A,{is:"emby-button",id:o,className:l,title:u,icon:d}),f&&(0,e.jsx)(i,{className:"raised button-alt headerHelpButton",title:"Help",url:h})]})}}}]);