PageSourceSearch

https://aclikoyunlari.net/cp/javascript/components/pages/VirtualDi…/PhpVersionPage.js?e3aadeea051b133a1c9c

js aclikoyunlari.net collected 2026-10-03 18:52:43 UTC 5,330 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["components/pages/VirtualDirectoryPage/PhpVersionPage"],{1420:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>o});var a=i(295),t=i(598),r=i(296);const o=({onClose:e,isOpen:n=!0,closeOnFormSuccess:i=!0,closeUrl:o="..",form:s,...l})=>{const u=(0,t.useNavigate)(),[d,c]=(0,a.useState)(n),m=(0,a.useRef)(null),p=(0,a.useCallback)((...n)=>{const i=e??(()=>u(o,{preventScrollReset:!0}));c(!1),m.current=setTimeout(()=>{i(...n),m.current=null},300)},[o,u,e]);(0,a.useEffect)(()=>()=>{m.current&&clearTimeout(m.current)},[]),(0,a.useEffect)(()=>{n?m.current&&clearTimeout(m.current):c(n)},[n]);const v=(0,a.useMemo)(()=>{if(s&&i){if((0,a.isValidElement)(s))return(0,a.cloneElement)(s,{onSuccess:(...e)=>{s.props.onSuccess?.(...e),p()}});if("object"==typeof s)return{...s,onSuccess:(...e)=>{s.onSuccess?.(...e),p()}}}return s},[i,p,s]);return(0,a.jsx)(r.Drawer,{...l,form:v,onClose:p,isOpen:d})}},2805:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>a.default});var a=i(2806)},2806:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>S});var a=i(667),t=i(90),r=i(1420),o=i(695),s=i(619),l=i(545),u=i(1300),d=i(296),c=i(2556),m=i(2807),p=i.n(m),v=i(1248),f=i.n(v),k=i(598),h=i(295);const b=t.Locale.getTranslate("components.pages.VirtualDirectory.Php"),y=({params:{domainId:e},...n})=>{const[i]=(0,k.useSearchParams)(),a=i.get("path")||"/",t=(0,k.useLocation)(),{data:{domain:{hosting:{virtualDirectory:{phpVersion:{version:m,fullVersion:v},availablePhpVersions:y}}}}}=(0,s.useQuery)(f(),{variables:{domainId:btoa(`Domain:${e}`),path:a}}),[S,V]=(0,h.useState)({version:m}),N=(0,h.useCallback)((e,n)=>{V(i=>(0,d.setIn)(i,e,n))},[]),[D]=(0,o.useMutation)(p(),{refetchQueries:[f()],onCompleted(){(0,l.addToast)({intent:"success",message:(0,h.jsx)(b,{content:"success"})})},awaitRefetchQueries:!0});return(0,h.jsx)(r.default,{isOpen:!0,"data-type":"virtual-directory-php-drawer",title:(0,h.jsx)(b,{content:"title"}),size:"sm",closeUrl:{...t,pathname:".."},form:(0,h.jsx)(u.default,{onFieldChange:N,mutation:({variables:n})=>D({variables:{domainId:btoa(`Domain:${e}`),path:a,...n}}),values:S,submitButton:!!y.length&&void 0,applyButton:!1,...n,children:y.length?(0,h.jsx)(d.FormFieldSelect,{name:"version",label:(0,h.jsx)(b,{content:"version"}),required:!0,children:[...y].sort((e,n)=>(0,c.compareVersions)(e.version,n.version)).map(({version:e,fullVersion:n})=>(0,h.jsx)("option",{value:e,children:n},e))}):(0,h.jsx)(d.FormField,{label:(0,h.jsx)(b,{content:"version"}),children:v})})})};y.propTypes={params:a.PropTypes.object.isRequired};const S=y},2807:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateVirtualDirectoryPhp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domainId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PhpVersionInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateVirtualDirectoryPhp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"domainId"},value:{kind:"Variable",name:{kind:"Name",value:"domainId"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:200}};n.loc.source={body:"mutation UpdateVirtualDirectoryPhp($domainId: ID!, $path: String!, $input: PhpVersionInput!) {\n    updateVirtualDirectoryPhp(domainId: $domainId, path: $path, input
1: $input) {\n        version\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){i(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){i(e,n)}),e.definitions&&e.definitions.forEach(function(e){i(e,n)})}var a={};function t(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.UpdateVirtualDirectoryPhp=function(e,n){var i={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=a[n]||new Set,o=new Set,s=new Set;for(r.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach(function(e){s.add(e)}))})}return o.forEach(function(n){var a=t(e,n);a&&i.definitions.push(a)}),i}(n,"UpdateVirtualDirectoryPhp")}}]);
2//# sourceMappingURL=PhpVersionPage.js.map?e3aadeea051b133a1c9c

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.