PageSourceSearch

https://rapidlivechat.co.uk/cp/javascript/views/admin/reseller/subscriptions.js?559529511f3039a80f20

js rapidlivechat.co.uk collected 2026-10-06 11:04:10 UTC 49,903 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/reseller/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,h]=(0,i.useState)([]),g=n=>{e("applicationName",n),h([...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:g,applicationsList:f}),nextButton:!1},{key:"addDomainStep",formPrefix:s,children:p,embeddedForms:r}].filter(Boolean);(0,i.useEffect)((()=>{if(0===f.length&&g("blank-site"),1===f.length){const[{name:e}]=f;g(e)}}),[]);const j=u.applicationName&&1!==x.length?1:0;return(0,i.useEffect)((()=>{n?.(x[j].key)}),[j]),(0,i.jsx)(l.default,{...m,values:u,onFieldChange:e,onStepChange:(n,t)=>0===t&&x.length>1?(e("applicationName",null),h([]),n):t,step:j,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"),h=r.Locale.getTranslate("admin.components.forms.admin-panel.form.subscription-info-section"),g=r.Locale.getTranslate("components.buttons"),f=({onCancel:e,onProcess:n,id:s,values:o,action:u,servicePlans:f,ipAddresses:x,addonPlans:j,maxSysnameSize:S,isWindows:v,techDomain:{url:k,vendor:C},settingsEnabled:y,settingsCollapsed:T,applicationWizardConfig:w,embeddedForms:N,applicationWizardEmbeddedForms:P,className:E,render:R,onStepPropsChange:D,onToggleDomainSettings:I,status:F})=>{const[U,q]=(0,i.useState)(o),[A,$]=(0,i.useState)(!o.subscription.domainInfo),[_,B]=(0,i.useState)(null),O=(e,n)=>{q((t=>{if(t=(0,a.setIn)(t,e,n),"subscription[domainInfo][domainName]"===e&&!A){const e=(0,m.generateUserName)({domainName:n,maxUserNameSize:S,isTechDomain:t.subscription.domainInfo.type===l.TYPE_TECH,isWindows:v});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)((()=>{w.enabled||D?.({sideBanner:t(779),sideBannerContainer:{background:"#faf5f7"}})}),[w.enabled]);const H=w.enabled?p.default:d.default;return(0,i.jsxs)(H,{id:s,className:E,render:R,action:u,applyButton:!1,values:U,vertical:!0,onLongTask:e=>{B(e),n?.(e),D?.({sideBanner:t(781),sideBannerContainer:{background:"#e0f3f9"}})},onStepChange:e=>{_||D?.("chooseApplicationStep"===e?{sideBanner:t(780),sideBannerContainer:{background:"#f3f4f5"}}:{sideBanner:t(779),sideBannerContainer:{background:"#faf5f7"}})},onFieldChange:O,formPrefix:"subscription",wizardConfig:w,embeddedForms:N,wizardEmbeddedForms:P,submitButton:{id:"btn-send",children:(0,i.jsx)(h,{content:"buttonOk"})},cancelButton:{id:"btn-cancel",children:(0,i.jsx)(g,{content:"cancel"}),onClick:e},children:[(F||[]).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:U,servicePlans:f,ipAddresses:x,addonPlans:j,handleFieldChange:O,techDomainUrl:k,techDomainVendor:C,settingsEnabled:y,settingsCollapsed:T,isWindows:v,onToggleDomainSettings:I})]})};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,...h})=>{const[g,f]=(0,i.useState)([]),[x,j]=(0,i.useState)(null),[S,v]=(0,i.useState)(null),[k,C]=(0,i.useState)(null),y=a?a.id:null,{addToast:T}=(0,d.useToaster)(),w=()=>m&&S&&(0,c.isMatch)(S)&&!((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})(S,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?(j(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([]),j(null),v(null),C(null)):(async()=>{P()||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&&v(n.url||n)}),o.Observer);const P=()=>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:()=>{S?w()?m.push(S,{reload:!0}):(0,o.redirect)(S):r()},progress:g.length?{cancelable:!1,title:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:x}}),steps:g,onFinish:()=>{E(),T({intent:"success",message:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:x||g[0].title}})})},autoCloseTimeout:1}:null,hideButton:P(),...h,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:h,formPrefix:g,embeddedForms:f,backButton:x,nextButton:j}={backButton:{},nextButton:{},...n[b]},S=b===n.length-1,v=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:[v&&l&&(0,s.jsx)(i.Button,{children:(0,s.jsx)(d,{content:"cancel"}),...l},"cancel"),!v&&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"),!S&&j&&(0,s.jsx)(i.Button,{intent:"primary",onClick:k,arrow:"forward",children:(0,s.jsx)(d,{content:"nextWithoutArrow"}),...j},"next"),S&&a&&(0,s.jsx)(i.Button,{intent:"primary",arrow:"forward",onClick:()=>u.current.submit(),children:(0,s.jsx)(d,{content:"ok"}),...a},"submit")],onSubmit:S?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:g,embeddedForms:f,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})),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:h,withCustomer:g,isWindows:f,onToggleDomainSettings:x})=>{const[j,S]=(0,i.useState)(r.filter((({selected:e})=>e)).map((({id:e})=>e))),v=(0,s.getIn)(e,"subscription[subscriptionInfo][servicePlan]"),k=()=>"0"===v;(0,i.useEffect)((()=>{const e={};r.forEach((({id:n})=>{e[n]=j.includes(n)})),a("subscription[subscriptionInfo][addonPlanSelector]",JSON.stringify(e))}),[j]),(0,i.useEffect)((()=>{a("subscription[subscriptionInfo][customize]",k()?"1":"0")}),[v]);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:j,onChange:e=>S(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:g?"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:h,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:h,createUrl:g,changeUrl:f,redirectUrl:x})=>{const j=(0,a.useNavigateCallback)();return(0,d.jsx)(r.default,{children:()=>new o.Panel({cls:"list-box",items:[new o.List({data:e,dataUrl:h,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:g,handler:j}: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:j},r):r,"&nbsp;",(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:j},(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:h})=>
1{const[g,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),h(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!==g&&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})]})})}),g===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,h]=(0,s.useState)({}),g=(0,s.useCallback)((async()=>{if(h({}),!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 h({error:(0,s.jsx)(c,{content:"error"})});l(n),m(t)}catch{h({error:(0,s.jsx)(c,{content:"error"})})}finally{u(!1)}}else h({noIpAddress:(0,s.jsx)(c,{content:"errorNoIpAddress"})})}),[a,l,t,p,o,r]);return(0,s.useEffect)((()=>{g()}),[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)(),[h,g]=(0,i.useState)(null),[f,x]=(0,i.useState)(null),[j,S]=(0,i.useState)(null),[v]=(0,s.useMutation)(p());(0,i.useEffect)((()=>{m&&(g(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):g({...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:h?h.pageTitle:"",size:"sm",isOpen:m,onClose:k,form:h?(0,i.jsx)(e,{onCancel:k,onProcess:x,onStepPropsChange:S,onToggleDomainSettings:e=>{h&&(h.settingsCollapsed=e),v({variables:{collapsed:e}})},...h}):null,task:f,history:b,pageUrl:t,...j,children:h?null:(0,i.jsx)(r.ContentLoader,{})})]}},823:(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.reseller-sidebar"),p=r.Locale.getTranslate("admin.components.reseller-sidebar"),m=r.Locale.getTranslate("admin.components.elements.status"),b=r.Locale.getTranslate("admin.components.lists.resellers"),h=({id:e,login:n,contactName:i,companyName:s,emailAddress:h,description:g,setupDate:f,isActive:x,ownCustomers:j,ownPlans:S,ownSubscriptions:v,isIisAppPoolsPolicyMixed:k,subscription:C})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(l.default,{id:"panel-reseller-overviewSection",title:(0,c.jsx)(p,{content:"overviewPanelTitle"}),children:[(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"contactName"}),":"]})," ",(0,c.jsx)("b",{children: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,h?(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:${h}`,children:h})})]}):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:f})]}),(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:x?"success":"danger",children:x?(0,c.jsx)(m,{content:"onStateReseller"}):(0,c.jsx)(m,{content:"offStateReseller"})})})," ",(0,c.jsx)(o.AuxiliaryActions,{children:(0,c.jsx)(o.Tooltip,{title:x?(0,c.jsx)(p,{content:"buttonSuspendHint"}):(0,c.jsx)(p,{content:"buttonActivateHint"}),children:(0,c.jsx)("a",{id:"buttonToggle",onClick:()=>{(0,r.redirectPost)(`/admin/reseller/toggle/id/${e}`)},children:x?(0,c.jsx)(p,{content:"buttonSuspend"}):(0,c.jsx)(p,{content:"buttonActivate"})})})})]}),(0,c.jsx)(d.default,{type:"reseller",id:e,name:i,descriptions:{owner:g}}),(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/reseller/personal-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonEditContact"})})})})]}),(0,c.jsxs)(l.default,{id:"panel-reseller-resourcesSection",title:(0,c.jsx)(p,{content:"resourcesPanelTitle"}),children:[(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"ownCustomers"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(a.default,{to:`/admin/customer/list/?force-show-search=true&searchFilter[ownership][searchText]=${encodeURIComponent(n)}`,children:j})})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"ownPlans"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(a.default,{to:`/admin/customer-service-plan/list/?force-show-search=true&searchFilter[ownership][searchText]=${encodeURIComponent(n)}`,children:S})})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"ownSubscriptions"}),":"]})," ",(0,c.jsx)("b",{children:(0,c.jsx)(a.default,{to:`/admin/subscription/list?force-show-search=true&searchFilter[subscriberName][searchText]=${encodeURIComponent(`login:${n}`)}`,children:v})})]}),(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"plan"}),":"]})," ",(0,c.jsx)("b",{children:C?(0,c.jsxs)(c.Fragment,{children:[C.name,C.isLocked||!C.isSynchronized?(0,c.jsxs)(c.Fragment,{children:[" (",(0,c.jsx)(o.Tooltip,{title:C.isLocked?(0,c.jsx)(b,{content:"statusLocked"}):(0,c.jsx)(b,{content:"statusUnsynchronized"}),children:(0,c.jsx)(o.Status,{icon:{src:C.isLocked?t(815):t(816)},children:C.isLocked?(0,c.jsx)(m,{content:"lockedStateClient"}):(0,c.jsx)(m,{content:"unsynchronizedStateClient"})})}),")"]}):null]}):(0,c.jsx)(p,{content:"planCustom"})})," ",(0,c.jsxs)(o.AuxiliaryActions,{children:[(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonChangeResellerSubscriptionHint"}),children:(0,c.jsx)(a.default,{id:"buttonChangeResellerSubscription",to:`/admin/reseller/change-reseller-subscription/id/${e}`,children:(0,c.jsx)(p,{content:"buttonChangeResellerSubscription"})})}),(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonManuallyEditSubscriptionParametersHint"}),children:(0,c.jsx)(a.default,{id:"buttonEditSubscriptionParameters",to:`/admin/reseller/cu
1stomize-subscription/id/${e}`,children:(0,c.jsx)(p,{content:"buttonManuallyEditSubscriptionParameters"})})}),!C||!C.isLocked&&C.isSynchronized?null:(0,c.jsx)(o.Tooltip,{title:C.isLocked?(0,c.jsx)(p,{content:"buttonUnlockAndSyncHint"}):(0,c.jsx)(p,{content:"buttonSyncHint"}),children:(0,c.jsx)("a",{id:"buttonUnlockAndSync",href:`/admin/reseller/synchronize/id/${e}`,"data-method":"post",children:C.isLocked?(0,c.jsx)(p,{content:"buttonUnlockAndSync"}):(0,c.jsx)(p,{content:"buttonSync"})})})]})]}),(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonMoreStatsHint"}),children:(0,c.jsx)(o.Action,{id:"buttonMoreStats",icon:{src:t(711)},href:`/admin/reseller/stats/id/${e}`,children:(0,c.jsx)(p,{content:"buttonMoreStats"})})})})]}),(0,c.jsxs)(l.default,{id:"panel-reseller-loginSection",title:(0,c.jsx)(p,{content:"loginPanelTitle"}),children:[(0,c.jsxs)("div",{className:"side-panel__item",children:[(0,c.jsxs)(o.Text,{intent:"muted",children:[(0,c.jsx)(p,{content:"username"}),":"]})," ",(0,c.jsx)("b",{children:n})]}),x?(0,c.jsx)("p",{children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonLoginHint"}),children:(0,c.jsx)(o.Action,{id:"buttonLogin",icon:{src:t(824)},href:`/admin/reseller/login/id/${e}`,children:(0,c.jsx)(p,{content:"buttonLogin"})})})}):null,(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonChangePasswordHint"}),children:(0,c.jsx)(o.Action,{id:"buttonChangePassword",icon:{src:t(808)},href:`/admin/reseller/login-info/id/${e}`,children:(0,c.jsx)(p,{content:"buttonChangePassword"})})})})]}),(0,c.jsxs)(l.default,{id:"panel-reseller-toolsSection",title:(0,c.jsx)(p,{content:"toolsPanelTitle"}),children:[(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonIPAddressesHint"}),children:(0,c.jsx)(o.Action,{id:"buttonManageIpPool",icon:{src:t(825)},href:`/plesk/client@${e}/ipaddress@/`,children:(0,c.jsx)(p,{content:"buttonIPAddresses"})})})}),k?(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,j?null:(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonConvertToCustomerHint"}),children:(0,c.jsx)(o.Action,{id:"buttonConvertToCustomer",icon:{src:t(826)},onClick:async()=>{new(await Plesk.require("app/convert-resellers-to-customers"))({id:"convertResellersToCustomers",cls:"popup-panel",prepareUrl:"/admin/reseller/prepare-convert/",handlerUrl:"/admin/reseller/convert-to-customer/?redirect=/reseller/list/",ids:[e]})},children:(0,c.jsx)(p,{content:"buttonConvertToCustomer"})})})}),(0,c.jsx)("div",{className:"side-panel__item",children:(0,c.jsx)(o.Tooltip,{title:(0,c.jsx)(p,{content:"buttonRemoveHint"}),children:(0,c.jsx)(o.Action,{id:"buttonRemove",icon:{src:t(811)},onClick:()=>{r.messageBox.show({type:r.messageBox.TYPE_YESNO,subtype:r.messageBox.SUBTYPE_DELETE,text:u.lmsg("buttonRemoveResellerConfirmationTitle",{name:`<b>${i}</b>`}),description:u.lmsg("buttonRemoveResellerConfirmationDescription"),onYesClick(){(0,r.redirectPost)(`/reseller/delete-current/id/${e}`)}})},children:(0,c.jsx)(p,{content:"buttonRemove"})})})})]})]});h.propTypes={id:s().number.isRequired,login:s().string.isRequired,contactName:s().string.isRequired,companyName:s().string.isRequired,emailAddress:s().string.isRequired,description:s().string.isRequired,setupDate:s().string.isRequired,isActive:s().bool.isRequired,ownCustomers:s().number.isRequired,ownPlans:s().number.isRequired,ownSubscriptions:s().number.isRequired,isIisAppPoolsPolicyMixed:s().bool,subscription:s().shape({name:s().string.isRequired,isLocked:s().bool.isRequired,isSynchronized:s().bool.isRequired})},h.defaultProps={isIisAppPoolsPolicyMixed:!1,subscription:void 0},n.default=h},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},830:(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(823),p=t(204);const m=o.Locale.getSection("admin.controllers.reseller.subscriptions"),b=({tabs:e,id:n,...t})=>{const[i]=(0,d.useCreateSubscriptionFormInDrawer)(`/admin/reseller/subscriptions/id/${n}`,`/admin/reseller/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/reseller/subscriptions-list-data/id/${n}`,createUrl:`/admin/reseller/new-subscription/id/${n}`,changeUrl:`/admin/reseller/change-subscription/id/${n}`,redirectUrl:`/admin/reseller/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})})))},829:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i.default});var i=t(830)},808:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/change-password.png?54304f321bc897402075b73230593f04"},826:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/convert-to-customer.png?597b1b6aa17102a0d694f2acd4275f1e"},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"},825:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/ip-pool.png?660f416531a7d16c58da56704aa08b79"},824:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/login.png?b68531bba0e522a3a35a90de80b8892a"},711:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/stats.png?6a39051adc0633466df48a83a804028c"},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"},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?559529511f3039a80f20

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.