PageSourceSearch

https://cancerfoundationofgeorgia.org/cp/javascript/views/license.js?3f0c7849d591f10180c4

js cancerfoundationofgeorgia.org collected 2026-10-05 22:36:33 UTC 15,204 bytes, 33 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/license"],{1902:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(242),a=t(244),s=t.n(a),r=t(243),o=t(90),l=t(744);const c=o.Locale.getTranslate("smb.components.license.properties"),d=({properties:e,...n})=>{const[t,a]=(0,i.useState)([]),[s,o]=(0,i.useState)(!1),d=(0,i.useCallback)((({keyCode:e})=>{const n=[...t,e].slice(-5);a(n),"73;68;68;81;68"===n.join(";")&&o(!0)}),[t,a,o]);return(0,l.useEventListener)("keyup",d,document.body),e?(0,i.jsx)(r.Section,{...n,children:e.map((({name:e,description:n,value:t})=>(0,i.jsx)(r.SectionItem,{title:n,children:s?(0,i.jsx)(r.Status,{intent:"danger",children:(0,i.jsx)(c,{content:"unlimited"})}):t},e)))}):null};d.propTypes={properties:s().arrayOf(s().shape({name:s().string.isRequired,description:s().string.isRequired,value:s().string.isRequired}))},d.defaultProps={properties:void 0};const u=d},1901:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(730),a=t(243),s=t(90),r=t(891),o=t.n(r),l=t(242);const c=s.Locale.getTranslate("components.common.master-key-processing-state"),d=()=>{const{data:{masterKeyProcessingState:e,config:{product:{supportUrl:n}}}}=(0,i.useQuery)(o());if(!e)return null;if("mkproc/wait"===e)return(0,l.jsx)(a.StatusMessage,{intent:"warning",children:(0,l.jsx)(c,{content:"wait"})});const t=(0,l.jsx)(a.Link,{href:n,target:"_blank",children:n});return"mkproc/checknetwork"===e?(0,l.jsx)(a.StatusMessage,{intent:"danger",children:(0,l.jsx)(c,{content:"networkError",params:{link:t}})}):(0,l.jsx)(a.StatusMessage,{intent:"danger",children:(0,l.jsx)(c,{content:"unknownError",params:{link:t}})})}},1903:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>v,usePrimaryKeyUpdateDialog:()=>y});var i=t(242),a=t(244),s=t.n(a),r=t(453),o=t(759),l=t(243),c=t(90),d=t(1902);const u=c.Locale.getTranslate("components.dialogs.primary-key-update"),p=c.Locale.getTranslate("components.buttons"),m=r.gql`
2    mutation UpdatePrimaryKey {
3        updatePrimaryKey {
4            description
5            newKey {
6                properties {
7                    name
8                    description
9                    value
10                }
11            }
12            additionalKeysErrors {
13                name
14                description
15            }
16            additionalKeys {
17                keyNumber
18                properties {
19                    name
20                    description
21                    value
22                }
23            }
24        }
25    }
26`,f=({isOpen:e,onClose:n})=>{const[a,{called:s,loading:r,data:{updatePrimaryKey:c}={},error:f}]=(0,o.useMutation)(m,{errorPolicy:"all",refetchQueries:[{query:t(890)},{query:t(894)}],awaitRefetchQueries:!0});(0,i.useLayoutEffect)((()=>{e&&a()}),[e,a]);const y=(0,i.useCallback)((()=>{c?.newKey?window.location.assign("/cp/license/primary/"):n()}),[n,c]);return(0,i.jsx)(l.Dialog,{title:(0,i.jsx)(u,{content:"title"}),isOpen:e,onClose:y,canClose:s&&!r,cancelButton:!1,buttons:!s||r?null:[(0,i.jsx)(l.Button,{intent:"primary",onClick:y,children:(0,i.jsx)(p,{content:"ok"})},"ok")],children:!s||r?(0,i.jsx)(l.ContentLoader,{loader:{type:"icons",icons:["key","key"]}}):f?(0,i.jsx)(l.StatusMessage,{intent:"danger",children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:f.message}})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Section,{"data-id":"resultDescription",title:(0,i.jsx)(u,{content:"resultDescription"}),children:(0,i.jsx)(l.Plaintext,{"data-id":"status",children:c.description})}),c.newKey?(0,i.jsx)(d.default,{title:(0,i.jsx)(u,{content:"newKey"}),properties:c.newKey.properties}):null,c.additionalKeysErrors.map((({name:e,description:n})=>(0,i.jsx)(l.Section,{title:e,children:(0,i.jsx)(l.Plaintext,{children:n})},e))),c.additionalKeys.map((({properties:e},n)=>(0,i.jsx)(d.default,{title:(0,i.jsx)(u,{content:"newAdditionalKey"}),properties:e},n)))]})})};f.propTypes={isOpen:s().bool.isRequired,onClose:s().func.isRequired};const y=()=>{const[e,n]=(0,i.useState)(!1),t=(0,i.useCallback)((()=>{n(!0)}),[]),a=(0,i.useCallback)((()=>{n(!1)}),[]);return[(0,i.useMemo)((()=>(0,i.jsx)(f,{isOpen:e,onClose:a})),[e,a]),t]},v=f},1909:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>p});var i=t(242),a=t(244),s=t.n(a),r=t(243),o=t(90),l=t(920),c=t(1902);const d=o.Locale.getTranslate("components.forms.license-key-revert"),u=({values:e,revertKey:n,...t})=>{const[a,s]=(0,i.useState)(e);return(0,i.jsxs)(l.default,{values:a,onFieldChange:(e,n)=>{s((t=>(0,r.setIn)(t,e,n)))},submitButton:{id:"btn-send",children:(0,i.jsx)(d,{content:"submitButton"})},applyButton:!1,...t,children:[(0,i.jsx)("p",{children:(0,i.jsx)(d,{content:"description"})}),(0,i.jsx)(c.default,{properties:n.properties})]})};u.propTypes={revertKey:s().object.isRequired,values:s().object},u.defaultProps={values:{}};const p=u}
26,1906:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(242),a=t(244),s=t.n(a),r=t(243),o=t(90),l=t(920);const c=o.Locale.getTranslate("components.forms.license-key-upload"),d=({fileUploadAllowed:e,...n})=>{const[t,a]=(0,i.useState)({type:"CODE",code:"",file:void 0});return(0,i.jsxs)(l.default,{values:t,onFieldChange:(e,n)=>{a((t=>(0,r.setIn)(t,e,n)))},submitButton:{id:"btn-send",children:(0,i.jsx)(c,{content:"submitButton"})},applyButton:!1,...n,children:[(0,i.jsx)("p",{children:e?(0,i.jsx)(c,{content:"descriptionWithFileUpload"}):(0,i.jsx)(c,{content:"description"})}),e?(0,i.jsx)(r.FormFieldRadioButtons,{name:"type",label:(0,i.jsx)(c,{content:"type"}),options:[{value:"CODE",label:(0,i.jsx)(c,{content:"code"}),indentFields:[(0,i.jsx)(r.FormFieldText,{name:"code",label:null,description:(0,i.jsx)(c,{content:"codeDescription"}),size:"lg"},"code")]},{value:"FILE",label:(0,i.jsx)(c,{content:"file"}),indentFields:[(0,i.jsx)(r.FormField,{name:"file",label:null,description:(0,i.jsx)(c,{content:"fileDescription"}),children:({getId:e,getName:n,setValue:t,isDisabled:a})=>(0,i.jsx)(r.InputFile,{id:e(),name:n(),disabled:a(),onChange:e=>t(e)})},"file")]}]}):(0,i.jsx)(r.FormFieldText,{name:"code",label:(0,i.jsx)(c,{content:"code"}),description:(0,i.jsx)(c,{content:"codeDescription"}),size:"lg"})]})};d.propTypes={fileUploadAllowed:s().bool},d.defaultProps={fileUploadAllowed:!1};const u=d},1900:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>g});var i=t(724),a=t(730),s=t(243),r=t(90),o=t(289),l=t(772),c=t(736),d=t(1901),u=t(1902),p=t(1903),m=t(1904),f=t(890),y=t.n(f),v=t(242);const h=r.Locale.getTranslate("components.pages.primary-key-info"),g=(0,c.withPageLayout)((0,m.withLicenseTabs)((()=>{const{data:{primaryKey:e,mode:{isLicenseDefault:n,isDemo:t}}}=(0,a.useQuery)(y()),[r,o]=(0,p.usePrimaryKeyUpdateDialog)();return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(d.default,{}),e.potentialProblems.map((e=>(0,v.jsx)(s.StatusMessage,{intent:"warning",children:e},e))),(0,v.jsxs)(s.Toolbar,{children:[(0,v.jsx)(s.Button,{"data-id":"update",onClick:o,tooltip:(0,v.jsx)(h,{content:"updateDescription"}),disabled:t||n,children:(0,v.jsx)(h,{content:"update"})}),(0,v.jsx)(s.Button,{"data-id":"upload",component:l.default,to:"/cp/license/primary/upload/",tooltip:(0,v.jsx)(h,{content:"uploadDescription"}),disabled:t,children:(0,v.jsx)(h,{content:"upload"})}),(0,v.jsx)(s.Button,{"data-id":"revert",component:l.default,to:"/cp/license/primary/revert/",tooltip:(0,v.jsx)(h,{content:"revertDescription"}),disabled:t||!e.revertKey,children:(0,v.jsx)(h,{content:"revert"})})]}),n?null:(0,v.jsx)(u.default,{properties:e.properties}),r,(0,v.jsx)(i.Outlet,{})]})})),(e=>{const{data:{mode:{isLicenseLocked:n}}}=(0,a.useQuery)(y()),{showFrames:t,pageHeader:i,pageSidebar:s}=(0,o.default)();return{...e,width:n?"md":void 0,showFrames:t,pageHeader:{...i,helpMenu:{...i.helpMenu,helpContext:"key_info"}},pageSidebar:n?null:s,pageContentHeader:{hidePathbar:n,hideHeading:n,breadcrumbs:[n||s.isPowerUserPanel?null:{title:r.Locale.getSection("components.pages.home").lmsg("title"),href:"/admin/home/"},n?null:{title:r.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools/"},{title:r.Locale.getSection("components.pages.license").lmsg("title"),href:"/cp/license/"},{title:r.Locale.getSection("components.pages.primary-key-info").lmsg("title"),href:"/cp/license/primary/"}].filter(Boolean),tabs:[],tabsHasRootPage:!0}}}))},1908:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>v});var i=t(724),a=t(730),s=t(759),r=t(243),o=t(90),l=t(676),c=t(1909),d=t(893),u=t.n(d),p=t(1910),m=t.n(p),f=t(242);const y=o.Locale.getTranslate("components.pages.primary-key-revert"),v=()=>{const e=(0,i.useNavigate)(),n=(0,i.useMatch)("/cp/license/primary/revert/"),{data:o}=(0,a.useQuery)(u(),{skip:!n}),[d]=(0,s.useMutation)(m(),{refetchQueries:[{query:t(890)}],awaitRefetchQueries:!0});return(0,f.jsx)(r.Drawer,{"data-type":"primary-key-revert",isOpen:Boolean(n&&o),onClose:()=>{e("/cp/license/primary/")},title:(0,f.jsx)(y,{content:"title"}),form:o?(0,f.jsx)(c.default,{revertKey:o.primaryKey.revertKey,mutation:d,onSuccess:()=>{(0,l.addToast)({intent:"success",message:(0,f.jsx)(y,{content:"success"})}),window.location.assign("/cp/license/primary/")}}):null})}},1905:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>x});var i=t(724),a=t(730),s=t(759),r=t(243),o=t(90),l=t(676),c=t(1906),d=t(892),u=t.n(d),p=t(890),m=t.
26n(p),f=t(894),y=t.n(f),v=t(1907),h=t.n(v),g=t(242);const k=o.Locale.getTranslate("components.pages.primary-key-upload"),x=()=>{const e=(0,i.useNavigate)(),n=(0,i.useMatch)("/cp/license/primary/upload/"),{data:t}=(0,a.useQuery)(u(),{skip:!n}),[o]=(0,s.useMutation)(h(),{refetchQueries:[{query:m()},{query:y()}],awaitRefetchQueries:!0});return(0,g.jsx)(r.Drawer,{"data-type":"primary-key-upload",isOpen:Boolean(n&&t),onClose:()=>{e("/cp/license/primary/")},title:(0,g.jsx)(k,{content:"title"}),form:t?(0,g.jsx)(c.default,{fileUploadAllowed:t?.config?.license?.fileUpload,mutation:o,onSuccess:({uploadPrimaryKey:{isFirstLicense:e,forcedPowerUserPanel:n}})=>{(0,l.addToast)({intent:"success",message:(0,g.jsx)(k,{content:"success"})}),e?n||t?.mode?.isPowerUserPanel?window.location.assign("/smb/web/view/"):window.location.assign("/admin/home/"):window.location.assign("/cp/license/primary/")}}):null})}},1904:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m,withLicenseTabs:()=>p});var i=t(242),a=t(724),s=t(725),r=t(730),o=t(453),l=t(243),c=t(90),d=t(772);const u=()=>{const{pathname:e}=(0,a.useLocation)(),{data:{mode:{isLicenseLocked:n}}}=(0,r.useQuery)(o.gql`
27        {
28            mode {
29                isLicenseLocked
30            }
31        }
32    `),t=(0,i.useMemo)((()=>[{"data-id":"primaryTab",title:c.Locale.getSection("components.pages.primary-key-info").lmsg("title"),url:"/cp/license/primary/"},{"data-id":"additionalTab",title:c.Locale.getSection("components.pages.additional-keys").lmsg("title"),url:"/cp/license/additional/"}]),[]),u=(0,i.useMemo)((()=>t.findIndex((({url:n})=>(0,s.matchPath)(n,e)))+1),[t,e]);return n?null:(0,i.jsx)(l.Tabs,{active:u,children:t.map((({url:e,...n})=>(0,i.jsx)(l.Tab,{component:d.default,to:e,...n},e)))})},p=e=>{const n=n=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u,{}),(0,i.jsx)(e,{...n})]});return n.displayName=`withLicenseTabs(${e.displayName||e.name||"Component"})`,n.WrappedComponent=e,n},m=u},1910:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RevertPrimaryKey"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"revertPrimaryKey"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newKey"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pleskKeyId"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:116}};n.loc.source={body:"mutation RevertPrimaryKey {\r\n    revertPrimaryKey {\r\n        newKey {\r\n            pleskKeyId\r\n        }\r\n    }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.RevertPrimaryKey=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,r=new Set,o=new Set;for(s.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"RevertPrimaryKey")},1907:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UploadPrimaryKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UploadPrimaryKeyInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uploadPrimaryKey"},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:"isFirstLicense"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"forcedPowerUserPanel"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:164}};
32n.loc.source={body:"mutation UploadPrimaryKey($input: UploadPrimaryKeyInput!) {\r\n    uploadPrimaryKey(input: $input) {\r\n        isFirstLicense\r\n        forcedPowerUserPanel\r\n    }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.UploadPrimaryKey=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,r=new Set,o=new Set;for(s.forEach((function(e){o.add(e)}));o.size>0;){var l=o;o=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){o.add(e)})))}))}return r.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"UploadPrimaryKey")}}]);
33//# sourceMappingURL=license.js.map?3f0c7849d591f10180c4

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.