(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/license/additional"],{1642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SORT_ASC:()=>c,SORT_DESC:()=>u,default:()=>f});var i=n(236),a=n(238),o=n.n(a),s=n(237),l=n(87);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,locale:m,emptyView:f,emptyFilteredView:y,toolbar:v,selection:k,onSelectionChange:h,searchBarInputProps:g,rowKey:b,...x})=>{const[j,S]=(0,i.useState)(1),[w,N]=(0,i.useState)(o??t.find((({sortable:e})=>e))?.key),[T,D]=(0,i.useState)(l),[K,A]=(0,i.useState)(a.includes(n)?n:a[0]),[C,L]=(0,i.useState)(""),F=(0,i.useMemo)((()=>C?y??(0,i.jsx)(s.ListEmptyView,{reason:"filtered",title:(0,i.jsx)(r,{content:"emptyViewFilteredTitle"}),description:(0,i.jsx)(r,{content:"emptyViewFilteredDescription"})}):f??(0,i.jsx)(s.ListEmptyView,{title:(0,i.jsx)(r,{content:"emptyViewTitle"})})),[C,f,y]),P=(0,i.useMemo)((()=>u?e.filter((e=>(Array.isArray(u)?u:[u]).some((t=>e[t]&&String(e[t]).toLowerCase().includes(C.toLowerCase()))))):e),[e,C,u]),E=(0,i.useMemo)((()=>{if(!w)return P;const e=t.find((({key:e})=>e===w))?.sortDataField??w,n=t.find((({key:e})=>e===w))?.sort??((t,n)=>t[e]<n[e]?-1:t[e]>n[e]?1:0);return[...P].sort(((e,t)=>c===T?n(e,t):n(t,e)))}),[P,w,T,t]),R=(0,i.useMemo)((()=>{if(K===p)return E;const e=K*(j-1),t=e+K;return E.slice(e,t)}),[j,E,K]),O=(0,i.useCallback)((e=>{L(e),e!==C&&S(1)}),[C]),V=(0,i.useCallback)((e=>{A(e);(e===p?1:Math.ceil(P.length/e))<j&&S(1)}),[P.length,j]);return(0,i.useEffect)((()=>{if("function"==typeof h&&k.length){const e=P.map((e=>{return t=e,"function"==typeof(n=b)?n(t):t[n];var t,n})).filter((e=>k.includes(e)));h(e)}}),[P]),(0,i.jsx)(s.List,{pagination:(0,i.jsx)(s.Pagination,{current:j,total:K===p?1:Math.ceil(P.length/K),onSelect:e=>S(e),itemsPerPage:K,itemsPerPageOptions:a,onItemsPerPageChange:V}),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:d.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",...g??{}},onTyping:O})})]})]}),totalRows:P.length,sortColumn:w,sortDirection:T,onSortChange:({sortColumn:e,sortDirection:t})=>{N(e),D(t)},columns:t,data:R,filtered:!!C,locale:{totalRows:({totalRows:e})=>d.formatMessage("recordsTotal",{total:e}),...m},emptyView:F,onSelectionChange:h,selection:k,rowKey:b,...x})};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)]),locale:o().object,emptyView:o().node,emptyFilteredView:o().node,toolbar:o().node,onSelectionChange:o().func,selection:o().array,rowKey:o().oneOfType([o().string,o().func]),searchBarInputProps:o().object},m.defaultProps={itemsPerPage:25,itemsPerPageOptions:[10,25,100,p],sortColumn:void 0,sortDirection:c,searchField:void 0,locale:{},emptyView:void 0,emptyFilteredView:void 0,toolbar:void 0,onSelectionChange:void 0,selection:[],searchBarInputProps:void 0,rowKey:"key"};const f=m},1798:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(236),a=n(238),o=n.n(a),s=n(237),l=n(87),r=n(671);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},1814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v,useAdditionalKeyUpdateDialog:()=>y});var i=n(236),a=n(238),o=n.n(a),s=n(443),l=n(709),r=n(237),d=n(87),c=n(1798);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(807),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},1805:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(236),a=n(238),o=n.n(a),s=n(237),l=n(87),r=n(819),d=n(1798);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},1802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(236),a=n(238),o=n.n(a),s=n(237),l=n(87),r=n(819);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},1808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i=n(236),a=n(238),o=n(709),s=n(237),l=n(87),r=n(722),d=n(684),c=n(1642),u=n(805),p=n.n(u),m=n(1809),f=n.n(m),y=n(1810),v=n.n(y);const k=l.Locale.getTranslate("components.lists.additional-keys"),h=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)(k,{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)(k,{content:"keyName"}),width:"30%",sortable:!0},{key:"keyApp",title:(0,i.jsx)(k,{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)(k,{content:"downloadDescription"}),children:(0,i.jsx)(k,{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)(k,{content:"uploadDescription"}),children:(0,i.jsx)(k,{content:"upload"})});return(0,i.jsx)(c.default,{toolbar:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.ToolbarGroup,{title:h.lmsg("addGroup"),children:w}),(0,i.jsx)(s.ToolbarGroup,{title:h.lmsg("actionsGroup"),children:(0,i.jsx)(s.ListOperation,{noSelectionText:(0,i.jsx)(k,{content:"installNoSelection"}),actionButtonText:(0,i.jsx)(k,{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)(k,{content:"installSuccess"})})}catch(e){(0,d.addToast)({intent:"danger",message:e.message})}finally{a([]),u([])}},disabled:t,tooltip:(0,i.jsx)(k,{content:"installDescription"}),children:(0,i.jsx)(k,{content:"install"})})})}),(0,i.jsx)(s.ToolbarGroup,{title:h.lmsg("removeGroup"),children:(0,i.jsx)(s.ListOperation,{critical:!0,noSelectionText:(0,i.jsx)(k,{content:"removeNoSelection"}),actionButtonText:(0,i.jsx)(g,{content:"yesRemove"}),cancelButtonText:(0,i.jsx)(g,{content:"cancel"}),confirmationText:h.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)(k,{content:"removeSuccess"})})}catch(e){(0,d.addToast)({intent:"danger",message:e.message})}finally{a([]),u([])}},disabled:t,tooltip:(0,i.jsx)(k,{content:"removeDescription"}),children:(0,i.jsx)(k,{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)(k,{content:"emptyViewTitle"}),actions:w})})};b.propTypes={data:a.PropTypes.array.isRequired,isDemo:a.PropTypes.bool},b.defaultProps={isDemo:!1};const x=b},1813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var i=n(236),a=n(238),o=n.n(a),s=n(679),l=n(686),r=n(709),d=n(237),c=n(87),u=n(282),p=n(684),m=n(722),f=n(692),y=n(1798),v=n(1814),k=n(807),h=n.n(k),g=n(1809),b=n.n(g);const x=c.Locale.getTranslate("components.pages.additional-key-info"),j=({params:e})=>{const{data:{additionalKey:t,mode:{isDemo:n}}}=(0,l.useQuery)(h(),{variables:{id:e.id}}),[a]=(0,r.useMutation)(b(),{refetchQueries:[{query:h(),variables:{id:e.id}}],awaitRefetchQueries:!0}),[o,c]=(0,v.useAdditionalKeyUpdateDialog)(t.keyNumber),u=(0,i.useCallback)((async()=>{try{await a({variables:{input:{ids:[t.keyNumber]}}}),(0,p.addToast)({intent:"success",message:(0,i.jsx)(x,{content:"installSuccess"})})}catch(e){(0,p.addToast)({intent:"danger",message:e.message})}}),[a,t.keyNumber]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(d.Toolbar,{children:[(0,i.jsx)(d.Button,{"data-id":"update",onClick:c,tooltip:(0,i.jsx)(x,{content:"updateDescription"}),disabled:n,children:(0,i.jsx)(x,{content:"update"})}),(0,i.jsx)(d.Button,{"data-id":"download",component:"a",href:`/cp/license/additional/${encodeURIComponent(t.keyNumber)}/download`,tooltip:(0,i.jsx)(x,{content:"downloadDescription"}),disabled:n,children:(0,i.jsx)(x,{content:"download"})}),(0,i.jsx)(d.Button,{"data-id":"install",onClick:u,tooltip:(0,i.jsx)(x,{content:"installDescription"}),disabled:n,children:(0,i.jsx)(x,{content:"install"})}),(0,i.jsx)(d.Button,{"data-id":"revert",component:m.default,to:`/cp/license/additional/${encodeURIComponent(t.keyNumber)}/revert/`,tooltip:t.revertKey?(0,i.jsx)(x,{content:"revertDescription"}):(0,i.jsx)(x,{content:"revertNotAvailableDescription"}),disabled:n||!t.revertKey,children:(0,i.jsx)(x,{content:"revert"})})]}),(0,i.jsx)(y.default,{properties:t.properties}),o,(0,i.jsx)(s.Outlet,{})]})};j.propTypes={params:o().shape({id:o().string.isRequired}).isRequired};const S=(0,f.withPageLayout)(j,(({params:e})=>{const{showFrames:t,pageHeader:n,pageSidebar:i}=(0,u.default)(),{data:{additionalKey:a}}=(0,l.useQuery)(h(),{variables:{id:e.id}}),o=[i.isPowerUserPanel?null:{title:c.Locale.getSection("admin.controllers.home.admin").lmsg("title"),href:"/admin/home/"},{title:c.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools/"},{title:c.Locale.getSection("components.pages.license").lmsg("title"),href:"/cp/license/"},{title:c.Locale.getSection("components.pages.additional-keys").lmsg("title"),href:"/cp/license/additional/"},{title:c.Locale.getSection("components.pages.additional-key-info").lmsg("title"),href:`/cp/license/additional/${a.keyNumber}/`}].filter(Boolean),s=o[o.length-1].title;return{showFrames:t,pageHeader:{...n,helpMenu:{...n.helpMenu,helpContext:"additional_key_properties"}},pageSidebar:i,pageContentHeader:{pageTitle:s,breadcrumbs:o},pageTitle:s}}))},1815:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var i=n(679),a=n(686),o=n(709),s=n(237),l=n(87),r=n(684),d=n(1805),c=n(808),u=n.n(c),p=n(1816),m=n.n(p),f=n(236);const y=l.Locale.getTranslate("components.pages.additional-key-revert"),v=()=>{const e=(0,i.useNavigate)(),t=(0,i.useMatch)("/cp/license/additional/:id/revert/"),{data:n}=(0,a.useQuery)(u(),{skip:!t,variables:{id:t?.params.id}}),[l]=(0,o.useMutation)(m());return(0,f.jsx)(s.Drawer,{"data-type":"additional-key-revert",isOpen:Boolean(t&&n),onClose:()=>{e(`/cp/license/additional/${t?.params.id}/`)},title:(0,f.jsx)(y,{content:"title"}),form:n?(0,f.jsx)(d.default,{revertKey:n.additionalKey.revertKey,values:{keyNumber:t?.params.id},mutation:l,onSuccess:({revertAdditionalKey:{newKey:t}})=>{(0,r.addToast)({intent:"success",message:(0,f.jsx)(y,{content:"success"})}),e(`/cp/license/additional/${t.keyNumber}/`)}}):null})}},1811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var i=n(679),a=n(686),o=n(709),s=n(237),l=n(87),r=n(684),d=n(1802),c=n(806),u=n.n(c),p=n(1812),m=n.n(p),f=n(236);const y=l.Locale.getTranslate("components.pages.additional-key-upload"),v=()=>{const e=(0,i.useNavigate)(),t=(0,i.useMatch)("/cp/license/additional/upload/"),{data:l}=(0,a.useQuery)(u(),{skip:!t}),[c]=(0,o.useMutation)(m(),{refetchQueries:[{query:n(805)}],awaitRefetchQueries:!0});return(0,f.jsx)(s.Drawer,{"data-type":"additional-key-upload",isOpen:Boolean(t&&l),onClose:()=>{e("/cp/license/additional/")},title:(0,f.jsx)(y,{content:"title"}),form:l?(0,f.jsx)(d.default,{fileUploadAllowed:l?.config?.license?.fileUpload,mutation:c,onSuccess:()=>{(0,r.addToast)({intent:"success",message:(0,f.jsx)(y,{content:"success"})}),e("/cp/license/additional/")}}):null})}},1807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(679),a=n(686),o=n(87),s=n(282),l=n(692),r=n(1800),d=n(1808),c=n(805),u=n.n(c),p=n(236);const m=(0,l.withPageLayout)((0,r.withLicenseTabs)((()=>{const{data:{additionalKeys:e,mode:{isDemo:t}}}=(0,a.useQuery)(u());return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d.default,{data:e,isDemo:t}),(0,p.jsx)(i.Outlet,{})]})})),(()=>{const{showFrames:e,pageHeader:t,pageSidebar:n}=(0,s.default)();return{showFrames:e,pageHeader:{...t,helpMenu:{...t.helpMenu,helpContext:"additional_keys"}},pageSidebar:n,pageContentHeader:{breadcrumbs:[n.isPowerUserPanel?null:{title:o.Locale.getSection("components.pages.home").lmsg("title"),href:"/admin/home/"},{title:o.Locale.getSection("admin.controllers.server.tools").lmsg("title"),href:"/admin/server/tools/"},{title:o.Locale.getSection("components.pages.license").lmsg("title"),href:"/cp/license/"},{title:o.Locale.getSection("components.pages.additional-keys").lmsg("title"),href:"/cp/license/additional/"}].filter(Boolean),tabs:[],tabsHasRootPage:!0}}}))},1800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m,withLicenseTabs:()=>p});var i=n(236),a=n(679),o=n(680),s=n(686),l=n(443),r=n(237),d=n(87),c=n(722);const u=()=>{const{pathname:e}=(0,a.useLocation)(),{data:{mode:{isLicenseLocked:t}}}=(0,s.useQuery)(l.gql`
        {
            mode {
                isLicenseLocked
            }
        }
    `),n=(0,i.useMemo)((()=>[{"data-id":"primaryTab",title:d.Locale.getSection("components.pages.primary-key-info").lmsg("title"),url:"/cp/license/primary/"},{"data-id":"additionalTab",title:d.Locale.getSection("components.pages.additional-keys").lmsg("title"),url:"/cp/license/additional/"}]),[]),u=(0,i.useMemo)((()=>n.findIndex((({url:t})=>(0,o.matchPath)(t,e)))+1),[n,e]);return t?null:(0,i.jsx)(r.Tabs,{active:u,children:n.map((({url:e,...t})=>(0,i.jsx)(r.Tab,{component:c.default,to:e,...t},e)))})},p=e=>{const t=t=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u,{}),(0,i.jsx)(e,{...t})]});return t.displayName=`withLicenseTabs(${e.displayName||e.name||"Component"})`,t.WrappedComponent=e,t},m=u},1810: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")},1809: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")},1816: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")},1812: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?3a97ea42cdc27f0e80a3