D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
cp
/
public
/
javascript
/
components
/
pages
/
Filename :
ChangeSubscriptionsOwnerPage.js
back
Copy
(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["components/pages/ChangeSubscriptionsOwnerPage"],{1411:(e,n,t)=>{"use strict";t.r(n),t.d(n,{SORT_ASC:()=>c,SORT_DESC:()=>u,default:()=>k});var i=t(285),s=t(596),a=t.n(s),r=t(286),o=t(89);const d=o.Locale.getTranslate("components.list"),l=o.Locale.getSection("components.list"),c="ASC",u="DESC",m="all",p={set(e,n){localStorage.setItem(e,JSON.stringify(n))},get(e){const n=localStorage.getItem(e);return JSON.parse(n)}},f=e=>`list-sort_${e}`,v=e=>`list-page_${e}`,g=({id:e,data:n,columns:t,itemsPerPage:s=25,itemsPerPageOptions:a=[10,25,100,m],sortColumn:o,sortDirection:u=c,searchField:g,locale:k={},emptyView:S,emptyFilteredView:h,toolbar:b,selection:y=[],onSelectionChange:P,searchBarInputProps:w,rowKey:I="key",useStorage:E=!0,...x})=>{const{sortColumn:A,sortDirection:j,setSortState:N}=((e,{sortColumn:n,sortDirection:t})=>{const[{sortColumn:s,sortDirection:a},r]=(0,i.useState)({sortColumn:p.get(f(e))?.sortColumn??n,sortDirection:p.get(f(e))?.sortDirection??t});return{sortColumn:s,sortDirection:a,setSortState:n=>{r((e=>({...e,...n}))),p.set(f(e),{...p.get(f(e)),...n})}}})(e,{sortColumn:o??t.find((({sortable:e})=>e))?.key,sortDirection:u}),{page:C,itemsPerPage:T,searchPattern:O,setPageState:F}=((e,{itemsPerPage:n},t=!0)=>{const s=t?{page:p.get(v(e))?.page,itemsPerPage:p.get(v(e))?.itemsPerPage,searchPattern:p.get(v(e))?.searchPattern}:{},[{page:a,itemsPerPage:r,searchPattern:o},d]=(0,i.useState)({page:s.page??1,itemsPerPage:s.itemsPerPage??n,searchPattern:s.searchPattern??""});return{page:a,itemsPerPage:r,searchPattern:o,setPageState:n=>{d((e=>({...e,...n}))),t&&p.set(v(e),{...p.get(v(e)),...n})}}})(e,{itemsPerPage:a.includes(s)?s:a[0]},E),D=(0,i.useMemo)((()=>O?h??(0,i.jsx)(r.ListEmptyView,{reason:"filtered",title:(0,i.jsx)(d,{content:"emptyViewFilteredTitle"}),description:(0,i.jsx)(d,{content:"emptyViewFilteredDescription"}),"data-testid":"list-empty-view-filtered"}):S??(0,i.jsx)(r.ListEmptyView,{title:(0,i.jsx)(d,{content:"emptyViewTitle"})})),[O,S,h]),V=(0,i.useMemo)((()=>t.map((({sortDataField:e,...n})=>n))),[t]),R=(0,i.useMemo)((()=>g&&O?n.filter((e=>(Array.isArray(g)?g:[g]).some((n=>e[n]&&String(e[n]).toLowerCase().includes(O.toLowerCase()))))):n),[n,O,g]),L=(0,i.useMemo)((()=>{if(!A)return R;const e=t.find((({key:e})=>e===A))?.sortDataField??A,n=t.find((({key:e})=>e===A))?.sort??((n,t)=>n[e]<t[e]?-1:n[e]>t[e]?1:0);return[...R].sort(((e,t)=>c===j?n(e,t):n(t,e)))}),[R,A,j,t]),q=(0,i.useMemo)((()=>{if(T===m)return L;const e=T*(C-1),n=e+T;return L.slice(e,n)}),[C,L,T]),$=(0,i.useCallback)((e=>{F({searchPattern:e}),e!==O&&F({page:1})}),[O]),M=(0,i.useCallback)((e=>{F({itemsPerPage:e});(e===m?1:Math.ceil(R.length/e))<C&&F({page:1})}),[R.length,C]);return(0,i.useEffect)((()=>{if("function"==typeof P&&y.length){const e=R.map((e=>{return n=e,"function"==typeof(t=I)?t(n):n[t];var n,t})).filter((e=>y.includes(e)));P(e)}}),[R]),(0,i.jsx)(r.List,{pagination:(0,i.jsx)(r.Pagination,{current:C,total:T===m?1:Math.ceil(R.length/T),onSelect:e=>F({page:e}),itemsPerPage:T,itemsPerPageOptions:a,onItemsPerPageChange:M}),toolbar:(b||g)&&(0,i.jsxs)(r.Toolbar,{children:[b,g&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.ToolbarExpander,{}),(0,i.jsx)(r.ToolbarGroup,{title:"",children:(0,i.jsx)(r.SearchBar,{inputProps:{placeholder:l.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:O,...w??{}},onTyping:$})})]})]}),totalRows:R.length,sortColumn:A,sortDirection:j,onSortChange:N,columns:V,data:q,filtered:!!O,locale:{totalRows:({totalRows:e})=>l.formatMessage("recordsTotal",{total:e}),...k},emptyView:D,onSelectionChange:P,selection:y,rowKey:I,...x})};g.propTypes={id:a().string.isRequired,data:a().array.isRequired,columns:a().array.isRequired,itemsPerPage:a().number,itemsPerPageOptions:a().array,sortColumn:a().string,sortDirection:a().string,searchField:a().oneOfType([a().string,a().arrayOf(a().string.isRequired)]),locale:a().object,emptyView:a().node,emptyFilteredView:a().node,toolbar:a().node,onSelectionChange:a().func,selection:a().array,rowKey:a().oneOfType([a().string,a().func]),searchBarInputProps:a().object,useStorage:a().bool};const k=g},1406:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(285),s=t(580),a=t(286);const r=({onClose:e,isOpen:n=!0,closeOnFormSuccess:t=!0,closeUrl:r="..",form:o,...d})=>{const l=(0,s.useNavigate)(),[c,u]=(0,i.useState)(n),m=(0,i.useRef)(null),p=(0,i.useCallback)(((...n)=>{const t=e??(()=>l(r,{preventScrollReset:!0}));u(!1),m.current=setTimeout((()=>{t(...n),m.current=null}),300)}),[r,l,e]);(0,i.useEffect)((()=>()=>{m.current&&clearTimeout(m.current)}),[]),(0,i.useEffect)((()=>{n?m.current&&clearTimeout(m.current):u(n)}),[n]);const f=(0,i.useMemo)((()=>{if(o&&t){if((0,i.isValidElement)(o))return(0,i.cloneElement)(o,{onSuccess:(...e)=>{o.props.onSuccess?.(...e),p()}});if("object"==typeof o)return{...o,onSuccess:(...e)=>{o.onSuccess?.(...e),p()}}}return o}),[t,p,o]);return(0,i.jsx)(a.Drawer,{...d,form:f,onClose:p,isOpen:c})}},1417:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(286),s=t(596),a=t.n(s),r=t(89),o=t(285);const d=r.Locale.getTranslate("components.forms.ip-addresses-selector"),l=({ipAddresses:e,namePrefix:n,type:t,isOtherTypeAvailable:s,getIpAddressType:a,...r})=>{const l=(0,i.useTranslate)("components.forms.ip-addresses-selector");return!!e.length&&(0,o.jsxs)(i.FormFieldSelect,{label:(0,o.jsx)(d,{content:s?`${t}Address`:"ipAddress"}),name:`${n}[${t}]`,...r,children:[e.map((({id:e,ipAddress:n,publicIpAddress:t,type:s})=>(0,o.jsx)(i.SelectOption,{value:e,children:`${t||n}${a(s)}`},e))),s&&(0,o.jsx)(i.SelectOption,{value:"none",children:l("noIpAddressHint")})]},t)};l.propTypes={ipAddresses:a().array.isRequired,namePrefix:a().string.isRequired,type:a().string.isRequired,isOtherTypeAvailable:a().bool.isRequired,getIpAddressType:a().func.isRequired};const c=l},1416:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>u,TYPE_IPV4:()=>d,TYPE_IPV6:()=>l,TYPE_SHARED:()=>c,default:()=>p});var i=t(286),s=t(596),a=t.n(s),r=t(285),o=t(1417);const d="ipv4",l="ipv6",c="SHARED",u="EXCLUSIVE",m=({ipAddresses:e,namePrefix:n,isIPv6Supported:t=!0,...s})=>{const a=(0,i.useTranslate)("components.forms.ip-addresses-selector"),m=(0,r.useMemo)((()=>e.filter((({isIPv6:e,isBroken:n})=>!e&&!n))),[e]),p=(0,r.useMemo)((()=>e.filter((({isIPv6:e,isBroken:n})=>e&&!n))),[e]),f=(0,r.useCallback)((e=>{switch(e){case c:return` (${a("shared")})`;case u:return` (${a("exclusive")})`;default:return""}}),[a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{ipAddresses:m,namePrefix:n,type:d,isOtherTypeAvailable:t&&!!p.length,getIpAddressType:f,...s}),t&&(0,r.jsx)(o.default,{ipAddresses:p,namePrefix:n,type:l,isOtherTypeAvailable:!!m.length,getIpAddressType:f,...s})]})};m.propTypes={ipAddresses:a().array.isRequired,namePrefix:a().string.isRequired,isIPv6Supported:a().bool};const p=m},1415:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>i.TYPE_EXCLUSIVE,TYPE_SHARED:()=>i.TYPE_SHARED,default:()=>i.default,prepareBackendData:()=>s});var i=t(1416);const s=e=>{const n=[];return Object.keys(e).forEach((t=>{Object.keys(e[t]).forEach((s=>{"none"!==s&&n.push({id:s,ipAddress:e[t][s],isIPv6:t===i.TYPE_IPV6})}))})),n}},1412:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(596),s=t.n(i),a=t(286),r=t(1413),o=t(89),d=t(285);const l=o.Locale.getSection("components.elements.lookup"),c=({data:e,dataUrl:n,lookUpParams:t,newItemValue:i,locale:s,placeholder:o,...c})=>(0,d.jsx)(a.FormField,{...c,children:({getId:a,getName:c,getValue:u,setValue:m,isDisabled:p})=>(0,d.jsx)(r.default,{id:a(),name:c(),value:u(),onChange:e=>m(e),data:e,dataUrl:n,lookUpParams:t,newItemValue:i,locale:{...l.messages,...s},disabled:p(),placeholder:o})});c.propTypes={locale:s().object,data:s().array,dataUrl:s().string,lookUpParams:s().object,newItemValue:s().object,placeholder:s().string};const u=c},1410:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>P});var i=t(596),s=t.n(i),a=t(286),r=t(1411),o=t(1412),d=t(89),l=t(285),c=t(1420),u=t(1414),m=t(1415),p=t(1289),f=(t(1418),t(1419)),v=t.n(f);const g=d.Locale.getTranslate("components.forms.change-subscriptions-owner"),k="none",S=e=>e?.find((({isIPv6:e})=>!e)),h=e=>e?.find((({isIPv6:e})=>e)),b=({publicIpAddress:e,ipAddress:n})=>e||n,y=({domains:e,server:{settings:{isIPv6Supported:n}},viewer:{type:t,client:{id:i}},...s})=>{const[d,f]=(0,l.useState)({}),[y,P]=(0,l.useState)(),[w,I]=(0,l.useState)(null),E=(0,a.getIn)(d,"clientId")?.id,x=(0,l.useMemo)((()=>null!==w&&0===w.length),[w]),A=(0,l.useMemo)((()=>n&&null!==w&&w.some((({isIPv6:e})=>e))),[n,w]),[j,N]=(0,l.useState)(e.filter((({baseDomain:e})=>!e))),C=(0,l.useMemo)((()=>(E?btoa(`Client:${E}`):E)!==y?.id),[E,y]),[T]=(0,c.useLazyQuery)(v(),{notifyOnNetworkStatusChange:!0,onCompleted:({client:e})=>P(e)});(0,l.useEffect)((()=>{E&&T({variables:{id:btoa(`Client:${E}`)}})}),[E,T]),(0,l.useEffect)((()=>{if(!y)return void I(null);const{ipAddresses:e,availableIpAddresses:n,id:s}=y,a="ADMIN"===t||i!==s;I((0,u.getAvailableIpAddresses)(e,a?n:[],s))}),[y,t,i]),(0,l.useEffect)((()=>{e.forEach((({id:e,ipAddresses:t})=>{f((n=>(0,a.setIn)(n,`${e}[ipv4]`,S(t)?.id||k))),n&&f((n=>(0,a.setIn)(n,`${e}[ipv6]`,h(t)?.id||k)))}))}),[n,e]),(0,l.useEffect)((()=>{N((e=>e.map((e=>({...e,intent:y&&!e.subscription.isCustom&&e.owner.vendor.id!==y.vendor.id?"warning":void 0})))))}),[y]);return(0,l.jsxs)(p.default,{"data-type":"change-subscriptions-owner-form",values:d,onFieldChange:(e,n)=>{f((t=>(0,a.setIn)(t,e,n)))},onSubmit:({clientId:n,...t})=>C?null:{ipMap:Object.entries(t).map((([e,{ipv4:n,ipv6:t}])=>({domainId:e,ipv4:w?.some((({id:e,isIPv6:t})=>e===n&&!t))?n:void 0,ipv6:w?.some((({id:e,isIPv6:n})=>e===t&&n))?t:void 0}))),domainIds:e.map((({id:e})=>e)),clientId:y?.id},submitButton:{id:"btn-send",children:(0,l.jsx)(g,{content:"submit"}),disabled:x||!y||C},cancelButton:{id:"btn-cancel"},applyButton:!1,...s,children:[x&&(0,l.jsx)(a.StatusMessage,{intent:"warning",children:(0,l.jsx)(g,{content:"warningEmptyPool"})}),(0,l.jsx)(a.Section,{title:(0,l.jsx)(g,{content:"ownerSection"}),children:(0,l.jsx)(o.default,{name:"clientId",label:(0,l.jsx)(g,{content:"owner"}),dataUrl:"/admin/customer/common-look-up",required:!0})}),(0,l.jsx)(a.Section,{title:(0,l.jsx)(g,{content:"subscriptionsSection"}),children:(0,l.jsx)(r.default,{id:"change-subscriptions-owner-list",className:"change-subscriptions-owner-list",columns:[{key:"name",title:(0,l.jsx)(g,{content:"subscriptionName"}),type:"title",sortable:!0,className:"change-subscriptions-owner-list__name",render:({name:e,subscription:{isCustom:n},owner:{vendor:t}})=>y&&!n&&t.id!==y.vendor.id?(0,l.jsx)(a.Tooltip,{title:(0,l.jsx)(g,{content:"warningCustom"}),children:(0,l.jsx)(a.Status,{intent:"warning",children:e})}):e},{key:"ownerName",title:(0,l.jsx)(g,{content:"ownerName"}),sortable:!0,render:({owner:{name:e}})=>e},{key:"currentIpAddress",title:(0,l.jsx)(g,{content:"currentIpAddress"}),render:({ipAddresses:e})=>{const n=S(e),t=h(e);return n&&t?`${b(n)}(v4), ${b(t)}(v6)`:b(e[0])}},{key:"newIpAddress",type:w?.length?"controls":void 0,title:(0,l.jsx)(g,{content:"newIpAddress"}),render:({id:e})=>null===w?null:w.length?(0,l.jsx)(m.default,{ipAddresses:w,namePrefix:e,size:A?"lg":void 0,label:null,isIPv6Supported:n}):(0,l.jsx)(g,{content:"noIpAddress"})}],data:j,sortColumn:"name",searchField:"name",useStorage:!1})})]})};y.propTypes={domains:s().array.isRequired,server:s().object.isRequired,viewer:s().object.isRequired};const P=y},1409:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(1410)},1413:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(285),s=t(89),a=t(641),r=t(596);const o=({disabled:e=!1,...n})=>{const[t,r]=(0,i.useState)(null);return(0,i.useEffect)((()=>{const t=new s.LookUp({disabled:e,...n});return r(t),()=>{t.remove(),r(null)}}),[]),(0,i.useEffect)((()=>{t&&(e?t.disable():t.enable())}),[t,e]),t?(0,i.jsx)(a.default,{children:t}):null};o.propTypes={disabled:t.n(r)().bool};const d=o},1408:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>f});var i=t(580),s=t(1406),a=t(89),r=t(628),o=t(1409),d=t(536),l=t(1421),c=t(1422),u=t.n(c),m=t(285);const p=a.Locale.getTranslate("components.pages.change-subscriptions-owner"),f=()=>{const e=(0,i.useLoaderData)(),[n]=(0,r.useMutation)(u(),{onCompleted:({changeSubscriptionsOwner:{warnings:e}})=>{(0,d.addToast)({intent:"success",message:(0,m.jsx)(p,{content:"success"})}),e.forEach((e=>(0,d.addToast)({intent:"warning",message:e})))},update:n=>{(0,l.evictEntitiesCache)({cache:n,typename:"Domain",ids:e.domains.map((({subscription:e})=>e.domains.map((({id:e})=>e)))).flat(),fields:["owner"]})}});return(0,m.jsx)(s.default,{"data-type":"change-subscription-owner-drawer",title:(0,m.jsx)(p,{content:"title"}),size:"lg",form:(0,m.jsx)(o.default,{mutation:n,...e})})}},1407:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(1408)},1421:(e,n,t)=>{"use strict";t.r(n),t.d(n,{evictEntitiesCache:()=>i});const i=({cache:e,typename:n,ids:t=[],fields:i=[]})=>{Object.values(e.extract()).filter((({__typename:e,id:i})=>e===n&&(0===t.length||t.includes(i)))).forEach((n=>{i.forEach((t=>e.evict({id:e.identify(n),fieldName:t})))}))}},1414:(e,n,t)=>{"use strict";t.r(n),t.d(n,{getAvailableIpAddresses:()=>s});var i=t(1415);const s=(e,n,t)=>[...e.filter((({type:e,clients:n})=>e!==i.TYPE_EXCLUSIVE||!n.length||n.some((({id:e})=>e===t)))),...n].filter(((e,n,t)=>t.findIndex((n=>n.id===e.id))===n)).filter((({isBroken:e})=>!e))},1419:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SelectOwner"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"client"},name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Client"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vendor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ipAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isIPv6"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ipAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publicIpAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isBroken"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clients"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"availableIpAddresses"},name:{kind:"Name",value:"ipAddresses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"unassigned"},value:{kind:"BooleanValue",value:!0}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isIPv6"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ipAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"publicIpAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isBroken"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:671}};n.loc.source={body:"query SelectOwner($id: ID!) {\n client: node(id: $id) {\n id\n ... on Client {\n name\n vendor {\n id\n }\n ipAddresses {\n id\n type\n isIPv6\n ipAddress\n publicIpAddress\n isBroken\n clients {\n id\n }\n }\n availableIpAddresses: ipAddresses(filter: {unassigned: true}) {\n id\n type\n isIPv6\n ipAddress\n publicIpAddress\n isBroken\n }\n }\n }\n}\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 s(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.SelectOwner=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=i[n]||new Set,r=new Set,o=new Set;for(a.forEach((function(e){o.add(e)}));o.size>0;){var d=o;o=new Set,d.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=s(e,n);i&&t.definitions.push(i)})),t}(n,"SelectOwner")},1422:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeSubscriptionsOwner"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChangeSubscriptionsOwnerInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeSubscriptionsOwner"},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:"warnings"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:147}};n.loc.source={body:"mutation ChangeSubscriptionsOwner($input: ChangeSubscriptionsOwnerInput!) {\n changeSubscriptionsOwner(input: $input) {\n warnings\n }\n}\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 s(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.ChangeSubscriptionsOwner=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=i[n]||new Set,r=new Set,o=new Set;for(a.forEach((function(e){o.add(e)}));o.size>0;){var d=o;o=new Set,d.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=s(e,n);i&&t.definitions.push(i)})),t}(n,"ChangeSubscriptionsOwner")},1418:(e,n,t)=>{"use strict";t.r(n)}}]); //# sourceMappingURL=ChangeSubscriptionsOwnerPage.js.map?c7226ee56cc17be2d425