PageSourceSearch

https://medone.es/cp/javascript/views/php/extensions.js?af28347bfb9e6795b14e

js medone.es collected 2026-10-06 09:52:11 UTC 31,356 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk||=[]).push([["views/php/extensions"],{1609(e,n,i){"use strict";i.r(n),i.d(n,{SORT_ASC:()=>r,SORT_DESC:()=>d,default:()=>f});var t=i(341),a=i(782),s=i.n(a),o=i(342);const l=i(95).Locale.getSection("components.list"),r="ASC",d="DESC",c="all",u={set(e,n){localStorage.setItem(e,JSON.stringify(n))},get(e){const n=localStorage.getItem(e);return JSON.parse(n)}},p=e=>`list-sort_${e}`,m=e=>`list-page_${e}`,h=({id:e,data:n,columns:i,itemsPerPage:a=25,itemsPerPageOptions:s=[10,25,100,c],sortColumn:d,sortDirection:h=r,searchField:f,locale:k={},emptyView:v,emptyFilteredView:g,toolbar:x,selection:b=[],onSelectionChange:S,searchBarInputProps:y,rowKey:N="key",useStorage:P=!0,...E})=>{const{sortColumn:j,sortDirection:T,setSortState:F}=((e,{sortColumn:n,sortDirection:i})=>{const[{sortColumn:a,sortDirection:s},o]=(0,t.useState)({sortColumn:u.get(p(e))?.sortColumn??n,sortDirection:u.get(p(e))?.sortDirection??i});return{sortColumn:a,sortDirection:s,setSortState:n=>{o(e=>({...e,...n})),u.set(p(e),{...u.get(p(e)),...n})}}})(e,{sortColumn:d??i.find(({sortable:e})=>e)?.key,sortDirection:h}),{page:w,itemsPerPage:V,searchPattern:C,setPageState:D}=((e,{itemsPerPage:n},i=!0)=>{const a=i?{page:u.get(m(e))?.page,itemsPerPage:u.get(m(e))?.itemsPerPage,searchPattern:u.get(m(e))?.searchPattern}:{},[{page:s,itemsPerPage:o,searchPattern:l},r]=(0,t.useState)({page:a.page??1,itemsPerPage:a.itemsPerPage??n,searchPattern:a.searchPattern??""});return{page:s,itemsPerPage:o,searchPattern:l,setPageState:n=>{r(e=>({...e,...n})),i&&u.set(m(e),{...u.get(m(e)),...n})}}})(e,{itemsPerPage:s.includes(a)?a:s[0]},P),I=(0,t.useMemo)(()=>C?g??(0,t.jsx)(o.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):v??(0,t.jsx)(o.ListEmptyView,{}),[C,v,g]),H=(0,t.useMemo)(()=>i.map(({sortDataField:e,...n})=>n),[i]),L=(0,t.useMemo)(()=>f&&C?n.filter(e=>(Array.isArray(f)?f:[f]).some(n=>e[n]&&String(e[n]).toLowerCase().includes(C.toLowerCase()))):n,[n,C,f]),O=(0,t.useMemo)(()=>{if(!j)return L;const e=i.find(({key:e})=>e===j)?.sortDataField??j,n=i.find(({key:e})=>e===j)?.sort??((n,i)=>n[e]<i[e]?-1:n[e]>i[e]?1:0);return[...L].sort((e,i)=>r===T?n(e,i):n(i,e))},[L,j,T,i]),R=(0,t.useMemo)(()=>{if(V===c)return O;const e=V*(w-1),n=e+V;return O.slice(e,n)},[w,O,V]),q=(0,t.useCallback)(e=>{D({searchPattern:e}),e!==C&&D({page:1})},[C]),$=(0,t.useCallback)(e=>{D({itemsPerPage:e});(e===c?1:Math.ceil(L.length/e))<w&&D({page:1})},[L.length,w]);return(0,t.useEffect)(()=>{if("function"==typeof S&&b.length){const e=L.map(e=>{return n=e,"function"==typeof(i=N)?i(n):n[i];var n,i}).filter(e=>b.includes(e));S(e)}},[L]),(0,t.jsx)(o.List,{pagination:(0,t.jsx)(o.Pagination,{current:w,total:V===c?1:Math.ceil(L.length/V),onSelect:e=>D({page:e}),itemsPerPage:V,itemsPerPageOptions:s,onItemsPerPageChange:$}),toolbar:(x||f)&&(0,t.jsxs)(o.Toolbar,{children:[x,f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ToolbarExpander,{}),(0,t.jsx)(o.ToolbarGroup,{title:"",children:(0,t.jsx)(o.SearchBar,{inputProps:{placeholder:l.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:C,...y??{}},onTyping:q})})]})]}),totalRows:L.length,sortColumn:j,sortDirection:T,onSortChange:F,columns:H,data:R,filtered:!!C,locale:{totalRows:({totalRows:e})=>l.formatMessage("recordsTotal",{total:e}),...k},emptyView:I,onSelectionChange:S,selection:b,rowKey:N,...E})};h.propTypes={id:s().string.isRequired,data:s().array.isRequired,columns:s().array.isRequired,itemsPerPage:s().number,itemsPerPageOptions:s().array,sortColumn:s().string,sortDirection:s().string,searchField:s().oneOfType([s().string,s().arrayOf(s().string.isRequired)]),locale:s().object,emptyView:s().node,emptyFilteredView:s().node,toolbar:s().node,onSelectionChange:s().func,selection:s().array,rowKey:s().oneOfType([s().string,s().func]),searchBarInputProps:s().object,useStorage:s().bool};const f=h},2773(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>p});var t=i(782),a=i(628),s=i(342),o=i(95),l=i(341),r=i(718);const d=o.Locale.getTranslate("admin.components.forms.php-handler.extension"),c=o.Locale.getTranslate("components.buttons"),u=({isOpen:e=!1,onSubmit:n,onClose:i,...t})=>{const[o,u]=(0,l.useState)({}),[p,m]=(0,l.useState)(null),[h,f]=(0,l.useState)({});(0,l.useEffect)(()=>{e&&(u({extensionName:""}),m(null),f({}))},[e]);return(0,l.jsx)(s.Popover,{title:(0,l.jsx)(d,{content:"title"}),visible:e,onClose:i,...t,children:(0,l.jsx)(s.Form,{values:o,state:p,errors:h,submitButton:{id:"btn-ok",name:"ok",children:(0,l.jsx)(c,{content:"ok"})},applyButton:!1,cancelButton:{id:"btn-cancel",name:"cancel",children:(0,l.jsx)(c,{content:"cancel"}),onClick:i},onSubmit:async({extensionName:e})=>{f(null),m("submit");try{await n(e),i()}
1catch(e){(a.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({message:e,debugMessage:n,extensions:i})=>{"validate"===i.category?f(e=>({...e,...i.messages})):(0,r.addToast)({intent:"danger",message:n||e})})}finally{m(null)}},children:(0,l.jsx)(s.FormFieldText,{name:"extensionName","data-test-id":"custom-package-name",label:(0,l.jsx)(d,{content:"name"}),description:(0,l.jsx)(d,{content:"description"}),required:!0})})})};u.propTypes={isOpen:t.PropTypes.bool,onSubmit:t.PropTypes.func.isRequired,onClose:t.PropTypes.func.isRequired};const p=u},2772(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>T});var t=i(782),a=i(342),s=i(95),o=i(1609),l=i(341),r=i(1265),d=i(2773),c=i(811),u=i(628),p=i(718),m=i(2774),h=i(2776),f=i.n(h),k=i(2777),v=i.n(k);const g=s.Locale.getTranslate("admin.components.lists.phpextensions.installable"),x=s.Locale.getSection("admin.components.lists.phpextensions.installable"),b="notInstalled",S="outdated",y="latest",N=e=>{switch(e){case S:return"warning";case y:return"success";default:return"inactive"}},P=(e,n)=>{if(!n)return!1;try{return 1===(0,m.compareVersions)(e,n)}catch{const i=e=>e.split(".").map(e=>parseInt(e)||0).join(".");try{return 1===(0,m.compareVersions)(i(e),i(n))}catch{return!1}}},E=({onSubmit:e,...n})=>{const i=(0,l.useRef)(),[t,s]=(0,l.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Button,{"data-action":"installCustomPhpExtension",tooltip:(0,l.jsx)(g,{content:"buttonInstallCustomHint"}),onClick:()=>s(!0),ref:i,...n,children:(0,l.jsx)(g,{content:"buttonInstallCustom"})}
1),(0,l.jsx)(d.default,{targetRef:i,isOpen:t,onSubmit:e,onClose:()=>s(!1)})]})};E.propTypes={onSubmit:t.PropTypes.func.isRequired};const j=({id:e,installablePhpExtensions:n,setTask:i,onReload:t})=>{const s=(0,l.useMemo)(()=>["name","description"],[]),d=(0,l.useMemo)(()=>n.map(({package:e,installedVersion:n,latestVersion:i,...t})=>({key:e.toLowerCase(),name:e,status:P(i,n)?S:n?y:b,installedVersion:n,latestVersion:i,...t})),[n]),[m]=(0,c.useMutation)(f(),{variables:{phpHandlerId:e}}),[h]=(0,c.useMutation)(v(),{variables:{phpHandlerId:e}}),k=(0,l.useCallback)((e,n)=>{const i=({status:e})=>{switch(e){case S:return 0;case y:return 1;default:return 2}},t=i(e),a=i(n);if(t<a)return-1;if(t>a)return 1;const s=e.name.toLowerCase(),o=n.name.toLowerCase();return s<o?-1:s>o?1:0},[]),j=async e=>{const{data:{installPhpExtension:n}}=await m({variables:{extensionName:e}});i(n)},T=async e=>{try{await j(e)}catch(e){(u.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({message:e,debugMessage:n})=>{(0,p.addToast)({intent:"danger",message:n||e})})}};return(0,l.jsx)(o.default,{id:"installable-php-extensions-list",columns:[{key:"status",title:(0,l.jsx)(g,{content:"status"}),sortDataField:"status",sortable:!0,sort:k,render:({status:e,name:n,...i})=>(0,l.jsx)(a.Tooltip,{title:(0,l.jsx)(g,{content:e,params:i}),children:(0,l.jsx)(a.Status,{intent:N(e),"aria-label":x.lmsg(e,i)})})},{key:"name",title:(0,l.jsx)(g,{content:"name"}),sortDataField:"key",type:"title",sortable:!0,render:({name:e,latestVersion:n,installedVersion:i})=>`${e} (${i||n})`},{key:"description",title:(0,l.jsx)(g,{content:"description"}),sortable:!0,render:({description:e})=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`},{key:"actions",type:"actions",render:({status:e,latestVersion:n,name:t})=>(0,l.jsxs)(a.ListActions,{children:[e===b&&(0,l.jsx)(a.ListAction,{icon:"plus",primary:!0,"data-action":"installPhpExtension",onClick:()=>T(t),children:(0,l.jsx)(g,{content:"actionInstall"})}),e===S&&(0,l.jsx)(a.ListAction,{icon:"arrow-up",primary:!0,"data-action":"upgradePhpExtension",onClick:()=>T(t),children:(0,l.jsx)(g,{content:"actionUpgrade",params:{version:n}})}),(0,l.jsx)(a.ListAction,{icon:"info-circle",primary:!0,component:"a",href:`https://pecl.php.net/package/${t}`,target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)(g,{content:"actionDocs"})}),(0,l.jsx)(a.ListAction,{icon:"recycle",hidden:e===b,primary:!0,"data-action":"uninstallPhpExtension",children:({wrap:e})=>(0,l.jsx)(r.default,{target:e((0,l.jsx)(g,{content:"actionUninstall"})),confirmationText:(0,l.jsx)(g,{content:"uninstallConfirmation",params:{name:t}}),isCritical:!0,onClick:()=>(async e=>{try{const{data:{uninstallPhpExtension:n}}=await h({variables:{extensionName:e}});i(n)}catch(e){(u.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({message:e,debugMessage:n})=>{(0,p.addToast)({intent:"danger",message:n||e})})}})(t)})})]})}],data:d,searchField:s,sortColumn:"status",toolbar:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.ToolbarGroup,{title:x.lmsg("groupInstall"),children:(0,l.jsx)(E,{onSubmit:j,intent:"primary"})}),(0,l.jsx)(a.ToolbarGroup,{title:x.lmsg("groupReload"),children:(0,l.jsx)(a.Button,{"data-action":"reloadPhpExtensions",tooltip:(0,l.jsx)(g,{content:"buttonReloadHint"}),onClick:t,children:(0,l.jsx)(g,{content:"buttonReload"})})})]}),searchBarInputProps:{"data-testid":"search-installable-extension"},emptyView:(0,l.jsx)(a.ListEmptyView,{actions:(0,l.jsx)(E,{onSubmit:j})}),emptyFilteredView:(0,l.jsx)(a.ListEmptyView,{reason:"filtered",actions:(0,l.jsx)(E,{onSubmit:j}),title:(0,l.jsx)(g,{content:"emptyViewFilteredTitle"}),description:(0,l.jsx)(g,{content:"emptyViewFilteredDescription"})})})};j.propTypes={id:t.PropTypes.string.isRequired,installablePhpExtensions:t.PropTypes.array.isRequired,setTask:t.PropTypes.func.isRequired,onReload:t.PropTypes.func.isRequired};const T=j},2780(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>f});var t=i(95),a=i(342),s=i(782),o=i.n(s),l=i(718),r=i(811),d=i(628),c=i(341),u=i(2781),p=i.n(u);const m=t.Locale.getTranslate("admin.components.lists.phpextensions"),h=({id:e,phpExtensions:n})=>{const[i]=(0,r.useMutation)(p(),{variables:{phpHandlerId:e}}),[t,s]=(0,c.useState)([]);return(0,c.jsx)(a.Grid,{gap:"md",minColumnWidth:200,maxColumnsNumber:6,children:n.map(({name:e,enabled:n})=>(0,c.jsx)(a.GridCol,{children:(0,c.jsx)(a.Switch,{checked:n,loading:t.includes(e),tooltip:(0,c.jsx)(m,{content:n?"disable":"enable"}),onChange:()=>(async(e,n)=>{try{s(n=>[...n,e]),await i({variables:{extensionName:e,action:n}})}
1catch(e){(d.CombinedGraphQLErrors.is(e)?e.errors:[]).forEach(({message:e,debugMessage:n})=>{(0,l.addToast)({intent:"danger",message:n||e})})}finally{s(n=>n.filter(n=>n!==e))}})(e,n?"disable":"enable"),"aria-label":e,children:e})},e))})};h.propTypes={id:o().string.isRequired,phpExtensions:o().array.isRequired};const f=h},2771(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>v});var t=i(782),a=i(342),s=i(95),o=i(811),l=i(785),r=i(341),d=i(813),c=i(2772),u=i(2778),p=i.n(u),m=i(2779),h=i.n(m);const f=s.Locale.getTranslate("components.pages.php-handler.extensions.manage"),k=({id:e,affectedHandlers:n,updateAffectedHandlersCache:i,isOpen:t=!1,onClose:s})=>{const{data:u,client:m}=(0,l.useQuery)(p(),{variables:{id:e},skip:!t});(0,r.useEffect)(()=>{u&&i(u,m)},[u,m]);const[k,{loading:v}]=(0,o.useMutation)(h(),{variables:{id:e},onCompleted:({resetPhpExtensionCache:{query:e}})=>i(e,m)}),[g,x]=(0,r.useState)(null);return(0,r.useEffect)(()=>{t&&x(null)},[t]),(0,r.jsx)(d.default,{dataType:"manage-php-extensions",className:"manage-php-extensions",title:(0,r.jsx)(f,{content:"title"}),isOpen:t,onClose:s,task:g,onTaskComplete:k,size:"md",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.StatusMessage,{intent:"info",children:(0,r.jsx)(f,{content:"risks"})}),(0,r.jsx)("p",{children:(0,r.jsx)(f,{content:"description",params:{handlers:(0,r.jsx)("b",{children:n.map(({name:e})=>e).join(", ")})}})}),u&&!v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{children:(0,r.jsx)(a.Popover,{target:(0,r.jsx)(a.Link,{children:(0,r.jsx)(f,{content:"notFound"})}),children:(0,r.jsx)(f,{content:"limitations"})})}),(0,r.jsx)(c.default,{...u.phpHandler,setTask:x,onReload:k})]}):(0,r.jsx)(a.ContentLoader,{})]})})};k.propTypes={id:t.PropTypes.string.isRequired,affectedHandlers:t.PropTypes.array.isRequired,updateAffectedHandlersCache:t.PropTypes.func.isRequired,isOpen:t.PropTypes.bool,onClose:t.PropTypes.func.isRequired};const v=k},2769(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>x});var t=i(95),a=i(408),s=i(909),o=i(2770),l=i(342),r=i(2771),d=i(2780),c=i(2774),u=i(785),p=i(341),m=i(782),h=i.n(m),f=i(888),k=i.n(f);const v=t.Locale.getTranslate("components.pages.php-handler.extensions"),g=({params:{id:e}})=>{const n=({phpHandler:{phpExtensions:n,installablePhpExtensions:i}},{cache:t})=>s.filter(n=>n.id!==e).forEach(e=>{const a={};n&&(a.phpExtensions=()=>n),i&&(a.installablePhpExtensions=()=>i),t.modify({id:t.identify(e),fields:a})}),i=(0,u.useQuery)(k(),{variables:{id:e}}),{data:{phpHandler:{version:t,phpExtensions:a,affectedHandlers:s},os:{isUnix:o},config:{php:{pecl:{enabled:m,minVersion:h}}}}}=i;(0,p.useEffect)(()=>{i.data&&n(i.data,i.client)},[i.data,i.client]);const[f,g]=(0,p.useState)(!1),x=(0,p.useMemo)(()=>{if(!o||!m)return!1;try{return(0,c.compareVersions)(t,h)>=0}catch{return!0}},[t,o,m,h]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{children:(0,p.jsx)(v,{content:s.length>1?"descriptionShared":"description",params:{handlers:(0,p.jsx)("b",{children:s.map(({name:e})=>e).join(", ")})}})}),x&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(l.Toolbar,{children:(0,p.jsx)(l.Button,{id:"managePhpExtensions",onClick:()=>g(!0),children:(0,p.jsx)(v,{content:"buttonManage"})})}),(0,p.jsx)(r.default,{id:e,affectedHandlers:s,updateAffectedHandlersCache:n,isOpen:f,onClose:()=>g(!1)})]}),(0,p.jsx)(d.default,{id:e,phpExtensions:a})]})};g.propTypes={params:h().shape({id:h().string.isRequired}).isRequired};const x=(0,s.withPageLayout)((0,o.withPhpSettingsTabs)(g),({params:{id:e}})=>{const{showFrames:n,pageHeader:i,pageSidebar:s}=(0,a.default)(),{data:{phpHandler:{name:o}}}=(0,u.useQuery)(k(),{variables:{id:e}}),l=[s.isPowerUserPanel?null:{title:t.Locale.getSection("admin.controllers.home.admin").lmsg("title"),href:"/admin/home"},{title:t.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools"},{title:t.Locale.getSection("admin.controllers.php-handler.list").lmsg("title"),href:"/admin/php-handler/list/"},{title:t.Locale.getSection("components.pages.php-handler").lmsg("title",{name:o}),href:`/cp/php/extensions/id/${e}`}].filter(Boolean),r=l[l.length-1].title;return{showFrames:n,pageHeader:{...i,helpMenu:{...i.helpMenu,helpContext:"php-handler.list"}},pageSidebar:s,pageContentHeader:{pageTitle:r,breadcrumbs:l},pageTitle:r}}
1)},2768(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>t.default});var t=i(2769)},2770(e,n,i){"use strict";i.r(n),i.d(n,{default:()=>p,withPhpSettingsTabs:()=>u});var t=i(341),a=i(772),s=i(342),o=i(95),l=i(797),r=i(782),d=i.n(r);const c=({params:{id:e}})=>{const{pathname:n}=(0,a.useLocation)(),i=(0,t.useMemo)(()=>[{title:o.Locale.getSection("components.pages.php-handler.extensions").lmsg("title"),url:`/cp/php/extensions/id/${e}`,id:"tabExtensions"},{title:o.Locale.getSection("components.pages.php-handler.php-ini").lmsg("title"),url:`/admin/php-handler/php-ini/id/${e}`,id:"tabIniFile"}],[e]),r=(0,t.useMemo)(()=>i.findIndex(({url:e})=>(0,a.matchPath)(e,n))+1,[i,n]);return(0,t.jsx)(s.Tabs,{active:r,children:i.map(({url:e,...n})=>(0,t.jsx)(s.Tab,{component:l.default,to:e,...n},e))})};c.propTypes={params:d().shape({id:d().string.isRequired}).isRequired};const u=e=>{const n=n=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{...n}),(0,t.jsx)(e,{...n})]});return n.displayName=`withPhpSettingsTabs(${e.displayName||e.name||"Component"})`,n.WrappedComponent=e,n},p=c},2776(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InstallPhpExtension"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phpHandlerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extensionName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"installPhpExtension"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"phpHandlerId"},value:{kind:"Variable",name:{kind:"Name",value:"phpHandlerId"}}},{kind:"ObjectField",name:{kind:"Name",value:"extensionName"},value:{kind:"Variable",name:{kind:"Name",value:"extensionName"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"progressTitle"}},{kind:"Field",name:{kind:"Name",value:"progressValue"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"output"}},{kind:"Field",name:{kind:"Name",value:"steps"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"progress"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"output"}}]}}]}}]}}],loc:{start:0,end:403}};n.loc.source={body:"mutation InstallPhpExtension($phpHandlerId: ID!, $extensionName: String!) {\n    installPhpExtension(input: { phpHandlerId: $phpHandlerId, extensionName: $extensionName }) {\n        id\n        status\n        progressTitle\n        progressValue\n        errors\n        output\n        steps {\n            title\n            progress\n            status\n            errors\n            output\n        }\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 t=e.type;"NamedType"===t.kind&&n.add(t.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 t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.InstallPhpExtension=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=t[n]||new Set,o=new Set,l=new Set;for(s.forEach(function(e){l.add(e)});l.size>0;){var r=l;l=new Set,r.forEach(function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"InstallPhpExtension")},2778(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"InstallablePhpExtensions"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phpHandler"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"installablePhpExtensions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"package"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"installedVersion"}},{kind:"Field",name:{kind:"Name",value:"latestVersion"}}]}}]}}]}}],loc:{start:0,end:232}};n.loc.source={body:"query InstallablePhpExtensions($id: ID!) {\n    phpHandler(id: $id) {\n        id\n        installablePhpExtensions {\n            package\n            description\n            installedVersion\n            latestVersion\n        }\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 t=e.type;"NamedType"===t.kind&&n.add(t.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 t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.InstallablePhpExtensions=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=t[n]||new Set,o=new Set,l=new Set;for(s.forEach(function(e){l.add(e)});l.size>0;){var r=l;l=new Set,r.forEach(function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"InstallablePhpExtensions")},2779(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReloadPhpExtensions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"resetPhpExtensionCache"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phpHandler"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"phpExtensions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"installablePhpExtensions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"package"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"installedVersion"}},{kind:"Field",name:{kind:"Name",value:"latestVersion"}}]}}]}}]}}]}}]}}],loc:{start:0,end:466}};n.loc.source={body:"mutation ReloadPhpExtensions($id: ID!) {\n    resetPhpExtensionCache {\n        query {\n            phpHandler(id: $id) {\n                id\n                phpExtensions {\n                    name\n                    enabled\n                }\n                installablePhpExtensions {\n                    package\n                    description\n                    installedVersion\n                    latestVersion\n                }\n            }\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.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 t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.ReloadPhpExtensions=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=t[n]||new Set,o=new Set,l=new Set;for(s.forEach(function(e){l.add(e)});l.size>0;){var r=l;l=new Set,r.forEach(function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"ReloadPhpExtensions")},2781(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"TogglePhpExtension"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phpHandlerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extensionName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"action"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TogglePhpExtensionEnum"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"togglePhpExtension"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"phpHandlerId"},value:{kind:"Variable",name:{kind:"Name",value:"phpHandlerId"}}},{kind:"ObjectField",name:{kind:"Name",value:"extensionName"},value:{kind:"Variable",name:{kind:"Name",value:"extensionName"}}},{kind:"ObjectField",name:{kind:"Name",value:"action"},value:{kind:"Variable",name:{kind:"Name",value:"action"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"query"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"phpHandler"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"phpHandlerId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"phpExtensions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]}}]}}]}}],loc:{start:0,end:436}};n.loc.source={body:"mutation TogglePhpExtension($phpHandlerId: ID!, $extensionName: String!, $action: TogglePhpExtensionEnum!) {\n    togglePhpExtension(input: { phpHandlerId: $phpHandlerId, extensionName: $extensionName, action: $action }) {\n        query {\n            phpHandler(id: $phpHandlerId) {\n                id\n                phpExtensions {\n                    name\n                    enabled\n                }\n            }\n        }\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 t=e.type;"NamedType"===t.kind&&n.add(t.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 t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.TogglePhpExtension=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=t[n]||new Set,o=new Set,l=new Set;for(s.forEach(function(e){l.add(e)});l.size>0;){var r=l;l=new Set,r.forEach(function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"TogglePhpExtension")},2777(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UninstallPhpExtension"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phpHandlerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"extensionName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uninstallPhpExtension"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"phpHandlerId"},value:{kind:"Variable",name:{kind:"Name",value:"phpHandlerId"}}},{kind:"ObjectField",name:{kind:"Name",value:"extensionName"},value:{kind:"Variable",name:{kind:"Name",value:"extensionName"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"progressTitle"}},{kind:"Field",name:{kind:"Name",value:"progressValue"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"output"}},{kind:"Field",name:{kind:"Name",value:"steps"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"progress"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errors"}},{kind:"Field",name:{kind:"Name",value:"output"}}]}}]}}]}}],loc:{start:0,end:407}};n.loc.source={body:"mutation UninstallPhpExtension($phpHandlerId: ID!, $extensionName: String!) {\n    uninstallPhpExtension(input: { phpHandlerId: $phpHandlerId, extensionName: $extensionName }) {\n        id\n        status\n        progressTitle\n        progressValue\n        errors\n        output\n        steps {\n            title\n            progress\n            status\n            errors\n            output\n        }\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 t=e.type;"NamedType"===t.kind&&n.add(t.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 t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}),e.exports=n,e.exports.UninstallPhpExtension=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=t[n]||new Set,o=new Set,l=new Set;for(s.forEach(function(e){l.add(e)});l.size>0;){var r=l;l=new Set,r.forEach(function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(n){var t=a(e,n);t&&i.definitions.push(t)}),i}(n,"UninstallPhpExtension")}}]);
2//# sourceMappingURL=extensions.js.map?af28347bfb9e6795b14e

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.