PageSourceSearch

https://rhunapiorwerth.cymru/cp/javascript/components/pages/Protec…oryUserPasswordPage.js?c91fabb990bc9117cac6

js rhunapiorwerth.cymru collected 2026-10-03 18:12:52 UTC 4,532 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk||=[]).push([["components/pages/ProtectedDirectoryUserPasswordPage"],{1604(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(341),r=n(772),o=n(342);const s=({onClose:e,isOpen:t=!0,closeOnFormSuccess:n=!0,closeUrl:s="..",form:a,...c})=>{const d=(0,r.useNavigate)(),[u,l]=(0,i.useState)(t),p=(0,i.useRef)(null),f=(0,i.useCallback)((...t)=>{const n=e??(()=>d(s,{preventScrollReset:!0}));l(!1),p.current=setTimeout(()=>{n(...t),p.current=null},300)},[s,d,e]);(0,i.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]),(0,i.useEffect)(()=>{t?p.current&&clearTimeout(p.current):l(t)},[t]);const m=(0,i.useMemo)(()=>{if(a&&n){if((0,i.isValidElement)(a))return(0,i.cloneElement)(a,{onSuccess:(...e)=>{a.props.onSuccess?.(...e),f()}});if("object"==typeof a)return{...a,onSuccess:(...e)=>{a.onSuccess?.(...e),f()}}}return a},[n,f,a]);return(0,i.jsx)(o.Drawer,{...c,form:m,onClose:f,isOpen:u})}},3045(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(341),r=n(782),o=n.n(r),s=n(772),a=n(811),c=n(342),d=n(95),u=n(1604),l=n(798),p=n(718),f=n(3046),m=n.n(f);const v=d.Locale.getTranslate("components.pages.ProtectedDirectoryUserPassword"),k=({protectedDirectoryUser:{login:e}})=>{const{userId:t}=(0,s.useParams)(),n=(0,s.useLocation)(),[r,o]=(0,i.useState)({id:t,password:""}),[d]=(0,a.useMutation)(m(),{onCompleted(){(0,p.addToast)({intent:"success",message:(0,i.jsx)(v,{content:"success"})})}});return(0,i.jsx)(u.default,{isOpen:!0,"data-type":"protected-directory-user-password-drawer",title:(0,i.jsx)(v,{content:"title"}),subtitle:(0,i.jsx)(v,{content:"subtitle",params:{login:(0,i.jsx)(c.Label,{view:"light",size:"sm",caps:!1,children:e})}}),size:"sm",closeUrl:{...n,pathname:".."},form:(0,i.jsx)(l.default,{values:r,onFieldChange:(e,t)=>
1{o(n=>(0,c.setIn)(n,e,t))},mutation:d,applyButton:!1,submitButton:{children:(0,i.jsx)(v,{content:"submit"}),"data-type":"protected-directory-user-password-submit"},children:(0,i.jsx)(c.FormFieldPassword,{name:"password",required:!0,autoFocus:!0,label:(0,i.jsx)(v,{content:"passwordLabel"}),inputProps:{maxLength:"255"}})})})};k.propTypes={protectedDirectoryUser:o().shape({login:o().string.isRequired}).isRequired};const y=k},3044(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(3045)},3046(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateProtectedDirectoryUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateProtectedDirectoryUserInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateProtectedDirectoryUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"protectedDirectoryUser"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}],loc:{start:0,end:208}};t.loc.source={body:"mutation UpdateProtectedDirectoryUser(\n    $input: UpdateProtectedDirectoryUserInput!, \n) {\n    updateProtectedDirectoryUser(input: $input) {\n        protectedDirectoryUser {\n            id\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,t)}),e.definitions&&e.definitions.forEach(function(e){n(e,t)})}var i={};function r(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}}),e.exports=t,e.exports.UpdateProtectedDirectoryUser=function(e,t){var n={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=i[t]||new Set,s=new Set,a=new Set;for(o.forEach(function(e){a.add(e)});a.size>0;){var c=a;a=new Set,c.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){a.add(e)}))})}return s.forEach(function(t){var i=r(e,t);i&&n.definitions.push(i)}),n}(t,"UpdateProtectedDirectoryUser")}}]);
2//# sourceMappingURL=ProtectedDirectoryUserPasswordPage.js.map?c91fabb990bc9117cac6

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.