PageSourceSearch

https://abovethefoldbook.com/cp/javascript/components/pages/ScheduledBackupPage.js?8dddfe3ea9959208ca59

js abovethefoldbook.com collected 2026-10-08 06:05:20 UTC 23,618 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/ScheduledBackupPage"],{1728(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var s=n(379),l=n(95),o=n(763),a=n.n(o),i=n(1729),r=n.n(i),c=(n(1730),n(378));const u=l.Locale.getTranslate("controllers.backup.schedule"),d=l.Locale.getSection("controllers.backup.schedule"),p=({showBuyLink:e,url:t,newWindow:n,isOpen:l,handleClose:o,promoReadMoreUrl:a})=>(0,c.jsx)(s.Dialog,{isOpen:l,size:"sm",banner:r(),title:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{content:"cloudBackupRestrictionTitle"}),(0,c.jsxs)("ul",{className:"cloud-promo-features",children:[(0,c.jsxs)("li",{children:[" ",(0,c.jsx)(u,{content:"cloudBackupRestrictionLi1"})]}),(0,c.jsxs)("li",{children:[" ",(0,c.jsx)(u,{content:"cloudBackupRestrictionLi2"})]})]})]}),cancelTitle:(0,c.jsx)(u,{content:"cloudBackupRestrictionCloseButton"}),buttons:e?(0,c.jsx)(s.Button,{intent:"primary",icon:"shopping-cart",component:"a",href:t,target:n?"_blank":void 0,onClose:o,children:(0,c.jsx)(u,{content:"cloudBackupRestrictionBuyButton"})}):null,onClose:o,children:(0,c.jsx)("span",{dangerouslySetInnerHTML:{__html:d.lmsg(e?"cloudBackupRestrictionDescriptionWithBuy":"cloudBackupRestrictionDescription",{readMoreLink:a})}})});p.propTypes={showBuyLink:a().bool.isRequired,url:a().string.isRequired,newWindow:a().bool.isRequired,isOpen:a().bool.isRequired,handleClose:a().func.isRequired,promoReadMoreUrl:a().string.isRequired};const h=p},1719(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(379),l=n(95),o=n(763),a=n.n(o),i=n(378);const r=l.Locale.getTranslate("components.forms.backup.schedule"),c=({serverSettings:{isRotationUnlimited:e,rotation:t}})=>(0,i.jsx)(s.FormFieldText,{name:"schedule[rotation]",label:(0,i.jsx)(r,{content:"maxDumpFiles"}),inputProps:{maxLength:"4"},size:"sm",required:!e,description:(0,i.jsx)(r,{content:e?"maxDumpFilesUnlimitedDescription":"maxDumpFilesLimitedDescription",params:{max:t}})});c.propTypes={serverSettings:a().shape({isRotationUnlimited:a().bool.isRequired,rotation:a().number.isRequired}).isRequired};const u=c},1720(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>p});var s=n(379),l=n(95),o=n(763),a=n.n(o),i=n(1718),r=n(378);const c=l.Locale.getTranslate("components.forms.backup.schedule"),u=l.Locale.getSection("components.forms.backup.schedule"),d=({period:e,values:t,handleFieldChange:n,serverSettings:{isRotationUnlimited:l,rotation:o}})=>{const a=(0,s.getIn)(t,"rotation"),d=(0,s.getIn)(t,"hourPerDay",i.PERIOD_HOURLY)/i.PERIOD_HOURLY,p=(0,r.useMemo)(()=>({retainUnit:"",retainValue:Math.max(e,i.PERIOD_DAILY)}),[e]),h=(0,r.useCallback)(t=>{if(t<=0)return p;let n;switch(e){case i.PERIOD_HOURLY:n=60*t*60*d;break;case i.PERIOD_DAILY:n=60*t*60*24;break;case i.PERIOD_WEEKLY:n=60*t*60*24*7;break;case i.PERIOD_MONTHLY:n=60*t*60*24*30;break;case i.PERIOD_YEARLY:n=60*t*60*24*365}for(const e of[i.PERIOD_YEARLY,i.PERIOD_MONTHLY,i.PERIOD_WEEKLY,i.PERIOD_DAILY,i.PERIOD_HOURLY])if(n%e===0)return{retainUnit:n/e,retainValue:e};return p},[e,d,p]),m=(0,r.useCallback)((t,n)=>{if(!(t=parseInt(t)))return"";switch(e){case i.PERIOD_HOURLY:return Math.floor(n/60/60/d*t);case i.PERIOD_DAILY:return Math.floor(n/60/60/24*t);case i.PERIOD_WEEKLY:return Math.floor(n/60/60/24/7*t);case i.PERIOD_MONTHLY:return Math.floor(n/60/60/24/30*t);case i.PERIOD_YEARLY:return Math.floor(n/60/60/24/365*t)}},[e,d]),[b,x]=(0,r.useState)(h(a).retainValue),[g,k]=(0,r.useState)(h(a).retainUnit);return(0,r.useEffect)(()=>{(b<e||b===i.PERIOD_YEARLY&&e!==i.PERIOD_YEARLY)&&x(p.retainValue)},[e,b,p]),(0,r.useEffect)(()=>{n("rotation",m(g,b))},[b,g,n,m]),(0,r.jsx)(s.FormField,{name:"schedule[rotation]",description:u.formatMessage(l?"maxDumpFilesUnlimitedDescription":"retainLimitedDescription",{max:o}),label:(0,r.jsx)(c,{content:"retainDumpFilesFor"}),required:!l,children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Input,{id:"schedule-rotation",onChange:e=>k(e.target.value),size:"sm",maxLength:"4",value:g})," ",(0,r.jsxs)(s.Select,{size:"sm",id:"retain-time-interval",name:"retain-time-interval","aria-label":u.lmsg("retainTimeInterval"),onChange:x,value:b,children:[e<=i.PERIOD_HOURLY&&(0,r.jsx)(s.SelectOption,{value:i.PERIOD_HOURLY,label:"hours",children:(0,r.jsx)(c,{content:"retainHours"})}),e<=i.PERIOD_DAILY&&(0,r.jsx)(s.SelectOption,{value:i.PERIOD_DAILY,label:"days",children:(0,r.jsx)(c,{content:"days"})}),e<=i.PERIOD_WEEKLY&&(0,r.jsx)(s.SelectOption,{value:i.PERIOD_WEEKLY,label:"weeks",children:(0,r.jsx)(c,{content:"weeks"})}),e<=i.PERIOD_MONTHLY&&(0,r.jsx)(s.SelectOption,{value:i.PERIOD_MONTHLY,label:"months",children:(0,r.jsx)(c,{content:"months"})}),e===i.PERIOD_YEARLY&&(0,r.jsx)(s.SelectOption,{value:i.PERIOD_YEARLY,label:"years",children:(0,r.jsx)(c,{content:"years"})})]})]})})};d.propTypes={period:a().number.isRequired,values:a().object.isRequired,handleFieldChange:a().func.isRequired,serverSettings:a().shape({isRotationUnlimited:a().bool.isRequired,rotation:a().number.isRequired}).isRequired};const p=d},1718(e,t,n){"use strict";n.r(t),n.d(t,{PERIOD_DAILY:()=>p,PERIOD_HOURLY:()=>d,PERIOD_MONTHLY:()=>m,PERIOD_WEEKLY:()=>h,PERIOD_YEARLY:()=>b,default:()=>g});var s=n(379),l=n(95),o=n(763),a=n.n(o),i=n(378);const r=l.Locale.getTranslate("components.forms.backup.schedule"),c=l.Locale.getSection("components.forms.backup.schedule"),u=l.Locale.getTranslate("smb.components.days-of-week"),d=3600,p=86400,h=604800,m=2592e3,b=31536e3,x=({showHourlyOption:e=!1,period:t,timezone:n=null,hidePeriod:l=!1,values:o,handleFieldChange:a})=>(0,i.jsx)(s.FormField,{label:(0,i.jsx)(r,{content:"backupPeriod"}),name:"schedule[period]",description:(0,i.jsx)(r,{content:"backupTimeDescription",params:{timezone:n??(0,i.jsx)(r,{content:"systemTimeZone"})}}),children:({isDisabled:n})=>(0,i.jsxs)(i.Fragment,{children:[!l&&(0,i.jsxs)(s.Select,{size:"sm",name:"schedule[backupPeriod]",id:"schedule-backupPeriod",value:t,onChange:e=>a("backupPeriod",e),disabled:n(),children:[(e||(0,s.getIn)(o,"backupPeriod")===d)&&(0,i.jsx)(s.SelectOption,{value:d,label:"hourly",children:(0,i.jsx)(r,{content:"hourly"})}),(0,i.jsx)(s.SelectOption,{value:p,label:"daily",children:(0,i.jsx)(r,{content:"daily"})}),(0,i.jsx)(s.SelectOption,{value:h,label:"weekly",children:(0,i.jsx)(r,{content:"weekly"})}),(0,i.jsx)(s.SelectOption,{value:m,label:"monthly",children:(0,i.jsx)(r,{content:"monthly"})})]}),t===h&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)(r,{content:"on"})," ",(0,i.jsx)(s.Select,{size:"sm",name:"schedule[dayOfWeek]",id:"schedule-dayOfWeek",value:(0,s.getIn)(o,"dayOfWeek"),"aria-label":c.lmsg("weekDay"),onChange:e=>a("dayOfWeek",e),disabled:n(),children:[7,1,2,3,4,5,6].map(e=>(0,i.jsx)(s.SelectOption,{value:e,label:`${e}`,children:(0,i.jsx)(u,{content:Math.max((e+1)%8,1)})},e))})]}),t===m&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)(r,{content:"on"})," ",(0,i.jsx)(s.Select,{size:"xs",name:"schedule[dayOfMonth]",
1id:"schedule-dayOfMonth",value:(0,s.getIn)(o,"dayOfMonth"),"aria-label":c.lmsg("monthDay"),onChange:e=>a("dayOfMonth",e),disabled:n(),children:Object.keys(new Array(31).fill(0)).map(e=>{const t=+e+1;return(0,i.jsx)(s.SelectOption,{value:t,label:`${t}`,children:1===t||31===t?(0,i.jsx)(r,{content:1===t?"first":"last"}):t},t)})})," ",(0,i.jsx)(r,{content:"dayOfMonth"})]}),t===d?(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)(r,{content:"every"})," ",(0,i.jsx)(s.Select,{size:"xs",name:"schedule[hourPerDay]",id:"schedule-hourPerDay",value:(0,s.getIn)(o,"hourPerDay"),"aria-label":c.lmsg("hoursInterval"),onChange:e=>a("hourPerDay",e),disabled:n(),children:[1,2,3,4,6,8,12].map(e=>(0,i.jsx)(s.SelectOption,{value:e*d,label:`${e}`,children:e},e))})," ",c.formatMessage("hours",{period:(0,s.getIn)(o,"hourPerDay")/d})]}):(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)(r,{content:"at"})," ",(0,i.jsx)(s.Select,{size:"xs",name:"schedule[hour]",id:"schedule-hour",value:(0,s.getIn)(o,"hour"),"aria-label":c.lmsg("backupHour"),onChange:e=>a("hour",e),disabled:n(),children:Object.keys(new Array(24).fill(0)).map(e=>{const t=+e;return(0,i.jsx)(s.SelectOption,{value:t,label:`${t}`,children:`${t<10?"0":""}${t}`},t)})})," : ",(0,i.jsx)(s.Select,{size:"xs",name:"schedule[minute]",id:"schedule-minute",value:(0,s.getIn)(o,"minute"),"aria-label":c.lmsg("backupMinute"),onChange:e=>a("minute",e),disabled:n(),children:[0,15,30,45].map(e=>(0,i.jsx)(s.SelectOption,{value:e,label:`${e}`,children:`${e<10?"0":""}${e}`},e))})]})]})});x.propTypes={showHourlyOption:a().bool,period:a().number.isRequired,timezone:a().string,hidePeriod:a().bool,values:a().object.isRequired,handleFieldChange:a().func.isRequired};const g=x},1717(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>m});var s=n(378),l=n(379),o=n(95),a=n(1718),i=n(1719),r=n(1720),c=n(763),u=n.n(c),d=n(1721);n(1722);const p=o.Locale.getTranslate("components.forms.backup.schedule"),h=({showHourlyOption:e=!1,rotateByPeriod:t=!1,timezone:n=null,serverSettings:c,isIncrementalAllowed:u,hidePeriod:h=!1,hideStatus:m=!1,values:b,handleFieldChange:x,promo:g=null,showCloudPromo:k=null})=>{const j=(0,l.getIn)(b,"backupPeriod"),f=(0,l.getIn)(b,"fullBackupPeriod"),R="true"===(0,l.getIn)(b,"useIncremental");return(0,s.useEffect)(()=>{if(j>=f||j===a.PERIOD_HOURLY&&f>a.PERIOD_WEEKLY)switch(j){case a.PERIOD_HOURLY:x("fullBackupPeriod",a.PERIOD_DAILY);break;case a.PERIOD_DAILY:x("fullBackupPeriod",a.PERIOD_WEEKLY);break;case a.PERIOD_WEEKLY:x("fullBackupPeriod",a.PERIOD_MONTHLY);break;case a.PERIOD_MONTHLY:x("fullBackupPeriod",a.PERIOD_YEARLY)}},[j,f,x]),(0,s.useEffect)(()=>{u||x("useIncremental","false")},[u,x]),(0,s.useEffect)(()=>{g&&o.UAT.dispatchAction("SHOWHEADERPROMO",{promo:"backup_scheduler_header"})},[g]),(0,s.jsxs)(l.Section,{title:(0,s.jsx)(p,{content:"scheduleSection"}),children:[g&&(0,s.jsx)("div",{className:"schedule-section-promo",children:(0,s.jsx)(d.default,{...g,onDetailsClick:k})}),j===a.PERIOD_HOURLY&&(0,s.jsx)(l.StatusMessage,{intent:"warning",id:"schedule-backupPeriod-hourly-warning",children:(0,s.jsx)(p,{content:"backupHourlyWarning"})}),!m&&(0,s.jsx)(l.FormFieldCheckbox,{label:(0,s.jsx)(p,{content:"backupEnable"}),name:"schedule[backup_enable]",checkedValue:"true",uncheckedValue:"false"}),(0,s.jsx)(a.default,{showHourlyOption:e,period:j,timezone:n,hidePeriod:h,values:b,handleFieldChange:x}),(0,s.jsx)(l.FormFieldCheckbox,{label:(0,s.jsx)(p,{content:"useIncremental"}),name:"schedule[useIncremental]",checkedValue:"true",uncheckedValue:"false",disabled:!u,description:!u&&(0,s.jsx)(p,{content:"useIncrementalDisableHint"})}),R&&(0,s.jsxs)(l.FormFieldSelect,{label:(0,s.jsx)(p,{content:"fullBackupPeriod"}),name:"schedule[fullBackupPeriod]",size:"sm",children:[j<a.PERIOD_DAILY&&(0,s.jsx)(l.SelectOption,{value:a.PERIOD_DAILY,label:"daily",children:(0,s.jsx)(p,{content:"daily"})}),j<a.PERIOD_WEEKLY&&(0,s.jsx)(l.SelectOption,{value:a.PERIOD_WEEKLY,label:"weekly",children:(0,s.jsx)(p,{content:"weekly"})}),j<a.PERIOD_MONTHLY&&j!==a.PERIOD_HOURLY&&(0,s.jsx)(l.SelectOption,{value:a.PERIOD_MONTHLY,label:"monthly",children:(0,s.jsx)(p,{content:"monthly"})}),j!==a.PERIOD_HOURLY&&(0,s.jsx)(l.SelectOption,{value:a.PERIOD_YEARLY,label:"yearly",children:(0,s.jsx)(p,{content:"yearly"})})]}),t?(0,s.jsx)(r.default,{serverSettings:c,period:R?f:j,values:b,handleFieldChange:x}):(0,s.jsx)(i.default,{serverSettings:c})]})};
1h.propTypes={showHourlyOption:u().bool,timezone:u().string,serverSettings:u().shape({isRotationUnlimited:u().bool.isRequired,rotation:u().number.isRequired}).isRequired,isIncrementalAllowed:u().bool.isRequired,hidePeriod:u().bool,hideStatus:u().bool,rotateByPeriod:u().bool,values:u().object.isRequired,handleFieldChange:u().func.isRequired,promo:u().object,showCloudPromo:u().func};const m=h},1716(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s.default});var s=n(1717)},1715(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>g});var s=n(378),l=n(1403),o=n(1716),a=n(1723),i=n(1728),r=n(379),c=n(1725),u=n(1726),d=n(95),p=n(771),h=n(763),m=n.n(h);const b=d.Locale.getTranslate("components.buttons"),x=({cancelLink:e,values:t,retrieveKeysTaskId:n,isBackupToCloudAllowed:h=!0,promo:m,showUpsellPromo:x=!1,serverSettings:g,...k})=>{const[j,f]=(0,s.useState)(t),[R,O]=(0,s.useState)(m),[y,I]=(0,s.useState)(!1),[E,P]=(0,s.useState)(!1),v=(e,t)=>{f(n=>(0,r.setIn)(n,e,t))},_=(0,r.getIn)(j,"backup[content][content_type]"),D=_.includes(c.TYPE_MAIL)||_.includes(c.TYPE_FILES),L=(0,r.getIn)(j,"backup[content][repository]");(0,p.default)("plesk:taskComplete",({id:e})=>{n===+e&&O(null)},d.Observer);const S=Object.keys(k).reduce((e,t)=>o.default.propTypes[t]||a.default.propTypes[t]?e:{...e,[t]:k[t]},{}),F=(0,s.useCallback)((e,t)=>v(`schedule[${e}]`,t),[]),C=(0,s.useCallback)((e,t,n)=>v(`backup[${t}][${e}]`,n),[]);return(0,s.jsxs)(l.default,{values:j,onFieldChange:v,onSubmit:e=>y?(P(!0),null):{...e,backup:{...e.backup,content:{...e.backup.content,content_type:e.backup.content.content_type.filter(e=>e!==c.TYPE_CONFIGURATION)}}},submitButton:{id:"btn-send",name:"send"},applyButton:{id:"btn-apply",name:"apply"},cancelButton:{id:"btn-cancel",name:"cancel",children:(0,s.jsx)(b,{content:"cancel"}),onClick:()=>(0,d.redirect)(e)},onError:({schedule:e,...t},n)=>{const s={};if(e){const{backupPeriod:t,dayOfWeek:n,dayOfMonth:l,hourPerDay:o,hour:a,minute:i,...r}=e;s.schedule={...r,period:{...t||{},...n||{},...l||{},...o||{},...a||{},...i||{}}}}n({...t,...s})},...S,children:[(0,s.jsx)(o.default,{isIncrementalAllowed:D,values:(0,r.getIn)(j,"schedule"),handleFieldChange:F,serverSettings:L===u.TYPE_LOCAL||L===u.TYPE_BOTH?g:{...g,isRotationUnlimited:!0},promo:x?R:null,showCloudPromo:()=>P(!0),...k}),(0,s.jsx)(a.default,{promo:R,values:(0,r.getIn)(j,"backup"),handleFieldChange:C,setShowPromo:h?void 0:I,showPromo:y,...k}),R&&(0,s.jsx)(i.default,{isOpen:E,handleClose:()=>P(!1),...R})]})};x.propTypes={cancelLink:m().string.isRequired,values:m().object.isRequired,retrieveKeysTaskId:m().string,isBackupToCloudAllowed:m().bool,showUpsellPromo:m().bool,promo:m().object,serverSettings:m().shape({isRotationUnlimited:m().bool.isRequired,rotation:m().number.isRequired}).isRequired};const g=x},1725(e,t,n){"use strict";n.r(t),n.d(t,{TYPE_CONFIGURATION:()=>c,TYPE_DATABASE:()=>p,TYPE_FILES:()=>d,TYPE_MAIL:()=>u,default:()=>m});var s=n(379),l=n(95),o=n(763),a=n.n(o),i=n(378);const r=l.Locale.getTranslate("components.forms.backup.subform"),c="configuration",u="backup_content_mail",d="backup_content_file",p="backup_content_database",h=({isMailServiceSupported:e,values:t,handleFieldChange:n})=>{const l=(0,s.getIn)(t,"content[content_type]"),o=(e,t)=>n("content_type","content",t?[...l,e]:l.filter(t=>t!==e));return(0,i.jsxs)(s.FormField,{label:(0,i.jsx)(r,{content:"content"}),name:"backup[content][content_type]",children:[(0,i.jsx)(s.FormFieldCheckbox,{label:(0,i.jsx)(r,{content:"domainConfiguration"}),id:`backup-content-content_type-${c}`,disabled:!0,value:l.includes(c)}),e&&(0,i.jsx)(s.FormFieldCheckbox,{label:(0,i.jsx)(r,{content:"domainConfigurationMail"}),id:`backup-content-content_type-${u}`,value:l.includes(u),onChange:e=>o(u,e)}),(0,i.jsx)(s.FormFieldCheckbox,{label:(0,i.jsx)(r,{content:"domainConfigurationFile"}),id:`backup-content-content_type-${d}`,value:l.includes(d),onChange:e=>o(d,e)}),(0,i.jsx)(s.FormFieldCheckbox,{label:(0,i.jsx)(r,{content:"domainConfigurationDatabase"}),id:`backup-content-content_type-${p}`,value:l.includes(p),onChange:e=>o(p,e)})]})};h.propTypes={isMailServiceSupported:a().bool.isRequired,values:a().object.isRequired,handleFieldChange:a().func.isRequired};const m=h},1721(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>u});var s=n(379),l=n(95),o=n(763),a=n.n(o),i=n(378);const r=l.Locale.getTranslate("controllers.backup.schedule"),c=({showBuyLink:e,url:t,newWindow:n,onDetailsClick:l=null})=>e?(0,i.jsx)(s.Status,{icon:"dollar-filled",intent:"danger",children:(0,i.jsxs)(s.Text,{intent:"muted",fontSize:"sm",children:[(0,i.jsx)(r,{content:"cloudBackupRestrictionHintWithBuy"}),(0,i.jsx)("br",{}),l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("a",{"data-testid":"readMore",id:"promo-banner-read-more",onClick:()=>l(),rel:"noopener noreferrer",children:(0,i.jsx)(r,{content:"showMoreButton"})}),"  "]}),(0,i.jsx)("a",{href:t,target:n?"_blank":null,rel:"noopener noreferrer",children:(0,i.jsx)(r,{content:"cloudBackupRestrictionBuyButton"})})]})}):(0,i.jsx)(s.Status,{intent:"warning",children:(0,i.jsxs)(s.Text,{intent:"muted",fontSize:"sm",children:[(0,i.jsx)(r,{content:"cloudBackupRestrictionHint"}),l&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)("a",{"data-testid":"readMore",onClick:l,id:"promo-banner-read-more",rel:"noopener noreferrer",children:(0,i.jsx)(r,{content:"showMoreButton"})})]})]})});c.propTypes={showBuyLink:a().bool.isRequired,url:a().string.isRequired,newWindow:a().bool.isRequired,onDetailsClick:a().func};const u=c},1727(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>h});var s=n(379),l=n(95),o=n(1725),a=n(763),i=n.n(a),r=n(378);const c=l.Locale.getTranslate("components.forms.backup.subform"),u=l.Locale.getTranslate("components.forms.backup.schedule"),d=l.Locale.getSection("components.forms.backup.schedule"),p=({showMssqlNativeBackupOption:e,isAdmin:t,values:n,handleFieldChange:l})=>{const a=(0,s.getIn)(n,"content[content_type]"),i="true"===(0,s.getIn)(n,"settings[excludeFilesMasterCheckbox]"),p=(0,s.getIn)(n,"settings[emailMasterCheckbox]");return(0,r.jsxs)(r.Fragment,{children:[a.includes(o.TYPE_FILES)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.FormFieldCheckbox,{name:"backup[settings][exclude_logs]",label:(0,r.jsx)(c,{content:"excludeLogs"}),checkedValue:"true",uncheckedValue:"false"}),(0,r.jsx)(s.FormFieldCheckbox,{name:"backup[settings][excludeFilesMasterCheckbox]",label:(0,r.jsx)(c,{content:"excludeFiles"}),checkedValue:"true",uncheckedValue:"false"}),i&&(0,r.jsx)(s.FormFieldText,{name:"backup[settings][exclude_files]",description:(0,r.jsx)(c,{content:"excludeFilesDescription"}),multiline:!0,rows:5,size:"lg"})]}),(0,r.jsx)(s.FormField,{label:null,name:"backup[settings][email]",children:({isDisabled:e})=>(0,r.jsxs)("span",{style:{display:"flex",flexGrow:"1",gap:"4px",alignItems:"center"},children:[(0,r.jsx)(s.Checkbox,{id:"emailMasterCheckbox",checked:p,onChange:e=>l("emailMasterCheckbox","settings",e),disabled:e(),children:(0,r.jsx)(u,{content:"email"})}),(0,r.jsx)(s.Input,{id:"backup-settings-email",value:(0,s.getIn)(n,"settings[email]"),"aria-label":d.lmsg("notificationEmail"),onChange:e=>l("email","settings",e.target.value),disabled:!p||e(),size:"md",maxLength:"254"})]})}),e&&(0,r.jsx)(s.FormFieldCheckbox,{name:"backup[settings][mssql_native_backup]",label:(0,r.jsx)(c,{content:t?"mssqlNativeBackupAdmin":"mssqlNativeBackup"}),checkedValue:"true",uncheckedValue:"false"})]})};p.propTypes={showMssqlNativeBackupOption:i().bool.isRequired,isAdmin:i().bool.isRequired,values:i().object.isRequired,handleFieldChange:i().func.isRequired};const h=p},1724(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>d});var s=n(379),l=n(95),o=n(1725),a=n(1726),i=n(1727),r=n(378);const c=l.Locale.getTranslate("components.forms.backup.subform"),u=e=>(0,r.jsxs)(s.Section,{title:(0,r.jsx)(c,{content:"settingsSection"}),children:[(0,r.jsx)(o.default,{...e}),(0,r.jsx)(a.default,{...e}),(0,r.jsx)(i.default,{...e})]});
1u.propTypes={...o.default.propTypes,...a.default.propTypes,...i.default.propTypes};const d=u},1726(e,t,n){"use strict";n.r(t),n.d(t,{TYPE_BOTH:()=>h,TYPE_LOCAL:()=>d,default:()=>b});var s=n(378),l=n(379),o=n(1721),a=n(95),i=n(763),r=n.n(i);const c=a.Locale.getTranslate("components.forms.backup.subform"),u=a.Locale.getSection("components.forms.backup.subform"),d="local",p="ext",h="local-and-ext",m=({settings:{localEnabled:e,ftpEnabled:t,ftpConfigured:n,ftpActive:i,ftpServer:r,ftpBaseDir:m},showCloudStorages:b,cloudStorages:x,isAdmin:g,dumpsRepoDir:k,urls:{ftpSettings:j,remoteStorages:f},promo:R,showPromo:O,setShowPromo:y,values:I,handleFieldChange:E})=>{const P=e,v=t&&n&&i,_=t&&b,D=(0,l.getIn)(I,"content[repository]"),L=(0,l.getIn)(I,"content[remote_storage]"),S=(0,l.getIn)(I,"content[split_backup]"),F=(0,s.useMemo)(()=>{const e=m||"";return`${r||""}/${e.startsWith("/")?e.substring(1):e}`},[r,m]),C=(0,s.useMemo)(()=>[P?{repo:d,value:d,label:u.lmsg(g?"localRepositoryPath":"localRepository",{path:k})}:null,v?{repo:p,value:"ftp",label:(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:u.lmsg("ftpRepository",{uri:F,link:j})}}),name:u.lmsg("ftpRepositoryText",{uri:F})}:null,..._?x.map(({id:e,description:t})=>({repo:p,value:e,label:t,name:t})):[]].filter(Boolean),[P,v,_,g,F,j,k,x]),T=(0,s.useMemo)(()=>C.filter(({value:e})=>e!==d),[C]);return(0,s.useEffect)(()=>{y&&y(R&&"ftp"!==L&&D!==d)},[D,L,R,y]),(0,s.useEffect)(()=>{O&&a.UAT.dispatchAction("SHOWPROMO",{promo:"backup_scheduler",destination:L})},[O,L]),0===C.length?null:1===C.length?(0,s.jsx)(l.FormField,{label:(0,s.jsx)(c,{content:"repository"}),name:"backup[content][repository]",description:P&&t?(0,s.jsx)(c,{content:b?"configureRemoteDesc":"configureFtpDesc",params:{link:(0,s.jsx)("a",{href:b?f:j,children:(0,s.jsx)(c,{content:b?"configureRemoteLink":"configureFtpLink"})})}}):null,children:C[0].label}):(0,s.jsxs)(s.Fragment,{children:[P&&(0,s.jsx)(l.FormFieldRadioButtons,{label:(0,s.jsx)(c,{content:"repository"}),name:"backup[content][repository]",options:2===C.length?[...C.map(({repo:e,label:t})=>({value:e,label:t,description:D===e&&O&&(0,s.jsx)(o.default,{...R})})),{value:h,label:u.lmsg("localAndSpecialRepositoryBackup",{name:C[1].name}),description:D===h&&O&&(0,s.jsx)(o.default,{...R})}]:[C[0],{value:p,label:u.lmsg("remoteRepositoryOption")},{value:h,label:u.lmsg("localAndSpecialRepositoryBackup",{name:u.lmsg("remoteRepository")})}]}),T.length>
11&&(D!==d||!P)&&(0,s.jsx)(l.FormFieldSelect,{label:(0,s.jsx)(c,{content:"remoteRepositoryText"}),name:"backup[content][remote_storage]",description:O&&(0,s.jsx)(o.default,{...R}),children:T.map(({value:e,name:t})=>(0,s.jsx)(l.SelectOption,{value:e,label:`${e}`,children:t},e))}),(D!==d||!P)&&(0,s.jsx)(l.FormField,{label:null,name:"backup[content][split_backup_size]",children:({isDisabled:e})=>(0,s.jsxs)("span",{style:{display:"flex",flexGrow:"1",gap:"4px",alignItems:"center"},children:[(0,s.jsx)(l.Checkbox,{id:"split_backup",checked:S,onChange:e=>E("split_backup","content",e),disabled:e(),children:(0,s.jsx)(c,{content:"splitSize"})}),(0,s.jsx)(l.Input,{id:"backup-content-split_backup_size",value:(0,l.getIn)(I,"content[split_backup_size]"),onChange:e=>E("split_backup_size","content",e.target.value),disabled:!S||e(),size:"sm"})]})})]})};m.propTypes={settings:r().shape({localEnabled:r().bool.isRequired,ftpEnabled:r().bool.isRequired,ftpConfigured:r().bool.isRequired,ftpActive:r().bool.isRequired,ftpServer:r().string,ftpBaseDir:r().string}).isRequired,showCloudStorages:r().bool.isRequired,cloudStorages:r().array.isRequired,isAdmin:r().bool.isRequired,dumpsRepoDir:r().string.isRequired,urls:r().shape({ftpSettings:r().string.isRequired,remoteStorages:r().string.isRequired}).isRequired,promo:r().object,showPromo:r().bool.isRequired,setShowPromo:r().func,values:r().object.isRequired,handleFieldChange:r().func.isRequired};const b=m},1723(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s.default});var s=n(1724)},1714(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s.default});var s=n(1715)},1713(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});var s=n(1714),l=n(777),o=n(378);const a=(0,l.withPageLayout)(e=>(0,o.jsx)(s.default,{...e}))},1729(e){e.exports=Jsw.skinUrl+"/images/plesk-backup.png?be7ccd9a753eba131152e1a8ee37351f"},1730(e,t,n){"use strict";n.r(t)},1722(e,t,n){"use strict";n.r(t)}}]);
2//# sourceMappingURL=ScheduledBackupPage.js.map?8dddfe3ea9959208ca59

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.