(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/setup/index"],{731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{withInitLayout:()=>p});var a=n(154),l=n(261),c=n.n(l),r=n(155),i=n(144),o=n(581),s=n(588),m=n(301);const d=i.Locale.getTranslate("components.shortcuts"),u=({banner:e,children:t})=>{const{logo:n}=(0,m.usePageData)();return(0,a.useLayoutEffect)((()=>{var e;null===(e=(0,i.getComponent)("asyncProgressBarWrapper"))||void 0===e||e.hide()}),[]),(0,a.createElement)("div",{className:"init-page"},(0,a.createElement)(s.default,{layoutType:"simplified"}),(0,a.createElement)(r.Layout,{type:"simplified",className:"init-page__inner",header:(0,a.createElement)("div",{className:"init-page-header"},n?(0,a.createElement)("div",{className:"init-page-header__brand"},(0,a.createElement)(o.default,n)):null,(0,a.createElement)("div",{className:"init-page-header__actions"},(0,a.createElement)("a",{className:"init-page-header__action",href:"/logout.php","data-type":"link-logout"},(0,a.createElement)("span",{className:"icon"},(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},(0,a.createElement)("path",{fill:"currentColor",d:"M13,16H6v3.573c0,0.078-0.045,0.148-0.115,0.181s-0.153,0.022-0.213-0.027l-4.75-3.958 c-0.228-0.19-0.36-0.471-0.36-0.768c0-0.297,0.132-0.578,0.36-0.768l4.75-3.958c0.06-0.05,0.143-0.06,0.213-0.028 C5.955,10.279,6,10.349,6,10.427V14h7c0.552,0,1,0.448,1,1C14,15.552,13.552,16,13,16z M32,2v21.13c0,0.538-0.288,1.035-0.756,1.302 l-11,6.286c-0.231,0.132-0.487,0.198-0.744,0.198c-0.26,0-0.52-0.068-0.753-0.203C18.285,30.444,18,29.95,18,29.415V26h-4 c-1.105,0-2-0.895-2-2v-3.5c0-0.276,0.224-0.5,0.5-0.5h1c0.276,0,0.5,0.224,0.5,0.5V24h4V8.87c0-0.538,0.288-1.035,0.756-1.302 L28.5,2H14v7.5c0,0.276-0.224,0.5-0.5,0.5h-1C12.224,10,12,9.776,12,9.5V2c0-1.105,0.895-2,2-2h16C31.105,0,32,0.895,32,2z  M30,3.446L20,9.161V24v2v2.554l10-5.714V3.446z"}))),(0,a.createElement)(d,{content:"logOut"})))),contentAddon:e?(0,a.createElement)("div",{className:"init-page__banner"},(0,a.createElement)("img",{className:"init-page__banner-image",src:e,alt:""})):null},(0,a.createElement)("div",{id:"main",className:"init-page__content"},t)))};u.propTypes={children:c().any,banner:c().any},u.defaultProps={children:void 0,banner:void 0};const p=(e,{banner:t})=>{const n=n=>(0,a.createElement)(u,{banner:t},(0,a.createElement)(e,n));return n.displayName=`withInitLayout(${e.displayName||e.name||"Component"})`,n.WrappedComponent=e,n};t.default=u},733:(e,t,n)=>{"use strict";n.r(t);var a=n(154),l=n(556),c=n(261),r=n.n(c),i=n(405),o=n(302),s=n(155),m=n(144),d=n(722),u=n(731),p=n(496);const E=m.Locale.getTranslate("components.forms.setup"),g=({action:e,values:t})=>{var n,c;const r=(0,l.useHistory)(),{data:{config:m}={}}=(0,i.useQuery)(o.gql`
        {
            config {
                product {
                    buyUrl
                    privacyPolicyUrl
                }
            }
        }
    `);return(0,a.createElement)(d.default,{action:e,onLongTask:({status:e,errors:t})=>{if(e===p.STATUS_ERROR)throw new Error(t.join("\n"));r.push("/admin/setup/progress")},values:t,hideRequiredLegend:!0,submitButton:{id:"btn-send",children:(0,a.createElement)(E,{content:"sendButton"})},applyButton:!1,cancelButton:!1},(0,a.createElement)("p",null,(0,a.createElement)(E,{content:"hint"})),(0,a.createElement)(s.Section,{title:(0,a.createElement)(E,{content:"contactInfoSection"})},(0,a.createElement)("p",null,(0,a.createElement)(E,{content:"contactInfoSectionHint"})),(0,a.createElement)(s.FormFieldText,{name:"contactInfo[contactName]",label:(0,a.createElement)(E,{content:"contactName"}),required:!0,size:"fill"}),(0,a.createElement)(s.FormFieldText,{name:"contactInfo[email]",label:(0,a.createElement)(E,{content:"email"}),required:!0,size:"fill"})),(0,a.createElement)(s.Section,{title:(0,a.createElement)(E,{content:"passwordSection"})},(0,a.createElement)("p",null,(0,a.createElement)(E,{content:"passwordSectionHint"})),(0,a.createElement)(s.FormFieldPassword,{name:"password[password]",label:(0,a.createElement)(E,{content:"password"}),required:!0})),t.license?(0,a.createElement)(s.Section,{title:(0,a.createElement)(E,{content:"licenseSection"})},(0,a.createElement)("p",null,(0,a.createElement)(E,{content:"licenseSectionHint"})),(0,a.createElement)(s.FormFieldRadioButtons,{name:"license[licenseType]",label:(0,a.createElement)(E,{content:"licenseType"}),options:[{value:"paid",label:(0,a.createElement)(E,{content:"licenseTypePaid"}),indentFields:[(0,a.createElement)(s.FormFieldText,{key:"activationCode",name:"license[activationCode]",label:null,description:(0,a.createElement)(E,{content:"activationCodeHint",params:{onlineStoreLink:(0,a.createElement)("a",{href:null==m||null===(n=m.product)||void 0===n?void 0:n.buyUrl,target:"_blank",rel:"noopener noreferrer"},(0,a.createElement)(E,{content:"onlineStoreLink"}))}}),size:"fill"})]},{value:"trial",label:(0,a.createElement)(E,{content:"licenseTypeTrial"}),description:(0,a.createElement)(E,{content:"trialLicenseAgreement",params:{privacyPolicyLink:(0,a.createElement)("a",{href:null==m||null===(c=m.product)||void 0===c?void 0:c.privacyPolicyUrl,target:"_blank",rel:"noopener noreferrer"},(0,a.createElement)(E,{content:"privacyPolicyLink"}))}})}]})):null,(0,a.createElement)(s.Section,null,(0,a.createElement)(s.FormFieldCheckbox,{name:"eula[eulaAgreement]",label:(0,a.createElement)(E,{content:"eulaAgreementLabel",params:{link:(0,a.createElement)("a",{href:"/admin/index/eula",target:"_blank",rel:"noopener noreferrer"},(0,a.createElement)(E,{content:"eula"}))}}),required:!0,checkedValue:"true",uncheckedValue:"false"})))};g.propTypes={action:r().string.isRequired,values:r().object.isRequired},t.default=(0,u.withInitLayout)(g,{banner:n(734)})},734:e=>{e.exports=Jsw.skinUrl+"/images/postinstall-configuration.png?681cd0cbef4becefa841a52cfd46cd0a"}}]);
//# sourceMappingURL=index.js.map?de5c707ac841b89e3f97