(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/license/additional"],{1659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SORT_ASC:()=>c,SORT_DESC:()=>u,default:()=>f});var i=n(231),a=n(233),o=n.n(a),s=n(232),l=n(85);const r=l.Locale.getTranslate("components.list"),d=l.Locale.getSection("components.list"),c="ASC",u="DESC",p="all",m=({data:e,columns:t,itemsPerPage:n,itemsPerPageOptions:a,sortColumn:o,sortDirection:l,searchField:u,searchPlaceholder:m,locale:f,emptyView:y,toolbar:v,selection:h,onSelectionChange:k,rowKey:g,...b})=>{const[x,j]=(0,i.useState)(1),[S,w]=(0,i.useState)(o??t.find((({sortable:e})=>e))?.key),[N,T]=(0,i.useState)(l),[D,K]=(0,i.useState)(n??a[0]),[A,C]=(0,i.useState)(""),L=(0,i.useMemo)((()=>u?e.filter((e=>(Array.isArray(u)?u:[u]).some((t=>e[t]&&String(e[t]).toLowerCase().includes(A.toLowerCase()))))):e),[e,A,u]),P=(0,i.useMemo)((()=>{if(!S)return L;const e=t.find((({key:e})=>e===S))?.sort??((e,t)=>e[S]<t[S]?-1:e[S]>t[S]?1:0);return[...L].sort(((t,n)=>c===N?e(t,n):e(n,t)))}),[L,S,N,t]),E=(0,i.useMemo)((()=>{if(D===p)return P;const e=D*(x-1),t=e+D;return P.slice(e,t)}),[x,P,D]),F=(0,i.useCallback)((e=>{C(e),e!==A&&j(1)}),[A]),R=(0,i.useCallback)((e=>{K(e);(e===p?1:Math.ceil(L.length/e))<x&&j(1)}),[L.length,x]);return(0,i.useEffect)((()=>{if("function"==typeof k&&h.length){const e=L.map((e=>{return t=e,"function"==typeof(n=g)?n(t):t[n];var t,n})).filter((e=>h.includes(e)));k(e)}}),[L]),(0,i.jsx)(s.List,{pagination:(0,i.jsx)(s.Pagination,{current:x,total:D===p?1:Math.ceil(L.length/D),onSelect:e=>j(e),itemsPerPage:D,itemsPerPageOptions:a,onItemsPerPageChange:R}),toolbar:(v||u)&&(0,i.jsxs)(s.Toolbar,{children:[v,u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.ToolbarExpander,{}),(0,i.jsx)(s.ToolbarGroup,{title:"",children:(0,i.jsx)(s.SearchBar,{inputProps:{placeholder:m??d.lmsg("searchPlaceholder"),"data-testid":"list-searchbar"},onTyping:F})})]})]}),totalRows:L.length,sortColumn:S,sortDirection:N,onSortChange:({sortColumn:e,sortDirection:t})=>{w(e),T(t)},columns:t,data:E,filtered:!!A,locale:{totalRows:({totalRows:e})=>d.formatMessage("recordsTotal",{total:e}),...f},emptyView:A?(0,i.jsx)(s.ListEmptyView,{title:(0,i.jsx)(r,{content:"emptyViewFilteredTitle"}),description:(0,i.jsx)(r,{content:"emptyViewFilteredDescription"})}):y??(0,i.jsx)(s.ListEmptyView,{title:(0,i.jsx)(r,{content:"emptyViewTitle"})}),onSelectionChange:k,selection:h,rowKey:g,...b})};m.propTypes={data:o().array.isRequired,columns:o().array.isRequired,itemsPerPage:o().number,itemsPerPageOptions:o().array,sortColumn:o().string,sortDirection:o().string,searchField:o().oneOfType([o().string,o().arrayOf(o().string.isRequired)]),searchPlaceholder:o().string,locale:o().object,emptyView:o().node,toolbar:o().node,onSelectionChange:o().func,selection:o().array,rowKey:o().oneOfType([o().string,o().func])},m.defaultProps={itemsPerPage:void 0,itemsPerPageOptions:[10,25,100,p],sortColumn:void 0,sortDirection:c,searchField:void 0,searchPlaceholder:void 0,locale:{},emptyView:void 0,toolbar:void 0,onSelectionChange:void 0,selection:[],rowKey:"key"};const f=m},1815:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(231),a=n(233),o=n.n(a),s=n(232),l=n(85),r=n(798);const d=l.Locale.getTranslate("smb.components.license.properties"),c=({properties:e,...t})=>{const[n,a]=(0,i.useState)([]),[o,l]=(0,i.useState)(!1),c=(0,i.useCallback)((({keyCode:e})=>{const t=[...n,e].slice(-5);a(t),"73;68;68;81;68"===t.join(";")&&l(!0)}),[n,a,l]);return(0,r.useEventListener)("keyup",c,document.body),e?(0,i.jsx)(s.Section,{...t,children:e.map((({name:e,description:t,value:n})=>(0,i.jsx)(s.SectionItem,{title:t,children:o?(0,i.jsx)(s.Status,{intent:"danger",children:(0,i.jsx)(d,{content:"unlimited"})}):n},e)))}):null};c.propTypes={properties:o().arrayOf(o().shape({name:o().string.isRequired,description:o().string.isRequired,value:o().string.isRequired}))},c.defaultProps={properties:void 0};const u=c},1831:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v,useAdditionalKeyUpdateDialog:()=>y});var i=n(231),a=n(233),o=n.n(a),s=n(283),l=n(389),r=n(232),d=n(85),c=n(1815);const u=d.Locale.getTranslate("components.dialogs.additional-key-update"),p=d.Locale.getTranslate("components.buttons"),m=s.gql`
    mutation UpdateAdditionalKey($input: UpdateAdditionalKeyInput! ) {
        updateAdditionalKey(input: $input) {
            description
            newKey {
                keyNumber
                properties {
                    name
                    description
                    value
                }
            }
        }
    }
`,f=({keyNumber:e,isOpen:t,onClose:a})=>{const[o,{called:s,loading:d,data:{updateAdditionalKey:f}={},error:y}]=(0,l.useMutation)(m,{variables:{input:{keyNumber:e}},errorPolicy:"all",refetchQueries:[{query:n(739),variables:{id:e}}],awaitRefetchQueries:!0});return(0,i.useLayoutEffect)((()=>{t&&o()}),[t,o]),(0,i.jsx)(r.Dialog,{title:(0,i.jsx)(u,{content:"title"}),isOpen:t,onClose:a,canClose:s&&!d,cancelButton:!1,buttons:!s||d?null:[(0,i.jsx)(r.Button,{intent:"primary",onClick:a,children:(0,i.jsx)(p,{content:"ok"})},"ok")],children:!s||d?(0,i.jsx)(r.ContentLoader,{loader:{type:"icons",icons:["key","key"]}}):y?(0,i.jsx)(r.StatusMessage,{intent:"danger",children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:y.message}})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Section,{"data-id":"resultDescription",title:(0,i.jsx)(u,{content:"resultDescription"}),children:(0,i.jsx)(r.Plaintext,{children:f.description})}),f.newKey?(0,i.jsx)(c.default,{title:(0,i.jsx)(u,{content:"newKey"}),properties:f.newKey.properties}):null]})})};f.propTypes={keyNumber:o().string.isRequired,isOpen:o().bool.isRequired,onClose:o().func.isRequired};const y=e=>{const[t,n]=(0,i.useState)(!1),a=(0,i.useCallback)((()=>{n(!0)}),[]),o=(0,i.useCallback)((()=>{n(!1)}),[]);return[(0,i.useMemo)((()=>(0,i.jsx)(f,{keyNumber:e,isOpen:t,onClose:o})),[e,t,o]),a]},v=f},1822:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(231),a=n(233),o=n.n(a),s=n(232),l=n(85),r=n(880),d=n(1815);const c=l.Locale.getTranslate("components.forms.license-key-revert"),u=({values:e,revertKey:t,...n})=>{const[a,o]=(0,i.useState)(e);return(0,i.jsxs)(r.default,{values:a,onFieldChange:(e,t)=>{o((n=>(0,s.setIn)(n,e,t)))},submitButton:{id:"btn-send",children:(0,i.jsx)(c,{content:"submitButton"})},applyButton:!1,...n,children:[(0,i.jsx)("p",{children:(0,i.jsx)(c,{content:"description"})}),(0,i.jsx)(d.default,{properties:t.properties})]})};u.propTypes={revertKey:o().object.isRequired,values:o().object},u.defaultProps={values:{}};const p=u},1819:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(231),a=n(233),o=n.n(a),s=n(232),l=n(85),r=n(880);const d=l.Locale.getTranslate("components.forms.license-key-upload"),c=({fileUploadAllowed:e,...t})=>{const[n,a]=(0,i.useState)({type:"CODE",code:"",file:void 0});return(0,i.jsxs)(r.default,{values:n,onFieldChange:(e,t)=>{a((n=>(0,s.setIn)(n,e,t)))},submitButton:{id:"btn-send",children:(0,i.jsx)(d,{content:"submitButton"})},applyButton:!1,...t,children:[(0,i.jsx)("p",{children:e?(0,i.jsx)(d,{content:"descriptionWithFileUpload"}):(0,i.jsx)(d,{content:"description"})}),e?(0,i.jsx)(s.FormFieldRadioButtons,{name:"type",label:(0,i.jsx)(d,{content:"type"}),options:[{value:"CODE",label:(0,i.jsx)(d,{content:"code"}),indentFields:[(0,i.jsx)(s.FormFieldText,{name:"code",label:null,description:(0,i.jsx)(d,{content:"codeDescription"}),size:"lg"},"code")]},{value:"FILE",label:(0,i.jsx)(d,{content:"file"}),indentFields:[(0,i.jsx)(s.FormField,{name:"file",label:null,description:(0,i.jsx)(d,{content:"fileDescription"}),children:({getId:e,getName:t,setValue:n,isDisabled:a})=>(0,i.jsx)(s.InputFile,{id:e(),name:t(),disabled:a(),onChange:e=>n(e)})},"file")]}]}):(0,i.jsx)(s.FormFieldText,{name:"code",label:(0,i.jsx)(d,{content:"code"}),description:(0,i.jsx)(d,{content:"codeDescription"}),size:"lg"})]})};c.propTypes={fileUploadAllowed:o().bool},c.defaultProps={fileUploadAllowed:!1};const u=c},1825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i=n(231),a=n(233),o=n(389),s=n(232),l=n(85),r=n(518),d=n(756),c=n(1659),u=n(737),p=n.n(u),m=n(1826),f=n.n(m),y=n(1827),v=n.n(y);const h=l.Locale.getTranslate("components.lists.additional-keys"),k=l.Locale.getSection("components.lists.additional-keys"),g=l.Locale.getTranslate("components.buttons"),b=({data:e,isDemo:t})=>{const[n,a]=(0,i.useState)([]),[l,u]=(0,i.useState)([]),[m]=(0,o.useMutation)(f(),{refetchQueries:[{query:p()}],awaitRefetchQueries:!0}),[y]=(0,o.useMutation)(v(),{refetchQueries:[{query:p()}],awaitRefetchQueries:!0}),b=(0,i.useMemo)((()=>e.filter((({keyNumber:e})=>n.includes(e)))),[e,n]),x=(0,i.useCallback)((e=>{a(e)}),[]),j=(0,i.useMemo)((()=>[{key:"keyNumber",title:(0,i.jsx)(h,{content:"keyNumber"}),type:"title",width:"30%",sortable:!0,render:({keyNumber:e})=>(0,i.jsx)(r.default,{to:`/cp/license/additional/${encodeURIComponent(e)}/`,children:e})},{key:"keyName",title:(0,i.jsx)(h,{content:"keyName"}),width:"30%",sortable:!0},{key:"keyApp",title:(0,i.jsx)(h,{content:"keyApp"}),width:"30%",sortable:!0},t?null:{key:"actions",type:"actions",render:({keyNumber:e})=>(0,i.jsx)(s.ListActions,{children:(0,i.jsx)(s.ListAction,{primary:!0,icon:"download",component:"a",href:`/cp/license/additional/${encodeURIComponent(e)}/download`,tooltip:(0,i.jsx)(h,{content:"downloadDescription"}),children:(0,i.jsx)(h,{content:"download"})})})}].filter(Boolean)),[t]),S=(0,i.useMemo)((()=>["keyNumber","keyName","keyApp"]),[]),w=(0,i.jsx)(s.Button,{"data-id":"upload",intent:"primary",component:r.default,to:"/cp/license/additional/upload/",disabled:t,tooltip:(0,i.jsx)(h,{content:"uploadDescription"}),children:(0,i.jsx)(h,{content:"upload"})});return(0,i.jsx)(c.default,{toolbar:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.ToolbarGroup,{title:k.lmsg("addGroup"),children:w}),(0,i.jsx)(s.ToolbarGroup,{title:k.lmsg("actionsGroup"),children:(0,i.jsx)(s.ListOperation,{noSelectionText:(0,i.jsx)(h,{content:"installNoSelection"}),actionButtonText:(0,i.jsx)(h,{content:"installAll"}),cancelButtonText:(0,i.jsx)(g,{content:"cancel"}),children:(0,i.jsx)(s.Button,{"data-id":"install",onClick:async()=>{const t=n.length?n:e.map((({keyNumber:e})=>e));u(t);try{await m({variables:{input:{ids:t}}}),(0,d.addToast)({intent:"success",message:(0,i.jsx)(h,{content:"installSuccess"})})}catch(e){(0,d.addToast)({intent:"danger",message:e.message})}finally{a([]),u([])}},disabled:t,tooltip:(0,i.jsx)(h,{content:"installDescription"}),children:(0,i.jsx)(h,{content:"install"})})})}),(0,i.jsx)(s.ToolbarGroup,{title:k.lmsg("removeGroup"),children:(0,i.jsx)(s.ListOperation,{critical:!0,noSelectionText:(0,i.jsx)(h,{content:"removeNoSelection"}),actionButtonText:(0,i.jsx)(g,{content:"yesRemove"}),cancelButtonText:(0,i.jsx)(g,{content:"cancel"}),confirmationText:k.formatMessage("removeConfirmation",{name:(0,i.jsxs)("b",{children:[b[0]?.keyNumber," / ",b[0]?.keyName]}),count:b.length}),children:(0,i.jsx)(s.Button,{"data-id":"remove",onClick:async()=>{u(n);try{await y({variables:{input:{ids:n}}}),(0,d.addToast)({intent:"success",message:(0,i.jsx)(h,{content:"removeSuccess"})})}catch(e){(0,d.addToast)({intent:"danger",message:e.message})}finally{a([]),u([])}},disabled:t,tooltip:(0,i.jsx)(h,{content:"removeDescription"}),children:(0,i.jsx)(h,{content:"remove"})})})})]}),columns:j,rowKey:"keyNumber",data:e,searchField:S,sortColumn:"keyNumber",selection:n,onSelectionChange:x,loadingRows:l,emptyView:(0,i.jsx)(s.ListEmptyView,{title:(0,i.jsx)(h,{content:"emptyViewTitle"}),actions:w})})};b.propTypes={data:a.PropTypes.array.isRequired,isDemo:a.PropTypes.bool},b.defaultProps={isDemo:!1};const x=b},1830:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var i=n(231),a=n(233),o=n.n(a),s=n(389),l=n(232),r=n(85),d=n(282),c=n(756),u=n(518),p=n(790),m=n(1815),f=n(1831),y=n(1832),v=n(739),h=n.n(v),k=n(1826),g=n.n(k);const b=r.Locale.getTranslate("components.pages.additional-key-info"),x=({params:e})=>{const{data:{additionalKey:t,mode:{isDemo:n}}}=(0,s.useQuery)(h(),{variables:{id:e.id}}),[a]=(0,s.useMutation)(g(),{refetchQueries:[{query:h(),variables:{id:e.id}}],awaitRefetchQueries:!0}),[o,r]=(0,f.useAdditionalKeyUpdateDialog)(t.keyNumber),d=(0,i.useCallback)((async()=>{try{await a({variables:{input:{ids:[t.keyNumber]}}}),(0,c.addToast)({intent:"success",message:(0,i.jsx)(b,{content:"installSuccess"})})}catch(e){(0,c.addToast)({intent:"danger",message:e.message})}}),[a,t.keyNumber]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.Toolbar,{children:[(0,i.jsx)(l.Button,{"data-id":"update",onClick:r,tooltip:(0,i.jsx)(b,{content:"updateDescription"}),disabled:n,children:(0,i.jsx)(b,{content:"update"})}),(0,i.jsx)(l.Button,{"data-id":"download",component:"a",href:`/cp/license/additional/${encodeURIComponent(t.keyNumber)}/download`,tooltip:(0,i.jsx)(b,{content:"downloadDescription"}),disabled:n,children:(0,i.jsx)(b,{content:"download"})}),(0,i.jsx)(l.Button,{"data-id":"install",onClick:d,tooltip:(0,i.jsx)(b,{content:"installDescription"}),disabled:n,children:(0,i.jsx)(b,{content:"install"})}),(0,i.jsx)(l.Button,{"data-id":"revert",component:u.default,to:`/cp/license/additional/${encodeURIComponent(t.keyNumber)}/revert/`,tooltip:t.revertKey?(0,i.jsx)(b,{content:"revertDescription"}):(0,i.jsx)(b,{content:"revertNotAvailableDescription"}),disabled:n||!t.revertKey,children:(0,i.jsx)(b,{content:"revert"})})]}),(0,i.jsx)(m.default,{properties:t.properties}),o,(0,i.jsx)(y.default,{})]})};x.propTypes={params:o().shape({id:o().string.isRequired}).isRequired};const j=(0,p.withPageLayout)(x,(({params:e})=>{const{logo:t,showFrames:n,pageHeader:i,pageSidebar:a}=(0,d.default)(),{data:{additionalKey:o}}=(0,s.useQuery)(h(),{variables:{id:e.id}}),l=[a.isPowerUserPanel?null:{title:r.Locale.getSection("admin.controllers.home.admin").lmsg("title"),href:"/admin/home/"},{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.additional-keys").lmsg("title"),href:"/cp/license/additional/"},{title:r.Locale.getSection("components.pages.additional-key-info").lmsg("title"),href:`/cp/license/additional/${o.keyNumber}/`}].filter(Boolean),c=l[l.length-1].title;return{logo:t,showFrames:n,pageHeader:{...i,helpMenu:{...i.helpMenu,helpContext:"additional_key_properties"}},pageSidebar:a,pageContentHeader:{pageTitle:c,breadcrumbs:l},pageTitle:c}}))},1832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(712),a=n(389),o=n(232),s=n(85),l=n(756),r=n(1822),d=n(740),c=n.n(d),u=n(1833),p=n.n(u),m=n(231);const f=s.Locale.getTranslate("components.pages.additional-key-revert"),y=()=>{const e=(0,i.useNavigate)(),t=(0,i.useMatch)("/cp/license/additional/:id/revert/"),{data:n}=(0,a.useQuery)(c(),{skip:!t,variables:{id:t?.params.id}}),[s]=(0,a.useMutation)(p());return(0,m.jsx)(o.Drawer,{"data-type":"additional-key-revert",isOpen:Boolean(t&&n),onClose:()=>{e(`/cp/license/additional/${t?.params.id}/`)},title:(0,m.jsx)(f,{content:"title"}),form:n?(0,m.jsx)(r.default,{revertKey:n.additionalKey.revertKey,values:{keyNumber:t?.params.id},mutation:s,onSuccess:({revertAdditionalKey:{newKey:t}})=>{(0,l.addToast)({intent:"success",message:(0,m.jsx)(f,{content:"success"})}),e(`/cp/license/additional/${t.keyNumber}/`)}}):null})}},1828:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(712),a=n(389),o=n(232),s=n(85),l=n(756),r=n(1819),d=n(738),c=n.n(d),u=n(1829),p=n.n(u),m=n(231);const f=s.Locale.getTranslate("components.pages.additional-key-upload"),y=()=>{const e=(0,i.useNavigate)(),t=(0,i.useMatch)("/cp/license/additional/upload/"),{data:s}=(0,a.useQuery)(c(),{skip:!t}),[d]=(0,a.useMutation)(p(),{refetchQueries:[{query:n(737)}],awaitRefetchQueries:!0});return(0,m.jsx)(o.Drawer,{"data-type":"additional-key-upload",isOpen:Boolean(t&&s),onClose:()=>{e("/cp/license/additional/")},title:(0,m.jsx)(f,{content:"title"}),form:s?(0,m.jsx)(r.default,{fileUploadAllowed:s?.config?.license?.fileUpload,mutation:d,onSuccess:()=>{(0,l.addToast)({intent:"success",message:(0,m.jsx)(f,{content:"success"})}),e("/cp/license/additional/")}}):null})}},1824:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(389),a=n(85),o=n(282),s=n(790),l=n(1817),r=n(1825),d=n(1828),c=n(737),u=n.n(c),p=n(231);const m=(0,s.withPageLayout)((0,l.withLicenseTabs)((()=>{const{data:{additionalKeys:e,mode:{isDemo:t}}}=(0,i.useQuery)(u());return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r.default,{data:e,isDemo:t}),(0,p.jsx)(d.default,{})]})})),(()=>{const{logo:e,showFrames:t,pageHeader:n,pageSidebar:i}=(0,o.default)(),s=[i.isPowerUserPanel?null:{title:a.Locale.getSection("admin.controllers.home.admin").lmsg("title"),href:"/admin/home/"},{title:a.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools/"},{title:a.Locale.getSection("components.pages.license").lmsg("title"),href:"/cp/license/"},{title:a.Locale.getSection("components.pages.additional-keys").lmsg("title"),href:"/cp/license/additional/"}].filter(Boolean);s.pop();const l=s[s.length-1].title;return{logo:e,showFrames:t,pageHeader:{...n,helpMenu:{...n.helpMenu,helpContext:"additional_keys"}},pageSidebar:i,pageContentHeader:{pageTitle:l,breadcrumbs:s},pageTitle:l}}))},1817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u,withLicenseTabs:()=>c});var i=n(231),a=n(233),o=n(712),s=n(232),l=n(85),r=n(518);const d=({pathname:e,mode:{isLicenseLocked:t}})=>{const n=(0,i.useMemo)((()=>[{"data-id":"primaryTab",title:l.Locale.getSection("components.pages.primary-key-info").lmsg("title"),url:"/cp/license/primary/"},{"data-id":"additionalTab",title:l.Locale.getSection("components.pages.additional-keys").lmsg("title"),url:"/cp/license/additional/"}]),[]),a=(0,i.useMemo)((()=>n.findIndex((({url:t})=>(0,o.matchPath)(t,e)))+1),[n,e]);return t?null:(0,i.jsx)(s.Tabs,{active:a,children:n.map((({url:e,...t})=>(0,i.jsx)(s.Tab,{component:r.default,to:e,...t},e)))})};d.propTypes={pathname:a.PropTypes.string.isRequired,mode:a.PropTypes.shape({isLicenseLocked:a.PropTypes.bool.isRequired}).isRequired};const c=e=>{const t=t=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d,{...t}),(0,i.jsx)(e,{...t})]});return t.displayName=`withLicenseTabs(${e.displayName||e.name||"Component"})`,t.WrappedComponent=e,t},u=d},1827:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteAdditionalKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteAdditionalKeyInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAdditionalKey"},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:"ids"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:132}};t.loc.source={body:"mutation DeleteAdditionalKey($input: DeleteAdditionalKeyInput!) {\r\n    deleteAdditionalKey(input: $input) {\r\n        ids\r\n    }\r\n}\r\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 a(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.DeleteAdditionalKey=function(e,t){var n={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=i[t]||new Set,s=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var r=l;l=new Set,r.forEach((function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach((function(e){l.add(e)})))}))}return s.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(t,"DeleteAdditionalKey")},1826:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"InstallAdditionalKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"InstallAdditionalKeyInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"installAdditionalKey"},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:"ids"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:135}};t.loc.source={body:"mutation InstallAdditionalKey($input: InstallAdditionalKeyInput!) {\r\n    installAdditionalKey(input: $input) {\r\n        ids\r\n    }\r\n}\r\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 a(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.InstallAdditionalKey=function(e,t){var n={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=i[t]||new Set,s=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var r=l;l=new Set,r.forEach((function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach((function(e){l.add(e)})))}))}return s.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(t,"InstallAdditionalKey")},1833:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RevertAdditionalKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RevertAdditionalKeyInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"revertAdditionalKey"},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:"newKey"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"keyNumber"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:171}};t.loc.source={body:"mutation RevertAdditionalKey($input: RevertAdditionalKeyInput!) {\r\n    revertAdditionalKey(input: $input) {\r\n        newKey {\r\n            keyNumber\r\n        }\r\n    }\r\n}\r\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 a(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.RevertAdditionalKey=function(e,t){var n={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=i[t]||new Set,s=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var r=l;l=new Set,r.forEach((function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach((function(e){l.add(e)})))}))}return s.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(t,"RevertAdditionalKey")},1829:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UploadAdditionalKey"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UploadAdditionalKeyInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uploadAdditionalKey"},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:"__typename"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:139}};t.loc.source={body:"mutation UploadAdditionalKey($input: UploadAdditionalKeyInput!) {\r\n    uploadAdditionalKey(input: $input) {\r\n        __typename\r\n    }\r\n}\r\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 a(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.UploadAdditionalKey=function(e,t){var n={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=i[t]||new Set,s=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var r=l;l=new Set,r.forEach((function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach((function(e){l.add(e)})))}))}return s.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(t,"UploadAdditionalKey")}}]);
//# sourceMappingURL=additional.js.map?eec094b6c14fbe4f78ab