PageSourceSearch

https://erasmuscentro.org/cp/javascript/views/admin/reseller/domains.js?03dd65d805b9d07b0885

js erasmuscentro.org collected 2026-10-08 11:30:17 UTC 51,074 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/reseller/domains"],{976:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>P,useAddDomainFormInDrawer:()=>D});var s=t(231),i=t(233),o=t.n(i),a=t(389),r=t(712),l=t(85),d=t(232),c=t(752),m=t(977),p=t(880),u=t(978),b=t(980),g=t(985),h=t.n(g),x=t(986);const f=l.Locale.getSection("smb.components.forms.web.add-domain"),j=l.Locale.getTranslate("smb.components.forms.web.add-domain"),v=l.Locale.getTranslate("smb.components.forms.domain-info-section"),w=l.Locale.getTranslate("components.forms.ip-addresses-selector"),S=l.Locale.getTranslate("smb.components.forms.web._shared"),y=l.Locale.getTranslate("smb.components.forms.web.seo-settings"),k=l.Locale.getTranslate("admin.components.forms.admin-panel.form.contact-info"),T=l.Locale.getTranslate("components.buttons"),C=l.Locale.getTranslate("admin.components.forms.admin-panel.form.login-info"),N=({id:e,webspaceIpAddresses:n,allowCustomerCreation:i,allowWebspaceCreation:o,subscriptionsLookUpParams:c,canManageMailSettings:g,maxSysnameSize:N,isWindows:D,techDomain:P,settingsEnabled:I,settingsCollapsed:A,applicationWizardConfig:E,embeddedForms:F,applicationWizardEmbeddedForms:R,cancelLink:_,className:$,render:q,onProcess:H,onStepPropsChange:L,onToggleDomainSettings:U,status:B,...O})=>{const V=(0,a.useApolloClient)(),z=(0,r.useNavigate)(),[M,J]=(0,s.useState)(O.values),[W,Y]=(0,s.useState)(Boolean(O.values.hostingSettings.root)),[G,Z]=(0,s.useState)(!O.values.domainInfo),[Q,K]=(0,s.useState)(O.webspaceIpAddress),[X,ee]=(0,s.useState)(n),[ne,te]=(0,s.useState)(null),se=n;(0,s.useEffect)((()=>{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)),J((0,d.setIn)(M,"hostingSettings[root]",e))}),[M.domainName.name]),(0,s.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}}})=>{K(e[0].ipAddress)}))}),[M.domainName.webspace]);const ie=(e,n)=>{switch(J((t=>{if(t=(0,d.setIn)(t,e,n),"domainName[name]"===e&&!G){const e=(0,x.generateUserName)({domainName:n,maxUserNameSize:N,isTechDomain:t.domainName.type===m.TYPE_TECH,isWindows:D});t=(0,d.setIn)(t,"domainInfo[userName]",e||O.values.domainInfo.userName)}return t})),["domainInfo[ipSelector][ipv4]","domainInfo[ipSelector][ipv6]","domainInfo[userName]","domainInfo[password]"].includes(e)&&l.UAT.dispatchAction("CUSTOM-VALUE",{name:e}),e){case"hostingSettings[root]":Y(!0);break;case"domainInfo[userName]":Z(!0);break;case"domainName[customer]":ee(n.ipAddresses?n.ipAddresses:se)}},oe="1"===M.domainName.assignToCustomer||void 0!==M.domainName.targetWebspace||M.domainName.webspace&&"new"===M.domainName.webspace.id,ae=oe||!Q?Object.keys(X).map((e=>{const n=M.domainInfo.ipSelector[e];return"none"===n?null:X[e][n].split(" ")[0]})).filter(Boolean)[0]:Q;(0,s.useEffect)((()=>{E.enabled||L?.({sideBanner:t(987),sideBannerContainer:{background:"#faf5f7"}})}),[E.enabled]);const re=E.enabled?b.default:p.default;return(0,s.jsxs)(re,{vertical:!0,id:e,className:$,render:q,values:M,onFieldChange:ie,onSubmit:e=>(e.domainName.customer&&(e=(0,d.setIn)(e,"domainName[customer]",e.domainName.customer.id)),e.domainName.webspace&&(e=(0,d.setIn)(e,"domainName[webspace]",e.domainName.webspace.id)),e),onLongTask:e=>{te(e),H?.(e),L?.({sideBanner:t(989),sideBannerContainer:{background:"#e0f3f9"}})},onStepChange:e=>{ne||L?.("chooseApplicationStep"===e?{sideBanner:t(988),sideBannerContainer:{background:"#f3f4f5"}}:{sideBanner:t(987),sideBannerContainer:{background:"#faf5f7"}})},embeddedForms:F,wizardConfig:E,wizardEmbeddedForms:R,submitButton:{id:"btn-send",children:(0,s.jsx)(j,{content:"buttonAddDomain"})},applyButton:!1,cancelButton:!!_&&{id:"btn-cancel",children:(0,s.jsx)(T,{content:"cancel"}),onClick:()=>{z(_)}},children:[(B||[]).filter((({status:e})=>"warning"===e)).map((({content:e})=>(0,s.jsx)(d.StatusMessage,{intent:"warning",children:e},e))),(0,s.jsx)(m.default,{isEnabled:void 0!==M.domainName.type,isDefault:M.domainName.type===m.TYPE_TECH,typeName:"domainName[type]",name:"domainName[name]",ipAddress:ae,onTypeChange:e=>ie("domainName[type]",e),onDomainNameChange:e=>ie("domainName[name]",e),...P}),void 0===M.domainName.assignToCustomer?null:(0,s.jsxs)(d.Section,{children:[(0,s.jsx)(d.FormFieldCheckbox,{name:"domainName[assignToCustomer]",label:(0,s.jsx)(j,{content:"assignToCustomer"}),checkedValue:"1",uncheckedValue:"0"}),"1"===M.domainName.assignToCustomer?(0,s.jsxs)(d.Section,{collapsible:!0,children:[void 0===M.domainName.customer?null:(0,s.jsx)(u.default,{name:"domainName[customer]",label:(0,s.jsx)(j,{content:"customer"}),dataUrl:"/admin/customer/look-up",newItemValue:i?{id:"new",title:f.lmsg("createNewCustomer")}:null,locale:{label:f.lmsg("selectExistingCustomer")},required:!0}),void 0===M.domainName.customer||"new"===M.domainName.customer?.id?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.FormFieldText,{name:"customerInfo[customerContactInfo][contactName]",label:(0,s.jsx)(k,{content:"contactName"}),required:!0}),(0,s.jsx)(d.FormFieldText,{name:"customerInfo[customerContactInfo][email]",label:(0,s.jsx)(k,{content:"email"}),required:!0}),(0,s.jsx)("br",{}),(0,s.jsx)(d.Heading,{level:"4",children:(0,s.jsx)(j,{content:"customerLoginInfoHint"})}),(0,s.jsx)(d.FormFieldText,{name:"customerInfo[customerLoginInfo][userName]",label:(0,s.jsx)(C,{content:"userName"}),required:!0,autoComplete:"off"}),(0,s.jsx)(d.FormFieldPassword,{name:"customerInfo[customerLoginInfo][password]",label:(0,s.jsx)(C,{content:"password"}),required:!0,autoComplete:"new-password"}),(0,s.jsx)(d.FormFieldCheckbox,{name:"customerInfo[customerLoginInfo][isActivationRequired]",label:(0,s.jsx)(C,{content:"emailActivation"}),description:(0,s.jsx)(C,{content:"emailActivationHint"}),checkedValue:"1",uncheckedValue:"0"})]}):null]}):null]}),void 0===M.domainName.webspace||"1"===M.domainName.assignToCustomer?null:(0,s.jsx)(d.Section,{children:(0,s.jsx)(u.default,{name:"domainName[webspace]",label:(0,s.jsx)(j,{content:"target"}),dataUrl:"/smb/web/subscription-look-up",newItemValue:o?{id:"new",title:f.lmsg("createNewTarget")}:null,locale:{label:f.lmsg("selectExistingTarget")},lookUpParams:c,required:!0})}),oe?I?(0,s.jsxs)(d.Section,{id:"domainInfo",title:(0,s.jsx)(j,{content:"webspaceLegend"}),collapsible:!0,collapsed:A,onToggle:U,children:[Object.keys(X).map((e=>(0,s.jsx)(d.FormFieldSelect,{name:`domainInfo[ipSelector][${e}]`,label:(0,s.jsx)(w,{content:Object.keys(X).length>1?`${e}Address`:"ipAddress"}),required:!0,children:Object.keys(X[e]).map((n=>(0,s.jsx)(d.SelectOption,{value:n,children:X[e][n]},n)))},e))),(0,s.jsx)("br",{}),(0,s.jsx)(d.Heading,{level:"4",children:(0,s.jsx)(j,{content:"credentials"})}),(0,s.jsx)(d.Text,{component:"p",intent:"muted",children:(0,s.jsx)(j,{content:D?"credentialsHintWin":"credentialsHint"})}),(0,s.jsx)(d.FormFieldText,{name:"domainInfo[userName]",label:(0,s.jsx)(v,{c
1ontent:"userName"}),required:!0}),(0,s.jsx)(d.FormFieldPassword,{name:"domainInfo[password]",label:(0,s.jsx)(v,{content:"password"}),required:!0})]}):null:(0,s.jsxs)(d.Section,{children:[(0,s.jsxs)(d.FormFieldSelect,{name:"hostingType[hosting]",label:(0,s.jsx)(j,{content:"hostingManagementOptions"}),children:[(0,s.jsx)(d.SelectOption,{value:"hosting",label:"hosting",children:(0,s.jsx)(j,{content:"websiteHosting"})}),(0,s.jsx)(d.SelectOption,{value:"forwarding",label:"forwarding",children:(0,s.jsx)(j,{content:"websiteForwarding"})}),(0,s.jsx)(d.SelectOption,{value:"none",label:"none",children:(0,s.jsx)(j,{content:"websiteNoHosting"})})]}),void 0===M.dnsSettings?null:(0,s.jsx)(d.FormFieldCheckbox,{name:"dnsSettings[dns]",label:(0,s.jsx)(j,{content:"dns"}),description:(0,s.jsx)(j,{content:"dnsHint"}),disabled:M.domainName.type===m.TYPE_TECH,checkedValue:M.domainName.type===m.TYPE_TECH?null:"master",uncheckedValue:M.domainName.type===m.TYPE_TECH?null:"none"}),void 0===M.mailSettings?null:(0,s.jsx)(d.FormFieldCheckbox,{name:"mailSettings[mail]",label:(0,s.jsx)(j,{content:"mail"}),description:g?(0,s.jsx)(j,{content:"mailHint"}):(0,s.jsx)(j,{content:"mailHintNoPermission"}),disabled:M.domainName.type===m.TYPE_TECH,checkedValue:M.domainName.type===m.TYPE_TECH?null:"1",uncheckedValue:M.domainName.type===m.TYPE_TECH?null:"0"}),"hosting"===M.hostingType.hosting?(0,s.jsxs)(d.Section,{id:"hostingSettings",title:(0,s.jsx)(j,{content:"hostingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,s.jsx)(d.FormField,{name:"hostingSettings[root]",label:(0,s.jsx)(S,{content:"documentRoot"}),description:(0,s.jsx)(S,{content:"documentRootHint"}),required:!0,children:({getId:e,getName:n,getValue:t,setValue:i})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Icon,{name:"home"})," / ",(0,s.jsx)(d.Input,{id:e(),name:n(),value:t(),onChange:({target:e})=>i(e.value)})]})}),(0,s.jsx)(d.FormFieldRadioButtons,{name:"hostingSettings[seoRedirectDirection]",label:(0,s.jsx)(y,{content:"seoRedirectDirection"}),description:(0,s.jsx)(y,{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,s.jsx)(y,{content:"seoRedirectDirectionNone"})}]})]}):null,"forwarding"===M.hostingType.hosting?(0,s.jsxs)(d.Section,{id:"forwardingSettings",title:(0,s.jsx)(S,{content:"forwardingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,s.jsx)(d.FormFieldText,{name:"forwardingSettings[forwardTo]",label:(0,s.jsx)(S,{content:"forwardDestination"}),description:(0,s.jsx)(S,{content:"forwardDestinationHint"}),required:!0}),(0,s.jsx)(d.FormFieldRadioButtons,{name:"forwardingSettings[forwardingType]",label:(0,s.jsx)(S,{content:"forwardingTypeOptions"}),options:[{value:"std_fwd301",label:(0,s.jsx)(S,{content:"forwardingHttpCode301"}),description:(0,s.jsx)(S,{content:"forwardingHttpCode301Hint"})},{value:"std_fwd302",label:(0,s.jsx)(S,{content:"forwardingHttpCode302"}),description:(0,s.jsx)(S,{content:"forwardingHttpCode302Hint"})},{value:"frm_fwd",label:(0,s.jsx)(S,{content:"forwardingFrame"}),description:(0,s.jsx)(S,{content:"forwardingFrameHint"})}]})]}):null]})]})};N.propTypes={id:o().string.isRequired,values:o().object.isRequired,webspaceIpAddresses:o().shape({ipv4:o().object,ipv6:o().object}).isRequired,allowCustomerCreation:o().bool,allowWebspaceCreation:o().bool,subscriptionsLookUpParams:o().object,webspaceIpAddress:o().string,canManageMailSettings:o().bool,maxSysnameSize:o().number.isRequired,isWindows:o().bool.isRequired,techDomain:o().object.isRequired,settingsEnabled:o().bool,settingsCollapsed:o().bool,applicationWizardConfig:o().object,cancelLink:o().string,embeddedForms:o().array,applicationWizardEmbeddedForms:o().array,className:o().string,render:
1o().func,onProcess:o().func,onStepPropsChange:o().func,onToggleDomainSettings:o().func,status:o().array},N.defaultProps={allowCustomerCreation:!1,allowWebspaceCreation:!1,subscriptionsLookUpParams:null,webspaceIpAddress:null,canManageMailSettings:!1,settingsEnabled:!1,settingsCollapsed:!1,applicationWizardConfig:{},cancelLink:null,embeddedForms:void 0,applicationWizardEmbeddedForms:void 0,className:void 0,render:void 0,onProcess:void 0,onStepPropsChange:void 0,onToggleDomainSettings:void 0,status:void 0};const D=(e,n)=>(0,c.useCreateFormInDrawer)(N,"add-domain",e,n),P=N},924:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var s=t(233),i=t.n(s),o=t(85),a=t(925);const r={id:i().string,dataUrl:i().string,operations:i().array,itemActions:i().object,columns:i().array,data:i().shape({data:i().array,state:i().object,pager:i().object,locale:i().object,additional:i().object,pathbar:i().any}),searchFilters:i().object,searchOveral:i().string,disabledSelectHint:i().string,isDisabledItem:i().func,onRedraw:i().func,emptyViewMode:i().oneOf(["all","items"]),emptyView:i().any},l={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},d=(0,a.default)(o.List,Object.keys(r));d.displayName="JswList",d.propTypes=r,d.defaultProps=l;const c=d},928:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var s=t(233),i=t.n(s),o=t(232),a=t(85),r=t(518),l=t(231);const d=({items:e})=>e&&e.length>1?(0,l.jsx)(o.Tabs,{active:e.findIndex((({containerCls:e})=>"active"===e))+1,children:e.map((({title:e,href:n},t)=>(0,l.jsx)(o.Tab,{title:e,component:r.default,to:(0,a.prepareUrl)(n)},t)))}):null;d.propTypes={items:i().arrayOf(i().shape({title:i().string.isRequired,href:i().string.isRequired,containerCls:i().string}))},d.defaultProps={items:void 0};const c=d},925:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>o});var s=t(231),i=t(85);const o=(e,n=[],t={})=>o=>{const a=(0,s.useRef)(),r=(0,s.useRef)(),[l,d]=Object.entries(o).reduce(((e,[t,s])=>(e[n.includes(t)?0:1][t]=s,e)),[{},{}]),c=n.map((e=>{const n=l[e];return t[e]?(r.current?.[t[e]](n),null):n}));return(0,s.useLayoutEffect)((()=>(r.current=new e(l),(0,i.render)(a.current,r.current),()=>{r.current.remove(),r.current=null})),[d.key,...c]),(0,s.jsx)("div",{ref:a,...d})}},975:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var s=t(231),i=t(233),o=t(85),a=t(518),r=t(924),l=t(976),d=t(990);const c=o.Locale.getSection("admin.components.lists.domains"),m=o.Locale.getSection("components.icp-permit"),p=({pageUrl:e,data:n,searchFilters:i,dataAction:p,deleteAction:u,allowCreateDomain:b,allowManageSubdomain:g,allowManageDomainAliases:h,showDeleteButton:x,isHomonymSearchEnabled:f,showOwnerName:j,showExpirationDate:v,userId:w,icpPermitSupported:S,icpPermitLink:y})=>{const k=(0,s.useCallback)((({action:n}={})=>{const t=e.split("/");return n&&(t[3]=n),t.join("/")}),[e]),[T]=(0,l.useAddDomainFormInDrawer)(e,k({action:"add-domain"})),C=(0,a.useNavigateCallback)(),N=(0,s.useMemo)((()=>[b?{componentType:o.SmallButton,id:"buttonAddDomain",cls:"s-btn sb-new-domain btn-primary",title:c.lmsg("buttonAddDomain"),description:c.lmsg("hintAddDomain"),href:k({action:"add-domain"}),handler:C}:null,g?{componentType:o.SmallButton,id:"buttonAddSubDomain",cls:"s-btn sb-new-subdomain",title:c.lmsg("buttonAddSubdomain"),description:c.lmsg("hintAddSubdomain"),href:k({action:"add-subdomain"})}:null,h?{componentType:o.SmallButton,id:"buttonAddDomainAlias",cls:"s-btn sb-new-domain-alias",title:c.lmsg("buttonAddDomainAlias"),description:c.lmsg("hintAddDomainAlias"),href:k({action:"add-domain-alias"})}:null,b||g||h?{componentType:o.bar.Separator}:null,{componentType:o.list.AdditionalActions,title:c.lmsg("buttonChangeStatus"),operations:[{componentType:o.SmallButton,id:"buttonSuspendDomains",title:c.lmsg("buttonSuspendDomains"),description:c.lmsg("hintSuspendDomains"),addCls:"sb-suspend",cls:"sb-btn",handler(){(0,o.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/suspend/?redirect=${k()}
1`,skipConfirmation:!0})}},{componentType:o.SmallButton,id:"buttonDisableDomains",title:c.lmsg("buttonDisableDomains"),description:c.lmsg("hintDisableDomains"),addCls:"sb-turn-off",cls:"sb-btn",handler(){(0,o.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/disable/?redirect=${k()}`,skipConfirmation:!0})}},{componentType:o.SmallButton,id:"buttonActivateDomains",title:c.lmsg("buttonActivateDomains"),description:c.lmsg("hintActivateDomains"),addCls:"sb-activate",cls:"sb-btn",handler(){(0,o.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/activate/?redirect=${k()}`,skipConfirmation:!0})}}]},x?{componentType:o.bar.Separator}:null,x?{componentType:o.SmallButton,id:"buttonRemoveSite",title:o.Locale.getSection("components.buttons").lmsg("remove"),description:c.lmsg("hintRemove"),cls:"s-btn sb-remove-selected",handler(e){const n=(0,o.getComponent)("domains-list").getSelectedItems(),t=n.reduce(((e,{relatedDomains:n})=>e.concat(n)),[]).filter((e=>n.every((({domainDisplayName:n})=>n!==e))));(0,o.getComponent)("domains-list").execGroupOperation({url:k({action:u}),subtype:o.messageBox.SUBTYPE_DELETE,mouseEvent:e,text:c.formatMessage("removeConfirmation",{name:`<b>${(0,o.escapeHtml)(n[0]?.domainDisplayName)}</b>`,count:n.length}),description:t.length?c.lmsg("removeConfirmationSubscription",{domains:t.join(", ")}).replace(/\n/gm,"<br>"):"",isAjax:f,requestUrl:k({action:"search-homonym-data"}),loadingTitle:o.Locale.getSection("components.homonyms").lmsg("loading")})}}:null].filter(Boolean)),[b,h,g,k,u,f,C,x]),D=(0,s.useMemo)((()=>[o.list.COLUMN_SELECTION,{header:c.lmsg("domainName"),sortable:!0,dataIndex:"domainDisplayName",renderer(e){const n=e.overviewUrl?(0,o.createElement)("a",{href:(0,o.prepareUrl)(e.overviewUrl),onclick:C},(0,o.escapeHtml)(e.domainDisplayName)):(0,o.escapeHtml)(e.domainDisplayName);if(parseInt(e.domainStatus)){const s="suspend"===e.turnOffAction,i=s?c.lmsg("statusSuspended"):c.lmsg("statusDisabled"),a=t(s?992:973),r=s?"suspended":"disabled";return(0,o.createElement)(".b-indent",[(0,o.createElement)("span.b-indent-icon",(0,o.createElement)("span",[(0,o.createElement)("span.tooltipData",i),(0,o.createElement)("img",{src:a,alt:r,title:""})])),n,...(0,d.default)(e,c)])}return(0,o.createElement)(".",[n,...(0,d.default)(e,c)])}},S?{header:m.lmsg("icpPermit"),sortable:!0,dataIndex:"icpStatus",renderer({icpStatus:e,icpPermit:n}){const s=1==e?m.lmsg("icpStatusAllowedDescription"):m.lmsg("icpStatusNotAllowedDescription"),i=t(1==e?993:994);let a=n?(0,o.escapeHtml)(n):1==e?"":m.lmsg("icpStatusNotAllowed");return y&&(a=`<a href="${y}" target="_blank">${a}</a>`),`<span class="tooltipData">${s}</span><img src="${i}" alt="" /> ${a}`}}:null,{header:c.lmsg("hostingType"),sortable:!0,dataIndex:"hostingType",renderer(e){let n="";return"alias"===e.hostingType?n=`<img src="${t(995)}"/> ${c.lmsg("aliasFor")} <a href="http://${(0,o.escapeHtml)(e.realDomainName)}" target="_blank">${(0,o.escapeHtml)(e.realDomainDisplayName)}</a>`:"vrt_hst"===e.hostingType?n=`<img src="${t(996)}"/> ${c.lmsg(e.parentDomainId>0?"subdomainWebsite":"website")}`:"none"===e.hostingType?n=`<img src="${t(997)}"/><em class="hint">${c.lmsg("noHosting")}</em>`:"frm_fwd"!==e.hostingType&&"std_fwd"!==e.hostingType||(n=`<img src="${t(998)}"/> ${c.lmsg("forwardingTo")} <a href="${(0,o.escapeHtml)(e.forwardingUrl)}" target="_blank">${(0,o.escapeHtml)(e.forwardingDisplayUrl)}</a>`),n}},j?{header:c.lmsg("ownerName"),sortable:!0,dataIndex:"ownerName",renderer({ownerId:e,ownerType:n,ownerName:t,ownerCompanyName:s}){let i=null;return parseInt(e)!==w&&("client"===n?i=`/admin/customer/overview/id/${e}`:"reseller"===n&&(i=`/admin/reseller/overview/id/${e}`)),[i?(0,o.createElement)("a",{href:i,onclick:C},(0,o.escapeHtml)(t)):(0,o.escapeHtml)(t),s?`, ${(0,o.escapeHtml)(s)}`:null]}}:null,{header:c.lmsg("setupDate"),sortable:!0,dataIndex:"setupDate",renderer:({setupDateString:e})=>(0,o.escapeHtml)(e)},v?{header:c.lmsg("expirationDate"),sortable:!1,dataIndex:"expirationDate",renderer:({expirationDateString:e})=>e?(0,o.escapeHtml)(e):"&mdash;"}:null,{header:c.lmsg("diskUsage"),sortable:!0,dataIndex:"realSize",renderer:({diskUsage:e})=>(0,o.escapeHtml)(e)},{header:c.lmsg("traffic"),sortable:!0,dataIndex:"traffic"},{header:"",sortable:!1,renderer:({hostingType:e,siteUrl:n})=>"none"===e?"":(0,o.createElement)("a.s-btn.sb-publish",{href:n,target:"_blank"},(0,o.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,o.createElement)("a.s-btn.sb-view-site",{href:t,target:"_blank"},(0,o.createElement)("span",c.lmsg("previewSite")))}},{header:"",sortable:!1,renderer({manageUrl:e,ownerId:n,ownerType:t}){if(!e||parseInt(n)===w)return"";const s=`/admin${"reseller"===t?"/reseller":"/customer"}/login/id/${n}?pageUrl=${encodeURIComponent(e)}`;return(0,o.createElement)("a.s-btn.sb-login",{href:s},(0,o.createElement)("span",c.lmsg("reseller"===t?"manageInResellerPanel":"manageInCustomerPanel")))}}
1].filter(Boolean)),[y,S,C,v,j,w]);return(0,s.jsxs)(s.Fragment,{children:[T,(0,s.jsx)(r.default,{id:"domains-list",data:n,dataUrl:k({action:p}),searchFilters:i,searchOveral:"domainName",disabledSelectHint:c.lmsg("disabledSelectHint"),operations:N,columns:D})]})};p.propTypes={pageUrl:i.PropTypes.string.isRequired,data:r.default.propTypes.data.isRequired,searchFilters:r.default.propTypes.searchFilters.isRequired,dataAction:i.PropTypes.string.isRequired,deleteAction:i.PropTypes.string.isRequired,allowCreateDomain:i.PropTypes.bool,allowManageSubdomain:i.PropTypes.bool,allowManageDomainAliases:i.PropTypes.bool,showDeleteButton:i.PropTypes.bool,isHomonymSearchEnabled:i.PropTypes.bool,showOwnerName:i.PropTypes.bool,showExpirationDate:i.PropTypes.bool,userId:i.PropTypes.number,icpPermitSupported:i.PropTypes.bool,icpPermitLink:i.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},1031:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var s=t(85),i=t(928),o=t(790),a=t(975),r=t(1027),l=t(233),d=t.n(l),c=t(231);const m=s.Locale.getTranslate("components.pages.reseller-domains"),p=({tabs:e,id:n,...t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.default,{items:e}),(0,c.jsx)("p",{children:(0,c.jsx)(m,{content:"hint"})}),(0,c.jsx)(a.default,{dataAction:"domains-list-data",deleteAction:"delete-domain",pageUrl:`/admin/reseller/domains/id/${n}`,...t})]});p.propTypes={tabs:i.default.propTypes.items.isRequired,id:d().number.isRequired};const u=(0,o.withPageLayout)(p,(({sidebarProps:e})=>({secondary:(0,c.jsx)(r.default,{...e})})))},1027:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>h});var s=t(233),i=t.n(s),o=t(232),a=t(85),r=t(518),l=t(1005),d=t(1006),c=t(231);const m=a.Locale.getSection("admin.components.reseller-sidebar"),p=a.Locale.getTranslate("admin.components.reseller-sidebar"),u=a.Locale.getTranslate("admin.components.elements.status"),b=a.Locale.getTranslate("admin.components.lists.resellers"),g=({id:e,login:n,contactName:s,companyName:i,emailAddress:g,description:h,setupDate:x,isActive:f,ownCustomers:j,ownPlans:v,ownSubscriptions:w,isIisAppPoolsPolicyMixed:S,subscription:y})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(l.default,{id:"panel-reseller-overviewSection",title:(0,c.jsx)(p,{content:"overviewPanelTitle"}),children:[(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"contactName"}),":"]})," ",(0,c.jsx)("b",{children:s})]}),i?(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"companyName"}),":"]})," ",(0,c.jsx)("b",{children:i})]}):null,g?(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"emailAddress"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)("a",{href:`mailto:${g}`,children:g})})]}):null,(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"setupDate"}),":"]})," ",(0,c.jsx)("b",{children:x})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"status"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(o.Status,{intent:f?"success":"danger",children:f?(0,c.jsx)(u,{content:"onStateReseller"}):(0,c.jsx)(u,{content:"offStateReseller"})})})," ",(0,c.jsx)(o.AuxiliaryActions,{children:(0,c.jsx)(o.Tooltip,{title:f?(0,c.jsx)(p,{content:"buttonSuspendHint"}):(0,c.jsx)(p,{content:"buttonActivateHint"}),children:(0,c.jsx)("a",{id:"buttonToggle",onClick:()=>{(0,a.redirectPost)(`/admin/reseller/toggle/id/${e}`)},children:f?(0,c.jsx)(p,{content:"buttonSuspend"}):(0,c.jsx)(p,{content:"buttonActivate"})})})})]}),(0,c.jsx)(d.default,{type:"reseller",id:e,name:s,descriptions:{owner:h}}),(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonEditContactHint"}),children:(0,c.jsx)(o.Action,{id:"buttonEditContactInfo",icon:{src:t(1008)},href:`/admin/reseller/personal-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonEditContact"})})})})]}),(0,c.jsxs)(l.default,{id:"panel-reseller-resourcesSection",title:(0,c.jsx)(p,{content:"resourcesPanelTitle"}),children:[(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"ownCustomers"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(r.default,{to:`/admin/customer/list/?force-show-search=true&searchFilter[ownership][searchText]=${encodeURIComponent(n)}`,children:j})})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"ownPlans"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(r.default,{to:`/admin/customer-service-plan/list/?force-show-search=true&searchFilter[ownership][searchText]=${encodeURIComponent(n)}`,children:v})})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"ownSubscriptions"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(r.default,{to:`/admin/subscription/list?force-show-search=true&searchFilter[subscriberName][searchText]=${encodeURIComponent(`login:${n}`)}`,children:w})})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"plan"}),":"]})," ",(0,c.jsx)("b",{children:y?(0,c.jsxs)(c.Fragment,{children:[y.name,y.isLocked||!y.isSynchronized?(0,c.jsxs)(c.Fragment,{children:[" (",(0,c.jsx)(o.Tooltip,{title:y.isLocked?(0,c.jsx)(b,{content:"statusLocked"}):(0,c.jsx)(b,{content:"statusUnsynchronized"}),children:(0,c.jsx)(o.Status,{icon:{src:y.isLocked?t(1021):t(1022)},children:y.isLocked?(0,c.jsx)(u,{content:"lockedStateClient"}):(0,c.jsx)(u,{content:"unsynchronizedStateClient"})})}),")"]}):null]}):(0,c.jsx)(p,{content:"planCustom"})})," ",(0,c.jsxs)(o.AuxiliaryActions,{children:[(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonChangeResellerSubscriptionHint"}),children:(0,c.jsx)(r.default,{id:"buttonChangeResellerSubscription",to:`/admin/reseller/change-reseller-subscription/id/${e}`,children:(0,c.jsx)(p,{content:"buttonChangeResellerSubscription"})})}),(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonManuallyEditSubscriptionParametersHint"}),children:(0,c.jsx)(r.default,{id:"buttonEditSubscriptionParameters",to:`/admin/reseller/cu
1stomize-subscription/id/${e}`,children:(0,c.jsx)(p,{content:"buttonManuallyEditSubscriptionParameters"})})}),!y||!y.isLocked&&y.isSynchronized?null:(0,c.jsx)(o.Tooltip,{title:y.isLocked?(0,c.jsx)(p,{content:"buttonUnlockAndSyncHint"}):(0,c.jsx)(p,{content:"buttonSyncHint"}),children:(0,c.jsx)("a",{id:"buttonUnlockAndSync",href:`/admin/reseller/synchronize/id/${e}`,"data-method":"post",children:y.isLocked?(0,c.jsx)(p,{content:"buttonUnlockAndSync"}):(0,c.jsx)(p,{content:"buttonSync"})})})]})]}),(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonMoreStatsHint"}),children:(0,c.jsx)(o.Action,{id:"buttonMoreStats",icon:{src:t(910)},href:`/admin/reseller/stats/id/${e}`,children:(0,c.jsx)(p,{content:"buttonMoreStats"})})})})]}),(0,c.jsxs)(l.default,{id:"panel-reseller-loginSection",title:(0,c.jsx)(p,{content:"loginPanelTitle"}),children:[(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"username"}),":"]})," ",(0,c.jsx)("b",{children:n})]}),f?(0,c.jsx)("p",{children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonLoginHint"}),children:(0,c.jsx)(o.Action,{id:"buttonLogin",icon:{src:t(1028)},href:`/admin/reseller/login/id/${e}`,children:(0,c.jsx)(p,{content:"buttonLogin"})})})}):null,(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonChangePasswordHint"}),children:(0,c.jsx)(o.Action,{id:"buttonChangePassword",icon:{src:t(1014)},href:`/admin/reseller/login-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonChangePassword"})})})})]}),(0,c.jsxs)(l.default,{id:"panel-reseller-toolsSection",title:(0,c.jsx)(p,{content:"toolsPanelTitle"}),children:[(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonIPAddressesHint"}),children:(0,c.jsx)(o.Action,{id:"buttonManageIpPool",icon:{src:t(1029)},href:`/plesk/client@${e}/ipaddress@/`,children:(0,c.jsx)(p,{content:"buttonIPAddresses"})})})}),S?(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonIisAppPoolHint"}),children:(0,c.jsx)(o.Action,{id:"buttonIisAppPool",icon:{src:t(1016)},href:`/admin/iis-app-pool/settings/id/${e}`,children:(0,c.jsx)(p,{content:"buttonIisAppPool"})})})}):null,j?null:(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonConvertToCustomerHint"}),children:(0,c.jsx)(o.Action,{id:"buttonConvertToCustomer",icon:{src:t(1030)},onClick:async()=>{new(await Plesk.require("app/convert-resellers-to-customers"))({id:"convertResellersToCustomers",cls:"popup-panel",prepareUrl:"/admin/reseller/prepare-convert/",handlerUrl:"/admin/reseller/convert-to-customer/?redirect=/reseller/list/",ids:[e]})},children:(0,c.jsx)(p,{content:"buttonConvertToCustomer"})})})}),(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonRemoveHint"}),children:(0,c.jsx)(o.Action,{id:"buttonRemove",icon:{src:t(1017)},onClick:()=>{a.messageBox.show({type:a.messageBox.TYPE_YESNO,subtype:a.messageBox.SUBTYPE_DELETE,text:m.lmsg("buttonRemoveResellerConfirmationTitle",{name:`<b>${s}</b>`}),description:m.lmsg("buttonRemoveResellerConfirmationDescription"),onYesClick(){(0,a.redirectPost)(`/reseller/delete-current/id/${e}`)}})},children:(0,c.jsx)(p,{content:"buttonRemove"})})})})]})]});g.propTypes={id:i().number.isRequired,login:i().string.isRequired,contactName:i().string.isRequired,companyName:i().string.isRequired,emailAddress:i().string.isRequired,description:i().string.isRequired,setupDate:i().string.isRequired,isActive:i().bool.isRequired,ownCustomers:i().number.isRequired,ownPlans:i().number.isRequired,ownSubscriptions:i().number.isRequired,isIisAppPoolsPolicyMixed:i().bool,subscription:i().shape({name:i().string.isRequired,isLocked:i().bool.isRequired,isSynchronized:i().bool.isRequired})},g.defaultProps={isIisAppPoolsPolicyMixed:!1,subscription:void 0};const h=g},1005:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(233),i=t.n(s),o=t(745),a=t.n(o),r=t(798),l=t(232),d=t(231);const c=({baseClassName:e,className:n,id:t,title:s,children:i,...o})=>{const[c,m]=(0,r.useLocalStorage)(`${t}
1-hidden`);return(0,d.jsx)(l.Panel,{className:a()(e,n),id:t,title:s?(0,d.jsx)(l.Heading,{level:4,children:s}):null,collapsible:!!t,collapsed:!!s&&"true"===c,onToggle:()=>m("true"===c?"false":"true"),...o,children:i})};c.propTypes={id:i().string,title:i().any,children:i().any.isRequired,className:i().string,baseClassName:i().string},c.defaultProps={id:void 0,title:void 0,className:void 0,baseClassName:"side-panel"};const m=c},1006:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(233),i=t.n(s),o=t(232),a=t(85),r=t(1007),l=t(231);const d=a.Locale.getTranslate("components.forms.admin-info"),c=({type:e,id:n,name:t,descriptions:s})=>{const{edit:i,remove:a}=(0,r.createHandlers)({type:e,id:n,name:t});return Object.entries(s).map((([e,n])=>(0,l.jsxs)("div",{className:"side-panel__item",children:[(0,l.jsxs)(o.Text,{intent:"muted",children:[(0,l.jsx)(d,{content:`description-${e}`}),":"]})," ",(0,l.jsx)("b",{children:(0,l.jsx)("span",{id:`${e}-description`,children:n})})," ",(0,l.jsxs)(o.AuxiliaryActions,{children:[(0,l.jsx)(o.Link,{id:`${e}-description-edit`,onClick:()=>i(e,n),children:n?(0,l.jsx)(d,{content:"edit"}):(0,l.jsx)(d,{content:"add"})}),n?(0,l.jsx)(o.Link,{id:`${e}-description-remove`,onClick:()=>a(e),children:(0,l.jsx)(d,{content:"remove"})}):null]})]},e)))};c.propTypes={type:i().oneOf(["reseller","customer","subscription"]).isRequired,id:i().number.isRequired,name:i().string.isRequired,descriptions:i().shape({admin:i().string,reseller:i().string,owner:i().string}).isRequired};const m=c},1007:(e,n,t)=>{"use strict";t.r(n),t.d(n,{EditPopupForm:()=>a,createHandlers:()=>r});var s=t(85);const i=s.Locale.getSection("components.forms.admin-info"),o=s.Locale.getSection("components.buttons");class a extends s.PopupForm{_initConfiguration(e){super._initConfiguration(e),this._hint=this._getConfigParam("hint",""),this._value=this._getConfigParam("value",""),this._handler=this._getConfigParam("handler",null),this._sendButtonId=this._getConfigParam("sendButtonId","btn-send"),this._cancelButtonId=this._getConfigParam("cancelButtonId","btn-cancel")}render(){super.render(),this.setBoxType("form-box"),this.setTitle(this.lmsg("popupTitle")),this.setTitleType(this._getConfigParam("titleCls","pp-edit-description")),document.getElementById(this._contentAreaId).innerHTML=`<p>${this._hint}</p><textarea id="${this._id}-description" class="js-auto-resize" rows="4" maxlength="255" cols="80">${(0,s.escapeHtml)(this._value)}</textarea>`,this.addOkButton(),this.addCancelButton()}addOkButton(){this.addRightButton(this.lmsg("buttonOk"),this._onOkClick,!0,!0,{id:this._sendButtonId})}addCancelButton(){this.addRightButton(this.lmsg("buttonCancel"),this._onCancelClick,!1,!1,{id:this._cancelButtonId})}_onOkClick(){this._handler(document.getElementById(`${this._id}-description`).value),this.hide()}_onCancelClick(){this.hide()}}const r=e=>{const n={reseller:"/admin/reseller/edit-description",customer:"/admin/customer/edit-description",subscription:"/admin/subscription/edit-description",site:"/smb/web/edit-description"}[e.type];if(!n)throw new Error(`Custom description not supported for '${e.type}' type`);return{edit:(t,r)=>{new a({id:"editDescription",cls:"popup-panel",hint:i.lmsg(`popupHint-${t}`),value:r,locale:{popupTitle:i.lmsg(`popupTitle-${e.type}`,{descriptionType:i.lmsg(`description-${t}`),name:(0,s.escapeHtml)(e.name)}),buttonOk:o.lmsg("save"),buttonCancel:o.lmsg("cancel")},handler(i){(0,s.redirectPost)(n,{id:e.id,type:t,description:i})}})},remove:t=>{s.messageBox.show({type:Jsw.messageBox.TYPE_YESNO,subtype:"delete",buttonTitles:{yes:o.lmsg("yes"),no:o.lmsg("no"),wait:o.lmsg("wait")},text:i.lmsg("confirmOnRemove"),onYesClick(){(0,s.redirectPost)(n,{id:e.id,type:t,description:""})}})}}}},986:(e,n,t)=>{"use strict";t.r(n),t.d(n,{generateUserName:()=>o,randomString:()=>s});const s=()=>Math.random().toString(36).slice(2),i=()=>`_${s()}`,o=({domainName:e,maxUserNameSize:n,isTechDomain:t,isWindows:s,postfix:o=i()})=>{let a=e;const r=!s,l=!/^[a-zA-Z0-9_.\-]+$/.test(e),d=/^[0-9]+/.test(e);if("string"!=typeof e||"string"!=typeof o)return"";if(l)return"";if(r&&d)return"";if("number"!=typeof n&&void 0!==n)return"";if(n){if(o.length>n)return"";n-=o.length}return t&&(a=a.split(".")[0]),a=a.toLowerCase().substr(0,n)+o,s&&(a=a.replace(/\.+$/,"")),a}},980:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});
1var s=t(231),i=t(233),o=t.n(i),a=t(85),r=t(981),l=t(982);const d=a.Locale.getTranslate("components.domain-applications.applications"),c=({onFieldChange:e,onStepChange:n,formPrefix:i,wizardConfig:o,embeddedForms:a,wizardEmbeddedForms:c,values:m,children:p,...u})=>{const[b,g]=(0,s.useState)([]),h=n=>{e("applicationName",n),g([...c.filter((({ext:e,name:t})=>n===`ext-${e}-${t}`)).filter((({content:e})=>Boolean(e))).map((({ext:e,name:n,...t})=>({key:`ext-${e}-${n}`,children:"",embeddedForms:[{name:n,...t}]})))])},x=[o.blankSite&&{name:"blank-site",icon:t(983),title:(0,s.jsx)(d,{content:"blank-site.title"}),description:(0,s.jsx)(d,{content:"blank-site.description"})},o.uploadFiles&&{name:"upload-files",icon:t(984),title:(0,s.jsx)(d,{content:"upload-files.title"}),description:(0,s.jsx)(d,{content:"upload-files.description"})},...c.map((({ext:e,name:n,title:t,icon:s,description:i})=>({name:`ext-${e}-${n}`,icon:s,title:t,description:i})))].filter(Boolean),f=[x.length>1&&{key:"chooseApplicationStep",children:(0,s.jsx)(r.default,{onApplicationSelect:h,applicationsList:x}),nextButton:!1},{key:"addDomainStep",formPrefix:i,children:p,embeddedForms:a}].filter(Boolean);(0,s.useEffect)((()=>{if(0===x.length&&h("blank-site"),1===x.length){const[{name:e}]=x;h(e)}}),[]);const j=m.applicationName&&1!==f.length?1:0;return(0,s.useEffect)((()=>{n?.(f[j].key)}),[j]),(0,s.jsx)(l.default,{...u,values:m,onFieldChange:e,onStepChange:(n,t)=>0===t&&f.length>1?(e("applicationName",null),g([]),n):t,step:j,steps:[...f,...b]})};c.propTypes={values:o().object.isRequired,onFieldChange:o().func.isRequired,onStepChange:o().func,children:o().node,formPrefix:o().string,wizardConfig:o().shape({enabled:o().bool,blankSite:o().bool,uploadFiles:o().bool}),embeddedForms:o().array,wizardEmbeddedForms:o().array},c.defaultProps={children:null,onStepChange:void 0,formPrefix:"",wizardConfig:{enabled:!0,blankSite:!0,uploadFiles:!0},embeddedForms:[],wizardEmbeddedForms:[]};const m=c},981:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var s=t(232),i=t(233),o=t.n(i),a=t(85),r=t(231);const l=a.Locale.getTranslate("components.domain-applications"),d=({onApplicationSelect:e,applicationsList:n})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Heading,{level:"3",children:(0,r.jsx)(l,{content:"title"})}),(0,r.jsx)(s.ItemList,{minColumnWidth:220,gap:"xs",selectable:!0,children:n.map((({name:n,icon:t,title:i,description:o})=>(0,r.jsx)(s.Item,{"data-action":n,icon:(0,r.jsx)(s.Icon,{src:t,intent:"info",size:"64"}),"data-testid":"listItem",title:(0,r.jsx)(s.Heading,{level:"4",children:i}),onClick:()=>e(n),children:(0,r.jsx)(s.Paragraph,{children:o})},n)))})]});d.propTypes={onApplicationSelect:o().func.isRequired,applicationsList:o().arrayOf(o().shape({name:o().string.isRequired,icon:o().string.isRequired,title:o().node,description:o().node}))},d.defaultProps={applicationsList:[]};const c=d},991:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i});var s=t(85);const i=(e,n,t)=>{return(0,s.createElement)(e,[(t?`${t}: `:"")+(0,s.escapeHtml)((i=n,i.length<50?i:`${i.slice(0,i.length-3)}...`)),(0,s.createElement)("span.tooltipData",(0,s.escapeHtml)(n))]);var i}},978:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(233),i=t.n(s),o=t(232),a=t(979),r=t(85),l=t(231);const d=r.Locale.getSection("components.elements.lookup"),c=({data:e,dataUrl:n,lookUpParams:t,newItemValue:s,locale:i,placeholder:r,...c})=>(0,l.jsx)(o.FormField,{...c,children:({getId:o,getName:c,getValue:m,setValue:p,isDisabled:u})=>(0,l.jsx)(a.default,{id:o(),name:c(),value:m(),onChange:e=>p(e),data:e,dataUrl:n,lookUpParams:t,newItemValue:s,locale:{...d.messages,...i},disabled:u(),placeholder:r})});c.propTypes={locale:i().object,data:i().array,dataUrl:i().string,lookUpParams:i().object,newItemValue:i().object,placeholder:i().string},c.defaultProps={locale:void 0,data:void 0,dataUrl:void 0,lookUpParams:void 0,newItemValue:void 0,placeholder:void 0};const m=c},979:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var s=t(231),i=t(85),o=t(743),a=t(233);const r=e=>{const[n,t]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const n=new i.LookUp(e);return t(n),()=>{n.remove(),t(null)}}),[]),(0,s.useEffect)((()=>{n&&(e.disabled?n.disable():n.enable())}),[n,e.disabled]),n?(0,s.jsx)(o.default,{children:n}):null};
1r.propTypes={disabled:t.n(a)().bool},r.defaultProps={disabled:!1};const l=r},982:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(232),i=t(231),o=t(880),a=t(85),r=t(233),l=t.n(r);const d=a.Locale.getTranslate("components.buttons"),c=({step:e,steps:n,onStepChange:t,onSubmit:a,submitButton:r,cancelButton:l,...c})=>{const m=(0,i.useRef)(),[p,u]=(0,i.useState)(0),b=p+e,{children:g,formPrefix:h,embeddedForms:x,backButton:f,nextButton:j}={backButton:{},nextButton:{},...n[b]},v=b===n.length-1,w=0===b,S=()=>{m.current.handleEmbeddedFormValues(),u((n=>t(n+e,n+e+1)-e))};return(0,i.jsx)(o.default,{...c,ref:m,additionalButtons:[w&&l&&(0,i.jsx)(s.Button,{children:(0,i.jsx)(d,{content:"cancel"}),...l},"cancel"),!w&&f&&(0,i.jsx)(s.Button,{arrow:"backward",onClick:()=>{m.current.handleEmbeddedFormValues(),u((n=>t(n+e,n+e-1)-e))},children:(0,i.jsx)(d,{content:"back"}),...f},"back"),!v&&j&&(0,i.jsx)(s.Button,{intent:"primary",onClick:S,arrow:"forward",children:(0,i.jsx)(d,{content:"nextWithoutArrow"}),...j},"next"),v&&r&&(0,i.jsx)(s.Button,{intent:"primary",arrow:"forward",onClick:()=>m.current.submit(),children:(0,i.jsx)(d,{content:"ok"}),...r},"submit")],onSubmit:v?a:S,onError:s=>{const i=n.findIndex((({formPrefix:e})=>""===e)),o=Object.keys(s).map((e=>{const t=n.findIndex((({formPrefix:n,embeddedForms:t=[]})=>n===e||t.any((({name:n})=>n===e))));return t>=0?t:i}));u(t(b,o.length>0?Math.min(...o):e)-e)},applyButton:!1,submitButton:!1,cancelButton:!1,formPrefix:h,embeddedForms:x,children:g})};c.propTypes={step:l().number,steps:l().arrayOf(l().shape({formPrefix:l().string,embeddedForms:l().array,children:l().node,nextButton:l().bool,backButton:l().bool})),onStepChange:l().func,onSubmit:l().func,submitButton:l().object,cancelButton:l().object},c.defaultProps={step:0,steps:[],onStepChange:(e,n)=>n,onSubmit:void 0,submitButton:{},cancelButton:{}};const m=c},990:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i});var s=t(991);const i=({adminDescription:e,resellerDescription:n,ownerDescription:t,hideResellerTitleDescription:i,hideOwnerTitleDescription:o},a,r="hint")=>[e?(0,s.default)(`.${r}`,e):"",n?(0,s.default)(`.${r}`,n,!i&&a.lmsg("resellerDescription")):"",t?(0,s.default)(`.${r}`,t,!o&&a.lmsg("ownerDescription")):""]},977:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_CUSTOM:()=>d,TYPE_TECH:()=>l,default:()=>g});var s=t(232),i=t(231),o=t(233),a=t.n(o),r=t(85);const l="tech",d="custom",c=r.Locale.getTranslate("components.forms.domain.tech-domain-name"),m=({isEnabled:e,isDefault:n,url:t,vendor:o,typeName:a,name:r,ipAddress:m,onDomainNameChange:b,onTypeChange:g})=>{const[h,x]=(0,i.useState)(e&&n?l:d);if(!e)return(0,i.jsx)(p,{name:r,isEnabled:!1,onDomainNameChange:b});const f=[{key:d,icon:(0,i.jsx)(s.Icon,{name:"ribbon",intent:"success"})},{key:l,icon:(0,i.jsx)(s.Icon,{name:"rocket",intent:"info"})}];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Section,{title:(0,i.jsx)(c,{content:"title"}),vertical:!0,children:(0,i.jsx)(s.FormField,{name:a,onChange:e=>(e=>{x(e),g(e),b("")})(e),children:({getId:e,getName:n,getValue:t,setValue:o,isDisabled:a})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.ItemList,{stretchable:!0,selectable:!0,minColumnWidth:270,gap:"sm",value:t(),onSelect:e=>{e!==h&&o(e)},children:f.map((({key:e,icon:n})=>(0,i.jsx)(s.Item,{icon:n,value:e,"data-action":`use-${e}-domain`,title:(0,i.jsx)(s.Heading,{level:"4",children:(0,i.jsx)(s.Paragraph,{children:(0,i.jsx)(c,{content:`${e}DomainTitle`})})}),disabled:a(),children:(0,i.jsx)(s.Text,{fontSize:"md",children:(0,i.jsx)(c,{content:`${e}DomainText`})})},e)))}),(0,i.jsx)("input",{hidden:!0,id:e(),name:n(),value:t(),readOnly:!0})]})})}),h===l?(0,i.jsx)(u,{name:r,ipAddress:m,url:t,vendor:o,onDomainNameChange:b}):(0,i.jsx)(p,{name:r,isEnabled:!0,onDomainNameChange:b})]})},p=({name:e,isEnabled:n,onDomainNameChange:t})=>(0,i.jsx)(s.Section,{vertical:!0,children:(0,i.jsx)(s.FormField,{name:e,label:n?(0,i.jsx)(c,{content:"customDomain"}):(0,i.jsx)(c,{content:"domainName"}),onChange:e=>t(e),required:!0,children:({getId:e,getName:n,getValue:t,setValue:o,isDisabled:a})=>(0,i.jsxs)("span",{dir:"ltr",children:["www. ",(0,i.jsx)(s.Input,{id:e(),name:n(),value:t(),placeholder:"domain.name",size:"lg",onChange:e=>o(e.target.value),disabled:a()})]})})});p.propTypes={name:a().string.isRequired,isEnabled:a().bool.isRequired,onDomainNameChange:a().func.isRequired};const u=({name:e,onDomainNameChange:n,...t})=>(0,i.jsx)(s.Section,{vertical:!0,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.FormField,{label:(0,i.jsx)(c,{content:"techDomain"}
1),name:e,onChange:e=>n(e),children:({getId:e,getName:n,...s})=>(0,i.jsx)(b,{id:e(),name:n(),...s,...t})}),(0,i.jsxs)(s.Cuttable,{maxHeight:24,children:[(0,i.jsx)(s.Paragraph,{children:(0,i.jsx)(c,{content:"techDomainDesc"})}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:(0,i.jsx)(c,{content:"techDomainRandom"})}),(0,i.jsx)("li",{children:(0,i.jsx)(c,{content:"techDomainDns"})})]}),(0,i.jsx)(s.Paragraph,{children:(0,i.jsx)(c,{content:"techDomainSwitch"})})]})]})});u.propTypes={name:a().string.isRequired,onDomainNameChange:a().func.isRequired};const b=({id:e,name:n,ipAddress:t,url:o,vendor:a,getValue:r,setValue:l})=>{const[d,m]=(0,i.useState)(!1),[p,u]=(0,i.useState)(t),[b,g]=(0,i.useState)({}),h=(0,i.useCallback)((async()=>{if(g({}),!r()||t!==p)if(t){m(!0);try{const e=await fetch(o,{method:"POST",body:JSON.stringify({ip_address:t,vendor:a})}),{subdomain:n}=await e.json();if(!n)return void g({error:(0,i.jsx)(c,{content:"error"})});l(n),u(t)}catch{g({error:(0,i.jsx)(c,{content:"error"})})}finally{m(!1)}}else g({noIpAddress:(0,i.jsx)(c,{content:"errorNoIpAddress"})})}),[r,l,t,p,o,a]);return(0,i.useEffect)((()=>{h()}),[t]),(0,i.jsxs)(i.Fragment,{children:[d?(0,i.jsx)(s.Status,{progress:!0,children:(0,i.jsx)(c,{content:"generating"})}):(0,i.jsx)(s.Text,{bold:!0,children:r()}),(0,i.jsx)("input",{hidden:!0,id:e,name:n,value:r(),readOnly:!0}),Object.keys(b).map((e=>(0,i.jsxs)(s.Alert,{intent:"danger",children:[(0,i.jsx)(s.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})," ",b[e]]},e)))]})};b.propTypes={id:a().string.isRequired,name:a().string.isRequired,ipAddress:a().string,url:a().string.isRequired,vendor:a().string.isRequired,getValue:a().func.isRequired,setValue:a().func.isRequired},b.defaultProps={ipAddress:null},m.propTypes={isEnabled:a().bool.isRequired,isDefault:a().bool.isRequired,url:a().string.isRequired,vendor:a().string.isRequired,typeName:a().string.isRequired,name:a().string.isRequired,ipAddress:a().string,onDomainNameChange:a().func.isRequired,onTypeChange:a().func.isRequired},m.defaultProps={ipAddress:null};const g=m},994:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/att-tr.png?f00bf7056f997d02b1565fff15ed7ab7"},1014:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/change-password.png?54304f321bc897402075b73230593f04"},1030:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/convert-to-customer.png?597b1b6aa17102a0d694f2acd4275f1e"},1017:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/delete.png?27d654be29d57ad05641c2ff392035fa"},995:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/dns.png?d10cfc4afe5c5c040eaf99c3ea14429d"},1008:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/edit-contact-info.png?052e4fc494a39464dad26f4f40e38eaf"},998:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/forward-to-dom.png?761778de5722f4bb1f3611d27968cb0f"},1016:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/iis-app-pool.png?1bcf2ef7b099732f96f82bfb815c5146"},1029:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/ip-pool.png?660f416531a7d16c58da56704aa08b79"},1028:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/login.png?b68531bba0e522a3a35a90de80b8892a"},973:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/off.png?84d64d1bd3267c21795505b7daa43800"},997:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/spacer.png?4710d0e07ee1a4d7ebdb1972701168fa"},910:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/stats.png?6a39051adc0633466df48a83a804028c"},1021:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-locked.png?791d616dde33b19ebd4b7fbf3b305ffe"},993:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-ok.png?6d52f91c87cbdc73b4ef0b5ded92c441"},992:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-suspended.png?7968ea094f0aa3fdced5d59b0c7f3196"},1022:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-unsynchronized.png?c075e72041171bb35d0a9b6542518ccf"},996:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/website.png?ac6aa9eaf06048cbd5799a61daad9766"},989:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/process.svg?5b1c1dfcc665e9846fde5b7fca65d271"},988:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/step1.svg?d396208857b71836ade6feff559c3bae"},987:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/step2.svg?93f1d4904c994c19ed4db31811b549b5"},983:e=>{e.exports=Jsw.skinUrl+"/images/code.svg?f6af5b40c9dca585f911973e9cdea080"},984:e=>{e.exports=Jsw.skinUrl+"/images/upload-files.svg?c9d4700b63278e9735d058840ac4b011"},985:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWebspaceIpAddress"}
1,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:"ipAddress"},arguments:[{kind:"Argument",name:{kind:"Name",value:"publicIp"},value:{kind:"BooleanValue",value:!0}}],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:191}};n.loc.source={body:"query GetWebspaceIpAddress($id: ID!) {\n    domain: node(id: $id) {\n        ... on Domain {\n            ipAddresses {\n                ipAddress(publicIp: true)\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 s=e.type;"NamedType"===s.kind&&n.add(s.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 s={};function i(e,n){for(var t=0;t<e.definitions.length;t++){var s=e.definitions[t];if(s.name&&s.name.value==n)return s}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),s[e.name.value]=n}})),e.exports=n,e.exports.GetWebspaceIpAddress=function(e,n){var t={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=s[n]||new Set,a=new Set,r=new Set;for(o.forEach((function(e){r.add(e)}));r.size>0;){var l=r;r=new Set,l.forEach((function(e){a.has(e)||(a.add(e),(s[e]||new Set).forEach((function(e){r.add(e)})))}))}return a.forEach((function(n){var s=i(e,n);s&&t.definitions.push(s)})),t}(n,"GetWebspaceIpAddress")}}]);
2//# sourceMappingURL=domains.js.map?03dd65d805b9d07b0885

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.