prod.millisite.com
Open in
urlscan Pro
151.101.65.195
Public Scan
URL:
https://prod.millisite.com/4144.b0e0c73cff611d69c530.js
Submission: On January 26 via manual from US — Scanned from DE
Submission: On January 26 via manual from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(self.webpackChunkwss_aaa=self.webpackChunkwss_aaa||[]).push([[4144],{44144:function(e,t,o){"use strict";o.r(t),o.d(t,{OfficeAgentsViewComponent:function(){return J}});var n=o(35366),r=o(38892),i=o(47384),s=o(23476),c=o(87382),a=o(90366),l=o(9209),f=o(61884),u=o(33023),p=o(61116),d=o(5095),b=o(75728),h=o(64897),g=o(41995),m=o(92973),v=o(15967),y=o(56728),z=o(87723),k=o(14078),S=o(36252),w=["containerElement"],Z=["officeAgentsContainer"];function x(e,t){if(1&e&&(n.TgZ(0,"div",5),n.TgZ(1,"div"),n._uU(2),n.qZA(),n._UZ(3,"aaa-preview-mode",6),n.qZA()),2&e){var o=n.oxw();n.xp6(2),n.hij(" ",o.options.block.label.singular," Settings: "),n.xp6(1),n.Q6J("blockId",o.blockId)}}function A(e,t){if(1&e&&n._UZ(0,"nz-option",15),2&e){var o=t.$implicit;n.Q6J("nzValue",o.id)("nzLabel",o.title)}}function I(e,t){if(1&e&&(n.TgZ(0,"div",7),n.TgZ(1,"nz-tabset"),n.TgZ(2,"nz-tab",8),n.TgZ(3,"div",9),n.ynx(4,10),n._UZ(5,"aaa-status-form",11),n.BQk(),n.TgZ(6,"div",12),n.TgZ(7,"div"),n._uU(8," Offices: "),n.qZA(),n.TgZ(9,"div"),n.TgZ(10,"nz-select",13),n.YNc(11,A,1,2,"nz-option",14),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e){var o=n.oxw();n.Q6J("formGroup",o.form),n.xp6(4),n.Q6J("formGroupName","status"),n.xp6(1),n.Q6J("blockId",o.blockId)("options",o.options.published),n.xp6(1),n.Q6J("formGroupName","fields"),n.xp6(4),n.Q6J("nzShowArrow",!1)("nzDropdownMatchSelectWidth",!1),n.xp6(1),n.Q6J("ngForOf",o.offices)}}var O=function(){function e(e,t,o,n,r,i,s,c,a){this.thisService=e,this.officeInterface=t,this.blockService=o,this.dataService=n,this.blocksService=r,this.formService=i,this.statusService=s,this.stateService=c,this.modalRef=a}return e.prototype.ngOnInit=function(){var e=this;this.officeInterface.offices$.subscribe(function(t){e.offices=t})},Object.defineProperty(e.prototype,"officeIdFormControl",{get:function(){return this.form.get("fields").get("officeId")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"officeId",{get:function(){return this.officeIdFormControl.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.stateService.state[this.blockId]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){return this.state.form},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previewMode",{get:function(){return this.stateService.previewMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blockTypes",{get:function(){return this.blockService.blockTypes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this.state.draggable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"draggedOver",{get:function(){return this.blockId===this.state.draggedOverBlockId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modified",{get:function(){return this.state.modified},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.state.selected},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"publishedFormControl",{get:function(){return this.form.get("status").get("published")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"published",{get:function(){return this.statusService.types[this.publishedFormControl.value]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.thisService.options},enumerable:!1,configurable:!0}),e.prototype.closeButton=function(){this.modalRef.destroy()},e.\u0275fac=function(t){return new(t||e)(n.Y36(r.F),n.Y36(f.R),n.Y36(c.g),n.Y36(i.D),n.Y36(i.D),n.Y36(s.o),n.Y36(l.B),n.Y36(a.b),n.Y36(u.Lf))},e.\u0275cmp=n.Xpm({type:e,selectors:[["aaa-office-agents-modal"]],viewQuery:function(e,t){if(1&e&&(n.Gf(w,5),n.Gf(Z,5,n.s_b)),2&e){var o=void 0;n.iGM(o=n.CRH())&&(t.containerElementRef=o.first),n.iGM(o=n.CRH())&&(t.officeAgentsContainerRef=o.first)}},inputs:{blockId:"blockId"},decls:6,vars:1,consts:[["cdkDrag","","cdkDragRootElement",".ant-modal","cdkDragHandle","","style","display: flex; gap: 10px; padding: 16px 24px; align-items: center",4,"nzModalTitle"],["style","padding: 0 16px 16px",3,"formGroup",4,"ngIf"],[2,"text-align","right","background","transparent","border-top","2px solid #f0f0f0","border-radius","0 0 4px 4px","padding","16px 16px"],["nz-button","","nzType","primary",3,"click"],["nz-icon","","nzType","check","nzTheme","outline"],["cdkDrag","","cdkDragRootElement",".ant-modal","cdkDragHandle","",2,"display","flex","gap","10px","padding","16px 24px","align-items","center"],[3,"blockId"],[2,"padding","0 16px 16px",3,"formGroup"],["nzTitle","Settings"],[2,"display","grid","gap","10px"],[3,"formGroupName"],[3,"blockId","options"],[2,"display","flex","flex-wrap","wrap","gap","10px","align-items","center",3,"formGroupName"],["formControlName","officeId","nzSize","default",3,"nzShowArrow","nzDropdownMatchSelectWidth"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(e,t){1&e&&(n.YNc(0,x,4,2,"div",0),n.YNc(1,I,12,8,"div",1),n.TgZ(2,"div",2),n.TgZ(3,"div"),n.TgZ(4,"button",3),n.NdJ("click",function(){return t.closeButton()}),n._UZ(5,"i",4),n.qZA(),n.qZA(),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",t.form))},directives:[u.h1,p.O5,d.ix,b.dQ,h.w,g.Ls,m.Zt,m.Bh,v.PreviewModeComponent,y.JL,y.sg,z.xH,z.xw,y.x0,k.W,S.Vq,y.JJ,y.u,p.sg,S.Ip],encapsulation:2}),e}(),C=o(93430),T=o(22893),P=["officeAgentsContainer"];function j(e,t){if(1&e){var o=n.EpF();n.TgZ(0,"div",4),n.NdJ("click",function(){return n.CHM(o),n.oxw().showEditModal()}),n.qZA()}}var J=function(){function e(e,t,o,n,r,i,s){this.thisService=e,this.cfr=t,this.dataService=o,this.formService=n,this.revisionService=r,this.roleService=i,this.stateService=s,this.subscription={}}return e.prototype.ngOnInit=function(){var e=this;this.block=this.dataService.blocks[this.blockId],this.subscription.blocks=this.dataService.blocks$.subscribe(function(t){e.block=t[e.blockId],e.adminMode&&e.stateService.compareBlockState(e.blockId)})},e.prototype.ngAfterViewInit=function(){var e=this;this.subscription.roles=this.roleService.roles$.subscribe(function(t){t.administrator&&(e.stateService.updateState(e.blockId,{modalRef:O}),e.stateService.updateState(e.blockId,{newItem:e.thisService.newBlock}))}),this.subscription.adminMode=this.stateService.adminMode$.subscribe(function(t){var o;t&&(null===(o=e.state)||void 0===o?void 0:o.form)&&(e.officeAgentsContainerRef.clear(),e.loadElement(e.form.value.fields.officeId),e.initialized||(e.initialized=!0,e.subscription.form=e.form.valueChanges.subscribe(function(t){console.log(t),e.adminMode&&(e.officeAgentsContainerRef.clear(),e.loadElement(e.form.value.fields.officeId))}))),t||e.loadElement(e.block.fields.officeId)})},e.prototype.ngOnDestroy=function(){for(var e in this.subscription)this.subscription[e].unsubscribe()},Object.defineProperty(e.prototype,"state",{get:function(){return this.stateService.state[this.blockId]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"adminMode",{get:function(){return this.stateService.adminMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previewMode",{get:function(){return this.stateService.previewMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deleting",{get:function(){var e;return null===(e=this.state.form)||void 0===e?void 0:e.value.status.deleting},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"session",{get:function(){return this.stateService.session},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showBlock",{get:function(){return!!this.state.showBlock&&this.state.showBlock()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"form",{get:function(){return this.state.form},enumerable:!1,configurable:!0}),e.prototype.loadElement=function(e){var t=this;Promise.resolve().then(o.bind(o,92751)).then(function(e){return e.OfficeAgentsModule}),Promise.resolve().then(o.bind(o,70151)).then(function(o){t.officeAgentsContainerRef.clear(),t.officeAgentsContainerRef.createComponent(t.cfr.resolveComponentFactory(Object.values(o)[0])).instance.officeId=e})},e.prototype.showEditModal=function(){this.formService.showEditModal(this.block,this.state.modalRef,null)},e.\u0275fac=function(t){return new(t||e)(n.Y36(r.F),n.Y36(n._Vd),n.Y36(i.D),n.Y36(s.o),n.Y36(T.I),n.Y36(C.N),n.Y36(a.b))},e.\u0275cmp=n.Xpm({type:e,selectors:[["aaa-office-agents-view"]],viewQuery:function(e,t){var o;1&e&&n.Gf(P,5,n.s_b),2&e&&n.iGM(o=n.CRH())&&(t.officeAgentsContainerRef=o.first)},inputs:{blockId:"blockId"},decls:5,vars:3,consts:[[2,"background-color","rgba(230, 230, 230, 1)"],[1,"container","centered"],["officeAgentsContainer",""],["style","position: absolute; width: 100%; height: 100%; top: 0; left: 0; min-height: 100px",3,"click",4,"ngIf"],[2,"position","absolute","width","100%","height","100%","top","0","left","0","min-height","100px",3,"click"]],template:function(e,t){1&e&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.GkF(2,null,2),n.qZA(),n.YNc(4,j,1,0,"div",3),n.qZA()),2&e&&(n.Udp("display",t.showBlock?"block":"none"),n.xp6(4),n.Q6J("ngIf",t.block&&t.adminMode&&!t.previewMode))},directives:[p.O5],encapsulation:2}),e}()},14078:function(e,t,o){"use strict";o.d(t,{W:function(){return g}});var n=o(5057),r=o(9209),i=o(90366),s=o(35366),c=o(56728),a=o(33964),l=o(61116),f=o(35160),u=o(49893),p=o(83788),d=function(){return["Options","Published"]},b=function(){function e(e,t,o){this.controlContainer=e,this.stateService=t,this.thisService=o,this.subscription={},this.membershipList=[],this.statusList=[]}return e.prototype.ngOnInit=function(){var e=this;this.subscription.form=this.form.valueChanges.pipe((0,n.b)(500)).subscribe(function(){e.stateService.compareBlockState(e.blockId)}),this.membershipList=[],this.statusList=[];for(var t=0,o=Object.entries(this.thisService.membershipLevels);t<o.length;t++){var r=o[t],i=r[0],s=r[1];this.membershipList.push({direction:this.form.get(["personalize"]).value[i]?"right":"left",disabled:!1,key:i,title:s.title})}for(var c=0,a=Object.entries(this.thisService.membershipStatuses);c<a.length;c++){var l=a[c];i=l[0],s=l[1],this.statusList.push({direction:this.form.get(["personalize"]).value[i]?"right":"left",disabled:!1,key:i,title:s.title})}},e.prototype.ngOnDestroy=function(){for(var e in this.subscription)this.subscription[e].unsubscribe()},Object.defineProperty(e.prototype,"form",{get:function(){return this.controlContainer.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"personalized",{get:function(){return this.form.value.personalized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nzBordered",{get:function(){return this.stateService.nzBordered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nzShowArrow",{get:function(){return this.stateService.nzShowArrow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.selectChange=function(e){},e.prototype.change=function(e){var t=this.form.get(["personalize"]).value;if("left"===e.from&&"right"===e.to)for(var o=0,n=e.list;o<n.length;o++)t[n[o].key]=!0,this.form.get(["personalize"]).patchValue(t);if("right"===e.from&&"left"===e.to)for(var r=0,i=e.list;r<i.length;r++)t[i[r].key]=!1,this.form.get(["personalize"]).patchValue(t)},e.\u0275fac=function(t){return new(t||e)(s.Y36(c.gN),s.Y36(i.b),s.Y36(f.o))},e.\u0275cmp=s.Xpm({type:e,selectors:[["aaa-personalize-form"]],inputs:{blockId:"blockId"},decls:7,vars:15,consts:[[2,"display","flex","flex-wrap","wrap","gap","10px",3,"formGroup"],[3,"nzBordered"],["nzHeader","Membership Levels",2,"user-select","none",3,"nzActive","nzShowArrow"],[3,"nzDataSource","nzTitles","nzSelectedKeys","nzSelectChange","nzChange"],["nzHeader","Membership Statuses",2,"user-select","none",3,"nzActive","nzShowArrow"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"nz-collapse",1),s.TgZ(2,"nz-collapse-panel",2),s.TgZ(3,"nz-transfer",3),s.NdJ("nzSelectChange",function(e){return t.selectChange(e)})("nzChange",function(e){return t.change(e)}),s.qZA(),s.qZA(),s.qZA(),s.TgZ(4,"nz-collapse",1),s.TgZ(5,"nz-collapse-panel",4),s.TgZ(6,"nz-transfer",3),s.NdJ("nzSelectChange",function(e){return t.selectChange(e)})("nzChange",function(e){return t.change(e)}),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&e&&(s.Q6J("formGroup",t.form),s.xp6(1),s.Q6J("nzBordered",t.nzBordered),s.xp6(1),s.Q6J("nzActive",!1)("nzShowArrow",t.nzShowArrow),s.xp6(1),s.Q6J("nzDataSource",t.membershipList)("nzTitles",s.DdM(13,d))("nzSelectedKeys",t.selectedKeys),s.xp6(1),s.Q6J("nzBordered",t.nzBordered),s.xp6(1),s.Q6J("nzActive",!1)("nzShowArrow",t.nzShowArrow),s.xp6(1),s.Q6J("nzDataSource",t.statusList)("nzTitles",s.DdM(14,d))("nzSelectedKeys",t.selectedKeys))},directives:[c.JL,c.sg,u.yH,u.Zv,p.BC],encapsulation:2}),e}();function h(e,t){if(1&e&&s._UZ(0,"aaa-personalize-form",5),2&e){var o=s.oxw();s.Q6J("blockId",o.blockId)}}var g=function(){function e(e,t,o){this.controlContainer=e,this.stateService=t,this.thisService=o,this.subscription={},this.list=[]}return e.prototype.ngOnInit=function(){var e=this;this.subscription.form=this.form.valueChanges.pipe((0,n.b)(500)).subscribe(function(){e.stateService.compareBlockState(e.blockId)}),this.list=[{direction:this.form.get(["personalize"]).value.active?"right":"left",disabled:!1,key:"active",title:"Active"},{direction:this.form.get(["personalize"]).value.notFound?"right":"left",disabled:!1,key:"notFound",title:"Not Found"},{direction:this.form.get(["personalize"]).value.expired?"right":"left",disabled:!1,key:"expired",title:"Expired"}]},e.prototype.ngOnDestroy=function(){for(var e in this.subscription)this.subscription[e].unsubscribe()},Object.defineProperty(e.prototype,"form",{get:function(){return this.controlContainer.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"personalized",{get:function(){return this.form.value.personalized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nzBordered",{get:function(){return this.stateService.nzBordered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nzShowArrow",{get:function(){return this.stateService.nzShowArrow},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"types",{get:function(){return this.thisService.types},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.selectChange=function(e){console.log(e)},e.prototype.change=function(e){var t=this.form.get(["personalize"]).value;if("left"===e.from&&"right"===e.to)for(var o=0,n=e.list;o<n.length;o++)t[n[o].key]=!0,this.form.get(["personalize"]).patchValue(t);if("right"===e.from&&"left"===e.to)for(var r=0,i=e.list;r<i.length;r++)t[i[r].key]=!1,this.form.get(["personalize"]).patchValue(t)},e.\u0275fac=function(t){return new(t||e)(s.Y36(c.gN),s.Y36(i.b),s.Y36(r.B))},e.\u0275cmp=s.Xpm({type:e,selectors:[["aaa-status-form"]],inputs:{blockId:"blockId",options:"options"},decls:9,vars:2,consts:[[2,"display","grid","gap","10px",3,"formGroup"],["nz-checkbox","","formControlName","unpublished"],["nz-checkbox","","formControlName","protected"],["nz-checkbox","","formControlName","personalized"],[3,"blockId",4,"ngIf"],[3,"blockId"]],template:function(e,t){1&e&&(s.TgZ(0,"div",0),s.TgZ(1,"div"),s.TgZ(2,"label",1),s._uU(3," Unpublish "),s.qZA(),s.TgZ(4,"label",2),s._uU(5," Protect "),s.qZA(),s.TgZ(6,"label",3),s._uU(7," Personalize "),s.qZA(),s.qZA(),s.YNc(8,h,1,1,"aaa-personalize-form",4),s.qZA()),2&e&&(s.Q6J("formGroup",t.form),s.xp6(8),s.Q6J("ngIf",t.personalized))},directives:[c.JL,c.sg,a.Ie,c.JJ,c.u,l.O5,b],encapsulation:2}),e}()}}]);