Files
server/opt/psa/admin/cp/public/javascript/components/pages/ChangeSubscriptionsOwnerPage.js
2026-01-07 20:52:11 +01:00

2 lines
19 KiB
JavaScript

(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/ChangeSubscriptionsOwnerPage"],{1430:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var i=t(296),s=t(599),a=t(297);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})}},1431:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(1432)},1432:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>f});var i=t(599),s=t(1430),a=t(90),r=t(696),o=t(1433),d=t(546),l=t(1444),c=t(1445),u=t.n(c),m=t(296);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})})}},1433:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(1434)},1434:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>P});var i=t(668),s=t.n(i),a=t(297),r=t(1435),o=t(1436),d=t(90),l=t(296),c=t(726),u=t(1438),m=t(1439),p=t(1305),f=(t(1442),t(1443)),v=t.n(f);const g=d.Locale.getTranslate("components.forms.change-subscriptions-owner"),k="none",h=e=>e?.find(({isIPv6:e})=>!e),S=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,A=(0,l.useMemo)(()=>null!==w&&0===w.length,[w]),x=(0,l.useMemo)(()=>n&&null!==w&&w.some(({isIPv6:e})=>e),[n,w]),[N,j]=(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]`,h(t)?.id||k)),n&&f(n=>(0,a.setIn)(n,`${e}[ipv6]`,S(t)?.id||k))})},[n,e]),(0,l.useEffect)(()=>{j(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:A||!y||C},cancelButton:{id:"btn-cancel"},applyButton:!1,...s,children:[A&&(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=h(e),t=S(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:x?"lg":void 0,label:null,isIPv6Supported:n}):(0,l.jsx)(g,{content:"noIpAddress"})}],data:N,sortColumn:"name",searchField:"name",useStorage:!1})})]})};y.propTypes={domains:s().array.isRequired,server:s().object.isRequired,viewer:s().object.isRequired};const P=y},1435:(e,n,t)=>{"use strict";t.r(n),t.d(n,{SORT_ASC:()=>d,SORT_DESC:()=>l,default:()=>v});var i=t(296),s=t(668),a=t.n(s),r=t(297);const o=t(90).Locale.getSection("components.list"),d="ASC",l="DESC",c="all",u={set(e,n){localStorage.setItem(e,JSON.stringify(n))},get(e){const n=localStorage.getItem(e);return JSON.parse(n)}},m=e=>`list-sort_${e}`,p=e=>`list-page_${e}`,f=({id:e,data:n,columns:t,itemsPerPage:s=25,itemsPerPageOptions:a=[10,25,100,c],sortColumn:l,sortDirection:f=d,searchField:v,locale:g={},emptyView:k,emptyFilteredView:h,toolbar:S,selection:b=[],onSelectionChange:y,searchBarInputProps:P,rowKey:w="key",useStorage:I=!0,...E})=>{const{sortColumn:A,sortDirection:x,setSortState:N}=((e,{sortColumn:n,sortDirection:t})=>{const[{sortColumn:s,sortDirection:a},r]=(0,i.useState)({sortColumn:u.get(m(e))?.sortColumn??n,sortDirection:u.get(m(e))?.sortDirection??t});return{sortColumn:s,sortDirection:a,setSortState:n=>{r(e=>({...e,...n})),u.set(m(e),{...u.get(m(e)),...n})}}})(e,{sortColumn:l??t.find(({sortable:e})=>e)?.key,sortDirection:f}),{page:j,itemsPerPage:C,searchPattern:T,setPageState:O}=((e,{itemsPerPage:n},t=!0)=>{const s=t?{page:u.get(p(e))?.page,itemsPerPage:u.get(p(e))?.itemsPerPage,searchPattern:u.get(p(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&&u.set(p(e),{...u.get(p(e)),...n})}}})(e,{itemsPerPage:a.includes(s)?s:a[0]},I),F=(0,i.useMemo)(()=>T?h??(0,i.jsx)(r.ListEmptyView,{reason:"filtered","data-testid":"list-empty-view-filtered"}):k??(0,i.jsx)(r.ListEmptyView,{}),[T,k,h]),D=(0,i.useMemo)(()=>t.map(({sortDataField:e,...n})=>n),[t]),V=(0,i.useMemo)(()=>v&&T?n.filter(e=>(Array.isArray(v)?v:[v]).some(n=>e[n]&&String(e[n]).toLowerCase().includes(T.toLowerCase()))):n,[n,T,v]),R=(0,i.useMemo)(()=>{if(!A)return V;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[...V].sort((e,t)=>d===x?n(e,t):n(t,e))},[V,A,x,t]),L=(0,i.useMemo)(()=>{if(C===c)return R;const e=C*(j-1),n=e+C;return R.slice(e,n)},[j,R,C]),q=(0,i.useCallback)(e=>{O({searchPattern:e}),e!==T&&O({page:1})},[T]),$=(0,i.useCallback)(e=>{O({itemsPerPage:e});(e===c?1:Math.ceil(V.length/e))<j&&O({page:1})},[V.length,j]);return(0,i.useEffect)(()=>{if("function"==typeof y&&b.length){const e=V.map(e=>{return n=e,"function"==typeof(t=w)?t(n):n[t];var n,t}).filter(e=>b.includes(e));y(e)}},[V]),(0,i.jsx)(r.List,{pagination:(0,i.jsx)(r.Pagination,{current:j,total:C===c?1:Math.ceil(V.length/C),onSelect:e=>O({page:e}),itemsPerPage:C,itemsPerPageOptions:a,onItemsPerPageChange:$}),toolbar:(S||v)&&(0,i.jsxs)(r.Toolbar,{children:[S,v&&(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:o.lmsg("searchPlaceholder"),"data-testid":"list-searchbar",value:T,...P??{}},onTyping:q})})]})]}),totalRows:V.length,sortColumn:A,sortDirection:x,onSortChange:N,columns:D,data:L,filtered:!!T,locale:{totalRows:({totalRows:e})=>o.formatMessage("recordsTotal",{total:e}),...g},emptyView:F,onSelectionChange:y,selection:b,rowKey:w,...E})};f.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 v=f},1436:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(668),s=t.n(i),a=t(297),r=t(1437),o=t(90),d=t(296);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},1437:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(296),s=t(90),a=t(713),r=t(668);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},1438:(e,n,t)=>{"use strict";t.r(n),t.d(n,{getAvailableIpAddresses:()=>s});var i=t(1439);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)},1439:(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(1440);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}},1440:(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(297),s=t(668),a=t.n(s),r=t(296),o=t(1441);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},1441:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(297),s=t(668),a=t.n(s),r=t(90),o=t(296);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},1442:(e,n,t)=>{"use strict";t.r(n)},1443: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")},1444:(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}))})}},1445: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")}}]);
//# sourceMappingURL=ChangeSubscriptionsOwnerPage.js.map?1576af2cff2409ced088