PageSourceSearch

https://tracceproject.eu/cp/javascript/app/server/notifications.js?2358d38a155a0faaa4ba

js tracceproject.eu collected 2026-10-08 13:13:29 UTC 5,931 bytes, 2 lines download raw bytes

1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/server/notifications"],{1155:(e,t,n)=>{"use strict";n.r(t);var s=n(89),i=n(204),r=n(206),l=n.n(r),a=n(205);const d=n(85).Locale.getTranslate("components.lists.notifications");class c extends i.Component{constructor(e){super(e),(0,s.default)(this,"handleSendToEmail",(e=>{const{emails:t}=this.state;t[e]=!t[e],this.setState({emails:t})})),(0,s.default)(this,"handleSubmit",(e=>{e.preventDefault(),this.validate()&&(this.form.cmd.value="update",this.form.submit())})),(0,s.default)(this,"renderNotification",(e=>{const{key:t,title:s,sendToAdmin:r,sendToReseller:l,sendToClient:c,sendToEmail:o,email:h,editLink:x,previewLink:m}=e,{canManageResellers:p,canManageCustomers:j,isHtmlTemplatesEnabled:u}=this.props,{emails:g,errors:f}=this.state;return(0,i.jsxs)("tr",{className:f[t]&&"error",children:[(0,i.jsx)("td",{align:"left",children:s||(0,i.jsx)(d,{content:t})}),(0,i.jsx)("td",{align:"center",children:(0,i.jsx)("input",{type:"checkbox",name:`${t}_send_admin`,defaultChecked:r})}),(0,i.jsx)("td",{align:"center",children:p&&!t.startsWith("admin_")?(0,i.jsx)("input",{type:"checkbox",name:`${t}_send_reseller`,defaultChecked:l}):""}),(0,i.jsx)("td",{align:"center",children:!j||t.startsWith("admin_")||t.startsWith("reseller_")?"":(0,i.jsx)("input",{type:"checkbox",name:`${t}_send_client`,defaultChecked:c})}),(0,i.jsx)("td",{align:"right",children:(0,i.jsx)("input",{type:"checkbox",name:`${t}_send_email`,defaultChecked:o,onClick:()=>this.handleSendToEmail(t)})}),(0,i.jsxs)("td",{align:"left",children:[(0,i.jsx)("input",{type:"text",name:`${t}_email`,defaultValue:h,size:"20",maxLength:"255",disabled:!g[t]}),f[t]?(0,i.jsx)("div",{className:"error-hint",children:f[t]}):null]}),(0,i.jsx)("td",{align:"center",children:(0,i.jsx)(a.Tooltip,{title:(0,i.jsx)(d,{content:"editHint"}),children:(0,i.jsx)("a",{href:x,children:(0,i.jsx)("img",{src:n(1156)})})})}),u?(0,i.jsx)("td",{align:"center",children:(0,i.jsx)(a.Tooltip,{title:(0,i.jsx)(d,{content:"previewHint"}),children:(0,i.jsx)("a",{href:m,target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("img",{src:n(938)})})})}):""]},t)})),(0,s.default)(this,"renderNotifications",(()=>{const{list:e,canManageResellers:t,canManageCustomers:n,isHtmlTemplatesEnabled:s}=this.props;return(0,i.jsx)("table",{width:"100%",cellSpacing:"0",cellPadding:"0",border:"0",children:(0,i.jsx)("tbody",{children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{children:(0,i.jsx)("table",{className:"list",cellSpacing:"0",width:"100%",children:(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{rowSpan:"2",children:(0,i.jsx)(d,{content:"headerEvent"})}),(0,i.jsx)("th",{colSpan:"5",children:(0,i.jsx)(d,{content:"headerSendTo"})}),(0,i.jsx)("th",{rowSpan:"2",style:{textAlign:"center"},children:(0,i.jsx)(d,{content:"headerText"})}),s?(0,i.jsx)("th",{rowSpan:"2",style:{textAlign:"center"},children:(0,i.jsx)(d,{content:"headerPreview"})}):""]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{style:{textAlign:"center"},children:(0,i.jsx)(d,{content:"headerAdmin"})}),(0,i.jsx)("th",{style:{textAlign:"center"},children:t?(0,i.jsx)(d,{content:"headerReseller"}):""}),(0,i.jsx)("th",{style:{textAlign:"center"},children:n?(0,i.jsx)(d,{content:"headerClient"}):""}),(0,i.jsx)("th",{colSpan:"2",style:{textAlign:"center"},children:(0,i.jsx)(d,{content:"headerEmailAddress"})})]}),e.map((e=>this.renderNotification(e)))]})})})})})})}));const t={};this.props.list.forEach((({key:e,sendToEmail:n})=>{t[e]=n})),this.state={errors:this.props.errors,emails:t}}componentDidMount(){this.form=document.forms[0],this.form.querySelector("#buttonid-ok").addEventListener("click",this.handleSubmit)}validate(){const{list:e,isWindows:t}=this.props,n={};return chk_uint(this.form.exp_warn_time.value)||(n.exp_warn_time=(0,i.jsx)(d,{content:"errorInvalidExpTime"})),e.forEach((({key:e})=>{this.form[`${e}_send_email`].checked&&!chk_email(this.form[`${e}_email`].value,t)&&(n[e]=(0,i.jsx)(d,{content:"errorInvalidEmail"}))})),this.setState({errors:n}),!Object.keys(n).length}render(){const{expireWarningTime:e,smptSettingsLink:t}=this.props,{errors:n}=this.state;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.Section,{title:(0,i.jsx)(d,{content:"legendNotifications"}),children:this.renderNotifications()}),(0,i.jsxs)(a.Section,{title:(0,i.jsx)(d,{content:"legendSettings"}),children:[(0,i.jsx)("table",{className:"formFields",cellSpacing:"0",width:"100%",children:(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{className:n.exp_warn_time&&"error",children:[(0,i.jsx)("td",{className:"name",children:(0,i.jsx)("label",{htmlFor:"exp_warn_time",children:(0,i.jsx)(d,{content:"expirationTime"})})}),(0,i.jsxs)("td",{children:[(0,i.jsx)("input",{type:"text",name:"exp_warn_time",id:"exp_warn_time",size:"8",maxLength:"6",defaultValue:e}),(0,i.jsx)(d,{content:"days"}),n.exp_warn_time?(0,i.jsx)("div",{className:"error-hint",children:n.exp_warn_time}):null]})]})})}),t?(0,i.jsx)("div",{children:(0,i.jsx)(d,{content:"smtpSettings",params:{link:(0,i.jsx)("a",{href:t,children:(0,i.jsx)(d,{content:"smtpSettingsLink"})})}})}):null]})]})}}c.propTypes={list:l().arrayOf(l().shape({key:l().string,title:l().string,
1sendToAdmin:l().bool,sendToReseller:l().bool,sendToClient:l().bool,sendToEmail:l().bool,email:l().string,editLink:l().string})).isRequired,canManageResellers:l().bool.isRequired,canManageCustomers:l().bool.isRequired,isHtmlTemplatesEnabled:l().bool.isRequired,expireWarningTime:l().number.isRequired,smptSettingsLink:l().string,isWindows:l().bool.isRequired,errors:l().object.isRequired},c.defaultProps={smptSettingsLink:null},c.contextTypes={locale:l().object},t.default=c},1156:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/modify.png?a1b44252fd9314107cd6c066729dac1c"},938:e=>{e.exports=Jsw.skinUrl+"/icons/16/plesk/preview.png?e5c602ef8c9bea2bb5365f17e8d050c9"}}]);
2//# sourceMappingURL=notifications.js.map?2358d38a155a0faaa4ba

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.