PageSourceSearch

https://diariodecuba.net/cp/javascript/views/admin/customer/domains.js?3dbc46b8e876f273d118

js diariodecuba.net collected 2026-10-03 22:36:35 UTC 51,197 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["views/admin/customer/domains"],{1749(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>b});var i=t(396),s=t(787),a=t.n(s),o=t(803),r=t.n(o),l=t(95),d=t(715),c=t(1753),m=t(1755),p=t(1756);t(1758);const u=l.Locale.getTranslate("components.domain-applications.applications"),g=(e,n)=>`ext-${e}:${n??e}`,h=({onFieldChange:e,onStepChange:n,formPrefix:s="",wizardConfig:a={enabled:!0,blankSite:!0,uploadFiles:!0,mailHosting:!0},isMailServiceSupported:o,embeddedForms:l=[],extensionButtons:h=[],values:b,children:x=null,entity:f,className:j,...v})=>{const y=(0,d.useLocation)(),[w,S]=(0,i.useState)(()=>new URLSearchParams(y.search).get("appName")),T=n=>{e("applicationName",n)},k=[a.blankSite&&{name:"blank-site",icon:t(1750),title:(0,i.jsx)(u,{content:"blank-site.title"}),description:(0,i.jsx)(u,{content:"blank-site.description"})},a.uploadFiles&&{name:"upload-files",icon:t(1751),title:(0,i.jsx)(u,{content:"upload-files.title"}),description:(0,i.jsx)(u,{content:"upload-files.description"})},...h.map(({id:e,extensionId:n,title:t,icon:i,description:s})=>({name:g(n,e),id:e,icon:i,title:t,description:s})),a.mailHosting&&o&&{name:"mail-hosting",icon:t(1752),title:(0,i.jsx)(u,{content:"mail-hosting.title"}),description:(0,i.jsx)(u,{content:"mail-hosting.description"})}].filter(Boolean),C=b.applicationName?k.find(({name:e})=>e===b.applicationName):null,N=C&&k.length>1,I=[k.length>1&&{key:"chooseApplicationStep",children:(0,i.jsx)(c.default,{onApplicationSelect:T,applicationsList:k}),nextButton:!1},{key:"addDomainStep",formPrefix:s,children:(0,i.jsxs)(i.Fragment,{children:[N&&(0,i.jsx)(p.default,{icon:C.icon,applicationTitle:C.title,entity:f}),x]}),embeddedForms:l}].filter(Boolean);if((0,i.useEffect)(()=>{if(0===k.length&&T("blank-site"),1===k.length){const[{name:e}]=k;T(e)}},[]),w&&!b.applicationName&&k.length>1){const e=k.find(({name:e,id:n})=>e===w||e===g(w,n));e&&T(e.name)}const A=b.applicationName&&1!==I.length?1:0;return(0,i.useEffect)(()=>{n?.(I[A].key)},[A]),(0,i.jsx)(m.default,{...v,className:r()(j,{"application-wizard-form__with-selected-info":N}),values:b,onFieldChange:e,onStepChange:(n,t)=>0===t&&I.length>1?(e("applicationName",null),w&&(S(null),window.history.replaceState(null,"",y.pathname)),n):t,step:A,steps:I})};h.propTypes={values:a().object.isRequired,className:a().string,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}),isMailServiceSupported:a().bool.isRequired,embeddedForms:a().array,extensionButtons:a().array,entity:a().oneOf(["domain","subscription"])};const b=h},1753(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(397),s=t(787),a=t.n(s),o=t(95),r=(t(1754),t(396));const l=o.Locale.getTranslate("components.domain-applications"),d=({onApplicationSelect:e,applicationsList:n=[]})=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Heading,{level:"3",children:(0,r.jsx)(l,{content:"title"})}),(0,r.jsx)(i.ItemList,{minColumnWidth:220,gap:"xs",selectable:!0,stretchable:!0,children:n.map(({id:n,name:t,icon:s,title:a,description:o})=>(0,r.jsx)(i.Item,{"data-action":t,role:"button",icon:(0,r.jsx)(i.Icon,{src:s,intent:"info",size:"48",className:"choose-application-step__icon"}),"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))})]});d.propTypes={onApplicationSelect:a().func.isRequired,applicationsList:a().arrayOf(a().shape({name:a().string.isRequired,icon:a().string.isRequired,title:a().node,description:a().node}))};const c=d},1755(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(397),s=t(396),a=t(1371),o=t(95),r=t(787),l=t.n(r);const d=o.Locale.getTranslate("components.buttons"),c=({step:e=0,steps:n=[],onStepChange:t=(e,n)=>n,onSubmit:o,submitButton:r={},cancelButton:l={},...c})=>{const m=(0,s.useRef)(),[p,u]=(0,s.useState)(0),g=p+e,{children:h,formPrefix:b,embeddedForms:x,backButton:f,nextButton:j}={backButton:{},nextButton:{},...n[g]},v=g===n.length-1,y=0===g,w=n[g]?.key??g,S=()=>{m.current.handleEmbeddedFormValues(),u(n=>t(n+e,n+e-1)-e)},T=()=>{m.current.handleEmbeddedFormValues(),u(n=>t(n+e,n+e+1)-e)},k=()=>m.current.submit();return(0,s.jsx)(a.default,{...c,ref:m,additionalButtons:(()=>
1{const e=[y&&l&&(0,s.jsx)(i.Button,{id:"btn-cancel","data-type":w,children:(0,s.jsx)(d,{content:"cancel"}),...l},"cancel"),!y&&f&&(0,s.jsx)(i.Button,{id:"btn-back","data-type":w,arrow:"backward",onClick:S,children:(0,s.jsx)(d,{content:"back"}),...f},"back"),!v&&j&&(0,s.jsx)(i.Button,{id:"btn-next","data-type":w,intent:"primary",onClick:T,arrow:"forward",children:(0,s.jsx)(d,{content:"nextWithoutArrow"}),...j},"next")];return v&&r&&e.push((0,s.isValidElement)(r)?(0,s.cloneElement)(r,{handleSubmit:k}):(0,s.jsx)(i.Button,{id:"btn-submit","data-type":w,intent:"primary",arrow:"forward",onClick:k,children:(0,s.jsx)(d,{content:"ok"}),...r},"submit")),e})(),submitButton:!1,onSubmit:v?o:T,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.some(({name:n})=>n===e));return t>=0?t:s});u(t(g,a.length>0?Math.min(...a):e)-e)},applyButton:!1,cancelButton:!1,formPrefix:b,embeddedForms:x,children:h})};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,key:l().string})),onStepChange:l().func,onSubmit:l().func,submitButton:l().object,cancelButton:l().object};const m=c},1756(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(787),s=t.n(i),a=t(95),o=t(397),r=(t(1757),t(396));const l=a.Locale.getTranslate("components.domain-applications.applications"),d=a.Locale.getSection("components.domain-applications.applications"),c=({icon:e,entity:n="domain",applicationTitle:t})=>(0,r.jsxs)("div",{className:"application-wizard-selected-application-info",children:[(0,r.jsx)(o.Icon,{src:e,size:"32",alt:d.lmsg("selectedOptionIcon")}),(0,r.jsx)(l,{component:"div",content:"selectedOption",params:{optionName:(0,r.jsx)(o.Text,{bold:!0,children:t}),entity:d.lmsg(`${n}Entity`)}})]});c.propTypes={icon:s().string.isRequired,applicationTitle:s().node.isRequired,entity:s().oneOf(["domain","subscription"])};const m=c},1748(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(1749)},1537(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(397),s=t(787),a=t.n(s),o=t(95),r=t(396);const l=o.Locale.getTranslate("components.forms.ip-addresses-selector"),d=({ipAddresses:e,namePrefix:n,type:t,isOtherTypeAvailable:s,getIpAddressType:a,...o})=>{const d=(0,i.useTranslate)("components.forms.ip-addresses-selector");return!!e.length&&(0,r.jsxs)(i.FormFieldSelect,{label:(0,r.jsx)(l,{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:d("noIpAddressHint")})]},t)};d.propTypes={ipAddresses:a().array.isRequired,namePrefix:a().string.isRequired,type:a().string.isRequired,isOtherTypeAvailable:a().bool.isRequired,getIpAddressType:a().func.isRequired};const c=d},1536(e,n,t){"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>m,TYPE_IPV4:()=>l,TYPE_IPV6:()=>d,TYPE_SHARED:()=>c,default:()=>u});var i=t(397),s=t(787),a=t.n(s),o=t(396),r=t(1537);const l="ipv4",d="ipv6",c="SHARED",m="EXCLUSIVE",p=({ipAddresses:e,namePrefix:n,isIPv6Supported:t=!0,...s})=>{const a=(0,i.useTranslate)("components.forms.ip-addresses-selector"),p=(0,o.useMemo)(()=>e.filter(({isIPv6:e,isBroken:n})=>!e&&!n),[e]),u=(0,o.useMemo)(()=>e.filter(({isIPv6:e,isBroken:n})=>e&&!n),[e]),g=(0,o.useCallback)(e=>{switch(e){case c:return` (${a("shared")})`;case m:return` (${a("exclusive")})`;default:return""}},[a]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.default,{ipAddresses:p,namePrefix:n,type:l,isOtherTypeAvailable:t&&!!u.length,getIpAddressType:g,...s}),t&&(0,o.jsx)(r.default,{ipAddresses:u,namePrefix:n,type:d,isOtherTypeAvailable:!!p.length,getIpAddressType:g,...s})]})};p.propTypes={ipAddresses:a().array.isRequired,namePrefix:a().string.isRequired,isIPv6Supported:a().bool};const u=p},1535(e,n,t){"use strict";t.r(n),t.d(n,{TYPE_EXCLUSIVE:()=>i.TYPE_EXCLUSIVE,TYPE_SHARED:()=>i.TYPE_SHARED,default:()=>i.default,prepareBackendData:()=>s});var i=t(1536);const s=e=>{const n=[];return Object.keys(e).forEach(t=>
1{Object.keys(e[t]).forEach(s=>{"none"!==s&&n.push({id:s,ipAddress:e[t][s],isIPv6:t===i.TYPE_IPV6})})}),n}},1746(e,n,t){"use strict";t.r(n),t.d(n,{TYPE_CUSTOM:()=>c,TYPE_TECH:()=>d,default:()=>b});var i=t(397),s=t(396),a=t(787),o=t.n(a),r=t(95),l=t(1747);const d="tech",c="custom",m=r.Locale.getTranslate("components.forms.domain.tech-domain-name"),p=({isEnabled:e,isDefault:n,url:t,vendor:a,maxDomainLength:o,typeName:r,name:l,ipAddress:p=null,onDomainNameChange:h,onTypeChange:b})=>{const[x,f]=(0,s.useState)(e&&n?d:c);if(!e)return(0,s.jsx)(u,{name:l,isEnabled:!1,onDomainNameChange:h});const j=[{key:c,icon:(0,s.jsx)(i.Icon,{name:"ribbon",intent:"success"})},{key:d,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=>{f(e),b(e),h("")})(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,role:"button",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===d?(0,s.jsx)(g,{name:l,ipAddress:p,url:t,vendor:a,maxDomainLength:o,onDomainNameChange:h}):(0,s.jsx)(u,{name:l,isEnabled:!0,onDomainNameChange:h})]})},u=({name:e,isEnabled:n,onDomainNameChange:t})=>(0,s.jsx)(i.Section,{vertical:!0,children:(0,s.jsx)(l.default,{name:e,label:n?(0,s.jsx)(m,{content:"customDomain"}):(0,s.jsx)(m,{content:"domainName"}),onChange:t,required:!0})});u.propTypes={name:o().string.isRequired,isEnabled:o().bool.isRequired,onDomainNameChange:o().func.isRequired};const g=({name:e,onDomainNameChange:n,...t})=>(0,s.jsx)(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)(h,{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 h=({id:e,name:n,ipAddress:t=null,url:a,vendor:o,getValue:r,setValue:l,maxDomainLength:d})=>
1{const[c,p]=(0,s.useState)(!1),[u,g]=(0,s.useState)(t),[h,b]=(0,s.useState)({}),x=(0,s.useCallback)(async()=>{if(b({}),!r()||t!==u)if(t){p(!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:d});l(e),g(t)}catch{b({error:(0,s.jsx)(m,{content:"error"})})}finally{p(!1)}}else b({noIpAddress:(0,s.jsx)(m,{content:"errorNoIpAddress"})})},[r,l,t,u,a,o,d]);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(h).map(e=>(0,s.jsxs)(i.Alert,{intent:"danger",children:[(0,s.jsx)(i.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})," ",h[e]]},e))]})};h.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},p.propTypes={isEnabled:o().bool.isRequired,isDefault:o().bool.isRequired,url:o().string.isRequired,vendor:o().string.isRequired,maxDomainLength:o().number.isRequired,typeName:o().string.isRequired,name:o().string.isRequired,ipAddress:o().string,onDomainNameChange:o().func.isRequired,onTypeChange:o().func.isRequired};const b=p},1747(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>l});var i=t(397),s=t(787),a=t.n(s),o=t(396);const r=({size:e="lg",...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,onChange:e=>a(e.target.value),disabled:r()})]})});r.propTypes={size:a().string};const l=r},1532(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(787),s=t.n(i),a=t(397),o=t(1533),r=t(95),l=t(396);const d=r.Locale.getSection("components.elements.lookup"),c=({data:e,dataUrl:n,lookUpParams:t,newItemValue:i,locale:s,placeholder:r,...c})=>(0,l.jsx)(a.FormField,{...c,children:({getId:a,getName:c,getValue:m,setValue:p,isDisabled:u})=>(0,l.jsx)(o.default,{id:a(),name:c(),value:m(),onChange:e=>p(e),data:e,dataUrl:n,lookUpParams:t,newItemValue:i,locale:{...d.messages,...s},disabled:u(),placeholder:r})});c.propTypes={locale:s().object,data:s().array,dataUrl:s().string,lookUpParams:s().object,newItemValue:s().object,placeholder:s().string};const m=c},1745(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>A,useAddDomainFormInDrawer:()=>I});var i=t(396),s=t(787),a=t.n(s),o=t(741),r=t(715),l=t(95),d=t(397),c=t(806),m=t(663),p=t(1746),u=t(1371),g=t(1532),h=t(1748),b=t(1759),x=t.n(b),f=t(1760),j=t(1535);const v=l.Locale.getSection("smb.components.forms.web.add-domain"),y=l.Locale.getTranslate("smb.components.forms.web.add-domain"),w=l.Locale.getTranslate("smb.components.forms.domain-info-section"),S=l.Locale.getTranslate("smb.components.forms.web._shared"),T=l.Locale.getTranslate("admin.components.forms.admin-panel.form.contact-info"),k=l.Locale.getTranslate("components.buttons"),C=l.Locale.getTranslate("admin.components.forms.admin-panel.form.login-info"),N=({id:e,webspaceIpAddress:n=null,webspaceIpAddresses:t,allowCustomerCreation:s=!1,allowWebspaceCreation:a=!1,subscriptionsLookUpParams:c=null,webHostingAvailable:b=!0,canManageMailSettings:N=!1,maxSysnameSize:I,isWindows:A,techDomain:D,settingsEnabled:P=!1,settingsCollapsed:R=!1,applicationWizardConfig:E={},isMailServiceSupported:_=!1,embeddedForms:F,extensionButtons:q=[],cancelLink:L=null,className:H,render:$,onProcess:B,onToggleDomainSettings:U,status:O,...V})=>{const M=(0,o.useApolloClient)(),J=(0,r.useNavigate)(),[Y,z]=(0,i.useState)(V.values),[W,G]=(0,i.useState)(Boolean(V.values.hostingSettings.root)),[X,Q]=(0,i.useState)(!V.values.domainInfo),[Z,K]=(0,i.useState)(n),[ee,ne]=(0,i.useState)(t),te=t,ie=(0,i.useMemo)(()=>"mail-hosting"===Y.applicationName,[Y.applicationName]),[se,ae]=(0,i.useState)(b);(0,i.useEffect)(()=>
1{ie&&(z((0,d.setIn)(Y,"hostingType[hosting]","none")),Q(!0))},[ie]),(0,i.useEffect)(()=>{se||"hosting"!==Y.hostingType?.hosting||z(e=>(0,d.setIn)(e,"hostingType[hosting]","none"))},[se]),(0,i.useEffect)(()=>{if(W)return;let e=Y.domainName.name.replace(/\*/g,"_");-1!==Y.hostingSettings.rootPattern.indexOf("<domain>")&&(e=Y.hostingSettings.rootPattern.replace("<domain>",e)),z((0,d.setIn)(Y,"hostingSettings[root]",(0,l.toPunycode)(e)))},[Y.domainName.name]),(0,i.useEffect)(()=>{Y.domainName.webspace?"new"!==Y.domainName.webspace.id?M.query({query:x(),variables:{id:btoa(`Domain:${Y.domainName.webspace.id}`)}}).then(({data:{domain:e}})=>{const{htype:n,ipAddresses:t=[]}=e??{},i=t[0];if(i){const{publicIpAddress:e,ipAddress:n}=i;K(e||n)}ae("VIRTUAL"===n)}).catch(({message:e})=>{L&&J(L),(0,m.addToast)({intent:"danger",message:e})}):ae(!0):ae(b)},[Y.domainName.webspace]);const oe=(e,n)=>{switch(z(t=>{if(t=(0,d.setIn)(t,e,n),"domainName[name]"===e&&!X){const e=(0,f.generateUserName)({domainName:n,maxUserNameSize:I,isTechDomain:t.domainName.type===p.TYPE_TECH,isWindows:A});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:te)}},re="1"===Y.domainName.assignToCustomer||void 0!==Y.domainName.targetWebspace||Y.domainName.webspace&&"new"===Y.domainName.webspace.id,le=re||!Z?Object.keys(ee).map(e=>{const n=Y.domainInfo.ipSelector[e];return"none"===n?null:ee[e][n]?.split(" ")[0]}).filter(Boolean)[0]:Z,de=E.enabled?h.default:u.default;return(0,i.jsxs)(de,{vertical:!0,id:e,className:H,render:$,values:Y,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:B,wizardConfig:E,isMailServiceSupported:_,embeddedForms:F,extensionButtons:q,submitButton:{id:"btn-send",children:(0,i.jsx)(y,{content:"buttonAddDomain"})}
1,applyButton:!1,cancelButton:!!L&&{id:"btn-cancel",children:(0,i.jsx)(k,{content:"cancel"}),onClick:()=>{J(L)}},entity:"domain",children:[(O||[]).filter(({status:e})=>"warning"===e).map(({content:e})=>(0,i.jsx)(d.StatusMessage,{intent:"warning",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})},e)),(0,i.jsx)(p.default,{isEnabled:void 0!==Y.domainName.type,isDefault:Y.domainName.type===p.TYPE_TECH,typeName:"domainName[type]",name:"domainName[name]",ipAddress:le,onTypeChange:e=>oe("domainName[type]",e),onDomainNameChange:e=>oe("domainName[name]",e),...D}),void 0===Y.domainName.assignToCustomer?null:(0,i.jsxs)(d.Section,{children:[(0,i.jsx)(d.FormFieldCheckbox,{name:"domainName[assignToCustomer]",label:(0,i.jsx)(y,{content:"assignToCustomer"}),checkedValue:"1",uncheckedValue:"0"}),"1"===Y.domainName.assignToCustomer?(0,i.jsxs)(d.Section,{collapsible:!0,children:[void 0===Y.domainName.customer?null:(0,i.jsx)(g.default,{name:"domainName[customer]",label:(0,i.jsx)(y,{content:"customer"}),dataUrl:"/admin/customer/look-up",newItemValue:s?{id:"new",title:v.lmsg("createNewCustomer")}:null,locale:{label:v.lmsg("selectExistingCustomer")},required:!0}),void 0===Y.domainName.customer||"new"===Y.domainName.customer?.id?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.FormFieldText,{name:"customerInfo[customerContactInfo][contactName]",label:(0,i.jsx)(T,{content:"contactName"}),required:!0}),(0,i.jsx)(d.FormFieldText,{name:"customerInfo[customerContactInfo][email]",label:(0,i.jsx)(T,{content:"email"}),required:!0}),(0,i.jsx)("br",{}),(0,i.jsx)(d.Heading,{level:"4",children:(0,i.jsx)(y,{content:"customerLoginInfoHint"})}),(0,i.jsx)(d.FormFieldText,{name:"customerInfo[customerLoginInfo][userName]",label:(0,i.jsx)(C,{content:"userName"}),required:!0,autoComplete:"off"}),(0,i.jsx)(d.FormFieldPassword,{name:"customerInfo[customerLoginInfo][password]",label:(0,i.jsx)(C,{content:"password"}),required:!0,autoComplete:"new-password"}),(0,i.jsx)(d.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===Y.domainName.webspace||"1"===Y.domainName.assignToCustomer?null:(0,i.jsx)(d.Section,{children:(0,i.jsx)(g.default,{name:"domainName[webspace]",label:(0,i.jsx)(y,{content:"target"}),dataUrl:"/smb/web/subscription-look-up",newItemValue:a?{id:"new",title:v.lmsg("createNewTarget")}:null,locale:{label:v.lmsg("selectExistingTarget")},lookUpParams:c,required:!0})}),re?P?(0,i.jsxs)(d.Section,{id:"domainInfo",title:(0,i.jsx)(y,{content:"webspaceLegend"}),collapsible:!0,collapsed:R,onToggle:U,children:[(0,i.jsx)(j.default,{ipAddresses:(0,j.prepareBackendData)(ee),namePrefix:"domainInfo[ipSelector]"}),(0,i.jsx)("br",{}),!ie&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Heading,{level:"4",children:(0,i.jsx)(y,{content:"credentials"})}),(0,i.jsx)(d.Text,{component:"p",intent:"muted",children:(0,i.jsx)(y,{content:A?"credentialsHintWin":"credentialsHint"})}),(0,i.jsx)(d.FormFieldText,{name:"domainInfo[userName]",label:(0,i.jsx)(w,{content:"userName"}),required:!0}),(0,i.jsx)(d.FormFieldPassword,{name:"domainInfo[password]",label:(0,i.jsx)(w,{content:"password"}),required:!0})]})]}):null:(0,i.jsxs)(d.Section,{children:[(0,i.jsxs)(d.FormFieldSelect,{name:"hostingType[hosting]",label:(0,i.jsx)(y,{content:"hostingManagementOptions"}),children:[se?(0,i.jsx)(d.SelectOption,{value:"hosting",label:"hosting",children:(0,i.jsx)(y,{content:"websiteHosting"})}):null,(0,i.jsx)(d.SelectOption,{value:"forwarding",label:"forwarding",children:(0,i.jsx)(y,{content:"websiteForwarding"})}),(0,i.jsx)(d.SelectOption,{value:"none",label:"none",children:(0,i.jsx)(y,{content:"websiteNoHosting"})})]}),void 0===Y.dnsSettings?null:(0,i.jsx)(d.FormFieldCheckbox,{name:"dnsSettings[dns]",label:(0,i.jsx)(y,{content:"dns"}),description:(0,i.jsx)(y,{content:"dnsHint"}),disabled:Y.domainName.type===p.TYPE_TECH,checkedValue:Y.domainName.type!==p.TYPE_TECH&&"master",uncheckedValue:"none"}),void 0===Y.mailSettings?null:(0,i.jsx)(d.FormFieldCheckbox,{name:"mailSettings[mail]",label:(0,i.jsx)(y,{content:"mail"}),description:N?(0,i.jsx)(y,{content:"mailHint"}):(0,i.jsx)(y,{content:"mailHintNoPermission"}),checkedValue:"1",uncheckedValue:"0"}),"hosting"===Y.hostingType.hosting?(0,i.jsxs)(d.Section,{id:"hostingSettings",title:(0,i.jsx)(y,{content:"hostingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,i.jsx)(d.FormField,{name:"hostingSettings[root]",label:(0,i.jsx)(S,{content:"documentRoot"}),description:(0,i.jsx)(S,{content:"documentRootHint"}),required:!0,children:({getId:e,getName:n,getValue:t,setValue:s})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Icon,{name:"home"})," / ",(0,i.jsx)(d.Input,{id:e(),name:n(),value:t(),onChange:({target:e})=>s(e.value)})]})}),(0,i.jsx)(d.FormFieldRadioButtons,{name:"hostingSettings[seoRedirectDirection]",label:(0,i.jsx)(S,{content:"seoRedirectDirection"}),description:(0,i.jsx)(S,{content:"seoRedirectDirectionHint"}),required:!0,options:[{value:"www",label:`www.${Y.domainName.name||"<your_domain>"}`},{value:"non-www",label:Y.domainName.name||"<your_domain>"},{value:"none",label:(0,i.jsx)(S,{content:"seoRedirectDirectionNone"})}]})]}):null,"forwarding"===Y.hostingType.hosting?(0,i.jsxs)(d.Section,{id:"forwardingSettings",title:(0,i.jsx)(S,{content:"forwardingSettingsSectionLegend"}),collapsible:!0,collapsed:!0,children:[(0,i.jsx)(d.FormFieldText,{name:"forwardingSettings[forwardTo]",label:(0,i.jsx)(S,{content:"forwardDestination"}),description:(0,i.jsx)(S,{content:"forwardDestinationHint"}),required:!0}),(0,i.jsx)(d.FormFieldRadioButtons,{name:"forwardingSettings[forwardingType]",label:(0,i.jsx)(S,{content:"forwardingTypeOptions"}),options:[{value:"std_fwd301",label:(0,i.jsx)(S,{content:"forwardingHttpCode301"}),description:(0,i.jsx)(S,{content:"forwardingHttpCode301Hint"})},{value:"std_fwd302",label:(0,i.jsx)(S,{content:"forwardingHttpCode302"}),description:(0,i.jsx)(S,{content:"forwardingHttpCode302Hint"})},{value:"frm_fwd",label:(0,i.jsx)(S,{content:"forwardingFrame"}),description:(0,i.jsx)(S,{content:"forwardingFrameHint"})}]})]}):null]})]})};N.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,webHostingAvailable:a().bool,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,isMailServiceSupported:a().bool,embeddedForms:a().array,extensionButtons:a().array,cancelLink:a().string,className:a().string,render:a().func,onProcess:a().func,onToggleDomainSettings:a().func,status:a().array};const I=(e,n)=>(0,c.useCreateFormInDrawer)(N,"add-domain",e,n),A=N},1674(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(787),s=t.n(i),a=t(95),o=t(1675);const r={id:s().string,dataUrl:s().string,operations:s().array,itemActions:s().object,columns:s().array,data:s().shape({data:s().array,state:s().object,pager:s().object,locale:s().object,additional:s().object,pathbar:s().any}
1),searchFilters:s().object,searchOveral:s().string,disabledSelectHint:s().string,isDisabledItem:s().func,onRedraw:s().func,emptyViewMode:s().oneOf(["all","items"]),emptyView:s().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,o.default)(a.List,{propsList:Object.keys(r),defaultProps:l});d.displayName="JswList",d.propTypes=r;const c=d},1533(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>l});var i=t(396),s=t(95),a=t(827),o=t(787);const r=({disabled:e=!1,...n})=>{const[t,o]=(0,i.useState)(null);return(0,i.useEffect)(()=>{const t=new s.LookUp({disabled:e,...n});return o(t),()=>{t.remove(),o(null)}},[]),(0,i.useEffect)(()=>{t&&(e?t.disable():t.enable())},[t,e]),t?(0,i.jsx)(a.default,{children:t}):null};r.propTypes={disabled:t.n(o)().bool};const l=r},1776(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>c});var i=t(787),s=t.n(i),a=t(397),o=t(95),r=t(832),l=t(396);const d=({items:e})=>e&&e.length>1?(0,l.jsx)(a.Tabs,{active:e.findIndex(({containerCls:e})=>"active"===e)+1,children:e.map(({title:e,href:n},t)=>(0,l.jsx)(a.Tab,{title:e,component:r.default,to:(0,o.prepareUrl)(n)},t))}):null;d.propTypes={items:s().arrayOf(s().shape({title:s().string.isRequired,href:s().string.isRequired,containerCls:s().string}))};const c=d},1675(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>a});var i=t(396),s=t(95);const a=(e,{propsList:n=[],setters:t={},defaultProps:a={}})=>o=>{const r=(0,i.useRef)(),l=(0,i.useRef)(),[d,c]=Object.entries({...a,...o}).reduce((e,[t,i])=>(e[n.includes(t)?0:1][t]=i,e),[{},{}]),m=n.map(e=>{const n=d[e];return t[e]?(l.current?.[t[e]](n),null):n});return(0,i.useLayoutEffect)(()=>(l.current=new e(d),(0,s.render)(r.current,l.current),()=>{l.current.remove(),l.current=null}),[c.key,...m]),(0,i.jsx)("div",{ref:r,...c})}},1777(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(396),s=t(787),a=t(95),o=t(832),r=t(1674),l=t(1745),d=t(1768);const c=a.Locale.getSection("admin.components.lists.domains"),m=a.Locale.getSection("components.icp-permit"),p=({pageUrl:e,data:n,searchFilters:s,dataAction:p,deleteAction:u,allowCreateDomain:g=!1,allowManageSubdomain:h=!1,allowManageDomainAliases:b=!1,showDeleteButton:x=!1,isHomonymSearchEnabled:f=!1,showOwnerName:j=!1,showExpirationDate:v=!1,userId:y,icpPermitSupported:w=!1,icpPermitLink:S})=>{const T=(0,i.useCallback)(({action:n}={})=>{const t=e.split("/");return n&&(t[3]=n),t.join("/")},[e]),[k]=(0,l.useAddDomainFormInDrawer)(e,T({action:"add-domain"})),C=(0,o.useNavigateCallback)(),N=(0,i.useMemo)(()=>[g?{componentType:a.SmallButton,id:"buttonAddDomain",cls:"s-btn sb-new-domain btn-primary",title:c.lmsg("buttonAddDomain"),description:c.lmsg("hintAddDomain"),href:T({action:"add-domain"}),handler:C}:null,h?{componentType:a.SmallButton,id:"buttonAddSubDomain",cls:"s-btn sb-new-subdomain",title:c.lmsg("buttonAddSubdomain"),description:c.lmsg("hintAddSubdomain"),href:T({action:"add-subdomain"})}:null,b?{componentType:a.SmallButton,id:"buttonAddDomainAlias",cls:"s-btn sb-new-domain-alias",title:c.lmsg("buttonAddDomainAlias"),description:c.lmsg("hintAddDomainAlias"),href:T({action:"add-domain-alias"})}:null,g||h||b?{componentType:a.bar.Separator}:null,{componentType:a.list.AdditionalActions,title:c.lmsg("buttonSetStatus"),description:c.lmsg("hintSetStatus"),operations:[{componentType:a.SmallButton,id:"buttonSuspendDomains",title:c.lmsg("suspendActionStatus"),description:c.lmsg("hintSuspendDomains"),addCls:"sb-suspend",cls:"sb-btn",handler(){(0,a.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/suspend/?redirect=${T()}`,skipConfirmation:!0})}},{componentType:a.SmallButton,id:"buttonDisableDomains",title:c.lmsg("disableActionStatus"),description:c.lmsg("hintDisableDomains"),addCls:"sb-turn-off",cls:"sb-btn",handler(){(0,a.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/disable/?redirect=${T()}`,skipConfirmation:!0})}},{componentType:a.SmallButton,id:"buttonActivateDomains",title:c.lmsg("activateActionStatus"),description:c.lmsg("hintActivateDomains"),addCls:"sb-activate",cls:"sb-btn",handler(){(0,a.getComponent)("domains-list").execGroupOperation({url:`/admin/domain/activate/?redirect=${T()}`,skipConfirmation:!0})}}]},x?{componentType:a.bar.Separator}:null,x?{componentType:a.SmallButton,id:"buttonRemoveSite",title:a.Locale.getSection("components.buttons").lmsg("remove"),description:c.lmsg("hintRemove"),cls:"s-btn sb-remove-selected",handler(e){const n=(0,a.getComponent)("domains-list").getSelectedItems(),t=n.reduce((e,{relatedDomains:n})=>e.concat(n),[]).filter(e=>n.every(({domainDisplayName:n})=>n!==e));(0,a.getComponent)("domains-list").execGroupOperation({url:T({action:u}),subtype:a.messageBox.SUBTYPE_DELETE,mouseEvent:e,text:c.formatMessage("removeConfirmation",{name:`<b>${(0,a.escapeHtml)(n[0]?.domainDisplayName)}</b>`,count:n.length}),description:t.length?c.lmsg("removeConfirmationSubscription",{domains:t.join(", ")}).replace(/\n/gm,"<br>"):"",isAjax:f,requestUrl:T({action:"search-homonym-data"}),loadingTitle:a.Locale.getSection("components.homonyms").lmsg("loading"),toJsonPayload:!0,submitHandler:async(e,n)=>{const{task:t,error:i}=await a.api.post((0,a.prepareUrl)("/domain/delete-async/"),{ids:n.ids});i?(0,a.addStatusMessage)("error",i):t&&"Jsw.Task.ProgressBar.Item"===t.componentType&&(0,a.getComponent)("asyncProgressBarWrapper").progressDialog(t)}
1})}}:null].filter(Boolean),[g,b,h,T,u,f,C,x]),I=(0,i.useMemo)(()=>[a.list.COLUMN_SELECTION,{header:c.lmsg("domainName"),sortable:!0,dataIndex:"domainDisplayName",renderer(e){const n=e.overviewUrl?(0,a.createElement)("a",{href:(0,a.prepareUrl)(e.overviewUrl),onclick:C},(0,a.escapeHtml)(e.domainDisplayName)):(0,a.escapeHtml)(e.domainDisplayName);if(parseInt(e.domainStatus)){const i="suspend"===e.turnOffAction,s=i?c.lmsg("statusSuspended"):c.lmsg("statusDisabled"),o=t(i?1774:1727),r=i?"suspended":"disabled";return(0,a.createElement)(".b-indent",[(0,a.createElement)("span.b-indent-icon",(0,a.createElement)("span",[(0,a.createElement)("span.tooltipData",s),(0,a.createElement)("img",{src:o,alt:r,title:""})])),n,...(0,d.createSiteDescription)(e,c)])}return(0,a.createElement)(".",[n,...(0,d.createSiteDescription)(e,c)])}},w?{header:m.lmsg("icpPermit"),sortable:!0,dataIndex:"icpStatus",renderer({icpStatus:e,icpPermit:n}){const i=1==e?m.lmsg("icpStatusAllowedDescription"):m.lmsg("icpStatusNotAllowedDescription"),s=t(1==e?1773:1778);let o=n?(0,a.escapeHtml)(n):1==e?"":m.lmsg("icpStatusNotAllowed");return S&&(o=`<a href="${S}" target="_blank">${o}</a>`),`<span class="tooltipData">${i}</span><img src="${s}" alt="" /> ${o}`}}:null,{header:c.lmsg("hostingType"),sortable:!0,dataIndex:"hostingType",renderer(e){let n="";return"alias"===e.hostingType?n=`<img src="${t(1779)}" alt="${c.lmsg("dnsIcon")}" /> ${c.lmsg("aliasFor")} <a href="http://${(0,a.escapeHtml)(e.realDomainName)}" target="_blank">${(0,a.escapeHtml)(e.realDomainDisplayName)}</a>`:"vrt_hst"===e.hostingType?n=`<img src="${t(1780)}" alt="${c.lmsg("websiteIcon")}" /> ${c.lmsg(e.parentDomainId>0?"subdomainWebsite":"website")}`:"none"===e.hostingType?n=`<img src="${t(1781)}" alt="${c.lmsg("noHostingIcon")}" /><em class="hint">${c.lmsg("noHosting")}</em>`:"frm_fwd"!==e.hostingType&&"std_fwd"!==e.hostingType||(n=`<img src="${t(1782)}" alt="${c.lmsg("forwardingToIcon")}"/> ${c.lmsg("forwardingTo")} <a href="${(0,a.escapeHtml)(e.forwardingUrl)}" target="_blank">${(0,a.escapeHtml)(e.forwardingDisplayUrl)}</a>`),n}},j?{header:c.lmsg("ownerName"),sortable:!0,dataIndex:"ownerName",renderer({ownerId:e,ownerType:n,ownerName:t,ownerCompanyName:i}){let s=null;return parseInt(e)!==y&&("client"===n?s=`/admin/customer/overview/id/${e}`:"reseller"===n&&(s=`/admin/reseller/overview/id/${e}`)),[s?(0,a.createElement)("a",{href:s,onclick:C},(0,a.escapeHtml)(t)):(0,a.escapeHtml)(t),i?`, ${(0,a.escapeHtml)(i)}`:null]}}:null,{header:c.lmsg("setupDate"),sortable:!0,dataIndex:"setupDate",renderer:({setupDateString:e})=>(0,a.escapeHtml)(e)},v?{header:c.lmsg("expirationDate"),sortable:!1,dataIndex:"expirationDate",renderer:({expirationDateString:e})=>e?(0,a.escapeHtml)(e):"&mdash;"}:null,{header:c.lmsg("diskUsage"),sortable:!0,dataIndex:"realSize",renderer:({diskUsage:e})=>(0,a.escapeHtml)(e)},{header:c.lmsg("traffic"),sortable:!0,dataIndex:"traffic"},{header:"",sortable:!1,renderer:({hostingType:e,siteUrl:n})=>"none"===e?"":(0,a.createElement)("a.s-btn.sb-publish",{href:n,target:"_blank"},(0,a.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,a.createElement)("a.s-btn.sb-view-site",{href:t,target:"_blank"},(0,a.createElement)("span",c.lmsg("previewSite")))}},{header:"",sortable:!1,renderer({manageUrl:e,ownerId:n,ownerType:t}){if(!e||parseInt(n)===y)return"";const i=`/admin${"reseller"===t?"/reseller":"/customer"}/login/id/${n}?pageUrl=${encodeURIComponent(e)}`;return(0,a.createElement)("a.s-btn.sb-login",{href:i},(0,a.createElement)("span",c.lmsg("reseller"===t?"manageInResellerPanel":"manageInCustomerPanel")))}}].filter(Boolean),[S,w,C,v,j,y]);return(0,i.jsxs)(i.Fragment,{children:[k,(0,i.jsx)(r.default,{id:"domains-list",data:n,dataUrl:T({action:p}),searchFilters:s,searchOveral:"domainName",disabledSelectHint:c.lmsg("disabledSelectHint"),operations:N,columns:I})]})};p.propTypes={pageUrl:s.PropTypes.string.isRequired,data:r.default.propTypes.data.isRequired,searchFilters:r.default.propT
1ypes.searchFilters.isRequired,dataAction:s.PropTypes.string.isRequired,deleteAction:s.PropTypes.string.isRequired,allowCreateDomain:s.PropTypes.bool,allowManageSubdomain:s.PropTypes.bool,allowManageDomainAliases:s.PropTypes.bool,showDeleteButton:s.PropTypes.bool,isHomonymSearchEnabled:s.PropTypes.bool,showOwnerName:s.PropTypes.bool,showExpirationDate:s.PropTypes.bool,userId:s.PropTypes.number,icpPermitSupported:s.PropTypes.bool,icpPermitLink:s.PropTypes.string};const u=p},1775(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>u});var i=t(95),s=t(1776),a=t(801),o=t(1777),r=t(1783),l=t(787),d=t.n(l),c=t(396);const m=i.Locale.getTranslate("components.pages.customer-domains"),p=({tabs:e,id:n,...t})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.default,{items:e}),(0,c.jsx)("p",{children:(0,c.jsx)(m,{content:"hint"})}),(0,c.jsx)(o.default,{dataAction:"domains-list-data",deleteAction:"delete-domain",pageUrl:`/admin/customer/domains/id/${n}`,...t})]});p.propTypes={tabs:s.default.propTypes.items.isRequired,id:d().number.isRequired};const u=(0,a.withPageLayout)(p,({sidebarProps:e})=>({secondary:(0,c.jsx)(r.default,{...e})}))},1783(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>h});var i=t(787),s=t.n(i),a=t(397),o=t(95),r=t(832),l=t(1309),d=t(1786),c=t(396);const m=o.Locale.getSection("admin.components.customer-sidebar"),p=o.Locale.getTranslate("admin.components.customer-sidebar"),u=o.Locale.getTranslate("admin.components.elements.status"),g=({id:e,canCreateClients:n,contactName:i,companyName:s,emailAddress:g,setupDate:h,isAdmin:b,resellersSupport:x,isActive:f,username:j,allowLogIn:v,provider:y,hasResellers:w,hasResellerCustomers:S,description:T,isIisAppPoolsPolicyMixed:k=!1})=>(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)(a.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"contactName"}),":"]})," ",(0,c.jsx)("b",{children:i})]}),s?(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(a.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"companyName"}),":"]})," ",(0,c.jsx)("b",{children:s})]}):null,g?(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(a.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)(a.Tooltip,{title:(0,c.jsx)(p,{content:"buttonEditContactHint"}),children:(0,c.jsx)(a.Action,{id:"buttonEditContactInfo",icon:{src:t(1784)},href:`/admin/customer/personal-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonEditContact"})})})}),b&&x?(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(a.Tooltip,{title:(0,c.jsx)(p,{content:"buttonConvertToResellerHint"}),children:(0,c.jsx)(a.Action,{id:"buttonConvertToReseller",icon:{src:t(1785)},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,(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(a.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"setupDate"}),":"]})," ",(0,c.jsx)("b",{children:h})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(a.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"status"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(a.Status,{intent:f?"success":"danger",children:f?(0,c.jsx)(u,{content:"onStateCustomer"}):(0,c.jsx)(u,{content:"offStateCustomer"})})})," ",(0,c.jsx)(a.AuxiliaryActions,{children:(0,c.jsx)(a.Tooltip,{title:f?(0,c.jsx)(p,{content:"buttonSuspendHint"}):(0,c.jsx)(p,{content:"buttonActivateHint"}),children:(0,c.jsx)(a.Action,{id:"buttonToggle",onClick:()=>{(0,o.redirectPost)(`/admin/customer/toggle/id/${e}`)},children:f?(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)(a.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"provider"}),":"]})," ",(0,c.jsx)("b",{children:"reseller"===y.type&&x?(0,c.jsx)(r.default,{to:`/admin/reseller/overview/id/${y.id}`,children:y.name}):y.name})," ",b&&w&&(x||S)?(0,c.jsx)(a.AuxiliaryActions,{children:(0,c.jsx)(a.Action,{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)(a.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"username"}),":"]})," ",(0,c.jsx)("b",{children:j})]}),(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(a.Tooltip,{title:(0,c.jsx)(p,{content:"buttonChangePasswordHint"}),children:(0,c.jsx)(a.Action,{id:"buttonChangePassword",icon:{src:t(1788)},href:`/admin/customer/login-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonChangePassword"})})})}),v?(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(a.Tooltip,{title:(0,c.jsx)(p,{content:"buttonLoginAsCustomerHint"}),children:(0,c.jsx)(a.Action,{id:"buttonLogin",icon:{src:t(1789)},href:`/admin/customer/login/id/${e}`,children:(0,c.jsx)(p,{content:"buttonLoginAsCustomer"})})})}):null,(0,c.jsx)(d.default,{type:"customer",id:e,name:i,descriptions:{owner:T}})]}),k?(0,c.jsx)(l.default,{id:"panel-customer-iisAppPoolSection",children:(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(a.Tooltip,{title:(0,c.jsx)(p,{content:"buttonIisAppPoolHint"}),children:(0,c.jsx)(a.Action,{id:"buttonIisAppPool",icon:{src:t(1790)},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)(a.Tooltip,{title:(0,c.jsx)(p,{content:"buttonRemoveHint"}),children:(0,c.jsx)(a.Action,{id:"buttonRemove",icon:{src:t(1791)},onClick:()=>{o.messageBox.show({type:o.messageBox.TYPE_YESNO,subtype:o.messageBox.SUBTYPE_DELETE,text:m.lmsg("buttonRemoveCustomerConfirmationTitle",{name:`<b>${(0,o.escapeHtml)(i)}</b>`}),description:m.lmsg("buttonRemoveCustomerConfirmationDescription"),async onYesClick(){const{task:n}=await o.api.post((0,o.prepareUrl)("/customer/delete-async/"),{ids:[e]});n&&"Jsw.Task.ProgressBar.Item"===n.componentType&&(0,o.getComponent)("asyncProgressBarWrapper").progressDialog(n)}})},children:(0,c.jsx)(p,{content:"buttonRemove"})})})})}):null]});g.propTypes={id:s().number.isRequired,canCreateClients:s().bool.isRequired,contactName:s().string.isRequired,companyName:s().string.isRequired,emailAddress:s().string.isRequired,setupDate:s().string.isRequired,isAdmin:s().bool.isRequired,resellersSupport:s().bool.isRequired,isActive:s().bool.isRequired,username:s().string.isRequired,allowLogIn:s().bool.isRequired,provider:s().shape({id:s().number.isRequired,type:s().string.isRequired,name:s().string.isRequired}),hasResellers:s().bool.isRequired,hasResellerCustomers:s().bool.isRequired,description:s().string.isRequired,isIisAppPoolsPolicyMixed:s().bool};const h=g},1786(e,n,t){"use strict";t.r(n),t.d(n,{default:()=>m});var i=t(787),s=t.n(i),a=t(397),o=t(95),r=t(1787),l=t(396);const d=o.Locale.getTranslate("components.forms.admin-info"),c=({type:e,id:n,name:t,descriptions:i})=>{const{edit:s,remove:o}=(0,r.createHandlers)({type:e,id:n,name:t});return Object.entries(i).map(([e,n])=>(0,l.jsxs)("div",{className:"side-panel__item",children:[(0,l.jsxs)(a.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)(a.AuxiliaryActions,{children:[(0,l.jsx)(a.Link,{id:`${e}-description-edit`,onClick:()=>s(e,n),children:n?(0,l.jsx)(d,{content:"edit"}):(0,l.jsx)(d,{content:"add"})}),n?(0,l.jsx)(a.Link,{id:`${e}-description-remove`,onClick:()=>o(e),children:(0,l.jsx)(d,{content:"remove"})}):null]})]},e))};c.propTypes={type:s().oneOf(["reseller","customer","subscription"]).isRequired,id:s().number.isRequired,name:s().string.isRequired,descriptions:s().shape({admin:s().string,reseller:s().string,owner:s().string}).isRequired};const m=c},1787(e,n,t){"use strict";t.r(n),t.d(n,{EditPopupForm:()=>
1o,createHandlers:()=>r});var i=t(95);const s=i.Locale.getSection("components.forms.admin-info"),a=i.Locale.getSection("components.buttons");class o extends i.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,i.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 o({id:"editDescription",cls:"popup-panel",hint:s.lmsg(`popupHint-${t}`),value:r,locale:{popupTitle:s.lmsg(`popupTitle-${e.type}`,{descriptionType:s.lmsg(`description-${t}`),name:(0,i.escapeHtml)(e.name)}),buttonOk:a.lmsg("save"),buttonCancel:a.lmsg("cancel")},handler(s){(0,i.redirectPost)(n,{id:e.id,type:t,description:s})}})},remove:t=>{i.messageBox.show({type:Jsw.messageBox.TYPE_YESNO,subtype:"delete",buttonTitles:{yes:a.lmsg("yes"),no:a.lmsg("no"),wait:a.lmsg("wait")},text:s.lmsg("confirmOnRemove"),onYesClick(){(0,i.redirectPost)(n,{id:e.id,type:t,description:""})}})}}}},1768(e,n,t){"use strict";t.r(n),t.d(n,{createDescription:()=>a,createSiteDescription:()=>o,truncate:()=>s});var i=t(95);const s=(e,n=50)=>e.length<n?e:`${e.slice(0,n-3)}...`,a=(e,n,t)=>(0,i.createElement)(e,[(t?`${t}: `:"")+(0,i.escapeHtml)(s(n,50)),(0,i.createElement)("span.tooltipData",(0,i.escapeHtml)(n))]),o=({adminDescription:e,resellerDescription:n,ownerDescription:t,hideResellerTitleDescription:i,hideOwnerTitleDescription:s},o,r="hint")=>[e?a(`.${r}`,e):"",n?a(`.${r}`,n,!i&&o.lmsg("resellerDescription")):"",t?a(`.${r}`,t,!s&&o.lmsg("ownerDescription")):""]},1760(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,l=!/^[a-zA-Z0-9_.\-]+$/.test(e),d=/^[0-9]+/.test(e);if("string"!=typeof e||"string"!=typeof a)return"";if(l)return"";if(r&&d)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}},1778(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/att-tr.png?f00bf7056f997d02b1565fff15ed7ab7"},1788(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/change-password.png?54304f321bc897402075b73230593f04"},1785(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/convert-to-reseller.png?92f150ae967d586471eabfbb347d4dfd"},1791(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/delete.png?27d654be29d57ad05641c2ff392035fa"},1779(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/dns.png?d10cfc4afe5c5c040eaf99c3ea14429d"},1784(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/edit-contact-info.png?052e4fc494a39464dad26f4f40e38eaf"},1782(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/forward-to-dom.png?761778de5722f4bb1f3611d27968cb0f"},1790(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/iis-app-pool.png?1bcf2ef7b099732f96f82bfb815c5146"},1789(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/login-as-customer.png?f61b4adc663106baef7704c16dd4d207"},1727(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/off.png?84d64d1bd3267c21795505b7daa43800"},1781(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/spacer.png?4710d0e07ee1a4d7ebdb1972701168fa"},1773(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-ok.png?6d52f91c87cbdc73b4ef0b5ded92c441"},1774(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-suspended.png?7968ea094f0aa3fdced5d59b0c7f3196"},1780(e){e.exports=Jsw.skinUrl+"/icons/16/plesk/website.png?ac6aa9eaf06048cbd5799a61daad9766"},1750(e){e.exports=Jsw.skinUrl+"/images/code.svg?d9dcc332aeb03168d77f5fbcc97e7bcb"},1752(e){e.exports=Jsw.skinUrl+"/images/mail.svg?e19a5f99ea85bc24608c0601bfe29fcc"},1751(e){e.exports=Jsw.skinUrl+"/images/upload-files.svg?3659f9de736ae2576023d51cbfb48963"},1759(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:"htype"},arguments:[],directives:[]},{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:225}};n.loc.source={body:"query GetWebspaceIpAddress($id: ID!) {\n    domain: node(id: $id) {\n        ... on Domain {\n            htype\n            ipAddresses {\n                publicIpAddress\n                ipAddress\n            }\n        }\n    }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,n)}),e.definitions&&e.definitions.forEach(function(e){t(e,n)})}var i={};function s(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach(function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.GetWebspaceIpAddress=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var a=i[n]||new Set,o=new Set,r=new Set;for(a.forEach(function(e){r.add(e)});r.size>0;){var l=r;r=new Set,l.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")},1758(e,n,t){"use strict";t.r(n)},1754(e,n,t){"use strict";t.r(n)},1757(e,n,t){"use strict";t.r(n)}}]);
2//# sourceMappingURL=domains.js.map?3dbc46b8e876f273d118

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.