1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/customer/subscriptions"],{801:(e,n,t)=>{"use strict";t.r(n),t.d(n,{EditPopupForm:()=>r,createHandlers:()=>a});var i=t(85);const s=i.Locale.getSection("components.forms.admin-info"),o=i.Locale.getSection("components.buttons");class r 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 a=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,a)=>{new r({id:"editDescription",cls:"popup-panel",hint:s.lmsg(`popupHint${t.capitalize()}`),value:a,locale:{popupTitle:s.lmsg(`popupTitle${e.type.capitalize()}`,{descriptionType:s.lmsg(`description${t.capitalize()}`),name:(0,i.escapeHtml)(e.name)}),buttonOk:o.lmsg("save"),buttonCancel:o.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:o.lmsg("yes"),no:o.lmsg("no"),wait:o.lmsg("wait")},text:s.lmsg("confirmOnRemove"),onYesClick(){(0,i.redirectPost)(n,{id:e.id,type:t,description:""})}})}}}},778:(e,n,t)=>{"use strict";t.r(n),t.d(n,{randomString:()=>i,generateUserName:()=>o});const i=()=>Math.random().toString(36).slice(2),s=()=>`_${i()}`,o=({domainName:e,maxUserNameSize:n,isTechDomain:t,isWindows:i,postfix:o=s()})=>{let r=e;const a=!i,l=!/^[a-zA-Z0-9_.\-]+$/.test(e),d=/^[0-9]+/.test(e);if("string"!=typeof e||"string"!=typeof o)return"";if(l)return"";if(a&&d)return"";if("number"!=typeof n&&void 0!==n)return"";if(n){if(o.length>n)return"";n-=o.length}return t&&(r=r.split(".")[0]),r=r.toLowerCase().substr(0,n)+o,i&&(r=r.replace(/\.+$/,"")),r}},725:(e,n,t)=>{"use strict";t.r(n);var i=t(204),s=t(221);n.default=(e,n=[],t={})=>o=>{const r=(0,i.useRef)(),a=(0,i.useRef)(),[l,d]=Object.entries(o).reduce(((e,[t,i])=>(e[n.includes(t)?0:1][t]=i,e)),[{},{}]),c=n.map((e=>{const n=l[e];return t[e]?(a.current?.[t[e]](n),null):n}));return(0,i.useLayoutEffect)((()=>(a.current=new e(l),(0,s.default)(r.current,a.current),()=>{a.current.remove(),a.current=null})),[d.key,...c]),(0,i.jsx)("div",{ref:r,...d})}},772:(e,n,t)=>{"use strict";t.r(n);var i=t(204),s=t(206),o=t.n(s),r=t(85),a=t(773),l=t(774);const d=r.Locale.getTranslate("components.domain-applications.applications"),c=({onFieldChange:e,onStepChange:n,formPrefix:s,wizardConfig:o,embeddedForms:r,wizardEmbeddedForms:c,values:u,children:p,...m})=>{const[b,g]=(0,i.useState)([]),h=n=>{e("applicationName",n),g([...c.filter((({ext:e,name:t})=>n===`ext-${e}-${t}`)).filter((({content:e})=>Boolean(e))).map((({ext:e,name:n,...t})=>({key:`ext-${e}-${n}`,children:"",embeddedForms:[{name:n,...t}]})))])},f=[o.blankSite&&{name:"blank-site",icon:t(775),title:(0,i.jsx)(d,{content:"blank-site.title"}),description:(0,i.jsx)(d,{content:"blank-site.description"})},o.uploadFiles&&{name:"upload-files",icon:t(776),title:(0,i.jsx)(d,{content:"upload-files.title"}),description:(0,i.jsx)(d,{content:"upload-files.description"})},...c.map((({ext:e,name:n,title:t,icon:i,description:s})=>({name:`ext-${e}-${n}`,icon:i,title:t,description:s}
1)))].filter(Boolean),x=[f.length>1&&{key:"chooseApplicationStep",children:(0,i.jsx)(a.default,{onApplicationSelect:h,applicationsList:f}),nextButton:!1},{key:"addDomainStep",formPrefix:s,children:p,embeddedForms:r}].filter(Boolean);(0,i.useEffect)((()=>{if(0===f.length&&h("blank-site"),1===f.length){const[{name:e}]=f;h(e)}}),[]);const v=u.applicationName&&1!==x.length?1:0;return(0,i.useEffect)((()=>{n?.(x[v].key)}),[v]),(0,i.jsx)(l.default,{...m,values:u,onFieldChange:e,onStepChange:(n,t)=>0===t&&x.length>1?(e("applicationName",null),g([]),n):t,step:v,steps:[...x,...b]})};c.propTypes={values:o().object.isRequired,onFieldChange:o().func.isRequired,onStepChange:o().func,children:o().node,formPrefix:o().string,wizardConfig:o().shape({enabled:o().bool,blankSite:o().bool,uploadFiles:o().bool}),embeddedForms:o().array,wizardEmbeddedForms:o().array},c.defaultProps={children:null,onStepChange:void 0,formPrefix:"",wizardConfig:{enabled:!0,blankSite:!0,uploadFiles:!0},embeddedForms:[],wizardEmbeddedForms:[]},n.default=c},773:(e,n,t)=>{"use strict";t.r(n);var i=t(205),s=t(206),o=t.n(s),r=t(85),a=t(204);const l=r.Locale.getTranslate("components.domain-applications"),d=({onApplicationSelect:e,applicationsList:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Heading,{level:"3",children:(0,a.jsx)(l,{content:"title"})}),(0,a.jsx)(i.ItemList,{minColumnWidth:220,gap:"xs",selectable:!0,children:n.map((({name:n,icon:t,title:s,description:o})=>(0,a.jsx)(i.Item,{"data-action":n,icon:(0,a.jsx)(i.Icon,{src:t,intent:"info",size:"64"}),title:(0,a.jsx)(i.Heading,{level:"4",children:s}),onClick:()=>e(n),children:(0,a.jsx)(i.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:[]},n.default=d},818:(e,n,t)=>{"use strict";t.r(n),t.d(n,{useCreateSubscriptionFormInDrawer:()=>x});var i=t(204),s=t(206),o=t.n(s),r=t(85),a=t(205),l=t(764),d=t(683),c=t(795),u=t(768),p=t(772),m=t(778);const b=r.Locale.getTranslate("admin.components.forms.admin-panel.form.domain-info-section"),g=r.Locale.getTranslate("admin.components.forms.admin-panel.form.subscription-info-section"),h=r.Locale.getTranslate("components.buttons"),f=({onCancel:e,onProcess:n,id:s,values:o,action:u,servicePlans:f,ipAddresses:x,addonPlans:v,maxSysnameSize:j,isWindows:S,techDomain:{url:k,vendor:C},settingsEnabled:y,settingsCollapsed:w,applicationWizardConfig:T,embeddedForms:N,applicationWizardEmbeddedForms:R,className:E,render:D,onStepPropsChange:P,onToggleDomainSettings:A,status:I})=>{const[q,F]=(0,i.useState)(o),[U,_]=(0,i.useState)(!o.subscription.domainInfo),[B,$]=(0,i.useState)(null),O=(e,n)=>{F((t=>{if(t=(0,a.setIn)(t,e,n),"subscription[domainInfo][domainName]"===e&&!U){const e=(0,m.generateUserName)({domainName:n,maxUserNameSize:j,isTechDomain:t.subscription.domainInfo.type===l.TYPE_TECH,isWindows:S});t=(0,a.setIn)(t,"subscription[domainInfo][userName]",e||o.subscription.domainInfo.userName)}return t})),["subscription[domainInfo][ipSelector][ipv4]","subscription[domainInfo][ipSelector][ipv6]","subscription[domainInfo][userName]","subscription[domainInfo][password]"].includes(e)&&r.UAT.dispatchAction("CUSTOM-VALUE",{name:e}),"subscription[domainInfo][userName]"===e&&_(!0)};(0,i.useEffect)((()=>{T.enabled||P?.({sideBanner:t(779),sideBannerContainer:{background:"#faf5f7"}})}),[T.enabled]);const H=T.enabled?p.default:d.default;return(0,i.jsxs)(H,{id:s,className:E,render:D,action:u,applyButton:!1,values:q,vertical:!0,onLongTask:e=>{$(e),n?.(e),P?.({sideBanner:t(781),sideBannerContainer:{background:"#e0f3f9"}})},onStepChange:e=>{B||P?.("chooseApplicationStep"===e?{sideBanner:t(780),sideBannerContainer:{background:"#f3f4f5"}}:{sideBanner:t(779),sideBannerContainer:{background:"#faf5f7"}})},onFieldChange:O,formPrefix:"subscription",wizardConfig:T,embeddedForms:N,wizardEmbeddedForms:R,submitButton:{id:"btn-send",children:(0,i.jsx)(g,{content:"buttonOk"})},cancelButton:{id:"btn-cancel",children:(0,i.jsx)(h,{content:"cancel"}),onClick:e},children:[(I||[]).filter((({status:e})=>"warning"===e)).map((({content:e})=>(0,i.jsx)(a.StatusMessage,{intent:"warning",children:e},e))),(0,i.jsx)(a.Section,{title:(0,i.jsx)(b,{content:"domainInfoSection"}),children:(0,i.jsx)(a.Paragraph,{children:(0,i.jsx)(b,{content:"domainInfoSectionOwnHint"})})}),(0,i.jsx)(c.default,{values:q,servicePlans:f,ipAddresses:x,addonPlans:v,handleFieldChange:O,techDomainUrl:k,techDomainVendor:C,settingsEnabled:y,settingsCollapsed:w,isWindows:S,onToggleDomainSettings:A})]})};f.propTypes={onCancel:o().func.isRequired,onToggleDomainSettings:o().func,onProcess:o().func,id:o().string.isRequired,values:o().object.isRequired,action:o().string.isRequired,servicePlans:o().object.isRequired,ipAddresses:o().object.isRequired,addonPlans:o().array.isRequired,maxSysnameSize:o().number.isRequired,isWindows:o().bool.isRequired,techDomain:o().object.isRequired,settingsEnabled:o().bool,settingsCollapsed:o().bool,applicationWizardConfig:o().object,embeddedForms:o().array,applicationWizardEmbeddedForms:o().array,className:o().string,render:
1o().func,onStepPropsChange:o().func,status:o().array},f.defaultProps={onProcess:void 0,onToggleDomainSettings:void 0,settingsEnabled:!1,settingsCollapsed:!1,applicationWizardConfig:{},embeddedForms:void 0,applicationWizardEmbeddedForms:void 0,className:void 0,render:void 0,onStepPropsChange:void 0,status:void 0};const x=(e,n)=>(0,u.default)(f,"create-subscription",e,n);n.default=f},769:(e,n,t)=>{"use strict";t.r(n);var i=t(204),s=t(205),o=t(85),r=t(206),a=t.n(r),l=t(569),d=t(589),c=t(532);const u="running",p=()=>(0,o.getComponent)("asyncProgressBarWrapper"),m=({children:e,dataType:n,isOpen:t,onClose:r,task:a,history:m,pageUrl:b,...g})=>{const[h,f]=(0,i.useState)([]),[x,v]=(0,i.useState)(null),[j,S]=(0,i.useState)(null),[k,C]=(0,i.useState)(null),y=a?a.id:null,{addToast:w}=(0,d.useToaster)(),T=()=>m&&j&&(0,c.isMatch)(j)&&!((e,n)=>{if(e===n)return!0;try{const t=new URLSearchParams(new URL(e,window.location.origin).search);return t.get("returnUrl")===n||t.get("pageUrl")===n}catch{}return!0})(j,b),N=({id:e,steps:n,status:s,errors:r,output:a,progressValue:l,progressTitle:d,progressTitleHtml:c})=>{if(!t||y!==e)return;const p=c||(0,o.escapeHtml)(d),m=o.Task.STATUS_STARTED===s?u:s,b=e=>(e||[]).map((e=>(0,i.jsx)("div",{children:e},e)));C(m),n&&n.length?(v(p),f(n.map((({errors:e,...n})=>({children:b(e),...n}))))):f([{title:p,status:m,progress:Number(l),children:(0,i.jsxs)(i.Fragment,{children:[b(r),b(a)]})}])};(0,i.useEffect)((()=>{const e=p();t?(e?.hide(),f([]),v(null),S(null),C(null)):(async()=>{R()||await E(),e?.show()})()}),[t]),(0,i.useEffect)((()=>{y&&(p()?.update(),N(a))}),[y,a]),(0,l.default)("plesk:taskStepUpdate",N,o.Observer),(0,l.default)("plesk:taskComplete",(({id:e,redirect:n,status:i})=>{t&&y===e&&o.Task.STATUS_DONE===i&&S(n.url||n)}),o.Observer);const R=()=>o.Task.STATUS_NOT_STARTED===k||u===k,E=()=>y&&p()?.getItems().find((e=>e.getId()===y))?.remove();return(0,i.jsx)(s.Drawer,{"data-type":n,isOpen:t,onClose:()=>{j?T()?m.push(j,{reload:!0}):(0,o.redirect)(j):r()},progress:h.length?{cancelable:!1,title:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:x}}),steps:h,onFinish:()=>{E(),w({intent:"success",message:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:x||h[0].title}})})},autoCloseTimeout:1}:null,hideButton:R(),...g,children:e})};m.propTypes={children:a().node,dataType:a().string.isRequired,isOpen:a().bool,onClose:a().func.isRequired,task:a().shape({id:a().string.isRequired,steps:a().array,status:a().string,progressTitle:a().string,progressTitleHtml:a().string}),history:a().object,pageUrl:a().string},m.defaultProps={children:null,isOpen:!1,task:null,history:null,pageUrl:null},n.default=m},724:(e,n,t)=>{"use strict";t.r(n);var i=t(206),s=t.n(i),o=t(383),r=t(725);const a={hint:s().string.isRequired,expandable:s().bool},l=(0,r.default)(o.Hint,Object.keys(a),{hint:"setHint"});l.displayName="Hint",l.propTypes=a,l.defaultProps={expandable:!1},n.default=l},774:(e,n,t)=>{"use strict";t.r(n);var i=t(205),s=t(204),o=t(683),r=t(85),a=t(206),l=t.n(a);const d=r.Locale.getTranslate("components.buttons"),c=({step:e,steps:n,onStepChange:t,onSubmit:r,submitButton:a,cancelButton:l,...c})=>{const u=(0,s.useRef)(),[p,m]=(0,s.useState)(0),b=p+e,{children:g,formPrefix:h,embeddedForms:f,backButton:x,nextButton:v}={backButton:{},nextButton:{},...n[b]},j=b===n.length-1,S=0===b,k=()=>{u.current.handleEmbeddedFormValues(),m((n=>t(n+e,n+e+1)-e))};return(0,s.jsx)(o.default,{...c,ref:u,additionalButtons:[S&&l&&(0,s.jsx)(i.Button,{children:(0,s.jsx)(d,{content:"cancel"}),...l},"cancel"),!S&&x&&(0,s.jsx)(i.Button,{arrow:"backward",onClick:()=>{u.current.handleEmbeddedFormValues(),m((n=>t(n+e,n+e-1)-e))},children:(0,s.jsx)(d,{content:"back"}),...x},"back"),!j&&v&&(0,s.jsx)(i.Button,{intent:"primary",onClick:k,arrow:"forward",children:(0,s.jsx)(d,{content:"nextWithoutArrow"}),...v},"next"),j&&a&&(0,s.jsx)(i.Button,{intent:"primary",arrow:"forward",onClick:()=>u.current.submit(),children:(0,s.jsx)(d,{content:"ok"}),...a},"submit")],onSubmit:j?r:k,onError:i=>{const s=n.findIndex((({formPrefix:e})=>""===e)),o=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}));m(t(b,o.length>0?Math.min(...o):e)-e)},applyButton:!1,submitButton:!1,cancelButton:!1,formPrefix:h,embeddedForms:f,children:g})};c.propTypes={step:l().number,steps:l().arrayOf(l().shape({formPrefix:l().string,embeddedForms:l().array,children:l().node,nextButton:l().bool,backButton:l().bool})),onStepChange:l().func,onSubmit:l().func,submitButton:l().object,cancelButton:l().object},c.defaultProps={step:0,steps:[],onStepChange:(e,n)=>n,onSubmit:void 0,submitButton:{},cancelButton:{}},n.default=c},795:(e,n,t)=>{"use strict";t.r(n);var i=t(204),s=t(205),o=t(764),r=t(85),a=t(206),l=t.n(a);
1const d=r.Locale.getTranslate("admin.components.forms.admin-panel.form.domain-info-section"),c=r.Locale.getTranslate("components.forms.ip-addresses-selector"),u=r.Locale.getTranslate("admin.components.forms.admin-panel.form.subscription-info-section"),p=r.Locale.getTranslate("components.forms.admin-info"),m=({values:e,servicePlans:n,ipAddresses:t,addonPlans:r,handleFieldChange:a,techDomainUrl:l,techDomainVendor:m,settingsEnabled:b,settingsCollapsed:g,withCustomer:h,isWindows:f,onToggleDomainSettings:x})=>{const[v,j]=(0,i.useState)(r.filter((({selected:e})=>e)).map((({id:e})=>e))),S=(0,s.getIn)(e,"subscription[subscriptionInfo][servicePlan]"),k=()=>"0"===S;(0,i.useEffect)((()=>{const e={};r.forEach((({id:n})=>{e[n]=v.includes(n)})),a("subscription[subscriptionInfo][addonPlanSelector]",JSON.stringify(e))}),[v]),(0,i.useEffect)((()=>{a("subscription[subscriptionInfo][customize]",k()?"1":"0")}),[S]);const C=Object.keys(t).map((n=>{const i=e.subscription.domainInfo.ipSelector[n];return"none"===i?null:t[n][i].split(" ")[0]})).filter(Boolean)[0];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{isEnabled:void 0!==e.subscription.domainInfo.type,isDefault:e.subscription.domainInfo.type===o.TYPE_TECH,url:l,vendor:m,typeName:"subscription[domainInfo][type]",name:"subscription[domainInfo][domainName]",ipAddress:C,onTypeChange:e=>a("subscription[domainInfo][type]",e),onDomainNameChange:e=>a("subscription[domainInfo][domainName]",e)}),(0,i.jsxs)(s.FormFieldSelect,{label:(0,i.jsx)(u,{content:"servicePlan"}),name:"subscription[subscriptionInfo][servicePlan]",size:"lg",children:[Object.keys(n).filter((e=>"0"!==e)).map((e=>(0,i.jsx)(s.SelectOption,{value:e,children:n[e]},e))),(0,i.jsx)(s.SelectOption,{value:"0",children:n[0]},"0")]}),!k()&&r.length?(0,i.jsx)(s.FormField,{label:(0,i.jsx)(u,{content:"addonPlans"}),children:({isDisabled:e})=>(0,i.jsx)(s.Select,{multiple:!0,searchable:!0,size:"lg",name:"subscription[subscriptionInfo][addonPlanSelector]",id:"subscription-subscriptionInfo-addonPlanSelector",defaultValue:v,onChange:e=>j(e),disabled:e(),children:r.map((({id:e,title:n})=>(0,i.jsx)(s.SelectOption,{value:e,children:n},e)))})}):null,(0,i.jsx)(s.FormFieldCheckbox,{label:(0,i.jsx)(u,{content:h?"customizeSubscriptionForCustomer":"customizeSubscriptionOnCreateSubscription"}),name:"subscription[subscriptionInfo][customize]",description:(0,i.jsx)(u,{content:"customizeSubscriptionHint"}),checkedValue:"1",uncheckedValue:"0"}),b?(0,i.jsxs)(s.Section,{id:"subscription-additionalSettings",title:(0,i.jsx)(d,{content:"subscriptionSettings"}),collapsible:!0,collapsed:g,onToggle:x,children:[Object.keys(t).map((e=>(0,i.jsx)(s.FormFieldSelect,{label:(0,i.jsx)(c,{content:Object.keys(t).length>1?`${e}Address`:"ipAddress"}),name:`subscription[domainInfo][ipSelector][${e}]`,children:Object.keys(t[e]).map((n=>(0,i.jsx)(s.SelectOption,{value:n,children:t[e][n]},n)))},e))),(0,i.jsx)("br",{}),(0,i.jsx)(s.Heading,{level:"4",children:(0,i.jsx)(d,{content:"credentials"})}),(0,i.jsx)(s.Text,{component:"p",intent:"muted",children:(0,i.jsx)(d,{content:f?"credentialsHintWin":"credentialsHint"})}),(0,i.jsx)(s.FormFieldText,{label:(0,i.jsx)(d,{content:"userName"}),name:"subscription[domainInfo][userName]",required:!0,autoComplete:"off"}),(0,i.jsx)(s.FormFieldPassword,{label:(0,i.jsx)(d,{content:"password"}),name:"subscription[domainInfo][password]",required:!0,autoComplete:"new-password"}),(0,i.jsx)(s.FormFieldText,{label:(0,i.jsx)(p,{content:"description"}),multiline:!0,size:"xl",name:"subscription[adminInfo][subscriptionDescription]",description:(0,i.jsx)(p,{content:"subscriptionDescriptionHint"})})]}):null]})};m.propTypes={values:l().object.isRequired,servicePlans:l().object.isRequired,addonPlans:l().array.isRequired,ipAddresses:l().object.isRequired,handleFieldChange:l().func.isRequired,techDomainUrl:l().string.isRequired,techDomainVendor:l().string.isRequired,settingsEnabled:l().bool,settingsCollapsed:l().bool,withCustomer:l().bool,isWindows:l().bool,onToggleDomainSettings:l().func},m.defaultProps={settingsEnabled:!1,onToggleDomainSettings:void 0,settingsCollapsed:!1,withCustomer:!1,isWindows:!1},n.default=m},783:(e,n,t)=>{"use strict";t.r(n);var i=t(85);n.default=({adminDescription:e,resellerDescription:n,ownerDescription:t,hideResellerTitleDescription:s,hideOwnerTitleDescription:o},r,a="hint")=>[e?(0,i.createElement)(`.${a}`,[(0,i.escapeHtml)(e.truncate(50,"...")),(0,i.createElement)("span.tooltipData",(0,i.escapeHtml)(e))]):"",n?(0,i.createElement)(`.${a}`,[`${s?"":`${r.lmsg("resellerDescription")}: `}${(0,i.escapeHtml)(n.truncate(50,"..."))}`,(0,i.createElement)("span.tooltipData",(0,i.escapeHtml)(n))]):"",t?(0,i.createElement)(`.${a}`,[`${o?"":`${r.lmsg("ownerDescription")}: `}${(0,i.escapeHtml)(t.truncate(50,"..."))}`,(0,i.createElement)("span.tooltipData",(0,i.escapeHtml)(t))]):""]},814:(e,n,t)=>{"use strict";t.r(n);var i=t(206),s=t.n(i),o=t(85),r=t(526),a=t(532),l=t(783),d=t(204);const c=o.Locale.getSection("admin.components.lists.subscriptions"),u=({data:e,searchFilters:n,allowCreateSubscription:i,customersSupport:s,isHomonymSearchEnabled:u,showSubscriberName:p,isAdmin:m,currentUserId:b,dataUrl:g,createUrl:h,changeUrl:f,redirectUrl:x})=>{const v=(0,a.useNavigateCallback)();return(0,d.jsx)(r.default,{children:()=>new o.Panel({cls:"list-box",items:[new o.List({data:e,dataUrl:g,searchFilters:n,id:"subscriptions-list",searchOveral
1:"domainName",disabledSelectHint:c.lmsg("disabledSelectHint"),operations:[i?{componentType:o.SmallButton,id:"buttonAddNewOwnSubscription",title:c.lmsg("buttonAddNewSubscription"),description:c.lmsg("hintAddNewSubscription"),addCls:"sb-add-new-subscription btn-primary",href:h,handler:v}:null,i?{componentType:o.bar.Separator}:null,{componentType:o.SmallButton,id:"buttonChangeSubscription",title:c.lmsg("buttonChangeSubscription"),description:c.lmsg("hintChangeSubscription"),addCls:"sb-change-subscription",handler(){const e=(0,o.getComponent)("subscriptions-list");e.checkNonEmptySelection()&&(0,o.redirectPost)(`${f}?redirect=${x}`,{ids:e.getSelectedItemsIds()})}},s?{componentType:o.bar.Separator}:null,s?{componentType:o.SmallButton,id:"buttonChangeOwner",title:c.lmsg("buttonChangeOwner"),description:c.lmsg("hintChangeOwner"),addCls:"sb-assign-new-owner",handler(){(0,o.getComponent)("subscriptions-list").execGroupOperation({submitVarName:"del",submitHandler:o.redirectPost,url:`/plesk/client@any/domain@multi/chowner?backUrl=${x}`,skipConfirmation:!0})}}:null,{componentType:o.bar.Separator},{componentType:o.list.AdditionalActions,title:c.lmsg("buttonChangeStatus"),operations:[{componentType:o.SmallButton,id:"buttonSuspendSubscriptions",title:c.lmsg("buttonSuspendSubscriptions"),description:c.lmsg("hintSuspendSubscriptions"),addCls:"sb-suspend",cls:"sb-btn",handler(){(0,o.getComponent)("subscriptions-list").execGroupOperation({url:`/subscription/suspend/?redirect=${x}`,skipConfirmation:!0})}},{componentType:o.SmallButton,id:"buttonActivateSubscriptions",title:c.lmsg("buttonActivateSubscriptions"),description:c.lmsg("hintActivateSubscriptions"),addCls:"sb-activate",cls:"sb-btn",handler(){(0,o.getComponent)("subscriptions-list").execGroupOperation({url:`/subscription/activate/?redirect=${x}`,skipConfirmation:!0})}}]},i?{componentType:o.bar.Separator}:null,i?{componentType:o.SmallButton,id:"buttonRemoveSubscription",title:c.lmsg("buttonRemove"),description:c.lmsg("hintRemove"),addCls:"sb-remove-selected",handler(e){const n=(0,o.getComponent)("subscriptions-list"),t=n.getSelectedItems(),i=t.reduce(((e,{relatedDomains:n})=>e.concat(n)),[]);n.execGroupOperation({url:`/subscription/delete/?redirect=${x}`,subtype:o.messageBox.SUBTYPE_DELETE,mouseEvent:e,text:c.formatMessage("confirmOnDelete",{name:`<b>${(0,o.escapeHtml)(t[0]?.domainDisplayName)}</b>`,count:t.length}),description:i.length?c.lmsg("removeConfirmationSubscription",{domains:i.join(", ")}).replace(/\n/gm,"<br>"):"",isAjax:!!u,requestUrl:"/subscription/search-homonym-data/"})}}:null],columns:[o.list.COLUMN_SELECTION,{header:c.lmsg("subscriptionName"),sortable:!0,dataIndex:"domainName",renderer(e){if(0==e.id)return(0,o.createElement)("a",{href:(0,o.prepareUrl)(e.link)},(0,o.escapeHtml)(e.name));let n="ok",i=t(785),s=c.lmsg("statusOk");e.subscriptionActive?e.subscriptionLocked?(n="locked",i=t(815),s=c.lmsg("statusLocked")):e.subscriptionSynchronized||(n="unsynchronized",i=t(816),s=c.lmsg("statusUnsynchronized")):(n="suspended",i=t(784),s=c.lmsg(e.subscriptionExpired?"statusSuspendedReasonExpired":"statusSuspended"));const r=`${(0,o.escapeHtml)(e.domainDisplayName)} (${(0,o.escapeHtml)(e.planName)})`,a=(({ipStatus:e,webserverConfigurationStatus:n},t)=>e?c.lmsg("unlinkedDomainHint"):n?"":c.lmsg(t?"webserverConfigurationDomainHintAdmin":"webserverConfigurationDomainHintReseller"))(e,m);return(0,o.createElement)(`${a?".b-indent-x2":".b-indent"}${e.subscriptionOveruse?".status-overused":".status-ok"}`,[(0,o.createElement)("span.b-indent-icon",[(0,o.createElement)("span",[(0,o.createElement)("span.tooltipData",(0,o.escapeHtml)(s)),(0,o.createElement)("img",{src:i,alt:n,title:""})]),a?(0,o.createElement)("span",[(0,o.createElement)("span.tooltipData",a),(0,o.createElement)("img",{src:t(817),alt:"",title:""})]):""]),e.overviewUrl?(0,o.createElement)("a",{href:(0,o.prepareUrl)(e.overviewUrl),onclick:v},r):r," ",(0,o.createElement)("span.hint.hint-info",{id:`hint-item-${e.id}`},c.lmsg("hintInfo")),...(0,l.default)(e,c)])}},p?{header:c.lmsg("subscriberName"),sortable:!0,dataIndex:"subscriberName",renderer({subscriberId:e,subscriberType:n,subscriberName:t,subscriberCompanyName:i}){let s=null;switch(n){case"client":s=`/admin/customer/overview/id/${e}`;break;case"reseller":s=m?`/admin/reseller/overview/id/${e}`:"/admin/reseller-self/subscription-overview"}return[s?(0,o.createElement)("a",{href:s,onclick:v},(0,o.escapeHtml)(t)):(0,o.escapeHtml)(t),i?`, ${(0,o.escapeHtml)(i)}`:null]}}:"",{header:c.lmsg("setupDate"),sortable:!0,dataIndex:"setupDate",renderer:e=>0==e.id?"-":(0,o.escapeHtml)(e.setupDateString)},{header:"",sortable:!1,renderer(e){if(!e.manageUrl||parseInt(e.subscriberId)===b)return"";return`<a href="${`/admin${"reseller"===e.subscriberType?"/reseller":"/customer"}/login/id/${e.subscriberId}?pageUrl=${encodeURIComponent(e.manageUrl)}`}" class="s-btn sb-login"><span>${c.lmsg("reseller"===e.subscriberType?"manageInResellerPanel":"manageInCustomerPanel")}</span></a>`}}],isDisabledItem:e=>0==e.id,onRedraw(){document.querySelectorAll("span.hint.hint-info").forEach((e=>{new o.DynamicPopupHint.Instance({title:c.lmsg("hintTitle"),waitMsg:c.lmsg("hintWaitMessage"),url:`/subscription/stats-hint/domainId/${e.id.replace("hint-item-","")}`,placement:"right",target:e.id})}))}})]})})};u.propTypes={data:s().object.isRequired,searchFilters:s().object.isRequired,allowCreateSubscription:s().bool,customersSupport:s().bool,isHomonymSearchEnabled:s().bool,showSubscriberName:s().bool,isAdmin:s().bool,currentUserId:s().number.isRequired,dataUrl:s().string.isRequired,createUrl:s().string.isRequired,changeUrl:s().string.isRequired,redirectUrl:s().string.isRequired},u.defaultProps={allowCreateSubscription:!1,customersSupport:!1,isHomonymSearchEnabled:!1,showSubscriberName:!1,isAdmin:!1},n.default=u},729:(e,n,t)=>{"use strict";t.r(n);var i=t(206),s=t.n(i),o=t(205),r=t(85),a=t(532),l=t(204);const d=({items:e})=>(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:a.default,to:(0,r.prepareUrl)(n)},t)))});d.propTypes={items:s().arrayOf(s().shape({title:s().string.isRequired,href:s().string.isRequired,containerCls:s().string})).isRequired},n.default=d},764:(e,n,t)=>{"use strict";t.r(n),t.d(n,{TYPE_TECH:()=>l,TYPE_CUSTOM:()=>d});var i=t(205),s=t(204),o=t(206),r=t.n(o),a=t(85);const l="tech",d="custom",c=a.Locale.getTranslate("components.forms.domain.tech-domain-name"),u=({isEnabled:e,isDefault:n,url:t,vendor:o,typeName:r,name:a,ipAddress:u,onDomainNameChange:b,onTypeChange:g})=>
1{const[h,f]=(0,s.useState)(e&&n?l:d);if(!e)return(0,s.jsx)(p,{name:a,isEnabled:!1,onDomainNameChange:b});const x=[{key:d,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)(c,{content:"title"}),vertical:!0,children:(0,s.jsx)(i.FormField,{name:r,onChange:e=>(e=>{f(e),g(e),b("")})(e),children:({getId:e,getName:n,getValue:t,setValue:o,isDisabled:r})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.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,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)(c,{content:`${e}DomainTitle`})})}),disabled:r(),children:(0,s.jsx)(i.Text,{fontSize:"md",children:(0,s.jsx)(c,{content:`${e}DomainText`})})},e)))}),(0,s.jsx)("input",{hidden:!0,id:e(),name:n(),value:t(),readOnly:!0})]})})}),h===l?(0,s.jsx)(m,{name:a,ipAddress:u,url:t,vendor:o,onDomainNameChange:b}):(0,s.jsx)(p,{name:a,isEnabled:!0,onDomainNameChange:b})]})},p=({name:e,isEnabled:n,onDomainNameChange:t})=>(0,s.jsx)(i.Section,{vertical:!0,children:(0,s.jsx)(i.FormField,{name:e,label:n?(0,s.jsx)(c,{content:"customDomain"}):(0,s.jsx)(c,{content:"domainName"}),onChange:e=>t(e),required:!0,children:({getId:e,getName:n,getValue:t,setValue:o,isDisabled:r})=>(0,s.jsxs)("span",{dir:"ltr",children:["www. ",(0,s.jsx)(i.Input,{id:e(),name:n(),value:t(),placeholder:"domain.name",size:"lg",onChange:e=>o(e.target.value),disabled:r()})]})})});p.propTypes={name:r().string.isRequired,isEnabled:r().bool.isRequired,onDomainNameChange:r().func.isRequired};const m=({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)(c,{content:"techDomain"}),name:e,onChange:e=>n(e),children:({getId:e,getName:n,...i})=>(0,s.jsx)(b,{id:e(),name:n(),...i,...t})}),(0,s.jsxs)(i.Cuttable,{maxHeight:24,children:[(0,s.jsx)(i.Paragraph,{children:(0,s.jsx)(c,{content:"techDomainDesc"})}),(0,s.jsxs)("ul",{children:[(0,s.jsx)("li",{children:(0,s.jsx)(c,{content:"techDomainRandom"})}),(0,s.jsx)("li",{children:(0,s.jsx)(c,{content:"techDomainDns"})}),(0,s.jsx)("li",{children:(0,s.jsx)(c,{content:"techDomainMail"})})]}),(0,s.jsx)(i.Paragraph,{children:(0,s.jsx)(c,{content:"techDomainSwitch"})})]})]})});m.propTypes={name:r().string.isRequired,onDomainNameChange:r().func.isRequired};const b=({id:e,name:n,ipAddress:t,url:o,vendor:r,getValue:a,setValue:l})=>{const[d,u]=(0,s.useState)(!1),[p,m]=(0,s.useState)(t),[b,g]=(0,s.useState)({}),h=(0,s.useCallback)((async()=>{if(g({}),!a()||t!==p)if(t){u(!0);try{const e=await fetch(o,{method:"POST",body:JSON.stringify({ip_address:t,vendor:r})}),{subdomain:n}=await e.json();if(!n)return void g({error:(0,s.jsx)(c,{content:"error"})});l(n),m(t)}catch{g({error:(0,s.jsx)(c,{content:"error"})})}finally{u(!1)}}else g({noIpAddress:(0,s.jsx)(c,{content:"errorNoIpAddress"})})}),[a,l,t,p,o,r]);return(0,s.useEffect)((()=>{h()}),[t]),(0,s.jsxs)(s.Fragment,{children:[d?(0,s.jsx)(i.Status,{progress:!0,children:(0,s.jsx)(c,{content:"generating"})}):(0,s.jsx)(i.Text,{bold:!0,children:a()}),(0,s.jsx)("input",{hidden:!0,id:e,name:n,value:a(),readOnly:!0}),Object.keys(b).map((e=>(0,s.jsxs)(i.Alert,{intent:"danger",children:[(0,s.jsx)(i.Icon,{name:"exclamation-mark-circle-filled",intent:"danger"})," ",b[e]]},e)))]})};b.propTypes={id:r().string.isRequired,name:r().string.isRequired,ipAddress:r().string,url:r().string.isRequired,vendor:r().string.isRequired,getValue:r().func.isRequired,setValue:r().func.isRequired},b.defaultProps={ipAddress:null},u.propTypes={isEnabled:r().bool.isRequired,isDefault:r().bool.isRequired,url:r().string.isRequired,vendor:r().string.isRequired,typeName:r().string.isRequired,name:r().string.isRequired,ipAddress:r().string,onDomainNameChange:r().func.isRequired,onTypeChange:r().func.isRequired},u.defaultProps={ipAddress:null},n.default=u},768:(e,n,t)=>{"use strict";t.r(n);var i=t(204),s=t(357),o=t(506),r=t(205),a=t(85),l=t(769),d=t(770),c=t.n(d),u=t(771),p=t.n(u);n.default=(e,n,t,d)=>{const u=(0,s.useApolloClient)(),m=!!(0,o.useRouteMatch)(d),b=(0,o.useHistory)(),[g,h]=(0,i.useState)(null),[f,x]=(0,i.useState)(null),[v,j]=(0,i.useState)(null),[S]=(0,s.useMutation)(p());(0,i.useEffect)((()=>{m&&(h(null),x(null),Promise.all([a.api.get(d),u.query({query:c()})]).then((([e,{data:{config:n}}])=>{e.redirect?(0,a.redirect)(e.redirect):h({...e,techDomain:{url:`${n.techDomain.url}
1/api/subdomain`,vendor:n.techDomain.vendor},settingsEnabled:n.domainManagement.settings.enabled,applicationWizardConfig:n.domainManagement.applicationWizard})})))}),[m,d,u]);const k=()=>{b.push(t)};return[(0,i.jsx)(l.default,{dataType:n,title:g?g.pageTitle:"",size:"sm",isOpen:m,onClose:k,form:g?(0,i.jsx)(e,{onCancel:k,onProcess:x,onStepPropsChange:j,onToggleDomainSettings:e=>{g&&(g.settingsCollapsed=e),S({variables:{collapsed:e}})},...g}):null,task:f,history:b,pageUrl:t,...v,children:g?null:(0,i.jsx)(r.ContentLoader,{})})]}},798:(e,n,t)=>{"use strict";t.r(n);var i=t(206),s=t.n(i),o=t(205),r=t(85),a=t(532),l=t(799),d=t(800),c=t(204);const u=r.Locale.getSection("admin.components.customer-sidebar"),p=r.Locale.getTranslate("admin.components.customer-sidebar"),m=r.Locale.getTranslate("admin.components.elements.status"),b=({id:e,canCreateClients:n,contactName:i,companyName:s,emailAddress:b,setupDate:g,isAdmin:h,resellersSupport:f,hasLegacyResources:x,isActive:v,username:j,allowLogIn:S,provider:k,hasResellers:C,hasResellerCustomers:y,description:w,isIisAppPoolsPolicyMixed:T})=>{const N=(n,t)=>{r.messageBox.show({type:r.messageBox.TYPE_YESNO,subtype:r.messageBox.SUBTYPE_TOGGLE,text:u.lmsg("applyConfirmation"),onYesClick(){(0,r.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:i})]}),s?(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:s})]}):null,b?(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:${b}`,children:b})})]}):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(802)},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(803)},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(804)},onClick:()=>N(u.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(805)},onClick:()=>N(u.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(806)},onClick:()=>N(u.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(804)},onClick:()=>N(u.lmsg("t1s6cApplyHint"),"t1s6c"),children:(0,c.jsx)(p,{content:"t1s6cApplyButton"})})}),"admin"===k?.type?(0,c.jsx)("div",{className:"side-panel-popover__item",children:(0,c.jsx)(o.Action,{id:"t1s6rApplyButton",icon:{src:t(807)},onClick:()=>N(u.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:g})]}),(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:v?"success":"danger",children:v?(0,c.jsx)(m,{content:"onStateCustomer"}):(0,c.jsx)(m,{content:"offStateCustomer"})})})," ",(0,c.jsx)(o.AuxiliaryActions,{children:(0,c.jsx)(o.Tooltip,{title:v?(0,c.jsx)(p,{content:"buttonSuspendHint"}):(0,c.jsx)(p,{content:"buttonActivateHint"}),children:(0,c.jsx)("a",{id:"buttonToggle",onClick:()=>{(0,r.redirectPost)(`/admin/customer/toggle/id/${e}`)},children:v?(0,c.jsx)(p,{content:"buttonSuspend"}):(0,c.jsx)(p,{content:"buttonActivate"})})})})]}),k?(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"===k.type&&f?(0,c.jsx)(a.default,{to:`/admin/reseller/overview/id/${k.id}`,children:k.name}):k.name})," ",h&&C&&(f||y)?(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:j})]}),(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(808)},href:`/admin/customer/login-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonChangePassword"})})})}),S?(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(809)},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:w}})]}),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(810)},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(811)},onClick:()=>{r.messageBox.show({type:r.messageBox.TYPE_YESNO,subtype:r.messageBox.SUBTYPE_DELETE,text:u.lmsg("buttonRemoveCustomerConfirmationTitle",{name:`<b>${i}</b>`}),description:u.lmsg("buttonRemoveCustomerConfirmationDescription"),onYesClick(){(0,r.redirectPost)(`/customer/delete-current/id/${e}`)}})},children:(0,c.jsx)(p,{content:"buttonRemove"})})})})}):null]})};b.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,hasLegacyResources: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},b.defaultProps={provider:void 0,isIisAppPoolsPolicyMixed:!1},n.default=b},799:(e,n,t)=>{"use strict";t.r(n);
1var i=t(206),s=t.n(i),o=t(528),r=t.n(o),a=t(567),l=t(205),d=t(204);const c=({baseClassName:e,className:n,id:t,title:i,children:s,...o})=>{const[c,u]=(0,a.useLocalStorage)(`${t}-hidden`);return(0,d.jsx)(l.Panel,{className:r()(e,n),id:t,title:i?(0,d.jsx)(l.Heading,{level:4,children:i}):null,collapsible:!!t,collapsed:!!i&&"true"===c,onToggle:()=>u("true"===c?"false":"true"),...o,children:s})};c.propTypes={id:s().string,title:s().any,children:s().any.isRequired,className:s().string,baseClassName:s().string},c.defaultProps={id:void 0,title:void 0,className:void 0,baseClassName:"side-panel"},n.default=c},800:(e,n,t)=>{"use strict";t.r(n);var i=t(206),s=t.n(i),o=t(205),r=t(85),a=t(801),l=t(204);const d=r.Locale.getTranslate("components.forms.admin-info"),c=({type:e,id:n,name:t,descriptions:i})=>{const{edit:s,remove:r}=(0,a.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)(o.Text,{intent:"muted",children:[(0,l.jsx)(d,{content:`description${e.capitalize()}`}),":"]})," ",(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:()=>s(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:()=>r(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},n.default=c},813:(e,n,t)=>{"use strict";t.r(n);var i=t(206),s=t.n(i),o=t(85),r=t(555),a=t(814),l=t(724),d=t(818),c=t(729),u=t(798),p=t(204);const m=o.Locale.getSection("admin.controllers.customer.subscriptions"),b=({tabs:e,id:n,...t})=>{const[i]=(0,d.useCreateSubscriptionFormInDrawer)(`/admin/customer/subscriptions/id/${n}`,`/admin/customer/new-subscription/id/${n}`);return(0,p.jsxs)(p.Fragment,{children:[i,(0,p.jsx)(c.default,{items:e}),(0,p.jsx)(l.default,{hint:m.lmsg("hint")}),(0,p.jsx)(a.default,{dataUrl:`/admin/customer/subscriptions-list-data/id/${n}`,createUrl:`/admin/customer/new-subscription/id/${n}`,changeUrl:`/admin/customer/change-subscription/id/${n}`,redirectUrl:`/admin/customer/subscriptions/id/${n}`,customersSupport:!0,...t})]})};b.propTypes={tabs:s().array.isRequired,id:s().number.isRequired},n.default=(0,r.withPageLayout)(b,(({sidebarProps:e})=>({secondary:(0,p.jsx)(u.default,{...e})})))},812:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(813)},808:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/change-password.png?54304f321bc897402075b73230593f04"},803:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/convert-to-reseller.png?92f150ae967d586471eabfbb347d4dfd"},811:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/delete.png?27d654be29d57ad05641c2ff392035fa"},802:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/edit-contact-info.png?052e4fc494a39464dad26f4f40e38eaf"},810:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/iis-app-pool.png?1bcf2ef7b099732f96f82bfb815c5146"},805:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/inherits-from-client.png?a22fe751c94ac0dc04f942415c0e8865"},806:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/inherits-from-domain.png?386f7e5dc544dc203b31ce3934eb982d"},804:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/inherits-the-lesser.png?6a711e632da0050efe725b03bca9aeb4"},809:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/login-as-customer.png?f61b4adc663106baef7704c16dd4d207"},815:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-locked.png?791d616dde33b19ebd4b7fbf3b305ffe"},785:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-ok.png?6d52f91c87cbdc73b4ef0b5ded92c441"},784:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-suspended.png?7968ea094f0aa3fdced5d59b0c7f3196"},816:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/subscription-status-unsynchronized.png?c075e72041171bb35d0a9b6542518ccf"},807:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/upgrade-to-reseller.png?ad970c843c70a8c819528d90d01395b0"},817:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/webserver-domain-error.png?8ada2989a2d00386c7f59b862eb7fa9e"},781:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/process.svg?5b1c1dfcc665e9846fde5b7fca65d271"},780:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/step1.svg?d396208857b71836ade6feff5
159c3bae"},779:e=>{e.exports=Jsw.skinUrl+"/images/add-domain/step2.svg?93f1d4904c994c19ed4db31811b549b5"},775:e=>{e.exports=Jsw.skinUrl+"/images/code.svg?f6af5b40c9dca585f911973e9cdea080"},776:e=>{e.exports=Jsw.skinUrl+"/images/upload-files.svg?c9d4700b63278e9735d058840ac4b011"},770:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CreateFormInDrawer"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"config"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domainManagement"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"settings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"applicationWizard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"blankSite"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uploadFiles"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"techDomain"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vendor"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:336}};n.loc.source={body:"query CreateFormInDrawer {\n config {\n domainManagement {\n settings {\n enabled\n }\n applicationWizard {\n enabled\n blankSite\n uploadFiles\n }\n }\n techDomain {\n url\n vendor\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.CreateFormInDrawer=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,a=new Set;for(o.forEach((function(e){a.add(e)}));a.size>0;){var l=a;a=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){a.add(e)})))}))}return r.forEach((function(n){var i=s(e,n);i&&t.definitions.push(i)})),t}(n,"CreateFormInDrawer")},771:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateUserSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collapsed"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateUserSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"collapsedDomainSettings"},value:{kind:"Variable",name:{kind:"Name",value:"collapsed"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"result"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:146}};n.loc.source={body:"mutation UpdateUserSettings($collapsed: Boolean!) {\n updateUserSettings(input: {collapsedDomainSettings: $collapsed}) {\n result\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else 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.UpdateUserSettings=function(e,n){var t={kind:e.kind,definitions:[s(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,a=new Set;for(o.forEach((function(e){a.add(e)}));a.size>0;){var l=a;a=new Set,l.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){a.add(e)})))}))}return r.forEach((function(n){var i=s(e,n);i&&t.definitions.push(i)})),t}(n,"UpdateUserSettings")}}]); 2//# sourceMappingURL=subscriptions.js.map?b13b48bfade3afc0cb5b
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.