D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
local
/
psa
/
admin
/
cp
/
public
/
javascript
/
views
/
admin
/
setup
/
Filename :
index.js
back
Copy
(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/setup/index"],{1496:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>m,withInitLayout:()=>p});var t=i(285),a=i(596),s=i.n(a),o=i(286),r=i(89),c=i(1075),l=i(618);const d=r.Locale.getTranslate("components.shortcuts"),u=({banner:e,children:n})=>((0,t.useLayoutEffect)((()=>{(0,r.getComponent)("asyncProgressBarWrapper")?.hide()}),[]),(0,t.jsxs)("div",{className:"init-page",children:[(0,t.jsx)(l.default,{layoutType:"simplified"}),(0,t.jsx)(o.Layout,{type:"simplified",className:"init-page__inner",header:(0,t.jsxs)("div",{className:"init-page-header",children:[(0,t.jsx)("div",{className:"init-page-header__brand",children:(0,t.jsx)(c.default,{})}),(0,t.jsx)("div",{className:"init-page-header__actions",children:(0,t.jsxs)("a",{className:"init-page-header__action",href:"/logout.php","data-type":"link-logout",children:[(0,t.jsx)("span",{className:"icon",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,t.jsx)("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,t.jsx)(d,{content:"logOut"})]})})]}),contentAddon:e?(0,t.jsx)("div",{className:"init-page__banner",children:(0,t.jsx)("img",{className:"init-page__banner-image",src:e,alt:""})}):null,children:(0,t.jsx)("div",{id:"main",className:"init-page__content",children:n})})]}));u.propTypes={children:s().any,banner:s().any};const p=(e,{banner:n})=>{const i=i=>(0,t.jsx)(u,{banner:n,children:(0,t.jsx)(e,{...i})});return i.displayName=`withInitLayout(${e.displayName||e.name||"Component"})`,i.WrappedComponent=e,i},m=u},1498:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>v});var t=i(580),a=i(596),s=i.n(a),o=i(586),r=i(286),c=i(89),l=i(1289),d=i(1496),u=i(538),p=i(1499),m=i.n(p),f=i(285);const h=c.Locale.getTranslate("components.forms.setup"),x=({action:e,values:n})=>{const i=(0,t.useNavigate)(),{data:{config:a}={}}=(0,o.useQuery)(m());return(0,f.jsxs)(l.default,{action:e,onLongTask:({status:e,errors:n})=>{if(e===u.STATUS_ERROR)throw new Error(n.join("\n"));i("/admin/setup/progress")},values:n,hideRequiredLegend:!0,submitButton:{id:"btn-send",children:(0,f.jsx)(h,{content:"sendButton"})},applyButton:!1,cancelButton:!1,children:[(0,f.jsx)("p",{children:(0,f.jsx)(h,{content:"hint"})}),(0,f.jsxs)(r.Section,{title:(0,f.jsx)(h,{content:"contactInfoSection"}),children:[(0,f.jsx)("p",{children:(0,f.jsx)(h,{content:"contactInfoSectionHint"})}),(0,f.jsx)(r.FormFieldText,{name:"contactInfo[contactName]",label:(0,f.jsx)(h,{content:"contactName"}),required:!0,size:"fill"}),(0,f.jsx)(r.FormFieldText,{name:"contactInfo[email]",label:(0,f.jsx)(h,{content:"email"}),required:!0,size:"fill"})]}),(0,f.jsxs)(r.Section,{title:(0,f.jsx)(h,{content:"passwordSection"}),children:[(0,f.jsx)("p",{children:(0,f.jsx)(h,{content:"passwordSectionHint"})}),(0,f.jsx)(r.FormFieldPassword,{name:"password[password]",label:(0,f.jsx)(h,{content:"password"}),required:!0})]}),a?.setup?.forceAdminPasswordReset?.enabled&&(0,f.jsx)(r.Section,{children:(0,f.jsx)(r.FormFieldCheckbox,{name:"password[resetOnFirstLogin]",label:(0,f.jsx)(h,{content:"resetPasswordOnFirstLogin"}),checkedValue:"true",uncheckedValue:"false"})}),n.license?(0,f.jsxs)(r.Section,{title:(0,f.jsx)(h,{content:"licenseSection"}),children:[(0,f.jsx)("p",{children:(0,f.jsx)(h,{content:"licenseSectionHint"})}),(0,f.jsx)(r.FormFieldRadioButtons,{name:"license[licenseType]",label:(0,f.jsx)(h,{content:"licenseType"}),options:[{value:"paid",label:(0,f.jsx)(h,{content:"licenseTypePaid"}),indentFields:[(0,f.jsx)(r.FormFieldText,{name:"license[activationCode]",label:null,description:(0,f.jsx)(h,{content:"activationCodeHint",params:{onlineStoreLink:(0,f.jsx)("a",{href:a?.product?.buyUrl,target:"_blank",rel:"noopener noreferrer",children:(0,f.jsx)(h,{content:"onlineStoreLink"})})}}),size:"fill"},"activationCode")]},{value:"trial",label:(0,f.jsx)(h,{content:"licenseTypeTrial"}),description:(0,f.jsx)(h,{content:"trialLicenseAgreement",params:{privacyPolicyLink:(0,f.jsx)("a",{href:a?.product?.privacyPolicyUrl,target:"_blank",rel:"noopener noreferrer",children:(0,f.jsx)(h,{content:"privacyPolicyLink"})})}})}]})]}):null,(0,f.jsx)(r.Section,{children:(0,f.jsx)(r.FormFieldCheckbox,{name:"eula[eulaAgreement]",label:(0,f.jsx)(h,{content:"eulaAgreementLabel",params:{link:(0,f.jsx)("a",{href:"/admin/index/eula",target:"_blank",rel:"noopener noreferrer",children:(0,f.jsx)(h,{content:"eula"})})}}),required:!0,checkedValue:"true",uncheckedValue:"false"})})]})};x.propTypes={action:s().string.isRequired,values:s().object.isRequired};const v=(0,d.withInitLayout)(x,{banner:i(1500)})},1500:e=>{e.exports=Jsw.skinUrl+"/images/postinstall-configuration.png?02b7ce7cf1b176ddb077e975e916239c"},1499:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SetupPage"},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:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"buyUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"privacyPolicyUrl"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"setup"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"forceAdminPasswordReset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:217}};n.loc.source={body:"query SetupPage {\n config {\n product {\n buyUrl\n privacyPolicyUrl\n }\n setup {\n forceAdminPasswordReset {\n enabled\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var t=e.definitions[i];if(t.name&&t.name.value==n)return t}}n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.SetupPage=function(e,n){var i={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var s=t[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var c=r;r=new Set,c.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(n,"SetupPage")}}]); //# sourceMappingURL=index.js.map?f18437f209f7ed298263