PageSourceSearch

https://console.vpsserver.com/assets/cwm/js/dist/3858.3f9b1264.js

js vpsserver.com collected 2026-09-25 02:54:56 UTC 36,768 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkvar=globalThis.webpackChunkvar||[]).push([[3858],{74246(t,e,s){s.d(e,{A:()=>l});var n=s(85186),i=s(64810),a=s(72234),o=s.n(a),r=s(18815);class l extends i.Component{constructor(t){super(t),this.state={value:t.value}}componentDidUpdate(t){t.value!==this.props.value&&this.setState({value:this.props.value})}render(){return(0,n.jsx)("span",{className:"cwm-select",children:(0,n.jsx)("select",{name:"pageSizeSelect",disabled:this.props.disabled,onChange:this.onChange.bind(this),value:this.state.value,children:r.B.sizes.map(t=>(0,n.jsx)("option",{value:t,children:t},t))})})}onChange(t){const e=parseInt(t.target.value,10);this.setState({value:e}),this.props.fnChange(e)}}l.propTypes={value:o().number.isRequired,small:o().bool,fnChange:o().func.isRequired,disabled:o().bool},l.defaultProps={disabled:!1}},41354(t,e,s){s.d(e,{A:()=>r});var n=s(85186),i=s(64810),a=s(72234),o=s.n(a);class r extends i.Component{constructor(t){super(t)}componentDidMount(){if(""!==this.props.description&&void 0!==this.props.description){let t=this.props.description;document.getElementById(this.props.itemKey).innerHTML=`${t}`}}render(){let t=this.props.isModal?"tooltip-general-info-modal":"tooltip-general-info";return""!==this.props.description&&void 0!==this.props.description?(0,n.jsxs)("div",{className:"specCat-info-general general-tooltip-arrow "+this.props.tooltipType,children:[(0,n.jsx)("i",{className:"fal fa-question-circle tooltip-general"}),(0,n.jsx)("div",{id:this.props.itemKey,className:"specCat-tooltip "+t+" "+this.props.styleTooltip})]}):null}}r.propTypes={description:o().string,itemKey:o().string,styleTooltip:o().string,tooltipType:o().string,isModal:o().bool},r.defaultProps={styleTooltip:"",itemKey:"",description:"",tooltipType:"profile-tooltip",isModal:!1}},53858(t,e,s){s.r(e),s.d(e,{default:()=>I});var n=s(85186),i=s(64810),a=s(81160),o=s(48315),r=s(16598),l=s(6127),d=s(20378),c=s(66551),p=s(87730),h=s(43239),A=s(41354),u=s(78571),m=s(11334),g=s(72234),b=s.n(g);class y extends i.Component{constructor(t){super(t),this.state={loading:a.A.DATA_INIT,isAssignableCode:null,kinds:[],entities:[],error:null}}componentDidMount(){u.A.read(this.props.itemId,this.props.itemType).then(t=>{const e=t.data;let s={},n=e.kinds.length;for(let i=0;i<n;i++)s[e.kinds[i]]=i;this.setState({loading:a.A.DATA_READY,kinds:e.kinds,entities:e.entities,isAssignableCode:e.isAssignableCode}),this.focusRef&&this.focusRef.focus()}).catch(t=>{this.setState({loading:a.A.DATA_READY,error:(0,c.Sg)(t)})})}addEntity(t){let e=this.state.entities.slice();t.perms=t.perms.concat(this.state.kinds),e.push(t),this.updatePermissionClicked(null,e,!1)}updatePermissionClicked(t,e,s){t&&t.preventDefault(),this.state.loading===a.A.DATA_READY&&(this.state.error&&!s||(this.setState({loading:a.A.DATA_UPDATING}),u.A.update(this.props.itemId,this.props.itemType,e,s).then(()=>{this.setState({loading:a.A.DATA_READY,entities:e})}).catch(t=>{this.setState({loading:a.A.DATA_READY,error:(0,c.Sg)(t)})})))}removeEntity(t,e){let s=this.state.entities.slice();for(let n=0;n<this.state.entities.length;n++)if(s[n].id===t.id&&s[n].type===t.type){s.splice(n,1);break}this.updatePermissionClicked(e,s,!0)}render(){let t=0!==this.state.isAssignableCode&&null!=this.state.isAssignableCode;return(0,n.jsx)("form",{className:"form-horizontal",children:(0,n.jsxs)("fieldset",{className:"fs-info",children:[(0,n.jsx)("legend",{className:"label-form",children:this.props.title}),(0,n.jsxs)("table",{className:"permissions",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{id:"perm_entityLbl",className:"entity",children:"Admin User"}),(0,n.jsx)("th",{id:"perm_actionLbl",children:"Actions"})]})}),(0,n.jsx)("tbody",{children:this.state.entities.map((e,s)=>{let i="far fa-object-group";return e.type===u.A.ENTITY_USER?i="fas fa-user":e.type===u.A.ENTITY_GROUP&&(i="fas fa-users"),(0,n.jsxs)("tr",{children:[(0,n.jsxs)("td",{id:"perm_entity",className:"entity ellipsis",title:e.description,children:[(0,n.jsx)("i",{className:i})," ",e.description]}),(0,n.jsx)("td",{children:(0,n.jsxs)("button",{id:"perm_remove",type:"button",className:"btn btn-primary btn-squared",onClick:this.removeEntity.bind(this,e),disabled:t,children:[(0,n.jsxs)("div",{className:"hidden-xs",children:[(0,n.jsx)("i",{className:"fal fa-times text-white margin-right-5"}),"Remove"]}),(0,n.jsx)("i",{className:"hidden-lg hidden-md hidden-sm far fa-trash-alt",style:{color:"white"}})]})})]},s)})})]}),(0,n.jsx)("div",{id:"perm_select",className:"margin-top-20 margin-bottom-20",children:(0,n.jsx)(m.A,{fnItemSelected:this.addEntity.bind(this),existingItems:this.state.entities,status:a.A.DATA_READY,btnText:"Assign Admin User",placeholder:"Enter Email",groupsEnabled:!1,sitesEnabled:!1,sameBillingBrandOnly:!1,fromModal:!1})}),this.props.info?(0,n.jsx)("div",{className:"alert alert-info",children:this.props.info}):null]})})}}
1y.propTypes={itemId:b().string.isRequired,itemType:b().string.isRequired,title:b().string.isRequired,info:b().object};var T=s(45297);const S=({title:t="Sync Status",loading:e=a.A.DATA_INIT,processLock:s,syncAllFlag:o=!1,launchSyncProcess:r})=>{const l=e===a.A.DATA_READY,d=(0,i.useMemo)(()=>[{title:"Sync Type",dataIndex:"label",key:"label",width:"20%"},{title:"Last Started",dataIndex:"dtStarted",key:"dtStarted",width:"20%",render:t=>t||"na"},{title:"Last Updated",dataIndex:"dtUpdated",key:"dtUpdated",width:"20%",render:t=>t||"na"},{title:"Status",dataIndex:"statusLabel",key:"status",width:"15%",render:t=>t||"na"},{title:"",key:"action",width:"25%",align:"right",render:(t,e)=>{const s=e.isOngoing;return(0,n.jsx)("div",{className:"actions",children:s||o?(0,n.jsxs)("button",{type:"button",className:"btn btn-squared btn-primary",disabled:!0,children:["Processing ",(0,n.jsx)("i",{className:"fa spinner"})]}):(0,n.jsx)("button",{type:"button",className:"btn btn-primary btn-squared",onClick:()=>r(e.syncType),disabled:!l,children:"Launch"})})}}],[l,o,r]),c=(0,i.useMemo)(()=>{if(!s||!s.syncTypesLabels)return[];const t=[];
1return s.syncTypesLabels.forEach((e,n)=>{if(s.disabledSyncTypes&&-1!==s.disabledSyncTypes.indexOf(n))return;const i=s.getSyncStatus(n),a=i&&parseInt(i.status)===s.LOCK_PROCESS_STATUS_ONGOING;t.push({key:n,syncType:n,label:e,dtStarted:null==i?void 0:i.dtStarted,dtUpdated:null==i?void 0:i.dtUpdated,statusLabel:null!=(null==i?void 0:i.status)?s.getStatusLabel(parseInt(i.status)):null,isOngoing:a})}),t},[s,r,o]);return(0,n.jsx)("div",{className:"form-horizontal",children:(0,n.jsxs)("fieldset",{className:"fs-info",children:[(0,n.jsx)("legend",{className:"label-form",children:t}),(0,n.jsx)(T.v,{columns:d,items:c,loading:e===a.A.DATA_INIT,emptyText:"No sync status available",rowKey:"key"}),(0,n.jsx)("div",{className:"form-group last-item",children:(0,n.jsx)("div",{className:"col-xs-12 inner-view-actions profile-btn",children:o?(0,n.jsxs)("button",{type:"button",className:"btn btn-squared btn-primary",disabled:!0,children:["Processing ",(0,n.jsx)("i",{className:"fa spinner"})]}):s&&s.syncTypesLabels&&s.syncTypesLabels.length>1?(0,n.jsx)("button",{type:"button",className:"btn btn-primary btn-squared",onClick:()=>r(null),disabled:!l,children:"Sync All"}):null})})]})})};var f=s(73908);class I extends i.Component{constructor(t){super(t),this._fnChange=this.onChange.bind(this),this.refreshTimer=null,this.firstRefreshCall=!0,this.state={loading:a.A.DATA_INIT,data:null,error:null,warning:null,mode:null,errorAdobeConnector:null,initialAppId:null,flagAppIdChanged:!1,appLastConsent:null,statusAdobeConnector:a.A.DATA_INIT,connectorDescription:null,distributorId:null,adobeIMS:null,orgIMS:null,clientSecretKey:null,adobeTchAccount:null,adobeMetaScope:null,apiKey:null,statusSettings:a.A.DATA_INIT,openModal:null,processLock:null,syncAllFlag:!1,
1cmdList:{},statusType:"adobeStatuses"}}onChange(){}componentDidMount(){o.A.on(a.A.DATA_CHANGE,this._fnChange),this.setState({loading:a.A.DATA_INIT}),f.A.initProcessLock(),d.A.adobeInfo(this.props.params.siteHost).then(t=>{const e=t.data,s=this.state.cmdList;e.syncAll&&(s[e.syncAll]=!0),e.syncProperties&&f.A.initProperties(e.syncProperties),e.syncStatuses&&f.A.setSyncStatuses(e.syncStatuses),this.setState({loading:a.A.DATA_READY,mode:e.mode,warning:e.warning,connectorDescription:e.connectorDescription,distributorId:e.distributorId,adobeIMS:e.adobeIMS,orgIMS:e.adobeIMS_Org,apiKey:e.adobeKey,adobeTchAccount:e.adobeTchAccount,adobeMetaScope:e.adobeMetaScope,appLastConsent:e.appLastConsent,descriptionTooltip:e.descriptionTooltip,lastConsentTooltip:e.lastConsentTooltip,distributorIdTooltip:e.distributorIdTooltip,clientSecretKeyTooltip:e.clientSecretKeyTooltip,IMSTooltip:e.IMSTooltip,orgIMSTooltip:e.orgIMSTooltip,techAccountTooltip:e.techAccountTooltip,metaScopeTooltip:e.metaScopeTooltip,apiKeyTooltip:e.apiKeyTooltip,cmdList:s,connectorId:e.connectorId,processLock:f.A,syncAllFlag:!!e.syncAll&&!!e.syncAll,statusAdobeConnector:a.A.DATA_READY}),e.connectorId&&(this.refreshTimer=setInterval(()=>{this.refreshStatusesList()},1e3*h.A.ADOBE_SYNC_STATUSES_REFRESH_INTERVAL_SECONDS))}).catch(t=>{this.setState({errorAdobeConnector:(0,c.Sg)(t),error:(0,c.Sg)(t),errorAdobeSettings:null,loading:a.A.DATA_READY})})}componentWillUnmount(){o.A.removeListener(a.A.DATA_CHANGE,this._fnChange),clearInterval(this.refreshTimer),this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=null)}activeModal(){return"checkAppId"===this.state.openModal?(0,n.jsx)(p.A,{fnClose:this.toggleModal.bind(this),fnUpdate:this.updateAdobeConnectorSettings.bind(this)}):null}connectorDescriptionChanged(t){this.setState({connectorDescription:t.target.value})}distributorIdIdChanged(t){this.setState({distributorId:t.target.value})}clientSecretKeyChanged(t){this.setState({clientSecretKey:t.target.value})}orgIMSChanged(t){this.setState({orgIMS:t.target.value})}adobeIMSChanged(t){this.setState({adobeIMS:t.target.value})}apiKeyChanged(t){this.setState({apiKey:t.target.value})}adobeTchAccountChanged(t){this.setState({adobeTchAccount:t.target.value})}adobeMetaScopeChanged(t){this.setState({adobeMetaScope:t.target.value})}checkAppId(t){t.preventDefault(),this.state.flagAppIdChanged?this.setState({openModal:"checkAppId"}):this.updateAdobeConnectorSettings()}updateAdobeConnectorSettings(){this.setState({loading:a.A.DATA_UPDATING,statusAdobeConnector:a.A.DATA_UPDATING,errorAdobeConnector:null}),d.A.updateAdobeConnector(this.props.params.siteHost,this.state.mode,this.state.connectorDescription,this.state.distributorId,this.state.adobeIMS,this.state.orgIMS,this.state.clientSecretKey,this.state.adobeTchAccount,this.state.adobeMetaScope,this.state.apiKey).then(t=>{a.A.successToast("Adobe Connector","Settings Updated Successfully."),"create"===this.state.mode&&(this.refreshTimer=setInterval(()=>{this.refreshStatusesList()},1e3*h.A.ADOBE_SYNC_STATUSES_REFRESH_INTERVAL_SECONDS));const e=t.data;this.setState({loading:a.A.DATA_READY,statusAdobeConnector:a.A.DATA_READY,mode:e.mode,warning:e.warning,connectorDescription:e.connectorDescription,distributorId:e.distributorId,adobeIMS:e.adobeIMS,orgIMS:e.adobeIMS_Org,apiKey:e.adobeKey,adobeTchAccount:e.adobeTchAccount,adobeMetaScope:e.adobeMetaScope,appLastConsent:e.appLastConsent})}).catch(t=>{this.setState({errorAdobeConnector:(0,c.Sg)(t),errorAdobeSettings:null,statusAdobeConnector:a.A.DATA_READY,loading:a.A.DATA_READY})})}toggleModal(){this.setState({openModal:""})}refreshStatusesList(){d.A.statusesRuntime(this.props.params.siteHost,this.state.cmdList,this.firstRefreshCall,this.state.statusType).then(t=>{t.data.syncProperties&&f.A.initProperties(t.data.syncProperties),this.state.processLock.setSyncStatuses(t.data.syncStatuses);const e=this.state.cmdList;this.setState({syncAllFlag:!!t.data.syncAll&&!!t.data.syncAll,cmdList:e}),this.firstRefreshCall=!1})}launchSyncProcess(t){let e=0;d.A.statusesRuntime(this.props.params.siteHost,this.state.cmdList,!1,this.state.statusType).then(s=>{this.state.processLock.setSyncStatuses(s.data.syncStatuses);for(let n in this.state.processLock.syncMaskLabels)(null==t&&this.state.processLock.getSyncStatus(n).status!=f.A.LOCK_PROCESS_STATUS_ONGOING||t==n&&this.state.processLock.getSyncStatus(n).status!=f.A.LOCK_PROCESS_STATUS_ONGOING)&&(this.state.processLock.setMask(this.state.processLock.syncMaskLabels[n],!0),e++)}).finally(()=>{null!=t&&(this.state.processLock.getSyncStatus(t)?this.state.processLock.setSyncStatus(t,f.A.LOCK_PROCESS_STATUS_ONGOING):this.state.processLock.setAllSyncStatuses(f.A.LOCK_PROCESS_STATUS_ONGOING)),this.setState({syncAllFlag:null==t,loading:a.A.DATA_UPDATING,errorCSPSettings:null,errorCSPSync:null,errorCSPConnector:null});let s=null!=t?f.A.syncTypesLabels[t]:"Global Adobe";0!==e?d.A.launchSyncStatusProcess(this.props.params.siteHost,this.state.processLock.syncMask,null==t,"adobeSync").then(e=>{a.A.successToast(s+" process successfully added to task queue.");const n=e.data,i=this.state.cmdList;n.cmdId&&!i.chosenSyncType&&(i[n.cmdId]=null==t),this.state.processLock.resetSyncMask(),this.setState({loading:a.A.DATA_READY,cmdList:i})}).catch(t=>{this.setState({loading:a.A.DATA_READY,errorAdobeSettings:null,errorAdobeConnector:null,errorAdobeSync:(0,c.Sg)(t)})}):a.A.errorToast(s+" process not added to task queue. May be already ongoing.")})}
1renderAdobeConnectorError(){if(!this.state.errorAdobeConnector)return null;let t=d.A.errorMessage(this.state.errorAdobeConnector);return(0,n.jsx)("div",{className:"alert alert-danger margin-top-25",children:t})}renderAdobeConnectorSettings(){const t=this.state.loading===a.A.DATA_READY,e=this.state.mode;return this.state.loading===a.A.DATA_READY||this.state.loading===a.A.DATA_UPDATING?(0,n.jsxs)("form",{className:"form-horizontal",onSubmit:this.checkAppId.bind(this),children:[this.renderAdobeConnectorError(),(0,n.jsxs)("fieldset",{className:"fs-info",children:[(0,n.jsx)("legend",{className:"label-form",children:"Adobe Connector Settings"}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Description :",(0,n.jsx)(A.A,{itemKey:"connectorDescription",description:this.state.descriptionTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-connectorDescription"})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{spellCheck:"false",type:"text",className:"form-control",value:this.state.connectorDescription,onChange:this.connectorDescriptionChanged.bind(this),disabled:!t})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Adobe Distributor Id :",(0,n.jsx)(A.A,{itemKey:"distributorId",description:this.state.distributorIdTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-microsoftPartnerId "})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{type:"text",spellCheck:"false",className:"form-control",value:this.state.distributorId,onChange:this.distributorIdIdChanged.bind(this),disabled:!t})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["API Key :",(0,n.jsx)(A.A,{itemKey:"apiKey",description:this.state.apiKeyTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-appTenantId"})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{spellCheck:"false",type:"text",className:"form-control",value:this.state.apiKey,onChange:this.apiKeyChanged.bind(this),disabled:!t})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Client Secret Key :",(0,n.jsx)(A.A,{itemKey:"clientSecretKey",description:this.state.clientSecretKeyTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-appId"})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{type:"password",className:"form-control",value:this.state.clientSecretKey,onChange:this.clientSecretKeyChanged.bind(this),disabled:!t})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Adobe IMS :",(0,n.jsx)(A.A,{itemKey:"adobeIMS",description:this.state.IMSTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-appTenantId"})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{type:"text",spellCheck:"false",className:"form-control",value:this.state.adobeIMS,onChange:this.adobeIMSChanged.bind(this),disabled:!t})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Organisation IMS :",(0,n.jsx)(A.A,{itemKey:"orgIMS",description:this.state.orgIMSTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-appTenantId"})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{type:"text",spellCheck:"false",className:"form-control",value:this.state.orgIMS,onChange:this.orgIMSChanged.bind(this),disabled:!t})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Adobe Technical Account :",(0,n.jsx)(A.A,{itemKey:"adobeTchAccount",description:this.state.techAccountTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-appTenantId"})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{type:"text",spellCheck:"false",className:"form-control",value:this.state.adobeTchAccount,onChange:this.adobeTchAccountChanged.bind(this),disabled:!t})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Adobe Scope :",(0,n.jsx)(A.A,{itemKey:"adobeMetaScope",description:this.state.metaScopeTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-appTenantId"})]}),(0,n.jsx)("div",{className:"col-xs-12 col-sm-8",children:(0,n.jsx)("input",{type:"text",spellCheck:"false",className:"form-control",value:this.state.adobeMetaScope,onCh
1ange:this.adobeMetaScopeChanged.bind(this),disabled:!t})})]}),"create"!==e?(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsxs)("label",{className:"col-xs-12 col-sm-4 control-label align",children:["Last Consent Date (UTC) :",(0,n.jsx)(A.A,{itemKey:"appLastConsent",description:this.state.lastConsentTooltip,styleTooltip:"tooltip-ms-cloud ms-cloud-appLastConsent"})]}),(0,n.jsx)("label",{title:this.state.appLastConsent+" (UTC)",className:"col-xs-12 col-sm-8 control-label align",children:this.state.appLastConsent})]}):null,(0,n.jsx)("div",{className:"form-group last-item",children:(0,n.jsx)("div",{className:"col-xs-12 inner-view-actions profile-btn",children:"create"!==e?(0,n.jsx)(l.A,{loading:this.state.statusAdobeConnector===a.A.DATA_UPDATING,enabled:t,actionText:"Update"}):(0,n.jsx)(l.A,{loading:this.state.statusAdobeConnector===a.A.DATA_UPDATING,enabled:t,actionText:"Create"})})})]})]}):null}render(){let t=this.activeModal();return(0,n.jsxs)("div",{className:"form-horizontal tab-padding",children:[this.state.loading===a.A.DATA_INIT?(0,n.jsx)(r.A,{children:"Loading Adobe Settings Information"}):null,this.renderError(),this.renderBody(),t]})}renderBody(){return this.state.error?null:(0,n.jsxs)("div",{children:[this.state.warning?null:this.renderAdobeConnectorSettings(),this.state.connectorId?(0,n.jsx)(S,{title:"Adobe Sync Status",loading:this.state.statusAdobeConnector,processLock:this.state.processLock,syncAllFlag:this.state.syncAllFlag,launchSyncProcess:this.launchSyncProcess.bind(this)}):null,this.state.connectorId?(0,n.jsx)(y,{itemId:this.state.connectorId,itemType:a.A.OBJECT_TYPE_ADOBE_CONNECTOR,title:"Adobe Admin Management",info:(0,n.jsxs)("span",{children:["Adding an Admin role to Adobe service will allow the Administrator to ",(0,n.jsx)("b",{children:"Access / Edit"})," Price List, Resellers/Customers Management and ",(0,n.jsx)("b",{children:"Purchase / Cancel"})," Customer Subscriptions"]})}):null]})}renderError(){if(!this.state.error)return null;let t=d.A.errorMessage(this.state.error);return(0,n.jsx)("div",{className:"alert alert-danger",children:t})}}},87730(t,e,s){s.d(e,{A:()=>c});var n=s(85186),i=s(64810),a=s(14414),o=s(81160),r=s(20378),l=s(72234),d=s.n(l);class c extends i.Component{constructor(t){super(t),this.focusRef=null,this.state={status:o.A.DATA_READY,error:null}}closeClicked(){this.props.fnClose(this)}render(){const t=this.state.status===o.A.DATA_READY;return(0,n.jsxs)("div",{className:"modal modal-open",children:[(0,n.jsx)("div",{className:"modal-backdrop fade in"}),(0,n.jsx)("div",{className:"modal-dialog",children:(0,n.jsxs)("div",{className:"modal-content",children:[(0,n.jsxs)("div",{className:"modal-header",children:[(0,n.jsx)("button",{type:"button",className:"close",onClick:this.closeClicked.bind(this),disabled:!t,children:(0,n.jsx)("span",{children:"×"})}),(0,n.jsx)("div",{className:"modal-title",children:(0,n.jsx)("span",{className:"cwm-title",children:"Update Connector Options"})})]}),(0,n.jsxs)("div",{className:"form-info",children:[(0,n.jsxs)("div",{className:"modal-body fg",children:[this.renderError(),(0,n.jsxs)("div",{className:"alert alert-warning",children:["The Application Id csp connector parameter has been modified.",(0,n.jsx)("br",{}),"The data which will be pulled from Microsoft API on next sync process will be different from current existing data.",(0,n.jsx)("br",{}),"This concerns csp customers, offers (root catalog), subscriptions, transactions and all azure related data.",(0,n.jsx)("br",{}),'You can choose to delete all existing data by clicking on button "Delete All And Update" or to keep existing data by clicking on "Update" button.']})]}),(0,n.jsxs)("div",{className:"modal-footer",children:[this.state.status!==o.A.DATA_READY?(0,n.jsxs)("button",{type:"button",className:"btn btn-squared btn-primary",disabled:!0,children:["Processing ",(0,n.jsx)("i",{className:"fa spinner"})]}):(0,n.jsx)("button",{type:"button",onClick:this.updateConnector.bind(this,r.A.SITE_CONNECTOR_UPDATE_OPTION_DELETE),className:"btn btn-primary btn-squared",children:"Delete All And Update"}),this.state.status!==o.A.DATA_READY?(0,n.jsxs)("button",{type:"button",className:"btn btn-squared btn-primary",disabled:!0,children:["Processing ",(0,n.jsx)("i",{className:"fa spinner"})]}):(0,n.jsx)("button",{type:"button",onClick:this.updateConnector.bind(this,r.A.SITE_CONNECTOR_UPDATE_OPTION_UPDATE),className:"btn btn-primary btn-squared",children:"Update"}),(0,n.jsx)("button",{type:"button",className:"btn btn-default btn-squared",onClick:this.closeClicked.bind(this),disabled:!t,children:"Cancel"})]})]})]})})]})}updateConnector(t){this.props.fnUpdate(t),this.props.fnClose()}renderError(){if(!this.state.error)return null;let t=a.Ay.errorMessage(this.state.error.errCode());return(0,n.jsx)("div",{className:"alert alert-danger",children:t})}}c.propTypes={fnClose:d().func.isRequired,fnUpdate:d().func.isRequired},c.contextTypes={router:d().object.isRequired}},48315(t,e,s){s.d(e,{A:()=>d});var n=s(20089),i=s(55055),a=s(21930),o=s(81160);class r extends n.EventEmitter{constructor(t){super(t),this.codes={SITE_OK:0,SITE_REQUEST:1,SITE_BODY:2,SITE_DESC:3},this.settingsInfo=new a.A,this.remoteLoginInfo=new a.A,this.externalPages=new a.A,this.siteAdminInfo=new a.A,this.contentInfo=new a.A,this.contentInfoUI=new a.A,this.msCloudInfo=new a.A,this.adobeInfo=new a.A}errorMessage(t){let e=null;return e=(255&t)===this.codes.SITE_DESC?"Invalid site description selected":"An error occurred, please try again later.",e}settingsLoading(){return this.settingsInfo.loading()}settingsData(){return this.settingsInfo.data()}settingsError(){return this.settingsInfo.error()}remoteLoginLoading(){return this.remoteLoginInfo.loading()}remoteLoginData(){return this.remoteLoginInfo.data()}remoteLoginError(){return this.remoteLoginInfo.error()}externalPagesLoading(){return this.externalPages.loading()}externalPagesData(){return this.externalPages.data()}externalPagesError(){return this.externalPages.error()}siteAdminLoading(t){return this.siteAdminInfo.loading(t)}
1siteAdminData(t){return this.siteAdminInfo.data(t)}siteAdminError(t){return this.siteAdminInfo.error(t)}contentLoading(){return this.contentInfo.loading()}contentData(){return this.contentInfo.data()}contentError(){return this.contentInfo.error()}contentUILoading(){return this.contentInfoUI.loading()}contentUIData(){return this.contentInfoUI.data()}contentUIError(){return this.contentInfoUI.error()}msCloudLoading(){return this.msCloudInfo.loading()}msCloudData(){return this.msCloudInfo.data()}msCloudError(){return this.msCloudInfo.error()}adobeLoading(){return this.adobeInfo.loading()}adobeData(){return this.adobeInfo.data()}adobeError(){return this.adobeInfo.error()}act(t){"SETTINGS_LOADING"===t.type?(this.settingsInfo.setLoading(),this.emit(o.A.DATA_CHANGE)):"SETTINGS_LOADED"===t.type?(this.settingsInfo.setData(t.data),this.emit(o.A.DATA_CHANGE)):"SETTINGS_LOADING_FAILED"===t.type?(this.settingsInfo.setError(t.error),this.emit(o.A.DATA_CHANGE)):"SITE_UPDATED"===t.type?(this.settingsInfo.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"REMOTE_LOGIN_API_LOADING"===t.type?(this.remoteLoginInfo.setLoading(),this.emit(o.A.DATA_CHANGE)):"REMOTE_LOGIN_API_LOADED"===t.type?(this.remoteLoginInfo.setData(t.data),this.emit(o.A.DATA_CHANGE)):"REMOTE_LOGIN_API_UPDATED"===t.type?(this.remoteLoginInfo.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"REMOTE_LOGIN_API_LOADING_FAILED"===t.type?(this.remoteLoginInfo.setError(t.error),this.emit(o.A.DATA_CHANGE)):"EXTERNAL_PAGES_API_LOADING"===t.type?(this.externalPages.setLoading(),this.emit(o.A.DATA_CHANGE)):"EXTERNAL_PAGES_API_LOADED"===t.type?(this.externalPages.setData(t.data),this.emit(o.A.DATA_CHANGE)):"EXTERNAL_PAGES_UPDATED"===t.type?(this.externalPages.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"EXTERNAL_PAGES_API_LOADING_FAILED"===t.type?(this.externalPages.setError(t.error),this.emit(o.A.DATA_CHANGE)):"SITE_ADMIN_LOADING"===t.type?(this.siteAdminInfo.setLoading(),this.emit(o.A.DATA_CHANGE)):"SITE_ADMIN_LOADED"===t.type?(this.siteAdminInfo.setData(t.data),this.emit(o.A.DATA_CHANGE)):"SITE_ADMIN_LOADING_FAILED"===t.type?(this.siteAdminInfo.setError(t.error),this.emit(o.A.DATA_CHANGE)):"SITE_ADMIN_UPDATED"===t.type?(this.siteAdminInfo.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"CONTENT_LOADING"===t.type?(this.contentInfo.setLoading(),this.emit(o.A.DATA_CHANGE)):"CONTENT_LOADED"===t.type?(this.contentInfo.setData(t.data),this.emit(o.A.DATA_CHANGE)):"CONTENT_UPDATED"===t.type?(this.contentInfo.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"CONTENT_LOADING_FAILED"===t.type?(this.contentInfo.setError(t.error),this.emit(o.A.DATA_CHANGE)):"CONTENT_UI_UPDATED"===t.type?(this.contentInfoUI.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"UI_LOADING"===t.type?(this.contentInfoUI.setLoading(),this.emit(o.A.DATA_CHANGE)):"UI_LOADED"===t.type?(this.contentInfoUI.setData(t.data),this.emit(o.A.DATA_CHANGE)):"UI_FAILED"===t.type?(this.contentInfoUI.setError(t.error),this.emit(o.A.DATA_CHANGE)):"MSCLOUD_LOADING"===t.type?(this.msCloudInfo.setLoading(),this.emit(o.A.DATA_CHANGE)):"MSCLOUD_LOADED"===t.type?(this.msCloudInfo.setData(t.data),this.emit(o.A.DATA_CHANGE)):"MSCLOUD_UPDATED"===t.type?(this.msCloudInfo.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"MSCLOUD_LOADING_FAILED"===t.type?(this.msCloudInfo.setError(t.error),this.emit(o.A.DATA_CHANGE)):"ADOBE_LOADING"===t.type?(this.adobeInfo.setLoading(),this.emit(o.A.DATA_CHANGE)):"ADOBE_LOADED"===t.type?(this.adobeInfo.setData(t.data),this.emit(o.A.DATA_CHANGE)):"ADOBE_UPDATED"===t.type?(this.adobeInfo.setUpdated(t.data),this.emit(o.A.DATA_CHANGE)):"ADOBE_LOADING_FAILED"===t.type&&(this.adobeInfo.setError(t.error),this.emit(o.A.DATA_CHANGE))}}const l=new r;i.A.register(l.act.bind(l));const d=l},21930(t,e,s){s.d(e,{A:()=>i});var n=s(64082);class i{constructor(){this.id="na",this.o=new n.A}
1loading(){return this.o.loading(this.id)}data(){return this.o.data(this.id)}error(){return this.o.error(this.id)}isOpen(){return this.o.isOpen(this.id)}setLoading(t){this.o.setLoading(this.id,t)}setCreated(t){this.o.setCreated(this.id,t)}setUpdating(t=!1){this.o.setUpdating(this.id,t)}setUpdated(t){this.o.setUpdated(this.id,t)}setRemoving(){this.o.setRemoving(this.id)}setRemoved(){this.o.setRemoved(this.id,null)}setData(t){t&&this.o.setData(this.id,t)}setError(t,e){this.o.setError(this.id,t,e)}setActionError(t){this.o.setActionError(this.id,t)}clear(){this.o.clear()}}},64082(t,e,s){s.d(e,{A:()=>i});var n=s(81160);class i{constructor(){this.e={}}clear(){this.e={}}_o(t){return t in this.e||(this.e[t]={loading:0,data:null,error:null,isOpen:!1}),this.e[t]}loading(t){return this._o(t).loading}data(t){return this._o(t).data}error(t){return this._o(t).error}isOpen(t){return this._o(t).isOpen}setLoading(t,e){let s=e?this._o(t).data:null;Object.assign(this._o(t),{loading:n.A.DATA_LOADING,error:null,data:s})}setCreated(t,e){let s=e?this._o(t).data:null;Object.assign(this._o(t),{loading:n.A.DATA_CREATED,error:null,data:s})}setUpdating(t,e){let s=e?this._o(t).data:null;Object.assign(this._o(t),{loading:n.A.DATA_UPDATING,error:null,data:s})}setUpdated(t,e){Object.assign(this._o(t),{loading:n.A.DATA_UPDATED,error:null,data:e})}setRemoving(t,e){let s=e?this._o(t).data:null;Object.assign(this._o(t),{loading:n.A.DATA_REMOVING,error:null,data:s})}setRemoved(t,e){Object.assign(this._o(t),{loading:n.A.DATA_REMOVED,error:null,data:e})}setData(t,e){Object.assign(this._o(t),{loading:n.A.DATA_LOADED,error:null,data:e})}setError(t,e,s){let i=s?this._o(t).data:null;Object.assign(this._o(t),{loading:n.A.DATA_FAILED,error:e,data:i})}setActionError(t,e){let s=this.data(t);Object.assign(this._o(t),{loading:n.A.DATA_ACTION_FAILED,error:e,data:s})}setOpen(t,e){this._o(t).isOpen=!!e}itemsMap(t,e){this.data(t).items&&this.data(t).items.forEach(t=>{e(t)})}}},6127(t,e,s){s.d(e,{A:()=>r});var n=s(85186),i=s(64810),a=s(72234),o=s.n(a);class r extends i.Component{constructor(t){super(t)}render(){return this.props.loading?(0,n.jsxs)("button",{type:"button",className:`btn btn-squared btn-primary ${this.props.class}`,disabled:!0,children:[this.props.loadingText," ",(0,n.jsx)("i",{className:"fa spinner"})]}):(0,n.jsx)("button",{name:"btn_submit",type:this.props.fnClicked?"button":"submit",className:`btn btn-primary btn-squared ${this.props.class}`,disabled:!this.props.enabled,children:this.props.actionText})}}r.propTypes={actionText:o().string,loadingText:o().string,fnClick:o().func,loading:o().bool.isRequired,enabled:o().bool.isRequired,class:o().string},r.defaultProps={actionText:"Save",loadingText:"Processing",fnClick:null,enabled:!0,class:""}},45297(t,e,s){s.d(e,{v:()=>y});var n=s(85186),i=s(64810),a=s(15751),o=s(41742),r=s(44004),l=s(71876),d=s(9374),c=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,g=(t,e,s)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,b=(t,e)=>{for(var s in e||(e={}))u.call(e,s)&&g(t,s,e[s]);if(A)for(var s of A(e))m.call(e,s)&&g(t,s,e[s]);return t};const y=({columns:t,items:e,renderExpendedRow:s=null,objectId:c=null,pagination:A=null,loading:u=!1,hasActiveFilters:m=null,header:g=null,footer:y=null,useQuery:T=!1,emptyText:S="No Data Found",expandable:f=null,allowExpandAllRows:I=!1,onRowClick:x=null,onClick:D=null,rowKey:C=null,className:_=""})=>{const[N,E]=(0,i.useState)([]),j=JSON.stringify(e),L=JSON.stringify(f);(0,i.useEffect)(()=>{A&&E([])},[null==A?void 0:A.firstElement,null==A?void 0:A.lastElement,null==A?void 0:A.total]);const O=(0,i.useCallback)(()=>{if(f)return void E([...e.keys()]);const t=e.keys();let s=[];for(let n in t)e[n].expandable&&s.push(n);E([...s])},[j,L]),v=(0,i.useMemo)(()=>{let t=e.filter(t=>t.expandable);return f&&t.length>0},[j,L]);return(0,n.jsxs)(r.A,{vertical:!0,gap:20,children:[(0,n.jsxs)(r.A,{gap:5,justify:"right",align:"center",children:[g,v&&I&&(0,n.jsx)(a.Ay,{onClick:()=>{N.length<=0?O():E([])},type:"default",icon:N.length<=0?(0,n.jsx)("i",{className:"fal fa-expand-alt"}):(0,n.jsx)("i",{className:"fal fa-compress-alt"}),title:"Collapse All"})]}),(0,n.jsx)(l.A,{className:_,columns:t,dataSource:e,rowKey:t=>C?t[C]:e.indexOf(t),pagination:!1,expandable:f&&"boolean"==typeof f&&f?{expandedRowKeys:N,onExpand:(t,s)=>{if(f&&!s.expandable)return;const n=e.indexOf(s);E(t?[...N,n]:N.filter(t=>t!==n))},expandedRowRender:(e,n)=>{if(!f||e.expandable)return s(e,n,t)},expandIcon:({expanded:t,onExpand:e,record:s})=>{if(!f||s.expandable)return(0,n.jsx)("span",{onClick:t=>{t.stopPropagation(),e(s,t)},style:{cursor:"pointer"},children:t?(0,n.jsx)("i",{className:"fal fa-minus"}):(0,n.jsx)("i",{className:"fal fa-plus"})})}}:f,onClick:D,onRow:t=>({onClick:()=>(t=>{if(f&&!t.expandable)return;if(x)return void x(t);const s=e.indexOf(t),n=N.includes(s);E(n?N.filter(t=>t!==s):[...N,s])}
1)(t),style:{height:42,cursor:f&&!t.expandable?null:"pointer",backgroundColor:c&&t[C]===c?"var(--col-listing-row-active)":"transparent"}}),locale:{emptyText:(0,n.jsx)("div",{style:{textAlign:"left",padding:"10px"},children:(0,n.jsx)(o.A,{image:o.A.PRESENTED_IMAGE_SIMPLE,description:S})}),triggerDesc:"",triggerAsc:"",cancelSort:""}}),(0,n.jsxs)("footer",{children:[A&&(0,n.jsx)(d.A,(P=b({},A),M={hasActiveFilters:m,loading:u,useQuery:T},p(P,h(M)))),y]})]});var P,M}},9374(t,e,s){s.d(e,{A:()=>y});var n=s(85186),i=s(64810),a=s(74246),o=s(44004),r=s(85692),l=s(18654),d=Object.defineProperty,c=Object.defineProperties,p=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,m=(t,e,s)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,g=(t,e)=>{for(var s in e||(e={}))A.call(e,s)&&m(t,s,e[s]);if(h)for(var s of h(e))u.call(e,s)&&m(t,s,e[s]);return t},b=(t,e)=>c(t,p(e));const y=({next:t,previous:e,itemKindLabel:s,setPageSize:d,filter:c,pageSize:p,firstElement:h,lastElement:A,total:u,loading:m,useQuery:y=!0,updatePage:T,hasActiveFilters:S=!1})=>{const f=(0,i.useMemo)(()=>{h=0===u?0:h,c=(null!=c?c:"").replace(/,/g,",​");let t="Showing";return h&&A&&(t+=` ${h} - ${A}`),S&&(t+=" filtered results found, total"),t+=` of ${u} ${s=s?`${s},`:""}`,t},[h,A,u,c,s,S]);if(m)return(0,n.jsx)(o.A,{justify:"flex-end",align:"center",style:{padding:"8px 0"},children:(0,n.jsxs)("label",{className:"text-black white-space margin-bottom-0",children:["Loading...",(0,n.jsx)(r.A,{size:"small",style:{marginLeft:"7px"}})]})});const I=(t,e)=>y?{to:e}:{onClick:()=>T(e,t)};return(0,n.jsxs)(o.A,{justify:"space-between",align:"center",wrap:"wrap-reverse",style:{rowGap:25},children:[(0,n.jsx)("div",{children:(0,n.jsxs)("label",{className:"text-black white-space margin-bottom-0",children:[f,(0,n.jsx)("div",{className:"btn-group margin-left-10",children:(0,n.jsx)(a.A,{disabled:m||0===u,value:p,fnChange:d})}),(0,n.jsx)("span",{className:"no-wrap",children:"Per page"})]})}),(0,n.jsxs)(o.A,{gap:"5",style:{marginInlineStart:"auto"},children:[e&&(0,n.jsxs)(l.N_,b(g({},I("previous",e)),{className:"btn btn-default btn-squared text-dark",children:[(0,n.jsx)("i",{className:"fa fa-angle-double-left",style:{marginRight:"7px"}}),"Previous"]})),t&&(0,n.jsxs)(l.N_,b(g({},I("next",t)),{className:"btn btn-default btn-squared text-dark margin-left-5",children:["Next",(0,n.jsx)("i",{className:"fa fa-angle-double-right",style:{marginLeft:"7px"}})]}))]})]})}},73908(t,e,s){s.d(e,{A:()=>i});const n={syncMask:null,syncTypes:null,syncTypesLabels:[],syncMaskLabels:[],syncStatuses:null,LOCK_PROCESS_STATUS_OK:0,LOCK_PROCESS_STATUS_ONGOING:1,LOCK_PROCESS_STATUS_FAILED:2,LOCK_PROCESS_STATUS_PAUSED:3,initProperties:t=>{n.syncMask=t.syncMask,n.syncMaskLabels=t.syncMaskLabels,n.syncTypes=t.syncTypes,n.disabledSyncTypes=t.disabledSyncTypes,n.generateSyncTypesLabels()},generateSyncTypesLabels:()=>{n.syncTypes.map((t,e)=>{n.syncTypesLabels[e]=t.replace(/(^([a-zA-Z\p{M}]))|([ -][a-zA-Z\p{M}])/g,function(t){return t.toUpperCase()})})},getLabels:()=>n.syncTypesLabels,getStatusLabel:t=>{switch(t){case n.LOCK_PROCESS_STATUS_OK:return"OK";case n.LOCK_PROCESS_STATUS_ONGOING:return"Ongoing";case n.LOCK_PROCESS_STATUS_FAILED:return"Failed";case n.LOCK_PROCESS_STATUS_PAUSED:return"Paused";default:return"na"}},setMask:(t,e)=>{n.syncMask[t]=e},setSyncStatuses:t=>{n.syncStatuses=t},getSyncStatus:t=>n.syncStatuses["syncType_"+t],setSyncStatus:(t,e)=>{n.syncStatuses["syncType_"+t].status=e},setAllSyncStatuses:t=>{n.syncTypes.map((e,s)=>{n.syncStatuses["syncType_"+s].status=t})},resetSyncMask:()=>{for(let t in n.syncMask)n.syncMask[t]=!1},initProcessLock:()=>{n.syncMask=null,n.syncTypes=null,n.syncTypesLabels=[],n.syncMaskLabels=[],n.syncStatuses=null}},i=n}}]);
2//# sourceMappingURL=3858.3f9b1264.js.map

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.