PageSourceSearch

https://fasadnadoska.sk/cp/javascript/views/admin/customer/domains.js?9082e4cadd4e5774267e

js fasadnadoska.sk collected 2026-10-07 23:11:06 UTC 50,402 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/customer/domains"],{949:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>D,useAddDomainFormInDrawer:()=>A});var s=t(216),i=t(218),o=t.n(i),a=t(373),r=t(696),l=t(96),d=t(217),c=t(727),m=t(950),p=t(855),u=t(951),g=t(953),b=t(958),h=t.n(b),f=t(959);const x=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"),y=l.Locale.getTranslate("smb.components.forms.web._shared"),k=l.Locale.getTranslate("smb.components.forms.web.seo-settings"),S=l.Locale.getTranslate("admin.components.forms.admin-panel.form.contact-info"),C=l.Locale.getTranslate("components.buttons"),T=l.Locale.getTranslate("admin.components.forms.admin-panel.form.login-info"),N=({id:e,showDomainRegistrationPromo:n,webspaceIpAddresses:i,allowCustomerCreation:o,allowWebspaceCreation:c,subscriptionsLookUpParams:b,canManageMailSettings:N,maxSysnameSize:A,isWindows:D,techDomain:P,settingsEnabled:I,settingsCollapsed:E,applicationWizardConfig:R,embeddedForms:_,applicationWizardEmbeddedForms:F,cancelLink:B,className:q,render:H,onProcess:$,onStepPropsChange:L,onToggleDomainSettings:U,status:O,...V})=>{const M=(0,a.useApolloClient)(),z=(0,r.useHistory)(),[J,W]=(0,s.useState)(V.values),[Y,G]=(0,s.useState)(Boolean(V.values.hostingSettings.root)),[Z,Q]=(0,s.use
1State)(!V.values.domainInfo),[K,X]=(0,s.useState)(V.webspaceIpAddress),[ee,ne]=(0,s.useState)(i),[te,se]=(0,s.useState)(null),ie=i;(0,s.useEffect)((()=>{if(Y)return;let e=/^[a-zA-Z0-9\.\-\*]+$/.match(J.domainName.name)?J.domainName.name.replace(/\*/g,"_"):"";-1!==J.hostingSettings.rootPattern.indexOf("<domain>")&&(e=J.hostingSettings.rootPattern.replace("<domain>",e)),W((0,d.setIn)(J,"hostingSettings[root]",e))}),[J.domainName.name]),(0,s.useEffect)((()=>{J.domainName.webspace&&"new"!==J.domainName.webspace.id&&M.query({query:h(),variables:{id:btoa(`Domain:${J.domainName.webspace.id}`)}}).then((({data:{domain:{ipAddresses:e}}})=>{X(e[0].ipAddress)}))}),[J.domainName.webspace]);const oe=(e,n)=>{switch(W((t=>{if(t=(0,d.setIn)(t,e,n),"domainName[name]"===e&&!Z){const e=(0,f.generateUserName)({domainName:n,maxUserNameSize:A,isTechDomain:t.domainName.type===m.TYPE_TECH,isWindows:D});t=(0,d.setIn)(t,"domainInfo[userName]",e||V.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]":G(!0);break;case"domainInfo[userName]":Q(!0);break;case"domainName[customer]":ne(n.ipAddresses?n.ipAddresses:ie)}},ae="1"===J.domainName.assignToCustomer||void 0!==J.domainName.targetWebspace||J.domainName.webspace&&"new"===J.domainName.webspace.id,re=ae||!K?Object.keys(ee).map((e=>{const n=J.domainInfo.ipSelector[e];return"none"===n?null:ee[e][n].split(" ")[0]})).filter(Boolean)[0]:K;(0,s.useEffect)((()=>{R.enabled||L?.({sideBanner:t(960),sideBannerContainer:{background:"#faf5f7"}})}),[R.enabled]);const le=R.enabled?g.default:p.default;return(0,s.jsxs)(le,{vertical:!0,id:e,className:q,render:H,values:J,onFieldChange:oe,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=>{se(e),$?.(e),L?.({sideBanner:t(962),sideBannerContainer:{background:"#e0f3f9"}})},onStepChange:e=>{te||L?.("chooseApplicationStep"===e?{sideBanner:t(961),sideBannerContainer:{background:"#f3f4f5"}}:{sideBanner:t(960),sideBannerContainer:{background:"#faf5f7"}})},embeddedForms:_,wizardConfig:R,wizardEmbeddedForms:F,submitButton:{id:"btn-send",children:(0,s.jsx)(j,{content:"buttonAddDomain"})},applyButton:!1,cancelButton:!!B&&{id:"btn-cancel",children:(0,s.jsx)(C,{content:"cancel"}),onClick:()=>{z.push(B)}},children:[(O||[]).filter((({status:e})=>"warning"===e)).map((({content:e})=>(0,s.jsx)(d.StatusMessage,{intent:"warning",children:e},e))),n?(0,s.jsx)("p",{children:(0,s.jsx)(j,{content:"formRegistrationHint",params:{link:(0,s.jsx)("a",{href:(0,l.prepareUrl)("/mpc/register-domains"),target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)(j,{content:"portalLink"})})}})}):null,(0,s.jsx)(m.default,{isEnabled:void 0!==J.domainName.type,isDefault:J.domainName.type===m.TYPE_TECH,typeName:"domainName[type]",name:"domainName[name]",ipAddress:re,onTypeChange:e=>oe("domainName[type]",e),onDomainNameChange:e=>oe("domainName[name]",e),...P}),void 0===J.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"===J.domainName.assignToCustomer?(0,s.jsxs)(d.Section,{collapsible:!0,children:[void 0===J.domainName.customer?null:(0,s.jsx)(u.default,{name:"domainName[customer]",label:(0,s.jsx)(j,{content:"customer"}),dataUrl:"/admin/customer/look-up",newItemValue:o?{id:"new",title:x.lmsg("createNewCustomer")}:null,locale:{label:x.lmsg("selectExistingCustomer")},required:!0}),void 0===J.domainName.customer||"new"===J.domainName.customer?.id?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.FormFieldText,{name:"customerInfo[customerContactInfo][contactName]",label:(0,s.jsx)(S,{content:"contactName"}),required:!0}),(0,s.jsx)(d.FormFieldText,{name:"customerInfo[customerContactInfo][email]",label:(0,s.jsx)(S,{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)(T,{content:"userName"}),required:!0,autoComplete:"off"}),(0,s.jsx)(d.FormFieldPassword,{name:"customerInfo[customerLoginInfo][password]",label:(0,s.jsx)(T,{content:"password"}),required:!0,autoComplete:"new-password"}),(0,s.jsx)(d.FormFieldCheckbox,{name:"customerInfo[customerLoginInfo][isActivationRequired]",label:(0,s.jsx)(T,{content:"emailActivation"}),description:(0,s.jsx)(T,{content:"emailActivationHint"}),checkedValue:"1",uncheckedValue:"0"})]}):null]}):null]}),void 0===J.domainName.webspace||"1"===J.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:c?{id:"new",title:x.lmsg("createNewTarget")}:null,locale:{label:x.lmsg("selectExistingTarget")},lookUpParams:b,required:!0})}),ae?I?(0,s.jsxs)(d.Section,{id:"domainInfo",title:(0,s.jsx)(j,{content:"webspaceLegend"}),collapsible:!0,collapsed:E,onToggle:U,children:[Object.keys(ee).map((e=>(0,s.jsx)(d.FormFieldSelect,{name:`domainInfo[ipSelector][${e}]`,label:(0,s.jsx)(w,{content:Object.keys(ee).length>1?`${e}Address`:"ipAddress"}),required:!0,children:Object.keys(ee[e]).map((n=>(0,s.jsx)(d.SelectOption,{value:n,children:ee[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===J.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:J.domainName.type===m.TYPE_TECH,checkedValue:J.domainName.type===m.TYPE_TECH?null:"master",uncheckedValue:J.domainName.type===m.TYPE_TECH?null:"none"}),void 0===J.mailSettings?null:(0,s.jsx)(d.FormFieldCheckbox,{name:"mailSettings[mail]",label:(0,s.jsx)(j,{content:"mail"}),description:N?(0,s.jsx)(j,{content:"mailHint"}):(0,s.jsx)(j,{content:"mailHintNoPermission"}),disabled:J.domainName.type===m.TYPE_TECH,checkedValue:J.domainName.type===m.TYPE_TECH?null:"1",uncheckedValue:J.domainName.type===m.TYPE_TECH?null:"0"}),"hosting"===J.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)(y,{content:"documentRoot"}),description:(0,s.jsx)(y,{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)(k,{content:"seoRedirectDirection"}),description:(0,s.jsx)(k,{content:"seoRedirectDirectionHint"}),required:!0,options:[{value:"www",label:`www.${J.domainName.name||"<your_domain>"}`},{value:"non-www",label:J.domainName.name||"<your_domain>"},{value:"none",label:(0,s.jsx)(k,{content:"seoRedirectDirectionNone"})}]})]}):null,"forwarding"===J.hostingType.hosting?(0,s.jsxs)(d.Section,{id:"forwardingSettings",title:(0,s.jsx)(y,{content:"forwardingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,s.jsx)(d.FormFieldText,{name:"forwardingSettings[forwardTo]",label:(0,s.jsx)(y,{content:"forwardDestination"}),description:(0,s.jsx)(y,{content:"forwardDestinationHint"}),required:!0}),(0,s.jsx)(d.FormFieldRadioButtons,{name:"forwardingSettings[forwardingType]",label:(0,s.jsx)(y,{content:"forwardingTypeOptions"}),options:[{value:"std_fwd301",label:(0,s.jsx)(y,{content:"forwardingHttpCode301"}),description:(0,s.jsx)(y,{content:"forwardingHttpCode301Hint"})},{value:"std_fwd302",label:(0,s.jsx)(y,{content:"forwardingHttpCode302"}),description:(0,s.jsx)(y,{content:"forwardingHttpCode302Hint"})},{value:"frm_fwd",label:(0,s.jsx)(y,{content:"forwardingFrame"}),description:(0,s.jsx)(y,{content:"forwardingFrameHint"})}]})]}):null]})]})};N.propTypes={id:o().string.isRequired,showDomainRegistrationPromo:o().bool,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={showDomainRegistrationPromo:!1,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 A=(e,n)=>(0,c.useCreateFormInDrawer)(N,"add-domain",e,n),D=N},897:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var s=t(218),i=t.n(s),o=t(96),a=t(898);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},901:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var s=t(218),i=t.n(s),o=t(217),a=t(96),r=t(502),l=t(216);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},898:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>o});var s=t(216),i=t(96);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})}},948:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var s=t(216),i=t(218),o=t(96),a=t(502),r=t(897),l=t(949),d=t(963);const c=o.Locale.getSection("admin.components.lists.domains"),m=o.Locale.getSection("components.icp-permit"),p=({url:e,data:n,searchFilters:i,dataAction:p,deleteAction:u,allowCreateDomain:g,allowManageSubdomain:b,allowManageDomainAliases:h,showDeleteButton:f,isHomonymSearchEnabled:x,showOwnerName:j,showExpirationDate:v,userId:w,icpPermitSupported:y,icpPermitLink:k})=>{const S=(0,s.useCallback)((({action:n}={})=>{const t=e.split("/");return n&&(t[3]=n),t.join("/")}),[e]),[C]=(0,l.useAddDomainFormInDrawer)(e,S({action:"add-domain"})),T=(0,a.useNavigateCallback)(),N=(0,s.useMemo)((()=>[g?{componentType:o.SmallButton,id:"buttonAddDomain",cls:"s-btn sb-new-domain btn-primary",title:c.lmsg("buttonAddDomain"),description:c.lmsg("hintAddDomain"),href:S({action:"add-domain"}),handler:T}:null,b?{componentType:o.SmallButton,id:"buttonAddSubDomain",cls:"s-btn sb-new-subdomain",title:c.lmsg("buttonAddSubdomain"),description:c.lmsg("hintAddSubdomain"),href:S({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:S({action:"add-domain-alias"})}:null,g||b||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=${S()}
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=${S()}`,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=${S()}`,skipConfirmation:!0})}}]},f?{componentType:o.bar.Separator}:null,f?{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:S({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:x,requestUrl:S({action:"search-homonym-data"}),loadingTitle:o.Locale.getSection("components.homonyms").lmsg("loading")})}}:null].filter(Boolean)),[g,h,b,S,u,x,T,f]),A=(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:T},(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?965:946),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)])}},y?{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?966:967);let a=n?(0,o.escapeHtml)(n):1==e?"":m.lmsg("icpStatusNotAllowed");return k&&(a=`<a href="${k}" 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(968)}"/> ${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(969)}"/> ${c.lmsg(e.parentDomainId>0?"subdomainWebsite":"website")}`:"none"===e.hostingType?n=`<img src="${t(970)}"/><em class="hint">${c.lmsg("noHosting")}</em>`:"frm_fwd"!==e.hostingType&&"std_fwd"!==e.hostingType||(n=`<img src="${t(971)}"/> ${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:T},(0,o.escapeHtml)(t)):(0,o.escapeHtml)(t),s?`, ${(0,o.escapeHtml)(s)}`:null]}}:null,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)),[k,y,T,v,j,w]);return(0,s.jsxs)(s.Fragment,{children:[C,(0,s.jsx)(r.default,{id:"domains-list",data:n,dataUrl:S({action:p}),searchFilters:i,searchOveral:"domainName",disabledSelectHint:c.lmsg("disabledSelectHint"),operations:N,columns:A})]})};p.propTypes={url: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},976:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(96),i=t(901),o=t(765),a=t(948),r=t(977),l=t(216);const d=s.Locale.getTranslate("components.pages.customer-domains"),c=({tabs:e,...n})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.default,{items:e}),(0,l.jsx)("p",{children:(0,l.jsx)(d,{content:"hint"})}),(0,l.jsx)(a.default,{dataAction:"domains-list-data",deleteAction:"delete-domain",...n})]});c.propTypes={tabs:i.default.propTypes.items.isRequired};const m=(0,o.withPageLayout)(c,(({sidebarProps:e})=>({secondary:(0,l.jsx)(r.default,{...e})})))},977:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>b});var s=t(218),i=t.n(s),o=t(217),a=t(96),r=t(502),l=t(978),d=t(979),c=t(216);const m=a.Locale.getSection("admin.components.customer-sidebar"),p=a.Locale.getTranslate("admin.components.customer-sidebar"),u=a.Locale.getTranslate("admin.components.elements.status"),g=({id:e,canCreateClients:n,contactName:s,companyName:i,emailAddress:g,setupDate:b,isAdmin:h,resellersSupport:f,hasLegacyResources:x,isActive:j,username:v,allowLogIn:w,provider:y,hasResellers:k,hasResellerCustomers:S,description:C,isIisAppPoolsPolicyMixed:T})=>{const N=(n,t)=>{a.messageBox.show({type:a.messageBox.TYPE_YESNO,subtype:a.messageBox.SUBTYPE_TOGGLE,text:m.lmsg("applyConfirmation"),onYesClick(){(0,a.redirectPost)(`/business-model-upgrade/manual-customer-solution/solution/${t}`,{redirect:`/customer/overview/id/${e}`,ids:[e]})},needAttention:!0,needAttentionText:n,needAttentionBlockSubmit:!0})};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(l.default,{id:"panel-customer-overviewSection",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.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(981)},href:`/admin/customer/personal-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonEditContact"})})})}),h&&f?(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonConvertToResellerHint"}),children:(0,c.jsx)(o.Action,{id:"buttonConvertToReseller",icon:{src:t(982)},onClick:async()=>{new(await Plesk.require("app/convert-customers-to-resellers"))({id:"convertCustomersToReseller",cls:"popup-panel",prepareUrl:"/admin/customer/prepare-convert/",handlerUrl:"/admin/customer/convert-to-reseller/?redirect=/customer/list/",ids:[e]})},children:(0,c.jsx)(p,{content:"buttonConvertToReseller"})})})}):null,x?(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsxs)(o.Popover,{title:(0,c.jsx)(o.Heading,{level:5,children:(0,c.jsx)(p,{content:"bunchSolutionsAction"})}),target:(0,c.jsx)("a",{id:"bunchSolutionsLink",children:(0,c.jsx)(p,{content:"bunchSolutions"})}),placement:"left",className:"side-panel-popover",children:[(0,c.jsx)("div",{className:"side-panel-popover__item",children:(0,c.jsx)(o.Action,{id:"t1s1ApplyButton",icon:{src:t(983)},onClick:()=>N(m.lmsg("t1s1ApplyHint"),"t1s1"),children:(0,c.jsx)(p,{content:"t1s1ApplyButton"})})}),(0,c.jsx)("div",{className:"side-panel-popover__item",children:(0,c.jsx)(o.Action,{id:"t1s2ApplyButton",icon:{src:t(984)},onClick:()=>N(m.lmsg("t2s1ApplyHint"),"t1s2"),children:(0,c.jsx)(p,{content:"t1s2ApplyButton"})})}),(0,c.jsx)("div",{className:"side-panel-popover__item",children:(0,c.jsx)(o.Action,{id:"t1s3ApplyButton",icon:{src:t(985)},onClick:()=>N(m.lmsg("t1s3ApplyHint"),"t1s3"),children:(0,c.jsx)(p,{content:"t1s3ApplyButton"})})}),(0,c.jsx)("div",{className:"side-panel-popover__item",children:(0,c.jsx)(o.Action,{id:"t1s6cApplyButton",icon:{src:t(983)},onClick:()=>N(m.lmsg("t1s6cApplyHint"),"t1s6c"),children:(0,c.jsx)(p,{content:"t1s6cApplyButton"})})}),"admin"===y?.type?(0,c.jsx)("div",{className:"side-panel-popover__item",children:(0,c.jsx)(o.Action,{id:"t1s6rApplyButton",icon:{src:t(986)},onClick:()=>N(m.lmsg("t1s6rApplyHint"),"t1s6r"),children:(0,c.jsx)(p,{content:"t1s6rApplyButton"})})}):null]})}):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:b})]}),(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:j?"success":"danger",children:j?(0,c.jsx)(u,{content:"onStateCustomer"}):(0,c.jsx)(u,{content:"offStateCustomer"})})})," ",(0,c.jsx)(o.AuxiliaryActions,{children:(0,c.jsx)(o.Tooltip,{title:j?(0,c.jsx)(p,{content:"buttonSuspendHint"}):(0,c.jsx)(p,{content:"buttonActivateHint"}),children:(0,c.jsx)("a",{id:"buttonToggle",onClick:()=>{(0,a.redirectPost)(`/admin/customer/toggle/id/${e}`)},children:j?(0,c.jsx)(p,{content:"buttonSuspend"}):(0,c.jsx)(p,{content:"buttonActivate"})})})})]}),y?(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"provider"}),":"]})," ",(0,c.jsx)("b",{children:"reseller"===y.type&&f?(0,c.jsx)(r.default,{to:`/admin/reseller/overview/id/${y.id}`,children:y.name}):y.name})," ",h&&k&&(f||S)?(0,c.jsx)(o.AuxiliaryActions,{children:(0,c.jsx)("a",{id:"buttonChangeOwner",onClick:async()=>{new(await Plesk.require("app/change-customers-owner"))({id:"changeOwner",cls:"popup-panel",prepareUrl:"/admin/customer/prepare-change-owner/",handlerUrl:`/admin/customer/change-owner/?redirect=/customer/overview/id/${e}`,ids:[e]})},children:(0,c.jsx)(p,{content:"buttonChangeOwner"})})}):null]}):null,(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:v})]}),(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(987)},href:`/admin/customer/login-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonChangePassword"})})})}),w?(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonLoginAsCustomerHint"}),children:(0,c.jsx)(o.Action,{id:"buttonLogin",icon:{src:t(988)},href:`/admin/customer/login/id/${e}`,children:(0,c.jsx)(p,{content:"buttonLoginAsCustomer"})})})}):null,(0,c.jsx)(d.default,{type:"customer",id:e,name:s,descriptions:{owner:C}})]}),T?(0,c.jsx)(l.default,{id:"panel-customer-iisAppPoolSection",children:(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(989)},href:`/admin/iis-app-pool/settings/id/${e}`,children:(0,c.jsx)(p,{content:"buttonIisAppPool"})})})})}):null,n?(0,c.jsx)(l.default,{id:"panel-customer-removeSection",children:(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(990)},onClick:()=>{a.messageBox.show({type:a.messageBox.TYPE_YESNO,subtype:a.messageBox.SUBTYPE_DELETE,text:m.lmsg("buttonRemoveCustomerConfirmationTitle",{name:`<b>${s}</b>`}),description:m.lmsg("buttonRemoveCustomerConfirmationDescription"),onYesClick(){(0,a.redirectPost)(`/customer/delete-current/id/${e}`)}})},children:(0,c.jsx)(p,{content:"buttonRemove"})})})})}):null]})};g.propTypes={id:i().number.isRequired,canCreateClients:i().bool.isRequired,contactName:i().string.isRequired,companyName:i().string.isRequired,emailAddress:i().string.isRequired,setupDate:i().string.isRequired,isAdmin:i().bool.isRequired,resellersSupport:i().bool.isRequired,hasLegacyResources:i().bool.isRequired,isActive:i().bool.isRequired,username:i().string.isRequired,allowLogIn:i().bool.isRequired,provider:i().shape({id:i().number.isRequired,type:i().string.isRequired,name:i().string.isRequired}),hasResellers:i().bool.isRequired,hasResellerCustomers:i().bool.isRequired,description:i().string.isRequired,isIisAppPoolsPolicyMixed:i().bool},g.defaultProps={provider:void 0,isIisAppPoolsPolicyMixed:!1};const b=g},978:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(218),i=t.n(s),o=t(720),a=t.n(o),r=t(773),l=t(217),d=t(216);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},979:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(218),i=t.n(s),o=t(217),a=t(96),r=t(980),l=t(216);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},980:(e,n,t)=>{"use strict";t.r(n),t.d(n,{EditPopupForm:()=>a,createHandlers:()=>r});var s=t(96);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:""})}})}}}},959:(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}},953:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(216),i=t(218),o=t.n(i),a=t(96),r=t(954),l=t(955);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})=>
1{const[g,b]=(0,s.useState)([]),h=n=>{e("applicationName",n),b([...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}]})))])},f=[o.blankSite&&{name:"blank-site",icon:t(956),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(957),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),x=[f.length>1&&{key:"chooseApplicationStep",children:(0,s.jsx)(r.default,{onApplicationSelect:h,applicationsList:f}),nextButton:!1},{key:"addDomainStep",formPrefix:i,children:p,embeddedForms:a}].filter(Boolean);(0,s.useEffect)((()=>{if(0===f.length&&h("blank-site"),1===f.length){const[{name:e}]=f;h(e)}}),[]);const j=m.applicationName&&1!==x.length?1:0;return(0,s.useEffect)((()=>{n?.(x[j].key)}),[j]),(0,s.jsx)(l.default,{...u,values:m,onFieldChange:e,onStepChange:(n,t)=>0===t&&x.length>1?(e("applicationName",null),b([]),n):t,step:j,steps:[...x,...g]})};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},954:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var s=t(217),i=t(218),o=t.n(i),a=t(96),r=t(216);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"}),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},964:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i});var s=t(96);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}},951:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(218),i=t.n(s),o=t(217),a=t(952),r=t(96),l=t(216);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},952:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>l});var s=t(216),i=t(96),o=t(718),a=t(218);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};r.propTypes={disabled:t.n(a)().bool},r.defaultProps={disabled:!1};const l=r},955:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var s=t(217),i=t(216),o=t(855),a=t(96),r=t(218),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),g=p+e,{children:b,formPrefix:h,embeddedForms:f,backButton:x,nextButton:j}={backButton:{},nextButton:{},...n[g]},v=g===n.length-1,w=0===g,y=()=>{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&&x&&(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"}),...x},"back"),!v&&j&&(0,i.jsx)(s.Button,{intent:"primary",onClick:y,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:y,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(g,o.length>0?Math.min(...o):e)-e)},applyButton:!1,submitButton:!1,cancelButton:!1,formPrefix:h,embeddedForms:f,children:b})};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},963:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i});var s=t(964);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")):""]},950:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_CUSTOM:()=>d,TYPE_TECH:()=>l,default:()=>b});var s=t(217),i=t(216),o=t(218),a=t.n(o),r=t(96);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:g,onTypeChange:b})=>{const[h,f]=(0,i.useState)(e&&n?l:d);if(!e)return(0,i.jsx)(p,{name:r,isEnabled:!1,onDomainNameChange:g});const x=[{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=>{f(e),b(e),g("")})(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:x.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:g}):(0,i.jsx)(p,{name:r,isEnabled:!0,onDomainNameChange:g})]})},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)(g,{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 g=({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),[g,b]=(0,i.useState)({}),h=(0,i.useCallback)((async()=>{if(b({}),!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 b({error:(0,i.jsx)(c,{content:"error"})});l(n),u(t)}catch{b({error:(0,i.jsx)(c,{content:"error"})})}finally{m(!1)}}else b({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(g).map((e=>(0,i.jsxs)(s.Alert,{intent:"danger",children:[(0,i.jsx)(s.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})," ",g[e]]},e)))]})};g.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},g.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 b=m},967:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/att-tr.png?f00bf7056f997d02b1565fff15ed7ab7"},987:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/change-password.png?54304f321bc897402075b73230593f04"},982:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/convert-to-reseller.png?92f150ae967d586471eabfbb347d4dfd"},990:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/delete.png?27d654be29d57ad05641c2ff392035fa"},968:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/dns.png?d10cfc4afe5c5c040eaf99c3ea14429d"},981:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/edit-contact-info.png?052e4fc494a39464dad26f4f40e38eaf"},971:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/forward-to-dom.png?761778de5722f4bb1f3611d27968cb0f"},989:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/iis-app-pool.png?1bcf2ef7b099732f96f82bfb815c5146"},984:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/inherits-from-client.png?a22fe751c94ac0dc04f942415c0e8865"},985:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/inherits-from-domain.png?386f7e5dc544dc203b31ce3934eb982d"},983:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/inherits-the-lesser.png?6a711e632da0050efe725b03bca9aeb4"},988:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/login-as-customer.png?f61b4adc663106baef7704c16dd4d207"},946:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/off.png?84d64d1bd3267c21795505b7daa43800"},970:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/spacer.png?4710d0e07ee1a4d7ebdb1972701168fa"},966:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-ok.png?6d52f91c87cbdc73b4ef0b5ded92c441"},965:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-suspended.png?7968ea094f0aa3fdced5d59b0c7f3196"},986:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/upgrade-to-reseller.png?ad970c843c70a8c819528d90d01395b0"},969:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/website.png?ac6aa9eaf06048cbd5799a61daad9766"},962:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/process.svg?5b1c1dfcc665e9846fde5b7fca65d271"},961:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/step1.svg?d396208857b71836ade6feff559c3bae"},960:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/step2.svg?93f1d4904c994c19ed4db31811b549b5"},956:e=>{e.exports=Jsw.skinUrl+"/images/code.svg?f6af5b40c9dca585f911973e9cdea080"},957:e=>{e.exports=Jsw.skinUrl+"/images/upload-files.svg?c9d4700b63278e9735d058840ac4b011"},958: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?9082e4cadd4e5774267e

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.