1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/domain/list"],{1080:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var a=t(242),s=t(244),i=t.n(s),o=t(90),r=t(1081),d=t(1082);const l=o.Locale.getTranslate("components.domain-applications.applications"),c=({onFieldChange:e,onStepChange:n,formPrefix:s,wizardConfig:i,embeddedForms:o,extensionButtons:c,values:m,children:p,...u})=>{const g=n=>{e("applicationName",n)},b=[i.blankSite&&{name:"blank-site",icon:t(1083),title:(0,a.jsx)(l,{content:"blank-site.title"}),description:(0,a.jsx)(l,{content:"blank-site.description"})},i.uploadFiles&&{name:"upload-files",icon:t(1084),title:(0,a.jsx)(l,{content:"upload-files.title"}),description:(0,a.jsx)(l,{content:"upload-files.description"})},...c.map((({id:e,extensionId:n,title:t,icon:a,description:s})=>({name:`ext-${n}`,id:e,icon:a,title:t,description:s})))].filter(Boolean),f=[b.length>1&&{key:"chooseApplicationStep",children:(0,a.jsx)(r.default,{onApplicationSelect:g,applicationsList:b}),nextButton:!1},{key:"addDomainStep",formPrefix:s,children:p,embeddedForms:o}].filter(Boolean);(0,a.useEffect)((()=>{if(0===b.length&&g("blank-site"),1===b.length){const[{name:e}]=b;g(e)}}),[]);const h=m.applicationName&&1!==f.length?1:0;return(0,a.useEffect)((()=>{n?.(f[h].key)}),[h]),(0,a.jsx)(d.default,{...u,values:m,onFieldChange:e,onStepChange:(n,t)=>0===t&&f.length>1?(e("applicationName",null),n):t,step:h,steps:f})};c.propTypes={values:i().object.isRequired,onFieldChange:i().func.isRequired,onStepChange:i().func,children:i().node,formPrefix:i().string,wizardConfig:i().shape({enabled:i().bool,blankSite:i().bool,uploadFiles:i().bool}),embeddedForms:i().array,extensionButtons:i().array},c.defaultProps={children:null,onStepChange:void 0,formPrefix:"",wizardConfig:{enabled:!0,blankSite:!0,uploadFiles:!0},embeddedForms:[],extensionButtons:[]};const m=c},1081:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var a=t(243),s=t(244),i=t.n(s),o=t(90),r=t(242);const d=o.Locale.getTranslate("components.domain-applications"),l=({onApplicationSelect:e,applicationsList:n})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Heading,{level:"3",children:(0,r.jsx)(d,{content:"title"})}),(0,r.jsx)(a.ItemList,{minColumnWidth:220,gap:"xs",selectable:!0,children:n.map((({id:n,name:t,icon:s,title:i,description:o})=>(0,r.jsx)(a.Item,{"data-action":t,icon:(0,r.jsx)(a.Icon,{src:s,intent:"info",size:"64"}),"data-testid":"listItem","data-cy":n??t,title:(0,r.jsx)(a.Heading,{level:"4",children:i}),onClick:()=>e(t),children:(0,r.jsx)(a.Paragraph,{children:o})},t)))})]});l.propTypes={onApplicationSelect:i().func.isRequired,applicationsList:i().arrayOf(i().shape({name:i().string.isRequired,icon:i().string.isRequired,title:i().node,description:i().node}))},l.defaultProps={applicationsList:[]};const c=l},1082:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var a=t(243),s=t(242),i=t(927),o=t(90),r=t(244),d=t.n(r);const l=o.Locale.getTranslate("components.buttons"),c=({step:e,steps:n,onStepChange:t,onSubmit:o,submitButton:r,cancelButton:d,...c})=>{const m=(0,s.useRef)(),[p,u]=(0,s.useState)(0),g=p+e,{children:b,formPrefix:f,embeddedForms:h,backButton:x,nextButton:w}={backButton:{},nextButton:{},...n[g]},j=g===n.length-1,v=0===g,S=()=>{m.current.handleEmbeddedFormValues(),u((n=>t(n+e,n+e+1)-e))};return(0,s.jsx)(i.default,{...c,ref:m,additionalButtons:[v&&d&&(0,s.jsx)(a.Button,{children:(0,s.jsx)(l,{content:"cancel"}),...d},"cancel"),!v&&x&&(0,s.jsx)(a.Button,{arrow:"backward",onClick:()=>{m.current.handleEmbeddedFormValues(),u((n=>t(n+e,n+e-1)-e))},children:(0,s.jsx)(l,{content:"back"}),...x},"back"),!j&&w&&(0,s.jsx)(a.Button,{intent:"primary",onClick:S,arrow:"forward",children:(0,s.jsx)(l,{content:"nextWithoutArrow"}),...w},"next"),j&&r&&(0,s.jsx)(a.Button,{intent:"primary",arrow:"forward",onClick:()=>m.current.submit(),children:(0,s.jsx)(l,{content:"ok"}),...r},"submit")],onSubmit:j?o:S,onError:a=>{const s=n.findIndex((({formPrefix:e})=>""===e)),i=Object.keys(a).map((e=>{const t=n.findIndex((({formPrefix:n,embeddedForms:t=[]})=>n===e||t.any((({name:n})=>n===e))));return t>=0?t:s}));u(t(g,i.length>0?Math.min(...i):e)-e)},applyButton:!1,submitButton:!1,cancelButton:!1,formPrefix:f,embeddedForms:h,children:b})};c.propTypes={step:d().number,steps:d().arrayOf(d().shape({formPrefix:d().string,embeddedForms:d().array,children:d().node,nextButton:d().bool,backButton:d().bool})),onStepChange:d().func,onSubmit:d().func,submitButton:d().object,cancelButton:d().object},c.defaultProps={step:0,steps:[],onStepChange:(e,n)=>n,onSubmit:void 0,submitButton:{},cancelButton:{}};const m=c},1079:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a.default});var a=t(1080)},1089:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var a=t(243),s=t(244),i=t.n(s),o=t(90),r=t(242);const d=o.Locale.getTranslate("components.forms.ip-addresses-selector"),l=({ipAddresses:e,namePrefix:n,type:t,isOtherTypeAvailable:s,getIpAddressType:i,...o})=>{const l=(0,a.useTranslate)("components.forms.ip-addresses-selector");return!!e.length&&(0,r.jsxs)(a.FormFieldSelect,{label:(0,r.jsx)(d,{content:s?`${t}Address`:"ipAddress"}),name:`${n}[${t}]`,...o,children:[e.map((({id:e,ipAddress:n,publicIpAddress:t,type:s})=>(0,r.jsx)(a.SelectOption,{value:e,children:`${t||n}${i(s)}`},e))),s&&(0,r.jsx)(a.SelectOption,{value:"none",children:l("noIpAddressHint")})]},t)};l.propTypes={ipAddresses:i().array.isRequired,namePrefix:i().string.isRequired,type:i().string.isRequired,isOtherTypeAvailable:i().bool.isRequired,getIpAddressType:i().func.isRequired};const c=l},1088:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>m,TYPE_IPV4:()=>d,TYPE_IPV6:()=>l,TYPE_SHARED:()=>c,default:()=>u});var a=t(243),s=t(244),i=t.n(s),o=t(242),r=t(1089);const d="ipv4",l="ipv6",c="SHARED",m="EXCLUSIVE",p=({ipAddresses:e,namePrefix:n,isIPv6Supported:t,...s})=>{const i=(0,a.useTranslate)("components.forms.ip-addresses-selector"),p=(0,o.useMemo)((()=>e.filter((({isIPv6:e,isBroken:n})=>!e&&!n))),[e]),u=(0,o.useMemo)((()=>e.filter((({isIPv6:e,isBroken:n})=>e&&!n))),[e]),g=(0,o.useCallback)((e=>{switch(e){case c:return` (${i("shared")})`;case m:return` (${i("exclusive")})`;default:return""}}),[i]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.default,{ipAddresses:p,namePrefix:n,type:d,isOtherTypeAvailable:t&&!!u.length,getIpAddressType:g,...s}),t&&(0,o.jsx)(r.default,{ipAddresses:u,namePrefix:n,type:l,isOtherTypeAvailable:!!p.length,getIpAddressType:g,...s})]})};p.propTypes={ipAddresses:i().array.isRequired,namePrefix:i().string.isRequired,isIPv6Supported:i().bool},p.defaultProps={isIPv6Supported:!0}
1;const u=p},1087:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>a.TYPE_EXCLUSIVE,default:()=>a.default,prepareBackendData:()=>s});var a=t(1088);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===a.TYPE_IPV6})}))})),n}},1075:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_CUSTOM:()=>c,TYPE_TECH:()=>l,default:()=>f});var a=t(243),s=t(242),i=t(244),o=t.n(i),r=t(90),d=t(1076);const l="tech",c="custom",m=r.Locale.getTranslate("components.forms.domain.tech-domain-name"),p=({isEnabled:e,isDefault:n,url:t,vendor:i,maxDomainLength:o,typeName:r,name:d,ipAddress:p,onDomainNameChange:b,onTypeChange:f})=>{const[h,x]=(0,s.useState)(e&&n?l:c);if(!e)return(0,s.jsx)(u,{name:d,isEnabled:!1,onDomainNameChange:b});const w=[{key:c,icon:(0,s.jsx)(a.Icon,{name:"ribbon",intent:"success"})},{key:l,icon:(0,s.jsx)(a.Icon,{name:"rocket",intent:"info"})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Section,{title:(0,s.jsx)(m,{content:"title"}),vertical:!0,children:(0,s.jsx)(a.FormField,{name:r,onChange:e=>(e=>{x(e),f(e),b("")})(e),children:({getId:e,getName:n,getValue:t,setValue:i,isDisabled:o})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.ItemList,{stretchable:!0,selectable:!0,minColumnWidth:270,gap:"sm",value:t(),onSelect:e=>{e!==h&&i(e)},children:w.map((({key:e,icon:n})=>(0,s.jsx)(a.Item,{icon:n,value:e,"data-action":`use-${e}-domain`,title:(0,s.jsx)(a.Heading,{level:"4",children:(0,s.jsx)(a.Paragraph,{children:(0,s.jsx)(m,{content:`${e}DomainTitle`})})}),disabled:o(),children:(0,s.jsx)(a.Text,{fontSize:"md",children:(0,s.jsx)(m,{content:`${e}DomainText`})})},e)))}),(0,s.jsx)("input",{hidden:!0,id:e(),name:n(),value:t(),readOnly:!0})]})})}),h===l?(0,s.jsx)(g,{name:d,ipAddress:p,url:t,vendor:i,maxDomainLength:o,onDomainNameChange:b}):(0,s.jsx)(u,{name:d,isEnabled:!0,onDomainNameChange:b})]})},u=({name:e,isEnabled:n,onDomainNameChange:t})=>(0,s.jsx)(a.Section,{vertical:!0,children:(0,s.jsx)(d.default,{name:e,label:n?(0,s.jsx)(m,{content:"customDomain"}):(0,s.jsx)(m,{content:"domainName"}),onChange:t,required:!0})});u.propTypes={name:o().string.isRequired,isEnabled:o().bool.isRequired,onDomainNameChange:o().func.isRequired};const g=({name:e,onDomainNameChange:n,...t})=>(0,s.jsx)(a.Section,{vertical:!0,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.FormField,{label:(0,s.jsx)(m,{content:"techDomain"}),name:e,onChange:e=>n(e),children:({getId:e,getName:n,...a})=>(0,s.jsx)(b,{id:e(),name:n(),...a,...t})}),(0,s.jsxs)(a.Cuttable,{maxHeight:24,children:[(0,s.jsx)(a.Paragraph,{children:(0,s.jsx)(m,{content:"techDomainDesc"})}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsx)(m,{content:"techDomainRandom"})}),(0,s.jsx)("li",{children:(0,s.jsx)(m,{content:"techDomainDns"})})]}),(0,s.jsx)(a.Paragraph,{children:(0,s.jsx)(m,{content:"techDomainSwitch"})})]})]})});g.propTypes={name:o().string.isRequired,onDomainNameChange:o().func.isRequired};const b=({id:e,name:n,ipAddress:t,url:i,vendor:o,getValue:r,setValue:d,maxDomainLength:l})=>
1{const[c,p]=(0,s.useState)(!1),[u,g]=(0,s.useState)(t),[b,f]=(0,s.useState)({}),h=(0,s.useCallback)((async()=>{if(f({}),!r()||t!==u)if(t){p(!0);try{const e=await(async({url:e,ipAddress:n,vendor:t,maxDomainLength:a})=>{const s=await fetch(e,{method:"POST",body:JSON.stringify({ip_address:n,vendor:t,max_length:a})}),{subdomain:i}=await s.json();if(!i)throw new Error("subdomain is empty");return i})({url:i,ipAddress:t,vendor:o,maxDomainLength:l});d(e),g(t)}catch{f({error:(0,s.jsx)(m,{content:"error"})})}finally{p(!1)}}else f({noIpAddress:(0,s.jsx)(m,{content:"errorNoIpAddress"})})}),[r,d,t,u,i,o,l]);return(0,s.useEffect)((()=>{h()}),[t]),(0,s.jsxs)(s.Fragment,{children:[c?(0,s.jsx)(a.Status,{progress:!0,children:(0,s.jsx)(m,{content:"generating"})}):(0,s.jsx)(a.Text,{bold:!0,children:r()}),(0,s.jsx)("input",{hidden:!0,id:e,name:n,value:r(),readOnly:!0}),Object.keys(b).map((e=>(0,s.jsxs)(a.Alert,{intent:"danger",children:[(0,s.jsx)(a.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})," ",b[e]]},e)))]})};b.propTypes={id:o().string.isRequired,name:o().string.isRequired,ipAddress:o().string,url:o().string.isRequired,vendor:o().string.isRequired,maxDomainLength:o().number.isRequired,getValue:o().func.isRequired,setValue:o().func.isRequired},b.defaultProps={ipAddress:null},p.propTypes={isEnabled:o().bool.isRequired,isDefault:o().bool.isRequired,url:o().string.isRequired,vendor:o().string.isRequired,maxDomainLength:o().number.isRequired,typeName:o().string.isRequired,name:o().string.isRequired,ipAddress:o().string,onDomainNameChange:o().func.isRequired,onTypeChange:o().func.isRequired},p.defaultProps={ipAddress:null};const f=p},1076:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var a=t(243),s=t(244),i=t.n(s),o=t(242);const r=({size:e,...n})=>(0,o.jsx)(a.FormField,{...n,children:({getId:n,getName:t,getValue:s,setValue:i,isDisabled:r})=>(0,o.jsxs)("div",{className:"composite-field",children:[(0,o.jsx)(a.Text,{className:"composite-field__prefix",children:"www. "}),(0,o.jsx)(a.Input,{id:n(),name:t(),value:s(),placeholder:"domain.name",size:e,onChange:e=>i(e.target.value),disabled:r()})]})});r.propTypes={size:i().string},r.defaultProps={size:"lg"};const d=r},1077:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var a=t(244),s=t.n(a),i=t(243),o=t(1078),r=t(90),d=t(242);const l=r.Locale.getSection("components.elements.lookup"),c=({data:e,dataUrl:n,lookUpParams:t,newItemValue:a,locale:s,placeholder:r,...c})=>(0,d.jsx)(i.FormField,{...c,children:({getId:i,getName:c,getValue:m,setValue:p,isDisabled:u})=>(0,d.jsx)(o.default,{id:i(),name:c(),value:m(),onChange:e=>p(e),data:e,dataUrl:n,lookUpParams:t,newItemValue:a,locale:{...l.messages,...s},disabled:u(),placeholder:r})});c.propTypes={locale:s().object,data:s().array,dataUrl:s().string,lookUpParams:s().object,newItemValue:s().object,placeholder:s().string},c.defaultProps={locale:void 0,data:void 0,dataUrl:void 0,lookUpParams:void 0,newItemValue:void 0,placeholder:void 0};const m=c},1074:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>A,useAddDomainFormInDrawer:()=>I});var a=t(242),s=t(244),i=t.n(s),o=t(735),r=t(728),d=t(90),l=t(243),c=t(756),m=t(679),p=t(1075),u=t(927),g=t(1077),b=t(1079),f=t(1085),h=t.n(f),x=t(1086),w=t(1087);const j=d.Locale.getSection("smb.components.forms.web.add-domain"),v=d.Locale.getTranslate("smb.components.forms.web.add-domain"),S=d.Locale.getTranslate("smb.components.forms.domain-info-section"),y=d.Locale.getTranslate("smb.components.forms.web._shared"),T=d.Locale.getTranslate("smb.components.forms.web.seo-settings"),k=d.Locale.getTranslate("admin.components.forms.admin-panel.form.contact-info"),D=d.Locale.getTranslate("components.buttons"),N=d.Locale.getTranslate("admin.components.forms.admin-panel.form.login-info"),C=({id:e,webspaceIpAddresses:n,allowCustomerCreation:t,allowWebspaceCreation:s,subscriptionsLookUpParams:i,canManageMailSettings:c,maxSysnameSize:f,isWindows:C,techDomain:I,settingsEnabled:A,settingsCollapsed:P,applicationWizardConfig:E,embeddedForms:F,extensionButtons:R,cancelLink:L,className:q,render:H,onProcess:U,onToggleDomainSettings:B,status:$,...O})=>{const V=(0,o.useApolloClient)(),_=(0,r.useNavigate)(),[M,z]=(0,a.useState)(O.values),[W,Y]=(0,a.useState)(Boolean(O.values.hostingSettings.root)),[J,G]=(0,a.useState)(!O.values.domainInfo),[X,Z]=(0,a.useState)(O.webspaceIpAddress),[Q,K]=(0,a.useState)(n),ee=n;(0,a.useEffect)((()=>
1{if(W)return;let e=/^[a-zA-Z0-9\.\-\*]+$/.match(M.domainName.name)?M.domainName.name.replace(/\*/g,"_"):"";-1!==M.hostingSettings.rootPattern.indexOf("<domain>")&&(e=M.hostingSettings.rootPattern.replace("<domain>",e)),z((0,l.setIn)(M,"hostingSettings[root]",e))}),[M.domainName.name]),(0,a.useEffect)((()=>{M.domainName.webspace&&"new"!==M.domainName.webspace.id&&V.query({query:h(),variables:{id:btoa(`Domain:${M.domainName.webspace.id}`)}}).then((({data:{domain:{ipAddresses:e}}})=>{const{publicIpAddress:n,ipAddress:t}=e[0];Z(n||t)})).catch((({message:e})=>{L&&_(L),(0,m.addToast)({intent:"danger",message:e})}))}),[M.domainName.webspace]);const ne=(e,n)=>{switch(z((t=>{if(t=(0,l.setIn)(t,e,n),"domainName[name]"===e&&!J){const e=(0,x.generateUserName)({domainName:n,maxUserNameSize:f,isTechDomain:t.domainName.type===p.TYPE_TECH,isWindows:C});t=(0,l.setIn)(t,"domainInfo[userName]",e||O.values.domainInfo.userName)}return t})),["domainInfo[ipSelector][ipv4]","domainInfo[ipSelector][ipv6]","domainInfo[userName]","domainInfo[password]"].includes(e)&&d.UAT.dispatchAction("CUSTOM-VALUE",{name:e}),e){case"hostingSettings[root]":Y(!0);break;case"domainInfo[userName]":G(!0);break;case"domainName[customer]":K(n.ipAddresses?n.ipAddresses:ee)}},te="1"===M.domainName.assignToCustomer||void 0!==M.domainName.targetWebspace||M.domainName.webspace&&"new"===M.domainName.webspace.id,ae=te||!X?Object.keys(Q).map((e=>{const n=M.domainInfo.ipSelector[e];return"none"===n?null:Q[e][n]?.split(" ")[0]})).filter(Boolean)[0]:X,se=E.enabled?b.default:u.default;return(0,a.jsxs)(se,{vertical:!0,id:e,className:q,render:H,values:M,onFieldChange:ne,onSubmit:e=>(e.domainName.customer&&(e=(0,l.setIn)(e,"domainName[customer]",e.domainName.customer.id)),e.domainName.webspace&&(e=(0,l.setIn)(e,"domainName[webspace]",e.domainName.webspace.id)),e),onLongTask:U,wizardConfig:E,embeddedForms:F,extensionButtons:R,submitButton:{id:"btn-send",children:(0,a.jsx)(v,{content:"buttonAddDomain"})}
1,applyButton:!1,cancelButton:!!L&&{id:"btn-cancel",children:(0,a.jsx)(D,{content:"cancel"}),onClick:()=>{_(L)}},children:[($||[]).filter((({status:e})=>"warning"===e)).map((({content:e})=>(0,a.jsx)(l.StatusMessage,{intent:"warning",children:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})},e))),(0,a.jsx)(p.default,{isEnabled:void 0!==M.domainName.type,isDefault:M.domainName.type===p.TYPE_TECH,typeName:"domainName[type]",name:"domainName[name]",ipAddress:ae,onTypeChange:e=>ne("domainName[type]",e),onDomainNameChange:e=>ne("domainName[name]",e),...I}),void 0===M.domainName.assignToCustomer?null:(0,a.jsxs)(l.Section,{children:[(0,a.jsx)(l.FormFieldCheckbox,{name:"domainName[assignToCustomer]",label:(0,a.jsx)(v,{content:"assignToCustomer"}),checkedValue:"1",uncheckedValue:"0"}),"1"===M.domainName.assignToCustomer?(0,a.jsxs)(l.Section,{collapsible:!0,children:[void 0===M.domainName.customer?null:(0,a.jsx)(g.default,{name:"domainName[customer]",label:(0,a.jsx)(v,{content:"customer"}),dataUrl:"/admin/customer/look-up",newItemValue:t?{id:"new",title:j.lmsg("createNewCustomer")}:null,locale:{label:j.lmsg("selectExistingCustomer")},required:!0}),void 0===M.domainName.customer||"new"===M.domainName.customer?.id?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.FormFieldText,{name:"customerInfo[customerContactInfo][contactName]",label:(0,a.jsx)(k,{content:"contactName"}),required:!0}),(0,a.jsx)(l.FormFieldText,{name:"customerInfo[customerContactInfo][email]",label:(0,a.jsx)(k,{content:"email"}),required:!0}),(0,a.jsx)("br",{}),(0,a.jsx)(l.Heading,{level:"4",children:(0,a.jsx)(v,{content:"customerLoginInfoHint"})}),(0,a.jsx)(l.FormFieldText,{name:"customerInfo[customerLoginInfo][userName]",label:(0,a.jsx)(N,{content:"userName"}),required:!0,autoComplete:"off"}),(0,a.jsx)(l.FormFieldPassword,{name:"customerInfo[customerLoginInfo][password]",label:(0,a.jsx)(N,{content:"password"}),required:!0,autoComplete:"new-password"}),(0,a.jsx)(l.FormFieldCheckbox,{name:"customerInfo[customerLoginInfo][isActivationRequired]",label:(0,a.jsx)(N,{content:"emailActivation"}),description:(0,a.jsx)(N,{content:"emailActivationHint"}),checkedValue:"1",uncheckedValue:"0"})]}):null]}):null]}),void 0===M.domainName.webspace||"1"===M.domainName.assignToCustomer?null:(0,a.jsx)(l.Section,{children:(0,a.jsx)(g.default,{name:"domainName[webspace]",label:(0,a.jsx)(v,{content:"target"}),dataUrl:"/smb/web/subscription-look-up",newItemValue:s?{id:"new",title:j.lmsg("createNewTarget")}:null,locale:{label:j.lmsg("selectExistingTarget")},lookUpParams:i,required:!0})}),te?A?(0,a.jsxs)(l.Section,{id:"domainInfo",title:(0,a.jsx)(v,{content:"webspaceLegend"}),collapsible:!0,collapsed:P,onToggle:B,children:[(0,a.jsx)(w.default,{ipAddresses:(0,w.prepareBackendData)(Q),namePrefix:"domainInfo[ipSelector]"}),(0,a.jsx)("br",{}),(0,a.jsx)(l.Heading,{level:"4",children:(0,a.jsx)(v,{content:"credentials"})}),(0,a.jsx)(l.Text,{component:"p",intent:"muted",children:(0,a.jsx)(v,{content:C?"credentialsHintWin":"credentialsHint"})}),(0,a.jsx)(l.FormFieldText,{name:"domainInfo[userName]",label:(0,a.jsx)(S,{content:"userName"}),required:!0}),(0,a.jsx)(l.FormFieldPassword,{name:"domainInfo[password]",label:(0,a.jsx)(S,{content:"password"}),required:!0})]}):null:(0,a.jsxs)(l.Section,{children:[(0,a.jsxs)(l.FormFieldSelect,{name:"hostingType[hosting]",label:(0,a.jsx)(v,{content:"hostingManagementOptions"}),children:[(0,a.jsx)(l.SelectOption,{value:"hosting",label:"hosting",children:(0,a.jsx)(v,{content:"websiteHosting"})}),(0,a.jsx)(l.SelectOption,{value:"forwarding",label:"forwarding",children:(0,a.jsx)(v,{content:"websiteForwarding"})}),(0,a.jsx)(l.SelectOption,{value:"none",label:"none",children:(0,a.jsx)(v,{content:"websiteNoHosting"})})]}),void 0===M.dnsSettings?null:(0,a.jsx)(l.FormFieldCheckbox,{name:"dnsSettings[dns]",label:(0,a.jsx)(v,{content:"dns"}),description:(0,a.jsx)(v,{content:"dnsHint"}),disabled:M.domainName.type===p.TYPE_TECH,checkedValue:M.domainName.type!==p.TYPE_TECH&&"master",uncheckedValue:"none"}),void 0===M.mailSettings?null:(0,a.jsx)(l.FormFieldCheckbox,{name:"mailSettings[mail]",label:(0,a.jsx)(v,{c
1ontent:"mail"}),description:c?(0,a.jsx)(v,{content:"mailHint"}):(0,a.jsx)(v,{content:"mailHintNoPermission"}),disabled:M.domainName.type===p.TYPE_TECH,checkedValue:M.domainName.type!==p.TYPE_TECH&&"1",uncheckedValue:"0"}),"hosting"===M.hostingType.hosting?(0,a.jsxs)(l.Section,{id:"hostingSettings",title:(0,a.jsx)(v,{content:"hostingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,a.jsx)(l.FormField,{name:"hostingSettings[root]",label:(0,a.jsx)(y,{content:"documentRoot"}),description:(0,a.jsx)(y,{content:"documentRootHint"}),required:!0,children:({getId:e,getName:n,getValue:t,setValue:s})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Icon,{name:"home"})," / ",(0,a.jsx)(l.Input,{id:e(),name:n(),value:t(),onChange:({target:e})=>s(e.value)})]})}),(0,a.jsx)(l.FormFieldRadioButtons,{name:"hostingSettings[seoRedirectDirection]",label:(0,a.jsx)(T,{content:"seoRedirectDirection"}),description:(0,a.jsx)(T,{content:"seoRedirectDirectionHint"}),required:!0,options:[{value:"www",label:`www.${M.domainName.name||"<your_domain>"}`},{value:"non-www",label:M.domainName.name||"<your_domain>"},{value:"none",label:(0,a.jsx)(T,{content:"seoRedirectDirectionNone"})}]})]}):null,"forwarding"===M.hostingType.hosting?(0,a.jsxs)(l.Section,{id:"forwardingSettings",title:(0,a.jsx)(y,{content:"forwardingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,a.jsx)(l.FormFieldText,{name:"forwardingSettings[forwardTo]",label:(0,a.jsx)(y,{content:"forwardDestination"}),description:(0,a.jsx)(y,{content:"forwardDestinationHint"}),required:!0}),(0,a.jsx)(l.FormFieldRadioButtons,{name:"forwardingSettings[forwardingType]",label:(0,a.jsx)(y,{content:"forwardingTypeOptions"}),options:[{value:"std_fwd301",label:(0,a.jsx)(y,{content:"forwardingHttpCode301"}),description:(0,a.jsx)(y,{content:"forwardingHttpCode301Hint"})},{value:"std_fwd302",label:(0,a.jsx)(y,{content:"forwardingHttpCode302"}),description:(0,a.jsx)(y,{content:"forwardingHttpCode302Hint"})},{value:"frm_fwd",label:(0,a.jsx)(y,{content:"forwardingFrame"}),description:(0,a.jsx)(y,{content:"forwardingFrameHint"})}]})]}):null]})]})};C.propTypes={id:i().string.isRequired,values:i().object.isRequired,webspaceIpAddresses:i().shape({ipv4:i().object,ipv6:i().object}).isRequired,allowCustomerCreation:i().bool,allowWebspaceCreation:i().bool,subscriptionsLookUpParams:i().object,webspaceIpAddress:i().string,canManageMailSettings:i().bool,maxSysnameSize:i().number.isRequired,isWindows:i().bool.isRequired,techDomain:i().object.isRequired,settingsEnabled:i().bool,settingsCollapsed:i().bool,applicationWizardConfig:i().object,embeddedForms:i().array,extensionButtons:i().array,cancelLink:i().string,className:i().string,render:i().func,onProcess:i().func,onToggleDomainSettings:i().func,status:i().array},C.defaultProps={allowCustomerCreation:!1,allowWebspaceCreation:!1,subscriptionsLookUpParams:null,webspaceIpAddress:null,canManageMailSettings:!1,settingsEnabled:!1,settingsCollapsed:!1,embeddedForms:void 0,applicationWizardConfig:{},extensionButtons:[],cancelLink:null,className:void 0,render:void 0,onProcess:void 0,onToggleDomainSettings:void 0,status:void 0};const I=(e,n)=>(0,c.useCreateFormInDrawer)(C,"add-domain",e,n),A=C},1e3:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var a=t(244),s=t.n(a),i=t(90),o=t(1001);const r={id:s().string,dataUrl:s().string,operations:s().array,itemActions:s().object,columns:s().array,data:s().shape({data:s().array,state:s().object,pager:s().object,locale:s().object,additional:s().object,pathbar:s().any}),searchFilters:s().object,searchOveral:s().string,disabledSelectHint:s().string,isDisabledItem:s().func,onRedraw:s().func,emptyViewMode:s().oneOf(["all","items"]),emptyView:s().any},d={id:void 0,dataUrl:void 0,operations:void 0,itemActions:void 0,columns:void 0,data:void 0,searchFilters:void 0,searchOveral:void 0,disabledSelectHint:void 0,isDisabledItem:void 0,onRedraw:void 0,emptyViewMode:void 0,emptyView:void 0},l=(0,o.default)(i.List,Object.keys(r));l.displayName="JswList",l.propTypes=r,l.defaultProps=d;const c=l},1078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var a=t(242),s=t(90),i=t(772),o=t(244);const r=e=>{const[n,t]=(0,a.useState)(null);return(0,a.useEffect)((()=>{const n=new s.LookUp(e);return t(n),()=>{n.remove(),t(null)}}),[]),(0,a.useEffect)((()=>{n&&(e.disabled?n.disable():n.enable())}),[n,e.disabled]),n?(0,a.jsx)(i.default,{children:n}):null};
1r.propTypes={disabled:t.n(o)().bool},r.defaultProps={disabled:!1};const d=r},1001:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i});var a=t(242),s=t(90);const i=(e,n=[],t={})=>i=>{const o=(0,a.useRef)(),r=(0,a.useRef)(),[d,l]=Object.entries(i).reduce(((e,[t,a])=>(e[n.includes(t)?0:1][t]=a,e)),[{},{}]),c=n.map((e=>{const n=d[e];return t[e]?(r.current?.[t[e]](n),null):n}));return(0,a.useLayoutEffect)((()=>(r.current=new e(d),(0,s.render)(o.current,r.current),()=>{r.current.remove(),r.current=null})),[l.key,...c]),(0,a.jsx)("div",{ref:o,...l})}},1073:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var a=t(242),s=t(244),i=t(90),o=t(775),r=t(1e3),d=t(1074),l=t(1090);const c=i.Locale.getSection("admin.components.lists.domains"),m=i.Locale.getSection("components.icp-permit"),p=({pageUrl:e,data:n,searchFilters:s,dataAction:p,deleteAction:u,allowCreateDomain:g,allowManageSubdomain:b,allowManageDomainAliases:f,showDeleteButton:h,isHomonymSearchEnabled:x,showOwnerName:w,showExpirationDate:j,userId:v,icpPermitSupported:S,icpPermitLink:y})=>{const T=(0,a.useCallback)((({action:n}={})=>{const t=e.split("/");return n&&(t[3]=n),t.join("/")}),[e]),[k]=(0,d.useAddDomainFormInDrawer)(e,T({action:"add-domain"})),D=(0,o.useNavigateCallback)(),N=(0,a.useMemo)((()=>[g?{componentType:i.SmallButton,id:"buttonAddDomain",cls:"s-btn sb-new-domain btn-primary",title:c.lmsg("buttonAddDomain"),description:c.lmsg("hintAddDomain"),href:T({action:"add-domain"}),handler:D}:null,b?{componentType:i.SmallButton,id:"buttonAddSubDomain",cls:"s-btn sb-new-subdomain",title:c.lmsg("buttonAddSubdomain"),description:c.lmsg("hintAddSubdomain"),href:T({action:"add-subdomain"})}:null,f?{componentType:i.SmallButton,id:"buttonAddDomainAlias",cls:"s-btn sb-new-domain-alias",title:c.lmsg("buttonAddDomainAlias"),description:c.lmsg("hintAddDomainAlias"),href:T({action:"add-domain-alias"})}:null,g||b||f?{componentType:i.bar.Separator}:null,{componentType:i.list.AdditionalActions,title:c.lmsg("buttonChangeStatus"),operations:[{componentType:i.SmallButton,id:"buttonSuspendDomains",title:c.lmsg("buttonSuspendDomains"),description:c.lmsg("hintSuspendDomains"),addCls:"sb-suspend",cls:"sb-btn",handler(){(0,i.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/suspend/?redirect=${T()}`,skipConfirmation:!0})}},{componentType:i.SmallButton,id:"buttonDisableDomains",title:c.lmsg("buttonDisableDomains"),description:c.lmsg("hintDisableDomains"),addCls:"sb-turn-off",cls:"sb-btn",handler(){(0,i.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/disable/?redirect=${T()}`,skipConfirmation:!0})}},{componentType:i.SmallButton,id:"buttonActivateDomains",title:c.lmsg("buttonActivateDomains"),description:c.lmsg("hintActivateDomains"),addCls:"sb-activate",cls:"sb-btn",handler(){(0,i.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/activate/?redirect=${T()}`,skipConfirmation:!0})}}]},h?{componentType:i.bar.Separator}:null,h?{componentType:i.SmallButton,id:"buttonRemoveSite",title:i.Locale.getSection("components.buttons").lmsg("remove"),description:c.lmsg("hintRemove"),cls:"s-btn sb-remove-selected",handler(e){const n=(0,i.getComponent)("domains-list").getSelectedItems(),t=n.reduce(((e,{relatedDomains:n})=>e.concat(n)),[]).filter((e=>n.every((({domainDisplayName:n})=>n!==e))));(0,i.getComponent)("domains-list").execGroupOperation({url:T({action:u}),subtype:i.messageBox.SUBTYPE_DELETE,mouseEvent:e,text:c.formatMessage("removeConfirmation",{name:`<b>${(0,i.escapeHtml)(n[0]?.domainDisplayName)}</b>`,count:n.length}),description:t.length?c.lmsg("removeConfirmationSubscription",{domains:t.join(", ")}).replace(/\n/gm,"<br>"):"",isAjax:x,requestUrl:T({action:"search-homonym-data"}),loadingTitle:i.Locale.getSection("components.homonyms").lmsg("loading"),toJsonPayload:!0,submitHandler:async(e,n)=>{const{task:t,error:a}=await i.api.post((0,i.prepareUrl)("/domain/delete-async/"),{ids:n.ids});a?(0,i.addStatusMessage)("error",a):t&&"Jsw.Task.ProgressBar.Item"===t.componentType&&(0,i.getComponent)("asyncProgressBarWrapper").progressDialog(t)}})}}
1:null].filter(Boolean)),[g,f,b,T,u,x,D,h]),C=(0,a.useMemo)((()=>[i.list.COLUMN_SELECTION,{header:c.lmsg("domainName"),sortable:!0,dataIndex:"domainDisplayName",renderer(e){const n=e.overviewUrl?(0,i.createElement)("a",{href:(0,i.prepareUrl)(e.overviewUrl),onclick:D},(0,i.escapeHtml)(e.domainDisplayName)):(0,i.escapeHtml)(e.domainDisplayName);if(parseInt(e.domainStatus)){const a="suspend"===e.turnOffAction,s=a?c.lmsg("statusSuspended"):c.lmsg("statusDisabled"),o=t(a?1091:1071),r=a?"suspended":"disabled";return(0,i.createElement)(".b-indent",[(0,i.createElement)("span.b-indent-icon",(0,i.createElement)("span",[(0,i.createElement)("span.tooltipData",s),(0,i.createElement)("img",{src:o,alt:r,title:""})])),n,...(0,l.createSiteDescription)(e,c)])}return(0,i.createElement)(".",[n,...(0,l.createSiteDescription)(e,c)])}},S?{header:m.lmsg("icpPermit"),sortable:!0,dataIndex:"icpStatus",renderer({icpStatus:e,icpPermit:n}){const a=1==e?m.lmsg("icpStatusAllowedDescription"):m.lmsg("icpStatusNotAllowedDescription"),s=t(1==e?1092:1093);let o=n?(0,i.escapeHtml)(n):1==e?"":m.lmsg("icpStatusNotAllowed");return y&&(o=`<a href="${y}" target="_blank">${o}</a>`),`<span class="tooltipData">${a}</span><img src="${s}" alt="" /> ${o}`}}:null,{header:c.lmsg("hostingType"),sortable:!0,dataIndex:"hostingType",renderer(e){let n="";return"alias"===e.hostingType?n=`<img src="${t(1094)}"/> ${c.lmsg("aliasFor")} <a href="http://${(0,i.escapeHtml)(e.realDomainName)}" target="_blank">${(0,i.escapeHtml)(e.realDomainDisplayName)}</a>`:"vrt_hst"===e.hostingType?n=`<img src="${t(1095)}"/> ${c.lmsg(e.parentDomainId>0?"subdomainWebsite":"website")}`:"none"===e.hostingType?n=`<img src="${t(1096)}"/><em class="hint">${c.lmsg("noHosting")}</em>`:"frm_fwd"!==e.hostingType&&"std_fwd"!==e.hostingType||(n=`<img src="${t(1097)}"/> ${c.lmsg("forwardingTo")} <a href="${(0,i.escapeHtml)(e.forwardingUrl)}" target="_blank">${(0,i.escapeHtml)(e.forwardingDisplayUrl)}</a>`),n}},w?{header:c.lmsg("ownerName"),sortable:!0,dataIndex:"ownerName",renderer({ownerId:e,ownerType:n,ownerName:t,ownerCompanyName:a}){let s=null;return parseInt(e)!==v&&("client"===n?s=`/admin/customer/overview/id/${e}`:"reseller"===n&&(s=`/admin/reseller/overview/id/${e}`)),[s?(0,i.createElement)("a",{href:s,onclick:D},(0,i.escapeHtml)(t)):(0,i.escapeHtml)(t),a?`, ${(0,i.escapeHtml)(a)}`:null]}}:null,{header:c.lmsg("setupDate"),sortable:!0,dataIndex:"setupDate",renderer:({setupDateString:e})=>(0,i.escapeHtml)(e)},j?{header:c.lmsg("expirationDate"),sortable:!1,dataIndex:"expirationDate",renderer:({expirationDateString:e})=>e?(0,i.escapeHtml)(e):"—"}:null,{header:c.lmsg("diskUsage"),sortable:!0,dataIndex:"realSize",renderer:({diskUsage:e})=>(0,i.escapeHtml)(e)},{header:c.lmsg("traffic"),sortable:!0,dataIndex:"traffic"},{header:"",sortable:!1,renderer:({hostingType:e,siteUrl:n})=>"none"===e?"":(0,i.createElement)("a.s-btn.sb-publish",{href:n,target:"_blank"},(0,i.createElement)("span",c.lmsg("openSite")))},{header:"",sortable:!1,renderer({previewSupported:e,domainId:n}){if(!e)return"";const t=`/admin/domain/preview?domainId=${n}`;return(0,i.createElement)("a.s-btn.sb-view-site",{href:t,target:"_blank"},(0,i.createElement)("span",c.lmsg("previewSite")))}},{header:"",sortable:!1,renderer({manageUrl:e,ownerId:n,ownerType:t}){if(!e||parseInt(n)===v)return"";const a=`/admin${"reseller"===t?"/reseller":"/customer"}/login/id/${n}?pageUrl=${encodeURIComponent(e)}`;return(0,i.createElement)("a.s-btn.sb-login",{href:a},(0,i.createElement)("span",c.lmsg("reseller"===t?"manageInResellerPanel":"manageInCustomerPanel")))}}].filter(Boolean)),[y,S,D,j,w,v]);return(0,a.jsxs)(a.Fragment,{children:[k,(0,a.jsx)(r.default,{id:"domains-list",data:n,dataUrl:T({action:p}),searchFilters:s,searchOveral:"domainName",disabledSelectHint:c.lmsg("disabledSelectHint"),operations:N,columns:C})]})};p.propTypes={pageUrl:s.PropTypes.string.isRequired,data:r.default.propTypes.data.isRequired,searchFilters:r.default.propTypes.searchFilters.isRequired,dataAction:s.PropTypes.string.isRequired,deleteAction:s.PropTypes.string.isRequired,allowCreateDomain:s.PropTypes.bool,allowManageSubdomain:s.PropTypes.bool,allowManageDomainAliases:s.PropTypes.bool,showDeleteButton:s.PropTypes.bool,isHomonymSearchEnabled:s.PropTypes.bool,showOwnerName:s.PropTypes.bool,showExpirationDate:s.PropTypes.bool,userId:s.PropTypes.number,icpPermitSupported:s.PropTypes.bool,icpPermitLink:s.PropTypes.string},p.defaultProps={allowCreateDomain:!1,allowManageSubdomain:!1,allowManageDomainAliases:!1,showDeleteButton:!1,isHomonymSearchEnabled:!1,showOwnerName:!1,showExpirationDate:!1,userId:void 0,icpPermitSupported:!1,icpPermitLink:void 0};const u=p},1072:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var a=t(90),s=t(739),i=t(1073),o=t(242);const r=a.Locale.getTranslate("components.pages.domains"),d=(0,s.withPageLayout)((e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:(0,o.jsx)(r,{content:"hint"})}),(0,o.jsx)(i.default,{dataAction:"list-data",deleteAction:"delete",showOwnerName:!0,showExpirationDate:!0,pageUrl:"/admin/domain/list",...e})]})))},1090:(e,n,t)=>{"use strict";t.r(n),t.d(n,{createDescription:()=>s,createSiteDescription:()=>i});var a=t(90);const s=(e,n,t)=>{return(0,a.createElement)(e,[(t?`${t}: `:"")+(0,a.escapeHtml)((s=n,s.length<50?s:`${s.slice(0,s.length-3)}...`)),(0,a.createElement)("span.tooltipData",(0,a.escapeHtml)(n))]);var s},i=({adminDescription:e,resellerDescription:n,ownerDescription:t,hideResellerTitleDescription:a,hideOwnerTitleDescription:i},o,r="hint")=>[e?s(`.${r}`,e):"",n?s(`.${r}`,n,!a&&o.lmsg("resellerDescription")):"",t?s(`.${r}`,t,!i&&o.lmsg("ownerDescription")):""]},1086:(e,n,t)=>{"use strict";t.r(n),t.d(n,{generateUserName:()=>i,randomString:()=>a});const a=()=>Math.random().toString(36).slice(2),s=()=>`_${a()}`,i=({domainName:e,maxUserNameSize:n,isTechDomain:t,isWindows:a,postfix:i=s()})=>{let o=e;const r=!a,d=!/^[a-zA-Z0-9_.\-]+$/.test(e),l=/^[0-9]+/.test(e);
1if("string"!=typeof e||"string"!=typeof i)return"";if(d)return"";if(r&&l)return"";if("number"!=typeof n&&void 0!==n)return"";if(n){if(i.length>n)return"";n-=i.length}return t&&(o=o.split(".")[0]),o=o.toLowerCase().substr(0,n)+i,a&&(o=o.replace(/\.+$/,"")),o}},1093:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/att-tr.png?f00bf7056f997d02b1565fff15ed7ab7"},1094:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/dns.png?d10cfc4afe5c5c040eaf99c3ea14429d"},1097:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/forward-to-dom.png?761778de5722f4bb1f3611d27968cb0f"},1071:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/off.png?84d64d1bd3267c21795505b7daa43800"},1096:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/spacer.png?4710d0e07ee1a4d7ebdb1972701168fa"},1092:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-ok.png?6d52f91c87cbdc73b4ef0b5ded92c441"},1091:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-suspended.png?7968ea094f0aa3fdced5d59b0c7f3196"},1095:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/website.png?ac6aa9eaf06048cbd5799a61daad9766"},1083:e=>{e.exports=Jsw.skinUrl+"/images/code.svg?e9fb9feb605b8cf334414f688a603918"},1084:e=>{e.exports=Jsw.skinUrl+"/images/upload-files.svg?e6091d3474a27a3eafe63b2d09b1b943"},1085:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWebspaceIpAddress"},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:"domain"},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:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ipAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicIpAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ipAddress"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:217}};n.loc.source={body:"query GetWebspaceIpAddress($id: ID!) {\r\n domain: node(id: $id) {\r\n ... on Domain {\r\n ipAddresses {\r\n publicIpAddress\r\n ipAddress\r\n }\r\n }\r\n }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.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 a={};function s(e,n){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==n)return a}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),a[e.name.value]=n}})),e.exports=n,e.exports.GetWebspaceIpAddress=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var i=a[n]||new Set,o=new Set,r=new Set;for(i.forEach((function(e){r.add(e)}));r.size>0;){var d=r;r=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var a=s(e,n);a&&t.definitions.push(a)})),t}(n,"GetWebspaceIpAddress")}}]); 2//# sourceMappingURL=list.js.map?35b1127b7912a88aec01
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.