PageSourceSearch

https://acscontrol.com/cp/javascript/views/smb/web/setup.js?52cb52a7dcfa6001d03a

js acscontrol.com collected 2026-10-06 05:28:58 UTC 28,433 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/smb/web/setup"],{1080:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(242),s=t(244),a=t.n(s),o=t(90),r=t(1081),d=t(1082);const l=o.Locale.getTranslate("components.domain-applications.applications"),c=({onFieldChange:e,onStepChange:n,formPrefix:s,wizardConfig:a,embeddedForms:o,extensionButtons:c,values:m,children:u,...p})=>{const g=n=>{e("applicationName",n)},f=[a.blankSite&&{name:"blank-site",icon:t(1083),title:(0,i.jsx)(l,{content:"blank-site.title"}),description:(0,i.jsx)(l,{content:"blank-site.description"})},a.uploadFiles&&{name:"upload-files",icon:t(1084),title:(0,i.jsx)(l,{content:"upload-files.title"}),description:(0,i.jsx)(l,{content:"upload-files.description"})},...c.map((({id:e,extensionId:n,title:t,icon:i,description:s})=>({name:`ext-${n}`,id:e,icon:i,title:t,description:s})))].filter(Boolean),b=[f.length>1&&{key:"chooseApplicationStep",children:(0,i.jsx)(r.default,{onApplicationSelect:g,applicationsList:f}),nextButton:!1},{key:"addDomainStep",formPrefix:s,children:u,embeddedForms:o}].filter(Boolean);(0,i.useEffect)((()=>{if(0===f.length&&g("blank-site"),1===f.length){const[{name:e}]=f;g(e)}}),[]);const x=m.applicationName&&1!==b.length?1:0;return(0,i.useEffect)((()=>{n?.(b[x].key)}),[x]),(0,i.jsx)(d.default,{...p,values:m,onFieldChange:e,onStepChange:(n,t)=>0===t&&b.length>1?(e("applicationName",null),n):t,step:x,steps:b})};c.propTypes={values:a().object.isRequired,onFieldChange:a().func.isRequired,onStepChange:a().func,children:a().node,formPrefix:a().string,wizardConfig:a().shape({enabled:a().bool,blankSite:a().bool,uploadFiles:a().bool}),embeddedForms:a().array,extensionButtons:a().array},c.defaultProps={children:null,onStepChange:void 0,formPrefix:"",wizardConfig:{enabled:!0,blankSite:!0,uploadFiles:!0},embeddedForms:[],extensionButtons:[]};const m=c},1081:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(243),s=t(244),a=t.n(s),o=t(90),r=t(242);const d=o.Locale.getTranslate("components.domain-applications"),l=({onApplicationSelect:e,applicationsList:n})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Heading,{level:"3",children:(0,r.jsx)(d,{content:"title"})}),(0,r.jsx)(i.ItemList,{minColumnWidth:220,gap:"xs",selectable:!0,children:n.map((({id:n,name:t,icon:s,title:a,description:o})=>(0,r.jsx)(i.Item,{"data-action":t,icon:(0,r.jsx)(i.Icon,{src:s,intent:"info",size:"64"}),"data-testid":"listItem","data-cy":n??t,title:(0,r.jsx)(i.Heading,{level:"4",children:a}),onClick:()=>e(t),children:(0,r.jsx)(i.Paragraph,{children:o})},t)))})]});l.propTypes={onApplicationSelect:a().func.isRequired,applicationsList:a().arrayOf(a().shape({name:a().string.isRequired,icon:a().string.isRequired,title:a().node,description:a().node}))},l.defaultProps={applicationsList:[]};const c=l},1082:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(243),s=t(242),a=t(927),o=t(90),r=t(244),d=t.n(r);const l=o.Locale.getTranslate("components.buttons"),c=({step:e,steps:n,onStepChange:t,onSubmit:o,submitButton:r,cancelButton:d,...c})=>{const m=(0,s.useRef)(),[u,p]=(0,s.useState)(0),g=u+e,{children:f,formPrefix:b,embeddedForms:x,backButton:h,nextButton:j}={backButton:{},nextButton:{},...n[g]},v=g===n.length-1,w=0===g,S=()=>{m.current.handleEmbeddedFormValues(),p((n=>t(n+e,n+e+1)-e))};return(0,s.jsx)(a.default,{...c,ref:m,additionalButtons:[w&&d&&(0,s.jsx)(i.Button,{children:(0,s.jsx)(l,{content:"cancel"}),...d},"cancel"),!w&&h&&(0,s.jsx)(i.Button,{arrow:"backward",onClick:()=>{m.current.handleEmbeddedFormValues(),p((n=>t(n+e,n+e-1)-e))},children:(0,s.jsx)(l,{content:"back"}),...h},"back"),!v&&j&&(0,s.jsx)(i.Button,{intent:"primary",onClick:S,arrow:"forward",children:(0,s.jsx)(l,{content:"nextWithoutArrow"}),...j},"next"),v&&r&&(0,s.jsx)(i.Button,{intent:"primary",arrow:"forward",onClick:()=>m.current.submit(),children:(0,s.jsx)(l,{content:"ok"}),...r},"submit")],onSubmit:v?o:S,onError:i=>{const s=n.findIndex((({formPrefix:e})=>""===e)),a=Object.keys(i).map((e=>{const t=n.findIndex((({formPrefix:n,embeddedForms:t=[]})=>n===e||t.any((({name:n})=>n===e))));return t>=0?t:s}));p(t(g,a.length>0?Math.min(...a):e)-e)},applyButton:!1,submitButton:!1,cancelButton:!1,formPrefix:b,embeddedForms:x,children:f})};c.propTypes={step:d().number,steps:d().arrayOf(d().shape({formPrefix:d().string,embeddedForms:d().array,children:d().node,nextButton:d().bool,backButton:d().bool})),onStepChange:d().func,onSubmit:d().func,submitButton:d().object,cancelButton:d().object},c.defaultProps={step:0,steps:[],onStepChange:(e,n)=>n,onSubmit:void 0,submitButton:{},cancelButton:{}};const m=c},1079:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(1080)},1089:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(243),s=t(244),a=t.n(s),o=t(90),r=t(242);const d=o.Locale.getTranslate("components.forms.ip-addresses-selector"),l=({ipAddresses:e,namePrefix:n,type:t,isOtherTypeAvailable:s,getIpAddressType:a,...o})=>{const l=(0,i.useTranslate)("components.forms.ip-addresses-selector");return!!e.length&&(0,r.jsxs)(i.FormFieldSelect,{label:(0,r.jsx)(d,{content:s?`${t}Address`:"ipAddress"}),name:`${n}[${t}]`,...o,children:[e.map((({id:e,ipAddress:n,publicIpAddress:t,type:s})=>(0,r.jsx)(i.SelectOption,{value:e,children:`${t||n}${a(s)}`},e))),s&&(0,r.jsx)(i.SelectOption,{value:"none",children:l("noIpAddressHint")})]},t)};l.propTypes={ipAddresses:a().array.isRequired,namePrefix:a().string.isRequired,type:a().string.isRequired,isOtherTypeAvailable:a().bool.isRequired,getIpAddressType:a().func.isRequired};const c=l},1088:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>m,TYPE_IPV4:()=>d,TYPE_IPV6:()=>l,TYPE_SHARED:()=>c,default:()=>p});var i=t(243),s=t(244),a=t.n(s),o=t(242),r=t(1089);const d="ipv4",l="ipv6",c="SHARED",m="EXCLUSIVE",u=({ipAddresses:e,namePrefix:n,isIPv6Supported:t,...s})=>{const a=(0,i.useTranslate)("components.forms.ip-addresses-selector"),u=(0,o.useMemo)((()=>e.filter((({isIPv6:e,isBroken:n})=>!e&&!n))),[e]),p=(0,o.useMemo)((()=>e.filter((({isIPv6:e,isBroken:n})=>e&&!n))),[e]),g=(0,o.useCallback)((e=>{switch(e){case c:return` (${a("shared")})`;case m:return` (${a("exclusive")})`;default:return""}}),[a]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.default,{ipAddresses:u,namePrefix:n,type:d,isOtherTypeAvailable:t&&!!p.length,getIpAddressType:g,...s}),t&&(0,o.jsx)(r.default,{ipAddresses:p,namePrefix:n,type:l,isOtherTypeAvailable:!!u.length,getIpAddressType:g,...s})]})};u.propTypes={ipAddresses:a().array.isRequired,namePrefix:a().string.isRequired,isIPv6Supported:a().bool},u.defaultProps={isIPv6Supported:!0}
1;const p=u},1087:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>i.TYPE_EXCLUSIVE,default:()=>i.default,prepareBackendData:()=>s});var i=t(1088);const s=e=>{const n=[];return Object.keys(e).forEach((t=>{Object.keys(e[t]).forEach((s=>{"none"!==s&&n.push({id:s,ipAddress:e[t][s],isIPv6:t===i.TYPE_IPV6})}))})),n}},1075:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_CUSTOM:()=>c,TYPE_TECH:()=>l,default:()=>b});var i=t(243),s=t(242),a=t(244),o=t.n(a),r=t(90),d=t(1076);const l="tech",c="custom",m=r.Locale.getTranslate("components.forms.domain.tech-domain-name"),u=({isEnabled:e,isDefault:n,url:t,vendor:a,maxDomainLength:o,typeName:r,name:d,ipAddress:u,onDomainNameChange:f,onTypeChange:b})=>{const[x,h]=(0,s.useState)(e&&n?l:c);if(!e)return(0,s.jsx)(p,{name:d,isEnabled:!1,onDomainNameChange:f});const j=[{key:c,icon:(0,s.jsx)(i.Icon,{name:"ribbon",intent:"success"})},{key:l,icon:(0,s.jsx)(i.Icon,{name:"rocket",intent:"info"})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Section,{title:(0,s.jsx)(m,{content:"title"}),vertical:!0,children:(0,s.jsx)(i.FormField,{name:r,onChange:e=>(e=>{h(e),b(e),f("")})(e),children:({getId:e,getName:n,getValue:t,setValue:a,isDisabled:o})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.ItemList,{stretchable:!0,selectable:!0,minColumnWidth:270,gap:"sm",value:t(),onSelect:e=>{e!==x&&a(e)},children:j.map((({key:e,icon:n})=>(0,s.jsx)(i.Item,{icon:n,value:e,"data-action":`use-${e}-domain`,title:(0,s.jsx)(i.Heading,{level:"4",children:(0,s.jsx)(i.Paragraph,{children:(0,s.jsx)(m,{content:`${e}DomainTitle`})})}),disabled:o(),children:(0,s.jsx)(i.Text,{fontSize:"md",children:(0,s.jsx)(m,{content:`${e}DomainText`})})},e)))}),(0,s.jsx)("input",{hidden:!0,id:e(),name:n(),value:t(),readOnly:!0})]})})}),x===l?(0,s.jsx)(g,{name:d,ipAddress:u,url:t,vendor:a,maxDomainLength:o,onDomainNameChange:f}):(0,s.jsx)(p,{name:d,isEnabled:!0,onDomainNameChange:f})]})},p=({name:e,isEnabled:n,onDomainNameChange:t})=>(0,s.jsx)(i.Section,{vertical:!0,children:(0,s.jsx)(d.default,{name:e,label:n?(0,s.jsx)(m,{content:"customDomain"}):(0,s.jsx)(m,{content:"domainName"}),onChange:t,required:!0})});p.propTypes={name:o().string.isRequired,isEnabled:o().bool.isRequired,onDomainNameChange:o().func.isRequired};const g=({name:e,onDomainNameChange:n,...t})=>(0,s.jsx)(i.Section,{vertical:!0,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.FormField,{label:(0,s.jsx)(m,{content:"techDomain"}),name:e,onChange:e=>n(e),children:({getId:e,getName:n,...i})=>(0,s.jsx)(f,{id:e(),name:n(),...i,...t})}),(0,s.jsxs)(i.Cuttable,{maxHeight:24,children:[(0,s.jsx)(i.Paragraph,{children:(0,s.jsx)(m,{content:"techDomainDesc"})}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsx)(m,{content:"techDomainRandom"})}),(0,s.jsx)("li",{children:(0,s.jsx)(m,{content:"techDomainDns"})})]}),(0,s.jsx)(i.Paragraph,{children:(0,s.jsx)(m,{content:"techDomainSwitch"})})]})]})});g.propTypes={name:o().string.isRequired,onDomainNameChange:o().func.isRequired};const f=({id:e,name:n,ipAddress:t,url:a,vendor:o,getValue:r,setValue:d,maxDomainLength:l})=>{const[c,u]=(0,s.useState)(!1),[p,g]=(0,s.useState)(t),[f,b]=(0,s.useState)({}),x=(0,s.useCallback)((async()=>{if(b({}),!r()||t!==p)if(t){u(!0);try{const e=await(async({url:e,ipAddress:n,vendor:t,maxDomainLength:i})=>{const s=await fetch(e,{method:"POST",body:JSON.stringify({ip_address:n,vendor:t,max_length:i})}),{subdomain:a}=await s.json();if(!a)throw new Error("subdomain is empty");return a})({url:a,ipAddress:t,vendor:o,maxDomainLength:l});d(e),g(t)}catch{b({error:(0,s.jsx)(m,{content:"error"})})}finally{u(!1)}}else b({noIpAddress:(0,s.jsx)(m,{content:"errorNoIpAddress"})})}),[r,d,t,p,a,o,l]);return(0,s.useEffect)((()=>{x()}),[t]),(0,s.jsxs)(s.Fragment,{children:[c?(0,s.jsx)(i.Status,{progress:!0,children:(0,s.jsx)(m,{content:"generating"})}):(0,s.jsx)(i.Text,{bold:!0,children:r()}),(0,s.jsx)("input",{hidden:!0,id:e,name:n,value:r(),readOnly:!0}),Object.keys(f).map((e=>(0,s.jsxs)(i.Alert,{intent:"danger",children:[(0,s.jsx)(i.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})," ",f[e]]},e)))]})};f.propTypes={id:o().string.isRequired,name:o().string.isRequired,ipAddress:o().string,url:o().string.isRequired,vendor:o().string.isRequired,maxDomainLength:o().number.isRequired,getValue:o().func.isRequired,setValue:o().func.isRequired},f.defaultProps={ipAddress:null},u.propTypes={isEnabled:o().bool.isRequired,isDefault:o().bool.isRequired,url:o().string.isRequired,vendor:o().string.isRequired,maxDomainLength:o().number.isRequired,typeName:o().string.isRequired,name:o().string.isRequired,ipAddress:o().string,onDomainNameChange:o().func.isRequired,onTypeChange:o().func.isRequired},u.defaultProps={ipAddress:null};const b=u},1076:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(243),s=t(244),a=t.n(s),o=t(242);const r=({size:e,...n})=>(0,o.jsx)(i.FormField,{...n,children:({getId:n,getName:t,getValue:s,setValue:a,isDisabled:r})=>(0,o.jsxs)("div",{className:"composite-field",children:[(0,o.jsx)(i.Text,{className:"composite-field__prefix",children:"www. "}),(0,o.jsx)(i.Input,{id:n(),name:t(),value:s(),placeholder:"domain.name",size:e,onCh
1ange:e=>a(e.target.value),disabled:r()})]})});r.propTypes={size:a().string},r.defaultProps={size:"lg"};const d=r},1077:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(244),s=t.n(i),a=t(243),o=t(1078),r=t(90),d=t(242);const l=r.Locale.getSection("components.elements.lookup"),c=({data:e,dataUrl:n,lookUpParams:t,newItemValue:i,locale:s,placeholder:r,...c})=>(0,d.jsx)(a.FormField,{...c,children:({getId:a,getName:c,getValue:m,setValue:u,isDisabled:p})=>(0,d.jsx)(o.default,{id:a(),name:c(),value:m(),onChange:e=>u(e),data:e,dataUrl:n,lookUpParams:t,newItemValue:i,locale:{...l.messages,...s},disabled:p(),placeholder:r})});c.propTypes={locale:s().object,data:s().array,dataUrl:s().string,lookUpParams:s().object,newItemValue:s().object,placeholder:s().string},c.defaultProps={locale:void 0,data:void 0,dataUrl:void 0,lookUpParams:void 0,newItemValue:void 0,placeholder:void 0};const m=c},1074:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>P,useAddDomainFormInDrawer:()=>F});var i=t(242),s=t(244),a=t.n(s),o=t(735),r=t(728),d=t(90),l=t(243),c=t(756),m=t(679),u=t(1075),p=t(927),g=t(1077),f=t(1079),b=t(1085),x=t.n(b),h=t(1086),j=t(1087);const v=d.Locale.getSection("smb.components.forms.web.add-domain"),w=d.Locale.getTranslate("smb.components.forms.web.add-domain"),S=d.Locale.getTranslate("smb.components.forms.domain-info-section"),k=d.Locale.getTranslate("smb.components.forms.web._shared"),N=d.Locale.getTranslate("smb.components.forms.web.seo-settings"),T=d.Locale.getTranslate("admin.components.forms.admin-panel.form.contact-info"),y=d.Locale.getTranslate("components.buttons"),C=d.Locale.getTranslate("admin.components.forms.admin-panel.form.login-info"),I=({id:e,webspaceIpAddresses:n,allowCustomerCreation:t,allowWebspaceCreation:s,subscriptionsLookUpParams:a,canManageMailSettings:c,maxSysnameSize:b,isWindows:I,techDomain:F,settingsEnabled:P,settingsCollapsed:A,applicationWizardConfig:D,embeddedForms:E,extensionButtons:q,cancelLink:L,className:R,render:B,onProcess:V,onToggleDomainSettings:H,status:U,..._})=>{const O=(0,o.useApolloClient)(),z=(0,r.useNavigate)(),[W,$]=(0,i.useState)(_.values),[M,Y]=(0,i.useState)(Boolean(_.values.hostingSettings.root)),[G,J]=(0,i.useState)(!_.values.domainInfo),[X,Z]=(0,i.useState)(_.webspaceIpAddress),[Q,K]=(0,i.useState)(n),ee=n;(0,i.useEffect)((()=>{if(M)return;let e=/^[a-zA-Z0-9\.\-\*]+$/.match(W.domainName.name)?W.domainName.name.replace(/\*/g,"_"):"";-1!==W.hostingSettings.rootPattern.indexOf("<domain>")&&(e=W.hostingSettings.rootPattern.replace("<domain>",e)),$((0,l.setIn)(W,"hostingSettings[root]",e))}),[W.domainName.name]),(0,i.useEffect)((()=>{W.domainName.webspace&&"new"!==W.domainName.webspace.id&&O.query({query:x(),variables:{id:btoa(`Domain:${W.domainName.webspace.id}`)}}).then((({data:{domain:{ipAddresses:e}}})=>{const{publicIpAddress:n,ipAddress:t}=e[0];Z(n||t)})).catch((({message:e})=>{L&&z(L),(0,m.addToast)({intent:"danger",message:e})}))}),[W.domainName.webspace]);const ne=(e,n)=>{switch($((t=>{if(t=(0,l.setIn)(t,e,n),"domainName[name]"===e&&!G){const e=(0,h.generateUserName)({domainName:n,maxUserNameSize:b,isTechDomain:t.domainName.type===u.TYPE_TECH,isWindows:I});t=(0,l.setIn)(t,"domainInfo[userName]",e||_.values.domainInfo.userName)}return t})),["domainInfo[ipSelector][ipv4]","domainInfo[ipSelector][ipv6]","domainInfo[userName]","domainInfo[password]"].includes(e)&&d.UAT.dispatchAction("CUSTOM-VALUE",{name:e}),e){case"hostingSettings[root]":Y(!0);break;case"domainInfo[userName]":J(!0);break;case"domainName[customer]":K(n.ipAddresses?n.ipAddresses:ee)}},te="1"===W.domainName.assignToCustomer||void 0!==W.domainName.targetWebspace||W.domainName.webspace&&"new"===W.domainName.webspace.id,ie=te||!X?Object.keys(Q).map((e=>{const n=W.domainInfo.ipSelector[e];return"none"===n?null:Q[e][n]?.split(" ")[0]})).filter(Boolean)[0]:X,se=D.enabled?f.default:p.default;return(0,i.jsxs)(se,{vertical:!0,id:e,className:R,render:B,values:W,onFieldChange:ne,onSubmit:e=>(e.domainName.customer&&(e=(0,l.setIn)(e,"domainName[customer]",e.domainName.customer.id)),e.domainName.webspace&&(e=(0,l.setIn)(e,"domainName[webspace]",e.domainName.webspace.id)),e),onLongTask:V,wizardConfig:D,embeddedForms:E,extensionButtons:q,submitButton:{id:"btn-send",children:(0,i.jsx)(w,{content:"buttonAddDomain"})}
1,applyButton:!1,cancelButton:!!L&&{id:"btn-cancel",children:(0,i.jsx)(y,{content:"cancel"}),onClick:()=>{z(L)}},children:[(U||[]).filter((({status:e})=>"warning"===e)).map((({content:e})=>(0,i.jsx)(l.StatusMessage,{intent:"warning",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})},e))),(0,i.jsx)(u.default,{isEnabled:void 0!==W.domainName.type,isDefault:W.domainName.type===u.TYPE_TECH,typeName:"domainName[type]",name:"domainName[name]",ipAddress:ie,onTypeChange:e=>ne("domainName[type]",e),onDomainNameChange:e=>ne("domainName[name]",e),...F}),void 0===W.domainName.assignToCustomer?null:(0,i.jsxs)(l.Section,{children:[(0,i.jsx)(l.FormFieldCheckbox,{name:"domainName[assignToCustomer]",label:(0,i.jsx)(w,{content:"assignToCustomer"}),checkedValue:"1",uncheckedValue:"0"}),"1"===W.domainName.assignToCustomer?(0,i.jsxs)(l.Section,{collapsible:!0,children:[void 0===W.domainName.customer?null:(0,i.jsx)(g.default,{name:"domainName[customer]",label:(0,i.jsx)(w,{content:"customer"}),dataUrl:"/admin/customer/look-up",newItemValue:t?{id:"new",title:v.lmsg("createNewCustomer")}:null,locale:{label:v.lmsg("selectExistingCustomer")},required:!0}),void 0===W.domainName.customer||"new"===W.domainName.customer?.id?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.FormFieldText,{name:"customerInfo[customerContactInfo][contactName]",label:(0,i.jsx)(T,{content:"contactName"}),required:!0}),(0,i.jsx)(l.FormFieldText,{name:"customerInfo[customerContactInfo][email]",label:(0,i.jsx)(T,{content:"email"}),required:!0}),(0,i.jsx)("br",{}),(0,i.jsx)(l.Heading,{level:"4",children:(0,i.jsx)(w,{content:"customerLoginInfoHint"})}),(0,i.jsx)(l.FormFieldText,{name:"customerInfo[customerLoginInfo][userName]",label:(0,i.jsx)(C,{content:"userName"}),required:!0,autoComplete:"off"}),(0,i.jsx)(l.FormFieldPassword,{name:"customerInfo[customerLoginInfo][password]",label:(0,i.jsx)(C,{content:"password"}),required:!0,autoComplete:"new-password"}),(0,i.jsx)(l.FormFieldCheckbox,{name:"customerInfo[customerLoginInfo][isActivationRequired]",label:(0,i.jsx)(C,{content:"emailActivation"}),description:(0,i.jsx)(C,{content:"emailActivationHint"}),checkedValue:"1",uncheckedValue:"0"})]}):null]}):null]}),void 0===W.domainName.webspace||"1"===W.domainName.assignToCustomer?null:(0,i.jsx)(l.Section,{children:(0,i.jsx)(g.default,{name:"domainName[webspace]",label:(0,i.jsx)(w,{content:"target"}),dataUrl:"/smb/web/subscription-look-up",newItemValue:s?{id:"new",title:v.lmsg("createNewTarget")}:null,locale:{label:v.lmsg("selectExistingTarget")},lookUpParams:a,required:!0})}),te?P?(0,i.jsxs)(l.Section,{id:"domainInfo",title:(0,i.jsx)(w,{content:"webspaceLegend"}),collapsible:!0,collapsed:A,onToggle:H,children:[(0,i.jsx)(j.default,{ipAddresses:(0,j.prepareBackendData)(Q),namePrefix:"domainInfo[ipSelector]"}),(0,i.jsx)("br",{}),(0,i.jsx)(l.Heading,{level:"4",children:(0,i.jsx)(w,{content:"credentials"})}),(0,i.jsx)(l.Text,{component:"p",intent:"muted",children:(0,i.jsx)(w,{content:I?"credentialsHintWin":"credentialsHint"})}),(0,i.jsx)(l.FormFieldText,{name:"domainInfo[userName]",label:(0,i.jsx)(S,{content:"userName"}),required:!0}),(0,i.jsx)(l.FormFieldPassword,{name:"domainInfo[password]",label:(0,i.jsx)(S,{content:"password"}),required:!0})]}):null:(0,i.jsxs)(l.Section,{children:[(0,i.jsxs)(l.FormFieldSelect,{name:"hostingType[hosting]",label:(0,i.jsx)(w,{content:"hostingManagementOptions"}),children:[(0,i.jsx)(l.SelectOption,{value:"hosting",label:"hosting",children:(0,i.jsx)(w,{content:"websiteHosting"})}),(0,i.jsx)(l.SelectOption,{value:"forwarding",label:"forwarding",children:(0,i.jsx)(w,{content:"websiteForwarding"})}),(0,i.jsx)(l.SelectOption,{value:"none",label:"none",children:(0,i.jsx)(w,{content:"websiteNoHosting"})})]}),void 0===W.dnsSettings?null:(0,i.jsx)(l.FormFieldCheckbox,{name:"dnsSettings[dns]",label:(0,i.jsx)(w,{content:"dns"}),description:(0,i.jsx)(w,{content:"dnsHint"}),disabled:W.domainName.type===u.TYPE_TECH,checkedValue:W.domainName.type!==u.TYPE_TECH&&"master",uncheckedValue:"none"}),void 0===W.mailSettings?null:(0,i.jsx)(l.FormFieldCheckbox,{name:"mailSettings[mail]",label:(0,i.jsx)(w,{content:"mail"}),description:c?(0,i.jsx)(w,{content:"mailHint"}):(0,i.jsx)(w,{content:"mailHintNoPermission"}),disabled:W.domainName.type===u.TYPE_TECH,checkedValue:W.domainName.type!==u.TYPE_TECH&&"1",uncheckedValue:"0"}),"hosting"===W.hostingType.hosting?(0,i.jsxs)(l.Section,{id:"hostingSettings",title:(0,i.jsx)(w,{content:"hostingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,i.jsx)(l.FormField,{name:"hostingSettings[root]",label:(0,i.jsx)(k,{content:"documentRoot"}),description:(0,i.jsx)(k,{content:"documentRootHint"}),required:!0,children:({getId:e,getName:n,getValue:t,setValue:s})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Icon,{name:"home"})," / ",(0,i.jsx)(l.Input,{id:e(),name:n(),value:t(),onChange:({target:e})=>s(e.value)})]})}),(0,i.jsx)(l.FormFieldRadioButtons,{name:"hostingSettings[seoRedirectDirection]",label:(0,i.jsx)(N,{content:"seoRedirectDirection"}),description:(0,i.jsx)(N,{content:"seoRedirectDirectionHint"}),required:!0,options:[{value:"www",label:`www.${W.domainName.name||"<your_domain>"}`},{value:"non-www",label:W.domainName.name||"<your_domain>"},{value:"none",label:(0,i.jsx)(N,{content:"seoRedirectDirectionNone"})}]})]}):null,"forwarding"===W.hostingType.hosting?(0,i.jsxs)(l.Section,{id:"forwardingSettings",title:(0,i.jsx)(k,{content:"forwardingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,i.jsx)(l.FormFieldText,{name:"forwardingSettings[forwardTo]",label:(0,i.jsx)(k,{content:"forwardDestination"}),description:(0,i.jsx)(k,{content:"forwardDestinationHint"}),required:!0}),(0,i.jsx)(l.FormFieldRadioButtons,{name:"forwardingSettings[forwardingType]",label:(0,i.jsx)(k,{content:"forwardingTypeOptions"}),options:[{value:"std_fwd301",label:(0,i.jsx)(k,{content:"forwardingHttpCode301"}),description:(0,i.jsx)(k,{content:"forwardingHttpCode301Hint"})},{value:"std_fwd302",label:(0,i.jsx)(k,{content:"forwardingHttpCode302"}),description:(0,i.jsx)(k,{content:"forwardingHttpCode302Hint"})},{value:"frm_fwd",label:(0,i.jsx)(k,{content:"forwardingFrame"}),description:(0,i.jsx)(k,{content:"forwardingFrameHint"})}]})]}):null]})]})};I.propTypes={id:a().string.isRequired,values:a().object.isRequired,webspaceIpAddresses:a().shape({ipv4:a().object,ipv6:a().object}).isRequired,allowCustomerCreation:a().bool,allowWebspaceCreation:a().bool,subscriptionsLookUpParams:a().object,webspaceIpAddress:a().string,canManageMailSettings:a().bool,maxSysnameSize:a().number.isRequired,isWindows:a().bool.isRequired,techDomain:a().object.isRequired,settingsEnabled:a().bool,settingsCollapsed:a().bool,applicationWizardConfig:a().object,embeddedForms:a().array,extensionButtons:a().array,cancelLink:a().string,className:a().string,render:a().func,onProcess:a().func,onToggleDomainSettings:a().func,status:a().array},I.defaultProps={allowCustomerCreation:!1,allowWebspaceCreation:!1,subscriptionsLookUpParams:null,webspaceIpAddress:null,canManageMailSettings:!1,settingsEnabled:!1,settingsCollapsed:!1,embeddedForms:void 0,applicationWizardConfig:{},extensionButtons:[],cancelLink:null,className:void 0,render:void 0,onProcess:void 0,onToggleDomainSettings:void 0,status:void 0};const F=(e,n)=>(0,c.useCreateFormInDrawer)(I,"add-domain",e,n),P=I},1078:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>d});var i=t(242),s=t(90),a=t(772),o=t(244);const r=e=>{const[n,t]=(0,i.useState)(null);return(0,i.useEffect)((()=>{const n=new s.LookUp(e);return t(n),()=>{n.remove(),t(null)}}),[]),(0,i.useEffect)((()=>{n&&(e.disabled?n.disable():n.enable())}),[n,e.disabled]),n?(0,i.jsx)(a.default,{children:n}):null};
1r.propTypes={disabled:t.n(o)().bool},r.defaultProps={disabled:!1};const d=r},1086:(e,n,t)=>{"use strict";t.r(n),t.d(n,{generateUserName:()=>a,randomString:()=>i});const i=()=>Math.random().toString(36).slice(2),s=()=>`_${i()}`,a=({domainName:e,maxUserNameSize:n,isTechDomain:t,isWindows:i,postfix:a=s()})=>{let o=e;const r=!i,d=!/^[a-zA-Z0-9_.\-]+$/.test(e),l=/^[0-9]+/.test(e);if("string"!=typeof e||"string"!=typeof a)return"";if(d)return"";if(r&&l)return"";if("number"!=typeof n&&void 0!==n)return"";if(n){if(a.length>n)return"";n-=a.length}return t&&(o=o.split(".")[0]),o=o.toLowerCase().substr(0,n)+a,i&&(o=o.replace(/\.+$/,"")),o}},1273:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>p});var i=t(243),s=t(244),a=t.n(s),o=t(90),r=t(775),d=t(739),l=t(1074),c=t(242);const m=o.Locale.getTranslate("smb.controllers.web.setup"),u=({addDomainUrl:e,openTutorialUrl:n,baseClassName:s})=>{const[a]=(0,l.useAddDomainFormInDrawer)("/smb/web/setup","/smb/web/add-domain/create-webspace/true");return(0,c.jsxs)(c.Fragment,{children:[a,(0,c.jsx)(i.ListEmptyView,{className:s,title:(0,c.jsx)(m,{content:"noDomainTitle"}),description:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(m,{content:"description"}),(0,c.jsx)("br",{}),(0,c.jsx)(m,{content:"openTutorial",params:{link:(0,c.jsx)(r.default,{to:n,target:"_blank",id:"linkOpenTutorial",children:(0,c.jsx)(m,{content:"openTutorialLink"})})}})]}),image:(0,c.jsx)("img",{src:t(1274),width:"408",alt:""}),actions:(0,c.jsx)(i.Button,{component:r.default,to:e,size:"lg",icon:"plus",intent:"primary",id:"buttonAddDomain",children:(0,c.jsx)(m,{content:"addDomain"})})})]})};u.propTypes={addDomainUrl:a().string.isRequired,openTutorialUrl:a().string.isRequired,baseClassName:a().string},u.defaultProps={baseClassName:"web-setup-panel"};const p=(0,d.withPageLayout)(u)},1272:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(1273)},1274:e=>{e.exports=Jsw.skinUrl+"/images/add-domain.png?d190c8c6ec4abdd19916bbce32c98082"},1083:e=>{e.exports=Jsw.skinUrl+"/images/code.svg?e9fb9feb605b8cf334414f688a603918"},1084:e=>{e.exports=Jsw.skinUrl+"/images/upload-files.svg?e6091d3474a27a3eafe63b2d09b1b943"},1085:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetWebspaceIpAddress"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"domain"},name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ipAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicIpAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ipAddress"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:217}};n.loc.source={body:"query GetWebspaceIpAddress($id: ID!) {\r\n    domain: node(id: $id) {\r\n        ... on Domain {\r\n            ipAddresses {\r\n                publicIpAddress\r\n                ipAddress\r\n            }\r\n        }\r\n    }\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function s(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.GetWebspaceIpAddress=function(e,n){var t={kind:e.kind,definitions:[s(e,n
1)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=i[n]||new Set,o=new Set,r=new Set;for(a.forEach((function(e){r.add(e)}));r.size>0;){var d=r;r=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var i=s(e,n);i&&t.definitions.push(i)})),t}(n,"GetWebspaceIpAddress")}}]);
2//# sourceMappingURL=setup.js.map?52cb52a7dcfa6001d03a

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.