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