(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/IisAppPoolPage/IisAppPoolGlobalPage"],{2782(e,i,n){"use strict";n.r(i),n.d(i,{default:()=>k});var a=n(396),t=n(810),o=n(739),l=n(397),s=n(95),d=n(715),r=n(663),c=n(1371),p=n(1368),u=n.n(p),m=n(2783),f=n.n(m);const v=s.Locale.getSection("admin.controllers.iis-app-pool.global"),k=()=>{const{data:e}=(0,o.useQuery)(u()),i=(0,d.useNavigate)(),[n]=(0,t.useMutation)(f(),{refetchQueries:[{query:u()}]}),{iisManager:{policy:s}}=e,[p,m]=(0,a.useState)({mode:s.mode});return(0,a.jsx)(c.default,{values:p,mutation:({variables:{input:e}})=>n({variables:{input:e}}),onFieldChange:(e,i)=>{m(n=>({...n,[e]:i}))},onSuccess:()=>{(0,r.addToast)({intent:"success",message:v.lmsg("globalSettingsUpdated")}),i("/cp/server/iis-app-pool/settings")},applyButton:{id:"buttonid-apply"},cancelButton:{id:"buttonid-cancel",onClick:()=>i("/cp/server/iis-app-pool/settings")},children:(0,a.jsx)(l.FormFieldRadioButtons,{name:"mode",label:v.lmsg("mode"),options:[{value:"DEDICATED",label:v.lmsg("modeDedicated")},{value:"MIXED",label:v.lmsg("modeMixed")},{value:"SHARED",label:v.lmsg("modeShared")}]})})}},2783(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateIisAppPoolPolicy"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateIisAppPoolPolicyInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateIisAppPoolPolicy"},arguments:[{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:"policy"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mode"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:175}};i.loc.source={body:"mutation UpdateIisAppPoolPolicy($input: UpdateIisAppPoolPolicyInput!) {\r\n    updateIisAppPoolPolicy(input: $input) {\r\n        policy {\r\n            mode\r\n        }\r\n    }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&i.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){n(e,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){n(e,i)}),e.definitions&&e.definitions.forEach(function(e){n(e,i)})}var a={};function t(e,i){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==i)return a}}i.definitions.forEach(function(e){if(e.name){var i=new Set;n(e,i),a[e.name.value]=i}}),e.exports=i,e.exports.UpdateIisAppPoolPolicy=function(e,i){var n={kind:e.kind,definitions:[t(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=a[i]||new Set,l=new Set,s=new Set;for(o.forEach(function(e){s.add(e)});s.size>0;){var d=s;s=new Set,d.forEach(function(e){l.has(e)||(l.add(e),(a[e]||new Set).forEach(function(e){s.add(e)}))})}return l.forEach(function(i){var a=t(e,i);a&&n.definitions.push(a)}),n}(i,"UpdateIisAppPoolPolicy")}}]);
//# sourceMappingURL=IisAppPoolGlobalPage.js.map?1c2e0db7e4c553e44549